/home/awneajlw/.trash/assets.14/index-BiTqWtGh.js
(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function a(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function s(o){if(o.ep)return;o.ep=!0;const c=a(o);fetch(o.href,c)}})();var _n=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ic(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Gj(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if(typeof n=="function"){var a=function s(){var o=!1;try{o=this instanceof s}catch{}return o?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};a.prototype=n.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(e).forEach(function(s){var o=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(a,s,o.get?o:{enumerable:!0,get:function(){return e[s]}})}),a}var Af={exports:{}},qi={};/**
* @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 Vy;function Yj(){if(Vy)return qi;Vy=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(s,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var f in o)f!=="key"&&(c[f]=o[f])}else c=o;return o=c.ref,{$$typeof:e,type:s,key:u,ref:o!==void 0?o:null,props:c}}return qi.Fragment=n,qi.jsx=a,qi.jsxs=a,qi}var Hy;function Xj(){return Hy||(Hy=1,Af.exports=Yj()),Af.exports}var d=Xj(),Nf={exports:{}},Ve={};/**
* @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 Iy;function Wj(){if(Iy)return Ve;Iy=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),x=Symbol.iterator;function b(v){return v===null||typeof v!="object"?null:(v=x&&v[x]||v["@@iterator"],typeof v=="function"?v:null)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function A(v,O,U){this.props=v,this.context=O,this.refs=S,this.updater=U||E}A.prototype.isReactComponent={},A.prototype.setState=function(v,O){if(typeof v!="object"&&typeof v!="function"&&v!=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,v,O,"setState")},A.prototype.forceUpdate=function(v){this.updater.enqueueForceUpdate(this,v,"forceUpdate")};function T(){}T.prototype=A.prototype;function C(v,O,U){this.props=v,this.context=O,this.refs=S,this.updater=U||E}var L=C.prototype=new T;L.constructor=C,_(L,A.prototype),L.isPureReactComponent=!0;var q=Array.isArray,N={H:null,A:null,T:null,S:null,V:null},z=Object.prototype.hasOwnProperty;function F(v,O,U,J,Q,ne){return U=ne.ref,{$$typeof:e,type:v,key:O,ref:U!==void 0?U:null,props:ne}}function H(v,O){return F(v.type,O,void 0,void 0,void 0,v.props)}function M(v){return typeof v=="object"&&v!==null&&v.$$typeof===e}function R(v){var O={"=":"=0",":":"=2"};return"$"+v.replace(/[=:]/g,function(U){return O[U]})}var K=/\/+/g;function P(v,O){return typeof v=="object"&&v!==null&&v.key!=null?R(""+v.key):O.toString(36)}function V(){}function j(v){switch(v.status){case"fulfilled":return v.value;case"rejected":throw v.reason;default:switch(typeof v.status=="string"?v.then(V,V):(v.status="pending",v.then(function(O){v.status==="pending"&&(v.status="fulfilled",v.value=O)},function(O){v.status==="pending"&&(v.status="rejected",v.reason=O)})),v.status){case"fulfilled":return v.value;case"rejected":throw v.reason}}throw v}function Z(v,O,U,J,Q){var ne=typeof v;(ne==="undefined"||ne==="boolean")&&(v=null);var ie=!1;if(v===null)ie=!0;else switch(ne){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(v.$$typeof){case e:case n:ie=!0;break;case g:return ie=v._init,Z(ie(v._payload),O,U,J,Q)}}if(ie)return Q=Q(v),ie=J===""?"."+P(v,0):J,q(Q)?(U="",ie!=null&&(U=ie.replace(K,"$&/")+"/"),Z(Q,O,U,"",function(Ee){return Ee})):Q!=null&&(M(Q)&&(Q=H(Q,U+(Q.key==null||v&&v.key===Q.key?"":(""+Q.key).replace(K,"$&/")+"/")+ie)),O.push(Q)),1;ie=0;var be=J===""?".":J+":";if(q(v))for(var Se=0;Se<v.length;Se++)J=v[Se],ne=be+P(J,Se),ie+=Z(J,O,U,ne,Q);else if(Se=b(v),typeof Se=="function")for(v=Se.call(v),Se=0;!(J=v.next()).done;)J=J.value,ne=be+P(J,Se++),ie+=Z(J,O,U,ne,Q);else if(ne==="object"){if(typeof v.then=="function")return Z(j(v),O,U,J,Q);throw O=String(v),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(v).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return ie}function W(v,O,U){if(v==null)return v;var J=[],Q=0;return Z(v,J,"","",function(ne){return O.call(U,ne,Q++)}),J}function w(v){if(v._status===-1){var O=v._result;O=O(),O.then(function(U){(v._status===0||v._status===-1)&&(v._status=1,v._result=U)},function(U){(v._status===0||v._status===-1)&&(v._status=2,v._result=U)}),v._status===-1&&(v._status=0,v._result=O)}if(v._status===1)return v._result.default;throw v._result}var ue=typeof reportError=="function"?reportError:function(v){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof v=="object"&&v!==null&&typeof v.message=="string"?String(v.message):String(v),error:v});if(!window.dispatchEvent(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",v);return}console.error(v)};function I(){}return Ve.Children={map:W,forEach:function(v,O,U){W(v,function(){O.apply(this,arguments)},U)},count:function(v){var O=0;return W(v,function(){O++}),O},toArray:function(v){return W(v,function(O){return O})||[]},only:function(v){if(!M(v))throw Error("React.Children.only expected to receive a single React element child.");return v}},Ve.Component=A,Ve.Fragment=a,Ve.Profiler=o,Ve.PureComponent=C,Ve.StrictMode=s,Ve.Suspense=h,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=N,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(v){return N.H.useMemoCache(v)}},Ve.cache=function(v){return function(){return v.apply(null,arguments)}},Ve.cloneElement=function(v,O,U){if(v==null)throw Error("The argument must be a React element, but you passed "+v+".");var J=_({},v.props),Q=v.key,ne=void 0;if(O!=null)for(ie in O.ref!==void 0&&(ne=void 0),O.key!==void 0&&(Q=""+O.key),O)!z.call(O,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&O.ref===void 0||(J[ie]=O[ie]);var ie=arguments.length-2;if(ie===1)J.children=U;else if(1<ie){for(var be=Array(ie),Se=0;Se<ie;Se++)be[Se]=arguments[Se+2];J.children=be}return F(v.type,Q,void 0,void 0,ne,J)},Ve.createContext=function(v){return v={$$typeof:u,_currentValue:v,_currentValue2:v,_threadCount:0,Provider:null,Consumer:null},v.Provider=v,v.Consumer={$$typeof:c,_context:v},v},Ve.createElement=function(v,O,U){var J,Q={},ne=null;if(O!=null)for(J in O.key!==void 0&&(ne=""+O.key),O)z.call(O,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(Q[J]=O[J]);var ie=arguments.length-2;if(ie===1)Q.children=U;else if(1<ie){for(var be=Array(ie),Se=0;Se<ie;Se++)be[Se]=arguments[Se+2];Q.children=be}if(v&&v.defaultProps)for(J in ie=v.defaultProps,ie)Q[J]===void 0&&(Q[J]=ie[J]);return F(v,ne,void 0,void 0,null,Q)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(v){return{$$typeof:f,render:v}},Ve.isValidElement=M,Ve.lazy=function(v){return{$$typeof:g,_payload:{_status:-1,_result:v},_init:w}},Ve.memo=function(v,O){return{$$typeof:m,type:v,compare:O===void 0?null:O}},Ve.startTransition=function(v){var O=N.T,U={};N.T=U;try{var J=v(),Q=N.S;Q!==null&&Q(U,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(I,ue)}catch(ne){ue(ne)}finally{N.T=O}},Ve.unstable_useCacheRefresh=function(){return N.H.useCacheRefresh()},Ve.use=function(v){return N.H.use(v)},Ve.useActionState=function(v,O,U){return N.H.useActionState(v,O,U)},Ve.useCallback=function(v,O){return N.H.useCallback(v,O)},Ve.useContext=function(v){return N.H.useContext(v)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(v,O){return N.H.useDeferredValue(v,O)},Ve.useEffect=function(v,O,U){var J=N.H;if(typeof U=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(v,O)},Ve.useId=function(){return N.H.useId()},Ve.useImperativeHandle=function(v,O,U){return N.H.useImperativeHandle(v,O,U)},Ve.useInsertionEffect=function(v,O){return N.H.useInsertionEffect(v,O)},Ve.useLayoutEffect=function(v,O){return N.H.useLayoutEffect(v,O)},Ve.useMemo=function(v,O){return N.H.useMemo(v,O)},Ve.useOptimistic=function(v,O){return N.H.useOptimistic(v,O)},Ve.useReducer=function(v,O,U){return N.H.useReducer(v,O,U)},Ve.useRef=function(v){return N.H.useRef(v)},Ve.useState=function(v){return N.H.useState(v)},Ve.useSyncExternalStore=function(v,O,U){return N.H.useSyncExternalStore(v,O,U)},Ve.useTransition=function(){return N.H.useTransition()},Ve.version="19.1.0",Ve}var qy;function Cn(){return qy||(qy=1,Nf.exports=Wj()),Nf.exports}var X=Cn();const Ra=Ic(X);var _f={exports:{}},Gi={},kf={exports:{}},Of={};/**
* @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 Gy;function Zj(){return Gy||(Gy=1,function(e){function n(W,w){var ue=W.length;W.push(w);e:for(;0<ue;){var I=ue-1>>>1,v=W[I];if(0<o(v,w))W[I]=w,W[ue]=v,ue=I;else break e}}function a(W){return W.length===0?null:W[0]}function s(W){if(W.length===0)return null;var w=W[0],ue=W.pop();if(ue!==w){W[0]=ue;e:for(var I=0,v=W.length,O=v>>>1;I<O;){var U=2*(I+1)-1,J=W[U],Q=U+1,ne=W[Q];if(0>o(J,ue))Q<v&&0>o(ne,J)?(W[I]=ne,W[Q]=ue,I=Q):(W[I]=J,W[U]=ue,I=U);else if(Q<v&&0>o(ne,ue))W[I]=ne,W[Q]=ue,I=Q;else break e}}return w}function o(W,w){var ue=W.sortIndex-w.sortIndex;return ue!==0?ue:W.id-w.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,f=u.now();e.unstable_now=function(){return u.now()-f}}var h=[],m=[],g=1,x=null,b=3,E=!1,_=!1,S=!1,A=!1,T=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function q(W){for(var w=a(m);w!==null;){if(w.callback===null)s(m);else if(w.startTime<=W)s(m),w.sortIndex=w.expirationTime,n(h,w);else break;w=a(m)}}function N(W){if(S=!1,q(W),!_)if(a(h)!==null)_=!0,z||(z=!0,P());else{var w=a(m);w!==null&&Z(N,w.startTime-W)}}var z=!1,F=-1,H=5,M=-1;function R(){return A?!0:!(e.unstable_now()-M<H)}function K(){if(A=!1,z){var W=e.unstable_now();M=W;var w=!0;try{e:{_=!1,S&&(S=!1,C(F),F=-1),E=!0;var ue=b;try{t:{for(q(W),x=a(h);x!==null&&!(x.expirationTime>W&&R());){var I=x.callback;if(typeof I=="function"){x.callback=null,b=x.priorityLevel;var v=I(x.expirationTime<=W);if(W=e.unstable_now(),typeof v=="function"){x.callback=v,q(W),w=!0;break t}x===a(h)&&s(h),q(W)}else s(h);x=a(h)}if(x!==null)w=!0;else{var O=a(m);O!==null&&Z(N,O.startTime-W),w=!1}}break e}finally{x=null,b=ue,E=!1}w=void 0}}finally{w?P():z=!1}}}var P;if(typeof L=="function")P=function(){L(K)};else if(typeof MessageChannel<"u"){var V=new MessageChannel,j=V.port2;V.port1.onmessage=K,P=function(){j.postMessage(null)}}else P=function(){T(K,0)};function Z(W,w){F=T(function(){W(e.unstable_now())},w)}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(W){W.callback=null},e.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):H=0<W?Math.floor(1e3/W):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_next=function(W){switch(b){case 1:case 2:case 3:var w=3;break;default:w=b}var ue=b;b=w;try{return W()}finally{b=ue}},e.unstable_requestPaint=function(){A=!0},e.unstable_runWithPriority=function(W,w){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var ue=b;b=W;try{return w()}finally{b=ue}},e.unstable_scheduleCallback=function(W,w,ue){var I=e.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?I+ue:I):ue=I,W){case 1:var v=-1;break;case 2:v=250;break;case 5:v=1073741823;break;case 4:v=1e4;break;default:v=5e3}return v=ue+v,W={id:g++,callback:w,priorityLevel:W,startTime:ue,expirationTime:v,sortIndex:-1},ue>I?(W.sortIndex=ue,n(m,W),a(h)===null&&W===a(m)&&(S?(C(F),F=-1):S=!0,Z(N,ue-I))):(W.sortIndex=v,n(h,W),_||E||(_=!0,z||(z=!0,P()))),W},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(W){var w=b;return function(){var ue=b;b=w;try{return W.apply(this,arguments)}finally{b=ue}}}}(Of)),Of}var Yy;function Kj(){return Yy||(Yy=1,kf.exports=Zj()),kf.exports}var Rf={exports:{}},Vt={};/**
* @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 Xy;function $j(){if(Xy)return Vt;Xy=1;var e=Cn();function n(h){var m="https://react.dev/errors/"+h;if(1<arguments.length){m+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)m+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+m+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(h,m,g){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:x==null?null:""+x,children:h,containerInfo:m,implementation:g}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,m){if(h==="font")return"";if(typeof m=="string")return m==="use-credentials"?m:""}return Vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Vt.createPortal=function(h,m){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!m||m.nodeType!==1&&m.nodeType!==9&&m.nodeType!==11)throw Error(n(299));return c(h,m,null,g)},Vt.flushSync=function(h){var m=u.T,g=s.p;try{if(u.T=null,s.p=2,h)return h()}finally{u.T=m,s.p=g,s.d.f()}},Vt.preconnect=function(h,m){typeof h=="string"&&(m?(m=m.crossOrigin,m=typeof m=="string"?m==="use-credentials"?m:"":void 0):m=null,s.d.C(h,m))},Vt.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},Vt.preinit=function(h,m){if(typeof h=="string"&&m&&typeof m.as=="string"){var g=m.as,x=f(g,m.crossOrigin),b=typeof m.integrity=="string"?m.integrity:void 0,E=typeof m.fetchPriority=="string"?m.fetchPriority:void 0;g==="style"?s.d.S(h,typeof m.precedence=="string"?m.precedence:void 0,{crossOrigin:x,integrity:b,fetchPriority:E}):g==="script"&&s.d.X(h,{crossOrigin:x,integrity:b,fetchPriority:E,nonce:typeof m.nonce=="string"?m.nonce:void 0})}},Vt.preinitModule=function(h,m){if(typeof h=="string")if(typeof m=="object"&&m!==null){if(m.as==null||m.as==="script"){var g=f(m.as,m.crossOrigin);s.d.M(h,{crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0})}}else m==null&&s.d.M(h)},Vt.preload=function(h,m){if(typeof h=="string"&&typeof m=="object"&&m!==null&&typeof m.as=="string"){var g=m.as,x=f(g,m.crossOrigin);s.d.L(h,g,{crossOrigin:x,integrity:typeof m.integrity=="string"?m.integrity:void 0,nonce:typeof m.nonce=="string"?m.nonce:void 0,type:typeof m.type=="string"?m.type:void 0,fetchPriority:typeof m.fetchPriority=="string"?m.fetchPriority:void 0,referrerPolicy:typeof m.referrerPolicy=="string"?m.referrerPolicy:void 0,imageSrcSet:typeof m.imageSrcSet=="string"?m.imageSrcSet:void 0,imageSizes:typeof m.imageSizes=="string"?m.imageSizes:void 0,media:typeof m.media=="string"?m.media:void 0})}},Vt.preloadModule=function(h,m){if(typeof h=="string")if(m){var g=f(m.as,m.crossOrigin);s.d.m(h,{as:typeof m.as=="string"&&m.as!=="script"?m.as:void 0,crossOrigin:g,integrity:typeof m.integrity=="string"?m.integrity:void 0})}else s.d.m(h)},Vt.requestFormReset=function(h){s.d.r(h)},Vt.unstable_batchedUpdates=function(h,m){return h(m)},Vt.useFormState=function(h,m,g){return u.H.useFormState(h,m,g)},Vt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Vt.version="19.1.0",Vt}var Wy;function Qj(){if(Wy)return Rf.exports;Wy=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(n){console.error(n)}}return e(),Rf.exports=$j(),Rf.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 Zy;function Jj(){if(Zy)return Gi;Zy=1;var e=Kj(),n=Cn(),a=Qj();function s(t){var r="https://react.dev/errors/"+t;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+t+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function c(t){var r=t,i=t;if(t.alternate)for(;r.return;)r=r.return;else{t=r;do r=t,(r.flags&4098)!==0&&(i=r.return),t=r.return;while(t)}return r.tag===3?i:null}function u(t){if(t.tag===13){var r=t.memoizedState;if(r===null&&(t=t.alternate,t!==null&&(r=t.memoizedState)),r!==null)return r.dehydrated}return null}function f(t){if(c(t)!==t)throw Error(s(188))}function h(t){var r=t.alternate;if(!r){if(r=c(t),r===null)throw Error(s(188));return r!==t?null:t}for(var i=t,l=r;;){var p=i.return;if(p===null)break;var y=p.alternate;if(y===null){if(l=p.return,l!==null){i=l;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===i)return f(p),t;if(y===l)return f(p),r;y=y.sibling}throw Error(s(188))}if(i.return!==l.return)i=p,l=y;else{for(var D=!1,B=p.child;B;){if(B===i){D=!0,i=p,l=y;break}if(B===l){D=!0,l=p,i=y;break}B=B.sibling}if(!D){for(B=y.child;B;){if(B===i){D=!0,i=y,l=p;break}if(B===l){D=!0,l=y,i=p;break}B=B.sibling}if(!D)throw Error(s(189))}}if(i.alternate!==l)throw Error(s(190))}if(i.tag!==3)throw Error(s(188));return i.stateNode.current===i?t:r}function m(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=m(t),r!==null)return r;t=t.sibling}return null}var g=Object.assign,x=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),E=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),A=Symbol.for("react.profiler"),T=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),L=Symbol.for("react.context"),q=Symbol.for("react.forward_ref"),N=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),F=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),M=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),K=Symbol.iterator;function P(t){return t===null||typeof t!="object"?null:(t=K&&t[K]||t["@@iterator"],typeof t=="function"?t:null)}var V=Symbol.for("react.client.reference");function j(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===V?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case _:return"Fragment";case A:return"Profiler";case S:return"StrictMode";case N:return"Suspense";case z:return"SuspenseList";case M:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case E:return"Portal";case L:return(t.displayName||"Context")+".Provider";case C:return(t._context.displayName||"Context")+".Consumer";case q:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case F:return r=t.displayName||null,r!==null?r:j(t.type)||"Memo";case H:r=t._payload,t=t._init;try{return j(t(r))}catch{}}return null}var Z=Array.isArray,W=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,w=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},I=[],v=-1;function O(t){return{current:t}}function U(t){0>v||(t.current=I[v],I[v]=null,v--)}function J(t,r){v++,I[v]=t.current,t.current=r}var Q=O(null),ne=O(null),ie=O(null),be=O(null);function Se(t,r){switch(J(ie,r),J(ne,t),J(Q,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?py(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=py(r),t=gy(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}U(Q),J(Q,t)}function Ee(){U(Q),U(ne),U(ie)}function Ne(t){t.memoizedState!==null&&J(be,t);var r=Q.current,i=gy(r,t.type);r!==i&&(J(ne,t),J(Q,i))}function Oe(t){ne.current===t&&(U(Q),U(ne)),be.current===t&&(U(be),Bi._currentValue=ue)}var Le=Object.prototype.hasOwnProperty,Re=e.unstable_scheduleCallback,k=e.unstable_cancelCallback,de=e.unstable_shouldYield,ce=e.unstable_requestPaint,G=e.unstable_now,Y=e.unstable_getCurrentPriorityLevel,te=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,ye=e.unstable_NormalPriority,oe=e.unstable_LowPriority,je=e.unstable_IdlePriority,Te=e.log,ee=e.unstable_setDisableYieldValue,xe=null,_e=null;function Ce(t){if(typeof Te=="function"&&ee(t),_e&&typeof _e.setStrictMode=="function")try{_e.setStrictMode(xe,t)}catch{}}var He=Math.clz32?Math.clz32:gn,an=Math.log,ft=Math.LN2;function gn(t){return t>>>=0,t===0?32:31-(an(t)/ft|0)|0}var at=256,rr=4194304;function Ln(t){var r=t&42;if(r!==0)return r;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 t&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function Zt(t,r,i){var l=t.pendingLanes;if(l===0)return 0;var p=0,y=t.suspendedLanes,D=t.pingedLanes;t=t.warmLanes;var B=l&134217727;return B!==0?(l=B&~y,l!==0?p=Ln(l):(D&=B,D!==0?p=Ln(D):i||(i=B&~t,i!==0&&(p=Ln(i))))):(B=l&~y,B!==0?p=Ln(B):D!==0?p=Ln(D):i||(i=l&~t,i!==0&&(p=Ln(i)))),p===0?0:r!==0&&r!==p&&(r&y)===0&&(y=p&-p,i=r&-r,y>=i||y===32&&(i&4194048)!==0)?r:p}function _r(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function mu(t,r){switch(t){case 1:case 2:case 4:case 8:case 64:return r+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 r+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 Uo(){var t=at;return at<<=1,(at&4194048)===0&&(at=256),t}function Bo(){var t=rr;return rr<<=1,(rr&62914560)===0&&(rr=4194304),t}function Ba(t){for(var r=[],i=0;31>i;i++)r.push(t);return r}function Pn(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Fa(t,r,i,l,p,y){var D=t.pendingLanes;t.pendingLanes=i,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=i,t.entangledLanes&=i,t.errorRecoveryDisabledLanes&=i,t.shellSuspendCounter=0;var B=t.entanglements,$=t.expirationTimes,le=t.hiddenUpdates;for(i=D&~i;0<i;){var ge=31-He(i),we=1<<ge;B[ge]=0,$[ge]=-1;var fe=le[ge];if(fe!==null)for(le[ge]=null,ge=0;ge<fe.length;ge++){var he=fe[ge];he!==null&&(he.lane&=-536870913)}i&=~we}l!==0&&ep(t,l,0),y!==0&&p===0&&t.tag!==0&&(t.suspendedLanes|=y&~(D&~r))}function ep(t,r,i){t.pendingLanes|=r,t.suspendedLanes&=~r;var l=31-He(r);t.entangledLanes|=r,t.entanglements[l]=t.entanglements[l]|1073741824|i&4194090}function tp(t,r){var i=t.entangledLanes|=r;for(t=t.entanglements;i;){var l=31-He(i),p=1<<l;p&r|t[l]&r&&(t[l]|=r),i&=~p}}function pu(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function gu(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function np(){var t=w.p;return t!==0?t:(t=window.event,t===void 0?32:Ly(t.type))}function M2(t,r){var i=w.p;try{return w.p=t,r()}finally{w.p=i}}var kr=Math.random().toString(36).slice(2),Bt="__reactFiber$"+kr,Kt="__reactProps$"+kr,Va="__reactContainer$"+kr,yu="__reactEvents$"+kr,L2="__reactListeners$"+kr,P2="__reactHandles$"+kr,rp="__reactResources$"+kr,Ks="__reactMarker$"+kr;function xu(t){delete t[Bt],delete t[Kt],delete t[yu],delete t[L2],delete t[P2]}function Ha(t){var r=t[Bt];if(r)return r;for(var i=t.parentNode;i;){if(r=i[Va]||i[Bt]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(t=by(t);t!==null;){if(i=t[Bt])return i;t=by(t)}return r}t=i,i=t.parentNode}return null}function Ia(t){if(t=t[Bt]||t[Va]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function $s(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(s(33))}function qa(t){var r=t[rp];return r||(r=t[rp]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Ot(t){t[Ks]=!0}var ap=new Set,sp={};function ia(t,r){Ga(t,r),Ga(t+"Capture",r)}function Ga(t,r){for(sp[t]=r,t=0;t<r.length;t++)ap.add(r[t])}var z2=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]*$"),ip={},op={};function U2(t){return Le.call(op,t)?!0:Le.call(ip,t)?!1:z2.test(t)?op[t]=!0:(ip[t]=!0,!1)}function Fo(t,r,i){if(U2(r))if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":t.removeAttribute(r);return;case"boolean":var l=r.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(r);return}}t.setAttribute(r,""+i)}}function Vo(t,r,i){if(i===null)t.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(r);return}t.setAttribute(r,""+i)}}function ar(t,r,i,l){if(l===null)t.removeAttribute(i);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttributeNS(r,i,""+l)}}var vu,lp;function Ya(t){if(vu===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);vu=r&&r[1]||"",lp=-1<i.stack.indexOf(`
at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
`+vu+t+lp}var bu=!1;function wu(t,r){if(!t||bu)return"";bu=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(r){var we=function(){throw Error()};if(Object.defineProperty(we.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(we,[])}catch(he){var fe=he}Reflect.construct(t,[],we)}else{try{we.call()}catch(he){fe=he}t.call(we.prototype)}}else{try{throw Error()}catch(he){fe=he}(we=t())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(he){if(he&&fe&&typeof he.stack=="string")return[he.stack,fe.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=l.DetermineComponentFrameRoot(),D=y[0],B=y[1];if(D&&B){var $=D.split(`
`),le=B.split(`
`);for(p=l=0;l<$.length&&!$[l].includes("DetermineComponentFrameRoot");)l++;for(;p<le.length&&!le[p].includes("DetermineComponentFrameRoot");)p++;if(l===$.length||p===le.length)for(l=$.length-1,p=le.length-1;1<=l&&0<=p&&$[l]!==le[p];)p--;for(;1<=l&&0<=p;l--,p--)if($[l]!==le[p]){if(l!==1||p!==1)do if(l--,p--,0>p||$[l]!==le[p]){var ge=`
`+$[l].replace(" at new "," at ");return t.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",t.displayName)),ge}while(1<=l&&0<=p);break}}}finally{bu=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?Ya(i):""}function B2(t){switch(t.tag){case 26:case 27:case 5:return Ya(t.type);case 16:return Ya("Lazy");case 13:return Ya("Suspense");case 19:return Ya("SuspenseList");case 0:case 15:return wu(t.type,!1);case 11:return wu(t.type.render,!1);case 1:return wu(t.type,!0);case 31:return Ya("Activity");default:return""}}function cp(t){try{var r="";do r+=B2(t),t=t.return;while(t);return r}catch(i){return`
Error generating stack: `+i.message+`
`+i.stack}}function yn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function up(t){var r=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function F2(t){var r=up(t)?"checked":"value",i=Object.getOwnPropertyDescriptor(t.constructor.prototype,r),l=""+t[r];if(!t.hasOwnProperty(r)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var p=i.get,y=i.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return p.call(this)},set:function(D){l=""+D,y.call(this,D)}}),Object.defineProperty(t,r,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(D){l=""+D},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Ho(t){t._valueTracker||(t._valueTracker=F2(t))}function dp(t){if(!t)return!1;var r=t._valueTracker;if(!r)return!0;var i=r.getValue(),l="";return t&&(l=up(t)?t.checked?"true":"false":t.value),t=l,t!==i?(r.setValue(t),!0):!1}function Io(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var V2=/[\n"\\]/g;function xn(t){return t.replace(V2,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Su(t,r,i,l,p,y,D,B){t.name="",D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"?t.type=D:t.removeAttribute("type"),r!=null?D==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+yn(r)):t.value!==""+yn(r)&&(t.value=""+yn(r)):D!=="submit"&&D!=="reset"||t.removeAttribute("value"),r!=null?ju(t,D,yn(r)):i!=null?ju(t,D,yn(i)):l!=null&&t.removeAttribute("value"),p==null&&y!=null&&(t.defaultChecked=!!y),p!=null&&(t.checked=p&&typeof p!="function"&&typeof p!="symbol"),B!=null&&typeof B!="function"&&typeof B!="symbol"&&typeof B!="boolean"?t.name=""+yn(B):t.removeAttribute("name")}function fp(t,r,i,l,p,y,D,B){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(t.type=y),r!=null||i!=null){if(!(y!=="submit"&&y!=="reset"||r!=null))return;i=i!=null?""+yn(i):"",r=r!=null?""+yn(r):i,B||r===t.value||(t.value=r),t.defaultValue=r}l=l??p,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=B?t.checked:!!l,t.defaultChecked=!!l,D!=null&&typeof D!="function"&&typeof D!="symbol"&&typeof D!="boolean"&&(t.name=D)}function ju(t,r,i){r==="number"&&Io(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Xa(t,r,i,l){if(t=t.options,r){r={};for(var p=0;p<i.length;p++)r["$"+i[p]]=!0;for(i=0;i<t.length;i++)p=r.hasOwnProperty("$"+t[i].value),t[i].selected!==p&&(t[i].selected=p),p&&l&&(t[i].defaultSelected=!0)}else{for(i=""+yn(i),r=null,p=0;p<t.length;p++){if(t[p].value===i){t[p].selected=!0,l&&(t[p].defaultSelected=!0);return}r!==null||t[p].disabled||(r=t[p])}r!==null&&(r.selected=!0)}}function hp(t,r,i){if(r!=null&&(r=""+yn(r),r!==t.value&&(t.value=r),i==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=i!=null?""+yn(i):""}function mp(t,r,i,l){if(r==null){if(l!=null){if(i!=null)throw Error(s(92));if(Z(l)){if(1<l.length)throw Error(s(93));l=l[0]}i=l}i==null&&(i=""),r=i}i=yn(r),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l)}function Wa(t,r){if(r){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=r;return}}t.textContent=r}var H2=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 pp(t,r,i){var l=r.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?l?t.setProperty(r,""):r==="float"?t.cssFloat="":t[r]="":l?t.setProperty(r,i):typeof i!="number"||i===0||H2.has(r)?r==="float"?t.cssFloat=i:t[r]=(""+i).trim():t[r]=i+"px"}function gp(t,r,i){if(r!=null&&typeof r!="object")throw Error(s(62));if(t=t.style,i!=null){for(var l in i)!i.hasOwnProperty(l)||r!=null&&r.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var p in r)l=r[p],r.hasOwnProperty(p)&&i[p]!==l&&pp(t,p,l)}else for(var y in r)r.hasOwnProperty(y)&&pp(t,y,r[y])}function Eu(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var I2=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"]]),q2=/^[\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 qo(t){return q2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var Tu=null;function Au(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Za=null,Ka=null;function yp(t){var r=Ia(t);if(r&&(t=r.stateNode)){var i=t[Kt]||null;e:switch(t=r.stateNode,r.type){case"input":if(Su(t,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),r=i.name,i.type==="radio"&&r!=null){for(i=t;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+xn(""+r)+'"][type="radio"]'),r=0;r<i.length;r++){var l=i[r];if(l!==t&&l.form===t.form){var p=l[Kt]||null;if(!p)throw Error(s(90));Su(l,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(r=0;r<i.length;r++)l=i[r],l.form===t.form&&dp(l)}break e;case"textarea":hp(t,i.value,i.defaultValue);break e;case"select":r=i.value,r!=null&&Xa(t,!!i.multiple,r,!1)}}}var Nu=!1;function xp(t,r,i){if(Nu)return t(r,i);Nu=!0;try{var l=t(r);return l}finally{if(Nu=!1,(Za!==null||Ka!==null)&&(kl(),Za&&(r=Za,t=Ka,Ka=Za=null,yp(r),t)))for(r=0;r<t.length;r++)yp(t[r])}}function Qs(t,r){var i=t.stateNode;if(i===null)return null;var l=i[Kt]||null;if(l===null)return null;i=l[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(i&&typeof i!="function")throw Error(s(231,r,typeof i));return i}var sr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_u=!1;if(sr)try{var Js={};Object.defineProperty(Js,"passive",{get:function(){_u=!0}}),window.addEventListener("test",Js,Js),window.removeEventListener("test",Js,Js)}catch{_u=!1}var Or=null,ku=null,Go=null;function vp(){if(Go)return Go;var t,r=ku,i=r.length,l,p="value"in Or?Or.value:Or.textContent,y=p.length;for(t=0;t<i&&r[t]===p[t];t++);var D=i-t;for(l=1;l<=D&&r[i-l]===p[y-l];l++);return Go=p.slice(t,1<l?1-l:void 0)}function Yo(t){var r=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&r===13&&(t=13)):t=r,t===10&&(t=13),32<=t||t===13?t:0}function Xo(){return!0}function bp(){return!1}function $t(t){function r(i,l,p,y,D){this._reactName=i,this._targetInst=p,this.type=l,this.nativeEvent=y,this.target=D,this.currentTarget=null;for(var B in t)t.hasOwnProperty(B)&&(i=t[B],this[B]=i?i(y):y[B]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Xo:bp,this.isPropagationStopped=bp,this}return g(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=Xo)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Xo)},persist:function(){},isPersistent:Xo}),r}var oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Wo=$t(oa),ei=g({},oa,{view:0,detail:0}),G2=$t(ei),Ou,Ru,ti,Zo=g({},ei,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Du,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==ti&&(ti&&t.type==="mousemove"?(Ou=t.screenX-ti.screenX,Ru=t.screenY-ti.screenY):Ru=Ou=0,ti=t),Ou)},movementY:function(t){return"movementY"in t?t.movementY:Ru}}),wp=$t(Zo),Y2=g({},Zo,{dataTransfer:0}),X2=$t(Y2),W2=g({},ei,{relatedTarget:0}),Cu=$t(W2),Z2=g({},oa,{animationName:0,elapsedTime:0,pseudoElement:0}),K2=$t(Z2),$2=g({},oa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Q2=$t($2),J2=g({},oa,{data:0}),Sp=$t(J2),eS={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tS={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"},nS={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rS(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=nS[t])?!!r[t]:!1}function Du(){return rS}var aS=g({},ei,{key:function(t){if(t.key){var r=eS[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Yo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?tS[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Du,charCode:function(t){return t.type==="keypress"?Yo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Yo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),sS=$t(aS),iS=g({},Zo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),jp=$t(iS),oS=g({},ei,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Du}),lS=$t(oS),cS=g({},oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),uS=$t(cS),dS=g({},Zo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),fS=$t(dS),hS=g({},oa,{newState:0,oldState:0}),mS=$t(hS),pS=[9,13,27,32],Mu=sr&&"CompositionEvent"in window,ni=null;sr&&"documentMode"in document&&(ni=document.documentMode);var gS=sr&&"TextEvent"in window&&!ni,Ep=sr&&(!Mu||ni&&8<ni&&11>=ni),Tp=" ",Ap=!1;function Np(t,r){switch(t){case"keyup":return pS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _p(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var $a=!1;function yS(t,r){switch(t){case"compositionend":return _p(r);case"keypress":return r.which!==32?null:(Ap=!0,Tp);case"textInput":return t=r.data,t===Tp&&Ap?null:t;default:return null}}function xS(t,r){if($a)return t==="compositionend"||!Mu&&Np(t,r)?(t=vp(),Go=ku=Or=null,$a=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return Ep&&r.locale!=="ko"?null:r.data;default:return null}}var vS={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 kp(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!vS[t.type]:r==="textarea"}function Op(t,r,i,l){Za?Ka?Ka.push(l):Ka=[l]:Za=l,r=Ll(r,"onChange"),0<r.length&&(i=new Wo("onChange","change",null,i,l),t.push({event:i,listeners:r}))}var ri=null,ai=null;function bS(t){uy(t,0)}function Ko(t){var r=$s(t);if(dp(r))return t}function Rp(t,r){if(t==="change")return r}var Cp=!1;if(sr){var Lu;if(sr){var Pu="oninput"in document;if(!Pu){var Dp=document.createElement("div");Dp.setAttribute("oninput","return;"),Pu=typeof Dp.oninput=="function"}Lu=Pu}else Lu=!1;Cp=Lu&&(!document.documentMode||9<document.documentMode)}function Mp(){ri&&(ri.detachEvent("onpropertychange",Lp),ai=ri=null)}function Lp(t){if(t.propertyName==="value"&&Ko(ai)){var r=[];Op(r,ai,t,Au(t)),xp(bS,r)}}function wS(t,r,i){t==="focusin"?(Mp(),ri=r,ai=i,ri.attachEvent("onpropertychange",Lp)):t==="focusout"&&Mp()}function SS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ko(ai)}function jS(t,r){if(t==="click")return Ko(r)}function ES(t,r){if(t==="input"||t==="change")return Ko(r)}function TS(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var sn=typeof Object.is=="function"?Object.is:TS;function si(t,r){if(sn(t,r))return!0;if(typeof t!="object"||t===null||typeof r!="object"||r===null)return!1;var i=Object.keys(t),l=Object.keys(r);if(i.length!==l.length)return!1;for(l=0;l<i.length;l++){var p=i[l];if(!Le.call(r,p)||!sn(t[p],r[p]))return!1}return!0}function Pp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function zp(t,r){var i=Pp(t);t=0;for(var l;i;){if(i.nodeType===3){if(l=t+i.textContent.length,t<=r&&l>=r)return{node:i,offset:r-t};t=l}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=Pp(i)}}function Up(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?Up(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Bp(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Io(t.document);r instanceof t.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)t=r.contentWindow;else break;r=Io(t.document)}return r}function zu(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r&&(r==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||r==="textarea"||t.contentEditable==="true")}var AS=sr&&"documentMode"in document&&11>=document.documentMode,Qa=null,Uu=null,ii=null,Bu=!1;function Fp(t,r,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Bu||Qa==null||Qa!==Io(l)||(l=Qa,"selectionStart"in l&&zu(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),ii&&si(ii,l)||(ii=l,l=Ll(Uu,"onSelect"),0<l.length&&(r=new Wo("onSelect","select",null,r,i),t.push({event:r,listeners:l}),r.target=Qa)))}function la(t,r){var i={};return i[t.toLowerCase()]=r.toLowerCase(),i["Webkit"+t]="webkit"+r,i["Moz"+t]="moz"+r,i}var Ja={animationend:la("Animation","AnimationEnd"),animationiteration:la("Animation","AnimationIteration"),animationstart:la("Animation","AnimationStart"),transitionrun:la("Transition","TransitionRun"),transitionstart:la("Transition","TransitionStart"),transitioncancel:la("Transition","TransitionCancel"),transitionend:la("Transition","TransitionEnd")},Fu={},Vp={};sr&&(Vp=document.createElement("div").style,"AnimationEvent"in window||(delete Ja.animationend.animation,delete Ja.animationiteration.animation,delete Ja.animationstart.animation),"TransitionEvent"in window||delete Ja.transitionend.transition);function ca(t){if(Fu[t])return Fu[t];if(!Ja[t])return t;var r=Ja[t],i;for(i in r)if(r.hasOwnProperty(i)&&i in Vp)return Fu[t]=r[i];return t}var Hp=ca("animationend"),Ip=ca("animationiteration"),qp=ca("animationstart"),NS=ca("transitionrun"),_S=ca("transitionstart"),kS=ca("transitioncancel"),Gp=ca("transitionend"),Yp=new Map,Vu="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(" ");Vu.push("scrollEnd");function zn(t,r){Yp.set(t,r),ia(r,[t])}var Xp=new WeakMap;function vn(t,r){if(typeof t=="object"&&t!==null){var i=Xp.get(t);return i!==void 0?i:(r={value:t,source:r,stack:cp(r)},Xp.set(t,r),r)}return{value:t,source:r,stack:cp(r)}}var bn=[],es=0,Hu=0;function $o(){for(var t=es,r=Hu=es=0;r<t;){var i=bn[r];bn[r++]=null;var l=bn[r];bn[r++]=null;var p=bn[r];bn[r++]=null;var y=bn[r];if(bn[r++]=null,l!==null&&p!==null){var D=l.pending;D===null?p.next=p:(p.next=D.next,D.next=p),l.pending=p}y!==0&&Wp(i,p,y)}}function Qo(t,r,i,l){bn[es++]=t,bn[es++]=r,bn[es++]=i,bn[es++]=l,Hu|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Iu(t,r,i,l){return Qo(t,r,i,l),Jo(t)}function ts(t,r){return Qo(t,null,null,r),Jo(t)}function Wp(t,r,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var p=!1,y=t.return;y!==null;)y.childLanes|=i,l=y.alternate,l!==null&&(l.childLanes|=i),y.tag===22&&(t=y.stateNode,t===null||t._visibility&1||(p=!0)),t=y,y=y.return;return t.tag===3?(y=t.stateNode,p&&r!==null&&(p=31-He(i),t=y.hiddenUpdates,l=t[p],l===null?t[p]=[r]:l.push(r),r.lane=i|536870912),y):null}function Jo(t){if(50<Ri)throw Ri=0,Zd=null,Error(s(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var ns={};function OS(t,r,i,l){this.tag=t,this.key=i,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function on(t,r,i,l){return new OS(t,r,i,l)}function qu(t){return t=t.prototype,!(!t||!t.isReactComponent)}function ir(t,r){var i=t.alternate;return i===null?(i=on(t.tag,r,t.key,t.mode),i.elementType=t.elementType,i.type=t.type,i.stateNode=t.stateNode,i.alternate=t,t.alternate=i):(i.pendingProps=r,i.type=t.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=t.flags&65011712,i.childLanes=t.childLanes,i.lanes=t.lanes,i.child=t.child,i.memoizedProps=t.memoizedProps,i.memoizedState=t.memoizedState,i.updateQueue=t.updateQueue,r=t.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=t.sibling,i.index=t.index,i.ref=t.ref,i.refCleanup=t.refCleanup,i}function Zp(t,r){t.flags&=65011714;var i=t.alternate;return i===null?(t.childLanes=0,t.lanes=r,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=i.childLanes,t.lanes=i.lanes,t.child=i.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=i.memoizedProps,t.memoizedState=i.memoizedState,t.updateQueue=i.updateQueue,t.type=i.type,r=i.dependencies,t.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t}function el(t,r,i,l,p,y){var D=0;if(l=t,typeof t=="function")qu(t)&&(D=1);else if(typeof t=="string")D=Cj(t,i,Q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case M:return t=on(31,i,r,p),t.elementType=M,t.lanes=y,t;case _:return ua(i.children,p,y,r);case S:D=8,p|=24;break;case A:return t=on(12,i,r,p|2),t.elementType=A,t.lanes=y,t;case N:return t=on(13,i,r,p),t.elementType=N,t.lanes=y,t;case z:return t=on(19,i,r,p),t.elementType=z,t.lanes=y,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case T:case L:D=10;break e;case C:D=9;break e;case q:D=11;break e;case F:D=14;break e;case H:D=16,l=null;break e}D=29,i=Error(s(130,t===null?"null":typeof t,"")),l=null}return r=on(D,i,r,p),r.elementType=t,r.type=l,r.lanes=y,r}function ua(t,r,i,l){return t=on(7,t,l,r),t.lanes=i,t}function Gu(t,r,i){return t=on(6,t,null,r),t.lanes=i,t}function Yu(t,r,i){return r=on(4,t.children!==null?t.children:[],t.key,r),r.lanes=i,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var rs=[],as=0,tl=null,nl=0,wn=[],Sn=0,da=null,or=1,lr="";function fa(t,r){rs[as++]=nl,rs[as++]=tl,tl=t,nl=r}function Kp(t,r,i){wn[Sn++]=or,wn[Sn++]=lr,wn[Sn++]=da,da=t;var l=or;t=lr;var p=32-He(l)-1;l&=~(1<<p),i+=1;var y=32-He(r)+p;if(30<y){var D=p-p%5;y=(l&(1<<D)-1).toString(32),l>>=D,p-=D,or=1<<32-He(r)+p|i<<p|l,lr=y+t}else or=1<<y|i<<p|l,lr=t}function Xu(t){t.return!==null&&(fa(t,1),Kp(t,1,0))}function Wu(t){for(;t===tl;)tl=rs[--as],rs[as]=null,nl=rs[--as],rs[as]=null;for(;t===da;)da=wn[--Sn],wn[Sn]=null,lr=wn[--Sn],wn[Sn]=null,or=wn[--Sn],wn[Sn]=null}var Gt=null,gt=null,Ke=!1,ha=null,Wn=!1,Zu=Error(s(519));function ma(t){var r=Error(s(418,""));throw ci(vn(r,t)),Zu}function $p(t){var r=t.stateNode,i=t.type,l=t.memoizedProps;switch(r[Bt]=t,r[Kt]=l,i){case"dialog":Ye("cancel",r),Ye("close",r);break;case"iframe":case"object":case"embed":Ye("load",r);break;case"video":case"audio":for(i=0;i<Di.length;i++)Ye(Di[i],r);break;case"source":Ye("error",r);break;case"img":case"image":case"link":Ye("error",r),Ye("load",r);break;case"details":Ye("toggle",r);break;case"input":Ye("invalid",r),fp(r,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Ho(r);break;case"select":Ye("invalid",r);break;case"textarea":Ye("invalid",r),mp(r,l.value,l.defaultValue,l.children),Ho(r)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||r.textContent===""+i||l.suppressHydrationWarning===!0||my(r.textContent,i)?(l.popover!=null&&(Ye("beforetoggle",r),Ye("toggle",r)),l.onScroll!=null&&Ye("scroll",r),l.onScrollEnd!=null&&Ye("scrollend",r),l.onClick!=null&&(r.onclick=Pl),r=!0):r=!1,r||ma(t)}function Qp(t){for(Gt=t.return;Gt;)switch(Gt.tag){case 5:case 13:Wn=!1;return;case 27:case 3:Wn=!0;return;default:Gt=Gt.return}}function oi(t){if(t!==Gt)return!1;if(!Ke)return Qp(t),Ke=!0,!1;var r=t.tag,i;if((i=r!==3&&r!==27)&&((i=r===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||ff(t.type,t.memoizedProps)),i=!i),i&>&&ma(t),Qp(t),r===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(s(317));e:{for(t=t.nextSibling,r=0;t;){if(t.nodeType===8)if(i=t.data,i==="/$"){if(r===0){gt=Bn(t.nextSibling);break e}r--}else i!=="$"&&i!=="$!"&&i!=="$?"||r++;t=t.nextSibling}gt=null}}else r===27?(r=gt,Yr(t.type)?(t=gf,gf=null,gt=t):gt=r):gt=Gt?Bn(t.stateNode.nextSibling):null;return!0}function li(){gt=Gt=null,Ke=!1}function Jp(){var t=ha;return t!==null&&(en===null?en=t:en.push.apply(en,t),ha=null),t}function ci(t){ha===null?ha=[t]:ha.push(t)}var Ku=O(null),pa=null,cr=null;function Rr(t,r,i){J(Ku,r._currentValue),r._currentValue=i}function ur(t){t._currentValue=Ku.current,U(Ku)}function $u(t,r,i){for(;t!==null;){var l=t.alternate;if((t.childLanes&r)!==r?(t.childLanes|=r,l!==null&&(l.childLanes|=r)):l!==null&&(l.childLanes&r)!==r&&(l.childLanes|=r),t===i)break;t=t.return}}function Qu(t,r,i,l){var p=t.child;for(p!==null&&(p.return=t);p!==null;){var y=p.dependencies;if(y!==null){var D=p.child;y=y.firstContext;e:for(;y!==null;){var B=y;y=p;for(var $=0;$<r.length;$++)if(B.context===r[$]){y.lanes|=i,B=y.alternate,B!==null&&(B.lanes|=i),$u(y.return,i,t),l||(D=null);break e}y=B.next}}else if(p.tag===18){if(D=p.return,D===null)throw Error(s(341));D.lanes|=i,y=D.alternate,y!==null&&(y.lanes|=i),$u(D,i,t),D=null}else D=p.child;if(D!==null)D.return=p;else for(D=p;D!==null;){if(D===t){D=null;break}if(p=D.sibling,p!==null){p.return=D.return,D=p;break}D=D.return}p=D}}function ui(t,r,i,l){t=null;for(var p=r,y=!1;p!==null;){if(!y){if((p.flags&524288)!==0)y=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var D=p.alternate;if(D===null)throw Error(s(387));if(D=D.memoizedProps,D!==null){var B=p.type;sn(p.pendingProps.value,D.value)||(t!==null?t.push(B):t=[B])}}else if(p===be.current){if(D=p.alternate,D===null)throw Error(s(387));D.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(t!==null?t.push(Bi):t=[Bi])}p=p.return}t!==null&&Qu(r,t,i,l),r.flags|=262144}function rl(t){for(t=t.firstContext;t!==null;){if(!sn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ga(t){pa=t,cr=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Ft(t){return eg(pa,t)}function al(t,r){return pa===null&&ga(t),eg(t,r)}function eg(t,r){var i=r._currentValue;if(r={context:r,memoizedValue:i,next:null},cr===null){if(t===null)throw Error(s(308));cr=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else cr=cr.next=r;return i}var RS=typeof AbortController<"u"?AbortController:function(){var t=[],r=this.signal={aborted:!1,addEventListener:function(i,l){t.push(l)}};this.abort=function(){r.aborted=!0,t.forEach(function(i){return i()})}},CS=e.unstable_scheduleCallback,DS=e.unstable_NormalPriority,_t={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Ju(){return{controller:new RS,data:new Map,refCount:0}}function di(t){t.refCount--,t.refCount===0&&CS(DS,function(){t.controller.abort()})}var fi=null,ed=0,ss=0,is=null;function MS(t,r){if(fi===null){var i=fi=[];ed=0,ss=nf(),is={status:"pending",value:void 0,then:function(l){i.push(l)}}}return ed++,r.then(tg,tg),r}function tg(){if(--ed===0&&fi!==null){is!==null&&(is.status="fulfilled");var t=fi;fi=null,ss=0,is=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function LS(t,r){var i=[],l={status:"pending",value:null,reason:null,then:function(p){i.push(p)}};return t.then(function(){l.status="fulfilled",l.value=r;for(var p=0;p<i.length;p++)(0,i[p])(r)},function(p){for(l.status="rejected",l.reason=p,p=0;p<i.length;p++)(0,i[p])(void 0)}),l}var ng=W.S;W.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&MS(t,r),ng!==null&&ng(t,r)};var ya=O(null);function td(){var t=ya.current;return t!==null?t:st.pooledCache}function sl(t,r){r===null?J(ya,ya.current):J(ya,r.pool)}function rg(){var t=td();return t===null?null:{parent:_t._currentValue,pool:t}}var hi=Error(s(460)),ag=Error(s(474)),il=Error(s(542)),nd={then:function(){}};function sg(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ol(){}function ig(t,r,i){switch(i=t[i],i===void 0?t.push(r):i!==r&&(r.then(ol,ol),r=i),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,lg(t),t;default:if(typeof r.status=="string")r.then(ol,ol);else{if(t=st,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=r,t.status="pending",t.then(function(l){if(r.status==="pending"){var p=r;p.status="fulfilled",p.value=l}},function(l){if(r.status==="pending"){var p=r;p.status="rejected",p.reason=l}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,lg(t),t}throw mi=r,hi}}var mi=null;function og(){if(mi===null)throw Error(s(459));var t=mi;return mi=null,t}function lg(t){if(t===hi||t===il)throw Error(s(483))}var Cr=!1;function rd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ad(t,r){t=t.updateQueue,r.updateQueue===t&&(r.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Dr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Mr(t,r,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,($e&2)!==0){var p=l.pending;return p===null?r.next=r:(r.next=p.next,p.next=r),l.pending=r,r=Jo(t),Wp(t,null,i),r}return Qo(t,l,r,i),Jo(t)}function pi(t,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194048)!==0)){var l=r.lanes;l&=t.pendingLanes,i|=l,r.lanes=i,tp(t,i)}}function sd(t,r){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var p=null,y=null;if(i=i.firstBaseUpdate,i!==null){do{var D={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};y===null?p=y=D:y=y.next=D,i=i.next}while(i!==null);y===null?p=y=r:y=y.next=r}else p=y=r;i={baseState:l.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:l.shared,callbacks:l.callbacks},t.updateQueue=i;return}t=i.lastBaseUpdate,t===null?i.firstBaseUpdate=r:t.next=r,i.lastBaseUpdate=r}var id=!1;function gi(){if(id){var t=is;if(t!==null)throw t}}function yi(t,r,i,l){id=!1;var p=t.updateQueue;Cr=!1;var y=p.firstBaseUpdate,D=p.lastBaseUpdate,B=p.shared.pending;if(B!==null){p.shared.pending=null;var $=B,le=$.next;$.next=null,D===null?y=le:D.next=le,D=$;var ge=t.alternate;ge!==null&&(ge=ge.updateQueue,B=ge.lastBaseUpdate,B!==D&&(B===null?ge.firstBaseUpdate=le:B.next=le,ge.lastBaseUpdate=$))}if(y!==null){var we=p.baseState;D=0,ge=le=$=null,B=y;do{var fe=B.lane&-536870913,he=fe!==B.lane;if(he?(We&fe)===fe:(l&fe)===fe){fe!==0&&fe===ss&&(id=!0),ge!==null&&(ge=ge.next={lane:0,tag:B.tag,payload:B.payload,callback:null,next:null});e:{var ze=t,Me=B;fe=r;var tt=i;switch(Me.tag){case 1:if(ze=Me.payload,typeof ze=="function"){we=ze.call(tt,we,fe);break e}we=ze;break e;case 3:ze.flags=ze.flags&-65537|128;case 0:if(ze=Me.payload,fe=typeof ze=="function"?ze.call(tt,we,fe):ze,fe==null)break e;we=g({},we,fe);break e;case 2:Cr=!0}}fe=B.callback,fe!==null&&(t.flags|=64,he&&(t.flags|=8192),he=p.callbacks,he===null?p.callbacks=[fe]:he.push(fe))}else he={lane:fe,tag:B.tag,payload:B.payload,callback:B.callback,next:null},ge===null?(le=ge=he,$=we):ge=ge.next=he,D|=fe;if(B=B.next,B===null){if(B=p.shared.pending,B===null)break;he=B,B=he.next,he.next=null,p.lastBaseUpdate=he,p.shared.pending=null}}while(!0);ge===null&&($=we),p.baseState=$,p.firstBaseUpdate=le,p.lastBaseUpdate=ge,y===null&&(p.shared.lanes=0),Hr|=D,t.lanes=D,t.memoizedState=we}}function cg(t,r){if(typeof t!="function")throw Error(s(191,t));t.call(r)}function ug(t,r){var i=t.callbacks;if(i!==null)for(t.callbacks=null,t=0;t<i.length;t++)cg(i[t],r)}var os=O(null),ll=O(0);function dg(t,r){t=yr,J(ll,t),J(os,r),yr=t|r.baseLanes}function od(){J(ll,yr),J(os,os.current)}function ld(){yr=ll.current,U(os),U(ll)}var Lr=0,Ie=null,Je=null,Et=null,cl=!1,ls=!1,xa=!1,ul=0,xi=0,cs=null,PS=0;function bt(){throw Error(s(321))}function cd(t,r){if(r===null)return!1;for(var i=0;i<r.length&&i<t.length;i++)if(!sn(t[i],r[i]))return!1;return!0}function ud(t,r,i,l,p,y){return Lr=y,Ie=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,W.H=t===null||t.memoizedState===null?Wg:Zg,xa=!1,y=i(l,p),xa=!1,ls&&(y=hg(r,i,l,p)),fg(t),y}function fg(t){W.H=gl;var r=Je!==null&&Je.next!==null;if(Lr=0,Et=Je=Ie=null,cl=!1,xi=0,cs=null,r)throw Error(s(300));t===null||Rt||(t=t.dependencies,t!==null&&rl(t)&&(Rt=!0))}function hg(t,r,i,l){Ie=t;var p=0;do{if(ls&&(cs=null),xi=0,ls=!1,25<=p)throw Error(s(301));if(p+=1,Et=Je=null,t.updateQueue!=null){var y=t.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}W.H=IS,y=r(i,l)}while(ls);return y}function zS(){var t=W.H,r=t.useState()[0];return r=typeof r.then=="function"?vi(r):r,t=t.useState()[0],(Je!==null?Je.memoizedState:null)!==t&&(Ie.flags|=1024),r}function dd(){var t=ul!==0;return ul=0,t}function fd(t,r,i){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~i}function hd(t){if(cl){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}cl=!1}Lr=0,Et=Je=Ie=null,ls=!1,xi=ul=0,cs=null}function Qt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Et===null?Ie.memoizedState=Et=t:Et=Et.next=t,Et}function Tt(){if(Je===null){var t=Ie.alternate;t=t!==null?t.memoizedState:null}else t=Je.next;var r=Et===null?Ie.memoizedState:Et.next;if(r!==null)Et=r,Je=t;else{if(t===null)throw Ie.alternate===null?Error(s(467)):Error(s(310));Je=t,t={memoizedState:Je.memoizedState,baseState:Je.baseState,baseQueue:Je.baseQueue,queue:Je.queue,next:null},Et===null?Ie.memoizedState=Et=t:Et=Et.next=t}return Et}function md(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function vi(t){var r=xi;return xi+=1,cs===null&&(cs=[]),t=ig(cs,t,r),r=Ie,(Et===null?r.memoizedState:Et.next)===null&&(r=r.alternate,W.H=r===null||r.memoizedState===null?Wg:Zg),t}function dl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return vi(t);if(t.$$typeof===L)return Ft(t)}throw Error(s(438,String(t)))}function pd(t){var r=null,i=Ie.updateQueue;if(i!==null&&(r=i.memoCache),r==null){var l=Ie.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(r={data:l.data.map(function(p){return p.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),i===null&&(i=md(),Ie.updateQueue=i),i.memoCache=r,i=r.data[r.index],i===void 0)for(i=r.data[r.index]=Array(t),l=0;l<t;l++)i[l]=R;return r.index++,i}function dr(t,r){return typeof r=="function"?r(t):r}function fl(t){var r=Tt();return gd(r,Je,t)}function gd(t,r,i){var l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=i;var p=t.baseQueue,y=l.pending;if(y!==null){if(p!==null){var D=p.next;p.next=y.next,y.next=D}r.baseQueue=p=y,l.pending=null}if(y=t.baseState,p===null)t.memoizedState=y;else{r=p.next;var B=D=null,$=null,le=r,ge=!1;do{var we=le.lane&-536870913;if(we!==le.lane?(We&we)===we:(Lr&we)===we){var fe=le.revertLane;if(fe===0)$!==null&&($=$.next={lane:0,revertLane:0,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),we===ss&&(ge=!0);else if((Lr&fe)===fe){le=le.next,fe===ss&&(ge=!0);continue}else we={lane:0,revertLane:le.revertLane,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},$===null?(B=$=we,D=y):$=$.next=we,Ie.lanes|=fe,Hr|=fe;we=le.action,xa&&i(y,we),y=le.hasEagerState?le.eagerState:i(y,we)}else fe={lane:we,revertLane:le.revertLane,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},$===null?(B=$=fe,D=y):$=$.next=fe,Ie.lanes|=we,Hr|=we;le=le.next}while(le!==null&&le!==r);if($===null?D=y:$.next=B,!sn(y,t.memoizedState)&&(Rt=!0,ge&&(i=is,i!==null)))throw i;t.memoizedState=y,t.baseState=D,t.baseQueue=$,l.lastRenderedState=y}return p===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function yd(t){var r=Tt(),i=r.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=t;var l=i.dispatch,p=i.pending,y=r.memoizedState;if(p!==null){i.pending=null;var D=p=p.next;do y=t(y,D.action),D=D.next;while(D!==p);sn(y,r.memoizedState)||(Rt=!0),r.memoizedState=y,r.baseQueue===null&&(r.baseState=y),i.lastRenderedState=y}return[y,l]}function mg(t,r,i){var l=Ie,p=Tt(),y=Ke;if(y){if(i===void 0)throw Error(s(407));i=i()}else i=r();var D=!sn((Je||p).memoizedState,i);D&&(p.memoizedState=i,Rt=!0),p=p.queue;var B=yg.bind(null,l,p,t);if(bi(2048,8,B,[t]),p.getSnapshot!==r||D||Et!==null&&Et.memoizedState.tag&1){if(l.flags|=2048,us(9,hl(),gg.bind(null,l,p,i,r),null),st===null)throw Error(s(349));y||(Lr&124)!==0||pg(l,r,i)}return i}function pg(t,r,i){t.flags|=16384,t={getSnapshot:r,value:i},r=Ie.updateQueue,r===null?(r=md(),Ie.updateQueue=r,r.stores=[t]):(i=r.stores,i===null?r.stores=[t]:i.push(t))}function gg(t,r,i,l){r.value=i,r.getSnapshot=l,xg(r)&&vg(t)}function yg(t,r,i){return i(function(){xg(r)&&vg(t)})}function xg(t){var r=t.getSnapshot;t=t.value;try{var i=r();return!sn(t,i)}catch{return!0}}function vg(t){var r=ts(t,2);r!==null&&fn(r,t,2)}function xd(t){var r=Qt();if(typeof t=="function"){var i=t;if(t=i(),xa){Ce(!0);try{i()}finally{Ce(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:t},r}function bg(t,r,i,l){return t.baseState=i,gd(t,Je,typeof l=="function"?l:dr)}function US(t,r,i,l,p){if(pl(t))throw Error(s(485));if(t=r.action,t!==null){var y={payload:p,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(D){y.listeners.push(D)}};W.T!==null?i(!0):y.isTransition=!1,l(y),i=r.pending,i===null?(y.next=r.pending=y,wg(r,y)):(y.next=i.next,r.pending=i.next=y)}}function wg(t,r){var i=r.action,l=r.payload,p=t.state;if(r.isTransition){var y=W.T,D={};W.T=D;try{var B=i(p,l),$=W.S;$!==null&&$(D,B),Sg(t,r,B)}catch(le){vd(t,r,le)}finally{W.T=y}}else try{y=i(p,l),Sg(t,r,y)}catch(le){vd(t,r,le)}}function Sg(t,r,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){jg(t,r,l)},function(l){return vd(t,r,l)}):jg(t,r,i)}function jg(t,r,i){r.status="fulfilled",r.value=i,Eg(r),t.state=i,r=t.pending,r!==null&&(i=r.next,i===r?t.pending=null:(i=i.next,r.next=i,wg(t,i)))}function vd(t,r,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do r.status="rejected",r.reason=i,Eg(r),r=r.next;while(r!==l)}t.action=null}function Eg(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function Tg(t,r){return r}function Ag(t,r){if(Ke){var i=st.formState;if(i!==null){e:{var l=Ie;if(Ke){if(gt){t:{for(var p=gt,y=Wn;p.nodeType!==8;){if(!y){p=null;break t}if(p=Bn(p.nextSibling),p===null){p=null;break t}}y=p.data,p=y==="F!"||y==="F"?p:null}if(p){gt=Bn(p.nextSibling),l=p.data==="F!";break e}}ma(l)}l=!1}l&&(r=i[0])}}return i=Qt(),i.memoizedState=i.baseState=r,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tg,lastRenderedState:r},i.queue=l,i=Gg.bind(null,Ie,l),l.dispatch=i,l=xd(!1),y=Ed.bind(null,Ie,!1,l.queue),l=Qt(),p={state:r,dispatch:null,action:t,pending:null},l.queue=p,i=US.bind(null,Ie,p,y,i),p.dispatch=i,l.memoizedState=t,[r,i,!1]}function Ng(t){var r=Tt();return _g(r,Je,t)}function _g(t,r,i){if(r=gd(t,r,Tg)[0],t=fl(dr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var l=vi(r)}catch(D){throw D===hi?il:D}else l=r;r=Tt();var p=r.queue,y=p.dispatch;return i!==r.memoizedState&&(Ie.flags|=2048,us(9,hl(),BS.bind(null,p,i),null)),[l,y,t]}function BS(t,r){t.action=r}function kg(t){var r=Tt(),i=Je;if(i!==null)return _g(r,i,t);Tt(),r=r.memoizedState,i=Tt();var l=i.queue.dispatch;return i.memoizedState=t,[r,l,!1]}function us(t,r,i,l){return t={tag:t,create:i,deps:l,inst:r,next:null},r=Ie.updateQueue,r===null&&(r=md(),Ie.updateQueue=r),i=r.lastEffect,i===null?r.lastEffect=t.next=t:(l=i.next,i.next=t,t.next=l,r.lastEffect=t),t}function hl(){return{destroy:void 0,resource:void 0}}function Og(){return Tt().memoizedState}function ml(t,r,i,l){var p=Qt();l=l===void 0?null:l,Ie.flags|=t,p.memoizedState=us(1|r,hl(),i,l)}function bi(t,r,i,l){var p=Tt();l=l===void 0?null:l;var y=p.memoizedState.inst;Je!==null&&l!==null&&cd(l,Je.memoizedState.deps)?p.memoizedState=us(r,y,i,l):(Ie.flags|=t,p.memoizedState=us(1|r,y,i,l))}function Rg(t,r){ml(8390656,8,t,r)}function Cg(t,r){bi(2048,8,t,r)}function Dg(t,r){return bi(4,2,t,r)}function Mg(t,r){return bi(4,4,t,r)}function Lg(t,r){if(typeof r=="function"){t=t();var i=r(t);return function(){typeof i=="function"?i():r(null)}}if(r!=null)return t=t(),r.current=t,function(){r.current=null}}function Pg(t,r,i){i=i!=null?i.concat([t]):null,bi(4,4,Lg.bind(null,r,t),i)}function bd(){}function zg(t,r){var i=Tt();r=r===void 0?null:r;var l=i.memoizedState;return r!==null&&cd(r,l[1])?l[0]:(i.memoizedState=[t,r],t)}function Ug(t,r){var i=Tt();r=r===void 0?null:r;var l=i.memoizedState;if(r!==null&&cd(r,l[1]))return l[0];if(l=t(),xa){Ce(!0);try{t()}finally{Ce(!1)}}return i.memoizedState=[l,r],l}function wd(t,r,i){return i===void 0||(Lr&1073741824)!==0?t.memoizedState=r:(t.memoizedState=i,t=V0(),Ie.lanes|=t,Hr|=t,i)}function Bg(t,r,i,l){return sn(i,r)?i:os.current!==null?(t=wd(t,i,l),sn(t,r)||(Rt=!0),t):(Lr&42)===0?(Rt=!0,t.memoizedState=i):(t=V0(),Ie.lanes|=t,Hr|=t,r)}function Fg(t,r,i,l,p){var y=w.p;w.p=y!==0&&8>y?y:8;var D=W.T,B={};W.T=B,Ed(t,!1,r,i);try{var $=p(),le=W.S;if(le!==null&&le(B,$),$!==null&&typeof $=="object"&&typeof $.then=="function"){var ge=LS($,l);wi(t,r,ge,dn(t))}else wi(t,r,l,dn(t))}catch(we){wi(t,r,{then:function(){},status:"rejected",reason:we},dn())}finally{w.p=y,W.T=D}}function FS(){}function Sd(t,r,i,l){if(t.tag!==5)throw Error(s(476));var p=Vg(t).queue;Fg(t,p,r,ue,i===null?FS:function(){return Hg(t),i(l)})}function Vg(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:ue},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:dr,lastRenderedState:i},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Hg(t){var r=Vg(t).next.queue;wi(t,r,{},dn())}function jd(){return Ft(Bi)}function Ig(){return Tt().memoizedState}function qg(){return Tt().memoizedState}function VS(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var i=dn();t=Dr(i);var l=Mr(r,t,i);l!==null&&(fn(l,r,i),pi(l,r,i)),r={cache:Ju()},t.payload=r;return}r=r.return}}function HS(t,r,i){var l=dn();i={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},pl(t)?Yg(r,i):(i=Iu(t,r,i,l),i!==null&&(fn(i,t,l),Xg(i,r,l)))}function Gg(t,r,i){var l=dn();wi(t,r,i,l)}function wi(t,r,i,l){var p={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(pl(t))Yg(r,p);else{var y=t.alternate;if(t.lanes===0&&(y===null||y.lanes===0)&&(y=r.lastRenderedReducer,y!==null))try{var D=r.lastRenderedState,B=y(D,i);if(p.hasEagerState=!0,p.eagerState=B,sn(B,D))return Qo(t,r,p,0),st===null&&$o(),!1}catch{}finally{}if(i=Iu(t,r,p,l),i!==null)return fn(i,t,l),Xg(i,r,l),!0}return!1}function Ed(t,r,i,l){if(l={lane:2,revertLane:nf(),action:l,hasEagerState:!1,eagerState:null,next:null},pl(t)){if(r)throw Error(s(479))}else r=Iu(t,i,l,2),r!==null&&fn(r,t,2)}function pl(t){var r=t.alternate;return t===Ie||r!==null&&r===Ie}function Yg(t,r){ls=cl=!0;var i=t.pending;i===null?r.next=r:(r.next=i.next,i.next=r),t.pending=r}function Xg(t,r,i){if((i&4194048)!==0){var l=r.lanes;l&=t.pendingLanes,i|=l,r.lanes=i,tp(t,i)}}var gl={readContext:Ft,use:dl,useCallback:bt,useContext:bt,useEffect:bt,useImperativeHandle:bt,useLayoutEffect:bt,useInsertionEffect:bt,useMemo:bt,useReducer:bt,useRef:bt,useState:bt,useDebugValue:bt,useDeferredValue:bt,useTransition:bt,useSyncExternalStore:bt,useId:bt,useHostTransitionStatus:bt,useFormState:bt,useActionState:bt,useOptimistic:bt,useMemoCache:bt,useCacheRefresh:bt},Wg={readContext:Ft,use:dl,useCallback:function(t,r){return Qt().memoizedState=[t,r===void 0?null:r],t},useContext:Ft,useEffect:Rg,useImperativeHandle:function(t,r,i){i=i!=null?i.concat([t]):null,ml(4194308,4,Lg.bind(null,r,t),i)},useLayoutEffect:function(t,r){return ml(4194308,4,t,r)},useInsertionEffect:function(t,r){ml(4,2,t,r)},useMemo:function(t,r){var i=Qt();r=r===void 0?null:r;var l=t();if(xa){Ce(!0);try{t()}finally{Ce(!1)}}return i.memoizedState=[l,r],l},useReducer:function(t,r,i){var l=Qt();if(i!==void 0){var p=i(r);if(xa){Ce(!0);try{i(r)}finally{Ce(!1)}}}else p=r;return l.memoizedState=l.baseState=p,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:p},l.queue=t,t=t.dispatch=HS.bind(null,Ie,t),[l.memoizedState,t]},useRef:function(t){var r=Qt();return t={current:t},r.memoizedState=t},useState:function(t){t=xd(t);var r=t.queue,i=Gg.bind(null,Ie,r);return r.dispatch=i,[t.memoizedState,i]},useDebugValue:bd,useDeferredValue:function(t,r){var i=Qt();return wd(i,t,r)},useTransition:function(){var t=xd(!1);return t=Fg.bind(null,Ie,t.queue,!0,!1),Qt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,i){var l=Ie,p=Qt();if(Ke){if(i===void 0)throw Error(s(407));i=i()}else{if(i=r(),st===null)throw Error(s(349));(We&124)!==0||pg(l,r,i)}p.memoizedState=i;var y={value:i,getSnapshot:r};return p.queue=y,Rg(yg.bind(null,l,y,t),[t]),l.flags|=2048,us(9,hl(),gg.bind(null,l,y,i,r),null),i},useId:function(){var t=Qt(),r=st.identifierPrefix;if(Ke){var i=lr,l=or;i=(l&~(1<<32-He(l)-1)).toString(32)+i,r="«"+r+"R"+i,i=ul++,0<i&&(r+="H"+i.toString(32)),r+="»"}else i=PS++,r="«"+r+"r"+i.toString(32)+"»";return t.memoizedState=r},useHostTransitionStatus:jd,useFormState:Ag,useActionState:Ag,useOptimistic:function(t){var r=Qt();r.memoizedState=r.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=i,r=Ed.bind(null,Ie,!0,i),i.dispatch=r,[t,r]},useMemoCache:pd,useCacheRefresh:function(){return Qt().memoizedState=VS.bind(null,Ie)}},Zg={readContext:Ft,use:dl,useCallback:zg,useContext:Ft,useEffect:Cg,useImperativeHandle:Pg,useInsertionEffect:Dg,useLayoutEffect:Mg,useMemo:Ug,useReducer:fl,useRef:Og,useState:function(){return fl(dr)},useDebugValue:bd,useDeferredValue:function(t,r){var i=Tt();return Bg(i,Je.memoizedState,t,r)},useTransition:function(){var t=fl(dr)[0],r=Tt().memoizedState;return[typeof t=="boolean"?t:vi(t),r]},useSyncExternalStore:mg,useId:Ig,useHostTransitionStatus:jd,useFormState:Ng,useActionState:Ng,useOptimistic:function(t,r){var i=Tt();return bg(i,Je,t,r)},useMemoCache:pd,useCacheRefresh:qg},IS={readContext:Ft,use:dl,useCallback:zg,useContext:Ft,useEffect:Cg,useImperativeHandle:Pg,useInsertionEffect:Dg,useLayoutEffect:Mg,useMemo:Ug,useReducer:yd,useRef:Og,useState:function(){return yd(dr)},useDebugValue:bd,useDeferredValue:function(t,r){var i=Tt();return Je===null?wd(i,t,r):Bg(i,Je.memoizedState,t,r)},useTransition:function(){var t=yd(dr)[0],r=Tt().memoizedState;return[typeof t=="boolean"?t:vi(t),r]},useSyncExternalStore:mg,useId:Ig,useHostTransitionStatus:jd,useFormState:kg,useActionState:kg,useOptimistic:function(t,r){var i=Tt();return Je!==null?bg(i,Je,t,r):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:pd,useCacheRefresh:qg},ds=null,Si=0;function yl(t){var r=Si;return Si+=1,ds===null&&(ds=[]),ig(ds,t,r)}function ji(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function xl(t,r){throw r.$$typeof===x?Error(s(525)):(t=Object.prototype.toString.call(r),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function Kg(t){var r=t._init;return r(t._payload)}function $g(t){function r(ae,re){if(t){var se=ae.deletions;se===null?(ae.deletions=[re],ae.flags|=16):se.push(re)}}function i(ae,re){if(!t)return null;for(;re!==null;)r(ae,re),re=re.sibling;return null}function l(ae){for(var re=new Map;ae!==null;)ae.key!==null?re.set(ae.key,ae):re.set(ae.index,ae),ae=ae.sibling;return re}function p(ae,re){return ae=ir(ae,re),ae.index=0,ae.sibling=null,ae}function y(ae,re,se){return ae.index=se,t?(se=ae.alternate,se!==null?(se=se.index,se<re?(ae.flags|=67108866,re):se):(ae.flags|=67108866,re)):(ae.flags|=1048576,re)}function D(ae){return t&&ae.alternate===null&&(ae.flags|=67108866),ae}function B(ae,re,se,ve){return re===null||re.tag!==6?(re=Gu(se,ae.mode,ve),re.return=ae,re):(re=p(re,se),re.return=ae,re)}function $(ae,re,se,ve){var ke=se.type;return ke===_?ge(ae,re,se.props.children,ve,se.key):re!==null&&(re.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===H&&Kg(ke)===re.type)?(re=p(re,se.props),ji(re,se),re.return=ae,re):(re=el(se.type,se.key,se.props,null,ae.mode,ve),ji(re,se),re.return=ae,re)}function le(ae,re,se,ve){return re===null||re.tag!==4||re.stateNode.containerInfo!==se.containerInfo||re.stateNode.implementation!==se.implementation?(re=Yu(se,ae.mode,ve),re.return=ae,re):(re=p(re,se.children||[]),re.return=ae,re)}function ge(ae,re,se,ve,ke){return re===null||re.tag!==7?(re=ua(se,ae.mode,ve,ke),re.return=ae,re):(re=p(re,se),re.return=ae,re)}function we(ae,re,se){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=Gu(""+re,ae.mode,se),re.return=ae,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case b:return se=el(re.type,re.key,re.props,null,ae.mode,se),ji(se,re),se.return=ae,se;case E:return re=Yu(re,ae.mode,se),re.return=ae,re;case H:var ve=re._init;return re=ve(re._payload),we(ae,re,se)}if(Z(re)||P(re))return re=ua(re,ae.mode,se,null),re.return=ae,re;if(typeof re.then=="function")return we(ae,yl(re),se);if(re.$$typeof===L)return we(ae,al(ae,re),se);xl(ae,re)}return null}function fe(ae,re,se,ve){var ke=re!==null?re.key:null;if(typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint")return ke!==null?null:B(ae,re,""+se,ve);if(typeof se=="object"&&se!==null){switch(se.$$typeof){case b:return se.key===ke?$(ae,re,se,ve):null;case E:return se.key===ke?le(ae,re,se,ve):null;case H:return ke=se._init,se=ke(se._payload),fe(ae,re,se,ve)}if(Z(se)||P(se))return ke!==null?null:ge(ae,re,se,ve,null);if(typeof se.then=="function")return fe(ae,re,yl(se),ve);if(se.$$typeof===L)return fe(ae,re,al(ae,se),ve);xl(ae,se)}return null}function he(ae,re,se,ve,ke){if(typeof ve=="string"&&ve!==""||typeof ve=="number"||typeof ve=="bigint")return ae=ae.get(se)||null,B(re,ae,""+ve,ke);if(typeof ve=="object"&&ve!==null){switch(ve.$$typeof){case b:return ae=ae.get(ve.key===null?se:ve.key)||null,$(re,ae,ve,ke);case E:return ae=ae.get(ve.key===null?se:ve.key)||null,le(re,ae,ve,ke);case H:var qe=ve._init;return ve=qe(ve._payload),he(ae,re,se,ve,ke)}if(Z(ve)||P(ve))return ae=ae.get(se)||null,ge(re,ae,ve,ke,null);if(typeof ve.then=="function")return he(ae,re,se,yl(ve),ke);if(ve.$$typeof===L)return he(ae,re,se,al(re,ve),ke);xl(re,ve)}return null}function ze(ae,re,se,ve){for(var ke=null,qe=null,De=re,Pe=re=0,Dt=null;De!==null&&Pe<se.length;Pe++){De.index>Pe?(Dt=De,De=null):Dt=De.sibling;var Ze=fe(ae,De,se[Pe],ve);if(Ze===null){De===null&&(De=Dt);break}t&&De&&Ze.alternate===null&&r(ae,De),re=y(Ze,re,Pe),qe===null?ke=Ze:qe.sibling=Ze,qe=Ze,De=Dt}if(Pe===se.length)return i(ae,De),Ke&&fa(ae,Pe),ke;if(De===null){for(;Pe<se.length;Pe++)De=we(ae,se[Pe],ve),De!==null&&(re=y(De,re,Pe),qe===null?ke=De:qe.sibling=De,qe=De);return Ke&&fa(ae,Pe),ke}for(De=l(De);Pe<se.length;Pe++)Dt=he(De,ae,Pe,se[Pe],ve),Dt!==null&&(t&&Dt.alternate!==null&&De.delete(Dt.key===null?Pe:Dt.key),re=y(Dt,re,Pe),qe===null?ke=Dt:qe.sibling=Dt,qe=Dt);return t&&De.forEach(function($r){return r(ae,$r)}),Ke&&fa(ae,Pe),ke}function Me(ae,re,se,ve){if(se==null)throw Error(s(151));for(var ke=null,qe=null,De=re,Pe=re=0,Dt=null,Ze=se.next();De!==null&&!Ze.done;Pe++,Ze=se.next()){De.index>Pe?(Dt=De,De=null):Dt=De.sibling;var $r=fe(ae,De,Ze.value,ve);if($r===null){De===null&&(De=Dt);break}t&&De&&$r.alternate===null&&r(ae,De),re=y($r,re,Pe),qe===null?ke=$r:qe.sibling=$r,qe=$r,De=Dt}if(Ze.done)return i(ae,De),Ke&&fa(ae,Pe),ke;if(De===null){for(;!Ze.done;Pe++,Ze=se.next())Ze=we(ae,Ze.value,ve),Ze!==null&&(re=y(Ze,re,Pe),qe===null?ke=Ze:qe.sibling=Ze,qe=Ze);return Ke&&fa(ae,Pe),ke}for(De=l(De);!Ze.done;Pe++,Ze=se.next())Ze=he(De,ae,Pe,Ze.value,ve),Ze!==null&&(t&&Ze.alternate!==null&&De.delete(Ze.key===null?Pe:Ze.key),re=y(Ze,re,Pe),qe===null?ke=Ze:qe.sibling=Ze,qe=Ze);return t&&De.forEach(function(qj){return r(ae,qj)}),Ke&&fa(ae,Pe),ke}function tt(ae,re,se,ve){if(typeof se=="object"&&se!==null&&se.type===_&&se.key===null&&(se=se.props.children),typeof se=="object"&&se!==null){switch(se.$$typeof){case b:e:{for(var ke=se.key;re!==null;){if(re.key===ke){if(ke=se.type,ke===_){if(re.tag===7){i(ae,re.sibling),ve=p(re,se.props.children),ve.return=ae,ae=ve;break e}}else if(re.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===H&&Kg(ke)===re.type){i(ae,re.sibling),ve=p(re,se.props),ji(ve,se),ve.return=ae,ae=ve;break e}i(ae,re);break}else r(ae,re);re=re.sibling}se.type===_?(ve=ua(se.props.children,ae.mode,ve,se.key),ve.return=ae,ae=ve):(ve=el(se.type,se.key,se.props,null,ae.mode,ve),ji(ve,se),ve.return=ae,ae=ve)}return D(ae);case E:e:{for(ke=se.key;re!==null;){if(re.key===ke)if(re.tag===4&&re.stateNode.containerInfo===se.containerInfo&&re.stateNode.implementation===se.implementation){i(ae,re.sibling),ve=p(re,se.children||[]),ve.return=ae,ae=ve;break e}else{i(ae,re);break}else r(ae,re);re=re.sibling}ve=Yu(se,ae.mode,ve),ve.return=ae,ae=ve}return D(ae);case H:return ke=se._init,se=ke(se._payload),tt(ae,re,se,ve)}if(Z(se))return ze(ae,re,se,ve);if(P(se)){if(ke=P(se),typeof ke!="function")throw Error(s(150));return se=ke.call(se),Me(ae,re,se,ve)}if(typeof se.then=="function")return tt(ae,re,yl(se),ve);if(se.$$typeof===L)return tt(ae,re,al(ae,se),ve);xl(ae,se)}return typeof se=="string"&&se!==""||typeof se=="number"||typeof se=="bigint"?(se=""+se,re!==null&&re.tag===6?(i(ae,re.sibling),ve=p(re,se),ve.return=ae,ae=ve):(i(ae,re),ve=Gu(se,ae.mode,ve),ve.return=ae,ae=ve),D(ae)):i(ae,re)}return function(ae,re,se,ve){try{Si=0;var ke=tt(ae,re,se,ve);return ds=null,ke}catch(De){if(De===hi||De===il)throw De;var qe=on(29,De,null,ae.mode);return qe.lanes=ve,qe.return=ae,qe}finally{}}}var fs=$g(!0),Qg=$g(!1),jn=O(null),Zn=null;function Pr(t){var r=t.alternate;J(kt,kt.current&1),J(jn,t),Zn===null&&(r===null||os.current!==null||r.memoizedState!==null)&&(Zn=t)}function Jg(t){if(t.tag===22){if(J(kt,kt.current),J(jn,t),Zn===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(Zn=t)}}else zr()}function zr(){J(kt,kt.current),J(jn,jn.current)}function fr(t){U(jn),Zn===t&&(Zn=null),U(kt)}var kt=O(0);function vl(t){for(var r=t;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||pf(i)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function Td(t,r,i,l){r=t.memoizedState,i=i(l,r),i=i==null?r:g({},r,i),t.memoizedState=i,t.lanes===0&&(t.updateQueue.baseState=i)}var Ad={enqueueSetState:function(t,r,i){t=t._reactInternals;var l=dn(),p=Dr(l);p.payload=r,i!=null&&(p.callback=i),r=Mr(t,p,l),r!==null&&(fn(r,t,l),pi(r,t,l))},enqueueReplaceState:function(t,r,i){t=t._reactInternals;var l=dn(),p=Dr(l);p.tag=1,p.payload=r,i!=null&&(p.callback=i),r=Mr(t,p,l),r!==null&&(fn(r,t,l),pi(r,t,l))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var i=dn(),l=Dr(i);l.tag=2,r!=null&&(l.callback=r),r=Mr(t,l,i),r!==null&&(fn(r,t,i),pi(r,t,i))}};function e0(t,r,i,l,p,y,D){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,y,D):r.prototype&&r.prototype.isPureReactComponent?!si(i,l)||!si(p,y):!0}function t0(t,r,i,l){t=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,l),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,l),r.state!==t&&Ad.enqueueReplaceState(r,r.state,null)}function va(t,r){var i=r;if("ref"in r){i={};for(var l in r)l!=="ref"&&(i[l]=r[l])}if(t=t.defaultProps){i===r&&(i=g({},i));for(var p in t)i[p]===void 0&&(i[p]=t[p])}return i}var bl=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function n0(t){bl(t)}function r0(t){console.error(t)}function a0(t){bl(t)}function wl(t,r){try{var i=t.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(l){setTimeout(function(){throw l})}}function s0(t,r,i){try{var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function Nd(t,r,i){return i=Dr(i),i.tag=3,i.payload={element:null},i.callback=function(){wl(t,r)},i}function i0(t){return t=Dr(t),t.tag=3,t}function o0(t,r,i,l){var p=i.type.getDerivedStateFromError;if(typeof p=="function"){var y=l.value;t.payload=function(){return p(y)},t.callback=function(){s0(r,i,l)}}var D=i.stateNode;D!==null&&typeof D.componentDidCatch=="function"&&(t.callback=function(){s0(r,i,l),typeof p!="function"&&(Ir===null?Ir=new Set([this]):Ir.add(this));var B=l.stack;this.componentDidCatch(l.value,{componentStack:B!==null?B:""})})}function qS(t,r,i,l,p){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(r=i.alternate,r!==null&&ui(r,i,p,!0),i=jn.current,i!==null){switch(i.tag){case 13:return Zn===null?$d():i.alternate===null&&yt===0&&(yt=3),i.flags&=-257,i.flags|=65536,i.lanes=p,l===nd?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([l]):r.add(l),Jd(t,l,p)),!1;case 22:return i.flags|=65536,l===nd?i.flags|=16384:(r=i.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([l])},i.updateQueue=r):(i=r.retryQueue,i===null?r.retryQueue=new Set([l]):i.add(l)),Jd(t,l,p)),!1}throw Error(s(435,i.tag))}return Jd(t,l,p),$d(),!1}if(Ke)return r=jn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=p,l!==Zu&&(t=Error(s(422),{cause:l}),ci(vn(t,i)))):(l!==Zu&&(r=Error(s(423),{cause:l}),ci(vn(r,i))),t=t.current.alternate,t.flags|=65536,p&=-p,t.lanes|=p,l=vn(l,i),p=Nd(t.stateNode,l,p),sd(t,p),yt!==4&&(yt=2)),!1;var y=Error(s(520),{cause:l});if(y=vn(y,i),Oi===null?Oi=[y]:Oi.push(y),yt!==4&&(yt=2),r===null)return!0;l=vn(l,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,t=p&-p,i.lanes|=t,t=Nd(i.stateNode,l,t),sd(i,t),!1;case 1:if(r=i.type,y=i.stateNode,(i.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Ir===null||!Ir.has(y))))return i.flags|=65536,p&=-p,i.lanes|=p,p=i0(p),o0(p,t,i,l),sd(i,p),!1}i=i.return}while(i!==null);return!1}var l0=Error(s(461)),Rt=!1;function Mt(t,r,i,l){r.child=t===null?Qg(r,null,i,l):fs(r,t.child,i,l)}function c0(t,r,i,l,p){i=i.render;var y=r.ref;if("ref"in l){var D={};for(var B in l)B!=="ref"&&(D[B]=l[B])}else D=l;return ga(r),l=ud(t,r,i,D,y,p),B=dd(),t!==null&&!Rt?(fd(t,r,p),hr(t,r,p)):(Ke&&B&&Xu(r),r.flags|=1,Mt(t,r,l,p),r.child)}function u0(t,r,i,l,p){if(t===null){var y=i.type;return typeof y=="function"&&!qu(y)&&y.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=y,d0(t,r,y,l,p)):(t=el(i.type,null,l,r,r.mode,p),t.ref=r.ref,t.return=r,r.child=t)}if(y=t.child,!Ld(t,p)){var D=y.memoizedProps;if(i=i.compare,i=i!==null?i:si,i(D,l)&&t.ref===r.ref)return hr(t,r,p)}return r.flags|=1,t=ir(y,l),t.ref=r.ref,t.return=r,r.child=t}function d0(t,r,i,l,p){if(t!==null){var y=t.memoizedProps;if(si(y,l)&&t.ref===r.ref)if(Rt=!1,r.pendingProps=l=y,Ld(t,p))(t.flags&131072)!==0&&(Rt=!0);else return r.lanes=t.lanes,hr(t,r,p)}return _d(t,r,i,l,p)}function f0(t,r,i){var l=r.pendingProps,p=l.children,y=t!==null?t.memoizedState:null;if(l.mode==="hidden"){if((r.flags&128)!==0){if(l=y!==null?y.baseLanes|i:i,t!==null){for(p=r.child=t.child,y=0;p!==null;)y=y|p.lanes|p.childLanes,p=p.sibling;r.childLanes=y&~l}else r.childLanes=0,r.child=null;return h0(t,r,l,i)}if((i&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&sl(r,y!==null?y.cachePool:null),y!==null?dg(r,y):od(),Jg(r);else return r.lanes=r.childLanes=536870912,h0(t,r,y!==null?y.baseLanes|i:i,i)}else y!==null?(sl(r,y.cachePool),dg(r,y),zr(),r.memoizedState=null):(t!==null&&sl(r,null),od(),zr());return Mt(t,r,p,i),r.child}function h0(t,r,i,l){var p=td();return p=p===null?null:{parent:_t._currentValue,pool:p},r.memoizedState={baseLanes:i,cachePool:p},t!==null&&sl(r,null),od(),Jg(r),t!==null&&ui(t,r,l,!0),null}function Sl(t,r){var i=r.ref;if(i===null)t!==null&&t.ref!==null&&(r.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(s(284));(t===null||t.ref!==i)&&(r.flags|=4194816)}}function _d(t,r,i,l,p){return ga(r),i=ud(t,r,i,l,void 0,p),l=dd(),t!==null&&!Rt?(fd(t,r,p),hr(t,r,p)):(Ke&&l&&Xu(r),r.flags|=1,Mt(t,r,i,p),r.child)}function m0(t,r,i,l,p,y){return ga(r),r.updateQueue=null,i=hg(r,l,i,p),fg(t),l=dd(),t!==null&&!Rt?(fd(t,r,y),hr(t,r,y)):(Ke&&l&&Xu(r),r.flags|=1,Mt(t,r,i,y),r.child)}function p0(t,r,i,l,p){if(ga(r),r.stateNode===null){var y=ns,D=i.contextType;typeof D=="object"&&D!==null&&(y=Ft(D)),y=new i(l,y),r.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Ad,r.stateNode=y,y._reactInternals=r,y=r.stateNode,y.props=l,y.state=r.memoizedState,y.refs={},rd(r),D=i.contextType,y.context=typeof D=="object"&&D!==null?Ft(D):ns,y.state=r.memoizedState,D=i.getDerivedStateFromProps,typeof D=="function"&&(Td(r,i,D,l),y.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(D=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),D!==y.state&&Ad.enqueueReplaceState(y,y.state,null),yi(r,l,y,p),gi(),y.state=r.memoizedState),typeof y.componentDidMount=="function"&&(r.flags|=4194308),l=!0}else if(t===null){y=r.stateNode;var B=r.memoizedProps,$=va(i,B);y.props=$;var le=y.context,ge=i.contextType;D=ns,typeof ge=="object"&&ge!==null&&(D=Ft(ge));var we=i.getDerivedStateFromProps;ge=typeof we=="function"||typeof y.getSnapshotBeforeUpdate=="function",B=r.pendingProps!==B,ge||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(B||le!==D)&&t0(r,y,l,D),Cr=!1;var fe=r.memoizedState;y.state=fe,yi(r,l,y,p),gi(),le=r.memoizedState,B||fe!==le||Cr?(typeof we=="function"&&(Td(r,i,we,l),le=r.memoizedState),($=Cr||e0(r,i,$,l,fe,le,D))?(ge||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(r.flags|=4194308)):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=l,r.memoizedState=le),y.props=l,y.state=le,y.context=D,l=$):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{y=r.stateNode,ad(t,r),D=r.memoizedProps,ge=va(i,D),y.props=ge,we=r.pendingProps,fe=y.context,le=i.contextType,$=ns,typeof le=="object"&&le!==null&&($=Ft(le)),B=i.getDerivedStateFromProps,(le=typeof B=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(D!==we||fe!==$)&&t0(r,y,l,$),Cr=!1,fe=r.memoizedState,y.state=fe,yi(r,l,y,p),gi();var he=r.memoizedState;D!==we||fe!==he||Cr||t!==null&&t.dependencies!==null&&rl(t.dependencies)?(typeof B=="function"&&(Td(r,i,B,l),he=r.memoizedState),(ge=Cr||e0(r,i,ge,l,fe,he,$)||t!==null&&t.dependencies!==null&&rl(t.dependencies))?(le||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(l,he,$),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(l,he,$)),typeof y.componentDidUpdate=="function"&&(r.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof y.componentDidUpdate!="function"||D===t.memoizedProps&&fe===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||D===t.memoizedProps&&fe===t.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=he),y.props=l,y.state=he,y.context=$,l=ge):(typeof y.componentDidUpdate!="function"||D===t.memoizedProps&&fe===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||D===t.memoizedProps&&fe===t.memoizedState||(r.flags|=1024),l=!1)}return y=l,Sl(t,r),l=(r.flags&128)!==0,y||l?(y=r.stateNode,i=l&&typeof i.getDerivedStateFromError!="function"?null:y.render(),r.flags|=1,t!==null&&l?(r.child=fs(r,t.child,null,p),r.child=fs(r,null,i,p)):Mt(t,r,i,p),r.memoizedState=y.state,t=r.child):t=hr(t,r,p),t}function g0(t,r,i,l){return li(),r.flags|=256,Mt(t,r,i,l),r.child}var kd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Od(t){return{baseLanes:t,cachePool:rg()}}function Rd(t,r,i){return t=t!==null?t.childLanes&~i:0,r&&(t|=En),t}function y0(t,r,i){var l=r.pendingProps,p=!1,y=(r.flags&128)!==0,D;if((D=y)||(D=t!==null&&t.memoizedState===null?!1:(kt.current&2)!==0),D&&(p=!0,r.flags&=-129),D=(r.flags&32)!==0,r.flags&=-33,t===null){if(Ke){if(p?Pr(r):zr(),Ke){var B=gt,$;if($=B){e:{for($=B,B=Wn;$.nodeType!==8;){if(!B){B=null;break e}if($=Bn($.nextSibling),$===null){B=null;break e}}B=$}B!==null?(r.memoizedState={dehydrated:B,treeContext:da!==null?{id:or,overflow:lr}:null,retryLane:536870912,hydrationErrors:null},$=on(18,null,null,0),$.stateNode=B,$.return=r,r.child=$,Gt=r,gt=null,$=!0):$=!1}$||ma(r)}if(B=r.memoizedState,B!==null&&(B=B.dehydrated,B!==null))return pf(B)?r.lanes=32:r.lanes=536870912,null;fr(r)}return B=l.children,l=l.fallback,p?(zr(),p=r.mode,B=jl({mode:"hidden",children:B},p),l=ua(l,p,i,null),B.return=r,l.return=r,B.sibling=l,r.child=B,p=r.child,p.memoizedState=Od(i),p.childLanes=Rd(t,D,i),r.memoizedState=kd,l):(Pr(r),Cd(r,B))}if($=t.memoizedState,$!==null&&(B=$.dehydrated,B!==null)){if(y)r.flags&256?(Pr(r),r.flags&=-257,r=Dd(t,r,i)):r.memoizedState!==null?(zr(),r.child=t.child,r.flags|=128,r=null):(zr(),p=l.fallback,B=r.mode,l=jl({mode:"visible",children:l.children},B),p=ua(p,B,i,null),p.flags|=2,l.return=r,p.return=r,l.sibling=p,r.child=l,fs(r,t.child,null,i),l=r.child,l.memoizedState=Od(i),l.childLanes=Rd(t,D,i),r.memoizedState=kd,r=p);else if(Pr(r),pf(B)){if(D=B.nextSibling&&B.nextSibling.dataset,D)var le=D.dgst;D=le,l=Error(s(419)),l.stack="",l.digest=D,ci({value:l,source:null,stack:null}),r=Dd(t,r,i)}else if(Rt||ui(t,r,i,!1),D=(i&t.childLanes)!==0,Rt||D){if(D=st,D!==null&&(l=i&-i,l=(l&42)!==0?1:pu(l),l=(l&(D.suspendedLanes|i))!==0?0:l,l!==0&&l!==$.retryLane))throw $.retryLane=l,ts(t,l),fn(D,t,l),l0;B.data==="$?"||$d(),r=Dd(t,r,i)}else B.data==="$?"?(r.flags|=192,r.child=t.child,r=null):(t=$.treeContext,gt=Bn(B.nextSibling),Gt=r,Ke=!0,ha=null,Wn=!1,t!==null&&(wn[Sn++]=or,wn[Sn++]=lr,wn[Sn++]=da,or=t.id,lr=t.overflow,da=r),r=Cd(r,l.children),r.flags|=4096);return r}return p?(zr(),p=l.fallback,B=r.mode,$=t.child,le=$.sibling,l=ir($,{mode:"hidden",children:l.children}),l.subtreeFlags=$.subtreeFlags&65011712,le!==null?p=ir(le,p):(p=ua(p,B,i,null),p.flags|=2),p.return=r,l.return=r,l.sibling=p,r.child=l,l=p,p=r.child,B=t.child.memoizedState,B===null?B=Od(i):($=B.cachePool,$!==null?(le=_t._currentValue,$=$.parent!==le?{parent:le,pool:le}:$):$=rg(),B={baseLanes:B.baseLanes|i,cachePool:$}),p.memoizedState=B,p.childLanes=Rd(t,D,i),r.memoizedState=kd,l):(Pr(r),i=t.child,t=i.sibling,i=ir(i,{mode:"visible",children:l.children}),i.return=r,i.sibling=null,t!==null&&(D=r.deletions,D===null?(r.deletions=[t],r.flags|=16):D.push(t)),r.child=i,r.memoizedState=null,i)}function Cd(t,r){return r=jl({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function jl(t,r){return t=on(22,t,null,r),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Dd(t,r,i){return fs(r,t.child,null,i),t=Cd(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function x0(t,r,i){t.lanes|=r;var l=t.alternate;l!==null&&(l.lanes|=r),$u(t.return,r,i)}function Md(t,r,i,l,p){var y=t.memoizedState;y===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:p}:(y.isBackwards=r,y.rendering=null,y.renderingStartTime=0,y.last=l,y.tail=i,y.tailMode=p)}function v0(t,r,i){var l=r.pendingProps,p=l.revealOrder,y=l.tail;if(Mt(t,r,l.children,i),l=kt.current,(l&2)!==0)l=l&1|2,r.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=r.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&x0(t,i,r);else if(t.tag===19)x0(t,i,r);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===r)break e;for(;t.sibling===null;){if(t.return===null||t.return===r)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}switch(J(kt,l),p){case"forwards":for(i=r.child,p=null;i!==null;)t=i.alternate,t!==null&&vl(t)===null&&(p=i),i=i.sibling;i=p,i===null?(p=r.child,r.child=null):(p=i.sibling,i.sibling=null),Md(r,!1,p,i,y);break;case"backwards":for(i=null,p=r.child,r.child=null;p!==null;){if(t=p.alternate,t!==null&&vl(t)===null){r.child=p;break}t=p.sibling,p.sibling=i,i=p,p=t}Md(r,!0,i,null,y);break;case"together":Md(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function hr(t,r,i){if(t!==null&&(r.dependencies=t.dependencies),Hr|=r.lanes,(i&r.childLanes)===0)if(t!==null){if(ui(t,r,i,!1),(i&r.childLanes)===0)return null}else return null;if(t!==null&&r.child!==t.child)throw Error(s(153));if(r.child!==null){for(t=r.child,i=ir(t,t.pendingProps),r.child=i,i.return=r;t.sibling!==null;)t=t.sibling,i=i.sibling=ir(t,t.pendingProps),i.return=r;i.sibling=null}return r.child}function Ld(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&rl(t)))}function GS(t,r,i){switch(r.tag){case 3:Se(r,r.stateNode.containerInfo),Rr(r,_t,t.memoizedState.cache),li();break;case 27:case 5:Ne(r);break;case 4:Se(r,r.stateNode.containerInfo);break;case 10:Rr(r,r.type,r.memoizedProps.value);break;case 13:var l=r.memoizedState;if(l!==null)return l.dehydrated!==null?(Pr(r),r.flags|=128,null):(i&r.child.childLanes)!==0?y0(t,r,i):(Pr(r),t=hr(t,r,i),t!==null?t.sibling:null);Pr(r);break;case 19:var p=(t.flags&128)!==0;if(l=(i&r.childLanes)!==0,l||(ui(t,r,i,!1),l=(i&r.childLanes)!==0),p){if(l)return v0(t,r,i);r.flags|=128}if(p=r.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),J(kt,kt.current),l)break;return null;case 22:case 23:return r.lanes=0,f0(t,r,i);case 24:Rr(r,_t,t.memoizedState.cache)}return hr(t,r,i)}function b0(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps)Rt=!0;else{if(!Ld(t,i)&&(r.flags&128)===0)return Rt=!1,GS(t,r,i);Rt=(t.flags&131072)!==0}else Rt=!1,Ke&&(r.flags&1048576)!==0&&Kp(r,nl,r.index);switch(r.lanes=0,r.tag){case 16:e:{t=r.pendingProps;var l=r.elementType,p=l._init;if(l=p(l._payload),r.type=l,typeof l=="function")qu(l)?(t=va(l,t),r.tag=1,r=p0(null,r,l,t,i)):(r.tag=0,r=_d(null,r,l,t,i));else{if(l!=null){if(p=l.$$typeof,p===q){r.tag=11,r=c0(null,r,l,t,i);break e}else if(p===F){r.tag=14,r=u0(null,r,l,t,i);break e}}throw r=j(l)||l,Error(s(306,r,""))}}return r;case 0:return _d(t,r,r.type,r.pendingProps,i);case 1:return l=r.type,p=va(l,r.pendingProps),p0(t,r,l,p,i);case 3:e:{if(Se(r,r.stateNode.containerInfo),t===null)throw Error(s(387));l=r.pendingProps;var y=r.memoizedState;p=y.element,ad(t,r),yi(r,l,null,i);var D=r.memoizedState;if(l=D.cache,Rr(r,_t,l),l!==y.cache&&Qu(r,[_t],i,!0),gi(),l=D.element,y.isDehydrated)if(y={element:l,isDehydrated:!1,cache:D.cache},r.updateQueue.baseState=y,r.memoizedState=y,r.flags&256){r=g0(t,r,l,i);break e}else if(l!==p){p=vn(Error(s(424)),r),ci(p),r=g0(t,r,l,i);break e}else{switch(t=r.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(gt=Bn(t.firstChild),Gt=r,Ke=!0,ha=null,Wn=!0,i=Qg(r,null,l,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(li(),l===p){r=hr(t,r,i);break e}Mt(t,r,l,i)}r=r.child}return r;case 26:return Sl(t,r),t===null?(i=Ey(r.type,null,r.pendingProps,null))?r.memoizedState=i:Ke||(i=r.type,t=r.pendingProps,l=zl(ie.current).createElement(i),l[Bt]=r,l[Kt]=t,Pt(l,i,t),Ot(l),r.stateNode=l):r.memoizedState=Ey(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Ne(r),t===null&&Ke&&(l=r.stateNode=wy(r.type,r.pendingProps,ie.current),Gt=r,Wn=!0,p=gt,Yr(r.type)?(gf=p,gt=Bn(l.firstChild)):gt=p),Mt(t,r,r.pendingProps.children,i),Sl(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Ke&&((p=l=gt)&&(l=vj(l,r.type,r.pendingProps,Wn),l!==null?(r.stateNode=l,Gt=r,gt=Bn(l.firstChild),Wn=!1,p=!0):p=!1),p||ma(r)),Ne(r),p=r.type,y=r.pendingProps,D=t!==null?t.memoizedProps:null,l=y.children,ff(p,y)?l=null:D!==null&&ff(p,D)&&(r.flags|=32),r.memoizedState!==null&&(p=ud(t,r,zS,null,null,i),Bi._currentValue=p),Sl(t,r),Mt(t,r,l,i),r.child;case 6:return t===null&&Ke&&((t=i=gt)&&(i=bj(i,r.pendingProps,Wn),i!==null?(r.stateNode=i,Gt=r,gt=null,t=!0):t=!1),t||ma(r)),null;case 13:return y0(t,r,i);case 4:return Se(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=fs(r,null,l,i):Mt(t,r,l,i),r.child;case 11:return c0(t,r,r.type,r.pendingProps,i);case 7:return Mt(t,r,r.pendingProps,i),r.child;case 8:return Mt(t,r,r.pendingProps.children,i),r.child;case 12:return Mt(t,r,r.pendingProps.children,i),r.child;case 10:return l=r.pendingProps,Rr(r,r.type,l.value),Mt(t,r,l.children,i),r.child;case 9:return p=r.type._context,l=r.pendingProps.children,ga(r),p=Ft(p),l=l(p),r.flags|=1,Mt(t,r,l,i),r.child;case 14:return u0(t,r,r.type,r.pendingProps,i);case 15:return d0(t,r,r.type,r.pendingProps,i);case 19:return v0(t,r,i);case 31:return l=r.pendingProps,i=r.mode,l={mode:l.mode,children:l.children},t===null?(i=jl(l,i),i.ref=r.ref,r.child=i,i.return=r,r=i):(i=ir(t.child,l),i.ref=r.ref,r.child=i,i.return=r,r=i),r;case 22:return f0(t,r,i);case 24:return ga(r),l=Ft(_t),t===null?(p=td(),p===null&&(p=st,y=Ju(),p.pooledCache=y,y.refCount++,y!==null&&(p.pooledCacheLanes|=i),p=y),r.memoizedState={parent:l,cache:p},rd(r),Rr(r,_t,p)):((t.lanes&i)!==0&&(ad(t,r),yi(r,null,null,i),gi()),p=t.memoizedState,y=r.memoizedState,p.parent!==l?(p={parent:l,cache:l},r.memoizedState=p,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=p),Rr(r,_t,l)):(l=y.cache,Rr(r,_t,l),l!==p.cache&&Qu(r,[_t],i,!0))),Mt(t,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function mr(t){t.flags|=4}function w0(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!ky(r)){if(r=jn.current,r!==null&&((We&4194048)===We?Zn!==null:(We&62914560)!==We&&(We&536870912)===0||r!==Zn))throw mi=nd,ag;t.flags|=8192}}function El(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Bo():536870912,t.lanes|=r,gs|=r)}function Ei(t,r){if(!Ke)switch(t.tailMode){case"hidden":r=t.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?t.tail=null:i.sibling=null;break;case"collapsed":i=t.tail;for(var l=null;i!==null;)i.alternate!==null&&(l=i),i=i.sibling;l===null?r||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function ht(t){var r=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(r)for(var p=t.child;p!==null;)i|=p.lanes|p.childLanes,l|=p.subtreeFlags&65011712,l|=p.flags&65011712,p.return=t,p=p.sibling;else for(p=t.child;p!==null;)i|=p.lanes|p.childLanes,l|=p.subtreeFlags,l|=p.flags,p.return=t,p=p.sibling;return t.subtreeFlags|=l,t.childLanes=i,r}function YS(t,r,i){var l=r.pendingProps;switch(Wu(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ht(r),null;case 1:return ht(r),null;case 3:return i=r.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),ur(_t),Ee(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(oi(r)?mr(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Jp())),ht(r),null;case 26:return i=r.memoizedState,t===null?(mr(r),i!==null?(ht(r),w0(r,i)):(ht(r),r.flags&=-16777217)):i?i!==t.memoizedState?(mr(r),ht(r),w0(r,i)):(ht(r),r.flags&=-16777217):(t.memoizedProps!==l&&mr(r),ht(r),r.flags&=-16777217),null;case 27:Oe(r),i=ie.current;var p=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==l&&mr(r);else{if(!l){if(r.stateNode===null)throw Error(s(166));return ht(r),null}t=Q.current,oi(r)?$p(r):(t=wy(p,l,i),r.stateNode=t,mr(r))}return ht(r),null;case 5:if(Oe(r),i=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==l&&mr(r);else{if(!l){if(r.stateNode===null)throw Error(s(166));return ht(r),null}if(t=Q.current,oi(r))$p(r);else{switch(p=zl(ie.current),t){case 1:t=p.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:t=p.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":t=p.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":t=p.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":t=p.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?p.createElement("select",{is:l.is}):p.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?p.createElement(i,{is:l.is}):p.createElement(i)}}t[Bt]=r,t[Kt]=l;e:for(p=r.child;p!==null;){if(p.tag===5||p.tag===6)t.appendChild(p.stateNode);else if(p.tag!==4&&p.tag!==27&&p.child!==null){p.child.return=p,p=p.child;continue}if(p===r)break e;for(;p.sibling===null;){if(p.return===null||p.return===r)break e;p=p.return}p.sibling.return=p.return,p=p.sibling}r.stateNode=t;e:switch(Pt(t,i,l),i){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&mr(r)}}return ht(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==l&&mr(r);else{if(typeof l!="string"&&r.stateNode===null)throw Error(s(166));if(t=ie.current,oi(r)){if(t=r.stateNode,i=r.memoizedProps,l=null,p=Gt,p!==null)switch(p.tag){case 27:case 5:l=p.memoizedProps}t[Bt]=r,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||my(t.nodeValue,i)),t||ma(r)}else t=zl(t).createTextNode(l),t[Bt]=r,r.stateNode=t}return ht(r),null;case 13:if(l=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(p=oi(r),l!==null&&l.dehydrated!==null){if(t===null){if(!p)throw Error(s(318));if(p=r.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(s(317));p[Bt]=r}else li(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ht(r),p=!1}else p=Jp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=p),p=!0;if(!p)return r.flags&256?(fr(r),r):(fr(r),null)}if(fr(r),(r.flags&128)!==0)return r.lanes=i,r;if(i=l!==null,t=t!==null&&t.memoizedState!==null,i){l=r.child,p=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(p=l.alternate.memoizedState.cachePool.pool);var y=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(y=l.memoizedState.cachePool.pool),y!==p&&(l.flags|=2048)}return i!==t&&i&&(r.child.flags|=8192),El(r,r.updateQueue),ht(r),null;case 4:return Ee(),t===null&&of(r.stateNode.containerInfo),ht(r),null;case 10:return ur(r.type),ht(r),null;case 19:if(U(kt),p=r.memoizedState,p===null)return ht(r),null;if(l=(r.flags&128)!==0,y=p.rendering,y===null)if(l)Ei(p,!1);else{if(yt!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(y=vl(t),y!==null){for(r.flags|=128,Ei(p,!1),t=y.updateQueue,r.updateQueue=t,El(r,t),r.subtreeFlags=0,t=i,i=r.child;i!==null;)Zp(i,t),i=i.sibling;return J(kt,kt.current&1|2),r.child}t=t.sibling}p.tail!==null&&G()>Nl&&(r.flags|=128,l=!0,Ei(p,!1),r.lanes=4194304)}else{if(!l)if(t=vl(y),t!==null){if(r.flags|=128,l=!0,t=t.updateQueue,r.updateQueue=t,El(r,t),Ei(p,!0),p.tail===null&&p.tailMode==="hidden"&&!y.alternate&&!Ke)return ht(r),null}else 2*G()-p.renderingStartTime>Nl&&i!==536870912&&(r.flags|=128,l=!0,Ei(p,!1),r.lanes=4194304);p.isBackwards?(y.sibling=r.child,r.child=y):(t=p.last,t!==null?t.sibling=y:r.child=y,p.last=y)}return p.tail!==null?(r=p.tail,p.rendering=r,p.tail=r.sibling,p.renderingStartTime=G(),r.sibling=null,t=kt.current,J(kt,l?t&1|2:t&1),r):(ht(r),null);case 22:case 23:return fr(r),ld(),l=r.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(r.flags|=8192):l&&(r.flags|=8192),l?(i&536870912)!==0&&(r.flags&128)===0&&(ht(r),r.subtreeFlags&6&&(r.flags|=8192)):ht(r),i=r.updateQueue,i!==null&&El(r,i.retryQueue),i=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),l=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(l=r.memoizedState.cachePool.pool),l!==i&&(r.flags|=2048),t!==null&&U(ya),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),ur(_t),ht(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function XS(t,r){switch(Wu(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return ur(_t),Ee(),t=r.flags,(t&65536)!==0&&(t&128)===0?(r.flags=t&-65537|128,r):null;case 26:case 27:case 5:return Oe(r),null;case 13:if(fr(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(s(340));li()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return U(kt),null;case 4:return Ee(),null;case 10:return ur(r.type),null;case 22:case 23:return fr(r),ld(),t!==null&&U(ya),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return ur(_t),null;case 25:return null;default:return null}}function S0(t,r){switch(Wu(r),r.tag){case 3:ur(_t),Ee();break;case 26:case 27:case 5:Oe(r);break;case 4:Ee();break;case 13:fr(r);break;case 19:U(kt);break;case 10:ur(r.type);break;case 22:case 23:fr(r),ld(),t!==null&&U(ya);break;case 24:ur(_t)}}function Ti(t,r){try{var i=r.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var p=l.next;i=p;do{if((i.tag&t)===t){l=void 0;var y=i.create,D=i.inst;l=y(),D.destroy=l}i=i.next}while(i!==p)}}catch(B){nt(r,r.return,B)}}function Ur(t,r,i){try{var l=r.updateQueue,p=l!==null?l.lastEffect:null;if(p!==null){var y=p.next;l=y;do{if((l.tag&t)===t){var D=l.inst,B=D.destroy;if(B!==void 0){D.destroy=void 0,p=r;var $=i,le=B;try{le()}catch(ge){nt(p,$,ge)}}}l=l.next}while(l!==y)}}catch(ge){nt(r,r.return,ge)}}function j0(t){var r=t.updateQueue;if(r!==null){var i=t.stateNode;try{ug(r,i)}catch(l){nt(t,t.return,l)}}}function E0(t,r,i){i.props=va(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){nt(t,r,l)}}function Ai(t,r){try{var i=t.ref;if(i!==null){switch(t.tag){case 26:case 27:case 5:var l=t.stateNode;break;case 30:l=t.stateNode;break;default:l=t.stateNode}typeof i=="function"?t.refCleanup=i(l):i.current=l}}catch(p){nt(t,r,p)}}function Kn(t,r){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(p){nt(t,r,p)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(p){nt(t,r,p)}else i.current=null}function T0(t){var r=t.type,i=t.memoizedProps,l=t.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":i.autoFocus&&l.focus();break e;case"img":i.src?l.src=i.src:i.srcSet&&(l.srcset=i.srcSet)}}catch(p){nt(t,t.return,p)}}function Pd(t,r,i){try{var l=t.stateNode;mj(l,t.type,i,r),l[Kt]=r}catch(p){nt(t,t.return,p)}}function A0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Yr(t.type)||t.tag===4}function zd(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||A0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&Yr(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ud(t,r,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(t,r):(r=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,r.appendChild(t),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=Pl));else if(l!==4&&(l===27&&Yr(t.type)&&(i=t.stateNode,r=null),t=t.child,t!==null))for(Ud(t,r,i),t=t.sibling;t!==null;)Ud(t,r,i),t=t.sibling}function Tl(t,r,i){var l=t.tag;if(l===5||l===6)t=t.stateNode,r?i.insertBefore(t,r):i.appendChild(t);else if(l!==4&&(l===27&&Yr(t.type)&&(i=t.stateNode),t=t.child,t!==null))for(Tl(t,r,i),t=t.sibling;t!==null;)Tl(t,r,i),t=t.sibling}function N0(t){var r=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);Pt(r,l,i),r[Bt]=t,r[Kt]=i}catch(y){nt(t,t.return,y)}}var pr=!1,wt=!1,Bd=!1,_0=typeof WeakSet=="function"?WeakSet:Set,Ct=null;function WS(t,r){if(t=t.containerInfo,uf=Il,t=Bp(t),zu(t)){if("selectionStart"in t)var i={start:t.selectionStart,end:t.selectionEnd};else e:{i=(i=t.ownerDocument)&&i.defaultView||window;var l=i.getSelection&&i.getSelection();if(l&&l.rangeCount!==0){i=l.anchorNode;var p=l.anchorOffset,y=l.focusNode;l=l.focusOffset;try{i.nodeType,y.nodeType}catch{i=null;break e}var D=0,B=-1,$=-1,le=0,ge=0,we=t,fe=null;t:for(;;){for(var he;we!==i||p!==0&&we.nodeType!==3||(B=D+p),we!==y||l!==0&&we.nodeType!==3||($=D+l),we.nodeType===3&&(D+=we.nodeValue.length),(he=we.firstChild)!==null;)fe=we,we=he;for(;;){if(we===t)break t;if(fe===i&&++le===p&&(B=D),fe===y&&++ge===l&&($=D),(he=we.nextSibling)!==null)break;we=fe,fe=we.parentNode}we=he}i=B===-1||$===-1?null:{start:B,end:$}}else i=null}i=i||{start:0,end:0}}else i=null;for(df={focusedElem:t,selectionRange:i},Il=!1,Ct=r;Ct!==null;)if(r=Ct,t=r.child,(r.subtreeFlags&1024)!==0&&t!==null)t.return=r,Ct=t;else for(;Ct!==null;){switch(r=Ct,y=r.alternate,t=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&y!==null){t=void 0,i=r,p=y.memoizedProps,y=y.memoizedState,l=i.stateNode;try{var ze=va(i.type,p,i.elementType===i.type);t=l.getSnapshotBeforeUpdate(ze,y),l.__reactInternalSnapshotBeforeUpdate=t}catch(Me){nt(i,i.return,Me)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,i=t.nodeType,i===9)mf(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":mf(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(s(163))}if(t=r.sibling,t!==null){t.return=r.return,Ct=t;break}Ct=r.return}}function k0(t,r,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Br(t,i),l&4&&Ti(5,i);break;case 1:if(Br(t,i),l&4)if(t=i.stateNode,r===null)try{t.componentDidMount()}catch(D){nt(i,i.return,D)}else{var p=va(i.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(p,r,t.__reactInternalSnapshotBeforeUpdate)}catch(D){nt(i,i.return,D)}}l&64&&j0(i),l&512&&Ai(i,i.return);break;case 3:if(Br(t,i),l&64&&(t=i.updateQueue,t!==null)){if(r=null,i.child!==null)switch(i.child.tag){case 27:case 5:r=i.child.stateNode;break;case 1:r=i.child.stateNode}try{ug(t,r)}catch(D){nt(i,i.return,D)}}break;case 27:r===null&&l&4&&N0(i);case 26:case 5:Br(t,i),r===null&&l&4&&T0(i),l&512&&Ai(i,i.return);break;case 12:Br(t,i);break;case 13:Br(t,i),l&4&&C0(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=rj.bind(null,i),wj(t,i))));break;case 22:if(l=i.memoizedState!==null||pr,!l){r=r!==null&&r.memoizedState!==null||wt,p=pr;var y=wt;pr=l,(wt=r)&&!y?Fr(t,i,(i.subtreeFlags&8772)!==0):Br(t,i),pr=p,wt=y}break;case 30:break;default:Br(t,i)}}function O0(t){var r=t.alternate;r!==null&&(t.alternate=null,O0(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&xu(r)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var ct=null,Jt=!1;function gr(t,r,i){for(i=i.child;i!==null;)R0(t,r,i),i=i.sibling}function R0(t,r,i){if(_e&&typeof _e.onCommitFiberUnmount=="function")try{_e.onCommitFiberUnmount(xe,i)}catch{}switch(i.tag){case 26:wt||Kn(i,r),gr(t,r,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:wt||Kn(i,r);var l=ct,p=Jt;Yr(i.type)&&(ct=i.stateNode,Jt=!1),gr(t,r,i),Li(i.stateNode),ct=l,Jt=p;break;case 5:wt||Kn(i,r);case 6:if(l=ct,p=Jt,ct=null,gr(t,r,i),ct=l,Jt=p,ct!==null)if(Jt)try{(ct.nodeType===9?ct.body:ct.nodeName==="HTML"?ct.ownerDocument.body:ct).removeChild(i.stateNode)}catch(y){nt(i,r,y)}else try{ct.removeChild(i.stateNode)}catch(y){nt(i,r,y)}break;case 18:ct!==null&&(Jt?(t=ct,vy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Ii(t)):vy(ct,i.stateNode));break;case 4:l=ct,p=Jt,ct=i.stateNode.containerInfo,Jt=!0,gr(t,r,i),ct=l,Jt=p;break;case 0:case 11:case 14:case 15:wt||Ur(2,i,r),wt||Ur(4,i,r),gr(t,r,i);break;case 1:wt||(Kn(i,r),l=i.stateNode,typeof l.componentWillUnmount=="function"&&E0(i,r,l)),gr(t,r,i);break;case 21:gr(t,r,i);break;case 22:wt=(l=wt)||i.memoizedState!==null,gr(t,r,i),wt=l;break;default:gr(t,r,i)}}function C0(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Ii(t)}catch(i){nt(r,r.return,i)}}function ZS(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new _0),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new _0),r;default:throw Error(s(435,t.tag))}}function Fd(t,r){var i=ZS(t);r.forEach(function(l){var p=aj.bind(null,t,l);i.has(l)||(i.add(l),l.then(p,p))})}function ln(t,r){var i=r.deletions;if(i!==null)for(var l=0;l<i.length;l++){var p=i[l],y=t,D=r,B=D;e:for(;B!==null;){switch(B.tag){case 27:if(Yr(B.type)){ct=B.stateNode,Jt=!1;break e}break;case 5:ct=B.stateNode,Jt=!1;break e;case 3:case 4:ct=B.stateNode.containerInfo,Jt=!0;break e}B=B.return}if(ct===null)throw Error(s(160));R0(y,D,p),ct=null,Jt=!1,y=p.alternate,y!==null&&(y.return=null),p.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)D0(r,t),r=r.sibling}var Un=null;function D0(t,r){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:ln(r,t),cn(t),l&4&&(Ur(3,t,t.return),Ti(3,t),Ur(5,t,t.return));break;case 1:ln(r,t),cn(t),l&512&&(wt||i===null||Kn(i,i.return)),l&64&&pr&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(i=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=i===null?l:i.concat(l))));break;case 26:var p=Un;if(ln(r,t),cn(t),l&512&&(wt||i===null||Kn(i,i.return)),l&4){var y=i!==null?i.memoizedState:null;if(l=t.memoizedState,i===null)if(l===null)if(t.stateNode===null){e:{l=t.type,i=t.memoizedProps,p=p.ownerDocument||p;t:switch(l){case"title":y=p.getElementsByTagName("title")[0],(!y||y[Ks]||y[Bt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=p.createElement(l),p.head.insertBefore(y,p.querySelector("head > title"))),Pt(y,l,i),y[Bt]=t,Ot(y),l=y;break e;case"link":var D=Ny("link","href",p).get(l+(i.href||""));if(D){for(var B=0;B<D.length;B++)if(y=D[B],y.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&y.getAttribute("rel")===(i.rel==null?null:i.rel)&&y.getAttribute("title")===(i.title==null?null:i.title)&&y.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){D.splice(B,1);break t}}y=p.createElement(l),Pt(y,l,i),p.head.appendChild(y);break;case"meta":if(D=Ny("meta","content",p).get(l+(i.content||""))){for(B=0;B<D.length;B++)if(y=D[B],y.getAttribute("content")===(i.content==null?null:""+i.content)&&y.getAttribute("name")===(i.name==null?null:i.name)&&y.getAttribute("property")===(i.property==null?null:i.property)&&y.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&y.getAttribute("charset")===(i.charSet==null?null:i.charSet)){D.splice(B,1);break t}}y=p.createElement(l),Pt(y,l,i),p.head.appendChild(y);break;default:throw Error(s(468,l))}y[Bt]=t,Ot(y),l=y}t.stateNode=l}else _y(p,t.type,t.stateNode);else t.stateNode=Ay(p,l,t.memoizedProps);else y!==l?(y===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):y.count--,l===null?_y(p,t.type,t.stateNode):Ay(p,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Pd(t,t.memoizedProps,i.memoizedProps)}break;case 27:ln(r,t),cn(t),l&512&&(wt||i===null||Kn(i,i.return)),i!==null&&l&4&&Pd(t,t.memoizedProps,i.memoizedProps);break;case 5:if(ln(r,t),cn(t),l&512&&(wt||i===null||Kn(i,i.return)),t.flags&32){p=t.stateNode;try{Wa(p,"")}catch(he){nt(t,t.return,he)}}l&4&&t.stateNode!=null&&(p=t.memoizedProps,Pd(t,p,i!==null?i.memoizedProps:p)),l&1024&&(Bd=!0);break;case 6:if(ln(r,t),cn(t),l&4){if(t.stateNode===null)throw Error(s(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(he){nt(t,t.return,he)}}break;case 3:if(Fl=null,p=Un,Un=Ul(r.containerInfo),ln(r,t),Un=p,cn(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Ii(r.containerInfo)}catch(he){nt(t,t.return,he)}Bd&&(Bd=!1,M0(t));break;case 4:l=Un,Un=Ul(t.stateNode.containerInfo),ln(r,t),cn(t),Un=l;break;case 12:ln(r,t),cn(t);break;case 13:ln(r,t),cn(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Yd=G()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Fd(t,l)));break;case 22:p=t.memoizedState!==null;var $=i!==null&&i.memoizedState!==null,le=pr,ge=wt;if(pr=le||p,wt=ge||$,ln(r,t),wt=ge,pr=le,cn(t),l&8192)e:for(r=t.stateNode,r._visibility=p?r._visibility&-2:r._visibility|1,p&&(i===null||$||pr||wt||ba(t)),i=null,r=t;;){if(r.tag===5||r.tag===26){if(i===null){$=i=r;try{if(y=$.stateNode,p)D=y.style,typeof D.setProperty=="function"?D.setProperty("display","none","important"):D.display="none";else{B=$.stateNode;var we=$.memoizedProps.style,fe=we!=null&&we.hasOwnProperty("display")?we.display:null;B.style.display=fe==null||typeof fe=="boolean"?"":(""+fe).trim()}}catch(he){nt($,$.return,he)}}}else if(r.tag===6){if(i===null){$=r;try{$.stateNode.nodeValue=p?"":$.memoizedProps}catch(he){nt($,$.return,he)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===t)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===t)break e;for(;r.sibling===null;){if(r.return===null||r.return===t)break e;i===r&&(i=null),r=r.return}i===r&&(i=null),r.sibling.return=r.return,r=r.sibling}l&4&&(l=t.updateQueue,l!==null&&(i=l.retryQueue,i!==null&&(l.retryQueue=null,Fd(t,i))));break;case 19:ln(r,t),cn(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Fd(t,l)));break;case 30:break;case 21:break;default:ln(r,t),cn(t)}}function cn(t){var r=t.flags;if(r&2){try{for(var i,l=t.return;l!==null;){if(A0(l)){i=l;break}l=l.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var p=i.stateNode,y=zd(t);Tl(t,y,p);break;case 5:var D=i.stateNode;i.flags&32&&(Wa(D,""),i.flags&=-33);var B=zd(t);Tl(t,B,D);break;case 3:case 4:var $=i.stateNode.containerInfo,le=zd(t);Ud(t,le,$);break;default:throw Error(s(161))}}catch(ge){nt(t,t.return,ge)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function M0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;M0(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function Br(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)k0(t,r.alternate,r),r=r.sibling}function ba(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:Ur(4,r,r.return),ba(r);break;case 1:Kn(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&E0(r,r.return,i),ba(r);break;case 27:Li(r.stateNode);case 26:case 5:Kn(r,r.return),ba(r);break;case 22:r.memoizedState===null&&ba(r);break;case 30:ba(r);break;default:ba(r)}t=t.sibling}}function Fr(t,r,i){for(i=i&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var l=r.alternate,p=t,y=r,D=y.flags;switch(y.tag){case 0:case 11:case 15:Fr(p,y,i),Ti(4,y);break;case 1:if(Fr(p,y,i),l=y,p=l.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(le){nt(l,l.return,le)}if(l=y,p=l.updateQueue,p!==null){var B=l.stateNode;try{var $=p.shared.hiddenCallbacks;if($!==null)for(p.shared.hiddenCallbacks=null,p=0;p<$.length;p++)cg($[p],B)}catch(le){nt(l,l.return,le)}}i&&D&64&&j0(y),Ai(y,y.return);break;case 27:N0(y);case 26:case 5:Fr(p,y,i),i&&l===null&&D&4&&T0(y),Ai(y,y.return);break;case 12:Fr(p,y,i);break;case 13:Fr(p,y,i),i&&D&4&&C0(p,y);break;case 22:y.memoizedState===null&&Fr(p,y,i),Ai(y,y.return);break;case 30:break;default:Fr(p,y,i)}r=r.sibling}}function Vd(t,r){var i=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),t=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(t=r.memoizedState.cachePool.pool),t!==i&&(t!=null&&t.refCount++,i!=null&&di(i))}function Hd(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&di(t))}function $n(t,r,i,l){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)L0(t,r,i,l),r=r.sibling}function L0(t,r,i,l){var p=r.flags;switch(r.tag){case 0:case 11:case 15:$n(t,r,i,l),p&2048&&Ti(9,r);break;case 1:$n(t,r,i,l);break;case 3:$n(t,r,i,l),p&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&di(t)));break;case 12:if(p&2048){$n(t,r,i,l),t=r.stateNode;try{var y=r.memoizedProps,D=y.id,B=y.onPostCommit;typeof B=="function"&&B(D,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch($){nt(r,r.return,$)}}else $n(t,r,i,l);break;case 13:$n(t,r,i,l);break;case 23:break;case 22:y=r.stateNode,D=r.alternate,r.memoizedState!==null?y._visibility&2?$n(t,r,i,l):Ni(t,r):y._visibility&2?$n(t,r,i,l):(y._visibility|=2,hs(t,r,i,l,(r.subtreeFlags&10256)!==0)),p&2048&&Vd(D,r);break;case 24:$n(t,r,i,l),p&2048&&Hd(r.alternate,r);break;default:$n(t,r,i,l)}}function hs(t,r,i,l,p){for(p=p&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var y=t,D=r,B=i,$=l,le=D.flags;switch(D.tag){case 0:case 11:case 15:hs(y,D,B,$,p),Ti(8,D);break;case 23:break;case 22:var ge=D.stateNode;D.memoizedState!==null?ge._visibility&2?hs(y,D,B,$,p):Ni(y,D):(ge._visibility|=2,hs(y,D,B,$,p)),p&&le&2048&&Vd(D.alternate,D);break;case 24:hs(y,D,B,$,p),p&&le&2048&&Hd(D.alternate,D);break;default:hs(y,D,B,$,p)}r=r.sibling}}function Ni(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var i=t,l=r,p=l.flags;switch(l.tag){case 22:Ni(i,l),p&2048&&Vd(l.alternate,l);break;case 24:Ni(i,l),p&2048&&Hd(l.alternate,l);break;default:Ni(i,l)}r=r.sibling}}var _i=8192;function ms(t){if(t.subtreeFlags&_i)for(t=t.child;t!==null;)P0(t),t=t.sibling}function P0(t){switch(t.tag){case 26:ms(t),t.flags&_i&&t.memoizedState!==null&&Mj(Un,t.memoizedState,t.memoizedProps);break;case 5:ms(t);break;case 3:case 4:var r=Un;Un=Ul(t.stateNode.containerInfo),ms(t),Un=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=_i,_i=16777216,ms(t),_i=r):ms(t));break;default:ms(t)}}function z0(t){var r=t.alternate;if(r!==null&&(t=r.child,t!==null)){r.child=null;do r=t.sibling,t.sibling=null,t=r;while(t!==null)}}function ki(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var l=r[i];Ct=l,B0(l,t)}z0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)U0(t),t=t.sibling}function U0(t){switch(t.tag){case 0:case 11:case 15:ki(t),t.flags&2048&&Ur(9,t,t.return);break;case 3:ki(t);break;case 12:ki(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,Al(t)):ki(t);break;default:ki(t)}}function Al(t){var r=t.deletions;if((t.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var l=r[i];Ct=l,B0(l,t)}z0(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:Ur(8,r,r.return),Al(r);break;case 22:i=r.stateNode,i._visibility&2&&(i._visibility&=-3,Al(r));break;default:Al(r)}t=t.sibling}}function B0(t,r){for(;Ct!==null;){var i=Ct;switch(i.tag){case 0:case 11:case 15:Ur(8,i,r);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var l=i.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:di(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,Ct=l;else e:for(i=t;Ct!==null;){l=Ct;var p=l.sibling,y=l.return;if(O0(l),l===i){Ct=null;break e}if(p!==null){p.return=y,Ct=p;break e}Ct=y}}}var KS={getCacheForType:function(t){var r=Ft(_t),i=r.data.get(t);return i===void 0&&(i=t(),r.data.set(t,i)),i}},$S=typeof WeakMap=="function"?WeakMap:Map,$e=0,st=null,Ge=null,We=0,Qe=0,un=null,Vr=!1,ps=!1,Id=!1,yr=0,yt=0,Hr=0,wa=0,qd=0,En=0,gs=0,Oi=null,en=null,Gd=!1,Yd=0,Nl=1/0,_l=null,Ir=null,Lt=0,qr=null,ys=null,xs=0,Xd=0,Wd=null,F0=null,Ri=0,Zd=null;function dn(){if(($e&2)!==0&&We!==0)return We&-We;if(W.T!==null){var t=ss;return t!==0?t:nf()}return np()}function V0(){En===0&&(En=(We&536870912)===0||Ke?Uo():536870912);var t=jn.current;return t!==null&&(t.flags|=32),En}function fn(t,r,i){(t===st&&(Qe===2||Qe===9)||t.cancelPendingCommit!==null)&&(vs(t,0),Gr(t,We,En,!1)),Pn(t,i),(($e&2)===0||t!==st)&&(t===st&&(($e&2)===0&&(wa|=i),yt===4&&Gr(t,We,En,!1)),Qn(t))}function H0(t,r,i){if(($e&6)!==0)throw Error(s(327));var l=!i&&(r&124)===0&&(r&t.expiredLanes)===0||_r(t,r),p=l?ej(t,r):Qd(t,r,!0),y=l;do{if(p===0){ps&&!l&&Gr(t,r,0,!1);break}else{if(i=t.current.alternate,y&&!QS(i)){p=Qd(t,r,!1),y=!1;continue}if(p===2){if(y=r,t.errorRecoveryDisabledLanes&y)var D=0;else D=t.pendingLanes&-536870913,D=D!==0?D:D&536870912?536870912:0;if(D!==0){r=D;e:{var B=t;p=Oi;var $=B.current.memoizedState.isDehydrated;if($&&(vs(B,D).flags|=256),D=Qd(B,D,!1),D!==2){if(Id&&!$){B.errorRecoveryDisabledLanes|=y,wa|=y,p=4;break e}y=en,en=p,y!==null&&(en===null?en=y:en.push.apply(en,y))}p=D}if(y=!1,p!==2)continue}}if(p===1){vs(t,0),Gr(t,r,0,!0);break}e:{switch(l=t,y=p,y){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:Gr(l,r,En,!Vr);break e;case 2:en=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(p=Yd+300-G(),10<p)){if(Gr(l,r,En,!Vr),Zt(l,0,!0)!==0)break e;l.timeoutHandle=yy(I0.bind(null,l,i,en,_l,Gd,r,En,wa,gs,Vr,y,2,-0,0),p);break e}I0(l,i,en,_l,Gd,r,En,wa,gs,Vr,y,0,-0,0)}}break}while(!0);Qn(t)}function I0(t,r,i,l,p,y,D,B,$,le,ge,we,fe,he){if(t.timeoutHandle=-1,we=r.subtreeFlags,(we&8192||(we&16785408)===16785408)&&(Ui={stylesheets:null,count:0,unsuspend:Dj},P0(r),we=Lj(),we!==null)){t.cancelPendingCommit=we(K0.bind(null,t,r,y,i,l,p,D,B,$,ge,1,fe,he)),Gr(t,y,D,!le);return}K0(t,r,y,i,l,p,D,B,$)}function QS(t){for(var r=t;;){var i=r.tag;if((i===0||i===11||i===15)&&r.flags&16384&&(i=r.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var l=0;l<i.length;l++){var p=i[l],y=p.getSnapshot;p=p.value;try{if(!sn(y(),p))return!1}catch{return!1}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===t)break;for(;r.sibling===null;){if(r.return===null||r.return===t)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Gr(t,r,i,l){r&=~qd,r&=~wa,t.suspendedLanes|=r,t.pingedLanes&=~r,l&&(t.warmLanes|=r),l=t.expirationTimes;for(var p=r;0<p;){var y=31-He(p),D=1<<y;l[y]=-1,p&=~D}i!==0&&ep(t,i,r)}function kl(){return($e&6)===0?(Ci(0),!1):!0}function Kd(){if(Ge!==null){if(Qe===0)var t=Ge.return;else t=Ge,cr=pa=null,hd(t),ds=null,Si=0,t=Ge;for(;t!==null;)S0(t.alternate,t),t=t.return;Ge=null}}function vs(t,r){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,gj(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Kd(),st=t,Ge=i=ir(t.current,null),We=r,Qe=0,un=null,Vr=!1,ps=_r(t,r),Id=!1,gs=En=qd=wa=Hr=yt=0,en=Oi=null,Gd=!1,(r&8)!==0&&(r|=r&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=r;0<l;){var p=31-He(l),y=1<<p;r|=t[p],l&=~y}return yr=r,$o(),i}function q0(t,r){Ie=null,W.H=gl,r===hi||r===il?(r=og(),Qe=3):r===ag?(r=og(),Qe=4):Qe=r===l0?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,un=r,Ge===null&&(yt=1,wl(t,vn(r,t.current)))}function G0(){var t=W.H;return W.H=gl,t===null?gl:t}function Y0(){var t=W.A;return W.A=KS,t}function $d(){yt=4,Vr||(We&4194048)!==We&&jn.current!==null||(ps=!0),(Hr&134217727)===0&&(wa&134217727)===0||st===null||Gr(st,We,En,!1)}function Qd(t,r,i){var l=$e;$e|=2;var p=G0(),y=Y0();(st!==t||We!==r)&&(_l=null,vs(t,r)),r=!1;var D=yt;e:do try{if(Qe!==0&&Ge!==null){var B=Ge,$=un;switch(Qe){case 8:Kd(),D=6;break e;case 3:case 2:case 9:case 6:jn.current===null&&(r=!0);var le=Qe;if(Qe=0,un=null,bs(t,B,$,le),i&&ps){D=0;break e}break;default:le=Qe,Qe=0,un=null,bs(t,B,$,le)}}JS(),D=yt;break}catch(ge){q0(t,ge)}while(!0);return r&&t.shellSuspendCounter++,cr=pa=null,$e=l,W.H=p,W.A=y,Ge===null&&(st=null,We=0,$o()),D}function JS(){for(;Ge!==null;)X0(Ge)}function ej(t,r){var i=$e;$e|=2;var l=G0(),p=Y0();st!==t||We!==r?(_l=null,Nl=G()+500,vs(t,r)):ps=_r(t,r);e:do try{if(Qe!==0&&Ge!==null){r=Ge;var y=un;t:switch(Qe){case 1:Qe=0,un=null,bs(t,r,y,1);break;case 2:case 9:if(sg(y)){Qe=0,un=null,W0(r);break}r=function(){Qe!==2&&Qe!==9||st!==t||(Qe=7),Qn(t)},y.then(r,r);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:sg(y)?(Qe=0,un=null,W0(r)):(Qe=0,un=null,bs(t,r,y,7));break;case 5:var D=null;switch(Ge.tag){case 26:D=Ge.memoizedState;case 5:case 27:var B=Ge;if(!D||ky(D)){Qe=0,un=null;var $=B.sibling;if($!==null)Ge=$;else{var le=B.return;le!==null?(Ge=le,Ol(le)):Ge=null}break t}}Qe=0,un=null,bs(t,r,y,5);break;case 6:Qe=0,un=null,bs(t,r,y,6);break;case 8:Kd(),yt=6;break e;default:throw Error(s(462))}}tj();break}catch(ge){q0(t,ge)}while(!0);return cr=pa=null,W.H=l,W.A=p,$e=i,Ge!==null?0:(st=null,We=0,$o(),yt)}function tj(){for(;Ge!==null&&!de();)X0(Ge)}function X0(t){var r=b0(t.alternate,t,yr);t.memoizedProps=t.pendingProps,r===null?Ol(t):Ge=r}function W0(t){var r=t,i=r.alternate;switch(r.tag){case 15:case 0:r=m0(i,r,r.pendingProps,r.type,void 0,We);break;case 11:r=m0(i,r,r.pendingProps,r.type.render,r.ref,We);break;case 5:hd(r);default:S0(i,r),r=Ge=Zp(r,yr),r=b0(i,r,yr)}t.memoizedProps=t.pendingProps,r===null?Ol(t):Ge=r}function bs(t,r,i,l){cr=pa=null,hd(r),ds=null,Si=0;var p=r.return;try{if(qS(t,p,r,i,We)){yt=1,wl(t,vn(i,t.current)),Ge=null;return}}catch(y){if(p!==null)throw Ge=p,y;yt=1,wl(t,vn(i,t.current)),Ge=null;return}r.flags&32768?(Ke||l===1?t=!0:ps||(We&536870912)!==0?t=!1:(Vr=t=!0,(l===2||l===9||l===3||l===6)&&(l=jn.current,l!==null&&l.tag===13&&(l.flags|=16384))),Z0(r,t)):Ol(r)}function Ol(t){var r=t;do{if((r.flags&32768)!==0){Z0(r,Vr);return}t=r.return;var i=YS(r.alternate,r,yr);if(i!==null){Ge=i;return}if(r=r.sibling,r!==null){Ge=r;return}Ge=r=t}while(r!==null);yt===0&&(yt=5)}function Z0(t,r){do{var i=XS(t.alternate,t);if(i!==null){i.flags&=32767,Ge=i;return}if(i=t.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!r&&(t=t.sibling,t!==null)){Ge=t;return}Ge=t=i}while(t!==null);yt=6,Ge=null}function K0(t,r,i,l,p,y,D,B,$){t.cancelPendingCommit=null;do Rl();while(Lt!==0);if(($e&6)!==0)throw Error(s(327));if(r!==null){if(r===t.current)throw Error(s(177));if(y=r.lanes|r.childLanes,y|=Hu,Fa(t,i,y,D,B,$),t===st&&(Ge=st=null,We=0),ys=r,qr=t,xs=i,Xd=y,Wd=p,F0=l,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,sj(ye,function(){return ty(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||l){l=W.T,W.T=null,p=w.p,w.p=2,D=$e,$e|=4;try{WS(t,r,i)}finally{$e=D,w.p=p,W.T=l}}Lt=1,$0(),Q0(),J0()}}function $0(){if(Lt===1){Lt=0;var t=qr,r=ys,i=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||i){i=W.T,W.T=null;var l=w.p;w.p=2;var p=$e;$e|=4;try{D0(r,t);var y=df,D=Bp(t.containerInfo),B=y.focusedElem,$=y.selectionRange;if(D!==B&&B&&B.ownerDocument&&Up(B.ownerDocument.documentElement,B)){if($!==null&&zu(B)){var le=$.start,ge=$.end;if(ge===void 0&&(ge=le),"selectionStart"in B)B.selectionStart=le,B.selectionEnd=Math.min(ge,B.value.length);else{var we=B.ownerDocument||document,fe=we&&we.defaultView||window;if(fe.getSelection){var he=fe.getSelection(),ze=B.textContent.length,Me=Math.min($.start,ze),tt=$.end===void 0?Me:Math.min($.end,ze);!he.extend&&Me>tt&&(D=tt,tt=Me,Me=D);var ae=zp(B,Me),re=zp(B,tt);if(ae&&re&&(he.rangeCount!==1||he.anchorNode!==ae.node||he.anchorOffset!==ae.offset||he.focusNode!==re.node||he.focusOffset!==re.offset)){var se=we.createRange();se.setStart(ae.node,ae.offset),he.removeAllRanges(),Me>tt?(he.addRange(se),he.extend(re.node,re.offset)):(se.setEnd(re.node,re.offset),he.addRange(se))}}}}for(we=[],he=B;he=he.parentNode;)he.nodeType===1&&we.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof B.focus=="function"&&B.focus(),B=0;B<we.length;B++){var ve=we[B];ve.element.scrollLeft=ve.left,ve.element.scrollTop=ve.top}}Il=!!uf,df=uf=null}finally{$e=p,w.p=l,W.T=i}}t.current=r,Lt=2}}function Q0(){if(Lt===2){Lt=0;var t=qr,r=ys,i=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||i){i=W.T,W.T=null;var l=w.p;w.p=2;var p=$e;$e|=4;try{k0(t,r.alternate,r)}finally{$e=p,w.p=l,W.T=i}}Lt=3}}function J0(){if(Lt===4||Lt===3){Lt=0,ce();var t=qr,r=ys,i=xs,l=F0;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Lt=5:(Lt=0,ys=qr=null,ey(t,t.pendingLanes));var p=t.pendingLanes;if(p===0&&(Ir=null),gu(i),r=r.stateNode,_e&&typeof _e.onCommitFiberRoot=="function")try{_e.onCommitFiberRoot(xe,r,void 0,(r.current.flags&128)===128)}catch{}if(l!==null){r=W.T,p=w.p,w.p=2,W.T=null;try{for(var y=t.onRecoverableError,D=0;D<l.length;D++){var B=l[D];y(B.value,{componentStack:B.stack})}}finally{W.T=r,w.p=p}}(xs&3)!==0&&Rl(),Qn(t),p=t.pendingLanes,(i&4194090)!==0&&(p&42)!==0?t===Zd?Ri++:(Ri=0,Zd=t):Ri=0,Ci(0)}}function ey(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,di(r)))}function Rl(t){return $0(),Q0(),J0(),ty()}function ty(){if(Lt!==5)return!1;var t=qr,r=Xd;Xd=0;var i=gu(xs),l=W.T,p=w.p;try{w.p=32>i?32:i,W.T=null,i=Wd,Wd=null;var y=qr,D=xs;if(Lt=0,ys=qr=null,xs=0,($e&6)!==0)throw Error(s(331));var B=$e;if($e|=4,U0(y.current),L0(y,y.current,D,i),$e=B,Ci(0,!1),_e&&typeof _e.onPostCommitFiberRoot=="function")try{_e.onPostCommitFiberRoot(xe,y)}catch{}return!0}finally{w.p=p,W.T=l,ey(t,r)}}function ny(t,r,i){r=vn(i,r),r=Nd(t.stateNode,r,2),t=Mr(t,r,2),t!==null&&(Pn(t,2),Qn(t))}function nt(t,r,i){if(t.tag===3)ny(t,t,i);else for(;r!==null;){if(r.tag===3){ny(r,t,i);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ir===null||!Ir.has(l))){t=vn(i,t),i=i0(2),l=Mr(r,i,2),l!==null&&(o0(i,l,r,t),Pn(l,2),Qn(l));break}}r=r.return}}function Jd(t,r,i){var l=t.pingCache;if(l===null){l=t.pingCache=new $S;var p=new Set;l.set(r,p)}else p=l.get(r),p===void 0&&(p=new Set,l.set(r,p));p.has(i)||(Id=!0,p.add(i),t=nj.bind(null,t,r,i),r.then(t,t))}function nj(t,r,i){var l=t.pingCache;l!==null&&l.delete(r),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,st===t&&(We&i)===i&&(yt===4||yt===3&&(We&62914560)===We&&300>G()-Yd?($e&2)===0&&vs(t,0):qd|=i,gs===We&&(gs=0)),Qn(t)}function ry(t,r){r===0&&(r=Bo()),t=ts(t,r),t!==null&&(Pn(t,r),Qn(t))}function rj(t){var r=t.memoizedState,i=0;r!==null&&(i=r.retryLane),ry(t,i)}function aj(t,r){var i=0;switch(t.tag){case 13:var l=t.stateNode,p=t.memoizedState;p!==null&&(i=p.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(s(314))}l!==null&&l.delete(r),ry(t,i)}function sj(t,r){return Re(t,r)}var Cl=null,ws=null,ef=!1,Dl=!1,tf=!1,Sa=0;function Qn(t){t!==ws&&t.next===null&&(ws===null?Cl=ws=t:ws=ws.next=t),Dl=!0,ef||(ef=!0,oj())}function Ci(t,r){if(!tf&&Dl){tf=!0;do for(var i=!1,l=Cl;l!==null;){if(t!==0){var p=l.pendingLanes;if(p===0)var y=0;else{var D=l.suspendedLanes,B=l.pingedLanes;y=(1<<31-He(42|t)+1)-1,y&=p&~(D&~B),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(i=!0,oy(l,y))}else y=We,y=Zt(l,l===st?y:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(y&3)===0||_r(l,y)||(i=!0,oy(l,y));l=l.next}while(i);tf=!1}}function ij(){ay()}function ay(){Dl=ef=!1;var t=0;Sa!==0&&(pj()&&(t=Sa),Sa=0);for(var r=G(),i=null,l=Cl;l!==null;){var p=l.next,y=sy(l,r);y===0?(l.next=null,i===null?Cl=p:i.next=p,p===null&&(ws=i)):(i=l,(t!==0||(y&3)!==0)&&(Dl=!0)),l=p}Ci(t)}function sy(t,r){for(var i=t.suspendedLanes,l=t.pingedLanes,p=t.expirationTimes,y=t.pendingLanes&-62914561;0<y;){var D=31-He(y),B=1<<D,$=p[D];$===-1?((B&i)===0||(B&l)!==0)&&(p[D]=mu(B,r)):$<=r&&(t.expiredLanes|=B),y&=~B}if(r=st,i=We,i=Zt(t,t===r?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===r&&(Qe===2||Qe===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&k(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||_r(t,i)){if(r=i&-i,r===t.callbackPriority)return r;switch(l!==null&&k(l),gu(i)){case 2:case 8:i=pe;break;case 32:i=ye;break;case 268435456:i=je;break;default:i=ye}return l=iy.bind(null,t),i=Re(i,l),t.callbackPriority=r,t.callbackNode=i,r}return l!==null&&l!==null&&k(l),t.callbackPriority=2,t.callbackNode=null,2}function iy(t,r){if(Lt!==0&&Lt!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Rl()&&t.callbackNode!==i)return null;var l=We;return l=Zt(t,t===st?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(H0(t,l,r),sy(t,G()),t.callbackNode!=null&&t.callbackNode===i?iy.bind(null,t):null)}function oy(t,r){if(Rl())return null;H0(t,r,!0)}function oj(){yj(function(){($e&6)!==0?Re(te,ij):ay()})}function nf(){return Sa===0&&(Sa=Uo()),Sa}function ly(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:qo(""+t)}function cy(t,r){var i=r.ownerDocument.createElement("input");return i.name=r.name,i.value=r.value,t.id&&i.setAttribute("form",t.id),r.parentNode.insertBefore(i,r),t=new FormData(t),i.parentNode.removeChild(i),t}function lj(t,r,i,l,p){if(r==="submit"&&i&&i.stateNode===p){var y=ly((p[Kt]||null).action),D=l.submitter;D&&(r=(r=D[Kt]||null)?ly(r.formAction):D.getAttribute("formAction"),r!==null&&(y=r,D=null));var B=new Wo("action","action",null,l,p);t.push({event:B,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Sa!==0){var $=D?cy(p,D):new FormData(p);Sd(i,{pending:!0,data:$,method:p.method,action:y},null,$)}}else typeof y=="function"&&(B.preventDefault(),$=D?cy(p,D):new FormData(p),Sd(i,{pending:!0,data:$,method:p.method,action:y},y,$))},currentTarget:p}]})}}for(var rf=0;rf<Vu.length;rf++){var af=Vu[rf],cj=af.toLowerCase(),uj=af[0].toUpperCase()+af.slice(1);zn(cj,"on"+uj)}zn(Hp,"onAnimationEnd"),zn(Ip,"onAnimationIteration"),zn(qp,"onAnimationStart"),zn("dblclick","onDoubleClick"),zn("focusin","onFocus"),zn("focusout","onBlur"),zn(NS,"onTransitionRun"),zn(_S,"onTransitionStart"),zn(kS,"onTransitionCancel"),zn(Gp,"onTransitionEnd"),Ga("onMouseEnter",["mouseout","mouseover"]),Ga("onMouseLeave",["mouseout","mouseover"]),Ga("onPointerEnter",["pointerout","pointerover"]),Ga("onPointerLeave",["pointerout","pointerover"]),ia("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ia("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ia("onBeforeInput",["compositionend","keypress","textInput","paste"]),ia("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ia("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Di="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(" "),dj=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Di));function uy(t,r){r=(r&4)!==0;for(var i=0;i<t.length;i++){var l=t[i],p=l.event;l=l.listeners;e:{var y=void 0;if(r)for(var D=l.length-1;0<=D;D--){var B=l[D],$=B.instance,le=B.currentTarget;if(B=B.listener,$!==y&&p.isPropagationStopped())break e;y=B,p.currentTarget=le;try{y(p)}catch(ge){bl(ge)}p.currentTarget=null,y=$}else for(D=0;D<l.length;D++){if(B=l[D],$=B.instance,le=B.currentTarget,B=B.listener,$!==y&&p.isPropagationStopped())break e;y=B,p.currentTarget=le;try{y(p)}catch(ge){bl(ge)}p.currentTarget=null,y=$}}}}function Ye(t,r){var i=r[yu];i===void 0&&(i=r[yu]=new Set);var l=t+"__bubble";i.has(l)||(dy(r,t,2,!1),i.add(l))}function sf(t,r,i){var l=0;r&&(l|=4),dy(i,t,l,r)}var Ml="_reactListening"+Math.random().toString(36).slice(2);function of(t){if(!t[Ml]){t[Ml]=!0,ap.forEach(function(i){i!=="selectionchange"&&(dj.has(i)||sf(i,!1,t),sf(i,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Ml]||(r[Ml]=!0,sf("selectionchange",!1,r))}}function dy(t,r,i,l){switch(Ly(r)){case 2:var p=Uj;break;case 8:p=Bj;break;default:p=wf}i=p.bind(null,r,i,t),p=void 0,!_u||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(p=!0),l?p!==void 0?t.addEventListener(r,i,{capture:!0,passive:p}):t.addEventListener(r,i,!0):p!==void 0?t.addEventListener(r,i,{passive:p}):t.addEventListener(r,i,!1)}function lf(t,r,i,l,p){var y=l;if((r&1)===0&&(r&2)===0&&l!==null)e:for(;;){if(l===null)return;var D=l.tag;if(D===3||D===4){var B=l.stateNode.containerInfo;if(B===p)break;if(D===4)for(D=l.return;D!==null;){var $=D.tag;if(($===3||$===4)&&D.stateNode.containerInfo===p)return;D=D.return}for(;B!==null;){if(D=Ha(B),D===null)return;if($=D.tag,$===5||$===6||$===26||$===27){l=y=D;continue e}B=B.parentNode}}l=l.return}xp(function(){var le=y,ge=Au(i),we=[];e:{var fe=Yp.get(t);if(fe!==void 0){var he=Wo,ze=t;switch(t){case"keypress":if(Yo(i)===0)break e;case"keydown":case"keyup":he=sS;break;case"focusin":ze="focus",he=Cu;break;case"focusout":ze="blur",he=Cu;break;case"beforeblur":case"afterblur":he=Cu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=wp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=X2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=lS;break;case Hp:case Ip:case qp:he=K2;break;case Gp:he=uS;break;case"scroll":case"scrollend":he=G2;break;case"wheel":he=fS;break;case"copy":case"cut":case"paste":he=Q2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=jp;break;case"toggle":case"beforetoggle":he=mS}var Me=(r&4)!==0,tt=!Me&&(t==="scroll"||t==="scrollend"),ae=Me?fe!==null?fe+"Capture":null:fe;Me=[];for(var re=le,se;re!==null;){var ve=re;if(se=ve.stateNode,ve=ve.tag,ve!==5&&ve!==26&&ve!==27||se===null||ae===null||(ve=Qs(re,ae),ve!=null&&Me.push(Mi(re,ve,se))),tt)break;re=re.return}0<Me.length&&(fe=new he(fe,ze,null,i,ge),we.push({event:fe,listeners:Me}))}}if((r&7)===0){e:{if(fe=t==="mouseover"||t==="pointerover",he=t==="mouseout"||t==="pointerout",fe&&i!==Tu&&(ze=i.relatedTarget||i.fromElement)&&(Ha(ze)||ze[Va]))break e;if((he||fe)&&(fe=ge.window===ge?ge:(fe=ge.ownerDocument)?fe.defaultView||fe.parentWindow:window,he?(ze=i.relatedTarget||i.toElement,he=le,ze=ze?Ha(ze):null,ze!==null&&(tt=c(ze),Me=ze.tag,ze!==tt||Me!==5&&Me!==27&&Me!==6)&&(ze=null)):(he=null,ze=le),he!==ze)){if(Me=wp,ve="onMouseLeave",ae="onMouseEnter",re="mouse",(t==="pointerout"||t==="pointerover")&&(Me=jp,ve="onPointerLeave",ae="onPointerEnter",re="pointer"),tt=he==null?fe:$s(he),se=ze==null?fe:$s(ze),fe=new Me(ve,re+"leave",he,i,ge),fe.target=tt,fe.relatedTarget=se,ve=null,Ha(ge)===le&&(Me=new Me(ae,re+"enter",ze,i,ge),Me.target=se,Me.relatedTarget=tt,ve=Me),tt=ve,he&&ze)t:{for(Me=he,ae=ze,re=0,se=Me;se;se=Ss(se))re++;for(se=0,ve=ae;ve;ve=Ss(ve))se++;for(;0<re-se;)Me=Ss(Me),re--;for(;0<se-re;)ae=Ss(ae),se--;for(;re--;){if(Me===ae||ae!==null&&Me===ae.alternate)break t;Me=Ss(Me),ae=Ss(ae)}Me=null}else Me=null;he!==null&&fy(we,fe,he,Me,!1),ze!==null&&tt!==null&&fy(we,tt,ze,Me,!0)}}e:{if(fe=le?$s(le):window,he=fe.nodeName&&fe.nodeName.toLowerCase(),he==="select"||he==="input"&&fe.type==="file")var ke=Rp;else if(kp(fe))if(Cp)ke=ES;else{ke=SS;var qe=wS}else he=fe.nodeName,!he||he.toLowerCase()!=="input"||fe.type!=="checkbox"&&fe.type!=="radio"?le&&Eu(le.elementType)&&(ke=Rp):ke=jS;if(ke&&(ke=ke(t,le))){Op(we,ke,i,ge);break e}qe&&qe(t,fe,le),t==="focusout"&&le&&fe.type==="number"&&le.memoizedProps.value!=null&&ju(fe,"number",fe.value)}switch(qe=le?$s(le):window,t){case"focusin":(kp(qe)||qe.contentEditable==="true")&&(Qa=qe,Uu=le,ii=null);break;case"focusout":ii=Uu=Qa=null;break;case"mousedown":Bu=!0;break;case"contextmenu":case"mouseup":case"dragend":Bu=!1,Fp(we,i,ge);break;case"selectionchange":if(AS)break;case"keydown":case"keyup":Fp(we,i,ge)}var De;if(Mu)e:{switch(t){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else $a?Np(t,i)&&(Pe="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Pe="onCompositionStart");Pe&&(Ep&&i.locale!=="ko"&&($a||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&$a&&(De=vp()):(Or=ge,ku="value"in Or?Or.value:Or.textContent,$a=!0)),qe=Ll(le,Pe),0<qe.length&&(Pe=new Sp(Pe,t,null,i,ge),we.push({event:Pe,listeners:qe}),De?Pe.data=De:(De=_p(i),De!==null&&(Pe.data=De)))),(De=gS?yS(t,i):xS(t,i))&&(Pe=Ll(le,"onBeforeInput"),0<Pe.length&&(qe=new Sp("onBeforeInput","beforeinput",null,i,ge),we.push({event:qe,listeners:Pe}),qe.data=De)),lj(we,t,le,i,ge)}uy(we,r)})}function Mi(t,r,i){return{instance:t,listener:r,currentTarget:i}}function Ll(t,r){for(var i=r+"Capture",l=[];t!==null;){var p=t,y=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||y===null||(p=Qs(t,i),p!=null&&l.unshift(Mi(t,p,y)),p=Qs(t,r),p!=null&&l.push(Mi(t,p,y))),t.tag===3)return l;t=t.return}return[]}function Ss(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function fy(t,r,i,l,p){for(var y=r._reactName,D=[];i!==null&&i!==l;){var B=i,$=B.alternate,le=B.stateNode;if(B=B.tag,$!==null&&$===l)break;B!==5&&B!==26&&B!==27||le===null||($=le,p?(le=Qs(i,y),le!=null&&D.unshift(Mi(i,le,$))):p||(le=Qs(i,y),le!=null&&D.push(Mi(i,le,$)))),i=i.return}D.length!==0&&t.push({event:r,listeners:D})}var fj=/\r\n?/g,hj=/\u0000|\uFFFD/g;function hy(t){return(typeof t=="string"?t:""+t).replace(fj,`
`).replace(hj,"")}function my(t,r){return r=hy(r),hy(t)===r}function Pl(){}function et(t,r,i,l,p,y){switch(i){case"children":typeof l=="string"?r==="body"||r==="textarea"&&l===""||Wa(t,l):(typeof l=="number"||typeof l=="bigint")&&r!=="body"&&Wa(t,""+l);break;case"className":Vo(t,"class",l);break;case"tabIndex":Vo(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Vo(t,i,l);break;case"style":gp(t,l,y);break;case"data":if(r!=="object"){Vo(t,"data",l);break}case"src":case"href":if(l===""&&(r!=="a"||i!=="href")){t.removeAttribute(i);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=qo(""+l),t.setAttribute(i,l);break;case"action":case"formAction":if(typeof l=="function"){t.setAttribute(i,"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 y=="function"&&(i==="formAction"?(r!=="input"&&et(t,r,"name",p.name,p,null),et(t,r,"formEncType",p.formEncType,p,null),et(t,r,"formMethod",p.formMethod,p,null),et(t,r,"formTarget",p.formTarget,p,null)):(et(t,r,"encType",p.encType,p,null),et(t,r,"method",p.method,p,null),et(t,r,"target",p.target,p,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=qo(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=Pl);break;case"onScroll":l!=null&&Ye("scroll",t);break;case"onScrollEnd":l!=null&&Ye("scrollend",t);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(i=l.__html,i!=null){if(p.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}i=qo(""+l),t.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""+l):t.removeAttribute(i);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":l&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,""):t.removeAttribute(i);break;case"capture":case"download":l===!0?t.setAttribute(i,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(i,l):t.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(i,l):t.removeAttribute(i);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(i):t.setAttribute(i,l);break;case"popover":Ye("beforetoggle",t),Ye("toggle",t),Fo(t,"popover",l);break;case"xlinkActuate":ar(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ar(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ar(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ar(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ar(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ar(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ar(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ar(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ar(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Fo(t,"is",l);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=I2.get(i)||i,Fo(t,i,l))}}function cf(t,r,i,l,p,y){switch(i){case"style":gp(t,l,y);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(s(61));if(i=l.__html,i!=null){if(p.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"children":typeof l=="string"?Wa(t,l):(typeof l=="number"||typeof l=="bigint")&&Wa(t,""+l);break;case"onScroll":l!=null&&Ye("scroll",t);break;case"onScrollEnd":l!=null&&Ye("scrollend",t);break;case"onClick":l!=null&&(t.onclick=Pl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!sp.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(p=i.endsWith("Capture"),r=i.slice(2,p?i.length-7:void 0),y=t[Kt]||null,y=y!=null?y[i]:null,typeof y=="function"&&t.removeEventListener(r,y,p),typeof l=="function")){typeof y!="function"&&y!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(r,l,p);break e}i in t?t[i]=l:l===!0?t.setAttribute(i,""):Fo(t,i,l)}}}function Pt(t,r,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ye("error",t),Ye("load",t);var l=!1,p=!1,y;for(y in i)if(i.hasOwnProperty(y)){var D=i[y];if(D!=null)switch(y){case"src":l=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:et(t,r,y,D,i,null)}}p&&et(t,r,"srcSet",i.srcSet,i,null),l&&et(t,r,"src",i.src,i,null);return;case"input":Ye("invalid",t);var B=y=D=p=null,$=null,le=null;for(l in i)if(i.hasOwnProperty(l)){var ge=i[l];if(ge!=null)switch(l){case"name":p=ge;break;case"type":D=ge;break;case"checked":$=ge;break;case"defaultChecked":le=ge;break;case"value":y=ge;break;case"defaultValue":B=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(s(137,r));break;default:et(t,r,l,ge,i,null)}}fp(t,y,B,$,le,D,p,!1),Ho(t);return;case"select":Ye("invalid",t),l=D=y=null;for(p in i)if(i.hasOwnProperty(p)&&(B=i[p],B!=null))switch(p){case"value":y=B;break;case"defaultValue":D=B;break;case"multiple":l=B;default:et(t,r,p,B,i,null)}r=y,i=D,t.multiple=!!l,r!=null?Xa(t,!!l,r,!1):i!=null&&Xa(t,!!l,i,!0);return;case"textarea":Ye("invalid",t),y=p=l=null;for(D in i)if(i.hasOwnProperty(D)&&(B=i[D],B!=null))switch(D){case"value":l=B;break;case"defaultValue":p=B;break;case"children":y=B;break;case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(91));break;default:et(t,r,D,B,i,null)}mp(t,l,p,y),Ho(t);return;case"option":for($ in i)if(i.hasOwnProperty($)&&(l=i[$],l!=null))switch($){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:et(t,r,$,l,i,null)}return;case"dialog":Ye("beforetoggle",t),Ye("toggle",t),Ye("cancel",t),Ye("close",t);break;case"iframe":case"object":Ye("load",t);break;case"video":case"audio":for(l=0;l<Di.length;l++)Ye(Di[l],t);break;case"image":Ye("error",t),Ye("load",t);break;case"details":Ye("toggle",t);break;case"embed":case"source":case"link":Ye("error",t),Ye("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(le in i)if(i.hasOwnProperty(le)&&(l=i[le],l!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:et(t,r,le,l,i,null)}return;default:if(Eu(r)){for(ge in i)i.hasOwnProperty(ge)&&(l=i[ge],l!==void 0&&cf(t,r,ge,l,i,void 0));return}}for(B in i)i.hasOwnProperty(B)&&(l=i[B],l!=null&&et(t,r,B,l,i,null))}function mj(t,r,i,l){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,y=null,D=null,B=null,$=null,le=null,ge=null;for(he in i){var we=i[he];if(i.hasOwnProperty(he)&&we!=null)switch(he){case"checked":break;case"value":break;case"defaultValue":$=we;default:l.hasOwnProperty(he)||et(t,r,he,null,l,we)}}for(var fe in l){var he=l[fe];if(we=i[fe],l.hasOwnProperty(fe)&&(he!=null||we!=null))switch(fe){case"type":y=he;break;case"name":p=he;break;case"checked":le=he;break;case"defaultChecked":ge=he;break;case"value":D=he;break;case"defaultValue":B=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(s(137,r));break;default:he!==we&&et(t,r,fe,he,l,we)}}Su(t,D,B,$,le,ge,y,p);return;case"select":he=D=B=fe=null;for(y in i)if($=i[y],i.hasOwnProperty(y)&&$!=null)switch(y){case"value":break;case"multiple":he=$;default:l.hasOwnProperty(y)||et(t,r,y,null,l,$)}for(p in l)if(y=l[p],$=i[p],l.hasOwnProperty(p)&&(y!=null||$!=null))switch(p){case"value":fe=y;break;case"defaultValue":B=y;break;case"multiple":D=y;default:y!==$&&et(t,r,p,y,l,$)}r=B,i=D,l=he,fe!=null?Xa(t,!!i,fe,!1):!!l!=!!i&&(r!=null?Xa(t,!!i,r,!0):Xa(t,!!i,i?[]:"",!1));return;case"textarea":he=fe=null;for(B in i)if(p=i[B],i.hasOwnProperty(B)&&p!=null&&!l.hasOwnProperty(B))switch(B){case"value":break;case"children":break;default:et(t,r,B,null,l,p)}for(D in l)if(p=l[D],y=i[D],l.hasOwnProperty(D)&&(p!=null||y!=null))switch(D){case"value":fe=p;break;case"defaultValue":he=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(s(91));break;default:p!==y&&et(t,r,D,p,l,y)}hp(t,fe,he);return;case"option":for(var ze in i)if(fe=i[ze],i.hasOwnProperty(ze)&&fe!=null&&!l.hasOwnProperty(ze))switch(ze){case"selected":t.selected=!1;break;default:et(t,r,ze,null,l,fe)}for($ in l)if(fe=l[$],he=i[$],l.hasOwnProperty($)&&fe!==he&&(fe!=null||he!=null))switch($){case"selected":t.selected=fe&&typeof fe!="function"&&typeof fe!="symbol";break;default:et(t,r,$,fe,l,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 Me in i)fe=i[Me],i.hasOwnProperty(Me)&&fe!=null&&!l.hasOwnProperty(Me)&&et(t,r,Me,null,l,fe);for(le in l)if(fe=l[le],he=i[le],l.hasOwnProperty(le)&&fe!==he&&(fe!=null||he!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(fe!=null)throw Error(s(137,r));break;default:et(t,r,le,fe,l,he)}return;default:if(Eu(r)){for(var tt in i)fe=i[tt],i.hasOwnProperty(tt)&&fe!==void 0&&!l.hasOwnProperty(tt)&&cf(t,r,tt,void 0,l,fe);for(ge in l)fe=l[ge],he=i[ge],!l.hasOwnProperty(ge)||fe===he||fe===void 0&&he===void 0||cf(t,r,ge,fe,l,he);return}}for(var ae in i)fe=i[ae],i.hasOwnProperty(ae)&&fe!=null&&!l.hasOwnProperty(ae)&&et(t,r,ae,null,l,fe);for(we in l)fe=l[we],he=i[we],!l.hasOwnProperty(we)||fe===he||fe==null&&he==null||et(t,r,we,fe,l,he)}var uf=null,df=null;function zl(t){return t.nodeType===9?t:t.ownerDocument}function py(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function gy(t,r){if(t===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&r==="foreignObject"?0:t}function ff(t,r){return t==="textarea"||t==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var hf=null;function pj(){var t=window.event;return t&&t.type==="popstate"?t===hf?!1:(hf=t,!0):(hf=null,!1)}var yy=typeof setTimeout=="function"?setTimeout:void 0,gj=typeof clearTimeout=="function"?clearTimeout:void 0,xy=typeof Promise=="function"?Promise:void 0,yj=typeof queueMicrotask=="function"?queueMicrotask:typeof xy<"u"?function(t){return xy.resolve(null).then(t).catch(xj)}:yy;function xj(t){setTimeout(function(){throw t})}function Yr(t){return t==="head"}function vy(t,r){var i=r,l=0,p=0;do{var y=i.nextSibling;if(t.removeChild(i),y&&y.nodeType===8)if(i=y.data,i==="/$"){if(0<l&&8>l){i=l;var D=t.ownerDocument;if(i&1&&Li(D.documentElement),i&2&&Li(D.body),i&4)for(i=D.head,Li(i),D=i.firstChild;D;){var B=D.nextSibling,$=D.nodeName;D[Ks]||$==="SCRIPT"||$==="STYLE"||$==="LINK"&&D.rel.toLowerCase()==="stylesheet"||i.removeChild(D),D=B}}if(p===0){t.removeChild(y),Ii(r);return}p--}else i==="$"||i==="$?"||i==="$!"?p++:l=i.charCodeAt(0)-48;else l=0;i=y}while(i);Ii(r)}function mf(t){var r=t.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var i=r;switch(r=r.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":mf(i),xu(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function vj(t,r,i,l){for(;t.nodeType===1;){var p=i;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Ks])switch(r){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(y=t.getAttribute("rel"),y==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(y!==p.rel||t.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||t.getAttribute("title")!==(p.title==null?null:p.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(y=t.getAttribute("src"),(y!==(p.src==null?null:p.src)||t.getAttribute("type")!==(p.type==null?null:p.type)||t.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&y&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var y=p.name==null?null:""+p.name;if(p.type==="hidden"&&t.getAttribute("name")===y)return t}else return t;if(t=Bn(t.nextSibling),t===null)break}return null}function bj(t,r,i){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Bn(t.nextSibling),t===null))return null;return t}function pf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function wj(t,r){var i=t.ownerDocument;if(t.data!=="$?"||i.readyState==="complete")r();else{var l=function(){r(),i.removeEventListener("DOMContentLoaded",l)};i.addEventListener("DOMContentLoaded",l),t._reactRetry=l}}function Bn(t){for(;t!=null;t=t.nextSibling){var r=t.nodeType;if(r===1||r===3)break;if(r===8){if(r=t.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return t}var gf=null;function by(t){t=t.previousSibling;for(var r=0;t;){if(t.nodeType===8){var i=t.data;if(i==="$"||i==="$!"||i==="$?"){if(r===0)return t;r--}else i==="/$"&&r++}t=t.previousSibling}return null}function wy(t,r,i){switch(r=zl(i),t){case"html":if(t=r.documentElement,!t)throw Error(s(452));return t;case"head":if(t=r.head,!t)throw Error(s(453));return t;case"body":if(t=r.body,!t)throw Error(s(454));return t;default:throw Error(s(451))}}function Li(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);xu(t)}var Tn=new Map,Sy=new Set;function Ul(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var xr=w.d;w.d={f:Sj,r:jj,D:Ej,C:Tj,L:Aj,m:Nj,X:kj,S:_j,M:Oj};function Sj(){var t=xr.f(),r=kl();return t||r}function jj(t){var r=Ia(t);r!==null&&r.tag===5&&r.type==="form"?Hg(r):xr.r(t)}var js=typeof document>"u"?null:document;function jy(t,r,i){var l=js;if(l&&typeof r=="string"&&r){var p=xn(r);p='link[rel="'+t+'"][href="'+p+'"]',typeof i=="string"&&(p+='[crossorigin="'+i+'"]'),Sy.has(p)||(Sy.add(p),t={rel:t,crossOrigin:i,href:r},l.querySelector(p)===null&&(r=l.createElement("link"),Pt(r,"link",t),Ot(r),l.head.appendChild(r)))}}function Ej(t){xr.D(t),jy("dns-prefetch",t,null)}function Tj(t,r){xr.C(t,r),jy("preconnect",t,r)}function Aj(t,r,i){xr.L(t,r,i);var l=js;if(l&&t&&r){var p='link[rel="preload"][as="'+xn(r)+'"]';r==="image"&&i&&i.imageSrcSet?(p+='[imagesrcset="'+xn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(p+='[imagesizes="'+xn(i.imageSizes)+'"]')):p+='[href="'+xn(t)+'"]';var y=p;switch(r){case"style":y=Es(t);break;case"script":y=Ts(t)}Tn.has(y)||(t=g({rel:"preload",href:r==="image"&&i&&i.imageSrcSet?void 0:t,as:r},i),Tn.set(y,t),l.querySelector(p)!==null||r==="style"&&l.querySelector(Pi(y))||r==="script"&&l.querySelector(zi(y))||(r=l.createElement("link"),Pt(r,"link",t),Ot(r),l.head.appendChild(r)))}}function Nj(t,r){xr.m(t,r);var i=js;if(i&&t){var l=r&&typeof r.as=="string"?r.as:"script",p='link[rel="modulepreload"][as="'+xn(l)+'"][href="'+xn(t)+'"]',y=p;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Ts(t)}if(!Tn.has(y)&&(t=g({rel:"modulepreload",href:t},r),Tn.set(y,t),i.querySelector(p)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(zi(y)))return}l=i.createElement("link"),Pt(l,"link",t),Ot(l),i.head.appendChild(l)}}}function _j(t,r,i){xr.S(t,r,i);var l=js;if(l&&t){var p=qa(l).hoistableStyles,y=Es(t);r=r||"default";var D=p.get(y);if(!D){var B={loading:0,preload:null};if(D=l.querySelector(Pi(y)))B.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":r},i),(i=Tn.get(y))&&yf(t,i);var $=D=l.createElement("link");Ot($),Pt($,"link",t),$._p=new Promise(function(le,ge){$.onload=le,$.onerror=ge}),$.addEventListener("load",function(){B.loading|=1}),$.addEventListener("error",function(){B.loading|=2}),B.loading|=4,Bl(D,r,l)}D={type:"stylesheet",instance:D,count:1,state:B},p.set(y,D)}}}function kj(t,r){xr.X(t,r);var i=js;if(i&&t){var l=qa(i).hoistableScripts,p=Ts(t),y=l.get(p);y||(y=i.querySelector(zi(p)),y||(t=g({src:t,async:!0},r),(r=Tn.get(p))&&xf(t,r),y=i.createElement("script"),Ot(y),Pt(y,"link",t),i.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},l.set(p,y))}}function Oj(t,r){xr.M(t,r);var i=js;if(i&&t){var l=qa(i).hoistableScripts,p=Ts(t),y=l.get(p);y||(y=i.querySelector(zi(p)),y||(t=g({src:t,async:!0,type:"module"},r),(r=Tn.get(p))&&xf(t,r),y=i.createElement("script"),Ot(y),Pt(y,"link",t),i.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},l.set(p,y))}}function Ey(t,r,i,l){var p=(p=ie.current)?Ul(p):null;if(!p)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(r=Es(i.href),i=qa(p).hoistableStyles,l=i.get(r),l||(l={type:"style",instance:null,count:0,state:null},i.set(r,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){t=Es(i.href);var y=qa(p).hoistableStyles,D=y.get(t);if(D||(p=p.ownerDocument||p,D={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(t,D),(y=p.querySelector(Pi(t)))&&!y._p&&(D.instance=y,D.state.loading=5),Tn.has(t)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Tn.set(t,i),y||Rj(p,t,i,D.state))),r&&l===null)throw Error(s(528,""));return D}if(r&&l!==null)throw Error(s(529,""));return null;case"script":return r=i.async,i=i.src,typeof i=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Ts(i),i=qa(p).hoistableScripts,l=i.get(r),l||(l={type:"script",instance:null,count:0,state:null},i.set(r,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,t))}}function Es(t){return'href="'+xn(t)+'"'}function Pi(t){return'link[rel="stylesheet"]['+t+"]"}function Ty(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function Rj(t,r,i,l){t.querySelector('link[rel="preload"][as="style"]['+r+"]")?l.loading=1:(r=t.createElement("link"),l.preload=r,r.addEventListener("load",function(){return l.loading|=1}),r.addEventListener("error",function(){return l.loading|=2}),Pt(r,"link",i),Ot(r),t.head.appendChild(r))}function Ts(t){return'[src="'+xn(t)+'"]'}function zi(t){return"script[async]"+t}function Ay(t,r,i){if(r.count++,r.instance===null)switch(r.type){case"style":var l=t.querySelector('style[data-href~="'+xn(i.href)+'"]');if(l)return r.instance=l,Ot(l),l;var p=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),Ot(l),Pt(l,"style",p),Bl(l,i.precedence,t),r.instance=l;case"stylesheet":p=Es(i.href);var y=t.querySelector(Pi(p));if(y)return r.state.loading|=4,r.instance=y,Ot(y),y;l=Ty(i),(p=Tn.get(p))&&yf(l,p),y=(t.ownerDocument||t).createElement("link"),Ot(y);var D=y;return D._p=new Promise(function(B,$){D.onload=B,D.onerror=$}),Pt(y,"link",l),r.state.loading|=4,Bl(y,i.precedence,t),r.instance=y;case"script":return y=Ts(i.src),(p=t.querySelector(zi(y)))?(r.instance=p,Ot(p),p):(l=i,(p=Tn.get(y))&&(l=g({},i),xf(l,p)),t=t.ownerDocument||t,p=t.createElement("script"),Ot(p),Pt(p,"link",l),t.head.appendChild(p),r.instance=p);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(l=r.instance,r.state.loading|=4,Bl(l,i.precedence,t));return r.instance}function Bl(t,r,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=l.length?l[l.length-1]:null,y=p,D=0;D<l.length;D++){var B=l[D];if(B.dataset.precedence===r)y=B;else if(y!==p)break}y?y.parentNode.insertBefore(t,y.nextSibling):(r=i.nodeType===9?i.head:i,r.insertBefore(t,r.firstChild))}function yf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function xf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var Fl=null;function Ny(t,r,i){if(Fl===null){var l=new Map,p=Fl=new Map;p.set(i,l)}else p=Fl,l=p.get(i),l||(l=new Map,p.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),p=0;p<i.length;p++){var y=i[p];if(!(y[Ks]||y[Bt]||t==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var D=y.getAttribute(r)||"";D=t+D;var B=l.get(D);B?B.push(y):l.set(D,[y])}}return l}function _y(t,r,i){t=t.ownerDocument||t,t.head.insertBefore(i,r==="title"?t.querySelector("head > title"):null)}function Cj(t,r,i){if(i===1||r.itemProp!=null)return!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return t=r.disabled,typeof r.precedence=="string"&&t==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function ky(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Ui=null;function Dj(){}function Mj(t,r,i){if(Ui===null)throw Error(s(475));var l=Ui;if(r.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var p=Es(i.href),y=t.querySelector(Pi(p));if(y){t=y._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Vl.bind(l),t.then(l,l)),r.state.loading|=4,r.instance=y,Ot(y);return}y=t.ownerDocument||t,i=Ty(i),(p=Tn.get(p))&&yf(i,p),y=y.createElement("link"),Ot(y);var D=y;D._p=new Promise(function(B,$){D.onload=B,D.onerror=$}),Pt(y,"link",i),r.instance=y}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(r,t),(t=r.state.preload)&&(r.state.loading&3)===0&&(l.count++,r=Vl.bind(l),t.addEventListener("load",r),t.addEventListener("error",r))}}function Lj(){if(Ui===null)throw Error(s(475));var t=Ui;return t.stylesheets&&t.count===0&&vf(t,t.stylesheets),0<t.count?function(r){var i=setTimeout(function(){if(t.stylesheets&&vf(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=r,function(){t.unsuspend=null,clearTimeout(i)}}:null}function Vl(){if(this.count--,this.count===0){if(this.stylesheets)vf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Hl=null;function vf(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Hl=new Map,r.forEach(Pj,t),Hl=null,Vl.call(t))}function Pj(t,r){if(!(r.state.loading&4)){var i=Hl.get(t);if(i)var l=i.get(null);else{i=new Map,Hl.set(t,i);for(var p=t.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<p.length;y++){var D=p[y];(D.nodeName==="LINK"||D.getAttribute("media")!=="not all")&&(i.set(D.dataset.precedence,D),l=D)}l&&i.set(null,l)}p=r.instance,D=p.getAttribute("data-precedence"),y=i.get(D)||l,y===l&&i.set(null,p),i.set(D,p),this.count++,l=Vl.bind(this),p.addEventListener("load",l),p.addEventListener("error",l),y?y.parentNode.insertBefore(p,y.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(p,t.firstChild)),r.state.loading|=4}}var Bi={$$typeof:L,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function zj(t,r,i,l,p,y,D,B){this.tag=1,this.containerInfo=t,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=Ba(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ba(0),this.hiddenUpdates=Ba(null),this.identifierPrefix=l,this.onUncaughtError=p,this.onCaughtError=y,this.onRecoverableError=D,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=B,this.incompleteTransitions=new Map}function Oy(t,r,i,l,p,y,D,B,$,le,ge,we){return t=new zj(t,r,i,D,B,$,le,we),r=1,y===!0&&(r|=24),y=on(3,null,null,r),t.current=y,y.stateNode=t,r=Ju(),r.refCount++,t.pooledCache=r,r.refCount++,y.memoizedState={element:l,isDehydrated:i,cache:r},rd(y),t}function Ry(t){return t?(t=ns,t):ns}function Cy(t,r,i,l,p,y){p=Ry(p),l.context===null?l.context=p:l.pendingContext=p,l=Dr(r),l.payload={element:i},y=y===void 0?null:y,y!==null&&(l.callback=y),i=Mr(t,l,r),i!==null&&(fn(i,t,r),pi(i,t,r))}function Dy(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<r?i:r}}function bf(t,r){Dy(t,r),(t=t.alternate)&&Dy(t,r)}function My(t){if(t.tag===13){var r=ts(t,67108864);r!==null&&fn(r,t,67108864),bf(t,67108864)}}var Il=!0;function Uj(t,r,i,l){var p=W.T;W.T=null;var y=w.p;try{w.p=2,wf(t,r,i,l)}finally{w.p=y,W.T=p}}function Bj(t,r,i,l){var p=W.T;W.T=null;var y=w.p;try{w.p=8,wf(t,r,i,l)}finally{w.p=y,W.T=p}}function wf(t,r,i,l){if(Il){var p=Sf(l);if(p===null)lf(t,r,l,ql,i),Py(t,l);else if(Vj(p,t,r,i,l))l.stopPropagation();else if(Py(t,l),r&4&&-1<Fj.indexOf(t)){for(;p!==null;){var y=Ia(p);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var D=Ln(y.pendingLanes);if(D!==0){var B=y;for(B.pendingLanes|=2,B.entangledLanes|=2;D;){var $=1<<31-He(D);B.entanglements[1]|=$,D&=~$}Qn(y),($e&6)===0&&(Nl=G()+500,Ci(0))}}break;case 13:B=ts(y,2),B!==null&&fn(B,y,2),kl(),bf(y,2)}if(y=Sf(l),y===null&&lf(t,r,l,ql,i),y===p)break;p=y}p!==null&&l.stopPropagation()}else lf(t,r,l,null,i)}}function Sf(t){return t=Au(t),jf(t)}var ql=null;function jf(t){if(ql=null,t=Ha(t),t!==null){var r=c(t);if(r===null)t=null;else{var i=r.tag;if(i===13){if(t=u(r),t!==null)return t;t=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;t=null}else r!==t&&(t=null)}}return ql=t,null}function Ly(t){switch(t){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(Y()){case te:return 2;case pe:return 8;case ye:case oe:return 32;case je:return 268435456;default:return 32}default:return 32}}var Ef=!1,Xr=null,Wr=null,Zr=null,Fi=new Map,Vi=new Map,Kr=[],Fj="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 Py(t,r){switch(t){case"focusin":case"focusout":Xr=null;break;case"dragenter":case"dragleave":Wr=null;break;case"mouseover":case"mouseout":Zr=null;break;case"pointerover":case"pointerout":Fi.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vi.delete(r.pointerId)}}function Hi(t,r,i,l,p,y){return t===null||t.nativeEvent!==y?(t={blockedOn:r,domEventName:i,eventSystemFlags:l,nativeEvent:y,targetContainers:[p]},r!==null&&(r=Ia(r),r!==null&&My(r)),t):(t.eventSystemFlags|=l,r=t.targetContainers,p!==null&&r.indexOf(p)===-1&&r.push(p),t)}function Vj(t,r,i,l,p){switch(r){case"focusin":return Xr=Hi(Xr,t,r,i,l,p),!0;case"dragenter":return Wr=Hi(Wr,t,r,i,l,p),!0;case"mouseover":return Zr=Hi(Zr,t,r,i,l,p),!0;case"pointerover":var y=p.pointerId;return Fi.set(y,Hi(Fi.get(y)||null,t,r,i,l,p)),!0;case"gotpointercapture":return y=p.pointerId,Vi.set(y,Hi(Vi.get(y)||null,t,r,i,l,p)),!0}return!1}function zy(t){var r=Ha(t.target);if(r!==null){var i=c(r);if(i!==null){if(r=i.tag,r===13){if(r=u(i),r!==null){t.blockedOn=r,M2(t.priority,function(){if(i.tag===13){var l=dn();l=pu(l);var p=ts(i,l);p!==null&&fn(p,i,l),bf(i,l)}});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){t.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Gl(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var i=Sf(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);Tu=l,i.target.dispatchEvent(l),Tu=null}else return r=Ia(i),r!==null&&My(r),t.blockedOn=i,!1;r.shift()}return!0}function Uy(t,r,i){Gl(t)&&i.delete(r)}function Hj(){Ef=!1,Xr!==null&&Gl(Xr)&&(Xr=null),Wr!==null&&Gl(Wr)&&(Wr=null),Zr!==null&&Gl(Zr)&&(Zr=null),Fi.forEach(Uy),Vi.forEach(Uy)}function Yl(t,r){t.blockedOn===r&&(t.blockedOn=null,Ef||(Ef=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,Hj)))}var Xl=null;function By(t){Xl!==t&&(Xl=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Xl===t&&(Xl=null);for(var r=0;r<t.length;r+=3){var i=t[r],l=t[r+1],p=t[r+2];if(typeof l!="function"){if(jf(l||i)===null)continue;break}var y=Ia(i);y!==null&&(t.splice(r,3),r-=3,Sd(y,{pending:!0,data:p,method:i.method,action:l},l,p))}}))}function Ii(t){function r($){return Yl($,t)}Xr!==null&&Yl(Xr,t),Wr!==null&&Yl(Wr,t),Zr!==null&&Yl(Zr,t),Fi.forEach(r),Vi.forEach(r);for(var i=0;i<Kr.length;i++){var l=Kr[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Kr.length&&(i=Kr[0],i.blockedOn===null);)zy(i),i.blockedOn===null&&Kr.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var p=i[l],y=i[l+1],D=p[Kt]||null;if(typeof y=="function")D||By(i);else if(D){var B=null;if(y&&y.hasAttribute("formAction")){if(p=y,D=y[Kt]||null)B=D.formAction;else if(jf(p)!==null)continue}else B=D.action;typeof B=="function"?i[l+1]=B:(i.splice(l,3),l-=3),By(i)}}}function Tf(t){this._internalRoot=t}Wl.prototype.render=Tf.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(s(409));var i=r.current,l=dn();Cy(i,l,t,r,null,null)},Wl.prototype.unmount=Tf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;Cy(t.current,2,null,t,null,null),kl(),r[Va]=null}};function Wl(t){this._internalRoot=t}Wl.prototype.unstable_scheduleHydration=function(t){if(t){var r=np();t={blockedOn:null,target:t,priority:r};for(var i=0;i<Kr.length&&r!==0&&r<Kr[i].priority;i++);Kr.splice(i,0,t),i===0&&zy(t)}};var Fy=n.version;if(Fy!=="19.1.0")throw Error(s(527,Fy,"19.1.0"));w.findDOMNode=function(t){var r=t._reactInternals;if(r===void 0)throw typeof t.render=="function"?Error(s(188)):(t=Object.keys(t).join(","),Error(s(268,t)));return t=h(r),t=t!==null?m(t):null,t=t===null?null:t.stateNode,t};var Ij={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zl.isDisabled&&Zl.supportsFiber)try{xe=Zl.inject(Ij),_e=Zl}catch{}}return Gi.createRoot=function(t,r){if(!o(t))throw Error(s(299));var i=!1,l="",p=n0,y=r0,D=a0,B=null;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(y=r.onCaughtError),r.onRecoverableError!==void 0&&(D=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(B=r.unstable_transitionCallbacks)),r=Oy(t,1,!1,null,null,i,l,p,y,D,B,null),t[Va]=r.current,of(t),new Tf(r)},Gi.hydrateRoot=function(t,r,i){if(!o(t))throw Error(s(299));var l=!1,p="",y=n0,D=r0,B=a0,$=null,le=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(p=i.identifierPrefix),i.onUncaughtError!==void 0&&(y=i.onUncaughtError),i.onCaughtError!==void 0&&(D=i.onCaughtError),i.onRecoverableError!==void 0&&(B=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&($=i.unstable_transitionCallbacks),i.formState!==void 0&&(le=i.formState)),r=Oy(t,1,!0,r,i??null,l,p,y,D,B,$,le),r.context=Ry(null),i=r.current,l=dn(),l=pu(l),p=Dr(l),p.callback=null,Mr(i,p,l),i=l,r.current.lanes=i,Pn(r,i),Qn(r),t[Va]=r.current,of(t),new Wl(r)},Gi.version="19.1.0",Gi}var Ky;function e3(){if(Ky)return _f.exports;Ky=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(n){console.error(n)}}return e(),_f.exports=Jj(),_f.exports}var t3=e3(),Cf={exports:{}},Df={};/**
* @license React
* use-sync-external-store-with-selector.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 $y;function n3(){if($y)return Df;$y=1;var e=Cn();function n(h,m){return h===m&&(h!==0||1/h===1/m)||h!==h&&m!==m}var a=typeof Object.is=="function"?Object.is:n,s=e.useSyncExternalStore,o=e.useRef,c=e.useEffect,u=e.useMemo,f=e.useDebugValue;return Df.useSyncExternalStoreWithSelector=function(h,m,g,x,b){var E=o(null);if(E.current===null){var _={hasValue:!1,value:null};E.current=_}else _=E.current;E=u(function(){function A(N){if(!T){if(T=!0,C=N,N=x(N),b!==void 0&&_.hasValue){var z=_.value;if(b(z,N))return L=z}return L=N}if(z=L,a(C,N))return z;var F=x(N);return b!==void 0&&b(z,F)?(C=N,z):(C=N,L=F)}var T=!1,C,L,q=g===void 0?null:g;return[function(){return A(m())},q===null?void 0:function(){return A(q())}]},[m,g,x,b]);var S=s(h,E[0],E[1]);return c(function(){_.hasValue=!0,_.value=S},[S]),f(S),S},Df}var Qy;function r3(){return Qy||(Qy=1,Cf.exports=n3()),Cf.exports}var a3=r3();function s3(e){e()}function i3(){let e=null,n=null;return{clear(){e=null,n=null},notify(){s3(()=>{let a=e;for(;a;)a.callback(),a=a.next})},get(){const a=[];let s=e;for(;s;)a.push(s),s=s.next;return a},subscribe(a){let s=!0;const o=n={callback:a,next:null,prev:n};return o.prev?o.prev.next=o:e=o,function(){!s||e===null||(s=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Jy={notify(){},get:()=>[]};function o3(e,n){let a,s=Jy,o=0,c=!1;function u(S){g();const A=s.subscribe(S);let T=!1;return()=>{T||(T=!0,A(),x())}}function f(){s.notify()}function h(){_.onStateChange&&_.onStateChange()}function m(){return c}function g(){o++,a||(a=e.subscribe(h),s=i3())}function x(){o--,a&&o===0&&(a(),a=void 0,s.clear(),s=Jy)}function b(){c||(c=!0,g())}function E(){c&&(c=!1,x())}const _={addNestedSub:u,notifyNestedSubs:f,handleChangeWrapper:h,isSubscribed:m,trySubscribe:b,tryUnsubscribe:E,getListeners:()=>s};return _}var l3=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",c3=l3(),u3=()=>typeof navigator<"u"&&navigator.product==="ReactNative",d3=u3(),f3=()=>c3||d3?X.useLayoutEffect:X.useEffect,h3=f3(),m3=Symbol.for("react-redux-context"),p3=typeof globalThis<"u"?globalThis:{};function g3(){if(!X.createContext)return{};const e=p3[m3]??=new Map;let n=e.get(X.createContext);return n||(n=X.createContext(null),e.set(X.createContext,n)),n}var ea=g3();function y3(e){const{children:n,context:a,serverState:s,store:o}=e,c=X.useMemo(()=>{const h=o3(o);return{store:o,subscription:h,getServerState:s?()=>s:void 0}},[o,s]),u=X.useMemo(()=>o.getState(),[o]);h3(()=>{const{subscription:h}=c;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),u!==o.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[c,u]);const f=a||ea;return X.createElement(f.Provider,{value:c},n)}var x3=y3;function om(e=ea){return function(){return X.useContext(e)}}var xb=om();function vb(e=ea){const n=e===ea?xb:om(e),a=()=>{const{store:s}=n();return s};return Object.assign(a,{withTypes:()=>a}),a}var v3=vb();function b3(e=ea){const n=e===ea?v3:vb(e),a=()=>n().dispatch;return Object.assign(a,{withTypes:()=>a}),a}var In=b3(),w3=(e,n)=>e===n;function S3(e=ea){const n=e===ea?xb:om(e),a=(s,o={})=>{const{equalityFn:c=w3}=typeof o=="function"?{equalityFn:o}:o,u=n(),{store:f,subscription:h,getServerState:m}=u;X.useRef(!0);const g=X.useCallback({[s.name](b){return s(b)}}[s.name],[s]),x=a3.useSyncExternalStoreWithSelector(h.addNestedSub,f.getState,m||f.getState,g,c);return X.useDebugValue(x),x};return Object.assign(a,{withTypes:()=>a}),a}var Xe=S3();let j3={data:""},E3=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||j3,T3=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,A3=/\/\*[^]*?\*\/| +/g,ex=/\n+/g,Jr=(e,n)=>{let a="",s="",o="";for(let c in e){let u=e[c];c[0]=="@"?c[1]=="i"?a=c+" "+u+";":s+=c[1]=="f"?Jr(u,c):c+"{"+Jr(u,c[1]=="k"?"":n)+"}":typeof u=="object"?s+=Jr(u,n?n.replace(/([^,])+/g,f=>c.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,h=>/&/.test(h)?h.replace(/&/g,f):f?f+" "+h:h)):c):u!=null&&(c=/^--/.test(c)?c:c.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Jr.p?Jr.p(c,u):c+":"+u+";")}return a+(n&&o?n+"{"+o+"}":o)+s},vr={},bb=e=>{if(typeof e=="object"){let n="";for(let a in e)n+=a+bb(e[a]);return n}return e},N3=(e,n,a,s,o)=>{let c=bb(e),u=vr[c]||(vr[c]=(h=>{let m=0,g=11;for(;m<h.length;)g=101*g+h.charCodeAt(m++)>>>0;return"go"+g})(c));if(!vr[u]){let h=c!==e?e:(m=>{let g,x,b=[{}];for(;g=T3.exec(m.replace(A3,""));)g[4]?b.shift():g[3]?(x=g[3].replace(ex," ").trim(),b.unshift(b[0][x]=b[0][x]||{})):b[0][g[1]]=g[2].replace(ex," ").trim();return b[0]})(e);vr[u]=Jr(o?{["@keyframes "+u]:h}:h,a?"":"."+u)}let f=a&&vr.g?vr.g:null;return a&&(vr.g=vr[u]),((h,m,g,x)=>{x?m.data=m.data.replace(x,h):m.data.indexOf(h)===-1&&(m.data=g?h+m.data:m.data+h)})(vr[u],n,s,f),u},_3=(e,n,a)=>e.reduce((s,o,c)=>{let u=n[c];if(u&&u.call){let f=u(a),h=f&&f.props&&f.props.className||/^go/.test(f)&&f;u=h?"."+h:f&&typeof f=="object"?f.props?"":Jr(f,""):f===!1?"":f}return s+o+(u??"")},"");function qc(e){let n=this||{},a=e.call?e(n.p):e;return N3(a.unshift?a.raw?_3(a,[].slice.call(arguments,1),n.p):a.reduce((s,o)=>Object.assign(s,o&&o.call?o(n.p):o),{}):a,E3(n.target),n.g,n.o,n.k)}let wb,bh,wh;qc.bind({g:1});let Sr=qc.bind({k:1});function k3(e,n,a,s){Jr.p=n,wb=e,bh=a,wh=s}function aa(e,n){let a=this||{};return function(){let s=arguments;function o(c,u){let f=Object.assign({},c),h=f.className||o.className;a.p=Object.assign({theme:bh&&bh()},f),a.o=/ *go\d+/.test(h),f.className=qc.apply(a,s)+(h?" "+h:"");let m=e;return e[0]&&(m=f.as||e,delete f.as),wh&&m[0]&&wh(f),wb(m,f)}return o}}var O3=e=>typeof e=="function",Tc=(e,n)=>O3(e)?e(n):e,R3=(()=>{let e=0;return()=>(++e).toString()})(),Sb=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),C3=20,jb=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,C3)};case 1:return{...e,toasts:e.toasts.map(c=>c.id===n.toast.id?{...c,...n.toast}:c)};case 2:let{toast:a}=n;return jb(e,{type:e.toasts.find(c=>c.id===a.id)?1:0,toast:a});case 3:let{toastId:s}=n;return{...e,toasts:e.toasts.map(c=>c.id===s||s===void 0?{...c,dismissed:!0,visible:!1}:c)};case 4:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(c=>c.id!==n.toastId)};case 5:return{...e,pausedAt:n.time};case 6:let o=n.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(c=>({...c,pauseDuration:c.pauseDuration+o}))}}},ic=[],Na={toasts:[],pausedAt:void 0},Ua=e=>{Na=jb(Na,e),ic.forEach(n=>{n(Na)})},D3={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},M3=(e={})=>{let[n,a]=X.useState(Na),s=X.useRef(Na);X.useEffect(()=>(s.current!==Na&&a(Na),ic.push(a),()=>{let c=ic.indexOf(a);c>-1&&ic.splice(c,1)}),[]);let o=n.toasts.map(c=>{var u,f,h;return{...e,...e[c.type],...c,removeDelay:c.removeDelay||((u=e[c.type])==null?void 0:u.removeDelay)||e?.removeDelay,duration:c.duration||((f=e[c.type])==null?void 0:f.duration)||e?.duration||D3[c.type],style:{...e.style,...(h=e[c.type])==null?void 0:h.style,...c.style}}});return{...n,toasts:o}},L3=(e,n="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:n,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:a?.id||R3()}),Eo=e=>(n,a)=>{let s=L3(n,e,a);return Ua({type:2,toast:s}),s.id},Yt=(e,n)=>Eo("blank")(e,n);Yt.error=Eo("error");Yt.success=Eo("success");Yt.loading=Eo("loading");Yt.custom=Eo("custom");Yt.dismiss=e=>{Ua({type:3,toastId:e})};Yt.remove=e=>Ua({type:4,toastId:e});Yt.promise=(e,n,a)=>{let s=Yt.loading(n.loading,{...a,...a?.loading});return typeof e=="function"&&(e=e()),e.then(o=>{let c=n.success?Tc(n.success,o):void 0;return c?Yt.success(c,{id:s,...a,...a?.success}):Yt.dismiss(s),o}).catch(o=>{let c=n.error?Tc(n.error,o):void 0;c?Yt.error(c,{id:s,...a,...a?.error}):Yt.dismiss(s)}),e};var P3=(e,n)=>{Ua({type:1,toast:{id:e,height:n}})},z3=()=>{Ua({type:5,time:Date.now()})},ro=new Map,U3=1e3,B3=(e,n=U3)=>{if(ro.has(e))return;let a=setTimeout(()=>{ro.delete(e),Ua({type:4,toastId:e})},n);ro.set(e,a)},F3=e=>{let{toasts:n,pausedAt:a}=M3(e);X.useEffect(()=>{if(a)return;let c=Date.now(),u=n.map(f=>{if(f.duration===1/0)return;let h=(f.duration||0)+f.pauseDuration-(c-f.createdAt);if(h<0){f.visible&&Yt.dismiss(f.id);return}return setTimeout(()=>Yt.dismiss(f.id),h)});return()=>{u.forEach(f=>f&&clearTimeout(f))}},[n,a]);let s=X.useCallback(()=>{a&&Ua({type:6,time:Date.now()})},[a]),o=X.useCallback((c,u)=>{let{reverseOrder:f=!1,gutter:h=8,defaultPosition:m}=u||{},g=n.filter(E=>(E.position||m)===(c.position||m)&&E.height),x=g.findIndex(E=>E.id===c.id),b=g.filter((E,_)=>_<x&&E.visible).length;return g.filter(E=>E.visible).slice(...f?[b+1]:[0,b]).reduce((E,_)=>E+(_.height||0)+h,0)},[n]);return X.useEffect(()=>{n.forEach(c=>{if(c.dismissed)B3(c.id,c.removeDelay);else{let u=ro.get(c.id);u&&(clearTimeout(u),ro.delete(c.id))}})},[n]),{toasts:n,handlers:{updateHeight:P3,startPause:z3,endPause:s,calculateOffset:o}}},V3=Sr`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,H3=Sr`
from {
transform: scale(0);
opacity: 0;
}
to {
transform: scale(1);
opacity: 1;
}`,I3=Sr`
from {
transform: scale(0) rotate(90deg);
opacity: 0;
}
to {
transform: scale(1) rotate(90deg);
opacity: 1;
}`,q3=aa("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#ff4b4b"};
position: relative;
transform: rotate(45deg);
animation: ${V3} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after,
&:before {
content: '';
animation: ${H3} 0.15s ease-out forwards;
animation-delay: 150ms;
position: absolute;
border-radius: 3px;
opacity: 0;
background: ${e=>e.secondary||"#fff"};
bottom: 9px;
left: 4px;
height: 2px;
width: 12px;
}
&:before {
animation: ${I3} 0.15s ease-out forwards;
animation-delay: 180ms;
transform: rotate(90deg);
}
`,G3=Sr`
from {
transform: rotate(0deg);
}
to {
transform: rotate(360deg);
}
`,Y3=aa("div")`
width: 12px;
height: 12px;
box-sizing: border-box;
border: 2px solid;
border-radius: 100%;
border-color: ${e=>e.secondary||"#e0e0e0"};
border-right-color: ${e=>e.primary||"#616161"};
animation: ${G3} 1s linear infinite;
`,X3=Sr`
from {
transform: scale(0) rotate(45deg);
opacity: 0;
}
to {
transform: scale(1) rotate(45deg);
opacity: 1;
}`,W3=Sr`
0% {
height: 0;
width: 0;
opacity: 0;
}
40% {
height: 0;
width: 6px;
opacity: 1;
}
100% {
opacity: 1;
height: 10px;
}`,Z3=aa("div")`
width: 20px;
opacity: 0;
height: 20px;
border-radius: 10px;
background: ${e=>e.primary||"#61d345"};
position: relative;
transform: rotate(45deg);
animation: ${X3} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
animation-delay: 100ms;
&:after {
content: '';
box-sizing: border-box;
animation: ${W3} 0.2s ease-out forwards;
opacity: 0;
animation-delay: 200ms;
position: absolute;
border-right: 2px solid;
border-bottom: 2px solid;
border-color: ${e=>e.secondary||"#fff"};
bottom: 6px;
left: 6px;
height: 10px;
width: 6px;
}
`,K3=aa("div")`
position: absolute;
`,$3=aa("div")`
position: relative;
display: flex;
justify-content: center;
align-items: center;
min-width: 20px;
min-height: 20px;
`,Q3=Sr`
from {
transform: scale(0.6);
opacity: 0.4;
}
to {
transform: scale(1);
opacity: 1;
}`,J3=aa("div")`
position: relative;
transform: scale(0.6);
opacity: 0.4;
min-width: 20px;
animation: ${Q3} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
`,eE=({toast:e})=>{let{icon:n,type:a,iconTheme:s}=e;return n!==void 0?typeof n=="string"?X.createElement(J3,null,n):n:a==="blank"?null:X.createElement($3,null,X.createElement(Y3,{...s}),a!=="loading"&&X.createElement(K3,null,a==="error"?X.createElement(q3,{...s}):X.createElement(Z3,{...s})))},tE=e=>`
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,nE=e=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
`,rE="0%{opacity:0;} 100%{opacity:1;}",aE="0%{opacity:1;} 100%{opacity:0;}",sE=aa("div")`
display: flex;
align-items: center;
background: #fff;
color: #363636;
line-height: 1.3;
will-change: transform;
box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
max-width: 350px;
pointer-events: auto;
padding: 8px 10px;
border-radius: 8px;
`,iE=aa("div")`
display: flex;
justify-content: center;
margin: 4px 10px;
color: inherit;
flex: 1 1 auto;
white-space: pre-line;
`,oE=(e,n)=>{let a=e.includes("top")?1:-1,[s,o]=Sb()?[rE,aE]:[tE(a),nE(a)];return{animation:n?`${Sr(s)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Sr(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},lE=X.memo(({toast:e,position:n,style:a,children:s})=>{let o=e.height?oE(e.position||n||"top-center",e.visible):{opacity:0},c=X.createElement(eE,{toast:e}),u=X.createElement(iE,{...e.ariaProps},Tc(e.message,e));return X.createElement(sE,{className:e.className,style:{...o,...a,...e.style}},typeof s=="function"?s({icon:c,message:u}):X.createElement(X.Fragment,null,c,u))});k3(X.createElement);var cE=({id:e,className:n,style:a,onHeightUpdate:s,children:o})=>{let c=X.useCallback(u=>{if(u){let f=()=>{let h=u.getBoundingClientRect().height;s(e,h)};f(),new MutationObserver(f).observe(u,{subtree:!0,childList:!0,characterData:!0})}},[e,s]);return X.createElement("div",{ref:c,className:n,style:a},o)},uE=(e,n)=>{let a=e.includes("top"),s=a?{top:0}:{bottom:0},o=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:Sb()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(a?1:-1)}px)`,...s,...o}},dE=qc`
z-index: 9999;
> * {
pointer-events: auto;
}
`,Kl=16,fE=({reverseOrder:e,position:n="top-center",toastOptions:a,gutter:s,children:o,containerStyle:c,containerClassName:u})=>{let{toasts:f,handlers:h}=F3(a);return X.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:Kl,left:Kl,right:Kl,bottom:Kl,pointerEvents:"none",...c},className:u,onMouseEnter:h.startPause,onMouseLeave:h.endPause},f.map(m=>{let g=m.position||n,x=h.calculateOffset(m,{reverseOrder:e,gutter:s,defaultPosition:n}),b=uE(g,x);return X.createElement(cE,{id:m.id,key:m.id,onHeightUpdate:h.updateHeight,className:m.visible?dE:"",style:b},m.type==="custom"?Tc(m.message,m):o?o(m):X.createElement(lE,{toast:m,position:g}))}))},Gc=Yt;function zt(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var hE=typeof Symbol=="function"&&Symbol.observable||"@@observable",tx=hE,Mf=()=>Math.random().toString(36).substring(7).split("").join("."),mE={INIT:`@@redux/INIT${Mf()}`,REPLACE:`@@redux/REPLACE${Mf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Mf()}`},Ac=mE;function lm(e){if(typeof e!="object"||e===null)return!1;let n=e;for(;Object.getPrototypeOf(n)!==null;)n=Object.getPrototypeOf(n);return Object.getPrototypeOf(e)===n||Object.getPrototypeOf(e)===null}function Eb(e,n,a){if(typeof e!="function")throw new Error(zt(2));if(typeof n=="function"&&typeof a=="function"||typeof a=="function"&&typeof arguments[3]=="function")throw new Error(zt(0));if(typeof n=="function"&&typeof a>"u"&&(a=n,n=void 0),typeof a<"u"){if(typeof a!="function")throw new Error(zt(1));return a(Eb)(e,n)}let s=e,o=n,c=new Map,u=c,f=0,h=!1;function m(){u===c&&(u=new Map,c.forEach((A,T)=>{u.set(T,A)}))}function g(){if(h)throw new Error(zt(3));return o}function x(A){if(typeof A!="function")throw new Error(zt(4));if(h)throw new Error(zt(5));let T=!0;m();const C=f++;return u.set(C,A),function(){if(T){if(h)throw new Error(zt(6));T=!1,m(),u.delete(C),c=null}}}function b(A){if(!lm(A))throw new Error(zt(7));if(typeof A.type>"u")throw new Error(zt(8));if(typeof A.type!="string")throw new Error(zt(17));if(h)throw new Error(zt(9));try{h=!0,o=s(o,A)}finally{h=!1}return(c=u).forEach(C=>{C()}),A}function E(A){if(typeof A!="function")throw new Error(zt(10));s=A,b({type:Ac.REPLACE})}function _(){const A=x;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(zt(11));function C(){const q=T;q.next&&q.next(g())}return C(),{unsubscribe:A(C)}},[tx](){return this}}}return b({type:Ac.INIT}),{dispatch:b,subscribe:x,getState:g,replaceReducer:E,[tx]:_}}function pE(e){Object.keys(e).forEach(n=>{const a=e[n];if(typeof a(void 0,{type:Ac.INIT})>"u")throw new Error(zt(12));if(typeof a(void 0,{type:Ac.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(zt(13))})}function gE(e){const n=Object.keys(e),a={};for(let c=0;c<n.length;c++){const u=n[c];typeof e[u]=="function"&&(a[u]=e[u])}const s=Object.keys(a);let o;try{pE(a)}catch(c){o=c}return function(u={},f){if(o)throw o;let h=!1;const m={};for(let g=0;g<s.length;g++){const x=s[g],b=a[x],E=u[x],_=b(E,f);if(typeof _>"u")throw f&&f.type,new Error(zt(14));m[x]=_,h=h||_!==E}return h=h||s.length!==Object.keys(u).length,h?m:u}}function Nc(...e){return e.length===0?n=>n:e.length===1?e[0]:e.reduce((n,a)=>(...s)=>n(a(...s)))}function yE(...e){return n=>(a,s)=>{const o=n(a,s);let c=()=>{throw new Error(zt(15))};const u={getState:o.getState,dispatch:(h,...m)=>c(h,...m)},f=e.map(h=>h(u));return c=Nc(...f)(o.dispatch),{...o,dispatch:c}}}function xE(e){return lm(e)&&"type"in e&&typeof e.type=="string"}var Tb=Symbol.for("immer-nothing"),nx=Symbol.for("immer-draftable"),mn=Symbol.for("immer-state");function Hn(e,...n){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var zs=Object.getPrototypeOf;function La(e){return!!e&&!!e[mn]}function jr(e){return e?Ab(e)||Array.isArray(e)||!!e[nx]||!!e.constructor?.[nx]||Xc(e)||Wc(e):!1}var vE=Object.prototype.constructor.toString();function Ab(e){if(!e||typeof e!="object")return!1;const n=zs(e);if(n===null)return!0;const a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object?!0:typeof a=="function"&&Function.toString.call(a)===vE}function _c(e,n){Yc(e)===0?Reflect.ownKeys(e).forEach(a=>{n(a,e[a],e)}):e.forEach((a,s)=>n(s,a,e))}function Yc(e){const n=e[mn];return n?n.type_:Array.isArray(e)?1:Xc(e)?2:Wc(e)?3:0}function Sh(e,n){return Yc(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function Nb(e,n,a){const s=Yc(e);s===2?e.set(n,a):s===3?e.add(a):e[n]=a}function bE(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function Xc(e){return e instanceof Map}function Wc(e){return e instanceof Set}function Ta(e){return e.copy_||e.base_}function jh(e,n){if(Xc(e))return new Map(e);if(Wc(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const a=Ab(e);if(n===!0||n==="class_only"&&!a){const s=Object.getOwnPropertyDescriptors(e);delete s[mn];let o=Reflect.ownKeys(s);for(let c=0;c<o.length;c++){const u=o[c],f=s[u];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(s[u]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[u]})}return Object.create(zs(e),s)}else{const s=zs(e);if(s!==null&&a)return{...e};const o=Object.create(s);return Object.assign(o,e)}}function cm(e,n=!1){return Zc(e)||La(e)||!jr(e)||(Yc(e)>1&&(e.set=e.add=e.clear=e.delete=wE),Object.freeze(e),n&&Object.entries(e).forEach(([a,s])=>cm(s,!0))),e}function wE(){Hn(2)}function Zc(e){return Object.isFrozen(e)}var SE={};function Pa(e){const n=SE[e];return n||Hn(0,e),n}var fo;function _b(){return fo}function jE(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function rx(e,n){n&&(Pa("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function Eh(e){Th(e),e.drafts_.forEach(EE),e.drafts_=null}function Th(e){e===fo&&(fo=e.parent_)}function ax(e){return fo=jE(fo,e)}function EE(e){const n=e[mn];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function sx(e,n){n.unfinalizedDrafts_=n.drafts_.length;const a=n.drafts_[0];return e!==void 0&&e!==a?(a[mn].modified_&&(Eh(n),Hn(4)),jr(e)&&(e=kc(n,e),n.parent_||Oc(n,e)),n.patches_&&Pa("Patches").generateReplacementPatches_(a[mn].base_,e,n.patches_,n.inversePatches_)):e=kc(n,a,[]),Eh(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==Tb?e:void 0}function kc(e,n,a){if(Zc(n))return n;const s=n[mn];if(!s)return _c(n,(o,c)=>ix(e,s,n,o,c,a)),n;if(s.scope_!==e)return n;if(!s.modified_)return Oc(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const o=s.copy_;let c=o,u=!1;s.type_===3&&(c=new Set(o),o.clear(),u=!0),_c(c,(f,h)=>ix(e,s,o,f,h,a,u)),Oc(e,o,!1),a&&e.patches_&&Pa("Patches").generatePatches_(s,a,e.patches_,e.inversePatches_)}return s.copy_}function ix(e,n,a,s,o,c,u){if(La(o)){const f=c&&n&&n.type_!==3&&!Sh(n.assigned_,s)?c.concat(s):void 0,h=kc(e,o,f);if(Nb(a,s,h),La(h))e.canAutoFreeze_=!1;else return}else u&&a.add(o);if(jr(o)&&!Zc(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;kc(e,o),(!n||!n.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(a,s)&&Oc(e,o)}}function Oc(e,n,a=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&cm(n,a)}function TE(e,n){const a=Array.isArray(e),s={type_:a?1:0,scope_:n?n.scope_:_b(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=s,c=um;a&&(o=[s],c=ho);const{revoke:u,proxy:f}=Proxy.revocable(o,c);return s.draft_=f,s.revoke_=u,f}var um={get(e,n){if(n===mn)return e;const a=Ta(e);if(!Sh(a,n))return AE(e,a,n);const s=a[n];return e.finalized_||!jr(s)?s:s===Lf(e.base_,n)?(Pf(e),e.copy_[n]=Nh(s,e)):s},has(e,n){return n in Ta(e)},ownKeys(e){return Reflect.ownKeys(Ta(e))},set(e,n,a){const s=kb(Ta(e),n);if(s?.set)return s.set.call(e.draft_,a),!0;if(!e.modified_){const o=Lf(Ta(e),n),c=o?.[mn];if(c&&c.base_===a)return e.copy_[n]=a,e.assigned_[n]=!1,!0;if(bE(a,o)&&(a!==void 0||Sh(e.base_,n)))return!0;Pf(e),Ah(e)}return e.copy_[n]===a&&(a!==void 0||n in e.copy_)||Number.isNaN(a)&&Number.isNaN(e.copy_[n])||(e.copy_[n]=a,e.assigned_[n]=!0),!0},deleteProperty(e,n){return Lf(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,Pf(e),Ah(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const a=Ta(e),s=Reflect.getOwnPropertyDescriptor(a,n);return s&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:s.enumerable,value:a[n]}},defineProperty(){Hn(11)},getPrototypeOf(e){return zs(e.base_)},setPrototypeOf(){Hn(12)}},ho={};_c(um,(e,n)=>{ho[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}});ho.deleteProperty=function(e,n){return ho.set.call(this,e,n,void 0)};ho.set=function(e,n,a){return um.set.call(this,e[0],n,a,e[0])};function Lf(e,n){const a=e[mn];return(a?Ta(a):e)[n]}function AE(e,n,a){const s=kb(n,a);return s?"value"in s?s.value:s.get?.call(e.draft_):void 0}function kb(e,n){if(!(n in e))return;let a=zs(e);for(;a;){const s=Object.getOwnPropertyDescriptor(a,n);if(s)return s;a=zs(a)}}function Ah(e){e.modified_||(e.modified_=!0,e.parent_&&Ah(e.parent_))}function Pf(e){e.copy_||(e.copy_=jh(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var NE=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,a,s)=>{if(typeof n=="function"&&typeof a!="function"){const c=a;a=n;const u=this;return function(h=c,...m){return u.produce(h,g=>a.call(this,g,...m))}}typeof a!="function"&&Hn(6),s!==void 0&&typeof s!="function"&&Hn(7);let o;if(jr(n)){const c=ax(this),u=Nh(n,void 0);let f=!0;try{o=a(u),f=!1}finally{f?Eh(c):Th(c)}return rx(c,s),sx(o,c)}else if(!n||typeof n!="object"){if(o=a(n),o===void 0&&(o=n),o===Tb&&(o=void 0),this.autoFreeze_&&cm(o,!0),s){const c=[],u=[];Pa("Patches").generateReplacementPatches_(n,o,c,u),s(c,u)}return o}else Hn(1,n)},this.produceWithPatches=(n,a)=>{if(typeof n=="function")return(u,...f)=>this.produceWithPatches(u,h=>n(h,...f));let s,o;return[this.produce(n,a,(u,f)=>{s=u,o=f}),s,o]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){jr(e)||Hn(8),La(e)&&(e=_E(e));const n=ax(this),a=Nh(e,void 0);return a[mn].isManual_=!0,Th(n),a}finishDraft(e,n){const a=e&&e[mn];(!a||!a.isManual_)&&Hn(9);const{scope_:s}=a;return rx(s,n),sx(void 0,s)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,n){let a;for(a=n.length-1;a>=0;a--){const o=n[a];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}a>-1&&(n=n.slice(a+1));const s=Pa("Patches").applyPatches_;return La(e)?s(e,n):this.produce(e,o=>s(o,n))}};function Nh(e,n){const a=Xc(e)?Pa("MapSet").proxyMap_(e,n):Wc(e)?Pa("MapSet").proxySet_(e,n):TE(e,n);return(n?n.scope_:_b()).drafts_.push(a),a}function _E(e){return La(e)||Hn(10,e),Ob(e)}function Ob(e){if(!jr(e)||Zc(e))return e;const n=e[mn];let a;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,a=jh(e,n.scope_.immer_.useStrictShallowCopy_)}else a=jh(e,!0);return _c(a,(s,o)=>{Nb(a,s,Ob(o))}),n&&(n.finalized_=!1),a}var pn=new NE,Rb=pn.produce;pn.produceWithPatches.bind(pn);pn.setAutoFreeze.bind(pn);pn.setUseStrictShallowCopy.bind(pn);pn.applyPatches.bind(pn);pn.createDraft.bind(pn);pn.finishDraft.bind(pn);function Cb(e){return({dispatch:a,getState:s})=>o=>c=>typeof c=="function"?c(a,s,e):o(c)}var kE=Cb(),OE=Cb,RE=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Nc:Nc.apply(null,arguments)},CE=e=>e&&typeof e.match=="function";function ao(e,n){function a(...s){if(n){let o=n(...s);if(!o)throw new Error(br(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:s[0]}}return a.toString=()=>`${e}`,a.type=e,a.match=s=>xE(s)&&s.type===e,a}var Db=class Ji extends Array{constructor(...n){super(...n),Object.setPrototypeOf(this,Ji.prototype)}static get[Symbol.species](){return Ji}concat(...n){return super.concat.apply(this,n)}prepend(...n){return n.length===1&&Array.isArray(n[0])?new Ji(...n[0].concat(this)):new Ji(...n.concat(this))}};function ox(e){return jr(e)?Rb(e,()=>{}):e}function $l(e,n,a){return e.has(n)?e.get(n):e.set(n,a(n)).get(n)}function DE(e){return typeof e=="boolean"}var ME=()=>function(n){const{thunk:a=!0,immutableCheck:s=!0,serializableCheck:o=!0,actionCreatorCheck:c=!0}=n??{};let u=new Db;return a&&(DE(a)?u.push(kE):u.push(OE(a.extraArgument))),u},LE="RTK_autoBatch",lx=e=>n=>{setTimeout(n,e)},PE=(e={type:"raf"})=>n=>(...a)=>{const s=n(...a);let o=!0,c=!1,u=!1;const f=new Set,h=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:lx(10):e.type==="callback"?e.queueNotification:lx(e.timeout),m=()=>{u=!1,c&&(c=!1,f.forEach(g=>g()))};return Object.assign({},s,{subscribe(g){const x=()=>o&&g(),b=s.subscribe(x);return f.add(g),()=>{b(),f.delete(g)}},dispatch(g){try{return o=!g?.meta?.[LE],c=!o,c&&(u||(u=!0,h(m))),s.dispatch(g)}finally{o=!0}}})},zE=e=>function(a){const{autoBatch:s=!0}=a??{};let o=new Db(e);return s&&o.push(PE(typeof s=="object"?s:void 0)),o};function UE(e){const n=ME(),{reducer:a=void 0,middleware:s,devTools:o=!0,preloadedState:c=void 0,enhancers:u=void 0}=e||{};let f;if(typeof a=="function")f=a;else if(lm(a))f=gE(a);else throw new Error(br(1));let h;typeof s=="function"?h=s(n):h=n();let m=Nc;o&&(m=RE({trace:!1,...typeof o=="object"&&o}));const g=yE(...h),x=zE(g);let b=typeof u=="function"?u(x):x();const E=m(...b);return Eb(f,c,E)}function Mb(e){const n={},a=[];let s;const o={addCase(c,u){const f=typeof c=="string"?c:c.type;if(!f)throw new Error(br(28));if(f in n)throw new Error(br(29));return n[f]=u,o},addMatcher(c,u){return a.push({matcher:c,reducer:u}),o},addDefaultCase(c){return s=c,o}};return e(o),[n,a,s]}function BE(e){return typeof e=="function"}function FE(e,n){let[a,s,o]=Mb(n),c;if(BE(e))c=()=>ox(e());else{const f=ox(e);c=()=>f}function u(f=c(),h){let m=[a[h.type],...s.filter(({matcher:g})=>g(h)).map(({reducer:g})=>g)];return m.filter(g=>!!g).length===0&&(m=[o]),m.reduce((g,x)=>{if(x)if(La(g)){const E=x(g,h);return E===void 0?g:E}else{if(jr(g))return Rb(g,b=>x(b,h));{const b=x(g,h);if(b===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return b}}return g},f)}return u.getInitialState=c,u}var VE=(e,n)=>CE(e)?e.match(n):e(n);function HE(...e){return n=>e.some(a=>VE(a,n))}var IE="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",qE=(e=21)=>{let n="",a=e;for(;a--;)n+=IE[Math.random()*64|0];return n},GE=["name","message","stack","code"],zf=class{constructor(e,n){this.payload=e,this.meta=n}_type},cx=class{constructor(e,n){this.payload=e,this.meta=n}_type},YE=e=>{if(typeof e=="object"&&e!==null){const n={};for(const a of GE)typeof e[a]=="string"&&(n[a]=e[a]);return n}return{message:String(e)}},ux="External signal was aborted",Dn=(()=>{function e(n,a,s){const o=ao(n+"/fulfilled",(h,m,g,x)=>({payload:h,meta:{...x||{},arg:g,requestId:m,requestStatus:"fulfilled"}})),c=ao(n+"/pending",(h,m,g)=>({payload:void 0,meta:{...g||{},arg:m,requestId:h,requestStatus:"pending"}})),u=ao(n+"/rejected",(h,m,g,x,b)=>({payload:x,error:(s&&s.serializeError||YE)(h||"Rejected"),meta:{...b||{},arg:g,requestId:m,rejectedWithValue:!!x,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"}}));function f(h,{signal:m}={}){return(g,x,b)=>{const E=s?.idGenerator?s.idGenerator(h):qE(),_=new AbortController;let S,A;function T(L){A=L,_.abort()}m&&(m.aborted?T(ux):m.addEventListener("abort",()=>T(ux),{once:!0}));const C=async function(){let L;try{let N=s?.condition?.(h,{getState:x,extra:b});if(WE(N)&&(N=await N),N===!1||_.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const z=new Promise((F,H)=>{S=()=>{H({name:"AbortError",message:A||"Aborted"})},_.signal.addEventListener("abort",S)});g(c(E,h,s?.getPendingMeta?.({requestId:E,arg:h},{getState:x,extra:b}))),L=await Promise.race([z,Promise.resolve(a(h,{dispatch:g,getState:x,extra:b,requestId:E,signal:_.signal,abort:T,rejectWithValue:(F,H)=>new zf(F,H),fulfillWithValue:(F,H)=>new cx(F,H)})).then(F=>{if(F instanceof zf)throw F;return F instanceof cx?o(F.payload,E,h,F.meta):o(F,E,h)})])}catch(N){L=N instanceof zf?u(null,E,h,N.payload,N.meta):u(N,E,h)}finally{S&&_.signal.removeEventListener("abort",S)}return s&&!s.dispatchConditionRejection&&u.match(L)&&L.meta.condition||g(L),L}();return Object.assign(C,{abort:T,requestId:E,arg:h,unwrap(){return C.then(XE)}})}}return Object.assign(f,{pending:c,rejected:u,fulfilled:o,settled:HE(u,o),typePrefix:n})}return e.withTypes=()=>e,e})();function XE(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function WE(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var ZE=Symbol.for("rtk-slice-createasyncthunk");function KE(e,n){return`${e}/${n}`}function $E({creators:e}={}){const n=e?.asyncThunk?.[ZE];return function(s){const{name:o,reducerPath:c=o}=s;if(!o)throw new Error(br(11));const u=(typeof s.reducers=="function"?s.reducers(JE()):s.reducers)||{},f=Object.keys(u),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},m={addCase(L,q){const N=typeof L=="string"?L:L.type;if(!N)throw new Error(br(12));if(N in h.sliceCaseReducersByType)throw new Error(br(13));return h.sliceCaseReducersByType[N]=q,m},addMatcher(L,q){return h.sliceMatchers.push({matcher:L,reducer:q}),m},exposeAction(L,q){return h.actionCreators[L]=q,m},exposeCaseReducer(L,q){return h.sliceCaseReducersByName[L]=q,m}};f.forEach(L=>{const q=u[L],N={reducerName:L,type:KE(o,L),createNotation:typeof s.reducers=="function"};tT(q)?rT(N,q,m,n):eT(N,q,m)});function g(){const[L={},q=[],N=void 0]=typeof s.extraReducers=="function"?Mb(s.extraReducers):[s.extraReducers],z={...L,...h.sliceCaseReducersByType};return FE(s.initialState,F=>{for(let H in z)F.addCase(H,z[H]);for(let H of h.sliceMatchers)F.addMatcher(H.matcher,H.reducer);for(let H of q)F.addMatcher(H.matcher,H.reducer);N&&F.addDefaultCase(N)})}const x=L=>L,b=new Map,E=new WeakMap;let _;function S(L,q){return _||(_=g()),_(L,q)}function A(){return _||(_=g()),_.getInitialState()}function T(L,q=!1){function N(F){let H=F[L];return typeof H>"u"&&q&&(H=$l(E,N,A)),H}function z(F=x){const H=$l(b,q,()=>new WeakMap);return $l(H,F,()=>{const M={};for(const[R,K]of Object.entries(s.selectors??{}))M[R]=QE(K,F,()=>$l(E,F,A),q);return M})}return{reducerPath:L,getSelectors:z,get selectors(){return z(N)},selectSlice:N}}const C={name:o,reducer:S,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:A,...T(c),injectInto(L,{reducerPath:q,...N}={}){const z=q??c;return L.inject({reducerPath:z,reducer:S},N),{...C,...T(z,!0)}}};return C}}function QE(e,n,a,s){function o(c,...u){let f=n(c);return typeof f>"u"&&s&&(f=a()),e(f,...u)}return o.unwrapped=e,o}var Kc=$E();function JE(){function e(n,a){return{_reducerDefinitionType:"asyncThunk",payloadCreator:n,...a}}return e.withTypes=()=>e,{reducer(n){return Object.assign({[n.name](...a){return n(...a)}}[n.name],{_reducerDefinitionType:"reducer"})},preparedReducer(n,a){return{_reducerDefinitionType:"reducerWithPrepare",prepare:n,reducer:a}},asyncThunk:e}}function eT({type:e,reducerName:n,createNotation:a},s,o){let c,u;if("reducer"in s){if(a&&!nT(s))throw new Error(br(17));c=s.reducer,u=s.prepare}else c=s;o.addCase(e,c).exposeCaseReducer(n,c).exposeAction(n,u?ao(e,u):ao(e))}function tT(e){return e._reducerDefinitionType==="asyncThunk"}function nT(e){return e._reducerDefinitionType==="reducerWithPrepare"}function rT({type:e,reducerName:n},a,s,o){if(!o)throw new Error(br(18));const{payloadCreator:c,fulfilled:u,pending:f,rejected:h,settled:m,options:g}=a,x=o(e,c,g);s.exposeAction(n,x),u&&s.addCase(x.fulfilled,u),f&&s.addCase(x.pending,f),h&&s.addCase(x.rejected,h),m&&s.addMatcher(x.settled,m),s.exposeCaseReducer(n,{fulfilled:u||Ql,pending:f||Ql,rejected:h||Ql,settled:m||Ql})}function Ql(){}function br(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const ta=e=>{Gc.success(e,{duration:3e3,style:{background:"#10b981",color:"#fff",fontWeight:"500"}})},it=e=>{Gc.error(e,{duration:4e3,style:{background:"#ef4444",color:"#fff",fontWeight:"500"}})},qn=(e="Loading...")=>Gc.loading(e,{style:{background:"#6b7280",color:"#fff",fontWeight:"500"}}),ot=e=>{Gc.dismiss(e)},Lb=e=>{typeof e=="string"&&it(e)};function Pb(e,n){return function(){return e.apply(n,arguments)}}const{toString:aT}=Object.prototype,{getPrototypeOf:dm}=Object,{iterator:$c,toStringTag:zb}=Symbol,Qc=(e=>n=>{const a=aT.call(n);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Gn=e=>(e=e.toLowerCase(),n=>Qc(n)===e),Jc=e=>n=>typeof n===e,{isArray:Hs}=Array,mo=Jc("undefined");function To(e){return e!==null&&!mo(e)&&e.constructor!==null&&!mo(e.constructor)&&nn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Ub=Gn("ArrayBuffer");function sT(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&Ub(e.buffer),n}const iT=Jc("string"),nn=Jc("function"),Bb=Jc("number"),Ao=e=>e!==null&&typeof e=="object",oT=e=>e===!0||e===!1,oc=e=>{if(Qc(e)!=="object")return!1;const n=dm(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(zb in e)&&!($c in e)},lT=e=>{if(!Ao(e)||To(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},cT=Gn("Date"),uT=Gn("File"),dT=Gn("Blob"),fT=Gn("FileList"),hT=e=>Ao(e)&&nn(e.pipe),mT=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||nn(e.append)&&((n=Qc(e))==="formdata"||n==="object"&&nn(e.toString)&&e.toString()==="[object FormData]"))},pT=Gn("URLSearchParams"),[gT,yT,xT,vT]=["ReadableStream","Request","Response","Headers"].map(Gn),bT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function No(e,n,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),Hs(e))for(s=0,o=e.length;s<o;s++)n.call(null,e[s],s,e);else{if(To(e))return;const c=a?Object.getOwnPropertyNames(e):Object.keys(e),u=c.length;let f;for(s=0;s<u;s++)f=c[s],n.call(null,e[f],f,e)}}function Fb(e,n){if(To(e))return null;n=n.toLowerCase();const a=Object.keys(e);let s=a.length,o;for(;s-- >0;)if(o=a[s],n===o.toLowerCase())return o;return null}const _a=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Vb=e=>!mo(e)&&e!==_a;function _h(){const{caseless:e}=Vb(this)&&this||{},n={},a=(s,o)=>{const c=e&&Fb(n,o)||o;oc(n[c])&&oc(s)?n[c]=_h(n[c],s):oc(s)?n[c]=_h({},s):Hs(s)?n[c]=s.slice():n[c]=s};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&No(arguments[s],a);return n}const wT=(e,n,a,{allOwnKeys:s}={})=>(No(n,(o,c)=>{a&&nn(o)?e[c]=Pb(o,a):e[c]=o},{allOwnKeys:s}),e),ST=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),jT=(e,n,a,s)=>{e.prototype=Object.create(n.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),a&&Object.assign(e.prototype,a)},ET=(e,n,a,s)=>{let o,c,u;const f={};if(n=n||{},e==null)return n;do{for(o=Object.getOwnPropertyNames(e),c=o.length;c-- >0;)u=o[c],(!s||s(u,e,n))&&!f[u]&&(n[u]=e[u],f[u]=!0);e=a!==!1&&dm(e)}while(e&&(!a||a(e,n))&&e!==Object.prototype);return n},TT=(e,n,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=n.length;const s=e.indexOf(n,a);return s!==-1&&s===a},AT=e=>{if(!e)return null;if(Hs(e))return e;let n=e.length;if(!Bb(n))return null;const a=new Array(n);for(;n-- >0;)a[n]=e[n];return a},NT=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&dm(Uint8Array)),_T=(e,n)=>{const s=(e&&e[$c]).call(e);let o;for(;(o=s.next())&&!o.done;){const c=o.value;n.call(e,c[0],c[1])}},kT=(e,n)=>{let a;const s=[];for(;(a=e.exec(n))!==null;)s.push(a);return s},OT=Gn("HTMLFormElement"),RT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,s,o){return s.toUpperCase()+o}),dx=(({hasOwnProperty:e})=>(n,a)=>e.call(n,a))(Object.prototype),CT=Gn("RegExp"),Hb=(e,n)=>{const a=Object.getOwnPropertyDescriptors(e),s={};No(a,(o,c)=>{let u;(u=n(o,c,e))!==!1&&(s[c]=u||o)}),Object.defineProperties(e,s)},DT=e=>{Hb(e,(n,a)=>{if(nn(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const s=e[a];if(nn(s)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},MT=(e,n)=>{const a={},s=o=>{o.forEach(c=>{a[c]=!0})};return Hs(e)?s(e):s(String(e).split(n)),a},LT=()=>{},PT=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function zT(e){return!!(e&&nn(e.append)&&e[zb]==="FormData"&&e[$c])}const UT=e=>{const n=new Array(10),a=(s,o)=>{if(Ao(s)){if(n.indexOf(s)>=0)return;if(To(s))return s;if(!("toJSON"in s)){n[o]=s;const c=Hs(s)?[]:{};return No(s,(u,f)=>{const h=a(u,o+1);!mo(h)&&(c[f]=h)}),n[o]=void 0,c}}return s};return a(e,0)},BT=Gn("AsyncFunction"),FT=e=>e&&(Ao(e)||nn(e))&&nn(e.then)&&nn(e.catch),Ib=((e,n)=>e?setImmediate:n?((a,s)=>(_a.addEventListener("message",({source:o,data:c})=>{o===_a&&c===a&&s.length&&s.shift()()},!1),o=>{s.push(o),_a.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",nn(_a.postMessage)),VT=typeof queueMicrotask<"u"?queueMicrotask.bind(_a):typeof process<"u"&&process.nextTick||Ib,HT=e=>e!=null&&nn(e[$c]),me={isArray:Hs,isArrayBuffer:Ub,isBuffer:To,isFormData:mT,isArrayBufferView:sT,isString:iT,isNumber:Bb,isBoolean:oT,isObject:Ao,isPlainObject:oc,isEmptyObject:lT,isReadableStream:gT,isRequest:yT,isResponse:xT,isHeaders:vT,isUndefined:mo,isDate:cT,isFile:uT,isBlob:dT,isRegExp:CT,isFunction:nn,isStream:hT,isURLSearchParams:pT,isTypedArray:NT,isFileList:fT,forEach:No,merge:_h,extend:wT,trim:bT,stripBOM:ST,inherits:jT,toFlatObject:ET,kindOf:Qc,kindOfTest:Gn,endsWith:TT,toArray:AT,forEachEntry:_T,matchAll:kT,isHTMLForm:OT,hasOwnProperty:dx,hasOwnProp:dx,reduceDescriptors:Hb,freezeMethods:DT,toObjectSet:MT,toCamelCase:RT,noop:LT,toFiniteNumber:PT,findKey:Fb,global:_a,isContextDefined:Vb,isSpecCompliantForm:zT,toJSONObject:UT,isAsyncFn:BT,isThenable:FT,setImmediate:Ib,asap:VT,isIterable:HT};function Fe(e,n,a,s,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),s&&(this.request=s),o&&(this.response=o,this.status=o.status?o.status:null)}me.inherits(Fe,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:me.toJSONObject(this.config),code:this.code,status:this.status}}});const qb=Fe.prototype,Gb={};["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=>{Gb[e]={value:e}});Object.defineProperties(Fe,Gb);Object.defineProperty(qb,"isAxiosError",{value:!0});Fe.from=(e,n,a,s,o,c)=>{const u=Object.create(qb);return me.toFlatObject(e,u,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),Fe.call(u,e.message,n,a,s,o),u.cause=e,u.name=e.name,c&&Object.assign(u,c),u};const IT=null;function kh(e){return me.isPlainObject(e)||me.isArray(e)}function Yb(e){return me.endsWith(e,"[]")?e.slice(0,-2):e}function fx(e,n,a){return e?e.concat(n).map(function(o,c){return o=Yb(o),!a&&c?"["+o+"]":o}).join(a?".":""):n}function qT(e){return me.isArray(e)&&!e.some(kh)}const GT=me.toFlatObject(me,{},null,function(n){return/^is[A-Z]/.test(n)});function eu(e,n,a){if(!me.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,a=me.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,A){return!me.isUndefined(A[S])});const s=a.metaTokens,o=a.visitor||g,c=a.dots,u=a.indexes,h=(a.Blob||typeof Blob<"u"&&Blob)&&me.isSpecCompliantForm(n);if(!me.isFunction(o))throw new TypeError("visitor must be a function");function m(_){if(_===null)return"";if(me.isDate(_))return _.toISOString();if(me.isBoolean(_))return _.toString();if(!h&&me.isBlob(_))throw new Fe("Blob is not supported. Use a Buffer instead.");return me.isArrayBuffer(_)||me.isTypedArray(_)?h&&typeof Blob=="function"?new Blob([_]):Buffer.from(_):_}function g(_,S,A){let T=_;if(_&&!A&&typeof _=="object"){if(me.endsWith(S,"{}"))S=s?S:S.slice(0,-2),_=JSON.stringify(_);else if(me.isArray(_)&&qT(_)||(me.isFileList(_)||me.endsWith(S,"[]"))&&(T=me.toArray(_)))return S=Yb(S),T.forEach(function(L,q){!(me.isUndefined(L)||L===null)&&n.append(u===!0?fx([S],q,c):u===null?S:S+"[]",m(L))}),!1}return kh(_)?!0:(n.append(fx(A,S,c),m(_)),!1)}const x=[],b=Object.assign(GT,{defaultVisitor:g,convertValue:m,isVisitable:kh});function E(_,S){if(!me.isUndefined(_)){if(x.indexOf(_)!==-1)throw Error("Circular reference detected in "+S.join("."));x.push(_),me.forEach(_,function(T,C){(!(me.isUndefined(T)||T===null)&&o.call(n,T,me.isString(C)?C.trim():C,S,b))===!0&&E(T,S?S.concat(C):[C])}),x.pop()}}if(!me.isObject(e))throw new TypeError("data must be an object");return E(e),n}function hx(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return n[s]})}function fm(e,n){this._pairs=[],e&&eu(e,this,n)}const Xb=fm.prototype;Xb.append=function(n,a){this._pairs.push([n,a])};Xb.toString=function(n){const a=n?function(s){return n.call(this,s,hx)}:hx;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function YT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Wb(e,n,a){if(!n)return e;const s=a&&a.encode||YT;me.isFunction(a)&&(a={serialize:a});const o=a&&a.serialize;let c;if(o?c=o(n,a):c=me.isURLSearchParams(n)?n.toString():new fm(n,a).toString(s),c){const u=e.indexOf("#");u!==-1&&(e=e.slice(0,u)),e+=(e.indexOf("?")===-1?"?":"&")+c}return e}class mx{constructor(){this.handlers=[]}use(n,a,s){return this.handlers.push({fulfilled:n,rejected:a,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){me.forEach(this.handlers,function(s){s!==null&&n(s)})}}const Zb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},XT=typeof URLSearchParams<"u"?URLSearchParams:fm,WT=typeof FormData<"u"?FormData:null,ZT=typeof Blob<"u"?Blob:null,KT={isBrowser:!0,classes:{URLSearchParams:XT,FormData:WT,Blob:ZT},protocols:["http","https","file","blob","url","data"]},hm=typeof window<"u"&&typeof document<"u",Oh=typeof navigator=="object"&&navigator||void 0,$T=hm&&(!Oh||["ReactNative","NativeScript","NS"].indexOf(Oh.product)<0),QT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",JT=hm&&window.location.href||"http://localhost",e4=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:hm,hasStandardBrowserEnv:$T,hasStandardBrowserWebWorkerEnv:QT,navigator:Oh,origin:JT},Symbol.toStringTag,{value:"Module"})),It={...e4,...KT};function t4(e,n){return eu(e,new It.classes.URLSearchParams,{visitor:function(a,s,o,c){return It.isNode&&me.isBuffer(a)?(this.append(s,a.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)},...n})}function n4(e){return me.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function r4(e){const n={},a=Object.keys(e);let s;const o=a.length;let c;for(s=0;s<o;s++)c=a[s],n[c]=e[c];return n}function Kb(e){function n(a,s,o,c){let u=a[c++];if(u==="__proto__")return!0;const f=Number.isFinite(+u),h=c>=a.length;return u=!u&&me.isArray(o)?o.length:u,h?(me.hasOwnProp(o,u)?o[u]=[o[u],s]:o[u]=s,!f):((!o[u]||!me.isObject(o[u]))&&(o[u]=[]),n(a,s,o[u],c)&&me.isArray(o[u])&&(o[u]=r4(o[u])),!f)}if(me.isFormData(e)&&me.isFunction(e.entries)){const a={};return me.forEachEntry(e,(s,o)=>{n(n4(s),o,a,0)}),a}return null}function a4(e,n,a){if(me.isString(e))try{return(n||JSON.parse)(e),me.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(a||JSON.stringify)(e)}const _o={transitional:Zb,adapter:["xhr","http","fetch"],transformRequest:[function(n,a){const s=a.getContentType()||"",o=s.indexOf("application/json")>-1,c=me.isObject(n);if(c&&me.isHTMLForm(n)&&(n=new FormData(n)),me.isFormData(n))return o?JSON.stringify(Kb(n)):n;if(me.isArrayBuffer(n)||me.isBuffer(n)||me.isStream(n)||me.isFile(n)||me.isBlob(n)||me.isReadableStream(n))return n;if(me.isArrayBufferView(n))return n.buffer;if(me.isURLSearchParams(n))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let f;if(c){if(s.indexOf("application/x-www-form-urlencoded")>-1)return t4(n,this.formSerializer).toString();if((f=me.isFileList(n))||s.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return eu(f?{"files[]":n}:n,h&&new h,this.formSerializer)}}return c||o?(a.setContentType("application/json",!1),a4(n)):n}],transformResponse:[function(n){const a=this.transitional||_o.transitional,s=a&&a.forcedJSONParsing,o=this.responseType==="json";if(me.isResponse(n)||me.isReadableStream(n))return n;if(n&&me.isString(n)&&(s&&!this.responseType||o)){const u=!(a&&a.silentJSONParsing)&&o;try{return JSON.parse(n)}catch(f){if(u)throw f.name==="SyntaxError"?Fe.from(f,Fe.ERR_BAD_RESPONSE,this,null,this.response):f}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:It.classes.FormData,Blob:It.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};me.forEach(["delete","get","head","post","put","patch"],e=>{_o.headers[e]={}});const s4=me.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"]),i4=e=>{const n={};let a,s,o;return e&&e.split(`
`).forEach(function(u){o=u.indexOf(":"),a=u.substring(0,o).trim().toLowerCase(),s=u.substring(o+1).trim(),!(!a||n[a]&&s4[a])&&(a==="set-cookie"?n[a]?n[a].push(s):n[a]=[s]:n[a]=n[a]?n[a]+", "+s:s)}),n},px=Symbol("internals");function Yi(e){return e&&String(e).trim().toLowerCase()}function lc(e){return e===!1||e==null?e:me.isArray(e)?e.map(lc):String(e)}function o4(e){const n=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=a.exec(e);)n[s[1]]=s[2];return n}const l4=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Uf(e,n,a,s,o){if(me.isFunction(s))return s.call(this,n,a);if(o&&(n=a),!!me.isString(n)){if(me.isString(s))return n.indexOf(s)!==-1;if(me.isRegExp(s))return s.test(n)}}function c4(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,a,s)=>a.toUpperCase()+s)}function u4(e,n){const a=me.toCamelCase(" "+n);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+a,{value:function(o,c,u){return this[s].call(this,n,o,c,u)},configurable:!0})})}let rn=class{constructor(n){n&&this.set(n)}set(n,a,s){const o=this;function c(f,h,m){const g=Yi(h);if(!g)throw new Error("header name must be a non-empty string");const x=me.findKey(o,g);(!x||o[x]===void 0||m===!0||m===void 0&&o[x]!==!1)&&(o[x||h]=lc(f))}const u=(f,h)=>me.forEach(f,(m,g)=>c(m,g,h));if(me.isPlainObject(n)||n instanceof this.constructor)u(n,a);else if(me.isString(n)&&(n=n.trim())&&!l4(n))u(i4(n),a);else if(me.isObject(n)&&me.isIterable(n)){let f={},h,m;for(const g of n){if(!me.isArray(g))throw TypeError("Object iterator must return a key-value pair");f[m=g[0]]=(h=f[m])?me.isArray(h)?[...h,g[1]]:[h,g[1]]:g[1]}u(f,a)}else n!=null&&c(a,n,s);return this}get(n,a){if(n=Yi(n),n){const s=me.findKey(this,n);if(s){const o=this[s];if(!a)return o;if(a===!0)return o4(o);if(me.isFunction(a))return a.call(this,o,s);if(me.isRegExp(a))return a.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,a){if(n=Yi(n),n){const s=me.findKey(this,n);return!!(s&&this[s]!==void 0&&(!a||Uf(this,this[s],s,a)))}return!1}delete(n,a){const s=this;let o=!1;function c(u){if(u=Yi(u),u){const f=me.findKey(s,u);f&&(!a||Uf(s,s[f],f,a))&&(delete s[f],o=!0)}}return me.isArray(n)?n.forEach(c):c(n),o}clear(n){const a=Object.keys(this);let s=a.length,o=!1;for(;s--;){const c=a[s];(!n||Uf(this,this[c],c,n,!0))&&(delete this[c],o=!0)}return o}normalize(n){const a=this,s={};return me.forEach(this,(o,c)=>{const u=me.findKey(s,c);if(u){a[u]=lc(o),delete a[c];return}const f=n?c4(c):String(c).trim();f!==c&&delete a[c],a[f]=lc(o),s[f]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const a=Object.create(null);return me.forEach(this,(s,o)=>{s!=null&&s!==!1&&(a[o]=n&&me.isArray(s)?s.join(", "):s)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,a])=>n+": "+a).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...a){const s=new this(n);return a.forEach(o=>s.set(o)),s}static accessor(n){const s=(this[px]=this[px]={accessors:{}}).accessors,o=this.prototype;function c(u){const f=Yi(u);s[f]||(u4(o,u),s[f]=!0)}return me.isArray(n)?n.forEach(c):c(n),this}};rn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);me.reduceDescriptors(rn.prototype,({value:e},n)=>{let a=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(s){this[a]=s}}});me.freezeMethods(rn);function Bf(e,n){const a=this||_o,s=n||a,o=rn.from(s.headers);let c=s.data;return me.forEach(e,function(f){c=f.call(a,c,o.normalize(),n?n.status:void 0)}),o.normalize(),c}function $b(e){return!!(e&&e.__CANCEL__)}function Is(e,n,a){Fe.call(this,e??"canceled",Fe.ERR_CANCELED,n,a),this.name="CanceledError"}me.inherits(Is,Fe,{__CANCEL__:!0});function Qb(e,n,a){const s=a.config.validateStatus;!a.status||!s||s(a.status)?e(a):n(new Fe("Request failed with status code "+a.status,[Fe.ERR_BAD_REQUEST,Fe.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function d4(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function f4(e,n){e=e||10;const a=new Array(e),s=new Array(e);let o=0,c=0,u;return n=n!==void 0?n:1e3,function(h){const m=Date.now(),g=s[c];u||(u=m),a[o]=h,s[o]=m;let x=c,b=0;for(;x!==o;)b+=a[x++],x=x%e;if(o=(o+1)%e,o===c&&(c=(c+1)%e),m-u<n)return;const E=g&&m-g;return E?Math.round(b*1e3/E):void 0}}function h4(e,n){let a=0,s=1e3/n,o,c;const u=(m,g=Date.now())=>{a=g,o=null,c&&(clearTimeout(c),c=null),e(...m)};return[(...m)=>{const g=Date.now(),x=g-a;x>=s?u(m,g):(o=m,c||(c=setTimeout(()=>{c=null,u(o)},s-x)))},()=>o&&u(o)]}const Rc=(e,n,a=3)=>{let s=0;const o=f4(50,250);return h4(c=>{const u=c.loaded,f=c.lengthComputable?c.total:void 0,h=u-s,m=o(h),g=u<=f;s=u;const x={loaded:u,total:f,progress:f?u/f:void 0,bytes:h,rate:m||void 0,estimated:m&&f&&g?(f-u)/m:void 0,event:c,lengthComputable:f!=null,[n?"download":"upload"]:!0};e(x)},a)},gx=(e,n)=>{const a=e!=null;return[s=>n[0]({lengthComputable:a,total:e,loaded:s}),n[1]]},yx=e=>(...n)=>me.asap(()=>e(...n)),m4=It.hasStandardBrowserEnv?((e,n)=>a=>(a=new URL(a,It.origin),e.protocol===a.protocol&&e.host===a.host&&(n||e.port===a.port)))(new URL(It.origin),It.navigator&&/(msie|trident)/i.test(It.navigator.userAgent)):()=>!0,p4=It.hasStandardBrowserEnv?{write(e,n,a,s,o,c){const u=[e+"="+encodeURIComponent(n)];me.isNumber(a)&&u.push("expires="+new Date(a).toGMTString()),me.isString(s)&&u.push("path="+s),me.isString(o)&&u.push("domain="+o),c===!0&&u.push("secure"),document.cookie=u.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function g4(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function y4(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function Jb(e,n,a){let s=!g4(n);return e&&(s||a==!1)?y4(e,n):n}const xx=e=>e instanceof rn?{...e}:e;function za(e,n){n=n||{};const a={};function s(m,g,x,b){return me.isPlainObject(m)&&me.isPlainObject(g)?me.merge.call({caseless:b},m,g):me.isPlainObject(g)?me.merge({},g):me.isArray(g)?g.slice():g}function o(m,g,x,b){if(me.isUndefined(g)){if(!me.isUndefined(m))return s(void 0,m,x,b)}else return s(m,g,x,b)}function c(m,g){if(!me.isUndefined(g))return s(void 0,g)}function u(m,g){if(me.isUndefined(g)){if(!me.isUndefined(m))return s(void 0,m)}else return s(void 0,g)}function f(m,g,x){if(x in n)return s(m,g);if(x in e)return s(void 0,m)}const h={url:c,method:c,data:c,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:f,headers:(m,g,x)=>o(xx(m),xx(g),x,!0)};return me.forEach(Object.keys({...e,...n}),function(g){const x=h[g]||o,b=x(e[g],n[g],g);me.isUndefined(b)&&x!==f||(a[g]=b)}),a}const e1=e=>{const n=za({},e);let{data:a,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:c,headers:u,auth:f}=n;n.headers=u=rn.from(u),n.url=Wb(Jb(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&u.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let h;if(me.isFormData(a)){if(It.hasStandardBrowserEnv||It.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if((h=u.getContentType())!==!1){const[m,...g]=h?h.split(";").map(x=>x.trim()).filter(Boolean):[];u.setContentType([m||"multipart/form-data",...g].join("; "))}}if(It.hasStandardBrowserEnv&&(s&&me.isFunction(s)&&(s=s(n)),s||s!==!1&&m4(n.url))){const m=o&&c&&p4.read(c);m&&u.set(o,m)}return n},x4=typeof XMLHttpRequest<"u",v4=x4&&function(e){return new Promise(function(a,s){const o=e1(e);let c=o.data;const u=rn.from(o.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:m}=o,g,x,b,E,_;function S(){E&&E(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(g),o.signal&&o.signal.removeEventListener("abort",g)}let A=new XMLHttpRequest;A.open(o.method.toUpperCase(),o.url,!0),A.timeout=o.timeout;function T(){if(!A)return;const L=rn.from("getAllResponseHeaders"in A&&A.getAllResponseHeaders()),N={data:!f||f==="text"||f==="json"?A.responseText:A.response,status:A.status,statusText:A.statusText,headers:L,config:e,request:A};Qb(function(F){a(F),S()},function(F){s(F),S()},N),A=null}"onloadend"in A?A.onloadend=T:A.onreadystatechange=function(){!A||A.readyState!==4||A.status===0&&!(A.responseURL&&A.responseURL.indexOf("file:")===0)||setTimeout(T)},A.onabort=function(){A&&(s(new Fe("Request aborted",Fe.ECONNABORTED,e,A)),A=null)},A.onerror=function(){s(new Fe("Network Error",Fe.ERR_NETWORK,e,A)),A=null},A.ontimeout=function(){let q=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const N=o.transitional||Zb;o.timeoutErrorMessage&&(q=o.timeoutErrorMessage),s(new Fe(q,N.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,e,A)),A=null},c===void 0&&u.setContentType(null),"setRequestHeader"in A&&me.forEach(u.toJSON(),function(q,N){A.setRequestHeader(N,q)}),me.isUndefined(o.withCredentials)||(A.withCredentials=!!o.withCredentials),f&&f!=="json"&&(A.responseType=o.responseType),m&&([b,_]=Rc(m,!0),A.addEventListener("progress",b)),h&&A.upload&&([x,E]=Rc(h),A.upload.addEventListener("progress",x),A.upload.addEventListener("loadend",E)),(o.cancelToken||o.signal)&&(g=L=>{A&&(s(!L||L.type?new Is(null,e,A):L),A.abort(),A=null)},o.cancelToken&&o.cancelToken.subscribe(g),o.signal&&(o.signal.aborted?g():o.signal.addEventListener("abort",g)));const C=d4(o.url);if(C&&It.protocols.indexOf(C)===-1){s(new Fe("Unsupported protocol "+C+":",Fe.ERR_BAD_REQUEST,e));return}A.send(c||null)})},b4=(e,n)=>{const{length:a}=e=e?e.filter(Boolean):[];if(n||a){let s=new AbortController,o;const c=function(m){if(!o){o=!0,f();const g=m instanceof Error?m:this.reason;s.abort(g instanceof Fe?g:new Is(g instanceof Error?g.message:g))}};let u=n&&setTimeout(()=>{u=null,c(new Fe(`timeout ${n} of ms exceeded`,Fe.ETIMEDOUT))},n);const f=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(m=>{m.unsubscribe?m.unsubscribe(c):m.removeEventListener("abort",c)}),e=null)};e.forEach(m=>m.addEventListener("abort",c));const{signal:h}=s;return h.unsubscribe=()=>me.asap(f),h}},w4=function*(e,n){let a=e.byteLength;if(a<n){yield e;return}let s=0,o;for(;s<a;)o=s+n,yield e.slice(s,o),s=o},S4=async function*(e,n){for await(const a of j4(e))yield*w4(a,n)},j4=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:a,value:s}=await n.read();if(a)break;yield s}}finally{await n.cancel()}},vx=(e,n,a,s)=>{const o=S4(e,n);let c=0,u,f=h=>{u||(u=!0,s&&s(h))};return new ReadableStream({async pull(h){try{const{done:m,value:g}=await o.next();if(m){f(),h.close();return}let x=g.byteLength;if(a){let b=c+=x;a(b)}h.enqueue(new Uint8Array(g))}catch(m){throw f(m),m}},cancel(h){return f(h),o.return()}},{highWaterMark:2})},tu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",t1=tu&&typeof ReadableStream=="function",E4=tu&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),n1=(e,...n)=>{try{return!!e(...n)}catch{return!1}},T4=t1&&n1(()=>{let e=!1;const n=new Request(It.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),bx=64*1024,Rh=t1&&n1(()=>me.isReadableStream(new Response("").body)),Cc={stream:Rh&&(e=>e.body)};tu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!Cc[n]&&(Cc[n]=me.isFunction(e[n])?a=>a[n]():(a,s)=>{throw new Fe(`Response type '${n}' is not supported`,Fe.ERR_NOT_SUPPORT,s)})})})(new Response);const A4=async e=>{if(e==null)return 0;if(me.isBlob(e))return e.size;if(me.isSpecCompliantForm(e))return(await new Request(It.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(me.isArrayBufferView(e)||me.isArrayBuffer(e))return e.byteLength;if(me.isURLSearchParams(e)&&(e=e+""),me.isString(e))return(await E4(e)).byteLength},N4=async(e,n)=>{const a=me.toFiniteNumber(e.getContentLength());return a??A4(n)},_4=tu&&(async e=>{let{url:n,method:a,data:s,signal:o,cancelToken:c,timeout:u,onDownloadProgress:f,onUploadProgress:h,responseType:m,headers:g,withCredentials:x="same-origin",fetchOptions:b}=e1(e);m=m?(m+"").toLowerCase():"text";let E=b4([o,c&&c.toAbortSignal()],u),_;const S=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let A;try{if(h&&T4&&a!=="get"&&a!=="head"&&(A=await N4(g,s))!==0){let N=new Request(n,{method:"POST",body:s,duplex:"half"}),z;if(me.isFormData(s)&&(z=N.headers.get("content-type"))&&g.setContentType(z),N.body){const[F,H]=gx(A,Rc(yx(h)));s=vx(N.body,bx,F,H)}}me.isString(x)||(x=x?"include":"omit");const T="credentials"in Request.prototype;_=new Request(n,{...b,signal:E,method:a.toUpperCase(),headers:g.normalize().toJSON(),body:s,duplex:"half",credentials:T?x:void 0});let C=await fetch(_,b);const L=Rh&&(m==="stream"||m==="response");if(Rh&&(f||L&&S)){const N={};["status","statusText","headers"].forEach(M=>{N[M]=C[M]});const z=me.toFiniteNumber(C.headers.get("content-length")),[F,H]=f&&gx(z,Rc(yx(f),!0))||[];C=new Response(vx(C.body,bx,F,()=>{H&&H(),S&&S()}),N)}m=m||"text";let q=await Cc[me.findKey(Cc,m)||"text"](C,e);return!L&&S&&S(),await new Promise((N,z)=>{Qb(N,z,{data:q,headers:rn.from(C.headers),status:C.status,statusText:C.statusText,config:e,request:_})})}catch(T){throw S&&S(),T&&T.name==="TypeError"&&/Load failed|fetch/i.test(T.message)?Object.assign(new Fe("Network Error",Fe.ERR_NETWORK,e,_),{cause:T.cause||T}):Fe.from(T,T&&T.code,e,_)}}),Ch={http:IT,xhr:v4,fetch:_4};me.forEach(Ch,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const wx=e=>`- ${e}`,k4=e=>me.isFunction(e)||e===null||e===!1,r1={getAdapter:e=>{e=me.isArray(e)?e:[e];const{length:n}=e;let a,s;const o={};for(let c=0;c<n;c++){a=e[c];let u;if(s=a,!k4(a)&&(s=Ch[(u=String(a)).toLowerCase()],s===void 0))throw new Fe(`Unknown adapter '${u}'`);if(s)break;o[u||"#"+c]=s}if(!s){const c=Object.entries(o).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let u=n?c.length>1?`since :
`+c.map(wx).join(`
`):" "+wx(c[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return s},adapters:Ch};function Ff(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Is(null,e)}function Sx(e){return Ff(e),e.headers=rn.from(e.headers),e.data=Bf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),r1.getAdapter(e.adapter||_o.adapter)(e).then(function(s){return Ff(e),s.data=Bf.call(e,e.transformResponse,s),s.headers=rn.from(s.headers),s},function(s){return $b(s)||(Ff(e),s&&s.response&&(s.response.data=Bf.call(e,e.transformResponse,s.response),s.response.headers=rn.from(s.response.headers))),Promise.reject(s)})}const a1="1.11.0",nu={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{nu[e]=function(s){return typeof s===e||"a"+(n<1?"n ":" ")+e}});const jx={};nu.transitional=function(n,a,s){function o(c,u){return"[Axios v"+a1+"] Transitional option '"+c+"'"+u+(s?". "+s:"")}return(c,u,f)=>{if(n===!1)throw new Fe(o(u," has been removed"+(a?" in "+a:"")),Fe.ERR_DEPRECATED);return a&&!jx[u]&&(jx[u]=!0,console.warn(o(u," has been deprecated since v"+a+" and will be removed in the near future"))),n?n(c,u,f):!0}};nu.spelling=function(n){return(a,s)=>(console.warn(`${s} is likely a misspelling of ${n}`),!0)};function O4(e,n,a){if(typeof e!="object")throw new Fe("options must be an object",Fe.ERR_BAD_OPTION_VALUE);const s=Object.keys(e);let o=s.length;for(;o-- >0;){const c=s[o],u=n[c];if(u){const f=e[c],h=f===void 0||u(f,c,e);if(h!==!0)throw new Fe("option "+c+" must be "+h,Fe.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Fe("Unknown option "+c,Fe.ERR_BAD_OPTION)}}const cc={assertOptions:O4,validators:nu},Jn=cc.validators;let Ca=class{constructor(n){this.defaults=n||{},this.interceptors={request:new mx,response:new mx}}async request(n,a){try{return await this._request(n,a)}catch(s){if(s instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const c=o.stack?o.stack.replace(/^.+\n/,""):"";try{s.stack?c&&!String(s.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+c):s.stack=c}catch{}}throw s}}_request(n,a){typeof n=="string"?(a=a||{},a.url=n):a=n||{},a=za(this.defaults,a);const{transitional:s,paramsSerializer:o,headers:c}=a;s!==void 0&&cc.assertOptions(s,{silentJSONParsing:Jn.transitional(Jn.boolean),forcedJSONParsing:Jn.transitional(Jn.boolean),clarifyTimeoutError:Jn.transitional(Jn.boolean)},!1),o!=null&&(me.isFunction(o)?a.paramsSerializer={serialize:o}:cc.assertOptions(o,{encode:Jn.function,serialize:Jn.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),cc.assertOptions(a,{baseUrl:Jn.spelling("baseURL"),withXsrfToken:Jn.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let u=c&&me.merge(c.common,c[a.method]);c&&me.forEach(["delete","get","head","post","put","patch","common"],_=>{delete c[_]}),a.headers=rn.concat(u,c);const f=[];let h=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(a)===!1||(h=h&&S.synchronous,f.unshift(S.fulfilled,S.rejected))});const m=[];this.interceptors.response.forEach(function(S){m.push(S.fulfilled,S.rejected)});let g,x=0,b;if(!h){const _=[Sx.bind(this),void 0];for(_.unshift(...f),_.push(...m),b=_.length,g=Promise.resolve(a);x<b;)g=g.then(_[x++],_[x++]);return g}b=f.length;let E=a;for(x=0;x<b;){const _=f[x++],S=f[x++];try{E=_(E)}catch(A){S.call(this,A);break}}try{g=Sx.call(this,E)}catch(_){return Promise.reject(_)}for(x=0,b=m.length;x<b;)g=g.then(m[x++],m[x++]);return g}getUri(n){n=za(this.defaults,n);const a=Jb(n.baseURL,n.url,n.allowAbsoluteUrls);return Wb(a,n.params,n.paramsSerializer)}};me.forEach(["delete","get","head","options"],function(n){Ca.prototype[n]=function(a,s){return this.request(za(s||{},{method:n,url:a,data:(s||{}).data}))}});me.forEach(["post","put","patch"],function(n){function a(s){return function(c,u,f){return this.request(za(f||{},{method:n,headers:s?{"Content-Type":"multipart/form-data"}:{},url:c,data:u}))}}Ca.prototype[n]=a(),Ca.prototype[n+"Form"]=a(!0)});let R4=class s1{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(c){a=c});const s=this;this.promise.then(o=>{if(!s._listeners)return;let c=s._listeners.length;for(;c-- >0;)s._listeners[c](o);s._listeners=null}),this.promise.then=o=>{let c;const u=new Promise(f=>{s.subscribe(f),c=f}).then(o);return u.cancel=function(){s.unsubscribe(c)},u},n(function(c,u,f){s.reason||(s.reason=new Is(c,u,f),a(s.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const n=new AbortController,a=s=>{n.abort(s)};return this.subscribe(a),n.signal.unsubscribe=()=>this.unsubscribe(a),n.signal}static source(){let n;return{token:new s1(function(o){n=o}),cancel:n}}};function C4(e){return function(a){return e.apply(null,a)}}function D4(e){return me.isObject(e)&&e.isAxiosError===!0}const Dh={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(Dh).forEach(([e,n])=>{Dh[n]=e});function i1(e){const n=new Ca(e),a=Pb(Ca.prototype.request,n);return me.extend(a,Ca.prototype,n,{allOwnKeys:!0}),me.extend(a,n,null,{allOwnKeys:!0}),a.create=function(o){return i1(za(e,o))},a}const pt=i1(_o);pt.Axios=Ca;pt.CanceledError=Is;pt.CancelToken=R4;pt.isCancel=$b;pt.VERSION=a1;pt.toFormData=eu;pt.AxiosError=Fe;pt.Cancel=pt.CanceledError;pt.all=function(n){return Promise.all(n)};pt.spread=C4;pt.isAxiosError=D4;pt.mergeConfig=za;pt.AxiosHeaders=rn;pt.formToJSON=e=>Kb(me.isHTMLForm(e)?new FormData(e):e);pt.getAdapter=r1.getAdapter;pt.HttpStatusCode=Dh;pt.default=pt;const{Axios:uD,AxiosError:dD,CanceledError:fD,isCancel:hD,CancelToken:mD,VERSION:pD,all:gD,Cancel:yD,isAxiosError:xD,spread:vD,toFormData:bD,AxiosHeaders:wD,HttpStatusCode:SD,formToJSON:jD,getAdapter:ED,mergeConfig:TD}=pt,kn="https://aaaogo.xyz/api",As="https://aaaogo.xyz/",rt={SIGNUP:"/user/signup",LOGIN:"/user/login",VERIFY_OTP:"/user/verify-otp",GET_CURRENT_USER:"/drivers/get-current-user",LOGOUT:"/user/logout",FORGOT_PASSWORD:"/user/forgot-password",RESET_PASSWORD:"/user/reset-password",REFERRAL_TREE:"/user/referral-tree",GET_USER_BY_ID:"/user/referral-tree",RESEND_OTP:"/user/resend-otp",REFERRAL_LINK:"/user/referral-link",GET_USER_BY_USERNAME:"/user/by-username",SEND_EMAIL_OTP:"/email-verification/send-otp",MLM_USER_DASHBOARD:"/mlm/user-dashboard",DDR_LEADERBOARD:"/mlm/ddr/leaderboard",CRR_RANK_TRACKING:"/mlm/crr/rank-tracking",CRR_LEADERBOARD:"/mlm/crr/leaderboard",BBR_PAST_WINS:"/mlm/bbr/past-wins",HLR_PROGRESS:"/mlm/hlr/progress",HLR_LEADERBOARD:"/mlm/hlr/leaderboard",REGIONAL_PROGRESS:"/mlm/regional/progress",REGIONAL_LEADERBOARD:"/mlm/regional/leaderboard",REGIONAL_GLOBAL_AMBASSADORS:"/mlm/regional/global-ambassadors",REGIONAL_COUNTRY_UPDATE:"/mlm/regional/country-update-request"},M4={TIMEOUT:1e4},ru=e=>{if(!e)return null;let n=e.trim();return n=n.replace(/^["']|["']$/g,""),n.split(".").length!==3?(console.warn("Token does not appear to be in valid JWT format"),null):n},o1=e=>{if(!e)return!1;const n=ru(e);if(!n)return!1;const a=n.split(".");return a.length!==3?!1:a.every(s=>s&&s.length>0)};/*! js-cookie v3.0.5 | MIT */function Jl(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var s in a)e[s]=a[s]}return e}var L4={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 Mh(e,n){function a(o,c,u){if(!(typeof document>"u")){u=Jl({},n,u),typeof u.expires=="number"&&(u.expires=new Date(Date.now()+u.expires*864e5)),u.expires&&(u.expires=u.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var f="";for(var h in u)u[h]&&(f+="; "+h,u[h]!==!0&&(f+="="+u[h].split(";")[0]));return document.cookie=o+"="+e.write(c,o)+f}}function s(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var c=document.cookie?document.cookie.split("; "):[],u={},f=0;f<c.length;f++){var h=c[f].split("="),m=h.slice(1).join("=");try{var g=decodeURIComponent(h[0]);if(u[g]=e.read(m,g),o===g)break}catch{}}return o?u[o]:u}}return Object.create({set:a,get:s,remove:function(o,c){a(o,"",Jl({},c,{expires:-1}))},withAttributes:function(o){return Mh(this.converter,Jl({},this.attributes,o))},withConverter:function(o){return Mh(Jl({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}var eo=Mh(L4,{path:"/"});const Ht={TOKEN:"auth_token",USER:"auth_user",SIGNUP_EMAIL:"signup_email",SESSION_ID:"session_id"},P4={expires:7,secure:!0,sameSite:"strict"};class z4{constructor(){this.sessionId=this.generateSessionId(),this.initializeSession()}generateSessionId(){const n="session_"+Date.now()+"_"+Math.random().toString(36).substr(2,9);return console.log("SessionManager - Generated sessionId:",n),n}initializeSession(){const n=this.getSessionId();n?(this.sessionId=n,console.log("SessionManager - Using existing sessionId:",this.sessionId)):this.setSessionId(this.sessionId)}getSessionId(){const n=localStorage.getItem(Ht.SESSION_ID);return console.log("SessionManager - getSessionId:",n),n}setSessionId(n){localStorage.setItem(Ht.SESSION_ID,n),console.log("SessionManager - setSessionId:",n)}getToken(){const n=eo.get(Ht.TOKEN),a=localStorage.getItem(Ht.TOKEN);return console.log("SessionManager - getToken - Cookie token:",n?"exists":"none"),console.log("SessionManager - getToken - LocalStorage token:",a?"exists":"none"),n||a}setToken(n){if(!n)return console.warn("SessionManager - setToken - Empty token provided"),!1;try{return eo.set(Ht.TOKEN,n,P4),localStorage.setItem(Ht.TOKEN,n),console.log("SessionManager - setToken - Token stored successfully"),console.log("SessionManager - setToken - Token in cookies:",!!eo.get(Ht.TOKEN)),console.log("SessionManager - setToken - Token in localStorage:",!!localStorage.getItem(Ht.TOKEN)),!0}catch(a){return console.error("SessionManager - setToken - Error:",a),!1}}removeToken(){try{return eo.remove(Ht.TOKEN),localStorage.removeItem(Ht.TOKEN),console.log("SessionManager - removeToken - Token removed successfully"),!0}catch(n){return console.error("SessionManager - removeToken - Error:",n),!1}}getUser(){try{const n=localStorage.getItem(Ht.USER),a=n?JSON.parse(n):null;return console.log("SessionManager - getUser - Retrieved user:",a),a}catch(n){return console.error("SessionManager - getUser - Error parsing user data:",n),null}}setUser(n){if(!n)return console.warn("SessionManager - setUser - Empty user data provided"),!1;try{return localStorage.setItem(Ht.USER,JSON.stringify(n)),console.log("SessionManager - setUser - Stored user:",n),!0}catch(a){return console.error("SessionManager - setUser - Error storing user data:",a),!1}}removeUser(){try{return localStorage.removeItem(Ht.USER),console.log("SessionManager - removeUser - User data removed successfully"),!0}catch(n){return console.error("SessionManager - removeUser - Error:",n),!1}}getSignupEmail(){const n=localStorage.getItem(Ht.SIGNUP_EMAIL);return console.log("SessionManager - getSignupEmail:",n),n}setSignupEmail(n){n&&(localStorage.setItem(Ht.SIGNUP_EMAIL,n),console.log("SessionManager - setSignupEmail:",n))}removeSignupEmail(){localStorage.removeItem(Ht.SIGNUP_EMAIL),console.log("SessionManager - removeSignupEmail - Signup email removed")}isAuthenticated(){const n=this.getToken(),a=this.getUser(),s=!!(n&&a);return console.log("SessionManager - isAuthenticated:",{hasToken:!!n,hasUser:!!a,isAuthenticated:s}),s}createSession(n,a){console.log("SessionManager - createSession - Token:",n),console.log("SessionManager - createSession - User:",a);const s=this.setToken(n),o=this.setUser(a);return s&&o?(console.log("SessionManager - createSession - Session created successfully"),!0):(console.error("SessionManager - createSession - Failed"),!1)}clearSession(){console.log("SessionManager - clearSession"),this.removeToken(),this.removeUser(),this.removeSignupEmail(),console.log("SessionManager - clearSession - Session cleared successfully")}refreshSession(n,a){return console.log("SessionManager - refreshSession - Token:",n),console.log("SessionManager - refreshSession - User:",a),n&&a?this.createSession(n,a):(console.warn("SessionManager - refreshSession - Empty data provided"),!1)}getSessionInfo(){const n={sessionId:this.getSessionId(),hasToken:!!this.getToken(),hasUser:!!this.getUser(),isAuthenticated:this.isAuthenticated(),signupEmail:this.getSignupEmail(),tokenLength:this.getToken()?.length||0};return console.log("SessionManager - getSessionInfo:",n),n}validateTokenFormat(n){if(!n)return console.warn("SessionManager - validateTokenFormat - No token provided"),!1;const a=n.split("."),s=a.length===3&&a.every(o=>o&&o.length>0);return console.log("SessionManager - validateTokenFormat - Token valid:",s),s}}const Be=new z4,At=pt.create({baseURL:kn,headers:{"Content-Type":"application/json"},timeout:M4.TIMEOUT});At.interceptors.request.use(e=>{const n=Be.getToken();if(console.log("API Request - URL:",e.url,"Method:",e.method,"Data:",JSON.stringify(e.data,null,2),"Headers:",e.headers),n){const a=ru(n);o1(a)?e.headers.Authorization=`Bearer ${a}`:(console.warn("Invalid token format, proceeding with request"),e.headers.Authorization=`Bearer ${a}`)}return e},e=>(console.error("API Request - Interceptor error:",e),Promise.reject(e)));At.interceptors.response.use(e=>(console.log("API Response - Success:","Status:",e.status,"URL:",e.config.url,"Data:",JSON.stringify(e.data,null,2),"Headers:",e.headers),e),e=>(console.error("API Response - Error:","Status:",e.response?.status,"Message:",e.response?.data?.message,"URL:",e.config?.url,"Error Data:",JSON.stringify(e.response?.data,null,2),"Headers:",e.response?.headers),e.code==="ECONNABORTED"?(console.log("API Request - Timeout error"),Promise.reject({message:"Request timed out. Please try again."})):(e.response?.status===401&&(e.config?.url?.includes("/login")||e.config?.url?.includes("/signup")||e.config?.url?.includes("/logout")||e.config?.url?.includes("/verify-otp")||e.config?.url?.includes("/forgot-password")||e.config?.url?.includes("/reset-password")||(console.log("API Response - 401 Unauthorized, clearing session"),Be.clearSession(),window.dispatchEvent(new CustomEvent("sessionCleared",{detail:{reason:"401_unauthorized",endpoint:e.config?.url}})))),Promise.reject(e))));const hn={signup:e=>(console.log("authAPI.signup - Sending request with data:",JSON.stringify(e,null,2)),At.post(rt.SIGNUP,e)),sendEmailOTP:e=>(console.log("authAPI.sendEmailOTP - Sending request with data:",JSON.stringify(e,null,2)),At.post(rt.SEND_EMAIL_OTP,e)),verifyOTP:e=>(console.log("authAPI.verifyOTP - Sending request with data:",JSON.stringify(e,null,2)),At.post(rt.VERIFY_OTP,e).then(n=>(console.log("authAPI.verifyOTP - Response received:",JSON.stringify(n.data,null,2)),n))),login:e=>(console.log("authAPI.login - Sending request with data:",JSON.stringify(e,null,2)),At.post(rt.LOGIN,e)),getCurrentUser:()=>(console.log("authAPI.getCurrentUser - Sending request"),At.get(rt.GET_CURRENT_USER)),logout:()=>(console.log("authAPI.logout - Sending request"),At.post(rt.LOGOUT)),forgotPassword:e=>(console.log("authAPI.forgotPassword - Sending request with data:",JSON.stringify(e,null,2)),At.post(rt.FORGOT_PASSWORD,e)),resetPassword:e=>(console.log("authAPI.resetPassword - Sending request with data:",JSON.stringify(e,null,2)),At.post(rt.RESET_PASSWORD,e)),getReferralTree:e=>(console.log("authAPI.getReferralTree - Sending request with userId:",e),At.get(e?`${rt.REFERRAL_TREE}?userId=${e}`:rt.REFERRAL_TREE)),getUserById:e=>(console.log("authAPI.getUserById - Sending request with userId:",e),At.get(`${rt.GET_USER_BY_ID}?userId=${e}`)),resendOTP:e=>(console.log("authAPI.resendOTP - Sending request with data:",JSON.stringify(e,null,2)),At.post(rt.RESEND_OTP,e)),getReferralLink:()=>(console.log("authAPI.getReferralLink - Sending request"),At.get(rt.REFERRAL_LINK)),getUserByUsername:e=>(console.log("authAPI.getUserByUsername - Sending request with username:",e),At.get(`${rt.GET_USER_BY_USERNAME}?username=${e}`)),getMlmDashboard:e=>(console.log("authAPI.getMlmDashboard - Sending request with userId:",e),At.get(`${rt.MLM_USER_DASHBOARD}/${e}`))},au={user:null,token:Be.getToken(),isAuthenticated:Be.isAuthenticated(),loading:!1,error:null,signupEmail:Be.getSignupEmail(),referralTree:null,referralTreeLoading:!1,referralTreeError:null,referralTreeAttempted:!1};console.log("=== REDUX INITIAL STATE ===");console.log("Session info:",Be.getSessionInfo());console.log("Initial state user:",au.user);console.log("Initial state token:",au.token);console.log("Initial state isAuthenticated:",au.isAuthenticated);console.log("==========================");const uc=Dn("user/login",async(e,{dispatch:n,rejectWithValue:a})=>{console.log("loginUser - Attempting login with credentials:",e);const s=qn("Logging in...");try{const o=await hn.login(e);ot(s);const{user:c,token:u}=o.data;if(!Be.createSession(u,c))throw new Error("Failed to create user session");return console.log("loginUser - Success, user:",c),ta("Login successful!"),{user:c,token:u}}catch(o){ot(s);const c=o.response?.data||{message:o.message||"Login failed"};return console.log("loginUser - Error:",c),it(c.message||"Login failed"),a(c.message||"Login failed")}}),dc=Dn("user/signup",async(e,{rejectWithValue:n})=>{const a=qn("Creating account...");try{const s=await hn.signup(e);return ot(a),s.data.token&&s.data.user?ta(s.data.message||"Registration completed successfully"):ta(s.data.message||"Account created successfully"),s.data}catch(s){ot(a);const o=s.response?.data||{message:s.message||"Signup failed"};return console.log("signupUser - Error:",o),it(o.message||"Signup failed"),n(o)}}),fc=Dn("user/forgotPassword",async(e,{rejectWithValue:n})=>{const a=qn("Sending password reset OTP...");try{const s=await hn.forgotPassword(e);return ot(a),Be.setSignupEmail(e.email),s.data.userId&&localStorage.setItem("signupUserId",s.data.userId),ta(s.data.message||"Reset OTP sent to email."),s.data}catch(s){ot(a);const o=s.response?.data||{message:s.message||"Failed to send reset OTP"};return it(o.message||"Failed to send reset OTP"),n(o.message||"Failed to send reset OTP")}}),hc=Dn("user/resetPassword",async(e,{rejectWithValue:n})=>{const a=qn("Resetting password...");try{const s=await hn.resetPassword(e);return ot(a),Be.removeSignupEmail(),localStorage.removeItem("signupUserId"),ta(s.data.message||"Password reset successful."),s.data}catch(s){ot(a);const o=s.response?.data||{message:s.message||"Password reset failed"};return it(o.message||"Password reset failed"),n(o.message||"Password reset failed")}}),mc=Dn("user/logout",async(e,{rejectWithValue:n})=>{const a=qn("Logging out...");try{return Be.clearSession(),ot(a),ta("Logged out successfully"),{message:"Logged out successfully"}}catch(s){ot(a);const o=s.message||"Logout failed";return it(o),n(o)}}),Cs=Dn("user/checkCurrentUser",async(e,{rejectWithValue:n})=>{try{const a=await hn.getCurrentUser();console.log("checkCurrentUser - Raw response:",a.data);const{user:s,token:o}=a.data;if(!s||!o)throw new Error("Invalid response: user or token missing");if(!Be.createSession(o,s))throw new Error("Failed to create session");return console.log("checkCurrentUser - User data:",s),console.log("checkCurrentUser - Token:",o),{user:s,token:o}}catch(a){console.error("checkCurrentUser - Error:",a);const s=a.response?.data||{message:a.message||"Failed to get user data"};return a.response?.status===401&&(console.log("checkCurrentUser - 401 Unauthorized, clearing session"),Be.clearSession()),n(s.message||"Failed to get user data")}}),Vf=Dn("user/resendOTP",async(e,{rejectWithValue:n})=>{const a=qn("Resending OTP...");try{const s=await hn.resendOTP({email:e});return ot(a),ta(s.data.message||"OTP resent successfully!"),s.data}catch(s){ot(a);const o=s.response?.data||{message:s.message||"Failed to resend OTP"};return it(o.message||"Failed to resend OTP"),n(o.message||"Failed to resend OTP")}}),Ds=Dn("user/fetchReferralTree",async(e,{rejectWithValue:n,getState:a})=>{const s=a();if(s.user.referralTreeAttempted&&s.user.referralTreeError)return console.log("fetchReferralTree - Already attempted and failed, skipping"),n("Referral tree fetch already attempted");const o=Be.getToken(),c=Be.getUser(),u=Be.isAuthenticated();if(!o||!c||!u)return console.log("fetchReferralTree - No valid session"),n("No valid session");const f=qn("Loading referral tree...");try{const h=await hn.getReferralTree();return ot(f),console.log("fetchReferralTree - Success:",h.data),h.data}catch{console.log("fetchReferralTree - API call failed, trying fetch directly");try{const m=Be.getToken().replace(/['"]/g,""),g=await fetch(`${kn}/user/referral-tree`,{method:"GET",headers:{Authorization:`Bearer ${m}`,"Content-Type":"application/json"}});if(g.ok){const x=await g.json();return ot(f),console.log("fetchReferralTree - Fetch call succeeded:",x),x}else{const x=await g.json();return console.log("fetchReferralTree - Fetch call failed:",g.status,x),ot(f),it(x.message||"Failed to load referral tree"),n(x.message||"Failed to load referral tree")}}catch(m){return console.log("fetchReferralTree - Fetch call also failed:",m),ot(f),it(m.message||"Failed to load referral tree"),n(m.message||"Failed to load referral tree")}}}),l1=Kc({name:"user",initialState:au,reducers:{setUser:(e,n)=>{e.user=n.payload,e.isAuthenticated=!0,Be.setUser(n.payload),console.log("setUser - Updated user:",n.payload)},setToken:(e,n)=>{e.token=n.payload,e.isAuthenticated=!0,Be.setToken(n.payload),console.log("setToken - Updated token:",n.payload)},logout:e=>{e.user=null,e.token=null,e.isAuthenticated=!1,e.error=null,e.signupEmail=null,e.referralTree=null,e.referralTreeError=null,e.referralTreeAttempted=!1,Be.clearSession(),console.log("logout - Session cleared"),ta("Logged out successfully")},clearError:e=>{e.error=null},setLoading:(e,n)=>{e.loading=n.payload},clearSignupEmail:e=>{e.signupEmail=null,Be.removeSignupEmail()},clearReferralTree:e=>{e.referralTree=null,e.referralTreeError=null,e.referralTreeAttempted=!1},syncWithSession:e=>{const n=Be.getUser(),a=Be.getToken();e.user=n,e.token=a,e.isAuthenticated=Be.isAuthenticated(),e.signupEmail=Be.getSignupEmail(),console.log("syncWithSession - Synced state:",{user:e.user,token:e.token,isAuthenticated:e.isAuthenticated,signupEmail:e.signupEmail})},resetReferralTreeAttempt:e=>{e.referralTreeAttempted=!1,e.referralTreeError=null}},extraReducers:e=>{e.addCase(uc.pending,n=>{n.loading=!0,n.error=null,console.log("loginUser - Pending")}).addCase(uc.fulfilled,(n,a)=>{n.loading=!1,n.user=a.payload.user,n.token=a.payload.token,n.isAuthenticated=!0,n.error=null,console.log("loginUser - Fulfilled, user:",a.payload.user)}).addCase(uc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("loginUser - Rejected:",a.payload)}).addCase(dc.pending,n=>{n.loading=!0,n.error=null,console.log("signupUser - Pending")}).addCase(dc.fulfilled,(n,a)=>{n.loading=!1,n.signupData=a.payload,n.signupEmail=Be.getSignupEmail(),n.error=null,console.log("signupUser - Fulfilled, signupEmail:",n.signupEmail)}).addCase(dc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("signupUser - Rejected:",a.payload)}).addCase(fc.pending,n=>{n.loading=!0,n.error=null,console.log("forgotPassword - Pending")}).addCase(fc.fulfilled,(n,a)=>{n.loading=!1,n.signupEmail=Be.getSignupEmail(),n.error=null,console.log("forgotPassword - Fulfilled, signupEmail:",n.signupEmail)}).addCase(fc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("forgotPassword - Rejected:",a.payload)}).addCase(hc.pending,n=>{n.loading=!0,n.error=null,console.log("resetPassword - Pending")}).addCase(hc.fulfilled,(n,a)=>{n.loading=!1,n.signupEmail=null,n.error=null,console.log("resetPassword - Fulfilled")}).addCase(hc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("resetPassword - Rejected:",a.payload)}).addCase(mc.pending,n=>{n.loading=!0,n.error=null,console.log("logoutUser - Pending")}).addCase(mc.fulfilled,n=>{n.loading=!1,n.user=null,n.token=null,n.isAuthenticated=!1,n.error=null,n.signupEmail=null,n.referralTree=null,n.referralTreeError=null,n.referralTreeAttempted=!1,console.log("logoutUser - Fulfilled")}).addCase(mc.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,n.user=null,n.token=null,n.isAuthenticated=!1,n.signupEmail=null,n.referralTree=null,n.referralTreeError=null,n.referralTreeAttempted=!1,Be.clearSession(),console.log("logoutUser - Rejected:",a.payload)}).addCase(Cs.pending,n=>{n.loading=!0,n.error=null,console.log("checkCurrentUser - Pending")}).addCase(Cs.fulfilled,(n,a)=>{n.loading=!1,n.user=a.payload.user,n.token=a.payload.token,n.isAuthenticated=!0,n.error=null,console.log("checkCurrentUser - Fulfilled, user:",a.payload.user)}).addCase(Cs.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,a.payload?.includes("401")||a.payload?.includes("Unauthorized")?(n.user=null,n.token=null,n.isAuthenticated=!1,n.referralTree=null,n.referralTreeError=null,n.referralTreeAttempted=!1,Be.clearSession(),console.log("checkCurrentUser - Rejected: 401 Unauthorized, session cleared")):console.log("checkCurrentUser - Rejected, keeping session:",a.payload)}).addCase(Ds.pending,n=>{n.referralTreeLoading=!0,n.referralTreeError=null,n.referralTreeAttempted=!0,console.log("fetchReferralTree - Pending")}).addCase(Ds.fulfilled,(n,a)=>{n.referralTreeLoading=!1,n.referralTree=a.payload.referralTree,n.referralTreeError=null,console.log("fetchReferralTree - Fulfilled")}).addCase(Ds.rejected,(n,a)=>{n.referralTreeLoading=!1,n.referralTreeError=a.payload,n.referralTreeAttempted=!0,console.log("fetchReferralTree - Rejected:",a.payload)}).addCase(Vf.pending,n=>{n.loading=!0,n.error=null,console.log("resendOTP - Pending")}).addCase(Vf.fulfilled,(n,a)=>{n.loading=!1,n.error=null,console.log("resendOTP - Fulfilled")}).addCase(Vf.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("resendOTP - Rejected:",a.payload)})}}),{setUser:AD,setToken:ND,logout:_D,clearError:Us,setLoading:Hf,clearSignupEmail:kD,clearReferralTree:OD,syncWithSession:Ex,resetReferralTreeAttempt:U4}=l1.actions,Nr=e=>e.user.user,c1=e=>e.user.token,mm=e=>e.user.isAuthenticated,ko=e=>e.user.loading,su=e=>e.user.error,B4=e=>e.user.signupEmail,F4=e=>e.user.referralTree,V4=e=>e.user.referralTreeLoading,H4=e=>e.user.referralTreeError,I4=l1.reducer,q4={mlmDashboard:null,loading:!1,error:null},so=Dn("mlm/fetchDashboard",async(e,{rejectWithValue:n,getState:a})=>{const s=qn("Loading MLM dashboard...");try{const o=Be.getUser();if(console.log("User from session:",o),!o||!o._id)return ot(s),n("User not authenticated");console.log("Making API call to:",`${rt.MLM_USER_DASHBOARD}/${o._id}`);const c=await At.get(`${rt.MLM_USER_DASHBOARD}/${o._id}`);return ot(s),c.data}catch(o){ot(s);const c=o.response?.data||{message:o.message||"Failed to load MLM dashboard"};return it(c.message||"Failed to load MLM dashboard"),n(c.message||"Failed to load MLM dashboard")}}),u1=Kc({name:"mlm",initialState:q4,reducers:{clearMlmDashboard:e=>{e.mlmDashboard=null,e.error=null},setLoading:(e,n)=>{e.loading=n.payload}},extraReducers:e=>{e.addCase(so.pending,n=>{n.loading=!0,n.error=null,console.log("fetchMlmDashboard - Pending")}).addCase(so.fulfilled,(n,a)=>{n.loading=!1,n.mlmDashboard=a.payload.data,n.error=null,console.log("fetchMlmDashboard - Fulfilled",a.payload)}).addCase(so.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("fetchMlmDashboard - Rejected:",a.payload)})}}),{clearMlmDashboard:RD,setLoading:CD}=u1.actions,d1=e=>e.mlm.mlmDashboard,f1=e=>e.mlm.loading,G4=u1.reducer,Y4={leaderboard:[],leaderboardLoading:!1,leaderboardError:null},pc=Dn("ddr/fetchLeaderboard",async(e,{rejectWithValue:n})=>{const a=qn("Loading DDR leaderboard...");try{const s=await At.get(rt.DDR_LEADERBOARD);return ot(a),s.data}catch(s){ot(a);const o=s.response?.data||{message:s.message||"Failed to load DDR leaderboard"};return it(o.message||"Failed to load DDR leaderboard"),n(o.message||"Failed to load DDR leaderboard")}}),h1=Kc({name:"ddr",initialState:Y4,reducers:{clearLeaderboard:e=>{e.leaderboard=[],e.leaderboardError=null}},extraReducers:e=>{e.addCase(pc.pending,n=>{n.leaderboardLoading=!0,n.leaderboardError=null,console.log("fetchDdrLeaderboard - Pending")}).addCase(pc.fulfilled,(n,a)=>{n.leaderboardLoading=!1,n.leaderboard=a.payload.data.leaderboard,n.leaderboardError=null,console.log("fetchDdrLeaderboard - Fulfilled",a.payload)}).addCase(pc.rejected,(n,a)=>{n.leaderboardLoading=!1,n.leaderboardError=a.payload,console.log("fetchDdrLeaderboard - Rejected:",a.payload)})}}),{clearLeaderboard:DD}=h1.actions,X4=e=>e.ddr.leaderboard,W4=e=>e.ddr.leaderboardLoading,Z4=h1.reducer,K4={rankTracking:null,rankTrackingLoading:!1,rankTrackingError:null,leaderboard:null,leaderboardLoading:!1,leaderboardError:null},gc=Dn("crr/fetchRankTracking",async(e,{rejectWithValue:n})=>{const a=qn("Loading CRR rank tracking...");try{const s=Be.getUser();if(!s||!s._id)return ot(a),n("User not authenticated");const o=await At.get(`/mlm/crr/rank-tracking/${s._id}`);return ot(a),o.data}catch(s){ot(a);const o=s.response?.data||{message:s.message||"Failed to load CRR rank tracking"};return it(o.message||"Failed to load CRR rank tracking"),n(o.message||"Failed to load CRR rank tracking")}}),yc=Dn("crr/fetchLeaderboard",async(e,{rejectWithValue:n})=>{const a=qn("Loading CRR leaderboard...");try{const s=await At.get(rt.CRR_LEADERBOARD);return ot(a),s.data}catch(s){ot(a);const o=s.response?.data||{message:s.message||"Failed to load CRR leaderboard"};return it(o.message||"Failed to load CRR leaderboard"),n(o.message||"Failed to load CRR leaderboard")}}),m1=Kc({name:"crr",initialState:K4,reducers:{clearRankTracking:e=>{e.rankTracking=null,e.rankTrackingError=null},clearLeaderboard:e=>{e.leaderboard=null,e.leaderboardError=null}},extraReducers:e=>{e.addCase(gc.pending,n=>{n.rankTrackingLoading=!0,n.rankTrackingError=null,console.log("fetchCrrRankTracking - Pending")}).addCase(gc.fulfilled,(n,a)=>{n.rankTrackingLoading=!1,n.rankTracking=a.payload.data,n.rankTrackingError=null,console.log("fetchCrrRankTracking - Fulfilled",a.payload)}).addCase(gc.rejected,(n,a)=>{n.rankTrackingLoading=!1,n.rankTrackingError=a.payload,console.log("fetchCrrRankTracking - Rejected:",a.payload)}).addCase(yc.pending,n=>{n.leaderboardLoading=!0,n.leaderboardError=null,console.log("fetchCrrLeaderboard - Pending")}).addCase(yc.fulfilled,(n,a)=>{n.leaderboardLoading=!1,n.leaderboard=a.payload.data.leaderboard,n.leaderboardError=null,console.log("fetchCrrLeaderboard - Fulfilled",a.payload)}).addCase(yc.rejected,(n,a)=>{n.leaderboardLoading=!1,n.leaderboardError=a.payload,console.log("fetchCrrLeaderboard - Rejected:",a.payload)})}}),{clearRankTracking:MD,clearLeaderboard:LD}=m1.actions,$4=e=>e.crr.rankTracking,Q4=e=>e.crr.rankTrackingLoading,J4=e=>e.crr.leaderboard,eA=e=>e.crr.leaderboardLoading,tA=m1.reducer,nA=UE({reducer:{user:I4,mlm:G4,ddr:Z4,crr:tA},middleware:e=>e({serializableCheck:{ignoredActions:["user/setUser","user/logout"]}})});/**
* react-router v7.7.0
*
* Copyright (c) Remix Software Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE.md file in the root directory of this source tree.
*
* @license MIT
*/var Tx="popstate";function rA(e={}){function n(s,o){let{pathname:c,search:u,hash:f}=s.location;return Lh("",{pathname:c,search:u,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function a(s,o){return typeof o=="string"?o:po(o)}return sA(n,a,null,e)}function dt(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function Rn(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function aA(){return Math.random().toString(36).substring(2,10)}function Ax(e,n){return{usr:e.state,key:e.key,idx:n}}function Lh(e,n,a=null,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?qs(n):n,state:a,key:n&&n.key||s||aA()}}function po({pathname:e="/",search:n="",hash:a=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function qs(e){let n={};if(e){let a=e.indexOf("#");a>=0&&(n.hash=e.substring(a),e=e.substring(0,a));let s=e.indexOf("?");s>=0&&(n.search=e.substring(s),e=e.substring(0,s)),e&&(n.pathname=e)}return n}function sA(e,n,a,s={}){let{window:o=document.defaultView,v5Compat:c=!1}=s,u=o.history,f="POP",h=null,m=g();m==null&&(m=0,u.replaceState({...u.state,idx:m},""));function g(){return(u.state||{idx:null}).idx}function x(){f="POP";let A=g(),T=A==null?null:A-m;m=A,h&&h({action:f,location:S.location,delta:T})}function b(A,T){f="PUSH";let C=Lh(S.location,A,T);m=g()+1;let L=Ax(C,m),q=S.createHref(C);try{u.pushState(L,"",q)}catch(N){if(N instanceof DOMException&&N.name==="DataCloneError")throw N;o.location.assign(q)}c&&h&&h({action:f,location:S.location,delta:1})}function E(A,T){f="REPLACE";let C=Lh(S.location,A,T);m=g();let L=Ax(C,m),q=S.createHref(C);u.replaceState(L,"",q),c&&h&&h({action:f,location:S.location,delta:0})}function _(A){return iA(A)}let S={get action(){return f},get location(){return e(o,u)},listen(A){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(Tx,x),h=A,()=>{o.removeEventListener(Tx,x),h=null}},createHref(A){return n(o,A)},createURL:_,encodeLocation(A){let T=_(A);return{pathname:T.pathname,search:T.search,hash:T.hash}},push:b,replace:E,go(A){return u.go(A)}};return S}function iA(e,n=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),dt(a,"No window.location.(origin|href) available to create URL");let s=typeof e=="string"?e:po(e);return s=s.replace(/ $/,"%20"),!n&&s.startsWith("//")&&(s=a+s),new URL(s,a)}function p1(e,n,a="/"){return oA(e,n,a,!1)}function oA(e,n,a,s){let o=typeof n=="string"?qs(n):n,c=Er(o.pathname||"/",a);if(c==null)return null;let u=g1(e);lA(u);let f=null;for(let h=0;f==null&&h<u.length;++h){let m=vA(c);f=yA(u[h],m,s)}return f}function g1(e,n=[],a=[],s=""){let o=(c,u,f)=>{let h={relativePath:f===void 0?c.path||"":f,caseSensitive:c.caseSensitive===!0,childrenIndex:u,route:c};h.relativePath.startsWith("/")&&(dt(h.relativePath.startsWith(s),`Absolute route path "${h.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(s.length));let m=wr([s,h.relativePath]),g=a.concat(h);c.children&&c.children.length>0&&(dt(c.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${m}".`),g1(c.children,n,g,m)),!(c.path==null&&!c.index)&&n.push({path:m,score:pA(m,c.index),routesMeta:g})};return e.forEach((c,u)=>{if(c.path===""||!c.path?.includes("?"))o(c,u);else for(let f of y1(c.path))o(c,u,f)}),n}function y1(e){let n=e.split("/");if(n.length===0)return[];let[a,...s]=n,o=a.endsWith("?"),c=a.replace(/\?$/,"");if(s.length===0)return o?[c,""]:[c];let u=y1(s.join("/")),f=[];return f.push(...u.map(h=>h===""?c:[c,h].join("/"))),o&&f.push(...u),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function lA(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:gA(n.routesMeta.map(s=>s.childrenIndex),a.routesMeta.map(s=>s.childrenIndex)))}var cA=/^:[\w-]+$/,uA=3,dA=2,fA=1,hA=10,mA=-2,Nx=e=>e==="*";function pA(e,n){let a=e.split("/"),s=a.length;return a.some(Nx)&&(s+=mA),n&&(s+=dA),a.filter(o=>!Nx(o)).reduce((o,c)=>o+(cA.test(c)?uA:c===""?fA:hA),s)}function gA(e,n){return e.length===n.length&&e.slice(0,-1).every((s,o)=>s===n[o])?e[e.length-1]-n[n.length-1]:0}function yA(e,n,a=!1){let{routesMeta:s}=e,o={},c="/",u=[];for(let f=0;f<s.length;++f){let h=s[f],m=f===s.length-1,g=c==="/"?n:n.slice(c.length)||"/",x=Dc({path:h.relativePath,caseSensitive:h.caseSensitive,end:m},g),b=h.route;if(!x&&m&&a&&!s[s.length-1].route.index&&(x=Dc({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!x)return null;Object.assign(o,x.params),u.push({params:o,pathname:wr([c,x.pathname]),pathnameBase:jA(wr([c,x.pathnameBase])),route:b}),x.pathnameBase!=="/"&&(c=wr([c,x.pathnameBase]))}return u}function Dc(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,s]=xA(e.path,e.caseSensitive,e.end),o=n.match(a);if(!o)return null;let c=o[0],u=c.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:s.reduce((m,{paramName:g,isOptional:x},b)=>{if(g==="*"){let _=f[b]||"";u=c.slice(0,c.length-_.length).replace(/(.)\/+$/,"$1")}const E=f[b];return x&&!E?m[g]=void 0:m[g]=(E||"").replace(/%2F/g,"/"),m},{}),pathname:c,pathnameBase:u,pattern:e}}function xA(e,n=!1,a=!0){Rn(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 s=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,f,h)=>(s.push({paramName:f,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),s]}function vA(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return Rn(!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 (${n}).`),e}}function Er(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,s=e.charAt(a);return s&&s!=="/"?null:e.slice(a)||"/"}function bA(e,n="/"){let{pathname:a,search:s="",hash:o=""}=typeof e=="string"?qs(e):e;return{pathname:a?a.startsWith("/")?a:wA(a,n):n,search:EA(s),hash:TA(o)}}function wA(e,n){let a=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function If(e,n,a,s){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function SA(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function pm(e){let n=SA(e);return n.map((a,s)=>s===n.length-1?a.pathname:a.pathnameBase)}function gm(e,n,a,s=!1){let o;typeof e=="string"?o=qs(e):(o={...e},dt(!o.pathname||!o.pathname.includes("?"),If("?","pathname","search",o)),dt(!o.pathname||!o.pathname.includes("#"),If("#","pathname","hash",o)),dt(!o.search||!o.search.includes("#"),If("#","search","hash",o)));let c=e===""||o.pathname==="",u=c?"/":o.pathname,f;if(u==null)f=a;else{let x=n.length-1;if(!s&&u.startsWith("..")){let b=u.split("/");for(;b[0]==="..";)b.shift(),x-=1;o.pathname=b.join("/")}f=x>=0?n[x]:"/"}let h=bA(o,f),m=u&&u!=="/"&&u.endsWith("/"),g=(c||u===".")&&a.endsWith("/");return!h.pathname.endsWith("/")&&(m||g)&&(h.pathname+="/"),h}var wr=e=>e.join("/").replace(/\/\/+/g,"/"),jA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),EA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,TA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function AA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var x1=["POST","PUT","PATCH","DELETE"];new Set(x1);var NA=["GET",...x1];new Set(NA);var Gs=X.createContext(null);Gs.displayName="DataRouter";var iu=X.createContext(null);iu.displayName="DataRouterState";X.createContext(!1);var v1=X.createContext({isTransitioning:!1});v1.displayName="ViewTransition";var _A=X.createContext(new Map);_A.displayName="Fetchers";var kA=X.createContext(null);kA.displayName="Await";var Yn=X.createContext(null);Yn.displayName="Navigation";var Oo=X.createContext(null);Oo.displayName="Location";var Xn=X.createContext({outlet:null,matches:[],isDataRoute:!1});Xn.displayName="Route";var ym=X.createContext(null);ym.displayName="RouteError";function OA(e,{relative:n}={}){dt(Ys(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:s}=X.useContext(Yn),{hash:o,pathname:c,search:u}=Ro(e,{relative:n}),f=c;return a!=="/"&&(f=c==="/"?a:wr([a,c])),s.createHref({pathname:f,search:u,hash:o})}function Ys(){return X.useContext(Oo)!=null}function Mn(){return dt(Ys(),"useLocation() may be used only in the context of a <Router> component."),X.useContext(Oo).location}var b1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function w1(e){X.useContext(Yn).static||X.useLayoutEffect(e)}function Wt(){let{isDataRoute:e}=X.useContext(Xn);return e?qA():RA()}function RA(){dt(Ys(),"useNavigate() may be used only in the context of a <Router> component.");let e=X.useContext(Gs),{basename:n,navigator:a}=X.useContext(Yn),{matches:s}=X.useContext(Xn),{pathname:o}=Mn(),c=JSON.stringify(pm(s)),u=X.useRef(!1);return w1(()=>{u.current=!0}),X.useCallback((h,m={})=>{if(Rn(u.current,b1),!u.current)return;if(typeof h=="number"){a.go(h);return}let g=gm(h,JSON.parse(c),o,m.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:wr([n,g.pathname])),(m.replace?a.replace:a.push)(g,m.state,m)},[n,a,c,o,e])}X.createContext(null);function CA(){let{matches:e}=X.useContext(Xn),n=e[e.length-1];return n?n.params:{}}function Ro(e,{relative:n}={}){let{matches:a}=X.useContext(Xn),{pathname:s}=Mn(),o=JSON.stringify(pm(a));return X.useMemo(()=>gm(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function DA(e,n){return S1(e,n)}function S1(e,n,a,s){dt(Ys(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=X.useContext(Yn),{matches:c}=X.useContext(Xn),u=c[c.length-1],f=u?u.params:{},h=u?u.pathname:"/",m=u?u.pathnameBase:"/",g=u&&u.route;{let T=g&&g.path||"";j1(h,!g||T.endsWith("*")||T.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${T}">) 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="${T}"> to <Route path="${T==="/"?"*":`${T}/*`}">.`)}let x=Mn(),b;if(n){let T=typeof n=="string"?qs(n):n;dt(m==="/"||T.pathname?.startsWith(m),`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 "${m}" but pathname "${T.pathname}" was given in the \`location\` prop.`),b=T}else b=x;let E=b.pathname||"/",_=E;if(m!=="/"){let T=m.replace(/^\//,"").split("/");_="/"+E.replace(/^\//,"").split("/").slice(T.length).join("/")}let S=p1(e,{pathname:_});Rn(g||S!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),Rn(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${b.pathname}${b.search}${b.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 A=UA(S&&S.map(T=>Object.assign({},T,{params:Object.assign({},f,T.params),pathname:wr([m,o.encodeLocation?o.encodeLocation(T.pathname).pathname:T.pathname]),pathnameBase:T.pathnameBase==="/"?m:wr([m,o.encodeLocation?o.encodeLocation(T.pathnameBase).pathname:T.pathnameBase])})),c,a,s);return n&&A?X.createElement(Oo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},A):A}function MA(){let e=IA(),n=AA(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:s},c={padding:"2px 4px",backgroundColor:s},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=X.createElement(X.Fragment,null,X.createElement("p",null,"💿 Hey developer 👋"),X.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",X.createElement("code",{style:c},"ErrorBoundary")," or"," ",X.createElement("code",{style:c},"errorElement")," prop on your route.")),X.createElement(X.Fragment,null,X.createElement("h2",null,"Unexpected Application Error!"),X.createElement("h3",{style:{fontStyle:"italic"}},n),a?X.createElement("pre",{style:o},a):null,u)}var LA=X.createElement(MA,null),PA=class extends X.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,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?X.createElement(Xn.Provider,{value:this.props.routeContext},X.createElement(ym.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function zA({routeContext:e,match:n,children:a}){let s=X.useContext(Gs);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),X.createElement(Xn.Provider,{value:e},a)}function UA(e,n=[],a=null,s=null){if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(n.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let o=e,c=a?.errors;if(c!=null){let h=o.findIndex(m=>m.route.id&&c?.[m.route.id]!==void 0);dt(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(c).join(",")}`),o=o.slice(0,Math.min(o.length,h+1))}let u=!1,f=-1;if(a)for(let h=0;h<o.length;h++){let m=o[h];if((m.route.HydrateFallback||m.route.hydrateFallbackElement)&&(f=h),m.route.id){let{loaderData:g,errors:x}=a,b=m.route.loader&&!g.hasOwnProperty(m.route.id)&&(!x||x[m.route.id]===void 0);if(m.route.lazy||b){u=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}return o.reduceRight((h,m,g)=>{let x,b=!1,E=null,_=null;a&&(x=c&&m.route.id?c[m.route.id]:void 0,E=m.route.errorElement||LA,u&&(f<0&&g===0?(j1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,_=null):f===g&&(b=!0,_=m.route.hydrateFallbackElement||null)));let S=n.concat(o.slice(0,g+1)),A=()=>{let T;return x?T=E:b?T=_:m.route.Component?T=X.createElement(m.route.Component,null):m.route.element?T=m.route.element:T=h,X.createElement(zA,{match:m,routeContext:{outlet:h,matches:S,isDataRoute:a!=null},children:T})};return a&&(m.route.ErrorBoundary||m.route.errorElement||g===0)?X.createElement(PA,{location:a.location,revalidation:a.revalidation,component:E,error:x,children:A(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):A()},null)}function xm(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function BA(e){let n=X.useContext(Gs);return dt(n,xm(e)),n}function FA(e){let n=X.useContext(iu);return dt(n,xm(e)),n}function VA(e){let n=X.useContext(Xn);return dt(n,xm(e)),n}function vm(e){let n=VA(e),a=n.matches[n.matches.length-1];return dt(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function HA(){return vm("useRouteId")}function IA(){let e=X.useContext(ym),n=FA("useRouteError"),a=vm("useRouteError");return e!==void 0?e:n.errors?.[a]}function qA(){let{router:e}=BA("useNavigate"),n=vm("useNavigate"),a=X.useRef(!1);return w1(()=>{a.current=!0}),X.useCallback(async(o,c={})=>{Rn(a.current,b1),a.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...c}))},[e,n])}var _x={};function j1(e,n,a){!n&&!_x[e]&&(_x[e]=!0,Rn(!1,a))}X.memo(GA);function GA({routes:e,future:n,state:a}){return S1(e,void 0,a,n)}function Fn({to:e,replace:n,state:a,relative:s}){dt(Ys(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=X.useContext(Yn);Rn(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=X.useContext(Xn),{pathname:u}=Mn(),f=Wt(),h=gm(e,pm(c),u,s==="path"),m=JSON.stringify(h);return X.useEffect(()=>{f(JSON.parse(m),{replace:n,state:a,relative:s})},[f,m,s,n,a]),null}function St(e){dt(!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 YA({basename:e="/",children:n=null,location:a,navigationType:s="POP",navigator:o,static:c=!1}){dt(!Ys(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let u=e.replace(/^\/*/,"/"),f=X.useMemo(()=>({basename:u,navigator:o,static:c,future:{}}),[u,o,c]);typeof a=="string"&&(a=qs(a));let{pathname:h="/",search:m="",hash:g="",state:x=null,key:b="default"}=a,E=X.useMemo(()=>{let _=Er(h,u);return _==null?null:{location:{pathname:_,search:m,hash:g,state:x,key:b},navigationType:s}},[u,h,m,g,x,b,s]);return Rn(E!=null,`<Router basename="${u}"> is not able to match the URL "${h}${m}${g}" because it does not start with the basename, so the <Router> won't render anything.`),E==null?null:X.createElement(Yn.Provider,{value:f},X.createElement(Oo.Provider,{children:n,value:E}))}function XA({children:e,location:n}){return DA(Ph(e),n)}function Ph(e,n=[]){let a=[];return X.Children.forEach(e,(s,o)=>{if(!X.isValidElement(s))return;let c=[...n,o];if(s.type===X.Fragment){a.push.apply(a,Ph(s.props.children,c));return}dt(s.type===St,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),dt(!s.props.index||!s.props.children,"An index route cannot have child routes.");let u={id:s.props.id||c.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(u.children=Ph(s.props.children,c)),a.push(u)}),a}var xc="get",vc="application/x-www-form-urlencoded";function ou(e){return e!=null&&typeof e.tagName=="string"}function WA(e){return ou(e)&&e.tagName.toLowerCase()==="button"}function ZA(e){return ou(e)&&e.tagName.toLowerCase()==="form"}function KA(e){return ou(e)&&e.tagName.toLowerCase()==="input"}function $A(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function QA(e,n){return e.button===0&&(!n||n==="_self")&&!$A(e)}function zh(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((n,a)=>{let s=e[a];return n.concat(Array.isArray(s)?s.map(o=>[a,o]):[[a,s]])},[]))}function JA(e,n){let a=zh(e);return n&&n.forEach((s,o)=>{a.has(o)||n.getAll(o).forEach(c=>{a.append(o,c)})}),a}var ec=null;function eN(){if(ec===null)try{new FormData(document.createElement("form"),0),ec=!1}catch{ec=!0}return ec}var tN=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function qf(e){return e!=null&&!tN.has(e)?(Rn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vc}"`),null):e}function nN(e,n){let a,s,o,c,u;if(ZA(e)){let f=e.getAttribute("action");s=f?Er(f,n):null,a=e.getAttribute("method")||xc,o=qf(e.getAttribute("enctype"))||vc,c=new FormData(e)}else if(WA(e)||KA(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 h=e.getAttribute("formaction")||f.getAttribute("action");if(s=h?Er(h,n):null,a=e.getAttribute("formmethod")||f.getAttribute("method")||xc,o=qf(e.getAttribute("formenctype"))||qf(f.getAttribute("enctype"))||vc,c=new FormData(f,e),!eN()){let{name:m,type:g,value:x}=e;if(g==="image"){let b=m?`${m}.`:"";c.append(`${b}x`,"0"),c.append(`${b}y`,"0")}else m&&c.append(m,x)}}else{if(ou(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=xc,s=null,o=vc,u=e}return c&&o==="text/plain"&&(u=c,c=void 0),{action:s,method:a.toLowerCase(),encType:o,formData:c,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function bm(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function rN(e,n,a){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return s.pathname==="/"?s.pathname=`_root.${a}`:n&&Er(s.pathname,n)==="/"?s.pathname=`${n.replace(/\/$/,"")}/_root.${a}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${a}`,s}async function aN(e,n){if(e.id in n)return n[e.id];try{let a=await import(e.module);return n[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function sN(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 iN(e,n,a){let s=await Promise.all(e.map(async o=>{let c=n.routes[o.route.id];if(c){let u=await aN(c,a);return u.links?u.links():[]}return[]}));return uN(s.flat(1).filter(sN).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function kx(e,n,a,s,o,c){let u=(h,m)=>a[m]?h.route.id!==a[m].route.id:!0,f=(h,m)=>a[m].pathname!==h.pathname||a[m].route.path?.endsWith("*")&&a[m].params["*"]!==h.params["*"];return c==="assets"?n.filter((h,m)=>u(h,m)||f(h,m)):c==="data"?n.filter((h,m)=>{let g=s.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(u(h,m)||f(h,m))return!0;if(h.route.shouldRevalidate){let x=h.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:a[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function oN(e,n,{includeHydrateFallback:a}={}){return lN(e.map(s=>{let o=n.routes[s.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),a&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function lN(e){return[...new Set(e)]}function cN(e){let n={},a=Object.keys(e).sort();for(let s of a)n[s]=e[s];return n}function uN(e,n){let a=new Set;return new Set(n),e.reduce((s,o)=>{let c=JSON.stringify(cN(o));return a.has(c)||(a.add(c),s.push({key:c,link:o})),s},[])}function E1(){let e=X.useContext(Gs);return bm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function dN(){let e=X.useContext(iu);return bm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var wm=X.createContext(void 0);wm.displayName="FrameworkContext";function T1(){let e=X.useContext(wm);return bm(e,"You must render this element inside a <HydratedRouter> element"),e}function fN(e,n){let a=X.useContext(wm),[s,o]=X.useState(!1),[c,u]=X.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:m,onMouseLeave:g,onTouchStart:x}=n,b=X.useRef(null);X.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let S=T=>{T.forEach(C=>{u(C.isIntersecting)})},A=new IntersectionObserver(S,{threshold:.5});return b.current&&A.observe(b.current),()=>{A.disconnect()}}},[e]),X.useEffect(()=>{if(s){let S=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(S)}}},[s]);let E=()=>{o(!0)},_=()=>{o(!1),u(!1)};return a?e!=="intent"?[c,b,{}]:[c,b,{onFocus:Xi(f,E),onBlur:Xi(h,_),onMouseEnter:Xi(m,E),onMouseLeave:Xi(g,_),onTouchStart:Xi(x,E)}]:[!1,b,{}]}function Xi(e,n){return a=>{e&&e(a),a.defaultPrevented||n(a)}}function hN({page:e,...n}){let{router:a}=E1(),s=X.useMemo(()=>p1(a.routes,e,a.basename),[a.routes,e,a.basename]);return s?X.createElement(pN,{page:e,matches:s,...n}):null}function mN(e){let{manifest:n,routeModules:a}=T1(),[s,o]=X.useState([]);return X.useEffect(()=>{let c=!1;return iN(e,n,a).then(u=>{c||o(u)}),()=>{c=!0}},[e,n,a]),s}function pN({page:e,matches:n,...a}){let s=Mn(),{manifest:o,routeModules:c}=T1(),{basename:u}=E1(),{loaderData:f,matches:h}=dN(),m=X.useMemo(()=>kx(e,n,h,o,s,"data"),[e,n,h,o,s]),g=X.useMemo(()=>kx(e,n,h,o,s,"assets"),[e,n,h,o,s]),x=X.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let _=new Set,S=!1;if(n.forEach(T=>{let C=o.routes[T.route.id];!C||!C.hasLoader||(!m.some(L=>L.route.id===T.route.id)&&T.route.id in f&&c[T.route.id]?.shouldRevalidate||C.hasClientLoader?S=!0:_.add(T.route.id))}),_.size===0)return[];let A=rN(e,u,"data");return S&&_.size>0&&A.searchParams.set("_routes",n.filter(T=>_.has(T.route.id)).map(T=>T.route.id).join(",")),[A.pathname+A.search]},[u,f,s,o,m,n,e,c]),b=X.useMemo(()=>oN(g,o),[g,o]),E=mN(g);return X.createElement(X.Fragment,null,x.map(_=>X.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...a})),b.map(_=>X.createElement("link",{key:_,rel:"modulepreload",href:_,...a})),E.map(({key:_,link:S})=>X.createElement("link",{key:_,...S})))}function gN(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var A1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{A1&&(window.__reactRouterVersion="7.7.0")}catch{}function yN({basename:e,children:n,window:a}){let s=X.useRef();s.current==null&&(s.current=rA({window:a,v5Compat:!0}));let o=s.current,[c,u]=X.useState({action:o.action,location:o.location}),f=X.useCallback(h=>{X.startTransition(()=>u(h))},[u]);return X.useLayoutEffect(()=>o.listen(f),[o,f]),X.createElement(YA,{basename:e,children:n,location:c.location,navigationType:c.action,navigator:o})}var N1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xt=X.forwardRef(function({onClick:n,discover:a="render",prefetch:s="none",relative:o,reloadDocument:c,replace:u,state:f,target:h,to:m,preventScrollReset:g,viewTransition:x,...b},E){let{basename:_}=X.useContext(Yn),S=typeof m=="string"&&N1.test(m),A,T=!1;if(typeof m=="string"&&S&&(A=m,A1))try{let M=new URL(window.location.href),R=m.startsWith("//")?new URL(M.protocol+m):new URL(m),K=Er(R.pathname,_);R.origin===M.origin&&K!=null?m=K+R.search+R.hash:T=!0}catch{Rn(!1,`<Link to="${m}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let C=OA(m,{relative:o}),[L,q,N]=fN(s,b),z=bN(m,{replace:u,state:f,target:h,preventScrollReset:g,relative:o,viewTransition:x});function F(M){n&&n(M),M.defaultPrevented||z(M)}let H=X.createElement("a",{...b,...N,href:A||C,onClick:T||c?n:F,ref:gN(E,q),target:h,"data-discover":!S&&a==="render"?"true":void 0});return L&&!S?X.createElement(X.Fragment,null,H,X.createElement(hN,{page:C})):H});xt.displayName="Link";var _1=X.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:s="",end:o=!1,style:c,to:u,viewTransition:f,children:h,...m},g){let x=Ro(u,{relative:m.relative}),b=Mn(),E=X.useContext(iu),{navigator:_,basename:S}=X.useContext(Yn),A=E!=null&&AN(x)&&f===!0,T=_.encodeLocation?_.encodeLocation(x).pathname:x.pathname,C=b.pathname,L=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;a||(C=C.toLowerCase(),L=L?L.toLowerCase():null,T=T.toLowerCase()),L&&S&&(L=Er(L,S)||L);const q=T!=="/"&&T.endsWith("/")?T.length-1:T.length;let N=C===T||!o&&C.startsWith(T)&&C.charAt(q)==="/",z=L!=null&&(L===T||!o&&L.startsWith(T)&&L.charAt(T.length)==="/"),F={isActive:N,isPending:z,isTransitioning:A},H=N?n:void 0,M;typeof s=="function"?M=s(F):M=[s,N?"active":null,z?"pending":null,A?"transitioning":null].filter(Boolean).join(" ");let R=typeof c=="function"?c(F):c;return X.createElement(xt,{...m,"aria-current":H,className:M,ref:g,style:R,to:u,viewTransition:f},typeof h=="function"?h(F):h)});_1.displayName="NavLink";var xN=X.forwardRef(({discover:e="render",fetcherKey:n,navigate:a,reloadDocument:s,replace:o,state:c,method:u=xc,action:f,onSubmit:h,relative:m,preventScrollReset:g,viewTransition:x,...b},E)=>{let _=EN(),S=TN(f,{relative:m}),A=u.toLowerCase()==="get"?"get":"post",T=typeof f=="string"&&N1.test(f),C=L=>{if(h&&h(L),L.defaultPrevented)return;L.preventDefault();let q=L.nativeEvent.submitter,N=q?.getAttribute("formmethod")||u;_(q||L.currentTarget,{fetcherKey:n,method:N,navigate:a,replace:o,state:c,relative:m,preventScrollReset:g,viewTransition:x})};return X.createElement("form",{ref:E,method:A,action:S,onSubmit:s?h:C,...b,"data-discover":!T&&e==="render"?"true":void 0})});xN.displayName="Form";function vN(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function k1(e){let n=X.useContext(Gs);return dt(n,vN(e)),n}function bN(e,{target:n,replace:a,state:s,preventScrollReset:o,relative:c,viewTransition:u}={}){let f=Wt(),h=Mn(),m=Ro(e,{relative:c});return X.useCallback(g=>{if(QA(g,n)){g.preventDefault();let x=a!==void 0?a:po(h)===po(m);f(e,{replace:x,state:s,preventScrollReset:o,relative:c,viewTransition:u})}},[h,f,m,a,s,n,e,o,c,u])}function wN(e){Rn(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=X.useRef(zh(e)),a=X.useRef(!1),s=Mn(),o=X.useMemo(()=>JA(s.search,a.current?null:n.current),[s.search]),c=Wt(),u=X.useCallback((f,h)=>{const m=zh(typeof f=="function"?f(new URLSearchParams(o)):f);a.current=!0,c("?"+m,h)},[c,o]);return[o,u]}var SN=0,jN=()=>`__${String(++SN)}__`;function EN(){let{router:e}=k1("useSubmit"),{basename:n}=X.useContext(Yn),a=HA();return X.useCallback(async(s,o={})=>{let{action:c,method:u,encType:f,formData:h,body:m}=nN(s,n);if(o.navigate===!1){let g=o.fetcherKey||jN();await e.fetch(g,a,o.action||c,{preventScrollReset:o.preventScrollReset,formData:h,body:m,formMethod:o.method||u,formEncType:o.encType||f,flushSync:o.flushSync})}else await e.navigate(o.action||c,{preventScrollReset:o.preventScrollReset,formData:h,body:m,formMethod:o.method||u,formEncType:o.encType||f,replace:o.replace,state:o.state,fromRouteId:a,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,n,a])}function TN(e,{relative:n}={}){let{basename:a}=X.useContext(Yn),s=X.useContext(Xn);dt(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),c={...Ro(e||".",{relative:n})},u=Mn();if(e==null){c.search=u.search;let f=new URLSearchParams(c.search),h=f.getAll("index");if(h.some(g=>g==="")){f.delete("index"),h.filter(x=>x).forEach(x=>f.append("index",x));let g=f.toString();c.search=g?`?${g}`:""}}return(!e||e===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(c.pathname=c.pathname==="/"?a:wr([a,c.pathname])),po(c)}function AN(e,n={}){let a=X.useContext(v1);dt(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=k1("useViewTransitionState"),o=Ro(e,{relative:n.relative});if(!a.isTransitioning)return!1;let c=Er(a.currentLocation.pathname,s)||a.currentLocation.pathname,u=Er(a.nextLocation.pathname,s)||a.nextLocation.pathname;return Dc(o.pathname,u)!=null||Dc(o.pathname,c)!=null}const O1=X.createContext(),NN=({children:e})=>{const[n,a]=X.useState(()=>localStorage.getItem("theme")||"light");X.useEffect(()=>{n==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",n)},[n]);const s=()=>{a(o=>o==="light"?"dark":"light")};return d.jsx(O1.Provider,{value:{theme:n,toggleTheme:s},children:e})},Co=()=>X.useContext(O1),_N="/assets/logo-C1IfLRO8.png";var R1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Ox=Ra.createContext&&Ra.createContext(R1),kN=["attr","size","title"];function ON(e,n){if(e==null)return{};var a=RN(e,n),s,o;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)s=c[o],!(n.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(a[s]=e[s])}return a}function RN(e,n){if(e==null)return{};var a={};for(var s in e)if(Object.prototype.hasOwnProperty.call(e,s)){if(n.indexOf(s)>=0)continue;a[s]=e[s]}return a}function Mc(){return Mc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(e[s]=a[s])}return e},Mc.apply(this,arguments)}function Rx(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);n&&(s=s.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,s)}return a}function Lc(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Rx(Object(a),!0).forEach(function(s){CN(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Rx(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}function CN(e,n,a){return n=DN(n),n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function DN(e){var n=MN(e,"string");return typeof n=="symbol"?n:n+""}function MN(e,n){if(typeof e!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var s=a.call(e,n);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function C1(e){return e&&e.map((n,a)=>Ra.createElement(n.tag,Lc({key:a},n.attr),C1(n.child)))}function lt(e){return n=>Ra.createElement(LN,Mc({attr:Lc({},e.attr)},n),C1(e.child))}function LN(e){var n=a=>{var{attr:s,size:o,title:c}=e,u=ON(e,kN),f=o||a.size||"1em",h;return a.className&&(h=a.className),e.className&&(h=(h?h+" ":"")+e.className),Ra.createElement("svg",Mc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,s,u,{className:h,style:Lc(Lc({color:e.color||a.color},a.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),c&&Ra.createElement("title",null,c),e.children)};return Ox!==void 0?Ra.createElement(Ox.Consumer,null,a=>n(a)):n(R1)}function PN(e){return lt({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z",clipRule:"evenodd"},child:[]}]})(e)}function zN(e){return lt({attr:{viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true"},child:[{tag:"path",attr:{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"},child:[]}]})(e)}const UN=()=>{const e=Mn(),n=In(),a=Xe(mm),s=Xe(Nr),{theme:o,toggleTheme:c}=Co(),[u,f]=X.useState(!1),h=()=>f(!u),m=()=>n(mc()),g=()=>window.scrollTo(0,0),x=[{name:"Home",path:"/"},{name:"About",path:"/about"},{name:"Services",path:"/services"},{name:"Team",path:"/team"},{name:"FAQs",path:"/faqs"},{name:"Contact",path:"/contact"}];return d.jsxs("nav",{className:"w-full px-6 py-3 bg-white dark:bg-gray-800 text-gray-900 dark:text-white shadow-md fixed top-0 left-0 z-50 max-lg:px-4 transition-colors duration-300",children:[d.jsxs("div",{className:"flex justify-between items-center",children:[d.jsx("div",{className:"flex items-center gap-2",children:d.jsx(xt,{to:"/",onClick:g,children:d.jsx("img",{src:_N,alt:"Logo",className:"w-12 h-12 sm:w-14 sm:h-14 cursor-pointer hover:opacity-80 transition-opacity"})})}),d.jsx("ul",{className:"flex gap-6 text-base font-medium mr-4 max-lg:hidden",children:x.map(b=>d.jsx("li",{children:d.jsx(xt,{to:b.path,onClick:g,className:`transition-colors ${e.pathname===b.path?"text-[#FFB800] font-semibold":"text-gray-900 dark:text-white hover:text-[#FFB800] dark:hover:text-[#FFB800]"}`,children:b.name})},b.name))}),d.jsxs("div",{className:"hidden md:flex items-center gap-2",children:[a?d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(xt,{to:"/profile",onClick:g,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-green-600 text-white hover:bg-green-700 transition-all shadow-sm hover:scale-105",children:"Profile"}),d.jsx("button",{onClick:m,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-red-600 text-white hover:bg-red-700 transition-all shadow-sm hover:scale-105",children:"Logout"})]}):d.jsxs(d.Fragment,{children:[d.jsx(xt,{to:"/login",onClick:g,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-green-600 text-white hover:bg-green-700 transition-all shadow-sm hover:scale-105",children:"Login"}),d.jsx(xt,{to:"/signup",onClick:g,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-green-600 text-white hover:bg-green-700 transition-all shadow-sm hover:scale-105",children:"Signup"})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{className:"sr-only peer",type:"checkbox",onChange:c,checked:o==="dark"}),d.jsx("div",{className:`w-14 h-6 rounded-full peer duration-300 bg-gray-200 dark:bg-gray-600 relative \r
before:content-['☀️'] before:absolute before:left-1 before:top-1/2 before:-translate-y-1/2 \r
before:w-4 before:h-4 before:flex before:items-center before:justify-center \r
before:transition-all peer-checked:before:opacity-0 \r
after:content-['🌑'] after:absolute after:right-1 after:top-1/2 after:-translate-y-1/2 \r
after:w-4 after:h-4 after:flex after:items-center after:justify-center \r
after:opacity-0 peer-checked:after:opacity-100`})]})]}),d.jsx("button",{onClick:h,className:"md:hidden text-2xl text-gray-900 dark:text-white",children:u?d.jsx(zN,{}):d.jsx(PN,{})})]}),u&&d.jsxs("div",{className:"md:hidden flex flex-col px-4 py-3 items-start space-y-2 bg-white dark:bg-gray-800 w-full absolute left-0 top-full shadow-md transition-all duration-300 ease-in-out origin-top animate-slide-down mb-4 rounded-b-lg",children:[x.map(b=>d.jsx(xt,{to:b.path,onClick:()=>{f(!1),g()},className:`w-full px-2 py-1.5 rounded-md text-sm font-medium text-center shadow-sm transition-all hover:scale-105 ${e.pathname===b.path?"bg-[#FFB800] text-white":"bg-gray-100 dark:bg-gray-700 text-gray-900 dark:text-white hover:bg-[#FFB800] hover:text-white"}`,children:b.name},b.name)),a&&d.jsxs("div",{className:"flex flex-col gap-1.5 w-full",children:[d.jsx(xt,{to:"/mlm",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"MLM"}),d.jsx(xt,{to:"/tree",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Tree"}),d.jsx(xt,{to:"/profile",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Profile"}),d.jsx("button",{onClick:()=>{m(),f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-red-600 text-white hover:bg-red-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Logout"}),d.jsxs("div",{className:"text-xs text-gray-600 dark:text-gray-300 text-center mt-1",children:["Welcome, ",s?.firstName||"User"]})]}),!a&&d.jsxs("div",{className:"flex flex-col gap-1.5 w-full",children:[d.jsx(xt,{to:"/login",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Login"}),d.jsx(xt,{to:"/signup",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Signup"})]}),d.jsx("div",{className:"py-2 w-full flex justify-center",children:d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{className:"sr-only peer",type:"checkbox",onChange:c,checked:o==="dark"}),d.jsx("div",{className:`w-12 h-5 rounded-full peer duration-300 bg-gray-200 dark:bg-gray-600 relative \r
before:content-['☀️'] before:absolute before:left-1 before:top-1/2 before:-translate-y-1/2 \r
before:w-4 before:h-4 before:flex before:items-center before:justify-center \r
before:transition-all peer-checked:before:opacity-0 \r
after:content-['🌑'] after:absolute after:right-1 after:top-1/2 after:-translate-y-1/2 \r
after:w-4 after:h-4 after:flex after:items-center after:justify-center \r
after:opacity-0 peer-checked:after:opacity-100`})]})})]})]})};function lu(e){return lt({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M279.14 288l14.22-92.66h-88.91v-60.13c0-25.35 12.42-50.06 52.24-50.06h40.42V6.26S260.43 0 225.36 0c-73.22 0-121.08 44.38-121.08 124.72v70.62H22.89V288h81.39v224h100.17V288z"},child:[]}]})(e)}function D1(e){return lt({attr:{viewBox:"0 0 488 512"},child:[{tag:"path",attr:{d:"M488 261.8C488 403.3 391.1 504 248 504 110.8 504 0 393.2 0 256S110.8 8 248 8c66.8 0 123 24.5 166.3 64.9l-67.5 64.9C258.5 52.6 94.3 116.6 94.3 256c0 86.5 69.1 156.6 153.7 156.6 98.2 0 135-70.4 140.8-106.9H248v-85.3h236.1c2.3 12.7 3.9 24.9 3.9 41.4z"},child:[]}]})(e)}function M1(e){return lt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)}function L1(e){return lt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"},child:[]}]})(e)}function P1(e){return lt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M446.7 98.6l-67.6 318.8c-5.1 22.5-18.4 28.1-37.3 17.5l-103-75.9-49.7 47.8c-5.5 5.5-10.1 10.1-20.7 10.1l7.4-104.9 190.9-172.5c8.3-7.4-1.8-11.5-12.9-4.1L117.8 284 16.2 252.2c-22.1-6.9-22.5-22.1 4.6-32.7L418.2 66.4c18.4-6.9 34.5 4.1 28.5 32.2z"},child:[]}]})(e)}function z1(e){return lt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"},child:[]}]})(e)}function BN(e){return lt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M320 336c0 8.84-7.16 16-16 16h-96c-8.84 0-16-7.16-16-16v-48H0v144c0 25.6 22.4 48 48 48h416c25.6 0 48-22.4 48-48V288H320v48zm144-208h-80V80c0-25.6-22.4-48-48-48H176c-25.6 0-48 22.4-48 48v48H48c-25.6 0-48 22.4-48 48v80h512v-80c0-25.6-22.4-48-48-48zm-144 0H192V96h128v32z"},child:[]}]})(e)}function Ms(e){return lt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},child:[]}]})(e)}function FN(e){return lt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z"},child:[]}]})(e)}function VN(e){return lt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z"},child:[]}]})(e)}function HN(e){return lt({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M225.38 233.37c-12.5 12.5-12.5 32.76 0 45.25 12.49 12.5 32.76 12.5 45.25 0 12.5-12.5 12.5-32.76 0-45.25-12.5-12.49-32.76-12.49-45.25 0zM248 8C111.03 8 0 119.03 0 256s111.03 248 248 248 248-111.03 248-248S384.97 8 248 8zm126.14 148.05L308.17 300.4a31.938 31.938 0 0 1-15.77 15.77l-144.34 65.97c-16.65 7.61-33.81-9.55-26.2-26.2l65.98-144.35a31.938 31.938 0 0 1 15.77-15.77l144.34-65.97c16.65-7.6 33.8 9.55 26.19 26.2z"},child:[]}]})(e)}function IN(e){return lt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(e)}function go(e){return lt({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"},child:[]}]})(e)}function yo(e){return lt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(e)}function qN(e){return lt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M349.565 98.783C295.978 98.783 251.721 64 184.348 64c-24.955 0-47.309 4.384-68.045 12.013a55.947 55.947 0 0 0 3.586-23.562C118.117 24.015 94.806 1.206 66.338.048 34.345-1.254 8 24.296 8 56c0 19.026 9.497 35.825 24 45.945V488c0 13.255 10.745 24 24 24h16c13.255 0 24-10.745 24-24v-94.4c28.311-12.064 63.582-22.122 114.435-22.122 53.588 0 97.844 34.783 165.217 34.783 48.169 0 86.667-16.294 122.505-40.858C506.84 359.452 512 349.571 512 339.045v-243.1c0-23.393-24.269-38.87-45.485-29.016-34.338 15.948-76.454 31.854-116.95 31.854z"},child:[]}]})(e)}function GN(e){return lt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"},child:[]}]})(e)}function U1(e){return lt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M497.39 361.8l-112-48a24 24 0 0 0-28 6.9l-49.6 60.6A370.66 370.66 0 0 1 130.6 204.11l60.6-49.6a23.94 23.94 0 0 0 6.9-28l-48-112A24.16 24.16 0 0 0 122.6.61l-104 24A24 24 0 0 0 0 48c0 256.5 207.9 464 464 464a24 24 0 0 0 23.4-18.6l24-104a24.29 24.29 0 0 0-14.01-27.6z"},child:[]}]})(e)}function YN(e){return lt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505.12019,19.09375c-1.18945-5.53125-6.65819-11-12.207-12.1875C460.716,0,435.507,0,410.40747,0,307.17523,0,245.26909,55.20312,199.05238,128H94.83772c-16.34763.01562-35.55658,11.875-42.88664,26.48438L2.51562,253.29688A28.4,28.4,0,0,0,0,264a24.00867,24.00867,0,0,0,24.00582,24H127.81618l-22.47457,22.46875c-11.36521,11.36133-12.99607,32.25781,0,45.25L156.24582,406.625c11.15623,11.1875,32.15619,13.15625,45.27726,0l22.47457-22.46875V488a24.00867,24.00867,0,0,0,24.00581,24,28.55934,28.55934,0,0,0,10.707-2.51562l98.72834-49.39063c14.62888-7.29687,26.50776-26.5,26.50776-42.85937V312.79688c72.59753-46.3125,128.03493-108.40626,128.03493-211.09376C512.07526,76.5,512.07526,51.29688,505.12019,19.09375ZM384.04033,168A40,40,0,1,1,424.05,128,40.02322,40.02322,0,0,1,384.04033,168Z"},child:[]}]})(e)}function B1(e){return lt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M466.5 83.7l-192-80a48.15 48.15 0 0 0-36.9 0l-192 80C27.7 91.1 16 108.6 16 128c0 198.5 114.5 335.7 221.5 380.3 11.8 4.9 25.1 4.9 36.9 0C360.1 472.6 496 349.3 496 128c0-19.4-11.7-36.9-29.5-44.3zM256.1 446.3l-.1-381 175.9 73.3c-3.3 151.4-82.1 261.1-175.8 307.7z"},child:[]}]})(e)}function XN(e){return lt({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function WN(e){return lt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M144 208c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm112 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zm112 0c-17.7 0-32 14.3-32 32s14.3 32 32 32 32-14.3 32-32-14.3-32-32-32zM256 32C114.6 32 0 125.1 0 240c0 47.6 19.9 91.2 52.9 126.3C38 405.7 7 439.1 6.5 439.5c-6.6 7-8.4 17.2-4.6 26S14.4 480 24 480c61.5 0 110-25.7 139.1-46.3C192 442.8 223.2 448 256 448c141.4 0 256-93.1 256-208S397.4 32 256 32zm0 368c-26.7 0-53.1-4.1-78.4-12.1l-22.7-7.2-19.5 13.8c-14.3 10.1-33.9 21.4-57.5 29 7.3-12.1 14.4-25.7 19.9-40.2l10.6-28.1-20.6-21.8C69.7 314.1 48 282.2 48 240c0-88.2 93.3-160 208-160s208 71.8 208 160-93.3 160-208 160z"},child:[]}]})(e)}function ZN(e){return lt({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M16 2L21 7V21.0082C21 21.556 20.5551 22 20.0066 22H3.9934C3.44476 22 3 21.5447 3 21.0082V2.9918C3 2.44405 3.44495 2 3.9934 2H16ZM13 12V8H11V12H8L12 16L16 12H13Z"},child:[]}]})(e)}function F1(e){return lt({attr:{viewBox:"0 0 24 24",fill:"currentColor"},child:[{tag:"path",attr:{d:"M10.4883 14.651L15.25 21H22.25L14.3917 10.5223L20.9308 3H18.2808L13.1643 8.88578L8.75 3H1.75L9.26086 13.0145L2.31915 21H4.96917L10.4883 14.651ZM16.25 19L5.75 5H7.75L18.25 19H16.25Z"},child:[]}]})(e)}const KN="/assets/taxi2-mmWUoSgX.png",$N="/assets/powered-BnbR5ccL.png",QN=()=>{const{theme:e}=Co(),n=()=>{window.scrollTo({top:0,behavior:"smooth"})},a=[{icon:lu,url:"https://www.facebook.com/AAAOGOINTL?rdid=5c6cGwC8Rj2HeWyR&share_url=https%3A%2F%2Fwww.facebook.com%2Fshare%2F19wGmUZcnH%2F#"},{icon:M1,url:"https://www.instagram.com/aaaogointl/?igsh=dzd1dGJtcXB1OXpn#"},{icon:F1,url:"https://x.com/i/flow/login?redirect_after_login=%2Faaaogointl"},{icon:z1,url:"https://www.tiktok.com/@aaaogointl?_t=ZS-8wxikZG1BBZ&_r=1"},{icon:P1,url:"https://t.me/aaaogointl"}];return d.jsxs("footer",{className:`px-6 py-10 w-[95%] mx-auto rounded-3xl transition-colors duration-300 ${e==="dark"?"bg-gray-900 text-gray-200":"bg-[#083A06] text-white"}`,children:[d.jsxs("div",{className:"mx-auto grid grid-cols-1 md:grid-cols-4 gap-10",children:[d.jsxs("div",{children:[d.jsx("h3",{className:"text-xl font-bold mb-4",children:"Contact"}),d.jsxs("a",{href:"tel:+19174260742",className:"flex items-center gap-2 mb-2 hover:text-yellow-400 transition-colors",children:[d.jsx(U1,{className:e==="dark"?"text-yellow-400":"text-green-400"}),"+1 (917) 426-0742"]}),d.jsxs("a",{href:"mailto:support@aaaogo.com",className:"flex items-center gap-2 mb-4 hover:text-yellow-400 transition-colors",children:[d.jsx(IN,{className:e==="dark"?"text-yellow-400":"text-green-400"}),"support@aaaogo.com"]}),d.jsx("h4",{className:"text-lg font-semibold mb-2",children:"Social Accounts"}),d.jsx("div",{className:"flex gap-3",children:a.map(({icon:s,url:o},c)=>d.jsx("a",{href:o,target:"_blank",rel:"noopener noreferrer",className:`p-2 rounded-full transition-colors ${e==="dark"?"bg-gray-700 hover:bg-yellow-500":"bg-green-800 hover:bg-green-600"}`,children:d.jsx(s,{className:e==="dark"?"text-yellow-400":"text-white"})},c))})]}),d.jsxs("div",{children:[d.jsx("h3",{className:"text-xl font-bold mb-4",children:"Quick Links"}),d.jsx("ul",{className:"space-y-2",children:[{name:"Home",path:"/"},{name:"About",path:"/about"},{name:"Services",path:"/services"},{name:"Team",path:"/team"},{name:"FAQS",path:"/faqs"},{name:"Contact",path:"/contact"}].map(s=>d.jsx("li",{children:d.jsx(_1,{to:s.path,onClick:n,className:({isActive:o})=>`transition-colors duration-200 ${o?e==="dark"?"text-yellow-400 font-semibold":"text-green-400 font-semibold":e==="dark"?"text-gray-200 hover:text-yellow-400":"text-white hover:text-green-400"}`,children:s.name})},s.name))})]}),d.jsxs("div",{children:[d.jsx("h3",{className:"text-xl font-bold mb-4",children:"Support"}),d.jsx("ul",{className:"space-y-2",children:["Terms And Conditions","Privacy Policy","Refer A Friend","Become A Member"].map(s=>d.jsx("li",{className:`cursor-pointer transition-colors ${e==="dark"?"text-gray-200 hover:text-yellow-400":"text-white hover:text-green-400"}`,children:s},s))})]}),d.jsxs("div",{children:[d.jsx("h3",{className:"text-xl font-bold mb-4",children:"Our Office"}),d.jsx("p",{children:"Office Address: Alabraj"}),d.jsx("p",{children:"Street Business Bay Dubai"}),d.jsx("p",{children:"UAE"})]})]}),d.jsx("div",{className:"relative w-full mt-10 h-16 overflow-hidden",children:d.jsx("img",{src:KN,alt:"taxi",className:"w-16 h-16 absolute top-0 animate-moveTaxiMobile sm:animate-moveTaxiDesktop"})}),d.jsx("div",{className:`border-t pt-4 text-center text-sm flex flex-col items-center gap-2 ${e==="dark"?"border-gray-700":"border-white"}`,children:d.jsxs("p",{className:`flex gap-2 items-center ${e==="dark"?"text-gray-200":"text-white"}`,children:["POWERED BY ",d.jsx("span",{className:"font-bold",children:"I AM AAAO"}),d.jsx("img",{src:$N,className:"w-5 rounded-full",alt:"powered"})]})})]})};var Wi={},to={exports:{}},JN=to.exports,Cx;function e_(){return Cx||(Cx=1,function(e,n){(function(a,s){s(n)})(JN,function(a){var s=function(){return s=Object.assign||function(c){for(var u,f=1,h=arguments.length;f<h;f++)for(var m in u=arguments[f])Object.prototype.hasOwnProperty.call(u,m)&&(c[m]=u[m]);return c},s.apply(this,arguments)},o=function(){function c(u,f,h){var m=this;this.endVal=f,this.options=h,this.version="2.9.0",this.defaults={startVal:0,decimalPlaces:0,duration:2,useEasing:!0,useGrouping:!0,useIndianSeparators:!1,smartEasingThreshold:999,smartEasingAmount:333,separator:",",decimal:".",prefix:"",suffix:"",enableScrollSpy:!1,scrollSpyDelay:200,scrollSpyOnce:!1},this.finalEndVal=null,this.useEasing=!0,this.countDown=!1,this.error="",this.startVal=0,this.paused=!0,this.once=!1,this.count=function(g){m.startTime||(m.startTime=g);var x=g-m.startTime;m.remaining=m.duration-x,m.useEasing?m.countDown?m.frameVal=m.startVal-m.easingFn(x,0,m.startVal-m.endVal,m.duration):m.frameVal=m.easingFn(x,m.startVal,m.endVal-m.startVal,m.duration):m.frameVal=m.startVal+(m.endVal-m.startVal)*(x/m.duration);var b=m.countDown?m.frameVal<m.endVal:m.frameVal>m.endVal;m.frameVal=b?m.endVal:m.frameVal,m.frameVal=Number(m.frameVal.toFixed(m.options.decimalPlaces)),m.printValue(m.frameVal),x<m.duration?m.rAF=requestAnimationFrame(m.count):m.finalEndVal!==null?m.update(m.finalEndVal):m.options.onCompleteCallback&&m.options.onCompleteCallback()},this.formatNumber=function(g){var x,b,E,_,S=g<0?"-":"";x=Math.abs(g).toFixed(m.options.decimalPlaces);var A=(x+="").split(".");if(b=A[0],E=A.length>1?m.options.decimal+A[1]:"",m.options.useGrouping){_="";for(var T=3,C=0,L=0,q=b.length;L<q;++L)m.options.useIndianSeparators&&L===4&&(T=2,C=1),L!==0&&C%T==0&&(_=m.options.separator+_),C++,_=b[q-L-1]+_;b=_}return m.options.numerals&&m.options.numerals.length&&(b=b.replace(/[0-9]/g,function(N){return m.options.numerals[+N]}),E=E.replace(/[0-9]/g,function(N){return m.options.numerals[+N]})),S+m.options.prefix+b+E+m.options.suffix},this.easeOutExpo=function(g,x,b,E){return b*(1-Math.pow(2,-10*g/E))*1024/1023+x},this.options=s(s({},this.defaults),h),this.formattingFn=this.options.formattingFn?this.options.formattingFn:this.formatNumber,this.easingFn=this.options.easingFn?this.options.easingFn:this.easeOutExpo,this.el=typeof u=="string"?document.getElementById(u):u,f=f??this.parse(this.el.innerHTML),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.endVal=this.validateValue(f),this.options.decimalPlaces=Math.max(this.options.decimalPlaces),this.resetDuration(),this.options.separator=String(this.options.separator),this.useEasing=this.options.useEasing,this.options.separator===""&&(this.options.useGrouping=!1),this.el?this.printValue(this.startVal):this.error="[CountUp] target is null or undefined",typeof window<"u"&&this.options.enableScrollSpy&&(this.error?console.error(this.error,u):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return m.handleScroll(m)}),window.onscroll=function(){window.onScrollFns.forEach(function(g){return g()})},this.handleScroll(this)))}return c.prototype.handleScroll=function(u){if(u&&window&&!u.once){var f=window.innerHeight+window.scrollY,h=u.el.getBoundingClientRect(),m=h.top+window.pageYOffset,g=h.top+h.height+window.pageYOffset;g<f&&g>window.scrollY&&u.paused?(u.paused=!1,setTimeout(function(){return u.start()},u.options.scrollSpyDelay),u.options.scrollSpyOnce&&(u.once=!0)):(window.scrollY>g||m>f)&&!u.paused&&u.reset()}},c.prototype.determineDirectionAndSmartEasing=function(){var u=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>u;var f=u-this.startVal;if(Math.abs(f)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=u;var h=this.countDown?1:-1;this.endVal=u+h*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=u,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},c.prototype.start=function(u){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),u&&(this.options.onCompleteCallback=u),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},c.prototype.pauseResume=function(){this.paused?(this.startTime=null,this.duration=this.remaining,this.startVal=this.frameVal,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count)):cancelAnimationFrame(this.rAF),this.paused=!this.paused},c.prototype.reset=function(){cancelAnimationFrame(this.rAF),this.paused=!0,this.resetDuration(),this.startVal=this.validateValue(this.options.startVal),this.frameVal=this.startVal,this.printValue(this.startVal)},c.prototype.update=function(u){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(u),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},c.prototype.printValue=function(u){var f;if(this.el){var h=this.formattingFn(u);!((f=this.options.plugin)===null||f===void 0)&&f.render?this.options.plugin.render(this.el,h):this.el.tagName==="INPUT"?this.el.value=h:this.el.tagName==="text"||this.el.tagName==="tspan"?this.el.textContent=h:this.el.innerHTML=h}},c.prototype.ensureNumber=function(u){return typeof u=="number"&&!isNaN(u)},c.prototype.validateValue=function(u){var f=Number(u);return this.ensureNumber(f)?f:(this.error="[CountUp] invalid start or end value: ".concat(u),null)},c.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},c.prototype.parse=function(u){var f=function(x){return x.replace(/([.,' ])/g,"\\$1")},h=f(this.options.separator),m=f(this.options.decimal),g=u.replace(new RegExp(h,"g"),"").replace(new RegExp(m,"g"),".");return parseFloat(g)},c}();a.CountUp=o})}(to,to.exports)),to.exports}var Dx;function t_(){if(Dx)return Wi;Dx=1,Object.defineProperty(Wi,"__esModule",{value:!0});var e=Cn(),n=e_();function a(H,M){var R=H==null?null:typeof Symbol<"u"&&H[Symbol.iterator]||H["@@iterator"];if(R!=null){var K,P,V,j,Z=[],W=!0,w=!1;try{if(V=(R=R.call(H)).next,M!==0)for(;!(W=(K=V.call(R)).done)&&(Z.push(K.value),Z.length!==M);W=!0);}catch(ue){w=!0,P=ue}finally{try{if(!W&&R.return!=null&&(j=R.return(),Object(j)!==j))return}finally{if(w)throw P}}return Z}}function s(H,M){var R=Object.keys(H);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(H);M&&(K=K.filter(function(P){return Object.getOwnPropertyDescriptor(H,P).enumerable})),R.push.apply(R,K)}return R}function o(H){for(var M=1;M<arguments.length;M++){var R=arguments[M]!=null?arguments[M]:{};M%2?s(Object(R),!0).forEach(function(K){f(H,K,R[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(R)):s(Object(R)).forEach(function(K){Object.defineProperty(H,K,Object.getOwnPropertyDescriptor(R,K))})}return H}function c(H,M){if(typeof H!="object"||!H)return H;var R=H[Symbol.toPrimitive];if(R!==void 0){var K=R.call(H,M);if(typeof K!="object")return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return(M==="string"?String:Number)(H)}function u(H){var M=c(H,"string");return typeof M=="symbol"?M:String(M)}function f(H,M,R){return M=u(M),M in H?Object.defineProperty(H,M,{value:R,enumerable:!0,configurable:!0,writable:!0}):H[M]=R,H}function h(){return h=Object.assign?Object.assign.bind():function(H){for(var M=1;M<arguments.length;M++){var R=arguments[M];for(var K in R)Object.prototype.hasOwnProperty.call(R,K)&&(H[K]=R[K])}return H},h.apply(this,arguments)}function m(H,M){if(H==null)return{};var R={},K=Object.keys(H),P,V;for(V=0;V<K.length;V++)P=K[V],!(M.indexOf(P)>=0)&&(R[P]=H[P]);return R}function g(H,M){if(H==null)return{};var R=m(H,M),K,P;if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(H);for(P=0;P<V.length;P++)K=V[P],!(M.indexOf(K)>=0)&&Object.prototype.propertyIsEnumerable.call(H,K)&&(R[K]=H[K])}return R}function x(H,M){return b(H)||a(H,M)||E(H,M)||S()}function b(H){if(Array.isArray(H))return H}function E(H,M){if(H){if(typeof H=="string")return _(H,M);var R=Object.prototype.toString.call(H).slice(8,-1);if(R==="Object"&&H.constructor&&(R=H.constructor.name),R==="Map"||R==="Set")return Array.from(H);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return _(H,M)}}function _(H,M){(M==null||M>H.length)&&(M=H.length);for(var R=0,K=new Array(M);R<M;R++)K[R]=H[R];return K}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var A=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?e.useLayoutEffect:e.useEffect;function T(H){var M=e.useRef(H);return A(function(){M.current=H}),e.useCallback(function(){for(var R=arguments.length,K=new Array(R),P=0;P<R;P++)K[P]=arguments[P];return M.current.apply(void 0,K)},[])}var C=function(M,R){var K=R.decimal,P=R.decimals,V=R.duration,j=R.easingFn,Z=R.end,W=R.formattingFn,w=R.numerals,ue=R.prefix,I=R.separator,v=R.start,O=R.suffix,U=R.useEasing,J=R.useGrouping,Q=R.useIndianSeparators,ne=R.enableScrollSpy,ie=R.scrollSpyDelay,be=R.scrollSpyOnce,Se=R.plugin;return new n.CountUp(M,Z,{startVal:v,duration:V,decimal:K,decimalPlaces:P,easingFn:j,formattingFn:W,numerals:w,separator:I,prefix:ue,suffix:O,plugin:Se,useEasing:U,useIndianSeparators:Q,useGrouping:J,enableScrollSpy:ne,scrollSpyDelay:ie,scrollSpyOnce:be})},L=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],q={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},N=function(M){var R=Object.fromEntries(Object.entries(M).filter(function(Re){var k=x(Re,2),de=k[1];return de!==void 0})),K=e.useMemo(function(){return o(o({},q),R)},[M]),P=K.ref,V=K.startOnMount,j=K.enableReinitialize,Z=K.delay,W=K.onEnd,w=K.onStart,ue=K.onPauseResume,I=K.onReset,v=K.onUpdate,O=g(K,L),U=e.useRef(),J=e.useRef(),Q=e.useRef(!1),ne=T(function(){return C(typeof P=="string"?P:P.current,O)}),ie=T(function(Re){var k=U.current;if(k&&!Re)return k;var de=ne();return U.current=de,de}),be=T(function(){var Re=function(){return ie(!0).start(function(){W?.({pauseResume:Se,reset:Ee,start:Oe,update:Ne})})};Z&&Z>0?J.current=setTimeout(Re,Z*1e3):Re(),w?.({pauseResume:Se,reset:Ee,update:Ne})}),Se=T(function(){ie().pauseResume(),ue?.({reset:Ee,start:Oe,update:Ne})}),Ee=T(function(){ie().el&&(J.current&&clearTimeout(J.current),ie().reset(),I?.({pauseResume:Se,start:Oe,update:Ne}))}),Ne=T(function(Re){ie().update(Re),v?.({pauseResume:Se,reset:Ee,start:Oe})}),Oe=T(function(){Ee(),be()}),Le=T(function(Re){V&&(Re&&Ee(),be())});return e.useEffect(function(){Q.current?j&&Le(!0):(Q.current=!0,Le())},[j,Q,Le,Z,M.start,M.suffix,M.prefix,M.duration,M.separator,M.decimals,M.decimal,M.formattingFn]),e.useEffect(function(){return function(){Ee()}},[Ee]),{start:Oe,pauseResume:Se,reset:Ee,update:Ne,getCountUp:ie}},z=["className","redraw","containerProps","children","style"],F=function(M){var R=M.className,K=M.redraw,P=M.containerProps,V=M.children,j=M.style,Z=g(M,z),W=e.useRef(null),w=e.useRef(!1),ue=N(o(o({},Z),{},{ref:W,startOnMount:typeof V!="function"||M.delay===0,enableReinitialize:!1})),I=ue.start,v=ue.reset,O=ue.update,U=ue.pauseResume,J=ue.getCountUp,Q=T(function(){I()}),ne=T(function(Se){M.preserveValue||v(),O(Se)}),ie=T(function(){if(typeof M.children=="function"&&!(W.current instanceof Element)){console.error(`Couldn't find attached element to hook the CountUp instance into! Try to attach "containerRef" from the render prop to a an Element, eg. <span ref={containerRef} />.`);return}J()});e.useEffect(function(){ie()},[ie]),e.useEffect(function(){w.current&&ne(M.end)},[M.end,ne]);var be=K&&M;return e.useEffect(function(){K&&w.current&&Q()},[Q,K,be]),e.useEffect(function(){!K&&w.current&&Q()},[Q,K,M.start,M.suffix,M.prefix,M.duration,M.separator,M.decimals,M.decimal,M.className,M.formattingFn]),e.useEffect(function(){w.current=!0},[]),typeof V=="function"?V({countUpRef:W,start:I,reset:v,update:O,pauseResume:U,getCountUp:J}):e.createElement("span",h({className:R,ref:W,style:j},P),typeof M.start<"u"?J().formattingFn(M.start):"")};return Wi.default=F,Wi.useCountUp=N,Wi}var n_=t_();const Ls=Ic(n_);var Uh=new Map,tc=new WeakMap,Mx=0,r_=void 0;function a_(e){return e?(tc.has(e)||(Mx+=1,tc.set(e,Mx.toString())),tc.get(e)):"0"}function s_(e){return Object.keys(e).sort().filter(n=>e[n]!==void 0).map(n=>`${n}_${n==="root"?a_(e.root):e[n]}`).toString()}function i_(e){const n=s_(e);let a=Uh.get(n);if(!a){const s=new Map;let o;const c=new IntersectionObserver(u=>{u.forEach(f=>{var h;const m=f.isIntersecting&&o.some(g=>f.intersectionRatio>=g);e.trackVisibility&&typeof f.isVisible>"u"&&(f.isVisible=m),(h=s.get(f.target))==null||h.forEach(g=>{g(m,f)})})},e);o=c.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),a={id:n,observer:c,elements:s},Uh.set(n,a)}return a}function o_(e,n,a={},s=r_){if(typeof window.IntersectionObserver>"u"&&s!==void 0){const h=e.getBoundingClientRect();return n(s,{isIntersecting:s,target:e,intersectionRatio:typeof a.threshold=="number"?a.threshold:0,time:0,boundingClientRect:h,intersectionRect:h,rootBounds:h}),()=>{}}const{id:o,observer:c,elements:u}=i_(a),f=u.get(e)||[];return u.has(e)||u.set(e,f),f.push(n),c.observe(e),function(){f.splice(f.indexOf(n),1),f.length===0&&(u.delete(e),c.unobserve(e)),u.size===0&&(c.disconnect(),Uh.delete(o))}}function V1({threshold:e,delay:n,trackVisibility:a,rootMargin:s,root:o,triggerOnce:c,skip:u,initialInView:f,fallbackInView:h,onChange:m}={}){var g;const[x,b]=X.useState(null),E=X.useRef(m),[_,S]=X.useState({inView:!!f,entry:void 0});E.current=m,X.useEffect(()=>{if(u||!x)return;let L;return L=o_(x,(q,N)=>{S({inView:q,entry:N}),E.current&&E.current(q,N),N.isIntersecting&&c&&L&&(L(),L=void 0)},{root:o,rootMargin:s,threshold:e,trackVisibility:a,delay:n},h),()=>{L&&L()}},[Array.isArray(e)?e.toString():e,x,o,s,c,u,a,h,n]);const A=(g=_.entry)==null?void 0:g.target,T=X.useRef(void 0);!x&&A&&!c&&!u&&T.current!==A&&(T.current=A,S({inView:!!f,entry:void 0}));const C=[b,_.inView,_.entry];return C.ref=C[0],C.inView=C[1],C.entry=C[2],C}function nc(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Gf={exports:{}};/*!
JSZip v3.10.1 - A JavaScript class for generating and reading zip files
<http://stuartk.com/jszip>
(c) 2009-2016 Stuart Knightley <stuart [at] stuartk.com>
Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip/main/LICENSE.markdown.
JSZip uses the library pako released under the MIT license :
https://github.com/nodeca/pako/blob/main/LICENSE
*/var Lx;function l_(){return Lx||(Lx=1,function(e,n){(function(a){e.exports=a()})(function(){return function a(s,o,c){function u(m,g){if(!o[m]){if(!s[m]){var x=typeof nc=="function"&&nc;if(!g&&x)return x(m,!0);if(f)return f(m,!0);var b=new Error("Cannot find module '"+m+"'");throw b.code="MODULE_NOT_FOUND",b}var E=o[m]={exports:{}};s[m][0].call(E.exports,function(_){var S=s[m][1][_];return u(S||_)},E,E.exports,a,s,o,c)}return o[m].exports}for(var f=typeof nc=="function"&&nc,h=0;h<c.length;h++)u(c[h]);return u}({1:[function(a,s,o){var c=a("./utils"),u=a("./support"),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(h){for(var m,g,x,b,E,_,S,A=[],T=0,C=h.length,L=C,q=c.getTypeOf(h)!=="string";T<h.length;)L=C-T,x=q?(m=h[T++],g=T<C?h[T++]:0,T<C?h[T++]:0):(m=h.charCodeAt(T++),g=T<C?h.charCodeAt(T++):0,T<C?h.charCodeAt(T++):0),b=m>>2,E=(3&m)<<4|g>>4,_=1<L?(15&g)<<2|x>>6:64,S=2<L?63&x:64,A.push(f.charAt(b)+f.charAt(E)+f.charAt(_)+f.charAt(S));return A.join("")},o.decode=function(h){var m,g,x,b,E,_,S=0,A=0,T="data:";if(h.substr(0,T.length)===T)throw new Error("Invalid base64 input, it looks like a data url.");var C,L=3*(h=h.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(h.charAt(h.length-1)===f.charAt(64)&&L--,h.charAt(h.length-2)===f.charAt(64)&&L--,L%1!=0)throw new Error("Invalid base64 input, bad content length.");for(C=u.uint8array?new Uint8Array(0|L):new Array(0|L);S<h.length;)m=f.indexOf(h.charAt(S++))<<2|(b=f.indexOf(h.charAt(S++)))>>4,g=(15&b)<<4|(E=f.indexOf(h.charAt(S++)))>>2,x=(3&E)<<6|(_=f.indexOf(h.charAt(S++))),C[A++]=m,E!==64&&(C[A++]=g),_!==64&&(C[A++]=x);return C}},{"./support":30,"./utils":32}],2:[function(a,s,o){var c=a("./external"),u=a("./stream/DataWorker"),f=a("./stream/Crc32Probe"),h=a("./stream/DataLengthProbe");function m(g,x,b,E,_){this.compressedSize=g,this.uncompressedSize=x,this.crc32=b,this.compression=E,this.compressedContent=_}m.prototype={getContentWorker:function(){var g=new u(c.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),x=this;return g.on("end",function(){if(this.streamInfo.data_length!==x.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),g},getCompressedWorker:function(){return new u(c.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},m.createWorkerFrom=function(g,x,b){return g.pipe(new f).pipe(new h("uncompressedSize")).pipe(x.compressWorker(b)).pipe(new h("compressedSize")).withStreamInfo("compression",x)},s.exports=m},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,s,o){var c=a("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new c("STORE compression")},uncompressWorker:function(){return new c("STORE decompression")}},o.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,s,o){var c=a("./utils"),u=function(){for(var f,h=[],m=0;m<256;m++){f=m;for(var g=0;g<8;g++)f=1&f?3988292384^f>>>1:f>>>1;h[m]=f}return h}();s.exports=function(f,h){return f!==void 0&&f.length?c.getTypeOf(f)!=="string"?function(m,g,x,b){var E=u,_=b+x;m^=-1;for(var S=b;S<_;S++)m=m>>>8^E[255&(m^g[S])];return-1^m}(0|h,f,f.length,0):function(m,g,x,b){var E=u,_=b+x;m^=-1;for(var S=b;S<_;S++)m=m>>>8^E[255&(m^g.charCodeAt(S))];return-1^m}(0|h,f,f.length,0):0}},{"./utils":32}],5:[function(a,s,o){o.base64=!1,o.binary=!1,o.dir=!1,o.createFolders=!0,o.date=null,o.compression=null,o.compressionOptions=null,o.comment=null,o.unixPermissions=null,o.dosPermissions=null},{}],6:[function(a,s,o){var c=null;c=typeof Promise<"u"?Promise:a("lie"),s.exports={Promise:c}},{lie:37}],7:[function(a,s,o){var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",u=a("pako"),f=a("./utils"),h=a("./stream/GenericWorker"),m=c?"uint8array":"array";function g(x,b){h.call(this,"FlateWorker/"+x),this._pako=null,this._pakoAction=x,this._pakoOptions=b,this.meta={}}o.magic="\b\0",f.inherits(g,h),g.prototype.processChunk=function(x){this.meta=x.meta,this._pako===null&&this._createPako(),this._pako.push(f.transformTo(m,x.data),!1)},g.prototype.flush=function(){h.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},g.prototype.cleanUp=function(){h.prototype.cleanUp.call(this),this._pako=null},g.prototype._createPako=function(){this._pako=new u[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var x=this;this._pako.onData=function(b){x.push({data:b,meta:x.meta})}},o.compressWorker=function(x){return new g("Deflate",x)},o.uncompressWorker=function(){return new g("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(a,s,o){function c(E,_){var S,A="";for(S=0;S<_;S++)A+=String.fromCharCode(255&E),E>>>=8;return A}function u(E,_,S,A,T,C){var L,q,N=E.file,z=E.compression,F=C!==m.utf8encode,H=f.transformTo("string",C(N.name)),M=f.transformTo("string",m.utf8encode(N.name)),R=N.comment,K=f.transformTo("string",C(R)),P=f.transformTo("string",m.utf8encode(R)),V=M.length!==N.name.length,j=P.length!==R.length,Z="",W="",w="",ue=N.dir,I=N.date,v={crc32:0,compressedSize:0,uncompressedSize:0};_&&!S||(v.crc32=E.crc32,v.compressedSize=E.compressedSize,v.uncompressedSize=E.uncompressedSize);var O=0;_&&(O|=8),F||!V&&!j||(O|=2048);var U=0,J=0;ue&&(U|=16),T==="UNIX"?(J=798,U|=function(ne,ie){var be=ne;return ne||(be=ie?16893:33204),(65535&be)<<16}(N.unixPermissions,ue)):(J=20,U|=function(ne){return 63&(ne||0)}(N.dosPermissions)),L=I.getUTCHours(),L<<=6,L|=I.getUTCMinutes(),L<<=5,L|=I.getUTCSeconds()/2,q=I.getUTCFullYear()-1980,q<<=4,q|=I.getUTCMonth()+1,q<<=5,q|=I.getUTCDate(),V&&(W=c(1,1)+c(g(H),4)+M,Z+="up"+c(W.length,2)+W),j&&(w=c(1,1)+c(g(K),4)+P,Z+="uc"+c(w.length,2)+w);var Q="";return Q+=`
\0`,Q+=c(O,2),Q+=z.magic,Q+=c(L,2),Q+=c(q,2),Q+=c(v.crc32,4),Q+=c(v.compressedSize,4),Q+=c(v.uncompressedSize,4),Q+=c(H.length,2),Q+=c(Z.length,2),{fileRecord:x.LOCAL_FILE_HEADER+Q+H+Z,dirRecord:x.CENTRAL_FILE_HEADER+c(J,2)+Q+c(K.length,2)+"\0\0\0\0"+c(U,4)+c(A,4)+H+Z+K}}var f=a("../utils"),h=a("../stream/GenericWorker"),m=a("../utf8"),g=a("../crc32"),x=a("../signature");function b(E,_,S,A){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=_,this.zipPlatform=S,this.encodeFileName=A,this.streamFiles=E,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}f.inherits(b,h),b.prototype.push=function(E){var _=E.meta.percent||0,S=this.entriesCount,A=this._sources.length;this.accumulate?this.contentBuffer.push(E):(this.bytesWritten+=E.data.length,h.prototype.push.call(this,{data:E.data,meta:{currentFile:this.currentFile,percent:S?(_+100*(S-A-1))/S:100}}))},b.prototype.openedSource=function(E){this.currentSourceOffset=this.bytesWritten,this.currentFile=E.file.name;var _=this.streamFiles&&!E.file.dir;if(_){var S=u(E,_,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:S.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(E){this.accumulate=!1;var _=this.streamFiles&&!E.file.dir,S=u(E,_,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(S.dirRecord),_)this.push({data:function(A){return x.DATA_DESCRIPTOR+c(A.crc32,4)+c(A.compressedSize,4)+c(A.uncompressedSize,4)}(E),meta:{percent:100}});else for(this.push({data:S.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},b.prototype.flush=function(){for(var E=this.bytesWritten,_=0;_<this.dirRecords.length;_++)this.push({data:this.dirRecords[_],meta:{percent:100}});var S=this.bytesWritten-E,A=function(T,C,L,q,N){var z=f.transformTo("string",N(q));return x.CENTRAL_DIRECTORY_END+"\0\0\0\0"+c(T,2)+c(T,2)+c(C,4)+c(L,4)+c(z.length,2)+z}(this.dirRecords.length,S,E,this.zipComment,this.encodeFileName);this.push({data:A,meta:{percent:100}})},b.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},b.prototype.registerPrevious=function(E){this._sources.push(E);var _=this;return E.on("data",function(S){_.processChunk(S)}),E.on("end",function(){_.closedSource(_.previous.streamInfo),_._sources.length?_.prepareNextSource():_.end()}),E.on("error",function(S){_.error(S)}),this},b.prototype.resume=function(){return!!h.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},b.prototype.error=function(E){var _=this._sources;if(!h.prototype.error.call(this,E))return!1;for(var S=0;S<_.length;S++)try{_[S].error(E)}catch{}return!0},b.prototype.lock=function(){h.prototype.lock.call(this);for(var E=this._sources,_=0;_<E.length;_++)E[_].lock()},s.exports=b},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(a,s,o){var c=a("../compressions"),u=a("./ZipFileWorker");o.generateWorker=function(f,h,m){var g=new u(h.streamFiles,m,h.platform,h.encodeFileName),x=0;try{f.forEach(function(b,E){x++;var _=function(C,L){var q=C||L,N=c[q];if(!N)throw new Error(q+" is not a valid compression method !");return N}(E.options.compression,h.compression),S=E.options.compressionOptions||h.compressionOptions||{},A=E.dir,T=E.date;E._compressWorker(_,S).withStreamInfo("file",{name:b,dir:A,date:T,comment:E.comment||"",unixPermissions:E.unixPermissions,dosPermissions:E.dosPermissions}).pipe(g)}),g.entriesCount=x}catch(b){g.error(b)}return g}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(a,s,o){function c(){if(!(this instanceof c))return new c;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var u=new c;for(var f in this)typeof this[f]!="function"&&(u[f]=this[f]);return u}}(c.prototype=a("./object")).loadAsync=a("./load"),c.support=a("./support"),c.defaults=a("./defaults"),c.version="3.10.1",c.loadAsync=function(u,f){return new c().loadAsync(u,f)},c.external=a("./external"),s.exports=c},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(a,s,o){var c=a("./utils"),u=a("./external"),f=a("./utf8"),h=a("./zipEntries"),m=a("./stream/Crc32Probe"),g=a("./nodejsUtils");function x(b){return new u.Promise(function(E,_){var S=b.decompressed.getContentWorker().pipe(new m);S.on("error",function(A){_(A)}).on("end",function(){S.streamInfo.crc32!==b.decompressed.crc32?_(new Error("Corrupted zip : CRC32 mismatch")):E()}).resume()})}s.exports=function(b,E){var _=this;return E=c.extend(E||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),g.isNode&&g.isStream(b)?u.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):c.prepareContent("the loaded zip file",b,!0,E.optimizedBinaryString,E.base64).then(function(S){var A=new h(E);return A.load(S),A}).then(function(S){var A=[u.Promise.resolve(S)],T=S.files;if(E.checkCRC32)for(var C=0;C<T.length;C++)A.push(x(T[C]));return u.Promise.all(A)}).then(function(S){for(var A=S.shift(),T=A.files,C=0;C<T.length;C++){var L=T[C],q=L.fileNameStr,N=c.resolve(L.fileNameStr);_.file(N,L.decompressed,{binary:!0,optimizedBinaryString:!0,date:L.date,dir:L.dir,comment:L.fileCommentStr.length?L.fileCommentStr:null,unixPermissions:L.unixPermissions,dosPermissions:L.dosPermissions,createFolders:E.createFolders}),L.dir||(_.file(N).unsafeOriginalName=q)}return A.zipComment.length&&(_.comment=A.zipComment),_})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(a,s,o){var c=a("../utils"),u=a("../stream/GenericWorker");function f(h,m){u.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(m)}c.inherits(f,u),f.prototype._bindStream=function(h){var m=this;(this._stream=h).pause(),h.on("data",function(g){m.push({data:g,meta:{percent:0}})}).on("error",function(g){m.isPaused?this.generatedError=g:m.error(g)}).on("end",function(){m.isPaused?m._upstreamEnded=!0:m.end()})},f.prototype.pause=function(){return!!u.prototype.pause.call(this)&&(this._stream.pause(),!0)},f.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},s.exports=f},{"../stream/GenericWorker":28,"../utils":32}],13:[function(a,s,o){var c=a("readable-stream").Readable;function u(f,h,m){c.call(this,h),this._helper=f;var g=this;f.on("data",function(x,b){g.push(x)||g._helper.pause(),m&&m(b)}).on("error",function(x){g.emit("error",x)}).on("end",function(){g.push(null)})}a("../utils").inherits(u,c),u.prototype._read=function(){this._helper.resume()},s.exports=u},{"../utils":32,"readable-stream":16}],14:[function(a,s,o){s.exports={isNode:typeof Buffer<"u",newBufferFrom:function(c,u){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(c,u);if(typeof c=="number")throw new Error('The "data" argument must not be a number');return new Buffer(c,u)},allocBuffer:function(c){if(Buffer.alloc)return Buffer.alloc(c);var u=new Buffer(c);return u.fill(0),u},isBuffer:function(c){return Buffer.isBuffer(c)},isStream:function(c){return c&&typeof c.on=="function"&&typeof c.pause=="function"&&typeof c.resume=="function"}}},{}],15:[function(a,s,o){function c(N,z,F){var H,M=f.getTypeOf(z),R=f.extend(F||{},g);R.date=R.date||new Date,R.compression!==null&&(R.compression=R.compression.toUpperCase()),typeof R.unixPermissions=="string"&&(R.unixPermissions=parseInt(R.unixPermissions,8)),R.unixPermissions&&16384&R.unixPermissions&&(R.dir=!0),R.dosPermissions&&16&R.dosPermissions&&(R.dir=!0),R.dir&&(N=T(N)),R.createFolders&&(H=A(N))&&C.call(this,H,!0);var K=M==="string"&&R.binary===!1&&R.base64===!1;F&&F.binary!==void 0||(R.binary=!K),(z instanceof x&&z.uncompressedSize===0||R.dir||!z||z.length===0)&&(R.base64=!1,R.binary=!0,z="",R.compression="STORE",M="string");var P=null;P=z instanceof x||z instanceof h?z:_.isNode&&_.isStream(z)?new S(N,z):f.prepareContent(N,z,R.binary,R.optimizedBinaryString,R.base64);var V=new b(N,P,R);this.files[N]=V}var u=a("./utf8"),f=a("./utils"),h=a("./stream/GenericWorker"),m=a("./stream/StreamHelper"),g=a("./defaults"),x=a("./compressedObject"),b=a("./zipObject"),E=a("./generate"),_=a("./nodejsUtils"),S=a("./nodejs/NodejsStreamInputAdapter"),A=function(N){N.slice(-1)==="/"&&(N=N.substring(0,N.length-1));var z=N.lastIndexOf("/");return 0<z?N.substring(0,z):""},T=function(N){return N.slice(-1)!=="/"&&(N+="/"),N},C=function(N,z){return z=z!==void 0?z:g.createFolders,N=T(N),this.files[N]||c.call(this,N,null,{dir:!0,createFolders:z}),this.files[N]};function L(N){return Object.prototype.toString.call(N)==="[object RegExp]"}var q={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(N){var z,F,H;for(z in this.files)H=this.files[z],(F=z.slice(this.root.length,z.length))&&z.slice(0,this.root.length)===this.root&&N(F,H)},filter:function(N){var z=[];return this.forEach(function(F,H){N(F,H)&&z.push(H)}),z},file:function(N,z,F){if(arguments.length!==1)return N=this.root+N,c.call(this,N,z,F),this;if(L(N)){var H=N;return this.filter(function(R,K){return!K.dir&&H.test(R)})}var M=this.files[this.root+N];return M&&!M.dir?M:null},folder:function(N){if(!N)return this;if(L(N))return this.filter(function(M,R){return R.dir&&N.test(M)});var z=this.root+N,F=C.call(this,z),H=this.clone();return H.root=F.name,H},remove:function(N){N=this.root+N;var z=this.files[N];if(z||(N.slice(-1)!=="/"&&(N+="/"),z=this.files[N]),z&&!z.dir)delete this.files[N];else for(var F=this.filter(function(M,R){return R.name.slice(0,N.length)===N}),H=0;H<F.length;H++)delete this.files[F[H].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(N){var z,F={};try{if((F=f.extend(N||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:u.utf8encode})).type=F.type.toLowerCase(),F.compression=F.compression.toUpperCase(),F.type==="binarystring"&&(F.type="string"),!F.type)throw new Error("No output type specified.");f.checkSupport(F.type),F.platform!=="darwin"&&F.platform!=="freebsd"&&F.platform!=="linux"&&F.platform!=="sunos"||(F.platform="UNIX"),F.platform==="win32"&&(F.platform="DOS");var H=F.comment||this.comment||"";z=E.generateWorker(this,F,H)}catch(M){(z=new h("error")).error(M)}return new m(z,F.type||"string",F.mimeType)},generateAsync:function(N,z){return this.generateInternalStream(N).accumulate(z)},generateNodeStream:function(N,z){return(N=N||{}).type||(N.type="nodebuffer"),this.generateInternalStream(N).toNodejsStream(z)}};s.exports=q},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(a,s,o){s.exports=a("stream")},{stream:void 0}],17:[function(a,s,o){var c=a("./DataReader");function u(f){c.call(this,f);for(var h=0;h<this.data.length;h++)f[h]=255&f[h]}a("../utils").inherits(u,c),u.prototype.byteAt=function(f){return this.data[this.zero+f]},u.prototype.lastIndexOfSignature=function(f){for(var h=f.charCodeAt(0),m=f.charCodeAt(1),g=f.charCodeAt(2),x=f.charCodeAt(3),b=this.length-4;0<=b;--b)if(this.data[b]===h&&this.data[b+1]===m&&this.data[b+2]===g&&this.data[b+3]===x)return b-this.zero;return-1},u.prototype.readAndCheckSignature=function(f){var h=f.charCodeAt(0),m=f.charCodeAt(1),g=f.charCodeAt(2),x=f.charCodeAt(3),b=this.readData(4);return h===b[0]&&m===b[1]&&g===b[2]&&x===b[3]},u.prototype.readData=function(f){if(this.checkOffset(f),f===0)return[];var h=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,h},s.exports=u},{"../utils":32,"./DataReader":18}],18:[function(a,s,o){var c=a("../utils");function u(f){this.data=f,this.length=f.length,this.index=0,this.zero=0}u.prototype={checkOffset:function(f){this.checkIndex(this.index+f)},checkIndex:function(f){if(this.length<this.zero+f||f<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+f+"). Corrupted zip ?")},setIndex:function(f){this.checkIndex(f),this.index=f},skip:function(f){this.setIndex(this.index+f)},byteAt:function(){},readInt:function(f){var h,m=0;for(this.checkOffset(f),h=this.index+f-1;h>=this.index;h--)m=(m<<8)+this.byteAt(h);return this.index+=f,m},readString:function(f){return c.transformTo("string",this.readData(f))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var f=this.readInt(4);return new Date(Date.UTC(1980+(f>>25&127),(f>>21&15)-1,f>>16&31,f>>11&31,f>>5&63,(31&f)<<1))}},s.exports=u},{"../utils":32}],19:[function(a,s,o){var c=a("./Uint8ArrayReader");function u(f){c.call(this,f)}a("../utils").inherits(u,c),u.prototype.readData=function(f){this.checkOffset(f);var h=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,h},s.exports=u},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(a,s,o){var c=a("./DataReader");function u(f){c.call(this,f)}a("../utils").inherits(u,c),u.prototype.byteAt=function(f){return this.data.charCodeAt(this.zero+f)},u.prototype.lastIndexOfSignature=function(f){return this.data.lastIndexOf(f)-this.zero},u.prototype.readAndCheckSignature=function(f){return f===this.readData(4)},u.prototype.readData=function(f){this.checkOffset(f);var h=this.data.slice(this.zero+this.index,this.zero+this.index+f);return this.index+=f,h},s.exports=u},{"../utils":32,"./DataReader":18}],21:[function(a,s,o){var c=a("./ArrayReader");function u(f){c.call(this,f)}a("../utils").inherits(u,c),u.prototype.readData=function(f){if(this.checkOffset(f),f===0)return new Uint8Array(0);var h=this.data.subarray(this.zero+this.index,this.zero+this.index+f);return this.index+=f,h},s.exports=u},{"../utils":32,"./ArrayReader":17}],22:[function(a,s,o){var c=a("../utils"),u=a("../support"),f=a("./ArrayReader"),h=a("./StringReader"),m=a("./NodeBufferReader"),g=a("./Uint8ArrayReader");s.exports=function(x){var b=c.getTypeOf(x);return c.checkSupport(b),b!=="string"||u.uint8array?b==="nodebuffer"?new m(x):u.uint8array?new g(c.transformTo("uint8array",x)):new f(c.transformTo("array",x)):new h(x)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(a,s,o){o.LOCAL_FILE_HEADER="PK",o.CENTRAL_FILE_HEADER="PK",o.CENTRAL_DIRECTORY_END="PK",o.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",o.ZIP64_CENTRAL_DIRECTORY_END="PK",o.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(a,s,o){var c=a("./GenericWorker"),u=a("../utils");function f(h){c.call(this,"ConvertWorker to "+h),this.destType=h}u.inherits(f,c),f.prototype.processChunk=function(h){this.push({data:u.transformTo(this.destType,h.data),meta:h.meta})},s.exports=f},{"../utils":32,"./GenericWorker":28}],25:[function(a,s,o){var c=a("./GenericWorker"),u=a("../crc32");function f(){c.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}a("../utils").inherits(f,c),f.prototype.processChunk=function(h){this.streamInfo.crc32=u(h.data,this.streamInfo.crc32||0),this.push(h)},s.exports=f},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(a,s,o){var c=a("../utils"),u=a("./GenericWorker");function f(h){u.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}c.inherits(f,u),f.prototype.processChunk=function(h){if(h){var m=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=m+h.data.length}u.prototype.processChunk.call(this,h)},s.exports=f},{"../utils":32,"./GenericWorker":28}],27:[function(a,s,o){var c=a("../utils"),u=a("./GenericWorker");function f(h){u.call(this,"DataWorker");var m=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,h.then(function(g){m.dataIsReady=!0,m.data=g,m.max=g&&g.length||0,m.type=c.getTypeOf(g),m.isPaused||m._tickAndRepeat()},function(g){m.error(g)})}c.inherits(f,u),f.prototype.cleanUp=function(){u.prototype.cleanUp.call(this),this.data=null},f.prototype.resume=function(){return!!u.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,c.delay(this._tickAndRepeat,[],this)),!0)},f.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(c.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},f.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var h=null,m=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":h=this.data.substring(this.index,m);break;case"uint8array":h=this.data.subarray(this.index,m);break;case"array":case"nodebuffer":h=this.data.slice(this.index,m)}return this.index=m,this.push({data:h,meta:{percent:this.max?this.index/this.max*100:0}})},s.exports=f},{"../utils":32,"./GenericWorker":28}],28:[function(a,s,o){function c(u){this.name=u||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}c.prototype={push:function(u){this.emit("data",u)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(u){this.emit("error",u)}return!0},error:function(u){return!this.isFinished&&(this.isPaused?this.generatedError=u:(this.isFinished=!0,this.emit("error",u),this.previous&&this.previous.error(u),this.cleanUp()),!0)},on:function(u,f){return this._listeners[u].push(f),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(u,f){if(this._listeners[u])for(var h=0;h<this._listeners[u].length;h++)this._listeners[u][h].call(this,f)},pipe:function(u){return u.registerPrevious(this)},registerPrevious:function(u){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=u.streamInfo,this.mergeStreamInfo(),this.previous=u;var f=this;return u.on("data",function(h){f.processChunk(h)}),u.on("end",function(){f.end()}),u.on("error",function(h){f.error(h)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var u=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),u=!0),this.previous&&this.previous.resume(),!u},flush:function(){},processChunk:function(u){this.push(u)},withStreamInfo:function(u,f){return this.extraStreamInfo[u]=f,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var u in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,u)&&(this.streamInfo[u]=this.extraStreamInfo[u])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var u="Worker "+this.name;return this.previous?this.previous+" -> "+u:u}},s.exports=c},{}],29:[function(a,s,o){var c=a("../utils"),u=a("./ConvertWorker"),f=a("./GenericWorker"),h=a("../base64"),m=a("../support"),g=a("../external"),x=null;if(m.nodestream)try{x=a("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(_,S){return new g.Promise(function(A,T){var C=[],L=_._internalType,q=_._outputType,N=_._mimeType;_.on("data",function(z,F){C.push(z),S&&S(F)}).on("error",function(z){C=[],T(z)}).on("end",function(){try{var z=function(F,H,M){switch(F){case"blob":return c.newBlob(c.transformTo("arraybuffer",H),M);case"base64":return h.encode(H);default:return c.transformTo(F,H)}}(q,function(F,H){var M,R=0,K=null,P=0;for(M=0;M<H.length;M++)P+=H[M].length;switch(F){case"string":return H.join("");case"array":return Array.prototype.concat.apply([],H);case"uint8array":for(K=new Uint8Array(P),M=0;M<H.length;M++)K.set(H[M],R),R+=H[M].length;return K;case"nodebuffer":return Buffer.concat(H);default:throw new Error("concat : unsupported type '"+F+"'")}}(L,C),N);A(z)}catch(F){T(F)}C=[]}).resume()})}function E(_,S,A){var T=S;switch(S){case"blob":case"arraybuffer":T="uint8array";break;case"base64":T="string"}try{this._internalType=T,this._outputType=S,this._mimeType=A,c.checkSupport(T),this._worker=_.pipe(new u(T)),_.lock()}catch(C){this._worker=new f("error"),this._worker.error(C)}}E.prototype={accumulate:function(_){return b(this,_)},on:function(_,S){var A=this;return _==="data"?this._worker.on(_,function(T){S.call(A,T.data,T.meta)}):this._worker.on(_,function(){c.delay(S,arguments,A)}),this},resume:function(){return c.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(_){if(c.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new x(this,{objectMode:this._outputType!=="nodebuffer"},_)}},s.exports=E},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(a,s,o){if(o.base64=!0,o.array=!0,o.string=!0,o.arraybuffer=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",o.nodebuffer=typeof Buffer<"u",o.uint8array=typeof Uint8Array<"u",typeof ArrayBuffer>"u")o.blob=!1;else{var c=new ArrayBuffer(0);try{o.blob=new Blob([c],{type:"application/zip"}).size===0}catch{try{var u=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);u.append(c),o.blob=u.getBlob("application/zip").size===0}catch{o.blob=!1}}}try{o.nodestream=!!a("readable-stream").Readable}catch{o.nodestream=!1}},{"readable-stream":16}],31:[function(a,s,o){for(var c=a("./utils"),u=a("./support"),f=a("./nodejsUtils"),h=a("./stream/GenericWorker"),m=new Array(256),g=0;g<256;g++)m[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;m[254]=m[254]=1;function x(){h.call(this,"utf-8 decode"),this.leftOver=null}function b(){h.call(this,"utf-8 encode")}o.utf8encode=function(E){return u.nodebuffer?f.newBufferFrom(E,"utf-8"):function(_){var S,A,T,C,L,q=_.length,N=0;for(C=0;C<q;C++)(64512&(A=_.charCodeAt(C)))==55296&&C+1<q&&(64512&(T=_.charCodeAt(C+1)))==56320&&(A=65536+(A-55296<<10)+(T-56320),C++),N+=A<128?1:A<2048?2:A<65536?3:4;for(S=u.uint8array?new Uint8Array(N):new Array(N),C=L=0;L<N;C++)(64512&(A=_.charCodeAt(C)))==55296&&C+1<q&&(64512&(T=_.charCodeAt(C+1)))==56320&&(A=65536+(A-55296<<10)+(T-56320),C++),A<128?S[L++]=A:(A<2048?S[L++]=192|A>>>6:(A<65536?S[L++]=224|A>>>12:(S[L++]=240|A>>>18,S[L++]=128|A>>>12&63),S[L++]=128|A>>>6&63),S[L++]=128|63&A);return S}(E)},o.utf8decode=function(E){return u.nodebuffer?c.transformTo("nodebuffer",E).toString("utf-8"):function(_){var S,A,T,C,L=_.length,q=new Array(2*L);for(S=A=0;S<L;)if((T=_[S++])<128)q[A++]=T;else if(4<(C=m[T]))q[A++]=65533,S+=C-1;else{for(T&=C===2?31:C===3?15:7;1<C&&S<L;)T=T<<6|63&_[S++],C--;1<C?q[A++]=65533:T<65536?q[A++]=T:(T-=65536,q[A++]=55296|T>>10&1023,q[A++]=56320|1023&T)}return q.length!==A&&(q.subarray?q=q.subarray(0,A):q.length=A),c.applyFromCharCode(q)}(E=c.transformTo(u.uint8array?"uint8array":"array",E))},c.inherits(x,h),x.prototype.processChunk=function(E){var _=c.transformTo(u.uint8array?"uint8array":"array",E.data);if(this.leftOver&&this.leftOver.length){if(u.uint8array){var S=_;(_=new Uint8Array(S.length+this.leftOver.length)).set(this.leftOver,0),_.set(S,this.leftOver.length)}else _=this.leftOver.concat(_);this.leftOver=null}var A=function(C,L){var q;for((L=L||C.length)>C.length&&(L=C.length),q=L-1;0<=q&&(192&C[q])==128;)q--;return q<0||q===0?L:q+m[C[q]]>L?q:L}(_),T=_;A!==_.length&&(u.uint8array?(T=_.subarray(0,A),this.leftOver=_.subarray(A,_.length)):(T=_.slice(0,A),this.leftOver=_.slice(A,_.length))),this.push({data:o.utf8decode(T),meta:E.meta})},x.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=x,c.inherits(b,h),b.prototype.processChunk=function(E){this.push({data:o.utf8encode(E.data),meta:E.meta})},o.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(a,s,o){var c=a("./support"),u=a("./base64"),f=a("./nodejsUtils"),h=a("./external");function m(S){return S}function g(S,A){for(var T=0;T<S.length;++T)A[T]=255&S.charCodeAt(T);return A}a("setimmediate"),o.newBlob=function(S,A){o.checkSupport("blob");try{return new Blob([S],{type:A})}catch{try{var T=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return T.append(S),T.getBlob(A)}catch{throw new Error("Bug : can't construct the Blob.")}}};var x={stringifyByChunk:function(S,A,T){var C=[],L=0,q=S.length;if(q<=T)return String.fromCharCode.apply(null,S);for(;L<q;)A==="array"||A==="nodebuffer"?C.push(String.fromCharCode.apply(null,S.slice(L,Math.min(L+T,q)))):C.push(String.fromCharCode.apply(null,S.subarray(L,Math.min(L+T,q)))),L+=T;return C.join("")},stringifyByChar:function(S){for(var A="",T=0;T<S.length;T++)A+=String.fromCharCode(S[T]);return A},applyCanBeUsed:{uint8array:function(){try{return c.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return c.nodebuffer&&String.fromCharCode.apply(null,f.allocBuffer(1)).length===1}catch{return!1}}()}};function b(S){var A=65536,T=o.getTypeOf(S),C=!0;if(T==="uint8array"?C=x.applyCanBeUsed.uint8array:T==="nodebuffer"&&(C=x.applyCanBeUsed.nodebuffer),C)for(;1<A;)try{return x.stringifyByChunk(S,T,A)}catch{A=Math.floor(A/2)}return x.stringifyByChar(S)}function E(S,A){for(var T=0;T<S.length;T++)A[T]=S[T];return A}o.applyFromCharCode=b;var _={};_.string={string:m,array:function(S){return g(S,new Array(S.length))},arraybuffer:function(S){return _.string.uint8array(S).buffer},uint8array:function(S){return g(S,new Uint8Array(S.length))},nodebuffer:function(S){return g(S,f.allocBuffer(S.length))}},_.array={string:b,array:m,arraybuffer:function(S){return new Uint8Array(S).buffer},uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return f.newBufferFrom(S)}},_.arraybuffer={string:function(S){return b(new Uint8Array(S))},array:function(S){return E(new Uint8Array(S),new Array(S.byteLength))},arraybuffer:m,uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return f.newBufferFrom(new Uint8Array(S))}},_.uint8array={string:b,array:function(S){return E(S,new Array(S.length))},arraybuffer:function(S){return S.buffer},uint8array:m,nodebuffer:function(S){return f.newBufferFrom(S)}},_.nodebuffer={string:b,array:function(S){return E(S,new Array(S.length))},arraybuffer:function(S){return _.nodebuffer.uint8array(S).buffer},uint8array:function(S){return E(S,new Uint8Array(S.length))},nodebuffer:m},o.transformTo=function(S,A){if(A=A||"",!S)return A;o.checkSupport(S);var T=o.getTypeOf(A);return _[T][S](A)},o.resolve=function(S){for(var A=S.split("/"),T=[],C=0;C<A.length;C++){var L=A[C];L==="."||L===""&&C!==0&&C!==A.length-1||(L===".."?T.pop():T.push(L))}return T.join("/")},o.getTypeOf=function(S){return typeof S=="string"?"string":Object.prototype.toString.call(S)==="[object Array]"?"array":c.nodebuffer&&f.isBuffer(S)?"nodebuffer":c.uint8array&&S instanceof Uint8Array?"uint8array":c.arraybuffer&&S instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(S){if(!c[S.toLowerCase()])throw new Error(S+" is not supported by this platform")},o.MAX_VALUE_16BITS=65535,o.MAX_VALUE_32BITS=-1,o.pretty=function(S){var A,T,C="";for(T=0;T<(S||"").length;T++)C+="\\x"+((A=S.charCodeAt(T))<16?"0":"")+A.toString(16).toUpperCase();return C},o.delay=function(S,A,T){setImmediate(function(){S.apply(T||null,A||[])})},o.inherits=function(S,A){function T(){}T.prototype=A.prototype,S.prototype=new T},o.extend=function(){var S,A,T={};for(S=0;S<arguments.length;S++)for(A in arguments[S])Object.prototype.hasOwnProperty.call(arguments[S],A)&&T[A]===void 0&&(T[A]=arguments[S][A]);return T},o.prepareContent=function(S,A,T,C,L){return h.Promise.resolve(A).then(function(q){return c.blob&&(q instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(q))!==-1)&&typeof FileReader<"u"?new h.Promise(function(N,z){var F=new FileReader;F.onload=function(H){N(H.target.result)},F.onerror=function(H){z(H.target.error)},F.readAsArrayBuffer(q)}):q}).then(function(q){var N=o.getTypeOf(q);return N?(N==="arraybuffer"?q=o.transformTo("uint8array",q):N==="string"&&(L?q=u.decode(q):T&&C!==!0&&(q=function(z){return g(z,c.uint8array?new Uint8Array(z.length):new Array(z.length))}(q))),q):h.Promise.reject(new Error("Can't read the data of '"+S+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(a,s,o){var c=a("./reader/readerFor"),u=a("./utils"),f=a("./signature"),h=a("./zipEntry"),m=a("./support");function g(x){this.files=[],this.loadOptions=x}g.prototype={checkSignature:function(x){if(!this.reader.readAndCheckSignature(x)){this.reader.index-=4;var b=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+u.pretty(b)+", expected "+u.pretty(x)+")")}},isSignature:function(x,b){var E=this.reader.index;this.reader.setIndex(x);var _=this.reader.readString(4)===b;return this.reader.setIndex(E),_},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var x=this.reader.readData(this.zipCommentLength),b=m.uint8array?"uint8array":"array",E=u.transformTo(b,x);this.zipComment=this.loadOptions.decodeFileName(E)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var x,b,E,_=this.zip64EndOfCentralSize-44;0<_;)x=this.reader.readInt(2),b=this.reader.readInt(4),E=this.reader.readData(b),this.zip64ExtensibleData[x]={id:x,length:b,value:E}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var x,b;for(x=0;x<this.files.length;x++)b=this.files[x],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(f.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var x;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(f.CENTRAL_FILE_HEADER);)(x=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(x);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var x=this.reader.lastIndexOfSignature(f.CENTRAL_DIRECTORY_END);if(x<0)throw this.isSignature(0,f.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(x);var b=x;if(this.checkSignature(f.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===u.MAX_VALUE_16BITS||this.diskWithCentralDirStart===u.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===u.MAX_VALUE_16BITS||this.centralDirRecords===u.MAX_VALUE_16BITS||this.centralDirSize===u.MAX_VALUE_32BITS||this.centralDirOffset===u.MAX_VALUE_32BITS){if(this.zip64=!0,(x=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(x),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,f.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(f.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var E=this.centralDirOffset+this.centralDirSize;this.zip64&&(E+=20,E+=12+this.zip64EndOfCentralSize);var _=b-E;if(0<_)this.isSignature(b,f.CENTRAL_FILE_HEADER)||(this.reader.zero=_);else if(_<0)throw new Error("Corrupted zip: missing "+Math.abs(_)+" bytes.")},prepareReader:function(x){this.reader=c(x)},load:function(x){this.prepareReader(x),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},s.exports=g},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(a,s,o){var c=a("./reader/readerFor"),u=a("./utils"),f=a("./compressedObject"),h=a("./crc32"),m=a("./utf8"),g=a("./compressions"),x=a("./support");function b(E,_){this.options=E,this.loadOptions=_}b.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(E){var _,S;if(E.skip(22),this.fileNameLength=E.readInt(2),S=E.readInt(2),this.fileName=E.readData(this.fileNameLength),E.skip(S),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((_=function(A){for(var T in g)if(Object.prototype.hasOwnProperty.call(g,T)&&g[T].magic===A)return g[T];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+u.pretty(this.compressionMethod)+" unknown (inner file : "+u.transformTo("string",this.fileName)+")");this.decompressed=new f(this.compressedSize,this.uncompressedSize,this.crc32,_,E.readData(this.compressedSize))},readCentralPart:function(E){this.versionMadeBy=E.readInt(2),E.skip(2),this.bitFlag=E.readInt(2),this.compressionMethod=E.readString(2),this.date=E.readDate(),this.crc32=E.readInt(4),this.compressedSize=E.readInt(4),this.uncompressedSize=E.readInt(4);var _=E.readInt(2);if(this.extraFieldsLength=E.readInt(2),this.fileCommentLength=E.readInt(2),this.diskNumberStart=E.readInt(2),this.internalFileAttributes=E.readInt(2),this.externalFileAttributes=E.readInt(4),this.localHeaderOffset=E.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");E.skip(_),this.readExtraFields(E),this.parseZIP64ExtraField(E),this.fileComment=E.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var E=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),E==0&&(this.dosPermissions=63&this.externalFileAttributes),E==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var E=c(this.extraFields[1].value);this.uncompressedSize===u.MAX_VALUE_32BITS&&(this.uncompressedSize=E.readInt(8)),this.compressedSize===u.MAX_VALUE_32BITS&&(this.compressedSize=E.readInt(8)),this.localHeaderOffset===u.MAX_VALUE_32BITS&&(this.localHeaderOffset=E.readInt(8)),this.diskNumberStart===u.MAX_VALUE_32BITS&&(this.diskNumberStart=E.readInt(4))}},readExtraFields:function(E){var _,S,A,T=E.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});E.index+4<T;)_=E.readInt(2),S=E.readInt(2),A=E.readData(S),this.extraFields[_]={id:_,length:S,value:A};E.setIndex(T)},handleUTF8:function(){var E=x.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=m.utf8decode(this.fileName),this.fileCommentStr=m.utf8decode(this.fileComment);else{var _=this.findExtraFieldUnicodePath();if(_!==null)this.fileNameStr=_;else{var S=u.transformTo(E,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(S)}var A=this.findExtraFieldUnicodeComment();if(A!==null)this.fileCommentStr=A;else{var T=u.transformTo(E,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(T)}}},findExtraFieldUnicodePath:function(){var E=this.extraFields[28789];if(E){var _=c(E.value);return _.readInt(1)!==1||h(this.fileName)!==_.readInt(4)?null:m.utf8decode(_.readData(E.length-5))}return null},findExtraFieldUnicodeComment:function(){var E=this.extraFields[25461];if(E){var _=c(E.value);return _.readInt(1)!==1||h(this.fileComment)!==_.readInt(4)?null:m.utf8decode(_.readData(E.length-5))}return null}},s.exports=b},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(a,s,o){function c(_,S,A){this.name=_,this.dir=A.dir,this.date=A.date,this.comment=A.comment,this.unixPermissions=A.unixPermissions,this.dosPermissions=A.dosPermissions,this._data=S,this._dataBinary=A.binary,this.options={compression:A.compression,compressionOptions:A.compressionOptions}}var u=a("./stream/StreamHelper"),f=a("./stream/DataWorker"),h=a("./utf8"),m=a("./compressedObject"),g=a("./stream/GenericWorker");c.prototype={internalStream:function(_){var S=null,A="string";try{if(!_)throw new Error("No output type specified.");var T=(A=_.toLowerCase())==="string"||A==="text";A!=="binarystring"&&A!=="text"||(A="string"),S=this._decompressWorker();var C=!this._dataBinary;C&&!T&&(S=S.pipe(new h.Utf8EncodeWorker)),!C&&T&&(S=S.pipe(new h.Utf8DecodeWorker))}catch(L){(S=new g("error")).error(L)}return new u(S,A,"")},async:function(_,S){return this.internalStream(_).accumulate(S)},nodeStream:function(_,S){return this.internalStream(_||"nodebuffer").toNodejsStream(S)},_compressWorker:function(_,S){if(this._data instanceof m&&this._data.compression.magic===_.magic)return this._data.getCompressedWorker();var A=this._decompressWorker();return this._dataBinary||(A=A.pipe(new h.Utf8EncodeWorker)),m.createWorkerFrom(A,_,S)},_decompressWorker:function(){return this._data instanceof m?this._data.getContentWorker():this._data instanceof g?this._data:new f(this._data)}};for(var x=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],b=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},E=0;E<x.length;E++)c.prototype[x[E]]=b;s.exports=c},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(a,s,o){(function(c){var u,f,h=c.MutationObserver||c.WebKitMutationObserver;if(h){var m=0,g=new h(_),x=c.document.createTextNode("");g.observe(x,{characterData:!0}),u=function(){x.data=m=++m%2}}else if(c.setImmediate||c.MessageChannel===void 0)u="document"in c&&"onreadystatechange"in c.document.createElement("script")?function(){var S=c.document.createElement("script");S.onreadystatechange=function(){_(),S.onreadystatechange=null,S.parentNode.removeChild(S),S=null},c.document.documentElement.appendChild(S)}:function(){setTimeout(_,0)};else{var b=new c.MessageChannel;b.port1.onmessage=_,u=function(){b.port2.postMessage(0)}}var E=[];function _(){var S,A;f=!0;for(var T=E.length;T;){for(A=E,E=[],S=-1;++S<T;)A[S]();T=E.length}f=!1}s.exports=function(S){E.push(S)!==1||f||u()}}).call(this,typeof _n<"u"?_n:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(a,s,o){var c=a("immediate");function u(){}var f={},h=["REJECTED"],m=["FULFILLED"],g=["PENDING"];function x(T){if(typeof T!="function")throw new TypeError("resolver must be a function");this.state=g,this.queue=[],this.outcome=void 0,T!==u&&S(this,T)}function b(T,C,L){this.promise=T,typeof C=="function"&&(this.onFulfilled=C,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}function E(T,C,L){c(function(){var q;try{q=C(L)}catch(N){return f.reject(T,N)}q===T?f.reject(T,new TypeError("Cannot resolve promise with itself")):f.resolve(T,q)})}function _(T){var C=T&&T.then;if(T&&(typeof T=="object"||typeof T=="function")&&typeof C=="function")return function(){C.apply(T,arguments)}}function S(T,C){var L=!1;function q(F){L||(L=!0,f.reject(T,F))}function N(F){L||(L=!0,f.resolve(T,F))}var z=A(function(){C(N,q)});z.status==="error"&&q(z.value)}function A(T,C){var L={};try{L.value=T(C),L.status="success"}catch(q){L.status="error",L.value=q}return L}(s.exports=x).prototype.finally=function(T){if(typeof T!="function")return this;var C=this.constructor;return this.then(function(L){return C.resolve(T()).then(function(){return L})},function(L){return C.resolve(T()).then(function(){throw L})})},x.prototype.catch=function(T){return this.then(null,T)},x.prototype.then=function(T,C){if(typeof T!="function"&&this.state===m||typeof C!="function"&&this.state===h)return this;var L=new this.constructor(u);return this.state!==g?E(L,this.state===m?T:C,this.outcome):this.queue.push(new b(L,T,C)),L},b.prototype.callFulfilled=function(T){f.resolve(this.promise,T)},b.prototype.otherCallFulfilled=function(T){E(this.promise,this.onFulfilled,T)},b.prototype.callRejected=function(T){f.reject(this.promise,T)},b.prototype.otherCallRejected=function(T){E(this.promise,this.onRejected,T)},f.resolve=function(T,C){var L=A(_,C);if(L.status==="error")return f.reject(T,L.value);var q=L.value;if(q)S(T,q);else{T.state=m,T.outcome=C;for(var N=-1,z=T.queue.length;++N<z;)T.queue[N].callFulfilled(C)}return T},f.reject=function(T,C){T.state=h,T.outcome=C;for(var L=-1,q=T.queue.length;++L<q;)T.queue[L].callRejected(C);return T},x.resolve=function(T){return T instanceof this?T:f.resolve(new this(u),T)},x.reject=function(T){var C=new this(u);return f.reject(C,T)},x.all=function(T){var C=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=T.length,q=!1;if(!L)return this.resolve([]);for(var N=new Array(L),z=0,F=-1,H=new this(u);++F<L;)M(T[F],F);return H;function M(R,K){C.resolve(R).then(function(P){N[K]=P,++z!==L||q||(q=!0,f.resolve(H,N))},function(P){q||(q=!0,f.reject(H,P))})}},x.race=function(T){var C=this;if(Object.prototype.toString.call(T)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=T.length,q=!1;if(!L)return this.resolve([]);for(var N=-1,z=new this(u);++N<L;)F=T[N],C.resolve(F).then(function(H){q||(q=!0,f.resolve(z,H))},function(H){q||(q=!0,f.reject(z,H))});var F;return z}},{immediate:36}],38:[function(a,s,o){var c={};(0,a("./lib/utils/common").assign)(c,a("./lib/deflate"),a("./lib/inflate"),a("./lib/zlib/constants")),s.exports=c},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(a,s,o){var c=a("./zlib/deflate"),u=a("./utils/common"),f=a("./utils/strings"),h=a("./zlib/messages"),m=a("./zlib/zstream"),g=Object.prototype.toString,x=0,b=-1,E=0,_=8;function S(T){if(!(this instanceof S))return new S(T);this.options=u.assign({level:b,method:_,chunkSize:16384,windowBits:15,memLevel:8,strategy:E,to:""},T||{});var C=this.options;C.raw&&0<C.windowBits?C.windowBits=-C.windowBits:C.gzip&&0<C.windowBits&&C.windowBits<16&&(C.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new m,this.strm.avail_out=0;var L=c.deflateInit2(this.strm,C.level,C.method,C.windowBits,C.memLevel,C.strategy);if(L!==x)throw new Error(h[L]);if(C.header&&c.deflateSetHeader(this.strm,C.header),C.dictionary){var q;if(q=typeof C.dictionary=="string"?f.string2buf(C.dictionary):g.call(C.dictionary)==="[object ArrayBuffer]"?new Uint8Array(C.dictionary):C.dictionary,(L=c.deflateSetDictionary(this.strm,q))!==x)throw new Error(h[L]);this._dict_set=!0}}function A(T,C){var L=new S(C);if(L.push(T,!0),L.err)throw L.msg||h[L.err];return L.result}S.prototype.push=function(T,C){var L,q,N=this.strm,z=this.options.chunkSize;if(this.ended)return!1;q=C===~~C?C:C===!0?4:0,typeof T=="string"?N.input=f.string2buf(T):g.call(T)==="[object ArrayBuffer]"?N.input=new Uint8Array(T):N.input=T,N.next_in=0,N.avail_in=N.input.length;do{if(N.avail_out===0&&(N.output=new u.Buf8(z),N.next_out=0,N.avail_out=z),(L=c.deflate(N,q))!==1&&L!==x)return this.onEnd(L),!(this.ended=!0);N.avail_out!==0&&(N.avail_in!==0||q!==4&&q!==2)||(this.options.to==="string"?this.onData(f.buf2binstring(u.shrinkBuf(N.output,N.next_out))):this.onData(u.shrinkBuf(N.output,N.next_out)))}while((0<N.avail_in||N.avail_out===0)&&L!==1);return q===4?(L=c.deflateEnd(this.strm),this.onEnd(L),this.ended=!0,L===x):q!==2||(this.onEnd(x),!(N.avail_out=0))},S.prototype.onData=function(T){this.chunks.push(T)},S.prototype.onEnd=function(T){T===x&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=u.flattenChunks(this.chunks)),this.chunks=[],this.err=T,this.msg=this.strm.msg},o.Deflate=S,o.deflate=A,o.deflateRaw=function(T,C){return(C=C||{}).raw=!0,A(T,C)},o.gzip=function(T,C){return(C=C||{}).gzip=!0,A(T,C)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(a,s,o){var c=a("./zlib/inflate"),u=a("./utils/common"),f=a("./utils/strings"),h=a("./zlib/constants"),m=a("./zlib/messages"),g=a("./zlib/zstream"),x=a("./zlib/gzheader"),b=Object.prototype.toString;function E(S){if(!(this instanceof E))return new E(S);this.options=u.assign({chunkSize:16384,windowBits:0,to:""},S||{});var A=this.options;A.raw&&0<=A.windowBits&&A.windowBits<16&&(A.windowBits=-A.windowBits,A.windowBits===0&&(A.windowBits=-15)),!(0<=A.windowBits&&A.windowBits<16)||S&&S.windowBits||(A.windowBits+=32),15<A.windowBits&&A.windowBits<48&&(15&A.windowBits)==0&&(A.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var T=c.inflateInit2(this.strm,A.windowBits);if(T!==h.Z_OK)throw new Error(m[T]);this.header=new x,c.inflateGetHeader(this.strm,this.header)}function _(S,A){var T=new E(A);if(T.push(S,!0),T.err)throw T.msg||m[T.err];return T.result}E.prototype.push=function(S,A){var T,C,L,q,N,z,F=this.strm,H=this.options.chunkSize,M=this.options.dictionary,R=!1;if(this.ended)return!1;C=A===~~A?A:A===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof S=="string"?F.input=f.binstring2buf(S):b.call(S)==="[object ArrayBuffer]"?F.input=new Uint8Array(S):F.input=S,F.next_in=0,F.avail_in=F.input.length;do{if(F.avail_out===0&&(F.output=new u.Buf8(H),F.next_out=0,F.avail_out=H),(T=c.inflate(F,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&M&&(z=typeof M=="string"?f.string2buf(M):b.call(M)==="[object ArrayBuffer]"?new Uint8Array(M):M,T=c.inflateSetDictionary(this.strm,z)),T===h.Z_BUF_ERROR&&R===!0&&(T=h.Z_OK,R=!1),T!==h.Z_STREAM_END&&T!==h.Z_OK)return this.onEnd(T),!(this.ended=!0);F.next_out&&(F.avail_out!==0&&T!==h.Z_STREAM_END&&(F.avail_in!==0||C!==h.Z_FINISH&&C!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(L=f.utf8border(F.output,F.next_out),q=F.next_out-L,N=f.buf2string(F.output,L),F.next_out=q,F.avail_out=H-q,q&&u.arraySet(F.output,F.output,L,q,0),this.onData(N)):this.onData(u.shrinkBuf(F.output,F.next_out)))),F.avail_in===0&&F.avail_out===0&&(R=!0)}while((0<F.avail_in||F.avail_out===0)&&T!==h.Z_STREAM_END);return T===h.Z_STREAM_END&&(C=h.Z_FINISH),C===h.Z_FINISH?(T=c.inflateEnd(this.strm),this.onEnd(T),this.ended=!0,T===h.Z_OK):C!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(F.avail_out=0))},E.prototype.onData=function(S){this.chunks.push(S)},E.prototype.onEnd=function(S){S===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=u.flattenChunks(this.chunks)),this.chunks=[],this.err=S,this.msg=this.strm.msg},o.Inflate=E,o.inflate=_,o.inflateRaw=function(S,A){return(A=A||{}).raw=!0,_(S,A)},o.ungzip=_},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(a,s,o){var c=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(h){for(var m=Array.prototype.slice.call(arguments,1);m.length;){var g=m.shift();if(g){if(typeof g!="object")throw new TypeError(g+"must be non-object");for(var x in g)g.hasOwnProperty(x)&&(h[x]=g[x])}}return h},o.shrinkBuf=function(h,m){return h.length===m?h:h.subarray?h.subarray(0,m):(h.length=m,h)};var u={arraySet:function(h,m,g,x,b){if(m.subarray&&h.subarray)h.set(m.subarray(g,g+x),b);else for(var E=0;E<x;E++)h[b+E]=m[g+E]},flattenChunks:function(h){var m,g,x,b,E,_;for(m=x=0,g=h.length;m<g;m++)x+=h[m].length;for(_=new Uint8Array(x),m=b=0,g=h.length;m<g;m++)E=h[m],_.set(E,b),b+=E.length;return _}},f={arraySet:function(h,m,g,x,b){for(var E=0;E<x;E++)h[b+E]=m[g+E]},flattenChunks:function(h){return[].concat.apply([],h)}};o.setTyped=function(h){h?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,u)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,f))},o.setTyped(c)},{}],42:[function(a,s,o){var c=a("./common"),u=!0,f=!0;try{String.fromCharCode.apply(null,[0])}catch{u=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{f=!1}for(var h=new c.Buf8(256),m=0;m<256;m++)h[m]=252<=m?6:248<=m?5:240<=m?4:224<=m?3:192<=m?2:1;function g(x,b){if(b<65537&&(x.subarray&&f||!x.subarray&&u))return String.fromCharCode.apply(null,c.shrinkBuf(x,b));for(var E="",_=0;_<b;_++)E+=String.fromCharCode(x[_]);return E}h[254]=h[254]=1,o.string2buf=function(x){var b,E,_,S,A,T=x.length,C=0;for(S=0;S<T;S++)(64512&(E=x.charCodeAt(S)))==55296&&S+1<T&&(64512&(_=x.charCodeAt(S+1)))==56320&&(E=65536+(E-55296<<10)+(_-56320),S++),C+=E<128?1:E<2048?2:E<65536?3:4;for(b=new c.Buf8(C),S=A=0;A<C;S++)(64512&(E=x.charCodeAt(S)))==55296&&S+1<T&&(64512&(_=x.charCodeAt(S+1)))==56320&&(E=65536+(E-55296<<10)+(_-56320),S++),E<128?b[A++]=E:(E<2048?b[A++]=192|E>>>6:(E<65536?b[A++]=224|E>>>12:(b[A++]=240|E>>>18,b[A++]=128|E>>>12&63),b[A++]=128|E>>>6&63),b[A++]=128|63&E);return b},o.buf2binstring=function(x){return g(x,x.length)},o.binstring2buf=function(x){for(var b=new c.Buf8(x.length),E=0,_=b.length;E<_;E++)b[E]=x.charCodeAt(E);return b},o.buf2string=function(x,b){var E,_,S,A,T=b||x.length,C=new Array(2*T);for(E=_=0;E<T;)if((S=x[E++])<128)C[_++]=S;else if(4<(A=h[S]))C[_++]=65533,E+=A-1;else{for(S&=A===2?31:A===3?15:7;1<A&&E<T;)S=S<<6|63&x[E++],A--;1<A?C[_++]=65533:S<65536?C[_++]=S:(S-=65536,C[_++]=55296|S>>10&1023,C[_++]=56320|1023&S)}return g(C,_)},o.utf8border=function(x,b){var E;for((b=b||x.length)>x.length&&(b=x.length),E=b-1;0<=E&&(192&x[E])==128;)E--;return E<0||E===0?b:E+h[x[E]]>b?E:b}},{"./common":41}],43:[function(a,s,o){s.exports=function(c,u,f,h){for(var m=65535&c|0,g=c>>>16&65535|0,x=0;f!==0;){for(f-=x=2e3<f?2e3:f;g=g+(m=m+u[h++]|0)|0,--x;);m%=65521,g%=65521}return m|g<<16|0}},{}],44:[function(a,s,o){s.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(a,s,o){var c=function(){for(var u,f=[],h=0;h<256;h++){u=h;for(var m=0;m<8;m++)u=1&u?3988292384^u>>>1:u>>>1;f[h]=u}return f}();s.exports=function(u,f,h,m){var g=c,x=m+h;u^=-1;for(var b=m;b<x;b++)u=u>>>8^g[255&(u^f[b])];return-1^u}},{}],46:[function(a,s,o){var c,u=a("../utils/common"),f=a("./trees"),h=a("./adler32"),m=a("./crc32"),g=a("./messages"),x=0,b=4,E=0,_=-2,S=-1,A=4,T=2,C=8,L=9,q=286,N=30,z=19,F=2*q+1,H=15,M=3,R=258,K=R+M+1,P=42,V=113,j=1,Z=2,W=3,w=4;function ue(k,de){return k.msg=g[de],de}function I(k){return(k<<1)-(4<k?9:0)}function v(k){for(var de=k.length;0<=--de;)k[de]=0}function O(k){var de=k.state,ce=de.pending;ce>k.avail_out&&(ce=k.avail_out),ce!==0&&(u.arraySet(k.output,de.pending_buf,de.pending_out,ce,k.next_out),k.next_out+=ce,de.pending_out+=ce,k.total_out+=ce,k.avail_out-=ce,de.pending-=ce,de.pending===0&&(de.pending_out=0))}function U(k,de){f._tr_flush_block(k,0<=k.block_start?k.block_start:-1,k.strstart-k.block_start,de),k.block_start=k.strstart,O(k.strm)}function J(k,de){k.pending_buf[k.pending++]=de}function Q(k,de){k.pending_buf[k.pending++]=de>>>8&255,k.pending_buf[k.pending++]=255&de}function ne(k,de){var ce,G,Y=k.max_chain_length,te=k.strstart,pe=k.prev_length,ye=k.nice_match,oe=k.strstart>k.w_size-K?k.strstart-(k.w_size-K):0,je=k.window,Te=k.w_mask,ee=k.prev,xe=k.strstart+R,_e=je[te+pe-1],Ce=je[te+pe];k.prev_length>=k.good_match&&(Y>>=2),ye>k.lookahead&&(ye=k.lookahead);do if(je[(ce=de)+pe]===Ce&&je[ce+pe-1]===_e&&je[ce]===je[te]&&je[++ce]===je[te+1]){te+=2,ce++;do;while(je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&je[++te]===je[++ce]&&te<xe);if(G=R-(xe-te),te=xe-R,pe<G){if(k.match_start=de,ye<=(pe=G))break;_e=je[te+pe-1],Ce=je[te+pe]}}while((de=ee[de&Te])>oe&&--Y!=0);return pe<=k.lookahead?pe:k.lookahead}function ie(k){var de,ce,G,Y,te,pe,ye,oe,je,Te,ee=k.w_size;do{if(Y=k.window_size-k.lookahead-k.strstart,k.strstart>=ee+(ee-K)){for(u.arraySet(k.window,k.window,ee,ee,0),k.match_start-=ee,k.strstart-=ee,k.block_start-=ee,de=ce=k.hash_size;G=k.head[--de],k.head[de]=ee<=G?G-ee:0,--ce;);for(de=ce=ee;G=k.prev[--de],k.prev[de]=ee<=G?G-ee:0,--ce;);Y+=ee}if(k.strm.avail_in===0)break;if(pe=k.strm,ye=k.window,oe=k.strstart+k.lookahead,je=Y,Te=void 0,Te=pe.avail_in,je<Te&&(Te=je),ce=Te===0?0:(pe.avail_in-=Te,u.arraySet(ye,pe.input,pe.next_in,Te,oe),pe.state.wrap===1?pe.adler=h(pe.adler,ye,Te,oe):pe.state.wrap===2&&(pe.adler=m(pe.adler,ye,Te,oe)),pe.next_in+=Te,pe.total_in+=Te,Te),k.lookahead+=ce,k.lookahead+k.insert>=M)for(te=k.strstart-k.insert,k.ins_h=k.window[te],k.ins_h=(k.ins_h<<k.hash_shift^k.window[te+1])&k.hash_mask;k.insert&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[te+M-1])&k.hash_mask,k.prev[te&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=te,te++,k.insert--,!(k.lookahead+k.insert<M)););}while(k.lookahead<K&&k.strm.avail_in!==0)}function be(k,de){for(var ce,G;;){if(k.lookahead<K){if(ie(k),k.lookahead<K&&de===x)return j;if(k.lookahead===0)break}if(ce=0,k.lookahead>=M&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+M-1])&k.hash_mask,ce=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),ce!==0&&k.strstart-ce<=k.w_size-K&&(k.match_length=ne(k,ce)),k.match_length>=M)if(G=f._tr_tally(k,k.strstart-k.match_start,k.match_length-M),k.lookahead-=k.match_length,k.match_length<=k.max_lazy_match&&k.lookahead>=M){for(k.match_length--;k.strstart++,k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+M-1])&k.hash_mask,ce=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart,--k.match_length!=0;);k.strstart++}else k.strstart+=k.match_length,k.match_length=0,k.ins_h=k.window[k.strstart],k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+1])&k.hash_mask;else G=f._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++;if(G&&(U(k,!1),k.strm.avail_out===0))return j}return k.insert=k.strstart<M-1?k.strstart:M-1,de===b?(U(k,!0),k.strm.avail_out===0?W:w):k.last_lit&&(U(k,!1),k.strm.avail_out===0)?j:Z}function Se(k,de){for(var ce,G,Y;;){if(k.lookahead<K){if(ie(k),k.lookahead<K&&de===x)return j;if(k.lookahead===0)break}if(ce=0,k.lookahead>=M&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+M-1])&k.hash_mask,ce=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),k.prev_length=k.match_length,k.prev_match=k.match_start,k.match_length=M-1,ce!==0&&k.prev_length<k.max_lazy_match&&k.strstart-ce<=k.w_size-K&&(k.match_length=ne(k,ce),k.match_length<=5&&(k.strategy===1||k.match_length===M&&4096<k.strstart-k.match_start)&&(k.match_length=M-1)),k.prev_length>=M&&k.match_length<=k.prev_length){for(Y=k.strstart+k.lookahead-M,G=f._tr_tally(k,k.strstart-1-k.prev_match,k.prev_length-M),k.lookahead-=k.prev_length-1,k.prev_length-=2;++k.strstart<=Y&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+M-1])&k.hash_mask,ce=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),--k.prev_length!=0;);if(k.match_available=0,k.match_length=M-1,k.strstart++,G&&(U(k,!1),k.strm.avail_out===0))return j}else if(k.match_available){if((G=f._tr_tally(k,0,k.window[k.strstart-1]))&&U(k,!1),k.strstart++,k.lookahead--,k.strm.avail_out===0)return j}else k.match_available=1,k.strstart++,k.lookahead--}return k.match_available&&(G=f._tr_tally(k,0,k.window[k.strstart-1]),k.match_available=0),k.insert=k.strstart<M-1?k.strstart:M-1,de===b?(U(k,!0),k.strm.avail_out===0?W:w):k.last_lit&&(U(k,!1),k.strm.avail_out===0)?j:Z}function Ee(k,de,ce,G,Y){this.good_length=k,this.max_lazy=de,this.nice_length=ce,this.max_chain=G,this.func=Y}function Ne(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=C,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new u.Buf16(2*F),this.dyn_dtree=new u.Buf16(2*(2*N+1)),this.bl_tree=new u.Buf16(2*(2*z+1)),v(this.dyn_ltree),v(this.dyn_dtree),v(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new u.Buf16(H+1),this.heap=new u.Buf16(2*q+1),v(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new u.Buf16(2*q+1),v(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function Oe(k){var de;return k&&k.state?(k.total_in=k.total_out=0,k.data_type=T,(de=k.state).pending=0,de.pending_out=0,de.wrap<0&&(de.wrap=-de.wrap),de.status=de.wrap?P:V,k.adler=de.wrap===2?0:1,de.last_flush=x,f._tr_init(de),E):ue(k,_)}function Le(k){var de=Oe(k);return de===E&&function(ce){ce.window_size=2*ce.w_size,v(ce.head),ce.max_lazy_match=c[ce.level].max_lazy,ce.good_match=c[ce.level].good_length,ce.nice_match=c[ce.level].nice_length,ce.max_chain_length=c[ce.level].max_chain,ce.strstart=0,ce.block_start=0,ce.lookahead=0,ce.insert=0,ce.match_length=ce.prev_length=M-1,ce.match_available=0,ce.ins_h=0}(k.state),de}function Re(k,de,ce,G,Y,te){if(!k)return _;var pe=1;if(de===S&&(de=6),G<0?(pe=0,G=-G):15<G&&(pe=2,G-=16),Y<1||L<Y||ce!==C||G<8||15<G||de<0||9<de||te<0||A<te)return ue(k,_);G===8&&(G=9);var ye=new Ne;return(k.state=ye).strm=k,ye.wrap=pe,ye.gzhead=null,ye.w_bits=G,ye.w_size=1<<ye.w_bits,ye.w_mask=ye.w_size-1,ye.hash_bits=Y+7,ye.hash_size=1<<ye.hash_bits,ye.hash_mask=ye.hash_size-1,ye.hash_shift=~~((ye.hash_bits+M-1)/M),ye.window=new u.Buf8(2*ye.w_size),ye.head=new u.Buf16(ye.hash_size),ye.prev=new u.Buf16(ye.w_size),ye.lit_bufsize=1<<Y+6,ye.pending_buf_size=4*ye.lit_bufsize,ye.pending_buf=new u.Buf8(ye.pending_buf_size),ye.d_buf=1*ye.lit_bufsize,ye.l_buf=3*ye.lit_bufsize,ye.level=de,ye.strategy=te,ye.method=ce,Le(k)}c=[new Ee(0,0,0,0,function(k,de){var ce=65535;for(ce>k.pending_buf_size-5&&(ce=k.pending_buf_size-5);;){if(k.lookahead<=1){if(ie(k),k.lookahead===0&&de===x)return j;if(k.lookahead===0)break}k.strstart+=k.lookahead,k.lookahead=0;var G=k.block_start+ce;if((k.strstart===0||k.strstart>=G)&&(k.lookahead=k.strstart-G,k.strstart=G,U(k,!1),k.strm.avail_out===0)||k.strstart-k.block_start>=k.w_size-K&&(U(k,!1),k.strm.avail_out===0))return j}return k.insert=0,de===b?(U(k,!0),k.strm.avail_out===0?W:w):(k.strstart>k.block_start&&(U(k,!1),k.strm.avail_out),j)}),new Ee(4,4,8,4,be),new Ee(4,5,16,8,be),new Ee(4,6,32,32,be),new Ee(4,4,16,16,Se),new Ee(8,16,32,32,Se),new Ee(8,16,128,128,Se),new Ee(8,32,128,256,Se),new Ee(32,128,258,1024,Se),new Ee(32,258,258,4096,Se)],o.deflateInit=function(k,de){return Re(k,de,C,15,8,0)},o.deflateInit2=Re,o.deflateReset=Le,o.deflateResetKeep=Oe,o.deflateSetHeader=function(k,de){return k&&k.state?k.state.wrap!==2?_:(k.state.gzhead=de,E):_},o.deflate=function(k,de){var ce,G,Y,te;if(!k||!k.state||5<de||de<0)return k?ue(k,_):_;if(G=k.state,!k.output||!k.input&&k.avail_in!==0||G.status===666&&de!==b)return ue(k,k.avail_out===0?-5:_);if(G.strm=k,ce=G.last_flush,G.last_flush=de,G.status===P)if(G.wrap===2)k.adler=0,J(G,31),J(G,139),J(G,8),G.gzhead?(J(G,(G.gzhead.text?1:0)+(G.gzhead.hcrc?2:0)+(G.gzhead.extra?4:0)+(G.gzhead.name?8:0)+(G.gzhead.comment?16:0)),J(G,255&G.gzhead.time),J(G,G.gzhead.time>>8&255),J(G,G.gzhead.time>>16&255),J(G,G.gzhead.time>>24&255),J(G,G.level===9?2:2<=G.strategy||G.level<2?4:0),J(G,255&G.gzhead.os),G.gzhead.extra&&G.gzhead.extra.length&&(J(G,255&G.gzhead.extra.length),J(G,G.gzhead.extra.length>>8&255)),G.gzhead.hcrc&&(k.adler=m(k.adler,G.pending_buf,G.pending,0)),G.gzindex=0,G.status=69):(J(G,0),J(G,0),J(G,0),J(G,0),J(G,0),J(G,G.level===9?2:2<=G.strategy||G.level<2?4:0),J(G,3),G.status=V);else{var pe=C+(G.w_bits-8<<4)<<8;pe|=(2<=G.strategy||G.level<2?0:G.level<6?1:G.level===6?2:3)<<6,G.strstart!==0&&(pe|=32),pe+=31-pe%31,G.status=V,Q(G,pe),G.strstart!==0&&(Q(G,k.adler>>>16),Q(G,65535&k.adler)),k.adler=1}if(G.status===69)if(G.gzhead.extra){for(Y=G.pending;G.gzindex<(65535&G.gzhead.extra.length)&&(G.pending!==G.pending_buf_size||(G.gzhead.hcrc&&G.pending>Y&&(k.adler=m(k.adler,G.pending_buf,G.pending-Y,Y)),O(k),Y=G.pending,G.pending!==G.pending_buf_size));)J(G,255&G.gzhead.extra[G.gzindex]),G.gzindex++;G.gzhead.hcrc&&G.pending>Y&&(k.adler=m(k.adler,G.pending_buf,G.pending-Y,Y)),G.gzindex===G.gzhead.extra.length&&(G.gzindex=0,G.status=73)}else G.status=73;if(G.status===73)if(G.gzhead.name){Y=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>Y&&(k.adler=m(k.adler,G.pending_buf,G.pending-Y,Y)),O(k),Y=G.pending,G.pending===G.pending_buf_size)){te=1;break}te=G.gzindex<G.gzhead.name.length?255&G.gzhead.name.charCodeAt(G.gzindex++):0,J(G,te)}while(te!==0);G.gzhead.hcrc&&G.pending>Y&&(k.adler=m(k.adler,G.pending_buf,G.pending-Y,Y)),te===0&&(G.gzindex=0,G.status=91)}else G.status=91;if(G.status===91)if(G.gzhead.comment){Y=G.pending;do{if(G.pending===G.pending_buf_size&&(G.gzhead.hcrc&&G.pending>Y&&(k.adler=m(k.adler,G.pending_buf,G.pending-Y,Y)),O(k),Y=G.pending,G.pending===G.pending_buf_size)){te=1;break}te=G.gzindex<G.gzhead.comment.length?255&G.gzhead.comment.charCodeAt(G.gzindex++):0,J(G,te)}while(te!==0);G.gzhead.hcrc&&G.pending>Y&&(k.adler=m(k.adler,G.pending_buf,G.pending-Y,Y)),te===0&&(G.status=103)}else G.status=103;if(G.status===103&&(G.gzhead.hcrc?(G.pending+2>G.pending_buf_size&&O(k),G.pending+2<=G.pending_buf_size&&(J(G,255&k.adler),J(G,k.adler>>8&255),k.adler=0,G.status=V)):G.status=V),G.pending!==0){if(O(k),k.avail_out===0)return G.last_flush=-1,E}else if(k.avail_in===0&&I(de)<=I(ce)&&de!==b)return ue(k,-5);if(G.status===666&&k.avail_in!==0)return ue(k,-5);if(k.avail_in!==0||G.lookahead!==0||de!==x&&G.status!==666){var ye=G.strategy===2?function(oe,je){for(var Te;;){if(oe.lookahead===0&&(ie(oe),oe.lookahead===0)){if(je===x)return j;break}if(oe.match_length=0,Te=f._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++,Te&&(U(oe,!1),oe.strm.avail_out===0))return j}return oe.insert=0,je===b?(U(oe,!0),oe.strm.avail_out===0?W:w):oe.last_lit&&(U(oe,!1),oe.strm.avail_out===0)?j:Z}(G,de):G.strategy===3?function(oe,je){for(var Te,ee,xe,_e,Ce=oe.window;;){if(oe.lookahead<=R){if(ie(oe),oe.lookahead<=R&&je===x)return j;if(oe.lookahead===0)break}if(oe.match_length=0,oe.lookahead>=M&&0<oe.strstart&&(ee=Ce[xe=oe.strstart-1])===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]){_e=oe.strstart+R;do;while(ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&ee===Ce[++xe]&&xe<_e);oe.match_length=R-(_e-xe),oe.match_length>oe.lookahead&&(oe.match_length=oe.lookahead)}if(oe.match_length>=M?(Te=f._tr_tally(oe,1,oe.match_length-M),oe.lookahead-=oe.match_length,oe.strstart+=oe.match_length,oe.match_length=0):(Te=f._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++),Te&&(U(oe,!1),oe.strm.avail_out===0))return j}return oe.insert=0,je===b?(U(oe,!0),oe.strm.avail_out===0?W:w):oe.last_lit&&(U(oe,!1),oe.strm.avail_out===0)?j:Z}(G,de):c[G.level].func(G,de);if(ye!==W&&ye!==w||(G.status=666),ye===j||ye===W)return k.avail_out===0&&(G.last_flush=-1),E;if(ye===Z&&(de===1?f._tr_align(G):de!==5&&(f._tr_stored_block(G,0,0,!1),de===3&&(v(G.head),G.lookahead===0&&(G.strstart=0,G.block_start=0,G.insert=0))),O(k),k.avail_out===0))return G.last_flush=-1,E}return de!==b?E:G.wrap<=0?1:(G.wrap===2?(J(G,255&k.adler),J(G,k.adler>>8&255),J(G,k.adler>>16&255),J(G,k.adler>>24&255),J(G,255&k.total_in),J(G,k.total_in>>8&255),J(G,k.total_in>>16&255),J(G,k.total_in>>24&255)):(Q(G,k.adler>>>16),Q(G,65535&k.adler)),O(k),0<G.wrap&&(G.wrap=-G.wrap),G.pending!==0?E:1)},o.deflateEnd=function(k){var de;return k&&k.state?(de=k.state.status)!==P&&de!==69&&de!==73&&de!==91&&de!==103&&de!==V&&de!==666?ue(k,_):(k.state=null,de===V?ue(k,-3):E):_},o.deflateSetDictionary=function(k,de){var ce,G,Y,te,pe,ye,oe,je,Te=de.length;if(!k||!k.state||(te=(ce=k.state).wrap)===2||te===1&&ce.status!==P||ce.lookahead)return _;for(te===1&&(k.adler=h(k.adler,de,Te,0)),ce.wrap=0,Te>=ce.w_size&&(te===0&&(v(ce.head),ce.strstart=0,ce.block_start=0,ce.insert=0),je=new u.Buf8(ce.w_size),u.arraySet(je,de,Te-ce.w_size,ce.w_size,0),de=je,Te=ce.w_size),pe=k.avail_in,ye=k.next_in,oe=k.input,k.avail_in=Te,k.next_in=0,k.input=de,ie(ce);ce.lookahead>=M;){for(G=ce.strstart,Y=ce.lookahead-(M-1);ce.ins_h=(ce.ins_h<<ce.hash_shift^ce.window[G+M-1])&ce.hash_mask,ce.prev[G&ce.w_mask]=ce.head[ce.ins_h],ce.head[ce.ins_h]=G,G++,--Y;);ce.strstart=G,ce.lookahead=M-1,ie(ce)}return ce.strstart+=ce.lookahead,ce.block_start=ce.strstart,ce.insert=ce.lookahead,ce.lookahead=0,ce.match_length=ce.prev_length=M-1,ce.match_available=0,k.next_in=ye,k.input=oe,k.avail_in=pe,ce.wrap=te,E},o.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(a,s,o){s.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(a,s,o){s.exports=function(c,u){var f,h,m,g,x,b,E,_,S,A,T,C,L,q,N,z,F,H,M,R,K,P,V,j,Z;f=c.state,h=c.next_in,j=c.input,m=h+(c.avail_in-5),g=c.next_out,Z=c.output,x=g-(u-c.avail_out),b=g+(c.avail_out-257),E=f.dmax,_=f.wsize,S=f.whave,A=f.wnext,T=f.window,C=f.hold,L=f.bits,q=f.lencode,N=f.distcode,z=(1<<f.lenbits)-1,F=(1<<f.distbits)-1;e:do{L<15&&(C+=j[h++]<<L,L+=8,C+=j[h++]<<L,L+=8),H=q[C&z];t:for(;;){if(C>>>=M=H>>>24,L-=M,(M=H>>>16&255)===0)Z[g++]=65535&H;else{if(!(16&M)){if((64&M)==0){H=q[(65535&H)+(C&(1<<M)-1)];continue t}if(32&M){f.mode=12;break e}c.msg="invalid literal/length code",f.mode=30;break e}R=65535&H,(M&=15)&&(L<M&&(C+=j[h++]<<L,L+=8),R+=C&(1<<M)-1,C>>>=M,L-=M),L<15&&(C+=j[h++]<<L,L+=8,C+=j[h++]<<L,L+=8),H=N[C&F];n:for(;;){if(C>>>=M=H>>>24,L-=M,!(16&(M=H>>>16&255))){if((64&M)==0){H=N[(65535&H)+(C&(1<<M)-1)];continue n}c.msg="invalid distance code",f.mode=30;break e}if(K=65535&H,L<(M&=15)&&(C+=j[h++]<<L,(L+=8)<M&&(C+=j[h++]<<L,L+=8)),E<(K+=C&(1<<M)-1)){c.msg="invalid distance too far back",f.mode=30;break e}if(C>>>=M,L-=M,(M=g-x)<K){if(S<(M=K-M)&&f.sane){c.msg="invalid distance too far back",f.mode=30;break e}if(V=T,(P=0)===A){if(P+=_-M,M<R){for(R-=M;Z[g++]=T[P++],--M;);P=g-K,V=Z}}else if(A<M){if(P+=_+A-M,(M-=A)<R){for(R-=M;Z[g++]=T[P++],--M;);if(P=0,A<R){for(R-=M=A;Z[g++]=T[P++],--M;);P=g-K,V=Z}}}else if(P+=A-M,M<R){for(R-=M;Z[g++]=T[P++],--M;);P=g-K,V=Z}for(;2<R;)Z[g++]=V[P++],Z[g++]=V[P++],Z[g++]=V[P++],R-=3;R&&(Z[g++]=V[P++],1<R&&(Z[g++]=V[P++]))}else{for(P=g-K;Z[g++]=Z[P++],Z[g++]=Z[P++],Z[g++]=Z[P++],2<(R-=3););R&&(Z[g++]=Z[P++],1<R&&(Z[g++]=Z[P++]))}break}}break}}while(h<m&&g<b);h-=R=L>>3,C&=(1<<(L-=R<<3))-1,c.next_in=h,c.next_out=g,c.avail_in=h<m?m-h+5:5-(h-m),c.avail_out=g<b?b-g+257:257-(g-b),f.hold=C,f.bits=L}},{}],49:[function(a,s,o){var c=a("../utils/common"),u=a("./adler32"),f=a("./crc32"),h=a("./inffast"),m=a("./inftrees"),g=1,x=2,b=0,E=-2,_=1,S=852,A=592;function T(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<24)}function C(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new c.Buf16(320),this.work=new c.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function L(P){var V;return P&&P.state?(V=P.state,P.total_in=P.total_out=V.total=0,P.msg="",V.wrap&&(P.adler=1&V.wrap),V.mode=_,V.last=0,V.havedict=0,V.dmax=32768,V.head=null,V.hold=0,V.bits=0,V.lencode=V.lendyn=new c.Buf32(S),V.distcode=V.distdyn=new c.Buf32(A),V.sane=1,V.back=-1,b):E}function q(P){var V;return P&&P.state?((V=P.state).wsize=0,V.whave=0,V.wnext=0,L(P)):E}function N(P,V){var j,Z;return P&&P.state?(Z=P.state,V<0?(j=0,V=-V):(j=1+(V>>4),V<48&&(V&=15)),V&&(V<8||15<V)?E:(Z.window!==null&&Z.wbits!==V&&(Z.window=null),Z.wrap=j,Z.wbits=V,q(P))):E}function z(P,V){var j,Z;return P?(Z=new C,(P.state=Z).window=null,(j=N(P,V))!==b&&(P.state=null),j):E}var F,H,M=!0;function R(P){if(M){var V;for(F=new c.Buf32(512),H=new c.Buf32(32),V=0;V<144;)P.lens[V++]=8;for(;V<256;)P.lens[V++]=9;for(;V<280;)P.lens[V++]=7;for(;V<288;)P.lens[V++]=8;for(m(g,P.lens,0,288,F,0,P.work,{bits:9}),V=0;V<32;)P.lens[V++]=5;m(x,P.lens,0,32,H,0,P.work,{bits:5}),M=!1}P.lencode=F,P.lenbits=9,P.distcode=H,P.distbits=5}function K(P,V,j,Z){var W,w=P.state;return w.window===null&&(w.wsize=1<<w.wbits,w.wnext=0,w.whave=0,w.window=new c.Buf8(w.wsize)),Z>=w.wsize?(c.arraySet(w.window,V,j-w.wsize,w.wsize,0),w.wnext=0,w.whave=w.wsize):(Z<(W=w.wsize-w.wnext)&&(W=Z),c.arraySet(w.window,V,j-Z,W,w.wnext),(Z-=W)?(c.arraySet(w.window,V,j-Z,Z,0),w.wnext=Z,w.whave=w.wsize):(w.wnext+=W,w.wnext===w.wsize&&(w.wnext=0),w.whave<w.wsize&&(w.whave+=W))),0}o.inflateReset=q,o.inflateReset2=N,o.inflateResetKeep=L,o.inflateInit=function(P){return z(P,15)},o.inflateInit2=z,o.inflate=function(P,V){var j,Z,W,w,ue,I,v,O,U,J,Q,ne,ie,be,Se,Ee,Ne,Oe,Le,Re,k,de,ce,G,Y=0,te=new c.Buf8(4),pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return E;(j=P.state).mode===12&&(j.mode=13),ue=P.next_out,W=P.output,v=P.avail_out,w=P.next_in,Z=P.input,I=P.avail_in,O=j.hold,U=j.bits,J=I,Q=v,de=b;e:for(;;)switch(j.mode){case _:if(j.wrap===0){j.mode=13;break}for(;U<16;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}if(2&j.wrap&&O===35615){te[j.check=0]=255&O,te[1]=O>>>8&255,j.check=f(j.check,te,2,0),U=O=0,j.mode=2;break}if(j.flags=0,j.head&&(j.head.done=!1),!(1&j.wrap)||(((255&O)<<8)+(O>>8))%31){P.msg="incorrect header check",j.mode=30;break}if((15&O)!=8){P.msg="unknown compression method",j.mode=30;break}if(U-=4,k=8+(15&(O>>>=4)),j.wbits===0)j.wbits=k;else if(k>j.wbits){P.msg="invalid window size",j.mode=30;break}j.dmax=1<<k,P.adler=j.check=1,j.mode=512&O?10:12,U=O=0;break;case 2:for(;U<16;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}if(j.flags=O,(255&j.flags)!=8){P.msg="unknown compression method",j.mode=30;break}if(57344&j.flags){P.msg="unknown header flags set",j.mode=30;break}j.head&&(j.head.text=O>>8&1),512&j.flags&&(te[0]=255&O,te[1]=O>>>8&255,j.check=f(j.check,te,2,0)),U=O=0,j.mode=3;case 3:for(;U<32;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}j.head&&(j.head.time=O),512&j.flags&&(te[0]=255&O,te[1]=O>>>8&255,te[2]=O>>>16&255,te[3]=O>>>24&255,j.check=f(j.check,te,4,0)),U=O=0,j.mode=4;case 4:for(;U<16;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}j.head&&(j.head.xflags=255&O,j.head.os=O>>8),512&j.flags&&(te[0]=255&O,te[1]=O>>>8&255,j.check=f(j.check,te,2,0)),U=O=0,j.mode=5;case 5:if(1024&j.flags){for(;U<16;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}j.length=O,j.head&&(j.head.extra_len=O),512&j.flags&&(te[0]=255&O,te[1]=O>>>8&255,j.check=f(j.check,te,2,0)),U=O=0}else j.head&&(j.head.extra=null);j.mode=6;case 6:if(1024&j.flags&&(I<(ne=j.length)&&(ne=I),ne&&(j.head&&(k=j.head.extra_len-j.length,j.head.extra||(j.head.extra=new Array(j.head.extra_len)),c.arraySet(j.head.extra,Z,w,ne,k)),512&j.flags&&(j.check=f(j.check,Z,ne,w)),I-=ne,w+=ne,j.length-=ne),j.length))break e;j.length=0,j.mode=7;case 7:if(2048&j.flags){if(I===0)break e;for(ne=0;k=Z[w+ne++],j.head&&k&&j.length<65536&&(j.head.name+=String.fromCharCode(k)),k&&ne<I;);if(512&j.flags&&(j.check=f(j.check,Z,ne,w)),I-=ne,w+=ne,k)break e}else j.head&&(j.head.name=null);j.length=0,j.mode=8;case 8:if(4096&j.flags){if(I===0)break e;for(ne=0;k=Z[w+ne++],j.head&&k&&j.length<65536&&(j.head.comment+=String.fromCharCode(k)),k&&ne<I;);if(512&j.flags&&(j.check=f(j.check,Z,ne,w)),I-=ne,w+=ne,k)break e}else j.head&&(j.head.comment=null);j.mode=9;case 9:if(512&j.flags){for(;U<16;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}if(O!==(65535&j.check)){P.msg="header crc mismatch",j.mode=30;break}U=O=0}j.head&&(j.head.hcrc=j.flags>>9&1,j.head.done=!0),P.adler=j.check=0,j.mode=12;break;case 10:for(;U<32;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}P.adler=j.check=T(O),U=O=0,j.mode=11;case 11:if(j.havedict===0)return P.next_out=ue,P.avail_out=v,P.next_in=w,P.avail_in=I,j.hold=O,j.bits=U,2;P.adler=j.check=1,j.mode=12;case 12:if(V===5||V===6)break e;case 13:if(j.last){O>>>=7&U,U-=7&U,j.mode=27;break}for(;U<3;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}switch(j.last=1&O,U-=1,3&(O>>>=1)){case 0:j.mode=14;break;case 1:if(R(j),j.mode=20,V!==6)break;O>>>=2,U-=2;break e;case 2:j.mode=17;break;case 3:P.msg="invalid block type",j.mode=30}O>>>=2,U-=2;break;case 14:for(O>>>=7&U,U-=7&U;U<32;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}if((65535&O)!=(O>>>16^65535)){P.msg="invalid stored block lengths",j.mode=30;break}if(j.length=65535&O,U=O=0,j.mode=15,V===6)break e;case 15:j.mode=16;case 16:if(ne=j.length){if(I<ne&&(ne=I),v<ne&&(ne=v),ne===0)break e;c.arraySet(W,Z,w,ne,ue),I-=ne,w+=ne,v-=ne,ue+=ne,j.length-=ne;break}j.mode=12;break;case 17:for(;U<14;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}if(j.nlen=257+(31&O),O>>>=5,U-=5,j.ndist=1+(31&O),O>>>=5,U-=5,j.ncode=4+(15&O),O>>>=4,U-=4,286<j.nlen||30<j.ndist){P.msg="too many length or distance symbols",j.mode=30;break}j.have=0,j.mode=18;case 18:for(;j.have<j.ncode;){for(;U<3;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}j.lens[pe[j.have++]]=7&O,O>>>=3,U-=3}for(;j.have<19;)j.lens[pe[j.have++]]=0;if(j.lencode=j.lendyn,j.lenbits=7,ce={bits:j.lenbits},de=m(0,j.lens,0,19,j.lencode,0,j.work,ce),j.lenbits=ce.bits,de){P.msg="invalid code lengths set",j.mode=30;break}j.have=0,j.mode=19;case 19:for(;j.have<j.nlen+j.ndist;){for(;Ee=(Y=j.lencode[O&(1<<j.lenbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=U);){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}if(Ne<16)O>>>=Se,U-=Se,j.lens[j.have++]=Ne;else{if(Ne===16){for(G=Se+2;U<G;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}if(O>>>=Se,U-=Se,j.have===0){P.msg="invalid bit length repeat",j.mode=30;break}k=j.lens[j.have-1],ne=3+(3&O),O>>>=2,U-=2}else if(Ne===17){for(G=Se+3;U<G;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}U-=Se,k=0,ne=3+(7&(O>>>=Se)),O>>>=3,U-=3}else{for(G=Se+7;U<G;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}U-=Se,k=0,ne=11+(127&(O>>>=Se)),O>>>=7,U-=7}if(j.have+ne>j.nlen+j.ndist){P.msg="invalid bit length repeat",j.mode=30;break}for(;ne--;)j.lens[j.have++]=k}}if(j.mode===30)break;if(j.lens[256]===0){P.msg="invalid code -- missing end-of-block",j.mode=30;break}if(j.lenbits=9,ce={bits:j.lenbits},de=m(g,j.lens,0,j.nlen,j.lencode,0,j.work,ce),j.lenbits=ce.bits,de){P.msg="invalid literal/lengths set",j.mode=30;break}if(j.distbits=6,j.distcode=j.distdyn,ce={bits:j.distbits},de=m(x,j.lens,j.nlen,j.ndist,j.distcode,0,j.work,ce),j.distbits=ce.bits,de){P.msg="invalid distances set",j.mode=30;break}if(j.mode=20,V===6)break e;case 20:j.mode=21;case 21:if(6<=I&&258<=v){P.next_out=ue,P.avail_out=v,P.next_in=w,P.avail_in=I,j.hold=O,j.bits=U,h(P,Q),ue=P.next_out,W=P.output,v=P.avail_out,w=P.next_in,Z=P.input,I=P.avail_in,O=j.hold,U=j.bits,j.mode===12&&(j.back=-1);break}for(j.back=0;Ee=(Y=j.lencode[O&(1<<j.lenbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=U);){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}if(Ee&&(240&Ee)==0){for(Oe=Se,Le=Ee,Re=Ne;Ee=(Y=j.lencode[Re+((O&(1<<Oe+Le)-1)>>Oe)])>>>16&255,Ne=65535&Y,!(Oe+(Se=Y>>>24)<=U);){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}O>>>=Oe,U-=Oe,j.back+=Oe}if(O>>>=Se,U-=Se,j.back+=Se,j.length=Ne,Ee===0){j.mode=26;break}if(32&Ee){j.back=-1,j.mode=12;break}if(64&Ee){P.msg="invalid literal/length code",j.mode=30;break}j.extra=15&Ee,j.mode=22;case 22:if(j.extra){for(G=j.extra;U<G;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}j.length+=O&(1<<j.extra)-1,O>>>=j.extra,U-=j.extra,j.back+=j.extra}j.was=j.length,j.mode=23;case 23:for(;Ee=(Y=j.distcode[O&(1<<j.distbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=U);){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}if((240&Ee)==0){for(Oe=Se,Le=Ee,Re=Ne;Ee=(Y=j.distcode[Re+((O&(1<<Oe+Le)-1)>>Oe)])>>>16&255,Ne=65535&Y,!(Oe+(Se=Y>>>24)<=U);){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}O>>>=Oe,U-=Oe,j.back+=Oe}if(O>>>=Se,U-=Se,j.back+=Se,64&Ee){P.msg="invalid distance code",j.mode=30;break}j.offset=Ne,j.extra=15&Ee,j.mode=24;case 24:if(j.extra){for(G=j.extra;U<G;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}j.offset+=O&(1<<j.extra)-1,O>>>=j.extra,U-=j.extra,j.back+=j.extra}if(j.offset>j.dmax){P.msg="invalid distance too far back",j.mode=30;break}j.mode=25;case 25:if(v===0)break e;if(ne=Q-v,j.offset>ne){if((ne=j.offset-ne)>j.whave&&j.sane){P.msg="invalid distance too far back",j.mode=30;break}ie=ne>j.wnext?(ne-=j.wnext,j.wsize-ne):j.wnext-ne,ne>j.length&&(ne=j.length),be=j.window}else be=W,ie=ue-j.offset,ne=j.length;for(v<ne&&(ne=v),v-=ne,j.length-=ne;W[ue++]=be[ie++],--ne;);j.length===0&&(j.mode=21);break;case 26:if(v===0)break e;W[ue++]=j.length,v--,j.mode=21;break;case 27:if(j.wrap){for(;U<32;){if(I===0)break e;I--,O|=Z[w++]<<U,U+=8}if(Q-=v,P.total_out+=Q,j.total+=Q,Q&&(P.adler=j.check=j.flags?f(j.check,W,Q,ue-Q):u(j.check,W,Q,ue-Q)),Q=v,(j.flags?O:T(O))!==j.check){P.msg="incorrect data check",j.mode=30;break}U=O=0}j.mode=28;case 28:if(j.wrap&&j.flags){for(;U<32;){if(I===0)break e;I--,O+=Z[w++]<<U,U+=8}if(O!==(4294967295&j.total)){P.msg="incorrect length check",j.mode=30;break}U=O=0}j.mode=29;case 29:de=1;break e;case 30:de=-3;break e;case 31:return-4;case 32:default:return E}return P.next_out=ue,P.avail_out=v,P.next_in=w,P.avail_in=I,j.hold=O,j.bits=U,(j.wsize||Q!==P.avail_out&&j.mode<30&&(j.mode<27||V!==4))&&K(P,P.output,P.next_out,Q-P.avail_out)?(j.mode=31,-4):(J-=P.avail_in,Q-=P.avail_out,P.total_in+=J,P.total_out+=Q,j.total+=Q,j.wrap&&Q&&(P.adler=j.check=j.flags?f(j.check,W,Q,P.next_out-Q):u(j.check,W,Q,P.next_out-Q)),P.data_type=j.bits+(j.last?64:0)+(j.mode===12?128:0)+(j.mode===20||j.mode===15?256:0),(J==0&&Q===0||V===4)&&de===b&&(de=-5),de)},o.inflateEnd=function(P){if(!P||!P.state)return E;var V=P.state;return V.window&&(V.window=null),P.state=null,b},o.inflateGetHeader=function(P,V){var j;return P&&P.state?(2&(j=P.state).wrap)==0?E:((j.head=V).done=!1,b):E},o.inflateSetDictionary=function(P,V){var j,Z=V.length;return P&&P.state?(j=P.state).wrap!==0&&j.mode!==11?E:j.mode===11&&u(1,V,Z,0)!==j.check?-3:K(P,V,Z,Z)?(j.mode=31,-4):(j.havedict=1,b):E},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(a,s,o){var c=a("../utils/common"),u=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],f=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],h=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],m=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];s.exports=function(g,x,b,E,_,S,A,T){var C,L,q,N,z,F,H,M,R,K=T.bits,P=0,V=0,j=0,Z=0,W=0,w=0,ue=0,I=0,v=0,O=0,U=null,J=0,Q=new c.Buf16(16),ne=new c.Buf16(16),ie=null,be=0;for(P=0;P<=15;P++)Q[P]=0;for(V=0;V<E;V++)Q[x[b+V]]++;for(W=K,Z=15;1<=Z&&Q[Z]===0;Z--);if(Z<W&&(W=Z),Z===0)return _[S++]=20971520,_[S++]=20971520,T.bits=1,0;for(j=1;j<Z&&Q[j]===0;j++);for(W<j&&(W=j),P=I=1;P<=15;P++)if(I<<=1,(I-=Q[P])<0)return-1;if(0<I&&(g===0||Z!==1))return-1;for(ne[1]=0,P=1;P<15;P++)ne[P+1]=ne[P]+Q[P];for(V=0;V<E;V++)x[b+V]!==0&&(A[ne[x[b+V]]++]=V);if(F=g===0?(U=ie=A,19):g===1?(U=u,J-=257,ie=f,be-=257,256):(U=h,ie=m,-1),P=j,z=S,ue=V=O=0,q=-1,N=(v=1<<(w=W))-1,g===1&&852<v||g===2&&592<v)return 1;for(;;){for(H=P-ue,R=A[V]<F?(M=0,A[V]):A[V]>F?(M=ie[be+A[V]],U[J+A[V]]):(M=96,0),C=1<<P-ue,j=L=1<<w;_[z+(O>>ue)+(L-=C)]=H<<24|M<<16|R|0,L!==0;);for(C=1<<P-1;O&C;)C>>=1;if(C!==0?(O&=C-1,O+=C):O=0,V++,--Q[P]==0){if(P===Z)break;P=x[b+A[V]]}if(W<P&&(O&N)!==q){for(ue===0&&(ue=W),z+=j,I=1<<(w=P-ue);w+ue<Z&&!((I-=Q[w+ue])<=0);)w++,I<<=1;if(v+=1<<w,g===1&&852<v||g===2&&592<v)return 1;_[q=O&N]=W<<24|w<<16|z-S|0}}return O!==0&&(_[z+O]=P-ue<<24|64<<16|0),T.bits=W,0}},{"../utils/common":41}],51:[function(a,s,o){s.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(a,s,o){var c=a("../utils/common"),u=0,f=1;function h(Y){for(var te=Y.length;0<=--te;)Y[te]=0}var m=0,g=29,x=256,b=x+1+g,E=30,_=19,S=2*b+1,A=15,T=16,C=7,L=256,q=16,N=17,z=18,F=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],H=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],M=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],R=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],K=new Array(2*(b+2));h(K);var P=new Array(2*E);h(P);var V=new Array(512);h(V);var j=new Array(256);h(j);var Z=new Array(g);h(Z);var W,w,ue,I=new Array(E);function v(Y,te,pe,ye,oe){this.static_tree=Y,this.extra_bits=te,this.extra_base=pe,this.elems=ye,this.max_length=oe,this.has_stree=Y&&Y.length}function O(Y,te){this.dyn_tree=Y,this.max_code=0,this.stat_desc=te}function U(Y){return Y<256?V[Y]:V[256+(Y>>>7)]}function J(Y,te){Y.pending_buf[Y.pending++]=255&te,Y.pending_buf[Y.pending++]=te>>>8&255}function Q(Y,te,pe){Y.bi_valid>T-pe?(Y.bi_buf|=te<<Y.bi_valid&65535,J(Y,Y.bi_buf),Y.bi_buf=te>>T-Y.bi_valid,Y.bi_valid+=pe-T):(Y.bi_buf|=te<<Y.bi_valid&65535,Y.bi_valid+=pe)}function ne(Y,te,pe){Q(Y,pe[2*te],pe[2*te+1])}function ie(Y,te){for(var pe=0;pe|=1&Y,Y>>>=1,pe<<=1,0<--te;);return pe>>>1}function be(Y,te,pe){var ye,oe,je=new Array(A+1),Te=0;for(ye=1;ye<=A;ye++)je[ye]=Te=Te+pe[ye-1]<<1;for(oe=0;oe<=te;oe++){var ee=Y[2*oe+1];ee!==0&&(Y[2*oe]=ie(je[ee]++,ee))}}function Se(Y){var te;for(te=0;te<b;te++)Y.dyn_ltree[2*te]=0;for(te=0;te<E;te++)Y.dyn_dtree[2*te]=0;for(te=0;te<_;te++)Y.bl_tree[2*te]=0;Y.dyn_ltree[2*L]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function Ee(Y){8<Y.bi_valid?J(Y,Y.bi_buf):0<Y.bi_valid&&(Y.pending_buf[Y.pending++]=Y.bi_buf),Y.bi_buf=0,Y.bi_valid=0}function Ne(Y,te,pe,ye){var oe=2*te,je=2*pe;return Y[oe]<Y[je]||Y[oe]===Y[je]&&ye[te]<=ye[pe]}function Oe(Y,te,pe){for(var ye=Y.heap[pe],oe=pe<<1;oe<=Y.heap_len&&(oe<Y.heap_len&&Ne(te,Y.heap[oe+1],Y.heap[oe],Y.depth)&&oe++,!Ne(te,ye,Y.heap[oe],Y.depth));)Y.heap[pe]=Y.heap[oe],pe=oe,oe<<=1;Y.heap[pe]=ye}function Le(Y,te,pe){var ye,oe,je,Te,ee=0;if(Y.last_lit!==0)for(;ye=Y.pending_buf[Y.d_buf+2*ee]<<8|Y.pending_buf[Y.d_buf+2*ee+1],oe=Y.pending_buf[Y.l_buf+ee],ee++,ye===0?ne(Y,oe,te):(ne(Y,(je=j[oe])+x+1,te),(Te=F[je])!==0&&Q(Y,oe-=Z[je],Te),ne(Y,je=U(--ye),pe),(Te=H[je])!==0&&Q(Y,ye-=I[je],Te)),ee<Y.last_lit;);ne(Y,L,te)}function Re(Y,te){var pe,ye,oe,je=te.dyn_tree,Te=te.stat_desc.static_tree,ee=te.stat_desc.has_stree,xe=te.stat_desc.elems,_e=-1;for(Y.heap_len=0,Y.heap_max=S,pe=0;pe<xe;pe++)je[2*pe]!==0?(Y.heap[++Y.heap_len]=_e=pe,Y.depth[pe]=0):je[2*pe+1]=0;for(;Y.heap_len<2;)je[2*(oe=Y.heap[++Y.heap_len]=_e<2?++_e:0)]=1,Y.depth[oe]=0,Y.opt_len--,ee&&(Y.static_len-=Te[2*oe+1]);for(te.max_code=_e,pe=Y.heap_len>>1;1<=pe;pe--)Oe(Y,je,pe);for(oe=xe;pe=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],Oe(Y,je,1),ye=Y.heap[1],Y.heap[--Y.heap_max]=pe,Y.heap[--Y.heap_max]=ye,je[2*oe]=je[2*pe]+je[2*ye],Y.depth[oe]=(Y.depth[pe]>=Y.depth[ye]?Y.depth[pe]:Y.depth[ye])+1,je[2*pe+1]=je[2*ye+1]=oe,Y.heap[1]=oe++,Oe(Y,je,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(Ce,He){var an,ft,gn,at,rr,Ln,Zt=He.dyn_tree,_r=He.max_code,mu=He.stat_desc.static_tree,Uo=He.stat_desc.has_stree,Bo=He.stat_desc.extra_bits,Ba=He.stat_desc.extra_base,Pn=He.stat_desc.max_length,Fa=0;for(at=0;at<=A;at++)Ce.bl_count[at]=0;for(Zt[2*Ce.heap[Ce.heap_max]+1]=0,an=Ce.heap_max+1;an<S;an++)Pn<(at=Zt[2*Zt[2*(ft=Ce.heap[an])+1]+1]+1)&&(at=Pn,Fa++),Zt[2*ft+1]=at,_r<ft||(Ce.bl_count[at]++,rr=0,Ba<=ft&&(rr=Bo[ft-Ba]),Ln=Zt[2*ft],Ce.opt_len+=Ln*(at+rr),Uo&&(Ce.static_len+=Ln*(mu[2*ft+1]+rr)));if(Fa!==0){do{for(at=Pn-1;Ce.bl_count[at]===0;)at--;Ce.bl_count[at]--,Ce.bl_count[at+1]+=2,Ce.bl_count[Pn]--,Fa-=2}while(0<Fa);for(at=Pn;at!==0;at--)for(ft=Ce.bl_count[at];ft!==0;)_r<(gn=Ce.heap[--an])||(Zt[2*gn+1]!==at&&(Ce.opt_len+=(at-Zt[2*gn+1])*Zt[2*gn],Zt[2*gn+1]=at),ft--)}}(Y,te),be(je,_e,Y.bl_count)}function k(Y,te,pe){var ye,oe,je=-1,Te=te[1],ee=0,xe=7,_e=4;for(Te===0&&(xe=138,_e=3),te[2*(pe+1)+1]=65535,ye=0;ye<=pe;ye++)oe=Te,Te=te[2*(ye+1)+1],++ee<xe&&oe===Te||(ee<_e?Y.bl_tree[2*oe]+=ee:oe!==0?(oe!==je&&Y.bl_tree[2*oe]++,Y.bl_tree[2*q]++):ee<=10?Y.bl_tree[2*N]++:Y.bl_tree[2*z]++,je=oe,_e=(ee=0)===Te?(xe=138,3):oe===Te?(xe=6,3):(xe=7,4))}function de(Y,te,pe){var ye,oe,je=-1,Te=te[1],ee=0,xe=7,_e=4;for(Te===0&&(xe=138,_e=3),ye=0;ye<=pe;ye++)if(oe=Te,Te=te[2*(ye+1)+1],!(++ee<xe&&oe===Te)){if(ee<_e)for(;ne(Y,oe,Y.bl_tree),--ee!=0;);else oe!==0?(oe!==je&&(ne(Y,oe,Y.bl_tree),ee--),ne(Y,q,Y.bl_tree),Q(Y,ee-3,2)):ee<=10?(ne(Y,N,Y.bl_tree),Q(Y,ee-3,3)):(ne(Y,z,Y.bl_tree),Q(Y,ee-11,7));je=oe,_e=(ee=0)===Te?(xe=138,3):oe===Te?(xe=6,3):(xe=7,4)}}h(I);var ce=!1;function G(Y,te,pe,ye){Q(Y,(m<<1)+(ye?1:0),3),function(oe,je,Te,ee){Ee(oe),J(oe,Te),J(oe,~Te),c.arraySet(oe.pending_buf,oe.window,je,Te,oe.pending),oe.pending+=Te}(Y,te,pe)}o._tr_init=function(Y){ce||(function(){var te,pe,ye,oe,je,Te=new Array(A+1);for(oe=ye=0;oe<g-1;oe++)for(Z[oe]=ye,te=0;te<1<<F[oe];te++)j[ye++]=oe;for(j[ye-1]=oe,oe=je=0;oe<16;oe++)for(I[oe]=je,te=0;te<1<<H[oe];te++)V[je++]=oe;for(je>>=7;oe<E;oe++)for(I[oe]=je<<7,te=0;te<1<<H[oe]-7;te++)V[256+je++]=oe;for(pe=0;pe<=A;pe++)Te[pe]=0;for(te=0;te<=143;)K[2*te+1]=8,te++,Te[8]++;for(;te<=255;)K[2*te+1]=9,te++,Te[9]++;for(;te<=279;)K[2*te+1]=7,te++,Te[7]++;for(;te<=287;)K[2*te+1]=8,te++,Te[8]++;for(be(K,b+1,Te),te=0;te<E;te++)P[2*te+1]=5,P[2*te]=ie(te,5);W=new v(K,F,x+1,b,A),w=new v(P,H,0,E,A),ue=new v(new Array(0),M,0,_,C)}(),ce=!0),Y.l_desc=new O(Y.dyn_ltree,W),Y.d_desc=new O(Y.dyn_dtree,w),Y.bl_desc=new O(Y.bl_tree,ue),Y.bi_buf=0,Y.bi_valid=0,Se(Y)},o._tr_stored_block=G,o._tr_flush_block=function(Y,te,pe,ye){var oe,je,Te=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(ee){var xe,_e=4093624447;for(xe=0;xe<=31;xe++,_e>>>=1)if(1&_e&&ee.dyn_ltree[2*xe]!==0)return u;if(ee.dyn_ltree[18]!==0||ee.dyn_ltree[20]!==0||ee.dyn_ltree[26]!==0)return f;for(xe=32;xe<x;xe++)if(ee.dyn_ltree[2*xe]!==0)return f;return u}(Y)),Re(Y,Y.l_desc),Re(Y,Y.d_desc),Te=function(ee){var xe;for(k(ee,ee.dyn_ltree,ee.l_desc.max_code),k(ee,ee.dyn_dtree,ee.d_desc.max_code),Re(ee,ee.bl_desc),xe=_-1;3<=xe&&ee.bl_tree[2*R[xe]+1]===0;xe--);return ee.opt_len+=3*(xe+1)+5+5+4,xe}(Y),oe=Y.opt_len+3+7>>>3,(je=Y.static_len+3+7>>>3)<=oe&&(oe=je)):oe=je=pe+5,pe+4<=oe&&te!==-1?G(Y,te,pe,ye):Y.strategy===4||je===oe?(Q(Y,2+(ye?1:0),3),Le(Y,K,P)):(Q(Y,4+(ye?1:0),3),function(ee,xe,_e,Ce){var He;for(Q(ee,xe-257,5),Q(ee,_e-1,5),Q(ee,Ce-4,4),He=0;He<Ce;He++)Q(ee,ee.bl_tree[2*R[He]+1],3);de(ee,ee.dyn_ltree,xe-1),de(ee,ee.dyn_dtree,_e-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,Te+1),Le(Y,Y.dyn_ltree,Y.dyn_dtree)),Se(Y),ye&&Ee(Y)},o._tr_tally=function(Y,te,pe){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=te>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&te,Y.pending_buf[Y.l_buf+Y.last_lit]=255&pe,Y.last_lit++,te===0?Y.dyn_ltree[2*pe]++:(Y.matches++,te--,Y.dyn_ltree[2*(j[pe]+x+1)]++,Y.dyn_dtree[2*U(te)]++),Y.last_lit===Y.lit_bufsize-1},o._tr_align=function(Y){Q(Y,2,3),ne(Y,L,K),function(te){te.bi_valid===16?(J(te,te.bi_buf),te.bi_buf=0,te.bi_valid=0):8<=te.bi_valid&&(te.pending_buf[te.pending++]=255&te.bi_buf,te.bi_buf>>=8,te.bi_valid-=8)}(Y)}},{"../utils/common":41}],53:[function(a,s,o){s.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(a,s,o){(function(c){(function(u,f){if(!u.setImmediate){var h,m,g,x,b=1,E={},_=!1,S=u.document,A=Object.getPrototypeOf&&Object.getPrototypeOf(u);A=A&&A.setTimeout?A:u,h={}.toString.call(u.process)==="[object process]"?function(q){process.nextTick(function(){C(q)})}:function(){if(u.postMessage&&!u.importScripts){var q=!0,N=u.onmessage;return u.onmessage=function(){q=!1},u.postMessage("","*"),u.onmessage=N,q}}()?(x="setImmediate$"+Math.random()+"$",u.addEventListener?u.addEventListener("message",L,!1):u.attachEvent("onmessage",L),function(q){u.postMessage(x+q,"*")}):u.MessageChannel?((g=new MessageChannel).port1.onmessage=function(q){C(q.data)},function(q){g.port2.postMessage(q)}):S&&"onreadystatechange"in S.createElement("script")?(m=S.documentElement,function(q){var N=S.createElement("script");N.onreadystatechange=function(){C(q),N.onreadystatechange=null,m.removeChild(N),N=null},m.appendChild(N)}):function(q){setTimeout(C,0,q)},A.setImmediate=function(q){typeof q!="function"&&(q=new Function(""+q));for(var N=new Array(arguments.length-1),z=0;z<N.length;z++)N[z]=arguments[z+1];var F={callback:q,args:N};return E[b]=F,h(b),b++},A.clearImmediate=T}function T(q){delete E[q]}function C(q){if(_)setTimeout(C,0,q);else{var N=E[q];if(N){_=!0;try{(function(z){var F=z.callback,H=z.args;switch(H.length){case 0:F();break;case 1:F(H[0]);break;case 2:F(H[0],H[1]);break;case 3:F(H[0],H[1],H[2]);break;default:F.apply(f,H)}})(N)}finally{T(q),_=!1}}}}function L(q){q.source===u&&typeof q.data=="string"&&q.data.indexOf(x)===0&&C(+q.data.slice(x.length))}})(typeof self>"u"?c===void 0?this:c:self)}).call(this,typeof _n<"u"?_n:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(Gf)),Gf.exports}var c_=l_();const u_=Ic(c_);var bc={exports:{}},d_=bc.exports,Px;function f_(){return Px||(Px=1,function(e,n){(function(a,s){s()})(d_,function(){function a(m,g){return typeof g>"u"?g={autoBom:!1}:typeof g!="object"&&(console.warn("Deprecated: Expected third argument to be a object"),g={autoBom:!g}),g.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(m.type)?new Blob(["\uFEFF",m],{type:m.type}):m}function s(m,g,x){var b=new XMLHttpRequest;b.open("GET",m),b.responseType="blob",b.onload=function(){h(b.response,g,x)},b.onerror=function(){console.error("could not download file")},b.send()}function o(m){var g=new XMLHttpRequest;g.open("HEAD",m,!1);try{g.send()}catch{}return 200<=g.status&&299>=g.status}function c(m){try{m.dispatchEvent(new MouseEvent("click"))}catch{var g=document.createEvent("MouseEvents");g.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),m.dispatchEvent(g)}}var u=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof _n=="object"&&_n.global===_n?_n:void 0,f=u.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=u.saveAs||(typeof window!="object"||window!==u?function(){}:"download"in HTMLAnchorElement.prototype&&!f?function(m,g,x){var b=u.URL||u.webkitURL,E=document.createElement("a");g=g||m.name||"download",E.download=g,E.rel="noopener",typeof m=="string"?(E.href=m,E.origin===location.origin?c(E):o(E.href)?s(m,g,x):c(E,E.target="_blank")):(E.href=b.createObjectURL(m),setTimeout(function(){b.revokeObjectURL(E.href)},4e4),setTimeout(function(){c(E)},0))}:"msSaveOrOpenBlob"in navigator?function(m,g,x){if(g=g||m.name||"download",typeof m!="string")navigator.msSaveOrOpenBlob(a(m,x),g);else if(o(m))s(m,g,x);else{var b=document.createElement("a");b.href=m,b.target="_blank",setTimeout(function(){c(b)})}}:function(m,g,x,b){if(b=b||open("","_blank"),b&&(b.document.title=b.document.body.innerText="downloading..."),typeof m=="string")return s(m,g,x);var E=m.type==="application/octet-stream",_=/constructor/i.test(u.HTMLElement)||u.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||E&&_||f)&&typeof FileReader<"u"){var A=new FileReader;A.onloadend=function(){var L=A.result;L=S?L:L.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=L:location=L,b=null},A.readAsDataURL(m)}else{var T=u.URL||u.webkitURL,C=T.createObjectURL(m);b?b.location=C:location.href=C,b=null,setTimeout(function(){T.revokeObjectURL(C)},4e4)}});u.saveAs=h.saveAs=h,e.exports=h})}(bc)),bc.exports}var h_=f_();const m_="/assets/bg-CTZfS44-.jpg",p_="/assets/mobile-DVtmHUcA.png",g_="/assets/wherego-CxrpFa6S.jpeg",y_="/assets/futuresee-vF3riMDq.jpeg",x_="/assets/map-DfwT83pC.png",H1="/assets/direction-DvSXpJ92.png",v_="/assets/rides-DHFaS9Zp.png",b_="/assets/connectors-DxMTDBst.png",w_="/assets/recoveries-CVwWHeuA.png",S_="/assets/delivery-D2UlqJpG.png",j_="/assets/shifting-DYqoMp4y.png",E_="/assets/tourism-Dr_CLv8Q.png",I1="/assets/bg2-C1RXNloV.png",q1="/assets/book-DZfcrvd8.png",G1="/assets/booklady-CV6x7ftQ.jpg",Y1="/assets/playbutton-BmD_M-Vz.png",X1="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQgAAABYCAYAAAAJD2m8AAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA7ZSURBVHgB7Z3tuQ3LEsfHvff7IQJEgAgQASIgA0SACBABIkAEiAAR4JtviGDf9Vvn/J1WqmZ6Zk3PzNrq9zz17LXX6qnp6ZeafqnuPtN13UmXJEni8J8uSZIkIA1EkiQhaSCSJAlJA5EkSUgaiCRJQtJAJEkSkgYiSZKQNBBJkoSkgUiSJCQNRJIkIWkgkiQJSQORJElIGogkSULSQCRJEpIGIkmSkDQQSZKEpIFIkiTkvzt52CV/PA8fPuyuXbvWvX37tluTO3fudDdv3uw+f/7cff/+vTsWSDviTpy/fv3anSZOjll2GXPy5MmTkzdv3ix6X+756dOnX+T9+/f7eOwq28mFCxcWjc+hItaOB+kH5OvacbFy9uzZfb7y1/5GnsPOSGwu3ofI/7ojhbfM48ePu12GdWuwKyThvXmb3L17t7t371734sWLLjkdXL58udsZsH0r6/r1692fwNGNQVAxnz171r18+fKXCvrhw4duDR49etSdOXNmL+fOndsXnFevXu3j+fz5872xSJJj5ahaEFQ6rPelS5d+++3Lly/d2tD/JH4IxuH27dvdgwcPfuvX8xy0MHgj8ZnrXr9+vb9G0EK6cePG/nsMjtB1T58+/cUoch8M5v379/f6dL1aMFyne3Ft7VhDTVzLsPTDr169uv8M3D8KW+rlGae0tjDAPKvKBGMXGG3+lpTpo7ThvlF4C61B4groYcyGtNh1NX8LSziejXBD6UU4vURq47I0R9Mf2iXyScTSfT/Fhb6n9zv9VFGOR/CZ8QqPXcvoZzj64PY7RNcyBmLvxW/6Tn3iXTfMvZft43tjELVxVRzKsOVnb3xoZ9x+06kxHC9+nuwq10nEzjj/ElZ6ibfl27dv7riCl+4lXnrzF32WnYEJ05bw5TU27ivLZiLSKxiAiDKjlpIhA4FQ4GH3xvrtul0X6Weh3L1xfhYWFSR+U8HRtYTzntkzJiqwQNppgE33t5VWlN8RR+AaL66lUVb+lM9VVoKywvOMegZ9T1illw3vCeG9yqfntpVeBsLeU/Hry0eF1TOii/9Lw1+mN/FRemPIvTLq3ZdyojwfMlgLyiYiMShl4bFY67yE1BgIFUpVJBVqCoCd5VAlLyuurldYVSzdW4VIhbM0RPrOvukVB1tghQ1XG9dIVEFKY6K8tK0+GcUaAxE9X5luZbmweSFRpff0WOl77ig+ZUuyRo+XXmvKUYxB0KdT/8/y8eNHtx+4RTSoytiB7WdqPKEc1KTvyv8IfVj6zYTT+AZ9aT7T5y91lJA+JbX927FxFXzHtbreC6O8LMdWgP4694ry2tNBGlmUbt5YlX2Wufv7dixMz1QOqJefGcsoUZzXmp2zHIWBiGYCSHgqyVZRJqsQ9mW65xSkgUQMgGZENMBIeH1PZfEqcqR3StyHdBKeKcDyGblWg5Uenp7a+P7111+j9G4JpRH55pWJoXRbkqOY5vQSkbfPlStXNjfiKxjN1yi2KrrevF7m6xnLwk14/lcrAvTW5S2JcdQswLt377o5UTy8t7kXV6ae+R4DxnQv074XL17c/x/p9tKhtmLoTd2Xlj9+/Oi2iMoseUkaecKsyRY4CgOhQqDKhq/BrVu3NvumoDIzrQbl1J3ch703B90HsN0EDAFh5cYrY8NfTZOBba4filoptXFVGE3/CXV/SnSdrQToqOlelDroaln03dpu4xGKFwbeGjien7yuTYclWH0gxI4IW2HkPPqd7xn0QQi31OhvORvAABUil2/BVJ6NjwazGCRkIIp474zJz2vKgcau+3X2ZmcE3MGvcqbD3scb7KoZpOyKAbMorqS3wuq5+Z3vCVtOsXozHkAYwjKgyH1qBynLaVUGBglP2mnmxT5fNH0aTSdH5VDprfSw6e0NWiueXnyIL3oox6SBnn9DrvrL35SHpyDZmQkShwQbGsHV+otojh696GiZyH0+GTwHBSUyVqp49hpvNqY0BDZdVMhKw2EL7CEGgnt7z+nFtZz+FPwvvwMbj3JaUJAuul+NH4R3T93X5v0cBqLUY9NwrIEgbb2ZORmfQ8rmnHLmnw+LQHOKGQevWWihOU5TjCY6f2l+ygNujPsyTV680+ZGo/UWDRYOdX/KcQXCMtgYXaOmKOlQjrkoDtzTdk0082OvAXVXym4J34Hn8VcbV+KiOHFP9Kvb4MWj7DoRf8Loei98hMZiQJ6s3jN4eklXrR6t7ZJIV5mGSm8vL5R/Q2mrNNta13kRS4Sl9jzMlgBLvaEmW0rKMUn7m9A3XBuMxIa801JSjkKaz2LQFGMKbG1o/o3pmiRJ8jdNLVA0kLg0a7hjp6ScAmmnvG+B1ZKctl1+UlIWlHbKt9B6GFqll5KSEkuzaU76+/jmrwnTRritLg1TWtYTTm7Tyb9ogxkWKMllHEgnBPdxpv3W2i0s+ZsmlsdzhFmatboWnnNRtmT+FWaT8KCsnfbW/gvH9IynSNooLj3O1mKtaU2va8U06xpx2ZpE3o814H17TM96SqSN4rXHH5beBl/SNzC7xa3cl5S+LexAxwf0tSz6ZqP4jXyXlGtFUiZLG8VrU+7ZuKSwLmJrcdqKaCFVCRUZw2lbe1TuaB1I1N2w4f90gzyTtFG8Nmv0+ct9EsFuRuqtuvxTpNxPc0wecZ1tUUSGNg3E/NLEk3Iru+EsjfXUZIv1cgSedPlTvTntczPDZLdb8yD97KYzNYv9knloYiC2MJ13/vz5bmlswdVq1L4wh1Lu/7hlvXba1+6V2Yfdc7TvVLM50ArUcup1DhTvmrgr7NxxmEKTpslaKzfF0s15273QIGm5U7PiVTO7QvO4HHArN5LRbxa+q9lLo4XeIbHNf28PiymiTXoQW+Z0zoakr0vD83k6pIf7DE21sqeE7sV4i9Vd4qUn5YKZmmiPC/SvMN3bRvEWvCiX7INav4+yANiBy5p1IXY2RPq8g18sfX4Dnl4K5qF6aypySd9g4xgZM53ubQpDHGp1RJv6eGVem8lE6WoNBIcA1b5UF57ubaO4b8elpVhyqtMaxLLwa9eiMfHyKnJ0SpZHtLy9ld6xzwOkmd1ib6wcYiCGpl0jogpqDUS5PZ+lNBB94SLIs7nLcCBtFOuQl7VZohUxZABsNwOGKpmtUOVRdejijUwY0jkyxl4haqV3SLw0EBgd7jclr7iOio/Yyk4zX78h9q3tGQfyDp0YLoQ08MJ5cS3D2RksfiM+SNm18/ZKUZcOA8YsDmE8Q7iQp3AbxbbSrMVcTdk+sRXJyzgbZmiKL3K4ogJ7xiV6G9qwrfTWVuaa/FIlHWswxkxzem/tqMJ5aeAd9xiNHfTFw17TVy5sN3ahcbZ2ytceqBTeJqZzSl/3QjK2m+FV5KGNVbmvTXNb4FrprZWxa3TGDM6NMRBjKmaUBla/Z0T64m1bDzXu+LYlsUALuZ3yLYxDiFa7BdtM7hudHypgpXgVuaaS2ApoDVErvWNkzMBgCV2bvpZLrYGwxrr2TWwHWqOT18VQeZvi2GXL2wLeue2Ub6WbUTL3wGVN9yIqYEPTbiW1i708b84+vbXpMaR3iugsiDHGom+QtLbC2a5O7ZSrLc/Rid1iaC2I3fZ+Sj60XgTY9GxO7YGwJc/KMQ46Q/Bc1vGp74QrftNJWMDnGm9CqD1aT1vuK83lcBNtIV+bHmP11urECUqOUHhb4hjUd7QBv3NqGV6qU7GOSrX7TdhwQw5PQ3pL5zHSdsr+Ka3rVlMDwUPjJqtj6LbAnCeB24ODed7dKHVXi1yva85jGOOdOsYot9I7BZ1pQR7pvArKjq2IHNnHWSdTPXbtM9QaOe9+6JoSDxuHqW74LT1Kofnp3mQ2b8ottCI4uGTOw35t62FKJlMJWp8heYxrY3RAj8SmNenmHUSzNHMZiK3S3EBsqRUx5wlbOkXqUCj49sBbjzEFyobt032I3qWgxUC3o7z/nG/OQ55r6gvHXkcecSD11mhuIGALrYi5Ww/WOGgfxRrKwq1Wx9Dp3OzbWKt7TBO6ld4Sb4/OMa0mHc0310pYG+/aNLDPcOiiRDums9V9S0+WkDU9K1v4QYyd0irFjtp7Mwl2tqF2kdfQ7EcrvX1ip+Zq71mKHfH3ZoBqZzG8+EwpwzbfbJkYWw42un/FcjebMvc9B3P7P3ibn4wxQJ4vQo3HY42Lsy2kdq7e01vj9DSkt0/KE8rHPIvETu2BV5msgYjWeXhu3zWVc+ilMNZADBmcSIirZIFt9bqTpWTq4phDGFOQa8UWxLG+FV4BtasEI5fo3ZhFqNdbOWgL/lx6xxZM7+VQsyrR2+TWc3P28qUv761PylAr06aBF36sgfDKQV8+INZFfIH1GN3JkrKk8xQZ1mJn60O6F1FhrvF4FBRW0pECinj7DUC5J8GceqcY3SjfSUvugyFQXnFvwkeeuFF6e91YWire29ZznS7jogoc7ZHhtbrGGgjEcz33XMu9eLReQtCtYSCGCulctEo8r6BPuc+QHptG0arCsc/fSu/UyjAW4jsmTUtquls1RC3GKQYCseMrAgPWt8v3Ua/mHJKhQUstPaYfqTcaBYBE8XZHLmlpWefaGclrXpZvJVt4+a22i4beqAvg6a09q4Iwh/Z5DzESNesO+tb/eC0fyuGYRYWUvahVOtVAoG/M+NzQxjUzS3eyllDgywzVUl+MwlDXgGspMKX1JYMogK0OzPEq9SFW3NtlSb95FdlLM3v90MrHVnoPyfchtDV+rX6e0XsrR12jmvi8MdvzeTLVQJTx7jPUemkuue1cs7M5x3KoX/9SWAedQ+LM3HfkW8CZlbsC/fN7nLzKdRvyLVB8uK5mHr2V3iloU1b8G9hkWGnBPX/8+LG/L/4hh7hUl+lbk1fERRvLyrcFn42aa+cqG0p/+Z6gp2U+DHGSsj2J3vRb1ZtyOqXJtvdJkpwO0kAkSRKSBiJJkpA0EEmShCyymjMZD6PW5X4HtbseraU3OZ1sZpozSZLtkV2MJElC0kAkSRKSBiJJkpA0EEmShKSBSJIkJA1EkiQhaSCSJAlJA5EkSUgaiCRJQtJAJEkSkgYiSZKQNBBJkoSkgUiSJOT/mUlQwvIYn3YAAAAASUVORK5CYII=",T_="/assets/countless1-CVck5bx4.jpg",A_="/assets/countless2-b-eUsns6.png",N_="/assets/countless3-DjmIYyMw.png",__="/assets/brochure-C8xBBGg_.pdf",k_="/assets/document1-49tq_C5-.pdf",O_="/assets/guide-DwMDUa26.pdf";var Yf={},Xf={},Zi={},Wf={},zx;function R_(){return zx||(zx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};e.default=n}(Wf)),Wf}var Zf,Ux;function C_(){if(Ux)return Zf;Ux=1;var e="Expected a function",n=NaN,a="[object Symbol]",s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,c=/^0b[01]+$/i,u=/^0o[0-7]+$/i,f=parseInt,h=typeof _n=="object"&&_n&&_n.Object===Object&&_n,m=typeof self=="object"&&self&&self.Object===Object&&self,g=h||m||Function("return this")(),x=Object.prototype,b=x.toString,E=Math.max,_=Math.min,S=function(){return g.Date.now()};function A(N,z,F){var H,M,R,K,P,V,j=0,Z=!1,W=!1,w=!0;if(typeof N!="function")throw new TypeError(e);z=q(z)||0,T(F)&&(Z=!!F.leading,W="maxWait"in F,R=W?E(q(F.maxWait)||0,z):R,w="trailing"in F?!!F.trailing:w);function ue(be){var Se=H,Ee=M;return H=M=void 0,j=be,K=N.apply(Ee,Se),K}function I(be){return j=be,P=setTimeout(U,z),Z?ue(be):K}function v(be){var Se=be-V,Ee=be-j,Ne=z-Se;return W?_(Ne,R-Ee):Ne}function O(be){var Se=be-V,Ee=be-j;return V===void 0||Se>=z||Se<0||W&&Ee>=R}function U(){var be=S();if(O(be))return J(be);P=setTimeout(U,v(be))}function J(be){return P=void 0,w&&H?ue(be):(H=M=void 0,K)}function Q(){P!==void 0&&clearTimeout(P),j=0,H=V=M=P=void 0}function ne(){return P===void 0?K:J(S())}function ie(){var be=S(),Se=O(be);if(H=arguments,M=this,V=be,Se){if(P===void 0)return I(V);if(W)return P=setTimeout(U,z),ue(V)}return P===void 0&&(P=setTimeout(U,z)),K}return ie.cancel=Q,ie.flush=ne,ie}function T(N){var z=typeof N;return!!N&&(z=="object"||z=="function")}function C(N){return!!N&&typeof N=="object"}function L(N){return typeof N=="symbol"||C(N)&&b.call(N)==a}function q(N){if(typeof N=="number")return N;if(L(N))return n;if(T(N)){var z=typeof N.valueOf=="function"?N.valueOf():N;N=T(z)?z+"":z}if(typeof N!="string")return N===0?N:+N;N=N.replace(s,"");var F=c.test(N);return F||u.test(N)?f(N.slice(2),F?2:8):o.test(N)?n:+N}return Zf=A,Zf}var Kf={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/var Bx;function cu(){return Bx||(Bx=1,function(e){(function(){var n={}.hasOwnProperty;function a(){for(var c="",u=0;u<arguments.length;u++){var f=arguments[u];f&&(c=o(c,s(f)))}return c}function s(c){if(typeof c=="string"||typeof c=="number")return c;if(typeof c!="object")return"";if(Array.isArray(c))return a.apply(null,c);if(c.toString!==Object.prototype.toString&&!c.toString.toString().includes("[native code]"))return c.toString();var u="";for(var f in c)n.call(c,f)&&c[f]&&(u=o(u,f));return u}function o(c,u){return u?c?c+" "+u:c+u:c}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(Kf)),Kf.exports}var Ae={},$f={},Fx;function W1(){return Fx||(Fx=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(Cn());function a(o){return o&&o.__esModule?o:{default:o}}var s={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(c){return n.default.createElement("ul",{style:{display:"block"}},c)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(c){return n.default.createElement("button",null,c+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};e.default=s}($f)),$f}var Vx;function Do(){if(Vx)return Ae;Vx=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.checkSpecKeys=Ae.checkNavigable=Ae.changeSlide=Ae.canUseDOM=Ae.canGoNext=void 0,Ae.clamp=m,Ae.extractObject=void 0,Ae.filterSettings=ue,Ae.validSettings=Ae.swipeStart=Ae.swipeMove=Ae.swipeEnd=Ae.slidesOnRight=Ae.slidesOnLeft=Ae.slideHandler=Ae.siblingDirection=Ae.safePreventDefault=Ae.lazyStartIndex=Ae.lazySlidesOnRight=Ae.lazySlidesOnLeft=Ae.lazyEndIndex=Ae.keyHandler=Ae.initializedState=Ae.getWidth=Ae.getTrackLeft=Ae.getTrackCSS=Ae.getTrackAnimateCSS=Ae.getTotalSlides=Ae.getSwipeDirection=Ae.getSlideCount=Ae.getRequiredLazySlides=Ae.getPreClones=Ae.getPostClones=Ae.getOnDemandLazySlides=Ae.getNavigableIndexes=Ae.getHeight=void 0;var e=a(Cn()),n=a(W1());function a(I){return I&&I.__esModule?I:{default:I}}function s(I){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(v){return typeof v}:function(v){return v&&typeof Symbol=="function"&&v.constructor===Symbol&&v!==Symbol.prototype?"symbol":typeof v},s(I)}function o(I,v){var O=Object.keys(I);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(I);v&&(U=U.filter(function(J){return Object.getOwnPropertyDescriptor(I,J).enumerable})),O.push.apply(O,U)}return O}function c(I){for(var v=1;v<arguments.length;v++){var O=arguments[v]!=null?arguments[v]:{};v%2?o(Object(O),!0).forEach(function(U){u(I,U,O[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(O)):o(Object(O)).forEach(function(U){Object.defineProperty(I,U,Object.getOwnPropertyDescriptor(O,U))})}return I}function u(I,v,O){return v=f(v),v in I?Object.defineProperty(I,v,{value:O,enumerable:!0,configurable:!0,writable:!0}):I[v]=O,I}function f(I){var v=h(I,"string");return s(v)=="symbol"?v:String(v)}function h(I,v){if(s(I)!="object"||!I)return I;var O=I[Symbol.toPrimitive];if(O!==void 0){var U=O.call(I,v);if(s(U)!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(v==="string"?String:Number)(I)}function m(I,v,O){return Math.max(v,Math.min(I,O))}var g=Ae.safePreventDefault=function(v){var O=["onTouchStart","onTouchMove","onWheel"];O.includes(v._reactName)||v.preventDefault()},x=Ae.getOnDemandLazySlides=function(v){for(var O=[],U=b(v),J=E(v),Q=U;Q<J;Q++)v.lazyLoadedList.indexOf(Q)<0&&O.push(Q);return O};Ae.getRequiredLazySlides=function(v){for(var O=[],U=b(v),J=E(v),Q=U;Q<J;Q++)O.push(Q);return O};var b=Ae.lazyStartIndex=function(v){return v.currentSlide-_(v)},E=Ae.lazyEndIndex=function(v){return v.currentSlide+S(v)},_=Ae.lazySlidesOnLeft=function(v){return v.centerMode?Math.floor(v.slidesToShow/2)+(parseInt(v.centerPadding)>0?1:0):0},S=Ae.lazySlidesOnRight=function(v){return v.centerMode?Math.floor((v.slidesToShow-1)/2)+1+(parseInt(v.centerPadding)>0?1:0):v.slidesToShow},A=Ae.getWidth=function(v){return v&&v.offsetWidth||0},T=Ae.getHeight=function(v){return v&&v.offsetHeight||0},C=Ae.getSwipeDirection=function(v){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U,J,Q,ne;return U=v.startX-v.curX,J=v.startY-v.curY,Q=Math.atan2(J,U),ne=Math.round(Q*180/Math.PI),ne<0&&(ne=360-Math.abs(ne)),ne<=45&&ne>=0||ne<=360&&ne>=315?"left":ne>=135&&ne<=225?"right":O===!0?ne>=35&&ne<=135?"up":"down":"vertical"},L=Ae.canGoNext=function(v){var O=!0;return v.infinite||(v.centerMode&&v.currentSlide>=v.slideCount-1||v.slideCount<=v.slidesToShow||v.currentSlide>=v.slideCount-v.slidesToShow)&&(O=!1),O};Ae.extractObject=function(v,O){var U={};return O.forEach(function(J){return U[J]=v[J]}),U},Ae.initializedState=function(v){var O=e.default.Children.count(v.children),U=v.listRef,J=Math.ceil(A(U)),Q=v.trackRef&&v.trackRef.node,ne=Math.ceil(A(Q)),ie;if(v.vertical)ie=J;else{var be=v.centerMode&&parseInt(v.centerPadding)*2;typeof v.centerPadding=="string"&&v.centerPadding.slice(-1)==="%"&&(be*=J/100),ie=Math.ceil((J-be)/v.slidesToShow)}var Se=U&&T(U.querySelector('[data-index="0"]')),Ee=Se*v.slidesToShow,Ne=v.currentSlide===void 0?v.initialSlide:v.currentSlide;v.rtl&&v.currentSlide===void 0&&(Ne=O-1-v.initialSlide);var Oe=v.lazyLoadedList||[],Le=x(c(c({},v),{},{currentSlide:Ne,lazyLoadedList:Oe}));Oe=Oe.concat(Le);var Re={slideCount:O,slideWidth:ie,listWidth:J,trackWidth:ne,currentSlide:Ne,slideHeight:Se,listHeight:Ee,lazyLoadedList:Oe};return v.autoplaying===null&&v.autoplay&&(Re.autoplaying="playing"),Re},Ae.slideHandler=function(v){var O=v.waitForAnimate,U=v.animating,J=v.fade,Q=v.infinite,ne=v.index,ie=v.slideCount,be=v.lazyLoad,Se=v.currentSlide,Ee=v.centerMode,Ne=v.slidesToScroll,Oe=v.slidesToShow,Le=v.useCSS,Re=v.lazyLoadedList;if(O&&U)return{};var k=ne,de,ce,G,Y={},te={},pe=Q?ne:m(ne,0,ie-1);if(J){if(!Q&&(ne<0||ne>=ie))return{};ne<0?k=ne+ie:ne>=ie&&(k=ne-ie),be&&Re.indexOf(k)<0&&(Re=Re.concat(k)),Y={animating:!0,currentSlide:k,lazyLoadedList:Re,targetSlide:k},te={animating:!1,targetSlide:k}}else de=k,k<0?(de=k+ie,Q?ie%Ne!==0&&(de=ie-ie%Ne):de=0):!L(v)&&k>Se?k=de=Se:Ee&&k>=ie?(k=Q?ie:ie-1,de=Q?0:ie-1):k>=ie&&(de=k-ie,Q?ie%Ne!==0&&(de=0):de=ie-Oe),!Q&&k+Oe>=ie&&(de=ie-Oe),ce=R(c(c({},v),{},{slideIndex:k})),G=R(c(c({},v),{},{slideIndex:de})),Q||(ce===G&&(k=de),ce=G),be&&(Re=Re.concat(x(c(c({},v),{},{currentSlide:k})))),Le?(Y={animating:!0,currentSlide:de,trackStyle:M(c(c({},v),{},{left:ce})),lazyLoadedList:Re,targetSlide:pe},te={animating:!1,currentSlide:de,trackStyle:H(c(c({},v),{},{left:G})),swipeLeft:null,targetSlide:pe}):Y={currentSlide:de,trackStyle:H(c(c({},v),{},{left:G})),lazyLoadedList:Re,targetSlide:pe};return{state:Y,nextState:te}},Ae.changeSlide=function(v,O){var U,J,Q,ne,ie,be=v.slidesToScroll,Se=v.slidesToShow,Ee=v.slideCount,Ne=v.currentSlide,Oe=v.targetSlide,Le=v.lazyLoad,Re=v.infinite;if(ne=Ee%be!==0,U=ne?0:(Ee-Ne)%be,O.message==="previous")Q=U===0?be:Se-U,ie=Ne-Q,Le&&!Re&&(J=Ne-Q,ie=J===-1?Ee-1:J),Re||(ie=Oe-be);else if(O.message==="next")Q=U===0?be:U,ie=Ne+Q,Le&&!Re&&(ie=(Ne+be)%Ee+U),Re||(ie=Oe+be);else if(O.message==="dots")ie=O.index*O.slidesToScroll;else if(O.message==="children"){if(ie=O.index,Re){var k=j(c(c({},v),{},{targetSlide:ie}));ie>O.currentSlide&&k==="left"?ie=ie-Ee:ie<O.currentSlide&&k==="right"&&(ie=ie+Ee)}}else O.message==="index"&&(ie=Number(O.index));return ie},Ae.keyHandler=function(v,O,U){return v.target.tagName.match("TEXTAREA|INPUT|SELECT")||!O?"":v.keyCode===37?U?"next":"previous":v.keyCode===39?U?"previous":"next":""},Ae.swipeStart=function(v,O,U){return v.target.tagName==="IMG"&&g(v),!O||!U&&v.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:v.touches?v.touches[0].pageX:v.clientX,startY:v.touches?v.touches[0].pageY:v.clientY,curX:v.touches?v.touches[0].pageX:v.clientX,curY:v.touches?v.touches[0].pageY:v.clientY}}},Ae.swipeMove=function(v,O){var U=O.scrolling,J=O.animating,Q=O.vertical,ne=O.swipeToSlide,ie=O.verticalSwiping,be=O.rtl,Se=O.currentSlide,Ee=O.edgeFriction,Ne=O.edgeDragged,Oe=O.onEdge,Le=O.swiped,Re=O.swiping,k=O.slideCount,de=O.slidesToScroll,ce=O.infinite,G=O.touchObject,Y=O.swipeEvent,te=O.listHeight,pe=O.listWidth;if(!U){if(J)return g(v);Q&&ne&&ie&&g(v);var ye,oe={},je=R(O);G.curX=v.touches?v.touches[0].pageX:v.clientX,G.curY=v.touches?v.touches[0].pageY:v.clientY,G.swipeLength=Math.round(Math.sqrt(Math.pow(G.curX-G.startX,2)));var Te=Math.round(Math.sqrt(Math.pow(G.curY-G.startY,2)));if(!ie&&!Re&&Te>10)return{scrolling:!0};ie&&(G.swipeLength=Te);var ee=(be?-1:1)*(G.curX>G.startX?1:-1);ie&&(ee=G.curY>G.startY?1:-1);var xe=Math.ceil(k/de),_e=C(O.touchObject,ie),Ce=G.swipeLength;return ce||(Se===0&&(_e==="right"||_e==="down")||Se+1>=xe&&(_e==="left"||_e==="up")||!L(O)&&(_e==="left"||_e==="up"))&&(Ce=G.swipeLength*Ee,Ne===!1&&Oe&&(Oe(_e),oe.edgeDragged=!0)),!Le&&Y&&(Y(_e),oe.swiped=!0),Q?ye=je+Ce*(te/pe)*ee:be?ye=je-Ce*ee:ye=je+Ce*ee,ie&&(ye=je+Ce*ee),oe=c(c({},oe),{},{touchObject:G,swipeLeft:ye,trackStyle:H(c(c({},O),{},{left:ye}))}),Math.abs(G.curX-G.startX)<Math.abs(G.curY-G.startY)*.8||G.swipeLength>10&&(oe.swiping=!0,g(v)),oe}},Ae.swipeEnd=function(v,O){var U=O.dragging,J=O.swipe,Q=O.touchObject,ne=O.listWidth,ie=O.touchThreshold,be=O.verticalSwiping,Se=O.listHeight,Ee=O.swipeToSlide,Ne=O.scrolling,Oe=O.onSwipe,Le=O.targetSlide,Re=O.currentSlide,k=O.infinite;if(!U)return J&&g(v),{};var de=be?Se/ie:ne/ie,ce=C(Q,be),G={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Ne||!Q.swipeLength)return G;if(Q.swipeLength>de){g(v),Oe&&Oe(ce);var Y,te,pe=k?Re:Le;switch(ce){case"left":case"up":te=pe+z(O),Y=Ee?N(O,te):te,G.currentDirection=0;break;case"right":case"down":te=pe-z(O),Y=Ee?N(O,te):te,G.currentDirection=1;break;default:Y=pe}G.triggerSlideHandler=Y}else{var ye=R(O);G.trackStyle=M(c(c({},O),{},{left:ye}))}return G};var q=Ae.getNavigableIndexes=function(v){for(var O=v.infinite?v.slideCount*2:v.slideCount,U=v.infinite?v.slidesToShow*-1:0,J=v.infinite?v.slidesToShow*-1:0,Q=[];U<O;)Q.push(U),U=J+v.slidesToScroll,J+=Math.min(v.slidesToScroll,v.slidesToShow);return Q},N=Ae.checkNavigable=function(v,O){var U=q(v),J=0;if(O>U[U.length-1])O=U[U.length-1];else for(var Q in U){if(O<U[Q]){O=J;break}J=U[Q]}return O},z=Ae.getSlideCount=function(v){var O=v.centerMode?v.slideWidth*Math.floor(v.slidesToShow/2):0;if(v.swipeToSlide){var U,J=v.listRef,Q=J.querySelectorAll&&J.querySelectorAll(".slick-slide")||[];if(Array.from(Q).every(function(be){if(v.vertical){if(be.offsetTop+T(be)/2>v.swipeLeft*-1)return U=be,!1}else if(be.offsetLeft-O+A(be)/2>v.swipeLeft*-1)return U=be,!1;return!0}),!U)return 0;var ne=v.rtl===!0?v.slideCount-v.currentSlide:v.currentSlide,ie=Math.abs(U.dataset.index-ne)||1;return ie}else return v.slidesToScroll},F=Ae.checkSpecKeys=function(v,O){return O.reduce(function(U,J){return U&&v.hasOwnProperty(J)},!0)?null:console.error("Keys Missing:",v)},H=Ae.getTrackCSS=function(v){F(v,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var O,U,J=v.slideCount+2*v.slidesToShow;v.vertical?U=J*v.slideHeight:O=V(v)*v.slideWidth;var Q={opacity:1,transition:"",WebkitTransition:""};if(v.useTransform){var ne=v.vertical?"translate3d(0px, "+v.left+"px, 0px)":"translate3d("+v.left+"px, 0px, 0px)",ie=v.vertical?"translate3d(0px, "+v.left+"px, 0px)":"translate3d("+v.left+"px, 0px, 0px)",be=v.vertical?"translateY("+v.left+"px)":"translateX("+v.left+"px)";Q=c(c({},Q),{},{WebkitTransform:ne,transform:ie,msTransform:be})}else v.vertical?Q.top=v.left:Q.left=v.left;return v.fade&&(Q={opacity:1}),O&&(Q.width=O),U&&(Q.height=U),window&&!window.addEventListener&&window.attachEvent&&(v.vertical?Q.marginTop=v.left+"px":Q.marginLeft=v.left+"px"),Q},M=Ae.getTrackAnimateCSS=function(v){F(v,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var O=H(v);return v.useTransform?(O.WebkitTransition="-webkit-transform "+v.speed+"ms "+v.cssEase,O.transition="transform "+v.speed+"ms "+v.cssEase):v.vertical?O.transition="top "+v.speed+"ms "+v.cssEase:O.transition="left "+v.speed+"ms "+v.cssEase,O},R=Ae.getTrackLeft=function(v){if(v.unslick)return 0;F(v,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var O=v.slideIndex,U=v.trackRef,J=v.infinite,Q=v.centerMode,ne=v.slideCount,ie=v.slidesToShow,be=v.slidesToScroll,Se=v.slideWidth,Ee=v.listWidth,Ne=v.variableWidth,Oe=v.slideHeight,Le=v.fade,Re=v.vertical,k=0,de,ce,G=0;if(Le||v.slideCount===1)return 0;var Y=0;if(J?(Y=-K(v),ne%be!==0&&O+be>ne&&(Y=-(O>ne?ie-(O-ne):ne%be)),Q&&(Y+=parseInt(ie/2))):(ne%be!==0&&O+be>ne&&(Y=ie-ne%be),Q&&(Y=parseInt(ie/2))),k=Y*Se,G=Y*Oe,Re?de=O*Oe*-1+G:de=O*Se*-1+k,Ne===!0){var te,pe=U&&U.node;if(te=O+K(v),ce=pe&&pe.childNodes[te],de=ce?ce.offsetLeft*-1:0,Q===!0){te=J?O+K(v):O,ce=pe&&pe.children[te],de=0;for(var ye=0;ye<te;ye++)de-=pe&&pe.children[ye]&&pe.children[ye].offsetWidth;de-=parseInt(v.centerPadding),de+=ce&&(Ee-ce.offsetWidth)/2}}return de},K=Ae.getPreClones=function(v){return v.unslick||!v.infinite?0:v.variableWidth?v.slideCount:v.slidesToShow+(v.centerMode?1:0)},P=Ae.getPostClones=function(v){return v.unslick||!v.infinite?0:v.slideCount},V=Ae.getTotalSlides=function(v){return v.slideCount===1?1:K(v)+v.slideCount+P(v)},j=Ae.siblingDirection=function(v){return v.targetSlide>v.currentSlide?v.targetSlide>v.currentSlide+Z(v)?"left":"right":v.targetSlide<v.currentSlide-W(v)?"right":"left"},Z=Ae.slidesOnRight=function(v){var O=v.slidesToShow,U=v.centerMode,J=v.rtl,Q=v.centerPadding;if(U){var ne=(O-1)/2+1;return parseInt(Q)>0&&(ne+=1),J&&O%2===0&&(ne+=1),ne}return J?0:O-1},W=Ae.slidesOnLeft=function(v){var O=v.slidesToShow,U=v.centerMode,J=v.rtl,Q=v.centerPadding;if(U){var ne=(O-1)/2+1;return parseInt(Q)>0&&(ne+=1),!J&&O%2===0&&(ne+=1),ne}return J?O-1:0};Ae.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var w=Ae.validSettings=Object.keys(n.default);function ue(I){return w.reduce(function(v,O){return I.hasOwnProperty(O)&&(v[O]=I[O]),v},{})}return Ae}var Ki={},Hx;function D_(){if(Hx)return Ki;Hx=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.Track=void 0;var e=s(Cn()),n=s(cu()),a=Do();function s(M){return M&&M.__esModule?M:{default:M}}function o(M){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},o(M)}function c(){return c=Object.assign?Object.assign.bind():function(M){for(var R=1;R<arguments.length;R++){var K=arguments[R];for(var P in K)Object.prototype.hasOwnProperty.call(K,P)&&(M[P]=K[P])}return M},c.apply(this,arguments)}function u(M,R){if(!(M instanceof R))throw new TypeError("Cannot call a class as a function")}function f(M,R){for(var K=0;K<R.length;K++){var P=R[K];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(M,L(P.key),P)}}function h(M,R,K){return R&&f(M.prototype,R),Object.defineProperty(M,"prototype",{writable:!1}),M}function m(M,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(R&&R.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),R&&g(M,R)}function g(M,R){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,V){return P.__proto__=V,P},g(M,R)}function x(M){var R=_();return function(){var P=S(M),V;if(R){var j=S(this).constructor;V=Reflect.construct(P,arguments,j)}else V=P.apply(this,arguments);return b(this,V)}}function b(M,R){if(R&&(o(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E(M)}function E(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function _(){try{var M=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_=function(){return!!M})()}function S(M){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},S(M)}function A(M,R){var K=Object.keys(M);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(M);R&&(P=P.filter(function(V){return Object.getOwnPropertyDescriptor(M,V).enumerable})),K.push.apply(K,P)}return K}function T(M){for(var R=1;R<arguments.length;R++){var K=arguments[R]!=null?arguments[R]:{};R%2?A(Object(K),!0).forEach(function(P){C(M,P,K[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(K)):A(Object(K)).forEach(function(P){Object.defineProperty(M,P,Object.getOwnPropertyDescriptor(K,P))})}return M}function C(M,R,K){return R=L(R),R in M?Object.defineProperty(M,R,{value:K,enumerable:!0,configurable:!0,writable:!0}):M[R]=K,M}function L(M){var R=q(M,"string");return o(R)=="symbol"?R:String(R)}function q(M,R){if(o(M)!="object"||!M)return M;var K=M[Symbol.toPrimitive];if(K!==void 0){var P=K.call(M,R);if(o(P)!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(M)}var N=function(R){var K,P,V,j,Z;R.rtl?Z=R.slideCount-1-R.index:Z=R.index,V=Z<0||Z>=R.slideCount,R.centerMode?(j=Math.floor(R.slidesToShow/2),P=(Z-R.currentSlide)%R.slideCount===0,Z>R.currentSlide-j-1&&Z<=R.currentSlide+j&&(K=!0)):K=R.currentSlide<=Z&&Z<R.currentSlide+R.slidesToShow;var W;R.targetSlide<0?W=R.targetSlide+R.slideCount:R.targetSlide>=R.slideCount?W=R.targetSlide-R.slideCount:W=R.targetSlide;var w=Z===W;return{"slick-slide":!0,"slick-active":K,"slick-center":P,"slick-cloned":V,"slick-current":w}},z=function(R){var K={};return(R.variableWidth===void 0||R.variableWidth===!1)&&(K.width=R.slideWidth),R.fade&&(K.position="relative",R.vertical?K.top=-R.index*parseInt(R.slideHeight):K.left=-R.index*parseInt(R.slideWidth),K.opacity=R.currentSlide===R.index?1:0,K.zIndex=R.currentSlide===R.index?999:998,R.useCSS&&(K.transition="opacity "+R.speed+"ms "+R.cssEase+", visibility "+R.speed+"ms "+R.cssEase)),K},F=function(R,K){return R.key||K},H=function(R){var K,P=[],V=[],j=[],Z=e.default.Children.count(R.children),W=(0,a.lazyStartIndex)(R),w=(0,a.lazyEndIndex)(R);return e.default.Children.forEach(R.children,function(ue,I){var v,O={message:"children",index:I,slidesToScroll:R.slidesToScroll,currentSlide:R.currentSlide};!R.lazyLoad||R.lazyLoad&&R.lazyLoadedList.indexOf(I)>=0?v=ue:v=e.default.createElement("div",null);var U=z(T(T({},R),{},{index:I})),J=v.props.className||"",Q=N(T(T({},R),{},{index:I}));if(P.push(e.default.cloneElement(v,{key:"original"+F(v,I),"data-index":I,className:(0,n.default)(Q,J),tabIndex:"-1","aria-hidden":!Q["slick-active"],style:T(T({outline:"none"},v.props.style||{}),U),onClick:function(be){v.props&&v.props.onClick&&v.props.onClick(be),R.focusOnSelect&&R.focusOnSelect(O)}})),R.infinite&&R.fade===!1){var ne=Z-I;ne<=(0,a.getPreClones)(R)&&(K=-ne,K>=W&&(v=ue),Q=N(T(T({},R),{},{index:K})),V.push(e.default.cloneElement(v,{key:"precloned"+F(v,K),"data-index":K,tabIndex:"-1",className:(0,n.default)(Q,J),"aria-hidden":!Q["slick-active"],style:T(T({},v.props.style||{}),U),onClick:function(be){v.props&&v.props.onClick&&v.props.onClick(be),R.focusOnSelect&&R.focusOnSelect(O)}}))),K=Z+I,K<w&&(v=ue),Q=N(T(T({},R),{},{index:K})),j.push(e.default.cloneElement(v,{key:"postcloned"+F(v,K),"data-index":K,tabIndex:"-1",className:(0,n.default)(Q,J),"aria-hidden":!Q["slick-active"],style:T(T({},v.props.style||{}),U),onClick:function(be){v.props&&v.props.onClick&&v.props.onClick(be),R.focusOnSelect&&R.focusOnSelect(O)}}))}}),R.rtl?V.concat(P,j).reverse():V.concat(P,j)};return Ki.Track=function(M){m(K,M);var R=x(K);function K(){var P;u(this,K);for(var V=arguments.length,j=new Array(V),Z=0;Z<V;Z++)j[Z]=arguments[Z];return P=R.call.apply(R,[this].concat(j)),C(E(P),"node",null),C(E(P),"handleRef",function(W){P.node=W}),P}return h(K,[{key:"render",value:function(){var V=H(this.props),j=this.props,Z=j.onMouseEnter,W=j.onMouseOver,w=j.onMouseLeave,ue={onMouseEnter:Z,onMouseOver:W,onMouseLeave:w};return e.default.createElement("div",c({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},ue),V)}}]),K}(e.default.PureComponent),Ki}var $i={},Ix;function M_(){if(Ix)return $i;Ix=1;function e(N){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},e(N)}Object.defineProperty($i,"__esModule",{value:!0}),$i.Dots=void 0;var n=o(Cn()),a=o(cu()),s=Do();function o(N){return N&&N.__esModule?N:{default:N}}function c(N,z){var F=Object.keys(N);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(N);z&&(H=H.filter(function(M){return Object.getOwnPropertyDescriptor(N,M).enumerable})),F.push.apply(F,H)}return F}function u(N){for(var z=1;z<arguments.length;z++){var F=arguments[z]!=null?arguments[z]:{};z%2?c(Object(F),!0).forEach(function(H){f(N,H,F[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(F)):c(Object(F)).forEach(function(H){Object.defineProperty(N,H,Object.getOwnPropertyDescriptor(F,H))})}return N}function f(N,z,F){return z=x(z),z in N?Object.defineProperty(N,z,{value:F,enumerable:!0,configurable:!0,writable:!0}):N[z]=F,N}function h(N,z){if(!(N instanceof z))throw new TypeError("Cannot call a class as a function")}function m(N,z){for(var F=0;F<z.length;F++){var H=z[F];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(N,x(H.key),H)}}function g(N,z,F){return z&&m(N.prototype,z),Object.defineProperty(N,"prototype",{writable:!1}),N}function x(N){var z=b(N,"string");return e(z)=="symbol"?z:String(z)}function b(N,z){if(e(N)!="object"||!N)return N;var F=N[Symbol.toPrimitive];if(F!==void 0){var H=F.call(N,z);if(e(H)!="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}function E(N,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(z&&z.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),z&&_(N,z)}function _(N,z){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,M){return H.__proto__=M,H},_(N,z)}function S(N){var z=C();return function(){var H=L(N),M;if(z){var R=L(this).constructor;M=Reflect.construct(H,arguments,R)}else M=H.apply(this,arguments);return A(this,M)}}function A(N,z){if(z&&(e(z)==="object"||typeof z=="function"))return z;if(z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return T(N)}function T(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function C(){try{var N=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(C=function(){return!!N})()}function L(N){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},L(N)}var q=function(z){var F;return z.infinite?F=Math.ceil(z.slideCount/z.slidesToScroll):F=Math.ceil((z.slideCount-z.slidesToShow)/z.slidesToScroll)+1,F};return $i.Dots=function(N){E(F,N);var z=S(F);function F(){return h(this,F),z.apply(this,arguments)}return g(F,[{key:"clickHandler",value:function(M,R){R.preventDefault(),this.props.clickHandler(M)}},{key:"render",value:function(){for(var M=this.props,R=M.onMouseEnter,K=M.onMouseOver,P=M.onMouseLeave,V=M.infinite,j=M.slidesToScroll,Z=M.slidesToShow,W=M.slideCount,w=M.currentSlide,ue=q({slideCount:W,slidesToScroll:j,slidesToShow:Z,infinite:V}),I={onMouseEnter:R,onMouseOver:K,onMouseLeave:P},v=[],O=0;O<ue;O++){var U=(O+1)*j-1,J=V?U:(0,s.clamp)(U,0,W-1),Q=J-(j-1),ne=V?Q:(0,s.clamp)(Q,0,W-1),ie=(0,a.default)({"slick-active":V?w>=ne&&w<=J:w===ne}),be={message:"dots",index:O,slidesToScroll:j,currentSlide:w},Se=this.clickHandler.bind(this,be);v=v.concat(n.default.createElement("li",{key:O,className:ie},n.default.cloneElement(this.props.customPaging(O),{onClick:Se})))}return n.default.cloneElement(this.props.appendDots(v),u({className:this.props.dotsClass},I))}}]),F}(n.default.PureComponent),$i}var ja={},qx;function L_(){if(qx)return ja;qx=1;function e(N){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},e(N)}Object.defineProperty(ja,"__esModule",{value:!0}),ja.PrevArrow=ja.NextArrow=void 0;var n=o(Cn()),a=o(cu()),s=Do();function o(N){return N&&N.__esModule?N:{default:N}}function c(){return c=Object.assign?Object.assign.bind():function(N){for(var z=1;z<arguments.length;z++){var F=arguments[z];for(var H in F)Object.prototype.hasOwnProperty.call(F,H)&&(N[H]=F[H])}return N},c.apply(this,arguments)}function u(N,z){var F=Object.keys(N);if(Object.getOwnPropertySymbols){var H=Object.getOwnPropertySymbols(N);z&&(H=H.filter(function(M){return Object.getOwnPropertyDescriptor(N,M).enumerable})),F.push.apply(F,H)}return F}function f(N){for(var z=1;z<arguments.length;z++){var F=arguments[z]!=null?arguments[z]:{};z%2?u(Object(F),!0).forEach(function(H){h(N,H,F[H])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(F)):u(Object(F)).forEach(function(H){Object.defineProperty(N,H,Object.getOwnPropertyDescriptor(F,H))})}return N}function h(N,z,F){return z=b(z),z in N?Object.defineProperty(N,z,{value:F,enumerable:!0,configurable:!0,writable:!0}):N[z]=F,N}function m(N,z){if(!(N instanceof z))throw new TypeError("Cannot call a class as a function")}function g(N,z){for(var F=0;F<z.length;F++){var H=z[F];H.enumerable=H.enumerable||!1,H.configurable=!0,"value"in H&&(H.writable=!0),Object.defineProperty(N,b(H.key),H)}}function x(N,z,F){return z&&g(N.prototype,z),Object.defineProperty(N,"prototype",{writable:!1}),N}function b(N){var z=E(N,"string");return e(z)=="symbol"?z:String(z)}function E(N,z){if(e(N)!="object"||!N)return N;var F=N[Symbol.toPrimitive];if(F!==void 0){var H=F.call(N,z);if(e(H)!="object")return H;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(N)}function _(N,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(z&&z.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),z&&S(N,z)}function S(N,z){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(H,M){return H.__proto__=M,H},S(N,z)}function A(N){var z=L();return function(){var H=q(N),M;if(z){var R=q(this).constructor;M=Reflect.construct(H,arguments,R)}else M=H.apply(this,arguments);return T(this,M)}}function T(N,z){if(z&&(e(z)==="object"||typeof z=="function"))return z;if(z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C(N)}function C(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function L(){try{var N=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L=function(){return!!N})()}function q(N){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},q(N)}return ja.PrevArrow=function(N){_(F,N);var z=A(F);function F(){return m(this,F),z.apply(this,arguments)}return x(F,[{key:"clickHandler",value:function(M,R){R&&R.preventDefault(),this.props.clickHandler(M,R)}},{key:"render",value:function(){var M={"slick-arrow":!0,"slick-prev":!0},R=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(M["slick-disabled"]=!0,R=null);var K={key:"0","data-role":"none",className:(0,a.default)(M),style:{display:"block"},onClick:R},P={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},V;return this.props.prevArrow?V=n.default.cloneElement(this.props.prevArrow,f(f({},K),P)):V=n.default.createElement("button",c({key:"0",type:"button"},K)," ","Previous"),V}}]),F}(n.default.PureComponent),ja.NextArrow=function(N){_(F,N);var z=A(F);function F(){return m(this,F),z.apply(this,arguments)}return x(F,[{key:"clickHandler",value:function(M,R){R&&R.preventDefault(),this.props.clickHandler(M,R)}},{key:"render",value:function(){var M={"slick-arrow":!0,"slick-next":!0},R=this.clickHandler.bind(this,{message:"next"});(0,s.canGoNext)(this.props)||(M["slick-disabled"]=!0,R=null);var K={key:"1","data-role":"none",className:(0,a.default)(M),style:{display:"block"},onClick:R},P={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},V;return this.props.nextArrow?V=n.default.cloneElement(this.props.nextArrow,f(f({},K),P)):V=n.default.createElement("button",c({key:"1",type:"button"},K)," ","Next"),V}}]),F}(n.default.PureComponent),ja}var Z1=function(){if(typeof Map<"u")return Map;function e(n,a){var s=-1;return n.some(function(o,c){return o[0]===a?(s=c,!0):!1}),s}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(a){var s=e(this.__entries__,a),o=this.__entries__[s];return o&&o[1]},n.prototype.set=function(a,s){var o=e(this.__entries__,a);~o?this.__entries__[o][1]=s:this.__entries__.push([a,s])},n.prototype.delete=function(a){var s=this.__entries__,o=e(s,a);~o&&s.splice(o,1)},n.prototype.has=function(a){return!!~e(this.__entries__,a)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(a,s){s===void 0&&(s=null);for(var o=0,c=this.__entries__;o<c.length;o++){var u=c[o];a.call(s,u[1],u[0])}},n}()}(),Bh=typeof window<"u"&&typeof document<"u"&&window.document===document,Pc=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),P_=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Pc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),z_=2;function U_(e,n){var a=!1,s=!1,o=0;function c(){a&&(a=!1,e()),s&&f()}function u(){P_(c)}function f(){var h=Date.now();if(a){if(h-o<z_)return;s=!0}else a=!0,s=!1,setTimeout(u,n);o=h}return f}var B_=20,F_=["top","right","bottom","left","width","height","size","weight"],V_=typeof MutationObserver<"u",H_=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=U_(this.refresh.bind(this),B_)}return e.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},e.prototype.removeObserver=function(n){var a=this.observers_,s=a.indexOf(n);~s&&a.splice(s,1),!a.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},e.prototype.updateObservers_=function(){var n=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return n.forEach(function(a){return a.broadcastActive()}),n.length>0},e.prototype.connect_=function(){!Bh||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),V_?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Bh||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(n){var a=n.propertyName,s=a===void 0?"":a,o=F_.some(function(c){return!!~s.indexOf(c)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),K1=function(e,n){for(var a=0,s=Object.keys(n);a<s.length;a++){var o=s[a];Object.defineProperty(e,o,{value:n[o],enumerable:!1,writable:!1,configurable:!0})}return e},Bs=function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||Pc},$1=uu(0,0,0,0);function zc(e){return parseFloat(e)||0}function Gx(e){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return n.reduce(function(s,o){var c=e["border-"+o+"-width"];return s+zc(c)},0)}function I_(e){for(var n=["top","right","bottom","left"],a={},s=0,o=n;s<o.length;s++){var c=o[s],u=e["padding-"+c];a[c]=zc(u)}return a}function q_(e){var n=e.getBBox();return uu(0,0,n.width,n.height)}function G_(e){var n=e.clientWidth,a=e.clientHeight;if(!n&&!a)return $1;var s=Bs(e).getComputedStyle(e),o=I_(s),c=o.left+o.right,u=o.top+o.bottom,f=zc(s.width),h=zc(s.height);if(s.boxSizing==="border-box"&&(Math.round(f+c)!==n&&(f-=Gx(s,"left","right")+c),Math.round(h+u)!==a&&(h-=Gx(s,"top","bottom")+u)),!X_(e)){var m=Math.round(f+c)-n,g=Math.round(h+u)-a;Math.abs(m)!==1&&(f-=m),Math.abs(g)!==1&&(h-=g)}return uu(o.left,o.top,f,h)}var Y_=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Bs(e).SVGGraphicsElement}:function(e){return e instanceof Bs(e).SVGElement&&typeof e.getBBox=="function"}}();function X_(e){return e===Bs(e).document.documentElement}function W_(e){return Bh?Y_(e)?q_(e):G_(e):$1}function Z_(e){var n=e.x,a=e.y,s=e.width,o=e.height,c=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,u=Object.create(c.prototype);return K1(u,{x:n,y:a,width:s,height:o,top:a,right:n+s,bottom:o+a,left:n}),u}function uu(e,n,a,s){return{x:e,y:n,width:a,height:s}}var K_=function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=uu(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=W_(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},e}(),$_=function(){function e(n,a){var s=Z_(a);K1(this,{target:n,contentRect:s})}return e}(),Q_=function(){function e(n,a,s){if(this.activeObservations_=[],this.observations_=new Z1,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n,this.controller_=a,this.callbackCtx_=s}return e.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof Bs(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)||(a.set(n,new K_(n)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof Bs(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)&&(a.delete(n),a.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var n=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&n.activeObservations_.push(a)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,a=this.activeObservations_.map(function(s){return new $_(s.target,s.broadcastRect())});this.callback_.call(n,a,n),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),Q1=typeof WeakMap<"u"?new WeakMap:new Z1,J1=function(){function e(n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=H_.getInstance(),s=new Q_(n,a,this);Q1.set(this,s)}return e}();["observe","unobserve","disconnect"].forEach(function(e){J1.prototype[e]=function(){var n;return(n=Q1.get(this))[e].apply(n,arguments)}});var J_=function(){return typeof Pc.ResizeObserver<"u"?Pc.ResizeObserver:J1}();const ek=Object.freeze(Object.defineProperty({__proto__:null,default:J_},Symbol.toStringTag,{value:"Module"})),tk=Gj(ek);var Yx;function nk(){if(Yx)return Zi;Yx=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.InnerSlider=void 0;var e=m(Cn()),n=m(R_()),a=m(C_()),s=m(cu()),o=Do(),c=D_(),u=M_(),f=L_(),h=m(tk);function m(V){return V&&V.__esModule?V:{default:V}}function g(V){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},g(V)}function x(){return x=Object.assign?Object.assign.bind():function(V){for(var j=1;j<arguments.length;j++){var Z=arguments[j];for(var W in Z)Object.prototype.hasOwnProperty.call(Z,W)&&(V[W]=Z[W])}return V},x.apply(this,arguments)}function b(V,j){if(V==null)return{};var Z=E(V,j),W,w;if(Object.getOwnPropertySymbols){var ue=Object.getOwnPropertySymbols(V);for(w=0;w<ue.length;w++)W=ue[w],!(j.indexOf(W)>=0)&&Object.prototype.propertyIsEnumerable.call(V,W)&&(Z[W]=V[W])}return Z}function E(V,j){if(V==null)return{};var Z={},W=Object.keys(V),w,ue;for(ue=0;ue<W.length;ue++)w=W[ue],!(j.indexOf(w)>=0)&&(Z[w]=V[w]);return Z}function _(V,j){var Z=Object.keys(V);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(V);j&&(W=W.filter(function(w){return Object.getOwnPropertyDescriptor(V,w).enumerable})),Z.push.apply(Z,W)}return Z}function S(V){for(var j=1;j<arguments.length;j++){var Z=arguments[j]!=null?arguments[j]:{};j%2?_(Object(Z),!0).forEach(function(W){R(V,W,Z[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(Z)):_(Object(Z)).forEach(function(W){Object.defineProperty(V,W,Object.getOwnPropertyDescriptor(Z,W))})}return V}function A(V,j){if(!(V instanceof j))throw new TypeError("Cannot call a class as a function")}function T(V,j){for(var Z=0;Z<j.length;Z++){var W=j[Z];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(V,K(W.key),W)}}function C(V,j,Z){return j&&T(V.prototype,j),Object.defineProperty(V,"prototype",{writable:!1}),V}function L(V,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(j&&j.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),Object.defineProperty(V,"prototype",{writable:!1}),j&&q(V,j)}function q(V,j){return q=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(W,w){return W.__proto__=w,W},q(V,j)}function N(V){var j=H();return function(){var W=M(V),w;if(j){var ue=M(this).constructor;w=Reflect.construct(W,arguments,ue)}else w=W.apply(this,arguments);return z(this,w)}}function z(V,j){if(j&&(g(j)==="object"||typeof j=="function"))return j;if(j!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(V)}function F(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}function H(){try{var V=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(H=function(){return!!V})()}function M(V){return M=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},M(V)}function R(V,j,Z){return j=K(j),j in V?Object.defineProperty(V,j,{value:Z,enumerable:!0,configurable:!0,writable:!0}):V[j]=Z,V}function K(V){var j=P(V,"string");return g(j)=="symbol"?j:String(j)}function P(V,j){if(g(V)!="object"||!V)return V;var Z=V[Symbol.toPrimitive];if(Z!==void 0){var W=Z.call(V,j);if(g(W)!="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(V)}return Zi.InnerSlider=function(V){L(Z,V);var j=N(Z);function Z(W){var w;A(this,Z),w=j.call(this,W),R(F(w),"listRefHandler",function(I){return w.list=I}),R(F(w),"trackRefHandler",function(I){return w.track=I}),R(F(w),"adaptHeight",function(){if(w.props.adaptiveHeight&&w.list){var I=w.list.querySelector('[data-index="'.concat(w.state.currentSlide,'"]'));w.list.style.height=(0,o.getHeight)(I)+"px"}}),R(F(w),"componentDidMount",function(){if(w.props.onInit&&w.props.onInit(),w.props.lazyLoad){var I=(0,o.getOnDemandLazySlides)(S(S({},w.props),w.state));I.length>0&&(w.setState(function(O){return{lazyLoadedList:O.lazyLoadedList.concat(I)}}),w.props.onLazyLoad&&w.props.onLazyLoad(I))}var v=S({listRef:w.list,trackRef:w.track},w.props);w.updateState(v,!0,function(){w.adaptHeight(),w.props.autoplay&&w.autoPlay("update")}),w.props.lazyLoad==="progressive"&&(w.lazyLoadTimer=setInterval(w.progressiveLazyLoad,1e3)),w.ro=new h.default(function(){w.state.animating?(w.onWindowResized(!1),w.callbackTimers.push(setTimeout(function(){return w.onWindowResized()},w.props.speed))):w.onWindowResized()}),w.ro.observe(w.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(O){O.onfocus=w.props.pauseOnFocus?w.onSlideFocus:null,O.onblur=w.props.pauseOnFocus?w.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",w.onWindowResized):window.attachEvent("onresize",w.onWindowResized)}),R(F(w),"componentWillUnmount",function(){w.animationEndCallback&&clearTimeout(w.animationEndCallback),w.lazyLoadTimer&&clearInterval(w.lazyLoadTimer),w.callbackTimers.length&&(w.callbackTimers.forEach(function(I){return clearTimeout(I)}),w.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",w.onWindowResized):window.detachEvent("onresize",w.onWindowResized),w.autoplayTimer&&clearInterval(w.autoplayTimer),w.ro.disconnect()}),R(F(w),"componentDidUpdate",function(I){if(w.checkImagesLoad(),w.props.onReInit&&w.props.onReInit(),w.props.lazyLoad){var v=(0,o.getOnDemandLazySlides)(S(S({},w.props),w.state));v.length>0&&(w.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(v)}}),w.props.onLazyLoad&&w.props.onLazyLoad(v))}w.adaptHeight();var O=S(S({listRef:w.list,trackRef:w.track},w.props),w.state),U=w.didPropsChange(I);U&&w.updateState(O,U,function(){w.state.currentSlide>=e.default.Children.count(w.props.children)&&w.changeSlide({message:"index",index:e.default.Children.count(w.props.children)-w.props.slidesToShow,currentSlide:w.state.currentSlide}),w.props.autoplay?w.autoPlay("update"):w.pause("paused")})}),R(F(w),"onWindowResized",function(I){w.debouncedResize&&w.debouncedResize.cancel(),w.debouncedResize=(0,a.default)(function(){return w.resizeWindow(I)},50),w.debouncedResize()}),R(F(w),"resizeWindow",function(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,v=!!(w.track&&w.track.node);if(v){var O=S(S({listRef:w.list,trackRef:w.track},w.props),w.state);w.updateState(O,I,function(){w.props.autoplay?w.autoPlay("update"):w.pause("paused")}),w.setState({animating:!1}),clearTimeout(w.animationEndCallback),delete w.animationEndCallback}}),R(F(w),"updateState",function(I,v,O){var U=(0,o.initializedState)(I);I=S(S(S({},I),U),{},{slideIndex:U.currentSlide});var J=(0,o.getTrackLeft)(I);I=S(S({},I),{},{left:J});var Q=(0,o.getTrackCSS)(I);(v||e.default.Children.count(w.props.children)!==e.default.Children.count(I.children))&&(U.trackStyle=Q),w.setState(U,O)}),R(F(w),"ssrInit",function(){if(w.props.variableWidth){var I=0,v=0,O=[],U=(0,o.getPreClones)(S(S(S({},w.props),w.state),{},{slideCount:w.props.children.length})),J=(0,o.getPostClones)(S(S(S({},w.props),w.state),{},{slideCount:w.props.children.length}));w.props.children.forEach(function(ce){O.push(ce.props.style.width),I+=ce.props.style.width});for(var Q=0;Q<U;Q++)v+=O[O.length-1-Q],I+=O[O.length-1-Q];for(var ne=0;ne<J;ne++)I+=O[ne];for(var ie=0;ie<w.state.currentSlide;ie++)v+=O[ie];var be={width:I+"px",left:-v+"px"};if(w.props.centerMode){var Se="".concat(O[w.state.currentSlide],"px");be.left="calc(".concat(be.left," + (100% - ").concat(Se,") / 2 ) ")}return{trackStyle:be}}var Ee=e.default.Children.count(w.props.children),Ne=S(S(S({},w.props),w.state),{},{slideCount:Ee}),Oe=(0,o.getPreClones)(Ne)+(0,o.getPostClones)(Ne)+Ee,Le=100/w.props.slidesToShow*Oe,Re=100/Oe,k=-Re*((0,o.getPreClones)(Ne)+w.state.currentSlide)*Le/100;w.props.centerMode&&(k+=(100-Re*Le/100)/2);var de={width:Le+"%",left:k+"%"};return{slideWidth:Re+"%",trackStyle:de}}),R(F(w),"checkImagesLoad",function(){var I=w.list&&w.list.querySelectorAll&&w.list.querySelectorAll(".slick-slide img")||[],v=I.length,O=0;Array.prototype.forEach.call(I,function(U){var J=function(){return++O&&O>=v&&w.onWindowResized()};if(!U.onclick)U.onclick=function(){return U.parentNode.focus()};else{var Q=U.onclick;U.onclick=function(ne){Q(ne),U.parentNode.focus()}}U.onload||(w.props.lazyLoad?U.onload=function(){w.adaptHeight(),w.callbackTimers.push(setTimeout(w.onWindowResized,w.props.speed))}:(U.onload=J,U.onerror=function(){J(),w.props.onLazyLoadError&&w.props.onLazyLoadError()}))})}),R(F(w),"progressiveLazyLoad",function(){for(var I=[],v=S(S({},w.props),w.state),O=w.state.currentSlide;O<w.state.slideCount+(0,o.getPostClones)(v);O++)if(w.state.lazyLoadedList.indexOf(O)<0){I.push(O);break}for(var U=w.state.currentSlide-1;U>=-(0,o.getPreClones)(v);U--)if(w.state.lazyLoadedList.indexOf(U)<0){I.push(U);break}I.length>0?(w.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(I)}}),w.props.onLazyLoad&&w.props.onLazyLoad(I)):w.lazyLoadTimer&&(clearInterval(w.lazyLoadTimer),delete w.lazyLoadTimer)}),R(F(w),"slideHandler",function(I){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=w.props,U=O.asNavFor,J=O.beforeChange,Q=O.onLazyLoad,ne=O.speed,ie=O.afterChange,be=w.state.currentSlide,Se=(0,o.slideHandler)(S(S(S({index:I},w.props),w.state),{},{trackRef:w.track,useCSS:w.props.useCSS&&!v})),Ee=Se.state,Ne=Se.nextState;if(Ee){J&&J(be,Ee.currentSlide);var Oe=Ee.lazyLoadedList.filter(function(Le){return w.state.lazyLoadedList.indexOf(Le)<0});Q&&Oe.length>0&&Q(Oe),!w.props.waitForAnimate&&w.animationEndCallback&&(clearTimeout(w.animationEndCallback),ie&&ie(be),delete w.animationEndCallback),w.setState(Ee,function(){U&&w.asNavForIndex!==I&&(w.asNavForIndex=I,U.innerSlider.slideHandler(I)),Ne&&(w.animationEndCallback=setTimeout(function(){var Le=Ne.animating,Re=b(Ne,["animating"]);w.setState(Re,function(){w.callbackTimers.push(setTimeout(function(){return w.setState({animating:Le})},10)),ie&&ie(Ee.currentSlide),delete w.animationEndCallback})},ne))})}}),R(F(w),"changeSlide",function(I){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=S(S({},w.props),w.state),U=(0,o.changeSlide)(O,I);if(!(U!==0&&!U)&&(v===!0?w.slideHandler(U,v):w.slideHandler(U),w.props.autoplay&&w.autoPlay("update"),w.props.focusOnSelect)){var J=w.list.querySelectorAll(".slick-current");J[0]&&J[0].focus()}}),R(F(w),"clickHandler",function(I){w.clickable===!1&&(I.stopPropagation(),I.preventDefault()),w.clickable=!0}),R(F(w),"keyHandler",function(I){var v=(0,o.keyHandler)(I,w.props.accessibility,w.props.rtl);v!==""&&w.changeSlide({message:v})}),R(F(w),"selectHandler",function(I){w.changeSlide(I)}),R(F(w),"disableBodyScroll",function(){var I=function(O){O=O||window.event,O.preventDefault&&O.preventDefault(),O.returnValue=!1};window.ontouchmove=I}),R(F(w),"enableBodyScroll",function(){window.ontouchmove=null}),R(F(w),"swipeStart",function(I){w.props.verticalSwiping&&w.disableBodyScroll();var v=(0,o.swipeStart)(I,w.props.swipe,w.props.draggable);v!==""&&w.setState(v)}),R(F(w),"swipeMove",function(I){var v=(0,o.swipeMove)(I,S(S(S({},w.props),w.state),{},{trackRef:w.track,listRef:w.list,slideIndex:w.state.currentSlide}));v&&(v.swiping&&(w.clickable=!1),w.setState(v))}),R(F(w),"swipeEnd",function(I){var v=(0,o.swipeEnd)(I,S(S(S({},w.props),w.state),{},{trackRef:w.track,listRef:w.list,slideIndex:w.state.currentSlide}));if(v){var O=v.triggerSlideHandler;delete v.triggerSlideHandler,w.setState(v),O!==void 0&&(w.slideHandler(O),w.props.verticalSwiping&&w.enableBodyScroll())}}),R(F(w),"touchEnd",function(I){w.swipeEnd(I),w.clickable=!0}),R(F(w),"slickPrev",function(){w.callbackTimers.push(setTimeout(function(){return w.changeSlide({message:"previous"})},0))}),R(F(w),"slickNext",function(){w.callbackTimers.push(setTimeout(function(){return w.changeSlide({message:"next"})},0))}),R(F(w),"slickGoTo",function(I){var v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(I=Number(I),isNaN(I))return"";w.callbackTimers.push(setTimeout(function(){return w.changeSlide({message:"index",index:I,currentSlide:w.state.currentSlide},v)},0))}),R(F(w),"play",function(){var I;if(w.props.rtl)I=w.state.currentSlide-w.props.slidesToScroll;else if((0,o.canGoNext)(S(S({},w.props),w.state)))I=w.state.currentSlide+w.props.slidesToScroll;else return!1;w.slideHandler(I)}),R(F(w),"autoPlay",function(I){w.autoplayTimer&&clearInterval(w.autoplayTimer);var v=w.state.autoplaying;if(I==="update"){if(v==="hovered"||v==="focused"||v==="paused")return}else if(I==="leave"){if(v==="paused"||v==="focused")return}else if(I==="blur"&&(v==="paused"||v==="hovered"))return;w.autoplayTimer=setInterval(w.play,w.props.autoplaySpeed+50),w.setState({autoplaying:"playing"})}),R(F(w),"pause",function(I){w.autoplayTimer&&(clearInterval(w.autoplayTimer),w.autoplayTimer=null);var v=w.state.autoplaying;I==="paused"?w.setState({autoplaying:"paused"}):I==="focused"?(v==="hovered"||v==="playing")&&w.setState({autoplaying:"focused"}):v==="playing"&&w.setState({autoplaying:"hovered"})}),R(F(w),"onDotsOver",function(){return w.props.autoplay&&w.pause("hovered")}),R(F(w),"onDotsLeave",function(){return w.props.autoplay&&w.state.autoplaying==="hovered"&&w.autoPlay("leave")}),R(F(w),"onTrackOver",function(){return w.props.autoplay&&w.pause("hovered")}),R(F(w),"onTrackLeave",function(){return w.props.autoplay&&w.state.autoplaying==="hovered"&&w.autoPlay("leave")}),R(F(w),"onSlideFocus",function(){return w.props.autoplay&&w.pause("focused")}),R(F(w),"onSlideBlur",function(){return w.props.autoplay&&w.state.autoplaying==="focused"&&w.autoPlay("blur")}),R(F(w),"render",function(){var I=(0,s.default)("slick-slider",w.props.className,{"slick-vertical":w.props.vertical,"slick-initialized":!0}),v=S(S({},w.props),w.state),O=(0,o.extractObject)(v,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),U=w.props.pauseOnHover;O=S(S({},O),{},{onMouseEnter:U?w.onTrackOver:null,onMouseLeave:U?w.onTrackLeave:null,onMouseOver:U?w.onTrackOver:null,focusOnSelect:w.props.focusOnSelect&&w.clickable?w.selectHandler:null});var J;if(w.props.dots===!0&&w.state.slideCount>=w.props.slidesToShow){var Q=(0,o.extractObject)(v,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),ne=w.props.pauseOnDotsHover;Q=S(S({},Q),{},{clickHandler:w.changeSlide,onMouseEnter:ne?w.onDotsLeave:null,onMouseOver:ne?w.onDotsOver:null,onMouseLeave:ne?w.onDotsLeave:null}),J=e.default.createElement(u.Dots,Q)}var ie,be,Se=(0,o.extractObject)(v,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Se.clickHandler=w.changeSlide,w.props.arrows&&(ie=e.default.createElement(f.PrevArrow,Se),be=e.default.createElement(f.NextArrow,Se));var Ee=null;w.props.vertical&&(Ee={height:w.state.listHeight});var Ne=null;w.props.vertical===!1?w.props.centerMode===!0&&(Ne={padding:"0px "+w.props.centerPadding}):w.props.centerMode===!0&&(Ne={padding:w.props.centerPadding+" 0px"});var Oe=S(S({},Ee),Ne),Le=w.props.touchMove,Re={className:"slick-list",style:Oe,onClick:w.clickHandler,onMouseDown:Le?w.swipeStart:null,onMouseMove:w.state.dragging&&Le?w.swipeMove:null,onMouseUp:Le?w.swipeEnd:null,onMouseLeave:w.state.dragging&&Le?w.swipeEnd:null,onTouchStart:Le?w.swipeStart:null,onTouchMove:w.state.dragging&&Le?w.swipeMove:null,onTouchEnd:Le?w.touchEnd:null,onTouchCancel:w.state.dragging&&Le?w.swipeEnd:null,onKeyDown:w.props.accessibility?w.keyHandler:null},k={className:I,dir:"ltr",style:w.props.style};return w.props.unslick&&(Re={className:"slick-list"},k={className:I}),e.default.createElement("div",k,w.props.unslick?"":ie,e.default.createElement("div",x({ref:w.listRefHandler},Re),e.default.createElement(c.Track,x({ref:w.trackRefHandler},O),w.props.children)),w.props.unslick?"":be,w.props.unslick?"":J)}),w.list=null,w.track=null,w.state=S(S({},n.default),{},{currentSlide:w.props.initialSlide,targetSlide:w.props.initialSlide?w.props.initialSlide:0,slideCount:e.default.Children.count(w.props.children)}),w.callbackTimers=[],w.clickable=!0,w.debouncedResize=null;var ue=w.ssrInit();return w.state=S(S({},w.state),ue),w}return C(Z,[{key:"didPropsChange",value:function(w){for(var ue=!1,I=0,v=Object.keys(this.props);I<v.length;I++){var O=v[I];if(!w.hasOwnProperty(O)){ue=!0;break}if(!(g(w[O])==="object"||typeof w[O]=="function"||isNaN(w[O]))&&w[O]!==this.props[O]){ue=!0;break}}return ue||e.default.Children.count(this.props.children)!==e.default.Children.count(w.children)}}]),Z}(e.default.Component),Zi}var Qf,Xx;function rk(){if(Xx)return Qf;Xx=1;var e=function(n){return n.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}).toLowerCase()};return Qf=e,Qf}var Jf,Wx;function ak(){if(Wx)return Jf;Wx=1;var e=rk(),n=function(o){var c=/[height|width]$/;return c.test(o)},a=function(o){var c="",u=Object.keys(o);return u.forEach(function(f,h){var m=o[f];f=e(f),n(f)&&typeof m=="number"&&(m=m+"px"),m===!0?c+=f:m===!1?c+="not "+f:c+="("+f+": "+m+")",h<u.length-1&&(c+=" and ")}),c},s=function(o){var c="";return typeof o=="string"?o:o instanceof Array?(o.forEach(function(u,f){c+=a(u),f<o.length-1&&(c+=", ")}),c):a(o)};return Jf=s,Jf}var eh,Zx;function sk(){if(Zx)return eh;Zx=1;function e(n){this.options=n,!n.deferSetup&&this.setup()}return e.prototype={constructor:e,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(n){return this.options===n||this.options.match===n}},eh=e,eh}var th,Kx;function ew(){if(Kx)return th;Kx=1;function e(s,o){var c=0,u=s.length,f;for(c;c<u&&(f=o(s[c],c),f!==!1);c++);}function n(s){return Object.prototype.toString.apply(s)==="[object Array]"}function a(s){return typeof s=="function"}return th={isFunction:a,isArray:n,each:e},th}var nh,$x;function ik(){if($x)return nh;$x=1;var e=sk(),n=ew().each;function a(s,o){this.query=s,this.isUnconditional=o,this.handlers=[],this.mql=window.matchMedia(s);var c=this;this.listener=function(u){c.mql=u.currentTarget||u,c.assess()},this.mql.addListener(this.listener)}return a.prototype={constuctor:a,addHandler:function(s){var o=new e(s);this.handlers.push(o),this.matches()&&o.on()},removeHandler:function(s){var o=this.handlers;n(o,function(c,u){if(c.equals(s))return c.destroy(),!o.splice(u,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){n(this.handlers,function(s){s.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var s=this.matches()?"on":"off";n(this.handlers,function(o){o[s]()})}},nh=a,nh}var rh,Qx;function ok(){if(Qx)return rh;Qx=1;var e=ik(),n=ew(),a=n.each,s=n.isFunction,o=n.isArray;function c(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return c.prototype={constructor:c,register:function(u,f,h){var m=this.queries,g=h&&this.browserIsIncapable;return m[u]||(m[u]=new e(u,g)),s(f)&&(f={match:f}),o(f)||(f=[f]),a(f,function(x){s(x)&&(x={match:x}),m[u].addHandler(x)}),this},unregister:function(u,f){var h=this.queries[u];return h&&(f?h.removeHandler(f):(h.clear(),delete this.queries[u])),this}},rh=c,rh}var ah,Jx;function lk(){if(Jx)return ah;Jx=1;var e=ok();return ah=new e,ah}var ev;function ck(){return ev||(ev=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=u(Cn()),a=nk(),s=u(ak()),o=u(W1()),c=Do();function u(M){return M&&M.__esModule?M:{default:M}}function f(M){"@babel/helpers - typeof";return f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(R){return typeof R}:function(R){return R&&typeof Symbol=="function"&&R.constructor===Symbol&&R!==Symbol.prototype?"symbol":typeof R},f(M)}function h(){return h=Object.assign?Object.assign.bind():function(M){for(var R=1;R<arguments.length;R++){var K=arguments[R];for(var P in K)Object.prototype.hasOwnProperty.call(K,P)&&(M[P]=K[P])}return M},h.apply(this,arguments)}function m(M,R){var K=Object.keys(M);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(M);R&&(P=P.filter(function(V){return Object.getOwnPropertyDescriptor(M,V).enumerable})),K.push.apply(K,P)}return K}function g(M){for(var R=1;R<arguments.length;R++){var K=arguments[R]!=null?arguments[R]:{};R%2?m(Object(K),!0).forEach(function(P){N(M,P,K[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(K)):m(Object(K)).forEach(function(P){Object.defineProperty(M,P,Object.getOwnPropertyDescriptor(K,P))})}return M}function x(M,R){if(!(M instanceof R))throw new TypeError("Cannot call a class as a function")}function b(M,R){for(var K=0;K<R.length;K++){var P=R[K];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(M,z(P.key),P)}}function E(M,R,K){return R&&b(M.prototype,R),Object.defineProperty(M,"prototype",{writable:!1}),M}function _(M,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");M.prototype=Object.create(R&&R.prototype,{constructor:{value:M,writable:!0,configurable:!0}}),Object.defineProperty(M,"prototype",{writable:!1}),R&&S(M,R)}function S(M,R){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(P,V){return P.__proto__=V,P},S(M,R)}function A(M){var R=L();return function(){var P=q(M),V;if(R){var j=q(this).constructor;V=Reflect.construct(P,arguments,j)}else V=P.apply(this,arguments);return T(this,V)}}function T(M,R){if(R&&(f(R)==="object"||typeof R=="function"))return R;if(R!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return C(M)}function C(M){if(M===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return M}function L(){try{var M=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L=function(){return!!M})()}function q(M){return q=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(K){return K.__proto__||Object.getPrototypeOf(K)},q(M)}function N(M,R,K){return R=z(R),R in M?Object.defineProperty(M,R,{value:K,enumerable:!0,configurable:!0,writable:!0}):M[R]=K,M}function z(M){var R=F(M,"string");return f(R)=="symbol"?R:String(R)}function F(M,R){if(f(M)!="object"||!M)return M;var K=M[Symbol.toPrimitive];if(K!==void 0){var P=K.call(M,R);if(f(P)!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(M)}var H=(0,c.canUseDOM)()&&lk();e.default=function(M){_(K,M);var R=A(K);function K(P){var V;return x(this,K),V=R.call(this,P),N(C(V),"innerSliderRefHandler",function(j){return V.innerSlider=j}),N(C(V),"slickPrev",function(){return V.innerSlider.slickPrev()}),N(C(V),"slickNext",function(){return V.innerSlider.slickNext()}),N(C(V),"slickGoTo",function(j){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return V.innerSlider.slickGoTo(j,Z)}),N(C(V),"slickPause",function(){return V.innerSlider.pause("paused")}),N(C(V),"slickPlay",function(){return V.innerSlider.autoPlay("play")}),V.state={breakpoint:null},V._responsiveMediaHandlers=[],V}return E(K,[{key:"media",value:function(V,j){H.register(V,j),this._responsiveMediaHandlers.push({query:V,handler:j})}},{key:"componentDidMount",value:function(){var V=this;if(this.props.responsive){var j=this.props.responsive.map(function(W){return W.breakpoint});j.sort(function(W,w){return W-w}),j.forEach(function(W,w){var ue;w===0?ue=(0,s.default)({minWidth:0,maxWidth:W}):ue=(0,s.default)({minWidth:j[w-1]+1,maxWidth:W}),(0,c.canUseDOM)()&&V.media(ue,function(){V.setState({breakpoint:W})})});var Z=(0,s.default)({minWidth:j.slice(-1)[0]});(0,c.canUseDOM)()&&this.media(Z,function(){V.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(V){H.unregister(V.query,V.handler)})}},{key:"render",value:function(){var V=this,j,Z;this.state.breakpoint?(Z=this.props.responsive.filter(function(ne){return ne.breakpoint===V.state.breakpoint}),j=Z[0].settings==="unslick"?"unslick":g(g(g({},o.default),this.props),Z[0].settings)):j=g(g({},o.default),this.props),j.centerMode&&(j.slidesToScroll>1,j.slidesToScroll=1),j.fade&&(j.slidesToShow>1,j.slidesToScroll>1,j.slidesToShow=1,j.slidesToScroll=1);var W=n.default.Children.toArray(this.props.children);W=W.filter(function(ne){return typeof ne=="string"?!!ne.trim():!!ne}),j.variableWidth&&(j.rows>1||j.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),j.variableWidth=!1);for(var w=[],ue=null,I=0;I<W.length;I+=j.rows*j.slidesPerRow){for(var v=[],O=I;O<I+j.rows*j.slidesPerRow;O+=j.slidesPerRow){for(var U=[],J=O;J<O+j.slidesPerRow&&(j.variableWidth&&W[J].props.style&&(ue=W[J].props.style.width),!(J>=W.length));J+=1)U.push(n.default.cloneElement(W[J],{key:100*I+10*O+J,tabIndex:-1,style:{width:"".concat(100/j.slidesPerRow,"%"),display:"inline-block"}}));v.push(n.default.createElement("div",{key:10*I+O},U))}j.variableWidth?w.push(n.default.createElement("div",{key:I,style:{width:ue}},v)):w.push(n.default.createElement("div",{key:I},v))}if(j==="unslick"){var Q="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:Q},W)}else w.length<=j.slidesToShow&&!j.infinite&&(j.unslick=!0);return n.default.createElement(a.InnerSlider,h({style:this.props.style,ref:this.innerSliderRefHandler},(0,c.filterSettings)(j)),w)}}]),K}(n.default.Component)}(Xf)),Xf}var tv;function uk(){return tv||(tv=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(ck());function a(s){return s&&s.__esModule?s:{default:s}}e.default=n.default}(Yf)),Yf}var dk=uk();const fk=Ic(dk),hk=[{name:"Sarah Harvey",review:"Cabsy commitment to excellence is evident, prioritize customer satisfaction, making them the best choice for reliable and enjoyable rides.",rating:4.5},{name:"James Wright",review:"The drivers are always punctual and polite. The app is intuitive and booking is seamless. I never have to worry about my daily commute anymore!",rating:5},{name:"Emily Johnson",review:"Great service every time! I love how clean the vehicles are and how safe I feel. Definitely recommend AAAO GO to friends.",rating:4},{name:"Amir Qureshi",review:"Fantastic experience! The driver was professional and arrived on time. The whole journey was smooth and safe.",rating:5},{name:"Linda Carter",review:"Highly impressed with the service quality. From booking to drop-off, the whole process was fast and reliable.",rating:4.5}],mk=[{title:"Regional Rides",description:"Smooth and reliable rides within your city – whenever, wherever.",Image:v_},{title:"City Connectors",description:"Connecting cities with affordable, comfortable, and safe travel.",Image:b_},{title:"Car Recoveries",description:"Stuck on the road? We recover your car quickly and safely.",Image:w_},{title:"Courier Delivery",description:"Fast, secure, and on-time courier delivery across your city.",Image:S_},{title:"Shifting Movers (Home & Office Shifting)",description:"Hassle-free home and office shifting, handled with care.",Image:j_},{title:"Tourism Discovery",description:"Discover breathtaking destinations with guided local travel.",Image:E_}],nv=[{title:"Airport Transfers",description:"Swift rides to or from the airport – on time, every time",icon:"🛫"},{title:"Hourly Rentals",description:"Ride on your time. Rent by the hour with full flexibility.",icon:"⏱️"},{title:"Ride-Sharing",description:"Split the ride, save the cost—go greener together.",icon:"👥"},{title:"Move Your Car (Car Recovery)",description:"Stranded? We'll move your car—fast, safe, and reliable.",icon:"🚗"},{title:"Package Delivery",description:"From parcels to full house moves—labour, fixer, and vehicle included.",icon:"📦"},{title:"Custom Delivery",description:"Sed adipisci velit, sed quia non numquam eius modi tempora",icon:"📨"},{title:"Scheduled Rides",description:"Plan ahead. Book now, ride later—your time, your way.",icon:"📅"},{title:"Corporate Accounts",description:"Business travel made easy with centralized billing & control.",icon:"💳"}],pk=()=>{const e={dots:!1,infinite:!0,speed:600,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:3e3,arrows:!1},[n,a]=V1({triggerOnce:!0,threshold:.3});let s=[],o=0,c=[3,2,3],u=0;for(;o<nv.length;){const m=c[u%c.length];s.push(nv.slice(o,o+m)),o+=m,u++}const f=[{name:"brochure.pdf",file:__},{name:"document1.pdf",file:k_},{name:"guide.pdf",file:O_}],h=async()=>{try{const m=new u_;for(const x of f){const E=await(await fetch(x.file)).blob();m.file(x.name,E)}const g=await m.generateAsync({type:"blob"});h_.saveAs(g,"assets_pdfs.zip")}catch(m){console.error("Error downloading PDFs:",m),alert("Failed to download PDFs. Please try again.")}};return d.jsxs("div",{className:"bg-white p-5 dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300",children:[d.jsxs("div",{className:"relative mt-20 w-[95%] my-7 rounded-3xl mx-auto h-[120vh] max-lg:h-auto max-lg:py-10 max-lg:px-2 max-lg:gap-10 bg-cover bg-center flex flex-row-reverse max-lg:flex-col-reverse items-center justify-center",style:{backgroundImage:`url(${m_})`},children:[d.jsx("div",{className:"absolute inset-0 bg-black opacity-50 rounded-3xl"}),d.jsxs("div",{className:"relative z-10 w-[60%] max-lg:w-[100%] text-white text-center px-4 max-w-4xl",children:[d.jsx("div",{className:"inline-block bg-white dark:bg-gray-800 text-gray-900 dark:text-white text-md px-8 py-2 rounded-full mb-4",children:"The Perfect Ride Awaits"}),d.jsx("h1",{className:"text-[2.5rem] font-semibold mb-4",children:"AAAO GO – WHEREVER YOU GO"}),d.jsx("p",{className:"text-lg md:text-xl mb-6",children:"A revolutionary ride-hailing platform designed for drivers, customers, and service providers. We are building not just a business, but a community that grows together."}),d.jsxs("div",{className:"flex justify-center gap-4",children:[d.jsx("button",{className:"bg-[#319A64] hover:bg-green-700 dark:hover:bg-green-700 text-white px-6 py-3 rounded-lg text-lg font-semibold",children:"Download App"}),d.jsxs("button",{onClick:h,className:"bg-[#319A64] hover:bg-green-800 dark:hover:bg-green-800 text-white flex gap-2 items-center px-6 py-3 rounded-lg text-lg font-semibold",children:[d.jsx(ZN,{})," Download PDFs"]})]})]}),d.jsx("div",{className:"flex gap-4 w-[30%] max-lg:w-[70%] z-10",children:d.jsx("img",{src:p_,alt:"Phone 1",className:"w-full rounded-xl shadow-lg"})})]}),d.jsxs("div",{className:"px-4 relative py-12 max-lg:py-6 mb-20 max-lg:mb-0 max-w-7xl mx-auto flex flex-col md:flex-row items-center justify-between",children:[d.jsxs("div",{className:"w-[45%] max-lg:w-[100%]",children:[d.jsx("h2",{className:"text-5xl font-bold text-[#0B996F] mb-4 max-lg:text-4xl",children:"Who We Are?"}),d.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-10",children:"Driven by Purpose—Powered by People"}),d.jsxs("div",{className:"mb-10 pl-5",children:[d.jsxs("p",{className:"text-xl font-semibold flex items-center gap-2",children:["🚀 ",d.jsx("span",{className:"text-[#555D55] dark:text-gray-200 text-xl font-bold",children:"Our Mission :"})]}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"To revolutionize transportation by putting fairness, transparency, and driver empowerment at the heart of everything we do."})]}),d.jsxs("div",{className:"mb-10 pl-5",children:[d.jsxs("p",{className:"text-xl font-semibold flex items-center gap-2",children:["🔄 ",d.jsx("span",{className:"text-[#555D55] dark:text-gray-200 text-xl font-bold",children:"More Than Just Rides:"})]}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"We offer ride-hailing, car recovery services, and will expand into mobility support and lifestyle logistics — all under one unified platform."})]}),d.jsxs("div",{className:"mb-10 pl-5 max-lg:mb-0",children:[d.jsxs("p",{className:"text-xl font-semibold flex items-center gap-2",children:["🤝 ",d.jsx("span",{className:"text-[#555D55] dark:text-gray-200 text-xl font-bold",children:"A Community-First Approach:"})]}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"Built under the I AM AAO empire, AAO Go is committed to creating a profitable, people-centered ecosystem where every rider, driver, and user can grow and thrive together."})]}),d.jsxs("div",{className:"mb-10 pl-5 max-lg:mb-0",children:[d.jsxs("p",{className:"text-xl font-semibold flex items-center gap-2",children:["🧭 ",d.jsx("span",{className:"text-[#555D55] dark:text-gray-200 text-xl font-bold",children:"Our Movement :"})]}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"AAAO Go is more than just a ride-hailing app—it’s a movement toward freedom, fairness, and future-forward innovation."})]})]}),d.jsx("img",{src:x_,alt:"",className:"w-[20%] absolute left-[45%] right-0 -bottom-14 max-lg:hidden"}),d.jsx("div",{className:"w-[45%] flex justify-center mt-10 max-lg:w-[100%]",children:d.jsx("img",{src:g_,alt:"Driver and woman",className:"rounded-2xl w-full object-cover"})})]}),d.jsxs("div",{className:"max-w-7xl mx-auto px-4 relative mb-32 max-lg:mb-0 py-12 flex flex-col-reverse md:flex-row items-center gap-10",children:[d.jsx("div",{className:"w-[50%] max-lg:w-[100%]",children:d.jsx("img",{src:y_,alt:"Driver with customer",className:"rounded-3xl w-full object-cover"})}),d.jsxs("div",{className:"w-[50%] max-lg:w-[100%]",children:[d.jsx("h2",{className:"text-5xl font-bold max-lg:text-4xl text-[#0B996F] mb-4",children:"The Future We See"}),d.jsxs("ul",{className:"space-y-3 mb-6 text-gray-700 dark:text-gray-300",children:[d.jsxs("li",{className:"flex items-start gap-2",children:[d.jsx(Ms,{className:"text-[#0B996F] mt-1"}),"A global ride-hailing network that empowers drivers & customers."]}),d.jsxs("li",{className:"flex items-start gap-2",children:[d.jsx(Ms,{className:"text-[#0B996F] mt-1"}),"Creating financial freedom and opportunities."]}),d.jsxs("li",{className:"flex items-start gap-2",children:[d.jsx(Ms,{className:"text-[#0B996F] mt-1"}),"Sustainable & innovative mobility solutions."]})]}),d.jsxs("p",{className:"mb-6",children:[d.jsx("span",{className:"font-bold",children:"Our vision is simple"})," – to build a ride-hailing platform where drivers earn fairly, customers enjoy reliable services, and communities thrive through innovation."]}),d.jsxs("div",{className:"flex items-start gap-3 p-2 rounded-lg",children:[d.jsx("div",{className:"bg-green-200 dark:bg-green-800 p-3 rounded-full",children:d.jsx(B1,{className:"text-[#0B996F] text-2xl"})}),d.jsxs("div",{children:[d.jsx("p",{className:"font-bold text-[#0B996F] text-lg",children:"Safety Measures"}),d.jsx("p",{className:"text-gray-600 dark:text-gray-300 text-sm",children:"Verified drivers, real-time tracking & No Male Companion rides for ladies and families – your peace of mind comes first."})]})]})]}),d.jsx("img",{src:H1,alt:"",className:"absolute max-lg:hidden left-[22%] w-[40%] -bottom-28"})]}),d.jsxs("div",{ref:n,className:"bg-[#e8f9f1] dark:bg-gray-800 text-center py-16 px-4 mb-12 max-lg:py-8",children:[d.jsxs("h2",{className:"text-5xl font-bold max-lg:text-4xl text-[#0B996F] mb-12",children:["Breaking Barriers, Building a Fairer Future",d.jsx("br",{}),"for One Billion People"]}),d.jsxs("div",{className:"flex flex-col md:flex-row justify-center items-center gap-36 max-lg:gap-10",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-5xl font-bold text-[#555D55] dark:text-gray-200",children:a&&d.jsx(Ls,{end:5,duration:2})}),d.jsx("p",{className:"text-xl text-[#555D55] dark:text-gray-300 mt-2",children:"countries"})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-5xl font-bold text-[#555D55] dark:text-gray-200",children:a&&d.jsx(Ls,{end:144,duration:2})}),d.jsx("p",{className:"text-xl text-[#555D55] dark:text-gray-300 mt-2",children:"cities"})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-5xl font-bold text-[#555D55] dark:text-gray-200",children:a&&d.jsx(Ls,{end:1500,duration:2.5,separator:","})}),d.jsx("p",{className:"text-xl text-[#555D55] dark:text-gray-300 mt-2",children:"Registered Members"})]})]})]}),d.jsxs("div",{className:"bg-white dark:bg-gray-900 px-4 mb-12",children:[d.jsxs("div",{className:"text-center mb-12",children:[d.jsx("button",{className:"bg-[#1E784B] text-white text-sm font-semibold px-8 py-3 rounded-full mb-4",children:"The Perfect Ride Awaits"}),d.jsx("h2",{className:"text-5xl font-bold max-lg:text-4xl text-[#0B996F]",children:"One App, Unlimited Possibilities"})]}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 max-w-6xl mx-auto",children:mk.map((m,g)=>d.jsxs("div",{className:"bg-[#e8f9f1] dark:bg-gray-800 rounded-lg p-6 flex flex-col items-center text-center shadow-md hover:shadow-2xl transition-shadow duration-300",children:[d.jsx("img",{src:m.Image,alt:"",className:"w-32"}),d.jsx("h3",{className:"text-2xl font-bold text-[#0A4624] dark:text-white mb-2",children:m.title}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:m.description})]},g))})]}),d.jsxs("div",{className:"bg-white dark:bg-gray-900 py-16 px-4",children:[d.jsxs("div",{className:"flex justify-between items-end w-[100%] pb-10 gap-5 max-lg:flex-col",children:[d.jsx("p",{className:"w-[55%] max-lg:w-[100%] text-5xl font-bold max-lg:text-4xl text-[#0B996F]",children:"Beyond Rides — The Ultimates Experience awaits"}),d.jsx("p",{className:"w-[42%] max-lg:w-[100%] text-lg text-gray-700 dark:text-gray-300",children:"Get ready for the ultimate taxi experience — reliable rides, friendly drivers, and seamless journeys, all at your fingertips"})]}),d.jsx("div",{className:"max-w-7xl mx-auto",children:s.map((m,g)=>d.jsx("div",{className:`grid gap-6 ${m.length===3?"grid-cols-1 sm:grid-cols-2 lg:grid-cols-3":"grid-cols-1 sm:grid-cols-2 lg:grid-cols-2 justify-center"} mb-10`,children:m.map((x,b)=>d.jsxs("div",{className:"rounded-3xl p-6 py-10 bg-white dark:bg-gray-800 text-gray-900 dark:text-white border border-gray-200 dark:border-gray-700 shadow-md transition-all duration-300 hover:bg-[#0B996F] hover:text-white hover:shadow-lg group cursor-pointer",children:[d.jsx("div",{className:"w-16 h-16 rounded-full flex items-center justify-center mb-4 bg-[#e8f9f1] dark:bg-gray-700 text-[#0B996F] group-hover:bg-white group-hover:text-[#0ea36e] transition-all duration-300 text-2xl",children:x.icon}),d.jsx("h3",{className:"text-2xl font-bold mb-2",children:x.title}),d.jsx("p",{className:"text-base",children:x.description})]},b))},g))})]}),d.jsxs("div",{className:"bg-[#e8f7f0] dark:bg-gray-800 relative py-20 mb-5 px-6 h-[130vh] max-lg:h-auto items-center flex w-[95%] rounded-3xl mx-auto",style:{backgroundImage:`url(${I1})`},children:[d.jsx("div",{className:"absolute inset-0 bg-[#E2F4EA] dark:bg-gray-900/50 opacity-50 rounded-3xl"}),d.jsxs("div",{className:"w-full px-3 z-10 mx-auto flex flex-col md:flex-row items-center justify-between gap-16",children:[d.jsxs("div",{className:"text-center md:text-left max-w-xl",children:[d.jsxs("h2",{className:"text-3xl md:text-5xl font-bold text-[#0B996F] mb-4",children:["The Easiest Way to Book ",d.jsx("br",{}),"Your Ride Register Now for ",d.jsx("br",{}),"Instant Access"]}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-lg mb-6",children:"Book your ride quickly and effortlessly with just a few taps on our app"}),d.jsxs("div",{className:"flex flex-wrap justify-center md:justify-start gap-4",children:[d.jsx("a",{href:"#",children:d.jsx("img",{src:Y1,alt:"Google Play",className:"h-12 rounded-lg"})}),d.jsx("a",{href:"#",children:d.jsx("img",{src:X1,alt:"App Store",className:"h-12 rounded-lg"})})]})]}),d.jsxs("div",{className:"relative",children:[d.jsx("img",{src:G1,alt:"Happy user",className:"w-full max-w-md h-[100vh] max-lg:h-auto object-cover rounded-2xl"}),d.jsx("img",{src:q1,alt:"App Screenshot",className:"absolute top-32 -left-28 max-lg:-left-10 max-lg:w-20 max-lg:top-5 md:w-60 drop-shadow-xl"})]})]})]}),d.jsx("div",{className:"py-20 px-6 bg-white dark:bg-gray-900",children:d.jsxs("div",{className:"max-w-7xl mx-auto grid grid-cols-1 md:grid-cols-2 gap-12 items-center",children:[d.jsxs("div",{children:[d.jsxs("h2",{className:"text-4xl font-bold text-[#0B996F] mb-4 leading-tight",children:["Bringing Countless ",d.jsx("br",{})," Smiles with Every Ride"]}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300 mb-8",children:"At AAAO Go, we turn every ride into a reason to smile — with punctual drivers, premium service, and comfort that feels like home."}),d.jsxs("div",{className:"flex gap-12 mb-10",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-3xl font-bold text-green-600",children:"97%"}),d.jsx("p",{className:"text-gray-600 dark:text-gray-300 text-sm",children:"Satisfaction Rate"})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-3xl font-bold text-green-600",children:"50+"}),d.jsx("p",{className:"text-gray-600 dark:text-gray-300 text-sm",children:"years of combined experience"})]})]}),d.jsx("img",{src:N_,alt:"Path",className:"h-48"})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsx("div",{className:"col-span-2 bg-green-100 dark:bg-gray-800 p-6 rounded-2xl shadow-md",children:d.jsx(fk,{...e,children:hk.map((m,g)=>d.jsx("div",{className:"px-2",children:d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"text-green-600 text-lg mb-2",children:"★★★★★"}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300 mb-4 text-sm",children:m.review}),d.jsxs("p",{className:"font-semibold text-green-800 dark:text-green-300",children:["— ",m.name]})]})},g))})}),d.jsx("img",{src:T_,alt:"Man with tablet",className:"w-full h-full object-cover rounded-2xl"}),d.jsx("img",{src:A_,alt:"Woman in car",className:"w-full h-full object-cover rounded-2xl"})]})]})})]})},tw="/assets/bg-BbOJe-ta.jpeg",gk="/assets/enjoy-CVNWmoEC.jpg",yk="/assets/map-DfwT83pC.png",xk="/assets/whyjoin-B-Bkqsbz.jpg",vk="/assets/aim-DEi6q9Iw.jpg",bk="/assets/direction-DvSXpJ92.png",wk=()=>d.jsxs("div",{className:"bg-white p-5 dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300",children:[d.jsx("div",{className:"h-[500px] rounded-3xl my-7 w-[95%] mx-auto text-white",children:d.jsxs("div",{className:"relative mt-20 bg-cover bg-center h-[500px] rounded-3xl overflow-hidden flex items-center justify-center",style:{backgroundImage:`url(${tw})`},children:[d.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-50"}),d.jsx("div",{className:"relative z-10 text-center px-4",children:d.jsxs("h1",{className:"text-4xl md:text-5xl font-bold leading-tight",children:["Our Story of Service and ",d.jsx("br",{className:"max-lg:hidden"})," ","Excellence"]})})]})}),d.jsxs("div",{className:"w-full relative px-6 py-12 md:px-20 flex flex-col md:flex-row justify-between gap-10",children:[d.jsxs("div",{className:"md:w-1/2",children:[d.jsxs("h2",{className:"text-3xl md:text-4xl font-bold text-[#0B996F] leading-tight mb-6",children:["Enjoy Seamless Travel –",d.jsx("br",{}),"Comfort, Clarity & Control at",d.jsx("br",{}),"Every Step"]}),d.jsx("p",{className:"text-gray-600 dark:text-gray-300 mb-10",children:"We take the stress out of travel by managing the details for you. With AAAO Go, your ride is more than just a destination — it’s a smooth, relaxing experience from start to finish."}),d.jsxs("div",{className:"space-y-6",children:[d.jsxs("div",{children:[d.jsx("h4",{className:"text-xl font-semibold text-green-900 dark:text-green-300",children:"🌟 Easy-to-Use Mobile App"}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"📱 Book, track, and manage your rides in seconds."})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"text-xl font-semibold text-green-900 dark:text-green-300",children:"🌟 Professional Drivers"}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"🚗 Trusted and trained to deliver safety and reliability."})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"text-xl font-semibold text-green-900 dark:text-green-300",children:"🌟 Transparent, Honest Pricing"}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"💳 No surprises — what you see is exactly what you pay."})]}),d.jsxs("div",{children:[d.jsx("h4",{className:"text-xl font-semibold text-green-900 dark:text-green-300",children:"🌟 A Vehicle for Every Need"}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:"🚌 Whether solo or group, budget or luxury — we've got it."})]}),d.jsxs("div",{className:"flex gap-10",children:[d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsxs("p",{className:"text-4xl font-medium",children:["50",d.jsx("span",{className:"text-[#0B996F]",children:"+"})]}),d.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:"Years of combine Experience"})]}),d.jsxs("div",{className:"flex flex-col gap-1",children:[d.jsxs("p",{className:"text-4xl font-medium",children:["1,297 ",d.jsx("span",{className:"text-[#0B996F]",children:"+"})]}),d.jsx("p",{className:"text-sm text-gray-600 dark:text-gray-300",children:"Professional Drivers"})]})]})]})]}),d.jsx("img",{src:yk,alt:"",className:"absolute left-[50%] w-60 top-72 max-lg:hidden"}),d.jsx("div",{className:"md:w-1/2 flex h-[25rem] max-lg:h-auto justify-center",children:d.jsx("img",{src:gk,alt:"Travel",className:"rounded-2xl shadow-lg w-full object-cover h-auto max-w-md"})})]}),d.jsxs("div",{className:"w-full px-6 py-12 md:px-20 flex flex-col md:flex-row items-center justify-between gap-10",children:[d.jsx("div",{className:"md:w-1/2 h-[33rem] max-lg:h-auto",children:d.jsx("img",{src:xk,alt:"Why Join AAAO Go",className:"rounded-2xl shadow-lg object-cover w-full h-full max-lg:h-auto max-w-md"})}),d.jsxs("div",{className:"md:w-1/2",children:[d.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#0B996F] mb-4",children:"Why Join AAAO Go?"}),d.jsx("h3",{className:"text-lg font-semibold text-[#0B996F] mb-6",children:"A Life-Changing Opportunity"}),d.jsxs("ul",{className:"space-y-3 mb-6 text-gray-700 dark:text-gray-300",children:[d.jsxs("li",{className:"flex items-center gap-2",children:["✅ ",d.jsx("span",{children:"Higher Earnings & Fair Commission"})]}),d.jsxs("li",{className:"flex items-center gap-2",children:["✅ ",d.jsx("span",{children:"Transparent Policies & Support System"})]}),d.jsxs("li",{className:"flex items-center gap-2",children:["✅ ",d.jsx("span",{children:"Higher Earnings & Fair Commission"})]})]}),d.jsxs("div",{className:"space-y-5 text-gray-700 dark:text-gray-300",children:[d.jsxs("p",{children:["💡 ",d.jsx("strong",{children:"AAAO Go is different"}),". We believe in fair earnings, driver empowerment, and long-term financial growth for everyone in our community."]}),d.jsxs("p",{children:["💸 ",d.jsx("strong",{children:"Earn even while you sleep"})," through our multi-level referral rewards and service team usage — because your effort today builds income for tomorrow."]}),d.jsxs("p",{children:["🏔️ ",d.jsx("strong",{children:"Retire with dignity"})," — Enjoy long-term benefits including Retirement Support and Tribute Assistance to protect your loved ones in times of need."]})]})]})]}),d.jsxs("div",{className:"w-full relative px-6 py-12 md:px-20 flex flex-col md:flex-row items-center justify-between gap-10",children:[d.jsxs("div",{className:"md:w-1/2",children:[d.jsx("h2",{className:"text-3xl md:text-4xl font-bold text-[#0B996F] mb-4",children:"What We Aim to Achieve"}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300 mb-6",children:"Driven by Vision – Powered by You"}),d.jsxs("ul",{className:"space-y-5 text-gray-800 dark:text-gray-200 text-base",children:[d.jsxs("li",{children:[d.jsxs("span",{className:"text-xl",children:["🚀 ",d.jsx("strong",{children:"Short-Term"}),":"]})," ","Expand rapidly into key cities and markets by onboarding drivers, customers, and service providers across our service range."]}),d.jsxs("li",{children:[d.jsxs("span",{className:"text-xl",children:["🤝 ",d.jsx("strong",{children:"Mid-Term"}),":"]})," ","Establish a community-powered ride-hailing network where earnings, opportunities, and loyalty grow together."]}),d.jsxs("li",{children:[d.jsxs("span",{className:"text-xl",children:["🌍 ",d.jsx("strong",{children:"Long-Term"}),":"]})," ","Lead the way in global mobility innovation, introducing smart tech, international operations, and sustainable solutions."]}),d.jsxs("li",{children:[d.jsxs("span",{className:"text-xl",children:["💬 ",d.jsx("strong",{children:'"We’re not just launching an app"'}),":"]})," ","— we’re shaping the future of transportation with YOU at the center of it."]})]})]}),d.jsx("img",{src:bk,alt:"",className:"absolute left-[45%] w-[25rem] max-lg:hidden"}),d.jsx("div",{className:"md:w-1/2 flex justify-center",children:d.jsx("img",{src:vk,alt:"Vision Goals",className:"rounded-2xl shadow-xl w-full h-auto max-w-md"})})]}),d.jsx("div",{className:"w-[95%] bg-green-100 dark:bg-gray-800 m-auto mb-10 py-12 px-6 md:px-20 rounded-[2rem]",children:d.jsxs("div",{className:"flex flex-col md:flex-row gap-8 items-center justify-center",children:[d.jsxs("div",{className:"bg-[#DDF3EB] dark:bg-gray-700 hover:bg-[#079B72] hover:text-white text-gray-900 dark:text-white rounded-3xl p-8 w-full md:w-1/2 shadow-lg",children:[d.jsxs("div",{className:"flex items-center mb-4",children:[d.jsx("div",{className:"bg-white dark:bg-gray-600 text-[#079B72] rounded-full p-3 mr-4",children:d.jsx(HN,{size:24})}),d.jsx("h2",{className:"text-2xl font-semibold text-green-800 dark:text-green-300 hover:text-white",children:"Our Vision"})]}),d.jsx("p",{className:"text-base leading-relaxed",children:'"Our vision is simple – to build a ride-hailing platform where drivers earn fairly, customers enjoy reliable services, and communities thrive through innovation."'})]}),d.jsxs("div",{className:"bg-[#DDF3EB] dark:bg-gray-700 hover:bg-[#079B72] hover:text-white border border-[#B2E2D2] dark:border-gray-600 text-gray-800 dark:text-white rounded-3xl p-8 w-full md:w-1/2 shadow-md",children:[d.jsxs("div",{className:"flex items-center mb-4",children:[d.jsx("div",{className:"bg-white dark:bg-gray-600 text-[#079B72] rounded-full p-3 mr-4",children:d.jsx(qN,{size:24})}),d.jsx("h2",{className:"text-2xl font-semibold text-green-800 dark:text-green-300 hover:text-white",children:"Our Mission"})]}),d.jsx("p",{className:"text-base leading-relaxed",children:"AAAO Go is a dynamic and innovative ride-hailing platform designed to redefine urban mobility. We connect riders with reliable drivers through a seamless, technology-driven experience, ensuring safety, affordability, and convenience. Our commitment goes beyond transportation—we empower individuals with flexible earning opportunities while enhancing everyday travel. Whether it’s daily commutes, business trips, or on-demand rides, AAAO Go is your trusted partner in moving smarter, faster, and better."})]})]})})]}),Sk="/assets/bg-6SAdu_b3.jpg",jk="/assets/future--MMH-1BG.jpg",Ek="/assets/card1-CngeeMsl.png",Tk="/assets/card2-o4McaAYV.png",Ak="/assets/card3-BdCC1t9j.png",Nk="/assets/card4-DwGgvalC.png",_k="/assets/card5-BRuLiB6I.png",kk="/assets/card6-DhonLssf.png",Ok="/assets/card7-BtLXKe8h.png",Rk="/assets/card8-D0qhdoR6.png",Ck="/assets/card9-CP2MyyTJ.png",Dk="/assets/recovery-BXEv-XSB.jpeg",Mk="/assets/rides-Bkxyhe-g.jpeg",Lk="/assets/shifting--UhfRry8.jpeg",Pk="/assets/autofix-j6AEHwbR.jpeg",zk="/assets/tyrezone-BB2vwwox.jpeg",Uk="/assets/keyassist-Usw68JbA.jpeg",Bk="/assets/autohub-BicU1udc.jpeg",Fk="/assets/tourism-CEey8P9M.jpeg",Vk="/assets/wash-CvccX4aW.jpeg",Hk=[{title:"Car Recovery Services",icon:"🚨",image:Ek,need:"Why You Might Need Car Recovery:",cardimg:Dk,span1:"🔋 Dead Battery",p1:" – Vehicle won’t start? We’ll recharge or tow.",span2:"🛠️ Engine Failure",p2:" – Sudden breakdowns require expert towing.",span3:"🚧 Accidents or Collisions",p3:" – Reliable recovery after any incident.",span4:"🚗 Overheating or Mechanical Trouble",p4:" – Prevent further damage.",span5:"⚫ Flat Tires or Wheel Problems",p5:" – Fast recovery when you're stuck.",span6:"⛺ Stuck in Desert/Sand",p6:" – Special recovery vehicles for off-road issues.",span7:"🌙 Night-Time Emergencies",p7:" – Round-the-clock assistance.",span8:"📑 Pre-Registration Transport",p8:" – Move for registration/testing.",span9:"🚛 Car Export/Import",p9:" – Support for port transfers.",span10:"🏙️ Car Transfer Between Cities",p10:" – Safe city-to-city vehicle movement.",description:"Get back on the road — safely and swiftly. AAAO Go offers 24/7 car recovery support across the UAE. Whether it’s an unexpected breakdown or a scheduled vehicle movement, our trained team ensures smooth, secure transport — anytime, anywhere."},{title:"AAAO rides / cab services",icon:"🚖",image:Tk,need:"Why Choose AAAO Go Cabs?",cardimg:Mk,span1:"📱 Instant Booking via App",p1:" – Book a ride within seconds.",span2:"⏱️ On-Time Pickups",p2:" – Real-time tracking & punctual arrivals.",span3:"🚗 Wide Range of Vehicles",p3:" – From economy to luxury.",span4:"💳 Transparent Pricing",p4:" – No hidden fees. No surprises.",span5:"🕒 Time-Based or Hourly Fares",p5:" – Book by trip or by the hour — perfect for city tours or meetings.",span6:"✈️ Airport Transfers",p6:" – Fast, professional airport pick-ups & drop-offs.",span7:"👩👧 PINK RIDES /Family-Friendly Options",p7:" – No male companion rides available for women & families (optional filter).",span8:"👨✈️ Professional Drivers",p8:" – Verified, trained, and polite.",span9:"🌙 24/7 Availability",p9:" – Day or night, we’re always on the move.",description:"Your ride, your way –with AAAO Go. We provide fast, comfortable, and affordable cab services across the UAE, tailored to your lifestyle. Whether it’s a short ride or an all-day booking, AAAO Go gets you there – safely and on time."},{title:"Packers & Shifting Movers",icon:"📦",image:Ak,need:"Why Choose AAAO Go Movers?",cardimg:Lk,span1:"🪑 Furniture & Luggage Shifting",p1:" - From delicate items to heavy furniture, we move your belongings with care and precision.",span2:"🔧 Fixing Experts (On-Demand)",p2:" - Need help assembling or disassembling? Our skilled technicians are available on request to handle installations and setups.",span3:"🧳 Helpers for Lifting & Loading",p3:" - Professional helpers can be booked along with your move to assist in loading, unloading, and organizing items — saving your time and effort.",description:"Hassle-free moving services tailored to your needs — whether it's a single item or a full house."},{title:"AAAO AutoFix – Trusted Repairing Services",icon:"🛠️",image:Nk,cardimg:Pk,span1:"🚗 Verified Workshops",p1:" - We list only registered workshops that meet our quality and service standards.",span2:"📊 Performance-Based Suggestions",p2:" - Our smart system recommends workshops based on customer ratings, service history, and pricing – ensuring you get the best value every time.",span3:"📍 Nearby & Transparent",p3:" - Easily find nearby workshops with real-time tracking, price monitoring, and honest customer reviews – all within the AAAO Go app.",description:"AAAO AutoFix connects you with the top-rated workshops registered on our platform, offering reliable, affordable, and fast repair services."},{title:"AAAO TyreZone – Smart Tyre Solutions",icon:"⚙️",image:_k,cardimg:zk,span1:"✅ Verified Tyre Shops",p1:" - All listed tyre vendors are registered and meet our quality and service benchmarks.",span2:"📈 Rating-Based Recommendations",p2:" - Our system suggests the best tyre shops using real-time customer reviews, service quality history, and competitive pricing.",span3:"📍 Nearby & Honest",p3:" - Get quick access to the nearest tyre shop with live tracking, price comparisons, and service guarantees, all within the AAAO Go platform.",description:"AAAO TyreZone helps you find top-rated tyre shops near you, offering a wide range of services from tyre replacement to wheel balancing, all based on customer satisfaction and pricing transparency."},{title:"AAAO KeyAssist – Fast & Reliable Unlocking & Road Help",icon:"🔑",image:kk,cardimg:Uk,span1:"✅ Certified Locksmiths & Road Experts",p1:" - All service providers are licensed, background-checked, and trained to deliver fast, damage-free solutions with professional care.",span2:"📍 Nearby & On-Demand",p2:" - Instantly locate the closest expert for unlocking or roadside help, with real-time tracking, upfront pricing, and service guarantees.",span3:"🔧 Comprehensive Road Assistance",p3:" - From jump-starting your battery to helping with flat tyres, fuel delivery, or minor mechanical issues — AAAO KeyAssist has your back.",span4:"🔐 Safe, Transparent, & Stress-Free",p4:" - Forget the panic. AAAO Go ensures you get reliable help with live support, secure payments, and complete peace of mind.",description:"AAAO KeyAssist is your trusted companion for emergency key unlocking and roadside assistance. Whether you're locked out of your car, home, or office — or facing minor breakdowns on the road — help is just a tap away inside the AAAO Go platform"},{title:"AAAO AutoHub – Verified Showrooms & Car Dealers",icon:"🚘",image:Ok,cardimg:Bk,span1:"✅Verified Dealers Only",p1:" - We list only officially registered showrooms and dealers who meet our quality, service, and trust standards.",span2:"📈 Rating-Based Listings",p2:" - Dealers are ranked using customer reviews, service history, pricing fairness, and after-sale support.",span3:"🚗 New & Pre-Owned Options",p3:" - Browse a wide variety of vehicles — from brand-new cars to inspected and certified pre-owned models.",span4:"💼 Smart Filters & Deals",p4:" - Search by brand, price range, location, or car type. Get access to exclusive AAAO Go deals and showroom offers.",span5:"📍 Nearby & Contact",p5:"- Free Booking -Find the nearest dealer, book a test drive, or schedule a visit — all within the AAAO Go platform.",description:"AAAO AutoHub connects you with trusted car showrooms and licensed vehicle dealers near you — offering a wide selection of new and used vehicles, financing options, and transparent dealer ratings, all inside the AAAO Go ecosystem."},{title:"AAAO Explore – Complete Tourism, Events & Local Experience Hub",icon:"🌍",image:Rk,cardimg:Fk,span1:"✅ Expert Tour Guides & Custom Tours",p1:" - Hire trusted local guides for hourly or daily trips — from city walks to desert safaris — with transparent, fixed pricing.",span2:"🏨 Verified Hotels & Guest Houses",p2:" - Book AAAO-approved accommodations with real reviews, clear amenities, and best-price guarantees — no hidden costs.",span3:"🍽️ Top-Rated Local Restaurants",p3:" - Dine smart with budget-friendly, highly-rated eateries near you — searchable by cuisine, price, and open status.",span4:"🎉 Event Planning & Management",p4:" - Plan birthdays, weddings, corporate retreats, or travel events with ease. AAAO connects you with certified event planners, venues, and services that match your style and budget.",span5:"📍 All Nearby, All in One Place",p5:" - Use AAAO Go to instantly locate and book all services — tours, stays, meals, and events — with real-time tracking and 24/7 support.",description:"AAAO Explore is your smart gateway to discover, book, and enjoy unforgettable experiences — combining guided tours, verified hotels, affordable dining, and event planning into one powerful platform."},{title:"AAAO ShineZone – Trusted Car Wash & Detailing Near You",icon:"🚿",image:Ck,cardimg:Vk,span1:"✅ Verified Wash Centers & Mobile Teams",p1:" - Only AAAO-approved providers offering quality, eco-friendly, and reliable service.",span2:"🚗 From Quick Wash to Full Detailing",p2:" - Choose from basic exterior wash, interior vacuuming, waxing, or full premium detailing packages.",span3:"💵 Transparent & Affordable Rates",p3:" - No overcharging — get fixed, visible pricing for every service, including packages for daily, weekly, or monthly care.",span4:"📍 Nearby & On-Demand",p4:" - Find the closest wash station or book a mobile car wash at your home or office via the AAAO Go app.",span5:"🕒 Real-Time Availability",p5:" - Book instantly, view service hours, and track your service live — all from your phone.",description:"AAAO ShineZone connects you with verified car wash professionals offering on-site or drive-in services — from basic cleaning to premium detailing, all at fair, upfront prices."}],Ik=()=>{const[e,n]=V1({triggerOnce:!0,threshold:.3}),[a,s]=X.useState(null),o=()=>{window.scrollTo({top:0,behavior:"smooth"})};return d.jsxs("div",{className:"bg-white dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300 p-5",children:[d.jsx("div",{className:"h-[500px] rounded-3xl my-7 w-[95%] mx-auto bg-black dark:bg-gray-900 text-white dark:text-white",children:d.jsxs("div",{className:"relative mt-20 bg-cover bg-center h-[500px] rounded-3xl overflow-hidden flex items-center justify-center dark:bg-gray-900",style:{backgroundImage:`url(${Sk})`},children:[d.jsx("div",{className:"absolute inset-0 bg-black dark:bg-gray-900 bg-opacity-60 dark:bg-opacity-80"}),d.jsxs("div",{className:"relative z-10 text-center px-4",children:[d.jsxs("nav",{className:"text-sm text-white dark:text-gray-200 mb-4 flex items-center justify-center",children:[d.jsx(xt,{to:"/",onClick:o,className:"hover:underline text-white dark:text-gray-200 hover:text-yellow-400 dark:hover:text-yellow-400",children:"Home"}),d.jsx("span",{className:"mx-2 text-[#387B55] dark:text-yellow-400 text-2xl -mt-1",children:"›"}),d.jsx("span",{className:"text-white dark:text-gray-200",children:"Services"})]}),d.jsxs("h1",{className:"text-4xl md:text-5xl font-bold text-white dark:text-white leading-tight",children:["Experience Convenience Our Service"," ",d.jsx("br",{className:"max-lg:hidden"})," Offerings"]})]})]})}),d.jsxs("div",{className:"max-w-7xl mx-auto px-4 relative mb-32 max-lg:mb-0 py-12 flex flex-col-reverse md:flex-row items-center gap-10",children:[d.jsx("div",{className:"w-[50%] max-lg:w-[100%]",children:d.jsx("img",{src:jk,alt:"Driver with customer",className:"rounded-3xl w-full object-cover"})}),d.jsxs("div",{className:"w-[50%] max-lg:w-[100%]",children:[d.jsx("h2",{className:"text-5xl font-bold max-lg:text-4xl text-[#0B996F] dark:text-yellow-400 mb-4",children:"The Future We See"}),d.jsxs("ul",{className:"space-y-3 mb-6 text-gray-700 dark:text-gray-200",children:[d.jsxs("li",{className:"flex items-start gap-2",children:[d.jsx(Ms,{className:"text-[#0B996F] dark:text-yellow-400 mt-1"}),"A global ride-hailing network that empowers drivers & customers."]}),d.jsxs("li",{className:"flex items-start gap-2",children:[d.jsx(Ms,{className:"text-[#0B996F] dark:text-yellow-400 mt-1"}),"Creating financial freedom and opportunities."]}),d.jsxs("li",{className:"flex items-start gap-2",children:[d.jsx(Ms,{className:"text-[#0B996F] dark:text-yellow-400 mt-1"}),"Sustainable & innovative mobility solutions."]})]}),d.jsxs("p",{className:"mb-6 text-gray-700 dark:text-gray-200",children:[d.jsx("span",{className:"font-bold",children:"Our vision is simple"})," – to build a ride-hailing platform where drivers earn fairly, customers enjoy reliable services, and communities thrive through innovation."]}),d.jsxs("div",{className:"flex items-start gap-3 p-2 rounded-lg",children:[d.jsx("div",{className:"bg-green-200 dark:bg-gray-700 p-3 rounded-full",children:d.jsx(B1,{className:"text-[#0B996F] dark:text-yellow-400 text-2xl"})}),d.jsxs("div",{children:[d.jsx("p",{className:"font-bold text-[#0B996F] dark:text-yellow-400 text-lg",children:"Safety Measures"}),d.jsx("p",{className:"text-gray-600 dark:text-gray-200 text-sm",children:"Verified drivers, real-time tracking & No Male Companion rides for ladies and families – your peace of mind comes first."})]})]})]}),d.jsx("img",{src:H1,alt:"",className:"absolute max-lg:hidden left-[22%] w-[40%] -bottom-28"})]}),d.jsxs("div",{className:"text-center mb-12",children:[d.jsx("button",{className:"bg-[#1E784B] dark:bg-yellow-500 dark:text-gray-900 text-white text-sm font-semibold px-8 py-3 rounded-full mb-4 hover:bg-green-700 dark:hover:bg-yellow-400 transition-colors duration-300",children:"The Perfect Ride Awaits"}),d.jsx("h2",{className:"text-5xl font-bold max-lg:text-4xl text-[#0B996F] dark:text-yellow-400",children:"One App, Unlimited Possibilities"})]}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6 py-6 px-20 max-lg:px-4 bg-white dark:bg-gray-800",children:Hk.map((c,u)=>d.jsxs("div",{className:"bg-[#E2F4EA] dark:bg-gray-700 rounded-lg shadow px-5 py-3 flex flex-col justify-between",children:[d.jsx("img",{src:c.image,alt:c.title,className:"h-32 w-full rounded-2xl object-cover"}),d.jsxs("h3",{className:"text-xl font-semibold mt-4 text-gray-900 dark:text-white",children:[d.jsx("span",{className:"mr-2 text-sm",children:c.icon}),c.title]}),d.jsx("p",{className:"text-xs text-gray-700 dark:text-gray-200 mt-2 flex-grow",children:c.description}),d.jsx("button",{onClick:()=>s(c),className:"bg-[#319A64] dark:bg-yellow-500 dark:text-gray-900 text-white px-2 py-1 mt-4 rounded hover:bg-green-700 dark:hover:bg-yellow-400 w-fit transition-colors duration-300",children:"View Details"})]},u))}),a&&d.jsx("div",{className:"fixed inset-0 bg-black dark:bg-gray-900 bg-opacity-60 z-50 flex justify-center items-center px-4",children:d.jsxs("div",{className:"flex flex-col lg:flex-row gap-6 lg:gap-10 rounded-xl bg-white dark:bg-gray-800 p-6 max-w-5xl w-full relative overflow-y-auto max-h-[90vh]",children:[d.jsx("button",{onClick:()=>s(null),className:"absolute top-2 right-2 text-gray-600 dark:text-gray-200 hover:text-red-600 dark:hover:text-red-400 text-2xl",children:"×"}),d.jsx("img",{src:a.cardimg,alt:a.title,className:"w-full lg:w-[40%] object-cover rounded-xl max-h-[500px]"}),d.jsxs("div",{className:"w-full lg:w-[60%] overflow-y-auto",children:[d.jsx("h3",{className:"text-2xl font-semibold mb-2 text-gray-800 dark:text-white",children:a.title}),d.jsx("p",{className:"text-sm text-gray-700 dark:text-gray-200 mb-4",children:a.description}),d.jsx("h4",{className:"font-semibold text-base mb-2 text-gray-800 dark:text-white",children:a.need}),d.jsxs("ul",{className:"text-sm text-gray-700 dark:text-gray-200 list-disc ml-5 space-y-3",children:[a.span1&&d.jsxs("li",{className:"list-none",children:[d.jsx("span",{className:"font-bold",children:a.span1})," ",a.p1]}),a.span2&&d.jsxs("li",{className:"list-none",children:[d.jsx("span",{className:"font-bold",children:a.span2})," ",a.p2]}),a.span3&&d.jsxs("li",{className:"list-none",children:[d.jsx("span",{className:"font-bold",children:a.span3})," ",a.p3]}),a.span4&&d.jsxs("li",{className:"list-none",children:[d.jsx("span",{className:"font-bold",children:a.span4})," ",a.p4]}),a.span5&&d.jsxs("li",{className:"list-none",children:[d.jsx("span",{className:"font-bold",children:a.span5})," ",a.p5]}),a.span6&&d.jsxs("li",{className:"list-none",children:[d.jsx("span",{className:"font-bold",children:a.span6})," ",a.p6]}),a.span7&&d.jsxs("li",{className:"list-none",children:[d.jsx("span",{className:"font-bold",children:a.span7})," ",a.p7]}),a.span8&&d.jsxs("li",{className:"list-none",children:[d.jsx("span",{className:"font-bold",children:a.span8})," ",a.p8]}),a.span9&&d.jsxs("li",{className:"list-none",children:[d.jsx("span",{className:"font-bold",children:a.span9})," ",a.p9]}),a.span10&&d.jsxs("li",{className:"list-none",children:[d.jsx("span",{className:"font-bold",children:a.span10})," ",a.p10]})]})]})]})}),d.jsxs("div",{ref:e,className:"bg-[#e8f9f1] dark:bg-gray-800 text-center py-16 px-4 mb-12 max-lg:py-8",children:[d.jsxs("h2",{className:"text-5xl font-bold max-lg:text-4xl text-[#0B996F] dark:text-yellow-400 mb-12",children:["Breaking Barriers, Building a Fairer Future",d.jsx("br",{}),"for One Billion People"]}),d.jsxs("div",{className:"flex flex-col md:flex-row justify-center items-center gap-36 max-lg:gap-10",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-5xl font-bold text-[#555D55] dark:text-white",children:n&&d.jsx(Ls,{end:5,duration:2})}),d.jsx("p",{className:"text-xl text-[#555D55] dark:text-gray-200 mt-2",children:"countries"})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-5xl font-bold text-[#555D55] dark:text-white",children:n&&d.jsx(Ls,{end:144,duration:2})}),d.jsx("p",{className:"text-xl text-[#555D55] dark:text-gray-200 mt-2",children:"cities"})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-5xl font-bold text-[#555D55] dark:text-white",children:n&&d.jsx(Ls,{end:1500,duration:2.5,separator:","})}),d.jsx("p",{className:"text-xl text-[#555D55] dark:text-gray-200 mt-2",children:"Registered Members"})]})]})]})]})},qk="/assets/team-B2G7j71p.webp",Gk="/assets/ceo-pov2ltjX.webp",Yk="/assets/tahir-nVzPZBOR.webp",Xk="/assets/wardag-BCdJGmKz.webp",Wk="/assets/samad-kLWTUiYE.jpeg",Zk=()=>{const[e,n]=X.useState(null),a=()=>{window.scrollTo({top:0,behavior:"smooth"})},s=[{name:"Mr Tahir Zaman",role:"COO",title:"Chief Operation Officer (COO)",image:Yk,description:"Tahir is an experienced professional with a diverse background spanning over a decade in various industries. Since 2011, he has demonstrated exceptional skills in team management and leadership, as well as expertise in human resources across multiple companies. Tahir brings a wealth of knowledge and a proven track record of driving operational excellence and fostering team collaboration. He is committed to elevating the company's position to the highest level by leveraging his strategic vision and adaptability in challenging situations"},{name:"Mr RAFIULLAH WARDAG",role:"CMO",title:"Chief Marketing Officer",image:Xk,description:"Rafi is a certified entrepreneur and a business tycoon with expertise across multiple industries. A mastermind in creative leadership, he is driven by a bold vision—to connect people worldwide on a single, unified platform. With his innovative approach and strategic thinking, he is reshaping industries and pioneering solutions that bridge global communities, making connectivity seamless and accessible for all."},{name:"Sardar Muhammad Abdul Samad Khan",role:"CTO",image:Wk,title:"Chief Technology Officer",description:"Meet our CTO officer, his name is Sardar Muhammad Abdul Samad Khan. He has a Master’s degree in Software Engineering. He has 10 years of experience in mobile application and website development. He has his own software house in which 100 employees work and he is the CEO of their company. He has received the Best Developer Award from the Government of Pakistan in 2018."}];return d.jsxs("div",{className:"bg-white dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300 p-5",children:[d.jsx("div",{className:"h-[500px] rounded-3xl my-7 w-[95%] mx-auto bg-black dark:bg-gray-900 text-white dark:text-white",children:d.jsxs("div",{className:"relative bg-cover bg-center mt-20 h-[500px] rounded-3xl overflow-hidden flex items-center justify-center dark:bg-gray-900",style:{backgroundImage:`url(${tw})`},children:[d.jsx("div",{className:"absolute inset-0 bg-black dark:bg-gray-900 bg-opacity-50 dark:bg-opacity-80"}),d.jsxs("div",{className:"relative z-10 text-center px-4",children:[d.jsxs("nav",{className:"text-sm text-white dark:text-gray-200 mb-4 flex items-center justify-center",children:[d.jsx(xt,{to:"/",onClick:a,className:"hover:underline text-white dark:text-gray-200 hover:text-yellow-400 dark:hover:text-yellow-400",children:"Home"}),d.jsx("span",{className:"mx-2 text-[#387B55] dark:text-yellow-400 text-2xl -mt-1",children:"›"}),d.jsx("span",{className:"text-white dark:text-gray-200",children:"Our Team"})]}),d.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-white dark:text-white leading-tight",children:"Meet Our Team"})]})]})}),d.jsxs("div",{className:"px-6 py-10 md:px-10 flex flex-col md:flex-row items-start gap-10",children:[d.jsx("div",{className:"flex-shrink-0 w-full md:w-[50%]",children:d.jsx("img",{src:qk,alt:"Team",className:"w-full h-[450px] rounded-md object-cover"})}),d.jsxs("div",{className:"flex flex-col w-full md:w-[55%]",children:[d.jsx("h2",{className:"text-2xl md:text-3xl font-semibold text-black dark:text-white mb-4",children:"Meet the AAAO Core Team – Driven by Experience, Powered by Vision"}),d.jsx("p",{className:"text-gray-700 dark:text-gray-200 text-[.9rem] leading-relaxed mb-6",children:"Behind AAAO Go is a strategic team of experts with deep-rooted experience in technology, transportation, tourism, hospitality, finance, retail, and smart services."}),d.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[d.jsx("div",{className:"bg-green-700 dark:bg-yellow-500 dark:text-gray-900 text-white p-3 rounded-full",children:d.jsx(BN,{className:"text-lg"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"text-lg font-semibold text-green-800 dark:text-yellow-400",children:"Combined Experience of 50+ Years"}),d.jsx("p",{className:"text-gray-700 dark:text-gray-200 mt-1 text-sm leading-relaxed",children:"Our leadership team holds over 50 years of combined industry experience, ensuring AAAO Go is built with insight, integrity, and future-focused strategy."})]})]}),d.jsxs("div",{className:"flex items-start gap-4",children:[d.jsx("div",{className:"bg-green-700 dark:bg-yellow-500 dark:text-gray-900 text-white p-3 rounded-full",children:d.jsx(YN,{className:"text-lg"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"text-lg font-semibold text-green-800 dark:text-yellow-400",children:"Built to Scale, Structured to Lead"}),d.jsx("p",{className:"text-gray-700 dark:text-gray-200 mt-1 text-sm leading-relaxed",children:"This team is architecting the AAAO Empire with clarity and commitment."})]})]})]})]}),d.jsxs("div",{className:"flex flex-col md:flex-row items-center justify-between px-8 py-12",children:[d.jsxs("div",{className:"md:w-1/2 space-y-4",children:[d.jsx("h2",{className:"text-3xl font-bold text-black dark:text-white",children:"MEET OUR FOUNDER"}),d.jsx("h3",{className:"text-xl font-semibold text-black dark:text-white",children:"A VISIONARY ARCHITECT OF INNOVATION"}),d.jsx("div",{className:"bg-black dark:bg-gray-700 text-white dark:text-gray-200 px-4 py-2 inline-block font-semibold tracking-wider",children:"MR MI KHAN BUDDA KHEL"}),d.jsx("h4",{className:"font-bold text-lg text-black dark:text-white mt-2",children:"(CEO)"}),d.jsx("p",{className:"text-gray-800 dark:text-gray-200 text-justify mb-5",children:"Starting as a laborer and rising to global leadership, Founder is a true embodiment of resilience and ambition. With 10 years of experience... driving innovation and inspiring change."}),d.jsx("button",{className:"bg-[#319A64] dark:bg-yellow-500 dark:text-gray-900 text-white px-6 py-2 rounded hover:bg-green-700 dark:hover:bg-yellow-400 mt-5 transition-colors duration-300",children:d.jsx("a",{href:"https://digitalcontacts.info/mikhanbuddakhel",target:"_blank",rel:"noopener noreferrer",children:"Visit Profile"})})]}),d.jsx("div",{className:"md:w-[40%] mt-8 md:mt-0 flex justify-center",children:d.jsx("img",{src:Gk,alt:"Founder",className:"max-w-full h-auto object-cover rounded-lg shadow-lg"})})]}),d.jsxs("div",{className:"px-4 py-12 text-center bg-white dark:bg-gray-800",children:[d.jsx("h2",{className:"text-3xl font-bold text-black dark:text-white mb-8",children:"MEET OUR TEAM"}),d.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 max-w-5xl mx-auto",children:s.map((o,c)=>d.jsxs("div",{className:"bg-gray-100 dark:bg-gray-700 rounded-lg overflow-hidden p-4 flex flex-col items-center",style:{boxShadow:"1px 1px 10px #585858"},children:[d.jsx("img",{src:o.image,alt:o.name,className:"w-full h-60 object-cover rounded"}),d.jsx("h3",{className:"mt-4 text-lg whitespace-nowrap font-semibold text-black dark:text-white",children:o.name}),d.jsx("p",{className:"text-gray-700 dark:text-gray-200",children:o.role}),d.jsxs("button",{onClick:()=>n(o),className:"mt-4 bg-[#319A64] dark:bg-yellow-500 dark:text-gray-900 text-white px-4 py-2 rounded hover:bg-green-700 dark:hover:bg-yellow-400 transition-colors duration-300 flex items-center gap-1",children:["Read More ",d.jsx("span",{children:"→"})]})]},c))})]}),e&&d.jsx("div",{className:"fixed inset-0 bg-black dark:bg-gray-900 bg-opacity-60 flex justify-center items-center z-50",children:d.jsxs("div",{className:"bg-white dark:bg-gray-800 rounded-lg max-w-4xl w-full p-6 relative shadow-lg",children:[d.jsx("button",{onClick:()=>n(null),className:"absolute top-2 right-2 text-gray-600 dark:text-gray-200 hover:text-red-600 dark:hover:text-red-400",children:d.jsx(XN,{size:20})}),d.jsxs("div",{className:"flex flex-col md:flex-row gap-6",children:[d.jsx("img",{src:e.image,alt:e.name,className:"w-full md:w-[40%] h-60 object-cover rounded"}),d.jsxs("div",{className:"md:w-[60%] max-h-60 overflow-y-auto pr-2",children:[d.jsx("p",{className:"text-red-700 dark:text-yellow-400 font-semibold mb-2",children:e.title}),d.jsx("h3",{className:"text-xl font-bold text-black dark:text-white mb-2",children:e.name}),d.jsx("p",{className:"text-gray-700 dark:text-gray-200 text-sm leading-relaxed whitespace-pre-line",children:e.description})]})]})]})})]})},Kk="/assets/bg-4H183NQt.jpg",$k=()=>{const e=[{icon:lu,url:"https://www.facebook.com/AAAOGOINTL?rdid=5c6cGwC8Rj2HeWyR&share_url=https%3A%2F%2Fwww.facebook.com%2Fshare%2F19wGmUZcnH%2F#"},{icon:M1,url:"https://www.instagram.com/aaaogointl/?igsh=dzd1dGJtcXB1OXpn#"},{icon:F1,url:"https://x.com/i/flow/login?redirect_after_login=%2Faaaogointl"},{icon:z1,url:"https://www.tiktok.com/@aaaogointl?_t=ZS-8wxikZG1BBZ&_r=1"},{icon:P1,url:"https://t.me/aaaogointl"}];return d.jsxs("div",{className:"bg-white dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300 p-5",children:[d.jsx("div",{className:"h-[500px] rounded-3xl my-7 w-[95%] mx-auto bg-black text-white",children:d.jsxs("div",{className:"relative mt-20 bg-cover bg-center h-[500px] rounded-3xl overflow-hidden flex items-center justify-center",style:{backgroundImage:`url(${Kk})`},children:[d.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-50"}),d.jsxs("div",{className:"relative z-10 text-center px-4",children:[d.jsxs("nav",{className:"text-sm text-white/80 mb-4 flex items-center justify-center",children:[d.jsx(xt,{to:"/",className:"hover:underline text-white",children:"Home"}),d.jsx("span",{className:"mx-2 text-[#387B55] text-2xl -mt-1",children:"›"}),d.jsx("span",{children:"Contact"})]}),d.jsxs("h1",{className:"text-4xl md:text-5xl font-bold leading-tight",children:["Connect with Us for Any Questions ",d.jsx("br",{className:"max-lg:hidden"})," or Concerns"]})]})]})}),d.jsxs("div",{className:"w-[95%] mx-auto text-green-800 dark:text-green-300 px-6 py-10 md:flex md:justify-between md:items-start gap-10",children:[d.jsxs("div",{className:"md:w-1/2 space-y-6",children:[d.jsx("h2",{className:"text-3xl font-bold",children:"Get In Touch With Us"}),d.jsx("p",{className:"text-gray-600 dark:text-gray-300",children:"Get in Touch – Your Ride is Just a Call Away!"}),d.jsxs("div",{className:"flex gap-8 max-lg:flex-col",children:[d.jsxs("div",{className:"flex items-start gap-4",children:[d.jsx("div",{className:"bg-green-100 dark:bg-gray-700 p-3 rounded-full",children:d.jsx(GN,{className:"text-green-600 dark:text-green-300 text-xl"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-bold",children:"Our Office"}),d.jsxs("p",{className:"text-gray-600 dark:text-gray-300",children:["Office Address: Alabraj Street",d.jsx("br",{}),"Business Bay Dubai UAE"]})]})]}),d.jsxs("div",{className:"flex items-start gap-4",children:[d.jsx("div",{className:"bg-green-100 dark:bg-gray-700 p-3 rounded-full",children:d.jsx(U1,{className:"text-green-600 dark:text-green-300 text-xl"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"font-bold",children:"Contact Info"}),d.jsxs("p",{className:"text-gray-600 dark:text-gray-300",children:["+1 (917) 426-0742",d.jsx("br",{}),"support@aaaogo.com"]})]})]})]}),d.jsx("hr",{className:"border-gray-300 dark:border-gray-600"}),d.jsxs("div",{children:[d.jsx("h4",{className:"font-semibold",children:"Our Social Media :"}),d.jsx("div",{className:"flex gap-4 mt-2",children:e.map(({icon:n,url:a},s)=>d.jsx("a",{href:a,target:"_blank",rel:"noopener noreferrer",className:"p-2 rounded-full hover:bg-green-100 dark:hover:bg-gray-700 transition",children:d.jsx(n,{className:"text-gray-900 dark:text-white"})},s))})]})]}),d.jsxs("div",{className:"md:w-1/2 mt-10 md:mt-0 bg-green-100 dark:bg-gray-800 p-6 rounded-2xl",children:[d.jsx("h3",{className:"text-2xl font-bold mb-4",children:"Leave Us A Message"}),d.jsxs("form",{className:"space-y-4",children:[d.jsxs("div",{children:[d.jsx("label",{className:"block mb-1",children:"Name"}),d.jsx("input",{type:"text",placeholder:"Name",className:"w-full p-2 rounded border border-green-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-green-400"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block mb-1",children:"Email"}),d.jsx("input",{type:"email",placeholder:"Email",className:"w-full p-2 rounded border border-green-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-green-400"})]}),d.jsxs("div",{children:[d.jsx("label",{className:"block mb-1",children:"Message"}),d.jsx("textarea",{rows:"5",placeholder:"Message",className:"w-full p-2 rounded border border-green-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:ring-2 focus:ring-green-400"})]}),d.jsx("button",{type:"submit",className:"w-full bg-green-600 text-white font-semibold py-2 rounded hover:bg-green-700 dark:hover:bg-green-700 transition",children:"Send"})]})]})]})]})},Qk="/assets/bg-CMsJHjiS.jpg",Jk=[{title:"PASSIVE EARNING SYSTEM",content:"Unlike traditional ride-hailing services, AAAO Go offers a unique team-based earnings model. You can build a network, and even while you sleep, you earn bonuses from the rides and activities of your team."},{title:"MULTIPLE PAYMENT OPTIONS",content:"AAAO Go supports crypto, bank transfers, and mobile wallets, giving drivers and customers full flexibility in managing their earnings."},{title:"NO REGISTRATION FEES",content:"Most platforms charge drivers to join, but AAAO Go has zero registration fees, allowing more drivers to start earning without upfront costs."},{title:"INSTANT WITHDRAWALS",content:"Drivers don’t have to wait for weekly payments—they can withdraw their earnings anytime in crypto, to their bank, or mobile wallets."},{title:"ACCOUNT TRANSFER AFTER DEATH",content:"Unlike other ride-hailing apps, AAAO Go ensures that earnings and accounts can be legally transferred to family members in case of unforeseen circumstances."},{title:"MORE THAN JUST RIDES",content:"AAAO Go isn’t just for ride-hailing—it also supports services like car recovery, moving, delivery, and other on-demand services, creating more earning opportunities for drivers and service providers."}],e5=[{title:"WHAT IS AAAO GO ?",content:"AAAO Go is an online ride-hailing platform that connects passengers with drivers, offering safe, reliable, and affordable transportation services."},{title:"HOW IS AAAO GO DIFFERENT FROM OTHER RIDE-HAILING SERVICES ?",content:"AAAO Go offers flexible payment options, multiple service categories (including car recovery and delivery), and a seamless experience for both riders and drivers."},{title:"WHERE IS AAAO GO AVAILABLE ?",content:"Currently, AAAO Go is launching in the UAE, with plans for expansion to other regions."},{title:"IS THERE A REGISTRATION FEE FOR DRIVERS OR CUSTOMERS ?",content:"No, AAAO Go does not charge any registration fees for drivers or customers."}],t5=[{title:"HOW DO I BOOK A RIDE ON AAAO GO ?",content:"Simply download the AAAO Go app, sign up, enter your destination, choose your ride type, and confirm your booking."},{title:"WHAT PAYMENT METHODS DOES AAAO GO ACCEPT ?",content:"We accept cash, credit/debit cards, mobile wallets, and cryptocurrency payments for ride bookings."},{title:"CAN I SCHEDULE A RIDE IN ADVANCE ?",content:"Yes, AAAO Go allows you to schedule rides for a future time and date."},{title:"HOW CAN I TRACK MY RIDE ?",content:"You can track your ride in real time through the app after booking."},{title:"WHAT IF I FORGET SOMETHING IN THE CAR ?",content:"You can report lost items through the app, and we will assist in retrieving them."}],n5=[{title:"HOW CAN I BECOME A DRIVER WITH AAAO GO ?",content:"You can sign up as a driver through the app or website by providing the required documents and completing the verification process."},{title:"HOW DO DRIVERS GET PAID ?",content:"Drivers can withdraw their earnings anytime through crypto, bank transfers, or mobile wallets."},{title:"WHAT TYPE OF CAR CAN BE USED FOR AAAO GO ?",content:"AAAO Go accepts various car types depending on the service category. Details are available in the driver registration section."},{title:"IS THERE A DRIVER SUPPORT CENTER ?",content:"Yes, we have dedicated customer support for drivers to assist with any issues."}],r5=[{title:"HOW DO CUSTOMERS AND DRIVERS WITHDRAW MONEY ?",content:"Both customers and drivers can withdraw their AAAO Go balance anytime via bank transfers, mobile wallets, or cryptocurrency."},{title:"WHAT HAPPEN TO MY AAAO GO ACCOUNT IF I PASS AWAY ?",content:"AAAO Go allows account transfers to legal heirs after verification, ensuring continuity of earnings or service."}],a5=[{title:"IS AAAO GO SAFE FOR RIDERS AND DRIVERS ?",content:"Yes, we have strict safety measures, including driver verification, real-time tracking, and emergency contact features."},{title:"Can I share my ride details with family or friends?",content:"Yes, AAAO Go allows you to share your live ride location with trusted contacts."}],s5=[{title:"How can I contact AAAO Go for support ?",content:"You can reach our support team through the app’s help center, email, or customer service hotline."}],i5=()=>{const[e,n]=X.useState({general:null,questions:null,riders:null,drivers:null,payments:null,safety:null,contact:null}),a=(o,c)=>{n(u=>({...u,[o]:u[o]===c?null:c}))},s=(o,c,u)=>d.jsx("div",{className:"px-6 py-10 text-green-800 dark:text-green-300 md:flex md:gap-10",children:d.jsxs("div",{className:"w-[100%]",children:[d.jsx("h2",{className:"text-3xl font-bold mb-4",children:o}),u.map((f,h)=>d.jsxs("div",{className:"border-b border-green-300 dark:border-gray-600 py-4 cursor-pointer",children:[d.jsxs("div",{onClick:()=>a(c,h),className:"flex justify-between items-center",children:[d.jsx("h3",{className:`font-bold text-sm ${e[c]===h?"text-[#0B996F]":"text-[#0A4624] dark:text-green-300"}`,children:f.title}),e[c]===h?d.jsx(VN,{className:"text-[#0B996F]"}):d.jsx(FN,{className:"text-[#0B996F]"})]}),e[c]===h&&f.content&&d.jsx("p",{className:"mt-2 text-gray-700 dark:text-gray-300 text-sm",children:f.content})]},h))]})});return d.jsxs("div",{className:"bg-white p-5 dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300",children:[d.jsx("div",{className:"h-[500px] rounded-3xl my-7 w-[95%] mx-auto bg-black text-white",children:d.jsxs("div",{className:"relative bg-cover bg-center h-[500px] rounded-3xl overflow-hidden flex items-center mt-20 justify-center",style:{backgroundImage:`url(${Qk})`},children:[d.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-70"}),d.jsxs("div",{className:"relative z-10 text-center px-4",children:[d.jsxs("nav",{className:"text-sm text-white/80 mb-4 flex items-center justify-center",children:[d.jsx(xt,{to:"/",className:"hover:underline text-white",children:"Home"}),d.jsx("span",{className:"mx-2 text-[#387B55] text-2xl -mt-1",children:"›"}),d.jsx("span",{children:"FAQ"})]}),d.jsxs("h1",{className:"text-4xl md:text-5xl font-bold leading-tight",children:["Answers to Common Questions about Our"," ",d.jsx("br",{className:"max-lg:hidden"})," Services and Policies"]})]})]})}),d.jsxs("div",{className:"flex w-[100%] max-lg:flex-col",children:[d.jsxs("div",{className:"w-[100%]",children:[s("FAQS!","general",Jk),s("General Questions","questions",e5),s("For Riders","riders",t5),s("For Drivers","drivers",n5),s("Payments & Account Transfer","payments",r5),s("Safety & Security","safety",a5),s("Support & Contact","contact",s5)]}),d.jsx("div",{className:"px-6 pb-16 text-green-800 dark:text-green-300 md:flex md:gap-10 h-[20rem] mt-28 max-lg:mt-0",children:d.jsxs("div",{className:"mt-8 md:mt-0 bg-green-50 dark:bg-gray-800 rounded-2xl p-6 shadow-sm",children:[d.jsx("div",{className:"bg-white dark:bg-gray-700 w-12 h-12 flex items-center justify-center rounded-full mb-4 shadow",children:d.jsx(WN,{className:"text-green-600 dark:text-green-300 text-xl"})}),d.jsx("h3",{className:"text-xl font-semibold text-green-700 dark:text-green-300",children:"You have a different question?"}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300 mt-2 mb-4",children:"Reach out to our customer support team for prompt and personalized assistance."}),d.jsx(xt,{to:"/contact",className:"inline-block bg-[#0B996F] text-white font-semibold py-2 px-4 rounded hover:bg-green-700 dark:hover:bg-green-700 transition",children:"Contact Us"})]})})]}),d.jsxs("div",{className:"bg-[#e8f7f0] dark:bg-gray-800 relative py-20 mb-5 px-6 h-[130vh] max-lg:h-auto items-center flex w-[95%] rounded-3xl mx-auto",style:{backgroundImage:`url(${I1})`},children:[d.jsx("div",{className:"absolute inset-0 bg-[#E2F4EA] dark:bg-gray-900/50 opacity-50 rounded-3xl"}),d.jsxs("div",{className:"w-full px-3 z-10 mx-auto flex flex-col md:flex-row items-center justify-between gap-16",children:[d.jsxs("div",{className:"text-center md:text-left max-w-xl",children:[d.jsxs("h2",{className:"text-3xl md:text-5xl font-bold text-[#0B996F] mb-4",children:["The Easiest Way to Book ",d.jsx("br",{}),"Your Ride Register Now for ",d.jsx("br",{}),"Instant Access"]}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300 text-lg mb-6",children:"Book your ride quickly and effortlessly with just a few taps on our app"}),d.jsxs("div",{className:"flex flex-wrap justify-center md:justify-start gap-4",children:[d.jsx("a",{href:"#",children:d.jsx("img",{src:Y1,alt:"Google Play",className:"h-12 rounded-lg"})}),d.jsx("a",{href:"#",children:d.jsx("img",{src:X1,alt:"App Store",className:"h-12 rounded-lg"})})]})]}),d.jsxs("div",{className:"relative",children:[d.jsx("img",{src:G1,alt:"Happy user",className:"w-full max-w-md h-[100vh] max-lg:h-auto object-cover rounded-2xl"}),d.jsx("img",{src:q1,alt:"App Screenshot",className:"absolute top-32 -left-28 max-lg:-left-10 max-lg:w-20 max-lg:top-5 md:w-60 drop-shadow-xl"})]})]})]})]})},nw="/assets/logo-C1IfLRO8.png",o5=()=>{const e=In(),n=Wt(),a=Xe(ko),s=Xe(su),{theme:o}=Co(),[c,u]=X.useState({identifier:"",password:""}),[f,h]=X.useState(!1),[m,g]=X.useState({}),x=S=>{const{name:A,value:T}=S.target;u(C=>({...C,[A]:T})),g(C=>({...C,[A]:"",form:""}))},b=S=>/\S+@\S+\.\S+/.test(S)?{email:S,phoneNumber:"",username:""}:/^\+?\d{10,15}$/.test(S.replace(/\s/g,""))?{email:"",phoneNumber:S,username:""}:{email:"",phoneNumber:"",username:S},E=()=>{const S={};return c.identifier.trim()||(S.identifier="Email, phone number, or username is required"),c.password||(S.password="Password is required"),g(S),Object.keys(S).length===0};X.useEffect(()=>{s&&(g({form:typeof s=="string"?s:s.message||"An error occurred"}),e(Us()))},[s,e]);const _=async S=>{if(S.preventDefault(),g({}),e(Us()),!E())return;const A={...b(c.identifier),password:c.password};try{const T=await e(uc(A)).unwrap();console.log("Login successful:",T),n("/profile")}catch(T){console.error("Login failed:",T)}};return d.jsx("div",{className:`min-h-screen flex items-center justify-center px-4 py-8 transition-colors duration-300 ${o==="dark"?"bg-gradient-to-b from-gray-800 to-gray-900":"bg-gray-100"}`,children:d.jsxs("div",{className:`shadow-lg rounded-2xl flex flex-col md:flex-row w-full max-w-6xl my-8 sm:my-12 overflow-hidden transition-colors duration-300 ${o==="dark"?"bg-gray-800":"bg-white"}`,children:[d.jsxs("div",{className:"w-full md:w-1/2 flex flex-col justify-center items-center p-6 sm:p-10",children:[d.jsx("h2",{className:`text-2xl sm:text-3xl font-semibold mb-4 text-center ${o==="dark"?"text-yellow-400":"text-[#013220]"}`,children:"Sign in to Your Account"}),m.form&&d.jsx("p",{className:`text-sm mb-4 text-center ${o==="dark"?"text-red-400":"text-red-600"}`,children:m.form}),d.jsx("div",{className:"flex space-x-3 mb-5",children:[lu,D1,L1].map((S,A)=>d.jsx("button",{className:`border rounded-full p-2 w-10 h-10 flex items-center justify-center transition-colors duration-300 ${o==="dark"?"border-gray-500 hover:bg-gray-600":"border-gray-300 hover:bg-gray-100"}`,disabled:a,children:d.jsx(S,{className:o==="dark"?"text-gray-300":"text-gray-600"})},A))}),d.jsxs("form",{onSubmit:_,className:"w-full max-w-sm space-y-4",children:[d.jsxs("div",{children:[m.identifier&&d.jsx("p",{className:`text-sm mb-1 ${o==="dark"?"text-red-400":"text-red-600"}`,children:m.identifier}),d.jsx("input",{type:"text",name:"identifier",value:c.identifier,onChange:x,placeholder:"Email, Phone, or Username",disabled:a,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${o==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${m.identifier?"!border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${m.identifier?"!border-red-600":""}`}`})]}),d.jsxs("div",{children:[m.password&&d.jsx("p",{className:`text-sm mb-1 ${o==="dark"?"text-red-400":"text-red-600"}`,children:m.password}),d.jsxs("div",{className:"relative",children:[d.jsx("input",{type:f?"text":"password",name:"password",value:c.password,onChange:x,placeholder:"Password",disabled:a,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none pr-10 transition-colors duration-300 ${o==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${m.password?"!border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${m.password?"!border-red-600":""}`}`}),d.jsx("div",{className:`absolute right-3 top-3 cursor-pointer ${o==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>h(!f),children:f?d.jsx(go,{}):d.jsx(yo,{})})]})]}),d.jsxs("div",{className:`flex justify-between items-center text-sm ${o==="dark"?"text-gray-300":"text-gray-600"}`,children:[d.jsxs("label",{className:"flex items-center gap-2",children:[d.jsx("input",{type:"checkbox",className:`w-4 h-4 ${o==="dark"?"text-yellow-400":"text-[#013220]"}`}),"Remember me"]}),d.jsx(xt,{to:"/forgot-password",className:`hover:underline ${o==="dark"?"text-teal-400":"text-teal-600"}`,children:"Forgot password?"})]}),d.jsx("button",{type:"submit",disabled:a,className:`w-full p-3 font-semibold rounded-full transition-colors duration-300 disabled:opacity-50 disabled:cursor-not-allowed ${o==="dark"?"bg-yellow-500 text-gray-900 hover:bg-yellow-400":"bg-yellow-500 text-[#013220] hover:bg-yellow-400"}`,children:a?"Signing in...":"Sign In"})]})]}),d.jsxs("div",{className:`w-full md:w-1/2 flex flex-col justify-center items-center p-8 transition-colors duration-300 ${o==="dark"?"bg-gradient-to-b from-gray-900 to-gray-700 text-yellow-400":"bg-gradient-to-b from-green-900 to-green-700 text-yellow-400"}`,children:[d.jsxs("div",{className:"flex flex-col items-center mb-6",children:[d.jsx("img",{src:nw,alt:"Aao Go Logo",className:"w-20 h-20 object-contain mb-2"}),d.jsx("h2",{className:"text-xl font-semibold text-yellow-400",children:"Welcome to Aao Go"})]}),d.jsx("p",{className:"mt-2 text-sm sm:text-base text-center text-yellow-400",children:"Sign in and continue your journey with us."}),d.jsx("p",{className:"text-center max-w-xs mb-6 z-10 text-sm text-yellow-400",children:"Don’t have an account? Sign up now!"}),d.jsx(xt,{to:"/signup",className:`border px-6 py-2 rounded-full transition text-sm ${o==="dark"?"border-yellow-400 hover:bg-yellow-400 hover:text-gray-900":"border-yellow-400 hover:bg-yellow-400 hover:text-green-900"}`,children:"Sign Up"})]})]})})},l5=[{code:"+1",label:"US (+1)"},{code:"+44",label:"UK (+44)"},{code:"+92",label:"Pakistan (+92)"},{code:"+91",label:"India (+91)"},{code:"+971",label:"UAE (+971)"},{code:"+61",label:"Australia (+61)"},{code:"+81",label:"Japan (+81)"},{code:"+86",label:"China (+86)"}],c5=()=>{const e=In(),n=Wt(),[a]=wN(),s=Xe(ko),o=Xe(su),{theme:c}=Co(),[u,f]=X.useState({username:"",firstName:"",lastName:"",email:"",countryCode:"+92",phoneNumber:"",password:"",confirmPassword:"",sponsorBy:"",gender:"",otp:""}),[h,m]=X.useState({}),[g,x]=X.useState(!1),[b,E]=X.useState(!1),[_,S]=X.useState(""),[A,T]=X.useState(""),[C,L]=X.useState(!1),[q,N]=X.useState(0),[z,F]=X.useState(!0),[H,M]=X.useState(!1);X.useEffect(()=>{const j=a.get("ref");j&&f(Z=>({...Z,sponsorBy:j}))},[a]),X.useEffect(()=>{let j;return q>0&&(j=setInterval(()=>{N(Z=>Z<=1?(F(!0),0):Z-1)},1e3)),()=>{j&&clearInterval(j)}},[q]),X.useEffect(()=>{const Z=setTimeout(async()=>{if(u.sponsorBy.trim())try{const w=(await pt.get(`${kn}${rt.GET_USER_BY_USERNAME}?username=${u.sponsorBy}`,{headers:{"Content-Type":"application/json"}})).data.user;w&&w.firstName&&w.lastName?(S(`${w.firstName} ${w.lastName}`),T("")):(S(""),T("Sponsor not found"))}catch(W){console.error("Error fetching sponsor name:",W),S(""),T(W.response?.status===404?"Invalid sponsor username":"Error fetching sponsor details")}else S(""),T("")},500);return()=>clearTimeout(Z)},[u.sponsorBy]),X.useEffect(()=>{if(o){const j={};typeof o=="string"?j.form=o:o.errors?Object.entries(o.errors).forEach(([Z,W])=>{j[Z]=W}):o.message&&(j.form=o.message),m(j),e(Us())}},[o,e]);const R=j=>{const{name:Z,value:W}=j.target;f(w=>({...w,[Z]:W})),m(w=>({...w,[Z]:"",form:""}))},K=()=>{let j=!0;const Z={};return u.username.trim()?/^[a-zA-Z0-9_]{3,30}$/.test(u.username)||(Z.username="Username must be 3-30 characters and contain only letters, numbers, or underscores",j=!1):(Z.username="Username is required",j=!1),u.firstName.trim()||(Z.firstName="First name is required",j=!1),u.email.trim()?/^\S+@\S+\.\S+$/.test(u.email)||(Z.email="Email is invalid",j=!1):(Z.email="Email is required",j=!1),u.phoneNumber.trim()?/^\d{10}$/.test(u.phoneNumber)||(Z.phoneNumber="Phone number must be 10 digits",j=!1):(Z.phoneNumber="Phone number is required",j=!1),u.password?u.password.length<8?(Z.password="Password must be at least 8 characters",j=!1):(!/[A-Z]/.test(u.password)||!/[0-9]/.test(u.password))&&(Z.password="Password must contain at least one uppercase letter and one number",j=!1):(Z.password="Password is required",j=!1),u.confirmPassword?u.password!==u.confirmPassword&&(Z.confirmPassword="Passwords do not match",j=!1):(Z.confirmPassword="Confirm password is required",j=!1),u.gender||(Z.gender="Gender is required",j=!1),C&&!u.otp.trim()?(Z.otp="OTP is required",j=!1):C&&u.otp.length!==6&&(Z.otp="OTP must be 6 digits",j=!1),m(Z),j},P=async()=>{const j={};if(u.email.trim()){if(!/\S+@\S+\.\S+/.test(u.email)){j.email="Email is invalid",m(j);return}}else{j.email="Email is required",m(j);return}try{M(!0);const Z=await pt.post(`${kn}/email-verification/send-otp`,{email:u.email.trim()});console.log("OTP sent successfully:",Z.data),L(!0),F(!1),N(60)}catch(Z){console.error("Failed to send OTP:",Z),m(W=>({...W,email:Z.response?.data?.message||"Failed to send OTP"}))}finally{M(!1)}},V=async j=>{if(j.preventDefault(),m({}),e(Us()),!!K())try{const Z=`${u.countryCode}${u.phoneNumber}`,W={...u,phoneNumber:Z},w=await e(dc(W)).unwrap();console.log("Signup successful:",w),Be.createSession(w.token,w.user),n("/")}catch(Z){console.error("Signup failed:",Z)}};return d.jsx("div",{className:`min-h-screen flex items-center justify-center px-4 py-8 transition-colors duration-300 ${c==="dark"?"bg-gradient-to-b from-gray-800 to-gray-900":"bg-gray-100"}`,children:d.jsxs("div",{className:`shadow-lg rounded-2xl flex flex-col md:flex-row w-full max-w-6xl my-8 sm:my-12 overflow-hidden transition-colors duration-300 ${c==="dark"?"bg-gray-800":"bg-white"}`,children:[d.jsxs("div",{className:"w-full md:w-1/2 flex flex-col justify-center items-center p-6 sm:p-10",children:[d.jsx("h2",{className:`text-2xl sm:text-3xl font-semibold mb-4 text-center ${c==="dark"?"text-yellow-400":"text-[#013220]"}`,children:"Create Your Account"}),h.form&&d.jsx("p",{className:`text-sm mb-4 text-center ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.form}),d.jsx("div",{className:"flex space-x-3 mb-5",children:[lu,D1,L1].map((j,Z)=>d.jsx("button",{className:`border rounded-full p-2 w-10 h-10 flex items-center justify-center transition-colors duration-300 ${c==="dark"?"border-gray-500 hover:bg-gray-600":"border-gray-300 hover:bg-gray-100"}`,disabled:s,children:d.jsx(j,{className:c==="dark"?"text-gray-300":"text-gray-600"})},Z))}),d.jsxs("form",{onSubmit:V,className:"w-full max-w-sm space-y-4",children:[d.jsxs("div",{children:[h.username&&d.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.username}),d.jsx("input",{type:"text",name:"username",value:u.username,onChange:R,placeholder:"Username *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.username?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.username?"border-red-600":""}`}`})]}),d.jsxs("div",{className:"flex gap-3",children:[d.jsxs("div",{className:"w-1/2",children:[h.firstName&&d.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.firstName}),d.jsx("input",{type:"text",name:"firstName",value:u.firstName,onChange:R,placeholder:"First Name *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.firstName?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.firstName?"border-red-600":""}`}`})]}),d.jsxs("div",{className:"w-1/2",children:[h.lastName&&d.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.lastName}),d.jsx("input",{type:"text",name:"lastName",value:u.lastName,onChange:R,placeholder:"Last Name",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.lastName?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.lastName?"border-red-600":""}`}`})]})]}),d.jsxs("div",{children:[h.email&&d.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.email}),d.jsx("input",{type:"email",name:"email",value:u.email,onChange:R,placeholder:"Email *",disabled:s||C,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.email?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.email?"border-red-600":""}`}`})]}),d.jsxs("div",{children:[h.otp&&d.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.otp}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{type:"text",name:"otp",value:u.otp,onChange:R,placeholder:"Enter 6-digit OTP *",maxLength:6,disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.otp?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.otp?"border-red-600":""}`}`}),d.jsx("button",{type:"button",onClick:P,disabled:s||H||!C&&!u.email||C&&!z,className:`px-3 py-2 font-semibold rounded-lg transition-colors duration-300 whitespace-nowrap ${c==="dark"?"bg-yellow-500 text-gray-900 hover:bg-yellow-400 disabled:bg-gray-600 disabled:text-gray-400":"bg-yellow-500 text-[#013220] hover:bg-yellow-400 disabled:bg-gray-300 disabled:text-gray-600"} disabled:opacity-50 disabled:cursor-not-allowed`,children:H?"Sending...":C?z?"Resend":`Resend (${q}s)`:"Send OTP"})]})]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("div",{className:"w-1/3",children:d.jsxs("select",{name:"countryCode",value:u.countryCode,onChange:R,disabled:s,className:`w-full rounded-lg px-2 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none text-sm sm:text-base transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white ${h.phoneNumber?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 ${h.phoneNumber?"border-red-600":""}`}`,children:[d.jsx("option",{value:"",disabled:!0,children:"Select Code *"}),l5.map(j=>d.jsx("option",{value:j.code,children:j.label},j.code))]})}),d.jsxs("div",{className:"w-2/3",children:[h.phoneNumber&&d.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.phoneNumber}),d.jsx("input",{type:"tel",name:"phoneNumber",value:u.phoneNumber,onChange:R,placeholder:"Phone Number *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.phoneNumber?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.phoneNumber?"border-red-600":""}`}`})]})]}),d.jsxs("div",{children:[h.gender&&d.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.gender}),d.jsxs("select",{name:"gender",value:u.gender,onChange:R,disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white ${h.gender?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 ${h.gender?"border-red-600":""}`}`,children:[d.jsx("option",{value:"",children:"Select Gender *"}),d.jsx("option",{value:"Male",children:"Male"}),d.jsx("option",{value:"Female",children:"Female"}),d.jsx("option",{value:"Other",children:"Other"})]})]}),d.jsxs("div",{children:[A&&d.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:A}),d.jsx("input",{type:"text",name:"sponsorBy",value:u.sponsorBy,onChange:R,placeholder:"Sponsor Code (Optional)",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${A?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${A?"border-red-600":""}`}`}),_&&d.jsxs("p",{className:`text-sm mt-1 ${c==="dark"?"text-gray-300":"text-gray-600"}`,children:["Sponsor: ",_]})]}),d.jsxs("div",{children:[h.password&&d.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.password}),d.jsxs("div",{className:"relative",children:[d.jsx("input",{type:g?"text":"password",name:"password",value:u.password,onChange:R,placeholder:"Password *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none pr-10 transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.password?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.password?"border-red-600":""}`}`}),d.jsx("div",{className:`absolute right-3 top-3 cursor-pointer ${c==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>x(!g),children:g?d.jsx(go,{}):d.jsx(yo,{})})]})]}),d.jsxs("div",{children:[h.confirmPassword&&d.jsx("p",{className:`text-sm mb-1 ${c==="dark"?"text-red-400":"text-red-600"}`,children:h.confirmPassword}),d.jsxs("div",{className:"relative",children:[d.jsx("input",{type:b?"text":"password",name:"confirmPassword",value:u.confirmPassword,onChange:R,placeholder:"Confirm Password *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none pr-10 transition-colors duration-300 ${c==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.confirmPassword?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.confirmPassword?"border-red-600":""}`}`}),d.jsx("div",{className:`absolute right-3 top-3 cursor-pointer ${c==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>E(!b),children:b?d.jsx(go,{}):d.jsx(yo,{})})]})]}),d.jsx("button",{type:"submit",disabled:s,className:`w-full p-3 font-semibold rounded-full transition-colors duration-300 disabled:opacity-50 disabled:cursor-not-allowed ${c==="dark"?"bg-yellow-500 text-gray-900 hover:bg-yellow-400":"bg-yellow-500 text-[#013220] hover:bg-yellow-400"}`,children:s?"Creating Account...":"Sign Up"})]})]}),d.jsxs("div",{className:`w-full md:w-1/2 flex flex-col justify-center items-center p-8 transition-colors duration-300 ${c==="dark"?"bg-gradient-to-b from-gray-900 to-gray-700":"bg-gradient-to-b from-green-900 to-green-700"} text-yellow-400`,children:[d.jsx("img",{src:nw,alt:"AAO GO Logo",className:"w-28 sm:w-36 md:w-44 mb-4"}),d.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-center",children:"Welcome to AAO GO"}),d.jsx("p",{className:"mt-2 text-sm sm:text-base text-center text-yellow-200",children:"Sign up and start your journey with us."}),d.jsx("p",{className:"text-center max-w-xs mb-6 z-10 text-sm text-yellow-400",children:"Already have an account? Sign in to continue!"}),d.jsx(xt,{to:"/login",className:`border px-6 py-2 rounded-full transition text-sm ${c==="dark"?"border-yellow-400 hover:bg-yellow-400 hover:text-gray-900":"border-yellow-400 hover:bg-yellow-400 hover:text-green-900"}`,children:"Sign In"})]})]})})},u5=()=>{const e=In(),n=Wt(),a=Xe(ko),s=Xe(su),[o,c]=X.useState({email:""}),[u,f]=X.useState({}),h=x=>{const{name:b,value:E}=x.target;c(_=>({..._,[b]:E})),u[b]&&f(_=>({..._,[b]:""}))},m=()=>{const x={};return o.email.trim()?/\S+@\S+\.\S+/.test(o.email)||(x.email="Email is invalid"):x.email="Email is required",f(x),Object.keys(x).length===0},g=async x=>{if(x.preventDefault(),e(Us()),!m()){Lb(u);return}try{console.log("ForgotPassword - Starting password reset for email:",o.email);const b=await e(fc({email:o.email})).unwrap();if(console.log("ForgotPassword - OTP sent, result:",b),!b.userId){console.error("ForgotPassword - No userId in response, received:",b),it("Failed to initiate password reset. Please try again.");return}console.log("ForgotPassword - Navigating to reset-password with state:",{userId:b.userId,email:o.email,token:b.token}),n("/reset-password",{state:{userId:b.userId,email:o.email}})}catch(b){console.error("ForgotPassword failed:",b),it(b||"Failed to send OTP. Please try again.")}};return d.jsx("div",{className:"min-h-screen flex items-center justify-center rounded-xl bg-gradient-to-b from-green-200 to-green-300 dark:from-gray-800 dark:to-gray-900",children:d.jsxs("div",{className:"bg-[#E4E4E4] dark:bg-gray-800 rounded-2xl shadow-md dark:shadow-gray-700 w-[90%] max-w-md p-6 md:p-8",children:[d.jsx("h2",{className:"text-3xl font-bold mb-6 text-center text-gray-900 dark:text-white",children:"Forgot Password"}),s&&d.jsx("div",{className:"bg-red-500 bg-opacity-20 text-red-500 dark:text-red-400 p-3 rounded-lg mb-4 text-center",children:s}),d.jsxs("form",{onSubmit:g,className:"space-y-5",children:[d.jsxs("div",{children:[d.jsxs("label",{className:"block text-sm font-semibold text-[#0A4624] dark:text-gray-200 mb-1",children:["Email ",d.jsx("span",{className:"text-red-500 dark:text-red-400",children:"*"})]}),d.jsx("input",{type:"email",name:"email",value:o.email,onChange:h,className:"w-full bg-white dark:bg-gray-700 text-gray-900 dark:text-white border border-gray-300 dark:border-gray-600 rounded px-4 py-1 outline-none focus:ring-2 focus:ring-blue-500 dark:focus:ring-blue-400 placeholder-gray-400 dark:placeholder-gray-400",placeholder:"Enter your email"}),u.email&&d.jsx("p",{className:"text-red-500 dark:text-red-400 text-xs mt-1",children:u.email})]}),d.jsx("button",{type:"submit",disabled:a,className:"w-full bg-blue-500 text-white px-6 py-2 rounded hover:bg-blue-600 dark:bg-blue-600 dark:hover:bg-blue-500 disabled:opacity-50 disabled:cursor-not-allowed transition",children:a?"Sending OTP...":"Send OTP"})]})]})})},d5=()=>{const e=In(),n=Wt(),a=Mn(),s=Xe(ko),o=Xe(su),{theme:c}=Co(),{userId:u,email:f}=a.state||{},h=u||localStorage.getItem("signupUserId"),m=f||localStorage.getItem("signupEmail");console.log("ResetPassword - location.state:",{stateUserId:u,stateEmail:f}),console.log("ResetPassword - localStorage:",{userId:h,email:m}),u&&f&&(localStorage.setItem("signupUserId",u),localStorage.setItem("signupEmail",f));const[g,x]=X.useState({resetOtp:"",password:"",confirmPassword:""}),[b,E]=X.useState(!1),[_,S]=X.useState(!1),[A,T]=X.useState({}),C=N=>{const{name:z,value:F}=N.target;x(H=>({...H,[z]:F})),A[z]&&T(H=>({...H,[z]:""}))},L=()=>{const N={};return g.resetOtp.trim()||(N.resetOtp="OTP is required"),g.password?g.password.length<8&&(N.password="Password must be at least 8 characters"):N.password="Password is required",g.password!==g.confirmPassword&&(N.confirmPassword="Passwords do not match"),T(N),Object.keys(N).length===0},q=async N=>{if(N.preventDefault(),e(Us()),!L()){Lb(A),e(Hf(!1));return}if(!h){it("Cannot reset password: User ID is missing."),e(Hf(!1));return}try{console.log("ResetPassword - Starting password reset for userId:",h);const z={userId:h,resetOtp:g.resetOtp,password:g.password},F=await e(hc(z)).unwrap();console.log("ResetPassword - Password reset successful, result:",F),localStorage.removeItem("signupUserId"),localStorage.removeItem("signupEmail"),n("/login",{replace:!0})}catch(z){console.error("ResetPassword failed:",z),e(Hf(!1)),it(z.message||"Failed to reset password.")}};return d.jsx("div",{className:`min-h-screen flex items-center justify-center transition-colors duration-300 ${c==="dark"?"bg-gradient-to-b from-gray-800 to-gray-900":"bg-gradient-to-b from-green-200 to-green-300"}`,children:d.jsxs("div",{className:`rounded-2xl shadow-md w-[90%] max-w-md p-6 md:p-8 transition-colors duration-300 ${c==="dark"?"bg-gray-700 text-white":"bg-[#E4E4E4] text-gray-900"}`,children:[d.jsx("h2",{className:"text-3xl font-bold mb-6 text-center",children:"Reset Password"}),o&&d.jsx("div",{className:`bg-red-500 bg-opacity-20 p-3 rounded-lg mb-4 text-center ${c==="dark"?"text-red-300":"text-red-500"}`,children:o}),d.jsxs("form",{onSubmit:q,className:"space-y-5",children:[d.jsxs("div",{children:[d.jsxs("label",{className:`block text-sm font-semibold mb-1 ${c==="dark"?"text-gray-200":"text-[#0A4624]"}`,children:["OTP ",d.jsx("span",{className:"text-red-500",children:"*"})]}),d.jsx("input",{type:"text",name:"resetOtp",value:g.resetOtp,onChange:C,className:`w-full border rounded px-4 py-1 outline-none transition-colors duration-300 ${c==="dark"?"bg-gray-600 border-gray-500 text-white placeholder-gray-300":"bg-white border-gray-300 text-gray-900 placeholder-gray-500"}`,placeholder:"Enter the OTP sent to your email",disabled:s}),A.resetOtp&&d.jsx("p",{className:"text-red-500 text-xs mt-1",children:A.resetOtp})]}),d.jsxs("div",{className:"relative",children:[d.jsxs("label",{className:`block text-sm font-semibold mb-1 ${c==="dark"?"text-gray-200":"text-[#0A4624]"}`,children:["New Password ",d.jsx("span",{className:"text-red-500",children:"*"})]}),d.jsx("input",{type:b?"text":"password",name:"password",value:g.password,onChange:C,className:`w-full border rounded px-4 py-1 outline-none pr-10 transition-colors duration-300 ${c==="dark"?"bg-gray-600 border-gray-500 text-white placeholder-gray-300":"bg-white border-gray-300 text-gray-900 placeholder-gray-500"}`,placeholder:"Enter your new password",disabled:s}),d.jsx("div",{className:`absolute right-3 top-9 cursor-pointer ${c==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>E(!b),children:b?d.jsx(go,{}):d.jsx(yo,{})}),A.password&&d.jsx("p",{className:"text-red-500 text-xs mt-1",children:A.password})]}),d.jsxs("div",{className:"relative",children:[d.jsxs("label",{className:`block text-sm font-semibold mb-1 ${c==="dark"?"text-gray-200":"text-[#0A4624]"}`,children:["Confirm Password ",d.jsx("span",{className:"text-red-500",children:"*"})]}),d.jsx("input",{type:_?"text":"password",name:"confirmPassword",value:g.confirmPassword,onChange:C,className:`w-full border rounded px-4 py-1 outline-none pr-10 transition-colors duration-300 ${c==="dark"?"bg-gray-600 border-gray-500 text-white placeholder-gray-300":"bg-white border-gray-300 text-gray-900 placeholder-gray-500"}`,placeholder:"Confirm your new password",disabled:s}),d.jsx("div",{className:`absolute right-3 top-9 cursor-pointer ${c==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>S(!_),children:_?d.jsx(go,{}):d.jsx(yo,{})}),A.confirmPassword&&d.jsx("p",{className:"text-red-500 text-xs mt-1",children:A.confirmPassword})]}),d.jsx("button",{type:"submit",disabled:s,className:`w-full px-6 py-2 rounded text-white font-medium transition-all duration-300 shadow-sm hover:scale-105 disabled:opacity-50 disabled:cursor-not-allowed ${c==="dark"?"bg-blue-600 hover:bg-blue-700":"bg-blue-500 hover:bg-blue-600"}`,children:s?"Resetting...":"Reset Password"})]})]})})},f5=({label:e,amount:n,link:a})=>d.jsxs(xt,{to:a,className:"shadow rounded-xl p-4 flex flex-col items-center w-36 cursor-pointer hover:scale-105 transition-transform",style:{background:"linear-gradient(135deg, #013220, #083A06)",border:"1px solid #FFD700",color:"#FFD700",textDecoration:"none"},children:[d.jsx("span",{className:"font-medium text-center",children:e}),d.jsxs("span",{className:"text-lg font-bold",children:["AED ",n.toFixed(2)]})]});function h5(){const e=Wt(),n=In(),a=Xe(d1),s=Xe(f1);Xe(Nr),X.useEffect(()=>{n(so())},[n]);const o=a?.summary||{totalEarnings:{ddr:0,crr:0,bbr:0,hlr:0,countryAmbassador:0}},c=a?.wallet||{currentBalance:0,totalEarned:0},u=[{label:"DDR",amount:o.totalEarnings.ddr||0,link:"/ddr"},{label:"CRR",amount:o.totalEarnings.crr||0,link:"/crr"},{label:"BBR",amount:o.totalEarnings.bbr||0,link:"/bbr"},{label:"HLR",amount:o.totalEarnings.hlr||0,link:"/hlr"},{label:"COUNTRY Ambassador",amount:o.totalEarnings.countryAmbassador||0,link:"/RegionalAmbassador"}];return d.jsxs("div",{className:"min-h-screen mb-10 flex flex-col items-center p-6 mt-20 transition-colors duration-300",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[d.jsx("div",{className:"w-full max-w-lg mb-4",children:d.jsx("button",{onClick:()=>e(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),d.jsx("h1",{className:"text-2xl font-bold mb-6",children:"MLM Bonuses"}),d.jsxs("div",{className:"grid grid-cols-2 gap-6 rounded-2xl p-6 w-full max-w-lg mb-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm",children:"Total Earned (Lifetime)"}),d.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",c.totalEarned.toFixed(2)]})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm",children:"Available Balance"}),d.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",c.currentBalance.toFixed(2)]})]})]}),a?.user&&d.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-lg mb-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsx("h2",{className:"text-xl font-bold mb-4",children:"User Information"}),d.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm",children:"Username"}),d.jsx("p",{className:"font-bold",children:a.user.username})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm",children:"Name"}),d.jsxs("p",{className:"font-bold",children:[a.user.firstName," ",a.user.lastName]})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm",children:"Sponsor ID"}),d.jsx("p",{className:"font-bold",children:a.user.sponsorId})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm",children:"Joined"}),d.jsx("p",{className:"font-bold",children:new Date(a.user.joinedAt).toLocaleDateString()})]})]})]}),s&&d.jsx("div",{className:"text-center py-8",children:d.jsx("p",{className:"text-xl",children:"Loading MLM dashboard data..."})}),d.jsx("div",{className:"flex gap-4 flex-wrap justify-center mb-6",children:u.map((f,h)=>d.jsx(f5,{label:f.label,amount:f.amount,link:f.link},h))})]})}const rv=()=>{const e=In(),n=Wt(),{userId:a}=CA(),s=Xe(F4),o=Xe(V4),c=Xe(H4),u=Xe(Nr),f=Xe(c1),h=Xe(mm),[m,g]=X.useState(null),[x,b]=X.useState(!0),[E,_]=X.useState(1),[S,A]=X.useState(null),[T,C]=X.useState(!1),[L,q]=X.useState(null),[N,z]=X.useState([]),[F,H]=X.useState(!1),[M,R]=X.useState(""),[K,P]=X.useState(!1),[V,j]=X.useState(!1),[Z,W]=X.useState(null),[w,ue]=X.useState(null),[I,v]=X.useState([]),[O,U]=X.useState({}),[J,Q]=X.useState(!1),[ne,ie]=X.useState(null),be=()=>{const ee=Be.getToken(),xe=Be.getUser(),_e=Be.isAuthenticated(),Ce=!!(ee&&xe&&_e);return b(Ce),console.log("MLMTree - Session validity check:",{sessionToken:!!ee,sessionUser:!!xe,sessionIsAuth:_e,isValid:Ce}),Ce},Se=async ee=>{try{H(!0),q(null),console.log("Loading specific user tree for:",ee);const xe=await hn.getReferralTree(ee);console.log("Specific user tree response:",xe.data),console.log("Response structure:",{hasReferralTree:!!xe.data.referralTree,hasUser:!!xe.data.user,referralTreeUser:xe.data.referralTree?.user,directUser:xe.data.user}),A(xe.data);const _e=xe.data.referralTree?.user||xe.data.user;if(console.log("Setting selectedMember to:",_e),g(_e),(xe.data.referralTree?.user||xe.data.user)&&(!(window.location.pathname===`/user-tree/${ee}`)||N.length===0)){const He=[...N,{member:xe.data.referralTree?.user||xe.data.user}];z(He),sessionStorage.setItem("treeHistory",JSON.stringify(He))}}catch(xe){console.error("Error loading specific user tree:",xe),q(xe.response?.data?.message||"Failed to load user tree")}finally{H(!1)}},Ee=async()=>{try{const ee=await hn.getReferralLink();return R(ee.data.referralLink),ee.data.referralLink}catch(ee){return console.error("Error fetching referral link:",ee),P(!1),alert("Failed to fetch referral link. Please try again."),null}},Ne=async()=>{try{const ee=M||await Ee();ee&&(await navigator.clipboard.writeText(ee),P(!0),setTimeout(()=>P(!1),2e3))}catch(ee){console.error("Error copying referral link:",ee),P(!1),alert("Failed to copy referral link. Please try again.")}},Oe=async ee=>{try{return(await hn.getUserById(ee)).data.user}catch(xe){return console.error(`Error fetching details for user ${ee}:`,xe),null}},Le=async ee=>{Q(!0),ie(null);try{const xe=ee.map(async He=>{if(O[He.id])return{id:He.id,details:O[He.id]};const an=await Oe(He.id);return{id:He.id,details:an}}),Ce=(await Promise.all(xe)).reduce((He,{id:an,details:ft})=>(ft&&(He[an]=ft),He),{...O});U(Ce)}catch(xe){console.error("Error fetching level members details:",xe),ie("Failed to load member details")}finally{Q(!1)}},Re=async ee=>{try{W(ee),j(!0);const xe=await hn.getUserById(ee.id);ue(xe.data.user);const _e=await hn.getReferralTree(ee.id),Ce=_e.data.referralTree?.members||_e.data.referralTree?.levels?.members||_e.data.members||{},He=Object.keys(Ce).filter(ft=>ft.startsWith("level")).reduce((ft,gn)=>[...ft,...Ce[gn]],[]),an=await Promise.all(He.map(async ft=>{try{return(await hn.getUserById(ft.id)).data.user}catch(gn){return console.error(`Error fetching details for user ${ft.id}:`,gn),{...ft,selfieImage:null}}}));v(an)}catch(xe){console.error("Error fetching member details:",xe),ue(null),v([]),alert("Failed to load member details. Please try again.")}},k=ee=>{console.log("=== handleNavigateToMemberTree DEBUG ==="),console.log("Full member object:",ee),console.log("Member ID:",ee.id),console.log("Member _id:",ee._id),console.log("Member userId:",ee.userId),console.log("All member keys:",Object.keys(ee)),console.log("Navigating to:",`/user-tree/${ee.id}`),console.log("=== END DEBUG ===");const xe=[...N,{member:ee}];z(xe),sessionStorage.setItem("treeHistory",JSON.stringify(xe)),n(`/user-tree/${ee.id}`)},de=ee=>{const xe=N[ee];if(xe){const _e=N.slice(0,ee+1);z(_e),sessionStorage.setItem("treeHistory",JSON.stringify(_e)),n(`/user-tree/${xe.member.id}`)}},ce=()=>{z([]),sessionStorage.removeItem("treeHistory"),n("/tree")};X.useEffect(()=>{console.log("=== TreeView useEffect triggered ==="),console.log("MLMTree component mounted"),console.log("Current token:",f),console.log("Current user:",u),console.log("Is authenticated:",h),console.log("URL userId:",a),console.log("URL pathname:",window.location.pathname),console.log("useParams userId:",a);const ee=be();console.log("Session valid:",ee),ee?a?(console.log("=== LOADING SPECIFIC USER TREE ==="),console.log("Target userId:",a),console.log("Loading specific user tree from URL"),A(null),g(null),Se(a)):(console.log("=== LOADING MAIN TREE ==="),console.log("Dispatching fetchReferralTree with valid session"),A(null),g(null),e(Ds()),Ee()):console.log("No valid session found, skipping API call"),console.log("=== End of useEffect ===")},[e,f,u,h,a]),X.useEffect(()=>{const ee=xe=>{console.log("MLMTree - Session cleared event received:",xe.detail),b(!1),e(U4())};return window.addEventListener("sessionCleared",ee),()=>window.removeEventListener("sessionCleared",ee)},[e]),X.useEffect(()=>{const ee=sessionStorage.getItem("treeHistory");if(ee)try{z(JSON.parse(ee))}catch(xe){console.error("Error parsing tree history:",xe),sessionStorage.removeItem("treeHistory")}},[]),X.useEffect(()=>{const xe=!!a?S:s,Ce=(xe?.referralTree?.members||xe?.referralTree?.levels?.members||xe?.members||{})[`level${E}`]||[];Ce.length>0?Le(Ce):U({})},[E,S,s]);const G=ee=>ee?new Date(ee).toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"numeric"}):"N/A";if(!x||!h||!u)return d.jsx("div",{className:"min-h-screen mt-18",style:{backgroundColor:"#083A06"},children:d.jsx("div",{className:"flex items-center justify-center h-screen",children:d.jsxs("div",{className:"text-center",children:[d.jsx("h2",{className:"text-3xl font-bold mb-4",style:{color:"#FFD700"},children:"Authentication Required"}),d.jsx("p",{className:"text-lg mb-6",style:{color:"#FFD700"},children:x?"Please log in to view your referral tree.":"Your session has expired. Please log in again."}),d.jsx("button",{onClick:()=>n("/login"),className:"px-8 py-3 rounded-lg font-semibold transition-colors",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Go to Login"})]})})});if(o||F||J)return d.jsx("div",{className:"min-h-screen mt-28",style:{backgroundColor:"#083A06"},children:d.jsx("div",{className:"flex items-center justify-center h-screen",children:d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-b-2 mx-auto mb-4",style:{borderColor:"#FFD700"}}),d.jsx("p",{className:"text-xl",style:{color:"#FFD700"},children:a?"Loading user tree...":J?"Loading member details...":"Loading your referral tree..."})]})})});if(c||L||ne)return d.jsx("div",{className:"min-h-screen mt-28",style:{backgroundColor:"#083A06"},children:d.jsx("div",{className:"flex items-center justify-center h-screen",children:d.jsxs("div",{className:"text-center",children:[d.jsx("h2",{className:"text-3xl font-bold mb-4",style:{color:"#FFD700"},children:"Error Loading Referral Tree"}),d.jsx("p",{className:"text-lg mb-6",style:{color:"#FFD700"},children:L||c||ne}),d.jsxs("div",{className:"flex gap-4 justify-center",children:[d.jsx("button",{onClick:()=>{a?Se(a):e(Ds())},className:"px-6 py-2 rounded-lg font-semibold transition-colors",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Try Again"}),d.jsx("button",{onClick:ce,className:"px-6 py-2 rounded-lg font-semibold transition-colors",style:{backgroundColor:"#013220",color:"#FFD700",border:"1px solid #FFD700"},children:"Back to Main Tree"})]})]})})});const Y=!!a,te=Y?S:s,pe=te?.referralTree?.members||te?.referralTree?.levels?.members||te?.members||{},ye=te?.referralTree?.counts||te?.referralTree?.levels?.counts||te?.counts||{},oe=Object.keys(pe).filter(ee=>ee.startsWith("level")).map(ee=>parseInt(ee.replace("level",""),10)).sort((ee,xe)=>ee-xe),je=pe[`level${E}`]||[],Te=Y?S?.referralTree?.user||m:s?.referralTree?.user||s?.user||u;return console.log("Display logic:",{isViewingSpecificUser:Y,userId:a,selectedMember:m,displayUser:Te,memberTreeDataUser:S?.referralTree?.user,memberTreeData:!!S}),!te||!te.referralTree&&!te.members?d.jsx("div",{className:"min-h-screen mt-28",style:{backgroundColor:"#083A06"},children:d.jsx("div",{className:"flex items-center justify-center h-screen",children:d.jsxs("div",{className:"text-center",children:[d.jsx("h2",{className:"text-3xl font-bold mb-4",style:{color:"#FFD700"},children:"No Referral Tree Data"}),d.jsx("p",{className:"text-lg mb-6",style:{color:"#FFD700"},children:a?"This user's referral tree data is not available.":"Your referral tree data is not available."}),d.jsx("button",{onClick:()=>{a?Se(a):e(Ds())},className:"px-6 py-2 rounded-lg font-semibold transition-colors",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Refresh"})]})})}):d.jsx("div",{className:"min-h-screen mt-20 mb-10",style:{backgroundColor:"#083A06"},children:d.jsxs("div",{className:"container mx-auto px-2 sm:px-4 py-4 sm:py-8",children:[!a&&d.jsx("div",{className:"mb-4 sm:mb-6",children:d.jsx("button",{onClick:()=>n(-1),className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm sm:text-base",style:{backgroundColor:"#FFD700",color:"#013220"},children:"← Back"})}),a&&d.jsxs("div",{className:"mb-4 sm:mb-6 flex flex-col sm:flex-row gap-2",children:[d.jsx("button",{onClick:()=>{if(N.length>0){const ee=N[N.length-1],xe=N.slice(0,-1);z(xe),sessionStorage.setItem("treeHistory",JSON.stringify(xe)),n(`/user-tree/${ee.member.id}`)}else ce()},className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm sm:text-base",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Back"}),d.jsx("button",{onClick:ce,className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm sm:text-base",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Back to Main Tree"}),N.length>0&&d.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[d.jsx("span",{style:{color:"#FFD700"},children:"History:"}),N.map((ee,xe)=>d.jsxs("button",{onClick:()=>de(xe),className:"text-yellow-400 hover:text-yellow-300 text-sm",children:[ee.member.name||ee.member.username," ",">"]},xe))]})]}),d.jsx("div",{className:"bg-white bg-opacity-10 rounded-lg p-4 sm:p-6 mb-6 sm:mb-8 backdrop-blur-sm",style:{border:"1px solid #FFD700"},children:d.jsxs("div",{className:"flex flex-col sm:flex-row items-center gap-4 sm:gap-6",children:[Te?.selfieImage?d.jsx("img",{src:`${As}${Te.selfieImage}`,alt:"Selfie",className:"w-16 h-16 sm:w-20 sm:h-20 rounded-full object-cover",style:{border:"2px solid #FFD700"}}):d.jsx("div",{className:"w-16 h-16 sm:w-20 sm:h-20 rounded-full flex items-center justify-center",style:{backgroundColor:"#013220",border:"2px solid #FFD700"},children:d.jsx("span",{className:"text-2xl sm:text-3xl",style:{color:"#FFD700"},children:Te?.name?.charAt(0)||Te?.firstName?.charAt(0)||Te?.username?.charAt(0)||"U"})}),d.jsxs("div",{className:"flex-1 w-full",children:[d.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-2 sm:gap-4",children:[d.jsxs("div",{children:[d.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["Name:"," "]}),d.jsx("span",{style:{color:"#FFD700"},children:Te?.name||(Te?.firstName&&Te?.lastName?`${Te.firstName} ${Te.lastName}`:"N/A")})]}),d.jsxs("div",{children:[d.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["Username:"," "]}),d.jsx("span",{style:{color:"#FFD700"},children:Te?.username||"N/A"})]}),d.jsxs("div",{children:[d.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["Team Members:"," "]}),d.jsx("span",{style:{color:"#FFD700"},children:ye?.totalReferrals||0})]}),d.jsxs("div",{children:[d.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["KYC Status:"," "]}),d.jsx("span",{style:{color:"#FFD700"},children:Te?.kycStatus||"N/A"})]}),d.jsxs("div",{children:[d.jsxs("span",{className:"font-semibold",style:{color:"#FFD700"},children:["Country:"," "]}),d.jsx("span",{style:{color:"#FFD700"},children:Te?.country||"N/A"})]})]}),d.jsx("div",{className:"mt-4",children:d.jsx("button",{onClick:Ne,className:`px-4 py-2 rounded-lg font-semibold transition-colors text-sm sm:text-base ${K?"bg-green-500":"bg-yellow-400"}`,style:{color:"#013220"},children:K?"Link Copied!":"Share Referral Link"})})]})]})}),d.jsx("div",{className:"flex flex-nowrap gap-1 sm:gap-2 md:gap-4 mb-6 sm:mb-8 justify-center overflow-x-auto",children:oe.map(ee=>d.jsxs("button",{onClick:()=>_(ee),className:`px-2 sm:px-4 md:px-8 py-2 sm:py-3 rounded-lg font-semibold transition-colors text-xs sm:text-sm md:text-base whitespace-nowrap flex-shrink-0 ${E===ee?"text-green-900":"text-yellow-400"}`,style:{backgroundColor:E===ee?"#FFD700":"transparent",border:E===ee?"none":"1px solid #FFD700"},children:["Level ",ee," (",ye?.[`level${ee}`]||0,")"]},ee))}),d.jsxs("div",{className:"bg-white bg-opacity-10 rounded-lg overflow-hidden backdrop-blur-sm",style:{border:"1px solid #FFD700"},children:[d.jsx("div",{className:"block sm:hidden",children:je.length>0?d.jsx("div",{className:"p-4 space-y-3",children:je.map((ee,xe)=>d.jsxs("div",{className:"bg-white bg-opacity-5 rounded-lg p-3 border border-yellow-400 border-opacity-30",children:[d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[O[ee.id]?.selfieImage?d.jsx("img",{src:`${As}${O[ee.id].selfieImage}`,alt:"Selfie",className:"w-10 h-10 rounded-full object-cover",style:{border:"1px solid #FFD700"}}):d.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:"#013220",border:"1px solid #FFD700"},children:d.jsx("span",{className:"text-sm",style:{color:"#FFD700"},children:ee.name?.charAt(0)||ee.username?.charAt(0)||"U"})}),d.jsx("span",{style:{color:"#FFD700"},children:ee.name||ee.username||"N/A"})]}),d.jsxs("div",{className:"grid grid-cols-2 gap-2 text-xs",children:[d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"ID:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:String(xe+1).padStart(3,"0")})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Rank:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:ee.crrRank?.current||"None"})]}),d.jsxs("div",{className:"col-span-2",children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Name:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:ee.username||"N/A"})]}),d.jsxs("div",{className:"col-span-2",children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Username:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:ee.name||(ee.firstName&&ee.lastName?`${ee.firstName} ${ee.lastName}`:ee.firstName||ee.lastName||"N/A")})]}),d.jsxs("div",{className:"col-span-2",children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Created At:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:G(ee.joinedDate)})]}),d.jsxs("div",{className:"col-span-2 flex items-center gap-2",children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"TGP:"})," ",d.jsxs("div",{className:"flex items-center justify-center",children:[d.jsx("div",{className:"mb-1 text-[#FFD700]",children:ee.qualificationPoints?.tgp?.monthly||0}),d.jsx("img",{className:"w-[7%] h-[7%]",src:"/images.png",alt:""})]})]}),d.jsxs("div",{className:"col-span-2 flex items-center gap-2",children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"PGP:"})," ",d.jsxs("div",{className:"flex items-center justify-center",children:[d.jsx("div",{className:"mb-1 text-[#FFD700]",children:ee.qualificationPoints?.pgp?.monthly||0}),d.jsx("img",{className:"w-[7%] h-[7%]",src:"/images.png",alt:""})]})]}),d.jsxs("div",{className:"col-span-2",children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Total Amount:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:"AED 0"})]}),d.jsxs("div",{className:"col-span-2 flex gap-2",children:[d.jsx("button",{onClick:()=>Re(ee),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs",children:"View Detail"}),d.jsx("button",{onClick:()=>k(ee),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs",children:"View Tree"})]})]})]},ee.id||xe))}):d.jsxs("div",{className:"p-4 text-center text-xs",style:{color:"#FFD700"},children:["No members found in Level ",E]})}),d.jsx("div",{className:"hidden sm:block overflow-x-auto scrollbar-thin scrollbar-thumb-yellow-400 scrollbar-track-transparent",children:d.jsxs("table",{className:"w-full min-w-[1200px]",children:[d.jsx("thead",{children:d.jsxs("tr",{style:{backgroundColor:"#013220",borderBottom:"1px solid #FFD700"},children:[d.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-12 sm:w-16",style:{color:"#FFD700"},children:"Image"}),d.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-12 sm:w-16",style:{color:"#FFD700"},children:"ID"}),d.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-20 sm:w-32",style:{color:"#FFD700"},children:"Name"}),d.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-20 sm:w-32",style:{color:"#FFD700"},children:"Username"}),d.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-12 sm:w-20",style:{color:"#FFD700"},children:"Rank"}),d.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"TGP"}),d.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"PGP"}),d.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"Created At"}),d.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"Total Amount"}),d.jsx("th",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-left font-semibold text-xs sm:text-sm md:text-base w-24 sm:w-32",style:{color:"#FFD700"},children:"Actions"})]})}),d.jsx("tbody",{children:je.length>0?je.map((ee,xe)=>d.jsxs("tr",{className:"hover:bg-opacity-20 hover:bg-yellow-400 transition-colors",style:{borderBottom:"1px solid #FFD700"},children:[d.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-12 sm:w-16",style:{color:"#FFD700"},children:O[ee.id]?.selfieImage?d.jsx("img",{src:`${As}${O[ee.id].selfieImage}`,alt:"Selfie",className:"w-10 h-10 rounded-full object-cover",style:{border:"1px solid #FFD700"}}):d.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:"#013220",border:"1px solid #FFD700"},children:d.jsx("span",{className:"text-sm",style:{color:"#FFD700"},children:ee.name?.charAt(0)||ee.username?.charAt(0)||"U"})})}),d.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-12 sm:w-16",style:{color:"#FFD700"},children:String(xe+1).padStart(3,"0")}),d.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-20 sm:w-32",style:{color:"#FFD700"},children:ee.name||(ee.firstName&&ee.lastName?`${ee.firstName} ${ee.lastName}`:ee.firstName||ee.lastName||"N/A")}),d.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-20 sm:w-32",style:{color:"#FFD700"},children:ee.username||"N/A"}),d.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-12 sm:w-20",style:{color:"#FFD700"},children:ee.crrRank?.current||"None"}),d.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:d.jsxs("div",{className:"flex items-center justify-center",children:[d.jsx("div",{className:"mb-1",children:ee.qualificationPoints?.tgp?.monthly||0}),d.jsx("img",{className:"w-[25%] h-[25%]",src:"/images.png",alt:""})]})}),d.jsxs("td",{className:"px-1 mt-3 flex items-center justify-center sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:[d.jsx("div",{className:"mb-1",children:ee.qualificationPoints?.pgp?.monthly||0}),d.jsx("img",{width:"50%",src:"/images.png",alt:""})]}),d.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:G(ee.joinedDate)}),d.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 text-xs sm:text-sm md:text-base w-16 sm:w-24",style:{color:"#FFD700"},children:"AED 0"}),d.jsx("td",{className:"px-1 sm:px-2 md:px-6 py-2 sm:py-3 md:py-4 w-24 sm:w-32",children:d.jsxs("div",{className:"flex gap-2",children:[d.jsx("button",{onClick:()=>Re(ee),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs sm:text-sm md:text-base",children:"View Detail"}),d.jsx("button",{onClick:()=>k(ee),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs sm:text-sm md:text-base",children:"View Tree"})]})})]},ee.id||xe)):d.jsx("tr",{children:d.jsxs("td",{colSpan:"10",className:"px-2 sm:px-3 md:px-6 py-4 sm:py-6 md:py-8 text-center text-xs sm:text-sm md:text-base",style:{color:"#FFD700"},children:["No members found in Level ",E]})})})]})})]}),V&&Z&&d.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:d.jsxs("div",{className:"bg-white bg-opacity-10 rounded-lg p-6 backdrop-blur-sm max-w-md w-full",style:{border:"1px solid #FFD700"},children:[d.jsx("h2",{className:"text-xl font-bold mb-4 text-center",style:{color:"#FFD700"},children:"Member Details"}),d.jsxs("div",{className:"grid grid-cols-1 gap-3 text-sm",children:[w?.selfieImage?d.jsx("div",{className:"flex justify-center mb-4",children:d.jsx("img",{src:`${As}${w.selfieImage}`,alt:"Selfie",className:"w-32 h-32 rounded-full object-cover",style:{border:"2px solid #FFD700"}})}):d.jsx("div",{className:"flex justify-center mb-4 w-32 h-32 rounded-full items-center",style:{backgroundColor:"#013220",border:"2px solid #FFD700"},children:d.jsx("span",{className:"text-2xl",style:{color:"#FFD700"},children:Z?.name?.charAt(0)||Z?.username?.charAt(0)||"U"})}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Level:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:Z.level||0})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Name:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:Z.name||"N/A"})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Username:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:Z.username||"N/A"})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Email:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:Z.email||"N/A"})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"KYC Status:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:Z.kycStatus||"N/A"})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Created At:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:G(Z.joinedDate)})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Total Amount:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:"AED 0"})]}),I.length>0&&d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Referral Levels:"}),d.jsx("div",{className:"mt-2 max-h-40 overflow-y-auto",children:I.map((ee,xe)=>d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[ee.selfieImage?d.jsx("img",{src:`${As}${ee.selfieImage}`,alt:"Selfie",className:"w-10 h-10 rounded-full object-cover",style:{border:"1px solid #FFD700"}}):d.jsx("div",{className:"w-10 h-10 rounded-full flex items-center justify-center",style:{backgroundColor:"#013220",border:"1px solid #FFD700"},children:d.jsx("span",{className:"text-sm",style:{color:"#FFD700"},children:ee.name?.charAt(0)||ee.username?.charAt(0)||"U"})}),d.jsxs("div",{children:[d.jsx("span",{style:{color:"#FFD700"},children:ee.name||ee.username||"Unknown"}),d.jsxs("span",{className:"text-xs ml-2",style:{color:"#FFD700"},children:["(Level ",ee.level||"N/A",")"]})]})]},ee.id||xe))})]})]}),d.jsxs("div",{className:"mt-6 flex justify-center gap-4",children:[d.jsx("button",{onClick:()=>k(Z),className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm",style:{backgroundColor:"#FFD700",color:"#013220"},children:"View Tree"}),d.jsx("button",{onClick:()=>j(!1),className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Close"})]})]})})]})})},m5=()=>{const e=Wt(),n=In(),a=Xe(Nr),s=Xe(ko);if(X.useEffect(()=>{n(Cs())},[]),X.useEffect(()=>{!a&&!s&&n(Cs())},[n,a,s]),s||!a)return d.jsx("div",{className:"text-center mt-24",style:{color:"#FFD700",backgroundColor:"#083A06",minHeight:"100vh"},children:"Loading..."});const o=a?.firstName&&a?.lastName?`${a.firstName} ${a.lastName}`:a?.username||"N/A",c=a?.createdAt?new Date(a.createdAt).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):"Not available",u=a?.selfieImage?`${As}/${a.selfieImage}`:null;return d.jsx("div",{className:"min-h-screen flex flex-col mb-10 items-center justify-center p-6",style:{backgroundColor:"#083A06",color:"#FFD700"},children:d.jsxs("div",{className:"relative max-w-md w-full rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.8)",border:"1px solid #FFD700"},children:[d.jsx("div",{className:"flex justify-center",children:u?d.jsxs("div",{className:"relative",children:[d.jsx("img",{src:u,alt:"User",className:"w-28 h-28 rounded-full border-2 shadow-md",style:{borderColor:"#FFD700"},onError:f=>f.target.style.display="none"}),d.jsx("div",{className:"absolute inset-0 rounded-full ring-2 ring-yellow-400 blur-sm"})]}):d.jsx("div",{className:"w-28 h-28 rounded-full flex items-center justify-center text-lg font-semibold",style:{backgroundColor:"#013220",color:"#FFD700"},children:"No Img"})}),d.jsx("h1",{className:"text-center text-2xl font-bold mt-4",children:o}),d.jsxs("p",{className:"text-center text-sm mt-1",style:{color:"#FFD700"},children:["Joining Date: ",c]}),d.jsx("div",{className:"mt-4 flex justify-center",children:d.jsxs("div",{className:"flex items-center gap-2 px-4 py-2 rounded-lg",style:{backgroundColor:"#013220",border:"1px solid #FFD700"},children:[d.jsx("span",{className:"text-lg",children:"👑"}),d.jsx("span",{className:"font-semibold text-yellow-400",children:"Tycoon Starter"})]})}),d.jsxs("div",{className:"mt-6 grid grid-cols-2 gap-4",children:[d.jsxs("div",{onClick:()=>e("/mlm"),className:"p-4 rounded-xl cursor-pointer hover:scale-105 transition-transform",style:{background:"linear-gradient(135deg, #013220, #083A06)",border:"1px solid #FFD700",color:"#FFD700"},children:[d.jsx("h2",{className:"font-bold text-lg",children:"My Wallet"}),d.jsx("p",{className:"text-sm mt-1",children:"Check Balance, Transactions, Withdrawals"})]}),d.jsxs("div",{onClick:()=>e("/tree"),className:"p-4 rounded-xl cursor-pointer hover:scale-105 transition-transform",style:{background:"linear-gradient(135deg, #FFD700, #b8860b)",color:"#013220"},children:[d.jsx("h2",{className:"font-bold text-lg",children:"My Team"}),d.jsx("p",{className:"text-sm mt-1",children:"View Directs, Team Stack Growth"})]})]})]})})};function p5(){const e=In(),n=Wt(),a=Xe(d1),s=Xe(f1),o=Xe(Nr),c=Xe(X4),u=Xe(W4),[f,h]=X.useState(null);X.useEffect(()=>{a||e(so()),e(pc())},[e,a]);const m=a?.ddr?.earnings?.total||0,g=a?.wallet?.currentBalance||0,x=a?.user?.joinedAt?new Date(a.user.joinedAt).toISOString().split("T")[0]:"",b=[{level:"L1",amount:a?.ddr?.earnings?.level1||0,history:[]},{level:"L2",amount:a?.ddr?.earnings?.level2||0,history:[]},{level:"L3",amount:a?.ddr?.earnings?.level3||0,history:[]},{level:"L4",amount:a?.ddr?.earnings?.level4||0,history:[]}],E=c?.topEarners&&c.topEarners.length>0?c.topEarners.map(A=>({rank:A.rank,name:A.name,username:A.username?`@${A.username}`:"",amount:A.earnings,isCurrentUser:A.isCurrentUser||!1,levelBreakdown:A.levelBreakdown})):[{rank:1,name:"Ali Khan",username:"@ali",amount:15200},{rank:2,name:"Maria Sohail",username:"@maria",amount:14750},{rank:3,name:"Zain Malik",username:"@zain",amount:13900},{rank:4,name:"Fatima Noor",username:"@fatima",amount:13200},{rank:5,name:"John Smith",username:"@john",amount:12800},{rank:6,name:o?.firstName?`${o.firstName} ${o.lastName||""}`:"You",username:o?.username?`@${o.username}`:"@you",amount:m,isCurrentUser:!0}],_=c?.title||"Leaderboard",S=c?.tip||'💡 "Active L1–L4 growth boosts all levels and increases your DDR income!"';return s?d.jsx("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen mb-10 flex flex-col items-center justify-center p-6 mt-20",style:{backgroundColor:"#083A06",color:"#FFD700"},children:d.jsx("div",{className:"text-2xl font-bold",children:"Loading DDR data..."})}):d.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen mb-10 flex flex-col items-center p-6 mt-20 transition-colors duration-300",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[d.jsx("div",{className:"w-full max-w-4xl mb-4",children:d.jsx("button",{onClick:()=>n(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),d.jsxs("h1",{className:"text-2xl font-bold my-6",children:[" ","🌙 DREAM DIVIDEND REWARDS (DDR)"]}),d.jsxs("div",{className:"grid grid-cols-3 gap-6 rounded-2xl p-6 w-full max-w-4xl mb-6 shadow-lg text-center",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm",children:"Total Earned (Lifetime)"}),d.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",m.toFixed(2)]})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm",children:"Available Balance"}),d.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",g.toFixed(2)]})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm",children:"Joining Date"}),d.jsx("p",{className:"text-3xl font-bold text-yellow-400",children:x})]})]}),d.jsxs("div",{className:"w-full max-w-4xl mb-10",children:[d.jsx("h2",{className:"text-xl font-bold mb-4",children:"Level Earnings"}),b.map((A,T)=>d.jsxs("div",{className:"mb-3 p-4 rounded-lg shadow-lg cursor-pointer",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},onClick:()=>h(f===T?null:T),children:[d.jsxs("div",{className:"flex justify-between",children:[d.jsxs("span",{children:[A.level," Earned"]}),d.jsxs("span",{className:"font-bold",children:["AED ",A.amount]})]}),f===T&&d.jsx("div",{className:"mt-3 max-h-40 overflow-y-auto text-sm",children:A.history.length>0?A.history.map((C,L)=>d.jsxs("div",{className:"flex justify-between py-1 border-b border-yellow-700",children:[d.jsx("span",{children:C.date}),d.jsx("span",{children:C.source}),d.jsxs("span",{className:"font-bold",children:["AED ",C.amount]})]},L)):d.jsx("p",{className:"text-gray-300",children:"No history available."})})]},T))]}),d.jsxs("div",{className:"w-full max-w-4xl mb-10",children:[d.jsx("h2",{className:"text-xl font-bold mb-4",children:_}),d.jsx("div",{className:"rounded-lg shadow-lg max-h-72 overflow-y-auto",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u?d.jsx("div",{className:"flex justify-center items-center p-6",children:d.jsx("p",{children:"Loading leaderboard data..."})}):E.length>0?E.map(A=>d.jsxs("div",{className:`flex justify-between px-4 py-2 ${A.isCurrentUser?"bg-yellow-900 font-bold sticky top-0":""}`,children:[d.jsx("span",{children:A.rank}),d.jsxs("span",{children:[A.name," ",d.jsx("small",{className:"text-gray-300",children:A.username})]}),d.jsxs("span",{children:["AED ",A.amount.toFixed(2)]})]},A.rank)):d.jsx("div",{className:"flex justify-center items-center p-6",children:d.jsx("p",{children:"No leaderboard data available"})})})]}),d.jsx("div",{className:"rounded-xl p-4 text-center max-w-2xl shadow-lg mb-4",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:d.jsx("p",{className:"italic",children:S})})]})}const av=({label:e,value:n,max:a})=>{const s=Math.min(n/a*100,100);return d.jsxs("div",{className:"mb-4",children:[d.jsxs("div",{className:"flex justify-between mb-1 text-sm",children:[d.jsx("span",{children:e}),d.jsxs("span",{children:[n.toLocaleString()," / ",a.toLocaleString()," (",s.toFixed(0),"%)"]})]}),d.jsx("div",{className:"w-full h-4 rounded-full bg-yellow-900 overflow-hidden",children:d.jsx("div",{className:"h-full bg-yellow-400 transition-all duration-1000 ease-out",style:{width:`${s}%`}})})]})};function g5(){const e=In(),n=Wt(),a=Xe(Nr),s=Xe($4),o=Xe(Q4),c=Xe(J4),u=Xe(eA),[f,h]=X.useState(!1),[m,g]=X.useState(null),[x,b]=X.useState(!1),E=async()=>{if(a?._id){b(!0);try{const V=Be.getToken(),j=await fetch(`${kn}mlm/user-dashboard/${a._id}`,{method:"GET",headers:{Authorization:`Bearer ${V}`,"Content-Type":"application/json"}});if(j.ok){const Z=await j.json();Z.success&&g(Z.data)}else console.error("Failed to fetch user dashboard:",j.statusText)}catch(V){console.error("Error fetching user dashboard:",V),it("Failed to load user dashboard")}finally{b(!1)}}};X.useEffect(()=>{e(gc()),e(yc()),E()},[e,a?._id]);const _=[{name:"Challenger",bonus:1e3,icon:"🥇",achieved:!1},{name:"Warrior",bonus:5e3,icon:"🥈",achieved:!1},{name:"Tycoon",bonus:2e4,icon:"🥉",achieved:!1},{name:"Champion",bonus:5e4,icon:"🏅",achieved:!1},{name:"Boss",bonus:2e5,icon:"🎖️",achieved:!1}],S="Challenger",A={value:0,max:2500},T={value:0,max:5e4},C=30,L=m?.crr?.earnings?.totalEarnings||0,q=m?.wallet?.currentBalance||0,N=m?.crr?.earnings?.totalEarnings||0,z=s?.rankTracking?.map(V=>({name:V.rank,bonus:V.reward,icon:V.icon,achieved:V.isAchieved}))||_,F=s?.rankTracking?.find(V=>!V.isAchieved&&!V.isLocked),H=F?.rank||S,M={value:m?.crr?.qualificationPoints?.pgp?.monthly||F?.currentPoints?.pgp||A.value,max:F?.requirements?.pgp||A.max},R={value:m?.crr?.qualificationPoints?.tgp?.monthly||F?.currentPoints?.tgp||T.value,max:F?.requirements?.tgp||T.max},K=C,P=c?.topEarners?.map(V=>({rank:V.position,name:V.name,username:`@${V.username||""}`,userRank:V.rank,rankIcon:V.rankIcon,earnings:V.earnings,isCurrentUser:a&&a.name===V.name}))||[{rank:1,name:"Ali Khan",username:"@ali",userRank:3,earnings:2e3},{rank:2,name:"Maria Sohail",username:"@maria",userRank:4,earnings:3500},{rank:3,name:"Zain Malik",username:"@zain",userRank:2,earnings:1200},{rank:4,name:"Fatima Noor",username:"@fatima",userRank:3,earnings:2e3},{rank:5,name:"John Smith",username:"@john",userRank:5,earnings:5e3},{rank:6,name:"You",username:"@you",userRank:2,earnings:1800}];return d.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen flex flex-col items-center p-6 mt-20 transition-colors duration-300 mb-10",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[d.jsx("div",{className:"w-full max-w-5xl mb-4",children:d.jsx("button",{onClick:()=>n(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),d.jsx("h1",{className:"text-2xl font-bold my-6",children:"🏆 CRR – Championship Rank Rewards"}),x?d.jsxs("div",{className:"text-center py-4 mb-6",children:[d.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-yellow-400 mx-auto"}),d.jsx("p",{className:"mt-2",children:"Loading user data..."})]}):m?.user?d.jsx("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:d.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 text-center",children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-gray-300",children:"Name"}),d.jsxs("p",{className:"text-lg font-semibold text-yellow-400",children:[m.user.firstName," ",m.user.lastName]})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-gray-300",children:"Username"}),d.jsxs("p",{className:"text-lg font-semibold text-yellow-400",children:["@",m.user.username]})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-gray-300",children:"Current Rank"}),d.jsx("p",{className:"text-lg font-semibold text-yellow-400",children:m.crr?.earnings?.currentRank||"None"})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm text-gray-300",children:"Joined Date"}),d.jsx("p",{className:"text-lg font-semibold text-yellow-400",children:new Date(m.user.joinedAt).toLocaleDateString()})]})]})}):null,d.jsxs("div",{className:"grid grid-cols-3 gap-6 rounded-2xl p-6 w-full max-w-5xl mb-6 shadow-lg text-center",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsxs("div",{children:[d.jsx("p",{className:"text-sm",children:"Total Earned"}),d.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",L.toLocaleString()]})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm",children:"Available Balance"}),d.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",q.toLocaleString()]})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm",children:"💰 CRR Wallet"}),d.jsxs("p",{className:"text-3xl font-bold text-yellow-400",children:["AED ",N.toLocaleString()]})]})]}),d.jsxs("div",{className:"w-full max-w-5xl mb-10",children:[d.jsx("h2",{className:"text-xl font-bold mb-4",children:"Ranks Progress"}),o?d.jsx("div",{className:"text-center py-4",children:"Loading rank data..."}):d.jsx("div",{className:"flex justify-between items-center",children:z.map((V,j)=>d.jsxs("div",{className:"flex flex-col items-center text-center",children:[d.jsx("div",{className:`w-12 h-12 flex items-center justify-center rounded-full mb-2 shadow-lg ${V.achieved?"bg-yellow-400 text-black font-bold":"bg-yellow-900 text-yellow-300"}`,children:V.achieved?"✓":"⭕"}),d.jsxs("span",{className:"text-sm",children:[V.icon," ",V.name]}),d.jsxs("span",{className:"text-xs",children:["AED ",V.bonus.toLocaleString()]}),d.jsx("span",{className:"text-xs italic",children:V.achieved?"Achieved":"Locked"})]},j))})]}),d.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-10 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsxs("h2",{className:"text-xl font-bold mb-4",children:["Your Journey To Achieve Next Rank: (",H,")"]}),o?d.jsx("div",{className:"text-center py-4",children:"Loading progress data..."}):d.jsxs(d.Fragment,{children:[d.jsx(av,{label:"PGP Progress",value:M.value,max:M.max}),d.jsx(av,{label:"TGP Progress",value:R.value,max:R.max}),d.jsxs("p",{className:"mt-2",children:["⏳ ",K," days left"]})]})]}),d.jsxs("div",{className:"w-full max-w-5xl mb-10",children:[d.jsx("h2",{className:"text-xl font-bold mb-4",children:c?.title||"Leaderboard – Rank Achievers"}),d.jsx("div",{className:"rounded-lg shadow-lg max-h-72 overflow-y-auto",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:u?d.jsx("div",{className:"text-center py-4",children:"Loading leaderboard data..."}):P.length>0?(f?P:P.slice(0,5)).map(V=>d.jsxs("div",{className:`flex justify-between px-4 py-2 ${V.isCurrentUser?"bg-yellow-900 font-bold sticky top-0":""}`,children:[d.jsx("span",{children:V.rank}),d.jsxs("span",{children:[V.name," ",d.jsx("small",{className:"text-gray-300",children:V.username})]}),d.jsxs("span",{children:[V.rankIcon," ",V.userRank]}),d.jsxs("span",{children:["AED ",V.earnings.toLocaleString()]})]},V.rank)):d.jsx("div",{className:"text-center py-4",children:"No leaderboard data available"})}),P.length>5&&d.jsx("button",{className:"mt-3 text-sm underline",onClick:()=>h(!f),children:f?"Show Less":"View All"})]}),d.jsx("div",{className:"rounded-xl p-4 text-center max-w-3xl shadow-lg mb-5",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:d.jsxs("p",{className:"italic ",children:["💡 ",c?.tip||"Tip: Progress is updated hourly or in real-time. Stay consistent!"]})})]})}const rw=X.createContext({});function y5(e){const n=X.useRef(null);return n.current===null&&(n.current=e()),n.current}const Sm=typeof window<"u",x5=Sm?X.useLayoutEffect:X.useEffect,jm=X.createContext(null);function Em(e,n){e.indexOf(n)===-1&&e.push(n)}function Tm(e,n){const a=e.indexOf(n);a>-1&&e.splice(a,1)}const Tr=(e,n,a)=>a>n?n:a<e?e:a;let Am=()=>{};const Ar={},aw=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function sw(e){return typeof e=="object"&&e!==null}const iw=e=>/^0[^.\s]+$/u.test(e);function Nm(e){let n;return()=>(n===void 0&&(n=e()),n)}const On=e=>e,v5=(e,n)=>a=>n(e(a)),Mo=(...e)=>e.reduce(v5),xo=(e,n,a)=>{const s=n-e;return s===0?1:(a-e)/s};class _m{constructor(){this.subscriptions=[]}add(n){return Em(this.subscriptions,n),()=>Tm(this.subscriptions,n)}notify(n,a,s){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](n,a,s);else for(let c=0;c<o;c++){const u=this.subscriptions[c];u&&u(n,a,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const er=e=>e*1e3,tr=e=>e/1e3;function ow(e,n){return n?e*(1e3/n):0}const lw=(e,n,a)=>(((1-3*a+3*n)*e+(3*a-6*n))*e+3*n)*e,b5=1e-7,w5=12;function S5(e,n,a,s,o){let c,u,f=0;do u=n+(a-n)/2,c=lw(u,s,o)-e,c>0?a=u:n=u;while(Math.abs(c)>b5&&++f<w5);return u}function Lo(e,n,a,s){if(e===n&&a===s)return On;const o=c=>S5(c,0,1,e,a);return c=>c===0||c===1?c:lw(o(c),n,s)}const cw=e=>n=>n<=.5?e(2*n)/2:(2-e(2*(1-n)))/2,uw=e=>n=>1-e(1-n),dw=Lo(.33,1.53,.69,.99),km=uw(dw),fw=cw(km),hw=e=>(e*=2)<1?.5*km(e):.5*(2-Math.pow(2,-10*(e-1))),Om=e=>1-Math.sin(Math.acos(e)),mw=uw(Om),pw=cw(Om),j5=Lo(.42,0,1,1),E5=Lo(0,0,.58,1),gw=Lo(.42,0,.58,1),T5=e=>Array.isArray(e)&&typeof e[0]!="number",yw=e=>Array.isArray(e)&&typeof e[0]=="number",A5={linear:On,easeIn:j5,easeInOut:gw,easeOut:E5,circIn:Om,circInOut:pw,circOut:mw,backIn:km,backInOut:fw,backOut:dw,anticipate:hw},N5=e=>typeof e=="string",sv=e=>{if(yw(e)){Am(e.length===4);const[n,a,s,o]=e;return Lo(n,a,s,o)}else if(N5(e))return A5[e];return e},rc=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function _5(e,n){let a=new Set,s=new Set,o=!1,c=!1;const u=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function h(g){u.has(g)&&(m.schedule(g),e()),g(f)}const m={schedule:(g,x=!1,b=!1)=>{const _=b&&o?a:s;return x&&u.add(g),_.has(g)||_.add(g),g},cancel:g=>{s.delete(g),u.delete(g)},process:g=>{if(f=g,o){c=!0;return}o=!0,[a,s]=[s,a],a.forEach(h),a.clear(),o=!1,c&&(c=!1,m.process(g))}};return m}const k5=40;function xw(e,n){let a=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>a=!0,u=rc.reduce((L,q)=>(L[q]=_5(c),L),{}),{setup:f,read:h,resolveKeyframes:m,preUpdate:g,update:x,preRender:b,render:E,postRender:_}=u,S=()=>{const L=Ar.useManualTiming?o.timestamp:performance.now();a=!1,Ar.useManualTiming||(o.delta=s?1e3/60:Math.max(Math.min(L-o.timestamp,k5),1)),o.timestamp=L,o.isProcessing=!0,f.process(o),h.process(o),m.process(o),g.process(o),x.process(o),b.process(o),E.process(o),_.process(o),o.isProcessing=!1,a&&n&&(s=!1,e(S))},A=()=>{a=!0,s=!0,o.isProcessing||e(S)};return{schedule:rc.reduce((L,q)=>{const N=u[q];return L[q]=(z,F=!1,H=!1)=>(a||A(),N.schedule(z,F,H)),L},{}),cancel:L=>{for(let q=0;q<rc.length;q++)u[rc[q]].cancel(L)},state:o,steps:u}}const{schedule:ut,cancel:na,state:Ut,steps:sh}=xw(typeof requestAnimationFrame<"u"?requestAnimationFrame:On,!0);let wc;function O5(){wc=void 0}const tn={now:()=>(wc===void 0&&tn.set(Ut.isProcessing||Ar.useManualTiming?Ut.timestamp:performance.now()),wc),set:e=>{wc=e,queueMicrotask(O5)}},vw=e=>n=>typeof n=="string"&&n.startsWith(e),Rm=vw("--"),R5=vw("var(--"),Cm=e=>R5(e)?C5.test(e.split("/*")[0].trim()):!1,C5=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Xs={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},vo={...Xs,transform:e=>Tr(0,1,e)},ac={...Xs,default:1},io=e=>Math.round(e*1e5)/1e5,Dm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function D5(e){return e==null}const M5=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Mm=(e,n)=>a=>!!(typeof a=="string"&&M5.test(a)&&a.startsWith(e)||n&&!D5(a)&&Object.prototype.hasOwnProperty.call(a,n)),bw=(e,n,a)=>s=>{if(typeof s!="string")return s;const[o,c,u,f]=s.match(Dm);return{[e]:parseFloat(o),[n]:parseFloat(c),[a]:parseFloat(u),alpha:f!==void 0?parseFloat(f):1}},L5=e=>Tr(0,255,e),ih={...Xs,transform:e=>Math.round(L5(e))},ka={test:Mm("rgb","red"),parse:bw("red","green","blue"),transform:({red:e,green:n,blue:a,alpha:s=1})=>"rgba("+ih.transform(e)+", "+ih.transform(n)+", "+ih.transform(a)+", "+io(vo.transform(s))+")"};function P5(e){let n="",a="",s="",o="";return e.length>5?(n=e.substring(1,3),a=e.substring(3,5),s=e.substring(5,7),o=e.substring(7,9)):(n=e.substring(1,2),a=e.substring(2,3),s=e.substring(3,4),o=e.substring(4,5),n+=n,a+=a,s+=s,o+=o),{red:parseInt(n,16),green:parseInt(a,16),blue:parseInt(s,16),alpha:o?parseInt(o,16)/255:1}}const Fh={test:Mm("#"),parse:P5,transform:ka.transform},Po=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),Qr=Po("deg"),nr=Po("%"),Ue=Po("px"),z5=Po("vh"),U5=Po("vw"),iv={...nr,parse:e=>nr.parse(e)/100,transform:e=>nr.transform(e*100)},Ns={test:Mm("hsl","hue"),parse:bw("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:a,alpha:s=1})=>"hsla("+Math.round(e)+", "+nr.transform(io(n))+", "+nr.transform(io(a))+", "+io(vo.transform(s))+")"},Nt={test:e=>ka.test(e)||Fh.test(e)||Ns.test(e),parse:e=>ka.test(e)?ka.parse(e):Ns.test(e)?Ns.parse(e):Fh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?ka.transform(e):Ns.transform(e),getAnimatableNone:e=>{const n=Nt.parse(e);return n.alpha=0,Nt.transform(n)}},B5=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function F5(e){return isNaN(e)&&typeof e=="string"&&(e.match(Dm)?.length||0)+(e.match(B5)?.length||0)>0}const ww="number",Sw="color",V5="var",H5="var(",ov="${}",I5=/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 bo(e){const n=e.toString(),a=[],s={color:[],number:[],var:[]},o=[];let c=0;const f=n.replace(I5,h=>(Nt.test(h)?(s.color.push(c),o.push(Sw),a.push(Nt.parse(h))):h.startsWith(H5)?(s.var.push(c),o.push(V5),a.push(h)):(s.number.push(c),o.push(ww),a.push(parseFloat(h))),++c,ov)).split(ov);return{values:a,split:f,indexes:s,types:o}}function jw(e){return bo(e).values}function Ew(e){const{split:n,types:a}=bo(e),s=n.length;return o=>{let c="";for(let u=0;u<s;u++)if(c+=n[u],o[u]!==void 0){const f=a[u];f===ww?c+=io(o[u]):f===Sw?c+=Nt.transform(o[u]):c+=o[u]}return c}}const q5=e=>typeof e=="number"?0:Nt.test(e)?Nt.getAnimatableNone(e):e;function G5(e){const n=jw(e);return Ew(e)(n.map(q5))}const ra={test:F5,parse:jw,createTransformer:Ew,getAnimatableNone:G5};function oh(e,n,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(n-e)*6*a:a<1/2?n:a<2/3?e+(n-e)*(2/3-a)*6:e}function Y5({hue:e,saturation:n,lightness:a,alpha:s}){e/=360,n/=100,a/=100;let o=0,c=0,u=0;if(!n)o=c=u=a;else{const f=a<.5?a*(1+n):a+n-a*n,h=2*a-f;o=oh(h,f,e+1/3),c=oh(h,f,e),u=oh(h,f,e-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:s}}function Uc(e,n){return a=>a>0?n:e}const mt=(e,n,a)=>e+(n-e)*a,lh=(e,n,a)=>{const s=e*e,o=a*(n*n-s)+s;return o<0?0:Math.sqrt(o)},X5=[Fh,ka,Ns],W5=e=>X5.find(n=>n.test(e));function lv(e){const n=W5(e);if(!n)return!1;let a=n.parse(e);return n===Ns&&(a=Y5(a)),a}const cv=(e,n)=>{const a=lv(e),s=lv(n);if(!a||!s)return Uc(e,n);const o={...a};return c=>(o.red=lh(a.red,s.red,c),o.green=lh(a.green,s.green,c),o.blue=lh(a.blue,s.blue,c),o.alpha=mt(a.alpha,s.alpha,c),ka.transform(o))},Vh=new Set(["none","hidden"]);function Z5(e,n){return Vh.has(e)?a=>a<=0?e:n:a=>a>=1?n:e}function K5(e,n){return a=>mt(e,n,a)}function Lm(e){return typeof e=="number"?K5:typeof e=="string"?Cm(e)?Uc:Nt.test(e)?cv:J5:Array.isArray(e)?Tw:typeof e=="object"?Nt.test(e)?cv:$5:Uc}function Tw(e,n){const a=[...e],s=a.length,o=e.map((c,u)=>Lm(c)(c,n[u]));return c=>{for(let u=0;u<s;u++)a[u]=o[u](c);return a}}function $5(e,n){const a={...e,...n},s={};for(const o in a)e[o]!==void 0&&n[o]!==void 0&&(s[o]=Lm(e[o])(e[o],n[o]));return o=>{for(const c in s)a[c]=s[c](o);return a}}function Q5(e,n){const a=[],s={color:0,var:0,number:0};for(let o=0;o<n.values.length;o++){const c=n.types[o],u=e.indexes[c][s[c]],f=e.values[u]??0;a[o]=f,s[c]++}return a}const J5=(e,n)=>{const a=ra.createTransformer(n),s=bo(e),o=bo(n);return s.indexes.var.length===o.indexes.var.length&&s.indexes.color.length===o.indexes.color.length&&s.indexes.number.length>=o.indexes.number.length?Vh.has(e)&&!o.values.length||Vh.has(n)&&!s.values.length?Z5(e,n):Mo(Tw(Q5(s,o),o.values),a):Uc(e,n)};function Aw(e,n,a){return typeof e=="number"&&typeof n=="number"&&typeof a=="number"?mt(e,n,a):Lm(e)(e,n)}const eO=e=>{const n=({timestamp:a})=>e(a);return{start:(a=!0)=>ut.update(n,a),stop:()=>na(n),now:()=>Ut.isProcessing?Ut.timestamp:tn.now()}},Nw=(e,n,a=10)=>{let s="";const o=Math.max(Math.round(n/a),2);for(let c=0;c<o;c++)s+=Math.round(e(c/(o-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Bc=2e4;function Pm(e){let n=0;const a=50;let s=e.next(n);for(;!s.done&&n<Bc;)n+=a,s=e.next(n);return n>=Bc?1/0:n}function tO(e,n=100,a){const s=a({...e,keyframes:[0,n]}),o=Math.min(Pm(s),Bc);return{type:"keyframes",ease:c=>s.next(o*c).value/n,duration:tr(o)}}const nO=5;function _w(e,n,a){const s=Math.max(n-nO,0);return ow(a-e(s),n-s)}const vt={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},ch=.001;function rO({duration:e=vt.duration,bounce:n=vt.bounce,velocity:a=vt.velocity,mass:s=vt.mass}){let o,c,u=1-n;u=Tr(vt.minDamping,vt.maxDamping,u),e=Tr(vt.minDuration,vt.maxDuration,tr(e)),u<1?(o=m=>{const g=m*u,x=g*e,b=g-a,E=Hh(m,u),_=Math.exp(-x);return ch-b/E*_},c=m=>{const x=m*u*e,b=x*a+a,E=Math.pow(u,2)*Math.pow(m,2)*e,_=Math.exp(-x),S=Hh(Math.pow(m,2),u);return(-o(m)+ch>0?-1:1)*((b-E)*_)/S}):(o=m=>{const g=Math.exp(-m*e),x=(m-a)*e+1;return-ch+g*x},c=m=>{const g=Math.exp(-m*e),x=(a-m)*(e*e);return g*x});const f=5/e,h=sO(o,c,f);if(e=er(e),isNaN(h))return{stiffness:vt.stiffness,damping:vt.damping,duration:e};{const m=Math.pow(h,2)*s;return{stiffness:m,damping:u*2*Math.sqrt(s*m),duration:e}}}const aO=12;function sO(e,n,a){let s=a;for(let o=1;o<aO;o++)s=s-e(s)/n(s);return s}function Hh(e,n){return e*Math.sqrt(1-n*n)}const iO=["duration","bounce"],oO=["stiffness","damping","mass"];function uv(e,n){return n.some(a=>e[a]!==void 0)}function lO(e){let n={velocity:vt.velocity,stiffness:vt.stiffness,damping:vt.damping,mass:vt.mass,isResolvedFromDuration:!1,...e};if(!uv(e,oO)&&uv(e,iO))if(e.visualDuration){const a=e.visualDuration,s=2*Math.PI/(a*1.2),o=s*s,c=2*Tr(.05,1,1-(e.bounce||0))*Math.sqrt(o);n={...n,mass:vt.mass,stiffness:o,damping:c}}else{const a=rO(e);n={...n,...a,mass:vt.mass},n.isResolvedFromDuration=!0}return n}function Fc(e=vt.visualDuration,n=vt.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:n}:e;let{restSpeed:s,restDelta:o}=a;const c=a.keyframes[0],u=a.keyframes[a.keyframes.length-1],f={done:!1,value:c},{stiffness:h,damping:m,mass:g,duration:x,velocity:b,isResolvedFromDuration:E}=lO({...a,velocity:-tr(a.velocity||0)}),_=b||0,S=m/(2*Math.sqrt(h*g)),A=u-c,T=tr(Math.sqrt(h/g)),C=Math.abs(A)<5;s||(s=C?vt.restSpeed.granular:vt.restSpeed.default),o||(o=C?vt.restDelta.granular:vt.restDelta.default);let L;if(S<1){const N=Hh(T,S);L=z=>{const F=Math.exp(-S*T*z);return u-F*((_+S*T*A)/N*Math.sin(N*z)+A*Math.cos(N*z))}}else if(S===1)L=N=>u-Math.exp(-T*N)*(A+(_+T*A)*N);else{const N=T*Math.sqrt(S*S-1);L=z=>{const F=Math.exp(-S*T*z),H=Math.min(N*z,300);return u-F*((_+S*T*A)*Math.sinh(H)+N*A*Math.cosh(H))/N}}const q={calculatedDuration:E&&x||null,next:N=>{const z=L(N);if(E)f.done=N>=x;else{let F=N===0?_:0;S<1&&(F=N===0?er(_):_w(L,N,z));const H=Math.abs(F)<=s,M=Math.abs(u-z)<=o;f.done=H&&M}return f.value=f.done?u:z,f},toString:()=>{const N=Math.min(Pm(q),Bc),z=Nw(F=>q.next(N*F).value,N,30);return N+"ms "+z},toTransition:()=>{}};return q}Fc.applyToOptions=e=>{const n=tO(e,100,Fc);return e.ease=n.ease,e.duration=er(n.duration),e.type="keyframes",e};function Ih({keyframes:e,velocity:n=0,power:a=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:u,min:f,max:h,restDelta:m=.5,restSpeed:g}){const x=e[0],b={done:!1,value:x},E=H=>f!==void 0&&H<f||h!==void 0&&H>h,_=H=>f===void 0?h:h===void 0||Math.abs(f-H)<Math.abs(h-H)?f:h;let S=a*n;const A=x+S,T=u===void 0?A:u(A);T!==A&&(S=T-x);const C=H=>-S*Math.exp(-H/s),L=H=>T+C(H),q=H=>{const M=C(H),R=L(H);b.done=Math.abs(M)<=m,b.value=b.done?T:R};let N,z;const F=H=>{E(b.value)&&(N=H,z=Fc({keyframes:[b.value,_(b.value)],velocity:_w(L,H,b.value),damping:o,stiffness:c,restDelta:m,restSpeed:g}))};return F(0),{calculatedDuration:null,next:H=>{let M=!1;return!z&&N===void 0&&(M=!0,q(H),F(H)),N!==void 0&&H>=N?z.next(H-N):(!M&&q(H),b)}}}function cO(e,n,a){const s=[],o=a||Ar.mix||Aw,c=e.length-1;for(let u=0;u<c;u++){let f=o(e[u],e[u+1]);if(n){const h=Array.isArray(n)?n[u]||On:n;f=Mo(h,f)}s.push(f)}return s}function uO(e,n,{clamp:a=!0,ease:s,mixer:o}={}){const c=e.length;if(Am(c===n.length),c===1)return()=>n[0];if(c===2&&n[0]===n[1])return()=>n[1];const u=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),n=[...n].reverse());const f=cO(n,s,o),h=f.length,m=g=>{if(u&&g<e[0])return n[0];let x=0;if(h>1)for(;x<e.length-2&&!(g<e[x+1]);x++);const b=xo(e[x],e[x+1],g);return f[x](b)};return a?g=>m(Tr(e[0],e[c-1],g)):m}function dO(e,n){const a=e[e.length-1];for(let s=1;s<=n;s++){const o=xo(0,n,s);e.push(mt(a,1,o))}}function fO(e){const n=[0];return dO(n,e.length-1),n}function hO(e,n){return e.map(a=>a*n)}function mO(e,n){return e.map(()=>n||gw).splice(0,e.length-1)}function oo({duration:e=300,keyframes:n,times:a,ease:s="easeInOut"}){const o=T5(s)?s.map(sv):sv(s),c={done:!1,value:n[0]},u=hO(a&&a.length===n.length?a:fO(n),e),f=uO(u,n,{ease:Array.isArray(o)?o:mO(n,o)});return{calculatedDuration:e,next:h=>(c.value=f(h),c.done=h>=e,c)}}const pO=e=>e!==null;function zm(e,{repeat:n,repeatType:a="loop"},s,o=1){const c=e.filter(pO),f=o<0||n&&a!=="loop"&&n%2===1?0:c.length-1;return!f||s===void 0?c[f]:s}const gO={decay:Ih,inertia:Ih,tween:oo,keyframes:oo,spring:Fc};function kw(e){typeof e.type=="string"&&(e.type=gO[e.type])}class Um{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(n=>{this.resolve=n})}notifyFinished(){this.resolve()}then(n,a){return this.finished.then(n,a)}}const yO=e=>e/100;class Bm extends Um{constructor(n){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{const{motionValue:a}=this.options;a&&a.updatedAt!==tn.now()&&this.tick(tn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),this.options.onStop?.())},this.options=n,this.initAnimation(),this.play(),n.autoplay===!1&&this.pause()}initAnimation(){const{options:n}=this;kw(n);const{type:a=oo,repeat:s=0,repeatDelay:o=0,repeatType:c,velocity:u=0}=n;let{keyframes:f}=n;const h=a||oo;h!==oo&&typeof f[0]!="number"&&(this.mixKeyframes=Mo(yO,Aw(f[0],f[1])),f=[0,100]);const m=h({...n,keyframes:f});c==="mirror"&&(this.mirroredGenerator=h({...n,keyframes:[...f].reverse(),velocity:-u})),m.calculatedDuration===null&&(m.calculatedDuration=Pm(m));const{calculatedDuration:g}=m;this.calculatedDuration=g,this.resolvedDuration=g+o,this.totalDuration=this.resolvedDuration*(s+1)-o,this.generator=m}updateTime(n){const a=Math.round(n-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(n,a=!1){const{generator:s,totalDuration:o,mixKeyframes:c,mirroredGenerator:u,resolvedDuration:f,calculatedDuration:h}=this;if(this.startTime===null)return s.next(0);const{delay:m=0,keyframes:g,repeat:x,repeatType:b,repeatDelay:E,type:_,onUpdate:S,finalKeyframe:A}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,n):this.speed<0&&(this.startTime=Math.min(n-o/this.speed,this.startTime)),a?this.currentTime=n:this.updateTime(n);const T=this.currentTime-m*(this.playbackSpeed>=0?1:-1),C=this.playbackSpeed>=0?T<0:T>o;this.currentTime=Math.max(T,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let L=this.currentTime,q=s;if(x){const H=Math.min(this.currentTime,o)/f;let M=Math.floor(H),R=H%1;!R&&H>=1&&(R=1),R===1&&M--,M=Math.min(M,x+1),!!(M%2)&&(b==="reverse"?(R=1-R,E&&(R-=E/f)):b==="mirror"&&(q=u)),L=Tr(0,1,R)*f}const N=C?{done:!1,value:g[0]}:q.next(L);c&&(N.value=c(N.value));let{done:z}=N;!C&&h!==null&&(z=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return F&&_!==Ih&&(N.value=zm(g,this.options,A,this.speed)),S&&S(N.value),F&&this.finish(),N}then(n,a){return this.finished.then(n,a)}get duration(){return tr(this.calculatedDuration)}get time(){return tr(this.currentTime)}set time(n){n=er(n),this.currentTime=n,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=n:this.driver&&(this.startTime=this.driver.now()-n/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(n){this.updateTime(tn.now());const a=this.playbackSpeed!==n;this.playbackSpeed=n,a&&(this.time=tr(this.currentTime))}play(){if(this.isStopped)return;const{driver:n=eO,startTime:a}=this.options;this.driver||(this.driver=n(o=>this.tick(o))),this.options.onPlay?.();const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=a??s),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(tn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state="finished",this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(n){return this.startTime=0,this.tick(n,!0)}attachTimeline(n){return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),this.driver?.stop(),n.observe(this)}}function xO(e){for(let n=1;n<e.length;n++)e[n]??(e[n]=e[n-1])}const Oa=e=>e*180/Math.PI,qh=e=>{const n=Oa(Math.atan2(e[1],e[0]));return Gh(n)},vO={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:qh,rotateZ:qh,skewX:e=>Oa(Math.atan(e[1])),skewY:e=>Oa(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Gh=e=>(e=e%360,e<0&&(e+=360),e),dv=qh,fv=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),hv=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),bO={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:fv,scaleY:hv,scale:e=>(fv(e)+hv(e))/2,rotateX:e=>Gh(Oa(Math.atan2(e[6],e[5]))),rotateY:e=>Gh(Oa(Math.atan2(-e[2],e[0]))),rotateZ:dv,rotate:dv,skewX:e=>Oa(Math.atan(e[4])),skewY:e=>Oa(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Yh(e){return e.includes("scale")?1:0}function Xh(e,n){if(!e||e==="none")return Yh(n);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,o;if(a)s=bO,o=a;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=vO,o=f}if(!o)return Yh(n);const c=s[n],u=o[1].split(",").map(SO);return typeof c=="function"?c(u):u[c]}const wO=(e,n)=>{const{transform:a="none"}=getComputedStyle(e);return Xh(a,n)};function SO(e){return parseFloat(e.trim())}const Ws=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Zs=new Set(Ws),mv=e=>e===Xs||e===Ue,jO=new Set(["x","y","z"]),EO=Ws.filter(e=>!jO.has(e));function TO(e){const n=[];return EO.forEach(a=>{const s=e.getValue(a);s!==void 0&&(n.push([a,s.get()]),s.set(a.startsWith("scale")?1:0))}),n}const Da={width:({x:e},{paddingLeft:n="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(n)-parseFloat(a),height:({y:e},{paddingTop:n="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(n)-parseFloat(a),top:(e,{top:n})=>parseFloat(n),left:(e,{left:n})=>parseFloat(n),bottom:({y:e},{top:n})=>parseFloat(n)+(e.max-e.min),right:({x:e},{left:n})=>parseFloat(n)+(e.max-e.min),x:(e,{transform:n})=>Xh(n,"x"),y:(e,{transform:n})=>Xh(n,"y")};Da.translateX=Da.x;Da.translateY=Da.y;const Ma=new Set;let Wh=!1,Zh=!1,Kh=!1;function Ow(){if(Zh){const e=Array.from(Ma).filter(s=>s.needsMeasurement),n=new Set(e.map(s=>s.element)),a=new Map;n.forEach(s=>{const o=TO(s);o.length&&(a.set(s,o),s.render())}),e.forEach(s=>s.measureInitialState()),n.forEach(s=>{s.render();const o=a.get(s);o&&o.forEach(([c,u])=>{s.getValue(c)?.set(u)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Zh=!1,Wh=!1,Ma.forEach(e=>e.complete(Kh)),Ma.clear()}function Rw(){Ma.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Zh=!0)})}function AO(){Kh=!0,Rw(),Ow(),Kh=!1}class Fm{constructor(n,a,s,o,c,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=a,this.name=s,this.motionValue=o,this.element=c,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(Ma.add(this),Wh||(Wh=!0,ut.read(Rw),ut.resolveKeyframes(Ow))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:a,element:s,motionValue:o}=this;if(n[0]===null){const c=o?.get(),u=n[n.length-1];if(c!==void 0)n[0]=c;else if(s&&a){const f=s.readValue(a,u);f!=null&&(n[0]=f)}n[0]===void 0&&(n[0]=u),o&&c===void 0&&o.set(n[0])}xO(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),Ma.delete(this)}cancel(){this.state==="scheduled"&&(Ma.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const NO=e=>e.startsWith("--");function _O(e,n,a){NO(n)?e.style.setProperty(n,a):e.style[n]=a}const kO=Nm(()=>window.ScrollTimeline!==void 0),OO={};function RO(e,n){const a=Nm(e);return()=>OO[n]??a()}const Cw=RO(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),no=([e,n,a,s])=>`cubic-bezier(${e}, ${n}, ${a}, ${s})`,pv={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:no([0,.65,.55,1]),circOut:no([.55,0,1,.45]),backIn:no([.31,.01,.66,-.59]),backOut:no([.33,1.53,.69,.99])};function Dw(e,n){if(e)return typeof e=="function"?Cw()?Nw(e,n):"ease-out":yw(e)?no(e):Array.isArray(e)?e.map(a=>Dw(a,n)||pv.easeOut):pv[e]}function CO(e,n,a,{delay:s=0,duration:o=300,repeat:c=0,repeatType:u="loop",ease:f="easeOut",times:h}={},m=void 0){const g={[n]:a};h&&(g.offset=h);const x=Dw(f,o);Array.isArray(x)&&(g.easing=x);const b={delay:s,duration:o,easing:Array.isArray(x)?"linear":x,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"};return m&&(b.pseudoElement=m),e.animate(g,b)}function Mw(e){return typeof e=="function"&&"applyToOptions"in e}function DO({type:e,...n}){return Mw(e)&&Cw()?e.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class MO extends Um{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,!n)return;const{element:a,name:s,keyframes:o,pseudoElement:c,allowFlatten:u=!1,finalKeyframe:f,onComplete:h}=n;this.isPseudoElement=!!c,this.allowFlatten=u,this.options=n,Am(typeof n.type!="string");const m=DO(n);this.animation=CO(a,s,o,m,c),m.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const g=zm(o,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(g):_O(a,s,g),this.animation.cancel()}h?.(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:n}=this;n==="idle"||n==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){this.isPseudoElement||this.animation.commitStyles?.()}get duration(){const n=this.animation.effect?.getComputedTiming?.().duration||0;return tr(Number(n))}get time(){return tr(Number(this.animation.currentTime)||0)}set time(n){this.finishedTime=null,this.animation.currentTime=er(n)}get speed(){return this.animation.playbackRate}set speed(n){n<0&&(this.finishedTime=null),this.animation.playbackRate=n}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(n){this.animation.startTime=n}attachTimeline({timeline:n,observe:a}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:"linear"}),this.animation.onfinish=null,n&&kO()?(this.animation.timeline=n,On):a(this)}}const Lw={anticipate:hw,backInOut:fw,circInOut:pw};function LO(e){return e in Lw}function PO(e){typeof e.ease=="string"&&LO(e.ease)&&(e.ease=Lw[e.ease])}const gv=10;class zO extends MO{constructor(n){PO(n),kw(n),super(n),n.startTime&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:a,onUpdate:s,onComplete:o,element:c,...u}=this.options;if(!a)return;if(n!==void 0){a.set(n);return}const f=new Bm({...u,autoplay:!1}),h=er(this.finishedTime??this.time);a.setWithVelocity(f.sample(h-gv).value,f.sample(h).value,gv),f.stop()}}const yv=(e,n)=>n==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ra.test(e)||e==="0")&&!e.startsWith("url("));function UO(e){const n=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==n)return!0}function BO(e,n,a,s){const o=e[0];if(o===null)return!1;if(n==="display"||n==="visibility")return!0;const c=e[e.length-1],u=yv(o,n),f=yv(c,n);return!u||!f?!1:UO(e)||(a==="spring"||Mw(a))&&s}function $h(e){e.duration=0,e.type}const FO=new Set(["opacity","clipPath","filter","transform"]),VO=Nm(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function HO(e){const{motionValue:n,name:a,repeatDelay:s,repeatType:o,damping:c,type:u}=e;if(!(n?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:m}=n.owner.getProps();return VO()&&a&&FO.has(a)&&(a!=="transform"||!m)&&!h&&!s&&o!=="mirror"&&c!==0&&u!=="inertia"}const IO=40;class qO extends Um{constructor({autoplay:n=!0,delay:a=0,type:s="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:u="loop",keyframes:f,name:h,motionValue:m,element:g,...x}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=tn.now();const b={autoplay:n,delay:a,type:s,repeat:o,repeatDelay:c,repeatType:u,name:h,motionValue:m,element:g,...x},E=g?.KeyframeResolver||Fm;this.keyframeResolver=new E(f,(_,S,A)=>this.onKeyframesResolved(_,S,b,!A),h,m,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(n,a,s,o){this.keyframeResolver=void 0;const{name:c,type:u,velocity:f,delay:h,isHandoff:m,onUpdate:g}=s;this.resolvedAt=tn.now(),BO(n,c,u,f)||((Ar.instantAnimations||!h)&&g?.(zm(n,s,a)),n[0]=n[n.length-1],$h(s),s.repeat=0);const b={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>IO?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...s,keyframes:n},E=!m&&HO(b)?new zO({...b,element:b.motionValue.owner.current}):new Bm(b);E.finished.then(()=>this.notifyFinished()).catch(On),this.pendingTimeline&&(this.stopTimeline=E.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=E}get finished(){return this._animation?this.animation.finished:this._finished}then(n,a){return this.finished.finally(n).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),AO()),this._animation}get duration(){return this.animation.duration}get time(){return this.animation.time}set time(n){this.animation.time=n}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(n){this.animation.speed=n}get startTime(){return this.animation.startTime}attachTimeline(n){return this._animation?this.stopTimeline=this.animation.attachTimeline(n):this.pendingTimeline=n,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}}const GO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function YO(e){const n=GO.exec(e);if(!n)return[,];const[,a,s,o]=n;return[`--${a??s}`,o]}function Pw(e,n,a=1){const[s,o]=YO(e);if(!s)return;const c=window.getComputedStyle(n).getPropertyValue(s);if(c){const u=c.trim();return aw(u)?parseFloat(u):u}return Cm(o)?Pw(o,n,a+1):o}function Vm(e,n){return e?.[n]??e?.default??e}const zw=new Set(["width","height","top","left","right","bottom",...Ws]),XO={test:e=>e==="auto",parse:e=>e},Uw=e=>n=>n.test(e),Bw=[Xs,Ue,nr,Qr,U5,z5,XO],xv=e=>Bw.find(Uw(e));function WO(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||iw(e):!0}const ZO=new Set(["brightness","contrast","saturate","opacity"]);function KO(e){const[n,a]=e.slice(0,-1).split("(");if(n==="drop-shadow")return e;const[s]=a.match(Dm)||[];if(!s)return e;const o=a.replace(s,"");let c=ZO.has(n)?1:0;return s!==a&&(c*=100),n+"("+c+o+")"}const $O=/\b([a-z-]*)\(.*?\)/gu,Qh={...ra,getAnimatableNone:e=>{const n=e.match($O);return n?n.map(KO).join(" "):e}},vv={...Xs,transform:Math.round},QO={rotate:Qr,rotateX:Qr,rotateY:Qr,rotateZ:Qr,scale:ac,scaleX:ac,scaleY:ac,scaleZ:ac,skew:Qr,skewX:Qr,skewY:Qr,distance:Ue,translateX:Ue,translateY:Ue,translateZ:Ue,x:Ue,y:Ue,z:Ue,perspective:Ue,transformPerspective:Ue,opacity:vo,originX:iv,originY:iv,originZ:Ue},Hm={borderWidth:Ue,borderTopWidth:Ue,borderRightWidth:Ue,borderBottomWidth:Ue,borderLeftWidth:Ue,borderRadius:Ue,radius:Ue,borderTopLeftRadius:Ue,borderTopRightRadius:Ue,borderBottomRightRadius:Ue,borderBottomLeftRadius:Ue,width:Ue,maxWidth:Ue,height:Ue,maxHeight:Ue,top:Ue,right:Ue,bottom:Ue,left:Ue,padding:Ue,paddingTop:Ue,paddingRight:Ue,paddingBottom:Ue,paddingLeft:Ue,margin:Ue,marginTop:Ue,marginRight:Ue,marginBottom:Ue,marginLeft:Ue,backgroundPositionX:Ue,backgroundPositionY:Ue,...QO,zIndex:vv,fillOpacity:vo,strokeOpacity:vo,numOctaves:vv},JO={...Hm,color:Nt,backgroundColor:Nt,outlineColor:Nt,fill:Nt,stroke:Nt,borderColor:Nt,borderTopColor:Nt,borderRightColor:Nt,borderBottomColor:Nt,borderLeftColor:Nt,filter:Qh,WebkitFilter:Qh},Fw=e=>JO[e];function Vw(e,n){let a=Fw(e);return a!==Qh&&(a=ra),a.getAnimatableNone?a.getAnimatableNone(n):void 0}const eR=new Set(["auto","none","0"]);function tR(e,n,a){let s=0,o;for(;s<e.length&&!o;){const c=e[s];typeof c=="string"&&!eR.has(c)&&bo(c).values.length&&(o=e[s]),s++}if(o&&a)for(const c of n)e[c]=Vw(a,o)}class nR extends Fm{constructor(n,a,s,o,c){super(n,a,s,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:n,element:a,name:s}=this;if(!a||!a.current)return;super.readKeyframes();for(let h=0;h<n.length;h++){let m=n[h];if(typeof m=="string"&&(m=m.trim(),Cm(m))){const g=Pw(m,a.current);g!==void 0&&(n[h]=g),h===n.length-1&&(this.finalKeyframe=m)}}if(this.resolveNoneKeyframes(),!zw.has(s)||n.length!==2)return;const[o,c]=n,u=xv(o),f=xv(c);if(u!==f)if(mv(u)&&mv(f))for(let h=0;h<n.length;h++){const m=n[h];typeof m=="string"&&(n[h]=parseFloat(m))}else Da[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:a}=this,s=[];for(let o=0;o<n.length;o++)(n[o]===null||WO(n[o]))&&s.push(o);s.length&&tR(n,s,a)}measureInitialState(){const{element:n,unresolvedKeyframes:a,name:s}=this;if(!n||!n.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Da[s](n.measureViewportBox(),window.getComputedStyle(n.current)),a[0]=this.measuredOrigin;const o=a[a.length-1];o!==void 0&&n.getValue(s,o).jump(o,!1)}measureEndState(){const{element:n,name:a,unresolvedKeyframes:s}=this;if(!n||!n.current)return;const o=n.getValue(a);o&&o.jump(this.measuredOrigin,!1);const c=s.length-1,u=s[c];s[c]=Da[a](n.measureViewportBox(),window.getComputedStyle(n.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),this.removedTransforms?.length&&this.removedTransforms.forEach(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function rR(e,n,a){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let s=document;const o=a?.[e]??s.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const Hw=(e,n)=>n&&typeof e=="number"?n.transform(e):e;function aR(e){return sw(e)&&"offsetHeight"in e}const bv=30,sR=e=>!isNaN(parseFloat(e));class iR{constructor(n,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const o=tn.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(const c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=a.owner}setCurrent(n){this.current=n,this.updatedAt=tn.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=sR(this.current))}setPrevFrameValue(n=this.current){this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt}onChange(n){return this.on("change",n)}on(n,a){this.events[n]||(this.events[n]=new _m);const s=this.events[n].add(a);return n==="change"?()=>{s(),ut.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const n in this.events)this.events[n].clear()}attach(n,a){this.passiveEffect=n,this.stopPassiveEffect=a}set(n){this.passiveEffect?this.passiveEffect(n,this.updateAndNotify):this.updateAndNotify(n)}setWithVelocity(n,a,s){this.set(a),this.prev=void 0,this.prevFrameValue=n,this.prevUpdatedAt=this.updatedAt-s}jump(n,a=!0){this.updateAndNotify(n),this.prev=n,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(n){this.dependents||(this.dependents=new Set),this.dependents.add(n)}removeDependent(n){this.dependents&&this.dependents.delete(n)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const n=tn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>bv)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,bv);return ow(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(n){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=n(a),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Fs(e,n){return new iR(e,n)}const{schedule:Im}=xw(queueMicrotask,!1),Vn={x:!1,y:!1};function Iw(){return Vn.x||Vn.y}function oR(e){return e==="x"||e==="y"?Vn[e]?null:(Vn[e]=!0,()=>{Vn[e]=!1}):Vn.x||Vn.y?null:(Vn.x=Vn.y=!0,()=>{Vn.x=Vn.y=!1})}function qw(e,n){const a=rR(e),s=new AbortController,o={passive:!0,...n,signal:s.signal};return[a,o,()=>s.abort()]}function wv(e){return!(e.pointerType==="touch"||Iw())}function lR(e,n,a={}){const[s,o,c]=qw(e,a),u=f=>{if(!wv(f))return;const{target:h}=f,m=n(h,f);if(typeof m!="function"||!h)return;const g=x=>{wv(x)&&(m(x),h.removeEventListener("pointerleave",g))};h.addEventListener("pointerleave",g,o)};return s.forEach(f=>{f.addEventListener("pointerenter",u,o)}),c}const Gw=(e,n)=>n?e===n?!0:Gw(e,n.parentElement):!1,qm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,cR=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function uR(e){return cR.has(e.tagName)||e.tabIndex!==-1}const Sc=new WeakSet;function Sv(e){return n=>{n.key==="Enter"&&e(n)}}function uh(e,n){e.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const dR=(e,n)=>{const a=e.currentTarget;if(!a)return;const s=Sv(()=>{if(Sc.has(a))return;uh(a,"down");const o=Sv(()=>{uh(a,"up")}),c=()=>uh(a,"cancel");a.addEventListener("keyup",o,n),a.addEventListener("blur",c,n)});a.addEventListener("keydown",s,n),a.addEventListener("blur",()=>a.removeEventListener("keydown",s),n)};function jv(e){return qm(e)&&!Iw()}function fR(e,n,a={}){const[s,o,c]=qw(e,a),u=f=>{const h=f.currentTarget;if(!jv(f))return;Sc.add(h);const m=n(h,f),g=(E,_)=>{window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",b),Sc.has(h)&&Sc.delete(h),jv(E)&&typeof m=="function"&&m(E,{success:_})},x=E=>{g(E,h===window||h===document||a.useGlobalTarget||Gw(h,E.target))},b=E=>{g(E,!1)};window.addEventListener("pointerup",x,o),window.addEventListener("pointercancel",b,o)};return s.forEach(f=>{(a.useGlobalTarget?window:f).addEventListener("pointerdown",u,o),aR(f)&&(f.addEventListener("focus",m=>dR(m,o)),!uR(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),c}function Yw(e){return sw(e)&&"ownerSVGElement"in e}function hR(e){return Yw(e)&&e.tagName==="svg"}const qt=e=>!!(e&&e.getVelocity),mR=[...Bw,Nt,ra],pR=e=>mR.find(Uw(e)),Xw=X.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function gR(e=!0){const n=X.useContext(jm);if(n===null)return[!0,null];const{isPresent:a,onExitComplete:s,register:o}=n,c=X.useId();X.useEffect(()=>{if(e)return o(c)},[e]);const u=X.useCallback(()=>e&&s&&s(c),[c,s,e]);return!a&&s?[!1,u]:[!0]}const Ww=X.createContext({strict:!1}),Ev={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"]},Vs={};for(const e in Ev)Vs[e]={isEnabled:n=>Ev[e].some(a=>!!n[a])};function yR(e){for(const n in e)Vs[n]={...Vs[n],...e[n]}}const xR=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 Vc(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||xR.has(e)}let Zw=e=>!Vc(e);function vR(e){typeof e=="function"&&(Zw=n=>n.startsWith("on")?!Vc(n):e(n))}try{vR(require("@emotion/is-prop-valid").default)}catch{}function bR(e,n,a){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(Zw(o)||a===!0&&Vc(o)||!n&&!Vc(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}const du=X.createContext({});function fu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function wo(e){return typeof e=="string"||Array.isArray(e)}const Gm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Ym=["initial",...Gm];function hu(e){return fu(e.animate)||Ym.some(n=>wo(e[n]))}function Kw(e){return!!(hu(e)||e.variants)}function wR(e,n){if(hu(e)){const{initial:a,animate:s}=e;return{initial:a===!1||wo(a)?a:void 0,animate:wo(s)?s:void 0}}return e.inherit!==!1?n:{}}function SR(e){const{initial:n,animate:a}=wR(e,X.useContext(du));return X.useMemo(()=>({initial:n,animate:a}),[Tv(n),Tv(a)])}function Tv(e){return Array.isArray(e)?e.join(" "):e}const So={};function jR(e){for(const n in e)So[n]=e[n],Rm(n)&&(So[n].isCSSVariable=!0)}function $w(e,{layout:n,layoutId:a}){return Zs.has(e)||e.startsWith("origin")||(n||a!==void 0)&&(!!So[e]||e==="opacity")}const ER={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},TR=Ws.length;function AR(e,n,a){let s="",o=!0;for(let c=0;c<TR;c++){const u=Ws[c],f=e[u];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(u.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||a){const m=Hw(f,Hm[u]);if(!h){o=!1;const g=ER[u]||u;s+=`${g}(${m}) `}a&&(n[u]=m)}}return s=s.trim(),a?s=a(n,o?"":s):o&&(s="none"),s}function Xm(e,n,a){const{style:s,vars:o,transformOrigin:c}=e;let u=!1,f=!1;for(const h in n){const m=n[h];if(Zs.has(h)){u=!0;continue}else if(Rm(h)){o[h]=m;continue}else{const g=Hw(m,Hm[h]);h.startsWith("origin")?(f=!0,c[h]=g):s[h]=g}}if(n.transform||(u||a?s.transform=AR(n,e.transform,a):s.transform&&(s.transform="none")),f){const{originX:h="50%",originY:m="50%",originZ:g=0}=c;s.transformOrigin=`${h} ${m} ${g}`}}const Wm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Qw(e,n,a){for(const s in n)!qt(n[s])&&!$w(s,a)&&(e[s]=n[s])}function NR({transformTemplate:e},n){return X.useMemo(()=>{const a=Wm();return Xm(a,n,e),Object.assign({},a.vars,a.style)},[n])}function _R(e,n){const a=e.style||{},s={};return Qw(s,a,e),Object.assign(s,NR(e,n)),s}function kR(e,n){const a={},s=_R(e,n);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=s,a}const OR={offset:"stroke-dashoffset",array:"stroke-dasharray"},RR={offset:"strokeDashoffset",array:"strokeDasharray"};function CR(e,n,a=1,s=0,o=!0){e.pathLength=1;const c=o?OR:RR;e[c.offset]=Ue.transform(-s);const u=Ue.transform(n),f=Ue.transform(a);e[c.array]=`${u} ${f}`}function Jw(e,{attrX:n,attrY:a,attrScale:s,pathLength:o,pathSpacing:c=1,pathOffset:u=0,...f},h,m,g){if(Xm(e,f,m),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:x,style:b}=e;x.transform&&(b.transform=x.transform,delete x.transform),(b.transform||x.transformOrigin)&&(b.transformOrigin=x.transformOrigin??"50% 50%",delete x.transformOrigin),b.transform&&(b.transformBox=g?.transformBox??"fill-box",delete x.transformBox),n!==void 0&&(x.x=n),a!==void 0&&(x.y=a),s!==void 0&&(x.scale=s),o!==void 0&&CR(x,o,c,u,!1)}const e2=()=>({...Wm(),attrs:{}}),t2=e=>typeof e=="string"&&e.toLowerCase()==="svg";function DR(e,n,a,s){const o=X.useMemo(()=>{const c=e2();return Jw(c,n,t2(s),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[n]);if(e.style){const c={};Qw(c,e.style,e),o.style={...c,...o.style}}return o}const MR=["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 Zm(e){return typeof e!="string"||e.includes("-")?!1:!!(MR.indexOf(e)>-1||/[A-Z]/u.test(e))}function LR(e,n,a,{latestValues:s},o,c=!1){const f=(Zm(e)?DR:kR)(n,s,o,e),h=bR(n,typeof e=="string",c),m=e!==X.Fragment?{...h,...f,ref:a}:{},{children:g}=n,x=X.useMemo(()=>qt(g)?g.get():g,[g]);return X.createElement(e,{...m,children:x})}function Av(e){const n=[{},{}];return e?.values.forEach((a,s)=>{n[0][s]=a.get(),n[1][s]=a.getVelocity()}),n}function Km(e,n,a,s){if(typeof n=="function"){const[o,c]=Av(s);n=n(a!==void 0?a:e.custom,o,c)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[o,c]=Av(s);n=n(a!==void 0?a:e.custom,o,c)}return n}function jc(e){return qt(e)?e.get():e}function PR({scrapeMotionValuesFromProps:e,createRenderState:n},a,s,o){return{latestValues:zR(a,s,o,e),renderState:n()}}function zR(e,n,a,s){const o={},c=s(e,{});for(const b in c)o[b]=jc(c[b]);let{initial:u,animate:f}=e;const h=hu(e),m=Kw(e);n&&m&&!h&&e.inherit!==!1&&(u===void 0&&(u=n.initial),f===void 0&&(f=n.animate));let g=a?a.initial===!1:!1;g=g||u===!1;const x=g?f:u;if(x&&typeof x!="boolean"&&!fu(x)){const b=Array.isArray(x)?x:[x];for(let E=0;E<b.length;E++){const _=Km(e,b[E]);if(_){const{transitionEnd:S,transition:A,...T}=_;for(const C in T){let L=T[C];if(Array.isArray(L)){const q=g?L.length-1:0;L=L[q]}L!==null&&(o[C]=L)}for(const C in S)o[C]=S[C]}}}return o}const n2=e=>(n,a)=>{const s=X.useContext(du),o=X.useContext(jm),c=()=>PR(e,n,s,o);return a?c():y5(c)};function $m(e,n,a){const{style:s}=e,o={};for(const c in s)(qt(s[c])||n.style&&qt(n.style[c])||$w(c,e)||a?.getValue(c)?.liveStyle!==void 0)&&(o[c]=s[c]);return o}const UR=n2({scrapeMotionValuesFromProps:$m,createRenderState:Wm});function r2(e,n,a){const s=$m(e,n,a);for(const o in e)if(qt(e[o])||qt(n[o])){const c=Ws.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[c]=e[o]}return s}const BR=n2({scrapeMotionValuesFromProps:r2,createRenderState:e2}),FR=Symbol.for("motionComponentSymbol");function _s(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function VR(e,n,a){return X.useCallback(s=>{s&&e.onMount&&e.onMount(s),n&&(s?n.mount(s):n.unmount()),a&&(typeof a=="function"?a(s):_s(a)&&(a.current=s))},[n])}const Qm=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),HR="framerAppearId",a2="data-"+Qm(HR),s2=X.createContext({});function IR(e,n,a,s,o){const{visualElement:c}=X.useContext(du),u=X.useContext(Ww),f=X.useContext(jm),h=X.useContext(Xw).reducedMotion,m=X.useRef(null);s=s||u.renderer,!m.current&&s&&(m.current=s(e,{visualState:n,parent:c,props:a,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const g=m.current,x=X.useContext(s2);g&&!g.projection&&o&&(g.type==="html"||g.type==="svg")&&qR(m.current,a,o,x);const b=X.useRef(!1);X.useInsertionEffect(()=>{g&&b.current&&g.update(a,f)});const E=a[a2],_=X.useRef(!!E&&!window.MotionHandoffIsComplete?.(E)&&window.MotionHasOptimisedAnimation?.(E));return x5(()=>{g&&(b.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),_.current&&g.animationState&&g.animationState.animateChanges())}),X.useEffect(()=>{g&&(!_.current&&g.animationState&&g.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(E)}),_.current=!1),g.enteringChildren=void 0)}),g}function qR(e,n,a,s){const{layoutId:o,layout:c,drag:u,dragConstraints:f,layoutScroll:h,layoutRoot:m,layoutCrossfade:g}=n;e.projection=new a(e.latestValues,n["data-framer-portal-id"]?void 0:i2(e.parent)),e.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!u||f&&_s(f),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:s,crossfade:g,layoutScroll:h,layoutRoot:m})}function i2(e){if(e)return e.options.allowProjection!==!1?e.projection:i2(e.parent)}function dh(e,{forwardMotionProps:n=!1}={},a,s){a&&yR(a);const o=Zm(e)?BR:UR;function c(f,h){let m;const g={...X.useContext(Xw),...f,layoutId:GR(f)},{isStatic:x}=g,b=SR(f),E=o(f,x);if(!x&&Sm){YR();const _=XR(g);m=_.MeasureLayout,b.visualElement=IR(e,E,g,s,_.ProjectionNode)}return d.jsxs(du.Provider,{value:b,children:[m&&b.visualElement?d.jsx(m,{visualElement:b.visualElement,...g}):null,LR(e,f,VR(E,b.visualElement,h),E,x,n)]})}c.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const u=X.forwardRef(c);return u[FR]=e,u}function GR({layoutId:e}){const n=X.useContext(rw).id;return n&&e!==void 0?n+"-"+e:e}function YR(e,n){X.useContext(Ww).strict}function XR(e){const{drag:n,layout:a}=Vs;if(!n&&!a)return{};const s={...n,...a};return{MeasureLayout:n?.isEnabled(e)||a?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function WR(e,n){if(typeof Proxy>"u")return dh;const a=new Map,s=(c,u)=>dh(c,u,e,n),o=(c,u)=>s(c,u);return new Proxy(o,{get:(c,u)=>u==="create"?s:(a.has(u)||a.set(u,dh(u,void 0,e,n)),a.get(u))})}function o2({top:e,left:n,right:a,bottom:s}){return{x:{min:n,max:a},y:{min:e,max:s}}}function ZR({x:e,y:n}){return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function KR(e,n){if(!n)return e;const a=n({x:e.left,y:e.top}),s=n({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:s.y,right:s.x}}function fh(e){return e===void 0||e===1}function Jh({scale:e,scaleX:n,scaleY:a}){return!fh(e)||!fh(n)||!fh(a)}function Aa(e){return Jh(e)||l2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function l2(e){return Nv(e.x)||Nv(e.y)}function Nv(e){return e&&e!=="0%"}function Hc(e,n,a){const s=e-a,o=n*s;return a+o}function _v(e,n,a,s,o){return o!==void 0&&(e=Hc(e,o,s)),Hc(e,a,s)+n}function em(e,n=0,a=1,s,o){e.min=_v(e.min,n,a,s,o),e.max=_v(e.max,n,a,s,o)}function c2(e,{x:n,y:a}){em(e.x,n.translate,n.scale,n.originPoint),em(e.y,a.translate,a.scale,a.originPoint)}const kv=.999999999999,Ov=1.0000000000001;function $R(e,n,a,s=!1){const o=a.length;if(!o)return;n.x=n.y=1;let c,u;for(let f=0;f<o;f++){c=a[f],u=c.projectionDelta;const{visualElement:h}=c.options;h&&h.props.style&&h.props.style.display==="contents"||(s&&c.options.layoutScroll&&c.scroll&&c!==c.root&&Os(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),u&&(n.x*=u.x.scale,n.y*=u.y.scale,c2(e,u)),s&&Aa(c.latestValues)&&Os(e,c.latestValues))}n.x<Ov&&n.x>kv&&(n.x=1),n.y<Ov&&n.y>kv&&(n.y=1)}function ks(e,n){e.min=e.min+n,e.max=e.max+n}function Rv(e,n,a,s,o=.5){const c=mt(e.min,e.max,o);em(e,n,a,c,s)}function Os(e,n){Rv(e.x,n.x,n.scaleX,n.scale,n.originX),Rv(e.y,n.y,n.scaleY,n.scale,n.originY)}function u2(e,n){return o2(KR(e.getBoundingClientRect(),n))}function QR(e,n,a){const s=u2(e,a),{scroll:o}=n;return o&&(ks(s.x,o.offset.x),ks(s.y,o.offset.y)),s}const Cv=()=>({translate:0,scale:1,origin:0,originPoint:0}),Rs=()=>({x:Cv(),y:Cv()}),Dv=()=>({min:0,max:0}),jt=()=>({x:Dv(),y:Dv()}),tm={current:null},d2={current:!1};function JR(){if(d2.current=!0,!!Sm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),n=()=>tm.current=e.matches;e.addEventListener("change",n),n()}else tm.current=!1}const eC=new WeakMap;function tC(e,n,a){for(const s in n){const o=n[s],c=a[s];if(qt(o))e.addValue(s,o);else if(qt(c))e.addValue(s,Fs(o,{owner:e}));else if(c!==o)if(e.hasValue(s)){const u=e.getValue(s);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=e.getStaticValue(s);e.addValue(s,Fs(u!==void 0?u:o,{owner:e}))}}for(const s in a)n[s]===void 0&&e.removeValue(s);return n}const Mv=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class nC{scrapeMotionValuesFromProps(n,a,s){return{}}constructor({parent:n,props:a,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:c,visualState:u},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Fm,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 b=tn.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,ut.render(this.render,!1,!0))};const{latestValues:h,renderState:m}=u;this.latestValues=h,this.baseTarget={...h},this.initialValues=a.initial?{...h}:{},this.renderState=m,this.parent=n,this.props=a,this.presenceContext=s,this.depth=n?n.depth+1:0,this.reducedMotionConfig=o,this.options=f,this.blockInitialAnimation=!!c,this.isControllingVariants=hu(a),this.isVariantNode=Kw(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:g,...x}=this.scrapeMotionValuesFromProps(a,{},this);for(const b in x){const E=x[b];h[b]!==void 0&&qt(E)&&E.set(h[b])}}mount(n){this.current=n,eC.set(n,this),this.projection&&!this.projection.instance&&this.projection.mount(n),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,s)=>this.bindToMotionValue(s,a)),d2.current||JR(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:tm.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),na(this.notifyUpdate),na(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const a=this.features[n];a&&(a.unmount(),a.isMounted=!1)}this.current=null}addChild(n){this.children.add(n),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(n)}removeChild(n){this.children.delete(n),this.enteringChildren&&this.enteringChildren.delete(n)}bindToMotionValue(n,a){this.valueSubscriptions.has(n)&&this.valueSubscriptions.get(n)();const s=Zs.has(n);s&&this.onBindTransform&&this.onBindTransform();const o=a.on("change",u=>{this.latestValues[n]=u,this.props.onUpdate&&ut.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,n,a)),this.valueSubscriptions.set(n,()=>{o(),c&&c(),a.owner&&a.stop()})}sortNodePosition(n){return!this.current||!this.sortInstanceNodePosition||this.type!==n.type?0:this.sortInstanceNodePosition(this.current,n.current)}updateFeatures(){let n="animation";for(n in Vs){const a=Vs[n];if(!a)continue;const{isEnabled:s,Feature:o}=a;if(!this.features[n]&&o&&s(this.props)&&(this.features[n]=new o(this)),this.features[n]){const c=this.features[n];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):jt()}getStaticValue(n){return this.latestValues[n]}setStaticValue(n,a){this.latestValues[n]=a}update(n,a){(n.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=n,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let s=0;s<Mv.length;s++){const o=Mv[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,u=n[c];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=tC(this,this.scrapeMotionValuesFromProps(n,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(n){return this.props.variants?this.props.variants[n]: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(n){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(n),()=>a.variantChildren.delete(n)}addValue(n,a){const s=this.values.get(n);a!==s&&(s&&this.removeValue(n),this.bindToMotionValue(n,a),this.values.set(n,a),this.latestValues[n]=a.get())}removeValue(n){this.values.delete(n);const a=this.valueSubscriptions.get(n);a&&(a(),this.valueSubscriptions.delete(n)),delete this.latestValues[n],this.removeValueFromRenderState(n,this.renderState)}hasValue(n){return this.values.has(n)}getValue(n,a){if(this.props.values&&this.props.values[n])return this.props.values[n];let s=this.values.get(n);return s===void 0&&a!==void 0&&(s=Fs(a===null?void 0:a,{owner:this}),this.addValue(n,s)),s}readValue(n,a){let s=this.latestValues[n]!==void 0||!this.current?this.latestValues[n]:this.getBaseTargetFromProps(this.props,n)??this.readValueFromInstance(this.current,n,this.options);return s!=null&&(typeof s=="string"&&(aw(s)||iw(s))?s=parseFloat(s):!pR(s)&&ra.test(a)&&(s=Vw(n,a)),this.setBaseTarget(n,qt(s)?s.get():s)),qt(s)?s.get():s}setBaseTarget(n,a){this.baseTarget[n]=a}getBaseTarget(n){const{initial:a}=this.props;let s;if(typeof a=="string"||typeof a=="object"){const c=Km(this.props,a,this.presenceContext?.custom);c&&(s=c[n])}if(a&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,n);return o!==void 0&&!qt(o)?o:this.initialValues[n]!==void 0&&s===void 0?void 0:this.baseTarget[n]}on(n,a){return this.events[n]||(this.events[n]=new _m),this.events[n].add(a)}notify(n,...a){this.events[n]&&this.events[n].notify(...a)}scheduleRenderMicrotask(){Im.render(this.render)}}class f2 extends nC{constructor(){super(...arguments),this.KeyframeResolver=nR}sortInstanceNodePosition(n,a){return n.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(n,a){return n.style?n.style[a]:void 0}removeValueFromRenderState(n,{vars:a,style:s}){delete a[n],delete s[n]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:n}=this.props;qt(n)&&(this.childSubscription=n.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function h2(e,{style:n,vars:a},s,o){const c=e.style;let u;for(u in n)c[u]=n[u];o?.applyProjectionStyles(c,s);for(u in a)c.setProperty(u,a[u])}function rC(e){return window.getComputedStyle(e)}class aC extends f2{constructor(){super(...arguments),this.type="html",this.renderInstance=h2}readValueFromInstance(n,a){if(Zs.has(a))return this.projection?.isProjecting?Yh(a):wO(n,a);{const s=rC(n),o=(Rm(a)?s.getPropertyValue(a):s[a])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(n,{transformPagePoint:a}){return u2(n,a)}build(n,a,s){Xm(n,a,s.transformTemplate)}scrapeMotionValuesFromProps(n,a,s){return $m(n,a,s)}}const m2=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 sC(e,n,a,s){h2(e,n,void 0,s);for(const o in n.attrs)e.setAttribute(m2.has(o)?o:Qm(o),n.attrs[o])}class iC extends f2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=jt}getBaseTargetFromProps(n,a){return n[a]}readValueFromInstance(n,a){if(Zs.has(a)){const s=Fw(a);return s&&s.default||0}return a=m2.has(a)?a:Qm(a),n.getAttribute(a)}scrapeMotionValuesFromProps(n,a,s){return r2(n,a,s)}build(n,a,s){Jw(n,a,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(n,a,s,o){sC(n,a,s,o)}mount(n){this.isSVGTag=t2(n.tagName),super.mount(n)}}const oC=(e,n)=>Zm(e)?new iC(n):new aC(n,{allowProjection:e!==X.Fragment});function Ps(e,n,a){const s=e.getProps();return Km(s,n,a!==void 0?a:s.custom,e)}const nm=e=>Array.isArray(e);function lC(e,n,a){e.hasValue(n)?e.getValue(n).set(a):e.addValue(n,Fs(a))}function cC(e){return nm(e)?e[e.length-1]||0:e}function uC(e,n){const a=Ps(e,n);let{transitionEnd:s={},transition:o={},...c}=a||{};c={...c,...s};for(const u in c){const f=cC(c[u]);lC(e,u,f)}}function dC(e){return!!(qt(e)&&e.add)}function rm(e,n){const a=e.getValue("willChange");if(dC(a))return a.add(n);if(!a&&Ar.WillChange){const s=new Ar.WillChange("auto");e.addValue("willChange",s),s.add(n)}}function p2(e){return e.props[a2]}const fC=e=>e!==null;function hC(e,{repeat:n,repeatType:a="loop"},s){const o=e.filter(fC),c=n&&a!=="loop"&&n%2===1?0:o.length-1;return o[c]}const mC={type:"spring",stiffness:500,damping:25,restSpeed:10},pC=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),gC={type:"keyframes",duration:.8},yC={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},xC=(e,{keyframes:n})=>n.length>2?gC:Zs.has(e)?e.startsWith("scale")?pC(n[1]):mC:yC;function vC({when:e,delay:n,delayChildren:a,staggerChildren:s,staggerDirection:o,repeat:c,repeatType:u,repeatDelay:f,from:h,elapsed:m,...g}){return!!Object.keys(g).length}const Jm=(e,n,a,s={},o,c)=>u=>{const f=Vm(s,e)||{},h=f.delay||s.delay||0;let{elapsed:m=0}=s;m=m-er(h);const g={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:n.getVelocity(),...f,delay:-m,onUpdate:b=>{n.set(b),f.onUpdate&&f.onUpdate(b)},onComplete:()=>{u(),f.onComplete&&f.onComplete()},name:e,motionValue:n,element:c?void 0:o};vC(f)||Object.assign(g,xC(e,g)),g.duration&&(g.duration=er(g.duration)),g.repeatDelay&&(g.repeatDelay=er(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let x=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&($h(g),g.delay===0&&(x=!0)),(Ar.instantAnimations||Ar.skipAnimations)&&(x=!0,$h(g),g.delay=0),g.allowFlatten=!f.type&&!f.ease,x&&!c&&n.get()!==void 0){const b=hC(g.keyframes,f);if(b!==void 0){ut.update(()=>{g.onUpdate(b),g.onComplete()});return}}return f.isSync?new Bm(g):new qO(g)};function bC({protectedKeys:e,needsAnimating:n},a){const s=e.hasOwnProperty(a)&&n[a]!==!0;return n[a]=!1,s}function g2(e,n,{delay:a=0,transitionOverride:s,type:o}={}){let{transition:c=e.getDefaultTransition(),transitionEnd:u,...f}=n;s&&(c=s);const h=[],m=o&&e.animationState&&e.animationState.getState()[o];for(const g in f){const x=e.getValue(g,e.latestValues[g]??null),b=f[g];if(b===void 0||m&&bC(m,g))continue;const E={delay:a,...Vm(c||{},g)},_=x.get();if(_!==void 0&&!x.isAnimating&&!Array.isArray(b)&&b===_&&!E.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const T=p2(e);if(T){const C=window.MotionHandoffAnimation(T,g,ut);C!==null&&(E.startTime=C,S=!0)}}rm(e,g),x.start(Jm(g,x,b,e.shouldReduceMotion&&zw.has(g)?{type:!1}:E,e,S));const A=x.animation;A&&h.push(A)}return u&&Promise.all(h).then(()=>{ut.update(()=>{u&&uC(e,u)})}),h}function y2(e,n,a,s=0,o=1){const c=Array.from(e).sort((m,g)=>m.sortNodePosition(g)).indexOf(n),u=e.size,f=(u-1)*s;return typeof a=="function"?a(c,u):o===1?c*s:f-c*s}function am(e,n,a={}){const s=Ps(e,n,a.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};a.transitionOverride&&(o=a.transitionOverride);const c=s?()=>Promise.all(g2(e,s,a)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:m=0,staggerChildren:g,staggerDirection:x}=o;return wC(e,n,h,m,g,x,a)}:()=>Promise.resolve(),{when:f}=o;if(f){const[h,m]=f==="beforeChildren"?[c,u]:[u,c];return h().then(()=>m())}else return Promise.all([c(),u(a.delay)])}function wC(e,n,a=0,s=0,o=0,c=1,u){const f=[];for(const h of e.variantChildren)h.notify("AnimationStart",n),f.push(am(h,n,{...u,delay:a+(typeof s=="function"?0:s)+y2(e.variantChildren,h,s,o,c)}).then(()=>h.notify("AnimationComplete",n)));return Promise.all(f)}function SC(e,n,a={}){e.notify("AnimationStart",n);let s;if(Array.isArray(n)){const o=n.map(c=>am(e,c,a));s=Promise.all(o)}else if(typeof n=="string")s=am(e,n,a);else{const o=typeof n=="function"?Ps(e,n,a.custom):n;s=Promise.all(g2(e,o,a))}return s.then(()=>{e.notify("AnimationComplete",n)})}function x2(e,n){if(!Array.isArray(n))return!1;const a=n.length;if(a!==e.length)return!1;for(let s=0;s<a;s++)if(n[s]!==e[s])return!1;return!0}const jC=Ym.length;function v2(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?v2(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const n={};for(let a=0;a<jC;a++){const s=Ym[a],o=e.props[s];(wo(o)||o===!1)&&(n[s]=o)}return n}const EC=[...Gm].reverse(),TC=Gm.length;function AC(e){return n=>Promise.all(n.map(({animation:a,options:s})=>SC(e,a,s)))}function NC(e){let n=AC(e),a=Lv(),s=!0;const o=h=>(m,g)=>{const x=Ps(e,g,h==="exit"?e.presenceContext?.custom:void 0);if(x){const{transition:b,transitionEnd:E,..._}=x;m={...m,..._,...E}}return m};function c(h){n=h(e)}function u(h){const{props:m}=e,g=v2(e.parent)||{},x=[],b=new Set;let E={},_=1/0;for(let A=0;A<TC;A++){const T=EC[A],C=a[T],L=m[T]!==void 0?m[T]:g[T],q=wo(L),N=T===h?C.isActive:null;N===!1&&(_=A);let z=L===g[T]&&L!==m[T]&&q;if(z&&s&&e.manuallyAnimateOnMount&&(z=!1),C.protectedKeys={...E},!C.isActive&&N===null||!L&&!C.prevProp||fu(L)||typeof L=="boolean")continue;const F=_C(C.prevProp,L);let H=F||T===h&&C.isActive&&!z&&q||A>_&&q,M=!1;const R=Array.isArray(L)?L:[L];let K=R.reduce(o(T),{});N===!1&&(K={});const{prevResolvedValues:P={}}=C,V={...P,...K},j=w=>{H=!0,b.has(w)&&(M=!0,b.delete(w)),C.needsAnimating[w]=!0;const ue=e.getValue(w);ue&&(ue.liveStyle=!1)};for(const w in V){const ue=K[w],I=P[w];if(E.hasOwnProperty(w))continue;let v=!1;nm(ue)&&nm(I)?v=!x2(ue,I):v=ue!==I,v?ue!=null?j(w):b.add(w):ue!==void 0&&b.has(w)?j(w):C.protectedKeys[w]=!0}C.prevProp=L,C.prevResolvedValues=K,C.isActive&&(E={...E,...K}),s&&e.blockInitialAnimation&&(H=!1);const Z=z&&F;H&&(!Z||M)&&x.push(...R.map(w=>{const ue={type:T};if(typeof w=="string"&&s&&!Z&&e.manuallyAnimateOnMount&&e.parent){const{parent:I}=e,v=Ps(I,w);if(I.enteringChildren&&v){const{delayChildren:O}=v.transition||{};ue.delay=y2(I.enteringChildren,e,O)}}return{animation:w,options:ue}}))}if(b.size){const A={};if(typeof m.initial!="boolean"){const T=Ps(e,Array.isArray(m.initial)?m.initial[0]:m.initial);T&&T.transition&&(A.transition=T.transition)}b.forEach(T=>{const C=e.getBaseTarget(T),L=e.getValue(T);L&&(L.liveStyle=!0),A[T]=C??null}),x.push({animation:A})}let S=!!x.length;return s&&(m.initial===!1||m.initial===m.animate)&&!e.manuallyAnimateOnMount&&(S=!1),s=!1,S?n(x):Promise.resolve()}function f(h,m){if(a[h].isActive===m)return Promise.resolve();e.variantChildren?.forEach(x=>x.animationState?.setActive(h,m)),a[h].isActive=m;const g=u(h);for(const x in a)a[x].protectedKeys={};return g}return{animateChanges:u,setActive:f,setAnimateFunction:c,getState:()=>a,reset:()=>{a=Lv(),s=!0}}}function _C(e,n){return typeof n=="string"?n!==e:Array.isArray(n)?!x2(n,e):!1}function Ea(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Lv(){return{animate:Ea(!0),whileInView:Ea(),whileHover:Ea(),whileTap:Ea(),whileDrag:Ea(),whileFocus:Ea(),exit:Ea()}}class sa{constructor(n){this.isMounted=!1,this.node=n}update(){}}class kC extends sa{constructor(n){super(n),n.animationState||(n.animationState=NC(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();fu(n)&&(this.unmountControls=n.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:n}=this.node.getProps(),{animate:a}=this.node.prevProps||{};n!==a&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}}let OC=0;class RC extends sa{constructor(){super(...arguments),this.id=OC++}update(){if(!this.node.presenceContext)return;const{isPresent:n,onExitComplete:a}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||n===s)return;const o=this.node.animationState.setActive("exit",!n);a&&!n&&o.then(()=>{a(this.id)})}mount(){const{register:n,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),n&&(this.unmount=n(this.id))}unmount(){}}const CC={animation:{Feature:kC},exit:{Feature:RC}};function jo(e,n,a,s={passive:!0}){return e.addEventListener(n,a,s),()=>e.removeEventListener(n,a)}function zo(e){return{point:{x:e.pageX,y:e.pageY}}}const DC=e=>n=>qm(n)&&e(n,zo(n));function lo(e,n,a,s){return jo(e,n,DC(a),s)}const b2=1e-4,MC=1-b2,LC=1+b2,w2=.01,PC=0-w2,zC=0+w2;function Xt(e){return e.max-e.min}function UC(e,n,a){return Math.abs(e-n)<=a}function Pv(e,n,a,s=.5){e.origin=s,e.originPoint=mt(n.min,n.max,e.origin),e.scale=Xt(a)/Xt(n),e.translate=mt(a.min,a.max,e.origin)-e.originPoint,(e.scale>=MC&&e.scale<=LC||isNaN(e.scale))&&(e.scale=1),(e.translate>=PC&&e.translate<=zC||isNaN(e.translate))&&(e.translate=0)}function co(e,n,a,s){Pv(e.x,n.x,a.x,s?s.originX:void 0),Pv(e.y,n.y,a.y,s?s.originY:void 0)}function zv(e,n,a){e.min=a.min+n.min,e.max=e.min+Xt(n)}function BC(e,n,a){zv(e.x,n.x,a.x),zv(e.y,n.y,a.y)}function Uv(e,n,a){e.min=n.min-a.min,e.max=e.min+Xt(n)}function uo(e,n,a){Uv(e.x,n.x,a.x),Uv(e.y,n.y,a.y)}function Nn(e){return[e("x"),e("y")]}const S2=({current:e})=>e?e.ownerDocument.defaultView:null,Bv=(e,n)=>Math.abs(e-n);function FC(e,n){const a=Bv(e.x,n.x),s=Bv(e.y,n.y);return Math.sqrt(a**2+s**2)}class j2{constructor(n,a,{transformPagePoint:s,contextWindow:o=window,dragSnapToOrigin:c=!1,distanceThreshold:u=3}={}){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=mh(this.lastMoveEventInfo,this.history),E=this.startEvent!==null,_=FC(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!E&&!_)return;const{point:S}=b,{timestamp:A}=Ut;this.history.push({...S,timestamp:A});const{onStart:T,onMove:C}=this.handlers;E||(T&&T(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),C&&C(this.lastMoveEvent,b)},this.handlePointerMove=(b,E)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=hh(E,this.transformPagePoint),ut.update(this.updatePoint,!0)},this.handlePointerUp=(b,E)=>{this.end();const{onEnd:_,onSessionEnd:S,resumeAnimation:A}=this.handlers;if(this.dragSnapToOrigin&&A&&A(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=mh(b.type==="pointercancel"?this.lastMoveEventInfo:hh(E,this.transformPagePoint),this.history);this.startEvent&&_&&_(b,T),S&&S(b,T)},!qm(n))return;this.dragSnapToOrigin=c,this.handlers=a,this.transformPagePoint=s,this.distanceThreshold=u,this.contextWindow=o||window;const f=zo(n),h=hh(f,this.transformPagePoint),{point:m}=h,{timestamp:g}=Ut;this.history=[{...m,timestamp:g}];const{onSessionStart:x}=a;x&&x(n,mh(h,this.history)),this.removeListeners=Mo(lo(this.contextWindow,"pointermove",this.handlePointerMove),lo(this.contextWindow,"pointerup",this.handlePointerUp),lo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),na(this.updatePoint)}}function hh(e,n){return n?{point:n(e.point)}:e}function Fv(e,n){return{x:e.x-n.x,y:e.y-n.y}}function mh({point:e},n){return{point:e,delta:Fv(e,E2(n)),offset:Fv(e,VC(n)),velocity:HC(n,.1)}}function VC(e){return e[0]}function E2(e){return e[e.length-1]}function HC(e,n){if(e.length<2)return{x:0,y:0};let a=e.length-1,s=null;const o=E2(e);for(;a>=0&&(s=e[a],!(o.timestamp-s.timestamp>er(n)));)a--;if(!s)return{x:0,y:0};const c=tr(o.timestamp-s.timestamp);if(c===0)return{x:0,y:0};const u={x:(o.x-s.x)/c,y:(o.y-s.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function IC(e,{min:n,max:a},s){return n!==void 0&&e<n?e=s?mt(n,e,s.min):Math.max(e,n):a!==void 0&&e>a&&(e=s?mt(a,e,s.max):Math.min(e,a)),e}function Vv(e,n,a){return{min:n!==void 0?e.min+n:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function qC(e,{top:n,left:a,bottom:s,right:o}){return{x:Vv(e.x,a,o),y:Vv(e.y,n,s)}}function Hv(e,n){let a=n.min-e.min,s=n.max-e.max;return n.max-n.min<e.max-e.min&&([a,s]=[s,a]),{min:a,max:s}}function GC(e,n){return{x:Hv(e.x,n.x),y:Hv(e.y,n.y)}}function YC(e,n){let a=.5;const s=Xt(e),o=Xt(n);return o>s?a=xo(n.min,n.max-s,e.min):s>o&&(a=xo(e.min,e.max-o,n.min)),Tr(0,1,a)}function XC(e,n){const a={};return n.min!==void 0&&(a.min=n.min-e.min),n.max!==void 0&&(a.max=n.max-e.min),a}const sm=.35;function WC(e=sm){return e===!1?e=0:e===!0&&(e=sm),{x:Iv(e,"left","right"),y:Iv(e,"top","bottom")}}function Iv(e,n,a){return{min:qv(e,n),max:qv(e,a)}}function qv(e,n){return typeof e=="number"?e:e[n]||0}const ZC=new WeakMap;class KC{constructor(n){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=jt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=n}start(n,{snapToCursor:a=!1,distanceThreshold:s}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const c=x=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(zo(x).point)},u=(x,b)=>{const{drag:E,dragPropagation:_,onDragStart:S}=this.getProps();if(E&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=oR(E),!this.openDragLock))return;this.latestPointerEvent=x,this.latestPanInfo=b,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Nn(T=>{let C=this.getAxisMotionValue(T).get()||0;if(nr.test(C)){const{projection:L}=this.visualElement;if(L&&L.layout){const q=L.layout.layoutBox[T];q&&(C=Xt(q)*(parseFloat(C)/100))}}this.originPoint[T]=C}),S&&ut.postRender(()=>S(x,b)),rm(this.visualElement,"transform");const{animationState:A}=this.visualElement;A&&A.setActive("whileDrag",!0)},f=(x,b)=>{this.latestPointerEvent=x,this.latestPanInfo=b;const{dragPropagation:E,dragDirectionLock:_,onDirectionLock:S,onDrag:A}=this.getProps();if(!E&&!this.openDragLock)return;const{offset:T}=b;if(_&&this.currentDirection===null){this.currentDirection=$C(T),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",b.point,T),this.updateAxis("y",b.point,T),this.visualElement.render(),A&&A(x,b)},h=(x,b)=>{this.latestPointerEvent=x,this.latestPanInfo=b,this.stop(x,b),this.latestPointerEvent=null,this.latestPanInfo=null},m=()=>Nn(x=>this.getAnimationState(x)==="paused"&&this.getAxisMotionValue(x).animation?.play()),{dragSnapToOrigin:g}=this.getProps();this.panSession=new j2(n,{onSessionStart:c,onStart:u,onMove:f,onSessionEnd:h,resumeAnimation:m},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:s,contextWindow:S2(this.visualElement)})}stop(n,a){const s=n||this.latestPointerEvent,o=a||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!o||!s)return;const{velocity:u}=o;this.startAnimation(u);const{onDragEnd:f}=this.getProps();f&&ut.postRender(()=>f(s,o))}cancel(){this.isDragging=!1;const{projection:n,animationState:a}=this.visualElement;n&&(n.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}updateAxis(n,a,s){const{drag:o}=this.getProps();if(!s||!sc(n,o,this.currentDirection))return;const c=this.getAxisMotionValue(n);let u=this.originPoint[n]+s[n];this.constraints&&this.constraints[n]&&(u=IC(u,this.constraints[n],this.elastic[n])),c.set(u)}resolveConstraints(){const{dragConstraints:n,dragElastic:a}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,o=this.constraints;n&&_s(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=qC(s.layoutBox,n):this.constraints=!1,this.elastic=WC(a),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&Nn(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=XC(s.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:a}=this.getProps();if(!n||!_s(n))return!1;const s=n.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=QR(s,o.root,this.visualElement.getTransformPagePoint());let u=GC(o.layout.layoutBox,c);if(a){const f=a(ZR(u));this.hasMutatedConstraints=!!f,f&&(u=o2(f))}return u}startAnimation(n){const{drag:a,dragMomentum:s,dragElastic:o,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},m=Nn(g=>{if(!sc(g,a,this.currentDirection))return;let x=h&&h[g]||{};u&&(x={min:0,max:0});const b=o?200:1e6,E=o?40:1e7,_={type:"inertia",velocity:s?n[g]:0,bounceStiffness:b,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...c,...x};return this.startAxisValueAnimation(g,_)});return Promise.all(m).then(f)}startAxisValueAnimation(n,a){const s=this.getAxisMotionValue(n);return rm(this.visualElement,n),s.start(Jm(n,s,0,a,this.visualElement,!1))}stopAnimation(){Nn(n=>this.getAxisMotionValue(n).stop())}pauseAnimation(){Nn(n=>this.getAxisMotionValue(n).animation?.pause())}getAnimationState(n){return this.getAxisMotionValue(n).animation?.state}getAxisMotionValue(n){const a=`_drag${n.toUpperCase()}`,s=this.visualElement.getProps(),o=s[a];return o||this.visualElement.getValue(n,(s.initial?s.initial[n]:void 0)||0)}snapToCursor(n){Nn(a=>{const{drag:s}=this.getProps();if(!sc(a,s,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(a);if(o&&o.layout){const{min:u,max:f}=o.layout.layoutBox[a];c.set(n[a]-mt(u,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:a}=this.getProps(),{projection:s}=this.visualElement;if(!_s(a)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Nn(u=>{const f=this.getAxisMotionValue(u);if(f&&this.constraints!==!1){const h=f.get();o[u]=YC({min:h,max:h},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),Nn(u=>{if(!sc(u,n,null))return;const f=this.getAxisMotionValue(u),{min:h,max:m}=this.constraints[u];f.set(mt(h,m,o[u]))})}addListeners(){if(!this.visualElement.current)return;ZC.set(this.visualElement,this);const n=this.visualElement.current,a=lo(n,"pointerdown",h=>{const{drag:m,dragListener:g=!0}=this.getProps();m&&g&&this.start(h)}),s=()=>{const{dragConstraints:h}=this.getProps();_s(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,c=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ut.read(s);const u=jo(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",({delta:h,hasLayoutChanged:m})=>{this.isDragging&&m&&(Nn(g=>{const x=this.getAxisMotionValue(g);x&&(this.originPoint[g]+=h[g].translate,x.set(x.get()+h[g].translate))}),this.visualElement.render())});return()=>{u(),a(),c(),f&&f()}}getProps(){const n=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:u=sm,dragMomentum:f=!0}=n;return{...n,drag:a,dragDirectionLock:s,dragPropagation:o,dragConstraints:c,dragElastic:u,dragMomentum:f}}}function sc(e,n,a){return(n===!0||n===e)&&(a===null||a===e)}function $C(e,n=10){let a=null;return Math.abs(e.y)>n?a="y":Math.abs(e.x)>n&&(a="x"),a}class QC extends sa{constructor(n){super(n),this.removeGroupControls=On,this.removeListeners=On,this.controls=new KC(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||On}unmount(){this.removeGroupControls(),this.removeListeners()}}const Gv=e=>(n,a)=>{e&&ut.postRender(()=>e(n,a))};class JC extends sa{constructor(){super(...arguments),this.removePointerDownListener=On}onPointerDown(n){this.session=new j2(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:S2(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:a,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:Gv(n),onStart:Gv(a),onMove:s,onEnd:(c,u)=>{delete this.session,o&&ut.postRender(()=>o(c,u))}}}mount(){this.removePointerDownListener=lo(this.node.current,"pointerdown",n=>this.onPointerDown(n))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Ec={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Yv(e,n){return n.max===n.min?0:e/(n.max-n.min)*100}const Qi={correct:(e,n)=>{if(!n.target)return e;if(typeof e=="string")if(Ue.test(e))e=parseFloat(e);else return e;const a=Yv(e,n.target.x),s=Yv(e,n.target.y);return`${a}% ${s}%`}},e6={correct:(e,{treeScale:n,projectionDelta:a})=>{const s=e,o=ra.parse(e);if(o.length>5)return s;const c=ra.createTransformer(e),u=typeof o[0]!="number"?1:0,f=a.x.scale*n.x,h=a.y.scale*n.y;o[0+u]/=f,o[1+u]/=h;const m=mt(f,h,.5);return typeof o[2+u]=="number"&&(o[2+u]/=m),typeof o[3+u]=="number"&&(o[3+u]/=m),c(o)}};let ph=!1;class t6 extends X.Component{componentDidMount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:s,layoutId:o}=this.props,{projection:c}=n;jR(n6),c&&(a.group&&a.group.add(c),s&&s.register&&o&&s.register(c),ph&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,onExitComplete:()=>this.safeToRemove()})),Ec.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:a,visualElement:s,drag:o,isPresent:c}=this.props,{projection:u}=s;return u&&(u.isPresent=c,ph=!0,o||n.layoutDependency!==a||a===void 0||n.isPresent!==c?u.willUpdate():this.safeToRemove(),n.isPresent!==c&&(c?u.promote():u.relegate()||ut.postRender(()=>{const f=u.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),Im.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:s}=this.props,{projection:o}=n;ph=!0,o&&(o.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(o),s&&s.deregister&&s.deregister(o))}safeToRemove(){const{safeToRemove:n}=this.props;n&&n()}render(){return null}}function T2(e){const[n,a]=gR(),s=X.useContext(rw);return d.jsx(t6,{...e,layoutGroup:s,switchLayoutGroup:X.useContext(s2),isPresent:n,safeToRemove:a})}const n6={borderRadius:{...Qi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qi,borderTopRightRadius:Qi,borderBottomLeftRadius:Qi,borderBottomRightRadius:Qi,boxShadow:e6};function r6(e,n,a){const s=qt(e)?e:Fs(e);return s.start(Jm("",s,n,a)),s.animation}const a6=(e,n)=>e.depth-n.depth;class s6{constructor(){this.children=[],this.isDirty=!1}add(n){Em(this.children,n),this.isDirty=!0}remove(n){Tm(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(a6),this.isDirty=!1,this.children.forEach(n)}}function i6(e,n){const a=tn.now(),s=({timestamp:o})=>{const c=o-a;c>=n&&(na(s),e(c-n))};return ut.setup(s,!0),()=>na(s)}const A2=["TopLeft","TopRight","BottomLeft","BottomRight"],o6=A2.length,Xv=e=>typeof e=="string"?parseFloat(e):e,Wv=e=>typeof e=="number"||Ue.test(e);function l6(e,n,a,s,o,c){o?(e.opacity=mt(0,a.opacity??1,c6(s)),e.opacityExit=mt(n.opacity??1,0,u6(s))):c&&(e.opacity=mt(n.opacity??1,a.opacity??1,s));for(let u=0;u<o6;u++){const f=`border${A2[u]}Radius`;let h=Zv(n,f),m=Zv(a,f);if(h===void 0&&m===void 0)continue;h||(h=0),m||(m=0),h===0||m===0||Wv(h)===Wv(m)?(e[f]=Math.max(mt(Xv(h),Xv(m),s),0),(nr.test(m)||nr.test(h))&&(e[f]+="%")):e[f]=m}(n.rotate||a.rotate)&&(e.rotate=mt(n.rotate||0,a.rotate||0,s))}function Zv(e,n){return e[n]!==void 0?e[n]:e.borderRadius}const c6=N2(0,.5,mw),u6=N2(.5,.95,On);function N2(e,n,a){return s=>s<e?0:s>n?1:a(xo(e,n,s))}function Kv(e,n){e.min=n.min,e.max=n.max}function An(e,n){Kv(e.x,n.x),Kv(e.y,n.y)}function $v(e,n){e.translate=n.translate,e.scale=n.scale,e.originPoint=n.originPoint,e.origin=n.origin}function Qv(e,n,a,s,o){return e-=n,e=Hc(e,1/a,s),o!==void 0&&(e=Hc(e,1/o,s)),e}function d6(e,n=0,a=1,s=.5,o,c=e,u=e){if(nr.test(n)&&(n=parseFloat(n),n=mt(u.min,u.max,n/100)-u.min),typeof n!="number")return;let f=mt(c.min,c.max,s);e===c&&(f-=n),e.min=Qv(e.min,n,a,f,o),e.max=Qv(e.max,n,a,f,o)}function Jv(e,n,[a,s,o],c,u){d6(e,n[a],n[s],n[o],n.scale,c,u)}const f6=["x","scaleX","originX"],h6=["y","scaleY","originY"];function eb(e,n,a,s){Jv(e.x,n,f6,a?a.x:void 0,s?s.x:void 0),Jv(e.y,n,h6,a?a.y:void 0,s?s.y:void 0)}function tb(e){return e.translate===0&&e.scale===1}function _2(e){return tb(e.x)&&tb(e.y)}function nb(e,n){return e.min===n.min&&e.max===n.max}function m6(e,n){return nb(e.x,n.x)&&nb(e.y,n.y)}function rb(e,n){return Math.round(e.min)===Math.round(n.min)&&Math.round(e.max)===Math.round(n.max)}function k2(e,n){return rb(e.x,n.x)&&rb(e.y,n.y)}function ab(e){return Xt(e.x)/Xt(e.y)}function sb(e,n){return e.translate===n.translate&&e.scale===n.scale&&e.originPoint===n.originPoint}class p6{constructor(){this.members=[]}add(n){Em(this.members,n),n.scheduleRender()}remove(n){if(Tm(this.members,n),n===this.prevLead&&(this.prevLead=void 0),n===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(n){const a=this.members.findIndex(o=>n===o);if(a===0)return!1;let s;for(let o=a;o>=0;o--){const c=this.members[o];if(c.isPresent!==!1){s=c;break}}return s?(this.promote(s),!0):!1}promote(n,a){const s=this.lead;if(n!==s&&(this.prevLead=s,this.lead=n,n.show(),s)){s.instance&&s.scheduleRender(),n.scheduleRender(),n.resumeFrom=s,a&&(n.resumeFrom.preserveOpacity=!0),s.snapshot&&(n.snapshot=s.snapshot,n.snapshot.latestValues=s.animationValues||s.latestValues),n.root&&n.root.isUpdating&&(n.isLayoutDirty=!0);const{crossfade:o}=n.options;o===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(n=>{const{options:a,resumingFrom:s}=n;a.onExitComplete&&a.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(n=>{n.instance&&n.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function g6(e,n,a){let s="";const o=e.x.translate/n.x,c=e.y.translate/n.y,u=a?.z||0;if((o||c||u)&&(s=`translate3d(${o}px, ${c}px, ${u}px) `),(n.x!==1||n.y!==1)&&(s+=`scale(${1/n.x}, ${1/n.y}) `),a){const{transformPerspective:m,rotate:g,rotateX:x,rotateY:b,skewX:E,skewY:_}=a;m&&(s=`perspective(${m}px) ${s}`),g&&(s+=`rotate(${g}deg) `),x&&(s+=`rotateX(${x}deg) `),b&&(s+=`rotateY(${b}deg) `),E&&(s+=`skewX(${E}deg) `),_&&(s+=`skewY(${_}deg) `)}const f=e.x.scale*n.x,h=e.y.scale*n.y;return(f!==1||h!==1)&&(s+=`scale(${f}, ${h})`),s||"none"}const gh=["","X","Y","Z"],y6=1e3;let x6=0;function yh(e,n,a,s){const{latestValues:o}=n;o[e]&&(a[e]=o[e],n.setStaticValue(e,0),s&&(s[e]=0))}function O2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:n}=e.options;if(!n)return;const a=p2(n);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:o,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",ut,!(o||c))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&O2(s)}function R2({attachResizeListener:e,defaultParent:n,measureScroll:a,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(u={},f=n?.()){this.id=x6++,this.animationId=0,this.animationCommitId=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(w6),this.nodes.forEach(T6),this.nodes.forEach(A6),this.nodes.forEach(S6)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,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 h=0;h<this.path.length;h++)this.path[h].shouldResetTransform=!0;this.root===this&&(this.nodes=new s6)}addEventListener(u,f){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new _m),this.eventHandlers.get(u).add(f)}notifyListeners(u,...f){const h=this.eventHandlers.get(u);h&&h.notify(...f)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=Yw(u)&&!hR(u),this.instance=u;const{layoutId:f,layout:h,visualElement:m}=this.options;if(m&&!m.current&&m.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(h||f)&&(this.isLayoutDirty=!0),e){let g,x=0;const b=()=>this.root.updateBlockedByResize=!1;ut.read(()=>{x=window.innerWidth}),e(u,()=>{const E=window.innerWidth;E!==x&&(x=E,this.root.updateBlockedByResize=!0,g&&g(),g=i6(b,250),Ec.hasAnimatedSinceResize&&(Ec.hasAnimatedSinceResize=!1,this.nodes.forEach(lb)))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&m&&(f||h)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:x,hasRelativeLayoutChanged:b,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const _=this.options.transition||m.getDefaultTransition()||R6,{onLayoutAnimationStart:S,onLayoutAnimationComplete:A}=m.getProps(),T=!this.targetLayout||!k2(this.targetLayout,E),C=!x&&b;if(this.options.layoutRoot||this.resumeFrom||C||x&&(T||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const L={...Vm(_,"layout"),onPlay:S,onComplete:A};(m.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L),this.setAnimationOrigin(g,C)}else x||lb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),na(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(N6),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&O2(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const x=this.path[g];x.shouldResetTransform=!0,x.updateScroll("snapshot"),x.options.layoutRoot&&x.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)return;const m=this.getTransformTemplate();this.prevTransformTemplateValue=m?m(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(ib);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ob);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(E6),this.nodes.forEach(v6),this.nodes.forEach(b6)):this.nodes.forEach(ob),this.clearAllSnapshots();const f=tn.now();Ut.delta=Tr(0,1e3/60,f-Ut.timestamp),Ut.timestamp=f,Ut.isProcessing=!0,sh.update.process(Ut),sh.preRender.process(Ut),sh.render.process(Ut),Ut.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Im.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(j6),this.sharedNodes.forEach(_6)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ut.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ut.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Xt(this.snapshot.measuredBox.x)&&!Xt(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 h=0;h<this.path.length;h++)this.path[h].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutCorrected=jt(),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,u?u.layoutBox:void 0)}updateScroll(u="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(f=!1),f&&this.instance){const h=s(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:h,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!_2(this.projectionDelta),h=this.getTransformTemplate(),m=h?h(this.latestValues,""):void 0,g=m!==this.prevTransformTemplateValue;u&&this.instance&&(f||Aa(this.latestValues)||g)&&(o(this.instance,m),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return u&&(h=this.removeTransform(h)),C6(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:u}=this.options;if(!u)return jt();const f=u.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(D6))){const{scroll:m}=this.root;m&&(ks(f.x,m.offset.x),ks(f.y,m.offset.y))}return f}removeElementScroll(u){const f=jt();if(An(f,u),this.scroll?.wasRoot)return f;for(let h=0;h<this.path.length;h++){const m=this.path[h],{scroll:g,options:x}=m;m!==this.root&&g&&x.layoutScroll&&(g.wasRoot&&An(f,u),ks(f.x,g.offset.x),ks(f.y,g.offset.y))}return f}applyTransform(u,f=!1){const h=jt();An(h,u);for(let m=0;m<this.path.length;m++){const g=this.path[m];!f&&g.options.layoutScroll&&g.scroll&&g!==g.root&&Os(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),Aa(g.latestValues)&&Os(h,g.latestValues)}return Aa(this.latestValues)&&Os(h,this.latestValues),h}removeTransform(u){const f=jt();An(f,u);for(let h=0;h<this.path.length;h++){const m=this.path[h];if(!m.instance||!Aa(m.latestValues))continue;Jh(m.latestValues)&&m.updateSnapshot();const g=jt(),x=m.measurePageBox();An(g,x),eb(f,m.latestValues,m.snapshot?m.snapshot.layoutBox:void 0,g)}return Aa(this.latestValues)&&eb(f,this.latestValues),f}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.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!==Ut.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){const f=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=f.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=f.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=f.isSharedProjectionDirty);const h=!!this.resumingFrom||this!==f;if(!(u||h&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:x}=this.options;if(!(!this.layout||!(g||x))){if(this.resolvedRelativeTargetAt=Ut.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=jt(),this.relativeTargetOrigin=jt(),uo(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),An(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=jt(),this.targetWithTransforms=jt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),BC(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):An(this.target,this.layout.layoutBox),c2(this.target,this.targetDelta)):An(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const b=this.getClosestProjectingParent();b&&!!b.resumingFrom==!!this.resumingFrom&&!b.options.layoutScroll&&b.target&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=jt(),this.relativeTargetOrigin=jt(),uo(this.relativeTargetOrigin,this.target,b.target),An(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Jh(this.parent.latestValues)||l2(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){const u=this.getLead(),f=!!this.resumingFrom||this!==u;let h=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===Ut.timestamp&&(h=!1),h)return;const{layout:m,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||!(m||g))return;An(this.layoutCorrected,this.layout.layoutBox);const x=this.treeScale.x,b=this.treeScale.y;$R(this.layoutCorrected,this.treeScale,this.path,f),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=jt());const{target:E}=u;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():($v(this.prevProjectionDelta.x,this.projectionDelta.x),$v(this.prevProjectionDelta.y,this.projectionDelta.y)),co(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==x||this.treeScale.y!==b||!sb(this.projectionDelta.x,this.prevProjectionDelta.x)||!sb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){if(this.options.visualElement?.scheduleRender(),u){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Rs(),this.projectionDelta=Rs(),this.projectionDeltaWithTransform=Rs()}setAnimationOrigin(u,f=!1){const h=this.snapshot,m=h?h.latestValues:{},g={...this.latestValues},x=Rs();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const b=jt(),E=h?h.source:void 0,_=this.layout?this.layout.source:void 0,S=E!==_,A=this.getStack(),T=!A||A.members.length<=1,C=!!(S&&!T&&this.options.crossfade===!0&&!this.path.some(O6));this.animationProgress=0;let L;this.mixTargetDelta=q=>{const N=q/1e3;cb(x.x,u.x,N),cb(x.y,u.y,N),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(uo(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),k6(this.relativeTarget,this.relativeTargetOrigin,b,N),L&&m6(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=jt()),An(L,this.relativeTarget)),S&&(this.animationValues=g,l6(g,m,this.latestValues,N,C,T)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=N},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(na(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ut.update(()=>{Ec.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Fs(0)),this.currentAnimation=r6(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),u.onUpdate&&u.onUpdate(f)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.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 u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(y6),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:f,target:h,layout:m,latestValues:g}=u;if(!(!f||!h||!m)){if(this!==u&&this.layout&&m&&C2(this.options.animationType,this.layout.layoutBox,m.layoutBox)){h=this.target||jt();const x=Xt(this.layout.layoutBox.x);h.x.min=u.target.x.min,h.x.max=h.x.min+x;const b=Xt(this.layout.layoutBox.y);h.y.min=u.target.y.min,h.y.max=h.y.min+b}An(f,h),Os(f,g),co(this.projectionDeltaWithTransform,this.layoutCorrected,f,g)}}registerSharedNode(u,f){this.sharedNodes.has(u)||this.sharedNodes.set(u,new p6),this.sharedNodes.get(u).add(f);const m=f.options.initialPromotionConfig;f.promote({transition:m?m.transition:void 0,preserveFollowOpacity:m&&m.shouldPreserveFollowOpacity?m.shouldPreserveFollowOpacity(f):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){const{layoutId:u}=this.options;return u?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:u}=this.options;return u?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:f,preserveFollowOpacity:h}={}){const m=this.getStack();m&&m.promote(this,h),u&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let f=!1;const{latestValues:h}=u;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(f=!0),!f)return;const m={};h.z&&yh("z",u,m,this.animationValues);for(let g=0;g<gh.length;g++)yh(`rotate${gh[g]}`,u,m,this.animationValues),yh(`skew${gh[g]}`,u,m,this.animationValues);u.render();for(const g in m)u.setStaticValue(g,m[g]),this.animationValues&&(this.animationValues[g]=m[g]);u.scheduleRender()}applyProjectionStyles(u,f){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=jc(f?.pointerEvents)||"",u.transform=h?h(this.latestValues,""):"none";return}const m=this.getLead();if(!this.projectionDelta||!this.layout||!m.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=jc(f?.pointerEvents)||""),this.hasProjected&&!Aa(this.latestValues)&&(u.transform=h?h({},""):"none",this.hasProjected=!1);return}u.visibility="";const g=m.animationValues||m.latestValues;this.applyTransformsToTarget();let x=g6(this.projectionDeltaWithTransform,this.treeScale,g);h&&(x=h(g,x)),u.transform=x;const{x:b,y:E}=this.projectionDelta;u.transformOrigin=`${b.origin*100}% ${E.origin*100}% 0`,m.animationValues?u.opacity=m===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:u.opacity=m===this?g.opacity!==void 0?g.opacity:"":g.opacityExit!==void 0?g.opacityExit:0;for(const _ in So){if(g[_]===void 0)continue;const{correct:S,applyTo:A,isCSSVariable:T}=So[_],C=x==="none"?g[_]:S(g[_],m);if(A){const L=A.length;for(let q=0;q<L;q++)u[A[q]]=C}else T?this.options.visualElement.renderState.vars[_]=C:u[_]=C}this.options.layoutId&&(u.pointerEvents=m===this?jc(f?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>u.currentAnimation?.stop()),this.root.nodes.forEach(ib),this.root.sharedNodes.clear()}}}function v6(e){e.updateLayout()}function b6(e){const n=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:a,measuredBox:s}=e.layout,{animationType:o}=e.options,c=n.source!==e.layout.source;o==="size"?Nn(g=>{const x=c?n.measuredBox[g]:n.layoutBox[g],b=Xt(x);x.min=a[g].min,x.max=x.min+b}):C2(o,n.layoutBox,a)&&Nn(g=>{const x=c?n.measuredBox[g]:n.layoutBox[g],b=Xt(a[g]);x.max=x.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+b)});const u=Rs();co(u,a,n.layoutBox);const f=Rs();c?co(f,e.applyTransform(s,!0),n.measuredBox):co(f,a,n.layoutBox);const h=!_2(u);let m=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:x,layout:b}=g;if(x&&b){const E=jt();uo(E,n.layoutBox,x.layoutBox);const _=jt();uo(_,a,b.layoutBox),k2(E,_)||(m=!0),g.options.layoutRoot&&(e.relativeTarget=_,e.relativeTargetOrigin=E,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:n,delta:f,layoutDelta:u,hasLayoutChanged:h,hasRelativeLayoutChanged:m})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function w6(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 S6(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function j6(e){e.clearSnapshot()}function ib(e){e.clearMeasurements()}function ob(e){e.isLayoutDirty=!1}function E6(e){const{visualElement:n}=e.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),e.resetTransform()}function lb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function T6(e){e.resolveTargetDelta()}function A6(e){e.calcProjection()}function N6(e){e.resetSkewAndRotation()}function _6(e){e.removeLeadSnapshot()}function cb(e,n,a){e.translate=mt(n.translate,0,a),e.scale=mt(n.scale,1,a),e.origin=n.origin,e.originPoint=n.originPoint}function ub(e,n,a,s){e.min=mt(n.min,a.min,s),e.max=mt(n.max,a.max,s)}function k6(e,n,a,s){ub(e.x,n.x,a.x,s),ub(e.y,n.y,a.y,s)}function O6(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const R6={duration:.45,ease:[.4,0,.1,1]},db=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),fb=db("applewebkit/")&&!db("chrome/")?Math.round:On;function hb(e){e.min=fb(e.min),e.max=fb(e.max)}function C6(e){hb(e.x),hb(e.y)}function C2(e,n,a){return e==="position"||e==="preserve-aspect"&&!UC(ab(n),ab(a),.2)}function D6(e){return e!==e.root&&e.scroll?.wasRoot}const M6=R2({attachResizeListener:(e,n)=>jo(e,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),xh={current:void 0},D2=R2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!xh.current){const e=new M6({});e.mount(window),e.setOptions({layoutScroll:!0}),xh.current=e}return xh.current},resetTransform:(e,n)=>{e.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),L6={pan:{Feature:JC},drag:{Feature:QC,ProjectionNode:D2,MeasureLayout:T2}};function mb(e,n,a){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",a==="Start");const o="onHover"+a,c=s[o];c&&ut.postRender(()=>c(n,zo(n)))}class P6 extends sa{mount(){const{current:n}=this.node;n&&(this.unmount=lR(n,(a,s)=>(mb(this.node,s,"Start"),o=>mb(this.node,o,"End"))))}unmount(){}}class z6 extends sa{constructor(){super(...arguments),this.isActive=!1}onFocus(){let n=!1;try{n=this.node.current.matches(":focus-visible")}catch{n=!0}!n||!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=Mo(jo(this.node.current,"focus",()=>this.onFocus()),jo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function pb(e,n,a){const{props:s}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&s.whileTap&&e.animationState.setActive("whileTap",a==="Start");const o="onTap"+(a==="End"?"":a),c=s[o];c&&ut.postRender(()=>c(n,zo(n)))}class U6 extends sa{mount(){const{current:n}=this.node;n&&(this.unmount=fR(n,(a,s)=>(pb(this.node,s,"Start"),(o,{success:c})=>pb(this.node,o,c?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const im=new WeakMap,vh=new WeakMap,B6=e=>{const n=im.get(e.target);n&&n(e)},F6=e=>{e.forEach(B6)};function V6({root:e,...n}){const a=e||document;vh.has(a)||vh.set(a,{});const s=vh.get(a),o=JSON.stringify(n);return s[o]||(s[o]=new IntersectionObserver(F6,{root:e,...n})),s[o]}function H6(e,n,a){const s=V6(n);return im.set(e,a),s.observe(e),()=>{im.delete(e),s.unobserve(e)}}const I6={some:0,all:1};class q6 extends sa{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:n={}}=this.node.getProps(),{root:a,margin:s,amount:o="some",once:c}=n,u={root:a?a.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:I6[o]},f=h=>{const{isIntersecting:m}=h;if(this.isInView===m||(this.isInView=m,c&&!m&&this.hasEnteredView))return;m&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",m);const{onViewportEnter:g,onViewportLeave:x}=this.node.getProps(),b=m?g:x;b&&b(h)};return H6(this.node.current,u,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:a}=this.node;["amount","margin","root"].some(G6(n,a))&&this.startObserver()}unmount(){}}function G6({viewport:e={}},{viewport:n={}}={}){return a=>e[a]!==n[a]}const Y6={inView:{Feature:q6},tap:{Feature:U6},focus:{Feature:z6},hover:{Feature:P6}},X6={layout:{ProjectionNode:D2,MeasureLayout:T2}},W6={...CC,...Y6,...L6,...X6},Z6=WR(W6,oC),K6=({label:e,value:n,max:a})=>{const s=Math.min(n/a*100,100);return d.jsxs("div",{className:"mb-4",children:[d.jsxs("div",{className:"flex justify-between mb-1 text-sm text-yellow-400",children:[d.jsx("span",{children:e}),d.jsxs("span",{children:[n.toLocaleString()," / ",a.toLocaleString()," (",s.toFixed(0),"%)"]})]}),d.jsx("div",{className:"w-full h-4 rounded-full bg-yellow-900 overflow-hidden",children:d.jsx(Z6.div,{initial:{width:0},animate:{width:`${s}%`},transition:{duration:1.2},className:"h-full bg-yellow-400"})})]})};function $6(){const e=Wt(),[n,a]=X.useState("3 Days 4 Hours"),[s,o]=X.useState([]),[c,u]=X.useState(!1),f=Xe(Nr),h=async()=>{if(f?._id){u(!0);try{const x=Be.getToken(),b=await fetch(`${kn}${rt.BBR_PAST_WINS}/${f._id}`,{method:"GET",headers:{Authorization:`Bearer ${x}`,"Content-Type":"application/json"}});if(b.ok){const E=await b.json();E.success&&E.data.pastWins&&o(E.data.pastWins)}else console.error("Failed to fetch past wins:",b.statusText)}catch(x){console.error("Error fetching past wins:",x),it("Failed to load past wins")}finally{u(!1)}}};X.useEffect(()=>{const x=setInterval(()=>{a("3 Days 3 Hours 59 Min")},6e4);return()=>clearInterval(x)},[]),X.useEffect(()=>{h()},[f?._id]);const m=[{name:"Ali Khan",rides:100,reward:"50 AED",status:"Achieved"},{name:"Maria Sohail",rides:90,reward:"50 AED",status:"Locked"},{name:"Zain Malik",rides:85,reward:"50 AED",status:"Locked"},{name:"You",rides:62,reward:"50 AED",status:"Locked",highlight:!0}],g=x=>new Date(x).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"});return d.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen mb-5 flex flex-col items-center p-6 pt-20 pb-12 transition-colors duration-300",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[d.jsx("div",{className:"w-full max-w-5xl mb-4",children:d.jsx("button",{onClick:()=>e(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),d.jsx("div",{className:"w-full md:mt-24 max-w-5xl mb-8 p-6 shadow-lg text-center",style:{backgroundColor:"rgba(1, 50, 32, 0.85)"},children:d.jsx("h2",{className:"text-3xl font-extrabold flex items-center justify-center gap-2",children:"🚀 Bonus Booster Rewards (BBR)"})}),d.jsxs("div",{className:"w-full max-w-5xl mb-8 rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"📢 Current Campaign"}),d.jsxs("ul",{className:"space-y-2 text-yellow-300",children:[d.jsxs("li",{children:[d.jsx("span",{className:"font-semibold",children:"Name:"})," Weekly Turbo Booster"]}),d.jsxs("li",{children:[d.jsx("span",{className:"font-semibold",children:"Requirement:"})," 100 Rides"]}),d.jsxs("li",{children:[d.jsx("span",{className:"font-semibold",children:"Duration:"})," 7 Days"]}),d.jsxs("li",{children:[d.jsx("span",{className:"font-semibold",children:"Period:"})," 14 Aug – 21 Aug"]}),d.jsxs("li",{children:[d.jsx("span",{className:"font-semibold",children:"Type:"})," Solo or Team (Newbie rides count only)"]})]})]}),d.jsxs("div",{className:"w-full max-w-5xl mb-8 rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"📊 Progress Tracker"}),d.jsx(K6,{label:"Total Rides",value:62,max:100}),d.jsxs("div",{className:"text-yellow-300 space-y-2",children:[d.jsx("p",{children:"• You Alone: 45 Rides"}),d.jsx("p",{children:"• Newbie Team: 17 Rides"}),d.jsxs("p",{className:"text-sm",children:["⏳ Time Left: ",n]})]})]}),d.jsxs("div",{className:"w-full max-w-5xl mb-8 rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"🔥 Motivation Zone"}),d.jsxs("div",{className:"text-yellow-300 space-y-2",children:[d.jsxs("p",{children:["• You need ",d.jsx("span",{className:"font-semibold",children:"13 more rides/day"})," ","to win!"]}),d.jsx("p",{children:"• 3 of your newbie team members are active — motivate them!"})]})]}),d.jsxs("div",{className:"w-full max-w-5xl mb-8 rounded-2xl p-6 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"🏅 Reward Preview"}),d.jsx("p",{className:"text-yellow-300 font-semibold",children:"🎁 AED 550 Bonus + Priority Rides (1 Week)"}),d.jsx("p",{className:"text-red-400 font-semibold mt-2",children:"🔒 Locked until 100 rides achieved"})]}),d.jsxs("div",{className:"w-full max-w-5xl mb-8",children:[d.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"📈 Leaderboard"}),d.jsx("div",{className:"rounded-lg shadow-lg max-h-64 overflow-y-auto scrollbar-thin scrollbar-thumb-yellow-400 scrollbar-track-[#013220]",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:d.jsxs("table",{className:"w-full text-left text-yellow-400",children:[d.jsx("thead",{className:"sticky top-0 bg-[rgba(1,50,32,1)]",children:d.jsxs("tr",{className:"border-b border-yellow-600",children:[d.jsx("th",{className:"p-4",children:"Rank"}),d.jsx("th",{className:"p-4",children:"Name"}),d.jsx("th",{className:"p-4",children:"Rides"}),d.jsx("th",{className:"p-4",children:"Reward"}),d.jsx("th",{className:"p-4",children:"Status"})]})}),d.jsx("tbody",{children:m.map((x,b)=>d.jsxs("tr",{className:`border-b border-yellow-700/50 hover:bg-yellow-900/20 ${x.highlight?"bg-yellow-900/50 font-bold":""}`,children:[d.jsx("td",{className:"p-4",children:b+1}),d.jsx("td",{className:"p-4",children:x.name}),d.jsxs("td",{className:"p-4",children:[x.rides," rides"]}),d.jsx("td",{className:"p-4",children:x.reward}),d.jsx("td",{className:"p-4",children:x.status})]},b))})]})})]}),d.jsxs("div",{className:"w-full max-w-5xl mb-8",children:[d.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center gap-2 text-yellow-400",children:"📜 Past Booster Wins"}),d.jsx("div",{className:"rounded-lg shadow-lg max-h-64 overflow-y-auto scrollbar-thin scrollbar-thumb-yellow-400 scrollbar-track-[#013220]",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:d.jsxs("table",{className:"w-full text-left text-yellow-400",children:[d.jsx("thead",{className:"sticky top-0 bg-[rgba(1,50,32,1)]",children:d.jsxs("tr",{className:"border-b border-yellow-600",children:[d.jsx("th",{className:"p-4",children:"Campaign"}),d.jsx("th",{className:"p-4",children:"Reward"}),d.jsx("th",{className:"p-4",children:"Date"}),d.jsx("th",{className:"p-4",children:"Status"})]})}),d.jsx("tbody",{children:c?d.jsx("tr",{children:d.jsx("td",{colSpan:"4",className:"p-4 text-center text-yellow-300",children:"Loading past wins..."})}):s.length>0?s.map((x,b)=>d.jsxs("tr",{className:"border-b border-yellow-700/50 hover:bg-yellow-900/20",children:[d.jsx("td",{className:"p-4",children:x.name}),d.jsxs("td",{className:"p-4",children:["AED ",x.reward]}),d.jsx("td",{className:"p-4",children:g(x.date)}),d.jsx("td",{className:"p-4 text-green-400",children:x.status})]},b)):d.jsx("tr",{children:d.jsx("td",{colSpan:"4",className:"p-4 text-center text-yellow-300",children:"No past wins found"})})})]})})]}),d.jsxs("div",{className:"rounded-xl p-6 mb-4 text-center max-w-3xl shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsx("h3",{className:"text-xl font-bold mb-4 flex items-center justify-center gap-2 text-yellow-400",children:"💡 Tips"}),d.jsxs("ul",{className:"list-disc list-inside text-yellow-300 space-y-2",children:[d.jsx("li",{children:"✔ Focus on peak hours to get more rides"}),d.jsx("li",{children:"✔ Encourage newbie team to stay active"})]})]}),d.jsx("style",{children:`
.scrollbar-thin::-webkit-scrollbar {
width: 8px;
}
.scrollbar-thin::-webkit-scrollbar-thumb {
background-color: #ffd700;
border-radius: 4px;
}
.scrollbar-thin::-webkit-scrollbar-track {
background-color: #013220;
}
`})]})}const gb=({label:e,value:n,max:a})=>{const s=Math.min(n/a*100,100);return d.jsxs("div",{className:"mb-4",children:[d.jsxs("div",{className:"flex justify-between mb-1 text-sm",children:[d.jsx("span",{children:e}),d.jsxs("span",{children:[n.toLocaleString()," / ",a.toLocaleString()," (",s.toFixed(0),"%)"]})]}),d.jsx("div",{className:"w-full h-4 rounded-full bg-yellow-900 overflow-hidden",children:d.jsx("div",{className:"h-full bg-yellow-400 transition-all duration-1000 ease-out",style:{width:`${s}%`}})})]})};function Q6(){const e=Wt(),[n,a]=X.useState(!1),[s,o]=X.useState(null),[c,u]=X.useState([]),[f,h]=X.useState(!1),[m,g]=X.useState(!1),x=Xe(Nr),b=async()=>{if(x?._id){h(!0);try{const A=Be.getToken(),T=await fetch(`${kn}${rt.HLR_PROGRESS}/${x._id}`,{method:"GET",headers:{Authorization:`Bearer ${A}`,"Content-Type":"application/json"}});if(T.ok){const C=await T.json();C.success&&o(C.data)}else console.error("Failed to fetch HLR progress:",T.statusText)}catch(A){console.error("Error fetching HLR progress:",A),it("Failed to load HLR progress")}finally{h(!1)}}},E=async()=>{g(!0);try{const A=Be.getToken(),T=await fetch(`${kn}${rt.HLR_LEADERBOARD}?page=1&limit=20`,{method:"GET",headers:{Authorization:`Bearer ${A}`,"Content-Type":"application/json"}});if(T.ok){const C=await T.json();C.success&&C.data.leaderboard&&u(C.data.leaderboard)}else console.error("Failed to fetch HLR leaderboard:",T.statusText)}catch(A){console.error("Error fetching HLR leaderboard:",A),it("Failed to load HLR leaderboard")}finally{g(!1)}};X.useEffect(()=>{b(),E()},[x?._id]);const _=s?{value:s.progress.currentPGP,max:s.requirements.requiredPGP}:{value:0,max:2e5},S=s?{value:s.progress.currentTGP,max:s.requirements.requiredTGP}:{value:0,max:6e6};return d.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen flex flex-col items-center p-6 mt-20 transition-colors duration-300 mb-10",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[d.jsx("div",{className:"w-full max-w-5xl mb-4",children:d.jsx("button",{onClick:()=>e(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),d.jsx("h1",{className:"text-2xl font-bold my-6 text-center",children:"🏆 HonorPay Loyalty Rewards (HLR)"}),d.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg text-left",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsx("h2",{className:"text-xl font-bold mb-3",children:"🎯 Reward Conditions"}),d.jsxs("ul",{className:"list-disc ml-6 text-sm leading-6",children:[d.jsxs("li",{children:["One-time reward given at retirement (Age ",s?.requirements?.retirementAge||55,")."]}),d.jsx("li",{children:"Or instantly if qualified and passed away."}),d.jsxs("li",{children:["Required PGP: ",d.jsx("b",{children:s?.requirements?.requiredPGP?.toLocaleString()||"200,000"})]}),d.jsxs("li",{children:["Required TGP: ",d.jsx("b",{children:s?.requirements?.requiredTGP?.toLocaleString()||"6,000,000"})]}),d.jsxs("li",{children:["Reward Amount: ",d.jsxs("b",{children:["AED ",s?.requirements?.rewardAmount?.toLocaleString()||"60,000"]})]})]})]}),d.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsx("h2",{className:"text-xl font-bold mb-4",children:"📊 Your Progress"}),f?d.jsx("div",{className:"text-center text-yellow-300 py-4",children:"Loading progress data..."}):d.jsxs(d.Fragment,{children:[d.jsx(gb,{label:"PGP Progress",value:_.value,max:_.max}),d.jsx(gb,{label:"TGP Progress",value:S.value,max:S.max}),d.jsxs("p",{className:"mt-2 italic text-sm text-gray-200",children:["▓▓▓▓▓▓▓▓░░░░"," ",s?.progress?.overallProgress?(s.progress.overallProgress*100).toFixed(0):((_.value/_.max+S.value/S.max)/2*100).toFixed(0),"% Complete"]}),s?.qualification&&d.jsx("div",{className:"mt-4 p-3 rounded-lg bg-yellow-900/30",children:d.jsxs("p",{className:"text-sm",children:[d.jsx("span",{className:s.qualification.isQualified?"text-green-400":"text-red-400",children:s.qualification.isQualified?"✅ Qualified":"❌ Not Qualified"}),s.qualification.isRetirementEligible&&d.jsx("span",{className:"ml-4 text-green-400",children:"🎂 Retirement Eligible"})]})})]})]}),d.jsxs("div",{className:"w-full max-w-5xl mb-10",children:[d.jsx("h2",{className:"text-xl font-bold mb-4",children:"🏅 Leaderboard – Qualified Members"}),d.jsx("div",{className:"rounded-lg shadow-lg max-h-72 overflow-y-auto",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:m?d.jsx("div",{className:"text-center text-yellow-300 py-4",children:"Loading leaderboard..."}):c.length>0?(n?c:c.slice(0,5)).map(A=>d.jsxs("div",{className:"flex justify-between px-4 py-2 border-b border-yellow-900",children:[d.jsxs("span",{children:[A.rank,"."]}),d.jsxs("span",{children:[A.name," – ",A.flag," ",A.country]}),d.jsx("span",{className:A.isQualified?"text-green-400":"text-yellow-400",children:A.rewardClaimed?`AED ${A.totalPoints?.toLocaleString()||0}`:A.status})]},A.rank)):d.jsx("div",{className:"text-center text-yellow-300 py-4",children:"No leaderboard data available"})}),d.jsxs("p",{className:"mt-2 text-sm italic",children:["Total Qualified: ",d.jsxs("b",{children:[c.filter(A=>A.isQualified).length," Members"]})]}),c.length>5&&d.jsx("button",{className:"mt-3 text-sm underline",onClick:()=>a(!n),children:n?"Show Less":"View All"})]}),d.jsx("div",{className:"rounded-xl p-4 text-center max-w-3xl shadow-lg mb-5",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:d.jsx("p",{className:"italic",children:"💡 Tip: Boost your TGP by mentoring active leaders in your team."})})]})}const J6=({label:e,value:n,max:a})=>{const s=Math.min(n/a*100,100);return d.jsxs("div",{className:"mb-4",children:[d.jsxs("div",{className:"flex justify-between mb-1 text-sm",children:[d.jsx("span",{children:e}),d.jsxs("span",{children:[s.toFixed(0),"% Achieved"]})]}),d.jsx("div",{className:"w-full h-4 rounded-full bg-yellow-900 overflow-hidden",children:d.jsx("div",{className:"h-full bg-yellow-400 transition-all duration-1000 ease-out",style:{width:`${s}%`}})})]})};function eD(){const e=Wt(),n=Xe(Nr),[a,s]=X.useState(null),[o,c]=X.useState([]),[u,f]=X.useState([]),[h,m]=X.useState(!0),[g,x]=X.useState(!0),[b,E]=X.useState(!0),_=async()=>{try{const C=Be.getToken();if(!C||!n?._id)return;const L=await fetch(`${kn}${rt.REGIONAL_PROGRESS}/${n._id}`,{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json"}});if(L.ok){const q=await L.json();q.success&&s(q.data)}}catch(C){console.error("Error fetching progress data:",C),it("Failed to load progress data")}finally{m(!1)}},S=async()=>{try{const C=Be.getToken();if(!C)return;const L=await fetch(`${kn}${rt.REGIONAL_LEADERBOARD}?page=1&limit=20`,{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json"}});if(L.ok){const q=await L.json();q.success&&c(q.data.leaderboard||[])}}catch(C){console.error("Error fetching leaderboard data:",C),it("Failed to load leaderboard data")}finally{x(!1)}},A=async()=>{try{const C=Be.getToken();if(!C)return;const L=await fetch(`${kn}${rt.REGIONAL_GLOBAL_AMBASSADORS}?page=1&limit=20`,{headers:{Authorization:`Bearer ${C}`,"Content-Type":"application/json"}});if(L.ok){const q=await L.json();q.success&&f(q.data.ambassadors||[])}}catch(C){console.error("Error fetching global ambassadors:",C),it("Failed to load global ambassadors")}finally{E(!1)}};X.useEffect(()=>{n?._id&&(_(),S(),A())},[n?._id]);const T=async()=>{const C=prompt("Enter your new country:");if(!(!C||!n?._id))try{const L=Be.getToken();if(!L)return;(await fetch(`${kn}${rt.REGIONAL_COUNTRY_UPDATE}`,{method:"POST",headers:{Authorization:`Bearer ${L}`,"Content-Type":"application/json"},body:JSON.stringify({userId:n._id,newCountry:C})})).ok?alert("Country update request sent to admin for verification."):it("Failed to send country update request")}catch(L){console.error("Error updating country:",L),it("Failed to send country update request")}};return d.jsxs("div",{className:"w-[95%] mx-auto rounded-lg md:w-[100%] md:min-h-screen flex flex-col items-center p-6 mt-20 mb-10 transition-colors duration-300",style:{backgroundColor:"#083A06",color:"#FFD700"},children:[d.jsx("div",{className:"w-full max-w-5xl mb-4",children:d.jsx("button",{onClick:()=>e(-1),className:"flex items-center gap-2 px-4 py-2 rounded-lg font-medium transition-all duration-200 hover:scale-105",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700",color:"#FFD700"},children:"← Back"})}),d.jsx("h1",{className:"text-2xl font-bold my-6",children:"🏆 Regional Ambassador Program"}),d.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsx("h2",{className:"text-xl font-bold mb-4",children:"Total Earnings"}),h?d.jsxs("div",{className:"text-center py-4",children:[d.jsx("div",{className:"inline-block animate-spin rounded-full h-6 w-6 border-b-2 border-yellow-400"}),d.jsx("p",{className:"mt-2",children:"Loading earnings..."})]}):d.jsxs(d.Fragment,{children:[d.jsxs("p",{className:"text-lg",children:["Regional Shares: ",d.jsxs("span",{className:"font-bold",children:["$",a?.totalEarnings?.regionalShares||"0.00"]})]}),d.jsxs("div",{className:"flex items-center mt-4",children:[d.jsx("img",{src:"https://placehold.co/40x40",alt:"Title Holder",className:"w-10 h-10 rounded-full mr-3"}),d.jsxs("div",{className:"flex items-center",children:[d.jsx("span",{className:"text-2xl mr-2",children:a?.titleHolder?.flag||"🌍"}),d.jsxs("div",{children:[d.jsxs("p",{className:"font-bold",children:["Title Holder: ",a?.titleHolder?.name||"N/A"]}),d.jsx("p",{className:"text-sm text-gray-300",children:"Global"})]})]}),d.jsx("button",{className:"ml-4 text-sm bg-yellow-700 text-yellow-300 px-2 py-1 rounded-full",onClick:()=>alert("Total Earnings Info: Regional shares based on performance metrics."),children:"ℹ Info"})]})]})]}),d.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsx("h2",{className:"text-xl font-bold mb-4",children:"👤 Your Progress"}),h?d.jsxs("div",{className:"text-center py-4",children:[d.jsx("div",{className:"inline-block animate-spin rounded-full h-6 w-6 border-b-2 border-yellow-400"}),d.jsx("p",{className:"mt-2",children:"Loading progress..."})]}):d.jsxs(d.Fragment,{children:[d.jsxs("div",{className:"flex items-center mb-2",children:[d.jsxs("p",{className:"text-lg flex items-center",children:["Your Current Rank: ",a?.yourProgress?.currentRank?.name||"N/A"," (Level ",a?.yourProgress?.currentRank?.level||"N/A",")"," ",d.jsx("span",{className:"text-2xl ml-2",children:"🌍"})]}),d.jsx("button",{className:"ml-4 text-sm bg-yellow-700 text-yellow-300 px-2 py-1 rounded-full",onClick:T,children:"🔄 Update Country"})]}),d.jsxs("p",{className:"text-lg mb-2",children:["Victory Rank: ",a?.yourProgress?.victoryRank||"N/A"]}),d.jsx(J6,{label:`Progress (${a?.yourProgress?.progress?.achieved||"0% Achieved"})`,value:a?.yourProgress?.progress?.percentage||0,max:100}),a?.yourProgress?.nextRank&&d.jsxs("p",{className:"text-sm text-gray-300 mt-2",children:["Next Rank: ",a.yourProgress.nextRank.name," (Requirement: ",a.yourProgress.nextRank.requirement,")"]})]})]}),d.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsx("h2",{className:"text-xl font-bold mb-4",children:"🏁 Regional Race Leaderboard"}),g?d.jsxs("div",{className:"text-center py-4",children:[d.jsx("div",{className:"inline-block animate-spin rounded-full h-6 w-6 border-b-2 border-yellow-400"}),d.jsx("p",{className:"mt-2",children:"Loading leaderboard..."})]}):d.jsx(d.Fragment,{children:d.jsx("div",{className:"overflow-x-auto",children:d.jsxs("table",{className:"w-full text-left",children:[d.jsx("thead",{children:d.jsxs("tr",{className:"border-b border-yellow-700",children:[d.jsx("th",{className:"py-2 px-4",children:"#"}),d.jsx("th",{className:"py-2 px-4",children:"Name"}),d.jsx("th",{className:"py-2 px-4",children:"Username"}),d.jsx("th",{className:"py-2 px-4",children:"Rank"}),d.jsx("th",{className:"py-2 px-4",children:"Points"})]})}),d.jsx("tbody",{children:o.length>0?o.map((C,L)=>d.jsxs("tr",{className:"border-b border-yellow-700 last:border-none",children:[d.jsx("td",{className:"py-2 px-4",children:C.rank}),d.jsxs("td",{className:"py-2 px-4 flex items-center",children:[d.jsx("img",{src:"https://placehold.co/40x40",alt:C.name,className:"w-8 h-8 rounded-full mr-2"}),C.name," ",d.jsx("span",{className:"text-xl ml-2",children:C.flag})]}),d.jsx("td",{className:"py-2 px-4",children:C.username}),d.jsxs("td",{className:"py-2 px-4 flex items-center",children:[d.jsx("span",{className:"mr-1",children:C.rankIcon}),C.crrRank]}),d.jsx("td",{className:"py-2 px-4",children:C.totalPoints})]},L)):d.jsx("tr",{children:d.jsx("td",{colSpan:"5",className:"py-4 text-center text-gray-400",children:"No leaderboard data available"})})})]})})})]}),d.jsxs("div",{className:"rounded-2xl p-6 w-full max-w-5xl mb-8 shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:[d.jsx("h2",{className:"text-xl font-bold mb-4",children:"🌍 Global Ambassadors"}),b?d.jsxs("div",{className:"text-center py-4",children:[d.jsx("div",{className:"inline-block animate-spin rounded-full h-6 w-6 border-b-2 border-yellow-400"}),d.jsx("p",{className:"mt-2",children:"Loading ambassadors..."})]}):d.jsx("div",{className:"overflow-x-auto",children:d.jsx("div",{className:"flex space-x-4 pb-4",children:u.length>0?u.map((C,L)=>d.jsxs("div",{className:"flex-none w-64 p-4 rounded-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.9)"},children:[d.jsx("img",{src:C.profilePicture||"https://placehold.co/40x40",alt:C.name,className:"w-10 h-10 rounded-full mb-2"}),d.jsx("p",{className:"font-bold",children:C.name}),d.jsxs("p",{className:"text-sm text-gray-400",children:["@",C.username]}),d.jsxs("div",{className:"flex items-center mt-1",children:[d.jsx("span",{className:"text-lg mr-2",children:C.flag}),d.jsx("p",{className:"text-sm text-gray-300",children:C.country||"Global"})]}),d.jsxs("div",{className:"flex items-center mt-1",children:[d.jsx("span",{className:"mr-1",children:C.rankIcon}),d.jsx("p",{className:"text-sm",children:C.rank})]}),d.jsxs("p",{className:"text-xs text-gray-400 mt-1",children:["Earnings: $",C.totalEarnings||0]}),C.isPermanent&&d.jsx("span",{className:"inline-block bg-yellow-600 text-yellow-200 text-xs px-2 py-1 rounded mt-2",children:"Permanent"})]},L)):d.jsx("div",{className:"w-full text-center py-8 text-gray-400",children:"No global ambassadors available"})})})]}),d.jsx("div",{className:"rounded-xl p-4 text-center max-w-3xl shadow-lg",style:{backgroundColor:"rgba(1, 50, 32, 0.85)",border:"1px solid #FFD700"},children:d.jsx("p",{className:"italic",children:"💡 Tip: Ambassadors play a key role in expanding our network. Keep pushing to climb the ranks!"})})]})}const yb=["/login","/signup","/forgot-password","/reset-password"];function tD(){const e=In(),n=Mn(),a=Xe(c1),s=Xe(mm),o=Xe(B4),c=yb.includes(n.pathname);return X.useEffect(()=>{console.log("App - Initializing session sync"),e(Ex()),console.log("App - Session info:",Be.getSessionInfo())},[e]),X.useEffect(()=>{a&&!s?(console.log("App - Token exists but not authenticated, checking current user"),e(Cs())):console.log(a&&s?"App - User is already authenticated":"App - No token found, user not authenticated")},[e,a,s]),X.useEffect(()=>{const u=f=>{console.log("App - Session cleared event received:",f.detail),e(Ex()),s&&!yb.includes(n.pathname)&&(console.log("App - Redirecting to login due to session clear"),window.location.href="/login")};return window.addEventListener("sessionCleared",u),()=>window.removeEventListener("sessionCleared",u)},[e,s,n.pathname]),X.useEffect(()=>{console.log("App - Route changed to:",n.pathname),console.log("App - Should hide navbar/footer:",c),console.log("App - signupEmail in Redux:",o),console.log("App - signupEmail in localStorage:",localStorage.getItem("signup_email"))},[n.pathname,c,o]),d.jsxs("div",{className:"App bg-white dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300",children:[!c&&d.jsx(UN,{}),d.jsxs(XA,{children:[d.jsx(St,{path:"/",element:d.jsx(pk,{})})," ",d.jsx(St,{path:"/about",element:d.jsx(wk,{})}),d.jsx(St,{path:"/services",element:d.jsx(Ik,{})}),d.jsx(St,{path:"/team",element:d.jsx(Zk,{})}),d.jsx(St,{path:"/contact",element:d.jsx($k,{})}),d.jsx(St,{path:"/faqs",element:d.jsx(i5,{})}),d.jsx(St,{path:"/login",element:d.jsx(o5,{})}),d.jsx(St,{path:"/signup",element:d.jsx(c5,{})}),d.jsx(St,{path:"/forgot-password",element:o||localStorage.getItem("signup_email")?d.jsx(Fn,{to:"/reset-password",replace:!0}):d.jsx(u5,{})}),d.jsx(St,{path:"/reset-password",element:d.jsx(d5,{})}),d.jsx(St,{path:"/mlm",element:s?d.jsx(h5,{}):d.jsx(Fn,{to:"/login",replace:!0})}),d.jsx(St,{path:"/ddr",element:s?d.jsx(p5,{}):d.jsx(Fn,{to:"/login",replace:!0})}),d.jsx(St,{path:"/crr",element:s?d.jsx(g5,{}):d.jsx(Fn,{to:"/login",replace:!0})}),d.jsx(St,{path:"/bbr",element:s?d.jsx($6,{}):d.jsx(Fn,{to:"/login",replace:!0})}),d.jsx(St,{path:"/hlr",element:s?d.jsx(Q6,{}):d.jsx(Fn,{to:"/login",replace:!0})}),d.jsx(St,{path:"/RegionalAmbassador",element:s?d.jsx(eD,{}):d.jsx(Fn,{to:"/login",replace:!0})}),d.jsx(St,{path:"/tree",element:s?d.jsx(rv,{}):d.jsx(Fn,{to:"/login",replace:!0})}),d.jsx(St,{path:"/user-tree/:userId",element:s?d.jsx(rv,{}):d.jsx(Fn,{to:"/login",replace:!0})}),d.jsx(St,{path:"/profile",element:s?d.jsx(m5,{}):d.jsx(Fn,{to:"/login",replace:!0})}),d.jsx(St,{path:"*",element:d.jsx(Fn,{to:"/",replace:!0})})]}),!c&&d.jsx(QN,{})]})}function nD(){return d.jsx(yN,{children:d.jsx(NN,{children:d.jsx(tD,{})})})}const rD=()=>{const e=eo.get("auth_token"),n=localStorage.getItem("auth_token"),a=Be.getToken();if(console.log("=== TOKEN DEBUG INFO ==="),console.log("Cookie token:",e?"exists":"none"),console.log("LocalStorage token:",n?"exists":"none"),console.log("SessionManager token:",a?"exists":"none"),a){const s=ru(a),o=o1(s);console.log("Token length:",a.length),console.log("Token starts with:",a.substring(0,20)+"..."),console.log("Cleaned token:",s),console.log("Token is valid:",o);try{const c=s.split(".");if(console.log("JWT parts:",c.length),c.length===3){const u=JSON.parse(atob(c[0].replace(/-/g,"+").replace(/_/g,"/"))),f=JSON.parse(atob(c[1].replace(/-/g,"+").replace(/_/g,"/")));console.log("JWT Header:",u),console.log("JWT Payload:",f),console.log("Token expires at:",new Date(f.exp*1e3)),console.log("Token issued at:",new Date(f.iat*1e3)),console.log("Token is expired:",Date.now()>f.exp*1e3)}}catch(c){console.log("Error decoding JWT:",c.message)}}console.log("========================")},aD=()=>{const e=Be.getToken();console.log("=== LOGOUT REQUEST TEST ==="),console.log("Token to send:",e),console.log("Authorization header:",`Bearer ${e}`),console.log("===========================")},sD=async()=>{const e=Be.getToken();console.log("=== CURRENT USER ENDPOINT TEST ===");try{const n=await fetch("https://api.aaogobackend.xyz/api/drivers/get-current-user",{method:"GET",headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"}});console.log("Response status:",n.status),console.log("Response headers:",Object.fromEntries(n.headers.entries()));const a=await n.json();return console.log("Response data:",a),{status:n.status,data:a}}catch(n){return console.error("Fetch error:",n),{error:n.message}}},iD=async()=>{const e=Be.getToken();console.log("=== REFERRAL TREE ENDPOINT TEST ===");try{const n=ru(e),a=await fetch("https://api.aaogobackend.xyz/api/user/referral-tree",{method:"GET",headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"}});console.log("Response status:",a.status),console.log("Response headers:",Object.fromEntries(a.headers.entries()));const s=await a.json();return console.log("Response data:",s),{status:a.status,data:s}}catch(n){return console.error("Fetch error:",n),{error:n.message}}},oD=()=>{console.log("=== MANUAL LOGOUT ==="),Be.clearSession(),console.log("Session cleared"),window.location.reload()};typeof window<"u"&&(window.debugTokenStatus=rD,window.testLogoutRequest=aD,window.testCurrentUserEndpoint=sD,window.testReferralTreeEndpoint=iD,window.manualLogout=oD);t3.createRoot(document.getElementById("root")).render(d.jsx(X.StrictMode,{children:d.jsxs(x3,{store:nA,children:[d.jsx(nD,{}),d.jsx(fE,{position:"top-right",toastOptions:{duration:4e3,style:{background:"#363636",color:"#fff"},success:{duration:3e3,iconTheme:{primary:"#4ade80",secondary:"#fff"}},error:{duration:4e3,iconTheme:{primary:"#ef4444",secondary:"#fff"}}}})]})}));