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

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

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

  animation: ${B4} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${F4} 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;
  }
`,H4=Jr("div")`
  position: absolute;
`,I4=Jr("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,q4=gr`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,G4=Jr("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${q4} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,Y4=({toast:e})=>{let{icon:n,type:a,iconTheme:s}=e;return n!==void 0?typeof n=="string"?X.createElement(G4,null,n):n:a==="blank"?null:X.createElement(I4,null,X.createElement(U4,{...s}),a!=="loading"&&X.createElement(H4,null,a==="error"?X.createElement(P4,{...s}):X.createElement(V4,{...s})))},K4=e=>`
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,X4=e=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
`,Z4="0%{opacity:0;} 100%{opacity:1;}",W4="0%{opacity:1;} 100%{opacity:0;}",Q4=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;
`,$4=Jr("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,J4=(e,n)=>{let a=e.includes("top")?1:-1,[s,o]=xb()?[Z4,W4]:[K4(a),X4(a)];return{animation:n?`${gr(s)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${gr(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},ej=X.memo(({toast:e,position:n,style:a,children:s})=>{let o=e.height?J4(e.position||n||"top-center",e.visible):{opacity:0},u=X.createElement(Y4,{toast:e}),c=X.createElement($4,{...e.ariaProps},xu(e.message,e));return X.createElement(Q4,{className:e.className,style:{...o,...a,...e.style}},typeof s=="function"?s({icon:u,message:c}):X.createElement(X.Fragment,null,u,c))});w4(X.createElement);var tj=({id:e,className:n,style:a,onHeightUpdate:s,children:o})=>{let u=X.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 X.createElement("div",{ref:u,className:n,style:a},o)},nj=(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:xb()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${n*(a?1:-1)}px)`,...s,...o}},rj=Fu`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,Yl=16,aj=({reverseOrder:e,position:n="top-center",toastOptions:a,gutter:s,children:o,containerStyle:u,containerClassName:c})=>{let{toasts:f,handlers:h}=C4(a);return X.createElement("div",{id:"_rht_toaster",style:{position:"fixed",zIndex:9999,top:Yl,left:Yl,right:Yl,bottom:Yl,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}),w=nj(g,v);return X.createElement(tj,{id:p.id,key:p.id,onHeightUpdate:h.updateHeight,className:p.visible?rj:"",style:w},p.type==="custom"?xu(p.message,p):o?o(p):X.createElement(ej,{toast:p,position:g}))}))},Vu=Gt;function Dt(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 ij=typeof Symbol=="function"&&Symbol.observable||"@@observable",$y=ij,Of=()=>Math.random().toString(36).substring(7).split("").join("."),sj={INIT:`@@redux/INIT${Of()}`,REPLACE:`@@redux/REPLACE${Of()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Of()}`},bu=sj;function am(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 wb(e,n,a){if(typeof e!="function")throw new Error(Dt(2));if(typeof n=="function"&&typeof a=="function"||typeof a=="function"&&typeof arguments[3]=="function")throw new Error(Dt(0));if(typeof n=="function"&&typeof a>"u"&&(a=n,n=void 0),typeof a<"u"){if(typeof a!="function")throw new Error(Dt(1));return a(wb)(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,E)=>{c.set(E,N)}))}function g(){if(h)throw new Error(Dt(3));return o}function v(N){if(typeof N!="function")throw new Error(Dt(4));if(h)throw new Error(Dt(5));let E=!0;p();const M=f++;return c.set(M,N),function(){if(E){if(h)throw new Error(Dt(6));E=!1,p(),c.delete(M),u=null}}}function w(N){if(!am(N))throw new Error(Dt(7));if(typeof N.type>"u")throw new Error(Dt(8));if(typeof N.type!="string")throw new Error(Dt(17));if(h)throw new Error(Dt(9));try{h=!0,o=s(o,N)}finally{h=!1}return(u=c).forEach(M=>{M()}),N}function T(N){if(typeof N!="function")throw new Error(Dt(10));s=N,w({type:bu.REPLACE})}function _(){const N=v;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(Dt(11));function M(){const G=E;G.next&&G.next(g())}return M(),{unsubscribe:N(M)}},[$y](){return this}}}return w({type:bu.INIT}),{dispatch:w,subscribe:v,getState:g,replaceReducer:T,[$y]:_}}function oj(e){Object.keys(e).forEach(n=>{const a=e[n];if(typeof a(void 0,{type:bu.INIT})>"u")throw new Error(Dt(12));if(typeof a(void 0,{type:bu.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Dt(13))})}function lj(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{oj(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],w=a[v],T=c[v],_=w(T,f);if(typeof _>"u")throw f&&f.type,new Error(Dt(14));p[v]=_,h=h||_!==T}return h=h||s.length!==Object.keys(c).length,h?p:c}}function wu(...e){return e.length===0?n=>n:e.length===1?e[0]:e.reduce((n,a)=>(...s)=>n(a(...s)))}function uj(...e){return n=>(a,s)=>{const o=n(a,s);let u=()=>{throw new Error(Dt(15))};const c={getState:o.getState,dispatch:(h,...p)=>u(h,...p)},f=e.map(h=>h(c));return u=wu(...f)(o.dispatch),{...o,dispatch:u}}}function cj(e){return am(e)&&"type"in e&&typeof e.type=="string"}var Sb=Symbol.for("immer-nothing"),Jy=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 Mi=Object.getPrototypeOf;function Ra(e){return!!e&&!!e[fn]}function yr(e){return e?jb(e)||Array.isArray(e)||!!e[Jy]||!!e.constructor?.[Jy]||Iu(e)||qu(e):!1}var dj=Object.prototype.constructor.toString();function jb(e){if(!e||typeof e!="object")return!1;const n=Mi(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)===dj}function Su(e,n){Hu(e)===0?Reflect.ownKeys(e).forEach(a=>{n(a,e[a],e)}):e.forEach((a,s)=>n(s,a,e))}function Hu(e){const n=e[fn];return n?n.type_:Array.isArray(e)?1:Iu(e)?2:qu(e)?3:0}function vh(e,n){return Hu(e)===2?e.has(n):Object.prototype.hasOwnProperty.call(e,n)}function Tb(e,n,a){const s=Hu(e);s===2?e.set(n,a):s===3?e.add(a):e[n]=a}function fj(e,n){return e===n?e!==0||1/e===1/n:e!==e&&n!==n}function Iu(e){return e instanceof Map}function qu(e){return e instanceof Set}function wa(e){return e.copy_||e.base_}function xh(e,n){if(Iu(e))return new Map(e);if(qu(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const a=jb(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(Mi(e),s)}else{const s=Mi(e);if(s!==null&&a)return{...e};const o=Object.create(s);return Object.assign(o,e)}}function im(e,n=!1){return Gu(e)||Ra(e)||!yr(e)||(Hu(e)>1&&(e.set=e.add=e.clear=e.delete=hj),Object.freeze(e),n&&Object.entries(e).forEach(([a,s])=>im(s,!0))),e}function hj(){Un(2)}function Gu(e){return Object.isFrozen(e)}var mj={};function Ca(e){const n=mj[e];return n||Un(0,e),n}var oo;function Eb(){return oo}function pj(e,n){return{drafts_:[],parent_:e,immer_:n,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function ev(e,n){n&&(Ca("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=n)}function bh(e){wh(e),e.drafts_.forEach(gj),e.drafts_=null}function wh(e){e===oo&&(oo=e.parent_)}function tv(e){return oo=pj(oo,e)}function gj(e){const n=e[fn];n.type_===0||n.type_===1?n.revoke_():n.revoked_=!0}function nv(e,n){n.unfinalizedDrafts_=n.drafts_.length;const a=n.drafts_[0];return e!==void 0&&e!==a?(a[fn].modified_&&(bh(n),Un(4)),yr(e)&&(e=ju(n,e),n.parent_||Tu(n,e)),n.patches_&&Ca("Patches").generateReplacementPatches_(a[fn].base_,e,n.patches_,n.inversePatches_)):e=ju(n,a,[]),bh(n),n.patches_&&n.patchListener_(n.patches_,n.inversePatches_),e!==Sb?e:void 0}function ju(e,n,a){if(Gu(n))return n;const s=n[fn];if(!s)return Su(n,(o,u)=>rv(e,s,n,o,u,a)),n;if(s.scope_!==e)return n;if(!s.modified_)return Tu(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),Su(u,(f,h)=>rv(e,s,o,f,h,a,c)),Tu(e,o,!1),a&&e.patches_&&Ca("Patches").generatePatches_(s,a,e.patches_,e.inversePatches_)}return s.copy_}function rv(e,n,a,s,o,u,c){if(Ra(o)){const f=u&&n&&n.type_!==3&&!vh(n.assigned_,s)?u.concat(s):void 0,h=ju(e,o,f);if(Tb(a,s,h),Ra(h))e.canAutoFreeze_=!1;else return}else c&&a.add(o);if(yr(o)&&!Gu(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;ju(e,o),(!n||!n.scope_.parent_)&&typeof s!="symbol"&&Object.prototype.propertyIsEnumerable.call(a,s)&&Tu(e,o)}}function Tu(e,n,a=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&im(n,a)}function yj(e,n){const a=Array.isArray(e),s={type_:a?1:0,scope_:n?n.scope_:Eb(),modified_:!1,finalized_:!1,assigned_:{},parent_:n,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=s,u=sm;a&&(o=[s],u=lo);const{revoke:c,proxy:f}=Proxy.revocable(o,u);return s.draft_=f,s.revoke_=c,f}var sm={get(e,n){if(n===fn)return e;const a=wa(e);if(!vh(a,n))return vj(e,a,n);const s=a[n];return e.finalized_||!yr(s)?s:s===kf(e.base_,n)?(Rf(e),e.copy_[n]=jh(s,e)):s},has(e,n){return n in wa(e)},ownKeys(e){return Reflect.ownKeys(wa(e))},set(e,n,a){const s=Ab(wa(e),n);if(s?.set)return s.set.call(e.draft_,a),!0;if(!e.modified_){const o=kf(wa(e),n),u=o?.[fn];if(u&&u.base_===a)return e.copy_[n]=a,e.assigned_[n]=!1,!0;if(fj(a,o)&&(a!==void 0||vh(e.base_,n)))return!0;Rf(e),Sh(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 kf(e.base_,n)!==void 0||n in e.base_?(e.assigned_[n]=!1,Rf(e),Sh(e)):delete e.assigned_[n],e.copy_&&delete e.copy_[n],!0},getOwnPropertyDescriptor(e,n){const a=wa(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 Mi(e.base_)},setPrototypeOf(){Un(12)}},lo={};Su(sm,(e,n)=>{lo[e]=function(){return arguments[0]=arguments[0][0],n.apply(this,arguments)}});lo.deleteProperty=function(e,n){return lo.set.call(this,e,n,void 0)};lo.set=function(e,n,a){return sm.set.call(this,e[0],n,a,e[0])};function kf(e,n){const a=e[fn];return(a?wa(a):e)[n]}function vj(e,n,a){const s=Ab(n,a);return s?"value"in s?s.value:s.get?.call(e.draft_):void 0}function Ab(e,n){if(!(n in e))return;let a=Mi(e);for(;a;){const s=Object.getOwnPropertyDescriptor(a,n);if(s)return s;a=Mi(a)}}function Sh(e){e.modified_||(e.modified_=!0,e.parent_&&Sh(e.parent_))}function Rf(e){e.copy_||(e.copy_=xh(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var xj=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(yr(n)){const u=tv(this),c=jh(n,void 0);let f=!0;try{o=a(c),f=!1}finally{f?bh(u):wh(u)}return ev(u,s),nv(o,u)}else if(!n||typeof n!="object"){if(o=a(n),o===void 0&&(o=n),o===Sb&&(o=void 0),this.autoFreeze_&&im(o,!0),s){const u=[],c=[];Ca("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){yr(e)||Un(8),Ra(e)&&(e=bj(e));const n=tv(this),a=jh(e,void 0);return a[fn].isManual_=!0,wh(n),a}finishDraft(e,n){const a=e&&e[fn];(!a||!a.isManual_)&&Un(9);const{scope_:s}=a;return ev(s,n),nv(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=Ca("Patches").applyPatches_;return Ra(e)?s(e,n):this.produce(e,o=>s(o,n))}};function jh(e,n){const a=Iu(e)?Ca("MapSet").proxyMap_(e,n):qu(e)?Ca("MapSet").proxySet_(e,n):yj(e,n);return(n?n.scope_:Eb()).drafts_.push(a),a}function bj(e){return Ra(e)||Un(10,e),Nb(e)}function Nb(e){if(!yr(e)||Gu(e))return e;const n=e[fn];let a;if(n){if(!n.modified_)return n.base_;n.finalized_=!0,a=xh(e,n.scope_.immer_.useStrictShallowCopy_)}else a=xh(e,!0);return Su(a,(s,o)=>{Tb(a,s,Nb(o))}),n&&(n.finalized_=!1),a}var hn=new xj,_b=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 Ob(e){return({dispatch:a,getState:s})=>o=>u=>typeof u=="function"?u(a,s,e):o(u)}var wj=Ob(),Sj=Ob,jj=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?wu:wu.apply(null,arguments)},Tj=e=>e&&typeof e.match=="function";function to(e,n){function a(...s){if(n){let o=n(...s);if(!o)throw new Error(mr(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=>cj(s)&&s.type===e,a}var kb=class Ws extends Array{constructor(...n){super(...n),Object.setPrototypeOf(this,Ws.prototype)}static get[Symbol.species](){return Ws}concat(...n){return super.concat.apply(this,n)}prepend(...n){return n.length===1&&Array.isArray(n[0])?new Ws(...n[0].concat(this)):new Ws(...n.concat(this))}};function av(e){return yr(e)?_b(e,()=>{}):e}function Kl(e,n,a){return e.has(n)?e.get(n):e.set(n,a(n)).get(n)}function Ej(e){return typeof e=="boolean"}var Aj=()=>function(n){const{thunk:a=!0,immutableCheck:s=!0,serializableCheck:o=!0,actionCreatorCheck:u=!0}=n??{};let c=new kb;return a&&(Ej(a)?c.push(wj):c.push(Sj(a.extraArgument))),c},Nj="RTK_autoBatch",iv=e=>n=>{setTimeout(n,e)},_j=(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:iv(10):e.type==="callback"?e.queueNotification:iv(e.timeout),p=()=>{c=!1,u&&(u=!1,f.forEach(g=>g()))};return Object.assign({},s,{subscribe(g){const v=()=>o&&g(),w=s.subscribe(v);return f.add(g),()=>{w(),f.delete(g)}},dispatch(g){try{return o=!g?.meta?.[Nj],u=!o,u&&(c||(c=!0,h(p))),s.dispatch(g)}finally{o=!0}}})},Oj=e=>function(a){const{autoBatch:s=!0}=a??{};let o=new kb(e);return s&&o.push(_j(typeof s=="object"?s:void 0)),o};function kj(e){const n=Aj(),{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(am(a))f=lj(a);else throw new Error(mr(1));let h;typeof s=="function"?h=s(n):h=n();let p=wu;o&&(p=jj({trace:!1,...typeof o=="object"&&o}));const g=uj(...h),v=Oj(g);let w=typeof c=="function"?c(v):v();const T=p(...w);return wb(f,u,T)}function Rb(e){const n={},a=[];let s;const o={addCase(u,c){const f=typeof u=="string"?u:u.type;if(!f)throw new Error(mr(28));if(f in n)throw new Error(mr(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 Rj(e){return typeof e=="function"}function Cj(e,n){let[a,s,o]=Rb(n),u;if(Rj(e))u=()=>av(e());else{const f=av(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(Ra(g)){const T=v(g,h);return T===void 0?g:T}else{if(yr(g))return _b(g,w=>v(w,h));{const w=v(g,h);if(w===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}}return g},f)}return c.getInitialState=u,c}var Dj=(e,n)=>Tj(e)?e.match(n):e(n);function Mj(...e){return n=>e.some(a=>Dj(a,n))}var Lj="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Pj=(e=21)=>{let n="",a=e;for(;a--;)n+=Lj[Math.random()*64|0];return n},zj=["name","message","stack","code"],Cf=class{constructor(e,n){this.payload=e,this.meta=n}_type},sv=class{constructor(e,n){this.payload=e,this.meta=n}_type},Uj=e=>{if(typeof e=="object"&&e!==null){const n={};for(const a of zj)typeof e[a]=="string"&&(n[a]=e[a]);return n}return{message:String(e)}},ov="External signal was aborted",ea=(()=>{function e(n,a,s){const o=to(n+"/fulfilled",(h,p,g,v)=>({payload:h,meta:{...v||{},arg:g,requestId:p,requestStatus:"fulfilled"}})),u=to(n+"/pending",(h,p,g)=>({payload:void 0,meta:{...g||{},arg:p,requestId:h,requestStatus:"pending"}})),c=to(n+"/rejected",(h,p,g,v,w)=>({payload:v,error:(s&&s.serializeError||Uj)(h||"Rejected"),meta:{...w||{},arg:g,requestId:p,rejectedWithValue:!!v,requestStatus:"rejected",aborted:h?.name==="AbortError",condition:h?.name==="ConditionError"}}));function f(h,{signal:p}={}){return(g,v,w)=>{const T=s?.idGenerator?s.idGenerator(h):Pj(),_=new AbortController;let S,N;function E(L){N=L,_.abort()}p&&(p.aborted?E(ov):p.addEventListener("abort",()=>E(ov),{once:!0}));const M=async function(){let L;try{let A=s?.condition?.(h,{getState:v,extra:w});if(Fj(A)&&(A=await A),A===!1||_.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const z=new Promise((F,V)=>{S=()=>{V({name:"AbortError",message:N||"Aborted"})},_.signal.addEventListener("abort",S)});g(u(T,h,s?.getPendingMeta?.({requestId:T,arg:h},{getState:v,extra:w}))),L=await Promise.race([z,Promise.resolve(a(h,{dispatch:g,getState:v,extra:w,requestId:T,signal:_.signal,abort:E,rejectWithValue:(F,V)=>new Cf(F,V),fulfillWithValue:(F,V)=>new sv(F,V)})).then(F=>{if(F instanceof Cf)throw F;return F instanceof sv?o(F.payload,T,h,F.meta):o(F,T,h)})])}catch(A){L=A instanceof Cf?c(null,T,h,A.payload,A.meta):c(A,T,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:E,requestId:T,arg:h,unwrap(){return M.then(Bj)}})}}return Object.assign(f,{pending:u,rejected:c,fulfilled:o,settled:Mj(c,o),typePrefix:n})}return e.withTypes=()=>e,e})();function Bj(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function Fj(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Vj=Symbol.for("rtk-slice-createasyncthunk");function Hj(e,n){return`${e}/${n}`}function Ij({creators:e}={}){const n=e?.asyncThunk?.[Vj];return function(s){const{name:o,reducerPath:u=o}=s;if(!o)throw new Error(mr(11));const c=(typeof s.reducers=="function"?s.reducers(Yj()):s.reducers)||{},f=Object.keys(c),h={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},p={addCase(L,G){const A=typeof L=="string"?L:L.type;if(!A)throw new Error(mr(12));if(A in h.sliceCaseReducersByType)throw new Error(mr(13));return h.sliceCaseReducersByType[A]=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],A={reducerName:L,type:Hj(o,L),createNotation:typeof s.reducers=="function"};Xj(G)?Wj(A,G,p,n):Kj(A,G,p)});function g(){const[L={},G=[],A=void 0]=typeof s.extraReducers=="function"?Rb(s.extraReducers):[s.extraReducers],z={...L,...h.sliceCaseReducersByType};return Cj(s.initialState,F=>{for(let V in z)F.addCase(V,z[V]);for(let V of h.sliceMatchers)F.addMatcher(V.matcher,V.reducer);for(let V of G)F.addMatcher(V.matcher,V.reducer);A&&F.addDefaultCase(A)})}const v=L=>L,w=new Map,T=new WeakMap;let _;function S(L,G){return _||(_=g()),_(L,G)}function N(){return _||(_=g()),_.getInitialState()}function E(L,G=!1){function A(F){let V=F[L];return typeof V>"u"&&G&&(V=Kl(T,A,N)),V}function z(F=v){const V=Kl(w,G,()=>new WeakMap);return Kl(V,F,()=>{const D={};for(const[R,W]of Object.entries(s.selectors??{}))D[R]=qj(W,F,()=>Kl(T,F,N),G);return D})}return{reducerPath:L,getSelectors:z,get selectors(){return z(A)},selectSlice:A}}const M={name:o,reducer:S,actions:h.actionCreators,caseReducers:h.sliceCaseReducersByName,getInitialState:N,...E(u),injectInto(L,{reducerPath:G,...A}={}){const z=G??u;return L.inject({reducerPath:z,reducer:S},A),{...M,...E(z,!0)}}};return M}}function qj(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 Gj=Ij();function Yj(){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 Kj({type:e,reducerName:n,createNotation:a},s,o){let u,c;if("reducer"in s){if(a&&!Zj(s))throw new Error(mr(17));u=s.reducer,c=s.prepare}else u=s;o.addCase(e,u).exposeCaseReducer(n,u).exposeAction(n,c?to(e,c):to(e))}function Xj(e){return e._reducerDefinitionType==="asyncThunk"}function Zj(e){return e._reducerDefinitionType==="reducerWithPrepare"}function Wj({type:e,reducerName:n},a,s,o){if(!o)throw new Error(mr(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||Xl,pending:f||Xl,rejected:h||Xl,settled:p||Xl})}function Xl(){}function mr(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 Zr=e=>{Vu.success(e,{duration:3e3,style:{background:"#10b981",color:"#fff",fontWeight:"500"}})},mn=e=>{Vu.error(e,{duration:4e3,style:{background:"#ef4444",color:"#fff",fontWeight:"500"}})},La=(e="Loading...")=>Vu.loading(e,{style:{background:"#6b7280",color:"#fff",fontWeight:"500"}}),Ft=e=>{Vu.dismiss(e)},Cb=e=>{typeof e=="string"&&mn(e)};function Db(e,n){return function(){return e.apply(n,arguments)}}const{toString:Qj}=Object.prototype,{getPrototypeOf:om}=Object,{iterator:Yu,toStringTag:Mb}=Symbol,Ku=(e=>n=>{const a=Qj.call(n);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Bn=e=>(e=e.toLowerCase(),n=>Ku(n)===e),Xu=e=>n=>typeof n===e,{isArray:Bi}=Array,uo=Xu("undefined");function wo(e){return e!==null&&!uo(e)&&e.constructor!==null&&!uo(e.constructor)&&en(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Lb=Bn("ArrayBuffer");function $j(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&Lb(e.buffer),n}const Jj=Xu("string"),en=Xu("function"),Pb=Xu("number"),So=e=>e!==null&&typeof e=="object",eT=e=>e===!0||e===!1,au=e=>{if(Ku(e)!=="object")return!1;const n=om(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Mb in e)&&!(Yu in e)},tT=e=>{if(!So(e)||wo(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},nT=Bn("Date"),rT=Bn("File"),aT=Bn("Blob"),iT=Bn("FileList"),sT=e=>So(e)&&en(e.pipe),oT=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||en(e.append)&&((n=Ku(e))==="formdata"||n==="object"&&en(e.toString)&&e.toString()==="[object FormData]"))},lT=Bn("URLSearchParams"),[uT,cT,dT,fT]=["ReadableStream","Request","Response","Headers"].map(Bn),hT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jo(e,n,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let s,o;if(typeof e!="object"&&(e=[e]),Bi(e))for(s=0,o=e.length;s<o;s++)n.call(null,e[s],s,e);else{if(wo(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 zb(e,n){if(wo(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 Ta=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ub=e=>!uo(e)&&e!==Ta;function Th(){const{caseless:e}=Ub(this)&&this||{},n={},a=(s,o)=>{const u=e&&zb(n,o)||o;au(n[u])&&au(s)?n[u]=Th(n[u],s):au(s)?n[u]=Th({},s):Bi(s)?n[u]=s.slice():n[u]=s};for(let s=0,o=arguments.length;s<o;s++)arguments[s]&&jo(arguments[s],a);return n}const mT=(e,n,a,{allOwnKeys:s}={})=>(jo(n,(o,u)=>{a&&en(o)?e[u]=Db(o,a):e[u]=o},{allOwnKeys:s}),e),pT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),gT=(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)},yT=(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&&om(e)}while(e&&(!a||a(e,n))&&e!==Object.prototype);return n},vT=(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},xT=e=>{if(!e)return null;if(Bi(e))return e;let n=e.length;if(!Pb(n))return null;const a=new Array(n);for(;n-- >0;)a[n]=e[n];return a},bT=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&om(Uint8Array)),wT=(e,n)=>{const s=(e&&e[Yu]).call(e);let o;for(;(o=s.next())&&!o.done;){const u=o.value;n.call(e,u[0],u[1])}},ST=(e,n)=>{let a;const s=[];for(;(a=e.exec(n))!==null;)s.push(a);return s},jT=Bn("HTMLFormElement"),TT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,s,o){return s.toUpperCase()+o}),lv=(({hasOwnProperty:e})=>(n,a)=>e.call(n,a))(Object.prototype),ET=Bn("RegExp"),Bb=(e,n)=>{const a=Object.getOwnPropertyDescriptors(e),s={};jo(a,(o,u)=>{let c;(c=n(o,u,e))!==!1&&(s[u]=c||o)}),Object.defineProperties(e,s)},AT=e=>{Bb(e,(n,a)=>{if(en(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const s=e[a];if(en(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+"'")})}})},NT=(e,n)=>{const a={},s=o=>{o.forEach(u=>{a[u]=!0})};return Bi(e)?s(e):s(String(e).split(n)),a},_T=()=>{},OT=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function kT(e){return!!(e&&en(e.append)&&e[Mb]==="FormData"&&e[Yu])}const RT=e=>{const n=new Array(10),a=(s,o)=>{if(So(s)){if(n.indexOf(s)>=0)return;if(wo(s))return s;if(!("toJSON"in s)){n[o]=s;const u=Bi(s)?[]:{};return jo(s,(c,f)=>{const h=a(c,o+1);!uo(h)&&(u[f]=h)}),n[o]=void 0,u}}return s};return a(e,0)},CT=Bn("AsyncFunction"),DT=e=>e&&(So(e)||en(e))&&en(e.then)&&en(e.catch),Fb=((e,n)=>e?setImmediate:n?((a,s)=>(Ta.addEventListener("message",({source:o,data:u})=>{o===Ta&&u===a&&s.length&&s.shift()()},!1),o=>{s.push(o),Ta.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",en(Ta.postMessage)),MT=typeof queueMicrotask<"u"?queueMicrotask.bind(Ta):typeof process<"u"&&process.nextTick||Fb,LT=e=>e!=null&&en(e[Yu]),me={isArray:Bi,isArrayBuffer:Lb,isBuffer:wo,isFormData:oT,isArrayBufferView:$j,isString:Jj,isNumber:Pb,isBoolean:eT,isObject:So,isPlainObject:au,isEmptyObject:tT,isReadableStream:uT,isRequest:cT,isResponse:dT,isHeaders:fT,isUndefined:uo,isDate:nT,isFile:rT,isBlob:aT,isRegExp:ET,isFunction:en,isStream:sT,isURLSearchParams:lT,isTypedArray:bT,isFileList:iT,forEach:jo,merge:Th,extend:mT,trim:hT,stripBOM:pT,inherits:gT,toFlatObject:yT,kindOf:Ku,kindOfTest:Bn,endsWith:vT,toArray:xT,forEachEntry:wT,matchAll:ST,isHTMLForm:jT,hasOwnProperty:lv,hasOwnProp:lv,reduceDescriptors:Bb,freezeMethods:AT,toObjectSet:NT,toCamelCase:TT,noop:_T,toFiniteNumber:OT,findKey:zb,global:Ta,isContextDefined:Ub,isSpecCompliantForm:kT,toJSONObject:RT,isAsyncFn:CT,isThenable:DT,setImmediate:Fb,asap:MT,isIterable:LT};function Be(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(Be,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 Vb=Be.prototype,Hb={};["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=>{Hb[e]={value:e}});Object.defineProperties(Be,Hb);Object.defineProperty(Vb,"isAxiosError",{value:!0});Be.from=(e,n,a,s,o,u)=>{const c=Object.create(Vb);return me.toFlatObject(e,c,function(h){return h!==Error.prototype},f=>f!=="isAxiosError"),Be.call(c,e.message,n,a,s,o),c.cause=e,c.name=e.name,u&&Object.assign(c,u),c};const PT=null;function Eh(e){return me.isPlainObject(e)||me.isArray(e)}function Ib(e){return me.endsWith(e,"[]")?e.slice(0,-2):e}function uv(e,n,a){return e?e.concat(n).map(function(o,u){return o=Ib(o),!a&&u?"["+o+"]":o}).join(a?".":""):n}function zT(e){return me.isArray(e)&&!e.some(Eh)}const UT=me.toFlatObject(me,{},null,function(n){return/^is[A-Z]/.test(n)});function Zu(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 Be("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 E=_;if(_&&!N&&typeof _=="object"){if(me.endsWith(S,"{}"))S=s?S:S.slice(0,-2),_=JSON.stringify(_);else if(me.isArray(_)&&zT(_)||(me.isFileList(_)||me.endsWith(S,"[]"))&&(E=me.toArray(_)))return S=Ib(S),E.forEach(function(L,G){!(me.isUndefined(L)||L===null)&&n.append(c===!0?uv([S],G,u):c===null?S:S+"[]",p(L))}),!1}return Eh(_)?!0:(n.append(uv(N,S,u),p(_)),!1)}const v=[],w=Object.assign(UT,{defaultVisitor:g,convertValue:p,isVisitable:Eh});function T(_,S){if(!me.isUndefined(_)){if(v.indexOf(_)!==-1)throw Error("Circular reference detected in "+S.join("."));v.push(_),me.forEach(_,function(E,M){(!(me.isUndefined(E)||E===null)&&o.call(n,E,me.isString(M)?M.trim():M,S,w))===!0&&T(E,S?S.concat(M):[M])}),v.pop()}}if(!me.isObject(e))throw new TypeError("data must be an object");return T(e),n}function cv(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return n[s]})}function lm(e,n){this._pairs=[],e&&Zu(e,this,n)}const qb=lm.prototype;qb.append=function(n,a){this._pairs.push([n,a])};qb.toString=function(n){const a=n?function(s){return n.call(this,s,cv)}:cv;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function BT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Gb(e,n,a){if(!n)return e;const s=a&&a.encode||BT;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 lm(n,a).toString(s),u){const c=e.indexOf("#");c!==-1&&(e=e.slice(0,c)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class dv{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 Yb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},FT=typeof URLSearchParams<"u"?URLSearchParams:lm,VT=typeof FormData<"u"?FormData:null,HT=typeof Blob<"u"?Blob:null,IT={isBrowser:!0,classes:{URLSearchParams:FT,FormData:VT,Blob:HT},protocols:["http","https","file","blob","url","data"]},um=typeof window<"u"&&typeof document<"u",Ah=typeof navigator=="object"&&navigator||void 0,qT=um&&(!Ah||["ReactNative","NativeScript","NS"].indexOf(Ah.product)<0),GT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",YT=um&&window.location.href||"http://localhost",KT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:um,hasStandardBrowserEnv:qT,hasStandardBrowserWebWorkerEnv:GT,navigator:Ah,origin:YT},Symbol.toStringTag,{value:"Module"})),Bt={...KT,...IT};function XT(e,n){return Zu(e,new Bt.classes.URLSearchParams,{visitor:function(a,s,o,u){return Bt.isNode&&me.isBuffer(a)?(this.append(s,a.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)},...n})}function ZT(e){return me.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function WT(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 Kb(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]=WT(o[c])),!f)}if(me.isFormData(e)&&me.isFunction(e.entries)){const a={};return me.forEachEntry(e,(s,o)=>{n(ZT(s),o,a,0)}),a}return null}function QT(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 To={transitional:Yb,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(Kb(n)):n;if(me.isArrayBuffer(n)||me.isBuffer(n)||me.isStream(n)||me.isFile(n)||me.isBlob(n)||me.isReadableStream(n))return n;if(me.isArrayBufferView(n))return n.buffer;if(me.isURLSearchParams(n))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let f;if(u){if(s.indexOf("application/x-www-form-urlencoded")>-1)return XT(n,this.formSerializer).toString();if((f=me.isFileList(n))||s.indexOf("multipart/form-data")>-1){const h=this.env&&this.env.FormData;return Zu(f?{"files[]":n}:n,h&&new h,this.formSerializer)}}return u||o?(a.setContentType("application/json",!1),QT(n)):n}],transformResponse:[function(n){const a=this.transitional||To.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"?Be.from(f,Be.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:Bt.classes.FormData,Blob:Bt.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=>{To.headers[e]={}});const $T=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"]),JT=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]&&$T[a])&&(a==="set-cookie"?n[a]?n[a].push(s):n[a]=[s]:n[a]=n[a]?n[a]+", "+s:s)}),n},fv=Symbol("internals");function Is(e){return e&&String(e).trim().toLowerCase()}function iu(e){return e===!1||e==null?e:me.isArray(e)?e.map(iu):String(e)}function eE(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 tE=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Df(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 nE(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,a,s)=>a.toUpperCase()+s)}function rE(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 tn=class{constructor(n){n&&this.set(n)}set(n,a,s){const o=this;function u(f,h,p){const g=Is(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]=iu(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())&&!tE(n))c(JT(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=Is(n),n){const s=me.findKey(this,n);if(s){const o=this[s];if(!a)return o;if(a===!0)return eE(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=Is(n),n){const s=me.findKey(this,n);return!!(s&&this[s]!==void 0&&(!a||Df(this,this[s],s,a)))}return!1}delete(n,a){const s=this;let o=!1;function u(c){if(c=Is(c),c){const f=me.findKey(s,c);f&&(!a||Df(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||Df(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]=iu(o),delete a[u];return}const f=n?nE(u):String(u).trim();f!==u&&delete a[u],a[f]=iu(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[fv]=this[fv]={accessors:{}}).accessors,o=this.prototype;function u(c){const f=Is(c);s[f]||(rE(o,c),s[f]=!0)}return me.isArray(n)?n.forEach(u):u(n),this}};tn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);me.reduceDescriptors(tn.prototype,({value:e},n)=>{let a=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(s){this[a]=s}}});me.freezeMethods(tn);function Mf(e,n){const a=this||To,s=n||a,o=tn.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 Fi(e,n,a){Be.call(this,e??"canceled",Be.ERR_CANCELED,n,a),this.name="CanceledError"}me.inherits(Fi,Be,{__CANCEL__:!0});function Zb(e,n,a){const s=a.config.validateStatus;!a.status||!s||s(a.status)?e(a):n(new Be("Request failed with status code "+a.status,[Be.ERR_BAD_REQUEST,Be.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function aE(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function iE(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,w=0;for(;v!==o;)w+=a[v++],v=v%e;if(o=(o+1)%e,o===u&&(u=(u+1)%e),p-c<n)return;const T=g&&p-g;return T?Math.round(w*1e3/T):void 0}}function sE(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 Eu=(e,n,a=3)=>{let s=0;const o=iE(50,250);return sE(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)},hv=(e,n)=>{const a=e!=null;return[s=>n[0]({lengthComputable:a,total:e,loaded:s}),n[1]]},mv=e=>(...n)=>me.asap(()=>e(...n)),oE=Bt.hasStandardBrowserEnv?((e,n)=>a=>(a=new URL(a,Bt.origin),e.protocol===a.protocol&&e.host===a.host&&(n||e.port===a.port)))(new URL(Bt.origin),Bt.navigator&&/(msie|trident)/i.test(Bt.navigator.userAgent)):()=>!0,lE=Bt.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 uE(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function cE(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function Wb(e,n,a){let s=!uE(n);return e&&(s||a==!1)?cE(e,n):n}const pv=e=>e instanceof tn?{...e}:e;function Da(e,n){n=n||{};const a={};function s(p,g,v,w){return me.isPlainObject(p)&&me.isPlainObject(g)?me.merge.call({caseless:w},p,g):me.isPlainObject(g)?me.merge({},g):me.isArray(g)?g.slice():g}function o(p,g,v,w){if(me.isUndefined(g)){if(!me.isUndefined(p))return s(void 0,p,v,w)}else return s(p,g,v,w)}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(pv(p),pv(g),v,!0)};return me.forEach(Object.keys({...e,...n}),function(g){const v=h[g]||o,w=v(e[g],n[g],g);me.isUndefined(w)&&v!==f||(a[g]=w)}),a}const Qb=e=>{const n=Da({},e);let{data:a,withXSRFToken:s,xsrfHeaderName:o,xsrfCookieName:u,headers:c,auth:f}=n;n.headers=c=tn.from(c),n.url=Gb(Wb(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(Bt.hasStandardBrowserEnv||Bt.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(Bt.hasStandardBrowserEnv&&(s&&me.isFunction(s)&&(s=s(n)),s||s!==!1&&oE(n.url))){const p=o&&u&&lE.read(u);p&&c.set(o,p)}return n},dE=typeof XMLHttpRequest<"u",fE=dE&&function(e){return new Promise(function(a,s){const o=Qb(e);let u=o.data;const c=tn.from(o.headers).normalize();let{responseType:f,onUploadProgress:h,onDownloadProgress:p}=o,g,v,w,T,_;function S(){T&&T(),_&&_(),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 E(){if(!N)return;const L=tn.from("getAllResponseHeaders"in N&&N.getAllResponseHeaders()),A={data:!f||f==="text"||f==="json"?N.responseText:N.response,status:N.status,statusText:N.statusText,headers:L,config:e,request:N};Zb(function(F){a(F),S()},function(F){s(F),S()},A),N=null}"onloadend"in N?N.onloadend=E:N.onreadystatechange=function(){!N||N.readyState!==4||N.status===0&&!(N.responseURL&&N.responseURL.indexOf("file:")===0)||setTimeout(E)},N.onabort=function(){N&&(s(new Be("Request aborted",Be.ECONNABORTED,e,N)),N=null)},N.onerror=function(){s(new Be("Network Error",Be.ERR_NETWORK,e,N)),N=null},N.ontimeout=function(){let G=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||Yb;o.timeoutErrorMessage&&(G=o.timeoutErrorMessage),s(new Be(G,A.clarifyTimeoutError?Be.ETIMEDOUT:Be.ECONNABORTED,e,N)),N=null},u===void 0&&c.setContentType(null),"setRequestHeader"in N&&me.forEach(c.toJSON(),function(G,A){N.setRequestHeader(A,G)}),me.isUndefined(o.withCredentials)||(N.withCredentials=!!o.withCredentials),f&&f!=="json"&&(N.responseType=o.responseType),p&&([w,_]=Eu(p,!0),N.addEventListener("progress",w)),h&&N.upload&&([v,T]=Eu(h),N.upload.addEventListener("progress",v),N.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(g=L=>{N&&(s(!L||L.type?new Fi(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=aE(o.url);if(M&&Bt.protocols.indexOf(M)===-1){s(new Be("Unsupported protocol "+M+":",Be.ERR_BAD_REQUEST,e));return}N.send(u||null)})},hE=(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 Be?g:new Fi(g instanceof Error?g.message:g))}};let c=n&&setTimeout(()=>{c=null,u(new Be(`timeout ${n} of ms exceeded`,Be.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}},mE=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},pE=async function*(e,n){for await(const a of gE(e))yield*mE(a,n)},gE=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()}},gv=(e,n,a,s)=>{const o=pE(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 w=u+=v;a(w)}h.enqueue(new Uint8Array(g))}catch(p){throw f(p),p}},cancel(h){return f(h),o.return()}},{highWaterMark:2})},Wu=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",$b=Wu&&typeof ReadableStream=="function",yE=Wu&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Jb=(e,...n)=>{try{return!!e(...n)}catch{return!1}},vE=$b&&Jb(()=>{let e=!1;const n=new Request(Bt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),yv=64*1024,Nh=$b&&Jb(()=>me.isReadableStream(new Response("").body)),Au={stream:Nh&&(e=>e.body)};Wu&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!Au[n]&&(Au[n]=me.isFunction(e[n])?a=>a[n]():(a,s)=>{throw new Be(`Response type '${n}' is not supported`,Be.ERR_NOT_SUPPORT,s)})})})(new Response);const xE=async e=>{if(e==null)return 0;if(me.isBlob(e))return e.size;if(me.isSpecCompliantForm(e))return(await new Request(Bt.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 yE(e)).byteLength},bE=async(e,n)=>{const a=me.toFiniteNumber(e.getContentLength());return a??xE(n)},wE=Wu&&(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:w}=Qb(e);p=p?(p+"").toLowerCase():"text";let T=hE([o,u&&u.toAbortSignal()],c),_;const S=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let N;try{if(h&&vE&&a!=="get"&&a!=="head"&&(N=await bE(g,s))!==0){let A=new Request(n,{method:"POST",body:s,duplex:"half"}),z;if(me.isFormData(s)&&(z=A.headers.get("content-type"))&&g.setContentType(z),A.body){const[F,V]=hv(N,Eu(mv(h)));s=gv(A.body,yv,F,V)}}me.isString(v)||(v=v?"include":"omit");const E="credentials"in Request.prototype;_=new Request(n,{...w,signal:T,method:a.toUpperCase(),headers:g.normalize().toJSON(),body:s,duplex:"half",credentials:E?v:void 0});let M=await fetch(_,w);const L=Nh&&(p==="stream"||p==="response");if(Nh&&(f||L&&S)){const A={};["status","statusText","headers"].forEach(D=>{A[D]=M[D]});const z=me.toFiniteNumber(M.headers.get("content-length")),[F,V]=f&&hv(z,Eu(mv(f),!0))||[];M=new Response(gv(M.body,yv,F,()=>{V&&V(),S&&S()}),A)}p=p||"text";let G=await Au[me.findKey(Au,p)||"text"](M,e);return!L&&S&&S(),await new Promise((A,z)=>{Zb(A,z,{data:G,headers:tn.from(M.headers),status:M.status,statusText:M.statusText,config:e,request:_})})}catch(E){throw S&&S(),E&&E.name==="TypeError"&&/Load failed|fetch/i.test(E.message)?Object.assign(new Be("Network Error",Be.ERR_NETWORK,e,_),{cause:E.cause||E}):Be.from(E,E&&E.code,e,_)}}),_h={http:PT,xhr:fE,fetch:wE};me.forEach(_h,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const vv=e=>`- ${e}`,SE=e=>me.isFunction(e)||e===null||e===!1,e1={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,!SE(a)&&(s=_h[(c=String(a)).toLowerCase()],s===void 0))throw new Be(`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(vv).join(`
`):" "+vv(u[0]):"as no adapter specified";throw new Be("There is no suitable adapter to dispatch the request "+c,"ERR_NOT_SUPPORT")}return s},adapters:_h};function Lf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Fi(null,e)}function xv(e){return Lf(e),e.headers=tn.from(e.headers),e.data=Mf.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),e1.getAdapter(e.adapter||To.adapter)(e).then(function(s){return Lf(e),s.data=Mf.call(e,e.transformResponse,s),s.headers=tn.from(s.headers),s},function(s){return Xb(s)||(Lf(e),s&&s.response&&(s.response.data=Mf.call(e,e.transformResponse,s.response),s.response.headers=tn.from(s.response.headers))),Promise.reject(s)})}const t1="1.11.0",Qu={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{Qu[e]=function(s){return typeof s===e||"a"+(n<1?"n ":" ")+e}});const bv={};Qu.transitional=function(n,a,s){function o(u,c){return"[Axios v"+t1+"] Transitional option '"+u+"'"+c+(s?". "+s:"")}return(u,c,f)=>{if(n===!1)throw new Be(o(c," has been removed"+(a?" in "+a:"")),Be.ERR_DEPRECATED);return a&&!bv[c]&&(bv[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}};Qu.spelling=function(n){return(a,s)=>(console.warn(`${s} is likely a misspelling of ${n}`),!0)};function jE(e,n,a){if(typeof e!="object")throw new Be("options must be an object",Be.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 Be("option "+u+" must be "+h,Be.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Be("Unknown option "+u,Be.ERR_BAD_OPTION)}}const su={assertOptions:jE,validators:Qu},Kn=su.validators;let _a=class{constructor(n){this.defaults=n||{},this.interceptors={request:new dv,response:new dv}}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=Da(this.defaults,a);const{transitional:s,paramsSerializer:o,headers:u}=a;s!==void 0&&su.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}:su.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),su.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=tn.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,w;if(!h){const _=[xv.bind(this),void 0];for(_.unshift(...f),_.push(...p),w=_.length,g=Promise.resolve(a);v<w;)g=g.then(_[v++],_[v++]);return g}w=f.length;let T=a;for(v=0;v<w;){const _=f[v++],S=f[v++];try{T=_(T)}catch(N){S.call(this,N);break}}try{g=xv.call(this,T)}catch(_){return Promise.reject(_)}for(v=0,w=p.length;v<w;)g=g.then(p[v++],p[v++]);return g}getUri(n){n=Da(this.defaults,n);const a=Wb(n.baseURL,n.url,n.allowAbsoluteUrls);return Gb(a,n.params,n.paramsSerializer)}};me.forEach(["delete","get","head","options"],function(n){_a.prototype[n]=function(a,s){return this.request(Da(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(Da(f||{},{method:n,headers:s?{"Content-Type":"multipart/form-data"}:{},url:u,data:c}))}}_a.prototype[n]=a(),_a.prototype[n+"Form"]=a(!0)});let TE=class n1{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 Fi(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 n1(function(o){n=o}),cancel:n}}};function EE(e){return function(a){return e.apply(null,a)}}function AE(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 r1(e){const n=new _a(e),a=Db(_a.prototype.request,n);return me.extend(a,_a.prototype,n,{allOwnKeys:!0}),me.extend(a,n,null,{allOwnKeys:!0}),a.create=function(o){return r1(Da(e,o))},a}const dt=r1(To);dt.Axios=_a;dt.CanceledError=Fi;dt.CancelToken=TE;dt.isCancel=Xb;dt.VERSION=t1;dt.toFormData=Zu;dt.AxiosError=Be;dt.Cancel=dt.CanceledError;dt.all=function(n){return Promise.all(n)};dt.spread=EE;dt.isAxiosError=AE;dt.mergeConfig=Da;dt.AxiosHeaders=tn;dt.formToJSON=e=>Kb(me.isHTMLForm(e)?new FormData(e):e);dt.getAdapter=e1.getAdapter;dt.HttpStatusCode=Oh;dt.default=dt;const{Axios:WC,AxiosError:QC,CanceledError:$C,isCancel:JC,CancelToken:eD,VERSION:tD,all:nD,Cancel:rD,isAxiosError:aD,spread:iD,toFormData:sD,AxiosHeaders:oD,HttpStatusCode:lD,formToJSON:uD,getAdapter:cD,mergeConfig:dD}=dt,Nu="https://aaogobackend.xyz/api",ji="https://aaogobackend.xyz/",It={SIGNUP:"/user/signup",LOGIN:"/user/login",VERIFY_OTP:"/user/verify-otp",GET_CURRENT_USER:"/drivers/get-current-user",LOGOUT:"/user/logout",FORGOT_PASSWORD:"/user/forgot-password",RESET_PASSWORD:"/user/reset-password",REFERRAL_TREE:"/user/referral-tree",GET_USER_BY_ID:"/user/referral-tree",RESEND_OTP:"/user/resend-otp",REFERRAL_LINK:"/user/referral-link",GET_USER_BY_USERNAME:"/user/by-username",SEND_EMAIL_OTP:"/email-verification/send-otp"},NE={TIMEOUT:1e4},$u=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},a1=e=>{if(!e)return!1;const n=$u(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 Zl(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 _E={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 kh(e,n){function a(o,u,c){if(!(typeof document>"u")){c=Zl({},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,"",Zl({},u,{expires:-1}))},withAttributes:function(o){return kh(this.converter,Zl({},this.attributes,o))},withConverter:function(o){return kh(Zl({},this.converter,o),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(e)}})}var Qs=kh(_E,{path:"/"});const Ut={TOKEN:"auth_token",USER:"auth_user",SIGNUP_EMAIL:"signup_email",SESSION_ID:"session_id"},OE={expires:7,secure:!0,sameSite:"strict"};class kE{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(Ut.SESSION_ID);return console.log("SessionManager - getSessionId:",n),n}setSessionId(n){localStorage.setItem(Ut.SESSION_ID,n),console.log("SessionManager - setSessionId:",n)}getToken(){const n=Qs.get(Ut.TOKEN),a=localStorage.getItem(Ut.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 Qs.set(Ut.TOKEN,n,OE),localStorage.setItem(Ut.TOKEN,n),console.log("SessionManager - setToken - Token stored successfully"),console.log("SessionManager - setToken - Token in cookies:",!!Qs.get(Ut.TOKEN)),console.log("SessionManager - setToken - Token in localStorage:",!!localStorage.getItem(Ut.TOKEN)),!0}catch(a){return console.error("SessionManager - setToken - Error:",a),!1}}removeToken(){try{return Qs.remove(Ut.TOKEN),localStorage.removeItem(Ut.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(Ut.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(Ut.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(Ut.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(Ut.SIGNUP_EMAIL);return console.log("SessionManager - getSignupEmail:",n),n}setSignupEmail(n){n&&(localStorage.setItem(Ut.SIGNUP_EMAIL,n),console.log("SessionManager - setSignupEmail:",n))}removeSignupEmail(){localStorage.removeItem(Ut.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 Ie=new kE,qt=dt.create({baseURL:Nu,headers:{"Content-Type":"application/json"},timeout:NE.TIMEOUT});qt.interceptors.request.use(e=>{const n=Ie.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=$u(n);a1(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"),Ie.clearSession(),window.dispatchEvent(new CustomEvent("sessionCleared",{detail:{reason:"401_unauthorized",endpoint:e.config?.url}})))),Promise.reject(e))));const dn={signup:e=>(console.log("authAPI.signup - Sending request with data:",JSON.stringify(e,null,2)),qt.post(It.SIGNUP,e)),sendEmailOTP:e=>(console.log("authAPI.sendEmailOTP - Sending request with data:",JSON.stringify(e,null,2)),qt.post(It.SEND_EMAIL_OTP,e)),verifyOTP:e=>(console.log("authAPI.verifyOTP - Sending request with data:",JSON.stringify(e,null,2)),qt.post(It.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(It.LOGIN,e)),getCurrentUser:()=>(console.log("authAPI.getCurrentUser - Sending request"),qt.get(It.GET_CURRENT_USER)),logout:()=>(console.log("authAPI.logout - Sending request"),qt.post(It.LOGOUT)),forgotPassword:e=>(console.log("authAPI.forgotPassword - Sending request with data:",JSON.stringify(e,null,2)),qt.post(It.FORGOT_PASSWORD,e)),resetPassword:e=>(console.log("authAPI.resetPassword - Sending request with data:",JSON.stringify(e,null,2)),qt.post(It.RESET_PASSWORD,e)),getReferralTree:e=>(console.log("authAPI.getReferralTree - Sending request with userId:",e),qt.get(e?`${It.REFERRAL_TREE}?userId=${e}`:It.REFERRAL_TREE)),getUserById:e=>(console.log("authAPI.getUserById - Sending request with userId:",e),qt.get(`${It.GET_USER_BY_ID}?userId=${e}`)),resendOTP:e=>(console.log("authAPI.resendOTP - Sending request with data:",JSON.stringify(e,null,2)),qt.post(It.RESEND_OTP,e)),getReferralLink:()=>(console.log("authAPI.getReferralLink - Sending request"),qt.get(It.REFERRAL_LINK)),getUserByUsername:e=>(console.log("authAPI.getUserByUsername - Sending request with username:",e),qt.get(`${It.GET_USER_BY_USERNAME}?username=${e}`))},Ju={user:null,token:Ie.getToken(),isAuthenticated:Ie.isAuthenticated(),loading:!1,error:null,signupEmail:Ie.getSignupEmail(),referralTree:null,referralTreeLoading:!1,referralTreeError:null,referralTreeAttempted:!1};console.log("=== REDUX INITIAL STATE ===");console.log("Session info:",Ie.getSessionInfo());console.log("Initial state user:",Ju.user);console.log("Initial state token:",Ju.token);console.log("Initial state isAuthenticated:",Ju.isAuthenticated);console.log("==========================");const ou=ea("user/login",async(e,{dispatch:n,rejectWithValue:a})=>{console.log("loginUser - Attempting login with credentials:",e);const s=La("Logging in...");try{const o=await dn.login(e);Ft(s);const{user:u,token:c}=o.data;if(!Ie.createSession(c,u))throw new Error("Failed to create user session");return console.log("loginUser - Success, user:",u),Zr("Login successful!"),{user:u,token:c}}catch(o){Ft(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")}}),lu=ea("user/signup",async(e,{rejectWithValue:n})=>{const a=La("Creating account...");try{const s=await dn.signup(e);return Ft(a),s.data.token&&s.data.user?Zr(s.data.message||"Registration completed successfully"):Zr(s.data.message||"Account created successfully"),s.data}catch(s){Ft(a);const o=s.response?.data||{message:s.message||"Signup failed"};return console.log("signupUser - Error:",o),mn(o.message||"Signup failed"),n(o)}}),uu=ea("user/forgotPassword",async(e,{rejectWithValue:n})=>{const a=La("Sending password reset OTP...");try{const s=await dn.forgotPassword(e);return Ft(a),Ie.setSignupEmail(e.email),s.data.userId&&localStorage.setItem("signupUserId",s.data.userId),Zr(s.data.message||"Reset OTP sent to email."),s.data}catch(s){Ft(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")}}),cu=ea("user/resetPassword",async(e,{rejectWithValue:n})=>{const a=La("Resetting password...");try{const s=await dn.resetPassword(e);return Ft(a),Ie.removeSignupEmail(),localStorage.removeItem("signupUserId"),Zr(s.data.message||"Password reset successful."),s.data}catch(s){Ft(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")}}),du=ea("user/logout",async(e,{rejectWithValue:n})=>{const a=La("Logging out...");try{return Ie.clearSession(),Ft(a),Zr("Logged out successfully"),{message:"Logged out successfully"}}catch(s){Ft(a);const o=s.message||"Logout failed";return mn(o),n(o)}}),Oi=ea("user/checkCurrentUser",async(e,{rejectWithValue:n})=>{try{const a=await dn.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(!Ie.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"),Ie.clearSession()),n(s.message||"Failed to get user data")}}),Pf=ea("user/resendOTP",async(e,{rejectWithValue:n})=>{const a=La("Resending OTP...");try{const s=await dn.resendOTP({email:e});return Ft(a),Zr(s.data.message||"OTP resent successfully!"),s.data}catch(s){Ft(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")}}),ki=ea("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=Ie.getToken(),u=Ie.getUser(),c=Ie.isAuthenticated();if(!o||!u||!c)return console.log("fetchReferralTree - No valid session"),n("No valid session");const f=La("Loading referral tree...");try{const h=await dn.getReferralTree();return Ft(f),console.log("fetchReferralTree - Success:",h.data),h.data}catch{console.log("fetchReferralTree - API call failed, trying fetch directly");try{const p=Ie.getToken().replace(/['"]/g,""),g=await fetch(`${Nu}/user/referral-tree`,{method:"GET",headers:{Authorization:`Bearer ${p}`,"Content-Type":"application/json"}});if(g.ok){const v=await g.json();return Ft(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),Ft(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),Ft(f),mn(p.message||"Failed to load referral tree"),n(p.message||"Failed to load referral tree")}}}),i1=Gj({name:"user",initialState:Ju,reducers:{setUser:(e,n)=>{e.user=n.payload,e.isAuthenticated=!0,Ie.setUser(n.payload),console.log("setUser - Updated user:",n.payload)},setToken:(e,n)=>{e.token=n.payload,e.isAuthenticated=!0,Ie.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,Ie.clearSession(),console.log("logout - Session cleared"),Zr("Logged out successfully")},clearError:e=>{e.error=null},setLoading:(e,n)=>{e.loading=n.payload},clearSignupEmail:e=>{e.signupEmail=null,Ie.removeSignupEmail()},clearReferralTree:e=>{e.referralTree=null,e.referralTreeError=null,e.referralTreeAttempted=!1},syncWithSession:e=>{const n=Ie.getUser(),a=Ie.getToken();e.user=n,e.token=a,e.isAuthenticated=Ie.isAuthenticated(),e.signupEmail=Ie.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(ou.pending,n=>{n.loading=!0,n.error=null,console.log("loginUser - Pending")}).addCase(ou.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(ou.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("loginUser - Rejected:",a.payload)}).addCase(lu.pending,n=>{n.loading=!0,n.error=null,console.log("signupUser - Pending")}).addCase(lu.fulfilled,(n,a)=>{n.loading=!1,n.signupData=a.payload,n.signupEmail=Ie.getSignupEmail(),n.error=null,console.log("signupUser - Fulfilled, signupEmail:",n.signupEmail)}).addCase(lu.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("signupUser - Rejected:",a.payload)}).addCase(uu.pending,n=>{n.loading=!0,n.error=null,console.log("forgotPassword - Pending")}).addCase(uu.fulfilled,(n,a)=>{n.loading=!1,n.signupEmail=Ie.getSignupEmail(),n.error=null,console.log("forgotPassword - Fulfilled, signupEmail:",n.signupEmail)}).addCase(uu.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("forgotPassword - Rejected:",a.payload)}).addCase(cu.pending,n=>{n.loading=!0,n.error=null,console.log("resetPassword - Pending")}).addCase(cu.fulfilled,(n,a)=>{n.loading=!1,n.signupEmail=null,n.error=null,console.log("resetPassword - Fulfilled")}).addCase(cu.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("resetPassword - Rejected:",a.payload)}).addCase(du.pending,n=>{n.loading=!0,n.error=null,console.log("logoutUser - Pending")}).addCase(du.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(du.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,Ie.clearSession(),console.log("logoutUser - Rejected:",a.payload)}).addCase(Oi.pending,n=>{n.loading=!0,n.error=null,console.log("checkCurrentUser - Pending")}).addCase(Oi.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(Oi.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,Ie.clearSession(),console.log("checkCurrentUser - Rejected: 401 Unauthorized, session cleared")):console.log("checkCurrentUser - Rejected, keeping session:",a.payload)}).addCase(ki.pending,n=>{n.referralTreeLoading=!0,n.referralTreeError=null,n.referralTreeAttempted=!0,console.log("fetchReferralTree - Pending")}).addCase(ki.fulfilled,(n,a)=>{n.referralTreeLoading=!1,n.referralTree=a.payload.referralTree,n.referralTreeError=null,console.log("fetchReferralTree - Fulfilled")}).addCase(ki.rejected,(n,a)=>{n.referralTreeLoading=!1,n.referralTreeError=a.payload,n.referralTreeAttempted=!0,console.log("fetchReferralTree - Rejected:",a.payload)}).addCase(Pf.pending,n=>{n.loading=!0,n.error=null,console.log("resendOTP - Pending")}).addCase(Pf.fulfilled,(n,a)=>{n.loading=!1,n.error=null,console.log("resendOTP - Fulfilled")}).addCase(Pf.rejected,(n,a)=>{n.loading=!1,n.error=a.payload,console.log("resendOTP - Rejected:",a.payload)})}}),{setUser:fD,setToken:hD,logout:mD,clearError:Li,setLoading:zf,clearSignupEmail:pD,clearReferralTree:gD,syncWithSession:wv,resetReferralTreeAttempt:RE}=i1.actions,cm=e=>e.user.user,s1=e=>e.user.token,dm=e=>e.user.isAuthenticated,Eo=e=>e.user.loading,ec=e=>e.user.error,CE=e=>e.user.signupEmail,DE=e=>e.user.referralTree,ME=e=>e.user.referralTreeLoading,LE=e=>e.user.referralTreeError,PE=i1.reducer,zE=kj({reducer:{user:PE},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 Sv="popstate";function UE(e={}){function n(s,o){let{pathname:u,search:c,hash:f}=s.location;return Rh("",{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:co(o)}return FE(n,a,null,e)}function ot(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function On(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function BE(){return Math.random().toString(36).substring(2,10)}function jv(e,n){return{usr:e.state,key:e.key,idx:n}}function Rh(e,n,a=null,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Vi(n):n,state:a,key:n&&n.key||s||BE()}}function co({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 Vi(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 FE(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(),E=N==null?null:N-p;p=N,h&&h({action:f,location:S.location,delta:E})}function w(N,E){f="PUSH";let M=Rh(S.location,N,E);p=g()+1;let L=jv(M,p),G=S.createHref(M);try{c.pushState(L,"",G)}catch(A){if(A instanceof DOMException&&A.name==="DataCloneError")throw A;o.location.assign(G)}u&&h&&h({action:f,location:S.location,delta:1})}function T(N,E){f="REPLACE";let M=Rh(S.location,N,E);p=g();let L=jv(M,p),G=S.createHref(M);c.replaceState(L,"",G),u&&h&&h({action:f,location:S.location,delta:0})}function _(N){return VE(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(Sv,v),h=N,()=>{o.removeEventListener(Sv,v),h=null}},createHref(N){return n(o,N)},createURL:_,encodeLocation(N){let E=_(N);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:w,replace:T,go(N){return c.go(N)}};return S}function VE(e,n=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),ot(a,"No window.location.(origin|href) available to create URL");let s=typeof e=="string"?e:co(e);return s=s.replace(/ $/,"%20"),!n&&s.startsWith("//")&&(s=a+s),new URL(s,a)}function o1(e,n,a="/"){return HE(e,n,a,!1)}function HE(e,n,a,s){let o=typeof n=="string"?Vi(n):n,u=vr(o.pathname||"/",a);if(u==null)return null;let c=l1(e);IE(c);let f=null;for(let h=0;f==null&&h<c.length;++h){let p=eA(u);f=$E(c[h],p,s)}return f}function l1(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("/")&&(ot(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=pr([s,h.relativePath]),g=a.concat(h);u.children&&u.children.length>0&&(ot(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${p}".`),l1(u.children,n,g,p)),!(u.path==null&&!u.index)&&n.push({path:p,score:WE(p,u.index),routesMeta:g})};return e.forEach((u,c)=>{if(u.path===""||!u.path?.includes("?"))o(u,c);else for(let f of u1(u.path))o(u,c,f)}),n}function u1(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=u1(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 IE(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:QE(n.routesMeta.map(s=>s.childrenIndex),a.routesMeta.map(s=>s.childrenIndex)))}var qE=/^:[\w-]+$/,GE=3,YE=2,KE=1,XE=10,ZE=-2,Tv=e=>e==="*";function WE(e,n){let a=e.split("/"),s=a.length;return a.some(Tv)&&(s+=ZE),n&&(s+=YE),a.filter(o=>!Tv(o)).reduce((o,u)=>o+(qE.test(u)?GE:u===""?KE:XE),s)}function QE(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 $E(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=_u({path:h.relativePath,caseSensitive:h.caseSensitive,end:p},g),w=h.route;if(!v&&p&&a&&!s[s.length-1].route.index&&(v=_u({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},g)),!v)return null;Object.assign(o,v.params),c.push({params:o,pathname:pr([u,v.pathname]),pathnameBase:aA(pr([u,v.pathnameBase])),route:w}),v.pathnameBase!=="/"&&(u=pr([u,v.pathnameBase]))}return c}function _u(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,s]=JE(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},w)=>{if(g==="*"){let _=f[w]||"";c=u.slice(0,u.length-_.length).replace(/(.)\/+$/,"$1")}const T=f[w];return v&&!T?p[g]=void 0:p[g]=(T||"").replace(/%2F/g,"/"),p},{}),pathname:u,pathnameBase:c,pattern:e}}function JE(e,n=!1,a=!0){On(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 eA(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return On(!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 vr(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 tA(e,n="/"){let{pathname:a,search:s="",hash:o=""}=typeof e=="string"?Vi(e):e;return{pathname:a?a.startsWith("/")?a:nA(a,n):n,search:iA(s),hash:sA(o)}}function nA(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 Uf(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 rA(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function fm(e){let n=rA(e);return n.map((a,s)=>s===n.length-1?a.pathname:a.pathnameBase)}function hm(e,n,a,s=!1){let o;typeof e=="string"?o=Vi(e):(o={...e},ot(!o.pathname||!o.pathname.includes("?"),Uf("?","pathname","search",o)),ot(!o.pathname||!o.pathname.includes("#"),Uf("#","pathname","hash",o)),ot(!o.search||!o.search.includes("#"),Uf("#","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 w=c.split("/");for(;w[0]==="..";)w.shift(),v-=1;o.pathname=w.join("/")}f=v>=0?n[v]:"/"}let h=tA(o,f),p=c&&c!=="/"&&c.endsWith("/"),g=(u||c===".")&&a.endsWith("/");return!h.pathname.endsWith("/")&&(p||g)&&(h.pathname+="/"),h}var pr=e=>e.join("/").replace(/\/\/+/g,"/"),aA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),iA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,sA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function oA(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var c1=["POST","PUT","PATCH","DELETE"];new Set(c1);var lA=["GET",...c1];new Set(lA);var Hi=X.createContext(null);Hi.displayName="DataRouter";var tc=X.createContext(null);tc.displayName="DataRouterState";X.createContext(!1);var d1=X.createContext({isTransitioning:!1});d1.displayName="ViewTransition";var uA=X.createContext(new Map);uA.displayName="Fetchers";var cA=X.createContext(null);cA.displayName="Await";var Fn=X.createContext(null);Fn.displayName="Navigation";var Ao=X.createContext(null);Ao.displayName="Location";var Vn=X.createContext({outlet:null,matches:[],isDataRoute:!1});Vn.displayName="Route";var mm=X.createContext(null);mm.displayName="RouteError";function dA(e,{relative:n}={}){ot(Ii(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:s}=X.useContext(Fn),{hash:o,pathname:u,search:c}=No(e,{relative:n}),f=u;return a!=="/"&&(f=u==="/"?a:pr([a,u])),s.createHref({pathname:f,search:c,hash:o})}function Ii(){return X.useContext(Ao)!=null}function Rn(){return ot(Ii(),"useLocation() may be used only in the context of a <Router> component."),X.useContext(Ao).location}var f1="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function h1(e){X.useContext(Fn).static||X.useLayoutEffect(e)}function wr(){let{isDataRoute:e}=X.useContext(Vn);return e?EA():fA()}function fA(){ot(Ii(),"useNavigate() may be used only in the context of a <Router> component.");let e=X.useContext(Hi),{basename:n,navigator:a}=X.useContext(Fn),{matches:s}=X.useContext(Vn),{pathname:o}=Rn(),u=JSON.stringify(fm(s)),c=X.useRef(!1);return h1(()=>{c.current=!0}),X.useCallback((h,p={})=>{if(On(c.current,f1),!c.current)return;if(typeof h=="number"){a.go(h);return}let g=hm(h,JSON.parse(u),o,p.relative==="path");e==null&&n!=="/"&&(g.pathname=g.pathname==="/"?n:pr([n,g.pathname])),(p.replace?a.replace:a.push)(g,p.state,p)},[n,a,u,o,e])}X.createContext(null);function hA(){let{matches:e}=X.useContext(Vn),n=e[e.length-1];return n?n.params:{}}function No(e,{relative:n}={}){let{matches:a}=X.useContext(Vn),{pathname:s}=Rn(),o=JSON.stringify(fm(a));return X.useMemo(()=>hm(e,JSON.parse(o),s,n==="path"),[e,o,s,n])}function mA(e,n){return m1(e,n)}function m1(e,n,a,s){ot(Ii(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o}=X.useContext(Fn),{matches:u}=X.useContext(Vn),c=u[u.length-1],f=c?c.params:{},h=c?c.pathname:"/",p=c?c.pathnameBase:"/",g=c&&c.route;{let E=g&&g.path||"";p1(h,!g||E.endsWith("*")||E.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${h}" (under <Route path="${E}">) 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="${E}"> to <Route path="${E==="/"?"*":`${E}/*`}">.`)}let v=Rn(),w;if(n){let E=typeof n=="string"?Vi(n):n;ot(p==="/"||E.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 "${E.pathname}" was given in the \`location\` prop.`),w=E}else w=v;let T=w.pathname||"/",_=T;if(p!=="/"){let E=p.replace(/^\//,"").split("/");_="/"+T.replace(/^\//,"").split("/").slice(E.length).join("/")}let S=o1(e,{pathname:_});On(g||S!=null,`No routes matched location "${w.pathname}${w.search}${w.hash}" `),On(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 "${w.pathname}${w.search}${w.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=xA(S&&S.map(E=>Object.assign({},E,{params:Object.assign({},f,E.params),pathname:pr([p,o.encodeLocation?o.encodeLocation(E.pathname).pathname:E.pathname]),pathnameBase:E.pathnameBase==="/"?p:pr([p,o.encodeLocation?o.encodeLocation(E.pathnameBase).pathname:E.pathnameBase])})),u,a,s);return n&&N?X.createElement(Ao.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...w},navigationType:"POP"}},N):N}function pA(){let e=TA(),n=oA(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=X.createElement(X.Fragment,null,X.createElement("p",null,"💿 Hey developer 👋"),X.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",X.createElement("code",{style:u},"ErrorBoundary")," or"," ",X.createElement("code",{style:u},"errorElement")," prop on your route.")),X.createElement(X.Fragment,null,X.createElement("h2",null,"Unexpected Application Error!"),X.createElement("h3",{style:{fontStyle:"italic"}},n),a?X.createElement("pre",{style:o},a):null,c)}var gA=X.createElement(pA,null),yA=class extends X.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?X.createElement(Vn.Provider,{value:this.props.routeContext},X.createElement(mm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function vA({routeContext:e,match:n,children:a}){let s=X.useContext(Hi);return s&&s.static&&s.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=n.route.id),X.createElement(Vn.Provider,{value:e},a)}function xA(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);ot(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,w=p.route.loader&&!g.hasOwnProperty(p.route.id)&&(!v||v[p.route.id]===void 0);if(p.route.lazy||w){c=!0,f>=0?o=o.slice(0,f+1):o=[o[0]];break}}}return o.reduceRight((h,p,g)=>{let v,w=!1,T=null,_=null;a&&(v=u&&p.route.id?u[p.route.id]:void 0,T=p.route.errorElement||gA,c&&(f<0&&g===0?(p1("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),w=!0,_=null):f===g&&(w=!0,_=p.route.hydrateFallbackElement||null)));let S=n.concat(o.slice(0,g+1)),N=()=>{let E;return v?E=T:w?E=_:p.route.Component?E=X.createElement(p.route.Component,null):p.route.element?E=p.route.element:E=h,X.createElement(vA,{match:p,routeContext:{outlet:h,matches:S,isDataRoute:a!=null},children:E})};return a&&(p.route.ErrorBoundary||p.route.errorElement||g===0)?X.createElement(yA,{location:a.location,revalidation:a.revalidation,component:T,error:v,children:N(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):N()},null)}function pm(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function bA(e){let n=X.useContext(Hi);return ot(n,pm(e)),n}function wA(e){let n=X.useContext(tc);return ot(n,pm(e)),n}function SA(e){let n=X.useContext(Vn);return ot(n,pm(e)),n}function gm(e){let n=SA(e),a=n.matches[n.matches.length-1];return ot(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function jA(){return gm("useRouteId")}function TA(){let e=X.useContext(mm),n=wA("useRouteError"),a=gm("useRouteError");return e!==void 0?e:n.errors?.[a]}function EA(){let{router:e}=bA("useNavigate"),n=gm("useNavigate"),a=X.useRef(!1);return h1(()=>{a.current=!0}),X.useCallback(async(o,u={})=>{On(a.current,f1),a.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...u}))},[e,n])}var Ev={};function p1(e,n,a){!n&&!Ev[e]&&(Ev[e]=!0,On(!1,a))}X.memo(AA);function AA({routes:e,future:n,state:a}){return m1(e,void 0,a,n)}function Bf({to:e,replace:n,state:a,relative:s}){ot(Ii(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=X.useContext(Fn);On(!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}=X.useContext(Vn),{pathname:c}=Rn(),f=wr(),h=hm(e,fm(u),c,s==="path"),p=JSON.stringify(h);return X.useEffect(()=>{f(JSON.parse(p),{replace:n,state:a,relative:s})},[f,p,s,n,a]),null}function yt(e){ot(!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 NA({basename:e="/",children:n=null,location:a,navigationType:s="POP",navigator:o,static:u=!1}){ot(!Ii(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=X.useMemo(()=>({basename:c,navigator:o,static:u,future:{}}),[c,o,u]);typeof a=="string"&&(a=Vi(a));let{pathname:h="/",search:p="",hash:g="",state:v=null,key:w="default"}=a,T=X.useMemo(()=>{let _=vr(h,c);return _==null?null:{location:{pathname:_,search:p,hash:g,state:v,key:w},navigationType:s}},[c,h,p,g,v,w,s]);return On(T!=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.`),T==null?null:X.createElement(Fn.Provider,{value:f},X.createElement(Ao.Provider,{children:n,value:T}))}function _A({children:e,location:n}){return mA(Ch(e),n)}function Ch(e,n=[]){let a=[];return X.Children.forEach(e,(s,o)=>{if(!X.isValidElement(s))return;let u=[...n,o];if(s.type===X.Fragment){a.push.apply(a,Ch(s.props.children,u));return}ot(s.type===yt,`[${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>`),ot(!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=Ch(s.props.children,u)),a.push(c)}),a}var fu="get",hu="application/x-www-form-urlencoded";function nc(e){return e!=null&&typeof e.tagName=="string"}function OA(e){return nc(e)&&e.tagName.toLowerCase()==="button"}function kA(e){return nc(e)&&e.tagName.toLowerCase()==="form"}function RA(e){return nc(e)&&e.tagName.toLowerCase()==="input"}function CA(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function DA(e,n){return e.button===0&&(!n||n==="_self")&&!CA(e)}function Dh(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 MA(e,n){let a=Dh(e);return n&&n.forEach((s,o)=>{a.has(o)||n.getAll(o).forEach(u=>{a.append(o,u)})}),a}var Wl=null;function LA(){if(Wl===null)try{new FormData(document.createElement("form"),0),Wl=!1}catch{Wl=!0}return Wl}var PA=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ff(e){return e!=null&&!PA.has(e)?(On(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${hu}"`),null):e}function zA(e,n){let a,s,o,u,c;if(kA(e)){let f=e.getAttribute("action");s=f?vr(f,n):null,a=e.getAttribute("method")||fu,o=Ff(e.getAttribute("enctype"))||hu,u=new FormData(e)}else if(OA(e)||RA(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?vr(h,n):null,a=e.getAttribute("formmethod")||f.getAttribute("method")||fu,o=Ff(e.getAttribute("formenctype"))||Ff(f.getAttribute("enctype"))||hu,u=new FormData(f,e),!LA()){let{name:p,type:g,value:v}=e;if(g==="image"){let w=p?`${p}.`:"";u.append(`${w}x`,"0"),u.append(`${w}y`,"0")}else p&&u.append(p,v)}}else{if(nc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=fu,s=null,o=hu,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 ym(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function UA(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&&vr(s.pathname,n)==="/"?s.pathname=`${n.replace(/\/$/,"")}/_root.${a}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${a}`,s}async function BA(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 FA(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 VA(e,n,a){let s=await Promise.all(e.map(async o=>{let u=n.routes[o.route.id];if(u){let c=await BA(u,a);return c.links?c.links():[]}return[]}));return GA(s.flat(1).filter(FA).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Av(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 HA(e,n,{includeHydrateFallback:a}={}){return IA(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 IA(e){return[...new Set(e)]}function qA(e){let n={},a=Object.keys(e).sort();for(let s of a)n[s]=e[s];return n}function GA(e,n){let a=new Set;return new Set(n),e.reduce((s,o)=>{let u=JSON.stringify(qA(o));return a.has(u)||(a.add(u),s.push({key:u,link:o})),s},[])}function g1(){let e=X.useContext(Hi);return ym(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function YA(){let e=X.useContext(tc);return ym(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var vm=X.createContext(void 0);vm.displayName="FrameworkContext";function y1(){let e=X.useContext(vm);return ym(e,"You must render this element inside a <HydratedRouter> element"),e}function KA(e,n){let a=X.useContext(vm),[s,o]=X.useState(!1),[u,c]=X.useState(!1),{onFocus:f,onBlur:h,onMouseEnter:p,onMouseLeave:g,onTouchStart:v}=n,w=X.useRef(null);X.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let S=E=>{E.forEach(M=>{c(M.isIntersecting)})},N=new IntersectionObserver(S,{threshold:.5});return w.current&&N.observe(w.current),()=>{N.disconnect()}}},[e]),X.useEffect(()=>{if(s){let S=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(S)}}},[s]);let T=()=>{o(!0)},_=()=>{o(!1),c(!1)};return a?e!=="intent"?[u,w,{}]:[u,w,{onFocus:qs(f,T),onBlur:qs(h,_),onMouseEnter:qs(p,T),onMouseLeave:qs(g,_),onTouchStart:qs(v,T)}]:[!1,w,{}]}function qs(e,n){return a=>{e&&e(a),a.defaultPrevented||n(a)}}function XA({page:e,...n}){let{router:a}=g1(),s=X.useMemo(()=>o1(a.routes,e,a.basename),[a.routes,e,a.basename]);return s?X.createElement(WA,{page:e,matches:s,...n}):null}function ZA(e){let{manifest:n,routeModules:a}=y1(),[s,o]=X.useState([]);return X.useEffect(()=>{let u=!1;return VA(e,n,a).then(c=>{u||o(c)}),()=>{u=!0}},[e,n,a]),s}function WA({page:e,matches:n,...a}){let s=Rn(),{manifest:o,routeModules:u}=y1(),{basename:c}=g1(),{loaderData:f,matches:h}=YA(),p=X.useMemo(()=>Av(e,n,h,o,s,"data"),[e,n,h,o,s]),g=X.useMemo(()=>Av(e,n,h,o,s,"assets"),[e,n,h,o,s]),v=X.useMemo(()=>{if(e===s.pathname+s.search+s.hash)return[];let _=new Set,S=!1;if(n.forEach(E=>{let M=o.routes[E.route.id];!M||!M.hasLoader||(!p.some(L=>L.route.id===E.route.id)&&E.route.id in f&&u[E.route.id]?.shouldRevalidate||M.hasClientLoader?S=!0:_.add(E.route.id))}),_.size===0)return[];let N=UA(e,c,"data");return S&&_.size>0&&N.searchParams.set("_routes",n.filter(E=>_.has(E.route.id)).map(E=>E.route.id).join(",")),[N.pathname+N.search]},[c,f,s,o,p,n,e,u]),w=X.useMemo(()=>HA(g,o),[g,o]),T=ZA(g);return X.createElement(X.Fragment,null,v.map(_=>X.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...a})),w.map(_=>X.createElement("link",{key:_,rel:"modulepreload",href:_,...a})),T.map(({key:_,link:S})=>X.createElement("link",{key:_,...S})))}function QA(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var v1=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{v1&&(window.__reactRouterVersion="7.7.0")}catch{}function $A({basename:e,children:n,window:a}){let s=X.useRef();s.current==null&&(s.current=UE({window:a,v5Compat:!0}));let o=s.current,[u,c]=X.useState({action:o.action,location:o.location}),f=X.useCallback(h=>{X.startTransition(()=>c(h))},[c]);return X.useLayoutEffect(()=>o.listen(f),[o,f]),X.createElement(NA,{basename:e,children:n,location:u.location,navigationType:u.action,navigator:o})}var x1=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,xt=X.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,...w},T){let{basename:_}=X.useContext(Fn),S=typeof p=="string"&&x1.test(p),N,E=!1;if(typeof p=="string"&&S&&(N=p,v1))try{let D=new URL(window.location.href),R=p.startsWith("//")?new URL(D.protocol+p):new URL(p),W=vr(R.pathname,_);R.origin===D.origin&&W!=null?p=W+R.search+R.hash:E=!0}catch{On(!1,`<Link to="${p}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let M=dA(p,{relative:o}),[L,G,A]=KA(s,w),z=tN(p,{replace:c,state:f,target:h,preventScrollReset:g,relative:o,viewTransition:v});function F(D){n&&n(D),D.defaultPrevented||z(D)}let V=X.createElement("a",{...w,...A,href:N||M,onClick:E||u?n:F,ref:QA(T,G),target:h,"data-discover":!S&&a==="render"?"true":void 0});return L&&!S?X.createElement(X.Fragment,null,V,X.createElement(XA,{page:M})):V});xt.displayName="Link";var b1=X.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=No(c,{relative:p.relative}),w=Rn(),T=X.useContext(tc),{navigator:_,basename:S}=X.useContext(Fn),N=T!=null&&oN(v)&&f===!0,E=_.encodeLocation?_.encodeLocation(v).pathname:v.pathname,M=w.pathname,L=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;a||(M=M.toLowerCase(),L=L?L.toLowerCase():null,E=E.toLowerCase()),L&&S&&(L=vr(L,S)||L);const G=E!=="/"&&E.endsWith("/")?E.length-1:E.length;let A=M===E||!o&&M.startsWith(E)&&M.charAt(G)==="/",z=L!=null&&(L===E||!o&&L.startsWith(E)&&L.charAt(E.length)==="/"),F={isActive:A,isPending:z,isTransitioning:N},V=A?n:void 0,D;typeof s=="function"?D=s(F):D=[s,A?"active":null,z?"pending":null,N?"transitioning":null].filter(Boolean).join(" ");let R=typeof u=="function"?u(F):u;return X.createElement(xt,{...p,"aria-current":V,className:D,ref:g,style:R,to:c,viewTransition:f},typeof h=="function"?h(F):h)});b1.displayName="NavLink";var JA=X.forwardRef(({discover:e="render",fetcherKey:n,navigate:a,reloadDocument:s,replace:o,state:u,method:c=fu,action:f,onSubmit:h,relative:p,preventScrollReset:g,viewTransition:v,...w},T)=>{let _=iN(),S=sN(f,{relative:p}),N=c.toLowerCase()==="get"?"get":"post",E=typeof f=="string"&&x1.test(f),M=L=>{if(h&&h(L),L.defaultPrevented)return;L.preventDefault();let G=L.nativeEvent.submitter,A=G?.getAttribute("formmethod")||c;_(G||L.currentTarget,{fetcherKey:n,method:A,navigate:a,replace:o,state:u,relative:p,preventScrollReset:g,viewTransition:v})};return X.createElement("form",{ref:T,method:N,action:S,onSubmit:s?h:M,...w,"data-discover":!E&&e==="render"?"true":void 0})});JA.displayName="Form";function eN(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function w1(e){let n=X.useContext(Hi);return ot(n,eN(e)),n}function tN(e,{target:n,replace:a,state:s,preventScrollReset:o,relative:u,viewTransition:c}={}){let f=wr(),h=Rn(),p=No(e,{relative:u});return X.useCallback(g=>{if(DA(g,n)){g.preventDefault();let v=a!==void 0?a:co(h)===co(p);f(e,{replace:v,state:s,preventScrollReset:o,relative:u,viewTransition:c})}},[h,f,p,a,s,n,e,o,u,c])}function nN(e){On(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let n=X.useRef(Dh(e)),a=X.useRef(!1),s=Rn(),o=X.useMemo(()=>MA(s.search,a.current?null:n.current),[s.search]),u=wr(),c=X.useCallback((f,h)=>{const p=Dh(typeof f=="function"?f(new URLSearchParams(o)):f);a.current=!0,u("?"+p,h)},[u,o]);return[o,c]}var rN=0,aN=()=>`__${String(++rN)}__`;function iN(){let{router:e}=w1("useSubmit"),{basename:n}=X.useContext(Fn),a=jA();return X.useCallback(async(s,o={})=>{let{action:u,method:c,encType:f,formData:h,body:p}=zA(s,n);if(o.navigate===!1){let g=o.fetcherKey||aN();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 sN(e,{relative:n}={}){let{basename:a}=X.useContext(Fn),s=X.useContext(Vn);ot(s,"useFormAction must be used inside a RouteContext");let[o]=s.matches.slice(-1),u={...No(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:pr([a,u.pathname])),co(u)}function oN(e,n={}){let a=X.useContext(d1);ot(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=w1("useViewTransitionState"),o=No(e,{relative:n.relative});if(!a.isTransitioning)return!1;let u=vr(a.currentLocation.pathname,s)||a.currentLocation.pathname,c=vr(a.nextLocation.pathname,s)||a.nextLocation.pathname;return _u(o.pathname,c)!=null||_u(o.pathname,u)!=null}const S1=X.createContext(),lN=({children:e})=>{const[n,a]=X.useState(()=>localStorage.getItem("theme")||"light");X.useEffect(()=>{n==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"),localStorage.setItem("theme",n)},[n]);const s=()=>{a(o=>o==="light"?"dark":"light")};return d.jsx(S1.Provider,{value:{theme:n,toggleTheme:s},children:e})},_o=()=>X.useContext(S1),uN="/assets/logo-C1IfLRO8.png";var j1={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Nv=Na.createContext&&Na.createContext(j1),cN=["attr","size","title"];function dN(e,n){if(e==null)return{};var a=fN(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 fN(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 Ou(){return Ou=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},Ou.apply(this,arguments)}function _v(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 ku(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?_v(Object(a),!0).forEach(function(s){hN(e,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):_v(Object(a)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(a,s))})}return e}function hN(e,n,a){return n=mN(n),n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function mN(e){var n=pN(e,"string");return typeof n=="symbol"?n:n+""}function pN(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 T1(e){return e&&e.map((n,a)=>Na.createElement(n.tag,ku({key:a},n.attr),T1(n.child)))}function at(e){return n=>Na.createElement(gN,Ou({attr:ku({},e.attr)},n),T1(e.child))}function gN(e){var n=a=>{var{attr:s,size:o,title:u}=e,c=dN(e,cN),f=o||a.size||"1em",h;return a.className&&(h=a.className),e.className&&(h=(h?h+" ":"")+e.className),Na.createElement("svg",Ou({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,s,c,{className:h,style:ku(ku({color:e.color||a.color},a.style),e.style),height:f,width:f,xmlns:"http://www.w3.org/2000/svg"}),u&&Na.createElement("title",null,u),e.children)};return Nv!==void 0?Na.createElement(Nv.Consumer,null,a=>n(a)):n(j1)}function yN(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 vN(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 xN=()=>{const e=Rn(),n=$r(),a=bt(dm),s=bt(cm),{theme:o,toggleTheme:u}=_o(),[c,f]=X.useState(!1),h=()=>f(!c),p=()=>n(du()),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:uN,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(w=>d.jsx("li",{children:d.jsx(xt,{to:w.path,onClick:g,className:`transition-colors ${e.pathname===w.path?"text-[#FFB800] font-semibold":"text-gray-900 dark:text-white hover:text-[#FFB800] dark:hover:text-[#FFB800]"}`,children:w.name})},w.name))}),d.jsxs("div",{className:"hidden md:flex items-center gap-2",children:[a?d.jsxs("div",{className:"flex items-center gap-2",children:[d.jsx(xt,{to:"/profile",onClick:g,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-green-600 text-white hover:bg-green-700 transition-all shadow-sm hover:scale-105",children:"Profile"}),d.jsx("button",{onClick: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(xt,{to:"/login",onClick:g,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-green-600 text-white hover:bg-green-700 transition-all shadow-sm hover:scale-105",children:"Login"}),d.jsx(xt,{to:"/signup",onClick:g,className:"px-3 py-1.5 text-sm font-medium rounded-md bg-green-600 text-white hover:bg-green-700 transition-all shadow-sm hover:scale-105",children:"Signup"})]}),d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{className:"sr-only peer",type:"checkbox",onChange: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(vN,{}):d.jsx(yN,{})})]}),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(w=>d.jsx(xt,{to:w.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===w.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:w.name},w.name)),a&&d.jsxs("div",{className:"flex flex-col gap-1.5 w-full",children:[d.jsx(xt,{to:"/mlm",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"MLM"}),d.jsx(xt,{to:"/tree",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Tree"}),d.jsx(xt,{to:"/profile",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Profile"}),d.jsx("button",{onClick:()=>{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(xt,{to:"/login",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Login"}),d.jsx(xt,{to:"/signup",onClick:()=>{f(!1),g()},className:"w-full px-2 py-1.5 rounded-md bg-green-600 text-white hover:bg-green-700 shadow-sm transition-all text-sm text-center hover:scale-105",children:"Signup"})]}),d.jsx("div",{className:"py-2 w-full flex justify-center",children:d.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[d.jsx("input",{className:"sr-only peer",type:"checkbox",onChange: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 rc(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 E1(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 A1(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 N1(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 _1(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 O1(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 bN(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 Ri(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 wN(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 SN(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 jN(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 TN(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 fo(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 ho(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 EN(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 AN(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 k1(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 NN(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 R1(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 _N(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 ON(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 kN(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 C1(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 RN="/assets/taxi2-mmWUoSgX.png",CN="/assets/powered-BnbR5ccL.png",DN=()=>{const{theme:e}=_o(),n=()=>{window.scrollTo({top:0,behavior:"smooth"})},a=[{icon:rc,url:"https://www.facebook.com/AAAOGOINTL?rdid=5c6cGwC8Rj2HeWyR&share_url=https%3A%2F%2Fwww.facebook.com%2Fshare%2F19wGmUZcnH%2F#"},{icon:A1,url:"https://www.instagram.com/aaaogointl/?igsh=dzd1dGJtcXB1OXpn#"},{icon:C1,url:"https://x.com/i/flow/login?redirect_after_login=%2Faaaogointl"},{icon:O1,url:"https://www.tiktok.com/@aaaogointl?_t=ZS-8wxikZG1BBZ&_r=1"},{icon:_1,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(k1,{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(TN,{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(b1,{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:RN,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:CN,className:"w-5 rounded-full",alt:"powered"})]})})]})};var Gs={},$s={exports:{}},MN=$s.exports,Ov;function LN(){return Ov||(Ov=1,function(e,n){(function(a,s){s(n)})(MN,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 w=p.countDown?p.frameVal<p.endVal:p.frameVal>p.endVal;p.frameVal=w?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,w,T,_,S=g<0?"-":"";v=Math.abs(g).toFixed(p.options.decimalPlaces);var N=(v+="").split(".");if(w=N[0],T=N.length>1?p.options.decimal+N[1]:"",p.options.useGrouping){_="";for(var E=3,M=0,L=0,G=w.length;L<G;++L)p.options.useIndianSeparators&&L===4&&(E=2,M=1),L!==0&&M%E==0&&(_=p.options.separator+_),M++,_=w[G-L-1]+_;w=_}return p.options.numerals&&p.options.numerals.length&&(w=w.replace(/[0-9]/g,function(A){return p.options.numerals[+A]}),T=T.replace(/[0-9]/g,function(A){return p.options.numerals[+A]})),S+p.options.prefix+w+T+p.options.suffix},this.easeOutExpo=function(g,v,w,T){return w*(1-Math.pow(2,-10*g/T))*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})}($s,$s.exports)),$s.exports}var kv;function PN(){if(kv)return Gs;kv=1,Object.defineProperty(Gs,"__esModule",{value:!0});var e=kn(),n=LN();function a(V,D){var R=V==null?null:typeof Symbol<"u"&&V[Symbol.iterator]||V["@@iterator"];if(R!=null){var W,P,I,j,Z=[],K=!0,b=!1;try{if(I=(R=R.call(V)).next,D!==0)for(;!(K=(W=I.call(R)).done)&&(Z.push(W.value),Z.length!==D);K=!0);}catch(ce){b=!0,P=ce}finally{try{if(!K&&R.return!=null&&(j=R.return(),Object(j)!==j))return}finally{if(b)throw P}}return Z}}function s(V,D){var R=Object.keys(V);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(V);D&&(W=W.filter(function(P){return Object.getOwnPropertyDescriptor(V,P).enumerable})),R.push.apply(R,W)}return R}function o(V){for(var D=1;D<arguments.length;D++){var R=arguments[D]!=null?arguments[D]:{};D%2?s(Object(R),!0).forEach(function(W){f(V,W,R[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(V,Object.getOwnPropertyDescriptors(R)):s(Object(R)).forEach(function(W){Object.defineProperty(V,W,Object.getOwnPropertyDescriptor(R,W))})}return V}function u(V,D){if(typeof V!="object"||!V)return V;var R=V[Symbol.toPrimitive];if(R!==void 0){var W=R.call(V,D);if(typeof W!="object")return W;throw new TypeError("@@toPrimitive must return a primitive value.")}return(D==="string"?String:Number)(V)}function c(V){var D=u(V,"string");return typeof D=="symbol"?D:String(D)}function f(V,D,R){return D=c(D),D in V?Object.defineProperty(V,D,{value:R,enumerable:!0,configurable:!0,writable:!0}):V[D]=R,V}function h(){return h=Object.assign?Object.assign.bind():function(V){for(var D=1;D<arguments.length;D++){var R=arguments[D];for(var W in R)Object.prototype.hasOwnProperty.call(R,W)&&(V[W]=R[W])}return V},h.apply(this,arguments)}function p(V,D){if(V==null)return{};var R={},W=Object.keys(V),P,I;for(I=0;I<W.length;I++)P=W[I],!(D.indexOf(P)>=0)&&(R[P]=V[P]);return R}function g(V,D){if(V==null)return{};var R=p(V,D),W,P;if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(V);for(P=0;P<I.length;P++)W=I[P],!(D.indexOf(W)>=0)&&Object.prototype.propertyIsEnumerable.call(V,W)&&(R[W]=V[W])}return R}function v(V,D){return w(V)||a(V,D)||T(V,D)||S()}function w(V){if(Array.isArray(V))return V}function T(V,D){if(V){if(typeof V=="string")return _(V,D);var R=Object.prototype.toString.call(V).slice(8,-1);if(R==="Object"&&V.constructor&&(R=V.constructor.name),R==="Map"||R==="Set")return Array.from(V);if(R==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(R))return _(V,D)}}function _(V,D){(D==null||D>V.length)&&(D=V.length);for(var R=0,W=new Array(D);R<D;R++)W[R]=V[R];return W}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 E(V){var D=e.useRef(V);return N(function(){D.current=V}),e.useCallback(function(){for(var R=arguments.length,W=new Array(R),P=0;P<R;P++)W[P]=arguments[P];return D.current.apply(void 0,W)},[])}var M=function(D,R){var W=R.decimal,P=R.decimals,I=R.duration,j=R.easingFn,Z=R.end,K=R.formattingFn,b=R.numerals,ce=R.prefix,H=R.separator,x=R.start,k=R.suffix,U=R.useEasing,J=R.useGrouping,$=R.useIndianSeparators,te=R.enableScrollSpy,se=R.scrollSpyDelay,be=R.scrollSpyOnce,Se=R.plugin;return new n.CountUp(D,Z,{startVal:x,duration:I,decimal:W,decimalPlaces:P,easingFn:j,formattingFn:K,numerals:b,separator:H,prefix:ce,suffix:k,plugin:Se,useEasing:U,useIndianSeparators:$,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},A=function(D){var R=Object.fromEntries(Object.entries(D).filter(function(Re){var O=v(Re,2),de=O[1];return de!==void 0})),W=e.useMemo(function(){return o(o({},G),R)},[D]),P=W.ref,I=W.startOnMount,j=W.enableReinitialize,Z=W.delay,K=W.onEnd,b=W.onStart,ce=W.onPauseResume,H=W.onReset,x=W.onUpdate,k=g(W,L),U=e.useRef(),J=e.useRef(),$=e.useRef(!1),te=E(function(){return M(typeof P=="string"?P:P.current,k)}),se=E(function(Re){var O=U.current;if(O&&!Re)return O;var de=te();return U.current=de,de}),be=E(function(){var Re=function(){return se(!0).start(function(){K?.({pauseResume:Se,reset:Te,start:ke,update:Ne})})};Z&&Z>0?J.current=setTimeout(Re,Z*1e3):Re(),b?.({pauseResume:Se,reset:Te,update:Ne})}),Se=E(function(){se().pauseResume(),ce?.({reset:Te,start:ke,update:Ne})}),Te=E(function(){se().el&&(J.current&&clearTimeout(J.current),se().reset(),H?.({pauseResume:Se,start:ke,update:Ne}))}),Ne=E(function(Re){se().update(Re),x?.({pauseResume:Se,reset:Te,start:ke})}),ke=E(function(){Te(),be()}),Le=E(function(Re){I&&(Re&&Te(),be())});return e.useEffect(function(){$.current?j&&Le(!0):($.current=!0,Le())},[j,$,Le,Z,D.start,D.suffix,D.prefix,D.duration,D.separator,D.decimals,D.decimal,D.formattingFn]),e.useEffect(function(){return function(){Te()}},[Te]),{start:ke,pauseResume:Se,reset:Te,update:Ne,getCountUp:se}},z=["className","redraw","containerProps","children","style"],F=function(D){var R=D.className,W=D.redraw,P=D.containerProps,I=D.children,j=D.style,Z=g(D,z),K=e.useRef(null),b=e.useRef(!1),ce=A(o(o({},Z),{},{ref:K,startOnMount:typeof I!="function"||D.delay===0,enableReinitialize:!1})),H=ce.start,x=ce.reset,k=ce.update,U=ce.pauseResume,J=ce.getCountUp,$=E(function(){H()}),te=E(function(Se){D.preserveValue||x(),k(Se)}),se=E(function(){if(typeof D.children=="function"&&!(K.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(){b.current&&te(D.end)},[D.end,te]);var be=W&&D;return e.useEffect(function(){W&&b.current&&$()},[$,W,be]),e.useEffect(function(){!W&&b.current&&$()},[$,W,D.start,D.suffix,D.prefix,D.duration,D.separator,D.decimals,D.decimal,D.className,D.formattingFn]),e.useEffect(function(){b.current=!0},[]),typeof I=="function"?I({countUpRef:K,start:H,reset:x,update:k,pauseResume:U,getCountUp:J}):e.createElement("span",h({className:R,ref:K,style:j},P),typeof D.start<"u"?J().formattingFn(D.start):"")};return Gs.default=F,Gs.useCountUp=A,Gs}var zN=PN();const Ci=Bu(zN);var Mh=new Map,Ql=new WeakMap,Rv=0,UN=void 0;function BN(e){return e?(Ql.has(e)||(Rv+=1,Ql.set(e,Rv.toString())),Ql.get(e)):"0"}function FN(e){return Object.keys(e).sort().filter(n=>e[n]!==void 0).map(n=>`${n}_${n==="root"?BN(e.root):e[n]}`).toString()}function VN(e){const n=FN(e);let a=Mh.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},Mh.set(n,a)}return a}function HN(e,n,a={},s=UN){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}=VN(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(),Mh.delete(o))}}function D1({threshold:e,delay:n,trackVisibility:a,rootMargin:s,root:o,triggerOnce:u,skip:c,initialInView:f,fallbackInView:h,onChange:p}={}){var g;const[v,w]=X.useState(null),T=X.useRef(p),[_,S]=X.useState({inView:!!f,entry:void 0});T.current=p,X.useEffect(()=>{if(c||!v)return;let L;return L=HN(v,(G,A)=>{S({inView:G,entry:A}),T.current&&T.current(G,A),A.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,E=X.useRef(void 0);!v&&N&&!u&&!c&&E.current!==N&&(E.current=N,S({inView:!!f,entry:void 0}));const M=[w,_.inView,_.entry];return M.ref=M[0],M.inView=M[1],M.entry=M[2],M}function $l(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 Vf={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 Cv;function IN(){return Cv||(Cv=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 $l=="function"&&$l;if(!g&&v)return v(p,!0);if(f)return f(p,!0);var w=new Error("Cannot find module '"+p+"'");throw w.code="MODULE_NOT_FOUND",w}var T=o[p]={exports:{}};s[p][0].call(T.exports,function(_){var S=s[p][1][_];return c(S||_)},T,T.exports,a,s,o,u)}return o[p].exports}for(var f=typeof $l=="function"&&$l,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,w,T,_,S,N=[],E=0,M=h.length,L=M,G=u.getTypeOf(h)!=="string";E<h.length;)L=M-E,v=G?(p=h[E++],g=E<M?h[E++]:0,E<M?h[E++]:0):(p=h.charCodeAt(E++),g=E<M?h.charCodeAt(E++):0,E<M?h.charCodeAt(E++):0),w=p>>2,T=(3&p)<<4|g>>4,_=1<L?(15&g)<<2|v>>6:64,S=2<L?63&v:64,N.push(f.charAt(w)+f.charAt(T)+f.charAt(_)+f.charAt(S));return N.join("")},o.decode=function(h){var p,g,v,w,T,_,S=0,N=0,E="data:";if(h.substr(0,E.length)===E)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|(w=f.indexOf(h.charAt(S++)))>>4,g=(15&w)<<4|(T=f.indexOf(h.charAt(S++)))>>2,v=(3&T)<<6|(_=f.indexOf(h.charAt(S++))),M[N++]=p,T!==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,w,T,_){this.compressedSize=g,this.uncompressedSize=v,this.crc32=w,this.compression=T,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,w){return g.pipe(new f).pipe(new h("uncompressedSize")).pipe(v.compressWorker(w)).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,w){var T=c,_=w+v;p^=-1;for(var S=w;S<_;S++)p=p>>>8^T[255&(p^g[S])];return-1^p}(0|h,f,f.length,0):function(p,g,v,w){var T=c,_=w+v;p^=-1;for(var S=w;S<_;S++)p=p>>>8^T[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,w){h.call(this,"FlateWorker/"+v),this._pako=null,this._pakoAction=v,this._pakoOptions=w,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(w){v.push({data:w,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(T,_){var S,N="";for(S=0;S<_;S++)N+=String.fromCharCode(255&T),T>>>=8;return N}function c(T,_,S,N,E,M){var L,G,A=T.file,z=T.compression,F=M!==p.utf8encode,V=f.transformTo("string",M(A.name)),D=f.transformTo("string",p.utf8encode(A.name)),R=A.comment,W=f.transformTo("string",M(R)),P=f.transformTo("string",p.utf8encode(R)),I=D.length!==A.name.length,j=P.length!==R.length,Z="",K="",b="",ce=A.dir,H=A.date,x={crc32:0,compressedSize:0,uncompressedSize:0};_&&!S||(x.crc32=T.crc32,x.compressedSize=T.compressedSize,x.uncompressedSize=T.uncompressedSize);var k=0;_&&(k|=8),F||!I&&!j||(k|=2048);var U=0,J=0;ce&&(U|=16),E==="UNIX"?(J=798,U|=function(te,se){var be=te;return te||(be=se?16893:33204),(65535&be)<<16}(A.unixPermissions,ce)):(J=20,U|=function(te){return 63&(te||0)}(A.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&&(K=u(1,1)+u(g(V),4)+D,Z+="up"+u(K.length,2)+K),j&&(b=u(1,1)+u(g(W),4)+P,Z+="uc"+u(b.length,2)+b);var $="";return $+=`
\0`,$+=u(k,2),$+=z.magic,$+=u(L,2),$+=u(G,2),$+=u(x.crc32,4),$+=u(x.compressedSize,4),$+=u(x.uncompressedSize,4),$+=u(V.length,2),$+=u(Z.length,2),{fileRecord:v.LOCAL_FILE_HEADER+$+V+Z,dirRecord:v.CENTRAL_FILE_HEADER+u(J,2)+$+u(W.length,2)+"\0\0\0\0"+u(U,4)+u(N,4)+V+Z+W}}var f=a("../utils"),h=a("../stream/GenericWorker"),p=a("../utf8"),g=a("../crc32"),v=a("../signature");function w(T,_,S,N){h.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=_,this.zipPlatform=S,this.encodeFileName=N,this.streamFiles=T,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}f.inherits(w,h),w.prototype.push=function(T){var _=T.meta.percent||0,S=this.entriesCount,N=this._sources.length;this.accumulate?this.contentBuffer.push(T):(this.bytesWritten+=T.data.length,h.prototype.push.call(this,{data:T.data,meta:{currentFile:this.currentFile,percent:S?(_+100*(S-N-1))/S:100}}))},w.prototype.openedSource=function(T){this.currentSourceOffset=this.bytesWritten,this.currentFile=T.file.name;var _=this.streamFiles&&!T.file.dir;if(_){var S=c(T,_,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:S.fileRecord,meta:{percent:0}})}else this.accumulate=!0},w.prototype.closedSource=function(T){this.accumulate=!1;var _=this.streamFiles&&!T.file.dir,S=c(T,_,!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)}(T),meta:{percent:100}});else for(this.push({data:S.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},w.prototype.flush=function(){for(var T=this.bytesWritten,_=0;_<this.dirRecords.length;_++)this.push({data:this.dirRecords[_],meta:{percent:100}});var S=this.bytesWritten-T,N=function(E,M,L,G,A){var z=f.transformTo("string",A(G));return v.CENTRAL_DIRECTORY_END+"\0\0\0\0"+u(E,2)+u(E,2)+u(M,4)+u(L,4)+u(z.length,2)+z}(this.dirRecords.length,S,T,this.zipComment,this.encodeFileName);this.push({data:N,meta:{percent:100}})},w.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},w.prototype.registerPrevious=function(T){this._sources.push(T);var _=this;return T.on("data",function(S){_.processChunk(S)}),T.on("end",function(){_.closedSource(_.previous.streamInfo),_._sources.length?_.prepareNextSource():_.end()}),T.on("error",function(S){_.error(S)}),this},w.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))},w.prototype.error=function(T){var _=this._sources;if(!h.prototype.error.call(this,T))return!1;for(var S=0;S<_.length;S++)try{_[S].error(T)}catch{}return!0},w.prototype.lock=function(){h.prototype.lock.call(this);for(var T=this._sources,_=0;_<T.length;_++)T[_].lock()},s.exports=w},{"../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(w,T){v++;var _=function(M,L){var G=M||L,A=u[G];if(!A)throw new Error(G+" is not a valid compression method !");return A}(T.options.compression,h.compression),S=T.options.compressionOptions||h.compressionOptions||{},N=T.dir,E=T.date;T._compressWorker(_,S).withStreamInfo("file",{name:w,dir:N,date:E,comment:T.comment||"",unixPermissions:T.unixPermissions,dosPermissions:T.dosPermissions}).pipe(g)}),g.entriesCount=v}catch(w){g.error(w)}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(w){return new c.Promise(function(T,_){var S=w.decompressed.getContentWorker().pipe(new p);S.on("error",function(N){_(N)}).on("end",function(){S.streamInfo.crc32!==w.decompressed.crc32?_(new Error("Corrupted zip : CRC32 mismatch")):T()}).resume()})}s.exports=function(w,T){var _=this;return T=u.extend(T||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:f.utf8decode}),g.isNode&&g.isStream(w)?c.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):u.prepareContent("the loaded zip file",w,!0,T.optimizedBinaryString,T.base64).then(function(S){var N=new h(T);return N.load(S),N}).then(function(S){var N=[c.Promise.resolve(S)],E=S.files;if(T.checkCRC32)for(var M=0;M<E.length;M++)N.push(v(E[M]));return c.Promise.all(N)}).then(function(S){for(var N=S.shift(),E=N.files,M=0;M<E.length;M++){var L=E[M],G=L.fileNameStr,A=u.resolve(L.fileNameStr);_.file(A,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:T.createFolders}),L.dir||(_.file(A).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,w){g.push(v)||g._helper.pause(),p&&p(w)}).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(A,z,F){var V,D=f.getTypeOf(z),R=f.extend(F||{},g);R.date=R.date||new Date,R.compression!==null&&(R.compression=R.compression.toUpperCase()),typeof R.unixPermissions=="string"&&(R.unixPermissions=parseInt(R.unixPermissions,8)),R.unixPermissions&&16384&R.unixPermissions&&(R.dir=!0),R.dosPermissions&&16&R.dosPermissions&&(R.dir=!0),R.dir&&(A=E(A)),R.createFolders&&(V=N(A))&&M.call(this,V,!0);var W=D==="string"&&R.binary===!1&&R.base64===!1;F&&F.binary!==void 0||(R.binary=!W),(z instanceof v&&z.uncompressedSize===0||R.dir||!z||z.length===0)&&(R.base64=!1,R.binary=!0,z="",R.compression="STORE",D="string");var P=null;P=z instanceof v||z instanceof h?z:_.isNode&&_.isStream(z)?new S(A,z):f.prepareContent(A,z,R.binary,R.optimizedBinaryString,R.base64);var I=new w(A,P,R);this.files[A]=I}var c=a("./utf8"),f=a("./utils"),h=a("./stream/GenericWorker"),p=a("./stream/StreamHelper"),g=a("./defaults"),v=a("./compressedObject"),w=a("./zipObject"),T=a("./generate"),_=a("./nodejsUtils"),S=a("./nodejs/NodejsStreamInputAdapter"),N=function(A){A.slice(-1)==="/"&&(A=A.substring(0,A.length-1));var z=A.lastIndexOf("/");return 0<z?A.substring(0,z):""},E=function(A){return A.slice(-1)!=="/"&&(A+="/"),A},M=function(A,z){return z=z!==void 0?z:g.createFolders,A=E(A),this.files[A]||u.call(this,A,null,{dir:!0,createFolders:z}),this.files[A]};function L(A){return Object.prototype.toString.call(A)==="[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(A){var z,F,V;for(z in this.files)V=this.files[z],(F=z.slice(this.root.length,z.length))&&z.slice(0,this.root.length)===this.root&&A(F,V)},filter:function(A){var z=[];return this.forEach(function(F,V){A(F,V)&&z.push(V)}),z},file:function(A,z,F){if(arguments.length!==1)return A=this.root+A,u.call(this,A,z,F),this;if(L(A)){var V=A;return this.filter(function(R,W){return!W.dir&&V.test(R)})}var D=this.files[this.root+A];return D&&!D.dir?D:null},folder:function(A){if(!A)return this;if(L(A))return this.filter(function(D,R){return R.dir&&A.test(D)});var z=this.root+A,F=M.call(this,z),V=this.clone();return V.root=F.name,V},remove:function(A){A=this.root+A;var z=this.files[A];if(z||(A.slice(-1)!=="/"&&(A+="/"),z=this.files[A]),z&&!z.dir)delete this.files[A];else for(var F=this.filter(function(D,R){return R.name.slice(0,A.length)===A}),V=0;V<F.length;V++)delete this.files[F[V].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(A){var z,F={};try{if((F=f.extend(A||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:c.utf8encode})).type=F.type.toLowerCase(),F.compression=F.compression.toUpperCase(),F.type==="binarystring"&&(F.type="string"),!F.type)throw new Error("No output type specified.");f.checkSupport(F.type),F.platform!=="darwin"&&F.platform!=="freebsd"&&F.platform!=="linux"&&F.platform!=="sunos"||(F.platform="UNIX"),F.platform==="win32"&&(F.platform="DOS");var V=F.comment||this.comment||"";z=T.generateWorker(this,F,V)}catch(D){(z=new h("error")).error(D)}return new p(z,F.type||"string",F.mimeType)},generateAsync:function(A,z){return this.generateInternalStream(A).accumulate(z)},generateNodeStream:function(A,z){return(A=A||{}).type||(A.type="nodebuffer"),this.generateInternalStream(A).toNodejsStream(z)}};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),w=this.length-4;0<=w;--w)if(this.data[w]===h&&this.data[w+1]===p&&this.data[w+2]===g&&this.data[w+3]===v)return w-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),w=this.readData(4);return h===w[0]&&p===w[1]&&g===w[2]&&v===w[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 w=u.getTypeOf(v);return u.checkSupport(w),w!=="string"||c.uint8array?w==="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 w(_,S){return new g.Promise(function(N,E){var M=[],L=_._internalType,G=_._outputType,A=_._mimeType;_.on("data",function(z,F){M.push(z),S&&S(F)}).on("error",function(z){M=[],E(z)}).on("end",function(){try{var z=function(F,V,D){switch(F){case"blob":return u.newBlob(u.transformTo("arraybuffer",V),D);case"base64":return h.encode(V);default:return u.transformTo(F,V)}}(G,function(F,V){var D,R=0,W=null,P=0;for(D=0;D<V.length;D++)P+=V[D].length;switch(F){case"string":return V.join("");case"array":return Array.prototype.concat.apply([],V);case"uint8array":for(W=new Uint8Array(P),D=0;D<V.length;D++)W.set(V[D],R),R+=V[D].length;return W;case"nodebuffer":return Buffer.concat(V);default:throw new Error("concat : unsupported type '"+F+"'")}}(L,M),A);N(z)}catch(F){E(F)}M=[]}).resume()})}function T(_,S,N){var E=S;switch(S){case"blob":case"arraybuffer":E="uint8array";break;case"base64":E="string"}try{this._internalType=E,this._outputType=S,this._mimeType=N,u.checkSupport(E),this._worker=_.pipe(new c(E)),_.lock()}catch(M){this._worker=new f("error"),this._worker.error(M)}}T.prototype={accumulate:function(_){return w(this,_)},on:function(_,S){var N=this;return _==="data"?this._worker.on(_,function(E){S.call(N,E.data,E.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=T},{"../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 w(){h.call(this,"utf-8 encode")}o.utf8encode=function(T){return c.nodebuffer?f.newBufferFrom(T,"utf-8"):function(_){var S,N,E,M,L,G=_.length,A=0;for(M=0;M<G;M++)(64512&(N=_.charCodeAt(M)))==55296&&M+1<G&&(64512&(E=_.charCodeAt(M+1)))==56320&&(N=65536+(N-55296<<10)+(E-56320),M++),A+=N<128?1:N<2048?2:N<65536?3:4;for(S=c.uint8array?new Uint8Array(A):new Array(A),M=L=0;L<A;M++)(64512&(N=_.charCodeAt(M)))==55296&&M+1<G&&(64512&(E=_.charCodeAt(M+1)))==56320&&(N=65536+(N-55296<<10)+(E-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}(T)},o.utf8decode=function(T){return c.nodebuffer?u.transformTo("nodebuffer",T).toString("utf-8"):function(_){var S,N,E,M,L=_.length,G=new Array(2*L);for(S=N=0;S<L;)if((E=_[S++])<128)G[N++]=E;else if(4<(M=p[E]))G[N++]=65533,S+=M-1;else{for(E&=M===2?31:M===3?15:7;1<M&&S<L;)E=E<<6|63&_[S++],M--;1<M?G[N++]=65533:E<65536?G[N++]=E:(E-=65536,G[N++]=55296|E>>10&1023,G[N++]=56320|1023&E)}return G.length!==N&&(G.subarray?G=G.subarray(0,N):G.length=N),u.applyFromCharCode(G)}(T=u.transformTo(c.uint8array?"uint8array":"array",T))},u.inherits(v,h),v.prototype.processChunk=function(T){var _=u.transformTo(c.uint8array?"uint8array":"array",T.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}(_),E=_;N!==_.length&&(c.uint8array?(E=_.subarray(0,N),this.leftOver=_.subarray(N,_.length)):(E=_.slice(0,N),this.leftOver=_.slice(N,_.length))),this.push({data:o.utf8decode(E),meta:T.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(w,h),w.prototype.processChunk=function(T){this.push({data:o.utf8encode(T.data),meta:T.meta})},o.Utf8EncodeWorker=w},{"./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 E=0;E<S.length;++E)N[E]=255&S.charCodeAt(E);return N}a("setimmediate"),o.newBlob=function(S,N){o.checkSupport("blob");try{return new Blob([S],{type:N})}catch{try{var E=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return E.append(S),E.getBlob(N)}catch{throw new Error("Bug : can't construct the Blob.")}}};var v={stringifyByChunk:function(S,N,E){var M=[],L=0,G=S.length;if(G<=E)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+E,G)))):M.push(String.fromCharCode.apply(null,S.subarray(L,Math.min(L+E,G)))),L+=E;return M.join("")},stringifyByChar:function(S){for(var N="",E=0;E<S.length;E++)N+=String.fromCharCode(S[E]);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 w(S){var N=65536,E=o.getTypeOf(S),M=!0;if(E==="uint8array"?M=v.applyCanBeUsed.uint8array:E==="nodebuffer"&&(M=v.applyCanBeUsed.nodebuffer),M)for(;1<N;)try{return v.stringifyByChunk(S,E,N)}catch{N=Math.floor(N/2)}return v.stringifyByChar(S)}function T(S,N){for(var E=0;E<S.length;E++)N[E]=S[E];return N}o.applyFromCharCode=w;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:w,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 w(new Uint8Array(S))},array:function(S){return T(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:w,array:function(S){return T(S,new Array(S.length))},arraybuffer:function(S){return S.buffer},uint8array:p,nodebuffer:function(S){return f.newBufferFrom(S)}},_.nodebuffer={string:w,array:function(S){return T(S,new Array(S.length))},arraybuffer:function(S){return _.nodebuffer.uint8array(S).buffer},uint8array:function(S){return T(S,new Uint8Array(S.length))},nodebuffer:p},o.transformTo=function(S,N){if(N=N||"",!S)return N;o.checkSupport(S);var E=o.getTypeOf(N);return _[E][S](N)},o.resolve=function(S){for(var N=S.split("/"),E=[],M=0;M<N.length;M++){var L=N[M];L==="."||L===""&&M!==0&&M!==N.length-1||(L===".."?E.pop():E.push(L))}return E.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,E,M="";for(E=0;E<(S||"").length;E++)M+="\\x"+((N=S.charCodeAt(E))<16?"0":"")+N.toString(16).toUpperCase();return M},o.delay=function(S,N,E){setImmediate(function(){S.apply(E||null,N||[])})},o.inherits=function(S,N){function E(){}E.prototype=N.prototype,S.prototype=new E},o.extend=function(){var S,N,E={};for(S=0;S<arguments.length;S++)for(N in arguments[S])Object.prototype.hasOwnProperty.call(arguments[S],N)&&E[N]===void 0&&(E[N]=arguments[S][N]);return E},o.prepareContent=function(S,N,E,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(A,z){var F=new FileReader;F.onload=function(V){A(V.target.result)},F.onerror=function(V){z(V.target.error)},F.readAsArrayBuffer(G)}):G}).then(function(G){var A=o.getTypeOf(G);return A?(A==="arraybuffer"?G=o.transformTo("uint8array",G):A==="string"&&(L?G=c.decode(G):E&&M!==!0&&(G=function(z){return g(z,u.uint8array?new Uint8Array(z.length):new Array(z.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 w=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+c.pretty(w)+", expected "+c.pretty(v)+")")}},isSignature:function(v,w){var T=this.reader.index;this.reader.setIndex(v);var _=this.reader.readString(4)===w;return this.reader.setIndex(T),_},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),w=p.uint8array?"uint8array":"array",T=c.transformTo(w,v);this.zipComment=this.loadOptions.decodeFileName(T)},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,w,T,_=this.zip64EndOfCentralSize-44;0<_;)v=this.reader.readInt(2),w=this.reader.readInt(4),T=this.reader.readData(w),this.zip64ExtensibleData[v]={id:v,length:w,value:T}},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,w;for(v=0;v<this.files.length;v++)w=this.files[v],this.reader.setIndex(w.localHeaderOffset),this.checkSignature(f.LOCAL_FILE_HEADER),w.readLocalPart(this.reader),w.handleUTF8(),w.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 w=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 T=this.centralDirOffset+this.centralDirSize;this.zip64&&(T+=20,T+=12+this.zip64EndOfCentralSize);var _=w-T;if(0<_)this.isSignature(w,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 w(T,_){this.options=T,this.loadOptions=_}w.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(T){var _,S;if(T.skip(22),this.fileNameLength=T.readInt(2),S=T.readInt(2),this.fileName=T.readData(this.fileNameLength),T.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 E in g)if(Object.prototype.hasOwnProperty.call(g,E)&&g[E].magic===N)return g[E];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,_,T.readData(this.compressedSize))},readCentralPart:function(T){this.versionMadeBy=T.readInt(2),T.skip(2),this.bitFlag=T.readInt(2),this.compressionMethod=T.readString(2),this.date=T.readDate(),this.crc32=T.readInt(4),this.compressedSize=T.readInt(4),this.uncompressedSize=T.readInt(4);var _=T.readInt(2);if(this.extraFieldsLength=T.readInt(2),this.fileCommentLength=T.readInt(2),this.diskNumberStart=T.readInt(2),this.internalFileAttributes=T.readInt(2),this.externalFileAttributes=T.readInt(4),this.localHeaderOffset=T.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");T.skip(_),this.readExtraFields(T),this.parseZIP64ExtraField(T),this.fileComment=T.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var T=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),T==0&&(this.dosPermissions=63&this.externalFileAttributes),T==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var T=u(this.extraFields[1].value);this.uncompressedSize===c.MAX_VALUE_32BITS&&(this.uncompressedSize=T.readInt(8)),this.compressedSize===c.MAX_VALUE_32BITS&&(this.compressedSize=T.readInt(8)),this.localHeaderOffset===c.MAX_VALUE_32BITS&&(this.localHeaderOffset=T.readInt(8)),this.diskNumberStart===c.MAX_VALUE_32BITS&&(this.diskNumberStart=T.readInt(4))}},readExtraFields:function(T){var _,S,N,E=T.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});T.index+4<E;)_=T.readInt(2),S=T.readInt(2),N=T.readData(S),this.extraFields[_]={id:_,length:S,value:N};T.setIndex(E)},handleUTF8:function(){var T=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(T,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(S)}var N=this.findExtraFieldUnicodeComment();if(N!==null)this.fileCommentStr=N;else{var E=c.transformTo(T,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(E)}}},findExtraFieldUnicodePath:function(){var T=this.extraFields[28789];if(T){var _=u(T.value);return _.readInt(1)!==1||h(this.fileName)!==_.readInt(4)?null:p.utf8decode(_.readData(T.length-5))}return null},findExtraFieldUnicodeComment:function(){var T=this.extraFields[25461];if(T){var _=u(T.value);return _.readInt(1)!==1||h(this.fileComment)!==_.readInt(4)?null:p.utf8decode(_.readData(T.length-5))}return null}},s.exports=w},{"./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 E=(N=_.toLowerCase())==="string"||N==="text";N!=="binarystring"&&N!=="text"||(N="string"),S=this._decompressWorker();var M=!this._dataBinary;M&&!E&&(S=S.pipe(new h.Utf8EncodeWorker)),!M&&E&&(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"],w=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},T=0;T<v.length;T++)u.prototype[v[T]]=w;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 w=new u.MessageChannel;w.port1.onmessage=_,c=function(){w.port2.postMessage(0)}}var T=[];function _(){var S,N;f=!0;for(var E=T.length;E;){for(N=T,T=[],S=-1;++S<E;)N[S]();E=T.length}f=!1}s.exports=function(S){T.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(E){if(typeof E!="function")throw new TypeError("resolver must be a function");this.state=g,this.queue=[],this.outcome=void 0,E!==c&&S(this,E)}function w(E,M,L){this.promise=E,typeof M=="function"&&(this.onFulfilled=M,this.callFulfilled=this.otherCallFulfilled),typeof L=="function"&&(this.onRejected=L,this.callRejected=this.otherCallRejected)}function T(E,M,L){u(function(){var G;try{G=M(L)}catch(A){return f.reject(E,A)}G===E?f.reject(E,new TypeError("Cannot resolve promise with itself")):f.resolve(E,G)})}function _(E){var M=E&&E.then;if(E&&(typeof E=="object"||typeof E=="function")&&typeof M=="function")return function(){M.apply(E,arguments)}}function S(E,M){var L=!1;function G(F){L||(L=!0,f.reject(E,F))}function A(F){L||(L=!0,f.resolve(E,F))}var z=N(function(){M(A,G)});z.status==="error"&&G(z.value)}function N(E,M){var L={};try{L.value=E(M),L.status="success"}catch(G){L.status="error",L.value=G}return L}(s.exports=v).prototype.finally=function(E){if(typeof E!="function")return this;var M=this.constructor;return this.then(function(L){return M.resolve(E()).then(function(){return L})},function(L){return M.resolve(E()).then(function(){throw L})})},v.prototype.catch=function(E){return this.then(null,E)},v.prototype.then=function(E,M){if(typeof E!="function"&&this.state===p||typeof M!="function"&&this.state===h)return this;var L=new this.constructor(c);return this.state!==g?T(L,this.state===p?E:M,this.outcome):this.queue.push(new w(L,E,M)),L},w.prototype.callFulfilled=function(E){f.resolve(this.promise,E)},w.prototype.otherCallFulfilled=function(E){T(this.promise,this.onFulfilled,E)},w.prototype.callRejected=function(E){f.reject(this.promise,E)},w.prototype.otherCallRejected=function(E){T(this.promise,this.onRejected,E)},f.resolve=function(E,M){var L=N(_,M);if(L.status==="error")return f.reject(E,L.value);var G=L.value;if(G)S(E,G);else{E.state=p,E.outcome=M;for(var A=-1,z=E.queue.length;++A<z;)E.queue[A].callFulfilled(M)}return E},f.reject=function(E,M){E.state=h,E.outcome=M;for(var L=-1,G=E.queue.length;++L<G;)E.queue[L].callRejected(M);return E},v.resolve=function(E){return E instanceof this?E:f.resolve(new this(c),E)},v.reject=function(E){var M=new this(c);return f.reject(M,E)},v.all=function(E){var M=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=E.length,G=!1;if(!L)return this.resolve([]);for(var A=new Array(L),z=0,F=-1,V=new this(c);++F<L;)D(E[F],F);return V;function D(R,W){M.resolve(R).then(function(P){A[W]=P,++z!==L||G||(G=!0,f.resolve(V,A))},function(P){G||(G=!0,f.reject(V,P))})}},v.race=function(E){var M=this;if(Object.prototype.toString.call(E)!=="[object Array]")return this.reject(new TypeError("must be an array"));var L=E.length,G=!1;if(!L)return this.resolve([]);for(var A=-1,z=new this(c);++A<L;)F=E[A],M.resolve(F).then(function(V){G||(G=!0,f.resolve(z,V))},function(V){G||(G=!0,f.reject(z,V))});var F;return z}},{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,w=-1,T=0,_=8;function S(E){if(!(this instanceof S))return new S(E);this.options=c.assign({level:w,method:_,chunkSize:16384,windowBits:15,memLevel:8,strategy:T,to:""},E||{});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(E,M){var L=new S(M);if(L.push(E,!0),L.err)throw L.msg||h[L.err];return L.result}S.prototype.push=function(E,M){var L,G,A=this.strm,z=this.options.chunkSize;if(this.ended)return!1;G=M===~~M?M:M===!0?4:0,typeof E=="string"?A.input=f.string2buf(E):g.call(E)==="[object ArrayBuffer]"?A.input=new Uint8Array(E):A.input=E,A.next_in=0,A.avail_in=A.input.length;do{if(A.avail_out===0&&(A.output=new c.Buf8(z),A.next_out=0,A.avail_out=z),(L=u.deflate(A,G))!==1&&L!==v)return this.onEnd(L),!(this.ended=!0);A.avail_out!==0&&(A.avail_in!==0||G!==4&&G!==2)||(this.options.to==="string"?this.onData(f.buf2binstring(c.shrinkBuf(A.output,A.next_out))):this.onData(c.shrinkBuf(A.output,A.next_out)))}while((0<A.avail_in||A.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),!(A.avail_out=0))},S.prototype.onData=function(E){this.chunks.push(E)},S.prototype.onEnd=function(E){E===v&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=c.flattenChunks(this.chunks)),this.chunks=[],this.err=E,this.msg=this.strm.msg},o.Deflate=S,o.deflate=N,o.deflateRaw=function(E,M){return(M=M||{}).raw=!0,N(E,M)},o.gzip=function(E,M){return(M=M||{}).gzip=!0,N(E,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"),w=Object.prototype.toString;function T(S){if(!(this instanceof T))return new T(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 E=u.inflateInit2(this.strm,N.windowBits);if(E!==h.Z_OK)throw new Error(p[E]);this.header=new v,u.inflateGetHeader(this.strm,this.header)}function _(S,N){var E=new T(N);if(E.push(S,!0),E.err)throw E.msg||p[E.err];return E.result}T.prototype.push=function(S,N){var E,M,L,G,A,z,F=this.strm,V=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"?F.input=f.binstring2buf(S):w.call(S)==="[object ArrayBuffer]"?F.input=new Uint8Array(S):F.input=S,F.next_in=0,F.avail_in=F.input.length;do{if(F.avail_out===0&&(F.output=new c.Buf8(V),F.next_out=0,F.avail_out=V),(E=u.inflate(F,h.Z_NO_FLUSH))===h.Z_NEED_DICT&&D&&(z=typeof D=="string"?f.string2buf(D):w.call(D)==="[object ArrayBuffer]"?new Uint8Array(D):D,E=u.inflateSetDictionary(this.strm,z)),E===h.Z_BUF_ERROR&&R===!0&&(E=h.Z_OK,R=!1),E!==h.Z_STREAM_END&&E!==h.Z_OK)return this.onEnd(E),!(this.ended=!0);F.next_out&&(F.avail_out!==0&&E!==h.Z_STREAM_END&&(F.avail_in!==0||M!==h.Z_FINISH&&M!==h.Z_SYNC_FLUSH)||(this.options.to==="string"?(L=f.utf8border(F.output,F.next_out),G=F.next_out-L,A=f.buf2string(F.output,L),F.next_out=G,F.avail_out=V-G,G&&c.arraySet(F.output,F.output,L,G,0),this.onData(A)):this.onData(c.shrinkBuf(F.output,F.next_out)))),F.avail_in===0&&F.avail_out===0&&(R=!0)}while((0<F.avail_in||F.avail_out===0)&&E!==h.Z_STREAM_END);return E===h.Z_STREAM_END&&(M=h.Z_FINISH),M===h.Z_FINISH?(E=u.inflateEnd(this.strm),this.onEnd(E),this.ended=!0,E===h.Z_OK):M!==h.Z_SYNC_FLUSH||(this.onEnd(h.Z_OK),!(F.avail_out=0))},T.prototype.onData=function(S){this.chunks.push(S)},T.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=T,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,w){if(p.subarray&&h.subarray)h.set(p.subarray(g,g+v),w);else for(var T=0;T<v;T++)h[w+T]=p[g+T]},flattenChunks:function(h){var p,g,v,w,T,_;for(p=v=0,g=h.length;p<g;p++)v+=h[p].length;for(_=new Uint8Array(v),p=w=0,g=h.length;p<g;p++)T=h[p],_.set(T,w),w+=T.length;return _}},f={arraySet:function(h,p,g,v,w){for(var T=0;T<v;T++)h[w+T]=p[g+T]},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,w){if(w<65537&&(v.subarray&&f||!v.subarray&&c))return String.fromCharCode.apply(null,u.shrinkBuf(v,w));for(var T="",_=0;_<w;_++)T+=String.fromCharCode(v[_]);return T}h[254]=h[254]=1,o.string2buf=function(v){var w,T,_,S,N,E=v.length,M=0;for(S=0;S<E;S++)(64512&(T=v.charCodeAt(S)))==55296&&S+1<E&&(64512&(_=v.charCodeAt(S+1)))==56320&&(T=65536+(T-55296<<10)+(_-56320),S++),M+=T<128?1:T<2048?2:T<65536?3:4;for(w=new u.Buf8(M),S=N=0;N<M;S++)(64512&(T=v.charCodeAt(S)))==55296&&S+1<E&&(64512&(_=v.charCodeAt(S+1)))==56320&&(T=65536+(T-55296<<10)+(_-56320),S++),T<128?w[N++]=T:(T<2048?w[N++]=192|T>>>6:(T<65536?w[N++]=224|T>>>12:(w[N++]=240|T>>>18,w[N++]=128|T>>>12&63),w[N++]=128|T>>>6&63),w[N++]=128|63&T);return w},o.buf2binstring=function(v){return g(v,v.length)},o.binstring2buf=function(v){for(var w=new u.Buf8(v.length),T=0,_=w.length;T<_;T++)w[T]=v.charCodeAt(T);return w},o.buf2string=function(v,w){var T,_,S,N,E=w||v.length,M=new Array(2*E);for(T=_=0;T<E;)if((S=v[T++])<128)M[_++]=S;else if(4<(N=h[S]))M[_++]=65533,T+=N-1;else{for(S&=N===2?31:N===3?15:7;1<N&&T<E;)S=S<<6|63&v[T++],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,w){var T;for((w=w||v.length)>v.length&&(w=v.length),T=w-1;0<=T&&(192&v[T])==128;)T--;return T<0||T===0?w:T+h[v[T]]>w?T:w}},{"./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 w=p;w<v;w++)c=c>>>8^g[255&(c^f[w])];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,w=4,T=0,_=-2,S=-1,N=4,E=2,M=8,L=9,G=286,A=30,z=19,F=2*G+1,V=15,D=3,R=258,W=R+D+1,P=42,I=113,j=1,Z=2,K=3,b=4;function ce(O,de){return O.msg=g[de],de}function H(O){return(O<<1)-(4<O?9:0)}function x(O){for(var de=O.length;0<=--de;)O[de]=0}function k(O){var de=O.state,ue=de.pending;ue>O.avail_out&&(ue=O.avail_out),ue!==0&&(c.arraySet(O.output,de.pending_buf,de.pending_out,ue,O.next_out),O.next_out+=ue,de.pending_out+=ue,O.total_out+=ue,O.avail_out-=ue,de.pending-=ue,de.pending===0&&(de.pending_out=0))}function U(O,de){f._tr_flush_block(O,0<=O.block_start?O.block_start:-1,O.strstart-O.block_start,de),O.block_start=O.strstart,k(O.strm)}function J(O,de){O.pending_buf[O.pending++]=de}function $(O,de){O.pending_buf[O.pending++]=de>>>8&255,O.pending_buf[O.pending++]=255&de}function te(O,de){var ue,q,Y=O.max_chain_length,ee=O.strstart,pe=O.prev_length,ye=O.nice_match,oe=O.strstart>O.w_size-W?O.strstart-(O.w_size-W):0,je=O.window,Ee=O.w_mask,re=O.prev,ve=O.strstart+R,_e=je[ee+pe-1],Ce=je[ee+pe];O.prev_length>=O.good_match&&(Y>>=2),ye>O.lookahead&&(ye=O.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(O.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<=O.lookahead?pe:O.lookahead}function se(O){var de,ue,q,Y,ee,pe,ye,oe,je,Ee,re=O.w_size;do{if(Y=O.window_size-O.lookahead-O.strstart,O.strstart>=re+(re-W)){for(c.arraySet(O.window,O.window,re,re,0),O.match_start-=re,O.strstart-=re,O.block_start-=re,de=ue=O.hash_size;q=O.head[--de],O.head[de]=re<=q?q-re:0,--ue;);for(de=ue=re;q=O.prev[--de],O.prev[de]=re<=q?q-re:0,--ue;);Y+=re}if(O.strm.avail_in===0)break;if(pe=O.strm,ye=O.window,oe=O.strstart+O.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),O.lookahead+=ue,O.lookahead+O.insert>=D)for(ee=O.strstart-O.insert,O.ins_h=O.window[ee],O.ins_h=(O.ins_h<<O.hash_shift^O.window[ee+1])&O.hash_mask;O.insert&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[ee+D-1])&O.hash_mask,O.prev[ee&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=ee,ee++,O.insert--,!(O.lookahead+O.insert<D)););}while(O.lookahead<W&&O.strm.avail_in!==0)}function be(O,de){for(var ue,q;;){if(O.lookahead<W){if(se(O),O.lookahead<W&&de===v)return j;if(O.lookahead===0)break}if(ue=0,O.lookahead>=D&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+D-1])&O.hash_mask,ue=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),ue!==0&&O.strstart-ue<=O.w_size-W&&(O.match_length=te(O,ue)),O.match_length>=D)if(q=f._tr_tally(O,O.strstart-O.match_start,O.match_length-D),O.lookahead-=O.match_length,O.match_length<=O.max_lazy_match&&O.lookahead>=D){for(O.match_length--;O.strstart++,O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+D-1])&O.hash_mask,ue=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart,--O.match_length!=0;);O.strstart++}else O.strstart+=O.match_length,O.match_length=0,O.ins_h=O.window[O.strstart],O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+1])&O.hash_mask;else q=f._tr_tally(O,0,O.window[O.strstart]),O.lookahead--,O.strstart++;if(q&&(U(O,!1),O.strm.avail_out===0))return j}return O.insert=O.strstart<D-1?O.strstart:D-1,de===w?(U(O,!0),O.strm.avail_out===0?K:b):O.last_lit&&(U(O,!1),O.strm.avail_out===0)?j:Z}function Se(O,de){for(var ue,q,Y;;){if(O.lookahead<W){if(se(O),O.lookahead<W&&de===v)return j;if(O.lookahead===0)break}if(ue=0,O.lookahead>=D&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+D-1])&O.hash_mask,ue=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),O.prev_length=O.match_length,O.prev_match=O.match_start,O.match_length=D-1,ue!==0&&O.prev_length<O.max_lazy_match&&O.strstart-ue<=O.w_size-W&&(O.match_length=te(O,ue),O.match_length<=5&&(O.strategy===1||O.match_length===D&&4096<O.strstart-O.match_start)&&(O.match_length=D-1)),O.prev_length>=D&&O.match_length<=O.prev_length){for(Y=O.strstart+O.lookahead-D,q=f._tr_tally(O,O.strstart-1-O.prev_match,O.prev_length-D),O.lookahead-=O.prev_length-1,O.prev_length-=2;++O.strstart<=Y&&(O.ins_h=(O.ins_h<<O.hash_shift^O.window[O.strstart+D-1])&O.hash_mask,ue=O.prev[O.strstart&O.w_mask]=O.head[O.ins_h],O.head[O.ins_h]=O.strstart),--O.prev_length!=0;);if(O.match_available=0,O.match_length=D-1,O.strstart++,q&&(U(O,!1),O.strm.avail_out===0))return j}else if(O.match_available){if((q=f._tr_tally(O,0,O.window[O.strstart-1]))&&U(O,!1),O.strstart++,O.lookahead--,O.strm.avail_out===0)return j}else O.match_available=1,O.strstart++,O.lookahead--}return O.match_available&&(q=f._tr_tally(O,0,O.window[O.strstart-1]),O.match_available=0),O.insert=O.strstart<D-1?O.strstart:D-1,de===w?(U(O,!0),O.strm.avail_out===0?K:b):O.last_lit&&(U(O,!1),O.strm.avail_out===0)?j:Z}function Te(O,de,ue,q,Y){this.good_length=O,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*F),this.dyn_dtree=new c.Buf16(2*(2*A+1)),this.bl_tree=new c.Buf16(2*(2*z+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(V+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 ke(O){var de;return O&&O.state?(O.total_in=O.total_out=0,O.data_type=E,(de=O.state).pending=0,de.pending_out=0,de.wrap<0&&(de.wrap=-de.wrap),de.status=de.wrap?P:I,O.adler=de.wrap===2?0:1,de.last_flush=v,f._tr_init(de),T):ce(O,_)}function Le(O){var de=ke(O);return de===T&&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}(O.state),de}function Re(O,de,ue,q,Y,ee){if(!O)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(O,_);q===8&&(q=9);var ye=new Ne;return(O.state=ye).strm=O,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(O)}u=[new Te(0,0,0,0,function(O,de){var ue=65535;for(ue>O.pending_buf_size-5&&(ue=O.pending_buf_size-5);;){if(O.lookahead<=1){if(se(O),O.lookahead===0&&de===v)return j;if(O.lookahead===0)break}O.strstart+=O.lookahead,O.lookahead=0;var q=O.block_start+ue;if((O.strstart===0||O.strstart>=q)&&(O.lookahead=O.strstart-q,O.strstart=q,U(O,!1),O.strm.avail_out===0)||O.strstart-O.block_start>=O.w_size-W&&(U(O,!1),O.strm.avail_out===0))return j}return O.insert=0,de===w?(U(O,!0),O.strm.avail_out===0?K:b):(O.strstart>O.block_start&&(U(O,!1),O.strm.avail_out),j)}),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(O,de){return Re(O,de,M,15,8,0)},o.deflateInit2=Re,o.deflateReset=Le,o.deflateResetKeep=ke,o.deflateSetHeader=function(O,de){return O&&O.state?O.state.wrap!==2?_:(O.state.gzhead=de,T):_},o.deflate=function(O,de){var ue,q,Y,ee;if(!O||!O.state||5<de||de<0)return O?ce(O,_):_;if(q=O.state,!O.output||!O.input&&O.avail_in!==0||q.status===666&&de!==w)return ce(O,O.avail_out===0?-5:_);if(q.strm=O,ue=q.last_flush,q.last_flush=de,q.status===P)if(q.wrap===2)O.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&&(O.adler=p(O.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,pe),q.strstart!==0&&($(q,O.adler>>>16),$(q,65535&O.adler)),O.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&&(O.adler=p(O.adler,q.pending_buf,q.pending-Y,Y)),k(O),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&&(O.adler=p(O.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&&(O.adler=p(O.adler,q.pending_buf,q.pending-Y,Y)),k(O),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&&(O.adler=p(O.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&&(O.adler=p(O.adler,q.pending_buf,q.pending-Y,Y)),k(O),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&&(O.adler=p(O.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&&k(O),q.pending+2<=q.pending_buf_size&&(J(q,255&O.adler),J(q,O.adler>>8&255),O.adler=0,q.status=I)):q.status=I),q.pending!==0){if(k(O),O.avail_out===0)return q.last_flush=-1,T}else if(O.avail_in===0&&H(de)<=H(ue)&&de!==w)return ce(O,-5);if(q.status===666&&O.avail_in!==0)return ce(O,-5);if(O.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 j;break}if(oe.match_length=0,Ee=f._tr_tally(oe,0,oe.window[oe.strstart]),oe.lookahead--,oe.strstart++,Ee&&(U(oe,!1),oe.strm.avail_out===0))return j}return oe.insert=0,je===w?(U(oe,!0),oe.strm.avail_out===0?K:b):oe.last_lit&&(U(oe,!1),oe.strm.avail_out===0)?j:Z}(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 j;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&&(U(oe,!1),oe.strm.avail_out===0))return j}return oe.insert=0,je===w?(U(oe,!0),oe.strm.avail_out===0?K:b):oe.last_lit&&(U(oe,!1),oe.strm.avail_out===0)?j:Z}(q,de):u[q.level].func(q,de);if(ye!==K&&ye!==b||(q.status=666),ye===j||ye===K)return O.avail_out===0&&(q.last_flush=-1),T;if(ye===Z&&(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))),k(O),O.avail_out===0))return q.last_flush=-1,T}return de!==w?T:q.wrap<=0?1:(q.wrap===2?(J(q,255&O.adler),J(q,O.adler>>8&255),J(q,O.adler>>16&255),J(q,O.adler>>24&255),J(q,255&O.total_in),J(q,O.total_in>>8&255),J(q,O.total_in>>16&255),J(q,O.total_in>>24&255)):($(q,O.adler>>>16),$(q,65535&O.adler)),k(O),0<q.wrap&&(q.wrap=-q.wrap),q.pending!==0?T:1)},o.deflateEnd=function(O){var de;return O&&O.state?(de=O.state.status)!==P&&de!==69&&de!==73&&de!==91&&de!==103&&de!==I&&de!==666?ce(O,_):(O.state=null,de===I?ce(O,-3):T):_},o.deflateSetDictionary=function(O,de){var ue,q,Y,ee,pe,ye,oe,je,Ee=de.length;if(!O||!O.state||(ee=(ue=O.state).wrap)===2||ee===1&&ue.status!==P||ue.lookahead)return _;for(ee===1&&(O.adler=h(O.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=O.avail_in,ye=O.next_in,oe=O.input,O.avail_in=Ee,O.next_in=0,O.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,O.next_in=ye,O.input=oe,O.avail_in=pe,ue.wrap=ee,T},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,w,T,_,S,N,E,M,L,G,A,z,F,V,D,R,W,P,I,j,Z;f=u.state,h=u.next_in,j=u.input,p=h+(u.avail_in-5),g=u.next_out,Z=u.output,v=g-(c-u.avail_out),w=g+(u.avail_out-257),T=f.dmax,_=f.wsize,S=f.whave,N=f.wnext,E=f.window,M=f.hold,L=f.bits,G=f.lencode,A=f.distcode,z=(1<<f.lenbits)-1,F=(1<<f.distbits)-1;e:do{L<15&&(M+=j[h++]<<L,L+=8,M+=j[h++]<<L,L+=8),V=G[M&z];t:for(;;){if(M>>>=D=V>>>24,L-=D,(D=V>>>16&255)===0)Z[g++]=65535&V;else{if(!(16&D)){if((64&D)==0){V=G[(65535&V)+(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&V,(D&=15)&&(L<D&&(M+=j[h++]<<L,L+=8),R+=M&(1<<D)-1,M>>>=D,L-=D),L<15&&(M+=j[h++]<<L,L+=8,M+=j[h++]<<L,L+=8),V=A[M&F];n:for(;;){if(M>>>=D=V>>>24,L-=D,!(16&(D=V>>>16&255))){if((64&D)==0){V=A[(65535&V)+(M&(1<<D)-1)];continue n}u.msg="invalid distance code",f.mode=30;break e}if(W=65535&V,L<(D&=15)&&(M+=j[h++]<<L,(L+=8)<D&&(M+=j[h++]<<L,L+=8)),T<(W+=M&(1<<D)-1)){u.msg="invalid distance too far back",f.mode=30;break e}if(M>>>=D,L-=D,(D=g-v)<W){if(S<(D=W-D)&&f.sane){u.msg="invalid distance too far back",f.mode=30;break e}if(I=E,(P=0)===N){if(P+=_-D,D<R){for(R-=D;Z[g++]=E[P++],--D;);P=g-W,I=Z}}else if(N<D){if(P+=_+N-D,(D-=N)<R){for(R-=D;Z[g++]=E[P++],--D;);if(P=0,N<R){for(R-=D=N;Z[g++]=E[P++],--D;);P=g-W,I=Z}}}else if(P+=N-D,D<R){for(R-=D;Z[g++]=E[P++],--D;);P=g-W,I=Z}for(;2<R;)Z[g++]=I[P++],Z[g++]=I[P++],Z[g++]=I[P++],R-=3;R&&(Z[g++]=I[P++],1<R&&(Z[g++]=I[P++]))}else{for(P=g-W;Z[g++]=Z[P++],Z[g++]=Z[P++],Z[g++]=Z[P++],2<(R-=3););R&&(Z[g++]=Z[P++],1<R&&(Z[g++]=Z[P++]))}break}}break}}while(h<p&&g<w);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<w?w-g+257:257-(g-w),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,w=0,T=-2,_=1,S=852,N=592;function E(P){return(P>>>24&255)+(P>>>8&65280)+((65280&P)<<8)+((255&P)<<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(P){var I;return P&&P.state?(I=P.state,P.total_in=P.total_out=I.total=0,P.msg="",I.wrap&&(P.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,w):T}function G(P){var I;return P&&P.state?((I=P.state).wsize=0,I.whave=0,I.wnext=0,L(P)):T}function A(P,I){var j,Z;return P&&P.state?(Z=P.state,I<0?(j=0,I=-I):(j=1+(I>>4),I<48&&(I&=15)),I&&(I<8||15<I)?T:(Z.window!==null&&Z.wbits!==I&&(Z.window=null),Z.wrap=j,Z.wbits=I,G(P))):T}function z(P,I){var j,Z;return P?(Z=new M,(P.state=Z).window=null,(j=A(P,I))!==w&&(P.state=null),j):T}var F,V,D=!0;function R(P){if(D){var I;for(F=new u.Buf32(512),V=new u.Buf32(32),I=0;I<144;)P.lens[I++]=8;for(;I<256;)P.lens[I++]=9;for(;I<280;)P.lens[I++]=7;for(;I<288;)P.lens[I++]=8;for(p(g,P.lens,0,288,F,0,P.work,{bits:9}),I=0;I<32;)P.lens[I++]=5;p(v,P.lens,0,32,V,0,P.work,{bits:5}),D=!1}P.lencode=F,P.lenbits=9,P.distcode=V,P.distbits=5}function W(P,I,j,Z){var K,b=P.state;return b.window===null&&(b.wsize=1<<b.wbits,b.wnext=0,b.whave=0,b.window=new u.Buf8(b.wsize)),Z>=b.wsize?(u.arraySet(b.window,I,j-b.wsize,b.wsize,0),b.wnext=0,b.whave=b.wsize):(Z<(K=b.wsize-b.wnext)&&(K=Z),u.arraySet(b.window,I,j-Z,K,b.wnext),(Z-=K)?(u.arraySet(b.window,I,j-Z,Z,0),b.wnext=Z,b.whave=b.wsize):(b.wnext+=K,b.wnext===b.wsize&&(b.wnext=0),b.whave<b.wsize&&(b.whave+=K))),0}o.inflateReset=G,o.inflateReset2=A,o.inflateResetKeep=L,o.inflateInit=function(P){return z(P,15)},o.inflateInit2=z,o.inflate=function(P,I){var j,Z,K,b,ce,H,x,k,U,J,$,te,se,be,Se,Te,Ne,ke,Le,Re,O,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(!P||!P.state||!P.output||!P.input&&P.avail_in!==0)return T;(j=P.state).mode===12&&(j.mode=13),ce=P.next_out,K=P.output,x=P.avail_out,b=P.next_in,Z=P.input,H=P.avail_in,k=j.hold,U=j.bits,J=H,$=x,de=w;e:for(;;)switch(j.mode){case _:if(j.wrap===0){j.mode=13;break}for(;U<16;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}if(2&j.wrap&&k===35615){ee[j.check=0]=255&k,ee[1]=k>>>8&255,j.check=f(j.check,ee,2,0),U=k=0,j.mode=2;break}if(j.flags=0,j.head&&(j.head.done=!1),!(1&j.wrap)||(((255&k)<<8)+(k>>8))%31){P.msg="incorrect header check",j.mode=30;break}if((15&k)!=8){P.msg="unknown compression method",j.mode=30;break}if(U-=4,O=8+(15&(k>>>=4)),j.wbits===0)j.wbits=O;else if(O>j.wbits){P.msg="invalid window size",j.mode=30;break}j.dmax=1<<O,P.adler=j.check=1,j.mode=512&k?10:12,U=k=0;break;case 2:for(;U<16;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}if(j.flags=k,(255&j.flags)!=8){P.msg="unknown compression method",j.mode=30;break}if(57344&j.flags){P.msg="unknown header flags set",j.mode=30;break}j.head&&(j.head.text=k>>8&1),512&j.flags&&(ee[0]=255&k,ee[1]=k>>>8&255,j.check=f(j.check,ee,2,0)),U=k=0,j.mode=3;case 3:for(;U<32;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}j.head&&(j.head.time=k),512&j.flags&&(ee[0]=255&k,ee[1]=k>>>8&255,ee[2]=k>>>16&255,ee[3]=k>>>24&255,j.check=f(j.check,ee,4,0)),U=k=0,j.mode=4;case 4:for(;U<16;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}j.head&&(j.head.xflags=255&k,j.head.os=k>>8),512&j.flags&&(ee[0]=255&k,ee[1]=k>>>8&255,j.check=f(j.check,ee,2,0)),U=k=0,j.mode=5;case 5:if(1024&j.flags){for(;U<16;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}j.length=k,j.head&&(j.head.extra_len=k),512&j.flags&&(ee[0]=255&k,ee[1]=k>>>8&255,j.check=f(j.check,ee,2,0)),U=k=0}else j.head&&(j.head.extra=null);j.mode=6;case 6:if(1024&j.flags&&(H<(te=j.length)&&(te=H),te&&(j.head&&(O=j.head.extra_len-j.length,j.head.extra||(j.head.extra=new Array(j.head.extra_len)),u.arraySet(j.head.extra,Z,b,te,O)),512&j.flags&&(j.check=f(j.check,Z,te,b)),H-=te,b+=te,j.length-=te),j.length))break e;j.length=0,j.mode=7;case 7:if(2048&j.flags){if(H===0)break e;for(te=0;O=Z[b+te++],j.head&&O&&j.length<65536&&(j.head.name+=String.fromCharCode(O)),O&&te<H;);if(512&j.flags&&(j.check=f(j.check,Z,te,b)),H-=te,b+=te,O)break e}else j.head&&(j.head.name=null);j.length=0,j.mode=8;case 8:if(4096&j.flags){if(H===0)break e;for(te=0;O=Z[b+te++],j.head&&O&&j.length<65536&&(j.head.comment+=String.fromCharCode(O)),O&&te<H;);if(512&j.flags&&(j.check=f(j.check,Z,te,b)),H-=te,b+=te,O)break e}else j.head&&(j.head.comment=null);j.mode=9;case 9:if(512&j.flags){for(;U<16;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}if(k!==(65535&j.check)){P.msg="header crc mismatch",j.mode=30;break}U=k=0}j.head&&(j.head.hcrc=j.flags>>9&1,j.head.done=!0),P.adler=j.check=0,j.mode=12;break;case 10:for(;U<32;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}P.adler=j.check=E(k),U=k=0,j.mode=11;case 11:if(j.havedict===0)return P.next_out=ce,P.avail_out=x,P.next_in=b,P.avail_in=H,j.hold=k,j.bits=U,2;P.adler=j.check=1,j.mode=12;case 12:if(I===5||I===6)break e;case 13:if(j.last){k>>>=7&U,U-=7&U,j.mode=27;break}for(;U<3;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}switch(j.last=1&k,U-=1,3&(k>>>=1)){case 0:j.mode=14;break;case 1:if(R(j),j.mode=20,I!==6)break;k>>>=2,U-=2;break e;case 2:j.mode=17;break;case 3:P.msg="invalid block type",j.mode=30}k>>>=2,U-=2;break;case 14:for(k>>>=7&U,U-=7&U;U<32;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}if((65535&k)!=(k>>>16^65535)){P.msg="invalid stored block lengths",j.mode=30;break}if(j.length=65535&k,U=k=0,j.mode=15,I===6)break e;case 15:j.mode=16;case 16:if(te=j.length){if(H<te&&(te=H),x<te&&(te=x),te===0)break e;u.arraySet(K,Z,b,te,ce),H-=te,b+=te,x-=te,ce+=te,j.length-=te;break}j.mode=12;break;case 17:for(;U<14;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}if(j.nlen=257+(31&k),k>>>=5,U-=5,j.ndist=1+(31&k),k>>>=5,U-=5,j.ncode=4+(15&k),k>>>=4,U-=4,286<j.nlen||30<j.ndist){P.msg="too many length or distance symbols",j.mode=30;break}j.have=0,j.mode=18;case 18:for(;j.have<j.ncode;){for(;U<3;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}j.lens[pe[j.have++]]=7&k,k>>>=3,U-=3}for(;j.have<19;)j.lens[pe[j.have++]]=0;if(j.lencode=j.lendyn,j.lenbits=7,ue={bits:j.lenbits},de=p(0,j.lens,0,19,j.lencode,0,j.work,ue),j.lenbits=ue.bits,de){P.msg="invalid code lengths set",j.mode=30;break}j.have=0,j.mode=19;case 19:for(;j.have<j.nlen+j.ndist;){for(;Te=(Y=j.lencode[k&(1<<j.lenbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=U);){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}if(Ne<16)k>>>=Se,U-=Se,j.lens[j.have++]=Ne;else{if(Ne===16){for(q=Se+2;U<q;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}if(k>>>=Se,U-=Se,j.have===0){P.msg="invalid bit length repeat",j.mode=30;break}O=j.lens[j.have-1],te=3+(3&k),k>>>=2,U-=2}else if(Ne===17){for(q=Se+3;U<q;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}U-=Se,O=0,te=3+(7&(k>>>=Se)),k>>>=3,U-=3}else{for(q=Se+7;U<q;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}U-=Se,O=0,te=11+(127&(k>>>=Se)),k>>>=7,U-=7}if(j.have+te>j.nlen+j.ndist){P.msg="invalid bit length repeat",j.mode=30;break}for(;te--;)j.lens[j.have++]=O}}if(j.mode===30)break;if(j.lens[256]===0){P.msg="invalid code -- missing end-of-block",j.mode=30;break}if(j.lenbits=9,ue={bits:j.lenbits},de=p(g,j.lens,0,j.nlen,j.lencode,0,j.work,ue),j.lenbits=ue.bits,de){P.msg="invalid literal/lengths set",j.mode=30;break}if(j.distbits=6,j.distcode=j.distdyn,ue={bits:j.distbits},de=p(v,j.lens,j.nlen,j.ndist,j.distcode,0,j.work,ue),j.distbits=ue.bits,de){P.msg="invalid distances set",j.mode=30;break}if(j.mode=20,I===6)break e;case 20:j.mode=21;case 21:if(6<=H&&258<=x){P.next_out=ce,P.avail_out=x,P.next_in=b,P.avail_in=H,j.hold=k,j.bits=U,h(P,$),ce=P.next_out,K=P.output,x=P.avail_out,b=P.next_in,Z=P.input,H=P.avail_in,k=j.hold,U=j.bits,j.mode===12&&(j.back=-1);break}for(j.back=0;Te=(Y=j.lencode[k&(1<<j.lenbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=U);){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}if(Te&&(240&Te)==0){for(ke=Se,Le=Te,Re=Ne;Te=(Y=j.lencode[Re+((k&(1<<ke+Le)-1)>>ke)])>>>16&255,Ne=65535&Y,!(ke+(Se=Y>>>24)<=U);){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}k>>>=ke,U-=ke,j.back+=ke}if(k>>>=Se,U-=Se,j.back+=Se,j.length=Ne,Te===0){j.mode=26;break}if(32&Te){j.back=-1,j.mode=12;break}if(64&Te){P.msg="invalid literal/length code",j.mode=30;break}j.extra=15&Te,j.mode=22;case 22:if(j.extra){for(q=j.extra;U<q;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}j.length+=k&(1<<j.extra)-1,k>>>=j.extra,U-=j.extra,j.back+=j.extra}j.was=j.length,j.mode=23;case 23:for(;Te=(Y=j.distcode[k&(1<<j.distbits)-1])>>>16&255,Ne=65535&Y,!((Se=Y>>>24)<=U);){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}if((240&Te)==0){for(ke=Se,Le=Te,Re=Ne;Te=(Y=j.distcode[Re+((k&(1<<ke+Le)-1)>>ke)])>>>16&255,Ne=65535&Y,!(ke+(Se=Y>>>24)<=U);){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}k>>>=ke,U-=ke,j.back+=ke}if(k>>>=Se,U-=Se,j.back+=Se,64&Te){P.msg="invalid distance code",j.mode=30;break}j.offset=Ne,j.extra=15&Te,j.mode=24;case 24:if(j.extra){for(q=j.extra;U<q;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}j.offset+=k&(1<<j.extra)-1,k>>>=j.extra,U-=j.extra,j.back+=j.extra}if(j.offset>j.dmax){P.msg="invalid distance too far back",j.mode=30;break}j.mode=25;case 25:if(x===0)break e;if(te=$-x,j.offset>te){if((te=j.offset-te)>j.whave&&j.sane){P.msg="invalid distance too far back",j.mode=30;break}se=te>j.wnext?(te-=j.wnext,j.wsize-te):j.wnext-te,te>j.length&&(te=j.length),be=j.window}else be=K,se=ce-j.offset,te=j.length;for(x<te&&(te=x),x-=te,j.length-=te;K[ce++]=be[se++],--te;);j.length===0&&(j.mode=21);break;case 26:if(x===0)break e;K[ce++]=j.length,x--,j.mode=21;break;case 27:if(j.wrap){for(;U<32;){if(H===0)break e;H--,k|=Z[b++]<<U,U+=8}if($-=x,P.total_out+=$,j.total+=$,$&&(P.adler=j.check=j.flags?f(j.check,K,$,ce-$):c(j.check,K,$,ce-$)),$=x,(j.flags?k:E(k))!==j.check){P.msg="incorrect data check",j.mode=30;break}U=k=0}j.mode=28;case 28:if(j.wrap&&j.flags){for(;U<32;){if(H===0)break e;H--,k+=Z[b++]<<U,U+=8}if(k!==(4294967295&j.total)){P.msg="incorrect length check",j.mode=30;break}U=k=0}j.mode=29;case 29:de=1;break e;case 30:de=-3;break e;case 31:return-4;case 32:default:return T}return P.next_out=ce,P.avail_out=x,P.next_in=b,P.avail_in=H,j.hold=k,j.bits=U,(j.wsize||$!==P.avail_out&&j.mode<30&&(j.mode<27||I!==4))&&W(P,P.output,P.next_out,$-P.avail_out)?(j.mode=31,-4):(J-=P.avail_in,$-=P.avail_out,P.total_in+=J,P.total_out+=$,j.total+=$,j.wrap&&$&&(P.adler=j.check=j.flags?f(j.check,K,$,P.next_out-$):c(j.check,K,$,P.next_out-$)),P.data_type=j.bits+(j.last?64:0)+(j.mode===12?128:0)+(j.mode===20||j.mode===15?256:0),(J==0&&$===0||I===4)&&de===w&&(de=-5),de)},o.inflateEnd=function(P){if(!P||!P.state)return T;var I=P.state;return I.window&&(I.window=null),P.state=null,w},o.inflateGetHeader=function(P,I){var j;return P&&P.state?(2&(j=P.state).wrap)==0?T:((j.head=I).done=!1,w):T},o.inflateSetDictionary=function(P,I){var j,Z=I.length;return P&&P.state?(j=P.state).wrap!==0&&j.mode!==11?T:j.mode===11&&c(1,I,Z,0)!==j.check?-3:W(P,I,Z,Z)?(j.mode=31,-4):(j.havedict=1,w):T},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,w,T,_,S,N,E){var M,L,G,A,z,F,V,D,R,W=E.bits,P=0,I=0,j=0,Z=0,K=0,b=0,ce=0,H=0,x=0,k=0,U=null,J=0,$=new u.Buf16(16),te=new u.Buf16(16),se=null,be=0;for(P=0;P<=15;P++)$[P]=0;for(I=0;I<T;I++)$[v[w+I]]++;for(K=W,Z=15;1<=Z&&$[Z]===0;Z--);if(Z<K&&(K=Z),Z===0)return _[S++]=20971520,_[S++]=20971520,E.bits=1,0;for(j=1;j<Z&&$[j]===0;j++);for(K<j&&(K=j),P=H=1;P<=15;P++)if(H<<=1,(H-=$[P])<0)return-1;if(0<H&&(g===0||Z!==1))return-1;for(te[1]=0,P=1;P<15;P++)te[P+1]=te[P]+$[P];for(I=0;I<T;I++)v[w+I]!==0&&(N[te[v[w+I]]++]=I);if(F=g===0?(U=se=N,19):g===1?(U=c,J-=257,se=f,be-=257,256):(U=h,se=p,-1),P=j,z=S,ce=I=k=0,G=-1,A=(x=1<<(b=K))-1,g===1&&852<x||g===2&&592<x)return 1;for(;;){for(V=P-ce,R=N[I]<F?(D=0,N[I]):N[I]>F?(D=se[be+N[I]],U[J+N[I]]):(D=96,0),M=1<<P-ce,j=L=1<<b;_[z+(k>>ce)+(L-=M)]=V<<24|D<<16|R|0,L!==0;);for(M=1<<P-1;k&M;)M>>=1;if(M!==0?(k&=M-1,k+=M):k=0,I++,--$[P]==0){if(P===Z)break;P=v[w+N[I]]}if(K<P&&(k&A)!==G){for(ce===0&&(ce=K),z+=j,H=1<<(b=P-ce);b+ce<Z&&!((H-=$[b+ce])<=0);)b++,H<<=1;if(x+=1<<b,g===1&&852<x||g===2&&592<x)return 1;_[G=k&A]=K<<24|b<<16|z-S|0}}return k!==0&&(_[z+k]=P-ce<<24|64<<16|0),E.bits=K,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,w=v+1+g,T=30,_=19,S=2*w+1,N=15,E=16,M=7,L=256,G=16,A=17,z=18,F=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],V=[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],W=new Array(2*(w+2));h(W);var P=new Array(2*T);h(P);var I=new Array(512);h(I);var j=new Array(256);h(j);var Z=new Array(g);h(Z);var K,b,ce,H=new Array(T);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 k(Y,ee){this.dyn_tree=Y,this.max_code=0,this.stat_desc=ee}function U(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 $(Y,ee,pe){Y.bi_valid>E-pe?(Y.bi_buf|=ee<<Y.bi_valid&65535,J(Y,Y.bi_buf),Y.bi_buf=ee>>E-Y.bi_valid,Y.bi_valid+=pe-E):(Y.bi_buf|=ee<<Y.bi_valid&65535,Y.bi_valid+=pe)}function te(Y,ee,pe){$(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<w;ee++)Y.dyn_ltree[2*ee]=0;for(ee=0;ee<T;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 ke(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=j[oe])+v+1,ee),(Ee=F[je])!==0&&$(Y,oe-=Z[je],Ee),te(Y,je=U(--ye),pe),(Ee=V[je])!==0&&$(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--)ke(Y,je,pe);for(oe=ve;pe=Y.heap[1],Y.heap[1]=Y.heap[Y.heap_len--],ke(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++,ke(Y,je,1),2<=Y.heap_len;);Y.heap[--Y.heap_max]=Y.heap[1],function(Ce,qe){var nn,lt,pn,nt,Qn,Cn,Kt=qe.dyn_tree,Sr=qe.max_code,uc=qe.stat_desc.static_tree,Mo=qe.stat_desc.has_stree,Lo=qe.stat_desc.extra_bits,Pa=qe.stat_desc.extra_base,Dn=qe.stat_desc.max_length,za=0;for(nt=0;nt<=N;nt++)Ce.bl_count[nt]=0;for(Kt[2*Ce.heap[Ce.heap_max]+1]=0,nn=Ce.heap_max+1;nn<S;nn++)Dn<(nt=Kt[2*Kt[2*(lt=Ce.heap[nn])+1]+1]+1)&&(nt=Dn,za++),Kt[2*lt+1]=nt,Sr<lt||(Ce.bl_count[nt]++,Qn=0,Pa<=lt&&(Qn=Lo[lt-Pa]),Cn=Kt[2*lt],Ce.opt_len+=Cn*(nt+Qn),Mo&&(Ce.static_len+=Cn*(uc[2*lt+1]+Qn)));if(za!==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]--,za-=2}while(0<za);for(nt=Dn;nt!==0;nt--)for(lt=Ce.bl_count[nt];lt!==0;)Sr<(pn=Ce.heap[--nn])||(Kt[2*pn+1]!==nt&&(Ce.opt_len+=(nt-Kt[2*pn+1])*Kt[2*pn],Kt[2*pn+1]=nt),lt--)}}(Y,ee),be(je,_e,Y.bl_count)}function O(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*A]++:Y.bl_tree[2*z]++,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),$(Y,re-3,2)):re<=10?(te(Y,A,Y.bl_tree),$(Y,re-3,3)):(te(Y,z,Y.bl_tree),$(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){$(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(Z[oe]=ye,ee=0;ee<1<<F[oe];ee++)j[ye++]=oe;for(j[ye-1]=oe,oe=je=0;oe<16;oe++)for(H[oe]=je,ee=0;ee<1<<V[oe];ee++)I[je++]=oe;for(je>>=7;oe<T;oe++)for(H[oe]=je<<7,ee=0;ee<1<<V[oe]-7;ee++)I[256+je++]=oe;for(pe=0;pe<=N;pe++)Ee[pe]=0;for(ee=0;ee<=143;)W[2*ee+1]=8,ee++,Ee[8]++;for(;ee<=255;)W[2*ee+1]=9,ee++,Ee[9]++;for(;ee<=279;)W[2*ee+1]=7,ee++,Ee[7]++;for(;ee<=287;)W[2*ee+1]=8,ee++,Ee[8]++;for(be(W,w+1,Ee),ee=0;ee<T;ee++)P[2*ee+1]=5,P[2*ee]=se(ee,5);K=new x(W,F,v+1,w,N),b=new x(P,V,0,T,N),ce=new x(new Array(0),D,0,_,M)}(),ue=!0),Y.l_desc=new k(Y.dyn_ltree,K),Y.d_desc=new k(Y.dyn_dtree,b),Y.bl_desc=new k(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(O(re,re.dyn_ltree,re.l_desc.max_code),O(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?($(Y,2+(ye?1:0),3),Le(Y,W,P)):($(Y,4+(ye?1:0),3),function(re,ve,_e,Ce){var qe;for($(re,ve-257,5),$(re,_e-1,5),$(re,Ce-4,4),qe=0;qe<Ce;qe++)$(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*(j[pe]+v+1)]++,Y.dyn_dtree[2*U(ee)]++),Y.last_lit===Y.lit_bufsize-1},o._tr_align=function(Y){$(Y,2,3),te(Y,L,W),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,w=1,T={},_=!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,A=c.onmessage;return c.onmessage=function(){G=!1},c.postMessage("","*"),c.onmessage=A,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 A=S.createElement("script");A.onreadystatechange=function(){M(G),A.onreadystatechange=null,p.removeChild(A),A=null},p.appendChild(A)}):function(G){setTimeout(M,0,G)},N.setImmediate=function(G){typeof G!="function"&&(G=new Function(""+G));for(var A=new Array(arguments.length-1),z=0;z<A.length;z++)A[z]=arguments[z+1];var F={callback:G,args:A};return T[w]=F,h(w),w++},N.clearImmediate=E}function E(G){delete T[G]}function M(G){if(_)setTimeout(M,0,G);else{var A=T[G];if(A){_=!0;try{(function(z){var F=z.callback,V=z.args;switch(V.length){case 0:F();break;case 1:F(V[0]);break;case 2:F(V[0],V[1]);break;case 3:F(V[0],V[1],V[2]);break;default:F.apply(f,V)}})(A)}finally{E(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)})}(Vf)),Vf.exports}var qN=IN();const GN=Bu(qN);var mu={exports:{}},YN=mu.exports,Dv;function KN(){return Dv||(Dv=1,function(e,n){(function(a,s){s()})(YN,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 w=new XMLHttpRequest;w.open("GET",p),w.responseType="blob",w.onload=function(){h(w.response,g,v)},w.onerror=function(){console.error("could not download file")},w.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 w=c.URL||c.webkitURL,T=document.createElement("a");g=g||p.name||"download",T.download=g,T.rel="noopener",typeof p=="string"?(T.href=p,T.origin===location.origin?u(T):o(T.href)?s(p,g,v):u(T,T.target="_blank")):(T.href=w.createObjectURL(p),setTimeout(function(){w.revokeObjectURL(T.href)},4e4),setTimeout(function(){u(T)},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 w=document.createElement("a");w.href=p,w.target="_blank",setTimeout(function(){u(w)})}}:function(p,g,v,w){if(w=w||open("","_blank"),w&&(w.document.title=w.document.body.innerText="downloading..."),typeof p=="string")return s(p,g,v);var T=p.type==="application/octet-stream",_=/constructor/i.test(c.HTMLElement)||c.safari,S=/CriOS\/[\d]+/.test(navigator.userAgent);if((S||T&&_||f)&&typeof FileReader<"u"){var N=new FileReader;N.onloadend=function(){var L=N.result;L=S?L:L.replace(/^data:[^;]*;/,"data:attachment/file;"),w?w.location.href=L:location=L,w=null},N.readAsDataURL(p)}else{var E=c.URL||c.webkitURL,M=E.createObjectURL(p);w?w.location=M:location.href=M,w=null,setTimeout(function(){E.revokeObjectURL(M)},4e4)}});c.saveAs=h.saveAs=h,e.exports=h})}(mu)),mu.exports}var XN=KN();const ZN="/assets/bg-CTZfS44-.jpg",WN="/assets/mobile-DVtmHUcA.png",QN="/assets/wherego-CxrpFa6S.jpeg",$N="/assets/futuresee-vF3riMDq.jpeg",JN="/assets/map-DfwT83pC.png",M1="/assets/direction-DvSXpJ92.png",e_="/assets/rides-DHFaS9Zp.png",t_="/assets/connectors-DxMTDBst.png",n_="/assets/recoveries-CVwWHeuA.png",r_="/assets/delivery-D2UlqJpG.png",a_="/assets/shifting-DYqoMp4y.png",i_="/assets/tourism-Dr_CLv8Q.png",L1="/assets/bg2-C1RXNloV.png",P1="/assets/book-DZfcrvd8.png",z1="/assets/booklady-CV6x7ftQ.jpg",U1="/assets/playbutton-BmD_M-Vz.png",B1="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=",s_="/assets/countless1-CVck5bx4.jpg",o_="/assets/countless2-b-eUsns6.png",l_="/assets/countless3-DjmIYyMw.png",u_="/assets/brochure-C8xBBGg_.pdf",c_="/assets/document1-49tq_C5-.pdf",d_="/assets/guide-DwMDUa26.pdf";var Hf={},If={},Ys={},qf={},Mv;function f_(){return Mv||(Mv=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}(qf)),qf}var Gf,Lv;function h_(){if(Lv)return Gf;Lv=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,w=v.toString,T=Math.max,_=Math.min,S=function(){return g.Date.now()};function N(A,z,F){var V,D,R,W,P,I,j=0,Z=!1,K=!1,b=!0;if(typeof A!="function")throw new TypeError(e);z=G(z)||0,E(F)&&(Z=!!F.leading,K="maxWait"in F,R=K?T(G(F.maxWait)||0,z):R,b="trailing"in F?!!F.trailing:b);function ce(be){var Se=V,Te=D;return V=D=void 0,j=be,W=A.apply(Te,Se),W}function H(be){return j=be,P=setTimeout(U,z),Z?ce(be):W}function x(be){var Se=be-I,Te=be-j,Ne=z-Se;return K?_(Ne,R-Te):Ne}function k(be){var Se=be-I,Te=be-j;return I===void 0||Se>=z||Se<0||K&&Te>=R}function U(){var be=S();if(k(be))return J(be);P=setTimeout(U,x(be))}function J(be){return P=void 0,b&&V?ce(be):(V=D=void 0,W)}function $(){P!==void 0&&clearTimeout(P),j=0,V=I=D=P=void 0}function te(){return P===void 0?W:J(S())}function se(){var be=S(),Se=k(be);if(V=arguments,D=this,I=be,Se){if(P===void 0)return H(I);if(K)return P=setTimeout(U,z),ce(I)}return P===void 0&&(P=setTimeout(U,z)),W}return se.cancel=$,se.flush=te,se}function E(A){var z=typeof A;return!!A&&(z=="object"||z=="function")}function M(A){return!!A&&typeof A=="object"}function L(A){return typeof A=="symbol"||M(A)&&w.call(A)==a}function G(A){if(typeof A=="number")return A;if(L(A))return n;if(E(A)){var z=typeof A.valueOf=="function"?A.valueOf():A;A=E(z)?z+"":z}if(typeof A!="string")return A===0?A:+A;A=A.replace(s,"");var F=u.test(A);return F||c.test(A)?f(A.slice(2),F?2:8):o.test(A)?n:+A}return Gf=N,Gf}var Yf={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var Pv;function ac(){return Pv||(Pv=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})()}(Yf)),Yf.exports}var Ae={},Kf={},zv;function F1(){return zv||(zv=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(kn());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}(Kf)),Kf}var Uv;function Oo(){if(Uv)return Ae;Uv=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(kn()),n=a(F1());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 k=Object.keys(H);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(H);x&&(U=U.filter(function(J){return Object.getOwnPropertyDescriptor(H,J).enumerable})),k.push.apply(k,U)}return k}function u(H){for(var x=1;x<arguments.length;x++){var k=arguments[x]!=null?arguments[x]:{};x%2?o(Object(k),!0).forEach(function(U){c(H,U,k[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(k)):o(Object(k)).forEach(function(U){Object.defineProperty(H,U,Object.getOwnPropertyDescriptor(k,U))})}return H}function c(H,x,k){return x=f(x),x in H?Object.defineProperty(H,x,{value:k,enumerable:!0,configurable:!0,writable:!0}):H[x]=k,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 k=H[Symbol.toPrimitive];if(k!==void 0){var U=k.call(H,x);if(s(U)!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(x==="string"?String:Number)(H)}function p(H,x,k){return Math.max(x,Math.min(H,k))}var g=Ae.safePreventDefault=function(x){var k=["onTouchStart","onTouchMove","onWheel"];k.includes(x._reactName)||x.preventDefault()},v=Ae.getOnDemandLazySlides=function(x){for(var k=[],U=w(x),J=T(x),$=U;$<J;$++)x.lazyLoadedList.indexOf($)<0&&k.push($);return k};Ae.getRequiredLazySlides=function(x){for(var k=[],U=w(x),J=T(x),$=U;$<J;$++)k.push($);return k};var w=Ae.lazyStartIndex=function(x){return x.currentSlide-_(x)},T=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},E=Ae.getHeight=function(x){return x&&x.offsetHeight||0},M=Ae.getSwipeDirection=function(x){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U,J,$,te;return U=x.startX-x.curX,J=x.startY-x.curY,$=Math.atan2(J,U),te=Math.round($*180/Math.PI),te<0&&(te=360-Math.abs(te)),te<=45&&te>=0||te<=360&&te>=315?"left":te>=135&&te<=225?"right":k===!0?te>=35&&te<=135?"up":"down":"vertical"},L=Ae.canGoNext=function(x){var k=!0;return x.infinite||(x.centerMode&&x.currentSlide>=x.slideCount-1||x.slideCount<=x.slidesToShow||x.currentSlide>=x.slideCount-x.slidesToShow)&&(k=!1),k};Ae.extractObject=function(x,k){var U={};return k.forEach(function(J){return U[J]=x[J]}),U},Ae.initializedState=function(x){var k=e.default.Children.count(x.children),U=x.listRef,J=Math.ceil(N(U)),$=x.trackRef&&x.trackRef.node,te=Math.ceil(N($)),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=U&&E(U.querySelector('[data-index="0"]')),Te=Se*x.slidesToShow,Ne=x.currentSlide===void 0?x.initialSlide:x.currentSlide;x.rtl&&x.currentSlide===void 0&&(Ne=k-1-x.initialSlide);var ke=x.lazyLoadedList||[],Le=v(u(u({},x),{},{currentSlide:Ne,lazyLoadedList:ke}));ke=ke.concat(Le);var Re={slideCount:k,slideWidth:se,listWidth:J,trackWidth:te,currentSlide:Ne,slideHeight:Se,listHeight:Te,lazyLoadedList:ke};return x.autoplaying===null&&x.autoplay&&(Re.autoplaying="playing"),Re},Ae.slideHandler=function(x){var k=x.waitForAnimate,U=x.animating,J=x.fade,$=x.infinite,te=x.index,se=x.slideCount,be=x.lazyLoad,Se=x.currentSlide,Te=x.centerMode,Ne=x.slidesToScroll,ke=x.slidesToShow,Le=x.useCSS,Re=x.lazyLoadedList;if(k&&U)return{};var O=te,de,ue,q,Y={},ee={},pe=$?te:p(te,0,se-1);if(J){if(!$&&(te<0||te>=se))return{};te<0?O=te+se:te>=se&&(O=te-se),be&&Re.indexOf(O)<0&&(Re=Re.concat(O)),Y={animating:!0,currentSlide:O,lazyLoadedList:Re,targetSlide:O},ee={animating:!1,targetSlide:O}}else de=O,O<0?(de=O+se,$?se%Ne!==0&&(de=se-se%Ne):de=0):!L(x)&&O>Se?O=de=Se:Te&&O>=se?(O=$?se:se-1,de=$?0:se-1):O>=se&&(de=O-se,$?se%Ne!==0&&(de=0):de=se-ke),!$&&O+ke>=se&&(de=se-ke),ue=R(u(u({},x),{},{slideIndex:O})),q=R(u(u({},x),{},{slideIndex:de})),$||(ue===q&&(O=de),ue=q),be&&(Re=Re.concat(v(u(u({},x),{},{currentSlide:O})))),Le?(Y={animating:!0,currentSlide:de,trackStyle:D(u(u({},x),{},{left:ue})),lazyLoadedList:Re,targetSlide:pe},ee={animating:!1,currentSlide:de,trackStyle:V(u(u({},x),{},{left:q})),swipeLeft:null,targetSlide:pe}):Y={currentSlide:de,trackStyle:V(u(u({},x),{},{left:q})),lazyLoadedList:Re,targetSlide:pe};return{state:Y,nextState:ee}},Ae.changeSlide=function(x,k){var U,J,$,te,se,be=x.slidesToScroll,Se=x.slidesToShow,Te=x.slideCount,Ne=x.currentSlide,ke=x.targetSlide,Le=x.lazyLoad,Re=x.infinite;if(te=Te%be!==0,U=te?0:(Te-Ne)%be,k.message==="previous")$=U===0?be:Se-U,se=Ne-$,Le&&!Re&&(J=Ne-$,se=J===-1?Te-1:J),Re||(se=ke-be);else if(k.message==="next")$=U===0?be:U,se=Ne+$,Le&&!Re&&(se=(Ne+be)%Te+U),Re||(se=ke+be);else if(k.message==="dots")se=k.index*k.slidesToScroll;else if(k.message==="children"){if(se=k.index,Re){var O=j(u(u({},x),{},{targetSlide:se}));se>k.currentSlide&&O==="left"?se=se-Te:se<k.currentSlide&&O==="right"&&(se=se+Te)}}else k.message==="index"&&(se=Number(k.index));return se},Ae.keyHandler=function(x,k,U){return x.target.tagName.match("TEXTAREA|INPUT|SELECT")||!k?"":x.keyCode===37?U?"next":"previous":x.keyCode===39?U?"previous":"next":""},Ae.swipeStart=function(x,k,U){return x.target.tagName==="IMG"&&g(x),!k||!U&&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,k){var U=k.scrolling,J=k.animating,$=k.vertical,te=k.swipeToSlide,se=k.verticalSwiping,be=k.rtl,Se=k.currentSlide,Te=k.edgeFriction,Ne=k.edgeDragged,ke=k.onEdge,Le=k.swiped,Re=k.swiping,O=k.slideCount,de=k.slidesToScroll,ue=k.infinite,q=k.touchObject,Y=k.swipeEvent,ee=k.listHeight,pe=k.listWidth;if(!U){if(J)return g(x);$&&te&&se&&g(x);var ye,oe={},je=R(k);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(O/de),_e=M(k.touchObject,se),Ce=q.swipeLength;return ue||(Se===0&&(_e==="right"||_e==="down")||Se+1>=ve&&(_e==="left"||_e==="up")||!L(k)&&(_e==="left"||_e==="up"))&&(Ce=q.swipeLength*Te,Ne===!1&&ke&&(ke(_e),oe.edgeDragged=!0)),!Le&&Y&&(Y(_e),oe.swiped=!0),$?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:V(u(u({},k),{},{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,k){var U=k.dragging,J=k.swipe,$=k.touchObject,te=k.listWidth,se=k.touchThreshold,be=k.verticalSwiping,Se=k.listHeight,Te=k.swipeToSlide,Ne=k.scrolling,ke=k.onSwipe,Le=k.targetSlide,Re=k.currentSlide,O=k.infinite;if(!U)return J&&g(x),{};var de=be?Se/se:te/se,ue=M($,be),q={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Ne||!$.swipeLength)return q;if($.swipeLength>de){g(x),ke&&ke(ue);var Y,ee,pe=O?Re:Le;switch(ue){case"left":case"up":ee=pe+z(k),Y=Te?A(k,ee):ee,q.currentDirection=0;break;case"right":case"down":ee=pe-z(k),Y=Te?A(k,ee):ee,q.currentDirection=1;break;default:Y=pe}q.triggerSlideHandler=Y}else{var ye=R(k);q.trackStyle=D(u(u({},k),{},{left:ye}))}return q};var G=Ae.getNavigableIndexes=function(x){for(var k=x.infinite?x.slideCount*2:x.slideCount,U=x.infinite?x.slidesToShow*-1:0,J=x.infinite?x.slidesToShow*-1:0,$=[];U<k;)$.push(U),U=J+x.slidesToScroll,J+=Math.min(x.slidesToScroll,x.slidesToShow);return $},A=Ae.checkNavigable=function(x,k){var U=G(x),J=0;if(k>U[U.length-1])k=U[U.length-1];else for(var $ in U){if(k<U[$]){k=J;break}J=U[$]}return k},z=Ae.getSlideCount=function(x){var k=x.centerMode?x.slideWidth*Math.floor(x.slidesToShow/2):0;if(x.swipeToSlide){var U,J=x.listRef,$=J.querySelectorAll&&J.querySelectorAll(".slick-slide")||[];if(Array.from($).every(function(be){if(x.vertical){if(be.offsetTop+E(be)/2>x.swipeLeft*-1)return U=be,!1}else if(be.offsetLeft-k+N(be)/2>x.swipeLeft*-1)return U=be,!1;return!0}),!U)return 0;var te=x.rtl===!0?x.slideCount-x.currentSlide:x.currentSlide,se=Math.abs(U.dataset.index-te)||1;return se}else return x.slidesToScroll},F=Ae.checkSpecKeys=function(x,k){return k.reduce(function(U,J){return U&&x.hasOwnProperty(J)},!0)?null:console.error("Keys Missing:",x)},V=Ae.getTrackCSS=function(x){F(x,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var k,U,J=x.slideCount+2*x.slidesToShow;x.vertical?U=J*x.slideHeight:k=I(x)*x.slideWidth;var $={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)";$=u(u({},$),{},{WebkitTransform:te,transform:se,msTransform:be})}else x.vertical?$.top=x.left:$.left=x.left;return x.fade&&($={opacity:1}),k&&($.width=k),U&&($.height=U),window&&!window.addEventListener&&window.attachEvent&&(x.vertical?$.marginTop=x.left+"px":$.marginLeft=x.left+"px"),$},D=Ae.getTrackAnimateCSS=function(x){F(x,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var k=V(x);return x.useTransform?(k.WebkitTransition="-webkit-transform "+x.speed+"ms "+x.cssEase,k.transition="transform "+x.speed+"ms "+x.cssEase):x.vertical?k.transition="top "+x.speed+"ms "+x.cssEase:k.transition="left "+x.speed+"ms "+x.cssEase,k},R=Ae.getTrackLeft=function(x){if(x.unslick)return 0;F(x,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var k=x.slideIndex,U=x.trackRef,J=x.infinite,$=x.centerMode,te=x.slideCount,se=x.slidesToShow,be=x.slidesToScroll,Se=x.slideWidth,Te=x.listWidth,Ne=x.variableWidth,ke=x.slideHeight,Le=x.fade,Re=x.vertical,O=0,de,ue,q=0;if(Le||x.slideCount===1)return 0;var Y=0;if(J?(Y=-W(x),te%be!==0&&k+be>te&&(Y=-(k>te?se-(k-te):te%be)),$&&(Y+=parseInt(se/2))):(te%be!==0&&k+be>te&&(Y=se-te%be),$&&(Y=parseInt(se/2))),O=Y*Se,q=Y*ke,Re?de=k*ke*-1+q:de=k*Se*-1+O,Ne===!0){var ee,pe=U&&U.node;if(ee=k+W(x),ue=pe&&pe.childNodes[ee],de=ue?ue.offsetLeft*-1:0,$===!0){ee=J?k+W(x):k,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},W=Ae.getPreClones=function(x){return x.unslick||!x.infinite?0:x.variableWidth?x.slideCount:x.slidesToShow+(x.centerMode?1:0)},P=Ae.getPostClones=function(x){return x.unslick||!x.infinite?0:x.slideCount},I=Ae.getTotalSlides=function(x){return x.slideCount===1?1:W(x)+x.slideCount+P(x)},j=Ae.siblingDirection=function(x){return x.targetSlide>x.currentSlide?x.targetSlide>x.currentSlide+Z(x)?"left":"right":x.targetSlide<x.currentSlide-K(x)?"right":"left"},Z=Ae.slidesOnRight=function(x){var k=x.slidesToShow,U=x.centerMode,J=x.rtl,$=x.centerPadding;if(U){var te=(k-1)/2+1;return parseInt($)>0&&(te+=1),J&&k%2===0&&(te+=1),te}return J?0:k-1},K=Ae.slidesOnLeft=function(x){var k=x.slidesToShow,U=x.centerMode,J=x.rtl,$=x.centerPadding;if(U){var te=(k-1)/2+1;return parseInt($)>0&&(te+=1),!J&&k%2===0&&(te+=1),te}return J?k-1:0};Ae.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var b=Ae.validSettings=Object.keys(n.default);function ce(H){return b.reduce(function(x,k){return H.hasOwnProperty(k)&&(x[k]=H[k]),x},{})}return Ae}var Ks={},Bv;function m_(){if(Bv)return Ks;Bv=1,Object.defineProperty(Ks,"__esModule",{value:!0}),Ks.Track=void 0;var e=s(kn()),n=s(ac()),a=Oo();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 W=arguments[R];for(var P in W)Object.prototype.hasOwnProperty.call(W,P)&&(D[P]=W[P])}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 W=0;W<R.length;W++){var P=R[W];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(D,L(P.key),P)}}function h(D,R,W){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(P,I){return P.__proto__=I,P},g(D,R)}function v(D){var R=_();return function(){var P=S(D),I;if(R){var j=S(this).constructor;I=Reflect.construct(P,arguments,j)}else I=P.apply(this,arguments);return w(this,I)}}function w(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 T(D)}function T(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(W){return W.__proto__||Object.getPrototypeOf(W)},S(D)}function N(D,R){var W=Object.keys(D);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(D);R&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(D,I).enumerable})),W.push.apply(W,P)}return W}function E(D){for(var R=1;R<arguments.length;R++){var W=arguments[R]!=null?arguments[R]:{};R%2?N(Object(W),!0).forEach(function(P){M(D,P,W[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(W)):N(Object(W)).forEach(function(P){Object.defineProperty(D,P,Object.getOwnPropertyDescriptor(W,P))})}return D}function M(D,R,W){return R=L(R),R in D?Object.defineProperty(D,R,{value:W,enumerable:!0,configurable:!0,writable:!0}):D[R]=W,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 W=D[Symbol.toPrimitive];if(W!==void 0){var P=W.call(D,R);if(o(P)!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(D)}var A=function(R){var W,P,I,j,Z;R.rtl?Z=R.slideCount-1-R.index:Z=R.index,I=Z<0||Z>=R.slideCount,R.centerMode?(j=Math.floor(R.slidesToShow/2),P=(Z-R.currentSlide)%R.slideCount===0,Z>R.currentSlide-j-1&&Z<=R.currentSlide+j&&(W=!0)):W=R.currentSlide<=Z&&Z<R.currentSlide+R.slidesToShow;var K;R.targetSlide<0?K=R.targetSlide+R.slideCount:R.targetSlide>=R.slideCount?K=R.targetSlide-R.slideCount:K=R.targetSlide;var b=Z===K;return{"slick-slide":!0,"slick-active":W,"slick-center":P,"slick-cloned":I,"slick-current":b}},z=function(R){var W={};return(R.variableWidth===void 0||R.variableWidth===!1)&&(W.width=R.slideWidth),R.fade&&(W.position="relative",R.vertical?W.top=-R.index*parseInt(R.slideHeight):W.left=-R.index*parseInt(R.slideWidth),W.opacity=R.currentSlide===R.index?1:0,W.zIndex=R.currentSlide===R.index?999:998,R.useCSS&&(W.transition="opacity "+R.speed+"ms "+R.cssEase+", visibility "+R.speed+"ms "+R.cssEase)),W},F=function(R,W){return R.key||W},V=function(R){var W,P=[],I=[],j=[],Z=e.default.Children.count(R.children),K=(0,a.lazyStartIndex)(R),b=(0,a.lazyEndIndex)(R);return e.default.Children.forEach(R.children,function(ce,H){var x,k={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 U=z(E(E({},R),{},{index:H})),J=x.props.className||"",$=A(E(E({},R),{},{index:H}));if(P.push(e.default.cloneElement(x,{key:"original"+F(x,H),"data-index":H,className:(0,n.default)($,J),tabIndex:"-1","aria-hidden":!$["slick-active"],style:E(E({outline:"none"},x.props.style||{}),U),onClick:function(be){x.props&&x.props.onClick&&x.props.onClick(be),R.focusOnSelect&&R.focusOnSelect(k)}})),R.infinite&&R.fade===!1){var te=Z-H;te<=(0,a.getPreClones)(R)&&(W=-te,W>=K&&(x=ce),$=A(E(E({},R),{},{index:W})),I.push(e.default.cloneElement(x,{key:"precloned"+F(x,W),"data-index":W,tabIndex:"-1",className:(0,n.default)($,J),"aria-hidden":!$["slick-active"],style:E(E({},x.props.style||{}),U),onClick:function(be){x.props&&x.props.onClick&&x.props.onClick(be),R.focusOnSelect&&R.focusOnSelect(k)}}))),W=Z+H,W<b&&(x=ce),$=A(E(E({},R),{},{index:W})),j.push(e.default.cloneElement(x,{key:"postcloned"+F(x,W),"data-index":W,tabIndex:"-1",className:(0,n.default)($,J),"aria-hidden":!$["slick-active"],style:E(E({},x.props.style||{}),U),onClick:function(be){x.props&&x.props.onClick&&x.props.onClick(be),R.focusOnSelect&&R.focusOnSelect(k)}}))}}),R.rtl?I.concat(P,j).reverse():I.concat(P,j)};return Ks.Track=function(D){p(W,D);var R=v(W);function W(){var P;c(this,W);for(var I=arguments.length,j=new Array(I),Z=0;Z<I;Z++)j[Z]=arguments[Z];return P=R.call.apply(R,[this].concat(j)),M(T(P),"node",null),M(T(P),"handleRef",function(K){P.node=K}),P}return h(W,[{key:"render",value:function(){var I=V(this.props),j=this.props,Z=j.onMouseEnter,K=j.onMouseOver,b=j.onMouseLeave,ce={onMouseEnter:Z,onMouseOver:K,onMouseLeave:b};return e.default.createElement("div",u({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},ce),I)}}]),W}(e.default.PureComponent),Ks}var Xs={},Fv;function p_(){if(Fv)return Xs;Fv=1;function e(A){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},e(A)}Object.defineProperty(Xs,"__esModule",{value:!0}),Xs.Dots=void 0;var n=o(kn()),a=o(ac()),s=Oo();function o(A){return A&&A.__esModule?A:{default:A}}function u(A,z){var F=Object.keys(A);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(A);z&&(V=V.filter(function(D){return Object.getOwnPropertyDescriptor(A,D).enumerable})),F.push.apply(F,V)}return F}function c(A){for(var z=1;z<arguments.length;z++){var F=arguments[z]!=null?arguments[z]:{};z%2?u(Object(F),!0).forEach(function(V){f(A,V,F[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(F)):u(Object(F)).forEach(function(V){Object.defineProperty(A,V,Object.getOwnPropertyDescriptor(F,V))})}return A}function f(A,z,F){return z=v(z),z in A?Object.defineProperty(A,z,{value:F,enumerable:!0,configurable:!0,writable:!0}):A[z]=F,A}function h(A,z){if(!(A instanceof z))throw new TypeError("Cannot call a class as a function")}function p(A,z){for(var F=0;F<z.length;F++){var V=z[F];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(A,v(V.key),V)}}function g(A,z,F){return z&&p(A.prototype,z),Object.defineProperty(A,"prototype",{writable:!1}),A}function v(A){var z=w(A,"string");return e(z)=="symbol"?z:String(z)}function w(A,z){if(e(A)!="object"||!A)return A;var F=A[Symbol.toPrimitive];if(F!==void 0){var V=F.call(A,z);if(e(V)!="object")return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}function T(A,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(z&&z.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),z&&_(A,z)}function _(A,z){return _=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,D){return V.__proto__=D,V},_(A,z)}function S(A){var z=M();return function(){var V=L(A),D;if(z){var R=L(this).constructor;D=Reflect.construct(V,arguments,R)}else D=V.apply(this,arguments);return N(this,D)}}function N(A,z){if(z&&(e(z)==="object"||typeof z=="function"))return z;if(z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return E(A)}function E(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function M(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(M=function(){return!!A})()}function L(A){return L=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},L(A)}var G=function(z){var F;return z.infinite?F=Math.ceil(z.slideCount/z.slidesToScroll):F=Math.ceil((z.slideCount-z.slidesToShow)/z.slidesToScroll)+1,F};return Xs.Dots=function(A){T(F,A);var z=S(F);function F(){return h(this,F),z.apply(this,arguments)}return g(F,[{key:"clickHandler",value:function(D,R){R.preventDefault(),this.props.clickHandler(D)}},{key:"render",value:function(){for(var D=this.props,R=D.onMouseEnter,W=D.onMouseOver,P=D.onMouseLeave,I=D.infinite,j=D.slidesToScroll,Z=D.slidesToShow,K=D.slideCount,b=D.currentSlide,ce=G({slideCount:K,slidesToScroll:j,slidesToShow:Z,infinite:I}),H={onMouseEnter:R,onMouseOver:W,onMouseLeave:P},x=[],k=0;k<ce;k++){var U=(k+1)*j-1,J=I?U:(0,s.clamp)(U,0,K-1),$=J-(j-1),te=I?$:(0,s.clamp)($,0,K-1),se=(0,a.default)({"slick-active":I?b>=te&&b<=J:b===te}),be={message:"dots",index:k,slidesToScroll:j,currentSlide:b},Se=this.clickHandler.bind(this,be);x=x.concat(n.default.createElement("li",{key:k,className:se},n.default.cloneElement(this.props.customPaging(k),{onClick:Se})))}return n.default.cloneElement(this.props.appendDots(x),c({className:this.props.dotsClass},H))}}]),F}(n.default.PureComponent),Xs}var xa={},Vv;function g_(){if(Vv)return xa;Vv=1;function e(A){"@babel/helpers - typeof";return e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},e(A)}Object.defineProperty(xa,"__esModule",{value:!0}),xa.PrevArrow=xa.NextArrow=void 0;var n=o(kn()),a=o(ac()),s=Oo();function o(A){return A&&A.__esModule?A:{default:A}}function u(){return u=Object.assign?Object.assign.bind():function(A){for(var z=1;z<arguments.length;z++){var F=arguments[z];for(var V in F)Object.prototype.hasOwnProperty.call(F,V)&&(A[V]=F[V])}return A},u.apply(this,arguments)}function c(A,z){var F=Object.keys(A);if(Object.getOwnPropertySymbols){var V=Object.getOwnPropertySymbols(A);z&&(V=V.filter(function(D){return Object.getOwnPropertyDescriptor(A,D).enumerable})),F.push.apply(F,V)}return F}function f(A){for(var z=1;z<arguments.length;z++){var F=arguments[z]!=null?arguments[z]:{};z%2?c(Object(F),!0).forEach(function(V){h(A,V,F[V])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(F)):c(Object(F)).forEach(function(V){Object.defineProperty(A,V,Object.getOwnPropertyDescriptor(F,V))})}return A}function h(A,z,F){return z=w(z),z in A?Object.defineProperty(A,z,{value:F,enumerable:!0,configurable:!0,writable:!0}):A[z]=F,A}function p(A,z){if(!(A instanceof z))throw new TypeError("Cannot call a class as a function")}function g(A,z){for(var F=0;F<z.length;F++){var V=z[F];V.enumerable=V.enumerable||!1,V.configurable=!0,"value"in V&&(V.writable=!0),Object.defineProperty(A,w(V.key),V)}}function v(A,z,F){return z&&g(A.prototype,z),Object.defineProperty(A,"prototype",{writable:!1}),A}function w(A){var z=T(A,"string");return e(z)=="symbol"?z:String(z)}function T(A,z){if(e(A)!="object"||!A)return A;var F=A[Symbol.toPrimitive];if(F!==void 0){var V=F.call(A,z);if(e(V)!="object")return V;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(A)}function _(A,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create(z&&z.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),Object.defineProperty(A,"prototype",{writable:!1}),z&&S(A,z)}function S(A,z){return S=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(V,D){return V.__proto__=D,V},S(A,z)}function N(A){var z=L();return function(){var V=G(A),D;if(z){var R=G(this).constructor;D=Reflect.construct(V,arguments,R)}else D=V.apply(this,arguments);return E(this,D)}}function E(A,z){if(z&&(e(z)==="object"||typeof z=="function"))return z;if(z!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return M(A)}function M(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function L(){try{var A=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(L=function(){return!!A})()}function G(A){return G=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},G(A)}return xa.PrevArrow=function(A){_(F,A);var z=N(F);function F(){return p(this,F),z.apply(this,arguments)}return v(F,[{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 W={key:"0","data-role":"none",className:(0,a.default)(D),style:{display:"block"},onClick:R},P={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},I;return this.props.prevArrow?I=n.default.cloneElement(this.props.prevArrow,f(f({},W),P)):I=n.default.createElement("button",u({key:"0",type:"button"},W)," ","Previous"),I}}]),F}(n.default.PureComponent),xa.NextArrow=function(A){_(F,A);var z=N(F);function F(){return p(this,F),z.apply(this,arguments)}return v(F,[{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 W={key:"1","data-role":"none",className:(0,a.default)(D),style:{display:"block"},onClick:R},P={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},I;return this.props.nextArrow?I=n.default.cloneElement(this.props.nextArrow,f(f({},W),P)):I=n.default.createElement("button",u({key:"1",type:"button"},W)," ","Next"),I}}]),F}(n.default.PureComponent),xa}var V1=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}()}(),Lh=typeof window<"u"&&typeof document<"u"&&window.document===document,Ru=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")()}(),y_=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Ru):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),v_=2;function x_(e,n){var a=!1,s=!1,o=0;function u(){a&&(a=!1,e()),s&&f()}function c(){y_(u)}function f(){var h=Date.now();if(a){if(h-o<v_)return;s=!0}else a=!0,s=!1,setTimeout(c,n);o=h}return f}var b_=20,w_=["top","right","bottom","left","width","height","size","weight"],S_=typeof MutationObserver<"u",j_=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=x_(this.refresh.bind(this),b_)}return e.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},e.prototype.removeObserver=function(n){var a=this.observers_,s=a.indexOf(n);~s&&a.splice(s,1),!a.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},e.prototype.updateObservers_=function(){var n=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});return n.forEach(function(a){return a.broadcastActive()}),n.length>0},e.prototype.connect_=function(){!Lh||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),S_?(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(){!Lh||!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=w_.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}(),H1=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},Pi=function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||Ru},I1=ic(0,0,0,0);function Cu(e){return parseFloat(e)||0}function Hv(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+Cu(u)},0)}function T_(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]=Cu(c)}return a}function E_(e){var n=e.getBBox();return ic(0,0,n.width,n.height)}function A_(e){var n=e.clientWidth,a=e.clientHeight;if(!n&&!a)return I1;var s=Pi(e).getComputedStyle(e),o=T_(s),u=o.left+o.right,c=o.top+o.bottom,f=Cu(s.width),h=Cu(s.height);if(s.boxSizing==="border-box"&&(Math.round(f+u)!==n&&(f-=Hv(s,"left","right")+u),Math.round(h+c)!==a&&(h-=Hv(s,"top","bottom")+c)),!__(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 ic(o.left,o.top,f,h)}var N_=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Pi(e).SVGGraphicsElement}:function(e){return e instanceof Pi(e).SVGElement&&typeof e.getBBox=="function"}}();function __(e){return e===Pi(e).document.documentElement}function O_(e){return Lh?N_(e)?E_(e):A_(e):I1}function k_(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 H1(c,{x:n,y:a,width:s,height:o,top:a,right:n+s,bottom:o+a,left:n}),c}function ic(e,n,a,s){return{x:e,y:n,width:a,height:s}}var R_=function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ic(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=O_(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}(),C_=function(){function e(n,a){var s=k_(a);H1(this,{target:n,contentRect:s})}return e}(),D_=function(){function e(n,a,s){if(this.activeObservations_=[],this.observations_=new V1,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 Pi(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)||(a.set(n,new R_(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 Pi(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 C_(s.target,s.broadcastRect())});this.callback_.call(n,a,n),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),q1=typeof WeakMap<"u"?new WeakMap:new V1,G1=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=j_.getInstance(),s=new D_(n,a,this);q1.set(this,s)}return e}();["observe","unobserve","disconnect"].forEach(function(e){G1.prototype[e]=function(){var n;return(n=q1.get(this))[e].apply(n,arguments)}});var M_=function(){return typeof Ru.ResizeObserver<"u"?Ru.ResizeObserver:G1}();const L_=Object.freeze(Object.defineProperty({__proto__:null,default:M_},Symbol.toStringTag,{value:"Module"})),P_=z3(L_);var Iv;function z_(){if(Iv)return Ys;Iv=1,Object.defineProperty(Ys,"__esModule",{value:!0}),Ys.InnerSlider=void 0;var e=p(kn()),n=p(f_()),a=p(h_()),s=p(ac()),o=Oo(),u=m_(),c=p_(),f=g_(),h=p(P_);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(j){return typeof j}:function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},g(I)}function v(){return v=Object.assign?Object.assign.bind():function(I){for(var j=1;j<arguments.length;j++){var Z=arguments[j];for(var K in Z)Object.prototype.hasOwnProperty.call(Z,K)&&(I[K]=Z[K])}return I},v.apply(this,arguments)}function w(I,j){if(I==null)return{};var Z=T(I,j),K,b;if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(I);for(b=0;b<ce.length;b++)K=ce[b],!(j.indexOf(K)>=0)&&Object.prototype.propertyIsEnumerable.call(I,K)&&(Z[K]=I[K])}return Z}function T(I,j){if(I==null)return{};var Z={},K=Object.keys(I),b,ce;for(ce=0;ce<K.length;ce++)b=K[ce],!(j.indexOf(b)>=0)&&(Z[b]=I[b]);return Z}function _(I,j){var Z=Object.keys(I);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(I);j&&(K=K.filter(function(b){return Object.getOwnPropertyDescriptor(I,b).enumerable})),Z.push.apply(Z,K)}return Z}function S(I){for(var j=1;j<arguments.length;j++){var Z=arguments[j]!=null?arguments[j]:{};j%2?_(Object(Z),!0).forEach(function(K){R(I,K,Z[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(I,Object.getOwnPropertyDescriptors(Z)):_(Object(Z)).forEach(function(K){Object.defineProperty(I,K,Object.getOwnPropertyDescriptor(Z,K))})}return I}function N(I,j){if(!(I instanceof j))throw new TypeError("Cannot call a class as a function")}function E(I,j){for(var Z=0;Z<j.length;Z++){var K=j[Z];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(I,W(K.key),K)}}function M(I,j,Z){return j&&E(I.prototype,j),Object.defineProperty(I,"prototype",{writable:!1}),I}function L(I,j){if(typeof j!="function"&&j!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(j&&j.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),Object.defineProperty(I,"prototype",{writable:!1}),j&&G(I,j)}function G(I,j){return G=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(K,b){return K.__proto__=b,K},G(I,j)}function A(I){var j=V();return function(){var K=D(I),b;if(j){var ce=D(this).constructor;b=Reflect.construct(K,arguments,ce)}else b=K.apply(this,arguments);return z(this,b)}}function z(I,j){if(j&&(g(j)==="object"||typeof j=="function"))return j;if(j!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return F(I)}function F(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function V(){try{var I=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(V=function(){return!!I})()}function D(I){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(Z){return Z.__proto__||Object.getPrototypeOf(Z)},D(I)}function R(I,j,Z){return j=W(j),j in I?Object.defineProperty(I,j,{value:Z,enumerable:!0,configurable:!0,writable:!0}):I[j]=Z,I}function W(I){var j=P(I,"string");return g(j)=="symbol"?j:String(j)}function P(I,j){if(g(I)!="object"||!I)return I;var Z=I[Symbol.toPrimitive];if(Z!==void 0){var K=Z.call(I,j);if(g(K)!="object")return K;throw new TypeError("@@toPrimitive must return a primitive value.")}return(j==="string"?String:Number)(I)}return Ys.InnerSlider=function(I){L(Z,I);var j=A(Z);function Z(K){var b;N(this,Z),b=j.call(this,K),R(F(b),"listRefHandler",function(H){return b.list=H}),R(F(b),"trackRefHandler",function(H){return b.track=H}),R(F(b),"adaptHeight",function(){if(b.props.adaptiveHeight&&b.list){var H=b.list.querySelector('[data-index="'.concat(b.state.currentSlide,'"]'));b.list.style.height=(0,o.getHeight)(H)+"px"}}),R(F(b),"componentDidMount",function(){if(b.props.onInit&&b.props.onInit(),b.props.lazyLoad){var H=(0,o.getOnDemandLazySlides)(S(S({},b.props),b.state));H.length>0&&(b.setState(function(k){return{lazyLoadedList:k.lazyLoadedList.concat(H)}}),b.props.onLazyLoad&&b.props.onLazyLoad(H))}var x=S({listRef:b.list,trackRef:b.track},b.props);b.updateState(x,!0,function(){b.adaptHeight(),b.props.autoplay&&b.autoPlay("update")}),b.props.lazyLoad==="progressive"&&(b.lazyLoadTimer=setInterval(b.progressiveLazyLoad,1e3)),b.ro=new h.default(function(){b.state.animating?(b.onWindowResized(!1),b.callbackTimers.push(setTimeout(function(){return b.onWindowResized()},b.props.speed))):b.onWindowResized()}),b.ro.observe(b.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(k){k.onfocus=b.props.pauseOnFocus?b.onSlideFocus:null,k.onblur=b.props.pauseOnFocus?b.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",b.onWindowResized):window.attachEvent("onresize",b.onWindowResized)}),R(F(b),"componentWillUnmount",function(){b.animationEndCallback&&clearTimeout(b.animationEndCallback),b.lazyLoadTimer&&clearInterval(b.lazyLoadTimer),b.callbackTimers.length&&(b.callbackTimers.forEach(function(H){return clearTimeout(H)}),b.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",b.onWindowResized):window.detachEvent("onresize",b.onWindowResized),b.autoplayTimer&&clearInterval(b.autoplayTimer),b.ro.disconnect()}),R(F(b),"componentDidUpdate",function(H){if(b.checkImagesLoad(),b.props.onReInit&&b.props.onReInit(),b.props.lazyLoad){var x=(0,o.getOnDemandLazySlides)(S(S({},b.props),b.state));x.length>0&&(b.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(x)}}),b.props.onLazyLoad&&b.props.onLazyLoad(x))}b.adaptHeight();var k=S(S({listRef:b.list,trackRef:b.track},b.props),b.state),U=b.didPropsChange(H);U&&b.updateState(k,U,function(){b.state.currentSlide>=e.default.Children.count(b.props.children)&&b.changeSlide({message:"index",index:e.default.Children.count(b.props.children)-b.props.slidesToShow,currentSlide:b.state.currentSlide}),b.props.autoplay?b.autoPlay("update"):b.pause("paused")})}),R(F(b),"onWindowResized",function(H){b.debouncedResize&&b.debouncedResize.cancel(),b.debouncedResize=(0,a.default)(function(){return b.resizeWindow(H)},50),b.debouncedResize()}),R(F(b),"resizeWindow",function(){var H=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,x=!!(b.track&&b.track.node);if(x){var k=S(S({listRef:b.list,trackRef:b.track},b.props),b.state);b.updateState(k,H,function(){b.props.autoplay?b.autoPlay("update"):b.pause("paused")}),b.setState({animating:!1}),clearTimeout(b.animationEndCallback),delete b.animationEndCallback}}),R(F(b),"updateState",function(H,x,k){var U=(0,o.initializedState)(H);H=S(S(S({},H),U),{},{slideIndex:U.currentSlide});var J=(0,o.getTrackLeft)(H);H=S(S({},H),{},{left:J});var $=(0,o.getTrackCSS)(H);(x||e.default.Children.count(b.props.children)!==e.default.Children.count(H.children))&&(U.trackStyle=$),b.setState(U,k)}),R(F(b),"ssrInit",function(){if(b.props.variableWidth){var H=0,x=0,k=[],U=(0,o.getPreClones)(S(S(S({},b.props),b.state),{},{slideCount:b.props.children.length})),J=(0,o.getPostClones)(S(S(S({},b.props),b.state),{},{slideCount:b.props.children.length}));b.props.children.forEach(function(ue){k.push(ue.props.style.width),H+=ue.props.style.width});for(var $=0;$<U;$++)x+=k[k.length-1-$],H+=k[k.length-1-$];for(var te=0;te<J;te++)H+=k[te];for(var se=0;se<b.state.currentSlide;se++)x+=k[se];var be={width:H+"px",left:-x+"px"};if(b.props.centerMode){var Se="".concat(k[b.state.currentSlide],"px");be.left="calc(".concat(be.left," + (100% - ").concat(Se,") / 2 ) ")}return{trackStyle:be}}var Te=e.default.Children.count(b.props.children),Ne=S(S(S({},b.props),b.state),{},{slideCount:Te}),ke=(0,o.getPreClones)(Ne)+(0,o.getPostClones)(Ne)+Te,Le=100/b.props.slidesToShow*ke,Re=100/ke,O=-Re*((0,o.getPreClones)(Ne)+b.state.currentSlide)*Le/100;b.props.centerMode&&(O+=(100-Re*Le/100)/2);var de={width:Le+"%",left:O+"%"};return{slideWidth:Re+"%",trackStyle:de}}),R(F(b),"checkImagesLoad",function(){var H=b.list&&b.list.querySelectorAll&&b.list.querySelectorAll(".slick-slide img")||[],x=H.length,k=0;Array.prototype.forEach.call(H,function(U){var J=function(){return++k&&k>=x&&b.onWindowResized()};if(!U.onclick)U.onclick=function(){return U.parentNode.focus()};else{var $=U.onclick;U.onclick=function(te){$(te),U.parentNode.focus()}}U.onload||(b.props.lazyLoad?U.onload=function(){b.adaptHeight(),b.callbackTimers.push(setTimeout(b.onWindowResized,b.props.speed))}:(U.onload=J,U.onerror=function(){J(),b.props.onLazyLoadError&&b.props.onLazyLoadError()}))})}),R(F(b),"progressiveLazyLoad",function(){for(var H=[],x=S(S({},b.props),b.state),k=b.state.currentSlide;k<b.state.slideCount+(0,o.getPostClones)(x);k++)if(b.state.lazyLoadedList.indexOf(k)<0){H.push(k);break}for(var U=b.state.currentSlide-1;U>=-(0,o.getPreClones)(x);U--)if(b.state.lazyLoadedList.indexOf(U)<0){H.push(U);break}H.length>0?(b.setState(function(J){return{lazyLoadedList:J.lazyLoadedList.concat(H)}}),b.props.onLazyLoad&&b.props.onLazyLoad(H)):b.lazyLoadTimer&&(clearInterval(b.lazyLoadTimer),delete b.lazyLoadTimer)}),R(F(b),"slideHandler",function(H){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=b.props,U=k.asNavFor,J=k.beforeChange,$=k.onLazyLoad,te=k.speed,se=k.afterChange,be=b.state.currentSlide,Se=(0,o.slideHandler)(S(S(S({index:H},b.props),b.state),{},{trackRef:b.track,useCSS:b.props.useCSS&&!x})),Te=Se.state,Ne=Se.nextState;if(Te){J&&J(be,Te.currentSlide);var ke=Te.lazyLoadedList.filter(function(Le){return b.state.lazyLoadedList.indexOf(Le)<0});$&&ke.length>0&&$(ke),!b.props.waitForAnimate&&b.animationEndCallback&&(clearTimeout(b.animationEndCallback),se&&se(be),delete b.animationEndCallback),b.setState(Te,function(){U&&b.asNavForIndex!==H&&(b.asNavForIndex=H,U.innerSlider.slideHandler(H)),Ne&&(b.animationEndCallback=setTimeout(function(){var Le=Ne.animating,Re=w(Ne,["animating"]);b.setState(Re,function(){b.callbackTimers.push(setTimeout(function(){return b.setState({animating:Le})},10)),se&&se(Te.currentSlide),delete b.animationEndCallback})},te))})}}),R(F(b),"changeSlide",function(H){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,k=S(S({},b.props),b.state),U=(0,o.changeSlide)(k,H);if(!(U!==0&&!U)&&(x===!0?b.slideHandler(U,x):b.slideHandler(U),b.props.autoplay&&b.autoPlay("update"),b.props.focusOnSelect)){var J=b.list.querySelectorAll(".slick-current");J[0]&&J[0].focus()}}),R(F(b),"clickHandler",function(H){b.clickable===!1&&(H.stopPropagation(),H.preventDefault()),b.clickable=!0}),R(F(b),"keyHandler",function(H){var x=(0,o.keyHandler)(H,b.props.accessibility,b.props.rtl);x!==""&&b.changeSlide({message:x})}),R(F(b),"selectHandler",function(H){b.changeSlide(H)}),R(F(b),"disableBodyScroll",function(){var H=function(k){k=k||window.event,k.preventDefault&&k.preventDefault(),k.returnValue=!1};window.ontouchmove=H}),R(F(b),"enableBodyScroll",function(){window.ontouchmove=null}),R(F(b),"swipeStart",function(H){b.props.verticalSwiping&&b.disableBodyScroll();var x=(0,o.swipeStart)(H,b.props.swipe,b.props.draggable);x!==""&&b.setState(x)}),R(F(b),"swipeMove",function(H){var x=(0,o.swipeMove)(H,S(S(S({},b.props),b.state),{},{trackRef:b.track,listRef:b.list,slideIndex:b.state.currentSlide}));x&&(x.swiping&&(b.clickable=!1),b.setState(x))}),R(F(b),"swipeEnd",function(H){var x=(0,o.swipeEnd)(H,S(S(S({},b.props),b.state),{},{trackRef:b.track,listRef:b.list,slideIndex:b.state.currentSlide}));if(x){var k=x.triggerSlideHandler;delete x.triggerSlideHandler,b.setState(x),k!==void 0&&(b.slideHandler(k),b.props.verticalSwiping&&b.enableBodyScroll())}}),R(F(b),"touchEnd",function(H){b.swipeEnd(H),b.clickable=!0}),R(F(b),"slickPrev",function(){b.callbackTimers.push(setTimeout(function(){return b.changeSlide({message:"previous"})},0))}),R(F(b),"slickNext",function(){b.callbackTimers.push(setTimeout(function(){return b.changeSlide({message:"next"})},0))}),R(F(b),"slickGoTo",function(H){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(H=Number(H),isNaN(H))return"";b.callbackTimers.push(setTimeout(function(){return b.changeSlide({message:"index",index:H,currentSlide:b.state.currentSlide},x)},0))}),R(F(b),"play",function(){var H;if(b.props.rtl)H=b.state.currentSlide-b.props.slidesToScroll;else if((0,o.canGoNext)(S(S({},b.props),b.state)))H=b.state.currentSlide+b.props.slidesToScroll;else return!1;b.slideHandler(H)}),R(F(b),"autoPlay",function(H){b.autoplayTimer&&clearInterval(b.autoplayTimer);var x=b.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;b.autoplayTimer=setInterval(b.play,b.props.autoplaySpeed+50),b.setState({autoplaying:"playing"})}),R(F(b),"pause",function(H){b.autoplayTimer&&(clearInterval(b.autoplayTimer),b.autoplayTimer=null);var x=b.state.autoplaying;H==="paused"?b.setState({autoplaying:"paused"}):H==="focused"?(x==="hovered"||x==="playing")&&b.setState({autoplaying:"focused"}):x==="playing"&&b.setState({autoplaying:"hovered"})}),R(F(b),"onDotsOver",function(){return b.props.autoplay&&b.pause("hovered")}),R(F(b),"onDotsLeave",function(){return b.props.autoplay&&b.state.autoplaying==="hovered"&&b.autoPlay("leave")}),R(F(b),"onTrackOver",function(){return b.props.autoplay&&b.pause("hovered")}),R(F(b),"onTrackLeave",function(){return b.props.autoplay&&b.state.autoplaying==="hovered"&&b.autoPlay("leave")}),R(F(b),"onSlideFocus",function(){return b.props.autoplay&&b.pause("focused")}),R(F(b),"onSlideBlur",function(){return b.props.autoplay&&b.state.autoplaying==="focused"&&b.autoPlay("blur")}),R(F(b),"render",function(){var H=(0,s.default)("slick-slider",b.props.className,{"slick-vertical":b.props.vertical,"slick-initialized":!0}),x=S(S({},b.props),b.state),k=(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"]),U=b.props.pauseOnHover;k=S(S({},k),{},{onMouseEnter:U?b.onTrackOver:null,onMouseLeave:U?b.onTrackLeave:null,onMouseOver:U?b.onTrackOver:null,focusOnSelect:b.props.focusOnSelect&&b.clickable?b.selectHandler:null});var J;if(b.props.dots===!0&&b.state.slideCount>=b.props.slidesToShow){var $=(0,o.extractObject)(x,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),te=b.props.pauseOnDotsHover;$=S(S({},$),{},{clickHandler:b.changeSlide,onMouseEnter:te?b.onDotsLeave:null,onMouseOver:te?b.onDotsOver:null,onMouseLeave:te?b.onDotsLeave:null}),J=e.default.createElement(c.Dots,$)}var se,be,Se=(0,o.extractObject)(x,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);Se.clickHandler=b.changeSlide,b.props.arrows&&(se=e.default.createElement(f.PrevArrow,Se),be=e.default.createElement(f.NextArrow,Se));var Te=null;b.props.vertical&&(Te={height:b.state.listHeight});var Ne=null;b.props.vertical===!1?b.props.centerMode===!0&&(Ne={padding:"0px "+b.props.centerPadding}):b.props.centerMode===!0&&(Ne={padding:b.props.centerPadding+" 0px"});var ke=S(S({},Te),Ne),Le=b.props.touchMove,Re={className:"slick-list",style:ke,onClick:b.clickHandler,onMouseDown:Le?b.swipeStart:null,onMouseMove:b.state.dragging&&Le?b.swipeMove:null,onMouseUp:Le?b.swipeEnd:null,onMouseLeave:b.state.dragging&&Le?b.swipeEnd:null,onTouchStart:Le?b.swipeStart:null,onTouchMove:b.state.dragging&&Le?b.swipeMove:null,onTouchEnd:Le?b.touchEnd:null,onTouchCancel:b.state.dragging&&Le?b.swipeEnd:null,onKeyDown:b.props.accessibility?b.keyHandler:null},O={className:H,dir:"ltr",style:b.props.style};return b.props.unslick&&(Re={className:"slick-list"},O={className:H}),e.default.createElement("div",O,b.props.unslick?"":se,e.default.createElement("div",v({ref:b.listRefHandler},Re),e.default.createElement(u.Track,v({ref:b.trackRefHandler},k),b.props.children)),b.props.unslick?"":be,b.props.unslick?"":J)}),b.list=null,b.track=null,b.state=S(S({},n.default),{},{currentSlide:b.props.initialSlide,targetSlide:b.props.initialSlide?b.props.initialSlide:0,slideCount:e.default.Children.count(b.props.children)}),b.callbackTimers=[],b.clickable=!0,b.debouncedResize=null;var ce=b.ssrInit();return b.state=S(S({},b.state),ce),b}return M(Z,[{key:"didPropsChange",value:function(b){for(var ce=!1,H=0,x=Object.keys(this.props);H<x.length;H++){var k=x[H];if(!b.hasOwnProperty(k)){ce=!0;break}if(!(g(b[k])==="object"||typeof b[k]=="function"||isNaN(b[k]))&&b[k]!==this.props[k]){ce=!0;break}}return ce||e.default.Children.count(this.props.children)!==e.default.Children.count(b.children)}}]),Z}(e.default.Component),Ys}var Xf,qv;function U_(){if(qv)return Xf;qv=1;var e=function(n){return n.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}).toLowerCase()};return Xf=e,Xf}var Zf,Gv;function B_(){if(Gv)return Zf;Gv=1;var e=U_(),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 Wf,Yv;function F_(){if(Yv)return Wf;Yv=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}},Wf=e,Wf}var Qf,Kv;function Y1(){if(Kv)return Qf;Kv=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 $f,Xv;function V_(){if(Xv)return $f;Xv=1;var e=F_(),n=Y1().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]()})}},$f=a,$f}var Jf,Zv;function H_(){if(Zv)return Jf;Zv=1;var e=V_(),n=Y1(),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}},Jf=u,Jf}var eh,Wv;function I_(){if(Wv)return eh;Wv=1;var e=H_();return eh=new e,eh}var Qv;function q_(){return Qv||(Qv=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=c(kn()),a=z_(),s=c(B_()),o=c(F1()),u=Oo();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 W=arguments[R];for(var P in W)Object.prototype.hasOwnProperty.call(W,P)&&(D[P]=W[P])}return D},h.apply(this,arguments)}function p(D,R){var W=Object.keys(D);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(D);R&&(P=P.filter(function(I){return Object.getOwnPropertyDescriptor(D,I).enumerable})),W.push.apply(W,P)}return W}function g(D){for(var R=1;R<arguments.length;R++){var W=arguments[R]!=null?arguments[R]:{};R%2?p(Object(W),!0).forEach(function(P){A(D,P,W[P])}):Object.getOwnPropertyDescriptors?Object.defineProperties(D,Object.getOwnPropertyDescriptors(W)):p(Object(W)).forEach(function(P){Object.defineProperty(D,P,Object.getOwnPropertyDescriptor(W,P))})}return D}function v(D,R){if(!(D instanceof R))throw new TypeError("Cannot call a class as a function")}function w(D,R){for(var W=0;W<R.length;W++){var P=R[W];P.enumerable=P.enumerable||!1,P.configurable=!0,"value"in P&&(P.writable=!0),Object.defineProperty(D,z(P.key),P)}}function T(D,R,W){return R&&w(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(P,I){return P.__proto__=I,P},S(D,R)}function N(D){var R=L();return function(){var P=G(D),I;if(R){var j=G(this).constructor;I=Reflect.construct(P,arguments,j)}else I=P.apply(this,arguments);return E(this,I)}}function E(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(W){return W.__proto__||Object.getPrototypeOf(W)},G(D)}function A(D,R,W){return R=z(R),R in D?Object.defineProperty(D,R,{value:W,enumerable:!0,configurable:!0,writable:!0}):D[R]=W,D}function z(D){var R=F(D,"string");return f(R)=="symbol"?R:String(R)}function F(D,R){if(f(D)!="object"||!D)return D;var W=D[Symbol.toPrimitive];if(W!==void 0){var P=W.call(D,R);if(f(P)!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(D)}var V=(0,u.canUseDOM)()&&I_();e.default=function(D){_(W,D);var R=N(W);function W(P){var I;return v(this,W),I=R.call(this,P),A(M(I),"innerSliderRefHandler",function(j){return I.innerSlider=j}),A(M(I),"slickPrev",function(){return I.innerSlider.slickPrev()}),A(M(I),"slickNext",function(){return I.innerSlider.slickNext()}),A(M(I),"slickGoTo",function(j){var Z=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return I.innerSlider.slickGoTo(j,Z)}),A(M(I),"slickPause",function(){return I.innerSlider.pause("paused")}),A(M(I),"slickPlay",function(){return I.innerSlider.autoPlay("play")}),I.state={breakpoint:null},I._responsiveMediaHandlers=[],I}return T(W,[{key:"media",value:function(I,j){V.register(I,j),this._responsiveMediaHandlers.push({query:I,handler:j})}},{key:"componentDidMount",value:function(){var I=this;if(this.props.responsive){var j=this.props.responsive.map(function(K){return K.breakpoint});j.sort(function(K,b){return K-b}),j.forEach(function(K,b){var ce;b===0?ce=(0,s.default)({minWidth:0,maxWidth:K}):ce=(0,s.default)({minWidth:j[b-1]+1,maxWidth:K}),(0,u.canUseDOM)()&&I.media(ce,function(){I.setState({breakpoint:K})})});var Z=(0,s.default)({minWidth:j.slice(-1)[0]});(0,u.canUseDOM)()&&this.media(Z,function(){I.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEach(function(I){V.unregister(I.query,I.handler)})}},{key:"render",value:function(){var I=this,j,Z;this.state.breakpoint?(Z=this.props.responsive.filter(function(te){return te.breakpoint===I.state.breakpoint}),j=Z[0].settings==="unslick"?"unslick":g(g(g({},o.default),this.props),Z[0].settings)):j=g(g({},o.default),this.props),j.centerMode&&(j.slidesToScroll>1,j.slidesToScroll=1),j.fade&&(j.slidesToShow>1,j.slidesToScroll>1,j.slidesToShow=1,j.slidesToScroll=1);var K=n.default.Children.toArray(this.props.children);K=K.filter(function(te){return typeof te=="string"?!!te.trim():!!te}),j.variableWidth&&(j.rows>1||j.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),j.variableWidth=!1);for(var b=[],ce=null,H=0;H<K.length;H+=j.rows*j.slidesPerRow){for(var x=[],k=H;k<H+j.rows*j.slidesPerRow;k+=j.slidesPerRow){for(var U=[],J=k;J<k+j.slidesPerRow&&(j.variableWidth&&K[J].props.style&&(ce=K[J].props.style.width),!(J>=K.length));J+=1)U.push(n.default.cloneElement(K[J],{key:100*H+10*k+J,tabIndex:-1,style:{width:"".concat(100/j.slidesPerRow,"%"),display:"inline-block"}}));x.push(n.default.createElement("div",{key:10*H+k},U))}j.variableWidth?b.push(n.default.createElement("div",{key:H,style:{width:ce}},x)):b.push(n.default.createElement("div",{key:H},x))}if(j==="unslick"){var $="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:$},K)}else b.length<=j.slidesToShow&&!j.infinite&&(j.unslick=!0);return n.default.createElement(a.InnerSlider,h({style:this.props.style,ref:this.innerSliderRefHandler},(0,u.filterSettings)(j)),b)}}]),W}(n.default.Component)}(If)),If}var $v;function G_(){return $v||($v=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=a(q_());function a(s){return s&&s.__esModule?s:{default:s}}e.default=n.default}(Hf)),Hf}var Y_=G_();const K_=Bu(Y_),X_=[{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}],Z_=[{title:"Regional Rides",description:"Smooth and reliable rides within your city – whenever, wherever.",Image:e_},{title:"City Connectors",description:"Connecting cities with affordable, comfortable, and safe travel.",Image:t_},{title:"Car Recoveries",description:"Stuck on the road? We recover your car quickly and safely.",Image:n_},{title:"Courier Delivery",description:"Fast, secure, and on-time courier delivery across your city.",Image:r_},{title:"Shifting Movers (Home & Office Shifting)",description:"Hassle-free home and office shifting, handled with care.",Image:a_},{title:"Tourism Discovery",description:"Discover breathtaking destinations with guided local travel.",Image:i_}],Jv=[{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:"💳"}],W_=()=>{const e={dots:!1,infinite:!0,speed:600,slidesToShow:1,slidesToScroll:1,autoplay:!0,autoplaySpeed:3e3,arrows:!1},[n,a]=D1({triggerOnce:!0,threshold:.3});let s=[],o=0,u=[3,2,3],c=0;for(;o<Jv.length;){const p=u[c%u.length];s.push(Jv.slice(o,o+p)),o+=p,c++}const f=[{name:"brochure.pdf",file:u_},{name:"document1.pdf",file:c_},{name:"guide.pdf",file:d_}],h=async()=>{try{const p=new GN;for(const v of f){const T=await(await fetch(v.file)).blob();p.file(v.name,T)}const g=await p.generateAsync({type:"blob"});XN.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(${ZN})`},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(kN,{})," Download PDFs"]})]})]}),d.jsx("div",{className:"flex gap-4 w-[30%] max-lg:w-[70%] z-10",children:d.jsx("img",{src:WN,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:JN,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:QN,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:$N,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(Ri,{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(Ri,{className:"text-[#0B996F] mt-1"}),"Creating financial freedom and opportunities."]}),d.jsxs("li",{className:"flex items-start gap-2",children:[d.jsx(Ri,{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(R1,{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:M1,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(Ci,{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(Ci,{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(Ci,{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:Z_.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,w)=>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})]},w))},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(${L1})`},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:U1,alt:"Google Play",className:"h-12 rounded-lg"})}),d.jsx("a",{href:"#",children:d.jsx("img",{src:B1,alt:"App Store",className:"h-12 rounded-lg"})})]})]}),d.jsxs("div",{className:"relative",children:[d.jsx("img",{src:z1,alt:"Happy user",className:"w-full max-w-md h-[100vh] max-lg:h-auto object-cover rounded-2xl"}),d.jsx("img",{src:P1,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:l_,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(K_,{...e,children:X_.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:s_,alt:"Man with tablet",className:"w-full h-full object-cover rounded-2xl"}),d.jsx("img",{src:o_,alt:"Woman in car",className:"w-full h-full object-cover rounded-2xl"})]})]})})]})},K1="/assets/bg-BbOJe-ta.jpeg",Q_="/assets/enjoy-CVNWmoEC.jpg",$_="/assets/map-DfwT83pC.png",J_="/assets/whyjoin-B-Bkqsbz.jpg",e5="/assets/aim-DEi6q9Iw.jpg",t5="/assets/direction-DvSXpJ92.png",n5=()=>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(${K1})`},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:$_,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:Q_,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:J_,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:t5,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:e5,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(jN,{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(EN,{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."})]})]})})]}),r5="/assets/bg-6SAdu_b3.jpg",a5="/assets/future--MMH-1BG.jpg",i5="/assets/card1-CngeeMsl.png",s5="/assets/card2-o4McaAYV.png",o5="/assets/card3-BdCC1t9j.png",l5="/assets/card4-DwGgvalC.png",u5="/assets/card5-BRuLiB6I.png",c5="/assets/card6-DhonLssf.png",d5="/assets/card7-BtLXKe8h.png",f5="/assets/card8-D0qhdoR6.png",h5="/assets/card9-CP2MyyTJ.png",m5="/assets/recovery-BXEv-XSB.jpeg",p5="/assets/rides-Bkxyhe-g.jpeg",g5="/assets/shifting--UhfRry8.jpeg",y5="/assets/autofix-j6AEHwbR.jpeg",v5="/assets/tyrezone-BB2vwwox.jpeg",x5="/assets/keyassist-Usw68JbA.jpeg",b5="/assets/autohub-BicU1udc.jpeg",w5="/assets/tourism-CEey8P9M.jpeg",S5="/assets/wash-CvccX4aW.jpeg",j5=[{title:"Car Recovery Services",icon:"🚨",image:i5,need:"Why You Might Need Car Recovery:",cardimg:m5,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:s5,need:"Why Choose AAAO Go Cabs?",cardimg:p5,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:o5,need:"Why Choose AAAO Go Movers?",cardimg:g5,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:l5,cardimg:y5,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:u5,cardimg:v5,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:c5,cardimg:x5,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:d5,cardimg:b5,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:f5,cardimg:w5,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:h5,cardimg:S5,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."}],T5=()=>{const[e,n]=D1({triggerOnce:!0,threshold:.3}),[a,s]=X.useState(null),o=()=>{window.scrollTo({top:0,behavior:"smooth"})};return d.jsxs("div",{className:"bg-white dark:bg-gray-900 text-gray-900 dark:text-white transition-colors duration-300 p-5",children:[d.jsx("div",{className:"h-[500px] rounded-3xl my-7 w-[95%] mx-auto bg-black dark:bg-gray-900 text-white dark:text-white",children:d.jsxs("div",{className:"relative mt-20 bg-cover bg-center h-[500px] rounded-3xl overflow-hidden flex items-center justify-center dark:bg-gray-900",style:{backgroundImage:`url(${r5})`},children:[d.jsx("div",{className:"absolute inset-0 bg-black dark:bg-gray-900 bg-opacity-60 dark:bg-opacity-80"}),d.jsxs("div",{className:"relative z-10 text-center px-4",children:[d.jsxs("nav",{className:"text-sm text-white dark:text-gray-200 mb-4 flex items-center justify-center",children:[d.jsx(xt,{to:"/",onClick:o,className:"hover:underline text-white dark:text-gray-200 hover:text-yellow-400 dark:hover:text-yellow-400",children:"Home"}),d.jsx("span",{className:"mx-2 text-[#387B55] dark:text-yellow-400 text-2xl -mt-1",children:"›"}),d.jsx("span",{className:"text-white dark:text-gray-200",children:"Services"})]}),d.jsxs("h1",{className:"text-4xl md:text-5xl font-bold text-white dark:text-white leading-tight",children:["Experience Convenience Our Service"," ",d.jsx("br",{className:"max-lg:hidden"})," Offerings"]})]})]})}),d.jsxs("div",{className:"max-w-7xl mx-auto px-4 relative mb-32 max-lg:mb-0 py-12 flex flex-col-reverse md:flex-row items-center gap-10",children:[d.jsx("div",{className:"w-[50%] max-lg:w-[100%]",children:d.jsx("img",{src:a5,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(Ri,{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(Ri,{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(Ri,{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(R1,{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:M1,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:j5.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(Ci,{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(Ci,{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(Ci,{end:1500,duration:2.5,separator:","})}),d.jsx("p",{className:"text-xl text-[#555D55] dark:text-gray-200 mt-2",children:"Registered Members"})]})]})]})]})},E5="/assets/team-B2G7j71p.webp",A5="/assets/ceo-pov2ltjX.webp",N5="/assets/tahir-nVzPZBOR.webp",_5="/assets/wardag-BCdJGmKz.webp",O5="/assets/samad-kLWTUiYE.jpeg",k5=()=>{const[e,n]=X.useState(null),a=()=>{window.scrollTo({top:0,behavior:"smooth"})},s=[{name:"Mr Tahir Zaman",role:"COO",title:"Chief Operation Officer (COO)",image:N5,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:_5,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:O5,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(${K1})`},children:[d.jsx("div",{className:"absolute inset-0 bg-black dark:bg-gray-900 bg-opacity-50 dark:bg-opacity-80"}),d.jsxs("div",{className:"relative z-10 text-center px-4",children:[d.jsxs("nav",{className:"text-sm text-white dark:text-gray-200 mb-4 flex items-center justify-center",children:[d.jsx(xt,{to:"/",onClick:a,className:"hover:underline text-white dark:text-gray-200 hover:text-yellow-400 dark:hover:text-yellow-400",children:"Home"}),d.jsx("span",{className:"mx-2 text-[#387B55] dark:text-yellow-400 text-2xl -mt-1",children:"›"}),d.jsx("span",{className:"text-white dark:text-gray-200",children:"Our Team"})]}),d.jsx("h1",{className:"text-4xl md:text-5xl font-bold text-white dark:text-white leading-tight",children:"Meet Our Team"})]})]})}),d.jsxs("div",{className:"px-6 py-10 md:px-10 flex flex-col md:flex-row items-start gap-10",children:[d.jsx("div",{className:"flex-shrink-0 w-full md:w-[50%]",children:d.jsx("img",{src:E5,alt:"Team",className:"w-full h-[450px] rounded-md object-cover"})}),d.jsxs("div",{className:"flex flex-col w-full md:w-[55%]",children:[d.jsx("h2",{className:"text-2xl md:text-3xl font-semibold text-black dark:text-white mb-4",children:"Meet the AAAO Core Team – Driven by Experience, Powered by Vision"}),d.jsx("p",{className:"text-gray-700 dark:text-gray-200 text-[.9rem] leading-relaxed mb-6",children:"Behind AAAO Go is a strategic team of experts with deep-rooted experience in technology, transportation, tourism, hospitality, finance, retail, and smart services."}),d.jsxs("div",{className:"flex items-start gap-4 mb-6",children:[d.jsx("div",{className:"bg-green-700 dark:bg-yellow-500 dark:text-gray-900 text-white p-3 rounded-full",children:d.jsx(bN,{className:"text-lg"})}),d.jsxs("div",{children:[d.jsx("h3",{className:"text-lg font-semibold text-green-800 dark:text-yellow-400",children:"Combined Experience of 50+ Years"}),d.jsx("p",{className:"text-gray-700 dark:text-gray-200 mt-1 text-sm leading-relaxed",children:"Our leadership team holds over 50 years of combined industry experience, ensuring AAAO Go is built with insight, integrity, and future-focused strategy."})]})]}),d.jsxs("div",{className:"flex items-start gap-4",children:[d.jsx("div",{className:"bg-green-700 dark:bg-yellow-500 dark:text-gray-900 text-white p-3 rounded-full",children:d.jsx(NN,{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:A5,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(_N,{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})]})]})]})})]})},R5="/assets/bg-4H183NQt.jpg",C5=()=>{const e=[{icon:rc,url:"https://www.facebook.com/AAAOGOINTL?rdid=5c6cGwC8Rj2HeWyR&share_url=https%3A%2F%2Fwww.facebook.com%2Fshare%2F19wGmUZcnH%2F#"},{icon:A1,url:"https://www.instagram.com/aaaogointl/?igsh=dzd1dGJtcXB1OXpn#"},{icon:C1,url:"https://x.com/i/flow/login?redirect_after_login=%2Faaaogointl"},{icon:O1,url:"https://www.tiktok.com/@aaaogointl?_t=ZS-8wxikZG1BBZ&_r=1"},{icon:_1,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(${R5})`},children:[d.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-50"}),d.jsxs("div",{className:"relative z-10 text-center px-4",children:[d.jsxs("nav",{className:"text-sm text-white/80 mb-4 flex items-center justify-center",children:[d.jsx(xt,{to:"/",className:"hover:underline text-white",children:"Home"}),d.jsx("span",{className:"mx-2 text-[#387B55] text-2xl -mt-1",children:"›"}),d.jsx("span",{children:"Contact"})]}),d.jsxs("h1",{className:"text-4xl md:text-5xl font-bold leading-tight",children:["Connect with Us for Any Questions ",d.jsx("br",{className:"max-lg:hidden"})," or Concerns"]})]})]})}),d.jsxs("div",{className:"w-[95%] mx-auto text-green-800 dark:text-green-300 px-6 py-10 md:flex md:justify-between md:items-start gap-10",children:[d.jsxs("div",{className:"md:w-1/2 space-y-6",children:[d.jsx("h2",{className:"text-3xl font-bold",children:"Get In Touch With Us"}),d.jsx("p",{className:"text-gray-600 dark:text-gray-300",children:"Get in Touch – Your Ride is Just a Call Away!"}),d.jsxs("div",{className:"flex gap-8 max-lg:flex-col",children:[d.jsxs("div",{className:"flex items-start gap-4",children:[d.jsx("div",{className:"bg-green-100 dark:bg-gray-700 p-3 rounded-full",children:d.jsx(AN,{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(k1,{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"})]})]})]})]})},D5="/assets/bg-CMsJHjiS.jpg",M5=[{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."}],L5=[{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."}],P5=[{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."}],z5=[{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."}],U5=[{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."}],B5=[{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."}],F5=[{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."}],V5=()=>{const[e,n]=X.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(SN,{className:"text-[#0B996F]"}):d.jsx(wN,{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(${D5})`},children:[d.jsx("div",{className:"absolute inset-0 bg-black bg-opacity-70"}),d.jsxs("div",{className:"relative z-10 text-center px-4",children:[d.jsxs("nav",{className:"text-sm text-white/80 mb-4 flex items-center justify-center",children:[d.jsx(xt,{to:"/",className:"hover:underline text-white",children:"Home"}),d.jsx("span",{className:"mx-2 text-[#387B55] text-2xl -mt-1",children:"›"}),d.jsx("span",{children:"FAQ"})]}),d.jsxs("h1",{className:"text-4xl md:text-5xl font-bold leading-tight",children:["Answers to Common Questions about Our"," ",d.jsx("br",{className:"max-lg:hidden"})," Services and Policies"]})]})]})}),d.jsxs("div",{className:"flex w-[100%] max-lg:flex-col",children:[d.jsxs("div",{className:"w-[100%]",children:[s("FAQS!","general",M5),s("General Questions","questions",L5),s("For Riders","riders",P5),s("For Drivers","drivers",z5),s("Payments & Account Transfer","payments",U5),s("Safety & Security","safety",B5),s("Support & Contact","contact",F5)]}),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(ON,{className:"text-green-600 dark:text-green-300 text-xl"})}),d.jsx("h3",{className:"text-xl font-semibold text-green-700 dark:text-green-300",children:"You have a different question?"}),d.jsx("p",{className:"text-gray-700 dark:text-gray-300 mt-2 mb-4",children:"Reach out to our customer support team for prompt and personalized assistance."}),d.jsx(xt,{to:"/contact",className:"inline-block bg-[#0B996F] text-white font-semibold py-2 px-4 rounded hover:bg-green-700 dark:hover:bg-green-700 transition",children:"Contact Us"})]})})]}),d.jsxs("div",{className:"bg-[#e8f7f0] dark:bg-gray-800 relative py-20 mb-5 px-6 h-[130vh] max-lg:h-auto items-center flex w-[95%] rounded-3xl mx-auto",style:{backgroundImage:`url(${L1})`},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:U1,alt:"Google Play",className:"h-12 rounded-lg"})}),d.jsx("a",{href:"#",children:d.jsx("img",{src:B1,alt:"App Store",className:"h-12 rounded-lg"})})]})]}),d.jsxs("div",{className:"relative",children:[d.jsx("img",{src:z1,alt:"Happy user",className:"w-full max-w-md h-[100vh] max-lg:h-auto object-cover rounded-2xl"}),d.jsx("img",{src:P1,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"})]})]})]})]})},X1="/assets/logo-C1IfLRO8.png",H5=()=>{const e=$r(),n=wr(),a=bt(Eo),s=bt(ec),{theme:o}=_o(),[u,c]=X.useState({identifier:"",password:""}),[f,h]=X.useState(!1),[p,g]=X.useState({}),v=S=>{const{name:N,value:E}=S.target;c(M=>({...M,[N]:E})),g(M=>({...M,[N]:"",form:""}))},w=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},T=()=>{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};X.useEffect(()=>{s&&(g({form:typeof s=="string"?s:s.message||"An error occurred"}),e(Li()))},[s,e]);const _=async S=>{if(S.preventDefault(),g({}),e(Li()),!T())return;const N={...w(u.identifier),password:u.password};try{const E=await e(ou(N)).unwrap();console.log("Login successful:",E),n("/profile")}catch(E){console.error("Login failed:",E)}};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:[rc,E1,N1].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(fo,{}):d.jsx(ho,{})})]})]}),d.jsxs("div",{className:`flex justify-between items-center text-sm ${o==="dark"?"text-gray-300":"text-gray-600"}`,children:[d.jsxs("label",{className:"flex items-center gap-2",children:[d.jsx("input",{type:"checkbox",className:`w-4 h-4 ${o==="dark"?"text-yellow-400":"text-[#013220]"}`}),"Remember me"]}),d.jsx(xt,{to:"/forgot-password",className:`hover:underline ${o==="dark"?"text-teal-400":"text-teal-600"}`,children:"Forgot password?"})]}),d.jsx("button",{type:"submit",disabled:a,className:`w-full p-3 font-semibold rounded-full transition-colors duration-300 disabled:opacity-50 disabled:cursor-not-allowed ${o==="dark"?"bg-yellow-500 text-gray-900 hover:bg-yellow-400":"bg-yellow-500 text-[#013220] hover:bg-yellow-400"}`,children:a?"Signing in...":"Sign In"})]})]}),d.jsxs("div",{className:`w-full md:w-1/2 flex flex-col justify-center items-center p-8 transition-colors duration-300 ${o==="dark"?"bg-gradient-to-b from-gray-900 to-gray-700 text-yellow-400":"bg-gradient-to-b from-green-900 to-green-700 text-yellow-400"}`,children:[d.jsxs("div",{className:"flex flex-col items-center mb-6",children:[d.jsx("img",{src:X1,alt:"Aao Go Logo",className:"w-20 h-20 object-contain mb-2"}),d.jsx("h2",{className:"text-xl font-semibold text-yellow-400",children:"Welcome to Aao Go"})]}),d.jsx("p",{className:"mt-2 text-sm sm:text-base text-center text-yellow-400",children:"Sign in and continue your journey with us."}),d.jsx("p",{className:"text-center max-w-xs mb-6 z-10 text-sm text-yellow-400",children:"Don’t have an account? Sign up now!"}),d.jsx(xt,{to:"/signup",className:`border px-6 py-2 rounded-full transition text-sm ${o==="dark"?"border-yellow-400 hover:bg-yellow-400 hover:text-gray-900":"border-yellow-400 hover:bg-yellow-400 hover:text-green-900"}`,children:"Sign Up"})]})]})})},I5=[{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)"}],q5=()=>{const e=$r(),n=wr(),[a]=nN(),s=bt(Eo),o=bt(ec),{theme:u}=_o(),[c,f]=X.useState({username:"",firstName:"",lastName:"",email:"",countryCode:"+92",phoneNumber:"",password:"",confirmPassword:"",sponsorBy:"",gender:"",otp:""}),[h,p]=X.useState({}),[g,v]=X.useState(!1),[w,T]=X.useState(!1),[_,S]=X.useState(""),[N,E]=X.useState(""),[M,L]=X.useState(!1),[G,A]=X.useState(0),[z,F]=X.useState(!0),[V,D]=X.useState(!1);X.useEffect(()=>{const j=a.get("ref");j&&f(Z=>({...Z,sponsorBy:j}))},[a]),X.useEffect(()=>{let j;return G>0&&(j=setInterval(()=>{A(Z=>Z<=1?(F(!0),0):Z-1)},1e3)),()=>{j&&clearInterval(j)}},[G]),X.useEffect(()=>{const Z=setTimeout(async()=>{if(c.sponsorBy.trim())try{const b=(await dt.get(`${Nu}${It.GET_USER_BY_USERNAME}?username=${c.sponsorBy}`,{headers:{"Content-Type":"application/json"}})).data.user;b&&b.firstName&&b.lastName?(S(`${b.firstName} ${b.lastName}`),E("")):(S(""),E("Sponsor not found"))}catch(K){console.error("Error fetching sponsor name:",K),S(""),E(K.response?.status===404?"Invalid sponsor username":"Error fetching sponsor details")}else S(""),E("")},500);return()=>clearTimeout(Z)},[c.sponsorBy]),X.useEffect(()=>{if(o){const j={};typeof o=="string"?j.form=o:o.errors?Object.entries(o.errors).forEach(([Z,K])=>{j[Z]=K}):o.message&&(j.form=o.message),p(j),e(Li())}},[o,e]);const R=j=>{const{name:Z,value:K}=j.target;f(b=>({...b,[Z]:K})),p(b=>({...b,[Z]:"",form:""}))},W=()=>{let j=!0;const Z={};return c.username.trim()?/^[a-zA-Z0-9_]{3,30}$/.test(c.username)||(Z.username="Username must be 3-30 characters and contain only letters, numbers, or underscores",j=!1):(Z.username="Username is required",j=!1),c.firstName.trim()||(Z.firstName="First name is required",j=!1),c.email.trim()?/^\S+@\S+\.\S+$/.test(c.email)||(Z.email="Email is invalid",j=!1):(Z.email="Email is required",j=!1),c.phoneNumber.trim()?/^\d{10}$/.test(c.phoneNumber)||(Z.phoneNumber="Phone number must be 10 digits",j=!1):(Z.phoneNumber="Phone number is required",j=!1),c.password?c.password.length<8?(Z.password="Password must be at least 8 characters",j=!1):(!/[A-Z]/.test(c.password)||!/[0-9]/.test(c.password))&&(Z.password="Password must contain at least one uppercase letter and one number",j=!1):(Z.password="Password is required",j=!1),c.confirmPassword?c.password!==c.confirmPassword&&(Z.confirmPassword="Passwords do not match",j=!1):(Z.confirmPassword="Confirm password is required",j=!1),c.gender||(Z.gender="Gender is required",j=!1),M&&!c.otp.trim()?(Z.otp="OTP is required",j=!1):M&&c.otp.length!==6&&(Z.otp="OTP must be 6 digits",j=!1),p(Z),j},P=async()=>{const j={};if(c.email.trim()){if(!/\S+@\S+\.\S+/.test(c.email)){j.email="Email is invalid",p(j);return}}else{j.email="Email is required",p(j);return}try{D(!0);const Z=await dt.post(`${Nu}/email-verification/send-otp`,{email:c.email.trim()});console.log("OTP sent successfully:",Z.data),L(!0),F(!1),A(60)}catch(Z){console.error("Failed to send OTP:",Z),p(K=>({...K,email:Z.response?.data?.message||"Failed to send OTP"}))}finally{D(!1)}},I=async j=>{if(j.preventDefault(),p({}),e(Li()),!!W())try{const Z=`${c.countryCode}${c.phoneNumber}`,K={...c,phoneNumber:Z},b=await e(lu(K)).unwrap();console.log("Signup successful:",b),Ie.createSession(b.token,b.user),n("/")}catch(Z){console.error("Signup failed:",Z)}};return d.jsx("div",{className:`min-h-screen flex items-center justify-center px-4 py-8 transition-colors duration-300 ${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:[rc,E1,N1].map((j,Z)=>d.jsx("button",{className:`border rounded-full p-2 w-10 h-10 flex items-center justify-center transition-colors duration-300 ${u==="dark"?"border-gray-500 hover:bg-gray-600":"border-gray-300 hover:bg-gray-100"}`,disabled:s,children:d.jsx(j,{className:u==="dark"?"text-gray-300":"text-gray-600"})},Z))}),d.jsxs("form",{onSubmit:I,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:R,placeholder:"Username *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${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:R,placeholder:"First Name *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${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:R,placeholder:"Last Name",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${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:R,placeholder:"Email *",disabled:s||M,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",{children:[h.otp&&d.jsx("p",{className:`text-sm mb-1 ${u==="dark"?"text-red-400":"text-red-600"}`,children:h.otp}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("input",{type:"text",name:"otp",value:c.otp,onChange:R,placeholder:"Enter 6-digit OTP *",maxLength:6,disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${u==="dark"?`bg-gray-600 border-gray-500 text-white placeholder-gray-300 ${h.otp?"border-red-500":""}`:`bg-white border-gray-300 text-gray-900 placeholder-gray-500 ${h.otp?"border-red-600":""}`}`}),d.jsx("button",{type:"button",onClick:P,disabled:s||V||!M&&!c.email||M&&!z,className:`px-3 py-2 font-semibold rounded-lg transition-colors duration-300 whitespace-nowrap ${u==="dark"?"bg-yellow-500 text-gray-900 hover:bg-yellow-400 disabled:bg-gray-600 disabled:text-gray-400":"bg-yellow-500 text-[#013220] hover:bg-yellow-400 disabled:bg-gray-300 disabled:text-gray-600"} disabled:opacity-50 disabled:cursor-not-allowed`,children:V?"Sending...":M?z?"Resend":`Resend (${G}s)`:"Send OTP"})]})]}),d.jsxs("div",{className:"flex gap-2",children:[d.jsx("div",{className:"w-1/3",children:d.jsxs("select",{name:"countryCode",value:c.countryCode,onChange:R,disabled:s,className:`w-full rounded-lg px-2 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none text-sm sm:text-base transition-colors duration-300 ${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 *"}),I5.map(j=>d.jsx("option",{value:j.code,children:j.label},j.code))]})}),d.jsxs("div",{className:"w-2/3",children:[h.phoneNumber&&d.jsx("p",{className:`text-sm mb-1 ${u==="dark"?"text-red-400":"text-red-600"}`,children:h.phoneNumber}),d.jsx("input",{type:"tel",name:"phoneNumber",value:c.phoneNumber,onChange:R,placeholder:"Phone Number *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${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:R,disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${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:R,placeholder:"Sponsor Code (Optional)",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none transition-colors duration-300 ${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:R,placeholder:"Password *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none pr-10 transition-colors duration-300 ${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(fo,{}):d.jsx(ho,{})})]})]}),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:w?"text":"password",name:"confirmPassword",value:c.confirmPassword,onChange:R,placeholder:"Confirm Password *",disabled:s,className:`w-full rounded-lg px-4 py-2 border focus:ring-2 focus:ring-yellow-500 outline-none pr-10 transition-colors duration-300 ${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:()=>T(!w),children:w?d.jsx(fo,{}):d.jsx(ho,{})})]})]}),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:X1,alt:"AAO GO Logo",className:"w-28 sm:w-36 md:w-44 mb-4"}),d.jsx("h2",{className:"text-2xl sm:text-3xl font-bold text-center",children:"Welcome to AAO GO"}),d.jsx("p",{className:"mt-2 text-sm sm:text-base text-center text-yellow-200",children:"Sign up and start your journey with us."}),d.jsx("p",{className:"text-center max-w-xs mb-6 z-10 text-sm text-yellow-400",children:"Already have an account? Sign in to continue!"}),d.jsx(xt,{to:"/login",className:`border px-6 py-2 rounded-full transition text-sm ${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"})]})]})})},G5=()=>{const e=$r(),n=wr(),a=bt(Eo),s=bt(ec),[o,u]=X.useState({email:""}),[c,f]=X.useState({}),h=v=>{const{name:w,value:T}=v.target;u(_=>({..._,[w]:T})),c[w]&&f(_=>({..._,[w]:""}))},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(Li()),!p()){Cb(c);return}try{console.log("ForgotPassword - Starting password reset for email:",o.email);const w=await e(uu({email:o.email})).unwrap();if(console.log("ForgotPassword - OTP sent, result:",w),!w.userId){console.error("ForgotPassword - No userId in response, received:",w),mn("Failed to initiate password reset. Please try again.");return}console.log("ForgotPassword - Navigating to reset-password with state:",{userId:w.userId,email:o.email,token:w.token}),n("/reset-password",{state:{userId:w.userId,email:o.email}})}catch(w){console.error("ForgotPassword failed:",w),mn(w||"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"})]})]})})},Y5=()=>{const e=$r(),n=wr(),a=Rn(),s=bt(Eo),o=bt(ec),{theme:u}=_o(),{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]=X.useState({resetOtp:"",password:"",confirmPassword:""}),[w,T]=X.useState(!1),[_,S]=X.useState(!1),[N,E]=X.useState({}),M=A=>{const{name:z,value:F}=A.target;v(V=>({...V,[z]:F})),N[z]&&E(V=>({...V,[z]:""}))},L=()=>{const A={};return g.resetOtp.trim()||(A.resetOtp="OTP is required"),g.password?g.password.length<8&&(A.password="Password must be at least 8 characters"):A.password="Password is required",g.password!==g.confirmPassword&&(A.confirmPassword="Passwords do not match"),E(A),Object.keys(A).length===0},G=async A=>{if(A.preventDefault(),e(Li()),!L()){Cb(N),e(zf(!1));return}if(!h){mn("Cannot reset password: User ID is missing."),e(zf(!1));return}try{console.log("ResetPassword - Starting password reset for userId:",h);const z={userId:h,resetOtp:g.resetOtp,password:g.password},F=await e(cu(z)).unwrap();console.log("ResetPassword - Password reset successful, result:",F),localStorage.removeItem("signupUserId"),localStorage.removeItem("signupEmail"),n("/login",{replace:!0})}catch(z){console.error("ResetPassword failed:",z),e(zf(!1)),mn(z.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:w?"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:()=>T(!w),children:w?d.jsx(fo,{}):d.jsx(ho,{})}),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(fo,{}):d.jsx(ho,{})}),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"})]})]})})},K5=({label:e,amount:n,link:a})=>d.jsxs(xt,{to:a,className:"shadow rounded-xl p-4 flex flex-col items-center w-36 cursor-pointer hover:scale-105 transition-transform",style:{background:"linear-gradient(135deg, #013220, #083A06)",border:"1px solid #FFD700",color:"#FFD700",textDecoration:"none"},children:[d.jsx("span",{className:"font-medium text-center",children:e}),d.jsxs("span",{className:"text-lg font-bold",children:["AED ",n.toFixed(2)]})]});function ex(){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(K5,{label:n.label,amount:n.amount,link:n.link},a))})]})}const X5=()=>{const e=$r(),n=wr(),{userId:a}=hA(),s=bt(DE),o=bt(ME),u=bt(LE),c=bt(cm),f=bt(s1),h=bt(dm),[p,g]=X.useState(null),[v,w]=X.useState(!0),[T,_]=X.useState(1),[S,N]=X.useState(null),[E,M]=X.useState(!1),[L,G]=X.useState(null),[A,z]=X.useState([]),[F,V]=X.useState(!1),[D,R]=X.useState(""),[W,P]=X.useState(!1),[I,j]=X.useState(!1),[Z,K]=X.useState(null),[b,ce]=X.useState(null),[H,x]=X.useState([]),[k,U]=X.useState({}),[J,$]=X.useState(!1),[te,se]=X.useState(null),be=()=>{const re=Ie.getToken(),ve=Ie.getUser(),_e=Ie.isAuthenticated(),Ce=!!(re&&ve&&_e);return w(Ce),console.log("MLMTree - Session validity check:",{sessionToken:!!re,sessionUser:!!ve,sessionIsAuth:_e,isValid:Ce}),Ce},Se=async re=>{try{V(!0),G(null),console.log("Loading specific user tree for:",re);const ve=await dn.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=[...A,{member:ve.data.referralTree?.user||ve.data.user}];z(_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{V(!1)}},Te=async()=>{try{const re=await dn.getReferralLink();return R(re.data.referralLink),re.data.referralLink}catch(re){return console.error("Error fetching referral link:",re),P(!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),P(!0),setTimeout(()=>P(!1),2e3))}catch(re){console.error("Error copying referral link:",re),P(!1),alert("Failed to copy referral link. Please try again.")}},ke=async re=>{try{return(await dn.getUserById(re)).data.user}catch(ve){return console.error(`Error fetching details for user ${re}:`,ve),null}},Le=async re=>{$(!0),se(null);try{const ve=re.map(async qe=>{if(k[qe.id])return{id:qe.id,details:k[qe.id]};const nn=await ke(qe.id);return{id:qe.id,details:nn}}),Ce=(await Promise.all(ve)).reduce((qe,{id:nn,details:lt})=>(lt&&(qe[nn]=lt),qe),{...k});U(Ce)}catch(ve){console.error("Error fetching level members details:",ve),se("Failed to load member details")}finally{$(!1)}},Re=async re=>{try{K(re),j(!0);const ve=await dn.getUserById(re.id);ce(ve.data.user);const _e=await dn.getReferralTree(re.id),Ce=_e.data.referralTree?.members||_e.data.referralTree?.levels?.members||_e.data.members||{},qe=Object.keys(Ce).filter(lt=>lt.startsWith("level")).reduce((lt,pn)=>[...lt,...Ce[pn]],[]),nn=await Promise.all(qe.map(async lt=>{try{return(await dn.getUserById(lt.id)).data.user}catch(pn){return console.error(`Error fetching details for user ${lt.id}:`,pn),{...lt,selfieImage:null}}}));x(nn)}catch(ve){console.error("Error fetching member details:",ve),ce(null),x([]),alert("Failed to load member details. Please try again.")}},O=re=>{const ve=[...A,{member:re}];z(ve),sessionStorage.setItem("treeHistory",JSON.stringify(ve)),n(`/user-tree/${re.id}`)},de=re=>{const ve=A[re];if(ve){const _e=A.slice(0,re+1);z(_e),sessionStorage.setItem("treeHistory",JSON.stringify(_e)),n(`/user-tree/${ve.member.id}`)}},ue=()=>{z([]),sessionStorage.removeItem("treeHistory"),n("/mlm")};X.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(ki()),Te()):console.log("No valid session found, skipping API call")},[e,f,c,h,a]),X.useEffect(()=>{a&&v&&h&&(console.log("URL userId changed, loading specific user tree"),Se(a))},[a,v,h]),X.useEffect(()=>{const re=ve=>{console.log("MLMTree - Session cleared event received:",ve.detail),w(!1),e(RE())};return window.addEventListener("sessionCleared",re),()=>window.removeEventListener("sessionCleared",re)},[e]),X.useEffect(()=>{const re=sessionStorage.getItem("treeHistory");if(re)try{z(JSON.parse(re))}catch(ve){console.error("Error parsing tree history:",ve),sessionStorage.removeItem("treeHistory")}},[]),X.useEffect(()=>{const ve=!!a?S:s,Ce=(ve?.referralTree?.members||ve?.referralTree?.levels?.members||ve?.members||{})[`level${T}`]||[];Ce.length>0?Le(Ce):U({})},[T,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||F||J)return d.jsx("div",{className:"min-h-screen mt-28",style:{backgroundColor:"#083A06"},children:d.jsx("div",{className:"flex items-center justify-center h-screen",children:d.jsxs("div",{className:"text-center",children:[d.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-b-2 mx-auto mb-4",style:{borderColor:"#FFD700"}}),d.jsx("p",{className:"text-xl",style:{color:"#FFD700"},children:a?"Loading user tree...":J?"Loading member details...":"Loading your referral tree..."})]})})});if(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(ki())},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${T}`]||[],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(ki())},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(A.length>0){const re=A[A.length-1],ve=A.slice(0,-1);z(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"}),A.length>0&&d.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[d.jsx("span",{style:{color:"#FFD700"},children:"History:"}),A.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:`${ji}${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 ${W?"bg-green-500":"bg-yellow-400"}`,style:{color:"#013220"},children:W?"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 ${T===re?"text-green-900":"text-yellow-400"}`,style:{backgroundColor:T===re?"#FFD700":"transparent",border:T===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:[k[re.id]?.selfieImage?d.jsx("img",{src:`${ji}${k[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:()=>O(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 ",T]})}),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:k[re.id]?.selfieImage?d.jsx("img",{src:`${ji}${k[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:()=>O(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 ",T]})})})]})})]}),I&&Z&&d.jsx("div",{className:"fixed inset-0 bg-black bg-opacity-50 flex items-center justify-center z-50",children:d.jsxs("div",{className:"bg-white bg-opacity-10 rounded-lg p-6 backdrop-blur-sm max-w-md w-full",style:{border:"1px solid #FFD700"},children:[d.jsx("h2",{className:"text-xl font-bold mb-4 text-center",style:{color:"#FFD700"},children:"Member Details"}),d.jsxs("div",{className:"grid grid-cols-1 gap-3 text-sm",children:[b?.selfieImage?d.jsx("div",{className:"flex justify-center mb-4",children:d.jsx("img",{src:`${ji}${b.selfieImage}`,alt:"Selfie",className:"w-32 h-32 rounded-full object-cover",style:{border:"2px solid #FFD700"}})}):d.jsx("div",{className:"flex justify-center mb-4 w-32 h-32 rounded-full items-center",style:{backgroundColor:"#013220",border:"2px solid #FFD700"},children:d.jsx("span",{className:"text-2xl",style:{color:"#FFD700"},children:Z?.name?.charAt(0)||Z?.username?.charAt(0)||"U"})}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Level:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:Z.level||0})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Name:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:Z.name||"N/A"})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Username:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:Z.username||"N/A"})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Email:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:Z.email||"N/A"})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"KYC Status:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:Z.kycStatus||"N/A"})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Created At:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:q(Z.joinedDate)})]}),d.jsxs("div",{children:[d.jsx("span",{className:"font-semibold",style:{color:"#FFD700"},children:"Total Amount:"})," ",d.jsx("span",{style:{color:"#FFD700"},children:"AED 0"})]}),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:`${ji}${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:()=>O(Z),className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm",style:{backgroundColor:"#FFD700",color:"#013220"},children:"View Tree"}),d.jsx("button",{onClick:()=>j(!1),className:"px-4 py-2 rounded-lg font-semibold transition-colors text-sm",style:{backgroundColor:"#FFD700",color:"#013220"},children:"Close"})]})]})})]})})},Z5=()=>{const e=wr(),n=$r(),a=bt(cm),s=bt(Eo);if(X.useEffect(()=>{n(Oi())},[]),X.useEffect(()=>{!a&&!s&&n(Oi())},[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?`${ji}/${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 W5(){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]=X.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 tx=({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 Q5(){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]=X.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,w)=>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"})]},w))})]}),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(tx,{label:"PGP Progress",value:u.value,max:u.max}),d.jsx(tx,{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 Z1=X.createContext({});function $5(e){const n=X.useRef(null);return n.current===null&&(n.current=e()),n.current}const xm=typeof window<"u",J5=xm?X.useLayoutEffect:X.useEffect,bm=X.createContext(null);function wm(e,n){e.indexOf(n)===-1&&e.push(n)}function Sm(e,n){const a=e.indexOf(n);a>-1&&e.splice(a,1)}const xr=(e,n,a)=>a>n?n:a<e?e:a;let jm=()=>{};const br={},W1=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Q1(e){return typeof e=="object"&&e!==null}const $1=e=>/^0[^.\s]+$/u.test(e);function Tm(e){let n;return()=>(n===void 0&&(n=e()),n)}const _n=e=>e,eO=(e,n)=>a=>n(e(a)),ko=(...e)=>e.reduce(eO),mo=(e,n,a)=>{const s=n-e;return s===0?1:(a-e)/s};class Em{constructor(){this.subscriptions=[]}add(n){return wm(this.subscriptions,n),()=>Sm(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 Xn=e=>e*1e3,Zn=e=>e/1e3;function J1(e,n){return n?e*(1e3/n):0}const ew=(e,n,a)=>(((1-3*a+3*n)*e+(3*a-6*n))*e+3*n)*e,tO=1e-7,nO=12;function rO(e,n,a,s,o){let u,c,f=0;do c=n+(a-n)/2,u=ew(c,s,o)-e,u>0?a=c:n=c;while(Math.abs(u)>tO&&++f<nO);return c}function Ro(e,n,a,s){if(e===n&&a===s)return _n;const o=u=>rO(u,0,1,e,a);return u=>u===0||u===1?u:ew(o(u),n,s)}const tw=e=>n=>n<=.5?e(2*n)/2:(2-e(2*(1-n)))/2,nw=e=>n=>1-e(1-n),rw=Ro(.33,1.53,.69,.99),Am=nw(rw),aw=tw(Am),iw=e=>(e*=2)<1?.5*Am(e):.5*(2-Math.pow(2,-10*(e-1))),Nm=e=>1-Math.sin(Math.acos(e)),sw=nw(Nm),ow=tw(Nm),aO=Ro(.42,0,1,1),iO=Ro(0,0,.58,1),lw=Ro(.42,0,.58,1),sO=e=>Array.isArray(e)&&typeof e[0]!="number",uw=e=>Array.isArray(e)&&typeof e[0]=="number",oO={linear:_n,easeIn:aO,easeInOut:lw,easeOut:iO,circIn:Nm,circInOut:ow,circOut:sw,backIn:Am,backInOut:aw,backOut:rw,anticipate:iw},lO=e=>typeof e=="string",nx=e=>{if(uw(e)){jm(e.length===4);const[n,a,s,o]=e;return Ro(n,a,s,o)}else if(lO(e))return oO[e];return e},Jl=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function uO(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,w=!1)=>{const _=w&&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 cO=40;function cw(e,n){let a=!1,s=!0;const o={delta:0,timestamp:0,isProcessing:!1},u=()=>a=!0,c=Jl.reduce((L,G)=>(L[G]=uO(u),L),{}),{setup:f,read:h,resolveKeyframes:p,preUpdate:g,update:v,preRender:w,render:T,postRender:_}=c,S=()=>{const L=br.useManualTiming?o.timestamp:performance.now();a=!1,br.useManualTiming||(o.delta=s?1e3/60:Math.max(Math.min(L-o.timestamp,cO),1)),o.timestamp=L,o.isProcessing=!0,f.process(o),h.process(o),p.process(o),g.process(o),v.process(o),w.process(o),T.process(o),_.process(o),o.isProcessing=!1,a&&n&&(s=!1,e(S))},N=()=>{a=!0,s=!0,o.isProcessing||e(S)};return{schedule:Jl.reduce((L,G)=>{const A=c[G];return L[G]=(z,F=!1,V=!1)=>(a||N(),A.schedule(z,F,V)),L},{}),cancel:L=>{for(let G=0;G<Jl.length;G++)c[Jl[G]].cancel(L)},state:o,steps:c}}const{schedule:st,cancel:Wr,state:Mt,steps:th}=cw(typeof requestAnimationFrame<"u"?requestAnimationFrame:_n,!0);let pu;function dO(){pu=void 0}const Jt={now:()=>(pu===void 0&&Jt.set(Mt.isProcessing||br.useManualTiming?Mt.timestamp:performance.now()),pu),set:e=>{pu=e,queueMicrotask(dO)}},dw=e=>n=>typeof n=="string"&&n.startsWith(e),_m=dw("--"),fO=dw("var(--"),Om=e=>fO(e)?hO.test(e.split("/*")[0].trim()):!1,hO=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,qi={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},po={...qi,transform:e=>xr(0,1,e)},eu={...qi,default:1},no=e=>Math.round(e*1e5)/1e5,km=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function mO(e){return e==null}const pO=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Rm=(e,n)=>a=>!!(typeof a=="string"&&pO.test(a)&&a.startsWith(e)||n&&!mO(a)&&Object.prototype.hasOwnProperty.call(a,n)),fw=(e,n,a)=>s=>{if(typeof s!="string")return s;const[o,u,c,f]=s.match(km);return{[e]:parseFloat(o),[n]:parseFloat(u),[a]:parseFloat(c),alpha:f!==void 0?parseFloat(f):1}},gO=e=>xr(0,255,e),nh={...qi,transform:e=>Math.round(gO(e))},Ea={test:Rm("rgb","red"),parse:fw("red","green","blue"),transform:({red:e,green:n,blue:a,alpha:s=1})=>"rgba("+nh.transform(e)+", "+nh.transform(n)+", "+nh.transform(a)+", "+no(po.transform(s))+")"};function yO(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 Ph={test:Rm("#"),parse:yO,transform:Ea.transform},Co=e=>({test:n=>typeof n=="string"&&n.endsWith(e)&&n.split(" ").length===1,parse:parseFloat,transform:n=>`${n}${e}`}),Yr=Co("deg"),Wn=Co("%"),Ue=Co("px"),vO=Co("vh"),xO=Co("vw"),rx={...Wn,parse:e=>Wn.parse(e)/100,transform:e=>Wn.transform(e*100)},Ti={test:Rm("hsl","hue"),parse:fw("hue","saturation","lightness"),transform:({hue:e,saturation:n,lightness:a,alpha:s=1})=>"hsla("+Math.round(e)+", "+Wn.transform(no(n))+", "+Wn.transform(no(a))+", "+no(po.transform(s))+")"},jt={test:e=>Ea.test(e)||Ph.test(e)||Ti.test(e),parse:e=>Ea.test(e)?Ea.parse(e):Ti.test(e)?Ti.parse(e):Ph.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ea.transform(e):Ti.transform(e),getAnimatableNone:e=>{const n=jt.parse(e);return n.alpha=0,jt.transform(n)}},bO=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function wO(e){return isNaN(e)&&typeof e=="string"&&(e.match(km)?.length||0)+(e.match(bO)?.length||0)>0}const hw="number",mw="color",SO="var",jO="var(",ax="${}",TO=/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 go(e){const n=e.toString(),a=[],s={color:[],number:[],var:[]},o=[];let u=0;const f=n.replace(TO,h=>(jt.test(h)?(s.color.push(u),o.push(mw),a.push(jt.parse(h))):h.startsWith(jO)?(s.var.push(u),o.push(SO),a.push(h)):(s.number.push(u),o.push(hw),a.push(parseFloat(h))),++u,ax)).split(ax);return{values:a,split:f,indexes:s,types:o}}function pw(e){return go(e).values}function gw(e){const{split:n,types:a}=go(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===hw?u+=no(o[c]):f===mw?u+=jt.transform(o[c]):u+=o[c]}return u}}const EO=e=>typeof e=="number"?0:jt.test(e)?jt.getAnimatableNone(e):e;function AO(e){const n=pw(e);return gw(e)(n.map(EO))}const Qr={test:wO,parse:pw,createTransformer:gw,getAnimatableNone:AO};function rh(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 NO({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=rh(h,f,e+1/3),u=rh(h,f,e),c=rh(h,f,e-1/3)}return{red:Math.round(o*255),green:Math.round(u*255),blue:Math.round(c*255),alpha:s}}function Du(e,n){return a=>a>0?n:e}const ct=(e,n,a)=>e+(n-e)*a,ah=(e,n,a)=>{const s=e*e,o=a*(n*n-s)+s;return o<0?0:Math.sqrt(o)},_O=[Ph,Ea,Ti],OO=e=>_O.find(n=>n.test(e));function ix(e){const n=OO(e);if(!n)return!1;let a=n.parse(e);return n===Ti&&(a=NO(a)),a}const sx=(e,n)=>{const a=ix(e),s=ix(n);if(!a||!s)return Du(e,n);const o={...a};return u=>(o.red=ah(a.red,s.red,u),o.green=ah(a.green,s.green,u),o.blue=ah(a.blue,s.blue,u),o.alpha=ct(a.alpha,s.alpha,u),Ea.transform(o))},zh=new Set(["none","hidden"]);function kO(e,n){return zh.has(e)?a=>a<=0?e:n:a=>a>=1?n:e}function RO(e,n){return a=>ct(e,n,a)}function Cm(e){return typeof e=="number"?RO:typeof e=="string"?Om(e)?Du:jt.test(e)?sx:MO:Array.isArray(e)?yw:typeof e=="object"?jt.test(e)?sx:CO:Du}function yw(e,n){const a=[...e],s=a.length,o=e.map((u,c)=>Cm(u)(u,n[c]));return u=>{for(let c=0;c<s;c++)a[c]=o[c](u);return a}}function CO(e,n){const a={...e,...n},s={};for(const o in a)e[o]!==void 0&&n[o]!==void 0&&(s[o]=Cm(e[o])(e[o],n[o]));return o=>{for(const u in s)a[u]=s[u](o);return a}}function DO(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 MO=(e,n)=>{const a=Qr.createTransformer(n),s=go(e),o=go(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?zh.has(e)&&!o.values.length||zh.has(n)&&!s.values.length?kO(e,n):ko(yw(DO(s,o),o.values),a):Du(e,n)};function vw(e,n,a){return typeof e=="number"&&typeof n=="number"&&typeof a=="number"?ct(e,n,a):Cm(e)(e,n)}const LO=e=>{const n=({timestamp:a})=>e(a);return{start:(a=!0)=>st.update(n,a),stop:()=>Wr(n),now:()=>Mt.isProcessing?Mt.timestamp:Jt.now()}},xw=(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)})`},Mu=2e4;function Dm(e){let n=0;const a=50;let s=e.next(n);for(;!s.done&&n<Mu;)n+=a,s=e.next(n);return n>=Mu?1/0:n}function PO(e,n=100,a){const s=a({...e,keyframes:[0,n]}),o=Math.min(Dm(s),Mu);return{type:"keyframes",ease:u=>s.next(o*u).value/n,duration:Zn(o)}}const zO=5;function bw(e,n,a){const s=Math.max(n-zO,0);return J1(a-e(s),n-s)}const mt={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},ih=.001;function UO({duration:e=mt.duration,bounce:n=mt.bounce,velocity:a=mt.velocity,mass:s=mt.mass}){let o,u,c=1-n;c=xr(mt.minDamping,mt.maxDamping,c),e=xr(mt.minDuration,mt.maxDuration,Zn(e)),c<1?(o=p=>{const g=p*c,v=g*e,w=g-a,T=Uh(p,c),_=Math.exp(-v);return ih-w/T*_},u=p=>{const v=p*c*e,w=v*a+a,T=Math.pow(c,2)*Math.pow(p,2)*e,_=Math.exp(-v),S=Uh(Math.pow(p,2),c);return(-o(p)+ih>0?-1:1)*((w-T)*_)/S}):(o=p=>{const g=Math.exp(-p*e),v=(p-a)*e+1;return-ih+g*v},u=p=>{const g=Math.exp(-p*e),v=(a-p)*(e*e);return g*v});const f=5/e,h=FO(o,u,f);if(e=Xn(e),isNaN(h))return{stiffness:mt.stiffness,damping:mt.damping,duration:e};{const p=Math.pow(h,2)*s;return{stiffness:p,damping:c*2*Math.sqrt(s*p),duration:e}}}const BO=12;function FO(e,n,a){let s=a;for(let o=1;o<BO;o++)s=s-e(s)/n(s);return s}function Uh(e,n){return e*Math.sqrt(1-n*n)}const VO=["duration","bounce"],HO=["stiffness","damping","mass"];function ox(e,n){return n.some(a=>e[a]!==void 0)}function IO(e){let n={velocity:mt.velocity,stiffness:mt.stiffness,damping:mt.damping,mass:mt.mass,isResolvedFromDuration:!1,...e};if(!ox(e,HO)&&ox(e,VO))if(e.visualDuration){const a=e.visualDuration,s=2*Math.PI/(a*1.2),o=s*s,u=2*xr(.05,1,1-(e.bounce||0))*Math.sqrt(o);n={...n,mass:mt.mass,stiffness:o,damping:u}}else{const a=UO(e);n={...n,...a,mass:mt.mass},n.isResolvedFromDuration=!0}return n}function Lu(e=mt.visualDuration,n=mt.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:w,isResolvedFromDuration:T}=IO({...a,velocity:-Zn(a.velocity||0)}),_=w||0,S=p/(2*Math.sqrt(h*g)),N=c-u,E=Zn(Math.sqrt(h/g)),M=Math.abs(N)<5;s||(s=M?mt.restSpeed.granular:mt.restSpeed.default),o||(o=M?mt.restDelta.granular:mt.restDelta.default);let L;if(S<1){const A=Uh(E,S);L=z=>{const F=Math.exp(-S*E*z);return c-F*((_+S*E*N)/A*Math.sin(A*z)+N*Math.cos(A*z))}}else if(S===1)L=A=>c-Math.exp(-E*A)*(N+(_+E*N)*A);else{const A=E*Math.sqrt(S*S-1);L=z=>{const F=Math.exp(-S*E*z),V=Math.min(A*z,300);return c-F*((_+S*E*N)*Math.sinh(V)+A*N*Math.cosh(V))/A}}const G={calculatedDuration:T&&v||null,next:A=>{const z=L(A);if(T)f.done=A>=v;else{let F=A===0?_:0;S<1&&(F=A===0?Xn(_):bw(L,A,z));const V=Math.abs(F)<=s,D=Math.abs(c-z)<=o;f.done=V&&D}return f.value=f.done?c:z,f},toString:()=>{const A=Math.min(Dm(G),Mu),z=xw(F=>G.next(A*F).value,A,30);return A+"ms "+z},toTransition:()=>{}};return G}Lu.applyToOptions=e=>{const n=PO(e,100,Lu);return e.ease=n.ease,e.duration=Xn(n.duration),e.type="keyframes",e};function Bh({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],w={done:!1,value:v},T=V=>f!==void 0&&V<f||h!==void 0&&V>h,_=V=>f===void 0?h:h===void 0||Math.abs(f-V)<Math.abs(h-V)?f:h;let S=a*n;const N=v+S,E=c===void 0?N:c(N);E!==N&&(S=E-v);const M=V=>-S*Math.exp(-V/s),L=V=>E+M(V),G=V=>{const D=M(V),R=L(V);w.done=Math.abs(D)<=p,w.value=w.done?E:R};let A,z;const F=V=>{T(w.value)&&(A=V,z=Lu({keyframes:[w.value,_(w.value)],velocity:bw(L,V,w.value),damping:o,stiffness:u,restDelta:p,restSpeed:g}))};return F(0),{calculatedDuration:null,next:V=>{let D=!1;return!z&&A===void 0&&(D=!0,G(V),F(V)),A!==void 0&&V>=A?z.next(V-A):(!D&&G(V),w)}}}function qO(e,n,a){const s=[],o=a||br.mix||vw,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=ko(h,f)}s.push(f)}return s}function GO(e,n,{clamp:a=!0,ease:s,mixer:o}={}){const u=e.length;if(jm(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=qO(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 w=mo(e[v],e[v+1],g);return f[v](w)};return a?g=>p(xr(e[0],e[u-1],g)):p}function YO(e,n){const a=e[e.length-1];for(let s=1;s<=n;s++){const o=mo(0,n,s);e.push(ct(a,1,o))}}function KO(e){const n=[0];return YO(n,e.length-1),n}function XO(e,n){return e.map(a=>a*n)}function ZO(e,n){return e.map(()=>n||lw).splice(0,e.length-1)}function ro({duration:e=300,keyframes:n,times:a,ease:s="easeInOut"}){const o=sO(s)?s.map(nx):nx(s),u={done:!1,value:n[0]},c=XO(a&&a.length===n.length?a:KO(n),e),f=GO(c,n,{ease:Array.isArray(o)?o:ZO(n,o)});return{calculatedDuration:e,next:h=>(u.value=f(h),u.done=h>=e,u)}}const WO=e=>e!==null;function Mm(e,{repeat:n,repeatType:a="loop"},s,o=1){const u=e.filter(WO),f=o<0||n&&a!=="loop"&&n%2===1?0:u.length-1;return!f||s===void 0?u[f]:s}const QO={decay:Bh,inertia:Bh,tween:ro,keyframes:ro,spring:Lu};function ww(e){typeof e.type=="string"&&(e.type=QO[e.type])}class Lm{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 $O=e=>e/100;class Pm extends Lm{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!==Jt.now()&&this.tick(Jt.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;ww(n);const{type:a=ro,repeat:s=0,repeatDelay:o=0,repeatType:u,velocity:c=0}=n;let{keyframes:f}=n;const h=a||ro;h!==ro&&typeof f[0]!="number"&&(this.mixKeyframes=ko($O,vw(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=Dm(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:w,repeatDelay:T,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 E=this.currentTime-p*(this.playbackSpeed>=0?1:-1),M=this.playbackSpeed>=0?E<0:E>o;this.currentTime=Math.max(E,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let L=this.currentTime,G=s;if(v){const V=Math.min(this.currentTime,o)/f;let D=Math.floor(V),R=V%1;!R&&V>=1&&(R=1),R===1&&D--,D=Math.min(D,v+1),!!(D%2)&&(w==="reverse"?(R=1-R,T&&(R-=T/f)):w==="mirror"&&(G=c)),L=xr(0,1,R)*f}const A=M?{done:!1,value:g[0]}:G.next(L);u&&(A.value=u(A.value));let{done:z}=A;!M&&h!==null&&(z=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const F=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&z);return F&&_!==Bh&&(A.value=Mm(g,this.options,N,this.speed)),S&&S(A.value),F&&this.finish(),A}then(n,a){return this.finished.then(n,a)}get duration(){return Zn(this.calculatedDuration)}get time(){return Zn(this.currentTime)}set time(n){n=Xn(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(Jt.now());const a=this.playbackSpeed!==n;this.playbackSpeed=n,a&&(this.time=Zn(this.currentTime))}play(){if(this.isStopped)return;const{driver:n=LO,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(Jt.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 JO(e){for(let n=1;n<e.length;n++)e[n]??(e[n]=e[n-1])}const Aa=e=>e*180/Math.PI,Fh=e=>{const n=Aa(Math.atan2(e[1],e[0]));return Vh(n)},ek={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:Fh,rotateZ:Fh,skewX:e=>Aa(Math.atan(e[1])),skewY:e=>Aa(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},Vh=e=>(e=e%360,e<0&&(e+=360),e),lx=Fh,ux=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),cx=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),tk={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:ux,scaleY:cx,scale:e=>(ux(e)+cx(e))/2,rotateX:e=>Vh(Aa(Math.atan2(e[6],e[5]))),rotateY:e=>Vh(Aa(Math.atan2(-e[2],e[0]))),rotateZ:lx,rotate:lx,skewX:e=>Aa(Math.atan(e[4])),skewY:e=>Aa(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Hh(e){return e.includes("scale")?1:0}function Ih(e,n){if(!e||e==="none")return Hh(n);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,o;if(a)s=tk,o=a;else{const f=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=ek,o=f}if(!o)return Hh(n);const u=s[n],c=o[1].split(",").map(rk);return typeof u=="function"?u(c):c[u]}const nk=(e,n)=>{const{transform:a="none"}=getComputedStyle(e);return Ih(a,n)};function rk(e){return parseFloat(e.trim())}const Gi=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Yi=new Set(Gi),dx=e=>e===qi||e===Ue,ak=new Set(["x","y","z"]),ik=Gi.filter(e=>!ak.has(e));function sk(e){const n=[];return ik.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})=>Ih(n,"x"),y:(e,{transform:n})=>Ih(n,"y")};Oa.translateX=Oa.x;Oa.translateY=Oa.y;const ka=new Set;let qh=!1,Gh=!1,Yh=!1;function Sw(){if(Gh){const e=Array.from(ka).filter(s=>s.needsMeasurement),n=new Set(e.map(s=>s.element)),a=new Map;n.forEach(s=>{const o=sk(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)})}Gh=!1,qh=!1,ka.forEach(e=>e.complete(Yh)),ka.clear()}function jw(){ka.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Gh=!0)})}function ok(){Yh=!0,jw(),Sw(),Yh=!1}class zm{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?(ka.add(this),qh||(qh=!0,st.read(jw),st.resolveKeyframes(Sw))):(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])}JO(n)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(n=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,n),ka.delete(this)}cancel(){this.state==="scheduled"&&(ka.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const lk=e=>e.startsWith("--");function uk(e,n,a){lk(n)?e.style.setProperty(n,a):e.style[n]=a}const ck=Tm(()=>window.ScrollTimeline!==void 0),dk={};function fk(e,n){const a=Tm(e);return()=>dk[n]??a()}const Tw=fk(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Js=([e,n,a,s])=>`cubic-bezier(${e}, ${n}, ${a}, ${s})`,fx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Js([0,.65,.55,1]),circOut:Js([.55,0,1,.45]),backIn:Js([.31,.01,.66,-.59]),backOut:Js([.33,1.53,.69,.99])};function Ew(e,n){if(e)return typeof e=="function"?Tw()?xw(e,n):"ease-out":uw(e)?Js(e):Array.isArray(e)?e.map(a=>Ew(a,n)||fx.easeOut):fx[e]}function hk(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=Ew(f,o);Array.isArray(v)&&(g.easing=v);const w={delay:s,duration:o,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:u+1,direction:c==="reverse"?"alternate":"normal"};return p&&(w.pseudoElement=p),e.animate(g,w)}function Aw(e){return typeof e=="function"&&"applyToOptions"in e}function mk({type:e,...n}){return Aw(e)&&Tw()?e.applyToOptions(n):(n.duration??(n.duration=300),n.ease??(n.ease="easeOut"),n)}class pk extends Lm{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,jm(typeof n.type!="string");const p=mk(n);this.animation=hk(a,s,o,p,u),p.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!u){const g=Mm(o,this.options,f,this.speed);this.updateMotionValue?this.updateMotionValue(g):uk(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 Zn(Number(n))}get time(){return Zn(Number(this.animation.currentTime)||0)}set time(n){this.finishedTime=null,this.animation.currentTime=Xn(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&&ck()?(this.animation.timeline=n,_n):a(this)}}const Nw={anticipate:iw,backInOut:aw,circInOut:ow};function gk(e){return e in Nw}function yk(e){typeof e.ease=="string"&&gk(e.ease)&&(e.ease=Nw[e.ease])}const hx=10;class vk extends pk{constructor(n){yk(n),ww(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 Pm({...c,autoplay:!1}),h=Xn(this.finishedTime??this.time);a.setWithVelocity(f.sample(h-hx).value,f.sample(h).value,hx),f.stop()}}const mx=(e,n)=>n==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Qr.test(e)||e==="0")&&!e.startsWith("url("));function xk(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 bk(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=mx(o,n),f=mx(u,n);return!c||!f?!1:xk(e)||(a==="spring"||Aw(a))&&s}function Kh(e){e.duration=0,e.type}const wk=new Set(["opacity","clipPath","filter","transform"]),Sk=Tm(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function jk(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 Sk()&&a&&wk.has(a)&&(a!=="transform"||!p)&&!h&&!s&&o!=="mirror"&&u!==0&&c!=="inertia"}const Tk=40;class Ek extends Lm{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=Jt.now();const w={autoplay:n,delay:a,type:s,repeat:o,repeatDelay:u,repeatType:c,name:h,motionValue:p,element:g,...v},T=g?.KeyframeResolver||zm;this.keyframeResolver=new T(f,(_,S,N)=>this.onKeyframesResolved(_,S,w,!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=Jt.now(),bk(n,u,c,f)||((br.instantAnimations||!h)&&g?.(Mm(n,s,a)),n[0]=n[n.length-1],Kh(s),s.repeat=0);const w={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>Tk?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...s,keyframes:n},T=!p&&jk(w)?new vk({...w,element:w.motionValue.owner.current}):new Pm(w);T.finished.then(()=>this.notifyFinished()).catch(_n),this.pendingTimeline&&(this.stopTimeline=T.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=T}get finished(){return this._animation?this.animation.finished:this._finished}then(n,a){return this.finished.finally(n).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),ok()),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 Ak=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Nk(e){const n=Ak.exec(e);if(!n)return[,];const[,a,s,o]=n;return[`--${a??s}`,o]}function _w(e,n,a=1){const[s,o]=Nk(e);if(!s)return;const u=window.getComputedStyle(n).getPropertyValue(s);if(u){const c=u.trim();return W1(c)?parseFloat(c):c}return Om(o)?_w(o,n,a+1):o}function Um(e,n){return e?.[n]??e?.default??e}const Ow=new Set(["width","height","top","left","right","bottom",...Gi]),_k={test:e=>e==="auto",parse:e=>e},kw=e=>n=>n.test(e),Rw=[qi,Ue,Wn,Yr,xO,vO,_k],px=e=>Rw.find(kw(e));function Ok(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||$1(e):!0}const kk=new Set(["brightness","contrast","saturate","opacity"]);function Rk(e){const[n,a]=e.slice(0,-1).split("(");if(n==="drop-shadow")return e;const[s]=a.match(km)||[];if(!s)return e;const o=a.replace(s,"");let u=kk.has(n)?1:0;return s!==a&&(u*=100),n+"("+u+o+")"}const Ck=/\b([a-z-]*)\(.*?\)/gu,Xh={...Qr,getAnimatableNone:e=>{const n=e.match(Ck);return n?n.map(Rk).join(" "):e}},gx={...qi,transform:Math.round},Dk={rotate:Yr,rotateX:Yr,rotateY:Yr,rotateZ:Yr,scale:eu,scaleX:eu,scaleY:eu,scaleZ:eu,skew:Yr,skewX:Yr,skewY:Yr,distance:Ue,translateX:Ue,translateY:Ue,translateZ:Ue,x:Ue,y:Ue,z:Ue,perspective:Ue,transformPerspective:Ue,opacity:po,originX:rx,originY:rx,originZ:Ue},Bm={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,...Dk,zIndex:gx,fillOpacity:po,strokeOpacity:po,numOctaves:gx},Mk={...Bm,color:jt,backgroundColor:jt,outlineColor:jt,fill:jt,stroke:jt,borderColor:jt,borderTopColor:jt,borderRightColor:jt,borderBottomColor:jt,borderLeftColor:jt,filter:Xh,WebkitFilter:Xh},Cw=e=>Mk[e];function Dw(e,n){let a=Cw(e);return a!==Xh&&(a=Qr),a.getAnimatableNone?a.getAnimatableNone(n):void 0}const Lk=new Set(["auto","none","0"]);function Pk(e,n,a){let s=0,o;for(;s<e.length&&!o;){const u=e[s];typeof u=="string"&&!Lk.has(u)&&go(u).values.length&&(o=e[s]),s++}if(o&&a)for(const u of n)e[u]=Dw(a,o)}class zk extends zm{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(),Om(p))){const g=_w(p,a.current);g!==void 0&&(n[h]=g),h===n.length-1&&(this.finalKeyframe=p)}}if(this.resolveNoneKeyframes(),!Ow.has(s)||n.length!==2)return;const[o,u]=n,c=px(o),f=px(u);if(c!==f)if(dx(c)&&dx(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||Ok(n[o]))&&s.push(o);s.length&&Pk(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 Uk(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 Mw=(e,n)=>n&&typeof e=="number"?n.transform(e):e;function Bk(e){return Q1(e)&&"offsetHeight"in e}const yx=30,Fk=e=>!isNaN(parseFloat(e));class Vk{constructor(n,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{const o=Jt.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=Jt.now(),this.canTrackVelocity===null&&n!==void 0&&(this.canTrackVelocity=Fk(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 Em);const s=this.events[n].add(a);return n==="change"?()=>{s(),st.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=Jt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||n-this.updatedAt>yx)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,yx);return J1(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 zi(e,n){return new Vk(e,n)}const{schedule:Fm}=cw(queueMicrotask,!1),zn={x:!1,y:!1};function Lw(){return zn.x||zn.y}function Hk(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 Pw(e,n){const a=Uk(e),s=new AbortController,o={passive:!0,...n,signal:s.signal};return[a,o,()=>s.abort()]}function vx(e){return!(e.pointerType==="touch"||Lw())}function Ik(e,n,a={}){const[s,o,u]=Pw(e,a),c=f=>{if(!vx(f))return;const{target:h}=f,p=n(h,f);if(typeof p!="function"||!h)return;const g=v=>{vx(v)&&(p(v),h.removeEventListener("pointerleave",g))};h.addEventListener("pointerleave",g,o)};return s.forEach(f=>{f.addEventListener("pointerenter",c,o)}),u}const zw=(e,n)=>n?e===n?!0:zw(e,n.parentElement):!1,Vm=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,qk=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Gk(e){return qk.has(e.tagName)||e.tabIndex!==-1}const gu=new WeakSet;function xx(e){return n=>{n.key==="Enter"&&e(n)}}function sh(e,n){e.dispatchEvent(new PointerEvent("pointer"+n,{isPrimary:!0,bubbles:!0}))}const Yk=(e,n)=>{const a=e.currentTarget;if(!a)return;const s=xx(()=>{if(gu.has(a))return;sh(a,"down");const o=xx(()=>{sh(a,"up")}),u=()=>sh(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 bx(e){return Vm(e)&&!Lw()}function Kk(e,n,a={}){const[s,o,u]=Pw(e,a),c=f=>{const h=f.currentTarget;if(!bx(f))return;gu.add(h);const p=n(h,f),g=(T,_)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",w),gu.has(h)&&gu.delete(h),bx(T)&&typeof p=="function"&&p(T,{success:_})},v=T=>{g(T,h===window||h===document||a.useGlobalTarget||zw(h,T.target))},w=T=>{g(T,!1)};window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",w,o)};return s.forEach(f=>{(a.useGlobalTarget?window:f).addEventListener("pointerdown",c,o),Bk(f)&&(f.addEventListener("focus",p=>Yk(p,o)),!Gk(f)&&!f.hasAttribute("tabindex")&&(f.tabIndex=0))}),u}function Uw(e){return Q1(e)&&"ownerSVGElement"in e}function Xk(e){return Uw(e)&&e.tagName==="svg"}const Vt=e=>!!(e&&e.getVelocity),Zk=[...Rw,jt,Qr],Wk=e=>Zk.find(kw(e)),Bw=X.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function Qk(e=!0){const n=X.useContext(bm);if(n===null)return[!0,null];const{isPresent:a,onExitComplete:s,register:o}=n,u=X.useId();X.useEffect(()=>{if(e)return o(u)},[e]);const c=X.useCallback(()=>e&&s&&s(u),[u,s,e]);return!a&&s?[!1,c]:[!0]}const Fw=X.createContext({strict:!1}),wx={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"]},Ui={};for(const e in wx)Ui[e]={isEnabled:n=>wx[e].some(a=>!!n[a])};function $k(e){for(const n in e)Ui[n]={...Ui[n],...e[n]}}const Jk=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 Pu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Jk.has(e)}let Vw=e=>!Pu(e);function e6(e){typeof e=="function"&&(Vw=n=>n.startsWith("on")?!Pu(n):e(n))}try{e6(require("@emotion/is-prop-valid").default)}catch{}function t6(e,n,a){const s={};for(const o in e)o==="values"&&typeof e.values=="object"||(Vw(o)||a===!0&&Pu(o)||!n&&!Pu(o)||e.draggable&&o.startsWith("onDrag"))&&(s[o]=e[o]);return s}const sc=X.createContext({});function oc(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function yo(e){return typeof e=="string"||Array.isArray(e)}const Hm=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Im=["initial",...Hm];function lc(e){return oc(e.animate)||Im.some(n=>yo(e[n]))}function Hw(e){return!!(lc(e)||e.variants)}function n6(e,n){if(lc(e)){const{initial:a,animate:s}=e;return{initial:a===!1||yo(a)?a:void 0,animate:yo(s)?s:void 0}}return e.inherit!==!1?n:{}}function r6(e){const{initial:n,animate:a}=n6(e,X.useContext(sc));return X.useMemo(()=>({initial:n,animate:a}),[Sx(n),Sx(a)])}function Sx(e){return Array.isArray(e)?e.join(" "):e}const vo={};function a6(e){for(const n in e)vo[n]=e[n],_m(n)&&(vo[n].isCSSVariable=!0)}function Iw(e,{layout:n,layoutId:a}){return Yi.has(e)||e.startsWith("origin")||(n||a!==void 0)&&(!!vo[e]||e==="opacity")}const i6={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},s6=Gi.length;function o6(e,n,a){let s="",o=!0;for(let u=0;u<s6;u++){const c=Gi[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=Mw(f,Bm[c]);if(!h){o=!1;const g=i6[c]||c;s+=`${g}(${p}) `}a&&(n[c]=p)}}return s=s.trim(),a?s=a(n,o?"":s):o&&(s="none"),s}function qm(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(Yi.has(h)){c=!0;continue}else if(_m(h)){o[h]=p;continue}else{const g=Mw(p,Bm[h]);h.startsWith("origin")?(f=!0,u[h]=g):s[h]=g}}if(n.transform||(c||a?s.transform=o6(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 Gm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function qw(e,n,a){for(const s in n)!Vt(n[s])&&!Iw(s,a)&&(e[s]=n[s])}function l6({transformTemplate:e},n){return X.useMemo(()=>{const a=Gm();return qm(a,n,e),Object.assign({},a.vars,a.style)},[n])}function u6(e,n){const a=e.style||{},s={};return qw(s,a,e),Object.assign(s,l6(e,n)),s}function c6(e,n){const a={},s=u6(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 d6={offset:"stroke-dashoffset",array:"stroke-dasharray"},f6={offset:"strokeDashoffset",array:"strokeDasharray"};function h6(e,n,a=1,s=0,o=!0){e.pathLength=1;const u=o?d6:f6;e[u.offset]=Ue.transform(-s);const c=Ue.transform(n),f=Ue.transform(a);e[u.array]=`${c} ${f}`}function Gw(e,{attrX:n,attrY:a,attrScale:s,pathLength:o,pathSpacing:u=1,pathOffset:c=0,...f},h,p,g){if(qm(e,f,p),h){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:v,style:w}=e;v.transform&&(w.transform=v.transform,delete v.transform),(w.transform||v.transformOrigin)&&(w.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),w.transform&&(w.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&&h6(v,o,u,c,!1)}const Yw=()=>({...Gm(),attrs:{}}),Kw=e=>typeof e=="string"&&e.toLowerCase()==="svg";function m6(e,n,a,s){const o=X.useMemo(()=>{const u=Yw();return Gw(u,n,Kw(s),e.transformTemplate,e.style),{...u.attrs,style:{...u.style}}},[n]);if(e.style){const u={};qw(u,e.style,e),o.style={...u,...o.style}}return o}const p6=["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 Ym(e){return typeof e!="string"||e.includes("-")?!1:!!(p6.indexOf(e)>-1||/[A-Z]/u.test(e))}function g6(e,n,a,{latestValues:s},o,u=!1){const f=(Ym(e)?m6:c6)(n,s,o,e),h=t6(n,typeof e=="string",u),p=e!==X.Fragment?{...h,...f,ref:a}:{},{children:g}=n,v=X.useMemo(()=>Vt(g)?g.get():g,[g]);return X.createElement(e,{...p,children:v})}function jx(e){const n=[{},{}];return e?.values.forEach((a,s)=>{n[0][s]=a.get(),n[1][s]=a.getVelocity()}),n}function Km(e,n,a,s){if(typeof n=="function"){const[o,u]=jx(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]=jx(s);n=n(a!==void 0?a:e.custom,o,u)}return n}function yu(e){return Vt(e)?e.get():e}function y6({scrapeMotionValuesFromProps:e,createRenderState:n},a,s,o){return{latestValues:v6(a,s,o,e),renderState:n()}}function v6(e,n,a,s){const o={},u=s(e,{});for(const w in u)o[w]=yu(u[w]);let{initial:c,animate:f}=e;const h=lc(e),p=Hw(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"&&!oc(v)){const w=Array.isArray(v)?v:[v];for(let T=0;T<w.length;T++){const _=Km(e,w[T]);if(_){const{transitionEnd:S,transition:N,...E}=_;for(const M in E){let L=E[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 Xw=e=>(n,a)=>{const s=X.useContext(sc),o=X.useContext(bm),u=()=>y6(e,n,s,o);return a?u():$5(u)};function Xm(e,n,a){const{style:s}=e,o={};for(const u in s)(Vt(s[u])||n.style&&Vt(n.style[u])||Iw(u,e)||a?.getValue(u)?.liveStyle!==void 0)&&(o[u]=s[u]);return o}const x6=Xw({scrapeMotionValuesFromProps:Xm,createRenderState:Gm});function Zw(e,n,a){const s=Xm(e,n,a);for(const o in e)if(Vt(e[o])||Vt(n[o])){const u=Gi.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;s[u]=e[o]}return s}const b6=Xw({scrapeMotionValuesFromProps:Zw,createRenderState:Yw}),w6=Symbol.for("motionComponentSymbol");function Ei(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function S6(e,n,a){return X.useCallback(s=>{s&&e.onMount&&e.onMount(s),n&&(s?n.mount(s):n.unmount()),a&&(typeof a=="function"?a(s):Ei(a)&&(a.current=s))},[n])}const Zm=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),j6="framerAppearId",Ww="data-"+Zm(j6),Qw=X.createContext({});function T6(e,n,a,s,o){const{visualElement:u}=X.useContext(sc),c=X.useContext(Fw),f=X.useContext(bm),h=X.useContext(Bw).reducedMotion,p=X.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=X.useContext(Qw);g&&!g.projection&&o&&(g.type==="html"||g.type==="svg")&&E6(p.current,a,o,v);const w=X.useRef(!1);X.useInsertionEffect(()=>{g&&w.current&&g.update(a,f)});const T=a[Ww],_=X.useRef(!!T&&!window.MotionHandoffIsComplete?.(T)&&window.MotionHasOptimisedAnimation?.(T));return J5(()=>{g&&(w.current=!0,window.MotionIsMounted=!0,g.updateFeatures(),g.scheduleRenderMicrotask(),_.current&&g.animationState&&g.animationState.animateChanges())}),X.useEffect(()=>{g&&(!_.current&&g.animationState&&g.animationState.animateChanges(),_.current&&(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(T)}),_.current=!1),g.enteringChildren=void 0)}),g}function E6(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:$w(e.parent)),e.projection.setOptions({layoutId:o,layout:u,alwaysMeasureLayout:!!c||f&&Ei(f),visualElement:e,animationType:typeof u=="string"?u:"both",initialPromotionConfig:s,crossfade:g,layoutScroll:h,layoutRoot:p})}function $w(e){if(e)return e.options.allowProjection!==!1?e.projection:$w(e.parent)}function oh(e,{forwardMotionProps:n=!1}={},a,s){a&&$k(a);const o=Ym(e)?b6:x6;function u(f,h){let p;const g={...X.useContext(Bw),...f,layoutId:A6(f)},{isStatic:v}=g,w=r6(f),T=o(f,v);if(!v&&xm){N6();const _=_6(g);p=_.MeasureLayout,w.visualElement=T6(e,T,g,s,_.ProjectionNode)}return d.jsxs(sc.Provider,{value:w,children:[p&&w.visualElement?d.jsx(p,{visualElement:w.visualElement,...g}):null,g6(e,f,S6(T,w.visualElement,h),T,v,n)]})}u.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const c=X.forwardRef(u);return c[w6]=e,c}function A6({layoutId:e}){const n=X.useContext(Z1).id;return n&&e!==void 0?n+"-"+e:e}function N6(e,n){X.useContext(Fw).strict}function _6(e){const{drag:n,layout:a}=Ui;if(!n&&!a)return{};const s={...n,...a};return{MeasureLayout:n?.isEnabled(e)||a?.isEnabled(e)?s.MeasureLayout:void 0,ProjectionNode:s.ProjectionNode}}function O6(e,n){if(typeof Proxy>"u")return oh;const a=new Map,s=(u,c)=>oh(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,oh(c,void 0,e,n)),a.get(c))})}function Jw({top:e,left:n,right:a,bottom:s}){return{x:{min:n,max:a},y:{min:e,max:s}}}function k6({x:e,y:n}){return{top:n.min,right:e.max,bottom:n.max,left:e.min}}function R6(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 lh(e){return e===void 0||e===1}function Zh({scale:e,scaleX:n,scaleY:a}){return!lh(e)||!lh(n)||!lh(a)}function Sa(e){return Zh(e)||e2(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function e2(e){return Tx(e.x)||Tx(e.y)}function Tx(e){return e&&e!=="0%"}function zu(e,n,a){const s=e-a,o=n*s;return a+o}function Ex(e,n,a,s,o){return o!==void 0&&(e=zu(e,o,s)),zu(e,a,s)+n}function Wh(e,n=0,a=1,s,o){e.min=Ex(e.min,n,a,s,o),e.max=Ex(e.max,n,a,s,o)}function t2(e,{x:n,y:a}){Wh(e.x,n.translate,n.scale,n.originPoint),Wh(e.y,a.translate,a.scale,a.originPoint)}const Ax=.999999999999,Nx=1.0000000000001;function C6(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&&Ni(e,{x:-u.scroll.offset.x,y:-u.scroll.offset.y}),c&&(n.x*=c.x.scale,n.y*=c.y.scale,t2(e,c)),s&&Sa(u.latestValues)&&Ni(e,u.latestValues))}n.x<Nx&&n.x>Ax&&(n.x=1),n.y<Nx&&n.y>Ax&&(n.y=1)}function Ai(e,n){e.min=e.min+n,e.max=e.max+n}function _x(e,n,a,s,o=.5){const u=ct(e.min,e.max,o);Wh(e,n,a,u,s)}function Ni(e,n){_x(e.x,n.x,n.scaleX,n.scale,n.originX),_x(e.y,n.y,n.scaleY,n.scale,n.originY)}function n2(e,n){return Jw(R6(e.getBoundingClientRect(),n))}function D6(e,n,a){const s=n2(e,a),{scroll:o}=n;return o&&(Ai(s.x,o.offset.x),Ai(s.y,o.offset.y)),s}const Ox=()=>({translate:0,scale:1,origin:0,originPoint:0}),_i=()=>({x:Ox(),y:Ox()}),kx=()=>({min:0,max:0}),vt=()=>({x:kx(),y:kx()}),Qh={current:null},r2={current:!1};function M6(){if(r2.current=!0,!!xm)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 L6=new WeakMap;function P6(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,zi(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,zi(c!==void 0?c:o,{owner:e}))}}for(const s in a)n[s]===void 0&&e.removeValue(s);return n}const Rx=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class z6{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=zm,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 w=Jt.now();this.renderScheduledAt<w&&(this.renderScheduledAt=w,st.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=lc(a),this.isVariantNode=Hw(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(n&&n.current);const{willChange:g,...v}=this.scrapeMotionValuesFromProps(a,{},this);for(const w in v){const T=v[w];h[w]!==void 0&&Vt(T)&&T.set(h[w])}}mount(n){this.current=n,L6.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)),r2.current||M6(),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(),Wr(this.notifyUpdate),Wr(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=Yi.has(n);s&&this.onBindTransform&&this.onBindTransform();const o=a.on("change",c=>{this.latestValues[n]=c,this.props.onUpdate&&st.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 Ui){const a=Ui[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):vt()}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<Rx.length;s++){const o=Rx[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=P6(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=zi(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"&&(W1(s)||$1(s))?s=parseFloat(s):!Wk(s)&&Qr.test(a)&&(s=Dw(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=Km(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 Em),this.events[n].add(a)}notify(n,...a){this.events[n]&&this.events[n].notify(...a)}scheduleRenderMicrotask(){Fm.render(this.render)}}class a2 extends z6{constructor(){super(...arguments),this.KeyframeResolver=zk}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 i2(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 U6(e){return window.getComputedStyle(e)}class B6 extends a2{constructor(){super(...arguments),this.type="html",this.renderInstance=i2}readValueFromInstance(n,a){if(Yi.has(a))return this.projection?.isProjecting?Hh(a):nk(n,a);{const s=U6(n),o=(_m(a)?s.getPropertyValue(a):s[a])||0;return typeof o=="string"?o.trim():o}}measureInstanceViewportBox(n,{transformPagePoint:a}){return n2(n,a)}build(n,a,s){qm(n,a,s.transformTemplate)}scrapeMotionValuesFromProps(n,a,s){return Xm(n,a,s)}}const s2=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 F6(e,n,a,s){i2(e,n,void 0,s);for(const o in n.attrs)e.setAttribute(s2.has(o)?o:Zm(o),n.attrs[o])}class V6 extends a2{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=vt}getBaseTargetFromProps(n,a){return n[a]}readValueFromInstance(n,a){if(Yi.has(a)){const s=Cw(a);return s&&s.default||0}return a=s2.has(a)?a:Zm(a),n.getAttribute(a)}scrapeMotionValuesFromProps(n,a,s){return Zw(n,a,s)}build(n,a,s){Gw(n,a,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(n,a,s,o){F6(n,a,s,o)}mount(n){this.isSVGTag=Kw(n.tagName),super.mount(n)}}const H6=(e,n)=>Ym(e)?new V6(n):new B6(n,{allowProjection:e!==X.Fragment});function Di(e,n,a){const s=e.getProps();return Km(s,n,a!==void 0?a:s.custom,e)}const $h=e=>Array.isArray(e);function I6(e,n,a){e.hasValue(n)?e.getValue(n).set(a):e.addValue(n,zi(a))}function q6(e){return $h(e)?e[e.length-1]||0:e}function G6(e,n){const a=Di(e,n);let{transitionEnd:s={},transition:o={},...u}=a||{};u={...u,...s};for(const c in u){const f=q6(u[c]);I6(e,c,f)}}function Y6(e){return!!(Vt(e)&&e.add)}function Jh(e,n){const a=e.getValue("willChange");if(Y6(a))return a.add(n);if(!a&&br.WillChange){const s=new br.WillChange("auto");e.addValue("willChange",s),s.add(n)}}function o2(e){return e.props[Ww]}const K6=e=>e!==null;function X6(e,{repeat:n,repeatType:a="loop"},s){const o=e.filter(K6),u=n&&a!=="loop"&&n%2===1?0:o.length-1;return o[u]}const Z6={type:"spring",stiffness:500,damping:25,restSpeed:10},W6=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Q6={type:"keyframes",duration:.8},$6={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},J6=(e,{keyframes:n})=>n.length>2?Q6:Yi.has(e)?e.startsWith("scale")?W6(n[1]):Z6:$6;function eR({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 Wm=(e,n,a,s={},o,u)=>c=>{const f=Um(s,e)||{},h=f.delay||s.delay||0;let{elapsed:p=0}=s;p=p-Xn(h);const g={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:n.getVelocity(),...f,delay:-p,onUpdate:w=>{n.set(w),f.onUpdate&&f.onUpdate(w)},onComplete:()=>{c(),f.onComplete&&f.onComplete()},name:e,motionValue:n,element:u?void 0:o};eR(f)||Object.assign(g,J6(e,g)),g.duration&&(g.duration=Xn(g.duration)),g.repeatDelay&&(g.repeatDelay=Xn(g.repeatDelay)),g.from!==void 0&&(g.keyframes[0]=g.from);let v=!1;if((g.type===!1||g.duration===0&&!g.repeatDelay)&&(Kh(g),g.delay===0&&(v=!0)),(br.instantAnimations||br.skipAnimations)&&(v=!0,Kh(g),g.delay=0),g.allowFlatten=!f.type&&!f.ease,v&&!u&&n.get()!==void 0){const w=X6(g.keyframes,f);if(w!==void 0){st.update(()=>{g.onUpdate(w),g.onComplete()});return}}return f.isSync?new Pm(g):new Ek(g)};function tR({protectedKeys:e,needsAnimating:n},a){const s=e.hasOwnProperty(a)&&n[a]!==!0;return n[a]=!1,s}function l2(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),w=f[g];if(w===void 0||p&&tR(p,g))continue;const T={delay:a,...Um(u||{},g)},_=v.get();if(_!==void 0&&!v.isAnimating&&!Array.isArray(w)&&w===_&&!T.velocity)continue;let S=!1;if(window.MotionHandoffAnimation){const E=o2(e);if(E){const M=window.MotionHandoffAnimation(E,g,st);M!==null&&(T.startTime=M,S=!0)}}Jh(e,g),v.start(Wm(g,v,w,e.shouldReduceMotion&&Ow.has(g)?{type:!1}:T,e,S));const N=v.animation;N&&h.push(N)}return c&&Promise.all(h).then(()=>{st.update(()=>{c&&G6(e,c)})}),h}function u2(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 em(e,n,a={}){const s=Di(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(l2(e,s,a)):()=>Promise.resolve(),c=e.variantChildren&&e.variantChildren.size?(h=0)=>{const{delayChildren:p=0,staggerChildren:g,staggerDirection:v}=o;return nR(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 nR(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(em(h,n,{...c,delay:a+(typeof s=="function"?0:s)+u2(e.variantChildren,h,s,o,u)}).then(()=>h.notify("AnimationComplete",n)));return Promise.all(f)}function rR(e,n,a={}){e.notify("AnimationStart",n);let s;if(Array.isArray(n)){const o=n.map(u=>em(e,u,a));s=Promise.all(o)}else if(typeof n=="string")s=em(e,n,a);else{const o=typeof n=="function"?Di(e,n,a.custom):n;s=Promise.all(l2(e,o,a))}return s.then(()=>{e.notify("AnimationComplete",n)})}function c2(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 aR=Im.length;function d2(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?d2(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const n={};for(let a=0;a<aR;a++){const s=Im[a],o=e.props[s];(yo(o)||o===!1)&&(n[s]=o)}return n}const iR=[...Hm].reverse(),sR=Hm.length;function oR(e){return n=>Promise.all(n.map(({animation:a,options:s})=>rR(e,a,s)))}function lR(e){let n=oR(e),a=Cx(),s=!0;const o=h=>(p,g)=>{const v=Di(e,g,h==="exit"?e.presenceContext?.custom:void 0);if(v){const{transition:w,transitionEnd:T,..._}=v;p={...p,..._,...T}}return p};function u(h){n=h(e)}function c(h){const{props:p}=e,g=d2(e.parent)||{},v=[],w=new Set;let T={},_=1/0;for(let N=0;N<sR;N++){const E=iR[N],M=a[E],L=p[E]!==void 0?p[E]:g[E],G=yo(L),A=E===h?M.isActive:null;A===!1&&(_=N);let z=L===g[E]&&L!==p[E]&&G;if(z&&s&&e.manuallyAnimateOnMount&&(z=!1),M.protectedKeys={...T},!M.isActive&&A===null||!L&&!M.prevProp||oc(L)||typeof L=="boolean")continue;const F=uR(M.prevProp,L);let V=F||E===h&&M.isActive&&!z&&G||N>_&&G,D=!1;const R=Array.isArray(L)?L:[L];let W=R.reduce(o(E),{});A===!1&&(W={});const{prevResolvedValues:P={}}=M,I={...P,...W},j=b=>{V=!0,w.has(b)&&(D=!0,w.delete(b)),M.needsAnimating[b]=!0;const ce=e.getValue(b);ce&&(ce.liveStyle=!1)};for(const b in I){const ce=W[b],H=P[b];if(T.hasOwnProperty(b))continue;let x=!1;$h(ce)&&$h(H)?x=!c2(ce,H):x=ce!==H,x?ce!=null?j(b):w.add(b):ce!==void 0&&w.has(b)?j(b):M.protectedKeys[b]=!0}M.prevProp=L,M.prevResolvedValues=W,M.isActive&&(T={...T,...W}),s&&e.blockInitialAnimation&&(V=!1);const Z=z&&F;V&&(!Z||D)&&v.push(...R.map(b=>{const ce={type:E};if(typeof b=="string"&&s&&!Z&&e.manuallyAnimateOnMount&&e.parent){const{parent:H}=e,x=Di(H,b);if(H.enteringChildren&&x){const{delayChildren:k}=x.transition||{};ce.delay=u2(H.enteringChildren,e,k)}}return{animation:b,options:ce}}))}if(w.size){const N={};if(typeof p.initial!="boolean"){const E=Di(e,Array.isArray(p.initial)?p.initial[0]:p.initial);E&&E.transition&&(N.transition=E.transition)}w.forEach(E=>{const M=e.getBaseTarget(E),L=e.getValue(E);L&&(L.liveStyle=!0),N[E]=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=Cx(),s=!0}}}function uR(e,n){return typeof n=="string"?n!==e:Array.isArray(n)?!c2(n,e):!1}function ba(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Cx(){return{animate:ba(!0),whileInView:ba(),whileHover:ba(),whileTap:ba(),whileDrag:ba(),whileFocus:ba(),exit:ba()}}class ta{constructor(n){this.isMounted=!1,this.node=n}update(){}}class cR extends ta{constructor(n){super(n),n.animationState||(n.animationState=lR(n))}updateAnimationControlsSubscription(){const{animate:n}=this.node.getProps();oc(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 dR=0;class fR extends ta{constructor(){super(...arguments),this.id=dR++}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 hR={animation:{Feature:cR},exit:{Feature:fR}};function xo(e,n,a,s={passive:!0}){return e.addEventListener(n,a,s),()=>e.removeEventListener(n,a)}function Do(e){return{point:{x:e.pageX,y:e.pageY}}}const mR=e=>n=>Vm(n)&&e(n,Do(n));function ao(e,n,a,s){return xo(e,n,mR(a),s)}const f2=1e-4,pR=1-f2,gR=1+f2,h2=.01,yR=0-h2,vR=0+h2;function Yt(e){return e.max-e.min}function xR(e,n,a){return Math.abs(e-n)<=a}function Dx(e,n,a,s=.5){e.origin=s,e.originPoint=ct(n.min,n.max,e.origin),e.scale=Yt(a)/Yt(n),e.translate=ct(a.min,a.max,e.origin)-e.originPoint,(e.scale>=pR&&e.scale<=gR||isNaN(e.scale))&&(e.scale=1),(e.translate>=yR&&e.translate<=vR||isNaN(e.translate))&&(e.translate=0)}function io(e,n,a,s){Dx(e.x,n.x,a.x,s?s.originX:void 0),Dx(e.y,n.y,a.y,s?s.originY:void 0)}function Mx(e,n,a){e.min=a.min+n.min,e.max=e.min+Yt(n)}function bR(e,n,a){Mx(e.x,n.x,a.x),Mx(e.y,n.y,a.y)}function Lx(e,n,a){e.min=n.min-a.min,e.max=e.min+Yt(n)}function so(e,n,a){Lx(e.x,n.x,a.x),Lx(e.y,n.y,a.y)}function An(e){return[e("x"),e("y")]}const m2=({current:e})=>e?e.ownerDocument.defaultView:null,Px=(e,n)=>Math.abs(e-n);function wR(e,n){const a=Px(e.x,n.x),s=Px(e.y,n.y);return Math.sqrt(a**2+s**2)}class p2{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 w=ch(this.lastMoveEventInfo,this.history),T=this.startEvent!==null,_=wR(w.offset,{x:0,y:0})>=this.distanceThreshold;if(!T&&!_)return;const{point:S}=w,{timestamp:N}=Mt;this.history.push({...S,timestamp:N});const{onStart:E,onMove:M}=this.handlers;T||(E&&E(this.lastMoveEvent,w),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,w)},this.handlePointerMove=(w,T)=>{this.lastMoveEvent=w,this.lastMoveEventInfo=uh(T,this.transformPagePoint),st.update(this.updatePoint,!0)},this.handlePointerUp=(w,T)=>{this.end();const{onEnd:_,onSessionEnd:S,resumeAnimation:N}=this.handlers;if(this.dragSnapToOrigin&&N&&N(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=ch(w.type==="pointercancel"?this.lastMoveEventInfo:uh(T,this.transformPagePoint),this.history);this.startEvent&&_&&_(w,E),S&&S(w,E)},!Vm(n))return;this.dragSnapToOrigin=u,this.handlers=a,this.transformPagePoint=s,this.distanceThreshold=c,this.contextWindow=o||window;const f=Do(n),h=uh(f,this.transformPagePoint),{point:p}=h,{timestamp:g}=Mt;this.history=[{...p,timestamp:g}];const{onSessionStart:v}=a;v&&v(n,ch(h,this.history)),this.removeListeners=ko(ao(this.contextWindow,"pointermove",this.handlePointerMove),ao(this.contextWindow,"pointerup",this.handlePointerUp),ao(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(n){this.handlers=n}end(){this.removeListeners&&this.removeListeners(),Wr(this.updatePoint)}}function uh(e,n){return n?{point:n(e.point)}:e}function zx(e,n){return{x:e.x-n.x,y:e.y-n.y}}function ch({point:e},n){return{point:e,delta:zx(e,g2(n)),offset:zx(e,SR(n)),velocity:jR(n,.1)}}function SR(e){return e[0]}function g2(e){return e[e.length-1]}function jR(e,n){if(e.length<2)return{x:0,y:0};let a=e.length-1,s=null;const o=g2(e);for(;a>=0&&(s=e[a],!(o.timestamp-s.timestamp>Xn(n)));)a--;if(!s)return{x:0,y:0};const u=Zn(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 TR(e,{min:n,max:a},s){return n!==void 0&&e<n?e=s?ct(n,e,s.min):Math.max(e,n):a!==void 0&&e>a&&(e=s?ct(a,e,s.max):Math.min(e,a)),e}function Ux(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 ER(e,{top:n,left:a,bottom:s,right:o}){return{x:Ux(e.x,a,o),y:Ux(e.y,n,s)}}function Bx(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 AR(e,n){return{x:Bx(e.x,n.x),y:Bx(e.y,n.y)}}function NR(e,n){let a=.5;const s=Yt(e),o=Yt(n);return o>s?a=mo(n.min,n.max-s,e.min):s>o&&(a=mo(e.min,e.max-o,n.min)),xr(0,1,a)}function _R(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 tm=.35;function OR(e=tm){return e===!1?e=0:e===!0&&(e=tm),{x:Fx(e,"left","right"),y:Fx(e,"top","bottom")}}function Fx(e,n,a){return{min:Vx(e,n),max:Vx(e,a)}}function Vx(e,n){return typeof e=="number"?e:e[n]||0}const kR=new WeakMap;class RR{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=vt(),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:w}=this.getProps();w?this.pauseAnimation():this.stopAnimation(),a&&this.snapToCursor(Do(v).point)},c=(v,w)=>{const{drag:T,dragPropagation:_,onDragStart:S}=this.getProps();if(T&&!_&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Hk(T),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=w,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),An(E=>{let M=this.getAxisMotionValue(E).get()||0;if(Wn.test(M)){const{projection:L}=this.visualElement;if(L&&L.layout){const G=L.layout.layoutBox[E];G&&(M=Yt(G)*(parseFloat(M)/100))}}this.originPoint[E]=M}),S&&st.postRender(()=>S(v,w)),Jh(this.visualElement,"transform");const{animationState:N}=this.visualElement;N&&N.setActive("whileDrag",!0)},f=(v,w)=>{this.latestPointerEvent=v,this.latestPanInfo=w;const{dragPropagation:T,dragDirectionLock:_,onDirectionLock:S,onDrag:N}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:E}=w;if(_&&this.currentDirection===null){this.currentDirection=CR(E),this.currentDirection!==null&&S&&S(this.currentDirection);return}this.updateAxis("x",w.point,E),this.updateAxis("y",w.point,E),this.visualElement.render(),N&&N(v,w)},h=(v,w)=>{this.latestPointerEvent=v,this.latestPanInfo=w,this.stop(v,w),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 p2(n,{onSessionStart:u,onStart:c,onMove:f,onSessionEnd:h,resumeAnimation:p},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:g,distanceThreshold:s,contextWindow:m2(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&&st.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||!tu(n,o,this.currentDirection))return;const u=this.getAxisMotionValue(n);let c=this.originPoint[n]+s[n];this.constraints&&this.constraints[n]&&(c=TR(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&&Ei(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&s?this.constraints=ER(s.layoutBox,n):this.constraints=!1,this.elastic=OR(a),o!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&An(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=_R(s.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:n,onMeasureDragConstraints:a}=this.getProps();if(!n||!Ei(n))return!1;const s=n.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const u=D6(s,o.root,this.visualElement.getTransformPagePoint());let c=AR(o.layout.layoutBox,u);if(a){const f=a(k6(c));this.hasMutatedConstraints=!!f,f&&(c=Jw(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(!tu(g,a,this.currentDirection))return;let v=h&&h[g]||{};c&&(v={min:0,max:0});const w=o?200:1e6,T=o?40:1e7,_={type:"inertia",velocity:s?n[g]:0,bounceStiffness:w,bounceDamping:T,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 Jh(this.visualElement,n),s.start(Wm(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(!tu(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]-ct(c,f,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:n,dragConstraints:a}=this.getProps(),{projection:s}=this.visualElement;if(!Ei(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]=NR({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(!tu(c,n,null))return;const f=this.getAxisMotionValue(c),{min:h,max:p}=this.constraints[c];f.set(ct(h,p,o[c]))})}addListeners(){if(!this.visualElement.current)return;kR.set(this.visualElement,this);const n=this.visualElement.current,a=ao(n,"pointerdown",h=>{const{drag:p,dragListener:g=!0}=this.getProps();p&&g&&this.start(h)}),s=()=>{const{dragConstraints:h}=this.getProps();Ei(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()),st.read(s);const c=xo(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=tm,dragMomentum:f=!0}=n;return{...n,drag:a,dragDirectionLock:s,dragPropagation:o,dragConstraints:u,dragElastic:c,dragMomentum:f}}}function tu(e,n,a){return(n===!0||n===e)&&(a===null||a===e)}function CR(e,n=10){let a=null;return Math.abs(e.y)>n?a="y":Math.abs(e.x)>n&&(a="x"),a}class DR extends ta{constructor(n){super(n),this.removeGroupControls=_n,this.removeListeners=_n,this.controls=new RR(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 Hx=e=>(n,a)=>{e&&st.postRender(()=>e(n,a))};class MR extends ta{constructor(){super(...arguments),this.removePointerDownListener=_n}onPointerDown(n){this.session=new p2(n,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:m2(this.node)})}createPanHandlers(){const{onPanSessionStart:n,onPanStart:a,onPan:s,onPanEnd:o}=this.node.getProps();return{onSessionStart:Hx(n),onStart:Hx(a),onMove:s,onEnd:(u,c)=>{delete this.session,o&&st.postRender(()=>o(u,c))}}}mount(){this.removePointerDownListener=ao(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 vu={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Ix(e,n){return n.max===n.min?0:e/(n.max-n.min)*100}const Zs={correct:(e,n)=>{if(!n.target)return e;if(typeof e=="string")if(Ue.test(e))e=parseFloat(e);else return e;const a=Ix(e,n.target.x),s=Ix(e,n.target.y);return`${a}% ${s}%`}},LR={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=ct(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 dh=!1;class PR extends X.Component{componentDidMount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:s,layoutId:o}=this.props,{projection:u}=n;a6(zR),u&&(a.group&&a.group.add(u),s&&s.register&&o&&s.register(u),dh&&u.root.didUpdate(),u.addEventListener("animationComplete",()=>{this.safeToRemove()}),u.setOptions({...u.options,onExitComplete:()=>this.safeToRemove()})),vu.hasEverUpdated=!0}getSnapshotBeforeUpdate(n){const{layoutDependency:a,visualElement:s,drag:o,isPresent:u}=this.props,{projection:c}=s;return c&&(c.isPresent=u,dh=!0,o||n.layoutDependency!==a||a===void 0||n.isPresent!==u?c.willUpdate():this.safeToRemove(),n.isPresent!==u&&(u?c.promote():c.relegate()||st.postRender(()=>{const f=c.getStack();(!f||!f.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:n}=this.props.visualElement;n&&(n.root.didUpdate(),Fm.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:n,layoutGroup:a,switchLayoutGroup:s}=this.props,{projection:o}=n;dh=!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 y2(e){const[n,a]=Qk(),s=X.useContext(Z1);return d.jsx(PR,{...e,layoutGroup:s,switchLayoutGroup:X.useContext(Qw),isPresent:n,safeToRemove:a})}const zR={borderRadius:{...Zs,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Zs,borderTopRightRadius:Zs,borderBottomLeftRadius:Zs,borderBottomRightRadius:Zs,boxShadow:LR};function UR(e,n,a){const s=Vt(e)?e:zi(e);return s.start(Wm("",s,n,a)),s.animation}const BR=(e,n)=>e.depth-n.depth;class FR{constructor(){this.children=[],this.isDirty=!1}add(n){wm(this.children,n),this.isDirty=!0}remove(n){Sm(this.children,n),this.isDirty=!0}forEach(n){this.isDirty&&this.children.sort(BR),this.isDirty=!1,this.children.forEach(n)}}function VR(e,n){const a=Jt.now(),s=({timestamp:o})=>{const u=o-a;u>=n&&(Wr(s),e(u-n))};return st.setup(s,!0),()=>Wr(s)}const v2=["TopLeft","TopRight","BottomLeft","BottomRight"],HR=v2.length,qx=e=>typeof e=="string"?parseFloat(e):e,Gx=e=>typeof e=="number"||Ue.test(e);function IR(e,n,a,s,o,u){o?(e.opacity=ct(0,a.opacity??1,qR(s)),e.opacityExit=ct(n.opacity??1,0,GR(s))):u&&(e.opacity=ct(n.opacity??1,a.opacity??1,s));for(let c=0;c<HR;c++){const f=`border${v2[c]}Radius`;let h=Yx(n,f),p=Yx(a,f);if(h===void 0&&p===void 0)continue;h||(h=0),p||(p=0),h===0||p===0||Gx(h)===Gx(p)?(e[f]=Math.max(ct(qx(h),qx(p),s),0),(Wn.test(p)||Wn.test(h))&&(e[f]+="%")):e[f]=p}(n.rotate||a.rotate)&&(e.rotate=ct(n.rotate||0,a.rotate||0,s))}function Yx(e,n){return e[n]!==void 0?e[n]:e.borderRadius}const qR=x2(0,.5,sw),GR=x2(.5,.95,_n);function x2(e,n,a){return s=>s<e?0:s>n?1:a(mo(e,n,s))}function Kx(e,n){e.min=n.min,e.max=n.max}function En(e,n){Kx(e.x,n.x),Kx(e.y,n.y)}function Xx(e,n){e.translate=n.translate,e.scale=n.scale,e.originPoint=n.originPoint,e.origin=n.origin}function Zx(e,n,a,s,o){return e-=n,e=zu(e,1/a,s),o!==void 0&&(e=zu(e,1/o,s)),e}function YR(e,n=0,a=1,s=.5,o,u=e,c=e){if(Wn.test(n)&&(n=parseFloat(n),n=ct(c.min,c.max,n/100)-c.min),typeof n!="number")return;let f=ct(u.min,u.max,s);e===u&&(f-=n),e.min=Zx(e.min,n,a,f,o),e.max=Zx(e.max,n,a,f,o)}function Wx(e,n,[a,s,o],u,c){YR(e,n[a],n[s],n[o],n.scale,u,c)}const KR=["x","scaleX","originX"],XR=["y","scaleY","originY"];function Qx(e,n,a,s){Wx(e.x,n,KR,a?a.x:void 0,s?s.x:void 0),Wx(e.y,n,XR,a?a.y:void 0,s?s.y:void 0)}function $x(e){return e.translate===0&&e.scale===1}function b2(e){return $x(e.x)&&$x(e.y)}function Jx(e,n){return e.min===n.min&&e.max===n.max}function ZR(e,n){return Jx(e.x,n.x)&&Jx(e.y,n.y)}function eb(e,n){return Math.round(e.min)===Math.round(n.min)&&Math.round(e.max)===Math.round(n.max)}function w2(e,n){return eb(e.x,n.x)&&eb(e.y,n.y)}function tb(e){return Yt(e.x)/Yt(e.y)}function nb(e,n){return e.translate===n.translate&&e.scale===n.scale&&e.originPoint===n.originPoint}class WR{constructor(){this.members=[]}add(n){wm(this.members,n),n.scheduleRender()}remove(n){if(Sm(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 QR(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:w,skewX:T,skewY:_}=a;p&&(s=`perspective(${p}px) ${s}`),g&&(s+=`rotate(${g}deg) `),v&&(s+=`rotateX(${v}deg) `),w&&(s+=`rotateY(${w}deg) `),T&&(s+=`skewX(${T}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 fh=["","X","Y","Z"],$R=1e3;let JR=0;function hh(e,n,a,s){const{latestValues:o}=n;o[e]&&(a[e]=o[e],n.setStaticValue(e,0),s&&(s[e]=0))}function S2(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:n}=e.options;if(!n)return;const a=o2(n);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:o,layoutId:u}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",st,!(o||u))}const{parent:s}=e;s&&!s.hasCheckedOptimisedAppear&&S2(s)}function j2({attachResizeListener:e,defaultParent:n,measureScroll:a,checkIsScrollRoot:s,resetTransform:o}){return class{constructor(c={},f=n?.()){this.id=JR++,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(nC),this.nodes.forEach(sC),this.nodes.forEach(oC),this.nodes.forEach(rC)},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 FR)}addEventListener(c,f){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new Em),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=Uw(c)&&!Xk(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 w=()=>this.root.updateBlockedByResize=!1;st.read(()=>{v=window.innerWidth}),e(c,()=>{const T=window.innerWidth;T!==v&&(v=T,this.root.updateBlockedByResize=!0,g&&g(),g=VR(w,250),vu.hasAnimatedSinceResize&&(vu.hasAnimatedSinceResize=!1,this.nodes.forEach(ib)))})}f&&this.root.registerSharedNode(f,this),this.options.animate!==!1&&p&&(f||h)&&this.addEventListener("didUpdate",({delta:g,hasLayoutChanged:v,hasRelativeLayoutChanged:w,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const _=this.options.transition||p.getDefaultTransition()||fC,{onLayoutAnimationStart:S,onLayoutAnimationComplete:N}=p.getProps(),E=!this.targetLayout||!w2(this.targetLayout,T),M=!v&&w;if(this.options.layoutRoot||this.resumeFrom||M||v&&(E||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const L={...Um(_,"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||ib(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}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(),Wr(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(lC),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&&S2(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(rb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ab);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(iC),this.nodes.forEach(eC),this.nodes.forEach(tC)):this.nodes.forEach(ab),this.clearAllSnapshots();const f=Jt.now();Mt.delta=xr(0,1e3/60,f-Mt.timestamp),Mt.timestamp=f,Mt.isProcessing=!0,th.update.process(Mt),th.preRender.process(Mt),th.render.process(Mt),Mt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fm.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(aC),this.sharedNodes.forEach(uC)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,st.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){st.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Yt(this.snapshot.measuredBox.x)&&!Yt(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=vt(),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&&!b2(this.projectionDelta),h=this.getTransformTemplate(),p=h?h(this.latestValues,""):void 0,g=p!==this.prevTransformTemplateValue;c&&this.instance&&(f||Sa(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)),hC(h),{animationId:this.root.animationId,measuredBox:f,layoutBox:h,latestValues:{},source:this.id}}measurePageBox(){const{visualElement:c}=this.options;if(!c)return vt();const f=c.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(mC))){const{scroll:p}=this.root;p&&(Ai(f.x,p.offset.x),Ai(f.y,p.offset.y))}return f}removeElementScroll(c){const f=vt();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),Ai(f.x,g.offset.x),Ai(f.y,g.offset.y))}return f}applyTransform(c,f=!1){const h=vt();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&&Ni(h,{x:-g.scroll.offset.x,y:-g.scroll.offset.y}),Sa(g.latestValues)&&Ni(h,g.latestValues)}return Sa(this.latestValues)&&Ni(h,this.latestValues),h}removeTransform(c){const f=vt();En(f,c);for(let h=0;h<this.path.length;h++){const p=this.path[h];if(!p.instance||!Sa(p.latestValues))continue;Zh(p.latestValues)&&p.updateSnapshot();const g=vt(),v=p.measurePageBox();En(g,v),Qx(f,p.latestValues,p.snapshot?p.snapshot.layoutBox:void 0,g)}return Sa(this.latestValues)&&Qx(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!==Mt.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=Mt.timestamp,!this.targetDelta&&!this.relativeTarget){const w=this.getClosestProjectingParent();w&&w.layout&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=vt(),this.relativeTargetOrigin=vt(),so(this.relativeTargetOrigin,this.layout.layoutBox,w.layout.layoutBox),En(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=vt(),this.targetWithTransforms=vt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),bR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):En(this.target,this.layout.layoutBox),t2(this.target,this.targetDelta)):En(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget)){this.attemptToResolveRelativeTarget=!1;const w=this.getClosestProjectingParent();w&&!!w.resumingFrom==!!this.resumingFrom&&!w.options.layoutScroll&&w.target&&this.animationProgress!==1?(this.relativeParent=w,this.forceRelativeParentToResolveTarget(),this.relativeTarget=vt(),this.relativeTargetOrigin=vt(),so(this.relativeTargetOrigin,this.target,w.target),En(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}}}getClosestProjectingParent(){if(!(!this.parent||Zh(this.parent.latestValues)||e2(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===Mt.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,w=this.treeScale.y;C6(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=vt());const{target:T}=c;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Xx(this.prevProjectionDelta.x,this.projectionDelta.x),Xx(this.prevProjectionDelta.y,this.projectionDelta.y)),io(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==w||!nb(this.projectionDelta.x,this.prevProjectionDelta.x)||!nb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}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=_i(),this.projectionDelta=_i(),this.projectionDeltaWithTransform=_i()}setAnimationOrigin(c,f=!1){const h=this.snapshot,p=h?h.latestValues:{},g={...this.latestValues},v=_i();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!f;const w=vt(),T=h?h.source:void 0,_=this.layout?this.layout.source:void 0,S=T!==_,N=this.getStack(),E=!N||N.members.length<=1,M=!!(S&&!E&&this.options.crossfade===!0&&!this.path.some(dC));this.animationProgress=0;let L;this.mixTargetDelta=G=>{const A=G/1e3;sb(v.x,c.x,A),sb(v.y,c.y,A),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(so(w,this.layout.layoutBox,this.relativeParent.layout.layoutBox),cC(this.relativeTarget,this.relativeTargetOrigin,w,A),L&&ZR(this.relativeTarget,L)&&(this.isProjectionDirty=!1),L||(L=vt()),En(L,this.relativeTarget)),S&&(this.animationValues=g,IR(g,p,this.latestValues,A,M,E)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){this.notifyListeners("animationStart"),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&(Wr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=st.update(()=>{vu.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=zi(0)),this.currentAnimation=UR(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($R),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&&T2(this.options.animationType,this.layout.layoutBox,p.layoutBox)){h=this.target||vt();const v=Yt(this.layout.layoutBox.x);h.x.min=c.target.x.min,h.x.max=h.x.min+v;const w=Yt(this.layout.layoutBox.y);h.y.min=c.target.y.min,h.y.max=h.y.min+w}En(f,h),Ni(f,g),io(this.projectionDeltaWithTransform,this.layoutCorrected,f,g)}}registerSharedNode(c,f){this.sharedNodes.has(c)||this.sharedNodes.set(c,new WR),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&&hh("z",c,p,this.animationValues);for(let g=0;g<fh.length;g++)hh(`rotate${fh[g]}`,c,p,this.animationValues),hh(`skew${fh[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=yu(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=yu(f?.pointerEvents)||""),this.hasProjected&&!Sa(this.latestValues)&&(c.transform=h?h({},""):"none",this.hasProjected=!1);return}c.visibility="";const g=p.animationValues||p.latestValues;this.applyTransformsToTarget();let v=QR(this.projectionDeltaWithTransform,this.treeScale,g);h&&(v=h(g,v)),c.transform=v;const{x:w,y:T}=this.projectionDelta;c.transformOrigin=`${w.origin*100}% ${T.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 vo){if(g[_]===void 0)continue;const{correct:S,applyTo:N,isCSSVariable:E}=vo[_],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 E?this.options.visualElement.renderState.vars[_]=M:c[_]=M}this.options.layoutId&&(c.pointerEvents=p===this?yu(f?.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>c.currentAnimation?.stop()),this.root.nodes.forEach(rb),this.root.sharedNodes.clear()}}}function eC(e){e.updateLayout()}function tC(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],w=Yt(v);v.min=a[g].min,v.max=v.min+w}):T2(o,n.layoutBox,a)&&An(g=>{const v=u?n.measuredBox[g]:n.layoutBox[g],w=Yt(a[g]);v.max=v.min+w,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[g].max=e.relativeTarget[g].min+w)});const c=_i();io(c,a,n.layoutBox);const f=_i();u?io(f,e.applyTransform(s,!0),n.measuredBox):io(f,a,n.layoutBox);const h=!b2(c);let p=!1;if(!e.resumeFrom){const g=e.getClosestProjectingParent();if(g&&!g.resumeFrom){const{snapshot:v,layout:w}=g;if(v&&w){const T=vt();so(T,n.layoutBox,v.layoutBox);const _=vt();so(_,a,w.layoutBox),w2(T,_)||(p=!0),g.options.layoutRoot&&(e.relativeTarget=_,e.relativeTargetOrigin=T,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 nC(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 rC(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function aC(e){e.clearSnapshot()}function rb(e){e.clearMeasurements()}function ab(e){e.isLayoutDirty=!1}function iC(e){const{visualElement:n}=e.options;n&&n.getProps().onBeforeLayoutMeasure&&n.notify("BeforeLayoutMeasure"),e.resetTransform()}function ib(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function sC(e){e.resolveTargetDelta()}function oC(e){e.calcProjection()}function lC(e){e.resetSkewAndRotation()}function uC(e){e.removeLeadSnapshot()}function sb(e,n,a){e.translate=ct(n.translate,0,a),e.scale=ct(n.scale,1,a),e.origin=n.origin,e.originPoint=n.originPoint}function ob(e,n,a,s){e.min=ct(n.min,a.min,s),e.max=ct(n.max,a.max,s)}function cC(e,n,a,s){ob(e.x,n.x,a.x,s),ob(e.y,n.y,a.y,s)}function dC(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const fC={duration:.45,ease:[.4,0,.1,1]},lb=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),ub=lb("applewebkit/")&&!lb("chrome/")?Math.round:_n;function cb(e){e.min=ub(e.min),e.max=ub(e.max)}function hC(e){cb(e.x),cb(e.y)}function T2(e,n,a){return e==="position"||e==="preserve-aspect"&&!xR(tb(n),tb(a),.2)}function mC(e){return e!==e.root&&e.scroll?.wasRoot}const pC=j2({attachResizeListener:(e,n)=>xo(e,"resize",n),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),mh={current:void 0},E2=j2({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!mh.current){const e=new pC({});e.mount(window),e.setOptions({layoutScroll:!0}),mh.current=e}return mh.current},resetTransform:(e,n)=>{e.style.transform=n!==void 0?n:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),gC={pan:{Feature:MR},drag:{Feature:DR,ProjectionNode:E2,MeasureLayout:y2}};function db(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&&st.postRender(()=>u(n,Do(n)))}class yC extends ta{mount(){const{current:n}=this.node;n&&(this.unmount=Ik(n,(a,s)=>(db(this.node,s,"Start"),o=>db(this.node,o,"End"))))}unmount(){}}class vC extends ta{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=ko(xo(this.node.current,"focus",()=>this.onFocus()),xo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function fb(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&&st.postRender(()=>u(n,Do(n)))}class xC extends ta{mount(){const{current:n}=this.node;n&&(this.unmount=Kk(n,(a,s)=>(fb(this.node,s,"Start"),(o,{success:u})=>fb(this.node,o,u?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const nm=new WeakMap,ph=new WeakMap,bC=e=>{const n=nm.get(e.target);n&&n(e)},wC=e=>{e.forEach(bC)};function SC({root:e,...n}){const a=e||document;ph.has(a)||ph.set(a,{});const s=ph.get(a),o=JSON.stringify(n);return s[o]||(s[o]=new IntersectionObserver(wC,{root:e,...n})),s[o]}function jC(e,n,a){const s=SC(n);return nm.set(e,a),s.observe(e),()=>{nm.delete(e),s.unobserve(e)}}const TC={some:0,all:1};class EC extends ta{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:TC[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(),w=p?g:v;w&&w(h)};return jC(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(AC(n,a))&&this.startObserver()}unmount(){}}function AC({viewport:e={}},{viewport:n={}}={}){return a=>e[a]!==n[a]}const NC={inView:{Feature:EC},tap:{Feature:xC},focus:{Feature:vC},hover:{Feature:yC}},_C={layout:{ProjectionNode:E2,MeasureLayout:y2}},OC={...hR,...NC,...gC,..._C},kC=O6(OC,H6),RC=({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(kC.div,{initial:{width:0},animate:{width:`${s}%`},transition:{duration:1.2},className:"h-full bg-yellow-400"})})]})};function CC(){const[e,n]=X.useState("3 Days 4 Hours");X.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(RC,{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 hb=({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 DC(){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]=X.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(hb,{label:"PGP Progress",value:e.value,max:e.max}),d.jsx(hb,{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 Uu(){return Uu=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},Uu.apply(this,arguments)}function MC(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 LC=["cdnSuffix","cdnUrl","countryCode","style","svg"],PC="https://cdn.jsdelivr.net/gh/lipis/flag-icons/flags/4x3/",zC="svg",UC=127397,nu=function(n){var a=n.cdnSuffix,s=a===void 0?zC:a,o=n.cdnUrl,u=o===void 0?PC:o,c=n.countryCode,f=n.style,h=n.svg,p=h===void 0?!1:h,g=MC(n,LC);if(typeof c!="string")return null;if(p){var v=""+u+c.toLowerCase()+"."+s;return X.createElement("img",Object.assign({},g,{src:v,style:Uu({display:"inline-block",width:"1em",height:"1em",verticalAlign:"middle"},f)}))}var w=c.toUpperCase().replace(/./g,function(T){return String.fromCodePoint(T.charCodeAt(0)+UC)});return X.createElement("span",Object.assign({role:"img"},g,{style:Uu({display:"inline-block",fontSize:"1em",lineHeight:"1em",verticalAlign:"middle"},f)}),w)};const BC=({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 FC(){const[e]=X.useState({rank:"Warrior",rankNumber:2,country:"Pakistan",countryCode:"PK",progress:50,racePosition:17}),[n]=X.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]=X.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(nu,{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(nu,{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(BC,{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(nu,{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(nu,{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 mb=["/login","/signup","/forgot-password","/reset-password"];function VC(){const e=$r(),n=Rn(),a=bt(s1),s=bt(dm),o=bt(CE),u=mb.includes(n.pathname);return X.useEffect(()=>{console.log("App - Initializing session sync"),e(wv()),console.log("App - Session info:",Ie.getSessionInfo())},[e]),X.useEffect(()=>{a&&!s?(console.log("App - Token exists but not authenticated, checking current user"),e(Oi())):console.log(a&&s?"App - User is already authenticated":"App - No token found, user not authenticated")},[e,a,s]),X.useEffect(()=>{const c=f=>{console.log("App - Session cleared event received:",f.detail),e(wv()),s&&!mb.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]),X.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(xN,{}),d.jsxs(_A,{children:[d.jsx(yt,{path:"/",element:d.jsx(W_,{})})," ",d.jsx(yt,{path:"/about",element:d.jsx(n5,{})}),d.jsx(yt,{path:"/services",element:d.jsx(T5,{})}),d.jsx(yt,{path:"/team",element:d.jsx(k5,{})}),d.jsx(yt,{path:"/contact",element:d.jsx(C5,{})}),d.jsx(yt,{path:"/faqs",element:d.jsx(V5,{})}),d.jsx(yt,{path:"/login",element:d.jsx(H5,{})}),d.jsx(yt,{path:"/signup",element:d.jsx(q5,{})}),d.jsx(yt,{path:"/forgot-password",element:o||localStorage.getItem("signup_email")?d.jsx(Bf,{to:"/reset-password",replace:!0}):d.jsx(G5,{})}),d.jsx(yt,{path:"/reset-password",element:d.jsx(Y5,{})}),d.jsx(yt,{path:"/mlm",element:d.jsx(ex,{})}),d.jsx(yt,{path:"/ddr",element:d.jsx(W5,{})}),d.jsx(yt,{path:"/crr",element:d.jsx(Q5,{})}),d.jsx(yt,{path:"/bbr",element:d.jsx(CC,{})}),d.jsx(yt,{path:"/hlr",element:d.jsx(DC,{})}),d.jsx(yt,{path:"/RegionalAmbassador",element:d.jsx(FC,{})}),d.jsx(yt,{path:"/tree",element:d.jsx(X5,{})}),d.jsx(yt,{path:"/user-tree/:userId",element:d.jsx(ex,{})}),d.jsx(yt,{path:"/profile",element:s?d.jsx(Z5,{}):d.jsx(Bf,{to:"/login",replace:!0})}),d.jsx(yt,{path:"*",element:d.jsx(Bf,{to:"/",replace:!0})})]}),!u&&d.jsx(DN,{})]})}function HC(){return d.jsx($A,{children:d.jsx(lN,{children:d.jsx(VC,{})})})}const IC=()=>{const e=Qs.get("auth_token"),n=localStorage.getItem("auth_token"),a=Ie.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=$u(a),o=a1(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("========================")},qC=()=>{const e=Ie.getToken();console.log("=== LOGOUT REQUEST TEST ==="),console.log("Token to send:",e),console.log("Authorization header:",`Bearer ${e}`),console.log("===========================")},GC=async()=>{const e=Ie.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}}},YC=async()=>{const e=Ie.getToken();console.log("=== REFERRAL TREE ENDPOINT TEST ===");try{const n=$u(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}}},KC=()=>{console.log("=== MANUAL LOGOUT ==="),Ie.clearSession(),console.log("Session cleared"),window.location.reload()};typeof window<"u"&&(window.debugTokenStatus=IC,window.testLogoutRequest=qC,window.testCurrentUserEndpoint=GC,window.testReferralTreeEndpoint=YC,window.manualLogout=KC);K3.createRoot(document.getElementById("root")).render(d.jsx(X.StrictMode,{children:d.jsxs(c4,{store:zE,children:[d.jsx(HC,{}),d.jsx(aj,{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"}}}})]})}));