/home/awneajlw/.trash/assets.6/index-BQH-S3eM.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 u of o)if(u.type==="childList")for(const c of u.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function a(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function s(o){if(o.ep)return;o.ep=!0;const u=a(o);fetch(o.href,u)}})();var Nn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Iu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function V3(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 Tf={exports:{}},qs={};/**
 * @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 Fy;function H3(){if(Fy)return qs;Fy=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(s,o,u){var c=null;if(u!==void 0&&(c=""+u),o.key!==void 0&&(c=""+o.key),"key"in o){u={};for(var f in o)f!=="key"&&(u[f]=o[f])}else u=o;return o=u.ref,{$$typeof:e,type:s,key:c,ref:o!==void 0?o:null,props:u}}return qs.Fragment=n,qs.jsx=a,qs.jsxs=a,qs}var Vy;function I3(){return Vy||(Vy=1,Tf.exports=H3()),Tf.exports}var d=I3(),Ef={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 Hy;function q3(){if(Hy)return Ve;Hy=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"),u=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),v=Symbol.iterator;function b(x){return x===null||typeof x!="object"?null:(x=v&&x[v]||x["@@iterator"],typeof x=="function"?x:null)}var j={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function N(x,O,F){this.props=x,this.context=O,this.refs=S,this.updater=F||j}N.prototype.isReactComponent={},N.prototype.setState=function(x,O){if(typeof x!="object"&&typeof x!="function"&&x!=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,x,O,"setState")},N.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function A(){}A.prototype=N.prototype;function M(x,O,F){this.props=x,this.context=O,this.refs=S,this.updater=F||j}var L=M.prototype=new A;L.constructor=M,_(L,N.prototype),L.isPureReactComponent=!0;var G=Array.isArray,T={H:null,A:null,T:null,S:null,V:null},P=Object.prototype.hasOwnProperty;function z(x,O,F,J,Q,te){return F=te.ref,{$$typeof:e,type:x,key:O,ref:F!==void 0?F:null,props:te}}function B(x,O){return z(x.type,O,void 0,void 0,void 0,x.props)}function D(x){return typeof x=="object"&&x!==null&&x.$$typeof===e}function R(x){var O={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(F){return O[F]})}var X=/\/+/g;function U(x,O){return typeof x=="object"&&x!==null&&x.key!=null?R(""+x.key):O.toString(36)}function I(){}function E(x){switch(x.status){case"fulfilled":return x.value;case"rejected":throw x.reason;default:switch(typeof x.status=="string"?x.then(I,I):(x.status="pending",x.then(function(O){x.status==="pending"&&(x.status="fulfilled",x.value=O)},function(O){x.status==="pending"&&(x.status="rejected",x.reason=O)})),x.status){case"fulfilled":return x.value;case"rejected":throw x.reason}}throw x}function $(x,O,F,J,Q){var te=typeof x;(te==="undefined"||te==="boolean")&&(x=null);var se=!1;if(x===null)se=!0;else switch(te){case"bigint":case"string":case"number":se=!0;break;case"object":switch(x.$$typeof){case e:case n:se=!0;break;case g:return se=x._init,$(se(x._payload),O,F,J,Q)}}if(se)return Q=Q(x),se=J===""?"."+U(x,0):J,G(Q)?(F="",se!=null&&(F=se.replace(X,"$&/")+"/"),$(Q,O,F,"",function(Te){return Te})):Q!=null&&(D(Q)&&(Q=B(Q,F+(Q.key==null||x&&x.key===Q.key?"":(""+Q.key).replace(X,"$&/")+"/")+se)),O.push(Q)),1;se=0;var be=J===""?".":J+":";if(G(x))for(var Se=0;Se<x.length;Se++)J=x[Se],te=be+U(J,Se),se+=$(J,O,F,te,Q);else if(Se=b(x),typeof Se=="function")for(x=Se.call(x),Se=0;!(J=x.next()).done;)J=J.value,te=be+U(J,Se++),se+=$(J,O,F,te,Q);else if(te==="object"){if(typeof x.then=="function")return $(E(x),O,F,J,Q);throw O=String(x),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return se}function W(x,O,F){if(x==null)return x;var J=[],Q=0;return $(x,J,"","",function(te){return O.call(F,te,Q++)}),J}function w(x){if(x._status===-1){var O=x._result;O=O(),O.then(function(F){(x._status===0||x._status===-1)&&(x._status=1,x._result=F)},function(F){(x._status===0||x._status===-1)&&(x._status=2,x._result=F)}),x._status===-1&&(x._status=0,x._result=O)}if(x._status===1)return x._result.default;throw x._result}var ce=typeof reportError=="function"?reportError:function(x){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof x=="object"&&x!==null&&typeof x.message=="string"?String(x.message):String(x),error:x});if(!window.dispatchEvent(O))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",x);return}console.error(x)};function H(){}return Ve.Children={map:W,forEach:function(x,O,F){W(x,function(){O.apply(this,arguments)},F)},count:function(x){var O=0;return W(x,function(){O++}),O},toArray:function(x){return W(x,function(O){return O})||[]},only:function(x){if(!D(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},Ve.Component=N,Ve.Fragment=a,Ve.Profiler=o,Ve.PureComponent=M,Ve.StrictMode=s,Ve.Suspense=h,Ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,Ve.__COMPILER_RUNTIME={__proto__:null,c:function(x){return T.H.useMemoCache(x)}},Ve.cache=function(x){return function(){return x.apply(null,arguments)}},Ve.cloneElement=function(x,O,F){if(x==null)throw Error("The argument must be a React element, but you passed "+x+".");var J=_({},x.props),Q=x.key,te=void 0;if(O!=null)for(se in O.ref!==void 0&&(te=void 0),O.key!==void 0&&(Q=""+O.key),O)!P.call(O,se)||se==="key"||se==="__self"||se==="__source"||se==="ref"&&O.ref===void 0||(J[se]=O[se]);var se=arguments.length-2;if(se===1)J.children=F;else if(1<se){for(var be=Array(se),Se=0;Se<se;Se++)be[Se]=arguments[Se+2];J.children=be}return z(x.type,Q,void 0,void 0,te,J)},Ve.createContext=function(x){return x={$$typeof:c,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null},x.Provider=x,x.Consumer={$$typeof:u,_context:x},x},Ve.createElement=function(x,O,F){var J,Q={},te=null;if(O!=null)for(J in O.key!==void 0&&(te=""+O.key),O)P.call(O,J)&&J!=="key"&&J!=="__self"&&J!=="__source"&&(Q[J]=O[J]);var se=arguments.length-2;if(se===1)Q.children=F;else if(1<se){for(var be=Array(se),Se=0;Se<se;Se++)be[Se]=arguments[Se+2];Q.children=be}if(x&&x.defaultProps)for(J in se=x.defaultProps,se)Q[J]===void 0&&(Q[J]=se[J]);return z(x,te,void 0,void 0,null,Q)},Ve.createRef=function(){return{current:null}},Ve.forwardRef=function(x){return{$$typeof:f,render:x}},Ve.isValidElement=D,Ve.lazy=function(x){return{$$typeof:g,_payload:{_status:-1,_result:x},_init:w}},Ve.memo=function(x,O){return{$$typeof:p,type:x,compare:O===void 0?null:O}},Ve.startTransition=function(x){var O=T.T,F={};T.T=F;try{var J=x(),Q=T.S;Q!==null&&Q(F,J),typeof J=="object"&&J!==null&&typeof J.then=="function"&&J.then(H,ce)}catch(te){ce(te)}finally{T.T=O}},Ve.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},Ve.use=function(x){return T.H.use(x)},Ve.useActionState=function(x,O,F){return T.H.useActionState(x,O,F)},Ve.useCallback=function(x,O){return T.H.useCallback(x,O)},Ve.useContext=function(x){return T.H.useContext(x)},Ve.useDebugValue=function(){},Ve.useDeferredValue=function(x,O){return T.H.useDeferredValue(x,O)},Ve.useEffect=function(x,O,F){var J=T.H;if(typeof F=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return J.useEffect(x,O)},Ve.useId=function(){return T.H.useId()},Ve.useImperativeHandle=function(x,O,F){return T.H.useImperativeHandle(x,O,F)},Ve.useInsertionEffect=function(x,O){return T.H.useInsertionEffect(x,O)},Ve.useLayoutEffect=function(x,O){return T.H.useLayoutEffect(x,O)},Ve.useMemo=function(x,O){return T.H.useMemo(x,O)},Ve.useOptimistic=function(x,O){return T.H.useOptimistic(x,O)},Ve.useReducer=function(x,O,F){return T.H.useReducer(x,O,F)},Ve.useRef=function(x){return T.H.useRef(x)},Ve.useState=function(x){return T.H.useState(x)},Ve.useSyncExternalStore=function(x,O,F){return T.H.useSyncExternalStore(x,O,F)},Ve.useTransition=function(){return T.H.useTransition()},Ve.version="19.1.0",Ve}var Iy;function On(){return Iy||(Iy=1,Ef.exports=q3()),Ef.exports}var K=On();const _a=Iu(K);var Af={exports:{}},Gs={},Nf={exports:{}},_f={};/**
 * @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 qy;function G3(){return qy||(qy=1,function(e){function n(W,w){var ce=W.length;W.push(w);e:for(;0<ce;){var H=ce-1>>>1,x=W[H];if(0<o(x,w))W[H]=w,W[ce]=x,ce=H;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],ce=W.pop();if(ce!==w){W[0]=ce;e:for(var H=0,x=W.length,O=x>>>1;H<O;){var F=2*(H+1)-1,J=W[F],Q=F+1,te=W[Q];if(0>o(J,ce))Q<x&&0>o(te,J)?(W[H]=te,W[Q]=ce,H=Q):(W[H]=J,W[F]=ce,H=F);else if(Q<x&&0>o(te,ce))W[H]=te,W[Q]=ce,H=Q;else break e}}return w}function o(W,w){var ce=W.sortIndex-w.sortIndex;return ce!==0?ce:W.id-w.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var h=[],p=[],g=1,v=null,b=3,j=!1,_=!1,S=!1,N=!1,A=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;function G(W){for(var w=a(p);w!==null;){if(w.callback===null)s(p);else if(w.startTime<=W)s(p),w.sortIndex=w.expirationTime,n(h,w);else break;w=a(p)}}function T(W){if(S=!1,G(W),!_)if(a(h)!==null)_=!0,P||(P=!0,U());else{var w=a(p);w!==null&&$(T,w.startTime-W)}}var P=!1,z=-1,B=5,D=-1;function R(){return N?!0:!(e.unstable_now()-D<B)}function X(){if(N=!1,P){var W=e.unstable_now();D=W;var w=!0;try{e:{_=!1,S&&(S=!1,M(z),z=-1),j=!0;var ce=b;try{t:{for(G(W),v=a(h);v!==null&&!(v.expirationTime>W&&R());){var H=v.callback;if(typeof H=="function"){v.callback=null,b=v.priorityLevel;var x=H(v.expirationTime<=W);if(W=e.unstable_now(),typeof x=="function"){v.callback=x,G(W),w=!0;break t}v===a(h)&&s(h),G(W)}else s(h);v=a(h)}if(v!==null)w=!0;else{var O=a(p);O!==null&&$(T,O.startTime-W),w=!1}}break e}finally{v=null,b=ce,j=!1}w=void 0}}finally{w?U():P=!1}}}var U;if(typeof L=="function")U=function(){L(X)};else if(typeof MessageChannel<"u"){var I=new MessageChannel,E=I.port2;I.port1.onmessage=X,U=function(){E.postMessage(null)}}else U=function(){A(X,0)};function $(W,w){z=A(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"):B=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 ce=b;b=w;try{return W()}finally{b=ce}},e.unstable_requestPaint=function(){N=!0},e.unstable_runWithPriority=function(W,w){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var ce=b;b=W;try{return w()}finally{b=ce}},e.unstable_scheduleCallback=function(W,w,ce){var H=e.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?H+ce:H):ce=H,W){case 1:var x=-1;break;case 2:x=250;break;case 5:x=1073741823;break;case 4:x=1e4;break;default:x=5e3}return x=ce+x,W={id:g++,callback:w,priorityLevel:W,startTime:ce,expirationTime:x,sortIndex:-1},ce>H?(W.sortIndex=ce,n(p,W),a(h)===null&&W===a(p)&&(S?(M(z),z=-1):S=!0,$(T,ce-H))):(W.sortIndex=x,n(h,W),_||j||(_=!0,P||(P=!0,U()))),W},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(W){var w=b;return function(){var ce=b;b=w;try{return W.apply(this,arguments)}finally{b=ce}}}}(_f)),_f}var Gy;function Y3(){return Gy||(Gy=1,Nf.exports=G3()),Nf.exports}var kf={exports:{}},Ut={};/**
 * @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 Yy;function K3(){if(Yy)return Ut;Yy=1;var e=On();function n(h){var p="https://react.dev/errors/"+h;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var g=2;g<arguments.length;g++)p+="&args[]="+encodeURIComponent(arguments[g])}return"Minified React error #"+h+"; visit "+p+" 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 u(h,p,g){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:h,containerInfo:p,implementation:g}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(h,p){if(h==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return Ut.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Ut.createPortal=function(h,p){var g=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(n(299));return u(h,p,null,g)},Ut.flushSync=function(h){var p=c.T,g=s.p;try{if(c.T=null,s.p=2,h)return h()}finally{c.T=p,s.p=g,s.d.f()}},Ut.preconnect=function(h,p){typeof h=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(h,p))},Ut.prefetchDNS=function(h){typeof h=="string"&&s.d.D(h)},Ut.preinit=function(h,p){if(typeof h=="string"&&p&&typeof p.as=="string"){var g=p.as,v=f(g,p.crossOrigin),b=typeof p.integrity=="string"?p.integrity:void 0,j=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;g==="style"?s.d.S(h,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:j}):g==="script"&&s.d.X(h,{crossOrigin:v,integrity:b,fetchPriority:j,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},Ut.preinitModule=function(h,p){if(typeof h=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var g=f(p.as,p.crossOrigin);s.d.M(h,{crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(h)},Ut.preload=function(h,p){if(typeof h=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var g=p.as,v=f(g,p.crossOrigin);s.d.L(h,g,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},Ut.preloadModule=function(h,p){if(typeof h=="string")if(p){var g=f(p.as,p.crossOrigin);s.d.m(h,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:g,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(h)},Ut.requestFormReset=function(h){s.d.r(h)},Ut.unstable_batchedUpdates=function(h,p){return h(p)},Ut.useFormState=function(h,p,g){return c.H.useFormState(h,p,g)},Ut.useFormStatus=function(){return c.H.useHostTransitionStatus()},Ut.version="19.1.0",Ut}var Ky;function W3(){if(Ky)return kf.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(),kf.exports=K3(),kf.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 Wy;function X3(){if(Wy)return Gs;Wy=1;var e=Y3(),n=On(),a=W3();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 u(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 c(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(u(t)!==t)throw Error(s(188))}function h(t){var r=t.alternate;if(!r){if(r=u(t),r===null)throw Error(s(188));return r!==t?null:t}for(var i=t,l=r;;){var m=i.return;if(m===null)break;var y=m.alternate;if(y===null){if(l=m.return,l!==null){i=l;continue}break}if(m.child===y.child){for(y=m.child;y;){if(y===i)return f(m),t;if(y===l)return f(m),r;y=y.sibling}throw Error(s(188))}if(i.return!==l.return)i=m,l=y;else{for(var C=!1,V=m.child;V;){if(V===i){C=!0,i=m,l=y;break}if(V===l){C=!0,l=m,i=y;break}V=V.sibling}if(!C){for(V=y.child;V;){if(V===i){C=!0,i=y,l=m;break}if(V===l){C=!0,l=y,i=m;break}V=V.sibling}if(!C)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 p(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t;for(t=t.child;t!==null;){if(r=p(t),r!==null)return r;t=t.sibling}return null}var g=Object.assign,v=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),j=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),A=Symbol.for("react.provider"),M=Symbol.for("react.consumer"),L=Symbol.for("react.context"),G=Symbol.for("react.forward_ref"),T=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),B=Symbol.for("react.lazy"),D=Symbol.for("react.activity"),R=Symbol.for("react.memo_cache_sentinel"),X=Symbol.iterator;function U(t){return t===null||typeof t!="object"?null:(t=X&&t[X]||t["@@iterator"],typeof t=="function"?t:null)}var I=Symbol.for("react.client.reference");function E(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===I?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case _:return"Fragment";case N:return"Profiler";case S:return"StrictMode";case T:return"Suspense";case P:return"SuspenseList";case D:return"Activity"}if(typeof t=="object")switch(t.$$typeof){case j:return"Portal";case L:return(t.displayName||"Context")+".Provider";case M:return(t._context.displayName||"Context")+".Consumer";case G:var r=t.render;return t=t.displayName,t||(t=r.displayName||r.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case z:return r=t.displayName||null,r!==null?r:E(t.type)||"Memo";case B:r=t._payload,t=t._init;try{return E(t(r))}catch{}}return null}var $=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,ce={pending:!1,data:null,method:null,action:null},H=[],x=-1;function O(t){return{current:t}}function F(t){0>x||(t.current=H[x],H[x]=null,x--)}function J(t,r){x++,H[x]=t.current,t.current=r}var Q=O(null),te=O(null),se=O(null),be=O(null);function Se(t,r){switch(J(se,r),J(te,t),J(Q,null),r.nodeType){case 9:case 11:t=(t=r.documentElement)&&(t=t.namespaceURI)?my(t):0;break;default:if(t=r.tagName,r=r.namespaceURI)r=my(r),t=py(r,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}F(Q),J(Q,t)}function Te(){F(Q),F(te),F(se)}function Ne(t){t.memoizedState!==null&&J(be,t);var r=Q.current,i=py(r,t.type);r!==i&&(J(te,t),J(Q,i))}function Oe(t){te.current===t&&(F(Q),F(te)),be.current===t&&(F(be),Bs._currentValue=ce)}var Le=Object.prototype.hasOwnProperty,Re=e.unstable_scheduleCallback,k=e.unstable_cancelCallback,de=e.unstable_shouldYield,ue=e.unstable_requestPaint,q=e.unstable_now,Y=e.unstable_getCurrentPriorityLevel,ee=e.unstable_ImmediatePriority,pe=e.unstable_UserBlockingPriority,ye=e.unstable_NormalPriority,oe=e.unstable_LowPriority,je=e.unstable_IdlePriority,Ee=e.log,re=e.unstable_setDisableYieldValue,ve=null,_e=null;function Ce(t){if(typeof Ee=="function"&&re(t),_e&&typeof _e.setStrictMode=="function")try{_e.setStrictMode(ve,t)}catch{}}var qe=Math.clz32?Math.clz32:pn,rn=Math.log,ut=Math.LN2;function pn(t){return t>>>=0,t===0?32:31-(rn(t)/ut|0)|0}var nt=256,Qn=4194304;function Cn(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 Gt(t,r,i){var l=t.pendingLanes;if(l===0)return 0;var m=0,y=t.suspendedLanes,C=t.pingedLanes;t=t.warmLanes;var V=l&134217727;return V!==0?(l=V&~y,l!==0?m=Cn(l):(C&=V,C!==0?m=Cn(C):i||(i=V&~t,i!==0&&(m=Cn(i))))):(V=l&~y,V!==0?m=Cn(V):C!==0?m=Cn(C):i||(i=l&~t,i!==0&&(m=Cn(i)))),m===0?0:r!==0&&r!==m&&(r&y)===0&&(y=m&-m,i=r&-r,y>=i||y===32&&(i&4194048)!==0)?r:m}function Tr(t,r){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&r)===0}function fc(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 zo(){var t=nt;return nt<<=1,(nt&4194048)===0&&(nt=256),t}function Uo(){var t=Qn;return Qn<<=1,(Qn&62914560)===0&&(Qn=4194304),t}function za(t){for(var r=[],i=0;31>i;i++)r.push(t);return r}function Dn(t,r){t.pendingLanes|=r,r!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function Ua(t,r,i,l,m,y){var C=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 V=t.entanglements,Z=t.expirationTimes,le=t.hiddenUpdates;for(i=C&~i;0<i;){var ge=31-qe(i),we=1<<ge;V[ge]=0,Z[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&&Jm(t,l,0),y!==0&&m===0&&t.tag!==0&&(t.suspendedLanes|=y&~(C&~r))}function Jm(t,r,i){t.pendingLanes|=r,t.suspendedLanes&=~r;var l=31-qe(r);t.entangledLanes|=r,t.entanglements[l]=t.entanglements[l]|1073741824|i&4194090}function ep(t,r){var i=t.entangledLanes|=r;for(t=t.entanglements;i;){var l=31-qe(i),m=1<<l;m&r|t[l]&r&&(t[l]|=r),i&=~m}}function hc(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 mc(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function tp(){var t=w.p;return t!==0?t:(t=window.event,t===void 0?32:My(t.type))}function O2(t,r){var i=w.p;try{return w.p=t,r()}finally{w.p=i}}var Er=Math.random().toString(36).slice(2),Pt="__reactFiber$"+Er,Yt="__reactProps$"+Er,Ba="__reactContainer$"+Er,pc="__reactEvents$"+Er,R2="__reactListeners$"+Er,C2="__reactHandles$"+Er,np="__reactResources$"+Er,Zi="__reactMarker$"+Er;function gc(t){delete t[Pt],delete t[Yt],delete t[pc],delete t[R2],delete t[C2]}function Fa(t){var r=t[Pt];if(r)return r;for(var i=t.parentNode;i;){if(r=i[Ba]||i[Pt]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(t=xy(t);t!==null;){if(i=t[Pt])return i;t=xy(t)}return r}t=i,i=t.parentNode}return null}function Va(t){if(t=t[Pt]||t[Ba]){var r=t.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return t}return null}function $i(t){var r=t.tag;if(r===5||r===26||r===27||r===6)return t.stateNode;throw Error(s(33))}function Ha(t){var r=t[np];return r||(r=t[np]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function At(t){t[Zi]=!0}var rp=new Set,ap={};function ra(t,r){Ia(t,r),Ia(t+"Capture",r)}function Ia(t,r){for(ap[t]=r,t=0;t<r.length;t++)rp.add(r[t])}var D2=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={},sp={};function M2(t){return Le.call(sp,t)?!0:Le.call(ip,t)?!1:D2.test(t)?sp[t]=!0:(ip[t]=!0,!1)}function Bo(t,r,i){if(M2(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 Fo(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 Jn(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 yc,op;function qa(t){if(yc===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);yc=r&&r[1]||"",op=-1<i.stack.indexOf(`
    at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return`
`+yc+t+op}var vc=!1;function xc(t,r){if(!t||vc)return"";vc=!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 m=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");m&&m.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=l.DetermineComponentFrameRoot(),C=y[0],V=y[1];if(C&&V){var Z=C.split(`
`),le=V.split(`
`);for(m=l=0;l<Z.length&&!Z[l].includes("DetermineComponentFrameRoot");)l++;for(;m<le.length&&!le[m].includes("DetermineComponentFrameRoot");)m++;if(l===Z.length||m===le.length)for(l=Z.length-1,m=le.length-1;1<=l&&0<=m&&Z[l]!==le[m];)m--;for(;1<=l&&0<=m;l--,m--)if(Z[l]!==le[m]){if(l!==1||m!==1)do if(l--,m--,0>m||Z[l]!==le[m]){var ge=`
`+Z[l].replace(" at new "," at ");return t.displayName&&ge.includes("<anonymous>")&&(ge=ge.replace("<anonymous>",t.displayName)),ge}while(1<=l&&0<=m);break}}}finally{vc=!1,Error.prepareStackTrace=i}return(i=t?t.displayName||t.name:"")?qa(i):""}function L2(t){switch(t.tag){case 26:case 27:case 5:return qa(t.type);case 16:return qa("Lazy");case 13:return qa("Suspense");case 19:return qa("SuspenseList");case 0:case 15:return xc(t.type,!1);case 11:return xc(t.type.render,!1);case 1:return xc(t.type,!0);case 31:return qa("Activity");default:return""}}function lp(t){try{var r="";do r+=L2(t),t=t.return;while(t);return r}catch(i){return`
Error generating stack: `+i.message+`
`+i.stack}}function gn(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 P2(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 m=i.get,y=i.set;return Object.defineProperty(t,r,{configurable:!0,get:function(){return m.call(this)},set:function(C){l=""+C,y.call(this,C)}}),Object.defineProperty(t,r,{enumerable:i.enumerable}),{getValue:function(){return l},setValue:function(C){l=""+C},stopTracking:function(){t._valueTracker=null,delete t[r]}}}}function Vo(t){t._valueTracker||(t._valueTracker=P2(t))}function cp(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 Ho(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 z2=/[\n"\\]/g;function yn(t){return t.replace(z2,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function bc(t,r,i,l,m,y,C,V){t.name="",C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"?t.type=C:t.removeAttribute("type"),r!=null?C==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+gn(r)):t.value!==""+gn(r)&&(t.value=""+gn(r)):C!=="submit"&&C!=="reset"||t.removeAttribute("value"),r!=null?wc(t,C,gn(r)):i!=null?wc(t,C,gn(i)):l!=null&&t.removeAttribute("value"),m==null&&y!=null&&(t.defaultChecked=!!y),m!=null&&(t.checked=m&&typeof m!="function"&&typeof m!="symbol"),V!=null&&typeof V!="function"&&typeof V!="symbol"&&typeof V!="boolean"?t.name=""+gn(V):t.removeAttribute("name")}function dp(t,r,i,l,m,y,C,V){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?""+gn(i):"",r=r!=null?""+gn(r):i,V||r===t.value||(t.value=r),t.defaultValue=r}l=l??m,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=V?t.checked:!!l,t.defaultChecked=!!l,C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(t.name=C)}function wc(t,r,i){r==="number"&&Ho(t.ownerDocument)===t||t.defaultValue===""+i||(t.defaultValue=""+i)}function Ga(t,r,i,l){if(t=t.options,r){r={};for(var m=0;m<i.length;m++)r["$"+i[m]]=!0;for(i=0;i<t.length;i++)m=r.hasOwnProperty("$"+t[i].value),t[i].selected!==m&&(t[i].selected=m),m&&l&&(t[i].defaultSelected=!0)}else{for(i=""+gn(i),r=null,m=0;m<t.length;m++){if(t[m].value===i){t[m].selected=!0,l&&(t[m].defaultSelected=!0);return}r!==null||t[m].disabled||(r=t[m])}r!==null&&(r.selected=!0)}}function fp(t,r,i){if(r!=null&&(r=""+gn(r),r!==t.value&&(t.value=r),i==null)){t.defaultValue!==r&&(t.defaultValue=r);return}t.defaultValue=i!=null?""+gn(i):""}function hp(t,r,i,l){if(r==null){if(l!=null){if(i!=null)throw Error(s(92));if($(l)){if(1<l.length)throw Error(s(93));l=l[0]}i=l}i==null&&(i=""),r=i}i=gn(r),t.defaultValue=i,l=t.textContent,l===i&&l!==""&&l!==null&&(t.value=l)}function Ya(t,r){if(r){var i=t.firstChild;if(i&&i===t.lastChild&&i.nodeType===3){i.nodeValue=r;return}}t.textContent=r}var U2=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 mp(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||U2.has(r)?r==="float"?t.cssFloat=i:t[r]=(""+i).trim():t[r]=i+"px"}function pp(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 m in r)l=r[m],r.hasOwnProperty(m)&&i[m]!==l&&mp(t,m,l)}else for(var y in r)r.hasOwnProperty(y)&&mp(t,y,r[y])}function Sc(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 B2=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"]]),F2=/^[\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 Io(t){return F2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var jc=null;function Tc(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Ka=null,Wa=null;function gp(t){var r=Va(t);if(r&&(t=r.stateNode)){var i=t[Yt]||null;e:switch(t=r.stateNode,r.type){case"input":if(bc(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="'+yn(""+r)+'"][type="radio"]'),r=0;r<i.length;r++){var l=i[r];if(l!==t&&l.form===t.form){var m=l[Yt]||null;if(!m)throw Error(s(90));bc(l,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name)}}for(r=0;r<i.length;r++)l=i[r],l.form===t.form&&cp(l)}break e;case"textarea":fp(t,i.value,i.defaultValue);break e;case"select":r=i.value,r!=null&&Ga(t,!!i.multiple,r,!1)}}}var Ec=!1;function yp(t,r,i){if(Ec)return t(r,i);Ec=!0;try{var l=t(r);return l}finally{if(Ec=!1,(Ka!==null||Wa!==null)&&(_l(),Ka&&(r=Ka,t=Wa,Wa=Ka=null,gp(r),t)))for(r=0;r<t.length;r++)gp(t[r])}}function Qi(t,r){var i=t.stateNode;if(i===null)return null;var l=i[Yt]||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 er=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ac=!1;if(er)try{var Ji={};Object.defineProperty(Ji,"passive",{get:function(){Ac=!0}}),window.addEventListener("test",Ji,Ji),window.removeEventListener("test",Ji,Ji)}catch{Ac=!1}var Ar=null,Nc=null,qo=null;function vp(){if(qo)return qo;var t,r=Nc,i=r.length,l,m="value"in Ar?Ar.value:Ar.textContent,y=m.length;for(t=0;t<i&&r[t]===m[t];t++);var C=i-t;for(l=1;l<=C&&r[i-l]===m[y-l];l++);return qo=m.slice(t,1<l?1-l:void 0)}function Go(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 Yo(){return!0}function xp(){return!1}function Kt(t){function r(i,l,m,y,C){this._reactName=i,this._targetInst=m,this.type=l,this.nativeEvent=y,this.target=C,this.currentTarget=null;for(var V in t)t.hasOwnProperty(V)&&(i=t[V],this[V]=i?i(y):y[V]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?Yo:xp,this.isPropagationStopped=xp,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=Yo)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=Yo)},persist:function(){},isPersistent:Yo}),r}var aa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ko=Kt(aa),es=g({},aa,{view:0,detail:0}),V2=Kt(es),_c,kc,ts,Wo=g({},es,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Rc,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!==ts&&(ts&&t.type==="mousemove"?(_c=t.screenX-ts.screenX,kc=t.screenY-ts.screenY):kc=_c=0,ts=t),_c)},movementY:function(t){return"movementY"in t?t.movementY:kc}}),bp=Kt(Wo),H2=g({},Wo,{dataTransfer:0}),I2=Kt(H2),q2=g({},es,{relatedTarget:0}),Oc=Kt(q2),G2=g({},aa,{animationName:0,elapsedTime:0,pseudoElement:0}),Y2=Kt(G2),K2=g({},aa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),W2=Kt(K2),X2=g({},aa,{data:0}),wp=Kt(X2),Z2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$2={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"},Q2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function J2(t){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(t):(t=Q2[t])?!!r[t]:!1}function Rc(){return J2}var eS=g({},es,{key:function(t){if(t.key){var r=Z2[t.key]||t.key;if(r!=="Unidentified")return r}return t.type==="keypress"?(t=Go(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?$2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Rc,charCode:function(t){return t.type==="keypress"?Go(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Go(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),tS=Kt(eS),nS=g({},Wo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Sp=Kt(nS),rS=g({},es,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Rc}),aS=Kt(rS),iS=g({},aa,{propertyName:0,elapsedTime:0,pseudoElement:0}),sS=Kt(iS),oS=g({},Wo,{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}),lS=Kt(oS),uS=g({},aa,{newState:0,oldState:0}),cS=Kt(uS),dS=[9,13,27,32],Cc=er&&"CompositionEvent"in window,ns=null;er&&"documentMode"in document&&(ns=document.documentMode);var fS=er&&"TextEvent"in window&&!ns,jp=er&&(!Cc||ns&&8<ns&&11>=ns),Tp=" ",Ep=!1;function Ap(t,r){switch(t){case"keyup":return dS.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Np(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Xa=!1;function hS(t,r){switch(t){case"compositionend":return Np(r);case"keypress":return r.which!==32?null:(Ep=!0,Tp);case"textInput":return t=r.data,t===Tp&&Ep?null:t;default:return null}}function mS(t,r){if(Xa)return t==="compositionend"||!Cc&&Ap(t,r)?(t=vp(),qo=Nc=Ar=null,Xa=!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 jp&&r.locale!=="ko"?null:r.data;default:return null}}var pS={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 _p(t){var r=t&&t.nodeName&&t.nodeName.toLowerCase();return r==="input"?!!pS[t.type]:r==="textarea"}function kp(t,r,i,l){Ka?Wa?Wa.push(l):Wa=[l]:Ka=l,r=Ml(r,"onChange"),0<r.length&&(i=new Ko("onChange","change",null,i,l),t.push({event:i,listeners:r}))}var rs=null,as=null;function gS(t){uy(t,0)}function Xo(t){var r=$i(t);if(cp(r))return t}function Op(t,r){if(t==="change")return r}var Rp=!1;if(er){var Dc;if(er){var Mc="oninput"in document;if(!Mc){var Cp=document.createElement("div");Cp.setAttribute("oninput","return;"),Mc=typeof Cp.oninput=="function"}Dc=Mc}else Dc=!1;Rp=Dc&&(!document.documentMode||9<document.documentMode)}function Dp(){rs&&(rs.detachEvent("onpropertychange",Mp),as=rs=null)}function Mp(t){if(t.propertyName==="value"&&Xo(as)){var r=[];kp(r,as,t,Tc(t)),yp(gS,r)}}function yS(t,r,i){t==="focusin"?(Dp(),rs=r,as=i,rs.attachEvent("onpropertychange",Mp)):t==="focusout"&&Dp()}function vS(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Xo(as)}function xS(t,r){if(t==="click")return Xo(r)}function bS(t,r){if(t==="input"||t==="change")return Xo(r)}function wS(t,r){return t===r&&(t!==0||1/t===1/r)||t!==t&&r!==r}var an=typeof Object.is=="function"?Object.is:wS;function is(t,r){if(an(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 m=i[l];if(!Le.call(r,m)||!an(t[m],r[m]))return!1}return!0}function Lp(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Pp(t,r){var i=Lp(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=Lp(i)}}function zp(t,r){return t&&r?t===r?!0:t&&t.nodeType===3?!1:r&&r.nodeType===3?zp(t,r.parentNode):"contains"in t?t.contains(r):t.compareDocumentPosition?!!(t.compareDocumentPosition(r)&16):!1:!1}function Up(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var r=Ho(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=Ho(t.document)}return r}function Lc(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 SS=er&&"documentMode"in document&&11>=document.documentMode,Za=null,Pc=null,ss=null,zc=!1;function Bp(t,r,i){var l=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;zc||Za==null||Za!==Ho(l)||(l=Za,"selectionStart"in l&&Lc(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}),ss&&is(ss,l)||(ss=l,l=Ml(Pc,"onSelect"),0<l.length&&(r=new Ko("onSelect","select",null,r,i),t.push({event:r,listeners:l}),r.target=Za)))}function ia(t,r){var i={};return i[t.toLowerCase()]=r.toLowerCase(),i["Webkit"+t]="webkit"+r,i["Moz"+t]="moz"+r,i}var $a={animationend:ia("Animation","AnimationEnd"),animationiteration:ia("Animation","AnimationIteration"),animationstart:ia("Animation","AnimationStart"),transitionrun:ia("Transition","TransitionRun"),transitionstart:ia("Transition","TransitionStart"),transitioncancel:ia("Transition","TransitionCancel"),transitionend:ia("Transition","TransitionEnd")},Uc={},Fp={};er&&(Fp=document.createElement("div").style,"AnimationEvent"in window||(delete $a.animationend.animation,delete $a.animationiteration.animation,delete $a.animationstart.animation),"TransitionEvent"in window||delete $a.transitionend.transition);function sa(t){if(Uc[t])return Uc[t];if(!$a[t])return t;var r=$a[t],i;for(i in r)if(r.hasOwnProperty(i)&&i in Fp)return Uc[t]=r[i];return t}var Vp=sa("animationend"),Hp=sa("animationiteration"),Ip=sa("animationstart"),jS=sa("transitionrun"),TS=sa("transitionstart"),ES=sa("transitioncancel"),qp=sa("transitionend"),Gp=new Map,Bc="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(" ");Bc.push("scrollEnd");function Mn(t,r){Gp.set(t,r),ra(r,[t])}var Yp=new WeakMap;function vn(t,r){if(typeof t=="object"&&t!==null){var i=Yp.get(t);return i!==void 0?i:(r={value:t,source:r,stack:lp(r)},Yp.set(t,r),r)}return{value:t,source:r,stack:lp(r)}}var xn=[],Qa=0,Fc=0;function Zo(){for(var t=Qa,r=Fc=Qa=0;r<t;){var i=xn[r];xn[r++]=null;var l=xn[r];xn[r++]=null;var m=xn[r];xn[r++]=null;var y=xn[r];if(xn[r++]=null,l!==null&&m!==null){var C=l.pending;C===null?m.next=m:(m.next=C.next,C.next=m),l.pending=m}y!==0&&Kp(i,m,y)}}function $o(t,r,i,l){xn[Qa++]=t,xn[Qa++]=r,xn[Qa++]=i,xn[Qa++]=l,Fc|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Vc(t,r,i,l){return $o(t,r,i,l),Qo(t)}function Ja(t,r){return $o(t,null,null,r),Qo(t)}function Kp(t,r,i){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i);for(var m=!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||(m=!0)),t=y,y=y.return;return t.tag===3?(y=t.stateNode,m&&r!==null&&(m=31-qe(i),t=y.hiddenUpdates,l=t[m],l===null?t[m]=[r]:l.push(r),r.lane=i|536870912),y):null}function Qo(t){if(50<Rs)throw Rs=0,Kd=null,Error(s(185));for(var r=t.return;r!==null;)t=r,r=t.return;return t.tag===3?t.stateNode:null}var ei={};function AS(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 sn(t,r,i,l){return new AS(t,r,i,l)}function Hc(t){return t=t.prototype,!(!t||!t.isReactComponent)}function tr(t,r){var i=t.alternate;return i===null?(i=sn(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 Wp(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 Jo(t,r,i,l,m,y){var C=0;if(l=t,typeof t=="function")Hc(t)&&(C=1);else if(typeof t=="string")C=_3(t,i,Q.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case D:return t=sn(31,i,r,m),t.elementType=D,t.lanes=y,t;case _:return oa(i.children,m,y,r);case S:C=8,m|=24;break;case N:return t=sn(12,i,r,m|2),t.elementType=N,t.lanes=y,t;case T:return t=sn(13,i,r,m),t.elementType=T,t.lanes=y,t;case P:return t=sn(19,i,r,m),t.elementType=P,t.lanes=y,t;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case A:case L:C=10;break e;case M:C=9;break e;case G:C=11;break e;case z:C=14;break e;case B:C=16,l=null;break e}C=29,i=Error(s(130,t===null?"null":typeof t,"")),l=null}return r=sn(C,i,r,m),r.elementType=t,r.type=l,r.lanes=y,r}function oa(t,r,i,l){return t=sn(7,t,l,r),t.lanes=i,t}function Ic(t,r,i){return t=sn(6,t,null,r),t.lanes=i,t}function qc(t,r,i){return r=sn(4,t.children!==null?t.children:[],t.key,r),r.lanes=i,r.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},r}var ti=[],ni=0,el=null,tl=0,bn=[],wn=0,la=null,nr=1,rr="";function ua(t,r){ti[ni++]=tl,ti[ni++]=el,el=t,tl=r}function Xp(t,r,i){bn[wn++]=nr,bn[wn++]=rr,bn[wn++]=la,la=t;var l=nr;t=rr;var m=32-qe(l)-1;l&=~(1<<m),i+=1;var y=32-qe(r)+m;if(30<y){var C=m-m%5;y=(l&(1<<C)-1).toString(32),l>>=C,m-=C,nr=1<<32-qe(r)+m|i<<m|l,rr=y+t}else nr=1<<y|i<<m|l,rr=t}function Gc(t){t.return!==null&&(ua(t,1),Xp(t,1,0))}function Yc(t){for(;t===el;)el=ti[--ni],ti[ni]=null,tl=ti[--ni],ti[ni]=null;for(;t===la;)la=bn[--wn],bn[wn]=null,rr=bn[--wn],bn[wn]=null,nr=bn[--wn],bn[wn]=null}var Ht=null,ft=null,Xe=!1,ca=null,Hn=!1,Kc=Error(s(519));function da(t){var r=Error(s(418,""));throw us(vn(r,t)),Kc}function Zp(t){var r=t.stateNode,i=t.type,l=t.memoizedProps;switch(r[Pt]=t,r[Yt]=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<Ds.length;i++)Ye(Ds[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),dp(r,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Vo(r);break;case"select":Ye("invalid",r);break;case"textarea":Ye("invalid",r),hp(r,l.value,l.defaultValue,l.children),Vo(r)}i=l.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||r.textContent===""+i||l.suppressHydrationWarning===!0||hy(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=Ll),r=!0):r=!1,r||da(t)}function $p(t){for(Ht=t.return;Ht;)switch(Ht.tag){case 5:case 13:Hn=!1;return;case 27:case 3:Hn=!0;return;default:Ht=Ht.return}}function os(t){if(t!==Ht)return!1;if(!Xe)return $p(t),Xe=!0,!1;var r=t.tag,i;if((i=r!==3&&r!==27)&&((i=r===5)&&(i=t.type,i=!(i!=="form"&&i!=="button")||cf(t.type,t.memoizedProps)),i=!i),i&&ft&&da(t),$p(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){ft=Pn(t.nextSibling);break e}r--}else i!=="$"&&i!=="$!"&&i!=="$?"||r++;t=t.nextSibling}ft=null}}else r===27?(r=ft,Hr(t.type)?(t=mf,mf=null,ft=t):ft=r):ft=Ht?Pn(t.stateNode.nextSibling):null;return!0}function ls(){ft=Ht=null,Xe=!1}function Qp(){var t=ca;return t!==null&&(Zt===null?Zt=t:Zt.push.apply(Zt,t),ca=null),t}function us(t){ca===null?ca=[t]:ca.push(t)}var Wc=O(null),fa=null,ar=null;function Nr(t,r,i){J(Wc,r._currentValue),r._currentValue=i}function ir(t){t._currentValue=Wc.current,F(Wc)}function Xc(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 Zc(t,r,i,l){var m=t.child;for(m!==null&&(m.return=t);m!==null;){var y=m.dependencies;if(y!==null){var C=m.child;y=y.firstContext;e:for(;y!==null;){var V=y;y=m;for(var Z=0;Z<r.length;Z++)if(V.context===r[Z]){y.lanes|=i,V=y.alternate,V!==null&&(V.lanes|=i),Xc(y.return,i,t),l||(C=null);break e}y=V.next}}else if(m.tag===18){if(C=m.return,C===null)throw Error(s(341));C.lanes|=i,y=C.alternate,y!==null&&(y.lanes|=i),Xc(C,i,t),C=null}else C=m.child;if(C!==null)C.return=m;else for(C=m;C!==null;){if(C===t){C=null;break}if(m=C.sibling,m!==null){m.return=C.return,C=m;break}C=C.return}m=C}}function cs(t,r,i,l){t=null;for(var m=r,y=!1;m!==null;){if(!y){if((m.flags&524288)!==0)y=!0;else if((m.flags&262144)!==0)break}if(m.tag===10){var C=m.alternate;if(C===null)throw Error(s(387));if(C=C.memoizedProps,C!==null){var V=m.type;an(m.pendingProps.value,C.value)||(t!==null?t.push(V):t=[V])}}else if(m===be.current){if(C=m.alternate,C===null)throw Error(s(387));C.memoizedState.memoizedState!==m.memoizedState.memoizedState&&(t!==null?t.push(Bs):t=[Bs])}m=m.return}t!==null&&Zc(r,t,i,l),r.flags|=262144}function nl(t){for(t=t.firstContext;t!==null;){if(!an(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function ha(t){fa=t,ar=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function zt(t){return Jp(fa,t)}function rl(t,r){return fa===null&&ha(t),Jp(t,r)}function Jp(t,r){var i=r._currentValue;if(r={context:r,memoizedValue:i,next:null},ar===null){if(t===null)throw Error(s(308));ar=r,t.dependencies={lanes:0,firstContext:r},t.flags|=524288}else ar=ar.next=r;return i}var NS=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()})}},_S=e.unstable_scheduleCallback,kS=e.unstable_NormalPriority,Tt={$$typeof:L,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function $c(){return{controller:new NS,data:new Map,refCount:0}}function ds(t){t.refCount--,t.refCount===0&&_S(kS,function(){t.controller.abort()})}var fs=null,Qc=0,ri=0,ai=null;function OS(t,r){if(fs===null){var i=fs=[];Qc=0,ri=ef(),ai={status:"pending",value:void 0,then:function(l){i.push(l)}}}return Qc++,r.then(eg,eg),r}function eg(){if(--Qc===0&&fs!==null){ai!==null&&(ai.status="fulfilled");var t=fs;fs=null,ri=0,ai=null;for(var r=0;r<t.length;r++)(0,t[r])()}}function RS(t,r){var i=[],l={status:"pending",value:null,reason:null,then:function(m){i.push(m)}};return t.then(function(){l.status="fulfilled",l.value=r;for(var m=0;m<i.length;m++)(0,i[m])(r)},function(m){for(l.status="rejected",l.reason=m,m=0;m<i.length;m++)(0,i[m])(void 0)}),l}var tg=W.S;W.S=function(t,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&OS(t,r),tg!==null&&tg(t,r)};var ma=O(null);function Jc(){var t=ma.current;return t!==null?t:rt.pooledCache}function al(t,r){r===null?J(ma,ma.current):J(ma,r.pool)}function ng(){var t=Jc();return t===null?null:{parent:Tt._currentValue,pool:t}}var hs=Error(s(460)),rg=Error(s(474)),il=Error(s(542)),ed={then:function(){}};function ag(t){return t=t.status,t==="fulfilled"||t==="rejected"}function sl(){}function ig(t,r,i){switch(i=t[i],i===void 0?t.push(r):i!==r&&(r.then(sl,sl),r=i),r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,og(t),t;default:if(typeof r.status=="string")r.then(sl,sl);else{if(t=rt,t!==null&&100<t.shellSuspendCounter)throw Error(s(482));t=r,t.status="pending",t.then(function(l){if(r.status==="pending"){var m=r;m.status="fulfilled",m.value=l}},function(l){if(r.status==="pending"){var m=r;m.status="rejected",m.reason=l}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw t=r.reason,og(t),t}throw ms=r,hs}}var ms=null;function sg(){if(ms===null)throw Error(s(459));var t=ms;return ms=null,t}function og(t){if(t===hs||t===il)throw Error(s(483))}var _r=!1;function td(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function nd(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 kr(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function Or(t,r,i){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(Ze&2)!==0){var m=l.pending;return m===null?r.next=r:(r.next=m.next,m.next=r),l.pending=r,r=Qo(t),Kp(t,null,i),r}return $o(t,l,r,i),Qo(t)}function ps(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,ep(t,i)}}function rd(t,r){var i=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,i===l)){var m=null,y=null;if(i=i.firstBaseUpdate,i!==null){do{var C={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};y===null?m=y=C:y=y.next=C,i=i.next}while(i!==null);y===null?m=y=r:y=y.next=r}else m=y=r;i={baseState:l.baseState,firstBaseUpdate:m,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 ad=!1;function gs(){if(ad){var t=ai;if(t!==null)throw t}}function ys(t,r,i,l){ad=!1;var m=t.updateQueue;_r=!1;var y=m.firstBaseUpdate,C=m.lastBaseUpdate,V=m.shared.pending;if(V!==null){m.shared.pending=null;var Z=V,le=Z.next;Z.next=null,C===null?y=le:C.next=le,C=Z;var ge=t.alternate;ge!==null&&(ge=ge.updateQueue,V=ge.lastBaseUpdate,V!==C&&(V===null?ge.firstBaseUpdate=le:V.next=le,ge.lastBaseUpdate=Z))}if(y!==null){var we=m.baseState;C=0,ge=le=Z=null,V=y;do{var fe=V.lane&-536870913,he=fe!==V.lane;if(he?(Ke&fe)===fe:(l&fe)===fe){fe!==0&&fe===ri&&(ad=!0),ge!==null&&(ge=ge.next={lane:0,tag:V.tag,payload:V.payload,callback:null,next:null});e:{var ze=t,Me=V;fe=r;var et=i;switch(Me.tag){case 1:if(ze=Me.payload,typeof ze=="function"){we=ze.call(et,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(et,we,fe):ze,fe==null)break e;we=g({},we,fe);break e;case 2:_r=!0}}fe=V.callback,fe!==null&&(t.flags|=64,he&&(t.flags|=8192),he=m.callbacks,he===null?m.callbacks=[fe]:he.push(fe))}else he={lane:fe,tag:V.tag,payload:V.payload,callback:V.callback,next:null},ge===null?(le=ge=he,Z=we):ge=ge.next=he,C|=fe;if(V=V.next,V===null){if(V=m.shared.pending,V===null)break;he=V,V=he.next,he.next=null,m.lastBaseUpdate=he,m.shared.pending=null}}while(!0);ge===null&&(Z=we),m.baseState=Z,m.firstBaseUpdate=le,m.lastBaseUpdate=ge,y===null&&(m.shared.lanes=0),Ur|=C,t.lanes=C,t.memoizedState=we}}function lg(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++)lg(i[t],r)}var ii=O(null),ol=O(0);function cg(t,r){t=fr,J(ol,t),J(ii,r),fr=t|r.baseLanes}function id(){J(ol,fr),J(ii,ii.current)}function sd(){fr=ol.current,F(ii),F(ol)}var Rr=0,He=null,Qe=null,wt=null,ll=!1,si=!1,pa=!1,ul=0,vs=0,oi=null,CS=0;function vt(){throw Error(s(321))}function od(t,r){if(r===null)return!1;for(var i=0;i<r.length&&i<t.length;i++)if(!an(t[i],r[i]))return!1;return!0}function ld(t,r,i,l,m,y){return Rr=y,He=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,W.H=t===null||t.memoizedState===null?Kg:Wg,pa=!1,y=i(l,m),pa=!1,si&&(y=fg(r,i,l,m)),dg(t),y}function dg(t){W.H=pl;var r=Qe!==null&&Qe.next!==null;if(Rr=0,wt=Qe=He=null,ll=!1,vs=0,oi=null,r)throw Error(s(300));t===null||Nt||(t=t.dependencies,t!==null&&nl(t)&&(Nt=!0))}function fg(t,r,i,l){He=t;var m=0;do{if(si&&(oi=null),vs=0,si=!1,25<=m)throw Error(s(301));if(m+=1,wt=Qe=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=BS,y=r(i,l)}while(si);return y}function DS(){var t=W.H,r=t.useState()[0];return r=typeof r.then=="function"?xs(r):r,t=t.useState()[0],(Qe!==null?Qe.memoizedState:null)!==t&&(He.flags|=1024),r}function ud(){var t=ul!==0;return ul=0,t}function cd(t,r,i){r.updateQueue=t.updateQueue,r.flags&=-2053,t.lanes&=~i}function dd(t){if(ll){for(t=t.memoizedState;t!==null;){var r=t.queue;r!==null&&(r.pending=null),t=t.next}ll=!1}Rr=0,wt=Qe=He=null,si=!1,vs=ul=0,oi=null}function Wt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return wt===null?He.memoizedState=wt=t:wt=wt.next=t,wt}function St(){if(Qe===null){var t=He.alternate;t=t!==null?t.memoizedState:null}else t=Qe.next;var r=wt===null?He.memoizedState:wt.next;if(r!==null)wt=r,Qe=t;else{if(t===null)throw He.alternate===null?Error(s(467)):Error(s(310));Qe=t,t={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},wt===null?He.memoizedState=wt=t:wt=wt.next=t}return wt}function fd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function xs(t){var r=vs;return vs+=1,oi===null&&(oi=[]),t=ig(oi,t,r),r=He,(wt===null?r.memoizedState:wt.next)===null&&(r=r.alternate,W.H=r===null||r.memoizedState===null?Kg:Wg),t}function cl(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return xs(t);if(t.$$typeof===L)return zt(t)}throw Error(s(438,String(t)))}function hd(t){var r=null,i=He.updateQueue;if(i!==null&&(r=i.memoCache),r==null){var l=He.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(r={data:l.data.map(function(m){return m.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),i===null&&(i=fd(),He.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 sr(t,r){return typeof r=="function"?r(t):r}function dl(t){var r=St();return md(r,Qe,t)}function md(t,r,i){var l=t.queue;if(l===null)throw Error(s(311));l.lastRenderedReducer=i;var m=t.baseQueue,y=l.pending;if(y!==null){if(m!==null){var C=m.next;m.next=y.next,y.next=C}r.baseQueue=m=y,l.pending=null}if(y=t.baseState,m===null)t.memoizedState=y;else{r=m.next;var V=C=null,Z=null,le=r,ge=!1;do{var we=le.lane&-536870913;if(we!==le.lane?(Ke&we)===we:(Rr&we)===we){var fe=le.revertLane;if(fe===0)Z!==null&&(Z=Z.next={lane:0,revertLane:0,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),we===ri&&(ge=!0);else if((Rr&fe)===fe){le=le.next,fe===ri&&(ge=!0);continue}else we={lane:0,revertLane:le.revertLane,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},Z===null?(V=Z=we,C=y):Z=Z.next=we,He.lanes|=fe,Ur|=fe;we=le.action,pa&&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},Z===null?(V=Z=fe,C=y):Z=Z.next=fe,He.lanes|=we,Ur|=we;le=le.next}while(le!==null&&le!==r);if(Z===null?C=y:Z.next=V,!an(y,t.memoizedState)&&(Nt=!0,ge&&(i=ai,i!==null)))throw i;t.memoizedState=y,t.baseState=C,t.baseQueue=Z,l.lastRenderedState=y}return m===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function pd(t){var r=St(),i=r.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=t;var l=i.dispatch,m=i.pending,y=r.memoizedState;if(m!==null){i.pending=null;var C=m=m.next;do y=t(y,C.action),C=C.next;while(C!==m);an(y,r.memoizedState)||(Nt=!0),r.memoizedState=y,r.baseQueue===null&&(r.baseState=y),i.lastRenderedState=y}return[y,l]}function hg(t,r,i){var l=He,m=St(),y=Xe;if(y){if(i===void 0)throw Error(s(407));i=i()}else i=r();var C=!an((Qe||m).memoizedState,i);C&&(m.memoizedState=i,Nt=!0),m=m.queue;var V=gg.bind(null,l,m,t);if(bs(2048,8,V,[t]),m.getSnapshot!==r||C||wt!==null&&wt.memoizedState.tag&1){if(l.flags|=2048,li(9,fl(),pg.bind(null,l,m,i,r),null),rt===null)throw Error(s(349));y||(Rr&124)!==0||mg(l,r,i)}return i}function mg(t,r,i){t.flags|=16384,t={getSnapshot:r,value:i},r=He.updateQueue,r===null?(r=fd(),He.updateQueue=r,r.stores=[t]):(i=r.stores,i===null?r.stores=[t]:i.push(t))}function pg(t,r,i,l){r.value=i,r.getSnapshot=l,yg(r)&&vg(t)}function gg(t,r,i){return i(function(){yg(r)&&vg(t)})}function yg(t){var r=t.getSnapshot;t=t.value;try{var i=r();return!an(t,i)}catch{return!0}}function vg(t){var r=Ja(t,2);r!==null&&dn(r,t,2)}function gd(t){var r=Wt();if(typeof t=="function"){var i=t;if(t=i(),pa){Ce(!0);try{i()}finally{Ce(!1)}}}return r.memoizedState=r.baseState=t,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:t},r}function xg(t,r,i,l){return t.baseState=i,md(t,Qe,typeof l=="function"?l:sr)}function MS(t,r,i,l,m){if(ml(t))throw Error(s(485));if(t=r.action,t!==null){var y={payload:m,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(C){y.listeners.push(C)}};W.T!==null?i(!0):y.isTransition=!1,l(y),i=r.pending,i===null?(y.next=r.pending=y,bg(r,y)):(y.next=i.next,r.pending=i.next=y)}}function bg(t,r){var i=r.action,l=r.payload,m=t.state;if(r.isTransition){var y=W.T,C={};W.T=C;try{var V=i(m,l),Z=W.S;Z!==null&&Z(C,V),wg(t,r,V)}catch(le){yd(t,r,le)}finally{W.T=y}}else try{y=i(m,l),wg(t,r,y)}catch(le){yd(t,r,le)}}function wg(t,r,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(l){Sg(t,r,l)},function(l){return yd(t,r,l)}):Sg(t,r,i)}function Sg(t,r,i){r.status="fulfilled",r.value=i,jg(r),t.state=i,r=t.pending,r!==null&&(i=r.next,i===r?t.pending=null:(i=i.next,r.next=i,bg(t,i)))}function yd(t,r,i){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do r.status="rejected",r.reason=i,jg(r),r=r.next;while(r!==l)}t.action=null}function jg(t){t=t.listeners;for(var r=0;r<t.length;r++)(0,t[r])()}function Tg(t,r){return r}function Eg(t,r){if(Xe){var i=rt.formState;if(i!==null){e:{var l=He;if(Xe){if(ft){t:{for(var m=ft,y=Hn;m.nodeType!==8;){if(!y){m=null;break t}if(m=Pn(m.nextSibling),m===null){m=null;break t}}y=m.data,m=y==="F!"||y==="F"?m:null}if(m){ft=Pn(m.nextSibling),l=m.data==="F!";break e}}da(l)}l=!1}l&&(r=i[0])}}return i=Wt(),i.memoizedState=i.baseState=r,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Tg,lastRenderedState:r},i.queue=l,i=qg.bind(null,He,l),l.dispatch=i,l=gd(!1),y=Sd.bind(null,He,!1,l.queue),l=Wt(),m={state:r,dispatch:null,action:t,pending:null},l.queue=m,i=MS.bind(null,He,m,y,i),m.dispatch=i,l.memoizedState=t,[r,i,!1]}function Ag(t){var r=St();return Ng(r,Qe,t)}function Ng(t,r,i){if(r=md(t,r,Tg)[0],t=dl(sr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var l=xs(r)}catch(C){throw C===hs?il:C}else l=r;r=St();var m=r.queue,y=m.dispatch;return i!==r.memoizedState&&(He.flags|=2048,li(9,fl(),LS.bind(null,m,i),null)),[l,y,t]}function LS(t,r){t.action=r}function _g(t){var r=St(),i=Qe;if(i!==null)return Ng(r,i,t);St(),r=r.memoizedState,i=St();var l=i.queue.dispatch;return i.memoizedState=t,[r,l,!1]}function li(t,r,i,l){return t={tag:t,create:i,deps:l,inst:r,next:null},r=He.updateQueue,r===null&&(r=fd(),He.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 fl(){return{destroy:void 0,resource:void 0}}function kg(){return St().memoizedState}function hl(t,r,i,l){var m=Wt();l=l===void 0?null:l,He.flags|=t,m.memoizedState=li(1|r,fl(),i,l)}function bs(t,r,i,l){var m=St();l=l===void 0?null:l;var y=m.memoizedState.inst;Qe!==null&&l!==null&&od(l,Qe.memoizedState.deps)?m.memoizedState=li(r,y,i,l):(He.flags|=t,m.memoizedState=li(1|r,y,i,l))}function Og(t,r){hl(8390656,8,t,r)}function Rg(t,r){bs(2048,8,t,r)}function Cg(t,r){return bs(4,2,t,r)}function Dg(t,r){return bs(4,4,t,r)}function Mg(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 Lg(t,r,i){i=i!=null?i.concat([t]):null,bs(4,4,Mg.bind(null,r,t),i)}function vd(){}function Pg(t,r){var i=St();r=r===void 0?null:r;var l=i.memoizedState;return r!==null&&od(r,l[1])?l[0]:(i.memoizedState=[t,r],t)}function zg(t,r){var i=St();r=r===void 0?null:r;var l=i.memoizedState;if(r!==null&&od(r,l[1]))return l[0];if(l=t(),pa){Ce(!0);try{t()}finally{Ce(!1)}}return i.memoizedState=[l,r],l}function xd(t,r,i){return i===void 0||(Rr&1073741824)!==0?t.memoizedState=r:(t.memoizedState=i,t=F0(),He.lanes|=t,Ur|=t,i)}function Ug(t,r,i,l){return an(i,r)?i:ii.current!==null?(t=xd(t,i,l),an(t,r)||(Nt=!0),t):(Rr&42)===0?(Nt=!0,t.memoizedState=i):(t=F0(),He.lanes|=t,Ur|=t,r)}function Bg(t,r,i,l,m){var y=w.p;w.p=y!==0&&8>y?y:8;var C=W.T,V={};W.T=V,Sd(t,!1,r,i);try{var Z=m(),le=W.S;if(le!==null&&le(V,Z),Z!==null&&typeof Z=="object"&&typeof Z.then=="function"){var ge=RS(Z,l);ws(t,r,ge,cn(t))}else ws(t,r,l,cn(t))}catch(we){ws(t,r,{then:function(){},status:"rejected",reason:we},cn())}finally{w.p=y,W.T=C}}function PS(){}function bd(t,r,i,l){if(t.tag!==5)throw Error(s(476));var m=Fg(t).queue;Bg(t,m,r,ce,i===null?PS:function(){return Vg(t),i(l)})}function Fg(t){var r=t.memoizedState;if(r!==null)return r;r={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:ce},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:sr,lastRenderedState:i},next:null},t.memoizedState=r,t=t.alternate,t!==null&&(t.memoizedState=r),r}function Vg(t){var r=Fg(t).next.queue;ws(t,r,{},cn())}function wd(){return zt(Bs)}function Hg(){return St().memoizedState}function Ig(){return St().memoizedState}function zS(t){for(var r=t.return;r!==null;){switch(r.tag){case 24:case 3:var i=cn();t=kr(i);var l=Or(r,t,i);l!==null&&(dn(l,r,i),ps(l,r,i)),r={cache:$c()},t.payload=r;return}r=r.return}}function US(t,r,i){var l=cn();i={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},ml(t)?Gg(r,i):(i=Vc(t,r,i,l),i!==null&&(dn(i,t,l),Yg(i,r,l)))}function qg(t,r,i){var l=cn();ws(t,r,i,l)}function ws(t,r,i,l){var m={lane:l,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(ml(t))Gg(r,m);else{var y=t.alternate;if(t.lanes===0&&(y===null||y.lanes===0)&&(y=r.lastRenderedReducer,y!==null))try{var C=r.lastRenderedState,V=y(C,i);if(m.hasEagerState=!0,m.eagerState=V,an(V,C))return $o(t,r,m,0),rt===null&&Zo(),!1}catch{}finally{}if(i=Vc(t,r,m,l),i!==null)return dn(i,t,l),Yg(i,r,l),!0}return!1}function Sd(t,r,i,l){if(l={lane:2,revertLane:ef(),action:l,hasEagerState:!1,eagerState:null,next:null},ml(t)){if(r)throw Error(s(479))}else r=Vc(t,i,l,2),r!==null&&dn(r,t,2)}function ml(t){var r=t.alternate;return t===He||r!==null&&r===He}function Gg(t,r){si=ll=!0;var i=t.pending;i===null?r.next=r:(r.next=i.next,i.next=r),t.pending=r}function Yg(t,r,i){if((i&4194048)!==0){var l=r.lanes;l&=t.pendingLanes,i|=l,r.lanes=i,ep(t,i)}}var pl={readContext:zt,use:cl,useCallback:vt,useContext:vt,useEffect:vt,useImperativeHandle:vt,useLayoutEffect:vt,useInsertionEffect:vt,useMemo:vt,useReducer:vt,useRef:vt,useState:vt,useDebugValue:vt,useDeferredValue:vt,useTransition:vt,useSyncExternalStore:vt,useId:vt,useHostTransitionStatus:vt,useFormState:vt,useActionState:vt,useOptimistic:vt,useMemoCache:vt,useCacheRefresh:vt},Kg={readContext:zt,use:cl,useCallback:function(t,r){return Wt().memoizedState=[t,r===void 0?null:r],t},useContext:zt,useEffect:Og,useImperativeHandle:function(t,r,i){i=i!=null?i.concat([t]):null,hl(4194308,4,Mg.bind(null,r,t),i)},useLayoutEffect:function(t,r){return hl(4194308,4,t,r)},useInsertionEffect:function(t,r){hl(4,2,t,r)},useMemo:function(t,r){var i=Wt();r=r===void 0?null:r;var l=t();if(pa){Ce(!0);try{t()}finally{Ce(!1)}}return i.memoizedState=[l,r],l},useReducer:function(t,r,i){var l=Wt();if(i!==void 0){var m=i(r);if(pa){Ce(!0);try{i(r)}finally{Ce(!1)}}}else m=r;return l.memoizedState=l.baseState=m,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:m},l.queue=t,t=t.dispatch=US.bind(null,He,t),[l.memoizedState,t]},useRef:function(t){var r=Wt();return t={current:t},r.memoizedState=t},useState:function(t){t=gd(t);var r=t.queue,i=qg.bind(null,He,r);return r.dispatch=i,[t.memoizedState,i]},useDebugValue:vd,useDeferredValue:function(t,r){var i=Wt();return xd(i,t,r)},useTransition:function(){var t=gd(!1);return t=Bg.bind(null,He,t.queue,!0,!1),Wt().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,r,i){var l=He,m=Wt();if(Xe){if(i===void 0)throw Error(s(407));i=i()}else{if(i=r(),rt===null)throw Error(s(349));(Ke&124)!==0||mg(l,r,i)}m.memoizedState=i;var y={value:i,getSnapshot:r};return m.queue=y,Og(gg.bind(null,l,y,t),[t]),l.flags|=2048,li(9,fl(),pg.bind(null,l,y,i,r),null),i},useId:function(){var t=Wt(),r=rt.identifierPrefix;if(Xe){var i=rr,l=nr;i=(l&~(1<<32-qe(l)-1)).toString(32)+i,r="«"+r+"R"+i,i=ul++,0<i&&(r+="H"+i.toString(32)),r+="»"}else i=CS++,r="«"+r+"r"+i.toString(32)+"»";return t.memoizedState=r},useHostTransitionStatus:wd,useFormState:Eg,useActionState:Eg,useOptimistic:function(t){var r=Wt();r.memoizedState=r.baseState=t;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=i,r=Sd.bind(null,He,!0,i),i.dispatch=r,[t,r]},useMemoCache:hd,useCacheRefresh:function(){return Wt().memoizedState=zS.bind(null,He)}},Wg={readContext:zt,use:cl,useCallback:Pg,useContext:zt,useEffect:Rg,useImperativeHandle:Lg,useInsertionEffect:Cg,useLayoutEffect:Dg,useMemo:zg,useReducer:dl,useRef:kg,useState:function(){return dl(sr)},useDebugValue:vd,useDeferredValue:function(t,r){var i=St();return Ug(i,Qe.memoizedState,t,r)},useTransition:function(){var t=dl(sr)[0],r=St().memoizedState;return[typeof t=="boolean"?t:xs(t),r]},useSyncExternalStore:hg,useId:Hg,useHostTransitionStatus:wd,useFormState:Ag,useActionState:Ag,useOptimistic:function(t,r){var i=St();return xg(i,Qe,t,r)},useMemoCache:hd,useCacheRefresh:Ig},BS={readContext:zt,use:cl,useCallback:Pg,useContext:zt,useEffect:Rg,useImperativeHandle:Lg,useInsertionEffect:Cg,useLayoutEffect:Dg,useMemo:zg,useReducer:pd,useRef:kg,useState:function(){return pd(sr)},useDebugValue:vd,useDeferredValue:function(t,r){var i=St();return Qe===null?xd(i,t,r):Ug(i,Qe.memoizedState,t,r)},useTransition:function(){var t=pd(sr)[0],r=St().memoizedState;return[typeof t=="boolean"?t:xs(t),r]},useSyncExternalStore:hg,useId:Hg,useHostTransitionStatus:wd,useFormState:_g,useActionState:_g,useOptimistic:function(t,r){var i=St();return Qe!==null?xg(i,Qe,t,r):(i.baseState=t,[t,i.queue.dispatch])},useMemoCache:hd,useCacheRefresh:Ig},ui=null,Ss=0;function gl(t){var r=Ss;return Ss+=1,ui===null&&(ui=[]),ig(ui,t,r)}function js(t,r){r=r.props.ref,t.ref=r!==void 0?r:null}function yl(t,r){throw r.$$typeof===v?Error(s(525)):(t=Object.prototype.toString.call(r),Error(s(31,t==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":t)))}function Xg(t){var r=t._init;return r(t._payload)}function Zg(t){function r(ae,ne){if(t){var ie=ae.deletions;ie===null?(ae.deletions=[ne],ae.flags|=16):ie.push(ne)}}function i(ae,ne){if(!t)return null;for(;ne!==null;)r(ae,ne),ne=ne.sibling;return null}function l(ae){for(var ne=new Map;ae!==null;)ae.key!==null?ne.set(ae.key,ae):ne.set(ae.index,ae),ae=ae.sibling;return ne}function m(ae,ne){return ae=tr(ae,ne),ae.index=0,ae.sibling=null,ae}function y(ae,ne,ie){return ae.index=ie,t?(ie=ae.alternate,ie!==null?(ie=ie.index,ie<ne?(ae.flags|=67108866,ne):ie):(ae.flags|=67108866,ne)):(ae.flags|=1048576,ne)}function C(ae){return t&&ae.alternate===null&&(ae.flags|=67108866),ae}function V(ae,ne,ie,xe){return ne===null||ne.tag!==6?(ne=Ic(ie,ae.mode,xe),ne.return=ae,ne):(ne=m(ne,ie),ne.return=ae,ne)}function Z(ae,ne,ie,xe){var ke=ie.type;return ke===_?ge(ae,ne,ie.props.children,xe,ie.key):ne!==null&&(ne.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===B&&Xg(ke)===ne.type)?(ne=m(ne,ie.props),js(ne,ie),ne.return=ae,ne):(ne=Jo(ie.type,ie.key,ie.props,null,ae.mode,xe),js(ne,ie),ne.return=ae,ne)}function le(ae,ne,ie,xe){return ne===null||ne.tag!==4||ne.stateNode.containerInfo!==ie.containerInfo||ne.stateNode.implementation!==ie.implementation?(ne=qc(ie,ae.mode,xe),ne.return=ae,ne):(ne=m(ne,ie.children||[]),ne.return=ae,ne)}function ge(ae,ne,ie,xe,ke){return ne===null||ne.tag!==7?(ne=oa(ie,ae.mode,xe,ke),ne.return=ae,ne):(ne=m(ne,ie),ne.return=ae,ne)}function we(ae,ne,ie){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return ne=Ic(""+ne,ae.mode,ie),ne.return=ae,ne;if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case b:return ie=Jo(ne.type,ne.key,ne.props,null,ae.mode,ie),js(ie,ne),ie.return=ae,ie;case j:return ne=qc(ne,ae.mode,ie),ne.return=ae,ne;case B:var xe=ne._init;return ne=xe(ne._payload),we(ae,ne,ie)}if($(ne)||U(ne))return ne=oa(ne,ae.mode,ie,null),ne.return=ae,ne;if(typeof ne.then=="function")return we(ae,gl(ne),ie);if(ne.$$typeof===L)return we(ae,rl(ae,ne),ie);yl(ae,ne)}return null}function fe(ae,ne,ie,xe){var ke=ne!==null?ne.key:null;if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return ke!==null?null:V(ae,ne,""+ie,xe);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case b:return ie.key===ke?Z(ae,ne,ie,xe):null;case j:return ie.key===ke?le(ae,ne,ie,xe):null;case B:return ke=ie._init,ie=ke(ie._payload),fe(ae,ne,ie,xe)}if($(ie)||U(ie))return ke!==null?null:ge(ae,ne,ie,xe,null);if(typeof ie.then=="function")return fe(ae,ne,gl(ie),xe);if(ie.$$typeof===L)return fe(ae,ne,rl(ae,ie),xe);yl(ae,ie)}return null}function he(ae,ne,ie,xe,ke){if(typeof xe=="string"&&xe!==""||typeof xe=="number"||typeof xe=="bigint")return ae=ae.get(ie)||null,V(ne,ae,""+xe,ke);if(typeof xe=="object"&&xe!==null){switch(xe.$$typeof){case b:return ae=ae.get(xe.key===null?ie:xe.key)||null,Z(ne,ae,xe,ke);case j:return ae=ae.get(xe.key===null?ie:xe.key)||null,le(ne,ae,xe,ke);case B:var Ie=xe._init;return xe=Ie(xe._payload),he(ae,ne,ie,xe,ke)}if($(xe)||U(xe))return ae=ae.get(ie)||null,ge(ne,ae,xe,ke,null);if(typeof xe.then=="function")return he(ae,ne,ie,gl(xe),ke);if(xe.$$typeof===L)return he(ae,ne,ie,rl(ne,xe),ke);yl(ne,xe)}return null}function ze(ae,ne,ie,xe){for(var ke=null,Ie=null,De=ne,Pe=ne=0,kt=null;De!==null&&Pe<ie.length;Pe++){De.index>Pe?(kt=De,De=null):kt=De.sibling;var We=fe(ae,De,ie[Pe],xe);if(We===null){De===null&&(De=kt);break}t&&De&&We.alternate===null&&r(ae,De),ne=y(We,ne,Pe),Ie===null?ke=We:Ie.sibling=We,Ie=We,De=kt}if(Pe===ie.length)return i(ae,De),Xe&&ua(ae,Pe),ke;if(De===null){for(;Pe<ie.length;Pe++)De=we(ae,ie[Pe],xe),De!==null&&(ne=y(De,ne,Pe),Ie===null?ke=De:Ie.sibling=De,Ie=De);return Xe&&ua(ae,Pe),ke}for(De=l(De);Pe<ie.length;Pe++)kt=he(De,ae,Pe,ie[Pe],xe),kt!==null&&(t&&kt.alternate!==null&&De.delete(kt.key===null?Pe:kt.key),ne=y(kt,ne,Pe),Ie===null?ke=kt:Ie.sibling=kt,Ie=kt);return t&&De.forEach(function(Kr){return r(ae,Kr)}),Xe&&ua(ae,Pe),ke}function Me(ae,ne,ie,xe){if(ie==null)throw Error(s(151));for(var ke=null,Ie=null,De=ne,Pe=ne=0,kt=null,We=ie.next();De!==null&&!We.done;Pe++,We=ie.next()){De.index>Pe?(kt=De,De=null):kt=De.sibling;var Kr=fe(ae,De,We.value,xe);if(Kr===null){De===null&&(De=kt);break}t&&De&&Kr.alternate===null&&r(ae,De),ne=y(Kr,ne,Pe),Ie===null?ke=Kr:Ie.sibling=Kr,Ie=Kr,De=kt}if(We.done)return i(ae,De),Xe&&ua(ae,Pe),ke;if(De===null){for(;!We.done;Pe++,We=ie.next())We=we(ae,We.value,xe),We!==null&&(ne=y(We,ne,Pe),Ie===null?ke=We:Ie.sibling=We,Ie=We);return Xe&&ua(ae,Pe),ke}for(De=l(De);!We.done;Pe++,We=ie.next())We=he(De,ae,Pe,We.value,xe),We!==null&&(t&&We.alternate!==null&&De.delete(We.key===null?Pe:We.key),ne=y(We,ne,Pe),Ie===null?ke=We:Ie.sibling=We,Ie=We);return t&&De.forEach(function(F3){return r(ae,F3)}),Xe&&ua(ae,Pe),ke}function et(ae,ne,ie,xe){if(typeof ie=="object"&&ie!==null&&ie.type===_&&ie.key===null&&(ie=ie.props.children),typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case b:e:{for(var ke=ie.key;ne!==null;){if(ne.key===ke){if(ke=ie.type,ke===_){if(ne.tag===7){i(ae,ne.sibling),xe=m(ne,ie.props.children),xe.return=ae,ae=xe;break e}}else if(ne.elementType===ke||typeof ke=="object"&&ke!==null&&ke.$$typeof===B&&Xg(ke)===ne.type){i(ae,ne.sibling),xe=m(ne,ie.props),js(xe,ie),xe.return=ae,ae=xe;break e}i(ae,ne);break}else r(ae,ne);ne=ne.sibling}ie.type===_?(xe=oa(ie.props.children,ae.mode,xe,ie.key),xe.return=ae,ae=xe):(xe=Jo(ie.type,ie.key,ie.props,null,ae.mode,xe),js(xe,ie),xe.return=ae,ae=xe)}return C(ae);case j:e:{for(ke=ie.key;ne!==null;){if(ne.key===ke)if(ne.tag===4&&ne.stateNode.containerInfo===ie.containerInfo&&ne.stateNode.implementation===ie.implementation){i(ae,ne.sibling),xe=m(ne,ie.children||[]),xe.return=ae,ae=xe;break e}else{i(ae,ne);break}else r(ae,ne);ne=ne.sibling}xe=qc(ie,ae.mode,xe),xe.return=ae,ae=xe}return C(ae);case B:return ke=ie._init,ie=ke(ie._payload),et(ae,ne,ie,xe)}if($(ie))return ze(ae,ne,ie,xe);if(U(ie)){if(ke=U(ie),typeof ke!="function")throw Error(s(150));return ie=ke.call(ie),Me(ae,ne,ie,xe)}if(typeof ie.then=="function")return et(ae,ne,gl(ie),xe);if(ie.$$typeof===L)return et(ae,ne,rl(ae,ie),xe);yl(ae,ie)}return typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint"?(ie=""+ie,ne!==null&&ne.tag===6?(i(ae,ne.sibling),xe=m(ne,ie),xe.return=ae,ae=xe):(i(ae,ne),xe=Ic(ie,ae.mode,xe),xe.return=ae,ae=xe),C(ae)):i(ae,ne)}return function(ae,ne,ie,xe){try{Ss=0;var ke=et(ae,ne,ie,xe);return ui=null,ke}catch(De){if(De===hs||De===il)throw De;var Ie=sn(29,De,null,ae.mode);return Ie.lanes=xe,Ie.return=ae,Ie}finally{}}}var ci=Zg(!0),$g=Zg(!1),Sn=O(null),In=null;function Cr(t){var r=t.alternate;J(Et,Et.current&1),J(Sn,t),In===null&&(r===null||ii.current!==null||r.memoizedState!==null)&&(In=t)}function Qg(t){if(t.tag===22){if(J(Et,Et.current),J(Sn,t),In===null){var r=t.alternate;r!==null&&r.memoizedState!==null&&(In=t)}}else Dr()}function Dr(){J(Et,Et.current),J(Sn,Sn.current)}function or(t){F(Sn),In===t&&(In=null),F(Et)}var Et=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==="$?"||hf(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 jd(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 Td={enqueueSetState:function(t,r,i){t=t._reactInternals;var l=cn(),m=kr(l);m.payload=r,i!=null&&(m.callback=i),r=Or(t,m,l),r!==null&&(dn(r,t,l),ps(r,t,l))},enqueueReplaceState:function(t,r,i){t=t._reactInternals;var l=cn(),m=kr(l);m.tag=1,m.payload=r,i!=null&&(m.callback=i),r=Or(t,m,l),r!==null&&(dn(r,t,l),ps(r,t,l))},enqueueForceUpdate:function(t,r){t=t._reactInternals;var i=cn(),l=kr(i);l.tag=2,r!=null&&(l.callback=r),r=Or(t,l,i),r!==null&&(dn(r,t,i),ps(r,t,i))}};function Jg(t,r,i,l,m,y,C){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,y,C):r.prototype&&r.prototype.isPureReactComponent?!is(i,l)||!is(m,y):!0}function e0(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&&Td.enqueueReplaceState(r,r.state,null)}function ga(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 m in t)i[m]===void 0&&(i[m]=t[m])}return i}var xl=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 t0(t){xl(t)}function n0(t){console.error(t)}function r0(t){xl(t)}function bl(t,r){try{var i=t.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(l){setTimeout(function(){throw l})}}function a0(t,r,i){try{var l=t.onCaughtError;l(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(m){setTimeout(function(){throw m})}}function Ed(t,r,i){return i=kr(i),i.tag=3,i.payload={element:null},i.callback=function(){bl(t,r)},i}function i0(t){return t=kr(t),t.tag=3,t}function s0(t,r,i,l){var m=i.type.getDerivedStateFromError;if(typeof m=="function"){var y=l.value;t.payload=function(){return m(y)},t.callback=function(){a0(r,i,l)}}var C=i.stateNode;C!==null&&typeof C.componentDidCatch=="function"&&(t.callback=function(){a0(r,i,l),typeof m!="function"&&(Br===null?Br=new Set([this]):Br.add(this));var V=l.stack;this.componentDidCatch(l.value,{componentStack:V!==null?V:""})})}function FS(t,r,i,l,m){if(i.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(r=i.alternate,r!==null&&cs(r,i,m,!0),i=Sn.current,i!==null){switch(i.tag){case 13:return In===null?Xd():i.alternate===null&&ht===0&&(ht=3),i.flags&=-257,i.flags|=65536,i.lanes=m,l===ed?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([l]):r.add(l),$d(t,l,m)),!1;case 22:return i.flags|=65536,l===ed?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)),$d(t,l,m)),!1}throw Error(s(435,i.tag))}return $d(t,l,m),Xd(),!1}if(Xe)return r=Sn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=m,l!==Kc&&(t=Error(s(422),{cause:l}),us(vn(t,i)))):(l!==Kc&&(r=Error(s(423),{cause:l}),us(vn(r,i))),t=t.current.alternate,t.flags|=65536,m&=-m,t.lanes|=m,l=vn(l,i),m=Ed(t.stateNode,l,m),rd(t,m),ht!==4&&(ht=2)),!1;var y=Error(s(520),{cause:l});if(y=vn(y,i),Os===null?Os=[y]:Os.push(y),ht!==4&&(ht=2),r===null)return!0;l=vn(l,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,t=m&-m,i.lanes|=t,t=Ed(i.stateNode,l,t),rd(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"&&(Br===null||!Br.has(y))))return i.flags|=65536,m&=-m,i.lanes|=m,m=i0(m),s0(m,t,i,l),rd(i,m),!1}i=i.return}while(i!==null);return!1}var o0=Error(s(461)),Nt=!1;function Rt(t,r,i,l){r.child=t===null?$g(r,null,i,l):ci(r,t.child,i,l)}function l0(t,r,i,l,m){i=i.render;var y=r.ref;if("ref"in l){var C={};for(var V in l)V!=="ref"&&(C[V]=l[V])}else C=l;return ha(r),l=ld(t,r,i,C,y,m),V=ud(),t!==null&&!Nt?(cd(t,r,m),lr(t,r,m)):(Xe&&V&&Gc(r),r.flags|=1,Rt(t,r,l,m),r.child)}function u0(t,r,i,l,m){if(t===null){var y=i.type;return typeof y=="function"&&!Hc(y)&&y.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=y,c0(t,r,y,l,m)):(t=Jo(i.type,null,l,r,r.mode,m),t.ref=r.ref,t.return=r,r.child=t)}if(y=t.child,!Dd(t,m)){var C=y.memoizedProps;if(i=i.compare,i=i!==null?i:is,i(C,l)&&t.ref===r.ref)return lr(t,r,m)}return r.flags|=1,t=tr(y,l),t.ref=r.ref,t.return=r,r.child=t}function c0(t,r,i,l,m){if(t!==null){var y=t.memoizedProps;if(is(y,l)&&t.ref===r.ref)if(Nt=!1,r.pendingProps=l=y,Dd(t,m))(t.flags&131072)!==0&&(Nt=!0);else return r.lanes=t.lanes,lr(t,r,m)}return Ad(t,r,i,l,m)}function d0(t,r,i){var l=r.pendingProps,m=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(m=r.child=t.child,y=0;m!==null;)y=y|m.lanes|m.childLanes,m=m.sibling;r.childLanes=y&~l}else r.childLanes=0,r.child=null;return f0(t,r,l,i)}if((i&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},t!==null&&al(r,y!==null?y.cachePool:null),y!==null?cg(r,y):id(),Qg(r);else return r.lanes=r.childLanes=536870912,f0(t,r,y!==null?y.baseLanes|i:i,i)}else y!==null?(al(r,y.cachePool),cg(r,y),Dr(),r.memoizedState=null):(t!==null&&al(r,null),id(),Dr());return Rt(t,r,m,i),r.child}function f0(t,r,i,l){var m=Jc();return m=m===null?null:{parent:Tt._currentValue,pool:m},r.memoizedState={baseLanes:i,cachePool:m},t!==null&&al(r,null),id(),Qg(r),t!==null&&cs(t,r,l,!0),null}function wl(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 Ad(t,r,i,l,m){return ha(r),i=ld(t,r,i,l,void 0,m),l=ud(),t!==null&&!Nt?(cd(t,r,m),lr(t,r,m)):(Xe&&l&&Gc(r),r.flags|=1,Rt(t,r,i,m),r.child)}function h0(t,r,i,l,m,y){return ha(r),r.updateQueue=null,i=fg(r,l,i,m),dg(t),l=ud(),t!==null&&!Nt?(cd(t,r,y),lr(t,r,y)):(Xe&&l&&Gc(r),r.flags|=1,Rt(t,r,i,y),r.child)}function m0(t,r,i,l,m){if(ha(r),r.stateNode===null){var y=ei,C=i.contextType;typeof C=="object"&&C!==null&&(y=zt(C)),y=new i(l,y),r.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=Td,r.stateNode=y,y._reactInternals=r,y=r.stateNode,y.props=l,y.state=r.memoizedState,y.refs={},td(r),C=i.contextType,y.context=typeof C=="object"&&C!==null?zt(C):ei,y.state=r.memoizedState,C=i.getDerivedStateFromProps,typeof C=="function"&&(jd(r,i,C,l),y.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(C=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),C!==y.state&&Td.enqueueReplaceState(y,y.state,null),ys(r,l,y,m),gs(),y.state=r.memoizedState),typeof y.componentDidMount=="function"&&(r.flags|=4194308),l=!0}else if(t===null){y=r.stateNode;var V=r.memoizedProps,Z=ga(i,V);y.props=Z;var le=y.context,ge=i.contextType;C=ei,typeof ge=="object"&&ge!==null&&(C=zt(ge));var we=i.getDerivedStateFromProps;ge=typeof we=="function"||typeof y.getSnapshotBeforeUpdate=="function",V=r.pendingProps!==V,ge||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(V||le!==C)&&e0(r,y,l,C),_r=!1;var fe=r.memoizedState;y.state=fe,ys(r,l,y,m),gs(),le=r.memoizedState,V||fe!==le||_r?(typeof we=="function"&&(jd(r,i,we,l),le=r.memoizedState),(Z=_r||Jg(r,i,Z,l,fe,le,C))?(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=C,l=Z):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),l=!1)}else{y=r.stateNode,nd(t,r),C=r.memoizedProps,ge=ga(i,C),y.props=ge,we=r.pendingProps,fe=y.context,le=i.contextType,Z=ei,typeof le=="object"&&le!==null&&(Z=zt(le)),V=i.getDerivedStateFromProps,(le=typeof V=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(C!==we||fe!==Z)&&e0(r,y,l,Z),_r=!1,fe=r.memoizedState,y.state=fe,ys(r,l,y,m),gs();var he=r.memoizedState;C!==we||fe!==he||_r||t!==null&&t.dependencies!==null&&nl(t.dependencies)?(typeof V=="function"&&(jd(r,i,V,l),he=r.memoizedState),(ge=_r||Jg(r,i,ge,l,fe,he,Z)||t!==null&&t.dependencies!==null&&nl(t.dependencies))?(le||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(l,he,Z),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(l,he,Z)),typeof y.componentDidUpdate=="function"&&(r.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof y.componentDidUpdate!="function"||C===t.memoizedProps&&fe===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&fe===t.memoizedState||(r.flags|=1024),r.memoizedProps=l,r.memoizedState=he),y.props=l,y.state=he,y.context=Z,l=ge):(typeof y.componentDidUpdate!="function"||C===t.memoizedProps&&fe===t.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||C===t.memoizedProps&&fe===t.memoizedState||(r.flags|=1024),l=!1)}return y=l,wl(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=ci(r,t.child,null,m),r.child=ci(r,null,i,m)):Rt(t,r,i,m),r.memoizedState=y.state,t=r.child):t=lr(t,r,m),t}function p0(t,r,i,l){return ls(),r.flags|=256,Rt(t,r,i,l),r.child}var Nd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _d(t){return{baseLanes:t,cachePool:ng()}}function kd(t,r,i){return t=t!==null?t.childLanes&~i:0,r&&(t|=jn),t}function g0(t,r,i){var l=r.pendingProps,m=!1,y=(r.flags&128)!==0,C;if((C=y)||(C=t!==null&&t.memoizedState===null?!1:(Et.current&2)!==0),C&&(m=!0,r.flags&=-129),C=(r.flags&32)!==0,r.flags&=-33,t===null){if(Xe){if(m?Cr(r):Dr(),Xe){var V=ft,Z;if(Z=V){e:{for(Z=V,V=Hn;Z.nodeType!==8;){if(!V){V=null;break e}if(Z=Pn(Z.nextSibling),Z===null){V=null;break e}}V=Z}V!==null?(r.memoizedState={dehydrated:V,treeContext:la!==null?{id:nr,overflow:rr}:null,retryLane:536870912,hydrationErrors:null},Z=sn(18,null,null,0),Z.stateNode=V,Z.return=r,r.child=Z,Ht=r,ft=null,Z=!0):Z=!1}Z||da(r)}if(V=r.memoizedState,V!==null&&(V=V.dehydrated,V!==null))return hf(V)?r.lanes=32:r.lanes=536870912,null;or(r)}return V=l.children,l=l.fallback,m?(Dr(),m=r.mode,V=Sl({mode:"hidden",children:V},m),l=oa(l,m,i,null),V.return=r,l.return=r,V.sibling=l,r.child=V,m=r.child,m.memoizedState=_d(i),m.childLanes=kd(t,C,i),r.memoizedState=Nd,l):(Cr(r),Od(r,V))}if(Z=t.memoizedState,Z!==null&&(V=Z.dehydrated,V!==null)){if(y)r.flags&256?(Cr(r),r.flags&=-257,r=Rd(t,r,i)):r.memoizedState!==null?(Dr(),r.child=t.child,r.flags|=128,r=null):(Dr(),m=l.fallback,V=r.mode,l=Sl({mode:"visible",children:l.children},V),m=oa(m,V,i,null),m.flags|=2,l.return=r,m.return=r,l.sibling=m,r.child=l,ci(r,t.child,null,i),l=r.child,l.memoizedState=_d(i),l.childLanes=kd(t,C,i),r.memoizedState=Nd,r=m);else if(Cr(r),hf(V)){if(C=V.nextSibling&&V.nextSibling.dataset,C)var le=C.dgst;C=le,l=Error(s(419)),l.stack="",l.digest=C,us({value:l,source:null,stack:null}),r=Rd(t,r,i)}else if(Nt||cs(t,r,i,!1),C=(i&t.childLanes)!==0,Nt||C){if(C=rt,C!==null&&(l=i&-i,l=(l&42)!==0?1:hc(l),l=(l&(C.suspendedLanes|i))!==0?0:l,l!==0&&l!==Z.retryLane))throw Z.retryLane=l,Ja(t,l),dn(C,t,l),o0;V.data==="$?"||Xd(),r=Rd(t,r,i)}else V.data==="$?"?(r.flags|=192,r.child=t.child,r=null):(t=Z.treeContext,ft=Pn(V.nextSibling),Ht=r,Xe=!0,ca=null,Hn=!1,t!==null&&(bn[wn++]=nr,bn[wn++]=rr,bn[wn++]=la,nr=t.id,rr=t.overflow,la=r),r=Od(r,l.children),r.flags|=4096);return r}return m?(Dr(),m=l.fallback,V=r.mode,Z=t.child,le=Z.sibling,l=tr(Z,{mode:"hidden",children:l.children}),l.subtreeFlags=Z.subtreeFlags&65011712,le!==null?m=tr(le,m):(m=oa(m,V,i,null),m.flags|=2),m.return=r,l.return=r,l.sibling=m,r.child=l,l=m,m=r.child,V=t.child.memoizedState,V===null?V=_d(i):(Z=V.cachePool,Z!==null?(le=Tt._currentValue,Z=Z.parent!==le?{parent:le,pool:le}:Z):Z=ng(),V={baseLanes:V.baseLanes|i,cachePool:Z}),m.memoizedState=V,m.childLanes=kd(t,C,i),r.memoizedState=Nd,l):(Cr(r),i=t.child,t=i.sibling,i=tr(i,{mode:"visible",children:l.children}),i.return=r,i.sibling=null,t!==null&&(C=r.deletions,C===null?(r.deletions=[t],r.flags|=16):C.push(t)),r.child=i,r.memoizedState=null,i)}function Od(t,r){return r=Sl({mode:"visible",children:r},t.mode),r.return=t,t.child=r}function Sl(t,r){return t=sn(22,t,null,r),t.lanes=0,t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},t}function Rd(t,r,i){return ci(r,t.child,null,i),t=Od(r,r.pendingProps.children),t.flags|=2,r.memoizedState=null,t}function y0(t,r,i){t.lanes|=r;var l=t.alternate;l!==null&&(l.lanes|=r),Xc(t.return,r,i)}function Cd(t,r,i,l,m){var y=t.memoizedState;y===null?t.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:l,tail:i,tailMode:m}:(y.isBackwards=r,y.rendering=null,y.renderingStartTime=0,y.last=l,y.tail=i,y.tailMode=m)}function v0(t,r,i){var l=r.pendingProps,m=l.revealOrder,y=l.tail;if(Rt(t,r,l.children,i),l=Et.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&&y0(t,i,r);else if(t.tag===19)y0(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(Et,l),m){case"forwards":for(i=r.child,m=null;i!==null;)t=i.alternate,t!==null&&vl(t)===null&&(m=i),i=i.sibling;i=m,i===null?(m=r.child,r.child=null):(m=i.sibling,i.sibling=null),Cd(r,!1,m,i,y);break;case"backwards":for(i=null,m=r.child,r.child=null;m!==null;){if(t=m.alternate,t!==null&&vl(t)===null){r.child=m;break}t=m.sibling,m.sibling=i,i=m,m=t}Cd(r,!0,i,null,y);break;case"together":Cd(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function lr(t,r,i){if(t!==null&&(r.dependencies=t.dependencies),Ur|=r.lanes,(i&r.childLanes)===0)if(t!==null){if(cs(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=tr(t,t.pendingProps),r.child=i,i.return=r;t.sibling!==null;)t=t.sibling,i=i.sibling=tr(t,t.pendingProps),i.return=r;i.sibling=null}return r.child}function Dd(t,r){return(t.lanes&r)!==0?!0:(t=t.dependencies,!!(t!==null&&nl(t)))}function VS(t,r,i){switch(r.tag){case 3:Se(r,r.stateNode.containerInfo),Nr(r,Tt,t.memoizedState.cache),ls();break;case 27:case 5:Ne(r);break;case 4:Se(r,r.stateNode.containerInfo);break;case 10:Nr(r,r.type,r.memoizedProps.value);break;case 13:var l=r.memoizedState;if(l!==null)return l.dehydrated!==null?(Cr(r),r.flags|=128,null):(i&r.child.childLanes)!==0?g0(t,r,i):(Cr(r),t=lr(t,r,i),t!==null?t.sibling:null);Cr(r);break;case 19:var m=(t.flags&128)!==0;if(l=(i&r.childLanes)!==0,l||(cs(t,r,i,!1),l=(i&r.childLanes)!==0),m){if(l)return v0(t,r,i);r.flags|=128}if(m=r.memoizedState,m!==null&&(m.rendering=null,m.tail=null,m.lastEffect=null),J(Et,Et.current),l)break;return null;case 22:case 23:return r.lanes=0,d0(t,r,i);case 24:Nr(r,Tt,t.memoizedState.cache)}return lr(t,r,i)}function x0(t,r,i){if(t!==null)if(t.memoizedProps!==r.pendingProps)Nt=!0;else{if(!Dd(t,i)&&(r.flags&128)===0)return Nt=!1,VS(t,r,i);Nt=(t.flags&131072)!==0}else Nt=!1,Xe&&(r.flags&1048576)!==0&&Xp(r,tl,r.index);switch(r.lanes=0,r.tag){case 16:e:{t=r.pendingProps;var l=r.elementType,m=l._init;if(l=m(l._payload),r.type=l,typeof l=="function")Hc(l)?(t=ga(l,t),r.tag=1,r=m0(null,r,l,t,i)):(r.tag=0,r=Ad(null,r,l,t,i));else{if(l!=null){if(m=l.$$typeof,m===G){r.tag=11,r=l0(null,r,l,t,i);break e}else if(m===z){r.tag=14,r=u0(null,r,l,t,i);break e}}throw r=E(l)||l,Error(s(306,r,""))}}return r;case 0:return Ad(t,r,r.type,r.pendingProps,i);case 1:return l=r.type,m=ga(l,r.pendingProps),m0(t,r,l,m,i);case 3:e:{if(Se(r,r.stateNode.containerInfo),t===null)throw Error(s(387));l=r.pendingProps;var y=r.memoizedState;m=y.element,nd(t,r),ys(r,l,null,i);var C=r.memoizedState;if(l=C.cache,Nr(r,Tt,l),l!==y.cache&&Zc(r,[Tt],i,!0),gs(),l=C.element,y.isDehydrated)if(y={element:l,isDehydrated:!1,cache:C.cache},r.updateQueue.baseState=y,r.memoizedState=y,r.flags&256){r=p0(t,r,l,i);break e}else if(l!==m){m=vn(Error(s(424)),r),us(m),r=p0(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(ft=Pn(t.firstChild),Ht=r,Xe=!0,ca=null,Hn=!0,i=$g(r,null,l,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(ls(),l===m){r=lr(t,r,i);break e}Rt(t,r,l,i)}r=r.child}return r;case 26:return wl(t,r),t===null?(i=jy(r.type,null,r.pendingProps,null))?r.memoizedState=i:Xe||(i=r.type,t=r.pendingProps,l=Pl(se.current).createElement(i),l[Pt]=r,l[Yt]=t,Dt(l,i,t),At(l),r.stateNode=l):r.memoizedState=jy(r.type,t.memoizedProps,r.pendingProps,t.memoizedState),null;case 27:return Ne(r),t===null&&Xe&&(l=r.stateNode=by(r.type,r.pendingProps,se.current),Ht=r,Hn=!0,m=ft,Hr(r.type)?(mf=m,ft=Pn(l.firstChild)):ft=m),Rt(t,r,r.pendingProps.children,i),wl(t,r),t===null&&(r.flags|=4194304),r.child;case 5:return t===null&&Xe&&((m=l=ft)&&(l=p3(l,r.type,r.pendingProps,Hn),l!==null?(r.stateNode=l,Ht=r,ft=Pn(l.firstChild),Hn=!1,m=!0):m=!1),m||da(r)),Ne(r),m=r.type,y=r.pendingProps,C=t!==null?t.memoizedProps:null,l=y.children,cf(m,y)?l=null:C!==null&&cf(m,C)&&(r.flags|=32),r.memoizedState!==null&&(m=ld(t,r,DS,null,null,i),Bs._currentValue=m),wl(t,r),Rt(t,r,l,i),r.child;case 6:return t===null&&Xe&&((t=i=ft)&&(i=g3(i,r.pendingProps,Hn),i!==null?(r.stateNode=i,Ht=r,ft=null,t=!0):t=!1),t||da(r)),null;case 13:return g0(t,r,i);case 4:return Se(r,r.stateNode.containerInfo),l=r.pendingProps,t===null?r.child=ci(r,null,l,i):Rt(t,r,l,i),r.child;case 11:return l0(t,r,r.type,r.pendingProps,i);case 7:return Rt(t,r,r.pendingProps,i),r.child;case 8:return Rt(t,r,r.pendingProps.children,i),r.child;case 12:return Rt(t,r,r.pendingProps.children,i),r.child;case 10:return l=r.pendingProps,Nr(r,r.type,l.value),Rt(t,r,l.children,i),r.child;case 9:return m=r.type._context,l=r.pendingProps.children,ha(r),m=zt(m),l=l(m),r.flags|=1,Rt(t,r,l,i),r.child;case 14:return u0(t,r,r.type,r.pendingProps,i);case 15:return c0(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=Sl(l,i),i.ref=r.ref,r.child=i,i.return=r,r=i):(i=tr(t.child,l),i.ref=r.ref,r.child=i,i.return=r,r=i),r;case 22:return d0(t,r,i);case 24:return ha(r),l=zt(Tt),t===null?(m=Jc(),m===null&&(m=rt,y=$c(),m.pooledCache=y,y.refCount++,y!==null&&(m.pooledCacheLanes|=i),m=y),r.memoizedState={parent:l,cache:m},td(r),Nr(r,Tt,m)):((t.lanes&i)!==0&&(nd(t,r),ys(r,null,null,i),gs()),m=t.memoizedState,y=r.memoizedState,m.parent!==l?(m={parent:l,cache:l},r.memoizedState=m,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=m),Nr(r,Tt,l)):(l=y.cache,Nr(r,Tt,l),l!==m.cache&&Zc(r,[Tt],i,!0))),Rt(t,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function ur(t){t.flags|=4}function b0(t,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!_y(r)){if(r=Sn.current,r!==null&&((Ke&4194048)===Ke?In!==null:(Ke&62914560)!==Ke&&(Ke&536870912)===0||r!==In))throw ms=ed,rg;t.flags|=8192}}function jl(t,r){r!==null&&(t.flags|=4),t.flags&16384&&(r=t.tag!==22?Uo():536870912,t.lanes|=r,mi|=r)}function Ts(t,r){if(!Xe)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 ct(t){var r=t.alternate!==null&&t.alternate.child===t.child,i=0,l=0;if(r)for(var m=t.child;m!==null;)i|=m.lanes|m.childLanes,l|=m.subtreeFlags&65011712,l|=m.flags&65011712,m.return=t,m=m.sibling;else for(m=t.child;m!==null;)i|=m.lanes|m.childLanes,l|=m.subtreeFlags,l|=m.flags,m.return=t,m=m.sibling;return t.subtreeFlags|=l,t.childLanes=i,r}function HS(t,r,i){var l=r.pendingProps;switch(Yc(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ct(r),null;case 1:return ct(r),null;case 3:return i=r.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),r.memoizedState.cache!==l&&(r.flags|=2048),ir(Tt),Te(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(t===null||t.child===null)&&(os(r)?ur(r):t===null||t.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Qp())),ct(r),null;case 26:return i=r.memoizedState,t===null?(ur(r),i!==null?(ct(r),b0(r,i)):(ct(r),r.flags&=-16777217)):i?i!==t.memoizedState?(ur(r),ct(r),b0(r,i)):(ct(r),r.flags&=-16777217):(t.memoizedProps!==l&&ur(r),ct(r),r.flags&=-16777217),null;case 27:Oe(r),i=se.current;var m=r.type;if(t!==null&&r.stateNode!=null)t.memoizedProps!==l&&ur(r);else{if(!l){if(r.stateNode===null)throw Error(s(166));return ct(r),null}t=Q.current,os(r)?Zp(r):(t=by(m,l,i),r.stateNode=t,ur(r))}return ct(r),null;case 5:if(Oe(r),i=r.type,t!==null&&r.stateNode!=null)t.memoizedProps!==l&&ur(r);else{if(!l){if(r.stateNode===null)throw Error(s(166));return ct(r),null}if(t=Q.current,os(r))Zp(r);else{switch(m=Pl(se.current),t){case 1:t=m.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:t=m.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":t=m.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":t=m.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":t=m.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?m.createElement("select",{is:l.is}):m.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?m.createElement(i,{is:l.is}):m.createElement(i)}}t[Pt]=r,t[Yt]=l;e:for(m=r.child;m!==null;){if(m.tag===5||m.tag===6)t.appendChild(m.stateNode);else if(m.tag!==4&&m.tag!==27&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===r)break e;for(;m.sibling===null;){if(m.return===null||m.return===r)break e;m=m.return}m.sibling.return=m.return,m=m.sibling}r.stateNode=t;e:switch(Dt(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&&ur(r)}}return ct(r),r.flags&=-16777217,null;case 6:if(t&&r.stateNode!=null)t.memoizedProps!==l&&ur(r);else{if(typeof l!="string"&&r.stateNode===null)throw Error(s(166));if(t=se.current,os(r)){if(t=r.stateNode,i=r.memoizedProps,l=null,m=Ht,m!==null)switch(m.tag){case 27:case 5:l=m.memoizedProps}t[Pt]=r,t=!!(t.nodeValue===i||l!==null&&l.suppressHydrationWarning===!0||hy(t.nodeValue,i)),t||da(r)}else t=Pl(t).createTextNode(l),t[Pt]=r,r.stateNode=t}return ct(r),null;case 13:if(l=r.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(m=os(r),l!==null&&l.dehydrated!==null){if(t===null){if(!m)throw Error(s(318));if(m=r.memoizedState,m=m!==null?m.dehydrated:null,!m)throw Error(s(317));m[Pt]=r}else ls(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ct(r),m=!1}else m=Qp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=m),m=!0;if(!m)return r.flags&256?(or(r),r):(or(r),null)}if(or(r),(r.flags&128)!==0)return r.lanes=i,r;if(i=l!==null,t=t!==null&&t.memoizedState!==null,i){l=r.child,m=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(m=l.alternate.memoizedState.cachePool.pool);var y=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(y=l.memoizedState.cachePool.pool),y!==m&&(l.flags|=2048)}return i!==t&&i&&(r.child.flags|=8192),jl(r,r.updateQueue),ct(r),null;case 4:return Te(),t===null&&af(r.stateNode.containerInfo),ct(r),null;case 10:return ir(r.type),ct(r),null;case 19:if(F(Et),m=r.memoizedState,m===null)return ct(r),null;if(l=(r.flags&128)!==0,y=m.rendering,y===null)if(l)Ts(m,!1);else{if(ht!==0||t!==null&&(t.flags&128)!==0)for(t=r.child;t!==null;){if(y=vl(t),y!==null){for(r.flags|=128,Ts(m,!1),t=y.updateQueue,r.updateQueue=t,jl(r,t),r.subtreeFlags=0,t=i,i=r.child;i!==null;)Wp(i,t),i=i.sibling;return J(Et,Et.current&1|2),r.child}t=t.sibling}m.tail!==null&&q()>Al&&(r.flags|=128,l=!0,Ts(m,!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,jl(r,t),Ts(m,!0),m.tail===null&&m.tailMode==="hidden"&&!y.alternate&&!Xe)return ct(r),null}else 2*q()-m.renderingStartTime>Al&&i!==536870912&&(r.flags|=128,l=!0,Ts(m,!1),r.lanes=4194304);m.isBackwards?(y.sibling=r.child,r.child=y):(t=m.last,t!==null?t.sibling=y:r.child=y,m.last=y)}return m.tail!==null?(r=m.tail,m.rendering=r,m.tail=r.sibling,m.renderingStartTime=q(),r.sibling=null,t=Et.current,J(Et,l?t&1|2:t&1),r):(ct(r),null);case 22:case 23:return or(r),sd(),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&&(ct(r),r.subtreeFlags&6&&(r.flags|=8192)):ct(r),i=r.updateQueue,i!==null&&jl(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&&F(ma),null;case 24:return i=null,t!==null&&(i=t.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),ir(Tt),ct(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function IS(t,r){switch(Yc(r),r.tag){case 1:return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 3:return ir(Tt),Te(),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(or(r),t=r.memoizedState,t!==null&&t.dehydrated!==null){if(r.alternate===null)throw Error(s(340));ls()}return t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 19:return F(Et),null;case 4:return Te(),null;case 10:return ir(r.type),null;case 22:case 23:return or(r),sd(),t!==null&&F(ma),t=r.flags,t&65536?(r.flags=t&-65537|128,r):null;case 24:return ir(Tt),null;case 25:return null;default:return null}}function w0(t,r){switch(Yc(r),r.tag){case 3:ir(Tt),Te();break;case 26:case 27:case 5:Oe(r);break;case 4:Te();break;case 13:or(r);break;case 19:F(Et);break;case 10:ir(r.type);break;case 22:case 23:or(r),sd(),t!==null&&F(ma);break;case 24:ir(Tt)}}function Es(t,r){try{var i=r.updateQueue,l=i!==null?i.lastEffect:null;if(l!==null){var m=l.next;i=m;do{if((i.tag&t)===t){l=void 0;var y=i.create,C=i.inst;l=y(),C.destroy=l}i=i.next}while(i!==m)}}catch(V){tt(r,r.return,V)}}function Mr(t,r,i){try{var l=r.updateQueue,m=l!==null?l.lastEffect:null;if(m!==null){var y=m.next;l=y;do{if((l.tag&t)===t){var C=l.inst,V=C.destroy;if(V!==void 0){C.destroy=void 0,m=r;var Z=i,le=V;try{le()}catch(ge){tt(m,Z,ge)}}}l=l.next}while(l!==y)}}catch(ge){tt(r,r.return,ge)}}function S0(t){var r=t.updateQueue;if(r!==null){var i=t.stateNode;try{ug(r,i)}catch(l){tt(t,t.return,l)}}}function j0(t,r,i){i.props=ga(t.type,t.memoizedProps),i.state=t.memoizedState;try{i.componentWillUnmount()}catch(l){tt(t,r,l)}}function As(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(m){tt(t,r,m)}}function qn(t,r){var i=t.ref,l=t.refCleanup;if(i!==null)if(typeof l=="function")try{l()}catch(m){tt(t,r,m)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(m){tt(t,r,m)}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(m){tt(t,t.return,m)}}function Md(t,r,i){try{var l=t.stateNode;c3(l,t.type,i,r),l[Yt]=r}catch(m){tt(t,t.return,m)}}function E0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&Hr(t.type)||t.tag===4}function Ld(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||E0(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&&Hr(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 Pd(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=Ll));else if(l!==4&&(l===27&&Hr(t.type)&&(i=t.stateNode,r=null),t=t.child,t!==null))for(Pd(t,r,i),t=t.sibling;t!==null;)Pd(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&&Hr(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 A0(t){var r=t.stateNode,i=t.memoizedProps;try{for(var l=t.type,m=r.attributes;m.length;)r.removeAttributeNode(m[0]);Dt(r,l,i),r[Pt]=t,r[Yt]=i}catch(y){tt(t,t.return,y)}}var cr=!1,xt=!1,zd=!1,N0=typeof WeakSet=="function"?WeakSet:Set,_t=null;function qS(t,r){if(t=t.containerInfo,lf=Hl,t=Up(t),Lc(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 m=l.anchorOffset,y=l.focusNode;l=l.focusOffset;try{i.nodeType,y.nodeType}catch{i=null;break e}var C=0,V=-1,Z=-1,le=0,ge=0,we=t,fe=null;t:for(;;){for(var he;we!==i||m!==0&&we.nodeType!==3||(V=C+m),we!==y||l!==0&&we.nodeType!==3||(Z=C+l),we.nodeType===3&&(C+=we.nodeValue.length),(he=we.firstChild)!==null;)fe=we,we=he;for(;;){if(we===t)break t;if(fe===i&&++le===m&&(V=C),fe===y&&++ge===l&&(Z=C),(he=we.nextSibling)!==null)break;we=fe,fe=we.parentNode}we=he}i=V===-1||Z===-1?null:{start:V,end:Z}}else i=null}i=i||{start:0,end:0}}else i=null;for(uf={focusedElem:t,selectionRange:i},Hl=!1,_t=r;_t!==null;)if(r=_t,t=r.child,(r.subtreeFlags&1024)!==0&&t!==null)t.return=r,_t=t;else for(;_t!==null;){switch(r=_t,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,m=y.memoizedProps,y=y.memoizedState,l=i.stateNode;try{var ze=ga(i.type,m,i.elementType===i.type);t=l.getSnapshotBeforeUpdate(ze,y),l.__reactInternalSnapshotBeforeUpdate=t}catch(Me){tt(i,i.return,Me)}}break;case 3:if((t&1024)!==0){if(t=r.stateNode.containerInfo,i=t.nodeType,i===9)ff(t);else if(i===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":ff(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,_t=t;break}_t=r.return}}function _0(t,r,i){var l=i.flags;switch(i.tag){case 0:case 11:case 15:Lr(t,i),l&4&&Es(5,i);break;case 1:if(Lr(t,i),l&4)if(t=i.stateNode,r===null)try{t.componentDidMount()}catch(C){tt(i,i.return,C)}else{var m=ga(i.type,r.memoizedProps);r=r.memoizedState;try{t.componentDidUpdate(m,r,t.__reactInternalSnapshotBeforeUpdate)}catch(C){tt(i,i.return,C)}}l&64&&S0(i),l&512&&As(i,i.return);break;case 3:if(Lr(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(C){tt(i,i.return,C)}}break;case 27:r===null&&l&4&&A0(i);case 26:case 5:Lr(t,i),r===null&&l&4&&T0(i),l&512&&As(i,i.return);break;case 12:Lr(t,i);break;case 13:Lr(t,i),l&4&&R0(t,i),l&64&&(t=i.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(i=JS.bind(null,i),y3(t,i))));break;case 22:if(l=i.memoizedState!==null||cr,!l){r=r!==null&&r.memoizedState!==null||xt,m=cr;var y=xt;cr=l,(xt=r)&&!y?Pr(t,i,(i.subtreeFlags&8772)!==0):Lr(t,i),cr=m,xt=y}break;case 30:break;default:Lr(t,i)}}function k0(t){var r=t.alternate;r!==null&&(t.alternate=null,k0(r)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(r=t.stateNode,r!==null&&gc(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 it=null,Xt=!1;function dr(t,r,i){for(i=i.child;i!==null;)O0(t,r,i),i=i.sibling}function O0(t,r,i){if(_e&&typeof _e.onCommitFiberUnmount=="function")try{_e.onCommitFiberUnmount(ve,i)}catch{}switch(i.tag){case 26:xt||qn(i,r),dr(t,r,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:xt||qn(i,r);var l=it,m=Xt;Hr(i.type)&&(it=i.stateNode,Xt=!1),dr(t,r,i),Ls(i.stateNode),it=l,Xt=m;break;case 5:xt||qn(i,r);case 6:if(l=it,m=Xt,it=null,dr(t,r,i),it=l,Xt=m,it!==null)if(Xt)try{(it.nodeType===9?it.body:it.nodeName==="HTML"?it.ownerDocument.body:it).removeChild(i.stateNode)}catch(y){tt(i,r,y)}else try{it.removeChild(i.stateNode)}catch(y){tt(i,r,y)}break;case 18:it!==null&&(Xt?(t=it,vy(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,i.stateNode),Is(t)):vy(it,i.stateNode));break;case 4:l=it,m=Xt,it=i.stateNode.containerInfo,Xt=!0,dr(t,r,i),it=l,Xt=m;break;case 0:case 11:case 14:case 15:xt||Mr(2,i,r),xt||Mr(4,i,r),dr(t,r,i);break;case 1:xt||(qn(i,r),l=i.stateNode,typeof l.componentWillUnmount=="function"&&j0(i,r,l)),dr(t,r,i);break;case 21:dr(t,r,i);break;case 22:xt=(l=xt)||i.memoizedState!==null,dr(t,r,i),xt=l;break;default:dr(t,r,i)}}function R0(t,r){if(r.memoizedState===null&&(t=r.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{Is(t)}catch(i){tt(r,r.return,i)}}function GS(t){switch(t.tag){case 13:case 19:var r=t.stateNode;return r===null&&(r=t.stateNode=new N0),r;case 22:return t=t.stateNode,r=t._retryCache,r===null&&(r=t._retryCache=new N0),r;default:throw Error(s(435,t.tag))}}function Ud(t,r){var i=GS(t);r.forEach(function(l){var m=e3.bind(null,t,l);i.has(l)||(i.add(l),l.then(m,m))})}function on(t,r){var i=r.deletions;if(i!==null)for(var l=0;l<i.length;l++){var m=i[l],y=t,C=r,V=C;e:for(;V!==null;){switch(V.tag){case 27:if(Hr(V.type)){it=V.stateNode,Xt=!1;break e}break;case 5:it=V.stateNode,Xt=!1;break e;case 3:case 4:it=V.stateNode.containerInfo,Xt=!0;break e}V=V.return}if(it===null)throw Error(s(160));O0(y,C,m),it=null,Xt=!1,y=m.alternate,y!==null&&(y.return=null),m.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)C0(r,t),r=r.sibling}var Ln=null;function C0(t,r){var i=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:on(r,t),ln(t),l&4&&(Mr(3,t,t.return),Es(3,t),Mr(5,t,t.return));break;case 1:on(r,t),ln(t),l&512&&(xt||i===null||qn(i,i.return)),l&64&&cr&&(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 m=Ln;if(on(r,t),ln(t),l&512&&(xt||i===null||qn(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,m=m.ownerDocument||m;t:switch(l){case"title":y=m.getElementsByTagName("title")[0],(!y||y[Zi]||y[Pt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=m.createElement(l),m.head.insertBefore(y,m.querySelector("head > title"))),Dt(y,l,i),y[Pt]=t,At(y),l=y;break e;case"link":var C=Ay("link","href",m).get(l+(i.href||""));if(C){for(var V=0;V<C.length;V++)if(y=C[V],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)){C.splice(V,1);break t}}y=m.createElement(l),Dt(y,l,i),m.head.appendChild(y);break;case"meta":if(C=Ay("meta","content",m).get(l+(i.content||""))){for(V=0;V<C.length;V++)if(y=C[V],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)){C.splice(V,1);break t}}y=m.createElement(l),Dt(y,l,i),m.head.appendChild(y);break;default:throw Error(s(468,l))}y[Pt]=t,At(y),l=y}t.stateNode=l}else Ny(m,t.type,t.stateNode);else t.stateNode=Ey(m,l,t.memoizedProps);else y!==l?(y===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):y.count--,l===null?Ny(m,t.type,t.stateNode):Ey(m,l,t.memoizedProps)):l===null&&t.stateNode!==null&&Md(t,t.memoizedProps,i.memoizedProps)}break;case 27:on(r,t),ln(t),l&512&&(xt||i===null||qn(i,i.return)),i!==null&&l&4&&Md(t,t.memoizedProps,i.memoizedProps);break;case 5:if(on(r,t),ln(t),l&512&&(xt||i===null||qn(i,i.return)),t.flags&32){m=t.stateNode;try{Ya(m,"")}catch(he){tt(t,t.return,he)}}l&4&&t.stateNode!=null&&(m=t.memoizedProps,Md(t,m,i!==null?i.memoizedProps:m)),l&1024&&(zd=!0);break;case 6:if(on(r,t),ln(t),l&4){if(t.stateNode===null)throw Error(s(162));l=t.memoizedProps,i=t.stateNode;try{i.nodeValue=l}catch(he){tt(t,t.return,he)}}break;case 3:if(Bl=null,m=Ln,Ln=zl(r.containerInfo),on(r,t),Ln=m,ln(t),l&4&&i!==null&&i.memoizedState.isDehydrated)try{Is(r.containerInfo)}catch(he){tt(t,t.return,he)}zd&&(zd=!1,D0(t));break;case 4:l=Ln,Ln=zl(t.stateNode.containerInfo),on(r,t),ln(t),Ln=l;break;case 12:on(r,t),ln(t);break;case 13:on(r,t),ln(t),t.child.flags&8192&&t.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(qd=q()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Ud(t,l)));break;case 22:m=t.memoizedState!==null;var Z=i!==null&&i.memoizedState!==null,le=cr,ge=xt;if(cr=le||m,xt=ge||Z,on(r,t),xt=ge,cr=le,ln(t),l&8192)e:for(r=t.stateNode,r._visibility=m?r._visibility&-2:r._visibility|1,m&&(i===null||Z||cr||xt||ya(t)),i=null,r=t;;){if(r.tag===5||r.tag===26){if(i===null){Z=i=r;try{if(y=Z.stateNode,m)C=y.style,typeof C.setProperty=="function"?C.setProperty("display","none","important"):C.display="none";else{V=Z.stateNode;var we=Z.memoizedProps.style,fe=we!=null&&we.hasOwnProperty("display")?we.display:null;V.style.display=fe==null||typeof fe=="boolean"?"":(""+fe).trim()}}catch(he){tt(Z,Z.return,he)}}}else if(r.tag===6){if(i===null){Z=r;try{Z.stateNode.nodeValue=m?"":Z.memoizedProps}catch(he){tt(Z,Z.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,Ud(t,i))));break;case 19:on(r,t),ln(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Ud(t,l)));break;case 30:break;case 21:break;default:on(r,t),ln(t)}}function ln(t){var r=t.flags;if(r&2){try{for(var i,l=t.return;l!==null;){if(E0(l)){i=l;break}l=l.return}if(i==null)throw Error(s(160));switch(i.tag){case 27:var m=i.stateNode,y=Ld(t);Tl(t,y,m);break;case 5:var C=i.stateNode;i.flags&32&&(Ya(C,""),i.flags&=-33);var V=Ld(t);Tl(t,V,C);break;case 3:case 4:var Z=i.stateNode.containerInfo,le=Ld(t);Pd(t,le,Z);break;default:throw Error(s(161))}}catch(ge){tt(t,t.return,ge)}t.flags&=-3}r&4096&&(t.flags&=-4097)}function D0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var r=t;D0(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),t=t.sibling}}function Lr(t,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)_0(t,r.alternate,r),r=r.sibling}function ya(t){for(t=t.child;t!==null;){var r=t;switch(r.tag){case 0:case 11:case 14:case 15:Mr(4,r,r.return),ya(r);break;case 1:qn(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&j0(r,r.return,i),ya(r);break;case 27:Ls(r.stateNode);case 26:case 5:qn(r,r.return),ya(r);break;case 22:r.memoizedState===null&&ya(r);break;case 30:ya(r);break;default:ya(r)}t=t.sibling}}function Pr(t,r,i){for(i=i&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var l=r.alternate,m=t,y=r,C=y.flags;switch(y.tag){case 0:case 11:case 15:Pr(m,y,i),Es(4,y);break;case 1:if(Pr(m,y,i),l=y,m=l.stateNode,typeof m.componentDidMount=="function")try{m.componentDidMount()}catch(le){tt(l,l.return,le)}if(l=y,m=l.updateQueue,m!==null){var V=l.stateNode;try{var Z=m.shared.hiddenCallbacks;if(Z!==null)for(m.shared.hiddenCallbacks=null,m=0;m<Z.length;m++)lg(Z[m],V)}catch(le){tt(l,l.return,le)}}i&&C&64&&S0(y),As(y,y.return);break;case 27:A0(y);case 26:case 5:Pr(m,y,i),i&&l===null&&C&4&&T0(y),As(y,y.return);break;case 12:Pr(m,y,i);break;case 13:Pr(m,y,i),i&&C&4&&R0(m,y);break;case 22:y.memoizedState===null&&Pr(m,y,i),As(y,y.return);break;case 30:break;default:Pr(m,y,i)}r=r.sibling}}function Bd(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&&ds(i))}function Fd(t,r){t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&ds(t))}function Gn(t,r,i,l){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)M0(t,r,i,l),r=r.sibling}function M0(t,r,i,l){var m=r.flags;switch(r.tag){case 0:case 11:case 15:Gn(t,r,i,l),m&2048&&Es(9,r);break;case 1:Gn(t,r,i,l);break;case 3:Gn(t,r,i,l),m&2048&&(t=null,r.alternate!==null&&(t=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==t&&(r.refCount++,t!=null&&ds(t)));break;case 12:if(m&2048){Gn(t,r,i,l),t=r.stateNode;try{var y=r.memoizedProps,C=y.id,V=y.onPostCommit;typeof V=="function"&&V(C,r.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(Z){tt(r,r.return,Z)}}else Gn(t,r,i,l);break;case 13:Gn(t,r,i,l);break;case 23:break;case 22:y=r.stateNode,C=r.alternate,r.memoizedState!==null?y._visibility&2?Gn(t,r,i,l):Ns(t,r):y._visibility&2?Gn(t,r,i,l):(y._visibility|=2,di(t,r,i,l,(r.subtreeFlags&10256)!==0)),m&2048&&Bd(C,r);break;case 24:Gn(t,r,i,l),m&2048&&Fd(r.alternate,r);break;default:Gn(t,r,i,l)}}function di(t,r,i,l,m){for(m=m&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var y=t,C=r,V=i,Z=l,le=C.flags;switch(C.tag){case 0:case 11:case 15:di(y,C,V,Z,m),Es(8,C);break;case 23:break;case 22:var ge=C.stateNode;C.memoizedState!==null?ge._visibility&2?di(y,C,V,Z,m):Ns(y,C):(ge._visibility|=2,di(y,C,V,Z,m)),m&&le&2048&&Bd(C.alternate,C);break;case 24:di(y,C,V,Z,m),m&&le&2048&&Fd(C.alternate,C);break;default:di(y,C,V,Z,m)}r=r.sibling}}function Ns(t,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var i=t,l=r,m=l.flags;switch(l.tag){case 22:Ns(i,l),m&2048&&Bd(l.alternate,l);break;case 24:Ns(i,l),m&2048&&Fd(l.alternate,l);break;default:Ns(i,l)}r=r.sibling}}var _s=8192;function fi(t){if(t.subtreeFlags&_s)for(t=t.child;t!==null;)L0(t),t=t.sibling}function L0(t){switch(t.tag){case 26:fi(t),t.flags&_s&&t.memoizedState!==null&&O3(Ln,t.memoizedState,t.memoizedProps);break;case 5:fi(t);break;case 3:case 4:var r=Ln;Ln=zl(t.stateNode.containerInfo),fi(t),Ln=r;break;case 22:t.memoizedState===null&&(r=t.alternate,r!==null&&r.memoizedState!==null?(r=_s,_s=16777216,fi(t),_s=r):fi(t));break;default:fi(t)}}function P0(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 ks(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];_t=l,U0(l,t)}P0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)z0(t),t=t.sibling}function z0(t){switch(t.tag){case 0:case 11:case 15:ks(t),t.flags&2048&&Mr(9,t,t.return);break;case 3:ks(t);break;case 12:ks(t);break;case 22:var r=t.stateNode;t.memoizedState!==null&&r._visibility&2&&(t.return===null||t.return.tag!==13)?(r._visibility&=-3,El(t)):ks(t);break;default:ks(t)}}function El(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];_t=l,U0(l,t)}P0(t)}for(t=t.child;t!==null;){switch(r=t,r.tag){case 0:case 11:case 15:Mr(8,r,r.return),El(r);break;case 22:i=r.stateNode,i._visibility&2&&(i._visibility&=-3,El(r));break;default:El(r)}t=t.sibling}}function U0(t,r){for(;_t!==null;){var i=_t;switch(i.tag){case 0:case 11:case 15:Mr(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:ds(i.memoizedState.cache)}if(l=i.child,l!==null)l.return=i,_t=l;else e:for(i=t;_t!==null;){l=_t;var m=l.sibling,y=l.return;if(k0(l),l===i){_t=null;break e}if(m!==null){m.return=y,_t=m;break e}_t=y}}}var YS={getCacheForType:function(t){var r=zt(Tt),i=r.data.get(t);return i===void 0&&(i=t(),r.data.set(t,i)),i}},KS=typeof WeakMap=="function"?WeakMap:Map,Ze=0,rt=null,Ge=null,Ke=0,$e=0,un=null,zr=!1,hi=!1,Vd=!1,fr=0,ht=0,Ur=0,va=0,Hd=0,jn=0,mi=0,Os=null,Zt=null,Id=!1,qd=0,Al=1/0,Nl=null,Br=null,Ct=0,Fr=null,pi=null,gi=0,Gd=0,Yd=null,B0=null,Rs=0,Kd=null;function cn(){if((Ze&2)!==0&&Ke!==0)return Ke&-Ke;if(W.T!==null){var t=ri;return t!==0?t:ef()}return tp()}function F0(){jn===0&&(jn=(Ke&536870912)===0||Xe?zo():536870912);var t=Sn.current;return t!==null&&(t.flags|=32),jn}function dn(t,r,i){(t===rt&&($e===2||$e===9)||t.cancelPendingCommit!==null)&&(yi(t,0),Vr(t,Ke,jn,!1)),Dn(t,i),((Ze&2)===0||t!==rt)&&(t===rt&&((Ze&2)===0&&(va|=i),ht===4&&Vr(t,Ke,jn,!1)),Yn(t))}function V0(t,r,i){if((Ze&6)!==0)throw Error(s(327));var l=!i&&(r&124)===0&&(r&t.expiredLanes)===0||Tr(t,r),m=l?ZS(t,r):Zd(t,r,!0),y=l;do{if(m===0){hi&&!l&&Vr(t,r,0,!1);break}else{if(i=t.current.alternate,y&&!WS(i)){m=Zd(t,r,!1),y=!1;continue}if(m===2){if(y=r,t.errorRecoveryDisabledLanes&y)var C=0;else C=t.pendingLanes&-536870913,C=C!==0?C:C&536870912?536870912:0;if(C!==0){r=C;e:{var V=t;m=Os;var Z=V.current.memoizedState.isDehydrated;if(Z&&(yi(V,C).flags|=256),C=Zd(V,C,!1),C!==2){if(Vd&&!Z){V.errorRecoveryDisabledLanes|=y,va|=y,m=4;break e}y=Zt,Zt=m,y!==null&&(Zt===null?Zt=y:Zt.push.apply(Zt,y))}m=C}if(y=!1,m!==2)continue}}if(m===1){yi(t,0),Vr(t,r,0,!0);break}e:{switch(l=t,y=m,y){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:Vr(l,r,jn,!zr);break e;case 2:Zt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(m=qd+300-q(),10<m)){if(Vr(l,r,jn,!zr),Gt(l,0,!0)!==0)break e;l.timeoutHandle=gy(H0.bind(null,l,i,Zt,Nl,Id,r,jn,va,mi,zr,y,2,-0,0),m);break e}H0(l,i,Zt,Nl,Id,r,jn,va,mi,zr,y,0,-0,0)}}break}while(!0);Yn(t)}function H0(t,r,i,l,m,y,C,V,Z,le,ge,we,fe,he){if(t.timeoutHandle=-1,we=r.subtreeFlags,(we&8192||(we&16785408)===16785408)&&(Us={stylesheets:null,count:0,unsuspend:k3},L0(r),we=R3(),we!==null)){t.cancelPendingCommit=we(X0.bind(null,t,r,y,i,l,m,C,V,Z,ge,1,fe,he)),Vr(t,y,C,!le);return}X0(t,r,y,i,l,m,C,V,Z)}function WS(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 m=i[l],y=m.getSnapshot;m=m.value;try{if(!an(y(),m))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 Vr(t,r,i,l){r&=~Hd,r&=~va,t.suspendedLanes|=r,t.pingedLanes&=~r,l&&(t.warmLanes|=r),l=t.expirationTimes;for(var m=r;0<m;){var y=31-qe(m),C=1<<y;l[y]=-1,m&=~C}i!==0&&Jm(t,i,r)}function _l(){return(Ze&6)===0?(Cs(0),!1):!0}function Wd(){if(Ge!==null){if($e===0)var t=Ge.return;else t=Ge,ar=fa=null,dd(t),ui=null,Ss=0,t=Ge;for(;t!==null;)w0(t.alternate,t),t=t.return;Ge=null}}function yi(t,r){var i=t.timeoutHandle;i!==-1&&(t.timeoutHandle=-1,f3(i)),i=t.cancelPendingCommit,i!==null&&(t.cancelPendingCommit=null,i()),Wd(),rt=t,Ge=i=tr(t.current,null),Ke=r,$e=0,un=null,zr=!1,hi=Tr(t,r),Vd=!1,mi=jn=Hd=va=Ur=ht=0,Zt=Os=null,Id=!1,(r&8)!==0&&(r|=r&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=r;0<l;){var m=31-qe(l),y=1<<m;r|=t[m],l&=~y}return fr=r,Zo(),i}function I0(t,r){He=null,W.H=pl,r===hs||r===il?(r=sg(),$e=3):r===rg?(r=sg(),$e=4):$e=r===o0?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,un=r,Ge===null&&(ht=1,bl(t,vn(r,t.current)))}function q0(){var t=W.H;return W.H=pl,t===null?pl:t}function G0(){var t=W.A;return W.A=YS,t}function Xd(){ht=4,zr||(Ke&4194048)!==Ke&&Sn.current!==null||(hi=!0),(Ur&134217727)===0&&(va&134217727)===0||rt===null||Vr(rt,Ke,jn,!1)}function Zd(t,r,i){var l=Ze;Ze|=2;var m=q0(),y=G0();(rt!==t||Ke!==r)&&(Nl=null,yi(t,r)),r=!1;var C=ht;e:do try{if($e!==0&&Ge!==null){var V=Ge,Z=un;switch($e){case 8:Wd(),C=6;break e;case 3:case 2:case 9:case 6:Sn.current===null&&(r=!0);var le=$e;if($e=0,un=null,vi(t,V,Z,le),i&&hi){C=0;break e}break;default:le=$e,$e=0,un=null,vi(t,V,Z,le)}}XS(),C=ht;break}catch(ge){I0(t,ge)}while(!0);return r&&t.shellSuspendCounter++,ar=fa=null,Ze=l,W.H=m,W.A=y,Ge===null&&(rt=null,Ke=0,Zo()),C}function XS(){for(;Ge!==null;)Y0(Ge)}function ZS(t,r){var i=Ze;Ze|=2;var l=q0(),m=G0();rt!==t||Ke!==r?(Nl=null,Al=q()+500,yi(t,r)):hi=Tr(t,r);e:do try{if($e!==0&&Ge!==null){r=Ge;var y=un;t:switch($e){case 1:$e=0,un=null,vi(t,r,y,1);break;case 2:case 9:if(ag(y)){$e=0,un=null,K0(r);break}r=function(){$e!==2&&$e!==9||rt!==t||($e=7),Yn(t)},y.then(r,r);break e;case 3:$e=7;break e;case 4:$e=5;break e;case 7:ag(y)?($e=0,un=null,K0(r)):($e=0,un=null,vi(t,r,y,7));break;case 5:var C=null;switch(Ge.tag){case 26:C=Ge.memoizedState;case 5:case 27:var V=Ge;if(!C||_y(C)){$e=0,un=null;var Z=V.sibling;if(Z!==null)Ge=Z;else{var le=V.return;le!==null?(Ge=le,kl(le)):Ge=null}break t}}$e=0,un=null,vi(t,r,y,5);break;case 6:$e=0,un=null,vi(t,r,y,6);break;case 8:Wd(),ht=6;break e;default:throw Error(s(462))}}$S();break}catch(ge){I0(t,ge)}while(!0);return ar=fa=null,W.H=l,W.A=m,Ze=i,Ge!==null?0:(rt=null,Ke=0,Zo(),ht)}function $S(){for(;Ge!==null&&!de();)Y0(Ge)}function Y0(t){var r=x0(t.alternate,t,fr);t.memoizedProps=t.pendingProps,r===null?kl(t):Ge=r}function K0(t){var r=t,i=r.alternate;switch(r.tag){case 15:case 0:r=h0(i,r,r.pendingProps,r.type,void 0,Ke);break;case 11:r=h0(i,r,r.pendingProps,r.type.render,r.ref,Ke);break;case 5:dd(r);default:w0(i,r),r=Ge=Wp(r,fr),r=x0(i,r,fr)}t.memoizedProps=t.pendingProps,r===null?kl(t):Ge=r}function vi(t,r,i,l){ar=fa=null,dd(r),ui=null,Ss=0;var m=r.return;try{if(FS(t,m,r,i,Ke)){ht=1,bl(t,vn(i,t.current)),Ge=null;return}}catch(y){if(m!==null)throw Ge=m,y;ht=1,bl(t,vn(i,t.current)),Ge=null;return}r.flags&32768?(Xe||l===1?t=!0:hi||(Ke&536870912)!==0?t=!1:(zr=t=!0,(l===2||l===9||l===3||l===6)&&(l=Sn.current,l!==null&&l.tag===13&&(l.flags|=16384))),W0(r,t)):kl(r)}function kl(t){var r=t;do{if((r.flags&32768)!==0){W0(r,zr);return}t=r.return;var i=HS(r.alternate,r,fr);if(i!==null){Ge=i;return}if(r=r.sibling,r!==null){Ge=r;return}Ge=r=t}while(r!==null);ht===0&&(ht=5)}function W0(t,r){do{var i=IS(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);ht=6,Ge=null}function X0(t,r,i,l,m,y,C,V,Z){t.cancelPendingCommit=null;do Ol();while(Ct!==0);if((Ze&6)!==0)throw Error(s(327));if(r!==null){if(r===t.current)throw Error(s(177));if(y=r.lanes|r.childLanes,y|=Fc,Ua(t,i,y,C,V,Z),t===rt&&(Ge=rt=null,Ke=0),pi=r,Fr=t,gi=i,Gd=y,Yd=m,B0=l,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,t3(ye,function(){return ey(),null})):(t.callbackNode=null,t.callbackPriority=0),l=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||l){l=W.T,W.T=null,m=w.p,w.p=2,C=Ze,Ze|=4;try{qS(t,r,i)}finally{Ze=C,w.p=m,W.T=l}}Ct=1,Z0(),$0(),Q0()}}function Z0(){if(Ct===1){Ct=0;var t=Fr,r=pi,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 m=Ze;Ze|=4;try{C0(r,t);var y=uf,C=Up(t.containerInfo),V=y.focusedElem,Z=y.selectionRange;if(C!==V&&V&&V.ownerDocument&&zp(V.ownerDocument.documentElement,V)){if(Z!==null&&Lc(V)){var le=Z.start,ge=Z.end;if(ge===void 0&&(ge=le),"selectionStart"in V)V.selectionStart=le,V.selectionEnd=Math.min(ge,V.value.length);else{var we=V.ownerDocument||document,fe=we&&we.defaultView||window;if(fe.getSelection){var he=fe.getSelection(),ze=V.textContent.length,Me=Math.min(Z.start,ze),et=Z.end===void 0?Me:Math.min(Z.end,ze);!he.extend&&Me>et&&(C=et,et=Me,Me=C);var ae=Pp(V,Me),ne=Pp(V,et);if(ae&&ne&&(he.rangeCount!==1||he.anchorNode!==ae.node||he.anchorOffset!==ae.offset||he.focusNode!==ne.node||he.focusOffset!==ne.offset)){var ie=we.createRange();ie.setStart(ae.node,ae.offset),he.removeAllRanges(),Me>et?(he.addRange(ie),he.extend(ne.node,ne.offset)):(ie.setEnd(ne.node,ne.offset),he.addRange(ie))}}}}for(we=[],he=V;he=he.parentNode;)he.nodeType===1&&we.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof V.focus=="function"&&V.focus(),V=0;V<we.length;V++){var xe=we[V];xe.element.scrollLeft=xe.left,xe.element.scrollTop=xe.top}}Hl=!!lf,uf=lf=null}finally{Ze=m,w.p=l,W.T=i}}t.current=r,Ct=2}}function $0(){if(Ct===2){Ct=0;var t=Fr,r=pi,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 m=Ze;Ze|=4;try{_0(t,r.alternate,r)}finally{Ze=m,w.p=l,W.T=i}}Ct=3}}function Q0(){if(Ct===4||Ct===3){Ct=0,ue();var t=Fr,r=pi,i=gi,l=B0;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Ct=5:(Ct=0,pi=Fr=null,J0(t,t.pendingLanes));var m=t.pendingLanes;if(m===0&&(Br=null),mc(i),r=r.stateNode,_e&&typeof _e.onCommitFiberRoot=="function")try{_e.onCommitFiberRoot(ve,r,void 0,(r.current.flags&128)===128)}catch{}if(l!==null){r=W.T,m=w.p,w.p=2,W.T=null;try{for(var y=t.onRecoverableError,C=0;C<l.length;C++){var V=l[C];y(V.value,{componentStack:V.stack})}}finally{W.T=r,w.p=m}}(gi&3)!==0&&Ol(),Yn(t),m=t.pendingLanes,(i&4194090)!==0&&(m&42)!==0?t===Kd?Rs++:(Rs=0,Kd=t):Rs=0,Cs(0)}}function J0(t,r){(t.pooledCacheLanes&=r)===0&&(r=t.pooledCache,r!=null&&(t.pooledCache=null,ds(r)))}function Ol(t){return Z0(),$0(),Q0(),ey()}function ey(){if(Ct!==5)return!1;var t=Fr,r=Gd;Gd=0;var i=mc(gi),l=W.T,m=w.p;try{w.p=32>i?32:i,W.T=null,i=Yd,Yd=null;var y=Fr,C=gi;if(Ct=0,pi=Fr=null,gi=0,(Ze&6)!==0)throw Error(s(331));var V=Ze;if(Ze|=4,z0(y.current),M0(y,y.current,C,i),Ze=V,Cs(0,!1),_e&&typeof _e.onPostCommitFiberRoot=="function")try{_e.onPostCommitFiberRoot(ve,y)}catch{}return!0}finally{w.p=m,W.T=l,J0(t,r)}}function ty(t,r,i){r=vn(i,r),r=Ed(t.stateNode,r,2),t=Or(t,r,2),t!==null&&(Dn(t,2),Yn(t))}function tt(t,r,i){if(t.tag===3)ty(t,t,i);else for(;r!==null;){if(r.tag===3){ty(r,t,i);break}else if(r.tag===1){var l=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Br===null||!Br.has(l))){t=vn(i,t),i=i0(2),l=Or(r,i,2),l!==null&&(s0(i,l,r,t),Dn(l,2),Yn(l));break}}r=r.return}}function $d(t,r,i){var l=t.pingCache;if(l===null){l=t.pingCache=new KS;var m=new Set;l.set(r,m)}else m=l.get(r),m===void 0&&(m=new Set,l.set(r,m));m.has(i)||(Vd=!0,m.add(i),t=QS.bind(null,t,r,i),r.then(t,t))}function QS(t,r,i){var l=t.pingCache;l!==null&&l.delete(r),t.pingedLanes|=t.suspendedLanes&i,t.warmLanes&=~i,rt===t&&(Ke&i)===i&&(ht===4||ht===3&&(Ke&62914560)===Ke&&300>q()-qd?(Ze&2)===0&&yi(t,0):Hd|=i,mi===Ke&&(mi=0)),Yn(t)}function ny(t,r){r===0&&(r=Uo()),t=Ja(t,r),t!==null&&(Dn(t,r),Yn(t))}function JS(t){var r=t.memoizedState,i=0;r!==null&&(i=r.retryLane),ny(t,i)}function e3(t,r){var i=0;switch(t.tag){case 13:var l=t.stateNode,m=t.memoizedState;m!==null&&(i=m.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),ny(t,i)}function t3(t,r){return Re(t,r)}var Rl=null,xi=null,Qd=!1,Cl=!1,Jd=!1,xa=0;function Yn(t){t!==xi&&t.next===null&&(xi===null?Rl=xi=t:xi=xi.next=t),Cl=!0,Qd||(Qd=!0,r3())}function Cs(t,r){if(!Jd&&Cl){Jd=!0;do for(var i=!1,l=Rl;l!==null;){if(t!==0){var m=l.pendingLanes;if(m===0)var y=0;else{var C=l.suspendedLanes,V=l.pingedLanes;y=(1<<31-qe(42|t)+1)-1,y&=m&~(C&~V),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(i=!0,sy(l,y))}else y=Ke,y=Gt(l,l===rt?y:0,l.cancelPendingCommit!==null||l.timeoutHandle!==-1),(y&3)===0||Tr(l,y)||(i=!0,sy(l,y));l=l.next}while(i);Jd=!1}}function n3(){ry()}function ry(){Cl=Qd=!1;var t=0;xa!==0&&(d3()&&(t=xa),xa=0);for(var r=q(),i=null,l=Rl;l!==null;){var m=l.next,y=ay(l,r);y===0?(l.next=null,i===null?Rl=m:i.next=m,m===null&&(xi=i)):(i=l,(t!==0||(y&3)!==0)&&(Cl=!0)),l=m}Cs(t)}function ay(t,r){for(var i=t.suspendedLanes,l=t.pingedLanes,m=t.expirationTimes,y=t.pendingLanes&-62914561;0<y;){var C=31-qe(y),V=1<<C,Z=m[C];Z===-1?((V&i)===0||(V&l)!==0)&&(m[C]=fc(V,r)):Z<=r&&(t.expiredLanes|=V),y&=~V}if(r=rt,i=Ke,i=Gt(t,t===r?i:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l=t.callbackNode,i===0||t===r&&($e===2||$e===9)||t.cancelPendingCommit!==null)return l!==null&&l!==null&&k(l),t.callbackNode=null,t.callbackPriority=0;if((i&3)===0||Tr(t,i)){if(r=i&-i,r===t.callbackPriority)return r;switch(l!==null&&k(l),mc(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(Ct!==0&&Ct!==5)return t.callbackNode=null,t.callbackPriority=0,null;var i=t.callbackNode;if(Ol()&&t.callbackNode!==i)return null;var l=Ke;return l=Gt(t,t===rt?l:0,t.cancelPendingCommit!==null||t.timeoutHandle!==-1),l===0?null:(V0(t,l,r),ay(t,q()),t.callbackNode!=null&&t.callbackNode===i?iy.bind(null,t):null)}function sy(t,r){if(Ol())return null;V0(t,r,!0)}function r3(){h3(function(){(Ze&6)!==0?Re(ee,n3):ry()})}function ef(){return xa===0&&(xa=zo()),xa}function oy(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Io(""+t)}function ly(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 a3(t,r,i,l,m){if(r==="submit"&&i&&i.stateNode===m){var y=oy((m[Yt]||null).action),C=l.submitter;C&&(r=(r=C[Yt]||null)?oy(r.formAction):C.getAttribute("formAction"),r!==null&&(y=r,C=null));var V=new Ko("action","action",null,l,m);t.push({event:V,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(xa!==0){var Z=C?ly(m,C):new FormData(m);bd(i,{pending:!0,data:Z,method:m.method,action:y},null,Z)}}else typeof y=="function"&&(V.preventDefault(),Z=C?ly(m,C):new FormData(m),bd(i,{pending:!0,data:Z,method:m.method,action:y},y,Z))},currentTarget:m}]})}}for(var tf=0;tf<Bc.length;tf++){var nf=Bc[tf],i3=nf.toLowerCase(),s3=nf[0].toUpperCase()+nf.slice(1);Mn(i3,"on"+s3)}Mn(Vp,"onAnimationEnd"),Mn(Hp,"onAnimationIteration"),Mn(Ip,"onAnimationStart"),Mn("dblclick","onDoubleClick"),Mn("focusin","onFocus"),Mn("focusout","onBlur"),Mn(jS,"onTransitionRun"),Mn(TS,"onTransitionStart"),Mn(ES,"onTransitionCancel"),Mn(qp,"onTransitionEnd"),Ia("onMouseEnter",["mouseout","mouseover"]),Ia("onMouseLeave",["mouseout","mouseover"]),Ia("onPointerEnter",["pointerout","pointerover"]),Ia("onPointerLeave",["pointerout","pointerover"]),ra("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ra("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ra("onBeforeInput",["compositionend","keypress","textInput","paste"]),ra("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ra("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ra("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ds="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(" "),o3=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ds));function uy(t,r){r=(r&4)!==0;for(var i=0;i<t.length;i++){var l=t[i],m=l.event;l=l.listeners;e:{var y=void 0;if(r)for(var C=l.length-1;0<=C;C--){var V=l[C],Z=V.instance,le=V.currentTarget;if(V=V.listener,Z!==y&&m.isPropagationStopped())break e;y=V,m.currentTarget=le;try{y(m)}catch(ge){xl(ge)}m.currentTarget=null,y=Z}else for(C=0;C<l.length;C++){if(V=l[C],Z=V.instance,le=V.currentTarget,V=V.listener,Z!==y&&m.isPropagationStopped())break e;y=V,m.currentTarget=le;try{y(m)}catch(ge){xl(ge)}m.currentTarget=null,y=Z}}}}function Ye(t,r){var i=r[pc];i===void 0&&(i=r[pc]=new Set);var l=t+"__bubble";i.has(l)||(cy(r,t,2,!1),i.add(l))}function rf(t,r,i){var l=0;r&&(l|=4),cy(i,t,l,r)}var Dl="_reactListening"+Math.random().toString(36).slice(2);function af(t){if(!t[Dl]){t[Dl]=!0,rp.forEach(function(i){i!=="selectionchange"&&(o3.has(i)||rf(i,!1,t),rf(i,!0,t))});var r=t.nodeType===9?t:t.ownerDocument;r===null||r[Dl]||(r[Dl]=!0,rf("selectionchange",!1,r))}}function cy(t,r,i,l){switch(My(r)){case 2:var m=M3;break;case 8:m=L3;break;default:m=xf}i=m.bind(null,r,i,t),m=void 0,!Ac||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(m=!0),l?m!==void 0?t.addEventListener(r,i,{capture:!0,passive:m}):t.addEventListener(r,i,!0):m!==void 0?t.addEventListener(r,i,{passive:m}):t.addEventListener(r,i,!1)}function sf(t,r,i,l,m){var y=l;if((r&1)===0&&(r&2)===0&&l!==null)e:for(;;){if(l===null)return;var C=l.tag;if(C===3||C===4){var V=l.stateNode.containerInfo;if(V===m)break;if(C===4)for(C=l.return;C!==null;){var Z=C.tag;if((Z===3||Z===4)&&C.stateNode.containerInfo===m)return;C=C.return}for(;V!==null;){if(C=Fa(V),C===null)return;if(Z=C.tag,Z===5||Z===6||Z===26||Z===27){l=y=C;continue e}V=V.parentNode}}l=l.return}yp(function(){var le=y,ge=Tc(i),we=[];e:{var fe=Gp.get(t);if(fe!==void 0){var he=Ko,ze=t;switch(t){case"keypress":if(Go(i)===0)break e;case"keydown":case"keyup":he=tS;break;case"focusin":ze="focus",he=Oc;break;case"focusout":ze="blur",he=Oc;break;case"beforeblur":case"afterblur":he=Oc;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=bp;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=I2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=aS;break;case Vp:case Hp:case Ip:he=Y2;break;case qp:he=sS;break;case"scroll":case"scrollend":he=V2;break;case"wheel":he=lS;break;case"copy":case"cut":case"paste":he=W2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=Sp;break;case"toggle":case"beforetoggle":he=cS}var Me=(r&4)!==0,et=!Me&&(t==="scroll"||t==="scrollend"),ae=Me?fe!==null?fe+"Capture":null:fe;Me=[];for(var ne=le,ie;ne!==null;){var xe=ne;if(ie=xe.stateNode,xe=xe.tag,xe!==5&&xe!==26&&xe!==27||ie===null||ae===null||(xe=Qi(ne,ae),xe!=null&&Me.push(Ms(ne,xe,ie))),et)break;ne=ne.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!==jc&&(ze=i.relatedTarget||i.fromElement)&&(Fa(ze)||ze[Ba]))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?Fa(ze):null,ze!==null&&(et=u(ze),Me=ze.tag,ze!==et||Me!==5&&Me!==27&&Me!==6)&&(ze=null)):(he=null,ze=le),he!==ze)){if(Me=bp,xe="onMouseLeave",ae="onMouseEnter",ne="mouse",(t==="pointerout"||t==="pointerover")&&(Me=Sp,xe="onPointerLeave",ae="onPointerEnter",ne="pointer"),et=he==null?fe:$i(he),ie=ze==null?fe:$i(ze),fe=new Me(xe,ne+"leave",he,i,ge),fe.target=et,fe.relatedTarget=ie,xe=null,Fa(ge)===le&&(Me=new Me(ae,ne+"enter",ze,i,ge),Me.target=ie,Me.relatedTarget=et,xe=Me),et=xe,he&&ze)t:{for(Me=he,ae=ze,ne=0,ie=Me;ie;ie=bi(ie))ne++;for(ie=0,xe=ae;xe;xe=bi(xe))ie++;for(;0<ne-ie;)Me=bi(Me),ne--;for(;0<ie-ne;)ae=bi(ae),ie--;for(;ne--;){if(Me===ae||ae!==null&&Me===ae.alternate)break t;Me=bi(Me),ae=bi(ae)}Me=null}else Me=null;he!==null&&dy(we,fe,he,Me,!1),ze!==null&&et!==null&&dy(we,et,ze,Me,!0)}}e:{if(fe=le?$i(le):window,he=fe.nodeName&&fe.nodeName.toLowerCase(),he==="select"||he==="input"&&fe.type==="file")var ke=Op;else if(_p(fe))if(Rp)ke=bS;else{ke=vS;var Ie=yS}else he=fe.nodeName,!he||he.toLowerCase()!=="input"||fe.type!=="checkbox"&&fe.type!=="radio"?le&&Sc(le.elementType)&&(ke=Op):ke=xS;if(ke&&(ke=ke(t,le))){kp(we,ke,i,ge);break e}Ie&&Ie(t,fe,le),t==="focusout"&&le&&fe.type==="number"&&le.memoizedProps.value!=null&&wc(fe,"number",fe.value)}switch(Ie=le?$i(le):window,t){case"focusin":(_p(Ie)||Ie.contentEditable==="true")&&(Za=Ie,Pc=le,ss=null);break;case"focusout":ss=Pc=Za=null;break;case"mousedown":zc=!0;break;case"contextmenu":case"mouseup":case"dragend":zc=!1,Bp(we,i,ge);break;case"selectionchange":if(SS)break;case"keydown":case"keyup":Bp(we,i,ge)}var De;if(Cc)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 Xa?Ap(t,i)&&(Pe="onCompositionEnd"):t==="keydown"&&i.keyCode===229&&(Pe="onCompositionStart");Pe&&(jp&&i.locale!=="ko"&&(Xa||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&Xa&&(De=vp()):(Ar=ge,Nc="value"in Ar?Ar.value:Ar.textContent,Xa=!0)),Ie=Ml(le,Pe),0<Ie.length&&(Pe=new wp(Pe,t,null,i,ge),we.push({event:Pe,listeners:Ie}),De?Pe.data=De:(De=Np(i),De!==null&&(Pe.data=De)))),(De=fS?hS(t,i):mS(t,i))&&(Pe=Ml(le,"onBeforeInput"),0<Pe.length&&(Ie=new wp("onBeforeInput","beforeinput",null,i,ge),we.push({event:Ie,listeners:Pe}),Ie.data=De)),a3(we,t,le,i,ge)}uy(we,r)})}function Ms(t,r,i){return{instance:t,listener:r,currentTarget:i}}function Ml(t,r){for(var i=r+"Capture",l=[];t!==null;){var m=t,y=m.stateNode;if(m=m.tag,m!==5&&m!==26&&m!==27||y===null||(m=Qi(t,i),m!=null&&l.unshift(Ms(t,m,y)),m=Qi(t,r),m!=null&&l.push(Ms(t,m,y))),t.tag===3)return l;t=t.return}return[]}function bi(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function dy(t,r,i,l,m){for(var y=r._reactName,C=[];i!==null&&i!==l;){var V=i,Z=V.alternate,le=V.stateNode;if(V=V.tag,Z!==null&&Z===l)break;V!==5&&V!==26&&V!==27||le===null||(Z=le,m?(le=Qi(i,y),le!=null&&C.unshift(Ms(i,le,Z))):m||(le=Qi(i,y),le!=null&&C.push(Ms(i,le,Z)))),i=i.return}C.length!==0&&t.push({event:r,listeners:C})}var l3=/\r\n?/g,u3=/\u0000|\uFFFD/g;function fy(t){return(typeof t=="string"?t:""+t).replace(l3,`
`).replace(u3,"")}function hy(t,r){return r=fy(r),fy(t)===r}function Ll(){}function Je(t,r,i,l,m,y){switch(i){case"children":typeof l=="string"?r==="body"||r==="textarea"&&l===""||Ya(t,l):(typeof l=="number"||typeof l=="bigint")&&r!=="body"&&Ya(t,""+l);break;case"className":Fo(t,"class",l);break;case"tabIndex":Fo(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Fo(t,i,l);break;case"style":pp(t,l,y);break;case"data":if(r!=="object"){Fo(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=Io(""+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"&&Je(t,r,"name",m.name,m,null),Je(t,r,"formEncType",m.formEncType,m,null),Je(t,r,"formMethod",m.formMethod,m,null),Je(t,r,"formTarget",m.formTarget,m,null)):(Je(t,r,"encType",m.encType,m,null),Je(t,r,"method",m.method,m,null),Je(t,r,"target",m.target,m,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(i);break}l=Io(""+l),t.setAttribute(i,l);break;case"onClick":l!=null&&(t.onclick=Ll);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(m.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=Io(""+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),Bo(t,"popover",l);break;case"xlinkActuate":Jn(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Jn(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Jn(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Jn(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Jn(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Jn(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Jn(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Jn(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Jn(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Bo(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=B2.get(i)||i,Bo(t,i,l))}}function of(t,r,i,l,m,y){switch(i){case"style":pp(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(m.children!=null)throw Error(s(60));t.innerHTML=i}}break;case"children":typeof l=="string"?Ya(t,l):(typeof l=="number"||typeof l=="bigint")&&Ya(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=Ll);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ap.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(m=i.endsWith("Capture"),r=i.slice(2,m?i.length-7:void 0),y=t[Yt]||null,y=y!=null?y[i]:null,typeof y=="function"&&t.removeEventListener(r,y,m),typeof l=="function")){typeof y!="function"&&y!==null&&(i in t?t[i]=null:t.hasAttribute(i)&&t.removeAttribute(i)),t.addEventListener(r,l,m);break e}i in t?t[i]=l:l===!0?t.setAttribute(i,""):Bo(t,i,l)}}}function Dt(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,m=!1,y;for(y in i)if(i.hasOwnProperty(y)){var C=i[y];if(C!=null)switch(y){case"src":l=!0;break;case"srcSet":m=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:Je(t,r,y,C,i,null)}}m&&Je(t,r,"srcSet",i.srcSet,i,null),l&&Je(t,r,"src",i.src,i,null);return;case"input":Ye("invalid",t);var V=y=C=m=null,Z=null,le=null;for(l in i)if(i.hasOwnProperty(l)){var ge=i[l];if(ge!=null)switch(l){case"name":m=ge;break;case"type":C=ge;break;case"checked":Z=ge;break;case"defaultChecked":le=ge;break;case"value":y=ge;break;case"defaultValue":V=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(s(137,r));break;default:Je(t,r,l,ge,i,null)}}dp(t,y,V,Z,le,C,m,!1),Vo(t);return;case"select":Ye("invalid",t),l=C=y=null;for(m in i)if(i.hasOwnProperty(m)&&(V=i[m],V!=null))switch(m){case"value":y=V;break;case"defaultValue":C=V;break;case"multiple":l=V;default:Je(t,r,m,V,i,null)}r=y,i=C,t.multiple=!!l,r!=null?Ga(t,!!l,r,!1):i!=null&&Ga(t,!!l,i,!0);return;case"textarea":Ye("invalid",t),y=m=l=null;for(C in i)if(i.hasOwnProperty(C)&&(V=i[C],V!=null))switch(C){case"value":l=V;break;case"defaultValue":m=V;break;case"children":y=V;break;case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(91));break;default:Je(t,r,C,V,i,null)}hp(t,l,m,y),Vo(t);return;case"option":for(Z in i)if(i.hasOwnProperty(Z)&&(l=i[Z],l!=null))switch(Z){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Je(t,r,Z,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<Ds.length;l++)Ye(Ds[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:Je(t,r,le,l,i,null)}return;default:if(Sc(r)){for(ge in i)i.hasOwnProperty(ge)&&(l=i[ge],l!==void 0&&of(t,r,ge,l,i,void 0));return}}for(V in i)i.hasOwnProperty(V)&&(l=i[V],l!=null&&Je(t,r,V,l,i,null))}function c3(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 m=null,y=null,C=null,V=null,Z=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":Z=we;default:l.hasOwnProperty(he)||Je(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":m=he;break;case"checked":le=he;break;case"defaultChecked":ge=he;break;case"value":C=he;break;case"defaultValue":V=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(s(137,r));break;default:he!==we&&Je(t,r,fe,he,l,we)}}bc(t,C,V,Z,le,ge,y,m);return;case"select":he=C=V=fe=null;for(y in i)if(Z=i[y],i.hasOwnProperty(y)&&Z!=null)switch(y){case"value":break;case"multiple":he=Z;default:l.hasOwnProperty(y)||Je(t,r,y,null,l,Z)}for(m in l)if(y=l[m],Z=i[m],l.hasOwnProperty(m)&&(y!=null||Z!=null))switch(m){case"value":fe=y;break;case"defaultValue":V=y;break;case"multiple":C=y;default:y!==Z&&Je(t,r,m,y,l,Z)}r=V,i=C,l=he,fe!=null?Ga(t,!!i,fe,!1):!!l!=!!i&&(r!=null?Ga(t,!!i,r,!0):Ga(t,!!i,i?[]:"",!1));return;case"textarea":he=fe=null;for(V in i)if(m=i[V],i.hasOwnProperty(V)&&m!=null&&!l.hasOwnProperty(V))switch(V){case"value":break;case"children":break;default:Je(t,r,V,null,l,m)}for(C in l)if(m=l[C],y=i[C],l.hasOwnProperty(C)&&(m!=null||y!=null))switch(C){case"value":fe=m;break;case"defaultValue":he=m;break;case"children":break;case"dangerouslySetInnerHTML":if(m!=null)throw Error(s(91));break;default:m!==y&&Je(t,r,C,m,l,y)}fp(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:Je(t,r,ze,null,l,fe)}for(Z in l)if(fe=l[Z],he=i[Z],l.hasOwnProperty(Z)&&fe!==he&&(fe!=null||he!=null))switch(Z){case"selected":t.selected=fe&&typeof fe!="function"&&typeof fe!="symbol";break;default:Je(t,r,Z,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)&&Je(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:Je(t,r,le,fe,l,he)}return;default:if(Sc(r)){for(var et in i)fe=i[et],i.hasOwnProperty(et)&&fe!==void 0&&!l.hasOwnProperty(et)&&of(t,r,et,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||of(t,r,ge,fe,l,he);return}}for(var ae in i)fe=i[ae],i.hasOwnProperty(ae)&&fe!=null&&!l.hasOwnProperty(ae)&&Je(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||Je(t,r,we,fe,l,he)}var lf=null,uf=null;function Pl(t){return t.nodeType===9?t:t.ownerDocument}function my(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 py(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 cf(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 df=null;function d3(){var t=window.event;return t&&t.type==="popstate"?t===df?!1:(df=t,!0):(df=null,!1)}var gy=typeof setTimeout=="function"?setTimeout:void 0,f3=typeof clearTimeout=="function"?clearTimeout:void 0,yy=typeof Promise=="function"?Promise:void 0,h3=typeof queueMicrotask=="function"?queueMicrotask:typeof yy<"u"?function(t){return yy.resolve(null).then(t).catch(m3)}:gy;function m3(t){setTimeout(function(){throw t})}function Hr(t){return t==="head"}function vy(t,r){var i=r,l=0,m=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 C=t.ownerDocument;if(i&1&&Ls(C.documentElement),i&2&&Ls(C.body),i&4)for(i=C.head,Ls(i),C=i.firstChild;C;){var V=C.nextSibling,Z=C.nodeName;C[Zi]||Z==="SCRIPT"||Z==="STYLE"||Z==="LINK"&&C.rel.toLowerCase()==="stylesheet"||i.removeChild(C),C=V}}if(m===0){t.removeChild(y),Is(r);return}m--}else i==="$"||i==="$?"||i==="$!"?m++:l=i.charCodeAt(0)-48;else l=0;i=y}while(i);Is(r)}function ff(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":ff(i),gc(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}t.removeChild(i)}}function p3(t,r,i,l){for(;t.nodeType===1;){var m=i;if(t.nodeName.toLowerCase()!==r.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Zi])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!==m.rel||t.getAttribute("href")!==(m.href==null||m.href===""?null:m.href)||t.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin)||t.getAttribute("title")!==(m.title==null?null:m.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(y=t.getAttribute("src"),(y!==(m.src==null?null:m.src)||t.getAttribute("type")!==(m.type==null?null:m.type)||t.getAttribute("crossorigin")!==(m.crossOrigin==null?null:m.crossOrigin))&&y&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(r==="input"&&t.type==="hidden"){var y=m.name==null?null:""+m.name;if(m.type==="hidden"&&t.getAttribute("name")===y)return t}else return t;if(t=Pn(t.nextSibling),t===null)break}return null}function g3(t,r,i){if(r==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!i||(t=Pn(t.nextSibling),t===null))return null;return t}function hf(t){return t.data==="$!"||t.data==="$?"&&t.ownerDocument.readyState==="complete"}function y3(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 Pn(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 mf=null;function xy(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 by(t,r,i){switch(r=Pl(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 Ls(t){for(var r=t.attributes;r.length;)t.removeAttributeNode(r[0]);gc(t)}var Tn=new Map,wy=new Set;function zl(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}var hr=w.d;w.d={f:v3,r:x3,D:b3,C:w3,L:S3,m:j3,X:E3,S:T3,M:A3};function v3(){var t=hr.f(),r=_l();return t||r}function x3(t){var r=Va(t);r!==null&&r.tag===5&&r.type==="form"?Vg(r):hr.r(t)}var wi=typeof document>"u"?null:document;function Sy(t,r,i){var l=wi;if(l&&typeof r=="string"&&r){var m=yn(r);m='link[rel="'+t+'"][href="'+m+'"]',typeof i=="string"&&(m+='[crossorigin="'+i+'"]'),wy.has(m)||(wy.add(m),t={rel:t,crossOrigin:i,href:r},l.querySelector(m)===null&&(r=l.createElement("link"),Dt(r,"link",t),At(r),l.head.appendChild(r)))}}function b3(t){hr.D(t),Sy("dns-prefetch",t,null)}function w3(t,r){hr.C(t,r),Sy("preconnect",t,r)}function S3(t,r,i){hr.L(t,r,i);var l=wi;if(l&&t&&r){var m='link[rel="preload"][as="'+yn(r)+'"]';r==="image"&&i&&i.imageSrcSet?(m+='[imagesrcset="'+yn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(m+='[imagesizes="'+yn(i.imageSizes)+'"]')):m+='[href="'+yn(t)+'"]';var y=m;switch(r){case"style":y=Si(t);break;case"script":y=ji(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(m)!==null||r==="style"&&l.querySelector(Ps(y))||r==="script"&&l.querySelector(zs(y))||(r=l.createElement("link"),Dt(r,"link",t),At(r),l.head.appendChild(r)))}}function j3(t,r){hr.m(t,r);var i=wi;if(i&&t){var l=r&&typeof r.as=="string"?r.as:"script",m='link[rel="modulepreload"][as="'+yn(l)+'"][href="'+yn(t)+'"]',y=m;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=ji(t)}if(!Tn.has(y)&&(t=g({rel:"modulepreload",href:t},r),Tn.set(y,t),i.querySelector(m)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(zs(y)))return}l=i.createElement("link"),Dt(l,"link",t),At(l),i.head.appendChild(l)}}}function T3(t,r,i){hr.S(t,r,i);var l=wi;if(l&&t){var m=Ha(l).hoistableStyles,y=Si(t);r=r||"default";var C=m.get(y);if(!C){var V={loading:0,preload:null};if(C=l.querySelector(Ps(y)))V.loading=5;else{t=g({rel:"stylesheet",href:t,"data-precedence":r},i),(i=Tn.get(y))&&pf(t,i);var Z=C=l.createElement("link");At(Z),Dt(Z,"link",t),Z._p=new Promise(function(le,ge){Z.onload=le,Z.onerror=ge}),Z.addEventListener("load",function(){V.loading|=1}),Z.addEventListener("error",function(){V.loading|=2}),V.loading|=4,Ul(C,r,l)}C={type:"stylesheet",instance:C,count:1,state:V},m.set(y,C)}}}function E3(t,r){hr.X(t,r);var i=wi;if(i&&t){var l=Ha(i).hoistableScripts,m=ji(t),y=l.get(m);y||(y=i.querySelector(zs(m)),y||(t=g({src:t,async:!0},r),(r=Tn.get(m))&&gf(t,r),y=i.createElement("script"),At(y),Dt(y,"link",t),i.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},l.set(m,y))}}function A3(t,r){hr.M(t,r);var i=wi;if(i&&t){var l=Ha(i).hoistableScripts,m=ji(t),y=l.get(m);y||(y=i.querySelector(zs(m)),y||(t=g({src:t,async:!0,type:"module"},r),(r=Tn.get(m))&&gf(t,r),y=i.createElement("script"),At(y),Dt(y,"link",t),i.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},l.set(m,y))}}function jy(t,r,i,l){var m=(m=se.current)?zl(m):null;if(!m)throw Error(s(446));switch(t){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(r=Si(i.href),i=Ha(m).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=Si(i.href);var y=Ha(m).hoistableStyles,C=y.get(t);if(C||(m=m.ownerDocument||m,C={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(t,C),(y=m.querySelector(Ps(t)))&&!y._p&&(C.instance=y,C.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||N3(m,t,i,C.state))),r&&l===null)throw Error(s(528,""));return C}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=ji(i),i=Ha(m).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 Si(t){return'href="'+yn(t)+'"'}function Ps(t){return'link[rel="stylesheet"]['+t+"]"}function Ty(t){return g({},t,{"data-precedence":t.precedence,precedence:null})}function N3(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}),Dt(r,"link",i),At(r),t.head.appendChild(r))}function ji(t){return'[src="'+yn(t)+'"]'}function zs(t){return"script[async]"+t}function Ey(t,r,i){if(r.count++,r.instance===null)switch(r.type){case"style":var l=t.querySelector('style[data-href~="'+yn(i.href)+'"]');if(l)return r.instance=l,At(l),l;var m=g({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),At(l),Dt(l,"style",m),Ul(l,i.precedence,t),r.instance=l;case"stylesheet":m=Si(i.href);var y=t.querySelector(Ps(m));if(y)return r.state.loading|=4,r.instance=y,At(y),y;l=Ty(i),(m=Tn.get(m))&&pf(l,m),y=(t.ownerDocument||t).createElement("link"),At(y);var C=y;return C._p=new Promise(function(V,Z){C.onload=V,C.onerror=Z}),Dt(y,"link",l),r.state.loading|=4,Ul(y,i.precedence,t),r.instance=y;case"script":return y=ji(i.src),(m=t.querySelector(zs(y)))?(r.instance=m,At(m),m):(l=i,(m=Tn.get(y))&&(l=g({},i),gf(l,m)),t=t.ownerDocument||t,m=t.createElement("script"),At(m),Dt(m,"link",l),t.head.appendChild(m),r.instance=m);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,Ul(l,i.precedence,t));return r.instance}function Ul(t,r,i){for(var l=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),m=l.length?l[l.length-1]:null,y=m,C=0;C<l.length;C++){var V=l[C];if(V.dataset.precedence===r)y=V;else if(y!==m)break}y?y.parentNode.insertBefore(t,y.nextSibling):(r=i.nodeType===9?i.head:i,r.insertBefore(t,r.firstChild))}function pf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.title==null&&(t.title=r.title)}function gf(t,r){t.crossOrigin==null&&(t.crossOrigin=r.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=r.referrerPolicy),t.integrity==null&&(t.integrity=r.integrity)}var Bl=null;function Ay(t,r,i){if(Bl===null){var l=new Map,m=Bl=new Map;m.set(i,l)}else m=Bl,l=m.get(i),l||(l=new Map,m.set(i,l));if(l.has(t))return l;for(l.set(t,null),i=i.getElementsByTagName(t),m=0;m<i.length;m++){var y=i[m];if(!(y[Zi]||y[Pt]||t==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var C=y.getAttribute(r)||"";C=t+C;var V=l.get(C);V?V.push(y):l.set(C,[y])}}return l}function Ny(t,r,i){t=t.ownerDocument||t,t.head.insertBefore(i,r==="title"?t.querySelector("head > title"):null)}function _3(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 _y(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Us=null;function k3(){}function O3(t,r,i){if(Us===null)throw Error(s(475));var l=Us;if(r.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var m=Si(i.href),y=t.querySelector(Ps(m));if(y){t=y._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Fl.bind(l),t.then(l,l)),r.state.loading|=4,r.instance=y,At(y);return}y=t.ownerDocument||t,i=Ty(i),(m=Tn.get(m))&&pf(i,m),y=y.createElement("link"),At(y);var C=y;C._p=new Promise(function(V,Z){C.onload=V,C.onerror=Z}),Dt(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=Fl.bind(l),t.addEventListener("load",r),t.addEventListener("error",r))}}function R3(){if(Us===null)throw Error(s(475));var t=Us;return t.stylesheets&&t.count===0&&yf(t,t.stylesheets),0<t.count?function(r){var i=setTimeout(function(){if(t.stylesheets&&yf(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 Fl(){if(this.count--,this.count===0){if(this.stylesheets)yf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Vl=null;function yf(t,r){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Vl=new Map,r.forEach(C3,t),Vl=null,Fl.call(t))}function C3(t,r){if(!(r.state.loading&4)){var i=Vl.get(t);if(i)var l=i.get(null);else{i=new Map,Vl.set(t,i);for(var m=t.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<m.length;y++){var C=m[y];(C.nodeName==="LINK"||C.getAttribute("media")!=="not all")&&(i.set(C.dataset.precedence,C),l=C)}l&&i.set(null,l)}m=r.instance,C=m.getAttribute("data-precedence"),y=i.get(C)||l,y===l&&i.set(null,m),i.set(C,m),this.count++,l=Fl.bind(this),m.addEventListener("load",l),m.addEventListener("error",l),y?y.parentNode.insertBefore(m,y.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(m,t.firstChild)),r.state.loading|=4}}var Bs={$$typeof:L,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function D3(t,r,i,l,m,y,C,V){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=za(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=za(0),this.hiddenUpdates=za(null),this.identifierPrefix=l,this.onUncaughtError=m,this.onCaughtError=y,this.onRecoverableError=C,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=V,this.incompleteTransitions=new Map}function ky(t,r,i,l,m,y,C,V,Z,le,ge,we){return t=new D3(t,r,i,C,V,Z,le,we),r=1,y===!0&&(r|=24),y=sn(3,null,null,r),t.current=y,y.stateNode=t,r=$c(),r.refCount++,t.pooledCache=r,r.refCount++,y.memoizedState={element:l,isDehydrated:i,cache:r},td(y),t}function Oy(t){return t?(t=ei,t):ei}function Ry(t,r,i,l,m,y){m=Oy(m),l.context===null?l.context=m:l.pendingContext=m,l=kr(r),l.payload={element:i},y=y===void 0?null:y,y!==null&&(l.callback=y),i=Or(t,l,r),i!==null&&(dn(i,t,r),ps(i,t,r))}function Cy(t,r){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var i=t.retryLane;t.retryLane=i!==0&&i<r?i:r}}function vf(t,r){Cy(t,r),(t=t.alternate)&&Cy(t,r)}function Dy(t){if(t.tag===13){var r=Ja(t,67108864);r!==null&&dn(r,t,67108864),vf(t,67108864)}}var Hl=!0;function M3(t,r,i,l){var m=W.T;W.T=null;var y=w.p;try{w.p=2,xf(t,r,i,l)}finally{w.p=y,W.T=m}}function L3(t,r,i,l){var m=W.T;W.T=null;var y=w.p;try{w.p=8,xf(t,r,i,l)}finally{w.p=y,W.T=m}}function xf(t,r,i,l){if(Hl){var m=bf(l);if(m===null)sf(t,r,l,Il,i),Ly(t,l);else if(z3(m,t,r,i,l))l.stopPropagation();else if(Ly(t,l),r&4&&-1<P3.indexOf(t)){for(;m!==null;){var y=Va(m);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var C=Cn(y.pendingLanes);if(C!==0){var V=y;for(V.pendingLanes|=2,V.entangledLanes|=2;C;){var Z=1<<31-qe(C);V.entanglements[1]|=Z,C&=~Z}Yn(y),(Ze&6)===0&&(Al=q()+500,Cs(0))}}break;case 13:V=Ja(y,2),V!==null&&dn(V,y,2),_l(),vf(y,2)}if(y=bf(l),y===null&&sf(t,r,l,Il,i),y===m)break;m=y}m!==null&&l.stopPropagation()}else sf(t,r,l,null,i)}}function bf(t){return t=Tc(t),wf(t)}var Il=null;function wf(t){if(Il=null,t=Fa(t),t!==null){var r=u(t);if(r===null)t=null;else{var i=r.tag;if(i===13){if(t=c(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 Il=t,null}function My(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 ee:return 2;case pe:return 8;case ye:case oe:return 32;case je:return 268435456;default:return 32}default:return 32}}var Sf=!1,Ir=null,qr=null,Gr=null,Fs=new Map,Vs=new Map,Yr=[],P3="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 Ly(t,r){switch(t){case"focusin":case"focusout":Ir=null;break;case"dragenter":case"dragleave":qr=null;break;case"mouseover":case"mouseout":Gr=null;break;case"pointerover":case"pointerout":Fs.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vs.delete(r.pointerId)}}function Hs(t,r,i,l,m,y){return t===null||t.nativeEvent!==y?(t={blockedOn:r,domEventName:i,eventSystemFlags:l,nativeEvent:y,targetContainers:[m]},r!==null&&(r=Va(r),r!==null&&Dy(r)),t):(t.eventSystemFlags|=l,r=t.targetContainers,m!==null&&r.indexOf(m)===-1&&r.push(m),t)}function z3(t,r,i,l,m){switch(r){case"focusin":return Ir=Hs(Ir,t,r,i,l,m),!0;case"dragenter":return qr=Hs(qr,t,r,i,l,m),!0;case"mouseover":return Gr=Hs(Gr,t,r,i,l,m),!0;case"pointerover":var y=m.pointerId;return Fs.set(y,Hs(Fs.get(y)||null,t,r,i,l,m)),!0;case"gotpointercapture":return y=m.pointerId,Vs.set(y,Hs(Vs.get(y)||null,t,r,i,l,m)),!0}return!1}function Py(t){var r=Fa(t.target);if(r!==null){var i=u(r);if(i!==null){if(r=i.tag,r===13){if(r=c(i),r!==null){t.blockedOn=r,O2(t.priority,function(){if(i.tag===13){var l=cn();l=hc(l);var m=Ja(i,l);m!==null&&dn(m,i,l),vf(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 ql(t){if(t.blockedOn!==null)return!1;for(var r=t.targetContainers;0<r.length;){var i=bf(t.nativeEvent);if(i===null){i=t.nativeEvent;var l=new i.constructor(i.type,i);jc=l,i.target.dispatchEvent(l),jc=null}else return r=Va(i),r!==null&&Dy(r),t.blockedOn=i,!1;r.shift()}return!0}function zy(t,r,i){ql(t)&&i.delete(r)}function U3(){Sf=!1,Ir!==null&&ql(Ir)&&(Ir=null),qr!==null&&ql(qr)&&(qr=null),Gr!==null&&ql(Gr)&&(Gr=null),Fs.forEach(zy),Vs.forEach(zy)}function Gl(t,r){t.blockedOn===r&&(t.blockedOn=null,Sf||(Sf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,U3)))}var Yl=null;function Uy(t){Yl!==t&&(Yl=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Yl===t&&(Yl=null);for(var r=0;r<t.length;r+=3){var i=t[r],l=t[r+1],m=t[r+2];if(typeof l!="function"){if(wf(l||i)===null)continue;break}var y=Va(i);y!==null&&(t.splice(r,3),r-=3,bd(y,{pending:!0,data:m,method:i.method,action:l},l,m))}}))}function Is(t){function r(Z){return Gl(Z,t)}Ir!==null&&Gl(Ir,t),qr!==null&&Gl(qr,t),Gr!==null&&Gl(Gr,t),Fs.forEach(r),Vs.forEach(r);for(var i=0;i<Yr.length;i++){var l=Yr[i];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Yr.length&&(i=Yr[0],i.blockedOn===null);)Py(i),i.blockedOn===null&&Yr.shift();if(i=(t.ownerDocument||t).$$reactFormReplay,i!=null)for(l=0;l<i.length;l+=3){var m=i[l],y=i[l+1],C=m[Yt]||null;if(typeof y=="function")C||Uy(i);else if(C){var V=null;if(y&&y.hasAttribute("formAction")){if(m=y,C=y[Yt]||null)V=C.formAction;else if(wf(m)!==null)continue}else V=C.action;typeof V=="function"?i[l+1]=V:(i.splice(l,3),l-=3),Uy(i)}}}function jf(t){this._internalRoot=t}Kl.prototype.render=jf.prototype.render=function(t){var r=this._internalRoot;if(r===null)throw Error(s(409));var i=r.current,l=cn();Ry(i,l,t,r,null,null)},Kl.prototype.unmount=jf.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var r=t.containerInfo;Ry(t.current,2,null,t,null,null),_l(),r[Ba]=null}};function Kl(t){this._internalRoot=t}Kl.prototype.unstable_scheduleHydration=function(t){if(t){var r=tp();t={blockedOn:null,target:t,priority:r};for(var i=0;i<Yr.length&&r!==0&&r<Yr[i].priority;i++);Yr.splice(i,0,t),i===0&&Py(t)}};var By=n.version;if(By!=="19.1.0")throw Error(s(527,By,"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?p(t):null,t=t===null?null:t.stateNode,t};var B3={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Wl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Wl.isDisabled&&Wl.supportsFiber)try{ve=Wl.inject(B3),_e=Wl}catch{}}return Gs.createRoot=function(t,r){if(!o(t))throw Error(s(299));var i=!1,l="",m=t0,y=n0,C=r0,V=null;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(l=r.identifierPrefix),r.onUncaughtError!==void 0&&(m=r.onUncaughtError),r.onCaughtError!==void 0&&(y=r.onCaughtError),r.onRecoverableError!==void 0&&(C=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(V=r.unstable_transitionCallbacks)),r=ky(t,1,!1,null,null,i,l,m,y,C,V,null),t[Ba]=r.current,af(t),new jf(r)},Gs.hydrateRoot=function(t,r,i){if(!o(t))throw Error(s(299));var l=!1,m="",y=t0,C=n0,V=r0,Z=null,le=null;return i!=null&&(i.unstable_strictMode===!0&&(l=!0),i.identifierPrefix!==void 0&&(m=i.identifierPrefix),i.onUncaughtError!==void 0&&(y=i.onUncaughtError),i.onCaughtError!==void 0&&(C=i.onCaughtError),i.onRecoverableError!==void 0&&(V=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(Z=i.unstable_transitionCallbacks),i.formState!==void 0&&(le=i.formState)),r=ky(t,1,!0,r,i??null,l,m,y,C,V,Z,le),r.context=Oy(null),i=r.current,l=cn(),l=hc(l),m=kr(l),m.callback=null,Or(i,m,l),i=l,r.current.lanes=i,Dn(r,i),Yn(r),t[Ba]=r.current,af(t),new Kl(r)},Gs.version="19.1.0",Gs}var Xy;function Z3(){if(Xy)return Af.exports;Xy=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(),Af.exports=X3(),Af.exports}var $3=Z3(),Of={exports:{}},Rf={};/**
 * @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 Zy;function Q3(){if(Zy)return Rf;Zy=1;var e=On();function n(h,p){return h===p&&(h!==0||1/h===1/p)||h!==h&&p!==p}var a=typeof Object.is=="function"?Object.is:n,s=e.useSyncExternalStore,o=e.useRef,u=e.useEffect,c=e.useMemo,f=e.useDebugValue;return Rf.useSyncExternalStoreWithSelector=function(h,p,g,v,b){var j=o(null);if(j.current===null){var _={hasValue:!1,value:null};j.current=_}else _=j.current;j=c(function(){function N(T){if(!A){if(A=!0,M=T,T=v(T),b!==void 0&&_.hasValue){var P=_.value;if(b(P,T))return L=P}return L=T}if(P=L,a(M,T))return P;var z=v(T);return b!==void 0&&b(P,z)?(M=T,P):(M=T,L=z)}var A=!1,M,L,G=g===void 0?null:g;return[function(){return N(p())},G===null?void 0:function(){return N(G())}]},[p,g,v,b]);var S=s(h,j[0],j[1]);return u(function(){_.hasValue=!0,_.value=S},[S]),f(S),S},Rf}var $y;function J3(){return $y||($y=1,Of.exports=Q3()),Of.exports}var e4=J3();function t4(e){e()}function n4(){let e=null,n=null;return{clear(){e=null,n=null},notify(){t4(()=>{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 Qy={notify(){},get:()=>[]};function r4(e,n){let a,s=Qy,o=0,u=!1;function c(S){g();const N=s.subscribe(S);let A=!1;return()=>{A||(A=!0,N(),v())}}function f(){s.notify()}function h(){_.onStateChange&&_.onStateChange()}function p(){return u}function g(){o++,a||(a=e.subscribe(h),s=n4())}function v(){o--,a&&o===0&&(a(),a=void 0,s.clear(),s=Qy)}function b(){u||(u=!0,g())}function j(){u&&(u=!1,v())}const _={addNestedSub:c,notifyNestedSubs:f,handleChangeWrapper:h,isSubscribed:p,trySubscribe:b,tryUnsubscribe:j,getListeners:()=>s};return _}var a4=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",i4=a4(),s4=()=>typeof navigator<"u"&&navigator.product==="ReactNative",o4=s4(),l4=()=>i4||o4?K.useLayoutEffect:K.useEffect,u4=l4(),c4=Symbol.for("react-redux-context"),d4=typeof globalThis<"u"?globalThis:{};function f4(){if(!K.createContext)return{};const e=d4[c4]??=new Map;let n=e.get(K.createContext);return n||(n=K.createContext(null),e.set(K.createContext,n)),n}var Zr=f4();function h4(e){const{children:n,context:a,serverState:s,store:o}=e,u=K.useMemo(()=>{const h=r4(o);return{store:o,subscription:h,getServerState:s?()=>s:void 0}},[o,s]),c=K.useMemo(()=>o.getState(),[o]);u4(()=>{const{subscription:h}=u;return h.onStateChange=h.notifyNestedSubs,h.trySubscribe(),c!==o.getState()&&h.notifyNestedSubs(),()=>{h.tryUnsubscribe(),h.onStateChange=void 0}},[u,c]);const f=a||Zr;return K.createElement(f.Provider,{value:u},n)}var m4=h4;function am(e=Zr){return function(){return K.useContext(e)}}var yb=am();function vb(e=Zr){const n=e===Zr?yb:am(e),a=()=>{const{store:s}=n();return s};return Object.assign(a,{withTypes:()=>a}),a}var p4=vb();function g4(e=Zr){const n=e===Zr?p4:vb(e),a=()=>n().dispatch;return Object.assign(a,{withTypes:()=>a}),a}var Sr=g4(),y4=(e,n)=>e===n;function v4(e=Zr){const n=e===Zr?yb:am(e),a=(s,o={})=>{const{equalityFn:u=y4}=typeof o=="function"?{equalityFn:o}:o,c=n(),{store:f,subscription:h,getServerState:p}=c;K.useRef(!0);const g=K.useCallback({[s.name](b){return s(b)}}[s.name],[s]),v=e4.useSyncExternalStoreWithSelector(h.addNestedSub,f.getState,p||f.getState,g,u);return K.useDebugValue(v),v};return Object.assign(a,{withTypes:()=>a}),a}var st=v4();let x4={data:""},b4=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||x4,w4=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,S4=/\/\*[^]*?\*\/|  +/g,Jy=/\n+/g,Xr=(e,n)=>{let a="",s="",o="";for(let u in e){let c=e[u];u[0]=="@"?u[1]=="i"?a=u+" "+c+";":s+=u[1]=="f"?Xr(c,u):u+"{"+Xr(c,u[1]=="k"?"":n)+"}":typeof c=="object"?s+=Xr(c,n?n.replace(/([^,])+/g,f=>u.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,h=>/&/.test(h)?h.replace(/&/g,f):f?f+" "+h:h)):u):c!=null&&(u=/^--/.test(u)?u:u.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Xr.p?Xr.p(u,c):u+":"+c+";")}return a+(n&&o?n+"{"+o+"}":o)+s},mr={},xb=e=>{if(typeof e=="object"){let n="";for(let a in e)n+=a+xb(e[a]);return n}return e},j4=(e,n,a,s,o)=>{let u=xb(e),c=mr[u]||(mr[u]=(h=>{let p=0,g=11;for(;p<h.length;)g=101*g+h.charCodeAt(p++)>>>0;return"go"+g})(u));if(!mr[c]){let h=u!==e?e:(p=>{let g,v,b=[{}];for(;g=w4.exec(p.replace(S4,""));)g[4]?b.shift():g[3]?(v=g[3].replace(Jy," ").trim(),b.unshift(b[0][v]=b[0][v]||{})):b[0][g[1]]=g[2].replace(Jy," ").trim();return b[0]})(e);mr[c]=Xr(o?{["@keyframes "+c]:h}:h,a?"":"."+c)}let f=a&&mr.g?mr.g:null;return a&&(mr.g=mr[c]),((h,p,g,v)=>{v?p.data=p.data.replace(v,h):p.data.indexOf(h)===-1&&(p.data=g?h+p.data:p.data+h)})(mr[c],n,s,f),c},T4=(e,n,a)=>e.reduce((s,o,u)=>{let c=n[u];if(c&&c.call){let f=c(a),h=f&&f.props&&f.props.className||/^go/.test(f)&&f;c=h?"."+h:f&&typeof f=="object"?f.props?"":Xr(f,""):f===!1?"":f}return s+o+(c??"")},"");function qu(e){let n=this||{},a=e.call?e(n.p):e;return j4(a.unshift?a.raw?T4(a,[].slice.call(arguments,1),n.p):a.reduce((s,o)=>Object.assign(s,o&&o.call?o(n.p):o),{}):a,b4(n.target),n.g,n.o,n.k)}let bb,yh,vh;qu.bind({g:1});let yr=qu.bind({k:1});function E4(e,n,a,s){Xr.p=n,bb=e,yh=a,vh=s}function Jr(e,n){let a=this||{};return function(){let s=arguments;function o(u,c){let f=Object.assign({},u),h=f.className||o.className;a.p=Object.assign({theme:yh&&yh()},f),a.o=/ *go\d+/.test(h),f.className=qu.apply(a,s)+(h?" "+h:"");let p=e;return e[0]&&(p=f.as||e,delete f.as),vh&&p[0]&&vh(f),bb(p,f)}return o}}var A4=e=>typeof e=="function",Tu=(e,n)=>A4(e)?e(n):e,N4=(()=>{let e=0;return()=>(++e).toString()})(),wb=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),_4=20,Sb=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,_4)};case 1:return{...e,toasts:e.toasts.map(u=>u.id===n.toast.id?{...u,...n.toast}:u)};case 2:let{toast:a}=n;return Sb(e,{type:e.toasts.find(u=>u.id===a.id)?1:0,toast:a});case 3:let{toastId:s}=n;return{...e,toasts:e.toasts.map(u=>u.id===s||s===void 0?{...u,dismissed:!0,visible:!1}:u)};case 4:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(u=>u.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(u=>({...u,pauseDuration:u.pauseDuration+o}))}}},su=[],Ta={toasts:[],pausedAt:void 0},Pa=e=>{Ta=Sb(Ta,e),su.forEach(n=>{n(Ta)})},k4={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},O4=(e={})=>{let[n,a]=K.useState(Ta),s=K.useRef(Ta);K.useEffect(()=>(s.current!==Ta&&a(Ta),su.push(a),()=>{let u=su.indexOf(a);u>-1&&su.splice(u,1)}),[]);let o=n.toasts.map(u=>{var c,f,h;return{...e,...e[u.type],...u,removeDelay:u.removeDelay||((c=e[u.type])==null?void 0:c.removeDelay)||e?.removeDelay,duration:u.duration||((f=e[u.type])==null?void 0:f.duration)||e?.duration||k4[u.type],style:{...e.style,...(h=e[u.type])==null?void 0:h.style,...u.style}}});return{...n,toasts:o}},R4=(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||N4()}),To=e=>(n,a)=>{let s=R4(n,e,a);return Pa({type:2,toast:s}),s.id},It=(e,n)=>To("blank")(e,n);It.error=To("error");It.success=To("success");It.loading=To("loading");It.custom=To("custom");It.dismiss=e=>{Pa({type:3,toastId:e})};It.remove=e=>Pa({type:4,toastId:e});It.promise=(e,n,a)=>{let s=It.loading(n.loading,{...a,...a?.loading});return typeof e=="function"&&(e=e()),e.then(o=>{let u=n.success?Tu(n.success,o):void 0;return u?It.success(u,{id:s,...a,...a?.success}):It.dismiss(s),o}).catch(o=>{let u=n.error?Tu(n.error,o):void 0;u?It.error(u,{id:s,...a,...a?.error}):It.dismiss(s)}),e};var C4=(e,n)=>{Pa({type:1,toast:{id:e,height:n}})},D4=()=>{Pa({type:5,time:Date.now()})},ao=new Map,M4=1e3,L4=(e,n=M4)=>{if(ao.has(e))return;let a=setTimeout(()=>{ao.delete(e),Pa({type:4,toastId:e})},n);ao.set(e,a)},P4=e=>{let{toasts:n,pausedAt:a}=O4(e);K.useEffect(()=>{if(a)return;let u=Date.now(),c=n.map(f=>{if(f.duration===1/0)return;let h=(f.duration||0)+f.pauseDuration-(u-f.createdAt);if(h<0){f.visible&&It.dismiss(f.id);return}return setTimeout(()=>It.dismiss(f.id),h)});return()=>{c.forEach(f=>f&&clearTimeout(f))}},[n,a]);let s=K.useCallback(()=>{a&&Pa({type:6,time:Date.now()})},[a]),o=K.useCallback((u,c)=>{let{reverseOrder:f=!1,gutter:h=8,defaultPosition:p}=c||{},g=n.filter(j=>(j.position||p)===(u.position||p)&&j.height),v=g.findIndex(j=>j.id===u.id),b=g.filter((j,_)=>_<v&&j.visible).length;return g.filter(j=>j.visible).slice(...f?[b+1]:[0,b]).reduce((j,_)=>j+(_.height||0)+h,0)},[n]);return K.useEffect(()=>{n.forEach(u=>{if(u.dismissed)L4(u.id,u.removeDelay);else{let c=ao.get(u.id);c&&(clearTimeout(c),ao.delete(u.id))}})},[n]),{toasts:n,handlers:{updateHeight:C4,startPause:D4,endPause:s,calculateOffset:o}}},z4=yr`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,U4=yr`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,B4=yr`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,F4=Jr("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

  animation: ${z4} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;

  &:after,
  &:before {
    content: '';
    animation: ${U4} 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: ${B4} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,V4=yr`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,H4=Jr("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: ${V4} 1s linear infinite;
`,I4=yr`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,q4=yr`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,G4=Jr("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${I4} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${q4} 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;
  }
`,Y4=Jr("div")`
  position: absolute;
`,K4=Jr("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,W4=yr`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,X4=Jr("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${W4} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,Z4=({toast:e})=>{let{icon:n,type:a,iconTheme:s}=e;return n!==void 0?typeof n=="string"?K.createElement(X4,null,n):n:a==="blank"?null:K.createElement(K4,null,K.createElement(H4,{...s}),a!=="loading"&&K.createElement(Y4,null,a==="error"?K.createElement(F4,{...s}):K.createElement(G4,{...s})))},$4=e=>`
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,Q4=e=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
`,J4="0%{opacity:0;} 100%{opacity:1;}",ej="0%{opacity:1;} 100%{opacity:0;}",tj=Jr("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;
`,nj=Jr("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,rj=(e,n)=>{let a=e.includes("top")?1:-1,[s,o]=wb()?[J4,ej]:[$4(a),Q4(a)];return{animation:n?`${yr(s)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${yr(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},aj=K.memo(({toast:e,position:n,style:a,children:s})=>{let o=e.height?rj(e.position||n||"top-center",e.visible):{opacity:0},u=K.createElement(Z4,{toast:e}),c=K.createElement(nj,{...e.ariaProps},Tu(e.message,e));return K.createElement(tj,{className:e.className,style:{...o,...a,...e.style}},typeof s=="function"?s({icon:u,message:c}):K.createElement(K.Fragment,null,u,c))});E4(K.createElement);var ij=({id:e,className:n,style:a,onHeightUpdate:s,children:o})=>{let u=K.useCallback(c=>{if(c){let f=()=>{let h=c.getBoundingClientRect().height;s(e,h)};f(),new MutationObserver(f).observe(c,{subtree:!0,childList:!0,characterData:!0})}},[e,s]);return K.createElement("div",{ref:u,className:n,style:a},o)},sj=(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:wb()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(a?1:-1)}px)`,...s,...o}},oj=qu`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,Xl=16,lj=({reverseOrder:e,position:n="top-center",toastOptions:a,gutter:s,children:o,containerStyle:u,containerClassName:c})=>{let{toasts:f,handlers:h}=P4(a);return K.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:Xl,left:Xl,right:Xl,bottom:Xl,pointerEvents:"none",...u},className:c,onMouseEnter:h.startPause,onMouseLeave:h.endPause},f.map(p=>{let g=p.position||n,v=h.calculateOffset(p,{reverseOrder:e,gutter:s,defaultPosition:n}),b=sj(g,v);return K.createElement(ij,{id:p.id,key:p.id,onHeightUpdate:h.updateHeight,className:p.visible?oj:"",style:b},p.type==="custom"?Tu(p.message,p):o?o(p):K.createElement(aj,{toast:p,position:g}))}))},Gu=It;function Mt(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 uj=typeof Symbol=="function"&&Symbol.observable||"@@observable",ev=uj,Cf=()=>Math.random().toString(36).substring(7).split("").join("."),cj={INIT:`@@redux/INIT${Cf()}`,REPLACE:`@@redux/REPLACE${Cf()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Cf()}`},Eu=cj;function im(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 jb(e,n,a){if(typeof e!="function")throw new Error(Mt(2));if(typeof n=="function"&&typeof a=="function"||typeof a=="function"&&typeof arguments[3]=="function")throw new Error(Mt(0));if(typeof n=="function"&&typeof a>"u"&&(a=n,n=void 0),typeof a<"u"){if(typeof a!="function")throw new Error(Mt(1));return a(jb)(e,n)}let s=e,o=n,u=new Map,c=u,f=0,h=!1;function p(){c===u&&(c=new Map,u.forEach((N,A)=>{c.set(A,N)}))}function g(){if(h)throw new Error(Mt(3));return o}function v(N){if(typeof N!="function")throw new Error(Mt(4));if(h)throw new Error(Mt(5));let A=!0;p();const M=f++;return c.set(M,N),function(){if(A){if(h)throw new Error(Mt(6));A=!1,p(),c.delete(M),u=null}}}function b(N){if(!im(N))throw new Error(Mt(7));if(typeof N.type>"u")throw new Error(Mt(8));if(typeof N.type!="string")throw new Error(Mt(17));if(h)throw new Error(Mt(9));try{h=!0,o=s(o,N)}finally{h=!1}return(u=c).forEach(M=>{M()}),N}function j(N){if(typeof N!="function")throw new Error(Mt(10));s=N,b({type:Eu.REPLACE})}function _(){const N=v;return{subscribe(A){if(typeof A!="object"||A===null)throw new Error(Mt(11));function M(){const G=A;G.next&&G.next(g())}return M(),{unsubscribe:N(M)}},[ev](){return this}}}return b({type:Eu.INIT}),{dispatch:b,subscribe:v,getState:g,replaceReducer:j,[ev]:_}}function dj(e){Object.keys(e).forEach(n=>{const a=e[n];if(typeof a(void 0,{type:Eu.INIT})>"u")throw new Error(Mt(12));if(typeof a(void 0,{type:Eu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Mt(13))})}function fj(e){const n=Object.keys(e),a={};for(let u=0;u<n.length;u++){const c=n[u];typeof e[c]=="function"&&(a[c]=e[c])}const s=Object.keys(a);let o;try{dj(a)}catch(u){o=u}return function(c={},f){if(o)throw o;let h=!1;const p={};for(let g=0;g<s.length;g++){const v=s[g],b=a[v],j=c[v],_=b(j,f);if(typeof _>"u")throw f&&f.type,new Error(Mt(14));p[v]=_,h=h||_!==j}return h=h||s.length!==Object.keys(c).length,h?p:c}}function Au(...e){return e.length===0?n=>n:e.length===1?e[0]:e.reduce((n,a)=>(...s)=>n(a(...s)))}function hj(...e){return n=>(a,s)=>{const o=n(a,s);let u=()=>{throw new Error(Mt(15))};const c={getState:o.getState,dispatch:(h,...p)=>u(h,...p)},f=e.map(h=>h(c));return u=Au(...f)(o.dispatch),{...o,dispatch:u}}}function mj(e){return im(e)&&"type"in e&&typeof e.type=="string"}var Tb=Symbol.for("immer-nothing"),tv=Symbol.for("immer-draftable"),fn=Symbol.for("immer-state");function Un(e,...n){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Pi=Object.getPrototypeOf;function Ca(e){return!!e&&!!e[fn]}function vr(e){return e?Eb(e)||Array.isArray(e)||!!e[tv]||!!e.constructor?.[tv]||Ku(e)||Wu(e):!1}var pj=Object.prototype.constructor.toString();function Eb(e){if(!e||typeof e!="object")return!1;const n=Pi(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)===pj}function Nu(e,n){Yu(e)===0?Reflect.ownKeys(e).forEach(a=>{n(a,e[a],e)}):e.forEach((a,s)=>n(s,a,e))}function Yu(e){const n=e[fn];return n?n.type_:Array.isArray(e)?1:Ku(e)?2:Wu(e)?3:0}function xh(e,n){return Yu(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function Ab(e,n,a){const s=Yu(e);s===2?e.set(n,a):s===3?e.add(a):e[n]=a}function gj(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function Ku(e){return e instanceof Map}function Wu(e){return e instanceof Set}function Sa(e){return e.copy_||e.base_}function bh(e,n){if(Ku(e))return new Map(e);if(Wu(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const a=Eb(e);if(n===!0||n==="class_only"&&!a){const s=Object.getOwnPropertyDescriptors(e);delete s[fn];let o=Reflect.ownKeys(s);for(let u=0;u<o.length;u++){const c=o[u],f=s[c];f.writable===!1&&(f.writable=!0,f.configurable=!0),(f.get||f.set)&&(s[c]={configurable:!0,writable:!0,enumerable:f.enumerable,value:e[c]})}return Object.create(Pi(e),s)}else{const s=Pi(e);if(s!==null&&a)return{...e};const o=Object.create(s);return Object.assign(o,e)}}function sm(e,n=!1){return Xu(e)||Ca(e)||!vr(e)||(Yu(e)>1&&(e.set=e.add=e.clear=e.delete=yj),Object.freeze(e),n&&Object.entries(e).forEach(([a,s])=>sm(s,!0))),e}function yj(){Un(2)}function Xu(e){return Object.isFrozen(e)}var vj={};function Da(e){const n=vj[e];return n||Un(0,e),n}var fo;function Nb(){return fo}function xj(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function nv(e,n){n&&(Da("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function wh(e){Sh(e),e.drafts_.forEach(bj),e.drafts_=null}function Sh(e){e===fo&&(fo=e.parent_)}function rv(e){return fo=xj(fo,e)}function bj(e){const n=e[fn];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function av(e,n){n.unfinalizedDrafts_=n.drafts_.length;const a=n.drafts_[0];return e!==void 0&&e!==a?(a[fn].modified_&&(wh(n),Un(4)),vr(e)&&(e=_u(n,e),n.parent_||ku(n,e)),n.patches_&&Da("Patches").generateReplacementPatches_(a[fn].base_,e,n.patches_,n.inversePatches_)):e=_u(n,a,[]),wh(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==Tb?e:void 0}function _u(e,n,a){if(Xu(n))return n;const s=n[fn];if(!s)return Nu(n,(o,u)=>iv(e,s,n,o,u,a)),n;if(s.scope_!==e)return n;if(!s.modified_)return ku(e,s.base_,!0),s.base_;if(!s.finalized_){s.finalized_=!0,s.scope_.unfinalizedDrafts_--;const o=s.copy_;let u=o,c=!1;s.type_===3&&(u=new Set(o),o.clear(),c=!0),Nu(u,(f,h)=>iv(e,s,o,f,h,a,c)),ku(e,o,!1),a&&e.patches_&&Da("Patches").generatePatches_(s,a,e.patches_,e.inversePatches_)}return s.copy_}function iv(e,n,a,s,o,u,c){if(Ca(o)){const f=u&&n&&n.type_!==3&&!xh(n.assigned_,s)?u.concat(s):void 0,h=_u(e,o,f);if(Ab(a,s,h),Ca(h))e.canAutoFreeze_=!1;else return}else c&&a.add(o);if(vr(o)&&!Xu(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;_u(e,o),(!n||!n.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(a,s)&&ku(e,o)}}function ku(e,n,a=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&sm(n,a)}function wj(e,n){const a=Array.isArray(e),s={type_:a?1:0,scope_:n?n.scope_:Nb(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=s,u=om;a&&(o=[s],u=ho);const{revoke:c,proxy:f}=Proxy.revocable(o,u);return s.draft_=f,s.revoke_=c,f}var om={get(e,n){if(n===fn)return e;const a=Sa(e);if(!xh(a,n))return Sj(e,a,n);const s=a[n];return e.finalized_||!vr(s)?s:s===Df(e.base_,n)?(Mf(e),e.copy_[n]=Th(s,e)):s},has(e,n){return n in Sa(e)},ownKeys(e){return Reflect.ownKeys(Sa(e))},set(e,n,a){const s=_b(Sa(e),n);if(s?.set)return s.set.call(e.draft_,a),!0;if(!e.modified_){const o=Df(Sa(e),n),u=o?.[fn];if(u&&u.base_===a)return e.copy_[n]=a,e.assigned_[n]=!1,!0;if(gj(a,o)&&(a!==void 0||xh(e.base_,n)))return!0;Mf(e),jh(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 Df(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,Mf(e),jh(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const a=Sa(e),s=Reflect.getOwnPropertyDescriptor(a,n);return s&&{writable:!0,configurable:e.type_!==1||n!=="length",enumerable:s.enumerable,value:a[n]}},defineProperty(){Un(11)},getPrototypeOf(e){return Pi(e.base_)},setPrototypeOf(){Un(12)}},ho={};Nu(om,(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 om.set.call(this,e[0],n,a,e[0])};function Df(e,n){const a=e[fn];return(a?Sa(a):e)[n]}function Sj(e,n,a){const s=_b(n,a);return s?"value"in s?s.value:s.get?.call(e.draft_):void 0}function _b(e,n){if(!(n in e))return;let a=Pi(e);for(;a;){const s=Object.getOwnPropertyDescriptor(a,n);if(s)return s;a=Pi(a)}}function jh(e){e.modified_||(e.modified_=!0,e.parent_&&jh(e.parent_))}function Mf(e){e.copy_||(e.copy_=bh(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var jj=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(n,a,s)=>{if(typeof n=="function"&&typeof a!="function"){const u=a;a=n;const c=this;return function(h=u,...p){return c.produce(h,g=>a.call(this,g,...p))}}typeof a!="function"&&Un(6),s!==void 0&&typeof s!="function"&&Un(7);let o;if(vr(n)){const u=rv(this),c=Th(n,void 0);let f=!0;try{o=a(c),f=!1}finally{f?wh(u):Sh(u)}return nv(u,s),av(o,u)}else if(!n||typeof n!="object"){if(o=a(n),o===void 0&&(o=n),o===Tb&&(o=void 0),this.autoFreeze_&&sm(o,!0),s){const u=[],c=[];Da("Patches").generateReplacementPatches_(n,o,u,c),s(u,c)}return o}else Un(1,n)},this.produceWithPatches=(n,a)=>{if(typeof n=="function")return(c,...f)=>this.produceWithPatches(c,h=>n(h,...f));let s,o;return[this.produce(n,a,(c,f)=>{s=c,o=f}),s,o]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){vr(e)||Un(8),Ca(e)&&(e=Tj(e));const n=rv(this),a=Th(e,void 0);return a[fn].isManual_=!0,Sh(n),a}finishDraft(e,n){const a=e&&e[fn];(!a||!a.isManual_)&&Un(9);const{scope_:s}=a;return nv(s,n),av(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=Da("Patches").applyPatches_;return Ca(e)?s(e,n):this.produce(e,o=>s(o,n))}};function Th(e,n){const a=Ku(e)?Da("MapSet").proxyMap_(e,n):Wu(e)?Da("MapSet").proxySet_(e,n):wj(e,n);return(n?n.scope_:Nb()).drafts_.push(a),a}function Tj(e){return Ca(e)||Un(10,e),kb(e)}function kb(e){if(!vr(e)||Xu(e))return e;const n=e[fn];let a;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,a=bh(e,n.scope_.immer_.useStrictShallowCopy_)}else a=bh(e,!0);return Nu(a,(s,o)=>{Ab(a,s,kb(o))}),n&&(n.finalized_=!1),a}var hn=new jj,Ob=hn.produce;hn.produceWithPatches.bind(hn);hn.setAutoFreeze.bind(hn);hn.setUseStrictShallowCopy.bind(hn);hn.applyPatches.bind(hn);hn.createDraft.bind(hn);hn.finishDraft.bind(hn);function Rb(e){return({dispatch:a,getState:s})=>o=>u=>typeof u=="function"?u(a,s,e):o(u)}var Ej=Rb(),Aj=Rb,Nj=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Au:Au.apply(null,arguments)},_j=e=>e&&typeof e.match=="function";function io(e,n){function a(...s){if(n){let o=n(...s);if(!o)throw new Error(pr(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=>mj(s)&&s.type===e,a}var Cb=class eo extends Array{constructor(...n){super(...n),Object.setPrototypeOf(this,eo.prototype)}static get[Symbol.species](){return eo}concat(...n){return super.concat.apply(this,n)}prepend(...n){return n.length===1&&Array.isArray(n[0])?new eo(...n[0].concat(this)):new eo(...n.concat(this))}};function sv(e){return vr(e)?Ob(e,()=>{}):e}function Zl(e,n,a){return e.has(n)?e.get(n):e.set(n,a(n)).get(n)}function kj(e){return typeof e=="boolean"}var Oj=()=>function(n){const{thunk:a=!0,immutableCheck:s=!0,serializableCheck:o=!0,actionCreatorCheck:u=!0}=n??{};let c=new Cb;return a&&(kj(a)?c.push(Ej):c.push(Aj(a.extraArgument))),c},Rj="RTK_autoBatch",ov=e=>n=>{setTimeout(n,e)},Cj=(e={type:"raf"})=>n=>(...a)=>{const s=n(...a);let o=!0,u=!1,c=!1;const f=new Set,h=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ov(10):e.type==="callback"?e.queueNotification:ov(e.timeout),p=()=>{c=!1,u&&(u=!1,f.forEach(g=>g()))};return Object.assign({},s,{subscribe(g){const v=()=>o&&g(),b=s.subscribe(v);return f.add(g),()=>{b(),f.delete(g)}},dispatch(g){try{return o=!g?.meta?.[Rj],u=!o,u&&(c||(c=!0,h(p))),s.dispatch(g)}finally{o=!0}}})},Dj=e=>function(a){const{autoBatch:s=!0}=a??{};let o=new Cb(e);return s&&o.push(Cj(typeof s=="object"?s:void 0)),o};function Mj(e){const n=Oj(),{reducer:a=void 0,middleware:s,devTools:o=!0,preloadedState:u=void 0,enhancers:c=void 0}=e||{};let f;if(typeof a=="function")f=a;else if(im(a))f=fj(a);else throw new Error(pr(1));let h;typeof s=="function"?h=s(n):h=n();let p=Au;o&&(p=Nj({trace:!1,...typeof o=="object"&&o}));const g=hj(...h),v=Dj(g);let b=typeof c=="function"?c(v):v();const j=p(...b);return jb(f,u,j)}function Db(e){const n={},a=[];let s;const o={addCase(u,c){const f=typeof u=="string"?u:u.type;if(!f)throw new Error(pr(28));if(f in n)throw new Error(pr(29));return n[f]=c,o},addMatcher(u,c){return a.push({matcher:u,reducer:c}),o},addDefaultCase(u){return s=u,o}};return e(o),[n,a,s]}function Lj(e){return typeof e=="function"}function Pj(e,n){let[a,s,o]=Db(n),u;if(Lj(e))u=()=>sv(e());else{const f=sv(e);u=()=>f}function c(f=u(),h){let p=[a[h.type],...s.filter(({matcher:g})=>g(h)).map(({reducer:g})=>g)];return p.filter(g=>!!g).length===0&&(p=[o]),p.reduce((g,v)=>{if(v)if(Ca(g)){const j=v(g,h);return j===void 0?g:j}else{if(vr(g))return Ob(g,b=>v(b,h));{const b=v(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 c.getInitialState=u,c}var zj=(e,n)=>_j(e)?e.match(n):e(n);function Uj(...e){return n=>e.some(a=>zj(a,n))}var Bj="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Fj=(e=21)=>{let n="",a=e;for(;a--;)n+=Bj[Math.random()*64|0];return n},Vj=["name","message","stack","code"],Lf=class{constructor(e,n){this.payload=e,this.meta=n}_type},lv=class{constructor(e,n){this.payload=e,this.meta=n}_type},Hj=e=>{if(typeof e=="object"&&e!==null){const n={};for(const a of Vj)typeof e[a]=="string"&&(n[a]=e[a]);return n}return{message:String(e)}},uv="External signal was aborted",jr=(()=>{function e(n,a,s){const o=io(n+"/fulfilled",(h,p,g,v)=>({payload:h,meta:{...v||{},arg:g,requestId:p,requestStatus:"fulfilled"}})),u=io(n+"/pending",(h,p,g)=>({payload:void 0,meta:{...g||{},arg:p,requestId:h,requestStatus:"pending"}})),c=io(n+"/rejected",(h,p,g,v,b)=>({payload:v,error:(s&&s.serializeError||Hj)(h||"Rejected"),meta:{...b||{},arg:g,requestId:p,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"}}));function f(h,{signal:p}={}){return(g,v,b)=>{const j=s?.idGenerator?s.idGenerator(h):Fj(),_=new AbortController;let S,N;function A(L){N=L,_.abort()}p&&(p.aborted?A(uv):p.addEventListener("abort",()=>A(uv),{once:!0}));const M=async function(){let L;try{let T=s?.condition?.(h,{getState:v,extra:b});if(qj(T)&&(T=await T),T===!1||_.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const P=new Promise((z,B)=>{S=()=>{B({name:"AbortError",message:N||"Aborted"})},_.signal.addEventListener("abort",S)});g(u(j,h,s?.getPendingMeta?.({requestId:j,arg:h},{getState:v,extra:b}))),L=await Promise.race([P,Promise.resolve(a(h,{dispatch:g,getState:v,extra:b,requestId:j,signal:_.signal,abort:A,rejectWithValue:(z,B)=>new Lf(z,B),fulfillWithValue:(z,B)=>new lv(z,B)})).then(z=>{if(z instanceof Lf)throw z;return z instanceof lv?o(z.payload,j,h,z.meta):o(z,j,h)})])}catch(T){L=T instanceof Lf?c(null,j,h,T.payload,T.meta):c(T,j,h)}finally{S&&_.signal.removeEventListener("abort",S)}return s&&!s.dispatchConditionRejection&&c.match(L)&&L.meta.condition||g(L),L}();return Object.assign(M,{abort:A,requestId:j,arg:h,unwrap(){return M.then(Ij)}})}}return Object.assign(f,{pending:u,rejected:c,fulfilled:o,settled:Uj(c,o),typePrefix:n})}return e.withTypes=()=>e,e})();function Ij(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function qj(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Gj=Symbol.for("rtk-slice-createasyncthunk");function Yj(e,n){return`${e}/${n}`}function Kj({creators:e}={}){const n=e?.asyncThunk?.[Gj];return function(s){const{name:o,reducerPath:u=o}=s;if(!o)throw new Error(pr(11));const c=(typeof s.reducers=="function"?s.reducers(Zj()):s.reducers)||{},f=Object.keys(c),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(L,G){const T=typeof L=="string"?L:L.type;if(!T)throw new Error(pr(12));if(T in h.sliceCaseReducersByType)throw new Error(pr(13));return h.sliceCaseReducersByType[T]=G,p},addMatcher(L,G){return h.sliceMatchers.push({matcher:L,reducer:G}),p},exposeAction(L,G){return h.actionCreators[L]=G,p},exposeCaseReducer(L,G){return h.sliceCaseReducersByName[L]=G,p}};f.forEach(L=>{const G=c[L],T={reducerName:L,type:Yj(o,L),createNotation:typeof s.reducers=="function"};Qj(G)?eT(T,G,p,n):$j(T,G,p)});function g(){const[L={},G=[],T=void 0]=typeof s.extraReducers=="function"?Db(s.extraReducers):[s.extraReducers],P={...L,...h.sliceCaseReducersByType};return Pj(s.initialState,z=>{for(let B in P)z.addCase(B,P[B]);for(let B of h.sliceMatchers)z.addMatcher(B.matcher,B.reducer);for(let B of G)z.addMatcher(B.matcher,B.reducer);T&&z.addDefaultCase(T)})}const v=L=>L,b=new Map,j=new WeakMap;let _;function S(L,G){return _||(_=g()),_(L,G)}function N(){return _||(_=g()),_.getInitialState()}function A(L,G=!1){function T(z){let B=z[L];return typeof B>"u"&&G&&(B=Zl(j,T,N)),B}function P(z=v){const B=Zl(b,G,()=>new WeakMap);return Zl(B,z,()=>{const D={};for(const[R,X]of Object.entries(s.selectors??{}))D[R]=Wj(X,z,()=>Zl(j,z,N),G);return D})}return{reducerPath:L,getSelectors:P,get selectors(){return P(T)},selectSlice:T}}const M={name:o,reducer:S,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:N,...A(u),injectInto(L,{reducerPath:G,...T}={}){const P=G??u;return L.inject({reducerPath:P,reducer:S},T),{...M,...A(P,!0)}}};return M}}function Wj(e,n,a,s){function o(u,...c){let f=n(u);return typeof f>"u"&&s&&(f=a()),e(f,...c)}return o.unwrapped=e,o}var Xj=Kj();function Zj(){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 $j({type:e,reducerName:n,createNotation:a},s,o){let u,c;if("reducer"in s){if(a&&!Jj(s))throw new Error(pr(17));u=s.reducer,c=s.prepare}else u=s;o.addCase(e,u).exposeCaseReducer(n,u).exposeAction(n,c?io(e,c):io(e))}function Qj(e){return e._reducerDefinitionType==="asyncThunk"}function Jj(e){return e._reducerDefinitionType==="reducerWithPrepare"}function eT({type:e,reducerName:n},a,s,o){if(!o)throw new Error(pr(18));const{payloadCreator:u,fulfilled:c,pending:f,rejected:h,settled:p,options:g}=a,v=o(e,u,g);s.exposeAction(n,v),c&&s.addCase(v.fulfilled,c),f&&s.addCase(v.pending,f),h&&s.addCase(v.rejected,h),p&&s.addMatcher(v.settled,p),s.exposeCaseReducer(n,{fulfilled:c||$l,pending:f||$l,rejected:h||$l,settled:p||$l})}function $l(){}function pr(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 ea=e=>{Gu.success(e,{duration:3e3,style:{background:"#10b981",color:"#fff",fontWeight:"500"}})},mn=e=>{Gu.error(e,{duration:4e3,style:{background:"#ef4444",color:"#fff",fontWeight:"500"}})},ta=(e="Loading...")=>Gu.loading(e,{style:{background:"#6b7280",color:"#fff",fontWeight:"500"}}),Ot=e=>{Gu.dismiss(e)},Ei=e=>{typeof e=="string"&&mn(e)};function Mb(e,n){return function(){return e.apply(n,arguments)}}const{toString:tT}=Object.prototype,{getPrototypeOf:lm}=Object,{iterator:Zu,toStringTag:Lb}=Symbol,$u=(e=>n=>{const a=tT.call(n);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Bn=e=>(e=e.toLowerCase(),n=>$u(n)===e),Qu=e=>n=>typeof n===e,{isArray:Fi}=Array,mo=Qu("undefined");function Eo(e){return e!==null&&!mo(e)&&e.constructor!==null&&!mo(e.constructor)&&tn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Pb=Bn("ArrayBuffer");function nT(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&Pb(e.buffer),n}const rT=Qu("string"),tn=Qu("function"),zb=Qu("number"),Ao=e=>e!==null&&typeof e=="object",aT=e=>e===!0||e===!1,ou=e=>{if($u(e)!=="object")return!1;const n=lm(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Lb in e)&&!(Zu in e)},iT=e=>{if(!Ao(e)||Eo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},sT=Bn("Date"),oT=Bn("File"),lT=Bn("Blob"),uT=Bn("FileList"),cT=e=>Ao(e)&&tn(e.pipe),dT=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||tn(e.append)&&((n=$u(e))==="formdata"||n==="object"&&tn(e.toString)&&e.toString()==="[object FormData]"))},fT=Bn("URLSearchParams"),[hT,mT,pT,gT]=["ReadableStream","Request","Response","Headers"].map(Bn),yT=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]),Fi(e))for(s=0,o=e.length;s<o;s++)n.call(null,e[s],s,e);else{if(Eo(e))return;const u=a?Object.getOwnPropertyNames(e):Object.keys(e),c=u.length;let f;for(s=0;s<c;s++)f=u[s],n.call(null,e[f],f,e)}}function Ub(e,n){if(Eo(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 Ea=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Bb=e=>!mo(e)&&e!==Ea;function Eh(){const{caseless:e}=Bb(this)&&this||{},n={},a=(s,o)=>{const u=e&&Ub(n,o)||o;ou(n[u])&&ou(s)?n[u]=Eh(n[u],s):ou(s)?n[u]=Eh({},s):Fi(s)?n[u]=s.slice():n[u]=s};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&No(arguments[s],a);return n}const vT=(e,n,a,{allOwnKeys:s}={})=>(No(n,(o,u)=>{a&&tn(o)?e[u]=Mb(o,a):e[u]=o},{allOwnKeys:s}),e),xT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),bT=(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)},wT=(e,n,a,s)=>{let o,u,c;const f={};if(n=n||{},e==null)return n;do{for(o=Object.getOwnPropertyNames(e),u=o.length;u-- >0;)c=o[u],(!s||s(c,e,n))&&!f[c]&&(n[c]=e[c],f[c]=!0);e=a!==!1&&lm(e)}while(e&&(!a||a(e,n))&&e!==Object.prototype);return n},ST=(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},jT=e=>{if(!e)return null;if(Fi(e))return e;let n=e.length;if(!zb(n))return null;const a=new Array(n);for(;n-- >0;)a[n]=e[n];return a},TT=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&lm(Uint8Array)),ET=(e,n)=>{const s=(e&&e[Zu]).call(e);let o;for(;(o=s.next())&&!o.done;){const u=o.value;n.call(e,u[0],u[1])}},AT=(e,n)=>{let a;const s=[];for(;(a=e.exec(n))!==null;)s.push(a);return s},NT=Bn("HTMLFormElement"),_T=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,s,o){return s.toUpperCase()+o}),cv=(({hasOwnProperty:e})=>(n,a)=>e.call(n,a))(Object.prototype),kT=Bn("RegExp"),Fb=(e,n)=>{const a=Object.getOwnPropertyDescriptors(e),s={};No(a,(o,u)=>{let c;(c=n(o,u,e))!==!1&&(s[u]=c||o)}),Object.defineProperties(e,s)},OT=e=>{Fb(e,(n,a)=>{if(tn(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const s=e[a];if(tn(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+"'")})}})},RT=(e,n)=>{const a={},s=o=>{o.forEach(u=>{a[u]=!0})};return Fi(e)?s(e):s(String(e).split(n)),a},CT=()=>{},DT=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function MT(e){return!!(e&&tn(e.append)&&e[Lb]==="FormData"&&e[Zu])}const LT=e=>{const n=new Array(10),a=(s,o)=>{if(Ao(s)){if(n.indexOf(s)>=0)return;if(Eo(s))return s;if(!("toJSON"in s)){n[o]=s;const u=Fi(s)?[]:{};return No(s,(c,f)=>{const h=a(c,o+1);!mo(h)&&(u[f]=h)}),n[o]=void 0,u}}return s};return a(e,0)},PT=Bn("AsyncFunction"),zT=e=>e&&(Ao(e)||tn(e))&&tn(e.then)&&tn(e.catch),Vb=((e,n)=>e?setImmediate:n?((a,s)=>(Ea.addEventListener("message",({source:o,data:u})=>{o===Ea&&u===a&&s.length&&s.shift()()},!1),o=>{s.push(o),Ea.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",tn(Ea.postMessage)),UT=typeof queueMicrotask<"u"?queueMicrotask.bind(Ea):typeof process<"u"&&process.nextTick||Vb,BT=e=>e!=null&&tn(e[Zu]),me={isArray:Fi,isArrayBuffer:Pb,isBuffer:Eo,isFormData:dT,isArrayBufferView:nT,isString:rT,isNumber:zb,isBoolean:aT,isObject:Ao,isPlainObject:ou,isEmptyObject:iT,isReadableStream:hT,isRequest:mT,isResponse:pT,isHeaders:gT,isUndefined:mo,isDate:sT,isFile:oT,isBlob:lT,isRegExp:kT,isFunction:tn,isStream:cT,isURLSearchParams:fT,isTypedArray:TT,isFileList:uT,forEach:No,merge:Eh,extend:vT,trim:yT,stripBOM:xT,inherits:bT,toFlatObject:wT,kindOf:$u,kindOfTest:Bn,endsWith:ST,toArray:jT,forEachEntry:ET,matchAll:AT,isHTMLForm:NT,hasOwnProperty:cv,hasOwnProp:cv,reduceDescriptors:Fb,freezeMethods:OT,toObjectSet:RT,toCamelCase:_T,noop:CT,toFiniteNumber:DT,findKey:Ub,global:Ea,isContextDefined:Bb,isSpecCompliantForm:MT,toJSONObject:LT,isAsyncFn:PT,isThenable:zT,setImmediate:Vb,asap:UT,isIterable:BT};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 Hb=Fe.prototype,Ib={};["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=>{Ib[e]={value:e}});Object.defineProperties(Fe,Ib);Object.defineProperty(Hb,"isAxiosError",{value:!0});Fe.from=(e,n,a,s,o,u)=>{const c=Object.create(Hb);return me.toFlatObject(e,c,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),Fe.call(c,e.message,n,a,s,o),c.cause=e,c.name=e.name,u&&Object.assign(c,u),c};const FT=null;function Ah(e){return me.isPlainObject(e)||me.isArray(e)}function qb(e){return me.endsWith(e,"[]")?e.slice(0,-2):e}function dv(e,n,a){return e?e.concat(n).map(function(o,u){return o=qb(o),!a&&u?"["+o+"]":o}).join(a?".":""):n}function VT(e){return me.isArray(e)&&!e.some(Ah)}const HT=me.toFlatObject(me,{},null,function(n){return/^is[A-Z]/.test(n)});function Ju(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,N){return!me.isUndefined(N[S])});const s=a.metaTokens,o=a.visitor||g,u=a.dots,c=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 p(_){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,N){let A=_;if(_&&!N&&typeof _=="object"){if(me.endsWith(S,"{}"))S=s?S:S.slice(0,-2),_=JSON.stringify(_);else if(me.isArray(_)&&VT(_)||(me.isFileList(_)||me.endsWith(S,"[]"))&&(A=me.toArray(_)))return S=qb(S),A.forEach(function(L,G){!(me.isUndefined(L)||L===null)&&n.append(c===!0?dv([S],G,u):c===null?S:S+"[]",p(L))}),!1}return Ah(_)?!0:(n.append(dv(N,S,u),p(_)),!1)}const v=[],b=Object.assign(HT,{defaultVisitor:g,convertValue:p,isVisitable:Ah});function j(_,S){if(!me.isUndefined(_)){if(v.indexOf(_)!==-1)throw Error("Circular reference detected in "+S.join("."));v.push(_),me.forEach(_,function(A,M){(!(me.isUndefined(A)||A===null)&&o.call(n,A,me.isString(M)?M.trim():M,S,b))===!0&&j(A,S?S.concat(M):[M])}),v.pop()}}if(!me.isObject(e))throw new TypeError("data must be an object");return j(e),n}function fv(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return n[s]})}function um(e,n){this._pairs=[],e&&Ju(e,this,n)}const Gb=um.prototype;Gb.append=function(n,a){this._pairs.push([n,a])};Gb.toString=function(n){const a=n?function(s){return n.call(this,s,fv)}:fv;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function IT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Yb(e,n,a){if(!n)return e;const s=a&&a.encode||IT;me.isFunction(a)&&(a={serialize:a});const o=a&&a.serialize;let u;if(o?u=o(n,a):u=me.isURLSearchParams(n)?n.toString():new um(n,a).toString(s),u){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class hv{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 Kb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},qT=typeof URLSearchParams<"u"?URLSearchParams:um,GT=typeof FormData<"u"?FormData:null,YT=typeof Blob<"u"?Blob:null,KT={isBrowser:!0,classes:{URLSearchParams:qT,FormData:GT,Blob:YT},protocols:["http","https","file","blob","url","data"]},cm=typeof window<"u"&&typeof document<"u",Nh=typeof navigator=="object"&&navigator||void 0,WT=cm&&(!Nh||["ReactNative","NativeScript","NS"].indexOf(Nh.product)<0),XT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",ZT=cm&&window.location.href||"http://localhost",$T=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cm,hasStandardBrowserEnv:WT,hasStandardBrowserWebWorkerEnv:XT,navigator:Nh,origin:ZT},Symbol.toStringTag,{value:"Module"})),Ft={...$T,...KT};function QT(e,n){return Ju(e,new Ft.classes.URLSearchParams,{visitor:function(a,s,o,u){return Ft.isNode&&me.isBuffer(a)?(this.append(s,a.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)},...n})}function JT(e){return me.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function eE(e){const n={},a=Object.keys(e);let s;const o=a.length;let u;for(s=0;s<o;s++)u=a[s],n[u]=e[u];return n}function Wb(e){function n(a,s,o,u){let c=a[u++];if(c==="__proto__")return!0;const f=Number.isFinite(+c),h=u>=a.length;return c=!c&&me.isArray(o)?o.length:c,h?(me.hasOwnProp(o,c)?o[c]=[o[c],s]:o[c]=s,!f):((!o[c]||!me.isObject(o[c]))&&(o[c]=[]),n(a,s,o[c],u)&&me.isArray(o[c])&&(o[c]=eE(o[c])),!f)}if(me.isFormData(e)&&me.isFunction(e.entries)){const a={};return me.forEachEntry(e,(s,o)=>{n(JT(s),o,a,0)}),a}return null}function tE(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:Kb,adapter:["xhr","http","fetch"],transformRequest:[function(n,a){const s=a.getContentType()||"",o=s.indexOf("application/json")>-1,u=me.isObject(n);if(u&&me.isHTMLForm(n)&&(n=new FormData(n)),me.isFormData(n))return o?JSON.stringify(Wb(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(u){if(s.indexOf("application/x-www-form-urlencoded")>-1)return QT(n,this.formSerializer).toString();if((f=me.isFileList(n))||s.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Ju(f?{"files[]":n}:n,h&&new h,this.formSerializer)}}return u||o?(a.setContentType("application/json",!1),tE(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 c=!(a&&a.silentJSONParsing)&&o;try{return JSON.parse(n)}catch(f){if(c)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:Ft.classes.FormData,Blob:Ft.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 nE=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"]),rE=e=>{const n={};let a,s,o;return e&&e.split(`
`).forEach(function(c){o=c.indexOf(":"),a=c.substring(0,o).trim().toLowerCase(),s=c.substring(o+1).trim(),!(!a||n[a]&&nE[a])&&(a==="set-cookie"?n[a]?n[a].push(s):n[a]=[s]:n[a]=n[a]?n[a]+", "+s:s)}),n},mv=Symbol("internals");function Ys(e){return e&&String(e).trim().toLowerCase()}function lu(e){return e===!1||e==null?e:me.isArray(e)?e.map(lu):String(e)}function aE(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 iE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Pf(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 sE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,a,s)=>a.toUpperCase()+s)}function oE(e,n){const a=me.toCamelCase(" "+n);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+a,{value:function(o,u,c){return this[s].call(this,n,o,u,c)},configurable:!0})})}let nn=class{constructor(n){n&&this.set(n)}set(n,a,s){const o=this;function u(f,h,p){const g=Ys(h);if(!g)throw new Error("header name must be a non-empty string");const v=me.findKey(o,g);(!v||o[v]===void 0||p===!0||p===void 0&&o[v]!==!1)&&(o[v||h]=lu(f))}const c=(f,h)=>me.forEach(f,(p,g)=>u(p,g,h));if(me.isPlainObject(n)||n instanceof this.constructor)c(n,a);else if(me.isString(n)&&(n=n.trim())&&!iE(n))c(rE(n),a);else if(me.isObject(n)&&me.isIterable(n)){let f={},h,p;for(const g of n){if(!me.isArray(g))throw TypeError("Object iterator must return a key-value pair");f[p=g[0]]=(h=f[p])?me.isArray(h)?[...h,g[1]]:[h,g[1]]:g[1]}c(f,a)}else n!=null&&u(a,n,s);return this}get(n,a){if(n=Ys(n),n){const s=me.findKey(this,n);if(s){const o=this[s];if(!a)return o;if(a===!0)return aE(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=Ys(n),n){const s=me.findKey(this,n);return!!(s&&this[s]!==void 0&&(!a||Pf(this,this[s],s,a)))}return!1}delete(n,a){const s=this;let o=!1;function u(c){if(c=Ys(c),c){const f=me.findKey(s,c);f&&(!a||Pf(s,s[f],f,a))&&(delete s[f],o=!0)}}return me.isArray(n)?n.forEach(u):u(n),o}clear(n){const a=Object.keys(this);let s=a.length,o=!1;for(;s--;){const u=a[s];(!n||Pf(this,this[u],u,n,!0))&&(delete this[u],o=!0)}return o}normalize(n){const a=this,s={};return me.forEach(this,(o,u)=>{const c=me.findKey(s,u);if(c){a[c]=lu(o),delete a[u];return}const f=n?sE(u):String(u).trim();f!==u&&delete a[u],a[f]=lu(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[mv]=this[mv]={accessors:{}}).accessors,o=this.prototype;function u(c){const f=Ys(c);s[f]||(oE(o,c),s[f]=!0)}return me.isArray(n)?n.forEach(u):u(n),this}};nn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);me.reduceDescriptors(nn.prototype,({value:e},n)=>{let a=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(s){this[a]=s}}});me.freezeMethods(nn);function zf(e,n){const a=this||_o,s=n||a,o=nn.from(s.headers);let u=s.data;return me.forEach(e,function(f){u=f.call(a,u,o.normalize(),n?n.status:void 0)}),o.normalize(),u}function Xb(e){return!!(e&&e.__CANCEL__)}function Vi(e,n,a){Fe.call(this,e??"canceled",Fe.ERR_CANCELED,n,a),this.name="CanceledError"}me.inherits(Vi,Fe,{__CANCEL__:!0});function Zb(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 lE(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function uE(e,n){e=e||10;const a=new Array(e),s=new Array(e);let o=0,u=0,c;return n=n!==void 0?n:1e3,function(h){const p=Date.now(),g=s[u];c||(c=p),a[o]=h,s[o]=p;let v=u,b=0;for(;v!==o;)b+=a[v++],v=v%e;if(o=(o+1)%e,o===u&&(u=(u+1)%e),p-c<n)return;const j=g&&p-g;return j?Math.round(b*1e3/j):void 0}}function cE(e,n){let a=0,s=1e3/n,o,u;const c=(p,g=Date.now())=>{a=g,o=null,u&&(clearTimeout(u),u=null),e(...p)};return[(...p)=>{const g=Date.now(),v=g-a;v>=s?c(p,g):(o=p,u||(u=setTimeout(()=>{u=null,c(o)},s-v)))},()=>o&&c(o)]}const Ou=(e,n,a=3)=>{let s=0;const o=uE(50,250);return cE(u=>{const c=u.loaded,f=u.lengthComputable?u.total:void 0,h=c-s,p=o(h),g=c<=f;s=c;const v={loaded:c,total:f,progress:f?c/f:void 0,bytes:h,rate:p||void 0,estimated:p&&f&&g?(f-c)/p:void 0,event:u,lengthComputable:f!=null,[n?"download":"upload"]:!0};e(v)},a)},pv=(e,n)=>{const a=e!=null;return[s=>n[0]({lengthComputable:a,total:e,loaded:s}),n[1]]},gv=e=>(...n)=>me.asap(()=>e(...n)),dE=Ft.hasStandardBrowserEnv?((e,n)=>a=>(a=new URL(a,Ft.origin),e.protocol===a.protocol&&e.host===a.host&&(n||e.port===a.port)))(new URL(Ft.origin),Ft.navigator&&/(msie|trident)/i.test(Ft.navigator.userAgent)):()=>!0,fE=Ft.hasStandardBrowserEnv?{write(e,n,a,s,o,u){const c=[e+"="+encodeURIComponent(n)];me.isNumber(a)&&c.push("expires="+new Date(a).toGMTString()),me.isString(s)&&c.push("path="+s),me.isString(o)&&c.push("domain="+o),u===!0&&c.push("secure"),document.cookie=c.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 hE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function mE(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function $b(e,n,a){let s=!hE(n);return e&&(s||a==!1)?mE(e,n):n}const yv=e=>e instanceof nn?{...e}:e;function Ma(e,n){n=n||{};const a={};function s(p,g,v,b){return me.isPlainObject(p)&&me.isPlainObject(g)?me.merge.call({caseless:b},p,g):me.isPlainObject(g)?me.merge({},g):me.isArray(g)?g.slice():g}function o(p,g,v,b){if(me.isUndefined(g)){if(!me.isUndefined(p))return s(void 0,p,v,b)}else return s(p,g,v,b)}function u(p,g){if(!me.isUndefined(g))return s(void 0,g)}function c(p,g){if(me.isUndefined(g)){if(!me.isUndefined(p))return s(void 0,p)}else return s(void 0,g)}function f(p,g,v){if(v in n)return s(p,g);if(v in e)return s(void 0,p)}const h={url:u,method:u,data:u,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:f,headers:(p,g,v)=>o(yv(p),yv(g),v,!0)};return me.forEach(Object.keys({...e,...n}),function(g){const v=h[g]||o,b=v(e[g],n[g],g);me.isUndefined(b)&&v!==f||(a[g]=b)}),a}const Qb=e=>{const n=Ma({},e);let{data:a,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:u,headers:c,auth:f}=n;n.headers=c=nn.from(c),n.url=Yb($b(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),f&&c.set("Authorization","Basic "+btoa((f.username||"")+":"+(f.password?unescape(encodeURIComponent(f.password)):"")));let h;if(me.isFormData(a)){if(Ft.hasStandardBrowserEnv||Ft.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if((h=c.getContentType())!==!1){const[p,...g]=h?h.split(";").map(v=>v.trim()).filter(Boolean):[];c.setContentType([p||"multipart/form-data",...g].join("; "))}}if(Ft.hasStandardBrowserEnv&&(s&&me.isFunction(s)&&(s=s(n)),s||s!==!1&&dE(n.url))){const p=o&&u&&fE.read(u);p&&c.set(o,p)}return n},pE=typeof XMLHttpRequest<"u",gE=pE&&function(e){return new Promise(function(a,s){const o=Qb(e);let u=o.data;const c=nn.from(o.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:p}=o,g,v,b,j,_;function S(){j&&j(),_&&_(),o.cancelToken&&o.cancelToken.unsubscribe(g),o.signal&&o.signal.removeEventListener("abort",g)}let N=new XMLHttpRequest;N.open(o.method.toUpperCase(),o.url,!0),N.timeout=o.timeout;function A(){if(!N)return;const L=nn.from("getAllResponseHeaders"in N&&N.getAllResponseHeaders()),T={data:!f||f==="text"||f==="json"?N.responseText:N.response,status:N.status,statusText:N.statusText,headers:L,config:e,request:N};Zb(function(z){a(z),S()},function(z){s(z),S()},T),N=null}"onloadend"in N?N.onloadend=A:N.onreadystatechange=function(){!N||N.readyState!==4||N.status===0&&!(N.responseURL&&N.responseURL.indexOf("file:")===0)||setTimeout(A)},N.onabort=function(){N&&(s(new Fe("Request aborted",Fe.ECONNABORTED,e,N)),N=null)},N.onerror=function(){s(new Fe("Network Error",Fe.ERR_NETWORK,e,N)),N=null},N.ontimeout=function(){let G=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||Kb;o.timeoutErrorMessage&&(G=o.timeoutErrorMessage),s(new Fe(G,T.clarifyTimeoutError?Fe.ETIMEDOUT:Fe.ECONNABORTED,e,N)),N=null},u===void 0&&c.setContentType(null),"setRequestHeader"in N&&me.forEach(c.toJSON(),function(G,T){N.setRequestHeader(T,G)}),me.isUndefined(o.withCredentials)||(N.withCredentials=!!o.withCredentials),f&&f!=="json"&&(N.responseType=o.responseType),p&&([b,_]=Ou(p,!0),N.addEventListener("progress",b)),h&&N.upload&&([v,j]=Ou(h),N.upload.addEventListener("progress",v),N.upload.addEventListener("loadend",j)),(o.cancelToken||o.signal)&&(g=L=>{N&&(s(!L||L.type?new Vi(null,e,N):L),N.abort(),N=null)},o.cancelToken&&o.cancelToken.subscribe(g),o.signal&&(o.signal.aborted?g():o.signal.addEventListener("abort",g)));const M=lE(o.url);if(M&&Ft.protocols.indexOf(M)===-1){s(new Fe("Unsupported protocol "+M+":",Fe.ERR_BAD_REQUEST,e));return}N.send(u||null)})},yE=(e,n)=>{const{length:a}=e=e?e.filter(Boolean):[];if(n||a){let s=new AbortController,o;const u=function(p){if(!o){o=!0,f();const g=p instanceof Error?p:this.reason;s.abort(g instanceof Fe?g:new Vi(g instanceof Error?g.message:g))}};let c=n&&setTimeout(()=>{c=null,u(new Fe(`timeout ${n} of ms exceeded`,Fe.ETIMEDOUT))},n);const f=()=>{e&&(c&&clearTimeout(c),c=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(u):p.removeEventListener("abort",u)}),e=null)};e.forEach(p=>p.addEventListener("abort",u));const{signal:h}=s;return h.unsubscribe=()=>me.asap(f),h}},vE=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},xE=async function*(e,n){for await(const a of bE(e))yield*vE(a,n)},bE=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()}},vv=(e,n,a,s)=>{const o=xE(e,n);let u=0,c,f=h=>{c||(c=!0,s&&s(h))};return new ReadableStream({async pull(h){try{const{done:p,value:g}=await o.next();if(p){f(),h.close();return}let v=g.byteLength;if(a){let b=u+=v;a(b)}h.enqueue(new Uint8Array(g))}catch(p){throw f(p),p}},cancel(h){return f(h),o.return()}},{highWaterMark:2})},ec=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Jb=ec&&typeof ReadableStream=="function",wE=ec&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),e1=(e,...n)=>{try{return!!e(...n)}catch{return!1}},SE=Jb&&e1(()=>{let e=!1;const n=new Request(Ft.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),xv=64*1024,_h=Jb&&e1(()=>me.isReadableStream(new Response("").body)),Ru={stream:_h&&(e=>e.body)};ec&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!Ru[n]&&(Ru[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 jE=async e=>{if(e==null)return 0;if(me.isBlob(e))return e.size;if(me.isSpecCompliantForm(e))return(await new Request(Ft.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 wE(e)).byteLength},TE=async(e,n)=>{const a=me.toFiniteNumber(e.getContentLength());return a??jE(n)},EE=ec&&(async e=>{let{url:n,method:a,data:s,signal:o,cancelToken:u,timeout:c,onDownloadProgress:f,onUploadProgress:h,responseType:p,headers:g,withCredentials:v="same-origin",fetchOptions:b}=Qb(e);p=p?(p+"").toLowerCase():"text";let j=yE([o,u&&u.toAbortSignal()],c),_;const S=j&&j.unsubscribe&&(()=>{j.unsubscribe()});let N;try{if(h&&SE&&a!=="get"&&a!=="head"&&(N=await TE(g,s))!==0){let T=new Request(n,{method:"POST",body:s,duplex:"half"}),P;if(me.isFormData(s)&&(P=T.headers.get("content-type"))&&g.setContentType(P),T.body){const[z,B]=pv(N,Ou(gv(h)));s=vv(T.body,xv,z,B)}}me.isString(v)||(v=v?"include":"omit");const A="credentials"in Request.prototype;_=new Request(n,{...b,signal:j,method:a.toUpperCase(),headers:g.normalize().toJSON(),body:s,duplex:"half",credentials:A?v:void 0});let M=await fetch(_,b);const L=_h&&(p==="stream"||p==="response");if(_h&&(f||L&&S)){const T={};["status","statusText","headers"].forEach(D=>{T[D]=M[D]});const P=me.toFiniteNumber(M.headers.get("content-length")),[z,B]=f&&pv(P,Ou(gv(f),!0))||[];M=new Response(vv(M.body,xv,z,()=>{B&&B(),S&&S()}),T)}p=p||"text";let G=await Ru[me.findKey(Ru,p)||"text"](M,e);return!L&&S&&S(),await new Promise((T,P)=>{Zb(T,P,{data:G,headers:nn.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:_})})}catch(A){throw S&&S(),A&&A.name==="TypeError"&&/Load failed|fetch/i.test(A.message)?Object.assign(new Fe("Network Error",Fe.ERR_NETWORK,e,_),{cause:A.cause||A}):Fe.from(A,A&&A.code,e,_)}}),kh={http:FT,xhr:gE,fetch:EE};me.forEach(kh,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const bv=e=>`- ${e}`,AE=e=>me.isFunction(e)||e===null||e===!1,t1={getAdapter:e=>{e=me.isArray(e)?e:[e];const{length:n}=e;let a,s;const o={};for(let u=0;u<n;u++){a=e[u];let c;if(s=a,!AE(a)&&(s=kh[(c=String(a)).toLowerCase()],s===void 0))throw new Fe(`Unknown adapter '${c}'`);if(s)break;o[c||"#"+u]=s}if(!s){const u=Object.entries(o).map(([f,h])=>`adapter ${f} `+(h===!1?"is not supported by the environment":"is not available in the build"));let c=n?u.length>1?`since :
`+u.map(bv).join(`
`):" "+bv(u[0]):"as no adapter specified";throw new Fe("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:kh};function Uf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vi(null,e)}function wv(e){return Uf(e),e.headers=nn.from(e.headers),e.data=zf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),t1.getAdapter(e.adapter||_o.adapter)(e).then(function(s){return Uf(e),s.data=zf.call(e,e.transformResponse,s),s.headers=nn.from(s.headers),s},function(s){return Xb(s)||(Uf(e),s&&s.response&&(s.response.data=zf.call(e,e.transformResponse,s.response),s.response.headers=nn.from(s.response.headers))),Promise.reject(s)})}const n1="1.11.0",tc={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{tc[e]=function(s){return typeof s===e||"a"+(n<1?"n ":" ")+e}});const Sv={};tc.transitional=function(n,a,s){function o(u,c){return"[Axios v"+n1+"] Transitional option '"+u+"'"+c+(s?". "+s:"")}return(u,c,f)=>{if(n===!1)throw new Fe(o(c," has been removed"+(a?" in "+a:"")),Fe.ERR_DEPRECATED);return a&&!Sv[c]&&(Sv[c]=!0,console.warn(o(c," has been deprecated since v"+a+" and will be removed in the near future"))),n?n(u,c,f):!0}};tc.spelling=function(n){return(a,s)=>(console.warn(`${s} is likely a misspelling of ${n}`),!0)};function NE(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 u=s[o],c=n[u];if(c){const f=e[u],h=f===void 0||c(f,u,e);if(h!==!0)throw new Fe("option "+u+" must be "+h,Fe.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Fe("Unknown option "+u,Fe.ERR_BAD_OPTION)}}const uu={assertOptions:NE,validators:tc},Kn=uu.validators;let ka=class{constructor(n){this.defaults=n||{},this.interceptors={request:new hv,response:new hv}}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 u=o.stack?o.stack.replace(/^.+\n/,""):"";try{s.stack?u&&!String(s.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(s.stack+=`
`+u):s.stack=u}catch{}}throw s}}_request(n,a){typeof n=="string"?(a=a||{},a.url=n):a=n||{},a=Ma(this.defaults,a);const{transitional:s,paramsSerializer:o,headers:u}=a;s!==void 0&&uu.assertOptions(s,{silentJSONParsing:Kn.transitional(Kn.boolean),forcedJSONParsing:Kn.transitional(Kn.boolean),clarifyTimeoutError:Kn.transitional(Kn.boolean)},!1),o!=null&&(me.isFunction(o)?a.paramsSerializer={serialize:o}:uu.assertOptions(o,{encode:Kn.function,serialize:Kn.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),uu.assertOptions(a,{baseUrl:Kn.spelling("baseURL"),withXsrfToken:Kn.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let c=u&&me.merge(u.common,u[a.method]);u&&me.forEach(["delete","get","head","post","put","patch","common"],_=>{delete u[_]}),a.headers=nn.concat(c,u);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 p=[];this.interceptors.response.forEach(function(S){p.push(S.fulfilled,S.rejected)});let g,v=0,b;if(!h){const _=[wv.bind(this),void 0];for(_.unshift(...f),_.push(...p),b=_.length,g=Promise.resolve(a);v<b;)g=g.then(_[v++],_[v++]);return g}b=f.length;let j=a;for(v=0;v<b;){const _=f[v++],S=f[v++];try{j=_(j)}catch(N){S.call(this,N);break}}try{g=wv.call(this,j)}catch(_){return Promise.reject(_)}for(v=0,b=p.length;v<b;)g=g.then(p[v++],p[v++]);return g}getUri(n){n=Ma(this.defaults,n);const a=$b(n.baseURL,n.url,n.allowAbsoluteUrls);return Yb(a,n.params,n.paramsSerializer)}};me.forEach(["delete","get","head","options"],function(n){ka.prototype[n]=function(a,s){return this.request(Ma(s||{},{method:n,url:a,data:(s||{}).data}))}});me.forEach(["post","put","patch"],function(n){function a(s){return function(u,c,f){return this.request(Ma(f||{},{method:n,headers:s?{"Content-Type":"multipart/form-data"}:{},url:u,data:c}))}}ka.prototype[n]=a(),ka.prototype[n+"Form"]=a(!0)});let _E=class r1{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(u){a=u});const s=this;this.promise.then(o=>{if(!s._listeners)return;let u=s._listeners.length;for(;u-- >0;)s._listeners[u](o);s._listeners=null}),this.promise.then=o=>{let u;const c=new Promise(f=>{s.subscribe(f),u=f}).then(o);return c.cancel=function(){s.unsubscribe(u)},c},n(function(u,c,f){s.reason||(s.reason=new Vi(u,c,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 r1(function(o){n=o}),cancel:n}}};function kE(e){return function(a){return e.apply(null,a)}}function OE(e){return me.isObject(e)&&e.isAxiosError===!0}const Oh={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(Oh).forEach(([e,n])=>{Oh[n]=e});function a1(e){const n=new ka(e),a=Mb(ka.prototype.request,n);return me.extend(a,ka.prototype,n,{allOwnKeys:!0}),me.extend(a,n,null,{allOwnKeys:!0}),a.create=function(o){return a1(Ma(e,o))},a}const yt=a1(_o);yt.Axios=ka;yt.CanceledError=Vi;yt.CancelToken=_E;yt.isCancel=Xb;yt.VERSION=n1;yt.toFormData=Ju;yt.AxiosError=Fe;yt.Cancel=yt.CanceledError;yt.all=function(n){return Promise.all(n)};yt.spread=kE;yt.isAxiosError=OE;yt.mergeConfig=Ma;yt.AxiosHeaders=nn;yt.formToJSON=e=>Wb(me.isHTMLForm(e)?new FormData(e):e);yt.getAdapter=t1.getAdapter;yt.HttpStatusCode=Oh;yt.default=yt;const{Axios:eD,AxiosError:tD,CanceledError:nD,isCancel:rD,CancelToken:aD,VERSION:iD,all:sD,Cancel:oD,isAxiosError:lD,spread:uD,toFormData:cD,AxiosHeaders:dD,HttpStatusCode:fD,formToJSON:hD,getAdapter:mD,mergeConfig:pD}=yt,dm="http://localhost:3001/api",Ti="http://localhost:3001/",$t={SIGNUP:"/user/signup",VERIFY_OTP:"/user/verify-otp",LOGIN:"/user/login",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"},RE={TIMEOUT:1e4},nc=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},i1=e=>{if(!e)return!1;const n=nc(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 Ql(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 CE={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 Rh(e,n){function a(o,u,c){if(!(typeof document>"u")){c=Ql({},n,c),typeof c.expires=="number"&&(c.expires=new Date(Date.now()+c.expires*864e5)),c.expires&&(c.expires=c.expires.toUTCString()),o=encodeURIComponent(o).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var f="";for(var h in c)c[h]&&(f+="; "+h,c[h]!==!0&&(f+="="+c[h].split(";")[0]));return document.cookie=o+"="+e.write(u,o)+f}}function s(o){if(!(typeof document>"u"||arguments.length&&!o)){for(var u=document.cookie?document.cookie.split("; "):[],c={},f=0;f<u.length;f++){var h=u[f].split("="),p=h.slice(1).join("=");try{var g=decodeURIComponent(h[0]);if(c[g]=e.read(p,g),o===g)break}catch{}}return o?c[o]:c}}return Object.create({set:a,get:s,remove:function(o,u){a(o,"",Ql({},u,{expires:-1}))},withAttributes:function(o){return Rh(this.converter,Ql({},this.attributes,o))},withConverter:function(o){return Rh(Ql({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}var to=Rh(CE,{path:"/"});const Bt={TOKEN:"auth_token",USER:"auth_user",SIGNUP_EMAIL:"signup_email",SESSION_ID:"session_id"},DE={expires:7,secure:!0,sameSite:"strict"};class ME{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(Bt.SESSION_ID);return console.log("SessionManager - getSessionId:",n),n}setSessionId(n){localStorage.setItem(Bt.SESSION_ID,n),console.log("SessionManager - setSessionId:",n)}getToken(){const n=to.get(Bt.TOKEN),a=localStorage.getItem(Bt.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 to.set(Bt.TOKEN,n,DE),localStorage.setItem(Bt.TOKEN,n),console.log("SessionManager - setToken - Token stored successfully"),console.log("SessionManager - setToken - Token in cookies:",!!to.get(Bt.TOKEN)),console.log("SessionManager - setToken - Token in localStorage:",!!localStorage.getItem(Bt.TOKEN)),!0}catch(a){return console.error("SessionManager - setToken - Error:",a),!1}}removeToken(){try{return to.remove(Bt.TOKEN),localStorage.removeItem(Bt.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(Bt.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(Bt.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(Bt.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(Bt.SIGNUP_EMAIL);return console.log("SessionManager - getSignupEmail:",n),n}setSignupEmail(n){n&&(localStorage.setItem(Bt.SIGNUP_EMAIL,n),console.log("SessionManager - setSignupEmail:",n))}removeSignupEmail(){localStorage.removeItem(Bt.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 ME,Qt=yt.create({baseURL:dm,headers:{"Content-Type":"application/json"},timeout:RE.TIMEOUT});Qt.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=nc(n);i1(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)));Qt.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 Jt={signup:e=>(console.log("authAPI.signup - Sending request with data:",JSON.stringify(e,null,2)),Qt.post($t.SIGNUP,e)),verifyOTP:e=>(console.log("authAPI.verifyOTP - Sending request with data:",JSON.stringify(e,null,2)),Qt.post($t.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)),Qt.post($t.LOGIN,e)),getCurrentUser:()=>(console.log("authAPI.getCurrentUser - Sending request"),Qt.get($t.GET_CURRENT_USER)),logout:()=>(console.log("authAPI.logout - Sending request"),Qt.post($t.LOGOUT)),forgotPassword:e=>(console.log("authAPI.forgotPassword - Sending request with data:",JSON.stringify(e,null,2)),Qt.post($t.FORGOT_PASSWORD,e)),resetPassword:e=>(console.log("authAPI.resetPassword - Sending request with data:",JSON.stringify(e,null,2)),Qt.post($t.RESET_PASSWORD,e)),getReferralTree:e=>(console.log("authAPI.getReferralTree - Sending request with userId:",e),Qt.get(e?`${$t.REFERRAL_TREE}?userId=${e}`:$t.REFERRAL_TREE)),getUserById:e=>(console.log("authAPI.getUserById - Sending request with userId:",e),Qt.get(`${$t.GET_USER_BY_ID}?userId=${e}`)),resendOTP:e=>(console.log("authAPI.resendOTP - Sending request with data:",JSON.stringify(e,null,2)),Qt.post($t.RESEND_OTP,e)),getReferralLink:()=>(console.log("authAPI.getReferralLink - Sending request"),Qt.get($t.REFERRAL_LINK)),getUserByUsername:e=>(console.log("authAPI.getUserByUsername - Sending request with username:",e),Qt.get(`${$t.GET_USER_BY_USERNAME}?username=${e}`))},rc={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:",rc.user);console.log("Initial state token:",rc.token);console.log("Initial state isAuthenticated:",rc.isAuthenticated);console.log("==========================");const cu=jr("user/login",async(e,{dispatch:n,rejectWithValue:a})=>{console.log("loginUser - Attempting login with credentials:",e);const s=ta("Logging in...");try{const o=await Jt.login(e);Ot(s);const{user:u,token:c}=o.data;if(!Be.createSession(c,u))throw new Error("Failed to create user session");return console.log("loginUser - Success, user:",u),ea("Login successful!"),{user:u,token:c}}catch(o){Ot(s);const u=o.response?.data||{message:o.message||"Login failed"};return console.log("loginUser - Error:",u),mn(u.message||"Login failed"),a(u.message||"Login failed")}}),du=jr("user/signup",async(e,{rejectWithValue:n})=>{const a=ta("Creating account...");try{const s=await Jt.signup(e);return Ot(a),Be.setSignupEmail(e.email),console.log("signupUser - Email stored in session:",e.email),console.log("signupUser - Verify email in localStorage:",localStorage.getItem("signup_email")),s.data.userId&&localStorage.setItem("signupUserId",s.data.userId),ea(s.data.message||"OTP sent. Please verify to complete registration."),s.data}catch(s){Ot(a);const o=s.response?.data||{message:s.message||"Signup failed"};return console.log("signupUser - Error:",o),n(o)}}),fu=jr("user/verifyOTP",async(e,{dispatch:n,rejectWithValue:a})=>{const s=ta("Verifying OTP...");try{const o=await Jt.verifyOTP(e);return Ot(s),Be.removeSignupEmail(),console.log("verifyOTP - Response data:",o.data),ea(o.data.message||"Registration completed successfully!"),o.data}catch(o){Ot(s);const u=o.response?.data||{message:o.message||"OTP verification failed"};return mn(u.message||"OTP verification failed"),a(u.message||"OTP verification failed")}}),hu=jr("user/forgotPassword",async(e,{rejectWithValue:n})=>{const a=ta("Sending password reset OTP...");try{const s=await Jt.forgotPassword(e);return Ot(a),Be.setSignupEmail(e.email),s.data.userId&&localStorage.setItem("signupUserId",s.data.userId),ea(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 mn(o.message||"Failed to send reset OTP"),n(o.message||"Failed to send reset OTP")}}),mu=jr("user/resetPassword",async(e,{rejectWithValue:n})=>{const a=ta("Resetting password...");try{const s=await Jt.resetPassword(e);return Ot(a),Be.removeSignupEmail(),localStorage.removeItem("signupUserId"),ea(s.data.message||"Password reset successful."),s.data}catch(s){Ot(a);const o=s.response?.data||{message:s.message||"Password reset failed"};return mn(o.message||"Password reset failed"),n(o.message||"Password reset failed")}}),pu=jr("user/logout",async(e,{rejectWithValue:n})=>{const a=ta("Logging out...");try{return Be.clearSession(),Ot(a),ea("Logged out successfully"),{message:"Logged out successfully"}}catch(s){Ot(a);const o=s.message||"Logout failed";return mn(o),n(o)}}),Ri=jr("user/checkCurrentUser",async(e,{rejectWithValue:n})=>{try{const a=await Jt.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")}}),gu=jr("user/resendOTP",async(e,{rejectWithValue:n})=>{const a=ta("Resending OTP...");try{const s=await Jt.resendOTP({email:e});return Ot(a),ea(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 mn(o.message||"Failed to resend OTP"),n(o.message||"Failed to resend OTP")}}),Ci=jr("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(),u=Be.getUser(),c=Be.isAuthenticated();if(!o||!u||!c)return console.log("fetchReferralTree - No valid session"),n("No valid session");const f=ta("Loading referral tree...");try{const h=await Jt.getReferralTree();return Ot(f),console.log("fetchReferralTree - Success:",h.data),h.data}catch{console.log("fetchReferralTree - API call failed, trying fetch directly");try{const p=Be.getToken().replace(/['"]/g,""),g=await fetch(`${dm}/user/referral-tree`,{method:"GET",headers:{Authorization:`Bearer ${p}`,"Content-Type":"application/json"}});if(g.ok){const v=await g.json();return Ot(f),console.log("fetchReferralTree - Fetch call succeeded:",v),v}else{const v=await g.json();return console.log("fetchReferralTree - Fetch call failed:",g.status,v),Ot(f),mn(v.message||"Failed to load referral tree"),n(v.message||"Failed to load referral tree")}}catch(p){return console.log("fetchReferralTree - Fetch call also failed:",p),Ot(f),mn(p.message||"Failed to load referral tree"),n(p.message||"Failed to load referral tree")}}}),s1=Xj({name:"user",initialState:rc,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"),ea("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(cu.pending,n=>{n.loading=!0,n.error=null,console.log("loginUser - Pending")}).addCase(cu.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(cu.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("loginUser - Rejected:",a.payload)}).addCase(du.pending,n=>{n.loading=!0,n.error=null,console.log("signupUser - Pending")}).addCase(du.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(du.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("signupUser - Rejected:",a.payload)}).addCase(fu.pending,n=>{n.loading=!0,n.error=null,console.log("verifyOTP - Pending")}).addCase(fu.fulfilled,(n,a)=>{n.loading=!1,n.user=a.payload.user,n.token=a.payload.token,n.isAuthenticated=!0,n.signupEmail=null,n.error=null,console.log("verifyOTP - Fulfilled, user:",a.payload.user)}).addCase(fu.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("verifyOTP - Rejected:",a.payload)}).addCase(hu.pending,n=>{n.loading=!0,n.error=null,console.log("forgotPassword - Pending")}).addCase(hu.fulfilled,(n,a)=>{n.loading=!1,n.signupEmail=Be.getSignupEmail(),n.error=null,console.log("forgotPassword - Fulfilled, signupEmail:",n.signupEmail)}).addCase(hu.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("forgotPassword - Rejected:",a.payload)}).addCase(mu.pending,n=>{n.loading=!0,n.error=null,console.log("resetPassword - Pending")}).addCase(mu.fulfilled,(n,a)=>{n.loading=!1,n.signupEmail=null,n.error=null,console.log("resetPassword - Fulfilled")}).addCase(mu.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("resetPassword - Rejected:",a.payload)}).addCase(pu.pending,n=>{n.loading=!0,n.error=null,console.log("logoutUser - Pending")}).addCase(pu.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(pu.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(Ri.pending,n=>{n.loading=!0,n.error=null,console.log("checkCurrentUser - Pending")}).addCase(Ri.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(Ri.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(Ci.pending,n=>{n.referralTreeLoading=!0,n.referralTreeError=null,n.referralTreeAttempted=!0,console.log("fetchReferralTree - Pending")}).addCase(Ci.fulfilled,(n,a)=>{n.referralTreeLoading=!1,n.referralTree=a.payload.referralTree,n.referralTreeError=null,console.log("fetchReferralTree - Fulfilled")}).addCase(Ci.rejected,(n,a)=>{n.referralTreeLoading=!1,n.referralTreeError=a.payload,n.referralTreeAttempted=!0,console.log("fetchReferralTree - Rejected:",a.payload)}).addCase(gu.pending,n=>{n.loading=!0,n.error=null,console.log("resendOTP - Pending")}).addCase(gu.fulfilled,(n,a)=>{n.loading=!1,n.error=null,console.log("resendOTP - Fulfilled")}).addCase(gu.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("resendOTP - Rejected:",a.payload)})}}),{setUser:gD,setToken:yD,logout:vD,clearError:La,setLoading:Bf,clearSignupEmail:LE,clearReferralTree:xD,syncWithSession:jv,resetReferralTreeAttempt:PE}=s1.actions,fm=e=>e.user.user,o1=e=>e.user.token,hm=e=>e.user.isAuthenticated,Hi=e=>e.user.loading,ko=e=>e.user.error,l1=e=>e.user.signupEmail,zE=e=>e.user.referralTree,UE=e=>e.user.referralTreeLoading,BE=e=>e.user.referralTreeError,FE=s1.reducer,VE=Mj({reducer:{user:FE},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 Tv="popstate";function HE(e={}){function n(s,o){let{pathname:u,search:c,hash:f}=s.location;return Ch("",{pathname:u,search:c,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 qE(n,a,null,e)}function lt(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function kn(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function IE(){return Math.random().toString(36).substring(2,10)}function Ev(e,n){return{usr:e.state,key:e.key,idx:n}}function Ch(e,n,a=null,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Ii(n):n,state:a,key:n&&n.key||s||IE()}}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 Ii(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 qE(e,n,a,s={}){let{window:o=document.defaultView,v5Compat:u=!1}=s,c=o.history,f="POP",h=null,p=g();p==null&&(p=0,c.replaceState({...c.state,idx:p},""));function g(){return(c.state||{idx:null}).idx}function v(){f="POP";let N=g(),A=N==null?null:N-p;p=N,h&&h({action:f,location:S.location,delta:A})}function b(N,A){f="PUSH";let M=Ch(S.location,N,A);p=g()+1;let L=Ev(M,p),G=S.createHref(M);try{c.pushState(L,"",G)}catch(T){if(T instanceof DOMException&&T.name==="DataCloneError")throw T;o.location.assign(G)}u&&h&&h({action:f,location:S.location,delta:1})}function j(N,A){f="REPLACE";let M=Ch(S.location,N,A);p=g();let L=Ev(M,p),G=S.createHref(M);c.replaceState(L,"",G),u&&h&&h({action:f,location:S.location,delta:0})}function _(N){return GE(N)}let S={get action(){return f},get location(){return e(o,c)},listen(N){if(h)throw new Error("A history only accepts one active listener");return o.addEventListener(Tv,v),h=N,()=>{o.removeEventListener(Tv,v),h=null}},createHref(N){return n(o,N)},createURL:_,encodeLocation(N){let A=_(N);return{pathname:A.pathname,search:A.search,hash:A.hash}},push:b,replace:j,go(N){return c.go(N)}};return S}function GE(e,n=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),lt(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 u1(e,n,a="/"){return YE(e,n,a,!1)}function YE(e,n,a,s){let o=typeof n=="string"?Ii(n):n,u=xr(o.pathname||"/",a);if(u==null)return null;let c=c1(e);KE(c);let f=null;for(let h=0;f==null&&h<c.length;++h){let p=aA(u);f=nA(c[h],p,s)}return f}function c1(e,n=[],a=[],s=""){let o=(u,c,f)=>{let h={relativePath:f===void 0?u.path||"":f,caseSensitive:u.caseSensitive===!0,childrenIndex:c,route:u};h.relativePath.startsWith("/")&&(lt(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 p=gr([s,h.relativePath]),g=a.concat(h);u.children&&u.children.length>0&&(lt(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),c1(u.children,n,g,p)),!(u.path==null&&!u.index)&&n.push({path:p,score:eA(p,u.index),routesMeta:g})};return e.forEach((u,c)=>{if(u.path===""||!u.path?.includes("?"))o(u,c);else for(let f of d1(u.path))o(u,c,f)}),n}function d1(e){let n=e.split("/");if(n.length===0)return[];let[a,...s]=n,o=a.endsWith("?"),u=a.replace(/\?$/,"");if(s.length===0)return o?[u,""]:[u];let c=d1(s.join("/")),f=[];return f.push(...c.map(h=>h===""?u:[u,h].join("/"))),o&&f.push(...c),f.map(h=>e.startsWith("/")&&h===""?"/":h)}function KE(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:tA(n.routesMeta.map(s=>s.childrenIndex),a.routesMeta.map(s=>s.childrenIndex)))}var WE=/^:[\w-]+$/,XE=3,ZE=2,$E=1,QE=10,JE=-2,Av=e=>e==="*";function eA(e,n){let a=e.split("/"),s=a.length;return a.some(Av)&&(s+=JE),n&&(s+=ZE),a.filter(o=>!Av(o)).reduce((o,u)=>o+(WE.test(u)?XE:u===""?$E:QE),s)}function tA(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 nA(e,n,a=!1){let{routesMeta:s}=e,o={},u="/",c=[];for(let f=0;f<s.length;++f){let h=s[f],p=f===s.length-1,g=u==="/"?n:n.slice(u.length)||"/",v=Cu({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),b=h.route;if(!v&&p&&a&&!s[s.length-1].route.index&&(v=Cu({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!v)return null;Object.assign(o,v.params),c.push({params:o,pathname:gr([u,v.pathname]),pathnameBase:lA(gr([u,v.pathnameBase])),route:b}),v.pathnameBase!=="/"&&(u=gr([u,v.pathnameBase]))}return c}function Cu(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,s]=rA(e.path,e.caseSensitive,e.end),o=n.match(a);if(!o)return null;let u=o[0],c=u.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:s.reduce((p,{paramName:g,isOptional:v},b)=>{if(g==="*"){let _=f[b]||"";c=u.slice(0,u.length-_.length).replace(/(.)\/+$/,"$1")}const j=f[b];return v&&!j?p[g]=void 0:p[g]=(j||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:c,pattern:e}}function rA(e,n=!1,a=!0){kn(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,(c,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 aA(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return kn(!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 xr(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 iA(e,n="/"){let{pathname:a,search:s="",hash:o=""}=typeof e=="string"?Ii(e):e;return{pathname:a?a.startsWith("/")?a:sA(a,n):n,search:uA(s),hash:cA(o)}}function sA(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 Ff(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 oA(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function mm(e){let n=oA(e);return n.map((a,s)=>s===n.length-1?a.pathname:a.pathnameBase)}function pm(e,n,a,s=!1){let o;typeof e=="string"?o=Ii(e):(o={...e},lt(!o.pathname||!o.pathname.includes("?"),Ff("?","pathname","search",o)),lt(!o.pathname||!o.pathname.includes("#"),Ff("#","pathname","hash",o)),lt(!o.search||!o.search.includes("#"),Ff("#","search","hash",o)));let u=e===""||o.pathname==="",c=u?"/":o.pathname,f;if(c==null)f=a;else{let v=n.length-1;if(!s&&c.startsWith("..")){let b=c.split("/");for(;b[0]==="..";)b.shift(),v-=1;o.pathname=b.join("/")}f=v>=0?n[v]:"/"}let h=iA(o,f),p=c&&c!=="/"&&c.endsWith("/"),g=(u||c===".")&&a.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}var gr=e=>e.join("/").replace(/\/\/+/g,"/"),lA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),uA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,cA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function dA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var f1=["POST","PUT","PATCH","DELETE"];new Set(f1);var fA=["GET",...f1];new Set(fA);var qi=K.createContext(null);qi.displayName="DataRouter";var ac=K.createContext(null);ac.displayName="DataRouterState";K.createContext(!1);var h1=K.createContext({isTransitioning:!1});h1.displayName="ViewTransition";var hA=K.createContext(new Map);hA.displayName="Fetchers";var mA=K.createContext(null);mA.displayName="Await";var Fn=K.createContext(null);Fn.displayName="Navigation";var Oo=K.createContext(null);Oo.displayName="Location";var Vn=K.createContext({outlet:null,matches:[],isDataRoute:!1});Vn.displayName="Route";var gm=K.createContext(null);gm.displayName="RouteError";function pA(e,{relative:n}={}){lt(Gi(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:s}=K.useContext(Fn),{hash:o,pathname:u,search:c}=Ro(e,{relative:n}),f=u;return a!=="/"&&(f=u==="/"?a:gr([a,u])),s.createHref({pathname:f,search:c,hash:o})}function Gi(){return K.useContext(Oo)!=null}function Rn(){return lt(Gi(),"useLocation() may be used only in the context of a <Router> component."),K.useContext(Oo).location}var m1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function p1(e){K.useContext(Fn).static||K.useLayoutEffect(e)}function $n(){let{isDataRoute:e}=K.useContext(Vn);return e?kA():gA()}function gA(){lt(Gi(),"useNavigate() may be used only in the context of a <Router> component.");let e=K.useContext(qi),{basename:n,navigator:a}=K.useContext(Fn),{matches:s}=K.useContext(Vn),{pathname:o}=Rn(),u=JSON.stringify(mm(s)),c=K.useRef(!1);return p1(()=>{c.current=!0}),K.useCallback((h,p={})=>{if(kn(c.current,m1),!c.current)return;if(typeof h=="number"){a.go(h);return}let g=pm(h,JSON.parse(u),o,p.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:gr([n,g.pathname])),(p.replace?a.replace:a.push)(g,p.state,p)},[n,a,u,o,e])}K.createContext(null);function yA(){let{matches:e}=K.useContext(Vn),n=e[e.length-1];return n?n.params:{}}function Ro(e,{relative:n}={}){let{matches:a}=K.useContext(Vn),{pathname:s}=Rn(),o=JSON.stringify(mm(a));return K.useMemo(()=>pm(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function vA(e,n){return g1(e,n)}function g1(e,n,a,s){lt(Gi(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=K.useContext(Fn),{matches:u}=K.useContext(Vn),c=u[u.length-1],f=c?c.params:{},h=c?c.pathname:"/",p=c?c.pathnameBase:"/",g=c&&c.route;{let A=g&&g.path||"";y1(h,!g||A.endsWith("*")||A.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${A}">) 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="${A}"> to <Route path="${A==="/"?"*":`${A}/*`}">.`)}let v=Rn(),b;if(n){let A=typeof n=="string"?Ii(n):n;lt(p==="/"||A.pathname?.startsWith(p),`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 "${p}" but pathname "${A.pathname}" was given in the \`location\` prop.`),b=A}else b=v;let j=b.pathname||"/",_=j;if(p!=="/"){let A=p.replace(/^\//,"").split("/");_="/"+j.replace(/^\//,"").split("/").slice(A.length).join("/")}let S=u1(e,{pathname:_});kn(g||S!=null,`No routes matched location "${b.pathname}${b.search}${b.hash}" `),kn(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 N=jA(S&&S.map(A=>Object.assign({},A,{params:Object.assign({},f,A.params),pathname:gr([p,o.encodeLocation?o.encodeLocation(A.pathname).pathname:A.pathname]),pathnameBase:A.pathnameBase==="/"?p:gr([p,o.encodeLocation?o.encodeLocation(A.pathnameBase).pathname:A.pathnameBase])})),u,a,s);return n&&N?K.createElement(Oo.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...b},navigationType:"POP"}},N):N}function xA(){let e=_A(),n=dA(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},u={padding:"2px 4px",backgroundColor:s},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=K.createElement(K.Fragment,null,K.createElement("p",null,"💿 Hey developer 👋"),K.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",K.createElement("code",{style:u},"ErrorBoundary")," or"," ",K.createElement("code",{style:u},"errorElement")," prop on your route.")),K.createElement(K.Fragment,null,K.createElement("h2",null,"Unexpected Application Error!"),K.createElement("h3",{style:{fontStyle:"italic"}},n),a?K.createElement("pre",{style:o},a):null,c)}var bA=K.createElement(xA,null),wA=class extends K.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?K.createElement(Vn.Provider,{value:this.props.routeContext},K.createElement(gm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function SA({routeContext:e,match:n,children:a}){let s=K.useContext(qi);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),K.createElement(Vn.Provider,{value:e},a)}function jA(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,u=a?.errors;if(u!=null){let h=o.findIndex(p=>p.route.id&&u?.[p.route.id]!==void 0);lt(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),o=o.slice(0,Math.min(o.length,h+1))}let c=!1,f=-1;if(a)for(let h=0;h<o.length;h++){let p=o[h];if((p.route.HydrateFallback||p.route.hydrateFallbackElement)&&(f=h),p.route.id){let{loaderData:g,errors:v}=a,b=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!v||v[p.route.id]===void 0);if(p.route.lazy||b){c=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}return o.reduceRight((h,p,g)=>{let v,b=!1,j=null,_=null;a&&(v=u&&p.route.id?u[p.route.id]:void 0,j=p.route.errorElement||bA,c&&(f<0&&g===0?(y1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,_=null):f===g&&(b=!0,_=p.route.hydrateFallbackElement||null)));let S=n.concat(o.slice(0,g+1)),N=()=>{let A;return v?A=j:b?A=_:p.route.Component?A=K.createElement(p.route.Component,null):p.route.element?A=p.route.element:A=h,K.createElement(SA,{match:p,routeContext:{outlet:h,matches:S,isDataRoute:a!=null},children:A})};return a&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?K.createElement(wA,{location:a.location,revalidation:a.revalidation,component:j,error:v,children:N(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):N()},null)}function ym(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function TA(e){let n=K.useContext(qi);return lt(n,ym(e)),n}function EA(e){let n=K.useContext(ac);return lt(n,ym(e)),n}function AA(e){let n=K.useContext(Vn);return lt(n,ym(e)),n}function vm(e){let n=AA(e),a=n.matches[n.matches.length-1];return lt(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function NA(){return vm("useRouteId")}function _A(){let e=K.useContext(gm),n=EA("useRouteError"),a=vm("useRouteError");return e!==void 0?e:n.errors?.[a]}function kA(){let{router:e}=TA("useNavigate"),n=vm("useNavigate"),a=K.useRef(!1);return p1(()=>{a.current=!0}),K.useCallback(async(o,u={})=>{kn(a.current,m1),a.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...u}))},[e,n])}var Nv={};function y1(e,n,a){!n&&!Nv[e]&&(Nv[e]=!0,kn(!1,a))}K.memo(OA);function OA({routes:e,future:n,state:a}){return g1(e,void 0,a,n)}function Ks({to:e,replace:n,state:a,relative:s}){lt(Gi(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=K.useContext(Fn);kn(!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:u}=K.useContext(Vn),{pathname:c}=Rn(),f=$n(),h=pm(e,mm(u),c,s==="path"),p=JSON.stringify(h);return K.useEffect(()=>{f(JSON.parse(p),{replace:n,state:a,relative:s})},[f,p,s,n,a]),null}function mt(e){lt(!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 RA({basename:e="/",children:n=null,location:a,navigationType:s="POP",navigator:o,static:u=!1}){lt(!Gi(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=K.useMemo(()=>({basename:c,navigator:o,static:u,future:{}}),[c,o,u]);typeof a=="string"&&(a=Ii(a));let{pathname:h="/",search:p="",hash:g="",state:v=null,key:b="default"}=a,j=K.useMemo(()=>{let _=xr(h,c);return _==null?null:{location:{pathname:_,search:p,hash:g,state:v,key:b},navigationType:s}},[c,h,p,g,v,b,s]);return kn(j!=null,`<Router basename="${c}"> is not able to match the URL "${h}${p}${g}" because it does not start with the basename, so the <Router> won't render anything.`),j==null?null:K.createElement(Fn.Provider,{value:f},K.createElement(Oo.Provider,{children:n,value:j}))}function CA({children:e,location:n}){return vA(Dh(e),n)}function Dh(e,n=[]){let a=[];return K.Children.forEach(e,(s,o)=>{if(!K.isValidElement(s))return;let u=[...n,o];if(s.type===K.Fragment){a.push.apply(a,Dh(s.props.children,u));return}lt(s.type===mt,`[${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>`),lt(!s.props.index||!s.props.children,"An index route cannot have child routes.");let c={id:s.props.id||u.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&&(c.children=Dh(s.props.children,u)),a.push(c)}),a}var yu="get",vu="application/x-www-form-urlencoded";function ic(e){return e!=null&&typeof e.tagName=="string"}function DA(e){return ic(e)&&e.tagName.toLowerCase()==="button"}function MA(e){return ic(e)&&e.tagName.toLowerCase()==="form"}function LA(e){return ic(e)&&e.tagName.toLowerCase()==="input"}function PA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zA(e,n){return e.button===0&&(!n||n==="_self")&&!PA(e)}function Mh(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 UA(e,n){let a=Mh(e);return n&&n.forEach((s,o)=>{a.has(o)||n.getAll(o).forEach(u=>{a.append(o,u)})}),a}var Jl=null;function BA(){if(Jl===null)try{new FormData(document.createElement("form"),0),Jl=!1}catch{Jl=!0}return Jl}var FA=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vf(e){return e!=null&&!FA.has(e)?(kn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${vu}"`),null):e}function VA(e,n){let a,s,o,u,c;if(MA(e)){let f=e.getAttribute("action");s=f?xr(f,n):null,a=e.getAttribute("method")||yu,o=Vf(e.getAttribute("enctype"))||vu,u=new FormData(e)}else if(DA(e)||LA(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?xr(h,n):null,a=e.getAttribute("formmethod")||f.getAttribute("method")||yu,o=Vf(e.getAttribute("formenctype"))||Vf(f.getAttribute("enctype"))||vu,u=new FormData(f,e),!BA()){let{name:p,type:g,value:v}=e;if(g==="image"){let b=p?`${p}.`:"";u.append(`${b}x`,"0"),u.append(`${b}y`,"0")}else p&&u.append(p,v)}}else{if(ic(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=yu,s=null,o=vu,c=e}return u&&o==="text/plain"&&(c=u,u=void 0),{action:s,method:a.toLowerCase(),encType:o,formData:u,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function xm(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function HA(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&&xr(s.pathname,n)==="/"?s.pathname=`${n.replace(/\/$/,"")}/_root.${a}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${a}`,s}async function IA(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 qA(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 GA(e,n,a){let s=await Promise.all(e.map(async o=>{let u=n.routes[o.route.id];if(u){let c=await IA(u,a);return c.links?c.links():[]}return[]}));return XA(s.flat(1).filter(qA).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function _v(e,n,a,s,o,u){let c=(h,p)=>a[p]?h.route.id!==a[p].route.id:!0,f=(h,p)=>a[p].pathname!==h.pathname||a[p].route.path?.endsWith("*")&&a[p].params["*"]!==h.params["*"];return u==="assets"?n.filter((h,p)=>c(h,p)||f(h,p)):u==="data"?n.filter((h,p)=>{let g=s.routes[h.route.id];if(!g||!g.hasLoader)return!1;if(c(h,p)||f(h,p))return!0;if(h.route.shouldRevalidate){let v=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 v=="boolean")return v}return!0}):[]}function YA(e,n,{includeHydrateFallback:a}={}){return KA(e.map(s=>{let o=n.routes[s.route.id];if(!o)return[];let u=[o.module];return o.clientActionModule&&(u=u.concat(o.clientActionModule)),o.clientLoaderModule&&(u=u.concat(o.clientLoaderModule)),a&&o.hydrateFallbackModule&&(u=u.concat(o.hydrateFallbackModule)),o.imports&&(u=u.concat(o.imports)),u}).flat(1))}function KA(e){return[...new Set(e)]}function WA(e){let n={},a=Object.keys(e).sort();for(let s of a)n[s]=e[s];return n}function XA(e,n){let a=new Set;return new Set(n),e.reduce((s,o)=>{let u=JSON.stringify(WA(o));return a.has(u)||(a.add(u),s.push({key:u,link:o})),s},[])}function v1(){let e=K.useContext(qi);return xm(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function ZA(){let e=K.useContext(ac);return xm(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var bm=K.createContext(void 0);bm.displayName="FrameworkContext";function x1(){let e=K.useContext(bm);return xm(e,"You must render this element inside a <HydratedRouter> element"),e}function $A(e,n){let a=K.useContext(bm),[s,o]=K.useState(!1),[u,c]=K.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:p,onMouseLeave:g,onTouchStart:v}=n,b=K.useRef(null);K.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let S=A=>{A.forEach(M=>{c(M.isIntersecting)})},N=new IntersectionObserver(S,{threshold:.5});return b.current&&N.observe(b.current),()=>{N.disconnect()}}},[e]),K.useEffect(()=>{if(s){let S=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(S)}}},[s]);let j=()=>{o(!0)},_=()=>{o(!1),c(!1)};return a?e!=="intent"?[u,b,{}]:[u,b,{onFocus:Ws(f,j),onBlur:Ws(h,_),onMouseEnter:Ws(p,j),onMouseLeave:Ws(g,_),onTouchStart:Ws(v,j)}]:[!1,b,{}]}function Ws(e,n){return a=>{e&&e(a),a.defaultPrevented||n(a)}}function QA({page:e,...n}){let{router:a}=v1(),s=K.useMemo(()=>u1(a.routes,e,a.basename),[a.routes,e,a.basename]);return s?K.createElement(eN,{page:e,matches:s,...n}):null}function JA(e){let{manifest:n,routeModules:a}=x1(),[s,o]=K.useState([]);return K.useEffect(()=>{let u=!1;return GA(e,n,a).then(c=>{u||o(c)}),()=>{u=!0}},[e,n,a]),s}function eN({page:e,matches:n,...a}){let s=Rn(),{manifest:o,routeModules:u}=x1(),{basename:c}=v1(),{loaderData:f,matches:h}=ZA(),p=K.useMemo(()=>_v(e,n,h,o,s,"data"),[e,n,h,o,s]),g=K.useMemo(()=>_v(e,n,h,o,s,"assets"),[e,n,h,o,s]),v=K.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let _=new Set,S=!1;if(n.forEach(A=>{let M=o.routes[A.route.id];!M||!M.hasLoader||(!p.some(L=>L.route.id===A.route.id)&&A.route.id in f&&u[A.route.id]?.shouldRevalidate||M.hasClientLoader?S=!0:_.add(A.route.id))}),_.size===0)return[];let N=HA(e,c,"data");return S&&_.size>0&&N.searchParams.set("_routes",n.filter(A=>_.has(A.route.id)).map(A=>A.route.id).join(",")),[N.pathname+N.search]},[c,f,s,o,p,n,e,u]),b=K.useMemo(()=>YA(g,o),[g,o]),j=JA(g);return K.createElement(K.Fragment,null,v.map(_=>K.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...a})),b.map(_=>K.createElement("link",{key:_,rel:"modulepreload",href:_,...a})),j.map(({key:_,link:S})=>K.createElement("link",{key:_,...S})))}function tN(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var b1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{b1&&(window.__reactRouterVersion="7.7.0")}catch{}function nN({basename:e,children:n,window:a}){let s=K.useRef();s.current==null&&(s.current=HE({window:a,v5Compat:!0}));let o=s.current,[u,c]=K.useState({action:o.action,location:o.location}),f=K.useCallback(h=>{K.startTransition(()=>c(h))},[c]);return K.useLayoutEffect(()=>o.listen(f),[o,f]),K.createElement(RA,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:o})}var w1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pt=K.forwardRef(function({onClick:n,discover:a="render",prefetch:s="none",relative:o,reloadDocument:u,replace:c,state:f,target:h,to:p,preventScrollReset:g,viewTransition:v,...b},j){let{basename:_}=K.useContext(Fn),S=typeof p=="string"&&w1.test(p),N,A=!1;if(typeof p=="string"&&S&&(N=p,b1))try{let D=new URL(window.location.href),R=p.startsWith("//")?new URL(D.protocol+p):new URL(p),X=xr(R.pathname,_);R.origin===D.origin&&X!=null?p=X+R.search+R.hash:A=!0}catch{kn(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let M=pA(p,{relative:o}),[L,G,T]=$A(s,b),P=iN(p,{replace:c,state:f,target:h,preventScrollReset:g,relative:o,viewTransition:v});function z(D){n&&n(D),D.defaultPrevented||P(D)}let B=K.createElement("a",{...b,...T,href:N||M,onClick:A||u?n:z,ref:tN(j,G),target:h,"data-discover":!S&&a==="render"?"true":void 0});return L&&!S?K.createElement(K.Fragment,null,B,K.createElement(QA,{page:M})):B});pt.displayName="Link";var S1=K.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:s="",end:o=!1,style:u,to:c,viewTransition:f,children:h,...p},g){let v=Ro(c,{relative:p.relative}),b=Rn(),j=K.useContext(ac),{navigator:_,basename:S}=K.useContext(Fn),N=j!=null&&cN(v)&&f===!0,A=_.encodeLocation?_.encodeLocation(v).pathname:v.pathname,M=b.pathname,L=j&&j.navigation&&j.navigation.location?j.navigation.location.pathname:null;a||(M=M.toLowerCase(),L=L?L.toLowerCase():null,A=A.toLowerCase()),L&&S&&(L=xr(L,S)||L);const G=A!=="/"&&A.endsWith("/")?A.length-1:A.length;let T=M===A||!o&&M.startsWith(A)&&M.charAt(G)==="/",P=L!=null&&(L===A||!o&&L.startsWith(A)&&L.charAt(A.length)==="/"),z={isActive:T,isPending:P,isTransitioning:N},B=T?n:void 0,D;typeof s=="function"?D=s(z):D=[s,T?"active":null,P?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let R=typeof u=="function"?u(z):u;return K.createElement(pt,{...p,"aria-current":B,className:D,ref:g,style:R,to:c,viewTransition:f},typeof h=="function"?h(z):h)});S1.displayName="NavLink";var rN=K.forwardRef(({discover:e="render",fetcherKey:n,navigate:a,reloadDocument:s,replace:o,state:u,method:c=yu,action:f,onSubmit:h,relative:p,preventScrollReset:g,viewTransition:v,...b},j)=>{let _=lN(),S=uN(f,{relative:p}),N=c.toLowerCase()==="get"?"get":"post",A=typeof f=="string"&&w1.test(f),M=L=>{if(h&&h(L),L.defaultPrevented)return;L.preventDefault();let G=L.nativeEvent.submitter,T=G?.getAttribute("formmethod")||c;_(G||L.currentTarget,{fetcherKey:n,method:T,navigate:a,replace:o,state:u,relative:p,preventScrollReset:g,viewTransition:v})};return K.createElement("form",{ref:j,method:N,action:S,onSubmit:s?h:M,...b,"data-discover":!A&&e==="render"?"true":void 0})});rN.displayName="Form";function aN(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function j1(e){let n=K.useContext(qi);return lt(n,aN(e)),n}function iN(e,{target:n,replace:a,state:s,preventScrollReset:o,relative:u,viewTransition:c}={}){let f=$n(),h=Rn(),p=Ro(e,{relative:u});return K.useCallback(g=>{if(zA(g,n)){g.preventDefault();let v=a!==void 0?a:po(h)===po(p);f(e,{replace:v,state:s,preventScrollReset:o,relative:u,viewTransition:c})}},[h,f,p,a,s,n,e,o,u,c])}function T1(e){kn(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=K.useRef(Mh(e)),a=K.useRef(!1),s=Rn(),o=K.useMemo(()=>UA(s.search,a.current?null:n.current),[s.search]),u=$n(),c=K.useCallback((f,h)=>{const p=Mh(typeof f=="function"?f(new URLSearchParams(o)):f);a.current=!0,u("?"+p,h)},[u,o]);return[o,c]}var sN=0,oN=()=>`__${String(++sN)}__`;function lN(){let{router:e}=j1("useSubmit"),{basename:n}=K.useContext(Fn),a=NA();return K.useCallback(async(s,o={})=>{let{action:u,method:c,encType:f,formData:h,body:p}=VA(s,n);if(o.navigate===!1){let g=o.fetcherKey||oN();await e.fetch(g,a,o.action||u,{preventScrollReset:o.preventScrollReset,formData:h,body:p,formMethod:o.method||c,formEncType:o.encType||f,flushSync:o.flushSync})}else await e.navigate(o.action||u,{preventScrollReset:o.preventScrollReset,formData:h,body:p,formMethod:o.method||c,formEncType:o.encType||f,replace:o.replace,state:o.state,fromRouteId:a,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,n,a])}function uN(e,{relative:n}={}){let{basename:a}=K.useContext(Fn),s=K.useContext(Vn);lt(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),u={...Ro(e||".",{relative:n})},c=Rn();if(e==null){u.search=c.search;let f=new URLSearchParams(u.search),h=f.getAll("index");if(h.some(g=>g==="")){f.delete("index"),h.filter(v=>v).forEach(v=>f.append("index",v));let g=f.toString();u.search=g?`?${g}`:""}}return(!e||e===".")&&o.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(u.pathname=u.pathname==="/"?a:gr([a,u.pathname])),po(u)}function cN(e,n={}){let a=K.useContext(h1);lt(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=j1("useViewTransitionState"),o=Ro(e,{relative:n.relative});if(!a.isTransitioning)return!1;let u=xr(a.currentLocation.pathname,s)||a.currentLocation.pathname,c=xr(a.nextLocation.pathname,s)||a.nextLocation.pathname;return Cu(o.pathname,c)!=null||Cu(o.pathname,u)!=null}const E1=K.createContext(),dN=({children:e})=>{const[n,a]=K.useState(()=>localStorage.getItem("theme")||"light");K.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(E1.Provider,{value:{theme:n,toggleTheme:s},children:e})},Yi=()=>K.useContext(E1),fN="/assets/logo-C1IfLRO8.png";var A1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},kv=_a.createContext&&_a.createContext(A1),hN=["attr","size","title"];function mN(e,n){if(e==null)return{};var a=pN(e,n),s,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)s=u[o],!(n.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(a[s]=e[s])}return a}function pN(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 Du(){return Du=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},Du.apply(this,arguments)}function Ov(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 Mu(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Ov(Object(a),!0).forEach(function(s){gN(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Ov(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}function gN(e,n,a){return n=yN(n),n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function yN(e){var n=vN(e,"string");return typeof n=="symbol"?n:n+""}function vN(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 N1(e){return e&&e.map((n,a)=>_a.createElement(n.tag,Mu({key:a},n.attr),N1(n.child)))}function at(e){return n=>_a.createElement(xN,Du({attr:Mu({},e.attr)},n),N1(e.child))}function xN(e){var n=a=>{var{attr:s,size:o,title:u}=e,c=mN(e,hN),f=o||a.size||"1em",h;return a.className&&(h=a.className),e.className&&(h=(h?h+" ":"")+e.className),_a.createElement("svg",Du({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,s,c,{className:h,style:Mu(Mu({color:e.color||a.color},a.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&_a.createElement("title",null,u),e.children)};return kv!==void 0?_a.createElement(kv.Consumer,null,a=>n(a)):n(A1)}function bN(e){return at({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 wN(e){return at({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 SN=()=>{const e=Rn(),n=Sr(),a=st(hm),s=st(fm),{theme:o,toggleTheme:u}=Yi(),[c,f]=K.useState(!1),h=()=>f(!c),p=()=>n(pu()),g=()=>window.scrollTo(0,0),v=[{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("img",{src:fN,alt:"Logo",className:"w-12 h-12 sm:w-14 sm:h-14"})}),d.jsx("ul",{className:"flex gap-6 text-base font-medium mr-4 max-lg:hidden",children:v.map(b=>d.jsx("li",{children:d.jsx(pt,{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(pt,{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:p,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(pt,{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(pt,{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:u,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:c?d.jsx(wN,{}):d.jsx(bN,{})})]}),c&&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:[v.map(b=>d.jsx(pt,{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(pt,{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(pt,{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(pt,{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:()=>{p(),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(pt,{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(pt,{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:u,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 sc(e){return at({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 _1(e){return at({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 k1(e){return at({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 O1(e){return at({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 R1(e){return at({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 C1(e){return at({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 jN(e){return at({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},child:[]}]})(e)}function TN(e){return at({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 Di(e){return at({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 EN(e){return at({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 AN(e){return at({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 NN(e){return at({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 D1(e){return at({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 at({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 at({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 _N(e){return at({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 kN(e){return at({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 M1(e){return at({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 ON(e){return at({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 L1(e){return at({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 RN(e){return at({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 CN(e){return at({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 DN(e){return at({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 P1(e){return at({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 MN="/assets/taxi2-mmWUoSgX.png",LN="/assets/powered-BnbR5ccL.png",PN=()=>{const{theme:e}=Yi(),n=()=>{window.scrollTo({top:0,behavior:"smooth"})},a=[{icon:sc,url:"https://www.facebook.com/AAAOGOINTL?rdid=5c6cGwC8Rj2HeWyR&share_url=https%3A%2F%2Fwww.facebook.com%2Fshare%2F19wGmUZcnH%2F#"},{icon:k1,url:"https://www.instagram.com/aaaogointl/?igsh=dzd1dGJtcXB1OXpn#"},{icon:P1,url:"https://x.com/i/flow/login?redirect_after_login=%2Faaaogointl"},{icon:C1,url:"https://www.tiktok.com/@aaaogointl?_t=ZS-8wxikZG1BBZ&_r=1"},{icon:R1,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(M1,{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(D1,{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},u)=>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"})},u))})]}),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(S1,{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:MN,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:LN,className:"w-5 rounded-full",alt:"powered"})]})})]})};var Xs={},no={exports:{}},zN=no.exports,Rv;function UN(){return Rv||(Rv=1,function(e,n){(function(a,s){s(n)})(zN,function(a){var s=function(){return s=Object.assign||function(u){for(var c,f=1,h=arguments.length;f<h;f++)for(var p in c=arguments[f])Object.prototype.hasOwnProperty.call(c,p)&&(u[p]=c[p]);return u},s.apply(this,arguments)},o=function(){function u(c,f,h){var p=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){p.startTime||(p.startTime=g);var v=g-p.startTime;p.remaining=p.duration-v,p.useEasing?p.countDown?p.frameVal=p.startVal-p.easingFn(v,0,p.startVal-p.endVal,p.duration):p.frameVal=p.easingFn(v,p.startVal,p.endVal-p.startVal,p.duration):p.frameVal=p.startVal+(p.endVal-p.startVal)*(v/p.duration);var b=p.countDown?p.frameVal<p.endVal:p.frameVal>p.endVal;p.frameVal=b?p.endVal:p.frameVal,p.frameVal=Number(p.frameVal.toFixed(p.options.decimalPlaces)),p.printValue(p.frameVal),v<p.duration?p.rAF=requestAnimationFrame(p.count):p.finalEndVal!==null?p.update(p.finalEndVal):p.options.onCompleteCallback&&p.options.onCompleteCallback()},this.formatNumber=function(g){var v,b,j,_,S=g<0?"-":"";v=Math.abs(g).toFixed(p.options.decimalPlaces);var N=(v+="").split(".");if(b=N[0],j=N.length>1?p.options.decimal+N[1]:"",p.options.useGrouping){_="";for(var A=3,M=0,L=0,G=b.length;L<G;++L)p.options.useIndianSeparators&&L===4&&(A=2,M=1),L!==0&&M%A==0&&(_=p.options.separator+_),M++,_=b[G-L-1]+_;b=_}return p.options.numerals&&p.options.numerals.length&&(b=b.replace(/[0-9]/g,function(T){return p.options.numerals[+T]}),j=j.replace(/[0-9]/g,function(T){return p.options.numerals[+T]})),S+p.options.prefix+b+j+p.options.suffix},this.easeOutExpo=function(g,v,b,j){return b*(1-Math.pow(2,-10*g/j))*1024/1023+v},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 c=="string"?document.getElementById(c):c,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,c):(window.onScrollFns=window.onScrollFns||[],window.onScrollFns.push(function(){return p.handleScroll(p)}),window.onscroll=function(){window.onScrollFns.forEach(function(g){return g()})},this.handleScroll(this)))}return u.prototype.handleScroll=function(c){if(c&&window&&!c.once){var f=window.innerHeight+window.scrollY,h=c.el.getBoundingClientRect(),p=h.top+window.pageYOffset,g=h.top+h.height+window.pageYOffset;g<f&&g>window.scrollY&&c.paused?(c.paused=!1,setTimeout(function(){return c.start()},c.options.scrollSpyDelay),c.options.scrollSpyOnce&&(c.once=!0)):(window.scrollY>g||p>f)&&!c.paused&&c.reset()}},u.prototype.determineDirectionAndSmartEasing=function(){var c=this.finalEndVal?this.finalEndVal:this.endVal;this.countDown=this.startVal>c;var f=c-this.startVal;if(Math.abs(f)>this.options.smartEasingThreshold&&this.options.useEasing){this.finalEndVal=c;var h=this.countDown?1:-1;this.endVal=c+h*this.options.smartEasingAmount,this.duration=this.duration/2}else this.endVal=c,this.finalEndVal=null;this.finalEndVal!==null?this.useEasing=!1:this.useEasing=this.options.useEasing},u.prototype.start=function(c){this.error||(this.options.onStartCallback&&this.options.onStartCallback(),c&&(this.options.onCompleteCallback=c),this.duration>0?(this.determineDirectionAndSmartEasing(),this.paused=!1,this.rAF=requestAnimationFrame(this.count)):this.printValue(this.endVal))},u.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},u.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)},u.prototype.update=function(c){cancelAnimationFrame(this.rAF),this.startTime=null,this.endVal=this.validateValue(c),this.endVal!==this.frameVal&&(this.startVal=this.frameVal,this.finalEndVal==null&&this.resetDuration(),this.finalEndVal=null,this.determineDirectionAndSmartEasing(),this.rAF=requestAnimationFrame(this.count))},u.prototype.printValue=function(c){var f;if(this.el){var h=this.formattingFn(c);!((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}},u.prototype.ensureNumber=function(c){return typeof c=="number"&&!isNaN(c)},u.prototype.validateValue=function(c){var f=Number(c);return this.ensureNumber(f)?f:(this.error="[CountUp] invalid start or end value: ".concat(c),null)},u.prototype.resetDuration=function(){this.startTime=null,this.duration=1e3*Number(this.options.duration),this.remaining=this.duration},u.prototype.parse=function(c){var f=function(v){return v.replace(/([.,'  ])/g,"\\$1")},h=f(this.options.separator),p=f(this.options.decimal),g=c.replace(new RegExp(h,"g"),"").replace(new RegExp(p,"g"),".");return parseFloat(g)},u}();a.CountUp=o})}(no,no.exports)),no.exports}var Cv;function BN(){if(Cv)return Xs;Cv=1,Object.defineProperty(Xs,"__esModule",{value:!0});var e=On(),n=UN();function a(B,D){var R=B==null?null:typeof Symbol<"u"&&B[Symbol.iterator]||B["@@iterator"];if(R!=null){var X,U,I,E,$=[],W=!0,w=!1;try{if(I=(R=R.call(B)).next,D!==0)for(;!(W=(X=I.call(R)).done)&&($.push(X.value),$.length!==D);W=!0);}catch(ce){w=!0,U=ce}finally{try{if(!W&&R.return!=null&&(E=R.return(),Object(E)!==E))return}finally{if(w)throw U}}return $}}function s(B,D){var R=Object.keys(B);if(Object.getOwnPropertySymbols){var X=Object.getOwnPropertySymbols(B);D&&(X=X.filter(function(U){return Object.getOwnPropertyDescriptor(B,U).enumerable})),R.push.apply(R,X)}return R}function o(B){for(var D=1;D<arguments.length;D++){var R=arguments[D]!=null?arguments[D]:{};D%2?s(Object(R),!0).forEach(function(X){f(B,X,R[X])}):Object.getOwnPropertyDescriptors?Object.defineProperties(B,Object.getOwnPropertyDescriptors(R)):s(Object(R)).forEach(function(X){Object.defineProperty(B,X,Object.getOwnPropertyDescriptor(R,X))})}return B}function u(B,D){if(typeof B!="object"||!B)return B;var R=B[Symbol.toPrimitive];if(R!==void 0){var X=R.call(B,D);if(typeof X!="object")return X;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(B)}function c(B){var D=u(B,"string");return typeof D=="symbol"?D:String(D)}function f(B,D,R){return D=c(D),D in B?Object.defineProperty(B,D,{value:R,enumerable:!0,configurable:!0,writable:!0}):B[D]=R,B}function h(){return h=Object.assign?Object.assign.bind():function(B){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var X in R)Object.prototype.hasOwnProperty.call(R,X)&&(B[X]=R[X])}return B},h.apply(this,arguments)}function p(B,D){if(B==null)return{};var R={},X=Object.keys(B),U,I;for(I=0;I<X.length;I++)U=X[I],!(D.indexOf(U)>=0)&&(R[U]=B[U]);return R}function g(B,D){if(B==null)return{};var R=p(B,D),X,U;if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(B);for(U=0;U<I.length;U++)X=I[U],!(D.indexOf(X)>=0)&&Object.prototype.propertyIsEnumerable.call(B,X)&&(R[X]=B[X])}return R}function v(B,D){return b(B)||a(B,D)||j(B,D)||S()}function b(B){if(Array.isArray(B))return B}function j(B,D){if(B){if(typeof B=="string")return _(B,D);var R=Object.prototype.toString.call(B).slice(8,-1);if(R==="Object"&&B.constructor&&(R=B.constructor.name),R==="Map"||R==="Set")return Array.from(B);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return _(B,D)}}function _(B,D){(D==null||D>B.length)&&(D=B.length);for(var R=0,X=new Array(D);R<D;R++)X[R]=B[R];return X}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 N=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?e.useLayoutEffect:e.useEffect;function A(B){var D=e.useRef(B);return N(function(){D.current=B}),e.useCallback(function(){for(var R=arguments.length,X=new Array(R),U=0;U<R;U++)X[U]=arguments[U];return D.current.apply(void 0,X)},[])}var M=function(D,R){var X=R.decimal,U=R.decimals,I=R.duration,E=R.easingFn,$=R.end,W=R.formattingFn,w=R.numerals,ce=R.prefix,H=R.separator,x=R.start,O=R.suffix,F=R.useEasing,J=R.useGrouping,Q=R.useIndianSeparators,te=R.enableScrollSpy,se=R.scrollSpyDelay,be=R.scrollSpyOnce,Se=R.plugin;return new n.CountUp(D,$,{startVal:x,duration:I,decimal:X,decimalPlaces:U,easingFn:E,formattingFn:W,numerals:w,separator:H,prefix:ce,suffix:O,plugin:Se,useEasing:F,useIndianSeparators:Q,useGrouping:J,enableScrollSpy:te,scrollSpyDelay:se,scrollSpyOnce:be})},L=["ref","startOnMount","enableReinitialize","delay","onEnd","onStart","onPauseResume","onReset","onUpdate"],G={decimal:".",separator:",",delay:null,prefix:"",suffix:"",duration:2,start:0,decimals:0,startOnMount:!0,enableReinitialize:!0,useEasing:!0,useGrouping:!0,useIndianSeparators:!1},T=function(D){var R=Object.fromEntries(Object.entries(D).filter(function(Re){var k=v(Re,2),de=k[1];return de!==void 0})),X=e.useMemo(function(){return o(o({},G),R)},[D]),U=X.ref,I=X.startOnMount,E=X.enableReinitialize,$=X.delay,W=X.onEnd,w=X.onStart,ce=X.onPauseResume,H=X.onReset,x=X.onUpdate,O=g(X,L),F=e.useRef(),J=e.useRef(),Q=e.useRef(!1),te=A(function(){return M(typeof U=="string"?U:U.current,O)}),se=A(function(Re){var k=F.current;if(k&&!Re)return k;var de=te();return F.current=de,de}),be=A(function(){var Re=function(){return se(!0).start(function(){W?.({pauseResume:Se,reset:Te,start:Oe,update:Ne})})};$&&$>0?J.current=setTimeout(Re,$*1e3):Re(),w?.({pauseResume:Se,reset:Te,update:Ne})}),Se=A(function(){se().pauseResume(),ce?.({reset:Te,start:Oe,update:Ne})}),Te=A(function(){se().el&&(J.current&&clearTimeout(J.current),se().reset(),H?.({pauseResume:Se,start:Oe,update:Ne}))}),Ne=A(function(Re){se().update(Re),x?.({pauseResume:Se,reset:Te,start:Oe})}),Oe=A(function(){Te(),be()}),Le=A(function(Re){I&&(Re&&Te(),be())});return e.useEffect(function(){Q.current?E&&Le(!0):(Q.current=!0,Le())},[E,Q,Le,$,D.start,D.suffix,D.prefix,D.duration,D.separator,D.decimals,D.decimal,D.formattingFn]),e.useEffect(function(){return function(){Te()}},[Te]),{start:Oe,pauseResume:Se,reset:Te,update:Ne,getCountUp:se}},P=["className","redraw","containerProps","children","style"],z=function(D){var R=D.className,X=D.redraw,U=D.containerProps,I=D.children,E=D.style,$=g(D,P),W=e.useRef(null),w=e.useRef(!1),ce=T(o(o({},$),{},{ref:W,startOnMount:typeof I!="function"||D.delay===0,enableReinitialize:!1})),H=ce.start,x=ce.reset,O=ce.update,F=ce.pauseResume,J=ce.getCountUp,Q=A(function(){H()}),te=A(function(Se){D.preserveValue||x(),O(Se)}),se=A(function(){if(typeof D.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(){se()},[se]),e.useEffect(function(){w.current&&te(D.end)},[D.end,te]);var be=X&&D;return e.useEffect(function(){X&&w.current&&Q()},[Q,X,be]),e.useEffect(function(){!X&&w.current&&Q()},[Q,X,D.start,D.suffix,D.prefix,D.duration,D.separator,D.decimals,D.decimal,D.className,D.formattingFn]),e.useEffect(function(){w.current=!0},[]),typeof I=="function"?I({countUpRef:W,start:H,reset:x,update:O,pauseResume:F,getCountUp:J}):e.createElement("span",h({className:R,ref:W,style:E},U),typeof D.start<"u"?J().formattingFn(D.start):"")};return Xs.default=z,Xs.useCountUp=T,Xs}var FN=BN();const Mi=Iu(FN);var Lh=new Map,eu=new WeakMap,Dv=0,VN=void 0;function HN(e){return e?(eu.has(e)||(Dv+=1,eu.set(e,Dv.toString())),eu.get(e)):"0"}function IN(e){return Object.keys(e).sort().filter(n=>e[n]!==void 0).map(n=>`${n}_${n==="root"?HN(e.root):e[n]}`).toString()}function qN(e){const n=IN(e);let a=Lh.get(n);if(!a){const s=new Map;let o;const u=new IntersectionObserver(c=>{c.forEach(f=>{var h;const p=f.isIntersecting&&o.some(g=>f.intersectionRatio>=g);e.trackVisibility&&typeof f.isVisible>"u"&&(f.isVisible=p),(h=s.get(f.target))==null||h.forEach(g=>{g(p,f)})})},e);o=u.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),a={id:n,observer:u,elements:s},Lh.set(n,a)}return a}function GN(e,n,a={},s=VN){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:u,elements:c}=qN(a),f=c.get(e)||[];return c.has(e)||c.set(e,f),f.push(n),u.observe(e),function(){f.splice(f.indexOf(n),1),f.length===0&&(c.delete(e),u.unobserve(e)),c.size===0&&(u.disconnect(),Lh.delete(o))}}function z1({threshold:e,delay:n,trackVisibility:a,rootMargin:s,root:o,triggerOnce:u,skip:c,initialInView:f,fallbackInView:h,onChange:p}={}){var g;const[v,b]=K.useState(null),j=K.useRef(p),[_,S]=K.useState({inView:!!f,entry:void 0});j.current=p,K.useEffect(()=>{if(c||!v)return;let L;return L=GN(v,(G,T)=>{S({inView:G,entry:T}),j.current&&j.current(G,T),T.isIntersecting&&u&&L&&(L(),L=void 0)},{root:o,rootMargin:s,threshold:e,trackVisibility:a,delay:n},h),()=>{L&&L()}},[Array.isArray(e)?e.toString():e,v,o,s,u,c,a,h,n]);const N=(g=_.entry)==null?void 0:g.target,A=K.useRef(void 0);!v&&N&&!u&&!c&&A.current!==N&&(A.current=N,S({inView:!!f,entry:void 0}));const M=[b,_.inView,_.entry];return M.ref=M[0],M.inView=M[1],M.entry=M[2],M}function tu(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 Hf={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 Mv;function YN(){return Mv||(Mv=1,function(e,n){(function(a){e.exports=a()})(function(){return function a(s,o,u){function c(p,g){if(!o[p]){if(!s[p]){var v=typeof tu=="function"&&tu;if(!g&&v)return v(p,!0);if(f)return f(p,!0);var b=new Error("Cannot find module '"+p+"'");throw b.code="MODULE_NOT_FOUND",b}var j=o[p]={exports:{}};s[p][0].call(j.exports,function(_){var S=s[p][1][_];return c(S||_)},j,j.exports,a,s,o,u)}return o[p].exports}for(var f=typeof tu=="function"&&tu,h=0;h<u.length;h++)c(u[h]);return c}({1:[function(a,s,o){var u=a("./utils"),c=a("./support"),f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";o.encode=function(h){for(var p,g,v,b,j,_,S,N=[],A=0,M=h.length,L=M,G=u.getTypeOf(h)!=="string";A<h.length;)L=M-A,v=G?(p=h[A++],g=A<M?h[A++]:0,A<M?h[A++]:0):(p=h.charCodeAt(A++),g=A<M?h.charCodeAt(A++):0,A<M?h.charCodeAt(A++):0),b=p>>2,j=(3&p)<<4|g>>4,_=1<L?(15&g)<<2|v>>6:64,S=2<L?63&v:64,N.push(f.charAt(b)+f.charAt(j)+f.charAt(_)+f.charAt(S));return N.join("")},o.decode=function(h){var p,g,v,b,j,_,S=0,N=0,A="data:";if(h.substr(0,A.length)===A)throw new Error("Invalid base64 input, it looks like a data url.");var M,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(M=c.uint8array?new Uint8Array(0|L):new Array(0|L);S<h.length;)p=f.indexOf(h.charAt(S++))<<2|(b=f.indexOf(h.charAt(S++)))>>4,g=(15&b)<<4|(j=f.indexOf(h.charAt(S++)))>>2,v=(3&j)<<6|(_=f.indexOf(h.charAt(S++))),M[N++]=p,j!==64&&(M[N++]=g),_!==64&&(M[N++]=v);return M}},{"./support":30,"./utils":32}],2:[function(a,s,o){var u=a("./external"),c=a("./stream/DataWorker"),f=a("./stream/Crc32Probe"),h=a("./stream/DataLengthProbe");function p(g,v,b,j,_){this.compressedSize=g,this.uncompressedSize=v,this.crc32=b,this.compression=j,this.compressedContent=_}p.prototype={getContentWorker:function(){var g=new c(u.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new h("data_length")),v=this;return g.on("end",function(){if(this.streamInfo.data_length!==v.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),g},getCompressedWorker:function(){return new c(u.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},p.createWorkerFrom=function(g,v,b){return g.pipe(new f).pipe(new h("uncompressedSize")).pipe(v.compressWorker(b)).pipe(new h("compressedSize")).withStreamInfo("compression",v)},s.exports=p},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(a,s,o){var u=a("./stream/GenericWorker");o.STORE={magic:"\0\0",compressWorker:function(){return new u("STORE compression")},uncompressWorker:function(){return new u("STORE decompression")}},o.DEFLATE=a("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(a,s,o){var u=a("./utils"),c=function(){for(var f,h=[],p=0;p<256;p++){f=p;for(var g=0;g<8;g++)f=1&f?3988292384^f>>>1:f>>>1;h[p]=f}return h}();s.exports=function(f,h){return f!==void 0&&f.length?u.getTypeOf(f)!=="string"?function(p,g,v,b){var j=c,_=b+v;p^=-1;for(var S=b;S<_;S++)p=p>>>8^j[255&(p^g[S])];return-1^p}(0|h,f,f.length,0):function(p,g,v,b){var j=c,_=b+v;p^=-1;for(var S=b;S<_;S++)p=p>>>8^j[255&(p^g.charCodeAt(S))];return-1^p}(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 u=null;u=typeof Promise<"u"?Promise:a("lie"),s.exports={Promise:u}},{lie:37}],7:[function(a,s,o){var u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Uint32Array<"u",c=a("pako"),f=a("./utils"),h=a("./stream/GenericWorker"),p=u?"uint8array":"array";function g(v,b){h.call(this,"FlateWorker/"+v),this._pako=null,this._pakoAction=v,this._pakoOptions=b,this.meta={}}o.magic="\b\0",f.inherits(g,h),g.prototype.processChunk=function(v){this.meta=v.meta,this._pako===null&&this._createPako(),this._pako.push(f.transformTo(p,v.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 c[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var v=this;this._pako.onData=function(b){v.push({data:b,meta:v.meta})}},o.compressWorker=function(v){return new g("Deflate",v)},o.uncompressWorker=function(){return new g("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(a,s,o){function u(j,_){var S,N="";for(S=0;S<_;S++)N+=String.fromCharCode(255&j),j>>>=8;return N}function c(j,_,S,N,A,M){var L,G,T=j.file,P=j.compression,z=M!==p.utf8encode,B=f.transformTo("string",M(T.name)),D=f.transformTo("string",p.utf8encode(T.name)),R=T.comment,X=f.transformTo("string",M(R)),U=f.transformTo("string",p.utf8encode(R)),I=D.length!==T.name.length,E=U.length!==R.length,$="",W="",w="",ce=T.dir,H=T.date,x={crc32:0,compressedSize:0,uncompressedSize:0};_&&!S||(x.crc32=j.crc32,x.compressedSize=j.compressedSize,x.uncompressedSize=j.uncompressedSize);var O=0;_&&(O|=8),z||!I&&!E||(O|=2048);var F=0,J=0;ce&&(F|=16),A==="UNIX"?(J=798,F|=function(te,se){var be=te;return te||(be=se?16893:33204),(65535&be)<<16}(T.unixPermissions,ce)):(J=20,F|=function(te){return 63&(te||0)}(T.dosPermissions)),L=H.getUTCHours(),L<<=6,L|=H.getUTCMinutes(),L<<=5,L|=H.getUTCSeconds()/2,G=H.getUTCFullYear()-1980,G<<=4,G|=H.getUTCMonth()+1,G<<=5,G|=H.getUTCDate(),I&&(W=u(1,1)+u(g(B),4)+D,$+="up"+u(W.length,2)+W),E&&(w=u(1,1)+u(g(X),4)+U,$+="uc"+u(w.length,2)+w);var Q="";return Q+=`
\0`,Q+=u(O,2),Q+=P.magic,Q+=u(L,2),Q+=u(G,2),Q+=u(x.crc32,4),Q+=u(x.compressedSize,4),Q+=u(x.uncompressedSize,4),Q+=u(B.length,2),Q+=u($.length,2),{fileRecord:v.LOCAL_FILE_HEADER+Q+B+$,dirRecord:v.CENTRAL_FILE_HEADER+u(J,2)+Q+u(X.length,2)+"\0\0\0\0"+u(F,4)+u(N,4)+B+$+X}}var f=a("../utils"),h=a("../stream/GenericWorker"),p=a("../utf8"),g=a("../crc32"),v=a("../signature");function b(j,_,S,N){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=_,this.zipPlatform=S,this.encodeFileName=N,this.streamFiles=j,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(j){var _=j.meta.percent||0,S=this.entriesCount,N=this._sources.length;this.accumulate?this.contentBuffer.push(j):(this.bytesWritten+=j.data.length,h.prototype.push.call(this,{data:j.data,meta:{currentFile:this.currentFile,percent:S?(_+100*(S-N-1))/S:100}}))},b.prototype.openedSource=function(j){this.currentSourceOffset=this.bytesWritten,this.currentFile=j.file.name;var _=this.streamFiles&&!j.file.dir;if(_){var S=c(j,_,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:S.fileRecord,meta:{percent:0}})}else this.accumulate=!0},b.prototype.closedSource=function(j){this.accumulate=!1;var _=this.streamFiles&&!j.file.dir,S=c(j,_,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(S.dirRecord),_)this.push({data:function(N){return v.DATA_DESCRIPTOR+u(N.crc32,4)+u(N.compressedSize,4)+u(N.uncompressedSize,4)}(j),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 j=this.bytesWritten,_=0;_<this.dirRecords.length;_++)this.push({data:this.dirRecords[_],meta:{percent:100}});var S=this.bytesWritten-j,N=function(A,M,L,G,T){var P=f.transformTo("string",T(G));return v.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(A,2)+u(A,2)+u(M,4)+u(L,4)+u(P.length,2)+P}(this.dirRecords.length,S,j,this.zipComment,this.encodeFileName);this.push({data:N,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(j){this._sources.push(j);var _=this;return j.on("data",function(S){_.processChunk(S)}),j.on("end",function(){_.closedSource(_.previous.streamInfo),_._sources.length?_.prepareNextSource():_.end()}),j.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(j){var _=this._sources;if(!h.prototype.error.call(this,j))return!1;for(var S=0;S<_.length;S++)try{_[S].error(j)}catch{}return!0},b.prototype.lock=function(){h.prototype.lock.call(this);for(var j=this._sources,_=0;_<j.length;_++)j[_].lock()},s.exports=b},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(a,s,o){var u=a("../compressions"),c=a("./ZipFileWorker");o.generateWorker=function(f,h,p){var g=new c(h.streamFiles,p,h.platform,h.encodeFileName),v=0;try{f.forEach(function(b,j){v++;var _=function(M,L){var G=M||L,T=u[G];if(!T)throw new Error(G+" is not a valid compression method !");return T}(j.options.compression,h.compression),S=j.options.compressionOptions||h.compressionOptions||{},N=j.dir,A=j.date;j._compressWorker(_,S).withStreamInfo("file",{name:b,dir:N,date:A,comment:j.comment||"",unixPermissions:j.unixPermissions,dosPermissions:j.dosPermissions}).pipe(g)}),g.entriesCount=v}catch(b){g.error(b)}return g}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(a,s,o){function u(){if(!(this instanceof u))return new u;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 c=new u;for(var f in this)typeof this[f]!="function"&&(c[f]=this[f]);return c}}(u.prototype=a("./object")).loadAsync=a("./load"),u.support=a("./support"),u.defaults=a("./defaults"),u.version="3.10.1",u.loadAsync=function(c,f){return new u().loadAsync(c,f)},u.external=a("./external"),s.exports=u},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(a,s,o){var u=a("./utils"),c=a("./external"),f=a("./utf8"),h=a("./zipEntries"),p=a("./stream/Crc32Probe"),g=a("./nodejsUtils");function v(b){return new c.Promise(function(j,_){var S=b.decompressed.getContentWorker().pipe(new p);S.on("error",function(N){_(N)}).on("end",function(){S.streamInfo.crc32!==b.decompressed.crc32?_(new Error("Corrupted zip : CRC32 mismatch")):j()}).resume()})}s.exports=function(b,j){var _=this;return j=u.extend(j||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),g.isNode&&g.isStream(b)?c.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",b,!0,j.optimizedBinaryString,j.base64).then(function(S){var N=new h(j);return N.load(S),N}).then(function(S){var N=[c.Promise.resolve(S)],A=S.files;if(j.checkCRC32)for(var M=0;M<A.length;M++)N.push(v(A[M]));return c.Promise.all(N)}).then(function(S){for(var N=S.shift(),A=N.files,M=0;M<A.length;M++){var L=A[M],G=L.fileNameStr,T=u.resolve(L.fileNameStr);_.file(T,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:j.createFolders}),L.dir||(_.file(T).unsafeOriginalName=G)}return N.zipComment.length&&(_.comment=N.zipComment),_})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(a,s,o){var u=a("../utils"),c=a("../stream/GenericWorker");function f(h,p){c.call(this,"Nodejs stream input adapter for "+h),this._upstreamEnded=!1,this._bindStream(p)}u.inherits(f,c),f.prototype._bindStream=function(h){var p=this;(this._stream=h).pause(),h.on("data",function(g){p.push({data:g,meta:{percent:0}})}).on("error",function(g){p.isPaused?this.generatedError=g:p.error(g)}).on("end",function(){p.isPaused?p._upstreamEnded=!0:p.end()})},f.prototype.pause=function(){return!!c.prototype.pause.call(this)&&(this._stream.pause(),!0)},f.prototype.resume=function(){return!!c.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 u=a("readable-stream").Readable;function c(f,h,p){u.call(this,h),this._helper=f;var g=this;f.on("data",function(v,b){g.push(v)||g._helper.pause(),p&&p(b)}).on("error",function(v){g.emit("error",v)}).on("end",function(){g.push(null)})}a("../utils").inherits(c,u),c.prototype._read=function(){this._helper.resume()},s.exports=c},{"../utils":32,"readable-stream":16}],14:[function(a,s,o){s.exports={isNode:typeof Buffer<"u",newBufferFrom:function(u,c){if(Buffer.from&&Buffer.from!==Uint8Array.from)return Buffer.from(u,c);if(typeof u=="number")throw new Error('The "data" argument must not be a number');return new Buffer(u,c)},allocBuffer:function(u){if(Buffer.alloc)return Buffer.alloc(u);var c=new Buffer(u);return c.fill(0),c},isBuffer:function(u){return Buffer.isBuffer(u)},isStream:function(u){return u&&typeof u.on=="function"&&typeof u.pause=="function"&&typeof u.resume=="function"}}},{}],15:[function(a,s,o){function u(T,P,z){var B,D=f.getTypeOf(P),R=f.extend(z||{},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&&(T=A(T)),R.createFolders&&(B=N(T))&&M.call(this,B,!0);var X=D==="string"&&R.binary===!1&&R.base64===!1;z&&z.binary!==void 0||(R.binary=!X),(P instanceof v&&P.uncompressedSize===0||R.dir||!P||P.length===0)&&(R.base64=!1,R.binary=!0,P="",R.compression="STORE",D="string");var U=null;U=P instanceof v||P instanceof h?P:_.isNode&&_.isStream(P)?new S(T,P):f.prepareContent(T,P,R.binary,R.optimizedBinaryString,R.base64);var I=new b(T,U,R);this.files[T]=I}var c=a("./utf8"),f=a("./utils"),h=a("./stream/GenericWorker"),p=a("./stream/StreamHelper"),g=a("./defaults"),v=a("./compressedObject"),b=a("./zipObject"),j=a("./generate"),_=a("./nodejsUtils"),S=a("./nodejs/NodejsStreamInputAdapter"),N=function(T){T.slice(-1)==="/"&&(T=T.substring(0,T.length-1));var P=T.lastIndexOf("/");return 0<P?T.substring(0,P):""},A=function(T){return T.slice(-1)!=="/"&&(T+="/"),T},M=function(T,P){return P=P!==void 0?P:g.createFolders,T=A(T),this.files[T]||u.call(this,T,null,{dir:!0,createFolders:P}),this.files[T]};function L(T){return Object.prototype.toString.call(T)==="[object RegExp]"}var G={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(T){var P,z,B;for(P in this.files)B=this.files[P],(z=P.slice(this.root.length,P.length))&&P.slice(0,this.root.length)===this.root&&T(z,B)},filter:function(T){var P=[];return this.forEach(function(z,B){T(z,B)&&P.push(B)}),P},file:function(T,P,z){if(arguments.length!==1)return T=this.root+T,u.call(this,T,P,z),this;if(L(T)){var B=T;return this.filter(function(R,X){return!X.dir&&B.test(R)})}var D=this.files[this.root+T];return D&&!D.dir?D:null},folder:function(T){if(!T)return this;if(L(T))return this.filter(function(D,R){return R.dir&&T.test(D)});var P=this.root+T,z=M.call(this,P),B=this.clone();return B.root=z.name,B},remove:function(T){T=this.root+T;var P=this.files[T];if(P||(T.slice(-1)!=="/"&&(T+="/"),P=this.files[T]),P&&!P.dir)delete this.files[T];else for(var z=this.filter(function(D,R){return R.name.slice(0,T.length)===T}),B=0;B<z.length;B++)delete this.files[z[B].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(T){var P,z={};try{if((z=f.extend(T||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:c.utf8encode})).type=z.type.toLowerCase(),z.compression=z.compression.toUpperCase(),z.type==="binarystring"&&(z.type="string"),!z.type)throw new Error("No output type specified.");f.checkSupport(z.type),z.platform!=="darwin"&&z.platform!=="freebsd"&&z.platform!=="linux"&&z.platform!=="sunos"||(z.platform="UNIX"),z.platform==="win32"&&(z.platform="DOS");var B=z.comment||this.comment||"";P=j.generateWorker(this,z,B)}catch(D){(P=new h("error")).error(D)}return new p(P,z.type||"string",z.mimeType)},generateAsync:function(T,P){return this.generateInternalStream(T).accumulate(P)},generateNodeStream:function(T,P){return(T=T||{}).type||(T.type="nodebuffer"),this.generateInternalStream(T).toNodejsStream(P)}};s.exports=G},{"./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 u=a("./DataReader");function c(f){u.call(this,f);for(var h=0;h<this.data.length;h++)f[h]=255&f[h]}a("../utils").inherits(c,u),c.prototype.byteAt=function(f){return this.data[this.zero+f]},c.prototype.lastIndexOfSignature=function(f){for(var h=f.charCodeAt(0),p=f.charCodeAt(1),g=f.charCodeAt(2),v=f.charCodeAt(3),b=this.length-4;0<=b;--b)if(this.data[b]===h&&this.data[b+1]===p&&this.data[b+2]===g&&this.data[b+3]===v)return b-this.zero;return-1},c.prototype.readAndCheckSignature=function(f){var h=f.charCodeAt(0),p=f.charCodeAt(1),g=f.charCodeAt(2),v=f.charCodeAt(3),b=this.readData(4);return h===b[0]&&p===b[1]&&g===b[2]&&v===b[3]},c.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=c},{"../utils":32,"./DataReader":18}],18:[function(a,s,o){var u=a("../utils");function c(f){this.data=f,this.length=f.length,this.index=0,this.zero=0}c.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,p=0;for(this.checkOffset(f),h=this.index+f-1;h>=this.index;h--)p=(p<<8)+this.byteAt(h);return this.index+=f,p},readString:function(f){return u.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=c},{"../utils":32}],19:[function(a,s,o){var u=a("./Uint8ArrayReader");function c(f){u.call(this,f)}a("../utils").inherits(c,u),c.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=c},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(a,s,o){var u=a("./DataReader");function c(f){u.call(this,f)}a("../utils").inherits(c,u),c.prototype.byteAt=function(f){return this.data.charCodeAt(this.zero+f)},c.prototype.lastIndexOfSignature=function(f){return this.data.lastIndexOf(f)-this.zero},c.prototype.readAndCheckSignature=function(f){return f===this.readData(4)},c.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=c},{"../utils":32,"./DataReader":18}],21:[function(a,s,o){var u=a("./ArrayReader");function c(f){u.call(this,f)}a("../utils").inherits(c,u),c.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=c},{"../utils":32,"./ArrayReader":17}],22:[function(a,s,o){var u=a("../utils"),c=a("../support"),f=a("./ArrayReader"),h=a("./StringReader"),p=a("./NodeBufferReader"),g=a("./Uint8ArrayReader");s.exports=function(v){var b=u.getTypeOf(v);return u.checkSupport(b),b!=="string"||c.uint8array?b==="nodebuffer"?new p(v):c.uint8array?new g(u.transformTo("uint8array",v)):new f(u.transformTo("array",v)):new h(v)}},{"../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 u=a("./GenericWorker"),c=a("../utils");function f(h){u.call(this,"ConvertWorker to "+h),this.destType=h}c.inherits(f,u),f.prototype.processChunk=function(h){this.push({data:c.transformTo(this.destType,h.data),meta:h.meta})},s.exports=f},{"../utils":32,"./GenericWorker":28}],25:[function(a,s,o){var u=a("./GenericWorker"),c=a("../crc32");function f(){u.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}a("../utils").inherits(f,u),f.prototype.processChunk=function(h){this.streamInfo.crc32=c(h.data,this.streamInfo.crc32||0),this.push(h)},s.exports=f},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(a,s,o){var u=a("../utils"),c=a("./GenericWorker");function f(h){c.call(this,"DataLengthProbe for "+h),this.propName=h,this.withStreamInfo(h,0)}u.inherits(f,c),f.prototype.processChunk=function(h){if(h){var p=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=p+h.data.length}c.prototype.processChunk.call(this,h)},s.exports=f},{"../utils":32,"./GenericWorker":28}],27:[function(a,s,o){var u=a("../utils"),c=a("./GenericWorker");function f(h){c.call(this,"DataWorker");var p=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,h.then(function(g){p.dataIsReady=!0,p.data=g,p.max=g&&g.length||0,p.type=u.getTypeOf(g),p.isPaused||p._tickAndRepeat()},function(g){p.error(g)})}u.inherits(f,c),f.prototype.cleanUp=function(){c.prototype.cleanUp.call(this),this.data=null},f.prototype.resume=function(){return!!c.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,u.delay(this._tickAndRepeat,[],this)),!0)},f.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(u.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},f.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var h=null,p=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,p);break;case"uint8array":h=this.data.subarray(this.index,p);break;case"array":case"nodebuffer":h=this.data.slice(this.index,p)}return this.index=p,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 u(c){this.name=c||"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}u.prototype={push:function(c){this.emit("data",c)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(c){this.emit("error",c)}return!0},error:function(c){return!this.isFinished&&(this.isPaused?this.generatedError=c:(this.isFinished=!0,this.emit("error",c),this.previous&&this.previous.error(c),this.cleanUp()),!0)},on:function(c,f){return this._listeners[c].push(f),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(c,f){if(this._listeners[c])for(var h=0;h<this._listeners[c].length;h++)this._listeners[c][h].call(this,f)},pipe:function(c){return c.registerPrevious(this)},registerPrevious:function(c){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=c.streamInfo,this.mergeStreamInfo(),this.previous=c;var f=this;return c.on("data",function(h){f.processChunk(h)}),c.on("end",function(){f.end()}),c.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 c=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),c=!0),this.previous&&this.previous.resume(),!c},flush:function(){},processChunk:function(c){this.push(c)},withStreamInfo:function(c,f){return this.extraStreamInfo[c]=f,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var c in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,c)&&(this.streamInfo[c]=this.extraStreamInfo[c])},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 c="Worker "+this.name;return this.previous?this.previous+" -> "+c:c}},s.exports=u},{}],29:[function(a,s,o){var u=a("../utils"),c=a("./ConvertWorker"),f=a("./GenericWorker"),h=a("../base64"),p=a("../support"),g=a("../external"),v=null;if(p.nodestream)try{v=a("../nodejs/NodejsStreamOutputAdapter")}catch{}function b(_,S){return new g.Promise(function(N,A){var M=[],L=_._internalType,G=_._outputType,T=_._mimeType;_.on("data",function(P,z){M.push(P),S&&S(z)}).on("error",function(P){M=[],A(P)}).on("end",function(){try{var P=function(z,B,D){switch(z){case"blob":return u.newBlob(u.transformTo("arraybuffer",B),D);case"base64":return h.encode(B);default:return u.transformTo(z,B)}}(G,function(z,B){var D,R=0,X=null,U=0;for(D=0;D<B.length;D++)U+=B[D].length;switch(z){case"string":return B.join("");case"array":return Array.prototype.concat.apply([],B);case"uint8array":for(X=new Uint8Array(U),D=0;D<B.length;D++)X.set(B[D],R),R+=B[D].length;return X;case"nodebuffer":return Buffer.concat(B);default:throw new Error("concat : unsupported type '"+z+"'")}}(L,M),T);N(P)}catch(z){A(z)}M=[]}).resume()})}function j(_,S,N){var A=S;switch(S){case"blob":case"arraybuffer":A="uint8array";break;case"base64":A="string"}try{this._internalType=A,this._outputType=S,this._mimeType=N,u.checkSupport(A),this._worker=_.pipe(new c(A)),_.lock()}catch(M){this._worker=new f("error"),this._worker.error(M)}}j.prototype={accumulate:function(_){return b(this,_)},on:function(_,S){var N=this;return _==="data"?this._worker.on(_,function(A){S.call(N,A.data,A.meta)}):this._worker.on(_,function(){u.delay(S,arguments,N)}),this},resume:function(){return u.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(_){if(u.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new v(this,{objectMode:this._outputType!=="nodebuffer"},_)}},s.exports=j},{"../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 u=new ArrayBuffer(0);try{o.blob=new Blob([u],{type:"application/zip"}).size===0}catch{try{var c=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);c.append(u),o.blob=c.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 u=a("./utils"),c=a("./support"),f=a("./nodejsUtils"),h=a("./stream/GenericWorker"),p=new Array(256),g=0;g<256;g++)p[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;p[254]=p[254]=1;function v(){h.call(this,"utf-8 decode"),this.leftOver=null}function b(){h.call(this,"utf-8 encode")}o.utf8encode=function(j){return c.nodebuffer?f.newBufferFrom(j,"utf-8"):function(_){var S,N,A,M,L,G=_.length,T=0;for(M=0;M<G;M++)(64512&(N=_.charCodeAt(M)))==55296&&M+1<G&&(64512&(A=_.charCodeAt(M+1)))==56320&&(N=65536+(N-55296<<10)+(A-56320),M++),T+=N<128?1:N<2048?2:N<65536?3:4;for(S=c.uint8array?new Uint8Array(T):new Array(T),M=L=0;L<T;M++)(64512&(N=_.charCodeAt(M)))==55296&&M+1<G&&(64512&(A=_.charCodeAt(M+1)))==56320&&(N=65536+(N-55296<<10)+(A-56320),M++),N<128?S[L++]=N:(N<2048?S[L++]=192|N>>>6:(N<65536?S[L++]=224|N>>>12:(S[L++]=240|N>>>18,S[L++]=128|N>>>12&63),S[L++]=128|N>>>6&63),S[L++]=128|63&N);return S}(j)},o.utf8decode=function(j){return c.nodebuffer?u.transformTo("nodebuffer",j).toString("utf-8"):function(_){var S,N,A,M,L=_.length,G=new Array(2*L);for(S=N=0;S<L;)if((A=_[S++])<128)G[N++]=A;else if(4<(M=p[A]))G[N++]=65533,S+=M-1;else{for(A&=M===2?31:M===3?15:7;1<M&&S<L;)A=A<<6|63&_[S++],M--;1<M?G[N++]=65533:A<65536?G[N++]=A:(A-=65536,G[N++]=55296|A>>10&1023,G[N++]=56320|1023&A)}return G.length!==N&&(G.subarray?G=G.subarray(0,N):G.length=N),u.applyFromCharCode(G)}(j=u.transformTo(c.uint8array?"uint8array":"array",j))},u.inherits(v,h),v.prototype.processChunk=function(j){var _=u.transformTo(c.uint8array?"uint8array":"array",j.data);if(this.leftOver&&this.leftOver.length){if(c.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 N=function(M,L){var G;for((L=L||M.length)>M.length&&(L=M.length),G=L-1;0<=G&&(192&M[G])==128;)G--;return G<0||G===0?L:G+p[M[G]]>L?G:L}(_),A=_;N!==_.length&&(c.uint8array?(A=_.subarray(0,N),this.leftOver=_.subarray(N,_.length)):(A=_.slice(0,N),this.leftOver=_.slice(N,_.length))),this.push({data:o.utf8decode(A),meta:j.meta})},v.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:o.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},o.Utf8DecodeWorker=v,u.inherits(b,h),b.prototype.processChunk=function(j){this.push({data:o.utf8encode(j.data),meta:j.meta})},o.Utf8EncodeWorker=b},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(a,s,o){var u=a("./support"),c=a("./base64"),f=a("./nodejsUtils"),h=a("./external");function p(S){return S}function g(S,N){for(var A=0;A<S.length;++A)N[A]=255&S.charCodeAt(A);return N}a("setimmediate"),o.newBlob=function(S,N){o.checkSupport("blob");try{return new Blob([S],{type:N})}catch{try{var A=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return A.append(S),A.getBlob(N)}catch{throw new Error("Bug : can't construct the Blob.")}}};var v={stringifyByChunk:function(S,N,A){var M=[],L=0,G=S.length;if(G<=A)return String.fromCharCode.apply(null,S);for(;L<G;)N==="array"||N==="nodebuffer"?M.push(String.fromCharCode.apply(null,S.slice(L,Math.min(L+A,G)))):M.push(String.fromCharCode.apply(null,S.subarray(L,Math.min(L+A,G)))),L+=A;return M.join("")},stringifyByChar:function(S){for(var N="",A=0;A<S.length;A++)N+=String.fromCharCode(S[A]);return N},applyCanBeUsed:{uint8array:function(){try{return u.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch{return!1}}(),nodebuffer:function(){try{return u.nodebuffer&&String.fromCharCode.apply(null,f.allocBuffer(1)).length===1}catch{return!1}}()}};function b(S){var N=65536,A=o.getTypeOf(S),M=!0;if(A==="uint8array"?M=v.applyCanBeUsed.uint8array:A==="nodebuffer"&&(M=v.applyCanBeUsed.nodebuffer),M)for(;1<N;)try{return v.stringifyByChunk(S,A,N)}catch{N=Math.floor(N/2)}return v.stringifyByChar(S)}function j(S,N){for(var A=0;A<S.length;A++)N[A]=S[A];return N}o.applyFromCharCode=b;var _={};_.string={string:p,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:p,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 j(new Uint8Array(S),new Array(S.byteLength))},arraybuffer:p,uint8array:function(S){return new Uint8Array(S)},nodebuffer:function(S){return f.newBufferFrom(new Uint8Array(S))}},_.uint8array={string:b,array:function(S){return j(S,new Array(S.length))},arraybuffer:function(S){return S.buffer},uint8array:p,nodebuffer:function(S){return f.newBufferFrom(S)}},_.nodebuffer={string:b,array:function(S){return j(S,new Array(S.length))},arraybuffer:function(S){return _.nodebuffer.uint8array(S).buffer},uint8array:function(S){return j(S,new Uint8Array(S.length))},nodebuffer:p},o.transformTo=function(S,N){if(N=N||"",!S)return N;o.checkSupport(S);var A=o.getTypeOf(N);return _[A][S](N)},o.resolve=function(S){for(var N=S.split("/"),A=[],M=0;M<N.length;M++){var L=N[M];L==="."||L===""&&M!==0&&M!==N.length-1||(L===".."?A.pop():A.push(L))}return A.join("/")},o.getTypeOf=function(S){return typeof S=="string"?"string":Object.prototype.toString.call(S)==="[object Array]"?"array":u.nodebuffer&&f.isBuffer(S)?"nodebuffer":u.uint8array&&S instanceof Uint8Array?"uint8array":u.arraybuffer&&S instanceof ArrayBuffer?"arraybuffer":void 0},o.checkSupport=function(S){if(!u[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 N,A,M="";for(A=0;A<(S||"").length;A++)M+="\\x"+((N=S.charCodeAt(A))<16?"0":"")+N.toString(16).toUpperCase();return M},o.delay=function(S,N,A){setImmediate(function(){S.apply(A||null,N||[])})},o.inherits=function(S,N){function A(){}A.prototype=N.prototype,S.prototype=new A},o.extend=function(){var S,N,A={};for(S=0;S<arguments.length;S++)for(N in arguments[S])Object.prototype.hasOwnProperty.call(arguments[S],N)&&A[N]===void 0&&(A[N]=arguments[S][N]);return A},o.prepareContent=function(S,N,A,M,L){return h.Promise.resolve(N).then(function(G){return u.blob&&(G instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(G))!==-1)&&typeof FileReader<"u"?new h.Promise(function(T,P){var z=new FileReader;z.onload=function(B){T(B.target.result)},z.onerror=function(B){P(B.target.error)},z.readAsArrayBuffer(G)}):G}).then(function(G){var T=o.getTypeOf(G);return T?(T==="arraybuffer"?G=o.transformTo("uint8array",G):T==="string"&&(L?G=c.decode(G):A&&M!==!0&&(G=function(P){return g(P,u.uint8array?new Uint8Array(P.length):new Array(P.length))}(G))),G):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 u=a("./reader/readerFor"),c=a("./utils"),f=a("./signature"),h=a("./zipEntry"),p=a("./support");function g(v){this.files=[],this.loadOptions=v}g.prototype={checkSignature:function(v){if(!this.reader.readAndCheckSignature(v)){this.reader.index-=4;var b=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+c.pretty(b)+", expected "+c.pretty(v)+")")}},isSignature:function(v,b){var j=this.reader.index;this.reader.setIndex(v);var _=this.reader.readString(4)===b;return this.reader.setIndex(j),_},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 v=this.reader.readData(this.zipCommentLength),b=p.uint8array?"uint8array":"array",j=c.transformTo(b,v);this.zipComment=this.loadOptions.decodeFileName(j)},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 v,b,j,_=this.zip64EndOfCentralSize-44;0<_;)v=this.reader.readInt(2),b=this.reader.readInt(4),j=this.reader.readData(b),this.zip64ExtensibleData[v]={id:v,length:b,value:j}},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 v,b;for(v=0;v<this.files.length;v++)b=this.files[v],this.reader.setIndex(b.localHeaderOffset),this.checkSignature(f.LOCAL_FILE_HEADER),b.readLocalPart(this.reader),b.handleUTF8(),b.processAttributes()},readCentralDir:function(){var v;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(f.CENTRAL_FILE_HEADER);)(v=new h({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(v);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 v=this.reader.lastIndexOfSignature(f.CENTRAL_DIRECTORY_END);if(v<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(v);var b=v;if(this.checkSignature(f.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===c.MAX_VALUE_16BITS||this.diskWithCentralDirStart===c.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===c.MAX_VALUE_16BITS||this.centralDirRecords===c.MAX_VALUE_16BITS||this.centralDirSize===c.MAX_VALUE_32BITS||this.centralDirOffset===c.MAX_VALUE_32BITS){if(this.zip64=!0,(v=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(v),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 j=this.centralDirOffset+this.centralDirSize;this.zip64&&(j+=20,j+=12+this.zip64EndOfCentralSize);var _=b-j;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(v){this.reader=u(v)},load:function(v){this.prepareReader(v),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 u=a("./reader/readerFor"),c=a("./utils"),f=a("./compressedObject"),h=a("./crc32"),p=a("./utf8"),g=a("./compressions"),v=a("./support");function b(j,_){this.options=j,this.loadOptions=_}b.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(j){var _,S;if(j.skip(22),this.fileNameLength=j.readInt(2),S=j.readInt(2),this.fileName=j.readData(this.fileNameLength),j.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(N){for(var A in g)if(Object.prototype.hasOwnProperty.call(g,A)&&g[A].magic===N)return g[A];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+c.pretty(this.compressionMethod)+" unknown (inner file : "+c.transformTo("string",this.fileName)+")");this.decompressed=new f(this.compressedSize,this.uncompressedSize,this.crc32,_,j.readData(this.compressedSize))},readCentralPart:function(j){this.versionMadeBy=j.readInt(2),j.skip(2),this.bitFlag=j.readInt(2),this.compressionMethod=j.readString(2),this.date=j.readDate(),this.crc32=j.readInt(4),this.compressedSize=j.readInt(4),this.uncompressedSize=j.readInt(4);var _=j.readInt(2);if(this.extraFieldsLength=j.readInt(2),this.fileCommentLength=j.readInt(2),this.diskNumberStart=j.readInt(2),this.internalFileAttributes=j.readInt(2),this.externalFileAttributes=j.readInt(4),this.localHeaderOffset=j.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");j.skip(_),this.readExtraFields(j),this.parseZIP64ExtraField(j),this.fileComment=j.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var j=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),j==0&&(this.dosPermissions=63&this.externalFileAttributes),j==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var j=u(this.extraFields[1].value);this.uncompressedSize===c.MAX_VALUE_32BITS&&(this.uncompressedSize=j.readInt(8)),this.compressedSize===c.MAX_VALUE_32BITS&&(this.compressedSize=j.readInt(8)),this.localHeaderOffset===c.MAX_VALUE_32BITS&&(this.localHeaderOffset=j.readInt(8)),this.diskNumberStart===c.MAX_VALUE_32BITS&&(this.diskNumberStart=j.readInt(4))}},readExtraFields:function(j){var _,S,N,A=j.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});j.index+4<A;)_=j.readInt(2),S=j.readInt(2),N=j.readData(S),this.extraFields[_]={id:_,length:S,value:N};j.setIndex(A)},handleUTF8:function(){var j=v.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=p.utf8decode(this.fileName),this.fileCommentStr=p.utf8decode(this.fileComment);else{var _=this.findExtraFieldUnicodePath();if(_!==null)this.fileNameStr=_;else{var S=c.transformTo(j,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(S)}var N=this.findExtraFieldUnicodeComment();if(N!==null)this.fileCommentStr=N;else{var A=c.transformTo(j,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(A)}}},findExtraFieldUnicodePath:function(){var j=this.extraFields[28789];if(j){var _=u(j.value);return _.readInt(1)!==1||h(this.fileName)!==_.readInt(4)?null:p.utf8decode(_.readData(j.length-5))}return null},findExtraFieldUnicodeComment:function(){var j=this.extraFields[25461];if(j){var _=u(j.value);return _.readInt(1)!==1||h(this.fileComment)!==_.readInt(4)?null:p.utf8decode(_.readData(j.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 u(_,S,N){this.name=_,this.dir=N.dir,this.date=N.date,this.comment=N.comment,this.unixPermissions=N.unixPermissions,this.dosPermissions=N.dosPermissions,this._data=S,this._dataBinary=N.binary,this.options={compression:N.compression,compressionOptions:N.compressionOptions}}var c=a("./stream/StreamHelper"),f=a("./stream/DataWorker"),h=a("./utf8"),p=a("./compressedObject"),g=a("./stream/GenericWorker");u.prototype={internalStream:function(_){var S=null,N="string";try{if(!_)throw new Error("No output type specified.");var A=(N=_.toLowerCase())==="string"||N==="text";N!=="binarystring"&&N!=="text"||(N="string"),S=this._decompressWorker();var M=!this._dataBinary;M&&!A&&(S=S.pipe(new h.Utf8EncodeWorker)),!M&&A&&(S=S.pipe(new h.Utf8DecodeWorker))}catch(L){(S=new g("error")).error(L)}return new c(S,N,"")},async:function(_,S){return this.internalStream(_).accumulate(S)},nodeStream:function(_,S){return this.internalStream(_||"nodebuffer").toNodejsStream(S)},_compressWorker:function(_,S){if(this._data instanceof p&&this._data.compression.magic===_.magic)return this._data.getCompressedWorker();var N=this._decompressWorker();return this._dataBinary||(N=N.pipe(new h.Utf8EncodeWorker)),p.createWorkerFrom(N,_,S)},_decompressWorker:function(){return this._data instanceof p?this._data.getContentWorker():this._data instanceof g?this._data:new f(this._data)}};for(var v=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],b=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},j=0;j<v.length;j++)u.prototype[v[j]]=b;s.exports=u},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(a,s,o){(function(u){var c,f,h=u.MutationObserver||u.WebKitMutationObserver;if(h){var p=0,g=new h(_),v=u.document.createTextNode("");g.observe(v,{characterData:!0}),c=function(){v.data=p=++p%2}}else if(u.setImmediate||u.MessageChannel===void 0)c="document"in u&&"onreadystatechange"in u.document.createElement("script")?function(){var S=u.document.createElement("script");S.onreadystatechange=function(){_(),S.onreadystatechange=null,S.parentNode.removeChild(S),S=null},u.document.documentElement.appendChild(S)}:function(){setTimeout(_,0)};else{var b=new u.MessageChannel;b.port1.onmessage=_,c=function(){b.port2.postMessage(0)}}var j=[];function _(){var S,N;f=!0;for(var A=j.length;A;){for(N=j,j=[],S=-1;++S<A;)N[S]();A=j.length}f=!1}s.exports=function(S){j.push(S)!==1||f||c()}}).call(this,typeof Nn<"u"?Nn:typeof self<"u"?self:typeof window<"u"?window:{})},{}],37:[function(a,s,o){var u=a("immediate");function c(){}var f={},h=["REJECTED"],p=["FULFILLED"],g=["PENDING"];function v(A){if(typeof A!="function")throw new TypeError("resolver must be a function");this.state=g,this.queue=[],this.outcome=void 0,A!==c&&S(this,A)}function b(A,M,L){this.promise=A,typeof M=="function"&&(this.onFulfilled=M,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}function j(A,M,L){u(function(){var G;try{G=M(L)}catch(T){return f.reject(A,T)}G===A?f.reject(A,new TypeError("Cannot resolve promise with itself")):f.resolve(A,G)})}function _(A){var M=A&&A.then;if(A&&(typeof A=="object"||typeof A=="function")&&typeof M=="function")return function(){M.apply(A,arguments)}}function S(A,M){var L=!1;function G(z){L||(L=!0,f.reject(A,z))}function T(z){L||(L=!0,f.resolve(A,z))}var P=N(function(){M(T,G)});P.status==="error"&&G(P.value)}function N(A,M){var L={};try{L.value=A(M),L.status="success"}catch(G){L.status="error",L.value=G}return L}(s.exports=v).prototype.finally=function(A){if(typeof A!="function")return this;var M=this.constructor;return this.then(function(L){return M.resolve(A()).then(function(){return L})},function(L){return M.resolve(A()).then(function(){throw L})})},v.prototype.catch=function(A){return this.then(null,A)},v.prototype.then=function(A,M){if(typeof A!="function"&&this.state===p||typeof M!="function"&&this.state===h)return this;var L=new this.constructor(c);return this.state!==g?j(L,this.state===p?A:M,this.outcome):this.queue.push(new b(L,A,M)),L},b.prototype.callFulfilled=function(A){f.resolve(this.promise,A)},b.prototype.otherCallFulfilled=function(A){j(this.promise,this.onFulfilled,A)},b.prototype.callRejected=function(A){f.reject(this.promise,A)},b.prototype.otherCallRejected=function(A){j(this.promise,this.onRejected,A)},f.resolve=function(A,M){var L=N(_,M);if(L.status==="error")return f.reject(A,L.value);var G=L.value;if(G)S(A,G);else{A.state=p,A.outcome=M;for(var T=-1,P=A.queue.length;++T<P;)A.queue[T].callFulfilled(M)}return A},f.reject=function(A,M){A.state=h,A.outcome=M;for(var L=-1,G=A.queue.length;++L<G;)A.queue[L].callRejected(M);return A},v.resolve=function(A){return A instanceof this?A:f.resolve(new this(c),A)},v.reject=function(A){var M=new this(c);return f.reject(M,A)},v.all=function(A){var M=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=A.length,G=!1;if(!L)return this.resolve([]);for(var T=new Array(L),P=0,z=-1,B=new this(c);++z<L;)D(A[z],z);return B;function D(R,X){M.resolve(R).then(function(U){T[X]=U,++P!==L||G||(G=!0,f.resolve(B,T))},function(U){G||(G=!0,f.reject(B,U))})}},v.race=function(A){var M=this;if(Object.prototype.toString.call(A)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=A.length,G=!1;if(!L)return this.resolve([]);for(var T=-1,P=new this(c);++T<L;)z=A[T],M.resolve(z).then(function(B){G||(G=!0,f.resolve(P,B))},function(B){G||(G=!0,f.reject(P,B))});var z;return P}},{immediate:36}],38:[function(a,s,o){var u={};(0,a("./lib/utils/common").assign)(u,a("./lib/deflate"),a("./lib/inflate"),a("./lib/zlib/constants")),s.exports=u},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(a,s,o){var u=a("./zlib/deflate"),c=a("./utils/common"),f=a("./utils/strings"),h=a("./zlib/messages"),p=a("./zlib/zstream"),g=Object.prototype.toString,v=0,b=-1,j=0,_=8;function S(A){if(!(this instanceof S))return new S(A);this.options=c.assign({level:b,method:_,chunkSize:16384,windowBits:15,memLevel:8,strategy:j,to:""},A||{});var M=this.options;M.raw&&0<M.windowBits?M.windowBits=-M.windowBits:M.gzip&&0<M.windowBits&&M.windowBits<16&&(M.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new p,this.strm.avail_out=0;var L=u.deflateInit2(this.strm,M.level,M.method,M.windowBits,M.memLevel,M.strategy);if(L!==v)throw new Error(h[L]);if(M.header&&u.deflateSetHeader(this.strm,M.header),M.dictionary){var G;if(G=typeof M.dictionary=="string"?f.string2buf(M.dictionary):g.call(M.dictionary)==="[object ArrayBuffer]"?new Uint8Array(M.dictionary):M.dictionary,(L=u.deflateSetDictionary(this.strm,G))!==v)throw new Error(h[L]);this._dict_set=!0}}function N(A,M){var L=new S(M);if(L.push(A,!0),L.err)throw L.msg||h[L.err];return L.result}S.prototype.push=function(A,M){var L,G,T=this.strm,P=this.options.chunkSize;if(this.ended)return!1;G=M===~~M?M:M===!0?4:0,typeof A=="string"?T.input=f.string2buf(A):g.call(A)==="[object ArrayBuffer]"?T.input=new Uint8Array(A):T.input=A,T.next_in=0,T.avail_in=T.input.length;do{if(T.avail_out===0&&(T.output=new c.Buf8(P),T.next_out=0,T.avail_out=P),(L=u.deflate(T,G))!==1&&L!==v)return this.onEnd(L),!(this.ended=!0);T.avail_out!==0&&(T.avail_in!==0||G!==4&&G!==2)||(this.options.to==="string"?this.onData(f.buf2binstring(c.shrinkBuf(T.output,T.next_out))):this.onData(c.shrinkBuf(T.output,T.next_out)))}while((0<T.avail_in||T.avail_out===0)&&L!==1);return G===4?(L=u.deflateEnd(this.strm),this.onEnd(L),this.ended=!0,L===v):G!==2||(this.onEnd(v),!(T.avail_out=0))},S.prototype.onData=function(A){this.chunks.push(A)},S.prototype.onEnd=function(A){A===v&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=A,this.msg=this.strm.msg},o.Deflate=S,o.deflate=N,o.deflateRaw=function(A,M){return(M=M||{}).raw=!0,N(A,M)},o.gzip=function(A,M){return(M=M||{}).gzip=!0,N(A,M)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(a,s,o){var u=a("./zlib/inflate"),c=a("./utils/common"),f=a("./utils/strings"),h=a("./zlib/constants"),p=a("./zlib/messages"),g=a("./zlib/zstream"),v=a("./zlib/gzheader"),b=Object.prototype.toString;function j(S){if(!(this instanceof j))return new j(S);this.options=c.assign({chunkSize:16384,windowBits:0,to:""},S||{});var N=this.options;N.raw&&0<=N.windowBits&&N.windowBits<16&&(N.windowBits=-N.windowBits,N.windowBits===0&&(N.windowBits=-15)),!(0<=N.windowBits&&N.windowBits<16)||S&&S.windowBits||(N.windowBits+=32),15<N.windowBits&&N.windowBits<48&&(15&N.windowBits)==0&&(N.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var A=u.inflateInit2(this.strm,N.windowBits);if(A!==h.Z_OK)throw new Error(p[A]);this.header=new v,u.inflateGetHeader(this.strm,this.header)}function _(S,N){var A=new j(N);if(A.push(S,!0),A.err)throw A.msg||p[A.err];return A.result}j.prototype.push=function(S,N){var A,M,L,G,T,P,z=this.strm,B=this.options.chunkSize,D=this.options.dictionary,R=!1;if(this.ended)return!1;M=N===~~N?N:N===!0?h.Z_FINISH:h.Z_NO_FLUSH,typeof S=="string"?z.input=f.binstring2buf(S):b.call(S)==="[object ArrayBuffer]"?z.input=new Uint8Array(S):z.input=S,z.next_in=0,z.avail_in=z.input.length;do{if(z.avail_out===0&&(z.output=new c.Buf8(B),z.next_out=0,z.avail_out=B),(A=u.inflate(z,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&D&&(P=typeof D=="string"?f.string2buf(D):b.call(D)==="[object ArrayBuffer]"?new Uint8Array(D):D,A=u.inflateSetDictionary(this.strm,P)),A===h.Z_BUF_ERROR&&R===!0&&(A=h.Z_OK,R=!1),A!==h.Z_STREAM_END&&A!==h.Z_OK)return this.onEnd(A),!(this.ended=!0);z.next_out&&(z.avail_out!==0&&A!==h.Z_STREAM_END&&(z.avail_in!==0||M!==h.Z_FINISH&&M!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(L=f.utf8border(z.output,z.next_out),G=z.next_out-L,T=f.buf2string(z.output,L),z.next_out=G,z.avail_out=B-G,G&&c.arraySet(z.output,z.output,L,G,0),this.onData(T)):this.onData(c.shrinkBuf(z.output,z.next_out)))),z.avail_in===0&&z.avail_out===0&&(R=!0)}while((0<z.avail_in||z.avail_out===0)&&A!==h.Z_STREAM_END);return A===h.Z_STREAM_END&&(M=h.Z_FINISH),M===h.Z_FINISH?(A=u.inflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===h.Z_OK):M!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(z.avail_out=0))},j.prototype.onData=function(S){this.chunks.push(S)},j.prototype.onEnd=function(S){S===h.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=S,this.msg=this.strm.msg},o.Inflate=j,o.inflate=_,o.inflateRaw=function(S,N){return(N=N||{}).raw=!0,_(S,N)},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 u=typeof Uint8Array<"u"&&typeof Uint16Array<"u"&&typeof Int32Array<"u";o.assign=function(h){for(var p=Array.prototype.slice.call(arguments,1);p.length;){var g=p.shift();if(g){if(typeof g!="object")throw new TypeError(g+"must be non-object");for(var v in g)g.hasOwnProperty(v)&&(h[v]=g[v])}}return h},o.shrinkBuf=function(h,p){return h.length===p?h:h.subarray?h.subarray(0,p):(h.length=p,h)};var c={arraySet:function(h,p,g,v,b){if(p.subarray&&h.subarray)h.set(p.subarray(g,g+v),b);else for(var j=0;j<v;j++)h[b+j]=p[g+j]},flattenChunks:function(h){var p,g,v,b,j,_;for(p=v=0,g=h.length;p<g;p++)v+=h[p].length;for(_=new Uint8Array(v),p=b=0,g=h.length;p<g;p++)j=h[p],_.set(j,b),b+=j.length;return _}},f={arraySet:function(h,p,g,v,b){for(var j=0;j<v;j++)h[b+j]=p[g+j]},flattenChunks:function(h){return[].concat.apply([],h)}};o.setTyped=function(h){h?(o.Buf8=Uint8Array,o.Buf16=Uint16Array,o.Buf32=Int32Array,o.assign(o,c)):(o.Buf8=Array,o.Buf16=Array,o.Buf32=Array,o.assign(o,f))},o.setTyped(u)},{}],42:[function(a,s,o){var u=a("./common"),c=!0,f=!0;try{String.fromCharCode.apply(null,[0])}catch{c=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{f=!1}for(var h=new u.Buf8(256),p=0;p<256;p++)h[p]=252<=p?6:248<=p?5:240<=p?4:224<=p?3:192<=p?2:1;function g(v,b){if(b<65537&&(v.subarray&&f||!v.subarray&&c))return String.fromCharCode.apply(null,u.shrinkBuf(v,b));for(var j="",_=0;_<b;_++)j+=String.fromCharCode(v[_]);return j}h[254]=h[254]=1,o.string2buf=function(v){var b,j,_,S,N,A=v.length,M=0;for(S=0;S<A;S++)(64512&(j=v.charCodeAt(S)))==55296&&S+1<A&&(64512&(_=v.charCodeAt(S+1)))==56320&&(j=65536+(j-55296<<10)+(_-56320),S++),M+=j<128?1:j<2048?2:j<65536?3:4;for(b=new u.Buf8(M),S=N=0;N<M;S++)(64512&(j=v.charCodeAt(S)))==55296&&S+1<A&&(64512&(_=v.charCodeAt(S+1)))==56320&&(j=65536+(j-55296<<10)+(_-56320),S++),j<128?b[N++]=j:(j<2048?b[N++]=192|j>>>6:(j<65536?b[N++]=224|j>>>12:(b[N++]=240|j>>>18,b[N++]=128|j>>>12&63),b[N++]=128|j>>>6&63),b[N++]=128|63&j);return b},o.buf2binstring=function(v){return g(v,v.length)},o.binstring2buf=function(v){for(var b=new u.Buf8(v.length),j=0,_=b.length;j<_;j++)b[j]=v.charCodeAt(j);return b},o.buf2string=function(v,b){var j,_,S,N,A=b||v.length,M=new Array(2*A);for(j=_=0;j<A;)if((S=v[j++])<128)M[_++]=S;else if(4<(N=h[S]))M[_++]=65533,j+=N-1;else{for(S&=N===2?31:N===3?15:7;1<N&&j<A;)S=S<<6|63&v[j++],N--;1<N?M[_++]=65533:S<65536?M[_++]=S:(S-=65536,M[_++]=55296|S>>10&1023,M[_++]=56320|1023&S)}return g(M,_)},o.utf8border=function(v,b){var j;for((b=b||v.length)>v.length&&(b=v.length),j=b-1;0<=j&&(192&v[j])==128;)j--;return j<0||j===0?b:j+h[v[j]]>b?j:b}},{"./common":41}],43:[function(a,s,o){s.exports=function(u,c,f,h){for(var p=65535&u|0,g=u>>>16&65535|0,v=0;f!==0;){for(f-=v=2e3<f?2e3:f;g=g+(p=p+c[h++]|0)|0,--v;);p%=65521,g%=65521}return p|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 u=function(){for(var c,f=[],h=0;h<256;h++){c=h;for(var p=0;p<8;p++)c=1&c?3988292384^c>>>1:c>>>1;f[h]=c}return f}();s.exports=function(c,f,h,p){var g=u,v=p+h;c^=-1;for(var b=p;b<v;b++)c=c>>>8^g[255&(c^f[b])];return-1^c}},{}],46:[function(a,s,o){var u,c=a("../utils/common"),f=a("./trees"),h=a("./adler32"),p=a("./crc32"),g=a("./messages"),v=0,b=4,j=0,_=-2,S=-1,N=4,A=2,M=8,L=9,G=286,T=30,P=19,z=2*G+1,B=15,D=3,R=258,X=R+D+1,U=42,I=113,E=1,$=2,W=3,w=4;function ce(k,de){return k.msg=g[de],de}function H(k){return(k<<1)-(4<k?9:0)}function x(k){for(var de=k.length;0<=--de;)k[de]=0}function O(k){var de=k.state,ue=de.pending;ue>k.avail_out&&(ue=k.avail_out),ue!==0&&(c.arraySet(k.output,de.pending_buf,de.pending_out,ue,k.next_out),k.next_out+=ue,de.pending_out+=ue,k.total_out+=ue,k.avail_out-=ue,de.pending-=ue,de.pending===0&&(de.pending_out=0))}function F(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 te(k,de){var ue,q,Y=k.max_chain_length,ee=k.strstart,pe=k.prev_length,ye=k.nice_match,oe=k.strstart>k.w_size-X?k.strstart-(k.w_size-X):0,je=k.window,Ee=k.w_mask,re=k.prev,ve=k.strstart+R,_e=je[ee+pe-1],Ce=je[ee+pe];k.prev_length>=k.good_match&&(Y>>=2),ye>k.lookahead&&(ye=k.lookahead);do if(je[(ue=de)+pe]===Ce&&je[ue+pe-1]===_e&&je[ue]===je[ee]&&je[++ue]===je[ee+1]){ee+=2,ue++;do;while(je[++ee]===je[++ue]&&je[++ee]===je[++ue]&&je[++ee]===je[++ue]&&je[++ee]===je[++ue]&&je[++ee]===je[++ue]&&je[++ee]===je[++ue]&&je[++ee]===je[++ue]&&je[++ee]===je[++ue]&&ee<ve);if(q=R-(ve-ee),ee=ve-R,pe<q){if(k.match_start=de,ye<=(pe=q))break;_e=je[ee+pe-1],Ce=je[ee+pe]}}while((de=re[de&Ee])>oe&&--Y!=0);return pe<=k.lookahead?pe:k.lookahead}function se(k){var de,ue,q,Y,ee,pe,ye,oe,je,Ee,re=k.w_size;do{if(Y=k.window_size-k.lookahead-k.strstart,k.strstart>=re+(re-X)){for(c.arraySet(k.window,k.window,re,re,0),k.match_start-=re,k.strstart-=re,k.block_start-=re,de=ue=k.hash_size;q=k.head[--de],k.head[de]=re<=q?q-re:0,--ue;);for(de=ue=re;q=k.prev[--de],k.prev[de]=re<=q?q-re:0,--ue;);Y+=re}if(k.strm.avail_in===0)break;if(pe=k.strm,ye=k.window,oe=k.strstart+k.lookahead,je=Y,Ee=void 0,Ee=pe.avail_in,je<Ee&&(Ee=je),ue=Ee===0?0:(pe.avail_in-=Ee,c.arraySet(ye,pe.input,pe.next_in,Ee,oe),pe.state.wrap===1?pe.adler=h(pe.adler,ye,Ee,oe):pe.state.wrap===2&&(pe.adler=p(pe.adler,ye,Ee,oe)),pe.next_in+=Ee,pe.total_in+=Ee,Ee),k.lookahead+=ue,k.lookahead+k.insert>=D)for(ee=k.strstart-k.insert,k.ins_h=k.window[ee],k.ins_h=(k.ins_h<<k.hash_shift^k.window[ee+1])&k.hash_mask;k.insert&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[ee+D-1])&k.hash_mask,k.prev[ee&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=ee,ee++,k.insert--,!(k.lookahead+k.insert<D)););}while(k.lookahead<X&&k.strm.avail_in!==0)}function be(k,de){for(var ue,q;;){if(k.lookahead<X){if(se(k),k.lookahead<X&&de===v)return E;if(k.lookahead===0)break}if(ue=0,k.lookahead>=D&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+D-1])&k.hash_mask,ue=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),ue!==0&&k.strstart-ue<=k.w_size-X&&(k.match_length=te(k,ue)),k.match_length>=D)if(q=f._tr_tally(k,k.strstart-k.match_start,k.match_length-D),k.lookahead-=k.match_length,k.match_length<=k.max_lazy_match&&k.lookahead>=D){for(k.match_length--;k.strstart++,k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+D-1])&k.hash_mask,ue=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 q=f._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++;if(q&&(F(k,!1),k.strm.avail_out===0))return E}return k.insert=k.strstart<D-1?k.strstart:D-1,de===b?(F(k,!0),k.strm.avail_out===0?W:w):k.last_lit&&(F(k,!1),k.strm.avail_out===0)?E:$}function Se(k,de){for(var ue,q,Y;;){if(k.lookahead<X){if(se(k),k.lookahead<X&&de===v)return E;if(k.lookahead===0)break}if(ue=0,k.lookahead>=D&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+D-1])&k.hash_mask,ue=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=D-1,ue!==0&&k.prev_length<k.max_lazy_match&&k.strstart-ue<=k.w_size-X&&(k.match_length=te(k,ue),k.match_length<=5&&(k.strategy===1||k.match_length===D&&4096<k.strstart-k.match_start)&&(k.match_length=D-1)),k.prev_length>=D&&k.match_length<=k.prev_length){for(Y=k.strstart+k.lookahead-D,q=f._tr_tally(k,k.strstart-1-k.prev_match,k.prev_length-D),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+D-1])&k.hash_mask,ue=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=D-1,k.strstart++,q&&(F(k,!1),k.strm.avail_out===0))return E}else if(k.match_available){if((q=f._tr_tally(k,0,k.window[k.strstart-1]))&&F(k,!1),k.strstart++,k.lookahead--,k.strm.avail_out===0)return E}else k.match_available=1,k.strstart++,k.lookahead--}return k.match_available&&(q=f._tr_tally(k,0,k.window[k.strstart-1]),k.match_available=0),k.insert=k.strstart<D-1?k.strstart:D-1,de===b?(F(k,!0),k.strm.avail_out===0?W:w):k.last_lit&&(F(k,!1),k.strm.avail_out===0)?E:$}function Te(k,de,ue,q,Y){this.good_length=k,this.max_lazy=de,this.nice_length=ue,this.max_chain=q,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=M,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 c.Buf16(2*z),this.dyn_dtree=new c.Buf16(2*(2*T+1)),this.bl_tree=new c.Buf16(2*(2*P+1)),x(this.dyn_ltree),x(this.dyn_dtree),x(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new c.Buf16(B+1),this.heap=new c.Buf16(2*G+1),x(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new c.Buf16(2*G+1),x(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=A,(de=k.state).pending=0,de.pending_out=0,de.wrap<0&&(de.wrap=-de.wrap),de.status=de.wrap?U:I,k.adler=de.wrap===2?0:1,de.last_flush=v,f._tr_init(de),j):ce(k,_)}function Le(k){var de=Oe(k);return de===j&&function(ue){ue.window_size=2*ue.w_size,x(ue.head),ue.max_lazy_match=u[ue.level].max_lazy,ue.good_match=u[ue.level].good_length,ue.nice_match=u[ue.level].nice_length,ue.max_chain_length=u[ue.level].max_chain,ue.strstart=0,ue.block_start=0,ue.lookahead=0,ue.insert=0,ue.match_length=ue.prev_length=D-1,ue.match_available=0,ue.ins_h=0}(k.state),de}function Re(k,de,ue,q,Y,ee){if(!k)return _;var pe=1;if(de===S&&(de=6),q<0?(pe=0,q=-q):15<q&&(pe=2,q-=16),Y<1||L<Y||ue!==M||q<8||15<q||de<0||9<de||ee<0||N<ee)return ce(k,_);q===8&&(q=9);var ye=new Ne;return(k.state=ye).strm=k,ye.wrap=pe,ye.gzhead=null,ye.w_bits=q,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+D-1)/D),ye.window=new c.Buf8(2*ye.w_size),ye.head=new c.Buf16(ye.hash_size),ye.prev=new c.Buf16(ye.w_size),ye.lit_bufsize=1<<Y+6,ye.pending_buf_size=4*ye.lit_bufsize,ye.pending_buf=new c.Buf8(ye.pending_buf_size),ye.d_buf=1*ye.lit_bufsize,ye.l_buf=3*ye.lit_bufsize,ye.level=de,ye.strategy=ee,ye.method=ue,Le(k)}u=[new Te(0,0,0,0,function(k,de){var ue=65535;for(ue>k.pending_buf_size-5&&(ue=k.pending_buf_size-5);;){if(k.lookahead<=1){if(se(k),k.lookahead===0&&de===v)return E;if(k.lookahead===0)break}k.strstart+=k.lookahead,k.lookahead=0;var q=k.block_start+ue;if((k.strstart===0||k.strstart>=q)&&(k.lookahead=k.strstart-q,k.strstart=q,F(k,!1),k.strm.avail_out===0)||k.strstart-k.block_start>=k.w_size-X&&(F(k,!1),k.strm.avail_out===0))return E}return k.insert=0,de===b?(F(k,!0),k.strm.avail_out===0?W:w):(k.strstart>k.block_start&&(F(k,!1),k.strm.avail_out),E)}),new Te(4,4,8,4,be),new Te(4,5,16,8,be),new Te(4,6,32,32,be),new Te(4,4,16,16,Se),new Te(8,16,32,32,Se),new Te(8,16,128,128,Se),new Te(8,32,128,256,Se),new Te(32,128,258,1024,Se),new Te(32,258,258,4096,Se)],o.deflateInit=function(k,de){return Re(k,de,M,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,j):_},o.deflate=function(k,de){var ue,q,Y,ee;if(!k||!k.state||5<de||de<0)return k?ce(k,_):_;if(q=k.state,!k.output||!k.input&&k.avail_in!==0||q.status===666&&de!==b)return ce(k,k.avail_out===0?-5:_);if(q.strm=k,ue=q.last_flush,q.last_flush=de,q.status===U)if(q.wrap===2)k.adler=0,J(q,31),J(q,139),J(q,8),q.gzhead?(J(q,(q.gzhead.text?1:0)+(q.gzhead.hcrc?2:0)+(q.gzhead.extra?4:0)+(q.gzhead.name?8:0)+(q.gzhead.comment?16:0)),J(q,255&q.gzhead.time),J(q,q.gzhead.time>>8&255),J(q,q.gzhead.time>>16&255),J(q,q.gzhead.time>>24&255),J(q,q.level===9?2:2<=q.strategy||q.level<2?4:0),J(q,255&q.gzhead.os),q.gzhead.extra&&q.gzhead.extra.length&&(J(q,255&q.gzhead.extra.length),J(q,q.gzhead.extra.length>>8&255)),q.gzhead.hcrc&&(k.adler=p(k.adler,q.pending_buf,q.pending,0)),q.gzindex=0,q.status=69):(J(q,0),J(q,0),J(q,0),J(q,0),J(q,0),J(q,q.level===9?2:2<=q.strategy||q.level<2?4:0),J(q,3),q.status=I);else{var pe=M+(q.w_bits-8<<4)<<8;pe|=(2<=q.strategy||q.level<2?0:q.level<6?1:q.level===6?2:3)<<6,q.strstart!==0&&(pe|=32),pe+=31-pe%31,q.status=I,Q(q,pe),q.strstart!==0&&(Q(q,k.adler>>>16),Q(q,65535&k.adler)),k.adler=1}if(q.status===69)if(q.gzhead.extra){for(Y=q.pending;q.gzindex<(65535&q.gzhead.extra.length)&&(q.pending!==q.pending_buf_size||(q.gzhead.hcrc&&q.pending>Y&&(k.adler=p(k.adler,q.pending_buf,q.pending-Y,Y)),O(k),Y=q.pending,q.pending!==q.pending_buf_size));)J(q,255&q.gzhead.extra[q.gzindex]),q.gzindex++;q.gzhead.hcrc&&q.pending>Y&&(k.adler=p(k.adler,q.pending_buf,q.pending-Y,Y)),q.gzindex===q.gzhead.extra.length&&(q.gzindex=0,q.status=73)}else q.status=73;if(q.status===73)if(q.gzhead.name){Y=q.pending;do{if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>Y&&(k.adler=p(k.adler,q.pending_buf,q.pending-Y,Y)),O(k),Y=q.pending,q.pending===q.pending_buf_size)){ee=1;break}ee=q.gzindex<q.gzhead.name.length?255&q.gzhead.name.charCodeAt(q.gzindex++):0,J(q,ee)}while(ee!==0);q.gzhead.hcrc&&q.pending>Y&&(k.adler=p(k.adler,q.pending_buf,q.pending-Y,Y)),ee===0&&(q.gzindex=0,q.status=91)}else q.status=91;if(q.status===91)if(q.gzhead.comment){Y=q.pending;do{if(q.pending===q.pending_buf_size&&(q.gzhead.hcrc&&q.pending>Y&&(k.adler=p(k.adler,q.pending_buf,q.pending-Y,Y)),O(k),Y=q.pending,q.pending===q.pending_buf_size)){ee=1;break}ee=q.gzindex<q.gzhead.comment.length?255&q.gzhead.comment.charCodeAt(q.gzindex++):0,J(q,ee)}while(ee!==0);q.gzhead.hcrc&&q.pending>Y&&(k.adler=p(k.adler,q.pending_buf,q.pending-Y,Y)),ee===0&&(q.status=103)}else q.status=103;if(q.status===103&&(q.gzhead.hcrc?(q.pending+2>q.pending_buf_size&&O(k),q.pending+2<=q.pending_buf_size&&(J(q,255&k.adler),J(q,k.adler>>8&255),k.adler=0,q.status=I)):q.status=I),q.pending!==0){if(O(k),k.avail_out===0)return q.last_flush=-1,j}else if(k.avail_in===0&&H(de)<=H(ue)&&de!==b)return ce(k,-5);if(q.status===666&&k.avail_in!==0)return ce(k,-5);if(k.avail_in!==0||q.lookahead!==0||de!==v&&q.status!==666){var ye=q.strategy===2?function(oe,je){for(var Ee;;){if(oe.lookahead===0&&(se(oe),oe.lookahead===0)){if(je===v)return E;break}if(oe.match_length=0,Ee=f._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++,Ee&&(F(oe,!1),oe.strm.avail_out===0))return E}return oe.insert=0,je===b?(F(oe,!0),oe.strm.avail_out===0?W:w):oe.last_lit&&(F(oe,!1),oe.strm.avail_out===0)?E:$}(q,de):q.strategy===3?function(oe,je){for(var Ee,re,ve,_e,Ce=oe.window;;){if(oe.lookahead<=R){if(se(oe),oe.lookahead<=R&&je===v)return E;if(oe.lookahead===0)break}if(oe.match_length=0,oe.lookahead>=D&&0<oe.strstart&&(re=Ce[ve=oe.strstart-1])===Ce[++ve]&&re===Ce[++ve]&&re===Ce[++ve]){_e=oe.strstart+R;do;while(re===Ce[++ve]&&re===Ce[++ve]&&re===Ce[++ve]&&re===Ce[++ve]&&re===Ce[++ve]&&re===Ce[++ve]&&re===Ce[++ve]&&re===Ce[++ve]&&ve<_e);oe.match_length=R-(_e-ve),oe.match_length>oe.lookahead&&(oe.match_length=oe.lookahead)}if(oe.match_length>=D?(Ee=f._tr_tally(oe,1,oe.match_length-D),oe.lookahead-=oe.match_length,oe.strstart+=oe.match_length,oe.match_length=0):(Ee=f._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++),Ee&&(F(oe,!1),oe.strm.avail_out===0))return E}return oe.insert=0,je===b?(F(oe,!0),oe.strm.avail_out===0?W:w):oe.last_lit&&(F(oe,!1),oe.strm.avail_out===0)?E:$}(q,de):u[q.level].func(q,de);if(ye!==W&&ye!==w||(q.status=666),ye===E||ye===W)return k.avail_out===0&&(q.last_flush=-1),j;if(ye===$&&(de===1?f._tr_align(q):de!==5&&(f._tr_stored_block(q,0,0,!1),de===3&&(x(q.head),q.lookahead===0&&(q.strstart=0,q.block_start=0,q.insert=0))),O(k),k.avail_out===0))return q.last_flush=-1,j}return de!==b?j:q.wrap<=0?1:(q.wrap===2?(J(q,255&k.adler),J(q,k.adler>>8&255),J(q,k.adler>>16&255),J(q,k.adler>>24&255),J(q,255&k.total_in),J(q,k.total_in>>8&255),J(q,k.total_in>>16&255),J(q,k.total_in>>24&255)):(Q(q,k.adler>>>16),Q(q,65535&k.adler)),O(k),0<q.wrap&&(q.wrap=-q.wrap),q.pending!==0?j:1)},o.deflateEnd=function(k){var de;return k&&k.state?(de=k.state.status)!==U&&de!==69&&de!==73&&de!==91&&de!==103&&de!==I&&de!==666?ce(k,_):(k.state=null,de===I?ce(k,-3):j):_},o.deflateSetDictionary=function(k,de){var ue,q,Y,ee,pe,ye,oe,je,Ee=de.length;if(!k||!k.state||(ee=(ue=k.state).wrap)===2||ee===1&&ue.status!==U||ue.lookahead)return _;for(ee===1&&(k.adler=h(k.adler,de,Ee,0)),ue.wrap=0,Ee>=ue.w_size&&(ee===0&&(x(ue.head),ue.strstart=0,ue.block_start=0,ue.insert=0),je=new c.Buf8(ue.w_size),c.arraySet(je,de,Ee-ue.w_size,ue.w_size,0),de=je,Ee=ue.w_size),pe=k.avail_in,ye=k.next_in,oe=k.input,k.avail_in=Ee,k.next_in=0,k.input=de,se(ue);ue.lookahead>=D;){for(q=ue.strstart,Y=ue.lookahead-(D-1);ue.ins_h=(ue.ins_h<<ue.hash_shift^ue.window[q+D-1])&ue.hash_mask,ue.prev[q&ue.w_mask]=ue.head[ue.ins_h],ue.head[ue.ins_h]=q,q++,--Y;);ue.strstart=q,ue.lookahead=D-1,se(ue)}return ue.strstart+=ue.lookahead,ue.block_start=ue.strstart,ue.insert=ue.lookahead,ue.lookahead=0,ue.match_length=ue.prev_length=D-1,ue.match_available=0,k.next_in=ye,k.input=oe,k.avail_in=pe,ue.wrap=ee,j},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(u,c){var f,h,p,g,v,b,j,_,S,N,A,M,L,G,T,P,z,B,D,R,X,U,I,E,$;f=u.state,h=u.next_in,E=u.input,p=h+(u.avail_in-5),g=u.next_out,$=u.output,v=g-(c-u.avail_out),b=g+(u.avail_out-257),j=f.dmax,_=f.wsize,S=f.whave,N=f.wnext,A=f.window,M=f.hold,L=f.bits,G=f.lencode,T=f.distcode,P=(1<<f.lenbits)-1,z=(1<<f.distbits)-1;e:do{L<15&&(M+=E[h++]<<L,L+=8,M+=E[h++]<<L,L+=8),B=G[M&P];t:for(;;){if(M>>>=D=B>>>24,L-=D,(D=B>>>16&255)===0)$[g++]=65535&B;else{if(!(16&D)){if((64&D)==0){B=G[(65535&B)+(M&(1<<D)-1)];continue t}if(32&D){f.mode=12;break e}u.msg="invalid literal/length code",f.mode=30;break e}R=65535&B,(D&=15)&&(L<D&&(M+=E[h++]<<L,L+=8),R+=M&(1<<D)-1,M>>>=D,L-=D),L<15&&(M+=E[h++]<<L,L+=8,M+=E[h++]<<L,L+=8),B=T[M&z];n:for(;;){if(M>>>=D=B>>>24,L-=D,!(16&(D=B>>>16&255))){if((64&D)==0){B=T[(65535&B)+(M&(1<<D)-1)];continue n}u.msg="invalid distance code",f.mode=30;break e}if(X=65535&B,L<(D&=15)&&(M+=E[h++]<<L,(L+=8)<D&&(M+=E[h++]<<L,L+=8)),j<(X+=M&(1<<D)-1)){u.msg="invalid distance too far back",f.mode=30;break e}if(M>>>=D,L-=D,(D=g-v)<X){if(S<(D=X-D)&&f.sane){u.msg="invalid distance too far back",f.mode=30;break e}if(I=A,(U=0)===N){if(U+=_-D,D<R){for(R-=D;$[g++]=A[U++],--D;);U=g-X,I=$}}else if(N<D){if(U+=_+N-D,(D-=N)<R){for(R-=D;$[g++]=A[U++],--D;);if(U=0,N<R){for(R-=D=N;$[g++]=A[U++],--D;);U=g-X,I=$}}}else if(U+=N-D,D<R){for(R-=D;$[g++]=A[U++],--D;);U=g-X,I=$}for(;2<R;)$[g++]=I[U++],$[g++]=I[U++],$[g++]=I[U++],R-=3;R&&($[g++]=I[U++],1<R&&($[g++]=I[U++]))}else{for(U=g-X;$[g++]=$[U++],$[g++]=$[U++],$[g++]=$[U++],2<(R-=3););R&&($[g++]=$[U++],1<R&&($[g++]=$[U++]))}break}}break}}while(h<p&&g<b);h-=R=L>>3,M&=(1<<(L-=R<<3))-1,u.next_in=h,u.next_out=g,u.avail_in=h<p?p-h+5:5-(h-p),u.avail_out=g<b?b-g+257:257-(g-b),f.hold=M,f.bits=L}},{}],49:[function(a,s,o){var u=a("../utils/common"),c=a("./adler32"),f=a("./crc32"),h=a("./inffast"),p=a("./inftrees"),g=1,v=2,b=0,j=-2,_=1,S=852,N=592;function A(U){return(U>>>24&255)+(U>>>8&65280)+((65280&U)<<8)+((255&U)<<24)}function M(){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 u.Buf16(320),this.work=new u.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function L(U){var I;return U&&U.state?(I=U.state,U.total_in=U.total_out=I.total=0,U.msg="",I.wrap&&(U.adler=1&I.wrap),I.mode=_,I.last=0,I.havedict=0,I.dmax=32768,I.head=null,I.hold=0,I.bits=0,I.lencode=I.lendyn=new u.Buf32(S),I.distcode=I.distdyn=new u.Buf32(N),I.sane=1,I.back=-1,b):j}function G(U){var I;return U&&U.state?((I=U.state).wsize=0,I.whave=0,I.wnext=0,L(U)):j}function T(U,I){var E,$;return U&&U.state?($=U.state,I<0?(E=0,I=-I):(E=1+(I>>4),I<48&&(I&=15)),I&&(I<8||15<I)?j:($.window!==null&&$.wbits!==I&&($.window=null),$.wrap=E,$.wbits=I,G(U))):j}function P(U,I){var E,$;return U?($=new M,(U.state=$).window=null,(E=T(U,I))!==b&&(U.state=null),E):j}var z,B,D=!0;function R(U){if(D){var I;for(z=new u.Buf32(512),B=new u.Buf32(32),I=0;I<144;)U.lens[I++]=8;for(;I<256;)U.lens[I++]=9;for(;I<280;)U.lens[I++]=7;for(;I<288;)U.lens[I++]=8;for(p(g,U.lens,0,288,z,0,U.work,{bits:9}),I=0;I<32;)U.lens[I++]=5;p(v,U.lens,0,32,B,0,U.work,{bits:5}),D=!1}U.lencode=z,U.lenbits=9,U.distcode=B,U.distbits=5}function X(U,I,E,$){var W,w=U.state;return w.window===null&&(w.wsize=1<<w.wbits,w.wnext=0,w.whave=0,w.window=new u.Buf8(w.wsize)),$>=w.wsize?(u.arraySet(w.window,I,E-w.wsize,w.wsize,0),w.wnext=0,w.whave=w.wsize):($<(W=w.wsize-w.wnext)&&(W=$),u.arraySet(w.window,I,E-$,W,w.wnext),($-=W)?(u.arraySet(w.window,I,E-$,$,0),w.wnext=$,w.whave=w.wsize):(w.wnext+=W,w.wnext===w.wsize&&(w.wnext=0),w.whave<w.wsize&&(w.whave+=W))),0}o.inflateReset=G,o.inflateReset2=T,o.inflateResetKeep=L,o.inflateInit=function(U){return P(U,15)},o.inflateInit2=P,o.inflate=function(U,I){var E,$,W,w,ce,H,x,O,F,J,Q,te,se,be,Se,Te,Ne,Oe,Le,Re,k,de,ue,q,Y=0,ee=new u.Buf8(4),pe=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!U||!U.state||!U.output||!U.input&&U.avail_in!==0)return j;(E=U.state).mode===12&&(E.mode=13),ce=U.next_out,W=U.output,x=U.avail_out,w=U.next_in,$=U.input,H=U.avail_in,O=E.hold,F=E.bits,J=H,Q=x,de=b;e:for(;;)switch(E.mode){case _:if(E.wrap===0){E.mode=13;break}for(;F<16;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}if(2&E.wrap&&O===35615){ee[E.check=0]=255&O,ee[1]=O>>>8&255,E.check=f(E.check,ee,2,0),F=O=0,E.mode=2;break}if(E.flags=0,E.head&&(E.head.done=!1),!(1&E.wrap)||(((255&O)<<8)+(O>>8))%31){U.msg="incorrect header check",E.mode=30;break}if((15&O)!=8){U.msg="unknown compression method",E.mode=30;break}if(F-=4,k=8+(15&(O>>>=4)),E.wbits===0)E.wbits=k;else if(k>E.wbits){U.msg="invalid window size",E.mode=30;break}E.dmax=1<<k,U.adler=E.check=1,E.mode=512&O?10:12,F=O=0;break;case 2:for(;F<16;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}if(E.flags=O,(255&E.flags)!=8){U.msg="unknown compression method",E.mode=30;break}if(57344&E.flags){U.msg="unknown header flags set",E.mode=30;break}E.head&&(E.head.text=O>>8&1),512&E.flags&&(ee[0]=255&O,ee[1]=O>>>8&255,E.check=f(E.check,ee,2,0)),F=O=0,E.mode=3;case 3:for(;F<32;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}E.head&&(E.head.time=O),512&E.flags&&(ee[0]=255&O,ee[1]=O>>>8&255,ee[2]=O>>>16&255,ee[3]=O>>>24&255,E.check=f(E.check,ee,4,0)),F=O=0,E.mode=4;case 4:for(;F<16;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}E.head&&(E.head.xflags=255&O,E.head.os=O>>8),512&E.flags&&(ee[0]=255&O,ee[1]=O>>>8&255,E.check=f(E.check,ee,2,0)),F=O=0,E.mode=5;case 5:if(1024&E.flags){for(;F<16;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}E.length=O,E.head&&(E.head.extra_len=O),512&E.flags&&(ee[0]=255&O,ee[1]=O>>>8&255,E.check=f(E.check,ee,2,0)),F=O=0}else E.head&&(E.head.extra=null);E.mode=6;case 6:if(1024&E.flags&&(H<(te=E.length)&&(te=H),te&&(E.head&&(k=E.head.extra_len-E.length,E.head.extra||(E.head.extra=new Array(E.head.extra_len)),u.arraySet(E.head.extra,$,w,te,k)),512&E.flags&&(E.check=f(E.check,$,te,w)),H-=te,w+=te,E.length-=te),E.length))break e;E.length=0,E.mode=7;case 7:if(2048&E.flags){if(H===0)break e;for(te=0;k=$[w+te++],E.head&&k&&E.length<65536&&(E.head.name+=String.fromCharCode(k)),k&&te<H;);if(512&E.flags&&(E.check=f(E.check,$,te,w)),H-=te,w+=te,k)break e}else E.head&&(E.head.name=null);E.length=0,E.mode=8;case 8:if(4096&E.flags){if(H===0)break e;for(te=0;k=$[w+te++],E.head&&k&&E.length<65536&&(E.head.comment+=String.fromCharCode(k)),k&&te<H;);if(512&E.flags&&(E.check=f(E.check,$,te,w)),H-=te,w+=te,k)break e}else E.head&&(E.head.comment=null);E.mode=9;case 9:if(512&E.flags){for(;F<16;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}if(O!==(65535&E.check)){U.msg="header crc mismatch",E.mode=30;break}F=O=0}E.head&&(E.head.hcrc=E.flags>>9&1,E.head.done=!0),U.adler=E.check=0,E.mode=12;break;case 10:for(;F<32;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}U.adler=E.check=A(O),F=O=0,E.mode=11;case 11:if(E.havedict===0)return U.next_out=ce,U.avail_out=x,U.next_in=w,U.avail_in=H,E.hold=O,E.bits=F,2;U.adler=E.check=1,E.mode=12;case 12:if(I===5||I===6)break e;case 13:if(E.last){O>>>=7&F,F-=7&F,E.mode=27;break}for(;F<3;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}switch(E.last=1&O,F-=1,3&(O>>>=1)){case 0:E.mode=14;break;case 1:if(R(E),E.mode=20,I!==6)break;O>>>=2,F-=2;break e;case 2:E.mode=17;break;case 3:U.msg="invalid block type",E.mode=30}O>>>=2,F-=2;break;case 14:for(O>>>=7&F,F-=7&F;F<32;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}if((65535&O)!=(O>>>16^65535)){U.msg="invalid stored block lengths",E.mode=30;break}if(E.length=65535&O,F=O=0,E.mode=15,I===6)break e;case 15:E.mode=16;case 16:if(te=E.length){if(H<te&&(te=H),x<te&&(te=x),te===0)break e;u.arraySet(W,$,w,te,ce),H-=te,w+=te,x-=te,ce+=te,E.length-=te;break}E.mode=12;break;case 17:for(;F<14;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}if(E.nlen=257+(31&O),O>>>=5,F-=5,E.ndist=1+(31&O),O>>>=5,F-=5,E.ncode=4+(15&O),O>>>=4,F-=4,286<E.nlen||30<E.ndist){U.msg="too many length or distance symbols",E.mode=30;break}E.have=0,E.mode=18;case 18:for(;E.have<E.ncode;){for(;F<3;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}E.lens[pe[E.have++]]=7&O,O>>>=3,F-=3}for(;E.have<19;)E.lens[pe[E.have++]]=0;if(E.lencode=E.lendyn,E.lenbits=7,ue={bits:E.lenbits},de=p(0,E.lens,0,19,E.lencode,0,E.work,ue),E.lenbits=ue.bits,de){U.msg="invalid code lengths set",E.mode=30;break}E.have=0,E.mode=19;case 19:for(;E.have<E.nlen+E.ndist;){for(;Te=(Y=E.lencode[O&(1<<E.lenbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=F);){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}if(Ne<16)O>>>=Se,F-=Se,E.lens[E.have++]=Ne;else{if(Ne===16){for(q=Se+2;F<q;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}if(O>>>=Se,F-=Se,E.have===0){U.msg="invalid bit length repeat",E.mode=30;break}k=E.lens[E.have-1],te=3+(3&O),O>>>=2,F-=2}else if(Ne===17){for(q=Se+3;F<q;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}F-=Se,k=0,te=3+(7&(O>>>=Se)),O>>>=3,F-=3}else{for(q=Se+7;F<q;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}F-=Se,k=0,te=11+(127&(O>>>=Se)),O>>>=7,F-=7}if(E.have+te>E.nlen+E.ndist){U.msg="invalid bit length repeat",E.mode=30;break}for(;te--;)E.lens[E.have++]=k}}if(E.mode===30)break;if(E.lens[256]===0){U.msg="invalid code -- missing end-of-block",E.mode=30;break}if(E.lenbits=9,ue={bits:E.lenbits},de=p(g,E.lens,0,E.nlen,E.lencode,0,E.work,ue),E.lenbits=ue.bits,de){U.msg="invalid literal/lengths set",E.mode=30;break}if(E.distbits=6,E.distcode=E.distdyn,ue={bits:E.distbits},de=p(v,E.lens,E.nlen,E.ndist,E.distcode,0,E.work,ue),E.distbits=ue.bits,de){U.msg="invalid distances set",E.mode=30;break}if(E.mode=20,I===6)break e;case 20:E.mode=21;case 21:if(6<=H&&258<=x){U.next_out=ce,U.avail_out=x,U.next_in=w,U.avail_in=H,E.hold=O,E.bits=F,h(U,Q),ce=U.next_out,W=U.output,x=U.avail_out,w=U.next_in,$=U.input,H=U.avail_in,O=E.hold,F=E.bits,E.mode===12&&(E.back=-1);break}for(E.back=0;Te=(Y=E.lencode[O&(1<<E.lenbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=F);){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}if(Te&&(240&Te)==0){for(Oe=Se,Le=Te,Re=Ne;Te=(Y=E.lencode[Re+((O&(1<<Oe+Le)-1)>>Oe)])>>>16&255,Ne=65535&Y,!(Oe+(Se=Y>>>24)<=F);){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}O>>>=Oe,F-=Oe,E.back+=Oe}if(O>>>=Se,F-=Se,E.back+=Se,E.length=Ne,Te===0){E.mode=26;break}if(32&Te){E.back=-1,E.mode=12;break}if(64&Te){U.msg="invalid literal/length code",E.mode=30;break}E.extra=15&Te,E.mode=22;case 22:if(E.extra){for(q=E.extra;F<q;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}E.length+=O&(1<<E.extra)-1,O>>>=E.extra,F-=E.extra,E.back+=E.extra}E.was=E.length,E.mode=23;case 23:for(;Te=(Y=E.distcode[O&(1<<E.distbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=F);){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}if((240&Te)==0){for(Oe=Se,Le=Te,Re=Ne;Te=(Y=E.distcode[Re+((O&(1<<Oe+Le)-1)>>Oe)])>>>16&255,Ne=65535&Y,!(Oe+(Se=Y>>>24)<=F);){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}O>>>=Oe,F-=Oe,E.back+=Oe}if(O>>>=Se,F-=Se,E.back+=Se,64&Te){U.msg="invalid distance code",E.mode=30;break}E.offset=Ne,E.extra=15&Te,E.mode=24;case 24:if(E.extra){for(q=E.extra;F<q;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}E.offset+=O&(1<<E.extra)-1,O>>>=E.extra,F-=E.extra,E.back+=E.extra}if(E.offset>E.dmax){U.msg="invalid distance too far back",E.mode=30;break}E.mode=25;case 25:if(x===0)break e;if(te=Q-x,E.offset>te){if((te=E.offset-te)>E.whave&&E.sane){U.msg="invalid distance too far back",E.mode=30;break}se=te>E.wnext?(te-=E.wnext,E.wsize-te):E.wnext-te,te>E.length&&(te=E.length),be=E.window}else be=W,se=ce-E.offset,te=E.length;for(x<te&&(te=x),x-=te,E.length-=te;W[ce++]=be[se++],--te;);E.length===0&&(E.mode=21);break;case 26:if(x===0)break e;W[ce++]=E.length,x--,E.mode=21;break;case 27:if(E.wrap){for(;F<32;){if(H===0)break e;H--,O|=$[w++]<<F,F+=8}if(Q-=x,U.total_out+=Q,E.total+=Q,Q&&(U.adler=E.check=E.flags?f(E.check,W,Q,ce-Q):c(E.check,W,Q,ce-Q)),Q=x,(E.flags?O:A(O))!==E.check){U.msg="incorrect data check",E.mode=30;break}F=O=0}E.mode=28;case 28:if(E.wrap&&E.flags){for(;F<32;){if(H===0)break e;H--,O+=$[w++]<<F,F+=8}if(O!==(4294967295&E.total)){U.msg="incorrect length check",E.mode=30;break}F=O=0}E.mode=29;case 29:de=1;break e;case 30:de=-3;break e;case 31:return-4;case 32:default:return j}return U.next_out=ce,U.avail_out=x,U.next_in=w,U.avail_in=H,E.hold=O,E.bits=F,(E.wsize||Q!==U.avail_out&&E.mode<30&&(E.mode<27||I!==4))&&X(U,U.output,U.next_out,Q-U.avail_out)?(E.mode=31,-4):(J-=U.avail_in,Q-=U.avail_out,U.total_in+=J,U.total_out+=Q,E.total+=Q,E.wrap&&Q&&(U.adler=E.check=E.flags?f(E.check,W,Q,U.next_out-Q):c(E.check,W,Q,U.next_out-Q)),U.data_type=E.bits+(E.last?64:0)+(E.mode===12?128:0)+(E.mode===20||E.mode===15?256:0),(J==0&&Q===0||I===4)&&de===b&&(de=-5),de)},o.inflateEnd=function(U){if(!U||!U.state)return j;var I=U.state;return I.window&&(I.window=null),U.state=null,b},o.inflateGetHeader=function(U,I){var E;return U&&U.state?(2&(E=U.state).wrap)==0?j:((E.head=I).done=!1,b):j},o.inflateSetDictionary=function(U,I){var E,$=I.length;return U&&U.state?(E=U.state).wrap!==0&&E.mode!==11?j:E.mode===11&&c(1,I,$,0)!==E.check?-3:X(U,I,$,$)?(E.mode=31,-4):(E.havedict=1,b):j},o.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(a,s,o){var u=a("../utils/common"),c=[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],p=[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,v,b,j,_,S,N,A){var M,L,G,T,P,z,B,D,R,X=A.bits,U=0,I=0,E=0,$=0,W=0,w=0,ce=0,H=0,x=0,O=0,F=null,J=0,Q=new u.Buf16(16),te=new u.Buf16(16),se=null,be=0;for(U=0;U<=15;U++)Q[U]=0;for(I=0;I<j;I++)Q[v[b+I]]++;for(W=X,$=15;1<=$&&Q[$]===0;$--);if($<W&&(W=$),$===0)return _[S++]=20971520,_[S++]=20971520,A.bits=1,0;for(E=1;E<$&&Q[E]===0;E++);for(W<E&&(W=E),U=H=1;U<=15;U++)if(H<<=1,(H-=Q[U])<0)return-1;if(0<H&&(g===0||$!==1))return-1;for(te[1]=0,U=1;U<15;U++)te[U+1]=te[U]+Q[U];for(I=0;I<j;I++)v[b+I]!==0&&(N[te[v[b+I]]++]=I);if(z=g===0?(F=se=N,19):g===1?(F=c,J-=257,se=f,be-=257,256):(F=h,se=p,-1),U=E,P=S,ce=I=O=0,G=-1,T=(x=1<<(w=W))-1,g===1&&852<x||g===2&&592<x)return 1;for(;;){for(B=U-ce,R=N[I]<z?(D=0,N[I]):N[I]>z?(D=se[be+N[I]],F[J+N[I]]):(D=96,0),M=1<<U-ce,E=L=1<<w;_[P+(O>>ce)+(L-=M)]=B<<24|D<<16|R|0,L!==0;);for(M=1<<U-1;O&M;)M>>=1;if(M!==0?(O&=M-1,O+=M):O=0,I++,--Q[U]==0){if(U===$)break;U=v[b+N[I]]}if(W<U&&(O&T)!==G){for(ce===0&&(ce=W),P+=E,H=1<<(w=U-ce);w+ce<$&&!((H-=Q[w+ce])<=0);)w++,H<<=1;if(x+=1<<w,g===1&&852<x||g===2&&592<x)return 1;_[G=O&T]=W<<24|w<<16|P-S|0}}return O!==0&&(_[P+O]=U-ce<<24|64<<16|0),A.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 u=a("../utils/common"),c=0,f=1;function h(Y){for(var ee=Y.length;0<=--ee;)Y[ee]=0}var p=0,g=29,v=256,b=v+1+g,j=30,_=19,S=2*b+1,N=15,A=16,M=7,L=256,G=16,T=17,P=18,z=[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],B=[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],D=[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],X=new Array(2*(b+2));h(X);var U=new Array(2*j);h(U);var I=new Array(512);h(I);var E=new Array(256);h(E);var $=new Array(g);h($);var W,w,ce,H=new Array(j);function x(Y,ee,pe,ye,oe){this.static_tree=Y,this.extra_bits=ee,this.extra_base=pe,this.elems=ye,this.max_length=oe,this.has_stree=Y&&Y.length}function O(Y,ee){this.dyn_tree=Y,this.max_code=0,this.stat_desc=ee}function F(Y){return Y<256?I[Y]:I[256+(Y>>>7)]}function J(Y,ee){Y.pending_buf[Y.pending++]=255&ee,Y.pending_buf[Y.pending++]=ee>>>8&255}function Q(Y,ee,pe){Y.bi_valid>A-pe?(Y.bi_buf|=ee<<Y.bi_valid&65535,J(Y,Y.bi_buf),Y.bi_buf=ee>>A-Y.bi_valid,Y.bi_valid+=pe-A):(Y.bi_buf|=ee<<Y.bi_valid&65535,Y.bi_valid+=pe)}function te(Y,ee,pe){Q(Y,pe[2*ee],pe[2*ee+1])}function se(Y,ee){for(var pe=0;pe|=1&Y,Y>>>=1,pe<<=1,0<--ee;);return pe>>>1}function be(Y,ee,pe){var ye,oe,je=new Array(N+1),Ee=0;for(ye=1;ye<=N;ye++)je[ye]=Ee=Ee+pe[ye-1]<<1;for(oe=0;oe<=ee;oe++){var re=Y[2*oe+1];re!==0&&(Y[2*oe]=se(je[re]++,re))}}function Se(Y){var ee;for(ee=0;ee<b;ee++)Y.dyn_ltree[2*ee]=0;for(ee=0;ee<j;ee++)Y.dyn_dtree[2*ee]=0;for(ee=0;ee<_;ee++)Y.bl_tree[2*ee]=0;Y.dyn_ltree[2*L]=1,Y.opt_len=Y.static_len=0,Y.last_lit=Y.matches=0}function Te(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,ee,pe,ye){var oe=2*ee,je=2*pe;return Y[oe]<Y[je]||Y[oe]===Y[je]&&ye[ee]<=ye[pe]}function Oe(Y,ee,pe){for(var ye=Y.heap[pe],oe=pe<<1;oe<=Y.heap_len&&(oe<Y.heap_len&&Ne(ee,Y.heap[oe+1],Y.heap[oe],Y.depth)&&oe++,!Ne(ee,ye,Y.heap[oe],Y.depth));)Y.heap[pe]=Y.heap[oe],pe=oe,oe<<=1;Y.heap[pe]=ye}function Le(Y,ee,pe){var ye,oe,je,Ee,re=0;if(Y.last_lit!==0)for(;ye=Y.pending_buf[Y.d_buf+2*re]<<8|Y.pending_buf[Y.d_buf+2*re+1],oe=Y.pending_buf[Y.l_buf+re],re++,ye===0?te(Y,oe,ee):(te(Y,(je=E[oe])+v+1,ee),(Ee=z[je])!==0&&Q(Y,oe-=$[je],Ee),te(Y,je=F(--ye),pe),(Ee=B[je])!==0&&Q(Y,ye-=H[je],Ee)),re<Y.last_lit;);te(Y,L,ee)}function Re(Y,ee){var pe,ye,oe,je=ee.dyn_tree,Ee=ee.stat_desc.static_tree,re=ee.stat_desc.has_stree,ve=ee.stat_desc.elems,_e=-1;for(Y.heap_len=0,Y.heap_max=S,pe=0;pe<ve;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--,re&&(Y.static_len-=Ee[2*oe+1]);for(ee.max_code=_e,pe=Y.heap_len>>1;1<=pe;pe--)Oe(Y,je,pe);for(oe=ve;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,qe){var rn,ut,pn,nt,Qn,Cn,Gt=qe.dyn_tree,Tr=qe.max_code,fc=qe.stat_desc.static_tree,zo=qe.stat_desc.has_stree,Uo=qe.stat_desc.extra_bits,za=qe.stat_desc.extra_base,Dn=qe.stat_desc.max_length,Ua=0;for(nt=0;nt<=N;nt++)Ce.bl_count[nt]=0;for(Gt[2*Ce.heap[Ce.heap_max]+1]=0,rn=Ce.heap_max+1;rn<S;rn++)Dn<(nt=Gt[2*Gt[2*(ut=Ce.heap[rn])+1]+1]+1)&&(nt=Dn,Ua++),Gt[2*ut+1]=nt,Tr<ut||(Ce.bl_count[nt]++,Qn=0,za<=ut&&(Qn=Uo[ut-za]),Cn=Gt[2*ut],Ce.opt_len+=Cn*(nt+Qn),zo&&(Ce.static_len+=Cn*(fc[2*ut+1]+Qn)));if(Ua!==0){do{for(nt=Dn-1;Ce.bl_count[nt]===0;)nt--;Ce.bl_count[nt]--,Ce.bl_count[nt+1]+=2,Ce.bl_count[Dn]--,Ua-=2}while(0<Ua);for(nt=Dn;nt!==0;nt--)for(ut=Ce.bl_count[nt];ut!==0;)Tr<(pn=Ce.heap[--rn])||(Gt[2*pn+1]!==nt&&(Ce.opt_len+=(nt-Gt[2*pn+1])*Gt[2*pn],Gt[2*pn+1]=nt),ut--)}}(Y,ee),be(je,_e,Y.bl_count)}function k(Y,ee,pe){var ye,oe,je=-1,Ee=ee[1],re=0,ve=7,_e=4;for(Ee===0&&(ve=138,_e=3),ee[2*(pe+1)+1]=65535,ye=0;ye<=pe;ye++)oe=Ee,Ee=ee[2*(ye+1)+1],++re<ve&&oe===Ee||(re<_e?Y.bl_tree[2*oe]+=re:oe!==0?(oe!==je&&Y.bl_tree[2*oe]++,Y.bl_tree[2*G]++):re<=10?Y.bl_tree[2*T]++:Y.bl_tree[2*P]++,je=oe,_e=(re=0)===Ee?(ve=138,3):oe===Ee?(ve=6,3):(ve=7,4))}function de(Y,ee,pe){var ye,oe,je=-1,Ee=ee[1],re=0,ve=7,_e=4;for(Ee===0&&(ve=138,_e=3),ye=0;ye<=pe;ye++)if(oe=Ee,Ee=ee[2*(ye+1)+1],!(++re<ve&&oe===Ee)){if(re<_e)for(;te(Y,oe,Y.bl_tree),--re!=0;);else oe!==0?(oe!==je&&(te(Y,oe,Y.bl_tree),re--),te(Y,G,Y.bl_tree),Q(Y,re-3,2)):re<=10?(te(Y,T,Y.bl_tree),Q(Y,re-3,3)):(te(Y,P,Y.bl_tree),Q(Y,re-11,7));je=oe,_e=(re=0)===Ee?(ve=138,3):oe===Ee?(ve=6,3):(ve=7,4)}}h(H);var ue=!1;function q(Y,ee,pe,ye){Q(Y,(p<<1)+(ye?1:0),3),function(oe,je,Ee,re){Te(oe),J(oe,Ee),J(oe,~Ee),u.arraySet(oe.pending_buf,oe.window,je,Ee,oe.pending),oe.pending+=Ee}(Y,ee,pe)}o._tr_init=function(Y){ue||(function(){var ee,pe,ye,oe,je,Ee=new Array(N+1);for(oe=ye=0;oe<g-1;oe++)for($[oe]=ye,ee=0;ee<1<<z[oe];ee++)E[ye++]=oe;for(E[ye-1]=oe,oe=je=0;oe<16;oe++)for(H[oe]=je,ee=0;ee<1<<B[oe];ee++)I[je++]=oe;for(je>>=7;oe<j;oe++)for(H[oe]=je<<7,ee=0;ee<1<<B[oe]-7;ee++)I[256+je++]=oe;for(pe=0;pe<=N;pe++)Ee[pe]=0;for(ee=0;ee<=143;)X[2*ee+1]=8,ee++,Ee[8]++;for(;ee<=255;)X[2*ee+1]=9,ee++,Ee[9]++;for(;ee<=279;)X[2*ee+1]=7,ee++,Ee[7]++;for(;ee<=287;)X[2*ee+1]=8,ee++,Ee[8]++;for(be(X,b+1,Ee),ee=0;ee<j;ee++)U[2*ee+1]=5,U[2*ee]=se(ee,5);W=new x(X,z,v+1,b,N),w=new x(U,B,0,j,N),ce=new x(new Array(0),D,0,_,M)}(),ue=!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,ce),Y.bi_buf=0,Y.bi_valid=0,Se(Y)},o._tr_stored_block=q,o._tr_flush_block=function(Y,ee,pe,ye){var oe,je,Ee=0;0<Y.level?(Y.strm.data_type===2&&(Y.strm.data_type=function(re){var ve,_e=4093624447;for(ve=0;ve<=31;ve++,_e>>>=1)if(1&_e&&re.dyn_ltree[2*ve]!==0)return c;if(re.dyn_ltree[18]!==0||re.dyn_ltree[20]!==0||re.dyn_ltree[26]!==0)return f;for(ve=32;ve<v;ve++)if(re.dyn_ltree[2*ve]!==0)return f;return c}(Y)),Re(Y,Y.l_desc),Re(Y,Y.d_desc),Ee=function(re){var ve;for(k(re,re.dyn_ltree,re.l_desc.max_code),k(re,re.dyn_dtree,re.d_desc.max_code),Re(re,re.bl_desc),ve=_-1;3<=ve&&re.bl_tree[2*R[ve]+1]===0;ve--);return re.opt_len+=3*(ve+1)+5+5+4,ve}(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&&ee!==-1?q(Y,ee,pe,ye):Y.strategy===4||je===oe?(Q(Y,2+(ye?1:0),3),Le(Y,X,U)):(Q(Y,4+(ye?1:0),3),function(re,ve,_e,Ce){var qe;for(Q(re,ve-257,5),Q(re,_e-1,5),Q(re,Ce-4,4),qe=0;qe<Ce;qe++)Q(re,re.bl_tree[2*R[qe]+1],3);de(re,re.dyn_ltree,ve-1),de(re,re.dyn_dtree,_e-1)}(Y,Y.l_desc.max_code+1,Y.d_desc.max_code+1,Ee+1),Le(Y,Y.dyn_ltree,Y.dyn_dtree)),Se(Y),ye&&Te(Y)},o._tr_tally=function(Y,ee,pe){return Y.pending_buf[Y.d_buf+2*Y.last_lit]=ee>>>8&255,Y.pending_buf[Y.d_buf+2*Y.last_lit+1]=255&ee,Y.pending_buf[Y.l_buf+Y.last_lit]=255&pe,Y.last_lit++,ee===0?Y.dyn_ltree[2*pe]++:(Y.matches++,ee--,Y.dyn_ltree[2*(E[pe]+v+1)]++,Y.dyn_dtree[2*F(ee)]++),Y.last_lit===Y.lit_bufsize-1},o._tr_align=function(Y){Q(Y,2,3),te(Y,L,X),function(ee){ee.bi_valid===16?(J(ee,ee.bi_buf),ee.bi_buf=0,ee.bi_valid=0):8<=ee.bi_valid&&(ee.pending_buf[ee.pending++]=255&ee.bi_buf,ee.bi_buf>>=8,ee.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(u){(function(c,f){if(!c.setImmediate){var h,p,g,v,b=1,j={},_=!1,S=c.document,N=Object.getPrototypeOf&&Object.getPrototypeOf(c);N=N&&N.setTimeout?N:c,h={}.toString.call(c.process)==="[object process]"?function(G){process.nextTick(function(){M(G)})}:function(){if(c.postMessage&&!c.importScripts){var G=!0,T=c.onmessage;return c.onmessage=function(){G=!1},c.postMessage("","*"),c.onmessage=T,G}}()?(v="setImmediate$"+Math.random()+"$",c.addEventListener?c.addEventListener("message",L,!1):c.attachEvent("onmessage",L),function(G){c.postMessage(v+G,"*")}):c.MessageChannel?((g=new MessageChannel).port1.onmessage=function(G){M(G.data)},function(G){g.port2.postMessage(G)}):S&&"onreadystatechange"in S.createElement("script")?(p=S.documentElement,function(G){var T=S.createElement("script");T.onreadystatechange=function(){M(G),T.onreadystatechange=null,p.removeChild(T),T=null},p.appendChild(T)}):function(G){setTimeout(M,0,G)},N.setImmediate=function(G){typeof G!="function"&&(G=new Function(""+G));for(var T=new Array(arguments.length-1),P=0;P<T.length;P++)T[P]=arguments[P+1];var z={callback:G,args:T};return j[b]=z,h(b),b++},N.clearImmediate=A}function A(G){delete j[G]}function M(G){if(_)setTimeout(M,0,G);else{var T=j[G];if(T){_=!0;try{(function(P){var z=P.callback,B=P.args;switch(B.length){case 0:z();break;case 1:z(B[0]);break;case 2:z(B[0],B[1]);break;case 3:z(B[0],B[1],B[2]);break;default:z.apply(f,B)}})(T)}finally{A(G),_=!1}}}}function L(G){G.source===c&&typeof G.data=="string"&&G.data.indexOf(v)===0&&M(+G.data.slice(v.length))}})(typeof self>"u"?u===void 0?this:u:self)}).call(this,typeof Nn<"u"?Nn:typeof self<"u"?self:typeof window<"u"?window:{})},{}]},{},[10])(10)})}(Hf)),Hf.exports}var KN=YN();const WN=Iu(KN);var xu={exports:{}},XN=xu.exports,Lv;function ZN(){return Lv||(Lv=1,function(e,n){(function(a,s){s()})(XN,function(){function a(p,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(p.type)?new Blob(["\uFEFF",p],{type:p.type}):p}function s(p,g,v){var b=new XMLHttpRequest;b.open("GET",p),b.responseType="blob",b.onload=function(){h(b.response,g,v)},b.onerror=function(){console.error("could not download file")},b.send()}function o(p){var g=new XMLHttpRequest;g.open("HEAD",p,!1);try{g.send()}catch{}return 200<=g.status&&299>=g.status}function u(p){try{p.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),p.dispatchEvent(g)}}var c=typeof window=="object"&&window.window===window?window:typeof self=="object"&&self.self===self?self:typeof Nn=="object"&&Nn.global===Nn?Nn:void 0,f=c.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),h=c.saveAs||(typeof window!="object"||window!==c?function(){}:"download"in HTMLAnchorElement.prototype&&!f?function(p,g,v){var b=c.URL||c.webkitURL,j=document.createElement("a");g=g||p.name||"download",j.download=g,j.rel="noopener",typeof p=="string"?(j.href=p,j.origin===location.origin?u(j):o(j.href)?s(p,g,v):u(j,j.target="_blank")):(j.href=b.createObjectURL(p),setTimeout(function(){b.revokeObjectURL(j.href)},4e4),setTimeout(function(){u(j)},0))}:"msSaveOrOpenBlob"in navigator?function(p,g,v){if(g=g||p.name||"download",typeof p!="string")navigator.msSaveOrOpenBlob(a(p,v),g);else if(o(p))s(p,g,v);else{var b=document.createElement("a");b.href=p,b.target="_blank",setTimeout(function(){u(b)})}}:function(p,g,v,b){if(b=b||open("","_blank"),b&&(b.document.title=b.document.body.innerText="downloading..."),typeof p=="string")return s(p,g,v);var j=p.type==="application/octet-stream",_=/constructor/i.test(c.HTMLElement)||c.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||j&&_||f)&&typeof FileReader<"u"){var N=new FileReader;N.onloadend=function(){var L=N.result;L=S?L:L.replace(/^data:[^;]*;/,"data:attachment/file;"),b?b.location.href=L:location=L,b=null},N.readAsDataURL(p)}else{var A=c.URL||c.webkitURL,M=A.createObjectURL(p);b?b.location=M:location.href=M,b=null,setTimeout(function(){A.revokeObjectURL(M)},4e4)}});c.saveAs=h.saveAs=h,e.exports=h})}(xu)),xu.exports}var $N=ZN();const QN="/assets/bg-CTZfS44-.jpg",JN="/assets/mobile-DVtmHUcA.png",e5="/assets/wherego-CxrpFa6S.jpeg",t5="/assets/futuresee-vF3riMDq.jpeg",n5="/assets/map-DfwT83pC.png",U1="/assets/direction-DvSXpJ92.png",r5="/assets/rides-DHFaS9Zp.png",a5="/assets/connectors-DxMTDBst.png",i5="/assets/recoveries-CVwWHeuA.png",s5="/assets/delivery-D2UlqJpG.png",o5="/assets/shifting-DYqoMp4y.png",l5="/assets/tourism-Dr_CLv8Q.png",B1="/assets/bg2-C1RXNloV.png",F1="/assets/book-DZfcrvd8.png",V1="/assets/booklady-CV6x7ftQ.jpg",H1="/assets/playbutton-BmD_M-Vz.png",I1="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=",u5="/assets/countless1-CVck5bx4.jpg",c5="/assets/countless2-b-eUsns6.png",d5="/assets/countless3-DjmIYyMw.png",f5="/assets/brochure-C8xBBGg_.pdf",h5="/assets/document1-49tq_C5-.pdf",m5="/assets/guide-DwMDUa26.pdf";var If={},qf={},Zs={},Gf={},Pv;function p5(){return Pv||(Pv=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}(Gf)),Gf}var Yf,zv;function g5(){if(zv)return Yf;zv=1;var e="Expected a function",n=NaN,a="[object Symbol]",s=/^\s+|\s+$/g,o=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,f=parseInt,h=typeof Nn=="object"&&Nn&&Nn.Object===Object&&Nn,p=typeof self=="object"&&self&&self.Object===Object&&self,g=h||p||Function("return this")(),v=Object.prototype,b=v.toString,j=Math.max,_=Math.min,S=function(){return g.Date.now()};function N(T,P,z){var B,D,R,X,U,I,E=0,$=!1,W=!1,w=!0;if(typeof T!="function")throw new TypeError(e);P=G(P)||0,A(z)&&($=!!z.leading,W="maxWait"in z,R=W?j(G(z.maxWait)||0,P):R,w="trailing"in z?!!z.trailing:w);function ce(be){var Se=B,Te=D;return B=D=void 0,E=be,X=T.apply(Te,Se),X}function H(be){return E=be,U=setTimeout(F,P),$?ce(be):X}function x(be){var Se=be-I,Te=be-E,Ne=P-Se;return W?_(Ne,R-Te):Ne}function O(be){var Se=be-I,Te=be-E;return I===void 0||Se>=P||Se<0||W&&Te>=R}function F(){var be=S();if(O(be))return J(be);U=setTimeout(F,x(be))}function J(be){return U=void 0,w&&B?ce(be):(B=D=void 0,X)}function Q(){U!==void 0&&clearTimeout(U),E=0,B=I=D=U=void 0}function te(){return U===void 0?X:J(S())}function se(){var be=S(),Se=O(be);if(B=arguments,D=this,I=be,Se){if(U===void 0)return H(I);if(W)return U=setTimeout(F,P),ce(I)}return U===void 0&&(U=setTimeout(F,P)),X}return se.cancel=Q,se.flush=te,se}function A(T){var P=typeof T;return!!T&&(P=="object"||P=="function")}function M(T){return!!T&&typeof T=="object"}function L(T){return typeof T=="symbol"||M(T)&&b.call(T)==a}function G(T){if(typeof T=="number")return T;if(L(T))return n;if(A(T)){var P=typeof T.valueOf=="function"?T.valueOf():T;T=A(P)?P+"":P}if(typeof T!="string")return T===0?T:+T;T=T.replace(s,"");var z=u.test(T);return z||c.test(T)?f(T.slice(2),z?2:8):o.test(T)?n:+T}return Yf=N,Yf}var Kf={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var Uv;function oc(){return Uv||(Uv=1,function(e){(function(){var n={}.hasOwnProperty;function a(){for(var u="",c=0;c<arguments.length;c++){var f=arguments[c];f&&(u=o(u,s(f)))}return u}function s(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return a.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var c="";for(var f in u)n.call(u,f)&&u[f]&&(c=o(c,f));return c}function o(u,c){return c?u?u+" "+c:u+c:u}e.exports?(a.default=a,e.exports=a):window.classNames=a})()}(Kf)),Kf.exports}var Ae={},Wf={},Bv;function q1(){return Bv||(Bv=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(On());function a(o){return o&&o.__esModule?o:{default:o}}var s={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(u){return n.default.createElement("ul",{style:{display:"block"}},u)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(u){return n.default.createElement("button",null,u+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}(Wf)),Wf}var Fv;function Co(){if(Fv)return Ae;Fv=1,Object.defineProperty(Ae,"__esModule",{value:!0}),Ae.checkSpecKeys=Ae.checkNavigable=Ae.changeSlide=Ae.canUseDOM=Ae.canGoNext=void 0,Ae.clamp=p,Ae.extractObject=void 0,Ae.filterSettings=ce,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(On()),n=a(q1());function a(H){return H&&H.__esModule?H:{default:H}}function s(H){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(x){return typeof x}:function(x){return x&&typeof Symbol=="function"&&x.constructor===Symbol&&x!==Symbol.prototype?"symbol":typeof x},s(H)}function o(H,x){var O=Object.keys(H);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(H);x&&(F=F.filter(function(J){return Object.getOwnPropertyDescriptor(H,J).enumerable})),O.push.apply(O,F)}return O}function u(H){for(var x=1;x<arguments.length;x++){var O=arguments[x]!=null?arguments[x]:{};x%2?o(Object(O),!0).forEach(function(F){c(H,F,O[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(O)):o(Object(O)).forEach(function(F){Object.defineProperty(H,F,Object.getOwnPropertyDescriptor(O,F))})}return H}function c(H,x,O){return x=f(x),x in H?Object.defineProperty(H,x,{value:O,enumerable:!0,configurable:!0,writable:!0}):H[x]=O,H}function f(H){var x=h(H,"string");return s(x)=="symbol"?x:String(x)}function h(H,x){if(s(H)!="object"||!H)return H;var O=H[Symbol.toPrimitive];if(O!==void 0){var F=O.call(H,x);if(s(F)!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(H)}function p(H,x,O){return Math.max(x,Math.min(H,O))}var g=Ae.safePreventDefault=function(x){var O=["onTouchStart","onTouchMove","onWheel"];O.includes(x._reactName)||x.preventDefault()},v=Ae.getOnDemandLazySlides=function(x){for(var O=[],F=b(x),J=j(x),Q=F;Q<J;Q++)x.lazyLoadedList.indexOf(Q)<0&&O.push(Q);return O};Ae.getRequiredLazySlides=function(x){for(var O=[],F=b(x),J=j(x),Q=F;Q<J;Q++)O.push(Q);return O};var b=Ae.lazyStartIndex=function(x){return x.currentSlide-_(x)},j=Ae.lazyEndIndex=function(x){return x.currentSlide+S(x)},_=Ae.lazySlidesOnLeft=function(x){return x.centerMode?Math.floor(x.slidesToShow/2)+(parseInt(x.centerPadding)>0?1:0):0},S=Ae.lazySlidesOnRight=function(x){return x.centerMode?Math.floor((x.slidesToShow-1)/2)+1+(parseInt(x.centerPadding)>0?1:0):x.slidesToShow},N=Ae.getWidth=function(x){return x&&x.offsetWidth||0},A=Ae.getHeight=function(x){return x&&x.offsetHeight||0},M=Ae.getSwipeDirection=function(x){var O=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,F,J,Q,te;return F=x.startX-x.curX,J=x.startY-x.curY,Q=Math.atan2(J,F),te=Math.round(Q*180/Math.PI),te<0&&(te=360-Math.abs(te)),te<=45&&te>=0||te<=360&&te>=315?"left":te>=135&&te<=225?"right":O===!0?te>=35&&te<=135?"up":"down":"vertical"},L=Ae.canGoNext=function(x){var O=!0;return x.infinite||(x.centerMode&&x.currentSlide>=x.slideCount-1||x.slideCount<=x.slidesToShow||x.currentSlide>=x.slideCount-x.slidesToShow)&&(O=!1),O};Ae.extractObject=function(x,O){var F={};return O.forEach(function(J){return F[J]=x[J]}),F},Ae.initializedState=function(x){var O=e.default.Children.count(x.children),F=x.listRef,J=Math.ceil(N(F)),Q=x.trackRef&&x.trackRef.node,te=Math.ceil(N(Q)),se;if(x.vertical)se=J;else{var be=x.centerMode&&parseInt(x.centerPadding)*2;typeof x.centerPadding=="string"&&x.centerPadding.slice(-1)==="%"&&(be*=J/100),se=Math.ceil((J-be)/x.slidesToShow)}var Se=F&&A(F.querySelector('[data-index="0"]')),Te=Se*x.slidesToShow,Ne=x.currentSlide===void 0?x.initialSlide:x.currentSlide;x.rtl&&x.currentSlide===void 0&&(Ne=O-1-x.initialSlide);var Oe=x.lazyLoadedList||[],Le=v(u(u({},x),{},{currentSlide:Ne,lazyLoadedList:Oe}));Oe=Oe.concat(Le);var Re={slideCount:O,slideWidth:se,listWidth:J,trackWidth:te,currentSlide:Ne,slideHeight:Se,listHeight:Te,lazyLoadedList:Oe};return x.autoplaying===null&&x.autoplay&&(Re.autoplaying="playing"),Re},Ae.slideHandler=function(x){var O=x.waitForAnimate,F=x.animating,J=x.fade,Q=x.infinite,te=x.index,se=x.slideCount,be=x.lazyLoad,Se=x.currentSlide,Te=x.centerMode,Ne=x.slidesToScroll,Oe=x.slidesToShow,Le=x.useCSS,Re=x.lazyLoadedList;if(O&&F)return{};var k=te,de,ue,q,Y={},ee={},pe=Q?te:p(te,0,se-1);if(J){if(!Q&&(te<0||te>=se))return{};te<0?k=te+se:te>=se&&(k=te-se),be&&Re.indexOf(k)<0&&(Re=Re.concat(k)),Y={animating:!0,currentSlide:k,lazyLoadedList:Re,targetSlide:k},ee={animating:!1,targetSlide:k}}else de=k,k<0?(de=k+se,Q?se%Ne!==0&&(de=se-se%Ne):de=0):!L(x)&&k>Se?k=de=Se:Te&&k>=se?(k=Q?se:se-1,de=Q?0:se-1):k>=se&&(de=k-se,Q?se%Ne!==0&&(de=0):de=se-Oe),!Q&&k+Oe>=se&&(de=se-Oe),ue=R(u(u({},x),{},{slideIndex:k})),q=R(u(u({},x),{},{slideIndex:de})),Q||(ue===q&&(k=de),ue=q),be&&(Re=Re.concat(v(u(u({},x),{},{currentSlide:k})))),Le?(Y={animating:!0,currentSlide:de,trackStyle:D(u(u({},x),{},{left:ue})),lazyLoadedList:Re,targetSlide:pe},ee={animating:!1,currentSlide:de,trackStyle:B(u(u({},x),{},{left:q})),swipeLeft:null,targetSlide:pe}):Y={currentSlide:de,trackStyle:B(u(u({},x),{},{left:q})),lazyLoadedList:Re,targetSlide:pe};return{state:Y,nextState:ee}},Ae.changeSlide=function(x,O){var F,J,Q,te,se,be=x.slidesToScroll,Se=x.slidesToShow,Te=x.slideCount,Ne=x.currentSlide,Oe=x.targetSlide,Le=x.lazyLoad,Re=x.infinite;if(te=Te%be!==0,F=te?0:(Te-Ne)%be,O.message==="previous")Q=F===0?be:Se-F,se=Ne-Q,Le&&!Re&&(J=Ne-Q,se=J===-1?Te-1:J),Re||(se=Oe-be);else if(O.message==="next")Q=F===0?be:F,se=Ne+Q,Le&&!Re&&(se=(Ne+be)%Te+F),Re||(se=Oe+be);else if(O.message==="dots")se=O.index*O.slidesToScroll;else if(O.message==="children"){if(se=O.index,Re){var k=E(u(u({},x),{},{targetSlide:se}));se>O.currentSlide&&k==="left"?se=se-Te:se<O.currentSlide&&k==="right"&&(se=se+Te)}}else O.message==="index"&&(se=Number(O.index));return se},Ae.keyHandler=function(x,O,F){return x.target.tagName.match("TEXTAREA|INPUT|SELECT")||!O?"":x.keyCode===37?F?"next":"previous":x.keyCode===39?F?"previous":"next":""},Ae.swipeStart=function(x,O,F){return x.target.tagName==="IMG"&&g(x),!O||!F&&x.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:x.touches?x.touches[0].pageX:x.clientX,startY:x.touches?x.touches[0].pageY:x.clientY,curX:x.touches?x.touches[0].pageX:x.clientX,curY:x.touches?x.touches[0].pageY:x.clientY}}},Ae.swipeMove=function(x,O){var F=O.scrolling,J=O.animating,Q=O.vertical,te=O.swipeToSlide,se=O.verticalSwiping,be=O.rtl,Se=O.currentSlide,Te=O.edgeFriction,Ne=O.edgeDragged,Oe=O.onEdge,Le=O.swiped,Re=O.swiping,k=O.slideCount,de=O.slidesToScroll,ue=O.infinite,q=O.touchObject,Y=O.swipeEvent,ee=O.listHeight,pe=O.listWidth;if(!F){if(J)return g(x);Q&&te&&se&&g(x);var ye,oe={},je=R(O);q.curX=x.touches?x.touches[0].pageX:x.clientX,q.curY=x.touches?x.touches[0].pageY:x.clientY,q.swipeLength=Math.round(Math.sqrt(Math.pow(q.curX-q.startX,2)));var Ee=Math.round(Math.sqrt(Math.pow(q.curY-q.startY,2)));if(!se&&!Re&&Ee>10)return{scrolling:!0};se&&(q.swipeLength=Ee);var re=(be?-1:1)*(q.curX>q.startX?1:-1);se&&(re=q.curY>q.startY?1:-1);var ve=Math.ceil(k/de),_e=M(O.touchObject,se),Ce=q.swipeLength;return ue||(Se===0&&(_e==="right"||_e==="down")||Se+1>=ve&&(_e==="left"||_e==="up")||!L(O)&&(_e==="left"||_e==="up"))&&(Ce=q.swipeLength*Te,Ne===!1&&Oe&&(Oe(_e),oe.edgeDragged=!0)),!Le&&Y&&(Y(_e),oe.swiped=!0),Q?ye=je+Ce*(ee/pe)*re:be?ye=je-Ce*re:ye=je+Ce*re,se&&(ye=je+Ce*re),oe=u(u({},oe),{},{touchObject:q,swipeLeft:ye,trackStyle:B(u(u({},O),{},{left:ye}))}),Math.abs(q.curX-q.startX)<Math.abs(q.curY-q.startY)*.8||q.swipeLength>10&&(oe.swiping=!0,g(x)),oe}},Ae.swipeEnd=function(x,O){var F=O.dragging,J=O.swipe,Q=O.touchObject,te=O.listWidth,se=O.touchThreshold,be=O.verticalSwiping,Se=O.listHeight,Te=O.swipeToSlide,Ne=O.scrolling,Oe=O.onSwipe,Le=O.targetSlide,Re=O.currentSlide,k=O.infinite;if(!F)return J&&g(x),{};var de=be?Se/se:te/se,ue=M(Q,be),q={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Ne||!Q.swipeLength)return q;if(Q.swipeLength>de){g(x),Oe&&Oe(ue);var Y,ee,pe=k?Re:Le;switch(ue){case"left":case"up":ee=pe+P(O),Y=Te?T(O,ee):ee,q.currentDirection=0;break;case"right":case"down":ee=pe-P(O),Y=Te?T(O,ee):ee,q.currentDirection=1;break;default:Y=pe}q.triggerSlideHandler=Y}else{var ye=R(O);q.trackStyle=D(u(u({},O),{},{left:ye}))}return q};var G=Ae.getNavigableIndexes=function(x){for(var O=x.infinite?x.slideCount*2:x.slideCount,F=x.infinite?x.slidesToShow*-1:0,J=x.infinite?x.slidesToShow*-1:0,Q=[];F<O;)Q.push(F),F=J+x.slidesToScroll,J+=Math.min(x.slidesToScroll,x.slidesToShow);return Q},T=Ae.checkNavigable=function(x,O){var F=G(x),J=0;if(O>F[F.length-1])O=F[F.length-1];else for(var Q in F){if(O<F[Q]){O=J;break}J=F[Q]}return O},P=Ae.getSlideCount=function(x){var O=x.centerMode?x.slideWidth*Math.floor(x.slidesToShow/2):0;if(x.swipeToSlide){var F,J=x.listRef,Q=J.querySelectorAll&&J.querySelectorAll(".slick-slide")||[];if(Array.from(Q).every(function(be){if(x.vertical){if(be.offsetTop+A(be)/2>x.swipeLeft*-1)return F=be,!1}else if(be.offsetLeft-O+N(be)/2>x.swipeLeft*-1)return F=be,!1;return!0}),!F)return 0;var te=x.rtl===!0?x.slideCount-x.currentSlide:x.currentSlide,se=Math.abs(F.dataset.index-te)||1;return se}else return x.slidesToScroll},z=Ae.checkSpecKeys=function(x,O){return O.reduce(function(F,J){return F&&x.hasOwnProperty(J)},!0)?null:console.error("Keys Missing:",x)},B=Ae.getTrackCSS=function(x){z(x,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var O,F,J=x.slideCount+2*x.slidesToShow;x.vertical?F=J*x.slideHeight:O=I(x)*x.slideWidth;var Q={opacity:1,transition:"",WebkitTransition:""};if(x.useTransform){var te=x.vertical?"translate3d(0px, "+x.left+"px, 0px)":"translate3d("+x.left+"px, 0px, 0px)",se=x.vertical?"translate3d(0px, "+x.left+"px, 0px)":"translate3d("+x.left+"px, 0px, 0px)",be=x.vertical?"translateY("+x.left+"px)":"translateX("+x.left+"px)";Q=u(u({},Q),{},{WebkitTransform:te,transform:se,msTransform:be})}else x.vertical?Q.top=x.left:Q.left=x.left;return x.fade&&(Q={opacity:1}),O&&(Q.width=O),F&&(Q.height=F),window&&!window.addEventListener&&window.attachEvent&&(x.vertical?Q.marginTop=x.left+"px":Q.marginLeft=x.left+"px"),Q},D=Ae.getTrackAnimateCSS=function(x){z(x,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var O=B(x);return x.useTransform?(O.WebkitTransition="-webkit-transform "+x.speed+"ms "+x.cssEase,O.transition="transform "+x.speed+"ms "+x.cssEase):x.vertical?O.transition="top "+x.speed+"ms "+x.cssEase:O.transition="left "+x.speed+"ms "+x.cssEase,O},R=Ae.getTrackLeft=function(x){if(x.unslick)return 0;z(x,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var O=x.slideIndex,F=x.trackRef,J=x.infinite,Q=x.centerMode,te=x.slideCount,se=x.slidesToShow,be=x.slidesToScroll,Se=x.slideWidth,Te=x.listWidth,Ne=x.variableWidth,Oe=x.slideHeight,Le=x.fade,Re=x.vertical,k=0,de,ue,q=0;if(Le||x.slideCount===1)return 0;var Y=0;if(J?(Y=-X(x),te%be!==0&&O+be>te&&(Y=-(O>te?se-(O-te):te%be)),Q&&(Y+=parseInt(se/2))):(te%be!==0&&O+be>te&&(Y=se-te%be),Q&&(Y=parseInt(se/2))),k=Y*Se,q=Y*Oe,Re?de=O*Oe*-1+q:de=O*Se*-1+k,Ne===!0){var ee,pe=F&&F.node;if(ee=O+X(x),ue=pe&&pe.childNodes[ee],de=ue?ue.offsetLeft*-1:0,Q===!0){ee=J?O+X(x):O,ue=pe&&pe.children[ee],de=0;for(var ye=0;ye<ee;ye++)de-=pe&&pe.children[ye]&&pe.children[ye].offsetWidth;de-=parseInt(x.centerPadding),de+=ue&&(Te-ue.offsetWidth)/2}}return de},X=Ae.getPreClones=function(x){return x.unslick||!x.infinite?0:x.variableWidth?x.slideCount:x.slidesToShow+(x.centerMode?1:0)},U=Ae.getPostClones=function(x){return x.unslick||!x.infinite?0:x.slideCount},I=Ae.getTotalSlides=function(x){return x.slideCount===1?1:X(x)+x.slideCount+U(x)},E=Ae.siblingDirection=function(x){return x.targetSlide>x.currentSlide?x.targetSlide>x.currentSlide+$(x)?"left":"right":x.targetSlide<x.currentSlide-W(x)?"right":"left"},$=Ae.slidesOnRight=function(x){var O=x.slidesToShow,F=x.centerMode,J=x.rtl,Q=x.centerPadding;if(F){var te=(O-1)/2+1;return parseInt(Q)>0&&(te+=1),J&&O%2===0&&(te+=1),te}return J?0:O-1},W=Ae.slidesOnLeft=function(x){var O=x.slidesToShow,F=x.centerMode,J=x.rtl,Q=x.centerPadding;if(F){var te=(O-1)/2+1;return parseInt(Q)>0&&(te+=1),!J&&O%2===0&&(te+=1),te}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 ce(H){return w.reduce(function(x,O){return H.hasOwnProperty(O)&&(x[O]=H[O]),x},{})}return Ae}var $s={},Vv;function y5(){if(Vv)return $s;Vv=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.Track=void 0;var e=s(On()),n=s(oc()),a=Co();function s(D){return D&&D.__esModule?D:{default:D}}function o(D){"@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(D)}function u(){return u=Object.assign?Object.assign.bind():function(D){for(var R=1;R<arguments.length;R++){var X=arguments[R];for(var U in X)Object.prototype.hasOwnProperty.call(X,U)&&(D[U]=X[U])}return D},u.apply(this,arguments)}function c(D,R){if(!(D instanceof R))throw new TypeError("Cannot call a class as a function")}function f(D,R){for(var X=0;X<R.length;X++){var U=R[X];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(D,L(U.key),U)}}function h(D,R,X){return R&&f(D.prototype,R),Object.defineProperty(D,"prototype",{writable:!1}),D}function p(D,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(R&&R.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),R&&g(D,R)}function g(D,R){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,I){return U.__proto__=I,U},g(D,R)}function v(D){var R=_();return function(){var U=S(D),I;if(R){var E=S(this).constructor;I=Reflect.construct(U,arguments,E)}else I=U.apply(this,arguments);return b(this,I)}}function b(D,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 j(D)}function j(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function _(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_=function(){return!!D})()}function S(D){return S=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},S(D)}function N(D,R){var X=Object.keys(D);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(D);R&&(U=U.filter(function(I){return Object.getOwnPropertyDescriptor(D,I).enumerable})),X.push.apply(X,U)}return X}function A(D){for(var R=1;R<arguments.length;R++){var X=arguments[R]!=null?arguments[R]:{};R%2?N(Object(X),!0).forEach(function(U){M(D,U,X[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(X)):N(Object(X)).forEach(function(U){Object.defineProperty(D,U,Object.getOwnPropertyDescriptor(X,U))})}return D}function M(D,R,X){return R=L(R),R in D?Object.defineProperty(D,R,{value:X,enumerable:!0,configurable:!0,writable:!0}):D[R]=X,D}function L(D){var R=G(D,"string");return o(R)=="symbol"?R:String(R)}function G(D,R){if(o(D)!="object"||!D)return D;var X=D[Symbol.toPrimitive];if(X!==void 0){var U=X.call(D,R);if(o(U)!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(D)}var T=function(R){var X,U,I,E,$;R.rtl?$=R.slideCount-1-R.index:$=R.index,I=$<0||$>=R.slideCount,R.centerMode?(E=Math.floor(R.slidesToShow/2),U=($-R.currentSlide)%R.slideCount===0,$>R.currentSlide-E-1&&$<=R.currentSlide+E&&(X=!0)):X=R.currentSlide<=$&&$<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=$===W;return{"slick-slide":!0,"slick-active":X,"slick-center":U,"slick-cloned":I,"slick-current":w}},P=function(R){var X={};return(R.variableWidth===void 0||R.variableWidth===!1)&&(X.width=R.slideWidth),R.fade&&(X.position="relative",R.vertical?X.top=-R.index*parseInt(R.slideHeight):X.left=-R.index*parseInt(R.slideWidth),X.opacity=R.currentSlide===R.index?1:0,X.zIndex=R.currentSlide===R.index?999:998,R.useCSS&&(X.transition="opacity "+R.speed+"ms "+R.cssEase+", visibility "+R.speed+"ms "+R.cssEase)),X},z=function(R,X){return R.key||X},B=function(R){var X,U=[],I=[],E=[],$=e.default.Children.count(R.children),W=(0,a.lazyStartIndex)(R),w=(0,a.lazyEndIndex)(R);return e.default.Children.forEach(R.children,function(ce,H){var x,O={message:"children",index:H,slidesToScroll:R.slidesToScroll,currentSlide:R.currentSlide};!R.lazyLoad||R.lazyLoad&&R.lazyLoadedList.indexOf(H)>=0?x=ce:x=e.default.createElement("div",null);var F=P(A(A({},R),{},{index:H})),J=x.props.className||"",Q=T(A(A({},R),{},{index:H}));if(U.push(e.default.cloneElement(x,{key:"original"+z(x,H),"data-index":H,className:(0,n.default)(Q,J),tabIndex:"-1","aria-hidden":!Q["slick-active"],style:A(A({outline:"none"},x.props.style||{}),F),onClick:function(be){x.props&&x.props.onClick&&x.props.onClick(be),R.focusOnSelect&&R.focusOnSelect(O)}})),R.infinite&&R.fade===!1){var te=$-H;te<=(0,a.getPreClones)(R)&&(X=-te,X>=W&&(x=ce),Q=T(A(A({},R),{},{index:X})),I.push(e.default.cloneElement(x,{key:"precloned"+z(x,X),"data-index":X,tabIndex:"-1",className:(0,n.default)(Q,J),"aria-hidden":!Q["slick-active"],style:A(A({},x.props.style||{}),F),onClick:function(be){x.props&&x.props.onClick&&x.props.onClick(be),R.focusOnSelect&&R.focusOnSelect(O)}}))),X=$+H,X<w&&(x=ce),Q=T(A(A({},R),{},{index:X})),E.push(e.default.cloneElement(x,{key:"postcloned"+z(x,X),"data-index":X,tabIndex:"-1",className:(0,n.default)(Q,J),"aria-hidden":!Q["slick-active"],style:A(A({},x.props.style||{}),F),onClick:function(be){x.props&&x.props.onClick&&x.props.onClick(be),R.focusOnSelect&&R.focusOnSelect(O)}}))}}),R.rtl?I.concat(U,E).reverse():I.concat(U,E)};return $s.Track=function(D){p(X,D);var R=v(X);function X(){var U;c(this,X);for(var I=arguments.length,E=new Array(I),$=0;$<I;$++)E[$]=arguments[$];return U=R.call.apply(R,[this].concat(E)),M(j(U),"node",null),M(j(U),"handleRef",function(W){U.node=W}),U}return h(X,[{key:"render",value:function(){var I=B(this.props),E=this.props,$=E.onMouseEnter,W=E.onMouseOver,w=E.onMouseLeave,ce={onMouseEnter:$,onMouseOver:W,onMouseLeave:w};return e.default.createElement("div",u({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},ce),I)}}]),X}(e.default.PureComponent),$s}var Qs={},Hv;function v5(){if(Hv)return Qs;Hv=1;function e(T){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},e(T)}Object.defineProperty(Qs,"__esModule",{value:!0}),Qs.Dots=void 0;var n=o(On()),a=o(oc()),s=Co();function o(T){return T&&T.__esModule?T:{default:T}}function u(T,P){var z=Object.keys(T);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(T);P&&(B=B.filter(function(D){return Object.getOwnPropertyDescriptor(T,D).enumerable})),z.push.apply(z,B)}return z}function c(T){for(var P=1;P<arguments.length;P++){var z=arguments[P]!=null?arguments[P]:{};P%2?u(Object(z),!0).forEach(function(B){f(T,B,z[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(z)):u(Object(z)).forEach(function(B){Object.defineProperty(T,B,Object.getOwnPropertyDescriptor(z,B))})}return T}function f(T,P,z){return P=v(P),P in T?Object.defineProperty(T,P,{value:z,enumerable:!0,configurable:!0,writable:!0}):T[P]=z,T}function h(T,P){if(!(T instanceof P))throw new TypeError("Cannot call a class as a function")}function p(T,P){for(var z=0;z<P.length;z++){var B=P[z];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(T,v(B.key),B)}}function g(T,P,z){return P&&p(T.prototype,P),Object.defineProperty(T,"prototype",{writable:!1}),T}function v(T){var P=b(T,"string");return e(P)=="symbol"?P:String(P)}function b(T,P){if(e(T)!="object"||!T)return T;var z=T[Symbol.toPrimitive];if(z!==void 0){var B=z.call(T,P);if(e(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}function j(T,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(P&&P.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),Object.defineProperty(T,"prototype",{writable:!1}),P&&_(T,P)}function _(T,P){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,D){return B.__proto__=D,B},_(T,P)}function S(T){var P=M();return function(){var B=L(T),D;if(P){var R=L(this).constructor;D=Reflect.construct(B,arguments,R)}else D=B.apply(this,arguments);return N(this,D)}}function N(T,P){if(P&&(e(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(T)}function A(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function M(){try{var T=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M=function(){return!!T})()}function L(T){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(z){return z.__proto__||Object.getPrototypeOf(z)},L(T)}var G=function(P){var z;return P.infinite?z=Math.ceil(P.slideCount/P.slidesToScroll):z=Math.ceil((P.slideCount-P.slidesToShow)/P.slidesToScroll)+1,z};return Qs.Dots=function(T){j(z,T);var P=S(z);function z(){return h(this,z),P.apply(this,arguments)}return g(z,[{key:"clickHandler",value:function(D,R){R.preventDefault(),this.props.clickHandler(D)}},{key:"render",value:function(){for(var D=this.props,R=D.onMouseEnter,X=D.onMouseOver,U=D.onMouseLeave,I=D.infinite,E=D.slidesToScroll,$=D.slidesToShow,W=D.slideCount,w=D.currentSlide,ce=G({slideCount:W,slidesToScroll:E,slidesToShow:$,infinite:I}),H={onMouseEnter:R,onMouseOver:X,onMouseLeave:U},x=[],O=0;O<ce;O++){var F=(O+1)*E-1,J=I?F:(0,s.clamp)(F,0,W-1),Q=J-(E-1),te=I?Q:(0,s.clamp)(Q,0,W-1),se=(0,a.default)({"slick-active":I?w>=te&&w<=J:w===te}),be={message:"dots",index:O,slidesToScroll:E,currentSlide:w},Se=this.clickHandler.bind(this,be);x=x.concat(n.default.createElement("li",{key:O,className:se},n.default.cloneElement(this.props.customPaging(O),{onClick:Se})))}return n.default.cloneElement(this.props.appendDots(x),c({className:this.props.dotsClass},H))}}]),z}(n.default.PureComponent),Qs}var ba={},Iv;function x5(){if(Iv)return ba;Iv=1;function e(T){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(P){return typeof P}:function(P){return P&&typeof Symbol=="function"&&P.constructor===Symbol&&P!==Symbol.prototype?"symbol":typeof P},e(T)}Object.defineProperty(ba,"__esModule",{value:!0}),ba.PrevArrow=ba.NextArrow=void 0;var n=o(On()),a=o(oc()),s=Co();function o(T){return T&&T.__esModule?T:{default:T}}function u(){return u=Object.assign?Object.assign.bind():function(T){for(var P=1;P<arguments.length;P++){var z=arguments[P];for(var B in z)Object.prototype.hasOwnProperty.call(z,B)&&(T[B]=z[B])}return T},u.apply(this,arguments)}function c(T,P){var z=Object.keys(T);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(T);P&&(B=B.filter(function(D){return Object.getOwnPropertyDescriptor(T,D).enumerable})),z.push.apply(z,B)}return z}function f(T){for(var P=1;P<arguments.length;P++){var z=arguments[P]!=null?arguments[P]:{};P%2?c(Object(z),!0).forEach(function(B){h(T,B,z[B])}):Object.getOwnPropertyDescriptors?Object.defineProperties(T,Object.getOwnPropertyDescriptors(z)):c(Object(z)).forEach(function(B){Object.defineProperty(T,B,Object.getOwnPropertyDescriptor(z,B))})}return T}function h(T,P,z){return P=b(P),P in T?Object.defineProperty(T,P,{value:z,enumerable:!0,configurable:!0,writable:!0}):T[P]=z,T}function p(T,P){if(!(T instanceof P))throw new TypeError("Cannot call a class as a function")}function g(T,P){for(var z=0;z<P.length;z++){var B=P[z];B.enumerable=B.enumerable||!1,B.configurable=!0,"value"in B&&(B.writable=!0),Object.defineProperty(T,b(B.key),B)}}function v(T,P,z){return P&&g(T.prototype,P),Object.defineProperty(T,"prototype",{writable:!1}),T}function b(T){var P=j(T,"string");return e(P)=="symbol"?P:String(P)}function j(T,P){if(e(T)!="object"||!T)return T;var z=T[Symbol.toPrimitive];if(z!==void 0){var B=z.call(T,P);if(e(B)!="object")return B;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(T)}function _(T,P){if(typeof P!="function"&&P!==null)throw new TypeError("Super expression must either be null or a function");T.prototype=Object.create(P&&P.prototype,{constructor:{value:T,writable:!0,configurable:!0}}),Object.defineProperty(T,"prototype",{writable:!1}),P&&S(T,P)}function S(T,P){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(B,D){return B.__proto__=D,B},S(T,P)}function N(T){var P=L();return function(){var B=G(T),D;if(P){var R=G(this).constructor;D=Reflect.construct(B,arguments,R)}else D=B.apply(this,arguments);return A(this,D)}}function A(T,P){if(P&&(e(P)==="object"||typeof P=="function"))return P;if(P!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M(T)}function M(T){if(T===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return T}function L(){try{var T=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L=function(){return!!T})()}function G(T){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(z){return z.__proto__||Object.getPrototypeOf(z)},G(T)}return ba.PrevArrow=function(T){_(z,T);var P=N(z);function z(){return p(this,z),P.apply(this,arguments)}return v(z,[{key:"clickHandler",value:function(D,R){R&&R.preventDefault(),this.props.clickHandler(D,R)}},{key:"render",value:function(){var D={"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)&&(D["slick-disabled"]=!0,R=null);var X={key:"0","data-role":"none",className:(0,a.default)(D),style:{display:"block"},onClick:R},U={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},I;return this.props.prevArrow?I=n.default.cloneElement(this.props.prevArrow,f(f({},X),U)):I=n.default.createElement("button",u({key:"0",type:"button"},X)," ","Previous"),I}}]),z}(n.default.PureComponent),ba.NextArrow=function(T){_(z,T);var P=N(z);function z(){return p(this,z),P.apply(this,arguments)}return v(z,[{key:"clickHandler",value:function(D,R){R&&R.preventDefault(),this.props.clickHandler(D,R)}},{key:"render",value:function(){var D={"slick-arrow":!0,"slick-next":!0},R=this.clickHandler.bind(this,{message:"next"});(0,s.canGoNext)(this.props)||(D["slick-disabled"]=!0,R=null);var X={key:"1","data-role":"none",className:(0,a.default)(D),style:{display:"block"},onClick:R},U={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},I;return this.props.nextArrow?I=n.default.cloneElement(this.props.nextArrow,f(f({},X),U)):I=n.default.createElement("button",u({key:"1",type:"button"},X)," ","Next"),I}}]),z}(n.default.PureComponent),ba}var G1=function(){if(typeof Map<"u")return Map;function e(n,a){var s=-1;return n.some(function(o,u){return o[0]===a?(s=u,!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,u=this.__entries__;o<u.length;o++){var c=u[o];a.call(s,c[1],c[0])}},n}()}(),Ph=typeof window<"u"&&typeof document<"u"&&window.document===document,Lu=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")()}(),b5=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Lu):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),w5=2;function S5(e,n){var a=!1,s=!1,o=0;function u(){a&&(a=!1,e()),s&&f()}function c(){b5(u)}function f(){var h=Date.now();if(a){if(h-o<w5)return;s=!0}else a=!0,s=!1,setTimeout(c,n);o=h}return f}var j5=20,T5=["top","right","bottom","left","width","height","size","weight"],E5=typeof MutationObserver<"u",A5=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=S5(this.refresh.bind(this),j5)}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(){!Ph||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),E5?(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(){!Ph||!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=T5.some(function(u){return!!~s.indexOf(u)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Y1=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},zi=function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||Lu},K1=lc(0,0,0,0);function Pu(e){return parseFloat(e)||0}function qv(e){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return n.reduce(function(s,o){var u=e["border-"+o+"-width"];return s+Pu(u)},0)}function N5(e){for(var n=["top","right","bottom","left"],a={},s=0,o=n;s<o.length;s++){var u=o[s],c=e["padding-"+u];a[u]=Pu(c)}return a}function _5(e){var n=e.getBBox();return lc(0,0,n.width,n.height)}function k5(e){var n=e.clientWidth,a=e.clientHeight;if(!n&&!a)return K1;var s=zi(e).getComputedStyle(e),o=N5(s),u=o.left+o.right,c=o.top+o.bottom,f=Pu(s.width),h=Pu(s.height);if(s.boxSizing==="border-box"&&(Math.round(f+u)!==n&&(f-=qv(s,"left","right")+u),Math.round(h+c)!==a&&(h-=qv(s,"top","bottom")+c)),!R5(e)){var p=Math.round(f+u)-n,g=Math.round(h+c)-a;Math.abs(p)!==1&&(f-=p),Math.abs(g)!==1&&(h-=g)}return lc(o.left,o.top,f,h)}var O5=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof zi(e).SVGGraphicsElement}:function(e){return e instanceof zi(e).SVGElement&&typeof e.getBBox=="function"}}();function R5(e){return e===zi(e).document.documentElement}function C5(e){return Ph?O5(e)?_5(e):k5(e):K1}function D5(e){var n=e.x,a=e.y,s=e.width,o=e.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,c=Object.create(u.prototype);return Y1(c,{x:n,y:a,width:s,height:o,top:a,right:n+s,bottom:o+a,left:n}),c}function lc(e,n,a,s){return{x:e,y:n,width:a,height:s}}var M5=function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=lc(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=C5(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}(),L5=function(){function e(n,a){var s=D5(a);Y1(this,{target:n,contentRect:s})}return e}(),P5=function(){function e(n,a,s){if(this.activeObservations_=[],this.observations_=new G1,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 zi(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)||(a.set(n,new M5(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 zi(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 L5(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}(),W1=typeof WeakMap<"u"?new WeakMap:new G1,X1=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=A5.getInstance(),s=new P5(n,a,this);W1.set(this,s)}return e}();["observe","unobserve","disconnect"].forEach(function(e){X1.prototype[e]=function(){var n;return(n=W1.get(this))[e].apply(n,arguments)}});var z5=function(){return typeof Lu.ResizeObserver<"u"?Lu.ResizeObserver:X1}();const U5=Object.freeze(Object.defineProperty({__proto__:null,default:z5},Symbol.toStringTag,{value:"Module"})),B5=V3(U5);var Gv;function F5(){if(Gv)return Zs;Gv=1,Object.defineProperty(Zs,"__esModule",{value:!0}),Zs.InnerSlider=void 0;var e=p(On()),n=p(p5()),a=p(g5()),s=p(oc()),o=Co(),u=y5(),c=v5(),f=x5(),h=p(B5);function p(I){return I&&I.__esModule?I:{default:I}}function g(I){"@babel/helpers - typeof";return g=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},g(I)}function v(){return v=Object.assign?Object.assign.bind():function(I){for(var E=1;E<arguments.length;E++){var $=arguments[E];for(var W in $)Object.prototype.hasOwnProperty.call($,W)&&(I[W]=$[W])}return I},v.apply(this,arguments)}function b(I,E){if(I==null)return{};var $=j(I,E),W,w;if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(I);for(w=0;w<ce.length;w++)W=ce[w],!(E.indexOf(W)>=0)&&Object.prototype.propertyIsEnumerable.call(I,W)&&($[W]=I[W])}return $}function j(I,E){if(I==null)return{};var $={},W=Object.keys(I),w,ce;for(ce=0;ce<W.length;ce++)w=W[ce],!(E.indexOf(w)>=0)&&($[w]=I[w]);return $}function _(I,E){var $=Object.keys(I);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(I);E&&(W=W.filter(function(w){return Object.getOwnPropertyDescriptor(I,w).enumerable})),$.push.apply($,W)}return $}function S(I){for(var E=1;E<arguments.length;E++){var $=arguments[E]!=null?arguments[E]:{};E%2?_(Object($),!0).forEach(function(W){R(I,W,$[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors($)):_(Object($)).forEach(function(W){Object.defineProperty(I,W,Object.getOwnPropertyDescriptor($,W))})}return I}function N(I,E){if(!(I instanceof E))throw new TypeError("Cannot call a class as a function")}function A(I,E){for(var $=0;$<E.length;$++){var W=E[$];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(I,X(W.key),W)}}function M(I,E,$){return E&&A(I.prototype,E),Object.defineProperty(I,"prototype",{writable:!1}),I}function L(I,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(E&&E.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),E&&G(I,E)}function G(I,E){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(W,w){return W.__proto__=w,W},G(I,E)}function T(I){var E=B();return function(){var W=D(I),w;if(E){var ce=D(this).constructor;w=Reflect.construct(W,arguments,ce)}else w=W.apply(this,arguments);return P(this,w)}}function P(I,E){if(E&&(g(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return z(I)}function z(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function B(){try{var I=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(B=function(){return!!I})()}function D(I){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function($){return $.__proto__||Object.getPrototypeOf($)},D(I)}function R(I,E,$){return E=X(E),E in I?Object.defineProperty(I,E,{value:$,enumerable:!0,configurable:!0,writable:!0}):I[E]=$,I}function X(I){var E=U(I,"string");return g(E)=="symbol"?E:String(E)}function U(I,E){if(g(I)!="object"||!I)return I;var $=I[Symbol.toPrimitive];if($!==void 0){var W=$.call(I,E);if(g(W)!="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(E==="string"?String:Number)(I)}return Zs.InnerSlider=function(I){L($,I);var E=T($);function $(W){var w;N(this,$),w=E.call(this,W),R(z(w),"listRefHandler",function(H){return w.list=H}),R(z(w),"trackRefHandler",function(H){return w.track=H}),R(z(w),"adaptHeight",function(){if(w.props.adaptiveHeight&&w.list){var H=w.list.querySelector('[data-index="'.concat(w.state.currentSlide,'"]'));w.list.style.height=(0,o.getHeight)(H)+"px"}}),R(z(w),"componentDidMount",function(){if(w.props.onInit&&w.props.onInit(),w.props.lazyLoad){var H=(0,o.getOnDemandLazySlides)(S(S({},w.props),w.state));H.length>0&&(w.setState(function(O){return{lazyLoadedList:O.lazyLoadedList.concat(H)}}),w.props.onLazyLoad&&w.props.onLazyLoad(H))}var x=S({listRef:w.list,trackRef:w.track},w.props);w.updateState(x,!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(z(w),"componentWillUnmount",function(){w.animationEndCallback&&clearTimeout(w.animationEndCallback),w.lazyLoadTimer&&clearInterval(w.lazyLoadTimer),w.callbackTimers.length&&(w.callbackTimers.forEach(function(H){return clearTimeout(H)}),w.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",w.onWindowResized):window.detachEvent("onresize",w.onWindowResized),w.autoplayTimer&&clearInterval(w.autoplayTimer),w.ro.disconnect()}),R(z(w),"componentDidUpdate",function(H){if(w.checkImagesLoad(),w.props.onReInit&&w.props.onReInit(),w.props.lazyLoad){var x=(0,o.getOnDemandLazySlides)(S(S({},w.props),w.state));x.length>0&&(w.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(x)}}),w.props.onLazyLoad&&w.props.onLazyLoad(x))}w.adaptHeight();var O=S(S({listRef:w.list,trackRef:w.track},w.props),w.state),F=w.didPropsChange(H);F&&w.updateState(O,F,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(z(w),"onWindowResized",function(H){w.debouncedResize&&w.debouncedResize.cancel(),w.debouncedResize=(0,a.default)(function(){return w.resizeWindow(H)},50),w.debouncedResize()}),R(z(w),"resizeWindow",function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,x=!!(w.track&&w.track.node);if(x){var O=S(S({listRef:w.list,trackRef:w.track},w.props),w.state);w.updateState(O,H,function(){w.props.autoplay?w.autoPlay("update"):w.pause("paused")}),w.setState({animating:!1}),clearTimeout(w.animationEndCallback),delete w.animationEndCallback}}),R(z(w),"updateState",function(H,x,O){var F=(0,o.initializedState)(H);H=S(S(S({},H),F),{},{slideIndex:F.currentSlide});var J=(0,o.getTrackLeft)(H);H=S(S({},H),{},{left:J});var Q=(0,o.getTrackCSS)(H);(x||e.default.Children.count(w.props.children)!==e.default.Children.count(H.children))&&(F.trackStyle=Q),w.setState(F,O)}),R(z(w),"ssrInit",function(){if(w.props.variableWidth){var H=0,x=0,O=[],F=(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(ue){O.push(ue.props.style.width),H+=ue.props.style.width});for(var Q=0;Q<F;Q++)x+=O[O.length-1-Q],H+=O[O.length-1-Q];for(var te=0;te<J;te++)H+=O[te];for(var se=0;se<w.state.currentSlide;se++)x+=O[se];var be={width:H+"px",left:-x+"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 Te=e.default.Children.count(w.props.children),Ne=S(S(S({},w.props),w.state),{},{slideCount:Te}),Oe=(0,o.getPreClones)(Ne)+(0,o.getPostClones)(Ne)+Te,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(z(w),"checkImagesLoad",function(){var H=w.list&&w.list.querySelectorAll&&w.list.querySelectorAll(".slick-slide img")||[],x=H.length,O=0;Array.prototype.forEach.call(H,function(F){var J=function(){return++O&&O>=x&&w.onWindowResized()};if(!F.onclick)F.onclick=function(){return F.parentNode.focus()};else{var Q=F.onclick;F.onclick=function(te){Q(te),F.parentNode.focus()}}F.onload||(w.props.lazyLoad?F.onload=function(){w.adaptHeight(),w.callbackTimers.push(setTimeout(w.onWindowResized,w.props.speed))}:(F.onload=J,F.onerror=function(){J(),w.props.onLazyLoadError&&w.props.onLazyLoadError()}))})}),R(z(w),"progressiveLazyLoad",function(){for(var H=[],x=S(S({},w.props),w.state),O=w.state.currentSlide;O<w.state.slideCount+(0,o.getPostClones)(x);O++)if(w.state.lazyLoadedList.indexOf(O)<0){H.push(O);break}for(var F=w.state.currentSlide-1;F>=-(0,o.getPreClones)(x);F--)if(w.state.lazyLoadedList.indexOf(F)<0){H.push(F);break}H.length>0?(w.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(H)}}),w.props.onLazyLoad&&w.props.onLazyLoad(H)):w.lazyLoadTimer&&(clearInterval(w.lazyLoadTimer),delete w.lazyLoadTimer)}),R(z(w),"slideHandler",function(H){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=w.props,F=O.asNavFor,J=O.beforeChange,Q=O.onLazyLoad,te=O.speed,se=O.afterChange,be=w.state.currentSlide,Se=(0,o.slideHandler)(S(S(S({index:H},w.props),w.state),{},{trackRef:w.track,useCSS:w.props.useCSS&&!x})),Te=Se.state,Ne=Se.nextState;if(Te){J&&J(be,Te.currentSlide);var Oe=Te.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),se&&se(be),delete w.animationEndCallback),w.setState(Te,function(){F&&w.asNavForIndex!==H&&(w.asNavForIndex=H,F.innerSlider.slideHandler(H)),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)),se&&se(Te.currentSlide),delete w.animationEndCallback})},te))})}}),R(z(w),"changeSlide",function(H){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,O=S(S({},w.props),w.state),F=(0,o.changeSlide)(O,H);if(!(F!==0&&!F)&&(x===!0?w.slideHandler(F,x):w.slideHandler(F),w.props.autoplay&&w.autoPlay("update"),w.props.focusOnSelect)){var J=w.list.querySelectorAll(".slick-current");J[0]&&J[0].focus()}}),R(z(w),"clickHandler",function(H){w.clickable===!1&&(H.stopPropagation(),H.preventDefault()),w.clickable=!0}),R(z(w),"keyHandler",function(H){var x=(0,o.keyHandler)(H,w.props.accessibility,w.props.rtl);x!==""&&w.changeSlide({message:x})}),R(z(w),"selectHandler",function(H){w.changeSlide(H)}),R(z(w),"disableBodyScroll",function(){var H=function(O){O=O||window.event,O.preventDefault&&O.preventDefault(),O.returnValue=!1};window.ontouchmove=H}),R(z(w),"enableBodyScroll",function(){window.ontouchmove=null}),R(z(w),"swipeStart",function(H){w.props.verticalSwiping&&w.disableBodyScroll();var x=(0,o.swipeStart)(H,w.props.swipe,w.props.draggable);x!==""&&w.setState(x)}),R(z(w),"swipeMove",function(H){var x=(0,o.swipeMove)(H,S(S(S({},w.props),w.state),{},{trackRef:w.track,listRef:w.list,slideIndex:w.state.currentSlide}));x&&(x.swiping&&(w.clickable=!1),w.setState(x))}),R(z(w),"swipeEnd",function(H){var x=(0,o.swipeEnd)(H,S(S(S({},w.props),w.state),{},{trackRef:w.track,listRef:w.list,slideIndex:w.state.currentSlide}));if(x){var O=x.triggerSlideHandler;delete x.triggerSlideHandler,w.setState(x),O!==void 0&&(w.slideHandler(O),w.props.verticalSwiping&&w.enableBodyScroll())}}),R(z(w),"touchEnd",function(H){w.swipeEnd(H),w.clickable=!0}),R(z(w),"slickPrev",function(){w.callbackTimers.push(setTimeout(function(){return w.changeSlide({message:"previous"})},0))}),R(z(w),"slickNext",function(){w.callbackTimers.push(setTimeout(function(){return w.changeSlide({message:"next"})},0))}),R(z(w),"slickGoTo",function(H){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(H=Number(H),isNaN(H))return"";w.callbackTimers.push(setTimeout(function(){return w.changeSlide({message:"index",index:H,currentSlide:w.state.currentSlide},x)},0))}),R(z(w),"play",function(){var H;if(w.props.rtl)H=w.state.currentSlide-w.props.slidesToScroll;else if((0,o.canGoNext)(S(S({},w.props),w.state)))H=w.state.currentSlide+w.props.slidesToScroll;else return!1;w.slideHandler(H)}),R(z(w),"autoPlay",function(H){w.autoplayTimer&&clearInterval(w.autoplayTimer);var x=w.state.autoplaying;if(H==="update"){if(x==="hovered"||x==="focused"||x==="paused")return}else if(H==="leave"){if(x==="paused"||x==="focused")return}else if(H==="blur"&&(x==="paused"||x==="hovered"))return;w.autoplayTimer=setInterval(w.play,w.props.autoplaySpeed+50),w.setState({autoplaying:"playing"})}),R(z(w),"pause",function(H){w.autoplayTimer&&(clearInterval(w.autoplayTimer),w.autoplayTimer=null);var x=w.state.autoplaying;H==="paused"?w.setState({autoplaying:"paused"}):H==="focused"?(x==="hovered"||x==="playing")&&w.setState({autoplaying:"focused"}):x==="playing"&&w.setState({autoplaying:"hovered"})}),R(z(w),"onDotsOver",function(){return w.props.autoplay&&w.pause("hovered")}),R(z(w),"onDotsLeave",function(){return w.props.autoplay&&w.state.autoplaying==="hovered"&&w.autoPlay("leave")}),R(z(w),"onTrackOver",function(){return w.props.autoplay&&w.pause("hovered")}),R(z(w),"onTrackLeave",function(){return w.props.autoplay&&w.state.autoplaying==="hovered"&&w.autoPlay("leave")}),R(z(w),"onSlideFocus",function(){return w.props.autoplay&&w.pause("focused")}),R(z(w),"onSlideBlur",function(){return w.props.autoplay&&w.state.autoplaying==="focused"&&w.autoPlay("blur")}),R(z(w),"render",function(){var H=(0,s.default)("slick-slider",w.props.className,{"slick-vertical":w.props.vertical,"slick-initialized":!0}),x=S(S({},w.props),w.state),O=(0,o.extractObject)(x,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),F=w.props.pauseOnHover;O=S(S({},O),{},{onMouseEnter:F?w.onTrackOver:null,onMouseLeave:F?w.onTrackLeave:null,onMouseOver:F?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)(x,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),te=w.props.pauseOnDotsHover;Q=S(S({},Q),{},{clickHandler:w.changeSlide,onMouseEnter:te?w.onDotsLeave:null,onMouseOver:te?w.onDotsOver:null,onMouseLeave:te?w.onDotsLeave:null}),J=e.default.createElement(c.Dots,Q)}var se,be,Se=(0,o.extractObject)(x,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Se.clickHandler=w.changeSlide,w.props.arrows&&(se=e.default.createElement(f.PrevArrow,Se),be=e.default.createElement(f.NextArrow,Se));var Te=null;w.props.vertical&&(Te={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({},Te),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:H,dir:"ltr",style:w.props.style};return w.props.unslick&&(Re={className:"slick-list"},k={className:H}),e.default.createElement("div",k,w.props.unslick?"":se,e.default.createElement("div",v({ref:w.listRefHandler},Re),e.default.createElement(u.Track,v({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 ce=w.ssrInit();return w.state=S(S({},w.state),ce),w}return M($,[{key:"didPropsChange",value:function(w){for(var ce=!1,H=0,x=Object.keys(this.props);H<x.length;H++){var O=x[H];if(!w.hasOwnProperty(O)){ce=!0;break}if(!(g(w[O])==="object"||typeof w[O]=="function"||isNaN(w[O]))&&w[O]!==this.props[O]){ce=!0;break}}return ce||e.default.Children.count(this.props.children)!==e.default.Children.count(w.children)}}]),$}(e.default.Component),Zs}var Xf,Yv;function V5(){if(Yv)return Xf;Yv=1;var e=function(n){return n.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}).toLowerCase()};return Xf=e,Xf}var Zf,Kv;function H5(){if(Kv)return Zf;Kv=1;var e=V5(),n=function(o){var u=/[height|width]$/;return u.test(o)},a=function(o){var u="",c=Object.keys(o);return c.forEach(function(f,h){var p=o[f];f=e(f),n(f)&&typeof p=="number"&&(p=p+"px"),p===!0?u+=f:p===!1?u+="not "+f:u+="("+f+": "+p+")",h<c.length-1&&(u+=" and ")}),u},s=function(o){var u="";return typeof o=="string"?o:o instanceof Array?(o.forEach(function(c,f){u+=a(c),f<o.length-1&&(u+=", ")}),u):a(o)};return Zf=s,Zf}var $f,Wv;function I5(){if(Wv)return $f;Wv=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}},$f=e,$f}var Qf,Xv;function Z1(){if(Xv)return Qf;Xv=1;function e(s,o){var u=0,c=s.length,f;for(u;u<c&&(f=o(s[u],u),f!==!1);u++);}function n(s){return Object.prototype.toString.apply(s)==="[object Array]"}function a(s){return typeof s=="function"}return Qf={isFunction:a,isArray:n,each:e},Qf}var Jf,Zv;function q5(){if(Zv)return Jf;Zv=1;var e=I5(),n=Z1().each;function a(s,o){this.query=s,this.isUnconditional=o,this.handlers=[],this.mql=window.matchMedia(s);var u=this;this.listener=function(c){u.mql=c.currentTarget||c,u.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(u,c){if(u.equals(s))return u.destroy(),!o.splice(c,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]()})}},Jf=a,Jf}var eh,$v;function G5(){if($v)return eh;$v=1;var e=q5(),n=Z1(),a=n.each,s=n.isFunction,o=n.isArray;function u(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return u.prototype={constructor:u,register:function(c,f,h){var p=this.queries,g=h&&this.browserIsIncapable;return p[c]||(p[c]=new e(c,g)),s(f)&&(f={match:f}),o(f)||(f=[f]),a(f,function(v){s(v)&&(v={match:v}),p[c].addHandler(v)}),this},unregister:function(c,f){var h=this.queries[c];return h&&(f?h.removeHandler(f):(h.clear(),delete this.queries[c])),this}},eh=u,eh}var th,Qv;function Y5(){if(Qv)return th;Qv=1;var e=G5();return th=new e,th}var Jv;function K5(){return Jv||(Jv=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=c(On()),a=F5(),s=c(H5()),o=c(q1()),u=Co();function c(D){return D&&D.__esModule?D:{default:D}}function f(D){"@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(D)}function h(){return h=Object.assign?Object.assign.bind():function(D){for(var R=1;R<arguments.length;R++){var X=arguments[R];for(var U in X)Object.prototype.hasOwnProperty.call(X,U)&&(D[U]=X[U])}return D},h.apply(this,arguments)}function p(D,R){var X=Object.keys(D);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(D);R&&(U=U.filter(function(I){return Object.getOwnPropertyDescriptor(D,I).enumerable})),X.push.apply(X,U)}return X}function g(D){for(var R=1;R<arguments.length;R++){var X=arguments[R]!=null?arguments[R]:{};R%2?p(Object(X),!0).forEach(function(U){T(D,U,X[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(X)):p(Object(X)).forEach(function(U){Object.defineProperty(D,U,Object.getOwnPropertyDescriptor(X,U))})}return D}function v(D,R){if(!(D instanceof R))throw new TypeError("Cannot call a class as a function")}function b(D,R){for(var X=0;X<R.length;X++){var U=R[X];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(D,P(U.key),U)}}function j(D,R,X){return R&&b(D.prototype,R),Object.defineProperty(D,"prototype",{writable:!1}),D}function _(D,R){if(typeof R!="function"&&R!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(R&&R.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),Object.defineProperty(D,"prototype",{writable:!1}),R&&S(D,R)}function S(D,R){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(U,I){return U.__proto__=I,U},S(D,R)}function N(D){var R=L();return function(){var U=G(D),I;if(R){var E=G(this).constructor;I=Reflect.construct(U,arguments,E)}else I=U.apply(this,arguments);return A(this,I)}}function A(D,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 M(D)}function M(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function L(){try{var D=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L=function(){return!!D})()}function G(D){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(X){return X.__proto__||Object.getPrototypeOf(X)},G(D)}function T(D,R,X){return R=P(R),R in D?Object.defineProperty(D,R,{value:X,enumerable:!0,configurable:!0,writable:!0}):D[R]=X,D}function P(D){var R=z(D,"string");return f(R)=="symbol"?R:String(R)}function z(D,R){if(f(D)!="object"||!D)return D;var X=D[Symbol.toPrimitive];if(X!==void 0){var U=X.call(D,R);if(f(U)!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(D)}var B=(0,u.canUseDOM)()&&Y5();e.default=function(D){_(X,D);var R=N(X);function X(U){var I;return v(this,X),I=R.call(this,U),T(M(I),"innerSliderRefHandler",function(E){return I.innerSlider=E}),T(M(I),"slickPrev",function(){return I.innerSlider.slickPrev()}),T(M(I),"slickNext",function(){return I.innerSlider.slickNext()}),T(M(I),"slickGoTo",function(E){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return I.innerSlider.slickGoTo(E,$)}),T(M(I),"slickPause",function(){return I.innerSlider.pause("paused")}),T(M(I),"slickPlay",function(){return I.innerSlider.autoPlay("play")}),I.state={breakpoint:null},I._responsiveMediaHandlers=[],I}return j(X,[{key:"media",value:function(I,E){B.register(I,E),this._responsiveMediaHandlers.push({query:I,handler:E})}},{key:"componentDidMount",value:function(){var I=this;if(this.props.responsive){var E=this.props.responsive.map(function(W){return W.breakpoint});E.sort(function(W,w){return W-w}),E.forEach(function(W,w){var ce;w===0?ce=(0,s.default)({minWidth:0,maxWidth:W}):ce=(0,s.default)({minWidth:E[w-1]+1,maxWidth:W}),(0,u.canUseDOM)()&&I.media(ce,function(){I.setState({breakpoint:W})})});var $=(0,s.default)({minWidth:E.slice(-1)[0]});(0,u.canUseDOM)()&&this.media($,function(){I.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(I){B.unregister(I.query,I.handler)})}},{key:"render",value:function(){var I=this,E,$;this.state.breakpoint?($=this.props.responsive.filter(function(te){return te.breakpoint===I.state.breakpoint}),E=$[0].settings==="unslick"?"unslick":g(g(g({},o.default),this.props),$[0].settings)):E=g(g({},o.default),this.props),E.centerMode&&(E.slidesToScroll>1,E.slidesToScroll=1),E.fade&&(E.slidesToShow>1,E.slidesToScroll>1,E.slidesToShow=1,E.slidesToScroll=1);var W=n.default.Children.toArray(this.props.children);W=W.filter(function(te){return typeof te=="string"?!!te.trim():!!te}),E.variableWidth&&(E.rows>1||E.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),E.variableWidth=!1);for(var w=[],ce=null,H=0;H<W.length;H+=E.rows*E.slidesPerRow){for(var x=[],O=H;O<H+E.rows*E.slidesPerRow;O+=E.slidesPerRow){for(var F=[],J=O;J<O+E.slidesPerRow&&(E.variableWidth&&W[J].props.style&&(ce=W[J].props.style.width),!(J>=W.length));J+=1)F.push(n.default.cloneElement(W[J],{key:100*H+10*O+J,tabIndex:-1,style:{width:"".concat(100/E.slidesPerRow,"%"),display:"inline-block"}}));x.push(n.default.createElement("div",{key:10*H+O},F))}E.variableWidth?w.push(n.default.createElement("div",{key:H,style:{width:ce}},x)):w.push(n.default.createElement("div",{key:H},x))}if(E==="unslick"){var Q="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:Q},W)}else w.length<=E.slidesToShow&&!E.infinite&&(E.unslick=!0);return n.default.createElement(a.InnerSlider,h({style:this.props.style,ref:this.innerSliderRefHandler},(0,u.filterSettings)(E)),w)}}]),X}(n.default.Component)}(qf)),qf}var ex;function W5(){return ex||(ex=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(K5());function a(s){return s&&s.__esModule?s:{default:s}}e.default=n.default}(If)),If}var X5=W5();const Z5=Iu(X5),$5=[{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}],Q5=[{title:"Regional Rides",description:"Smooth and reliable rides within your city – whenever, wherever.",Image:r5},{title:"City Connectors",description:"Connecting cities with affordable, comfortable, and safe travel.",Image:a5},{title:"Car Recoveries",description:"Stuck on the road? We recover your car quickly and safely.",Image:i5},{title:"Courier Delivery",description:"Fast, secure, and on-time courier delivery across your city.",Image:s5},{title:"Shifting Movers (Home & Office Shifting)",description:"Hassle-free home and office shifting, handled with care.",Image:o5},{title:"Tourism Discovery",description:"Discover breathtaking destinations with guided local travel.",Image:l5}],tx=[{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:"💳"}],J5=()=>{const e={dots:!1,infinite:!0,speed:600,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:3e3,arrows:!1},[n,a]=z1({triggerOnce:!0,threshold:.3});let s=[],o=0,u=[3,2,3],c=0;for(;o<tx.length;){const p=u[c%u.length];s.push(tx.slice(o,o+p)),o+=p,c++}const f=[{name:"brochure.pdf",file:f5},{name:"document1.pdf",file:h5},{name:"guide.pdf",file:m5}],h=async()=>{try{const p=new WN;for(const v of f){const j=await(await fetch(v.file)).blob();p.file(v.name,j)}const g=await p.generateAsync({type:"blob"});$N.saveAs(g,"assets_pdfs.zip")}catch(p){console.error("Error downloading PDFs:",p),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(${QN})`},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(DN,{})," Download PDFs"]})]})]}),d.jsx("div",{className:"flex gap-4 w-[30%] max-lg:w-[70%] z-10",children:d.jsx("img",{src:JN,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:n5,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:e5,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:t5,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(Di,{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(Di,{className:"text-[#0B996F] mt-1"}),"Creating financial freedom and opportunities."]}),d.jsxs("li",{className:"flex items-start gap-2",children:[d.jsx(Di,{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(L1,{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:U1,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(Mi,{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(Mi,{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(Mi,{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:Q5.map((p,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:p.Image,alt:"",className:"w-32"}),d.jsx("h3",{className:"text-2xl font-bold text-[#0A4624] dark:text-white mb-2",children:p.title}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300",children:p.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((p,g)=>d.jsx("div",{className:`grid gap-6 ${p.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:p.map((v,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:v.icon}),d.jsx("h3",{className:"text-2xl font-bold mb-2",children:v.title}),d.jsx("p",{className:"text-base",children:v.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(${B1})`},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:H1,alt:"Google Play",className:"h-12 rounded-lg"})}),d.jsx("a",{href:"#",children:d.jsx("img",{src:I1,alt:"App Store",className:"h-12 rounded-lg"})})]})]}),d.jsxs("div",{className:"relative",children:[d.jsx("img",{src:V1,alt:"Happy user",className:"w-full max-w-md h-[100vh] max-lg:h-auto object-cover rounded-2xl"}),d.jsx("img",{src:F1,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:d5,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(Z5,{...e,children:$5.map((p,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:p.review}),d.jsxs("p",{className:"font-semibold text-green-800 dark:text-green-300",children:["— ",p.name]})]})},g))})}),d.jsx("img",{src:u5,alt:"Man with tablet",className:"w-full h-full object-cover rounded-2xl"}),d.jsx("img",{src:c5,alt:"Woman in car",className:"w-full h-full object-cover rounded-2xl"})]})]})})]})},$1="/assets/bg-BbOJe-ta.jpeg",e_="/assets/enjoy-CVNWmoEC.jpg",t_="/assets/map-DfwT83pC.png",n_="/assets/whyjoin-B-Bkqsbz.jpg",r_="/assets/aim-DEi6q9Iw.jpg",a_="/assets/direction-DvSXpJ92.png",i_=()=>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(${$1})`},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:t_,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:e_,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:n_,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:a_,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:r_,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(NN,{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(_N,{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."})]})]})})]}),s_="/assets/bg-6SAdu_b3.jpg",o_="/assets/future--MMH-1BG.jpg",l_="/assets/card1-CngeeMsl.png",u_="/assets/card2-o4McaAYV.png",c_="/assets/card3-BdCC1t9j.png",d_="/assets/card4-DwGgvalC.png",f_="/assets/card5-BRuLiB6I.png",h_="/assets/card6-DhonLssf.png",m_="/assets/card7-BtLXKe8h.png",p_="/assets/card8-D0qhdoR6.png",g_="/assets/card9-CP2MyyTJ.png",y_="/assets/recovery-BXEv-XSB.jpeg",v_="/assets/rides-Bkxyhe-g.jpeg",x_="/assets/shifting--UhfRry8.jpeg",b_="/assets/autofix-j6AEHwbR.jpeg",w_="/assets/tyrezone-BB2vwwox.jpeg",S_="/assets/keyassist-Usw68JbA.jpeg",j_="/assets/autohub-BicU1udc.jpeg",T_="/assets/tourism-CEey8P9M.jpeg",E_="/assets/wash-CvccX4aW.jpeg",A_=[{title:"Car Recovery Services",icon:"🚨",image:l_,need:"Why You Might Need Car Recovery:",cardimg:y_,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:u_,need:"Why Choose AAAO Go Cabs?",cardimg:v_,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:c_,need:"Why Choose AAAO Go Movers?",cardimg:x_,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:d_,cardimg:b_,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:f_,cardimg:w_,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:h_,cardimg:S_,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:m_,cardimg:j_,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:p_,cardimg:T_,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:g_,cardimg:E_,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."}],N_=()=>{const[e,n]=z1({triggerOnce:!0,threshold:.3}),[a,s]=K.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(${s_})`},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(pt,{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:o_,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(Di,{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(Di,{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(Di,{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(L1,{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:U1,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:A_.map((u,c)=>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:u.image,alt:u.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:u.icon}),u.title]}),d.jsx("p",{className:"text-xs text-gray-700 dark:text-gray-200 mt-2 flex-grow",children:u.description}),d.jsx("button",{onClick:()=>s(u),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"})]},c))}),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(Mi,{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(Mi,{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(Mi,{end:1500,duration:2.5,separator:","})}),d.jsx("p",{className:"text-xl text-[#555D55] dark:text-gray-200 mt-2",children:"Registered Members"})]})]})]})]})},__="/assets/team-B2G7j71p.webp",k_="/assets/ceo-pov2ltjX.webp",O_="/assets/tahir-nVzPZBOR.webp",R_="/assets/wardag-BCdJGmKz.webp",C_="/assets/samad-kLWTUiYE.jpeg",D_=()=>{const[e,n]=K.useState(null),a=()=>{window.scrollTo({top:0,behavior:"smooth"})},s=[{name:"Mr Tahir Zaman",role:"COO",title:"Chief Operation Officer (COO)",image:O_,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:R_,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:C_,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(${$1})`},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(pt,{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:__,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(TN,{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(ON,{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:k_,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,u)=>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:"→"})]})]},u))})]}),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(RN,{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})]})]})]})})]})},M_="/assets/bg-4H183NQt.jpg",L_=()=>{const e=[{icon:sc,url:"https://www.facebook.com/AAAOGOINTL?rdid=5c6cGwC8Rj2HeWyR&share_url=https%3A%2F%2Fwww.facebook.com%2Fshare%2F19wGmUZcnH%2F#"},{icon:k1,url:"https://www.instagram.com/aaaogointl/?igsh=dzd1dGJtcXB1OXpn#"},{icon:P1,url:"https://x.com/i/flow/login?redirect_after_login=%2Faaaogointl"},{icon:C1,url:"https://www.tiktok.com/@aaaogointl?_t=ZS-8wxikZG1BBZ&_r=1"},{icon:R1,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(${M_})`},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(pt,{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(kN,{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(M1,{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"})]})]})]})]})},P_="/assets/bg-CMsJHjiS.jpg",z_=[{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."}],U_=[{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."}],B_=[{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."}],F_=[{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."}],V_=[{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."}],H_=[{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."}],I_=[{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."}],q_=()=>{const[e,n]=K.useState({general:null,questions:null,riders:null,drivers:null,payments:null,safety:null,contact:null}),a=(o,u)=>{n(c=>({...c,[o]:c[o]===u?null:u}))},s=(o,u,c)=>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}),c.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(u,h),className:"flex justify-between items-center",children:[d.jsx("h3",{className:`font-bold text-sm ${e[u]===h?"text-[#0B996F]":"text-[#0A4624] dark:text-green-300"}`,children:f.title}),e[u]===h?d.jsx(AN,{className:"text-[#0B996F]"}):d.jsx(EN,{className:"text-[#0B996F]"})]}),e[u]===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(${P_})`},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(pt,{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",z_),s("General Questions","questions",U_),s("For Riders","riders",B_),s("For Drivers","drivers",F_),s("Payments & Account Transfer","payments",V_),s("Safety & Security","safety",H_),s("Support & Contact","contact",I_)]}),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(CN,{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(pt,{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(${B1})`},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:H1,alt:"Google Play",className:"h-12 rounded-lg"})}),d.jsx("a",{href:"#",children:d.jsx("img",{src:I1,alt:"App Store",className:"h-12 rounded-lg"})})]})]}),d.jsxs("div",{className:"relative",children:[d.jsx("img",{src:V1,alt:"Happy user",className:"w-full max-w-md h-[100vh] max-lg:h-auto object-cover rounded-2xl"}),d.jsx("img",{src:F1,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"})]})]})]})]})},Q1="/assets/logo-C1IfLRO8.png",G_=()=>{const e=Sr(),n=$n(),a=st(Hi),s=st(ko),{theme:o}=Yi(),[u,c]=K.useState({identifier:"",password:""}),[f,h]=K.useState(!1),[p,g]=K.useState({}),v=S=>{const{name:N,value:A}=S.target;c(M=>({...M,[N]:A})),g(M=>({...M,[N]:"",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},j=()=>{const S={};return u.identifier.trim()||(S.identifier="Email, phone number, or username is required"),u.password||(S.password="Password is required"),g(S),Object.keys(S).length===0};K.useEffect(()=>{s&&(g({form:typeof s=="string"?s:s.message||"An error occurred"}),e(La()))},[s,e]);const _=async S=>{if(S.preventDefault(),g({}),e(La()),!j())return;const N={...b(u.identifier),password:u.password};try{const A=await e(cu(N)).unwrap();console.log("Login successful:",A),n("/profile")}catch(A){console.error("Login failed:",A)}};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"}),p.form&&d.jsx("p",{className:`text-sm mb-4 text-center ${o==="dark"?"text-red-400":"text-red-600"}`,children:p.form}),d.jsx("div",{className:"flex space-x-3 mb-5",children:[sc,_1,O1].map((S,N)=>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"})},N))}),d.jsxs("form",{onSubmit:_,className:"w-full max-w-sm space-y-4",children:[d.jsxs("div",{children:[p.identifier&&d.jsx("p",{className:`text-sm mb-1 ${o==="dark"?"text-red-400":"text-red-600"}`,children:p.identifier}),d.jsx("input",{type:"text",name:"identifier",value:u.identifier,onChange:v,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 ${p.identifier?"!border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${p.identifier?"!border-red-600":""}`}`})]}),d.jsxs("div",{children:[p.password&&d.jsx("p",{className:`text-sm mb-1 ${o==="dark"?"text-red-400":"text-red-600"}`,children:p.password}),d.jsxs("div",{className:"relative",children:[d.jsx("input",{type:f?"text":"password",name:"password",value:u.password,onChange:v,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 ${p.password?"!border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${p.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(pt,{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:Q1,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(pt,{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"})]})]})})},Y_=[{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)"}],K_=()=>{const e=Sr(),n=$n(),[a]=T1(),s=st(Hi),o=st(ko),{theme:u}=Yi(),[c,f]=K.useState({username:"",firstName:"",lastName:"",email:"",countryCode:"+92",phoneNumber:"",password:"",confirmPassword:"",sponsorBy:"",gender:""}),[h,p]=K.useState({}),[g,v]=K.useState(!1),[b,j]=K.useState(!1),[_,S]=K.useState(""),[N,A]=K.useState("");K.useEffect(()=>{const T=a.get("ref");T&&f(P=>({...P,sponsorBy:T}))},[a]),K.useEffect(()=>{const P=setTimeout(async()=>{if(c.sponsorBy.trim())try{const B=(await yt.get(`${dm}${$t.GET_USER_BY_USERNAME}?username=${c.sponsorBy}`,{headers:{"Content-Type":"application/json"}})).data.user;B&&B.firstName&&B.lastName?(S(`${B.firstName} ${B.lastName}`),A("")):(S(""),A("Sponsor not found"))}catch(z){console.error("Error fetching sponsor name:",z),S(""),A(z.response?.status===404?"Invalid sponsor username":"Error fetching sponsor details")}else S(""),A("")},500);return()=>clearTimeout(P)},[c.sponsorBy]),K.useEffect(()=>{if(o){const T={};typeof o=="string"?T.form=o:o.errors?Object.entries(o.errors).forEach(([P,z])=>{T[P]=z}):o.message&&(T.form=o.message),p(T),e(La())}},[o,e]);const M=T=>{const{name:P,value:z}=T.target;f(B=>({...B,[P]:z})),p(B=>({...B,[P]:"",form:""}))},L=()=>{let T=!0;const P={};return c.username.trim()?/^[a-zA-Z0-9_]{3,30}$/.test(c.username)||(P.username="Username must be 3-30 characters and contain only letters, numbers, or underscores",T=!1):(P.username="Username is required",T=!1),c.firstName.trim()||(P.firstName="First name is required",T=!1),c.email.trim()?/^\S+@\S+\.\S+$/.test(c.email)||(P.email="Email is invalid",T=!1):(P.email="Email is required",T=!1),c.phoneNumber.trim()?/^\d{10}$/.test(c.phoneNumber)||(P.phoneNumber="Phone number must be 10 digits",T=!1):(P.phoneNumber="Phone number is required",T=!1),c.password?c.password.length<8?(P.password="Password must be at least 8 characters",T=!1):(!/[A-Z]/.test(c.password)||!/[0-9]/.test(c.password))&&(P.password="Password must contain at least one uppercase letter and one number",T=!1):(P.password="Password is required",T=!1),c.confirmPassword?c.password!==c.confirmPassword&&(P.confirmPassword="Passwords do not match",T=!1):(P.confirmPassword="Confirm password is required",T=!1),c.gender||(P.gender="Gender is required",T=!1),p(P),T},G=async T=>{if(T.preventDefault(),p({}),e(La()),!!L())try{const P=`${c.countryCode}${c.phoneNumber}`,z={...c,phoneNumber:P},B=await e(du(z)).unwrap();console.log("Signup successful:",B),Be.setSignupEmail(c.email),console.log("Signup - Email stored:",c.email),n(`/verify-otp?email=${encodeURIComponent(c.email)}`)}catch(P){console.error("Signup failed:",P)}};return d.jsx("div",{className:`min-h-screen flex items-center justify-center px-4 py-8 transition-colors duration-300 ${u==="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 ${u==="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 ${u==="dark"?"text-yellow-400":"text-[#013220]"}`,children:"Create Your Account"}),h.form&&d.jsx("p",{className:`text-sm mb-4 text-center ${u==="dark"?"text-red-400":"text-red-600"}`,children:h.form}),d.jsx("div",{className:"flex space-x-3 mb-5",children:[sc,_1,O1].map((T,P)=>d.jsx("button",{className:`border rounded-full p-2 w-10 h-10 flex items-center justify-center transition-colors duration-300 ${u==="dark"?"border-gray-500 hover:bg-gray-600":"border-gray-300 hover:bg-gray-100"}`,disabled:s,children:d.jsx(T,{className:u==="dark"?"text-gray-300":"text-gray-600"})},P))}),d.jsxs("form",{onSubmit:G,className:"w-full max-w-sm space-y-4",children:[d.jsxs("div",{children:[h.username&&d.jsx("p",{className:`text-sm mb-1 ${u==="dark"?"text-red-400":"text-red-600"}`,children:h.username}),d.jsx("input",{type:"text",name:"username",value:c.username,onChange:M,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 ${u==="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 ${u==="dark"?"text-red-400":"text-red-600"}`,children:h.firstName}),d.jsx("input",{type:"text",name:"firstName",value:c.firstName,onChange:M,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 ${u==="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 ${u==="dark"?"text-red-400":"text-red-600"}`,children:h.lastName}),d.jsx("input",{type:"text",name:"lastName",value:c.lastName,onChange:M,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 ${u==="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 ${u==="dark"?"text-red-400":"text-red-600"}`,children:h.email}),d.jsx("input",{type:"email",name:"email",value:c.email,onChange:M,placeholder:"Email *",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 ${u==="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",{className:"flex gap-2",children:[d.jsx("div",{className:"w-1/3",children:d.jsxs("select",{name:"countryCode",value:c.countryCode,onChange:M,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 ${u==="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 *"}),Y_.map(T=>d.jsx("option",{value:T.code,children:T.label},T.code))]})}),d.jsxs("div",{className:"w-2/3",children:[h.phoneNumber&&d.jsx("p",{className:`text-sm mb-1 ${u==="dark"?"text-red-400":"text-red-600"}`,children:h.phoneNumber}),d.jsx("input",{type:"tel",name:"phoneNumber",value:c.phoneNumber,onChange:M,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 ${u==="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 ${u==="dark"?"text-red-400":"text-red-600"}`,children:h.gender}),d.jsxs("select",{name:"gender",value:c.gender,onChange:M,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 ${u==="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:[N&&d.jsx("p",{className:`text-sm mb-1 ${u==="dark"?"text-red-400":"text-red-600"}`,children:N}),d.jsx("input",{type:"text",name:"sponsorBy",value:c.sponsorBy,onChange:M,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 ${u==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${N?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${N?"border-red-600":""}`}`}),_&&d.jsxs("p",{className:`text-sm mt-1 ${u==="dark"?"text-gray-300":"text-gray-600"}`,children:["Sponsor: ",_]})]}),d.jsxs("div",{children:[h.password&&d.jsx("p",{className:`text-sm mb-1 ${u==="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:c.password,onChange:M,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 ${u==="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 ${u==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>v(!g),children:g?d.jsx(go,{}):d.jsx(yo,{})})]})]}),d.jsxs("div",{children:[h.confirmPassword&&d.jsx("p",{className:`text-sm mb-1 ${u==="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:c.confirmPassword,onChange:M,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 ${u==="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 ${u==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>j(!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 ${u==="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 ${u==="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:Q1,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(pt,{to:"/login",className:`border px-6 py-2 rounded-full transition text-sm ${u==="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"})]})]})})},W_=()=>{const e=Sr(),n=$n(),[a]=T1(),s=st(Hi),o=st(ko),u=st(l1),{theme:c}=Yi(),[f,h]=K.useState(""),[p,g]=K.useState({}),[v,b]=K.useState(!1),[j,_]=K.useState(0),[S,N]=K.useState(!0);K.useEffect(()=>{const z=Be.getSignupEmail(),B=a.get("email"),D=z||u||B;if(console.log("VerifyOTP - Email sources:",{redux:u,localStorage:z,url:B,selected:D}),!D){console.log("VerifyOTP - No email found, redirecting to signup"),Ei("No email found. Please sign up again."),setTimeout(()=>{n("/signup")},2e3);return}D&&!z&&Be.setSignupEmail(D),_(60),N(!1);const R=document.querySelector("meta[name=viewport]"),X=R?R.getAttribute("content"):null;return R&&R.setAttribute("content","width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no"),console.log("VerifyOTP mounted - Screen size:",window.innerWidth,"x",window.innerHeight),console.log("User agent:",navigator.userAgent),()=>{R&&X&&R.setAttribute("content",X)}},[n,u,a]),K.useEffect(()=>{let z;return j>0&&(z=setInterval(()=>{_(B=>B<=1?(N(!0),0):B-1)},1e3)),()=>{z&&clearInterval(z)}},[j]);const A=z=>{const B=z.target.value.replace(/\D/g,"").slice(0,6);h(B),p.otp&&g(D=>({...D,otp:""}))},M=()=>{const z={};return f.trim()?f.length!==6&&(z.otp="OTP must be 6 digits"):z.otp="OTP is required",g(z),Object.keys(z).length===0},L=async z=>{if(z.preventDefault(),e(La()),!M()){Ei(p);return}try{const B=Be.getSignupEmail(),D=a.get("email"),R=B||u||D;if(console.log("VerifyOTP - Submitting with email:",R),!R){Ei("No email found. Please sign up again."),setTimeout(()=>{n("/signup")},2e3);return}const X={email:R.trim().toLowerCase(),otp:f},U=await e(fu(X)).unwrap();Be.removeSignupEmail(),e(LE()),console.log("VerifyOTP - Email cleared after successful verification"),setTimeout(()=>{n("/")},2e3)}catch(B){console.error("OTP verification failed:",B)}},G=async()=>{if(!(!S||j>0))try{b(!0),N(!1);const z=Be.getSignupEmail(),B=a.get("email"),D=z||u||B;if(console.log("VerifyOTP - Resending OTP for email:",D),!D){Ei("No email found. Please sign up again."),N(!0),b(!1),setTimeout(()=>{n("/signup")},2e3);return}await e(gu({email:D.trim().toLowerCase()})).unwrap(),_(60)}catch(z){console.error("Failed to resend OTP:",z),N(!0)}finally{b(!1)}},T=()=>{_(0),N(!0),n("/signup")},P=Be.getSignupEmail()||u||a.get("email");return console.log("VerifyOTP render - emailToShow:",P),console.log("VerifyOTP render - signupEmail from Redux:",u),P?d.jsx("div",{className:`min-h-screen flex items-center justify-center px-4 py-6 ${c==="dark"?"bg-gray-900":"bg-gradient-to-b from-green-200 to-green-300"} relative z-10 transition-colors duration-300`,children:d.jsxs("div",{className:`${c==="dark"?"bg-gray-800":"bg-white"} rounded-2xl shadow-lg w-full max-w-sm mx-auto p-6 sm:p-8 relative z-20 transform transition-all duration-300`,children:[d.jsxs("div",{className:"text-center mb-6",children:[d.jsx("div",{className:`w-12 h-12 sm:w-16 sm:h-16 rounded-full flex items-center justify-center mx-auto mb-3 sm:mb-4 ${c==="dark"?"bg-blue-900":"bg-blue-100"}`,children:d.jsx(D1,{className:c==="dark"?"text-blue-400 text-xl sm:text-2xl":"text-blue-600 text-xl sm:text-2xl"})}),d.jsx("h2",{className:`text-2xl sm:text-3xl font-bold mb-2 ${c==="dark"?"text-yellow-400":"text-gray-800"}`,children:"Verify OTP"}),d.jsx("p",{className:`text-sm ${c==="dark"?"text-gray-400":"text-gray-600"} mb-1`,children:"We've sent a verification code to"}),d.jsx("p",{className:`font-semibold text-sm break-all px-2 ${c==="dark"?"text-yellow-500":"text-blue-600"}`,children:P})]}),o&&d.jsx("p",{className:`text-sm mb-3 text-center ${c==="dark"?"text-red-400":"text-red-500"}`,children:o}),d.jsxs("button",{onClick:T,className:`flex items-center gap-2 text-sm mb-4 p-2 -ml-2 rounded-lg transition-colors touch-manipulation focus:outline-none focus:ring-2 focus:ring-blue-400 ${c==="dark"?"text-yellow-500 hover:text-yellow-400 hover:bg-gray-700":"text-blue-600 hover:text-blue-800 hover:bg-blue-50"}`,children:[d.jsx(jN,{}),"Back to Signup"]}),d.jsxs("form",{onSubmit:L,className:"space-y-4 sm:space-y-6",children:[d.jsxs("div",{children:[d.jsxs("label",{className:`block text-sm font-semibold mb-2 ${c==="dark"?"text-gray-300":"text-[#0A4624]"}`,children:["Enter OTP ",d.jsx("span",{className:"text-red-500",children:"*"})]}),d.jsx("input",{type:"text",value:f,onChange:A,className:`w-full border rounded-lg px-4 py-4 text-center text-xl sm:text-2xl font-mono tracking-widest outline-none focus:ring-2 focus:ring-blue-400 focus:border-blue-400 touch-manipulation ${c==="dark"?"bg-gray-700 border-gray-600 text-white placeholder-gray-400":"bg-white border-gray-300 text-gray-900 placeholder-gray-500"}`,placeholder:"000000",maxLength:"6",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"one-time-code",autoFocus:!0}),p.otp&&d.jsx("p",{className:`text-xs mt-1 ${c==="dark"?"text-red-400":"text-red-500"}`,children:p.otp}),d.jsx("p",{className:`text-xs mt-2 ${c==="dark"?"text-gray-400":"text-gray-500"}`,children:"Enter the 6-digit code sent to your email"})]}),d.jsx("button",{type:"submit",disabled:s,className:`w-full py-4 rounded-lg font-semibold text-base sm:text-lg touch-manipulation focus:outline-none focus:ring-2 focus:ring-blue-400 focus:ring-offset-2 transition-colors ${c==="dark"?"bg-blue-600 text-white hover:bg-blue-500 disabled:opacity-50 disabled:cursor-not-allowed":"bg-blue-500 text-white hover:bg-blue-600 disabled:opacity-50 disabled:cursor-not-allowed"}`,children:s?"Verifying...":"Verify OTP"}),d.jsxs("div",{className:"text-center pt-2",children:[d.jsx("p",{className:`text-sm ${c==="dark"?"text-gray-400":"text-gray-600"}`,children:"Didn't receive the code?"}),j>0?d.jsxs("div",{className:`text-sm mt-1 ${c==="dark"?"text-gray-400":"text-gray-600"}`,children:["Resend available in"," ",d.jsxs("span",{className:c==="dark"?"text-yellow-500 font-semibold":"text-blue-600 font-semibold",children:[j,"s"]})]}):d.jsx("button",{type:"button",onClick:G,disabled:v||!S,className:`text-sm font-semibold mt-1 p-2 rounded-lg transition-colors touch-manipulation focus:outline-none focus:ring-2 focus:ring-blue-400 ${c==="dark"?"text-yellow-500 hover:text-yellow-400 hover:bg-gray-700 disabled:opacity-50 disabled:cursor-not-allowed":"text-blue-600 hover:text-blue-800 hover:bg-blue-50 disabled:opacity-50 disabled:cursor-not-allowed"}`,children:v?"Sending...":"Resend OTP"})]})]}),d.jsx("div",{className:`text-center mt-6 pt-4 border-t ${c==="dark"?"border-gray-600":"border-gray-200"}`,children:d.jsxs("p",{className:`text-sm ${c==="dark"?"text-gray-400":"text-gray-600"}`,children:["Already have an account?"," ",d.jsx(pt,{to:"/login",className:`font-semibold focus:outline-none focus:ring-2 focus:ring-blue-400 rounded ${c==="dark"?"text-yellow-500 hover:text-yellow-400":"text-blue-600 hover:text-blue-800"}`,children:"Login here"})]})})]})}):d.jsx("div",{className:`min-h-screen flex items-center justify-center ${c==="dark"?"bg-gray-900":"bg-gradient-to-b from-green-200 to-green-300"} transition-colors duration-300 relative z-10`,children:d.jsx("div",{className:`${c==="dark"?"bg-gray-800 text-white":"bg-white text-gray-600"} rounded-2xl shadow-lg p-6 text-center`,children:d.jsx("p",{children:"Redirecting to signup..."})})})},X_=()=>{const e=Sr(),n=$n(),a=st(Hi),s=st(ko),[o,u]=K.useState({email:""}),[c,f]=K.useState({}),h=v=>{const{name:b,value:j}=v.target;u(_=>({..._,[b]:j})),c[b]&&f(_=>({..._,[b]:""}))},p=()=>{const v={};return o.email.trim()?/\S+@\S+\.\S+/.test(o.email)||(v.email="Email is invalid"):v.email="Email is required",f(v),Object.keys(v).length===0},g=async v=>{if(v.preventDefault(),e(La()),!p()){Ei(c);return}try{console.log("ForgotPassword - Starting password reset for email:",o.email);const b=await e(hu({email:o.email})).unwrap();if(console.log("ForgotPassword - OTP sent, result:",b),!b.userId){console.error("ForgotPassword - No userId in response, received:",b),mn("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),mn(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"}),c.email&&d.jsx("p",{className:"text-red-500 dark:text-red-400 text-xs mt-1",children:c.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"})]})]})})},Z_=()=>{const e=Sr(),n=$n(),a=Rn(),s=st(Hi),o=st(ko),{theme:u}=Yi(),{userId:c,email:f}=a.state||{},h=c||localStorage.getItem("signupUserId"),p=f||localStorage.getItem("signupEmail");console.log("ResetPassword - location.state:",{stateUserId:c,stateEmail:f}),console.log("ResetPassword - localStorage:",{userId:h,email:p}),c&&f&&(localStorage.setItem("signupUserId",c),localStorage.setItem("signupEmail",f));const[g,v]=K.useState({resetOtp:"",password:"",confirmPassword:""}),[b,j]=K.useState(!1),[_,S]=K.useState(!1),[N,A]=K.useState({}),M=T=>{const{name:P,value:z}=T.target;v(B=>({...B,[P]:z})),N[P]&&A(B=>({...B,[P]:""}))},L=()=>{const T={};return g.resetOtp.trim()||(T.resetOtp="OTP is required"),g.password?g.password.length<8&&(T.password="Password must be at least 8 characters"):T.password="Password is required",g.password!==g.confirmPassword&&(T.confirmPassword="Passwords do not match"),A(T),Object.keys(T).length===0},G=async T=>{if(T.preventDefault(),e(La()),!L()){Ei(N),e(Bf(!1));return}if(!h){mn("Cannot reset password: User ID is missing."),e(Bf(!1));return}try{console.log("ResetPassword - Starting password reset for userId:",h);const P={userId:h,resetOtp:g.resetOtp,password:g.password},z=await e(mu(P)).unwrap();console.log("ResetPassword - Password reset successful, result:",z),localStorage.removeItem("signupUserId"),localStorage.removeItem("signupEmail"),n("/login",{replace:!0})}catch(P){console.error("ResetPassword failed:",P),e(Bf(!1)),mn(P.message||"Failed to reset password.")}};return d.jsx("div",{className:`min-h-screen flex items-center justify-center transition-colors duration-300 ${u==="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 ${u==="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 ${u==="dark"?"text-red-300":"text-red-500"}`,children:o}),d.jsxs("form",{onSubmit:G,className:"space-y-5",children:[d.jsxs("div",{children:[d.jsxs("label",{className:`block text-sm font-semibold mb-1 ${u==="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:M,className:`w-full border rounded px-4 py-1 outline-none transition-colors duration-300 ${u==="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}),N.resetOtp&&d.jsx("p",{className:"text-red-500 text-xs mt-1",children:N.resetOtp})]}),d.jsxs("div",{className:"relative",children:[d.jsxs("label",{className:`block text-sm font-semibold mb-1 ${u==="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:M,className:`w-full border rounded px-4 py-1 outline-none pr-10 transition-colors duration-300 ${u==="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 ${u==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>j(!b),children:b?d.jsx(go,{}):d.jsx(yo,{})}),N.password&&d.jsx("p",{className:"text-red-500 text-xs mt-1",children:N.password})]}),d.jsxs("div",{className:"relative",children:[d.jsxs("label",{className:`block text-sm font-semibold mb-1 ${u==="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:M,className:`w-full border rounded px-4 py-1 outline-none pr-10 transition-colors duration-300 ${u==="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 ${u==="dark"?"text-gray-300":"text-gray-500"}`,onClick:()=>S(!_),children:_?d.jsx(go,{}):d.jsx(yo,{})}),N.confirmPassword&&d.jsx("p",{className:"text-red-500 text-xs mt-1",children:N.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 ${u==="dark"?"bg-blue-600 hover:bg-blue-700":"bg-blue-500 hover:bg-blue-600"}`,children:s?"Resetting...":"Reset Password"})]})]})})},$_=({label:e,amount:n,link:a})=>d.jsxs(pt,{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 nx(){const e=[{label:"DDR",amount:0,link:"/ddr"},{label:"CRR",amount:0,link:"/crr"},{label:"BBR",amount:0,link:"/bbr"},{label:"HLR",amount:0,link:"/hlr"},{label:"COUNTRY Ambassador",amount: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("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.jsx("p",{className:"text-3xl font-bold text-yellow-400",children:"AED 0.00"})]}),d.jsxs("div",{children:[d.jsx("p",{className:"text-sm",children:"Available Balance"}),d.jsx("p",{className:"text-3xl font-bold text-yellow-400",children:"AED 0.00"})]})]}),d.jsx("div",{className:"flex gap-4 flex-wrap justify-center",children:e.map((n,a)=>d.jsx($_,{label:n.label,amount:n.amount,link:n.link},a))})]})}const Q_=()=>{const e=Sr(),n=$n(),{userId:a}=yA(),s=st(zE),o=st(UE),u=st(BE),c=st(fm),f=st(o1),h=st(hm),[p,g]=K.useState(null),[v,b]=K.useState(!0),[j,_]=K.useState(1),[S,N]=K.useState(null),[A,M]=K.useState(!1),[L,G]=K.useState(null),[T,P]=K.useState([]),[z,B]=K.useState(!1),[D,R]=K.useState(""),[X,U]=K.useState(!1),[I,E]=K.useState(!1),[$,W]=K.useState(null),[w,ce]=K.useState(null),[H,x]=K.useState([]),[O,F]=K.useState({}),[J,Q]=K.useState(!1),[te,se]=K.useState(null),be=()=>{const re=Be.getToken(),ve=Be.getUser(),_e=Be.isAuthenticated(),Ce=!!(re&&ve&&_e);return b(Ce),console.log("MLMTree - Session validity check:",{sessionToken:!!re,sessionUser:!!ve,sessionIsAuth:_e,isValid:Ce}),Ce},Se=async re=>{try{B(!0),G(null),console.log("Loading specific user tree for:",re);const ve=await Jt.getReferralTree(re);if(console.log("Specific user tree response:",ve.data),N(ve.data),g(ve.data.referralTree?.user||ve.data.user),ve.data.referralTree?.user||ve.data.user){const _e=[...T,{member:ve.data.referralTree?.user||ve.data.user}];P(_e),sessionStorage.setItem("treeHistory",JSON.stringify(_e))}}catch(ve){console.error("Error loading specific user tree:",ve),G(ve.response?.data?.message||"Failed to load user tree")}finally{B(!1)}},Te=async()=>{try{const re=await Jt.getReferralLink();return R(re.data.referralLink),re.data.referralLink}catch(re){return console.error("Error fetching referral link:",re),U(!1),alert("Failed to fetch referral link. Please try again."),null}},Ne=async()=>{try{const re=D||await Te();re&&(await navigator.clipboard.writeText(re),U(!0),setTimeout(()=>U(!1),2e3))}catch(re){console.error("Error copying referral link:",re),U(!1),alert("Failed to copy referral link. Please try again.")}},Oe=async re=>{try{return(await Jt.getUserById(re)).data.user}catch(ve){return console.error(`Error fetching details for user ${re}:`,ve),null}},Le=async re=>{Q(!0),se(null);try{const ve=re.map(async qe=>{if(O[qe.id])return{id:qe.id,details:O[qe.id]};const rn=await Oe(qe.id);return{id:qe.id,details:rn}}),Ce=(await Promise.all(ve)).reduce((qe,{id:rn,details:ut})=>(ut&&(qe[rn]=ut),qe),{...O});F(Ce)}catch(ve){console.error("Error fetching level members details:",ve),se("Failed to load member details")}finally{Q(!1)}},Re=async re=>{try{W(re),E(!0);const ve=await Jt.getUserById(re.id);ce(ve.data.user);const _e=await Jt.getReferralTree(re.id),Ce=_e.data.referralTree?.members||_e.data.referralTree?.levels?.members||_e.data.members||{},qe=Object.keys(Ce).filter(ut=>ut.startsWith("level")).reduce((ut,pn)=>[...ut,...Ce[pn]],[]),rn=await Promise.all(qe.map(async ut=>{try{return(await Jt.getUserById(ut.id)).data.user}catch(pn){return console.error(`Error fetching details for user ${ut.id}:`,pn),{...ut,selfieImage:null}}}));x(rn)}catch(ve){console.error("Error fetching member details:",ve),ce(null),x([]),alert("Failed to load member details. Please try again.")}},k=re=>{const ve=[...T,{member:re}];P(ve),sessionStorage.setItem("treeHistory",JSON.stringify(ve)),n(`/user-tree/${re.id}`)},de=re=>{const ve=T[re];if(ve){const _e=T.slice(0,re+1);P(_e),sessionStorage.setItem("treeHistory",JSON.stringify(_e)),n(`/user-tree/${ve.member.id}`)}},ue=()=>{P([]),sessionStorage.removeItem("treeHistory"),n("/mlm")};K.useEffect(()=>{console.log("MLMTree component mounted"),console.log("Current token:",f),console.log("Current user:",c),console.log("Is authenticated:",h),console.log("URL userId:",a),be()?a?(console.log("Loading specific user tree from URL"),Se(a)):(console.log("Dispatching fetchReferralTree with valid session"),e(Ci()),Te()):console.log("No valid session found, skipping API call")},[e,f,c,h,a]),K.useEffect(()=>{a&&v&&h&&(console.log("URL userId changed, loading specific user tree"),Se(a))},[a,v,h]),K.useEffect(()=>{const re=ve=>{console.log("MLMTree - Session cleared event received:",ve.detail),b(!1),e(PE())};return window.addEventListener("sessionCleared",re),()=>window.removeEventListener("sessionCleared",re)},[e]),K.useEffect(()=>{const re=sessionStorage.getItem("treeHistory");if(re)try{P(JSON.parse(re))}catch(ve){console.error("Error parsing tree history:",ve),sessionStorage.removeItem("treeHistory")}},[]),K.useEffect(()=>{const ve=!!a?S:s,Ce=(ve?.referralTree?.members||ve?.referralTree?.levels?.members||ve?.members||{})[`level${j}`]||[];Ce.length>0?Le(Ce):F({})},[j,S,s]);const q=re=>re?new Date(re).toLocaleDateString("en-US",{month:"2-digit",day:"2-digit",year:"numeric"}):"N/A";if(!v||!h||!c)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:v?"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||z||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(u||L||te)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||u||te}),d.jsxs("div",{className:"flex gap-4 justify-center",children:[d.jsx("button",{onClick:()=>{a?Se(a):e(Ci())},className:"px-6 py-2 rounded-lg font-semibold transition-colors",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Try Again"}),d.jsx("button",{onClick:ue,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,ee=Y?S:s,pe=ee?.referralTree?.members||ee?.referralTree?.levels?.members||ee?.members||{},ye=ee?.referralTree?.counts||ee?.referralTree?.levels?.counts||ee?.counts||{},oe=Object.keys(pe).filter(re=>re.startsWith("level")).map(re=>parseInt(re.replace("level",""),10)).sort((re,ve)=>re-ve),je=pe[`level${j}`]||[],Ee=Y?p:s?.referralTree?.user||s?.user||c;return!ee||!ee.referralTree&&!ee.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(Ci())},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.jsxs("div",{className:"mb-4 sm:mb-6 flex flex-col sm:flex-row gap-2",children:[d.jsx("button",{onClick:()=>{if(T.length>0){const re=T[T.length-1],ve=T.slice(0,-1);P(ve),sessionStorage.setItem("treeHistory",JSON.stringify(ve)),n(`/user-tree/${re.member.id}`)}else ue()},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:ue,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"}),T.length>0&&d.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[d.jsx("span",{style:{color:"#FFD700"},children:"History:"}),T.map((re,ve)=>d.jsxs("button",{onClick:()=>de(ve),className:"text-yellow-400 hover:text-yellow-300 text-sm",children:[re.member.name||re.member.username," ",">"]},ve))]})]}),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:[Ee?.selfieImage?d.jsx("img",{src:`${Ti}${Ee.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:Ee?.name?.charAt(0)||Ee?.firstName?.charAt(0)||Ee?.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:Ee?.name||(Ee?.firstName&&Ee?.lastName?`${Ee.firstName} ${Ee.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:Ee?.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:Ee?.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:Ee?.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 ${X?"bg-green-500":"bg-yellow-400"}`,style:{color:"#013220"},children:X?"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(re=>d.jsxs("button",{onClick:()=>_(re),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 ${j===re?"text-green-900":"text-yellow-400"}`,style:{backgroundColor:j===re?"#FFD700":"transparent",border:j===re?"none":"1px solid #FFD700"},children:["Level ",re," (",ye?.[`level${re}`]||0,")"]},re))}),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((re,ve)=>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[re.id]?.selfieImage?d.jsx("img",{src:`${Ti}${O[re.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:re.name?.charAt(0)||re.username?.charAt(0)||"U"})}),d.jsx("span",{style:{color:"#FFD700"},children:re.name||re.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(ve+1).padStart(3,"0")})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Level:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:re.level||0})]}),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:re.name||"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:re.username||"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:q(re.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-cen",children:[d.jsx("div",{className:"mb-1 text-[#FFD700]",children:"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-cen",children:[d.jsx("div",{className:"mb-1 text-[#FFD700]",children:"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(re),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs",children:"View Detail"}),d.jsx("button",{onClick:()=>k(re),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs",children:"View Tree"})]})]})]},re.id||ve))}):d.jsxs("div",{className:"p-4 text-center text-xs",style:{color:"#FFD700"},children:["No members found in Level ",j]})}),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((re,ve)=>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[re.id]?.selfieImage?d.jsx("img",{src:`${Ti}${O[re.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:re.name?.charAt(0)||re.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(ve+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:re.name||"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:re.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:re.level||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-16 sm:w-24",style:{color:"#FFD700"},children:d.jsxs("div",{className:"flex items-center justify-cen",children:[d.jsx("div",{className:"mb-1",children:"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:"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:q(re.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(re),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(re),className:"text-yellow-400 hover:text-yellow-300 transition-colors underline text-xs sm:text-sm md:text-base",children:"View Tree"})]})})]},re.id||ve)):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 ",j]})})})]})})]}),I&&$&&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:`${Ti}${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:$?.name?.charAt(0)||$?.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:$.level||0})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Name:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:$.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:$.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:$.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:$.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:q($.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"})]}),H.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:H.map((re,ve)=>d.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[re.selfieImage?d.jsx("img",{src:`${Ti}${re.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:re.name?.charAt(0)||re.username?.charAt(0)||"U"})}),d.jsxs("div",{children:[d.jsx("span",{style:{color:"#FFD700"},children:re.name||re.username||"Unknown"}),d.jsxs("span",{className:"text-xs ml-2",style:{color:"#FFD700"},children:["(Level ",re.level||"N/A",")"]})]})]},re.id||ve))})]})]}),d.jsxs("div",{className:"mt-6 flex justify-center gap-4",children:[d.jsx("button",{onClick:()=>k($),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:()=>E(!1),className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Close"})]})]})})]})})},J_=()=>{const e=$n(),n=Sr(),a=st(fm),s=st(Hi);if(K.useEffect(()=>{n(Ri())},[]),K.useEffect(()=>{!a&&!s&&n(Ri())},[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",u=a?.createdAt?new Date(a.createdAt).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"}):"Not available",c=a?.selfieImage?`${Ti}/${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:c?d.jsxs("div",{className:"relative",children:[d.jsx("img",{src:c,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: ",u]}),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 ek(){const a="2023-06-01",s=[{level:"L1",amount:500,history:[{date:"2025-08-01",source:"Ali123",amount:200},{date:"2025-08-10",source:"Fatima456",amount:300}]},{level:"L2",amount:3,history:[{date:"2025-08-05",source:"Zain789",amount:3}]},{level:"L3",amount:2,history:[]},{level:"L4",amount:1,history:[]}],o=[{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:"You",username:"@you",amount:12400}],[u,c]=K.useState(null);return 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.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 ",12400 .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 ",500 .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:a})]})]}),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"}),s.map((f,h)=>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:()=>c(u===h?null:h),children:[d.jsxs("div",{className:"flex justify-between",children:[d.jsxs("span",{children:[f.level," Earned"]}),d.jsxs("span",{className:"font-bold",children:["AED ",f.amount]})]}),u===h&&d.jsx("div",{className:"mt-3 max-h-40 overflow-y-auto text-sm",children:f.history.length>0?f.history.map((p,g)=>d.jsxs("div",{className:"flex justify-between py-1 border-b border-yellow-700",children:[d.jsx("span",{children:p.date}),d.jsx("span",{children:p.source}),d.jsxs("span",{className:"font-bold",children:["AED ",p.amount]})]},g)):d.jsx("p",{className:"text-gray-300",children:"No history available."})})]},h))]}),d.jsxs("div",{className:"w-full max-w-4xl mb-10",children:[d.jsx("h2",{className:"text-xl font-bold mb-4",children:"Leaderboard"}),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:o.map(f=>d.jsxs("div",{className:`flex justify-between px-4 py-2 ${f.name==="You"?"bg-yellow-900 font-bold sticky top-0":""}`,children:[d.jsx("span",{children:f.rank}),d.jsxs("span",{children:[f.name," ",d.jsx("small",{className:"text-gray-300",children:f.username})]}),d.jsxs("span",{children:["AED ",f.amount]})]},f.rank))})]}),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:'💡 "Active L1–L4 growth boosts all levels and increases your DDR income!"'})})]})}const rx=({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 tk(){const s=[{name:"Challenger",bonus:1e3,icon:"🥇",achieved:!0},{name:"Warrior",bonus:5e3,icon:"🥈",achieved:!0},{name:"Tycoon",bonus:2e4,icon:"🥉",achieved:!1},{name:"Champion",bonus:5e4,icon:"🏅",achieved:!1},{name:"Boss",bonus:2e5,icon:"🎖️",achieved:!1}],o="Tycoon",u={value:2e3,max:2500},c={value:1e4,max:5e4},f=10,h=[{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}],[p,g]=K.useState(!1);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("h1",{className:"text-2xl font-bold my-6",children:"🏆 CRR – Championship Rank Rewards"}),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 ",6e3.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 ",2e3.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 ",1500 .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"}),d.jsx("div",{className:"flex justify-between items-center",children:s.map((v,b)=>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"})]},b))})]}),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: (",o,")"]}),d.jsx(rx,{label:"PGP Progress",value:u.value,max:u.max}),d.jsx(rx,{label:"TGP Progress",value:c.value,max:c.max}),d.jsxs("p",{className:"mt-2",children:["⏳ ",f," 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:"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:(p?h:h.slice(0,5)).map(v=>d.jsxs("div",{className:`flex justify-between px-4 py-2 ${v.name==="You"?"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:["Rank ",v.userRank]}),d.jsxs("span",{children:["AED ",v.earnings.toLocaleString()]})]},v.rank))}),d.jsx("button",{className:"mt-3 text-sm underline",onClick:()=>g(!p),children:p?"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: Progress is updated hourly or in real-time. Stay consistent!"})})]})}const J1=K.createContext({});function nk(e){const n=K.useRef(null);return n.current===null&&(n.current=e()),n.current}const wm=typeof window<"u",rk=wm?K.useLayoutEffect:K.useEffect,Sm=K.createContext(null);function jm(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 br=(e,n,a)=>a>n?n:a<e?e:a;let Em=()=>{};const wr={},ew=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function tw(e){return typeof e=="object"&&e!==null}const nw=e=>/^0[^.\s]+$/u.test(e);function Am(e){let n;return()=>(n===void 0&&(n=e()),n)}const _n=e=>e,ak=(e,n)=>a=>n(e(a)),Do=(...e)=>e.reduce(ak),vo=(e,n,a)=>{const s=n-e;return s===0?1:(a-e)/s};class Nm{constructor(){this.subscriptions=[]}add(n){return jm(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 u=0;u<o;u++){const c=this.subscriptions[u];c&&c(n,a,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Wn=e=>e*1e3,Xn=e=>e/1e3;function rw(e,n){return n?e*(1e3/n):0}const aw=(e,n,a)=>(((1-3*a+3*n)*e+(3*a-6*n))*e+3*n)*e,ik=1e-7,sk=12;function ok(e,n,a,s,o){let u,c,f=0;do c=n+(a-n)/2,u=aw(c,s,o)-e,u>0?a=c:n=c;while(Math.abs(u)>ik&&++f<sk);return c}function Mo(e,n,a,s){if(e===n&&a===s)return _n;const o=u=>ok(u,0,1,e,a);return u=>u===0||u===1?u:aw(o(u),n,s)}const iw=e=>n=>n<=.5?e(2*n)/2:(2-e(2*(1-n)))/2,sw=e=>n=>1-e(1-n),ow=Mo(.33,1.53,.69,.99),_m=sw(ow),lw=iw(_m),uw=e=>(e*=2)<1?.5*_m(e):.5*(2-Math.pow(2,-10*(e-1))),km=e=>1-Math.sin(Math.acos(e)),cw=sw(km),dw=iw(km),lk=Mo(.42,0,1,1),uk=Mo(0,0,.58,1),fw=Mo(.42,0,.58,1),ck=e=>Array.isArray(e)&&typeof e[0]!="number",hw=e=>Array.isArray(e)&&typeof e[0]=="number",dk={linear:_n,easeIn:lk,easeInOut:fw,easeOut:uk,circIn:km,circInOut:dw,circOut:cw,backIn:_m,backInOut:lw,backOut:ow,anticipate:uw},fk=e=>typeof e=="string",ax=e=>{if(hw(e)){Em(e.length===4);const[n,a,s,o]=e;return Mo(n,a,s,o)}else if(fk(e))return dk[e];return e},nu=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function hk(e,n){let a=new Set,s=new Set,o=!1,u=!1;const c=new WeakSet;let f={delta:0,timestamp:0,isProcessing:!1};function h(g){c.has(g)&&(p.schedule(g),e()),g(f)}const p={schedule:(g,v=!1,b=!1)=>{const _=b&&o?a:s;return v&&c.add(g),_.has(g)||_.add(g),g},cancel:g=>{s.delete(g),c.delete(g)},process:g=>{if(f=g,o){u=!0;return}o=!0,[a,s]=[s,a],a.forEach(h),a.clear(),o=!1,u&&(u=!1,p.process(g))}};return p}const mk=40;function mw(e,n){let a=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},u=()=>a=!0,c=nu.reduce((L,G)=>(L[G]=hk(u),L),{}),{setup:f,read:h,resolveKeyframes:p,preUpdate:g,update:v,preRender:b,render:j,postRender:_}=c,S=()=>{const L=wr.useManualTiming?o.timestamp:performance.now();a=!1,wr.useManualTiming||(o.delta=s?1e3/60:Math.max(Math.min(L-o.timestamp,mk),1)),o.timestamp=L,o.isProcessing=!0,f.process(o),h.process(o),p.process(o),g.process(o),v.process(o),b.process(o),j.process(o),_.process(o),o.isProcessing=!1,a&&n&&(s=!1,e(S))},N=()=>{a=!0,s=!0,o.isProcessing||e(S)};return{schedule:nu.reduce((L,G)=>{const T=c[G];return L[G]=(P,z=!1,B=!1)=>(a||N(),T.schedule(P,z,B)),L},{}),cancel:L=>{for(let G=0;G<nu.length;G++)c[nu[G]].cancel(L)},state:o,steps:c}}const{schedule:ot,cancel:$r,state:Lt,steps:nh}=mw(typeof requestAnimationFrame<"u"?requestAnimationFrame:_n,!0);let bu;function pk(){bu=void 0}const en={now:()=>(bu===void 0&&en.set(Lt.isProcessing||wr.useManualTiming?Lt.timestamp:performance.now()),bu),set:e=>{bu=e,queueMicrotask(pk)}},pw=e=>n=>typeof n=="string"&&n.startsWith(e),Om=pw("--"),gk=pw("var(--"),Rm=e=>gk(e)?yk.test(e.split("/*")[0].trim()):!1,yk=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Ki={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},xo={...Ki,transform:e=>br(0,1,e)},ru={...Ki,default:1},so=e=>Math.round(e*1e5)/1e5,Cm=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function vk(e){return e==null}const xk=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Dm=(e,n)=>a=>!!(typeof a=="string"&&xk.test(a)&&a.startsWith(e)||n&&!vk(a)&&Object.prototype.hasOwnProperty.call(a,n)),gw=(e,n,a)=>s=>{if(typeof s!="string")return s;const[o,u,c,f]=s.match(Cm);return{[e]:parseFloat(o),[n]:parseFloat(u),[a]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},bk=e=>br(0,255,e),rh={...Ki,transform:e=>Math.round(bk(e))},Aa={test:Dm("rgb","red"),parse:gw("red","green","blue"),transform:({red:e,green:n,blue:a,alpha:s=1})=>"rgba("+rh.transform(e)+", "+rh.transform(n)+", "+rh.transform(a)+", "+so(xo.transform(s))+")"};function wk(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 zh={test:Dm("#"),parse:wk,transform:Aa.transform},Lo=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),Wr=Lo("deg"),Zn=Lo("%"),Ue=Lo("px"),Sk=Lo("vh"),jk=Lo("vw"),ix={...Zn,parse:e=>Zn.parse(e)/100,transform:e=>Zn.transform(e*100)},Ai={test:Dm("hsl","hue"),parse:gw("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:a,alpha:s=1})=>"hsla("+Math.round(e)+", "+Zn.transform(so(n))+", "+Zn.transform(so(a))+", "+so(xo.transform(s))+")"},jt={test:e=>Aa.test(e)||zh.test(e)||Ai.test(e),parse:e=>Aa.test(e)?Aa.parse(e):Ai.test(e)?Ai.parse(e):zh.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Aa.transform(e):Ai.transform(e),getAnimatableNone:e=>{const n=jt.parse(e);return n.alpha=0,jt.transform(n)}},Tk=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function Ek(e){return isNaN(e)&&typeof e=="string"&&(e.match(Cm)?.length||0)+(e.match(Tk)?.length||0)>0}const yw="number",vw="color",Ak="var",Nk="var(",sx="${}",_k=/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 u=0;const f=n.replace(_k,h=>(jt.test(h)?(s.color.push(u),o.push(vw),a.push(jt.parse(h))):h.startsWith(Nk)?(s.var.push(u),o.push(Ak),a.push(h)):(s.number.push(u),o.push(yw),a.push(parseFloat(h))),++u,sx)).split(sx);return{values:a,split:f,indexes:s,types:o}}function xw(e){return bo(e).values}function bw(e){const{split:n,types:a}=bo(e),s=n.length;return o=>{let u="";for(let c=0;c<s;c++)if(u+=n[c],o[c]!==void 0){const f=a[c];f===yw?u+=so(o[c]):f===vw?u+=jt.transform(o[c]):u+=o[c]}return u}}const kk=e=>typeof e=="number"?0:jt.test(e)?jt.getAnimatableNone(e):e;function Ok(e){const n=xw(e);return bw(e)(n.map(kk))}const Qr={test:Ek,parse:xw,createTransformer:bw,getAnimatableNone:Ok};function ah(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 Rk({hue:e,saturation:n,lightness:a,alpha:s}){e/=360,n/=100,a/=100;let o=0,u=0,c=0;if(!n)o=u=c=a;else{const f=a<.5?a*(1+n):a+n-a*n,h=2*a-f;o=ah(h,f,e+1/3),u=ah(h,f,e),c=ah(h,f,e-1/3)}return{red:Math.round(o*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:s}}function zu(e,n){return a=>a>0?n:e}const dt=(e,n,a)=>e+(n-e)*a,ih=(e,n,a)=>{const s=e*e,o=a*(n*n-s)+s;return o<0?0:Math.sqrt(o)},Ck=[zh,Aa,Ai],Dk=e=>Ck.find(n=>n.test(e));function ox(e){const n=Dk(e);if(!n)return!1;let a=n.parse(e);return n===Ai&&(a=Rk(a)),a}const lx=(e,n)=>{const a=ox(e),s=ox(n);if(!a||!s)return zu(e,n);const o={...a};return u=>(o.red=ih(a.red,s.red,u),o.green=ih(a.green,s.green,u),o.blue=ih(a.blue,s.blue,u),o.alpha=dt(a.alpha,s.alpha,u),Aa.transform(o))},Uh=new Set(["none","hidden"]);function Mk(e,n){return Uh.has(e)?a=>a<=0?e:n:a=>a>=1?n:e}function Lk(e,n){return a=>dt(e,n,a)}function Mm(e){return typeof e=="number"?Lk:typeof e=="string"?Rm(e)?zu:jt.test(e)?lx:Uk:Array.isArray(e)?ww:typeof e=="object"?jt.test(e)?lx:Pk:zu}function ww(e,n){const a=[...e],s=a.length,o=e.map((u,c)=>Mm(u)(u,n[c]));return u=>{for(let c=0;c<s;c++)a[c]=o[c](u);return a}}function Pk(e,n){const a={...e,...n},s={};for(const o in a)e[o]!==void 0&&n[o]!==void 0&&(s[o]=Mm(e[o])(e[o],n[o]));return o=>{for(const u in s)a[u]=s[u](o);return a}}function zk(e,n){const a=[],s={color:0,var:0,number:0};for(let o=0;o<n.values.length;o++){const u=n.types[o],c=e.indexes[u][s[u]],f=e.values[c]??0;a[o]=f,s[u]++}return a}const Uk=(e,n)=>{const a=Qr.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?Uh.has(e)&&!o.values.length||Uh.has(n)&&!s.values.length?Mk(e,n):Do(ww(zk(s,o),o.values),a):zu(e,n)};function Sw(e,n,a){return typeof e=="number"&&typeof n=="number"&&typeof a=="number"?dt(e,n,a):Mm(e)(e,n)}const Bk=e=>{const n=({timestamp:a})=>e(a);return{start:(a=!0)=>ot.update(n,a),stop:()=>$r(n),now:()=>Lt.isProcessing?Lt.timestamp:en.now()}},jw=(e,n,a=10)=>{let s="";const o=Math.max(Math.round(n/a),2);for(let u=0;u<o;u++)s+=Math.round(e(u/(o-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Uu=2e4;function Lm(e){let n=0;const a=50;let s=e.next(n);for(;!s.done&&n<Uu;)n+=a,s=e.next(n);return n>=Uu?1/0:n}function Fk(e,n=100,a){const s=a({...e,keyframes:[0,n]}),o=Math.min(Lm(s),Uu);return{type:"keyframes",ease:u=>s.next(o*u).value/n,duration:Xn(o)}}const Vk=5;function Tw(e,n,a){const s=Math.max(n-Vk,0);return rw(a-e(s),n-s)}const gt={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},sh=.001;function Hk({duration:e=gt.duration,bounce:n=gt.bounce,velocity:a=gt.velocity,mass:s=gt.mass}){let o,u,c=1-n;c=br(gt.minDamping,gt.maxDamping,c),e=br(gt.minDuration,gt.maxDuration,Xn(e)),c<1?(o=p=>{const g=p*c,v=g*e,b=g-a,j=Bh(p,c),_=Math.exp(-v);return sh-b/j*_},u=p=>{const v=p*c*e,b=v*a+a,j=Math.pow(c,2)*Math.pow(p,2)*e,_=Math.exp(-v),S=Bh(Math.pow(p,2),c);return(-o(p)+sh>0?-1:1)*((b-j)*_)/S}):(o=p=>{const g=Math.exp(-p*e),v=(p-a)*e+1;return-sh+g*v},u=p=>{const g=Math.exp(-p*e),v=(a-p)*(e*e);return g*v});const f=5/e,h=qk(o,u,f);if(e=Wn(e),isNaN(h))return{stiffness:gt.stiffness,damping:gt.damping,duration:e};{const p=Math.pow(h,2)*s;return{stiffness:p,damping:c*2*Math.sqrt(s*p),duration:e}}}const Ik=12;function qk(e,n,a){let s=a;for(let o=1;o<Ik;o++)s=s-e(s)/n(s);return s}function Bh(e,n){return e*Math.sqrt(1-n*n)}const Gk=["duration","bounce"],Yk=["stiffness","damping","mass"];function ux(e,n){return n.some(a=>e[a]!==void 0)}function Kk(e){let n={velocity:gt.velocity,stiffness:gt.stiffness,damping:gt.damping,mass:gt.mass,isResolvedFromDuration:!1,...e};if(!ux(e,Yk)&&ux(e,Gk))if(e.visualDuration){const a=e.visualDuration,s=2*Math.PI/(a*1.2),o=s*s,u=2*br(.05,1,1-(e.bounce||0))*Math.sqrt(o);n={...n,mass:gt.mass,stiffness:o,damping:u}}else{const a=Hk(e);n={...n,...a,mass:gt.mass},n.isResolvedFromDuration=!0}return n}function Bu(e=gt.visualDuration,n=gt.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:n}:e;let{restSpeed:s,restDelta:o}=a;const u=a.keyframes[0],c=a.keyframes[a.keyframes.length-1],f={done:!1,value:u},{stiffness:h,damping:p,mass:g,duration:v,velocity:b,isResolvedFromDuration:j}=Kk({...a,velocity:-Xn(a.velocity||0)}),_=b||0,S=p/(2*Math.sqrt(h*g)),N=c-u,A=Xn(Math.sqrt(h/g)),M=Math.abs(N)<5;s||(s=M?gt.restSpeed.granular:gt.restSpeed.default),o||(o=M?gt.restDelta.granular:gt.restDelta.default);let L;if(S<1){const T=Bh(A,S);L=P=>{const z=Math.exp(-S*A*P);return c-z*((_+S*A*N)/T*Math.sin(T*P)+N*Math.cos(T*P))}}else if(S===1)L=T=>c-Math.exp(-A*T)*(N+(_+A*N)*T);else{const T=A*Math.sqrt(S*S-1);L=P=>{const z=Math.exp(-S*A*P),B=Math.min(T*P,300);return c-z*((_+S*A*N)*Math.sinh(B)+T*N*Math.cosh(B))/T}}const G={calculatedDuration:j&&v||null,next:T=>{const P=L(T);if(j)f.done=T>=v;else{let z=T===0?_:0;S<1&&(z=T===0?Wn(_):Tw(L,T,P));const B=Math.abs(z)<=s,D=Math.abs(c-P)<=o;f.done=B&&D}return f.value=f.done?c:P,f},toString:()=>{const T=Math.min(Lm(G),Uu),P=jw(z=>G.next(T*z).value,T,30);return T+"ms "+P},toTransition:()=>{}};return G}Bu.applyToOptions=e=>{const n=Fk(e,100,Bu);return e.ease=n.ease,e.duration=Wn(n.duration),e.type="keyframes",e};function Fh({keyframes:e,velocity:n=0,power:a=.8,timeConstant:s=325,bounceDamping:o=10,bounceStiffness:u=500,modifyTarget:c,min:f,max:h,restDelta:p=.5,restSpeed:g}){const v=e[0],b={done:!1,value:v},j=B=>f!==void 0&&B<f||h!==void 0&&B>h,_=B=>f===void 0?h:h===void 0||Math.abs(f-B)<Math.abs(h-B)?f:h;let S=a*n;const N=v+S,A=c===void 0?N:c(N);A!==N&&(S=A-v);const M=B=>-S*Math.exp(-B/s),L=B=>A+M(B),G=B=>{const D=M(B),R=L(B);b.done=Math.abs(D)<=p,b.value=b.done?A:R};let T,P;const z=B=>{j(b.value)&&(T=B,P=Bu({keyframes:[b.value,_(b.value)],velocity:Tw(L,B,b.value),damping:o,stiffness:u,restDelta:p,restSpeed:g}))};return z(0),{calculatedDuration:null,next:B=>{let D=!1;return!P&&T===void 0&&(D=!0,G(B),z(B)),T!==void 0&&B>=T?P.next(B-T):(!D&&G(B),b)}}}function Wk(e,n,a){const s=[],o=a||wr.mix||Sw,u=e.length-1;for(let c=0;c<u;c++){let f=o(e[c],e[c+1]);if(n){const h=Array.isArray(n)?n[c]||_n:n;f=Do(h,f)}s.push(f)}return s}function Xk(e,n,{clamp:a=!0,ease:s,mixer:o}={}){const u=e.length;if(Em(u===n.length),u===1)return()=>n[0];if(u===2&&n[0]===n[1])return()=>n[1];const c=e[0]===e[1];e[0]>e[u-1]&&(e=[...e].reverse(),n=[...n].reverse());const f=Wk(n,s,o),h=f.length,p=g=>{if(c&&g<e[0])return n[0];let v=0;if(h>1)for(;v<e.length-2&&!(g<e[v+1]);v++);const b=vo(e[v],e[v+1],g);return f[v](b)};return a?g=>p(br(e[0],e[u-1],g)):p}function Zk(e,n){const a=e[e.length-1];for(let s=1;s<=n;s++){const o=vo(0,n,s);e.push(dt(a,1,o))}}function $k(e){const n=[0];return Zk(n,e.length-1),n}function Qk(e,n){return e.map(a=>a*n)}function Jk(e,n){return e.map(()=>n||fw).splice(0,e.length-1)}function oo({duration:e=300,keyframes:n,times:a,ease:s="easeInOut"}){const o=ck(s)?s.map(ax):ax(s),u={done:!1,value:n[0]},c=Qk(a&&a.length===n.length?a:$k(n),e),f=Xk(c,n,{ease:Array.isArray(o)?o:Jk(n,o)});return{calculatedDuration:e,next:h=>(u.value=f(h),u.done=h>=e,u)}}const eO=e=>e!==null;function Pm(e,{repeat:n,repeatType:a="loop"},s,o=1){const u=e.filter(eO),f=o<0||n&&a!=="loop"&&n%2===1?0:u.length-1;return!f||s===void 0?u[f]:s}const tO={decay:Fh,inertia:Fh,tween:oo,keyframes:oo,spring:Bu};function Ew(e){typeof e.type=="string"&&(e.type=tO[e.type])}class zm{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 nO=e=>e/100;class Um extends zm{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!==en.now()&&this.tick(en.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;Ew(n);const{type:a=oo,repeat:s=0,repeatDelay:o=0,repeatType:u,velocity:c=0}=n;let{keyframes:f}=n;const h=a||oo;h!==oo&&typeof f[0]!="number"&&(this.mixKeyframes=Do(nO,Sw(f[0],f[1])),f=[0,100]);const p=h({...n,keyframes:f});u==="mirror"&&(this.mirroredGenerator=h({...n,keyframes:[...f].reverse(),velocity:-c})),p.calculatedDuration===null&&(p.calculatedDuration=Lm(p));const{calculatedDuration:g}=p;this.calculatedDuration=g,this.resolvedDuration=g+o,this.totalDuration=this.resolvedDuration*(s+1)-o,this.generator=p}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:u,mirroredGenerator:c,resolvedDuration:f,calculatedDuration:h}=this;if(this.startTime===null)return s.next(0);const{delay:p=0,keyframes:g,repeat:v,repeatType:b,repeatDelay:j,type:_,onUpdate:S,finalKeyframe:N}=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 A=this.currentTime-p*(this.playbackSpeed>=0?1:-1),M=this.playbackSpeed>=0?A<0:A>o;this.currentTime=Math.max(A,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let L=this.currentTime,G=s;if(v){const B=Math.min(this.currentTime,o)/f;let D=Math.floor(B),R=B%1;!R&&B>=1&&(R=1),R===1&&D--,D=Math.min(D,v+1),!!(D%2)&&(b==="reverse"?(R=1-R,j&&(R-=j/f)):b==="mirror"&&(G=c)),L=br(0,1,R)*f}const T=M?{done:!1,value:g[0]}:G.next(L);u&&(T.value=u(T.value));let{done:P}=T;!M&&h!==null&&(P=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const z=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&P);return z&&_!==Fh&&(T.value=Pm(g,this.options,N,this.speed)),S&&S(T.value),z&&this.finish(),T}then(n,a){return this.finished.then(n,a)}get duration(){return Xn(this.calculatedDuration)}get time(){return Xn(this.currentTime)}set time(n){n=Wn(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(en.now());const a=this.playbackSpeed!==n;this.playbackSpeed=n,a&&(this.time=Xn(this.currentTime))}play(){if(this.isStopped)return;const{driver:n=Bk,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(en.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 rO(e){for(let n=1;n<e.length;n++)e[n]??(e[n]=e[n-1])}const Na=e=>e*180/Math.PI,Vh=e=>{const n=Na(Math.atan2(e[1],e[0]));return Hh(n)},aO={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Vh,rotateZ:Vh,skewX:e=>Na(Math.atan(e[1])),skewY:e=>Na(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Hh=e=>(e=e%360,e<0&&(e+=360),e),cx=Vh,dx=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),fx=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),iO={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:dx,scaleY:fx,scale:e=>(dx(e)+fx(e))/2,rotateX:e=>Hh(Na(Math.atan2(e[6],e[5]))),rotateY:e=>Hh(Na(Math.atan2(-e[2],e[0]))),rotateZ:cx,rotate:cx,skewX:e=>Na(Math.atan(e[4])),skewY:e=>Na(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Ih(e){return e.includes("scale")?1:0}function qh(e,n){if(!e||e==="none")return Ih(n);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,o;if(a)s=iO,o=a;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=aO,o=f}if(!o)return Ih(n);const u=s[n],c=o[1].split(",").map(oO);return typeof u=="function"?u(c):c[u]}const sO=(e,n)=>{const{transform:a="none"}=getComputedStyle(e);return qh(a,n)};function oO(e){return parseFloat(e.trim())}const Wi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Xi=new Set(Wi),hx=e=>e===Ki||e===Ue,lO=new Set(["x","y","z"]),uO=Wi.filter(e=>!lO.has(e));function cO(e){const n=[];return uO.forEach(a=>{const s=e.getValue(a);s!==void 0&&(n.push([a,s.get()]),s.set(a.startsWith("scale")?1:0))}),n}const Oa={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})=>qh(n,"x"),y:(e,{transform:n})=>qh(n,"y")};Oa.translateX=Oa.x;Oa.translateY=Oa.y;const Ra=new Set;let Gh=!1,Yh=!1,Kh=!1;function Aw(){if(Yh){const e=Array.from(Ra).filter(s=>s.needsMeasurement),n=new Set(e.map(s=>s.element)),a=new Map;n.forEach(s=>{const o=cO(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(([u,c])=>{s.getValue(u)?.set(c)})}),e.forEach(s=>s.measureEndState()),e.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Yh=!1,Gh=!1,Ra.forEach(e=>e.complete(Kh)),Ra.clear()}function Nw(){Ra.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Yh=!0)})}function dO(){Kh=!0,Nw(),Aw(),Kh=!1}class Bm{constructor(n,a,s,o,u,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...n],this.onComplete=a,this.name=s,this.motionValue=o,this.element=u,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(Ra.add(this),Gh||(Gh=!0,ot.read(Nw),ot.resolveKeyframes(Aw))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:n,name:a,element:s,motionValue:o}=this;if(n[0]===null){const u=o?.get(),c=n[n.length-1];if(u!==void 0)n[0]=u;else if(s&&a){const f=s.readValue(a,c);f!=null&&(n[0]=f)}n[0]===void 0&&(n[0]=c),o&&u===void 0&&o.set(n[0])}rO(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),Ra.delete(this)}cancel(){this.state==="scheduled"&&(Ra.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const fO=e=>e.startsWith("--");function hO(e,n,a){fO(n)?e.style.setProperty(n,a):e.style[n]=a}const mO=Am(()=>window.ScrollTimeline!==void 0),pO={};function gO(e,n){const a=Am(e);return()=>pO[n]??a()}const _w=gO(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),ro=([e,n,a,s])=>`cubic-bezier(${e}, ${n}, ${a}, ${s})`,mx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ro([0,.65,.55,1]),circOut:ro([.55,0,1,.45]),backIn:ro([.31,.01,.66,-.59]),backOut:ro([.33,1.53,.69,.99])};function kw(e,n){if(e)return typeof e=="function"?_w()?jw(e,n):"ease-out":hw(e)?ro(e):Array.isArray(e)?e.map(a=>kw(a,n)||mx.easeOut):mx[e]}function yO(e,n,a,{delay:s=0,duration:o=300,repeat:u=0,repeatType:c="loop",ease:f="easeOut",times:h}={},p=void 0){const g={[n]:a};h&&(g.offset=h);const v=kw(f,o);Array.isArray(v)&&(g.easing=v);const b={delay:s,duration:o,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"};return p&&(b.pseudoElement=p),e.animate(g,b)}function Ow(e){return typeof e=="function"&&"applyToOptions"in e}function vO({type:e,...n}){return Ow(e)&&_w()?e.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class xO extends zm{constructor(n){if(super(),this.finishedTime=null,this.isStopped=!1,!n)return;const{element:a,name:s,keyframes:o,pseudoElement:u,allowFlatten:c=!1,finalKeyframe:f,onComplete:h}=n;this.isPseudoElement=!!u,this.allowFlatten=c,this.options=n,Em(typeof n.type!="string");const p=vO(n);this.animation=yO(a,s,o,p,u),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const g=Pm(o,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(g):hO(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 Xn(Number(n))}get time(){return Xn(Number(this.animation.currentTime)||0)}set time(n){this.finishedTime=null,this.animation.currentTime=Wn(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&&mO()?(this.animation.timeline=n,_n):a(this)}}const Rw={anticipate:uw,backInOut:lw,circInOut:dw};function bO(e){return e in Rw}function wO(e){typeof e.ease=="string"&&bO(e.ease)&&(e.ease=Rw[e.ease])}const px=10;class SO extends xO{constructor(n){wO(n),Ew(n),super(n),n.startTime&&(this.startTime=n.startTime),this.options=n}updateMotionValue(n){const{motionValue:a,onUpdate:s,onComplete:o,element:u,...c}=this.options;if(!a)return;if(n!==void 0){a.set(n);return}const f=new Um({...c,autoplay:!1}),h=Wn(this.finishedTime??this.time);a.setWithVelocity(f.sample(h-px).value,f.sample(h).value,px),f.stop()}}const gx=(e,n)=>n==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qr.test(e)||e==="0")&&!e.startsWith("url("));function jO(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 TO(e,n,a,s){const o=e[0];if(o===null)return!1;if(n==="display"||n==="visibility")return!0;const u=e[e.length-1],c=gx(o,n),f=gx(u,n);return!c||!f?!1:jO(e)||(a==="spring"||Ow(a))&&s}function Wh(e){e.duration=0,e.type}const EO=new Set(["opacity","clipPath","filter","transform"]),AO=Am(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function NO(e){const{motionValue:n,name:a,repeatDelay:s,repeatType:o,damping:u,type:c}=e;if(!(n?.owner?.current instanceof HTMLElement))return!1;const{onUpdate:h,transformTemplate:p}=n.owner.getProps();return AO()&&a&&EO.has(a)&&(a!=="transform"||!p)&&!h&&!s&&o!=="mirror"&&u!==0&&c!=="inertia"}const _O=40;class kO extends zm{constructor({autoplay:n=!0,delay:a=0,type:s="keyframes",repeat:o=0,repeatDelay:u=0,repeatType:c="loop",keyframes:f,name:h,motionValue:p,element:g,...v}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=en.now();const b={autoplay:n,delay:a,type:s,repeat:o,repeatDelay:u,repeatType:c,name:h,motionValue:p,element:g,...v},j=g?.KeyframeResolver||Bm;this.keyframeResolver=new j(f,(_,S,N)=>this.onKeyframesResolved(_,S,b,!N),h,p,g),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(n,a,s,o){this.keyframeResolver=void 0;const{name:u,type:c,velocity:f,delay:h,isHandoff:p,onUpdate:g}=s;this.resolvedAt=en.now(),TO(n,u,c,f)||((wr.instantAnimations||!h)&&g?.(Pm(n,s,a)),n[0]=n[n.length-1],Wh(s),s.repeat=0);const b={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>_O?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...s,keyframes:n},j=!p&&NO(b)?new SO({...b,element:b.motionValue.owner.current}):new Um(b);j.finished.then(()=>this.notifyFinished()).catch(_n),this.pendingTimeline&&(this.stopTimeline=j.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=j}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(),dO()),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 OO=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function RO(e){const n=OO.exec(e);if(!n)return[,];const[,a,s,o]=n;return[`--${a??s}`,o]}function Cw(e,n,a=1){const[s,o]=RO(e);if(!s)return;const u=window.getComputedStyle(n).getPropertyValue(s);if(u){const c=u.trim();return ew(c)?parseFloat(c):c}return Rm(o)?Cw(o,n,a+1):o}function Fm(e,n){return e?.[n]??e?.default??e}const Dw=new Set(["width","height","top","left","right","bottom",...Wi]),CO={test:e=>e==="auto",parse:e=>e},Mw=e=>n=>n.test(e),Lw=[Ki,Ue,Zn,Wr,jk,Sk,CO],yx=e=>Lw.find(Mw(e));function DO(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||nw(e):!0}const MO=new Set(["brightness","contrast","saturate","opacity"]);function LO(e){const[n,a]=e.slice(0,-1).split("(");if(n==="drop-shadow")return e;const[s]=a.match(Cm)||[];if(!s)return e;const o=a.replace(s,"");let u=MO.has(n)?1:0;return s!==a&&(u*=100),n+"("+u+o+")"}const PO=/\b([a-z-]*)\(.*?\)/gu,Xh={...Qr,getAnimatableNone:e=>{const n=e.match(PO);return n?n.map(LO).join(" "):e}},vx={...Ki,transform:Math.round},zO={rotate:Wr,rotateX:Wr,rotateY:Wr,rotateZ:Wr,scale:ru,scaleX:ru,scaleY:ru,scaleZ:ru,skew:Wr,skewX:Wr,skewY:Wr,distance:Ue,translateX:Ue,translateY:Ue,translateZ:Ue,x:Ue,y:Ue,z:Ue,perspective:Ue,transformPerspective:Ue,opacity:xo,originX:ix,originY:ix,originZ:Ue},Vm={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,...zO,zIndex:vx,fillOpacity:xo,strokeOpacity:xo,numOctaves:vx},UO={...Vm,color:jt,backgroundColor:jt,outlineColor:jt,fill:jt,stroke:jt,borderColor:jt,borderTopColor:jt,borderRightColor:jt,borderBottomColor:jt,borderLeftColor:jt,filter:Xh,WebkitFilter:Xh},Pw=e=>UO[e];function zw(e,n){let a=Pw(e);return a!==Xh&&(a=Qr),a.getAnimatableNone?a.getAnimatableNone(n):void 0}const BO=new Set(["auto","none","0"]);function FO(e,n,a){let s=0,o;for(;s<e.length&&!o;){const u=e[s];typeof u=="string"&&!BO.has(u)&&bo(u).values.length&&(o=e[s]),s++}if(o&&a)for(const u of n)e[u]=zw(a,o)}class VO extends Bm{constructor(n,a,s,o,u){super(n,a,s,o,u,!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 p=n[h];if(typeof p=="string"&&(p=p.trim(),Rm(p))){const g=Cw(p,a.current);g!==void 0&&(n[h]=g),h===n.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!Dw.has(s)||n.length!==2)return;const[o,u]=n,c=yx(o),f=yx(u);if(c!==f)if(hx(c)&&hx(f))for(let h=0;h<n.length;h++){const p=n[h];typeof p=="string"&&(n[h]=parseFloat(p))}else Oa[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:n,name:a}=this,s=[];for(let o=0;o<n.length;o++)(n[o]===null||DO(n[o]))&&s.push(o);s.length&&FO(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=Oa[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 u=s.length-1,c=s[u];s[u]=Oa[a](n.measureViewportBox(),window.getComputedStyle(n.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),this.removedTransforms?.length&&this.removedTransforms.forEach(([f,h])=>{n.getValue(f).set(h)}),this.resolveNoneKeyframes()}}function HO(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 Uw=(e,n)=>n&&typeof e=="number"?n.transform(e):e;function IO(e){return tw(e)&&"offsetHeight"in e}const xx=30,qO=e=>!isNaN(parseFloat(e));class GO{constructor(n,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const o=en.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 u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(n),this.owner=a.owner}setCurrent(n){this.current=n,this.updatedAt=en.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=qO(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 Nm);const s=this.events[n].add(a);return n==="change"?()=>{s(),ot.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=en.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>xx)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,xx);return rw(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 Ui(e,n){return new GO(e,n)}const{schedule:Hm}=mw(queueMicrotask,!1),zn={x:!1,y:!1};function Bw(){return zn.x||zn.y}function YO(e){return e==="x"||e==="y"?zn[e]?null:(zn[e]=!0,()=>{zn[e]=!1}):zn.x||zn.y?null:(zn.x=zn.y=!0,()=>{zn.x=zn.y=!1})}function Fw(e,n){const a=HO(e),s=new AbortController,o={passive:!0,...n,signal:s.signal};return[a,o,()=>s.abort()]}function bx(e){return!(e.pointerType==="touch"||Bw())}function KO(e,n,a={}){const[s,o,u]=Fw(e,a),c=f=>{if(!bx(f))return;const{target:h}=f,p=n(h,f);if(typeof p!="function"||!h)return;const g=v=>{bx(v)&&(p(v),h.removeEventListener("pointerleave",g))};h.addEventListener("pointerleave",g,o)};return s.forEach(f=>{f.addEventListener("pointerenter",c,o)}),u}const Vw=(e,n)=>n?e===n?!0:Vw(e,n.parentElement):!1,Im=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,WO=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function XO(e){return WO.has(e.tagName)||e.tabIndex!==-1}const wu=new WeakSet;function wx(e){return n=>{n.key==="Enter"&&e(n)}}function oh(e,n){e.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const ZO=(e,n)=>{const a=e.currentTarget;if(!a)return;const s=wx(()=>{if(wu.has(a))return;oh(a,"down");const o=wx(()=>{oh(a,"up")}),u=()=>oh(a,"cancel");a.addEventListener("keyup",o,n),a.addEventListener("blur",u,n)});a.addEventListener("keydown",s,n),a.addEventListener("blur",()=>a.removeEventListener("keydown",s),n)};function Sx(e){return Im(e)&&!Bw()}function $O(e,n,a={}){const[s,o,u]=Fw(e,a),c=f=>{const h=f.currentTarget;if(!Sx(f))return;wu.add(h);const p=n(h,f),g=(j,_)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",b),wu.has(h)&&wu.delete(h),Sx(j)&&typeof p=="function"&&p(j,{success:_})},v=j=>{g(j,h===window||h===document||a.useGlobalTarget||Vw(h,j.target))},b=j=>{g(j,!1)};window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",b,o)};return s.forEach(f=>{(a.useGlobalTarget?window:f).addEventListener("pointerdown",c,o),IO(f)&&(f.addEventListener("focus",p=>ZO(p,o)),!XO(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),u}function Hw(e){return tw(e)&&"ownerSVGElement"in e}function QO(e){return Hw(e)&&e.tagName==="svg"}const Vt=e=>!!(e&&e.getVelocity),JO=[...Lw,jt,Qr],e6=e=>JO.find(Mw(e)),Iw=K.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function t6(e=!0){const n=K.useContext(Sm);if(n===null)return[!0,null];const{isPresent:a,onExitComplete:s,register:o}=n,u=K.useId();K.useEffect(()=>{if(e)return o(u)},[e]);const c=K.useCallback(()=>e&&s&&s(u),[u,s,e]);return!a&&s?[!1,c]:[!0]}const qw=K.createContext({strict:!1}),jx={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"]},Bi={};for(const e in jx)Bi[e]={isEnabled:n=>jx[e].some(a=>!!n[a])};function n6(e){for(const n in e)Bi[n]={...Bi[n],...e[n]}}const r6=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 Fu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||r6.has(e)}let Gw=e=>!Fu(e);function a6(e){typeof e=="function"&&(Gw=n=>n.startsWith("on")?!Fu(n):e(n))}try{a6(require("@emotion/is-prop-valid").default)}catch{}function i6(e,n,a){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(Gw(o)||a===!0&&Fu(o)||!n&&!Fu(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}const uc=K.createContext({});function cc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function wo(e){return typeof e=="string"||Array.isArray(e)}const qm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Gm=["initial",...qm];function dc(e){return cc(e.animate)||Gm.some(n=>wo(e[n]))}function Yw(e){return!!(dc(e)||e.variants)}function s6(e,n){if(dc(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 o6(e){const{initial:n,animate:a}=s6(e,K.useContext(uc));return K.useMemo(()=>({initial:n,animate:a}),[Tx(n),Tx(a)])}function Tx(e){return Array.isArray(e)?e.join(" "):e}const So={};function l6(e){for(const n in e)So[n]=e[n],Om(n)&&(So[n].isCSSVariable=!0)}function Kw(e,{layout:n,layoutId:a}){return Xi.has(e)||e.startsWith("origin")||(n||a!==void 0)&&(!!So[e]||e==="opacity")}const u6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},c6=Wi.length;function d6(e,n,a){let s="",o=!0;for(let u=0;u<c6;u++){const c=Wi[u],f=e[c];if(f===void 0)continue;let h=!0;if(typeof f=="number"?h=f===(c.startsWith("scale")?1:0):h=parseFloat(f)===0,!h||a){const p=Uw(f,Vm[c]);if(!h){o=!1;const g=u6[c]||c;s+=`${g}(${p}) `}a&&(n[c]=p)}}return s=s.trim(),a?s=a(n,o?"":s):o&&(s="none"),s}function Ym(e,n,a){const{style:s,vars:o,transformOrigin:u}=e;let c=!1,f=!1;for(const h in n){const p=n[h];if(Xi.has(h)){c=!0;continue}else if(Om(h)){o[h]=p;continue}else{const g=Uw(p,Vm[h]);h.startsWith("origin")?(f=!0,u[h]=g):s[h]=g}}if(n.transform||(c||a?s.transform=d6(n,e.transform,a):s.transform&&(s.transform="none")),f){const{originX:h="50%",originY:p="50%",originZ:g=0}=u;s.transformOrigin=`${h} ${p} ${g}`}}const Km=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function Ww(e,n,a){for(const s in n)!Vt(n[s])&&!Kw(s,a)&&(e[s]=n[s])}function f6({transformTemplate:e},n){return K.useMemo(()=>{const a=Km();return Ym(a,n,e),Object.assign({},a.vars,a.style)},[n])}function h6(e,n){const a=e.style||{},s={};return Ww(s,a,e),Object.assign(s,f6(e,n)),s}function m6(e,n){const a={},s=h6(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 p6={offset:"stroke-dashoffset",array:"stroke-dasharray"},g6={offset:"strokeDashoffset",array:"strokeDasharray"};function y6(e,n,a=1,s=0,o=!0){e.pathLength=1;const u=o?p6:g6;e[u.offset]=Ue.transform(-s);const c=Ue.transform(n),f=Ue.transform(a);e[u.array]=`${c} ${f}`}function Xw(e,{attrX:n,attrY:a,attrScale:s,pathLength:o,pathSpacing:u=1,pathOffset:c=0,...f},h,p,g){if(Ym(e,f,p),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:b}=e;v.transform&&(b.transform=v.transform,delete v.transform),(b.transform||v.transformOrigin)&&(b.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),b.transform&&(b.transformBox=g?.transformBox??"fill-box",delete v.transformBox),n!==void 0&&(v.x=n),a!==void 0&&(v.y=a),s!==void 0&&(v.scale=s),o!==void 0&&y6(v,o,u,c,!1)}const Zw=()=>({...Km(),attrs:{}}),$w=e=>typeof e=="string"&&e.toLowerCase()==="svg";function v6(e,n,a,s){const o=K.useMemo(()=>{const u=Zw();return Xw(u,n,$w(s),e.transformTemplate,e.style),{...u.attrs,style:{...u.style}}},[n]);if(e.style){const u={};Ww(u,e.style,e),o.style={...u,...o.style}}return o}const x6=["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 Wm(e){return typeof e!="string"||e.includes("-")?!1:!!(x6.indexOf(e)>-1||/[A-Z]/u.test(e))}function b6(e,n,a,{latestValues:s},o,u=!1){const f=(Wm(e)?v6:m6)(n,s,o,e),h=i6(n,typeof e=="string",u),p=e!==K.Fragment?{...h,...f,ref:a}:{},{children:g}=n,v=K.useMemo(()=>Vt(g)?g.get():g,[g]);return K.createElement(e,{...p,children:v})}function Ex(e){const n=[{},{}];return e?.values.forEach((a,s)=>{n[0][s]=a.get(),n[1][s]=a.getVelocity()}),n}function Xm(e,n,a,s){if(typeof n=="function"){const[o,u]=Ex(s);n=n(a!==void 0?a:e.custom,o,u)}if(typeof n=="string"&&(n=e.variants&&e.variants[n]),typeof n=="function"){const[o,u]=Ex(s);n=n(a!==void 0?a:e.custom,o,u)}return n}function Su(e){return Vt(e)?e.get():e}function w6({scrapeMotionValuesFromProps:e,createRenderState:n},a,s,o){return{latestValues:S6(a,s,o,e),renderState:n()}}function S6(e,n,a,s){const o={},u=s(e,{});for(const b in u)o[b]=Su(u[b]);let{initial:c,animate:f}=e;const h=dc(e),p=Yw(e);n&&p&&!h&&e.inherit!==!1&&(c===void 0&&(c=n.initial),f===void 0&&(f=n.animate));let g=a?a.initial===!1:!1;g=g||c===!1;const v=g?f:c;if(v&&typeof v!="boolean"&&!cc(v)){const b=Array.isArray(v)?v:[v];for(let j=0;j<b.length;j++){const _=Xm(e,b[j]);if(_){const{transitionEnd:S,transition:N,...A}=_;for(const M in A){let L=A[M];if(Array.isArray(L)){const G=g?L.length-1:0;L=L[G]}L!==null&&(o[M]=L)}for(const M in S)o[M]=S[M]}}}return o}const Qw=e=>(n,a)=>{const s=K.useContext(uc),o=K.useContext(Sm),u=()=>w6(e,n,s,o);return a?u():nk(u)};function Zm(e,n,a){const{style:s}=e,o={};for(const u in s)(Vt(s[u])||n.style&&Vt(n.style[u])||Kw(u,e)||a?.getValue(u)?.liveStyle!==void 0)&&(o[u]=s[u]);return o}const j6=Qw({scrapeMotionValuesFromProps:Zm,createRenderState:Km});function Jw(e,n,a){const s=Zm(e,n,a);for(const o in e)if(Vt(e[o])||Vt(n[o])){const u=Wi.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[u]=e[o]}return s}const T6=Qw({scrapeMotionValuesFromProps:Jw,createRenderState:Zw}),E6=Symbol.for("motionComponentSymbol");function Ni(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function A6(e,n,a){return K.useCallback(s=>{s&&e.onMount&&e.onMount(s),n&&(s?n.mount(s):n.unmount()),a&&(typeof a=="function"?a(s):Ni(a)&&(a.current=s))},[n])}const $m=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),N6="framerAppearId",e2="data-"+$m(N6),t2=K.createContext({});function _6(e,n,a,s,o){const{visualElement:u}=K.useContext(uc),c=K.useContext(qw),f=K.useContext(Sm),h=K.useContext(Iw).reducedMotion,p=K.useRef(null);s=s||c.renderer,!p.current&&s&&(p.current=s(e,{visualState:n,parent:u,props:a,presenceContext:f,blockInitialAnimation:f?f.initial===!1:!1,reducedMotionConfig:h}));const g=p.current,v=K.useContext(t2);g&&!g.projection&&o&&(g.type==="html"||g.type==="svg")&&k6(p.current,a,o,v);const b=K.useRef(!1);K.useInsertionEffect(()=>{g&&b.current&&g.update(a,f)});const j=a[e2],_=K.useRef(!!j&&!window.MotionHandoffIsComplete?.(j)&&window.MotionHasOptimisedAnimation?.(j));return rk(()=>{g&&(b.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),_.current&&g.animationState&&g.animationState.animateChanges())}),K.useEffect(()=>{g&&(!_.current&&g.animationState&&g.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(j)}),_.current=!1),g.enteringChildren=void 0)}),g}function k6(e,n,a,s){const{layoutId:o,layout:u,drag:c,dragConstraints:f,layoutScroll:h,layoutRoot:p,layoutCrossfade:g}=n;e.projection=new a(e.latestValues,n["data-framer-portal-id"]?void 0:n2(e.parent)),e.projection.setOptions({layoutId:o,layout:u,alwaysMeasureLayout:!!c||f&&Ni(f),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,crossfade:g,layoutScroll:h,layoutRoot:p})}function n2(e){if(e)return e.options.allowProjection!==!1?e.projection:n2(e.parent)}function lh(e,{forwardMotionProps:n=!1}={},a,s){a&&n6(a);const o=Wm(e)?T6:j6;function u(f,h){let p;const g={...K.useContext(Iw),...f,layoutId:O6(f)},{isStatic:v}=g,b=o6(f),j=o(f,v);if(!v&&wm){R6();const _=C6(g);p=_.MeasureLayout,b.visualElement=_6(e,j,g,s,_.ProjectionNode)}return d.jsxs(uc.Provider,{value:b,children:[p&&b.visualElement?d.jsx(p,{visualElement:b.visualElement,...g}):null,b6(e,f,A6(j,b.visualElement,h),j,v,n)]})}u.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=K.forwardRef(u);return c[E6]=e,c}function O6({layoutId:e}){const n=K.useContext(J1).id;return n&&e!==void 0?n+"-"+e:e}function R6(e,n){K.useContext(qw).strict}function C6(e){const{drag:n,layout:a}=Bi;if(!n&&!a)return{};const s={...n,...a};return{MeasureLayout:n?.isEnabled(e)||a?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function D6(e,n){if(typeof Proxy>"u")return lh;const a=new Map,s=(u,c)=>lh(u,c,e,n),o=(u,c)=>s(u,c);return new Proxy(o,{get:(u,c)=>c==="create"?s:(a.has(c)||a.set(c,lh(c,void 0,e,n)),a.get(c))})}function r2({top:e,left:n,right:a,bottom:s}){return{x:{min:n,max:a},y:{min:e,max:s}}}function M6({x:e,y:n}){return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function L6(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 uh(e){return e===void 0||e===1}function Zh({scale:e,scaleX:n,scaleY:a}){return!uh(e)||!uh(n)||!uh(a)}function ja(e){return Zh(e)||a2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function a2(e){return Ax(e.x)||Ax(e.y)}function Ax(e){return e&&e!=="0%"}function Vu(e,n,a){const s=e-a,o=n*s;return a+o}function Nx(e,n,a,s,o){return o!==void 0&&(e=Vu(e,o,s)),Vu(e,a,s)+n}function $h(e,n=0,a=1,s,o){e.min=Nx(e.min,n,a,s,o),e.max=Nx(e.max,n,a,s,o)}function i2(e,{x:n,y:a}){$h(e.x,n.translate,n.scale,n.originPoint),$h(e.y,a.translate,a.scale,a.originPoint)}const _x=.999999999999,kx=1.0000000000001;function P6(e,n,a,s=!1){const o=a.length;if(!o)return;n.x=n.y=1;let u,c;for(let f=0;f<o;f++){u=a[f],c=u.projectionDelta;const{visualElement:h}=u.options;h&&h.props.style&&h.props.style.display==="contents"||(s&&u.options.layoutScroll&&u.scroll&&u!==u.root&&ki(e,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),c&&(n.x*=c.x.scale,n.y*=c.y.scale,i2(e,c)),s&&ja(u.latestValues)&&ki(e,u.latestValues))}n.x<kx&&n.x>_x&&(n.x=1),n.y<kx&&n.y>_x&&(n.y=1)}function _i(e,n){e.min=e.min+n,e.max=e.max+n}function Ox(e,n,a,s,o=.5){const u=dt(e.min,e.max,o);$h(e,n,a,u,s)}function ki(e,n){Ox(e.x,n.x,n.scaleX,n.scale,n.originX),Ox(e.y,n.y,n.scaleY,n.scale,n.originY)}function s2(e,n){return r2(L6(e.getBoundingClientRect(),n))}function z6(e,n,a){const s=s2(e,a),{scroll:o}=n;return o&&(_i(s.x,o.offset.x),_i(s.y,o.offset.y)),s}const Rx=()=>({translate:0,scale:1,origin:0,originPoint:0}),Oi=()=>({x:Rx(),y:Rx()}),Cx=()=>({min:0,max:0}),bt=()=>({x:Cx(),y:Cx()}),Qh={current:null},o2={current:!1};function U6(){if(o2.current=!0,!!wm)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),n=()=>Qh.current=e.matches;e.addEventListener("change",n),n()}else Qh.current=!1}const B6=new WeakMap;function F6(e,n,a){for(const s in n){const o=n[s],u=a[s];if(Vt(o))e.addValue(s,o);else if(Vt(u))e.addValue(s,Ui(o,{owner:e}));else if(u!==o)if(e.hasValue(s)){const c=e.getValue(s);c.liveStyle===!0?c.jump(o):c.hasAnimated||c.set(o)}else{const c=e.getStaticValue(s);e.addValue(s,Ui(c!==void 0?c:o,{owner:e}))}}for(const s in a)n[s]===void 0&&e.removeValue(s);return n}const Dx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class V6{scrapeMotionValuesFromProps(n,a,s){return{}}constructor({parent:n,props:a,presenceContext:s,reducedMotionConfig:o,blockInitialAnimation:u,visualState:c},f={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Bm,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=en.now();this.renderScheduledAt<b&&(this.renderScheduledAt=b,ot.render(this.render,!1,!0))};const{latestValues:h,renderState:p}=c;this.latestValues=h,this.baseTarget={...h},this.initialValues=a.initial?{...h}:{},this.renderState=p,this.parent=n,this.props=a,this.presenceContext=s,this.depth=n?n.depth+1:0,this.reducedMotionConfig=o,this.options=f,this.blockInitialAnimation=!!u,this.isControllingVariants=dc(a),this.isVariantNode=Yw(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:g,...v}=this.scrapeMotionValuesFromProps(a,{},this);for(const b in v){const j=v[b];h[b]!==void 0&&Vt(j)&&j.set(h[b])}}mount(n){this.current=n,B6.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)),o2.current||U6(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Qh.current,this.parent?.addChild(this),this.update(this.props,this.presenceContext)}unmount(){this.projection&&this.projection.unmount(),$r(this.notifyUpdate),$r(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=Xi.has(n);s&&this.onBindTransform&&this.onBindTransform();const o=a.on("change",c=>{this.latestValues[n]=c,this.props.onUpdate&&ot.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let u;window.MotionCheckAppearSync&&(u=window.MotionCheckAppearSync(this,n,a)),this.valueSubscriptions.set(n,()=>{o(),u&&u(),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 Bi){const a=Bi[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 u=this.features[n];u.isMounted?u.update():(u.mount(),u.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):bt()}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<Dx.length;s++){const o=Dx[s];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const u="on"+o,c=n[u];c&&(this.propEventSubscriptions[o]=this.on(o,c))}this.prevMotionValues=F6(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=Ui(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"&&(ew(s)||nw(s))?s=parseFloat(s):!e6(s)&&Qr.test(a)&&(s=zw(n,a)),this.setBaseTarget(n,Vt(s)?s.get():s)),Vt(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 u=Xm(this.props,a,this.presenceContext?.custom);u&&(s=u[n])}if(a&&s!==void 0)return s;const o=this.getBaseTargetFromProps(this.props,n);return o!==void 0&&!Vt(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 Nm),this.events[n].add(a)}notify(n,...a){this.events[n]&&this.events[n].notify(...a)}scheduleRenderMicrotask(){Hm.render(this.render)}}class l2 extends V6{constructor(){super(...arguments),this.KeyframeResolver=VO}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;Vt(n)&&(this.childSubscription=n.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}function u2(e,{style:n,vars:a},s,o){const u=e.style;let c;for(c in n)u[c]=n[c];o?.applyProjectionStyles(u,s);for(c in a)u.setProperty(c,a[c])}function H6(e){return window.getComputedStyle(e)}class I6 extends l2{constructor(){super(...arguments),this.type="html",this.renderInstance=u2}readValueFromInstance(n,a){if(Xi.has(a))return this.projection?.isProjecting?Ih(a):sO(n,a);{const s=H6(n),o=(Om(a)?s.getPropertyValue(a):s[a])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(n,{transformPagePoint:a}){return s2(n,a)}build(n,a,s){Ym(n,a,s.transformTemplate)}scrapeMotionValuesFromProps(n,a,s){return Zm(n,a,s)}}const c2=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 q6(e,n,a,s){u2(e,n,void 0,s);for(const o in n.attrs)e.setAttribute(c2.has(o)?o:$m(o),n.attrs[o])}class G6 extends l2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=bt}getBaseTargetFromProps(n,a){return n[a]}readValueFromInstance(n,a){if(Xi.has(a)){const s=Pw(a);return s&&s.default||0}return a=c2.has(a)?a:$m(a),n.getAttribute(a)}scrapeMotionValuesFromProps(n,a,s){return Jw(n,a,s)}build(n,a,s){Xw(n,a,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(n,a,s,o){q6(n,a,s,o)}mount(n){this.isSVGTag=$w(n.tagName),super.mount(n)}}const Y6=(e,n)=>Wm(e)?new G6(n):new I6(n,{allowProjection:e!==K.Fragment});function Li(e,n,a){const s=e.getProps();return Xm(s,n,a!==void 0?a:s.custom,e)}const Jh=e=>Array.isArray(e);function K6(e,n,a){e.hasValue(n)?e.getValue(n).set(a):e.addValue(n,Ui(a))}function W6(e){return Jh(e)?e[e.length-1]||0:e}function X6(e,n){const a=Li(e,n);let{transitionEnd:s={},transition:o={},...u}=a||{};u={...u,...s};for(const c in u){const f=W6(u[c]);K6(e,c,f)}}function Z6(e){return!!(Vt(e)&&e.add)}function em(e,n){const a=e.getValue("willChange");if(Z6(a))return a.add(n);if(!a&&wr.WillChange){const s=new wr.WillChange("auto");e.addValue("willChange",s),s.add(n)}}function d2(e){return e.props[e2]}const $6=e=>e!==null;function Q6(e,{repeat:n,repeatType:a="loop"},s){const o=e.filter($6),u=n&&a!=="loop"&&n%2===1?0:o.length-1;return o[u]}const J6={type:"spring",stiffness:500,damping:25,restSpeed:10},eR=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),tR={type:"keyframes",duration:.8},nR={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},rR=(e,{keyframes:n})=>n.length>2?tR:Xi.has(e)?e.startsWith("scale")?eR(n[1]):J6:nR;function aR({when:e,delay:n,delayChildren:a,staggerChildren:s,staggerDirection:o,repeat:u,repeatType:c,repeatDelay:f,from:h,elapsed:p,...g}){return!!Object.keys(g).length}const Qm=(e,n,a,s={},o,u)=>c=>{const f=Fm(s,e)||{},h=f.delay||s.delay||0;let{elapsed:p=0}=s;p=p-Wn(h);const g={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:n.getVelocity(),...f,delay:-p,onUpdate:b=>{n.set(b),f.onUpdate&&f.onUpdate(b)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:e,motionValue:n,element:u?void 0:o};aR(f)||Object.assign(g,rR(e,g)),g.duration&&(g.duration=Wn(g.duration)),g.repeatDelay&&(g.repeatDelay=Wn(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let v=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Wh(g),g.delay===0&&(v=!0)),(wr.instantAnimations||wr.skipAnimations)&&(v=!0,Wh(g),g.delay=0),g.allowFlatten=!f.type&&!f.ease,v&&!u&&n.get()!==void 0){const b=Q6(g.keyframes,f);if(b!==void 0){ot.update(()=>{g.onUpdate(b),g.onComplete()});return}}return f.isSync?new Um(g):new kO(g)};function iR({protectedKeys:e,needsAnimating:n},a){const s=e.hasOwnProperty(a)&&n[a]!==!0;return n[a]=!1,s}function f2(e,n,{delay:a=0,transitionOverride:s,type:o}={}){let{transition:u=e.getDefaultTransition(),transitionEnd:c,...f}=n;s&&(u=s);const h=[],p=o&&e.animationState&&e.animationState.getState()[o];for(const g in f){const v=e.getValue(g,e.latestValues[g]??null),b=f[g];if(b===void 0||p&&iR(p,g))continue;const j={delay:a,...Fm(u||{},g)},_=v.get();if(_!==void 0&&!v.isAnimating&&!Array.isArray(b)&&b===_&&!j.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const A=d2(e);if(A){const M=window.MotionHandoffAnimation(A,g,ot);M!==null&&(j.startTime=M,S=!0)}}em(e,g),v.start(Qm(g,v,b,e.shouldReduceMotion&&Dw.has(g)?{type:!1}:j,e,S));const N=v.animation;N&&h.push(N)}return c&&Promise.all(h).then(()=>{ot.update(()=>{c&&X6(e,c)})}),h}function h2(e,n,a,s=0,o=1){const u=Array.from(e).sort((p,g)=>p.sortNodePosition(g)).indexOf(n),c=e.size,f=(c-1)*s;return typeof a=="function"?a(u,c):o===1?u*s:f-u*s}function tm(e,n,a={}){const s=Li(e,n,a.type==="exit"?e.presenceContext?.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=s||{};a.transitionOverride&&(o=a.transitionOverride);const u=s?()=>Promise.all(f2(e,s,a)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:v}=o;return sR(e,n,h,p,g,v,a)}:()=>Promise.resolve(),{when:f}=o;if(f){const[h,p]=f==="beforeChildren"?[u,c]:[c,u];return h().then(()=>p())}else return Promise.all([u(),c(a.delay)])}function sR(e,n,a=0,s=0,o=0,u=1,c){const f=[];for(const h of e.variantChildren)h.notify("AnimationStart",n),f.push(tm(h,n,{...c,delay:a+(typeof s=="function"?0:s)+h2(e.variantChildren,h,s,o,u)}).then(()=>h.notify("AnimationComplete",n)));return Promise.all(f)}function oR(e,n,a={}){e.notify("AnimationStart",n);let s;if(Array.isArray(n)){const o=n.map(u=>tm(e,u,a));s=Promise.all(o)}else if(typeof n=="string")s=tm(e,n,a);else{const o=typeof n=="function"?Li(e,n,a.custom):n;s=Promise.all(f2(e,o,a))}return s.then(()=>{e.notify("AnimationComplete",n)})}function m2(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 lR=Gm.length;function p2(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?p2(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const n={};for(let a=0;a<lR;a++){const s=Gm[a],o=e.props[s];(wo(o)||o===!1)&&(n[s]=o)}return n}const uR=[...qm].reverse(),cR=qm.length;function dR(e){return n=>Promise.all(n.map(({animation:a,options:s})=>oR(e,a,s)))}function fR(e){let n=dR(e),a=Mx(),s=!0;const o=h=>(p,g)=>{const v=Li(e,g,h==="exit"?e.presenceContext?.custom:void 0);if(v){const{transition:b,transitionEnd:j,..._}=v;p={...p,..._,...j}}return p};function u(h){n=h(e)}function c(h){const{props:p}=e,g=p2(e.parent)||{},v=[],b=new Set;let j={},_=1/0;for(let N=0;N<cR;N++){const A=uR[N],M=a[A],L=p[A]!==void 0?p[A]:g[A],G=wo(L),T=A===h?M.isActive:null;T===!1&&(_=N);let P=L===g[A]&&L!==p[A]&&G;if(P&&s&&e.manuallyAnimateOnMount&&(P=!1),M.protectedKeys={...j},!M.isActive&&T===null||!L&&!M.prevProp||cc(L)||typeof L=="boolean")continue;const z=hR(M.prevProp,L);let B=z||A===h&&M.isActive&&!P&&G||N>_&&G,D=!1;const R=Array.isArray(L)?L:[L];let X=R.reduce(o(A),{});T===!1&&(X={});const{prevResolvedValues:U={}}=M,I={...U,...X},E=w=>{B=!0,b.has(w)&&(D=!0,b.delete(w)),M.needsAnimating[w]=!0;const ce=e.getValue(w);ce&&(ce.liveStyle=!1)};for(const w in I){const ce=X[w],H=U[w];if(j.hasOwnProperty(w))continue;let x=!1;Jh(ce)&&Jh(H)?x=!m2(ce,H):x=ce!==H,x?ce!=null?E(w):b.add(w):ce!==void 0&&b.has(w)?E(w):M.protectedKeys[w]=!0}M.prevProp=L,M.prevResolvedValues=X,M.isActive&&(j={...j,...X}),s&&e.blockInitialAnimation&&(B=!1);const $=P&&z;B&&(!$||D)&&v.push(...R.map(w=>{const ce={type:A};if(typeof w=="string"&&s&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:H}=e,x=Li(H,w);if(H.enteringChildren&&x){const{delayChildren:O}=x.transition||{};ce.delay=h2(H.enteringChildren,e,O)}}return{animation:w,options:ce}}))}if(b.size){const N={};if(typeof p.initial!="boolean"){const A=Li(e,Array.isArray(p.initial)?p.initial[0]:p.initial);A&&A.transition&&(N.transition=A.transition)}b.forEach(A=>{const M=e.getBaseTarget(A),L=e.getValue(A);L&&(L.liveStyle=!0),N[A]=M??null}),v.push({animation:N})}let S=!!v.length;return s&&(p.initial===!1||p.initial===p.animate)&&!e.manuallyAnimateOnMount&&(S=!1),s=!1,S?n(v):Promise.resolve()}function f(h,p){if(a[h].isActive===p)return Promise.resolve();e.variantChildren?.forEach(v=>v.animationState?.setActive(h,p)),a[h].isActive=p;const g=c(h);for(const v in a)a[v].protectedKeys={};return g}return{animateChanges:c,setActive:f,setAnimateFunction:u,getState:()=>a,reset:()=>{a=Mx(),s=!0}}}function hR(e,n){return typeof n=="string"?n!==e:Array.isArray(n)?!m2(n,e):!1}function wa(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Mx(){return{animate:wa(!0),whileInView:wa(),whileHover:wa(),whileTap:wa(),whileDrag:wa(),whileFocus:wa(),exit:wa()}}class na{constructor(n){this.isMounted=!1,this.node=n}update(){}}class mR extends na{constructor(n){super(n),n.animationState||(n.animationState=fR(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();cc(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 pR=0;class gR extends na{constructor(){super(...arguments),this.id=pR++}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 yR={animation:{Feature:mR},exit:{Feature:gR}};function jo(e,n,a,s={passive:!0}){return e.addEventListener(n,a,s),()=>e.removeEventListener(n,a)}function Po(e){return{point:{x:e.pageX,y:e.pageY}}}const vR=e=>n=>Im(n)&&e(n,Po(n));function lo(e,n,a,s){return jo(e,n,vR(a),s)}const g2=1e-4,xR=1-g2,bR=1+g2,y2=.01,wR=0-y2,SR=0+y2;function qt(e){return e.max-e.min}function jR(e,n,a){return Math.abs(e-n)<=a}function Lx(e,n,a,s=.5){e.origin=s,e.originPoint=dt(n.min,n.max,e.origin),e.scale=qt(a)/qt(n),e.translate=dt(a.min,a.max,e.origin)-e.originPoint,(e.scale>=xR&&e.scale<=bR||isNaN(e.scale))&&(e.scale=1),(e.translate>=wR&&e.translate<=SR||isNaN(e.translate))&&(e.translate=0)}function uo(e,n,a,s){Lx(e.x,n.x,a.x,s?s.originX:void 0),Lx(e.y,n.y,a.y,s?s.originY:void 0)}function Px(e,n,a){e.min=a.min+n.min,e.max=e.min+qt(n)}function TR(e,n,a){Px(e.x,n.x,a.x),Px(e.y,n.y,a.y)}function zx(e,n,a){e.min=n.min-a.min,e.max=e.min+qt(n)}function co(e,n,a){zx(e.x,n.x,a.x),zx(e.y,n.y,a.y)}function An(e){return[e("x"),e("y")]}const v2=({current:e})=>e?e.ownerDocument.defaultView:null,Ux=(e,n)=>Math.abs(e-n);function ER(e,n){const a=Ux(e.x,n.x),s=Ux(e.y,n.y);return Math.sqrt(a**2+s**2)}class x2{constructor(n,a,{transformPagePoint:s,contextWindow:o=window,dragSnapToOrigin:u=!1,distanceThreshold:c=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=dh(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,_=ER(b.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!_)return;const{point:S}=b,{timestamp:N}=Lt;this.history.push({...S,timestamp:N});const{onStart:A,onMove:M}=this.handlers;j||(A&&A(this.lastMoveEvent,b),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,b)},this.handlePointerMove=(b,j)=>{this.lastMoveEvent=b,this.lastMoveEventInfo=ch(j,this.transformPagePoint),ot.update(this.updatePoint,!0)},this.handlePointerUp=(b,j)=>{this.end();const{onEnd:_,onSessionEnd:S,resumeAnimation:N}=this.handlers;if(this.dragSnapToOrigin&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const A=dh(b.type==="pointercancel"?this.lastMoveEventInfo:ch(j,this.transformPagePoint),this.history);this.startEvent&&_&&_(b,A),S&&S(b,A)},!Im(n))return;this.dragSnapToOrigin=u,this.handlers=a,this.transformPagePoint=s,this.distanceThreshold=c,this.contextWindow=o||window;const f=Po(n),h=ch(f,this.transformPagePoint),{point:p}=h,{timestamp:g}=Lt;this.history=[{...p,timestamp:g}];const{onSessionStart:v}=a;v&&v(n,dh(h,this.history)),this.removeListeners=Do(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(),$r(this.updatePoint)}}function ch(e,n){return n?{point:n(e.point)}:e}function Bx(e,n){return{x:e.x-n.x,y:e.y-n.y}}function dh({point:e},n){return{point:e,delta:Bx(e,b2(n)),offset:Bx(e,AR(n)),velocity:NR(n,.1)}}function AR(e){return e[0]}function b2(e){return e[e.length-1]}function NR(e,n){if(e.length<2)return{x:0,y:0};let a=e.length-1,s=null;const o=b2(e);for(;a>=0&&(s=e[a],!(o.timestamp-s.timestamp>Wn(n)));)a--;if(!s)return{x:0,y:0};const u=Xn(o.timestamp-s.timestamp);if(u===0)return{x:0,y:0};const c={x:(o.x-s.x)/u,y:(o.y-s.y)/u};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function _R(e,{min:n,max:a},s){return n!==void 0&&e<n?e=s?dt(n,e,s.min):Math.max(e,n):a!==void 0&&e>a&&(e=s?dt(a,e,s.max):Math.min(e,a)),e}function Fx(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 kR(e,{top:n,left:a,bottom:s,right:o}){return{x:Fx(e.x,a,o),y:Fx(e.y,n,s)}}function Vx(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 OR(e,n){return{x:Vx(e.x,n.x),y:Vx(e.y,n.y)}}function RR(e,n){let a=.5;const s=qt(e),o=qt(n);return o>s?a=vo(n.min,n.max-s,e.min):s>o&&(a=vo(e.min,e.max-o,n.min)),br(0,1,a)}function CR(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 nm=.35;function DR(e=nm){return e===!1?e=0:e===!0&&(e=nm),{x:Hx(e,"left","right"),y:Hx(e,"top","bottom")}}function Hx(e,n,a){return{min:Ix(e,n),max:Ix(e,a)}}function Ix(e,n){return typeof e=="number"?e:e[n]||0}const MR=new WeakMap;class LR{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=bt(),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 u=v=>{const{dragSnapToOrigin:b}=this.getProps();b?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(Po(v).point)},c=(v,b)=>{const{drag:j,dragPropagation:_,onDragStart:S}=this.getProps();if(j&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=YO(j),!this.openDragLock))return;this.latestPointerEvent=v,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),An(A=>{let M=this.getAxisMotionValue(A).get()||0;if(Zn.test(M)){const{projection:L}=this.visualElement;if(L&&L.layout){const G=L.layout.layoutBox[A];G&&(M=qt(G)*(parseFloat(M)/100))}}this.originPoint[A]=M}),S&&ot.postRender(()=>S(v,b)),em(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},f=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b;const{dragPropagation:j,dragDirectionLock:_,onDirectionLock:S,onDrag:N}=this.getProps();if(!j&&!this.openDragLock)return;const{offset:A}=b;if(_&&this.currentDirection===null){this.currentDirection=PR(A),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",b.point,A),this.updateAxis("y",b.point,A),this.visualElement.render(),N&&N(v,b)},h=(v,b)=>{this.latestPointerEvent=v,this.latestPanInfo=b,this.stop(v,b),this.latestPointerEvent=null,this.latestPanInfo=null},p=()=>An(v=>this.getAnimationState(v)==="paused"&&this.getAxisMotionValue(v).animation?.play()),{dragSnapToOrigin:g}=this.getProps();this.panSession=new x2(n,{onSessionStart:u,onStart:c,onMove:f,onSessionEnd:h,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:s,contextWindow:v2(this.visualElement)})}stop(n,a){const s=n||this.latestPointerEvent,o=a||this.latestPanInfo,u=this.isDragging;if(this.cancel(),!u||!o||!s)return;const{velocity:c}=o;this.startAnimation(c);const{onDragEnd:f}=this.getProps();f&&ot.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||!au(n,o,this.currentDirection))return;const u=this.getAxisMotionValue(n);let c=this.originPoint[n]+s[n];this.constraints&&this.constraints[n]&&(c=_R(c,this.constraints[n],this.elastic[n])),u.set(c)}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&&Ni(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=kR(s.layoutBox,n):this.constraints=!1,this.elastic=DR(a),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&An(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=CR(s.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:a}=this.getProps();if(!n||!Ni(n))return!1;const s=n.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const u=z6(s,o.root,this.visualElement.getTransformPagePoint());let c=OR(o.layout.layoutBox,u);if(a){const f=a(M6(c));this.hasMutatedConstraints=!!f,f&&(c=r2(f))}return c}startAnimation(n){const{drag:a,dragMomentum:s,dragElastic:o,dragTransition:u,dragSnapToOrigin:c,onDragTransitionEnd:f}=this.getProps(),h=this.constraints||{},p=An(g=>{if(!au(g,a,this.currentDirection))return;let v=h&&h[g]||{};c&&(v={min:0,max:0});const b=o?200:1e6,j=o?40:1e7,_={type:"inertia",velocity:s?n[g]:0,bounceStiffness:b,bounceDamping:j,timeConstant:750,restDelta:1,restSpeed:10,...u,...v};return this.startAxisValueAnimation(g,_)});return Promise.all(p).then(f)}startAxisValueAnimation(n,a){const s=this.getAxisMotionValue(n);return em(this.visualElement,n),s.start(Qm(n,s,0,a,this.visualElement,!1))}stopAnimation(){An(n=>this.getAxisMotionValue(n).stop())}pauseAnimation(){An(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){An(a=>{const{drag:s}=this.getProps();if(!au(a,s,this.currentDirection))return;const{projection:o}=this.visualElement,u=this.getAxisMotionValue(a);if(o&&o.layout){const{min:c,max:f}=o.layout.layoutBox[a];u.set(n[a]-dt(c,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:a}=this.getProps(),{projection:s}=this.visualElement;if(!Ni(a)||!s||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};An(c=>{const f=this.getAxisMotionValue(c);if(f&&this.constraints!==!1){const h=f.get();o[c]=RR({min:h,max:h},this.constraints[c])}});const{transformTemplate:u}=this.visualElement.getProps();this.visualElement.current.style.transform=u?u({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),An(c=>{if(!au(c,n,null))return;const f=this.getAxisMotionValue(c),{min:h,max:p}=this.constraints[c];f.set(dt(h,p,o[c]))})}addListeners(){if(!this.visualElement.current)return;MR.set(this.visualElement,this);const n=this.visualElement.current,a=lo(n,"pointerdown",h=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&this.start(h)}),s=()=>{const{dragConstraints:h}=this.getProps();Ni(h)&&h.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,u=o.addEventListener("measure",s);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),ot.read(s);const c=jo(window,"resize",()=>this.scalePositionWithinConstraints()),f=o.addEventListener("didUpdate",({delta:h,hasLayoutChanged:p})=>{this.isDragging&&p&&(An(g=>{const v=this.getAxisMotionValue(g);v&&(this.originPoint[g]+=h[g].translate,v.set(v.get()+h[g].translate))}),this.visualElement.render())});return()=>{c(),a(),u(),f&&f()}}getProps(){const n=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:s=!1,dragPropagation:o=!1,dragConstraints:u=!1,dragElastic:c=nm,dragMomentum:f=!0}=n;return{...n,drag:a,dragDirectionLock:s,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:f}}}function au(e,n,a){return(n===!0||n===e)&&(a===null||a===e)}function PR(e,n=10){let a=null;return Math.abs(e.y)>n?a="y":Math.abs(e.x)>n&&(a="x"),a}class zR extends na{constructor(n){super(n),this.removeGroupControls=_n,this.removeListeners=_n,this.controls=new LR(n)}mount(){const{dragControls:n}=this.node.getProps();n&&(this.removeGroupControls=n.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_n}unmount(){this.removeGroupControls(),this.removeListeners()}}const qx=e=>(n,a)=>{e&&ot.postRender(()=>e(n,a))};class UR extends na{constructor(){super(...arguments),this.removePointerDownListener=_n}onPointerDown(n){this.session=new x2(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:v2(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:a,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:qx(n),onStart:qx(a),onMove:s,onEnd:(u,c)=>{delete this.session,o&&ot.postRender(()=>o(u,c))}}}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 ju={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Gx(e,n){return n.max===n.min?0:e/(n.max-n.min)*100}const Js={correct:(e,n)=>{if(!n.target)return e;if(typeof e=="string")if(Ue.test(e))e=parseFloat(e);else return e;const a=Gx(e,n.target.x),s=Gx(e,n.target.y);return`${a}% ${s}%`}},BR={correct:(e,{treeScale:n,projectionDelta:a})=>{const s=e,o=Qr.parse(e);if(o.length>5)return s;const u=Qr.createTransformer(e),c=typeof o[0]!="number"?1:0,f=a.x.scale*n.x,h=a.y.scale*n.y;o[0+c]/=f,o[1+c]/=h;const p=dt(f,h,.5);return typeof o[2+c]=="number"&&(o[2+c]/=p),typeof o[3+c]=="number"&&(o[3+c]/=p),u(o)}};let fh=!1;class FR extends K.Component{componentDidMount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:s,layoutId:o}=this.props,{projection:u}=n;l6(VR),u&&(a.group&&a.group.add(u),s&&s.register&&o&&s.register(u),fh&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),ju.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:a,visualElement:s,drag:o,isPresent:u}=this.props,{projection:c}=s;return c&&(c.isPresent=u,fh=!0,o||n.layoutDependency!==a||a===void 0||n.isPresent!==u?c.willUpdate():this.safeToRemove(),n.isPresent!==u&&(u?c.promote():c.relegate()||ot.postRender(()=>{const f=c.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),Hm.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:s}=this.props,{projection:o}=n;fh=!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 w2(e){const[n,a]=t6(),s=K.useContext(J1);return d.jsx(FR,{...e,layoutGroup:s,switchLayoutGroup:K.useContext(t2),isPresent:n,safeToRemove:a})}const VR={borderRadius:{...Js,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Js,borderTopRightRadius:Js,borderBottomLeftRadius:Js,borderBottomRightRadius:Js,boxShadow:BR};function HR(e,n,a){const s=Vt(e)?e:Ui(e);return s.start(Qm("",s,n,a)),s.animation}const IR=(e,n)=>e.depth-n.depth;class qR{constructor(){this.children=[],this.isDirty=!1}add(n){jm(this.children,n),this.isDirty=!0}remove(n){Tm(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(IR),this.isDirty=!1,this.children.forEach(n)}}function GR(e,n){const a=en.now(),s=({timestamp:o})=>{const u=o-a;u>=n&&($r(s),e(u-n))};return ot.setup(s,!0),()=>$r(s)}const S2=["TopLeft","TopRight","BottomLeft","BottomRight"],YR=S2.length,Yx=e=>typeof e=="string"?parseFloat(e):e,Kx=e=>typeof e=="number"||Ue.test(e);function KR(e,n,a,s,o,u){o?(e.opacity=dt(0,a.opacity??1,WR(s)),e.opacityExit=dt(n.opacity??1,0,XR(s))):u&&(e.opacity=dt(n.opacity??1,a.opacity??1,s));for(let c=0;c<YR;c++){const f=`border${S2[c]}Radius`;let h=Wx(n,f),p=Wx(a,f);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||Kx(h)===Kx(p)?(e[f]=Math.max(dt(Yx(h),Yx(p),s),0),(Zn.test(p)||Zn.test(h))&&(e[f]+="%")):e[f]=p}(n.rotate||a.rotate)&&(e.rotate=dt(n.rotate||0,a.rotate||0,s))}function Wx(e,n){return e[n]!==void 0?e[n]:e.borderRadius}const WR=j2(0,.5,cw),XR=j2(.5,.95,_n);function j2(e,n,a){return s=>s<e?0:s>n?1:a(vo(e,n,s))}function Xx(e,n){e.min=n.min,e.max=n.max}function En(e,n){Xx(e.x,n.x),Xx(e.y,n.y)}function Zx(e,n){e.translate=n.translate,e.scale=n.scale,e.originPoint=n.originPoint,e.origin=n.origin}function $x(e,n,a,s,o){return e-=n,e=Vu(e,1/a,s),o!==void 0&&(e=Vu(e,1/o,s)),e}function ZR(e,n=0,a=1,s=.5,o,u=e,c=e){if(Zn.test(n)&&(n=parseFloat(n),n=dt(c.min,c.max,n/100)-c.min),typeof n!="number")return;let f=dt(u.min,u.max,s);e===u&&(f-=n),e.min=$x(e.min,n,a,f,o),e.max=$x(e.max,n,a,f,o)}function Qx(e,n,[a,s,o],u,c){ZR(e,n[a],n[s],n[o],n.scale,u,c)}const $R=["x","scaleX","originX"],QR=["y","scaleY","originY"];function Jx(e,n,a,s){Qx(e.x,n,$R,a?a.x:void 0,s?s.x:void 0),Qx(e.y,n,QR,a?a.y:void 0,s?s.y:void 0)}function eb(e){return e.translate===0&&e.scale===1}function T2(e){return eb(e.x)&&eb(e.y)}function tb(e,n){return e.min===n.min&&e.max===n.max}function JR(e,n){return tb(e.x,n.x)&&tb(e.y,n.y)}function nb(e,n){return Math.round(e.min)===Math.round(n.min)&&Math.round(e.max)===Math.round(n.max)}function E2(e,n){return nb(e.x,n.x)&&nb(e.y,n.y)}function rb(e){return qt(e.x)/qt(e.y)}function ab(e,n){return e.translate===n.translate&&e.scale===n.scale&&e.originPoint===n.originPoint}class eC{constructor(){this.members=[]}add(n){jm(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 u=this.members[o];if(u.isPresent!==!1){s=u;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 tC(e,n,a){let s="";const o=e.x.translate/n.x,u=e.y.translate/n.y,c=a?.z||0;if((o||u||c)&&(s=`translate3d(${o}px, ${u}px, ${c}px) `),(n.x!==1||n.y!==1)&&(s+=`scale(${1/n.x}, ${1/n.y}) `),a){const{transformPerspective:p,rotate:g,rotateX:v,rotateY:b,skewX:j,skewY:_}=a;p&&(s=`perspective(${p}px) ${s}`),g&&(s+=`rotate(${g}deg) `),v&&(s+=`rotateX(${v}deg) `),b&&(s+=`rotateY(${b}deg) `),j&&(s+=`skewX(${j}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 hh=["","X","Y","Z"],nC=1e3;let rC=0;function mh(e,n,a,s){const{latestValues:o}=n;o[e]&&(a[e]=o[e],n.setStaticValue(e,0),s&&(s[e]=0))}function A2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:n}=e.options;if(!n)return;const a=d2(n);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:o,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",ot,!(o||u))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&A2(s)}function N2({attachResizeListener:e,defaultParent:n,measureScroll:a,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(c={},f=n?.()){this.id=rC++,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(sC),this.nodes.forEach(cC),this.nodes.forEach(dC),this.nodes.forEach(oC)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,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 qR)}addEventListener(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Nm),this.eventHandlers.get(c).add(f)}notifyListeners(c,...f){const h=this.eventHandlers.get(c);h&&h.notify(...f)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=Hw(c)&&!QO(c),this.instance=c;const{layoutId:f,layout:h,visualElement:p}=this.options;if(p&&!p.current&&p.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(h||f)&&(this.isLayoutDirty=!0),e){let g,v=0;const b=()=>this.root.updateBlockedByResize=!1;ot.read(()=>{v=window.innerWidth}),e(c,()=>{const j=window.innerWidth;j!==v&&(v=j,this.root.updateBlockedByResize=!0,g&&g(),g=GR(b,250),ju.hasAnimatedSinceResize&&(ju.hasAnimatedSinceResize=!1,this.nodes.forEach(ob)))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&p&&(f||h)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeLayoutChanged:b,layout:j})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const _=this.options.transition||p.getDefaultTransition()||gC,{onLayoutAnimationStart:S,onLayoutAnimationComplete:N}=p.getProps(),A=!this.targetLayout||!E2(this.targetLayout,j),M=!v&&b;if(this.options.layoutRoot||this.resumeFrom||M||v&&(A||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const L={...Fm(_,"layout"),onPlay:S,onComplete:N};(p.shouldReduceMotion||this.options.layoutRoot)&&(L.delay=0,L.type=!1),this.startAnimation(L),this.setAnimationOrigin(g,M)}else v||ob(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=j})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),$r(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(fC),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&A2(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let g=0;g<this.path.length;g++){const v=this.path[g];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:f,layout:h}=this.options;if(f===void 0&&!h)return;const p=this.getTransformTemplate();this.prevTransformTemplateValue=p?p(this.latestValues,""):void 0,this.updateSnapshot(),c&&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(sb);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(uC),this.nodes.forEach(aC),this.nodes.forEach(iC)):this.nodes.forEach(sb),this.clearAllSnapshots();const f=en.now();Lt.delta=br(0,1e3/60,f-Lt.timestamp),Lt.timestamp=f,Lt.isProcessing=!0,nh.update.process(Lt),nh.preRender.process(Lt),nh.render.process(Lt),Lt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(lC),this.sharedNodes.forEach(hC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ot.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ot.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!qt(this.snapshot.measuredBox.x)&&!qt(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 c=this.layout;this.layout=this.measure(!1),this.layoutCorrected=bt(),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,c?c.layoutBox:void 0)}updateScroll(c="measure"){let f=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(f=!1),f&&this.instance){const h=s(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:h,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:h}}}resetTransform(){if(!o)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,f=this.projectionDelta&&!T2(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;c&&this.instance&&(f||ja(this.latestValues)||g)&&(o(this.instance,p),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const f=this.measurePageBox();let h=this.removeElementScroll(f);return c&&(h=this.removeTransform(h)),yC(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return bt();const f=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(vC))){const{scroll:p}=this.root;p&&(_i(f.x,p.offset.x),_i(f.y,p.offset.y))}return f}removeElementScroll(c){const f=bt();if(En(f,c),this.scroll?.wasRoot)return f;for(let h=0;h<this.path.length;h++){const p=this.path[h],{scroll:g,options:v}=p;p!==this.root&&g&&v.layoutScroll&&(g.wasRoot&&En(f,c),_i(f.x,g.offset.x),_i(f.y,g.offset.y))}return f}applyTransform(c,f=!1){const h=bt();En(h,c);for(let p=0;p<this.path.length;p++){const g=this.path[p];!f&&g.options.layoutScroll&&g.scroll&&g!==g.root&&ki(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),ja(g.latestValues)&&ki(h,g.latestValues)}return ja(this.latestValues)&&ki(h,this.latestValues),h}removeTransform(c){const f=bt();En(f,c);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!p.instance||!ja(p.latestValues))continue;Zh(p.latestValues)&&p.updateSnapshot();const g=bt(),v=p.measurePageBox();En(g,v),Jx(f,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return ja(this.latestValues)&&Jx(f,this.latestValues),f}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.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!==Lt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!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(!(c||h&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:g,layoutId:v}=this.options;if(!(!this.layout||!(g||v))){if(this.resolvedRelativeTargetAt=Lt.timestamp,!this.targetDelta&&!this.relativeTarget){const b=this.getClosestProjectingParent();b&&b.layout&&this.animationProgress!==1?(this.relativeParent=b,this.forceRelativeParentToResolveTarget(),this.relativeTarget=bt(),this.relativeTargetOrigin=bt(),co(this.relativeTargetOrigin,this.layout.layoutBox,b.layout.layoutBox),En(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=bt(),this.targetWithTransforms=bt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),TR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):En(this.target,this.layout.layoutBox),i2(this.target,this.targetDelta)):En(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=bt(),this.relativeTargetOrigin=bt(),co(this.relativeTargetOrigin,this.target,b.target),En(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Zh(this.parent.latestValues)||a2(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 c=this.getLead(),f=!!this.resumingFrom||this!==c;let h=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(h=!1),f&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(h=!1),this.resolvedRelativeTargetAt===Lt.timestamp&&(h=!1),h)return;const{layout:p,layoutId:g}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(p||g))return;En(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,b=this.treeScale.y;P6(this.layoutCorrected,this.treeScale,this.path,f),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=bt());const{target:j}=c;if(!j){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Zx(this.prevProjectionDelta.x,this.projectionDelta.x),Zx(this.prevProjectionDelta.y,this.projectionDelta.y)),uo(this.projectionDelta,this.layoutCorrected,j,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==b||!ab(this.projectionDelta.x,this.prevProjectionDelta.x)||!ab(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",j))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){if(this.options.visualElement?.scheduleRender(),c){const f=this.getStack();f&&f.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Oi(),this.projectionDelta=Oi(),this.projectionDeltaWithTransform=Oi()}setAnimationOrigin(c,f=!1){const h=this.snapshot,p=h?h.latestValues:{},g={...this.latestValues},v=Oi();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const b=bt(),j=h?h.source:void 0,_=this.layout?this.layout.source:void 0,S=j!==_,N=this.getStack(),A=!N||N.members.length<=1,M=!!(S&&!A&&this.options.crossfade===!0&&!this.path.some(pC));this.animationProgress=0;let L;this.mixTargetDelta=G=>{const T=G/1e3;lb(v.x,c.x,T),lb(v.y,c.y,T),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(co(b,this.layout.layoutBox,this.relativeParent.layout.layoutBox),mC(this.relativeTarget,this.relativeTargetOrigin,b,T),L&&JR(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=bt()),En(L,this.relativeTarget)),S&&(this.animationValues=g,KR(g,p,this.latestValues,T,M,A)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=T},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&($r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ot.update(()=>{ju.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Ui(0)),this.currentAnimation=HR(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:f=>{this.mixTargetDelta(f),c.onUpdate&&c.onUpdate(f)},onStop:()=>{},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nC),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:f,target:h,layout:p,latestValues:g}=c;if(!(!f||!h||!p)){if(this!==c&&this.layout&&p&&_2(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||bt();const v=qt(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+v;const b=qt(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+b}En(f,h),ki(f,g),uo(this.projectionDeltaWithTransform,this.layoutCorrected,f,g)}}registerSharedNode(c,f){this.sharedNodes.has(c)||this.sharedNodes.set(c,new eC),this.sharedNodes.get(c).add(f);const p=f.options.initialPromotionConfig;f.promote({transition:p?p.transition:void 0,preserveFollowOpacity:p&&p.shouldPreserveFollowOpacity?p.shouldPreserveFollowOpacity(f):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){const{layoutId:c}=this.options;return c?this.getStack()?.lead||this:this}getPrevLead(){const{layoutId:c}=this.options;return c?this.getStack()?.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:f,preserveFollowOpacity:h}={}){const p=this.getStack();p&&p.promote(this,h),c&&(this.projectionDelta=void 0,this.needsReset=!0),f&&this.setOptions({transition:f})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let f=!1;const{latestValues:h}=c;if((h.z||h.rotate||h.rotateX||h.rotateY||h.rotateZ||h.skewX||h.skewY)&&(f=!0),!f)return;const p={};h.z&&mh("z",c,p,this.animationValues);for(let g=0;g<hh.length;g++)mh(`rotate${hh[g]}`,c,p,this.animationValues),mh(`skew${hh[g]}`,c,p,this.animationValues);c.render();for(const g in p)c.setStaticValue(g,p[g]),this.animationValues&&(this.animationValues[g]=p[g]);c.scheduleRender()}applyProjectionStyles(c,f){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const h=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=Su(f?.pointerEvents)||"",c.transform=h?h(this.latestValues,""):"none";return}const p=this.getLead();if(!this.projectionDelta||!this.layout||!p.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=Su(f?.pointerEvents)||""),this.hasProjected&&!ja(this.latestValues)&&(c.transform=h?h({},""):"none",this.hasProjected=!1);return}c.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let v=tC(this.projectionDeltaWithTransform,this.treeScale,g);h&&(v=h(g,v)),c.transform=v;const{x:b,y:j}=this.projectionDelta;c.transformOrigin=`${b.origin*100}% ${j.origin*100}% 0`,p.animationValues?c.opacity=p===this?g.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:g.opacityExit:c.opacity=p===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:N,isCSSVariable:A}=So[_],M=v==="none"?g[_]:S(g[_],p);if(N){const L=N.length;for(let G=0;G<L;G++)c[N[G]]=M}else A?this.options.visualElement.renderState.vars[_]=M:c[_]=M}this.options.layoutId&&(c.pointerEvents=p===this?Su(f?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(ib),this.root.sharedNodes.clear()}}}function aC(e){e.updateLayout()}function iC(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,u=n.source!==e.layout.source;o==="size"?An(g=>{const v=u?n.measuredBox[g]:n.layoutBox[g],b=qt(v);v.min=a[g].min,v.max=v.min+b}):_2(o,n.layoutBox,a)&&An(g=>{const v=u?n.measuredBox[g]:n.layoutBox[g],b=qt(a[g]);v.max=v.min+b,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+b)});const c=Oi();uo(c,a,n.layoutBox);const f=Oi();u?uo(f,e.applyTransform(s,!0),n.measuredBox):uo(f,a,n.layoutBox);const h=!T2(c);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:b}=g;if(v&&b){const j=bt();co(j,n.layoutBox,v.layoutBox);const _=bt();co(_,a,b.layoutBox),E2(j,_)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=_,e.relativeTargetOrigin=j,e.relativeParent=g)}}}e.notifyListeners("didUpdate",{layout:a,snapshot:n,delta:f,layoutDelta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:p})}else if(e.isLead()){const{onExitComplete:a}=e.options;a&&a()}e.options.transition=void 0}function sC(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 oC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function lC(e){e.clearSnapshot()}function ib(e){e.clearMeasurements()}function sb(e){e.isLayoutDirty=!1}function uC(e){const{visualElement:n}=e.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),e.resetTransform()}function ob(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function cC(e){e.resolveTargetDelta()}function dC(e){e.calcProjection()}function fC(e){e.resetSkewAndRotation()}function hC(e){e.removeLeadSnapshot()}function lb(e,n,a){e.translate=dt(n.translate,0,a),e.scale=dt(n.scale,1,a),e.origin=n.origin,e.originPoint=n.originPoint}function ub(e,n,a,s){e.min=dt(n.min,a.min,s),e.max=dt(n.max,a.max,s)}function mC(e,n,a,s){ub(e.x,n.x,a.x,s),ub(e.y,n.y,a.y,s)}function pC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const gC={duration:.45,ease:[.4,0,.1,1]},cb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),db=cb("applewebkit/")&&!cb("chrome/")?Math.round:_n;function fb(e){e.min=db(e.min),e.max=db(e.max)}function yC(e){fb(e.x),fb(e.y)}function _2(e,n,a){return e==="position"||e==="preserve-aspect"&&!jR(rb(n),rb(a),.2)}function vC(e){return e!==e.root&&e.scroll?.wasRoot}const xC=N2({attachResizeListener:(e,n)=>jo(e,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),ph={current:void 0},k2=N2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ph.current){const e=new xC({});e.mount(window),e.setOptions({layoutScroll:!0}),ph.current=e}return ph.current},resetTransform:(e,n)=>{e.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),bC={pan:{Feature:UR},drag:{Feature:zR,ProjectionNode:k2,MeasureLayout:w2}};function hb(e,n,a){const{props:s}=e;e.animationState&&s.whileHover&&e.animationState.setActive("whileHover",a==="Start");const o="onHover"+a,u=s[o];u&&ot.postRender(()=>u(n,Po(n)))}class wC extends na{mount(){const{current:n}=this.node;n&&(this.unmount=KO(n,(a,s)=>(hb(this.node,s,"Start"),o=>hb(this.node,o,"End"))))}unmount(){}}class SC extends na{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=Do(jo(this.node.current,"focus",()=>this.onFocus()),jo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function mb(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),u=s[o];u&&ot.postRender(()=>u(n,Po(n)))}class jC extends na{mount(){const{current:n}=this.node;n&&(this.unmount=$O(n,(a,s)=>(mb(this.node,s,"Start"),(o,{success:u})=>mb(this.node,o,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const rm=new WeakMap,gh=new WeakMap,TC=e=>{const n=rm.get(e.target);n&&n(e)},EC=e=>{e.forEach(TC)};function AC({root:e,...n}){const a=e||document;gh.has(a)||gh.set(a,{});const s=gh.get(a),o=JSON.stringify(n);return s[o]||(s[o]=new IntersectionObserver(EC,{root:e,...n})),s[o]}function NC(e,n,a){const s=AC(n);return rm.set(e,a),s.observe(e),()=>{rm.delete(e),s.unobserve(e)}}const _C={some:0,all:1};class kC extends na{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:u}=n,c={root:a?a.current:void 0,rootMargin:s,threshold:typeof o=="number"?o:_C[o]},f=h=>{const{isIntersecting:p}=h;if(this.isInView===p||(this.isInView=p,u&&!p&&this.hasEnteredView))return;p&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",p);const{onViewportEnter:g,onViewportLeave:v}=this.node.getProps(),b=p?g:v;b&&b(h)};return NC(this.node.current,c,f)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:n,prevProps:a}=this.node;["amount","margin","root"].some(OC(n,a))&&this.startObserver()}unmount(){}}function OC({viewport:e={}},{viewport:n={}}={}){return a=>e[a]!==n[a]}const RC={inView:{Feature:kC},tap:{Feature:jC},focus:{Feature:SC},hover:{Feature:wC}},CC={layout:{ProjectionNode:k2,MeasureLayout:w2}},DC={...yR,...RC,...bC,...CC},MC=D6(DC,Y6),LC=({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(MC.div,{initial:{width:0},animate:{width:`${s}%`},transition:{duration:1.2},className:"h-full bg-yellow-400"})})]})};function PC(){const[e,n]=K.useState("3 Days 4 Hours");K.useEffect(()=>{const o=setInterval(()=>{n("3 Days 3 Hours 59 Min")},6e4);return()=>clearInterval(o)},[]);const a=[{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}],s=[{name:"Happy Friday",reward:"AED 500",status:"Achieved15"},{name:"Speed Weekend",reward:"AED 300",status:"Achieved"},{name:"Newbie Dash",reward:"AED 450",status:"Achieved"},{name:"Rider Marathon",reward:"AED 600",status:"Achieved"}];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 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(LC,{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: ",e]})]})]}),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:a.map((o,u)=>d.jsxs("tr",{className:`border-b border-yellow-700/50 hover:bg-yellow-900/20 ${o.highlight?"bg-yellow-900/50 font-bold":""}`,children:[d.jsx("td",{className:"p-4",children:u+1}),d.jsx("td",{className:"p-4",children:o.name}),d.jsxs("td",{className:"p-4",children:[o.rides," rides"]}),d.jsx("td",{className:"p-4",children:o.reward}),d.jsx("td",{className:"p-4",children:o.status})]},u))})]})})]}),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:"Status"})]})}),d.jsx("tbody",{children:s.map((o,u)=>d.jsxs("tr",{className:"border-b border-yellow-700/50 hover:bg-yellow-900/20",children:[d.jsx("td",{className:"p-4",children:o.name}),d.jsx("td",{className:"p-4",children:o.reward}),d.jsx("td",{className:"p-4 text-green-400",children:o.status})]},u))})]})})]}),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",{jsx:!0,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 pb=({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 zC(){const e={value:12e4,max:2e5},n={value:42e5,max:6e6},a=[{rank:1,name:"Ali Khan",country:"🇦🇪 UAE",earnings:6e4},{rank:2,name:"Maria Sohail",country:"🇵🇰 Pakistan",earnings:6e4},{rank:3,name:"Zain Malik",country:"🇸🇦 Saudi Arabia",earnings:6e4},{rank:4,name:"Fatima Noor",country:"🇮🇳 India",earnings:null},{rank:5,name:"John Smith",country:"🇬🇧 UK",earnings:null}],[s,o]=K.useState(!1);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("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.jsx("li",{children:"One-time reward given at retirement (Age 55)."}),d.jsx("li",{children:"Or instantly if qualified and passed away."}),d.jsxs("li",{children:["Required PGP: ",d.jsx("b",{children:"200,000"})]}),d.jsxs("li",{children:["Required TGP: ",d.jsx("b",{children:"6,000,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"}),d.jsx(pb,{label:"PGP Progress",value:e.value,max:e.max}),d.jsx(pb,{label:"TGP Progress",value:n.value,max:n.max}),d.jsxs("p",{className:"mt-2 italic text-sm text-gray-200",children:["▓▓▓▓▓▓▓▓░░░░"," ",((e.value/e.max+n.value/n.max)/2*100).toFixed(0),"% Complete"]})]}),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:(s?a:a.slice(0,5)).map(u=>d.jsxs("div",{className:"flex justify-between px-4 py-2 border-b border-yellow-900",children:[d.jsxs("span",{children:[u.rank,"."]}),d.jsxs("span",{children:[u.name," – ",u.country]}),d.jsx("span",{children:u.earnings?`AED ${u.earnings.toLocaleString()}`:"—"})]},u.rank))}),d.jsxs("p",{className:"mt-2 text-sm italic",children:["Total Qualified: ",d.jsx("b",{children:"137 Members"})]}),d.jsx("button",{className:"mt-3 text-sm underline",onClick:()=>o(!s),children:s?"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."})})]})}function Hu(){return Hu=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},Hu.apply(this,arguments)}function UC(e,n){if(e==null)return{};var a={},s=Object.keys(e),o,u;for(u=0;u<s.length;u++)o=s[u],!(n.indexOf(o)>=0)&&(a[o]=e[o]);return a}var BC=["cdnSuffix","cdnUrl","countryCode","style","svg"],FC="https://cdn.jsdelivr.net/gh/lipis/flag-icons/flags/4x3/",VC="svg",HC=127397,iu=function(n){var a=n.cdnSuffix,s=a===void 0?VC:a,o=n.cdnUrl,u=o===void 0?FC:o,c=n.countryCode,f=n.style,h=n.svg,p=h===void 0?!1:h,g=UC(n,BC);if(typeof c!="string")return null;if(p){var v=""+u+c.toLowerCase()+"."+s;return K.createElement("img",Object.assign({},g,{src:v,style:Hu({display:"inline-block",width:"1em",height:"1em",verticalAlign:"middle"},f)}))}var b=c.toUpperCase().replace(/./g,function(j){return String.fromCodePoint(j.charCodeAt(0)+HC)});return K.createElement("span",Object.assign({role:"img"},g,{style:Hu({display:"inline-block",fontSize:"1em",lineHeight:"1em",verticalAlign:"middle"},f)}),b)};const IC=({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 qC(){const[e]=K.useState({rank:"Warrior",rankNumber:2,country:"Pakistan",countryCode:"PK",progress:50,racePosition:17}),[n]=K.useState([{name:"Ali Khan",username:"@ali_k",rank:"Tycoon",achieved:98,countryCode:"PK",dp:"https://placehold.co/40x40"},{name:"Maria Sohail",username:"@maria_s",rank:"Warrior",achieved:92,countryCode:"AE",dp:"https://placehold.co/40x40"},{name:"Zain Malik",username:"@zmalik",rank:"Warrior",achieved:88,countryCode:"QA",dp:"https://placehold.co/40x40"},{name:"Fatima Noor",username:"@fatima_n",rank:"Tycoon",achieved:85,countryCode:"PK",dp:"https://placehold.co/40x40"},{name:"John Smith",username:"@john_s",rank:"Champion",achieved:80,countryCode:"AE",dp:"https://placehold.co/40x40"},{name:"Sara Ahmed",username:"@sara_a",rank:"Warrior",achieved:75,countryCode:"QA",dp:"https://placehold.co/40x40"},{name:"Omar Saeed",username:"@omar_s",rank:"Tycoon",achieved:70,countryCode:"QA",dp:"https://placehold.co/40x40"},{name:"Aisha Khan",username:"@aisha_k",rank:"Champion",achieved:65,countryCode:"PK",dp:"https://placehold.co/40x40"},{name:"Hassan Ali",username:"@hassan_a",rank:"Warrior",achieved:60,countryCode:"AE",dp:"https://placehold.co/40x40"},{name:"Noor Fatima",username:"@noor_f",rank:"Warrior",achieved:55,countryCode:"PK",dp:"https://placehold.co/40x40"}]),[a]=K.useState([{name:"Sheikh Ahmad",country:"UAE",countryCode:"AE",rank:"Tycoon",dp:"https://placehold.co/40x40"},{name:"Ahmad Khan",country:"Pakistan",countryCode:"PK",rank:"Tycoon",dp:"https://placehold.co/40x40"},{name:"Omar Saeed",country:"Qatar",countryCode:"QA",rank:"Tycoon",dp:"https://placehold.co/40x40"}]),s=()=>{alert("Country update request sent to admin for verification.")};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("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"}),d.jsxs("p",{className:"text-lg",children:["Regional Shares: ",d.jsx("span",{className:"font-bold",children:"$1,250.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(iu,{countryCode:"AE",svg:!0,className:"w-6 h-4 mr-2"}),d.jsxs("div",{children:[d.jsx("p",{className:"font-bold",children:"Title Holder: Sheikh Ahmad"}),d.jsx("p",{className:"text-sm text-gray-300",children:"UAE"})]})]}),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"}),d.jsxs("div",{className:"flex items-center mb-2",children:[d.jsxs("p",{className:"text-lg flex items-center",children:["Your Current Rank: ",e.rank," (Rank ",e.rankNumber,")"," ",d.jsx(iu,{countryCode:"PK",svg:!0,className:"w-6 h-4 ml-2"})]}),d.jsx("button",{className:"ml-4 text-sm bg-yellow-700 text-yellow-300 px-2 py-1 rounded-full",onClick:s,children:"🔄 Update Country"})]}),d.jsx("p",{className:"text-lg mb-2",children:"Victory Rank: Tycoon (Rank 3)"}),d.jsx(IC,{label:"Progress",value:e.progress,max:100})]}),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"}),d.jsxs("div",{className:"bg-yellow-700 text-yellow-300 px-4 py-2 rounded-lg mb-4 text-center font-bold",children:["Your Race Position: #",e.racePosition]}),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:"Achieved %"})]})}),d.jsx("tbody",{children:n.map((o,u)=>d.jsxs("tr",{className:`border-b border-yellow-700 last:border-none ${o.name==="Your Name"?"bg-yellow-800":""}`,children:[d.jsx("td",{className:"py-2 px-4",children:u+1}),d.jsxs("td",{className:"py-2 px-4 flex items-center",children:[d.jsx("img",{src:o.dp,alt:o.name,className:"w-8 h-8 rounded-full mr-2"}),o.name," ",d.jsx(iu,{countryCode:o.countryCode,svg:!0,className:"w-6 h-4 ml-2"})]}),d.jsx("td",{className:"py-2 px-4",children:o.username}),d.jsx("td",{className:"py-2 px-4",children:o.rank}),d.jsxs("td",{className:"py-2 px-4",children:[o.achieved,"%"]})]},u))})]})})]}),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"}),d.jsx("div",{className:"overflow-x-auto",children:d.jsx("div",{className:"flex space-x-4 pb-4",children:a.map((o,u)=>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:o.dp,alt:o.name,className:"w-10 h-10 rounded-full mb-2"}),d.jsx("p",{className:"font-bold",children:o.name}),d.jsxs("div",{className:"flex items-center",children:[d.jsx(iu,{countryCode:o.countryCode,svg:!0,className:"w-6 h-4 mr-2"}),d.jsx("p",{className:"text-sm text-gray-300",children:o.country})]}),d.jsx("p",{className:"text-sm",children:o.rank})]},u))})})]}),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 gb=["/login","/signup","/verify-otp","/forgot-password","/reset-password"];function GC(){const e=Sr(),n=Rn(),a=st(o1),s=st(hm),o=st(l1),u=gb.includes(n.pathname);return K.useEffect(()=>{console.log("App - Initializing session sync"),e(jv()),console.log("App - Session info:",Be.getSessionInfo())},[e]),K.useEffect(()=>{a&&!s?(console.log("App - Token exists but not authenticated, checking current user"),e(Ri())):console.log(a&&s?"App - User is already authenticated":"App - No token found, user not authenticated")},[e,a,s]),K.useEffect(()=>{const c=f=>{console.log("App - Session cleared event received:",f.detail),e(jv()),s&&!gb.includes(n.pathname)&&(console.log("App - Redirecting to login due to session clear"),window.location.href="/login")};return window.addEventListener("sessionCleared",c),()=>window.removeEventListener("sessionCleared",c)},[e,s,n.pathname]),K.useEffect(()=>{console.log("App - Route changed to:",n.pathname),console.log("App - Should hide navbar/footer:",u),console.log("App - signupEmail in Redux:",o),console.log("App - signupEmail in localStorage:",localStorage.getItem("signup_email"))},[n.pathname,u,o]),d.jsxs("div",{className:"App bg-white dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300",children:[!u&&d.jsx(SN,{}),d.jsxs(CA,{children:[d.jsx(mt,{path:"/",element:d.jsx(J5,{})})," ",d.jsx(mt,{path:"/about",element:d.jsx(i_,{})}),d.jsx(mt,{path:"/services",element:d.jsx(N_,{})}),d.jsx(mt,{path:"/team",element:d.jsx(D_,{})}),d.jsx(mt,{path:"/contact",element:d.jsx(L_,{})}),d.jsx(mt,{path:"/faqs",element:d.jsx(q_,{})}),d.jsx(mt,{path:"/login",element:o||localStorage.getItem("signup_email")?d.jsx(Ks,{to:"/verify-otp",replace:!0}):d.jsx(G_,{})}),d.jsx(mt,{path:"/signup",element:o||localStorage.getItem("signup_email")?d.jsx(Ks,{to:"/verify-otp",replace:!0}):d.jsx(K_,{})}),d.jsx(mt,{path:"/verify-otp",element:d.jsx(W_,{})}),d.jsx(mt,{path:"/forgot-password",element:o||localStorage.getItem("signup_email")?d.jsx(Ks,{to:"/reset-password",replace:!0}):d.jsx(X_,{})}),d.jsx(mt,{path:"/reset-password",element:d.jsx(Z_,{})}),d.jsx(mt,{path:"/mlm",element:d.jsx(nx,{})}),d.jsx(mt,{path:"/ddr",element:d.jsx(ek,{})}),d.jsx(mt,{path:"/crr",element:d.jsx(tk,{})}),d.jsx(mt,{path:"/bbr",element:d.jsx(PC,{})}),d.jsx(mt,{path:"/hlr",element:d.jsx(zC,{})}),d.jsx(mt,{path:"/RegionalAmbassador",element:d.jsx(qC,{})}),d.jsx(mt,{path:"/tree",element:d.jsx(Q_,{})}),d.jsx(mt,{path:"/user-tree/:userId",element:d.jsx(nx,{})}),d.jsx(mt,{path:"/profile",element:s?d.jsx(J_,{}):d.jsx(Ks,{to:"/login",replace:!0})}),d.jsx(mt,{path:"*",element:d.jsx(Ks,{to:"/",replace:!0})})]}),!u&&d.jsx(PN,{})]})}function YC(){return d.jsx(nN,{children:d.jsx(dN,{children:d.jsx(GC,{})})})}const KC=()=>{const e=to.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=nc(a),o=i1(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 u=s.split(".");if(console.log("JWT parts:",u.length),u.length===3){const c=JSON.parse(atob(u[0].replace(/-/g,"+").replace(/_/g,"/"))),f=JSON.parse(atob(u[1].replace(/-/g,"+").replace(/_/g,"/")));console.log("JWT Header:",c),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(u){console.log("Error decoding JWT:",u.message)}}console.log("========================")},WC=()=>{const e=Be.getToken();console.log("=== LOGOUT REQUEST TEST ==="),console.log("Token to send:",e),console.log("Authorization header:",`Bearer ${e}`),console.log("===========================")},XC=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}}},ZC=async()=>{const e=Be.getToken();console.log("=== REFERRAL TREE ENDPOINT TEST ===");try{const n=nc(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}}},$C=()=>{console.log("=== MANUAL LOGOUT ==="),Be.clearSession(),console.log("Session cleared"),window.location.reload()};typeof window<"u"&&(window.debugTokenStatus=KC,window.testLogoutRequest=WC,window.testCurrentUserEndpoint=XC,window.testReferralTreeEndpoint=ZC,window.manualLogout=$C);$3.createRoot(document.getElementById("root")).render(d.jsx(K.StrictMode,{children:d.jsxs(m4,{store:VE,children:[d.jsx(YC,{}),d.jsx(lj,{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"}}}})]})}));