diff --git "a/assets/index-B2JzG7Om.js" "b/assets/index-B2JzG7Om.js"
new file mode 100644--- /dev/null
+++ "b/assets/index-B2JzG7Om.js"
@@ -0,0 +1,429 @@
+const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/wrapper-CviSselG-BXl6tbvB.js","assets/__vite-browser-external-BIHI7g3E.js"])))=>i.map(i=>d[i]);
+var vO=Object.defineProperty;var zC=e=>{throw TypeError(e)};var bO=(e,t,n)=>t in e?vO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var xO=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var fa=(e,t,n)=>bO(e,typeof t!="symbol"?t+"":t,n),UC=(e,t,n)=>t.has(e)||zC("Cannot "+n);var yt=(e,t,n)=>(UC(e,t,"read from private field"),n?n.call(e):t.get(e)),Tc=(e,t,n)=>t.has(e)?zC("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),Rc=(e,t,n,r)=>(UC(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var Lee=xO((nte,rb)=>{function wO(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in e)){const s=Object.getOwnPropertyDescriptor(r,a);s&&Object.defineProperty(e,a,s.get?s:{enumerable:!0,get:()=>r[a]})}}}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 a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const s of a)if(s.type==="childList")for(const l of s.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&r(l)}).observe(document,{childList:!0,subtree:!0});function n(a){const s={};return a.integrity&&(s.integrity=a.integrity),a.referrerPolicy&&(s.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?s.credentials="include":a.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(a){if(a.ep)return;a.ep=!0;const s=n(a);fetch(a.href,s)}})();var hv=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ib(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Uw={exports:{}},d0={};/**
+ * @license React
+ * react-jsx-runtime.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var $C;function SO(){if($C)return d0;$C=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(r,a,s){var l=null;if(s!==void 0&&(l=""+s),a.key!==void 0&&(l=""+a.key),"key"in a){s={};for(var f in a)f!=="key"&&(s[f]=a[f])}else s=a;return a=s.ref,{$$typeof:e,type:r,key:l,ref:a!==void 0?a:null,props:s}}return d0.Fragment=t,d0.jsx=n,d0.jsxs=n,d0}var HC;function _O(){return HC||(HC=1,Uw.exports=SO()),Uw.exports}var v=_O(),$w={exports:{}},jt={};/**
+ * @license React
+ * react.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var VC;function CO(){if(VC)return jt;VC=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),b=Symbol.iterator;function S(U){return U===null||typeof U!="object"?null:(U=b&&U[b]||U["@@iterator"],typeof U=="function"?U:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,E={};function A(U,W,te){this.props=U,this.context=W,this.refs=E,this.updater=te||T}A.prototype.isReactComponent={},A.prototype.setState=function(U,W){if(typeof U!="object"&&typeof U!="function"&&U!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,U,W,"setState")},A.prototype.forceUpdate=function(U){this.updater.enqueueForceUpdate(this,U,"forceUpdate")};function k(){}k.prototype=A.prototype;function L(U,W,te){this.props=U,this.context=W,this.refs=E,this.updater=te||T}var O=L.prototype=new k;O.constructor=L,C(O,A.prototype),O.isPureReactComponent=!0;var P=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},$=Object.prototype.hasOwnProperty;function B(U,W,te,de,Ee,xe){return te=xe.ref,{$$typeof:e,type:U,key:W,ref:te!==void 0?te:null,props:xe}}function H(U,W){return B(U.type,W,void 0,void 0,void 0,U.props)}function q(U){return typeof U=="object"&&U!==null&&U.$$typeof===e}function j(U){var W={"=":"=0",":":"=2"};return"$"+U.replace(/[=:]/g,function(te){return W[te]})}var X=/\/+/g;function K(U,W){return typeof U=="object"&&U!==null&&U.key!=null?j(""+U.key):W.toString(36)}function ne(){}function le(U){switch(U.status){case"fulfilled":return U.value;case"rejected":throw U.reason;default:switch(typeof U.status=="string"?U.then(ne,ne):(U.status="pending",U.then(function(W){U.status==="pending"&&(U.status="fulfilled",U.value=W)},function(W){U.status==="pending"&&(U.status="rejected",U.reason=W)})),U.status){case"fulfilled":return U.value;case"rejected":throw U.reason}}throw U}function oe(U,W,te,de,Ee){var xe=typeof U;(xe==="undefined"||xe==="boolean")&&(U=null);var Re=!1;if(U===null)Re=!0;else switch(xe){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(U.$$typeof){case e:case t:Re=!0;break;case g:return Re=U._init,oe(Re(U._payload),W,te,de,Ee)}}if(Re)return Ee=Ee(U),Re=de===""?"."+K(U,0):de,P(Ee)?(te="",Re!=null&&(te=Re.replace(X,"$&/")+"/"),oe(Ee,W,te,"",function(tt){return tt})):Ee!=null&&(q(Ee)&&(Ee=H(Ee,te+(Ee.key==null||U&&U.key===Ee.key?"":(""+Ee.key).replace(X,"$&/")+"/")+Re)),W.push(Ee)),1;Re=0;var rt=de===""?".":de+":";if(P(U))for(var Ke=0;Ke<U.length;Ke++)de=U[Ke],xe=rt+K(de,Ke),Re+=oe(de,W,te,xe,Ee);else if(Ke=S(U),typeof Ke=="function")for(U=Ke.call(U),Ke=0;!(de=U.next()).done;)de=de.value,xe=rt+K(de,Ke++),Re+=oe(de,W,te,xe,Ee);else if(xe==="object"){if(typeof U.then=="function")return oe(le(U),W,te,de,Ee);throw W=String(U),Error("Objects are not valid as a React child (found: "+(W==="[object Object]"?"object with keys {"+Object.keys(U).join(", ")+"}":W)+"). If you meant to render a collection of children, use an array instead.")}return Re}function V(U,W,te){if(U==null)return U;var de=[],Ee=0;return oe(U,de,"","",function(xe){return W.call(te,xe,Ee++)}),de}function Q(U){if(U._status===-1){var W=U._result;W=W(),W.then(function(te){(U._status===0||U._status===-1)&&(U._status=1,U._result=te)},function(te){(U._status===0||U._status===-1)&&(U._status=2,U._result=te)}),U._status===-1&&(U._status=0,U._result=W)}if(U._status===1)return U._result.default;throw U._result}var Z=typeof reportError=="function"?reportError:function(U){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var W=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof U=="object"&&U!==null&&typeof U.message=="string"?String(U.message):String(U),error:U});if(!window.dispatchEvent(W))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",U);return}console.error(U)};function ae(){}return jt.Children={map:V,forEach:function(U,W,te){V(U,function(){W.apply(this,arguments)},te)},count:function(U){var W=0;return V(U,function(){W++}),W},toArray:function(U){return V(U,function(W){return W})||[]},only:function(U){if(!q(U))throw Error("React.Children.only expected to receive a single React element child.");return U}},jt.Component=A,jt.Fragment=n,jt.Profiler=a,jt.PureComponent=L,jt.StrictMode=r,jt.Suspense=m,jt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,jt.__COMPILER_RUNTIME={__proto__:null,c:function(U){return M.H.useMemoCache(U)}},jt.cache=function(U){return function(){return U.apply(null,arguments)}},jt.cloneElement=function(U,W,te){if(U==null)throw Error("The argument must be a React element, but you passed "+U+".");var de=C({},U.props),Ee=U.key,xe=void 0;if(W!=null)for(Re in W.ref!==void 0&&(xe=void 0),W.key!==void 0&&(Ee=""+W.key),W)!$.call(W,Re)||Re==="key"||Re==="__self"||Re==="__source"||Re==="ref"&&W.ref===void 0||(de[Re]=W[Re]);var Re=arguments.length-2;if(Re===1)de.children=te;else if(1<Re){for(var rt=Array(Re),Ke=0;Ke<Re;Ke++)rt[Ke]=arguments[Ke+2];de.children=rt}return B(U.type,Ee,void 0,void 0,xe,de)},jt.createContext=function(U){return U={$$typeof:l,_currentValue:U,_currentValue2:U,_threadCount:0,Provider:null,Consumer:null},U.Provider=U,U.Consumer={$$typeof:s,_context:U},U},jt.createElement=function(U,W,te){var de,Ee={},xe=null;if(W!=null)for(de in W.key!==void 0&&(xe=""+W.key),W)$.call(W,de)&&de!=="key"&&de!=="__self"&&de!=="__source"&&(Ee[de]=W[de]);var Re=arguments.length-2;if(Re===1)Ee.children=te;else if(1<Re){for(var rt=Array(Re),Ke=0;Ke<Re;Ke++)rt[Ke]=arguments[Ke+2];Ee.children=rt}if(U&&U.defaultProps)for(de in Re=U.defaultProps,Re)Ee[de]===void 0&&(Ee[de]=Re[de]);return B(U,xe,void 0,void 0,null,Ee)},jt.createRef=function(){return{current:null}},jt.forwardRef=function(U){return{$$typeof:f,render:U}},jt.isValidElement=q,jt.lazy=function(U){return{$$typeof:g,_payload:{_status:-1,_result:U},_init:Q}},jt.memo=function(U,W){return{$$typeof:p,type:U,compare:W===void 0?null:W}},jt.startTransition=function(U){var W=M.T,te={};M.T=te;try{var de=U(),Ee=M.S;Ee!==null&&Ee(te,de),typeof de=="object"&&de!==null&&typeof de.then=="function"&&de.then(ae,Z)}catch(xe){Z(xe)}finally{M.T=W}},jt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},jt.use=function(U){return M.H.use(U)},jt.useActionState=function(U,W,te){return M.H.useActionState(U,W,te)},jt.useCallback=function(U,W){return M.H.useCallback(U,W)},jt.useContext=function(U){return M.H.useContext(U)},jt.useDebugValue=function(){},jt.useDeferredValue=function(U,W){return M.H.useDeferredValue(U,W)},jt.useEffect=function(U,W,te){var de=M.H;if(typeof te=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return de.useEffect(U,W)},jt.useId=function(){return M.H.useId()},jt.useImperativeHandle=function(U,W,te){return M.H.useImperativeHandle(U,W,te)},jt.useInsertionEffect=function(U,W){return M.H.useInsertionEffect(U,W)},jt.useLayoutEffect=function(U,W){return M.H.useLayoutEffect(U,W)},jt.useMemo=function(U,W){return M.H.useMemo(U,W)},jt.useOptimistic=function(U,W){return M.H.useOptimistic(U,W)},jt.useReducer=function(U,W,te){return M.H.useReducer(U,W,te)},jt.useRef=function(U){return M.H.useRef(U)},jt.useState=function(U){return M.H.useState(U)},jt.useSyncExternalStore=function(U,W,te){return M.H.useSyncExternalStore(U,W,te)},jt.useTransition=function(){return M.H.useTransition()},jt.version="19.1.0",jt}var WC;function Lb(){return WC||(WC=1,$w.exports=CO()),$w.exports}var _=Lb();const Ei=Ib(_),ib=wO({__proto__:null,default:Ei},[_]);var Hw={exports:{}},h0={},Vw={exports:{}},Ww={};/**
+ * @license React
+ * scheduler.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var GC;function EO(){return GC||(GC=1,function(e){function t(V,Q){var Z=V.length;V.push(Q);e:for(;0<Z;){var ae=Z-1>>>1,U=V[ae];if(0<a(U,Q))V[ae]=Q,V[Z]=U,Z=ae;else break e}}function n(V){return V.length===0?null:V[0]}function r(V){if(V.length===0)return null;var Q=V[0],Z=V.pop();if(Z!==Q){V[0]=Z;e:for(var ae=0,U=V.length,W=U>>>1;ae<W;){var te=2*(ae+1)-1,de=V[te],Ee=te+1,xe=V[Ee];if(0>a(de,Z))Ee<U&&0>a(xe,de)?(V[ae]=xe,V[Ee]=Z,ae=Ee):(V[ae]=de,V[te]=Z,ae=te);else if(Ee<U&&0>a(xe,Z))V[ae]=xe,V[Ee]=Z,ae=Ee;else break e}}return Q}function a(V,Q){var Z=V.sortIndex-Q.sortIndex;return Z!==0?Z:V.id-Q.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var l=Date,f=l.now();e.unstable_now=function(){return l.now()-f}}var m=[],p=[],g=1,b=null,S=3,T=!1,C=!1,E=!1,A=!1,k=typeof setTimeout=="function"?setTimeout:null,L=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function P(V){for(var Q=n(p);Q!==null;){if(Q.callback===null)r(p);else if(Q.startTime<=V)r(p),Q.sortIndex=Q.expirationTime,t(m,Q);else break;Q=n(p)}}function M(V){if(E=!1,P(V),!C)if(n(m)!==null)C=!0,$||($=!0,K());else{var Q=n(p);Q!==null&&oe(M,Q.startTime-V)}}var $=!1,B=-1,H=5,q=-1;function j(){return A?!0:!(e.unstable_now()-q<H)}function X(){if(A=!1,$){var V=e.unstable_now();q=V;var Q=!0;try{e:{C=!1,E&&(E=!1,L(B),B=-1),T=!0;var Z=S;try{t:{for(P(V),b=n(m);b!==null&&!(b.expirationTime>V&&j());){var ae=b.callback;if(typeof ae=="function"){b.callback=null,S=b.priorityLevel;var U=ae(b.expirationTime<=V);if(V=e.unstable_now(),typeof U=="function"){b.callback=U,P(V),Q=!0;break t}b===n(m)&&r(m),P(V)}else r(m);b=n(m)}if(b!==null)Q=!0;else{var W=n(p);W!==null&&oe(M,W.startTime-V),Q=!1}}break e}finally{b=null,S=Z,T=!1}Q=void 0}}finally{Q?K():$=!1}}}var K;if(typeof O=="function")K=function(){O(X)};else if(typeof MessageChannel<"u"){var ne=new MessageChannel,le=ne.port2;ne.port1.onmessage=X,K=function(){le.postMessage(null)}}else K=function(){k(X,0)};function oe(V,Q){B=k(function(){V(e.unstable_now())},Q)}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(V){V.callback=null},e.unstable_forceFrameRate=function(V){0>V||125<V?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<V?Math.floor(1e3/V):5},e.unstable_getCurrentPriorityLevel=function(){return S},e.unstable_next=function(V){switch(S){case 1:case 2:case 3:var Q=3;break;default:Q=S}var Z=S;S=Q;try{return V()}finally{S=Z}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(V,Q){switch(V){case 1:case 2:case 3:case 4:case 5:break;default:V=3}var Z=S;S=V;try{return Q()}finally{S=Z}},e.unstable_scheduleCallback=function(V,Q,Z){var ae=e.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ae+Z:ae):Z=ae,V){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=Z+U,V={id:g++,callback:Q,priorityLevel:V,startTime:Z,expirationTime:U,sortIndex:-1},Z>ae?(V.sortIndex=Z,t(p,V),n(m)===null&&V===n(p)&&(E?(L(B),B=-1):E=!0,oe(M,Z-ae))):(V.sortIndex=U,t(m,V),C||T||(C=!0,$||($=!0,K()))),V},e.unstable_shouldYield=j,e.unstable_wrapCallback=function(V){var Q=S;return function(){var Z=S;S=Q;try{return V.apply(this,arguments)}finally{S=Z}}}}(Ww)),Ww}var YC;function TO(){return YC||(YC=1,Vw.exports=EO()),Vw.exports}var Gw={exports:{}},oi={};/**
+ * @license React
+ * react-dom.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var qC;function RO(){if(qC)return oi;qC=1;var e=Lb();function t(m){var p="https://react.dev/errors/"+m;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+m+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function s(m,p,g){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:b==null?null:""+b,children:m,containerInfo:p,implementation:g}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(m,p){if(m==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return oi.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,oi.createPortal=function(m,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(t(299));return s(m,p,null,g)},oi.flushSync=function(m){var p=l.T,g=r.p;try{if(l.T=null,r.p=2,m)return m()}finally{l.T=p,r.p=g,r.d.f()}},oi.preconnect=function(m,p){typeof m=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,r.d.C(m,p))},oi.prefetchDNS=function(m){typeof m=="string"&&r.d.D(m)},oi.preinit=function(m,p){if(typeof m=="string"&&p&&typeof p.as=="string"){var g=p.as,b=f(g,p.crossOrigin),S=typeof p.integrity=="string"?p.integrity:void 0,T=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?r.d.S(m,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:b,integrity:S,fetchPriority:T}):g==="script"&&r.d.X(m,{crossOrigin:b,integrity:S,fetchPriority:T,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},oi.preinitModule=function(m,p){if(typeof m=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=f(p.as,p.crossOrigin);r.d.M(m,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&r.d.M(m)},oi.preload=function(m,p){if(typeof m=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,b=f(g,p.crossOrigin);r.d.L(m,g,{crossOrigin:b,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},oi.preloadModule=function(m,p){if(typeof m=="string")if(p){var g=f(p.as,p.crossOrigin);r.d.m(m,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else r.d.m(m)},oi.requestFormReset=function(m){r.d.r(m)},oi.unstable_batchedUpdates=function(m,p){return m(p)},oi.useFormState=function(m,p,g){return l.H.useFormState(m,p,g)},oi.useFormStatus=function(){return l.H.useHostTransitionStatus()},oi.version="19.1.0",oi}var KC;function DT(){if(KC)return Gw.exports;KC=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Gw.exports=RO(),Gw.exports}/**
+ * @license React
+ * react-dom-client.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var XC;function AO(){if(XC)return h0;XC=1;var e=TO(),t=Lb(),n=DT();function r(i){var o="https://react.dev/errors/"+i;if(1<arguments.length){o+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)o+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+i+"; visit "+o+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function s(i){var o=i,c=i;if(i.alternate)for(;o.return;)o=o.return;else{i=o;do o=i,(o.flags&4098)!==0&&(c=o.return),i=o.return;while(i)}return o.tag===3?c:null}function l(i){if(i.tag===13){var o=i.memoizedState;if(o===null&&(i=i.alternate,i!==null&&(o=i.memoizedState)),o!==null)return o.dehydrated}return null}function f(i){if(s(i)!==i)throw Error(r(188))}function m(i){var o=i.alternate;if(!o){if(o=s(i),o===null)throw Error(r(188));return o!==i?null:i}for(var c=i,h=o;;){var y=c.return;if(y===null)break;var w=y.alternate;if(w===null){if(h=y.return,h!==null){c=h;continue}break}if(y.child===w.child){for(w=y.child;w;){if(w===c)return f(y),i;if(w===h)return f(y),o;w=w.sibling}throw Error(r(188))}if(c.return!==h.return)c=y,h=w;else{for(var D=!1,F=y.child;F;){if(F===c){D=!0,c=y,h=w;break}if(F===h){D=!0,h=y,c=w;break}F=F.sibling}if(!D){for(F=w.child;F;){if(F===c){D=!0,c=w,h=y;break}if(F===h){D=!0,h=w,c=y;break}F=F.sibling}if(!D)throw Error(r(189))}}if(c.alternate!==h)throw Error(r(190))}if(c.tag!==3)throw Error(r(188));return c.stateNode.current===c?i:o}function p(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i;for(i=i.child;i!==null;){if(o=p(i),o!==null)return o;i=i.sibling}return null}var g=Object.assign,b=Symbol.for("react.element"),S=Symbol.for("react.transitional.element"),T=Symbol.for("react.portal"),C=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),k=Symbol.for("react.provider"),L=Symbol.for("react.consumer"),O=Symbol.for("react.context"),P=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),j=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function K(i){return i===null||typeof i!="object"?null:(i=X&&i[X]||i["@@iterator"],typeof i=="function"?i:null)}var ne=Symbol.for("react.client.reference");function le(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===ne?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case C:return"Fragment";case A:return"Profiler";case E:return"StrictMode";case M:return"Suspense";case $:return"SuspenseList";case q:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case T:return"Portal";case O:return(i.displayName||"Context")+".Provider";case L:return(i._context.displayName||"Context")+".Consumer";case P:var o=i.render;return i=i.displayName,i||(i=o.displayName||o.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case B:return o=i.displayName||null,o!==null?o:le(i.type)||"Memo";case H:o=i._payload,i=i._init;try{return le(i(o))}catch{}}return null}var oe=Array.isArray,V=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Q=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ae=[],U=-1;function W(i){return{current:i}}function te(i){0>U||(i.current=ae[U],ae[U]=null,U--)}function de(i,o){U++,ae[U]=i.current,i.current=o}var Ee=W(null),xe=W(null),Re=W(null),rt=W(null);function Ke(i,o){switch(de(Re,o),de(xe,i),de(Ee,null),o.nodeType){case 9:case 11:i=(i=o.documentElement)&&(i=i.namespaceURI)?Vn(i):0;break;default:if(i=o.tagName,o=o.namespaceURI)o=Vn(o),i=Wn(o,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}te(Ee),de(Ee,i)}function tt(){te(Ee),te(xe),te(Re)}function Be(i){i.memoizedState!==null&&de(rt,i);var o=Ee.current,c=Wn(o,i.type);o!==c&&(de(xe,i),de(Ee,c))}function Xe(i){xe.current===i&&(te(Ee),te(xe)),rt.current===i&&(te(rt),Cc._currentValue=Z)}var He=Object.prototype.hasOwnProperty,Je=e.unstable_scheduleCallback,ke=e.unstable_cancelCallback,De=e.unstable_shouldYield,At=e.unstable_requestPaint,Ze=e.unstable_now,zt=e.unstable_getCurrentPriorityLevel,ft=e.unstable_ImmediatePriority,Pt=e.unstable_UserBlockingPriority,at=e.unstable_NormalPriority,Pe=e.unstable_LowPriority,rn=e.unstable_IdlePriority,kt=e.log,sn=e.unstable_setDisableYieldValue,_n=null,hn=null;function ln(i){if(typeof kt=="function"&&sn(i),hn&&typeof hn.setStrictMode=="function")try{hn.setStrictMode(_n,i)}catch{}}var Vt=Math.clz32?Math.clz32:Rt,an=Math.log,je=Math.LN2;function Rt(i){return i>>>=0,i===0?32:31-(an(i)/je|0)|0}var Ve=256,Ie=4194304;function Le(i){var o=i&42;if(o!==0)return o;switch(i&-i){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return i&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function mt(i,o,c){var h=i.pendingLanes;if(h===0)return 0;var y=0,w=i.suspendedLanes,D=i.pingedLanes;i=i.warmLanes;var F=h&134217727;return F!==0?(h=F&~w,h!==0?y=Le(h):(D&=F,D!==0?y=Le(D):c||(c=F&~i,c!==0&&(y=Le(c))))):(F=h&~w,F!==0?y=Le(F):D!==0?y=Le(D):c||(c=h&~i,c!==0&&(y=Le(c)))),y===0?0:o!==0&&o!==y&&(o&w)===0&&(w=y&-y,c=o&-o,w>=c||w===32&&(c&4194048)!==0)?o:y}function cn(i,o){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&o)===0}function Qi(i,o){switch(i){case 1:case 2:case 4:case 8:case 64:return o+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return o+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function wa(){var i=Ve;return Ve<<=1,(Ve&4194048)===0&&(Ve=256),i}function Lf(){var i=Ie;return Ie<<=1,(Ie&62914560)===0&&(Ie=4194304),i}function Rl(i){for(var o=[],c=0;31>c;c++)o.push(i);return o}function Sa(i,o){i.pendingLanes|=o,o!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function bp(i,o,c,h,y,w){var D=i.pendingLanes;i.pendingLanes=c,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=c,i.entangledLanes&=c,i.errorRecoveryDisabledLanes&=c,i.shellSuspendCounter=0;var F=i.entanglements,Y=i.expirationTimes,fe=i.hiddenUpdates;for(c=D&~c;0<c;){var be=31-Vt(c),_e=1<<be;F[be]=0,Y[be]=-1;var pe=fe[be];if(pe!==null)for(fe[be]=null,be=0;be<pe.length;be++){var he=pe[be];he!==null&&(he.lane&=-536870913)}c&=~_e}h!==0&&Pf(i,h,0),w!==0&&y===0&&i.tag!==0&&(i.suspendedLanes|=w&~(D&~o))}function Pf(i,o,c){i.pendingLanes|=o,i.suspendedLanes&=~o;var h=31-Vt(o);i.entangledLanes|=o,i.entanglements[h]=i.entanglements[h]|1073741824|c&4194090}function Nf(i,o){var c=i.entangledLanes|=o;for(i=i.entanglements;c;){var h=31-Vt(c),y=1<<h;y&o|i[h]&o&&(i[h]|=o),c&=~y}}function Wc(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Al(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function Ff(){var i=Q.p;return i!==0?i:(i=window.event,i===void 0?32:sv(i.type))}function $e(i,o){var c=Q.p;try{return Q.p=i,o()}finally{Q.p=c}}var We=Math.random().toString(36).slice(2),ot="__reactFiber$"+We,vt="__reactProps$"+We,un="__reactContainer$"+We,Gr="__reactEvents$"+We,Za="__reactListeners$"+We,Os="__reactHandles$"+We,Gc="__reactResources$"+We,Ja="__reactMarker$"+We;function xp(i){delete i[ot],delete i[vt],delete i[Gr],delete i[Za],delete i[Os]}function kl(i){var o=i[ot];if(o)return o;for(var c=i.parentNode;c;){if(o=c[un]||c[ot]){if(c=o.alternate,o.child!==null||c!==null&&c.child!==null)for(i=K1(i);i!==null;){if(c=i[ot])return c;i=K1(i)}return o}i=c,c=i.parentNode}return null}function Ol(i){if(i=i[ot]||i[un]){var o=i.tag;if(o===5||o===6||o===13||o===26||o===27||o===3)return i}return null}function Ml(i){var o=i.tag;if(o===5||o===26||o===27||o===6)return i.stateNode;throw Error(r(33))}function Dl(i){var o=i[Gc];return o||(o=i[Gc]={hoistableStyles:new Map,hoistableScripts:new Map}),o}function _r(i){i[Ja]=!0}var Yg=new Set,qg={};function Ms(i,o){jl(i,o),jl(i+"Capture",o)}function jl(i,o){for(qg[i]=o,i=0;i<o.length;i++)Yg.add(o[i])}var Bf=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Kg={},Yc={};function Px(i){return He.call(Yc,i)?!0:He.call(Kg,i)?!1:Bf.test(i)?Yc[i]=!0:(Kg[i]=!0,!1)}function zf(i,o,c){if(Px(o))if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":i.removeAttribute(o);return;case"boolean":var h=o.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(o);return}}i.setAttribute(o,""+c)}}function Uf(i,o,c){if(c===null)i.removeAttribute(o);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttribute(o,""+c)}}function _a(i,o,c,h){if(h===null)i.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(c);return}i.setAttributeNS(o,c,""+h)}}var $f,wp;function Il(i){if($f===void 0)try{throw Error()}catch(c){var o=c.stack.trim().match(/\n( *(at )?)/);$f=o&&o[1]||"",wp=-1<c.stack.indexOf(`
+    at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
+`+$f+i+wp}var Sp=!1;function _p(i,o){if(!i||Sp)return"";Sp=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(o){var _e=function(){throw Error()};if(Object.defineProperty(_e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(_e,[])}catch(he){var pe=he}Reflect.construct(i,[],_e)}else{try{_e.call()}catch(he){pe=he}i.call(_e.prototype)}}else{try{throw Error()}catch(he){pe=he}(_e=i())&&typeof _e.catch=="function"&&_e.catch(function(){})}}catch(he){if(he&&pe&&typeof he.stack=="string")return[he.stack,pe.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var y=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");y&&y.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var w=h.DetermineComponentFrameRoot(),D=w[0],F=w[1];if(D&&F){var Y=D.split(`
+`),fe=F.split(`
+`);for(y=h=0;h<Y.length&&!Y[h].includes("DetermineComponentFrameRoot");)h++;for(;y<fe.length&&!fe[y].includes("DetermineComponentFrameRoot");)y++;if(h===Y.length||y===fe.length)for(h=Y.length-1,y=fe.length-1;1<=h&&0<=y&&Y[h]!==fe[y];)y--;for(;1<=h&&0<=y;h--,y--)if(Y[h]!==fe[y]){if(h!==1||y!==1)do if(h--,y--,0>y||Y[h]!==fe[y]){var be=`
+`+Y[h].replace(" at new "," at ");return i.displayName&&be.includes("<anonymous>")&&(be=be.replace("<anonymous>",i.displayName)),be}while(1<=h&&0<=y);break}}}finally{Sp=!1,Error.prepareStackTrace=c}return(c=i?i.displayName||i.name:"")?Il(c):""}function Nx(i){switch(i.tag){case 26:case 27:case 5:return Il(i.type);case 16:return Il("Lazy");case 13:return Il("Suspense");case 19:return Il("SuspenseList");case 0:case 15:return _p(i.type,!1);case 11:return _p(i.type.render,!1);case 1:return _p(i.type,!0);case 31:return Il("Activity");default:return""}}function Cp(i){try{var o="";do o+=Nx(i),i=i.return;while(i);return o}catch(c){return`
+Error generating stack: `+c.message+`
+`+c.stack}}function di(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function Ep(i){var o=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(o==="checkbox"||o==="radio")}function Tp(i){var o=Ep(i)?"checked":"value",c=Object.getOwnPropertyDescriptor(i.constructor.prototype,o),h=""+i[o];if(!i.hasOwnProperty(o)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var y=c.get,w=c.set;return Object.defineProperty(i,o,{configurable:!0,get:function(){return y.call(this)},set:function(D){h=""+D,w.call(this,D)}}),Object.defineProperty(i,o,{enumerable:c.enumerable}),{getValue:function(){return h},setValue:function(D){h=""+D},stopTracking:function(){i._valueTracker=null,delete i[o]}}}}function Hf(i){i._valueTracker||(i._valueTracker=Tp(i))}function Rp(i){if(!i)return!1;var o=i._valueTracker;if(!o)return!0;var c=o.getValue(),h="";return i&&(h=Ep(i)?i.checked?"true":"false":i.value),i=h,i!==c?(o.setValue(i),!0):!1}function Ds(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var Xg=/[\n"\\]/g;function Oi(i){return i.replace(Xg,function(o){return"\\"+o.charCodeAt(0).toString(16)+" "})}function Vf(i,o,c,h,y,w,D,F){i.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?i.type=D:i.removeAttribute("type"),o!=null?D==="number"?(o===0&&i.value===""||i.value!=o)&&(i.value=""+di(o)):i.value!==""+di(o)&&(i.value=""+di(o)):D!=="submit"&&D!=="reset"||i.removeAttribute("value"),o!=null?qc(i,D,di(o)):c!=null?qc(i,D,di(c)):h!=null&&i.removeAttribute("value"),y==null&&w!=null&&(i.defaultChecked=!!w),y!=null&&(i.checked=y&&typeof y!="function"&&typeof y!="symbol"),F!=null&&typeof F!="function"&&typeof F!="symbol"&&typeof F!="boolean"?i.name=""+di(F):i.removeAttribute("name")}function Ap(i,o,c,h,y,w,D,F){if(w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(i.type=w),o!=null||c!=null){if(!(w!=="submit"&&w!=="reset"||o!=null))return;c=c!=null?""+di(c):"",o=o!=null?""+di(o):c,F||o===i.value||(i.value=o),i.defaultValue=o}h=h??y,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=F?i.checked:!!h,i.defaultChecked=!!h,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(i.name=D)}function qc(i,o,c){o==="number"&&Ds(i.ownerDocument)===i||i.defaultValue===""+c||(i.defaultValue=""+c)}function Ll(i,o,c,h){if(i=i.options,o){o={};for(var y=0;y<c.length;y++)o["$"+c[y]]=!0;for(c=0;c<i.length;c++)y=o.hasOwnProperty("$"+i[c].value),i[c].selected!==y&&(i[c].selected=y),y&&h&&(i[c].defaultSelected=!0)}else{for(c=""+di(c),o=null,y=0;y<i.length;y++){if(i[y].value===c){i[y].selected=!0,h&&(i[y].defaultSelected=!0);return}o!==null||i[y].disabled||(o=i[y])}o!==null&&(o.selected=!0)}}function kp(i,o,c){if(o!=null&&(o=""+di(o),o!==i.value&&(i.value=o),c==null)){i.defaultValue!==o&&(i.defaultValue=o);return}i.defaultValue=c!=null?""+di(c):""}function Wf(i,o,c,h){if(o==null){if(h!=null){if(c!=null)throw Error(r(92));if(oe(h)){if(1<h.length)throw Error(r(93));h=h[0]}c=h}c==null&&(c=""),o=c}c=di(o),i.defaultValue=c,h=i.textContent,h===c&&h!==""&&h!==null&&(i.value=h)}function jo(i,o){if(o){var c=i.firstChild;if(c&&c===i.lastChild&&c.nodeType===3){c.nodeValue=o;return}}i.textContent=o}var Pl=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Op(i,o,c){var h=o.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?i.setProperty(o,""):o==="float"?i.cssFloat="":i[o]="":h?i.setProperty(o,c):typeof c!="number"||c===0||Pl.has(o)?o==="float"?i.cssFloat=c:i[o]=(""+c).trim():i[o]=c+"px"}function Mp(i,o,c){if(o!=null&&typeof o!="object")throw Error(r(62));if(i=i.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||o!=null&&o.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var y in o)h=o[y],o.hasOwnProperty(y)&&c[y]!==h&&Op(i,y,h)}else for(var w in o)o.hasOwnProperty(w)&&Op(i,w,o[w])}function Dp(i){if(i.indexOf("-")===-1)return!1;switch(i){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 Zg=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Jg=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Kc(i){return Jg.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}var Gf=null;function jp(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var Nl=null,Fl=null;function Ip(i){var o=Ol(i);if(o&&(i=o.stateNode)){var c=i[vt]||null;e:switch(i=o.stateNode,o.type){case"input":if(Vf(i,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),o=c.name,c.type==="radio"&&o!=null){for(c=i;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Oi(""+o)+'"][type="radio"]'),o=0;o<c.length;o++){var h=c[o];if(h!==i&&h.form===i.form){var y=h[vt]||null;if(!y)throw Error(r(90));Vf(h,y.value,y.defaultValue,y.defaultValue,y.checked,y.defaultChecked,y.type,y.name)}}for(o=0;o<c.length;o++)h=c[o],h.form===i.form&&Rp(h)}break e;case"textarea":kp(i,c.value,c.defaultValue);break e;case"select":o=c.value,o!=null&&Ll(i,!!c.multiple,o,!1)}}}var Lp=!1;function Qg(i,o,c){if(Lp)return i(o,c);Lp=!0;try{var h=i(o);return h}finally{if(Lp=!1,(Nl!==null||Fl!==null)&&(Gd(),Nl&&(o=Nl,i=Fl,Fl=Nl=null,Ip(o),i)))for(o=0;o<i.length;o++)Ip(i[o])}}function Xc(i,o){var c=i.stateNode;if(c===null)return null;var h=c[vt]||null;if(h===null)return null;c=h[o];e:switch(o){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(c&&typeof c!="function")throw Error(r(231,o,typeof c));return c}var Qa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Zc=!1;if(Qa)try{var Jc={};Object.defineProperty(Jc,"passive",{get:function(){Zc=!0}}),window.addEventListener("test",Jc,Jc),window.removeEventListener("test",Jc,Jc)}catch{Zc=!1}var Io=null,Pp=null,Yf=null;function ey(){if(Yf)return Yf;var i,o=Pp,c=o.length,h,y="value"in Io?Io.value:Io.textContent,w=y.length;for(i=0;i<c&&o[i]===y[i];i++);var D=c-i;for(h=1;h<=D&&o[c-h]===y[w-h];h++);return Yf=y.slice(i,1<h?1-h:void 0)}function Cn(i){var o=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&o===13&&(i=13)):i=o,i===10&&(i=13),32<=i||i===13?i:0}function yn(){return!0}function ty(){return!1}function Yr(i){function o(c,h,y,w,D){this._reactName=c,this._targetInst=y,this.type=h,this.nativeEvent=w,this.target=D,this.currentTarget=null;for(var F in i)i.hasOwnProperty(F)&&(c=i[F],this[F]=c?c(w):w[F]);return this.isDefaultPrevented=(w.defaultPrevented!=null?w.defaultPrevented:w.returnValue===!1)?yn:ty,this.isPropagationStopped=ty,this}return g(o.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=yn)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=yn)},persist:function(){},isPersistent:yn}),o}var js={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},qf=Yr(js),Qc=g({},js,{view:0,detail:0}),Fx=Yr(Qc),Kf,Np,nr,Bl=g({},Qc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ca,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==nr&&(nr&&i.type==="mousemove"?(Kf=i.screenX-nr.screenX,Np=i.screenY-nr.screenY):Np=Kf=0,nr=i),Kf)},movementY:function(i){return"movementY"in i?i.movementY:Np}}),Lo=Yr(Bl),ny=g({},Bl,{dataTransfer:0}),Fp=Yr(ny),Mi=g({},Qc,{relatedTarget:0}),Xf=Yr(Mi),ry=g({},js,{animationName:0,elapsedTime:0,pseudoElement:0}),iy=Yr(ry),ay=g({},js,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),oy=Yr(ay),sy=g({},js,{data:0}),qr=Yr(sy),Bx={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Di={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"},zx={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ly(i){var o=this.nativeEvent;return o.getModifierState?o.getModifierState(i):(i=zx[i])?!!o[i]:!1}function Ca(){return ly}var Zf=g({},Qc,{key:function(i){if(i.key){var o=Bx[i.key]||i.key;if(o!=="Unidentified")return o}return i.type==="keypress"?(i=Cn(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?Di[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ca,charCode:function(i){return i.type==="keypress"?Cn(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Cn(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Bp=Yr(Zf),zn=g({},Bl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),eo=Yr(zn),zp=g({},Qc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ca}),Ux=Yr(zp),Up=g({},js,{propertyName:0,elapsedTime:0,pseudoElement:0}),$x=Yr(Up),Hx=g({},Bl,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),Vx=Yr(Hx),cy=g({},js,{newState:0,oldState:0}),Jf=Yr(cy),zl=[9,13,27,32],$p=Qa&&"CompositionEvent"in window,Ul=null;Qa&&"documentMode"in document&&(Ul=document.documentMode);var uy=Qa&&"TextEvent"in window&&!Ul,Qf=Qa&&(!$p||Ul&&8<Ul&&11>=Ul),ed=" ",Hp=!1;function fy(i,o){switch(i){case"keyup":return zl.indexOf(o.keyCode)!==-1;case"keydown":return o.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function td(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var Po=!1;function Wx(i,o){switch(i){case"compositionend":return td(o);case"keypress":return o.which!==32?null:(Hp=!0,ed);case"textInput":return i=o.data,i===ed&&Hp?null:i;default:return null}}function dy(i,o){if(Po)return i==="compositionend"||!$p&&fy(i,o)?(i=ey(),Yf=Pp=Io=null,Po=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(o.ctrlKey||o.altKey||o.metaKey)||o.ctrlKey&&o.altKey){if(o.char&&1<o.char.length)return o.char;if(o.which)return String.fromCharCode(o.which)}return null;case"compositionend":return Qf&&o.locale!=="ko"?null:o.data;default:return null}}var hi={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 nd(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o==="input"?!!hi[i.type]:o==="textarea"}function $l(i,o,c,h){Nl?Fl?Fl.push(h):Fl=[h]:Nl=h,o=Qd(o,"onChange"),0<o.length&&(c=new qf("onChange","change",null,c,h),i.push({event:c,listeners:o}))}var Hl=null,Vl=null;function Gx(i){U1(i,0)}function rd(i){var o=Ml(i);if(Rp(o))return i}function hy(i,o){if(i==="change")return o}var py=!1;if(Qa){var Vp;if(Qa){var No="oninput"in document;if(!No){var my=document.createElement("div");my.setAttribute("oninput","return;"),No=typeof my.oninput=="function"}Vp=No}else Vp=!1;py=Vp&&(!document.documentMode||9<document.documentMode)}function gy(){Hl&&(Hl.detachEvent("onpropertychange",id),Vl=Hl=null)}function id(i){if(i.propertyName==="value"&&rd(Vl)){var o=[];$l(o,Vl,i,jp(i)),Qg(Gx,o)}}function yy(i,o,c){i==="focusin"?(gy(),Hl=o,Vl=c,Hl.attachEvent("onpropertychange",id)):i==="focusout"&&gy()}function Fo(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return rd(Vl)}function ad(i,o){if(i==="click")return rd(o)}function Yx(i,o){if(i==="input"||i==="change")return rd(o)}function qx(i,o){return i===o&&(i!==0||1/i===1/o)||i!==i&&o!==o}var pi=typeof Object.is=="function"?Object.is:qx;function Ea(i,o){if(pi(i,o))return!0;if(typeof i!="object"||i===null||typeof o!="object"||o===null)return!1;var c=Object.keys(i),h=Object.keys(o);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var y=c[h];if(!He.call(o,y)||!pi(i[y],o[y]))return!1}return!0}function ji(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Wp(i,o){var c=ji(i);i=0;for(var h;c;){if(c.nodeType===3){if(h=i+c.textContent.length,i<=o&&h>=o)return{node:c,offset:o-i};i=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=ji(c)}}function vy(i,o){return i&&o?i===o?!0:i&&i.nodeType===3?!1:o&&o.nodeType===3?vy(i,o.parentNode):"contains"in i?i.contains(o):i.compareDocumentPosition?!!(i.compareDocumentPosition(o)&16):!1:!1}function by(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var o=Ds(i.document);o instanceof i.HTMLIFrameElement;){try{var c=typeof o.contentWindow.location.href=="string"}catch{c=!1}if(c)i=o.contentWindow;else break;o=Ds(i.document)}return o}function Gp(i){var o=i&&i.nodeName&&i.nodeName.toLowerCase();return o&&(o==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||o==="textarea"||i.contentEditable==="true")}var Kx=Qa&&"documentMode"in document&&11>=document.documentMode,Wl=null,Bo=null,re=null,ye=!1;function me(i,o,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;ye||Wl==null||Wl!==Ds(h)||(h=Wl,"selectionStart"in h&&Gp(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),re&&Ea(re,h)||(re=h,h=Qd(Bo,"onSelect"),0<h.length&&(o=new qf("onSelect","select",null,o,c),i.push({event:o,listeners:h}),o.target=Wl)))}function Ne(i,o){var c={};return c[i.toLowerCase()]=o.toLowerCase(),c["Webkit"+i]="webkit"+o,c["Moz"+i]="moz"+o,c}var ut={animationend:Ne("Animation","AnimationEnd"),animationiteration:Ne("Animation","AnimationIteration"),animationstart:Ne("Animation","AnimationStart"),transitionrun:Ne("Transition","TransitionRun"),transitionstart:Ne("Transition","TransitionStart"),transitioncancel:Ne("Transition","TransitionCancel"),transitionend:Ne("Transition","TransitionEnd")},Jt={},or={};Qa&&(or=document.createElement("div").style,"AnimationEvent"in window||(delete ut.animationend.animation,delete ut.animationiteration.animation,delete ut.animationstart.animation),"TransitionEvent"in window||delete ut.transitionend.transition);function Qt(i){if(Jt[i])return Jt[i];if(!ut[i])return i;var o=ut[i],c;for(c in o)if(o.hasOwnProperty(c)&&c in or)return Jt[i]=o[c];return i}var od=Qt("animationend"),xy=Qt("animationiteration"),mi=Qt("animationstart"),sd=Qt("transitionrun"),Xx=Qt("transitionstart"),Gl=Qt("transitioncancel"),eu=Qt("transitionend"),tu=new Map,fn="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");fn.push("scrollEnd");function ea(i,o){tu.set(i,o),Ms(o,[i])}var Yp=new WeakMap;function Nr(i,o){if(typeof i=="object"&&i!==null){var c=Yp.get(i);return c!==void 0?c:(o={value:i,source:o,stack:Cp(o)},Yp.set(i,o),o)}return{value:i,source:o,stack:Cp(o)}}var Ii=[],Yl=0,qp=0;function Is(){for(var i=Yl,o=qp=Yl=0;o<i;){var c=Ii[o];Ii[o++]=null;var h=Ii[o];Ii[o++]=null;var y=Ii[o];Ii[o++]=null;var w=Ii[o];if(Ii[o++]=null,h!==null&&y!==null){var D=h.pending;D===null?y.next=y:(y.next=D.next,D.next=y),h.pending=y}w!==0&&nu(c,y,w)}}function ta(i,o,c,h){Ii[Yl++]=i,Ii[Yl++]=o,Ii[Yl++]=c,Ii[Yl++]=h,qp|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function ql(i,o,c,h){return ta(i,o,c,h),ru(i)}function Ls(i,o){return ta(i,null,null,o),ru(i)}function nu(i,o,c){i.lanes|=c;var h=i.alternate;h!==null&&(h.lanes|=c);for(var y=!1,w=i.return;w!==null;)w.childLanes|=c,h=w.alternate,h!==null&&(h.childLanes|=c),w.tag===22&&(i=w.stateNode,i===null||i._visibility&1||(y=!0)),i=w,w=w.return;return i.tag===3?(w=i.stateNode,y&&o!==null&&(y=31-Vt(c),i=w.hiddenUpdates,h=i[y],h===null?i[y]=[o]:h.push(o),o.lane=c|536870912),w):null}function ru(i){if(50<gc)throw gc=0,$m=null,Error(r(185));for(var o=i.return;o!==null;)i=o,o=i.return;return i.tag===3?i.stateNode:null}var Ps={};function ld(i,o,c,h){this.tag=i,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=o,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Kr(i,o,c,h){return new ld(i,o,c,h)}function Ns(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Fr(i,o){var c=i.alternate;return c===null?(c=Kr(i.tag,o,i.key,i.mode),c.elementType=i.elementType,c.type=i.type,c.stateNode=i.stateNode,c.alternate=i,i.alternate=c):(c.pendingProps=o,c.type=i.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=i.flags&65011712,c.childLanes=i.childLanes,c.lanes=i.lanes,c.child=i.child,c.memoizedProps=i.memoizedProps,c.memoizedState=i.memoizedState,c.updateQueue=i.updateQueue,o=i.dependencies,c.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext},c.sibling=i.sibling,c.index=i.index,c.ref=i.ref,c.refCleanup=i.refCleanup,c}function iu(i,o){i.flags&=65011714;var c=i.alternate;return c===null?(i.childLanes=0,i.lanes=o,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=c.childLanes,i.lanes=c.lanes,i.child=c.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=c.memoizedProps,i.memoizedState=c.memoizedState,i.updateQueue=c.updateQueue,i.type=c.type,o=c.dependencies,i.dependencies=o===null?null:{lanes:o.lanes,firstContext:o.firstContext}),i}function cd(i,o,c,h,y,w){var D=0;if(h=i,typeof i=="function")Ns(i)&&(D=1);else if(typeof i=="string")D=Rw(i,c,Ee.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case q:return i=Kr(31,c,o,y),i.elementType=q,i.lanes=w,i;case C:return Fs(c.children,y,w,o);case E:D=8,y|=24;break;case A:return i=Kr(12,c,o,y|2),i.elementType=A,i.lanes=w,i;case M:return i=Kr(13,c,o,y),i.elementType=M,i.lanes=w,i;case $:return i=Kr(19,c,o,y),i.elementType=$,i.lanes=w,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case k:case O:D=10;break e;case L:D=9;break e;case P:D=11;break e;case B:D=14;break e;case H:D=16,h=null;break e}D=29,c=Error(r(130,i===null?"null":typeof i,"")),h=null}return o=Kr(D,c,o,y),o.elementType=i,o.type=h,o.lanes=w,o}function Fs(i,o,c,h){return i=Kr(7,i,h,o),i.lanes=c,i}function Kp(i,o,c){return i=Kr(6,i,null,o),i.lanes=c,i}function Kl(i,o,c){return o=Kr(4,i.children!==null?i.children:[],i.key,o),o.lanes=c,o.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},o}var to=[],zo=0,ud=null,au=0,Li=[],Pi=0,Pn=null,Un=1,no="";function Bs(i,o){to[zo++]=au,to[zo++]=ud,ud=i,au=o}function Xp(i,o,c){Li[Pi++]=Un,Li[Pi++]=no,Li[Pi++]=Pn,Pn=i;var h=Un;i=no;var y=32-Vt(h)-1;h&=~(1<<y),c+=1;var w=32-Vt(o)+y;if(30<w){var D=y-y%5;w=(h&(1<<D)-1).toString(32),h>>=D,y-=D,Un=1<<32-Vt(o)+y|c<<y|h,no=w+i}else Un=1<<w|c<<y|h,no=i}function Zp(i){i.return!==null&&(Bs(i,1),Xp(i,1,0))}function ou(i){for(;i===ud;)ud=to[--zo],to[zo]=null,au=to[--zo],to[zo]=null;for(;i===Pn;)Pn=Li[--Pi],Li[Pi]=null,no=Li[--Pi],Li[Pi]=null,Un=Li[--Pi],Li[Pi]=null}var hr=null,$n=null,Wt=!1,na=null,Xr=!1,Xl=Error(r(519));function Ni(i){var o=Error(r(418,""));throw Uo(Nr(o,i)),Xl}function wy(i){var o=i.stateNode,c=i.type,h=i.memoizedProps;switch(o[ot]=i,o[vt]=h,c){case"dialog":$t("cancel",o),$t("close",o);break;case"iframe":case"object":case"embed":$t("load",o);break;case"video":case"audio":for(c=0;c<qu.length;c++)$t(qu[c],o);break;case"source":$t("error",o);break;case"img":case"image":case"link":$t("error",o),$t("load",o);break;case"details":$t("toggle",o);break;case"input":$t("invalid",o),Ap(o,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0),Hf(o);break;case"select":$t("invalid",o);break;case"textarea":$t("invalid",o),Wf(o,h.value,h.defaultValue,h.children),Hf(o)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||o.textContent===""+c||h.suppressHydrationWarning===!0||V1(o.textContent,c)?(h.popover!=null&&($t("beforetoggle",o),$t("toggle",o)),h.onScroll!=null&&$t("scroll",o),h.onScrollEnd!=null&&$t("scrollend",o),h.onClick!=null&&(o.onclick=eh),o=!0):o=!1,o||Ni(i)}function Sy(i){for(hr=i.return;hr;)switch(hr.tag){case 5:case 13:Xr=!1;return;case 27:case 3:Xr=!0;return;default:hr=hr.return}}function su(i){if(i!==hr)return!1;if(!Wt)return Sy(i),Wt=!0,!1;var o=i.tag,c;if((c=o!==3&&o!==27)&&((c=o===5)&&(c=i.type,c=!(c!=="form"&&c!=="button")||nh(i.type,i.memoizedProps)),c=!c),c&&$n&&Ni(i),Sy(i),o===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(r(317));e:{for(i=i.nextSibling,o=0;i;){if(i.nodeType===8)if(c=i.data,c==="/$"){if(o===0){$n=la(i.nextSibling);break e}o--}else c!=="$"&&c!=="$!"&&c!=="$?"||o++;i=i.nextSibling}$n=null}}else o===27?(o=$n,Hi(i.type)?(i=n0,n0=null,$n=i):$n=o):$n=hr?la(i.stateNode.nextSibling):null;return!0}function lu(){$n=hr=null,Wt=!1}function _y(){var i=na;return i!==null&&(ii===null?ii=i:ii.push.apply(ii,i),na=null),i}function Uo(i){na===null?na=[i]:na.push(i)}var zs=W(null),$o=null,N=null;function gi(i,o,c){de(zs,o._currentValue),o._currentValue=c}function Fi(i){i._currentValue=zs.current,te(zs)}function Zr(i,o,c){for(;i!==null;){var h=i.alternate;if((i.childLanes&o)!==o?(i.childLanes|=o,h!==null&&(h.childLanes|=o)):h!==null&&(h.childLanes&o)!==o&&(h.childLanes|=o),i===c)break;i=i.return}}function Nt(i,o,c,h){var y=i.child;for(y!==null&&(y.return=i);y!==null;){var w=y.dependencies;if(w!==null){var D=y.child;w=w.firstContext;e:for(;w!==null;){var F=w;w=y;for(var Y=0;Y<o.length;Y++)if(F.context===o[Y]){w.lanes|=c,F=w.alternate,F!==null&&(F.lanes|=c),Zr(w.return,c,i),h||(D=null);break e}w=F.next}}else if(y.tag===18){if(D=y.return,D===null)throw Error(r(341));D.lanes|=c,w=D.alternate,w!==null&&(w.lanes|=c),Zr(D,c,i),D=null}else D=y.child;if(D!==null)D.return=y;else for(D=y;D!==null;){if(D===i){D=null;break}if(y=D.sibling,y!==null){y.return=D.return,D=y;break}D=D.return}y=D}}function cu(i,o,c,h){i=null;for(var y=o,w=!1;y!==null;){if(!w){if((y.flags&524288)!==0)w=!0;else if((y.flags&262144)!==0)break}if(y.tag===10){var D=y.alternate;if(D===null)throw Error(r(387));if(D=D.memoizedProps,D!==null){var F=y.type;pi(y.pendingProps.value,D.value)||(i!==null?i.push(F):i=[F])}}else if(y===rt.current){if(D=y.alternate,D===null)throw Error(r(387));D.memoizedState.memoizedState!==y.memoizedState.memoizedState&&(i!==null?i.push(Cc):i=[Cc])}y=y.return}i!==null&&Nt(o,i,c,h),o.flags|=262144}function fd(i){for(i=i.firstContext;i!==null;){if(!pi(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function Us(i){$o=i,N=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Kn(i){return Cy($o,i)}function dd(i,o){return $o===null&&Us(i),Cy(i,o)}function Cy(i,o){var c=o._currentValue;if(o={context:o,memoizedValue:c,next:null},N===null){if(i===null)throw Error(r(308));N=o,i.dependencies={lanes:0,firstContext:o},i.flags|=524288}else N=N.next=o;return c}var Zx=typeof AbortController<"u"?AbortController:function(){var i=[],o=this.signal={aborted:!1,addEventListener:function(c,h){i.push(h)}};this.abort=function(){o.aborted=!0,i.forEach(function(c){return c()})}},Jx=e.unstable_scheduleCallback,Qx=e.unstable_NormalPriority,kn={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Jp(){return{controller:new Zx,data:new Map,refCount:0}}function uu(i){i.refCount--,i.refCount===0&&Jx(Qx,function(){i.controller.abort()})}var fu=null,Qp=0,Zl=0,Jr=null;function ew(i,o){if(fu===null){var c=fu=[];Qp=0,Zl=Jd(),Jr={status:"pending",value:void 0,then:function(h){c.push(h)}}}return Qp++,o.then(Ey,Ey),o}function Ey(){if(--Qp===0&&fu!==null){Jr!==null&&(Jr.status="fulfilled");var i=fu;fu=null,Zl=0,Jr=null;for(var o=0;o<i.length;o++)(0,i[o])()}}function tw(i,o){var c=[],h={status:"pending",value:null,reason:null,then:function(y){c.push(y)}};return i.then(function(){h.status="fulfilled",h.value=o;for(var y=0;y<c.length;y++)(0,c[y])(o)},function(y){for(h.status="rejected",h.reason=y,y=0;y<c.length;y++)(0,c[y])(void 0)}),h}var Ty=V.S;V.S=function(i,o){typeof o=="object"&&o!==null&&typeof o.then=="function"&&ew(i,o),Ty!==null&&Ty(i,o)};var $s=W(null);function ro(){var i=$s.current;return i!==null?i:jn.pooledCache}function hd(i,o){o===null?de($s,$s.current):de($s,o.pool)}function Ry(){var i=ro();return i===null?null:{parent:kn._currentValue,pool:i}}var Br=Error(r(460)),Ay=Error(r(474)),pd=Error(r(542)),em={then:function(){}};function ky(i){return i=i.status,i==="fulfilled"||i==="rejected"}function md(){}function tm(i,o,c){switch(c=i[c],c===void 0?i.push(o):c!==o&&(o.then(md,md),o=c),o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,My(i),i;default:if(typeof o.status=="string")o.then(md,md);else{if(i=jn,i!==null&&100<i.shellSuspendCounter)throw Error(r(482));i=o,i.status="pending",i.then(function(h){if(o.status==="pending"){var y=o;y.status="fulfilled",y.value=h}},function(h){if(o.status==="pending"){var y=o;y.status="rejected",y.reason=h}})}switch(o.status){case"fulfilled":return o.value;case"rejected":throw i=o.reason,My(i),i}throw Jl=o,Br}}var Jl=null;function Oy(){if(Jl===null)throw Error(r(459));var i=Jl;return Jl=null,i}function My(i){if(i===Br||i===pd)throw Error(r(483))}var Ta=!1;function Hs(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ql(i,o){i=i.updateQueue,o.updateQueue===i&&(o.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function Ho(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function io(i,o,c){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(bn&2)!==0){var y=h.pending;return y===null?o.next=o:(o.next=y.next,y.next=o),h.pending=o,o=ru(i),nu(i,null,c),o}return ta(i,h,o,c),ru(i)}function du(i,o,c){if(o=o.updateQueue,o!==null&&(o=o.shared,(c&4194048)!==0)){var h=o.lanes;h&=i.pendingLanes,c|=h,o.lanes=c,Nf(i,c)}}function ra(i,o){var c=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var y=null,w=null;if(c=c.firstBaseUpdate,c!==null){do{var D={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};w===null?y=w=D:w=w.next=D,c=c.next}while(c!==null);w===null?y=w=o:w=w.next=o}else y=w=o;c={baseState:h.baseState,firstBaseUpdate:y,lastBaseUpdate:w,shared:h.shared,callbacks:h.callbacks},i.updateQueue=c;return}i=c.lastBaseUpdate,i===null?c.firstBaseUpdate=o:i.next=o,c.lastBaseUpdate=o}var hu=!1;function ia(){if(hu){var i=Jr;if(i!==null)throw i}}function Dr(i,o,c,h){hu=!1;var y=i.updateQueue;Ta=!1;var w=y.firstBaseUpdate,D=y.lastBaseUpdate,F=y.shared.pending;if(F!==null){y.shared.pending=null;var Y=F,fe=Y.next;Y.next=null,D===null?w=fe:D.next=fe,D=Y;var be=i.alternate;be!==null&&(be=be.updateQueue,F=be.lastBaseUpdate,F!==D&&(F===null?be.firstBaseUpdate=fe:F.next=fe,be.lastBaseUpdate=Y))}if(w!==null){var _e=y.baseState;D=0,be=fe=Y=null,F=w;do{var pe=F.lane&-536870913,he=pe!==F.lane;if(he?(Xt&pe)===pe:(h&pe)===pe){pe!==0&&pe===Zl&&(hu=!0),be!==null&&(be=be.next={lane:0,tag:F.tag,payload:F.payload,callback:null,next:null});e:{var lt=i,st=F;pe=o;var Tn=c;switch(st.tag){case 1:if(lt=st.payload,typeof lt=="function"){_e=lt.call(Tn,_e,pe);break e}_e=lt;break e;case 3:lt.flags=lt.flags&-65537|128;case 0:if(lt=st.payload,pe=typeof lt=="function"?lt.call(Tn,_e,pe):lt,pe==null)break e;_e=g({},_e,pe);break e;case 2:Ta=!0}}pe=F.callback,pe!==null&&(i.flags|=64,he&&(i.flags|=8192),he=y.callbacks,he===null?y.callbacks=[pe]:he.push(pe))}else he={lane:pe,tag:F.tag,payload:F.payload,callback:F.callback,next:null},be===null?(fe=be=he,Y=_e):be=be.next=he,D|=pe;if(F=F.next,F===null){if(F=y.shared.pending,F===null)break;he=F,F=he.next,he.next=null,y.lastBaseUpdate=he,y.shared.pending=null}}while(!0);be===null&&(Y=_e),y.baseState=Y,y.firstBaseUpdate=fe,y.lastBaseUpdate=be,w===null&&(y.shared.lanes=0),Jo|=D,i.lanes=D,i.memoizedState=_e}}function Dy(i,o){if(typeof i!="function")throw Error(r(191,i));i.call(o)}function nm(i,o){var c=i.callbacks;if(c!==null)for(i.callbacks=null,i=0;i<c.length;i++)Dy(c[i],o)}var Vs=W(null),Vo=W(0);function ao(i,o){i=mo,de(Vo,i),de(Vs,o),mo=i|o.baseLanes}function gd(){de(Vo,mo),de(Vs,Vs.current)}function rm(){mo=Vo.current,te(Vs),te(Vo)}var aa=0,Dt=null,vn=null,Gt=null,ec=!1,Ws=!1,jr=!1,tc=0,Wo=0,Bi=null,jy=0;function Yt(){throw Error(r(321))}function pu(i,o){if(o===null)return!1;for(var c=0;c<o.length&&c<i.length;c++)if(!pi(i[c],o[c]))return!1;return!0}function im(i,o,c,h,y,w){return aa=w,Dt=o,o.memoizedState=null,o.updateQueue=null,o.lanes=0,V.H=i===null||i.memoizedState===null?Gy:Sm,jr=!1,w=c(h,y),jr=!1,Ws&&(w=Ly(o,c,h,y)),Iy(i),w}function Iy(i){V.H=Eu;var o=vn!==null&&vn.next!==null;if(aa=0,Gt=vn=Dt=null,ec=!1,Wo=0,Bi=null,o)throw Error(r(300));i===null||Cr||(i=i.dependencies,i!==null&&fd(i)&&(Cr=!0))}function Ly(i,o,c,h){Dt=i;var y=0;do{if(Ws&&(Bi=null),Wo=0,Ws=!1,25<=y)throw Error(r(301));if(y+=1,Gt=vn=null,i.updateQueue!=null){var w=i.updateQueue;w.lastEffect=null,w.events=null,w.stores=null,w.memoCache!=null&&(w.memoCache.index=0)}V.H=Yy,w=o(c,h)}while(Ws);return w}function am(){var i=V.H,o=i.useState()[0];return o=typeof o.then=="function"?mu(o):o,i=i.useState()[0],(vn!==null?vn.memoizedState:null)!==i&&(Dt.flags|=1024),o}function om(){var i=tc!==0;return tc=0,i}function Gs(i,o,c){o.updateQueue=i.updateQueue,o.flags&=-2053,i.lanes&=~c}function yd(i){if(ec){for(i=i.memoizedState;i!==null;){var o=i.queue;o!==null&&(o.pending=null),i=i.next}ec=!1}aa=0,Gt=vn=Dt=null,Ws=!1,Wo=tc=0,Bi=null}function Qr(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Gt===null?Dt.memoizedState=Gt=i:Gt=Gt.next=i,Gt}function sr(){if(vn===null){var i=Dt.alternate;i=i!==null?i.memoizedState:null}else i=vn.next;var o=Gt===null?Dt.memoizedState:Gt.next;if(o!==null)Gt=o,vn=i;else{if(i===null)throw Dt.alternate===null?Error(r(467)):Error(r(310));vn=i,i={memoizedState:vn.memoizedState,baseState:vn.baseState,baseQueue:vn.baseQueue,queue:vn.queue,next:null},Gt===null?Dt.memoizedState=Gt=i:Gt=Gt.next=i}return Gt}function Ys(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mu(i){var o=Wo;return Wo+=1,Bi===null&&(Bi=[]),i=tm(Bi,i,o),o=Dt,(Gt===null?o.memoizedState:Gt.next)===null&&(o=o.alternate,V.H=o===null||o.memoizedState===null?Gy:Sm),i}function vd(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return mu(i);if(i.$$typeof===O)return Kn(i)}throw Error(r(438,String(i)))}function gu(i){var o=null,c=Dt.updateQueue;if(c!==null&&(o=c.memoCache),o==null){var h=Dt.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(o={data:h.data.map(function(y){return y.slice()}),index:0})))}if(o==null&&(o={data:[],index:0}),c===null&&(c=Ys(),Dt.updateQueue=c),c.memoCache=o,c=o.data[o.index],c===void 0)for(c=o.data[o.index]=Array(i),h=0;h<i;h++)c[h]=j;return o.index++,c}function Ra(i,o){return typeof o=="function"?o(i):o}function bd(i){var o=sr();return sm(o,vn,i)}function sm(i,o,c){var h=i.queue;if(h===null)throw Error(r(311));h.lastRenderedReducer=c;var y=i.baseQueue,w=h.pending;if(w!==null){if(y!==null){var D=y.next;y.next=w.next,w.next=D}o.baseQueue=y=w,h.pending=null}if(w=i.baseState,y===null)i.memoizedState=w;else{o=y.next;var F=D=null,Y=null,fe=o,be=!1;do{var _e=fe.lane&-536870913;if(_e!==fe.lane?(Xt&_e)===_e:(aa&_e)===_e){var pe=fe.revertLane;if(pe===0)Y!==null&&(Y=Y.next={lane:0,revertLane:0,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null}),_e===Zl&&(be=!0);else if((aa&pe)===pe){fe=fe.next,pe===Zl&&(be=!0);continue}else _e={lane:0,revertLane:fe.revertLane,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},Y===null?(F=Y=_e,D=w):Y=Y.next=_e,Dt.lanes|=pe,Jo|=pe;_e=fe.action,jr&&c(w,_e),w=fe.hasEagerState?fe.eagerState:c(w,_e)}else pe={lane:_e,revertLane:fe.revertLane,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},Y===null?(F=Y=pe,D=w):Y=Y.next=pe,Dt.lanes|=_e,Jo|=_e;fe=fe.next}while(fe!==null&&fe!==o);if(Y===null?D=w:Y.next=F,!pi(w,i.memoizedState)&&(Cr=!0,be&&(c=Jr,c!==null)))throw c;i.memoizedState=w,i.baseState=D,i.baseQueue=Y,h.lastRenderedState=w}return y===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function lm(i){var o=sr(),c=o.queue;if(c===null)throw Error(r(311));c.lastRenderedReducer=i;var h=c.dispatch,y=c.pending,w=o.memoizedState;if(y!==null){c.pending=null;var D=y=y.next;do w=i(w,D.action),D=D.next;while(D!==y);pi(w,o.memoizedState)||(Cr=!0),o.memoizedState=w,o.baseQueue===null&&(o.baseState=w),c.lastRenderedState=w}return[w,h]}function cm(i,o,c){var h=Dt,y=sr(),w=Wt;if(w){if(c===void 0)throw Error(r(407));c=c()}else c=o();var D=!pi((vn||y).memoizedState,c);D&&(y.memoizedState=c,Cr=!0),y=y.queue;var F=wd.bind(null,h,y,i);if(bu(2048,8,F,[i]),y.getSnapshot!==o||D||Gt!==null&&Gt.memoizedState.tag&1){if(h.flags|=2048,nc(9,Td(),Py.bind(null,h,y,c,o),null),jn===null)throw Error(r(349));w||(aa&124)!==0||xd(h,o,c)}return c}function xd(i,o,c){i.flags|=16384,i={getSnapshot:o,value:c},o=Dt.updateQueue,o===null?(o=Ys(),Dt.updateQueue=o,o.stores=[i]):(c=o.stores,c===null?o.stores=[i]:c.push(i))}function Py(i,o,c,h){o.value=c,o.getSnapshot=h,um(o)&&fm(i)}function wd(i,o,c){return c(function(){um(o)&&fm(i)})}function um(i){var o=i.getSnapshot;i=i.value;try{var c=o();return!pi(i,c)}catch{return!0}}function fm(i){var o=Ls(i,2);o!==null&&wi(o,i,2)}function Sd(i){var o=Qr();if(typeof i=="function"){var c=i;if(i=c(),jr){ln(!0);try{c()}finally{ln(!1)}}}return o.memoizedState=o.baseState=i,o.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:i},o}function yu(i,o,c,h){return i.baseState=c,sm(i,vn,typeof h=="function"?h:Ra)}function nw(i,o,c,h,y){if(Od(i))throw Error(r(485));if(i=o.action,i!==null){var w={payload:y,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){w.listeners.push(D)}};V.T!==null?c(!0):w.isTransition=!1,h(w),c=o.pending,c===null?(w.next=o.pending=w,dm(o,w)):(w.next=c.next,o.pending=c.next=w)}}function dm(i,o){var c=o.action,h=o.payload,y=i.state;if(o.isTransition){var w=V.T,D={};V.T=D;try{var F=c(y,h),Y=V.S;Y!==null&&Y(D,F),hm(i,o,F)}catch(fe){_d(i,o,fe)}finally{V.T=w}}else try{w=c(y,h),hm(i,o,w)}catch(fe){_d(i,o,fe)}}function hm(i,o,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){Ny(i,o,h)},function(h){return _d(i,o,h)}):Ny(i,o,c)}function Ny(i,o,c){o.status="fulfilled",o.value=c,Fy(o),i.state=c,o=i.pending,o!==null&&(c=o.next,c===o?i.pending=null:(c=c.next,o.next=c,dm(i,c)))}function _d(i,o,c){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do o.status="rejected",o.reason=c,Fy(o),o=o.next;while(o!==h)}i.action=null}function Fy(i){i=i.listeners;for(var o=0;o<i.length;o++)(0,i[o])()}function Cd(i,o){return o}function pm(i,o){if(Wt){var c=jn.formState;if(c!==null){e:{var h=Dt;if(Wt){if($n){t:{for(var y=$n,w=Xr;y.nodeType!==8;){if(!w){y=null;break t}if(y=la(y.nextSibling),y===null){y=null;break t}}w=y.data,y=w==="F!"||w==="F"?y:null}if(y){$n=la(y.nextSibling),h=y.data==="F!";break e}}Ni(h)}h=!1}h&&(o=c[0])}}return c=Qr(),c.memoizedState=c.baseState=o,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Cd,lastRenderedState:o},c.queue=h,c=bm.bind(null,Dt,h),h.dispatch=c,h=Sd(!1),w=xm.bind(null,Dt,!1,h.queue),h=Qr(),y={state:o,dispatch:null,action:i,pending:null},h.queue=y,c=nw.bind(null,Dt,y,w,c),y.dispatch=c,h.memoizedState=i,[o,c,!1]}function Ed(i){var o=sr();return By(o,vn,i)}function By(i,o,c){if(o=sm(i,o,Cd)[0],i=bd(Ra)[0],typeof o=="object"&&o!==null&&typeof o.then=="function")try{var h=mu(o)}catch(D){throw D===Br?pd:D}else h=o;o=sr();var y=o.queue,w=y.dispatch;return c!==o.memoizedState&&(Dt.flags|=2048,nc(9,Td(),mm.bind(null,y,c),null)),[h,w,i]}function mm(i,o){i.action=o}function Ot(i){var o=sr(),c=vn;if(c!==null)return By(o,c,i);sr(),o=o.memoizedState,c=sr();var h=c.queue.dispatch;return c.memoizedState=i,[o,h,!1]}function nc(i,o,c,h){return i={tag:i,create:c,deps:h,inst:o,next:null},o=Dt.updateQueue,o===null&&(o=Ys(),Dt.updateQueue=o),c=o.lastEffect,c===null?o.lastEffect=i.next=i:(h=c.next,c.next=i,i.next=h,o.lastEffect=i),i}function Td(){return{destroy:void 0,resource:void 0}}function rc(){return sr().memoizedState}function vu(i,o,c,h){var y=Qr();h=h===void 0?null:h,Dt.flags|=i,y.memoizedState=nc(1|o,Td(),c,h)}function bu(i,o,c,h){var y=sr();h=h===void 0?null:h;var w=y.memoizedState.inst;vn!==null&&h!==null&&pu(h,vn.memoizedState.deps)?y.memoizedState=nc(o,w,c,h):(Dt.flags|=i,y.memoizedState=nc(1|o,w,c,h))}function zy(i,o){vu(8390656,8,i,o)}function yi(i,o){bu(2048,8,i,o)}function Uy(i,o){return bu(4,2,i,o)}function xu(i,o){return bu(4,4,i,o)}function Rd(i,o){if(typeof o=="function"){i=i();var c=o(i);return function(){typeof c=="function"?c():o(null)}}if(o!=null)return i=i(),o.current=i,function(){o.current=null}}function gm(i,o,c){c=c!=null?c.concat([i]):null,bu(4,4,Rd.bind(null,o,i),c)}function Ad(){}function ei(i,o){var c=sr();o=o===void 0?null:o;var h=c.memoizedState;return o!==null&&pu(o,h[1])?h[0]:(c.memoizedState=[i,o],i)}function oo(i,o){var c=sr();o=o===void 0?null:o;var h=c.memoizedState;if(o!==null&&pu(o,h[1]))return h[0];if(h=i(),jr){ln(!0);try{i()}finally{ln(!1)}}return c.memoizedState=[h,o],h}function wu(i,o,c){return c===void 0||(aa&1073741824)!==0?i.memoizedState=o:(i.memoizedState=c,i=x1(),Dt.lanes|=i,Jo|=i,c)}function ym(i,o,c,h){return pi(c,o)?c:Vs.current!==null?(i=wu(i,c,h),pi(i,o)||(Cr=!0),i):(aa&42)===0?(Cr=!0,i.memoizedState=c):(i=x1(),Dt.lanes|=i,Jo|=i,o)}function Su(i,o,c,h,y){var w=Q.p;Q.p=w!==0&&8>w?w:8;var D=V.T,F={};V.T=F,xm(i,!1,o,c);try{var Y=y(),fe=V.S;if(fe!==null&&fe(F,Y),Y!==null&&typeof Y=="object"&&typeof Y.then=="function"){var be=tw(Y,h);qs(i,o,be,Lr(i))}else qs(i,o,h,Lr(i))}catch(_e){qs(i,o,{then:function(){},status:"rejected",reason:_e},Lr())}finally{Q.p=w,V.T=D}}function $y(){}function _u(i,o,c,h){if(i.tag!==5)throw Error(r(476));var y=vm(i).queue;Su(i,y,o,Z,c===null?$y:function(){return kd(i),c(h)})}function vm(i){var o=i.memoizedState;if(o!==null)return o;o={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:Z},next:null};var c={};return o.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ra,lastRenderedState:c},next:null},i.memoizedState=o,i=i.alternate,i!==null&&(i.memoizedState=o),o}function kd(i){var o=vm(i).next.queue;qs(i,o,{},Lr())}function Cu(){return Kn(Cc)}function so(){return sr().memoizedState}function Hy(){return sr().memoizedState}function Go(i){for(var o=i.return;o!==null;){switch(o.tag){case 24:case 3:var c=Lr();i=Ho(c);var h=io(o,i,c);h!==null&&(wi(h,o,c),du(h,o,c)),o={cache:Jp()},i.payload=o;return}o=o.return}}function Vy(i,o,c){var h=Lr();c={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null},Od(i)?Wy(o,c):(c=ql(i,o,c,h),c!==null&&(wi(c,i,h),wm(c,o,h)))}function bm(i,o,c){var h=Lr();qs(i,o,c,h)}function qs(i,o,c,h){var y={lane:h,revertLane:0,action:c,hasEagerState:!1,eagerState:null,next:null};if(Od(i))Wy(o,y);else{var w=i.alternate;if(i.lanes===0&&(w===null||w.lanes===0)&&(w=o.lastRenderedReducer,w!==null))try{var D=o.lastRenderedState,F=w(D,c);if(y.hasEagerState=!0,y.eagerState=F,pi(F,D))return ta(i,o,y,0),jn===null&&Is(),!1}catch{}finally{}if(c=ql(i,o,y,h),c!==null)return wi(c,i,h),wm(c,o,h),!0}return!1}function xm(i,o,c,h){if(h={lane:2,revertLane:Jd(),action:h,hasEagerState:!1,eagerState:null,next:null},Od(i)){if(o)throw Error(r(479))}else o=ql(i,c,h,2),o!==null&&wi(o,i,2)}function Od(i){var o=i.alternate;return i===Dt||o!==null&&o===Dt}function Wy(i,o){Ws=ec=!0;var c=i.pending;c===null?o.next=o:(o.next=c.next,c.next=o),i.pending=o}function wm(i,o,c){if((c&4194048)!==0){var h=o.lanes;h&=i.pendingLanes,c|=h,o.lanes=c,Nf(i,c)}}var Eu={readContext:Kn,use:vd,useCallback:Yt,useContext:Yt,useEffect:Yt,useImperativeHandle:Yt,useLayoutEffect:Yt,useInsertionEffect:Yt,useMemo:Yt,useReducer:Yt,useRef:Yt,useState:Yt,useDebugValue:Yt,useDeferredValue:Yt,useTransition:Yt,useSyncExternalStore:Yt,useId:Yt,useHostTransitionStatus:Yt,useFormState:Yt,useActionState:Yt,useOptimistic:Yt,useMemoCache:Yt,useCacheRefresh:Yt},Gy={readContext:Kn,use:vd,useCallback:function(i,o){return Qr().memoizedState=[i,o===void 0?null:o],i},useContext:Kn,useEffect:zy,useImperativeHandle:function(i,o,c){c=c!=null?c.concat([i]):null,vu(4194308,4,Rd.bind(null,o,i),c)},useLayoutEffect:function(i,o){return vu(4194308,4,i,o)},useInsertionEffect:function(i,o){vu(4,2,i,o)},useMemo:function(i,o){var c=Qr();o=o===void 0?null:o;var h=i();if(jr){ln(!0);try{i()}finally{ln(!1)}}return c.memoizedState=[h,o],h},useReducer:function(i,o,c){var h=Qr();if(c!==void 0){var y=c(o);if(jr){ln(!0);try{c(o)}finally{ln(!1)}}}else y=o;return h.memoizedState=h.baseState=y,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:y},h.queue=i,i=i.dispatch=Vy.bind(null,Dt,i),[h.memoizedState,i]},useRef:function(i){var o=Qr();return i={current:i},o.memoizedState=i},useState:function(i){i=Sd(i);var o=i.queue,c=bm.bind(null,Dt,o);return o.dispatch=c,[i.memoizedState,c]},useDebugValue:Ad,useDeferredValue:function(i,o){var c=Qr();return wu(c,i,o)},useTransition:function(){var i=Sd(!1);return i=Su.bind(null,Dt,i.queue,!0,!1),Qr().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,o,c){var h=Dt,y=Qr();if(Wt){if(c===void 0)throw Error(r(407));c=c()}else{if(c=o(),jn===null)throw Error(r(349));(Xt&124)!==0||xd(h,o,c)}y.memoizedState=c;var w={value:c,getSnapshot:o};return y.queue=w,zy(wd.bind(null,h,w,i),[i]),h.flags|=2048,nc(9,Td(),Py.bind(null,h,w,c,o),null),c},useId:function(){var i=Qr(),o=jn.identifierPrefix;if(Wt){var c=no,h=Un;c=(h&~(1<<32-Vt(h)-1)).toString(32)+c,o="«"+o+"R"+c,c=tc++,0<c&&(o+="H"+c.toString(32)),o+="»"}else c=jy++,o="«"+o+"r"+c.toString(32)+"»";return i.memoizedState=o},useHostTransitionStatus:Cu,useFormState:pm,useActionState:pm,useOptimistic:function(i){var o=Qr();o.memoizedState=o.baseState=i;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return o.queue=c,o=xm.bind(null,Dt,!0,c),c.dispatch=o,[i,o]},useMemoCache:gu,useCacheRefresh:function(){return Qr().memoizedState=Go.bind(null,Dt)}},Sm={readContext:Kn,use:vd,useCallback:ei,useContext:Kn,useEffect:yi,useImperativeHandle:gm,useInsertionEffect:Uy,useLayoutEffect:xu,useMemo:oo,useReducer:bd,useRef:rc,useState:function(){return bd(Ra)},useDebugValue:Ad,useDeferredValue:function(i,o){var c=sr();return ym(c,vn.memoizedState,i,o)},useTransition:function(){var i=bd(Ra)[0],o=sr().memoizedState;return[typeof i=="boolean"?i:mu(i),o]},useSyncExternalStore:cm,useId:so,useHostTransitionStatus:Cu,useFormState:Ed,useActionState:Ed,useOptimistic:function(i,o){var c=sr();return yu(c,vn,i,o)},useMemoCache:gu,useCacheRefresh:Hy},Yy={readContext:Kn,use:vd,useCallback:ei,useContext:Kn,useEffect:yi,useImperativeHandle:gm,useInsertionEffect:Uy,useLayoutEffect:xu,useMemo:oo,useReducer:lm,useRef:rc,useState:function(){return lm(Ra)},useDebugValue:Ad,useDeferredValue:function(i,o){var c=sr();return vn===null?wu(c,i,o):ym(c,vn.memoizedState,i,o)},useTransition:function(){var i=lm(Ra)[0],o=sr().memoizedState;return[typeof i=="boolean"?i:mu(i),o]},useSyncExternalStore:cm,useId:so,useHostTransitionStatus:Cu,useFormState:Ot,useActionState:Ot,useOptimistic:function(i,o){var c=sr();return vn!==null?yu(c,vn,i,o):(c.baseState=i,[i,c.queue.dispatch])},useMemoCache:gu,useCacheRefresh:Hy},pr=null,ti=0;function Md(i){var o=ti;return ti+=1,pr===null&&(pr=[]),tm(pr,i,o)}function Tu(i,o){o=o.props.ref,i.ref=o!==void 0?o:null}function Ks(i,o){throw o.$$typeof===b?Error(r(525)):(i=Object.prototype.toString.call(o),Error(r(31,i==="[object Object]"?"object with keys {"+Object.keys(o).join(", ")+"}":i)))}function Xs(i){var o=i._init;return o(i._payload)}function _m(i){function o(ie,ee){if(i){var ue=ie.deletions;ue===null?(ie.deletions=[ee],ie.flags|=16):ue.push(ee)}}function c(ie,ee){if(!i)return null;for(;ee!==null;)o(ie,ee),ee=ee.sibling;return null}function h(ie){for(var ee=new Map;ie!==null;)ie.key!==null?ee.set(ie.key,ie):ee.set(ie.index,ie),ie=ie.sibling;return ee}function y(ie,ee){return ie=Fr(ie,ee),ie.index=0,ie.sibling=null,ie}function w(ie,ee,ue){return ie.index=ue,i?(ue=ie.alternate,ue!==null?(ue=ue.index,ue<ee?(ie.flags|=67108866,ee):ue):(ie.flags|=67108866,ee)):(ie.flags|=1048576,ee)}function D(ie){return i&&ie.alternate===null&&(ie.flags|=67108866),ie}function F(ie,ee,ue,we){return ee===null||ee.tag!==6?(ee=Kp(ue,ie.mode,we),ee.return=ie,ee):(ee=y(ee,ue),ee.return=ie,ee)}function Y(ie,ee,ue,we){var Ge=ue.type;return Ge===C?be(ie,ee,ue.props.children,we,ue.key):ee!==null&&(ee.elementType===Ge||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===H&&Xs(Ge)===ee.type)?(ee=y(ee,ue.props),Tu(ee,ue),ee.return=ie,ee):(ee=cd(ue.type,ue.key,ue.props,null,ie.mode,we),Tu(ee,ue),ee.return=ie,ee)}function fe(ie,ee,ue,we){return ee===null||ee.tag!==4||ee.stateNode.containerInfo!==ue.containerInfo||ee.stateNode.implementation!==ue.implementation?(ee=Kl(ue,ie.mode,we),ee.return=ie,ee):(ee=y(ee,ue.children||[]),ee.return=ie,ee)}function be(ie,ee,ue,we,Ge){return ee===null||ee.tag!==7?(ee=Fs(ue,ie.mode,we,Ge),ee.return=ie,ee):(ee=y(ee,ue),ee.return=ie,ee)}function _e(ie,ee,ue){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return ee=Kp(""+ee,ie.mode,ue),ee.return=ie,ee;if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case S:return ue=cd(ee.type,ee.key,ee.props,null,ie.mode,ue),Tu(ue,ee),ue.return=ie,ue;case T:return ee=Kl(ee,ie.mode,ue),ee.return=ie,ee;case H:var we=ee._init;return ee=we(ee._payload),_e(ie,ee,ue)}if(oe(ee)||K(ee))return ee=Fs(ee,ie.mode,ue,null),ee.return=ie,ee;if(typeof ee.then=="function")return _e(ie,Md(ee),ue);if(ee.$$typeof===O)return _e(ie,dd(ie,ee),ue);Ks(ie,ee)}return null}function pe(ie,ee,ue,we){var Ge=ee!==null?ee.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint")return Ge!==null?null:F(ie,ee,""+ue,we);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case S:return ue.key===Ge?Y(ie,ee,ue,we):null;case T:return ue.key===Ge?fe(ie,ee,ue,we):null;case H:return Ge=ue._init,ue=Ge(ue._payload),pe(ie,ee,ue,we)}if(oe(ue)||K(ue))return Ge!==null?null:be(ie,ee,ue,we,null);if(typeof ue.then=="function")return pe(ie,ee,Md(ue),we);if(ue.$$typeof===O)return pe(ie,ee,dd(ie,ue),we);Ks(ie,ue)}return null}function he(ie,ee,ue,we,Ge){if(typeof we=="string"&&we!==""||typeof we=="number"||typeof we=="bigint")return ie=ie.get(ue)||null,F(ee,ie,""+we,Ge);if(typeof we=="object"&&we!==null){switch(we.$$typeof){case S:return ie=ie.get(we.key===null?ue:we.key)||null,Y(ee,ie,we,Ge);case T:return ie=ie.get(we.key===null?ue:we.key)||null,fe(ee,ie,we,Ge);case H:var Ft=we._init;return we=Ft(we._payload),he(ie,ee,ue,we,Ge)}if(oe(we)||K(we))return ie=ie.get(ue)||null,be(ee,ie,we,Ge,null);if(typeof we.then=="function")return he(ie,ee,ue,Md(we),Ge);if(we.$$typeof===O)return he(ie,ee,ue,dd(ee,we),Ge);Ks(ee,we)}return null}function lt(ie,ee,ue,we){for(var Ge=null,Ft=null,et=ee,ct=ee=0,Rr=null;et!==null&&ct<ue.length;ct++){et.index>ct?(Rr=et,et=null):Rr=et.sibling;var en=pe(ie,et,ue[ct],we);if(en===null){et===null&&(et=Rr);break}i&&et&&en.alternate===null&&o(ie,et),ee=w(en,ee,ct),Ft===null?Ge=en:Ft.sibling=en,Ft=en,et=Rr}if(ct===ue.length)return c(ie,et),Wt&&Bs(ie,ct),Ge;if(et===null){for(;ct<ue.length;ct++)et=_e(ie,ue[ct],we),et!==null&&(ee=w(et,ee,ct),Ft===null?Ge=et:Ft.sibling=et,Ft=et);return Wt&&Bs(ie,ct),Ge}for(et=h(et);ct<ue.length;ct++)Rr=he(et,ie,ct,ue[ct],we),Rr!==null&&(i&&Rr.alternate!==null&&et.delete(Rr.key===null?ct:Rr.key),ee=w(Rr,ee,ct),Ft===null?Ge=Rr:Ft.sibling=Rr,Ft=Rr);return i&&et.forEach(function(ls){return o(ie,ls)}),Wt&&Bs(ie,ct),Ge}function st(ie,ee,ue,we){if(ue==null)throw Error(r(151));for(var Ge=null,Ft=null,et=ee,ct=ee=0,Rr=null,en=ue.next();et!==null&&!en.done;ct++,en=ue.next()){et.index>ct?(Rr=et,et=null):Rr=et.sibling;var ls=pe(ie,et,en.value,we);if(ls===null){et===null&&(et=Rr);break}i&&et&&ls.alternate===null&&o(ie,et),ee=w(ls,ee,ct),Ft===null?Ge=ls:Ft.sibling=ls,Ft=ls,et=Rr}if(en.done)return c(ie,et),Wt&&Bs(ie,ct),Ge;if(et===null){for(;!en.done;ct++,en=ue.next())en=_e(ie,en.value,we),en!==null&&(ee=w(en,ee,ct),Ft===null?Ge=en:Ft.sibling=en,Ft=en);return Wt&&Bs(ie,ct),Ge}for(et=h(et);!en.done;ct++,en=ue.next())en=he(et,ie,ct,en.value,we),en!==null&&(i&&en.alternate!==null&&et.delete(en.key===null?ct:en.key),ee=w(en,ee,ct),Ft===null?Ge=en:Ft.sibling=en,Ft=en);return i&&et.forEach(function(Fw){return o(ie,Fw)}),Wt&&Bs(ie,ct),Ge}function Tn(ie,ee,ue,we){if(typeof ue=="object"&&ue!==null&&ue.type===C&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case S:e:{for(var Ge=ue.key;ee!==null;){if(ee.key===Ge){if(Ge=ue.type,Ge===C){if(ee.tag===7){c(ie,ee.sibling),we=y(ee,ue.props.children),we.return=ie,ie=we;break e}}else if(ee.elementType===Ge||typeof Ge=="object"&&Ge!==null&&Ge.$$typeof===H&&Xs(Ge)===ee.type){c(ie,ee.sibling),we=y(ee,ue.props),Tu(we,ue),we.return=ie,ie=we;break e}c(ie,ee);break}else o(ie,ee);ee=ee.sibling}ue.type===C?(we=Fs(ue.props.children,ie.mode,we,ue.key),we.return=ie,ie=we):(we=cd(ue.type,ue.key,ue.props,null,ie.mode,we),Tu(we,ue),we.return=ie,ie=we)}return D(ie);case T:e:{for(Ge=ue.key;ee!==null;){if(ee.key===Ge)if(ee.tag===4&&ee.stateNode.containerInfo===ue.containerInfo&&ee.stateNode.implementation===ue.implementation){c(ie,ee.sibling),we=y(ee,ue.children||[]),we.return=ie,ie=we;break e}else{c(ie,ee);break}else o(ie,ee);ee=ee.sibling}we=Kl(ue,ie.mode,we),we.return=ie,ie=we}return D(ie);case H:return Ge=ue._init,ue=Ge(ue._payload),Tn(ie,ee,ue,we)}if(oe(ue))return lt(ie,ee,ue,we);if(K(ue)){if(Ge=K(ue),typeof Ge!="function")throw Error(r(150));return ue=Ge.call(ue),st(ie,ee,ue,we)}if(typeof ue.then=="function")return Tn(ie,ee,Md(ue),we);if(ue.$$typeof===O)return Tn(ie,ee,dd(ie,ue),we);Ks(ie,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"||typeof ue=="bigint"?(ue=""+ue,ee!==null&&ee.tag===6?(c(ie,ee.sibling),we=y(ee,ue),we.return=ie,ie=we):(c(ie,ee),we=Kp(ue,ie.mode,we),we.return=ie,ie=we),D(ie)):c(ie,ee)}return function(ie,ee,ue,we){try{ti=0;var Ge=Tn(ie,ee,ue,we);return pr=null,Ge}catch(et){if(et===Br||et===pd)throw et;var Ft=Kr(29,et,null,ie.mode);return Ft.lanes=we,Ft.return=ie,Ft}finally{}}}var Zs=_m(!0),qy=_m(!1),vi=W(null),zr=null;function zi(i){var o=i.alternate;de(Xn,Xn.current&1),de(vi,i),zr===null&&(o===null||Vs.current!==null||o.memoizedState!==null)&&(zr=i)}function Ky(i){if(i.tag===22){if(de(Xn,Xn.current),de(vi,i),zr===null){var o=i.alternate;o!==null&&o.memoizedState!==null&&(zr=i)}}else lo()}function lo(){de(Xn,Xn.current),de(vi,vi.current)}function Aa(i){te(vi),zr===i&&(zr=null),te(Xn)}var Xn=W(0);function Ru(i){for(var o=i;o!==null;){if(o.tag===13){var c=o.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||c.data==="$?"||$r(c)))return o}else if(o.tag===19&&o.memoizedProps.revealOrder!==void 0){if((o.flags&128)!==0)return o}else if(o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return null;o=o.return}o.sibling.return=o.return,o=o.sibling}return null}function ic(i,o,c,h){o=i.memoizedState,c=c(h,o),c=c==null?o:g({},o,c),i.memoizedState=c,i.lanes===0&&(i.updateQueue.baseState=c)}var Au={enqueueSetState:function(i,o,c){i=i._reactInternals;var h=Lr(),y=Ho(h);y.payload=o,c!=null&&(y.callback=c),o=io(i,y,h),o!==null&&(wi(o,i,h),du(o,i,h))},enqueueReplaceState:function(i,o,c){i=i._reactInternals;var h=Lr(),y=Ho(h);y.tag=1,y.payload=o,c!=null&&(y.callback=c),o=io(i,y,h),o!==null&&(wi(o,i,h),du(o,i,h))},enqueueForceUpdate:function(i,o){i=i._reactInternals;var c=Lr(),h=Ho(c);h.tag=2,o!=null&&(h.callback=o),o=io(i,h,c),o!==null&&(wi(o,i,c),du(o,i,c))}};function ku(i,o,c,h,y,w,D){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,w,D):o.prototype&&o.prototype.isPureReactComponent?!Ea(c,h)||!Ea(y,w):!0}function Xy(i,o,c,h){i=o.state,typeof o.componentWillReceiveProps=="function"&&o.componentWillReceiveProps(c,h),typeof o.UNSAFE_componentWillReceiveProps=="function"&&o.UNSAFE_componentWillReceiveProps(c,h),o.state!==i&&Au.enqueueReplaceState(o,o.state,null)}function Yo(i,o){var c=o;if("ref"in o){c={};for(var h in o)h!=="ref"&&(c[h]=o[h])}if(i=i.defaultProps){c===o&&(c=g({},c));for(var y in i)c[y]===void 0&&(c[y]=i[y])}return c}var Js=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var o=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(o))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)};function Cm(i){Js(i)}function Dd(i){console.error(i)}function Zy(i){Js(i)}function Ou(i,o){try{var c=i.onUncaughtError;c(o.value,{componentStack:o.stack})}catch(h){setTimeout(function(){throw h})}}function ka(i,o,c){try{var h=i.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:o.tag===1?o.stateNode:null})}catch(y){setTimeout(function(){throw y})}}function jd(i,o,c){return c=Ho(c),c.tag=3,c.payload={element:null},c.callback=function(){Ou(i,o)},c}function Em(i){return i=Ho(i),i.tag=3,i}function Jy(i,o,c,h){var y=c.type.getDerivedStateFromError;if(typeof y=="function"){var w=h.value;i.payload=function(){return y(w)},i.callback=function(){ka(o,c,h)}}var D=c.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(i.callback=function(){ka(o,c,h),typeof y!="function"&&(Qo===null?Qo=new Set([this]):Qo.add(this));var F=h.stack;this.componentDidCatch(h.value,{componentStack:F!==null?F:""})})}function Qy(i,o,c,h,y){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(o=c.alternate,o!==null&&cu(o,c,y,!0),c=vi.current,c!==null){switch(c.tag){case 13:return zr===null?Vm():c.alternate===null&&Zn===0&&(Zn=3),c.flags&=-257,c.flags|=65536,c.lanes=y,h===em?c.flags|=16384:(o=c.updateQueue,o===null?c.updateQueue=new Set([h]):o.add(h),Ym(i,h,y)),!1;case 22:return c.flags|=65536,h===em?c.flags|=16384:(o=c.updateQueue,o===null?(o={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=o):(c=o.retryQueue,c===null?o.retryQueue=new Set([h]):c.add(h)),Ym(i,h,y)),!1}throw Error(r(435,c.tag))}return Ym(i,h,y),Vm(),!1}if(Wt)return o=vi.current,o!==null?((o.flags&65536)===0&&(o.flags|=256),o.flags|=65536,o.lanes=y,h!==Xl&&(i=Error(r(422),{cause:h}),Uo(Nr(i,c)))):(h!==Xl&&(o=Error(r(423),{cause:h}),Uo(Nr(o,c))),i=i.current.alternate,i.flags|=65536,y&=-y,i.lanes|=y,h=Nr(h,c),y=jd(i.stateNode,h,y),ra(i,y),Zn!==4&&(Zn=2)),!1;var w=Error(r(520),{cause:h});if(w=Nr(w,c),zu===null?zu=[w]:zu.push(w),Zn!==4&&(Zn=2),o===null)return!0;h=Nr(h,c),c=o;do{switch(c.tag){case 3:return c.flags|=65536,i=y&-y,c.lanes|=i,i=jd(c.stateNode,h,i),ra(c,i),!1;case 1:if(o=c.type,w=c.stateNode,(c.flags&128)===0&&(typeof o.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Qo===null||!Qo.has(w))))return c.flags|=65536,y&=-y,c.lanes|=y,y=Em(y),Jy(y,i,c,h),ra(c,y),!1}c=c.return}while(c!==null);return!1}var e1=Error(r(461)),Cr=!1;function Nn(i,o,c,h){o.child=i===null?qy(o,null,c,h):Zs(o,i.child,c,h)}function Id(i,o,c,h,y){c=c.render;var w=o.ref;if("ref"in h){var D={};for(var F in h)F!=="ref"&&(D[F]=h[F])}else D=h;return Us(o),h=im(i,o,c,D,w,y),F=om(),i!==null&&!Cr?(Gs(i,o,y),co(i,o,y)):(Wt&&F&&Zp(o),o.flags|=1,Nn(i,o,h,y),o.child)}function Ld(i,o,c,h,y){if(i===null){var w=c.type;return typeof w=="function"&&!Ns(w)&&w.defaultProps===void 0&&c.compare===null?(o.tag=15,o.type=w,Pd(i,o,w,h,y)):(i=cd(c.type,null,h,o,o.mode,y),i.ref=o.ref,i.return=o,o.child=i)}if(w=i.child,!oa(i,y)){var D=w.memoizedProps;if(c=c.compare,c=c!==null?c:Ea,c(D,h)&&i.ref===o.ref)return co(i,o,y)}return o.flags|=1,i=Fr(w,h),i.ref=o.ref,i.return=o,o.child=i}function Pd(i,o,c,h,y){if(i!==null){var w=i.memoizedProps;if(Ea(w,h)&&i.ref===o.ref)if(Cr=!1,o.pendingProps=h=w,oa(i,y))(i.flags&131072)!==0&&(Cr=!0);else return o.lanes=i.lanes,co(i,o,y)}return ac(i,o,c,h,y)}function Mu(i,o,c){var h=o.pendingProps,y=h.children,w=i!==null?i.memoizedState:null;if(h.mode==="hidden"){if((o.flags&128)!==0){if(h=w!==null?w.baseLanes|c:c,i!==null){for(y=o.child=i.child,w=0;y!==null;)w=w|y.lanes|y.childLanes,y=y.sibling;o.childLanes=w&~h}else o.childLanes=0,o.child=null;return Qs(i,o,h,c)}if((c&536870912)!==0)o.memoizedState={baseLanes:0,cachePool:null},i!==null&&hd(o,w!==null?w.cachePool:null),w!==null?ao(o,w):gd(),Ky(o);else return o.lanes=o.childLanes=536870912,Qs(i,o,w!==null?w.baseLanes|c:c,c)}else w!==null?(hd(o,w.cachePool),ao(o,w),lo(),o.memoizedState=null):(i!==null&&hd(o,null),gd(),lo());return Nn(i,o,y,c),o.child}function Qs(i,o,c,h){var y=ro();return y=y===null?null:{parent:kn._currentValue,pool:y},o.memoizedState={baseLanes:c,cachePool:y},i!==null&&hd(o,null),gd(),Ky(o),i!==null&&cu(i,o,h,!0),null}function nt(i,o){var c=o.ref;if(c===null)i!==null&&i.ref!==null&&(o.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(r(284));(i===null||i.ref!==c)&&(o.flags|=4194816)}}function ac(i,o,c,h,y){return Us(o),c=im(i,o,c,h,void 0,y),h=om(),i!==null&&!Cr?(Gs(i,o,y),co(i,o,y)):(Wt&&h&&Zp(o),o.flags|=1,Nn(i,o,c,y),o.child)}function Nd(i,o,c,h,y,w){return Us(o),o.updateQueue=null,c=Ly(o,h,c,y),Iy(i),h=om(),i!==null&&!Cr?(Gs(i,o,w),co(i,o,w)):(Wt&&h&&Zp(o),o.flags|=1,Nn(i,o,c,w),o.child)}function qo(i,o,c,h,y){if(Us(o),o.stateNode===null){var w=Ps,D=c.contextType;typeof D=="object"&&D!==null&&(w=Kn(D)),w=new c(h,w),o.memoizedState=w.state!==null&&w.state!==void 0?w.state:null,w.updater=Au,o.stateNode=w,w._reactInternals=o,w=o.stateNode,w.props=h,w.state=o.memoizedState,w.refs={},Hs(o),D=c.contextType,w.context=typeof D=="object"&&D!==null?Kn(D):Ps,w.state=o.memoizedState,D=c.getDerivedStateFromProps,typeof D=="function"&&(ic(o,c,D,h),w.state=o.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof w.getSnapshotBeforeUpdate=="function"||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(D=w.state,typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount(),D!==w.state&&Au.enqueueReplaceState(w,w.state,null),Dr(o,h,w,y),ia(),w.state=o.memoizedState),typeof w.componentDidMount=="function"&&(o.flags|=4194308),h=!0}else if(i===null){w=o.stateNode;var F=o.memoizedProps,Y=Yo(c,F);w.props=Y;var fe=w.context,be=c.contextType;D=Ps,typeof be=="object"&&be!==null&&(D=Kn(be));var _e=c.getDerivedStateFromProps;be=typeof _e=="function"||typeof w.getSnapshotBeforeUpdate=="function",F=o.pendingProps!==F,be||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(F||fe!==D)&&Xy(o,w,h,D),Ta=!1;var pe=o.memoizedState;w.state=pe,Dr(o,h,w,y),ia(),fe=o.memoizedState,F||pe!==fe||Ta?(typeof _e=="function"&&(ic(o,c,_e,h),fe=o.memoizedState),(Y=Ta||ku(o,c,Y,h,pe,fe,D))?(be||typeof w.UNSAFE_componentWillMount!="function"&&typeof w.componentWillMount!="function"||(typeof w.componentWillMount=="function"&&w.componentWillMount(),typeof w.UNSAFE_componentWillMount=="function"&&w.UNSAFE_componentWillMount()),typeof w.componentDidMount=="function"&&(o.flags|=4194308)):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),o.memoizedProps=h,o.memoizedState=fe),w.props=h,w.state=fe,w.context=D,h=Y):(typeof w.componentDidMount=="function"&&(o.flags|=4194308),h=!1)}else{w=o.stateNode,Ql(i,o),D=o.memoizedProps,be=Yo(c,D),w.props=be,_e=o.pendingProps,pe=w.context,fe=c.contextType,Y=Ps,typeof fe=="object"&&fe!==null&&(Y=Kn(fe)),F=c.getDerivedStateFromProps,(fe=typeof F=="function"||typeof w.getSnapshotBeforeUpdate=="function")||typeof w.UNSAFE_componentWillReceiveProps!="function"&&typeof w.componentWillReceiveProps!="function"||(D!==_e||pe!==Y)&&Xy(o,w,h,Y),Ta=!1,pe=o.memoizedState,w.state=pe,Dr(o,h,w,y),ia();var he=o.memoizedState;D!==_e||pe!==he||Ta||i!==null&&i.dependencies!==null&&fd(i.dependencies)?(typeof F=="function"&&(ic(o,c,F,h),he=o.memoizedState),(be=Ta||ku(o,c,be,h,pe,he,Y)||i!==null&&i.dependencies!==null&&fd(i.dependencies))?(fe||typeof w.UNSAFE_componentWillUpdate!="function"&&typeof w.componentWillUpdate!="function"||(typeof w.componentWillUpdate=="function"&&w.componentWillUpdate(h,he,Y),typeof w.UNSAFE_componentWillUpdate=="function"&&w.UNSAFE_componentWillUpdate(h,he,Y)),typeof w.componentDidUpdate=="function"&&(o.flags|=4),typeof w.getSnapshotBeforeUpdate=="function"&&(o.flags|=1024)):(typeof w.componentDidUpdate!="function"||D===i.memoizedProps&&pe===i.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||D===i.memoizedProps&&pe===i.memoizedState||(o.flags|=1024),o.memoizedProps=h,o.memoizedState=he),w.props=h,w.state=he,w.context=Y,h=be):(typeof w.componentDidUpdate!="function"||D===i.memoizedProps&&pe===i.memoizedState||(o.flags|=4),typeof w.getSnapshotBeforeUpdate!="function"||D===i.memoizedProps&&pe===i.memoizedState||(o.flags|=1024),h=!1)}return w=h,nt(i,o),h=(o.flags&128)!==0,w||h?(w=o.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:w.render(),o.flags|=1,i!==null&&h?(o.child=Zs(o,i.child,null,y),o.child=Zs(o,null,c,y)):Nn(i,o,c,y),o.memoizedState=w.state,i=o.child):i=co(i,o,y),i}function t1(i,o,c,h){return lu(),o.flags|=256,Nn(i,o,c,h),o.child}var Du={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Fd(i){return{baseLanes:i,cachePool:Ry()}}function Er(i,o,c){return i=i!==null?i.childLanes&~c:0,o&&(i|=$i),i}function n1(i,o,c){var h=o.pendingProps,y=!1,w=(o.flags&128)!==0,D;if((D=w)||(D=i!==null&&i.memoizedState===null?!1:(Xn.current&2)!==0),D&&(y=!0,o.flags&=-129),D=(o.flags&32)!==0,o.flags&=-33,i===null){if(Wt){if(y?zi(o):lo(),Wt){var F=$n,Y;if(Y=F){e:{for(Y=F,F=Xr;Y.nodeType!==8;){if(!F){F=null;break e}if(Y=la(Y.nextSibling),Y===null){F=null;break e}}F=Y}F!==null?(o.memoizedState={dehydrated:F,treeContext:Pn!==null?{id:Un,overflow:no}:null,retryLane:536870912,hydrationErrors:null},Y=Kr(18,null,null,0),Y.stateNode=F,Y.return=o,o.child=Y,hr=o,$n=null,Y=!0):Y=!1}Y||Ni(o)}if(F=o.memoizedState,F!==null&&(F=F.dehydrated,F!==null))return $r(F)?o.lanes=32:o.lanes=536870912,null;Aa(o)}return F=h.children,h=h.fallback,y?(lo(),y=o.mode,F=ju({mode:"hidden",children:F},y),h=Fs(h,y,c,null),F.return=o,h.return=o,F.sibling=h,o.child=F,y=o.child,y.memoizedState=Fd(c),y.childLanes=Er(i,D,c),o.memoizedState=Du,h):(zi(o),Tm(o,F))}if(Y=i.memoizedState,Y!==null&&(F=Y.dehydrated,F!==null)){if(w)o.flags&256?(zi(o),o.flags&=-257,o=Rm(i,o,c)):o.memoizedState!==null?(lo(),o.child=i.child,o.flags|=128,o=null):(lo(),y=h.fallback,F=o.mode,h=ju({mode:"visible",children:h.children},F),y=Fs(y,F,c,null),y.flags|=2,h.return=o,y.return=o,h.sibling=y,o.child=h,Zs(o,i.child,null,c),h=o.child,h.memoizedState=Fd(c),h.childLanes=Er(i,D,c),o.memoizedState=Du,o=y);else if(zi(o),$r(F)){if(D=F.nextSibling&&F.nextSibling.dataset,D)var fe=D.dgst;D=fe,h=Error(r(419)),h.stack="",h.digest=D,Uo({value:h,source:null,stack:null}),o=Rm(i,o,c)}else if(Cr||cu(i,o,c,!1),D=(c&i.childLanes)!==0,Cr||D){if(D=jn,D!==null&&(h=c&-c,h=(h&42)!==0?1:Wc(h),h=(h&(D.suspendedLanes|c))!==0?0:h,h!==0&&h!==Y.retryLane))throw Y.retryLane=h,Ls(i,h),wi(D,i,h),e1;F.data==="$?"||Vm(),o=Rm(i,o,c)}else F.data==="$?"?(o.flags|=192,o.child=i.child,o=null):(i=Y.treeContext,$n=la(F.nextSibling),hr=o,Wt=!0,na=null,Xr=!1,i!==null&&(Li[Pi++]=Un,Li[Pi++]=no,Li[Pi++]=Pn,Un=i.id,no=i.overflow,Pn=o),o=Tm(o,h.children),o.flags|=4096);return o}return y?(lo(),y=h.fallback,F=o.mode,Y=i.child,fe=Y.sibling,h=Fr(Y,{mode:"hidden",children:h.children}),h.subtreeFlags=Y.subtreeFlags&65011712,fe!==null?y=Fr(fe,y):(y=Fs(y,F,c,null),y.flags|=2),y.return=o,h.return=o,h.sibling=y,o.child=h,h=y,y=o.child,F=i.child.memoizedState,F===null?F=Fd(c):(Y=F.cachePool,Y!==null?(fe=kn._currentValue,Y=Y.parent!==fe?{parent:fe,pool:fe}:Y):Y=Ry(),F={baseLanes:F.baseLanes|c,cachePool:Y}),y.memoizedState=F,y.childLanes=Er(i,D,c),o.memoizedState=Du,h):(zi(o),c=i.child,i=c.sibling,c=Fr(c,{mode:"visible",children:h.children}),c.return=o,c.sibling=null,i!==null&&(D=o.deletions,D===null?(o.deletions=[i],o.flags|=16):D.push(i)),o.child=c,o.memoizedState=null,c)}function Tm(i,o){return o=ju({mode:"visible",children:o},i.mode),o.return=i,i.child=o}function ju(i,o){return i=Kr(22,i,null,o),i.lanes=0,i.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},i}function Rm(i,o,c){return Zs(o,i.child,null,c),i=Tm(o,o.pendingProps.children),i.flags|=2,o.memoizedState=null,i}function Am(i,o,c){i.lanes|=o;var h=i.alternate;h!==null&&(h.lanes|=o),Zr(i.return,o,c)}function km(i,o,c,h,y){var w=i.memoizedState;w===null?i.memoizedState={isBackwards:o,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:y}:(w.isBackwards=o,w.rendering=null,w.renderingStartTime=0,w.last=h,w.tail=c,w.tailMode=y)}function r1(i,o,c){var h=o.pendingProps,y=h.revealOrder,w=h.tail;if(Nn(i,o,h.children,c),h=Xn.current,(h&2)!==0)h=h&1|2,o.flags|=128;else{if(i!==null&&(i.flags&128)!==0)e:for(i=o.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Am(i,c,o);else if(i.tag===19)Am(i,c,o);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===o)break e;for(;i.sibling===null;){if(i.return===null||i.return===o)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}h&=1}switch(de(Xn,h),y){case"forwards":for(c=o.child,y=null;c!==null;)i=c.alternate,i!==null&&Ru(i)===null&&(y=c),c=c.sibling;c=y,c===null?(y=o.child,o.child=null):(y=c.sibling,c.sibling=null),km(o,!1,y,c,w);break;case"backwards":for(c=null,y=o.child,o.child=null;y!==null;){if(i=y.alternate,i!==null&&Ru(i)===null){o.child=y;break}i=y.sibling,y.sibling=c,c=y,y=i}km(o,!0,c,null,w);break;case"together":km(o,!1,null,null,void 0);break;default:o.memoizedState=null}return o.child}function co(i,o,c){if(i!==null&&(o.dependencies=i.dependencies),Jo|=o.lanes,(c&o.childLanes)===0)if(i!==null){if(cu(i,o,c,!1),(c&o.childLanes)===0)return null}else return null;if(i!==null&&o.child!==i.child)throw Error(r(153));if(o.child!==null){for(i=o.child,c=Fr(i,i.pendingProps),o.child=c,c.return=o;i.sibling!==null;)i=i.sibling,c=c.sibling=Fr(i,i.pendingProps),c.return=o;c.sibling=null}return o.child}function oa(i,o){return(i.lanes&o)!==0?!0:(i=i.dependencies,!!(i!==null&&fd(i)))}function Ur(i,o,c){switch(o.tag){case 3:Ke(o,o.stateNode.containerInfo),gi(o,kn,i.memoizedState.cache),lu();break;case 27:case 5:Be(o);break;case 4:Ke(o,o.stateNode.containerInfo);break;case 10:gi(o,o.type,o.memoizedProps.value);break;case 13:var h=o.memoizedState;if(h!==null)return h.dehydrated!==null?(zi(o),o.flags|=128,null):(c&o.child.childLanes)!==0?n1(i,o,c):(zi(o),i=co(i,o,c),i!==null?i.sibling:null);zi(o);break;case 19:var y=(i.flags&128)!==0;if(h=(c&o.childLanes)!==0,h||(cu(i,o,c,!1),h=(c&o.childLanes)!==0),y){if(h)return r1(i,o,c);o.flags|=128}if(y=o.memoizedState,y!==null&&(y.rendering=null,y.tail=null,y.lastEffect=null),de(Xn,Xn.current),h)break;return null;case 22:case 23:return o.lanes=0,Mu(i,o,c);case 24:gi(o,kn,i.memoizedState.cache)}return co(i,o,c)}function Bd(i,o,c){if(i!==null)if(i.memoizedProps!==o.pendingProps)Cr=!0;else{if(!oa(i,c)&&(o.flags&128)===0)return Cr=!1,Ur(i,o,c);Cr=(i.flags&131072)!==0}else Cr=!1,Wt&&(o.flags&1048576)!==0&&Xp(o,au,o.index);switch(o.lanes=0,o.tag){case 16:e:{i=o.pendingProps;var h=o.elementType,y=h._init;if(h=y(h._payload),o.type=h,typeof h=="function")Ns(h)?(i=Yo(h,i),o.tag=1,o=qo(null,o,h,i,c)):(o.tag=0,o=ac(null,o,h,i,c));else{if(h!=null){if(y=h.$$typeof,y===P){o.tag=11,o=Id(null,o,h,i,c);break e}else if(y===B){o.tag=14,o=Ld(null,o,h,i,c);break e}}throw o=le(h)||h,Error(r(306,o,""))}}return o;case 0:return ac(i,o,o.type,o.pendingProps,c);case 1:return h=o.type,y=Yo(h,o.pendingProps),qo(i,o,h,y,c);case 3:e:{if(Ke(o,o.stateNode.containerInfo),i===null)throw Error(r(387));h=o.pendingProps;var w=o.memoizedState;y=w.element,Ql(i,o),Dr(o,h,null,c);var D=o.memoizedState;if(h=D.cache,gi(o,kn,h),h!==w.cache&&Nt(o,[kn],c,!0),ia(),h=D.element,w.isDehydrated)if(w={element:h,isDehydrated:!1,cache:D.cache},o.updateQueue.baseState=w,o.memoizedState=w,o.flags&256){o=t1(i,o,h,c);break e}else if(h!==y){y=Nr(Error(r(424)),o),Uo(y),o=t1(i,o,h,c);break e}else{switch(i=o.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for($n=la(i.firstChild),hr=o,Wt=!0,na=null,Xr=!0,c=qy(o,null,h,c),o.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(lu(),h===y){o=co(i,o,c);break e}Nn(i,o,h,c)}o=o.child}return o;case 26:return nt(i,o),i===null?(c=Q1(o.type,null,o.pendingProps,null))?o.memoizedState=c:Wt||(c=o.type,i=o.pendingProps,h=nl(Re.current).createElement(c),h[ot]=o,h[vt]=i,yr(h,c,i),_r(h),o.stateNode=h):o.memoizedState=Q1(o.type,i.memoizedProps,o.pendingProps,i.memoizedState),null;case 27:return Be(o),i===null&&Wt&&(h=o.stateNode=X1(o.type,o.pendingProps,Re.current),hr=o,Xr=!0,y=$n,Hi(o.type)?(n0=y,$n=la(h.firstChild)):$n=y),Nn(i,o,o.pendingProps.children,c),nt(i,o),i===null&&(o.flags|=4194304),o.child;case 5:return i===null&&Wt&&((y=h=$n)&&(h=q1(h,o.type,o.pendingProps,Xr),h!==null?(o.stateNode=h,hr=o,$n=la(h.firstChild),Xr=!1,y=!0):y=!1),y||Ni(o)),Be(o),y=o.type,w=o.pendingProps,D=i!==null?i.memoizedProps:null,h=w.children,nh(y,w)?h=null:D!==null&&nh(y,D)&&(o.flags|=32),o.memoizedState!==null&&(y=im(i,o,am,null,null,c),Cc._currentValue=y),nt(i,o),Nn(i,o,h,c),o.child;case 6:return i===null&&Wt&&((i=c=$n)&&(c=ih(c,o.pendingProps,Xr),c!==null?(o.stateNode=c,hr=o,$n=null,i=!0):i=!1),i||Ni(o)),null;case 13:return n1(i,o,c);case 4:return Ke(o,o.stateNode.containerInfo),h=o.pendingProps,i===null?o.child=Zs(o,null,h,c):Nn(i,o,h,c),o.child;case 11:return Id(i,o,o.type,o.pendingProps,c);case 7:return Nn(i,o,o.pendingProps,c),o.child;case 8:return Nn(i,o,o.pendingProps.children,c),o.child;case 12:return Nn(i,o,o.pendingProps.children,c),o.child;case 10:return h=o.pendingProps,gi(o,o.type,h.value),Nn(i,o,h.children,c),o.child;case 9:return y=o.type._context,h=o.pendingProps.children,Us(o),y=Kn(y),h=h(y),o.flags|=1,Nn(i,o,h,c),o.child;case 14:return Ld(i,o,o.type,o.pendingProps,c);case 15:return Pd(i,o,o.type,o.pendingProps,c);case 19:return r1(i,o,c);case 31:return h=o.pendingProps,c=o.mode,h={mode:h.mode,children:h.children},i===null?(c=ju(h,c),c.ref=o.ref,o.child=c,c.return=o,o=c):(c=Fr(i.child,h),c.ref=o.ref,o.child=c,c.return=o,o=c),o;case 22:return Mu(i,o,c);case 24:return Us(o),h=Kn(kn),i===null?(y=ro(),y===null&&(y=jn,w=Jp(),y.pooledCache=w,w.refCount++,w!==null&&(y.pooledCacheLanes|=c),y=w),o.memoizedState={parent:h,cache:y},Hs(o),gi(o,kn,y)):((i.lanes&c)!==0&&(Ql(i,o),Dr(o,null,null,c),ia()),y=i.memoizedState,w=o.memoizedState,y.parent!==h?(y={parent:h,cache:h},o.memoizedState=y,o.lanes===0&&(o.memoizedState=o.updateQueue.baseState=y),gi(o,kn,h)):(h=w.cache,gi(o,kn,h),h!==y.cache&&Nt(o,[kn],c,!0))),Nn(i,o,o.pendingProps.children,c),o.child;case 29:throw o.pendingProps}throw Error(r(156,o.tag))}function uo(i){i.flags|=4}function zd(i,o){if(o.type!=="stylesheet"||(o.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!vr(o)){if(o=vi.current,o!==null&&((Xt&4194048)===Xt?zr!==null:(Xt&62914560)!==Xt&&(Xt&536870912)===0||o!==zr))throw Jl=em,Ay;i.flags|=8192}}function Ud(i,o){o!==null&&(i.flags|=4),i.flags&16384&&(o=i.tag!==22?Lf():536870912,i.lanes|=o,dc|=o)}function Iu(i,o){if(!Wt)switch(i.tailMode){case"hidden":o=i.tail;for(var c=null;o!==null;)o.alternate!==null&&(c=o),o=o.sibling;c===null?i.tail=null:c.sibling=null;break;case"collapsed":c=i.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?o||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function On(i){var o=i.alternate!==null&&i.alternate.child===i.child,c=0,h=0;if(o)for(var y=i.child;y!==null;)c|=y.lanes|y.childLanes,h|=y.subtreeFlags&65011712,h|=y.flags&65011712,y.return=i,y=y.sibling;else for(y=i.child;y!==null;)c|=y.lanes|y.childLanes,h|=y.subtreeFlags,h|=y.flags,y.return=i,y=y.sibling;return i.subtreeFlags|=h,i.childLanes=c,o}function i1(i,o,c){var h=o.pendingProps;switch(ou(o),o.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return On(o),null;case 1:return On(o),null;case 3:return c=o.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),o.memoizedState.cache!==h&&(o.flags|=2048),Fi(kn),tt(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(i===null||i.child===null)&&(su(o)?uo(o):i===null||i.memoizedState.isDehydrated&&(o.flags&256)===0||(o.flags|=1024,_y())),On(o),null;case 26:return c=o.memoizedState,i===null?(uo(o),c!==null?(On(o),zd(o,c)):(On(o),o.flags&=-16777217)):c?c!==i.memoizedState?(uo(o),On(o),zd(o,c)):(On(o),o.flags&=-16777217):(i.memoizedProps!==h&&uo(o),On(o),o.flags&=-16777217),null;case 27:Xe(o),c=Re.current;var y=o.type;if(i!==null&&o.stateNode!=null)i.memoizedProps!==h&&uo(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return On(o),null}i=Ee.current,su(o)?wy(o):(i=X1(y,h,c),o.stateNode=i,uo(o))}return On(o),null;case 5:if(Xe(o),c=o.type,i!==null&&o.stateNode!=null)i.memoizedProps!==h&&uo(o);else{if(!h){if(o.stateNode===null)throw Error(r(166));return On(o),null}if(i=Ee.current,su(o))wy(o);else{switch(y=nl(Re.current),i){case 1:i=y.createElementNS("http://www.w3.org/2000/svg",c);break;case 2:i=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;default:switch(c){case"svg":i=y.createElementNS("http://www.w3.org/2000/svg",c);break;case"math":i=y.createElementNS("http://www.w3.org/1998/Math/MathML",c);break;case"script":i=y.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof h.is=="string"?y.createElement("select",{is:h.is}):y.createElement("select"),h.multiple?i.multiple=!0:h.size&&(i.size=h.size);break;default:i=typeof h.is=="string"?y.createElement(c,{is:h.is}):y.createElement(c)}}i[ot]=o,i[vt]=h;e:for(y=o.child;y!==null;){if(y.tag===5||y.tag===6)i.appendChild(y.stateNode);else if(y.tag!==4&&y.tag!==27&&y.child!==null){y.child.return=y,y=y.child;continue}if(y===o)break e;for(;y.sibling===null;){if(y.return===null||y.return===o)break e;y=y.return}y.sibling.return=y.return,y=y.sibling}o.stateNode=i;e:switch(yr(i,c,h),c){case"button":case"input":case"select":case"textarea":i=!!h.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&uo(o)}}return On(o),o.flags&=-16777217,null;case 6:if(i&&o.stateNode!=null)i.memoizedProps!==h&&uo(o);else{if(typeof h!="string"&&o.stateNode===null)throw Error(r(166));if(i=Re.current,su(o)){if(i=o.stateNode,c=o.memoizedProps,h=null,y=hr,y!==null)switch(y.tag){case 27:case 5:h=y.memoizedProps}i[ot]=o,i=!!(i.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||V1(i.nodeValue,c)),i||Ni(o)}else i=nl(i).createTextNode(h),i[ot]=o,o.stateNode=i}return On(o),null;case 13:if(h=o.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(y=su(o),h!==null&&h.dehydrated!==null){if(i===null){if(!y)throw Error(r(318));if(y=o.memoizedState,y=y!==null?y.dehydrated:null,!y)throw Error(r(317));y[ot]=o}else lu(),(o.flags&128)===0&&(o.memoizedState=null),o.flags|=4;On(o),y=!1}else y=_y(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=y),y=!0;if(!y)return o.flags&256?(Aa(o),o):(Aa(o),null)}if(Aa(o),(o.flags&128)!==0)return o.lanes=c,o;if(c=h!==null,i=i!==null&&i.memoizedState!==null,c){h=o.child,y=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(y=h.alternate.memoizedState.cachePool.pool);var w=null;h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(w=h.memoizedState.cachePool.pool),w!==y&&(h.flags|=2048)}return c!==i&&c&&(o.child.flags|=8192),Ud(o,o.updateQueue),On(o),null;case 4:return tt(),i===null&&Jm(o.stateNode.containerInfo),On(o),null;case 10:return Fi(o.type),On(o),null;case 19:if(te(Xn),y=o.memoizedState,y===null)return On(o),null;if(h=(o.flags&128)!==0,w=y.rendering,w===null)if(h)Iu(y,!1);else{if(Zn!==0||i!==null&&(i.flags&128)!==0)for(i=o.child;i!==null;){if(w=Ru(i),w!==null){for(o.flags|=128,Iu(y,!1),i=w.updateQueue,o.updateQueue=i,Ud(o,i),o.subtreeFlags=0,i=c,c=o.child;c!==null;)iu(c,i),c=c.sibling;return de(Xn,Xn.current&1|2),o.child}i=i.sibling}y.tail!==null&&Ze()>hc&&(o.flags|=128,h=!0,Iu(y,!1),o.lanes=4194304)}else{if(!h)if(i=Ru(w),i!==null){if(o.flags|=128,h=!0,i=i.updateQueue,o.updateQueue=i,Ud(o,i),Iu(y,!0),y.tail===null&&y.tailMode==="hidden"&&!w.alternate&&!Wt)return On(o),null}else 2*Ze()-y.renderingStartTime>hc&&c!==536870912&&(o.flags|=128,h=!0,Iu(y,!1),o.lanes=4194304);y.isBackwards?(w.sibling=o.child,o.child=w):(i=y.last,i!==null?i.sibling=w:o.child=w,y.last=w)}return y.tail!==null?(o=y.tail,y.rendering=o,y.tail=o.sibling,y.renderingStartTime=Ze(),o.sibling=null,i=Xn.current,de(Xn,h?i&1|2:i&1),o):(On(o),null);case 22:case 23:return Aa(o),rm(),h=o.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(o.flags|=8192):h&&(o.flags|=8192),h?(c&536870912)!==0&&(o.flags&128)===0&&(On(o),o.subtreeFlags&6&&(o.flags|=8192)):On(o),c=o.updateQueue,c!==null&&Ud(o,c.retryQueue),c=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),h=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(h=o.memoizedState.cachePool.pool),h!==c&&(o.flags|=2048),i!==null&&te($s),null;case 24:return c=null,i!==null&&(c=i.memoizedState.cache),o.memoizedState.cache!==c&&(o.flags|=2048),Fi(kn),On(o),null;case 25:return null;case 30:return null}throw Error(r(156,o.tag))}function a1(i,o){switch(ou(o),o.tag){case 1:return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 3:return Fi(kn),tt(),i=o.flags,(i&65536)!==0&&(i&128)===0?(o.flags=i&-65537|128,o):null;case 26:case 27:case 5:return Xe(o),null;case 13:if(Aa(o),i=o.memoizedState,i!==null&&i.dehydrated!==null){if(o.alternate===null)throw Error(r(340));lu()}return i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 19:return te(Xn),null;case 4:return tt(),null;case 10:return Fi(o.type),null;case 22:case 23:return Aa(o),rm(),i!==null&&te($s),i=o.flags,i&65536?(o.flags=i&-65537|128,o):null;case 24:return Fi(kn),null;case 25:return null;default:return null}}function o1(i,o){switch(ou(o),o.tag){case 3:Fi(kn),tt();break;case 26:case 27:case 5:Xe(o);break;case 4:tt();break;case 13:Aa(o);break;case 19:te(Xn);break;case 10:Fi(o.type);break;case 22:case 23:Aa(o),rm(),i!==null&&te($s);break;case 24:Fi(kn)}}function Lu(i,o){try{var c=o.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var y=h.next;c=y;do{if((c.tag&i)===i){h=void 0;var w=c.create,D=c.inst;h=w(),D.destroy=h}c=c.next}while(c!==y)}}catch(F){Mn(o,o.return,F)}}function Ko(i,o,c){try{var h=o.updateQueue,y=h!==null?h.lastEffect:null;if(y!==null){var w=y.next;h=w;do{if((h.tag&i)===i){var D=h.inst,F=D.destroy;if(F!==void 0){D.destroy=void 0,y=o;var Y=c,fe=F;try{fe()}catch(be){Mn(y,Y,be)}}}h=h.next}while(h!==w)}}catch(be){Mn(o,o.return,be)}}function s1(i){var o=i.updateQueue;if(o!==null){var c=i.stateNode;try{nm(o,c)}catch(h){Mn(i,i.return,h)}}}function Om(i,o,c){c.props=Yo(i.type,i.memoizedProps),c.state=i.memoizedState;try{c.componentWillUnmount()}catch(h){Mn(i,o,h)}}function oc(i,o){try{var c=i.ref;if(c!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof c=="function"?i.refCleanup=c(h):c.current=h}}catch(y){Mn(i,o,y)}}function Oa(i,o){var c=i.ref,h=i.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(y){Mn(i,o,y)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(y){Mn(i,o,y)}else c.current=null}function $d(i){var o=i.type,c=i.memoizedProps,h=i.stateNode;try{e:switch(o){case"button":case"input":case"select":case"textarea":c.autoFocus&&h.focus();break e;case"img":c.src?h.src=c.src:c.srcSet&&(h.srcset=c.srcSet)}}catch(y){Mn(i,i.return,y)}}function Hd(i,o,c){try{var h=i.stateNode;yw(h,i.type,c,o),h[vt]=o}catch(y){Mn(i,i.return,y)}}function sc(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Hi(i.type)||i.tag===4}function Pu(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||sc(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Hi(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function Vd(i,o,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(i,o):(o=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,o.appendChild(i),c=c._reactRootContainer,c!=null||o.onclick!==null||(o.onclick=eh));else if(h!==4&&(h===27&&Hi(i.type)&&(c=i.stateNode,o=null),i=i.child,i!==null))for(Vd(i,o,c),i=i.sibling;i!==null;)Vd(i,o,c),i=i.sibling}function Nu(i,o,c){var h=i.tag;if(h===5||h===6)i=i.stateNode,o?c.insertBefore(i,o):c.appendChild(i);else if(h!==4&&(h===27&&Hi(i.type)&&(c=i.stateNode),i=i.child,i!==null))for(Nu(i,o,c),i=i.sibling;i!==null;)Nu(i,o,c),i=i.sibling}function Fu(i){var o=i.stateNode,c=i.memoizedProps;try{for(var h=i.type,y=o.attributes;y.length;)o.removeAttributeNode(y[0]);yr(o,h,c),o[ot]=i,o[vt]=c}catch(w){Mn(i,i.return,w)}}var Ma=!1,pn=!1,fo=!1,l1=typeof WeakSet=="function"?WeakSet:Set,mr=null;function rw(i,o){if(i=i.containerInfo,sa=lh,i=by(i),Gp(i)){if("selectionStart"in i)var c={start:i.selectionStart,end:i.selectionEnd};else e:{c=(c=i.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var y=h.anchorOffset,w=h.focusNode;h=h.focusOffset;try{c.nodeType,w.nodeType}catch{c=null;break e}var D=0,F=-1,Y=-1,fe=0,be=0,_e=i,pe=null;t:for(;;){for(var he;_e!==c||y!==0&&_e.nodeType!==3||(F=D+y),_e!==w||h!==0&&_e.nodeType!==3||(Y=D+h),_e.nodeType===3&&(D+=_e.nodeValue.length),(he=_e.firstChild)!==null;)pe=_e,_e=he;for(;;){if(_e===i)break t;if(pe===c&&++fe===y&&(F=D),pe===w&&++be===h&&(Y=D),(he=_e.nextSibling)!==null)break;_e=pe,pe=_e.parentNode}_e=he}c=F===-1||Y===-1?null:{start:F,end:Y}}else c=null}c=c||{start:0,end:0}}else c=null;for(th={focusedElem:i,selectionRange:c},lh=!1,mr=o;mr!==null;)if(o=mr,i=o.child,(o.subtreeFlags&1024)!==0&&i!==null)i.return=o,mr=i;else for(;mr!==null;){switch(o=mr,w=o.alternate,i=o.flags,o.tag){case 0:break;case 11:case 15:break;case 1:if((i&1024)!==0&&w!==null){i=void 0,c=o,y=w.memoizedProps,w=w.memoizedState,h=c.stateNode;try{var lt=Yo(c.type,y,c.elementType===c.type);i=h.getSnapshotBeforeUpdate(lt,w),h.__reactInternalSnapshotBeforeUpdate=i}catch(st){Mn(c,c.return,st)}}break;case 3:if((i&1024)!==0){if(i=o.stateNode.containerInfo,c=i.nodeType,c===9)t0(i);else if(c===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":t0(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(r(163))}if(i=o.sibling,i!==null){i.return=o.return,mr=i;break}mr=o.return}}function c1(i,o,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:Xo(i,c),h&4&&Lu(5,c);break;case 1:if(Xo(i,c),h&4)if(i=c.stateNode,o===null)try{i.componentDidMount()}catch(D){Mn(c,c.return,D)}else{var y=Yo(c.type,o.memoizedProps);o=o.memoizedState;try{i.componentDidUpdate(y,o,i.__reactInternalSnapshotBeforeUpdate)}catch(D){Mn(c,c.return,D)}}h&64&&s1(c),h&512&&oc(c,c.return);break;case 3:if(Xo(i,c),h&64&&(i=c.updateQueue,i!==null)){if(o=null,c.child!==null)switch(c.child.tag){case 27:case 5:o=c.child.stateNode;break;case 1:o=c.child.stateNode}try{nm(i,o)}catch(D){Mn(c,c.return,D)}}break;case 27:o===null&&h&4&&Fu(c);case 26:case 5:Xo(i,c),o===null&&h&4&&$d(c),h&512&&oc(c,c.return);break;case 12:Xo(i,c);break;case 13:Xo(i,c),h&4&&d1(i,c),h&64&&(i=c.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(c=Kd.bind(null,c),bc(i,c))));break;case 22:if(h=c.memoizedState!==null||Ma,!h){o=o!==null&&o.memoizedState!==null||pn,y=Ma;var w=pn;Ma=h,(pn=o)&&!w?po(i,c,(c.subtreeFlags&8772)!==0):Xo(i,c),Ma=y,pn=w}break;case 30:break;default:Xo(i,c)}}function u1(i){var o=i.alternate;o!==null&&(i.alternate=null,u1(o)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(o=i.stateNode,o!==null&&xp(o)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var Hn=null,ni=!1;function ho(i,o,c){for(c=c.child;c!==null;)f1(i,o,c),c=c.sibling}function f1(i,o,c){if(hn&&typeof hn.onCommitFiberUnmount=="function")try{hn.onCommitFiberUnmount(_n,c)}catch{}switch(c.tag){case 26:pn||Oa(c,o),ho(i,o,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:pn||Oa(c,o);var h=Hn,y=ni;Hi(c.type)&&(Hn=c.stateNode,ni=!1),ho(i,o,c),Ku(c.stateNode),Hn=h,ni=y;break;case 5:pn||Oa(c,o);case 6:if(h=Hn,y=ni,Hn=null,ho(i,o,c),Hn=h,ni=y,Hn!==null)if(ni)try{(Hn.nodeType===9?Hn.body:Hn.nodeName==="HTML"?Hn.ownerDocument.body:Hn).removeChild(c.stateNode)}catch(w){Mn(c,o,w)}else try{Hn.removeChild(c.stateNode)}catch(w){Mn(c,o,w)}break;case 18:Hn!==null&&(ni?(i=Hn,rh(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,c.stateNode),rf(i)):rh(Hn,c.stateNode));break;case 4:h=Hn,y=ni,Hn=c.stateNode.containerInfo,ni=!0,ho(i,o,c),Hn=h,ni=y;break;case 0:case 11:case 14:case 15:pn||Ko(2,c,o),pn||Ko(4,c,o),ho(i,o,c);break;case 1:pn||(Oa(c,o),h=c.stateNode,typeof h.componentWillUnmount=="function"&&Om(c,o,h)),ho(i,o,c);break;case 21:ho(i,o,c);break;case 22:pn=(h=pn)||c.memoizedState!==null,ho(i,o,c),pn=h;break;default:ho(i,o,c)}}function d1(i,o){if(o.memoizedState===null&&(i=o.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{rf(i)}catch(c){Mn(o,o.return,c)}}function iw(i){switch(i.tag){case 13:case 19:var o=i.stateNode;return o===null&&(o=i.stateNode=new l1),o;case 22:return i=i.stateNode,o=i._retryCache,o===null&&(o=i._retryCache=new l1),o;default:throw Error(r(435,i.tag))}}function Mm(i,o){var c=iw(i);o.forEach(function(h){var y=uw.bind(null,i,h);c.has(h)||(c.add(h),h.then(y,y))})}function bi(i,o){var c=o.deletions;if(c!==null)for(var h=0;h<c.length;h++){var y=c[h],w=i,D=o,F=D;e:for(;F!==null;){switch(F.tag){case 27:if(Hi(F.type)){Hn=F.stateNode,ni=!1;break e}break;case 5:Hn=F.stateNode,ni=!1;break e;case 3:case 4:Hn=F.stateNode.containerInfo,ni=!0;break e}F=F.return}if(Hn===null)throw Error(r(160));f1(w,D,y),Hn=null,ni=!1,w=y.alternate,w!==null&&(w.return=null),y.return=null}if(o.subtreeFlags&13878)for(o=o.child;o!==null;)Dm(o,i),o=o.sibling}var Ui=null;function Dm(i,o){var c=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:bi(o,i),ri(i),h&4&&(Ko(3,i,i.return),Lu(3,i),Ko(5,i,i.return));break;case 1:bi(o,i),ri(i),h&512&&(pn||c===null||Oa(c,c.return)),h&64&&Ma&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(c=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=c===null?h:c.concat(h))));break;case 26:var y=Ui;if(bi(o,i),ri(i),h&512&&(pn||c===null||Oa(c,c.return)),h&4){var w=c!==null?c.memoizedState:null;if(h=i.memoizedState,c===null)if(h===null)if(i.stateNode===null){e:{h=i.type,c=i.memoizedProps,y=y.ownerDocument||y;t:switch(h){case"title":w=y.getElementsByTagName("title")[0],(!w||w[Ja]||w[ot]||w.namespaceURI==="http://www.w3.org/2000/svg"||w.hasAttribute("itemprop"))&&(w=y.createElement(h),y.head.insertBefore(w,y.querySelector("head > title"))),yr(w,h,c),w[ot]=i,_r(w),h=w;break e;case"link":var D=nv("link","href",y).get(h+(c.href||""));if(D){for(var F=0;F<D.length;F++)if(w=D[F],w.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&w.getAttribute("rel")===(c.rel==null?null:c.rel)&&w.getAttribute("title")===(c.title==null?null:c.title)&&w.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){D.splice(F,1);break t}}w=y.createElement(h),yr(w,h,c),y.head.appendChild(w);break;case"meta":if(D=nv("meta","content",y).get(h+(c.content||""))){for(F=0;F<D.length;F++)if(w=D[F],w.getAttribute("content")===(c.content==null?null:""+c.content)&&w.getAttribute("name")===(c.name==null?null:c.name)&&w.getAttribute("property")===(c.property==null?null:c.property)&&w.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&w.getAttribute("charset")===(c.charSet==null?null:c.charSet)){D.splice(F,1);break t}}w=y.createElement(h),yr(w,h,c),y.head.appendChild(w);break;default:throw Error(r(468,h))}w[ot]=i,_r(w),h=w}i.stateNode=h}else rv(y,i.type,i.stateNode);else i.stateNode=tv(y,h,i.memoizedProps);else w!==h?(w===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):w.count--,h===null?rv(y,i.type,i.stateNode):tv(y,h,i.memoizedProps)):h===null&&i.stateNode!==null&&Hd(i,i.memoizedProps,c.memoizedProps)}break;case 27:bi(o,i),ri(i),h&512&&(pn||c===null||Oa(c,c.return)),c!==null&&h&4&&Hd(i,i.memoizedProps,c.memoizedProps);break;case 5:if(bi(o,i),ri(i),h&512&&(pn||c===null||Oa(c,c.return)),i.flags&32){y=i.stateNode;try{jo(y,"")}catch(he){Mn(i,i.return,he)}}h&4&&i.stateNode!=null&&(y=i.memoizedProps,Hd(i,y,c!==null?c.memoizedProps:y)),h&1024&&(fo=!0);break;case 6:if(bi(o,i),ri(i),h&4){if(i.stateNode===null)throw Error(r(162));h=i.memoizedProps,c=i.stateNode;try{c.nodeValue=h}catch(he){Mn(i,i.return,he)}}break;case 3:if(_c=null,y=Ui,Ui=Et(o.containerInfo),bi(o,i),Ui=y,ri(i),h&4&&c!==null&&c.memoizedState.isDehydrated)try{rf(o.containerInfo)}catch(he){Mn(i,i.return,he)}fo&&(fo=!1,h1(i));break;case 4:h=Ui,Ui=Et(i.stateNode.containerInfo),bi(o,i),ri(i),Ui=h;break;case 12:bi(o,i),ri(i);break;case 13:bi(o,i),ri(i),i.child.flags&8192&&i.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(Bm=Ze()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Mm(i,h)));break;case 22:y=i.memoizedState!==null;var Y=c!==null&&c.memoizedState!==null,fe=Ma,be=pn;if(Ma=fe||y,pn=be||Y,bi(o,i),pn=be,Ma=fe,ri(i),h&8192)e:for(o=i.stateNode,o._visibility=y?o._visibility&-2:o._visibility|1,y&&(c===null||Y||Ma||pn||el(i)),c=null,o=i;;){if(o.tag===5||o.tag===26){if(c===null){Y=c=o;try{if(w=Y.stateNode,y)D=w.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none";else{F=Y.stateNode;var _e=Y.memoizedProps.style,pe=_e!=null&&_e.hasOwnProperty("display")?_e.display:null;F.style.display=pe==null||typeof pe=="boolean"?"":(""+pe).trim()}}catch(he){Mn(Y,Y.return,he)}}}else if(o.tag===6){if(c===null){Y=o;try{Y.stateNode.nodeValue=y?"":Y.memoizedProps}catch(he){Mn(Y,Y.return,he)}}}else if((o.tag!==22&&o.tag!==23||o.memoizedState===null||o===i)&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===i)break e;for(;o.sibling===null;){if(o.return===null||o.return===i)break e;c===o&&(c=null),o=o.return}c===o&&(c=null),o.sibling.return=o.return,o=o.sibling}h&4&&(h=i.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,Mm(i,c))));break;case 19:bi(o,i),ri(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Mm(i,h)));break;case 30:break;case 21:break;default:bi(o,i),ri(i)}}function ri(i){var o=i.flags;if(o&2){try{for(var c,h=i.return;h!==null;){if(sc(h)){c=h;break}h=h.return}if(c==null)throw Error(r(160));switch(c.tag){case 27:var y=c.stateNode,w=Pu(i);Nu(i,w,y);break;case 5:var D=c.stateNode;c.flags&32&&(jo(D,""),c.flags&=-33);var F=Pu(i);Nu(i,F,D);break;case 3:case 4:var Y=c.stateNode.containerInfo,fe=Pu(i);Vd(i,fe,Y);break;default:throw Error(r(161))}}catch(be){Mn(i,i.return,be)}i.flags&=-3}o&4096&&(i.flags&=-4097)}function h1(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var o=i;h1(o),o.tag===5&&o.flags&1024&&o.stateNode.reset(),i=i.sibling}}function Xo(i,o){if(o.subtreeFlags&8772)for(o=o.child;o!==null;)c1(i,o.alternate,o),o=o.sibling}function el(i){for(i=i.child;i!==null;){var o=i;switch(o.tag){case 0:case 11:case 14:case 15:Ko(4,o,o.return),el(o);break;case 1:Oa(o,o.return);var c=o.stateNode;typeof c.componentWillUnmount=="function"&&Om(o,o.return,c),el(o);break;case 27:Ku(o.stateNode);case 26:case 5:Oa(o,o.return),el(o);break;case 22:o.memoizedState===null&&el(o);break;case 30:el(o);break;default:el(o)}i=i.sibling}}function po(i,o,c){for(c=c&&(o.subtreeFlags&8772)!==0,o=o.child;o!==null;){var h=o.alternate,y=i,w=o,D=w.flags;switch(w.tag){case 0:case 11:case 15:po(y,w,c),Lu(4,w);break;case 1:if(po(y,w,c),h=w,y=h.stateNode,typeof y.componentDidMount=="function")try{y.componentDidMount()}catch(fe){Mn(h,h.return,fe)}if(h=w,y=h.updateQueue,y!==null){var F=h.stateNode;try{var Y=y.shared.hiddenCallbacks;if(Y!==null)for(y.shared.hiddenCallbacks=null,y=0;y<Y.length;y++)Dy(Y[y],F)}catch(fe){Mn(h,h.return,fe)}}c&&D&64&&s1(w),oc(w,w.return);break;case 27:Fu(w);case 26:case 5:po(y,w,c),c&&h===null&&D&4&&$d(w),oc(w,w.return);break;case 12:po(y,w,c);break;case 13:po(y,w,c),c&&D&4&&d1(y,w);break;case 22:w.memoizedState===null&&po(y,w,c),oc(w,w.return);break;case 30:break;default:po(y,w,c)}o=o.sibling}}function jm(i,o){var c=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(c=i.memoizedState.cachePool.pool),i=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(i=o.memoizedState.cachePool.pool),i!==c&&(i!=null&&i.refCount++,c!=null&&uu(c))}function Im(i,o){i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&uu(i))}function Da(i,o,c,h){if(o.subtreeFlags&10256)for(o=o.child;o!==null;)p1(i,o,c,h),o=o.sibling}function p1(i,o,c,h){var y=o.flags;switch(o.tag){case 0:case 11:case 15:Da(i,o,c,h),y&2048&&Lu(9,o);break;case 1:Da(i,o,c,h);break;case 3:Da(i,o,c,h),y&2048&&(i=null,o.alternate!==null&&(i=o.alternate.memoizedState.cache),o=o.memoizedState.cache,o!==i&&(o.refCount++,i!=null&&uu(i)));break;case 12:if(y&2048){Da(i,o,c,h),i=o.stateNode;try{var w=o.memoizedProps,D=w.id,F=w.onPostCommit;typeof F=="function"&&F(D,o.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(Y){Mn(o,o.return,Y)}}else Da(i,o,c,h);break;case 13:Da(i,o,c,h);break;case 23:break;case 22:w=o.stateNode,D=o.alternate,o.memoizedState!==null?w._visibility&2?Da(i,o,c,h):Bu(i,o):w._visibility&2?Da(i,o,c,h):(w._visibility|=2,lc(i,o,c,h,(o.subtreeFlags&10256)!==0)),y&2048&&jm(D,o);break;case 24:Da(i,o,c,h),y&2048&&Im(o.alternate,o);break;default:Da(i,o,c,h)}}function lc(i,o,c,h,y){for(y=y&&(o.subtreeFlags&10256)!==0,o=o.child;o!==null;){var w=i,D=o,F=c,Y=h,fe=D.flags;switch(D.tag){case 0:case 11:case 15:lc(w,D,F,Y,y),Lu(8,D);break;case 23:break;case 22:var be=D.stateNode;D.memoizedState!==null?be._visibility&2?lc(w,D,F,Y,y):Bu(w,D):(be._visibility|=2,lc(w,D,F,Y,y)),y&&fe&2048&&jm(D.alternate,D);break;case 24:lc(w,D,F,Y,y),y&&fe&2048&&Im(D.alternate,D);break;default:lc(w,D,F,Y,y)}o=o.sibling}}function Bu(i,o){if(o.subtreeFlags&10256)for(o=o.child;o!==null;){var c=i,h=o,y=h.flags;switch(h.tag){case 22:Bu(c,h),y&2048&&jm(h.alternate,h);break;case 24:Bu(c,h),y&2048&&Im(h.alternate,h);break;default:Bu(c,h)}o=o.sibling}}var Ir=8192;function cc(i){if(i.subtreeFlags&Ir)for(i=i.child;i!==null;)m1(i),i=i.sibling}function m1(i){switch(i.tag){case 26:cc(i),i.flags&Ir&&i.memoizedState!==null&&kw(Ui,i.memoizedState,i.memoizedProps);break;case 5:cc(i);break;case 3:case 4:var o=Ui;Ui=Et(i.stateNode.containerInfo),cc(i),Ui=o;break;case 22:i.memoizedState===null&&(o=i.alternate,o!==null&&o.memoizedState!==null?(o=Ir,Ir=16777216,cc(i),Ir=o):cc(i));break;default:cc(i)}}function g1(i){var o=i.alternate;if(o!==null&&(i=o.child,i!==null)){o.child=null;do o=i.sibling,i.sibling=null,i=o;while(i!==null)}}function uc(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];mr=h,v1(h,i)}g1(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)y1(i),i=i.sibling}function y1(i){switch(i.tag){case 0:case 11:case 15:uc(i),i.flags&2048&&Ko(9,i,i.return);break;case 3:uc(i);break;case 12:uc(i);break;case 22:var o=i.stateNode;i.memoizedState!==null&&o._visibility&2&&(i.return===null||i.return.tag!==13)?(o._visibility&=-3,Wd(i)):uc(i);break;default:uc(i)}}function Wd(i){var o=i.deletions;if((i.flags&16)!==0){if(o!==null)for(var c=0;c<o.length;c++){var h=o[c];mr=h,v1(h,i)}g1(i)}for(i=i.child;i!==null;){switch(o=i,o.tag){case 0:case 11:case 15:Ko(8,o,o.return),Wd(o);break;case 22:c=o.stateNode,c._visibility&2&&(c._visibility&=-3,Wd(o));break;default:Wd(o)}i=i.sibling}}function v1(i,o){for(;mr!==null;){var c=mr;switch(c.tag){case 0:case 11:case 15:Ko(8,c,o);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var h=c.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:uu(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,mr=h;else e:for(c=i;mr!==null;){h=mr;var y=h.sibling,w=h.return;if(u1(h),h===c){mr=null;break e}if(y!==null){y.return=w,mr=y;break e}mr=w}}}var aw={getCacheForType:function(i){var o=Kn(kn),c=o.data.get(i);return c===void 0&&(c=i(),o.data.set(i,c)),c}},Lm=typeof WeakMap=="function"?WeakMap:Map,bn=0,jn=null,Ut=null,Xt=0,xn=0,xi=null,Zo=!1,fc=!1,Pm=!1,mo=0,Zn=0,Jo=0,tl=0,Nm=0,$i=0,dc=0,zu=null,ii=null,Fm=!1,Bm=0,hc=1/0,Uu=null,Qo=null,kr=0,es=null,pc=null,mc=0,zm=0,Um=null,b1=null,gc=0,$m=null;function Lr(){if((bn&2)!==0&&Xt!==0)return Xt&-Xt;if(V.T!==null){var i=Zl;return i!==0?i:Jd()}return Ff()}function x1(){$i===0&&($i=(Xt&536870912)===0||Wt?wa():536870912);var i=vi.current;return i!==null&&(i.flags|=32),$i}function wi(i,o,c){(i===jn&&(xn===2||xn===9)||i.cancelPendingCommit!==null)&&(yc(i,0),ts(i,Xt,$i,!1)),Sa(i,c),((bn&2)===0||i!==jn)&&(i===jn&&((bn&2)===0&&(tl|=c),Zn===4&&ts(i,Xt,$i,!1)),ja(i))}function w1(i,o,c){if((bn&6)!==0)throw Error(r(327));var h=!c&&(o&124)===0&&(o&i.expiredLanes)===0||cn(i,o),y=h?lw(i,o):Wm(i,o,!0),w=h;do{if(y===0){fc&&!h&&ts(i,o,0,!1);break}else{if(c=i.current.alternate,w&&!ow(c)){y=Wm(i,o,!1),w=!1;continue}if(y===2){if(w=o,i.errorRecoveryDisabledLanes&w)var D=0;else D=i.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){o=D;e:{var F=i;y=zu;var Y=F.current.memoizedState.isDehydrated;if(Y&&(yc(F,D).flags|=256),D=Wm(F,D,!1),D!==2){if(Pm&&!Y){F.errorRecoveryDisabledLanes|=w,tl|=w,y=4;break e}w=ii,ii=y,w!==null&&(ii===null?ii=w:ii.push.apply(ii,w))}y=D}if(w=!1,y!==2)continue}}if(y===1){yc(i,0),ts(i,o,0,!0);break}e:{switch(h=i,w=y,w){case 0:case 1:throw Error(r(345));case 4:if((o&4194048)!==o)break;case 6:ts(h,o,$i,!Zo);break e;case 2:ii=null;break;case 3:case 5:break;default:throw Error(r(329))}if((o&62914560)===o&&(y=Bm+300-Ze(),10<y)){if(ts(h,o,$i,!Zo),mt(h,0,!0)!==0)break e;h.timeoutHandle=W1(S1.bind(null,h,c,ii,Uu,Fm,o,$i,tl,dc,Zo,w,2,-0,0),y);break e}S1(h,c,ii,Uu,Fm,o,$i,tl,dc,Zo,w,0,-0,0)}}break}while(!0);ja(i)}function S1(i,o,c,h,y,w,D,F,Y,fe,be,_e,pe,he){if(i.timeoutHandle=-1,_e=o.subtreeFlags,(_e&8192||(_e&16785408)===16785408)&&(Tr={stylesheets:null,count:0,unsuspend:Aw},m1(o),_e=Ow(),_e!==null)){i.cancelPendingCommit=_e($u.bind(null,i,o,w,c,h,y,D,F,Y,be,1,pe,he)),ts(i,w,D,!fe);return}$u(i,o,w,c,h,y,D,F,Y)}function ow(i){for(var o=i;;){var c=o.tag;if((c===0||c===11||c===15)&&o.flags&16384&&(c=o.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var y=c[h],w=y.getSnapshot;y=y.value;try{if(!pi(w(),y))return!1}catch{return!1}}if(c=o.child,o.subtreeFlags&16384&&c!==null)c.return=o,o=c;else{if(o===i)break;for(;o.sibling===null;){if(o.return===null||o.return===i)return!0;o=o.return}o.sibling.return=o.return,o=o.sibling}}return!0}function ts(i,o,c,h){o&=~Nm,o&=~tl,i.suspendedLanes|=o,i.pingedLanes&=~o,h&&(i.warmLanes|=o),h=i.expirationTimes;for(var y=o;0<y;){var w=31-Vt(y),D=1<<w;h[w]=-1,y&=~D}c!==0&&Pf(i,c,o)}function Gd(){return(bn&6)===0?(Wu(0),!1):!0}function Hm(){if(Ut!==null){if(xn===0)var i=Ut.return;else i=Ut,N=$o=null,yd(i),pr=null,ti=0,i=Ut;for(;i!==null;)o1(i.alternate,i),i=i.return;Ut=null}}function yc(i,o){var c=i.timeoutHandle;c!==-1&&(i.timeoutHandle=-1,bw(c)),c=i.cancelPendingCommit,c!==null&&(i.cancelPendingCommit=null,c()),Hm(),jn=i,Ut=c=Fr(i.current,null),Xt=o,xn=0,xi=null,Zo=!1,fc=cn(i,o),Pm=!1,dc=$i=Nm=tl=Jo=Zn=0,ii=zu=null,Fm=!1,(o&8)!==0&&(o|=o&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=o;0<h;){var y=31-Vt(h),w=1<<y;o|=i[y],h&=~w}return mo=o,Is(),c}function _1(i,o){Dt=null,V.H=Eu,o===Br||o===pd?(o=Oy(),xn=3):o===Ay?(o=Oy(),xn=4):xn=o===e1?8:o!==null&&typeof o=="object"&&typeof o.then=="function"?6:1,xi=o,Ut===null&&(Zn=1,Ou(i,Nr(o,i.current)))}function C1(){var i=V.H;return V.H=Eu,i===null?Eu:i}function E1(){var i=V.A;return V.A=aw,i}function Vm(){Zn=4,Zo||(Xt&4194048)!==Xt&&vi.current!==null||(fc=!0),(Jo&134217727)===0&&(tl&134217727)===0||jn===null||ts(jn,Xt,$i,!1)}function Wm(i,o,c){var h=bn;bn|=2;var y=C1(),w=E1();(jn!==i||Xt!==o)&&(Uu=null,yc(i,o)),o=!1;var D=Zn;e:do try{if(xn!==0&&Ut!==null){var F=Ut,Y=xi;switch(xn){case 8:Hm(),D=6;break e;case 3:case 2:case 9:case 6:vi.current===null&&(o=!0);var fe=xn;if(xn=0,xi=null,vc(i,F,Y,fe),c&&fc){D=0;break e}break;default:fe=xn,xn=0,xi=null,vc(i,F,Y,fe)}}sw(),D=Zn;break}catch(be){_1(i,be)}while(!0);return o&&i.shellSuspendCounter++,N=$o=null,bn=h,V.H=y,V.A=w,Ut===null&&(jn=null,Xt=0,Is()),D}function sw(){for(;Ut!==null;)Gm(Ut)}function lw(i,o){var c=bn;bn|=2;var h=C1(),y=E1();jn!==i||Xt!==o?(Uu=null,hc=Ze()+500,yc(i,o)):fc=cn(i,o);e:do try{if(xn!==0&&Ut!==null){o=Ut;var w=xi;t:switch(xn){case 1:xn=0,xi=null,vc(i,o,w,1);break;case 2:case 9:if(ky(w)){xn=0,xi=null,R1(o);break}o=function(){xn!==2&&xn!==9||jn!==i||(xn=7),ja(i)},w.then(o,o);break e;case 3:xn=7;break e;case 4:xn=5;break e;case 7:ky(w)?(xn=0,xi=null,R1(o)):(xn=0,xi=null,vc(i,o,w,7));break;case 5:var D=null;switch(Ut.tag){case 26:D=Ut.memoizedState;case 5:case 27:var F=Ut;if(!D||vr(D)){xn=0,xi=null;var Y=F.sibling;if(Y!==null)Ut=Y;else{var fe=F.return;fe!==null?(Ut=fe,Yd(fe)):Ut=null}break t}}xn=0,xi=null,vc(i,o,w,5);break;case 6:xn=0,xi=null,vc(i,o,w,6);break;case 8:Hm(),Zn=6;break e;default:throw Error(r(462))}}T1();break}catch(be){_1(i,be)}while(!0);return N=$o=null,V.H=h,V.A=y,bn=c,Ut!==null?0:(jn=null,Xt=0,Is(),Zn)}function T1(){for(;Ut!==null&&!De();)Gm(Ut)}function Gm(i){var o=Bd(i.alternate,i,mo);i.memoizedProps=i.pendingProps,o===null?Yd(i):Ut=o}function R1(i){var o=i,c=o.alternate;switch(o.tag){case 15:case 0:o=Nd(c,o,o.pendingProps,o.type,void 0,Xt);break;case 11:o=Nd(c,o,o.pendingProps,o.type.render,o.ref,Xt);break;case 5:yd(o);default:o1(c,o),o=Ut=iu(o,mo),o=Bd(c,o,mo)}i.memoizedProps=i.pendingProps,o===null?Yd(i):Ut=o}function vc(i,o,c,h){N=$o=null,yd(o),pr=null,ti=0;var y=o.return;try{if(Qy(i,y,o,c,Xt)){Zn=1,Ou(i,Nr(c,i.current)),Ut=null;return}}catch(w){if(y!==null)throw Ut=y,w;Zn=1,Ou(i,Nr(c,i.current)),Ut=null;return}o.flags&32768?(Wt||h===1?i=!0:fc||(Xt&536870912)!==0?i=!1:(Zo=i=!0,(h===2||h===9||h===3||h===6)&&(h=vi.current,h!==null&&h.tag===13&&(h.flags|=16384))),A1(o,i)):Yd(o)}function Yd(i){var o=i;do{if((o.flags&32768)!==0){A1(o,Zo);return}i=o.return;var c=i1(o.alternate,o,mo);if(c!==null){Ut=c;return}if(o=o.sibling,o!==null){Ut=o;return}Ut=o=i}while(o!==null);Zn===0&&(Zn=5)}function A1(i,o){do{var c=a1(i.alternate,i);if(c!==null){c.flags&=32767,Ut=c;return}if(c=i.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!o&&(i=i.sibling,i!==null)){Ut=i;return}Ut=i=c}while(i!==null);Zn=6,Ut=null}function $u(i,o,c,h,y,w,D,F,Y){i.cancelPendingCommit=null;do qd();while(kr!==0);if((bn&6)!==0)throw Error(r(327));if(o!==null){if(o===i.current)throw Error(r(177));if(w=o.lanes|o.childLanes,w|=qp,bp(i,c,w,D,F,Y),i===jn&&(Ut=jn=null,Xt=0),pc=o,es=i,mc=c,zm=w,Um=y,b1=h,(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,P1(at,function(){return j1(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(o.flags&13878)!==0,(o.subtreeFlags&13878)!==0||h){h=V.T,V.T=null,y=Q.p,Q.p=2,D=bn,bn|=4;try{rw(i,o,c)}finally{bn=D,Q.p=y,V.T=h}}kr=1,k1(),O1(),M1()}}function k1(){if(kr===1){kr=0;var i=es,o=pc,c=(o.flags&13878)!==0;if((o.subtreeFlags&13878)!==0||c){c=V.T,V.T=null;var h=Q.p;Q.p=2;var y=bn;bn|=4;try{Dm(o,i);var w=th,D=by(i.containerInfo),F=w.focusedElem,Y=w.selectionRange;if(D!==F&&F&&F.ownerDocument&&vy(F.ownerDocument.documentElement,F)){if(Y!==null&&Gp(F)){var fe=Y.start,be=Y.end;if(be===void 0&&(be=fe),"selectionStart"in F)F.selectionStart=fe,F.selectionEnd=Math.min(be,F.value.length);else{var _e=F.ownerDocument||document,pe=_e&&_e.defaultView||window;if(pe.getSelection){var he=pe.getSelection(),lt=F.textContent.length,st=Math.min(Y.start,lt),Tn=Y.end===void 0?st:Math.min(Y.end,lt);!he.extend&&st>Tn&&(D=Tn,Tn=st,st=D);var ie=Wp(F,st),ee=Wp(F,Tn);if(ie&&ee&&(he.rangeCount!==1||he.anchorNode!==ie.node||he.anchorOffset!==ie.offset||he.focusNode!==ee.node||he.focusOffset!==ee.offset)){var ue=_e.createRange();ue.setStart(ie.node,ie.offset),he.removeAllRanges(),st>Tn?(he.addRange(ue),he.extend(ee.node,ee.offset)):(ue.setEnd(ee.node,ee.offset),he.addRange(ue))}}}}for(_e=[],he=F;he=he.parentNode;)he.nodeType===1&&_e.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof F.focus=="function"&&F.focus(),F=0;F<_e.length;F++){var we=_e[F];we.element.scrollLeft=we.left,we.element.scrollTop=we.top}}lh=!!sa,th=sa=null}finally{bn=y,Q.p=h,V.T=c}}i.current=o,kr=2}}function O1(){if(kr===2){kr=0;var i=es,o=pc,c=(o.flags&8772)!==0;if((o.subtreeFlags&8772)!==0||c){c=V.T,V.T=null;var h=Q.p;Q.p=2;var y=bn;bn|=4;try{c1(i,o.alternate,o)}finally{bn=y,Q.p=h,V.T=c}}kr=3}}function M1(){if(kr===4||kr===3){kr=0,At();var i=es,o=pc,c=mc,h=b1;(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0?kr=5:(kr=0,pc=es=null,D1(i,i.pendingLanes));var y=i.pendingLanes;if(y===0&&(Qo=null),Al(c),o=o.stateNode,hn&&typeof hn.onCommitFiberRoot=="function")try{hn.onCommitFiberRoot(_n,o,void 0,(o.current.flags&128)===128)}catch{}if(h!==null){o=V.T,y=Q.p,Q.p=2,V.T=null;try{for(var w=i.onRecoverableError,D=0;D<h.length;D++){var F=h[D];w(F.value,{componentStack:F.stack})}}finally{V.T=o,Q.p=y}}(mc&3)!==0&&qd(),ja(i),y=i.pendingLanes,(c&4194090)!==0&&(y&42)!==0?i===$m?gc++:(gc=0,$m=i):gc=0,Wu(0)}}function D1(i,o){(i.pooledCacheLanes&=o)===0&&(o=i.pooledCache,o!=null&&(i.pooledCache=null,uu(o)))}function qd(i){return k1(),O1(),M1(),j1()}function j1(){if(kr!==5)return!1;var i=es,o=zm;zm=0;var c=Al(mc),h=V.T,y=Q.p;try{Q.p=32>c?32:c,V.T=null,c=Um,Um=null;var w=es,D=mc;if(kr=0,pc=es=null,mc=0,(bn&6)!==0)throw Error(r(331));var F=bn;if(bn|=4,y1(w.current),p1(w,w.current,D,c),bn=F,Wu(0,!1),hn&&typeof hn.onPostCommitFiberRoot=="function")try{hn.onPostCommitFiberRoot(_n,w)}catch{}return!0}finally{Q.p=y,V.T=h,D1(i,o)}}function I1(i,o,c){o=Nr(c,o),o=jd(i.stateNode,o,2),i=io(i,o,2),i!==null&&(Sa(i,2),ja(i))}function Mn(i,o,c){if(i.tag===3)I1(i,i,c);else for(;o!==null;){if(o.tag===3){I1(o,i,c);break}else if(o.tag===1){var h=o.stateNode;if(typeof o.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Qo===null||!Qo.has(h))){i=Nr(c,i),c=Em(2),h=io(o,c,2),h!==null&&(Jy(c,h,o,i),Sa(h,2),ja(h));break}}o=o.return}}function Ym(i,o,c){var h=i.pingCache;if(h===null){h=i.pingCache=new Lm;var y=new Set;h.set(o,y)}else y=h.get(o),y===void 0&&(y=new Set,h.set(o,y));y.has(c)||(Pm=!0,y.add(c),i=cw.bind(null,i,o,c),o.then(i,i))}function cw(i,o,c){var h=i.pingCache;h!==null&&h.delete(o),i.pingedLanes|=i.suspendedLanes&c,i.warmLanes&=~c,jn===i&&(Xt&c)===c&&(Zn===4||Zn===3&&(Xt&62914560)===Xt&&300>Ze()-Bm?(bn&2)===0&&yc(i,0):Nm|=c,dc===Xt&&(dc=0)),ja(i)}function L1(i,o){o===0&&(o=Lf()),i=Ls(i,o),i!==null&&(Sa(i,o),ja(i))}function Kd(i){var o=i.memoizedState,c=0;o!==null&&(c=o.retryLane),L1(i,c)}function uw(i,o){var c=0;switch(i.tag){case 13:var h=i.stateNode,y=i.memoizedState;y!==null&&(c=y.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(r(314))}h!==null&&h.delete(o),L1(i,c)}function P1(i,o){return Je(i,o)}var Hu=null,ns=null,Xd=!1,Vu=!1,Zd=!1,rs=0;function ja(i){i!==ns&&i.next===null&&(ns===null?Hu=ns=i:ns=ns.next=i),Vu=!0,Xd||(Xd=!0,qm())}function Wu(i,o){if(!Zd&&Vu){Zd=!0;do for(var c=!1,h=Hu;h!==null;){if(i!==0){var y=h.pendingLanes;if(y===0)var w=0;else{var D=h.suspendedLanes,F=h.pingedLanes;w=(1<<31-Vt(42|i)+1)-1,w&=y&~(D&~F),w=w&201326741?w&201326741|1:w?w|2:0}w!==0&&(c=!0,F1(h,w))}else w=Xt,w=mt(h,h===jn?w:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(w&3)===0||cn(h,w)||(c=!0,F1(h,w));h=h.next}while(c);Zd=!1}}function fw(){Gu()}function Gu(){Vu=Xd=!1;var i=0;rs!==0&&(vw()&&(i=rs),rs=0);for(var o=Ze(),c=null,h=Hu;h!==null;){var y=h.next,w=Yu(h,o);w===0?(h.next=null,c===null?Hu=y:c.next=y,y===null&&(ns=c)):(c=h,(i!==0||(w&3)!==0)&&(Vu=!0)),h=y}Wu(i)}function Yu(i,o){for(var c=i.suspendedLanes,h=i.pingedLanes,y=i.expirationTimes,w=i.pendingLanes&-62914561;0<w;){var D=31-Vt(w),F=1<<D,Y=y[D];Y===-1?((F&c)===0||(F&h)!==0)&&(y[D]=Qi(F,o)):Y<=o&&(i.expiredLanes|=F),w&=~F}if(o=jn,c=Xt,c=mt(i,i===o?c:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,c===0||i===o&&(xn===2||xn===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&ke(h),i.callbackNode=null,i.callbackPriority=0;if((c&3)===0||cn(i,c)){if(o=c&-c,o===i.callbackPriority)return o;switch(h!==null&&ke(h),Al(c)){case 2:case 8:c=Pt;break;case 32:c=at;break;case 268435456:c=rn;break;default:c=at}return h=N1.bind(null,i),c=Je(c,h),i.callbackPriority=o,i.callbackNode=c,o}return h!==null&&h!==null&&ke(h),i.callbackPriority=2,i.callbackNode=null,2}function N1(i,o){if(kr!==0&&kr!==5)return i.callbackNode=null,i.callbackPriority=0,null;var c=i.callbackNode;if(qd()&&i.callbackNode!==c)return null;var h=Xt;return h=mt(i,i===jn?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(w1(i,h,o),Yu(i,Ze()),i.callbackNode!=null&&i.callbackNode===c?N1.bind(null,i):null)}function F1(i,o){if(qd())return null;w1(i,o,!0)}function qm(){xw(function(){(bn&6)!==0?Je(ft,fw):Gu()})}function Jd(){return rs===0&&(rs=wa()),rs}function B1(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Kc(""+i)}function z1(i,o){var c=o.ownerDocument.createElement("input");return c.name=o.name,c.value=o.value,i.id&&c.setAttribute("form",i.id),o.parentNode.insertBefore(c,o),i=new FormData(i),c.parentNode.removeChild(c),i}function dw(i,o,c,h,y){if(o==="submit"&&c&&c.stateNode===y){var w=B1((y[vt]||null).action),D=h.submitter;D&&(o=(o=D[vt]||null)?B1(o.formAction):D.getAttribute("formAction"),o!==null&&(w=o,D=null));var F=new qf("action","action",null,h,y);i.push({event:F,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(rs!==0){var Y=D?z1(y,D):new FormData(y);_u(c,{pending:!0,data:Y,method:y.method,action:w},null,Y)}}else typeof w=="function"&&(F.preventDefault(),Y=D?z1(y,D):new FormData(y),_u(c,{pending:!0,data:Y,method:y.method,action:w},w,Y))},currentTarget:y}]})}}for(var Km=0;Km<fn.length;Km++){var Xm=fn[Km],hw=Xm.toLowerCase(),pw=Xm[0].toUpperCase()+Xm.slice(1);ea(hw,"on"+pw)}ea(od,"onAnimationEnd"),ea(xy,"onAnimationIteration"),ea(mi,"onAnimationStart"),ea("dblclick","onDoubleClick"),ea("focusin","onFocus"),ea("focusout","onBlur"),ea(sd,"onTransitionRun"),ea(Xx,"onTransitionStart"),ea(Gl,"onTransitionCancel"),ea(eu,"onTransitionEnd"),jl("onMouseEnter",["mouseout","mouseover"]),jl("onMouseLeave",["mouseout","mouseover"]),jl("onPointerEnter",["pointerout","pointerover"]),jl("onPointerLeave",["pointerout","pointerover"]),Ms("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ms("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ms("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ms("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ms("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ms("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var qu="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),mw=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(qu));function U1(i,o){o=(o&4)!==0;for(var c=0;c<i.length;c++){var h=i[c],y=h.event;h=h.listeners;e:{var w=void 0;if(o)for(var D=h.length-1;0<=D;D--){var F=h[D],Y=F.instance,fe=F.currentTarget;if(F=F.listener,Y!==w&&y.isPropagationStopped())break e;w=F,y.currentTarget=fe;try{w(y)}catch(be){Js(be)}y.currentTarget=null,w=Y}else for(D=0;D<h.length;D++){if(F=h[D],Y=F.instance,fe=F.currentTarget,F=F.listener,Y!==w&&y.isPropagationStopped())break e;w=F,y.currentTarget=fe;try{w(y)}catch(be){Js(be)}y.currentTarget=null,w=Y}}}}function $t(i,o){var c=o[Gr];c===void 0&&(c=o[Gr]=new Set);var h=i+"__bubble";c.has(h)||($1(o,i,2,!1),c.add(h))}function Zm(i,o,c){var h=0;o&&(h|=4),$1(c,i,h,o)}var ai="_reactListening"+Math.random().toString(36).slice(2);function Jm(i){if(!i[ai]){i[ai]=!0,Yg.forEach(function(c){c!=="selectionchange"&&(mw.has(c)||Zm(c,!1,i),Zm(c,!0,i))});var o=i.nodeType===9?i:i.ownerDocument;o===null||o[ai]||(o[ai]=!0,Zm("selectionchange",!1,o))}}function $1(i,o,c,h){switch(sv(o)){case 2:var y=jw;break;case 8:y=Ec;break;default:y=l0}c=y.bind(null,o,c,i),y=void 0,!Zc||o!=="touchstart"&&o!=="touchmove"&&o!=="wheel"||(y=!0),h?y!==void 0?i.addEventListener(o,c,{capture:!0,passive:y}):i.addEventListener(o,c,!0):y!==void 0?i.addEventListener(o,c,{passive:y}):i.addEventListener(o,c,!1)}function go(i,o,c,h,y){var w=h;if((o&1)===0&&(o&2)===0&&h!==null)e:for(;;){if(h===null)return;var D=h.tag;if(D===3||D===4){var F=h.stateNode.containerInfo;if(F===y)break;if(D===4)for(D=h.return;D!==null;){var Y=D.tag;if((Y===3||Y===4)&&D.stateNode.containerInfo===y)return;D=D.return}for(;F!==null;){if(D=kl(F),D===null)return;if(Y=D.tag,Y===5||Y===6||Y===26||Y===27){h=w=D;continue e}F=F.parentNode}}h=h.return}Qg(function(){var fe=w,be=jp(c),_e=[];e:{var pe=tu.get(i);if(pe!==void 0){var he=qf,lt=i;switch(i){case"keypress":if(Cn(c)===0)break e;case"keydown":case"keyup":he=Bp;break;case"focusin":lt="focus",he=Xf;break;case"focusout":lt="blur",he=Xf;break;case"beforeblur":case"afterblur":he=Xf;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=Lo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=Fp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=Ux;break;case od:case xy:case mi:he=iy;break;case eu:he=$x;break;case"scroll":case"scrollend":he=Fx;break;case"wheel":he=Vx;break;case"copy":case"cut":case"paste":he=oy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=eo;break;case"toggle":case"beforetoggle":he=Jf}var st=(o&4)!==0,Tn=!st&&(i==="scroll"||i==="scrollend"),ie=st?pe!==null?pe+"Capture":null:pe;st=[];for(var ee=fe,ue;ee!==null;){var we=ee;if(ue=we.stateNode,we=we.tag,we!==5&&we!==26&&we!==27||ue===null||ie===null||(we=Xc(ee,ie),we!=null&&st.push(gt(ee,we,ue))),Tn)break;ee=ee.return}0<st.length&&(pe=new he(pe,lt,null,c,be),_e.push({event:pe,listeners:st}))}}if((o&7)===0){e:{if(pe=i==="mouseover"||i==="pointerover",he=i==="mouseout"||i==="pointerout",pe&&c!==Gf&&(lt=c.relatedTarget||c.fromElement)&&(kl(lt)||lt[un]))break e;if((he||pe)&&(pe=be.window===be?be:(pe=be.ownerDocument)?pe.defaultView||pe.parentWindow:window,he?(lt=c.relatedTarget||c.toElement,he=fe,lt=lt?kl(lt):null,lt!==null&&(Tn=s(lt),st=lt.tag,lt!==Tn||st!==5&&st!==27&&st!==6)&&(lt=null)):(he=null,lt=fe),he!==lt)){if(st=Lo,we="onMouseLeave",ie="onMouseEnter",ee="mouse",(i==="pointerout"||i==="pointerover")&&(st=eo,we="onPointerLeave",ie="onPointerEnter",ee="pointer"),Tn=he==null?pe:Ml(he),ue=lt==null?pe:Ml(lt),pe=new st(we,ee+"leave",he,c,be),pe.target=Tn,pe.relatedTarget=ue,we=null,kl(be)===fe&&(st=new st(ie,ee+"enter",lt,c,be),st.target=ue,st.relatedTarget=Tn,we=st),Tn=we,he&&lt)t:{for(st=he,ie=lt,ee=0,ue=st;ue;ue=gr(ue))ee++;for(ue=0,we=ie;we;we=gr(we))ue++;for(;0<ee-ue;)st=gr(st),ee--;for(;0<ue-ee;)ie=gr(ie),ue--;for(;ee--;){if(st===ie||ie!==null&&st===ie.alternate)break t;st=gr(st),ie=gr(ie)}st=null}else st=null;he!==null&&Jn(_e,pe,he,st,!1),lt!==null&&Tn!==null&&Jn(_e,Tn,lt,st,!0)}}e:{if(pe=fe?Ml(fe):window,he=pe.nodeName&&pe.nodeName.toLowerCase(),he==="select"||he==="input"&&pe.type==="file")var Ge=hy;else if(nd(pe))if(py)Ge=Yx;else{Ge=Fo;var Ft=yy}else he=pe.nodeName,!he||he.toLowerCase()!=="input"||pe.type!=="checkbox"&&pe.type!=="radio"?fe&&Dp(fe.elementType)&&(Ge=hy):Ge=ad;if(Ge&&(Ge=Ge(i,fe))){$l(_e,Ge,c,be);break e}Ft&&Ft(i,pe,fe),i==="focusout"&&fe&&pe.type==="number"&&fe.memoizedProps.value!=null&&qc(pe,"number",pe.value)}switch(Ft=fe?Ml(fe):window,i){case"focusin":(nd(Ft)||Ft.contentEditable==="true")&&(Wl=Ft,Bo=fe,re=null);break;case"focusout":re=Bo=Wl=null;break;case"mousedown":ye=!0;break;case"contextmenu":case"mouseup":case"dragend":ye=!1,me(_e,c,be);break;case"selectionchange":if(Kx)break;case"keydown":case"keyup":me(_e,c,be)}var et;if($p)e:{switch(i){case"compositionstart":var ct="onCompositionStart";break e;case"compositionend":ct="onCompositionEnd";break e;case"compositionupdate":ct="onCompositionUpdate";break e}ct=void 0}else Po?fy(i,c)&&(ct="onCompositionEnd"):i==="keydown"&&c.keyCode===229&&(ct="onCompositionStart");ct&&(Qf&&c.locale!=="ko"&&(Po||ct!=="onCompositionStart"?ct==="onCompositionEnd"&&Po&&(et=ey()):(Io=be,Pp="value"in Io?Io.value:Io.textContent,Po=!0)),Ft=Qd(fe,ct),0<Ft.length&&(ct=new qr(ct,i,null,c,be),_e.push({event:ct,listeners:Ft}),et?ct.data=et:(et=td(c),et!==null&&(ct.data=et)))),(et=uy?Wx(i,c):dy(i,c))&&(ct=Qd(fe,"onBeforeInput"),0<ct.length&&(Ft=new qr("onBeforeInput","beforeinput",null,c,be),_e.push({event:Ft,listeners:ct}),Ft.data=et)),dw(_e,i,fe,c,be)}U1(_e,o)})}function gt(i,o,c){return{instance:i,listener:o,currentTarget:c}}function Qd(i,o){for(var c=o+"Capture",h=[];i!==null;){var y=i,w=y.stateNode;if(y=y.tag,y!==5&&y!==26&&y!==27||w===null||(y=Xc(i,c),y!=null&&h.unshift(gt(i,y,w)),y=Xc(i,o),y!=null&&h.push(gt(i,y,w))),i.tag===3)return h;i=i.return}return[]}function gr(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Jn(i,o,c,h,y){for(var w=o._reactName,D=[];c!==null&&c!==h;){var F=c,Y=F.alternate,fe=F.stateNode;if(F=F.tag,Y!==null&&Y===h)break;F!==5&&F!==26&&F!==27||fe===null||(Y=fe,y?(fe=Xc(c,w),fe!=null&&D.unshift(gt(c,fe,Y))):y||(fe=Xc(c,w),fe!=null&&D.push(gt(c,fe,Y)))),c=c.return}D.length!==0&&i.push({event:o,listeners:D})}var gw=/\r\n?/g,is=/\u0000|\uFFFD/g;function H1(i){return(typeof i=="string"?i:""+i).replace(gw,`
+`).replace(is,"")}function V1(i,o){return o=H1(o),H1(i)===o}function eh(){}function En(i,o,c,h,y,w){switch(c){case"children":typeof h=="string"?o==="body"||o==="textarea"&&h===""||jo(i,h):(typeof h=="number"||typeof h=="bigint")&&o!=="body"&&jo(i,""+h);break;case"className":Uf(i,"class",h);break;case"tabIndex":Uf(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Uf(i,c,h);break;case"style":Mp(i,h,w);break;case"data":if(o!=="object"){Uf(i,"data",h);break}case"src":case"href":if(h===""&&(o!=="a"||c!=="href")){i.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=Kc(""+h),i.setAttribute(c,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof w=="function"&&(c==="formAction"?(o!=="input"&&En(i,o,"name",y.name,y,null),En(i,o,"formEncType",y.formEncType,y,null),En(i,o,"formMethod",y.formMethod,y,null),En(i,o,"formTarget",y.formTarget,y,null)):(En(i,o,"encType",y.encType,y,null),En(i,o,"method",y.method,y,null),En(i,o,"target",y.target,y,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(c);break}h=Kc(""+h),i.setAttribute(c,h);break;case"onClick":h!=null&&(i.onclick=eh);break;case"onScroll":h!=null&&$t("scroll",i);break;case"onScrollEnd":h!=null&&$t("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(y.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}c=Kc(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""+h):i.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,""):i.removeAttribute(c);break;case"capture":case"download":h===!0?i.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(c,h):i.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(c,h):i.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(c):i.setAttribute(c,h);break;case"popover":$t("beforetoggle",i),$t("toggle",i),zf(i,"popover",h);break;case"xlinkActuate":_a(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":_a(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":_a(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":_a(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":_a(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":_a(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":_a(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":_a(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":_a(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":zf(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=Zg.get(c)||c,zf(i,c,h))}}function Qm(i,o,c,h,y,w){switch(c){case"style":Mp(i,h,w);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(r(61));if(c=h.__html,c!=null){if(y.children!=null)throw Error(r(60));i.innerHTML=c}}break;case"children":typeof h=="string"?jo(i,h):(typeof h=="number"||typeof h=="bigint")&&jo(i,""+h);break;case"onScroll":h!=null&&$t("scroll",i);break;case"onScrollEnd":h!=null&&$t("scrollend",i);break;case"onClick":h!=null&&(i.onclick=eh);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!qg.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(y=c.endsWith("Capture"),o=c.slice(2,y?c.length-7:void 0),w=i[vt]||null,w=w!=null?w[c]:null,typeof w=="function"&&i.removeEventListener(o,w,y),typeof h=="function")){typeof w!="function"&&w!==null&&(c in i?i[c]=null:i.hasAttribute(c)&&i.removeAttribute(c)),i.addEventListener(o,h,y);break e}c in i?i[c]=h:h===!0?i.setAttribute(c,""):zf(i,c,h)}}}function yr(i,o,c){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$t("error",i),$t("load",i);var h=!1,y=!1,w;for(w in c)if(c.hasOwnProperty(w)){var D=c[w];if(D!=null)switch(w){case"src":h=!0;break;case"srcSet":y=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:En(i,o,w,D,c,null)}}y&&En(i,o,"srcSet",c.srcSet,c,null),h&&En(i,o,"src",c.src,c,null);return;case"input":$t("invalid",i);var F=w=D=y=null,Y=null,fe=null;for(h in c)if(c.hasOwnProperty(h)){var be=c[h];if(be!=null)switch(h){case"name":y=be;break;case"type":D=be;break;case"checked":Y=be;break;case"defaultChecked":fe=be;break;case"value":w=be;break;case"defaultValue":F=be;break;case"children":case"dangerouslySetInnerHTML":if(be!=null)throw Error(r(137,o));break;default:En(i,o,h,be,c,null)}}Ap(i,w,F,Y,fe,D,y,!1),Hf(i);return;case"select":$t("invalid",i),h=D=w=null;for(y in c)if(c.hasOwnProperty(y)&&(F=c[y],F!=null))switch(y){case"value":w=F;break;case"defaultValue":D=F;break;case"multiple":h=F;default:En(i,o,y,F,c,null)}o=w,c=D,i.multiple=!!h,o!=null?Ll(i,!!h,o,!1):c!=null&&Ll(i,!!h,c,!0);return;case"textarea":$t("invalid",i),w=y=h=null;for(D in c)if(c.hasOwnProperty(D)&&(F=c[D],F!=null))switch(D){case"value":h=F;break;case"defaultValue":y=F;break;case"children":w=F;break;case"dangerouslySetInnerHTML":if(F!=null)throw Error(r(91));break;default:En(i,o,D,F,c,null)}Wf(i,h,y,w),Hf(i);return;case"option":for(Y in c)if(c.hasOwnProperty(Y)&&(h=c[Y],h!=null))switch(Y){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:En(i,o,Y,h,c,null)}return;case"dialog":$t("beforetoggle",i),$t("toggle",i),$t("cancel",i),$t("close",i);break;case"iframe":case"object":$t("load",i);break;case"video":case"audio":for(h=0;h<qu.length;h++)$t(qu[h],i);break;case"image":$t("error",i),$t("load",i);break;case"details":$t("toggle",i);break;case"embed":case"source":case"link":$t("error",i),$t("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(fe in c)if(c.hasOwnProperty(fe)&&(h=c[fe],h!=null))switch(fe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,o));default:En(i,o,fe,h,c,null)}return;default:if(Dp(o)){for(be in c)c.hasOwnProperty(be)&&(h=c[be],h!==void 0&&Qm(i,o,be,h,c,void 0));return}}for(F in c)c.hasOwnProperty(F)&&(h=c[F],h!=null&&En(i,o,F,h,c,null))}function yw(i,o,c,h){switch(o){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var y=null,w=null,D=null,F=null,Y=null,fe=null,be=null;for(he in c){var _e=c[he];if(c.hasOwnProperty(he)&&_e!=null)switch(he){case"checked":break;case"value":break;case"defaultValue":Y=_e;default:h.hasOwnProperty(he)||En(i,o,he,null,h,_e)}}for(var pe in h){var he=h[pe];if(_e=c[pe],h.hasOwnProperty(pe)&&(he!=null||_e!=null))switch(pe){case"type":w=he;break;case"name":y=he;break;case"checked":fe=he;break;case"defaultChecked":be=he;break;case"value":D=he;break;case"defaultValue":F=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,o));break;default:he!==_e&&En(i,o,pe,he,h,_e)}}Vf(i,D,F,Y,fe,be,w,y);return;case"select":he=D=F=pe=null;for(w in c)if(Y=c[w],c.hasOwnProperty(w)&&Y!=null)switch(w){case"value":break;case"multiple":he=Y;default:h.hasOwnProperty(w)||En(i,o,w,null,h,Y)}for(y in h)if(w=h[y],Y=c[y],h.hasOwnProperty(y)&&(w!=null||Y!=null))switch(y){case"value":pe=w;break;case"defaultValue":F=w;break;case"multiple":D=w;default:w!==Y&&En(i,o,y,w,h,Y)}o=F,c=D,h=he,pe!=null?Ll(i,!!c,pe,!1):!!h!=!!c&&(o!=null?Ll(i,!!c,o,!0):Ll(i,!!c,c?[]:"",!1));return;case"textarea":he=pe=null;for(F in c)if(y=c[F],c.hasOwnProperty(F)&&y!=null&&!h.hasOwnProperty(F))switch(F){case"value":break;case"children":break;default:En(i,o,F,null,h,y)}for(D in h)if(y=h[D],w=c[D],h.hasOwnProperty(D)&&(y!=null||w!=null))switch(D){case"value":pe=y;break;case"defaultValue":he=y;break;case"children":break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(r(91));break;default:y!==w&&En(i,o,D,y,h,w)}kp(i,pe,he);return;case"option":for(var lt in c)if(pe=c[lt],c.hasOwnProperty(lt)&&pe!=null&&!h.hasOwnProperty(lt))switch(lt){case"selected":i.selected=!1;break;default:En(i,o,lt,null,h,pe)}for(Y in h)if(pe=h[Y],he=c[Y],h.hasOwnProperty(Y)&&pe!==he&&(pe!=null||he!=null))switch(Y){case"selected":i.selected=pe&&typeof pe!="function"&&typeof pe!="symbol";break;default:En(i,o,Y,pe,h,he)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var st in c)pe=c[st],c.hasOwnProperty(st)&&pe!=null&&!h.hasOwnProperty(st)&&En(i,o,st,null,h,pe);for(fe in h)if(pe=h[fe],he=c[fe],h.hasOwnProperty(fe)&&pe!==he&&(pe!=null||he!=null))switch(fe){case"children":case"dangerouslySetInnerHTML":if(pe!=null)throw Error(r(137,o));break;default:En(i,o,fe,pe,h,he)}return;default:if(Dp(o)){for(var Tn in c)pe=c[Tn],c.hasOwnProperty(Tn)&&pe!==void 0&&!h.hasOwnProperty(Tn)&&Qm(i,o,Tn,void 0,h,pe);for(be in h)pe=h[be],he=c[be],!h.hasOwnProperty(be)||pe===he||pe===void 0&&he===void 0||Qm(i,o,be,pe,h,he);return}}for(var ie in c)pe=c[ie],c.hasOwnProperty(ie)&&pe!=null&&!h.hasOwnProperty(ie)&&En(i,o,ie,null,h,pe);for(_e in h)pe=h[_e],he=c[_e],!h.hasOwnProperty(_e)||pe===he||pe==null&&he==null||En(i,o,_e,pe,h,he)}var sa=null,th=null;function nl(i){return i.nodeType===9?i:i.ownerDocument}function Vn(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Wn(i,o){if(i===0)switch(o){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&o==="foreignObject"?0:i}function nh(i,o){return i==="textarea"||i==="noscript"||typeof o.children=="string"||typeof o.children=="number"||typeof o.children=="bigint"||typeof o.dangerouslySetInnerHTML=="object"&&o.dangerouslySetInnerHTML!==null&&o.dangerouslySetInnerHTML.__html!=null}var e0=null;function vw(){var i=window.event;return i&&i.type==="popstate"?i===e0?!1:(e0=i,!0):(e0=null,!1)}var W1=typeof setTimeout=="function"?setTimeout:void 0,bw=typeof clearTimeout=="function"?clearTimeout:void 0,G1=typeof Promise=="function"?Promise:void 0,xw=typeof queueMicrotask=="function"?queueMicrotask:typeof G1<"u"?function(i){return G1.resolve(null).then(i).catch(Y1)}:W1;function Y1(i){setTimeout(function(){throw i})}function Hi(i){return i==="head"}function rh(i,o){var c=o,h=0,y=0;do{var w=c.nextSibling;if(i.removeChild(c),w&&w.nodeType===8)if(c=w.data,c==="/$"){if(0<h&&8>h){c=h;var D=i.ownerDocument;if(c&1&&Ku(D.documentElement),c&2&&Ku(D.body),c&4)for(c=D.head,Ku(c),D=c.firstChild;D;){var F=D.nextSibling,Y=D.nodeName;D[Ja]||Y==="SCRIPT"||Y==="STYLE"||Y==="LINK"&&D.rel.toLowerCase()==="stylesheet"||c.removeChild(D),D=F}}if(y===0){i.removeChild(w),rf(o);return}y--}else c==="$"||c==="$?"||c==="$!"?y++:h=c.charCodeAt(0)-48;else h=0;c=w}while(c);rf(o)}function t0(i){var o=i.firstChild;for(o&&o.nodeType===10&&(o=o.nextSibling);o;){var c=o;switch(o=o.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":t0(c),xp(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}i.removeChild(c)}}function q1(i,o,c,h){for(;i.nodeType===1;){var y=c;if(i.nodeName.toLowerCase()!==o.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[Ja])switch(o){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(w=i.getAttribute("rel"),w==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(w!==y.rel||i.getAttribute("href")!==(y.href==null||y.href===""?null:y.href)||i.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin)||i.getAttribute("title")!==(y.title==null?null:y.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(w=i.getAttribute("src"),(w!==(y.src==null?null:y.src)||i.getAttribute("type")!==(y.type==null?null:y.type)||i.getAttribute("crossorigin")!==(y.crossOrigin==null?null:y.crossOrigin))&&w&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(o==="input"&&i.type==="hidden"){var w=y.name==null?null:""+y.name;if(y.type==="hidden"&&i.getAttribute("name")===w)return i}else return i;if(i=la(i.nextSibling),i===null)break}return null}function ih(i,o,c){if(o==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!c||(i=la(i.nextSibling),i===null))return null;return i}function $r(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState==="complete"}function bc(i,o){var c=i.ownerDocument;if(i.data!=="$?"||c.readyState==="complete")o();else{var h=function(){o(),c.removeEventListener("DOMContentLoaded",h)};c.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function la(i){for(;i!=null;i=i.nextSibling){var o=i.nodeType;if(o===1||o===3)break;if(o===8){if(o=i.data,o==="$"||o==="$!"||o==="$?"||o==="F!"||o==="F")break;if(o==="/$")return null}}return i}var n0=null;function K1(i){i=i.previousSibling;for(var o=0;i;){if(i.nodeType===8){var c=i.data;if(c==="$"||c==="$!"||c==="$?"){if(o===0)return i;o--}else c==="/$"&&o++}i=i.previousSibling}return null}function X1(i,o,c){switch(o=nl(c),i){case"html":if(i=o.documentElement,!i)throw Error(r(452));return i;case"head":if(i=o.head,!i)throw Error(r(453));return i;case"body":if(i=o.body,!i)throw Error(r(454));return i;default:throw Error(r(451))}}function Ku(i){for(var o=i.attributes;o.length;)i.removeAttributeNode(o[0]);xp(i)}var Si=new Map,Ia=new Set;function Et(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var La=Q.d;Q.d={f:Vi,r:Z1,D:ww,C:J1,L:ah,m:Sw,X:Cw,S:_w,M:Ew};function Vi(){var i=La.f(),o=Gd();return i||o}function Z1(i){var o=Ol(i);o!==null&&o.tag===5&&o.type==="form"?kd(o):La.r(i)}var xc=typeof document>"u"?null:document;function dn(i,o,c){var h=xc;if(h&&typeof o=="string"&&o){var y=Oi(o);y='link[rel="'+i+'"][href="'+y+'"]',typeof c=="string"&&(y+='[crossorigin="'+c+'"]'),Ia.has(y)||(Ia.add(y),i={rel:i,crossOrigin:c,href:o},h.querySelector(y)===null&&(o=h.createElement("link"),yr(o,"link",i),_r(o),h.head.appendChild(o)))}}function ww(i){La.D(i),dn("dns-prefetch",i,null)}function J1(i,o){La.C(i,o),dn("preconnect",i,o)}function ah(i,o,c){La.L(i,o,c);var h=xc;if(h&&i&&o){var y='link[rel="preload"][as="'+Oi(o)+'"]';o==="image"&&c&&c.imageSrcSet?(y+='[imagesrcset="'+Oi(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(y+='[imagesizes="'+Oi(c.imageSizes)+'"]')):y+='[href="'+Oi(i)+'"]';var w=y;switch(o){case"style":w=wc(i);break;case"script":w=Sc(i)}Si.has(w)||(i=g({rel:"preload",href:o==="image"&&c&&c.imageSrcSet?void 0:i,as:o},c),Si.set(w,i),h.querySelector(y)!==null||o==="style"&&h.querySelector(Xu(w))||o==="script"&&h.querySelector(Zu(w))||(o=h.createElement("link"),yr(o,"link",i),_r(o),h.head.appendChild(o)))}}function Sw(i,o){La.m(i,o);var c=xc;if(c&&i){var h=o&&typeof o.as=="string"?o.as:"script",y='link[rel="modulepreload"][as="'+Oi(h)+'"][href="'+Oi(i)+'"]',w=y;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":w=Sc(i)}if(!Si.has(w)&&(i=g({rel:"modulepreload",href:i},o),Si.set(w,i),c.querySelector(y)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Zu(w)))return}h=c.createElement("link"),yr(h,"link",i),_r(h),c.head.appendChild(h)}}}function _w(i,o,c){La.S(i,o,c);var h=xc;if(h&&i){var y=Dl(h).hoistableStyles,w=wc(i);o=o||"default";var D=y.get(w);if(!D){var F={loading:0,preload:null};if(D=h.querySelector(Xu(w)))F.loading=5;else{i=g({rel:"stylesheet",href:i,"data-precedence":o},c),(c=Si.get(w))&&Ju(i,c);var Y=D=h.createElement("link");_r(Y),yr(Y,"link",i),Y._p=new Promise(function(fe,be){Y.onload=fe,Y.onerror=be}),Y.addEventListener("load",function(){F.loading|=1}),Y.addEventListener("error",function(){F.loading|=2}),F.loading|=4,oh(D,o,h)}D={type:"stylesheet",instance:D,count:1,state:F},y.set(w,D)}}}function Cw(i,o){La.X(i,o);var c=xc;if(c&&i){var h=Dl(c).hoistableScripts,y=Sc(i),w=h.get(y);w||(w=c.querySelector(Zu(y)),w||(i=g({src:i,async:!0},o),(o=Si.get(y))&&r0(i,o),w=c.createElement("script"),_r(w),yr(w,"link",i),c.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},h.set(y,w))}}function Ew(i,o){La.M(i,o);var c=xc;if(c&&i){var h=Dl(c).hoistableScripts,y=Sc(i),w=h.get(y);w||(w=c.querySelector(Zu(y)),w||(i=g({src:i,async:!0,type:"module"},o),(o=Si.get(y))&&r0(i,o),w=c.createElement("script"),_r(w),yr(w,"link",i),c.head.appendChild(w)),w={type:"script",instance:w,count:1,state:null},h.set(y,w))}}function Q1(i,o,c,h){var y=(y=Re.current)?Et(y):null;if(!y)throw Error(r(446));switch(i){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(o=wc(c.href),c=Dl(y).hoistableStyles,h=c.get(o),h||(h={type:"style",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){i=wc(c.href);var w=Dl(y).hoistableStyles,D=w.get(i);if(D||(y=y.ownerDocument||y,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},w.set(i,D),(w=y.querySelector(Xu(i)))&&!w._p&&(D.instance=w,D.state.loading=5),Si.has(i)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Si.set(i,c),w||Tw(y,i,c,D.state))),o&&h===null)throw Error(r(528,""));return D}if(o&&h!==null)throw Error(r(529,""));return null;case"script":return o=c.async,c=c.src,typeof c=="string"&&o&&typeof o!="function"&&typeof o!="symbol"?(o=Sc(c),c=Dl(y).hoistableScripts,h=c.get(o),h||(h={type:"script",instance:null,count:0,state:null},c.set(o,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,i))}}function wc(i){return'href="'+Oi(i)+'"'}function Xu(i){return'link[rel="stylesheet"]['+i+"]"}function ev(i){return g({},i,{"data-precedence":i.precedence,precedence:null})}function Tw(i,o,c,h){i.querySelector('link[rel="preload"][as="style"]['+o+"]")?h.loading=1:(o=i.createElement("link"),h.preload=o,o.addEventListener("load",function(){return h.loading|=1}),o.addEventListener("error",function(){return h.loading|=2}),yr(o,"link",c),_r(o),i.head.appendChild(o))}function Sc(i){return'[src="'+Oi(i)+'"]'}function Zu(i){return"script[async]"+i}function tv(i,o,c){if(o.count++,o.instance===null)switch(o.type){case"style":var h=i.querySelector('style[data-href~="'+Oi(c.href)+'"]');if(h)return o.instance=h,_r(h),h;var y=g({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),_r(h),yr(h,"style",y),oh(h,c.precedence,i),o.instance=h;case"stylesheet":y=wc(c.href);var w=i.querySelector(Xu(y));if(w)return o.state.loading|=4,o.instance=w,_r(w),w;h=ev(c),(y=Si.get(y))&&Ju(h,y),w=(i.ownerDocument||i).createElement("link"),_r(w);var D=w;return D._p=new Promise(function(F,Y){D.onload=F,D.onerror=Y}),yr(w,"link",h),o.state.loading|=4,oh(w,c.precedence,i),o.instance=w;case"script":return w=Sc(c.src),(y=i.querySelector(Zu(w)))?(o.instance=y,_r(y),y):(h=c,(y=Si.get(w))&&(h=g({},c),r0(h,y)),i=i.ownerDocument||i,y=i.createElement("script"),_r(y),yr(y,"link",h),i.head.appendChild(y),o.instance=y);case"void":return null;default:throw Error(r(443,o.type))}else o.type==="stylesheet"&&(o.state.loading&4)===0&&(h=o.instance,o.state.loading|=4,oh(h,c.precedence,i));return o.instance}function oh(i,o,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),y=h.length?h[h.length-1]:null,w=y,D=0;D<h.length;D++){var F=h[D];if(F.dataset.precedence===o)w=F;else if(w!==y)break}w?w.parentNode.insertBefore(i,w.nextSibling):(o=c.nodeType===9?c.head:c,o.insertBefore(i,o.firstChild))}function Ju(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.title==null&&(i.title=o.title)}function r0(i,o){i.crossOrigin==null&&(i.crossOrigin=o.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=o.referrerPolicy),i.integrity==null&&(i.integrity=o.integrity)}var _c=null;function nv(i,o,c){if(_c===null){var h=new Map,y=_c=new Map;y.set(c,h)}else y=_c,h=y.get(c),h||(h=new Map,y.set(c,h));if(h.has(i))return h;for(h.set(i,null),c=c.getElementsByTagName(i),y=0;y<c.length;y++){var w=c[y];if(!(w[Ja]||w[ot]||i==="link"&&w.getAttribute("rel")==="stylesheet")&&w.namespaceURI!=="http://www.w3.org/2000/svg"){var D=w.getAttribute(o)||"";D=i+D;var F=h.get(D);F?F.push(w):h.set(D,[w])}}return h}function rv(i,o,c){i=i.ownerDocument||i,i.head.insertBefore(c,o==="title"?i.querySelector("head > title"):null)}function Rw(i,o,c){if(c===1||o.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof o.precedence!="string"||typeof o.href!="string"||o.href==="")break;return!0;case"link":if(typeof o.rel!="string"||typeof o.href!="string"||o.href===""||o.onLoad||o.onError)break;switch(o.rel){case"stylesheet":return i=o.disabled,typeof o.precedence=="string"&&i==null;default:return!0}case"script":if(o.async&&typeof o.async!="function"&&typeof o.async!="symbol"&&!o.onLoad&&!o.onError&&o.src&&typeof o.src=="string")return!0}return!1}function vr(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}var Tr=null;function Aw(){}function kw(i,o,c){if(Tr===null)throw Error(r(475));var h=Tr;if(o.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var y=wc(c.href),w=i.querySelector(Xu(y));if(w){i=w._p,i!==null&&typeof i=="object"&&typeof i.then=="function"&&(h.count++,h=Qu.bind(h),i.then(h,h)),o.state.loading|=4,o.instance=w,_r(w);return}w=i.ownerDocument||i,c=ev(c),(y=Si.get(y))&&Ju(c,y),w=w.createElement("link"),_r(w);var D=w;D._p=new Promise(function(F,Y){D.onload=F,D.onerror=Y}),yr(w,"link",c),o.instance=w}h.stylesheets===null&&(h.stylesheets=new Map),h.stylesheets.set(o,i),(i=o.state.preload)&&(o.state.loading&3)===0&&(h.count++,o=Qu.bind(h),i.addEventListener("load",o),i.addEventListener("error",o))}}function Ow(){if(Tr===null)throw Error(r(475));var i=Tr;return i.stylesheets&&i.count===0&&i0(i,i.stylesheets),0<i.count?function(o){var c=setTimeout(function(){if(i.stylesheets&&i0(i,i.stylesheets),i.unsuspend){var h=i.unsuspend;i.unsuspend=null,h()}},6e4);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(c)}}:null}function Qu(){if(this.count--,this.count===0){if(this.stylesheets)i0(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var sh=null;function i0(i,o){i.stylesheets=null,i.unsuspend!==null&&(i.count++,sh=new Map,o.forEach(Mw,i),sh=null,Qu.call(i))}function Mw(i,o){if(!(o.state.loading&4)){var c=sh.get(i);if(c)var h=c.get(null);else{c=new Map,sh.set(i,c);for(var y=i.querySelectorAll("link[data-precedence],style[data-precedence]"),w=0;w<y.length;w++){var D=y[w];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(c.set(D.dataset.precedence,D),h=D)}h&&c.set(null,h)}y=o.instance,D=y.getAttribute("data-precedence"),w=c.get(D)||h,w===h&&c.set(null,y),c.set(D,y),this.count++,h=Qu.bind(this),y.addEventListener("load",h),y.addEventListener("error",h),w?w.parentNode.insertBefore(y,w.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(y,i.firstChild)),o.state.loading|=4}}var Cc={$$typeof:O,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function Dw(i,o,c,h,y,w,D,F){this.tag=1,this.containerInfo=i,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Rl(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Rl(0),this.hiddenUpdates=Rl(null),this.identifierPrefix=h,this.onUncaughtError=y,this.onCaughtError=w,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=F,this.incompleteTransitions=new Map}function iv(i,o,c,h,y,w,D,F,Y,fe,be,_e){return i=new Dw(i,o,c,D,F,Y,fe,_e),o=1,w===!0&&(o|=24),w=Kr(3,null,null,o),i.current=w,w.stateNode=i,o=Jp(),o.refCount++,i.pooledCache=o,o.refCount++,w.memoizedState={element:h,isDehydrated:c,cache:o},Hs(w),i}function av(i){return i?(i=Ps,i):Ps}function a0(i,o,c,h,y,w){y=av(y),h.context===null?h.context=y:h.pendingContext=y,h=Ho(o),h.payload={element:c},w=w===void 0?null:w,w!==null&&(h.callback=w),c=io(i,h,o),c!==null&&(wi(c,i,o),du(c,i,o))}function o0(i,o){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var c=i.retryLane;i.retryLane=c!==0&&c<o?c:o}}function s0(i,o){o0(i,o),(i=i.alternate)&&o0(i,o)}function ov(i){if(i.tag===13){var o=Ls(i,67108864);o!==null&&wi(o,i,67108864),s0(i,67108864)}}var lh=!0;function jw(i,o,c,h){var y=V.T;V.T=null;var w=Q.p;try{Q.p=2,l0(i,o,c,h)}finally{Q.p=w,V.T=y}}function Ec(i,o,c,h){var y=V.T;V.T=null;var w=Q.p;try{Q.p=8,l0(i,o,c,h)}finally{Q.p=w,V.T=y}}function l0(i,o,c,h){if(lh){var y=c0(h);if(y===null)go(i,o,h,ch,c),lv(i,h);else if(Lw(y,i,o,c,h))h.stopPropagation();else if(lv(i,h),o&4&&-1<Iw.indexOf(i)){for(;y!==null;){var w=Ol(y);if(w!==null)switch(w.tag){case 3:if(w=w.stateNode,w.current.memoizedState.isDehydrated){var D=Le(w.pendingLanes);if(D!==0){var F=w;for(F.pendingLanes|=2,F.entangledLanes|=2;D;){var Y=1<<31-Vt(D);F.entanglements[1]|=Y,D&=~Y}ja(w),(bn&6)===0&&(hc=Ze()+500,Wu(0))}}break;case 13:F=Ls(w,2),F!==null&&wi(F,w,2),Gd(),s0(w,2)}if(w=c0(h),w===null&&go(i,o,h,ch,c),w===y)break;y=w}y!==null&&h.stopPropagation()}else go(i,o,h,null,c)}}function c0(i){return i=jp(i),u0(i)}var ch=null;function u0(i){if(ch=null,i=kl(i),i!==null){var o=s(i);if(o===null)i=null;else{var c=o.tag;if(c===13){if(i=l(o),i!==null)return i;i=null}else if(c===3){if(o.stateNode.current.memoizedState.isDehydrated)return o.tag===3?o.stateNode.containerInfo:null;i=null}else o!==i&&(i=null)}}return ch=i,null}function sv(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(zt()){case ft:return 2;case Pt:return 8;case at:case Pe:return 32;case rn:return 268435456;default:return 32}default:return 32}}var uh=!1,yo=null,as=null,os=null,ef=new Map,tf=new Map,ss=[],Iw="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function lv(i,o){switch(i){case"focusin":case"focusout":yo=null;break;case"dragenter":case"dragleave":as=null;break;case"mouseover":case"mouseout":os=null;break;case"pointerover":case"pointerout":ef.delete(o.pointerId);break;case"gotpointercapture":case"lostpointercapture":tf.delete(o.pointerId)}}function nf(i,o,c,h,y,w){return i===null||i.nativeEvent!==w?(i={blockedOn:o,domEventName:c,eventSystemFlags:h,nativeEvent:w,targetContainers:[y]},o!==null&&(o=Ol(o),o!==null&&ov(o)),i):(i.eventSystemFlags|=h,o=i.targetContainers,y!==null&&o.indexOf(y)===-1&&o.push(y),i)}function Lw(i,o,c,h,y){switch(o){case"focusin":return yo=nf(yo,i,o,c,h,y),!0;case"dragenter":return as=nf(as,i,o,c,h,y),!0;case"mouseover":return os=nf(os,i,o,c,h,y),!0;case"pointerover":var w=y.pointerId;return ef.set(w,nf(ef.get(w)||null,i,o,c,h,y)),!0;case"gotpointercapture":return w=y.pointerId,tf.set(w,nf(tf.get(w)||null,i,o,c,h,y)),!0}return!1}function cv(i){var o=kl(i.target);if(o!==null){var c=s(o);if(c!==null){if(o=c.tag,o===13){if(o=l(c),o!==null){i.blockedOn=o,$e(i.priority,function(){if(c.tag===13){var h=Lr();h=Wc(h);var y=Ls(c,h);y!==null&&wi(y,c,h),s0(c,h)}});return}}else if(o===3&&c.stateNode.current.memoizedState.isDehydrated){i.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}i.blockedOn=null}function fh(i){if(i.blockedOn!==null)return!1;for(var o=i.targetContainers;0<o.length;){var c=c0(i.nativeEvent);if(c===null){c=i.nativeEvent;var h=new c.constructor(c.type,c);Gf=h,c.target.dispatchEvent(h),Gf=null}else return o=Ol(c),o!==null&&ov(o),i.blockedOn=c,!1;o.shift()}return!0}function uv(i,o,c){fh(i)&&c.delete(o)}function Pw(){uh=!1,yo!==null&&fh(yo)&&(yo=null),as!==null&&fh(as)&&(as=null),os!==null&&fh(os)&&(os=null),ef.forEach(uv),tf.forEach(uv)}function dh(i,o){i.blockedOn===o&&(i.blockedOn=null,uh||(uh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Pw)))}var hh=null;function fv(i){hh!==i&&(hh=i,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){hh===i&&(hh=null);for(var o=0;o<i.length;o+=3){var c=i[o],h=i[o+1],y=i[o+2];if(typeof h!="function"){if(u0(h||c)===null)continue;break}var w=Ol(c);w!==null&&(i.splice(o,3),o-=3,_u(w,{pending:!0,data:y,method:c.method,action:h},h,y))}}))}function rf(i){function o(Y){return dh(Y,i)}yo!==null&&dh(yo,i),as!==null&&dh(as,i),os!==null&&dh(os,i),ef.forEach(o),tf.forEach(o);for(var c=0;c<ss.length;c++){var h=ss[c];h.blockedOn===i&&(h.blockedOn=null)}for(;0<ss.length&&(c=ss[0],c.blockedOn===null);)cv(c),c.blockedOn===null&&ss.shift();if(c=(i.ownerDocument||i).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var y=c[h],w=c[h+1],D=y[vt]||null;if(typeof w=="function")D||fv(c);else if(D){var F=null;if(w&&w.hasAttribute("formAction")){if(y=w,D=w[vt]||null)F=D.formAction;else if(u0(y)!==null)continue}else F=D.action;typeof F=="function"?c[h+1]=F:(c.splice(h,3),h-=3),fv(c)}}}function f0(i){this._internalRoot=i}ph.prototype.render=f0.prototype.render=function(i){var o=this._internalRoot;if(o===null)throw Error(r(409));var c=o.current,h=Lr();a0(c,h,i,o,null,null)},ph.prototype.unmount=f0.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var o=i.containerInfo;a0(i.current,2,null,i,null,null),Gd(),o[un]=null}};function ph(i){this._internalRoot=i}ph.prototype.unstable_scheduleHydration=function(i){if(i){var o=Ff();i={blockedOn:null,target:i,priority:o};for(var c=0;c<ss.length&&o!==0&&o<ss[c].priority;c++);ss.splice(c,0,i),c===0&&cv(i)}};var dv=t.version;if(dv!=="19.1.0")throw Error(r(527,dv,"19.1.0"));Q.findDOMNode=function(i){var o=i._reactInternals;if(o===void 0)throw typeof i.render=="function"?Error(r(188)):(i=Object.keys(i).join(","),Error(r(268,i)));return i=m(o),i=i!==null?p(i):null,i=i===null?null:i.stateNode,i};var Nw={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:V,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var mh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!mh.isDisabled&&mh.supportsFiber)try{_n=mh.inject(Nw),hn=mh}catch{}}return h0.createRoot=function(i,o){if(!a(i))throw Error(r(299));var c=!1,h="",y=Cm,w=Dd,D=Zy,F=null;return o!=null&&(o.unstable_strictMode===!0&&(c=!0),o.identifierPrefix!==void 0&&(h=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(w=o.onCaughtError),o.onRecoverableError!==void 0&&(D=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(F=o.unstable_transitionCallbacks)),o=iv(i,1,!1,null,null,c,h,y,w,D,F,null),i[un]=o.current,Jm(i),new f0(o)},h0.hydrateRoot=function(i,o,c){if(!a(i))throw Error(r(299));var h=!1,y="",w=Cm,D=Dd,F=Zy,Y=null,fe=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(y=c.identifierPrefix),c.onUncaughtError!==void 0&&(w=c.onUncaughtError),c.onCaughtError!==void 0&&(D=c.onCaughtError),c.onRecoverableError!==void 0&&(F=c.onRecoverableError),c.unstable_transitionCallbacks!==void 0&&(Y=c.unstable_transitionCallbacks),c.formState!==void 0&&(fe=c.formState)),o=iv(i,1,!0,o,c??null,h,y,w,D,F,Y,fe),o.context=av(null),c=o.current,h=Lr(),h=Wc(h),y=Ho(h),y.callback=null,io(c,y,h),c=h,o.current.lanes=c,Sa(o,c),ja(o),i[un]=o.current,Jm(i),new ph(o)},h0.version="19.1.0",h0}var ZC;function kO(){if(ZC)return Hw.exports;ZC=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Hw.exports=AO(),Hw.exports}var OO=kO(),p0={},JC;function MO(){if(JC)return p0;JC=1,Object.defineProperty(p0,"__esModule",{value:!0}),p0.parse=l,p0.serialize=p;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,t=/^[\u0021-\u003A\u003C-\u007E]*$/,n=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,a=Object.prototype.toString,s=(()=>{const S=function(){};return S.prototype=Object.create(null),S})();function l(S,T){const C=new s,E=S.length;if(E<2)return C;const A=(T==null?void 0:T.decode)||g;let k=0;do{const L=S.indexOf("=",k);if(L===-1)break;const O=S.indexOf(";",k),P=O===-1?E:O;if(L>P){k=S.lastIndexOf(";",L-1)+1;continue}const M=f(S,k,L),$=m(S,L,M),B=S.slice(M,$);if(C[B]===void 0){let H=f(S,L+1,P),q=m(S,P,H);const j=A(S.slice(H,q));C[B]=j}k=P+1}while(k<E);return C}function f(S,T,C){do{const E=S.charCodeAt(T);if(E!==32&&E!==9)return T}while(++T<C);return C}function m(S,T,C){for(;T>C;){const E=S.charCodeAt(--T);if(E!==32&&E!==9)return T+1}return C}function p(S,T,C){const E=(C==null?void 0:C.encode)||encodeURIComponent;if(!e.test(S))throw new TypeError(`argument name is invalid: ${S}`);const A=E(T);if(!t.test(A))throw new TypeError(`argument val is invalid: ${T}`);let k=S+"="+A;if(!C)return k;if(C.maxAge!==void 0){if(!Number.isInteger(C.maxAge))throw new TypeError(`option maxAge is invalid: ${C.maxAge}`);k+="; Max-Age="+C.maxAge}if(C.domain){if(!n.test(C.domain))throw new TypeError(`option domain is invalid: ${C.domain}`);k+="; Domain="+C.domain}if(C.path){if(!r.test(C.path))throw new TypeError(`option path is invalid: ${C.path}`);k+="; Path="+C.path}if(C.expires){if(!b(C.expires)||!Number.isFinite(C.expires.valueOf()))throw new TypeError(`option expires is invalid: ${C.expires}`);k+="; Expires="+C.expires.toUTCString()}if(C.httpOnly&&(k+="; HttpOnly"),C.secure&&(k+="; Secure"),C.partitioned&&(k+="; Partitioned"),C.priority)switch(typeof C.priority=="string"?C.priority.toLowerCase():void 0){case"low":k+="; Priority=Low";break;case"medium":k+="; Priority=Medium";break;case"high":k+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${C.priority}`)}if(C.sameSite)switch(typeof C.sameSite=="string"?C.sameSite.toLowerCase():C.sameSite){case!0:case"strict":k+="; SameSite=Strict";break;case"lax":k+="; SameSite=Lax";break;case"none":k+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${C.sameSite}`)}return k}function g(S){if(S.indexOf("%")===-1)return S;try{return decodeURIComponent(S)}catch{return S}}function b(S){return a.call(S)==="[object Date]"}return p0}MO();var QC="popstate";function DO(e={}){function t(a,s){let{pathname:l="/",search:f="",hash:m=""}=Of(a.location.hash.substring(1));return!l.startsWith("/")&&!l.startsWith(".")&&(l="/"+l),U2("",{pathname:l,search:f,hash:m},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function n(a,s){let l=a.document.querySelector("base"),f="";if(l&&l.getAttribute("href")){let m=a.location.href,p=m.indexOf("#");f=p===-1?m:m.slice(0,p)}return f+"#"+(typeof s=="string"?s:G0(s))}function r(a,s){Co(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(s)})`)}return IO(t,n,r,e)}function ir(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function Co(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function jO(){return Math.random().toString(36).substring(2,10)}function e3(e,t){return{usr:e.state,key:e.key,idx:t}}function U2(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Of(t):t,state:n,key:t&&t.key||r||jO()}}function G0({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Of(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function IO(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:s=!1}=r,l=a.history,f="POP",m=null,p=g();p==null&&(p=0,l.replaceState({...l.state,idx:p},""));function g(){return(l.state||{idx:null}).idx}function b(){f="POP";let A=g(),k=A==null?null:A-p;p=A,m&&m({action:f,location:E.location,delta:k})}function S(A,k){f="PUSH";let L=U2(E.location,A,k);n&&n(L,A),p=g()+1;let O=e3(L,p),P=E.createHref(L);try{l.pushState(O,"",P)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;a.location.assign(P)}s&&m&&m({action:f,location:E.location,delta:1})}function T(A,k){f="REPLACE";let L=U2(E.location,A,k);n&&n(L,A),p=g();let O=e3(L,p),P=E.createHref(L);l.replaceState(O,"",P),s&&m&&m({action:f,location:E.location,delta:0})}function C(A){return LO(A)}let E={get action(){return f},get location(){return e(a,l)},listen(A){if(m)throw new Error("A history only accepts one active listener");return a.addEventListener(QC,b),m=A,()=>{a.removeEventListener(QC,b),m=null}},createHref(A){return t(a,A)},createURL:C,encodeLocation(A){let k=C(A);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:S,replace:T,go(A){return l.go(A)}};return E}function LO(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ir(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:G0(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function jT(e,t,n="/"){return PO(e,t,n,!1)}function PO(e,t,n,r){let a=typeof t=="string"?Of(t):t,s=yl(a.pathname||"/",n);if(s==null)return null;let l=IT(e);NO(l);let f=null;for(let m=0;f==null&&m<l.length;++m){let p=qO(s);f=GO(l[m],p,r)}return f}function IT(e,t=[],n=[],r=""){let a=(s,l,f)=>{let m={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:l,route:s};m.relativePath.startsWith("/")&&(ir(m.relativePath.startsWith(r),`Absolute route path "${m.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),m.relativePath=m.relativePath.slice(r.length));let p=hl([r,m.relativePath]),g=n.concat(m);s.children&&s.children.length>0&&(ir(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),IT(s.children,t,g,p)),!(s.path==null&&!s.index)&&t.push({path:p,score:VO(p,s.index),routesMeta:g})};return e.forEach((s,l)=>{var f;if(s.path===""||!((f=s.path)!=null&&f.includes("?")))a(s,l);else for(let m of LT(s.path))a(s,l,m)}),t}function LT(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),s=n.replace(/\?$/,"");if(r.length===0)return a?[s,""]:[s];let l=LT(r.join("/")),f=[];return f.push(...l.map(m=>m===""?s:[s,m].join("/"))),a&&f.push(...l),f.map(m=>e.startsWith("/")&&m===""?"/":m)}function NO(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:WO(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var FO=/^:[\w-]+$/,BO=3,zO=2,UO=1,$O=10,HO=-2,t3=e=>e==="*";function VO(e,t){let n=e.split("/"),r=n.length;return n.some(t3)&&(r+=HO),t&&(r+=zO),n.filter(a=>!t3(a)).reduce((a,s)=>a+(FO.test(s)?BO:s===""?UO:$O),r)}function WO(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function GO(e,t,n=!1){let{routesMeta:r}=e,a={},s="/",l=[];for(let f=0;f<r.length;++f){let m=r[f],p=f===r.length-1,g=s==="/"?t:t.slice(s.length)||"/",b=ab({path:m.relativePath,caseSensitive:m.caseSensitive,end:p},g),S=m.route;if(!b&&p&&n&&!r[r.length-1].route.index&&(b=ab({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},g)),!b)return null;Object.assign(a,b.params),l.push({params:a,pathname:hl([s,b.pathname]),pathnameBase:JO(hl([s,b.pathnameBase])),route:S}),b.pathnameBase!=="/"&&(s=hl([s,b.pathnameBase]))}return l}function ab(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=YO(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let s=a[0],l=s.replace(/(.)\/+$/,"$1"),f=a.slice(1);return{params:r.reduce((p,{paramName:g,isOptional:b},S)=>{if(g==="*"){let C=f[S]||"";l=s.slice(0,s.length-C.length).replace(/(.)\/+$/,"$1")}const T=f[S];return b&&!T?p[g]=void 0:p[g]=(T||"").replace(/%2F/g,"/"),p},{}),pathname:s,pathnameBase:l,pattern:e}}function YO(e,t=!1,n=!0){Co(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=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(l,f,m)=>(r.push({paramName:f,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function qO(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Co(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function yl(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)||"/"}function KO(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?Of(e):e;return{pathname:n?n.startsWith("/")?n:XO(n,t):t,search:QO(r),hash:eM(a)}}function XO(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Yw(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 ZO(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function PT(e){let t=ZO(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function NT(e,t,n,r=!1){let a;typeof e=="string"?a=Of(e):(a={...e},ir(!a.pathname||!a.pathname.includes("?"),Yw("?","pathname","search",a)),ir(!a.pathname||!a.pathname.includes("#"),Yw("#","pathname","hash",a)),ir(!a.search||!a.search.includes("#"),Yw("#","search","hash",a)));let s=e===""||a.pathname==="",l=s?"/":a.pathname,f;if(l==null)f=n;else{let b=t.length-1;if(!r&&l.startsWith("..")){let S=l.split("/");for(;S[0]==="..";)S.shift(),b-=1;a.pathname=S.join("/")}f=b>=0?t[b]:"/"}let m=KO(a,f),p=l&&l!=="/"&&l.endsWith("/"),g=(s||l===".")&&n.endsWith("/");return!m.pathname.endsWith("/")&&(p||g)&&(m.pathname+="/"),m}var hl=e=>e.join("/").replace(/\/\/+/g,"/"),JO=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),QO=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,eM=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function tM(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var FT=["POST","PUT","PATCH","DELETE"];new Set(FT);var nM=["GET",...FT];new Set(nM);var ip=_.createContext(null);ip.displayName="DataRouter";var Pb=_.createContext(null);Pb.displayName="DataRouterState";var BT=_.createContext({isTransitioning:!1});BT.displayName="ViewTransition";var rM=_.createContext(new Map);rM.displayName="Fetchers";var iM=_.createContext(null);iM.displayName="Await";var Cs=_.createContext(null);Cs.displayName="Navigation";var pg=_.createContext(null);pg.displayName="Location";var Es=_.createContext({outlet:null,matches:[],isDataRoute:!1});Es.displayName="Route";var GS=_.createContext(null);GS.displayName="RouteError";function aM(e,{relative:t}={}){ir(mg(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=_.useContext(Cs),{hash:a,pathname:s,search:l}=gg(e,{relative:t}),f=s;return n!=="/"&&(f=s==="/"?n:hl([n,s])),r.createHref({pathname:f,search:l,hash:a})}function mg(){return _.useContext(pg)!=null}function Sl(){return ir(mg(),"useLocation() may be used only in the context of a <Router> component."),_.useContext(pg).location}var zT="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function UT(e){_.useContext(Cs).static||_.useLayoutEffect(e)}function _l(){let{isDataRoute:e}=_.useContext(Es);return e?bM():oM()}function oM(){ir(mg(),"useNavigate() may be used only in the context of a <Router> component.");let e=_.useContext(ip),{basename:t,navigator:n}=_.useContext(Cs),{matches:r}=_.useContext(Es),{pathname:a}=Sl(),s=JSON.stringify(PT(r)),l=_.useRef(!1);return UT(()=>{l.current=!0}),_.useCallback((m,p={})=>{if(Co(l.current,zT),!l.current)return;if(typeof m=="number"){n.go(m);return}let g=NT(m,JSON.parse(s),a,p.relative==="path");e==null&&t!=="/"&&(g.pathname=g.pathname==="/"?t:hl([t,g.pathname])),(p.replace?n.replace:n.push)(g,p.state,p)},[t,n,s,a,e])}_.createContext(null);function sM(){let{matches:e}=_.useContext(Es),t=e[e.length-1];return t?t.params:{}}function gg(e,{relative:t}={}){let{matches:n}=_.useContext(Es),{pathname:r}=Sl(),a=JSON.stringify(PT(n));return _.useMemo(()=>NT(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function lM(e,t){return $T(e,t)}function $T(e,t,n,r){var L;ir(mg(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a,static:s}=_.useContext(Cs),{matches:l}=_.useContext(Es),f=l[l.length-1],m=f?f.params:{},p=f?f.pathname:"/",g=f?f.pathnameBase:"/",b=f&&f.route;{let O=b&&b.path||"";HT(p,!b||O.endsWith("*")||O.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${p}" (under <Route path="${O}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
+
+Please change the parent <Route path="${O}"> to <Route path="${O==="/"?"*":`${O}/*`}">.`)}let S=Sl(),T;if(t){let O=typeof t=="string"?Of(t):t;ir(g==="/"||((L=O.pathname)==null?void 0:L.startsWith(g)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${g}" but pathname "${O.pathname}" was given in the \`location\` prop.`),T=O}else T=S;let C=T.pathname||"/",E=C;if(g!=="/"){let O=g.replace(/^\//,"").split("/");E="/"+C.replace(/^\//,"").split("/").slice(O.length).join("/")}let A=!s&&n&&n.matches&&n.matches.length>0?n.matches:jT(e,{pathname:E});Co(b||A!=null,`No routes matched location "${T.pathname}${T.search}${T.hash}" `),Co(A==null||A[A.length-1].route.element!==void 0||A[A.length-1].route.Component!==void 0||A[A.length-1].route.lazy!==void 0,`Matched leaf route at location "${T.pathname}${T.search}${T.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let k=hM(A&&A.map(O=>Object.assign({},O,{params:Object.assign({},m,O.params),pathname:hl([g,a.encodeLocation?a.encodeLocation(O.pathname).pathname:O.pathname]),pathnameBase:O.pathnameBase==="/"?g:hl([g,a.encodeLocation?a.encodeLocation(O.pathnameBase).pathname:O.pathnameBase])})),l,n,r);return t&&k?_.createElement(pg.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...T},navigationType:"POP"}},k):k}function cM(){let e=vM(),t=tM(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},l=null;return console.error("Error handled by React Router default ErrorBoundary:",e),l=_.createElement(_.Fragment,null,_.createElement("p",null,"💿 Hey developer 👋"),_.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",_.createElement("code",{style:s},"ErrorBoundary")," or"," ",_.createElement("code",{style:s},"errorElement")," prop on your route.")),_.createElement(_.Fragment,null,_.createElement("h2",null,"Unexpected Application Error!"),_.createElement("h3",{style:{fontStyle:"italic"}},t),n?_.createElement("pre",{style:a},n):null,l)}var uM=_.createElement(cM,null),fM=class extends _.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?_.createElement(Es.Provider,{value:this.props.routeContext},_.createElement(GS.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function dM({routeContext:e,match:t,children:n}){let r=_.useContext(ip);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),_.createElement(Es.Provider,{value:e},n)}function hM(e,t=[],n=null,r=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,s=n==null?void 0:n.errors;if(s!=null){let m=a.findIndex(p=>p.route.id&&(s==null?void 0:s[p.route.id])!==void 0);ir(m>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(s).join(",")}`),a=a.slice(0,Math.min(a.length,m+1))}let l=!1,f=-1;if(n)for(let m=0;m<a.length;m++){let p=a[m];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(f=m),p.route.id){let{loaderData:g,errors:b}=n,S=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!b||b[p.route.id]===void 0);if(p.route.lazy||S){l=!0,f>=0?a=a.slice(0,f+1):a=[a[0]];break}}}return a.reduceRight((m,p,g)=>{let b,S=!1,T=null,C=null;n&&(b=s&&p.route.id?s[p.route.id]:void 0,T=p.route.errorElement||uM,l&&(f<0&&g===0?(HT("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,C=null):f===g&&(S=!0,C=p.route.hydrateFallbackElement||null)));let E=t.concat(a.slice(0,g+1)),A=()=>{let k;return b?k=T:S?k=C:p.route.Component?k=_.createElement(p.route.Component,null):p.route.element?k=p.route.element:k=m,_.createElement(dM,{match:p,routeContext:{outlet:m,matches:E,isDataRoute:n!=null},children:k})};return n&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?_.createElement(fM,{location:n.location,revalidation:n.revalidation,component:T,error:b,children:A(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):A()},null)}function YS(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function pM(e){let t=_.useContext(ip);return ir(t,YS(e)),t}function mM(e){let t=_.useContext(Pb);return ir(t,YS(e)),t}function gM(e){let t=_.useContext(Es);return ir(t,YS(e)),t}function qS(e){let t=gM(e),n=t.matches[t.matches.length-1];return ir(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function yM(){return qS("useRouteId")}function vM(){var r;let e=_.useContext(GS),t=mM("useRouteError"),n=qS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function bM(){let{router:e}=pM("useNavigate"),t=qS("useNavigate"),n=_.useRef(!1);return UT(()=>{n.current=!0}),_.useCallback(async(a,s={})=>{Co(n.current,zT),n.current&&(typeof a=="number"?e.navigate(a):await e.navigate(a,{fromRouteId:t,...s}))},[e,t])}var n3={};function HT(e,t,n){!t&&!n3[e]&&(n3[e]=!0,Co(!1,n))}_.memo(xM);function xM({routes:e,future:t,state:n}){return $T(e,void 0,n,t)}function Ba(e){ir(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function wM({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:s=!1}){ir(!mg(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let l=e.replace(/^\/*/,"/"),f=_.useMemo(()=>({basename:l,navigator:a,static:s,future:{}}),[l,a,s]);typeof n=="string"&&(n=Of(n));let{pathname:m="/",search:p="",hash:g="",state:b=null,key:S="default"}=n,T=_.useMemo(()=>{let C=yl(m,l);return C==null?null:{location:{pathname:C,search:p,hash:g,state:b,key:S},navigationType:r}},[l,m,p,g,b,S,r]);return Co(T!=null,`<Router basename="${l}"> is not able to match the URL "${m}${p}${g}" because it does not start with the basename, so the <Router> won't render anything.`),T==null?null:_.createElement(Cs.Provider,{value:f},_.createElement(pg.Provider,{children:t,value:T}))}function SM({children:e,location:t}){return lM($2(e),t)}function $2(e,t=[]){let n=[];return _.Children.forEach(e,(r,a)=>{if(!_.isValidElement(r))return;let s=[...t,a];if(r.type===_.Fragment){n.push.apply(n,$2(r.props.children,s));return}ir(r.type===Ba,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ir(!r.props.index||!r.props.children,"An index route cannot have child routes.");let l={id:r.props.id||s.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,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(l.children=$2(r.props.children,s)),n.push(l)}),n}var zv="get",Uv="application/x-www-form-urlencoded";function Nb(e){return e!=null&&typeof e.tagName=="string"}function _M(e){return Nb(e)&&e.tagName.toLowerCase()==="button"}function CM(e){return Nb(e)&&e.tagName.toLowerCase()==="form"}function EM(e){return Nb(e)&&e.tagName.toLowerCase()==="input"}function TM(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function RM(e,t){return e.button===0&&(!t||t==="_self")&&!TM(e)}var pv=null;function AM(){if(pv===null)try{new FormData(document.createElement("form"),0),pv=!1}catch{pv=!0}return pv}var kM=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qw(e){return e!=null&&!kM.has(e)?(Co(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Uv}"`),null):e}function OM(e,t){let n,r,a,s,l;if(CM(e)){let f=e.getAttribute("action");r=f?yl(f,t):null,n=e.getAttribute("method")||zv,a=qw(e.getAttribute("enctype"))||Uv,s=new FormData(e)}else if(_M(e)||EM(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=e.getAttribute("formaction")||f.getAttribute("action");if(r=m?yl(m,t):null,n=e.getAttribute("formmethod")||f.getAttribute("method")||zv,a=qw(e.getAttribute("formenctype"))||qw(f.getAttribute("enctype"))||Uv,s=new FormData(f,e),!AM()){let{name:p,type:g,value:b}=e;if(g==="image"){let S=p?`${p}.`:"";s.append(`${S}x`,"0"),s.append(`${S}y`,"0")}else p&&s.append(p,b)}}else{if(Nb(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=zv,r=null,a=Uv,l=e}return s&&a==="text/plain"&&(l=s,s=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:s,body:l}}function KS(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}async function MM(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function DM(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function jM(e,t,n){let r=await Promise.all(e.map(async a=>{let s=t.routes[a.route.id];if(s){let l=await MM(s,n);return l.links?l.links():[]}return[]}));return NM(r.flat(1).filter(DM).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function r3(e,t,n,r,a,s){let l=(m,p)=>n[p]?m.route.id!==n[p].route.id:!0,f=(m,p)=>{var g;return n[p].pathname!==m.pathname||((g=n[p].route.path)==null?void 0:g.endsWith("*"))&&n[p].params["*"]!==m.params["*"]};return s==="assets"?t.filter((m,p)=>l(m,p)||f(m,p)):s==="data"?t.filter((m,p)=>{var b;let g=r.routes[m.route.id];if(!g||!g.hasLoader)return!1;if(l(m,p)||f(m,p))return!0;if(m.route.shouldRevalidate){let S=m.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((b=n[0])==null?void 0:b.params)||{},nextUrl:new URL(e,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof S=="boolean")return S}return!0}):[]}function IM(e,t,{includeHydrateFallback:n}={}){return LM(e.map(r=>{let a=t.routes[r.route.id];if(!a)return[];let s=[a.module];return a.clientActionModule&&(s=s.concat(a.clientActionModule)),a.clientLoaderModule&&(s=s.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(s=s.concat(a.hydrateFallbackModule)),a.imports&&(s=s.concat(a.imports)),s}).flat(1))}function LM(e){return[...new Set(e)]}function PM(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function NM(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let s=JSON.stringify(PM(a));return n.has(s)||(n.add(s),r.push({key:s,link:a})),r},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var FM=new Set([100,101,204,205]);function BM(e,t){let n=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n.pathname==="/"?n.pathname="_root.data":t&&yl(n.pathname,t)==="/"?n.pathname=`${t.replace(/\/$/,"")}/_root.data`:n.pathname=`${n.pathname.replace(/\/$/,"")}.data`,n}function VT(){let e=_.useContext(ip);return KS(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function zM(){let e=_.useContext(Pb);return KS(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var XS=_.createContext(void 0);XS.displayName="FrameworkContext";function WT(){let e=_.useContext(XS);return KS(e,"You must render this element inside a <HydratedRouter> element"),e}function UM(e,t){let n=_.useContext(XS),[r,a]=_.useState(!1),[s,l]=_.useState(!1),{onFocus:f,onBlur:m,onMouseEnter:p,onMouseLeave:g,onTouchStart:b}=t,S=_.useRef(null);_.useEffect(()=>{if(e==="render"&&l(!0),e==="viewport"){let E=k=>{k.forEach(L=>{l(L.isIntersecting)})},A=new IntersectionObserver(E,{threshold:.5});return S.current&&A.observe(S.current),()=>{A.disconnect()}}},[e]),_.useEffect(()=>{if(r){let E=setTimeout(()=>{l(!0)},100);return()=>{clearTimeout(E)}}},[r]);let T=()=>{a(!0)},C=()=>{a(!1),l(!1)};return n?e!=="intent"?[s,S,{}]:[s,S,{onFocus:m0(f,T),onBlur:m0(m,C),onMouseEnter:m0(p,T),onMouseLeave:m0(g,C),onTouchStart:m0(b,T)}]:[!1,S,{}]}function m0(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function $M({page:e,...t}){let{router:n}=VT(),r=_.useMemo(()=>jT(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?_.createElement(VM,{page:e,matches:r,...t}):null}function HM(e){let{manifest:t,routeModules:n}=WT(),[r,a]=_.useState([]);return _.useEffect(()=>{let s=!1;return jM(e,t,n).then(l=>{s||a(l)}),()=>{s=!0}},[e,t,n]),r}function VM({page:e,matches:t,...n}){let r=Sl(),{manifest:a,routeModules:s}=WT(),{basename:l}=VT(),{loaderData:f,matches:m}=zM(),p=_.useMemo(()=>r3(e,t,m,a,r,"data"),[e,t,m,a,r]),g=_.useMemo(()=>r3(e,t,m,a,r,"assets"),[e,t,m,a,r]),b=_.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let C=new Set,E=!1;if(t.forEach(k=>{var O;let L=a.routes[k.route.id];!L||!L.hasLoader||(!p.some(P=>P.route.id===k.route.id)&&k.route.id in f&&((O=s[k.route.id])!=null&&O.shouldRevalidate)||L.hasClientLoader?E=!0:C.add(k.route.id))}),C.size===0)return[];let A=BM(e,l);return E&&C.size>0&&A.searchParams.set("_routes",t.filter(k=>C.has(k.route.id)).map(k=>k.route.id).join(",")),[A.pathname+A.search]},[l,f,r,a,p,t,e,s]),S=_.useMemo(()=>IM(g,a),[g,a]),T=HM(g);return _.createElement(_.Fragment,null,b.map(C=>_.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...n})),S.map(C=>_.createElement("link",{key:C,rel:"modulepreload",href:C,...n})),T.map(({key:C,link:E})=>_.createElement("link",{key:C,...E})))}function WM(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var GT=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{GT&&(window.__reactRouterVersion="7.6.0")}catch{}function GM({basename:e,children:t,window:n}){let r=_.useRef();r.current==null&&(r.current=DO({window:n,v5Compat:!0}));let a=r.current,[s,l]=_.useState({action:a.action,location:a.location}),f=_.useCallback(m=>{_.startTransition(()=>l(m))},[l]);return _.useLayoutEffect(()=>a.listen(f),[a,f]),_.createElement(wM,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:a})}var YT=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ob=_.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:s,replace:l,state:f,target:m,to:p,preventScrollReset:g,viewTransition:b,...S},T){let{basename:C}=_.useContext(Cs),E=typeof p=="string"&&YT.test(p),A,k=!1;if(typeof p=="string"&&E&&(A=p,GT))try{let q=new URL(window.location.href),j=p.startsWith("//")?new URL(q.protocol+p):new URL(p),X=yl(j.pathname,C);j.origin===q.origin&&X!=null?p=X+j.search+j.hash:k=!0}catch{Co(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let L=aM(p,{relative:a}),[O,P,M]=UM(r,S),$=XM(p,{replace:l,state:f,target:m,preventScrollReset:g,relative:a,viewTransition:b});function B(q){t&&t(q),q.defaultPrevented||$(q)}let H=_.createElement("a",{...S,...M,href:A||L,onClick:k||s?t:B,ref:WM(T,P),target:m,"data-discover":!E&&n==="render"?"true":void 0});return O&&!E?_.createElement(_.Fragment,null,H,_.createElement($M,{page:L})):H});ob.displayName="Link";var YM=_.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:s,to:l,viewTransition:f,children:m,...p},g){let b=gg(l,{relative:p.relative}),S=Sl(),T=_.useContext(Pb),{navigator:C,basename:E}=_.useContext(Cs),A=T!=null&&tD(b)&&f===!0,k=C.encodeLocation?C.encodeLocation(b).pathname:b.pathname,L=S.pathname,O=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;n||(L=L.toLowerCase(),O=O?O.toLowerCase():null,k=k.toLowerCase()),O&&E&&(O=yl(O,E)||O);const P=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let M=L===k||!a&&L.startsWith(k)&&L.charAt(P)==="/",$=O!=null&&(O===k||!a&&O.startsWith(k)&&O.charAt(k.length)==="/"),B={isActive:M,isPending:$,isTransitioning:A},H=M?t:void 0,q;typeof r=="function"?q=r(B):q=[r,M?"active":null,$?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let j=typeof s=="function"?s(B):s;return _.createElement(ob,{...p,"aria-current":H,className:q,ref:g,style:j,to:l,viewTransition:f},typeof m=="function"?m(B):m)});YM.displayName="NavLink";var qM=_.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:s,method:l=zv,action:f,onSubmit:m,relative:p,preventScrollReset:g,viewTransition:b,...S},T)=>{let C=QM(),E=eD(f,{relative:p}),A=l.toLowerCase()==="get"?"get":"post",k=typeof f=="string"&&YT.test(f),L=O=>{if(m&&m(O),O.defaultPrevented)return;O.preventDefault();let P=O.nativeEvent.submitter,M=(P==null?void 0:P.getAttribute("formmethod"))||l;C(P||O.currentTarget,{fetcherKey:t,method:M,navigate:n,replace:a,state:s,relative:p,preventScrollReset:g,viewTransition:b})};return _.createElement("form",{ref:T,method:A,action:E,onSubmit:r?m:L,...S,"data-discover":!k&&e==="render"?"true":void 0})});qM.displayName="Form";function KM(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function qT(e){let t=_.useContext(ip);return ir(t,KM(e)),t}function XM(e,{target:t,replace:n,state:r,preventScrollReset:a,relative:s,viewTransition:l}={}){let f=_l(),m=Sl(),p=gg(e,{relative:s});return _.useCallback(g=>{if(RM(g,t)){g.preventDefault();let b=n!==void 0?n:G0(m)===G0(p);f(e,{replace:b,state:r,preventScrollReset:a,relative:s,viewTransition:l})}},[m,f,p,n,r,t,e,a,s,l])}var ZM=0,JM=()=>`__${String(++ZM)}__`;function QM(){let{router:e}=qT("useSubmit"),{basename:t}=_.useContext(Cs),n=yM();return _.useCallback(async(r,a={})=>{let{action:s,method:l,encType:f,formData:m,body:p}=OM(r,t);if(a.navigate===!1){let g=a.fetcherKey||JM();await e.fetch(g,n,a.action||s,{preventScrollReset:a.preventScrollReset,formData:m,body:p,formMethod:a.method||l,formEncType:a.encType||f,flushSync:a.flushSync})}else await e.navigate(a.action||s,{preventScrollReset:a.preventScrollReset,formData:m,body:p,formMethod:a.method||l,formEncType:a.encType||f,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,n])}function eD(e,{relative:t}={}){let{basename:n}=_.useContext(Cs),r=_.useContext(Es);ir(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),s={...gg(e||".",{relative:t})},l=Sl();if(e==null){s.search=l.search;let f=new URLSearchParams(s.search),m=f.getAll("index");if(m.some(g=>g==="")){f.delete("index"),m.filter(b=>b).forEach(b=>f.append("index",b));let g=f.toString();s.search=g?`?${g}`:""}}return(!e||e===".")&&a.route.index&&(s.search=s.search?s.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(s.pathname=s.pathname==="/"?n:hl([n,s.pathname])),G0(s)}function tD(e,t={}){let n=_.useContext(BT);ir(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=qT("useViewTransitionState"),a=gg(e,{relative:t.relative});if(!n.isTransitioning)return!1;let s=yl(n.currentLocation.pathname,r)||n.currentLocation.pathname,l=yl(n.nextLocation.pathname,r)||n.nextLocation.pathname;return ab(a.pathname,l)!=null||ab(a.pathname,s)!=null}[...FM];var KT=DT();const mv=Ib(KT),Y0={black:"#000",white:"#fff"},gh={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},yh={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},vh={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},bh={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},xh={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"},g0={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},nD={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function vl(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}const yg="$$material";function sb(){return sb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sb.apply(null,arguments)}function rD(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function iD(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var aD=function(){function e(n){var r=this;this._insertTag=function(a){var s;r.tags.length===0?r.insertionPoint?s=r.insertionPoint.nextSibling:r.prepend?s=r.container.firstChild:s=r.before:s=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(a,s),r.tags.push(a)},this.isSpeedy=n.speedy===void 0?!0:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(iD(this));var a=this.tags[this.tags.length-1];if(this.isSpeedy){var s=rD(a);try{s.insertRule(r,s.cssRules.length)}catch{}}else a.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var a;return(a=r.parentNode)==null?void 0:a.removeChild(r)}),this.tags=[],this.ctr=0},e}(),si="-ms-",lb="-moz-",wn="-webkit-",XT="comm",ZS="rule",JS="decl",oD="@import",ZT="@keyframes",sD="@layer",lD=Math.abs,Fb=String.fromCharCode,cD=Object.assign;function uD(e,t){return Vr(e,0)^45?(((t<<2^Vr(e,0))<<2^Vr(e,1))<<2^Vr(e,2))<<2^Vr(e,3):0}function JT(e){return e.trim()}function fD(e,t){return(e=t.exec(e))?e[0]:e}function Sn(e,t,n){return e.replace(t,n)}function H2(e,t){return e.indexOf(t)}function Vr(e,t){return e.charCodeAt(t)|0}function q0(e,t,n){return e.slice(t,n)}function ps(e){return e.length}function QS(e){return e.length}function gv(e,t){return t.push(e),e}function dD(e,t){return e.map(t).join("")}var Bb=1,Jh=1,QT=0,Ji=0,Ar=0,ap="";function zb(e,t,n,r,a,s,l){return{value:e,root:t,parent:n,type:r,props:a,children:s,line:Bb,column:Jh,length:l,return:""}}function y0(e,t){return cD(zb("",null,null,"",null,null,0),e,{length:-e.length},t)}function hD(){return Ar}function pD(){return Ar=Ji>0?Vr(ap,--Ji):0,Jh--,Ar===10&&(Jh=1,Bb--),Ar}function ga(){return Ar=Ji<QT?Vr(ap,Ji++):0,Jh++,Ar===10&&(Jh=1,Bb++),Ar}function vs(){return Vr(ap,Ji)}function $v(){return Ji}function vg(e,t){return q0(ap,e,t)}function K0(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function e5(e){return Bb=Jh=1,QT=ps(ap=e),Ji=0,[]}function t5(e){return ap="",e}function Hv(e){return JT(vg(Ji-1,V2(e===91?e+2:e===40?e+1:e)))}function mD(e){for(;(Ar=vs())&&Ar<33;)ga();return K0(e)>2||K0(Ar)>3?"":" "}function gD(e,t){for(;--t&&ga()&&!(Ar<48||Ar>102||Ar>57&&Ar<65||Ar>70&&Ar<97););return vg(e,$v()+(t<6&&vs()==32&&ga()==32))}function V2(e){for(;ga();)switch(Ar){case e:return Ji;case 34:case 39:e!==34&&e!==39&&V2(Ar);break;case 40:e===41&&V2(e);break;case 92:ga();break}return Ji}function yD(e,t){for(;ga()&&e+Ar!==57;)if(e+Ar===84&&vs()===47)break;return"/*"+vg(t,Ji-1)+"*"+Fb(e===47?e:ga())}function vD(e){for(;!K0(vs());)ga();return vg(e,Ji)}function bD(e){return t5(Vv("",null,null,null,[""],e=e5(e),0,[0],e))}function Vv(e,t,n,r,a,s,l,f,m){for(var p=0,g=0,b=l,S=0,T=0,C=0,E=1,A=1,k=1,L=0,O="",P=a,M=s,$=r,B=O;A;)switch(C=L,L=ga()){case 40:if(C!=108&&Vr(B,b-1)==58){H2(B+=Sn(Hv(L),"&","&\f"),"&\f")!=-1&&(k=-1);break}case 34:case 39:case 91:B+=Hv(L);break;case 9:case 10:case 13:case 32:B+=mD(C);break;case 92:B+=gD($v()-1,7);continue;case 47:switch(vs()){case 42:case 47:gv(xD(yD(ga(),$v()),t,n),m);break;default:B+="/"}break;case 123*E:f[p++]=ps(B)*k;case 125*E:case 59:case 0:switch(L){case 0:case 125:A=0;case 59+g:k==-1&&(B=Sn(B,/\f/g,"")),T>0&&ps(B)-b&&gv(T>32?a3(B+";",r,n,b-1):a3(Sn(B," ","")+";",r,n,b-2),m);break;case 59:B+=";";default:if(gv($=i3(B,t,n,p,g,a,f,O,P=[],M=[],b),s),L===123)if(g===0)Vv(B,t,$,$,P,s,b,f,M);else switch(S===99&&Vr(B,3)===110?100:S){case 100:case 108:case 109:case 115:Vv(e,$,$,r&&gv(i3(e,$,$,0,0,a,f,O,a,P=[],b),M),a,M,b,f,r?P:M);break;default:Vv(B,$,$,$,[""],M,0,f,M)}}p=g=T=0,E=k=1,O=B="",b=l;break;case 58:b=1+ps(B),T=C;default:if(E<1){if(L==123)--E;else if(L==125&&E++==0&&pD()==125)continue}switch(B+=Fb(L),L*E){case 38:k=g>0?1:(B+="\f",-1);break;case 44:f[p++]=(ps(B)-1)*k,k=1;break;case 64:vs()===45&&(B+=Hv(ga())),S=vs(),g=b=ps(O=B+=vD($v())),L++;break;case 45:C===45&&ps(B)==2&&(E=0)}}return s}function i3(e,t,n,r,a,s,l,f,m,p,g){for(var b=a-1,S=a===0?s:[""],T=QS(S),C=0,E=0,A=0;C<r;++C)for(var k=0,L=q0(e,b+1,b=lD(E=l[C])),O=e;k<T;++k)(O=JT(E>0?S[k]+" "+L:Sn(L,/&\f/g,S[k])))&&(m[A++]=O);return zb(e,t,n,a===0?ZS:f,m,p,g)}function xD(e,t,n){return zb(e,t,n,XT,Fb(hD()),q0(e,2,-2),0)}function a3(e,t,n,r){return zb(e,t,n,JS,q0(e,0,r),q0(e,r+1,-1),r)}function $h(e,t){for(var n="",r=QS(e),a=0;a<r;a++)n+=t(e[a],a,e,t)||"";return n}function wD(e,t,n,r){switch(e.type){case sD:if(e.children.length)break;case oD:case JS:return e.return=e.return||e.value;case XT:return"";case ZT:return e.return=e.value+"{"+$h(e.children,r)+"}";case ZS:e.value=e.props.join(",")}return ps(n=$h(e.children,r))?e.return=e.value+"{"+n+"}":""}function SD(e){var t=QS(e);return function(n,r,a,s){for(var l="",f=0;f<t;f++)l+=e[f](n,r,a,s)||"";return l}}function _D(e){return function(t){t.root||(t=t.return)&&e(t)}}function n5(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var CD=function(t,n,r){for(var a=0,s=0;a=s,s=vs(),a===38&&s===12&&(n[r]=1),!K0(s);)ga();return vg(t,Ji)},ED=function(t,n){var r=-1,a=44;do switch(K0(a)){case 0:a===38&&vs()===12&&(n[r]=1),t[r]+=CD(Ji-1,n,r);break;case 2:t[r]+=Hv(a);break;case 4:if(a===44){t[++r]=vs()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=Fb(a)}while(a=ga());return t},TD=function(t,n){return t5(ED(e5(t),n))},o3=new WeakMap,RD=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,a=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!o3.get(r))&&!a){o3.set(t,!0);for(var s=[],l=TD(n,s),f=r.props,m=0,p=0;m<l.length;m++)for(var g=0;g<f.length;g++,p++)t.props[p]=s[m]?l[m].replace(/&\f/g,f[g]):f[g]+" "+l[m]}}},AD=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function r5(e,t){switch(uD(e,t)){case 5103:return wn+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return wn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return wn+e+lb+e+si+e+e;case 6828:case 4268:return wn+e+si+e+e;case 6165:return wn+e+si+"flex-"+e+e;case 5187:return wn+e+Sn(e,/(\w+).+(:[^]+)/,wn+"box-$1$2"+si+"flex-$1$2")+e;case 5443:return wn+e+si+"flex-item-"+Sn(e,/flex-|-self/,"")+e;case 4675:return wn+e+si+"flex-line-pack"+Sn(e,/align-content|flex-|-self/,"")+e;case 5548:return wn+e+si+Sn(e,"shrink","negative")+e;case 5292:return wn+e+si+Sn(e,"basis","preferred-size")+e;case 6060:return wn+"box-"+Sn(e,"-grow","")+wn+e+si+Sn(e,"grow","positive")+e;case 4554:return wn+Sn(e,/([^-])(transform)/g,"$1"+wn+"$2")+e;case 6187:return Sn(Sn(Sn(e,/(zoom-|grab)/,wn+"$1"),/(image-set)/,wn+"$1"),e,"")+e;case 5495:case 3959:return Sn(e,/(image-set\([^]*)/,wn+"$1$`$1");case 4968:return Sn(Sn(e,/(.+:)(flex-)?(.*)/,wn+"box-pack:$3"+si+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+wn+e+e;case 4095:case 3583:case 4068:case 2532:return Sn(e,/(.+)-inline(.+)/,wn+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(ps(e)-1-t>6)switch(Vr(e,t+1)){case 109:if(Vr(e,t+4)!==45)break;case 102:return Sn(e,/(.+:)(.+)-([^]+)/,"$1"+wn+"$2-$3$1"+lb+(Vr(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~H2(e,"stretch")?r5(Sn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Vr(e,t+1)!==115)break;case 6444:switch(Vr(e,ps(e)-3-(~H2(e,"!important")&&10))){case 107:return Sn(e,":",":"+wn)+e;case 101:return Sn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+wn+(Vr(e,14)===45?"inline-":"")+"box$3$1"+wn+"$2$3$1"+si+"$2box$3")+e}break;case 5936:switch(Vr(e,t+11)){case 114:return wn+e+si+Sn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return wn+e+si+Sn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return wn+e+si+Sn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return wn+e+si+e+e}return e}var kD=function(t,n,r,a){if(t.length>-1&&!t.return)switch(t.type){case JS:t.return=r5(t.value,t.length);break;case ZT:return $h([y0(t,{value:Sn(t.value,"@","@"+wn)})],a);case ZS:if(t.length)return dD(t.props,function(s){switch(fD(s,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return $h([y0(t,{props:[Sn(s,/:(read-\w+)/,":"+lb+"$1")]})],a);case"::placeholder":return $h([y0(t,{props:[Sn(s,/:(plac\w+)/,":"+wn+"input-$1")]}),y0(t,{props:[Sn(s,/:(plac\w+)/,":"+lb+"$1")]}),y0(t,{props:[Sn(s,/:(plac\w+)/,si+"input-$1")]})],a)}return""})}},OD=[kD],MD=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(E){var A=E.getAttribute("data-emotion");A.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var a=t.stylisPlugins||OD,s={},l,f=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var A=E.getAttribute("data-emotion").split(" "),k=1;k<A.length;k++)s[A[k]]=!0;f.push(E)});var m,p=[RD,AD];{var g,b=[wD,_D(function(E){g.insert(E)})],S=SD(p.concat(a,b)),T=function(A){return $h(bD(A),S)};m=function(A,k,L,O){g=L,T(A?A+"{"+k.styles+"}":k.styles),O&&(C.inserted[k.name]=!0)}}var C={key:n,sheet:new aD({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:s,registered:{},insert:m};return C.sheet.hydrate(f),C},Kw={exports:{}},Rn={};/** @license React v16.13.1
+ * react-is.production.min.js
+ *
+ * Copyright (c) Facebook, Inc. and its affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var s3;function DD(){if(s3)return Rn;s3=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,a=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,f=e?Symbol.for("react.context"):60110,m=e?Symbol.for("react.async_mode"):60111,p=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,b=e?Symbol.for("react.suspense"):60113,S=e?Symbol.for("react.suspense_list"):60120,T=e?Symbol.for("react.memo"):60115,C=e?Symbol.for("react.lazy"):60116,E=e?Symbol.for("react.block"):60121,A=e?Symbol.for("react.fundamental"):60117,k=e?Symbol.for("react.responder"):60118,L=e?Symbol.for("react.scope"):60119;function O(M){if(typeof M=="object"&&M!==null){var $=M.$$typeof;switch($){case t:switch(M=M.type,M){case m:case p:case r:case s:case a:case b:return M;default:switch(M=M&&M.$$typeof,M){case f:case g:case C:case T:case l:return M;default:return $}}case n:return $}}}function P(M){return O(M)===p}return Rn.AsyncMode=m,Rn.ConcurrentMode=p,Rn.ContextConsumer=f,Rn.ContextProvider=l,Rn.Element=t,Rn.ForwardRef=g,Rn.Fragment=r,Rn.Lazy=C,Rn.Memo=T,Rn.Portal=n,Rn.Profiler=s,Rn.StrictMode=a,Rn.Suspense=b,Rn.isAsyncMode=function(M){return P(M)||O(M)===m},Rn.isConcurrentMode=P,Rn.isContextConsumer=function(M){return O(M)===f},Rn.isContextProvider=function(M){return O(M)===l},Rn.isElement=function(M){return typeof M=="object"&&M!==null&&M.$$typeof===t},Rn.isForwardRef=function(M){return O(M)===g},Rn.isFragment=function(M){return O(M)===r},Rn.isLazy=function(M){return O(M)===C},Rn.isMemo=function(M){return O(M)===T},Rn.isPortal=function(M){return O(M)===n},Rn.isProfiler=function(M){return O(M)===s},Rn.isStrictMode=function(M){return O(M)===a},Rn.isSuspense=function(M){return O(M)===b},Rn.isValidElementType=function(M){return typeof M=="string"||typeof M=="function"||M===r||M===p||M===s||M===a||M===b||M===S||typeof M=="object"&&M!==null&&(M.$$typeof===C||M.$$typeof===T||M.$$typeof===l||M.$$typeof===f||M.$$typeof===g||M.$$typeof===A||M.$$typeof===k||M.$$typeof===L||M.$$typeof===E)},Rn.typeOf=O,Rn}var l3;function jD(){return l3||(l3=1,Kw.exports=DD()),Kw.exports}var Xw,c3;function ID(){if(c3)return Xw;c3=1;var e=jD(),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},n={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},r={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[e.ForwardRef]=r,s[e.Memo]=a;function l(C){return e.isMemo(C)?a:s[C.$$typeof]||t}var f=Object.defineProperty,m=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,g=Object.getOwnPropertyDescriptor,b=Object.getPrototypeOf,S=Object.prototype;function T(C,E,A){if(typeof E!="string"){if(S){var k=b(E);k&&k!==S&&T(C,k,A)}var L=m(E);p&&(L=L.concat(p(E)));for(var O=l(C),P=l(E),M=0;M<L.length;++M){var $=L[M];if(!n[$]&&!(A&&A[$])&&!(P&&P[$])&&!(O&&O[$])){var B=g(E,$);try{f(C,$,B)}catch{}}}}return C}return Xw=T,Xw}ID();var LD=!0;function i5(e,t,n){var r="";return n.split(" ").forEach(function(a){e[a]!==void 0?t.push(e[a]+";"):a&&(r+=a+" ")}),r}var e_=function(t,n,r){var a=t.key+"-"+n.name;(r===!1||LD===!1)&&t.registered[a]===void 0&&(t.registered[a]=n.styles)},t_=function(t,n,r){e_(t,n,r);var a=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var s=n;do t.insert(n===s?"."+a:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}};function PD(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(a){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var ND={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},FD=/[A-Z]|^ms/g,BD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,a5=function(t){return t.charCodeAt(1)===45},u3=function(t){return t!=null&&typeof t!="boolean"},Zw=n5(function(e){return a5(e)?e:e.replace(FD,"-$&").toLowerCase()}),f3=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(BD,function(r,a,s){return ms={name:a,styles:s,next:ms},a})}return ND[t]!==1&&!a5(t)&&typeof n=="number"&&n!==0?n+"px":n};function X0(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var a=n;if(a.anim===1)return ms={name:a.name,styles:a.styles,next:ms},a.name;var s=n;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)ms={name:l.name,styles:l.styles,next:ms},l=l.next;var f=s.styles+";";return f}return zD(e,t,n)}case"function":{if(e!==void 0){var m=ms,p=n(e);return ms=m,X0(e,t,p)}break}}var g=n;if(t==null)return g;var b=t[g];return b!==void 0?b:g}function zD(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=X0(e,t,n[a])+";";else for(var s in n){var l=n[s];if(typeof l!="object"){var f=l;t!=null&&t[f]!==void 0?r+=s+"{"+t[f]+"}":u3(f)&&(r+=Zw(s)+":"+f3(s,f)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var m=0;m<l.length;m++)u3(l[m])&&(r+=Zw(s)+":"+f3(s,l[m])+";");else{var p=X0(e,t,l);switch(s){case"animation":case"animationName":{r+=Zw(s)+":"+p+";";break}default:r+=s+"{"+p+"}"}}}return r}var d3=/label:\s*([^\s;{]+)\s*(;|$)/g,ms;function bg(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";ms=void 0;var s=e[0];if(s==null||s.raw===void 0)r=!1,a+=X0(n,t,s);else{var l=s;a+=l[0]}for(var f=1;f<e.length;f++)if(a+=X0(n,t,e[f]),r){var m=s;a+=m[f]}d3.lastIndex=0;for(var p="",g;(g=d3.exec(a))!==null;)p+="-"+g[1];var b=PD(a)+p;return{name:b,styles:a,next:ms}}var UD=function(t){return t()},o5=ib.useInsertionEffect?ib.useInsertionEffect:!1,s5=o5||UD,h3=o5||_.useLayoutEffect,l5=_.createContext(typeof HTMLElement<"u"?MD({key:"css"}):null);l5.Provider;var n_=function(t){return _.forwardRef(function(n,r){var a=_.useContext(l5);return t(n,a,r)})},Ub=_.createContext({}),xg={}.hasOwnProperty,W2="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",r_=function(t,n){var r={};for(var a in n)xg.call(n,a)&&(r[a]=n[a]);return r[W2]=t,r},$D=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return e_(n,r,a),s5(function(){return t_(n,r,a)}),null},HD=n_(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var a=e[W2],s=[r],l="";typeof e.className=="string"?l=i5(t.registered,s,e.className):e.className!=null&&(l=e.className+" ");var f=bg(s,void 0,_.useContext(Ub));l+=t.key+"-"+f.name;var m={};for(var p in e)xg.call(e,p)&&p!=="css"&&p!==W2&&(m[p]=e[p]);return m.className=l,n&&(m.ref=n),_.createElement(_.Fragment,null,_.createElement($D,{cache:t,serialized:f,isStringTag:typeof a=="string"}),_.createElement(a,m))}),i_=HD,p3=function(t,n){var r=arguments;if(n==null||!xg.call(n,"css"))return _.createElement.apply(void 0,r);var a=r.length,s=new Array(a);s[0]=i_,s[1]=r_(t,n);for(var l=2;l<a;l++)s[l]=r[l];return _.createElement.apply(null,s)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(p3||(p3={}));var VD=n_(function(e,t){var n=e.styles,r=bg([n],void 0,_.useContext(Ub)),a=_.useRef();return h3(function(){var s=t.key+"-global",l=new t.sheet.constructor({key:s,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),f=!1,m=document.querySelector('style[data-emotion="'+s+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),m!==null&&(f=!0,m.setAttribute("data-emotion",s),l.hydrate([m])),a.current=[l,f],function(){l.flush()}},[t]),h3(function(){var s=a.current,l=s[0],f=s[1];if(f){s[1]=!1;return}if(r.next!==void 0&&t_(t,r.next,!0),l.tags.length){var m=l.tags[l.tags.length-1].nextElementSibling;l.before=m,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function a_(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return bg(t)}function Cl(){var e=a_.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var WD=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,GD=n5(function(e){return WD.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),YD=GD,qD=function(t){return t!=="theme"},m3=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?YD:qD},g3=function(t,n,r){var a;if(n){var s=n.shouldForwardProp;a=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof a!="function"&&r&&(a=t.__emotion_forwardProp),a},KD=function(t){var n=t.cache,r=t.serialized,a=t.isStringTag;return e_(n,r,a),s5(function(){return t_(n,r,a)}),null},XD=function e(t,n){var r=t.__emotion_real===t,a=r&&t.__emotion_base||t,s,l;n!==void 0&&(s=n.label,l=n.target);var f=g3(t,n,r),m=f||m3(a),p=!m("as");return function(){var g=arguments,b=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&b.push("label:"+s+";"),g[0]==null||g[0].raw===void 0)b.push.apply(b,g);else{var S=g[0];b.push(S[0]);for(var T=g.length,C=1;C<T;C++)b.push(g[C],S[C])}var E=n_(function(A,k,L){var O=p&&A.as||a,P="",M=[],$=A;if(A.theme==null){$={};for(var B in A)$[B]=A[B];$.theme=_.useContext(Ub)}typeof A.className=="string"?P=i5(k.registered,M,A.className):A.className!=null&&(P=A.className+" ");var H=bg(b.concat(M),k.registered,$);P+=k.key+"-"+H.name,l!==void 0&&(P+=" "+l);var q=p&&f===void 0?m3(O):m,j={};for(var X in A)p&&X==="as"||q(X)&&(j[X]=A[X]);return j.className=P,L&&(j.ref=L),_.createElement(_.Fragment,null,_.createElement(KD,{cache:k,serialized:H,isStringTag:typeof O=="string"}),_.createElement(O,j))});return E.displayName=s!==void 0?s:"Styled("+(typeof a=="string"?a:a.displayName||a.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=a,E.__emotion_styles=b,E.__emotion_forwardProp=f,Object.defineProperty(E,"toString",{value:function(){return"."+l}}),E.withComponent=function(A,k){var L=e(A,sb({},n,k,{shouldForwardProp:g3(E,k,!0)}));return L.apply(void 0,b)},E}},ZD=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],G2=XD.bind(null);ZD.forEach(function(e){G2[e]=G2(e)});var Jw={exports:{}},Qw,y3;function JD(){if(y3)return Qw;y3=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Qw=e,Qw}var e2,v3;function QD(){if(v3)return e2;v3=1;var e=JD();function t(){}function n(){}return n.resetWarningCache=t,e2=function(){function r(l,f,m,p,g,b){if(b!==e){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}r.isRequired=r;function a(){return r}var s={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return s.PropTypes=s,s},e2}var b3;function ej(){return b3||(b3=1,Jw.exports=QD()()),Jw.exports}var tj=ej();const Wr=Ib(tj);function nj(e){return e==null||Object.keys(e).length===0}function rj(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?a=>t(nj(a)?n:a):t;return v.jsx(VD,{styles:r})}function c5(e,t){return G2(e,t)}function ij(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const x3=[];function w3(e){return x3[0]=e,bg(x3)}var t2={exports:{}},In={};/**
+ * @license React
+ * react-is.production.js
+ *
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
+ *
+ * This source code is licensed under the MIT license found in the
+ * LICENSE file in the root directory of this source tree.
+ */var S3;function aj(){if(S3)return In;S3=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),g=Symbol.for("react.memo"),b=Symbol.for("react.lazy"),S=Symbol.for("react.view_transition"),T=Symbol.for("react.client.reference");function C(E){if(typeof E=="object"&&E!==null){var A=E.$$typeof;switch(A){case e:switch(E=E.type,E){case n:case a:case r:case m:case p:case S:return E;default:switch(E=E&&E.$$typeof,E){case l:case f:case b:case g:return E;case s:return E;default:return A}}case t:return A}}}return In.ContextConsumer=s,In.ContextProvider=l,In.Element=e,In.ForwardRef=f,In.Fragment=n,In.Lazy=b,In.Memo=g,In.Portal=t,In.Profiler=a,In.StrictMode=r,In.Suspense=m,In.SuspenseList=p,In.isContextConsumer=function(E){return C(E)===s},In.isContextProvider=function(E){return C(E)===l},In.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===e},In.isForwardRef=function(E){return C(E)===f},In.isFragment=function(E){return C(E)===n},In.isLazy=function(E){return C(E)===b},In.isMemo=function(E){return C(E)===g},In.isPortal=function(E){return C(E)===t},In.isProfiler=function(E){return C(E)===a},In.isStrictMode=function(E){return C(E)===r},In.isSuspense=function(E){return C(E)===m},In.isSuspenseList=function(E){return C(E)===p},In.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===a||E===r||E===m||E===p||typeof E=="object"&&E!==null&&(E.$$typeof===b||E.$$typeof===g||E.$$typeof===l||E.$$typeof===s||E.$$typeof===f||E.$$typeof===T||E.getModuleId!==void 0)},In.typeOf=C,In}var _3;function oj(){return _3||(_3=1,t2.exports=aj()),t2.exports}var u5=oj();function gs(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function f5(e){if(_.isValidElement(e)||u5.isValidElementType(e)||!gs(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=f5(e[n])}),t}function Pr(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return gs(e)&&gs(t)&&Object.keys(t).forEach(a=>{_.isValidElement(t[a])||u5.isValidElementType(t[a])?r[a]=t[a]:gs(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&gs(e[a])?r[a]=Pr(e[a],t[a],n):n.clone?r[a]=gs(t[a])?f5(t[a]):t[a]:r[a]=t[a]}),r}const sj=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function lj(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,s=sj(t),l=Object.keys(s);function f(S){return`@media (min-width:${typeof t[S]=="number"?t[S]:S}${n})`}function m(S){return`@media (max-width:${(typeof t[S]=="number"?t[S]:S)-r/100}${n})`}function p(S,T){const C=l.indexOf(T);return`@media (min-width:${typeof t[S]=="number"?t[S]:S}${n}) and (max-width:${(C!==-1&&typeof t[l[C]]=="number"?t[l[C]]:T)-r/100}${n})`}function g(S){return l.indexOf(S)+1<l.length?p(S,l[l.indexOf(S)+1]):f(S)}function b(S){const T=l.indexOf(S);return T===0?f(l[1]):T===l.length-1?m(l[T]):p(S,l[l.indexOf(S)+1]).replace("@media","@media not all and")}return{keys:l,values:s,up:f,down:m,between:p,only:g,not:b,unit:n,...a}}function cj(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,a)=>{var l,f;const s=/min-width:\s*([0-9.]+)/;return+(((l=r.match(s))==null?void 0:l[1])||0)-+(((f=a.match(s))==null?void 0:f[1])||0)});return n.length?n.reduce((r,a)=>{const s=t[a];return delete r[a],r[a]=s,r},{...t}):t}function uj(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function fj(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,a]=n,s=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(s)}function dj(e){const t=(s,l)=>s.replace("@media",l?`@container ${l}`:"@container");function n(s,l){s.up=(...f)=>t(e.breakpoints.up(...f),l),s.down=(...f)=>t(e.breakpoints.down(...f),l),s.between=(...f)=>t(e.breakpoints.between(...f),l),s.only=(...f)=>t(e.breakpoints.only(...f),l),s.not=(...f)=>{const m=t(e.breakpoints.not(...f),l);return m.includes("not all and")?m.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):m}}const r={},a=s=>(n(r,s),r);return n(a),{...e,containerQueries:a}}const hj={borderRadius:4};function I0(e,t){return t?Pr(e,t,{clone:!1}):e}const $b={xs:0,sm:600,md:900,lg:1200,xl:1536},C3={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${$b[e]}px)`},pj={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:$b[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Eo(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const s=r.breakpoints||C3;return t.reduce((l,f,m)=>(l[s.up(s.keys[m])]=n(t[m]),l),{})}if(typeof t=="object"){const s=r.breakpoints||C3;return Object.keys(t).reduce((l,f)=>{if(uj(s.keys,f)){const m=fj(r.containerQueries?r:pj,f);m&&(l[m]=n(t[f],f))}else if(Object.keys(s.values||$b).includes(f)){const m=s.up(f);l[m]=n(t[f],f)}else{const m=f;l[m]=t[m]}return l},{})}return n(t)}function d5(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,a)=>{const s=e.up(a);return r[s]={},r},{}))||{}}function h5(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function mj(e,...t){const n=d5(e),r=[n,...t].reduce((a,s)=>Pr(a,s),{});return h5(Object.keys(n),r)}function gj(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((a,s)=>{s<e.length&&(n[a]=!0)}):r.forEach(a=>{e[a]!=null&&(n[a]=!0)}),n}function n2({values:e,breakpoints:t,base:n}){const r=n||gj(e,t),a=Object.keys(r);if(a.length===0)return e;let s;return a.reduce((l,f,m)=>(Array.isArray(e)?(l[f]=e[m]!=null?e[m]:e[s],s=m):typeof e=="object"?(l[f]=e[f]!=null?e[f]:e[s],s=f):l[f]=e,l),{})}function Oe(e){if(typeof e!="string")throw new Error(vl(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ic(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,s)=>a&&a[s]?a[s]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function cb(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=Ic(e,n)||r,t&&(a=t(a,r,e)),a}function Sr(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,s=l=>{if(l[t]==null)return null;const f=l[t],m=l.theme,p=Ic(m,r)||{};return Eo(l,f,b=>{let S=cb(p,a,b);return b===S&&typeof b=="string"&&(S=cb(p,a,`${t}${b==="default"?"":Oe(b)}`,b)),n===!1?S:{[n]:S}})};return s.propTypes={},s.filterProps=[t],s}function yj(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const vj={m:"margin",p:"padding"},bj={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},E3={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xj=yj(e=>{if(e.length>2)if(E3[e])e=E3[e];else return[e];const[t,n]=e.split(""),r=vj[t],a=bj[n]||"";return Array.isArray(a)?a.map(s=>r+s):[r+a]}),o_=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],s_=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...o_,...s_];function wg(e,t,n,r){const a=Ic(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?s=>typeof s=="string"?s:typeof a=="string"?a.startsWith("var(")&&s===0?0:a.startsWith("var(")&&s===1?a:`calc(${s} * ${a})`:a*s:Array.isArray(a)?s=>{if(typeof s=="string")return s;const l=Math.abs(s),f=a[l];return s>=0?f:typeof f=="number"?-f:typeof f=="string"&&f.startsWith("var(")?`calc(-1 * ${f})`:`-${f}`}:typeof a=="function"?a:()=>{}}function Hb(e){return wg(e,"spacing",8)}function Rf(e,t){return typeof t=="string"||t==null?t:e(t)}function wj(e,t){return n=>e.reduce((r,a)=>(r[a]=Rf(t,n),r),{})}function Sj(e,t,n,r){if(!t.includes(n))return null;const a=xj(n),s=wj(a,r),l=e[n];return Eo(e,l,s)}function p5(e,t){const n=Hb(e.theme);return Object.keys(e).map(r=>Sj(e,t,r,n)).reduce(I0,{})}function lr(e){return p5(e,o_)}lr.propTypes={};lr.filterProps=o_;function cr(e){return p5(e,s_)}cr.propTypes={};cr.filterProps=s_;function m5(e=8,t=Hb({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(s=>{const l=t(s);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function Vb(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(s=>{r[s]=a}),r),{}),n=r=>Object.keys(r).reduce((a,s)=>t[s]?I0(a,t[s](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function Va(e){return typeof e!="number"?e:`${e}px solid`}function qa(e,t){return Sr({prop:e,themeKey:"borders",transform:t})}const _j=qa("border",Va),Cj=qa("borderTop",Va),Ej=qa("borderRight",Va),Tj=qa("borderBottom",Va),Rj=qa("borderLeft",Va),Aj=qa("borderColor"),kj=qa("borderTopColor"),Oj=qa("borderRightColor"),Mj=qa("borderBottomColor"),Dj=qa("borderLeftColor"),jj=qa("outline",Va),Ij=qa("outlineColor"),Wb=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=wg(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Rf(t,r)});return Eo(e,e.borderRadius,n)}return null};Wb.propTypes={};Wb.filterProps=["borderRadius"];Vb(_j,Cj,Ej,Tj,Rj,Aj,kj,Oj,Mj,Dj,Wb,jj,Ij);const Gb=e=>{if(e.gap!==void 0&&e.gap!==null){const t=wg(e.theme,"spacing",8),n=r=>({gap:Rf(t,r)});return Eo(e,e.gap,n)}return null};Gb.propTypes={};Gb.filterProps=["gap"];const Yb=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=wg(e.theme,"spacing",8),n=r=>({columnGap:Rf(t,r)});return Eo(e,e.columnGap,n)}return null};Yb.propTypes={};Yb.filterProps=["columnGap"];const qb=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=wg(e.theme,"spacing",8),n=r=>({rowGap:Rf(t,r)});return Eo(e,e.rowGap,n)}return null};qb.propTypes={};qb.filterProps=["rowGap"];const Lj=Sr({prop:"gridColumn"}),Pj=Sr({prop:"gridRow"}),Nj=Sr({prop:"gridAutoFlow"}),Fj=Sr({prop:"gridAutoColumns"}),Bj=Sr({prop:"gridAutoRows"}),zj=Sr({prop:"gridTemplateColumns"}),Uj=Sr({prop:"gridTemplateRows"}),$j=Sr({prop:"gridTemplateAreas"}),Hj=Sr({prop:"gridArea"});Vb(Gb,Yb,qb,Lj,Pj,Nj,Fj,Bj,zj,Uj,$j,Hj);function Hh(e,t){return t==="grey"?t:e}const Vj=Sr({prop:"color",themeKey:"palette",transform:Hh}),Wj=Sr({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Hh}),Gj=Sr({prop:"backgroundColor",themeKey:"palette",transform:Hh});Vb(Vj,Wj,Gj);function ma(e){return e<=1&&e!==0?`${e*100}%`:e}const Yj=Sr({prop:"width",transform:ma}),l_=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var a,s,l,f,m;const r=((l=(s=(a=e.theme)==null?void 0:a.breakpoints)==null?void 0:s.values)==null?void 0:l[n])||$b[n];return r?((m=(f=e.theme)==null?void 0:f.breakpoints)==null?void 0:m.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:ma(n)}};return Eo(e,e.maxWidth,t)}return null};l_.filterProps=["maxWidth"];const qj=Sr({prop:"minWidth",transform:ma}),Kj=Sr({prop:"height",transform:ma}),Xj=Sr({prop:"maxHeight",transform:ma}),Zj=Sr({prop:"minHeight",transform:ma});Sr({prop:"size",cssProperty:"width",transform:ma});Sr({prop:"size",cssProperty:"height",transform:ma});const Jj=Sr({prop:"boxSizing"});Vb(Yj,l_,qj,Kj,Xj,Zj,Jj);const Sg={border:{themeKey:"borders",transform:Va},borderTop:{themeKey:"borders",transform:Va},borderRight:{themeKey:"borders",transform:Va},borderBottom:{themeKey:"borders",transform:Va},borderLeft:{themeKey:"borders",transform:Va},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Va},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Wb},color:{themeKey:"palette",transform:Hh},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Hh},backgroundColor:{themeKey:"palette",transform:Hh},p:{style:cr},pt:{style:cr},pr:{style:cr},pb:{style:cr},pl:{style:cr},px:{style:cr},py:{style:cr},padding:{style:cr},paddingTop:{style:cr},paddingRight:{style:cr},paddingBottom:{style:cr},paddingLeft:{style:cr},paddingX:{style:cr},paddingY:{style:cr},paddingInline:{style:cr},paddingInlineStart:{style:cr},paddingInlineEnd:{style:cr},paddingBlock:{style:cr},paddingBlockStart:{style:cr},paddingBlockEnd:{style:cr},m:{style:lr},mt:{style:lr},mr:{style:lr},mb:{style:lr},ml:{style:lr},mx:{style:lr},my:{style:lr},margin:{style:lr},marginTop:{style:lr},marginRight:{style:lr},marginBottom:{style:lr},marginLeft:{style:lr},marginX:{style:lr},marginY:{style:lr},marginInline:{style:lr},marginInlineStart:{style:lr},marginInlineEnd:{style:lr},marginBlock:{style:lr},marginBlockStart:{style:lr},marginBlockEnd:{style:lr},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Gb},rowGap:{style:qb},columnGap:{style:Yb},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:ma},maxWidth:{style:l_},minWidth:{transform:ma},height:{transform:ma},maxHeight:{transform:ma},minHeight:{transform:ma},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Qj(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function e9(e,t){return typeof e=="function"?e(t):e}function t9(){function e(n,r,a,s){const l={[n]:r,theme:a},f=s[n];if(!f)return{[n]:r};const{cssProperty:m=n,themeKey:p,transform:g,style:b}=f;if(r==null)return null;if(p==="typography"&&r==="inherit")return{[n]:r};const S=Ic(a,p)||{};return b?b(l):Eo(l,r,C=>{let E=cb(S,g,C);return C===E&&typeof C=="string"&&(E=cb(S,g,`${n}${C==="default"?"":Oe(C)}`,C)),m===!1?E:{[m]:E}})}function t(n){const{sx:r,theme:a={}}=n||{};if(!r)return null;const s=a.unstable_sxConfig??Sg;function l(f){let m=f;if(typeof f=="function")m=f(a);else if(typeof f!="object")return f;if(!m)return null;const p=d5(a.breakpoints),g=Object.keys(p);let b=p;return Object.keys(m).forEach(S=>{const T=e9(m[S],a);if(T!=null)if(typeof T=="object")if(s[S])b=I0(b,e(S,T,a,s));else{const C=Eo({theme:a},T,E=>({[S]:E}));Qj(C,T)?b[S]=t({sx:T,theme:a}):b=I0(b,C)}else b=I0(b,e(S,T,a,s))}),cj(a,h5(g,b))}return Array.isArray(r)?r.map(l):l(r)}return t}const Af=t9();Af.filterProps=["sx"];function n9(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let a=n.getColorSchemeSelector(e);return a==="&"?t:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:t})}return n.palette.mode===e?t:{}}function _g(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:s={},...l}=e,f=lj(n),m=m5(a);let p=Pr({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:m,shape:{...hj,...s}},l);return p=dj(p),p.applyStyles=n9,p=t.reduce((g,b)=>Pr(g,b),p),p.unstable_sxConfig={...Sg,...l==null?void 0:l.unstable_sxConfig},p.unstable_sx=function(b){return Af({sx:b,theme:this})},p}function r9(e){return Object.keys(e).length===0}function g5(e=null){const t=_.useContext(Ub);return!t||r9(t)?e:t}const i9=_g();function Cg(e=i9){return g5(e)}function a9({styles:e,themeId:t,defaultTheme:n={}}){const r=Cg(n),a=typeof e=="function"?e(t&&r[t]||r):e;return v.jsx(rj,{styles:a})}const o9=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??Sg;return Object.keys(e).forEach(a=>{n[a]?t.systemProps[a]=e[a]:t.otherProps[a]=e[a]}),t};function Kb(e){const{sx:t,...n}=e,{systemProps:r,otherProps:a}=o9(n);let s;return Array.isArray(t)?s=[r,...t]:typeof t=="function"?s=(...l)=>{const f=t(...l);return gs(f)?{...r,...f}:r}:s={...r,...t},{...a,sx:s}}const T3=e=>e,s9=()=>{let e=T3;return{configure(t){e=t},generate(t){return e(t)},reset(){e=T3}}},y5=s9();function v5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=v5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ze(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=v5(e))&&(r&&(r+=" "),r+=t);return r}function l9(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:a}=e,s=c5("div",{shouldForwardProp:f=>f!=="theme"&&f!=="sx"&&f!=="as"})(Af);return _.forwardRef(function(m,p){const g=Cg(n),{className:b,component:S="div",...T}=Kb(m);return v.jsx(s,{as:S,ref:p,className:ze(b,a?a(r):r),theme:t&&g[t]||g,...T})})}const c9={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function wt(e,t,n="Mui"){const r=c9[t];return r?`${n}-${r}`:`${y5.generate(e)}-${t}`}function St(e,t,n="Mui"){const r={};return t.forEach(a=>{r[a]=wt(e,a,n)}),r}function b5(e){const{variants:t,...n}=e,r={variants:t,style:w3(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=w3(a.style))}),r}const u9=_g();function r2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function f9(e){return e?(t,n)=>n[e]:null}function d9(e,t,n){e.theme=p9(e.theme)?n:e.theme[t]||e.theme}function Wv(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Wv(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:a,...s}=n;r=s}return x5(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function x5(e,t,n=[]){var a;let r;e:for(let s=0;s<t.length;s+=1){const l=t[s];if(typeof l.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(r))continue}else for(const f in l.props)if(e[f]!==l.props[f]&&((a=e.ownerState)==null?void 0:a[f])!==l.props[f])continue e;typeof l.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(l.style(r))):n.push(l.style)}return n}function w5(e={}){const{themeId:t,defaultTheme:n=u9,rootShouldForwardProp:r=r2,slotShouldForwardProp:a=r2}=e;function s(f){d9(f,t,n)}return(f,m={})=>{ij(f,M=>M.filter($=>$!==Af));const{name:p,slot:g,skipVariantsResolver:b,skipSx:S,overridesResolver:T=f9(g9(g)),...C}=m,E=b!==void 0?b:g&&g!=="Root"&&g!=="root"||!1,A=S||!1;let k=r2;g==="Root"||g==="root"?k=r:g?k=a:m9(f)&&(k=void 0);const L=c5(f,{shouldForwardProp:k,label:h9(),...C}),O=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function(B){return Wv(B,M)};if(gs(M)){const $=b5(M);return $.variants?function(H){return Wv(H,$)}:$.style}return M},P=(...M)=>{const $=[],B=M.map(O),H=[];if($.push(s),p&&T&&H.push(function(K){var V,Q;const le=(Q=(V=K.theme.components)==null?void 0:V[p])==null?void 0:Q.styleOverrides;if(!le)return null;const oe={};for(const Z in le)oe[Z]=Wv(K,le[Z]);return T(K,oe)}),p&&!E&&H.push(function(K){var oe,V;const ne=K.theme,le=(V=(oe=ne==null?void 0:ne.components)==null?void 0:oe[p])==null?void 0:V.variants;return le?x5(K,le):null}),A||H.push(Af),Array.isArray(B[0])){const X=B.shift(),K=new Array($.length).fill(""),ne=new Array(H.length).fill("");let le;le=[...K,...X,...ne],le.raw=[...K,...X.raw,...ne],$.unshift(le)}const q=[...$,...B,...H],j=L(...q);return f.muiName&&(j.muiName=f.muiName),j};return L.withConfig&&(P.withConfig=L.withConfig),P}}function h9(e,t){return void 0}function p9(e){for(const t in e)return!1;return!0}function m9(e){return typeof e=="string"&&e.charCodeAt(0)>96}function g9(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const S5=w5();function Z0(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const a=r;if(a==="components"||a==="slots")n[a]={...e[a],...n[a]};else if(a==="componentsProps"||a==="slotProps"){const s=e[a],l=t[a];if(!l)n[a]=s||{};else if(!s)n[a]=l;else{n[a]={...l};for(const f in s)if(Object.prototype.hasOwnProperty.call(s,f)){const m=f;n[a][m]=Z0(s[m],l[m])}}}else n[a]===void 0&&(n[a]=e[a])}return n}function _5(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Z0(t.components[n].defaultProps,r)}function C5({props:e,name:t,defaultTheme:n,themeId:r}){let a=Cg(n);return r&&(a=a[r]||a),_5({theme:a,name:t,props:e})}const Ss=typeof window<"u"?_.useLayoutEffect:_.useEffect;function y9(e,t,n,r,a){const[s,l]=_.useState(()=>a&&n?n(e).matches:r?r(e).matches:t);return Ss(()=>{if(!n)return;const f=n(e),m=()=>{l(f.matches)};return m(),f.addEventListener("change",m),()=>{f.removeEventListener("change",m)}},[e,n]),s}const v9={...ib},E5=v9.useSyncExternalStore;function b9(e,t,n,r,a){const s=_.useCallback(()=>t,[t]),l=_.useMemo(()=>{if(a&&n)return()=>n(e).matches;if(r!==null){const{matches:g}=r(e);return()=>g}return s},[s,e,r,a,n]),[f,m]=_.useMemo(()=>{if(n===null)return[s,()=>()=>{}];const g=n(e);return[()=>g.matches,b=>(g.addEventListener("change",b),()=>{g.removeEventListener("change",b)})]},[s,n,e]);return E5(m,f,l)}function T5(e={}){const{themeId:t}=e;return function(r,a={}){let s=g5();s&&t&&(s=s[t]||s);const l=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:f=!1,matchMedia:m=l?window.matchMedia:null,ssrMatchMedia:p=null,noSsr:g=!1}=_5({name:"MuiUseMediaQuery",props:a,theme:s});let b=typeof r=="function"?r(s):r;return b=b.replace(/^@media( ?)/m,""),b.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
+`)),(E5!==void 0?b9:y9)(b,f,m,p,g)}}T5();function x9(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function c_(e,t=0,n=1){return x9(e,t,n)}function w9(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function Fc(e){if(e.type)return e;if(e.charAt(0)==="#")return Fc(w9(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(vl(9,e));let r=e.substring(t+1,e.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(vl(10,a))}else r=r.split(",");return r=r.map(s=>parseFloat(s)),{type:n,values:r,colorSpace:a}}const S9=e=>{const t=Fc(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},k0=(e,t)=>{try{return S9(e)}catch{return e}};function Xb(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((a,s)=>s<3?parseInt(a,10):a):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function R5(e){e=Fc(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,s=r*Math.min(a,1-a),l=(p,g=(p+n/30)%12)=>a-s*Math.max(Math.min(g-3,9-g,1),-1);let f="rgb";const m=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(f+="a",m.push(t[3])),Xb({type:f,values:m})}function Y2(e){e=Fc(e);let t=e.type==="hsl"||e.type==="hsla"?Fc(R5(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function _9(e,t){const n=Y2(e),r=Y2(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Dn(e,t){return e=Fc(e),t=c_(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Xb(e)}function yv(e,t,n){try{return Dn(e,t)}catch{return e}}function u_(e,t){if(e=Fc(e),t=c_(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Xb(e)}function Fn(e,t,n){try{return u_(e,t)}catch{return e}}function f_(e,t){if(e=Fc(e),t=c_(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Xb(e)}function Bn(e,t,n){try{return f_(e,t)}catch{return e}}function A5(e,t=.15){return Y2(e)>.5?u_(e,t):f_(e,t)}function vv(e,t,n){try{return A5(e,t)}catch{return e}}const C9=_.createContext(),Zb=()=>_.useContext(C9)??!1,E9=_.createContext(void 0);function T9(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?Z0(a.defaultProps,r):!a.styleOverrides&&!a.variants?Z0(a,r):r}function R9({props:e,name:t}){const n=_.useContext(E9);return T9({props:e,name:t,theme:{components:n}})}const R3={theme:void 0};function A9(e){let t,n;return function(a){let s=t;return(s===void 0||a.theme!==n)&&(R3.theme=a.theme,s=b5(e(R3)),t=s,n=a.theme),s}}function k9(e=""){function t(...r){if(!r.length)return"";const a=r[0];return typeof a=="string"&&!a.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${a}${t(...r.slice(1))})`:`, ${a}`}return(r,...a)=>`var(--${e?`${e}-`:""}${r}${t(...a)})`}const A3=(e,t,n,r=[])=>{let a=e;t.forEach((s,l)=>{l===t.length-1?Array.isArray(a)?a[Number(s)]=n:a&&typeof a=="object"&&(a[s]=n):a&&typeof a=="object"&&(a[s]||(a[s]=r.includes(s)?[]:{}),a=a[s])})},O9=(e,t,n)=>{function r(a,s=[],l=[]){Object.entries(a).forEach(([f,m])=>{(!n||n&&!n([...s,f]))&&m!=null&&(typeof m=="object"&&Object.keys(m).length>0?r(m,[...s,f],Array.isArray(m)?[...l,f]:l):t([...s,f],m,l))})}r(e)},M9=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function i2(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},s={},l={};return O9(e,(f,m,p)=>{if((typeof m=="string"||typeof m=="number")&&(!r||!r(f,m))){const g=`--${n?`${n}-`:""}${f.join("-")}`,b=M9(f,m);Object.assign(a,{[g]:b}),A3(s,f,`var(${g})`,p),A3(l,f,`var(${g}, ${b})`,p)}},f=>f[0]==="vars"),{css:a,vars:s,varsWithDefaults:l}}function D9(e,t={}){const{getSelector:n=A,disableCssColorScheme:r,colorSchemeSelector:a}=t,{colorSchemes:s={},components:l,defaultColorScheme:f="light",...m}=e,{vars:p,css:g,varsWithDefaults:b}=i2(m,t);let S=b;const T={},{[f]:C,...E}=s;if(Object.entries(E||{}).forEach(([O,P])=>{const{vars:M,css:$,varsWithDefaults:B}=i2(P,t);S=Pr(S,B),T[O]={css:$,vars:M}}),C){const{css:O,vars:P,varsWithDefaults:M}=i2(C,t);S=Pr(S,M),T[f]={css:O,vars:P}}function A(O,P){var $,B;let M=a;if(a==="class"&&(M=".%s"),a==="data"&&(M="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(M=`[${a}="%s"]`),O){if(M==="media")return e.defaultColorScheme===O?":root":{[`@media (prefers-color-scheme: ${((B=($=s[O])==null?void 0:$.palette)==null?void 0:B.mode)||O})`]:{":root":P}};if(M)return e.defaultColorScheme===O?`:root, ${M.replace("%s",String(O))}`:M.replace("%s",String(O))}return":root"}return{vars:S,generateThemeVars:()=>{let O={...p};return Object.entries(T).forEach(([,{vars:P}])=>{O=Pr(O,P)}),O},generateStyleSheets:()=>{var H,q;const O=[],P=e.defaultColorScheme||"light";function M(j,X){Object.keys(X).length&&O.push(typeof j=="string"?{[j]:{...X}}:j)}M(n(void 0,{...g}),g);const{[P]:$,...B}=T;if($){const{css:j}=$,X=(q=(H=s[P])==null?void 0:H.palette)==null?void 0:q.mode,K=!r&&X?{colorScheme:X,...j}:{...j};M(n(P,{...K}),K)}return Object.entries(B).forEach(([j,{css:X}])=>{var le,oe;const K=(oe=(le=s[j])==null?void 0:le.palette)==null?void 0:oe.mode,ne=!r&&K?{colorScheme:K,...X}:{...X};M(n(j,{...ne}),ne)}),O}}}function j9(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function _t(e,t,n=void 0){const r={};for(const a in e){const s=e[a];let l="",f=!0;for(let m=0;m<s.length;m+=1){const p=s[m];p&&(l+=(f===!0?"":" ")+t(p),f=!1,n&&n[p]&&(l+=" "+n[p]))}r[a]=l}return r}function L0(e,t){var n,r,a;return _.isValidElement(e)&&t.indexOf(e.type.muiName??((a=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:a.muiName))!==-1}const I9=(e,t)=>e.filter(n=>t.includes(n)),op=(e,t,n)=>{const r=e.keys[0];Array.isArray(t)?t.forEach((a,s)=>{n((l,f)=>{s<=e.keys.length-1&&(s===0?Object.assign(l,f):l[e.up(e.keys[s])]=f)},a)}):t&&typeof t=="object"?(Object.keys(t).length>e.keys.length?e.keys:I9(e.keys,Object.keys(t))).forEach(s=>{if(e.keys.includes(s)){const l=t[s];l!==void 0&&n((f,m)=>{r===s?Object.assign(f,m):f[e.up(s)]=m},l)}}):(typeof t=="number"||typeof t=="string")&&n((a,s)=>{Object.assign(a,s)},t)};function ub(e){return`--Grid-${e}Spacing`}function Jb(e){return`--Grid-parent-${e}Spacing`}const k3="--Grid-columns",Vh="--Grid-parent-columns",L9=({theme:e,ownerState:t})=>{const n={};return op(e.breakpoints,t.size,(r,a)=>{let s={};a==="grow"&&(s={flexBasis:0,flexGrow:1,maxWidth:"100%"}),a==="auto"&&(s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),typeof a=="number"&&(s={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${a} / var(${Vh}) - (var(${Vh}) - ${a}) * (var(${Jb("column")}) / var(${Vh})))`}),r(n,s)}),n},P9=({theme:e,ownerState:t})=>{const n={};return op(e.breakpoints,t.offset,(r,a)=>{let s={};a==="auto"&&(s={marginLeft:"auto"}),typeof a=="number"&&(s={marginLeft:a===0?"0px":`calc(100% * ${a} / var(${Vh}) + var(${Jb("column")}) * ${a} / var(${Vh}))`}),r(n,s)}),n},N9=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={[k3]:12};return op(e.breakpoints,t.columns,(r,a)=>{const s=a??12;r(n,{[k3]:s,"> *":{[Vh]:s}})}),n},F9=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return op(e.breakpoints,t.rowSpacing,(r,a)=>{var l;const s=typeof a=="string"?a:(l=e.spacing)==null?void 0:l.call(e,a);r(n,{[ub("row")]:s,"> *":{[Jb("row")]:s}})}),n},B9=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return op(e.breakpoints,t.columnSpacing,(r,a)=>{var l;const s=typeof a=="string"?a:(l=e.spacing)==null?void 0:l.call(e,a);r(n,{[ub("column")]:s,"> *":{[Jb("column")]:s}})}),n},z9=({theme:e,ownerState:t})=>{if(!t.container)return{};const n={};return op(e.breakpoints,t.direction,(r,a)=>{r(n,{flexDirection:a})}),n},U9=({ownerState:e})=>({minWidth:0,boxSizing:"border-box",...e.container&&{display:"flex",flexWrap:"wrap",...e.wrap&&e.wrap!=="wrap"&&{flexWrap:e.wrap},gap:`var(${ub("row")}) var(${ub("column")})`}}),$9=e=>{const t=[];return Object.entries(e).forEach(([n,r])=>{r!==!1&&r!==void 0&&t.push(`grid-${n}-${String(r)}`)}),t},H9=(e,t="xs")=>{function n(r){return r===void 0?!1:typeof r=="string"&&!Number.isNaN(Number(r))||typeof r=="number"&&r>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e=="object"&&!Array.isArray(e)){const r=[];return Object.entries(e).forEach(([a,s])=>{n(s)&&r.push(`spacing-${a}-${String(s)}`)}),r}return[]},V9=e=>e===void 0?[]:typeof e=="object"?Object.entries(e).map(([t,n])=>`direction-${t}-${n}`):[`direction-xs-${String(e)}`];function W9(e,t){e.item!==void 0&&delete e.item,e.zeroMinWidth!==void 0&&delete e.zeroMinWidth,t.keys.forEach(n=>{e[n]!==void 0&&delete e[n]})}const G9=_g(),Y9=S5("div",{name:"MuiGrid",slot:"Root"});function q9(e){return C5({props:e,name:"MuiGrid",defaultTheme:G9})}function K9(e={}){const{createStyledComponent:t=Y9,useThemeProps:n=q9,useTheme:r=Cg,componentName:a="MuiGrid"}=e,s=(p,g)=>{const{container:b,direction:S,spacing:T,wrap:C,size:E}=p,A={root:["root",b&&"container",C!=="wrap"&&`wrap-xs-${String(C)}`,...V9(S),...$9(E),...b?H9(T,g.breakpoints.keys[0]):[]]};return _t(A,k=>wt(a,k),{})};function l(p,g,b=()=>!0){const S={};return p===null||(Array.isArray(p)?p.forEach((T,C)=>{T!==null&&b(T)&&g.keys[C]&&(S[g.keys[C]]=T)}):typeof p=="object"?Object.keys(p).forEach(T=>{const C=p[T];C!=null&&b(C)&&(S[T]=C)}):S[g.keys[0]]=p),S}const f=t(N9,B9,F9,L9,z9,U9,P9),m=_.forwardRef(function(g,b){const S=r(),T=n(g),C=Kb(T);W9(C,S.breakpoints);const{className:E,children:A,columns:k=12,container:L=!1,component:O="div",direction:P="row",wrap:M="wrap",size:$={},offset:B={},spacing:H=0,rowSpacing:q=H,columnSpacing:j=H,unstable_level:X=0,...K}=C,ne=l($,S.breakpoints,W=>W!==!1),le=l(B,S.breakpoints),oe=g.columns??(X?void 0:k),V=g.spacing??(X?void 0:H),Q=g.rowSpacing??g.spacing??(X?void 0:q),Z=g.columnSpacing??g.spacing??(X?void 0:j),ae={...C,level:X,columns:oe,container:L,direction:P,wrap:M,spacing:V,rowSpacing:Q,columnSpacing:Z,size:ne,offset:le},U=s(ae,S);return v.jsx(f,{ref:b,as:O,ownerState:ae,className:ze(U.root,E),...K,children:_.Children.map(A,W=>{var te;return _.isValidElement(W)&&L0(W,["Grid"])&&L&&W.props.container?_.cloneElement(W,{unstable_level:((te=W.props)==null?void 0:te.unstable_level)??X+1}):W})})});return m.muiName="Grid",m}const X9=_g(),Z9=S5("div",{name:"MuiStack",slot:"Root"});function J9(e){return C5({props:e,name:"MuiStack",defaultTheme:X9})}function Q9(e,t){const n=_.Children.toArray(e).filter(Boolean);return n.reduce((r,a,s)=>(r.push(a),s<n.length-1&&r.push(_.cloneElement(t,{key:`separator-${s}`})),r),[])}const e7=e=>({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],t7=({ownerState:e,theme:t})=>{let n={display:"flex",flexDirection:"column",...Eo({theme:t},n2({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r}))};if(e.spacing){const r=Hb(t),a=Object.keys(t.breakpoints.values).reduce((m,p)=>((typeof e.spacing=="object"&&e.spacing[p]!=null||typeof e.direction=="object"&&e.direction[p]!=null)&&(m[p]=!0),m),{}),s=n2({values:e.direction,base:a}),l=n2({values:e.spacing,base:a});typeof s=="object"&&Object.keys(s).forEach((m,p,g)=>{if(!s[m]){const S=p>0?s[g[p-1]]:"column";s[m]=S}}),n=Pr(n,Eo({theme:t},l,(m,p)=>e.useFlexGap?{gap:Rf(r,m)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${e7(p?s[p]:e.direction)}`]:Rf(r,m)}}))}return n=mj(t.breakpoints,n),n};function n7(e={}){const{createStyledComponent:t=Z9,useThemeProps:n=J9,componentName:r="MuiStack"}=e,a=()=>_t({root:["root"]},m=>wt(r,m),{}),s=t(t7);return _.forwardRef(function(m,p){const g=n(m),b=Kb(g),{component:S="div",direction:T="column",spacing:C=0,divider:E,children:A,className:k,useFlexGap:L=!1,...O}=b,P={direction:T,spacing:C,useFlexGap:L},M=a();return v.jsx(s,{as:S,ownerState:P,ref:p,className:ze(M.root,k),...O,children:E?Q9(A,E):A})})}function k5(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Y0.white,default:Y0.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}}}const r7=k5();function O5(){return{text:{primary:Y0.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Y0.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}}}const O3=O5();function M3(e,t,n,r){const a=r.light||r,s=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=f_(e.main,a):t==="dark"&&(e.dark=u_(e.main,s)))}function i7(e="light"){return e==="dark"?{main:vh[200],light:vh[50],dark:vh[400]}:{main:vh[700],light:vh[400],dark:vh[800]}}function a7(e="light"){return e==="dark"?{main:yh[200],light:yh[50],dark:yh[400]}:{main:yh[500],light:yh[300],dark:yh[700]}}function o7(e="light"){return e==="dark"?{main:gh[500],light:gh[300],dark:gh[700]}:{main:gh[700],light:gh[400],dark:gh[800]}}function s7(e="light"){return e==="dark"?{main:bh[400],light:bh[300],dark:bh[700]}:{main:bh[700],light:bh[500],dark:bh[900]}}function l7(e="light"){return e==="dark"?{main:xh[400],light:xh[300],dark:xh[700]}:{main:xh[800],light:xh[500],dark:xh[900]}}function c7(e="light"){return e==="dark"?{main:g0[400],light:g0[300],dark:g0[700]}:{main:"#ed6c02",light:g0[500],dark:g0[900]}}function d_(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...a}=e,s=e.primary||i7(t),l=e.secondary||a7(t),f=e.error||o7(t),m=e.info||s7(t),p=e.success||l7(t),g=e.warning||c7(t);function b(E){return _9(E,O3.text.primary)>=n?O3.text.primary:r7.text.primary}const S=({color:E,name:A,mainShade:k=500,lightShade:L=300,darkShade:O=700})=>{if(E={...E},!E.main&&E[k]&&(E.main=E[k]),!E.hasOwnProperty("main"))throw new Error(vl(11,A?` (${A})`:"",k));if(typeof E.main!="string")throw new Error(vl(12,A?` (${A})`:"",JSON.stringify(E.main)));return M3(E,"light",L,r),M3(E,"dark",O,r),E.contrastText||(E.contrastText=b(E.main)),E};let T;return t==="light"?T=k5():t==="dark"&&(T=O5()),Pr({common:{...Y0},mode:t,primary:S({color:s,name:"primary"}),secondary:S({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:f,name:"error"}),warning:S({color:g,name:"warning"}),info:S({color:m,name:"info"}),success:S({color:p,name:"success"}),grey:nD,contrastThreshold:n,getContrastText:b,augmentColor:S,tonalOffset:r,...T},a)}function u7(e){const t={};return Object.entries(e).forEach(r=>{const[a,s]=r;typeof s=="object"&&(t[a]=`${s.fontStyle?`${s.fontStyle} `:""}${s.fontVariant?`${s.fontVariant} `:""}${s.fontWeight?`${s.fontWeight} `:""}${s.fontStretch?`${s.fontStretch} `:""}${s.fontSize||""}${s.lineHeight?`/${s.lineHeight} `:""}${s.fontFamily||""}`)}),t}function f7(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function d7(e){return Math.round(e*1e5)/1e5}const D3={textTransform:"uppercase"},j3='"Roboto", "Helvetica", "Arial", sans-serif';function h7(e,t){const{fontFamily:n=j3,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:l=500,fontWeightBold:f=700,htmlFontSize:m=16,allVariants:p,pxToRem:g,...b}=typeof t=="function"?t(e):t,S=r/14,T=g||(A=>`${A/m*S}rem`),C=(A,k,L,O,P)=>({fontFamily:n,fontWeight:A,fontSize:T(k),lineHeight:L,...n===j3?{letterSpacing:`${d7(O/k)}em`}:{},...P,...p}),E={h1:C(a,96,1.167,-1.5),h2:C(a,60,1.2,-.5),h3:C(s,48,1.167,0),h4:C(s,34,1.235,.25),h5:C(s,24,1.334,0),h6:C(l,20,1.6,.15),subtitle1:C(s,16,1.75,.15),subtitle2:C(l,14,1.57,.1),body1:C(s,16,1.5,.15),body2:C(s,14,1.43,.15),button:C(l,14,1.75,.4,D3),caption:C(s,12,1.66,.4),overline:C(s,12,2.66,1,D3),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Pr({htmlFontSize:m,pxToRem:T,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:l,fontWeightBold:f,...E},b,{clone:!1})}const p7=.2,m7=.14,g7=.12;function Qn(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${p7})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${m7})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${g7})`].join(",")}const y7=["none",Qn(0,2,1,-1,0,1,1,0,0,1,3,0),Qn(0,3,1,-2,0,2,2,0,0,1,5,0),Qn(0,3,3,-2,0,3,4,0,0,1,8,0),Qn(0,2,4,-1,0,4,5,0,0,1,10,0),Qn(0,3,5,-1,0,5,8,0,0,1,14,0),Qn(0,3,5,-1,0,6,10,0,0,1,18,0),Qn(0,4,5,-2,0,7,10,1,0,2,16,1),Qn(0,5,5,-3,0,8,10,1,0,3,14,2),Qn(0,5,6,-3,0,9,12,1,0,3,16,2),Qn(0,6,6,-3,0,10,14,1,0,4,18,3),Qn(0,6,7,-4,0,11,15,1,0,4,20,3),Qn(0,7,8,-4,0,12,17,2,0,5,22,4),Qn(0,7,8,-4,0,13,19,2,0,5,24,4),Qn(0,7,9,-4,0,14,21,2,0,5,26,4),Qn(0,8,9,-5,0,15,22,2,0,6,28,5),Qn(0,8,10,-5,0,16,24,2,0,6,30,5),Qn(0,8,11,-5,0,17,26,2,0,6,32,5),Qn(0,9,11,-5,0,18,28,2,0,7,34,6),Qn(0,9,12,-6,0,19,29,2,0,7,36,6),Qn(0,10,13,-6,0,20,31,3,0,8,38,7),Qn(0,10,13,-6,0,21,33,3,0,8,40,7),Qn(0,10,14,-6,0,22,35,3,0,8,42,7),Qn(0,11,14,-7,0,23,36,3,0,9,44,8),Qn(0,11,15,-7,0,24,38,3,0,9,46,8)],v7={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},b7={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function I3(e){return`${Math.round(e)}ms`}function x7(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function w7(e){const t={...v7,...e.easing},n={...b7,...e.duration};return{getAutoHeightDuration:x7,create:(a=["all"],s={})=>{const{duration:l=n.standard,easing:f=t.easeInOut,delay:m=0,...p}=s;return(Array.isArray(a)?a:[a]).map(g=>`${g} ${typeof l=="string"?l:I3(l)} ${f} ${typeof m=="string"?m:I3(m)}`).join(",")},...e,easing:t,duration:n}}const S7={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function _7(e){return gs(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function M5(e={}){const t={...e};function n(r){const a=Object.entries(r);for(let s=0;s<a.length;s++){const[l,f]=a[s];!_7(f)||l.startsWith("unstable_")?delete r[l]:gs(f)&&(r[l]={...f},n(r[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
+
+const theme = ${JSON.stringify(t,null,2)};
+
+theme.breakpoints = createBreakpoints(theme.breakpoints || {});
+theme.transitions = createTransitions(theme.transitions || {});
+
+export default theme;`}function q2(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:s={},transitions:l={},typography:f={},shape:m,...p}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(vl(20));const g=d_(s),b=_g(e);let S=Pr(b,{mixins:f7(b.breakpoints,r),palette:g,shadows:y7.slice(),typography:h7(g,f),transitions:w7(l),zIndex:{...S7}});return S=Pr(S,p),S=t.reduce((T,C)=>Pr(T,C),S),S.unstable_sxConfig={...Sg,...p==null?void 0:p.unstable_sxConfig},S.unstable_sx=function(C){return Af({sx:C,theme:this})},S.toRuntimeSource=M5,S}function K2(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const C7=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=K2(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function D5(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function j5(e){return e==="dark"?C7:[]}function E7(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...a}=e,s=d_(t);return{palette:s,opacity:{...D5(s.mode),...n},overlays:r||j5(s.mode),...a}}function T7(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const R7=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],A7=e=>(t,n)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let s=a;if(a==="class"&&(s=".%s"),a==="data"&&(s="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(s=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return R7(e.cssVarPrefix).forEach(f=>{l[f]=n[f],delete n[f]}),s==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:s?{[s.replace("%s",t)]:l,[`${r}, ${s.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}if(s&&s!=="media")return`${r}, ${s.replace("%s",String(t))}`}else if(t){if(s==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(s)return s.replace("%s",String(t))}return r};function k7(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function ve(e,t,n){!e[t]&&n&&(e[t]=n)}function O0(e){return typeof e!="string"||!e.startsWith("hsl")?e:R5(e)}function il(e,t){`${t}Channel`in e||(e[`${t}Channel`]=k0(O0(e[t])))}function O7(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const cs=e=>{try{return e()}catch{}},M7=(e="mui")=>k9(e);function a2(e,t,n,r){if(!t)return;t=t===!0?{}:t;const a=r==="dark"?"dark":"light";if(!n){e[r]=E7({...t,palette:{mode:a,...t==null?void 0:t.palette}});return}const{palette:s,...l}=q2({...n,palette:{mode:a,...t==null?void 0:t.palette}});return e[r]={...t,palette:s,opacity:{...D5(a),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||j5(a)},l}function D7(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:s="mui",shouldSkipGeneratingVar:l=T7,colorSchemeSelector:f=n.light&&n.dark?"media":void 0,rootSelector:m=":root",...p}=e,g=Object.keys(n)[0],b=r||(n.light&&g!=="light"?"light":g),S=M7(s),{[b]:T,light:C,dark:E,...A}=n,k={...A};let L=T;if((b==="dark"&&!("dark"in n)||b==="light"&&!("light"in n))&&(L=!0),!L)throw new Error(vl(21,b));const O=a2(k,L,p,b);C&&!k.light&&a2(k,C,void 0,"light"),E&&!k.dark&&a2(k,E,void 0,"dark");let P={defaultColorScheme:b,...O,cssVarPrefix:s,colorSchemeSelector:f,rootSelector:m,getCssVar:S,colorSchemes:k,font:{...u7(O.typography),...O.font},spacing:O7(p.spacing)};Object.keys(P.colorSchemes).forEach(q=>{const j=P.colorSchemes[q].palette,X=K=>{const ne=K.split("-"),le=ne[1],oe=ne[2];return S(K,j[le][oe])};if(j.mode==="light"&&(ve(j.common,"background","#fff"),ve(j.common,"onBackground","#000")),j.mode==="dark"&&(ve(j.common,"background","#000"),ve(j.common,"onBackground","#fff")),k7(j,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),j.mode==="light"){ve(j.Alert,"errorColor",Fn(j.error.light,.6)),ve(j.Alert,"infoColor",Fn(j.info.light,.6)),ve(j.Alert,"successColor",Fn(j.success.light,.6)),ve(j.Alert,"warningColor",Fn(j.warning.light,.6)),ve(j.Alert,"errorFilledBg",X("palette-error-main")),ve(j.Alert,"infoFilledBg",X("palette-info-main")),ve(j.Alert,"successFilledBg",X("palette-success-main")),ve(j.Alert,"warningFilledBg",X("palette-warning-main")),ve(j.Alert,"errorFilledColor",cs(()=>j.getContrastText(j.error.main))),ve(j.Alert,"infoFilledColor",cs(()=>j.getContrastText(j.info.main))),ve(j.Alert,"successFilledColor",cs(()=>j.getContrastText(j.success.main))),ve(j.Alert,"warningFilledColor",cs(()=>j.getContrastText(j.warning.main))),ve(j.Alert,"errorStandardBg",Bn(j.error.light,.9)),ve(j.Alert,"infoStandardBg",Bn(j.info.light,.9)),ve(j.Alert,"successStandardBg",Bn(j.success.light,.9)),ve(j.Alert,"warningStandardBg",Bn(j.warning.light,.9)),ve(j.Alert,"errorIconColor",X("palette-error-main")),ve(j.Alert,"infoIconColor",X("palette-info-main")),ve(j.Alert,"successIconColor",X("palette-success-main")),ve(j.Alert,"warningIconColor",X("palette-warning-main")),ve(j.AppBar,"defaultBg",X("palette-grey-100")),ve(j.Avatar,"defaultBg",X("palette-grey-400")),ve(j.Button,"inheritContainedBg",X("palette-grey-300")),ve(j.Button,"inheritContainedHoverBg",X("palette-grey-A100")),ve(j.Chip,"defaultBorder",X("palette-grey-400")),ve(j.Chip,"defaultAvatarColor",X("palette-grey-700")),ve(j.Chip,"defaultIconColor",X("palette-grey-700")),ve(j.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ve(j.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ve(j.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ve(j.LinearProgress,"primaryBg",Bn(j.primary.main,.62)),ve(j.LinearProgress,"secondaryBg",Bn(j.secondary.main,.62)),ve(j.LinearProgress,"errorBg",Bn(j.error.main,.62)),ve(j.LinearProgress,"infoBg",Bn(j.info.main,.62)),ve(j.LinearProgress,"successBg",Bn(j.success.main,.62)),ve(j.LinearProgress,"warningBg",Bn(j.warning.main,.62)),ve(j.Skeleton,"bg",`rgba(${X("palette-text-primaryChannel")} / 0.11)`),ve(j.Slider,"primaryTrack",Bn(j.primary.main,.62)),ve(j.Slider,"secondaryTrack",Bn(j.secondary.main,.62)),ve(j.Slider,"errorTrack",Bn(j.error.main,.62)),ve(j.Slider,"infoTrack",Bn(j.info.main,.62)),ve(j.Slider,"successTrack",Bn(j.success.main,.62)),ve(j.Slider,"warningTrack",Bn(j.warning.main,.62));const K=vv(j.background.default,.8);ve(j.SnackbarContent,"bg",K),ve(j.SnackbarContent,"color",cs(()=>j.getContrastText(K))),ve(j.SpeedDialAction,"fabHoverBg",vv(j.background.paper,.15)),ve(j.StepConnector,"border",X("palette-grey-400")),ve(j.StepContent,"border",X("palette-grey-400")),ve(j.Switch,"defaultColor",X("palette-common-white")),ve(j.Switch,"defaultDisabledColor",X("palette-grey-100")),ve(j.Switch,"primaryDisabledColor",Bn(j.primary.main,.62)),ve(j.Switch,"secondaryDisabledColor",Bn(j.secondary.main,.62)),ve(j.Switch,"errorDisabledColor",Bn(j.error.main,.62)),ve(j.Switch,"infoDisabledColor",Bn(j.info.main,.62)),ve(j.Switch,"successDisabledColor",Bn(j.success.main,.62)),ve(j.Switch,"warningDisabledColor",Bn(j.warning.main,.62)),ve(j.TableCell,"border",Bn(yv(j.divider,1),.88)),ve(j.Tooltip,"bg",yv(j.grey[700],.92))}if(j.mode==="dark"){ve(j.Alert,"errorColor",Bn(j.error.light,.6)),ve(j.Alert,"infoColor",Bn(j.info.light,.6)),ve(j.Alert,"successColor",Bn(j.success.light,.6)),ve(j.Alert,"warningColor",Bn(j.warning.light,.6)),ve(j.Alert,"errorFilledBg",X("palette-error-dark")),ve(j.Alert,"infoFilledBg",X("palette-info-dark")),ve(j.Alert,"successFilledBg",X("palette-success-dark")),ve(j.Alert,"warningFilledBg",X("palette-warning-dark")),ve(j.Alert,"errorFilledColor",cs(()=>j.getContrastText(j.error.dark))),ve(j.Alert,"infoFilledColor",cs(()=>j.getContrastText(j.info.dark))),ve(j.Alert,"successFilledColor",cs(()=>j.getContrastText(j.success.dark))),ve(j.Alert,"warningFilledColor",cs(()=>j.getContrastText(j.warning.dark))),ve(j.Alert,"errorStandardBg",Fn(j.error.light,.9)),ve(j.Alert,"infoStandardBg",Fn(j.info.light,.9)),ve(j.Alert,"successStandardBg",Fn(j.success.light,.9)),ve(j.Alert,"warningStandardBg",Fn(j.warning.light,.9)),ve(j.Alert,"errorIconColor",X("palette-error-main")),ve(j.Alert,"infoIconColor",X("palette-info-main")),ve(j.Alert,"successIconColor",X("palette-success-main")),ve(j.Alert,"warningIconColor",X("palette-warning-main")),ve(j.AppBar,"defaultBg",X("palette-grey-900")),ve(j.AppBar,"darkBg",X("palette-background-paper")),ve(j.AppBar,"darkColor",X("palette-text-primary")),ve(j.Avatar,"defaultBg",X("palette-grey-600")),ve(j.Button,"inheritContainedBg",X("palette-grey-800")),ve(j.Button,"inheritContainedHoverBg",X("palette-grey-700")),ve(j.Chip,"defaultBorder",X("palette-grey-700")),ve(j.Chip,"defaultAvatarColor",X("palette-grey-300")),ve(j.Chip,"defaultIconColor",X("palette-grey-300")),ve(j.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ve(j.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ve(j.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ve(j.LinearProgress,"primaryBg",Fn(j.primary.main,.5)),ve(j.LinearProgress,"secondaryBg",Fn(j.secondary.main,.5)),ve(j.LinearProgress,"errorBg",Fn(j.error.main,.5)),ve(j.LinearProgress,"infoBg",Fn(j.info.main,.5)),ve(j.LinearProgress,"successBg",Fn(j.success.main,.5)),ve(j.LinearProgress,"warningBg",Fn(j.warning.main,.5)),ve(j.Skeleton,"bg",`rgba(${X("palette-text-primaryChannel")} / 0.13)`),ve(j.Slider,"primaryTrack",Fn(j.primary.main,.5)),ve(j.Slider,"secondaryTrack",Fn(j.secondary.main,.5)),ve(j.Slider,"errorTrack",Fn(j.error.main,.5)),ve(j.Slider,"infoTrack",Fn(j.info.main,.5)),ve(j.Slider,"successTrack",Fn(j.success.main,.5)),ve(j.Slider,"warningTrack",Fn(j.warning.main,.5));const K=vv(j.background.default,.98);ve(j.SnackbarContent,"bg",K),ve(j.SnackbarContent,"color",cs(()=>j.getContrastText(K))),ve(j.SpeedDialAction,"fabHoverBg",vv(j.background.paper,.15)),ve(j.StepConnector,"border",X("palette-grey-600")),ve(j.StepContent,"border",X("palette-grey-600")),ve(j.Switch,"defaultColor",X("palette-grey-300")),ve(j.Switch,"defaultDisabledColor",X("palette-grey-600")),ve(j.Switch,"primaryDisabledColor",Fn(j.primary.main,.55)),ve(j.Switch,"secondaryDisabledColor",Fn(j.secondary.main,.55)),ve(j.Switch,"errorDisabledColor",Fn(j.error.main,.55)),ve(j.Switch,"infoDisabledColor",Fn(j.info.main,.55)),ve(j.Switch,"successDisabledColor",Fn(j.success.main,.55)),ve(j.Switch,"warningDisabledColor",Fn(j.warning.main,.55)),ve(j.TableCell,"border",Fn(yv(j.divider,1),.68)),ve(j.Tooltip,"bg",yv(j.grey[700],.92))}il(j.background,"default"),il(j.background,"paper"),il(j.common,"background"),il(j.common,"onBackground"),il(j,"divider"),Object.keys(j).forEach(K=>{const ne=j[K];K!=="tonalOffset"&&ne&&typeof ne=="object"&&(ne.main&&ve(j[K],"mainChannel",k0(O0(ne.main))),ne.light&&ve(j[K],"lightChannel",k0(O0(ne.light))),ne.dark&&ve(j[K],"darkChannel",k0(O0(ne.dark))),ne.contrastText&&ve(j[K],"contrastTextChannel",k0(O0(ne.contrastText))),K==="text"&&(il(j[K],"primary"),il(j[K],"secondary")),K==="action"&&(ne.active&&il(j[K],"active"),ne.selected&&il(j[K],"selected")))})}),P=t.reduce((q,j)=>Pr(q,j),P);const M={prefix:s,disableCssColorScheme:a,shouldSkipGeneratingVar:l,getSelector:A7(P)},{vars:$,generateThemeVars:B,generateStyleSheets:H}=D9(P,M);return P.vars=$,Object.entries(P.colorSchemes[P.defaultColorScheme]).forEach(([q,j])=>{P[q]=j}),P.generateThemeVars=B,P.generateStyleSheets=H,P.generateSpacing=function(){return m5(p.spacing,Hb(this))},P.getColorSchemeSelector=j9(f),P.spacing=P.generateSpacing(),P.shouldSkipGeneratingVar=l,P.unstable_sxConfig={...Sg,...p==null?void 0:p.unstable_sxConfig},P.unstable_sx=function(j){return Af({sx:j,theme:this})},P.toRuntimeSource=M5,P}function L3(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:d_({...n===!0?{}:n.palette,mode:t})})}function I5(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:s=n==null?void 0:n.mode,...l}=e,f=s||"light",m=a==null?void 0:a[f],p={...a,...n?{[f]:{...typeof m!="boolean"&&m,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return q2(e,...t);let g=n;"palette"in e||p[f]&&(p[f]!==!0?g=p[f].palette:f==="dark"&&(g={mode:"dark"}));const b=q2({...e,palette:g},...t);return b.defaultColorScheme=f,b.colorSchemes=p,b.palette.mode==="light"&&(b.colorSchemes.light={...p.light!==!0&&p.light,palette:b.palette},L3(b,"dark",p.dark)),b.palette.mode==="dark"&&(b.colorSchemes.dark={...p.dark!==!0&&p.dark,palette:b.palette},L3(b,"light",p.light)),b}return!n&&!("light"in p)&&f==="light"&&(p.light=!0),D7({...l,colorSchemes:p,defaultColorScheme:f,...typeof r!="boolean"&&r},...t)}const h_=I5();function ki(){const e=Cg(h_);return e[yg]||e}function L5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ba=e=>L5(e)&&e!=="classes",Ae=w5({themeId:yg,defaultTheme:h_,rootShouldForwardProp:ba});function P3(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}function j7(e){return v.jsx(a9,{...e,defaultTheme:h_,themeId:yg})}function I7(e){return function(n){return v.jsx(j7,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function L7(){return Kb}const Ht=A9;function Ct(e){return R9(e)}function P7(e){return wt("MuiSvgIcon",e)}St("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const N7=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${Oe(t)}`,`fontSize${Oe(n)}`]};return _t(a,P7,r)},F7=Ae("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Oe(n.color)}`],t[`fontSize${Oe(n.fontSize)}`]]}})(Ht(({theme:e})=>{var t,n,r,a,s,l,f,m,p,g,b,S,T,C;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(t=e.transitions)==null?void 0:t.create)==null?void 0:a.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:E=>!E.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(s=e.typography)==null?void 0:s.pxToRem)==null?void 0:l.call(s,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((m=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:m.call(f,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((g=(p=e.typography)==null?void 0:p.pxToRem)==null?void 0:g.call(p,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,E])=>E&&E.main).map(([E])=>{var A,k;return{props:{color:E},style:{color:(k=(A=(e.vars??e).palette)==null?void 0:A[E])==null?void 0:k.main}}}),{props:{color:"action"},style:{color:(S=(b=(e.vars??e).palette)==null?void 0:b.action)==null?void 0:S.active}},{props:{color:"disabled"},style:{color:(C=(T=(e.vars??e).palette)==null?void 0:T.action)==null?void 0:C.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),X2=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiSvgIcon"}),{children:a,className:s,color:l="inherit",component:f="svg",fontSize:m="medium",htmlColor:p,inheritViewBox:g=!1,titleAccess:b,viewBox:S="0 0 24 24",...T}=r,C=_.isValidElement(a)&&a.type==="svg",E={...r,color:l,component:f,fontSize:m,instanceFontSize:t.fontSize,inheritViewBox:g,viewBox:S,hasSvgAsChild:C},A={};g||(A.viewBox=S);const k=N7(E);return v.jsxs(F7,{as:f,className:ze(k.root,s),focusable:"false",color:p,"aria-hidden":b?void 0:!0,role:b?"img":void 0,ref:n,...A,...T,...C&&a.props,ownerState:E,children:[C?a.props.children:a,b?v.jsx("title",{children:b}):null]})});X2.muiName="SvgIcon";function Yn(e,t){function n(r,a){return v.jsx(X2,{"data-testid":void 0,ref:a,...r,children:e})}return n.muiName=X2.muiName,_.memo(_.forwardRef(n))}function Eg(e,t=166){let n;function r(...a){const s=()=>{e.apply(this,a)};clearTimeout(n),n=setTimeout(s,t)}return r.clear=()=>{clearTimeout(n)},r}function Ri(e){return e&&e.ownerDocument||document}function va(e){return Ri(e).defaultView||window}function N3(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let F3=0;function B7(e){const[t,n]=_.useState(e),r=e||t;return _.useEffect(()=>{t==null&&(F3+=1,n(`mui-${F3}`))},[t]),r}const z7={...ib},B3=z7.useId;function Tg(e){if(B3!==void 0){const t=B3();return e??t}return B7(e)}function z3(e){const{controlled:t,default:n,name:r,state:a="value"}=e,{current:s}=_.useRef(t!==void 0),[l,f]=_.useState(n),m=s?t:l,p=_.useCallback(g=>{s||f(g)},[]);return[m,p]}function ya(e){const t=_.useRef(e);return Ss(()=>{t.current=e}),_.useRef((...n)=>(0,t.current)(...n)).current}function Mr(...e){const t=_.useRef(void 0),n=_.useCallback(r=>{const a=e.map(s=>{if(s==null)return null;if(typeof s=="function"){const l=s,f=l(r);return typeof f=="function"?f:()=>{l(null)}}return s.current=r,()=>{s.current=null}});return()=>{a.forEach(s=>s==null?void 0:s())}},e);return _.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function U7(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function P5(e,t){if(!e)return t;function n(l,f){const m={};return Object.keys(f).forEach(p=>{U7(p,f[p])&&typeof l[p]=="function"&&(m[p]=(...g)=>{l[p](...g),f[p](...g)})}),m}if(typeof e=="function"||typeof t=="function")return l=>{const f=typeof t=="function"?t(l):t,m=typeof e=="function"?e({...l,...f}):e,p=ze(l==null?void 0:l.className,f==null?void 0:f.className,m==null?void 0:m.className),g=n(m,f);return{...f,...m,...g,...!!p&&{className:p},...(f==null?void 0:f.style)&&(m==null?void 0:m.style)&&{style:{...f.style,...m.style}},...(f==null?void 0:f.sx)&&(m==null?void 0:m.sx)&&{sx:[...Array.isArray(f.sx)?f.sx:[f.sx],...Array.isArray(m.sx)?m.sx:[m.sx]]}}};const r=t,a=n(e,r),s=ze(r==null?void 0:r.className,e==null?void 0:e.className);return{...t,...e,...a,...!!s&&{className:s},...(r==null?void 0:r.style)&&(e==null?void 0:e.style)&&{style:{...r.style,...e.style}},...(r==null?void 0:r.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}function N5(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Z2(e,t){return Z2=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Z2(e,t)}function F5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Z2(e,t)}const U3={disabled:!1},fb=Ei.createContext(null);var $7=function(t){return t.scrollTop},M0="unmounted",ff="exited",df="entering",Oh="entered",J2="exiting",ko=function(e){F5(t,e);function t(r,a){var s;s=e.call(this,r,a)||this;var l=a,f=l&&!l.isMounting?r.enter:r.appear,m;return s.appearStatus=null,r.in?f?(m=ff,s.appearStatus=df):m=Oh:r.unmountOnExit||r.mountOnEnter?m=M0:m=ff,s.state={status:m},s.nextCallback=null,s}t.getDerivedStateFromProps=function(a,s){var l=a.in;return l&&s.status===M0?{status:ff}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var s=null;if(a!==this.props){var l=this.state.status;this.props.in?l!==df&&l!==Oh&&(s=df):(l===df||l===Oh)&&(s=J2)}this.updateStatus(!1,s)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,s,l,f;return s=l=f=a,a!=null&&typeof a!="number"&&(s=a.exit,l=a.enter,f=a.appear!==void 0?a.appear:l),{exit:s,enter:l,appear:f}},n.updateStatus=function(a,s){if(a===void 0&&(a=!1),s!==null)if(this.cancelNextCallback(),s===df){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:mv.findDOMNode(this);l&&$7(l)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ff&&this.setState({status:M0})},n.performEnter=function(a){var s=this,l=this.props.enter,f=this.context?this.context.isMounting:a,m=this.props.nodeRef?[f]:[mv.findDOMNode(this),f],p=m[0],g=m[1],b=this.getTimeouts(),S=f?b.appear:b.enter;if(!a&&!l||U3.disabled){this.safeSetState({status:Oh},function(){s.props.onEntered(p)});return}this.props.onEnter(p,g),this.safeSetState({status:df},function(){s.props.onEntering(p,g),s.onTransitionEnd(S,function(){s.safeSetState({status:Oh},function(){s.props.onEntered(p,g)})})})},n.performExit=function(){var a=this,s=this.props.exit,l=this.getTimeouts(),f=this.props.nodeRef?void 0:mv.findDOMNode(this);if(!s||U3.disabled){this.safeSetState({status:ff},function(){a.props.onExited(f)});return}this.props.onExit(f),this.safeSetState({status:J2},function(){a.props.onExiting(f),a.onTransitionEnd(l.exit,function(){a.safeSetState({status:ff},function(){a.props.onExited(f)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,s){s=this.setNextCallback(s),this.setState(a,s)},n.setNextCallback=function(a){var s=this,l=!0;return this.nextCallback=function(f){l&&(l=!1,s.nextCallback=null,a(f))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(a,s){this.setNextCallback(s);var l=this.props.nodeRef?this.props.nodeRef.current:mv.findDOMNode(this),f=a==null&&!this.props.addEndListener;if(!l||f){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var m=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],p=m[0],g=m[1];this.props.addEndListener(p,g)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===M0)return null;var s=this.props,l=s.children;s.in,s.mountOnEnter,s.unmountOnExit,s.appear,s.enter,s.exit,s.timeout,s.addEndListener,s.onEnter,s.onEntering,s.onEntered,s.onExit,s.onExiting,s.onExited,s.nodeRef;var f=N5(s,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Ei.createElement(fb.Provider,{value:null},typeof l=="function"?l(a,f):Ei.cloneElement(Ei.Children.only(l),f))},t}(Ei.Component);ko.contextType=fb;ko.propTypes={};function wh(){}ko.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:wh,onEntering:wh,onEntered:wh,onExit:wh,onExiting:wh,onExited:wh};ko.UNMOUNTED=M0;ko.EXITED=ff;ko.ENTERING=df;ko.ENTERED=Oh;ko.EXITING=J2;function H7(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function p_(e,t){var n=function(s){return t&&_.isValidElement(s)?t(s):s},r=Object.create(null);return e&&_.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function V7(e,t){e=e||{},t=t||{};function n(g){return g in t?t[g]:e[g]}var r=Object.create(null),a=[];for(var s in e)s in t?a.length&&(r[s]=a,a=[]):a.push(s);var l,f={};for(var m in t){if(r[m])for(l=0;l<r[m].length;l++){var p=r[m][l];f[r[m][l]]=n(p)}f[m]=n(m)}for(l=0;l<a.length;l++)f[a[l]]=n(a[l]);return f}function pf(e,t,n){return n[t]!=null?n[t]:e.props[t]}function W7(e,t){return p_(e.children,function(n){return _.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:pf(n,"appear",e),enter:pf(n,"enter",e),exit:pf(n,"exit",e)})})}function G7(e,t,n){var r=p_(e.children),a=V7(t,r);return Object.keys(a).forEach(function(s){var l=a[s];if(_.isValidElement(l)){var f=s in t,m=s in r,p=t[s],g=_.isValidElement(p)&&!p.props.in;m&&(!f||g)?a[s]=_.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:pf(l,"exit",e),enter:pf(l,"enter",e)}):!m&&f&&!g?a[s]=_.cloneElement(l,{in:!1}):m&&f&&_.isValidElement(p)&&(a[s]=_.cloneElement(l,{onExited:n.bind(null,l),in:p.props.in,exit:pf(l,"exit",e),enter:pf(l,"enter",e)}))}}),a}var Y7=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},q7={component:"div",childFactory:function(t){return t}},m_=function(e){F5(t,e);function t(r,a){var s;s=e.call(this,r,a)||this;var l=s.handleExited.bind(H7(s));return s.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},s}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,s){var l=s.children,f=s.handleExited,m=s.firstRender;return{children:m?W7(a,f):G7(a,l,f),firstRender:!1}},n.handleExited=function(a,s){var l=p_(this.props.children);a.key in l||(a.props.onExited&&a.props.onExited(s),this.mounted&&this.setState(function(f){var m=sb({},f.children);return delete m[a.key],{children:m}}))},n.render=function(){var a=this.props,s=a.component,l=a.childFactory,f=N5(a,["component","childFactory"]),m=this.state.contextValue,p=Y7(this.state.children).map(l);return delete f.appear,delete f.enter,delete f.exit,s===null?Ei.createElement(fb.Provider,{value:m},p):Ei.createElement(fb.Provider,{value:m},Ei.createElement(s,f,p))},t}(Ei.Component);m_.propTypes={};m_.defaultProps=q7;const $3={};function B5(e,t){const n=_.useRef($3);return n.current===$3&&(n.current=e(t)),n}const K7=[];function X7(e){_.useEffect(e,K7)}class g_{constructor(){fa(this,"currentId",null);fa(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});fa(this,"disposeEffect",()=>this.clear)}static create(){return new g_}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function y_(){const e=B5(g_.create).current;return X7(e.disposeEffect),e}const v_=e=>e.scrollTop;function Qh(e,t){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:a.transitionDelay}}function Z7(e){return wt("MuiPaper",e)}St("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const J7=e=>{const{square:t,elevation:n,variant:r,classes:a}=e,s={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return _t(s,Z7,a)},Q7=Ae("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(Ht(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Bc=_.forwardRef(function(t,n){var T;const r=Ct({props:t,name:"MuiPaper"}),a=ki(),{className:s,component:l="div",elevation:f=1,square:m=!1,variant:p="elevation",...g}=r,b={...r,component:l,elevation:f,square:m,variant:p},S=J7(b);return v.jsx(Q7,{as:l,ownerState:b,className:ze(S.root,s),ref:n,...g,style:{...p==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[f],...a.vars&&{"--Paper-overlay":(T=a.vars.overlays)==null?void 0:T[f]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Dn("#fff",K2(f))}, ${Dn("#fff",K2(f))})`}},...g.style}})});function e8(e){return typeof e=="string"}function z5(e,t,n){return e===void 0||e8(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function U5(e,t,n){return typeof e=="function"?e(t,n):e}function db(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function H3(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function $5(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:s}=e;if(!t){const T=ze(n==null?void 0:n.className,s,a==null?void 0:a.className,r==null?void 0:r.className),C={...n==null?void 0:n.style,...a==null?void 0:a.style,...r==null?void 0:r.style},E={...n,...a,...r};return T.length>0&&(E.className=T),Object.keys(C).length>0&&(E.style=C),{props:E,internalRef:void 0}}const l=db({...a,...r}),f=H3(r),m=H3(a),p=t(l),g=ze(p==null?void 0:p.className,n==null?void 0:n.className,s,a==null?void 0:a.className,r==null?void 0:r.className),b={...p==null?void 0:p.style,...n==null?void 0:n.style,...a==null?void 0:a.style,...r==null?void 0:r.style},S={...p,...n,...m,...f};return g.length>0&&(S.className=g),Object.keys(b).length>0&&(S.style=b),{props:S,internalRef:p.ref}}function Lt(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:s,internalForwardedProps:l,shouldForwardComponentProp:f=!1,...m}=t,{component:p,slots:g={[e]:void 0},slotProps:b={[e]:void 0},...S}=s,T=g[e]||r,C=U5(b[e],a),{props:{component:E,...A},internalRef:k}=$5({className:n,...m,externalForwardedProps:e==="root"?S:void 0,externalSlotProps:C}),L=Mr(k,C==null?void 0:C.ref,t.ref),O=e==="root"?E||p:E,P=z5(T,{...e==="root"&&!p&&!g[e]&&l,...e!=="root"&&!g[e]&&l,...A,...O&&!f&&{as:O},...O&&f&&{component:O},ref:L},a);return[T,P]}function hb(e){try{return e.matches(":focus-visible")}catch{}return!1}class pb{constructor(){fa(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())});this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new pb}static use(){const t=B5(pb.create).current,[n,r]=_.useState(!1);return t.shouldMount=n,t.setShouldMount=r,_.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=n8(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function t8(){return pb.use()}function n8(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}function r8(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:s,rippleSize:l,in:f,onExited:m,timeout:p}=e,[g,b]=_.useState(!1),S=ze(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),T={width:l,height:l,top:-(l/2)+s,left:-(l/2)+a},C=ze(n.child,g&&n.childLeaving,r&&n.childPulsate);return!f&&!g&&b(!0),_.useEffect(()=>{if(!f&&m!=null){const E=setTimeout(m,p);return()=>{clearTimeout(E)}}},[m,f,p]),v.jsx("span",{className:S,style:T,children:v.jsx("span",{className:C})})}const Ha=St("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Q2=550,i8=80,a8=Cl`
+  0% {
+    transform: scale(0);
+    opacity: 0.1;
+  }
+
+  100% {
+    transform: scale(1);
+    opacity: 0.3;
+  }
+`,o8=Cl`
+  0% {
+    opacity: 1;
+  }
+
+  100% {
+    opacity: 0;
+  }
+`,s8=Cl`
+  0% {
+    transform: scale(1);
+  }
+
+  50% {
+    transform: scale(0.92);
+  }
+
+  100% {
+    transform: scale(1);
+  }
+`,l8=Ae("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),c8=Ae(r8,{name:"MuiTouchRipple",slot:"Ripple"})`
+  opacity: 0;
+  position: absolute;
+
+  &.${Ha.rippleVisible} {
+    opacity: 0.3;
+    transform: scale(1);
+    animation-name: ${a8};
+    animation-duration: ${Q2}ms;
+    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
+  }
+
+  &.${Ha.ripplePulsate} {
+    animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
+  }
+
+  & .${Ha.child} {
+    opacity: 1;
+    display: block;
+    width: 100%;
+    height: 100%;
+    border-radius: 50%;
+    background-color: currentColor;
+  }
+
+  & .${Ha.childLeaving} {
+    opacity: 0;
+    animation-name: ${o8};
+    animation-duration: ${Q2}ms;
+    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
+  }
+
+  & .${Ha.childPulsate} {
+    position: absolute;
+    /* @noflip */
+    left: 0px;
+    top: 0;
+    animation-name: ${s8};
+    animation-duration: 2500ms;
+    animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
+    animation-iteration-count: infinite;
+    animation-delay: 200ms;
+  }
+`,u8=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:s={},className:l,...f}=r,[m,p]=_.useState([]),g=_.useRef(0),b=_.useRef(null);_.useEffect(()=>{b.current&&(b.current(),b.current=null)},[m]);const S=_.useRef(!1),T=y_(),C=_.useRef(null),E=_.useRef(null),A=_.useCallback(P=>{const{pulsate:M,rippleX:$,rippleY:B,rippleSize:H,cb:q}=P;p(j=>[...j,v.jsx(c8,{classes:{ripple:ze(s.ripple,Ha.ripple),rippleVisible:ze(s.rippleVisible,Ha.rippleVisible),ripplePulsate:ze(s.ripplePulsate,Ha.ripplePulsate),child:ze(s.child,Ha.child),childLeaving:ze(s.childLeaving,Ha.childLeaving),childPulsate:ze(s.childPulsate,Ha.childPulsate)},timeout:Q2,pulsate:M,rippleX:$,rippleY:B,rippleSize:H},g.current)]),g.current+=1,b.current=q},[s]),k=_.useCallback((P={},M={},$=()=>{})=>{const{pulsate:B=!1,center:H=a||M.pulsate,fakeElement:q=!1}=M;if((P==null?void 0:P.type)==="mousedown"&&S.current){S.current=!1;return}(P==null?void 0:P.type)==="touchstart"&&(S.current=!0);const j=q?null:E.current,X=j?j.getBoundingClientRect():{width:0,height:0,left:0,top:0};let K,ne,le;if(H||P===void 0||P.clientX===0&&P.clientY===0||!P.clientX&&!P.touches)K=Math.round(X.width/2),ne=Math.round(X.height/2);else{const{clientX:oe,clientY:V}=P.touches&&P.touches.length>0?P.touches[0]:P;K=Math.round(oe-X.left),ne=Math.round(V-X.top)}if(H)le=Math.sqrt((2*X.width**2+X.height**2)/3),le%2===0&&(le+=1);else{const oe=Math.max(Math.abs((j?j.clientWidth:0)-K),K)*2+2,V=Math.max(Math.abs((j?j.clientHeight:0)-ne),ne)*2+2;le=Math.sqrt(oe**2+V**2)}P!=null&&P.touches?C.current===null&&(C.current=()=>{A({pulsate:B,rippleX:K,rippleY:ne,rippleSize:le,cb:$})},T.start(i8,()=>{C.current&&(C.current(),C.current=null)})):A({pulsate:B,rippleX:K,rippleY:ne,rippleSize:le,cb:$})},[a,A,T]),L=_.useCallback(()=>{k({},{pulsate:!0})},[k]),O=_.useCallback((P,M)=>{if(T.clear(),(P==null?void 0:P.type)==="touchend"&&C.current){C.current(),C.current=null,T.start(0,()=>{O(P,M)});return}C.current=null,p($=>$.length>0?$.slice(1):$),b.current=M},[T]);return _.useImperativeHandle(n,()=>({pulsate:L,start:k,stop:O}),[L,k,O]),v.jsx(l8,{className:ze(Ha.root,s.root,l),ref:E,...f,children:v.jsx(m_,{component:null,exit:!0,children:m})})});function f8(e){return wt("MuiButtonBase",e)}const d8=St("MuiButtonBase",["root","disabled","focusVisible"]),h8=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,l=_t({root:["root",t&&"disabled",n&&"focusVisible"]},f8,a);return n&&r&&(l.root+=` ${r}`),l},p8=Ae("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${d8.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),zc=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:s=!1,children:l,className:f,component:m="button",disabled:p=!1,disableRipple:g=!1,disableTouchRipple:b=!1,focusRipple:S=!1,focusVisibleClassName:T,LinkComponent:C="a",onBlur:E,onClick:A,onContextMenu:k,onDragLeave:L,onFocus:O,onFocusVisible:P,onKeyDown:M,onKeyUp:$,onMouseDown:B,onMouseLeave:H,onMouseUp:q,onTouchEnd:j,onTouchMove:X,onTouchStart:K,tabIndex:ne=0,TouchRippleProps:le,touchRippleRef:oe,type:V,...Q}=r,Z=_.useRef(null),ae=t8(),U=Mr(ae.ref,oe),[W,te]=_.useState(!1);p&&W&&te(!1),_.useImperativeHandle(a,()=>({focusVisible:()=>{te(!0),Z.current.focus()}}),[]);const de=ae.shouldMount&&!g&&!p;_.useEffect(()=>{W&&S&&!g&&ae.pulsate()},[g,S,W,ae]);const Ee=al(ae,"start",B,b),xe=al(ae,"stop",k,b),Re=al(ae,"stop",L,b),rt=al(ae,"stop",q,b),Ke=al(ae,"stop",Pe=>{W&&Pe.preventDefault(),H&&H(Pe)},b),tt=al(ae,"start",K,b),Be=al(ae,"stop",j,b),Xe=al(ae,"stop",X,b),He=al(ae,"stop",Pe=>{hb(Pe.target)||te(!1),E&&E(Pe)},!1),Je=ya(Pe=>{Z.current||(Z.current=Pe.currentTarget),hb(Pe.target)&&(te(!0),P&&P(Pe)),O&&O(Pe)}),ke=()=>{const Pe=Z.current;return m&&m!=="button"&&!(Pe.tagName==="A"&&Pe.href)},De=ya(Pe=>{S&&!Pe.repeat&&W&&Pe.key===" "&&ae.stop(Pe,()=>{ae.start(Pe)}),Pe.target===Pe.currentTarget&&ke()&&Pe.key===" "&&Pe.preventDefault(),M&&M(Pe),Pe.target===Pe.currentTarget&&ke()&&Pe.key==="Enter"&&!p&&(Pe.preventDefault(),A&&A(Pe))}),At=ya(Pe=>{S&&Pe.key===" "&&W&&!Pe.defaultPrevented&&ae.stop(Pe,()=>{ae.pulsate(Pe)}),$&&$(Pe),A&&Pe.target===Pe.currentTarget&&ke()&&Pe.key===" "&&!Pe.defaultPrevented&&A(Pe)});let Ze=m;Ze==="button"&&(Q.href||Q.to)&&(Ze=C);const zt={};Ze==="button"?(zt.type=V===void 0?"button":V,zt.disabled=p):(!Q.href&&!Q.to&&(zt.role="button"),p&&(zt["aria-disabled"]=p));const ft=Mr(n,Z),Pt={...r,centerRipple:s,component:m,disabled:p,disableRipple:g,disableTouchRipple:b,focusRipple:S,tabIndex:ne,focusVisible:W},at=h8(Pt);return v.jsxs(p8,{as:Ze,className:ze(at.root,f),ownerState:Pt,onBlur:He,onClick:A,onContextMenu:xe,onFocus:Je,onKeyDown:De,onKeyUp:At,onMouseDown:Ee,onMouseLeave:Ke,onMouseUp:rt,onDragLeave:Re,onTouchEnd:Be,onTouchMove:Xe,onTouchStart:tt,ref:ft,tabIndex:p?-1:ne,type:V,...zt,...Q,children:[l,de?v.jsx(u8,{ref:U,center:s,...le}):null]})});function al(e,t,n,r=!1){return ya(a=>(n&&n(a),r||e[t](a),!0))}function m8(e){return typeof e.main=="string"}function g8(e,t=[]){if(!m8(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Yi(e=[]){return([,t])=>t&&g8(t,e)}function y8(e){return wt("MuiCircularProgress",e)}St("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Ac=44,eS=Cl`
+  0% {
+    transform: rotate(0deg);
+  }
+
+  100% {
+    transform: rotate(360deg);
+  }
+`,tS=Cl`
+  0% {
+    stroke-dasharray: 1px, 200px;
+    stroke-dashoffset: 0;
+  }
+
+  50% {
+    stroke-dasharray: 100px, 200px;
+    stroke-dashoffset: -15px;
+  }
+
+  100% {
+    stroke-dasharray: 1px, 200px;
+    stroke-dashoffset: -126px;
+  }
+`,v8=typeof eS!="string"?a_`
+        animation: ${eS} 1.4s linear infinite;
+      `:null,b8=typeof tS!="string"?a_`
+        animation: ${tS} 1.4s ease-in-out infinite;
+      `:null,x8=e=>{const{classes:t,variant:n,color:r,disableShrink:a}=e,s={root:["root",n,`color${Oe(r)}`],svg:["svg"],circle:["circle",`circle${Oe(n)}`,a&&"circleDisableShrink"]};return _t(s,y8,t)},w8=Ae("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Oe(n.color)}`]]}})(Ht(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:v8||{animation:`${eS} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Yi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),S8=Ae("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),_8=Ae("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Oe(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Ht(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:b8||{animation:`${tS} 1.4s ease-in-out infinite`}}]}))),Qb=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiCircularProgress"}),{className:a,color:s="primary",disableShrink:l=!1,size:f=40,style:m,thickness:p=3.6,value:g=0,variant:b="indeterminate",...S}=r,T={...r,color:s,disableShrink:l,size:f,thickness:p,value:g,variant:b},C=x8(T),E={},A={},k={};if(b==="determinate"){const L=2*Math.PI*((Ac-p)/2);E.strokeDasharray=L.toFixed(3),k["aria-valuenow"]=Math.round(g),E.strokeDashoffset=`${((100-g)/100*L).toFixed(3)}px`,A.transform="rotate(-90deg)"}return v.jsx(w8,{className:ze(C.root,a),style:{width:f,height:f,...A,...m},ownerState:T,ref:n,role:"progressbar",...k,...S,children:v.jsx(S8,{className:C.svg,ownerState:T,viewBox:`${Ac/2} ${Ac/2} ${Ac} ${Ac}`,children:v.jsx(_8,{className:C.circle,style:E,ownerState:T,cx:Ac,cy:Ac,r:(Ac-p)/2,fill:"none",strokeWidth:p})})})});function C8(e){return wt("MuiIconButton",e)}const V3=St("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),E8=e=>{const{classes:t,disabled:n,color:r,edge:a,size:s,loading:l}=e,f={root:["root",l&&"loading",n&&"disabled",r!=="default"&&`color${Oe(r)}`,a&&`edge${Oe(a)}`,`size${Oe(s)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return _t(f,C8,t)},T8=Ae(zc,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Oe(n.color)}`],n.edge&&t[`edge${Oe(n.edge)}`],t[`size${Oe(n.size)}`]]}})(Ht(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Dn(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Ht(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Yi()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Yi()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dn((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${V3.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${V3.loading}`]:{color:"transparent"}}))),R8=Ae("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Ga=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiIconButton"}),{edge:a=!1,children:s,className:l,color:f="default",disabled:m=!1,disableFocusRipple:p=!1,size:g="medium",id:b,loading:S=null,loadingIndicator:T,...C}=r,E=Tg(b),A=T??v.jsx(Qb,{"aria-labelledby":E,color:"inherit",size:16}),k={...r,edge:a,color:f,disabled:m,disableFocusRipple:p,loading:S,loadingIndicator:A,size:g},L=E8(k);return v.jsxs(T8,{id:S?E:b,className:ze(L.root,l),centerRipple:!0,focusRipple:!p,disabled:m||S,ref:n,...C,ownerState:k,children:[typeof S=="boolean"&&v.jsx("span",{className:L.loadingWrapper,style:{display:"contents"},children:v.jsx(R8,{className:L.loadingIndicator,ownerState:k,children:S&&A})}),s]})});function A8(e){return wt("MuiTypography",e)}const W3=St("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),k8={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},O8=L7(),M8=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:a,variant:s,classes:l}=e,f={root:["root",s,e.align!=="inherit"&&`align${Oe(t)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return _t(f,A8,l)},D8=Ae("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Oe(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Ht(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Yi()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${Oe(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),G3={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Ye=_.forwardRef(function(t,n){const{color:r,...a}=Ct({props:t,name:"MuiTypography"}),s=!k8[r],l=O8({...a,...s&&{color:r}}),{align:f="inherit",className:m,component:p,gutterBottom:g=!1,noWrap:b=!1,paragraph:S=!1,variant:T="body1",variantMapping:C=G3,...E}=l,A={...l,align:f,color:r,className:m,component:p,gutterBottom:g,noWrap:b,paragraph:S,variant:T,variantMapping:C},k=p||(S?"p":C[T]||G3[T])||"span",L=M8(A);return v.jsx(D8,{as:k,ref:n,className:ze(L.root,m),...E,ownerState:A,style:{...f!=="inherit"&&{"--Typography-textAlign":f},...E.style}})});function J0(e){var b;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...s}=e,l=a?{}:U5(n,r),{props:f,internalRef:m}=$5({...s,externalSlotProps:l}),p=Mr(m,l==null?void 0:l.ref,(b=e.additionalProps)==null?void 0:b.ref);return z5(t,{...f,ref:p},r)}function Mf(e){var t;return parseInt(_.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}function j8(e){return typeof e=="function"?e():e}const I8=_.forwardRef(function(t,n){const{children:r,container:a,disablePortal:s=!1}=t,[l,f]=_.useState(null),m=Mr(_.isValidElement(r)?Mf(r):null,n);if(Ss(()=>{s||f(j8(a)||document.body)},[a,s]),Ss(()=>{if(l&&!s)return N3(n,l),()=>{N3(n,null)}},[n,l,s]),s){if(_.isValidElement(r)){const p={ref:m};return _.cloneElement(r,p)}return r}return l&&KT.createPortal(r,l)}),L8=Yn(v.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function P8(e){return wt("MuiChip",e)}const Kt=St("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]),N8=e=>{const{classes:t,disabled:n,size:r,color:a,iconColor:s,onDelete:l,clickable:f,variant:m}=e,p={root:["root",m,n&&"disabled",`size${Oe(r)}`,`color${Oe(a)}`,f&&"clickable",f&&`clickableColor${Oe(a)}`,l&&"deletable",l&&`deletableColor${Oe(a)}`,`${m}${Oe(a)}`],label:["label",`label${Oe(r)}`],avatar:["avatar",`avatar${Oe(r)}`,`avatarColor${Oe(a)}`],icon:["icon",`icon${Oe(r)}`,`iconColor${Oe(s)}`],deleteIcon:["deleteIcon",`deleteIcon${Oe(r)}`,`deleteIconColor${Oe(a)}`,`deleteIcon${Oe(m)}Color${Oe(a)}`]};return _t(p,P8,t)},F8=Ae("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:a,clickable:s,onDelete:l,size:f,variant:m}=n;return[{[`& .${Kt.avatar}`]:t.avatar},{[`& .${Kt.avatar}`]:t[`avatar${Oe(f)}`]},{[`& .${Kt.avatar}`]:t[`avatarColor${Oe(r)}`]},{[`& .${Kt.icon}`]:t.icon},{[`& .${Kt.icon}`]:t[`icon${Oe(f)}`]},{[`& .${Kt.icon}`]:t[`iconColor${Oe(a)}`]},{[`& .${Kt.deleteIcon}`]:t.deleteIcon},{[`& .${Kt.deleteIcon}`]:t[`deleteIcon${Oe(f)}`]},{[`& .${Kt.deleteIcon}`]:t[`deleteIconColor${Oe(r)}`]},{[`& .${Kt.deleteIcon}`]:t[`deleteIcon${Oe(m)}Color${Oe(r)}`]},t.root,t[`size${Oe(f)}`],t[`color${Oe(r)}`],s&&t.clickable,s&&r!=="default"&&t[`clickableColor${Oe(r)})`],l&&t.deletable,l&&r!=="default"&&t[`deletableColor${Oe(r)}`],t[m],t[`${m}${Oe(r)}`]]}})(Ht(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Kt.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Kt.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Kt.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Kt.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Kt.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Kt.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Kt.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Dn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Dn(e.palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${Kt.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Kt.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(Yi(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${Kt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].contrastTextChannel} / 0.7)`:Dn(e.palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${Kt.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${Kt.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${Kt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}},...Object.entries(e.palette).filter(Yi(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${Kt.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Kt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(Yi(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${Kt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Kt.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Kt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Kt.avatar}`]:{marginLeft:4},[`& .${Kt.avatarSmall}`]:{marginLeft:2},[`& .${Kt.icon}`]:{marginLeft:4},[`& .${Kt.iconSmall}`]:{marginLeft:2},[`& .${Kt.deleteIcon}`]:{marginRight:5},[`& .${Kt.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(Yi()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Dn(e.palette[n].main,.7)}`,[`&.${Kt.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dn(e.palette[n].main,e.palette.action.hoverOpacity)},[`&.${Kt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[n].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Dn(e.palette[n].main,e.palette.action.focusOpacity)},[`& .${Kt.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[n].mainChannel} / 0.7)`:Dn(e.palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),B8=Ae("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Oe(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function Y3(e){return e.key==="Backspace"||e.key==="Delete"}const z8=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiChip"}),{avatar:a,className:s,clickable:l,color:f="default",component:m,deleteIcon:p,disabled:g=!1,icon:b,label:S,onClick:T,onDelete:C,onKeyDown:E,onKeyUp:A,size:k="medium",variant:L="filled",tabIndex:O,skipFocusWhenDisabled:P=!1,...M}=r,$=_.useRef(null),B=Mr($,n),H=ae=>{ae.stopPropagation(),C&&C(ae)},q=ae=>{ae.currentTarget===ae.target&&Y3(ae)&&ae.preventDefault(),E&&E(ae)},j=ae=>{ae.currentTarget===ae.target&&C&&Y3(ae)&&C(ae),A&&A(ae)},X=l!==!1&&T?!0:l,K=X||C?zc:m||"div",ne={...r,component:K,disabled:g,size:k,color:f,iconColor:_.isValidElement(b)&&b.props.color||f,onDelete:!!C,clickable:X,variant:L},le=N8(ne),oe=K===zc?{component:m||"div",focusVisibleClassName:le.focusVisible,...C&&{disableRipple:!0}}:{};let V=null;C&&(V=p&&_.isValidElement(p)?_.cloneElement(p,{className:ze(p.props.className,le.deleteIcon),onClick:H}):v.jsx(L8,{className:le.deleteIcon,onClick:H}));let Q=null;a&&_.isValidElement(a)&&(Q=_.cloneElement(a,{className:ze(le.avatar,a.props.className)}));let Z=null;return b&&_.isValidElement(b)&&(Z=_.cloneElement(b,{className:ze(le.icon,b.props.className)})),v.jsxs(F8,{as:K,className:ze(le.root,s),disabled:X&&g?!0:void 0,onClick:T,onKeyDown:q,onKeyUp:j,ref:B,tabIndex:P&&g?-1:O,ownerState:ne,...oe,...M,children:[Q||Z,v.jsx(B8,{className:le.label,ownerState:ne,children:S}),V]})});function bv(e){return parseInt(e,10)||0}const U8={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function $8(e){for(const t in e)return!1;return!0}function q3(e){return $8(e)||e.outerHeightStyle===0&&!e.overflowing}const H8=_.forwardRef(function(t,n){const{onChange:r,maxRows:a,minRows:s=1,style:l,value:f,...m}=t,{current:p}=_.useRef(f!=null),g=_.useRef(null),b=Mr(n,g),S=_.useRef(null),T=_.useRef(null),C=_.useCallback(()=>{const O=g.current,P=T.current;if(!O||!P)return;const $=va(O).getComputedStyle(O);if($.width==="0px")return{outerHeightStyle:0,overflowing:!1};P.style.width=$.width,P.value=O.value||t.placeholder||"x",P.value.slice(-1)===`
+`&&(P.value+=" ");const B=$.boxSizing,H=bv($.paddingBottom)+bv($.paddingTop),q=bv($.borderBottomWidth)+bv($.borderTopWidth),j=P.scrollHeight;P.value="x";const X=P.scrollHeight;let K=j;s&&(K=Math.max(Number(s)*X,K)),a&&(K=Math.min(Number(a)*X,K)),K=Math.max(K,X);const ne=K+(B==="border-box"?H+q:0),le=Math.abs(K-j)<=1;return{outerHeightStyle:ne,overflowing:le}},[a,s,t.placeholder]),E=ya(()=>{const O=g.current,P=C();if(!O||!P||q3(P))return!1;const M=P.outerHeightStyle;return S.current!=null&&S.current!==M}),A=_.useCallback(()=>{const O=g.current,P=C();if(!O||!P||q3(P))return;const M=P.outerHeightStyle;S.current!==M&&(S.current=M,O.style.height=`${M}px`),O.style.overflow=P.overflowing?"hidden":""},[C]),k=_.useRef(-1);Ss(()=>{const O=Eg(A),P=g==null?void 0:g.current;if(!P)return;const M=va(P);M.addEventListener("resize",O);let $;return typeof ResizeObserver<"u"&&($=new ResizeObserver(()=>{E()&&($.unobserve(P),cancelAnimationFrame(k.current),A(),k.current=requestAnimationFrame(()=>{$.observe(P)}))}),$.observe(P)),()=>{O.clear(),cancelAnimationFrame(k.current),M.removeEventListener("resize",O),$&&$.disconnect()}},[C,A,E]),Ss(()=>{A()});const L=O=>{p||A();const P=O.target,M=P.value.length,$=P.value.endsWith(`
+`),B=P.selectionStart===M;$&&B&&P.setSelectionRange(M,M),r&&r(O)};return v.jsxs(_.Fragment,{children:[v.jsx("textarea",{value:f,onChange:L,ref:b,rows:s,style:l,...m}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:T,tabIndex:-1,style:{...U8.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function Q0(e){return typeof e=="string"}function sp({props:e,states:t,muiFormControl:n}){return t.reduce((r,a)=>(r[a]=e[a],n&&typeof e[a]>"u"&&(r[a]=n[a]),r),{})}const b_=_.createContext(void 0);function lp(){return _.useContext(b_)}function K3(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function mb(e,t=!1){return e&&(K3(e.value)&&e.value!==""||t&&K3(e.defaultValue)&&e.defaultValue!=="")}function V8(e){return e.startAdornment}function W8(e){return wt("MuiInputBase",e)}const ep=St("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var X3;const ex=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Oe(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},tx=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},G8=e=>{const{classes:t,color:n,disabled:r,error:a,endAdornment:s,focused:l,formControl:f,fullWidth:m,hiddenLabel:p,multiline:g,readOnly:b,size:S,startAdornment:T,type:C}=e,E={root:["root",`color${Oe(n)}`,r&&"disabled",a&&"error",m&&"fullWidth",l&&"focused",f&&"formControl",S&&S!=="medium"&&`size${Oe(S)}`,g&&"multiline",T&&"adornedStart",s&&"adornedEnd",p&&"hiddenLabel",b&&"readOnly"],input:["input",r&&"disabled",C==="search"&&"inputTypeSearch",g&&"inputMultiline",S==="small"&&"inputSizeSmall",p&&"inputHiddenLabel",T&&"inputAdornedStart",s&&"inputAdornedEnd",b&&"readOnly"]};return _t(E,W8,t)},nx=Ae("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ex})(Ht(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ep.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),rx=Ae("input",{name:"MuiInputBase",slot:"Input",overridesResolver:tx})(Ht(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ep.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${ep.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:s})=>!s.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:s})=>s.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Z3=I7({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),x_=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:l,className:f,color:m,components:p={},componentsProps:g={},defaultValue:b,disabled:S,disableInjectingGlobalStyles:T,endAdornment:C,error:E,fullWidth:A=!1,id:k,inputComponent:L="input",inputProps:O={},inputRef:P,margin:M,maxRows:$,minRows:B,multiline:H=!1,name:q,onBlur:j,onChange:X,onClick:K,onFocus:ne,onKeyDown:le,onKeyUp:oe,placeholder:V,readOnly:Q,renderSuffix:Z,rows:ae,size:U,slotProps:W={},slots:te={},startAdornment:de,type:Ee="text",value:xe,...Re}=r,rt=O.value!=null?O.value:xe,{current:Ke}=_.useRef(rt!=null),tt=_.useRef(),Be=_.useCallback(je=>{},[]),Xe=Mr(tt,P,O.ref,Be),[He,Je]=_.useState(!1),ke=lp(),De=sp({props:r,muiFormControl:ke,states:["color","disabled","error","hiddenLabel","size","required","filled"]});De.focused=ke?ke.focused:He,_.useEffect(()=>{!ke&&S&&He&&(Je(!1),j&&j())},[ke,S,He,j]);const At=ke&&ke.onFilled,Ze=ke&&ke.onEmpty,zt=_.useCallback(je=>{mb(je)?At&&At():Ze&&Ze()},[At,Ze]);Ss(()=>{Ke&&zt({value:rt})},[rt,zt,Ke]);const ft=je=>{ne&&ne(je),O.onFocus&&O.onFocus(je),ke&&ke.onFocus?ke.onFocus(je):Je(!0)},Pt=je=>{j&&j(je),O.onBlur&&O.onBlur(je),ke&&ke.onBlur?ke.onBlur(je):Je(!1)},at=(je,...Rt)=>{if(!Ke){const Ve=je.target||tt.current;if(Ve==null)throw new Error(vl(1));zt({value:Ve.value})}O.onChange&&O.onChange(je,...Rt),X&&X(je,...Rt)};_.useEffect(()=>{zt(tt.current)},[]);const Pe=je=>{tt.current&&je.currentTarget===je.target&&tt.current.focus(),K&&K(je)};let rn=L,kt=O;H&&rn==="input"&&(ae?kt={type:void 0,minRows:ae,maxRows:ae,...kt}:kt={type:void 0,maxRows:$,minRows:B,...kt},rn=H8);const sn=je=>{zt(je.animationName==="mui-auto-fill-cancel"?tt.current:{value:"x"})};_.useEffect(()=>{ke&&ke.setAdornedStart(!!de)},[ke,de]);const _n={...r,color:De.color||"primary",disabled:De.disabled,endAdornment:C,error:De.error,focused:De.focused,formControl:ke,fullWidth:A,hiddenLabel:De.hiddenLabel,multiline:H,size:De.size,startAdornment:de,type:Ee},hn=G8(_n),ln=te.root||p.Root||nx,Vt=W.root||g.root||{},an=te.input||p.Input||rx;return kt={...kt,...W.input??g.input},v.jsxs(_.Fragment,{children:[!T&&typeof Z3=="function"&&(X3||(X3=v.jsx(Z3,{}))),v.jsxs(ln,{...Vt,ref:n,onClick:Pe,...Re,...!Q0(ln)&&{ownerState:{..._n,...Vt.ownerState}},className:ze(hn.root,Vt.className,f,Q&&"MuiInputBase-readOnly"),children:[de,v.jsx(b_.Provider,{value:null,children:v.jsx(an,{"aria-invalid":De.error,"aria-describedby":a,autoComplete:s,autoFocus:l,defaultValue:b,disabled:De.disabled,id:k,onAnimationStart:sn,name:q,placeholder:V,readOnly:Q,required:De.required,rows:ae,value:rt,onKeyDown:le,onKeyUp:oe,type:Ee,...kt,...!Q0(an)&&{as:rn,ownerState:{..._n,...kt.ownerState}},ref:Xe,className:ze(hn.input,kt.className,Q&&"MuiInputBase-readOnly"),onBlur:Pt,onChange:at,onFocus:ft})}),C,Z?Z({...De,startAdornment:de}):null]})]})});function Y8(e){return wt("MuiInput",e)}const v0={...ep,...St("MuiInput",["root","underline","input"])};function q8(e){return wt("MuiOutlinedInput",e)}const us={...ep,...St("MuiOutlinedInput",["root","notchedOutline","input"])};function K8(e){return wt("MuiFilledInput",e)}const af={...ep,...St("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},X8=Yn(v.jsx("path",{d:"M7 10l5 5 5-5z"})),Z8=Yn(v.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}));function J8(e){return wt("MuiAvatar",e)}St("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Q8=e=>{const{classes:t,variant:n,colorDefault:r}=e;return _t({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},J8,t)},eI=Ae("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(Ht(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})}}}]}))),tI=Ae("img",{name:"MuiAvatar",slot:"Img"})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),nI=Ae(Z8,{name:"MuiAvatar",slot:"Fallback"})({width:"75%",height:"75%"});function rI({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[a,s]=_.useState(!1);return _.useEffect(()=>{if(!n&&!r)return;s(!1);let l=!0;const f=new Image;return f.onload=()=>{l&&s("loaded")},f.onerror=()=>{l&&s("error")},f.crossOrigin=e,f.referrerPolicy=t,f.src=n,r&&(f.srcset=r),()=>{l=!1}},[e,t,n,r]),a}const iI=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiAvatar"}),{alt:a,children:s,className:l,component:f="div",slots:m={},slotProps:p={},imgProps:g,sizes:b,src:S,srcSet:T,variant:C="circular",...E}=r;let A=null;const k={...r,component:f,variant:C},L=rI({...g,...typeof p.img=="function"?p.img(k):p.img,src:S,srcSet:T}),O=S||T,P=O&&L!=="error";k.colorDefault=!P,delete k.ownerState;const M=Q8(k),[$,B]=Lt("root",{ref:n,className:ze(M.root,l),elementType:eI,externalForwardedProps:{slots:m,slotProps:p,component:f,...E},ownerState:k}),[H,q]=Lt("img",{className:M.img,elementType:tI,externalForwardedProps:{slots:m,slotProps:{img:{...g,...p.img}}},additionalProps:{alt:a,src:S,srcSet:T,sizes:b},ownerState:k}),[j,X]=Lt("fallback",{className:M.fallback,elementType:nI,externalForwardedProps:{slots:m,slotProps:p},shouldForwardComponentProp:!0,ownerState:k});return P?A=v.jsx(H,{...q}):s||s===0?A=s:O&&a?A=a[0]:A=v.jsx(j,{...X}),v.jsx($,{...B,children:A})}),aI={entering:{opacity:1},entered:{opacity:1}},nS=_.forwardRef(function(t,n){const r=ki(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:l=!0,children:f,easing:m,in:p,onEnter:g,onEntered:b,onEntering:S,onExit:T,onExited:C,onExiting:E,style:A,timeout:k=a,TransitionComponent:L=ko,...O}=t,P=_.useRef(null),M=Mr(P,Mf(f),n),$=le=>oe=>{if(le){const V=P.current;oe===void 0?le(V):le(V,oe)}},B=$(S),H=$((le,oe)=>{v_(le);const V=Qh({style:A,timeout:k,easing:m},{mode:"enter"});le.style.webkitTransition=r.transitions.create("opacity",V),le.style.transition=r.transitions.create("opacity",V),g&&g(le,oe)}),q=$(b),j=$(E),X=$(le=>{const oe=Qh({style:A,timeout:k,easing:m},{mode:"exit"});le.style.webkitTransition=r.transitions.create("opacity",oe),le.style.transition=r.transitions.create("opacity",oe),T&&T(le)}),K=$(C),ne=le=>{s&&s(P.current,le)};return v.jsx(L,{appear:l,in:p,nodeRef:P,onEnter:H,onEntered:q,onEntering:B,onExit:X,onExited:K,onExiting:j,addEndListener:ne,timeout:k,...O,children:(le,{ownerState:oe,...V})=>_.cloneElement(f,{style:{opacity:0,visibility:le==="exited"&&!p?"hidden":void 0,...aI[le],...A,...f.props.style},ref:M,...V})})});function oI(e){return wt("MuiBackdrop",e)}St("MuiBackdrop",["root","invisible"]);const sI=e=>{const{classes:t,invisible:n}=e;return _t({root:["root",n&&"invisible"]},oI,t)},lI=Ae("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),ix=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiBackdrop"}),{children:a,className:s,component:l="div",invisible:f=!1,open:m,components:p={},componentsProps:g={},slotProps:b={},slots:S={},TransitionComponent:T,transitionDuration:C,...E}=r,A={...r,component:l,invisible:f},k=sI(A),L={transition:T,root:p.Root,...S},O={...g,...b},P={slots:L,slotProps:O},[M,$]=Lt("root",{elementType:lI,externalForwardedProps:P,className:ze(k.root,s),ownerState:A}),[B,H]=Lt("transition",{elementType:nS,externalForwardedProps:P,ownerState:A});return v.jsx(B,{in:m,timeout:C,...E,...H,children:v.jsx(M,{"aria-hidden":!0,...$,classes:k,ref:n,children:a})})}),cI=St("MuiBox",["root"]),uI=I5(),ce=l9({themeId:yg,defaultTheme:uI,defaultClassName:cI.root,generateClassName:y5.generate});function fI(e){return wt("MuiButton",e)}const of=St("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),dI=_.createContext({}),hI=_.createContext(void 0),pI=e=>{const{color:t,disableElevation:n,fullWidth:r,size:a,variant:s,loading:l,loadingPosition:f,classes:m}=e,p={root:["root",l&&"loading",s,`${s}${Oe(t)}`,`size${Oe(a)}`,`${s}Size${Oe(a)}`,`color${Oe(t)}`,n&&"disableElevation",r&&"fullWidth",l&&`loadingPosition${Oe(f)}`],startIcon:["icon","startIcon",`iconSize${Oe(a)}`],endIcon:["icon","endIcon",`iconSize${Oe(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},g=_t(p,fI,m);return{...m,...g}},H5=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],mI=Ae(zc,{shouldForwardProp:e=>ba(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Oe(n.color)}`],t[`size${Oe(n.size)}`],t[`${n.variant}Size${Oe(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Ht(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${of.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${of.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${of.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${of.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Yi()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Dn(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dn(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Dn(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Dn(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Dn(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${of.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${of.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${of.loading}`]:{color:"transparent"}}}]}})),gI=Ae("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Oe(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...H5]})),yI=Ae("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Oe(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...H5]})),vI=Ae("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),J3=Ae("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),qi=_.forwardRef(function(t,n){const r=_.useContext(dI),a=_.useContext(hI),s=Z0(r,t),l=Ct({props:s,name:"MuiButton"}),{children:f,color:m="primary",component:p="button",className:g,disabled:b=!1,disableElevation:S=!1,disableFocusRipple:T=!1,endIcon:C,focusVisibleClassName:E,fullWidth:A=!1,id:k,loading:L=null,loadingIndicator:O,loadingPosition:P="center",size:M="medium",startIcon:$,type:B,variant:H="text",...q}=l,j=Tg(k),X=O??v.jsx(Qb,{"aria-labelledby":j,color:"inherit",size:16}),K={...l,color:m,component:p,disabled:b,disableElevation:S,disableFocusRipple:T,fullWidth:A,loading:L,loadingIndicator:X,loadingPosition:P,size:M,type:B,variant:H},ne=pI(K),le=($||L&&P==="start")&&v.jsx(gI,{className:ne.startIcon,ownerState:K,children:$||v.jsx(J3,{className:ne.loadingIconPlaceholder,ownerState:K})}),oe=(C||L&&P==="end")&&v.jsx(yI,{className:ne.endIcon,ownerState:K,children:C||v.jsx(J3,{className:ne.loadingIconPlaceholder,ownerState:K})}),V=a||"",Q=typeof L=="boolean"?v.jsx("span",{className:ne.loadingWrapper,style:{display:"contents"},children:L&&v.jsx(vI,{className:ne.loadingIndicator,ownerState:K,children:X})}):null;return v.jsxs(mI,{ownerState:K,className:ze(r.className,ne.root,g,V),component:p,disabled:b||L,focusRipple:!T,focusVisibleClassName:ze(ne.focusVisible,E),ref:n,type:B,id:L?j:k,...q,classes:ne,children:[le,P!=="end"&&Q,f,P==="end"&&Q,oe]})});function bI(e){return wt("MuiCard",e)}St("MuiCard",["root"]);const xI=e=>{const{classes:t}=e;return _t({root:["root"]},bI,t)},wI=Ae(Bc,{name:"MuiCard",slot:"Root"})({overflow:"hidden"}),w_=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiCard"}),{className:a,raised:s=!1,...l}=r,f={...r,raised:s},m=xI(f);return v.jsx(wI,{className:ze(m.root,a),elevation:s?8:void 0,ref:n,ownerState:f,...l})});function SI(e){return wt("MuiCardContent",e)}St("MuiCardContent",["root"]);const _I=e=>{const{classes:t}=e;return _t({root:["root"]},SI,t)},CI=Ae("div",{name:"MuiCardContent",slot:"Root"})({padding:16,"&:last-child":{paddingBottom:24}}),EI=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiCardContent"}),{className:a,component:s="div",...l}=r,f={...r,component:s},m=_I(f);return v.jsx(CI,{as:s,className:ze(m.root,a),ownerState:f,ref:n,...l})});function TI(e){return wt("MuiCardMedia",e)}St("MuiCardMedia",["root","media","img"]);const RI=e=>{const{classes:t,isMediaComponent:n,isImageComponent:r}=e;return _t({root:["root",n&&"media",r&&"img"]},TI,t)},AI=Ae("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{isMediaComponent:r,isImageComponent:a}=n;return[t.root,r&&t.media,a&&t.img]}})({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center",variants:[{props:{isMediaComponent:!0},style:{width:"100%"}},{props:{isImageComponent:!0},style:{objectFit:"cover"}}]}),kI=["video","audio","picture","iframe","img"],OI=["picture","img"],V5=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiCardMedia"}),{children:a,className:s,component:l="div",image:f,src:m,style:p,...g}=r,b=kI.includes(l),S=!b&&f?{backgroundImage:`url("${f}")`,...p}:p,T={...r,component:l,isMediaComponent:b,isImageComponent:OI.includes(l)},C=RI(T);return v.jsx(AI,{className:ze(C.root,s),as:l,role:!b&&f?"img":void 0,ref:n,style:S,ownerState:T,src:b?f||m:void 0,...g,children:a})});function Q3(e){return e.substring(2).toLowerCase()}function MI(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function DI(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:a,touchEvent:s="onTouchEnd"}=e,l=_.useRef(!1),f=_.useRef(null),m=_.useRef(!1),p=_.useRef(!1);_.useEffect(()=>(setTimeout(()=>{m.current=!0},0),()=>{m.current=!1}),[]);const g=Mr(Mf(t),f),b=ya(C=>{const E=p.current;p.current=!1;const A=Ri(f.current);if(!m.current||!f.current||"clientX"in C&&MI(C,A))return;if(l.current){l.current=!1;return}let k;C.composedPath?k=C.composedPath().includes(f.current):k=!A.documentElement.contains(C.target)||f.current.contains(C.target),!k&&(n||!E)&&a(C)}),S=C=>E=>{p.current=!0;const A=t.props[C];A&&A(E)},T={ref:g};return s!==!1&&(T[s]=S(s)),_.useEffect(()=>{if(s!==!1){const C=Q3(s),E=Ri(f.current),A=()=>{l.current=!0};return E.addEventListener(C,b),E.addEventListener("touchmove",A),()=>{E.removeEventListener(C,b),E.removeEventListener("touchmove",A)}}},[b,s]),r!==!1&&(T[r]=S(r)),_.useEffect(()=>{if(r!==!1){const C=Q3(r),E=Ri(f.current);return E.addEventListener(C,b),()=>{E.removeEventListener(C,b)}}},[b,r]),_.cloneElement(t,T)}function W5(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function jI(e){const t=Ri(e);return t.body===e?va(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function P0(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function eE(e){return parseInt(va(e).getComputedStyle(e).paddingRight,10)||0}function II(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function tE(e,t,n,r,a){const s=[t,n,...r];[].forEach.call(e.children,l=>{const f=!s.includes(l),m=!II(l);f&&m&&P0(l,a)})}function o2(e,t){let n=-1;return e.some((r,a)=>t(r)?(n=a,!0):!1),n}function LI(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(jI(r)){const l=W5(va(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${eE(r)+l}px`;const f=Ri(r).querySelectorAll(".mui-fixed");[].forEach.call(f,m=>{n.push({value:m.style.paddingRight,property:"padding-right",el:m}),m.style.paddingRight=`${eE(m)+l}px`})}let s;if(r.parentNode instanceof DocumentFragment)s=Ri(r).body;else{const l=r.parentElement,f=va(r);s=(l==null?void 0:l.nodeName)==="HTML"&&f.getComputedStyle(l).overflowY==="scroll"?l:r}n.push({value:s.style.overflow,property:"overflow",el:s},{value:s.style.overflowX,property:"overflow-x",el:s},{value:s.style.overflowY,property:"overflow-y",el:s}),s.style.overflow="hidden"}return()=>{n.forEach(({value:s,el:l,property:f})=>{s?l.style.setProperty(f,s):l.style.removeProperty(f)})}}function PI(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class NI{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&P0(t.modalRef,!1);const a=PI(n);tE(n,t.mount,t.modalRef,a,!0);const s=o2(this.containers,l=>l.container===n);return s!==-1?(this.containers[s].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),r)}mount(t,n){const r=o2(this.containers,s=>s.modals.includes(t)),a=this.containers[r];a.restore||(a.restore=LI(a,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const a=o2(this.containers,l=>l.modals.includes(t)),s=this.containers[a];if(s.modals.splice(s.modals.indexOf(t),1),this.modals.splice(r,1),s.modals.length===0)s.restore&&s.restore(),t.modalRef&&P0(t.modalRef,n),tE(s.container,t.mount,t.modalRef,s.hiddenSiblings,!1),this.containers.splice(a,1);else{const l=s.modals[s.modals.length-1];l.modalRef&&P0(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const FI=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function BI(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function zI(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function UI(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||zI(e))}function $I(e){const t=[],n=[];return Array.from(e.querySelectorAll(FI)).forEach((r,a)=>{const s=BI(r);s===-1||!UI(r)||(s===0?t.push(r):n.push({documentOrder:a,tabIndex:s,node:r}))}),n.sort((r,a)=>r.tabIndex===a.tabIndex?r.documentOrder-a.documentOrder:r.tabIndex-a.tabIndex).map(r=>r.node).concat(t)}function HI(){return!0}function VI(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:a=!1,getTabbable:s=$I,isEnabled:l=HI,open:f}=e,m=_.useRef(!1),p=_.useRef(null),g=_.useRef(null),b=_.useRef(null),S=_.useRef(null),T=_.useRef(!1),C=_.useRef(null),E=Mr(Mf(t),C),A=_.useRef(null);_.useEffect(()=>{!f||!C.current||(T.current=!n)},[n,f]),_.useEffect(()=>{if(!f||!C.current)return;const O=Ri(C.current);return C.current.contains(O.activeElement)||(C.current.hasAttribute("tabIndex")||C.current.setAttribute("tabIndex","-1"),T.current&&C.current.focus()),()=>{a||(b.current&&b.current.focus&&(m.current=!0,b.current.focus()),b.current=null)}},[f]),_.useEffect(()=>{if(!f||!C.current)return;const O=Ri(C.current),P=B=>{A.current=B,!(r||!l()||B.key!=="Tab")&&O.activeElement===C.current&&B.shiftKey&&(m.current=!0,g.current&&g.current.focus())},M=()=>{var q,j;const B=C.current;if(B===null)return;if(!O.hasFocus()||!l()||m.current){m.current=!1;return}if(B.contains(O.activeElement)||r&&O.activeElement!==p.current&&O.activeElement!==g.current)return;if(O.activeElement!==S.current)S.current=null;else if(S.current!==null)return;if(!T.current)return;let H=[];if((O.activeElement===p.current||O.activeElement===g.current)&&(H=s(C.current)),H.length>0){const X=!!((q=A.current)!=null&&q.shiftKey&&((j=A.current)==null?void 0:j.key)==="Tab"),K=H[0],ne=H[H.length-1];typeof K!="string"&&typeof ne!="string"&&(X?ne.focus():K.focus())}else B.focus()};O.addEventListener("focusin",M),O.addEventListener("keydown",P,!0);const $=setInterval(()=>{O.activeElement&&O.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval($),O.removeEventListener("focusin",M),O.removeEventListener("keydown",P,!0)}},[n,r,a,l,f,s]);const k=O=>{b.current===null&&(b.current=O.relatedTarget),T.current=!0,S.current=O.target;const P=t.props.onFocus;P&&P(O)},L=O=>{b.current===null&&(b.current=O.relatedTarget),T.current=!0};return v.jsxs(_.Fragment,{children:[v.jsx("div",{tabIndex:f?0:-1,onFocus:L,ref:p,"data-testid":"sentinelStart"}),_.cloneElement(t,{ref:E,onFocus:k}),v.jsx("div",{tabIndex:f?0:-1,onFocus:L,ref:g,"data-testid":"sentinelEnd"})]})}function WI(e){return typeof e=="function"?e():e}function GI(e){return e?e.props.hasOwnProperty("in"):!1}const nE=()=>{},xv=new NI;function YI(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:l,children:f,onClose:m,open:p,rootRef:g}=e,b=_.useRef({}),S=_.useRef(null),T=_.useRef(null),C=Mr(T,g),[E,A]=_.useState(!p),k=GI(f);let L=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(L=!1);const O=()=>Ri(S.current),P=()=>(b.current.modalRef=T.current,b.current.mount=S.current,b.current),M=()=>{xv.mount(P(),{disableScrollLock:r}),T.current&&(T.current.scrollTop=0)},$=ya(()=>{const oe=WI(t)||O().body;xv.add(P(),oe),T.current&&M()}),B=()=>xv.isTopModal(P()),H=ya(oe=>{S.current=oe,oe&&(p&&B()?M():T.current&&P0(T.current,L))}),q=_.useCallback(()=>{xv.remove(P(),L)},[L]);_.useEffect(()=>()=>{q()},[q]),_.useEffect(()=>{p?$():(!k||!a)&&q()},[p,q,k,a,$]);const j=oe=>V=>{var Q;(Q=oe.onKeyDown)==null||Q.call(oe,V),!(V.key!=="Escape"||V.which===229||!B())&&(n||(V.stopPropagation(),m&&m(V,"escapeKeyDown")))},X=oe=>V=>{var Q;(Q=oe.onClick)==null||Q.call(oe,V),V.target===V.currentTarget&&m&&m(V,"backdropClick")};return{getRootProps:(oe={})=>{const V=db(e);delete V.onTransitionEnter,delete V.onTransitionExited;const Q={...V,...oe};return{role:"presentation",...Q,onKeyDown:j(Q),ref:C}},getBackdropProps:(oe={})=>{const V=oe;return{"aria-hidden":!0,...V,onClick:X(V),open:p}},getTransitionProps:()=>{const oe=()=>{A(!1),s&&s()},V=()=>{A(!0),l&&l(),a&&q()};return{onEnter:P3(oe,(f==null?void 0:f.props.onEnter)??nE),onExited:P3(V,(f==null?void 0:f.props.onExited)??nE)}},rootRef:C,portalRef:H,isTopModal:B,exited:E,hasTransition:k}}function qI(e){return wt("MuiModal",e)}St("MuiModal",["root","hidden","backdrop"]);const KI=e=>{const{open:t,exited:n,classes:r}=e;return _t({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},qI,r)},XI=Ae("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Ht(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),ZI=Ae(ix,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),Rg=_.forwardRef(function(t,n){const r=Ct({name:"MuiModal",props:t}),{BackdropComponent:a=ZI,BackdropProps:s,classes:l,className:f,closeAfterTransition:m=!1,children:p,container:g,component:b,components:S={},componentsProps:T={},disableAutoFocus:C=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:A=!1,disablePortal:k=!1,disableRestoreFocus:L=!1,disableScrollLock:O=!1,hideBackdrop:P=!1,keepMounted:M=!1,onClose:$,onTransitionEnter:B,onTransitionExited:H,open:q,slotProps:j={},slots:X={},theme:K,...ne}=r,le={...r,closeAfterTransition:m,disableAutoFocus:C,disableEnforceFocus:E,disableEscapeKeyDown:A,disablePortal:k,disableRestoreFocus:L,disableScrollLock:O,hideBackdrop:P,keepMounted:M},{getRootProps:oe,getBackdropProps:V,getTransitionProps:Q,portalRef:Z,isTopModal:ae,exited:U,hasTransition:W}=YI({...le,rootRef:n}),te={...le,exited:U},de=KI(te),Ee={};if(p.props.tabIndex===void 0&&(Ee.tabIndex="-1"),W){const{onEnter:Be,onExited:Xe}=Q();Ee.onEnter=Be,Ee.onExited=Xe}const xe={slots:{root:S.Root,backdrop:S.Backdrop,...X},slotProps:{...T,...j}},[Re,rt]=Lt("root",{ref:n,elementType:XI,externalForwardedProps:{...xe,...ne,component:b},getSlotProps:oe,ownerState:te,className:ze(f,de==null?void 0:de.root,!te.open&&te.exited&&(de==null?void 0:de.hidden))}),[Ke,tt]=Lt("backdrop",{ref:s==null?void 0:s.ref,elementType:a,externalForwardedProps:xe,shouldForwardComponentProp:!0,additionalProps:s,getSlotProps:Be=>V({...Be,onClick:Xe=>{Be!=null&&Be.onClick&&Be.onClick(Xe)}}),className:ze(s==null?void 0:s.className,de==null?void 0:de.backdrop),ownerState:te});return!M&&!q&&(!W||U)?null:v.jsx(I8,{ref:Z,container:g,disablePortal:k,children:v.jsxs(Re,{...rt,children:[!P&&a?v.jsx(Ke,{...tt}):null,v.jsx(VI,{disableEnforceFocus:E,disableAutoFocus:C,disableRestoreFocus:L,isEnabled:ae,open:q,children:_.cloneElement(p,Ee)})]})})});function JI(e){return wt("MuiDialog",e)}const s2=St("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),G5=_.createContext({}),QI=Ae(ix,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),eL=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:a,fullScreen:s}=e,l={root:["root"],container:["container",`scroll${Oe(n)}`],paper:["paper",`paperScroll${Oe(n)}`,`paperWidth${Oe(String(r))}`,a&&"paperFullWidth",s&&"paperFullScreen"]};return _t(l,JI,t)},tL=Ae(Rg,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),nL=Ae("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Oe(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),rL=Ae(Bc,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Oe(n.scroll)}`],t[`paperWidth${Oe(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(Ht(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${s2.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${s2.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+32*2)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${s2.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),Ag=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDialog"}),a=ki(),s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":l,"aria-labelledby":f,"aria-modal":m=!0,BackdropComponent:p,BackdropProps:g,children:b,className:S,disableEscapeKeyDown:T=!1,fullScreen:C=!1,fullWidth:E=!1,maxWidth:A="sm",onClick:k,onClose:L,open:O,PaperComponent:P=Bc,PaperProps:M={},scroll:$="paper",slots:B={},slotProps:H={},TransitionComponent:q=nS,transitionDuration:j=s,TransitionProps:X,...K}=r,ne={...r,disableEscapeKeyDown:T,fullScreen:C,fullWidth:E,maxWidth:A,scroll:$},le=eL(ne),oe=_.useRef(),V=Je=>{oe.current=Je.target===Je.currentTarget},Q=Je=>{k&&k(Je),oe.current&&(oe.current=null,L&&L(Je,"backdropClick"))},Z=Tg(f),ae=_.useMemo(()=>({titleId:Z}),[Z]),U={transition:q,...B},W={transition:X,paper:M,backdrop:g,...H},te={slots:U,slotProps:W},[de,Ee]=Lt("root",{elementType:tL,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:ne,className:ze(le.root,S),ref:n}),[xe,Re]=Lt("backdrop",{elementType:QI,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:ne}),[rt,Ke]=Lt("paper",{elementType:rL,shouldForwardComponentProp:!0,externalForwardedProps:te,ownerState:ne,className:ze(le.paper,M.className)}),[tt,Be]=Lt("container",{elementType:nL,externalForwardedProps:te,ownerState:ne,className:le.container}),[Xe,He]=Lt("transition",{elementType:nS,externalForwardedProps:te,ownerState:ne,additionalProps:{appear:!0,in:O,timeout:j,role:"presentation"}});return v.jsx(de,{closeAfterTransition:!0,slots:{backdrop:xe},slotProps:{backdrop:{transitionDuration:j,as:p,...Re}},disableEscapeKeyDown:T,onClose:L,open:O,onClick:Q,...Ee,...K,children:v.jsx(Xe,{...He,children:v.jsx(tt,{onMouseDown:V,...Be,children:v.jsx(rt,{as:P,elevation:24,role:"dialog","aria-describedby":l,"aria-labelledby":Z,"aria-modal":m,...Ke,children:v.jsx(G5.Provider,{value:ae,children:b})})})})})});function iL(e){return wt("MuiDialogActions",e)}St("MuiDialogActions",["root","spacing"]);const aL=e=>{const{classes:t,disableSpacing:n}=e;return _t({root:["root",!n&&"spacing"]},iL,t)},oL=Ae("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),sL=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:s=!1,...l}=r,f={...r,disableSpacing:s},m=aL(f);return v.jsx(oL,{className:ze(m.root,a),ownerState:f,ref:n,...l})});function lL(e){return wt("MuiDialogContent",e)}St("MuiDialogContent",["root","dividers"]);function cL(e){return wt("MuiDialogTitle",e)}const uL=St("MuiDialogTitle",["root"]),fL=e=>{const{classes:t,dividers:n}=e;return _t({root:["root",n&&"dividers"]},lL,t)},dL=Ae("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(Ht(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${uL.root} + &`]:{paddingTop:0}}}]}))),ax=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDialogContent"}),{className:a,dividers:s=!1,...l}=r,f={...r,dividers:s},m=fL(f);return v.jsx(dL,{className:ze(m.root,a),ownerState:f,ref:n,...l})}),hL=e=>{const{classes:t}=e;return _t({root:["root"]},cL,t)},pL=Ae(Ye,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),ox=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDialogTitle"}),{className:a,id:s,...l}=r,f=r,m=hL(f),{titleId:p=s}=_.useContext(G5);return v.jsx(pL,{component:"h2",className:ze(m.root,a),ownerState:f,ref:n,variant:"h6",id:s??p,...l})});function mL(e){return wt("MuiDivider",e)}const rE=St("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),gL=e=>{const{absolute:t,children:n,classes:r,flexItem:a,light:s,orientation:l,textAlign:f,variant:m}=e;return _t({root:["root",t&&"absolute",m,s&&"light",l==="vertical"&&"vertical",a&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",f==="right"&&l!=="vertical"&&"textAlignRight",f==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},mL,r)},yL=Ae("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(Ht(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Dn(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),vL=Ae("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(Ht(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),tp=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDivider"}),{absolute:a=!1,children:s,className:l,orientation:f="horizontal",component:m=s||f==="vertical"?"div":"hr",flexItem:p=!1,light:g=!1,role:b=m!=="hr"?"separator":void 0,textAlign:S="center",variant:T="fullWidth",...C}=r,E={...r,absolute:a,component:m,flexItem:p,light:g,orientation:f,role:b,textAlign:S,variant:T},A=gL(E);return v.jsx(yL,{as:m,className:ze(A.root,l),role:b,ref:n,ownerState:E,"aria-orientation":b==="separator"&&(m!=="hr"||f==="vertical")?f:void 0,...C,children:s?v.jsx(vL,{className:A.wrapper,ownerState:E,children:s}):null})});tp&&(tp.muiSkipListHighlight=!0);function bL(e,t,n){const r=t.getBoundingClientRect(),a=n&&n.getBoundingClientRect(),s=va(t);let l;if(t.fakeTransform)l=t.fakeTransform;else{const p=s.getComputedStyle(t);l=p.getPropertyValue("-webkit-transform")||p.getPropertyValue("transform")}let f=0,m=0;if(l&&l!=="none"&&typeof l=="string"){const p=l.split("(")[1].split(")")[0].split(",");f=parseInt(p[4],10),m=parseInt(p[5],10)}return e==="left"?a?`translateX(${a.right+f-r.left}px)`:`translateX(${s.innerWidth+f-r.left}px)`:e==="right"?a?`translateX(-${r.right-a.left-f}px)`:`translateX(-${r.left+r.width-f}px)`:e==="up"?a?`translateY(${a.bottom+m-r.top}px)`:`translateY(${s.innerHeight+m-r.top}px)`:a?`translateY(-${r.top-a.top+r.height-m}px)`:`translateY(-${r.top+r.height-m}px)`}function xL(e){return typeof e=="function"?e():e}function wv(e,t,n){const r=xL(n),a=bL(e,t,r);a&&(t.style.webkitTransform=a,t.style.transform=a)}const wL=_.forwardRef(function(t,n){const r=ki(),a={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},s={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:l,appear:f=!0,children:m,container:p,direction:g="down",easing:b=a,in:S,onEnter:T,onEntered:C,onEntering:E,onExit:A,onExited:k,onExiting:L,style:O,timeout:P=s,TransitionComponent:M=ko,...$}=t,B=_.useRef(null),H=Mr(Mf(m),B,n),q=Z=>ae=>{Z&&(ae===void 0?Z(B.current):Z(B.current,ae))},j=q((Z,ae)=>{wv(g,Z,p),v_(Z),T&&T(Z,ae)}),X=q((Z,ae)=>{const U=Qh({timeout:P,style:O,easing:b},{mode:"enter"});Z.style.webkitTransition=r.transitions.create("-webkit-transform",{...U}),Z.style.transition=r.transitions.create("transform",{...U}),Z.style.webkitTransform="none",Z.style.transform="none",E&&E(Z,ae)}),K=q(C),ne=q(L),le=q(Z=>{const ae=Qh({timeout:P,style:O,easing:b},{mode:"exit"});Z.style.webkitTransition=r.transitions.create("-webkit-transform",ae),Z.style.transition=r.transitions.create("transform",ae),wv(g,Z,p),A&&A(Z)}),oe=q(Z=>{Z.style.webkitTransition="",Z.style.transition="",k&&k(Z)}),V=Z=>{l&&l(B.current,Z)},Q=_.useCallback(()=>{B.current&&wv(g,B.current,p)},[g,p]);return _.useEffect(()=>{if(S||g==="down"||g==="right")return;const Z=Eg(()=>{B.current&&wv(g,B.current,p)}),ae=va(B.current);return ae.addEventListener("resize",Z),()=>{Z.clear(),ae.removeEventListener("resize",Z)}},[g,S,p]),_.useEffect(()=>{S||Q()},[S,Q]),v.jsx(M,{nodeRef:B,onEnter:j,onEntered:K,onEntering:X,onExit:le,onExited:oe,onExiting:ne,addEndListener:V,appear:f,in:S,timeout:P,...$,children:(Z,{ownerState:ae,...U})=>_.cloneElement(m,{ref:H,style:{visibility:Z==="exited"&&!S?"hidden":void 0,...O,...m.props.style},...U})})});function SL(e){return wt("MuiDrawer",e)}St("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const Y5=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},_L=e=>{const{classes:t,anchor:n,variant:r}=e,a={root:["root",`anchor${Oe(n)}`],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${Oe(n)}`,r!=="temporary"&&`paperAnchorDocked${Oe(n)}`]};return _t(a,SL,t)},CL=Ae(Rg,{name:"MuiDrawer",slot:"Root",overridesResolver:Y5})(Ht(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),EL=Ae("div",{shouldForwardProp:ba,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:Y5})({flex:"0 0 auto"}),TL=Ae(Bc,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${Oe(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${Oe(n.anchor)}`]]}})(Ht(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:t})=>t.anchor==="left"&&t.variant!=="temporary",style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="top"&&t.variant!=="temporary",style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="right"&&t.variant!=="temporary",style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>t.anchor==="bottom"&&t.variant!=="temporary",style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),q5={left:"right",right:"left",top:"down",bottom:"up"};function RL(e){return["left","right"].includes(e)}function AL({direction:e},t){return e==="rtl"&&RL(t)?q5[t]:t}const kL=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiDrawer"}),a=ki(),s=Zb(),l={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{anchor:f="left",BackdropProps:m,children:p,className:g,elevation:b=16,hideBackdrop:S=!1,ModalProps:{BackdropProps:T,...C}={},onClose:E,open:A=!1,PaperProps:k={},SlideProps:L,TransitionComponent:O,transitionDuration:P=l,variant:M="temporary",slots:$={},slotProps:B={},...H}=r,q=_.useRef(!1);_.useEffect(()=>{q.current=!0},[]);const j=AL({direction:s?"rtl":"ltr"},f),K={...r,anchor:f,elevation:b,open:A,variant:M,...H},ne=_L(K),le={slots:{transition:O,...$},slotProps:{paper:k,transition:L,...B,backdrop:P5(B.backdrop||{...m,...T},{transitionDuration:P})}},[oe,V]=Lt("root",{ref:n,elementType:CL,className:ze(ne.root,ne.modal,g),shouldForwardComponentProp:!0,ownerState:K,externalForwardedProps:{...le,...H,...C},additionalProps:{open:A,onClose:E,hideBackdrop:S,slots:{backdrop:le.slots.backdrop},slotProps:{backdrop:le.slotProps.backdrop}}}),[Q,Z]=Lt("paper",{elementType:TL,shouldForwardComponentProp:!0,className:ze(ne.paper,k.className),ownerState:K,externalForwardedProps:le,additionalProps:{elevation:M==="temporary"?b:0,square:!0}}),[ae,U]=Lt("docked",{elementType:EL,ref:n,className:ze(ne.root,ne.docked,g),ownerState:K,externalForwardedProps:le,additionalProps:H}),[W,te]=Lt("transition",{elementType:wL,ownerState:K,externalForwardedProps:le,additionalProps:{in:A,direction:q5[j],timeout:P,appear:q.current}}),de=v.jsx(Q,{...Z,children:p});if(M==="permanent")return v.jsx(ae,{...U,children:de});const Ee=v.jsx(W,{...te,children:de});return M==="persistent"?v.jsx(ae,{...U,children:Ee}):v.jsx(oe,{...V,children:Ee})}),OL=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:a,size:s,hiddenLabel:l,multiline:f}=e,m={root:["root",!n&&"underline",r&&"adornedStart",a&&"adornedEnd",s==="small"&&`size${Oe(s)}`,l&&"hiddenLabel",f&&"multiline"],input:["input"]},p=_t(m,K8,t);return{...t,...p}},ML=Ae(nx,{shouldForwardProp:e=>ba(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ex(e,t),!n.disableUnderline&&t.underline]}})(Ht(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${af.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${af.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${af.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${af.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${af.disabled}, .${af.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${af.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Yi()).map(([l])=>{var f;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(f=(e.vars||e).palette[l])==null?void 0:f.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:f})=>l.multiline&&f==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),DL=Ae(rx,{name:"MuiFilledInput",slot:"Input",overridesResolver:tx})(Ht(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),S_=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:s={},componentsProps:l,fullWidth:f=!1,hiddenLabel:m,inputComponent:p="input",multiline:g=!1,slotProps:b,slots:S={},type:T="text",...C}=r,E={...r,disableUnderline:a,fullWidth:f,inputComponent:p,multiline:g,type:T},A=OL(r),k={root:{ownerState:E},input:{ownerState:E}},L=b??l?Pr(k,b??l):k,O=S.root??s.Root??ML,P=S.input??s.Input??DL;return v.jsx(x_,{slots:{root:O,input:P},slotProps:L,fullWidth:f,inputComponent:p,multiline:g,ref:n,type:T,...C,classes:A})});S_.muiName="Input";function jL(e){return wt("MuiFormControl",e)}St("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const IL=e=>{const{classes:t,margin:n,fullWidth:r}=e,a={root:["root",n!=="none"&&`margin${Oe(n)}`,r&&"fullWidth"]};return _t(a,jL,t)},LL=Ae("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Oe(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),PL=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiFormControl"}),{children:a,className:s,color:l="primary",component:f="div",disabled:m=!1,error:p=!1,focused:g,fullWidth:b=!1,hiddenLabel:S=!1,margin:T="none",required:C=!1,size:E="medium",variant:A="outlined",...k}=r,L={...r,color:l,component:f,disabled:m,error:p,fullWidth:b,hiddenLabel:S,margin:T,required:C,size:E,variant:A},O=IL(L),[P,M]=_.useState(()=>{let oe=!1;return a&&_.Children.forEach(a,V=>{if(!L0(V,["Input","Select"]))return;const Q=L0(V,["Select"])?V.props.input:V;Q&&V8(Q.props)&&(oe=!0)}),oe}),[$,B]=_.useState(()=>{let oe=!1;return a&&_.Children.forEach(a,V=>{L0(V,["Input","Select"])&&(mb(V.props,!0)||mb(V.props.inputProps,!0))&&(oe=!0)}),oe}),[H,q]=_.useState(!1);m&&H&&q(!1);const j=g!==void 0&&!m?g:H;let X;_.useRef(!1);const K=_.useCallback(()=>{B(!0)},[]),ne=_.useCallback(()=>{B(!1)},[]),le=_.useMemo(()=>({adornedStart:P,setAdornedStart:M,color:l,disabled:m,error:p,filled:$,focused:j,fullWidth:b,hiddenLabel:S,size:E,onBlur:()=>{q(!1)},onFocus:()=>{q(!0)},onEmpty:ne,onFilled:K,registerEffect:X,required:C,variant:A}),[P,l,m,p,$,j,b,S,X,ne,K,C,E,A]);return v.jsx(b_.Provider,{value:le,children:v.jsx(LL,{as:f,ownerState:L,className:ze(O.root,s),ref:n,...k,children:a})})});function NL(e){return wt("MuiFormHelperText",e)}const iE=St("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var aE;const FL=e=>{const{classes:t,contained:n,size:r,disabled:a,error:s,filled:l,focused:f,required:m}=e,p={root:["root",a&&"disabled",s&&"error",r&&`size${Oe(r)}`,n&&"contained",f&&"focused",l&&"filled",m&&"required"]};return _t(p,NL,t)},BL=Ae("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Oe(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(Ht(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${iE.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${iE.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),zL=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiFormHelperText"}),{children:a,className:s,component:l="p",disabled:f,error:m,filled:p,focused:g,margin:b,required:S,variant:T,...C}=r,E=lp(),A=sp({props:r,muiFormControl:E,states:["variant","size","disabled","error","filled","focused","required"]}),k={...r,component:l,contained:A.variant==="filled"||A.variant==="outlined",variant:A.variant,size:A.size,disabled:A.disabled,error:A.error,filled:A.filled,focused:A.focused,required:A.required};delete k.ownerState;const L=FL(k);return v.jsx(BL,{as:l,className:ze(L.root,s),ref:n,...C,ownerState:k,children:a===" "?aE||(aE=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function UL(e){return wt("MuiFormLabel",e)}const N0=St("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),$L=e=>{const{classes:t,color:n,focused:r,disabled:a,error:s,filled:l,required:f}=e,m={root:["root",`color${Oe(n)}`,a&&"disabled",s&&"error",l&&"filled",r&&"focused",f&&"required"],asterisk:["asterisk",s&&"error"]};return _t(m,UL,t)},HL=Ae("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(Ht(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Yi()).map(([t])=>({props:{color:t},style:{[`&.${N0.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${N0.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${N0.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),VL=Ae("span",{name:"MuiFormLabel",slot:"Asterisk"})(Ht(({theme:e})=>({[`&.${N0.error}`]:{color:(e.vars||e).palette.error.main}}))),WL=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiFormLabel"}),{children:a,className:s,color:l,component:f="label",disabled:m,error:p,filled:g,focused:b,required:S,...T}=r,C=lp(),E=sp({props:r,muiFormControl:C,states:["color","required","focused","disabled","error","filled"]}),A={...r,color:E.color||"primary",component:f,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required},k=$L(A);return v.jsxs(HL,{as:f,ownerState:A,className:ze(k.root,s),ref:n,...T,children:[a,E.required&&v.jsxs(VL,{ownerState:A,"aria-hidden":!0,className:k.asterisk,children:[" ","*"]})]})}),wf=K9({createStyledComponent:Ae("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Ct({props:e,name:"MuiGrid"}),useTheme:ki});function rS(e){return`scale(${e}, ${e**2})`}const GL={entering:{opacity:1,transform:rS(1)},entered:{opacity:1,transform:"none"}},l2=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),gb=_.forwardRef(function(t,n){const{addEndListener:r,appear:a=!0,children:s,easing:l,in:f,onEnter:m,onEntered:p,onEntering:g,onExit:b,onExited:S,onExiting:T,style:C,timeout:E="auto",TransitionComponent:A=ko,...k}=t,L=y_(),O=_.useRef(),P=ki(),M=_.useRef(null),$=Mr(M,Mf(s),n),B=oe=>V=>{if(oe){const Q=M.current;V===void 0?oe(Q):oe(Q,V)}},H=B(g),q=B((oe,V)=>{v_(oe);const{duration:Q,delay:Z,easing:ae}=Qh({style:C,timeout:E,easing:l},{mode:"enter"});let U;E==="auto"?(U=P.transitions.getAutoHeightDuration(oe.clientHeight),O.current=U):U=Q,oe.style.transition=[P.transitions.create("opacity",{duration:U,delay:Z}),P.transitions.create("transform",{duration:l2?U:U*.666,delay:Z,easing:ae})].join(","),m&&m(oe,V)}),j=B(p),X=B(T),K=B(oe=>{const{duration:V,delay:Q,easing:Z}=Qh({style:C,timeout:E,easing:l},{mode:"exit"});let ae;E==="auto"?(ae=P.transitions.getAutoHeightDuration(oe.clientHeight),O.current=ae):ae=V,oe.style.transition=[P.transitions.create("opacity",{duration:ae,delay:Q}),P.transitions.create("transform",{duration:l2?ae:ae*.666,delay:l2?Q:Q||ae*.333,easing:Z})].join(","),oe.style.opacity=0,oe.style.transform=rS(.75),b&&b(oe)}),ne=B(S),le=oe=>{E==="auto"&&L.start(O.current||0,oe),r&&r(M.current,oe)};return v.jsx(A,{appear:a,in:f,nodeRef:M,onEnter:q,onEntered:j,onEntering:H,onExit:K,onExited:ne,onExiting:X,addEndListener:le,timeout:E==="auto"?null:E,...k,children:(oe,{ownerState:V,...Q})=>_.cloneElement(s,{style:{opacity:0,transform:rS(.75),visibility:oe==="exited"&&!f?"hidden":void 0,...GL[oe],...C,...s.props.style},ref:$,...Q})})});gb&&(gb.muiSupportAuto=!0);const YL=e=>{const{classes:t,disableUnderline:n}=e,a=_t({root:["root",!n&&"underline"],input:["input"]},Y8,t);return{...t,...a}},qL=Ae(nx,{shouldForwardProp:e=>ba(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ex(e,t),!n.disableUnderline&&t.underline]}})(Ht(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${v0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${v0.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${v0.disabled}, .${v0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${v0.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Yi()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),KL=Ae(rx,{name:"MuiInput",slot:"Input",overridesResolver:tx})({}),kg=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:s={},componentsProps:l,fullWidth:f=!1,inputComponent:m="input",multiline:p=!1,slotProps:g,slots:b={},type:S="text",...T}=r,C=YL(r),A={root:{ownerState:{disableUnderline:a}}},k=g??l?Pr(g??l,A):A,L=b.root??s.Root??qL,O=b.input??s.Input??KL;return v.jsx(x_,{slots:{root:L,input:O},slotProps:k,fullWidth:f,inputComponent:m,multiline:p,ref:n,type:S,...T,classes:C})});kg.muiName="Input";function XL(e){return wt("MuiInputLabel",e)}St("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const ZL=e=>{const{classes:t,formControl:n,size:r,shrink:a,disableAnimation:s,variant:l,required:f}=e,m={root:["root",n&&"formControl",!s&&"animated",a&&"shrink",r&&r!=="medium"&&`size${Oe(r)}`,l],asterisk:[f&&"asterisk"]},p=_t(m,XL,t);return{...t,...p}},JL=Ae(WL,{shouldForwardProp:e=>ba(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${N0.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(Ht(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),QL=_.forwardRef(function(t,n){const r=Ct({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:s,shrink:l,variant:f,className:m,...p}=r,g=lp();let b=l;typeof b>"u"&&g&&(b=g.filled||g.focused||g.adornedStart);const S=sp({props:r,muiFormControl:g,states:["size","variant","required","focused"]}),T={...r,disableAnimation:a,formControl:g,shrink:b,size:S.size,variant:S.variant,required:S.required,focused:S.focused},C=ZL(T);return v.jsx(JL,{"data-shrink":b,ref:n,className:ze(C.root,m),...p,ownerState:T,classes:C})});function eP(e){return wt("MuiLink",e)}const tP=St("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),nP=({theme:e,ownerState:t})=>{const n=t.color,r=Ic(e,`palette.${n}.main`,!1)||Ic(e,`palette.${n}`,!1)||t.color,a=Ic(e,`palette.${n}.mainChannel`)||Ic(e,`palette.${n}Channel`);return"vars"in e&&a?`rgba(${a} / 0.4)`:Dn(r,.4)},oE={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},rP=e=>{const{classes:t,component:n,focusVisible:r,underline:a}=e,s={root:["root",`underline${Oe(a)}`,n==="button"&&"button",r&&"focusVisible"]};return _t(s,eP,t)},iP=Ae(Ye,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${Oe(n.underline)}`],n.component==="button"&&t.button]}})(Ht(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:t,ownerState:n})=>t==="always"&&n.color!=="inherit",style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter(Yi()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:Dn(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Dn(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:Dn(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${tP.focusVisible}`]:{outline:"auto"}}}]}))),pa=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiLink"}),a=ki(),{className:s,color:l="primary",component:f="a",onBlur:m,onFocus:p,TypographyClasses:g,underline:b="always",variant:S="inherit",sx:T,...C}=r,[E,A]=_.useState(!1),k=M=>{hb(M.target)||A(!1),m&&m(M)},L=M=>{hb(M.target)&&A(!0),p&&p(M)},O={...r,color:l,component:f,focusVisible:E,underline:b,variant:S},P=rP(O);return v.jsx(iP,{color:l,className:ze(P.root,s),classes:g,component:f,onBlur:k,onFocus:L,ref:n,ownerState:O,variant:S,...C,sx:[...oE[l]===void 0?[{color:l}]:[],...Array.isArray(T)?T:[T]],style:{...C.style,...b==="always"&&l!=="inherit"&&!oE[l]&&{"--Link-underlineColor":nP({theme:a,ownerState:O})}}})}),pl=_.createContext({});function aP(e){return wt("MuiList",e)}St("MuiList",["root","padding","dense","subheader"]);const oP=e=>{const{classes:t,disablePadding:n,dense:r,subheader:a}=e;return _t({root:["root",!n&&"padding",r&&"dense",a&&"subheader"]},aP,t)},sP=Ae("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),K5=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiList"}),{children:a,className:s,component:l="ul",dense:f=!1,disablePadding:m=!1,subheader:p,...g}=r,b=_.useMemo(()=>({dense:f}),[f]),S={...r,component:l,dense:f,disablePadding:m},T=oP(S);return v.jsx(pl.Provider,{value:b,children:v.jsxs(sP,{as:l,className:ze(T.root,s),ref:n,ownerState:S,...g,children:[p,a]})})});function lP(e){return wt("MuiListItem",e)}St("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const cP=St("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function uP(e){return wt("MuiListItemSecondaryAction",e)}St("MuiListItemSecondaryAction",["root","disableGutters"]);const fP=e=>{const{disableGutters:t,classes:n}=e;return _t({root:["root",t&&"disableGutters"]},uP,n)},dP=Ae("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),X5=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListItemSecondaryAction"}),{className:a,...s}=r,l=_.useContext(pl),f={...r,disableGutters:l.disableGutters},m=fP(f);return v.jsx(dP,{className:ze(m.root,a),ownerState:f,ref:n,...s})});X5.muiName="ListItemSecondaryAction";const hP=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]},pP=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:a,disablePadding:s,divider:l,hasSecondaryAction:f}=e;return _t({root:["root",r&&"dense",!a&&"gutters",!s&&"padding",l&&"divider",t==="flex-start"&&"alignItemsFlexStart",f&&"secondaryAction"],container:["container"]},lP,n)},mP=Ae("div",{name:"MuiListItem",slot:"Root",overridesResolver:hP})(Ht(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${cP.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),gP=Ae("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),yP=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListItem"}),{alignItems:a="center",children:s,className:l,component:f,components:m={},componentsProps:p={},ContainerComponent:g="li",ContainerProps:{className:b,...S}={},dense:T=!1,disableGutters:C=!1,disablePadding:E=!1,divider:A=!1,secondaryAction:k,slotProps:L={},slots:O={},...P}=r,M=_.useContext(pl),$=_.useMemo(()=>({dense:T||M.dense||!1,alignItems:a,disableGutters:C}),[a,M.dense,T,C]),B=_.useRef(null),H=_.Children.toArray(s),q=H.length&&L0(H[H.length-1],["ListItemSecondaryAction"]),j={...r,alignItems:a,dense:$.dense,disableGutters:C,disablePadding:E,divider:A,hasSecondaryAction:q},X=pP(j),K=Mr(B,n),ne=O.root||m.Root||mP,le=L.root||p.root||{},oe={className:ze(X.root,le.className,l),...P};let V=f||"li";return q?(V=!oe.component&&!f?"div":V,g==="li"&&(V==="li"?V="div":oe.component==="li"&&(oe.component="div")),v.jsx(pl.Provider,{value:$,children:v.jsxs(gP,{as:g,className:ze(X.container,b),ref:K,ownerState:j,...S,children:[v.jsx(ne,{...le,...!Q0(ne)&&{as:V,ownerState:{...j,...le.ownerState}},...oe,children:H}),H.pop()]})})):v.jsx(pl.Provider,{value:$,children:v.jsxs(ne,{...le,as:V,ref:K,...!Q0(ne)&&{ownerState:{...j,...le.ownerState}},...oe,children:[H,k&&v.jsx(X5,{children:k})]})})});function vP(e){return wt("MuiListItemIcon",e)}const sE=St("MuiListItemIcon",["root","alignItemsFlexStart"]),bP=e=>{const{alignItems:t,classes:n}=e;return _t({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},vP,n)},xP=Ae("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(Ht(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),wP=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListItemIcon"}),{className:a,...s}=r,l=_.useContext(pl),f={...r,alignItems:l.alignItems},m=bP(f);return v.jsx(xP,{className:ze(m.root,a),ownerState:f,ref:n,...s})});function SP(e){return wt("MuiListItemText",e)}const Ih=St("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),_P=e=>{const{classes:t,inset:n,primary:r,secondary:a,dense:s}=e;return _t({root:["root",n&&"inset",s&&"dense",r&&a&&"multiline"],primary:["primary"],secondary:["secondary"]},SP,t)},CP=Ae("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ih.primary}`]:t.primary},{[`& .${Ih.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${W3.root}:where(& .${Ih.primary})`]:{display:"block"},[`.${W3.root}:where(& .${Ih.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Z5=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiListItemText"}),{children:a,className:s,disableTypography:l=!1,inset:f=!1,primary:m,primaryTypographyProps:p,secondary:g,secondaryTypographyProps:b,slots:S={},slotProps:T={},...C}=r,{dense:E}=_.useContext(pl);let A=m??a,k=g;const L={...r,disableTypography:l,inset:f,primary:!!A,secondary:!!k,dense:E},O=_P(L),P={slots:S,slotProps:{primary:p,secondary:b,...T}},[M,$]=Lt("root",{className:ze(O.root,s),elementType:CP,externalForwardedProps:{...P,...C},ownerState:L,ref:n}),[B,H]=Lt("primary",{className:O.primary,elementType:Ye,externalForwardedProps:P,ownerState:L}),[q,j]=Lt("secondary",{className:O.secondary,elementType:Ye,externalForwardedProps:P,ownerState:L});return A!=null&&A.type!==Ye&&!l&&(A=v.jsx(B,{variant:E?"body2":"body1",component:H!=null&&H.variant?void 0:"span",...H,children:A})),k!=null&&k.type!==Ye&&!l&&(k=v.jsx(q,{variant:"body2",color:"textSecondary",...j,children:k})),v.jsxs(M,{...$,children:[A,k]})});function c2(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function lE(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function J5(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function b0(e,t,n,r,a,s){let l=!1,f=a(e,t,t?n:!1);for(;f;){if(f===e.firstChild){if(l)return!1;l=!0}const m=r?!1:f.disabled||f.getAttribute("aria-disabled")==="true";if(!f.hasAttribute("tabindex")||!J5(f,s)||m)f=a(e,f,n);else return f.focus(),!0}return!1}const EP=_.forwardRef(function(t,n){const{actions:r,autoFocus:a=!1,autoFocusItem:s=!1,children:l,className:f,disabledItemsFocusable:m=!1,disableListWrap:p=!1,onKeyDown:g,variant:b="selectedMenu",...S}=t,T=_.useRef(null),C=_.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ss(()=>{a&&T.current.focus()},[a]),_.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(O,{direction:P})=>{const M=!T.current.style.width;if(O.clientHeight<T.current.clientHeight&&M){const $=`${W5(va(O))}px`;T.current.style[P==="rtl"?"paddingLeft":"paddingRight"]=$,T.current.style.width=`calc(100% + ${$})`}return T.current}}),[]);const E=O=>{const P=T.current,M=O.key;if(O.ctrlKey||O.metaKey||O.altKey){g&&g(O);return}const B=Ri(P).activeElement;if(M==="ArrowDown")O.preventDefault(),b0(P,B,p,m,c2);else if(M==="ArrowUp")O.preventDefault(),b0(P,B,p,m,lE);else if(M==="Home")O.preventDefault(),b0(P,null,p,m,c2);else if(M==="End")O.preventDefault(),b0(P,null,p,m,lE);else if(M.length===1){const H=C.current,q=M.toLowerCase(),j=performance.now();H.keys.length>0&&(j-H.lastTime>500?(H.keys=[],H.repeating=!0,H.previousKeyMatched=!0):H.repeating&&q!==H.keys[0]&&(H.repeating=!1)),H.lastTime=j,H.keys.push(q);const X=B&&!H.repeating&&J5(B,H);H.previousKeyMatched&&(X||b0(P,B,!1,m,c2,H))?O.preventDefault():H.previousKeyMatched=!1}g&&g(O)},A=Mr(T,n);let k=-1;_.Children.forEach(l,(O,P)=>{if(!_.isValidElement(O)){k===P&&(k+=1,k>=l.length&&(k=-1));return}O.props.disabled||(b==="selectedMenu"&&O.props.selected||k===-1)&&(k=P),k===P&&(O.props.disabled||O.props.muiSkipListHighlight||O.type.muiSkipListHighlight)&&(k+=1,k>=l.length&&(k=-1))});const L=_.Children.map(l,(O,P)=>{if(P===k){const M={};return s&&(M.autoFocus=!0),O.props.tabIndex===void 0&&b==="selectedMenu"&&(M.tabIndex=0),_.cloneElement(O,M)}return O});return v.jsx(K5,{role:"menu",ref:A,className:f,onKeyDown:E,tabIndex:a?0:-1,...S,children:L})});function TP(e){return wt("MuiPopover",e)}St("MuiPopover",["root","paper"]);function cE(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function uE(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function fE(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Sv(e){return typeof e=="function"?e():e}const RP=e=>{const{classes:t}=e;return _t({root:["root"],paper:["paper"]},TP,t)},AP=Ae(Rg,{name:"MuiPopover",slot:"Root"})({}),Q5=Ae(Bc,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),sx=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:m="anchorEl",children:p,className:g,container:b,elevation:S=8,marginThreshold:T=16,open:C,PaperProps:E={},slots:A={},slotProps:k={},transformOrigin:L={vertical:"top",horizontal:"left"},TransitionComponent:O,transitionDuration:P="auto",TransitionProps:M={},disableScrollLock:$=!1,...B}=r,H=_.useRef(),q={...r,anchorOrigin:l,anchorReference:m,elevation:S,marginThreshold:T,transformOrigin:L,TransitionComponent:O,transitionDuration:P,TransitionProps:M},j=RP(q),X=_.useCallback(()=>{if(m==="anchorPosition")return f;const Be=Sv(s),He=(Be&&Be.nodeType===1?Be:Ri(H.current).body).getBoundingClientRect();return{top:He.top+cE(He,l.vertical),left:He.left+uE(He,l.horizontal)}},[s,l.horizontal,l.vertical,f,m]),K=_.useCallback(Be=>({vertical:cE(Be,L.vertical),horizontal:uE(Be,L.horizontal)}),[L.horizontal,L.vertical]),ne=_.useCallback(Be=>{const Xe={width:Be.offsetWidth,height:Be.offsetHeight},He=K(Xe);if(m==="none")return{top:null,left:null,transformOrigin:fE(He)};const Je=X();let ke=Je.top-He.vertical,De=Je.left-He.horizontal;const At=ke+Xe.height,Ze=De+Xe.width,zt=va(Sv(s)),ft=zt.innerHeight-T,Pt=zt.innerWidth-T;if(T!==null&&ke<T){const at=ke-T;ke-=at,He.vertical+=at}else if(T!==null&&At>ft){const at=At-ft;ke-=at,He.vertical+=at}if(T!==null&&De<T){const at=De-T;De-=at,He.horizontal+=at}else if(Ze>Pt){const at=Ze-Pt;De-=at,He.horizontal+=at}return{top:`${Math.round(ke)}px`,left:`${Math.round(De)}px`,transformOrigin:fE(He)}},[s,m,X,K,T]),[le,oe]=_.useState(C),V=_.useCallback(()=>{const Be=H.current;if(!Be)return;const Xe=ne(Be);Xe.top!==null&&Be.style.setProperty("top",Xe.top),Xe.left!==null&&(Be.style.left=Xe.left),Be.style.transformOrigin=Xe.transformOrigin,oe(!0)},[ne]);_.useEffect(()=>($&&window.addEventListener("scroll",V),()=>window.removeEventListener("scroll",V)),[s,$,V]);const Q=()=>{V()},Z=()=>{oe(!1)};_.useEffect(()=>{C&&V()}),_.useImperativeHandle(a,()=>C?{updatePosition:()=>{V()}}:null,[C,V]),_.useEffect(()=>{if(!C)return;const Be=Eg(()=>{V()}),Xe=va(Sv(s));return Xe.addEventListener("resize",Be),()=>{Be.clear(),Xe.removeEventListener("resize",Be)}},[s,C,V]);let ae=P;const U={slots:{transition:O,...A},slotProps:{transition:M,paper:E,...k}},[W,te]=Lt("transition",{elementType:gb,externalForwardedProps:U,ownerState:q,getSlotProps:Be=>({...Be,onEntering:(Xe,He)=>{var Je;(Je=Be.onEntering)==null||Je.call(Be,Xe,He),Q()},onExited:Xe=>{var He;(He=Be.onExited)==null||He.call(Be,Xe),Z()}}),additionalProps:{appear:!0,in:C}});P==="auto"&&!W.muiSupportAuto&&(ae=void 0);const de=b||(s?Ri(Sv(s)).body:void 0),[Ee,{slots:xe,slotProps:Re,...rt}]=Lt("root",{ref:n,elementType:AP,externalForwardedProps:{...U,...B},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:A.backdrop},slotProps:{backdrop:P5(typeof k.backdrop=="function"?k.backdrop(q):k.backdrop,{invisible:!0})},container:de,open:C},ownerState:q,className:ze(j.root,g)}),[Ke,tt]=Lt("paper",{ref:H,className:j.paper,elementType:Q5,externalForwardedProps:U,shouldForwardComponentProp:!0,additionalProps:{elevation:S,style:le?void 0:{opacity:0}},ownerState:q});return v.jsx(Ee,{...rt,...!Q0(Ee)&&{slots:xe,slotProps:Re,disableScrollLock:$},children:v.jsx(W,{...te,timeout:ae,children:v.jsx(Ke,{...tt,children:p})})})});function kP(e){return wt("MuiMenu",e)}St("MuiMenu",["root","paper","list"]);const OP={vertical:"top",horizontal:"right"},MP={vertical:"top",horizontal:"left"},DP=e=>{const{classes:t}=e;return _t({root:["root"],paper:["paper"],list:["list"]},kP,t)},jP=Ae(sx,{shouldForwardProp:e=>ba(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),IP=Ae(Q5,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),LP=Ae(EP,{name:"MuiMenu",slot:"List"})({outline:0}),__=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:s,className:l,disableAutoFocusItem:f=!1,MenuListProps:m={},onClose:p,open:g,PaperProps:b={},PopoverClasses:S,transitionDuration:T="auto",TransitionProps:{onEntering:C,...E}={},variant:A="selectedMenu",slots:k={},slotProps:L={},...O}=r,P=Zb(),M={...r,autoFocus:a,disableAutoFocusItem:f,MenuListProps:m,onEntering:C,PaperProps:b,transitionDuration:T,TransitionProps:E,variant:A},$=DP(M),B=a&&!f&&g,H=_.useRef(null),q=(ae,U)=>{H.current&&H.current.adjustStyleForScrollbar(ae,{direction:P?"rtl":"ltr"}),C&&C(ae,U)},j=ae=>{ae.key==="Tab"&&(ae.preventDefault(),p&&p(ae,"tabKeyDown"))};let X=-1;_.Children.map(s,(ae,U)=>{_.isValidElement(ae)&&(ae.props.disabled||(A==="selectedMenu"&&ae.props.selected||X===-1)&&(X=U))});const K={slots:k,slotProps:{list:m,transition:E,paper:b,...L}},ne=J0({elementType:k.root,externalSlotProps:L.root,ownerState:M,className:[$.root,l]}),[le,oe]=Lt("paper",{className:$.paper,elementType:IP,externalForwardedProps:K,shouldForwardComponentProp:!0,ownerState:M}),[V,Q]=Lt("list",{className:ze($.list,m.className),elementType:LP,shouldForwardComponentProp:!0,externalForwardedProps:K,getSlotProps:ae=>({...ae,onKeyDown:U=>{var W;j(U),(W=ae.onKeyDown)==null||W.call(ae,U)}}),ownerState:M}),Z=typeof K.slotProps.transition=="function"?K.slotProps.transition(M):K.slotProps.transition;return v.jsx(jP,{onClose:p,anchorOrigin:{vertical:"bottom",horizontal:P?"right":"left"},transformOrigin:P?OP:MP,slots:{root:k.root,paper:le,backdrop:k.backdrop,...k.transition&&{transition:k.transition}},slotProps:{root:ne,paper:oe,backdrop:typeof L.backdrop=="function"?L.backdrop(M):L.backdrop,transition:{...Z,onEntering:(...ae)=>{var U;q(...ae),(U=Z==null?void 0:Z.onEntering)==null||U.call(Z,...ae)}}},open:g,ref:n,transitionDuration:T,ownerState:M,...O,classes:S,children:v.jsx(V,{actions:H,autoFocus:a&&(X===-1||f),autoFocusItem:B,variant:A,...Q,children:s})})});function PP(e){return wt("MuiMenuItem",e)}const x0=St("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),NP=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},FP=e=>{const{disabled:t,dense:n,divider:r,disableGutters:a,selected:s,classes:l}=e,m=_t({root:["root",n&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",s&&"selected"]},PP,l);return{...l,...m}},BP=Ae(zc,{shouldForwardProp:e=>ba(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:NP})(Ht(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${x0.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${x0.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Dn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${x0.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Dn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Dn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${x0.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${x0.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${rE.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${rE.inset}`]:{marginLeft:52},[`& .${Ih.root}`]:{marginTop:0,marginBottom:0},[`& .${Ih.inset}`]:{paddingLeft:36},[`& .${sE.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${sE.root} svg`]:{fontSize:"1.25rem"}}}]}))),eR=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:s="li",dense:l=!1,divider:f=!1,disableGutters:m=!1,focusVisibleClassName:p,role:g="menuitem",tabIndex:b,className:S,...T}=r,C=_.useContext(pl),E=_.useMemo(()=>({dense:l||C.dense||!1,disableGutters:m}),[C.dense,l,m]),A=_.useRef(null);Ss(()=>{a&&A.current&&A.current.focus()},[a]);const k={...r,dense:E.dense,divider:f,disableGutters:m},L=FP(r),O=Mr(A,n);let P;return r.disabled||(P=b!==void 0?b:-1),v.jsx(pl.Provider,{value:E,children:v.jsx(BP,{ref:O,role:g,tabIndex:P,component:s,focusVisibleClassName:ze(L.focusVisible,p),className:ze(L.root,S),...T,ownerState:k,classes:L})})});function zP(e){return wt("MuiNativeSelect",e)}const C_=St("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),UP=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:s,error:l}=e,f={select:["select",n,r&&"disabled",a&&"multiple",l&&"error"],icon:["icon",`icon${Oe(n)}`,s&&"iconOpen",r&&"disabled"]};return _t(f,zP,t)},tR=Ae("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${C_.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),$P=Ae(tR,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ba,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${C_.multiple}`]:t.multiple}]}})({}),nR=Ae("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${C_.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),HP=Ae(nR,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Oe(n.variant)}`],n.open&&t.iconOpen]}})({}),VP=_.forwardRef(function(t,n){const{className:r,disabled:a,error:s,IconComponent:l,inputRef:f,variant:m="standard",...p}=t,g={...t,disabled:a,variant:m,error:s},b=UP(g);return v.jsxs(_.Fragment,{children:[v.jsx($P,{ownerState:g,className:ze(b.select,r),disabled:a,ref:f||n,...p}),t.multiple?null:v.jsx(HP,{as:l,ownerState:g,className:b.icon})]})});var dE;const WP=Ae("fieldset",{shouldForwardProp:ba})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),GP=Ae("legend",{shouldForwardProp:ba})(Ht(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function YP(e){const{children:t,classes:n,className:r,label:a,notched:s,...l}=e,f=a!=null&&a!=="",m={...e,notched:s,withLabel:f};return v.jsx(WP,{"aria-hidden":!0,className:r,ownerState:m,...l,children:v.jsx(GP,{ownerState:m,children:f?v.jsx("span",{children:a}):dE||(dE=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const qP=e=>{const{classes:t}=e,r=_t({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},q8,t);return{...t,...r}},KP=Ae(nx,{shouldForwardProp:e=>ba(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ex})(Ht(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${us.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${us.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${us.focused} .${us.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Yi()).map(([n])=>({props:{color:n},style:{[`&.${us.focused} .${us.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${us.error} .${us.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${us.disabled} .${us.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),XP=Ae(YP,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Ht(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),ZP=Ae(rx,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:tx})(Ht(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),E_=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:s=!1,inputComponent:l="input",label:f,multiline:m=!1,notched:p,slots:g={},slotProps:b={},type:S="text",...T}=r,C=qP(r),E=lp(),A=sp({props:r,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),k={...r,color:A.color||"primary",disabled:A.disabled,error:A.error,focused:A.focused,formControl:E,fullWidth:s,hiddenLabel:A.hiddenLabel,multiline:m,size:A.size,type:S},L=g.root??a.Root??KP,O=g.input??a.Input??ZP,[P,M]=Lt("notchedOutline",{elementType:XP,className:C.notchedOutline,shouldForwardComponentProp:!0,ownerState:k,externalForwardedProps:{slots:g,slotProps:b},additionalProps:{label:f!=null&&f!==""&&A.required?v.jsxs(_.Fragment,{children:[f," ","*"]}):f}});return v.jsx(x_,{slots:{root:L,input:O},slotProps:b,renderSuffix:$=>v.jsx(P,{...M,notched:typeof p<"u"?p:!!($.startAdornment||$.filled||$.focused)}),fullWidth:s,inputComponent:l,multiline:m,ref:n,type:S,...T,classes:{...C,notchedOutline:null}})});E_.muiName="Input";function rR(e){return wt("MuiSelect",e)}const w0=St("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var hE;const JP=Ae(tR,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${w0.select}`]:t.select},{[`&.${w0.select}`]:t[n.variant]},{[`&.${w0.error}`]:t.error},{[`&.${w0.multiple}`]:t.multiple}]}})({[`&.${w0.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),QP=Ae(nR,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Oe(n.variant)}`],n.open&&t.iconOpen]}})({}),eN=Ae("input",{shouldForwardProp:e=>L5(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function pE(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function tN(e){return e==null||typeof e=="string"&&!e.trim()}const nN=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:s,error:l}=e,f={select:["select",n,r&&"disabled",a&&"multiple",l&&"error"],icon:["icon",`icon${Oe(n)}`,s&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return _t(f,rR,t)},rN=_.forwardRef(function(t,n){var Ie;const{"aria-describedby":r,"aria-label":a,autoFocus:s,autoWidth:l,children:f,className:m,defaultOpen:p,defaultValue:g,disabled:b,displayEmpty:S,error:T=!1,IconComponent:C,inputRef:E,labelId:A,MenuProps:k={},multiple:L,name:O,onBlur:P,onChange:M,onClose:$,onFocus:B,onOpen:H,open:q,readOnly:j,renderValue:X,required:K,SelectDisplayProps:ne={},tabIndex:le,type:oe,value:V,variant:Q="standard",...Z}=t,[ae,U]=z3({controlled:V,default:g,name:"Select"}),[W,te]=z3({controlled:q,default:p,name:"Select"}),de=_.useRef(null),Ee=_.useRef(null),[xe,Re]=_.useState(null),{current:rt}=_.useRef(q!=null),[Ke,tt]=_.useState(),Be=Mr(n,E),Xe=_.useCallback(Le=>{Ee.current=Le,Le&&Re(Le)},[]),He=xe==null?void 0:xe.parentNode;_.useImperativeHandle(Be,()=>({focus:()=>{Ee.current.focus()},node:de.current,value:ae}),[ae]),_.useEffect(()=>{p&&W&&xe&&!rt&&(tt(l?null:He.clientWidth),Ee.current.focus())},[xe,l]),_.useEffect(()=>{s&&Ee.current.focus()},[s]),_.useEffect(()=>{if(!A)return;const Le=Ri(Ee.current).getElementById(A);if(Le){const mt=()=>{getSelection().isCollapsed&&Ee.current.focus()};return Le.addEventListener("click",mt),()=>{Le.removeEventListener("click",mt)}}},[A]);const Je=(Le,mt)=>{Le?H&&H(mt):$&&$(mt),rt||(tt(l?null:He.clientWidth),te(Le))},ke=Le=>{Le.button===0&&(Le.preventDefault(),Ee.current.focus(),Je(!0,Le))},De=Le=>{Je(!1,Le)},At=_.Children.toArray(f),Ze=Le=>{const mt=At.find(cn=>cn.props.value===Le.target.value);mt!==void 0&&(U(mt.props.value),M&&M(Le,mt))},zt=Le=>mt=>{let cn;if(mt.currentTarget.hasAttribute("tabindex")){if(L){cn=Array.isArray(ae)?ae.slice():[];const Qi=ae.indexOf(Le.props.value);Qi===-1?cn.push(Le.props.value):cn.splice(Qi,1)}else cn=Le.props.value;if(Le.props.onClick&&Le.props.onClick(mt),ae!==cn&&(U(cn),M)){const Qi=mt.nativeEvent||mt,wa=new Qi.constructor(Qi.type,Qi);Object.defineProperty(wa,"target",{writable:!0,value:{value:cn,name:O}}),M(wa,Le)}L||Je(!1,mt)}},ft=Le=>{j||[" ","ArrowUp","ArrowDown","Enter"].includes(Le.key)&&(Le.preventDefault(),Je(!0,Le))},Pt=xe!==null&&W,at=Le=>{!Pt&&P&&(Object.defineProperty(Le,"target",{writable:!0,value:{value:ae,name:O}}),P(Le))};delete Z["aria-invalid"];let Pe,rn;const kt=[];let sn=!1;(mb({value:ae})||S)&&(X?Pe=X(ae):sn=!0);const _n=At.map(Le=>{if(!_.isValidElement(Le))return null;let mt;if(L){if(!Array.isArray(ae))throw new Error(vl(2));mt=ae.some(cn=>pE(cn,Le.props.value)),mt&&sn&&kt.push(Le.props.children)}else mt=pE(ae,Le.props.value),mt&&sn&&(rn=Le.props.children);return _.cloneElement(Le,{"aria-selected":mt?"true":"false",onClick:zt(Le),onKeyUp:cn=>{cn.key===" "&&cn.preventDefault(),Le.props.onKeyUp&&Le.props.onKeyUp(cn)},role:"option",selected:mt,value:void 0,"data-value":Le.props.value})});sn&&(L?kt.length===0?Pe=null:Pe=kt.reduce((Le,mt,cn)=>(Le.push(mt),cn<kt.length-1&&Le.push(", "),Le),[]):Pe=rn);let hn=Ke;!l&&rt&&xe&&(hn=He.clientWidth);let ln;typeof le<"u"?ln=le:ln=b?null:0;const Vt=ne.id||(O?`mui-component-select-${O}`:void 0),an={...t,variant:Q,value:ae,open:Pt,error:T},je=nN(an),Rt={...k.PaperProps,...(Ie=k.slotProps)==null?void 0:Ie.paper},Ve=Tg();return v.jsxs(_.Fragment,{children:[v.jsx(JP,{as:"div",ref:Xe,tabIndex:ln,role:"combobox","aria-controls":Pt?Ve:void 0,"aria-disabled":b?"true":void 0,"aria-expanded":Pt?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[A,Vt].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":K?"true":void 0,"aria-invalid":T?"true":void 0,onKeyDown:ft,onMouseDown:b||j?null:ke,onBlur:at,onFocus:B,...ne,ownerState:an,className:ze(ne.className,je.select,m),id:Vt,children:tN(Pe)?hE||(hE=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):Pe}),v.jsx(eN,{"aria-invalid":T,value:Array.isArray(ae)?ae.join(","):ae,name:O,ref:de,"aria-hidden":!0,onChange:Ze,tabIndex:-1,disabled:b,className:je.nativeInput,autoFocus:s,required:K,...Z,ownerState:an}),v.jsx(QP,{as:C,className:je.icon,ownerState:an}),v.jsx(__,{id:`menu-${O||""}`,anchorEl:He,open:Pt,onClose:De,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...k,slotProps:{...k.slotProps,list:{"aria-labelledby":A,role:"listbox","aria-multiselectable":L?"true":void 0,disableListWrap:!0,id:Ve,...k.MenuListProps},paper:{...Rt,style:{minWidth:hn,...Rt!=null?Rt.style:null}}},children:_n})]})}),iN=e=>{const{classes:t}=e,r=_t({root:["root"]},rR,t);return{...t,...r}},T_={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>ba(e)&&e!=="variant"},aN=Ae(kg,T_)(""),oN=Ae(E_,T_)(""),sN=Ae(S_,T_)(""),iR=_.forwardRef(function(t,n){const r=Ct({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:s,classes:l={},className:f,defaultOpen:m=!1,displayEmpty:p=!1,IconComponent:g=X8,id:b,input:S,inputProps:T,label:C,labelId:E,MenuProps:A,multiple:k=!1,native:L=!1,onClose:O,onOpen:P,open:M,renderValue:$,SelectDisplayProps:B,variant:H="outlined",...q}=r,j=L?VP:rN,X=lp(),K=sp({props:r,muiFormControl:X,states:["variant","error"]}),ne=K.variant||H,le={...r,variant:ne,classes:l},oe=iN(le),{root:V,...Q}=oe,Z=S||{standard:v.jsx(aN,{ownerState:le}),outlined:v.jsx(oN,{label:C,ownerState:le}),filled:v.jsx(sN,{ownerState:le})}[ne],ae=Mr(n,Mf(Z));return v.jsx(_.Fragment,{children:_.cloneElement(Z,{inputComponent:j,inputProps:{children:s,error:K.error,IconComponent:g,variant:ne,type:void 0,multiple:k,...L?{id:b}:{autoWidth:a,defaultOpen:m,displayEmpty:p,labelId:E,MenuProps:A,onClose:O,onOpen:P,open:M,renderValue:$,SelectDisplayProps:{id:b,...B}},...T,classes:T?Pr(Q,T.classes):Q,...S?S.props.inputProps:{}},...(k&&L||p)&&ne==="outlined"?{notched:!0}:{},ref:ae,className:ze(Z.props.className,f,oe.root),...!S&&{variant:ne},...q})})});iR.muiName="Select";function lN(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:s}=e,l=y_();_.useEffect(()=>{if(!a)return;function k(L){L.defaultPrevented||L.key==="Escape"&&(r==null||r(L,"escapeKeyDown"))}return document.addEventListener("keydown",k),()=>{document.removeEventListener("keydown",k)}},[a,r]);const f=ya((k,L)=>{r==null||r(k,L)}),m=ya(k=>{!r||k==null||l.start(k,()=>{f(null,"timeout")})});_.useEffect(()=>(a&&m(t),l.clear),[a,t,m,l]);const p=k=>{r==null||r(k,"clickaway")},g=l.clear,b=_.useCallback(()=>{t!=null&&m(s??t*.5)},[t,s,m]),S=k=>L=>{const O=k.onBlur;O==null||O(L),b()},T=k=>L=>{const O=k.onFocus;O==null||O(L),g()},C=k=>L=>{const O=k.onMouseEnter;O==null||O(L),g()},E=k=>L=>{const O=k.onMouseLeave;O==null||O(L),b()};return _.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",b),window.addEventListener("blur",g),()=>{window.removeEventListener("focus",b),window.removeEventListener("blur",g)}},[n,a,b,g]),{getRootProps:(k={})=>{const L={...db(e),...db(k)};return{role:"presentation",...k,...L,onBlur:S(L),onFocus:T(L),onMouseEnter:C(L),onMouseLeave:E(L)}},onClickAway:p}}function cN(e){return wt("MuiSnackbarContent",e)}St("MuiSnackbarContent",["root","message","action"]);const uN=e=>{const{classes:t}=e;return _t({root:["root"],action:["action"],message:["message"]},cN,t)},fN=Ae(Bc,{name:"MuiSnackbarContent",slot:"Root"})(Ht(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=A5(e.palette.background.default,t);return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),dN=Ae("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),hN=Ae("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),pN=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiSnackbarContent"}),{action:a,className:s,message:l,role:f="alert",...m}=r,p=r,g=uN(p);return v.jsxs(fN,{role:f,square:!0,elevation:6,className:ze(g.root,s),ownerState:p,ref:n,...m,children:[v.jsx(dN,{className:g.message,ownerState:p,children:l}),a?v.jsx(hN,{className:g.action,ownerState:p,children:a}):null]})});function mN(e){return wt("MuiSnackbar",e)}St("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const gN=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Oe(n.vertical)}${Oe(n.horizontal)}`]};return _t(r,mN,t)},yN=Ae("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Oe(n.anchorOrigin.vertical)}${Oe(n.anchorOrigin.horizontal)}`]]}})(Ht(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),Og=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiSnackbar"}),a=ki(),s={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:l,anchorOrigin:{vertical:f,horizontal:m}={vertical:"bottom",horizontal:"left"},autoHideDuration:p=null,children:g,className:b,ClickAwayListenerProps:S,ContentProps:T,disableWindowBlurListener:C=!1,message:E,onBlur:A,onClose:k,onFocus:L,onMouseEnter:O,onMouseLeave:P,open:M,resumeHideDuration:$,slots:B={},slotProps:H={},TransitionComponent:q,transitionDuration:j=s,TransitionProps:{onEnter:X,onExited:K,...ne}={},...le}=r,oe={...r,anchorOrigin:{vertical:f,horizontal:m},autoHideDuration:p,disableWindowBlurListener:C,TransitionComponent:q,transitionDuration:j},V=gN(oe),{getRootProps:Q,onClickAway:Z}=lN({...oe}),[ae,U]=_.useState(!0),W=Je=>{U(!0),K&&K(Je)},te=(Je,ke)=>{U(!1),X&&X(Je,ke)},de={slots:{transition:q,...B},slotProps:{content:T,clickAwayListener:S,transition:ne,...H}},[Ee,xe]=Lt("root",{ref:n,className:[V.root,b],elementType:yN,getSlotProps:Q,externalForwardedProps:{...de,...le},ownerState:oe}),[Re,{ownerState:rt,...Ke}]=Lt("clickAwayListener",{elementType:DI,externalForwardedProps:de,getSlotProps:Je=>({onClickAway:(...ke)=>{var At;const De=ke[0];(At=Je.onClickAway)==null||At.call(Je,...ke),!(De!=null&&De.defaultMuiPrevented)&&Z(...ke)}}),ownerState:oe}),[tt,Be]=Lt("content",{elementType:pN,shouldForwardComponentProp:!0,externalForwardedProps:de,additionalProps:{message:E,action:l},ownerState:oe}),[Xe,He]=Lt("transition",{elementType:gb,externalForwardedProps:de,getSlotProps:Je=>({onEnter:(...ke)=>{var De;(De=Je.onEnter)==null||De.call(Je,...ke),te(...ke)},onExited:(...ke)=>{var De;(De=Je.onExited)==null||De.call(Je,...ke),W(...ke)}}),additionalProps:{appear:!0,in:M,timeout:j,direction:f==="top"?"down":"up"},ownerState:oe});return!M&&ae?null:v.jsx(Re,{...Ke,...B.clickAwayListener&&{ownerState:rt},children:v.jsx(Ee,{...xe,children:v.jsx(Xe,{...He,children:g||v.jsx(tt,{...Be})})})})}),vN=n7({createStyledComponent:Ae("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Ct({props:e,name:"MuiStack"})});function bN(e){return wt("MuiTab",e)}const Pa=St("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),xN=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:a,icon:s,label:l,selected:f,disabled:m}=e,p={root:["root",s&&l&&"labelIcon",`textColor${Oe(n)}`,r&&"fullWidth",a&&"wrapped",f&&"selected",m&&"disabled"],icon:["iconWrapper","icon"]};return _t(p,bN,t)},wN=Ae(zc,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Oe(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Pa.iconWrapper}`]:t.iconWrapper},{[`& .${Pa.icon}`]:t.icon}]}})(Ht(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Pa.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Pa.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Pa.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Pa.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Pa.selected}`]:{opacity:1},[`&.${Pa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Pa.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Pa.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Pa.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Pa.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),SN=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiTab"}),{className:a,disabled:s=!1,disableFocusRipple:l=!1,fullWidth:f,icon:m,iconPosition:p="top",indicator:g,label:b,onChange:S,onClick:T,onFocus:C,selected:E,selectionFollowsFocus:A,textColor:k="inherit",value:L,wrapped:O=!1,...P}=r,M={...r,disabled:s,disableFocusRipple:l,selected:E,icon:!!m,iconPosition:p,label:!!b,fullWidth:f,textColor:k,wrapped:O},$=xN(M),B=m&&b&&_.isValidElement(m)?_.cloneElement(m,{className:ze($.icon,m.props.className)}):m,H=j=>{!E&&S&&S(j,L),T&&T(j)},q=j=>{A&&!E&&S&&S(j,L),C&&C(j)};return v.jsxs(wN,{focusRipple:!l,className:ze($.root,a),ref:n,role:"tab","aria-selected":E,disabled:s,onClick:H,onFocus:q,ownerState:M,tabIndex:E?0:-1,...P,children:[p==="top"||p==="start"?v.jsxs(_.Fragment,{children:[B,b]}):v.jsxs(_.Fragment,{children:[b,B]}),g]})}),_N=Yn(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"})),CN=Yn(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}));function EN(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function TN(e,t,n,r={},a=()=>{}){const{ease:s=EN,duration:l=300}=r;let f=null;const m=t[e];let p=!1;const g=()=>{p=!0},b=S=>{if(p){a(new Error("Animation cancelled"));return}f===null&&(f=S);const T=Math.min(1,(S-f)/l);if(t[e]=s(T)*(n-m)+m,T>=1){requestAnimationFrame(()=>{a(null)});return}requestAnimationFrame(b)};return m===n?(a(new Error("Element already at target position")),g):(requestAnimationFrame(b),g)}const RN={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function AN(e){const{onChange:t,...n}=e,r=_.useRef(),a=_.useRef(null),s=()=>{r.current=a.current.offsetHeight-a.current.clientHeight};return Ss(()=>{const l=Eg(()=>{const m=r.current;s(),m!==r.current&&t(r.current)}),f=va(a.current);return f.addEventListener("resize",l),()=>{l.clear(),f.removeEventListener("resize",l)}},[t]),_.useEffect(()=>{s(),t(r.current)},[t]),v.jsx("div",{style:RN,...n,ref:a})}function kN(e){return wt("MuiTabScrollButton",e)}const ON=St("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),MN=e=>{const{classes:t,orientation:n,disabled:r}=e;return _t({root:["root",n,r&&"disabled"]},kN,t)},DN=Ae(zc,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${ON.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),jN=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiTabScrollButton"}),{className:a,slots:s={},slotProps:l={},direction:f,orientation:m,disabled:p,...g}=r,b=Zb(),S={isRtl:b,...r},T=MN(S),C=s.StartScrollButtonIcon??_N,E=s.EndScrollButtonIcon??CN,A=J0({elementType:C,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S}),k=J0({elementType:E,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:S});return v.jsx(DN,{component:"div",className:ze(T.root,a),ref:n,role:null,ownerState:S,tabIndex:null,...g,style:{...g.style,...m==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${b?-90:90}deg)`}},children:f==="left"?v.jsx(C,{...A}):v.jsx(E,{...k})})});function IN(e){return wt("MuiTabs",e)}const u2=St("MuiTabs",["root","vertical","list","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),mE=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,gE=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,_v=(e,t,n)=>{let r=!1,a=n(e,t);for(;a;){if(a===e.firstChild){if(r)return;r=!0}const s=a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||s)a=n(e,a);else{a.focus();return}}},LN=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:a,scrollableY:s,centered:l,scrollButtonsHideMobile:f,classes:m}=e;return _t({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",a&&"scrollableX",s&&"scrollableY"],list:["list","flexContainer",t&&"flexContainerVertical",t&&"vertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",f&&"scrollButtonsHideMobile"],scrollableX:[a&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},IN,m)},PN=Ae("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${u2.scrollButtons}`]:t.scrollButtons},{[`& .${u2.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(Ht(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${u2.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),NN=Ae("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),FN=Ae("div",{name:"MuiTabs",slot:"List",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.list,t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),BN=Ae("span",{name:"MuiTabs",slot:"Indicator"})(Ht(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),zN=Ae(AN)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),yE={},UN=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiTabs"}),a=ki(),s=Zb(),{"aria-label":l,"aria-labelledby":f,action:m,centered:p=!1,children:g,className:b,component:S="div",allowScrollButtonsMobile:T=!1,indicatorColor:C="primary",onChange:E,orientation:A="horizontal",ScrollButtonComponent:k,scrollButtons:L="auto",selectionFollowsFocus:O,slots:P={},slotProps:M={},TabIndicatorProps:$={},TabScrollButtonProps:B={},textColor:H="primary",value:q,variant:j="standard",visibleScrollbar:X=!1,...K}=r,ne=j==="scrollable",le=A==="vertical",oe=le?"scrollTop":"scrollLeft",V=le?"top":"left",Q=le?"bottom":"right",Z=le?"clientHeight":"clientWidth",ae=le?"height":"width",U={...r,component:S,allowScrollButtonsMobile:T,indicatorColor:C,orientation:A,vertical:le,scrollButtons:L,textColor:H,variant:j,visibleScrollbar:X,fixed:!ne,hideScrollbar:ne&&!X,scrollableX:ne&&!le,scrollableY:ne&&le,centered:p&&!ne,scrollButtonsHideMobile:!T},W=LN(U),te=J0({elementType:P.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:U}),de=J0({elementType:P.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:U}),[Ee,xe]=_.useState(!1),[Re,rt]=_.useState(yE),[Ke,tt]=_.useState(!1),[Be,Xe]=_.useState(!1),[He,Je]=_.useState(!1),[ke,De]=_.useState({overflow:"hidden",scrollbarWidth:0}),At=new Map,Ze=_.useRef(null),zt=_.useRef(null),ft={slots:P,slotProps:{indicator:$,scrollButton:B,...M}},Pt=()=>{const $e=Ze.current;let We;if($e){const vt=$e.getBoundingClientRect();We={clientWidth:$e.clientWidth,scrollLeft:$e.scrollLeft,scrollTop:$e.scrollTop,scrollWidth:$e.scrollWidth,top:vt.top,bottom:vt.bottom,left:vt.left,right:vt.right}}let ot;if($e&&q!==!1){const vt=zt.current.children;if(vt.length>0){const un=vt[At.get(q)];ot=un?un.getBoundingClientRect():null}}return{tabsMeta:We,tabMeta:ot}},at=ya(()=>{const{tabsMeta:$e,tabMeta:We}=Pt();let ot=0,vt;le?(vt="top",We&&$e&&(ot=We.top-$e.top+$e.scrollTop)):(vt=s?"right":"left",We&&$e&&(ot=(s?-1:1)*(We[vt]-$e[vt]+$e.scrollLeft)));const un={[vt]:ot,[ae]:We?We[ae]:0};if(typeof Re[vt]!="number"||typeof Re[ae]!="number")rt(un);else{const Gr=Math.abs(Re[vt]-un[vt]),Za=Math.abs(Re[ae]-un[ae]);(Gr>=1||Za>=1)&&rt(un)}}),Pe=($e,{animation:We=!0}={})=>{We?TN(oe,Ze.current,$e,{duration:a.transitions.duration.standard}):Ze.current[oe]=$e},rn=$e=>{let We=Ze.current[oe];le?We+=$e:We+=$e*(s?-1:1),Pe(We)},kt=()=>{const $e=Ze.current[Z];let We=0;const ot=Array.from(zt.current.children);for(let vt=0;vt<ot.length;vt+=1){const un=ot[vt];if(We+un[Z]>$e){vt===0&&(We=$e);break}We+=un[Z]}return We},sn=()=>{rn(-1*kt())},_n=()=>{rn(kt())},[hn,{onChange:ln,...Vt}]=Lt("scrollbar",{className:ze(W.scrollableX,W.hideScrollbar),elementType:zN,shouldForwardComponentProp:!0,externalForwardedProps:ft,ownerState:U}),an=_.useCallback($e=>{ln==null||ln($e),De({overflow:null,scrollbarWidth:$e})},[ln]),[je,Rt]=Lt("scrollButtons",{className:ze(W.scrollButtons,B.className),elementType:jN,externalForwardedProps:ft,ownerState:U,additionalProps:{orientation:A,slots:{StartScrollButtonIcon:P.startScrollButtonIcon||P.StartScrollButtonIcon,EndScrollButtonIcon:P.endScrollButtonIcon||P.EndScrollButtonIcon},slotProps:{startScrollButtonIcon:te,endScrollButtonIcon:de}}}),Ve=()=>{const $e={};$e.scrollbarSizeListener=ne?v.jsx(hn,{...Vt,onChange:an}):null;const ot=ne&&(L==="auto"&&(Ke||Be)||L===!0);return $e.scrollButtonStart=ot?v.jsx(je,{direction:s?"right":"left",onClick:sn,disabled:!Ke,...Rt}):null,$e.scrollButtonEnd=ot?v.jsx(je,{direction:s?"left":"right",onClick:_n,disabled:!Be,...Rt}):null,$e},Ie=ya($e=>{const{tabsMeta:We,tabMeta:ot}=Pt();if(!(!ot||!We)){if(ot[V]<We[V]){const vt=We[oe]+(ot[V]-We[V]);Pe(vt,{animation:$e})}else if(ot[Q]>We[Q]){const vt=We[oe]+(ot[Q]-We[Q]);Pe(vt,{animation:$e})}}}),Le=ya(()=>{ne&&L!==!1&&Je(!He)});_.useEffect(()=>{const $e=Eg(()=>{Ze.current&&at()});let We;const ot=Gr=>{Gr.forEach(Za=>{Za.removedNodes.forEach(Os=>{We==null||We.unobserve(Os)}),Za.addedNodes.forEach(Os=>{We==null||We.observe(Os)})}),$e(),Le()},vt=va(Ze.current);vt.addEventListener("resize",$e);let un;return typeof ResizeObserver<"u"&&(We=new ResizeObserver($e),Array.from(zt.current.children).forEach(Gr=>{We.observe(Gr)})),typeof MutationObserver<"u"&&(un=new MutationObserver(ot),un.observe(zt.current,{childList:!0})),()=>{$e.clear(),vt.removeEventListener("resize",$e),un==null||un.disconnect(),We==null||We.disconnect()}},[at,Le]),_.useEffect(()=>{const $e=Array.from(zt.current.children),We=$e.length;if(typeof IntersectionObserver<"u"&&We>0&&ne&&L!==!1){const ot=$e[0],vt=$e[We-1],un={root:Ze.current,threshold:.99},Gr=Ja=>{tt(!Ja[0].isIntersecting)},Za=new IntersectionObserver(Gr,un);Za.observe(ot);const Os=Ja=>{Xe(!Ja[0].isIntersecting)},Gc=new IntersectionObserver(Os,un);return Gc.observe(vt),()=>{Za.disconnect(),Gc.disconnect()}}},[ne,L,He,g==null?void 0:g.length]),_.useEffect(()=>{xe(!0)},[]),_.useEffect(()=>{at()}),_.useEffect(()=>{Ie(yE!==Re)},[Ie,Re]),_.useImperativeHandle(m,()=>({updateIndicator:at,updateScrollButtons:Le}),[at,Le]);const[mt,cn]=Lt("indicator",{className:ze(W.indicator,$.className),elementType:BN,externalForwardedProps:ft,ownerState:U,additionalProps:{style:Re}}),Qi=v.jsx(mt,{...cn});let wa=0;const Lf=_.Children.map(g,$e=>{if(!_.isValidElement($e))return null;const We=$e.props.value===void 0?wa:$e.props.value;At.set(We,wa);const ot=We===q;return wa+=1,_.cloneElement($e,{fullWidth:j==="fullWidth",indicator:ot&&!Ee&&Qi,selected:ot,selectionFollowsFocus:O,onChange:E,textColor:H,value:We,...wa===1&&q===!1&&!$e.props.tabIndex?{tabIndex:0}:{}})}),Rl=$e=>{if($e.altKey||$e.shiftKey||$e.ctrlKey||$e.metaKey)return;const We=zt.current,ot=Ri(We).activeElement;if(ot.getAttribute("role")!=="tab")return;let un=A==="horizontal"?"ArrowLeft":"ArrowUp",Gr=A==="horizontal"?"ArrowRight":"ArrowDown";switch(A==="horizontal"&&s&&(un="ArrowRight",Gr="ArrowLeft"),$e.key){case un:$e.preventDefault(),_v(We,ot,gE);break;case Gr:$e.preventDefault(),_v(We,ot,mE);break;case"Home":$e.preventDefault(),_v(We,null,mE);break;case"End":$e.preventDefault(),_v(We,null,gE);break}},Sa=Ve(),[bp,Pf]=Lt("root",{ref:n,className:ze(W.root,b),elementType:PN,externalForwardedProps:{...ft,...K,component:S},ownerState:U}),[Nf,Wc]=Lt("scroller",{ref:Ze,className:W.scroller,elementType:NN,externalForwardedProps:ft,ownerState:U,additionalProps:{style:{overflow:ke.overflow,[le?`margin${s?"Left":"Right"}`:"marginBottom"]:X?void 0:-ke.scrollbarWidth}}}),[Al,Ff]=Lt("list",{ref:zt,className:ze(W.list,W.flexContainer),elementType:FN,externalForwardedProps:ft,ownerState:U,getSlotProps:$e=>({...$e,onKeyDown:We=>{var ot;Rl(We),(ot=$e.onKeyDown)==null||ot.call($e,We)}})});return v.jsxs(bp,{...Pf,children:[Sa.scrollButtonStart,Sa.scrollbarSizeListener,v.jsxs(Nf,{...Wc,children:[v.jsx(Al,{"aria-label":l,"aria-labelledby":f,"aria-orientation":A==="vertical"?"vertical":null,role:"tablist",...Ff,children:Lf}),Ee&&Qi]}),Sa.scrollButtonEnd]})});function $N(e){return wt("MuiTextField",e)}St("MuiTextField",["root"]);const HN={standard:kg,filled:S_,outlined:E_},VN=e=>{const{classes:t}=e;return _t({root:["root"]},$N,t)},WN=Ae(PL,{name:"MuiTextField",slot:"Root"})({}),lx=_.forwardRef(function(t,n){const r=Ct({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:s=!1,children:l,className:f,color:m="primary",defaultValue:p,disabled:g=!1,error:b=!1,FormHelperTextProps:S,fullWidth:T=!1,helperText:C,id:E,InputLabelProps:A,inputProps:k,InputProps:L,inputRef:O,label:P,maxRows:M,minRows:$,multiline:B=!1,name:H,onBlur:q,onChange:j,onFocus:X,placeholder:K,required:ne=!1,rows:le,select:oe=!1,SelectProps:V,slots:Q={},slotProps:Z={},type:ae,value:U,variant:W="outlined",...te}=r,de={...r,autoFocus:s,color:m,disabled:g,error:b,fullWidth:T,multiline:B,required:ne,select:oe,variant:W},Ee=VN(de),xe=Tg(E),Re=C&&xe?`${xe}-helper-text`:void 0,rt=P&&xe?`${xe}-label`:void 0,Ke=HN[W],tt={slots:Q,slotProps:{input:L,inputLabel:A,htmlInput:k,formHelperText:S,select:V,...Z}},Be={},Xe=tt.slotProps.inputLabel;W==="outlined"&&(Xe&&typeof Xe.shrink<"u"&&(Be.notched=Xe.shrink),Be.label=P),oe&&((!V||!V.native)&&(Be.id=void 0),Be["aria-describedby"]=void 0);const[He,Je]=Lt("root",{elementType:WN,shouldForwardComponentProp:!0,externalForwardedProps:{...tt,...te},ownerState:de,className:ze(Ee.root,f),ref:n,additionalProps:{disabled:g,error:b,fullWidth:T,required:ne,color:m,variant:W}}),[ke,De]=Lt("input",{elementType:Ke,externalForwardedProps:tt,additionalProps:Be,ownerState:de}),[At,Ze]=Lt("inputLabel",{elementType:QL,externalForwardedProps:tt,ownerState:de}),[zt,ft]=Lt("htmlInput",{elementType:"input",externalForwardedProps:tt,ownerState:de}),[Pt,at]=Lt("formHelperText",{elementType:zL,externalForwardedProps:tt,ownerState:de}),[Pe,rn]=Lt("select",{elementType:iR,externalForwardedProps:tt,ownerState:de}),kt=v.jsx(ke,{"aria-describedby":Re,autoComplete:a,autoFocus:s,defaultValue:p,fullWidth:T,multiline:B,name:H,rows:le,maxRows:M,minRows:$,type:ae,value:U,id:xe,inputRef:O,onBlur:q,onChange:j,onFocus:X,placeholder:K,inputProps:ft,slots:{input:Q.htmlInput?zt:void 0},...De});return v.jsxs(He,{...Je,children:[P!=null&&P!==""&&v.jsx(At,{htmlFor:xe,id:rt,...Ze,children:P}),oe?v.jsx(Pe,{"aria-describedby":Re,id:xe,labelId:rt,value:U,input:kt,...rn,children:l}):kt,C&&v.jsx(Pt,{id:Re,...at,children:C})]})}),cx=T5({themeId:yg});/*! js-cookie v3.0.5 | MIT */function Cv(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var GN={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function iS(e,t){function n(a,s,l){if(!(typeof document>"u")){l=Cv({},t,l),typeof l.expires=="number"&&(l.expires=new Date(Date.now()+l.expires*864e5)),l.expires&&(l.expires=l.expires.toUTCString()),a=encodeURIComponent(a).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var f="";for(var m in l)l[m]&&(f+="; "+m,l[m]!==!0&&(f+="="+l[m].split(";")[0]));return document.cookie=a+"="+e.write(s,a)+f}}function r(a){if(!(typeof document>"u"||arguments.length&&!a)){for(var s=document.cookie?document.cookie.split("; "):[],l={},f=0;f<s.length;f++){var m=s[f].split("="),p=m.slice(1).join("=");try{var g=decodeURIComponent(m[0]);if(l[g]=e.read(p,g),a===g)break}catch{}}return a?l[a]:l}}return Object.create({set:n,get:r,remove:function(a,s){n(a,"",Cv({},s,{expires:-1}))},withAttributes:function(a){return iS(this.converter,Cv({},this.attributes,a))},withConverter:function(a){return iS(Cv({},this.converter,a),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var Ev=iS(GN,{path:"/"});const YN=Yn(v.jsx("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"})),vE=Yn([v.jsx("circle",{cx:"10",cy:"8",r:"4"},"0"),v.jsx("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49q-.48-.405-1.08-.63L18 11h-2l-.3 1.49q-.6.225-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49q.48.405 1.08.63L16 21h2l.3-1.49q.6-.225 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")]),bE=Yn(v.jsx("path",{d:"M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z"})),xE=Yn(v.jsx("path",{d:"M12.16 3h-.32L9.21 8.25h5.58zm4.3 5.25h5.16L19 3h-5.16zm4.92 1.5h-8.63V20.1zM11.25 20.1V9.75H2.62zM7.54 8.25 10.16 3H5L2.38 8.25z"})),yb=()=>v.jsxs("svg",{width:"210",height:"28",viewBox:"0 0 242 45",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[v.jsxs("g",{clipPath:"url(#clip0_2838_470)",children:[v.jsx("path",{d:"M84.9781 40.9748V4.00049H101.275V9.27897H91.127V19.587H99.0755V24.8654H91.127V40.9748H84.9531H84.9781Z",fill:"white"}),v.jsx("path",{d:"M114.223 40.9753C113.948 40.5022 113.823 39.4316 113.773 37.8131C112.648 40.303 110.648 41.523 107.724 41.523C103.925 41.523 101.5 38.9336 101.5 34.7506C101.5 30.5677 103.4 28.1027 108.399 25.7623C110.473 24.8161 111.773 24.119 112.273 23.6957C112.773 23.2226 113.048 22.65 113.048 21.903V21.3801C113.048 19.3136 112.273 18.3176 110.648 18.3176C108.849 18.3176 107.949 19.3634 107.949 21.4299V22.4259H102.35V21.7287C102.35 16.4502 105.274 13.4873 110.698 13.4873C116.522 13.4873 118.997 16.2759 118.997 22.3512V33.182C118.997 36.618 119.222 39.2075 119.672 40.9504H114.248L114.223 40.9753ZM113.048 32.211V27.6048C112.773 27.9284 111.748 28.6007 110.123 29.6215C108.324 30.6673 107.424 32.0616 107.424 33.8045C107.424 35.7715 108.274 36.7176 109.948 36.7176C112.023 36.7176 113.023 35.2486 113.023 32.2359L113.048 32.211Z",fill:"white"}),v.jsx("path",{d:"M122.121 22.1769C122.121 16.6245 125.196 13.5122 130.819 13.5122C136.443 13.5122 139.293 16.7241 139.293 22.1769V23.8202H133.569V21.654C133.569 19.5376 132.669 18.4919 130.819 18.4919C128.97 18.4919 128.07 19.5376 128.07 21.654V33.3812C128.07 35.4976 128.97 36.5433 130.819 36.5433C132.669 36.5433 133.569 35.4976 133.569 33.3812V30.6922H139.293V32.8583C139.293 38.3111 136.443 41.523 130.819 41.523C125.196 41.523 122.121 38.4107 122.121 32.8583V22.1769Z",fill:"white"}),v.jsx("path",{d:"M159.29 28.7252H147.643V33.2567C147.643 35.4229 148.642 36.5433 150.617 36.5433C152.592 36.5433 153.592 35.4229 153.592 33.2567V32.2608H159.315V32.7339C159.315 38.3858 156.191 41.4981 150.517 41.4981C144.843 41.4981 141.719 38.3858 141.719 32.7339V22.2765C141.719 16.6245 144.868 13.5122 150.517 13.5122C156.166 13.5122 159.315 16.6245 159.315 22.2765V28.7252H159.29ZM147.643 24.2933H153.467V21.7536C153.467 19.5874 152.517 18.467 150.542 18.467C148.567 18.467 147.618 19.5874 147.618 21.7536V24.2933H147.643Z",fill:"white"}),v.jsx("path",{d:"M161.289 32.2104V30.094H167.113V32.6337C167.113 34.9991 168.188 36.2191 170.312 36.2191C172.437 36.2191 173.562 34.9991 173.562 32.5092C173.562 30.9655 173.162 29.6459 172.387 28.5005C171.662 27.3303 170.262 25.9111 168.188 24.218C165.663 22.1016 163.864 20.2093 162.814 18.4664C161.814 16.7235 161.289 14.8313 161.289 12.6651C161.289 6.78904 164.488 3.47754 170.487 3.47754C176.486 3.47754 179.461 6.81394 179.461 12.7647V14.3084H173.637V12.4161C173.637 9.97605 172.637 8.78092 170.562 8.78092C168.488 8.78092 167.413 9.95115 167.413 12.3165C167.413 13.6361 167.813 14.906 168.588 16.0264C169.363 17.1468 170.762 18.566 172.837 20.2591C175.411 22.3755 177.211 24.3176 178.161 26.0605C179.161 27.8034 179.686 29.8202 179.686 32.1357C179.686 38.211 176.436 41.5474 170.387 41.5474C164.338 41.5474 161.314 38.211 161.314 32.2602L161.289 32.2104Z",fill:"white"}),v.jsx("path",{d:"M199.357 28.7252H187.709V33.2567C187.709 35.4229 188.709 36.5433 190.684 36.5433C192.658 36.5433 193.658 35.4229 193.658 33.2567V32.2608H199.382V32.7339C199.382 38.3858 196.257 41.4981 190.584 41.4981C184.91 41.4981 181.785 38.3858 181.785 32.7339V22.2765C181.785 16.6245 184.935 13.5122 190.584 13.5122C196.232 13.5122 199.382 16.6245 199.382 22.2765V28.7252H199.357ZM187.709 24.2933H193.533V21.7536C193.533 19.5874 192.583 18.467 190.609 18.467C188.634 18.467 187.684 19.5874 187.684 21.7536V24.2933H187.709Z",fill:"white"}),v.jsx("path",{d:"M219.58 28.7252H207.932V33.2567C207.932 35.4229 208.932 36.5433 210.906 36.5433C212.881 36.5433 213.881 35.4229 213.881 33.2567V32.2608H219.605V32.7339C219.605 38.3858 216.48 41.4981 210.806 41.4981C205.132 41.4981 202.008 38.3858 202.008 32.7339V22.2765C202.008 16.6245 205.157 13.5122 210.806 13.5122C216.455 13.5122 219.605 16.6245 219.605 22.2765V28.7252H219.58ZM207.932 24.2933H213.756V21.7536C213.756 19.5874 212.806 18.467 210.831 18.467C208.857 18.467 207.907 19.5874 207.907 21.7536V24.2933H207.932Z",fill:"white"}),v.jsx("path",{d:"M235.498 40.9748L231.024 29.8202L228.625 33.4554V40.9499H222.676V4.00049H228.625V25.3385L235.248 14.0346H241.572L234.949 23.9691L241.897 40.9748H235.498Z",fill:"white"}),v.jsx("path",{d:"M46.4023 0.166016C55.3757 3.60201 61.7745 12.2916 61.7745 22.5C61.7745 32.7084 55.3757 41.3979 46.4023 44.8339C59.2749 42.4188 70.2479 34.6754 76.9716 23.969C77.5215 23.0975 77.5215 21.9522 76.9716 21.0559C70.2479 10.3246 59.2749 2.58117 46.4023 0.166016Z",fill:"#12B981"}),v.jsx("path",{d:"M16.2151 22.5C16.2151 12.2916 22.6139 3.60201 31.5872 0.166016C18.7146 2.58117 7.74164 10.3246 1.01789 21.031C0.467994 21.9024 0.467994 23.0477 1.01789 23.9441C7.74164 34.6504 18.7396 42.4188 31.5872 44.809C22.6139 41.373 16.2151 32.6835 16.2151 22.4751V22.5Z",fill:"#12B981"}),v.jsxs("g",{clipPath:"url(#clip1_2838_470)",children:[v.jsx("path",{d:"M36.9336 29.3477C36.9826 29.3696 37.0383 29.3916 37.0995 29.4109C37.1852 29.4383 37.2655 29.47 37.3403 29.5071C37.2655 29.4713 37.1852 29.4397 37.0995 29.4122C37.0383 29.393 36.9826 29.371 36.9336 29.3477Z",fill:"white"}),v.jsx("path",{d:"M38.6147 16.2622C38.4012 16.5302 38.1754 16.7871 37.9414 17.0372C38.1754 16.7871 38.3998 16.5302 38.6147 16.2622Z",fill:"white"}),v.jsx("path",{d:"M41.3206 6.43115H41.3219C41.311 6.46573 41.3 6.49755 41.2891 6.52659C41.2986 6.49616 41.3096 6.46573 41.3206 6.43115Z",fill:"white"}),v.jsx("path",{d:"M39.037 3.82715C40.0722 3.82715 41.0869 3.91372 42.0745 4.08136L41.3658 6.30058L41.5018 5.87597C40.3565 7.11407 39.2193 8.76439 38.7296 10.3295C38.4616 11.1829 38.2004 12.028 37.655 12.7549C36.7817 13.9174 35.6254 14.7006 34.3345 15.2929C33.2599 15.7848 32.1472 16.1929 31.078 16.6972C29.7178 17.3403 29.5505 18.2349 30.4959 19.4194C30.8142 19.8165 31.1189 20.2288 31.3855 20.6616C31.731 21.2236 31.6208 21.7884 31.1161 22.2061C30.9162 22.3724 30.6917 22.5084 30.47 22.6445C29.9572 22.9578 29.7735 23.3961 29.949 23.9801C30.0415 24.2866 30.1721 24.5806 30.2905 24.8912C29.7368 25.0629 29.3369 25.4037 29.0526 25.8805C28.7669 26.3601 28.8241 26.6349 29.2566 26.9895C29.8837 27.5034 29.9966 28.097 29.5681 28.7923C29.2798 29.2595 28.9438 29.6965 28.6568 30.1651C28.2732 30.7889 28.0147 31.454 28.1671 32.2125C28.4146 33.4465 29.1247 34.385 30.0864 35.1298C31.5174 36.2387 33.1851 36.8695 34.8678 37.4672C35.4894 37.6871 36.1274 37.9001 36.6905 38.234C37.4727 38.6984 37.9501 39.4679 38.3269 40.291C38.4045 40.4614 38.4766 40.6332 38.5419 40.8063C28.6595 40.5411 20.7305 32.3664 20.7305 22.3202C20.7305 12.2739 28.9261 3.82715 39.037 3.82715Z",fill:"white"}),v.jsx("path",{d:"M37.0995 29.4109C37.0383 29.3916 36.9826 29.3696 36.9336 29.3477C36.9826 29.371 37.0383 29.393 37.0995 29.4122C37.1852 29.4397 37.2655 29.4713 37.3403 29.5071C37.2655 29.47 37.1852 29.4383 37.0995 29.4109Z",fill:"#606060"}),v.jsx("path",{d:"M42.0744 4.08154L41.3657 6.30076L41.3236 6.43268C41.3127 6.46566 41.3018 6.49726 41.2909 6.52612C41.2814 6.55635 41.2719 6.58383 41.2624 6.60994C41.2093 6.76659 41.1753 6.86553 41.1427 6.96584C40.7182 8.28775 40.5237 9.64677 40.5115 11.0333C40.4979 12.6231 40.064 14.0797 39.2151 15.4209C39.0669 15.6558 38.9077 15.8826 38.7404 16.0997C38.6982 16.1546 38.6561 16.2082 38.6139 16.2618C38.5064 16.3951 38.3976 16.527 38.2847 16.6562C38.1718 16.7854 38.0576 16.9118 37.9406 17.0368C37.8481 17.1358 37.7529 17.2347 37.6576 17.3323C37.2115 17.7871 36.7422 18.2227 36.2783 18.6624C36.0063 18.918 35.7342 19.1791 35.4812 19.4567C35.4431 19.4979 35.4064 19.5405 35.3697 19.5831C35.2962 19.6669 35.2241 19.7535 35.1547 19.8401C35.1194 19.884 35.0867 19.9294 35.0527 19.9733C34.665 20.4969 34.7698 21.0039 35.254 21.4382C35.4282 21.5934 35.624 21.724 35.8117 21.8641C36.3001 22.231 36.8156 22.5663 37.2672 22.9744C37.6794 23.3468 37.7134 23.8539 37.4713 24.3472C37.3407 24.6152 37.1652 24.8666 36.9789 25.0988C36.5205 25.6691 36.5041 25.9742 36.9598 26.5568C37.104 26.7409 37.2713 26.9086 37.4373 27.0748C37.5828 27.2205 37.6481 27.3318 37.4169 27.4665C36.968 27.7289 36.7803 28.1741 36.6619 28.6551C36.5953 28.9327 36.6238 29.1141 36.7721 29.2446C36.7939 29.2638 36.8197 29.2817 36.8456 29.2996C36.8728 29.316 36.9027 29.3325 36.9353 29.3477C36.9843 29.3696 37.0401 29.3916 37.1013 29.4109C37.187 29.4383 37.2672 29.4699 37.3421 29.5071C37.4563 29.562 37.5597 29.6252 37.6508 29.6967C37.6808 29.72 37.7107 29.7448 37.7379 29.7723C38.1065 30.1103 38.2534 30.6064 38.1256 31.1794C38.0263 31.626 37.8862 32.0616 37.7733 32.5054C37.5243 33.4879 37.5162 34.4429 38.2167 35.2605C38.8057 35.9476 39.5226 36.5275 40.3986 36.7102C41.5249 36.9438 42.6825 37.0304 43.8292 37.1417C44.0972 37.1678 44.3665 37.1857 44.6372 37.2022C44.9419 37.22 45.2466 37.2365 45.5513 37.2599H45.5635C45.6411 37.2654 45.7172 37.2723 45.7948 37.2791C45.8301 37.2819 45.8642 37.2846 45.8995 37.2887C45.973 37.2956 46.0478 37.3025 46.1212 37.3107C46.3008 37.33 46.479 37.3547 46.6572 37.3849C46.7021 37.3918 46.747 37.4001 46.7905 37.4083C46.8177 37.4124 46.8449 37.4179 46.8708 37.4234C46.9102 37.4303 46.9483 37.4385 46.9864 37.4468C47.034 37.4564 47.0816 37.466 47.1278 37.4784C47.1755 37.4894 47.2217 37.5004 47.2693 37.5127C47.5523 37.5856 47.8325 37.6776 48.11 37.7985C48.1222 37.804 48.1358 37.8095 48.148 37.8164C48.1603 37.8219 48.1725 37.8288 48.1861 37.8343C48.2732 37.8769 48.431 37.9552 48.6377 38.0624C48.6405 38.0624 48.6418 38.0638 48.6445 38.0651C53.8639 34.8071 57.3435 28.9739 57.3435 22.3204C57.3435 13.1535 50.7394 5.54224 42.0744 4.08154ZM43.1218 15.517C42.5165 15.1996 42.1669 14.5675 42.1669 13.9176C42.1669 13.6414 42.2295 13.361 42.3642 13.1L43.938 13.9258L45.5132 14.7503C45.0657 15.6229 43.9856 15.9691 43.1218 15.517Z",fill:"white"})]})]}),v.jsxs("defs",{children:[v.jsx("clipPath",{id:"clip0_2838_470",children:v.jsx("rect",{width:"241.28",height:"44.6679",fill:"white",transform:"translate(0.59375 0.166016)"})}),v.jsx("clipPath",{id:"clip1_2838_470",children:v.jsx("rect",{width:"36.6131",height:"36.9792",fill:"white",transform:"translate(20.7305 3.82715)"})})]})]}),aR=({open:e,anchorEl:t,token:n,setToken:r,onClose:a,onApply:s,onBuy:l})=>{const f=n.length===11||n.length===12;return v.jsxs(sx,{open:e,anchorEl:t,onClose:a,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{sx:{mt:1,p:2,backgroundColor:"#151D2C",border:"1px solid #19222F",borderRadius:"12px",minWidth:280,color:"#FFF"}},children:[v.jsx(Ye,{sx:{mb:1,fontWeight:600},children:"Profile ID"}),v.jsx(lx,{fullWidth:!0,variant:"outlined",size:"small",value:n,onChange:m=>r(m.target.value),placeholder:"Input Profile ID",InputProps:{sx:{backgroundColor:"#1A1A1F",color:"#FFF",borderRadius:"8px","& .MuiOutlinedInput-notchedOutline":{borderColor:"#444"},"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:"#666"}}}}),v.jsxs(ce,{sx:{display:"flex",justifyContent:"flex-end",mt:2,gap:1},children:[v.jsx(qi,{variant:"contained",size:"small",onClick:s,disabled:!f,sx:{color:"#FFFFFF",backgroundColor:"#12B981",textTransform:"none",fontWeight:600,"&:hover":{backgroundColor:"#0fa66c"},"&.Mui-disabled":{backgroundColor:"#12B98140",color:"#FFFFFF40"}},children:"Apply"}),v.jsx(qi,{variant:"outlined",size:"small",onClick:l,sx:{textTransform:"none",borderColor:"#00A36D",backgroundColor:"#151D2C",color:"#12B981"},children:"Get Now"})]})]})};aR.propTypes={open:Wr.bool.isRequired,anchorEl:Wr.any,token:Wr.string.isRequired,setToken:Wr.func.isRequired,onClose:Wr.func.isRequired,onApply:Wr.func.isRequired,onBuy:Wr.func.isRequired};const nn={FACE_STANDARD:0,FACE_PRO:1,NAME_STANDARD:2,NAME_PRO:3,EMAIL_STANDARD:4,EMAIL_PRO:5,PHONE_STANDARD:6,PHONE_PRO:7,IMAGE_STANDARD:8,IMAGE_PRO:9,VIDEO_EFFECT_STANDARD:12,VIDEO_EFFECT_PRO:13},qN=e=>{switch(e){case nn.FACE_STANDARD:return"Standard Face Search";case nn.FACE_PRO:return"Premium Face Search";case nn.NAME_STANDARD:return"Standard Name Search";case nn.NAME_PRO:return"Premium Name Search";case nn.EMAIL_STANDARD:return"Standard Email Search";case nn.EMAIL_PRO:return"Premium Email Search";case nn.PHONE_STANDARD:return"Standard Phone Search";case nn.PHONE_PRO:return"Premium Phone Search";case nn.IMAGE_STANDARD:return"Standard Image Search";case nn.IMAGE_PRO:return"Premium Image Search";case nn.VIDEO_EFFECT_STANDARD:return"Video Effect";case nn.VIDEO_EFFECT_PRO:return"Video Effect";default:return"Unknown Search Type"}},KN=e=>e<60?`${Math.floor(e)}s ago`:e<3600?`${Math.floor(e/60)}m ago`:e<86400?`${Math.floor(e/3600)}h ago`:`${Math.floor(e/86400)}d ago`,oR=({open:e,anchorEl:t,onClose:n,history:r=[],onSelect:a})=>v.jsx(sx,{open:e,anchorEl:t,onClose:n,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},PaperProps:{sx:{mt:1,p:2,backgroundColor:"#151D2C",border:"1px solid #19222F",borderRadius:"12px",minWidth:250,color:"#FFF"}},children:v.jsxs(ce,{children:[v.jsx(Ye,{variant:"subtitle1",sx:{fontWeight:600,fontSize:"16px",mb:1},children:"Search History"}),v.jsx(tp,{sx:{borderColor:"#00A36D",mb:1}}),r.length===0?v.jsx(ce,{sx:{fontSize:"14px",color:"#BBB",mb:1},children:"No recent searches."}):v.jsx(ce,{display:"flex",flexDirection:"column",alignItems:"flex-start",sx:{maxHeight:400,overflowY:"auto",pr:1,"&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:"#aaa",borderRadius:"4px"},scrollbarColor:"#aaa transparent",scrollbarWidth:"thin"},children:[...r].sort((s,l)=>s.seconds_ago-l.seconds_ago).map((s,l)=>v.jsxs(zc,{onClick:()=>a==null?void 0:a(s.session_id),sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",width:"100%",textAlign:"left",mb:1.2,gap:1,px:1,py:.5,borderRadius:"8px","&:hover":{backgroundColor:"#1F2A3E"}},children:[v.jsx(iI,{src:`data:image/jpeg;base64,${s.image}`,alt:"history-image",sx:{width:36,height:36}}),v.jsxs(ce,{children:[v.jsx(Ye,{sx:{fontSize:"14px",fontWeight:500},children:qN(s.search_type)}),v.jsx(Ye,{sx:{fontSize:"12px",color:"#BBB"},children:KN(s.seconds_ago)})]})]},s.session_id||l))})]})});oR.propTypes={open:Wr.bool.isRequired,anchorEl:Wr.any,onClose:Wr.func.isRequired,history:Wr.array,onSelect:Wr.func};const sR=({open:e,anchorEl:t,onClose:n,message:r,onClick:a})=>v.jsx(sx,{open:e,anchorEl:t,onClose:n,disableRestoreFocus:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{sx:{mt:1.5,px:2,py:1,backgroundColor:"#FFEBEE",border:"1px solid #EF9A9A",color:"#C62828",borderRadius:"8px",maxWidth:240,fontSize:"14px",position:"relative",cursor:"pointer","&::before":{content:'""',position:"absolute",top:-8,left:"calc(50% - 6px)",width:0,height:0,borderLeft:"6px solid transparent",borderRight:"6px solid transparent",borderBottom:"8px solid #FFEBEE"}},onClick:a},children:v.jsx(Ye,{sx:{fontWeight:500},children:r})});sR.propTypes={open:Wr.bool.isRequired,anchorEl:Wr.any,onClose:Wr.func.isRequired,message:Wr.string.isRequired,onClick:Wr.func};const XN=({onTokenChanged:e,onHistorySelected:t,profile:n,isEmbed:r})=>{const[a,s]=_.useState(null),[l,f]=_.useState(null),[m,p]=_.useState(""),[g,b]=_.useState(0),[S,T]=_.useState([]),[C,E]=_.useState(!1),[A,k]=_.useState(null),L=!!A,O=_.useRef(null),P=_.useRef(null),M=_l(),$=Sl(),B=!!a,H=ki(),q=cx(H.breakpoints.down("md"));_.useEffect(()=>{let U=!1;n!=null&&n.token&&p(n.token),b((n==null?void 0:n.credits)||0),n!=null&&n.history&&(T(n.history),n.history.length>0&&n.pageMode===0&&n.history[n.history.length-1].seconds_ago<86400&&(U=!0,s(P.current),f("history"))),n.token===""&&n.pageMode===0&&!U?E(!0):E(!1)},[n]);const j=[{label:"Face Search",path:"/face-search"},{label:"Image Search",path:"/image-search"},{label:"Social Name Search",path:"/name-search"},{label:"Video Effect",path:"/video-effect"},{label:"Pricing",path:"/pricing"}],X=U=>{s(U.currentTarget),f("premium")},K=U=>{s(U.currentTarget),f("history")},ne=()=>{s(null),f(null)},le=()=>{e({tokenValue:m}),ne()},oe=()=>{ne(),M("/pricing")},V=()=>{E(!1),M("/pricing")},Q=async U=>{try{ne(),t(U)}catch(W){console.error("Error selecting history item:",W)}},Z=U=>{k(U.currentTarget)},ae=()=>{k(null)};return v.jsxs(ce,{sx:{display:"flex",flexDirection:"column",padding:{xs:"12px 16px",sm:"18px 48px"},borderBottom:"1px solid #19222F",background:"#07060E",width:"100%",boxSizing:"border-box",position:"relative",zIndex:100,gap:{xs:1,sm:0}},children:[q&&v.jsx(ce,{sx:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",mb:1},children:v.jsx(ob,{component:"button",onClick:()=>{window.open("https://faceseek.online","_blank")},style:{textDecoration:"none",display:"inline-block"},children:v.jsx(yb,{})})}),q?v.jsxs(ce,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%",gap:1},children:[v.jsx(Ga,{size:"large",onClick:Z,color:"inherit",children:v.jsx(YN,{})}),v.jsx(__,{id:"mobile-menu",anchorEl:A,open:L,onClose:ae,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},PaperProps:{sx:{bgcolor:"#151D2C",color:"#fff",minWidth:150}},children:j.map((U,W)=>v.jsx(eR,{onClick:()=>{ae(),M(U.path,{state:{embeded:r}}),window.scrollTo({top:0,behavior:"smooth"})},selected:$.pathname===U.path,sx:{bgcolor:$.pathname===U.path?"#12B981":"transparent",color:($.pathname===U.path,"#fff"),"&:hover":{bgcolor:"#1e1e2f",color:"#12B981"}},children:U.label},W))}),v.jsx(ce,{sx:{flexGrow:1}}),v.jsx(Ga,{ref:P,onClick:K,sx:{width:41,height:41,borderRadius:"8px",border:"1px solid #19222F",backgroundColor:"#07060E",color:"#FFF","&:hover":{backgroundColor:"#121217"}},children:v.jsx(bE,{})}),v.jsx(Ga,{ref:O,onClick:X,sx:{width:41,height:41,borderRadius:"8px",border:`1px solid ${C?"#FF4D4F":"#19222F"}`,backgroundColor:"#07060E",color:"#FFF","&:hover":{backgroundColor:"#121217"}},children:v.jsx(vE,{sx:{color:C?"#FF4D4F":"#FFF"}})}),v.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:.75,color:"#FFF",fontWeight:600,fontSize:"13px"},children:[v.jsx(xE,{sx:{fontSize:20,color:"#00C6FF"}}),v.jsx(Ye,{children:g})]})]}):v.jsxs(ce,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",width:"100%"},children:[v.jsx(ce,{sx:{flex:"0 0 auto"},children:v.jsx(ob,{component:"button",onClick:()=>{window.open("https://faceseek.online","_blank")},style:{textDecoration:"none",display:"inline-block"},children:v.jsx(ce,{sx:{cursor:"pointer"},children:v.jsx(yb,{})})})}),v.jsx(ce,{sx:{position:"absolute",left:"50%",transform:"translateX(-50%)",gap:3,alignItems:"center",display:"flex",zIndex:1},children:j.map((U,W)=>{const te=$.pathname===U.path;return v.jsx(ce,{onClick:()=>{M(U.path,{state:{embeded:r}}),window.scrollTo({top:0,behavior:"smooth"})},sx:{px:2,py:1,color:te?"#12B981":"#FFF",fontSize:"15px",fontWeight:500,cursor:"pointer",userSelect:"none",borderBottom:te?"2px solid #12B981":"2px solid transparent",transition:"all 0.25s ease-in-out","&:hover":{color:"#12B981",borderBottom:"2px solid #12B981"}},children:U.label},W)})}),v.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:1.5},children:[v.jsx(Ga,{ref:P,onClick:K,sx:{width:41,height:41,borderRadius:"8px",border:"1px solid #19222F",backgroundColor:"#07060E",color:"#FFF","&:hover":{backgroundColor:"#121217"}},children:v.jsx(bE,{})}),v.jsx(Ga,{ref:O,onClick:X,sx:{width:41,height:41,borderRadius:"8px",border:`1px solid ${C?"#FF4D4F":"#19222F"}`,backgroundColor:"#07060E",color:"#FFF","&:hover":{backgroundColor:"#121217"}},children:v.jsx(vE,{sx:{color:C?"#FF4D4F":"#FFF"}})}),v.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:.75,color:"#FFF",fontWeight:600,fontSize:"15px"},children:[v.jsx(xE,{sx:{fontSize:20,color:"#00C6FF"}}),v.jsx(Ye,{children:g})]})]})]}),l==="premium"&&v.jsx(aR,{open:B,anchorEl:a,token:m,setToken:p,onClose:ne,onApply:le,onBuy:oe}),l==="history"&&v.jsx(oR,{open:B,anchorEl:a,onClose:ne,history:S,onSelect:Q}),v.jsx(sR,{open:C,anchorEl:O.current,onClose:()=>E(!1),message:"Daily Bonus Tokens with Profile ID",onClick:V})]})};var lR=v.Fragment,bt=function(t,n,r){return xg.call(n,"css")?v.jsx(i_,r_(t,n),r):v.jsx(t,n,r)},So=function(t,n,r){return xg.call(n,"css")?v.jsxs(i_,r_(t,n),r):v.jsxs(t,n,r)};/**
+ * @license lucide-react v0.510.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const ZN=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),JN=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),wE=e=>{const t=JN(e);return t.charAt(0).toUpperCase()+t.slice(1)},cR=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),QN=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
+ * @license lucide-react v0.510.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */var eF={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"};/**
+ * @license lucide-react v0.510.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const tF=_.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:s,iconNode:l,...f},m)=>_.createElement("svg",{ref:m,...eF,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:cR("lucide",a),...!s&&!QN(f)&&{"aria-hidden":"true"},...f},[...l.map(([p,g])=>_.createElement(p,g)),...Array.isArray(s)?s:[s]]));/**
+ * @license lucide-react v0.510.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const Df=(e,t)=>{const n=_.forwardRef(({className:r,...a},s)=>_.createElement(tF,{ref:s,iconNode:t,className:cR(`lucide-${ZN(wE(e))}`,`lucide-${e}`,r),...a}));return n.displayName=wE(e),n};/**
+ * @license lucide-react v0.510.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const nF=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],rF=Df("cloud-upload",nF);/**
+ * @license lucide-react v0.510.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const iF=[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]],aF=Df("facebook",iF);/**
+ * @license lucide-react v0.510.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const oF=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],sF=Df("linkedin",oF);/**
+ * @license lucide-react v0.510.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const lF=[["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"}]],cF=Df("shield",lF);/**
+ * @license lucide-react v0.510.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const uF=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],fF=Df("twitter",uF);/**
+ * @license lucide-react v0.510.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const dF=[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]],hF=Df("upload",dF);/**
+ * @license lucide-react v0.510.0 - ISC
+ *
+ * This source code is licensed under the ISC license.
+ * See the LICENSE file in the root directory of this source tree.
+ */const pF=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],mF=Df("youtube",pF),gF=({pageMode:e})=>(_.useEffect(()=>{const t="EmbedSocialHashtagScript";if(!document.getElementById(t)){const n=document.createElement("script");n.id=t,n.src="https://embedsocial.com/cdn/ht.js",n.async=!0,document.head.appendChild(n)}},[]),v.jsx(ce,{maxWidth:"1350px",mx:"auto",sx:{display:e===5?"none":"block"},children:v.jsx("div",{className:"embedsocial-hashtag","data-ref":"9a2bfc63a90c99ba3c38060a428f346dcb492d94"})})),yF="modulepreload",vF=function(e){return"/"+e},SE={},aS=function(t,n,r){let a=Promise.resolve();if(n&&n.length>0){let l=function(p){return Promise.all(p.map(g=>Promise.resolve(g).then(b=>({status:"fulfilled",value:b}),b=>({status:"rejected",reason:b}))))};document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),m=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));a=l(n.map(p=>{if(p=vF(p),p in SE)return;SE[p]=!0;const g=p.endsWith(".css"),b=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${b}`))return;const S=document.createElement("link");if(S.rel=g?"stylesheet":yF,g||(S.as="script"),S.crossOrigin="",S.href=p,m&&S.setAttribute("nonce",m),document.head.appendChild(S),g)return new Promise((T,C)=>{S.addEventListener("load",T),S.addEventListener("error",()=>C(new Error(`Unable to preload CSS for ${p}`)))})}))}function s(l){const f=new Event("vite:preloadError",{cancelable:!0});if(f.payload=l,window.dispatchEvent(f),!f.defaultPrevented)throw l}return a.then(l=>{for(const f of l||[])f.status==="rejected"&&s(f.reason);return t().catch(s)})};var bF=Object.defineProperty,xF=(e,t,n)=>t in e?bF(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Tt=(e,t,n)=>(xF(e,typeof t!="symbol"?t+"":t,n),n),uR=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)},S0=(e,t,n)=>(uR(e,t,"read from private field"),t.get(e)),wF=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},SF=(e,t,n,r)=>(uR(e,t,"write to private field"),t.set(e,n),n),Oc,f2=new Intl.Collator(0,{numeric:1}).compare;function fR(e,t,n){return e=e.split("."),t=t.split("."),f2(e[0],t[0])||f2(e[1],t[1])||(t[2]=t.slice(2).join("."),n=/[.-]/.test(e[2]=e.slice(2).join(".")),n==/[.-]/.test(t[2])?f2(e[2],t[2]):n?-1:1)}const _F="host",dR="queue/data",CF="queue/join",_E="upload",EF="login",CE="config",TF="info",RF="runtime",AF="sleeptime",kF="heartbeat",OF="component_server",MF="reset",DF="cancel",jF="https://gradio-space-api-fetcher-v2.hf.space/api",hR="This application is currently busy. Please try again. ",Sf="Connection errored out. ",Dc="Could not resolve app config. ",IF="Could not get space status. ",LF="Could not get API info. ",R_="Space metadata could not be loaded. ",PF="Invalid URL. A full URL path is required.",NF="Not authorized to access this space. ",pR="Invalid credentials. Could not login. ",FF="Login credentials are required to access this space.",BF="File system access is only available in Node.js environments",mR="Root URL not found in client config",zF="Error uploading file";function gR(e,t,n){return t.startsWith("http://")||t.startsWith("https://")?n?e:t:e+t}async function EE(e,t,n){try{return(await(await fetch(`https://huggingface.co/api/spaces/${e}/jwt`,{headers:{Authorization:`Bearer ${t}`,...n?{Cookie:n}:{}}})).json()).token||!1}catch{return!1}}function UF(e){let t={};return e.forEach(({api_name:n,id:r})=>{n&&(t[n]=r)}),t}async function $F(e){var t;const n=this.options.hf_token?{Authorization:`Bearer ${this.options.hf_token}`}:{};if(n["Content-Type"]="application/json",typeof window<"u"&&window.gradio_config&&location.origin!=="http://localhost:9876"&&!window.gradio_config.dev_mode){const r=window.gradio_config.root,a=window.gradio_config;let s=gR(e,a.root,!1);return a.root=s,{...a,path:r}}else if(e){let r=bR(e,this.deep_link?CE+"?deep_link="+this.deep_link:CE);const a=await this.fetch(r,{headers:n,credentials:"include"});if((a==null?void 0:a.status)===401&&!this.options.auth)throw new Error(FF);if((a==null?void 0:a.status)===401&&this.options.auth)throw new Error(pR);if((a==null?void 0:a.status)===200){let s=await a.json();return s.path=s.path??"",s.root=e,(t=s.dependencies)==null||t.forEach((l,f)=>{l.id===void 0&&(l.id=f)}),s}else if((a==null?void 0:a.status)===401)throw new Error(NF);throw new Error(Dc)}throw new Error(Dc)}async function HF(){const{http_protocol:e,host:t}=await ux(this.app_reference,this.options.hf_token);try{if(this.options.auth){const n=await yR(e,t,this.options.auth,this.fetch,this.options.hf_token);n&&this.set_cookies(n)}}catch(n){throw Error(n.message)}}async function yR(e,t,n,r,a){const s=new FormData;s.append("username",n==null?void 0:n[0]),s.append("password",n==null?void 0:n[1]);let l={};a&&(l.Authorization=`Bearer ${a}`);const f=await r(`${e}//${t}/${EF}`,{headers:l,method:"POST",body:s,credentials:"include"});if(f.status===200)return f.headers.get("set-cookie");throw f.status===401?new Error(pR):new Error(R_)}function d2(e){if(e.startsWith("http")){const{protocol:t,host:n,pathname:r}=new URL(e);return{ws_protocol:t==="https:"?"wss":"ws",http_protocol:t,host:n+(r!=="/"?r:"")}}else if(e.startsWith("file:"))return{ws_protocol:"ws",http_protocol:"http:",host:"lite.local"};return{ws_protocol:"wss",http_protocol:"https:",host:new URL(e).host}}const vR=e=>{let t=[];return e.split(/,(?=\s*[^\s=;]+=[^\s=;]+)/).forEach(r=>{const[a,s]=r.split(";")[0].split("=");a&&s&&t.push(`${a.trim()}=${s.trim()}`)}),t},A_=/^[a-zA-Z0-9_\-\.]+\/[a-zA-Z0-9_\-\.]+$/,VF=/.*hf\.space\/{0,1}.*$/;async function ux(e,t){const n={};t&&(n.Authorization=`Bearer ${t}`);const r=e.trim().replace(/\/$/,"");if(A_.test(r))try{const s=(await(await fetch(`https://huggingface.co/api/spaces/${r}/${_F}`,{headers:n})).json()).host;return{space_id:e,...d2(s)}}catch{throw new Error(R_)}if(VF.test(r)){const{ws_protocol:a,http_protocol:s,host:l}=d2(r);return{space_id:l.split("/")[0].replace(".hf.space",""),ws_protocol:a,http_protocol:s,host:l}}return{space_id:!1,...d2(r)}}const bR=(...e)=>{try{return e.reduce((t,n)=>(t=t.replace(/\/+$/,""),n=n.replace(/^\/+/,""),new URL(n,t+"/").toString()))}catch{throw new Error(PF)}};function WF(e,t,n){const r={named_endpoints:{},unnamed_endpoints:{}};return Object.keys(e).forEach(a=>{(a==="named_endpoints"||a==="unnamed_endpoints")&&(r[a]={},Object.entries(e[a]).forEach(([s,{parameters:l,returns:f}])=>{var m,p,g,b;const S=((m=t.dependencies.find(E=>E.api_name===s||E.api_name===s.replace("/","")))==null?void 0:m.id)||n[s.replace("/","")]||-1,T=S!==-1?(p=t.dependencies.find(E=>E.id==S))==null?void 0:p.types:{generator:!1,cancel:!1};if(S!==-1&&((b=(g=t.dependencies.find(E=>E.id==S))==null?void 0:g.inputs)==null?void 0:b.length)!==l.length){const E=t.dependencies.find(A=>A.id==S).inputs.map(A=>{var k;return(k=t.components.find(L=>L.id===A))==null?void 0:k.type});try{E.forEach((A,k)=>{if(A==="state"){const L={component:"state",example:null,parameter_default:null,parameter_has_default:!0,parameter_name:null,hidden:!0};l.splice(k,0,L)}})}catch(A){console.error(A)}}const C=(E,A,k,L)=>({...E,description:YF(E==null?void 0:E.type,k),type:GF(E==null?void 0:E.type,A,k,L)||""});r[a][s]={parameters:l.map(E=>C(E,E==null?void 0:E.component,E==null?void 0:E.serializer,"parameter")),returns:f.map(E=>C(E,E==null?void 0:E.component,E==null?void 0:E.serializer,"return")),type:T}}))}),r}function GF(e,t,n,r){if(t==="Api")return e.type;switch(e==null?void 0:e.type){case"string":return"string";case"boolean":return"boolean";case"number":return"number"}if(n==="JSONSerializable"||n==="StringSerializable")return"any";if(n==="ListStringSerializable")return"string[]";if(t==="Image")return r==="parameter"?"Blob | File | Buffer":"string";if(n==="FileSerializable")return(e==null?void 0:e.type)==="array"?r==="parameter"?"(Blob | File | Buffer)[]":"{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}[]":r==="parameter"?"Blob | File | Buffer":"{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}";if(n==="GallerySerializable")return r==="parameter"?"[(Blob | File | Buffer), (string | null)][]":"[{ name: string; data: string; size?: number; is_file?: boolean; orig_name?: string}, (string | null))][]"}function YF(e,t){return t==="GallerySerializable"?"array of [file, label] tuples":t==="ListStringSerializable"?"array of strings":t==="FileSerializable"?"array of files or single file":e==null?void 0:e.description}function h2(e,t){switch(e.msg){case"send_data":return{type:"data"};case"send_hash":return{type:"hash"};case"queue_full":return{type:"update",status:{queue:!0,message:hR,stage:"error",code:e.code,success:e.success}};case"heartbeat":return{type:"heartbeat"};case"unexpected_error":return{type:"unexpected_error",status:{queue:!0,message:e.message,stage:"error",success:!1}};case"estimation":return{type:"update",status:{queue:!0,stage:t||"pending",code:e.code,size:e.queue_size,position:e.rank,eta:e.rank_eta,success:e.success}};case"progress":return{type:"update",status:{queue:!0,stage:"pending",code:e.code,progress_data:e.progress_data,success:e.success}};case"log":return{type:"log",data:e};case"process_generating":return{type:"generating",status:{queue:!0,message:e.success?null:e.output.error,stage:e.success?"generating":"error",code:e.code,progress_data:e.progress_data,eta:e.average_duration,changed_state_ids:e.success?e.output.changed_state_ids:void 0},data:e.success?e.output:null};case"process_streaming":return{type:"streaming",status:{queue:!0,message:e.output.error,stage:"streaming",time_limit:e.time_limit,code:e.code,progress_data:e.progress_data,eta:e.eta},data:e.output};case"process_completed":return"error"in e.output?{type:"update",status:{queue:!0,title:e.output.title,message:e.output.error,visible:e.output.visible,duration:e.output.duration,stage:"error",code:e.code,success:e.success}}:{type:"complete",status:{queue:!0,message:e.success?void 0:e.output.error,stage:e.success?"complete":"error",code:e.code,progress_data:e.progress_data,changed_state_ids:e.success?e.output.changed_state_ids:void 0},data:e.success?e.output:null};case"process_starts":return{type:"update",status:{queue:!0,stage:"pending",code:e.code,size:e.rank,position:0,success:e.success,eta:e.eta},original_msg:"process_starts"}}return{type:"none",status:{stage:"error",queue:!0}}}const qF=(e=[],t)=>{const n=t?t.parameters:[];if(Array.isArray(e))return e.length>n.length&&console.warn("Too many arguments provided for the endpoint."),e;const r=[],a=Object.keys(e);return n.forEach((s,l)=>{if(e.hasOwnProperty(s.parameter_name))r[l]=e[s.parameter_name];else if(s.parameter_has_default)r[l]=s.parameter_default;else throw new Error(`No value provided for required parameter: ${s.parameter_name}`)}),a.forEach(s=>{if(!n.some(l=>l.parameter_name===s))throw new Error(`Parameter \`${s}\` is not a valid keyword argument. Please refer to the API for usage.`)}),r.forEach((s,l)=>{if(s===void 0&&!n[l].parameter_has_default)throw new Error(`No value provided for required parameter: ${n[l].parameter_name}`)}),r};async function KF(){if(this.api_info)return this.api_info;const{hf_token:e}=this.options,{config:t}=this,n={"Content-Type":"application/json"};if(e&&(n.Authorization=`Bearer ${e}`),!!t)try{let r,a;if(typeof window<"u"&&window.gradio_api_info)a=window.gradio_api_info;else{if(fR((t==null?void 0:t.version)||"2.0.0","3.30")<0)r=await this.fetch(jF,{method:"POST",body:JSON.stringify({serialize:!1,config:JSON.stringify(t)}),headers:n,credentials:"include"});else{const s=bR(t.root,this.api_prefix,TF);r=await this.fetch(s,{headers:n,credentials:"include"})}if(!r.ok)throw new Error(Sf);a=await r.json()}return"api"in a&&(a=a.api),a.named_endpoints["/predict"]&&!a.unnamed_endpoints[0]&&(a.unnamed_endpoints[0]=a.named_endpoints["/predict"]),WF(a,t,this.api_map)}catch(r){throw new Error("Could not get API info. "+r.message)}}async function XF(e,t,n){var r;const a={};(r=this==null?void 0:this.options)!=null&&r.hf_token&&(a.Authorization=`Bearer ${this.options.hf_token}`);const s=1e3,l=[];let f;for(let m=0;m<t.length;m+=s){const p=t.slice(m,m+s),g=new FormData;p.forEach(S=>{g.append("files",S)});try{const S=n?`${e}${this.api_prefix}/${_E}?upload_id=${n}`:`${e}${this.api_prefix}/${_E}`;f=await this.fetch(S,{method:"POST",body:g,headers:a,credentials:"include"})}catch(S){throw new Error(Sf+S.message)}if(!f.ok){const S=await f.text();return{error:`HTTP ${f.status}: ${S}`}}const b=await f.json();b&&l.push(...b)}return{files:l}}async function ZF(e,t,n,r){let a=(Array.isArray(e)?e:[e]).map(l=>l.blob);const s=a.filter(l=>l.size>(r??1/0));if(s.length)throw new Error(`File size exceeds the maximum allowed size of ${r} bytes: ${s.map(l=>l.name).join(", ")}`);return await Promise.all(await this.upload_files(t,a,n).then(async l=>{if(l.error)throw new Error(l.error);return l.files?l.files.map((f,m)=>new k_({...e[m],path:f,url:`${t}${this.api_prefix}/file=${f}`})):[]}))}class k_{constructor({path:t,url:n,orig_name:r,size:a,blob:s,is_stream:l,mime_type:f,alt_text:m,b64:p}){Tt(this,"path"),Tt(this,"url"),Tt(this,"orig_name"),Tt(this,"size"),Tt(this,"blob"),Tt(this,"is_stream"),Tt(this,"mime_type"),Tt(this,"alt_text"),Tt(this,"b64"),Tt(this,"meta",{_type:"gradio.FileData"}),this.path=t,this.url=n,this.orig_name=r,this.size=a,this.blob=n?void 0:s,this.is_stream=l,this.mime_type=f,this.alt_text=m,this.b64=p}}class JF{constructor(t,n){Tt(this,"type"),Tt(this,"command"),Tt(this,"meta"),Tt(this,"fileData"),this.type="command",this.command=t,this.meta=n}}typeof process<"u"&&process.versions&&process.versions.node;function TE(e,t,n){for(;n.length>1;){const a=n.shift();if(typeof a=="string"||typeof a=="number")e=e[a];else throw new Error("Invalid key type")}const r=n.shift();if(typeof r=="string"||typeof r=="number")e[r]=t;else throw new Error("Invalid key type")}async function oS(e,t=void 0,n=[],r=!1,a=void 0){if(Array.isArray(e)){let s=[];return await Promise.all(e.map(async(l,f)=>{var m;let p=n.slice();p.push(String(f));const g=await oS(e[f],r?((m=a==null?void 0:a.parameters[f])==null?void 0:m.component)||void 0:t,p,!1,a);s=s.concat(g)})),s}else{if(globalThis.Buffer&&e instanceof globalThis.Buffer||e instanceof Blob)return[{path:n,blob:new Blob([e]),type:t}];if(typeof e=="object"&&e!==null){let s=[];for(const l of Object.keys(e)){const f=[...n,l],m=e[l];s=s.concat(await oS(m,void 0,f,!1,a))}return s}}return[]}function QF(e,t){var n,r;let a=(r=(n=t==null?void 0:t.dependencies)==null?void 0:n.find(s=>s.id==e))==null?void 0:r.queue;return a!=null?!a:!t.enable_queue}function eB(e,t){return new Promise((n,r)=>{const a=new MessageChannel;a.port1.onmessage=({data:s})=>{a.port1.close(),n(s)},window.parent.postMessage(e,t,[a.port2])})}function _0(e,t,n,r,a=!1){if(r==="input"&&!a)throw new Error("Invalid code path. Cannot skip state inputs for input.");if(r==="output"&&a)return e;let s=[],l=0;const f=r==="input"?t.inputs:t.outputs;for(let m=0;m<f.length;m++){const p=f[m],g=n.find(b=>b.id===p);if((g==null?void 0:g.type)==="state"){if(a)if(e.length===f.length){const b=e[l];s.push(b),l++}else s.push(null);else{l++;continue}continue}else{const b=e[l];s.push(b),l++}}return s}async function tB(e,t,n){const r=this;await nB(r,t);const a=await oS(t,void 0,[],!0,n);return(await Promise.all(a.map(async({path:l,blob:f,type:m})=>{if(!f)return{path:l,type:m};const p=await r.upload_files(e,[f]),g=p.files&&p.files[0];return{path:l,file_url:g,type:m,name:typeof File<"u"&&f instanceof File?f==null?void 0:f.name:void 0}}))).forEach(({path:l,file_url:f,type:m,name:p})=>{if(m==="Gallery")TE(t,f,l);else if(f){const g=new k_({path:f,orig_name:p});TE(t,g,l)}}),t}async function nB(e,t){var n,r;if(!(((n=e.config)==null?void 0:n.root)||((r=e.config)==null?void 0:r.root_url)))throw new Error(mR);await xR(e,t)}async function xR(e,t,n=[]){for(const r in t)t[r]instanceof JF?await rB(e,t,r):typeof t[r]=="object"&&t[r]!==null&&await xR(e,t[r],[...n,r])}async function rB(e,t,n){var r,a;let s=t[n];const l=((r=e.config)==null?void 0:r.root)||((a=e.config)==null?void 0:a.root_url);if(!l)throw new Error(mR);try{let f,m;if(typeof process<"u"&&process.versions&&process.versions.node){const S=await aS(()=>import("./__vite-browser-external-BIHI7g3E.js"),[]);m=(await aS(()=>import("./__vite-browser-external-BIHI7g3E.js"),[])).resolve(process.cwd(),s.meta.path),f=await S.readFile(m)}else throw new Error(BF);const p=new Blob([f],{type:"application/octet-stream"}),g=await e.upload_files(l,[p]),b=g.files&&g.files[0];if(b){const S=new k_({path:b,orig_name:s.meta.name||""});t[n]=S}}catch(f){console.error(zF,f)}}async function iB(e,t,n){const r={"Content-Type":"application/json"};this.options.hf_token&&(r.Authorization=`Bearer ${this.options.hf_token}`);try{var a=await this.fetch(e,{method:"POST",body:JSON.stringify(t),headers:{...r,...n},credentials:"include"})}catch{return[{error:Sf},500]}let s,l;try{s=await a.json(),l=a.status}catch(f){s={error:`Could not parse server response: ${f}`},l=500}return[s,l]}async function aB(e,t={}){let n=!1,r=!1;if(!this.config)throw new Error("Could not resolve app config");if(typeof e=="number")this.config.dependencies.find(a=>a.id==e);else{const a=e.replace(/^\//,"");this.config.dependencies.find(s=>s.id==this.api_map[a])}return new Promise(async(a,s)=>{const l=this.submit(e,t,null,null,!0);let f;for await(const m of l)m.type==="data"&&(r&&a(f),n=!0,f=m),m.type==="status"&&(m.stage==="error"&&s(m),m.stage==="complete"&&(r=!0,n&&a(f)))})}async function F0(e,t,n){let r=t==="subdomain"?`https://huggingface.co/api/spaces/by-subdomain/${e}`:`https://huggingface.co/api/spaces/${e}`,a,s;try{if(a=await fetch(r),s=a.status,s!==200)throw new Error;a=await a.json()}catch{n({status:"error",load_status:"error",message:IF,detail:"NOT_FOUND"});return}if(!a||s!==200)return;const{runtime:{stage:l},id:f}=a;switch(l){case"STOPPED":case"SLEEPING":n({status:"sleeping",load_status:"pending",message:"Space is asleep. Waking it up...",detail:l}),setTimeout(()=>{F0(e,t,n)},1e3);break;case"PAUSED":n({status:"paused",load_status:"error",message:"This space has been paused by the author. If you would like to try this demo, consider duplicating the space.",detail:l,discussions_enabled:await RE(f)});break;case"RUNNING":case"RUNNING_BUILDING":n({status:"running",load_status:"complete",message:"Space is running.",detail:l});break;case"BUILDING":n({status:"building",load_status:"pending",message:"Space is building...",detail:l}),setTimeout(()=>{F0(e,t,n)},1e3);break;case"APP_STARTING":n({status:"starting",load_status:"pending",message:"Space is starting...",detail:l}),setTimeout(()=>{F0(e,t,n)},1e3);break;default:n({status:"space_error",load_status:"error",message:"This space is experiencing an issue.",detail:l,discussions_enabled:await RE(f)});break}}const wR=async(e,t)=>{let n=0;const r=12,a=5e3;return new Promise(s=>{F0(e,A_.test(e)?"space_name":"subdomain",l=>{t(l),l.status==="running"||l.status==="error"||l.status==="paused"||l.status==="space_error"?s():(l.status==="sleeping"||l.status==="building")&&(n<r?(n++,setTimeout(()=>{wR(e,t).then(s)},a)):s())})})},oB=/^(?=[^]*\b[dD]iscussions{0,1}\b)(?=[^]*\b[dD]isabled\b)[^]*$/;async function RE(e){try{const t=await fetch(`https://huggingface.co/api/spaces/${e}/discussions`,{method:"HEAD"}),n=t.headers.get("x-error-message");return!(!t.ok||n&&oB.test(n))}catch{return!1}}async function sB(e,t){const n={};t&&(n.Authorization=`Bearer ${t}`);try{const r=await fetch(`https://huggingface.co/api/spaces/${e}/${RF}`,{headers:n});if(r.status!==200)throw new Error("Space hardware could not be obtained.");const{hardware:a}=await r.json();return a.current}catch(r){throw new Error(r.message)}}async function lB(e,t,n){const r={};n&&(r.Authorization=`Bearer ${n}`);const a={seconds:t};try{const s=await fetch(`https://huggingface.co/api/spaces/${e}/${AF}`,{method:"POST",headers:{"Content-Type":"application/json",...r},body:JSON.stringify(a)});if(s.status!==200)throw new Error("Could not set sleep timeout on duplicated Space. Please visit *ADD HF LINK TO SETTINGS* to set a timeout manually to reduce billing charges.");return await s.json()}catch(s){throw new Error(s.message)}}const AE=["cpu-basic","cpu-upgrade","cpu-xl","t4-small","t4-medium","a10g-small","a10g-large","a10g-largex2","a10g-largex4","a100-large","zero-a10g","h100","h100x8"];async function cB(e,t){const{hf_token:n,private:r,hardware:a,timeout:s,auth:l}=t;if(a&&!AE.includes(a))throw new Error(`Invalid hardware type provided. Valid types are: ${AE.map(A=>`"${A}"`).join(",")}.`);const{http_protocol:f,host:m}=await ux(e,n);let p=null;if(l){const A=await yR(f,m,l,fetch);A&&(p=vR(A))}const g={Authorization:`Bearer ${n}`,"Content-Type":"application/json",...p?{Cookie:p.join("; ")}:{}},b=(await(await fetch("https://huggingface.co/api/whoami-v2",{headers:g})).json()).name,S=e.split("/")[1],T={repository:`${b}/${S}`};r&&(T.private=!0);let C;try{a||(C=await sB(e,n))}catch(A){throw Error(R_+A.message)}const E=a||C||"cpu-basic";T.hardware=E;try{const A=await fetch(`https://huggingface.co/api/spaces/${e}/duplicate`,{method:"POST",headers:g,body:JSON.stringify(T)});if(A.status===409)try{return await To.connect(`${b}/${S}`,t)}catch(L){throw console.error("Failed to connect Client instance:",L),L}else if(A.status!==200)throw new Error(A.statusText);const k=await A.json();return await lB(`${b}/${S}`,s||300,n),await To.connect(uB(k.url),t)}catch(A){throw new Error(A)}}function uB(e){const t=/https:\/\/huggingface.co\/spaces\/([^/]+\/[^/]+)/,n=e.match(t);if(n)return n[1]}class fB extends TransformStream{constructor(t={allowCR:!1}){super({transform:(n,r)=>{for(n=S0(this,Oc)+n;;){const a=n.indexOf(`
+`),s=t.allowCR?n.indexOf("\r"):-1;if(s!==-1&&s!==n.length-1&&(a===-1||a-1>s)){r.enqueue(n.slice(0,s)),n=n.slice(s+1);continue}if(a===-1)break;const l=n[a-1]==="\r"?a-1:a;r.enqueue(n.slice(0,l)),n=n.slice(a+1)}SF(this,Oc,n)},flush:n=>{if(S0(this,Oc)==="")return;const r=t.allowCR&&S0(this,Oc).endsWith("\r")?S0(this,Oc).slice(0,-1):S0(this,Oc);n.enqueue(r)}}),wF(this,Oc,"")}}Oc=new WeakMap;function dB(e){let t=new TextDecoderStream,n=new fB({allowCR:!0});return e.pipeThrough(t).pipeThrough(n)}function hB(e){let n=/[:]\s*/.exec(e),r=n&&n.index;if(r)return[e.substring(0,r),e.substring(r+n[0].length)]}function kE(e,t,n){e.get(t)||e.set(t,n)}async function*pB(e,t){if(!e.body)return;let n=dB(e.body),r,a=n.getReader(),s;for(;;){if(t&&t.aborted)return a.cancel();if(r=await a.read(),r.done)return;if(!r.value){s&&(yield s),s=void 0;continue}let[l,f]=hB(r.value)||[];l&&(l==="data"?(s||(s={}),s[l]=s[l]?s[l]+`
+`+f:f):l==="event"?(s||(s={}),s[l]=f):l==="id"?(s||(s={}),s[l]=+f||f):l==="retry"&&(s||(s={}),s[l]=+f||void 0))}}async function mB(e,t){let n=new Request(e,t);kE(n.headers,"Accept","text/event-stream"),kE(n.headers,"Content-Type","application/json");let r=await fetch(n);if(!r.ok)throw r;return pB(r,n.signal)}async function gB(){let{event_callbacks:e,unclosed_events:t,pending_stream_messages:n,stream_status:r,config:a,jwt:s}=this;const l=this;if(!a)throw new Error("Could not resolve app config");r.open=!0;let f=null,m=new URLSearchParams({session_hash:this.session_hash}).toString(),p=new URL(`${a.root}${this.api_prefix}/${dR}?${m}`);if(s&&p.searchParams.set("__sign",s),f=this.stream(p),!f){console.warn("Cannot connect to SSE endpoint: "+p.toString());return}f.onmessage=async function(g){let b=JSON.parse(g.data);if(b.msg==="close_stream"){vb(r,l.abort_controller);return}const S=b.event_id;if(!S)await Promise.all(Object.keys(e).map(T=>e[T](b)));else if(e[S]&&a){b.msg==="process_completed"&&["sse","sse_v1","sse_v2","sse_v2.1","sse_v3"].includes(a.protocol)&&t.delete(S);let T=e[S];typeof window<"u"&&typeof document<"u"?setTimeout(T,0,b):T(b)}else n[S]||(n[S]=[]),n[S].push(b)},f.onerror=async function(){await Promise.all(Object.keys(e).map(g=>e[g]({msg:"unexpected_error",message:Sf})))}}function vb(e,t){e&&(e.open=!1,t==null||t.abort())}function yB(e,t,n){!e[t]?(e[t]=[],n.data.forEach((a,s)=>{e[t][s]=a})):n.data.forEach((a,s)=>{let l=vB(e[t][s],a);e[t][s]=l,n.data[s]=l})}function vB(e,t){return t.forEach(([n,r,a])=>{e=bB(e,r,n,a)}),e}function bB(e,t,n,r){if(t.length===0){if(n==="replace")return r;if(n==="append")return e+r;throw new Error(`Unsupported action: ${n}`)}let a=e;for(let l=0;l<t.length-1;l++)a=a[t[l]];const s=t[t.length-1];switch(n){case"replace":a[s]=r;break;case"append":a[s]+=r;break;case"add":Array.isArray(a)?a.splice(Number(s),0,r):a[s]=r;break;case"delete":Array.isArray(a)?a.splice(Number(s),1):delete a[s];break;default:throw new Error(`Unknown action: ${n}`)}return e}function xB(e,t={}){const n={close:()=>{console.warn("Method not implemented.")},onerror:null,onmessage:null,onopen:null,readyState:0,url:e.toString(),withCredentials:!1,CONNECTING:0,OPEN:1,CLOSED:2,addEventListener:()=>{throw new Error("Method not implemented.")},dispatchEvent:()=>{throw new Error("Method not implemented.")},removeEventListener:()=>{throw new Error("Method not implemented.")}};return mB(e,t).then(async r=>{n.readyState=n.OPEN;try{for await(const a of r)n.onmessage&&n.onmessage(a);n.readyState=n.CLOSED}catch(a){n.onerror&&n.onerror(a),n.readyState=n.CLOSED}}).catch(r=>{console.error(r),n.onerror&&n.onerror(r),n.readyState=n.CLOSED}),n}function wB(e,t={},n,r,a){var s;try{let l=function(De){(a||rt[De.type])&&g(De)},f=function(){for(Xe=!0;Je.length>0;)Je.shift()({value:void 0,done:!0})},m=function(De){Xe||(Je.length>0?Je.shift()(De):He.push(De))},p=function(De){m(SB(De)),f()},g=function(De){m({value:De,done:!1})},b=function(){return He.length>0?Promise.resolve(He.shift()):Xe?Promise.resolve({value:void 0,done:!0}):new Promise(De=>Je.push(De))};const{hf_token:S}=this.options,{fetch:T,app_reference:C,config:E,session_hash:A,api_info:k,api_map:L,stream_status:O,pending_stream_messages:P,pending_diff_streams:M,event_callbacks:$,unclosed_events:B,post_data:H,options:q,api_prefix:j}=this,X=this;if(!k)throw new Error("No API found");if(!E)throw new Error("Could not resolve app config");let{fn_index:K,endpoint_info:ne,dependency:le}=_B(k,e,L,E),oe=qF(t,ne),V,Q,Z=E.protocol??"ws",ae="",U=()=>ae;const W=typeof e=="number"?"/predict":e;let te,de=null,Ee=!1,xe={},Re=typeof window<"u"&&typeof document<"u"?new URLSearchParams(window.location.search).toString():"";const rt=((s=q==null?void 0:q.events)==null?void 0:s.reduce((De,At)=>(De[At]=!0,De),{}))||{};async function Ke(){const De={stage:"complete",queue:!1,time:new Date};Ee=De,l({...De,type:"status",endpoint:W,fn_index:K});let At={},Ze={};Z==="ws"?(V&&V.readyState===0?V.addEventListener("open",()=>{V.close()}):V.close(),At={fn_index:K,session_hash:A}):(vb(O,X.abort_controller),f(),At={event_id:de},Ze={event_id:de,session_hash:A,fn_index:K});try{if(!E)throw new Error("Could not resolve app config");"event_id"in Ze&&await T(`${E.root}${j}/${DF}`,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(Ze)}),await T(`${E.root}${j}/${MF}`,{headers:{"Content-Type":"application/json"},method:"POST",body:JSON.stringify(At)})}catch{console.warn("The `/reset` endpoint could not be called. Subsequent endpoint results may be unreliable.")}}const tt=async De=>{await this._resolve_hearbeat(De)};async function Be(De){if(!E)return;let At=De.render_id;E.components=[...E.components.filter(ft=>ft.props.rendered_in!==At),...De.components],E.dependencies=[...E.dependencies.filter(ft=>ft.rendered_in!==At),...De.dependencies];const Ze=E.components.some(ft=>ft.type==="state"),zt=E.dependencies.some(ft=>ft.targets.some(Pt=>Pt[1]==="unload"));E.connect_heartbeat=Ze||zt,await tt(E),l({type:"render",data:De,endpoint:W,fn_index:K})}this.handle_blob(E.root,oe,ne).then(async De=>{var At;if(te={data:_0(De,le,E.components,"input",!0)||[],event_data:n,fn_index:K,trigger_id:r},QF(K,E))l({type:"status",endpoint:W,stage:"pending",queue:!1,fn_index:K,time:new Date}),H(`${E.root}${j}/run${W.startsWith("/")?W:`/${W}`}${Re?"?"+Re:""}`,{...te,session_hash:A}).then(([ft,Pt])=>{const at=ft.data;Pt==200?(l({type:"data",endpoint:W,fn_index:K,data:_0(at,le,E.components,"output",q.with_null_state),time:new Date,event_data:n,trigger_id:r}),ft.render_config&&Be(ft.render_config),l({type:"status",endpoint:W,fn_index:K,stage:"complete",eta:ft.average_duration,queue:!1,time:new Date})):l({type:"status",stage:"error",endpoint:W,fn_index:K,message:ft.error,queue:!1,time:new Date})}).catch(ft=>{l({type:"status",stage:"error",message:ft.message,endpoint:W,fn_index:K,queue:!1,time:new Date})});else if(Z=="ws"){const{ws_protocol:ft,host:Pt}=await ux(C,S);l({type:"status",stage:"pending",queue:!0,endpoint:W,fn_index:K,time:new Date});let at=new URL(`${ft}://${gR(Pt,E.path,!0)}/queue/join${Re?"?"+Re:""}`);this.jwt&&at.searchParams.set("__sign",this.jwt),V=new WebSocket(at),V.onclose=Pe=>{Pe.wasClean||l({type:"status",stage:"error",broken:!0,message:Sf,queue:!0,endpoint:W,fn_index:K,time:new Date})},V.onmessage=function(Pe){const rn=JSON.parse(Pe.data),{type:kt,status:sn,data:_n}=h2(rn,xe[K]);if(kt==="update"&&sn&&!Ee)l({type:"status",endpoint:W,fn_index:K,time:new Date,...sn}),sn.stage==="error"&&V.close();else if(kt==="hash"){V.send(JSON.stringify({fn_index:K,session_hash:A}));return}else kt==="data"?V.send(JSON.stringify({...te,session_hash:A})):kt==="complete"?Ee=sn:kt==="log"?l({type:"log",title:_n.title,log:_n.log,level:_n.level,endpoint:W,duration:_n.duration,visible:_n.visible,fn_index:K}):kt==="generating"&&l({type:"status",time:new Date,...sn,stage:sn==null?void 0:sn.stage,queue:!0,endpoint:W,fn_index:K});_n&&(l({type:"data",time:new Date,data:_0(_n.data,le,E.components,"output",q.with_null_state),endpoint:W,fn_index:K,event_data:n,trigger_id:r}),Ee&&(l({type:"status",time:new Date,...Ee,stage:sn==null?void 0:sn.stage,queue:!0,endpoint:W,fn_index:K}),V.close()))},fR(E.version||"2.0.0","3.6")<0&&addEventListener("open",()=>V.send(JSON.stringify({hash:A})))}else if(Z=="sse"){l({type:"status",stage:"pending",queue:!0,endpoint:W,fn_index:K,time:new Date});var zt=new URLSearchParams({fn_index:K.toString(),session_hash:A}).toString();let ft=new URL(`${E.root}${j}/${dR}?${Re?Re+"&":""}${zt}`);if(this.jwt&&ft.searchParams.set("__sign",this.jwt),Q=this.stream(ft),!Q)return Promise.reject(new Error("Cannot connect to SSE endpoint: "+ft.toString()));Q.onmessage=async function(Pt){const at=JSON.parse(Pt.data),{type:Pe,status:rn,data:kt}=h2(at,xe[K]);if(Pe==="update"&&rn&&!Ee)l({type:"status",endpoint:W,fn_index:K,time:new Date,...rn}),rn.stage==="error"&&(Q==null||Q.close(),f());else if(Pe==="data"){let[sn,_n]=await H(`${E.root}${j}/queue/data`,{...te,session_hash:A,event_id:de});_n!==200&&(l({type:"status",stage:"error",message:Sf,queue:!0,endpoint:W,fn_index:K,time:new Date}),Q==null||Q.close(),f())}else Pe==="complete"?Ee=rn:Pe==="log"?l({type:"log",title:kt.title,log:kt.log,level:kt.level,endpoint:W,duration:kt.duration,visible:kt.visible,fn_index:K}):(Pe==="generating"||Pe==="streaming")&&l({type:"status",time:new Date,...rn,stage:rn==null?void 0:rn.stage,queue:!0,endpoint:W,fn_index:K});kt&&(l({type:"data",time:new Date,data:_0(kt.data,le,E.components,"output",q.with_null_state),endpoint:W,fn_index:K,event_data:n,trigger_id:r}),Ee&&(l({type:"status",time:new Date,...Ee,stage:rn==null?void 0:rn.stage,queue:!0,endpoint:W,fn_index:K}),Q==null||Q.close(),f()))}}else if(Z=="sse_v1"||Z=="sse_v2"||Z=="sse_v2.1"||Z=="sse_v3"){l({type:"status",stage:"pending",queue:!0,endpoint:W,fn_index:K,time:new Date});let ft="";typeof window<"u"&&typeof document<"u"&&(ft=(At=window==null?void 0:window.location)==null?void 0:At.hostname);const at=ft.includes(".dev.")?`https://moon-${ft.split(".")[1]}.dev.spaces.huggingface.tech`:"https://huggingface.co";(typeof window<"u"&&typeof document<"u"&&window.parent!=window&&window.supports_zerogpu_headers?eB("zerogpu-headers",at):Promise.resolve(null)).then(sn=>H(`${E.root}${j}/${CF}?${Re}`,{...te,session_hash:A},sn)).then(async([sn,_n])=>{if(_n===503)l({type:"status",stage:"error",message:hR,queue:!0,endpoint:W,fn_index:K,time:new Date});else if(_n!==200)l({type:"status",stage:"error",message:Sf,queue:!0,endpoint:W,fn_index:K,time:new Date});else{de=sn.event_id,ae=de;let hn=async function(ln){try{const{type:Vt,status:an,data:je,original_msg:Rt}=h2(ln,xe[K]);if(Vt=="heartbeat")return;if(Vt==="update"&&an&&!Ee)l({type:"status",endpoint:W,fn_index:K,time:new Date,original_msg:Rt,...an});else if(Vt==="complete")Ee=an;else if(Vt=="unexpected_error")console.error("Unexpected error",an==null?void 0:an.message),l({type:"status",stage:"error",message:(an==null?void 0:an.message)||"An Unexpected Error Occurred!",queue:!0,endpoint:W,fn_index:K,time:new Date});else if(Vt==="log"){l({type:"log",title:je.title,log:je.log,level:je.level,endpoint:W,duration:je.duration,visible:je.visible,fn_index:K});return}else(Vt==="generating"||Vt==="streaming")&&(l({type:"status",time:new Date,...an,stage:an==null?void 0:an.stage,queue:!0,endpoint:W,fn_index:K}),je&&le.connection!=="stream"&&["sse_v2","sse_v2.1","sse_v3"].includes(Z)&&yB(M,de,je));je&&(l({type:"data",time:new Date,data:_0(je.data,le,E.components,"output",q.with_null_state),endpoint:W,fn_index:K}),je.render_config&&await Be(je.render_config),Ee&&(l({type:"status",time:new Date,...Ee,stage:an==null?void 0:an.stage,queue:!0,endpoint:W,fn_index:K}),f())),((an==null?void 0:an.stage)==="complete"||(an==null?void 0:an.stage)==="error")&&($[de]&&delete $[de],de in M&&delete M[de])}catch(Vt){console.error("Unexpected client exception",Vt),l({type:"status",stage:"error",message:"An Unexpected Error Occurred!",queue:!0,endpoint:W,fn_index:K,time:new Date}),["sse_v2","sse_v2.1","sse_v3"].includes(Z)&&(vb(O,X.abort_controller),O.open=!1,f())}};de in P&&(P[de].forEach(ln=>hn(ln)),delete P[de]),$[de]=hn,B.add(de),O.open||await this.open_stream()}})}});let Xe=!1;const He=[],Je=[],ke={[Symbol.asyncIterator]:()=>ke,next:b,throw:async De=>(p(De),b()),return:async()=>(f(),b()),cancel:Ke,event_id:U};return ke}catch(l){throw console.error("Submit function encountered an error:",l),l}}function SB(e){return{then:(t,n)=>n(e)}}function _B(e,t,n,r){let a,s,l;if(typeof t=="number")a=t,s=e.unnamed_endpoints[a],l=r.dependencies.find(f=>f.id==t);else{const f=t.replace(/^\//,"");a=n[f],s=e.named_endpoints[t.trim()],l=r.dependencies.find(m=>m.id==n[f])}if(typeof a!="number")throw new Error("There is no endpoint matching that name of fn_index matching that number.");return{fn_index:a,endpoint_info:s,dependency:l}}class To{constructor(t,n={events:["data"]}){Tt(this,"app_reference"),Tt(this,"options"),Tt(this,"deep_link",null),Tt(this,"config"),Tt(this,"api_prefix",""),Tt(this,"api_info"),Tt(this,"api_map",{}),Tt(this,"session_hash",Math.random().toString(36).substring(2)),Tt(this,"jwt",!1),Tt(this,"last_status",{}),Tt(this,"cookies",null),Tt(this,"stream_status",{open:!1}),Tt(this,"closed",!1),Tt(this,"pending_stream_messages",{}),Tt(this,"pending_diff_streams",{}),Tt(this,"event_callbacks",{}),Tt(this,"unclosed_events",new Set),Tt(this,"heartbeat_event",null),Tt(this,"abort_controller",null),Tt(this,"stream_instance",null),Tt(this,"current_payload"),Tt(this,"ws_map",{}),Tt(this,"view_api"),Tt(this,"upload_files"),Tt(this,"upload"),Tt(this,"handle_blob"),Tt(this,"post_data"),Tt(this,"submit"),Tt(this,"predict"),Tt(this,"open_stream"),Tt(this,"resolve_config"),Tt(this,"resolve_cookies");var r;this.app_reference=t,this.deep_link=((r=n.query_params)==null?void 0:r.deep_link)||null,n.events||(n.events=["data"]),this.options=n,this.current_payload={},this.view_api=KF.bind(this),this.upload_files=XF.bind(this),this.handle_blob=tB.bind(this),this.post_data=iB.bind(this),this.submit=wB.bind(this),this.predict=aB.bind(this),this.open_stream=gB.bind(this),this.resolve_config=$F.bind(this),this.resolve_cookies=HF.bind(this),this.upload=ZF.bind(this),this.fetch=this.fetch.bind(this),this.handle_space_success=this.handle_space_success.bind(this),this.stream=this.stream.bind(this)}get_url_config(t=null){if(!this.config)throw new Error(Dc);t===null&&(t=window.location.href);const n=l=>l.replace(/^\/+|\/+$/g,"");let r=n(new URL(this.config.root).pathname),a=n(new URL(t).pathname),s;return a.startsWith(r)?s=n(a.substring(r.length)):s="",this.get_page_config(s)}get_page_config(t){if(!this.config)throw new Error(Dc);let n=this.config;return t in n.page||(t=""),{...n,current_page:t,layout:n.page[t].layout,components:n.components.filter(r=>n.page[t].components.includes(r.id)),dependencies:this.config.dependencies.filter(r=>n.page[t].dependencies.includes(r.id))}}fetch(t,n){const r=new Headers((n==null?void 0:n.headers)||{});if(this&&this.cookies&&r.append("Cookie",this.cookies),this&&this.options.headers)for(const a in this.options.headers)r.append(a,this.options.headers[a]);return fetch(t,{...n,headers:r})}stream(t){const n=new Headers;if(this&&this.cookies&&n.append("Cookie",this.cookies),this&&this.options.headers)for(const r in this.options.headers)n.append(r,this.options.headers[r]);return this&&this.options.hf_token&&n.append("Authorization",`Bearer ${this.options.hf_token}`),this.abort_controller=new AbortController,this.stream_instance=xB(t.toString(),{credentials:"include",headers:n,signal:this.abort_controller.signal}),this.stream_instance}async init(){var t;if((typeof window>"u"||!("WebSocket"in window))&&!global.WebSocket){const n=await aS(()=>import("./wrapper-CviSselG-BXl6tbvB.js"),__vite__mapDeps([0,1]));global.WebSocket=n.WebSocket}this.options.auth&&await this.resolve_cookies(),await this._resolve_config().then(({config:n})=>this._resolve_hearbeat(n)),this.api_info=await this.view_api(),this.api_map=UF(((t=this.config)==null?void 0:t.dependencies)||[])}async _resolve_hearbeat(t){if(t&&(this.config=t,this.api_prefix=t.api_prefix||"",this.config&&this.config.connect_heartbeat&&this.config.space_id&&this.options.hf_token&&(this.jwt=await EE(this.config.space_id,this.options.hf_token,this.cookies))),t.space_id&&this.options.hf_token&&(this.jwt=await EE(t.space_id,this.options.hf_token)),this.config&&this.config.connect_heartbeat){const n=new URL(`${this.config.root}${this.api_prefix}/${kF}/${this.session_hash}`);this.jwt&&n.searchParams.set("__sign",this.jwt),this.heartbeat_event||(this.heartbeat_event=this.stream(n))}}static async connect(t,n={events:["data"]}){const r=new this(t,n);return await r.init(),r}close(){this.closed=!0,vb(this.stream_status,this.abort_controller)}set_current_payload(t){this.current_payload=t}static async duplicate(t,n={events:["data"]}){return cB(t,n)}async _resolve_config(){const{http_protocol:t,host:n,space_id:r}=await ux(this.app_reference,this.options.hf_token),{status_callback:a}=this.options;r&&a&&await wR(r,a);let s;try{let l=`${t}//${n}`;if(s=await this.resolve_config(l),!s)throw new Error(Dc);return this.config_success(s)}catch(l){if(r&&a)F0(r,A_.test(r)?"space_name":"subdomain",this.handle_space_success);else throw a&&a({status:"error",message:"Could not load this space.",load_status:"error",detail:"NOT_FOUND"}),Error(l)}}async config_success(t){if(this.config=t,this.api_prefix=t.api_prefix||"",typeof window<"u"&&typeof document<"u"&&window.location.protocol==="https:"&&(this.config.root=this.config.root.replace("http://","https://")),this.config.auth_required)return this.prepare_return_obj();try{this.api_info=await this.view_api()}catch(n){console.error(LF+n.message)}return this.prepare_return_obj()}async handle_space_success(t){var n;if(!this)throw new Error(Dc);const{status_callback:r}=this.options;if(r&&r(t),t.status==="running")try{if(this.config=await this._resolve_config(),this.api_prefix=((n=this==null?void 0:this.config)==null?void 0:n.api_prefix)||"",!this.config)throw new Error(Dc);return await this.config_success(this.config)}catch(a){throw r&&r({status:"error",message:"Could not load this space.",load_status:"error",detail:"NOT_FOUND"}),a}}async component_server(t,n,r){var a;if(!this.config)throw new Error(Dc);const s={},{hf_token:l}=this.options,{session_hash:f}=this;l&&(s.Authorization=`Bearer ${this.options.hf_token}`);let m,p=this.config.components.find(b=>b.id===t);(a=p==null?void 0:p.props)!=null&&a.root_url?m=p.props.root_url:m=this.config.root;let g;if("binary"in r){g=new FormData;for(const b in r.data)b!=="binary"&&g.append(b,r.data[b]);g.set("component_id",t.toString()),g.set("fn_name",n),g.set("session_hash",f)}else g=JSON.stringify({data:r,component_id:t,fn_name:n,session_hash:f}),s["Content-Type"]="application/json";l&&(s.Authorization=`Bearer ${l}`);try{const b=await this.fetch(`${m}${this.api_prefix}/${OF}/`,{method:"POST",body:g,headers:s,credentials:"include"});if(!b.ok)throw new Error("Could not connect to component server: "+b.statusText);return await b.json()}catch(b){console.warn(b)}}set_cookies(t){this.cookies=vR(t).join("; ")}prepare_return_obj(){return{config:this.config,predict:this.predict,submit:this.submit,view_api:this.view_api,component_server:this.component_server}}async connect_ws(t){return new Promise((n,r)=>{let a;try{a=new WebSocket(t)}catch{this.ws_map[t]="failed";return}a.onopen=()=>{n()},a.onerror=s=>{console.error("WebSocket error:",s),this.close_ws(t),this.ws_map[t]="failed",n()},a.onclose=()=>{delete this.ws_map[t],this.ws_map[t]="failed"},a.onmessage=s=>{},this.ws_map[t]=a})}async send_ws_message(t,n){t in this.ws_map||await this.connect_ws(t);const r=this.ws_map[t];r instanceof WebSocket?r.send(JSON.stringify(n)):this.post_data(t,n)}async close_ws(t){if(t in this.ws_map){const n=this.ws_map[t];n instanceof WebSocket&&(n.close(),delete this.ws_map[t])}}}const jf=()=>v.jsx(ce,{sx:{position:"absolute",top:"-17px",left:"-46px",width:"124px",height:"124px",pointerEvents:"none",zIndex:0},children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"178",height:"207",viewBox:"0 0 178 207",fill:"none",children:[v.jsx("g",{filter:"url(#filter0_f_216_11250)",children:v.jsx("circle",{cx:"16",cy:"45",r:"62",fill:"#12B981",fillOpacity:"0.34"})}),v.jsx("defs",{children:v.jsxs("filter",{id:"filter0_f_216_11250",x:"-146",y:"-117",width:"324",height:"324",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[v.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),v.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),v.jsx("feGaussianBlur",{stdDeviation:"50",result:"effect1_foregroundBlur_216_11250"})]})})]})}),cp=()=>v.jsx(ce,{sx:{position:"absolute",top:"-17px",right:"-11px",width:"124px",height:"124px",pointerEvents:"none",zIndex:0},children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"189",height:"207",viewBox:"0 0 189 207",fill:"none",children:[v.jsx("g",{filter:"url(#filter0_f_216_11249)",children:v.jsx("circle",{cx:"162",cy:"45",r:"62",fill:"#12B981",fillOpacity:"0.34"})}),v.jsx("defs",{children:v.jsxs("filter",{id:"filter0_f_216_11249",x:"0",y:"-117",width:"324",height:"324",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[v.jsx("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),v.jsx("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),v.jsx("feGaussianBlur",{stdDeviation:"50",result:"effect1_foregroundBlur_216_11249"})]})})]})}),CB=Ae(ce)(({theme:e})=>({position:"relative",border:"2px dashed rgba(255, 255, 255, 0.2)",background:"#151D2C",borderRadius:12,maxWidth:"600px",minHeight:300,textAlign:"center",boxShadow:"0px 0px 40px rgba(29, 50, 64, 1.0)",margin:"0 auto",padding:e.spacing(2),boxSizing:"border-box",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",[e.breakpoints.down("sm")]:{minHeight:200,padding:e.spacing(1),marginLeft:e.spacing(1),marginRight:e.spacing(1)},"&:hover":{border:"2px dashed rgba(255, 255, 255, 0.7)"}})),EB=Ae("label")(({theme:e})=>({cursor:"pointer",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100%",width:"100%",gap:20,margin:30,[e.breakpoints.down("sm")]:{gap:12,margin:12}})),TB=Ae(ce)(({theme:e})=>({display:"flex",alignItems:"center",justifyContent:"center",width:64,height:64,borderRadius:"50%",color:"#00BA85",background:"#1F2937",[e.breakpoints.down("sm")]:{width:48,height:48}})),OE=Ae("span")({color:"#6b7280"}),RB=({isEmbed:e})=>{const t=_.useRef(),n=_l();_.useEffect(()=>{},[e]);const r=async l=>{l.preventDefault(),l.dataTransfer.files[0]&&(l.target.value=null,n("/face-search",{state:{file:selectedFile,embeded:e}}))},a=async l=>{const f=l.target.files[0];f&&(l.target.value=null,n("/face-search",{state:{file:f,embeded:e}}))},s=()=>{var l;(l=t.current)==null||l.click()};return v.jsxs(ce,{children:[v.jsxs(CB,{children:[v.jsx(jf,{}),v.jsx(cp,{}),v.jsxs(EB,{htmlFor:"file-upload",onDragOver:l=>l.preventDefault(),onDrop:r,children:[v.jsx(TB,{children:v.jsx(hF,{size:36})}),v.jsxs(Ye,{variant:"body1",children:["Click To Choose Image"," ",v.jsx(OE,{sx:{display:{xs:"none",sm:"inline"}},children:"Or Drag And Drop"})]}),v.jsx(kg,{id:"file-upload",type:"file",inputProps:{accept:"image/*"},onChange:a,inputRef:t,sx:{display:"none"}}),v.jsx(qi,{variant:"contained",sx:{width:{xs:"90%",sm:"70%",md:300},bgcolor:"#059669","&:hover":{bgcolor:"#047857"},height:44,fontWeight:600,fontSize:"0.875rem",borderRadius:2,mx:{xs:"auto",sm:0},display:"flex",justifyContent:"center"},startIcon:v.jsx(rF,{}),onClick:s,children:"Choose an Image"}),v.jsx(Ye,{variant:"body1",sx:{whiteSpace:"nowrap",fontSize:{xs:"0.75rem",sm:"0.875rem",md:"1rem"}},children:v.jsx(OE,{children:"Image should be: JPG, PNG, JPEG, WEBP"})})]})]}),v.jsxs(vN,{direction:"row",spacing:.5,justifyContent:"center",alignItems:"center",mt:2,children:[v.jsx(cF,{size:14,color:"#9ca3af"}),v.jsx(Ye,{variant:"caption",color:"grey.500",children:"Secure and private search process"})]})]})},Mg=Yn(v.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),SR=({placeholder:e="Type a name to search",onSearch:t})=>{const[n,r]=_.useState(""),a=()=>{t&&n.trim()!==""&&t(n.trim())},s=l=>{l.key==="Enter"&&(l.preventDefault(),a())};return v.jsx(lx,{placeholder:e,variant:"outlined",fullWidth:!0,value:n,onChange:l=>r(l.target.value),onKeyDown:s,sx:{"& .MuiOutlinedInput-root":{borderRadius:3,paddingRight:0,height:40,"& input":{padding:"4px 8px",height:"100%",fontSize:"0.8rem"},"& fieldset":{borderColor:"#00A36D"},"&:hover fieldset":{borderColor:"#00A36D"},"&.Mui-focused fieldset":{borderColor:"#00A36D"}},"& .MuiInputAdornment-root":{marginRight:0}},InputProps:{style:{backgroundColor:"#131624",color:"white",height:"40px"},endAdornment:v.jsx(ce,{onClick:a,sx:{backgroundColor:"white",display:"flex",alignItems:"center",justifyContent:"center",height:"40px",cursor:"pointer",borderTopRightRadius:12,borderBottomRightRadius:12,px:1.25},children:v.jsx(Mg,{sx:{color:"#00A36D",fontSize:20}})})}})},Wh=({textName:e="Name",tip:t="by-name",onClick:n})=>v.jsxs(ce,{sx:{position:"relative",display:"inline-block",mt:1.5,mb:.5,"&:hover .hoverOverlay":{opacity:1}},children:[v.jsx(ce,{sx:{position:"absolute",top:0,right:30,transform:"translate(50%, -50%)",backgroundColor:"#12B981",color:"#ffffff",borderRadius:1,fontSize:"8px",px:.5,py:.2,fontWeight:500,zIndex:3},children:t}),v.jsx(ce,{onClick:n,sx:{backgroundColor:"#F0F1F4",color:"#374151",border:"1px solid #00A36D",borderRadius:2,px:2,py:.5,fontWeight:400,fontSize:"10px",position:"relative",cursor:"pointer",zIndex:1,transition:"border-color 0.3s ease, box-shadow 0.3s ease","&:hover":{border:"1px solid #fbbf24",boxShadow:"0 0 0 2px rgba(18, 185, 129, 0.3)"}},children:e}),v.jsx(ce,{className:"hoverOverlay",sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",bgcolor:"rgba(0, 0, 0, 0.3)",borderRadius:2,display:"flex",alignItems:"center",justifyContent:"center",opacity:0,transition:"opacity 0.3s ease-in-out",zIndex:2,cursor:"pointer",pointerEvents:"none"},children:v.jsx(Mg,{sx:{color:"#ffffff",fontSize:16}})})]}),_R=({src:e,alt:t,width:n="100%",alignSelf:r="flex-start",onClick:a})=>v.jsx(ce,{children:v.jsxs(w_,{onClick:a,sx:{width:{width:n},borderRadius:3,boxShadow:3,backgroundColor:"#15202D",zIndex:1,border:"1px solid #12B981",overflow:"hidden",position:"relative",cursor:"pointer",alignSelf:{alignSelf:r},ml:"auto","&:hover .hoverOverlay":{opacity:1}},children:[v.jsx(jf,{}),v.jsx(cp,{}),v.jsx(ce,{component:"img",src:e,alt:t,sx:{width:"100%",height:"auto",display:"block",objectFit:"cover"}}),v.jsx(ce,{className:"hoverOverlay",sx:{position:"absolute",top:0,left:0,width:"100%",height:"100%",bgcolor:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",justifyContent:"center",opacity:0,transition:"opacity 0.3s ease-in-out"},children:v.jsx(Mg,{sx:{color:"#12B981",fontSize:40}})})]})}),AB=[{src:"example1.png",alt:"example1",columnStart:1,columnEnd:4,rowStart:6,rowEnd:11,textName:"Jennifer Lawrence",textAlign:"right",alignSelf:"flex-end",width:"100%"},{src:"example2.png",alt:"example2",columnStart:4,columnEnd:6,rowStart:2,rowEnd:6,textName:"Gal Gadot",textAlign:"left",alignSelf:"flex-start",width:"100%"},{src:"example3.png",alt:"example3",columnStart:4,columnEnd:6,rowStart:7,rowEnd:11,textName:"Timothée Chalamet",textAlign:"left",alignSelf:"flex-start",width:"100%"}],kB=({onExampleClicked:e,onSearch:t})=>v.jsxs(ce,{sx:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gridTemplateRows:"repeat(10, auto)",gap:1,maxWidth:400,mx:"auto"},children:[v.jsxs(v.Fragment,{children:[v.jsxs(ce,{sx:{gridColumn:"1 / 4",gridRow:"1 / 3",display:"flex",justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"},children:[v.jsx(ce,{component:"img",src:"11.png",alt:"4"}),v.jsx(SR,{onSearch:t})]}),v.jsx(ce,{sx:{gridColumn:"2 / 4",gridRow:"5 / 6",display:"flex",justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"},children:v.jsx(Wh,{textName:"Jennifer Lawrence"})}),v.jsx(ce,{sx:{gridColumn:"4 / 6",gridRow:"1 / 2",display:"flex",justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"},children:v.jsx(Wh,{textName:"Gal Gadot"})}),v.jsx(ce,{sx:{gridColumn:"4 / 6",gridRow:"6 / 7",display:"flex",justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"},children:v.jsx(Wh,{textName:"Timothée Chalamet"})})]}),AB.map(({src:n,alt:r,columnStart:a,columnEnd:s,rowStart:l,rowEnd:f,textName:m,textAlign:p,alignSelf:g,width:b},S)=>v.jsx(Ei.Fragment,{children:v.jsx(ce,{sx:{gridColumn:`${a} / ${s}`,gridRow:`${l} / ${f}`,display:"flex",justifyContent:"center",alignItems:"flex-start",flexDirection:"column"},children:v.jsx(_R,{src:n,alt:r,width:b,alignSelf:g,onClick:()=>e==null?void 0:e({example:n})})})},r))]}),OB=({isEmbed:e})=>(_.useEffect(()=>{},[e]),v.jsxs(ce,{zIndex:1,display:"flex",flexDirection:"column",gap:{xs:4,sm:5},sx:{px:{xs:1,sm:2}},children:[v.jsxs(Ye,{variant:"h3",component:"h2",fontWeight:"bold",lineHeight:1.1,sx:{fontSize:{xs:"2.25rem",sm:"2.75rem",md:"3rem",lg:"3.75rem",display:e?"none":"block"},mb:{xs:4,sm:4,md:0}},children:["AI Powered Reverse",v.jsx(ce,{component:"div",sx:{color:"#12B981"},children:"Face Search"})]}),v.jsx(Ye,{variant:"body1",sx:{color:"#E5E7EB",fontSize:{xs:"1rem",sm:"1.125rem"},maxWidth:"40rem",mt:1,mb:1,display:e?"none":{xs:"none",sm:"none",md:"block"}},children:"Search faces across the internet and social media to verify identity, detect deepfakes, uncover impersonation, and trace image misuse with facial recognition."}),v.jsx(ce,{minHeight:60,sx:{display:e?"block":"none"}}),v.jsxs(ce,{sx:{position:"relative"},children:[v.jsx(ce,{component:"img",src:"12.png",alt:"Top Right",sx:{position:"absolute",top:-70,right:{xs:20,sm:20,md:-70},zIndex:2}}),v.jsx(RB,{isEmbed:e})]})]})),MB=[{src:"example1.png",alt:"example1",columnStart:2,columnEnd:4,rowStart:4,rowEnd:8,textName:"Jennifer Lawrence",textAlign:"right",alignSelf:"flex-end",width:"100%"},{src:"example2.png",alt:"example2",columnStart:4,columnEnd:6,rowStart:2,rowEnd:6,textName:"Gal Gadot",textAlign:"left",alignSelf:"flex-start",width:"100%"},{src:"example3.png",alt:"example3",columnStart:4,columnEnd:6,rowStart:7,rowEnd:11,textName:"Timothée Chalamet",textAlign:"left",alignSelf:"flex-start",width:"100%"}],DB=({onExampleClicked:e,onSearch:t})=>v.jsxs(ce,{sx:{display:"grid",gridTemplateColumns:"repeat(5, 1fr)",gridTemplateRows:"repeat(10, auto)",rowGap:0,maxWidth:450,columnGap:2},children:[v.jsxs(v.Fragment,{children:[v.jsx(ce,{sx:{gridColumn:"1 / 4",gridRow:"9 / 10",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:v.jsx(SR,{onSearch:t})}),v.jsx(ce,{sx:{gridColumn:"1 / 4",gridRow:"10 / 11",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:v.jsx(ce,{component:"img",src:"13.png",alt:"4",sx:{mt:2}})}),v.jsx(ce,{sx:{gridColumn:"2 / 4",gridRow:"3 / 4",display:"flex",justifyContent:"flex-start",alignItems:"flex-end",flexDirection:"column"},children:v.jsx(Wh,{textName:"Jennifer Lawrence",onClick:()=>e==null?void 0:e({example:"name_ex1"})})}),v.jsx(ce,{sx:{gridColumn:"4 / 6",gridRow:"1 / 2",display:"flex",justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"},children:v.jsx(Wh,{textName:"Gal Gadot",onClick:()=>e==null?void 0:e({example:"name_ex2"})})}),v.jsx(ce,{sx:{gridColumn:"4 / 6",gridRow:"6 / 7",display:"flex",justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"},children:v.jsx(Wh,{textName:"Timothée Chalamet",onClick:()=>e==null?void 0:e({example:"name_ex3"})})})]}),MB.map(({src:n,alt:r,columnStart:a,columnEnd:s,rowStart:l,rowEnd:f,textName:m,textAlign:p,alignSelf:g,width:b},S)=>v.jsx(Ei.Fragment,{children:v.jsx(ce,{sx:{gridColumn:`${a} / ${s}`,gridRow:`${l} / ${f}`,display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:v.jsx(_R,{src:n,alt:r,width:b,alignSelf:g,onClick:()=>e==null?void 0:e({example:n})})})},r))]});Cl`
+  0% { 
+    top: 0px; 
+  }
+  100% {
+    top: 100%;
+  }
+`;const jB=({onExampleClicked:e,isEmbed:t})=>{const n=_l(),r=a=>{n("/name-search",{state:{name:a,embeded:t}})};return So(ce,{sx:{backgroundColor:"#0A0914",position:"relative",overflow:"hidden",px:{xs:2,sm:4},py:{xs:1,sm:8}},children:[bt(ce,{component:"img",src:"/bg.png",alt:"Background",sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",objectFit:"cover",zIndex:0,pointerEvents:"none",userSelect:"none"}}),bt(ce,{display:"flex",flexDirection:"column",maxWidth:"1350px",margin:"0 auto",zIndex:1,gap:{xs:6,md:8},children:So(ce,{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:{xs:"stretch",md:"flex-end"},children:[bt(ce,{sx:{flex:1},children:bt(OB,{isEmbed:t})}),bt(ce,{sx:{flex:1,display:{xs:"none",sm:"none",md:"block"}},children:bt(DB,{onExampleClicked:e,onSearch:r})}),bt(ce,{sx:{flex:1,display:{xs:"block",sm:"block",md:"none"},mt:{xs:4,sm:4}},children:bt(kB,{onExampleClicked:e,onSearch:r})})]})})]})},IB=()=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:v.jsx("path",{d:"M4.62901 7.59767L8.628 2.20791C8.94073 1.78638 9.527 2.04874 9.527 2.61024V6.78194C9.527 7.11834 9.75687 7.391 10.0405 7.391H11.9855C12.4273 7.391 12.6629 8.00894 12.371 8.40234L8.372 13.7921C8.05927 14.2136 7.473 13.9513 7.473 13.3897V9.21807C7.473 8.88167 7.24313 8.609 6.95954 8.609H5.01449C4.57263 8.609 4.33711 7.99107 4.62901 7.59767Z",fill:"#FFC140"})}),LB=()=>v.jsxs(ce,{sx:{display:"flex",width:66,px:"8px",py:"2px",justifyContent:"center",alignItems:"center",gap:"4px",backgroundColor:"rgba(10, 9, 20, 0.16)",borderRadius:"6px"},children:[v.jsx(IB,{}),v.jsx(Ye,{sx:{color:"#FFC140",fontSize:12,fontWeight:400,lineHeight:"16px",letterSpacing:"-0.5px"},children:"Popular"})]}),PB=Yn(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2M9.29 16.29 5.7 12.7a.996.996 0 0 1 0-1.41c.39-.39 1.02-.39 1.41 0L10 14.17l6.88-6.88c.39-.39 1.02-.39 1.41 0s.39 1.02 0 1.41l-7.59 7.59c-.38.39-1.02.39-1.41 0"})),NB=["5 daily tokens","200K+ users","Instant"],FB=({open:e,onClose:t,email:n,setEmail:r,onGetProfileId:a})=>{const[s,l]=_.useState(!0);_.useEffect(()=>{l(!0)},[e]);const f=ki();cx(f.breakpoints.down("sm"));const m=g=>/^\S+@\S+\.\S+$/.test(g),p=g=>{const b=g.target.value.trim();r(b),!m(b)||b.match(/\+.*@/)?l(!0):l(!1)};return v.jsx(Ag,{open:e,onClose:t,maxWidth:"md",fullWidth:!0,PaperProps:{sx:{backgroundColor:"#111825",borderRadius:"12px",color:"#FFFFFF",p:0,overflow:"hidden",border:"1px solid #00A36D"}},children:v.jsxs(ce,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"},width:"100%"},children:[v.jsxs(ce,{sx:{flex:1,pl:{xs:2,sm:5},pt:{xs:2,sm:5},pr:{xs:2,sm:5},pb:{xs:2,sm:5},justifyContent:"flex-start",alignItems:"flex-start"},children:[v.jsxs(ox,{sx:{fontWeight:600,fontSize:{xs:22,sm:30},color:"#FFF",pb:0,lineHeight:1.2,textAlign:"left",pl:0},children:["Your Profile ID",v.jsx("br",{}),v.jsx(Ye,{component:"span",sx:{color:"#12B981",fontSize:{xs:22,sm:30},fontWeight:600,mt:.5,lineHeight:1.1,display:"block",textAlign:"left"},children:"5 Free Tokens Daily!"})]}),v.jsxs(ax,{sx:{p:0,pt:2,overflowY:"hidden"},children:[v.jsx(ce,{sx:{display:"flex",gap:1,mt:2,mb:2,flexWrap:"wrap"},children:NB.map((g,b)=>v.jsxs(ce,{sx:{display:"flex",alignItems:"center",backgroundColor:"#374151",borderRadius:3,px:1,py:.5,flexShrink:0,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},children:[v.jsx(PB,{sx:{color:"#12B981",mr:.8,fontSize:18}}),v.jsx(Ye,{sx:{fontSize:13,color:"#D1D5DB",userSelect:"none",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:g})]},b))}),v.jsxs("form",{noValidate:!0,onSubmit:g=>{g.preventDefault(),s||a()},children:[v.jsx(lx,{type:"email",fullWidth:!0,variant:"outlined",value:n,placeholder:"Enter your email address",onChange:g=>p(g),autoFocus:!0,autoComplete:"off",InputProps:{sx:{height:"50px",paddingLeft:"16px",backgroundColor:"#1E293B",borderRadius:"8px",color:"#FFF",fontSize:"16px",border:"1px solid #12B981"}}}),v.jsx(sL,{sx:{px:0,pt:3},children:v.jsx(qi,{variant:"contained",type:"submit",disabled:s,sx:{color:"#FFFFFF",backgroundColor:"#12B981",textTransform:"none",borderRadius:"8px",fontWeight:600,width:"100%","&:hover":{backgroundColor:"#0fa66c"},"&.Mui-disabled":{backgroundColor:"#12B98140",color:"#FFFFFF40"}},children:"Email My ID Now →"})})]})]})]}),v.jsx(ce,{sx:{flex:1,display:"flex",justifyContent:"center",alignItems:"center",alignSelf:"center",maxWidth:{xs:"250px",sm:"400px"},p:0},children:v.jsx("img",{src:"/15.png",alt:"Promo",style:{width:"100%",height:"auto",objectFit:"contain",borderRadius:"8px"}})})]})})},Gh=Yn(v.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z"})),BB=Yn(v.jsx("path",{d:"M9 21c0 .5.4 1 1 1h4c.6 0 1-.5 1-1v-1H9zm3-19C8.1 2 5 5.1 5 9c0 2.4 1.2 4.5 3 5.7V17c0 .5.4 1 1 1h6c.6 0 1-.5 1-1v-2.3c1.8-1.3 3-3.4 3-5.7 0-3.9-3.1-7-7-7"})),Lh=new TextEncoder,bb=new TextDecoder;function zB(...e){const t=e.reduce((a,{length:s})=>a+s,0),n=new Uint8Array(t);let r=0;for(const a of e)n.set(a,r),r+=a.length;return n}function UB(e){if(Uint8Array.prototype.toBase64)return e.toBase64();const t=32768,n=[];for(let r=0;r<e.length;r+=t)n.push(String.fromCharCode.apply(null,e.subarray(r,r+t)));return btoa(n.join(""))}function $B(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(e);const t=atob(e),n=new Uint8Array(t.length);for(let r=0;r<t.length;r++)n[r]=t.charCodeAt(r);return n}function HB(e){if(Uint8Array.fromBase64)return Uint8Array.fromBase64(typeof e=="string"?e:bb.decode(e),{alphabet:"base64url"});let t=e;t instanceof Uint8Array&&(t=bb.decode(t)),t=t.replace(/-/g,"+").replace(/_/g,"/").replace(/\s/g,"");try{return $B(t)}catch{throw new TypeError("The input to be decoded is not correctly encoded.")}}function p2(e){let t=e;return typeof t=="string"&&(t=Lh.encode(t)),Uint8Array.prototype.toBase64?t.toBase64({alphabet:"base64url",omitPadding:!0}):UB(t).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}class fx extends Error{constructor(n,r){var a;super(n,r);fa(this,"code","ERR_JOSE_GENERIC");this.name=this.constructor.name,(a=Error.captureStackTrace)==null||a.call(Error,this,this.constructor)}}fa(fx,"code","ERR_JOSE_GENERIC");class mf extends fx{constructor(){super(...arguments);fa(this,"code","ERR_JOSE_NOT_SUPPORTED")}}fa(mf,"code","ERR_JOSE_NOT_SUPPORTED");class Mh extends fx{constructor(){super(...arguments);fa(this,"code","ERR_JWS_INVALID")}}fa(Mh,"code","ERR_JWS_INVALID");class CR extends fx{constructor(){super(...arguments);fa(this,"code","ERR_JWT_INVALID")}}fa(CR,"code","ERR_JWT_INVALID");function ol(e,t="algorithm.name"){return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`)}function C0(e,t){return e.name===t}function m2(e){return parseInt(e.name.slice(4),10)}function VB(e){switch(e){case"ES256":return"P-256";case"ES384":return"P-384";case"ES512":return"P-521";default:throw new Error("unreachable")}}function WB(e,t){if(!e.usages.includes(t))throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`)}function GB(e,t,n){switch(t){case"HS256":case"HS384":case"HS512":{if(!C0(e.algorithm,"HMAC"))throw ol("HMAC");const r=parseInt(t.slice(2),10);if(m2(e.algorithm.hash)!==r)throw ol(`SHA-${r}`,"algorithm.hash");break}case"RS256":case"RS384":case"RS512":{if(!C0(e.algorithm,"RSASSA-PKCS1-v1_5"))throw ol("RSASSA-PKCS1-v1_5");const r=parseInt(t.slice(2),10);if(m2(e.algorithm.hash)!==r)throw ol(`SHA-${r}`,"algorithm.hash");break}case"PS256":case"PS384":case"PS512":{if(!C0(e.algorithm,"RSA-PSS"))throw ol("RSA-PSS");const r=parseInt(t.slice(2),10);if(m2(e.algorithm.hash)!==r)throw ol(`SHA-${r}`,"algorithm.hash");break}case"Ed25519":case"EdDSA":{if(!C0(e.algorithm,"Ed25519"))throw ol("Ed25519");break}case"ES256":case"ES384":case"ES512":{if(!C0(e.algorithm,"ECDSA"))throw ol("ECDSA");const r=VB(t);if(e.algorithm.namedCurve!==r)throw ol(r,"algorithm.namedCurve");break}default:throw new TypeError("CryptoKey does not support this operation")}WB(e,n)}function ER(e,t,...n){var r;if(n=n.filter(Boolean),n.length>2){const a=n.pop();e+=`one of type ${n.join(", ")}, or ${a}.`}else n.length===2?e+=`one of type ${n[0]} or ${n[1]}.`:e+=`of type ${n[0]}.`;return t==null?e+=` Received ${t}`:typeof t=="function"&&t.name?e+=` Received function ${t.name}`:typeof t=="object"&&t!=null&&(r=t.constructor)!=null&&r.name&&(e+=` Received an instance of ${t.constructor.name}`),e}const YB=(e,...t)=>ER("Key must be ",e,...t);function TR(e,t,...n){return ER(`Key for the ${e} algorithm must be `,t,...n)}function RR(e){return(e==null?void 0:e[Symbol.toStringTag])==="CryptoKey"}function AR(e){return(e==null?void 0:e[Symbol.toStringTag])==="KeyObject"}const kR=e=>RR(e)||AR(e),qB=(...e)=>{const t=e.filter(Boolean);if(t.length===0||t.length===1)return!0;let n;for(const r of t){const a=Object.keys(r);if(!n||n.size===0){n=new Set(a);continue}for(const s of a){if(n.has(s))return!1;n.add(s)}}return!0};function KB(e){return typeof e=="object"&&e!==null}const OR=e=>{if(!KB(e)||Object.prototype.toString.call(e)!=="[object Object]")return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},XB=(e,t)=>{if(e.startsWith("RS")||e.startsWith("PS")){const{modulusLength:n}=t.algorithm;if(typeof n!="number"||n<2048)throw new TypeError(`${e} requires key modulusLength to be 2048 bits or larger`)}};function ZB(e){let t,n;switch(e.kty){case"RSA":{switch(e.alg){case"PS256":case"PS384":case"PS512":t={name:"RSA-PSS",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RS256":case"RS384":case"RS512":t={name:"RSASSA-PKCS1-v1_5",hash:`SHA-${e.alg.slice(-3)}`},n=e.d?["sign"]:["verify"];break;case"RSA-OAEP":case"RSA-OAEP-256":case"RSA-OAEP-384":case"RSA-OAEP-512":t={name:"RSA-OAEP",hash:`SHA-${parseInt(e.alg.slice(-3),10)||1}`},n=e.d?["decrypt","unwrapKey"]:["encrypt","wrapKey"];break;default:throw new mf('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"EC":{switch(e.alg){case"ES256":t={name:"ECDSA",namedCurve:"P-256"},n=e.d?["sign"]:["verify"];break;case"ES384":t={name:"ECDSA",namedCurve:"P-384"},n=e.d?["sign"]:["verify"];break;case"ES512":t={name:"ECDSA",namedCurve:"P-521"},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:"ECDH",namedCurve:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new mf('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}case"OKP":{switch(e.alg){case"Ed25519":case"EdDSA":t={name:"Ed25519"},n=e.d?["sign"]:["verify"];break;case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":t={name:e.crv},n=e.d?["deriveBits"]:[];break;default:throw new mf('Invalid or unsupported JWK "alg" (Algorithm) Parameter value')}break}default:throw new mf('Invalid or unsupported JWK "kty" (Key Type) Parameter value')}return{algorithm:t,keyUsages:n}}const JB=async e=>{if(!e.alg)throw new TypeError('"alg" argument is required when "jwk.alg" is not present');const{algorithm:t,keyUsages:n}=ZB(e),r={...e};return delete r.alg,delete r.use,crypto.subtle.importKey("jwk",r,t,e.ext??!e.d,e.key_ops??n)},QB=(e,t,n,r,a)=>{if(a.crit!==void 0&&(r==null?void 0:r.crit)===void 0)throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');if(!r||r.crit===void 0)return new Set;if(!Array.isArray(r.crit)||r.crit.length===0||r.crit.some(l=>typeof l!="string"||l.length===0))throw new e('"crit" (Critical) Header Parameter MUST be an array of non-empty strings when present');let s;n!==void 0?s=new Map([...Object.entries(n),...t.entries()]):s=t;for(const l of r.crit){if(!s.has(l))throw new mf(`Extension Header Parameter "${l}" is not recognized`);if(a[l]===void 0)throw new e(`Extension Header Parameter "${l}" is missing`);if(s.get(l)&&r[l]===void 0)throw new e(`Extension Header Parameter "${l}" MUST be integrity protected`)}return new Set(r.crit)};function O_(e){return OR(e)&&typeof e.kty=="string"}function ez(e){return e.kty!=="oct"&&typeof e.d=="string"}function tz(e){return e.kty!=="oct"&&typeof e.d>"u"}function nz(e){return e.kty==="oct"&&typeof e.k=="string"}let Yh;const ME=async(e,t,n,r=!1)=>{Yh||(Yh=new WeakMap);let a=Yh.get(e);if(a!=null&&a[n])return a[n];const s=await JB({...t,alg:n});return r&&Object.freeze(e),a?a[n]=s:Yh.set(e,{[n]:s}),s},rz=(e,t)=>{var l;Yh||(Yh=new WeakMap);let n=Yh.get(e);if(n!=null&&n[t])return n[t];const r=e.type==="public",a=!!r;let s;if(e.asymmetricKeyType==="x25519"){switch(t){case"ECDH-ES":case"ECDH-ES+A128KW":case"ECDH-ES+A192KW":case"ECDH-ES+A256KW":break;default:throw new TypeError("given KeyObject instance cannot be used for this algorithm")}s=e.toCryptoKey(e.asymmetricKeyType,a,r?[]:["deriveBits"])}if(e.asymmetricKeyType==="ed25519"){if(t!=="EdDSA"&&t!=="Ed25519")throw new TypeError("given KeyObject instance cannot be used for this algorithm");s=e.toCryptoKey(e.asymmetricKeyType,a,[r?"verify":"sign"])}if(e.asymmetricKeyType==="rsa"){let f;switch(t){case"RSA-OAEP":f="SHA-1";break;case"RS256":case"PS256":case"RSA-OAEP-256":f="SHA-256";break;case"RS384":case"PS384":case"RSA-OAEP-384":f="SHA-384";break;case"RS512":case"PS512":case"RSA-OAEP-512":f="SHA-512";break;default:throw new TypeError("given KeyObject instance cannot be used for this algorithm")}if(t.startsWith("RSA-OAEP"))return e.toCryptoKey({name:"RSA-OAEP",hash:f},a,r?["encrypt"]:["decrypt"]);s=e.toCryptoKey({name:t.startsWith("PS")?"RSA-PSS":"RSASSA-PKCS1-v1_5",hash:f},a,[r?"verify":"sign"])}if(e.asymmetricKeyType==="ec"){const m=new Map([["prime256v1","P-256"],["secp384r1","P-384"],["secp521r1","P-521"]]).get((l=e.asymmetricKeyDetails)==null?void 0:l.namedCurve);if(!m)throw new TypeError("given KeyObject instance cannot be used for this algorithm");t==="ES256"&&m==="P-256"&&(s=e.toCryptoKey({name:"ECDSA",namedCurve:m},a,[r?"verify":"sign"])),t==="ES384"&&m==="P-384"&&(s=e.toCryptoKey({name:"ECDSA",namedCurve:m},a,[r?"verify":"sign"])),t==="ES512"&&m==="P-521"&&(s=e.toCryptoKey({name:"ECDSA",namedCurve:m},a,[r?"verify":"sign"])),t.startsWith("ECDH-ES")&&(s=e.toCryptoKey({name:"ECDH",namedCurve:m},a,r?[]:["deriveBits"]))}if(!s)throw new TypeError("given KeyObject instance cannot be used for this algorithm");return n?n[t]=s:Yh.set(e,{[t]:s}),s},iz=async(e,t)=>{if(e instanceof Uint8Array||RR(e))return e;if(AR(e)){if(e.type==="secret")return e.export();if("toCryptoKey"in e&&typeof e.toCryptoKey=="function")try{return rz(e,t)}catch(r){if(r instanceof TypeError)throw r}let n=e.export({format:"jwk"});return ME(e,n,t)}if(O_(e))return e.k?HB(e.k):ME(e,e,t,!0);throw new Error("unreachable")},Dh=e=>e==null?void 0:e[Symbol.toStringTag],sS=(e,t,n)=>{var r,a;if(t.use!==void 0){let s;switch(n){case"sign":case"verify":s="sig";break;case"encrypt":case"decrypt":s="enc";break}if(t.use!==s)throw new TypeError(`Invalid key for this operation, its "use" must be "${s}" when present`)}if(t.alg!==void 0&&t.alg!==e)throw new TypeError(`Invalid key for this operation, its "alg" must be "${e}" when present`);if(Array.isArray(t.key_ops)){let s;switch(!0){case n==="sign":case e==="dir":case e.includes("CBC-HS"):s=n;break;case e.startsWith("PBES2"):s="deriveBits";break;case/^A\d{3}(?:GCM)?(?:KW)?$/.test(e):!e.includes("GCM")&&e.endsWith("KW")?s="unwrapKey":s=n;break;case n==="encrypt":s="wrapKey";break;case n==="decrypt":s=e.startsWith("RSA")?"unwrapKey":"deriveBits";break}if(s&&((a=(r=t.key_ops)==null?void 0:r.includes)==null?void 0:a.call(r,s))===!1)throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${s}" when present`)}return!0},az=(e,t,n)=>{if(!(t instanceof Uint8Array)){if(O_(t)){if(nz(t)&&sS(e,t,n))return;throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present')}if(!kR(t))throw new TypeError(TR(e,t,"CryptoKey","KeyObject","JSON Web Key","Uint8Array"));if(t.type!=="secret")throw new TypeError(`${Dh(t)} instances for symmetric algorithms must be of type "secret"`)}},oz=(e,t,n)=>{if(O_(t))switch(n){case"decrypt":case"sign":if(ez(t)&&sS(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a private JWK");case"encrypt":case"verify":if(tz(t)&&sS(e,t,n))return;throw new TypeError("JSON Web Key for this operation be a public JWK")}if(!kR(t))throw new TypeError(TR(e,t,"CryptoKey","KeyObject","JSON Web Key"));if(t.type==="secret")throw new TypeError(`${Dh(t)} instances for asymmetric algorithms must not be of type "secret"`);if(t.type==="public")switch(n){case"sign":throw new TypeError(`${Dh(t)} instances for asymmetric algorithm signing must be of type "private"`);case"decrypt":throw new TypeError(`${Dh(t)} instances for asymmetric algorithm decryption must be of type "private"`)}if(t.type==="private")switch(n){case"verify":throw new TypeError(`${Dh(t)} instances for asymmetric algorithm verifying must be of type "public"`);case"encrypt":throw new TypeError(`${Dh(t)} instances for asymmetric algorithm encryption must be of type "public"`)}},sz=(e,t,n)=>{e.startsWith("HS")||e==="dir"||e.startsWith("PBES2")||/^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e)||/^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e)?az(e,t,n):oz(e,t,n)},lz=(e,t)=>{const n=`SHA-${e.slice(-3)}`;switch(e){case"HS256":case"HS384":case"HS512":return{hash:n,name:"HMAC"};case"PS256":case"PS384":case"PS512":return{hash:n,name:"RSA-PSS",saltLength:parseInt(e.slice(-3),10)>>3};case"RS256":case"RS384":case"RS512":return{hash:n,name:"RSASSA-PKCS1-v1_5"};case"ES256":case"ES384":case"ES512":return{hash:n,name:"ECDSA",namedCurve:t.namedCurve};case"Ed25519":case"EdDSA":return{name:"Ed25519"};default:throw new mf(`alg ${e} is not supported either by JOSE or your javascript runtime`)}},cz=async(e,t,n)=>{if(t instanceof Uint8Array){if(!e.startsWith("HS"))throw new TypeError(YB(t,"CryptoKey","KeyObject","JSON Web Key"));return crypto.subtle.importKey("raw",t,{hash:`SHA-${e.slice(-3)}`,name:"HMAC"},!1,[n])}return GB(t,e,n),t},sf=e=>Math.floor(e.getTime()/1e3),MR=60,DR=MR*60,M_=DR*24,uz=M_*7,fz=M_*365.25,dz=/^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i,g2=e=>{const t=dz.exec(e);if(!t||t[4]&&t[1])throw new TypeError("Invalid time period format");const n=parseFloat(t[2]),r=t[3].toLowerCase();let a;switch(r){case"sec":case"secs":case"second":case"seconds":case"s":a=Math.round(n);break;case"minute":case"minutes":case"min":case"mins":case"m":a=Math.round(n*MR);break;case"hour":case"hours":case"hr":case"hrs":case"h":a=Math.round(n*DR);break;case"day":case"days":case"d":a=Math.round(n*M_);break;case"week":case"weeks":case"w":a=Math.round(n*uz);break;default:a=Math.round(n*fz);break}return t[1]==="-"||t[4]==="ago"?-a:a};function lf(e,t){if(!Number.isFinite(t))throw new TypeError(`Invalid ${e} input`);return t}var ur;class hz{constructor(t){Tc(this,ur);if(!OR(t))throw new TypeError("JWT Claims Set MUST be an object");Rc(this,ur,structuredClone(t))}data(){return Lh.encode(JSON.stringify(yt(this,ur)))}get iss(){return yt(this,ur).iss}set iss(t){yt(this,ur).iss=t}get sub(){return yt(this,ur).sub}set sub(t){yt(this,ur).sub=t}get aud(){return yt(this,ur).aud}set aud(t){yt(this,ur).aud=t}set jti(t){yt(this,ur).jti=t}set nbf(t){typeof t=="number"?yt(this,ur).nbf=lf("setNotBefore",t):t instanceof Date?yt(this,ur).nbf=lf("setNotBefore",sf(t)):yt(this,ur).nbf=sf(new Date)+g2(t)}set exp(t){typeof t=="number"?yt(this,ur).exp=lf("setExpirationTime",t):t instanceof Date?yt(this,ur).exp=lf("setExpirationTime",sf(t)):yt(this,ur).exp=sf(new Date)+g2(t)}set iat(t){typeof t>"u"?yt(this,ur).iat=sf(new Date):t instanceof Date?yt(this,ur).iat=lf("setIssuedAt",sf(t)):typeof t=="string"?yt(this,ur).iat=lf("setIssuedAt",sf(new Date)+g2(t)):yt(this,ur).iat=lf("setIssuedAt",t)}}ur=new WeakMap;const pz=async(e,t,n)=>{const r=await cz(e,t,"sign");XB(e,r);const a=await crypto.subtle.sign(lz(e,r.algorithm),r,n);return new Uint8Array(a)};var hg,ha,hs;class mz{constructor(t){Tc(this,hg);Tc(this,ha);Tc(this,hs);if(!(t instanceof Uint8Array))throw new TypeError("payload must be an instance of Uint8Array");Rc(this,hg,t)}setProtectedHeader(t){if(yt(this,ha))throw new TypeError("setProtectedHeader can only be called once");return Rc(this,ha,t),this}setUnprotectedHeader(t){if(yt(this,hs))throw new TypeError("setUnprotectedHeader can only be called once");return Rc(this,hs,t),this}async sign(t,n){if(!yt(this,ha)&&!yt(this,hs))throw new Mh("either setProtectedHeader or setUnprotectedHeader must be called before #sign()");if(!qB(yt(this,ha),yt(this,hs)))throw new Mh("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");const r={...yt(this,ha),...yt(this,hs)},a=QB(Mh,new Map([["b64",!0]]),n==null?void 0:n.crit,yt(this,ha),r);let s=!0;if(a.has("b64")&&(s=yt(this,ha).b64,typeof s!="boolean"))throw new Mh('The "b64" (base64url-encode payload) Header Parameter must be a boolean');const{alg:l}=r;if(typeof l!="string"||!l)throw new Mh('JWS "alg" (Algorithm) Header Parameter missing or invalid');sz(l,t,"sign");let f=yt(this,hg);s&&(f=Lh.encode(p2(f)));let m;yt(this,ha)?m=Lh.encode(p2(JSON.stringify(yt(this,ha)))):m=Lh.encode("");const p=zB(m,Lh.encode("."),f),g=await iz(t,l),b=await pz(l,g,p),S={signature:p2(b),payload:""};return s&&(S.payload=bb.decode(f)),yt(this,hs)&&(S.header=yt(this,hs)),yt(this,ha)&&(S.protected=bb.decode(m)),S}}hg=new WeakMap,ha=new WeakMap,hs=new WeakMap;var Zh;class gz{constructor(t){Tc(this,Zh);Rc(this,Zh,new mz(t))}setProtectedHeader(t){return yt(this,Zh).setProtectedHeader(t),this}async sign(t,n){const r=await yt(this,Zh).sign(t,n);if(r.payload===void 0)throw new TypeError("use the flattened module for creating JWS with b64: false");return`${r.protected}.${r.payload}.${r.signature}`}}Zh=new WeakMap;var jc,$a;class jR{constructor(t={}){Tc(this,jc);Tc(this,$a);Rc(this,$a,new hz(t))}setIssuer(t){return yt(this,$a).iss=t,this}setSubject(t){return yt(this,$a).sub=t,this}setAudience(t){return yt(this,$a).aud=t,this}setJti(t){return yt(this,$a).jti=t,this}setNotBefore(t){return yt(this,$a).nbf=t,this}setExpirationTime(t){return yt(this,$a).exp=t,this}setIssuedAt(t){return yt(this,$a).iat=t,this}setProtectedHeader(t){return Rc(this,jc,t),this}async sign(t,n){var a;const r=new gz(yt(this,$a).data());if(r.setProtectedHeader(yt(this,jc)),Array.isArray((a=yt(this,jc))==null?void 0:a.crit)&&yt(this,jc).crit.includes("b64")&&yt(this,jc).b64===!1)throw new CR("JWTs MUST NOT use unencoded payload");return r.sign(t,n)}}jc=new WeakMap,$a=new WeakMap;const yz=async e=>{const t=new TextEncoder().encode("rfs_jwt_secret");return await new jR({session_id:e}).setProtectedHeader({alg:"HS256"}).sign(t)},Hc="https://fsapi.faceonlive.com",vz=async e=>{try{const n=await(await To.connect(Hc)).predict("/get_profile",[e]);return JSON.parse(n.data[0])}catch(t){return console.error("Error in get_profile:",t),null}},bz=async e=>{try{let t=encodeURIComponent(e);t=t.replace(/!/g,"%21");const n=await yz(t),a=await(await To.connect(Hc)).predict("/get_session_result",{signed_session_id:n});return JSON.parse(a.data[0])}catch(t){return console.error("Error in get_session_result:",t),null}},Tv=async e=>{try{const n=await(await To.connect(Hc)).predict("/get_processing_time",{search_type:e});return JSON.parse(n.data[0])}catch(t){return console.error("Error in get_processing_time:",t),null}},xz=async(e,t,n,r)=>{try{return(await(await To.connect(Hc)).predict("/backend_proc",{file:e,text:"",search_type:r,pid:t,cap:n})).data[0]}catch(a){return console.error("Error in search_face:",a),null}},wz=async(e,t,n,r)=>{try{return(await(await To.connect(Hc)).predict("/backend_proc",{file:e,text:"",search_type:r,pid:t,cap:n})).data[0]}catch(a){return console.error("Error in search_image:",a),null}},Sz=async(e,t,n,r)=>{try{return(await(await To.connect(Hc)).predict("/backend_proc",{file:null,text:e,search_type:r,pid:t,cap:n})).data[0]}catch(a){return console.error("Error in search_name:",a),null}},_z=async(e,t,n,r,a)=>{try{return(await(await To.connect(Hc)).predict("/backend_proc",{file:e,text:t,search_type:a,pid:n,cap:r})).data[0]}catch(s){return console.error("Error in do_video_effect:",s),null}},IR=async(e,t)=>{try{const r=await(await To.connect(Hc)).predict("/email_subscribe",{type:t,email:e});return JSON.parse(r.data[0])}catch(n){return console.error("Error in search_name:",n),null}},Cz=["67c9d7591f1ab2803aea7f13","67c9d9c11f1ab2803aea8c47"],Ez=Ei.forwardRef((e,t)=>{const{onOrderReceived:n,isEmbed:r}=e,[a,s]=_.useState(!1),[l,f]=_.useState(""),[m,p]=_.useState(!1),[g,b]=_.useState(!1),[S,T]=_.useState("");ki();const E=[{title:"Free",description:"5 tokens replenished every day",price:"Free",popular:!1,index:0,buttonText:"Get Profile ID"},{title:"Starter",description:"15 tokens ($0.26 per token)",price:"$3.9",popular:!1,index:1,buttonText:"Checkout"},{title:"Max",description:"50 tokens ($0.19 per token)",price:"$9.9",popular:!0,index:2,buttonText:"Checkout"}];_.useEffect(()=>{if(!window.openPocketsflowCheckout){const M=document.createElement("script");M.src="https://app.pocketsflow.com/pocketsflow-popup.js",M.dataset.subdomain="facesearch",M.async=!0,document.body.appendChild(M),M.onload=()=>{}}},[]);const A=async M=>{p(!0);try{const B=await(await To.connect("https://fsapi.faceonlive.com/")).predict("/get_order",{payment_id:M});B&&B.data.length>0&&n({order:B.data[0]})}catch($){console.error("Error fetching order ID:",$)}finally{p(!1)}},k=M=>{if(M==0)s(!0);else{if(!window.openPocketsflowCheckout){console.error("Pocketsflow checkout function not available");return}const $=Cz[M-1];if(!$){console.error("Invalid product index:",M-1);return}window.openPocketsflowCheckout({type:"product",productId:$,subdomain:"facesearch",isDarkMode:!0,onSuccess:B=>{B!=null&&B.type==="success"&&A(B.paymentIntentId)}})}},L=()=>{s(!1),f(""),O(l)},O=async M=>{p(!0);try{let $=await IR(M,0);$.status===200?(T("A confirmation email has been sent. Please check your inbox or spam folder."),b(!0)):($.status,T("Failed to subscribe. Please try again later."),b(!0))}catch{T("Failed to subscribe. Please try again later."),b(!0)}finally{p(!1)}},P=()=>{b(!1)};return v.jsxs(ce,{ref:t,sx:{mx:"auto",px:{xs:3,sm:3},py:{xs:1,sm:6},backgroundColor:"#0A0914",textAlign:"center",color:"#12B981",fontFamily:"Inter, sans-serif"},children:[v.jsx(v.Fragment,{children:v.jsx(FB,{open:a,onClose:()=>{f(""),s(!1)},email:l,setEmail:f,onGetProfileId:L})}),v.jsx(Og,{open:g,autoHideDuration:4e3,onClose:P,anchorOrigin:{vertical:"center",horizontal:"center"},ContentProps:{sx:{backgroundColor:"#FFC140",color:"#333",borderRadius:2,boxShadow:3,fontSize:"14px",fontWeight:500}},message:S}),v.jsx(ix,{sx:{color:"#fff",zIndex:M=>M.zIndex.drawer+1},open:m,children:v.jsx(Qb,{color:"inherit"})}),v.jsx(Ye,{sx:{display:r?"none":"block",alignSelf:"stretch",color:"#12B981",textAlign:"center",fontSize:16,fontStyle:"normal",fontWeight:600,lineHeight:"normal",textTransform:"uppercase",mb:3},children:"Pricing"}),v.jsx(Ye,{component:"h2",sx:{display:r?"none":"block",width:{xs:"90%",sm:"70%",md:646},mx:"auto",mb:6,color:"#FFF",textAlign:"center",fontSize:{xs:24,sm:32,md:52},fontStyle:"normal",fontWeight:600,lineHeight:{xs:1.3,sm:1.4,md:"normal"},textTransform:"capitalize",px:{xs:2,sm:0}},children:"Simple and affordable pricing for everyone"}),v.jsxs(ce,{sx:{mx:"auto",maxWidth:1200,px:{xs:2,sm:3,md:4},flexShrink:0,borderRadius:"20px",display:"flex",flexDirection:"column",justifyContent:"center",color:"#FFF",fontFamily:"Inter, sans-serif",position:"relative",overflow:"hidden"},children:[v.jsx(wf,{container:!0,spacing:4,sx:{mt:{xs:2,sm:4},mb:{xs:2,sm:4},justifyContent:"center"},children:E.map((M,$)=>v.jsx(wf,{item:!0,xs:12,sm:6,md:4,sx:{display:"flex",width:"100%","@media (min-width:720px)":{width:"40%"},"@media (min-width:1280px)":{width:"30%"}},children:v.jsxs(ce,{sx:{display:"flex",flexDirection:"column",justifyContent:"space-between",flexGrow:1,padding:"24px 20px",gap:"20px",borderRadius:"14px",border:M.popular?"1px solid #FFC140":"1px solid #0A0914",background:M.popular?"rgba(255, 193, 64, 0.15)":"#151D2C",boxShadow:M.popular?"0px 5px 0px 0px #FFC140 inset":"none",position:"relative",overflow:"hidden"},children:[v.jsx(cp,{}),v.jsxs(ce,{sx:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center"},children:[v.jsx(Ye,{sx:{color:"#FFF",fontSize:16,fontWeight:500,textTransform:"uppercase"},children:M.title}),M.popular&&v.jsx(LB,{})]}),v.jsx(ce,{sx:{backgroundColor:"#FFFFFF29",borderRadius:"16px",p:"6px 20px",mt:-1,width:"fit-content"},children:v.jsx(Ye,{sx:{color:"#D1D5DB",fontSize:16,fontWeight:400},children:M.description})}),v.jsx(Ye,{sx:{color:"#FFF",fontSize:32,fontWeight:700,lineHeight:"10px"},children:M.price}),v.jsx(ce,{sx:{flexGrow:1}}),v.jsx(qi,{variant:M.buttonText==="Get Profile ID"?"outlined":"contained",sx:{borderRadius:"6px",height:44,padding:"8px 16px",justifyContent:"center",alignItems:"center",gap:1.25,alignSelf:"stretch",textTransform:"none",fontWeight:600,fontSize:16,backgroundColor:M.buttonText==="Get Profile ID"?"transparent":"#12B981",color:M.buttonText==="Get Profile ID"?"#12B981":"#FFF",border:M.buttonText==="Get Profile ID"?"1px solid #12B981":"none","&:hover":{backgroundColor:M.buttonText==="Get Profile ID"?"rgba(18, 185, 129, 0.08)":"#0fa66c",border:M.buttonText==="Get Profile ID"?"1px solid #12B981":"none"}},onClick:()=>k(M.index),children:M.buttonText})]})},$))}),v.jsxs(ce,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",height:"100%",width:"fit-content",alignSelf:"center",px:{xs:0,sm:0},textAlign:"left"},children:[v.jsxs(ce,{sx:{display:"flex",alignItems:"center",mt:{xs:2,sm:2},mb:{xs:1,sm:2}},children:[v.jsx(BB,{sx:{color:"#FCD34D",mr:1}}),v.jsx(Ye,{sx:{color:"#FFF",fontSize:{xs:16,sm:20},fontWeight:600,lineHeight:"28px",textAlign:"left"},children:"Token Usage Breakdown"})]}),v.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[v.jsx(Gh,{sx:{width:16,height:16,color:"#00A36D"}}),v.jsx(Ye,{sx:{color:"#D1D5DB",fontSize:{xs:12,sm:16},fontWeight:400,lineHeight:"24px",textAlign:"left"},children:"Premium Face Search (Full URL, Deep Scan, Private): 10 tokens"})]}),v.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[v.jsx(Gh,{sx:{width:16,height:16,color:"#00A36D"}}),v.jsx(Ye,{sx:{color:"#D1D5DB",fontSize:{xs:12,sm:16},fontWeight:400,lineHeight:"24px",textAlign:"left"},children:"Standard Face Search (URLs masked): 1 token"})]}),v.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:1,mb:1},children:[v.jsx(Gh,{sx:{width:16,height:16,color:"#00A36D"}}),v.jsx(Ye,{sx:{color:"#D1D5DB",fontSize:{xs:12,sm:16},fontWeight:400,lineHeight:"24px",textAlign:"left"},children:"Standard Name Search: 1 token"})]})]})]})]})}),Rv=({icon:e})=>v.jsx(ce,{sx:{display:"flex",width:36,height:36,padding:"5px",justifyContent:"center",alignItems:"center",aspectRatio:"1 / 1",borderRadius:"100px",border:"1px solid rgba(255, 255, 255, 0.15)",color:"#fff",cursor:"pointer","&:hover":{backgroundColor:"rgba(255, 255, 255, 0.05)"}},children:v.jsx(e,{size:16})}),Tz=({onPrivacyClick:e,onTermsClick:t})=>{const n=_l();return v.jsxs(ce,{sx:{backgroundColor:"#151D2C",color:"#fff",px:4,py:6,display:"flex",flexDirection:"column",alignItems:"center"},children:[v.jsxs(ce,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},justifyContent:"space-between",width:"100%",maxWidth:"1440px",mb:4},children:[v.jsxs(ce,{sx:{flex:1,mb:{xs:4,md:0}},children:[v.jsx(pa,{component:"button",onClick:()=>{window.open("https://faceseek.online","_blank")},style:{textDecoration:"none",display:"inline-block"},children:v.jsx(ce,{sx:{cursor:"pointer"},children:v.jsx(yb,{})})}),v.jsx(Ye,{variant:"body2",sx:{mt:2,mb:5,ml:{xs:0,sm:1},color:"rgba(255, 255, 255, 0.80)",fontFeatureSettings:"'liga' off, 'clig' off",fontFamily:"Inter, sans-serif",fontSize:"14px",fontStyle:"normal",fontWeight:400,lineHeight:"28px",whiteSpace:"normal",textAlign:{xs:"left",sm:"left"},maxWidth:{xs:"90%",sm:"100%"},mx:{xs:"auto",sm:0}},children:"Discover publicly available images with face search."}),v.jsxs(ce,{display:"flex",gap:2,children:[v.jsx(Rv,{icon:aF}),v.jsx(Rv,{icon:fF}),v.jsx(Rv,{icon:mF}),v.jsx(Rv,{icon:sF})]})]}),v.jsxs(ce,{sx:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[v.jsx(Ye,{variant:"h6",sx:{mb:1},children:"Quick Links"}),v.jsx(pa,{href:"/",underline:"hover",sx:{color:"#aaa"},children:"Home"}),v.jsx(pa,{href:"/face-search",underline:"hover",sx:{color:"#aaa"},children:"Face Search"}),v.jsx(pa,{href:"/image-search",underline:"hover",sx:{color:"#aaa"},children:"Image Search"}),v.jsx(pa,{href:"/name-search",underline:"hover",sx:{color:"#aaa"},children:"Social Name Search"}),v.jsx(pa,{href:"/video-effect",underline:"hover",sx:{color:"#aaa"},children:"Video Effect"}),v.jsx(pa,{component:"button",onClick:()=>{n("/pricing")},underline:"hover",sx:{color:"#aaa",textAlign:"left"},children:"Pricing"}),v.jsx(pa,{component:"button",onClick:()=>{window.open("https://facesearch.pocketsflow.com/checkout?productId=67c9da5b1f1ab2803aea8dfd","_blank")},underline:"hover",sx:{color:"#aaa",textAlign:"left"},children:"Opt-Out"})]}),v.jsxs(ce,{sx:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[v.jsx(Ye,{variant:"h6",sx:{mb:1},children:"Contact Us"}),v.jsx(pa,{href:"mailto:contact@faceseek.online",underline:"hover",sx:{color:"#aaa"},children:"contact@faceseek.online"})]})]}),v.jsx(tp,{sx:{width:"90%",backgroundColor:"#444",mb:2}}),v.jsxs(ce,{sx:{display:"flex",justifyContent:"space-between",width:"100%",maxWidth:"1440px",fontSize:"14px",color:"#888"},children:[v.jsxs(Ye,{children:["© ",new Date().getFullYear()," FaceSeek. All rights reserved."]}),v.jsx(ce,{children:v.jsxs(ce,{sx:{display:"flex",gap:2},children:[v.jsx(Ye,{sx:{color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:e,children:"Privacy Policy"}),v.jsx(Ye,{sx:{color:"rgba(255, 255, 255, 0.6)",fontSize:"14px",cursor:"pointer","&:hover":{textDecoration:"underline"}},onClick:t,children:"Terms of Service"})]})})]})]})},Rz=()=>v.jsxs("div",{className:"seo-content",style:{maxWidth:"800px",margin:"2rem auto",padding:"2rem"},children:[v.jsx("h1",{children:"Unlock the Power of Face Search: Find Your Photos Online"}),v.jsx("div",{className:"gallery",id:"gallery"}),v.jsxs("p",{children:["In today’s digital landscape, images are everywhere—social media, blogs, news sites, and more. But have you ever wondered where your photos are being used? With our cutting-edge"," ",v.jsx("strong",{children:"face search technology"}),", you can now track down your images across the web with precision and ease. Whether you’re safeguarding your privacy, identifying someone, or conducting research, our tool is designed to deliver fast, accurate results."]}),v.jsx("h2",{children:"What Is Face Search and How Does It Work?"}),v.jsx("p",{children:"Face search is an advanced technology that uses artificial intelligence (AI) and machine learning to analyze facial features in images. By comparing these features to a vast database of online images, the tool can identify matches and reveal where your photos are being used. Here’s how it works:"}),v.jsxs("ol",{children:[v.jsxs("li",{children:[v.jsx("strong",{children:"Upload an Image:"})," Start by uploading a photo from your device."]}),v.jsxs("li",{children:[v.jsx("strong",{children:"Facial Feature Analysis:"})," Our algorithm examines the facial features for accuracy."]}),v.jsxs("li",{children:[v.jsx("strong",{children:"Receive Instant Results:"})," You’ll get a list of websites where the image appears."]})]}),v.jsx("p",{children:"Our technology is constantly evolving to provide the most relevant and accurate results, ensuring you get the information you need quickly and reliably."}),v.jsx("h2",{children:"Why Use a Face Search Tool?"}),v.jsx("p",{children:"Face search technology offers a wide range of benefits. Here are some key reasons to use our tool:"}),v.jsxs("ul",{children:[v.jsxs("li",{children:[v.jsx("strong",{children:"Protect Your Privacy:"})," Identify where your photos are being posted online."]}),v.jsxs("li",{children:[v.jsx("strong",{children:"Identify People Online:"})," Locate images of individuals across the web."]}),v.jsxs("li",{children:[v.jsx("strong",{children:"Conduct Visual Research:"})," Analyze trends and verify image authenticity."]}),v.jsxs("li",{children:[v.jsx("strong",{children:"Monitor Your Digital Footprint:"})," Track where your photos appear online."]})]}),v.jsx("h2",{children:"Applications of Face Search Technology"}),v.jsxs("ul",{children:[v.jsxs("li",{children:[v.jsx("strong",{children:"Personal Privacy:"})," Identify unauthorized use of your images."]}),v.jsxs("li",{children:[v.jsx("strong",{children:"Law Enforcement:"})," Aid in identifying suspects or missing persons."]}),v.jsxs("li",{children:[v.jsx("strong",{children:"Journalism and Research:"})," Track image usage and verify authenticity."]}),v.jsxs("li",{children:[v.jsx("strong",{children:"Brand Monitoring:"})," Monitor brand/logo/image usage online."]}),v.jsxs("li",{children:[v.jsx("strong",{children:"Social Media Management:"})," Help influencers manage their photo shares."]})]}),v.jsx("h2",{children:"Why Choose Our Face Search Tool?"}),v.jsxs("ul",{children:[v.jsxs("li",{children:[v.jsx("strong",{children:"Advanced AI Technology:"})," State-of-the-art face search algorithm."]}),v.jsxs("li",{children:[v.jsx("strong",{children:"User-Friendly Interface:"})," Easy to use, no tech expertise needed."]}),v.jsxs("li",{children:[v.jsx("strong",{children:"Fast Results:"})," Get results in seconds."]}),v.jsxs("li",{children:[v.jsx("strong",{children:"Privacy and Security:"})," All uploads are secure and private."]})]}),v.jsx("h2",{children:"Get Started with Face Search Today"}),v.jsx("p",{children:"Ready to take control of your digital presence? Whether protecting privacy or conducting research, upload an image today and discover where your photos are being used across the web."})]}),Az=()=>v.jsxs("div",{className:"seo-content",style:{maxWidth:"800px",margin:"2rem auto",padding:"2rem"},children:[v.jsx("h1",{children:"Reverse Image Search: Find Where Pictures Appear Online"}),v.jsxs("section",{children:[v.jsx("h2",{children:"What is Reverse Image Search?"}),v.jsxs("p",{children:[v.jsx("strong",{children:"Reverse image search"})," allows you to search the web using images instead of text. Simply upload a photo or paste an image URL to ",v.jsx("em",{children:"find similar images"}),", discover the original source, or see where else the picture appears online."]}),v.jsxs("p",{children:["Our powerful ",v.jsx("strong",{children:"picture lookup"})," technology scans billions of web pages to provide comprehensive results about any image."]})]}),v.jsxs("section",{children:[v.jsx("h2",{children:"Key Features of Our Image Search"}),v.jsxs("ul",{children:[v.jsx("li",{children:"Find higher resolution versions of images"}),v.jsx("li",{children:"Discover modified or edited copies"}),v.jsx("li",{children:"Track where your photos are being used"}),v.jsx("li",{children:"Verify authenticity of viral images"}),v.jsx("li",{children:"Identify objects, landmarks, or artwork"})]})]}),v.jsxs("section",{children:[v.jsx("h2",{children:"How to Use Reverse Image Search"}),v.jsxs("ol",{children:[v.jsx("li",{children:"Upload an image file (JPG, PNG, etc.)"}),v.jsx("li",{children:"Or paste an image URL from the web"}),v.jsx("li",{children:"Our system analyzes visual features"}),v.jsx("li",{children:"Returns visually similar matches"}),v.jsx("li",{children:"Shows all websites using the image"})]}),v.jsxs("p",{children:["Get results in seconds with our advanced ",v.jsx("strong",{children:"image finder"})," ","technology."]})]})]}),kz=()=>v.jsxs("div",{className:"seo-content",style:{maxWidth:"800px",margin:"2rem auto",padding:"2rem"},children:[v.jsx("h1",{children:"Social Name Search: Find People Across All Major Networks"}),v.jsxs("section",{children:[v.jsx("h2",{children:"What is Social Name Search?"}),v.jsxs("p",{children:[v.jsx("strong",{children:"Social name search"})," helps you find people across multiple social media platforms using just their name, username, or other identifying information. Our ",v.jsx("em",{children:"profile finder"})," scans Facebook, Instagram, Twitter, LinkedIn and more to compile comprehensive results."]}),v.jsxs("p",{children:["This powerful ",v.jsx("strong",{children:"people search online"})," tool is perfect for reconnecting with old friends, verifying identities, or researching individuals."]})]}),v.jsxs("section",{children:[v.jsx("h2",{children:"Platforms We Search"}),v.jsxs("ul",{children:[v.jsx("li",{children:"Facebook & Instagram"}),v.jsx("li",{children:"Twitter (X)"}),v.jsx("li",{children:"LinkedIn"}),v.jsx("li",{children:"TikTok"}),v.jsx("li",{children:"YouTube"}),v.jsx("li",{children:"Reddit"}),v.jsx("li",{children:"And many more"})]})]}),v.jsxs("section",{children:[v.jsx("h2",{children:"How Our Social Search Works"}),v.jsxs("ol",{children:[v.jsx("li",{children:"Enter a name, username, or email"}),v.jsx("li",{children:"Add location or other details (optional)"}),v.jsx("li",{children:"Our system scans multiple networks"}),v.jsx("li",{children:"Compiles all matching profiles"}),v.jsx("li",{children:"Presents verified results"})]}),v.jsxs("p",{children:["Our ",v.jsx("strong",{children:"username lookup"})," technology saves hours of manual searching across different platforms."]})]})]}),Oz=()=>v.jsxs("div",{className:"seo-content",style:{maxWidth:"800px",margin:"2rem auto",padding:"2rem"},children:[v.jsxs("header",{children:[v.jsx("h1",{children:"AI Funny Video Generator"}),v.jsx("p",{children:"Create Hilarious Videos from Your Selfies Instantly"})]}),v.jsxs("section",{children:[v.jsx("h2",{children:"Make Everyone Laugh with AI-Powered Video Magic"}),v.jsxs("p",{children:["Transform any selfie into a side-splitting short video using our"," ",v.jsx("strong",{children:"AI Funny Video Generator"}),". Whether you're looking to make someone smile, create a viral TikTok-style clip, or just have fun with your friends, our tool turns your ordinary photos into extraordinary, goofy animations."]}),v.jsxs("p",{children:["Powered by advanced machine learning, our generator can animate faces, add voiceovers, and even mimic popular memes to create funny videos that are perfect for sharing on"," ",v.jsx("strong",{children:"Reddit, Instagram, TikTok, and YouTube Shorts"}),"."]})]}),v.jsxs("section",{children:[v.jsx("h2",{children:"How It Works"}),v.jsxs("ol",{children:[v.jsx("li",{children:"Upload a selfie (or any portrait-style photo)"}),v.jsx("li",{children:"Choose a funny video style or meme template"}),v.jsx("li",{children:"Let the AI work its magic"}),v.jsx("li",{children:"Download or share your video instantly"})]}),v.jsx("p",{children:"No video editing skills needed. It's all automatic!"})]}),v.jsxs("section",{children:[v.jsx("h2",{children:"Features"}),v.jsxs("ul",{children:[v.jsx("li",{children:"🎭 Face animation and expression morphing"}),v.jsx("li",{children:"🎤 AI-generated voice and lip-sync"}),v.jsx("li",{children:"🎬 Pre-made funny templates & meme styles"}),v.jsx("li",{children:"📲 Instant sharing to social media"}),v.jsx("li",{children:"💾 Downloadable HD video clips"})]})]}),v.jsxs("section",{children:[v.jsx("h2",{children:"Why Use Our Funny Face Video Generator?"}),v.jsxs("p",{children:["Our AI video maker makes it easy to stand out online. Whether you're creating content for your subreddit, a social media challenge, or just goofing around with friends, the"," ",v.jsx("strong",{children:"AI Funny Face Video Generator"})," is your go-to tool for fast, funny, and unforgettable videos."]}),v.jsx("p",{children:"It’s ideal for content creators, meme lovers, marketers, and anyone who wants to turn boring selfies into viral fun."})]}),v.jsxs("section",{children:[v.jsx("h2",{children:"Try It Now – It's Free!"}),v.jsx("p",{children:"Ready to turn your selfie into a silly sensation? Give it a try and join the wave of funny, AI-generated video content!"})]})]});function y2({title:e,subtitle:t,features:n,image:r,reverse:a=!1}){return v.jsx(ce,{sx:{py:{xs:2,sm:4,md:8},px:2,mx:"auto"},children:v.jsx(ce,{maxWidth:"1350px",display:"flex",flexDirection:"column",margin:"0 auto",children:v.jsxs(wf,{container:!0,spacing:{xs:4,md:12},direction:{xs:"column-reverse",md:a?"row-reverse":"row"},justifyContent:"center",children:[v.jsx(wf,{sx:{gridColumn:{xs:"span 12",sm:"span 12",md:"span 6"},width:{xs:"100%",sm:"100%",md:"400px",lg:"550px"},display:"flex",alignSelf:"center"},children:v.jsxs(ce,{children:[v.jsx(Ye,{variant:"subtitle2",sx:{color:"#12B981",fontWeight:600,mb:1},children:t}),v.jsx(Ye,{component:"h2",sx:{color:"white",fontWeight:700,fontSize:{xs:"24px",sm:"30px",md:"36px"},whiteSpace:"pre-line",wordBreak:"break-word",mb:3},children:e}),v.jsx(K5,{sx:{color:"white",maxWidth:"100%",py:0},children:n.map((s,l)=>v.jsxs(yP,{disableGutters:!0,sx:{py:.5,alignItems:"flex-start"},children:[v.jsx(wP,{sx:{minWidth:32,mt:"2px"},children:v.jsx(Gh,{sx:{color:"#12B981"}})}),v.jsx(Z5,{primary:s})]},l))})]})}),v.jsx(wf,{sx:{gridColumn:{xs:"span 12",sm:"span 12",md:"span 6"},width:{xs:"90%",sm:"90%",md:"400px",lg:"550px"},display:"flex"},children:v.jsx(w_,{sx:{borderRadius:10,overflow:"hidden",boxShadow:3,p:{xs:2,sm:5,md:8},width:"100%",backgroundColor:"#15202D",border:"1px solid rgba(255, 255, 255, 0.08)",display:"block",alignSelf:"center"},children:v.jsx(V5,{component:"img",image:r,alt:"Feature visual",sx:{width:"100%",height:"auto",objectFit:"cover",display:"block"}})})})]})})})}const dx=Yn(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),LR=({open:e,onClose:t})=>v.jsxs(Ag,{open:e,onClose:t,fullWidth:!0,maxWidth:"md",children:[v.jsxs(ox,{sx:{m:0,p:2,display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"#151D2C",color:"#fff"},children:["Privacy Policy",v.jsx(Ga,{"aria-label":"close",onClick:t,sx:{color:"#fff"},children:v.jsx(dx,{})})]}),v.jsx(ax,{dividers:!0,sx:{backgroundColor:"#1e293b",color:"#e2e8f0",fontSize:"14px",lineHeight:"28px",fontFamily:"Inter, sans-serif",letterSpacing:"-0.5px"},dangerouslySetInnerHTML:{__html:`
+            <p><strong>Last Updated:</strong> January 1, 2025</p>
+            <h3>1. Introduction</h3>
+            <p>Welcome to FaceSeek ("we," "our," or "us"). We are committed to protecting your privacy. This Privacy Policy explains how we collect, use, disclose, and safeguard your information when you use our face search services.</p>
+
+            <h3>2. Information We Collect</h3>
+            <p><strong>Personal Data</strong><br />
+            We may collect personally identifiable information when you:</p>
+            <ul>
+              <li>Upload images for face searching</li>
+              <li>Create an account</li>
+              <li>Contact our support team</li>
+            </ul>
+            <p><strong>Usage Data</strong><br />
+            We automatically collect information about:</p>
+            <ul>
+              <li>Search queries and results</li>
+              <li>IP addresses and device information</li>
+              <li>Cookies and tracking technologies</li>
+            </ul>
+
+            <h3>3. How We Use Your Information</h3>
+            <ul>
+              <li>Provide and maintain our service</li>
+              <li>Improve face recognition algorithms</li>
+              <li>Respond to your inquiries</li>
+              <li>Monitor usage patterns</li>
+              <li>Detect and prevent fraud</li>
+            </ul>
+
+            <h3>4. Data Sharing and Disclosure</h3>
+            <p>We may share information with:</p>
+            <ul>
+              <li>Service providers assisting our operations</li>
+              <li>Law enforcement when legally required</li>
+              <li>Third parties during business transfers</li>
+            </ul>
+            <p>We do not sell your personal data to advertisers.</p>
+
+            <h3>5. Data Retention</h3>
+            <p>We retain uploaded images for 30 days unless you create an account and choose to save your search history.</p>
+
+            <h3>6. Your Rights</h3>
+            <p>Depending on your location, you may have rights to:</p>
+            <ul>
+              <li>Access your personal data</li>
+              <li>Request deletion of your data</li>
+              <li>Opt-out of certain uses</li>
+            </ul>
+
+            <h3>7. Security</h3>
+            <p>We implement industry-standard security measures including encryption and access controls. However, no method of transmission over the Internet is 100% secure.</p>
+
+            <h3>8. Changes to This Policy</h3>
+            <p>We may update this policy periodically. We will notify you of significant changes through our website or email.</p>
+
+            <h3>9. Contact Us</h3>
+            <p>For questions about this policy, contact us at <a href="mailto:contact@faceseek.com">contact@faceseek.com</a>.</p>
+          `}})]}),PR=({open:e,onClose:t})=>v.jsxs(Ag,{open:e,onClose:t,fullWidth:!0,maxWidth:"md",children:[v.jsxs(ox,{sx:{m:0,p:2,display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"#151D2C",color:"#fff"},children:["Terms of Service",v.jsx(Ga,{"aria-label":"close",onClick:t,sx:{color:"#fff"},children:v.jsx(dx,{})})]}),v.jsx(ax,{dividers:!0,sx:{backgroundColor:"#1e293b",color:"#e2e8f0",fontSize:"14px",lineHeight:"28px",fontFamily:"Inter, sans-serif",letterSpacing:"-0.5px"},dangerouslySetInnerHTML:{__html:`
+            <p><strong>Last Updated:</strong> January 1, 2025</p>
+
+            <h3>1. Acceptance of Terms</h3>
+            <p>By accessing or using FaceSeek ("Service"), you agree to be bound by these Terms of Service. If you disagree, you may not use our Service.</p>
+            
+            <h3>2. Service Description</h3>
+            <p>FaceSeek provides facial recognition search technology to help users find matches across public websites and social networks.</p>
+            
+            <h3>3. User Responsibilities</h3>
+            <p>You agree:</p>
+            <ul>
+              <li>Not to use the Service for illegal purposes</li>
+              <li>Not to upload images without proper authorization</li>
+              <li>Not to harass or stalk individuals</li>
+              <li>To comply with all applicable laws</li>
+            </ul>
+            
+            <h3>4. Prohibited Uses</h3>
+            <p>You may not use our Service to:</p>
+            <ul>
+              <li>Violate privacy rights</li>
+              <li>Impersonate others</li>
+              <li>Engage in discrimination</li>
+              <li>Conduct surveillance without consent</li>
+            </ul>
+            
+            <h3>5. Intellectual Property</h3>
+            <p>All content and technology provided by FaceSeek is our property or licensed to us. You may not reverse engineer or misuse our technology.</p>
+            
+            <h3>6. Disclaimers</h3>
+            <p>The Service is provided "as is." We do not guarantee:</p>
+            <ul>
+              <li>Accuracy of search results</li>
+              <li>Continuous availability</li>
+              <li>Completeness of data</li>
+            </ul>
+            
+            <h3>7. Limitation of Liability</h3>
+            <p>FaceSeek shall not be liable for any indirect, incidental, or consequential damages arising from use of the Service.</p>
+            
+            <h3>8. Indemnification</h3>
+            <p>You agree to indemnify FaceSeek against claims resulting from your misuse of the Service.</p>
+            
+            <h3>9. Modifications</h3>
+            <p>We reserve the right to modify these terms at any time. Continued use constitutes acceptance of changes.</p>
+            
+            <h3>10. Governing Law</h3>
+            <p>These terms shall be governed by the laws of [Your State/Country] without regard to conflict of law provisions.</p>
+            
+            <h3>11. Termination</h3>
+            <p>We may terminate access for violations of these terms without notice.</p>
+            
+            <h3>12. Contact Information</h3>
+            <p>For questions about these terms, contact us at <a href="mailto:contact@faceseek.com">contact@faceseek.com</a>.</p>            
+          `}})]}),Mz=Yn(v.jsx("path",{d:"M19 19H5V5h7V3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2v-7h-2zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3z"})),lS=({open:e,onClose:t,resultUrl:n,title:r,contents:a})=>{const s=()=>{window.open(n,"_blank","noopener"),t()};return v.jsxs(Ag,{open:e,onClose:t,fullWidth:!0,maxWidth:"sm",children:[v.jsxs(ox,{sx:{m:0,p:2,display:"flex",justifyContent:"space-between",alignItems:"center",backgroundColor:"#151D2C",color:"#fff"},children:[r,v.jsx(Ga,{"aria-label":"close",onClick:t,sx:{color:"#fff"},children:v.jsx(dx,{})})]}),v.jsx(ax,{dividers:!0,sx:{backgroundColor:"#1e293b",color:"#e2e8f0",fontSize:"15px",lineHeight:"28px",display:"flex",flexDirection:"column",alignItems:"center",gap:2,py:4},children:v.jsx(qi,{variant:"contained",onClick:s,endIcon:v.jsx(Mz,{}),sx:{backgroundColor:"#12B981","&:hover":{backgroundColor:"#0fa76d"},px:4,py:1.5,fontWeight:"bold",fontSize:"16px",textTransform:"none"},children:a})})]})};var cS=function(){return cS=Object.assign||function(t){for(var n,r=1,a=arguments.length;r<a;r++){n=arguments[r];for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(t[s]=n[s])}return t},cS.apply(this,arguments)};function Ts(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function f(g){try{p(r.next(g))}catch(b){l(b)}}function m(g){try{p(r.throw(g))}catch(b){l(b)}}function p(g){g.done?s(g.value):a(g.value).then(f,m)}p((r=r.apply(e,t||[])).next())})}function Rs(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=f(0),l.throw=f(1),l.return=f(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(p){return function(g){return m([p,g])}}function m(p){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,p[0]&&(n=0)),n;)try{if(r=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,a=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){n.label=p[1];break}if(p[0]===6&&n.label<s[1]){n.label=s[1],s=p;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(p);break}s[2]&&n.ops.pop(),n.trys.pop();continue}p=t.call(e,n)}catch(g){p=[6,g],a=0}finally{r=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}}function NR(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,s;r<a;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))}var FR="4.6.2";function xb(e,t){return new Promise(function(n){return setTimeout(n,e,t)})}function Dz(){return new Promise(function(e){var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(null)})}function jz(e,t){t===void 0&&(t=1/0);var n=window.requestIdleCallback;return n?new Promise(function(r){return n.call(window,function(){return r()},{timeout:t})}):xb(Math.min(e,t))}function BR(e){return!!e&&typeof e.then=="function"}function DE(e,t){try{var n=e();BR(n)?n.then(function(r){return t(!0,r)},function(r){return t(!1,r)}):t(!0,n)}catch(r){t(!1,r)}}function jE(e,t,n){return n===void 0&&(n=16),Ts(this,void 0,void 0,function(){var r,a,s,l;return Rs(this,function(f){switch(f.label){case 0:r=Array(e.length),a=Date.now(),s=0,f.label=1;case 1:return s<e.length?(r[s]=t(e[s],s),l=Date.now(),l>=a+n?(a=l,[4,Dz()]):[3,3]):[3,4];case 2:f.sent(),f.label=3;case 3:return++s,[3,1];case 4:return[2,r]}})})}function eg(e){return e.then(void 0,function(){}),e}function Iz(e,t){for(var n=0,r=e.length;n<r;++n)if(e[n]===t)return!0;return!1}function Lz(e,t){return!Iz(e,t)}function D_(e){return parseInt(e)}function wo(e){return parseFloat(e)}function ul(e,t){return typeof e=="number"&&isNaN(e)?t:e}function Ai(e){return e.reduce(function(t,n){return t+(n?1:0)},0)}function zR(e,t){if(t===void 0&&(t=1),Math.abs(t)>=1)return Math.round(e/t)*t;var n=1/t;return Math.round(e*n)/n}function Pz(e){for(var t,n,r="Unexpected syntax '".concat(e,"'"),a=/^\s*([a-z-]*)(.*)$/i.exec(e),s=a[1]||void 0,l={},f=/([.:#][\w-]+|\[.+?\])/gi,m=function(S,T){l[S]=l[S]||[],l[S].push(T)};;){var p=f.exec(a[2]);if(!p)break;var g=p[0];switch(g[0]){case".":m("class",g.slice(1));break;case"#":m("id",g.slice(1));break;case"[":{var b=/^\[([\w-]+)([~|^$*]?=("(.*?)"|([\w-]+)))?(\s+[is])?\]$/.exec(g);if(b)m(b[1],(n=(t=b[4])!==null&&t!==void 0?t:b[5])!==null&&n!==void 0?n:"");else throw new Error(r);break}default:throw new Error(r)}}return[s,l]}function Nz(e){for(var t=new Uint8Array(e.length),n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r>127)return new TextEncoder().encode(e);t[n]=r}return t}function kc(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,s=e[1]&65535,l=t[0]>>>16,f=t[0]&65535,m=t[1]>>>16,p=t[1]&65535,g=0,b=0,S=0,T=0;T+=s+p,S+=T>>>16,T&=65535,S+=a+m,b+=S>>>16,S&=65535,b+=r+f,g+=b>>>16,b&=65535,g+=n+l,g&=65535,e[0]=g<<16|b,e[1]=S<<16|T}function za(e,t){var n=e[0]>>>16,r=e[0]&65535,a=e[1]>>>16,s=e[1]&65535,l=t[0]>>>16,f=t[0]&65535,m=t[1]>>>16,p=t[1]&65535,g=0,b=0,S=0,T=0;T+=s*p,S+=T>>>16,T&=65535,S+=a*p,b+=S>>>16,S&=65535,S+=s*m,b+=S>>>16,S&=65535,b+=r*p,g+=b>>>16,b&=65535,b+=a*m,g+=b>>>16,b&=65535,b+=s*f,g+=b>>>16,b&=65535,g+=n*p+r*m+a*f+s*l,g&=65535,e[0]=g<<16|b,e[1]=S<<16|T}function Sh(e,t){var n=e[0];t%=64,t===32?(e[0]=e[1],e[1]=n):t<32?(e[0]=n<<t|e[1]>>>32-t,e[1]=e[1]<<t|n>>>32-t):(t-=32,e[0]=e[1]<<t|n>>>32-t,e[1]=n<<t|e[1]>>>32-t)}function da(e,t){t%=64,t!==0&&(t<32?(e[0]=e[1]>>>32-t,e[1]=e[1]<<t):(e[0]=e[1]<<t-32,e[1]=0))}function er(e,t){e[0]^=t[0],e[1]^=t[1]}var Fz=[4283543511,3981806797],Bz=[3301882366,444984403];function IE(e){var t=[0,e[0]>>>1];er(e,t),za(e,Fz),t[1]=e[0]>>>1,er(e,t),za(e,Bz),t[1]=e[0]>>>1,er(e,t)}var Av=[2277735313,289559509],kv=[1291169091,658871167],LE=[0,5],zz=[0,1390208809],Uz=[0,944331445];function $z(e,t){var n=Nz(e);t=t||0;var r=[0,n.length],a=r[1]%16,s=r[1]-a,l=[0,t],f=[0,t],m=[0,0],p=[0,0],g;for(g=0;g<s;g=g+16)m[0]=n[g+4]|n[g+5]<<8|n[g+6]<<16|n[g+7]<<24,m[1]=n[g]|n[g+1]<<8|n[g+2]<<16|n[g+3]<<24,p[0]=n[g+12]|n[g+13]<<8|n[g+14]<<16|n[g+15]<<24,p[1]=n[g+8]|n[g+9]<<8|n[g+10]<<16|n[g+11]<<24,za(m,Av),Sh(m,31),za(m,kv),er(l,m),Sh(l,27),kc(l,f),za(l,LE),kc(l,zz),za(p,kv),Sh(p,33),za(p,Av),er(f,p),Sh(f,31),kc(f,l),za(f,LE),kc(f,Uz);m[0]=0,m[1]=0,p[0]=0,p[1]=0;var b=[0,0];switch(a){case 15:b[1]=n[g+14],da(b,48),er(p,b);case 14:b[1]=n[g+13],da(b,40),er(p,b);case 13:b[1]=n[g+12],da(b,32),er(p,b);case 12:b[1]=n[g+11],da(b,24),er(p,b);case 11:b[1]=n[g+10],da(b,16),er(p,b);case 10:b[1]=n[g+9],da(b,8),er(p,b);case 9:b[1]=n[g+8],er(p,b),za(p,kv),Sh(p,33),za(p,Av),er(f,p);case 8:b[1]=n[g+7],da(b,56),er(m,b);case 7:b[1]=n[g+6],da(b,48),er(m,b);case 6:b[1]=n[g+5],da(b,40),er(m,b);case 5:b[1]=n[g+4],da(b,32),er(m,b);case 4:b[1]=n[g+3],da(b,24),er(m,b);case 3:b[1]=n[g+2],da(b,16),er(m,b);case 2:b[1]=n[g+1],da(b,8),er(m,b);case 1:b[1]=n[g],er(m,b),za(m,Av),Sh(m,31),za(m,kv),er(l,m)}return er(l,r),er(f,r),kc(l,f),kc(f,l),IE(l),IE(f),kc(l,f),kc(f,l),("00000000"+(l[0]>>>0).toString(16)).slice(-8)+("00000000"+(l[1]>>>0).toString(16)).slice(-8)+("00000000"+(f[0]>>>0).toString(16)).slice(-8)+("00000000"+(f[1]>>>0).toString(16)).slice(-8)}function Hz(e){var t;return cS({name:e.name,message:e.message,stack:(t=e.stack)===null||t===void 0?void 0:t.split(`
+`)},e)}function Vz(e){return/^function\s.*?\{\s*\[native code]\s*}$/.test(String(e))}function Wz(e){return typeof e!="function"}function Gz(e,t){var n=eg(new Promise(function(r){var a=Date.now();DE(e.bind(null,t),function(){for(var s=[],l=0;l<arguments.length;l++)s[l]=arguments[l];var f=Date.now()-a;if(!s[0])return r(function(){return{error:s[1],duration:f}});var m=s[1];if(Wz(m))return r(function(){return{value:m,duration:f}});r(function(){return new Promise(function(p){var g=Date.now();DE(m,function(){for(var b=[],S=0;S<arguments.length;S++)b[S]=arguments[S];var T=f+Date.now()-g;if(!b[0])return p({error:b[1],duration:T});p({value:b[1],duration:T})})})})})}));return function(){return n.then(function(a){return a()})}}function Yz(e,t,n,r){var a=Object.keys(e).filter(function(l){return Lz(n,l)}),s=eg(jE(a,function(l){return Gz(e[l],t)},r));return function(){return Ts(this,void 0,void 0,function(){var f,m,p,g,b;return Rs(this,function(S){switch(S.label){case 0:return[4,s];case 1:return f=S.sent(),[4,jE(f,function(T){return eg(T())},r)];case 2:return m=S.sent(),[4,Promise.all(m)];case 3:for(p=S.sent(),g={},b=0;b<a.length;++b)g[a[b]]=p[b];return[2,g]}})})}}function UR(){var e=window,t=navigator;return Ai(["MSCSSMatrix"in e,"msSetImmediate"in e,"msIndexedDB"in e,"msMaxTouchPoints"in t,"msPointerEnabled"in t])>=4}function qz(){var e=window,t=navigator;return Ai(["msWriteProfilerMark"in e,"MSStream"in e,"msLaunchUri"in t,"msSaveBlob"in t])>=3&&!UR()}function Dg(){var e=window,t=navigator;return Ai(["webkitPersistentStorage"in t,"webkitTemporaryStorage"in t,(t.vendor||"").indexOf("Google")===0,"webkitResolveLocalFileSystemURL"in e,"BatteryManager"in e,"webkitMediaStream"in e,"webkitSpeechGrammar"in e])>=5}function Oo(){var e=window,t=navigator;return Ai(["ApplePayError"in e,"CSSPrimitiveValue"in e,"Counter"in e,t.vendor.indexOf("Apple")===0,"RGBColor"in e,"WebKitMediaKeys"in e])>=4}function j_(){var e=window,t=e.HTMLElement,n=e.Document;return Ai(["safari"in e,!("ongestureend"in e),!("TouchEvent"in e),!("orientation"in e),t&&!("autocapitalize"in t.prototype),n&&"pointerLockElement"in n.prototype])>=4}function jg(){var e=window;return Vz(e.print)&&String(e.browser)==="[object WebPageNamespace]"}function $R(){var e,t,n=window;return Ai(["buildID"in navigator,"MozAppearance"in((t=(e=document.documentElement)===null||e===void 0?void 0:e.style)!==null&&t!==void 0?t:{}),"onmozfullscreenchange"in n,"mozInnerScreenX"in n,"CSSMozDocumentRule"in n,"CanvasCaptureMediaStream"in n])>=4}function Kz(){var e=window;return Ai([!("MediaSettingsRange"in e),"RTCEncodedAudioFrame"in e,""+e.Intl=="[object Intl]",""+e.Reflect=="[object Reflect]"])>=3}function Xz(){var e=window,t=e.URLPattern;return Ai(["union"in Set.prototype,"Iterator"in e,t&&"hasRegExpGroups"in t.prototype,"RGB8"in WebGLRenderingContext.prototype])>=3}function Zz(){var e=window;return Ai(["DOMRectList"in e,"RTCPeerConnectionIceEvent"in e,"SVGGeometryElement"in e,"ontransitioncancel"in e])>=3}function Ig(){var e=window,t=navigator,n=e.CSS,r=e.HTMLButtonElement;return Ai([!("getStorageUpdates"in t),r&&"popover"in r.prototype,"CSSCounterStyleRule"in e,n.supports("font-size-adjust: ex-height 0.5"),n.supports("text-transform: full-width")])>=4}function Jz(){if(navigator.platform==="iPad")return!0;var e=screen,t=e.width/e.height;return Ai(["MediaSource"in window,!!Element.prototype.webkitRequestFullscreen,t>.65&&t<1.53])>=2}function Qz(){var e=document;return e.fullscreenElement||e.msFullscreenElement||e.mozFullScreenElement||e.webkitFullscreenElement||null}function eU(){var e=document;return(e.exitFullscreen||e.msExitFullscreen||e.mozCancelFullScreen||e.webkitExitFullscreen).call(e)}function I_(){var e=Dg(),t=$R(),n=window,r=navigator,a="connection";return e?Ai([!("SharedWorker"in n),r[a]&&"ontypechange"in r[a],!("sinkId"in new Audio)])>=2:t?Ai(["onorientationchange"in n,"orientation"in n,/android/i.test(r.appVersion)])>=2:!1}function tU(){var e=navigator,t=window,n=Audio.prototype,r=t.visualViewport;return Ai(["srLatency"in n,"srChannelCount"in n,"devicePosture"in e,r&&"segments"in r,"getTextInformation"in Image.prototype])>=3}function nU(){return aU()?-4:rU()}function rU(){var e=window,t=e.OfflineAudioContext||e.webkitOfflineAudioContext;if(!t)return-2;if(iU())return-1;var n=4500,r=5e3,a=new t(1,r,44100),s=a.createOscillator();s.type="triangle",s.frequency.value=1e4;var l=a.createDynamicsCompressor();l.threshold.value=-50,l.knee.value=40,l.ratio.value=12,l.attack.value=0,l.release.value=.25,s.connect(l),l.connect(a.destination),s.start(0);var f=oU(a),m=f[0],p=f[1],g=eg(m.then(function(b){return sU(b.getChannelData(0).subarray(n))},function(b){if(b.name==="timeout"||b.name==="suspended")return-3;throw b}));return function(){return p(),g}}function iU(){return Oo()&&!j_()&&!Zz()}function aU(){return Oo()&&Ig()&&jg()||Dg()&&tU()&&Xz()}function oU(e){var t=3,n=500,r=500,a=5e3,s=function(){},l=new Promise(function(f,m){var p=!1,g=0,b=0;e.oncomplete=function(C){return f(C.renderedBuffer)};var S=function(){setTimeout(function(){return m(PE("timeout"))},Math.min(r,b+a-Date.now()))},T=function(){try{var C=e.startRendering();switch(BR(C)&&eg(C),e.state){case"running":b=Date.now(),p&&S();break;case"suspended":document.hidden||g++,p&&g>=t?m(PE("suspended")):setTimeout(T,n);break}}catch(E){m(E)}};T(),s=function(){p||(p=!0,b>0&&S())}});return[l,s]}function sU(e){for(var t=0,n=0;n<e.length;++n)t+=Math.abs(e[n]);return t}function PE(e){var t=new Error(e);return t.name=e,t}function HR(e,t,n){var r,a,s;return n===void 0&&(n=50),Ts(this,void 0,void 0,function(){var l,f;return Rs(this,function(m){switch(m.label){case 0:l=document,m.label=1;case 1:return l.body?[3,3]:[4,xb(n)];case 2:return m.sent(),[3,1];case 3:f=l.createElement("iframe"),m.label=4;case 4:return m.trys.push([4,,10,11]),[4,new Promise(function(p,g){var b=!1,S=function(){b=!0,p()},T=function(A){b=!0,g(A)};f.onload=S,f.onerror=T;var C=f.style;C.setProperty("display","block","important"),C.position="absolute",C.top="0",C.left="0",C.visibility="hidden",t&&"srcdoc"in f?f.srcdoc=t:f.src="about:blank",l.body.appendChild(f);var E=function(){var A,k;b||(((k=(A=f.contentWindow)===null||A===void 0?void 0:A.document)===null||k===void 0?void 0:k.readyState)==="complete"?S():setTimeout(E,10))};E()})];case 5:m.sent(),m.label=6;case 6:return!((a=(r=f.contentWindow)===null||r===void 0?void 0:r.document)===null||a===void 0)&&a.body?[3,8]:[4,xb(n)];case 7:return m.sent(),[3,6];case 8:return[4,e(f,f.contentWindow)];case 9:return[2,m.sent()];case 10:return(s=f.parentNode)===null||s===void 0||s.removeChild(f),[7];case 11:return[2]}})})}function lU(e){for(var t=Pz(e),n=t[0],r=t[1],a=document.createElement(n??"div"),s=0,l=Object.keys(r);s<l.length;s++){var f=l[s],m=r[f].join(" ");f==="style"?cU(a.style,m):a.setAttribute(f,m)}return a}function cU(e,t){for(var n=0,r=t.split(";");n<r.length;n++){var a=r[n],s=/^\s*([\w-]+)\s*:\s*(.+?)(\s*!([\w-]+))?\s*$/.exec(a);if(s){var l=s[1],f=s[2],m=s[4];e.setProperty(l,f,m||"")}}}function uU(){for(var e=window;;){var t=e.parent;if(!t||t===e)return!1;try{if(t.location.origin!==e.location.origin)return!0}catch(n){if(n instanceof Error&&n.name==="SecurityError")return!0;throw n}e=t}}var fU="mmMwWLliI0O&1",dU="48px",_h=["monospace","sans-serif","serif"],NE=["sans-serif-thin","ARNO PRO","Agency FB","Arabic Typesetting","Arial Unicode MS","AvantGarde Bk BT","BankGothic Md BT","Batang","Bitstream Vera Sans Mono","Calibri","Century","Century Gothic","Clarendon","EUROSTILE","Franklin Gothic","Futura Bk BT","Futura Md BT","GOTHAM","Gill Sans","HELV","Haettenschweiler","Helvetica Neue","Humanst521 BT","Leelawadee","Letter Gothic","Levenim MT","Lucida Bright","Lucida Sans","Menlo","MS Mincho","MS Outlook","MS Reference Specialty","MS UI Gothic","MT Extra","MYRIAD PRO","Marlett","Meiryo UI","Microsoft Uighur","Minion Pro","Monotype Corsiva","PMingLiU","Pristina","SCRIPTINA","Segoe UI Light","Serifa","SimHei","Small Fonts","Staccato222 BT","TRAJAN PRO","Univers CE 55 Medium","Vrinda","ZWAdobeF"];function hU(){var e=this;return HR(function(t,n){var r=n.document;return Ts(e,void 0,void 0,function(){var a,s,l,f,m,p,g,b,S,T,C,E;return Rs(this,function(A){for(a=r.body,a.style.fontSize=dU,s=r.createElement("div"),s.style.setProperty("visibility","hidden","important"),l={},f={},m=function(k){var L=r.createElement("span"),O=L.style;return O.position="absolute",O.top="0",O.left="0",O.fontFamily=k,L.textContent=fU,s.appendChild(L),L},p=function(k,L){return m("'".concat(k,"',").concat(L))},g=function(){return _h.map(m)},b=function(){for(var k={},L=function($){k[$]=_h.map(function(B){return p($,B)})},O=0,P=NE;O<P.length;O++){var M=P[O];L(M)}return k},S=function(k){return _h.some(function(L,O){return k[O].offsetWidth!==l[L]||k[O].offsetHeight!==f[L]})},T=g(),C=b(),a.appendChild(s),E=0;E<_h.length;E++)l[_h[E]]=T[E].offsetWidth,f[_h[E]]=T[E].offsetHeight;return[2,NE.filter(function(k){return S(C[k])})]})})})}function pU(){var e=navigator.plugins;if(e){for(var t=[],n=0;n<e.length;++n){var r=e[n];if(r){for(var a=[],s=0;s<r.length;++s){var l=r[s];a.push({type:l.type,suffixes:l.suffixes})}t.push({name:r.name,description:r.description,mimeTypes:a})}}return t}}function mU(){return gU(_U())}function gU(e){var t,n=!1,r,a,s=yU(),l=s[0],f=s[1];return vU(l,f)?(n=bU(f),e?r=a="skipped":(t=xU(l,f),r=t[0],a=t[1])):r=a="unsupported",{winding:n,geometry:r,text:a}}function yU(){var e=document.createElement("canvas");return e.width=1,e.height=1,[e,e.getContext("2d")]}function vU(e,t){return!!(t&&e.toDataURL)}function bU(e){return e.rect(0,0,10,10),e.rect(2,2,6,6),!e.isPointInPath(5,5,"evenodd")}function xU(e,t){wU(e,t);var n=v2(e),r=v2(e);if(n!==r)return["unstable","unstable"];SU(e,t);var a=v2(e);return[a,n]}function wU(e,t){e.width=240,e.height=60,t.textBaseline="alphabetic",t.fillStyle="#f60",t.fillRect(100,1,62,20),t.fillStyle="#069",t.font='11pt "Times New Roman"';var n="Cwm fjordbank gly ".concat("😃");t.fillText(n,2,15),t.fillStyle="rgba(102, 204, 0, 0.2)",t.font="18pt Arial",t.fillText(n,4,45)}function SU(e,t){e.width=122,e.height=110,t.globalCompositeOperation="multiply";for(var n=0,r=[["#f2f",40,40],["#2ff",80,40],["#ff2",60,80]];n<r.length;n++){var a=r[n],s=a[0],l=a[1],f=a[2];t.fillStyle=s,t.beginPath(),t.arc(l,f,40,0,Math.PI*2,!0),t.closePath(),t.fill()}t.fillStyle="#f9c",t.arc(60,60,60,0,Math.PI*2,!0),t.arc(60,60,20,0,Math.PI*2,!0),t.fill("evenodd")}function v2(e){return e.toDataURL()}function _U(){return Oo()&&Ig()&&jg()}function CU(){var e=navigator,t=0,n;e.maxTouchPoints!==void 0?t=D_(e.maxTouchPoints):e.msMaxTouchPoints!==void 0&&(t=e.msMaxTouchPoints);try{document.createEvent("TouchEvent"),n=!0}catch{n=!1}var r="ontouchstart"in window;return{maxTouchPoints:t,touchEvent:n,touchStart:r}}function EU(){return navigator.oscpu}function TU(){var e=navigator,t=[],n=e.language||e.userLanguage||e.browserLanguage||e.systemLanguage;if(n!==void 0&&t.push([n]),Array.isArray(e.languages))Dg()&&Kz()||t.push(e.languages);else if(typeof e.languages=="string"){var r=e.languages;r&&t.push(r.split(","))}return t}function RU(){return window.screen.colorDepth}function AU(){return ul(wo(navigator.deviceMemory),void 0)}function kU(){if(!(Oo()&&Ig()&&jg()))return OU()}function OU(){var e=screen,t=function(r){return ul(D_(r),null)},n=[t(e.width),t(e.height)];return n.sort().reverse(),n}var MU=2500,DU=10,Gv,b2;function jU(){if(b2===void 0){var e=function(){var t=uS();fS(t)?b2=setTimeout(e,MU):(Gv=t,b2=void 0)};e()}}function IU(){var e=this;return jU(),function(){return Ts(e,void 0,void 0,function(){var t;return Rs(this,function(n){switch(n.label){case 0:return t=uS(),fS(t)?Gv?[2,NR([],Gv,!0)]:Qz()?[4,eU()]:[3,2]:[3,2];case 1:n.sent(),t=uS(),n.label=2;case 2:return fS(t)||(Gv=t),[2,t]}})})}}function LU(){var e=this;if(Oo()&&Ig()&&jg())return function(){return Promise.resolve(void 0)};var t=IU();return function(){return Ts(e,void 0,void 0,function(){var n,r;return Rs(this,function(a){switch(a.label){case 0:return[4,t()];case 1:return n=a.sent(),r=function(s){return s===null?null:zR(s,DU)},[2,[r(n[0]),r(n[1]),r(n[2]),r(n[3])]]}})})}}function uS(){var e=screen;return[ul(wo(e.availTop),null),ul(wo(e.width)-wo(e.availWidth)-ul(wo(e.availLeft),0),null),ul(wo(e.height)-wo(e.availHeight)-ul(wo(e.availTop),0),null),ul(wo(e.availLeft),null)]}function fS(e){for(var t=0;t<4;++t)if(e[t])return!1;return!0}function PU(){return ul(D_(navigator.hardwareConcurrency),void 0)}function NU(){var e,t=(e=window.Intl)===null||e===void 0?void 0:e.DateTimeFormat;if(t){var n=new t().resolvedOptions().timeZone;if(n)return n}var r=-FU();return"UTC".concat(r>=0?"+":"").concat(r)}function FU(){var e=new Date().getFullYear();return Math.max(wo(new Date(e,0,1).getTimezoneOffset()),wo(new Date(e,6,1).getTimezoneOffset()))}function BU(){try{return!!window.sessionStorage}catch{return!0}}function zU(){try{return!!window.localStorage}catch{return!0}}function UU(){if(!(UR()||qz()))try{return!!window.indexedDB}catch{return!0}}function $U(){return!!window.openDatabase}function HU(){return navigator.cpuClass}function VU(){var e=navigator.platform;return e==="MacIntel"&&Oo()&&!j_()?Jz()?"iPad":"iPhone":e}function WU(){return navigator.vendor||""}function GU(){for(var e=[],t=0,n=["chrome","safari","__crWeb","__gCrWeb","yandex","__yb","__ybro","__firefox__","__edgeTrackingPreventionStatistics","webkit","oprt","samsungAr","ucweb","UCShellJava","puffinDevice"];t<n.length;t++){var r=n[t],a=window[r];a&&typeof a=="object"&&e.push(r)}return e.sort()}function YU(){var e=document;try{e.cookie="cookietest=1; SameSite=Strict;";var t=e.cookie.indexOf("cookietest=")!==-1;return e.cookie="cookietest=1; SameSite=Strict; expires=Thu, 01-Jan-1970 00:00:01 GMT",t}catch{return!1}}function qU(){var e=atob;return{abpIndo:["#Iklan-Melayang","#Kolom-Iklan-728","#SidebarIklan-wrapper",'[title="ALIENBOLA" i]',e("I0JveC1CYW5uZXItYWRz")],abpvn:[".quangcao","#mobileCatfish",e("LmNsb3NlLWFkcw=="),'[id^="bn_bottom_fixed_"]',"#pmadv"],adBlockFinland:[".mainostila",e("LnNwb25zb3JpdA=="),".ylamainos",e("YVtocmVmKj0iL2NsaWNrdGhyZ2guYXNwPyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hcHAucmVhZHBlYWsuY29tL2FkcyJd")],adBlockPersian:["#navbar_notice_50",".kadr",'TABLE[width="140px"]',"#divAgahi",e("YVtocmVmXj0iaHR0cDovL2cxLnYuZndtcm0ubmV0L2FkLyJd")],adBlockWarningRemoval:["#adblock-honeypot",".adblocker-root",".wp_adblock_detect",e("LmhlYWRlci1ibG9ja2VkLWFk"),e("I2FkX2Jsb2NrZXI=")],adGuardAnnoyances:[".hs-sosyal","#cookieconsentdiv",'div[class^="app_gdpr"]',".as-oil",'[data-cypress="soft-push-notification-modal"]'],adGuardBase:[".BetterJsPopOverlay",e("I2FkXzMwMFgyNTA="),e("I2Jhbm5lcmZsb2F0MjI="),e("I2NhbXBhaWduLWJhbm5lcg=="),e("I0FkLUNvbnRlbnQ=")],adGuardChinese:[e("LlppX2FkX2FfSA=="),e("YVtocmVmKj0iLmh0aGJldDM0LmNvbSJd"),"#widget-quan",e("YVtocmVmKj0iLzg0OTkyMDIwLnh5eiJd"),e("YVtocmVmKj0iLjE5NTZobC5jb20vIl0=")],adGuardFrench:["#pavePub",e("LmFkLWRlc2t0b3AtcmVjdGFuZ2xl"),".mobile_adhesion",".widgetadv",e("LmFkc19iYW4=")],adGuardGerman:['aside[data-portal-id="leaderboard"]'],adGuardJapanese:["#kauli_yad_1",e("YVtocmVmXj0iaHR0cDovL2FkMi50cmFmZmljZ2F0ZS5uZXQvIl0="),e("Ll9wb3BJbl9pbmZpbml0ZV9hZA=="),e("LmFkZ29vZ2xl"),e("Ll9faXNib29zdFJldHVybkFk")],adGuardMobile:[e("YW1wLWF1dG8tYWRz"),e("LmFtcF9hZA=="),'amp-embed[type="24smi"]',"#mgid_iframe1",e("I2FkX2ludmlld19hcmVh")],adGuardRussian:[e("YVtocmVmXj0iaHR0cHM6Ly9hZC5sZXRtZWFkcy5jb20vIl0="),e("LnJlY2xhbWE="),'div[id^="smi2adblock"]',e("ZGl2W2lkXj0iQWRGb3hfYmFubmVyXyJd"),"#psyduckpockeball"],adGuardSocial:[e("YVtocmVmXj0iLy93d3cuc3R1bWJsZXVwb24uY29tL3N1Ym1pdD91cmw9Il0="),e("YVtocmVmXj0iLy90ZWxlZ3JhbS5tZS9zaGFyZS91cmw/Il0="),".etsy-tweet","#inlineShare",".popup-social"],adGuardSpanishPortuguese:["#barraPublicidade","#Publicidade","#publiEspecial","#queTooltip",".cnt-publi"],adGuardTrackingProtection:["#qoo-counter",e("YVtocmVmXj0iaHR0cDovL2NsaWNrLmhvdGxvZy5ydS8iXQ=="),e("YVtocmVmXj0iaHR0cDovL2hpdGNvdW50ZXIucnUvdG9wL3N0YXQucGhwIl0="),e("YVtocmVmXj0iaHR0cDovL3RvcC5tYWlsLnJ1L2p1bXAiXQ=="),"#top100counter"],adGuardTurkish:["#backkapat",e("I3Jla2xhbWk="),e("YVtocmVmXj0iaHR0cDovL2Fkc2Vydi5vbnRlay5jb20udHIvIl0="),e("YVtocmVmXj0iaHR0cDovL2l6bGVuemkuY29tL2NhbXBhaWduLyJd"),e("YVtocmVmXj0iaHR0cDovL3d3dy5pbnN0YWxsYWRzLm5ldC8iXQ==")],bulgarian:[e("dGQjZnJlZW5ldF90YWJsZV9hZHM="),"#ea_intext_div",".lapni-pop-over","#xenium_hot_offers"],easyList:[".yb-floorad",e("LndpZGdldF9wb19hZHNfd2lkZ2V0"),e("LnRyYWZmaWNqdW5reS1hZA=="),".textad_headline",e("LnNwb25zb3JlZC10ZXh0LWxpbmtz")],easyListChina:[e("LmFwcGd1aWRlLXdyYXBbb25jbGljayo9ImJjZWJvcy5jb20iXQ=="),e("LmZyb250cGFnZUFkdk0="),"#taotaole","#aafoot.top_box",".cfa_popup"],easyListCookie:[".ezmob-footer",".cc-CookieWarning","[data-cookie-number]",e("LmF3LWNvb2tpZS1iYW5uZXI="),".sygnal24-gdpr-modal-wrap"],easyListCzechSlovak:["#onlajny-stickers",e("I3Jla2xhbW5pLWJveA=="),e("LnJla2xhbWEtbWVnYWJvYXJk"),".sklik",e("W2lkXj0ic2tsaWtSZWtsYW1hIl0=")],easyListDutch:[e("I2FkdmVydGVudGll"),e("I3ZpcEFkbWFya3RCYW5uZXJCbG9jaw=="),".adstekst",e("YVtocmVmXj0iaHR0cHM6Ly94bHR1YmUubmwvY2xpY2svIl0="),"#semilo-lrectangle"],easyListGermany:["#SSpotIMPopSlider",e("LnNwb25zb3JsaW5rZ3J1ZW4="),e("I3dlcmJ1bmdza3k="),e("I3Jla2xhbWUtcmVjaHRzLW1pdHRl"),e("YVtocmVmXj0iaHR0cHM6Ly9iZDc0Mi5jb20vIl0=")],easyListItaly:[e("LmJveF9hZHZfYW5udW5jaQ=="),".sb-box-pubbliredazionale",e("YVtocmVmXj0iaHR0cDovL2FmZmlsaWF6aW9uaWFkcy5zbmFpLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZHNlcnZlci5odG1sLml0LyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9hZmZpbGlhemlvbmlhZHMuc25haS5pdC8iXQ==")],easyListLithuania:[e("LnJla2xhbW9zX3RhcnBhcw=="),e("LnJla2xhbW9zX251b3JvZG9z"),e("aW1nW2FsdD0iUmVrbGFtaW5pcyBza3lkZWxpcyJd"),e("aW1nW2FsdD0iRGVkaWt1b3RpLmx0IHNlcnZlcmlhaSJd"),e("aW1nW2FsdD0iSG9zdGluZ2FzIFNlcnZlcmlhaS5sdCJd")],estonian:[e("QVtocmVmKj0iaHR0cDovL3BheTRyZXN1bHRzMjQuZXUiXQ==")],fanboyAnnoyances:["#ac-lre-player",".navigate-to-top","#subscribe_popup",".newsletter_holder","#back-top"],fanboyAntiFacebook:[".util-bar-module-firefly-visible"],fanboyEnhancedTrackers:[".open.pushModal","#issuem-leaky-paywall-articles-zero-remaining-nag","#sovrn_container",'div[class$="-hide"][zoompage-fontsize][style="display: block;"]',".BlockNag__Card"],fanboySocial:["#FollowUs","#meteored_share","#social_follow",".article-sharer",".community__social-desc"],frellwitSwedish:[e("YVtocmVmKj0iY2FzaW5vcHJvLnNlIl1bdGFyZ2V0PSJfYmxhbmsiXQ=="),e("YVtocmVmKj0iZG9rdG9yLXNlLm9uZWxpbmsubWUiXQ=="),"article.category-samarbete",e("ZGl2LmhvbGlkQWRz"),"ul.adsmodern"],greekAdBlock:[e("QVtocmVmKj0iYWRtYW4ub3RlbmV0LmdyL2NsaWNrPyJd"),e("QVtocmVmKj0iaHR0cDovL2F4aWFiYW5uZXJzLmV4b2R1cy5nci8iXQ=="),e("QVtocmVmKj0iaHR0cDovL2ludGVyYWN0aXZlLmZvcnRobmV0LmdyL2NsaWNrPyJd"),"DIV.agores300","TABLE.advright"],hungarian:["#cemp_doboz",".optimonk-iframe-container",e("LmFkX19tYWlu"),e("W2NsYXNzKj0iR29vZ2xlQWRzIl0="),"#hirdetesek_box"],iDontCareAboutCookies:['.alert-info[data-block-track*="CookieNotice"]',".ModuleTemplateCookieIndicator",".o--cookies--container","#cookies-policy-sticky","#stickyCookieBar"],icelandicAbp:[e("QVtocmVmXj0iL2ZyYW1ld29yay9yZXNvdXJjZXMvZm9ybXMvYWRzLmFzcHgiXQ==")],latvian:[e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiAxMjBweDsgaGVpZ2h0OiA0MHB4OyBvdmVyZmxvdzogaGlkZGVuOyBwb3NpdGlvbjogcmVsYXRpdmU7Il0="),e("YVtocmVmPSJodHRwOi8vd3d3LnNhbGlkemluaS5sdi8iXVtzdHlsZT0iZGlzcGxheTogYmxvY2s7IHdpZHRoOiA4OHB4OyBoZWlnaHQ6IDMxcHg7IG92ZXJmbG93OiBoaWRkZW47IHBvc2l0aW9uOiByZWxhdGl2ZTsiXQ==")],listKr:[e("YVtocmVmKj0iLy9hZC5wbGFuYnBsdXMuY28ua3IvIl0="),e("I2xpdmVyZUFkV3JhcHBlcg=="),e("YVtocmVmKj0iLy9hZHYuaW1hZHJlcC5jby5rci8iXQ=="),e("aW5zLmZhc3R2aWV3LWFk"),".revenue_unit_item.dable"],listeAr:[e("LmdlbWluaUxCMUFk"),".right-and-left-sponsers",e("YVtocmVmKj0iLmFmbGFtLmluZm8iXQ=="),e("YVtocmVmKj0iYm9vcmFxLm9yZyJd"),e("YVtocmVmKj0iZHViaXp6bGUuY29tL2FyLz91dG1fc291cmNlPSJd")],listeFr:[e("YVtocmVmXj0iaHR0cDovL3Byb21vLnZhZG9yLmNvbS8iXQ=="),e("I2FkY29udGFpbmVyX3JlY2hlcmNoZQ=="),e("YVtocmVmKj0id2Vib3JhbWEuZnIvZmNnaS1iaW4vIl0="),".site-pub-interstitiel",'div[id^="crt-"][data-criteo-id]'],officialPolish:["#ceneo-placeholder-ceneo-12",e("W2hyZWZePSJodHRwczovL2FmZi5zZW5kaHViLnBsLyJd"),e("YVtocmVmXj0iaHR0cDovL2Fkdm1hbmFnZXIudGVjaGZ1bi5wbC9yZWRpcmVjdC8iXQ=="),e("YVtocmVmXj0iaHR0cDovL3d3dy50cml6ZXIucGwvP3V0bV9zb3VyY2UiXQ=="),e("ZGl2I3NrYXBpZWNfYWQ=")],ro:[e("YVtocmVmXj0iLy9hZmZ0cmsuYWx0ZXgucm8vQ291bnRlci9DbGljayJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ibGFja2ZyaWRheXNhbGVzLnJvL3Ryay9zaG9wLyJd"),e("YVtocmVmXj0iaHR0cHM6Ly9ldmVudC4ycGVyZm9ybWFudC5jb20vZXZlbnRzL2NsaWNrIl0="),e("YVtocmVmXj0iaHR0cHM6Ly9sLnByb2ZpdHNoYXJlLnJvLyJd"),'a[href^="/url/"]'],ruAd:[e("YVtocmVmKj0iLy9mZWJyYXJlLnJ1LyJd"),e("YVtocmVmKj0iLy91dGltZy5ydS8iXQ=="),e("YVtocmVmKj0iOi8vY2hpa2lkaWtpLnJ1Il0="),"#pgeldiz",".yandex-rtb-block"],thaiAds:["a[href*=macau-uta-popup]",e("I2Fkcy1nb29nbGUtbWlkZGxlX3JlY3RhbmdsZS1ncm91cA=="),e("LmFkczMwMHM="),".bumq",".img-kosana"],webAnnoyancesUltralist:["#mod-social-share-2","#social-tools",e("LmN0cGwtZnVsbGJhbm5lcg=="),".zergnet-recommend",".yt.btn-link.btn-md.btn"]}}function KU(e){var t=e===void 0?{}:e,n=t.debug;return Ts(this,void 0,void 0,function(){var r,a,s,l,f,m;return Rs(this,function(p){switch(p.label){case 0:return XU()?(r=qU(),a=Object.keys(r),s=(m=[]).concat.apply(m,a.map(function(g){return r[g]})),[4,ZU(s)]):[2,void 0];case 1:return l=p.sent(),n&&JU(r,l),f=a.filter(function(g){var b=r[g],S=Ai(b.map(function(T){return l[T]}));return S>b.length*.6}),f.sort(),[2,f]}})})}function XU(){return Oo()||I_()}function ZU(e){var t;return Ts(this,void 0,void 0,function(){var n,r,a,s,m,l,f,m;return Rs(this,function(p){switch(p.label){case 0:for(n=document,r=n.createElement("div"),a=new Array(e.length),s={},FE(r),m=0;m<e.length;++m)l=lU(e[m]),l.tagName==="DIALOG"&&l.show(),f=n.createElement("div"),FE(f),f.appendChild(l),r.appendChild(f),a[m]=l;p.label=1;case 1:return n.body?[3,3]:[4,xb(50)];case 2:return p.sent(),[3,1];case 3:n.body.appendChild(r);try{for(m=0;m<e.length;++m)a[m].offsetParent||(s[e[m]]=!0)}finally{(t=r.parentNode)===null||t===void 0||t.removeChild(r)}return[2,s]}})})}function FE(e){e.style.setProperty("visibility","hidden","important"),e.style.setProperty("display","block","important")}function JU(e,t){for(var n="DOM blockers debug:\n```",r=0,a=Object.keys(e);r<a.length;r++){var s=a[r];n+=`
+`.concat(s,":");for(var l=0,f=e[s];l<f.length;l++){var m=f[l];n+=`
+  `.concat(t[m]?"🚫":"➡️"," ").concat(m)}}console.log("".concat(n,"\n```"))}function QU(){for(var e=0,t=["rec2020","p3","srgb"];e<t.length;e++){var n=t[e];if(matchMedia("(color-gamut: ".concat(n,")")).matches)return n}}function e$(){if(BE("inverted"))return!0;if(BE("none"))return!1}function BE(e){return matchMedia("(inverted-colors: ".concat(e,")")).matches}function t$(){if(zE("active"))return!0;if(zE("none"))return!1}function zE(e){return matchMedia("(forced-colors: ".concat(e,")")).matches}var n$=100;function r$(){if(matchMedia("(min-monochrome: 0)").matches){for(var e=0;e<=n$;++e)if(matchMedia("(max-monochrome: ".concat(e,")")).matches)return e;throw new Error("Too high value")}}function i$(){if(Ch("no-preference"))return 0;if(Ch("high")||Ch("more"))return 1;if(Ch("low")||Ch("less"))return-1;if(Ch("forced"))return 10}function Ch(e){return matchMedia("(prefers-contrast: ".concat(e,")")).matches}function a$(){if(UE("reduce"))return!0;if(UE("no-preference"))return!1}function UE(e){return matchMedia("(prefers-reduced-motion: ".concat(e,")")).matches}function o$(){if($E("reduce"))return!0;if($E("no-preference"))return!1}function $E(e){return matchMedia("(prefers-reduced-transparency: ".concat(e,")")).matches}function s$(){if(HE("high"))return!0;if(HE("standard"))return!1}function HE(e){return matchMedia("(dynamic-range: ".concat(e,")")).matches}var An=Math,Ci=function(){return 0};function l$(){var e=An.acos||Ci,t=An.acosh||Ci,n=An.asin||Ci,r=An.asinh||Ci,a=An.atanh||Ci,s=An.atan||Ci,l=An.sin||Ci,f=An.sinh||Ci,m=An.cos||Ci,p=An.cosh||Ci,g=An.tan||Ci,b=An.tanh||Ci,S=An.exp||Ci,T=An.expm1||Ci,C=An.log1p||Ci,E=function(H){return An.pow(An.PI,H)},A=function(H){return An.log(H+An.sqrt(H*H-1))},k=function(H){return An.log(H+An.sqrt(H*H+1))},L=function(H){return An.log((1+H)/(1-H))/2},O=function(H){return An.exp(H)-1/An.exp(H)/2},P=function(H){return(An.exp(H)+1/An.exp(H))/2},M=function(H){return An.exp(H)-1},$=function(H){return(An.exp(2*H)-1)/(An.exp(2*H)+1)},B=function(H){return An.log(1+H)};return{acos:e(.12312423423423424),acosh:t(1e308),acoshPf:A(1e154),asin:n(.12312423423423424),asinh:r(1),asinhPf:k(1),atanh:a(.5),atanhPf:L(.5),atan:s(.5),sin:l(-1e300),sinh:f(1),sinhPf:O(1),cos:m(10.000000000123),cosh:p(1),coshPf:P(1),tan:g(-1e300),tanh:b(1),tanhPf:$(1),exp:S(1),expm1:T(1),expm1Pf:M(1),log1p:C(10),log1pPf:B(10),powPI:E(-100)}}var c$="mmMwWLliI0fiflO&1",x2={default:[],apple:[{font:"-apple-system-body"}],serif:[{fontFamily:"serif"}],sans:[{fontFamily:"sans-serif"}],mono:[{fontFamily:"monospace"}],min:[{fontSize:"1px"}],system:[{fontFamily:"system-ui"}]};function u$(){return f$(function(e,t){for(var n={},r={},a=0,s=Object.keys(x2);a<s.length;a++){var l=s[a],f=x2[l],m=f[0],p=m===void 0?{}:m,g=f[1],b=g===void 0?c$:g,S=e.createElement("span");S.textContent=b,S.style.whiteSpace="nowrap";for(var T=0,C=Object.keys(p);T<C.length;T++){var E=C[T],A=p[E];A!==void 0&&(S.style[E]=A)}n[l]=S,t.append(e.createElement("br"),S)}for(var k=0,L=Object.keys(x2);k<L.length;k++){var l=L[k];r[l]=n[l].getBoundingClientRect().width}return r})}function f$(e,t){return t===void 0&&(t=4e3),HR(function(n,r){var a=r.document,s=a.body,l=s.style;l.width="".concat(t,"px"),l.webkitTextSizeAdjust=l.textSizeAdjust="none",Dg()?s.style.zoom="".concat(1/r.devicePixelRatio):Oo()&&(s.style.zoom="reset");var f=a.createElement("div");return f.textContent=NR([],Array(t/20<<0),!0).map(function(){return"word"}).join(" "),s.appendChild(f),e(a,s)},'<!doctype html><html><head><meta name="viewport" content="width=device-width, initial-scale=1">')}function d$(){return navigator.pdfViewerEnabled}function h$(){var e=new Float32Array(1),t=new Uint8Array(e.buffer);return e[0]=1/0,e[0]=e[0]-e[0],t[3]}function p$(){var e=window.ApplePaySession;if(typeof(e==null?void 0:e.canMakePayments)!="function")return-1;if(m$())return-3;try{return e.canMakePayments()?1:0}catch(t){return g$(t)}}var m$=uU;function g$(e){if(e instanceof Error&&e.name==="InvalidAccessError"&&/\bfrom\b.*\binsecure\b/i.test(e.message))return-2;throw e}function y$(){var e,t=document.createElement("a"),n=(e=t.attributionSourceId)!==null&&e!==void 0?e:t.attributionsourceid;return n===void 0?void 0:String(n)}var VR=-1,WR=-2,v$=new Set([10752,2849,2884,2885,2886,2928,2929,2930,2931,2932,2960,2961,2962,2963,2964,2965,2966,2967,2968,2978,3024,3042,3088,3089,3106,3107,32773,32777,32777,32823,32824,32936,32937,32938,32939,32968,32969,32970,32971,3317,33170,3333,3379,3386,33901,33902,34016,34024,34076,3408,3410,3411,3412,3413,3414,3415,34467,34816,34817,34818,34819,34877,34921,34930,35660,35661,35724,35738,35739,36003,36004,36005,36347,36348,36349,37440,37441,37443,7936,7937,7938]),b$=new Set([34047,35723,36063,34852,34853,34854,34229,36392,36795,38449]),x$=["FRAGMENT_SHADER","VERTEX_SHADER"],w$=["LOW_FLOAT","MEDIUM_FLOAT","HIGH_FLOAT","LOW_INT","MEDIUM_INT","HIGH_INT"],GR="WEBGL_debug_renderer_info",S$="WEBGL_polygon_mode";function _$(e){var t,n,r,a,s,l,f=e.cache,m=YR(f);if(!m)return VR;if(!KR(m))return WR;var p=qR()?null:m.getExtension(GR);return{version:((t=m.getParameter(m.VERSION))===null||t===void 0?void 0:t.toString())||"",vendor:((n=m.getParameter(m.VENDOR))===null||n===void 0?void 0:n.toString())||"",vendorUnmasked:p?(r=m.getParameter(p.UNMASKED_VENDOR_WEBGL))===null||r===void 0?void 0:r.toString():"",renderer:((a=m.getParameter(m.RENDERER))===null||a===void 0?void 0:a.toString())||"",rendererUnmasked:p?(s=m.getParameter(p.UNMASKED_RENDERER_WEBGL))===null||s===void 0?void 0:s.toString():"",shadingLanguageVersion:((l=m.getParameter(m.SHADING_LANGUAGE_VERSION))===null||l===void 0?void 0:l.toString())||""}}function C$(e){var t=e.cache,n=YR(t);if(!n)return VR;if(!KR(n))return WR;var r=n.getSupportedExtensions(),a=n.getContextAttributes(),s=[],l=[],f=[],m=[],p=[];if(a)for(var g=0,b=Object.keys(a);g<b.length;g++){var S=b[g];l.push("".concat(S,"=").concat(a[S]))}for(var T=VE(n),C=0,E=T;C<E.length;C++){var A=E[C],k=n[A];f.push("".concat(A,"=").concat(k).concat(v$.has(k)?"=".concat(n.getParameter(k)):""))}if(r)for(var L=0,O=r;L<O.length;L++){var P=O[L];if(!(P===GR&&qR()||P===S$&&R$())){var M=n.getExtension(P);if(!M){s.push(P);continue}for(var $=0,B=VE(M);$<B.length;$++){var A=B[$],k=M[A];m.push("".concat(A,"=").concat(k).concat(b$.has(k)?"=".concat(n.getParameter(k)):""))}}}for(var H=0,q=x$;H<q.length;H++)for(var j=q[H],X=0,K=w$;X<K.length;X++){var ne=K[X],le=E$(n,j,ne);p.push("".concat(j,".").concat(ne,"=").concat(le.join(",")))}return m.sort(),f.sort(),{contextAttributes:l,parameters:f,shaderPrecisions:p,extensions:r,extensionParameters:m,unsupportedExtensions:s}}function YR(e){if(e.webgl)return e.webgl.context;var t=document.createElement("canvas"),n;t.addEventListener("webglCreateContextError",function(){return n=void 0});for(var r=0,a=["webgl","experimental-webgl"];r<a.length;r++){var s=a[r];try{n=t.getContext(s)}catch{}if(n)break}return e.webgl={context:n},n}function E$(e,t,n){var r=e.getShaderPrecisionFormat(e[t],e[n]);return r?[r.rangeMin,r.rangeMax,r.precision]:[]}function VE(e){var t=Object.keys(e.__proto__);return t.filter(T$)}function T$(e){return typeof e=="string"&&!e.match(/[^A-Z0-9_x]/)}function qR(){return $R()}function R$(){return Dg()||Oo()}function KR(e){return typeof e.getParameter=="function"}function A$(){var e=I_()||Oo();if(!e)return-2;if(!window.AudioContext)return-1;var t=new AudioContext().baseLatency;return t==null?-1:isFinite(t)?t:-3}function k$(){if(!window.Intl)return-1;var e=window.Intl.DateTimeFormat;if(!e)return-2;var t=e().resolvedOptions().locale;return!t&&t!==""?-3:t}var O$={fonts:hU,domBlockers:KU,fontPreferences:u$,audio:nU,screenFrame:LU,canvas:mU,osCpu:EU,languages:TU,colorDepth:RU,deviceMemory:AU,screenResolution:kU,hardwareConcurrency:PU,timezone:NU,sessionStorage:BU,localStorage:zU,indexedDB:UU,openDatabase:$U,cpuClass:HU,platform:VU,plugins:pU,touchSupport:CU,vendor:WU,vendorFlavors:GU,cookiesEnabled:YU,colorGamut:QU,invertedColors:e$,forcedColors:t$,monochrome:r$,contrast:i$,reducedMotion:a$,reducedTransparency:o$,hdr:s$,math:l$,pdfViewerEnabled:d$,architecture:h$,applePay:p$,privateClickMeasurement:y$,audioBaseLatency:A$,dateTimeLocale:k$,webGlBasics:_$,webGlExtensions:C$};function M$(e){return Yz(O$,e,[])}var D$="$ if upgrade to Pro: https://fpjs.dev/pro";function j$(e){var t=I$(e),n=L$(t);return{score:t,comment:D$.replace(/\$/g,"".concat(n))}}function I$(e){if(I_())return .4;if(Oo())return j_()&&!(Ig()&&jg())?.5:.3;var t="value"in e.platform?e.platform.value:"";return/^Win/.test(t)?.6:/^Mac/.test(t)?.5:.7}function L$(e){return zR(.99+.01*e,1e-4)}function P$(e){for(var t="",n=0,r=Object.keys(e).sort();n<r.length;n++){var a=r[n],s=e[a],l="error"in s?"error":JSON.stringify(s.value);t+="".concat(t?"|":"").concat(a.replace(/([:|\\])/g,"\\$1"),":").concat(l)}return t}function XR(e){return JSON.stringify(e,function(t,n){return n instanceof Error?Hz(n):n},2)}function ZR(e){return $z(P$(e))}function N$(e){var t,n=j$(e);return{get visitorId(){return t===void 0&&(t=ZR(this.components)),t},set visitorId(r){t=r},confidence:n,components:e,version:FR}}function F$(e){return e===void 0&&(e=50),jz(e,e*2)}function B$(e,t){var n=Date.now();return{get:function(r){return Ts(this,void 0,void 0,function(){var a,s,l;return Rs(this,function(f){switch(f.label){case 0:return a=Date.now(),[4,e()];case 1:return s=f.sent(),l=N$(s),(t||r!=null&&r.debug)&&console.log("Copy the text below to get the debug data:\n\n```\nversion: ".concat(l.version,`
+userAgent: `).concat(navigator.userAgent,`
+timeBetweenLoadAndGet: `).concat(a-n,`
+visitorId: `).concat(l.visitorId,`
+components: `).concat(XR(s),"\n```")),[2,l]}})})}}}function z$(){if(!(window.__fpjs_d_m||Math.random()>=.001))try{var e=new XMLHttpRequest;e.open("get","https://m1.openfpcdn.io/fingerprintjs/v".concat(FR,"/npm-monitoring"),!0),e.send()}catch(t){console.error(t)}}function U$(e){var t;return e===void 0&&(e={}),Ts(this,void 0,void 0,function(){var n,r,a;return Rs(this,function(s){switch(s.label){case 0:return(!((t=e.monitoring)!==null&&t!==void 0)||t)&&z$(),n=e.delayFallback,r=e.debug,[4,F$(n)];case 1:return s.sent(),a=M$({cache:{},debug:r}),[2,B$(a,r)]}})})}var $$={load:U$,hashComponents:ZR,componentsToDebugString:XR};function hx(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function WE(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function L_(e,t,n,r){if(typeof t=="function"){const[a,s]=WE(r);t=t(n!==void 0?n:e.custom,a,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,s]=WE(r);t=t(n!==void 0?n:e.custom,a,s)}return t}function tg(e,t,n){const r=e.getProps();return L_(r,t,n!==void 0?n:r.custom,e)}function P_(e,t){e.indexOf(t)===-1&&e.push(t)}function N_(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const bl=(e,t,n)=>n>t?t:n<e?e:n;let F_=()=>{};const xl={},JR=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function QR(e){return typeof e=="object"&&e!==null}const e6=e=>/^0[^.\s]+$/u.test(e);function B_(e){let t;return()=>(t===void 0&&(t=e()),t)}const Ya=e=>e,H$=(e,t)=>n=>t(e(n)),Lg=(...e)=>e.reduce(H$),ng=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class z_{constructor(){this.subscriptions=[]}add(t){return P_(this.subscriptions,t),()=>N_(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let s=0;s<a;s++){const l=this.subscriptions[s];l&&l(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const bs=e=>e*1e3,xs=e=>e/1e3;function t6(e,t){return t?e*(1e3/t):0}const n6=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,V$=1e-7,W$=12;function G$(e,t,n,r,a){let s,l,f=0;do l=t+(n-t)/2,s=n6(l,r,a)-e,s>0?n=l:t=l;while(Math.abs(s)>V$&&++f<W$);return l}function Pg(e,t,n,r){if(e===t&&n===r)return Ya;const a=s=>G$(s,0,1,e,n);return s=>s===0||s===1?s:n6(a(s),t,r)}const r6=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,i6=e=>t=>1-e(1-t),a6=Pg(.33,1.53,.69,.99),U_=i6(a6),o6=r6(U_),s6=e=>(e*=2)<1?.5*U_(e):.5*(2-Math.pow(2,-10*(e-1))),$_=e=>1-Math.sin(Math.acos(e)),l6=i6($_),c6=r6($_),Y$=Pg(.42,0,1,1),q$=Pg(0,0,.58,1),u6=Pg(.42,0,.58,1),K$=e=>Array.isArray(e)&&typeof e[0]!="number",f6=e=>Array.isArray(e)&&typeof e[0]=="number",X$={linear:Ya,easeIn:Y$,easeInOut:u6,easeOut:q$,circIn:$_,circInOut:c6,circOut:l6,backIn:U_,backInOut:o6,backOut:a6,anticipate:s6},Z$=e=>typeof e=="string",GE=e=>{if(f6(e)){F_(e.length===4);const[t,n,r,a]=e;return Pg(t,n,r,a)}else if(Z$(e))return X$[e];return e},Ov=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"],YE={value:null};function J$(e,t){let n=new Set,r=new Set,a=!1,s=!1;const l=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1},m=0;function p(b){l.has(b)&&(g.schedule(b),e()),m++,b(f)}const g={schedule:(b,S=!1,T=!1)=>{const E=T&&a?n:r;return S&&l.add(b),E.has(b)||E.add(b),b},cancel:b=>{r.delete(b),l.delete(b)},process:b=>{if(f=b,a){s=!0;return}a=!0,[n,r]=[r,n],n.forEach(p),t&&YE.value&&YE.value.frameloop[t].push(m),m=0,n.clear(),a=!1,s&&(s=!1,g.process(b))}};return g}const Q$=40;function d6(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,l=Ov.reduce((O,P)=>(O[P]=J$(s,t?P:void 0),O),{}),{setup:f,read:m,resolveKeyframes:p,preUpdate:g,update:b,preRender:S,render:T,postRender:C}=l,E=()=>{const O=xl.useManualTiming?a.timestamp:performance.now();n=!1,xl.useManualTiming||(a.delta=r?1e3/60:Math.max(Math.min(O-a.timestamp,Q$),1)),a.timestamp=O,a.isProcessing=!0,f.process(a),m.process(a),p.process(a),g.process(a),b.process(a),S.process(a),T.process(a),C.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(E))},A=()=>{n=!0,r=!0,a.isProcessing||e(E)};return{schedule:Ov.reduce((O,P)=>{const M=l[P];return O[P]=($,B=!1,H=!1)=>(n||A(),M.schedule($,B,H)),O},{}),cancel:O=>{for(let P=0;P<Ov.length;P++)l[Ov[P]].cancel(O)},state:a,steps:l}}const{schedule:ar,cancel:Uc,state:Hr,steps:w2}=d6(typeof requestAnimationFrame<"u"?requestAnimationFrame:Ya,!0);let Yv;function eH(){Yv=void 0}const Ki={now:()=>(Yv===void 0&&Ki.set(Hr.isProcessing||xl.useManualTiming?Hr.timestamp:performance.now()),Yv),set:e=>{Yv=e,queueMicrotask(eH)}},h6=e=>t=>typeof t=="string"&&t.startsWith(e),H_=h6("--"),tH=h6("var(--"),V_=e=>tH(e)?nH.test(e.split("/*")[0].trim()):!1,nH=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,up={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},rg={...up,transform:e=>bl(0,1,e)},Mv={...up,default:1},B0=e=>Math.round(e*1e5)/1e5,W_=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function rH(e){return e==null}const iH=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,G_=(e,t)=>n=>!!(typeof n=="string"&&iH.test(n)&&n.startsWith(e)||t&&!rH(n)&&Object.prototype.hasOwnProperty.call(n,t)),p6=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,s,l,f]=r.match(W_);return{[e]:parseFloat(a),[t]:parseFloat(s),[n]:parseFloat(l),alpha:f!==void 0?parseFloat(f):1}},aH=e=>bl(0,255,e),S2={...up,transform:e=>Math.round(aH(e))},gf={test:G_("rgb","red"),parse:p6("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+S2.transform(e)+", "+S2.transform(t)+", "+S2.transform(n)+", "+B0(rg.transform(r))+")"};function oH(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const dS={test:G_("#"),parse:oH,transform:gf.transform},Ng=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),Mc=Ng("deg"),ws=Ng("%"),xt=Ng("px"),sH=Ng("vh"),lH=Ng("vw"),qE={...ws,parse:e=>ws.parse(e)/100,transform:e=>ws.transform(e*100)},Ph={test:G_("hsl","hue"),parse:p6("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ws.transform(B0(t))+", "+ws.transform(B0(n))+", "+B0(rg.transform(r))+")"},li={test:e=>gf.test(e)||dS.test(e)||Ph.test(e),parse:e=>gf.test(e)?gf.parse(e):Ph.test(e)?Ph.parse(e):dS.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?gf.transform(e):Ph.transform(e)},cH=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function uH(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(W_))==null?void 0:t.length)||0)+(((n=e.match(cH))==null?void 0:n.length)||0)>0}const m6="number",g6="color",fH="var",dH="var(",KE="${}",hH=/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 ig(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let s=0;const f=t.replace(hH,m=>(li.test(m)?(r.color.push(s),a.push(g6),n.push(li.parse(m))):m.startsWith(dH)?(r.var.push(s),a.push(fH),n.push(m)):(r.number.push(s),a.push(m6),n.push(parseFloat(m))),++s,KE)).split(KE);return{values:n,split:f,indexes:r,types:a}}function y6(e){return ig(e).values}function v6(e){const{split:t,types:n}=ig(e),r=t.length;return a=>{let s="";for(let l=0;l<r;l++)if(s+=t[l],a[l]!==void 0){const f=n[l];f===m6?s+=B0(a[l]):f===g6?s+=li.transform(a[l]):s+=a[l]}return s}}const pH=e=>typeof e=="number"?0:e;function mH(e){const t=y6(e);return v6(e)(t.map(pH))}const $c={test:uH,parse:y6,createTransformer:v6,getAnimatableNone:mH};function _2(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 gH({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,s=0,l=0;if(!t)a=s=l=n;else{const f=n<.5?n*(1+t):n+t-n*t,m=2*n-f;a=_2(m,f,e+1/3),s=_2(m,f,e),l=_2(m,f,e-1/3)}return{red:Math.round(a*255),green:Math.round(s*255),blue:Math.round(l*255),alpha:r}}function wb(e,t){return n=>n>0?t:e}const rr=(e,t,n)=>e+(t-e)*n,C2=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},yH=[dS,gf,Ph],vH=e=>yH.find(t=>t.test(e));function XE(e){const t=vH(e);if(!t)return!1;let n=t.parse(e);return t===Ph&&(n=gH(n)),n}const ZE=(e,t)=>{const n=XE(e),r=XE(t);if(!n||!r)return wb(e,t);const a={...n};return s=>(a.red=C2(n.red,r.red,s),a.green=C2(n.green,r.green,s),a.blue=C2(n.blue,r.blue,s),a.alpha=rr(n.alpha,r.alpha,s),gf.transform(a))},hS=new Set(["none","hidden"]);function bH(e,t){return hS.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function xH(e,t){return n=>rr(e,t,n)}function Y_(e){return typeof e=="number"?xH:typeof e=="string"?V_(e)?wb:li.test(e)?ZE:_H:Array.isArray(e)?b6:typeof e=="object"?li.test(e)?ZE:wH:wb}function b6(e,t){const n=[...e],r=n.length,a=e.map((s,l)=>Y_(s)(s,t[l]));return s=>{for(let l=0;l<r;l++)n[l]=a[l](s);return n}}function wH(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=Y_(e[a])(e[a],t[a]));return a=>{for(const s in r)n[s]=r[s](a);return n}}function SH(e,t){const n=[],r={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const s=t.types[a],l=e.indexes[s][r[s]],f=e.values[l]??0;n[a]=f,r[s]++}return n}const _H=(e,t)=>{const n=$c.createTransformer(t),r=ig(e),a=ig(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?hS.has(e)&&!a.values.length||hS.has(t)&&!r.values.length?bH(e,t):Lg(b6(SH(r,a),a.values),n):wb(e,t)};function x6(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?rr(e,t,n):Y_(e)(e,t)}const CH=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>ar.update(t,n),stop:()=>Uc(t),now:()=>Hr.isProcessing?Hr.timestamp:Ki.now()}},w6=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let s=0;s<a;s++)r+=e(s/(a-1))+", ";return`linear(${r.substring(0,r.length-2)})`},Sb=2e4;function q_(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<Sb;)t+=n,r=e.next(t);return t>=Sb?1/0:t}function EH(e,t=100,n){const r=n({...e,keyframes:[0,t]}),a=Math.min(q_(r),Sb);return{type:"keyframes",ease:s=>r.next(a*s).value/t,duration:xs(a)}}const TH=5;function S6(e,t,n){const r=Math.max(t-TH,0);return t6(n-e(r),t-r)}const fr={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},JE=.001;function RH({duration:e=fr.duration,bounce:t=fr.bounce,velocity:n=fr.velocity,mass:r=fr.mass}){let a,s,l=1-t;l=bl(fr.minDamping,fr.maxDamping,l),e=bl(fr.minDuration,fr.maxDuration,xs(e)),l<1?(a=p=>{const g=p*l,b=g*e,S=g-n,T=pS(p,l),C=Math.exp(-b);return JE-S/T*C},s=p=>{const b=p*l*e,S=b*n+n,T=Math.pow(l,2)*Math.pow(p,2)*e,C=Math.exp(-b),E=pS(Math.pow(p,2),l);return(-a(p)+JE>0?-1:1)*((S-T)*C)/E}):(a=p=>{const g=Math.exp(-p*e),b=(p-n)*e+1;return-.001+g*b},s=p=>{const g=Math.exp(-p*e),b=(n-p)*(e*e);return g*b});const f=5/e,m=kH(a,s,f);if(e=bs(e),isNaN(m))return{stiffness:fr.stiffness,damping:fr.damping,duration:e};{const p=Math.pow(m,2)*r;return{stiffness:p,damping:l*2*Math.sqrt(r*p),duration:e}}}const AH=12;function kH(e,t,n){let r=n;for(let a=1;a<AH;a++)r=r-e(r)/t(r);return r}function pS(e,t){return e*Math.sqrt(1-t*t)}const OH=["duration","bounce"],MH=["stiffness","damping","mass"];function QE(e,t){return t.some(n=>e[n]!==void 0)}function DH(e){let t={velocity:fr.velocity,stiffness:fr.stiffness,damping:fr.damping,mass:fr.mass,isResolvedFromDuration:!1,...e};if(!QE(e,MH)&&QE(e,OH))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,s=2*bl(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:fr.mass,stiffness:a,damping:s}}else{const n=RH(e);t={...t,...n,mass:fr.mass},t.isResolvedFromDuration=!0}return t}function _b(e=fr.visualDuration,t=fr.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const s=n.keyframes[0],l=n.keyframes[n.keyframes.length-1],f={done:!1,value:s},{stiffness:m,damping:p,mass:g,duration:b,velocity:S,isResolvedFromDuration:T}=DH({...n,velocity:-xs(n.velocity||0)}),C=S||0,E=p/(2*Math.sqrt(m*g)),A=l-s,k=xs(Math.sqrt(m/g)),L=Math.abs(A)<5;r||(r=L?fr.restSpeed.granular:fr.restSpeed.default),a||(a=L?fr.restDelta.granular:fr.restDelta.default);let O;if(E<1){const M=pS(k,E);O=$=>{const B=Math.exp(-E*k*$);return l-B*((C+E*k*A)/M*Math.sin(M*$)+A*Math.cos(M*$))}}else if(E===1)O=M=>l-Math.exp(-k*M)*(A+(C+k*A)*M);else{const M=k*Math.sqrt(E*E-1);O=$=>{const B=Math.exp(-E*k*$),H=Math.min(M*$,300);return l-B*((C+E*k*A)*Math.sinh(H)+M*A*Math.cosh(H))/M}}const P={calculatedDuration:T&&b||null,next:M=>{const $=O(M);if(T)f.done=M>=b;else{let B=M===0?C:0;E<1&&(B=M===0?bs(C):S6(O,M,$));const H=Math.abs(B)<=r,q=Math.abs(l-$)<=a;f.done=H&&q}return f.value=f.done?l:$,f},toString:()=>{const M=Math.min(q_(P),Sb),$=w6(B=>P.next(M*B).value,M,30);return M+"ms "+$},toTransition:()=>{}};return P}_b.applyToOptions=e=>{const t=EH(e,100,_b);return e.ease=t.ease,e.duration=bs(t.duration),e.type="keyframes",e};function mS({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:s=500,modifyTarget:l,min:f,max:m,restDelta:p=.5,restSpeed:g}){const b=e[0],S={done:!1,value:b},T=H=>f!==void 0&&H<f||m!==void 0&&H>m,C=H=>f===void 0?m:m===void 0||Math.abs(f-H)<Math.abs(m-H)?f:m;let E=n*t;const A=b+E,k=l===void 0?A:l(A);k!==A&&(E=k-b);const L=H=>-E*Math.exp(-H/r),O=H=>k+L(H),P=H=>{const q=L(H),j=O(H);S.done=Math.abs(q)<=p,S.value=S.done?k:j};let M,$;const B=H=>{T(S.value)&&(M=H,$=_b({keyframes:[S.value,C(S.value)],velocity:S6(O,H,S.value),damping:a,stiffness:s,restDelta:p,restSpeed:g}))};return B(0),{calculatedDuration:null,next:H=>{let q=!1;return!$&&M===void 0&&(q=!0,P(H),B(H)),M!==void 0&&H>=M?$.next(H-M):(!q&&P(H),S)}}}function jH(e,t,n){const r=[],a=n||xl.mix||x6,s=e.length-1;for(let l=0;l<s;l++){let f=a(e[l],e[l+1]);if(t){const m=Array.isArray(t)?t[l]||Ya:t;f=Lg(m,f)}r.push(f)}return r}function IH(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const s=e.length;if(F_(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const l=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const f=jH(t,r,a),m=f.length,p=g=>{if(l&&g<e[0])return t[0];let b=0;if(m>1)for(;b<e.length-2&&!(g<e[b+1]);b++);const S=ng(e[b],e[b+1],g);return f[b](S)};return n?g=>p(bl(e[0],e[s-1],g)):p}function LH(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=ng(0,t,r);e.push(rr(n,1,a))}}function PH(e){const t=[0];return LH(t,e.length-1),t}function NH(e,t){return e.map(n=>n*t)}function FH(e,t){return e.map(()=>t||u6).splice(0,e.length-1)}function z0({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=K$(r)?r.map(GE):GE(r),s={done:!1,value:t[0]},l=NH(n&&n.length===t.length?n:PH(t),e),f=IH(l,t,{ease:Array.isArray(a)?a:FH(t,a)});return{calculatedDuration:e,next:m=>(s.value=f(m),s.done=m>=e,s)}}const BH=e=>e!==null;function K_(e,{repeat:t,repeatType:n="loop"},r,a=1){const s=e.filter(BH),f=a<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!f||r===void 0?s[f]:r}const zH={decay:mS,inertia:mS,tween:z0,keyframes:z0,spring:_b};function _6(e){typeof e.type=="string"&&(e.type=zH[e.type])}class X_{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const UH=e=>e/100;class Z_ extends X_{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,a;const{motionValue:n}=this.options;n&&n.updatedAt!==Ki.now()&&this.tick(Ki.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(r=this.options).onStop)==null||a.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;_6(t);const{type:n=z0,repeat:r=0,repeatDelay:a=0,repeatType:s,velocity:l=0}=t;let{keyframes:f}=t;const m=n||z0;m!==z0&&typeof f[0]!="number"&&(this.mixKeyframes=Lg(UH,x6(f[0],f[1])),f=[0,100]);const p=m({...t,keyframes:f});s==="mirror"&&(this.mirroredGenerator=m({...t,keyframes:[...f].reverse(),velocity:-l})),p.calculatedDuration===null&&(p.calculatedDuration=q_(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+a,this.totalDuration=this.resolvedDuration*(r+1)-a,this.generator=p}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:a,mixKeyframes:s,mirroredGenerator:l,resolvedDuration:f,calculatedDuration:m}=this;if(this.startTime===null)return r.next(0);const{delay:p=0,keyframes:g,repeat:b,repeatType:S,repeatDelay:T,type:C,onUpdate:E,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const k=this.currentTime-p*(this.playbackSpeed>=0?1:-1),L=this.playbackSpeed>=0?k<0:k>a;this.currentTime=Math.max(k,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let O=this.currentTime,P=r;if(b){const H=Math.min(this.currentTime,a)/f;let q=Math.floor(H),j=H%1;!j&&H>=1&&(j=1),j===1&&q--,q=Math.min(q,b+1),!!(q%2)&&(S==="reverse"?(j=1-j,T&&(j-=T/f)):S==="mirror"&&(P=l)),O=bl(0,1,j)*f}const M=L?{done:!1,value:g[0]}:P.next(O);s&&(M.value=s(M.value));let{done:$}=M;!L&&m!==null&&($=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const B=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return B&&C!==mS&&(M.value=K_(g,this.options,A,this.speed)),E&&E(M.value),B&&this.finish(),M}then(t,n){return this.finished.then(t,n)}get duration(){return xs(this.calculatedDuration)}get time(){return xs(this.currentTime)}set time(t){var n;t=bs(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Ki.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=xs(this.currentTime))}play(){var a,s;if(this.isStopped)return;const{driver:t=CH,startTime:n}=this.options;this.driver||(this.driver=t(l=>this.tick(l))),(s=(a=this.options).onPlay)==null||s.call(a);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Ki.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function $H(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const yf=e=>e*180/Math.PI,gS=e=>{const t=yf(Math.atan2(e[1],e[0]));return yS(t)},HH={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:gS,rotateZ:gS,skewX:e=>yf(Math.atan(e[1])),skewY:e=>yf(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},yS=e=>(e=e%360,e<0&&(e+=360),e),e4=gS,t4=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),n4=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),VH={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:t4,scaleY:n4,scale:e=>(t4(e)+n4(e))/2,rotateX:e=>yS(yf(Math.atan2(e[6],e[5]))),rotateY:e=>yS(yf(Math.atan2(-e[2],e[0]))),rotateZ:e4,rotate:e4,skewX:e=>yf(Math.atan(e[4])),skewY:e=>yf(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function vS(e){return e.includes("scale")?1:0}function bS(e,t){if(!e||e==="none")return vS(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,a;if(n)r=VH,a=n;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=HH,a=f}if(!a)return vS(t);const s=r[t],l=a[1].split(",").map(GH);return typeof s=="function"?s(l):l[s]}const WH=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return bS(n,t)};function GH(e){return parseFloat(e.trim())}const fp=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],dp=new Set(fp),r4=e=>e===up||e===xt,YH=new Set(["x","y","z"]),qH=fp.filter(e=>!YH.has(e));function KH(e){const t=[];return qH.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const _f={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:(e,{transform:t})=>bS(t,"x"),y:(e,{transform:t})=>bS(t,"y")};_f.translateX=_f.x;_f.translateY=_f.y;const Cf=new Set;let xS=!1,wS=!1,SS=!1;function C6(){if(wS){const e=Array.from(Cf).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=KH(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([s,l])=>{var f;(f=r.getValue(s))==null||f.set(l)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}wS=!1,xS=!1,Cf.forEach(e=>e.complete(SS)),Cf.clear()}function E6(){Cf.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(wS=!0)})}function XH(){SS=!0,E6(),C6(),SS=!1}class J_{constructor(t,n,r,a,s,l=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=s,this.isAsync=l}scheduleResolve(){this.state="scheduled",this.isAsync?(Cf.add(this),xS||(xS=!0,ar.read(E6),ar.resolveKeyframes(C6))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;if(t[0]===null){const s=a==null?void 0:a.get(),l=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const f=r.readValue(n,l);f!=null&&(t[0]=f)}t[0]===void 0&&(t[0]=l),a&&s===void 0&&a.set(t[0])}$H(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Cf.delete(this)}cancel(){this.state==="scheduled"&&(Cf.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const ZH=e=>e.startsWith("--");function JH(e,t,n){ZH(t)?e.style.setProperty(t,n):e.style[t]=n}const QH=B_(()=>window.ScrollTimeline!==void 0),eV={};function tV(e,t){const n=B_(e);return()=>eV[t]??n()}const T6=tV(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),D0=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,i4={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:D0([0,.65,.55,1]),circOut:D0([.55,0,1,.45]),backIn:D0([.31,.01,.66,-.59]),backOut:D0([.33,1.53,.69,.99])};function R6(e,t){if(e)return typeof e=="function"?T6()?w6(e,t):"ease-out":f6(e)?D0(e):Array.isArray(e)?e.map(n=>R6(n,t)||i4.easeOut):i4[e]}function nV(e,t,n,{delay:r=0,duration:a=300,repeat:s=0,repeatType:l="loop",ease:f="easeOut",times:m}={},p=void 0){const g={[t]:n};m&&(g.offset=m);const b=R6(f,a);Array.isArray(b)&&(g.easing=b);const S={delay:r,duration:a,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:s+1,direction:l==="reverse"?"alternate":"normal"};return p&&(S.pseudoElement=p),e.animate(g,S)}function A6(e){return typeof e=="function"&&"applyToOptions"in e}function rV({type:e,...t}){return A6(e)&&T6()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class iV extends X_{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:a,pseudoElement:s,allowFlatten:l=!1,finalKeyframe:f,onComplete:m}=t;this.isPseudoElement=!!s,this.allowFlatten=l,this.options=t,F_(typeof t.type!="string");const p=rV(t);this.animation=nV(n,r,a,p,s),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const g=K_(a,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(g):JH(n,r,g),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return xs(Number(t))}get time(){return xs(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=bs(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&QH()?(this.animation.timeline=t,Ya):n(this)}}const k6={anticipate:s6,backInOut:o6,circInOut:c6};function aV(e){return e in k6}function oV(e){typeof e.ease=="string"&&aV(e.ease)&&(e.ease=k6[e.ease])}const a4=10;class sV extends iV{constructor(t){oV(t),_6(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:a,element:s,...l}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const f=new Z_({...l,autoplay:!1}),m=bs(this.finishedTime??this.time);n.setWithVelocity(f.sample(m-a4).value,f.sample(m).value,a4),f.stop()}}const o4=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&($c.test(e)||e==="0")&&!e.startsWith("url("));function lV(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 cV(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],l=o4(a,t),f=o4(s,t);return!l||!f?!1:lV(e)||(n==="spring"||A6(n))&&r}function O6(e){return QR(e)&&"offsetHeight"in e}const uV=new Set(["opacity","clipPath","filter","transform"]),fV=B_(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function dV(e){var p;const{motionValue:t,name:n,repeatDelay:r,repeatType:a,damping:s,type:l}=e;if(!O6((p=t==null?void 0:t.owner)==null?void 0:p.current))return!1;const{onUpdate:f,transformTemplate:m}=t.owner.getProps();return fV()&&n&&uV.has(n)&&(n!=="transform"||!m)&&!f&&!r&&a!=="mirror"&&s!==0&&l!=="inertia"}const hV=40;class pV extends X_{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:s=0,repeatType:l="loop",keyframes:f,name:m,motionValue:p,element:g,...b}){var C;super(),this.stop=()=>{var E,A;this._animation&&(this._animation.stop(),(E=this.stopTimeline)==null||E.call(this)),(A=this.keyframeResolver)==null||A.cancel()},this.createdAt=Ki.now();const S={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:s,repeatType:l,name:m,motionValue:p,element:g,...b},T=(g==null?void 0:g.KeyframeResolver)||J_;this.keyframeResolver=new T(f,(E,A,k)=>this.onKeyframesResolved(E,A,S,!k),m,p,g),(C=this.keyframeResolver)==null||C.scheduleResolve()}onKeyframesResolved(t,n,r,a){this.keyframeResolver=void 0;const{name:s,type:l,velocity:f,delay:m,isHandoff:p,onUpdate:g}=r;this.resolvedAt=Ki.now(),cV(t,s,l,f)||((xl.instantAnimations||!m)&&(g==null||g(K_(t,r,n))),t[0]=t[t.length-1],r.duration=0,r.repeat=0);const S={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>hV?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},T=!p&&dV(S)?new sV({...S,element:S.motionValue.owner.current}):new Z_(S);T.finished.then(()=>this.notifyFinished()).catch(Ya),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),XH()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const mV=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function gV(e){const t=mV.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function M6(e,t,n=1){const[r,a]=gV(e);if(!r)return;const s=window.getComputedStyle(t).getPropertyValue(r);if(s){const l=s.trim();return JR(l)?parseFloat(l):l}return V_(a)?M6(a,t,n+1):a}function Q_(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const D6=new Set(["width","height","top","left","right","bottom",...fp]),yV={test:e=>e==="auto",parse:e=>e},j6=e=>t=>t.test(e),I6=[up,xt,ws,Mc,lH,sH,yV],s4=e=>I6.find(j6(e));function vV(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||e6(e):!0}const bV=new Set(["brightness","contrast","saturate","opacity"]);function xV(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(W_)||[];if(!r)return e;const a=n.replace(r,"");let s=bV.has(t)?1:0;return r!==n&&(s*=100),t+"("+s+a+")"}const wV=/\b([a-z-]*)\(.*?\)/gu,_S={...$c,getAnimatableNone:e=>{const t=e.match(wV);return t?t.map(xV).join(" "):e}},l4={...up,transform:Math.round},SV={rotate:Mc,rotateX:Mc,rotateY:Mc,rotateZ:Mc,scale:Mv,scaleX:Mv,scaleY:Mv,scaleZ:Mv,skew:Mc,skewX:Mc,skewY:Mc,distance:xt,translateX:xt,translateY:xt,translateZ:xt,x:xt,y:xt,z:xt,perspective:xt,transformPerspective:xt,opacity:rg,originX:qE,originY:qE,originZ:xt},eC={borderWidth:xt,borderTopWidth:xt,borderRightWidth:xt,borderBottomWidth:xt,borderLeftWidth:xt,borderRadius:xt,radius:xt,borderTopLeftRadius:xt,borderTopRightRadius:xt,borderBottomRightRadius:xt,borderBottomLeftRadius:xt,width:xt,maxWidth:xt,height:xt,maxHeight:xt,top:xt,right:xt,bottom:xt,left:xt,padding:xt,paddingTop:xt,paddingRight:xt,paddingBottom:xt,paddingLeft:xt,margin:xt,marginTop:xt,marginRight:xt,marginBottom:xt,marginLeft:xt,backgroundPositionX:xt,backgroundPositionY:xt,...SV,zIndex:l4,fillOpacity:rg,strokeOpacity:rg,numOctaves:l4},_V={...eC,color:li,backgroundColor:li,outlineColor:li,fill:li,stroke:li,borderColor:li,borderTopColor:li,borderRightColor:li,borderBottomColor:li,borderLeftColor:li,filter:_S,WebkitFilter:_S},L6=e=>_V[e];function P6(e,t){let n=L6(e);return n!==_S&&(n=$c),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const CV=new Set(["auto","none","0"]);function EV(e,t,n){let r=0,a;for(;r<e.length&&!a;){const s=e[r];typeof s=="string"&&!CV.has(s)&&ig(s).values.length&&(a=e[r]),r++}if(a&&n)for(const s of t)e[s]=P6(n,a)}class TV extends J_{constructor(t,n,r,a,s){super(t,n,r,a,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let m=0;m<t.length;m++){let p=t[m];if(typeof p=="string"&&(p=p.trim(),V_(p))){const g=M6(p,n.current);g!==void 0&&(t[m]=g),m===t.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!D6.has(r)||t.length!==2)return;const[a,s]=t,l=s4(a),f=s4(s);if(l!==f)if(r4(l)&&r4(f))for(let m=0;m<t.length;m++){const p=t[m];typeof p=="string"&&(t[m]=parseFloat(p))}else _f[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)(t[a]===null||vV(t[a]))&&r.push(a);r.length&&EV(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=_f[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var f;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);const s=r.length-1,l=r[s];r[s]=_f[n](t.measureViewportBox(),window.getComputedStyle(t.current)),l!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=l),(f=this.removedTransforms)!=null&&f.length&&this.removedTransforms.forEach(([m,p])=>{t.getValue(m).set(p)}),this.resolveNoneKeyframes()}}const c4=30,RV=e=>!isNaN(parseFloat(e));class AV{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{var l,f;const s=Ki.now();if(this.updatedAt!==s&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((l=this.events.change)==null||l.notify(this.current),this.dependents))for(const m of this.dependents)m.dirty();a&&((f=this.events.renderRequest)==null||f.notify(this.current))},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Ki.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=RV(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 z_);const r=this.events[t].add(n);return t==="change"?()=>{r(),ar.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()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Ki.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>c4)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,c4);return t6(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(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function np(e,t){return new AV(e,t)}function kV(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const a=(n==null?void 0:n[e])??r.querySelectorAll(e);return a?Array.from(a):[]}return Array.from(e)}const N6=(e,t)=>t&&typeof e=="number"?t.transform(e):e,{schedule:tC}=d6(queueMicrotask,!1),xo={x:!1,y:!1};function F6(){return xo.x||xo.y}function OV(e){return e==="x"||e==="y"?xo[e]?null:(xo[e]=!0,()=>{xo[e]=!1}):xo.x||xo.y?null:(xo.x=xo.y=!0,()=>{xo.x=xo.y=!1})}function B6(e,t){const n=kV(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function u4(e){return!(e.pointerType==="touch"||F6())}function MV(e,t,n={}){const[r,a,s]=B6(e,n),l=f=>{if(!u4(f))return;const{target:m}=f,p=t(m,f);if(typeof p!="function"||!m)return;const g=b=>{u4(b)&&(p(b),m.removeEventListener("pointerleave",g))};m.addEventListener("pointerleave",g,a)};return r.forEach(f=>{f.addEventListener("pointerenter",l,a)}),s}const z6=(e,t)=>t?e===t?!0:z6(e,t.parentElement):!1,nC=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,DV=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function jV(e){return DV.has(e.tagName)||e.tabIndex!==-1}const qv=new WeakSet;function f4(e){return t=>{t.key==="Enter"&&e(t)}}function E2(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const IV=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=f4(()=>{if(qv.has(n))return;E2(n,"down");const a=f4(()=>{E2(n,"up")}),s=()=>E2(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function d4(e){return nC(e)&&!F6()}function LV(e,t,n={}){const[r,a,s]=B6(e,n),l=f=>{const m=f.currentTarget;if(!d4(f))return;qv.add(m);const p=t(m,f),g=(T,C)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",S),qv.has(m)&&qv.delete(m),d4(T)&&typeof p=="function"&&p(T,{success:C})},b=T=>{g(T,m===window||m===document||n.useGlobalTarget||z6(m,T.target))},S=T=>{g(T,!1)};window.addEventListener("pointerup",b,a),window.addEventListener("pointercancel",S,a)};return r.forEach(f=>{(n.useGlobalTarget?window:f).addEventListener("pointerdown",l,a),O6(f)&&(f.addEventListener("focus",p=>IV(p,a)),!jV(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),s}function U6(e){return QR(e)&&"ownerSVGElement"in e}function PV(e){return U6(e)&&e.tagName==="svg"}const ui=e=>!!(e&&e.getVelocity),NV=[...I6,li,$c],FV=e=>NV.find(j6(e)),CS=e=>Array.isArray(e);function BV(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,np(n))}function zV(e){return CS(e)?e[e.length-1]||0:e}function UV(e,t){const n=tg(e,t);let{transitionEnd:r={},transition:a={},...s}=n||{};s={...s,...r};for(const l in s){const f=zV(s[l]);BV(e,l,f)}}function $V(e){return!!(ui(e)&&e.add)}function ES(e,t){const n=e.getValue("willChange");if($V(n))return n.add(t);if(!n&&xl.WillChange){const r=new xl.WillChange("auto");e.addValue("willChange",r),r.add(t)}}const rC=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),HV="framerAppearId",$6="data-"+rC(HV);function H6(e){return e.props[$6]}const VV=e=>e!==null;function WV(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(VV),s=t&&n!=="loop"&&t%2===1?0:a.length-1;return a[s]}const GV={type:"spring",stiffness:500,damping:25,restSpeed:10},YV=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),qV={type:"keyframes",duration:.8},KV={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},XV=(e,{keyframes:t})=>t.length>2?qV:dp.has(e)?e.startsWith("scale")?YV(t[1]):GV:KV;function ZV({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:s,repeatType:l,repeatDelay:f,from:m,elapsed:p,...g}){return!!Object.keys(g).length}const iC=(e,t,n,r={},a,s)=>l=>{const f=Q_(r,e)||{},m=f.delay||r.delay||0;let{elapsed:p=0}=r;p=p-bs(m);const g={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...f,delay:-p,onUpdate:S=>{t.set(S),f.onUpdate&&f.onUpdate(S)},onComplete:()=>{l(),f.onComplete&&f.onComplete()},name:e,motionValue:t,element:s?void 0:a};ZV(f)||Object.assign(g,XV(e,g)),g.duration&&(g.duration=bs(g.duration)),g.repeatDelay&&(g.repeatDelay=bs(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let b=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(g.duration=0,g.delay===0&&(b=!0)),(xl.instantAnimations||xl.skipAnimations)&&(b=!0,g.duration=0,g.delay=0),g.allowFlatten=!f.type&&!f.ease,b&&!s&&t.get()!==void 0){const S=WV(g.keyframes,f);if(S!==void 0){ar.update(()=>{g.onUpdate(S),g.onComplete()});return}}return f.isSync?new Z_(g):new pV(g)};function JV({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function V6(e,t,{delay:n=0,transitionOverride:r,type:a}={}){let{transition:s=e.getDefaultTransition(),transitionEnd:l,...f}=t;r&&(s=r);const m=[],p=a&&e.animationState&&e.animationState.getState()[a];for(const g in f){const b=e.getValue(g,e.latestValues[g]??null),S=f[g];if(S===void 0||p&&JV(p,g))continue;const T={delay:n,...Q_(s||{},g)},C=b.get();if(C!==void 0&&!b.isAnimating&&!Array.isArray(S)&&S===C&&!T.velocity)continue;let E=!1;if(window.MotionHandoffAnimation){const k=H6(e);if(k){const L=window.MotionHandoffAnimation(k,g,ar);L!==null&&(T.startTime=L,E=!0)}}ES(e,g),b.start(iC(g,b,S,e.shouldReduceMotion&&D6.has(g)?{type:!1}:T,e,E));const A=b.animation;A&&m.push(A)}return l&&Promise.all(m).then(()=>{ar.update(()=>{l&&UV(e,l)})}),m}function TS(e,t,n={}){var m;const r=tg(e,t,n.type==="exit"?(m=e.presenceContext)==null?void 0:m.custom:void 0);let{transition:a=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(a=n.transitionOverride);const s=r?()=>Promise.all(V6(e,r,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(p=0)=>{const{delayChildren:g=0,staggerChildren:b,staggerDirection:S}=a;return QV(e,t,g+p,b,S,n)}:()=>Promise.resolve(),{when:f}=a;if(f){const[p,g]=f==="beforeChildren"?[s,l]:[l,s];return p().then(()=>g())}else return Promise.all([s(),l(n.delay)])}function QV(e,t,n=0,r=0,a=1,s){const l=[],f=(e.variantChildren.size-1)*r,m=a===1?(p=0)=>p*r:(p=0)=>f-p*r;return Array.from(e.variantChildren).sort(eW).forEach((p,g)=>{p.notify("AnimationStart",t),l.push(TS(p,t,{...s,delay:n+m(g)}).then(()=>p.notify("AnimationComplete",t)))}),Promise.all(l)}function eW(e,t){return e.sortNodePosition(t)}function tW(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(s=>TS(e,s,n));r=Promise.all(a)}else if(typeof t=="string")r=TS(e,t,n);else{const a=typeof t=="function"?tg(e,t,n.custom):t;r=Promise.all(V6(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function W6(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 ag(e){return typeof e=="string"||Array.isArray(e)}const aC=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],oC=["initial",...aC],nW=oC.length;function G6(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?G6(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<nW;n++){const r=oC[n],a=e.props[r];(ag(a)||a===!1)&&(t[r]=a)}return t}const rW=[...aC].reverse(),iW=aC.length;function aW(e){return t=>Promise.all(t.map(({animation:n,options:r})=>tW(e,n,r)))}function oW(e){let t=aW(e),n=h4(),r=!0;const a=m=>(p,g)=>{var S;const b=tg(e,g,m==="exit"?(S=e.presenceContext)==null?void 0:S.custom:void 0);if(b){const{transition:T,transitionEnd:C,...E}=b;p={...p,...E,...C}}return p};function s(m){t=m(e)}function l(m){const{props:p}=e,g=G6(e.parent)||{},b=[],S=new Set;let T={},C=1/0;for(let A=0;A<iW;A++){const k=rW[A],L=n[k],O=p[k]!==void 0?p[k]:g[k],P=ag(O),M=k===m?L.isActive:null;M===!1&&(C=A);let $=O===g[k]&&O!==p[k]&&P;if($&&r&&e.manuallyAnimateOnMount&&($=!1),L.protectedKeys={...T},!L.isActive&&M===null||!O&&!L.prevProp||hx(O)||typeof O=="boolean")continue;const B=sW(L.prevProp,O);let H=B||k===m&&L.isActive&&!$&&P||A>C&&P,q=!1;const j=Array.isArray(O)?O:[O];let X=j.reduce(a(k),{});M===!1&&(X={});const{prevResolvedValues:K={}}=L,ne={...K,...X},le=Q=>{H=!0,S.has(Q)&&(q=!0,S.delete(Q)),L.needsAnimating[Q]=!0;const Z=e.getValue(Q);Z&&(Z.liveStyle=!1)};for(const Q in ne){const Z=X[Q],ae=K[Q];if(T.hasOwnProperty(Q))continue;let U=!1;CS(Z)&&CS(ae)?U=!W6(Z,ae):U=Z!==ae,U?Z!=null?le(Q):S.add(Q):Z!==void 0&&S.has(Q)?le(Q):L.protectedKeys[Q]=!0}L.prevProp=O,L.prevResolvedValues=X,L.isActive&&(T={...T,...X}),r&&e.blockInitialAnimation&&(H=!1),H&&(!($&&B)||q)&&b.push(...j.map(Q=>({animation:Q,options:{type:k}})))}if(S.size){const A={};if(typeof p.initial!="boolean"){const k=tg(e,Array.isArray(p.initial)?p.initial[0]:p.initial);k&&k.transition&&(A.transition=k.transition)}S.forEach(k=>{const L=e.getBaseTarget(k),O=e.getValue(k);O&&(O.liveStyle=!0),A[k]=L??null}),b.push({animation:A})}let E=!!b.length;return r&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(E=!1),r=!1,E?t(b):Promise.resolve()}function f(m,p){var b;if(n[m].isActive===p)return Promise.resolve();(b=e.variantChildren)==null||b.forEach(S=>{var T;return(T=S.animationState)==null?void 0:T.setActive(m,p)}),n[m].isActive=p;const g=l(m);for(const S in n)n[S].protectedKeys={};return g}return{animateChanges:l,setActive:f,setAnimateFunction:s,getState:()=>n,reset:()=>{n=h4(),r=!0}}}function sW(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!W6(t,e):!1}function cf(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function h4(){return{animate:cf(!0),whileInView:cf(),whileHover:cf(),whileTap:cf(),whileDrag:cf(),whileFocus:cf(),exit:cf()}}class Vc{constructor(t){this.isMounted=!1,this.node=t}update(){}}class lW extends Vc{constructor(t){super(t),t.animationState||(t.animationState=oW(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();hx(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.call(this)}}let cW=0;class uW extends Vc{constructor(){super(...arguments),this.id=cW++}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 a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const fW={animation:{Feature:lW},exit:{Feature:uW}};function og(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Fg(e){return{point:{x:e.pageX,y:e.pageY}}}const dW=e=>t=>nC(t)&&e(t,Fg(t));function U0(e,t,n,r){return og(e,t,dW(n),r)}function Y6({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function hW({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function pW(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}}const q6=1e-4,mW=1-q6,gW=1+q6,K6=.01,yW=0-K6,vW=0+K6;function Ti(e){return e.max-e.min}function bW(e,t,n){return Math.abs(e-t)<=n}function p4(e,t,n,r=.5){e.origin=r,e.originPoint=rr(t.min,t.max,e.origin),e.scale=Ti(n)/Ti(t),e.translate=rr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=mW&&e.scale<=gW||isNaN(e.scale))&&(e.scale=1),(e.translate>=yW&&e.translate<=vW||isNaN(e.translate))&&(e.translate=0)}function $0(e,t,n,r){p4(e.x,t.x,n.x,r?r.originX:void 0),p4(e.y,t.y,n.y,r?r.originY:void 0)}function m4(e,t,n){e.min=n.min+t.min,e.max=e.min+Ti(t)}function xW(e,t,n){m4(e.x,t.x,n.x),m4(e.y,t.y,n.y)}function g4(e,t,n){e.min=t.min-n.min,e.max=e.min+Ti(t)}function H0(e,t,n){g4(e.x,t.x,n.x),g4(e.y,t.y,n.y)}const y4=()=>({translate:0,scale:1,origin:0,originPoint:0}),Nh=()=>({x:y4(),y:y4()}),v4=()=>({min:0,max:0}),xr=()=>({x:v4(),y:v4()});function Ua(e){return[e("x"),e("y")]}function T2(e){return e===void 0||e===1}function RS({scale:e,scaleX:t,scaleY:n}){return!T2(e)||!T2(t)||!T2(n)}function hf(e){return RS(e)||X6(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function X6(e){return b4(e.x)||b4(e.y)}function b4(e){return e&&e!=="0%"}function Cb(e,t,n){const r=e-n,a=t*r;return n+a}function x4(e,t,n,r,a){return a!==void 0&&(e=Cb(e,a,r)),Cb(e,n,r)+t}function AS(e,t=0,n=1,r,a){e.min=x4(e.min,t,n,r,a),e.max=x4(e.max,t,n,r,a)}function Z6(e,{x:t,y:n}){AS(e.x,t.translate,t.scale,t.originPoint),AS(e.y,n.translate,n.scale,n.originPoint)}const w4=.999999999999,S4=1.0000000000001;function wW(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let s,l;for(let f=0;f<a;f++){s=n[f],l=s.projectionDelta;const{visualElement:m}=s.options;m&&m.props.style&&m.props.style.display==="contents"||(r&&s.options.layoutScroll&&s.scroll&&s!==s.root&&Bh(e,{x:-s.scroll.offset.x,y:-s.scroll.offset.y}),l&&(t.x*=l.x.scale,t.y*=l.y.scale,Z6(e,l)),r&&hf(s.latestValues)&&Bh(e,s.latestValues))}t.x<S4&&t.x>w4&&(t.x=1),t.y<S4&&t.y>w4&&(t.y=1)}function Fh(e,t){e.min=e.min+t,e.max=e.max+t}function _4(e,t,n,r,a=.5){const s=rr(e.min,e.max,a);AS(e,t,n,s,r)}function Bh(e,t){_4(e.x,t.x,t.scaleX,t.scale,t.originX),_4(e.y,t.y,t.scaleY,t.scale,t.originY)}function J6(e,t){return Y6(pW(e.getBoundingClientRect(),t))}function SW(e,t,n){const r=J6(e,n),{scroll:a}=t;return a&&(Fh(r.x,a.offset.x),Fh(r.y,a.offset.y)),r}const Q6=({current:e})=>e?e.ownerDocument.defaultView:null;function zh(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}const C4=(e,t)=>Math.abs(e-t);function _W(e,t){const n=C4(e.x,t.x),r=C4(e.y,t.y);return Math.sqrt(n**2+r**2)}class eA{constructor(t,n,{transformPagePoint:r,contextWindow:a,dragSnapToOrigin:s=!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 b=A2(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,T=_W(b.offset,{x:0,y:0})>=3;if(!S&&!T)return;const{point:C}=b,{timestamp:E}=Hr;this.history.push({...C,timestamp:E});const{onStart:A,onMove:k}=this.handlers;S||(A&&A(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),k&&k(this.lastMoveEvent,b)},this.handlePointerMove=(b,S)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=R2(S,this.transformPagePoint),ar.update(this.updatePoint,!0)},this.handlePointerUp=(b,S)=>{this.end();const{onEnd:T,onSessionEnd:C,resumeAnimation:E}=this.handlers;if(this.dragSnapToOrigin&&E&&E(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=A2(b.type==="pointercancel"?this.lastMoveEventInfo:R2(S,this.transformPagePoint),this.history);this.startEvent&&T&&T(b,A),C&&C(b,A)},!nC(t))return;this.dragSnapToOrigin=s,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const l=Fg(t),f=R2(l,this.transformPagePoint),{point:m}=f,{timestamp:p}=Hr;this.history=[{...m,timestamp:p}];const{onSessionStart:g}=n;g&&g(t,A2(f,this.history)),this.removeListeners=Lg(U0(this.contextWindow,"pointermove",this.handlePointerMove),U0(this.contextWindow,"pointerup",this.handlePointerUp),U0(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),Uc(this.updatePoint)}}function R2(e,t){return t?{point:t(e.point)}:e}function E4(e,t){return{x:e.x-t.x,y:e.y-t.y}}function A2({point:e},t){return{point:e,delta:E4(e,tA(t)),offset:E4(e,CW(t)),velocity:EW(t,.1)}}function CW(e){return e[0]}function tA(e){return e[e.length-1]}function EW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=tA(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>bs(t)));)n--;if(!r)return{x:0,y:0};const s=xs(a.timestamp-r.timestamp);if(s===0)return{x:0,y:0};const l={x:(a.x-r.x)/s,y:(a.y-r.y)/s};return l.x===1/0&&(l.x=0),l.y===1/0&&(l.y=0),l}function TW(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?rr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?rr(n,e,r.max):Math.min(e,n)),e}function T4(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 RW(e,{top:t,left:n,bottom:r,right:a}){return{x:T4(e.x,n,a),y:T4(e.y,t,r)}}function R4(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 AW(e,t){return{x:R4(e.x,t.x),y:R4(e.y,t.y)}}function kW(e,t){let n=.5;const r=Ti(e),a=Ti(t);return a>r?n=ng(t.min,t.max-r,e.min):r>a&&(n=ng(e.min,e.max-a,t.min)),bl(0,1,n)}function OW(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 kS=.35;function MW(e=kS){return e===!1?e=0:e===!0&&(e=kS),{x:A4(e,"left","right"),y:A4(e,"top","bottom")}}function A4(e,t,n){return{min:k4(e,t),max:k4(e,n)}}function k4(e,t){return typeof e=="number"?e:e[t]||0}const DW=new WeakMap;class jW{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=xr(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=g=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Fg(g).point)},s=(g,b)=>{const{drag:S,dragPropagation:T,onDragStart:C}=this.getProps();if(S&&!T&&(this.openDragLock&&this.openDragLock(),this.openDragLock=OV(S),!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),Ua(A=>{let k=this.getAxisMotionValue(A).get()||0;if(ws.test(k)){const{projection:L}=this.visualElement;if(L&&L.layout){const O=L.layout.layoutBox[A];O&&(k=Ti(O)*(parseFloat(k)/100))}}this.originPoint[A]=k}),C&&ar.postRender(()=>C(g,b)),ES(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},l=(g,b)=>{const{dragPropagation:S,dragDirectionLock:T,onDirectionLock:C,onDrag:E}=this.getProps();if(!S&&!this.openDragLock)return;const{offset:A}=b;if(T&&this.currentDirection===null){this.currentDirection=IW(A),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",b.point,A),this.updateAxis("y",b.point,A),this.visualElement.render(),E&&E(g,b)},f=(g,b)=>this.stop(g,b),m=()=>Ua(g=>{var b;return this.getAnimationState(g)==="paused"&&((b=this.getAxisMotionValue(g).animation)==null?void 0:b.play())}),{dragSnapToOrigin:p}=this.getProps();this.panSession=new eA(t,{onSessionStart:a,onStart:s,onMove:l,onSessionEnd:f,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:p,contextWindow:Q6(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:s}=this.getProps();s&&ar.postRender(()=>s(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:a}=this.getProps();if(!r||!Dv(t,a,this.currentDirection))return;const s=this.getAxisMotionValue(t);let l=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(l=TW(l,this.constraints[t],this.elastic[t])),s.set(l)}resolveConstraints(){var s;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(s=this.visualElement.projection)==null?void 0:s.layout,a=this.constraints;t&&zh(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=RW(r.layoutBox,t):this.constraints=!1,this.elastic=MW(n),a!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Ua(l=>{this.constraints!==!1&&this.getAxisMotionValue(l)&&(this.constraints[l]=OW(r.layoutBox[l],this.constraints[l]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!zh(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const s=SW(r,a.root,this.visualElement.getTransformPagePoint());let l=AW(a.layout.layoutBox,s);if(n){const f=n(hW(l));this.hasMutatedConstraints=!!f,f&&(l=Y6(f))}return l}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:s,dragSnapToOrigin:l,onDragTransitionEnd:f}=this.getProps(),m=this.constraints||{},p=Ua(g=>{if(!Dv(g,n,this.currentDirection))return;let b=m&&m[g]||{};l&&(b={min:0,max:0});const S=a?200:1e6,T=a?40:1e7,C={type:"inertia",velocity:r?t[g]:0,bounceStiffness:S,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...s,...b};return this.startAxisValueAnimation(g,C)});return Promise.all(p).then(f)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return ES(this.visualElement,t),r.start(iC(t,r,0,n,this.visualElement,!1))}stopAnimation(){Ua(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Ua(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Ua(n=>{const{drag:r}=this.getProps();if(!Dv(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,s=this.getAxisMotionValue(n);if(a&&a.layout){const{min:l,max:f}=a.layout.layoutBox[n];s.set(t[n]-rr(l,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!zh(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};Ua(l=>{const f=this.getAxisMotionValue(l);if(f&&this.constraints!==!1){const m=f.get();a[l]=kW({min:m,max:m},this.constraints[l])}});const{transformTemplate:s}=this.visualElement.getProps();this.visualElement.current.style.transform=s?s({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Ua(l=>{if(!Dv(l,t,null))return;const f=this.getAxisMotionValue(l),{min:m,max:p}=this.constraints[l];f.set(rr(m,p,a[l]))})}addListeners(){if(!this.visualElement.current)return;DW.set(this.visualElement,this);const t=this.visualElement.current,n=U0(t,"pointerdown",m=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&this.start(m)}),r=()=>{const{dragConstraints:m}=this.getProps();zh(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,s=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),ar.read(r);const l=og(window,"resize",()=>this.scalePositionWithinConstraints()),f=a.addEventListener("didUpdate",({delta:m,hasLayoutChanged:p})=>{this.isDragging&&p&&(Ua(g=>{const b=this.getAxisMotionValue(g);b&&(this.originPoint[g]+=m[g].translate,b.set(b.get()+m[g].translate))}),this.visualElement.render())});return()=>{l(),n(),s(),f&&f()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:s=!1,dragElastic:l=kS,dragMomentum:f=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:s,dragElastic:l,dragMomentum:f}}}function Dv(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function IW(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class LW extends Vc{constructor(t){super(t),this.removeGroupControls=Ya,this.removeListeners=Ya,this.controls=new jW(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Ya}unmount(){this.removeGroupControls(),this.removeListeners()}}const O4=e=>(t,n)=>{e&&ar.postRender(()=>e(t,n))};class PW extends Vc{constructor(){super(...arguments),this.removePointerDownListener=Ya}onPointerDown(t){this.session=new eA(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Q6(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:O4(t),onStart:O4(n),onMove:r,onEnd:(s,l)=>{delete this.session,a&&ar.postRender(()=>a(s,l))}}}mount(){this.removePointerDownListener=U0(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 sC=_.createContext(null);function NW(e=!0){const t=_.useContext(sC);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,s=_.useId();_.useEffect(()=>{if(e)return a(s)},[e]);const l=_.useCallback(()=>e&&r&&r(s),[s,r,e]);return!n&&r?[!1,l]:[!0]}const nA=_.createContext({}),rA=_.createContext({}),Kv={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function M4(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const E0={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(xt.test(e))e=parseFloat(e);else return e;const n=M4(e,t.target.x),r=M4(e,t.target.y);return`${n}% ${r}%`}},FW={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=$c.parse(e);if(a.length>5)return r;const s=$c.createTransformer(e),l=typeof a[0]!="number"?1:0,f=n.x.scale*t.x,m=n.y.scale*t.y;a[0+l]/=f,a[1+l]/=m;const p=rr(f,m,.5);return typeof a[2+l]=="number"&&(a[2+l]/=p),typeof a[3+l]=="number"&&(a[3+l]/=p),s(a)}},sg={};function BW(e){for(const t in e)sg[t]=e[t],H_(t)&&(sg[t].isCSSVariable=!0)}class zW extends _.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:s}=t;BW(UW),s&&(n.group&&n.group.add(s),r&&r.register&&a&&r.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",()=>{this.safeToRemove()}),s.setOptions({...s.options,onExitComplete:()=>this.safeToRemove()})),Kv.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:s}=this.props,{projection:l}=r;return l&&(l.isPresent=s,a||t.layoutDependency!==n||n===void 0||t.isPresent!==s?l.willUpdate():this.safeToRemove(),t.isPresent!==s&&(s?l.promote():l.relegate()||ar.postRender(()=>{const f=l.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tC.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function iA(e){const[t,n]=NW(),r=_.useContext(nA);return v.jsx(zW,{...e,layoutGroup:r,switchLayoutGroup:_.useContext(rA),isPresent:t,safeToRemove:n})}const UW={borderRadius:{...E0,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:E0,borderTopRightRadius:E0,borderBottomLeftRadius:E0,borderBottomRightRadius:E0,boxShadow:FW};function $W(e,t,n){const r=ui(e)?e:np(e);return r.start(iC("",r,t,n)),r.animation}const HW=(e,t)=>e.depth-t.depth;class VW{constructor(){this.children=[],this.isDirty=!1}add(t){P_(this.children,t),this.isDirty=!0}remove(t){N_(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(HW),this.isDirty=!1,this.children.forEach(t)}}function WW(e,t){const n=Ki.now(),r=({timestamp:a})=>{const s=a-n;s>=t&&(Uc(r),e(s-t))};return ar.setup(r,!0),()=>Uc(r)}function Xv(e){return ui(e)?e.get():e}const aA=["TopLeft","TopRight","BottomLeft","BottomRight"],GW=aA.length,D4=e=>typeof e=="string"?parseFloat(e):e,j4=e=>typeof e=="number"||xt.test(e);function YW(e,t,n,r,a,s){a?(e.opacity=rr(0,n.opacity??1,qW(r)),e.opacityExit=rr(t.opacity??1,0,KW(r))):s&&(e.opacity=rr(t.opacity??1,n.opacity??1,r));for(let l=0;l<GW;l++){const f=`border${aA[l]}Radius`;let m=I4(t,f),p=I4(n,f);if(m===void 0&&p===void 0)continue;m||(m=0),p||(p=0),m===0||p===0||j4(m)===j4(p)?(e[f]=Math.max(rr(D4(m),D4(p),r),0),(ws.test(p)||ws.test(m))&&(e[f]+="%")):e[f]=p}(t.rotate||n.rotate)&&(e.rotate=rr(t.rotate||0,n.rotate||0,r))}function I4(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const qW=oA(0,.5,l6),KW=oA(.5,.95,Ya);function oA(e,t,n){return r=>r<e?0:r>t?1:n(ng(e,t,r))}function L4(e,t){e.min=t.min,e.max=t.max}function Na(e,t){L4(e.x,t.x),L4(e.y,t.y)}function P4(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function N4(e,t,n,r,a){return e-=t,e=Cb(e,1/n,r),a!==void 0&&(e=Cb(e,1/a,r)),e}function XW(e,t=0,n=1,r=.5,a,s=e,l=e){if(ws.test(t)&&(t=parseFloat(t),t=rr(l.min,l.max,t/100)-l.min),typeof t!="number")return;let f=rr(s.min,s.max,r);e===s&&(f-=t),e.min=N4(e.min,t,n,f,a),e.max=N4(e.max,t,n,f,a)}function F4(e,t,[n,r,a],s,l){XW(e,t[n],t[r],t[a],t.scale,s,l)}const ZW=["x","scaleX","originX"],JW=["y","scaleY","originY"];function B4(e,t,n,r){F4(e.x,t,ZW,n?n.x:void 0,r?r.x:void 0),F4(e.y,t,JW,n?n.y:void 0,r?r.y:void 0)}function z4(e){return e.translate===0&&e.scale===1}function sA(e){return z4(e.x)&&z4(e.y)}function U4(e,t){return e.min===t.min&&e.max===t.max}function QW(e,t){return U4(e.x,t.x)&&U4(e.y,t.y)}function $4(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function lA(e,t){return $4(e.x,t.x)&&$4(e.y,t.y)}function H4(e){return Ti(e.x)/Ti(e.y)}function V4(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class eG{constructor(){this.members=[]}add(t){P_(this.members,t),t.scheduleRender()}remove(t){if(N_(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(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const s=this.members[a];if(s.isPresent!==!1){r=s;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:a}=t.options;a===!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 tG(e,t,n){let r="";const a=e.x.translate/t.x,s=e.y.translate/t.y,l=(n==null?void 0:n.z)||0;if((a||s||l)&&(r=`translate3d(${a}px, ${s}px, ${l}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:p,rotate:g,rotateX:b,rotateY:S,skewX:T,skewY:C}=n;p&&(r=`perspective(${p}px) ${r}`),g&&(r+=`rotate(${g}deg) `),b&&(r+=`rotateX(${b}deg) `),S&&(r+=`rotateY(${S}deg) `),T&&(r+=`skewX(${T}deg) `),C&&(r+=`skewY(${C}deg) `)}const f=e.x.scale*t.x,m=e.y.scale*t.y;return(f!==1||m!==1)&&(r+=`scale(${f}, ${m})`),r||"none"}const k2=["","X","Y","Z"],nG={visibility:"hidden"},rG=1e3;let iG=0;function O2(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function cA(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=H6(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",ar,!(a||s))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&cA(r)}function uA({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(l={},f=t==null?void 0:t()){this.id=iG++,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,this.nodes.forEach(sG),this.nodes.forEach(dG),this.nodes.forEach(hG),this.nodes.forEach(lG)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=l,this.root=f?f.root||f:this,this.path=f?[...f.path,f]:[],this.parent=f,this.depth=f?f.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new VW)}addEventListener(l,f){return this.eventHandlers.has(l)||this.eventHandlers.set(l,new z_),this.eventHandlers.get(l).add(f)}notifyListeners(l,...f){const m=this.eventHandlers.get(l);m&&m.notify(...f)}hasListeners(l){return this.eventHandlers.has(l)}mount(l){if(this.instance)return;this.isSVG=U6(l)&&!PV(l),this.instance=l;const{layoutId:f,layout:m,visualElement:p}=this.options;if(p&&!p.current&&p.mount(l),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||f)&&(this.isLayoutDirty=!0),e){let g;const b=()=>this.root.updateBlockedByResize=!1;e(l,()=>{this.root.updateBlockedByResize=!0,g&&g(),g=WW(b,250),Kv.hasAnimatedSinceResize&&(Kv.hasAnimatedSinceResize=!1,this.nodes.forEach(G4))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&p&&(f||m)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:b,hasRelativeLayoutChanged:S,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||p.getDefaultTransition()||vG,{onLayoutAnimationStart:E,onLayoutAnimationComplete:A}=p.getProps(),k=!this.targetLayout||!lA(this.targetLayout,T),L=!b&&S;if(this.options.layoutRoot||this.resumeFrom||L||b&&(k||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const O={...Q_(C,"layout"),onPlay:E,onComplete:A};(p.shouldReduceMotion||this.options.layoutRoot)&&(O.delay=0,O.type=!1),this.startAnimation(O),this.setAnimationOrigin(g,L)}else b||G4(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const l=this.getStack();l&&l.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Uc(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(pG),this.animationId++)}getTransformTemplate(){const{visualElement:l}=this.options;return l&&l.getProps().transformTemplate}willUpdate(l=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&cA(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const b=this.path[g];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:f,layout:m}=this.options;if(f===void 0&&!m)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),l&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(W4);return}this.isUpdating||this.nodes.forEach(uG),this.isUpdating=!1,this.nodes.forEach(fG),this.nodes.forEach(aG),this.nodes.forEach(oG),this.clearAllSnapshots();const f=Ki.now();Hr.delta=bl(0,1e3/60,f-Hr.timestamp),Hr.timestamp=f,Hr.isProcessing=!0,w2.update.process(Hr),w2.preRender.process(Hr),w2.render.process(Hr),Hr.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tC.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(cG),this.sharedNodes.forEach(mG)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ar.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ar.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Ti(this.snapshot.measuredBox.x)&&!Ti(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const l=this.layout;this.layout=this.measure(!1),this.layoutCorrected=xr(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:f}=this.options;f&&f.notify("LayoutMeasure",this.layout.layoutBox,l?l.layoutBox:void 0)}updateScroll(l="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===l&&(f=!1),f&&this.instance){const m=r(this.instance);this.scroll={animationId:this.root.animationId,phase:l,isRoot:m,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!a)return;const l=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!sA(this.projectionDelta),m=this.getTransformTemplate(),p=m?m(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;l&&this.instance&&(f||hf(this.latestValues)||g)&&(a(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(l=!0){const f=this.measurePageBox();let m=this.removeElementScroll(f);return l&&(m=this.removeTransform(m)),bG(m),{animationId:this.root.animationId,measuredBox:f,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var p;const{visualElement:l}=this.options;if(!l)return xr();const f=l.measureViewportBox();if(!(((p=this.scroll)==null?void 0:p.wasRoot)||this.path.some(xG))){const{scroll:g}=this.root;g&&(Fh(f.x,g.offset.x),Fh(f.y,g.offset.y))}return f}removeElementScroll(l){var m;const f=xr();if(Na(f,l),(m=this.scroll)!=null&&m.wasRoot)return f;for(let p=0;p<this.path.length;p++){const g=this.path[p],{scroll:b,options:S}=g;g!==this.root&&b&&S.layoutScroll&&(b.wasRoot&&Na(f,l),Fh(f.x,b.offset.x),Fh(f.y,b.offset.y))}return f}applyTransform(l,f=!1){const m=xr();Na(m,l);for(let p=0;p<this.path.length;p++){const g=this.path[p];!f&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Bh(m,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),hf(g.latestValues)&&Bh(m,g.latestValues)}return hf(this.latestValues)&&Bh(m,this.latestValues),m}removeTransform(l){const f=xr();Na(f,l);for(let m=0;m<this.path.length;m++){const p=this.path[m];if(!p.instance||!hf(p.latestValues))continue;RS(p.latestValues)&&p.updateSnapshot();const g=xr(),b=p.measurePageBox();Na(g,b),B4(f,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return hf(this.latestValues)&&B4(f,this.latestValues),f}setTargetDelta(l){this.targetDelta=l,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(l){this.options={...this.options,...l,crossfade:l.crossfade!==void 0?l.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!==Hr.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(l=!1){var S;const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==f;if(!(l||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:b}=this.options;if(!(!this.layout||!(g||b))){if(this.resolvedRelativeTargetAt=Hr.timestamp,!this.targetDelta&&!this.relativeTarget){const T=this.getClosestProjectingParent();T&&T.layout&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xr(),this.relativeTargetOrigin=xr(),H0(this.relativeTargetOrigin,this.layout.layoutBox,T.layout.layoutBox),Na(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=xr(),this.targetWithTransforms=xr()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),xW(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Na(this.target,this.layout.layoutBox),Z6(this.target,this.targetDelta)):Na(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const T=this.getClosestProjectingParent();T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?(this.relativeParent=T,this.forceRelativeParentToResolveTarget(),this.relativeTarget=xr(),this.relativeTargetOrigin=xr(),H0(this.relativeTargetOrigin,this.target,T.target),Na(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||RS(this.parent.latestValues)||X6(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 C;const l=this.getLead(),f=!!this.resumingFrom||this!==l;let m=!0;if((this.isProjectionDirty||(C=this.parent)!=null&&C.isProjectionDirty)&&(m=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===Hr.timestamp&&(m=!1),m)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;Na(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,S=this.treeScale.y;wW(this.layoutCorrected,this.treeScale,this.path,f),l.layout&&!l.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(l.target=l.layout.layoutBox,l.targetWithTransforms=xr());const{target:T}=l;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(P4(this.prevProjectionDelta.x,this.projectionDelta.x),P4(this.prevProjectionDelta.y,this.projectionDelta.y)),$0(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==S||!V4(this.projectionDelta.x,this.prevProjectionDelta.x)||!V4(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(l=!0){var f;if((f=this.options.visualElement)==null||f.scheduleRender(),l){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Nh(),this.projectionDelta=Nh(),this.projectionDeltaWithTransform=Nh()}setAnimationOrigin(l,f=!1){const m=this.snapshot,p=m?m.latestValues:{},g={...this.latestValues},b=Nh();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const S=xr(),T=m?m.source:void 0,C=this.layout?this.layout.source:void 0,E=T!==C,A=this.getStack(),k=!A||A.members.length<=1,L=!!(E&&!k&&this.options.crossfade===!0&&!this.path.some(yG));this.animationProgress=0;let O;this.mixTargetDelta=P=>{const M=P/1e3;Y4(b.x,l.x,M),Y4(b.y,l.y,M),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(H0(S,this.layout.layoutBox,this.relativeParent.layout.layoutBox),gG(this.relativeTarget,this.relativeTargetOrigin,S,M),O&&QW(this.relativeTarget,O)&&(this.isProjectionDirty=!1),O||(O=xr()),Na(O,this.relativeTarget)),E&&(this.animationValues=g,YW(g,p,this.latestValues,M,L,k)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=M},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(l){var f,m,p;this.notifyListeners("animationStart"),(f=this.currentAnimation)==null||f.stop(),(p=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||p.stop(),this.pendingAnimation&&(Uc(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ar.update(()=>{Kv.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=np(0)),this.currentAnimation=$W(this.motionValue,[0,1e3],{...l,isSync:!0,onUpdate:g=>{this.mixTargetDelta(g),l.onUpdate&&l.onUpdate(g)},onStop:()=>{},onComplete:()=>{l.onComplete&&l.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 l=this.getStack();l&&l.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(rG),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const l=this.getLead();let{targetWithTransforms:f,target:m,layout:p,latestValues:g}=l;if(!(!f||!m||!p)){if(this!==l&&this.layout&&p&&fA(this.options.animationType,this.layout.layoutBox,p.layoutBox)){m=this.target||xr();const b=Ti(this.layout.layoutBox.x);m.x.min=l.target.x.min,m.x.max=m.x.min+b;const S=Ti(this.layout.layoutBox.y);m.y.min=l.target.y.min,m.y.max=m.y.min+S}Na(f,m),Bh(f,g),$0(this.projectionDeltaWithTransform,this.layoutCorrected,f,g)}}registerSharedNode(l,f){this.sharedNodes.has(l)||this.sharedNodes.set(l,new eG),this.sharedNodes.get(l).add(f);const p=f.options.initialPromotionConfig;f.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(f):void 0})}isLead(){const l=this.getStack();return l?l.lead===this:!0}getLead(){var f;const{layoutId:l}=this.options;return l?((f=this.getStack())==null?void 0:f.lead)||this:this}getPrevLead(){var f;const{layoutId:l}=this.options;return l?(f=this.getStack())==null?void 0:f.prevLead:void 0}getStack(){const{layoutId:l}=this.options;if(l)return this.root.sharedNodes.get(l)}promote({needsReset:l,transition:f,preserveFollowOpacity:m}={}){const p=this.getStack();p&&p.promote(this,m),l&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const l=this.getStack();return l?l.relegate(this):!1}resetSkewAndRotation(){const{visualElement:l}=this.options;if(!l)return;let f=!1;const{latestValues:m}=l;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(f=!0),!f)return;const p={};m.z&&O2("z",l,p,this.animationValues);for(let g=0;g<k2.length;g++)O2(`rotate${k2[g]}`,l,p,this.animationValues),O2(`skew${k2[g]}`,l,p,this.animationValues);l.render();for(const g in p)l.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);l.scheduleRender()}getProjectionStyles(l){if(!this.instance||this.isSVG)return;if(!this.isVisible)return nG;const f={visibility:""},m=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,f.opacity="",f.pointerEvents=Xv(l==null?void 0:l.pointerEvents)||"",f.transform=m?m(this.latestValues,""):"none",f;const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){const T={};return this.options.layoutId&&(T.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,T.pointerEvents=Xv(l==null?void 0:l.pointerEvents)||""),this.hasProjected&&!hf(this.latestValues)&&(T.transform=m?m({},""):"none",this.hasProjected=!1),T}const g=p.animationValues||p.latestValues;this.applyTransformsToTarget(),f.transform=tG(this.projectionDeltaWithTransform,this.treeScale,g),m&&(f.transform=m(g,f.transform));const{x:b,y:S}=this.projectionDelta;f.transformOrigin=`${b.origin*100}% ${S.origin*100}% 0`,p.animationValues?f.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:f.opacity=p===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const T in sg){if(g[T]===void 0)continue;const{correct:C,applyTo:E,isCSSVariable:A}=sg[T],k=f.transform==="none"?g[T]:C(g[T],p);if(E){const L=E.length;for(let O=0;O<L;O++)f[E[O]]=k}else A?this.options.visualElement.renderState.vars[T]=k:f[T]=k}return this.options.layoutId&&(f.pointerEvents=p===this?Xv(l==null?void 0:l.pointerEvents)||"":"none"),f}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(l=>{var f;return(f=l.currentAnimation)==null?void 0:f.stop()}),this.root.nodes.forEach(W4),this.root.sharedNodes.clear()}}}function aG(e){e.updateLayout()}function oG(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:s}=e.options,l=t.source!==e.layout.source;s==="size"?Ua(b=>{const S=l?t.measuredBox[b]:t.layoutBox[b],T=Ti(S);S.min=r[b].min,S.max=S.min+T}):fA(s,t.layoutBox,r)&&Ua(b=>{const S=l?t.measuredBox[b]:t.layoutBox[b],T=Ti(r[b]);S.max=S.min+T,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[b].max=e.relativeTarget[b].min+T)});const f=Nh();$0(f,r,t.layoutBox);const m=Nh();l?$0(m,e.applyTransform(a,!0),t.measuredBox):$0(m,r,t.layoutBox);const p=!sA(f);let g=!1;if(!e.resumeFrom){const b=e.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:S,layout:T}=b;if(S&&T){const C=xr();H0(C,t.layoutBox,S.layoutBox);const E=xr();H0(E,r,T.layoutBox),lA(C,E)||(g=!0),b.options.layoutRoot&&(e.relativeTarget=E,e.relativeTargetOrigin=C,e.relativeParent=b)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:m,layoutDelta:f,hasLayoutChanged:p,hasRelativeLayoutChanged:g})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function sG(e){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 lG(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function cG(e){e.clearSnapshot()}function W4(e){e.clearMeasurements()}function uG(e){e.isLayoutDirty=!1}function fG(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function G4(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function dG(e){e.resolveTargetDelta()}function hG(e){e.calcProjection()}function pG(e){e.resetSkewAndRotation()}function mG(e){e.removeLeadSnapshot()}function Y4(e,t,n){e.translate=rr(t.translate,0,n),e.scale=rr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function q4(e,t,n,r){e.min=rr(t.min,n.min,r),e.max=rr(t.max,n.max,r)}function gG(e,t,n,r){q4(e.x,t.x,n.x,r),q4(e.y,t.y,n.y,r)}function yG(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const vG={duration:.45,ease:[.4,0,.1,1]},K4=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),X4=K4("applewebkit/")&&!K4("chrome/")?Math.round:Ya;function Z4(e){e.min=X4(e.min),e.max=X4(e.max)}function bG(e){Z4(e.x),Z4(e.y)}function fA(e,t,n){return e==="position"||e==="preserve-aspect"&&!bW(H4(t),H4(n),.2)}function xG(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const wG=uA({attachResizeListener:(e,t)=>og(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),M2={current:void 0},dA=uA({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!M2.current){const e=new wG({});e.mount(window),e.setOptions({layoutScroll:!0}),M2.current=e}return M2.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),SG={pan:{Feature:PW},drag:{Feature:LW,ProjectionNode:dA,MeasureLayout:iA}};function J4(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,s=r[a];s&&ar.postRender(()=>s(t,Fg(t)))}class _G extends Vc{mount(){const{current:t}=this.node;t&&(this.unmount=MV(t,(n,r)=>(J4(this.node,r,"Start"),a=>J4(this.node,a,"End"))))}unmount(){}}class CG extends Vc{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=Lg(og(this.node.current,"focus",()=>this.onFocus()),og(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function Q4(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),s=r[a];s&&ar.postRender(()=>s(t,Fg(t)))}class EG extends Vc{mount(){const{current:t}=this.node;t&&(this.unmount=LV(t,(n,r)=>(Q4(this.node,r,"Start"),(a,{success:s})=>Q4(this.node,a,s?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const OS=new WeakMap,D2=new WeakMap,TG=e=>{const t=OS.get(e.target);t&&t(e)},RG=e=>{e.forEach(TG)};function AG({root:e,...t}){const n=e||document;D2.has(n)||D2.set(n,{});const r=D2.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(RG,{root:e,...t})),r[a]}function kG(e,t,n){const r=AG(t);return OS.set(e,n),r.observe(e),()=>{OS.delete(e),r.unobserve(e)}}const OG={some:0,all:1};class MG extends Vc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:s}=t,l={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:OG[a]},f=m=>{const{isIntersecting:p}=m;if(this.isInView===p||(this.isInView=p,s&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:b}=this.node.getProps(),S=p?g:b;S&&S(m)};return kG(this.node.current,l,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(DG(t,n))&&this.startObserver()}unmount(){}}function DG({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const jG={inView:{Feature:MG},tap:{Feature:EG},focus:{Feature:CG},hover:{Feature:_G}},IG={layout:{ProjectionNode:dA,MeasureLayout:iA}},hA=_.createContext({strict:!1}),pA=_.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),px=_.createContext({});function mx(e){return hx(e.animate)||oC.some(t=>ag(e[t]))}function mA(e){return!!(mx(e)||e.variants)}function LG(e,t){if(mx(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ag(n)?n:void 0,animate:ag(r)?r:void 0}}return e.inherit!==!1?t:{}}function PG(e){const{initial:t,animate:n}=LG(e,_.useContext(px));return _.useMemo(()=>({initial:t,animate:n}),[eT(t),eT(n)])}function eT(e){return Array.isArray(e)?e.join(" "):e}const lC=typeof window<"u",tT={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"]},rp={};for(const e in tT)rp[e]={isEnabled:t=>tT[e].some(n=>!!t[n])};function NG(e){for(const t in e)rp[t]={...rp[t],...e[t]}}const FG=Symbol.for("motionComponentSymbol");function BG(e,t,n){return _.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):zh(n)&&(n.current=r))},[t])}const zG=lC?_.useLayoutEffect:_.useEffect;function UG(e,t,n,r,a){var E,A;const{visualElement:s}=_.useContext(px),l=_.useContext(hA),f=_.useContext(sC),m=_.useContext(pA).reducedMotion,p=_.useRef(null);r=r||l.renderer,!p.current&&r&&(p.current=r(e,{visualState:t,parent:s,props:n,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:m}));const g=p.current,b=_.useContext(rA);g&&!g.projection&&a&&(g.type==="html"||g.type==="svg")&&$G(p.current,n,a,b);const S=_.useRef(!1);_.useInsertionEffect(()=>{g&&S.current&&g.update(n,f)});const T=n[$6],C=_.useRef(!!T&&!((E=window.MotionHandoffIsComplete)!=null&&E.call(window,T))&&((A=window.MotionHasOptimisedAnimation)==null?void 0:A.call(window,T)));return zG(()=>{g&&(S.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),tC.render(g.render),C.current&&g.animationState&&g.animationState.animateChanges())}),_.useEffect(()=>{g&&(!C.current&&g.animationState&&g.animationState.animateChanges(),C.current&&(queueMicrotask(()=>{var k;(k=window.MotionHandoffMarkAsComplete)==null||k.call(window,T)}),C.current=!1))}),g}function $G(e,t,n,r){const{layoutId:a,layout:s,drag:l,dragConstraints:f,layoutScroll:m,layoutRoot:p,layoutCrossfade:g}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:gA(e.parent)),e.projection.setOptions({layoutId:a,layout:s,alwaysMeasureLayout:!!l||f&&zh(f),visualElement:e,animationType:typeof s=="string"?s:"both",initialPromotionConfig:r,crossfade:g,layoutScroll:m,layoutRoot:p})}function gA(e){if(e)return e.options.allowProjection!==!1?e.projection:gA(e.parent)}function HG({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){e&&NG(e);function s(f,m){let p;const g={..._.useContext(pA),...f,layoutId:VG(f)},{isStatic:b}=g,S=PG(f),T=r(f,b);if(!b&&lC){WG();const C=GG(g);p=C.MeasureLayout,S.visualElement=UG(a,T,g,t,C.ProjectionNode)}return v.jsxs(px.Provider,{value:S,children:[p&&S.visualElement?v.jsx(p,{visualElement:S.visualElement,...g}):null,n(a,f,BG(T,S.visualElement,m),T,b,S.visualElement)]})}s.displayName=`motion.${typeof a=="string"?a:`create(${a.displayName??a.name??""})`}`;const l=_.forwardRef(s);return l[FG]=a,l}function VG({layoutId:e}){const t=_.useContext(nA).id;return t&&e!==void 0?t+"-"+e:e}function WG(e,t){_.useContext(hA).strict}function GG(e){const{drag:t,layout:n}=rp;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}}function yA(e,{layout:t,layoutId:n}){return dp.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!sg[e]||e==="opacity")}const YG={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},qG=fp.length;function KG(e,t,n){let r="",a=!0;for(let s=0;s<qG;s++){const l=fp[s],f=e[l];if(f===void 0)continue;let m=!0;if(typeof f=="number"?m=f===(l.startsWith("scale")?1:0):m=parseFloat(f)===0,!m||n){const p=N6(f,eC[l]);if(!m){a=!1;const g=YG[l]||l;r+=`${g}(${p}) `}n&&(t[l]=p)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function cC(e,t,n){const{style:r,vars:a,transformOrigin:s}=e;let l=!1,f=!1;for(const m in t){const p=t[m];if(dp.has(m)){l=!0;continue}else if(H_(m)){a[m]=p;continue}else{const g=N6(p,eC[m]);m.startsWith("origin")?(f=!0,s[m]=g):r[m]=g}}if(t.transform||(l||n?r.transform=KG(t,e.transform,n):r.transform&&(r.transform="none")),f){const{originX:m="50%",originY:p="50%",originZ:g=0}=s;r.transformOrigin=`${m} ${p} ${g}`}}const uC=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vA(e,t,n){for(const r in t)!ui(t[r])&&!yA(r,n)&&(e[r]=t[r])}function XG({transformTemplate:e},t){return _.useMemo(()=>{const n=uC();return cC(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ZG(e,t){const n=e.style||{},r={};return vA(r,n,e),Object.assign(r,XG(e,t)),r}function JG(e,t){const n={},r=ZG(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}const QG={offset:"stroke-dashoffset",array:"stroke-dasharray"},eY={offset:"strokeDashoffset",array:"strokeDasharray"};function tY(e,t,n=1,r=0,a=!0){e.pathLength=1;const s=a?QG:eY;e[s.offset]=xt.transform(-r);const l=xt.transform(t),f=xt.transform(n);e[s.array]=`${l} ${f}`}function bA(e,{attrX:t,attrY:n,attrScale:r,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...f},m,p,g){if(cC(e,f,p),m){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:S}=e;b.transform&&(S.transform=b.transform,delete b.transform),(S.transform||b.transformOrigin)&&(S.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),S.transform&&(S.transformBox=(g==null?void 0:g.transformBox)??"fill-box",delete b.transformBox),t!==void 0&&(b.x=t),n!==void 0&&(b.y=n),r!==void 0&&(b.scale=r),a!==void 0&&tY(b,a,s,l,!1)}const xA=()=>({...uC(),attrs:{}}),wA=e=>typeof e=="string"&&e.toLowerCase()==="svg";function nY(e,t,n,r){const a=_.useMemo(()=>{const s=xA();return bA(s,t,wA(r),e.transformTemplate,e.style),{...s.attrs,style:{...s.style}}},[t]);if(e.style){const s={};vA(s,e.style,e),a.style={...s,...a.style}}return a}const rY=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 Eb(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||rY.has(e)}let SA=e=>!Eb(e);function iY(e){e&&(SA=t=>t.startsWith("on")?!Eb(t):e(t))}try{iY(require("@emotion/is-prop-valid").default)}catch{}function aY(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(SA(a)||n===!0&&Eb(a)||!t&&!Eb(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}const oY=["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 fC(e){return typeof e!="string"||e.includes("-")?!1:!!(oY.indexOf(e)>-1||/[A-Z]/u.test(e))}function sY(e=!1){return(n,r,a,{latestValues:s},l)=>{const m=(fC(n)?nY:JG)(r,s,l,n),p=aY(r,typeof n=="string",e),g=n!==_.Fragment?{...p,...m,ref:a}:{},{children:b}=r,S=_.useMemo(()=>ui(b)?b.get():b,[b]);return _.createElement(n,{...g,children:S})}}function lY(e){const t=_.useRef(null);return t.current===null&&(t.current=e()),t.current}function cY({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,a){return{latestValues:uY(n,r,a,e),renderState:t()}}const _A=e=>(t,n)=>{const r=_.useContext(px),a=_.useContext(sC),s=()=>cY(e,t,r,a);return n?s():lY(s)};function uY(e,t,n,r){const a={},s=r(e,{});for(const S in s)a[S]=Xv(s[S]);let{initial:l,animate:f}=e;const m=mx(e),p=mA(e);t&&p&&!m&&e.inherit!==!1&&(l===void 0&&(l=t.initial),f===void 0&&(f=t.animate));let g=n?n.initial===!1:!1;g=g||l===!1;const b=g?f:l;if(b&&typeof b!="boolean"&&!hx(b)){const S=Array.isArray(b)?b:[b];for(let T=0;T<S.length;T++){const C=L_(e,S[T]);if(C){const{transitionEnd:E,transition:A,...k}=C;for(const L in k){let O=k[L];if(Array.isArray(O)){const P=g?O.length-1:0;O=O[P]}O!==null&&(a[L]=O)}for(const L in E)a[L]=E[L]}}}return a}function dC(e,t,n){var s;const{style:r}=e,a={};for(const l in r)(ui(r[l])||t.style&&ui(t.style[l])||yA(l,e)||((s=n==null?void 0:n.getValue(l))==null?void 0:s.liveStyle)!==void 0)&&(a[l]=r[l]);return a}const fY={useVisualState:_A({scrapeMotionValuesFromProps:dC,createRenderState:uC})};function CA(e,t,n){const r=dC(e,t,n);for(const a in e)if(ui(e[a])||ui(t[a])){const s=fp.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[s]=e[a]}return r}const dY={useVisualState:_A({scrapeMotionValuesFromProps:CA,createRenderState:xA})};function hY(e,t){return function(r,{forwardMotionProps:a}={forwardMotionProps:!1}){const l={...fC(r)?dY:fY,preloadedFeatures:e,useRender:sY(a),createVisualElement:t,Component:r};return HG(l)}}const MS={current:null},EA={current:!1};function pY(){if(EA.current=!0,!!lC)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>MS.current=e.matches;e.addListener(t),t()}else MS.current=!1}const mY=new WeakMap;function gY(e,t,n){for(const r in t){const a=t[r],s=n[r];if(ui(a))e.addValue(r,a);else if(ui(s))e.addValue(r,np(a,{owner:e}));else if(s!==a)if(e.hasValue(r)){const l=e.getValue(r);l.liveStyle===!0?l.jump(a):l.hasAnimated||l.set(a)}else{const l=e.getStaticValue(r);e.addValue(r,np(l!==void 0?l:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const nT=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class yY{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:s,visualState:l},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=J_,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 S=Ki.now();this.renderScheduledAt<S&&(this.renderScheduledAt=S,ar.render(this.render,!1,!0))};const{latestValues:m,renderState:p}=l;this.latestValues=m,this.baseTarget={...m},this.initialValues=n.initial?{...m}:{},this.renderState=p,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=f,this.blockInitialAnimation=!!s,this.isControllingVariants=mx(n),this.isVariantNode=mA(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:g,...b}=this.scrapeMotionValuesFromProps(n,{},this);for(const S in b){const T=b[S];m[S]!==void 0&&ui(T)&&T.set(m[S],!1)}}mount(t){this.current=t,mY.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)),EA.current||pY(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:MS.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),Uc(this.notifyUpdate),Uc(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=dp.has(t);r&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",f=>{this.latestValues[t]=f,this.props.onUpdate&&ar.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),s=n.on("renderRequest",this.scheduleRender);let l;window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),s(),l&&l(),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 rp){const n=rp[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):xr()}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<nT.length;r++){const a=nT[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const s="on"+a,l=t[s];l&&(this.propEventSubscriptions[a]=this.on(a,l))}this.prevMotionValues=gY(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}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=np(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(JR(r)||e6(r))?r=parseFloat(r):!FV(r)&&$c.test(n)&&(r=P6(t,n)),this.setBaseTarget(t,ui(r)?r.get():r)),ui(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const l=L_(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);l&&(r=l[t])}if(n&&r!==void 0)return r;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!ui(a)?a:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new z_),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class TA extends yY{constructor(){super(...arguments),this.KeyframeResolver=TV}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;ui(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function RA(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const s in n)e.style.setProperty(s,n[s])}function vY(e){return window.getComputedStyle(e)}class bY extends TA{constructor(){super(...arguments),this.type="html",this.renderInstance=RA}readValueFromInstance(t,n){var r;if(dp.has(n))return(r=this.projection)!=null&&r.isProjecting?vS(n):WH(t,n);{const a=vY(t),s=(H_(n)?a.getPropertyValue(n):a[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return J6(t,n)}build(t,n,r){cC(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return dC(t,n,r)}}const AA=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 xY(e,t,n,r){RA(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(AA.has(a)?a:rC(a),t.attrs[a])}class wY extends TA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=xr}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(dp.has(n)){const r=L6(n);return r&&r.default||0}return n=AA.has(n)?n:rC(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return CA(t,n,r)}build(t,n,r){bA(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,a){xY(t,n,r,a)}mount(t){this.isSVGTag=wA(t.tagName),super.mount(t)}}const SY=(e,t)=>fC(e)?new wY(t):new bY(t,{allowProjection:e!==_.Fragment}),_Y=hY({...fW,...jG,...SG,...IG},SY),rT=Yn(v.jsx("path",{d:"M14 2H6.01c-1.1 0-2 .89-2 2L4 20c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V8zm-1 7V3.5L18.5 9zm1 5 2-1.06v4.12L14 16v1c0 .55-.45 1-1 1H9c-.55 0-1-.45-1-1v-4c0-.55.45-1 1-1h4c.55 0 1 .45 1 1z"})),pt={NONE:0,SEARCH_FACE_READY:1,SEARCH_IMAGE_READY:2,SEARCH_NAME_READY:3,SEARCHING:4,LOADING:5,FACE_RESULT:6,IMAGE_RESULT:7,NAME_RESULT:8,NO_RESULT:9,TRY_FACE_PREMIUM_SEARCH:10,VIDEO_EFFECT_READY:11,VIDEO_EFFECT_RESULT:12},gx=e=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:55,height:55,viewBox:"0 0 55 55",fill:"none",...e,children:v.jsx("path",{d:"M12.2338 39.837H43.7881L43.2345 42.0514C42.8778 43.503 42.2873 44.5917 41.4631 45.3175C40.6388 46.0433 39.464 46.4062 37.9386 46.4062H18.0648C16.5394 46.4062 15.3646 46.0372 14.5404 45.2991C13.7284 44.5733 13.1441 43.4907 12.7873 42.0514L12.2338 39.837ZM11.6248 37.309L8.06341 22.8235L9.83488 22.3622L18.1756 28.4516C18.4831 28.6731 18.7353 28.7592 18.9321 28.71C19.1413 28.6485 19.3258 28.5008 19.4857 28.2671L27.5681 16.0698L28.4538 16.1067L36.4623 28.2118C36.6346 28.4701 36.8314 28.63 37.0528 28.6915C37.2866 28.7407 37.5572 28.6546 37.8647 28.4332L46.3715 22.233L47.8846 23.1003L44.4155 37.309H11.6248ZM8.74617 26.7909C7.94654 26.7909 7.20843 26.5941 6.53183 26.2004C5.86752 25.7944 5.33239 25.2593 4.92643 24.595C4.53277 23.9307 4.33594 23.1864 4.33594 22.3622C4.33594 21.5626 4.53277 20.8306 4.92643 20.1663C5.32009 19.502 5.84907 18.973 6.51337 18.5794C7.18998 18.1734 7.93424 17.9704 8.74617 17.9704C9.55809 17.9704 10.2962 18.1734 10.9605 18.5794C11.6248 18.973 12.1538 19.502 12.5475 20.1663C12.9411 20.8306 13.1379 21.5626 13.1379 22.3622C13.1379 23.1864 12.9411 23.9307 12.5475 24.595C12.1538 25.2593 11.6248 25.7944 10.9605 26.2004C10.2962 26.5941 9.55809 26.7909 8.74617 26.7909ZM28.0109 19.1145C27.199 19.1145 26.4547 18.9177 25.7781 18.524C25.1138 18.1304 24.5849 17.6014 24.1912 16.9371C23.7975 16.2605 23.6007 15.5162 23.6007 14.7043C23.6007 13.8924 23.7975 13.1542 24.1912 12.4899C24.5849 11.8256 25.1138 11.2967 25.7781 10.903C26.4547 10.5093 27.199 10.3125 28.0109 10.3125C28.8106 10.3125 29.5425 10.5155 30.2068 10.9214C30.8834 11.3151 31.4186 11.8441 31.8122 12.5084C32.2059 13.1727 32.4027 13.9047 32.4027 14.7043C32.4027 15.5162 32.2059 16.2605 31.8122 16.9371C31.4186 17.6014 30.8834 18.1304 30.2068 18.524C29.5425 18.9177 28.8106 19.1145 28.0109 19.1145ZM47.2572 26.7909C46.4453 26.7909 45.7072 26.5941 45.0429 26.2004C44.3786 25.7944 43.8496 25.2593 43.456 24.595C43.0623 23.9307 42.8655 23.1864 42.8655 22.3622C42.8655 21.5626 43.0623 20.8306 43.456 20.1663C43.8496 19.502 44.3786 18.973 45.0429 18.5794C45.7072 18.1734 46.4453 17.9704 47.2572 17.9704C48.0692 17.9704 48.8073 18.1734 49.4716 18.5794C50.1482 18.973 50.6833 19.502 51.077 20.1663C51.4706 20.8306 51.6675 21.5626 51.6675 22.3622C51.6675 23.1864 51.4645 23.9307 51.0585 24.595C50.6649 25.2593 50.1297 25.7944 49.4531 26.2004C48.7888 26.5941 48.0569 26.7909 47.2572 26.7909Z",fill:"#fbbf24"})}),iT=3,CY=({imageDataValue:e,onPremiumSearchClick:t})=>{const[n,r]=_.useState([]),[a,s]=_.useState([]),[l,f]=_.useState(0),[m,p]=_.useState(!1),[g,b]=_.useState(0),[S,T]=_.useState(0),[C,E]=_.useState(!1),[A,k]=_.useState(""),L=_.useRef(null),[O,P]=_.useState(200);_l(),_.useEffect(()=>{const q=()=>{window.innerWidth<600?P(150):P(200)};return q(),window.addEventListener("resize",q),()=>window.removeEventListener("resize",q)},[]);const M=()=>{E(!1)};_.useEffect(()=>{r(e)},[e]),_.useEffect(()=>{document.body.classList.toggle("dragging",m)},[m]),_.useEffect(()=>{const q=async()=>{let j=0,X=0,K=0;const ne=5e3,le=n.map(V=>new Promise(Q=>{const Z=new Image;Z.src=V.img;let ae;Z.onload=()=>{clearTimeout(ae);const U=Z.width/Z.height,W=O*U;Q({...V,width:W})},ae=setTimeout(()=>{if(V.orgImage){const U=new Image;U.src=V.orgImage;let W;U.onload=()=>{clearTimeout(W);const te=U.width/U.height,de=O*te;Q({...V,img:V.orgImage,width:de})},W=setTimeout(()=>{Q({...V,img:V.orgImage,width:O})},ne)}else Q({...V,width:O})},ne)})),oe=await Promise.all(le);oe.forEach(V=>{j<=X&&j<=K?j+=V.width+10:X<=j&&X<=K?X+=V.width+10:K+=V.width+10}),s(oe),f(Math.max(j,X))};(n==null?void 0:n.length)>0?q():s([])},[n]),_.useEffect(()=>{const q=L.current;if(!q)return;const j=X=>{X.preventDefault(),q.scrollBy({left:X.deltaY*3,behavior:"smooth"})};return q.addEventListener("wheel",j,{passive:!1}),()=>{q.removeEventListener("wheel",j)}},[]);let $=0,B=0,H=0;return v.jsx("div",{ref:L,className:"force-scrollbar",style:{overflowX:"scroll",overflowY:"hidden",width:"100%",cursor:m?"grabbing":"grab"},children:a.length===0?n.length===0?v.jsx(v.Fragment,{children:v.jsx("div",{style:{height:O*iT+30,display:"flex",justifyContent:"center",alignItems:"center",color:"red",fontWeight:"bold",fontSize:18,backgroundColor:"#151D2C",borderRadius:8,marginTop:8},children:"No results found"})}):v.jsx(ce,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:O*iT+30},children:v.jsx(ce,{className:"loading-spinner"})}):v.jsxs(v.Fragment,{children:[v.jsx(Og,{open:C,autoHideDuration:2e3,onClose:M,anchorOrigin:{vertical:"bottom",horizontal:"center"},ContentProps:{sx:{backgroundColor:"#f5f5f5",color:"#333",borderRadius:2,boxShadow:3,fontSize:"14px",fontWeight:500}},message:A}),v.jsx("div",{id:"portfolio_horizontal_container",className:"two-ver-columns",style:{position:"relative",width:`${l}px`,height:`${O*3+30}px`},children:a.map((q,j)=>{let X,K;$<=B&&$<=H?(X=$,K=0,$+=q.width+10):B<=$&&B<=H?(X=B,K=O+10,B+=q.width+10):(X=H,K=(O+10)*2,H+=q.width+10);const ne={position:"absolute",left:`${X}px`,top:`${K}px`};return v.jsx("div",{className:"portfolio_item",style:ne,onMouseDown:le=>{p(!0),b(le.pageX-L.current.offsetLeft),T(L.current.scrollLeft)},onMouseUp:()=>p(!1),onMouseMove:le=>{if(!m)return;le.preventDefault();const V=(le.pageX-L.current.offsetLeft-g)*1.5;L.current.scrollLeft=S-V},children:v.jsxs("div",{className:"grid-item-holder hov_zoom",style:{position:"relative",display:"flex",justifyContent:"flex-start"},children:[v.jsx("img",{src:q.img,alt:"",draggable:!1,style:{height:`${O}px`,width:`${q.width}px`,display:"block",borderRadius:"12px"}}),v.jsx("div",{style:{position:"absolute",bottom:10,left:"10px",right:"10px",backgroundColor:"#00A36D",color:"white",textAlign:"center",padding:"4px 20px 4px 20px",zIndex:1,borderRadius:"6px",alignItems:"center"},children:v.jsx("p",{onClick:()=>{q.title.includes("******")?t():(navigator.clipboard.writeText(q.title),k(`Copied: ${q.title}`),E(!0))},style:{margin:0,fontSize:"12px",whiteSpace:"nowrap",overflow:"hidden",color:"white",textOverflow:"ellipsis",cursor:"pointer",display:"flex",alignItems:"center"},title:"Click to copy",children:q.title.includes("https://******")?v.jsxs(v.Fragment,{children:[v.jsx(gx,{width:20,height:20}),v.jsx(Ye,{component:"span",sx:{fontSize:"12px",color:"white",ml:.5,textDecoration:"none",display:"inline-block"},children:"Premium"})]}):v.jsx("span",{style:{textDecoration:"underline"},children:q.title})})})]})},j)})})]})})},kA=Yn(v.jsx("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92s2.92-1.31 2.92-2.92-1.31-2.92-2.92-2.92"})),EY=Yn([v.jsx("path",{d:"M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27zM19 14.9 14.9 19H9.1L5 14.9V9.1L9.1 5h5.8L19 9.1z"},"0"),v.jsx("path",{d:"M11 7h2v6h-2zm0 8h2v2h-2z"},"1")]);var vf=function(e,t){var n,r=[t??""],a=(n=e.response)===null||n===void 0?void 0:n.data;return a?(a.error&&r.push(a.error),a.details&&r.push(a.details)):r.push(e.message||"Unknown error"),console.error(r.join(" - ")),r.join(" - ")},TY=function(e,t){var n;return e.username||e.username?e.username:e.name?e.name:e.id?"user-"+((n=e==null?void 0:e.id)===null||n===void 0?void 0:n.split("-")[0].split("").reverse().join("")):"Invalid User Details"};function OA(e,t){return function(){return e.apply(t,arguments)}}const{toString:RY}=Object.prototype,{getPrototypeOf:hC}=Object,{iterator:yx,toStringTag:MA}=Symbol,vx=(e=>t=>{const n=RY.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Mo=e=>(e=e.toLowerCase(),t=>vx(t)===e),bx=e=>t=>typeof t===e,{isArray:hp}=Array,lg=bx("undefined");function AY(e){return e!==null&&!lg(e)&&e.constructor!==null&&!lg(e.constructor)&&Xi(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const DA=Mo("ArrayBuffer");function kY(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&DA(e.buffer),t}const OY=bx("string"),Xi=bx("function"),jA=bx("number"),xx=e=>e!==null&&typeof e=="object",MY=e=>e===!0||e===!1,Zv=e=>{if(vx(e)!=="object")return!1;const t=hC(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(MA in e)&&!(yx in e)},DY=Mo("Date"),jY=Mo("File"),IY=Mo("Blob"),LY=Mo("FileList"),PY=e=>xx(e)&&Xi(e.pipe),NY=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Xi(e.append)&&((t=vx(e))==="formdata"||t==="object"&&Xi(e.toString)&&e.toString()==="[object FormData]"))},FY=Mo("URLSearchParams"),[BY,zY,UY,$Y]=["ReadableStream","Request","Response","Headers"].map(Mo),HY=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Bg(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),hp(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{const s=n?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length;let f;for(r=0;r<l;r++)f=s[r],t.call(null,e[f],f,e)}}function IA(e,t){t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const bf=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,LA=e=>!lg(e)&&e!==bf;function DS(){const{caseless:e}=LA(this)&&this||{},t={},n=(r,a)=>{const s=e&&IA(t,a)||a;Zv(t[s])&&Zv(r)?t[s]=DS(t[s],r):Zv(r)?t[s]=DS({},r):hp(r)?t[s]=r.slice():t[s]=r};for(let r=0,a=arguments.length;r<a;r++)arguments[r]&&Bg(arguments[r],n);return t}const VY=(e,t,n,{allOwnKeys:r}={})=>(Bg(t,(a,s)=>{n&&Xi(a)?e[s]=OA(a,n):e[s]=a},{allOwnKeys:r}),e),WY=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),GY=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},YY=(e,t,n,r)=>{let a,s,l;const f={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),s=a.length;s-- >0;)l=a[s],(!r||r(l,e,t))&&!f[l]&&(t[l]=e[l],f[l]=!0);e=n!==!1&&hC(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},qY=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},KY=e=>{if(!e)return null;if(hp(e))return e;let t=e.length;if(!jA(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},XY=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hC(Uint8Array)),ZY=(e,t)=>{const r=(e&&e[yx]).call(e);let a;for(;(a=r.next())&&!a.done;){const s=a.value;t.call(e,s[0],s[1])}},JY=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},QY=Mo("HTMLFormElement"),eq=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),aT=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),tq=Mo("RegExp"),PA=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Bg(n,(a,s)=>{let l;(l=t(a,s,e))!==!1&&(r[s]=l||a)}),Object.defineProperties(e,r)},nq=e=>{PA(e,(t,n)=>{if(Xi(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Xi(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},rq=(e,t)=>{const n={},r=a=>{a.forEach(s=>{n[s]=!0})};return hp(e)?r(e):r(String(e).split(t)),n},iq=()=>{},aq=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function oq(e){return!!(e&&Xi(e.append)&&e[MA]==="FormData"&&e[yx])}const sq=e=>{const t=new Array(10),n=(r,a)=>{if(xx(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[a]=r;const s=hp(r)?[]:{};return Bg(r,(l,f)=>{const m=n(l,a+1);!lg(m)&&(s[f]=m)}),t[a]=void 0,s}}return r};return n(e,0)},lq=Mo("AsyncFunction"),cq=e=>e&&(xx(e)||Xi(e))&&Xi(e.then)&&Xi(e.catch),NA=((e,t)=>e?setImmediate:t?((n,r)=>(bf.addEventListener("message",({source:a,data:s})=>{a===bf&&s===n&&r.length&&r.shift()()},!1),a=>{r.push(a),bf.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Xi(bf.postMessage)),uq=typeof queueMicrotask<"u"?queueMicrotask.bind(bf):typeof process<"u"&&process.nextTick||NA,fq=e=>e!=null&&Xi(e[yx]),ge={isArray:hp,isArrayBuffer:DA,isBuffer:AY,isFormData:NY,isArrayBufferView:kY,isString:OY,isNumber:jA,isBoolean:MY,isObject:xx,isPlainObject:Zv,isReadableStream:BY,isRequest:zY,isResponse:UY,isHeaders:$Y,isUndefined:lg,isDate:DY,isFile:jY,isBlob:IY,isRegExp:tq,isFunction:Xi,isStream:PY,isURLSearchParams:FY,isTypedArray:XY,isFileList:LY,forEach:Bg,merge:DS,extend:VY,trim:HY,stripBOM:WY,inherits:GY,toFlatObject:YY,kindOf:vx,kindOfTest:Mo,endsWith:qY,toArray:KY,forEachEntry:ZY,matchAll:JY,isHTMLForm:QY,hasOwnProperty:aT,hasOwnProp:aT,reduceDescriptors:PA,freezeMethods:nq,toObjectSet:rq,toCamelCase:eq,noop:iq,toFiniteNumber:aq,findKey:IA,global:bf,isContextDefined:LA,isSpecCompliantForm:oq,toJSONObject:sq,isAsyncFn:lq,isThenable:cq,setImmediate:NA,asap:uq,isIterable:fq};function Mt(e,t,n,r,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),a&&(this.response=a,this.status=a.status?a.status:null)}ge.inherits(Mt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ge.toJSONObject(this.config),code:this.code,status:this.status}}});const FA=Mt.prototype,BA={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{BA[e]={value:e}});Object.defineProperties(Mt,BA);Object.defineProperty(FA,"isAxiosError",{value:!0});Mt.from=(e,t,n,r,a,s)=>{const l=Object.create(FA);return ge.toFlatObject(e,l,function(m){return m!==Error.prototype},f=>f!=="isAxiosError"),Mt.call(l,e.message,t,n,r,a),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};const dq=null;function jS(e){return ge.isPlainObject(e)||ge.isArray(e)}function zA(e){return ge.endsWith(e,"[]")?e.slice(0,-2):e}function oT(e,t,n){return e?e.concat(t).map(function(a,s){return a=zA(a),!n&&s?"["+a+"]":a}).join(n?".":""):t}function hq(e){return ge.isArray(e)&&!e.some(jS)}const pq=ge.toFlatObject(ge,{},null,function(t){return/^is[A-Z]/.test(t)});function wx(e,t,n){if(!ge.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=ge.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(E,A){return!ge.isUndefined(A[E])});const r=n.metaTokens,a=n.visitor||g,s=n.dots,l=n.indexes,m=(n.Blob||typeof Blob<"u"&&Blob)&&ge.isSpecCompliantForm(t);if(!ge.isFunction(a))throw new TypeError("visitor must be a function");function p(C){if(C===null)return"";if(ge.isDate(C))return C.toISOString();if(!m&&ge.isBlob(C))throw new Mt("Blob is not supported. Use a Buffer instead.");return ge.isArrayBuffer(C)||ge.isTypedArray(C)?m&&typeof Blob=="function"?new Blob([C]):Buffer.from(C):C}function g(C,E,A){let k=C;if(C&&!A&&typeof C=="object"){if(ge.endsWith(E,"{}"))E=r?E:E.slice(0,-2),C=JSON.stringify(C);else if(ge.isArray(C)&&hq(C)||(ge.isFileList(C)||ge.endsWith(E,"[]"))&&(k=ge.toArray(C)))return E=zA(E),k.forEach(function(O,P){!(ge.isUndefined(O)||O===null)&&t.append(l===!0?oT([E],P,s):l===null?E:E+"[]",p(O))}),!1}return jS(C)?!0:(t.append(oT(A,E,s),p(C)),!1)}const b=[],S=Object.assign(pq,{defaultVisitor:g,convertValue:p,isVisitable:jS});function T(C,E){if(!ge.isUndefined(C)){if(b.indexOf(C)!==-1)throw Error("Circular reference detected in "+E.join("."));b.push(C),ge.forEach(C,function(k,L){(!(ge.isUndefined(k)||k===null)&&a.call(t,k,ge.isString(L)?L.trim():L,E,S))===!0&&T(k,E?E.concat(L):[L])}),b.pop()}}if(!ge.isObject(e))throw new TypeError("data must be an object");return T(e),t}function sT(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function pC(e,t){this._pairs=[],e&&wx(e,this,t)}const UA=pC.prototype;UA.append=function(t,n){this._pairs.push([t,n])};UA.toString=function(t){const n=t?function(r){return t.call(this,r,sT)}:sT;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function mq(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function $A(e,t,n){if(!t)return e;const r=n&&n.encode||mq;ge.isFunction(n)&&(n={serialize:n});const a=n&&n.serialize;let s;if(a?s=a(t,n):s=ge.isURLSearchParams(t)?t.toString():new pC(t,n).toString(r),s){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class lT{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){ge.forEach(this.handlers,function(r){r!==null&&t(r)})}}const HA={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gq=typeof URLSearchParams<"u"?URLSearchParams:pC,yq=typeof FormData<"u"?FormData:null,vq=typeof Blob<"u"?Blob:null,bq={isBrowser:!0,classes:{URLSearchParams:gq,FormData:yq,Blob:vq},protocols:["http","https","file","blob","url","data"]},mC=typeof window<"u"&&typeof document<"u",IS=typeof navigator=="object"&&navigator||void 0,xq=mC&&(!IS||["ReactNative","NativeScript","NS"].indexOf(IS.product)<0),wq=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Sq=mC&&window.location.href||"http://localhost",_q=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:mC,hasStandardBrowserEnv:xq,hasStandardBrowserWebWorkerEnv:wq,navigator:IS,origin:Sq},Symbol.toStringTag,{value:"Module"})),ci={..._q,...bq};function Cq(e,t){return wx(e,new ci.classes.URLSearchParams,Object.assign({visitor:function(n,r,a,s){return ci.isNode&&ge.isBuffer(n)?(this.append(r,n.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function Eq(e){return ge.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Tq(e){const t={},n=Object.keys(e);let r;const a=n.length;let s;for(r=0;r<a;r++)s=n[r],t[s]=e[s];return t}function VA(e){function t(n,r,a,s){let l=n[s++];if(l==="__proto__")return!0;const f=Number.isFinite(+l),m=s>=n.length;return l=!l&&ge.isArray(a)?a.length:l,m?(ge.hasOwnProp(a,l)?a[l]=[a[l],r]:a[l]=r,!f):((!a[l]||!ge.isObject(a[l]))&&(a[l]=[]),t(n,r,a[l],s)&&ge.isArray(a[l])&&(a[l]=Tq(a[l])),!f)}if(ge.isFormData(e)&&ge.isFunction(e.entries)){const n={};return ge.forEachEntry(e,(r,a)=>{t(Eq(r),a,n,0)}),n}return null}function Rq(e,t,n){if(ge.isString(e))try{return(t||JSON.parse)(e),ge.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const zg={transitional:HA,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,s=ge.isObject(t);if(s&&ge.isHTMLForm(t)&&(t=new FormData(t)),ge.isFormData(t))return a?JSON.stringify(VA(t)):t;if(ge.isArrayBuffer(t)||ge.isBuffer(t)||ge.isStream(t)||ge.isFile(t)||ge.isBlob(t)||ge.isReadableStream(t))return t;if(ge.isArrayBufferView(t))return t.buffer;if(ge.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let f;if(s){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Cq(t,this.formSerializer).toString();if((f=ge.isFileList(t))||r.indexOf("multipart/form-data")>-1){const m=this.env&&this.env.FormData;return wx(f?{"files[]":t}:t,m&&new m,this.formSerializer)}}return s||a?(n.setContentType("application/json",!1),Rq(t)):t}],transformResponse:[function(t){const n=this.transitional||zg.transitional,r=n&&n.forcedJSONParsing,a=this.responseType==="json";if(ge.isResponse(t)||ge.isReadableStream(t))return t;if(t&&ge.isString(t)&&(r&&!this.responseType||a)){const l=!(n&&n.silentJSONParsing)&&a;try{return JSON.parse(t)}catch(f){if(l)throw f.name==="SyntaxError"?Mt.from(f,Mt.ERR_BAD_RESPONSE,this,null,this.response):f}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ci.classes.FormData,Blob:ci.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ge.forEach(["delete","get","head","post","put","patch"],e=>{zg.headers[e]={}});const Aq=ge.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),kq=e=>{const t={};let n,r,a;return e&&e.split(`
+`).forEach(function(l){a=l.indexOf(":"),n=l.substring(0,a).trim().toLowerCase(),r=l.substring(a+1).trim(),!(!n||t[n]&&Aq[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},cT=Symbol("internals");function T0(e){return e&&String(e).trim().toLowerCase()}function Jv(e){return e===!1||e==null?e:ge.isArray(e)?e.map(Jv):String(e)}function Oq(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Mq=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function j2(e,t,n,r,a){if(ge.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!ge.isString(t)){if(ge.isString(r))return t.indexOf(r)!==-1;if(ge.isRegExp(r))return r.test(t)}}function Dq(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function jq(e,t){const n=ge.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(a,s,l){return this[r].call(this,t,a,s,l)},configurable:!0})})}let Zi=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function s(f,m,p){const g=T0(m);if(!g)throw new Error("header name must be a non-empty string");const b=ge.findKey(a,g);(!b||a[b]===void 0||p===!0||p===void 0&&a[b]!==!1)&&(a[b||m]=Jv(f))}const l=(f,m)=>ge.forEach(f,(p,g)=>s(p,g,m));if(ge.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(ge.isString(t)&&(t=t.trim())&&!Mq(t))l(kq(t),n);else if(ge.isObject(t)&&ge.isIterable(t)){let f={},m,p;for(const g of t){if(!ge.isArray(g))throw TypeError("Object iterator must return a key-value pair");f[p=g[0]]=(m=f[p])?ge.isArray(m)?[...m,g[1]]:[m,g[1]]:g[1]}l(f,n)}else t!=null&&s(n,t,r);return this}get(t,n){if(t=T0(t),t){const r=ge.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return Oq(a);if(ge.isFunction(n))return n.call(this,a,r);if(ge.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=T0(t),t){const r=ge.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||j2(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function s(l){if(l=T0(l),l){const f=ge.findKey(r,l);f&&(!n||j2(r,r[f],f,n))&&(delete r[f],a=!0)}}return ge.isArray(t)?t.forEach(s):s(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const s=n[r];(!t||j2(this,this[s],s,t,!0))&&(delete this[s],a=!0)}return a}normalize(t){const n=this,r={};return ge.forEach(this,(a,s)=>{const l=ge.findKey(r,s);if(l){n[l]=Jv(a),delete n[s];return}const f=t?Dq(s):String(s).trim();f!==s&&delete n[s],n[f]=Jv(a),r[f]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return ge.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&ge.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
+`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[cT]=this[cT]={accessors:{}}).accessors,a=this.prototype;function s(l){const f=T0(l);r[f]||(jq(a,l),r[f]=!0)}return ge.isArray(t)?t.forEach(s):s(t),this}};Zi.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);ge.reduceDescriptors(Zi.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});ge.freezeMethods(Zi);function I2(e,t){const n=this||zg,r=t||n,a=Zi.from(r.headers);let s=r.data;return ge.forEach(e,function(f){s=f.call(n,s,a.normalize(),t?t.status:void 0)}),a.normalize(),s}function WA(e){return!!(e&&e.__CANCEL__)}function pp(e,t,n){Mt.call(this,e??"canceled",Mt.ERR_CANCELED,t,n),this.name="CanceledError"}ge.inherits(pp,Mt,{__CANCEL__:!0});function GA(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Mt("Request failed with status code "+n.status,[Mt.ERR_BAD_REQUEST,Mt.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Iq(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Lq(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,s=0,l;return t=t!==void 0?t:1e3,function(m){const p=Date.now(),g=r[s];l||(l=p),n[a]=m,r[a]=p;let b=s,S=0;for(;b!==a;)S+=n[b++],b=b%e;if(a=(a+1)%e,a===s&&(s=(s+1)%e),p-l<t)return;const T=g&&p-g;return T?Math.round(S*1e3/T):void 0}}function Pq(e,t){let n=0,r=1e3/t,a,s;const l=(p,g=Date.now())=>{n=g,a=null,s&&(clearTimeout(s),s=null),e.apply(null,p)};return[(...p)=>{const g=Date.now(),b=g-n;b>=r?l(p,g):(a=p,s||(s=setTimeout(()=>{s=null,l(a)},r-b)))},()=>a&&l(a)]}const Tb=(e,t,n=3)=>{let r=0;const a=Lq(50,250);return Pq(s=>{const l=s.loaded,f=s.lengthComputable?s.total:void 0,m=l-r,p=a(m),g=l<=f;r=l;const b={loaded:l,total:f,progress:f?l/f:void 0,bytes:m,rate:p||void 0,estimated:p&&f&&g?(f-l)/p:void 0,event:s,lengthComputable:f!=null,[t?"download":"upload"]:!0};e(b)},n)},uT=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},fT=e=>(...t)=>ge.asap(()=>e(...t)),Nq=ci.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,ci.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(ci.origin),ci.navigator&&/(msie|trident)/i.test(ci.navigator.userAgent)):()=>!0,Fq=ci.hasStandardBrowserEnv?{write(e,t,n,r,a,s){const l=[e+"="+encodeURIComponent(t)];ge.isNumber(n)&&l.push("expires="+new Date(n).toGMTString()),ge.isString(r)&&l.push("path="+r),ge.isString(a)&&l.push("domain="+a),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function Bq(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function zq(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function YA(e,t,n){let r=!Bq(t);return e&&(r||n==!1)?zq(e,t):t}const dT=e=>e instanceof Zi?{...e}:e;function kf(e,t){t=t||{};const n={};function r(p,g,b,S){return ge.isPlainObject(p)&&ge.isPlainObject(g)?ge.merge.call({caseless:S},p,g):ge.isPlainObject(g)?ge.merge({},g):ge.isArray(g)?g.slice():g}function a(p,g,b,S){if(ge.isUndefined(g)){if(!ge.isUndefined(p))return r(void 0,p,b,S)}else return r(p,g,b,S)}function s(p,g){if(!ge.isUndefined(g))return r(void 0,g)}function l(p,g){if(ge.isUndefined(g)){if(!ge.isUndefined(p))return r(void 0,p)}else return r(void 0,g)}function f(p,g,b){if(b in t)return r(p,g);if(b in e)return r(void 0,p)}const m={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:f,headers:(p,g,b)=>a(dT(p),dT(g),b,!0)};return ge.forEach(Object.keys(Object.assign({},e,t)),function(g){const b=m[g]||a,S=b(e[g],t[g],g);ge.isUndefined(S)&&b!==f||(n[g]=S)}),n}const qA=e=>{const t=kf({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:a,xsrfCookieName:s,headers:l,auth:f}=t;t.headers=l=Zi.from(l),t.url=$A(YA(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&l.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let m;if(ge.isFormData(n)){if(ci.hasStandardBrowserEnv||ci.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((m=l.getContentType())!==!1){const[p,...g]=m?m.split(";").map(b=>b.trim()).filter(Boolean):[];l.setContentType([p||"multipart/form-data",...g].join("; "))}}if(ci.hasStandardBrowserEnv&&(r&&ge.isFunction(r)&&(r=r(t)),r||r!==!1&&Nq(t.url))){const p=a&&s&&Fq.read(s);p&&l.set(a,p)}return t},Uq=typeof XMLHttpRequest<"u",$q=Uq&&function(e){return new Promise(function(n,r){const a=qA(e);let s=a.data;const l=Zi.from(a.headers).normalize();let{responseType:f,onUploadProgress:m,onDownloadProgress:p}=a,g,b,S,T,C;function E(){T&&T(),C&&C(),a.cancelToken&&a.cancelToken.unsubscribe(g),a.signal&&a.signal.removeEventListener("abort",g)}let A=new XMLHttpRequest;A.open(a.method.toUpperCase(),a.url,!0),A.timeout=a.timeout;function k(){if(!A)return;const O=Zi.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),M={data:!f||f==="text"||f==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:O,config:e,request:A};GA(function(B){n(B),E()},function(B){r(B),E()},M),A=null}"onloadend"in A?A.onloadend=k:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(k)},A.onabort=function(){A&&(r(new Mt("Request aborted",Mt.ECONNABORTED,e,A)),A=null)},A.onerror=function(){r(new Mt("Network Error",Mt.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let P=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const M=a.transitional||HA;a.timeoutErrorMessage&&(P=a.timeoutErrorMessage),r(new Mt(P,M.clarifyTimeoutError?Mt.ETIMEDOUT:Mt.ECONNABORTED,e,A)),A=null},s===void 0&&l.setContentType(null),"setRequestHeader"in A&&ge.forEach(l.toJSON(),function(P,M){A.setRequestHeader(M,P)}),ge.isUndefined(a.withCredentials)||(A.withCredentials=!!a.withCredentials),f&&f!=="json"&&(A.responseType=a.responseType),p&&([S,C]=Tb(p,!0),A.addEventListener("progress",S)),m&&A.upload&&([b,T]=Tb(m),A.upload.addEventListener("progress",b),A.upload.addEventListener("loadend",T)),(a.cancelToken||a.signal)&&(g=O=>{A&&(r(!O||O.type?new pp(null,e,A):O),A.abort(),A=null)},a.cancelToken&&a.cancelToken.subscribe(g),a.signal&&(a.signal.aborted?g():a.signal.addEventListener("abort",g)));const L=Iq(a.url);if(L&&ci.protocols.indexOf(L)===-1){r(new Mt("Unsupported protocol "+L+":",Mt.ERR_BAD_REQUEST,e));return}A.send(s||null)})},Hq=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,a;const s=function(p){if(!a){a=!0,f();const g=p instanceof Error?p:this.reason;r.abort(g instanceof Mt?g:new pp(g instanceof Error?g.message:g))}};let l=t&&setTimeout(()=>{l=null,s(new Mt(`timeout ${t} of ms exceeded`,Mt.ETIMEDOUT))},t);const f=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(s):p.removeEventListener("abort",s)}),e=null)};e.forEach(p=>p.addEventListener("abort",s));const{signal:m}=r;return m.unsubscribe=()=>ge.asap(f),m}},Vq=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},Wq=async function*(e,t){for await(const n of Gq(e))yield*Vq(n,t)},Gq=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},hT=(e,t,n,r)=>{const a=Wq(e,t);let s=0,l,f=m=>{l||(l=!0,r&&r(m))};return new ReadableStream({async pull(m){try{const{done:p,value:g}=await a.next();if(p){f(),m.close();return}let b=g.byteLength;if(n){let S=s+=b;n(S)}m.enqueue(new Uint8Array(g))}catch(p){throw f(p),p}},cancel(m){return f(m),a.return()}},{highWaterMark:2})},Sx=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",KA=Sx&&typeof ReadableStream=="function",Yq=Sx&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),XA=(e,...t)=>{try{return!!e(...t)}catch{return!1}},qq=KA&&XA(()=>{let e=!1;const t=new Request(ci.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),pT=64*1024,LS=KA&&XA(()=>ge.isReadableStream(new Response("").body)),Rb={stream:LS&&(e=>e.body)};Sx&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Rb[t]&&(Rb[t]=ge.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Mt(`Response type '${t}' is not supported`,Mt.ERR_NOT_SUPPORT,r)})})})(new Response);const Kq=async e=>{if(e==null)return 0;if(ge.isBlob(e))return e.size;if(ge.isSpecCompliantForm(e))return(await new Request(ci.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(ge.isArrayBufferView(e)||ge.isArrayBuffer(e))return e.byteLength;if(ge.isURLSearchParams(e)&&(e=e+""),ge.isString(e))return(await Yq(e)).byteLength},Xq=async(e,t)=>{const n=ge.toFiniteNumber(e.getContentLength());return n??Kq(t)},Zq=Sx&&(async e=>{let{url:t,method:n,data:r,signal:a,cancelToken:s,timeout:l,onDownloadProgress:f,onUploadProgress:m,responseType:p,headers:g,withCredentials:b="same-origin",fetchOptions:S}=qA(e);p=p?(p+"").toLowerCase():"text";let T=Hq([a,s&&s.toAbortSignal()],l),C;const E=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let A;try{if(m&&qq&&n!=="get"&&n!=="head"&&(A=await Xq(g,r))!==0){let M=new Request(t,{method:"POST",body:r,duplex:"half"}),$;if(ge.isFormData(r)&&($=M.headers.get("content-type"))&&g.setContentType($),M.body){const[B,H]=uT(A,Tb(fT(m)));r=hT(M.body,pT,B,H)}}ge.isString(b)||(b=b?"include":"omit");const k="credentials"in Request.prototype;C=new Request(t,{...S,signal:T,method:n.toUpperCase(),headers:g.normalize().toJSON(),body:r,duplex:"half",credentials:k?b:void 0});let L=await fetch(C);const O=LS&&(p==="stream"||p==="response");if(LS&&(f||O&&E)){const M={};["status","statusText","headers"].forEach(q=>{M[q]=L[q]});const $=ge.toFiniteNumber(L.headers.get("content-length")),[B,H]=f&&uT($,Tb(fT(f),!0))||[];L=new Response(hT(L.body,pT,B,()=>{H&&H(),E&&E()}),M)}p=p||"text";let P=await Rb[ge.findKey(Rb,p)||"text"](L,e);return!O&&E&&E(),await new Promise((M,$)=>{GA(M,$,{data:P,headers:Zi.from(L.headers),status:L.status,statusText:L.statusText,config:e,request:C})})}catch(k){throw E&&E(),k&&k.name==="TypeError"&&/Load failed|fetch/i.test(k.message)?Object.assign(new Mt("Network Error",Mt.ERR_NETWORK,e,C),{cause:k.cause||k}):Mt.from(k,k&&k.code,e,C)}}),PS={http:dq,xhr:$q,fetch:Zq};ge.forEach(PS,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const mT=e=>`- ${e}`,Jq=e=>ge.isFunction(e)||e===null||e===!1,ZA={getAdapter:e=>{e=ge.isArray(e)?e:[e];const{length:t}=e;let n,r;const a={};for(let s=0;s<t;s++){n=e[s];let l;if(r=n,!Jq(n)&&(r=PS[(l=String(n)).toLowerCase()],r===void 0))throw new Mt(`Unknown adapter '${l}'`);if(r)break;a[l||"#"+s]=r}if(!r){const s=Object.entries(a).map(([f,m])=>`adapter ${f} `+(m===!1?"is not supported by the environment":"is not available in the build"));let l=t?s.length>1?`since :
+`+s.map(mT).join(`
+`):" "+mT(s[0]):"as no adapter specified";throw new Mt("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return r},adapters:PS};function L2(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pp(null,e)}function gT(e){return L2(e),e.headers=Zi.from(e.headers),e.data=I2.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),ZA.getAdapter(e.adapter||zg.adapter)(e).then(function(r){return L2(e),r.data=I2.call(e,e.transformResponse,r),r.headers=Zi.from(r.headers),r},function(r){return WA(r)||(L2(e),r&&r.response&&(r.response.data=I2.call(e,e.transformResponse,r.response),r.response.headers=Zi.from(r.response.headers))),Promise.reject(r)})}const JA="1.9.0",_x={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{_x[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const yT={};_x.transitional=function(t,n,r){function a(s,l){return"[Axios v"+JA+"] Transitional option '"+s+"'"+l+(r?". "+r:"")}return(s,l,f)=>{if(t===!1)throw new Mt(a(l," has been removed"+(n?" in "+n:"")),Mt.ERR_DEPRECATED);return n&&!yT[l]&&(yT[l]=!0,console.warn(a(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(s,l,f):!0}};_x.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Qq(e,t,n){if(typeof e!="object")throw new Mt("options must be an object",Mt.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const s=r[a],l=t[s];if(l){const f=e[s],m=f===void 0||l(f,s,e);if(m!==!0)throw new Mt("option "+s+" must be "+m,Mt.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Mt("Unknown option "+s,Mt.ERR_BAD_OPTION)}}const Qv={assertOptions:Qq,validators:_x},fs=Qv.validators;let Ef=class{constructor(t){this.defaults=t||{},this.interceptors={request:new lT,response:new lT}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const s=a.stack?a.stack.replace(/^.+\n/,""):"";try{r.stack?s&&!String(r.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(r.stack+=`
+`+s):r.stack=s}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=kf(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:s}=n;r!==void 0&&Qv.assertOptions(r,{silentJSONParsing:fs.transitional(fs.boolean),forcedJSONParsing:fs.transitional(fs.boolean),clarifyTimeoutError:fs.transitional(fs.boolean)},!1),a!=null&&(ge.isFunction(a)?n.paramsSerializer={serialize:a}:Qv.assertOptions(a,{encode:fs.function,serialize:fs.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Qv.assertOptions(n,{baseUrl:fs.spelling("baseURL"),withXsrfToken:fs.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=s&&ge.merge(s.common,s[n.method]);s&&ge.forEach(["delete","get","head","post","put","patch","common"],C=>{delete s[C]}),n.headers=Zi.concat(l,s);const f=[];let m=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(n)===!1||(m=m&&E.synchronous,f.unshift(E.fulfilled,E.rejected))});const p=[];this.interceptors.response.forEach(function(E){p.push(E.fulfilled,E.rejected)});let g,b=0,S;if(!m){const C=[gT.bind(this),void 0];for(C.unshift.apply(C,f),C.push.apply(C,p),S=C.length,g=Promise.resolve(n);b<S;)g=g.then(C[b++],C[b++]);return g}S=f.length;let T=n;for(b=0;b<S;){const C=f[b++],E=f[b++];try{T=C(T)}catch(A){E.call(this,A);break}}try{g=gT.call(this,T)}catch(C){return Promise.reject(C)}for(b=0,S=p.length;b<S;)g=g.then(p[b++],p[b++]);return g}getUri(t){t=kf(this.defaults,t);const n=YA(t.baseURL,t.url,t.allowAbsoluteUrls);return $A(n,t.params,t.paramsSerializer)}};ge.forEach(["delete","get","head","options"],function(t){Ef.prototype[t]=function(n,r){return this.request(kf(r||{},{method:t,url:n,data:(r||{}).data}))}});ge.forEach(["post","put","patch"],function(t){function n(r){return function(s,l,f){return this.request(kf(f||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}Ef.prototype[t]=n(),Ef.prototype[t+"Form"]=n(!0)});let eK=class QA{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(s){n=s});const r=this;this.promise.then(a=>{if(!r._listeners)return;let s=r._listeners.length;for(;s-- >0;)r._listeners[s](a);r._listeners=null}),this.promise.then=a=>{let s;const l=new Promise(f=>{r.subscribe(f),s=f}).then(a);return l.cancel=function(){r.unsubscribe(s)},l},t(function(s,l,f){r.reason||(r.reason=new pp(s,l,f),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new QA(function(a){t=a}),cancel:t}}};function tK(e){return function(n){return e.apply(null,n)}}function nK(e){return ge.isObject(e)&&e.isAxiosError===!0}const NS={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(NS).forEach(([e,t])=>{NS[t]=e});function ek(e){const t=new Ef(e),n=OA(Ef.prototype.request,t);return ge.extend(n,Ef.prototype,t,{allOwnKeys:!0}),ge.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return ek(kf(e,a))},n}const dr=ek(zg);dr.Axios=Ef;dr.CanceledError=pp;dr.CancelToken=eK;dr.isCancel=WA;dr.VERSION=JA;dr.toFormData=wx;dr.AxiosError=Mt;dr.Cancel=dr.CanceledError;dr.all=function(t){return Promise.all(t)};dr.spread=tK;dr.isAxiosError=nK;dr.mergeConfig=kf;dr.AxiosHeaders=Zi;dr.formToJSON=e=>VA(ge.isHTMLForm(e)?new FormData(e):e);dr.getAdapter=ZA.getAdapter;dr.HttpStatusCode=NS;dr.default=dr;const{Axios:zee,AxiosError:Uee,CanceledError:$ee,isCancel:Hee,CancelToken:Vee,VERSION:Wee,all:Gee,Cancel:Yee,isAxiosError:qee,spread:Kee,toFormData:Xee,AxiosHeaders:Zee,HttpStatusCode:Jee,formToJSON:Qee,getAdapter:ete,mergeConfig:tte}=dr;var tk="https://api.replyke.com/api/v5";const rK=dr.create({baseURL:tk});var Eh=dr.create({baseURL:tk,headers:{"Content-Type":"application/json"},withCredentials:!0});function Ug(){return _.useContext(cK)}function iK(){return _.useContext(lK)}var aK=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function f(g){try{p(r.next(g))}catch(b){l(b)}}function m(g){try{p(r.throw(g))}catch(b){l(b)}}function p(g){g.done?s(g.value):a(g.value).then(f,m)}p((r=r.apply(e,t||[])).next())})},oK=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=f(0),l.throw=f(1),l.return=f(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(p){return function(g){return m([p,g])}}function m(p){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,p[0]&&(n=0)),n;)try{if(r=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,a=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){n.label=p[1];break}if(p[0]===6&&n.label<s[1]){n.label=s[1],s=p;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(p);break}s[2]&&n.ops.pop(),n.trys.pop();continue}p=t.call(e,n)}catch(g){p=[6,g],a=0}finally{r=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Cx=function(){var e=iK(),t=e.accessToken,n=e.requestNewAccessToken;return _.useEffect(function(){var r=Eh.interceptors.request.use(function(s){return s.headers.Authorization||(s.headers.Authorization="Bearer ".concat(t)),s},function(s){return Promise.reject(s)}),a=Eh.interceptors.response.use(function(s){return s},function(s){return aK(void 0,void 0,void 0,function(){var l,f,m;return oK(this,function(p){switch(p.label){case 0:return l=s==null?void 0:s.config,((m=s==null?void 0:s.response)===null||m===void 0?void 0:m.status)===403&&!(l!=null&&l.sent)?(l.sent=!0,[4,n==null?void 0:n()]):[3,2];case 1:return f=p.sent(),l.headers.Authorization="Bearer ".concat(f),[2,Eh(l)];case 2:return[2,Promise.reject(s)]}})})});return function(){Eh.interceptors.request.eject(r),Eh.interceptors.response.eject(a)}},[t,n]),Eh},sK=_.createContext({}),lK=_.createContext({}),cK=_.createContext({projectId:"",project:null}),j0={exports:{}};/**
+ * @license
+ * Lodash <https://lodash.com/>
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
+ * Released under MIT license <https://lodash.com/license>
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
+ */var uK=j0.exports,vT;function fK(){return vT||(vT=1,function(e,t){(function(){var n,r="4.17.21",a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="Invalid `variable` option passed into `_.template`",m="__lodash_hash_undefined__",p=500,g="__lodash_placeholder__",b=1,S=2,T=4,C=1,E=2,A=1,k=2,L=4,O=8,P=16,M=32,$=64,B=128,H=256,q=512,j=30,X="...",K=800,ne=16,le=1,oe=2,V=3,Q=1/0,Z=9007199254740991,ae=17976931348623157e292,U=NaN,W=4294967295,te=W-1,de=W>>>1,Ee=[["ary",B],["bind",A],["bindKey",k],["curry",O],["curryRight",P],["flip",q],["partial",M],["partialRight",$],["rearg",H]],xe="[object Arguments]",Re="[object Array]",rt="[object AsyncFunction]",Ke="[object Boolean]",tt="[object Date]",Be="[object DOMException]",Xe="[object Error]",He="[object Function]",Je="[object GeneratorFunction]",ke="[object Map]",De="[object Number]",At="[object Null]",Ze="[object Object]",zt="[object Promise]",ft="[object Proxy]",Pt="[object RegExp]",at="[object Set]",Pe="[object String]",rn="[object Symbol]",kt="[object Undefined]",sn="[object WeakMap]",_n="[object WeakSet]",hn="[object ArrayBuffer]",ln="[object DataView]",Vt="[object Float32Array]",an="[object Float64Array]",je="[object Int8Array]",Rt="[object Int16Array]",Ve="[object Int32Array]",Ie="[object Uint8Array]",Le="[object Uint8ClampedArray]",mt="[object Uint16Array]",cn="[object Uint32Array]",Qi=/\b__p \+= '';/g,wa=/\b(__p \+=) '' \+/g,Lf=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Rl=/&(?:amp|lt|gt|quot|#39);/g,Sa=/[&<>"']/g,bp=RegExp(Rl.source),Pf=RegExp(Sa.source),Nf=/<%-([\s\S]+?)%>/g,Wc=/<%([\s\S]+?)%>/g,Al=/<%=([\s\S]+?)%>/g,Ff=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,$e=/^\w*$/,We=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ot=/[\\^$.*+?()[\]{}|]/g,vt=RegExp(ot.source),un=/^\s+/,Gr=/\s/,Za=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Os=/\{\n\/\* \[wrapped with (.+)\] \*/,Gc=/,? & /,Ja=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,xp=/[()=,{}\[\]\/\s]/,kl=/\\(\\)?/g,Ol=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ml=/\w*$/,Dl=/^[-+]0x[0-9a-f]+$/i,_r=/^0b[01]+$/i,Yg=/^\[object .+?Constructor\]$/,qg=/^0o[0-7]+$/i,Ms=/^(?:0|[1-9]\d*)$/,jl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Bf=/($^)/,Kg=/['\n\r\u2028\u2029\\]/g,Yc="\\ud800-\\udfff",Px="\\u0300-\\u036f",zf="\\ufe20-\\ufe2f",Uf="\\u20d0-\\u20ff",_a=Px+zf+Uf,$f="\\u2700-\\u27bf",wp="a-z\\xdf-\\xf6\\xf8-\\xff",Il="\\xac\\xb1\\xd7\\xf7",Sp="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",_p="\\u2000-\\u206f",Nx=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Cp="A-Z\\xc0-\\xd6\\xd8-\\xde",di="\\ufe0e\\ufe0f",Ep=Il+Sp+_p+Nx,Tp="['’]",Hf="["+Yc+"]",Rp="["+Ep+"]",Ds="["+_a+"]",Xg="\\d+",Oi="["+$f+"]",Vf="["+wp+"]",Ap="[^"+Yc+Ep+Xg+$f+wp+Cp+"]",qc="\\ud83c[\\udffb-\\udfff]",Ll="(?:"+Ds+"|"+qc+")",kp="[^"+Yc+"]",Wf="(?:\\ud83c[\\udde6-\\uddff]){2}",jo="[\\ud800-\\udbff][\\udc00-\\udfff]",Pl="["+Cp+"]",Op="\\u200d",Mp="(?:"+Vf+"|"+Ap+")",Dp="(?:"+Pl+"|"+Ap+")",Zg="(?:"+Tp+"(?:d|ll|m|re|s|t|ve))?",Jg="(?:"+Tp+"(?:D|LL|M|RE|S|T|VE))?",Kc=Ll+"?",Gf="["+di+"]?",jp="(?:"+Op+"(?:"+[kp,Wf,jo].join("|")+")"+Gf+Kc+")*",Nl="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Fl="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ip=Gf+Kc+jp,Lp="(?:"+[Oi,Wf,jo].join("|")+")"+Ip,Qg="(?:"+[kp+Ds+"?",Ds,Wf,jo,Hf].join("|")+")",Xc=RegExp(Tp,"g"),Qa=RegExp(Ds,"g"),Zc=RegExp(qc+"(?="+qc+")|"+Qg+Ip,"g"),Jc=RegExp([Pl+"?"+Vf+"+"+Zg+"(?="+[Rp,Pl,"$"].join("|")+")",Dp+"+"+Jg+"(?="+[Rp,Pl+Mp,"$"].join("|")+")",Pl+"?"+Mp+"+"+Zg,Pl+"+"+Jg,Fl,Nl,Xg,Lp].join("|"),"g"),Io=RegExp("["+Op+Yc+_a+di+"]"),Pp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yf=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ey=-1,Cn={};Cn[Vt]=Cn[an]=Cn[je]=Cn[Rt]=Cn[Ve]=Cn[Ie]=Cn[Le]=Cn[mt]=Cn[cn]=!0,Cn[xe]=Cn[Re]=Cn[hn]=Cn[Ke]=Cn[ln]=Cn[tt]=Cn[Xe]=Cn[He]=Cn[ke]=Cn[De]=Cn[Ze]=Cn[Pt]=Cn[at]=Cn[Pe]=Cn[sn]=!1;var yn={};yn[xe]=yn[Re]=yn[hn]=yn[ln]=yn[Ke]=yn[tt]=yn[Vt]=yn[an]=yn[je]=yn[Rt]=yn[Ve]=yn[ke]=yn[De]=yn[Ze]=yn[Pt]=yn[at]=yn[Pe]=yn[rn]=yn[Ie]=yn[Le]=yn[mt]=yn[cn]=!0,yn[Xe]=yn[He]=yn[sn]=!1;var ty={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},Yr={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},js={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},qf={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Qc=parseFloat,Fx=parseInt,Kf=typeof hv=="object"&&hv&&hv.Object===Object&&hv,Np=typeof self=="object"&&self&&self.Object===Object&&self,nr=Kf||Np||Function("return this")(),Bl=t&&!t.nodeType&&t,Lo=Bl&&!0&&e&&!e.nodeType&&e,ny=Lo&&Lo.exports===Bl,Fp=ny&&Kf.process,Mi=function(){try{var re=Lo&&Lo.require&&Lo.require("util").types;return re||Fp&&Fp.binding&&Fp.binding("util")}catch{}}(),Xf=Mi&&Mi.isArrayBuffer,ry=Mi&&Mi.isDate,iy=Mi&&Mi.isMap,ay=Mi&&Mi.isRegExp,oy=Mi&&Mi.isSet,sy=Mi&&Mi.isTypedArray;function qr(re,ye,me){switch(me.length){case 0:return re.call(ye);case 1:return re.call(ye,me[0]);case 2:return re.call(ye,me[0],me[1]);case 3:return re.call(ye,me[0],me[1],me[2])}return re.apply(ye,me)}function Bx(re,ye,me,Ne){for(var ut=-1,Jt=re==null?0:re.length;++ut<Jt;){var or=re[ut];ye(Ne,or,me(or),re)}return Ne}function Di(re,ye){for(var me=-1,Ne=re==null?0:re.length;++me<Ne&&ye(re[me],me,re)!==!1;);return re}function zx(re,ye){for(var me=re==null?0:re.length;me--&&ye(re[me],me,re)!==!1;);return re}function ly(re,ye){for(var me=-1,Ne=re==null?0:re.length;++me<Ne;)if(!ye(re[me],me,re))return!1;return!0}function Ca(re,ye){for(var me=-1,Ne=re==null?0:re.length,ut=0,Jt=[];++me<Ne;){var or=re[me];ye(or,me,re)&&(Jt[ut++]=or)}return Jt}function Zf(re,ye){var me=re==null?0:re.length;return!!me&&zl(re,ye,0)>-1}function Bp(re,ye,me){for(var Ne=-1,ut=re==null?0:re.length;++Ne<ut;)if(me(ye,re[Ne]))return!0;return!1}function zn(re,ye){for(var me=-1,Ne=re==null?0:re.length,ut=Array(Ne);++me<Ne;)ut[me]=ye(re[me],me,re);return ut}function eo(re,ye){for(var me=-1,Ne=ye.length,ut=re.length;++me<Ne;)re[ut+me]=ye[me];return re}function zp(re,ye,me,Ne){var ut=-1,Jt=re==null?0:re.length;for(Ne&&Jt&&(me=re[++ut]);++ut<Jt;)me=ye(me,re[ut],ut,re);return me}function Ux(re,ye,me,Ne){var ut=re==null?0:re.length;for(Ne&&ut&&(me=re[--ut]);ut--;)me=ye(me,re[ut],ut,re);return me}function Up(re,ye){for(var me=-1,Ne=re==null?0:re.length;++me<Ne;)if(ye(re[me],me,re))return!0;return!1}var $x=Qf("length");function Hx(re){return re.split("")}function Vx(re){return re.match(Ja)||[]}function cy(re,ye,me){var Ne;return me(re,function(ut,Jt,or){if(ye(ut,Jt,or))return Ne=Jt,!1}),Ne}function Jf(re,ye,me,Ne){for(var ut=re.length,Jt=me+(Ne?1:-1);Ne?Jt--:++Jt<ut;)if(ye(re[Jt],Jt,re))return Jt;return-1}function zl(re,ye,me){return ye===ye?qx(re,ye,me):Jf(re,Ul,me)}function $p(re,ye,me,Ne){for(var ut=me-1,Jt=re.length;++ut<Jt;)if(Ne(re[ut],ye))return ut;return-1}function Ul(re){return re!==re}function uy(re,ye){var me=re==null?0:re.length;return me?td(re,ye)/me:U}function Qf(re){return function(ye){return ye==null?n:ye[re]}}function ed(re){return function(ye){return re==null?n:re[ye]}}function Hp(re,ye,me,Ne,ut){return ut(re,function(Jt,or,Qt){me=Ne?(Ne=!1,Jt):ye(me,Jt,or,Qt)}),me}function fy(re,ye){var me=re.length;for(re.sort(ye);me--;)re[me]=re[me].value;return re}function td(re,ye){for(var me,Ne=-1,ut=re.length;++Ne<ut;){var Jt=ye(re[Ne]);Jt!==n&&(me=me===n?Jt:me+Jt)}return me}function Po(re,ye){for(var me=-1,Ne=Array(re);++me<re;)Ne[me]=ye(me);return Ne}function Wx(re,ye){return zn(ye,function(me){return[me,re[me]]})}function dy(re){return re&&re.slice(0,Wp(re)+1).replace(un,"")}function hi(re){return function(ye){return re(ye)}}function nd(re,ye){return zn(ye,function(me){return re[me]})}function $l(re,ye){return re.has(ye)}function Hl(re,ye){for(var me=-1,Ne=re.length;++me<Ne&&zl(ye,re[me],0)>-1;);return me}function Vl(re,ye){for(var me=re.length;me--&&zl(ye,re[me],0)>-1;);return me}function Gx(re,ye){for(var me=re.length,Ne=0;me--;)re[me]===ye&&++Ne;return Ne}var rd=ed(ty),hy=ed(Yr);function py(re){return"\\"+qf[re]}function Vp(re,ye){return re==null?n:re[ye]}function No(re){return Io.test(re)}function my(re){return Pp.test(re)}function gy(re){for(var ye,me=[];!(ye=re.next()).done;)me.push(ye.value);return me}function id(re){var ye=-1,me=Array(re.size);return re.forEach(function(Ne,ut){me[++ye]=[ut,Ne]}),me}function yy(re,ye){return function(me){return re(ye(me))}}function Fo(re,ye){for(var me=-1,Ne=re.length,ut=0,Jt=[];++me<Ne;){var or=re[me];(or===ye||or===g)&&(re[me]=g,Jt[ut++]=me)}return Jt}function ad(re){var ye=-1,me=Array(re.size);return re.forEach(function(Ne){me[++ye]=Ne}),me}function Yx(re){var ye=-1,me=Array(re.size);return re.forEach(function(Ne){me[++ye]=[Ne,Ne]}),me}function qx(re,ye,me){for(var Ne=me-1,ut=re.length;++Ne<ut;)if(re[Ne]===ye)return Ne;return-1}function pi(re,ye,me){for(var Ne=me+1;Ne--;)if(re[Ne]===ye)return Ne;return Ne}function Ea(re){return No(re)?by(re):$x(re)}function ji(re){return No(re)?Gp(re):Hx(re)}function Wp(re){for(var ye=re.length;ye--&&Gr.test(re.charAt(ye)););return ye}var vy=ed(js);function by(re){for(var ye=Zc.lastIndex=0;Zc.test(re);)++ye;return ye}function Gp(re){return re.match(Zc)||[]}function Kx(re){return re.match(Jc)||[]}var Wl=function re(ye){ye=ye==null?nr:Bo.defaults(nr.Object(),ye,Bo.pick(nr,Yf));var me=ye.Array,Ne=ye.Date,ut=ye.Error,Jt=ye.Function,or=ye.Math,Qt=ye.Object,od=ye.RegExp,xy=ye.String,mi=ye.TypeError,sd=me.prototype,Xx=Jt.prototype,Gl=Qt.prototype,eu=ye["__core-js_shared__"],tu=Xx.toString,fn=Gl.hasOwnProperty,ea=0,Yp=function(){var u=/[^.]+$/.exec(eu&&eu.keys&&eu.keys.IE_PROTO||"");return u?"Symbol(src)_1."+u:""}(),Nr=Gl.toString,Ii=tu.call(Qt),Yl=nr._,qp=od("^"+tu.call(fn).replace(ot,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Is=ny?ye.Buffer:n,ta=ye.Symbol,ql=ye.Uint8Array,Ls=Is?Is.allocUnsafe:n,nu=yy(Qt.getPrototypeOf,Qt),ru=Qt.create,Ps=Gl.propertyIsEnumerable,ld=sd.splice,Kr=ta?ta.isConcatSpreadable:n,Ns=ta?ta.iterator:n,Fr=ta?ta.toStringTag:n,iu=function(){try{var u=qo(Qt,"defineProperty");return u({},"",{}),u}catch{}}(),cd=ye.clearTimeout!==nr.clearTimeout&&ye.clearTimeout,Fs=Ne&&Ne.now!==nr.Date.now&&Ne.now,Kp=ye.setTimeout!==nr.setTimeout&&ye.setTimeout,Kl=or.ceil,to=or.floor,zo=Qt.getOwnPropertySymbols,ud=Is?Is.isBuffer:n,au=ye.isFinite,Li=sd.join,Pi=yy(Qt.keys,Qt),Pn=or.max,Un=or.min,no=Ne.now,Bs=ye.parseInt,Xp=or.random,Zp=sd.reverse,ou=qo(ye,"DataView"),hr=qo(ye,"Map"),$n=qo(ye,"Promise"),Wt=qo(ye,"Set"),na=qo(ye,"WeakMap"),Xr=qo(Qt,"create"),Xl=na&&new na,Ni={},wy=fo(ou),Sy=fo(hr),su=fo($n),lu=fo(Wt),_y=fo(na),Uo=ta?ta.prototype:n,zs=Uo?Uo.valueOf:n,$o=Uo?Uo.toString:n;function N(u){if(Wn(u)&&!gt(u)&&!(u instanceof Nt)){if(u instanceof Zr)return u;if(fn.call(u,"__wrapped__"))return mr(u)}return new Zr(u)}var gi=function(){function u(){}return function(d){if(!Vn(d))return{};if(ru)return ru(d);u.prototype=d;var x=new u;return u.prototype=n,x}}();function Fi(){}function Zr(u,d){this.__wrapped__=u,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}N.templateSettings={escape:Nf,evaluate:Wc,interpolate:Al,variable:"",imports:{_:N}},N.prototype=Fi.prototype,N.prototype.constructor=N,Zr.prototype=gi(Fi.prototype),Zr.prototype.constructor=Zr;function Nt(u){this.__wrapped__=u,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=W,this.__views__=[]}function cu(){var u=new Nt(this.__wrapped__);return u.__actions__=pr(this.__actions__),u.__dir__=this.__dir__,u.__filtered__=this.__filtered__,u.__iteratees__=pr(this.__iteratees__),u.__takeCount__=this.__takeCount__,u.__views__=pr(this.__views__),u}function fd(){if(this.__filtered__){var u=new Nt(this);u.__dir__=-1,u.__filtered__=!0}else u=this.clone(),u.__dir__*=-1;return u}function Us(){var u=this.__wrapped__.value(),d=this.__dir__,x=gt(u),R=d<0,I=x?u.length:0,z=n1(0,I,this.__views__),G=z.start,J=z.end,se=J-G,Se=R?J:G-1,Ce=this.__iteratees__,Te=Ce.length,Fe=0,Qe=Un(se,this.__takeCount__);if(!x||!R&&I==se&&Qe==se)return $y(u,this.__actions__);var dt=[];e:for(;se--&&Fe<Qe;){Se+=d;for(var Bt=-1,ht=u[Se];++Bt<Te;){var qt=Ce[Bt],tn=qt.iteratee,ca=qt.type,_i=tn(ht);if(ca==oe)ht=_i;else if(!_i){if(ca==le)continue e;break e}}dt[Fe++]=ht}return dt}Nt.prototype=gi(Fi.prototype),Nt.prototype.constructor=Nt;function Kn(u){var d=-1,x=u==null?0:u.length;for(this.clear();++d<x;){var R=u[d];this.set(R[0],R[1])}}function dd(){this.__data__=Xr?Xr(null):{},this.size=0}function Cy(u){var d=this.has(u)&&delete this.__data__[u];return this.size-=d?1:0,d}function Zx(u){var d=this.__data__;if(Xr){var x=d[u];return x===m?n:x}return fn.call(d,u)?d[u]:n}function Jx(u){var d=this.__data__;return Xr?d[u]!==n:fn.call(d,u)}function Qx(u,d){var x=this.__data__;return this.size+=this.has(u)?0:1,x[u]=Xr&&d===n?m:d,this}Kn.prototype.clear=dd,Kn.prototype.delete=Cy,Kn.prototype.get=Zx,Kn.prototype.has=Jx,Kn.prototype.set=Qx;function kn(u){var d=-1,x=u==null?0:u.length;for(this.clear();++d<x;){var R=u[d];this.set(R[0],R[1])}}function Jp(){this.__data__=[],this.size=0}function uu(u){var d=this.__data__,x=Ql(d,u);if(x<0)return!1;var R=d.length-1;return x==R?d.pop():ld.call(d,x,1),--this.size,!0}function fu(u){var d=this.__data__,x=Ql(d,u);return x<0?n:d[x][1]}function Qp(u){return Ql(this.__data__,u)>-1}function Zl(u,d){var x=this.__data__,R=Ql(x,u);return R<0?(++this.size,x.push([u,d])):x[R][1]=d,this}kn.prototype.clear=Jp,kn.prototype.delete=uu,kn.prototype.get=fu,kn.prototype.has=Qp,kn.prototype.set=Zl;function Jr(u){var d=-1,x=u==null?0:u.length;for(this.clear();++d<x;){var R=u[d];this.set(R[0],R[1])}}function ew(){this.size=0,this.__data__={hash:new Kn,map:new(hr||kn),string:new Kn}}function Ey(u){var d=ac(this,u).delete(u);return this.size-=d?1:0,d}function tw(u){return ac(this,u).get(u)}function Ty(u){return ac(this,u).has(u)}function $s(u,d){var x=ac(this,u),R=x.size;return x.set(u,d),this.size+=x.size==R?0:1,this}Jr.prototype.clear=ew,Jr.prototype.delete=Ey,Jr.prototype.get=tw,Jr.prototype.has=Ty,Jr.prototype.set=$s;function ro(u){var d=-1,x=u==null?0:u.length;for(this.__data__=new Jr;++d<x;)this.add(u[d])}function hd(u){return this.__data__.set(u,m),this}function Ry(u){return this.__data__.has(u)}ro.prototype.add=ro.prototype.push=hd,ro.prototype.has=Ry;function Br(u){var d=this.__data__=new kn(u);this.size=d.size}function Ay(){this.__data__=new kn,this.size=0}function pd(u){var d=this.__data__,x=d.delete(u);return this.size=d.size,x}function em(u){return this.__data__.get(u)}function ky(u){return this.__data__.has(u)}function md(u,d){var x=this.__data__;if(x instanceof kn){var R=x.__data__;if(!hr||R.length<a-1)return R.push([u,d]),this.size=++x.size,this;x=this.__data__=new Jr(R)}return x.set(u,d),this.size=x.size,this}Br.prototype.clear=Ay,Br.prototype.delete=pd,Br.prototype.get=em,Br.prototype.has=ky,Br.prototype.set=md;function tm(u,d){var x=gt(u),R=!x&&go(u),I=!x&&!R&&is(u),z=!x&&!R&&!I&&bc(u),G=x||R||I||z,J=G?Po(u.length,xy):[],se=J.length;for(var Se in u)(d||fn.call(u,Se))&&!(G&&(Se=="length"||I&&(Se=="offset"||Se=="parent")||z&&(Se=="buffer"||Se=="byteLength"||Se=="byteOffset")||oa(Se,se)))&&J.push(Se);return J}function Jl(u){var d=u.length;return d?u[Ed(0,d-1)]:n}function Oy(u,d){return Fu(pr(u),ia(d,0,u.length))}function My(u){return Fu(pr(u))}function Ta(u,d,x){(x!==n&&!ai(u[d],x)||x===n&&!(d in u))&&ra(u,d,x)}function Hs(u,d,x){var R=u[d];(!(fn.call(u,d)&&ai(R,x))||x===n&&!(d in u))&&ra(u,d,x)}function Ql(u,d){for(var x=u.length;x--;)if(ai(u[x][0],d))return x;return-1}function Ho(u,d,x,R){return ao(u,function(I,z,G){d(R,I,x(I),G)}),R}function io(u,d){return u&&ti(d,vr(d),u)}function du(u,d){return u&&ti(d,Tr(d),u)}function ra(u,d,x){d=="__proto__"&&iu?iu(u,d,{configurable:!0,enumerable:!0,value:x,writable:!0}):u[d]=x}function hu(u,d){for(var x=-1,R=d.length,I=me(R),z=u==null;++x<R;)I[x]=z?n:Ju(u,d[x]);return I}function ia(u,d,x){return u===u&&(x!==n&&(u=u<=x?u:x),d!==n&&(u=u>=d?u:d)),u}function Dr(u,d,x,R,I,z){var G,J=d&b,se=d&S,Se=d&T;if(x&&(G=I?x(u,R,I,z):x(u)),G!==n)return G;if(!Vn(u))return u;var Ce=gt(u);if(Ce){if(G=Rm(u),!J)return pr(u,G)}else{var Te=Er(u),Fe=Te==He||Te==Je;if(is(u))return bm(u,J);if(Te==Ze||Te==xe||Fe&&!I){if(G=se||Fe?{}:Am(u),!J)return se?Tu(u,du(G,u)):Md(u,io(G,u))}else{if(!yn[Te])return I?u:{};G=km(u,Te,J)}}z||(z=new Br);var Qe=z.get(u);if(Qe)return Qe;z.set(u,G),q1(u)?u.forEach(function(ht){G.add(Dr(ht,d,x,ht,u,z))}):nh(u)&&u.forEach(function(ht,qt){G.set(qt,Dr(ht,d,x,qt,u,z))});var dt=Se?se?Ld:Id:se?Tr:vr,Bt=Ce?n:dt(u);return Di(Bt||u,function(ht,qt){Bt&&(qt=ht,ht=u[qt]),Hs(G,qt,Dr(ht,d,x,qt,u,z))}),G}function Dy(u){var d=vr(u);return function(x){return nm(x,u,d)}}function nm(u,d,x){var R=x.length;if(u==null)return!R;for(u=Qt(u);R--;){var I=x[R],z=d[I],G=u[I];if(G===n&&!(I in u)||!z(G))return!1}return!0}function Vs(u,d,x){if(typeof u!="function")throw new mi(l);return sc(function(){u.apply(n,x)},d)}function Vo(u,d,x,R){var I=-1,z=Zf,G=!0,J=u.length,se=[],Se=d.length;if(!J)return se;x&&(d=zn(d,hi(x))),R?(z=Bp,G=!1):d.length>=a&&(z=$l,G=!1,d=new ro(d));e:for(;++I<J;){var Ce=u[I],Te=x==null?Ce:x(Ce);if(Ce=R||Ce!==0?Ce:0,G&&Te===Te){for(var Fe=Se;Fe--;)if(d[Fe]===Te)continue e;se.push(Ce)}else z(d,Te,R)||se.push(Ce)}return se}var ao=_m(jr),gd=_m(tc,!0);function rm(u,d){var x=!0;return ao(u,function(R,I,z){return x=!!d(R,I,z),x}),x}function aa(u,d,x){for(var R=-1,I=u.length;++R<I;){var z=u[R],G=d(z);if(G!=null&&(J===n?G===G&&!$r(G):x(G,J)))var J=G,se=z}return se}function Dt(u,d,x,R){var I=u.length;for(x=Et(x),x<0&&(x=-x>I?0:I+x),R=R===n||R>I?I:Et(R),R<0&&(R+=I),R=x>R?0:La(R);x<R;)u[x++]=d;return u}function vn(u,d){var x=[];return ao(u,function(R,I,z){d(R,I,z)&&x.push(R)}),x}function Gt(u,d,x,R,I){var z=-1,G=u.length;for(x||(x=co),I||(I=[]);++z<G;){var J=u[z];d>0&&x(J)?d>1?Gt(J,d-1,x,R,I):eo(I,J):R||(I[I.length]=J)}return I}var ec=Zs(),Ws=Zs(!0);function jr(u,d){return u&&ec(u,d,vr)}function tc(u,d){return u&&Ws(u,d,vr)}function Wo(u,d){return Ca(d,function(x){return sa(u[x])})}function Bi(u,d){d=so(d,u);for(var x=0,R=d.length;u!=null&&x<R;)u=u[pn(d[x++])];return x&&x==R?u:n}function jy(u,d,x){var R=d(u);return gt(u)?R:eo(R,x(u))}function Yt(u){return u==null?u===n?kt:At:Fr&&Fr in Qt(u)?t1(u):s1(u)}function pu(u,d){return u>d}function im(u,d){return u!=null&&fn.call(u,d)}function Iy(u,d){return u!=null&&d in Qt(u)}function Ly(u,d,x){return u>=Un(d,x)&&u<Pn(d,x)}function am(u,d,x){for(var R=x?Bp:Zf,I=u[0].length,z=u.length,G=z,J=me(z),se=1/0,Se=[];G--;){var Ce=u[G];G&&d&&(Ce=zn(Ce,hi(d))),se=Un(Ce.length,se),J[G]=!x&&(d||I>=120&&Ce.length>=120)?new ro(G&&Ce):n}Ce=u[0];var Te=-1,Fe=J[0];e:for(;++Te<I&&Se.length<se;){var Qe=Ce[Te],dt=d?d(Qe):Qe;if(Qe=x||Qe!==0?Qe:0,!(Fe?$l(Fe,dt):R(Se,dt,x))){for(G=z;--G;){var Bt=J[G];if(!(Bt?$l(Bt,dt):R(u[G],dt,x)))continue e}Fe&&Fe.push(dt),Se.push(Qe)}}return Se}function om(u,d,x,R){return jr(u,function(I,z,G){d(R,x(I),z,G)}),R}function Gs(u,d,x){d=so(d,u),u=oc(u,d);var R=u==null?u:u[pn(Ir(d))];return R==null?n:qr(R,u,x)}function yd(u){return Wn(u)&&Yt(u)==xe}function Qr(u){return Wn(u)&&Yt(u)==hn}function sr(u){return Wn(u)&&Yt(u)==tt}function Ys(u,d,x,R,I){return u===d?!0:u==null||d==null||!Wn(u)&&!Wn(d)?u!==u&&d!==d:mu(u,d,x,R,Ys,I)}function mu(u,d,x,R,I,z){var G=gt(u),J=gt(d),se=G?Re:Er(u),Se=J?Re:Er(d);se=se==xe?Ze:se,Se=Se==xe?Ze:Se;var Ce=se==Ze,Te=Se==Ze,Fe=se==Se;if(Fe&&is(u)){if(!is(d))return!1;G=!0,Ce=!1}if(Fe&&!Ce)return z||(z=new Br),G||bc(u)?Qy(u,d,x,R,I,z):e1(u,d,se,x,R,I,z);if(!(x&C)){var Qe=Ce&&fn.call(u,"__wrapped__"),dt=Te&&fn.call(d,"__wrapped__");if(Qe||dt){var Bt=Qe?u.value():u,ht=dt?d.value():d;return z||(z=new Br),I(Bt,ht,x,R,z)}}return Fe?(z||(z=new Br),Cr(u,d,x,R,I,z)):!1}function vd(u){return Wn(u)&&Er(u)==ke}function gu(u,d,x,R){var I=x.length,z=I,G=!R;if(u==null)return!z;for(u=Qt(u);I--;){var J=x[I];if(G&&J[2]?J[1]!==u[J[0]]:!(J[0]in u))return!1}for(;++I<z;){J=x[I];var se=J[0],Se=u[se],Ce=J[1];if(G&&J[2]){if(Se===n&&!(se in u))return!1}else{var Te=new Br;if(R)var Fe=R(Se,Ce,se,u,d,Te);if(!(Fe===n?Ys(Ce,Se,C|E,R,Te):Fe))return!1}}return!0}function Ra(u){if(!Vn(u)||Ud(u))return!1;var d=sa(u)?qp:Yg;return d.test(fo(u))}function bd(u){return Wn(u)&&Yt(u)==Pt}function sm(u){return Wn(u)&&Er(u)==at}function lm(u){return Wn(u)&&nl(u.length)&&!!Cn[Yt(u)]}function cm(u){return typeof u=="function"?u:u==null?he:typeof u=="object"?gt(u)?Sd(u[0],u[1]):fm(u):en(u)}function xd(u){if(!On(u))return Pi(u);var d=[];for(var x in Qt(u))fn.call(u,x)&&x!="constructor"&&d.push(x);return d}function Py(u){if(!Vn(u))return Ko(u);var d=On(u),x=[];for(var R in u)R=="constructor"&&(d||!fn.call(u,R))||x.push(R);return x}function wd(u,d){return u<d}function um(u,d){var x=-1,R=gr(u)?me(u.length):[];return ao(u,function(I,z,G){R[++x]=d(I,z,G)}),R}function fm(u){var d=Nd(u);return d.length==1&&d[0][2]?a1(d[0][0],d[0][1]):function(x){return x===u||gu(x,u,d)}}function Sd(u,d){return Bd(u)&&i1(d)?a1(pn(u),d):function(x){var R=Ju(x,u);return R===n&&R===d?_c(x,u):Ys(d,R,C|E)}}function yu(u,d,x,R,I){u!==d&&ec(d,function(z,G){if(I||(I=new Br),Vn(z))nw(u,d,G,x,yu,R,I);else{var J=R?R($d(u,G),z,G+"",u,d,I):n;J===n&&(J=z),Ta(u,G,J)}},Tr)}function nw(u,d,x,R,I,z,G){var J=$d(u,x),se=$d(d,x),Se=G.get(se);if(Se){Ta(u,x,Se);return}var Ce=z?z(J,se,x+"",u,d,G):n,Te=Ce===n;if(Te){var Fe=gt(se),Qe=!Fe&&is(se),dt=!Fe&&!Qe&&bc(se);Ce=se,Fe||Qe||dt?gt(J)?Ce=J:Jn(J)?Ce=pr(J):Qe?(Te=!1,Ce=bm(se,!0)):dt?(Te=!1,Ce=wm(se,!0)):Ce=[]:Hi(se)||go(se)?(Ce=J,go(J)?Ce=Z1(J):(!Vn(J)||sa(J))&&(Ce=Am(se))):Te=!1}Te&&(G.set(se,Ce),I(Ce,se,R,z,G),G.delete(se)),Ta(u,x,Ce)}function dm(u,d){var x=u.length;if(x)return d+=d<0?x:0,oa(d,x)?u[d]:n}function hm(u,d,x){d.length?d=zn(d,function(z){return gt(z)?function(G){return Bi(G,z.length===1?z[0]:z)}:z}):d=[he];var R=-1;d=zn(d,hi(nt()));var I=um(u,function(z,G,J){var se=zn(d,function(Se){return Se(z)});return{criteria:se,index:++R,value:z}});return fy(I,function(z,G){return Gy(z,G,x)})}function Ny(u,d){return _d(u,d,function(x,R){return _c(u,R)})}function _d(u,d,x){for(var R=-1,I=d.length,z={};++R<I;){var G=d[R],J=Bi(u,G);x(J,G)&&rc(z,so(G,u),J)}return z}function Fy(u){return function(d){return Bi(d,u)}}function Cd(u,d,x,R){var I=R?$p:zl,z=-1,G=d.length,J=u;for(u===d&&(d=pr(d)),x&&(J=zn(u,hi(x)));++z<G;)for(var se=0,Se=d[z],Ce=x?x(Se):Se;(se=I(J,Ce,se,R))>-1;)J!==u&&ld.call(J,se,1),ld.call(u,se,1);return u}function pm(u,d){for(var x=u?d.length:0,R=x-1;x--;){var I=d[x];if(x==R||I!==z){var z=I;oa(I)?ld.call(u,I,1):wu(u,I)}}return u}function Ed(u,d){return u+to(Xp()*(d-u+1))}function By(u,d,x,R){for(var I=-1,z=Pn(Kl((d-u)/(x||1)),0),G=me(z);z--;)G[R?z:++I]=u,u+=x;return G}function mm(u,d){var x="";if(!u||d<1||d>Z)return x;do d%2&&(x+=u),d=to(d/2),d&&(u+=u);while(d);return x}function Ot(u,d){return Pu(Om(u,d,he),u+"")}function nc(u){return Jl(Ec(u))}function Td(u,d){var x=Ec(u);return Fu(x,ia(d,0,x.length))}function rc(u,d,x,R){if(!Vn(u))return u;d=so(d,u);for(var I=-1,z=d.length,G=z-1,J=u;J!=null&&++I<z;){var se=pn(d[I]),Se=x;if(se==="__proto__"||se==="constructor"||se==="prototype")return u;if(I!=G){var Ce=J[se];Se=R?R(Ce,se,J):n,Se===n&&(Se=Vn(Ce)?Ce:oa(d[I+1])?[]:{})}Hs(J,se,Se),J=J[se]}return u}var vu=Xl?function(u,d){return Xl.set(u,d),u}:he,bu=iu?function(u,d){return iu(u,"toString",{configurable:!0,enumerable:!1,value:fe(d),writable:!0})}:he;function zy(u){return Fu(Ec(u))}function yi(u,d,x){var R=-1,I=u.length;d<0&&(d=-d>I?0:I+d),x=x>I?I:x,x<0&&(x+=I),I=d>x?0:x-d>>>0,d>>>=0;for(var z=me(I);++R<I;)z[R]=u[R+d];return z}function Uy(u,d){var x;return ao(u,function(R,I,z){return x=d(R,I,z),!x}),!!x}function xu(u,d,x){var R=0,I=u==null?R:u.length;if(typeof d=="number"&&d===d&&I<=de){for(;R<I;){var z=R+I>>>1,G=u[z];G!==null&&!$r(G)&&(x?G<=d:G<d)?R=z+1:I=z}return I}return Rd(u,d,he,x)}function Rd(u,d,x,R){var I=0,z=u==null?0:u.length;if(z===0)return 0;d=x(d);for(var G=d!==d,J=d===null,se=$r(d),Se=d===n;I<z;){var Ce=to((I+z)/2),Te=x(u[Ce]),Fe=Te!==n,Qe=Te===null,dt=Te===Te,Bt=$r(Te);if(G)var ht=R||dt;else Se?ht=dt&&(R||Fe):J?ht=dt&&Fe&&(R||!Qe):se?ht=dt&&Fe&&!Qe&&(R||!Bt):Qe||Bt?ht=!1:ht=R?Te<=d:Te<d;ht?I=Ce+1:z=Ce}return Un(z,te)}function gm(u,d){for(var x=-1,R=u.length,I=0,z=[];++x<R;){var G=u[x],J=d?d(G):G;if(!x||!ai(J,se)){var se=J;z[I++]=G===0?0:G}}return z}function Ad(u){return typeof u=="number"?u:$r(u)?U:+u}function ei(u){if(typeof u=="string")return u;if(gt(u))return zn(u,ei)+"";if($r(u))return $o?$o.call(u):"";var d=u+"";return d=="0"&&1/u==-1/0?"-0":d}function oo(u,d,x){var R=-1,I=Zf,z=u.length,G=!0,J=[],se=J;if(x)G=!1,I=Bp;else if(z>=a){var Se=d?null:Zy(u);if(Se)return ad(Se);G=!1,I=$l,se=new ro}else se=d?[]:J;e:for(;++R<z;){var Ce=u[R],Te=d?d(Ce):Ce;if(Ce=x||Ce!==0?Ce:0,G&&Te===Te){for(var Fe=se.length;Fe--;)if(se[Fe]===Te)continue e;d&&se.push(Te),J.push(Ce)}else I(se,Te,x)||(se!==J&&se.push(Te),J.push(Ce))}return J}function wu(u,d){return d=so(d,u),u=oc(u,d),u==null||delete u[pn(Ir(d))]}function ym(u,d,x,R){return rc(u,d,x(Bi(u,d)),R)}function Su(u,d,x,R){for(var I=u.length,z=R?I:-1;(R?z--:++z<I)&&d(u[z],z,u););return x?yi(u,R?0:z,R?z+1:I):yi(u,R?z+1:0,R?I:z)}function $y(u,d){var x=u;return x instanceof Nt&&(x=x.value()),zp(d,function(R,I){return I.func.apply(I.thisArg,eo([R],I.args))},x)}function _u(u,d,x){var R=u.length;if(R<2)return R?oo(u[0]):[];for(var I=-1,z=me(R);++I<R;)for(var G=u[I],J=-1;++J<R;)J!=I&&(z[I]=Vo(z[I]||G,u[J],d,x));return oo(Gt(z,1),d,x)}function vm(u,d,x){for(var R=-1,I=u.length,z=d.length,G={};++R<I;){var J=R<z?d[R]:n;x(G,u[R],J)}return G}function kd(u){return Jn(u)?u:[]}function Cu(u){return typeof u=="function"?u:he}function so(u,d){return gt(u)?u:Bd(u,d)?[u]:Ma(dn(u))}var Hy=Ot;function Go(u,d,x){var R=u.length;return x=x===n?R:x,!d&&x>=R?u:yi(u,d,x)}var Vy=cd||function(u){return nr.clearTimeout(u)};function bm(u,d){if(d)return u.slice();var x=u.length,R=Ls?Ls(x):new u.constructor(x);return u.copy(R),R}function qs(u){var d=new u.constructor(u.byteLength);return new ql(d).set(new ql(u)),d}function xm(u,d){var x=d?qs(u.buffer):u.buffer;return new u.constructor(x,u.byteOffset,u.byteLength)}function Od(u){var d=new u.constructor(u.source,Ml.exec(u));return d.lastIndex=u.lastIndex,d}function Wy(u){return zs?Qt(zs.call(u)):{}}function wm(u,d){var x=d?qs(u.buffer):u.buffer;return new u.constructor(x,u.byteOffset,u.length)}function Eu(u,d){if(u!==d){var x=u!==n,R=u===null,I=u===u,z=$r(u),G=d!==n,J=d===null,se=d===d,Se=$r(d);if(!J&&!Se&&!z&&u>d||z&&G&&se&&!J&&!Se||R&&G&&se||!x&&se||!I)return 1;if(!R&&!z&&!Se&&u<d||Se&&x&&I&&!R&&!z||J&&x&&I||!G&&I||!se)return-1}return 0}function Gy(u,d,x){for(var R=-1,I=u.criteria,z=d.criteria,G=I.length,J=x.length;++R<G;){var se=Eu(I[R],z[R]);if(se){if(R>=J)return se;var Se=x[R];return se*(Se=="desc"?-1:1)}}return u.index-d.index}function Sm(u,d,x,R){for(var I=-1,z=u.length,G=x.length,J=-1,se=d.length,Se=Pn(z-G,0),Ce=me(se+Se),Te=!R;++J<se;)Ce[J]=d[J];for(;++I<G;)(Te||I<z)&&(Ce[x[I]]=u[I]);for(;Se--;)Ce[J++]=u[I++];return Ce}function Yy(u,d,x,R){for(var I=-1,z=u.length,G=-1,J=x.length,se=-1,Se=d.length,Ce=Pn(z-J,0),Te=me(Ce+Se),Fe=!R;++I<Ce;)Te[I]=u[I];for(var Qe=I;++se<Se;)Te[Qe+se]=d[se];for(;++G<J;)(Fe||I<z)&&(Te[Qe+x[G]]=u[I++]);return Te}function pr(u,d){var x=-1,R=u.length;for(d||(d=me(R));++x<R;)d[x]=u[x];return d}function ti(u,d,x,R){var I=!x;x||(x={});for(var z=-1,G=d.length;++z<G;){var J=d[z],se=R?R(x[J],u[J],J,x,u):n;se===n&&(se=u[J]),I?ra(x,J,se):Hs(x,J,se)}return x}function Md(u,d){return ti(u,Du(u),d)}function Tu(u,d){return ti(u,Fd(u),d)}function Ks(u,d){return function(x,R){var I=gt(x)?Bx:Ho,z=d?d():{};return I(x,u,nt(R,2),z)}}function Xs(u){return Ot(function(d,x){var R=-1,I=x.length,z=I>1?x[I-1]:n,G=I>2?x[2]:n;for(z=u.length>3&&typeof z=="function"?(I--,z):n,G&&Ur(x[0],x[1],G)&&(z=I<3?n:z,I=1),d=Qt(d);++R<I;){var J=x[R];J&&u(d,J,R,z)}return d})}function _m(u,d){return function(x,R){if(x==null)return x;if(!gr(x))return u(x,R);for(var I=x.length,z=d?I:-1,G=Qt(x);(d?z--:++z<I)&&R(G[z],z,G)!==!1;);return x}}function Zs(u){return function(d,x,R){for(var I=-1,z=Qt(d),G=R(d),J=G.length;J--;){var se=G[u?J:++I];if(x(z[se],se,z)===!1)break}return d}}function qy(u,d,x){var R=d&A,I=zi(u);function z(){var G=this&&this!==nr&&this instanceof z?I:u;return G.apply(R?x:this,arguments)}return z}function vi(u){return function(d){d=dn(d);var x=No(d)?ji(d):n,R=x?x[0]:d.charAt(0),I=x?Go(x,1).join(""):d.slice(1);return R[u]()+I}}function zr(u){return function(d){return zp(y(yo(d).replace(Xc,"")),u,"")}}function zi(u){return function(){var d=arguments;switch(d.length){case 0:return new u;case 1:return new u(d[0]);case 2:return new u(d[0],d[1]);case 3:return new u(d[0],d[1],d[2]);case 4:return new u(d[0],d[1],d[2],d[3]);case 5:return new u(d[0],d[1],d[2],d[3],d[4]);case 6:return new u(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new u(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var x=gi(u.prototype),R=u.apply(x,d);return Vn(R)?R:x}}function Ky(u,d,x){var R=zi(u);function I(){for(var z=arguments.length,G=me(z),J=z,se=Qs(I);J--;)G[J]=arguments[J];var Se=z<3&&G[0]!==se&&G[z-1]!==se?[]:Fo(G,se);if(z-=Se.length,z<x)return Cm(u,d,Xn,I.placeholder,n,G,Se,n,n,x-z);var Ce=this&&this!==nr&&this instanceof I?R:u;return qr(Ce,this,G)}return I}function lo(u){return function(d,x,R){var I=Qt(d);if(!gr(d)){var z=nt(x,3);d=vr(d),x=function(J){return z(I[J],J,I)}}var G=u(d,x,R);return G>-1?I[z?d[G]:G]:n}}function Aa(u){return Nn(function(d){var x=d.length,R=x,I=Zr.prototype.thru;for(u&&d.reverse();R--;){var z=d[R];if(typeof z!="function")throw new mi(l);if(I&&!G&&Mu(z)=="wrapper")var G=new Zr([],!0)}for(R=G?R:x;++R<x;){z=d[R];var J=Mu(z),se=J=="wrapper"?Pd(z):n;se&&zd(se[0])&&se[1]==(B|O|M|H)&&!se[4].length&&se[9]==1?G=G[Mu(se[0])].apply(G,se[3]):G=z.length==1&&zd(z)?G[J]():G.thru(z)}return function(){var Se=arguments,Ce=Se[0];if(G&&Se.length==1&&gt(Ce))return G.plant(Ce).value();for(var Te=0,Fe=x?d[Te].apply(this,Se):Ce;++Te<x;)Fe=d[Te].call(this,Fe);return Fe}})}function Xn(u,d,x,R,I,z,G,J,se,Se){var Ce=d&B,Te=d&A,Fe=d&k,Qe=d&(O|P),dt=d&q,Bt=Fe?n:zi(u);function ht(){for(var qt=arguments.length,tn=me(qt),ca=qt;ca--;)tn[ca]=arguments[ca];if(Qe)var _i=Qs(ht),ua=Gx(tn,_i);if(R&&(tn=Sm(tn,R,I,Qe)),z&&(tn=Yy(tn,z,G,Qe)),qt-=ua,Qe&&qt<Se){var br=Fo(tn,_i);return Cm(u,d,Xn,ht.placeholder,x,tn,br,J,se,Se-qt)}var vo=Te?x:this,rl=Fe?vo[u]:u;return qt=tn.length,J?tn=Oa(tn,J):dt&&qt>1&&tn.reverse(),Ce&&se<qt&&(tn.length=se),this&&this!==nr&&this instanceof ht&&(rl=Bt||zi(rl)),rl.apply(vo,tn)}return ht}function Ru(u,d){return function(x,R){return om(x,u,d(R),{})}}function ic(u,d){return function(x,R){var I;if(x===n&&R===n)return d;if(x!==n&&(I=x),R!==n){if(I===n)return R;typeof x=="string"||typeof R=="string"?(x=ei(x),R=ei(R)):(x=Ad(x),R=Ad(R)),I=u(x,R)}return I}}function Au(u){return Nn(function(d){return d=zn(d,hi(nt())),Ot(function(x){var R=this;return u(d,function(I){return qr(I,R,x)})})})}function ku(u,d){d=d===n?" ":ei(d);var x=d.length;if(x<2)return x?mm(d,u):d;var R=mm(d,Kl(u/Ea(d)));return No(d)?Go(ji(R),0,u).join(""):R.slice(0,u)}function Xy(u,d,x,R){var I=d&A,z=zi(u);function G(){for(var J=-1,se=arguments.length,Se=-1,Ce=R.length,Te=me(Ce+se),Fe=this&&this!==nr&&this instanceof G?z:u;++Se<Ce;)Te[Se]=R[Se];for(;se--;)Te[Se++]=arguments[++J];return qr(Fe,I?x:this,Te)}return G}function Yo(u){return function(d,x,R){return R&&typeof R!="number"&&Ur(d,x,R)&&(x=R=n),d=Ia(d),x===n?(x=d,d=0):x=Ia(x),R=R===n?d<x?1:-1:Ia(R),By(d,x,R,u)}}function Js(u){return function(d,x){return typeof d=="string"&&typeof x=="string"||(d=Vi(d),x=Vi(x)),u(d,x)}}function Cm(u,d,x,R,I,z,G,J,se,Se){var Ce=d&O,Te=Ce?G:n,Fe=Ce?n:G,Qe=Ce?z:n,dt=Ce?n:z;d|=Ce?M:$,d&=~(Ce?$:M),d&L||(d&=-4);var Bt=[u,d,I,Qe,Te,dt,Fe,J,se,Se],ht=x.apply(n,Bt);return zd(u)&&Hd(ht,Bt),ht.placeholder=R,Vd(ht,u,d)}function Dd(u){var d=or[u];return function(x,R){if(x=Vi(x),R=R==null?0:Un(Et(R),292),R&&au(x)){var I=(dn(x)+"e").split("e"),z=d(I[0]+"e"+(+I[1]+R));return I=(dn(z)+"e").split("e"),+(I[0]+"e"+(+I[1]-R))}return d(x)}}var Zy=Wt&&1/ad(new Wt([,-0]))[1]==Q?function(u){return new Wt(u)}:Ge;function Ou(u){return function(d){var x=Er(d);return x==ke?id(d):x==at?Yx(d):Wx(d,u(d))}}function ka(u,d,x,R,I,z,G,J){var se=d&k;if(!se&&typeof u!="function")throw new mi(l);var Se=R?R.length:0;if(Se||(d&=-97,R=I=n),G=G===n?G:Pn(Et(G),0),J=J===n?J:Et(J),Se-=I?I.length:0,d&$){var Ce=R,Te=I;R=I=n}var Fe=se?n:Pd(u),Qe=[u,d,x,R,I,Ce,Te,z,G,J];if(Fe&&Lu(Qe,Fe),u=Qe[0],d=Qe[1],x=Qe[2],R=Qe[3],I=Qe[4],J=Qe[9]=Qe[9]===n?se?0:u.length:Pn(Qe[9]-Se,0),!J&&d&(O|P)&&(d&=-25),!d||d==A)var dt=qy(u,d,x);else d==O||d==P?dt=Ky(u,d,J):(d==M||d==(A|M))&&!I.length?dt=Xy(u,d,x,R):dt=Xn.apply(n,Qe);var Bt=Fe?vu:Hd;return Vd(Bt(dt,Qe),u,d)}function jd(u,d,x,R){return u===n||ai(u,Gl[x])&&!fn.call(R,x)?d:u}function Em(u,d,x,R,I,z){return Vn(u)&&Vn(d)&&(z.set(d,u),yu(u,d,n,Em,z),z.delete(d)),u}function Jy(u){return Hi(u)?n:u}function Qy(u,d,x,R,I,z){var G=x&C,J=u.length,se=d.length;if(J!=se&&!(G&&se>J))return!1;var Se=z.get(u),Ce=z.get(d);if(Se&&Ce)return Se==d&&Ce==u;var Te=-1,Fe=!0,Qe=x&E?new ro:n;for(z.set(u,d),z.set(d,u);++Te<J;){var dt=u[Te],Bt=d[Te];if(R)var ht=G?R(Bt,dt,Te,d,u,z):R(dt,Bt,Te,u,d,z);if(ht!==n){if(ht)continue;Fe=!1;break}if(Qe){if(!Up(d,function(qt,tn){if(!$l(Qe,tn)&&(dt===qt||I(dt,qt,x,R,z)))return Qe.push(tn)})){Fe=!1;break}}else if(!(dt===Bt||I(dt,Bt,x,R,z))){Fe=!1;break}}return z.delete(u),z.delete(d),Fe}function e1(u,d,x,R,I,z,G){switch(x){case ln:if(u.byteLength!=d.byteLength||u.byteOffset!=d.byteOffset)return!1;u=u.buffer,d=d.buffer;case hn:return!(u.byteLength!=d.byteLength||!z(new ql(u),new ql(d)));case Ke:case tt:case De:return ai(+u,+d);case Xe:return u.name==d.name&&u.message==d.message;case Pt:case Pe:return u==d+"";case ke:var J=id;case at:var se=R&C;if(J||(J=ad),u.size!=d.size&&!se)return!1;var Se=G.get(u);if(Se)return Se==d;R|=E,G.set(u,d);var Ce=Qy(J(u),J(d),R,I,z,G);return G.delete(u),Ce;case rn:if(zs)return zs.call(u)==zs.call(d)}return!1}function Cr(u,d,x,R,I,z){var G=x&C,J=Id(u),se=J.length,Se=Id(d),Ce=Se.length;if(se!=Ce&&!G)return!1;for(var Te=se;Te--;){var Fe=J[Te];if(!(G?Fe in d:fn.call(d,Fe)))return!1}var Qe=z.get(u),dt=z.get(d);if(Qe&&dt)return Qe==d&&dt==u;var Bt=!0;z.set(u,d),z.set(d,u);for(var ht=G;++Te<se;){Fe=J[Te];var qt=u[Fe],tn=d[Fe];if(R)var ca=G?R(tn,qt,Fe,d,u,z):R(qt,tn,Fe,u,d,z);if(!(ca===n?qt===tn||I(qt,tn,x,R,z):ca)){Bt=!1;break}ht||(ht=Fe=="constructor")}if(Bt&&!ht){var _i=u.constructor,ua=d.constructor;_i!=ua&&"constructor"in u&&"constructor"in d&&!(typeof _i=="function"&&_i instanceof _i&&typeof ua=="function"&&ua instanceof ua)&&(Bt=!1)}return z.delete(u),z.delete(d),Bt}function Nn(u){return Pu(Om(u,n,ri),u+"")}function Id(u){return jy(u,vr,Du)}function Ld(u){return jy(u,Tr,Fd)}var Pd=Xl?function(u){return Xl.get(u)}:Ge;function Mu(u){for(var d=u.name+"",x=Ni[d],R=fn.call(Ni,d)?x.length:0;R--;){var I=x[R],z=I.func;if(z==null||z==u)return I.name}return d}function Qs(u){var d=fn.call(N,"placeholder")?N:u;return d.placeholder}function nt(){var u=N.iteratee||lt;return u=u===lt?cm:u,arguments.length?u(arguments[0],arguments[1]):u}function ac(u,d){var x=u.__data__;return uo(d)?x[typeof d=="string"?"string":"hash"]:x.map}function Nd(u){for(var d=vr(u),x=d.length;x--;){var R=d[x],I=u[R];d[x]=[R,I,i1(I)]}return d}function qo(u,d){var x=Vp(u,d);return Ra(x)?x:n}function t1(u){var d=fn.call(u,Fr),x=u[Fr];try{u[Fr]=n;var R=!0}catch{}var I=Nr.call(u);return R&&(d?u[Fr]=x:delete u[Fr]),I}var Du=zo?function(u){return u==null?[]:(u=Qt(u),Ca(zo(u),function(d){return Ps.call(u,d)}))}:Bw,Fd=zo?function(u){for(var d=[];u;)eo(d,Du(u)),u=nu(u);return d}:Bw,Er=Yt;(ou&&Er(new ou(new ArrayBuffer(1)))!=ln||hr&&Er(new hr)!=ke||$n&&Er($n.resolve())!=zt||Wt&&Er(new Wt)!=at||na&&Er(new na)!=sn)&&(Er=function(u){var d=Yt(u),x=d==Ze?u.constructor:n,R=x?fo(x):"";if(R)switch(R){case wy:return ln;case Sy:return ke;case su:return zt;case lu:return at;case _y:return sn}return d});function n1(u,d,x){for(var R=-1,I=x.length;++R<I;){var z=x[R],G=z.size;switch(z.type){case"drop":u+=G;break;case"dropRight":d-=G;break;case"take":d=Un(d,u+G);break;case"takeRight":u=Pn(u,d-G);break}}return{start:u,end:d}}function Tm(u){var d=u.match(Os);return d?d[1].split(Gc):[]}function ju(u,d,x){d=so(d,u);for(var R=-1,I=d.length,z=!1;++R<I;){var G=pn(d[R]);if(!(z=u!=null&&x(u,G)))break;u=u[G]}return z||++R!=I?z:(I=u==null?0:u.length,!!I&&nl(I)&&oa(G,I)&&(gt(u)||go(u)))}function Rm(u){var d=u.length,x=new u.constructor(d);return d&&typeof u[0]=="string"&&fn.call(u,"index")&&(x.index=u.index,x.input=u.input),x}function Am(u){return typeof u.constructor=="function"&&!On(u)?gi(nu(u)):{}}function km(u,d,x){var R=u.constructor;switch(d){case hn:return qs(u);case Ke:case tt:return new R(+u);case ln:return xm(u,x);case Vt:case an:case je:case Rt:case Ve:case Ie:case Le:case mt:case cn:return wm(u,x);case ke:return new R;case De:case Pe:return new R(u);case Pt:return Od(u);case at:return new R;case rn:return Wy(u)}}function r1(u,d){var x=d.length;if(!x)return u;var R=x-1;return d[R]=(x>1?"& ":"")+d[R],d=d.join(x>2?", ":" "),u.replace(Za,`{
+/* [wrapped with `+d+`] */
+`)}function co(u){return gt(u)||go(u)||!!(Kr&&u&&u[Kr])}function oa(u,d){var x=typeof u;return d=d??Z,!!d&&(x=="number"||x!="symbol"&&Ms.test(u))&&u>-1&&u%1==0&&u<d}function Ur(u,d,x){if(!Vn(x))return!1;var R=typeof d;return(R=="number"?gr(x)&&oa(d,x.length):R=="string"&&d in x)?ai(x[d],u):!1}function Bd(u,d){if(gt(u))return!1;var x=typeof u;return x=="number"||x=="symbol"||x=="boolean"||u==null||$r(u)?!0:$e.test(u)||!Ff.test(u)||d!=null&&u in Qt(d)}function uo(u){var d=typeof u;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?u!=="__proto__":u===null}function zd(u){var d=Mu(u),x=N[d];if(typeof x!="function"||!(d in Nt.prototype))return!1;if(u===x)return!0;var R=Pd(x);return!!R&&u===R[0]}function Ud(u){return!!Yp&&Yp in u}var Iu=eu?sa:zw;function On(u){var d=u&&u.constructor,x=typeof d=="function"&&d.prototype||Gl;return u===x}function i1(u){return u===u&&!Vn(u)}function a1(u,d){return function(x){return x==null?!1:x[u]===d&&(d!==n||u in Qt(x))}}function o1(u){var d=Gu(u,function(R){return x.size===p&&x.clear(),R}),x=d.cache;return d}function Lu(u,d){var x=u[1],R=d[1],I=x|R,z=I<(A|k|B),G=R==B&&x==O||R==B&&x==H&&u[7].length<=d[8]||R==(B|H)&&d[7].length<=d[8]&&x==O;if(!(z||G))return u;R&A&&(u[2]=d[2],I|=x&A?0:L);var J=d[3];if(J){var se=u[3];u[3]=se?Sm(se,J,d[4]):J,u[4]=se?Fo(u[3],g):d[4]}return J=d[5],J&&(se=u[5],u[5]=se?Yy(se,J,d[6]):J,u[6]=se?Fo(u[5],g):d[6]),J=d[7],J&&(u[7]=J),R&B&&(u[8]=u[8]==null?d[8]:Un(u[8],d[8])),u[9]==null&&(u[9]=d[9]),u[0]=d[0],u[1]=I,u}function Ko(u){var d=[];if(u!=null)for(var x in Qt(u))d.push(x);return d}function s1(u){return Nr.call(u)}function Om(u,d,x){return d=Pn(d===n?u.length-1:d,0),function(){for(var R=arguments,I=-1,z=Pn(R.length-d,0),G=me(z);++I<z;)G[I]=R[d+I];I=-1;for(var J=me(d+1);++I<d;)J[I]=R[I];return J[d]=x(G),qr(u,this,J)}}function oc(u,d){return d.length<2?u:Bi(u,yi(d,0,-1))}function Oa(u,d){for(var x=u.length,R=Un(d.length,x),I=pr(u);R--;){var z=d[R];u[R]=oa(z,x)?I[z]:n}return u}function $d(u,d){if(!(d==="constructor"&&typeof u[d]=="function")&&d!="__proto__")return u[d]}var Hd=Nu(vu),sc=Kp||function(u,d){return nr.setTimeout(u,d)},Pu=Nu(bu);function Vd(u,d,x){var R=d+"";return Pu(u,r1(R,l1(Tm(R),x)))}function Nu(u){var d=0,x=0;return function(){var R=no(),I=ne-(R-x);if(x=R,I>0){if(++d>=K)return arguments[0]}else d=0;return u.apply(n,arguments)}}function Fu(u,d){var x=-1,R=u.length,I=R-1;for(d=d===n?R:d;++x<d;){var z=Ed(x,I),G=u[z];u[z]=u[x],u[x]=G}return u.length=d,u}var Ma=o1(function(u){var d=[];return u.charCodeAt(0)===46&&d.push(""),u.replace(We,function(x,R,I,z){d.push(I?z.replace(kl,"$1"):R||x)}),d});function pn(u){if(typeof u=="string"||$r(u))return u;var d=u+"";return d=="0"&&1/u==-1/0?"-0":d}function fo(u){if(u!=null){try{return tu.call(u)}catch{}try{return u+""}catch{}}return""}function l1(u,d){return Di(Ee,function(x){var R="_."+x[0];d&x[1]&&!Zf(u,R)&&u.push(R)}),u.sort()}function mr(u){if(u instanceof Nt)return u.clone();var d=new Zr(u.__wrapped__,u.__chain__);return d.__actions__=pr(u.__actions__),d.__index__=u.__index__,d.__values__=u.__values__,d}function rw(u,d,x){(x?Ur(u,d,x):d===n)?d=1:d=Pn(Et(d),0);var R=u==null?0:u.length;if(!R||d<1)return[];for(var I=0,z=0,G=me(Kl(R/d));I<R;)G[z++]=yi(u,I,I+=d);return G}function c1(u){for(var d=-1,x=u==null?0:u.length,R=0,I=[];++d<x;){var z=u[d];z&&(I[R++]=z)}return I}function u1(){var u=arguments.length;if(!u)return[];for(var d=me(u-1),x=arguments[0],R=u;R--;)d[R-1]=arguments[R];return eo(gt(x)?pr(x):[x],Gt(d,1))}var Hn=Ot(function(u,d){return Jn(u)?Vo(u,Gt(d,1,Jn,!0)):[]}),ni=Ot(function(u,d){var x=Ir(d);return Jn(x)&&(x=n),Jn(u)?Vo(u,Gt(d,1,Jn,!0),nt(x,2)):[]}),ho=Ot(function(u,d){var x=Ir(d);return Jn(x)&&(x=n),Jn(u)?Vo(u,Gt(d,1,Jn,!0),n,x):[]});function f1(u,d,x){var R=u==null?0:u.length;return R?(d=x||d===n?1:Et(d),yi(u,d<0?0:d,R)):[]}function d1(u,d,x){var R=u==null?0:u.length;return R?(d=x||d===n?1:Et(d),d=R-d,yi(u,0,d<0?0:d)):[]}function iw(u,d){return u&&u.length?Su(u,nt(d,3),!0,!0):[]}function Mm(u,d){return u&&u.length?Su(u,nt(d,3),!0):[]}function bi(u,d,x,R){var I=u==null?0:u.length;return I?(x&&typeof x!="number"&&Ur(u,d,x)&&(x=0,R=I),Dt(u,d,x,R)):[]}function Ui(u,d,x){var R=u==null?0:u.length;if(!R)return-1;var I=x==null?0:Et(x);return I<0&&(I=Pn(R+I,0)),Jf(u,nt(d,3),I)}function Dm(u,d,x){var R=u==null?0:u.length;if(!R)return-1;var I=R-1;return x!==n&&(I=Et(x),I=x<0?Pn(R+I,0):Un(I,R-1)),Jf(u,nt(d,3),I,!0)}function ri(u){var d=u==null?0:u.length;return d?Gt(u,1):[]}function h1(u){var d=u==null?0:u.length;return d?Gt(u,Q):[]}function Xo(u,d){var x=u==null?0:u.length;return x?(d=d===n?1:Et(d),Gt(u,d)):[]}function el(u){for(var d=-1,x=u==null?0:u.length,R={};++d<x;){var I=u[d];R[I[0]]=I[1]}return R}function po(u){return u&&u.length?u[0]:n}function jm(u,d,x){var R=u==null?0:u.length;if(!R)return-1;var I=x==null?0:Et(x);return I<0&&(I=Pn(R+I,0)),zl(u,d,I)}function Im(u){var d=u==null?0:u.length;return d?yi(u,0,-1):[]}var Da=Ot(function(u){var d=zn(u,kd);return d.length&&d[0]===u[0]?am(d):[]}),p1=Ot(function(u){var d=Ir(u),x=zn(u,kd);return d===Ir(x)?d=n:x.pop(),x.length&&x[0]===u[0]?am(x,nt(d,2)):[]}),lc=Ot(function(u){var d=Ir(u),x=zn(u,kd);return d=typeof d=="function"?d:n,d&&x.pop(),x.length&&x[0]===u[0]?am(x,n,d):[]});function Bu(u,d){return u==null?"":Li.call(u,d)}function Ir(u){var d=u==null?0:u.length;return d?u[d-1]:n}function cc(u,d,x){var R=u==null?0:u.length;if(!R)return-1;var I=R;return x!==n&&(I=Et(x),I=I<0?Pn(R+I,0):Un(I,R-1)),d===d?pi(u,d,I):Jf(u,Ul,I,!0)}function m1(u,d){return u&&u.length?dm(u,Et(d)):n}var g1=Ot(uc);function uc(u,d){return u&&u.length&&d&&d.length?Cd(u,d):u}function y1(u,d,x){return u&&u.length&&d&&d.length?Cd(u,d,nt(x,2)):u}function Wd(u,d,x){return u&&u.length&&d&&d.length?Cd(u,d,n,x):u}var v1=Nn(function(u,d){var x=u==null?0:u.length,R=hu(u,d);return pm(u,zn(d,function(I){return oa(I,x)?+I:I}).sort(Eu)),R});function aw(u,d){var x=[];if(!(u&&u.length))return x;var R=-1,I=[],z=u.length;for(d=nt(d,3);++R<z;){var G=u[R];d(G,R,u)&&(x.push(G),I.push(R))}return pm(u,I),x}function Lm(u){return u==null?u:Zp.call(u)}function bn(u,d,x){var R=u==null?0:u.length;return R?(x&&typeof x!="number"&&Ur(u,d,x)?(d=0,x=R):(d=d==null?0:Et(d),x=x===n?R:Et(x)),yi(u,d,x)):[]}function jn(u,d){return xu(u,d)}function Ut(u,d,x){return Rd(u,d,nt(x,2))}function Xt(u,d){var x=u==null?0:u.length;if(x){var R=xu(u,d);if(R<x&&ai(u[R],d))return R}return-1}function xn(u,d){return xu(u,d,!0)}function xi(u,d,x){return Rd(u,d,nt(x,2),!0)}function Zo(u,d){var x=u==null?0:u.length;if(x){var R=xu(u,d,!0)-1;if(ai(u[R],d))return R}return-1}function fc(u){return u&&u.length?gm(u):[]}function Pm(u,d){return u&&u.length?gm(u,nt(d,2)):[]}function mo(u){var d=u==null?0:u.length;return d?yi(u,1,d):[]}function Zn(u,d,x){return u&&u.length?(d=x||d===n?1:Et(d),yi(u,0,d<0?0:d)):[]}function Jo(u,d,x){var R=u==null?0:u.length;return R?(d=x||d===n?1:Et(d),d=R-d,yi(u,d<0?0:d,R)):[]}function tl(u,d){return u&&u.length?Su(u,nt(d,3),!1,!0):[]}function Nm(u,d){return u&&u.length?Su(u,nt(d,3)):[]}var $i=Ot(function(u){return oo(Gt(u,1,Jn,!0))}),dc=Ot(function(u){var d=Ir(u);return Jn(d)&&(d=n),oo(Gt(u,1,Jn,!0),nt(d,2))}),zu=Ot(function(u){var d=Ir(u);return d=typeof d=="function"?d:n,oo(Gt(u,1,Jn,!0),n,d)});function ii(u){return u&&u.length?oo(u):[]}function Fm(u,d){return u&&u.length?oo(u,nt(d,2)):[]}function Bm(u,d){return d=typeof d=="function"?d:n,u&&u.length?oo(u,n,d):[]}function hc(u){if(!(u&&u.length))return[];var d=0;return u=Ca(u,function(x){if(Jn(x))return d=Pn(x.length,d),!0}),Po(d,function(x){return zn(u,Qf(x))})}function Uu(u,d){if(!(u&&u.length))return[];var x=hc(u);return d==null?x:zn(x,function(R){return qr(d,n,R)})}var Qo=Ot(function(u,d){return Jn(u)?Vo(u,d):[]}),kr=Ot(function(u){return _u(Ca(u,Jn))}),es=Ot(function(u){var d=Ir(u);return Jn(d)&&(d=n),_u(Ca(u,Jn),nt(d,2))}),pc=Ot(function(u){var d=Ir(u);return d=typeof d=="function"?d:n,_u(Ca(u,Jn),n,d)}),mc=Ot(hc);function zm(u,d){return vm(u||[],d||[],Hs)}function Um(u,d){return vm(u||[],d||[],rc)}var b1=Ot(function(u){var d=u.length,x=d>1?u[d-1]:n;return x=typeof x=="function"?(u.pop(),x):n,Uu(u,x)});function gc(u){var d=N(u);return d.__chain__=!0,d}function $m(u,d){return d(u),u}function Lr(u,d){return d(u)}var x1=Nn(function(u){var d=u.length,x=d?u[0]:0,R=this.__wrapped__,I=function(z){return hu(z,u)};return d>1||this.__actions__.length||!(R instanceof Nt)||!oa(x)?this.thru(I):(R=R.slice(x,+x+(d?1:0)),R.__actions__.push({func:Lr,args:[I],thisArg:n}),new Zr(R,this.__chain__).thru(function(z){return d&&!z.length&&z.push(n),z}))});function wi(){return gc(this)}function w1(){return new Zr(this.value(),this.__chain__)}function S1(){this.__values__===n&&(this.__values__=Si(this.value()));var u=this.__index__>=this.__values__.length,d=u?n:this.__values__[this.__index__++];return{done:u,value:d}}function ow(){return this}function ts(u){for(var d,x=this;x instanceof Fi;){var R=mr(x);R.__index__=0,R.__values__=n,d?I.__wrapped__=R:d=R;var I=R;x=x.__wrapped__}return I.__wrapped__=u,d}function Gd(){var u=this.__wrapped__;if(u instanceof Nt){var d=u;return this.__actions__.length&&(d=new Nt(this)),d=d.reverse(),d.__actions__.push({func:Lr,args:[Lm],thisArg:n}),new Zr(d,this.__chain__)}return this.thru(Lm)}function Hm(){return $y(this.__wrapped__,this.__actions__)}var yc=Ks(function(u,d,x){fn.call(u,x)?++u[x]:ra(u,x,1)});function _1(u,d,x){var R=gt(u)?ly:rm;return x&&Ur(u,d,x)&&(d=n),R(u,nt(d,3))}function C1(u,d){var x=gt(u)?Ca:vn;return x(u,nt(d,3))}var E1=lo(Ui),Vm=lo(Dm);function Wm(u,d){return Gt($u(u,d),1)}function sw(u,d){return Gt($u(u,d),Q)}function lw(u,d,x){return x=x===n?1:Et(x),Gt($u(u,d),x)}function T1(u,d){var x=gt(u)?Di:ao;return x(u,nt(d,3))}function Gm(u,d){var x=gt(u)?zx:gd;return x(u,nt(d,3))}var R1=Ks(function(u,d,x){fn.call(u,x)?u[x].push(d):ra(u,x,[d])});function vc(u,d,x,R){u=gr(u)?u:Ec(u),x=x&&!R?Et(x):0;var I=u.length;return x<0&&(x=Pn(I+x,0)),ih(u)?x<=I&&u.indexOf(d,x)>-1:!!I&&zl(u,d,x)>-1}var Yd=Ot(function(u,d,x){var R=-1,I=typeof d=="function",z=gr(u)?me(u.length):[];return ao(u,function(G){z[++R]=I?qr(d,G,x):Gs(G,d,x)}),z}),A1=Ks(function(u,d,x){ra(u,x,d)});function $u(u,d){var x=gt(u)?zn:um;return x(u,nt(d,3))}function k1(u,d,x,R){return u==null?[]:(gt(d)||(d=d==null?[]:[d]),x=R?n:x,gt(x)||(x=x==null?[]:[x]),hm(u,d,x))}var O1=Ks(function(u,d,x){u[x?0:1].push(d)},function(){return[[],[]]});function M1(u,d,x){var R=gt(u)?zp:Hp,I=arguments.length<3;return R(u,nt(d,4),x,I,ao)}function D1(u,d,x){var R=gt(u)?Ux:Hp,I=arguments.length<3;return R(u,nt(d,4),x,I,gd)}function qd(u,d){var x=gt(u)?Ca:vn;return x(u,Yu(nt(d,3)))}function j1(u){var d=gt(u)?Jl:nc;return d(u)}function I1(u,d,x){(x?Ur(u,d,x):d===n)?d=1:d=Et(d);var R=gt(u)?Oy:Td;return R(u,d)}function Mn(u){var d=gt(u)?My:zy;return d(u)}function Ym(u){if(u==null)return 0;if(gr(u))return ih(u)?Ea(u):u.length;var d=Er(u);return d==ke||d==at?u.size:xd(u).length}function cw(u,d,x){var R=gt(u)?Up:Uy;return x&&Ur(u,d,x)&&(d=n),R(u,nt(d,3))}var L1=Ot(function(u,d){if(u==null)return[];var x=d.length;return x>1&&Ur(u,d[0],d[1])?d=[]:x>2&&Ur(d[0],d[1],d[2])&&(d=[d[0]]),hm(u,Gt(d,1),[])}),Kd=Fs||function(){return nr.Date.now()};function uw(u,d){if(typeof d!="function")throw new mi(l);return u=Et(u),function(){if(--u<1)return d.apply(this,arguments)}}function P1(u,d,x){return d=x?n:d,d=u&&d==null?u.length:d,ka(u,B,n,n,n,n,d)}function Hu(u,d){var x;if(typeof d!="function")throw new mi(l);return u=Et(u),function(){return--u>0&&(x=d.apply(this,arguments)),u<=1&&(d=n),x}}var ns=Ot(function(u,d,x){var R=A;if(x.length){var I=Fo(x,Qs(ns));R|=M}return ka(u,R,d,x,I)}),Xd=Ot(function(u,d,x){var R=A|k;if(x.length){var I=Fo(x,Qs(Xd));R|=M}return ka(d,R,u,x,I)});function Vu(u,d,x){d=x?n:d;var R=ka(u,O,n,n,n,n,n,d);return R.placeholder=Vu.placeholder,R}function Zd(u,d,x){d=x?n:d;var R=ka(u,P,n,n,n,n,n,d);return R.placeholder=Zd.placeholder,R}function rs(u,d,x){var R,I,z,G,J,se,Se=0,Ce=!1,Te=!1,Fe=!0;if(typeof u!="function")throw new mi(l);d=Vi(d)||0,Vn(x)&&(Ce=!!x.leading,Te="maxWait"in x,z=Te?Pn(Vi(x.maxWait)||0,d):z,Fe="trailing"in x?!!x.trailing:Fe);function Qe(br){var vo=R,rl=I;return R=I=n,Se=br,G=u.apply(rl,vo),G}function dt(br){return Se=br,J=sc(qt,d),Ce?Qe(br):G}function Bt(br){var vo=br-se,rl=br-Se,BC=d-vo;return Te?Un(BC,z-rl):BC}function ht(br){var vo=br-se,rl=br-Se;return se===n||vo>=d||vo<0||Te&&rl>=z}function qt(){var br=Kd();if(ht(br))return tn(br);J=sc(qt,Bt(br))}function tn(br){return J=n,Fe&&R?Qe(br):(R=I=n,G)}function ca(){J!==n&&Vy(J),Se=0,R=se=I=J=n}function _i(){return J===n?G:tn(Kd())}function ua(){var br=Kd(),vo=ht(br);if(R=arguments,I=this,se=br,vo){if(J===n)return dt(se);if(Te)return Vy(J),J=sc(qt,d),Qe(se)}return J===n&&(J=sc(qt,d)),G}return ua.cancel=ca,ua.flush=_i,ua}var ja=Ot(function(u,d){return Vs(u,1,d)}),Wu=Ot(function(u,d,x){return Vs(u,Vi(d)||0,x)});function fw(u){return ka(u,q)}function Gu(u,d){if(typeof u!="function"||d!=null&&typeof d!="function")throw new mi(l);var x=function(){var R=arguments,I=d?d.apply(this,R):R[0],z=x.cache;if(z.has(I))return z.get(I);var G=u.apply(this,R);return x.cache=z.set(I,G)||z,G};return x.cache=new(Gu.Cache||Jr),x}Gu.Cache=Jr;function Yu(u){if(typeof u!="function")throw new mi(l);return function(){var d=arguments;switch(d.length){case 0:return!u.call(this);case 1:return!u.call(this,d[0]);case 2:return!u.call(this,d[0],d[1]);case 3:return!u.call(this,d[0],d[1],d[2])}return!u.apply(this,d)}}function N1(u){return Hu(2,u)}var F1=Hy(function(u,d){d=d.length==1&&gt(d[0])?zn(d[0],hi(nt())):zn(Gt(d,1),hi(nt()));var x=d.length;return Ot(function(R){for(var I=-1,z=Un(R.length,x);++I<z;)R[I]=d[I].call(this,R[I]);return qr(u,this,R)})}),qm=Ot(function(u,d){var x=Fo(d,Qs(qm));return ka(u,M,n,d,x)}),Jd=Ot(function(u,d){var x=Fo(d,Qs(Jd));return ka(u,$,n,d,x)}),B1=Nn(function(u,d){return ka(u,H,n,n,n,d)});function z1(u,d){if(typeof u!="function")throw new mi(l);return d=d===n?d:Et(d),Ot(u,d)}function dw(u,d){if(typeof u!="function")throw new mi(l);return d=d==null?0:Pn(Et(d),0),Ot(function(x){var R=x[d],I=Go(x,0,d);return R&&eo(I,R),qr(u,this,I)})}function Km(u,d,x){var R=!0,I=!0;if(typeof u!="function")throw new mi(l);return Vn(x)&&(R="leading"in x?!!x.leading:R,I="trailing"in x?!!x.trailing:I),rs(u,d,{leading:R,maxWait:d,trailing:I})}function Xm(u){return P1(u,1)}function hw(u,d){return qm(Cu(d),u)}function pw(){if(!arguments.length)return[];var u=arguments[0];return gt(u)?u:[u]}function qu(u){return Dr(u,T)}function mw(u,d){return d=typeof d=="function"?d:n,Dr(u,T,d)}function U1(u){return Dr(u,b|T)}function $t(u,d){return d=typeof d=="function"?d:n,Dr(u,b|T,d)}function Zm(u,d){return d==null||nm(u,d,vr(d))}function ai(u,d){return u===d||u!==u&&d!==d}var Jm=Js(pu),$1=Js(function(u,d){return u>=d}),go=yd(function(){return arguments}())?yd:function(u){return Wn(u)&&fn.call(u,"callee")&&!Ps.call(u,"callee")},gt=me.isArray,Qd=Xf?hi(Xf):Qr;function gr(u){return u!=null&&nl(u.length)&&!sa(u)}function Jn(u){return Wn(u)&&gr(u)}function gw(u){return u===!0||u===!1||Wn(u)&&Yt(u)==Ke}var is=ud||zw,H1=ry?hi(ry):sr;function V1(u){return Wn(u)&&u.nodeType===1&&!Hi(u)}function eh(u){if(u==null)return!0;if(gr(u)&&(gt(u)||typeof u=="string"||typeof u.splice=="function"||is(u)||bc(u)||go(u)))return!u.length;var d=Er(u);if(d==ke||d==at)return!u.size;if(On(u))return!xd(u).length;for(var x in u)if(fn.call(u,x))return!1;return!0}function En(u,d){return Ys(u,d)}function Qm(u,d,x){x=typeof x=="function"?x:n;var R=x?x(u,d):n;return R===n?Ys(u,d,n,x):!!R}function yr(u){if(!Wn(u))return!1;var d=Yt(u);return d==Xe||d==Be||typeof u.message=="string"&&typeof u.name=="string"&&!Hi(u)}function yw(u){return typeof u=="number"&&au(u)}function sa(u){if(!Vn(u))return!1;var d=Yt(u);return d==He||d==Je||d==rt||d==ft}function th(u){return typeof u=="number"&&u==Et(u)}function nl(u){return typeof u=="number"&&u>-1&&u%1==0&&u<=Z}function Vn(u){var d=typeof u;return u!=null&&(d=="object"||d=="function")}function Wn(u){return u!=null&&typeof u=="object"}var nh=iy?hi(iy):vd;function e0(u,d){return u===d||gu(u,d,Nd(d))}function vw(u,d,x){return x=typeof x=="function"?x:n,gu(u,d,Nd(d),x)}function W1(u){return Y1(u)&&u!=+u}function bw(u){if(Iu(u))throw new ut(s);return Ra(u)}function G1(u){return u===null}function xw(u){return u==null}function Y1(u){return typeof u=="number"||Wn(u)&&Yt(u)==De}function Hi(u){if(!Wn(u)||Yt(u)!=Ze)return!1;var d=nu(u);if(d===null)return!0;var x=fn.call(d,"constructor")&&d.constructor;return typeof x=="function"&&x instanceof x&&tu.call(x)==Ii}var rh=ay?hi(ay):bd;function t0(u){return th(u)&&u>=-9007199254740991&&u<=Z}var q1=oy?hi(oy):sm;function ih(u){return typeof u=="string"||!gt(u)&&Wn(u)&&Yt(u)==Pe}function $r(u){return typeof u=="symbol"||Wn(u)&&Yt(u)==rn}var bc=sy?hi(sy):lm;function la(u){return u===n}function n0(u){return Wn(u)&&Er(u)==sn}function K1(u){return Wn(u)&&Yt(u)==_n}var X1=Js(wd),Ku=Js(function(u,d){return u<=d});function Si(u){if(!u)return[];if(gr(u))return ih(u)?ji(u):pr(u);if(Ns&&u[Ns])return gy(u[Ns]());var d=Er(u),x=d==ke?id:d==at?ad:Ec;return x(u)}function Ia(u){if(!u)return u===0?u:0;if(u=Vi(u),u===Q||u===-1/0){var d=u<0?-1:1;return d*ae}return u===u?u:0}function Et(u){var d=Ia(u),x=d%1;return d===d?x?d-x:d:0}function La(u){return u?ia(Et(u),0,W):0}function Vi(u){if(typeof u=="number")return u;if($r(u))return U;if(Vn(u)){var d=typeof u.valueOf=="function"?u.valueOf():u;u=Vn(d)?d+"":d}if(typeof u!="string")return u===0?u:+u;u=dy(u);var x=_r.test(u);return x||qg.test(u)?Fx(u.slice(2),x?2:8):Dl.test(u)?U:+u}function Z1(u){return ti(u,Tr(u))}function xc(u){return u?ia(Et(u),-9007199254740991,Z):u===0?u:0}function dn(u){return u==null?"":ei(u)}var ww=Xs(function(u,d){if(On(d)||gr(d)){ti(d,vr(d),u);return}for(var x in d)fn.call(d,x)&&Hs(u,x,d[x])}),J1=Xs(function(u,d){ti(d,Tr(d),u)}),ah=Xs(function(u,d,x,R){ti(d,Tr(d),u,R)}),Sw=Xs(function(u,d,x,R){ti(d,vr(d),u,R)}),_w=Nn(hu);function Cw(u,d){var x=gi(u);return d==null?x:io(x,d)}var Ew=Ot(function(u,d){u=Qt(u);var x=-1,R=d.length,I=R>2?d[2]:n;for(I&&Ur(d[0],d[1],I)&&(R=1);++x<R;)for(var z=d[x],G=Tr(z),J=-1,se=G.length;++J<se;){var Se=G[J],Ce=u[Se];(Ce===n||ai(Ce,Gl[Se])&&!fn.call(u,Se))&&(u[Se]=z[Se])}return u}),Q1=Ot(function(u){return u.push(n,Em),qr(Qu,n,u)});function wc(u,d){return cy(u,nt(d,3),jr)}function Xu(u,d){return cy(u,nt(d,3),tc)}function ev(u,d){return u==null?u:ec(u,nt(d,3),Tr)}function Tw(u,d){return u==null?u:Ws(u,nt(d,3),Tr)}function Sc(u,d){return u&&jr(u,nt(d,3))}function Zu(u,d){return u&&tc(u,nt(d,3))}function tv(u){return u==null?[]:Wo(u,vr(u))}function oh(u){return u==null?[]:Wo(u,Tr(u))}function Ju(u,d,x){var R=u==null?n:Bi(u,d);return R===n?x:R}function r0(u,d){return u!=null&&ju(u,d,im)}function _c(u,d){return u!=null&&ju(u,d,Iy)}var nv=Ru(function(u,d,x){d!=null&&typeof d.toString!="function"&&(d=Nr.call(d)),u[d]=x},fe(he)),rv=Ru(function(u,d,x){d!=null&&typeof d.toString!="function"&&(d=Nr.call(d)),fn.call(u,d)?u[d].push(x):u[d]=[x]},nt),Rw=Ot(Gs);function vr(u){return gr(u)?tm(u):xd(u)}function Tr(u){return gr(u)?tm(u,!0):Py(u)}function Aw(u,d){var x={};return d=nt(d,3),jr(u,function(R,I,z){ra(x,d(R,I,z),R)}),x}function kw(u,d){var x={};return d=nt(d,3),jr(u,function(R,I,z){ra(x,I,d(R,I,z))}),x}var Ow=Xs(function(u,d,x){yu(u,d,x)}),Qu=Xs(function(u,d,x,R){yu(u,d,x,R)}),sh=Nn(function(u,d){var x={};if(u==null)return x;var R=!1;d=zn(d,function(z){return z=so(z,u),R||(R=z.length>1),z}),ti(u,Ld(u),x),R&&(x=Dr(x,b|S|T,Jy));for(var I=d.length;I--;)wu(x,d[I]);return x});function i0(u,d){return Cc(u,Yu(nt(d)))}var Mw=Nn(function(u,d){return u==null?{}:Ny(u,d)});function Cc(u,d){if(u==null)return{};var x=zn(Ld(u),function(R){return[R]});return d=nt(d),_d(u,x,function(R,I){return d(R,I[0])})}function Dw(u,d,x){d=so(d,u);var R=-1,I=d.length;for(I||(I=1,u=n);++R<I;){var z=u==null?n:u[pn(d[R])];z===n&&(R=I,z=x),u=sa(z)?z.call(u):z}return u}function iv(u,d,x){return u==null?u:rc(u,d,x)}function av(u,d,x,R){return R=typeof R=="function"?R:n,u==null?u:rc(u,d,x,R)}var a0=Ou(vr),o0=Ou(Tr);function s0(u,d,x){var R=gt(u),I=R||is(u)||bc(u);if(d=nt(d,4),x==null){var z=u&&u.constructor;I?x=R?new z:[]:Vn(u)?x=sa(z)?gi(nu(u)):{}:x={}}return(I?Di:jr)(u,function(G,J,se){return d(x,G,J,se)}),x}function ov(u,d){return u==null?!0:wu(u,d)}function lh(u,d,x){return u==null?u:ym(u,d,Cu(x))}function jw(u,d,x,R){return R=typeof R=="function"?R:n,u==null?u:ym(u,d,Cu(x),R)}function Ec(u){return u==null?[]:nd(u,vr(u))}function l0(u){return u==null?[]:nd(u,Tr(u))}function c0(u,d,x){return x===n&&(x=d,d=n),x!==n&&(x=Vi(x),x=x===x?x:0),d!==n&&(d=Vi(d),d=d===d?d:0),ia(Vi(u),d,x)}function ch(u,d,x){return d=Ia(d),x===n?(x=d,d=0):x=Ia(x),u=Vi(u),Ly(u,d,x)}function u0(u,d,x){if(x&&typeof x!="boolean"&&Ur(u,d,x)&&(d=x=n),x===n&&(typeof d=="boolean"?(x=d,d=n):typeof u=="boolean"&&(x=u,u=n)),u===n&&d===n?(u=0,d=1):(u=Ia(u),d===n?(d=u,u=0):d=Ia(d)),u>d){var R=u;u=d,d=R}if(x||u%1||d%1){var I=Xp();return Un(u+I*(d-u+Qc("1e-"+((I+"").length-1))),d)}return Ed(u,d)}var sv=zr(function(u,d,x){return d=d.toLowerCase(),u+(x?uh(d):d)});function uh(u){return h(dn(u).toLowerCase())}function yo(u){return u=dn(u),u&&u.replace(jl,rd).replace(Qa,"")}function as(u,d,x){u=dn(u),d=ei(d);var R=u.length;x=x===n?R:ia(Et(x),0,R);var I=x;return x-=d.length,x>=0&&u.slice(x,I)==d}function os(u){return u=dn(u),u&&Pf.test(u)?u.replace(Sa,hy):u}function ef(u){return u=dn(u),u&&vt.test(u)?u.replace(ot,"\\$&"):u}var tf=zr(function(u,d,x){return u+(x?"-":"")+d.toLowerCase()}),ss=zr(function(u,d,x){return u+(x?" ":"")+d.toLowerCase()}),Iw=vi("toLowerCase");function lv(u,d,x){u=dn(u),d=Et(d);var R=d?Ea(u):0;if(!d||R>=d)return u;var I=(d-R)/2;return ku(to(I),x)+u+ku(Kl(I),x)}function nf(u,d,x){u=dn(u),d=Et(d);var R=d?Ea(u):0;return d&&R<d?u+ku(d-R,x):u}function Lw(u,d,x){u=dn(u),d=Et(d);var R=d?Ea(u):0;return d&&R<d?ku(d-R,x)+u:u}function cv(u,d,x){return x||d==null?d=0:d&&(d=+d),Bs(dn(u).replace(un,""),d||0)}function fh(u,d,x){return(x?Ur(u,d,x):d===n)?d=1:d=Et(d),mm(dn(u),d)}function uv(){var u=arguments,d=dn(u[0]);return u.length<3?d:d.replace(u[1],u[2])}var Pw=zr(function(u,d,x){return u+(x?"_":"")+d.toLowerCase()});function dh(u,d,x){return x&&typeof x!="number"&&Ur(u,d,x)&&(d=x=n),x=x===n?W:x>>>0,x?(u=dn(u),u&&(typeof d=="string"||d!=null&&!rh(d))&&(d=ei(d),!d&&No(u))?Go(ji(u),0,x):u.split(d,x)):[]}var hh=zr(function(u,d,x){return u+(x?" ":"")+h(d)});function fv(u,d,x){return u=dn(u),x=x==null?0:ia(Et(x),0,u.length),d=ei(d),u.slice(x,x+d.length)==d}function rf(u,d,x){var R=N.templateSettings;x&&Ur(u,d,x)&&(d=n),u=dn(u),d=ah({},d,R,jd);var I=ah({},d.imports,R.imports,jd),z=vr(I),G=nd(I,z),J,se,Se=0,Ce=d.interpolate||Bf,Te="__p += '",Fe=od((d.escape||Bf).source+"|"+Ce.source+"|"+(Ce===Al?Ol:Bf).source+"|"+(d.evaluate||Bf).source+"|$","g"),Qe="//# sourceURL="+(fn.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ey+"]")+`
+`;u.replace(Fe,function(ht,qt,tn,ca,_i,ua){return tn||(tn=ca),Te+=u.slice(Se,ua).replace(Kg,py),qt&&(J=!0,Te+=`' +
+__e(`+qt+`) +
+'`),_i&&(se=!0,Te+=`';
+`+_i+`;
+__p += '`),tn&&(Te+=`' +
+((__t = (`+tn+`)) == null ? '' : __t) +
+'`),Se=ua+ht.length,ht}),Te+=`';
+`;var dt=fn.call(d,"variable")&&d.variable;if(!dt)Te=`with (obj) {
+`+Te+`
+}
+`;else if(xp.test(dt))throw new ut(f);Te=(se?Te.replace(Qi,""):Te).replace(wa,"$1").replace(Lf,"$1;"),Te="function("+(dt||"obj")+`) {
+`+(dt?"":`obj || (obj = {});
+`)+"var __t, __p = ''"+(J?", __e = _.escape":"")+(se?`, __j = Array.prototype.join;
+function print() { __p += __j.call(arguments, '') }
+`:`;
+`)+Te+`return __p
+}`;var Bt=w(function(){return Jt(z,Qe+"return "+Te).apply(n,G)});if(Bt.source=Te,yr(Bt))throw Bt;return Bt}function f0(u){return dn(u).toLowerCase()}function ph(u){return dn(u).toUpperCase()}function dv(u,d,x){if(u=dn(u),u&&(x||d===n))return dy(u);if(!u||!(d=ei(d)))return u;var R=ji(u),I=ji(d),z=Hl(R,I),G=Vl(R,I)+1;return Go(R,z,G).join("")}function Nw(u,d,x){if(u=dn(u),u&&(x||d===n))return u.slice(0,Wp(u)+1);if(!u||!(d=ei(d)))return u;var R=ji(u),I=Vl(R,ji(d))+1;return Go(R,0,I).join("")}function mh(u,d,x){if(u=dn(u),u&&(x||d===n))return u.replace(un,"");if(!u||!(d=ei(d)))return u;var R=ji(u),I=Hl(R,ji(d));return Go(R,I).join("")}function i(u,d){var x=j,R=X;if(Vn(d)){var I="separator"in d?d.separator:I;x="length"in d?Et(d.length):x,R="omission"in d?ei(d.omission):R}u=dn(u);var z=u.length;if(No(u)){var G=ji(u);z=G.length}if(x>=z)return u;var J=x-Ea(R);if(J<1)return R;var se=G?Go(G,0,J).join(""):u.slice(0,J);if(I===n)return se+R;if(G&&(J+=se.length-J),rh(I)){if(u.slice(J).search(I)){var Se,Ce=se;for(I.global||(I=od(I.source,dn(Ml.exec(I))+"g")),I.lastIndex=0;Se=I.exec(Ce);)var Te=Se.index;se=se.slice(0,Te===n?J:Te)}}else if(u.indexOf(ei(I),J)!=J){var Fe=se.lastIndexOf(I);Fe>-1&&(se=se.slice(0,Fe))}return se+R}function o(u){return u=dn(u),u&&bp.test(u)?u.replace(Rl,vy):u}var c=zr(function(u,d,x){return u+(x?" ":"")+d.toUpperCase()}),h=vi("toUpperCase");function y(u,d,x){return u=dn(u),d=x?n:d,d===n?my(u)?Kx(u):Vx(u):u.match(d)||[]}var w=Ot(function(u,d){try{return qr(u,n,d)}catch(x){return yr(x)?x:new ut(x)}}),D=Nn(function(u,d){return Di(d,function(x){x=pn(x),ra(u,x,ns(u[x],u))}),u});function F(u){var d=u==null?0:u.length,x=nt();return u=d?zn(u,function(R){if(typeof R[1]!="function")throw new mi(l);return[x(R[0]),R[1]]}):[],Ot(function(R){for(var I=-1;++I<d;){var z=u[I];if(qr(z[0],this,R))return qr(z[1],this,R)}})}function Y(u){return Dy(Dr(u,b))}function fe(u){return function(){return u}}function be(u,d){return u==null||u!==u?d:u}var _e=Aa(),pe=Aa(!0);function he(u){return u}function lt(u){return cm(typeof u=="function"?u:Dr(u,b))}function st(u){return fm(Dr(u,b))}function Tn(u,d){return Sd(u,Dr(d,b))}var ie=Ot(function(u,d){return function(x){return Gs(x,u,d)}}),ee=Ot(function(u,d){return function(x){return Gs(u,x,d)}});function ue(u,d,x){var R=vr(d),I=Wo(d,R);x==null&&!(Vn(d)&&(I.length||!R.length))&&(x=d,d=u,u=this,I=Wo(d,vr(d)));var z=!(Vn(x)&&"chain"in x)||!!x.chain,G=sa(u);return Di(I,function(J){var se=d[J];u[J]=se,G&&(u.prototype[J]=function(){var Se=this.__chain__;if(z||Se){var Ce=u(this.__wrapped__),Te=Ce.__actions__=pr(this.__actions__);return Te.push({func:se,args:arguments,thisArg:u}),Ce.__chain__=Se,Ce}return se.apply(u,eo([this.value()],arguments))})}),u}function we(){return nr._===this&&(nr._=Yl),this}function Ge(){}function Ft(u){return u=Et(u),Ot(function(d){return dm(d,u)})}var et=Au(zn),ct=Au(ly),Rr=Au(Up);function en(u){return Bd(u)?Qf(pn(u)):Fy(u)}function ls(u){return function(d){return u==null?n:Bi(u,d)}}var Fw=Yo(),Xk=Yo(!0);function Bw(){return[]}function zw(){return!1}function Zk(){return{}}function Jk(){return""}function Qk(){return!0}function eO(u,d){if(u=Et(u),u<1||u>Z)return[];var x=W,R=Un(u,W);d=nt(d),u-=W;for(var I=Po(R,d);++x<u;)d(x);return I}function tO(u){return gt(u)?zn(u,pn):$r(u)?[u]:pr(Ma(dn(u)))}function nO(u){var d=++ea;return dn(u)+d}var rO=ic(function(u,d){return u+d},0),iO=Dd("ceil"),aO=ic(function(u,d){return u/d},1),oO=Dd("floor");function sO(u){return u&&u.length?aa(u,he,pu):n}function lO(u,d){return u&&u.length?aa(u,nt(d,2),pu):n}function cO(u){return uy(u,he)}function uO(u,d){return uy(u,nt(d,2))}function fO(u){return u&&u.length?aa(u,he,wd):n}function dO(u,d){return u&&u.length?aa(u,nt(d,2),wd):n}var hO=ic(function(u,d){return u*d},1),pO=Dd("round"),mO=ic(function(u,d){return u-d},0);function gO(u){return u&&u.length?td(u,he):0}function yO(u,d){return u&&u.length?td(u,nt(d,2)):0}return N.after=uw,N.ary=P1,N.assign=ww,N.assignIn=J1,N.assignInWith=ah,N.assignWith=Sw,N.at=_w,N.before=Hu,N.bind=ns,N.bindAll=D,N.bindKey=Xd,N.castArray=pw,N.chain=gc,N.chunk=rw,N.compact=c1,N.concat=u1,N.cond=F,N.conforms=Y,N.constant=fe,N.countBy=yc,N.create=Cw,N.curry=Vu,N.curryRight=Zd,N.debounce=rs,N.defaults=Ew,N.defaultsDeep=Q1,N.defer=ja,N.delay=Wu,N.difference=Hn,N.differenceBy=ni,N.differenceWith=ho,N.drop=f1,N.dropRight=d1,N.dropRightWhile=iw,N.dropWhile=Mm,N.fill=bi,N.filter=C1,N.flatMap=Wm,N.flatMapDeep=sw,N.flatMapDepth=lw,N.flatten=ri,N.flattenDeep=h1,N.flattenDepth=Xo,N.flip=fw,N.flow=_e,N.flowRight=pe,N.fromPairs=el,N.functions=tv,N.functionsIn=oh,N.groupBy=R1,N.initial=Im,N.intersection=Da,N.intersectionBy=p1,N.intersectionWith=lc,N.invert=nv,N.invertBy=rv,N.invokeMap=Yd,N.iteratee=lt,N.keyBy=A1,N.keys=vr,N.keysIn=Tr,N.map=$u,N.mapKeys=Aw,N.mapValues=kw,N.matches=st,N.matchesProperty=Tn,N.memoize=Gu,N.merge=Ow,N.mergeWith=Qu,N.method=ie,N.methodOf=ee,N.mixin=ue,N.negate=Yu,N.nthArg=Ft,N.omit=sh,N.omitBy=i0,N.once=N1,N.orderBy=k1,N.over=et,N.overArgs=F1,N.overEvery=ct,N.overSome=Rr,N.partial=qm,N.partialRight=Jd,N.partition=O1,N.pick=Mw,N.pickBy=Cc,N.property=en,N.propertyOf=ls,N.pull=g1,N.pullAll=uc,N.pullAllBy=y1,N.pullAllWith=Wd,N.pullAt=v1,N.range=Fw,N.rangeRight=Xk,N.rearg=B1,N.reject=qd,N.remove=aw,N.rest=z1,N.reverse=Lm,N.sampleSize=I1,N.set=iv,N.setWith=av,N.shuffle=Mn,N.slice=bn,N.sortBy=L1,N.sortedUniq=fc,N.sortedUniqBy=Pm,N.split=dh,N.spread=dw,N.tail=mo,N.take=Zn,N.takeRight=Jo,N.takeRightWhile=tl,N.takeWhile=Nm,N.tap=$m,N.throttle=Km,N.thru=Lr,N.toArray=Si,N.toPairs=a0,N.toPairsIn=o0,N.toPath=tO,N.toPlainObject=Z1,N.transform=s0,N.unary=Xm,N.union=$i,N.unionBy=dc,N.unionWith=zu,N.uniq=ii,N.uniqBy=Fm,N.uniqWith=Bm,N.unset=ov,N.unzip=hc,N.unzipWith=Uu,N.update=lh,N.updateWith=jw,N.values=Ec,N.valuesIn=l0,N.without=Qo,N.words=y,N.wrap=hw,N.xor=kr,N.xorBy=es,N.xorWith=pc,N.zip=mc,N.zipObject=zm,N.zipObjectDeep=Um,N.zipWith=b1,N.entries=a0,N.entriesIn=o0,N.extend=J1,N.extendWith=ah,ue(N,N),N.add=rO,N.attempt=w,N.camelCase=sv,N.capitalize=uh,N.ceil=iO,N.clamp=c0,N.clone=qu,N.cloneDeep=U1,N.cloneDeepWith=$t,N.cloneWith=mw,N.conformsTo=Zm,N.deburr=yo,N.defaultTo=be,N.divide=aO,N.endsWith=as,N.eq=ai,N.escape=os,N.escapeRegExp=ef,N.every=_1,N.find=E1,N.findIndex=Ui,N.findKey=wc,N.findLast=Vm,N.findLastIndex=Dm,N.findLastKey=Xu,N.floor=oO,N.forEach=T1,N.forEachRight=Gm,N.forIn=ev,N.forInRight=Tw,N.forOwn=Sc,N.forOwnRight=Zu,N.get=Ju,N.gt=Jm,N.gte=$1,N.has=r0,N.hasIn=_c,N.head=po,N.identity=he,N.includes=vc,N.indexOf=jm,N.inRange=ch,N.invoke=Rw,N.isArguments=go,N.isArray=gt,N.isArrayBuffer=Qd,N.isArrayLike=gr,N.isArrayLikeObject=Jn,N.isBoolean=gw,N.isBuffer=is,N.isDate=H1,N.isElement=V1,N.isEmpty=eh,N.isEqual=En,N.isEqualWith=Qm,N.isError=yr,N.isFinite=yw,N.isFunction=sa,N.isInteger=th,N.isLength=nl,N.isMap=nh,N.isMatch=e0,N.isMatchWith=vw,N.isNaN=W1,N.isNative=bw,N.isNil=xw,N.isNull=G1,N.isNumber=Y1,N.isObject=Vn,N.isObjectLike=Wn,N.isPlainObject=Hi,N.isRegExp=rh,N.isSafeInteger=t0,N.isSet=q1,N.isString=ih,N.isSymbol=$r,N.isTypedArray=bc,N.isUndefined=la,N.isWeakMap=n0,N.isWeakSet=K1,N.join=Bu,N.kebabCase=tf,N.last=Ir,N.lastIndexOf=cc,N.lowerCase=ss,N.lowerFirst=Iw,N.lt=X1,N.lte=Ku,N.max=sO,N.maxBy=lO,N.mean=cO,N.meanBy=uO,N.min=fO,N.minBy=dO,N.stubArray=Bw,N.stubFalse=zw,N.stubObject=Zk,N.stubString=Jk,N.stubTrue=Qk,N.multiply=hO,N.nth=m1,N.noConflict=we,N.noop=Ge,N.now=Kd,N.pad=lv,N.padEnd=nf,N.padStart=Lw,N.parseInt=cv,N.random=u0,N.reduce=M1,N.reduceRight=D1,N.repeat=fh,N.replace=uv,N.result=Dw,N.round=pO,N.runInContext=re,N.sample=j1,N.size=Ym,N.snakeCase=Pw,N.some=cw,N.sortedIndex=jn,N.sortedIndexBy=Ut,N.sortedIndexOf=Xt,N.sortedLastIndex=xn,N.sortedLastIndexBy=xi,N.sortedLastIndexOf=Zo,N.startCase=hh,N.startsWith=fv,N.subtract=mO,N.sum=gO,N.sumBy=yO,N.template=rf,N.times=eO,N.toFinite=Ia,N.toInteger=Et,N.toLength=La,N.toLower=f0,N.toNumber=Vi,N.toSafeInteger=xc,N.toString=dn,N.toUpper=ph,N.trim=dv,N.trimEnd=Nw,N.trimStart=mh,N.truncate=i,N.unescape=o,N.uniqueId=nO,N.upperCase=c,N.upperFirst=h,N.each=T1,N.eachRight=Gm,N.first=po,ue(N,function(){var u={};return jr(N,function(d,x){fn.call(N.prototype,x)||(u[x]=d)}),u}(),{chain:!1}),N.VERSION=r,Di(["bind","bindKey","curry","curryRight","partial","partialRight"],function(u){N[u].placeholder=N}),Di(["drop","take"],function(u,d){Nt.prototype[u]=function(x){x=x===n?1:Pn(Et(x),0);var R=this.__filtered__&&!d?new Nt(this):this.clone();return R.__filtered__?R.__takeCount__=Un(x,R.__takeCount__):R.__views__.push({size:Un(x,W),type:u+(R.__dir__<0?"Right":"")}),R},Nt.prototype[u+"Right"]=function(x){return this.reverse()[u](x).reverse()}}),Di(["filter","map","takeWhile"],function(u,d){var x=d+1,R=x==le||x==V;Nt.prototype[u]=function(I){var z=this.clone();return z.__iteratees__.push({iteratee:nt(I,3),type:x}),z.__filtered__=z.__filtered__||R,z}}),Di(["head","last"],function(u,d){var x="take"+(d?"Right":"");Nt.prototype[u]=function(){return this[x](1).value()[0]}}),Di(["initial","tail"],function(u,d){var x="drop"+(d?"":"Right");Nt.prototype[u]=function(){return this.__filtered__?new Nt(this):this[x](1)}}),Nt.prototype.compact=function(){return this.filter(he)},Nt.prototype.find=function(u){return this.filter(u).head()},Nt.prototype.findLast=function(u){return this.reverse().find(u)},Nt.prototype.invokeMap=Ot(function(u,d){return typeof u=="function"?new Nt(this):this.map(function(x){return Gs(x,u,d)})}),Nt.prototype.reject=function(u){return this.filter(Yu(nt(u)))},Nt.prototype.slice=function(u,d){u=Et(u);var x=this;return x.__filtered__&&(u>0||d<0)?new Nt(x):(u<0?x=x.takeRight(-u):u&&(x=x.drop(u)),d!==n&&(d=Et(d),x=d<0?x.dropRight(-d):x.take(d-u)),x)},Nt.prototype.takeRightWhile=function(u){return this.reverse().takeWhile(u).reverse()},Nt.prototype.toArray=function(){return this.take(W)},jr(Nt.prototype,function(u,d){var x=/^(?:filter|find|map|reject)|While$/.test(d),R=/^(?:head|last)$/.test(d),I=N[R?"take"+(d=="last"?"Right":""):d],z=R||/^find/.test(d);I&&(N.prototype[d]=function(){var G=this.__wrapped__,J=R?[1]:arguments,se=G instanceof Nt,Se=J[0],Ce=se||gt(G),Te=function(qt){var tn=I.apply(N,eo([qt],J));return R&&Fe?tn[0]:tn};Ce&&x&&typeof Se=="function"&&Se.length!=1&&(se=Ce=!1);var Fe=this.__chain__,Qe=!!this.__actions__.length,dt=z&&!Fe,Bt=se&&!Qe;if(!z&&Ce){G=Bt?G:new Nt(this);var ht=u.apply(G,J);return ht.__actions__.push({func:Lr,args:[Te],thisArg:n}),new Zr(ht,Fe)}return dt&&Bt?u.apply(this,J):(ht=this.thru(Te),dt?R?ht.value()[0]:ht.value():ht)})}),Di(["pop","push","shift","sort","splice","unshift"],function(u){var d=sd[u],x=/^(?:push|sort|unshift)$/.test(u)?"tap":"thru",R=/^(?:pop|shift)$/.test(u);N.prototype[u]=function(){var I=arguments;if(R&&!this.__chain__){var z=this.value();return d.apply(gt(z)?z:[],I)}return this[x](function(G){return d.apply(gt(G)?G:[],I)})}}),jr(Nt.prototype,function(u,d){var x=N[d];if(x){var R=x.name+"";fn.call(Ni,R)||(Ni[R]=[]),Ni[R].push({name:d,func:x})}}),Ni[Xn(n,k).name]=[{name:"wrapper",func:n}],Nt.prototype.clone=cu,Nt.prototype.reverse=fd,Nt.prototype.value=Us,N.prototype.at=x1,N.prototype.chain=wi,N.prototype.commit=w1,N.prototype.next=S1,N.prototype.plant=ts,N.prototype.reverse=Gd,N.prototype.toJSON=N.prototype.valueOf=N.prototype.value=Hm,N.prototype.first=N.prototype.head,Ns&&(N.prototype[Ns]=ow),N},Bo=Wl();Lo?((Lo.exports=Bo)._=Bo,Bl._=Bo):nr._=Bo}).call(uK)}(j0,j0.exports)),j0.exports}fK();_.createContext({});function nk(){return _.useContext(sK)}_.createContext({});_.createContext({});_.createContext({});var dK=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function f(g){try{p(r.next(g))}catch(b){l(b)}}function m(g){try{p(r.throw(g))}catch(b){l(b)}}function p(g){g.done?s(g.value):a(g.value).then(f,m)}p((r=r.apply(e,t||[])).next())})},hK=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=f(0),l.throw=f(1),l.return=f(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(p){return function(g){return m([p,g])}}function m(p){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,p[0]&&(n=0)),n;)try{if(r=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,a=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){n.label=p[1];break}if(p[0]===6&&n.label<s[1]){n.label=s[1],s=p;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(p);break}s[2]&&n.ops.pop(),n.trys.pop();continue}p=t.call(e,n)}catch(g){p=[6,g],a=0}finally{r=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};function pK(){var e=this,t=Ug().projectId,n=_.useCallback(function(r){return dK(e,void 0,void 0,function(){var a,s,l,f,m,p,g,b;return hK(this,function(S){switch(S.label){case 0:if(a=r.entityId,s=r.userId,l=r.parentId,f=r.sortBy,m=r.page,p=r.limit,g=r.includeEntity,m===0)throw new Error("Can't fetch comments with page 0");if(p===0)throw new Error("Can't fetch with limit 0");if(!f)throw new Error("Can't fetch without sortBy property");if(!a&&!s&&!l)throw new Error("Either entityId, userId or parentId properties are required to fetch comments");if(!t)throw new Error("No project specified");return[4,rK.get("/".concat(t,"/comments"),{params:{entityId:a,userId:s,parentId:l,sortBy:f,page:m,limit:p,includeEntity:g}})];case 1:return b=S.sent(),[2,b.data]}})})},[t]);return n}var mK=_.createContext({});function mp(){return _.useContext(mK)}function gK(e){var t=e.commentId,n=mp().entityCommentsTree,r=n[t];if(!r)return{replies:[],newReplies:[]};var a=r.replies,s=Object.values(a).filter(function(f){return!f.new}),l=Object.values(a).filter(function(f){return!!f.new}).sort(function(f,m){return new Date(m.createdAt).getTime()-new Date(f.createdAt).getTime()});return{replies:s,newReplies:l}}var yK=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function f(g){try{p(r.next(g))}catch(b){l(b)}}function m(g){try{p(r.throw(g))}catch(b){l(b)}}function p(g){g.done?s(g.value):a(g.value).then(f,m)}p((r=r.apply(e,t||[])).next())})},vK=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=f(0),l.throw=f(1),l.return=f(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(p){return function(g){return m([p,g])}}function m(p){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,p[0]&&(n=0)),n;)try{if(r=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,a=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){n.label=p[1];break}if(p[0]===6&&n.label<s[1]){n.label=s[1],s=p;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(p);break}s[2]&&n.ops.pop(),n.trys.pop();continue}p=t.call(e,n)}catch(g){p=[6,g],a=0}finally{r=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};function bK(e){var t=this,n=e.commentId,r=e.sortBy,a=pK(),s=mp().addCommentsToTree,l=_.useState(0),f=l[0],m=l[1],p=_.useState(!1),g=p[0],b=p[1],S=gK({commentId:n}),T=S.replies,C=S.newReplies;return _.useEffect(function(){var E=function(){return yK(t,void 0,void 0,function(){var A,k;return vK(this,function(L){switch(L.label){case 0:if(!n)return[2];L.label=1;case 1:return L.trys.push([1,3,4,5]),b(!0),[4,a({parentId:n,page:f,sortBy:r,limit:5})];case 2:return A=L.sent(),s==null||s(A),[3,5];case 3:return k=L.sent(),vf(k,"Failed to fetch replies: "),[3,5];case 4:return b(!1),[7];case 5:return[2]}})})};f>0&&E()},[f]),{replies:T,newReplies:C,loading:g,page:f,setPage:m}}var xK=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function f(g){try{p(r.next(g))}catch(b){l(b)}}function m(g){try{p(r.throw(g))}catch(b){l(b)}}function p(g){g.done?s(g.value):a(g.value).then(f,m)}p((r=r.apply(e,t||[])).next())})},wK=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=f(0),l.throw=f(1),l.return=f(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(p){return function(g){return m([p,g])}}function m(p){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,p[0]&&(n=0)),n;)try{if(r=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,a=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){n.label=p[1];break}if(p[0]===6&&n.label<s[1]){n.label=s[1],s=p;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(p);break}s[2]&&n.ops.pop(),n.trys.pop();continue}p=t.call(e,n)}catch(g){p=[6,g],a=0}finally{r=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};function SK(){var e=this,t=Cx(),n=Ug().projectId,r=_.useCallback(function(a){return xK(e,[a],void 0,function(s){var l,f=s.commentId;return wK(this,function(m){switch(m.label){case 0:if(!f)throw new Error("No comment ID passed");if(!n)throw new Error("No project specified");return[4,t.patch("/".concat(n,"/comments/").concat(f,"/upvote"))];case 1:return l=m.sent(),[2,l.data]}})})},[t,n]);return r}var _K=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function f(g){try{p(r.next(g))}catch(b){l(b)}}function m(g){try{p(r.throw(g))}catch(b){l(b)}}function p(g){g.done?s(g.value):a(g.value).then(f,m)}p((r=r.apply(e,t||[])).next())})},CK=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=f(0),l.throw=f(1),l.return=f(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(p){return function(g){return m([p,g])}}function m(p){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,p[0]&&(n=0)),n;)try{if(r=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,a=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){n.label=p[1];break}if(p[0]===6&&n.label<s[1]){n.label=s[1],s=p;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(p);break}s[2]&&n.ops.pop(),n.trys.pop();continue}p=t.call(e,n)}catch(g){p=[6,g],a=0}finally{r=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};function EK(){var e=this,t=Cx(),n=Ug().projectId,r=_.useCallback(function(a){return _K(e,[a],void 0,function(s){var l,f=s.commentId;return CK(this,function(m){switch(m.label){case 0:if(!f)throw new Error("No comment ID passed");if(!n)throw new Error("No project specified");return[4,t.patch("/".concat(n,"/comments/").concat(f,"/remove-upvote"))];case 1:return l=m.sent(),[2,l.data]}})})},[t,n]);return r}var TK=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function f(g){try{p(r.next(g))}catch(b){l(b)}}function m(g){try{p(r.throw(g))}catch(b){l(b)}}function p(g){g.done?s(g.value):a(g.value).then(f,m)}p((r=r.apply(e,t||[])).next())})},RK=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=f(0),l.throw=f(1),l.return=f(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(p){return function(g){return m([p,g])}}function m(p){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,p[0]&&(n=0)),n;)try{if(r=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,a=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){n.label=p[1];break}if(p[0]===6&&n.label<s[1]){n.label=s[1],s=p;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(p);break}s[2]&&n.ops.pop(),n.trys.pop();continue}p=t.call(e,n)}catch(g){p=[6,g],a=0}finally{r=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};function AK(){var e=this,t=Cx(),n=Ug().projectId,r=_.useCallback(function(a){return TK(e,[a],void 0,function(s){var l,f=s.commentId;return RK(this,function(m){switch(m.label){case 0:if(!f)throw new Error("No comment ID passed");if(!n)throw new Error("No project specified");return[4,t.patch("/".concat(n,"/comments/").concat(f,"/downvote"))];case 1:return l=m.sent(),[2,l.data]}})})},[t,n]);return r}var kK=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function f(g){try{p(r.next(g))}catch(b){l(b)}}function m(g){try{p(r.throw(g))}catch(b){l(b)}}function p(g){g.done?s(g.value):a(g.value).then(f,m)}p((r=r.apply(e,t||[])).next())})},OK=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=f(0),l.throw=f(1),l.return=f(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(p){return function(g){return m([p,g])}}function m(p){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,p[0]&&(n=0)),n;)try{if(r=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,a=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){n.label=p[1];break}if(p[0]===6&&n.label<s[1]){n.label=s[1],s=p;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(p);break}s[2]&&n.ops.pop(),n.trys.pop();continue}p=t.call(e,n)}catch(g){p=[6,g],a=0}finally{r=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}};function MK(){var e=this,t=Cx(),n=Ug().projectId,r=_.useCallback(function(a){return kK(e,[a],void 0,function(s){var l,f=s.commentId;return OK(this,function(m){switch(m.label){case 0:if(!f)throw new Error("No comment ID passed");if(!n)throw new Error("No project specified");return[4,t.patch("/".concat(n,"/comments/").concat(f,"/remove-downvote"))];case 1:return l=m.sent(),[2,l.data]}})})},[t,n]);return r}var ds=function(){return ds=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},ds.apply(this,arguments)},jv=function(e,t,n,r){function a(s){return s instanceof n?s:new n(function(l){l(s)})}return new(n||(n=Promise))(function(s,l){function f(g){try{p(r.next(g))}catch(b){l(b)}}function m(g){try{p(r.throw(g))}catch(b){l(b)}}function p(g){g.done?s(g.value):a(g.value).then(f,m)}p((r=r.apply(e,t||[])).next())})},Iv=function(e,t){var n={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,a,s,l=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return l.next=f(0),l.throw=f(1),l.return=f(2),typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function f(p){return function(g){return m([p,g])}}function m(p){if(r)throw new TypeError("Generator is already executing.");for(;l&&(l=0,p[0]&&(n=0)),n;)try{if(r=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return n.label++,{value:p[1],done:!1};case 5:n.label++,a=p[1],p=[0];continue;case 7:p=n.ops.pop(),n.trys.pop();continue;default:if(s=n.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){n=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){n.label=p[1];break}if(p[0]===6&&n.label<s[1]){n.label=s[1],s=p;break}if(s&&n.label<s[2]){n.label=s[2],n.ops.push(p);break}s[2]&&n.ops.pop(),n.trys.pop();continue}p=t.call(e,n)}catch(g){p=[6,g],a=0}finally{r=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Lv=function(e,t,n){if(n||arguments.length===2)for(var r=0,a=t.length,s;r<a;r++)(s||!(r in t))&&(s||(s=Array.prototype.slice.call(t,0,r)),s[r]=t[r]);return e.concat(s||Array.prototype.slice.call(t))};function DK(e){var t=this,n=nk().user,r=e.comment,a=e.setComment,s=_.useState(r),l=s[0],f=s[1],m=_.useState(!1),p=m[0],g=m[1],b=function(M){f(r),a(M)},S=_.useCallback(function(){a(l)},[l,a]),T=SK(),C=EK(),E=AK(),A=MK(),k=function(){return jv(t,void 0,void 0,function(){var M,$;return Iv(this,function(B){switch(B.label){case 0:if(!n)throw new Error("No authenticated user");if(p)return[2];b(ds(ds({},r),{upvotes:Lv(Lv([],r.upvotes,!0),[n.id],!1),downvotes:r.downvotes.filter(function(H){return H!==n.id})})),g(!0),B.label=1;case 1:return B.trys.push([1,3,4,5]),[4,T({commentId:r.id})];case 2:return M=B.sent(),a(M),[3,5];case 3:return $=B.sent(),S(),vf($,"Failed to update comment vote: "),[3,5];case 4:return g(!1),[7];case 5:return[2]}})})},L=function(){return jv(t,void 0,void 0,function(){var M,$;return Iv(this,function(B){switch(B.label){case 0:if(!n)throw new Error("No authenticated user");if(p)return[2];b(ds(ds({},r),{upvotes:r.upvotes.filter(function(H){return H!==n.id})})),g(!0),B.label=1;case 1:return B.trys.push([1,3,4,5]),[4,C({commentId:r.id})];case 2:return M=B.sent(),a(M),[3,5];case 3:return $=B.sent(),S(),vf($,"Failed to remove upvote from comment: "),[3,5];case 4:return g(!1),[7];case 5:return[2]}})})},O=function(){return jv(t,void 0,void 0,function(){var M,$;return Iv(this,function(B){switch(B.label){case 0:if(!n)throw new Error("No authenticated user");if(p)return[2];b(ds(ds({},r),{downvotes:Lv(Lv([],r.downvotes,!0),[n.id],!1),upvotes:r.upvotes.filter(function(H){return H!==n.id})})),g(!0),B.label=1;case 1:return B.trys.push([1,3,4,5]),[4,E({commentId:r.id})];case 2:return M=B.sent(),a(M),[3,5];case 3:return $=B.sent(),S(),vf($,"Failed to update comment vote: "),[3,5];case 4:return g(!1),[7];case 5:return[2]}})})},P=function(){return jv(t,void 0,void 0,function(){var M,$;return Iv(this,function(B){switch(B.label){case 0:if(!n)throw new Error("No authenticated user");if(p)return[2];b(ds(ds({},r),{downvotes:r.downvotes.filter(function(H){return H!==n.id})})),g(!0),B.label=1;case 1:return B.trys.push([1,3,4,5]),[4,A({commentId:r.id})];case 2:return M=B.sent(),a(M),[3,5];case 3:return $=B.sent(),S(),vf($,"Failed to remove downvote from comment: "),[3,5];case 4:return g(!1),[7];case 5:return[2]}})})};return{upvoteComment:k,removeCommentUpvote:L,downvoteComment:O,removeCommentDownvote:P}}const jK=_.createContext({});function $g(){return _.useContext(jK)}//! moment.js
+//! version : 2.30.1
+//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
+//! license : MIT
+//! momentjs.com
+var rk;function Ue(){return rk.apply(null,arguments)}function IK(e){rk=e}function Ro(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Tf(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function mn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function gC(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(mn(e,t))return!1;return!0}function Wi(e){return e===void 0}function wl(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function Hg(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ik(e,t){var n=[],r,a=e.length;for(r=0;r<a;++r)n.push(t(e[r],r));return n}function Lc(e,t){for(var n in t)mn(t,n)&&(e[n]=t[n]);return mn(t,"toString")&&(e.toString=t.toString),mn(t,"valueOf")&&(e.valueOf=t.valueOf),e}function As(e,t,n,r){return Rk(e,t,n,r,!0).utc()}function LK(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function It(e){return e._pf==null&&(e._pf=LK()),e._pf}var FS;Array.prototype.some?FS=Array.prototype.some:FS=function(e){var t=Object(this),n=t.length>>>0,r;for(r=0;r<n;r++)if(r in t&&e.call(this,t[r],r,t))return!0;return!1};function yC(e){var t=null,n=!1,r=e._d&&!isNaN(e._d.getTime());if(r&&(t=It(e),n=FS.call(t.parsedDateParts,function(a){return a!=null}),r=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&n),e._strict&&(r=r&&t.charsLeftOver===0&&t.unusedTokens.length===0&&t.bigHour===void 0)),Object.isFrozen==null||!Object.isFrozen(e))e._isValid=r;else return r;return e._isValid}function Ex(e){var t=As(NaN);return e!=null?Lc(It(t),e):It(t).userInvalidated=!0,t}var bT=Ue.momentProperties=[],P2=!1;function vC(e,t){var n,r,a,s=bT.length;if(Wi(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),Wi(t._i)||(e._i=t._i),Wi(t._f)||(e._f=t._f),Wi(t._l)||(e._l=t._l),Wi(t._strict)||(e._strict=t._strict),Wi(t._tzm)||(e._tzm=t._tzm),Wi(t._isUTC)||(e._isUTC=t._isUTC),Wi(t._offset)||(e._offset=t._offset),Wi(t._pf)||(e._pf=It(t)),Wi(t._locale)||(e._locale=t._locale),s>0)for(n=0;n<s;n++)r=bT[n],a=t[r],Wi(a)||(e[r]=a);return e}function Vg(e){vC(this,e),this._d=new Date(e._d!=null?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),P2===!1&&(P2=!0,Ue.updateOffset(this),P2=!1)}function Ao(e){return e instanceof Vg||e!=null&&e._isAMomentObject!=null}function ak(e){Ue.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+e)}function Ka(e,t){var n=!0;return Lc(function(){if(Ue.deprecationHandler!=null&&Ue.deprecationHandler(null,e),n){var r=[],a,s,l,f=arguments.length;for(s=0;s<f;s++){if(a="",typeof arguments[s]=="object"){a+=`
+[`+s+"] ";for(l in arguments[0])mn(arguments[0],l)&&(a+=l+": "+arguments[0][l]+", ");a=a.slice(0,-2)}else a=arguments[s];r.push(a)}ak(e+`
+Arguments: `+Array.prototype.slice.call(r).join("")+`
+`+new Error().stack),n=!1}return t.apply(this,arguments)},t)}var xT={};function ok(e,t){Ue.deprecationHandler!=null&&Ue.deprecationHandler(e,t),xT[e]||(ak(t),xT[e]=!0)}Ue.suppressDeprecationWarnings=!1;Ue.deprecationHandler=null;function ks(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function PK(e){var t,n;for(n in e)mn(e,n)&&(t=e[n],ks(t)?this[n]=t:this["_"+n]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function BS(e,t){var n=Lc({},e),r;for(r in t)mn(t,r)&&(Tf(e[r])&&Tf(t[r])?(n[r]={},Lc(n[r],e[r]),Lc(n[r],t[r])):t[r]!=null?n[r]=t[r]:delete n[r]);for(r in e)mn(e,r)&&!mn(t,r)&&Tf(e[r])&&(n[r]=Lc({},n[r]));return n}function bC(e){e!=null&&this.set(e)}var zS;Object.keys?zS=Object.keys:zS=function(e){var t,n=[];for(t in e)mn(e,t)&&n.push(t);return n};var NK={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function FK(e,t,n){var r=this._calendar[e]||this._calendar.sameElse;return ks(r)?r.call(t,n):r}function _s(e,t,n){var r=""+Math.abs(e),a=t-r.length,s=e>=0;return(s?n?"+":"":"-")+Math.pow(10,Math.max(0,a)).toString().substr(1)+r}var xC=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Pv=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,N2={},qh={};function it(e,t,n,r){var a=r;typeof r=="string"&&(a=function(){return this[r]()}),e&&(qh[e]=a),t&&(qh[t[0]]=function(){return _s(a.apply(this,arguments),t[1],t[2])}),n&&(qh[n]=function(){return this.localeData().ordinal(a.apply(this,arguments),e)})}function BK(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function zK(e){var t=e.match(xC),n,r;for(n=0,r=t.length;n<r;n++)qh[t[n]]?t[n]=qh[t[n]]:t[n]=BK(t[n]);return function(a){var s="",l;for(l=0;l<r;l++)s+=ks(t[l])?t[l].call(a,e):t[l];return s}}function eb(e,t){return e.isValid()?(t=sk(t,e.localeData()),N2[t]=N2[t]||zK(t),N2[t](e)):e.localeData().invalidDate()}function sk(e,t){var n=5;function r(a){return t.longDateFormat(a)||a}for(Pv.lastIndex=0;n>=0&&Pv.test(e);)e=e.replace(Pv,r),Pv.lastIndex=0,n-=1;return e}var UK={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function $K(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(xC).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var HK="Invalid date";function VK(){return this._invalidDate}var WK="%d",GK=/\d{1,2}/;function YK(e){return this._ordinal.replace("%d",e)}var qK={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function KK(e,t,n,r){var a=this._relativeTime[n];return ks(a)?a(e,t,n,r):a.replace(/%d/i,e)}function XK(e,t){var n=this._relativeTime[e>0?"future":"past"];return ks(n)?n(t):n.replace(/%s/i,t)}var wT={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Xa(e){return typeof e=="string"?wT[e]||wT[e.toLowerCase()]:void 0}function wC(e){var t={},n,r;for(r in e)mn(e,r)&&(n=Xa(r),n&&(t[n]=e[r]));return t}var ZK={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function JK(e){var t=[],n;for(n in e)mn(e,n)&&t.push({unit:n,priority:ZK[n]});return t.sort(function(r,a){return r.priority-a.priority}),t}var lk=/\d/,xa=/\d\d/,ck=/\d{3}/,SC=/\d{4}/,Tx=/[+-]?\d{6}/,qn=/\d\d?/,uk=/\d\d\d\d?/,fk=/\d\d\d\d\d\d?/,Rx=/\d{1,3}/,_C=/\d{1,4}/,Ax=/[+-]?\d{1,6}/,gp=/\d+/,kx=/[+-]?\d+/,QK=/Z|[+-]\d\d:?\d\d/gi,Ox=/Z|[+-]\d\d(?::?\d\d)?/gi,eX=/[+-]?\d+(\.\d{1,3})?/,Wg=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,yp=/^[1-9]\d?/,CC=/^([1-9]\d|\d)/,Ab;Ab={};function qe(e,t,n){Ab[e]=ks(t)?t:function(r,a){return r&&n?n:t}}function tX(e,t){return mn(Ab,e)?Ab[e](t._strict,t._locale):new RegExp(nX(e))}function nX(e){return ml(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,a,s){return n||r||a||s}))}function ml(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Wa(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Zt(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=Wa(t)),n}var US={};function Ln(e,t){var n,r=t,a;for(typeof e=="string"&&(e=[e]),wl(t)&&(r=function(s,l){l[t]=Zt(s)}),a=e.length,n=0;n<a;n++)US[e[n]]=r}function Gg(e,t){Ln(e,function(n,r,a,s){a._w=a._w||{},t(n,a._w,a,s)})}function rX(e,t,n){t!=null&&mn(US,e)&&US[e](t,n._a,n,e)}function Mx(e){return e%4===0&&e%100!==0||e%400===0}var fi=0,fl=1,ys=2,Or=3,_o=4,dl=5,xf=6,iX=7,aX=8;it("Y",0,0,function(){var e=this.year();return e<=9999?_s(e,4):"+"+e});it(0,["YY",2],0,function(){return this.year()%100});it(0,["YYYY",4],0,"year");it(0,["YYYYY",5],0,"year");it(0,["YYYYYY",6,!0],0,"year");qe("Y",kx);qe("YY",qn,xa);qe("YYYY",_C,SC);qe("YYYYY",Ax,Tx);qe("YYYYYY",Ax,Tx);Ln(["YYYYY","YYYYYY"],fi);Ln("YYYY",function(e,t){t[fi]=e.length===2?Ue.parseTwoDigitYear(e):Zt(e)});Ln("YY",function(e,t){t[fi]=Ue.parseTwoDigitYear(e)});Ln("Y",function(e,t){t[fi]=parseInt(e,10)});function V0(e){return Mx(e)?366:365}Ue.parseTwoDigitYear=function(e){return Zt(e)+(Zt(e)>68?1900:2e3)};var dk=vp("FullYear",!0);function oX(){return Mx(this.year())}function vp(e,t){return function(n){return n!=null?(hk(this,e,n),Ue.updateOffset(this,t),this):cg(this,e)}}function cg(e,t){if(!e.isValid())return NaN;var n=e._d,r=e._isUTC;switch(t){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function hk(e,t,n){var r,a,s,l,f;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,a=e._isUTC,t){case"Milliseconds":return void(a?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(a?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(a?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(a?r.setUTCHours(n):r.setHours(n));case"Date":return void(a?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}s=n,l=e.month(),f=e.date(),f=f===29&&l===1&&!Mx(s)?28:f,a?r.setUTCFullYear(s,l,f):r.setFullYear(s,l,f)}}function sX(e){return e=Xa(e),ks(this[e])?this[e]():this}function lX(e,t){if(typeof e=="object"){e=wC(e);var n=JK(e),r,a=n.length;for(r=0;r<a;r++)this[n[r].unit](e[n[r].unit])}else if(e=Xa(e),ks(this[e]))return this[e](t);return this}function cX(e,t){return(e%t+t)%t}var wr;Array.prototype.indexOf?wr=Array.prototype.indexOf:wr=function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return-1};function EC(e,t){if(isNaN(e)||isNaN(t))return NaN;var n=cX(t,12);return e+=(t-n)/12,n===1?Mx(e)?29:28:31-n%7%2}it("M",["MM",2],"Mo",function(){return this.month()+1});it("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)});it("MMMM",0,0,function(e){return this.localeData().months(this,e)});qe("M",qn,yp);qe("MM",qn,xa);qe("MMM",function(e,t){return t.monthsShortRegex(e)});qe("MMMM",function(e,t){return t.monthsRegex(e)});Ln(["M","MM"],function(e,t){t[fl]=Zt(e)-1});Ln(["MMM","MMMM"],function(e,t,n,r){var a=n._locale.monthsParse(e,r,n._strict);a!=null?t[fl]=a:It(n).invalidMonth=e});var uX="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),pk="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),mk=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,fX=Wg,dX=Wg;function hX(e,t){return e?Ro(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||mk).test(t)?"format":"standalone"][e.month()]:Ro(this._months)?this._months:this._months.standalone}function pX(e,t){return e?Ro(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[mk.test(t)?"format":"standalone"][e.month()]:Ro(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function mX(e,t,n){var r,a,s,l=e.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)s=As([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(s,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(s,"").toLocaleLowerCase();return n?t==="MMM"?(a=wr.call(this._shortMonthsParse,l),a!==-1?a:null):(a=wr.call(this._longMonthsParse,l),a!==-1?a:null):t==="MMM"?(a=wr.call(this._shortMonthsParse,l),a!==-1?a:(a=wr.call(this._longMonthsParse,l),a!==-1?a:null)):(a=wr.call(this._longMonthsParse,l),a!==-1?a:(a=wr.call(this._shortMonthsParse,l),a!==-1?a:null))}function gX(e,t,n){var r,a,s;if(this._monthsParseExact)return mX.call(this,e,t,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(a=As([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(a,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(a,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(s="^"+this.months(a,"")+"|^"+this.monthsShort(a,""),this._monthsParse[r]=new RegExp(s.replace(".",""),"i")),n&&t==="MMMM"&&this._longMonthsParse[r].test(e))return r;if(n&&t==="MMM"&&this._shortMonthsParse[r].test(e))return r;if(!n&&this._monthsParse[r].test(e))return r}}function gk(e,t){if(!e.isValid())return e;if(typeof t=="string"){if(/^\d+$/.test(t))t=Zt(t);else if(t=e.localeData().monthsParse(t),!wl(t))return e}var n=t,r=e.date();return r=r<29?r:Math.min(r,EC(e.year(),n)),e._isUTC?e._d.setUTCMonth(n,r):e._d.setMonth(n,r),e}function yk(e){return e!=null?(gk(this,e),Ue.updateOffset(this,!0),this):cg(this,"Month")}function yX(){return EC(this.year(),this.month())}function vX(e){return this._monthsParseExact?(mn(this,"_monthsRegex")||vk.call(this),e?this._monthsShortStrictRegex:this._monthsShortRegex):(mn(this,"_monthsShortRegex")||(this._monthsShortRegex=fX),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)}function bX(e){return this._monthsParseExact?(mn(this,"_monthsRegex")||vk.call(this),e?this._monthsStrictRegex:this._monthsRegex):(mn(this,"_monthsRegex")||(this._monthsRegex=dX),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)}function vk(){function e(m,p){return p.length-m.length}var t=[],n=[],r=[],a,s,l,f;for(a=0;a<12;a++)s=As([2e3,a]),l=ml(this.monthsShort(s,"")),f=ml(this.months(s,"")),t.push(l),n.push(f),r.push(f),r.push(l);t.sort(e),n.sort(e),r.sort(e),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+t.join("|")+")","i")}function xX(e,t,n,r,a,s,l){var f;return e<100&&e>=0?(f=new Date(e+400,t,n,r,a,s,l),isFinite(f.getFullYear())&&f.setFullYear(e)):f=new Date(e,t,n,r,a,s,l),f}function ug(e){var t,n;return e<100&&e>=0?(n=Array.prototype.slice.call(arguments),n[0]=e+400,t=new Date(Date.UTC.apply(null,n)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function kb(e,t,n){var r=7+t-n,a=(7+ug(e,0,r).getUTCDay()-t)%7;return-a+r-1}function bk(e,t,n,r,a){var s=(7+n-r)%7,l=kb(e,r,a),f=1+7*(t-1)+s+l,m,p;return f<=0?(m=e-1,p=V0(m)+f):f>V0(e)?(m=e+1,p=f-V0(e)):(m=e,p=f),{year:m,dayOfYear:p}}function fg(e,t,n){var r=kb(e.year(),t,n),a=Math.floor((e.dayOfYear()-r-1)/7)+1,s,l;return a<1?(l=e.year()-1,s=a+gl(l,t,n)):a>gl(e.year(),t,n)?(s=a-gl(e.year(),t,n),l=e.year()+1):(l=e.year(),s=a),{week:s,year:l}}function gl(e,t,n){var r=kb(e,t,n),a=kb(e+1,t,n);return(V0(e)-r+a)/7}it("w",["ww",2],"wo","week");it("W",["WW",2],"Wo","isoWeek");qe("w",qn,yp);qe("ww",qn,xa);qe("W",qn,yp);qe("WW",qn,xa);Gg(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Zt(e)});function wX(e){return fg(e,this._week.dow,this._week.doy).week}var SX={dow:0,doy:6};function _X(){return this._week.dow}function CX(){return this._week.doy}function EX(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function TX(e){var t=fg(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}it("d",0,"do","day");it("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});it("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});it("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});it("e",0,0,"weekday");it("E",0,0,"isoWeekday");qe("d",qn);qe("e",qn);qe("E",qn);qe("dd",function(e,t){return t.weekdaysMinRegex(e)});qe("ddd",function(e,t){return t.weekdaysShortRegex(e)});qe("dddd",function(e,t){return t.weekdaysRegex(e)});Gg(["dd","ddd","dddd"],function(e,t,n,r){var a=n._locale.weekdaysParse(e,r,n._strict);a!=null?t.d=a:It(n).invalidWeekday=e});Gg(["d","e","E"],function(e,t,n,r){t[r]=Zt(e)});function RX(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function AX(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function TC(e,t){return e.slice(t,7).concat(e.slice(0,t))}var kX="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),xk="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),OX="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),MX=Wg,DX=Wg,jX=Wg;function IX(e,t){var n=Ro(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?TC(n,this._week.dow):e?n[e.day()]:n}function LX(e){return e===!0?TC(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function PX(e){return e===!0?TC(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function NX(e,t,n){var r,a,s,l=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)s=As([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(s,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(s,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(s,"").toLocaleLowerCase();return n?t==="dddd"?(a=wr.call(this._weekdaysParse,l),a!==-1?a:null):t==="ddd"?(a=wr.call(this._shortWeekdaysParse,l),a!==-1?a:null):(a=wr.call(this._minWeekdaysParse,l),a!==-1?a:null):t==="dddd"?(a=wr.call(this._weekdaysParse,l),a!==-1||(a=wr.call(this._shortWeekdaysParse,l),a!==-1)?a:(a=wr.call(this._minWeekdaysParse,l),a!==-1?a:null)):t==="ddd"?(a=wr.call(this._shortWeekdaysParse,l),a!==-1||(a=wr.call(this._weekdaysParse,l),a!==-1)?a:(a=wr.call(this._minWeekdaysParse,l),a!==-1?a:null)):(a=wr.call(this._minWeekdaysParse,l),a!==-1||(a=wr.call(this._weekdaysParse,l),a!==-1)?a:(a=wr.call(this._shortWeekdaysParse,l),a!==-1?a:null))}function FX(e,t,n){var r,a,s;if(this._weekdaysParseExact)return NX.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(a=As([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(a,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(a,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(a,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(s="^"+this.weekdays(a,"")+"|^"+this.weekdaysShort(a,"")+"|^"+this.weekdaysMin(a,""),this._weekdaysParse[r]=new RegExp(s.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function BX(e){if(!this.isValid())return e!=null?this:NaN;var t=cg(this,"Day");return e!=null?(e=RX(e,this.localeData()),this.add(e-t,"d")):t}function zX(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function UX(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=AX(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function $X(e){return this._weekdaysParseExact?(mn(this,"_weekdaysRegex")||RC.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(mn(this,"_weekdaysRegex")||(this._weekdaysRegex=MX),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function HX(e){return this._weekdaysParseExact?(mn(this,"_weekdaysRegex")||RC.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(mn(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=DX),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function VX(e){return this._weekdaysParseExact?(mn(this,"_weekdaysRegex")||RC.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(mn(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=jX),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function RC(){function e(g,b){return b.length-g.length}var t=[],n=[],r=[],a=[],s,l,f,m,p;for(s=0;s<7;s++)l=As([2e3,1]).day(s),f=ml(this.weekdaysMin(l,"")),m=ml(this.weekdaysShort(l,"")),p=ml(this.weekdays(l,"")),t.push(f),n.push(m),r.push(p),a.push(f),a.push(m),a.push(p);t.sort(e),n.sort(e),r.sort(e),a.sort(e),this._weekdaysRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function AC(){return this.hours()%12||12}function WX(){return this.hours()||24}it("H",["HH",2],0,"hour");it("h",["hh",2],0,AC);it("k",["kk",2],0,WX);it("hmm",0,0,function(){return""+AC.apply(this)+_s(this.minutes(),2)});it("hmmss",0,0,function(){return""+AC.apply(this)+_s(this.minutes(),2)+_s(this.seconds(),2)});it("Hmm",0,0,function(){return""+this.hours()+_s(this.minutes(),2)});it("Hmmss",0,0,function(){return""+this.hours()+_s(this.minutes(),2)+_s(this.seconds(),2)});function wk(e,t){it(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}wk("a",!0);wk("A",!1);function Sk(e,t){return t._meridiemParse}qe("a",Sk);qe("A",Sk);qe("H",qn,CC);qe("h",qn,yp);qe("k",qn,yp);qe("HH",qn,xa);qe("hh",qn,xa);qe("kk",qn,xa);qe("hmm",uk);qe("hmmss",fk);qe("Hmm",uk);qe("Hmmss",fk);Ln(["H","HH"],Or);Ln(["k","kk"],function(e,t,n){var r=Zt(e);t[Or]=r===24?0:r});Ln(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});Ln(["h","hh"],function(e,t,n){t[Or]=Zt(e),It(n).bigHour=!0});Ln("hmm",function(e,t,n){var r=e.length-2;t[Or]=Zt(e.substr(0,r)),t[_o]=Zt(e.substr(r)),It(n).bigHour=!0});Ln("hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[Or]=Zt(e.substr(0,r)),t[_o]=Zt(e.substr(r,2)),t[dl]=Zt(e.substr(a)),It(n).bigHour=!0});Ln("Hmm",function(e,t,n){var r=e.length-2;t[Or]=Zt(e.substr(0,r)),t[_o]=Zt(e.substr(r))});Ln("Hmmss",function(e,t,n){var r=e.length-4,a=e.length-2;t[Or]=Zt(e.substr(0,r)),t[_o]=Zt(e.substr(r,2)),t[dl]=Zt(e.substr(a))});function GX(e){return(e+"").toLowerCase().charAt(0)==="p"}var YX=/[ap]\.?m?\.?/i,qX=vp("Hours",!0);function KX(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var _k={calendar:NK,longDateFormat:UK,invalidDate:HK,ordinal:WK,dayOfMonthOrdinalParse:GK,relativeTime:qK,months:uX,monthsShort:pk,week:SX,weekdays:kX,weekdaysMin:OX,weekdaysShort:xk,meridiemParse:YX},tr={},R0={},dg;function XX(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n<r;n+=1)if(e[n]!==t[n])return n;return r}function ST(e){return e&&e.toLowerCase().replace("_","-")}function ZX(e){for(var t=0,n,r,a,s;t<e.length;){for(s=ST(e[t]).split("-"),n=s.length,r=ST(e[t+1]),r=r?r.split("-"):null;n>0;){if(a=Dx(s.slice(0,n).join("-")),a)return a;if(r&&r.length>=n&&XX(s,r)>=n-1)break;n--}t++}return dg}function JX(e){return!!(e&&e.match("^[^/\\\\]*$"))}function Dx(e){var t=null,n;if(tr[e]===void 0&&typeof rb<"u"&&rb&&rb.exports&&JX(e))try{t=dg._abbr,n=require,n("./locale/"+e),Nc(t)}catch{tr[e]=null}return tr[e]}function Nc(e,t){var n;return e&&(Wi(t)?n=El(e):n=kC(e,t),n?dg=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),dg._abbr}function kC(e,t){if(t!==null){var n,r=_k;if(t.abbr=e,tr[e]!=null)ok("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=tr[e]._config;else if(t.parentLocale!=null)if(tr[t.parentLocale]!=null)r=tr[t.parentLocale]._config;else if(n=Dx(t.parentLocale),n!=null)r=n._config;else return R0[t.parentLocale]||(R0[t.parentLocale]=[]),R0[t.parentLocale].push({name:e,config:t}),null;return tr[e]=new bC(BS(r,t)),R0[e]&&R0[e].forEach(function(a){kC(a.name,a.config)}),Nc(e),tr[e]}else return delete tr[e],null}function QX(e,t){if(t!=null){var n,r,a=_k;tr[e]!=null&&tr[e].parentLocale!=null?tr[e].set(BS(tr[e]._config,t)):(r=Dx(e),r!=null&&(a=r._config),t=BS(a,t),r==null&&(t.abbr=e),n=new bC(t),n.parentLocale=tr[e],tr[e]=n),Nc(e)}else tr[e]!=null&&(tr[e].parentLocale!=null?(tr[e]=tr[e].parentLocale,e===Nc()&&Nc(e)):tr[e]!=null&&delete tr[e]);return tr[e]}function El(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return dg;if(!Ro(e)){if(t=Dx(e),t)return t;e=[e]}return ZX(e)}function eZ(){return zS(tr)}function OC(e){var t,n=e._a;return n&&It(e).overflow===-2&&(t=n[fl]<0||n[fl]>11?fl:n[ys]<1||n[ys]>EC(n[fi],n[fl])?ys:n[Or]<0||n[Or]>24||n[Or]===24&&(n[_o]!==0||n[dl]!==0||n[xf]!==0)?Or:n[_o]<0||n[_o]>59?_o:n[dl]<0||n[dl]>59?dl:n[xf]<0||n[xf]>999?xf:-1,It(e)._overflowDayOfYear&&(t<fi||t>ys)&&(t=ys),It(e)._overflowWeeks&&t===-1&&(t=iX),It(e)._overflowWeekday&&t===-1&&(t=aX),It(e).overflow=t),e}var tZ=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,nZ=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,rZ=/Z|[+-]\d\d(?::?\d\d)?/,Nv=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],F2=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],iZ=/^\/?Date\((-?\d+)/i,aZ=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,oZ={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Ck(e){var t,n,r=e._i,a=tZ.exec(r)||nZ.exec(r),s,l,f,m,p=Nv.length,g=F2.length;if(a){for(It(e).iso=!0,t=0,n=p;t<n;t++)if(Nv[t][1].exec(a[1])){l=Nv[t][0],s=Nv[t][2]!==!1;break}if(l==null){e._isValid=!1;return}if(a[3]){for(t=0,n=g;t<n;t++)if(F2[t][1].exec(a[3])){f=(a[2]||" ")+F2[t][0];break}if(f==null){e._isValid=!1;return}}if(!s&&f!=null){e._isValid=!1;return}if(a[4])if(rZ.exec(a[4]))m="Z";else{e._isValid=!1;return}e._f=l+(f||"")+(m||""),DC(e)}else e._isValid=!1}function sZ(e,t,n,r,a,s){var l=[lZ(e),pk.indexOf(t),parseInt(n,10),parseInt(r,10),parseInt(a,10)];return s&&l.push(parseInt(s,10)),l}function lZ(e){var t=parseInt(e,10);return t<=49?2e3+t:t<=999?1900+t:t}function cZ(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function uZ(e,t,n){if(e){var r=xk.indexOf(e),a=new Date(t[0],t[1],t[2]).getDay();if(r!==a)return It(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function fZ(e,t,n){if(e)return oZ[e];if(t)return 0;var r=parseInt(n,10),a=r%100,s=(r-a)/100;return s*60+a}function Ek(e){var t=aZ.exec(cZ(e._i)),n;if(t){if(n=sZ(t[4],t[3],t[2],t[5],t[6],t[7]),!uZ(t[1],n,e))return;e._a=n,e._tzm=fZ(t[8],t[9],t[10]),e._d=ug.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),It(e).rfc2822=!0}else e._isValid=!1}function dZ(e){var t=iZ.exec(e._i);if(t!==null){e._d=new Date(+t[1]);return}if(Ck(e),e._isValid===!1)delete e._isValid;else return;if(Ek(e),e._isValid===!1)delete e._isValid;else return;e._strict?e._isValid=!1:Ue.createFromInputFallback(e)}Ue.createFromInputFallback=Ka("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))});function jh(e,t,n){return e??t??n}function hZ(e){var t=new Date(Ue.now());return e._useUTC?[t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()]:[t.getFullYear(),t.getMonth(),t.getDate()]}function MC(e){var t,n,r=[],a,s,l;if(!e._d){for(a=hZ(e),e._w&&e._a[ys]==null&&e._a[fl]==null&&pZ(e),e._dayOfYear!=null&&(l=jh(e._a[fi],a[fi]),(e._dayOfYear>V0(l)||e._dayOfYear===0)&&(It(e)._overflowDayOfYear=!0),n=ug(l,0,e._dayOfYear),e._a[fl]=n.getUTCMonth(),e._a[ys]=n.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=r[t]=a[t];for(;t<7;t++)e._a[t]=r[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[Or]===24&&e._a[_o]===0&&e._a[dl]===0&&e._a[xf]===0&&(e._nextDay=!0,e._a[Or]=0),e._d=(e._useUTC?ug:xX).apply(null,r),s=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[Or]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==s&&(It(e).weekdayMismatch=!0)}}function pZ(e){var t,n,r,a,s,l,f,m,p;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(s=1,l=4,n=jh(t.GG,e._a[fi],fg(Gn(),1,4).year),r=jh(t.W,1),a=jh(t.E,1),(a<1||a>7)&&(m=!0)):(s=e._locale._week.dow,l=e._locale._week.doy,p=fg(Gn(),s,l),n=jh(t.gg,e._a[fi],p.year),r=jh(t.w,p.week),t.d!=null?(a=t.d,(a<0||a>6)&&(m=!0)):t.e!=null?(a=t.e+s,(t.e<0||t.e>6)&&(m=!0)):a=s),r<1||r>gl(n,s,l)?It(e)._overflowWeeks=!0:m!=null?It(e)._overflowWeekday=!0:(f=bk(n,r,a,s,l),e._a[fi]=f.year,e._dayOfYear=f.dayOfYear)}Ue.ISO_8601=function(){};Ue.RFC_2822=function(){};function DC(e){if(e._f===Ue.ISO_8601){Ck(e);return}if(e._f===Ue.RFC_2822){Ek(e);return}e._a=[],It(e).empty=!0;var t=""+e._i,n,r,a,s,l,f=t.length,m=0,p,g;for(a=sk(e._f,e._locale).match(xC)||[],g=a.length,n=0;n<g;n++)s=a[n],r=(t.match(tX(s,e))||[])[0],r&&(l=t.substr(0,t.indexOf(r)),l.length>0&&It(e).unusedInput.push(l),t=t.slice(t.indexOf(r)+r.length),m+=r.length),qh[s]?(r?It(e).empty=!1:It(e).unusedTokens.push(s),rX(s,r,e)):e._strict&&!r&&It(e).unusedTokens.push(s);It(e).charsLeftOver=f-m,t.length>0&&It(e).unusedInput.push(t),e._a[Or]<=12&&It(e).bigHour===!0&&e._a[Or]>0&&(It(e).bigHour=void 0),It(e).parsedDateParts=e._a.slice(0),It(e).meridiem=e._meridiem,e._a[Or]=mZ(e._locale,e._a[Or],e._meridiem),p=It(e).era,p!==null&&(e._a[fi]=e._locale.erasConvertYear(p,e._a[fi])),MC(e),OC(e)}function mZ(e,t,n){var r;return n==null?t:e.meridiemHour!=null?e.meridiemHour(t,n):(e.isPM!=null&&(r=e.isPM(n),r&&t<12&&(t+=12),!r&&t===12&&(t=0)),t)}function gZ(e){var t,n,r,a,s,l,f=!1,m=e._f.length;if(m===0){It(e).invalidFormat=!0,e._d=new Date(NaN);return}for(a=0;a<m;a++)s=0,l=!1,t=vC({},e),e._useUTC!=null&&(t._useUTC=e._useUTC),t._f=e._f[a],DC(t),yC(t)&&(l=!0),s+=It(t).charsLeftOver,s+=It(t).unusedTokens.length*10,It(t).score=s,f?s<r&&(r=s,n=t):(r==null||s<r||l)&&(r=s,n=t,l&&(f=!0));Lc(e,n||t)}function yZ(e){if(!e._d){var t=wC(e._i),n=t.day===void 0?t.date:t.day;e._a=ik([t.year,t.month,n,t.hour,t.minute,t.second,t.millisecond],function(r){return r&&parseInt(r,10)}),MC(e)}}function vZ(e){var t=new Vg(OC(Tk(e)));return t._nextDay&&(t.add(1,"d"),t._nextDay=void 0),t}function Tk(e){var t=e._i,n=e._f;return e._locale=e._locale||El(e._l),t===null||n===void 0&&t===""?Ex({nullInput:!0}):(typeof t=="string"&&(e._i=t=e._locale.preparse(t)),Ao(t)?new Vg(OC(t)):(Hg(t)?e._d=t:Ro(n)?gZ(e):n?DC(e):bZ(e),yC(e)||(e._d=null),e))}function bZ(e){var t=e._i;Wi(t)?e._d=new Date(Ue.now()):Hg(t)?e._d=new Date(t.valueOf()):typeof t=="string"?dZ(e):Ro(t)?(e._a=ik(t.slice(0),function(n){return parseInt(n,10)}),MC(e)):Tf(t)?yZ(e):wl(t)?e._d=new Date(t):Ue.createFromInputFallback(e)}function Rk(e,t,n,r,a){var s={};return(t===!0||t===!1)&&(r=t,t=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Tf(e)&&gC(e)||Ro(e)&&e.length===0)&&(e=void 0),s._isAMomentObject=!0,s._useUTC=s._isUTC=a,s._l=n,s._i=e,s._f=t,s._strict=r,vZ(s)}function Gn(e,t,n,r){return Rk(e,t,n,r,!1)}var xZ=Ka("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:Ex()}),wZ=Ka("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=Gn.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:Ex()});function Ak(e,t){var n,r;if(t.length===1&&Ro(t[0])&&(t=t[0]),!t.length)return Gn();for(n=t[0],r=1;r<t.length;++r)(!t[r].isValid()||t[r][e](n))&&(n=t[r]);return n}function SZ(){var e=[].slice.call(arguments,0);return Ak("isBefore",e)}function _Z(){var e=[].slice.call(arguments,0);return Ak("isAfter",e)}var CZ=function(){return Date.now?Date.now():+new Date},A0=["year","quarter","month","week","day","hour","minute","second","millisecond"];function EZ(e){var t,n=!1,r,a=A0.length;for(t in e)if(mn(e,t)&&!(wr.call(A0,t)!==-1&&(e[t]==null||!isNaN(e[t]))))return!1;for(r=0;r<a;++r)if(e[A0[r]]){if(n)return!1;parseFloat(e[A0[r]])!==Zt(e[A0[r]])&&(n=!0)}return!0}function TZ(){return this._isValid}function RZ(){return Do(NaN)}function jx(e){var t=wC(e),n=t.year||0,r=t.quarter||0,a=t.month||0,s=t.week||t.isoWeek||0,l=t.day||0,f=t.hour||0,m=t.minute||0,p=t.second||0,g=t.millisecond||0;this._isValid=EZ(t),this._milliseconds=+g+p*1e3+m*6e4+f*1e3*60*60,this._days=+l+s*7,this._months=+a+r*3+n*12,this._data={},this._locale=El(),this._bubble()}function tb(e){return e instanceof jx}function $S(e){return e<0?Math.round(-1*e)*-1:Math.round(e)}function AZ(e,t,n){var r=Math.min(e.length,t.length),a=Math.abs(e.length-t.length),s=0,l;for(l=0;l<r;l++)Zt(e[l])!==Zt(t[l])&&s++;return s+a}function kk(e,t){it(e,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+_s(~~(n/60),2)+t+_s(~~n%60,2)})}kk("Z",":");kk("ZZ","");qe("Z",Ox);qe("ZZ",Ox);Ln(["Z","ZZ"],function(e,t,n){n._useUTC=!0,n._tzm=jC(Ox,e)});var kZ=/([\+\-]|\d\d)/gi;function jC(e,t){var n=(t||"").match(e),r,a,s;return n===null?null:(r=n[n.length-1]||[],a=(r+"").match(kZ)||["-",0,0],s=+(a[1]*60)+Zt(a[2]),s===0?0:a[0]==="+"?s:-s)}function IC(e,t){var n,r;return t._isUTC?(n=t.clone(),r=(Ao(e)||Hg(e)?e.valueOf():Gn(e).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),Ue.updateOffset(n,!1),n):Gn(e).local()}function HS(e){return-Math.round(e._d.getTimezoneOffset())}Ue.updateOffset=function(){};function OZ(e,t,n){var r=this._offset||0,a;if(!this.isValid())return e!=null?this:NaN;if(e!=null){if(typeof e=="string"){if(e=jC(Ox,e),e===null)return this}else Math.abs(e)<16&&!n&&(e=e*60);return!this._isUTC&&t&&(a=HS(this)),this._offset=e,this._isUTC=!0,a!=null&&this.add(a,"m"),r!==e&&(!t||this._changeInProgress?Dk(this,Do(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,Ue.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:HS(this)}function MZ(e,t){return e!=null?(typeof e!="string"&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}function DZ(e){return this.utcOffset(0,e)}function jZ(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(HS(this),"m")),this}function IZ(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var e=jC(QK,this._i);e!=null?this.utcOffset(e):this.utcOffset(0,!0)}return this}function LZ(e){return this.isValid()?(e=e?Gn(e).utcOffset():0,(this.utcOffset()-e)%60===0):!1}function PZ(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function NZ(){if(!Wi(this._isDSTShifted))return this._isDSTShifted;var e={},t;return vC(e,this),e=Tk(e),e._a?(t=e._isUTC?As(e._a):Gn(e._a),this._isDSTShifted=this.isValid()&&AZ(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function FZ(){return this.isValid()?!this._isUTC:!1}function BZ(){return this.isValid()?this._isUTC:!1}function Ok(){return this.isValid()?this._isUTC&&this._offset===0:!1}var zZ=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,UZ=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Do(e,t){var n=e,r=null,a,s,l;return tb(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:wl(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=zZ.exec(e))?(a=r[1]==="-"?-1:1,n={y:0,d:Zt(r[ys])*a,h:Zt(r[Or])*a,m:Zt(r[_o])*a,s:Zt(r[dl])*a,ms:Zt($S(r[xf]*1e3))*a}):(r=UZ.exec(e))?(a=r[1]==="-"?-1:1,n={y:uf(r[2],a),M:uf(r[3],a),w:uf(r[4],a),d:uf(r[5],a),h:uf(r[6],a),m:uf(r[7],a),s:uf(r[8],a)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(l=$Z(Gn(n.from),Gn(n.to)),n={},n.ms=l.milliseconds,n.M=l.months),s=new jx(n),tb(e)&&mn(e,"_locale")&&(s._locale=e._locale),tb(e)&&mn(e,"_isValid")&&(s._isValid=e._isValid),s}Do.fn=jx.prototype;Do.invalid=RZ;function uf(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function _T(e,t){var n={};return n.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(n.months,"M").isAfter(t)&&--n.months,n.milliseconds=+t-+e.clone().add(n.months,"M"),n}function $Z(e,t){var n;return e.isValid()&&t.isValid()?(t=IC(t,e),e.isBefore(t)?n=_T(e,t):(n=_T(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function Mk(e,t){return function(n,r){var a,s;return r!==null&&!isNaN(+r)&&(ok(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),s=n,n=r,r=s),a=Do(n,r),Dk(this,a,e),this}}function Dk(e,t,n,r){var a=t._milliseconds,s=$S(t._days),l=$S(t._months);e.isValid()&&(r=r??!0,l&&gk(e,cg(e,"Month")+l*n),s&&hk(e,"Date",cg(e,"Date")+s*n),a&&e._d.setTime(e._d.valueOf()+a*n),r&&Ue.updateOffset(e,s||l))}var HZ=Mk(1,"add"),VZ=Mk(-1,"subtract");function jk(e){return typeof e=="string"||e instanceof String}function WZ(e){return Ao(e)||Hg(e)||jk(e)||wl(e)||YZ(e)||GZ(e)||e===null||e===void 0}function GZ(e){var t=Tf(e)&&!gC(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],a,s,l=r.length;for(a=0;a<l;a+=1)s=r[a],n=n||mn(e,s);return t&&n}function YZ(e){var t=Ro(e),n=!1;return t&&(n=e.filter(function(r){return!wl(r)&&jk(e)}).length===0),t&&n}function qZ(e){var t=Tf(e)&&!gC(e),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],a,s;for(a=0;a<r.length;a+=1)s=r[a],n=n||mn(e,s);return t&&n}function KZ(e,t){var n=e.diff(t,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function XZ(e,t){arguments.length===1&&(arguments[0]?WZ(arguments[0])?(e=arguments[0],t=void 0):qZ(arguments[0])&&(t=arguments[0],e=void 0):(e=void 0,t=void 0));var n=e||Gn(),r=IC(n,this).startOf("day"),a=Ue.calendarFormat(this,r)||"sameElse",s=t&&(ks(t[a])?t[a].call(this,n):t[a]);return this.format(s||this.localeData().calendar(a,this,Gn(n)))}function ZZ(){return new Vg(this)}function JZ(e,t){var n=Ao(e)?e:Gn(e);return this.isValid()&&n.isValid()?(t=Xa(t)||"millisecond",t==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(t).valueOf()):!1}function QZ(e,t){var n=Ao(e)?e:Gn(e);return this.isValid()&&n.isValid()?(t=Xa(t)||"millisecond",t==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(t).valueOf()<n.valueOf()):!1}function eJ(e,t,n,r){var a=Ao(e)?e:Gn(e),s=Ao(t)?t:Gn(t);return this.isValid()&&a.isValid()&&s.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(a,n):!this.isBefore(a,n))&&(r[1]===")"?this.isBefore(s,n):!this.isAfter(s,n))):!1}function tJ(e,t){var n=Ao(e)?e:Gn(e),r;return this.isValid()&&n.isValid()?(t=Xa(t)||"millisecond",t==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(t).valueOf()<=r&&r<=this.clone().endOf(t).valueOf())):!1}function nJ(e,t){return this.isSame(e,t)||this.isAfter(e,t)}function rJ(e,t){return this.isSame(e,t)||this.isBefore(e,t)}function iJ(e,t,n){var r,a,s;if(!this.isValid())return NaN;if(r=IC(e,this),!r.isValid())return NaN;switch(a=(r.utcOffset()-this.utcOffset())*6e4,t=Xa(t),t){case"year":s=nb(this,r)/12;break;case"month":s=nb(this,r);break;case"quarter":s=nb(this,r)/3;break;case"second":s=(this-r)/1e3;break;case"minute":s=(this-r)/6e4;break;case"hour":s=(this-r)/36e5;break;case"day":s=(this-r-a)/864e5;break;case"week":s=(this-r-a)/6048e5;break;default:s=this-r}return n?s:Wa(s)}function nb(e,t){if(e.date()<t.date())return-nb(t,e);var n=(t.year()-e.year())*12+(t.month()-e.month()),r=e.clone().add(n,"months"),a,s;return t-r<0?(a=e.clone().add(n-1,"months"),s=(t-r)/(r-a)):(a=e.clone().add(n+1,"months"),s=(t-r)/(a-r)),-(n+s)||0}Ue.defaultFormat="YYYY-MM-DDTHH:mm:ssZ";Ue.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function aJ(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function oJ(e){if(!this.isValid())return null;var t=e!==!0,n=t?this.clone().utc():this;return n.year()<0||n.year()>9999?eb(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ks(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",eb(n,"Z")):eb(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function sJ(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,a,s;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",a="-MM-DD[T]HH:mm:ss.SSS",s=t+'[")]',this.format(n+r+a+s)}function lJ(e){e||(e=this.isUtc()?Ue.defaultFormatUtc:Ue.defaultFormat);var t=eb(this,e);return this.localeData().postformat(t)}function cJ(e,t){return this.isValid()&&(Ao(e)&&e.isValid()||Gn(e).isValid())?Do({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function uJ(e){return this.from(Gn(),e)}function fJ(e,t){return this.isValid()&&(Ao(e)&&e.isValid()||Gn(e).isValid())?Do({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function dJ(e){return this.to(Gn(),e)}function Ik(e){var t;return e===void 0?this._locale._abbr:(t=El(e),t!=null&&(this._locale=t),this)}var Lk=Ka("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Pk(){return this._locale}var Ob=1e3,Kh=60*Ob,Mb=60*Kh,Nk=(365*400+97)*24*Mb;function Xh(e,t){return(e%t+t)%t}function Fk(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-Nk:new Date(e,t,n).valueOf()}function Bk(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-Nk:Date.UTC(e,t,n)}function hJ(e){var t,n;if(e=Xa(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Bk:Fk,e){case"year":t=n(this.year(),0,1);break;case"quarter":t=n(this.year(),this.month()-this.month()%3,1);break;case"month":t=n(this.year(),this.month(),1);break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=n(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Xh(t+(this._isUTC?0:this.utcOffset()*Kh),Mb);break;case"minute":t=this._d.valueOf(),t-=Xh(t,Kh);break;case"second":t=this._d.valueOf(),t-=Xh(t,Ob);break}return this._d.setTime(t),Ue.updateOffset(this,!0),this}function pJ(e){var t,n;if(e=Xa(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?Bk:Fk,e){case"year":t=n(this.year()+1,0,1)-1;break;case"quarter":t=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=n(this.year(),this.month()+1,1)-1;break;case"week":t=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=Mb-Xh(t+(this._isUTC?0:this.utcOffset()*Kh),Mb)-1;break;case"minute":t=this._d.valueOf(),t+=Kh-Xh(t,Kh)-1;break;case"second":t=this._d.valueOf(),t+=Ob-Xh(t,Ob)-1;break}return this._d.setTime(t),Ue.updateOffset(this,!0),this}function mJ(){return this._d.valueOf()-(this._offset||0)*6e4}function gJ(){return Math.floor(this.valueOf()/1e3)}function yJ(){return new Date(this.valueOf())}function vJ(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function bJ(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function xJ(){return this.isValid()?this.toISOString():null}function wJ(){return yC(this)}function SJ(){return Lc({},It(this))}function _J(){return It(this).overflow}function CJ(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}it("N",0,0,"eraAbbr");it("NN",0,0,"eraAbbr");it("NNN",0,0,"eraAbbr");it("NNNN",0,0,"eraName");it("NNNNN",0,0,"eraNarrow");it("y",["y",1],"yo","eraYear");it("y",["yy",2],0,"eraYear");it("y",["yyy",3],0,"eraYear");it("y",["yyyy",4],0,"eraYear");qe("N",LC);qe("NN",LC);qe("NNN",LC);qe("NNNN",LJ);qe("NNNNN",PJ);Ln(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var a=n._locale.erasParse(e,r,n._strict);a?It(n).era=a:It(n).invalidEra=e});qe("y",gp);qe("yy",gp);qe("yyy",gp);qe("yyyy",gp);qe("yo",NJ);Ln(["y","yy","yyy","yyyy"],fi);Ln(["yo"],function(e,t,n,r){var a;n._locale._eraYearOrdinalRegex&&(a=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[fi]=n._locale.eraYearOrdinalParse(e,a):t[fi]=parseInt(e,10)});function EJ(e,t){var n,r,a,s=this._eras||El("en")._eras;for(n=0,r=s.length;n<r;++n){switch(typeof s[n].since){case"string":a=Ue(s[n].since).startOf("day"),s[n].since=a.valueOf();break}switch(typeof s[n].until){case"undefined":s[n].until=1/0;break;case"string":a=Ue(s[n].until).startOf("day").valueOf(),s[n].until=a.valueOf();break}}return s}function TJ(e,t,n){var r,a,s=this.eras(),l,f,m;for(e=e.toUpperCase(),r=0,a=s.length;r<a;++r)if(l=s[r].name.toUpperCase(),f=s[r].abbr.toUpperCase(),m=s[r].narrow.toUpperCase(),n)switch(t){case"N":case"NN":case"NNN":if(f===e)return s[r];break;case"NNNN":if(l===e)return s[r];break;case"NNNNN":if(m===e)return s[r];break}else if([l,f,m].indexOf(e)>=0)return s[r]}function RJ(e,t){var n=e.since<=e.until?1:-1;return t===void 0?Ue(e.since).year():Ue(e.since).year()+(t-e.offset)*n}function AJ(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].name;return""}function kJ(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].narrow;return""}function OJ(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;e<t;++e)if(n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return r[e].abbr;return""}function MJ(){var e,t,n,r,a=this.localeData().eras();for(e=0,t=a.length;e<t;++e)if(n=a[e].since<=a[e].until?1:-1,r=this.clone().startOf("day").valueOf(),a[e].since<=r&&r<=a[e].until||a[e].until<=r&&r<=a[e].since)return(this.year()-Ue(a[e].since).year())*n+a[e].offset;return this.year()}function DJ(e){return mn(this,"_erasNameRegex")||PC.call(this),e?this._erasNameRegex:this._erasRegex}function jJ(e){return mn(this,"_erasAbbrRegex")||PC.call(this),e?this._erasAbbrRegex:this._erasRegex}function IJ(e){return mn(this,"_erasNarrowRegex")||PC.call(this),e?this._erasNarrowRegex:this._erasRegex}function LC(e,t){return t.erasAbbrRegex(e)}function LJ(e,t){return t.erasNameRegex(e)}function PJ(e,t){return t.erasNarrowRegex(e)}function NJ(e,t){return t._eraYearOrdinalRegex||gp}function PC(){var e=[],t=[],n=[],r=[],a,s,l,f,m,p=this.eras();for(a=0,s=p.length;a<s;++a)l=ml(p[a].name),f=ml(p[a].abbr),m=ml(p[a].narrow),t.push(l),e.push(f),n.push(m),r.push(l),r.push(f),r.push(m);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+t.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+e.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}it(0,["gg",2],0,function(){return this.weekYear()%100});it(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Ix(e,t){it(0,[e,e.length],0,t)}Ix("gggg","weekYear");Ix("ggggg","weekYear");Ix("GGGG","isoWeekYear");Ix("GGGGG","isoWeekYear");qe("G",kx);qe("g",kx);qe("GG",qn,xa);qe("gg",qn,xa);qe("GGGG",_C,SC);qe("gggg",_C,SC);qe("GGGGG",Ax,Tx);qe("ggggg",Ax,Tx);Gg(["gggg","ggggg","GGGG","GGGGG"],function(e,t,n,r){t[r.substr(0,2)]=Zt(e)});Gg(["gg","GG"],function(e,t,n,r){t[r]=Ue.parseTwoDigitYear(e)});function FJ(e){return zk.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function BJ(e){return zk.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)}function zJ(){return gl(this.year(),1,4)}function UJ(){return gl(this.isoWeekYear(),1,4)}function $J(){var e=this.localeData()._week;return gl(this.year(),e.dow,e.doy)}function HJ(){var e=this.localeData()._week;return gl(this.weekYear(),e.dow,e.doy)}function zk(e,t,n,r,a){var s;return e==null?fg(this,r,a).year:(s=gl(e,r,a),t>s&&(t=s),VJ.call(this,e,t,n,r,a))}function VJ(e,t,n,r,a){var s=bk(e,t,n,r,a),l=ug(s.year,0,s.dayOfYear);return this.year(l.getUTCFullYear()),this.month(l.getUTCMonth()),this.date(l.getUTCDate()),this}it("Q",0,"Qo","quarter");qe("Q",lk);Ln("Q",function(e,t){t[fl]=(Zt(e)-1)*3});function WJ(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}it("D",["DD",2],"Do","date");qe("D",qn,yp);qe("DD",qn,xa);qe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});Ln(["D","DD"],ys);Ln("Do",function(e,t){t[ys]=Zt(e.match(qn)[0])});var Uk=vp("Date",!0);it("DDD",["DDDD",3],"DDDo","dayOfYear");qe("DDD",Rx);qe("DDDD",ck);Ln(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Zt(e)});function GJ(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}it("m",["mm",2],0,"minute");qe("m",qn,CC);qe("mm",qn,xa);Ln(["m","mm"],_o);var YJ=vp("Minutes",!1);it("s",["ss",2],0,"second");qe("s",qn,CC);qe("ss",qn,xa);Ln(["s","ss"],dl);var qJ=vp("Seconds",!1);it("S",0,0,function(){return~~(this.millisecond()/100)});it(0,["SS",2],0,function(){return~~(this.millisecond()/10)});it(0,["SSS",3],0,"millisecond");it(0,["SSSS",4],0,function(){return this.millisecond()*10});it(0,["SSSSS",5],0,function(){return this.millisecond()*100});it(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});it(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});it(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});it(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});qe("S",Rx,lk);qe("SS",Rx,xa);qe("SSS",Rx,ck);var Pc,$k;for(Pc="SSSS";Pc.length<=9;Pc+="S")qe(Pc,gp);function KJ(e,t){t[xf]=Zt(("0."+e)*1e3)}for(Pc="S";Pc.length<=9;Pc+="S")Ln(Pc,KJ);$k=vp("Milliseconds",!1);it("z",0,0,"zoneAbbr");it("zz",0,0,"zoneName");function XJ(){return this._isUTC?"UTC":""}function ZJ(){return this._isUTC?"Coordinated Universal Time":""}var Me=Vg.prototype;Me.add=HZ;Me.calendar=XZ;Me.clone=ZZ;Me.diff=iJ;Me.endOf=pJ;Me.format=lJ;Me.from=cJ;Me.fromNow=uJ;Me.to=fJ;Me.toNow=dJ;Me.get=sX;Me.invalidAt=_J;Me.isAfter=JZ;Me.isBefore=QZ;Me.isBetween=eJ;Me.isSame=tJ;Me.isSameOrAfter=nJ;Me.isSameOrBefore=rJ;Me.isValid=wJ;Me.lang=Lk;Me.locale=Ik;Me.localeData=Pk;Me.max=wZ;Me.min=xZ;Me.parsingFlags=SJ;Me.set=lX;Me.startOf=hJ;Me.subtract=VZ;Me.toArray=vJ;Me.toObject=bJ;Me.toDate=yJ;Me.toISOString=oJ;Me.inspect=sJ;typeof Symbol<"u"&&Symbol.for!=null&&(Me[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Me.toJSON=xJ;Me.toString=aJ;Me.unix=gJ;Me.valueOf=mJ;Me.creationData=CJ;Me.eraName=AJ;Me.eraNarrow=kJ;Me.eraAbbr=OJ;Me.eraYear=MJ;Me.year=dk;Me.isLeapYear=oX;Me.weekYear=FJ;Me.isoWeekYear=BJ;Me.quarter=Me.quarters=WJ;Me.month=yk;Me.daysInMonth=yX;Me.week=Me.weeks=EX;Me.isoWeek=Me.isoWeeks=TX;Me.weeksInYear=$J;Me.weeksInWeekYear=HJ;Me.isoWeeksInYear=zJ;Me.isoWeeksInISOWeekYear=UJ;Me.date=Uk;Me.day=Me.days=BX;Me.weekday=zX;Me.isoWeekday=UX;Me.dayOfYear=GJ;Me.hour=Me.hours=qX;Me.minute=Me.minutes=YJ;Me.second=Me.seconds=qJ;Me.millisecond=Me.milliseconds=$k;Me.utcOffset=OZ;Me.utc=DZ;Me.local=jZ;Me.parseZone=IZ;Me.hasAlignedHourOffset=LZ;Me.isDST=PZ;Me.isLocal=FZ;Me.isUtcOffset=BZ;Me.isUtc=Ok;Me.isUTC=Ok;Me.zoneAbbr=XJ;Me.zoneName=ZJ;Me.dates=Ka("dates accessor is deprecated. Use date instead.",Uk);Me.months=Ka("months accessor is deprecated. Use month instead",yk);Me.years=Ka("years accessor is deprecated. Use year instead",dk);Me.zone=Ka("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",MZ);Me.isDSTShifted=Ka("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",NZ);function JJ(e){return Gn(e*1e3)}function QJ(){return Gn.apply(null,arguments).parseZone()}function Hk(e){return e}var gn=bC.prototype;gn.calendar=FK;gn.longDateFormat=$K;gn.invalidDate=VK;gn.ordinal=YK;gn.preparse=Hk;gn.postformat=Hk;gn.relativeTime=KK;gn.pastFuture=XK;gn.set=PK;gn.eras=EJ;gn.erasParse=TJ;gn.erasConvertYear=RJ;gn.erasAbbrRegex=jJ;gn.erasNameRegex=DJ;gn.erasNarrowRegex=IJ;gn.months=hX;gn.monthsShort=pX;gn.monthsParse=gX;gn.monthsRegex=bX;gn.monthsShortRegex=vX;gn.week=wX;gn.firstDayOfYear=CX;gn.firstDayOfWeek=_X;gn.weekdays=IX;gn.weekdaysMin=PX;gn.weekdaysShort=LX;gn.weekdaysParse=FX;gn.weekdaysRegex=$X;gn.weekdaysShortRegex=HX;gn.weekdaysMinRegex=VX;gn.isPM=GX;gn.meridiem=KX;function Db(e,t,n,r){var a=El(),s=As().set(r,t);return a[n](s,e)}function Vk(e,t,n){if(wl(e)&&(t=e,e=void 0),e=e||"",t!=null)return Db(e,t,n,"month");var r,a=[];for(r=0;r<12;r++)a[r]=Db(e,r,n,"month");return a}function NC(e,t,n,r){typeof e=="boolean"?(wl(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,wl(t)&&(n=t,t=void 0),t=t||"");var a=El(),s=e?a._week.dow:0,l,f=[];if(n!=null)return Db(t,(n+s)%7,r,"day");for(l=0;l<7;l++)f[l]=Db(t,(l+s)%7,r,"day");return f}function eQ(e,t){return Vk(e,t,"months")}function tQ(e,t){return Vk(e,t,"monthsShort")}function nQ(e,t,n){return NC(e,t,n,"weekdays")}function rQ(e,t,n){return NC(e,t,n,"weekdaysShort")}function iQ(e,t,n){return NC(e,t,n,"weekdaysMin")}Nc("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,n=Zt(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});Ue.lang=Ka("moment.lang is deprecated. Use moment.locale instead.",Nc);Ue.langData=Ka("moment.langData is deprecated. Use moment.localeData instead.",El);var sl=Math.abs;function aQ(){var e=this._data;return this._milliseconds=sl(this._milliseconds),this._days=sl(this._days),this._months=sl(this._months),e.milliseconds=sl(e.milliseconds),e.seconds=sl(e.seconds),e.minutes=sl(e.minutes),e.hours=sl(e.hours),e.months=sl(e.months),e.years=sl(e.years),this}function Wk(e,t,n,r){var a=Do(t,n);return e._milliseconds+=r*a._milliseconds,e._days+=r*a._days,e._months+=r*a._months,e._bubble()}function oQ(e,t){return Wk(this,e,t,1)}function sQ(e,t){return Wk(this,e,t,-1)}function CT(e){return e<0?Math.floor(e):Math.ceil(e)}function lQ(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,a,s,l,f,m;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=CT(VS(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,a=Wa(e/1e3),r.seconds=a%60,s=Wa(a/60),r.minutes=s%60,l=Wa(s/60),r.hours=l%24,t+=Wa(l/24),m=Wa(Gk(t)),n+=m,t-=CT(VS(m)),f=Wa(n/12),n%=12,r.days=t,r.months=n,r.years=f,this}function Gk(e){return e*4800/146097}function VS(e){return e*146097/4800}function cQ(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Xa(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+Gk(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(VS(this._months)),e){case"week":return t/7+r/6048e5;case"day":return t+r/864e5;case"hour":return t*24+r/36e5;case"minute":return t*1440+r/6e4;case"second":return t*86400+r/1e3;case"millisecond":return Math.floor(t*864e5)+r;default:throw new Error("Unknown unit "+e)}}function Tl(e){return function(){return this.as(e)}}var Yk=Tl("ms"),uQ=Tl("s"),fQ=Tl("m"),dQ=Tl("h"),hQ=Tl("d"),pQ=Tl("w"),mQ=Tl("M"),gQ=Tl("Q"),yQ=Tl("y"),vQ=Yk;function bQ(){return Do(this)}function xQ(e){return e=Xa(e),this.isValid()?this[e+"s"]():NaN}function If(e){return function(){return this.isValid()?this._data[e]:NaN}}var wQ=If("milliseconds"),SQ=If("seconds"),_Q=If("minutes"),CQ=If("hours"),EQ=If("days"),TQ=If("months"),RQ=If("years");function AQ(){return Wa(this.days()/7)}var cl=Math.round,Uh={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function kQ(e,t,n,r,a){return a.relativeTime(t||1,!!n,e,r)}function OQ(e,t,n,r){var a=Do(e).abs(),s=cl(a.as("s")),l=cl(a.as("m")),f=cl(a.as("h")),m=cl(a.as("d")),p=cl(a.as("M")),g=cl(a.as("w")),b=cl(a.as("y")),S=s<=n.ss&&["s",s]||s<n.s&&["ss",s]||l<=1&&["m"]||l<n.m&&["mm",l]||f<=1&&["h"]||f<n.h&&["hh",f]||m<=1&&["d"]||m<n.d&&["dd",m];return n.w!=null&&(S=S||g<=1&&["w"]||g<n.w&&["ww",g]),S=S||p<=1&&["M"]||p<n.M&&["MM",p]||b<=1&&["y"]||["yy",b],S[2]=t,S[3]=+e>0,S[4]=r,kQ.apply(null,S)}function MQ(e){return e===void 0?cl:typeof e=="function"?(cl=e,!0):!1}function DQ(e,t){return Uh[e]===void 0?!1:t===void 0?Uh[e]:(Uh[e]=t,e==="s"&&(Uh.ss=t-1),!0)}function jQ(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Uh,a,s;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},Uh,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),a=this.localeData(),s=OQ(this,!n,r,a),n&&(s=a.pastFuture(+this,s)),a.postformat(s)}var B2=Math.abs;function Th(e){return(e>0)-(e<0)||+e}function Lx(){if(!this.isValid())return this.localeData().invalidDate();var e=B2(this._milliseconds)/1e3,t=B2(this._days),n=B2(this._months),r,a,s,l,f=this.asSeconds(),m,p,g,b;return f?(r=Wa(e/60),a=Wa(r/60),e%=60,r%=60,s=Wa(n/12),n%=12,l=e?e.toFixed(3).replace(/\.?0+$/,""):"",m=f<0?"-":"",p=Th(this._months)!==Th(f)?"-":"",g=Th(this._days)!==Th(f)?"-":"",b=Th(this._milliseconds)!==Th(f)?"-":"",m+"P"+(s?p+s+"Y":"")+(n?p+n+"M":"")+(t?g+t+"D":"")+(a||r||e?"T":"")+(a?b+a+"H":"")+(r?b+r+"M":"")+(e?b+l+"S":"")):"P0D"}var on=jx.prototype;on.isValid=TZ;on.abs=aQ;on.add=oQ;on.subtract=sQ;on.as=cQ;on.asMilliseconds=Yk;on.asSeconds=uQ;on.asMinutes=fQ;on.asHours=dQ;on.asDays=hQ;on.asWeeks=pQ;on.asMonths=mQ;on.asQuarters=gQ;on.asYears=yQ;on.valueOf=vQ;on._bubble=lQ;on.clone=bQ;on.get=xQ;on.milliseconds=wQ;on.seconds=SQ;on.minutes=_Q;on.hours=CQ;on.days=EQ;on.weeks=AQ;on.months=TQ;on.years=RQ;on.humanize=jQ;on.toISOString=Lx;on.toString=Lx;on.toJSON=Lx;on.locale=Ik;on.localeData=Pk;on.toIsoString=Ka("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Lx);on.lang=Lk;it("X",0,0,"unix");it("x",0,0,"valueOf");qe("x",kx);qe("X",eX);Ln("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});Ln("x",function(e,t,n){n._d=new Date(Zt(e))});//! moment.js
+Ue.version="2.30.1";IK(Gn);Ue.fn=Me;Ue.min=SZ;Ue.max=_Z;Ue.now=CZ;Ue.utc=As;Ue.unix=JJ;Ue.months=eQ;Ue.isDate=Hg;Ue.locale=Nc;Ue.invalid=Ex;Ue.duration=Do;Ue.isMoment=Ao;Ue.weekdays=nQ;Ue.parseZone=QJ;Ue.localeData=El;Ue.isDuration=tb;Ue.monthsShort=tQ;Ue.weekdaysMin=iQ;Ue.defineLocale=kC;Ue.updateLocale=QX;Ue.locales=eZ;Ue.weekdaysShort=rQ;Ue.normalizeUnits=Xa;Ue.relativeTimeRounding=MQ;Ue.relativeTimeThreshold=DQ;Ue.calendarFormat=KZ;Ue.prototype=Me;Ue.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function IQ(e,t){const n=new Date,r=new Date(e),a=Math.floor((n.getTime()-r.getTime())/1e3);return a<20?t:a<60?`${a}s`:a<3600?`${Math.floor(a/60)}m`:a<86400?`${Math.floor(a/3600)}h`:a<2592e3?`${Math.floor(a/86400)}d`:a<31536e3?`${Math.floor(a/2592e3)}mo`:`${Math.floor(a/31536e3)}y`}function LQ({time:e,fontSize:t=12,fontWeight:n=400,color:r="#737373",lean:a,justNowText:s="Just now"}){return a?v.jsx("span",{style:{fontSize:t,fontWeight:n,color:r},children:IQ(e,s)}):v.jsx("span",{style:{fontSize:t,fontWeight:n,color:r},children:Ue(new Date(e)).fromNow()})}const PQ=({color:e="#8E8E8E",width:t=16,height:n=16})=>v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:t,height:n,viewBox:"0 0 24 24",fill:"none",stroke:e,strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"1"}),v.jsx("circle",{cx:"19",cy:"12",r:"1"}),v.jsx("circle",{cx:"5",cy:"12",r:"1"})]}),NQ=({color:e="#DC2626",size:t=20})=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:e,children:v.jsx("path",{d:"M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z"})}),FQ=({color:e="#000",size:t=20})=>v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",width:t,height:t,fill:e,children:v.jsx("path",{d:"M225.8 468.2l-2.5-2.3L48.1 303.2C17.4 274.7 0 234.7 0 192.8l0-3.3c0-70.4 50-130.8 119.2-144C158.6 37.9 198.9 47 231 69.6c9 6.4 17.4 13.8 25 22.3c4.2-4.8 8.7-9.2 13.5-13.3c3.7-3.2 7.5-6.2 11.5-9c0 0 0 0 0 0C313.1 47 353.4 37.9 392.8 45.4C462 58.6 512 119.1 512 189.5l0 3.3c0 41.9-17.4 81.9-48.1 110.4L288.7 465.9l-2.5 2.3c-8.2 7.6-19 11.9-30.2 11.9s-22-4.2-30.2-11.9zM239.1 145c-.4-.3-.7-.7-1-1.1l-17.8-20-.1-.1s0 0 0 0c-23.1-25.9-58-37.7-92-31.2C81.6 101.5 48 142.1 48 189.5l0 3.3c0 28.5 11.9 55.8 32.8 75.2L256 430.7 431.2 268c20.9-19.4 32.8-46.7 32.8-75.2l0-3.3c0-47.3-33.6-88-80.1-96.9c-34-6.5-69 5.4-92 31.2c0 0 0 0-.1 .1s0 0-.1 .1l-17.8 20c-.3 .4-.7 .7-1 1.1c-4.5 4.5-10.6 7-16.9 7s-12.4-2.5-16.9-7z"})}),FC={padding:0,margin:0},jb={margin:0,padding:0,borderStyle:"none",borderWidth:0,backgroundColor:"transparent",outline:"none",fontFamily:"inherit",cursor:"pointer"},ET={padding:0,margin:0,fontFamily:"inherit",cursor:"default"},BQ={padding:0,margin:0};function zQ({user:e,size:t=32,borderRadius:n}){return e?v.jsx("div",{style:{overflow:"hidden",width:t,height:t,borderRadius:n||t,borderWidth:1,borderColor:"#E6E6E6",display:"inline-block",flexShrink:0},children:v.jsx("img",{src:e.avatar??`https://api.dicebear.com/9.x/thumbs/svg?seed=${e.id}`,alt:e.name||e.id,style:{...BQ,width:"100%",height:"100%",objectFit:"cover"}})}):null}function Fv({style:e}){return v.jsxs(v.Fragment,{children:[v.jsx("style",{children:`
+      @keyframes pulse {
+        0% { opacity: 1; }
+        50% { opacity: 0.3; }
+        100% { opacity: 1; }
+      }
+    `}),v.jsx("div",{style:{animation:"pulse 1.5s ease-in-out infinite",width:"100%",height:16,borderRadius:8,backgroundColor:"#efefef",...e}})]})}function qk({extraLeftPadding:e=0}){return v.jsxs("div",{style:{display:"flex",gap:"8px",width:"100%",paddingLeft:16+e},children:[v.jsx(Fv,{style:{height:32,width:32,borderRadius:"50%"}}),v.jsxs("div",{style:{display:"grid",gap:"8px",flex:1},children:[v.jsx(Fv,{style:{width:"30%",height:12}}),v.jsx(Fv,{style:{height:12}}),v.jsx(Fv,{style:{width:"15%",height:12}})]})]})}const UQ=(e,t,n,r,a)=>{if(!t.length)return[e];const s=new RegExp(t.map(g=>`@${g.username.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}`).join("|"),"g"),l=e.split(s),f=Array.from(e.matchAll(s)),m=[];let p=0;return l.forEach((g,b)=>{g&&(m.push(g),p+=g.length);const S=f[b];if(S){const T=t.find(C=>`@${C.username}`===S[0]);T&&(m.push(v.jsx("span",{style:{color:"#1e40af"},onClick:()=>{T.id===n?r==null||r():a==null||a(T.id)},children:S[0]},p)),p+=S[0].length)}}),m},$Q=({totalRepliesCount:e,loadedRepliesCount:t,page:n,setPage:r,areRepliesVisible:a,setAreRepliesVisible:s})=>{const{styleConfig:l}=$g(),{viewRepliesPaddingTop:f,viewMoreRepliesText:m,hideRepliesText:p}=l.commentProps;let g=[],b="";switch(!0){case(!a&&n===0):g=["show","load-more"],b=m.replace("$count",e.toString());break;case(!a&&n>0):g=["show"],b=m.replace("$count",e.toString());break;case(a&&e>t):g=["load-more"],b=m.replace("$count",(e-t).toString());break;case(a&&e<=t):g=["hide"],b=p;break}return e===0?null:v.jsxs("button",{onClick:()=>{g.includes("show")&&s(!0),g.includes("hide")&&s(!1),g.includes("load-more")&&r(S=>S+1)},style:{...jb,paddingTop:f,paddingLeft:56,paddingRight:16,display:"flex",alignItems:"center",gap:12},children:[v.jsx("div",{style:{height:1,width:24,marginTop:"2px",backgroundColor:"#737373"}}),v.jsx("span",{style:{fontSize:12,color:"#737373",fontWeight:600},children:b})]})};function HQ({commentId:e}){var O,P,M,$;const{sortBy:t,entityCommentsTree:n,highlightedComment:r}=mp(),{styleConfig:a}=$g(),{replies:s,newReplies:l,page:f,setPage:m,loading:p}=bK({commentId:e,sortBy:t}),[g,b]=_.useState(!1),{repliesGap:S,repliesPaddingTop:T}=a.commentProps,C=(O=n[e])==null?void 0:O.comment,E=_.useMemo(()=>s.filter(B=>B.id!==(r==null?void 0:r.comment.id)),[s,r]),A=l.map(B=>v.jsx(W0,{comment:B,extraLeftPadding:42},B.id)),k=E.map(B=>v.jsx(W0,{comment:B,extraLeftPadding:42},B.id)),L=l.length>0||((P=r==null?void 0:r.parentComment)==null?void 0:P.id)===e||g&&E.length>0||p;return(!C||C.repliesCount===0)&&l.length===0?null:v.jsxs("div",{children:[L&&v.jsxs("div",{style:{paddingTop:T,display:"flex",flexDirection:"column",gap:S},children:[A,r&&((M=r.parentComment)==null?void 0:M.id)===e&&v.jsx(W0,{comment:r.comment,extraLeftPadding:42}),g&&k,p&&Array.from({length:Math.min(5,C.repliesCount-E.length)},(B,H)=>H+1).map(B=>v.jsx(qk,{extraLeftPadding:42},B))]}),v.jsx($Q,{totalRepliesCount:C.repliesCount-((($=r==null?void 0:r.parentComment)==null?void 0:$.id)===e?1:0),loadedRepliesCount:E.length,page:f,setPage:m,areRepliesVisible:g,setAreRepliesVisible:b})]})}const VQ=({userUpvoted:e,handleUpvote:t,handleRemoveUpvote:n,iconSize:r,fullColor:a,emptyColor:s,padding:l=0,paddingBottom:f=0})=>e?v.jsx("div",{onClick:n,style:{padding:l,paddingBottom:f,display:"flex",alignItems:"center",justifyContent:"center",...jb},children:v.jsx(NQ,{size:r,color:a})}):v.jsx("div",{onClick:t,style:{padding:l,paddingBottom:f,display:"flex",alignItems:"center",justifyContent:"center",...jb},children:v.jsx(FQ,{size:r,color:s})}),WQ=_.createContext({});function GQ(){return _.useContext(WQ)}const W0=Ei.memo(({comment:e,extraLeftPadding:t=0})=>{const{user:n}=nk(),{openCommentOptionsModal:r,openCommentOptionsModalOwner:a}=GQ(),{handleShallowReply:s,handleDeepReply:l,callbacks:f,highlightedComment:m}=mp(),{styleConfig:p}=$g(),{horizontalItemsGap:g,verticalItemsGap:b,authorAvatarSize:S,authorFontSize:T,authorFontWeight:C,authorFontColor:E,fromNowFontSize:A,fromNowFontColor:k,commentBodyFontSize:L,commentBodyFontColor:O,actionsItemGap:P,replyButtonFontSize:M,replyButtonFontWeight:$,replyButtonFontColor:B,heartIconSize:H,heartIconEmptyColor:q,heartIconFullColor:j,heartIconPaddingBottom:X,likesCountFontSize:K,likesCountFontWeight:ne,likesCountFontColor:le,justNowText:oe}=p.commentProps,[V,Q]=_.useState(!1),[Z,ae]=_.useState(e),{upvoteComment:U,removeCommentUpvote:W}=DK({comment:Z,setComment:ae}),te=()=>{if(!n){f!=null&&f.loginRequiredCallback||alert("Please login first.");return}if(!n.username&&(f!=null&&f.usernameRequiredCallback)){f.usernameRequiredCallback();return}try{U()}catch(xe){vf(xe,"Failed to upvote comment")}},de=()=>{if(!n){f!=null&&f.loginRequiredCallback||alert("Please login first.");return}try{W()}catch(xe){vf(xe,"Failed to upvote comment")}},Ee=!!(n&&Z.upvotes.includes(n.id));return v.jsxs("div",{style:{width:"100%",paddingTop:8,paddingBottom:8,backgroundColor:(m==null?void 0:m.comment.id)===Z.id?"#dbeafe":"transparent"},children:[v.jsx("div",{style:{paddingRight:16,paddingLeft:16+t},onMouseEnter:()=>Q(!0),onMouseLeave:()=>Q(!1),children:v.jsxs("div",{style:{gap:g,display:"flex",flexDirection:"row",alignItems:"flex-start"},children:[v.jsx("div",{onClick:()=>{var xe,Re;Z.user.id===(n==null?void 0:n.id)?(xe=f==null?void 0:f.currentUserClickCallback)==null||xe.call(f):(Re=f==null?void 0:f.otherUserClickCallback)==null||Re.call(f,Z.user.id)},children:v.jsx(zQ,{user:Z.user,borderRadius:S,size:S})}),v.jsxs("div",{style:{gap:b,flex:1,display:"flex",flexDirection:"column"},children:[v.jsxs("div",{style:{display:"flex",flexDirection:"row",alignItems:"baseline",gap:4,marginTop:2},children:[v.jsx("div",{onClick:()=>{var xe,Re;Z.user.id===(n==null?void 0:n.id)?(xe=f==null?void 0:f.currentUserClickCallback)==null||xe.call(f):(Re=f==null?void 0:f.otherUserClickCallback)==null||Re.call(f,Z.user.id)},style:{...ET,fontWeight:C,fontSize:T,color:E},children:TY(Z.user)}),v.jsx(LQ,{time:Z.createdAt,fontSize:A,color:k,justNowText:oe})]}),Z.content&&v.jsx("p",{style:{...ET,fontSize:L,color:O},children:UQ(Z.content,Z.mentions,n==null?void 0:n.id,f==null?void 0:f.currentUserClickCallback,f==null?void 0:f.otherUserClickCallback)}),Z.gif&&v.jsx("img",{src:Z.gif.gifUrl,alt:Z.gif.altText,style:{width:Z.gif.aspectRatio>1?200:200*Z.gif.aspectRatio,height:Z.gif.aspectRatio<1?200:200/Z.gif.aspectRatio,borderRadius:"0.25rem",overflow:"hidden",objectFit:"cover"}}),v.jsxs("div",{style:{...FC,gap:P,display:"flex",flexDirection:"row",alignItems:"center"},children:[v.jsx("button",{onClick:()=>Z.parentId?s(Z):l(Z),style:{...jb,color:B,fontSize:M,fontWeight:$},children:"Reply"}),V&&v.jsx("button",{onClick:()=>n&&n.id===Z.userId?a==null?void 0:a(Z):r==null?void 0:r(Z),style:{cursor:"pointer"},children:v.jsx(PQ,{})})]})]}),v.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center"},children:[v.jsx(VQ,{userUpvoted:Ee,handleUpvote:te,handleRemoveUpvote:de,iconSize:H,emptyColor:q,fullColor:j,padding:4,paddingBottom:X}),v.jsx("div",{style:{fontSize:K,color:le,fontWeight:ne},children:Z.upvotes.length})]})]})}),!Z.parentId&&v.jsx(HQ,{commentId:Z.id})]})});function YQ({data:e}){const{highlightedComment:t}=mp(),{styleConfig:n}=$g(),{backgroundColor:r,commentsGap:a}=n.commentFeedProps;return v.jsxs("div",{style:{...FC,display:"grid",gap:a,backgroundColor:r},children:[t?v.jsx(W0,{comment:t.parentComment??t.comment}):null,e==null?void 0:e.map(s=>v.jsx(W0,{comment:s},s.id))]})}function qQ(){const{styleConfig:e}=$g(),{backgroundColor:t,commentsGap:n}=e.commentFeedProps;return v.jsx("div",{style:{...FC,display:"flex",flexDirection:"column",gap:n,backgroundColor:t,paddingBottom:24,paddingRight:16,paddingLeft:16},children:[1,2,3].map(r=>v.jsx(qk,{},r))})}function KQ(){return v.jsxs("div",{children:[v.jsx("p",{style:{textAlign:"center",fontSize:18,fontWeight:700,marginBottom:8},children:"No comments yet"}),v.jsx("p",{style:{textAlign:"center",fontSize:12,color:"#8e8e8e",marginTop:0},children:"Start the conversation."})]})}Ei.memo(({children:e})=>{const{comments:t,newComments:n,loading:r,highlightedComment:a}=mp(),s=_.useMemo(()=>{let p=[...n??[],...t??[]];if(a){const{comment:g,parentComment:b}=a;p=p.filter(S=>S.id!==g.id&&S.id!==(b==null?void 0:b.id))}return p},[t,n,a]),l=s.length>0||a,f=r&&s.length===0&&!a,m=!r&&s.length===0&&!a;return v.jsxs("div",{style:{flex:1},children:[l&&v.jsx(YQ,{data:s}),f&&v.jsx(qQ,{}),m&&(e??v.jsx(KQ,{}))]})});const XQ=({onPremiumSearchClick:e,onVideoEffectClick:t,enabledPremiumSearch:n=!0,enableOptout:r=!0,selectedFile:a})=>{_l();const s=()=>{navigator.share?navigator.share({title:"FaceSeek Search Result",text:"Check out these face search results!",url:window.location.href}):alert("Sharing is not supported in this browser.")};return v.jsxs(ce,{sx:{display:"flex",justifyContent:"space-between",alignItems:"flex-start",mt:2,mb:2,flexDirection:{xs:"column",sm:"row"},gap:{xs:2,sm:0}},children:[v.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:2,flexDirection:{xs:"column",sm:"row"},textAlign:{xs:"center",sm:"left"}},children:[v.jsxs(Ye,{component:"h1",sx:{display:"flex",alignItems:"center",gap:1,fontWeight:700,fontSize:{xs:"1.0rem",sm:"1.25rem",md:"1.5rem"},lineHeight:1.2,letterSpacing:"-1px",color:"#FFF"},children:[v.jsx(ce,{component:"span",sx:{color:"#FFF"},children:"Search"}),v.jsx(ce,{component:"span",sx:{color:"#12B981"},children:"Result"})]}),a&&v.jsx(ce,{component:"img",src:URL.createObjectURL(a),alt:"Uploaded face",sx:{width:48,height:48,borderRadius:"6px",objectFit:"cover",border:"1px solid #12B981"}})]}),v.jsxs(ce,{sx:{display:"flex",flexWrap:"wrap",columnGap:1,rowGap:1.5,mt:{xs:1.5,sm:0},alignItems:"center",justifyContent:{xs:"center",sm:"flex-start"}},children:[n&&v.jsx(qi,{variant:"contained",startIcon:v.jsx(gx,{width:20,height:20}),onClick:e,sx:WS,children:"Premium Search"}),v.jsxs(ce,{position:"relative",display:"inline-flex",alignItems:"center",children:[v.jsx(qi,{variant:"contained",onClick:t,sx:WS,children:"Selfie to Silly Video 😂"}),v.jsx(z8,{label:"New",size:"small",sx:{position:"absolute",top:-8,right:-16,backgroundColor:"red",color:"white",fontSize:10,height:18}})]}),r&&v.jsx(qi,{variant:"outlined",startIcon:v.jsx(EY,{}),component:"a",href:"https://facesearch.pocketsflow.com/checkout?productId=67c9da5b1f1ab2803aea8dfd",target:"_blank",rel:"noopener noreferrer",sx:TT,children:"Opt-Out"}),v.jsx(qi,{variant:"outlined",startIcon:v.jsx(kA,{}),onClick:s,sx:TT,children:"Share"})]})]})},WS={minWidth:{xs:"auto",sm:"auto"},flexShrink:0,whiteSpace:"nowrap",height:{xs:36,sm:40},padding:{xs:"2px 10px",sm:"6px 16px"},fontSize:{xs:"12px",sm:"14px"},borderRadius:"6px",backgroundColor:"#12B981",color:"#fff",fontWeight:600,fontFamily:"Inter, sans-serif",textTransform:"none"},TT={...WS,backgroundColor:"transparent",border:"1px solid #FFFFFF55",color:"#FFFFFF","&:hover":{borderColor:"#FFFFFFAA",backgroundColor:"#1C1B29"}},RT=({onSearch:e})=>{const[t,n]=_.useState(""),r=a=>{a.preventDefault();const s=t.trim();e&&s!==""&&e(s)};return v.jsxs(ce,{component:"form",onSubmit:r,sx:{position:"relative",width:{xs:"100%",sm:"500px"},mx:"auto",display:"flex",overflow:"hidden",alignItems:"center",cursor:"default"},children:[v.jsx(jf,{}),v.jsxs(ce,{sx:{width:"100%",height:"50px",paddingLeft:"24px",backgroundColor:"#1E293B",border:"1px solid #334155",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",color:"#FFF"},children:[v.jsx(ce,{component:"input",name:"query",value:t,onChange:a=>n(a.target.value),placeholder:"Type a name to search",sx:{width:"100%",height:"100%",backgroundColor:"transparent",border:"none",color:"#FFF",fontSize:"16px",outline:"none",paddingLeft:0,"::placeholder":{color:"#9CA3AF",opacity:1},":-webkit-autofill":{WebkitBoxShadow:"0 0 0 1000px #1E293B inset",WebkitTextFillColor:"#FFF"},caretColor:"#FFF",unicodeBidi:"plaintext"}}),v.jsx(ce,{onClick:r,sx:{cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center",marginLeft:2},children:v.jsx(Mg,{sx:{color:"#9CA3AF",mr:2}})})]})]})},ZQ=Yn(v.jsx("path",{d:"M18 13v7H4V6h5.02c.05-.71.22-1.38.48-2H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-5zm-1.5 5h-11l2.75-3.53 1.96 2.36 2.75-3.54zm2.8-9.11c.44-.7.7-1.51.7-2.39C20 4.01 17.99 2 15.5 2S11 4.01 11 6.5s2.01 4.5 4.49 4.5c.88 0 1.7-.26 2.39-.7L21 13.42 22.42 12zM15.5 9C14.12 9 13 7.88 13 6.5S14.12 4 15.5 4 18 5.12 18 6.5 16.88 9 15.5 9"})),z2=({onSearch:e,title:t})=>{const n=_.useRef(null),r=s=>{const l=s.target.files[0];l&&(s.target.value=null,e(l))},a=()=>{var s;(s=n.current)==null||s.click()};return v.jsxs(ce,{component:"form",onSubmit:r,sx:{position:"relative",width:{xs:"100%",sm:"500px"},mx:"auto",display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer"},onClick:a,children:[v.jsx(jf,{}),v.jsx("input",{ref:n,type:"file",accept:"image/*",name:"query",style:{display:"none"},onChange:r}),v.jsxs(ce,{sx:{width:"100%",height:"50px",paddingLeft:"24px",backgroundColor:"#1E293B",border:"1px solid #334155",borderRadius:"8px",display:"flex",alignItems:"center",justifyContent:"space-between",color:"#FFF"},children:[v.jsx(Ye,{sx:{fontSize:"16px",color:"#9CA3AF"},children:t}),v.jsx(ZQ,{sx:{color:"#9CA3AF",mr:2}})]})]})},JQ=Yn(v.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-5 14h-2V9h-2V7h4z"})),QQ=Yn(v.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-4 8c0 1.11-.9 2-2 2h-2v2h4v2H9v-4c0-1.11.9-2 2-2h2V9H9V7h4c1.1 0 2 .89 2 2z"})),eee=Yn(v.jsx("path",{d:"M19.35 10.04C18.67 6.59 15.64 4 12 4 9.11 4 6.6 5.64 5.35 8.04 2.34 8.36 0 10.91 0 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96M14 13v4h-4v-4H7l5-5 5 5z"})),tee=Yn(v.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),nee=Yn(v.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),ree=({open:e,onClose:t,videoEffects:n,selectedIndexValue:r,setSelectedEffectIndex:a})=>{const s=ki(),l=cx(s.breakpoints.down("sm")),[f,m]=_.useState(null),[p,g]=_.useState(r),b=T=>{g(T),a(T),t()},S=v.jsxs(ce,{sx:{p:2,bgcolor:"#111827",height:"100%",overflowY:"auto"},children:[v.jsxs(ce,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[v.jsx(Ye,{variant:"h6",sx:{color:"#fff"},children:"Choose a Video Effect"}),v.jsx(Ga,{onClick:t,sx:{color:"#fff"},children:v.jsx(dx,{})})]}),v.jsx(wf,{container:!0,spacing:1,children:n.map((T,C)=>v.jsx(wf,{size:{xs:6,sm:4,md:3,lg:2.4},children:v.jsx(ce,{onClick:()=>b(C),onMouseEnter:()=>m(C),onMouseLeave:()=>m(null),sx:{borderRadius:2,border:p===C?"3px solid #fbbf24":"2px solid transparent",cursor:"pointer",transition:"border 0.2s ease",overflow:"hidden",textAlign:"center"},children:v.jsxs(ce,{sx:{position:"relative",width:{xs:140,sm:160,md:200},height:{xs:140,sm:160,md:200},mx:"auto",bgcolor:"#1f2937",borderRadius:2,overflow:"hidden"},children:[v.jsx("img",{src:T.image,alt:T.name,style:{width:"100%",height:"100%",objectFit:"cover",display:f===C?"none":"block"}}),v.jsx("video",{src:T.video,muted:!0,loop:!0,playsInline:!0,autoPlay:!0,style:{width:"100%",height:"100%",objectFit:"cover",display:f===C?"block":"none"}}),v.jsx(ce,{sx:{position:"absolute",bottom:0,width:"100%",bgcolor:"rgba(0, 0, 0, 0.6)",color:"#fff",fontSize:14,textAlign:"center",py:.5,px:1,whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:T.name})]})})},C))})]});return l?v.jsx(kL,{anchor:"bottom",open:e,onClose:t,children:S}):v.jsxs(Ag,{open:e,onClose:t,fullWidth:!0,maxWidth:!1,PaperProps:{sx:{width:"85vw",maxWidth:"1100px",bgcolor:"#111827",boxShadow:"0px 4px 14.8px 0px #085038",borderRadius:3}},children:[v.jsx(jf,{}),v.jsx(cp,{}),S]})},Rh=[{name:"AI Jesus Hug",image:"/videos/Jesus_Hug.jpg",id:"hug_jesus_20_epochs",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/hug_jesus_20_epochs.mp4"},{name:"AI Melt Everything",image:"/videos/Melt_Everything.jpg",id:"Melt_It",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/Melt_It.mp4"},{name:"BoomBoom",image:"/videos/BoomBoom.jpg",id:"VFX_EXPLOSION_30",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/VFX_EXPLOSION_30.mp4"},{name:"AI Super Saiyan",image:"/videos/Super_Saiyan.jpg",id:"super_saiyan_35_epochs",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/super_saiyan_35_epochs.mp4"},{name:"AI Baby",image:"/videos/Baby.jpg",id:"baby",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/baby.mp4"},{name:"Microwave Filter Trend",image:"/videos/360_Rotation.jpg",id:"rotation_360",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/360_rotation.mp4"},{name:"Flying",image:"/videos/Flying.jpg",id:"flying_effect",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/flying_effect.mp4"},{name:"Puppy Hugs",image:"/videos/Puppy.jpg",id:"puppy",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/puppy.mp4"},{name:"AI Squish Trend",image:"/videos/Squish.jpg",id:"squish",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/squish.mp4"},{name:"Zen",image:"/videos/Zen.jpg",id:"zen",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/zen.mp4"},{name:"Disney Princess",image:"/videos/Disney_Princess.jpg",id:"disney_princess",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/disney_princess.mp4"},{name:"AI Aging",image:"/videos/Aging.jpg",id:"aging",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/aging.mp4"},{name:"Crush Trend",image:"/videos/Crush.jpg",id:"crush",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/crush.mp4"},{name:"Muscles",image:"/videos/muscles.jpg",id:"muscles",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/muscles.mp4"},{name:"Bride",image:"/videos/Bride.jpg",id:"bride",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/bride.mp4"},{name:"Gunshot Effect",image:"/videos/Gun.jpg",id:"gun",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/gun.mp4"},{name:"Royal Princess",image:"/videos/Princess.jpg",id:"princess",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/princess.mp4"},{name:"Snow White",image:"/videos/Snow_White.jpg",id:"snow_white",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/snow_white.mp4"},{name:"Classy",image:"/videos/Classy.jpg",id:"classy",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/classy.mp4"},{name:"Red Carpet Effect",image:"/videos/Vip.jpg",id:"vip",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/vip.mp4"},{name:"Assassin",image:"/videos/Assassin.jpg",id:"assassin",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/assassin.mp4"},{name:"Balloon Effect",image:"/videos/Balloon_Effect.jpg",id:"inflate",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/inflate.mp4"},{name:"Mona Lisa",image:"/videos/MonaLisa.jpg",id:"mona_lisa",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/mona_lisa.mp4"},{name:"Painting",image:"/videos/painting.jpg",id:"painting",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/painting.mp4"},{name:"Pirate Captain",image:"/videos/Prirate_Captain.jpg",id:"pirate_captain",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/pirate_captain.mp4"},{name:"Samourai",image:"/videos/Samourai.jpg",id:"samourai",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/samourai.mp4"},{name:"Warrior",image:"/videos/Warrior.jpg",id:"warrior",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/warrior.mp4"},{name:"Decay Effect",image:"/videos/Decay.jpg",id:"decay",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/decay.mp4"},{name:"Cakeify AI",image:"/videos/Cakeify.jpg",id:"cakeify",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/cakeify.mp4"},{name:"Deflate Effect",image:"/videos/Deflate.jpg",id:"deflate",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/deflate.mp4"},{name:"Jungle",image:"/videos/Jungle.jpg",id:"jungle",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/jungle.mp4"},{name:"AI Backfall Sit",image:"/videos/Backfall_Sit.jpg",id:"fus_ro_dah_20_epochs",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/fus_ro_dah_20_epochs.mp4"},{name:"AI Westworld",image:"/videos/Westworld.jpg",id:"remade_westworld_35",video:"https://storage.googleapis.com/faceseek_aigen/video_effect_static/remade_westworld_35.mp4"}],iee=({videoEffectData:e,selectedFile:t,onGenerateClicked:n})=>{var P;const[r,a]=_.useState(!1),[s,l]=_.useState(0),[f,m]=_.useState(null),[p,g]=_.useState(null),[b,S]=_.useState(null),T=ki(),C=cx(T.breakpoints.up("lg"));_.useEffect(()=>{S(e)},[e]),_.useEffect(()=>{if(t){const M=URL.createObjectURL(t);m(M),g(t)}},[t]);const E=()=>a(!0),A=()=>a(!1),k=M=>{var B;const $=(B=M.target.files)==null?void 0:B[0];if($){M.target.value=null;const H=URL.createObjectURL($);m(H),g($)}},L=()=>{m(null)},O=()=>{n(p,Rh[s].id)};return v.jsxs(ce,{display:"grid",gridTemplateColumns:C?"400px 1fr":"1fr",gridTemplateRows:C?"auto":"auto auto",gap:8,mb:8,children:[v.jsx(ce,{className:"left-panel",sx:{p:2,width:C?"420px":"95%"},children:v.jsxs(Bc,{elevation:3,sx:{p:4,borderRadius:3,backgroundColor:"#151D2C",border:"1px solid #374151",color:"#ffffff",height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[v.jsxs(ce,{children:[v.jsxs(Ye,{variant:"h6",gutterBottom:!0,sx:{color:"#ffffff",fontSize:15,fontWeight:500,display:"flex",alignItems:"center",gap:1.2},children:[v.jsx(JQ,{sx:{fontSize:24,color:"#fbbf24"}}),"Upload image to generate a video with effect"]}),f?v.jsxs(ce,{sx:{position:"relative",borderRadius:2,overflow:"hidden",width:"100%",maxHeight:150,height:150,border:"2px dotted #374151",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#0f172a","&:hover .close-btn":{opacity:1},mb:2},children:[v.jsx("img",{src:f,alt:"Uploaded preview",style:{maxWidth:"100%",maxHeight:"100%",objectFit:"contain",display:"block"}}),v.jsx(Ga,{className:"close-btn",onClick:L,sx:{position:"absolute",top:8,right:8,bgcolor:"rgba(255, 255, 255, 0.1)",color:"#f87171","&:hover":{bgcolor:"#ef4444",color:"#fff"},opacity:0,transition:"opacity 0.3s"},children:v.jsx(nee,{sx:{fontSize:16}})})]}):v.jsxs(ce,{component:"label",htmlFor:"upload-input",sx:{border:"2px dotted #374151",borderRadius:2,p:4,textAlign:"center",cursor:"pointer",display:"flex",flexDirection:"column",alignItems:"center",transition:"background-color 0.3s","&:hover":{backgroundColor:"#1e293b",border:"2px dotted rgba(255, 255, 255, 0.7)"},mb:2},children:[v.jsx(eee,{sx:{fontSize:30,color:"#9ca3af"}}),v.jsx(Ye,{variant:"subtitle1",sx:{color:"#ffffff"},children:"Upload an Image"}),v.jsx(Ye,{variant:"body2",sx:{color:"#9ca3af"},children:"Drag or upload your image JPG, PNG, WEBP"}),v.jsx(kg,{id:"upload-input",type:"file",inputProps:{accept:"image/*"},onChange:k,sx:{display:"none"}})]}),v.jsx(tp,{sx:{my:4,borderColor:"#374151"}}),v.jsxs(Ye,{variant:"h6",gutterBottom:!0,sx:{color:"#ffffff",fontSize:15,fontWeight:500,display:"flex",alignItems:"center",gap:1.2},children:[v.jsx(QQ,{sx:{fontSize:24,color:"#fbbf24"}}),"Choose a target effect"]}),v.jsxs(w_,{variant:"outlined",onClick:E,sx:{display:"flex",alignItems:"center",p:1,cursor:"pointer",borderRadius:2,backgroundColor:"#1f2937",border:"2px dotted #374151","&:hover":{backgroundColor:"#1e293b",border:"2px dotted rgba(255, 255, 255, 0.7)"}},children:[v.jsx(V5,{component:"img",image:Rh[s].image,alt:Rh[s].name,sx:{width:120,height:120,borderRadius:2,mr:2}}),v.jsx(EI,{sx:{flexGrow:1,p:0},children:v.jsx(Ye,{variant:"subtitle1",sx:{color:"#ffffff"},children:"Choose Effect"})}),v.jsx(Ga,{sx:{color:"#9ca3af"},children:v.jsx(tee,{})})]})]}),v.jsx(ce,{sx:{mt:4},children:v.jsx(qi,{variant:"contained",onClick:O,disabled:!f,sx:{height:40,width:"100%",padding:"6px 12px",justifyContent:"center",alignItems:"center",borderRadius:"6px",backgroundColor:"#12B981",color:"#fff",fontWeight:600,fontSize:{xs:"14px",sm:"16px"},fontFamily:"Inter, sans-serif",textTransform:"none","&:hover":{borderColor:"rgba(255, 255, 255, 0.7)"},"&.Mui-disabled":{backgroundColor:"#12B98140",color:"#FFFFFF40"}},children:"Generate Now"})})]})}),v.jsx(ce,{className:"right-panel",sx:{p:2,width:"95%"},children:v.jsxs(Bc,{elevation:3,sx:{p:4,borderRadius:3,backgroundColor:"#151D2C",border:"1px solid #374151",color:"#ffffff",height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[v.jsx(Ye,{variant:"h5",fontWeight:"bold",gutterBottom:!0,textAlign:"center",sx:{color:"#ffffff"},children:"Image & Text to Video AI Free Generator - FaceSeek"}),v.jsx(Ye,{variant:"body1",sx:{color:"#9ca3af"},textAlign:"center",gutterBottom:!0,children:"Effortlessly convert text/images to video with AI for FREE! Bring your static text or images into intuitive visuals frame by frame!"}),v.jsx(ce,{mt:2,flexGrow:1,mx:"auto",children:v.jsx("video",{src:b!=null&&b.trim()?b:(P=Rh[s])==null?void 0:P.video,muted:!0,loop:!0,controls:!!(b!=null&&b.trim()),playsInline:!0,autoPlay:!0,style:{width:"100%",borderRadius:12,maxHeight:"100%",objectFit:"cover"}})}),v.jsx(ce,{display:"flex",justifyContent:"center",gap:2,alignItems:"center",children:v.jsx(qi,{variant:"outlined",color:"primary",startIcon:v.jsx(kA,{}),onClick:async()=>{var $;const M=b!=null&&b.trim()?b:($=Rh[s])==null?void 0:$.video;if(navigator.share)try{await navigator.share({title:"FaceSeek AI Video",text:"Check out this AI-generated video!",url:M})}catch(B){console.error("Share failed:",B)}else alert("Sharing not supported on this device.")},disabled:!(b!=null&&b.trim()),sx:{color:"#fff",borderColor:"#3b82f6",display:b!=null&&b.trim()?"block":"none"},children:"Share"})})]})}),v.jsx(ree,{open:r,onClose:A,videoEffects:Rh,selectedIndexValue:s,setSelectedEffectIndex:l})]})},aee=_.createContext(null);function oee(){const[e,t]=_.useState(null);return _.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function see(e){const{children:t,value:n}=e,r=oee(),a=_.useMemo(()=>({idPrefix:r,value:n}),[r,n]);return v.jsx(aee.Provider,{value:a,children:t})}const AT=3,lee=({imageDataValue:e})=>{const[t,n]=_.useState([]),[r,a]=_.useState([]),[s,l]=_.useState(0),[f,m]=_.useState(!1),[p,g]=_.useState(0),[b,S]=_.useState(0),[T,C]=_.useState(!1),[E,A]=_.useState(""),k=_.useRef(null),[L,O]=_.useState(200);_.useEffect(()=>{const H=()=>{window.innerWidth<600?O(150):O(200)};return H(),window.addEventListener("resize",H),()=>window.removeEventListener("resize",H)},[]);const P=()=>{C(!1)};_.useEffect(()=>{n(e)},[e]),_.useEffect(()=>{document.body.classList.toggle("dragging",f)},[f]),_.useEffect(()=>{const H=async()=>{try{let q=0,j=0,X=0;const K="emptyuser.svg",ne=t.map(oe=>new Promise(V=>{const Q=new Image;Q.src=oe.img,Q.onload=()=>{if(Q.height===0||Q.width===0)console.error("Image has zero dimensions:",Q.src),V({...oe,img:K,width:200});else{const Z=Q.width/Q.height,ae=L*Z;V({...oe,width:ae})}},Q.onerror=()=>{V({...oe,img:K,width:200})}})),le=await Promise.all(ne);le.forEach(oe=>{q<=j&&q<=X?q+=oe.width+10:j<=q&&j<=X?j+=oe.width+10:X+=oe.width+10}),a(le),l(Math.max(q,j,X))}catch(q){console.error("Error loading images:",q)}};(t==null?void 0:t.length)>0?H():a([])},[t]),_.useEffect(()=>{const H=k.current;if(!H)return;const q=j=>{j.preventDefault(),H.scrollBy({left:j.deltaY*3,behavior:"smooth"})};return H.addEventListener("wheel",q,{passive:!1}),()=>{H.removeEventListener("wheel",q)}},[]);let M=0,$=0,B=0;return v.jsx("div",{ref:k,className:"force-scrollbar",style:{overflowX:"scroll",overflowY:"hidden",width:"101%",cursor:f?"grabbing":"grab"},children:r.length===0?t.length===0?v.jsx(v.Fragment,{children:v.jsx("div",{style:{height:L*AT+30,display:"flex",justifyContent:"center",alignItems:"center",color:"red",fontWeight:"bold",fontSize:18,backgroundColor:"#151D2C",borderRadius:8,marginTop:8},children:"No results found"})}):v.jsx(ce,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:L*AT+30},children:v.jsx(ce,{className:"loading-spinner"})}):v.jsxs(v.Fragment,{children:[v.jsx(Og,{open:T,autoHideDuration:2e3,onClose:P,anchorOrigin:{vertical:"bottom",horizontal:"center"},ContentProps:{sx:{backgroundColor:"#f5f5f5",color:"#333",borderRadius:2,boxShadow:3,fontSize:"14px",fontWeight:500}},message:E}),v.jsx("div",{id:"portfolio_horizontal_container",className:"two-ver-columns",style:{position:"relative",width:`${s}px`,height:`${L*3+30}px`},children:r.map((H,q)=>{let j,X;M<=$&&M<=B?(j=M,X=0,M+=H.width+10):$<=M&&$<=B?(j=$,X=L+10,$+=H.width+10):(j=B,X=(L+10)*2,B+=H.width+10);const K={position:"absolute",left:`${j}px`,top:`${X}px`};return v.jsx("div",{className:"portfolio_item",style:K,onMouseDown:ne=>{m(!0),g(ne.pageX-k.current.offsetLeft),S(k.current.scrollLeft)},onMouseUp:()=>m(!1),onMouseMove:ne=>{if(!f)return;ne.preventDefault();const oe=(ne.pageX-k.current.offsetLeft-p)*1.5;k.current.scrollLeft=b-oe},children:v.jsx("div",{className:"grid-item-holder hov_zoom",style:{position:"relative",display:"flex",justifyContent:"flex-start"},children:v.jsxs("div",{style:{position:"relative",display:"inline-block",borderRadius:"12px",overflow:"hidden",height:`${L}px`,width:`${H.width}px`},children:[v.jsx("img",{src:H.img,alt:H.title,draggable:!1,style:{height:"100%",width:"100%",display:"block",borderRadius:"12px",objectFit:"cover"}}),v.jsx("div",{style:{position:"absolute",bottom:10,left:"10px",right:"10px",backgroundColor:"#00A36D",color:"white",textAlign:"center",padding:"4px 20px",zIndex:1,borderRadius:"6px",cursor:"pointer",display:"flex",alignItems:"center",justifyContent:"center"},onClick:()=>{navigator.clipboard.writeText(H.url),A(`Copied:
+${H.url}`),C(!0)},title:"Click to copy",children:v.jsxs("div",{style:{display:"flex",flexDirection:"column",maxWidth:"100%",gap:"2px"},children:[v.jsx("span",{style:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"12px",color:"white",cursor:"pointer"},title:H.title,children:H.title}),v.jsx("span",{style:{textDecoration:"underline",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",fontSize:"10px",color:"white",cursor:"pointer"},title:H.url,children:H.url})]})})]},H.title+H.url)})},q)})})]})})},cee=Yn(v.jsx("path",{d:"M3 17v2h6v-2zM3 5v2h10V5zm10 16v-2h8v-2h-8v-2h-2v6zM7 9v2H3v2h4v2h2V9zm14 4v-2H11v2zm-6-4h2V7h4V5h-4V3h-2z"})),Ah=9,kT=10,OT={"facebook.com":"/facebook.png","github.com":"/github.png","instagram.com":"/instagram.png","linkedin.com":"/linkedin.png","pinterest.com":"/pinterest.png","snapchat.com":"/snapchat.png","tiktok.com":"/tiktok.png","twitter.com":"/twitter.png","youtube.com":"/youtube.png"},uee=e=>{for(const t in OT)if(e.includes(t))return OT[t];return null},fee=({imageDataValue:e})=>{const[t,n]=_.useState([]),[r,a]=_.useState([]),[s,l]=_.useState(0),[f,m]=_.useState(!1),[p,g]=_.useState(0),[b,S]=_.useState(0),[T,C]=_.useState(!1),[E,A]=_.useState(""),k=_.useRef(null),[L,O]=_.useState(40),[P,M]=_.useState(350);_.useEffect(()=>{const B=()=>{window.innerWidth<600,O(40)};return B(),window.addEventListener("resize",B),()=>window.removeEventListener("resize",B)},[]);const $=()=>{C(!1)};return _.useEffect(()=>{n(e)},[e]),_.useEffect(()=>{document.body.classList.toggle("dragging",f)},[f]),_.useEffect(()=>{const B=async()=>{try{const H=t.map(j=>new Promise(X=>{X({...j,width:P})})),q=await Promise.all(H);a(q),l(Math.floor((q.length+Ah-1)/Ah)*(P+10))}catch(H){console.error("Error loading images:",H)}};t.length>=0&&B()},[t]),_.useEffect(()=>{const B=k.current;if(!B)return;const H=q=>{q.preventDefault(),B.scrollBy({left:q.deltaY*3,behavior:"smooth"})};return B.addEventListener("wheel",H,{passive:!1}),()=>{B.removeEventListener("wheel",H)}},[]),v.jsx("div",{ref:k,className:"force-scrollbar",style:{overflowX:"scroll",overflowY:"hidden",width:"101%",cursor:f?"grabbing":"grab"},children:t.length===0?v.jsx("div",{style:{height:L*Ah+30,display:"flex",justifyContent:"center",alignItems:"center",color:"red",fontWeight:"bold",fontSize:18,backgroundColor:"#151D2C",borderRadius:8,marginTop:8},children:"No results found"}):v.jsxs(v.Fragment,{children:[v.jsx(Og,{open:T,autoHideDuration:2e3,onClose:$,anchorOrigin:{vertical:"bottom",horizontal:"center"},ContentProps:{sx:{backgroundColor:"#f5f5f5",color:"#333",borderRadius:2,boxShadow:3,fontSize:"14px",fontWeight:500}},message:E}),v.jsx("div",{id:"portfolio_horizontal_container",className:"two-ver-columns",style:{position:"relative",width:`${s}px`,height:`${(L+10)*Ah}px`},children:r.map((B,H)=>{const q=Math.floor(H/Ah),j=H%Ah,X=q*(B.width+kT),K=j*(L+kT),ne={position:"absolute",left:`${X}px`,top:`${K}px`},le=uee(B.url);return v.jsx("div",{className:"portfolio_item",style:ne,onMouseDown:oe=>{m(!0),g(oe.pageX-k.current.offsetLeft),S(k.current.scrollLeft)},onMouseUp:()=>m(!1),onMouseMove:oe=>{if(!f)return;oe.preventDefault();const Q=(oe.pageX-k.current.offsetLeft-p)*1.5;k.current.scrollLeft=b-Q},children:v.jsx("div",{className:"grid-item-holder hov_zoom",style:{position:"relative",display:"flex",justifyContent:"flex-start"},children:v.jsx("div",{style:{backgroundColor:"#111825",border:"1px solid #374151",position:"relative",display:"inline-block",borderRadius:"12px",overflow:"hidden",height:`${L}px`,width:`${B.width}px`},onClick:()=>{navigator.clipboard.writeText(B.url),A(`Copied:
+${B.url}`),C(!0)},title:"Click to copy",children:v.jsxs(ce,{sx:{display:"flex",alignItems:"center",justifyContent:"flex-start",overflow:"hidden",width:"100%",height:"100%",padding:"0 10px"},children:[le&&v.jsx("img",{src:le,alt:"icon",style:{width:20,height:20,marginRight:8,objectFit:"contain",flexShrink:0}}),v.jsx(Ye,{component:"a",rel:"noopener noreferrer",sx:{color:"white",textDecoration:"none",overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",maxWidth:"100%",display:"inline-block"},children:B.url})]})},B.title+B.url)})},H)})})]})})},kh=4,Bv=10,dee=[{key:"linkedin",icon:"linkedin.png"},{key:"twitter",icon:"twitter.png"},{key:"github",icon:"github.png"},{key:"facebook",icon:"facebook.png"}],hee=[{key:"company_website",icon:"company.png"},{key:"company_linkedin",icon:"linkedin.png"}],pee=({imageDataValue:e})=>{const[t,n]=_.useState([]),[r,a]=_.useState([]),[s,l]=_.useState(0),[f,m]=_.useState(!1),[p,g]=_.useState(0),[b,S]=_.useState(0),[T,C]=_.useState(!1),[E,A]=_.useState(""),k=_.useRef(null),[L,O]=_.useState(150),[P,M]=_.useState(350);_.useEffect(()=>{const B=()=>{O((window.innerWidth<600,150))};return B(),window.addEventListener("resize",B),()=>window.removeEventListener("resize",B)},[]);const $=()=>{C(!1)};return _.useEffect(()=>{n(e||[])},[e]),_.useEffect(()=>{document.body.classList.toggle("dragging",f)},[f]),_.useEffect(()=>{const B=async()=>{try{const H="emptyuser.svg",q=t.map(X=>new Promise(K=>{const ne=new Image;ne.src=X.photo,ne.onload=()=>{K({...X,img:ne.height===0||ne.width===0?H:X.photo,width:P})},ne.onerror=()=>{K({...X,img:H,width:P})}})),j=await Promise.all(q);a(j),l(Math.ceil(j.length/kh)*(P+Bv))}catch(H){console.error("Error loading images:",H)}};t.length>0?B():a([])},[t]),_.useEffect(()=>{const B=k.current;if(!B)return;const H=q=>{q.preventDefault(),B.scrollBy({left:q.deltaY*3,behavior:"smooth"})};return B.addEventListener("wheel",H,{passive:!1}),()=>B.removeEventListener("wheel",H)},[]),v.jsx("div",{ref:k,className:"force-scrollbar",style:{overflowX:"scroll",overflowY:"hidden",width:"101%",cursor:f?"grabbing":"grab"},children:r.length===0?t.length===0?v.jsx("div",{style:{height:L*kh+30,display:"flex",justifyContent:"center",alignItems:"center",color:"red",fontWeight:"bold",fontSize:18,backgroundColor:"#151D2C",borderRadius:8,marginTop:8},children:"No results found"}):v.jsx(ce,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:L*kh+30},children:v.jsx(ce,{className:"loading-spinner"})}):v.jsxs(v.Fragment,{children:[v.jsx(Og,{open:T,autoHideDuration:2e3,onClose:$,anchorOrigin:{vertical:"bottom",horizontal:"center"},ContentProps:{sx:{backgroundColor:"#f5f5f5",color:"#333",borderRadius:2,boxShadow:3,fontSize:"14px",fontWeight:500}},message:E}),v.jsx("div",{id:"portfolio_horizontal_container",className:"two-ver-columns",style:{position:"relative",width:`${s}px`,height:`${(L+Bv)*kh}px`},children:r.map((B,H)=>{const q=Math.floor(H/kh),j=H%kh,X=q*(B.width+Bv),K=j*(L+Bv);return v.jsx("div",{className:"portfolio_item",style:{position:"absolute",left:X,top:K},onMouseDown:ne=>{m(!0),g(ne.pageX-k.current.offsetLeft),S(k.current.scrollLeft)},onMouseUp:()=>m(!1),onMouseMove:ne=>{if(!f)return;const le=ne.pageX-k.current.offsetLeft;k.current.scrollLeft=b-(le-p)*1.5},children:v.jsx("div",{className:"grid-item-holder hov_zoom",style:{display:"flex",justifyContent:"flex-start"},children:v.jsx("div",{style:{backgroundColor:"#111825",border:"1px solid #374151",borderRadius:12,overflow:"hidden",height:L,width:B.width},children:v.jsxs(ce,{sx:{display:"flex",flexDirection:"row",alignItems:"center",width:"100%",gap:2,p:1,color:"white"},children:[v.jsx(ce,{component:"img",src:B.img,draggable:!1,sx:{width:130,height:130,objectFit:"cover",borderRadius:"2px",marginBottom:1}}),v.jsxs(ce,{children:[v.jsx(Ye,{variant:"h6",fontSize:14,noWrap:!0,title:B.name,children:B.name}),B.email&&v.jsxs(Ye,{variant:"body2",fontSize:12,noWrap:!0,children:["Email: ",B.email]}),v.jsx(Ye,{variant:"body2",fontSize:12,noWrap:!0,title:B.title,sx:{width:"190px"},children:B.title}),v.jsxs(ce,{mt:1,display:"flex",alignItems:"center",gap:"4px",children:[dee.map(({key:ne,icon:le})=>B[ne]&&v.jsx("img",{src:le,alt:`${ne} icon`,title:B[ne],style:{width:20,height:20,objectFit:"contain",flexShrink:0,cursor:"pointer"},onClick:()=>{navigator.clipboard.writeText(B[ne]),A(`Copied:
+${B[ne]}`),C(!0)}},ne)),v.jsx(ce,{flexGrow:1,children:v.jsx(tp,{orientation:"horizontal",sx:{bgcolor:"grey.500",height:1}})})]}),v.jsxs(ce,{mt:1,display:"flex",alignItems:"center",gap:"2px",children:[v.jsxs(Ye,{variant:"body2",fontSize:12,noWrap:!0,title:B.company,sx:{width:"145px"},children:["Company: ",B.company]}),hee.map(({key:ne,icon:le})=>B[ne]&&v.jsx("img",{src:le,alt:`${ne} icon`,title:B[ne],style:{width:20,height:20,objectFit:"contain",flexShrink:0,cursor:"pointer"},onClick:()=>{navigator.clipboard.writeText(B[ne]),A(`Copied:
+${B[ne]}`),C(!0)}},ne))]})]})]})})})},H)})})]})})},mee=["All","Facebook","Instagram","Tiktok","Snapchat","Twitter","Youtube","Linkedin","Github","Pinterest"],gee=({nameData:e})=>{const[t,n]=_.useState("general"),[r,a]=_.useState([]),[s,l]=_.useState([]),[f,m]=_.useState(null),p=!!f,[g,b]=_.useState("All"),S=(L,O)=>{n(O)},T=L=>{if(!(e!=null&&e.general))return[];const O=L.toLowerCase(),P=O==="all"?"all":O,M=e.general[P];return M?M.map($=>({img:$.image||"",title:$.title||"Untitled",url:$.url||"#"})):[]},C=L=>{if(!(e!=null&&e.general))return[];const O=L.toLowerCase(),P=O==="all"?"all":O,M=e.social[P];return M?M.map($=>({url:$||"#"})):[]};_.useEffect(()=>{a(T(g)),l(C(g))},[e,g]);const E=L=>{m(L.currentTarget)},A=()=>{m(null)},k=L=>{b(L),m(null)};return v.jsx(ce,{children:v.jsxs(see,{value:t,children:[v.jsxs(ce,{sx:{borderBottom:1,borderColor:"divider",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[v.jsx(UN,{value:t,onChange:S,variant:"scrollable",scrollButtons:"auto",textColor:"inherit","aria-label":"profile tabs",sx:{flexGrow:1},children:["general","social","business"].map(L=>v.jsx(SN,{value:L,label:v.jsxs(ce,{sx:{display:"flex",alignItems:"center",gap:1},children:[(L==="social"||L==="business")&&v.jsx(gx,{width:20,height:20}),v.jsx("span",{children:L==="general"?"General":L==="social"?"Social Profiles":"Business Profiles"})]}),sx:{textTransform:"none",color:"#9CA3AF",fontSize:"14px",transition:"all 0.2s ease-in-out",minHeight:48,minWidth:120}},L))}),(t==="general"||t==="social")&&v.jsx(Ga,{color:"primary","aria-label":"filter",sx:{ml:2},onClick:E,children:v.jsx(cee,{})}),v.jsx(__,{anchorEl:f,open:p,onClose:A,PaperProps:{sx:{bgcolor:"#161C25",border:"1px solid #374151",p:1,borderRadius:3}},children:mee.map(L=>v.jsx(eR,{onClick:()=>k(L),sx:{color:"white",borderRadius:3,mb:.5,"&.Mui-selected, &.Mui-selected:hover":{bgcolor:"#00A36D",color:"white",borderRadius:3},"&:hover":{bgcolor:"#005a41",color:"white"}},selected:g===L,children:v.jsx(Z5,{primary:L})},L))})]}),t==="general"&&v.jsx(ce,{sx:{mt:1,color:"#FFF",background:"#151D2C",p:2,borderRadius:2,border:"1px solid #374151"},children:v.jsx(lee,{imageDataValue:r})}),t==="social"&&v.jsx(ce,{sx:{mt:1,color:"#FFF",background:"#151D2C",p:2,borderRadius:2,border:"1px solid #374151"},children:v.jsx(fee,{imageDataValue:s})}),t==="business"&&v.jsx(ce,{sx:{mt:1,color:"#FFF",background:"#151D2C",p:2,borderRadius:2,border:"1px solid #374151"},children:v.jsx(pee,{imageDataValue:e.business})})]})})};function yee(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const Kk=yee(_Y),vee=({src:e,alt:t,sx:n,onLoad:r})=>{const[a,s]=_.useState(!1),l=f=>{s(!0),r&&r(f)};return v.jsxs(v.Fragment,{children:[!a&&v.jsx(ce,{sx:{...n,filter:"blur(10px)",transform:"scale(1.05)",transition:"opacity 0.3s ease",position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundColor:"#ccc",zIndex:0}}),v.jsx(ce,{component:"img",src:e,alt:t,sx:{...n,opacity:a?1:0,transition:"opacity 0.5s ease",position:"relative",zIndex:1,objectFit:"contain"},onLoad:l})]})},bee=Cl`
+  0%, 100% { opacity: 0; }
+  50% { opacity: 1; }
+`;function xee({loadingMessage:e,estimatedTime:t}){return e?So(lR,{children:[bt(ce,{sx:{position:"absolute",top:"3%",width:"100%",textAlign:"left",color:"#fbbf24",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",gap:1},children:bt(Ye,{variant:"body2",sx:{fontSize:{xs:12,sm:13}},children:"Don't refresh while searching"})}),So(ce,{sx:{position:"absolute",left:"50%",top:"90%",width:"100%",transform:"translateX(-50%)",textAlign:"center",color:"#FFF",fontSize:{xs:14,sm:16},fontStyle:"italic",zIndex:3,display:"flex",alignItems:"center",justifyContent:"center",gap:1},children:[bt(Ye,{variant:"body2",sx:{fontStyle:"italic",fontSize:{xs:12,sm:13}},children:e}),bt(ce,{sx:{display:"flex",ml:.5,gap:"4px"},children:[0,.2,.4,.6].map((n,r)=>bt(ce,{component:"span",sx:{animation:`${bee} 1.2s ease-in-out infinite`,animationDelay:`${n}s`,opacity:0,fontWeight:"bold",fontSize:{xs:12,sm:13},lineHeight:1},children:"•"},r))}),t>10&&So(Ye,{variant:"caption",sx:{color:"#FFF",fontSize:{xs:12,sm:13},ml:1,minWidth:30,textAlign:"left"},children:[t,"s"]})]})]}):null}const Gi=()=>location.pathname.includes("/face-search")?"face-search":location.pathname.includes("/name-search")?"name-search":location.pathname.includes("/image-search")?"image-search":location.pathname.includes("/video-effect")?"video-effect":"",wee=Cl`
+  0% { transform: rotate(0deg); }
+  100% { transform: rotate(360deg); }
+`,See=Cl`
+  0%, 100% { opacity: 0; }
+  50% { opacity: 1; }
+`,_ee=()=>v.jsx(ce,{sx:{display:"flex",justifyContent:"center",my:2},children:[0,1,2].map(e=>v.jsx(Kk.div,{animate:{y:[0,-10,0]},transition:{duration:.6,repeat:1/0,delay:e*.2},style:{width:10,height:10,margin:"0 6px",borderRadius:"50%",backgroundColor:"#1976d2"}},e))}),Cee=Ae(ce)(({theme:e})=>({position:"relative",border:"2px solid rgba(255, 255, 255, 0.2)",background:"#151D2C",borderRadius:12,maxWidth:"600px",minWidth:"600px",minHeight:350,textAlign:"center",boxShadow:"0px 0px 40px rgba(29, 50, 64, 1.0)",margin:"0 auto",padding:e.spacing(2),boxSizing:"border-box",display:"flex",justifyContent:"center",alignItems:"center",overflow:"hidden",[e.breakpoints.down("sm")]:{maxWidth:"100%",minWidth:"100%",minHeight:250,padding:e.spacing(1.5),marginInline:e.spacing(2)}})),Eee=e=>{const t={"name-search":[[1,"Initializing search parameters"],[5,"Parsing input name"],[10,"Standardizing name format"],[15,"Querying social media platforms"],[25,"Searching public people directories"],[35,"Aggregating name-based profiles"],[45,"Matching usernames and aliases"],[55,"Analyzing bios and user metadata"],[65,"Filtering duplicate entries"],[75,"Cross-checking profile consistency"],[85,"Scoring match relevance"],[92,"Reviewing additional sources"],[98,"Finalizing profile list"]],"face-search":[[1,"Analyzing facial features"],[10,"Extracting biometric landmarks"],[20,"Searching social networks"],[30,"Scanning public image databases"],[40,"Matching facial embeddings"],[50,"Ranking similarity scores"],[55,"Scanning websites"],[65,"Evaluating metadata consistency"],[75,"Cross-referencing additional sources"],[85,"Performing identity correlation"],[90,"Verifying potential matches"],[98,"Finalizing result set"]],"image-search":[[1,"Initializing reverse image engine"],[5,"Processing image data"],[10,"Extracting visual features"],[20,"Generating image fingerprint"],[30,"Searching web for similar visuals"],[40,"Scanning public image indexes"],[50,"Comparing texture and patterns"],[60,"Filtering duplicate results"],[70,"Analyzing image context and metadata"],[80,"Ranking visual similarity scores"],[90,"Cross-checking source domains"],[96,"Compiling result matches"],[99,"Finalizing result set"]],"video-effect":[[1,"Booting up humor cores 🤖"],[5,"Reading facial geometry 📐"],[10,"Detecting smirk potential 😏"],[18,"Mapping eye-to-meme ratio 👁🧠"],[25,"Analyzing cringe vectors 📊"],[35,"Injecting absurdity modules 🌀"],[45,"Applying sarcasm filters 🧂"],[55,"Reconstructing face in meme space 🧬"],[65,"Animating eyebrows for dramatic effect 🎭"],[75,"Synchronizing with chaos engine 🔁"],[85,"Adding background nonsense 🌈"],[92,"Rendering cursed output 💀"],[97,"Encoding video with maximum roast 🔥"],[99,"Finalizing masterpiece 🧞"]]};for(const n in t)if(e.includes(n))return t[n].map(([r,a])=>({at:r,text:a}));return[{at:1,text:"Preparing search..."}]},Tee=({open:e,nameValue:t,file:n,estimatedTimeValue:r})=>{const[a,s]=_.useState(!1),[l,f]=_.useState(120),[m,p]=_.useState(""),[g,b]=_.useState(null),[S,T]=_.useState(""),C=_.useRef(l),E=Gi().includes("video-effect");return _.useEffect(()=>{if(!a)return;const A=Eee(Gi());let k=0;const L=setInterval(()=>{k+=1,C.current>1&&(C.current-=1,f(C.current));const O=A.find(P=>P.at===k);O&&p(O.text)},1e3);return()=>clearInterval(L)},[a]),_.useEffect(()=>{r&&(f(r),C.current=r)},[r]),_.useEffect(()=>{if(n){const A=URL.createObjectURL(n);return b(A),()=>URL.revokeObjectURL(A)}else b(null)},[n]),_.useEffect(()=>{T(t||"")},[t]),_.useEffect(()=>{Gi().includes("video-effect")&&s(!0)},[]),v.jsx(Rg,{open:e,children:v.jsx(ce,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh",outline:"none"},children:v.jsxs(Cee,{children:[v.jsx(jf,{}),v.jsx(cp,{}),E?v.jsx(Kk.div,{initial:{opacity:0,scale:.8},animate:{opacity:1,scale:1},transition:{duration:.3},children:v.jsxs(ce,{sx:{textAlign:"center"},children:[v.jsx(_ee,{}),v.jsx(Ye,{variant:"body2",sx:{color:"#fbbf24",fontSize:{xs:12,sm:15}},children:"Don’t refresh while video generating"}),v.jsxs(ce,{sx:{color:"#FFF",fontSize:{xs:14,sm:16},fontStyle:"italic",mt:2,display:"flex",alignItems:"center",justifyContent:"center",gap:1},children:[v.jsx(Ye,{variant:"body2",sx:{fontSize:{xs:12,sm:15}},children:m}),m&&v.jsx(ce,{sx:{display:"flex",ml:.5,gap:"4px"},children:[0,.2,.4,.6].map((A,k)=>v.jsx(ce,{component:"span",sx:{animation:`${See} 1.2s ease-in-out infinite`,animationDelay:`${A}s`,opacity:0,fontWeight:"bold",fontSize:{xs:12,sm:13},lineHeight:1},children:"•"},k))}),l>10&&m&&v.jsxs(Ye,{variant:"caption",sx:{ml:1,fontSize:{xs:12,sm:16}},children:[l,"s"]})]})]})}):v.jsxs(ce,{sx:{position:"relative",width:{xs:300,sm:400,md:400},borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",overflow:"hidden"},children:[a&&v.jsxs(v.Fragment,{children:[v.jsx(ce,{sx:{position:"absolute",width:{xs:300,sm:400,md:600},aspectRatio:"1 / 1",borderRadius:"50%",background:"conic-gradient(from 0deg at 50% 50%, transparent, 350deg, #00A36D)",animation:`${wee} 8s linear infinite`}}),g&&v.jsx(ce,{component:"img",src:g,alt:"Preview",sx:{position:"absolute",width:{xs:40,sm:50,md:60},height:{xs:40,sm:50,md:60},borderRadius:"50%",objectFit:"cover",top:"50%",left:"50%",transform:"translate(-50%, -50%)",border:"3px solid white",zIndex:2}}),S&&v.jsx(ce,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",backgroundColor:"white",color:"black",px:1.5,py:.5,borderRadius:1,fontSize:16,zIndex:3},children:S})]}),v.jsx(vee,{src:"/9.png",alt:"Overlay",sx:{width:"100%",borderRadius:"50%",zIndex:1},onLoad:()=>s(!0)})]}),E?null:v.jsx(xee,{loadingMessage:m,estimatedTime:l})]})})})};var Fa={},MT;function Ree(){if(MT)return Fa;MT=1;var e=Fa&&Fa.__createBinding||(Object.create?function(S,T,C,E){E===void 0&&(E=C);var A=Object.getOwnPropertyDescriptor(T,C);(!A||("get"in A?!T.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return T[C]}}),Object.defineProperty(S,E,A)}:function(S,T,C,E){E===void 0&&(E=C),S[E]=T[C]}),t=Fa&&Fa.__setModuleDefault||(Object.create?function(S,T){Object.defineProperty(S,"default",{enumerable:!0,value:T})}:function(S,T){S.default=T}),n=Fa&&Fa.__importStar||function(S){if(S&&S.__esModule)return S;var T={};if(S!=null)for(var C in S)C!=="default"&&Object.prototype.hasOwnProperty.call(S,C)&&e(T,S,C);return t(T,S),T};Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.useTurnstile=void 0;const r=n(Lb()),a=typeof globalThis<"u"?globalThis:window;let s=typeof a.turnstile<"u"?"ready":"unloaded",l,f;const m=new Promise((S,T)=>{f={resolve:S,reject:T},s==="ready"&&S(void 0)});{const S="cf__reactTurnstileOnLoad",T="https://challenges.cloudflare.com/turnstile/v0/api.js";l=()=>{if(s==="unloaded"){s="loading",a[S]=()=>{f.resolve(),s="ready",delete a[S]};const C=`${T}?onload=${S}&render=explicit`,E=document.createElement("script");E.src=C,E.async=!0,E.addEventListener("error",()=>{f.reject("Failed to load Turnstile."),delete a[S]}),document.head.appendChild(E)}return m}}function p({id:S,className:T,style:C,sitekey:E,action:A,cData:k,theme:L,language:O,tabIndex:P,responseField:M,responseFieldName:$,size:B,fixedSize:H,retry:q,retryInterval:j,refreshExpired:X,appearance:K,execution:ne,userRef:le,onVerify:oe,onSuccess:V,onLoad:Q,onError:Z,onExpire:ae,onTimeout:U,onAfterInteractive:W,onBeforeInteractive:te,onUnsupported:de}){const Ee=(0,r.useRef)(null),xe=(0,r.useState)({onVerify:oe,onSuccess:V,onLoad:Q,onError:Z,onExpire:ae,onTimeout:U,onAfterInteractive:W,onBeforeInteractive:te,onUnsupported:de})[0],Re=le??Ee,rt=H?{width:B==="compact"?"130px":B==="flexible"?"100%":"300px",height:B==="compact"?"120px":"65px",...C}:C;return(0,r.useEffect)(()=>{if(!Re.current)return;let Ke=!1,tt="";return(async()=>{var Be,Xe;if(s!=="ready")try{await l()}catch(ke){(Be=xe.onError)===null||Be===void 0||Be.call(xe,ke);return}if(Ke||!Re.current)return;let He;const Je={sitekey:E,action:A,cData:k,theme:L,language:O,tabindex:P,"response-field":M,"response-field-name":$,size:B,retry:q,"retry-interval":j,"refresh-expired":X,appearance:K,execution:ne,callback:(ke,De)=>{var At,Ze;(At=xe.onVerify)===null||At===void 0||At.call(xe,ke,He),(Ze=xe.onSuccess)===null||Ze===void 0||Ze.call(xe,ke,De,He)},"error-callback":ke=>{var De;return(De=xe.onError)===null||De===void 0?void 0:De.call(xe,ke,He)},"expired-callback":ke=>{var De;return(De=xe.onExpire)===null||De===void 0?void 0:De.call(xe,ke,He)},"timeout-callback":()=>{var ke;return(ke=xe.onTimeout)===null||ke===void 0?void 0:ke.call(xe,He)},"after-interactive-callback":()=>{var ke;return(ke=xe.onAfterInteractive)===null||ke===void 0?void 0:ke.call(xe,He)},"before-interactive-callback":()=>{var ke;return(ke=xe.onBeforeInteractive)===null||ke===void 0?void 0:ke.call(xe,He)},"unsupported-callback":()=>{var ke;return(ke=xe.onUnsupported)===null||ke===void 0?void 0:ke.call(xe,He)}};tt=window.turnstile.render(Re.current,Je),He=g(tt),(Xe=xe.onLoad)===null||Xe===void 0||Xe.call(xe,tt,He)})(),()=>{Ke=!0,tt&&window.turnstile.remove(tt)}},[E,A,k,L,O,P,M,$,B,q,j,X,K,ne]),(0,r.useEffect)(()=>{xe.onVerify=oe,xe.onSuccess=V,xe.onLoad=Q,xe.onError=Z,xe.onExpire=ae,xe.onTimeout=U,xe.onAfterInteractive=W,xe.onBeforeInteractive=te,xe.onUnsupported=de},[oe,V,Q,Z,ae,U,W,te,de]),r.default.createElement("div",{ref:Re,id:S,className:T,style:rt})}Fa.default=p;function g(S){return{execute:T=>window.turnstile.execute(S,T),reset:()=>window.turnstile.reset(S),getResponse:()=>window.turnstile.getResponse(S),isExpired:()=>window.turnstile.isExpired(S)}}function b(){const[S,T]=(0,r.useState)(s);return(0,r.useEffect)(()=>{s!=="ready"&&m.then(()=>T(s))},[]),a.turnstile}return Fa.useTurnstile=b,Fa}var Aee=Ree();const kee=Ib(Aee),Oee={position:"absolute",top:"50%",left:"50%",p:{xs:2,sm:3},transform:"translate(-50%, -50%)",width:{xs:"80%",sm:400,md:408},maxWidth:"100vw",height:{xs:"auto",sm:"auto",md:"auto"},flexShrink:0,borderRadius:"20px",background:"#151D2C",boxShadow:"0px 4px 14.8px 0px #085038",overflowY:"auto",overflowX:"hidden",boxSizing:"border-box"},Mee=({isModalOpen:e,handleModalClose:t,handleBuyPremiumClick:n,handlePremiumSearchClick:r,handleFreeSearchClick:a,handlePrivacyOpen:s,handleTermsOpen:l,onCaptchaToken:f,premiumId:m,credits:p,setPremiumId:g,inputRef:b,invisiblePremium:S,buttonData:T})=>{const[C,E]=_.useState(""),A=_.useRef(null);_.useEffect(()=>{E("")},[]),_.useEffect(()=>{e&&A.current&&A.current.focus()},[e]);const k=L=>{E(L),f(L)};return bt(Rg,{open:e,onClose:t,"aria-labelledby":"modal-title","aria-describedby":"modal-description",disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0,children:So(ce,{sx:{...Oee,position:"relative"},children:[bt(jf,{}),bt(cp,{}),So(ce,{sx:{position:"relative",zIndex:1,mt:{xs:0,sm:0,md:0}},children:[bt(ce,{sx:{flex:"0 0 auto",mt:{xs:1,sm:2},mb:{xs:1,sm:2},display:"flex",justifyContent:{xs:"center",sm:"center"},width:"100%",mb:{xs:3,sm:3,md:3}},children:bt(yb,{})}),So(lR,{children:[bt(Ye,{sx:{color:"#FFFFFF",fontFamily:"Inter, sans-serif",fontSize:{xs:"18px",sm:"22px",md:"24px"},fontWeight:500,lineHeight:{xs:"22px",sm:"20px"},textAlign:"center",mt:{xs:2,sm:4},mb:{xs:2,sm:4},display:"none"},children:"Trying Face Search?"}),So(ce,{sx:{display:m.trim()===""?"none":"flex",alignItems:"center",gap:1,mb:1,mt:1},children:[bt(Gh,{sx:{width:18,height:18,color:"#00A36D"}}),bt(Ye,{sx:{color:"#6B7280",fontSize:{xs:14,sm:16}},children:"Your token balance is"}),bt(pa,{underline:"hover",sx:{fontSize:{xs:"14px",sm:"16px"},fontWeight:500,fontFamily:"Inter, sans-serif",color:"#818ED0"},children:p})]}),bt(ce,{sx:{display:"flex",width:"100%",gap:2},children:bt(ce,{sx:{flex:1},children:So(ce,{sx:{display:"flex",alignItems:"center",gap:1},children:[bt(Gh,{sx:{width:18,height:18,color:"#00A36D"}}),bt(Ye,{sx:{color:"#6B7280",fontSize:{xs:14,sm:16}},children:m.trim()===""?bt("span",{children:"Get Free Profile ID - "}):bt("span",{children:"Need more tokens?"})}),bt(pa,{onClick:n,underline:"hover",sx:{fontSize:{xs:"14px",sm:"16px"},fontWeight:500,fontFamily:"Inter, sans-serif",color:"#818ED0",cursor:"pointer"},children:"Go to Pricing."})]})})}),bt(ce,{sx:{width:"100%",mt:1,mb:2,display:"flex",flexDirection:"column",gap:1},children:bt(ce,{sx:{width:"100%",display:"none",flexDirection:"column",alignItems:"flex-start",borderRadius:"6px",border:"1px solid #0A0914",background:"rgba(255, 255, 255, 0.13)"},children:bt(lx,{inputRef:b,variant:"standard",placeholder:"Input Premium ID",InputProps:{disableUnderline:!0,sx:{px:1.5,py:1,color:"white",fontSize:{xs:"14px",sm:"16px"},fontFamily:"Inter, sans-serif"}},fullWidth:!0,value:m,onChange:L=>g(L.target.value)})})}),bt(qi,{variant:"contained",startIcon:bt(gx,{width:20,height:20}),onClick:r,disabled:m.trim()===""||p<10,sx:{height:40,width:"100%",padding:"6px 12px",justifyContent:"center",alignItems:"center",borderRadius:"6px",backgroundColor:"#12B981",color:"#fff",fontWeight:600,fontSize:{xs:"14px",sm:"16px"},fontFamily:"Inter, sans-serif",textTransform:"none",display:S?"none":"flex","&:hover":{borderColor:m.trim()===""?"none":"rgba(255, 255, 255, 0.7)"},"&.Mui-disabled":{backgroundColor:"#12B98140",color:"#FFFFFF40"}},children:m.trim()===""?bt("span",{children:"Premium Search"}):bt("span",{children:"Premium Search (10 tokens)"})}),bt(Ye,{sx:{color:"#fbbf24",textAlign:"center",fontSize:{xs:12,sm:14},mt:1,display:S?"none":"flex",justifyContent:"center"},children:"Deep search, Full links, Private"})]}),bt(ce,{sx:{display:m.trim()!=""?"none":"flex",justifyContent:"center",mt:2,mb:2},children:bt(kee,{sitekey:"0x4AAAAAABeMwk5hCItqKFcy",onVerify:k})}),bt(ce,{sx:{display:m.trim()!=""?"none":"flex",justifyContent:"center",color:"#fbbf24",fontSize:{xs:"10px",sm:"12px"}},children:bt(Ye,{children:" Complete CAPTCHA to begin free search."})}),bt(qi,{ref:A,variant:"outlined",startIcon:T!=null&&T.standardButtonIcon?T.standardButtonIcon:bt(Mg,{width:20,height:20}),onClick:a,disabled:m.trim()!==""&&p<1,sx:{mt:3,height:40,width:"100%",padding:"6px 12px",justifyContent:"center",borderRadius:"6px",background:"#151D2C",color:"#12B981",fontFamily:"Inter, sans-serif",fontWeight:600,fontSize:{xs:"14px",sm:"16px"},textTransform:"none",border:"1px solid #00A36D","&:hover":{background:"#1d2638"},"&.Mui-disabled":{color:"#555555",borderColor:"#555555",backgroundColor:"#222222",cursor:"not-allowed","&:hover":{backgroundColor:"#222222"}}},children:m.trim()===""?bt("span",{children:T!=null&&T.freeButtonText?T.freeButtonText:"Free Search"}):bt("span",{children:T!=null&&T.standardButtonText?T.standardButtonText:"Standard Search (1 token)"})}),bt(Ye,{sx:{color:"#fbbf24",textAlign:"center",fontSize:{xs:12,sm:14},mt:1,display:S?"none":"flex",justifyContent:"center"},children:"Basic search, Masked links, Private"}),So(Ye,{sx:{fontSize:{xs:"11px",sm:"13px"},fontFamily:"Inter, sans-serif",color:"#9CA3AF",textAlign:"center",mt:3},children:[bt(pa,{onClick:s,underline:"hover",sx:{color:"#818ED0",fontWeight:500,fontSize:{xs:"11px",sm:"13px"},cursor:"pointer"},children:"Privacy Policy"})," | ",bt(pa,{onClick:l,underline:"hover",sx:{color:"#818ED0",fontWeight:500,fontSize:{xs:"11px",sm:"13px"},cursor:"pointer"},children:"Terms of Service"})]})]})]})})},Dee=({paramData:e,token:t,rpkToken:n,credits:r,onTokenChanged:a})=>{const[s,l]=_.useState(pt.READY),[f,m]=_.useState(!1),[p,g]=_.useState(!1),[b,S]=_.useState([]),[T,C]=_.useState([]),[E,A]=_.useState(null),[k,L]=_.useState(""),[O,P]=_.useState(!1),[M,$]=_.useState(null),[B,H]=_.useState(""),[q,j]=_.useState(!1),[X,K]=_.useState(null),[ne,le]=_.useState(null),[oe,V]=_.useState(!1),[Q,Z]=_.useState(!1),[ae,U]=_.useState(!1),[W,te]=_.useState(!1),[de,Ee]=_.useState(null),[xe,Re]=_.useState(120),[rt,Ke]=_.useState(t||""),tt=_.useRef(null),Be=_.useRef(null),Xe=_l(),He=!0;_.useEffect(()=>{if(e&&Object.keys(e).length>0){e.viewMode&&l(e.viewMode),(e.viewMode===pt.SEARCH_FACE_READY||e.viewMode===pt.FACE_RESULT)&&(m(!0),g(!0)),e.viewMode===pt.SEARCH_FACE_READY&&e.file&&W===!1&&(te(!0),$(e.file)),e.viewMode===pt.SEARCH_IMAGE_READY&&e.file&&W===!1&&(te(!0),$(e.file)),e.viewMode===pt.SEARCH_NAME_READY&&e.name&&W===!1&&(te(!0),H(e.name)),e.viewMode===pt.VIDEO_EFFECT_READY&&e.file&&$(e.file),e.viewMode===pt.LOADING&&e.sessionId&&ke(e.sessionId),e.viewMode===pt.TRY_FACE_PREMIUM_SEARCH&&($(e.file),l(pt.SEARCH_FACE_READY),Pt(!1));const je=Gi().includes("video-effect")?{freeButtonText:"Free Generate",standardButtonText:"Standard Generate (1 token)",standardButtonIcon:v.jsx(rT,{width:20,height:20})}:null;le(je)}},[e]),_.useEffect(()=>{t&&Ke(t)},[t,r,He]);function Je(je,Rt,Ve="image/jpeg"){const Ie=atob(je),Le=new Uint8Array(Ie.length);for(let mt=0;mt<Ie.length;mt++)Le[mt]=Ie.charCodeAt(mt);return new File([Le],Rt,{type:Ve})}const ke=async je=>{var Rt,Ve;try{let Ie=await bz(je);if(typeof Ie=="string"&&(Ie=JSON.parse(Ie)),!Ie){l(pt.NO_RESULT);return}if(Ie.type===nn.FACE_STANDARD||Ie.type===nn.FACE_PRO){if(!Ie.result||!Array.isArray(Ie.result.result)){l(pt.NO_RESULT);return}if(Ie!=null&&Ie.image){const mt=Je(Ie.image,"result-image.jpg");$(mt)}const Le=Ie.result.result.map(mt=>({img:mt.image?`data:image/jpeg;base64,${mt.image}`:"",title:mt.url||"Untitled"}));S(Le),l(pt.FACE_RESULT),m(Ie.type===nn.FACE_STANDARD),g(!0)}else if(Ie.type===nn.NAME_STANDARD||Ie.type===nn.NAME_PRO)C(Ie.result.result||[]),l(pt.NAME_RESULT);else if(Ie.type===nn.IMAGE_PRO||Ie.type===nn.IMAGE_STANDARD){if(!Ie.result||!Array.isArray(Ie.result.result)){l(pt.NO_RESULT);return}const Le=Je(Ie.image,"result-image.jpg"),mt=Ie.result.result.map(cn=>({img:cn.imageUrl===""?`data:image/jpeg;base64,${Ie.image}`:cn.imageUrl,title:cn.sourceUrl||"Untitled",orgImage:Ie.image?`data:image/jpeg;base64,${Ie.image}`:""}));$(Le),S(mt),l(pt.IMAGE_RESULT)}else if(Ie.type===nn.VIDEO_EFFECT_PRO||Ie.type===nn.VIDEO_EFFECT_STANDARD){if((Ie==null?void 0:Ie.result.status)===200){const Le=Je(Ie.image,"result-image.jpg");$(Le),A((Ve=(Rt=Ie==null?void 0:Ie.result)==null?void 0:Rt.result)==null?void 0:Ve.url)}else A(null),$(null);l(pt.VIDEO_EFFECT_RESULT)}else l(pt.NO_RESULT)}catch(Ie){console.error("Failed to parse resultJson:",Ie),l(pt.NO_RESULT)}},De=(je,Rt)=>{const Ve=`/${je}/${Rt}`,Ie=`https://faceseek.online${Ve}`;L(Ie)||P(!0),window.parent.postMessage({redirect:Ve},"*")},At=async(je,Rt)=>{try{V(!0);let Ve=await Tv(nn.NAME_STANDARD);if(Ve&&Ve.processing_time&&Re(Math.floor(Ve.processing_time)),Ve=await Sz(je,rt,de,nn.NAME_STANDARD),Ve!=null)if(Ve=="error_limited")He&&j(!0);else if(Ve=="error_captcha"){window.alert("Automation Detected!");return}else if(Ve=="error_token"){window.alert("Invalid Profile ID or insufficient credits.");return}else if(Ve=="error_search"){window.alert("🚫 Search failed! Please try again.");return}else{const Ie=Ve;De(Gi()+"-result",Ie)}}catch(Ve){console.error("An error occurred while searching for the name:",Ve)}finally{l(pt.SEARCH_NAME_READY)}},Ze=async(je,Rt)=>{try{te(!1),V(!0);let Ve=await Tv(Rt?nn.FACE_PRO:nn.FACE_STANDARD);if(Ve&&Ve.processing_time&&Re(Math.floor(Ve.processing_time)),Ve=await xz(je,rt,de,Rt?nn.FACE_PRO:nn.FACE_STANDARD),Ve!=null)if(l(pt.SEARCH_FACE_READY),Ve=="error_limited")He&&j(!0);else if(Ve=="error_captcha"){window.alert("Automation Detected!");return}else if(Ve=="error_token"){window.alert("Invalid Profile ID or insufficient credits.");return}else if(Ve=="error_search"){window.alert("🚫 Search failed! Please try again.");return}else{const Ie=Ve;De(Gi()+"-result",Ie)}else l(pt.SEARCH_FACE_READY)}catch(Ve){console.error("An error occurred while processing the file:",Ve),l(pt.SEARCH_FACE_READY)}finally{}},zt=async(je,Rt)=>{try{te(!1),V(!0);let Ve=await Tv(Rt?nn.IMAGE_PRO:nn.IMAGE_STANDARD);if(Ve&&Ve.processing_time&&Re(Math.floor(Ve.processing_time)),Ve=await wz(je,rt,de,Rt?nn.IMAGE_PRO:nn.IMAGE_STANDARD),Ve!=null)if(l(pt.SEARCH_IMAGE_READY),Ve=="error_limited")He&&j(!0);else if(Ve=="error_captcha"){window.alert("Automation Detected!");return}else if(Ve=="error_token"){window.alert("Invalid Profile ID or insufficient credits.");return}else if(Ve=="error_search"){window.alert("🚫 Search failed! Please try again.");return}else{const Ie=Ve;De(Gi()+"-result",Ie)}else l(pt.SEARCH_IMAGE_READY)}catch(Ve){console.error("An error occurred while processing the file:",Ve),l(pt.SEARCH_IMAGE_READY)}finally{}},ft=async(je,Rt,Ve)=>{try{te(!1),V(!0);let Ie=await Tv(Ve?nn.VIDEO_EFFECT_STANDARD:nn.VIDEO_EFFECT_PRO);if(Ie&&Ie.processing_time&&Re(Math.floor(Ie.processing_time)),Ie=await _z(je,Rt,rt,de,Ve?nn.VIDEO_EFFECT_PRO:nn.VIDEO_EFFECT_STANDARD),Ie!=null)if(l(pt.VIDEO_EFFECT_READY),Ie=="error_limited")He&&j(!0);else if(Ie=="error_captcha"){window.alert("Automation Detected!");return}else if(Ie=="error_token"){window.alert("Invalid Profile ID or insufficient credits.");return}else if(Ie=="error_search"){window.alert("🚫 Generate failed! Please try again.");return}else{const Le=Ie;De(Gi()+"-result",Le)}else l(pt.VIDEO_EFFECT_READY)}catch(Ie){console.error("An error occurred while processing the file:",Ie),l(pt.VIDEO_EFFECT_READY)}finally{}},Pt=async(je=!0)=>{try{if(r>10)if(M){if(je&&!window.confirm("Are you sure you want to perform a Premium Face Search?"))return;Ze(M,!0)}else Xe("/");else Xe("/pricing",{state:{file:M,embeded:!1}})}catch(Rt){console.error("Error during Premium Face Search:",Rt),Xe("/pricing",{state:{file:M,embeded:!1}})}};async function at(je){try{const Ve=await(await $$.load()).get(),Ie=new TextEncoder().encode("rfs_jwt_secret"),Le=await new jR({token:je,fp:Ve.visitorId}).setProtectedHeader({alg:"HS256"}).sign(Ie);Ee(Le)}catch(Rt){console.error("Error generating JWT:",Rt),Ee("")}}const Pe=()=>{te(!1),Xe("/pricing")},rn=()=>{if(rt.trim()===""){Pe();return}a({tokenValue:rt}),Gi().includes("name-search")?At(B):Gi().includes("image-search")?zt(M,!0):Ze(M,!0)},kt=async()=>{const je=(t==null?void 0:t.length)>0&&r>0,Rt=(de==null?void 0:de.length)>0;(je||Rt)&&(Gi().includes("image-search")?zt(M,!1):Gi().includes("name-search")?At(B):Gi().includes("video-effect")?ft(M,tt.current,!1):Ze(M,!1))},sn=()=>{Xe("/video-effect",{state:{file:M,embeded:!1}})},_n=async(je,Rt)=>{tt.current=Rt,$(je),le({freeButtonText:"Free Generate",standardButtonText:"Standard Generate (1 token)",standardButtonIcon:v.jsx(rT,{width:20,height:20})}),te(!0)},hn=()=>{te(!1)},ln=()=>Z(!0),Vt=()=>U(!0),an=()=>{switch(requestAnimationFrame(()=>{Be.current&&Be.current.focus()}),s){case pt.READY:return v.jsx(ce,{children:"Ready to search"});case pt.SEARCH_NAME_READY:return v.jsx(v.Fragment,{children:v.jsx(RT,{onSearch:je=>{H(je),le(null),te(!0)}})});case pt.SEARCH_FACE_READY:return v.jsx(v.Fragment,{children:v.jsx(z2,{title:"Click to upload face image...",onSearch:je=>{je?(le(null),te(!0),$(je)):console.error("Invalid file selected")}})});case pt.SEARCH_IMAGE_READY:return v.jsx(v.Fragment,{children:v.jsx(z2,{title:"Click to upload image...",onSearch:je=>{je?(le(null),te(!0),$(je)):console.error("Invalid file selected")}})});case pt.LOADING:return v.jsx(v.Fragment,{children:v.jsx(ce,{sx:{display:"flex",justifyContent:"center",alignItems:"center",height:100},children:v.jsx(ce,{className:"loading-spinner"})})});case pt.FACE_RESULT:case pt.IMAGE_RESULT:return v.jsxs(v.Fragment,{children:[v.jsx(z2,{title:s===pt.FACE_RESULT?"Click to upload face image...":"Click to upload image...",onSearch:je=>{je?(le(null),te(!0),$(je)):console.error("Invalid file selected")}}),v.jsxs(v.Fragment,{children:[v.jsx(XQ,{onPremiumSearchClick:Pt,onVideoEffectClick:sn,enabledPremiumSearch:f,enabledOptout:p,selectedFile:M}),v.jsx(ce,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"},alignItems:"flex-start"},children:v.jsx(CY,{imageDataValue:b,onPremiumSearchClick:Pt})})]})]});case pt.NAME_RESULT:return v.jsxs(ce,{sx:{display:"flex",flexDirection:"column",gap:1},children:[v.jsx(RT,{onSearch:je=>{H(je),le(null),te(!0)}}),v.jsx(gee,{nameData:T})]});case pt.NO_RESULT:return v.jsx(v.Fragment,{children:v.jsx(ce,{sx:{fontSize:"20px",color:"#FF0000",display:"flex",justifyContent:"center",alignItems:"center",height:100,textAlign:"center"},children:"No results found"})});case pt.VIDEO_EFFECT_READY:case pt.VIDEO_EFFECT_RESULT:return v.jsx(ce,{sx:{display:"flex",flexDirection:"column",gap:1},children:v.jsx(iee,{videoEffectData:E,selectedFile:M,onGenerateClicked:_n})});default:return v.jsx(ce,{children:"Unknown state"})}};return v.jsxs(ce,{sx:{position:"relative",px:{xs:1,sm:3,md:15},py:{xs:4,sm:5},backgroundColor:"#0A0914"},children:[an(),oe&&v.jsx(Tee,{open:oe,file:M,nameValue:B,estimatedTimeValue:xe}),v.jsx(Mee,{isModalOpen:W,handleModalClose:hn,handleBuyPremiumClick:Pe,handlePremiumSearchClick:rn,handleFreeSearchClick:kt,handlePrivacyOpen:ln,handleTermsOpen:Vt,onCaptchaToken:at,premiumId:rt,credits:r,setPremiumId:Ke,inputRef:Be,invisiblePremium:!Gi().includes("face-search"),buttonData:ne}),v.jsx(LR,{open:Q,onClose:()=>Z(!1)}),v.jsx(PR,{open:ae,onClose:()=>U(!1)}),v.jsx(lS,{open:O,onClose:()=>P(!1),resultUrl:k,title:"Result Ready",contents:"Show Result"}),v.jsx(lS,{open:q,onClose:()=>j(!1),resultUrl:"https://faceseek.online",title:"🔍 Want more free searches?",contents:"Visit Faceseek.online"})]})};function bo({pageMode:e,isEmbedValue:t}){const[n,r]=_.useState({}),[a,s]=_.useState(!1),{id:l}=sM(),[f,m]=_.useState(""),[p,g]=_.useState(0),[b,S]=_.useState([]),[T,C]=_.useState(""),[E,A]=_.useState(""),[k,L]=_.useState(!1),[O,P]=_.useState(!1),[M,$]=_.useState(!1),[B,H]=_.useState(t),q=_l(),j=Sl(),X=_.useRef(null);_.useEffect(()=>{const W=document.createElement("script");W.src="https://www.googletagmanager.com/gtag/js?id=G-6V156193FR",W.async=!0;const te=document.createElement("script");return te.innerHTML=`
+      window.dataLayer = window.dataLayer || [];
+      function gtag(){dataLayer.push(arguments);}
+      gtag('js', new Date());
+      gtag('config', 'G-6V156193FR');
+    `,document.head.appendChild(W),document.head.appendChild(te),()=>{document.head.removeChild(W),document.head.removeChild(te)}},[]),_.useEffect(()=>{const W=()=>{const de=document.documentElement.scrollHeight;window.parent.postMessage({frameHeight:de},"*")};window.addEventListener("load",W),window.addEventListener("resize",W),W();const te=setInterval(W,3e3);return()=>{window.removeEventListener("load",W),window.removeEventListener("resize",W),clearInterval(te)}},[]),_.useEffect(()=>{let W="FaceSeek - Advanced Identity Search",te="FaceSeek offers powerful reverse face search, name lookup, and email or phone detection. Identify people across the web with public or private results using advanced OSINT tools.";e===1?(W="FaceSeek - Advanced Reverse Face Search",te="Perform powerful reverse face searches and identify people across the web using advanced AI-powered facial recognition technology."):e===2?(W="FaceSeek - Social Name Search",te="Lookup people by name and discover their social profiles, public information, and online presence with FaceSeek’s social name search tool."):e===3?(W="FaceSeek - Reverse Image Search",te="Upload an image and find similar images, identities, or information across the internet with FaceSeek's fast and accurate reverse image search."):e===4?(W="FaceSeek - AI Funny Video Generator",te="Create hilarious AI-generated videos easily with FaceSeek’s funny video generator powered by advanced artificial intelligence."):e===5&&(W="FaceSeek - Pricing Plans & Features",te="Explore FaceSeek’s flexible pricing plans designed to fit your needs. Get access to advanced face search, image search, and AI tools at competitive rates."),document.title=W,K(te)},[e]);function K(W){let te=document.querySelector("meta[name='description']");te||(te=document.createElement("meta"),te.setAttribute("name","description"),document.head.appendChild(te)),te.setAttribute("content",W)}_.useEffect(()=>{var tt,Be,Xe;const W=new URLSearchParams(j.search),te=l,de=W.get("pid"),Ee=W.get("email_confirm"),xe=(tt=j.state)==null?void 0:tt.file,Re=(Be=j.state)==null?void 0:Be.name,rt=((Xe=j.state)==null?void 0:Xe.embeded)||t;rt===!0&&H(rt),Ee?ne(Ee):xe?e===1?(r({viewMode:pt.SEARCH_FACE_READY,file:xe||null}),q(j.pathname,{replace:!0})):e===3?(r({viewMode:pt.SEARCH_IMAGE_READY,file:xe||null}),q(j.pathname,{replace:!0})):e===4?(r({viewMode:pt.VIDEO_EFFECT_READY,file:xe||null}),q(j.pathname,{replace:!0})):e===5&&(X.current=xe):Re?e===2&&r({viewMode:pt.SEARCH_NAME_READY,name:Re||null}):te&&e<=4?r({viewMode:pt.LOADING,sessionId:te||null}):e===1?r({viewMode:pt.SEARCH_FACE_READY}):e===2?r({viewMode:pt.SEARCH_NAME_READY}):e===3?r({viewMode:pt.SEARCH_IMAGE_READY}):e===4&&r({viewMode:pt.VIDEO_EFFECT_READY});let Ke=de;(de==null||de==null)&&(Ke=Ev.get("auth_token")),Ke&&(m(Ke),le(Ke),Ev.set("auth_token",Ke,{expires:7}))},[e]);const ne=async W=>{s(!0);try{let te=await IR(W,1);if(te.status==400)window.alert("❌ You're already subscribed. Can't find your Profile ID? Contact us."),q("/",{replace:!0});else if(te.status==200){window.alert("✅ Email confirmed successfully! You can now use the service.");const de=`/?pid=${te.pid}`;V(de)}}catch(te){console.error("Error during email confirmation:",te)}finally{s(!1)}},le=async W=>{e===0&&s(!0);try{const te=await vz(W);g((te==null?void 0:te.tokens)||0),S((te==null?void 0:te.sessions)||[]),C((te==null?void 0:te.rpk_id)||"")}catch{g(0),S([]),C("")}finally{s(!1)}},oe=async({order:W})=>{try{const te=JSON.parse(W);(te==null?void 0:te.status)==="success"?(m(te.token),g(te.count),Ev.set("auth_token",te.token,{expires:7}),alert(`✅ Order Confirmed!
+
+ Credits: ${te.count}
+💎 Premium ID: ${te.token} (Save it for future use)
+📧 Also sent to: ${te.email} (check spam if not found)`)):alert("❌ Order failed. Please try again. If the issue persists, contact support or try a different payment method.")}catch{alert("❌ Order failed. Please try again. If the issue persists, contact support or try a different payment method.")}},V=W=>{const te=`https://faceseek.online${W}`;A(te)||L(!0),window.parent.postMessage({redirect:W},"*")},Q=(W,te)=>{te&&V(`/${W}/${te}`)},Z=async W=>{W&&Q("face-search-result",W)},ae=async({example:W})=>{let te="face-search-result",de="face_ex1";W==="example1.png"?de="face_ex1":W==="example2.png"?de="face_ex2":W==="example3.png"?de="face_ex3":(de=W,te="name-search-result"),Q(te,de)},U=({tokenValue:W})=>{s(!0),m(W),Ev.set("auth_token",W,{expires:7}),le(W)};return v.jsxs(v.Fragment,{children:[v.jsx(ce,{sx:{position:"fixed",top:0,left:0,width:"100%",zIndex:1e3,backgroundColor:"#fff",boxShadow:"0 2px 8px rgba(0,0,0,0.1)"},children:v.jsx(XN,{onTokenChanged:U,onHistorySelected:Z,profile:{token:f,credits:p,history:b,pageMode:e},isEmbed:B})}),v.jsxs(ce,{sx:{pt:{xs:"120px",sm:"70px"}},children:[v.jsxs(v.Fragment,{children:[e===0&&v.jsx(v.Fragment,{children:v.jsx(jB,{onExampleClicked:ae,isEmbed:B})}),(e===1||e===2||e===3||e===4)&&v.jsx(v.Fragment,{children:v.jsx(Dee,{paramData:n,token:f,credits:p,rpkToken:T,onTokenChanged:U})}),!B&&v.jsx(gF,{pageMode:e}),e===5&&v.jsx(Ez,{onOrderReceived:oe,isEmbed:B})]}),!B&&e<=1&&v.jsxs(v.Fragment,{children:[v.jsx(y2,{subtitle:"IMAGE SEARCH",title:"What Is Face Search And How Does It Work?",features:["Facial Feature Analysis","Receive Instant Results","Access to Links, Priority Search"],image:"/1.png"}),v.jsx(y2,{subtitle:"AI-POWERED",title:"Why Use A Face Search Tool?",features:["Protect Your Privacy","Identify People Online","Conduct Visual Research","Monitor Your Digital Footprint"],image:"/2.png",reverse:"true"}),v.jsx(y2,{subtitle:"AI-POWERED",title:"Applications Of Face Search Technology",features:["Personal Privacy","Law Enforcement","Journalism and Research","Brand Monitoring","Social Media Management"],image:"/3.png"})]})]}),!B&&v.jsxs(v.Fragment,{children:[e<=1&&v.jsx(Rz,{}),e===2&&v.jsx(kz,{}),e===3&&v.jsx(Az,{}),e===4&&v.jsx(Oz,{}),v.jsx(Tz,{onPrivacyClick:()=>P(!0),onTermsClick:()=>$(!0)})]}),v.jsx(LR,{open:O,onClose:()=>P(!1)}),v.jsx(PR,{open:M,onClose:()=>$(!1)}),v.jsx(lS,{open:k,onClose:()=>L(!1),resultUrl:E,title:"Result Ready",contents:"Show Result"}),v.jsx(ix,{sx:{color:"#fff",zIndex:W=>W.zIndex.drawer+1},open:a,children:v.jsx(Qb,{color:"inherit"})}),!B&&!1]})}function ll(){return _.useEffect(()=>{const e=document.createElement("script");e.type="application/ld+json",e.className="reviews-schema",e.setAttribute("data-ref","dd8debc7d2d556a599e3ca13e7ff749e13ccaf7b"),e.text=JSON.stringify({"@context":"https://schema.org","@type":"Product",name:"FaceSeek",aggregateRating:{"@type":"AggregateRating",ratingValue:5,reviewCount:17}}),document.head.appendChild(e);const t=document.createElement("script");return t.src="https://embedsocial.com/cdn/rsh2.js",t.async=!0,document.body.appendChild(t),()=>{document.head.removeChild(e),document.body.removeChild(t)}},[]),null}const jee=GM,Iee=document.getElementById("root");OO.createRoot(Iee).render(v.jsx(jee,{children:v.jsxs(SM,{children:[v.jsx(Ba,{path:"/",element:v.jsx(v.Fragment,{children:v.jsx(bo,{pageMode:0,isEmbedValue:!1})})}),v.jsx(Ba,{path:"/face-search",element:v.jsxs(v.Fragment,{children:[v.jsx(bo,{pageMode:1,isEmbedValue:!1}),v.jsx(ll,{})]})}),v.jsx(Ba,{path:"/face-search-result/:id",element:v.jsxs(v.Fragment,{children:[v.jsx(bo,{pageMode:1,isEmbedValue:!1}),v.jsx(ll,{})]})}),v.jsx(Ba,{path:"/name-search",element:v.jsxs(v.Fragment,{children:[v.jsx(bo,{pageMode:2,isEmbedValue:!1}),v.jsx(ll,{})]})}),v.jsx(Ba,{path:"/name-search-result/:id",element:v.jsxs(v.Fragment,{children:[v.jsx(bo,{pageMode:2,isEmbedValue:!1}),v.jsx(ll,{})]})}),v.jsx(Ba,{path:"/image-search",element:v.jsxs(v.Fragment,{children:[v.jsx(bo,{pageMode:3,isEmbedValue:!1}),v.jsx(ll,{})]})}),v.jsx(Ba,{path:"/image-search-result/:id",element:v.jsxs(v.Fragment,{children:[v.jsx(bo,{pageMode:3,isEmbedValue:!1}),v.jsx(ll,{})]})}),v.jsx(Ba,{path:"/video-effect",element:v.jsxs(v.Fragment,{children:[v.jsx(bo,{pageMode:4,isEmbedValue:!1}),v.jsx(ll,{})]})}),v.jsx(Ba,{path:"/video-effect-result/:id",element:v.jsxs(v.Fragment,{children:[v.jsx(bo,{pageMode:4,isEmbedValue:!1}),v.jsx(ll,{})]})}),v.jsx(Ba,{path:"/pricing",element:v.jsxs(v.Fragment,{children:[v.jsx(bo,{pageMode:5,isEmbedValue:!1}),v.jsx(ll,{})]})}),v.jsx(Ba,{path:"/embed",element:v.jsx(bo,{pageMode:0,isEmbedValue:!0})})]})}))});export default Lee();