403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/b2bsite.hellogtx.com/react/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bsite.hellogtx.com/react/index-CsFgBzYE.js
function YO(e,t){for(var n=0;n<t.length;n++){const a=t[n];if(typeof a!="string"&&!Array.isArray(a)){for(const o in a)if(o!=="default"&&!(o in e)){const i=Object.getOwnPropertyDescriptor(a,o);i&&Object.defineProperty(e,o,i.get?i:{enumerable:!0,get:()=>a[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))a(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const l of i.addedNodes)l.tagName==="LINK"&&l.rel==="modulepreload"&&a(l)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function a(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();function Di(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function WO(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function a(){var o=!1;try{o=this instanceof a}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(a){var o=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(n,a,o.get?o:{enumerable:!0,get:function(){return e[a]}})}),n}var Sy={exports:{}},eu={};/**
 * @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 $N;function XO(){if($N)return eu;$N=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function n(a,o,i){var l=null;if(i!==void 0&&(l=""+i),o.key!==void 0&&(l=""+o.key),"key"in o){i={};for(var u in o)u!=="key"&&(i[u]=o[u])}else i=o;return o=i.ref,{$$typeof:e,type:a,key:l,ref:o!==void 0?o:null,props:i}}return eu.Fragment=t,eu.jsx=n,eu.jsxs=n,eu}var TN;function KO(){return TN||(TN=1,Sy.exports=XO()),Sy.exports}var p=KO(),Ny={exports:{}},tu={},wy={exports:{}},Ey={};/**
 * @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 _N;function QO(){return _N||(_N=1,(function(e){function t(I,F){var V=I.length;I.push(F);e:for(;0<V;){var W=V-1>>>1,U=I[W];if(0<o(U,F))I[W]=F,I[V]=U,V=W;else break e}}function n(I){return I.length===0?null:I[0]}function a(I){if(I.length===0)return null;var F=I[0],V=I.pop();if(V!==F){I[0]=V;e:for(var W=0,U=I.length,P=U>>>1;W<P;){var Y=2*(W+1)-1,K=I[Y],Q=Y+1,ee=I[Q];if(0>o(K,V))Q<U&&0>o(ee,K)?(I[W]=ee,I[Q]=V,W=Q):(I[W]=K,I[Y]=V,W=Y);else if(Q<U&&0>o(ee,V))I[W]=ee,I[Q]=V,W=Q;else break e}}return F}function o(I,F){var V=I.sortIndex-F.sortIndex;return V!==0?V:I.id-F.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var l=Date,u=l.now();e.unstable_now=function(){return l.now()-u}}var d=[],f=[],m=1,g=null,y=3,b=!1,x=!1,S=!1,w=!1,N=typeof setTimeout=="function"?setTimeout:null,T=typeof clearTimeout=="function"?clearTimeout:null,A=typeof setImmediate<"u"?setImmediate:null;function R(I){for(var F=n(f);F!==null;){if(F.callback===null)a(f);else if(F.startTime<=I)a(f),F.sortIndex=F.expirationTime,t(d,F);else break;F=n(f)}}function E(I){if(S=!1,R(I),!x)if(n(d)!==null)x=!0,$||($=!0,H());else{var F=n(f);F!==null&&M(E,F.startTime-I)}}var $=!1,_=-1,k=5,q=-1;function z(){return w?!0:!(e.unstable_now()-q<k)}function D(){if(w=!1,$){var I=e.unstable_now();q=I;var F=!0;try{e:{x=!1,S&&(S=!1,T(_),_=-1),b=!0;var V=y;try{t:{for(R(I),g=n(d);g!==null&&!(g.expirationTime>I&&z());){var W=g.callback;if(typeof W=="function"){g.callback=null,y=g.priorityLevel;var U=W(g.expirationTime<=I);if(I=e.unstable_now(),typeof U=="function"){g.callback=U,R(I),F=!0;break t}g===n(d)&&a(d),R(I)}else a(d);g=n(d)}if(g!==null)F=!0;else{var P=n(f);P!==null&&M(E,P.startTime-I),F=!1}}break e}finally{g=null,y=V,b=!1}F=void 0}}finally{F?H():$=!1}}}var H;if(typeof A=="function")H=function(){A(D)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,j=O.port2;O.port1.onmessage=D,H=function(){j.postMessage(null)}}else H=function(){N(D,0)};function M(I,F){_=N(function(){I(e.unstable_now())},F)}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(I){I.callback=null},e.unstable_forceFrameRate=function(I){0>I||125<I?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):k=0<I?Math.floor(1e3/I):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(I){switch(y){case 1:case 2:case 3:var F=3;break;default:F=y}var V=y;y=F;try{return I()}finally{y=V}},e.unstable_requestPaint=function(){w=!0},e.unstable_runWithPriority=function(I,F){switch(I){case 1:case 2:case 3:case 4:case 5:break;default:I=3}var V=y;y=I;try{return F()}finally{y=V}},e.unstable_scheduleCallback=function(I,F,V){var W=e.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?W+V:W):V=W,I){case 1:var U=-1;break;case 2:U=250;break;case 5:U=1073741823;break;case 4:U=1e4;break;default:U=5e3}return U=V+U,I={id:m++,callback:F,priorityLevel:I,startTime:V,expirationTime:U,sortIndex:-1},V>W?(I.sortIndex=V,t(f,I),n(d)===null&&I===n(f)&&(S?(T(_),_=-1):S=!0,M(E,V-W))):(I.sortIndex=U,t(d,I),x||b||(x=!0,$||($=!0,H()))),I},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(I){var F=y;return function(){var V=y;y=F;try{return I.apply(this,arguments)}finally{y=V}}}})(Ey)),Ey}var AN;function ZO(){return AN||(AN=1,wy.exports=QO()),wy.exports}var $y={exports:{}},it={};/**
 * @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 DN;function JO(){if(DN)return it;DN=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),g=Symbol.for("react.activity"),y=Symbol.iterator;function b(P){return P===null||typeof P!="object"?null:(P=y&&P[y]||P["@@iterator"],typeof P=="function"?P:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,w={};function N(P,Y,K){this.props=P,this.context=Y,this.refs=w,this.updater=K||x}N.prototype.isReactComponent={},N.prototype.setState=function(P,Y){if(typeof P!="object"&&typeof P!="function"&&P!=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,P,Y,"setState")},N.prototype.forceUpdate=function(P){this.updater.enqueueForceUpdate(this,P,"forceUpdate")};function T(){}T.prototype=N.prototype;function A(P,Y,K){this.props=P,this.context=Y,this.refs=w,this.updater=K||x}var R=A.prototype=new T;R.constructor=A,S(R,N.prototype),R.isPureReactComponent=!0;var E=Array.isArray;function $(){}var _={H:null,A:null,T:null,S:null},k=Object.prototype.hasOwnProperty;function q(P,Y,K){var Q=K.ref;return{$$typeof:e,type:P,key:Y,ref:Q!==void 0?Q:null,props:K}}function z(P,Y){return q(P.type,Y,P.props)}function D(P){return typeof P=="object"&&P!==null&&P.$$typeof===e}function H(P){var Y={"=":"=0",":":"=2"};return"$"+P.replace(/[=:]/g,function(K){return Y[K]})}var O=/\/+/g;function j(P,Y){return typeof P=="object"&&P!==null&&P.key!=null?H(""+P.key):Y.toString(36)}function M(P){switch(P.status){case"fulfilled":return P.value;case"rejected":throw P.reason;default:switch(typeof P.status=="string"?P.then($,$):(P.status="pending",P.then(function(Y){P.status==="pending"&&(P.status="fulfilled",P.value=Y)},function(Y){P.status==="pending"&&(P.status="rejected",P.reason=Y)})),P.status){case"fulfilled":return P.value;case"rejected":throw P.reason}}throw P}function I(P,Y,K,Q,ee){var G=typeof P;(G==="undefined"||G==="boolean")&&(P=null);var oe=!1;if(P===null)oe=!0;else switch(G){case"bigint":case"string":case"number":oe=!0;break;case"object":switch(P.$$typeof){case e:case t:oe=!0;break;case m:return oe=P._init,I(oe(P._payload),Y,K,Q,ee)}}if(oe)return ee=ee(P),oe=Q===""?"."+j(P,0):Q,E(ee)?(K="",oe!=null&&(K=oe.replace(O,"$&/")+"/"),I(ee,Y,K,"",function(Se){return Se})):ee!=null&&(D(ee)&&(ee=z(ee,K+(ee.key==null||P&&P.key===ee.key?"":(""+ee.key).replace(O,"$&/")+"/")+oe)),Y.push(ee)),1;oe=0;var ye=Q===""?".":Q+":";if(E(P))for(var me=0;me<P.length;me++)Q=P[me],G=ye+j(Q,me),oe+=I(Q,Y,K,G,ee);else if(me=b(P),typeof me=="function")for(P=me.call(P),me=0;!(Q=P.next()).done;)Q=Q.value,G=ye+j(Q,me++),oe+=I(Q,Y,K,G,ee);else if(G==="object"){if(typeof P.then=="function")return I(M(P),Y,K,Q,ee);throw Y=String(P),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(P).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return oe}function F(P,Y,K){if(P==null)return P;var Q=[],ee=0;return I(P,Q,"","",function(G){return Y.call(K,G,ee++)}),Q}function V(P){if(P._status===-1){var Y=P._result;Y=Y(),Y.then(function(K){(P._status===0||P._status===-1)&&(P._status=1,P._result=K)},function(K){(P._status===0||P._status===-1)&&(P._status=2,P._result=K)}),P._status===-1&&(P._status=0,P._result=Y)}if(P._status===1)return P._result.default;throw P._result}var W=typeof reportError=="function"?reportError:function(P){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof P=="object"&&P!==null&&typeof P.message=="string"?String(P.message):String(P),error:P});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",P);return}console.error(P)},U={map:F,forEach:function(P,Y,K){F(P,function(){Y.apply(this,arguments)},K)},count:function(P){var Y=0;return F(P,function(){Y++}),Y},toArray:function(P){return F(P,function(Y){return Y})||[]},only:function(P){if(!D(P))throw Error("React.Children.only expected to receive a single React element child.");return P}};return it.Activity=g,it.Children=U,it.Component=N,it.Fragment=n,it.Profiler=o,it.PureComponent=A,it.StrictMode=a,it.Suspense=d,it.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=_,it.__COMPILER_RUNTIME={__proto__:null,c:function(P){return _.H.useMemoCache(P)}},it.cache=function(P){return function(){return P.apply(null,arguments)}},it.cacheSignal=function(){return null},it.cloneElement=function(P,Y,K){if(P==null)throw Error("The argument must be a React element, but you passed "+P+".");var Q=S({},P.props),ee=P.key;if(Y!=null)for(G in Y.key!==void 0&&(ee=""+Y.key),Y)!k.call(Y,G)||G==="key"||G==="__self"||G==="__source"||G==="ref"&&Y.ref===void 0||(Q[G]=Y[G]);var G=arguments.length-2;if(G===1)Q.children=K;else if(1<G){for(var oe=Array(G),ye=0;ye<G;ye++)oe[ye]=arguments[ye+2];Q.children=oe}return q(P.type,ee,Q)},it.createContext=function(P){return P={$$typeof:l,_currentValue:P,_currentValue2:P,_threadCount:0,Provider:null,Consumer:null},P.Provider=P,P.Consumer={$$typeof:i,_context:P},P},it.createElement=function(P,Y,K){var Q,ee={},G=null;if(Y!=null)for(Q in Y.key!==void 0&&(G=""+Y.key),Y)k.call(Y,Q)&&Q!=="key"&&Q!=="__self"&&Q!=="__source"&&(ee[Q]=Y[Q]);var oe=arguments.length-2;if(oe===1)ee.children=K;else if(1<oe){for(var ye=Array(oe),me=0;me<oe;me++)ye[me]=arguments[me+2];ee.children=ye}if(P&&P.defaultProps)for(Q in oe=P.defaultProps,oe)ee[Q]===void 0&&(ee[Q]=oe[Q]);return q(P,G,ee)},it.createRef=function(){return{current:null}},it.forwardRef=function(P){return{$$typeof:u,render:P}},it.isValidElement=D,it.lazy=function(P){return{$$typeof:m,_payload:{_status:-1,_result:P},_init:V}},it.memo=function(P,Y){return{$$typeof:f,type:P,compare:Y===void 0?null:Y}},it.startTransition=function(P){var Y=_.T,K={};_.T=K;try{var Q=P(),ee=_.S;ee!==null&&ee(K,Q),typeof Q=="object"&&Q!==null&&typeof Q.then=="function"&&Q.then($,W)}catch(G){W(G)}finally{Y!==null&&K.types!==null&&(Y.types=K.types),_.T=Y}},it.unstable_useCacheRefresh=function(){return _.H.useCacheRefresh()},it.use=function(P){return _.H.use(P)},it.useActionState=function(P,Y,K){return _.H.useActionState(P,Y,K)},it.useCallback=function(P,Y){return _.H.useCallback(P,Y)},it.useContext=function(P){return _.H.useContext(P)},it.useDebugValue=function(){},it.useDeferredValue=function(P,Y){return _.H.useDeferredValue(P,Y)},it.useEffect=function(P,Y){return _.H.useEffect(P,Y)},it.useEffectEvent=function(P){return _.H.useEffectEvent(P)},it.useId=function(){return _.H.useId()},it.useImperativeHandle=function(P,Y,K){return _.H.useImperativeHandle(P,Y,K)},it.useInsertionEffect=function(P,Y){return _.H.useInsertionEffect(P,Y)},it.useLayoutEffect=function(P,Y){return _.H.useLayoutEffect(P,Y)},it.useMemo=function(P,Y){return _.H.useMemo(P,Y)},it.useOptimistic=function(P,Y){return _.H.useOptimistic(P,Y)},it.useReducer=function(P,Y,K){return _.H.useReducer(P,Y,K)},it.useRef=function(P){return _.H.useRef(P)},it.useState=function(P){return _.H.useState(P)},it.useSyncExternalStore=function(P,Y,K){return _.H.useSyncExternalStore(P,Y,K)},it.useTransition=function(){return _.H.useTransition()},it.version="19.2.0",it}var jN;function ji(){return jN||(jN=1,$y.exports=JO()),$y.exports}var Ty={exports:{}},Wn={};/**
 * @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 RN;function eI(){if(RN)return Wn;RN=1;var e=ji();function t(d){var f="https://react.dev/errors/"+d;if(1<arguments.length){f+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)f+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+d+"; visit "+f+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var a={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");function i(d,f,m){var g=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:g==null?null:""+g,children:d,containerInfo:f,implementation:m}}var l=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(d,f){if(d==="font")return"";if(typeof f=="string")return f==="use-credentials"?f:""}return Wn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,Wn.createPortal=function(d,f){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!f||f.nodeType!==1&&f.nodeType!==9&&f.nodeType!==11)throw Error(t(299));return i(d,f,null,m)},Wn.flushSync=function(d){var f=l.T,m=a.p;try{if(l.T=null,a.p=2,d)return d()}finally{l.T=f,a.p=m,a.d.f()}},Wn.preconnect=function(d,f){typeof d=="string"&&(f?(f=f.crossOrigin,f=typeof f=="string"?f==="use-credentials"?f:"":void 0):f=null,a.d.C(d,f))},Wn.prefetchDNS=function(d){typeof d=="string"&&a.d.D(d)},Wn.preinit=function(d,f){if(typeof d=="string"&&f&&typeof f.as=="string"){var m=f.as,g=u(m,f.crossOrigin),y=typeof f.integrity=="string"?f.integrity:void 0,b=typeof f.fetchPriority=="string"?f.fetchPriority:void 0;m==="style"?a.d.S(d,typeof f.precedence=="string"?f.precedence:void 0,{crossOrigin:g,integrity:y,fetchPriority:b}):m==="script"&&a.d.X(d,{crossOrigin:g,integrity:y,fetchPriority:b,nonce:typeof f.nonce=="string"?f.nonce:void 0})}},Wn.preinitModule=function(d,f){if(typeof d=="string")if(typeof f=="object"&&f!==null){if(f.as==null||f.as==="script"){var m=u(f.as,f.crossOrigin);a.d.M(d,{crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0})}}else f==null&&a.d.M(d)},Wn.preload=function(d,f){if(typeof d=="string"&&typeof f=="object"&&f!==null&&typeof f.as=="string"){var m=f.as,g=u(m,f.crossOrigin);a.d.L(d,m,{crossOrigin:g,integrity:typeof f.integrity=="string"?f.integrity:void 0,nonce:typeof f.nonce=="string"?f.nonce:void 0,type:typeof f.type=="string"?f.type:void 0,fetchPriority:typeof f.fetchPriority=="string"?f.fetchPriority:void 0,referrerPolicy:typeof f.referrerPolicy=="string"?f.referrerPolicy:void 0,imageSrcSet:typeof f.imageSrcSet=="string"?f.imageSrcSet:void 0,imageSizes:typeof f.imageSizes=="string"?f.imageSizes:void 0,media:typeof f.media=="string"?f.media:void 0})}},Wn.preloadModule=function(d,f){if(typeof d=="string")if(f){var m=u(f.as,f.crossOrigin);a.d.m(d,{as:typeof f.as=="string"&&f.as!=="script"?f.as:void 0,crossOrigin:m,integrity:typeof f.integrity=="string"?f.integrity:void 0})}else a.d.m(d)},Wn.requestFormReset=function(d){a.d.r(d)},Wn.unstable_batchedUpdates=function(d,f){return d(f)},Wn.useFormState=function(d,f,m){return l.H.useFormState(d,f,m)},Wn.useFormStatus=function(){return l.H.useHostTransitionStatus()},Wn.version="19.2.0",Wn}var ON;function B$(){if(ON)return Ty.exports;ON=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ty.exports=eI(),Ty.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 IN;function tI(){if(IN)return tu;IN=1;var e=ZO(),t=ji(),n=B$();function a(r){var s="https://react.dev/errors/"+r;if(1<arguments.length){s+="?args[]="+encodeURIComponent(arguments[1]);for(var c=2;c<arguments.length;c++)s+="&args[]="+encodeURIComponent(arguments[c])}return"Minified React error #"+r+"; visit "+s+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function i(r){var s=r,c=r;if(r.alternate)for(;s.return;)s=s.return;else{r=s;do s=r,(s.flags&4098)!==0&&(c=s.return),r=s.return;while(r)}return s.tag===3?c:null}function l(r){if(r.tag===13){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function u(r){if(r.tag===31){var s=r.memoizedState;if(s===null&&(r=r.alternate,r!==null&&(s=r.memoizedState)),s!==null)return s.dehydrated}return null}function d(r){if(i(r)!==r)throw Error(a(188))}function f(r){var s=r.alternate;if(!s){if(s=i(r),s===null)throw Error(a(188));return s!==r?null:r}for(var c=r,h=s;;){var v=c.return;if(v===null)break;var C=v.alternate;if(C===null){if(h=v.return,h!==null){c=h;continue}break}if(v.child===C.child){for(C=v.child;C;){if(C===c)return d(v),r;if(C===h)return d(v),s;C=C.sibling}throw Error(a(188))}if(c.return!==h.return)c=v,h=C;else{for(var L=!1,X=v.child;X;){if(X===c){L=!0,c=v,h=C;break}if(X===h){L=!0,h=v,c=C;break}X=X.sibling}if(!L){for(X=C.child;X;){if(X===c){L=!0,c=C,h=v;break}if(X===h){L=!0,h=C,c=v;break}X=X.sibling}if(!L)throw Error(a(189))}}if(c.alternate!==h)throw Error(a(190))}if(c.tag!==3)throw Error(a(188));return c.stateNode.current===c?r:s}function m(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r;for(r=r.child;r!==null;){if(s=m(r),s!==null)return s;r=r.sibling}return null}var g=Object.assign,y=Symbol.for("react.element"),b=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),T=Symbol.for("react.consumer"),A=Symbol.for("react.context"),R=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),_=Symbol.for("react.memo"),k=Symbol.for("react.lazy"),q=Symbol.for("react.activity"),z=Symbol.for("react.memo_cache_sentinel"),D=Symbol.iterator;function H(r){return r===null||typeof r!="object"?null:(r=D&&r[D]||r["@@iterator"],typeof r=="function"?r:null)}var O=Symbol.for("react.client.reference");function j(r){if(r==null)return null;if(typeof r=="function")return r.$$typeof===O?null:r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case S:return"Fragment";case N:return"Profiler";case w:return"StrictMode";case E:return"Suspense";case $:return"SuspenseList";case q:return"Activity"}if(typeof r=="object")switch(r.$$typeof){case x:return"Portal";case A:return r.displayName||"Context";case T:return(r._context.displayName||"Context")+".Consumer";case R:var s=r.render;return r=r.displayName,r||(r=s.displayName||s.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case _:return s=r.displayName||null,s!==null?s:j(r.type)||"Memo";case k:s=r._payload,r=r._init;try{return j(r(s))}catch{}}return null}var M=Array.isArray,I=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,F=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},W=[],U=-1;function P(r){return{current:r}}function Y(r){0>U||(r.current=W[U],W[U]=null,U--)}function K(r,s){U++,W[U]=r.current,r.current=s}var Q=P(null),ee=P(null),G=P(null),oe=P(null);function ye(r,s){switch(K(G,s),K(ee,r),K(Q,null),s.nodeType){case 9:case 11:r=(r=s.documentElement)&&(r=r.namespaceURI)?XS(r):0;break;default:if(r=s.tagName,s=s.namespaceURI)s=XS(s),r=KS(s,r);else switch(r){case"svg":r=1;break;case"math":r=2;break;default:r=0}}Y(Q),K(Q,r)}function me(){Y(Q),Y(ee),Y(G)}function Se(r){r.memoizedState!==null&&K(oe,r);var s=Q.current,c=KS(s,r.type);s!==c&&(K(ee,r),K(Q,c))}function Be(r){ee.current===r&&(Y(Q),Y(ee)),oe.current===r&&(Y(oe),Kc._currentValue=V)}var ae,ge;function fe(r){if(ae===void 0)try{throw Error()}catch(c){var s=c.stack.trim().match(/\n( *(at )?)/);ae=s&&s[1]||"",ge=-1<c.stack.indexOf(`
    at`)?" (<anonymous>)":-1<c.stack.indexOf("@")?"@unknown:0:0":""}return`
`+ae+r+ge}var qe=!1;function re(r,s){if(!r||qe)return"";qe=!0;var c=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(s){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 ue=he}Reflect.construct(r,[],we)}else{try{we.call()}catch(he){ue=he}r.call(we.prototype)}}else{try{throw Error()}catch(he){ue=he}(we=r())&&typeof we.catch=="function"&&we.catch(function(){})}}catch(he){if(he&&ue&&typeof he.stack=="string")return[he.stack,ue.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var v=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");v&&v.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var C=h.DetermineComponentFrameRoot(),L=C[0],X=C[1];if(L&&X){var te=L.split(`
`),le=X.split(`
`);for(v=h=0;h<te.length&&!te[h].includes("DetermineComponentFrameRoot");)h++;for(;v<le.length&&!le[v].includes("DetermineComponentFrameRoot");)v++;if(h===te.length||v===le.length)for(h=te.length-1,v=le.length-1;1<=h&&0<=v&&te[h]!==le[v];)v--;for(;1<=h&&0<=v;h--,v--)if(te[h]!==le[v]){if(h!==1||v!==1)do if(h--,v--,0>v||te[h]!==le[v]){var Ce=`
`+te[h].replace(" at new "," at ");return r.displayName&&Ce.includes("<anonymous>")&&(Ce=Ce.replace("<anonymous>",r.displayName)),Ce}while(1<=h&&0<=v);break}}}finally{qe=!1,Error.prepareStackTrace=c}return(c=r?r.displayName||r.name:"")?fe(c):""}function xe(r,s){switch(r.tag){case 26:case 27:case 5:return fe(r.type);case 16:return fe("Lazy");case 13:return r.child!==s&&s!==null?fe("Suspense Fallback"):fe("Suspense");case 19:return fe("SuspenseList");case 0:case 15:return re(r.type,!1);case 11:return re(r.type.render,!1);case 1:return re(r.type,!0);case 31:return fe("Activity");default:return""}}function Te(r){try{var s="",c=null;do s+=xe(r,c),c=r,r=r.return;while(r);return s}catch(h){return`
Error generating stack: `+h.message+`
`+h.stack}}var be=Object.prototype.hasOwnProperty,ve=e.unstable_scheduleCallback,pe=e.unstable_cancelCallback,_e=e.unstable_shouldYield,Pe=e.unstable_requestPaint,$e=e.unstable_now,je=e.unstable_getCurrentPriorityLevel,He=e.unstable_ImmediatePriority,Ae=e.unstable_UserBlockingPriority,Me=e.unstable_NormalPriority,Je=e.unstable_LowPriority,dt=e.unstable_IdlePriority,Re=e.log,Z=e.unstable_setDisableYieldValue,ot=null,vt=null;function tt(r){if(typeof Re=="function"&&Z(r),vt&&typeof vt.setStrictMode=="function")try{vt.setStrictMode(ot,r)}catch{}}var ft=Math.clz32?Math.clz32:Zn,ir=Math.log,tn=Math.LN2;function Zn(r){return r>>>=0,r===0?32:31-(ir(r)/tn|0)|0}var nn=256,Jn=262144,wn=4194304;function ln(r){var s=r&42;if(s!==0)return s;switch(r&-r){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:return r&261888;case 262144:case 524288:case 1048576:case 2097152:return r&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return r&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return r}}function vr(r,s,c){var h=r.pendingLanes;if(h===0)return 0;var v=0,C=r.suspendedLanes,L=r.pingedLanes;r=r.warmLanes;var X=h&134217727;return X!==0?(h=X&~C,h!==0?v=ln(h):(L&=X,L!==0?v=ln(L):c||(c=X&~r,c!==0&&(v=ln(c))))):(X=h&~C,X!==0?v=ln(X):L!==0?v=ln(L):c||(c=h&~r,c!==0&&(v=ln(c)))),v===0?0:s!==0&&s!==v&&(s&C)===0&&(C=v&-v,c=s&-s,C>=c||C===32&&(c&4194048)!==0)?s:v}function zn(r,s){return(r.pendingLanes&~(r.suspendedLanes&~r.pingedLanes)&s)===0}function Hn(r,s){switch(r){case 1:case 2:case 4:case 8:case 64:return s+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 s+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 oa(){var r=wn;return wn<<=1,(wn&62914560)===0&&(wn=4194304),r}function lr(r){for(var s=[],c=0;31>c;c++)s.push(r);return s}function cr(r,s){r.pendingLanes|=s,s!==268435456&&(r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0)}function Wa(r,s,c,h,v,C){var L=r.pendingLanes;r.pendingLanes=c,r.suspendedLanes=0,r.pingedLanes=0,r.warmLanes=0,r.expiredLanes&=c,r.entangledLanes&=c,r.errorRecoveryDisabledLanes&=c,r.shellSuspendCounter=0;var X=r.entanglements,te=r.expirationTimes,le=r.hiddenUpdates;for(c=L&~c;0<c;){var Ce=31-ft(c),we=1<<Ce;X[Ce]=0,te[Ce]=-1;var ue=le[Ce];if(ue!==null)for(le[Ce]=null,Ce=0;Ce<ue.length;Ce++){var he=ue[Ce];he!==null&&(he.lane&=-536870913)}c&=~we}h!==0&&ks(r,h,0),C!==0&&v===0&&r.tag!==0&&(r.suspendedLanes|=C&~(L&~s))}function ks(r,s,c){r.pendingLanes|=s,r.suspendedLanes&=~s;var h=31-ft(s);r.entangledLanes|=s,r.entanglements[h]=r.entanglements[h]|1073741824|c&261930}function pt(r,s){var c=r.entangledLanes|=s;for(r=r.entanglements;c;){var h=31-ft(c),v=1<<h;v&s|r[h]&s&&(r[h]|=s),c&=~v}}function Ft(r,s){var c=s&-s;return c=(c&42)!==0?1:Ye(c),(c&(r.suspendedLanes|s))!==0?0:c}function Ye(r){switch(r){case 2:r=1;break;case 8:r=4;break;case 32:r=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:r=128;break;case 268435456:r=134217728;break;default:r=0}return r}function nt(r){return r&=-r,2<r?8<r?(r&134217727)!==0?32:268435456:8:2}function ic(){var r=F.p;return r!==0?r:(r=window.event,r===void 0?32:vN(r.type))}function ia(r,s){var c=F.p;try{return F.p=r,s()}finally{F.p=c}}var kr=Math.random().toString(36).slice(2),yn="__reactFiber$"+kr,Tn="__reactProps$"+kr,la="__reactContainer$"+kr,Ms="__reactEvents$"+kr,lc="__reactListeners$"+kr,xm="__reactHandles$"+kr,Lo="__reactResources$"+kr,Bo="__reactMarker$"+kr;function J(r){delete r[yn],delete r[Tn],delete r[Ms],delete r[lc],delete r[xm]}function ce(r){var s=r[yn];if(s)return s;for(var c=r.parentNode;c;){if(s=c[la]||c[yn]){if(c=s.alternate,s.child!==null||c!==null&&c.child!==null)for(r=rN(r);r!==null;){if(c=r[yn])return c;r=rN(r)}return s}r=c,c=r.parentNode}return null}function Ee(r){if(r=r[yn]||r[la]){var s=r.tag;if(s===5||s===6||s===13||s===31||s===26||s===27||s===3)return r}return null}function Oe(r){var s=r.tag;if(s===5||s===26||s===27||s===6)return r.stateNode;throw Error(a(33))}function Ve(r){var s=r[Lo];return s||(s=r[Lo]={hoistableStyles:new Map,hoistableScripts:new Map}),s}function ze(r){r[Bo]=!0}var st=new Set,Ut={};function Rt(r,s){_t(r,s),_t(r+"Capture",s)}function _t(r,s){for(Ut[r]=s,r=0;r<s.length;r++)st.add(s[r])}var Dt=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]*$"),er={},bn={};function fn(r){return be.call(bn,r)?!0:be.call(er,r)?!1:Dt.test(r)?bn[r]=!0:(er[r]=!0,!1)}function rn(r,s,c){if(fn(s))if(c===null)r.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":r.removeAttribute(s);return;case"boolean":var h=s.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){r.removeAttribute(s);return}}r.setAttribute(s,""+c)}}function Un(r,s,c){if(c===null)r.removeAttribute(s);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(s);return}r.setAttribute(s,""+c)}}function Vn(r,s,c,h){if(h===null)r.removeAttribute(c);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":r.removeAttribute(c);return}r.setAttributeNS(s,c,""+h)}}function pn(r){switch(typeof r){case"bigint":case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function cc(r){var s=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(s==="checkbox"||s==="radio")}function $d(r,s,c){var h=Object.getOwnPropertyDescriptor(r.constructor.prototype,s);if(!r.hasOwnProperty(s)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var v=h.get,C=h.set;return Object.defineProperty(r,s,{configurable:!0,get:function(){return v.call(this)},set:function(L){c=""+L,C.call(this,L)}}),Object.defineProperty(r,s,{enumerable:h.enumerable}),{getValue:function(){return c},setValue:function(L){c=""+L},stopTracking:function(){r._valueTracker=null,delete r[s]}}}}function uc(r){if(!r._valueTracker){var s=cc(r)?"checked":"value";r._valueTracker=$d(r,s,""+r[s])}}function Td(r){if(!r)return!1;var s=r._valueTracker;if(!s)return!0;var c=s.getValue(),h="";return r&&(h=cc(r)?r.checked?"true":"false":r.value),r=h,r!==c?(s.setValue(r),!0):!1}function Ot(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}var Mt=/[\n"\\]/g;function Gn(r){return r.replace(Mt,function(s){return"\\"+s.charCodeAt(0).toString(16)+" "})}function ca(r,s,c,h,v,C,L,X){r.name="",L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"?r.type=L:r.removeAttribute("type"),s!=null?L==="number"?(s===0&&r.value===""||r.value!=s)&&(r.value=""+pn(s)):r.value!==""+pn(s)&&(r.value=""+pn(s)):L!=="submit"&&L!=="reset"||r.removeAttribute("value"),s!=null?On(r,L,pn(s)):c!=null?On(r,L,pn(c)):h!=null&&r.removeAttribute("value"),v==null&&C!=null&&(r.defaultChecked=!!C),v!=null&&(r.checked=v&&typeof v!="function"&&typeof v!="symbol"),X!=null&&typeof X!="function"&&typeof X!="symbol"&&typeof X!="boolean"?r.name=""+pn(X):r.removeAttribute("name")}function qo(r,s,c,h,v,C,L,X){if(C!=null&&typeof C!="function"&&typeof C!="symbol"&&typeof C!="boolean"&&(r.type=C),s!=null||c!=null){if(!(C!=="submit"&&C!=="reset"||s!=null)){uc(r);return}c=c!=null?""+pn(c):"",s=s!=null?""+pn(s):c,X||s===r.value||(r.value=s),r.defaultValue=s}h=h??v,h=typeof h!="function"&&typeof h!="symbol"&&!!h,r.checked=X?r.checked:!!h,r.defaultChecked=!!h,L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(r.name=L),uc(r)}function On(r,s,c){s==="number"&&Ot(r.ownerDocument)===r||r.defaultValue===""+c||(r.defaultValue=""+c)}function Yn(r,s,c,h){if(r=r.options,s){s={};for(var v=0;v<c.length;v++)s["$"+c[v]]=!0;for(c=0;c<r.length;c++)v=s.hasOwnProperty("$"+r[c].value),r[c].selected!==v&&(r[c].selected=v),v&&h&&(r[c].defaultSelected=!0)}else{for(c=""+pn(c),s=null,v=0;v<r.length;v++){if(r[v].value===c){r[v].selected=!0,h&&(r[v].defaultSelected=!0);return}s!==null||r[v].disabled||(s=r[v])}s!==null&&(s.selected=!0)}}function ua(r,s,c){if(s!=null&&(s=""+pn(s),s!==r.value&&(r.value=s),c==null)){r.defaultValue!==s&&(r.defaultValue=s);return}r.defaultValue=c!=null?""+pn(c):""}function Ps(r,s,c,h){if(s==null){if(h!=null){if(c!=null)throw Error(a(92));if(M(h)){if(1<h.length)throw Error(a(93));h=h[0]}c=h}c==null&&(c=""),s=c}c=pn(s),r.defaultValue=c,h=r.textContent,h===c&&h!==""&&h!==null&&(r.value=h),uc(r)}function da(r,s){if(s){var c=r.firstChild;if(c&&c===r.lastChild&&c.nodeType===3){c.nodeValue=s;return}}r.textContent=s}var Ls=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 fa(r,s,c){var h=s.indexOf("--")===0;c==null||typeof c=="boolean"||c===""?h?r.setProperty(s,""):s==="float"?r.cssFloat="":r[s]="":h?r.setProperty(s,c):typeof c!="number"||c===0||Ls.has(s)?s==="float"?r.cssFloat=c:r[s]=(""+c).trim():r[s]=c+"px"}function dc(r,s,c){if(s!=null&&typeof s!="object")throw Error(a(62));if(r=r.style,c!=null){for(var h in c)!c.hasOwnProperty(h)||s!=null&&s.hasOwnProperty(h)||(h.indexOf("--")===0?r.setProperty(h,""):h==="float"?r.cssFloat="":r[h]="");for(var v in s)h=s[v],s.hasOwnProperty(v)&&c[v]!==h&&fa(r,v,h)}else for(var C in s)s.hasOwnProperty(C)&&fa(r,C,s[C])}function Bs(r){if(r.indexOf("-")===-1)return!1;switch(r){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 fc=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"]]),Ii=/^[\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 Xa(r){return Ii.test(""+r)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":r}function Mr(){}var qs=null;function Fs(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var ki=null,Mi=null;function W1(r){var s=Ee(r);if(s&&(r=s.stateNode)){var c=r[Tn]||null;e:switch(r=s.stateNode,s.type){case"input":if(ca(r,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name),s=c.name,c.type==="radio"&&s!=null){for(c=r;c.parentNode;)c=c.parentNode;for(c=c.querySelectorAll('input[name="'+Gn(""+s)+'"][type="radio"]'),s=0;s<c.length;s++){var h=c[s];if(h!==r&&h.form===r.form){var v=h[Tn]||null;if(!v)throw Error(a(90));ca(h,v.value,v.defaultValue,v.defaultValue,v.checked,v.defaultChecked,v.type,v.name)}}for(s=0;s<c.length;s++)h=c[s],h.form===r.form&&Td(h)}break e;case"textarea":ua(r,c.value,c.defaultValue);break e;case"select":s=c.value,s!=null&&Yn(r,!!c.multiple,s,!1)}}}var Cm=!1;function X1(r,s,c){if(Cm)return r(s,c);Cm=!0;try{var h=r(s);return h}finally{if(Cm=!1,(ki!==null||Mi!==null)&&(mf(),ki&&(s=ki,r=Mi,Mi=ki=null,W1(s),r)))for(s=0;s<r.length;s++)W1(r[s])}}function pc(r,s){var c=r.stateNode;if(c===null)return null;var h=c[Tn]||null;if(h===null)return null;c=h[s];e:switch(s){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(r=r.type,h=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!h;break e;default:r=!1}if(r)return null;if(c&&typeof c!="function")throw Error(a(231,s,typeof c));return c}var Ka=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Sm=!1;if(Ka)try{var hc={};Object.defineProperty(hc,"passive",{get:function(){Sm=!0}}),window.addEventListener("test",hc,hc),window.removeEventListener("test",hc,hc)}catch{Sm=!1}var zs=null,Nm=null,_d=null;function K1(){if(_d)return _d;var r,s=Nm,c=s.length,h,v="value"in zs?zs.value:zs.textContent,C=v.length;for(r=0;r<c&&s[r]===v[r];r++);var L=c-r;for(h=1;h<=L&&s[c-h]===v[C-h];h++);return _d=v.slice(r,1<h?1-h:void 0)}function Ad(r){var s=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&s===13&&(r=13)):r=s,r===10&&(r=13),32<=r||r===13?r:0}function Dd(){return!0}function Q1(){return!1}function ur(r){function s(c,h,v,C,L){this._reactName=c,this._targetInst=v,this.type=h,this.nativeEvent=C,this.target=L,this.currentTarget=null;for(var X in r)r.hasOwnProperty(X)&&(c=r[X],this[X]=c?c(C):C[X]);return this.isDefaultPrevented=(C.defaultPrevented!=null?C.defaultPrevented:C.returnValue===!1)?Dd:Q1,this.isPropagationStopped=Q1,this}return g(s.prototype,{preventDefault:function(){this.defaultPrevented=!0;var c=this.nativeEvent;c&&(c.preventDefault?c.preventDefault():typeof c.returnValue!="unknown"&&(c.returnValue=!1),this.isDefaultPrevented=Dd)},stopPropagation:function(){var c=this.nativeEvent;c&&(c.stopPropagation?c.stopPropagation():typeof c.cancelBubble!="unknown"&&(c.cancelBubble=!0),this.isPropagationStopped=Dd)},persist:function(){},isPersistent:Dd}),s}var Fo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},jd=ur(Fo),mc=g({},Fo,{view:0,detail:0}),Vj=ur(mc),wm,Em,gc,Rd=g({},mc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tm,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==gc&&(gc&&r.type==="mousemove"?(wm=r.screenX-gc.screenX,Em=r.screenY-gc.screenY):Em=wm=0,gc=r),wm)},movementY:function(r){return"movementY"in r?r.movementY:Em}}),Z1=ur(Rd),Gj=g({},Rd,{dataTransfer:0}),Yj=ur(Gj),Wj=g({},mc,{relatedTarget:0}),$m=ur(Wj),Xj=g({},Fo,{animationName:0,elapsedTime:0,pseudoElement:0}),Kj=ur(Xj),Qj=g({},Fo,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),Zj=ur(Qj),Jj=g({},Fo,{data:0}),J1=ur(Jj),eR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},tR={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"},nR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function rR(r){var s=this.nativeEvent;return s.getModifierState?s.getModifierState(r):(r=nR[r])?!!s[r]:!1}function Tm(){return rR}var aR=g({},mc,{key:function(r){if(r.key){var s=eR[r.key]||r.key;if(s!=="Unidentified")return s}return r.type==="keypress"?(r=Ad(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?tR[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tm,charCode:function(r){return r.type==="keypress"?Ad(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?Ad(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),sR=ur(aR),oR=g({},Rd,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ex=ur(oR),iR=g({},mc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tm}),lR=ur(iR),cR=g({},Fo,{propertyName:0,elapsedTime:0,pseudoElement:0}),uR=ur(cR),dR=g({},Rd,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),fR=ur(dR),pR=g({},Fo,{newState:0,oldState:0}),hR=ur(pR),mR=[9,13,27,32],_m=Ka&&"CompositionEvent"in window,yc=null;Ka&&"documentMode"in document&&(yc=document.documentMode);var gR=Ka&&"TextEvent"in window&&!yc,tx=Ka&&(!_m||yc&&8<yc&&11>=yc),nx=" ",rx=!1;function ax(r,s){switch(r){case"keyup":return mR.indexOf(s.keyCode)!==-1;case"keydown":return s.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sx(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var Pi=!1;function yR(r,s){switch(r){case"compositionend":return sx(s);case"keypress":return s.which!==32?null:(rx=!0,nx);case"textInput":return r=s.data,r===nx&&rx?null:r;default:return null}}function bR(r,s){if(Pi)return r==="compositionend"||!_m&&ax(r,s)?(r=K1(),_d=Nm=zs=null,Pi=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(s.ctrlKey||s.altKey||s.metaKey)||s.ctrlKey&&s.altKey){if(s.char&&1<s.char.length)return s.char;if(s.which)return String.fromCharCode(s.which)}return null;case"compositionend":return tx&&s.locale!=="ko"?null:s.data;default:return null}}var vR={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 ox(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s==="input"?!!vR[r.type]:s==="textarea"}function ix(r,s,c,h){ki?Mi?Mi.push(h):Mi=[h]:ki=h,s=Sf(s,"onChange"),0<s.length&&(c=new jd("onChange","change",null,c,h),r.push({event:c,listeners:s}))}var bc=null,vc=null;function xR(r){HS(r,0)}function Od(r){var s=Oe(r);if(Td(s))return r}function lx(r,s){if(r==="change")return s}var cx=!1;if(Ka){var Am;if(Ka){var Dm="oninput"in document;if(!Dm){var ux=document.createElement("div");ux.setAttribute("oninput","return;"),Dm=typeof ux.oninput=="function"}Am=Dm}else Am=!1;cx=Am&&(!document.documentMode||9<document.documentMode)}function dx(){bc&&(bc.detachEvent("onpropertychange",fx),vc=bc=null)}function fx(r){if(r.propertyName==="value"&&Od(vc)){var s=[];ix(s,vc,r,Fs(r)),X1(xR,s)}}function CR(r,s,c){r==="focusin"?(dx(),bc=s,vc=c,bc.attachEvent("onpropertychange",fx)):r==="focusout"&&dx()}function SR(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return Od(vc)}function NR(r,s){if(r==="click")return Od(s)}function wR(r,s){if(r==="input"||r==="change")return Od(s)}function ER(r,s){return r===s&&(r!==0||1/r===1/s)||r!==r&&s!==s}var xr=typeof Object.is=="function"?Object.is:ER;function xc(r,s){if(xr(r,s))return!0;if(typeof r!="object"||r===null||typeof s!="object"||s===null)return!1;var c=Object.keys(r),h=Object.keys(s);if(c.length!==h.length)return!1;for(h=0;h<c.length;h++){var v=c[h];if(!be.call(s,v)||!xr(r[v],s[v]))return!1}return!0}function px(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function hx(r,s){var c=px(r);r=0;for(var h;c;){if(c.nodeType===3){if(h=r+c.textContent.length,r<=s&&h>=s)return{node:c,offset:s-r};r=h}e:{for(;c;){if(c.nextSibling){c=c.nextSibling;break e}c=c.parentNode}c=void 0}c=px(c)}}function mx(r,s){return r&&s?r===s?!0:r&&r.nodeType===3?!1:s&&s.nodeType===3?mx(r,s.parentNode):"contains"in r?r.contains(s):r.compareDocumentPosition?!!(r.compareDocumentPosition(s)&16):!1:!1}function gx(r){r=r!=null&&r.ownerDocument!=null&&r.ownerDocument.defaultView!=null?r.ownerDocument.defaultView:window;for(var s=Ot(r.document);s instanceof r.HTMLIFrameElement;){try{var c=typeof s.contentWindow.location.href=="string"}catch{c=!1}if(c)r=s.contentWindow;else break;s=Ot(r.document)}return s}function jm(r){var s=r&&r.nodeName&&r.nodeName.toLowerCase();return s&&(s==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||s==="textarea"||r.contentEditable==="true")}var $R=Ka&&"documentMode"in document&&11>=document.documentMode,Li=null,Rm=null,Cc=null,Om=!1;function yx(r,s,c){var h=c.window===c?c.document:c.nodeType===9?c:c.ownerDocument;Om||Li==null||Li!==Ot(h)||(h=Li,"selectionStart"in h&&jm(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),Cc&&xc(Cc,h)||(Cc=h,h=Sf(Rm,"onSelect"),0<h.length&&(s=new jd("onSelect","select",null,s,c),r.push({event:s,listeners:h}),s.target=Li)))}function zo(r,s){var c={};return c[r.toLowerCase()]=s.toLowerCase(),c["Webkit"+r]="webkit"+s,c["Moz"+r]="moz"+s,c}var Bi={animationend:zo("Animation","AnimationEnd"),animationiteration:zo("Animation","AnimationIteration"),animationstart:zo("Animation","AnimationStart"),transitionrun:zo("Transition","TransitionRun"),transitionstart:zo("Transition","TransitionStart"),transitioncancel:zo("Transition","TransitionCancel"),transitionend:zo("Transition","TransitionEnd")},Im={},bx={};Ka&&(bx=document.createElement("div").style,"AnimationEvent"in window||(delete Bi.animationend.animation,delete Bi.animationiteration.animation,delete Bi.animationstart.animation),"TransitionEvent"in window||delete Bi.transitionend.transition);function Ho(r){if(Im[r])return Im[r];if(!Bi[r])return r;var s=Bi[r],c;for(c in s)if(s.hasOwnProperty(c)&&c in bx)return Im[r]=s[c];return r}var vx=Ho("animationend"),xx=Ho("animationiteration"),Cx=Ho("animationstart"),TR=Ho("transitionrun"),_R=Ho("transitionstart"),AR=Ho("transitioncancel"),Sx=Ho("transitionend"),Nx=new Map,km="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(" ");km.push("scrollEnd");function pa(r,s){Nx.set(r,s),Rt(s,[r])}var Id=typeof reportError=="function"?reportError:function(r){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var s=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof r=="object"&&r!==null&&typeof r.message=="string"?String(r.message):String(r),error:r});if(!window.dispatchEvent(s))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",r);return}console.error(r)},Pr=[],qi=0,Mm=0;function kd(){for(var r=qi,s=Mm=qi=0;s<r;){var c=Pr[s];Pr[s++]=null;var h=Pr[s];Pr[s++]=null;var v=Pr[s];Pr[s++]=null;var C=Pr[s];if(Pr[s++]=null,h!==null&&v!==null){var L=h.pending;L===null?v.next=v:(v.next=L.next,L.next=v),h.pending=v}C!==0&&wx(c,v,C)}}function Md(r,s,c,h){Pr[qi++]=r,Pr[qi++]=s,Pr[qi++]=c,Pr[qi++]=h,Mm|=h,r.lanes|=h,r=r.alternate,r!==null&&(r.lanes|=h)}function Pm(r,s,c,h){return Md(r,s,c,h),Pd(r)}function Uo(r,s){return Md(r,null,null,s),Pd(r)}function wx(r,s,c){r.lanes|=c;var h=r.alternate;h!==null&&(h.lanes|=c);for(var v=!1,C=r.return;C!==null;)C.childLanes|=c,h=C.alternate,h!==null&&(h.childLanes|=c),C.tag===22&&(r=C.stateNode,r===null||r._visibility&1||(v=!0)),r=C,C=C.return;return r.tag===3?(C=r.stateNode,v&&s!==null&&(v=31-ft(c),r=C.hiddenUpdates,h=r[v],h===null?r[v]=[s]:h.push(s),s.lane=c|536870912),C):null}function Pd(r){if(50<Hc)throw Hc=0,Gg=null,Error(a(185));for(var s=r.return;s!==null;)r=s,s=r.return;return r.tag===3?r.stateNode:null}var Fi={};function DR(r,s,c,h){this.tag=r,this.key=c,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=s,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Cr(r,s,c,h){return new DR(r,s,c,h)}function Lm(r){return r=r.prototype,!(!r||!r.isReactComponent)}function Qa(r,s){var c=r.alternate;return c===null?(c=Cr(r.tag,s,r.key,r.mode),c.elementType=r.elementType,c.type=r.type,c.stateNode=r.stateNode,c.alternate=r,r.alternate=c):(c.pendingProps=s,c.type=r.type,c.flags=0,c.subtreeFlags=0,c.deletions=null),c.flags=r.flags&65011712,c.childLanes=r.childLanes,c.lanes=r.lanes,c.child=r.child,c.memoizedProps=r.memoizedProps,c.memoizedState=r.memoizedState,c.updateQueue=r.updateQueue,s=r.dependencies,c.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext},c.sibling=r.sibling,c.index=r.index,c.ref=r.ref,c.refCleanup=r.refCleanup,c}function Ex(r,s){r.flags&=65011714;var c=r.alternate;return c===null?(r.childLanes=0,r.lanes=s,r.child=null,r.subtreeFlags=0,r.memoizedProps=null,r.memoizedState=null,r.updateQueue=null,r.dependencies=null,r.stateNode=null):(r.childLanes=c.childLanes,r.lanes=c.lanes,r.child=c.child,r.subtreeFlags=0,r.deletions=null,r.memoizedProps=c.memoizedProps,r.memoizedState=c.memoizedState,r.updateQueue=c.updateQueue,r.type=c.type,s=c.dependencies,r.dependencies=s===null?null:{lanes:s.lanes,firstContext:s.firstContext}),r}function Ld(r,s,c,h,v,C){var L=0;if(h=r,typeof r=="function")Lm(r)&&(L=1);else if(typeof r=="string")L=kO(r,c,Q.current)?26:r==="html"||r==="head"||r==="body"?27:5;else e:switch(r){case q:return r=Cr(31,c,s,v),r.elementType=q,r.lanes=C,r;case S:return Vo(c.children,v,C,s);case w:L=8,v|=24;break;case N:return r=Cr(12,c,s,v|2),r.elementType=N,r.lanes=C,r;case E:return r=Cr(13,c,s,v),r.elementType=E,r.lanes=C,r;case $:return r=Cr(19,c,s,v),r.elementType=$,r.lanes=C,r;default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case A:L=10;break e;case T:L=9;break e;case R:L=11;break e;case _:L=14;break e;case k:L=16,h=null;break e}L=29,c=Error(a(130,r===null?"null":typeof r,"")),h=null}return s=Cr(L,c,s,v),s.elementType=r,s.type=h,s.lanes=C,s}function Vo(r,s,c,h){return r=Cr(7,r,h,s),r.lanes=c,r}function Bm(r,s,c){return r=Cr(6,r,null,s),r.lanes=c,r}function $x(r){var s=Cr(18,null,null,0);return s.stateNode=r,s}function qm(r,s,c){return s=Cr(4,r.children!==null?r.children:[],r.key,s),s.lanes=c,s.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},s}var Tx=new WeakMap;function Lr(r,s){if(typeof r=="object"&&r!==null){var c=Tx.get(r);return c!==void 0?c:(s={value:r,source:s,stack:Te(s)},Tx.set(r,s),s)}return{value:r,source:s,stack:Te(s)}}var zi=[],Hi=0,Bd=null,Sc=0,Br=[],qr=0,Hs=null,Da=1,ja="";function Za(r,s){zi[Hi++]=Sc,zi[Hi++]=Bd,Bd=r,Sc=s}function _x(r,s,c){Br[qr++]=Da,Br[qr++]=ja,Br[qr++]=Hs,Hs=r;var h=Da;r=ja;var v=32-ft(h)-1;h&=~(1<<v),c+=1;var C=32-ft(s)+v;if(30<C){var L=v-v%5;C=(h&(1<<L)-1).toString(32),h>>=L,v-=L,Da=1<<32-ft(s)+v|c<<v|h,ja=C+r}else Da=1<<C|c<<v|h,ja=r}function Fm(r){r.return!==null&&(Za(r,1),_x(r,1,0))}function zm(r){for(;r===Bd;)Bd=zi[--Hi],zi[Hi]=null,Sc=zi[--Hi],zi[Hi]=null;for(;r===Hs;)Hs=Br[--qr],Br[qr]=null,ja=Br[--qr],Br[qr]=null,Da=Br[--qr],Br[qr]=null}function Ax(r,s){Br[qr++]=Da,Br[qr++]=ja,Br[qr++]=Hs,Da=s.id,ja=s.overflow,Hs=r}var In=null,Kt=null,At=!1,Us=null,Fr=!1,Hm=Error(a(519));function Vs(r){var s=Error(a(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Nc(Lr(s,r)),Hm}function Dx(r){var s=r.stateNode,c=r.type,h=r.memoizedProps;switch(s[yn]=r,s[Tn]=h,c){case"dialog":St("cancel",s),St("close",s);break;case"iframe":case"object":case"embed":St("load",s);break;case"video":case"audio":for(c=0;c<Vc.length;c++)St(Vc[c],s);break;case"source":St("error",s);break;case"img":case"image":case"link":St("error",s),St("load",s);break;case"details":St("toggle",s);break;case"input":St("invalid",s),qo(s,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":St("invalid",s);break;case"textarea":St("invalid",s),Ps(s,h.value,h.defaultValue,h.children)}c=h.children,typeof c!="string"&&typeof c!="number"&&typeof c!="bigint"||s.textContent===""+c||h.suppressHydrationWarning===!0||YS(s.textContent,c)?(h.popover!=null&&(St("beforetoggle",s),St("toggle",s)),h.onScroll!=null&&St("scroll",s),h.onScrollEnd!=null&&St("scrollend",s),h.onClick!=null&&(s.onclick=Mr),s=!0):s=!1,s||Vs(r,!0)}function jx(r){for(In=r.return;In;)switch(In.tag){case 5:case 31:case 13:Fr=!1;return;case 27:case 3:Fr=!0;return;default:In=In.return}}function Ui(r){if(r!==In)return!1;if(!At)return jx(r),At=!0,!1;var s=r.tag,c;if((c=s!==3&&s!==27)&&((c=s===5)&&(c=r.type,c=!(c!=="form"&&c!=="button")||iy(r.type,r.memoizedProps)),c=!c),c&&Kt&&Vs(r),jx(r),s===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));Kt=nN(r)}else if(s===31){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(317));Kt=nN(r)}else s===27?(s=Kt,so(r.type)?(r=fy,fy=null,Kt=r):Kt=s):Kt=In?Hr(r.stateNode.nextSibling):null;return!0}function Go(){Kt=In=null,At=!1}function Um(){var r=Us;return r!==null&&(hr===null?hr=r:hr.push.apply(hr,r),Us=null),r}function Nc(r){Us===null?Us=[r]:Us.push(r)}var Vm=P(null),Yo=null,Ja=null;function Gs(r,s,c){K(Vm,s._currentValue),s._currentValue=c}function es(r){r._currentValue=Vm.current,Y(Vm)}function Gm(r,s,c){for(;r!==null;){var h=r.alternate;if((r.childLanes&s)!==s?(r.childLanes|=s,h!==null&&(h.childLanes|=s)):h!==null&&(h.childLanes&s)!==s&&(h.childLanes|=s),r===c)break;r=r.return}}function Ym(r,s,c,h){var v=r.child;for(v!==null&&(v.return=r);v!==null;){var C=v.dependencies;if(C!==null){var L=v.child;C=C.firstContext;e:for(;C!==null;){var X=C;C=v;for(var te=0;te<s.length;te++)if(X.context===s[te]){C.lanes|=c,X=C.alternate,X!==null&&(X.lanes|=c),Gm(C.return,c,r),h||(L=null);break e}C=X.next}}else if(v.tag===18){if(L=v.return,L===null)throw Error(a(341));L.lanes|=c,C=L.alternate,C!==null&&(C.lanes|=c),Gm(L,c,r),L=null}else L=v.child;if(L!==null)L.return=v;else for(L=v;L!==null;){if(L===r){L=null;break}if(v=L.sibling,v!==null){v.return=L.return,L=v;break}L=L.return}v=L}}function Vi(r,s,c,h){r=null;for(var v=s,C=!1;v!==null;){if(!C){if((v.flags&524288)!==0)C=!0;else if((v.flags&262144)!==0)break}if(v.tag===10){var L=v.alternate;if(L===null)throw Error(a(387));if(L=L.memoizedProps,L!==null){var X=v.type;xr(v.pendingProps.value,L.value)||(r!==null?r.push(X):r=[X])}}else if(v===oe.current){if(L=v.alternate,L===null)throw Error(a(387));L.memoizedState.memoizedState!==v.memoizedState.memoizedState&&(r!==null?r.push(Kc):r=[Kc])}v=v.return}r!==null&&Ym(s,r,c,h),s.flags|=262144}function qd(r){for(r=r.firstContext;r!==null;){if(!xr(r.context._currentValue,r.memoizedValue))return!0;r=r.next}return!1}function Wo(r){Yo=r,Ja=null,r=r.dependencies,r!==null&&(r.firstContext=null)}function kn(r){return Rx(Yo,r)}function Fd(r,s){return Yo===null&&Wo(r),Rx(r,s)}function Rx(r,s){var c=s._currentValue;if(s={context:s,memoizedValue:c,next:null},Ja===null){if(r===null)throw Error(a(308));Ja=s,r.dependencies={lanes:0,firstContext:s},r.flags|=524288}else Ja=Ja.next=s;return c}var jR=typeof AbortController<"u"?AbortController:function(){var r=[],s=this.signal={aborted:!1,addEventListener:function(c,h){r.push(h)}};this.abort=function(){s.aborted=!0,r.forEach(function(c){return c()})}},RR=e.unstable_scheduleCallback,OR=e.unstable_NormalPriority,vn={$$typeof:A,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Wm(){return{controller:new jR,data:new Map,refCount:0}}function wc(r){r.refCount--,r.refCount===0&&RR(OR,function(){r.controller.abort()})}var Ec=null,Xm=0,Gi=0,Yi=null;function IR(r,s){if(Ec===null){var c=Ec=[];Xm=0,Gi=Zg(),Yi={status:"pending",value:void 0,then:function(h){c.push(h)}}}return Xm++,s.then(Ox,Ox),s}function Ox(){if(--Xm===0&&Ec!==null){Yi!==null&&(Yi.status="fulfilled");var r=Ec;Ec=null,Gi=0,Yi=null;for(var s=0;s<r.length;s++)(0,r[s])()}}function kR(r,s){var c=[],h={status:"pending",value:null,reason:null,then:function(v){c.push(v)}};return r.then(function(){h.status="fulfilled",h.value=s;for(var v=0;v<c.length;v++)(0,c[v])(s)},function(v){for(h.status="rejected",h.reason=v,v=0;v<c.length;v++)(0,c[v])(void 0)}),h}var Ix=I.S;I.S=function(r,s){yS=$e(),typeof s=="object"&&s!==null&&typeof s.then=="function"&&IR(r,s),Ix!==null&&Ix(r,s)};var Xo=P(null);function Km(){var r=Xo.current;return r!==null?r:Wt.pooledCache}function zd(r,s){s===null?K(Xo,Xo.current):K(Xo,s.pool)}function kx(){var r=Km();return r===null?null:{parent:vn._currentValue,pool:r}}var Wi=Error(a(460)),Qm=Error(a(474)),Hd=Error(a(542)),Ud={then:function(){}};function Mx(r){return r=r.status,r==="fulfilled"||r==="rejected"}function Px(r,s,c){switch(c=r[c],c===void 0?r.push(s):c!==s&&(s.then(Mr,Mr),s=c),s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,Bx(r),r;default:if(typeof s.status=="string")s.then(Mr,Mr);else{if(r=Wt,r!==null&&100<r.shellSuspendCounter)throw Error(a(482));r=s,r.status="pending",r.then(function(h){if(s.status==="pending"){var v=s;v.status="fulfilled",v.value=h}},function(h){if(s.status==="pending"){var v=s;v.status="rejected",v.reason=h}})}switch(s.status){case"fulfilled":return s.value;case"rejected":throw r=s.reason,Bx(r),r}throw Qo=s,Wi}}function Ko(r){try{var s=r._init;return s(r._payload)}catch(c){throw c!==null&&typeof c=="object"&&typeof c.then=="function"?(Qo=c,Wi):c}}var Qo=null;function Lx(){if(Qo===null)throw Error(a(459));var r=Qo;return Qo=null,r}function Bx(r){if(r===Wi||r===Hd)throw Error(a(483))}var Xi=null,$c=0;function Vd(r){var s=$c;return $c+=1,Xi===null&&(Xi=[]),Px(Xi,r,s)}function Tc(r,s){s=s.props.ref,r.ref=s!==void 0?s:null}function Gd(r,s){throw s.$$typeof===y?Error(a(525)):(r=Object.prototype.toString.call(s),Error(a(31,r==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":r)))}function qx(r){function s(se,ne){if(r){var ie=se.deletions;ie===null?(se.deletions=[ne],se.flags|=16):ie.push(ne)}}function c(se,ne){if(!r)return null;for(;ne!==null;)s(se,ne),ne=ne.sibling;return null}function h(se){for(var ne=new Map;se!==null;)se.key!==null?ne.set(se.key,se):ne.set(se.index,se),se=se.sibling;return ne}function v(se,ne){return se=Qa(se,ne),se.index=0,se.sibling=null,se}function C(se,ne,ie){return se.index=ie,r?(ie=se.alternate,ie!==null?(ie=ie.index,ie<ne?(se.flags|=67108866,ne):ie):(se.flags|=67108866,ne)):(se.flags|=1048576,ne)}function L(se){return r&&se.alternate===null&&(se.flags|=67108866),se}function X(se,ne,ie,Ne){return ne===null||ne.tag!==6?(ne=Bm(ie,se.mode,Ne),ne.return=se,ne):(ne=v(ne,ie),ne.return=se,ne)}function te(se,ne,ie,Ne){var Ke=ie.type;return Ke===S?Ce(se,ne,ie.props.children,Ne,ie.key):ne!==null&&(ne.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===k&&Ko(Ke)===ne.type)?(ne=v(ne,ie.props),Tc(ne,ie),ne.return=se,ne):(ne=Ld(ie.type,ie.key,ie.props,null,se.mode,Ne),Tc(ne,ie),ne.return=se,ne)}function le(se,ne,ie,Ne){return ne===null||ne.tag!==4||ne.stateNode.containerInfo!==ie.containerInfo||ne.stateNode.implementation!==ie.implementation?(ne=qm(ie,se.mode,Ne),ne.return=se,ne):(ne=v(ne,ie.children||[]),ne.return=se,ne)}function Ce(se,ne,ie,Ne,Ke){return ne===null||ne.tag!==7?(ne=Vo(ie,se.mode,Ne,Ke),ne.return=se,ne):(ne=v(ne,ie),ne.return=se,ne)}function we(se,ne,ie){if(typeof ne=="string"&&ne!==""||typeof ne=="number"||typeof ne=="bigint")return ne=Bm(""+ne,se.mode,ie),ne.return=se,ne;if(typeof ne=="object"&&ne!==null){switch(ne.$$typeof){case b:return ie=Ld(ne.type,ne.key,ne.props,null,se.mode,ie),Tc(ie,ne),ie.return=se,ie;case x:return ne=qm(ne,se.mode,ie),ne.return=se,ne;case k:return ne=Ko(ne),we(se,ne,ie)}if(M(ne)||H(ne))return ne=Vo(ne,se.mode,ie,null),ne.return=se,ne;if(typeof ne.then=="function")return we(se,Vd(ne),ie);if(ne.$$typeof===A)return we(se,Fd(se,ne),ie);Gd(se,ne)}return null}function ue(se,ne,ie,Ne){var Ke=ne!==null?ne.key:null;if(typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint")return Ke!==null?null:X(se,ne,""+ie,Ne);if(typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case b:return ie.key===Ke?te(se,ne,ie,Ne):null;case x:return ie.key===Ke?le(se,ne,ie,Ne):null;case k:return ie=Ko(ie),ue(se,ne,ie,Ne)}if(M(ie)||H(ie))return Ke!==null?null:Ce(se,ne,ie,Ne,null);if(typeof ie.then=="function")return ue(se,ne,Vd(ie),Ne);if(ie.$$typeof===A)return ue(se,ne,Fd(se,ie),Ne);Gd(se,ie)}return null}function he(se,ne,ie,Ne,Ke){if(typeof Ne=="string"&&Ne!==""||typeof Ne=="number"||typeof Ne=="bigint")return se=se.get(ie)||null,X(ne,se,""+Ne,Ke);if(typeof Ne=="object"&&Ne!==null){switch(Ne.$$typeof){case b:return se=se.get(Ne.key===null?ie:Ne.key)||null,te(ne,se,Ne,Ke);case x:return se=se.get(Ne.key===null?ie:Ne.key)||null,le(ne,se,Ne,Ke);case k:return Ne=Ko(Ne),he(se,ne,ie,Ne,Ke)}if(M(Ne)||H(Ne))return se=se.get(ie)||null,Ce(ne,se,Ne,Ke,null);if(typeof Ne.then=="function")return he(se,ne,ie,Vd(Ne),Ke);if(Ne.$$typeof===A)return he(se,ne,ie,Fd(ne,Ne),Ke);Gd(ne,Ne)}return null}function Ue(se,ne,ie,Ne){for(var Ke=null,It=null,Ge=ne,ht=ne=0,wt=null;Ge!==null&&ht<ie.length;ht++){Ge.index>ht?(wt=Ge,Ge=null):wt=Ge.sibling;var kt=ue(se,Ge,ie[ht],Ne);if(kt===null){Ge===null&&(Ge=wt);break}r&&Ge&&kt.alternate===null&&s(se,Ge),ne=C(kt,ne,ht),It===null?Ke=kt:It.sibling=kt,It=kt,Ge=wt}if(ht===ie.length)return c(se,Ge),At&&Za(se,ht),Ke;if(Ge===null){for(;ht<ie.length;ht++)Ge=we(se,ie[ht],Ne),Ge!==null&&(ne=C(Ge,ne,ht),It===null?Ke=Ge:It.sibling=Ge,It=Ge);return At&&Za(se,ht),Ke}for(Ge=h(Ge);ht<ie.length;ht++)wt=he(Ge,se,ht,ie[ht],Ne),wt!==null&&(r&&wt.alternate!==null&&Ge.delete(wt.key===null?ht:wt.key),ne=C(wt,ne,ht),It===null?Ke=wt:It.sibling=wt,It=wt);return r&&Ge.forEach(function(uo){return s(se,uo)}),At&&Za(se,ht),Ke}function et(se,ne,ie,Ne){if(ie==null)throw Error(a(151));for(var Ke=null,It=null,Ge=ne,ht=ne=0,wt=null,kt=ie.next();Ge!==null&&!kt.done;ht++,kt=ie.next()){Ge.index>ht?(wt=Ge,Ge=null):wt=Ge.sibling;var uo=ue(se,Ge,kt.value,Ne);if(uo===null){Ge===null&&(Ge=wt);break}r&&Ge&&uo.alternate===null&&s(se,Ge),ne=C(uo,ne,ht),It===null?Ke=uo:It.sibling=uo,It=uo,Ge=wt}if(kt.done)return c(se,Ge),At&&Za(se,ht),Ke;if(Ge===null){for(;!kt.done;ht++,kt=ie.next())kt=we(se,kt.value,Ne),kt!==null&&(ne=C(kt,ne,ht),It===null?Ke=kt:It.sibling=kt,It=kt);return At&&Za(se,ht),Ke}for(Ge=h(Ge);!kt.done;ht++,kt=ie.next())kt=he(Ge,se,ht,kt.value,Ne),kt!==null&&(r&&kt.alternate!==null&&Ge.delete(kt.key===null?ht:kt.key),ne=C(kt,ne,ht),It===null?Ke=kt:It.sibling=kt,It=kt);return r&&Ge.forEach(function(GO){return s(se,GO)}),At&&Za(se,ht),Ke}function Yt(se,ne,ie,Ne){if(typeof ie=="object"&&ie!==null&&ie.type===S&&ie.key===null&&(ie=ie.props.children),typeof ie=="object"&&ie!==null){switch(ie.$$typeof){case b:e:{for(var Ke=ie.key;ne!==null;){if(ne.key===Ke){if(Ke=ie.type,Ke===S){if(ne.tag===7){c(se,ne.sibling),Ne=v(ne,ie.props.children),Ne.return=se,se=Ne;break e}}else if(ne.elementType===Ke||typeof Ke=="object"&&Ke!==null&&Ke.$$typeof===k&&Ko(Ke)===ne.type){c(se,ne.sibling),Ne=v(ne,ie.props),Tc(Ne,ie),Ne.return=se,se=Ne;break e}c(se,ne);break}else s(se,ne);ne=ne.sibling}ie.type===S?(Ne=Vo(ie.props.children,se.mode,Ne,ie.key),Ne.return=se,se=Ne):(Ne=Ld(ie.type,ie.key,ie.props,null,se.mode,Ne),Tc(Ne,ie),Ne.return=se,se=Ne)}return L(se);case x:e:{for(Ke=ie.key;ne!==null;){if(ne.key===Ke)if(ne.tag===4&&ne.stateNode.containerInfo===ie.containerInfo&&ne.stateNode.implementation===ie.implementation){c(se,ne.sibling),Ne=v(ne,ie.children||[]),Ne.return=se,se=Ne;break e}else{c(se,ne);break}else s(se,ne);ne=ne.sibling}Ne=qm(ie,se.mode,Ne),Ne.return=se,se=Ne}return L(se);case k:return ie=Ko(ie),Yt(se,ne,ie,Ne)}if(M(ie))return Ue(se,ne,ie,Ne);if(H(ie)){if(Ke=H(ie),typeof Ke!="function")throw Error(a(150));return ie=Ke.call(ie),et(se,ne,ie,Ne)}if(typeof ie.then=="function")return Yt(se,ne,Vd(ie),Ne);if(ie.$$typeof===A)return Yt(se,ne,Fd(se,ie),Ne);Gd(se,ie)}return typeof ie=="string"&&ie!==""||typeof ie=="number"||typeof ie=="bigint"?(ie=""+ie,ne!==null&&ne.tag===6?(c(se,ne.sibling),Ne=v(ne,ie),Ne.return=se,se=Ne):(c(se,ne),Ne=Bm(ie,se.mode,Ne),Ne.return=se,se=Ne),L(se)):c(se,ne)}return function(se,ne,ie,Ne){try{$c=0;var Ke=Yt(se,ne,ie,Ne);return Xi=null,Ke}catch(Ge){if(Ge===Wi||Ge===Hd)throw Ge;var It=Cr(29,Ge,null,se.mode);return It.lanes=Ne,It.return=se,It}finally{}}}var Zo=qx(!0),Fx=qx(!1),Ys=!1;function Zm(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Jm(r,s){r=r.updateQueue,s.updateQueue===r&&(s.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,callbacks:null})}function Ws(r){return{lane:r,tag:0,payload:null,callback:null,next:null}}function Xs(r,s,c){var h=r.updateQueue;if(h===null)return null;if(h=h.shared,(Pt&2)!==0){var v=h.pending;return v===null?s.next=s:(s.next=v.next,v.next=s),h.pending=s,s=Pd(r),wx(r,null,c),s}return Md(r,h,s,c),Pd(r)}function _c(r,s,c){if(s=s.updateQueue,s!==null&&(s=s.shared,(c&4194048)!==0)){var h=s.lanes;h&=r.pendingLanes,c|=h,s.lanes=c,pt(r,c)}}function eg(r,s){var c=r.updateQueue,h=r.alternate;if(h!==null&&(h=h.updateQueue,c===h)){var v=null,C=null;if(c=c.firstBaseUpdate,c!==null){do{var L={lane:c.lane,tag:c.tag,payload:c.payload,callback:null,next:null};C===null?v=C=L:C=C.next=L,c=c.next}while(c!==null);C===null?v=C=s:C=C.next=s}else v=C=s;c={baseState:h.baseState,firstBaseUpdate:v,lastBaseUpdate:C,shared:h.shared,callbacks:h.callbacks},r.updateQueue=c;return}r=c.lastBaseUpdate,r===null?c.firstBaseUpdate=s:r.next=s,c.lastBaseUpdate=s}var tg=!1;function Ac(){if(tg){var r=Yi;if(r!==null)throw r}}function Dc(r,s,c,h){tg=!1;var v=r.updateQueue;Ys=!1;var C=v.firstBaseUpdate,L=v.lastBaseUpdate,X=v.shared.pending;if(X!==null){v.shared.pending=null;var te=X,le=te.next;te.next=null,L===null?C=le:L.next=le,L=te;var Ce=r.alternate;Ce!==null&&(Ce=Ce.updateQueue,X=Ce.lastBaseUpdate,X!==L&&(X===null?Ce.firstBaseUpdate=le:X.next=le,Ce.lastBaseUpdate=te))}if(C!==null){var we=v.baseState;L=0,Ce=le=te=null,X=C;do{var ue=X.lane&-536870913,he=ue!==X.lane;if(he?(Nt&ue)===ue:(h&ue)===ue){ue!==0&&ue===Gi&&(tg=!0),Ce!==null&&(Ce=Ce.next={lane:0,tag:X.tag,payload:X.payload,callback:null,next:null});e:{var Ue=r,et=X;ue=s;var Yt=c;switch(et.tag){case 1:if(Ue=et.payload,typeof Ue=="function"){we=Ue.call(Yt,we,ue);break e}we=Ue;break e;case 3:Ue.flags=Ue.flags&-65537|128;case 0:if(Ue=et.payload,ue=typeof Ue=="function"?Ue.call(Yt,we,ue):Ue,ue==null)break e;we=g({},we,ue);break e;case 2:Ys=!0}}ue=X.callback,ue!==null&&(r.flags|=64,he&&(r.flags|=8192),he=v.callbacks,he===null?v.callbacks=[ue]:he.push(ue))}else he={lane:ue,tag:X.tag,payload:X.payload,callback:X.callback,next:null},Ce===null?(le=Ce=he,te=we):Ce=Ce.next=he,L|=ue;if(X=X.next,X===null){if(X=v.shared.pending,X===null)break;he=X,X=he.next,he.next=null,v.lastBaseUpdate=he,v.shared.pending=null}}while(!0);Ce===null&&(te=we),v.baseState=te,v.firstBaseUpdate=le,v.lastBaseUpdate=Ce,C===null&&(v.shared.lanes=0),eo|=L,r.lanes=L,r.memoizedState=we}}function zx(r,s){if(typeof r!="function")throw Error(a(191,r));r.call(s)}function Hx(r,s){var c=r.callbacks;if(c!==null)for(r.callbacks=null,r=0;r<c.length;r++)zx(c[r],s)}var Ki=P(null),Yd=P(0);function Ux(r,s){r=cs,K(Yd,r),K(Ki,s),cs=r|s.baseLanes}function ng(){K(Yd,cs),K(Ki,Ki.current)}function rg(){cs=Yd.current,Y(Ki),Y(Yd)}var Sr=P(null),zr=null;function Ks(r){var s=r.alternate;K(hn,hn.current&1),K(Sr,r),zr===null&&(s===null||Ki.current!==null||s.memoizedState!==null)&&(zr=r)}function ag(r){K(hn,hn.current),K(Sr,r),zr===null&&(zr=r)}function Vx(r){r.tag===22?(K(hn,hn.current),K(Sr,r),zr===null&&(zr=r)):Qs()}function Qs(){K(hn,hn.current),K(Sr,Sr.current)}function Nr(r){Y(Sr),zr===r&&(zr=null),Y(hn)}var hn=P(0);function Wd(r){for(var s=r;s!==null;){if(s.tag===13){var c=s.memoizedState;if(c!==null&&(c=c.dehydrated,c===null||uy(c)||dy(c)))return s}else if(s.tag===19&&(s.memoizedProps.revealOrder==="forwards"||s.memoizedProps.revealOrder==="backwards"||s.memoizedProps.revealOrder==="unstable_legacy-backwards"||s.memoizedProps.revealOrder==="together")){if((s.flags&128)!==0)return s}else if(s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return null;s=s.return}s.sibling.return=s.return,s=s.sibling}return null}var ts=0,ct=null,Vt=null,xn=null,Xd=!1,Qi=!1,Jo=!1,Kd=0,jc=0,Zi=null,MR=0;function cn(){throw Error(a(321))}function sg(r,s){if(s===null)return!1;for(var c=0;c<s.length&&c<r.length;c++)if(!xr(r[c],s[c]))return!1;return!0}function og(r,s,c,h,v,C){return ts=C,ct=s,s.memoizedState=null,s.updateQueue=null,s.lanes=0,I.H=r===null||r.memoizedState===null?_C:Cg,Jo=!1,C=c(h,v),Jo=!1,Qi&&(C=Yx(s,c,h,v)),Gx(r),C}function Gx(r){I.H=Ic;var s=Vt!==null&&Vt.next!==null;if(ts=0,xn=Vt=ct=null,Xd=!1,jc=0,Zi=null,s)throw Error(a(300));r===null||Cn||(r=r.dependencies,r!==null&&qd(r)&&(Cn=!0))}function Yx(r,s,c,h){ct=r;var v=0;do{if(Qi&&(Zi=null),jc=0,Qi=!1,25<=v)throw Error(a(301));if(v+=1,xn=Vt=null,r.updateQueue!=null){var C=r.updateQueue;C.lastEffect=null,C.events=null,C.stores=null,C.memoCache!=null&&(C.memoCache.index=0)}I.H=AC,C=s(c,h)}while(Qi);return C}function PR(){var r=I.H,s=r.useState()[0];return s=typeof s.then=="function"?Rc(s):s,r=r.useState()[0],(Vt!==null?Vt.memoizedState:null)!==r&&(ct.flags|=1024),s}function ig(){var r=Kd!==0;return Kd=0,r}function lg(r,s,c){s.updateQueue=r.updateQueue,s.flags&=-2053,r.lanes&=~c}function cg(r){if(Xd){for(r=r.memoizedState;r!==null;){var s=r.queue;s!==null&&(s.pending=null),r=r.next}Xd=!1}ts=0,xn=Vt=ct=null,Qi=!1,jc=Kd=0,Zi=null}function tr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xn===null?ct.memoizedState=xn=r:xn=xn.next=r,xn}function mn(){if(Vt===null){var r=ct.alternate;r=r!==null?r.memoizedState:null}else r=Vt.next;var s=xn===null?ct.memoizedState:xn.next;if(s!==null)xn=s,Vt=r;else{if(r===null)throw ct.alternate===null?Error(a(467)):Error(a(310));Vt=r,r={memoizedState:Vt.memoizedState,baseState:Vt.baseState,baseQueue:Vt.baseQueue,queue:Vt.queue,next:null},xn===null?ct.memoizedState=xn=r:xn=xn.next=r}return xn}function Qd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Rc(r){var s=jc;return jc+=1,Zi===null&&(Zi=[]),r=Px(Zi,r,s),s=ct,(xn===null?s.memoizedState:xn.next)===null&&(s=s.alternate,I.H=s===null||s.memoizedState===null?_C:Cg),r}function Zd(r){if(r!==null&&typeof r=="object"){if(typeof r.then=="function")return Rc(r);if(r.$$typeof===A)return kn(r)}throw Error(a(438,String(r)))}function ug(r){var s=null,c=ct.updateQueue;if(c!==null&&(s=c.memoCache),s==null){var h=ct.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(s={data:h.data.map(function(v){return v.slice()}),index:0})))}if(s==null&&(s={data:[],index:0}),c===null&&(c=Qd(),ct.updateQueue=c),c.memoCache=s,c=s.data[s.index],c===void 0)for(c=s.data[s.index]=Array(r),h=0;h<r;h++)c[h]=z;return s.index++,c}function ns(r,s){return typeof s=="function"?s(r):s}function Jd(r){var s=mn();return dg(s,Vt,r)}function dg(r,s,c){var h=r.queue;if(h===null)throw Error(a(311));h.lastRenderedReducer=c;var v=r.baseQueue,C=h.pending;if(C!==null){if(v!==null){var L=v.next;v.next=C.next,C.next=L}s.baseQueue=v=C,h.pending=null}if(C=r.baseState,v===null)r.memoizedState=C;else{s=v.next;var X=L=null,te=null,le=s,Ce=!1;do{var we=le.lane&-536870913;if(we!==le.lane?(Nt&we)===we:(ts&we)===we){var ue=le.revertLane;if(ue===0)te!==null&&(te=te.next={lane:0,revertLane:0,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null}),we===Gi&&(Ce=!0);else if((ts&ue)===ue){le=le.next,ue===Gi&&(Ce=!0);continue}else we={lane:0,revertLane:le.revertLane,gesture:null,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},te===null?(X=te=we,L=C):te=te.next=we,ct.lanes|=ue,eo|=ue;we=le.action,Jo&&c(C,we),C=le.hasEagerState?le.eagerState:c(C,we)}else ue={lane:we,revertLane:le.revertLane,gesture:le.gesture,action:le.action,hasEagerState:le.hasEagerState,eagerState:le.eagerState,next:null},te===null?(X=te=ue,L=C):te=te.next=ue,ct.lanes|=we,eo|=we;le=le.next}while(le!==null&&le!==s);if(te===null?L=C:te.next=X,!xr(C,r.memoizedState)&&(Cn=!0,Ce&&(c=Yi,c!==null)))throw c;r.memoizedState=C,r.baseState=L,r.baseQueue=te,h.lastRenderedState=C}return v===null&&(h.lanes=0),[r.memoizedState,h.dispatch]}function fg(r){var s=mn(),c=s.queue;if(c===null)throw Error(a(311));c.lastRenderedReducer=r;var h=c.dispatch,v=c.pending,C=s.memoizedState;if(v!==null){c.pending=null;var L=v=v.next;do C=r(C,L.action),L=L.next;while(L!==v);xr(C,s.memoizedState)||(Cn=!0),s.memoizedState=C,s.baseQueue===null&&(s.baseState=C),c.lastRenderedState=C}return[C,h]}function Wx(r,s,c){var h=ct,v=mn(),C=At;if(C){if(c===void 0)throw Error(a(407));c=c()}else c=s();var L=!xr((Vt||v).memoizedState,c);if(L&&(v.memoizedState=c,Cn=!0),v=v.queue,mg(Qx.bind(null,h,v,r),[r]),v.getSnapshot!==s||L||xn!==null&&xn.memoizedState.tag&1){if(h.flags|=2048,Ji(9,{destroy:void 0},Kx.bind(null,h,v,c,s),null),Wt===null)throw Error(a(349));C||(ts&127)!==0||Xx(h,s,c)}return c}function Xx(r,s,c){r.flags|=16384,r={getSnapshot:s,value:c},s=ct.updateQueue,s===null?(s=Qd(),ct.updateQueue=s,s.stores=[r]):(c=s.stores,c===null?s.stores=[r]:c.push(r))}function Kx(r,s,c,h){s.value=c,s.getSnapshot=h,Zx(s)&&Jx(r)}function Qx(r,s,c){return c(function(){Zx(s)&&Jx(r)})}function Zx(r){var s=r.getSnapshot;r=r.value;try{var c=s();return!xr(r,c)}catch{return!0}}function Jx(r){var s=Uo(r,2);s!==null&&mr(s,r,2)}function pg(r){var s=tr();if(typeof r=="function"){var c=r;if(r=c(),Jo){tt(!0);try{c()}finally{tt(!1)}}}return s.memoizedState=s.baseState=r,s.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:r},s}function eC(r,s,c,h){return r.baseState=c,dg(r,Vt,typeof h=="function"?h:ns)}function LR(r,s,c,h,v){if(nf(r))throw Error(a(485));if(r=s.action,r!==null){var C={payload:v,action:r,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(L){C.listeners.push(L)}};I.T!==null?c(!0):C.isTransition=!1,h(C),c=s.pending,c===null?(C.next=s.pending=C,tC(s,C)):(C.next=c.next,s.pending=c.next=C)}}function tC(r,s){var c=s.action,h=s.payload,v=r.state;if(s.isTransition){var C=I.T,L={};I.T=L;try{var X=c(v,h),te=I.S;te!==null&&te(L,X),nC(r,s,X)}catch(le){hg(r,s,le)}finally{C!==null&&L.types!==null&&(C.types=L.types),I.T=C}}else try{C=c(v,h),nC(r,s,C)}catch(le){hg(r,s,le)}}function nC(r,s,c){c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(function(h){rC(r,s,h)},function(h){return hg(r,s,h)}):rC(r,s,c)}function rC(r,s,c){s.status="fulfilled",s.value=c,aC(s),r.state=c,s=r.pending,s!==null&&(c=s.next,c===s?r.pending=null:(c=c.next,s.next=c,tC(r,c)))}function hg(r,s,c){var h=r.pending;if(r.pending=null,h!==null){h=h.next;do s.status="rejected",s.reason=c,aC(s),s=s.next;while(s!==h)}r.action=null}function aC(r){r=r.listeners;for(var s=0;s<r.length;s++)(0,r[s])()}function sC(r,s){return s}function oC(r,s){if(At){var c=Wt.formState;if(c!==null){e:{var h=ct;if(At){if(Kt){t:{for(var v=Kt,C=Fr;v.nodeType!==8;){if(!C){v=null;break t}if(v=Hr(v.nextSibling),v===null){v=null;break t}}C=v.data,v=C==="F!"||C==="F"?v:null}if(v){Kt=Hr(v.nextSibling),h=v.data==="F!";break e}}Vs(h)}h=!1}h&&(s=c[0])}}return c=tr(),c.memoizedState=c.baseState=s,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:sC,lastRenderedState:s},c.queue=h,c=EC.bind(null,ct,h),h.dispatch=c,h=pg(!1),C=xg.bind(null,ct,!1,h.queue),h=tr(),v={state:s,dispatch:null,action:r,pending:null},h.queue=v,c=LR.bind(null,ct,v,C,c),v.dispatch=c,h.memoizedState=r,[s,c,!1]}function iC(r){var s=mn();return lC(s,Vt,r)}function lC(r,s,c){if(s=dg(r,s,sC)[0],r=Jd(ns)[0],typeof s=="object"&&s!==null&&typeof s.then=="function")try{var h=Rc(s)}catch(L){throw L===Wi?Hd:L}else h=s;s=mn();var v=s.queue,C=v.dispatch;return c!==s.memoizedState&&(ct.flags|=2048,Ji(9,{destroy:void 0},BR.bind(null,v,c),null)),[h,C,r]}function BR(r,s){r.action=s}function cC(r){var s=mn(),c=Vt;if(c!==null)return lC(s,c,r);mn(),s=s.memoizedState,c=mn();var h=c.queue.dispatch;return c.memoizedState=r,[s,h,!1]}function Ji(r,s,c,h){return r={tag:r,create:c,deps:h,inst:s,next:null},s=ct.updateQueue,s===null&&(s=Qd(),ct.updateQueue=s),c=s.lastEffect,c===null?s.lastEffect=r.next=r:(h=c.next,c.next=r,r.next=h,s.lastEffect=r),r}function uC(){return mn().memoizedState}function ef(r,s,c,h){var v=tr();ct.flags|=r,v.memoizedState=Ji(1|s,{destroy:void 0},c,h===void 0?null:h)}function tf(r,s,c,h){var v=mn();h=h===void 0?null:h;var C=v.memoizedState.inst;Vt!==null&&h!==null&&sg(h,Vt.memoizedState.deps)?v.memoizedState=Ji(s,C,c,h):(ct.flags|=r,v.memoizedState=Ji(1|s,C,c,h))}function dC(r,s){ef(8390656,8,r,s)}function mg(r,s){tf(2048,8,r,s)}function qR(r){ct.flags|=4;var s=ct.updateQueue;if(s===null)s=Qd(),ct.updateQueue=s,s.events=[r];else{var c=s.events;c===null?s.events=[r]:c.push(r)}}function fC(r){var s=mn().memoizedState;return qR({ref:s,nextImpl:r}),function(){if((Pt&2)!==0)throw Error(a(440));return s.impl.apply(void 0,arguments)}}function pC(r,s){return tf(4,2,r,s)}function hC(r,s){return tf(4,4,r,s)}function mC(r,s){if(typeof s=="function"){r=r();var c=s(r);return function(){typeof c=="function"?c():s(null)}}if(s!=null)return r=r(),s.current=r,function(){s.current=null}}function gC(r,s,c){c=c!=null?c.concat([r]):null,tf(4,4,mC.bind(null,s,r),c)}function gg(){}function yC(r,s){var c=mn();s=s===void 0?null:s;var h=c.memoizedState;return s!==null&&sg(s,h[1])?h[0]:(c.memoizedState=[r,s],r)}function bC(r,s){var c=mn();s=s===void 0?null:s;var h=c.memoizedState;if(s!==null&&sg(s,h[1]))return h[0];if(h=r(),Jo){tt(!0);try{r()}finally{tt(!1)}}return c.memoizedState=[h,s],h}function yg(r,s,c){return c===void 0||(ts&1073741824)!==0&&(Nt&261930)===0?r.memoizedState=s:(r.memoizedState=c,r=vS(),ct.lanes|=r,eo|=r,c)}function vC(r,s,c,h){return xr(c,s)?c:Ki.current!==null?(r=yg(r,c,h),xr(r,s)||(Cn=!0),r):(ts&42)===0||(ts&1073741824)!==0&&(Nt&261930)===0?(Cn=!0,r.memoizedState=c):(r=vS(),ct.lanes|=r,eo|=r,s)}function xC(r,s,c,h,v){var C=F.p;F.p=C!==0&&8>C?C:8;var L=I.T,X={};I.T=X,xg(r,!1,s,c);try{var te=v(),le=I.S;if(le!==null&&le(X,te),te!==null&&typeof te=="object"&&typeof te.then=="function"){var Ce=kR(te,h);Oc(r,s,Ce,$r(r))}else Oc(r,s,h,$r(r))}catch(we){Oc(r,s,{then:function(){},status:"rejected",reason:we},$r())}finally{F.p=C,L!==null&&X.types!==null&&(L.types=X.types),I.T=L}}function FR(){}function bg(r,s,c,h){if(r.tag!==5)throw Error(a(476));var v=CC(r).queue;xC(r,v,s,V,c===null?FR:function(){return SC(r),c(h)})}function CC(r){var s=r.memoizedState;if(s!==null)return s;s={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:V},next:null};var c={};return s.next={memoizedState:c,baseState:c,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ns,lastRenderedState:c},next:null},r.memoizedState=s,r=r.alternate,r!==null&&(r.memoizedState=s),s}function SC(r){var s=CC(r);s.next===null&&(s=r.alternate.memoizedState),Oc(r,s.next.queue,{},$r())}function vg(){return kn(Kc)}function NC(){return mn().memoizedState}function wC(){return mn().memoizedState}function zR(r){for(var s=r.return;s!==null;){switch(s.tag){case 24:case 3:var c=$r();r=Ws(c);var h=Xs(s,r,c);h!==null&&(mr(h,s,c),_c(h,s,c)),s={cache:Wm()},r.payload=s;return}s=s.return}}function HR(r,s,c){var h=$r();c={lane:h,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},nf(r)?$C(s,c):(c=Pm(r,s,c,h),c!==null&&(mr(c,r,h),TC(c,s,h)))}function EC(r,s,c){var h=$r();Oc(r,s,c,h)}function Oc(r,s,c,h){var v={lane:h,revertLane:0,gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null};if(nf(r))$C(s,v);else{var C=r.alternate;if(r.lanes===0&&(C===null||C.lanes===0)&&(C=s.lastRenderedReducer,C!==null))try{var L=s.lastRenderedState,X=C(L,c);if(v.hasEagerState=!0,v.eagerState=X,xr(X,L))return Md(r,s,v,0),Wt===null&&kd(),!1}catch{}finally{}if(c=Pm(r,s,v,h),c!==null)return mr(c,r,h),TC(c,s,h),!0}return!1}function xg(r,s,c,h){if(h={lane:2,revertLane:Zg(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},nf(r)){if(s)throw Error(a(479))}else s=Pm(r,c,h,2),s!==null&&mr(s,r,2)}function nf(r){var s=r.alternate;return r===ct||s!==null&&s===ct}function $C(r,s){Qi=Xd=!0;var c=r.pending;c===null?s.next=s:(s.next=c.next,c.next=s),r.pending=s}function TC(r,s,c){if((c&4194048)!==0){var h=s.lanes;h&=r.pendingLanes,c|=h,s.lanes=c,pt(r,c)}}var Ic={readContext:kn,use:Zd,useCallback:cn,useContext:cn,useEffect:cn,useImperativeHandle:cn,useLayoutEffect:cn,useInsertionEffect:cn,useMemo:cn,useReducer:cn,useRef:cn,useState:cn,useDebugValue:cn,useDeferredValue:cn,useTransition:cn,useSyncExternalStore:cn,useId:cn,useHostTransitionStatus:cn,useFormState:cn,useActionState:cn,useOptimistic:cn,useMemoCache:cn,useCacheRefresh:cn};Ic.useEffectEvent=cn;var _C={readContext:kn,use:Zd,useCallback:function(r,s){return tr().memoizedState=[r,s===void 0?null:s],r},useContext:kn,useEffect:dC,useImperativeHandle:function(r,s,c){c=c!=null?c.concat([r]):null,ef(4194308,4,mC.bind(null,s,r),c)},useLayoutEffect:function(r,s){return ef(4194308,4,r,s)},useInsertionEffect:function(r,s){ef(4,2,r,s)},useMemo:function(r,s){var c=tr();s=s===void 0?null:s;var h=r();if(Jo){tt(!0);try{r()}finally{tt(!1)}}return c.memoizedState=[h,s],h},useReducer:function(r,s,c){var h=tr();if(c!==void 0){var v=c(s);if(Jo){tt(!0);try{c(s)}finally{tt(!1)}}}else v=s;return h.memoizedState=h.baseState=v,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:v},h.queue=r,r=r.dispatch=HR.bind(null,ct,r),[h.memoizedState,r]},useRef:function(r){var s=tr();return r={current:r},s.memoizedState=r},useState:function(r){r=pg(r);var s=r.queue,c=EC.bind(null,ct,s);return s.dispatch=c,[r.memoizedState,c]},useDebugValue:gg,useDeferredValue:function(r,s){var c=tr();return yg(c,r,s)},useTransition:function(){var r=pg(!1);return r=xC.bind(null,ct,r.queue,!0,!1),tr().memoizedState=r,[!1,r]},useSyncExternalStore:function(r,s,c){var h=ct,v=tr();if(At){if(c===void 0)throw Error(a(407));c=c()}else{if(c=s(),Wt===null)throw Error(a(349));(Nt&127)!==0||Xx(h,s,c)}v.memoizedState=c;var C={value:c,getSnapshot:s};return v.queue=C,dC(Qx.bind(null,h,C,r),[r]),h.flags|=2048,Ji(9,{destroy:void 0},Kx.bind(null,h,C,c,s),null),c},useId:function(){var r=tr(),s=Wt.identifierPrefix;if(At){var c=ja,h=Da;c=(h&~(1<<32-ft(h)-1)).toString(32)+c,s="_"+s+"R_"+c,c=Kd++,0<c&&(s+="H"+c.toString(32)),s+="_"}else c=MR++,s="_"+s+"r_"+c.toString(32)+"_";return r.memoizedState=s},useHostTransitionStatus:vg,useFormState:oC,useActionState:oC,useOptimistic:function(r){var s=tr();s.memoizedState=s.baseState=r;var c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return s.queue=c,s=xg.bind(null,ct,!0,c),c.dispatch=s,[r,s]},useMemoCache:ug,useCacheRefresh:function(){return tr().memoizedState=zR.bind(null,ct)},useEffectEvent:function(r){var s=tr(),c={impl:r};return s.memoizedState=c,function(){if((Pt&2)!==0)throw Error(a(440));return c.impl.apply(void 0,arguments)}}},Cg={readContext:kn,use:Zd,useCallback:yC,useContext:kn,useEffect:mg,useImperativeHandle:gC,useInsertionEffect:pC,useLayoutEffect:hC,useMemo:bC,useReducer:Jd,useRef:uC,useState:function(){return Jd(ns)},useDebugValue:gg,useDeferredValue:function(r,s){var c=mn();return vC(c,Vt.memoizedState,r,s)},useTransition:function(){var r=Jd(ns)[0],s=mn().memoizedState;return[typeof r=="boolean"?r:Rc(r),s]},useSyncExternalStore:Wx,useId:NC,useHostTransitionStatus:vg,useFormState:iC,useActionState:iC,useOptimistic:function(r,s){var c=mn();return eC(c,Vt,r,s)},useMemoCache:ug,useCacheRefresh:wC};Cg.useEffectEvent=fC;var AC={readContext:kn,use:Zd,useCallback:yC,useContext:kn,useEffect:mg,useImperativeHandle:gC,useInsertionEffect:pC,useLayoutEffect:hC,useMemo:bC,useReducer:fg,useRef:uC,useState:function(){return fg(ns)},useDebugValue:gg,useDeferredValue:function(r,s){var c=mn();return Vt===null?yg(c,r,s):vC(c,Vt.memoizedState,r,s)},useTransition:function(){var r=fg(ns)[0],s=mn().memoizedState;return[typeof r=="boolean"?r:Rc(r),s]},useSyncExternalStore:Wx,useId:NC,useHostTransitionStatus:vg,useFormState:cC,useActionState:cC,useOptimistic:function(r,s){var c=mn();return Vt!==null?eC(c,Vt,r,s):(c.baseState=r,[r,c.queue.dispatch])},useMemoCache:ug,useCacheRefresh:wC};AC.useEffectEvent=fC;function Sg(r,s,c,h){s=r.memoizedState,c=c(h,s),c=c==null?s:g({},s,c),r.memoizedState=c,r.lanes===0&&(r.updateQueue.baseState=c)}var Ng={enqueueSetState:function(r,s,c){r=r._reactInternals;var h=$r(),v=Ws(h);v.payload=s,c!=null&&(v.callback=c),s=Xs(r,v,h),s!==null&&(mr(s,r,h),_c(s,r,h))},enqueueReplaceState:function(r,s,c){r=r._reactInternals;var h=$r(),v=Ws(h);v.tag=1,v.payload=s,c!=null&&(v.callback=c),s=Xs(r,v,h),s!==null&&(mr(s,r,h),_c(s,r,h))},enqueueForceUpdate:function(r,s){r=r._reactInternals;var c=$r(),h=Ws(c);h.tag=2,s!=null&&(h.callback=s),s=Xs(r,h,c),s!==null&&(mr(s,r,c),_c(s,r,c))}};function DC(r,s,c,h,v,C,L){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(h,C,L):s.prototype&&s.prototype.isPureReactComponent?!xc(c,h)||!xc(v,C):!0}function jC(r,s,c,h){r=s.state,typeof s.componentWillReceiveProps=="function"&&s.componentWillReceiveProps(c,h),typeof s.UNSAFE_componentWillReceiveProps=="function"&&s.UNSAFE_componentWillReceiveProps(c,h),s.state!==r&&Ng.enqueueReplaceState(s,s.state,null)}function ei(r,s){var c=s;if("ref"in s){c={};for(var h in s)h!=="ref"&&(c[h]=s[h])}if(r=r.defaultProps){c===s&&(c=g({},c));for(var v in r)c[v]===void 0&&(c[v]=r[v])}return c}function RC(r){Id(r)}function OC(r){console.error(r)}function IC(r){Id(r)}function rf(r,s){try{var c=r.onUncaughtError;c(s.value,{componentStack:s.stack})}catch(h){setTimeout(function(){throw h})}}function kC(r,s,c){try{var h=r.onCaughtError;h(c.value,{componentStack:c.stack,errorBoundary:s.tag===1?s.stateNode:null})}catch(v){setTimeout(function(){throw v})}}function wg(r,s,c){return c=Ws(c),c.tag=3,c.payload={element:null},c.callback=function(){rf(r,s)},c}function MC(r){return r=Ws(r),r.tag=3,r}function PC(r,s,c,h){var v=c.type.getDerivedStateFromError;if(typeof v=="function"){var C=h.value;r.payload=function(){return v(C)},r.callback=function(){kC(s,c,h)}}var L=c.stateNode;L!==null&&typeof L.componentDidCatch=="function"&&(r.callback=function(){kC(s,c,h),typeof v!="function"&&(to===null?to=new Set([this]):to.add(this));var X=h.stack;this.componentDidCatch(h.value,{componentStack:X!==null?X:""})})}function UR(r,s,c,h,v){if(c.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(s=c.alternate,s!==null&&Vi(s,c,v,!0),c=Sr.current,c!==null){switch(c.tag){case 31:case 13:return zr===null?gf():c.alternate===null&&un===0&&(un=3),c.flags&=-257,c.flags|=65536,c.lanes=v,h===Ud?c.flags|=16384:(s=c.updateQueue,s===null?c.updateQueue=new Set([h]):s.add(h),Xg(r,h,v)),!1;case 22:return c.flags|=65536,h===Ud?c.flags|=16384:(s=c.updateQueue,s===null?(s={transitions:null,markerInstances:null,retryQueue:new Set([h])},c.updateQueue=s):(c=s.retryQueue,c===null?s.retryQueue=new Set([h]):c.add(h)),Xg(r,h,v)),!1}throw Error(a(435,c.tag))}return Xg(r,h,v),gf(),!1}if(At)return s=Sr.current,s!==null?((s.flags&65536)===0&&(s.flags|=256),s.flags|=65536,s.lanes=v,h!==Hm&&(r=Error(a(422),{cause:h}),Nc(Lr(r,c)))):(h!==Hm&&(s=Error(a(423),{cause:h}),Nc(Lr(s,c))),r=r.current.alternate,r.flags|=65536,v&=-v,r.lanes|=v,h=Lr(h,c),v=wg(r.stateNode,h,v),eg(r,v),un!==4&&(un=2)),!1;var C=Error(a(520),{cause:h});if(C=Lr(C,c),zc===null?zc=[C]:zc.push(C),un!==4&&(un=2),s===null)return!0;h=Lr(h,c),c=s;do{switch(c.tag){case 3:return c.flags|=65536,r=v&-v,c.lanes|=r,r=wg(c.stateNode,h,r),eg(c,r),!1;case 1:if(s=c.type,C=c.stateNode,(c.flags&128)===0&&(typeof s.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(to===null||!to.has(C))))return c.flags|=65536,v&=-v,c.lanes|=v,v=MC(v),PC(v,r,c,h),eg(c,v),!1}c=c.return}while(c!==null);return!1}var Eg=Error(a(461)),Cn=!1;function Mn(r,s,c,h){s.child=r===null?Fx(s,null,c,h):Zo(s,r.child,c,h)}function LC(r,s,c,h,v){c=c.render;var C=s.ref;if("ref"in h){var L={};for(var X in h)X!=="ref"&&(L[X]=h[X])}else L=h;return Wo(s),h=og(r,s,c,L,C,v),X=ig(),r!==null&&!Cn?(lg(r,s,v),rs(r,s,v)):(At&&X&&Fm(s),s.flags|=1,Mn(r,s,h,v),s.child)}function BC(r,s,c,h,v){if(r===null){var C=c.type;return typeof C=="function"&&!Lm(C)&&C.defaultProps===void 0&&c.compare===null?(s.tag=15,s.type=C,qC(r,s,C,h,v)):(r=Ld(c.type,null,h,s,s.mode,v),r.ref=s.ref,r.return=s,s.child=r)}if(C=r.child,!Og(r,v)){var L=C.memoizedProps;if(c=c.compare,c=c!==null?c:xc,c(L,h)&&r.ref===s.ref)return rs(r,s,v)}return s.flags|=1,r=Qa(C,h),r.ref=s.ref,r.return=s,s.child=r}function qC(r,s,c,h,v){if(r!==null){var C=r.memoizedProps;if(xc(C,h)&&r.ref===s.ref)if(Cn=!1,s.pendingProps=h=C,Og(r,v))(r.flags&131072)!==0&&(Cn=!0);else return s.lanes=r.lanes,rs(r,s,v)}return $g(r,s,c,h,v)}function FC(r,s,c,h){var v=h.children,C=r!==null?r.memoizedState:null;if(r===null&&s.stateNode===null&&(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((s.flags&128)!==0){if(C=C!==null?C.baseLanes|c:c,r!==null){for(h=s.child=r.child,v=0;h!==null;)v=v|h.lanes|h.childLanes,h=h.sibling;h=v&~C}else h=0,s.child=null;return zC(r,s,C,c,h)}if((c&536870912)!==0)s.memoizedState={baseLanes:0,cachePool:null},r!==null&&zd(s,C!==null?C.cachePool:null),C!==null?Ux(s,C):ng(),Vx(s);else return h=s.lanes=536870912,zC(r,s,C!==null?C.baseLanes|c:c,c,h)}else C!==null?(zd(s,C.cachePool),Ux(s,C),Qs(),s.memoizedState=null):(r!==null&&zd(s,null),ng(),Qs());return Mn(r,s,v,c),s.child}function kc(r,s){return r!==null&&r.tag===22||s.stateNode!==null||(s.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),s.sibling}function zC(r,s,c,h,v){var C=Km();return C=C===null?null:{parent:vn._currentValue,pool:C},s.memoizedState={baseLanes:c,cachePool:C},r!==null&&zd(s,null),ng(),Vx(s),r!==null&&Vi(r,s,h,!0),s.childLanes=v,null}function af(r,s){return s=of({mode:s.mode,children:s.children},r.mode),s.ref=r.ref,r.child=s,s.return=r,s}function HC(r,s,c){return Zo(s,r.child,null,c),r=af(s,s.pendingProps),r.flags|=2,Nr(s),s.memoizedState=null,r}function VR(r,s,c){var h=s.pendingProps,v=(s.flags&128)!==0;if(s.flags&=-129,r===null){if(At){if(h.mode==="hidden")return r=af(s,h),s.lanes=536870912,kc(null,r);if(ag(s),(r=Kt)?(r=tN(r,Fr),r=r!==null&&r.data==="&"?r:null,r!==null&&(s.memoizedState={dehydrated:r,treeContext:Hs!==null?{id:Da,overflow:ja}:null,retryLane:536870912,hydrationErrors:null},c=$x(r),c.return=s,s.child=c,In=s,Kt=null)):r=null,r===null)throw Vs(s);return s.lanes=536870912,null}return af(s,h)}var C=r.memoizedState;if(C!==null){var L=C.dehydrated;if(ag(s),v)if(s.flags&256)s.flags&=-257,s=HC(r,s,c);else if(s.memoizedState!==null)s.child=r.child,s.flags|=128,s=null;else throw Error(a(558));else if(Cn||Vi(r,s,c,!1),v=(c&r.childLanes)!==0,Cn||v){if(h=Wt,h!==null&&(L=Ft(h,c),L!==0&&L!==C.retryLane))throw C.retryLane=L,Uo(r,L),mr(h,r,L),Eg;gf(),s=HC(r,s,c)}else r=C.treeContext,Kt=Hr(L.nextSibling),In=s,At=!0,Us=null,Fr=!1,r!==null&&Ax(s,r),s=af(s,h),s.flags|=4096;return s}return r=Qa(r.child,{mode:h.mode,children:h.children}),r.ref=s.ref,s.child=r,r.return=s,r}function sf(r,s){var c=s.ref;if(c===null)r!==null&&r.ref!==null&&(s.flags|=4194816);else{if(typeof c!="function"&&typeof c!="object")throw Error(a(284));(r===null||r.ref!==c)&&(s.flags|=4194816)}}function $g(r,s,c,h,v){return Wo(s),c=og(r,s,c,h,void 0,v),h=ig(),r!==null&&!Cn?(lg(r,s,v),rs(r,s,v)):(At&&h&&Fm(s),s.flags|=1,Mn(r,s,c,v),s.child)}function UC(r,s,c,h,v,C){return Wo(s),s.updateQueue=null,c=Yx(s,h,c,v),Gx(r),h=ig(),r!==null&&!Cn?(lg(r,s,C),rs(r,s,C)):(At&&h&&Fm(s),s.flags|=1,Mn(r,s,c,C),s.child)}function VC(r,s,c,h,v){if(Wo(s),s.stateNode===null){var C=Fi,L=c.contextType;typeof L=="object"&&L!==null&&(C=kn(L)),C=new c(h,C),s.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,C.updater=Ng,s.stateNode=C,C._reactInternals=s,C=s.stateNode,C.props=h,C.state=s.memoizedState,C.refs={},Zm(s),L=c.contextType,C.context=typeof L=="object"&&L!==null?kn(L):Fi,C.state=s.memoizedState,L=c.getDerivedStateFromProps,typeof L=="function"&&(Sg(s,c,L,h),C.state=s.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(L=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),L!==C.state&&Ng.enqueueReplaceState(C,C.state,null),Dc(s,h,C,v),Ac(),C.state=s.memoizedState),typeof C.componentDidMount=="function"&&(s.flags|=4194308),h=!0}else if(r===null){C=s.stateNode;var X=s.memoizedProps,te=ei(c,X);C.props=te;var le=C.context,Ce=c.contextType;L=Fi,typeof Ce=="object"&&Ce!==null&&(L=kn(Ce));var we=c.getDerivedStateFromProps;Ce=typeof we=="function"||typeof C.getSnapshotBeforeUpdate=="function",X=s.pendingProps!==X,Ce||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(X||le!==L)&&jC(s,C,h,L),Ys=!1;var ue=s.memoizedState;C.state=ue,Dc(s,h,C,v),Ac(),le=s.memoizedState,X||ue!==le||Ys?(typeof we=="function"&&(Sg(s,c,we,h),le=s.memoizedState),(te=Ys||DC(s,c,te,h,ue,le,L))?(Ce||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount()),typeof C.componentDidMount=="function"&&(s.flags|=4194308)):(typeof C.componentDidMount=="function"&&(s.flags|=4194308),s.memoizedProps=h,s.memoizedState=le),C.props=h,C.state=le,C.context=L,h=te):(typeof C.componentDidMount=="function"&&(s.flags|=4194308),h=!1)}else{C=s.stateNode,Jm(r,s),L=s.memoizedProps,Ce=ei(c,L),C.props=Ce,we=s.pendingProps,ue=C.context,le=c.contextType,te=Fi,typeof le=="object"&&le!==null&&(te=kn(le)),X=c.getDerivedStateFromProps,(le=typeof X=="function"||typeof C.getSnapshotBeforeUpdate=="function")||typeof C.UNSAFE_componentWillReceiveProps!="function"&&typeof C.componentWillReceiveProps!="function"||(L!==we||ue!==te)&&jC(s,C,h,te),Ys=!1,ue=s.memoizedState,C.state=ue,Dc(s,h,C,v),Ac();var he=s.memoizedState;L!==we||ue!==he||Ys||r!==null&&r.dependencies!==null&&qd(r.dependencies)?(typeof X=="function"&&(Sg(s,c,X,h),he=s.memoizedState),(Ce=Ys||DC(s,c,Ce,h,ue,he,te)||r!==null&&r.dependencies!==null&&qd(r.dependencies))?(le||typeof C.UNSAFE_componentWillUpdate!="function"&&typeof C.componentWillUpdate!="function"||(typeof C.componentWillUpdate=="function"&&C.componentWillUpdate(h,he,te),typeof C.UNSAFE_componentWillUpdate=="function"&&C.UNSAFE_componentWillUpdate(h,he,te)),typeof C.componentDidUpdate=="function"&&(s.flags|=4),typeof C.getSnapshotBeforeUpdate=="function"&&(s.flags|=1024)):(typeof C.componentDidUpdate!="function"||L===r.memoizedProps&&ue===r.memoizedState||(s.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||L===r.memoizedProps&&ue===r.memoizedState||(s.flags|=1024),s.memoizedProps=h,s.memoizedState=he),C.props=h,C.state=he,C.context=te,h=Ce):(typeof C.componentDidUpdate!="function"||L===r.memoizedProps&&ue===r.memoizedState||(s.flags|=4),typeof C.getSnapshotBeforeUpdate!="function"||L===r.memoizedProps&&ue===r.memoizedState||(s.flags|=1024),h=!1)}return C=h,sf(r,s),h=(s.flags&128)!==0,C||h?(C=s.stateNode,c=h&&typeof c.getDerivedStateFromError!="function"?null:C.render(),s.flags|=1,r!==null&&h?(s.child=Zo(s,r.child,null,v),s.child=Zo(s,null,c,v)):Mn(r,s,c,v),s.memoizedState=C.state,r=s.child):r=rs(r,s,v),r}function GC(r,s,c,h){return Go(),s.flags|=256,Mn(r,s,c,h),s.child}var Tg={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function _g(r){return{baseLanes:r,cachePool:kx()}}function Ag(r,s,c){return r=r!==null?r.childLanes&~c:0,s&&(r|=Er),r}function YC(r,s,c){var h=s.pendingProps,v=!1,C=(s.flags&128)!==0,L;if((L=C)||(L=r!==null&&r.memoizedState===null?!1:(hn.current&2)!==0),L&&(v=!0,s.flags&=-129),L=(s.flags&32)!==0,s.flags&=-33,r===null){if(At){if(v?Ks(s):Qs(),(r=Kt)?(r=tN(r,Fr),r=r!==null&&r.data!=="&"?r:null,r!==null&&(s.memoizedState={dehydrated:r,treeContext:Hs!==null?{id:Da,overflow:ja}:null,retryLane:536870912,hydrationErrors:null},c=$x(r),c.return=s,s.child=c,In=s,Kt=null)):r=null,r===null)throw Vs(s);return dy(r)?s.lanes=32:s.lanes=536870912,null}var X=h.children;return h=h.fallback,v?(Qs(),v=s.mode,X=of({mode:"hidden",children:X},v),h=Vo(h,v,c,null),X.return=s,h.return=s,X.sibling=h,s.child=X,h=s.child,h.memoizedState=_g(c),h.childLanes=Ag(r,L,c),s.memoizedState=Tg,kc(null,h)):(Ks(s),Dg(s,X))}var te=r.memoizedState;if(te!==null&&(X=te.dehydrated,X!==null)){if(C)s.flags&256?(Ks(s),s.flags&=-257,s=jg(r,s,c)):s.memoizedState!==null?(Qs(),s.child=r.child,s.flags|=128,s=null):(Qs(),X=h.fallback,v=s.mode,h=of({mode:"visible",children:h.children},v),X=Vo(X,v,c,null),X.flags|=2,h.return=s,X.return=s,h.sibling=X,s.child=h,Zo(s,r.child,null,c),h=s.child,h.memoizedState=_g(c),h.childLanes=Ag(r,L,c),s.memoizedState=Tg,s=kc(null,h));else if(Ks(s),dy(X)){if(L=X.nextSibling&&X.nextSibling.dataset,L)var le=L.dgst;L=le,h=Error(a(419)),h.stack="",h.digest=L,Nc({value:h,source:null,stack:null}),s=jg(r,s,c)}else if(Cn||Vi(r,s,c,!1),L=(c&r.childLanes)!==0,Cn||L){if(L=Wt,L!==null&&(h=Ft(L,c),h!==0&&h!==te.retryLane))throw te.retryLane=h,Uo(r,h),mr(L,r,h),Eg;uy(X)||gf(),s=jg(r,s,c)}else uy(X)?(s.flags|=192,s.child=r.child,s=null):(r=te.treeContext,Kt=Hr(X.nextSibling),In=s,At=!0,Us=null,Fr=!1,r!==null&&Ax(s,r),s=Dg(s,h.children),s.flags|=4096);return s}return v?(Qs(),X=h.fallback,v=s.mode,te=r.child,le=te.sibling,h=Qa(te,{mode:"hidden",children:h.children}),h.subtreeFlags=te.subtreeFlags&65011712,le!==null?X=Qa(le,X):(X=Vo(X,v,c,null),X.flags|=2),X.return=s,h.return=s,h.sibling=X,s.child=h,kc(null,h),h=s.child,X=r.child.memoizedState,X===null?X=_g(c):(v=X.cachePool,v!==null?(te=vn._currentValue,v=v.parent!==te?{parent:te,pool:te}:v):v=kx(),X={baseLanes:X.baseLanes|c,cachePool:v}),h.memoizedState=X,h.childLanes=Ag(r,L,c),s.memoizedState=Tg,kc(r.child,h)):(Ks(s),c=r.child,r=c.sibling,c=Qa(c,{mode:"visible",children:h.children}),c.return=s,c.sibling=null,r!==null&&(L=s.deletions,L===null?(s.deletions=[r],s.flags|=16):L.push(r)),s.child=c,s.memoizedState=null,c)}function Dg(r,s){return s=of({mode:"visible",children:s},r.mode),s.return=r,r.child=s}function of(r,s){return r=Cr(22,r,null,s),r.lanes=0,r}function jg(r,s,c){return Zo(s,r.child,null,c),r=Dg(s,s.pendingProps.children),r.flags|=2,s.memoizedState=null,r}function WC(r,s,c){r.lanes|=s;var h=r.alternate;h!==null&&(h.lanes|=s),Gm(r.return,s,c)}function Rg(r,s,c,h,v,C){var L=r.memoizedState;L===null?r.memoizedState={isBackwards:s,rendering:null,renderingStartTime:0,last:h,tail:c,tailMode:v,treeForkCount:C}:(L.isBackwards=s,L.rendering=null,L.renderingStartTime=0,L.last=h,L.tail=c,L.tailMode=v,L.treeForkCount=C)}function XC(r,s,c){var h=s.pendingProps,v=h.revealOrder,C=h.tail;h=h.children;var L=hn.current,X=(L&2)!==0;if(X?(L=L&1|2,s.flags|=128):L&=1,K(hn,L),Mn(r,s,h,c),h=At?Sc:0,!X&&r!==null&&(r.flags&128)!==0)e:for(r=s.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&WC(r,c,s);else if(r.tag===19)WC(r,c,s);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===s)break e;for(;r.sibling===null;){if(r.return===null||r.return===s)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}switch(v){case"forwards":for(c=s.child,v=null;c!==null;)r=c.alternate,r!==null&&Wd(r)===null&&(v=c),c=c.sibling;c=v,c===null?(v=s.child,s.child=null):(v=c.sibling,c.sibling=null),Rg(s,!1,v,c,C,h);break;case"backwards":case"unstable_legacy-backwards":for(c=null,v=s.child,s.child=null;v!==null;){if(r=v.alternate,r!==null&&Wd(r)===null){s.child=v;break}r=v.sibling,v.sibling=c,c=v,v=r}Rg(s,!0,c,null,C,h);break;case"together":Rg(s,!1,null,null,void 0,h);break;default:s.memoizedState=null}return s.child}function rs(r,s,c){if(r!==null&&(s.dependencies=r.dependencies),eo|=s.lanes,(c&s.childLanes)===0)if(r!==null){if(Vi(r,s,c,!1),(c&s.childLanes)===0)return null}else return null;if(r!==null&&s.child!==r.child)throw Error(a(153));if(s.child!==null){for(r=s.child,c=Qa(r,r.pendingProps),s.child=c,c.return=s;r.sibling!==null;)r=r.sibling,c=c.sibling=Qa(r,r.pendingProps),c.return=s;c.sibling=null}return s.child}function Og(r,s){return(r.lanes&s)!==0?!0:(r=r.dependencies,!!(r!==null&&qd(r)))}function GR(r,s,c){switch(s.tag){case 3:ye(s,s.stateNode.containerInfo),Gs(s,vn,r.memoizedState.cache),Go();break;case 27:case 5:Se(s);break;case 4:ye(s,s.stateNode.containerInfo);break;case 10:Gs(s,s.type,s.memoizedProps.value);break;case 31:if(s.memoizedState!==null)return s.flags|=128,ag(s),null;break;case 13:var h=s.memoizedState;if(h!==null)return h.dehydrated!==null?(Ks(s),s.flags|=128,null):(c&s.child.childLanes)!==0?YC(r,s,c):(Ks(s),r=rs(r,s,c),r!==null?r.sibling:null);Ks(s);break;case 19:var v=(r.flags&128)!==0;if(h=(c&s.childLanes)!==0,h||(Vi(r,s,c,!1),h=(c&s.childLanes)!==0),v){if(h)return XC(r,s,c);s.flags|=128}if(v=s.memoizedState,v!==null&&(v.rendering=null,v.tail=null,v.lastEffect=null),K(hn,hn.current),h)break;return null;case 22:return s.lanes=0,FC(r,s,c,s.pendingProps);case 24:Gs(s,vn,r.memoizedState.cache)}return rs(r,s,c)}function KC(r,s,c){if(r!==null)if(r.memoizedProps!==s.pendingProps)Cn=!0;else{if(!Og(r,c)&&(s.flags&128)===0)return Cn=!1,GR(r,s,c);Cn=(r.flags&131072)!==0}else Cn=!1,At&&(s.flags&1048576)!==0&&_x(s,Sc,s.index);switch(s.lanes=0,s.tag){case 16:e:{var h=s.pendingProps;if(r=Ko(s.elementType),s.type=r,typeof r=="function")Lm(r)?(h=ei(r,h),s.tag=1,s=VC(null,s,r,h,c)):(s.tag=0,s=$g(null,s,r,h,c));else{if(r!=null){var v=r.$$typeof;if(v===R){s.tag=11,s=LC(null,s,r,h,c);break e}else if(v===_){s.tag=14,s=BC(null,s,r,h,c);break e}}throw s=j(r)||r,Error(a(306,s,""))}}return s;case 0:return $g(r,s,s.type,s.pendingProps,c);case 1:return h=s.type,v=ei(h,s.pendingProps),VC(r,s,h,v,c);case 3:e:{if(ye(s,s.stateNode.containerInfo),r===null)throw Error(a(387));h=s.pendingProps;var C=s.memoizedState;v=C.element,Jm(r,s),Dc(s,h,null,c);var L=s.memoizedState;if(h=L.cache,Gs(s,vn,h),h!==C.cache&&Ym(s,[vn],c,!0),Ac(),h=L.element,C.isDehydrated)if(C={element:h,isDehydrated:!1,cache:L.cache},s.updateQueue.baseState=C,s.memoizedState=C,s.flags&256){s=GC(r,s,h,c);break e}else if(h!==v){v=Lr(Error(a(424)),s),Nc(v),s=GC(r,s,h,c);break e}else{switch(r=s.stateNode.containerInfo,r.nodeType){case 9:r=r.body;break;default:r=r.nodeName==="HTML"?r.ownerDocument.body:r}for(Kt=Hr(r.firstChild),In=s,At=!0,Us=null,Fr=!0,c=Fx(s,null,h,c),s.child=c;c;)c.flags=c.flags&-3|4096,c=c.sibling}else{if(Go(),h===v){s=rs(r,s,c);break e}Mn(r,s,h,c)}s=s.child}return s;case 26:return sf(r,s),r===null?(c=iN(s.type,null,s.pendingProps,null))?s.memoizedState=c:At||(c=s.type,r=s.pendingProps,h=Nf(G.current).createElement(c),h[yn]=s,h[Tn]=r,Pn(h,c,r),ze(h),s.stateNode=h):s.memoizedState=iN(s.type,r.memoizedProps,s.pendingProps,r.memoizedState),null;case 27:return Se(s),r===null&&At&&(h=s.stateNode=aN(s.type,s.pendingProps,G.current),In=s,Fr=!0,v=Kt,so(s.type)?(fy=v,Kt=Hr(h.firstChild)):Kt=v),Mn(r,s,s.pendingProps.children,c),sf(r,s),r===null&&(s.flags|=4194304),s.child;case 5:return r===null&&At&&((v=h=Kt)&&(h=SO(h,s.type,s.pendingProps,Fr),h!==null?(s.stateNode=h,In=s,Kt=Hr(h.firstChild),Fr=!1,v=!0):v=!1),v||Vs(s)),Se(s),v=s.type,C=s.pendingProps,L=r!==null?r.memoizedProps:null,h=C.children,iy(v,C)?h=null:L!==null&&iy(v,L)&&(s.flags|=32),s.memoizedState!==null&&(v=og(r,s,PR,null,null,c),Kc._currentValue=v),sf(r,s),Mn(r,s,h,c),s.child;case 6:return r===null&&At&&((r=c=Kt)&&(c=NO(c,s.pendingProps,Fr),c!==null?(s.stateNode=c,In=s,Kt=null,r=!0):r=!1),r||Vs(s)),null;case 13:return YC(r,s,c);case 4:return ye(s,s.stateNode.containerInfo),h=s.pendingProps,r===null?s.child=Zo(s,null,h,c):Mn(r,s,h,c),s.child;case 11:return LC(r,s,s.type,s.pendingProps,c);case 7:return Mn(r,s,s.pendingProps,c),s.child;case 8:return Mn(r,s,s.pendingProps.children,c),s.child;case 12:return Mn(r,s,s.pendingProps.children,c),s.child;case 10:return h=s.pendingProps,Gs(s,s.type,h.value),Mn(r,s,h.children,c),s.child;case 9:return v=s.type._context,h=s.pendingProps.children,Wo(s),v=kn(v),h=h(v),s.flags|=1,Mn(r,s,h,c),s.child;case 14:return BC(r,s,s.type,s.pendingProps,c);case 15:return qC(r,s,s.type,s.pendingProps,c);case 19:return XC(r,s,c);case 31:return VR(r,s,c);case 22:return FC(r,s,c,s.pendingProps);case 24:return Wo(s),h=kn(vn),r===null?(v=Km(),v===null&&(v=Wt,C=Wm(),v.pooledCache=C,C.refCount++,C!==null&&(v.pooledCacheLanes|=c),v=C),s.memoizedState={parent:h,cache:v},Zm(s),Gs(s,vn,v)):((r.lanes&c)!==0&&(Jm(r,s),Dc(s,null,null,c),Ac()),v=r.memoizedState,C=s.memoizedState,v.parent!==h?(v={parent:h,cache:h},s.memoizedState=v,s.lanes===0&&(s.memoizedState=s.updateQueue.baseState=v),Gs(s,vn,h)):(h=C.cache,Gs(s,vn,h),h!==v.cache&&Ym(s,[vn],c,!0))),Mn(r,s,s.pendingProps.children,c),s.child;case 29:throw s.pendingProps}throw Error(a(156,s.tag))}function as(r){r.flags|=4}function Ig(r,s,c,h,v){if((s=(r.mode&32)!==0)&&(s=!1),s){if(r.flags|=16777216,(v&335544128)===v)if(r.stateNode.complete)r.flags|=8192;else if(NS())r.flags|=8192;else throw Qo=Ud,Qm}else r.flags&=-16777217}function QC(r,s){if(s.type!=="stylesheet"||(s.state.loading&4)!==0)r.flags&=-16777217;else if(r.flags|=16777216,!fN(s))if(NS())r.flags|=8192;else throw Qo=Ud,Qm}function lf(r,s){s!==null&&(r.flags|=4),r.flags&16384&&(s=r.tag!==22?oa():536870912,r.lanes|=s,rl|=s)}function Mc(r,s){if(!At)switch(r.tailMode){case"hidden":s=r.tail;for(var c=null;s!==null;)s.alternate!==null&&(c=s),s=s.sibling;c===null?r.tail=null:c.sibling=null;break;case"collapsed":c=r.tail;for(var h=null;c!==null;)c.alternate!==null&&(h=c),c=c.sibling;h===null?s||r.tail===null?r.tail=null:r.tail.sibling=null:h.sibling=null}}function Qt(r){var s=r.alternate!==null&&r.alternate.child===r.child,c=0,h=0;if(s)for(var v=r.child;v!==null;)c|=v.lanes|v.childLanes,h|=v.subtreeFlags&65011712,h|=v.flags&65011712,v.return=r,v=v.sibling;else for(v=r.child;v!==null;)c|=v.lanes|v.childLanes,h|=v.subtreeFlags,h|=v.flags,v.return=r,v=v.sibling;return r.subtreeFlags|=h,r.childLanes=c,s}function YR(r,s,c){var h=s.pendingProps;switch(zm(s),s.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Qt(s),null;case 1:return Qt(s),null;case 3:return c=s.stateNode,h=null,r!==null&&(h=r.memoizedState.cache),s.memoizedState.cache!==h&&(s.flags|=2048),es(vn),me(),c.pendingContext&&(c.context=c.pendingContext,c.pendingContext=null),(r===null||r.child===null)&&(Ui(s)?as(s):r===null||r.memoizedState.isDehydrated&&(s.flags&256)===0||(s.flags|=1024,Um())),Qt(s),null;case 26:var v=s.type,C=s.memoizedState;return r===null?(as(s),C!==null?(Qt(s),QC(s,C)):(Qt(s),Ig(s,v,null,h,c))):C?C!==r.memoizedState?(as(s),Qt(s),QC(s,C)):(Qt(s),s.flags&=-16777217):(r=r.memoizedProps,r!==h&&as(s),Qt(s),Ig(s,v,r,h,c)),null;case 27:if(Be(s),c=G.current,v=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==h&&as(s);else{if(!h){if(s.stateNode===null)throw Error(a(166));return Qt(s),null}r=Q.current,Ui(s)?Dx(s):(r=aN(v,h,c),s.stateNode=r,as(s))}return Qt(s),null;case 5:if(Be(s),v=s.type,r!==null&&s.stateNode!=null)r.memoizedProps!==h&&as(s);else{if(!h){if(s.stateNode===null)throw Error(a(166));return Qt(s),null}if(C=Q.current,Ui(s))Dx(s);else{var L=Nf(G.current);switch(C){case 1:C=L.createElementNS("http://www.w3.org/2000/svg",v);break;case 2:C=L.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;default:switch(v){case"svg":C=L.createElementNS("http://www.w3.org/2000/svg",v);break;case"math":C=L.createElementNS("http://www.w3.org/1998/Math/MathML",v);break;case"script":C=L.createElement("div"),C.innerHTML="<script><\/script>",C=C.removeChild(C.firstChild);break;case"select":C=typeof h.is=="string"?L.createElement("select",{is:h.is}):L.createElement("select"),h.multiple?C.multiple=!0:h.size&&(C.size=h.size);break;default:C=typeof h.is=="string"?L.createElement(v,{is:h.is}):L.createElement(v)}}C[yn]=s,C[Tn]=h;e:for(L=s.child;L!==null;){if(L.tag===5||L.tag===6)C.appendChild(L.stateNode);else if(L.tag!==4&&L.tag!==27&&L.child!==null){L.child.return=L,L=L.child;continue}if(L===s)break e;for(;L.sibling===null;){if(L.return===null||L.return===s)break e;L=L.return}L.sibling.return=L.return,L=L.sibling}s.stateNode=C;e:switch(Pn(C,v,h),v){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&as(s)}}return Qt(s),Ig(s,s.type,r===null?null:r.memoizedProps,s.pendingProps,c),null;case 6:if(r&&s.stateNode!=null)r.memoizedProps!==h&&as(s);else{if(typeof h!="string"&&s.stateNode===null)throw Error(a(166));if(r=G.current,Ui(s)){if(r=s.stateNode,c=s.memoizedProps,h=null,v=In,v!==null)switch(v.tag){case 27:case 5:h=v.memoizedProps}r[yn]=s,r=!!(r.nodeValue===c||h!==null&&h.suppressHydrationWarning===!0||YS(r.nodeValue,c)),r||Vs(s,!0)}else r=Nf(r).createTextNode(h),r[yn]=s,s.stateNode=r}return Qt(s),null;case 31:if(c=s.memoizedState,r===null||r.memoizedState!==null){if(h=Ui(s),c!==null){if(r===null){if(!h)throw Error(a(318));if(r=s.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(a(557));r[yn]=s}else Go(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Qt(s),r=!1}else c=Um(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=c),r=!0;if(!r)return s.flags&256?(Nr(s),s):(Nr(s),null);if((s.flags&128)!==0)throw Error(a(558))}return Qt(s),null;case 13:if(h=s.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(v=Ui(s),h!==null&&h.dehydrated!==null){if(r===null){if(!v)throw Error(a(318));if(v=s.memoizedState,v=v!==null?v.dehydrated:null,!v)throw Error(a(317));v[yn]=s}else Go(),(s.flags&128)===0&&(s.memoizedState=null),s.flags|=4;Qt(s),v=!1}else v=Um(),r!==null&&r.memoizedState!==null&&(r.memoizedState.hydrationErrors=v),v=!0;if(!v)return s.flags&256?(Nr(s),s):(Nr(s),null)}return Nr(s),(s.flags&128)!==0?(s.lanes=c,s):(c=h!==null,r=r!==null&&r.memoizedState!==null,c&&(h=s.child,v=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(v=h.alternate.memoizedState.cachePool.pool),C=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(C=h.memoizedState.cachePool.pool),C!==v&&(h.flags|=2048)),c!==r&&c&&(s.child.flags|=8192),lf(s,s.updateQueue),Qt(s),null);case 4:return me(),r===null&&ny(s.stateNode.containerInfo),Qt(s),null;case 10:return es(s.type),Qt(s),null;case 19:if(Y(hn),h=s.memoizedState,h===null)return Qt(s),null;if(v=(s.flags&128)!==0,C=h.rendering,C===null)if(v)Mc(h,!1);else{if(un!==0||r!==null&&(r.flags&128)!==0)for(r=s.child;r!==null;){if(C=Wd(r),C!==null){for(s.flags|=128,Mc(h,!1),r=C.updateQueue,s.updateQueue=r,lf(s,r),s.subtreeFlags=0,r=c,c=s.child;c!==null;)Ex(c,r),c=c.sibling;return K(hn,hn.current&1|2),At&&Za(s,h.treeForkCount),s.child}r=r.sibling}h.tail!==null&&$e()>pf&&(s.flags|=128,v=!0,Mc(h,!1),s.lanes=4194304)}else{if(!v)if(r=Wd(C),r!==null){if(s.flags|=128,v=!0,r=r.updateQueue,s.updateQueue=r,lf(s,r),Mc(h,!0),h.tail===null&&h.tailMode==="hidden"&&!C.alternate&&!At)return Qt(s),null}else 2*$e()-h.renderingStartTime>pf&&c!==536870912&&(s.flags|=128,v=!0,Mc(h,!1),s.lanes=4194304);h.isBackwards?(C.sibling=s.child,s.child=C):(r=h.last,r!==null?r.sibling=C:s.child=C,h.last=C)}return h.tail!==null?(r=h.tail,h.rendering=r,h.tail=r.sibling,h.renderingStartTime=$e(),r.sibling=null,c=hn.current,K(hn,v?c&1|2:c&1),At&&Za(s,h.treeForkCount),r):(Qt(s),null);case 22:case 23:return Nr(s),rg(),h=s.memoizedState!==null,r!==null?r.memoizedState!==null!==h&&(s.flags|=8192):h&&(s.flags|=8192),h?(c&536870912)!==0&&(s.flags&128)===0&&(Qt(s),s.subtreeFlags&6&&(s.flags|=8192)):Qt(s),c=s.updateQueue,c!==null&&lf(s,c.retryQueue),c=null,r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),h=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(h=s.memoizedState.cachePool.pool),h!==c&&(s.flags|=2048),r!==null&&Y(Xo),null;case 24:return c=null,r!==null&&(c=r.memoizedState.cache),s.memoizedState.cache!==c&&(s.flags|=2048),es(vn),Qt(s),null;case 25:return null;case 30:return null}throw Error(a(156,s.tag))}function WR(r,s){switch(zm(s),s.tag){case 1:return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 3:return es(vn),me(),r=s.flags,(r&65536)!==0&&(r&128)===0?(s.flags=r&-65537|128,s):null;case 26:case 27:case 5:return Be(s),null;case 31:if(s.memoizedState!==null){if(Nr(s),s.alternate===null)throw Error(a(340));Go()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 13:if(Nr(s),r=s.memoizedState,r!==null&&r.dehydrated!==null){if(s.alternate===null)throw Error(a(340));Go()}return r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 19:return Y(hn),null;case 4:return me(),null;case 10:return es(s.type),null;case 22:case 23:return Nr(s),rg(),r!==null&&Y(Xo),r=s.flags,r&65536?(s.flags=r&-65537|128,s):null;case 24:return es(vn),null;case 25:return null;default:return null}}function ZC(r,s){switch(zm(s),s.tag){case 3:es(vn),me();break;case 26:case 27:case 5:Be(s);break;case 4:me();break;case 31:s.memoizedState!==null&&Nr(s);break;case 13:Nr(s);break;case 19:Y(hn);break;case 10:es(s.type);break;case 22:case 23:Nr(s),rg(),r!==null&&Y(Xo);break;case 24:es(vn)}}function Pc(r,s){try{var c=s.updateQueue,h=c!==null?c.lastEffect:null;if(h!==null){var v=h.next;c=v;do{if((c.tag&r)===r){h=void 0;var C=c.create,L=c.inst;h=C(),L.destroy=h}c=c.next}while(c!==v)}}catch(X){Ht(s,s.return,X)}}function Zs(r,s,c){try{var h=s.updateQueue,v=h!==null?h.lastEffect:null;if(v!==null){var C=v.next;h=C;do{if((h.tag&r)===r){var L=h.inst,X=L.destroy;if(X!==void 0){L.destroy=void 0,v=s;var te=c,le=X;try{le()}catch(Ce){Ht(v,te,Ce)}}}h=h.next}while(h!==C)}}catch(Ce){Ht(s,s.return,Ce)}}function JC(r){var s=r.updateQueue;if(s!==null){var c=r.stateNode;try{Hx(s,c)}catch(h){Ht(r,r.return,h)}}}function eS(r,s,c){c.props=ei(r.type,r.memoizedProps),c.state=r.memoizedState;try{c.componentWillUnmount()}catch(h){Ht(r,s,h)}}function Lc(r,s){try{var c=r.ref;if(c!==null){switch(r.tag){case 26:case 27:case 5:var h=r.stateNode;break;case 30:h=r.stateNode;break;default:h=r.stateNode}typeof c=="function"?r.refCleanup=c(h):c.current=h}}catch(v){Ht(r,s,v)}}function Ra(r,s){var c=r.ref,h=r.refCleanup;if(c!==null)if(typeof h=="function")try{h()}catch(v){Ht(r,s,v)}finally{r.refCleanup=null,r=r.alternate,r!=null&&(r.refCleanup=null)}else if(typeof c=="function")try{c(null)}catch(v){Ht(r,s,v)}else c.current=null}function tS(r){var s=r.type,c=r.memoizedProps,h=r.stateNode;try{e:switch(s){case"button":case"input":case"select":case"textarea":c.autoFocus&&h.focus();break e;case"img":c.src?h.src=c.src:c.srcSet&&(h.srcset=c.srcSet)}}catch(v){Ht(r,r.return,v)}}function kg(r,s,c){try{var h=r.stateNode;gO(h,r.type,c,s),h[Tn]=s}catch(v){Ht(r,r.return,v)}}function nS(r){return r.tag===5||r.tag===3||r.tag===26||r.tag===27&&so(r.type)||r.tag===4}function Mg(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||nS(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.tag===27&&so(r.type)||r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function Pg(r,s,c){var h=r.tag;if(h===5||h===6)r=r.stateNode,s?(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c).insertBefore(r,s):(s=c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,s.appendChild(r),c=c._reactRootContainer,c!=null||s.onclick!==null||(s.onclick=Mr));else if(h!==4&&(h===27&&so(r.type)&&(c=r.stateNode,s=null),r=r.child,r!==null))for(Pg(r,s,c),r=r.sibling;r!==null;)Pg(r,s,c),r=r.sibling}function cf(r,s,c){var h=r.tag;if(h===5||h===6)r=r.stateNode,s?c.insertBefore(r,s):c.appendChild(r);else if(h!==4&&(h===27&&so(r.type)&&(c=r.stateNode),r=r.child,r!==null))for(cf(r,s,c),r=r.sibling;r!==null;)cf(r,s,c),r=r.sibling}function rS(r){var s=r.stateNode,c=r.memoizedProps;try{for(var h=r.type,v=s.attributes;v.length;)s.removeAttributeNode(v[0]);Pn(s,h,c),s[yn]=r,s[Tn]=c}catch(C){Ht(r,r.return,C)}}var ss=!1,Sn=!1,Lg=!1,aS=typeof WeakSet=="function"?WeakSet:Set,_n=null;function XR(r,s){if(r=r.containerInfo,sy=Df,r=gx(r),jm(r)){if("selectionStart"in r)var c={start:r.selectionStart,end:r.selectionEnd};else e:{c=(c=r.ownerDocument)&&c.defaultView||window;var h=c.getSelection&&c.getSelection();if(h&&h.rangeCount!==0){c=h.anchorNode;var v=h.anchorOffset,C=h.focusNode;h=h.focusOffset;try{c.nodeType,C.nodeType}catch{c=null;break e}var L=0,X=-1,te=-1,le=0,Ce=0,we=r,ue=null;t:for(;;){for(var he;we!==c||v!==0&&we.nodeType!==3||(X=L+v),we!==C||h!==0&&we.nodeType!==3||(te=L+h),we.nodeType===3&&(L+=we.nodeValue.length),(he=we.firstChild)!==null;)ue=we,we=he;for(;;){if(we===r)break t;if(ue===c&&++le===v&&(X=L),ue===C&&++Ce===h&&(te=L),(he=we.nextSibling)!==null)break;we=ue,ue=we.parentNode}we=he}c=X===-1||te===-1?null:{start:X,end:te}}else c=null}c=c||{start:0,end:0}}else c=null;for(oy={focusedElem:r,selectionRange:c},Df=!1,_n=s;_n!==null;)if(s=_n,r=s.child,(s.subtreeFlags&1028)!==0&&r!==null)r.return=s,_n=r;else for(;_n!==null;){switch(s=_n,C=s.alternate,r=s.flags,s.tag){case 0:if((r&4)!==0&&(r=s.updateQueue,r=r!==null?r.events:null,r!==null))for(c=0;c<r.length;c++)v=r[c],v.ref.impl=v.nextImpl;break;case 11:case 15:break;case 1:if((r&1024)!==0&&C!==null){r=void 0,c=s,v=C.memoizedProps,C=C.memoizedState,h=c.stateNode;try{var Ue=ei(c.type,v);r=h.getSnapshotBeforeUpdate(Ue,C),h.__reactInternalSnapshotBeforeUpdate=r}catch(et){Ht(c,c.return,et)}}break;case 3:if((r&1024)!==0){if(r=s.stateNode.containerInfo,c=r.nodeType,c===9)cy(r);else if(c===1)switch(r.nodeName){case"HEAD":case"HTML":case"BODY":cy(r);break;default:r.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((r&1024)!==0)throw Error(a(163))}if(r=s.sibling,r!==null){r.return=s.return,_n=r;break}_n=s.return}}function sS(r,s,c){var h=c.flags;switch(c.tag){case 0:case 11:case 15:is(r,c),h&4&&Pc(5,c);break;case 1:if(is(r,c),h&4)if(r=c.stateNode,s===null)try{r.componentDidMount()}catch(L){Ht(c,c.return,L)}else{var v=ei(c.type,s.memoizedProps);s=s.memoizedState;try{r.componentDidUpdate(v,s,r.__reactInternalSnapshotBeforeUpdate)}catch(L){Ht(c,c.return,L)}}h&64&&JC(c),h&512&&Lc(c,c.return);break;case 3:if(is(r,c),h&64&&(r=c.updateQueue,r!==null)){if(s=null,c.child!==null)switch(c.child.tag){case 27:case 5:s=c.child.stateNode;break;case 1:s=c.child.stateNode}try{Hx(r,s)}catch(L){Ht(c,c.return,L)}}break;case 27:s===null&&h&4&&rS(c);case 26:case 5:is(r,c),s===null&&h&4&&tS(c),h&512&&Lc(c,c.return);break;case 12:is(r,c);break;case 31:is(r,c),h&4&&lS(r,c);break;case 13:is(r,c),h&4&&cS(r,c),h&64&&(r=c.memoizedState,r!==null&&(r=r.dehydrated,r!==null&&(c=aO.bind(null,c),wO(r,c))));break;case 22:if(h=c.memoizedState!==null||ss,!h){s=s!==null&&s.memoizedState!==null||Sn,v=ss;var C=Sn;ss=h,(Sn=s)&&!C?ls(r,c,(c.subtreeFlags&8772)!==0):is(r,c),ss=v,Sn=C}break;case 30:break;default:is(r,c)}}function oS(r){var s=r.alternate;s!==null&&(r.alternate=null,oS(s)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(s=r.stateNode,s!==null&&J(s)),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}var en=null,dr=!1;function os(r,s,c){for(c=c.child;c!==null;)iS(r,s,c),c=c.sibling}function iS(r,s,c){if(vt&&typeof vt.onCommitFiberUnmount=="function")try{vt.onCommitFiberUnmount(ot,c)}catch{}switch(c.tag){case 26:Sn||Ra(c,s),os(r,s,c),c.memoizedState?c.memoizedState.count--:c.stateNode&&(c=c.stateNode,c.parentNode.removeChild(c));break;case 27:Sn||Ra(c,s);var h=en,v=dr;so(c.type)&&(en=c.stateNode,dr=!1),os(r,s,c),Yc(c.stateNode),en=h,dr=v;break;case 5:Sn||Ra(c,s);case 6:if(h=en,v=dr,en=null,os(r,s,c),en=h,dr=v,en!==null)if(dr)try{(en.nodeType===9?en.body:en.nodeName==="HTML"?en.ownerDocument.body:en).removeChild(c.stateNode)}catch(C){Ht(c,s,C)}else try{en.removeChild(c.stateNode)}catch(C){Ht(c,s,C)}break;case 18:en!==null&&(dr?(r=en,JS(r.nodeType===9?r.body:r.nodeName==="HTML"?r.ownerDocument.body:r,c.stateNode),dl(r)):JS(en,c.stateNode));break;case 4:h=en,v=dr,en=c.stateNode.containerInfo,dr=!0,os(r,s,c),en=h,dr=v;break;case 0:case 11:case 14:case 15:Zs(2,c,s),Sn||Zs(4,c,s),os(r,s,c);break;case 1:Sn||(Ra(c,s),h=c.stateNode,typeof h.componentWillUnmount=="function"&&eS(c,s,h)),os(r,s,c);break;case 21:os(r,s,c);break;case 22:Sn=(h=Sn)||c.memoizedState!==null,os(r,s,c),Sn=h;break;default:os(r,s,c)}}function lS(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null))){r=r.dehydrated;try{dl(r)}catch(c){Ht(s,s.return,c)}}}function cS(r,s){if(s.memoizedState===null&&(r=s.alternate,r!==null&&(r=r.memoizedState,r!==null&&(r=r.dehydrated,r!==null))))try{dl(r)}catch(c){Ht(s,s.return,c)}}function KR(r){switch(r.tag){case 31:case 13:case 19:var s=r.stateNode;return s===null&&(s=r.stateNode=new aS),s;case 22:return r=r.stateNode,s=r._retryCache,s===null&&(s=r._retryCache=new aS),s;default:throw Error(a(435,r.tag))}}function uf(r,s){var c=KR(r);s.forEach(function(h){if(!c.has(h)){c.add(h);var v=sO.bind(null,r,h);h.then(v,v)}})}function fr(r,s){var c=s.deletions;if(c!==null)for(var h=0;h<c.length;h++){var v=c[h],C=r,L=s,X=L;e:for(;X!==null;){switch(X.tag){case 27:if(so(X.type)){en=X.stateNode,dr=!1;break e}break;case 5:en=X.stateNode,dr=!1;break e;case 3:case 4:en=X.stateNode.containerInfo,dr=!0;break e}X=X.return}if(en===null)throw Error(a(160));iS(C,L,v),en=null,dr=!1,C=v.alternate,C!==null&&(C.return=null),v.return=null}if(s.subtreeFlags&13886)for(s=s.child;s!==null;)uS(s,r),s=s.sibling}var ha=null;function uS(r,s){var c=r.alternate,h=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:fr(s,r),pr(r),h&4&&(Zs(3,r,r.return),Pc(3,r),Zs(5,r,r.return));break;case 1:fr(s,r),pr(r),h&512&&(Sn||c===null||Ra(c,c.return)),h&64&&ss&&(r=r.updateQueue,r!==null&&(h=r.callbacks,h!==null&&(c=r.shared.hiddenCallbacks,r.shared.hiddenCallbacks=c===null?h:c.concat(h))));break;case 26:var v=ha;if(fr(s,r),pr(r),h&512&&(Sn||c===null||Ra(c,c.return)),h&4){var C=c!==null?c.memoizedState:null;if(h=r.memoizedState,c===null)if(h===null)if(r.stateNode===null){e:{h=r.type,c=r.memoizedProps,v=v.ownerDocument||v;t:switch(h){case"title":C=v.getElementsByTagName("title")[0],(!C||C[Bo]||C[yn]||C.namespaceURI==="http://www.w3.org/2000/svg"||C.hasAttribute("itemprop"))&&(C=v.createElement(h),v.head.insertBefore(C,v.querySelector("head > title"))),Pn(C,h,c),C[yn]=r,ze(C),h=C;break e;case"link":var L=uN("link","href",v).get(h+(c.href||""));if(L){for(var X=0;X<L.length;X++)if(C=L[X],C.getAttribute("href")===(c.href==null||c.href===""?null:c.href)&&C.getAttribute("rel")===(c.rel==null?null:c.rel)&&C.getAttribute("title")===(c.title==null?null:c.title)&&C.getAttribute("crossorigin")===(c.crossOrigin==null?null:c.crossOrigin)){L.splice(X,1);break t}}C=v.createElement(h),Pn(C,h,c),v.head.appendChild(C);break;case"meta":if(L=uN("meta","content",v).get(h+(c.content||""))){for(X=0;X<L.length;X++)if(C=L[X],C.getAttribute("content")===(c.content==null?null:""+c.content)&&C.getAttribute("name")===(c.name==null?null:c.name)&&C.getAttribute("property")===(c.property==null?null:c.property)&&C.getAttribute("http-equiv")===(c.httpEquiv==null?null:c.httpEquiv)&&C.getAttribute("charset")===(c.charSet==null?null:c.charSet)){L.splice(X,1);break t}}C=v.createElement(h),Pn(C,h,c),v.head.appendChild(C);break;default:throw Error(a(468,h))}C[yn]=r,ze(C),h=C}r.stateNode=h}else dN(v,r.type,r.stateNode);else r.stateNode=cN(v,h,r.memoizedProps);else C!==h?(C===null?c.stateNode!==null&&(c=c.stateNode,c.parentNode.removeChild(c)):C.count--,h===null?dN(v,r.type,r.stateNode):cN(v,h,r.memoizedProps)):h===null&&r.stateNode!==null&&kg(r,r.memoizedProps,c.memoizedProps)}break;case 27:fr(s,r),pr(r),h&512&&(Sn||c===null||Ra(c,c.return)),c!==null&&h&4&&kg(r,r.memoizedProps,c.memoizedProps);break;case 5:if(fr(s,r),pr(r),h&512&&(Sn||c===null||Ra(c,c.return)),r.flags&32){v=r.stateNode;try{da(v,"")}catch(Ue){Ht(r,r.return,Ue)}}h&4&&r.stateNode!=null&&(v=r.memoizedProps,kg(r,v,c!==null?c.memoizedProps:v)),h&1024&&(Lg=!0);break;case 6:if(fr(s,r),pr(r),h&4){if(r.stateNode===null)throw Error(a(162));h=r.memoizedProps,c=r.stateNode;try{c.nodeValue=h}catch(Ue){Ht(r,r.return,Ue)}}break;case 3:if($f=null,v=ha,ha=wf(s.containerInfo),fr(s,r),ha=v,pr(r),h&4&&c!==null&&c.memoizedState.isDehydrated)try{dl(s.containerInfo)}catch(Ue){Ht(r,r.return,Ue)}Lg&&(Lg=!1,dS(r));break;case 4:h=ha,ha=wf(r.stateNode.containerInfo),fr(s,r),pr(r),ha=h;break;case 12:fr(s,r),pr(r);break;case 31:fr(s,r),pr(r),h&4&&(h=r.updateQueue,h!==null&&(r.updateQueue=null,uf(r,h)));break;case 13:fr(s,r),pr(r),r.child.flags&8192&&r.memoizedState!==null!=(c!==null&&c.memoizedState!==null)&&(ff=$e()),h&4&&(h=r.updateQueue,h!==null&&(r.updateQueue=null,uf(r,h)));break;case 22:v=r.memoizedState!==null;var te=c!==null&&c.memoizedState!==null,le=ss,Ce=Sn;if(ss=le||v,Sn=Ce||te,fr(s,r),Sn=Ce,ss=le,pr(r),h&8192)e:for(s=r.stateNode,s._visibility=v?s._visibility&-2:s._visibility|1,v&&(c===null||te||ss||Sn||ti(r)),c=null,s=r;;){if(s.tag===5||s.tag===26){if(c===null){te=c=s;try{if(C=te.stateNode,v)L=C.style,typeof L.setProperty=="function"?L.setProperty("display","none","important"):L.display="none";else{X=te.stateNode;var we=te.memoizedProps.style,ue=we!=null&&we.hasOwnProperty("display")?we.display:null;X.style.display=ue==null||typeof ue=="boolean"?"":(""+ue).trim()}}catch(Ue){Ht(te,te.return,Ue)}}}else if(s.tag===6){if(c===null){te=s;try{te.stateNode.nodeValue=v?"":te.memoizedProps}catch(Ue){Ht(te,te.return,Ue)}}}else if(s.tag===18){if(c===null){te=s;try{var he=te.stateNode;v?eN(he,!0):eN(te.stateNode,!1)}catch(Ue){Ht(te,te.return,Ue)}}}else if((s.tag!==22&&s.tag!==23||s.memoizedState===null||s===r)&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===r)break e;for(;s.sibling===null;){if(s.return===null||s.return===r)break e;c===s&&(c=null),s=s.return}c===s&&(c=null),s.sibling.return=s.return,s=s.sibling}h&4&&(h=r.updateQueue,h!==null&&(c=h.retryQueue,c!==null&&(h.retryQueue=null,uf(r,c))));break;case 19:fr(s,r),pr(r),h&4&&(h=r.updateQueue,h!==null&&(r.updateQueue=null,uf(r,h)));break;case 30:break;case 21:break;default:fr(s,r),pr(r)}}function pr(r){var s=r.flags;if(s&2){try{for(var c,h=r.return;h!==null;){if(nS(h)){c=h;break}h=h.return}if(c==null)throw Error(a(160));switch(c.tag){case 27:var v=c.stateNode,C=Mg(r);cf(r,C,v);break;case 5:var L=c.stateNode;c.flags&32&&(da(L,""),c.flags&=-33);var X=Mg(r);cf(r,X,L);break;case 3:case 4:var te=c.stateNode.containerInfo,le=Mg(r);Pg(r,le,te);break;default:throw Error(a(161))}}catch(Ce){Ht(r,r.return,Ce)}r.flags&=-3}s&4096&&(r.flags&=-4097)}function dS(r){if(r.subtreeFlags&1024)for(r=r.child;r!==null;){var s=r;dS(s),s.tag===5&&s.flags&1024&&s.stateNode.reset(),r=r.sibling}}function is(r,s){if(s.subtreeFlags&8772)for(s=s.child;s!==null;)sS(r,s.alternate,s),s=s.sibling}function ti(r){for(r=r.child;r!==null;){var s=r;switch(s.tag){case 0:case 11:case 14:case 15:Zs(4,s,s.return),ti(s);break;case 1:Ra(s,s.return);var c=s.stateNode;typeof c.componentWillUnmount=="function"&&eS(s,s.return,c),ti(s);break;case 27:Yc(s.stateNode);case 26:case 5:Ra(s,s.return),ti(s);break;case 22:s.memoizedState===null&&ti(s);break;case 30:ti(s);break;default:ti(s)}r=r.sibling}}function ls(r,s,c){for(c=c&&(s.subtreeFlags&8772)!==0,s=s.child;s!==null;){var h=s.alternate,v=r,C=s,L=C.flags;switch(C.tag){case 0:case 11:case 15:ls(v,C,c),Pc(4,C);break;case 1:if(ls(v,C,c),h=C,v=h.stateNode,typeof v.componentDidMount=="function")try{v.componentDidMount()}catch(le){Ht(h,h.return,le)}if(h=C,v=h.updateQueue,v!==null){var X=h.stateNode;try{var te=v.shared.hiddenCallbacks;if(te!==null)for(v.shared.hiddenCallbacks=null,v=0;v<te.length;v++)zx(te[v],X)}catch(le){Ht(h,h.return,le)}}c&&L&64&&JC(C),Lc(C,C.return);break;case 27:rS(C);case 26:case 5:ls(v,C,c),c&&h===null&&L&4&&tS(C),Lc(C,C.return);break;case 12:ls(v,C,c);break;case 31:ls(v,C,c),c&&L&4&&lS(v,C);break;case 13:ls(v,C,c),c&&L&4&&cS(v,C);break;case 22:C.memoizedState===null&&ls(v,C,c),Lc(C,C.return);break;case 30:break;default:ls(v,C,c)}s=s.sibling}}function Bg(r,s){var c=null;r!==null&&r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(c=r.memoizedState.cachePool.pool),r=null,s.memoizedState!==null&&s.memoizedState.cachePool!==null&&(r=s.memoizedState.cachePool.pool),r!==c&&(r!=null&&r.refCount++,c!=null&&wc(c))}function qg(r,s){r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&wc(r))}function ma(r,s,c,h){if(s.subtreeFlags&10256)for(s=s.child;s!==null;)fS(r,s,c,h),s=s.sibling}function fS(r,s,c,h){var v=s.flags;switch(s.tag){case 0:case 11:case 15:ma(r,s,c,h),v&2048&&Pc(9,s);break;case 1:ma(r,s,c,h);break;case 3:ma(r,s,c,h),v&2048&&(r=null,s.alternate!==null&&(r=s.alternate.memoizedState.cache),s=s.memoizedState.cache,s!==r&&(s.refCount++,r!=null&&wc(r)));break;case 12:if(v&2048){ma(r,s,c,h),r=s.stateNode;try{var C=s.memoizedProps,L=C.id,X=C.onPostCommit;typeof X=="function"&&X(L,s.alternate===null?"mount":"update",r.passiveEffectDuration,-0)}catch(te){Ht(s,s.return,te)}}else ma(r,s,c,h);break;case 31:ma(r,s,c,h);break;case 13:ma(r,s,c,h);break;case 23:break;case 22:C=s.stateNode,L=s.alternate,s.memoizedState!==null?C._visibility&2?ma(r,s,c,h):Bc(r,s):C._visibility&2?ma(r,s,c,h):(C._visibility|=2,el(r,s,c,h,(s.subtreeFlags&10256)!==0||!1)),v&2048&&Bg(L,s);break;case 24:ma(r,s,c,h),v&2048&&qg(s.alternate,s);break;default:ma(r,s,c,h)}}function el(r,s,c,h,v){for(v=v&&((s.subtreeFlags&10256)!==0||!1),s=s.child;s!==null;){var C=r,L=s,X=c,te=h,le=L.flags;switch(L.tag){case 0:case 11:case 15:el(C,L,X,te,v),Pc(8,L);break;case 23:break;case 22:var Ce=L.stateNode;L.memoizedState!==null?Ce._visibility&2?el(C,L,X,te,v):Bc(C,L):(Ce._visibility|=2,el(C,L,X,te,v)),v&&le&2048&&Bg(L.alternate,L);break;case 24:el(C,L,X,te,v),v&&le&2048&&qg(L.alternate,L);break;default:el(C,L,X,te,v)}s=s.sibling}}function Bc(r,s){if(s.subtreeFlags&10256)for(s=s.child;s!==null;){var c=r,h=s,v=h.flags;switch(h.tag){case 22:Bc(c,h),v&2048&&Bg(h.alternate,h);break;case 24:Bc(c,h),v&2048&&qg(h.alternate,h);break;default:Bc(c,h)}s=s.sibling}}var qc=8192;function tl(r,s,c){if(r.subtreeFlags&qc)for(r=r.child;r!==null;)pS(r,s,c),r=r.sibling}function pS(r,s,c){switch(r.tag){case 26:tl(r,s,c),r.flags&qc&&r.memoizedState!==null&&MO(c,ha,r.memoizedState,r.memoizedProps);break;case 5:tl(r,s,c);break;case 3:case 4:var h=ha;ha=wf(r.stateNode.containerInfo),tl(r,s,c),ha=h;break;case 22:r.memoizedState===null&&(h=r.alternate,h!==null&&h.memoizedState!==null?(h=qc,qc=16777216,tl(r,s,c),qc=h):tl(r,s,c));break;default:tl(r,s,c)}}function hS(r){var s=r.alternate;if(s!==null&&(r=s.child,r!==null)){s.child=null;do s=r.sibling,r.sibling=null,r=s;while(r!==null)}}function Fc(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];_n=h,gS(h,r)}hS(r)}if(r.subtreeFlags&10256)for(r=r.child;r!==null;)mS(r),r=r.sibling}function mS(r){switch(r.tag){case 0:case 11:case 15:Fc(r),r.flags&2048&&Zs(9,r,r.return);break;case 3:Fc(r);break;case 12:Fc(r);break;case 22:var s=r.stateNode;r.memoizedState!==null&&s._visibility&2&&(r.return===null||r.return.tag!==13)?(s._visibility&=-3,df(r)):Fc(r);break;default:Fc(r)}}function df(r){var s=r.deletions;if((r.flags&16)!==0){if(s!==null)for(var c=0;c<s.length;c++){var h=s[c];_n=h,gS(h,r)}hS(r)}for(r=r.child;r!==null;){switch(s=r,s.tag){case 0:case 11:case 15:Zs(8,s,s.return),df(s);break;case 22:c=s.stateNode,c._visibility&2&&(c._visibility&=-3,df(s));break;default:df(s)}r=r.sibling}}function gS(r,s){for(;_n!==null;){var c=_n;switch(c.tag){case 0:case 11:case 15:Zs(8,c,s);break;case 23:case 22:if(c.memoizedState!==null&&c.memoizedState.cachePool!==null){var h=c.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:wc(c.memoizedState.cache)}if(h=c.child,h!==null)h.return=c,_n=h;else e:for(c=r;_n!==null;){h=_n;var v=h.sibling,C=h.return;if(oS(h),h===c){_n=null;break e}if(v!==null){v.return=C,_n=v;break e}_n=C}}}var QR={getCacheForType:function(r){var s=kn(vn),c=s.data.get(r);return c===void 0&&(c=r(),s.data.set(r,c)),c},cacheSignal:function(){return kn(vn).controller.signal}},ZR=typeof WeakMap=="function"?WeakMap:Map,Pt=0,Wt=null,Ct=null,Nt=0,zt=0,wr=null,Js=!1,nl=!1,Fg=!1,cs=0,un=0,eo=0,ni=0,zg=0,Er=0,rl=0,zc=null,hr=null,Hg=!1,ff=0,yS=0,pf=1/0,hf=null,to=null,En=0,no=null,al=null,us=0,Ug=0,Vg=null,bS=null,Hc=0,Gg=null;function $r(){return(Pt&2)!==0&&Nt!==0?Nt&-Nt:I.T!==null?Zg():ic()}function vS(){if(Er===0)if((Nt&536870912)===0||At){var r=Jn;Jn<<=1,(Jn&3932160)===0&&(Jn=262144),Er=r}else Er=536870912;return r=Sr.current,r!==null&&(r.flags|=32),Er}function mr(r,s,c){(r===Wt&&(zt===2||zt===9)||r.cancelPendingCommit!==null)&&(sl(r,0),ro(r,Nt,Er,!1)),cr(r,c),((Pt&2)===0||r!==Wt)&&(r===Wt&&((Pt&2)===0&&(ni|=c),un===4&&ro(r,Nt,Er,!1)),Oa(r))}function xS(r,s,c){if((Pt&6)!==0)throw Error(a(327));var h=!c&&(s&127)===0&&(s&r.expiredLanes)===0||zn(r,s),v=h?tO(r,s):Wg(r,s,!0),C=h;do{if(v===0){nl&&!h&&ro(r,s,0,!1);break}else{if(c=r.current.alternate,C&&!JR(c)){v=Wg(r,s,!1),C=!1;continue}if(v===2){if(C=s,r.errorRecoveryDisabledLanes&C)var L=0;else L=r.pendingLanes&-536870913,L=L!==0?L:L&536870912?536870912:0;if(L!==0){s=L;e:{var X=r;v=zc;var te=X.current.memoizedState.isDehydrated;if(te&&(sl(X,L).flags|=256),L=Wg(X,L,!1),L!==2){if(Fg&&!te){X.errorRecoveryDisabledLanes|=C,ni|=C,v=4;break e}C=hr,hr=v,C!==null&&(hr===null?hr=C:hr.push.apply(hr,C))}v=L}if(C=!1,v!==2)continue}}if(v===1){sl(r,0),ro(r,s,0,!0);break}e:{switch(h=r,C=v,C){case 0:case 1:throw Error(a(345));case 4:if((s&4194048)!==s)break;case 6:ro(h,s,Er,!Js);break e;case 2:hr=null;break;case 3:case 5:break;default:throw Error(a(329))}if((s&62914560)===s&&(v=ff+300-$e(),10<v)){if(ro(h,s,Er,!Js),vr(h,0,!0)!==0)break e;us=s,h.timeoutHandle=QS(CS.bind(null,h,c,hr,hf,Hg,s,Er,ni,rl,Js,C,"Throttled",-0,0),v);break e}CS(h,c,hr,hf,Hg,s,Er,ni,rl,Js,C,null,-0,0)}}break}while(!0);Oa(r)}function CS(r,s,c,h,v,C,L,X,te,le,Ce,we,ue,he){if(r.timeoutHandle=-1,we=s.subtreeFlags,we&8192||(we&16785408)===16785408){we={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Mr},pS(s,C,we);var Ue=(C&62914560)===C?ff-$e():(C&4194048)===C?yS-$e():0;if(Ue=PO(we,Ue),Ue!==null){us=C,r.cancelPendingCommit=Ue(AS.bind(null,r,s,C,c,h,v,L,X,te,Ce,we,null,ue,he)),ro(r,C,L,!le);return}}AS(r,s,C,c,h,v,L,X,te)}function JR(r){for(var s=r;;){var c=s.tag;if((c===0||c===11||c===15)&&s.flags&16384&&(c=s.updateQueue,c!==null&&(c=c.stores,c!==null)))for(var h=0;h<c.length;h++){var v=c[h],C=v.getSnapshot;v=v.value;try{if(!xr(C(),v))return!1}catch{return!1}}if(c=s.child,s.subtreeFlags&16384&&c!==null)c.return=s,s=c;else{if(s===r)break;for(;s.sibling===null;){if(s.return===null||s.return===r)return!0;s=s.return}s.sibling.return=s.return,s=s.sibling}}return!0}function ro(r,s,c,h){s&=~zg,s&=~ni,r.suspendedLanes|=s,r.pingedLanes&=~s,h&&(r.warmLanes|=s),h=r.expirationTimes;for(var v=s;0<v;){var C=31-ft(v),L=1<<C;h[C]=-1,v&=~L}c!==0&&ks(r,c,s)}function mf(){return(Pt&6)===0?(Uc(0),!1):!0}function Yg(){if(Ct!==null){if(zt===0)var r=Ct.return;else r=Ct,Ja=Yo=null,cg(r),Xi=null,$c=0,r=Ct;for(;r!==null;)ZC(r.alternate,r),r=r.return;Ct=null}}function sl(r,s){var c=r.timeoutHandle;c!==-1&&(r.timeoutHandle=-1,vO(c)),c=r.cancelPendingCommit,c!==null&&(r.cancelPendingCommit=null,c()),us=0,Yg(),Wt=r,Ct=c=Qa(r.current,null),Nt=s,zt=0,wr=null,Js=!1,nl=zn(r,s),Fg=!1,rl=Er=zg=ni=eo=un=0,hr=zc=null,Hg=!1,(s&8)!==0&&(s|=s&32);var h=r.entangledLanes;if(h!==0)for(r=r.entanglements,h&=s;0<h;){var v=31-ft(h),C=1<<v;s|=r[v],h&=~C}return cs=s,kd(),c}function SS(r,s){ct=null,I.H=Ic,s===Wi||s===Hd?(s=Lx(),zt=3):s===Qm?(s=Lx(),zt=4):zt=s===Eg?8:s!==null&&typeof s=="object"&&typeof s.then=="function"?6:1,wr=s,Ct===null&&(un=1,rf(r,Lr(s,r.current)))}function NS(){var r=Sr.current;return r===null?!0:(Nt&4194048)===Nt?zr===null:(Nt&62914560)===Nt||(Nt&536870912)!==0?r===zr:!1}function wS(){var r=I.H;return I.H=Ic,r===null?Ic:r}function ES(){var r=I.A;return I.A=QR,r}function gf(){un=4,Js||(Nt&4194048)!==Nt&&Sr.current!==null||(nl=!0),(eo&134217727)===0&&(ni&134217727)===0||Wt===null||ro(Wt,Nt,Er,!1)}function Wg(r,s,c){var h=Pt;Pt|=2;var v=wS(),C=ES();(Wt!==r||Nt!==s)&&(hf=null,sl(r,s)),s=!1;var L=un;e:do try{if(zt!==0&&Ct!==null){var X=Ct,te=wr;switch(zt){case 8:Yg(),L=6;break e;case 3:case 2:case 9:case 6:Sr.current===null&&(s=!0);var le=zt;if(zt=0,wr=null,ol(r,X,te,le),c&&nl){L=0;break e}break;default:le=zt,zt=0,wr=null,ol(r,X,te,le)}}eO(),L=un;break}catch(Ce){SS(r,Ce)}while(!0);return s&&r.shellSuspendCounter++,Ja=Yo=null,Pt=h,I.H=v,I.A=C,Ct===null&&(Wt=null,Nt=0,kd()),L}function eO(){for(;Ct!==null;)$S(Ct)}function tO(r,s){var c=Pt;Pt|=2;var h=wS(),v=ES();Wt!==r||Nt!==s?(hf=null,pf=$e()+500,sl(r,s)):nl=zn(r,s);e:do try{if(zt!==0&&Ct!==null){s=Ct;var C=wr;t:switch(zt){case 1:zt=0,wr=null,ol(r,s,C,1);break;case 2:case 9:if(Mx(C)){zt=0,wr=null,TS(s);break}s=function(){zt!==2&&zt!==9||Wt!==r||(zt=7),Oa(r)},C.then(s,s);break e;case 3:zt=7;break e;case 4:zt=5;break e;case 7:Mx(C)?(zt=0,wr=null,TS(s)):(zt=0,wr=null,ol(r,s,C,7));break;case 5:var L=null;switch(Ct.tag){case 26:L=Ct.memoizedState;case 5:case 27:var X=Ct;if(L?fN(L):X.stateNode.complete){zt=0,wr=null;var te=X.sibling;if(te!==null)Ct=te;else{var le=X.return;le!==null?(Ct=le,yf(le)):Ct=null}break t}}zt=0,wr=null,ol(r,s,C,5);break;case 6:zt=0,wr=null,ol(r,s,C,6);break;case 8:Yg(),un=6;break e;default:throw Error(a(462))}}nO();break}catch(Ce){SS(r,Ce)}while(!0);return Ja=Yo=null,I.H=h,I.A=v,Pt=c,Ct!==null?0:(Wt=null,Nt=0,kd(),un)}function nO(){for(;Ct!==null&&!_e();)$S(Ct)}function $S(r){var s=KC(r.alternate,r,cs);r.memoizedProps=r.pendingProps,s===null?yf(r):Ct=s}function TS(r){var s=r,c=s.alternate;switch(s.tag){case 15:case 0:s=UC(c,s,s.pendingProps,s.type,void 0,Nt);break;case 11:s=UC(c,s,s.pendingProps,s.type.render,s.ref,Nt);break;case 5:cg(s);default:ZC(c,s),s=Ct=Ex(s,cs),s=KC(c,s,cs)}r.memoizedProps=r.pendingProps,s===null?yf(r):Ct=s}function ol(r,s,c,h){Ja=Yo=null,cg(s),Xi=null,$c=0;var v=s.return;try{if(UR(r,v,s,c,Nt)){un=1,rf(r,Lr(c,r.current)),Ct=null;return}}catch(C){if(v!==null)throw Ct=v,C;un=1,rf(r,Lr(c,r.current)),Ct=null;return}s.flags&32768?(At||h===1?r=!0:nl||(Nt&536870912)!==0?r=!1:(Js=r=!0,(h===2||h===9||h===3||h===6)&&(h=Sr.current,h!==null&&h.tag===13&&(h.flags|=16384))),_S(s,r)):yf(s)}function yf(r){var s=r;do{if((s.flags&32768)!==0){_S(s,Js);return}r=s.return;var c=YR(s.alternate,s,cs);if(c!==null){Ct=c;return}if(s=s.sibling,s!==null){Ct=s;return}Ct=s=r}while(s!==null);un===0&&(un=5)}function _S(r,s){do{var c=WR(r.alternate,r);if(c!==null){c.flags&=32767,Ct=c;return}if(c=r.return,c!==null&&(c.flags|=32768,c.subtreeFlags=0,c.deletions=null),!s&&(r=r.sibling,r!==null)){Ct=r;return}Ct=r=c}while(r!==null);un=6,Ct=null}function AS(r,s,c,h,v,C,L,X,te){r.cancelPendingCommit=null;do bf();while(En!==0);if((Pt&6)!==0)throw Error(a(327));if(s!==null){if(s===r.current)throw Error(a(177));if(C=s.lanes|s.childLanes,C|=Mm,Wa(r,c,C,L,X,te),r===Wt&&(Ct=Wt=null,Nt=0),al=s,no=r,us=c,Ug=C,Vg=v,bS=h,(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?(r.callbackNode=null,r.callbackPriority=0,oO(Me,function(){return IS(),null})):(r.callbackNode=null,r.callbackPriority=0),h=(s.flags&13878)!==0,(s.subtreeFlags&13878)!==0||h){h=I.T,I.T=null,v=F.p,F.p=2,L=Pt,Pt|=4;try{XR(r,s,c)}finally{Pt=L,F.p=v,I.T=h}}En=1,DS(),jS(),RS()}}function DS(){if(En===1){En=0;var r=no,s=al,c=(s.flags&13878)!==0;if((s.subtreeFlags&13878)!==0||c){c=I.T,I.T=null;var h=F.p;F.p=2;var v=Pt;Pt|=4;try{uS(s,r);var C=oy,L=gx(r.containerInfo),X=C.focusedElem,te=C.selectionRange;if(L!==X&&X&&X.ownerDocument&&mx(X.ownerDocument.documentElement,X)){if(te!==null&&jm(X)){var le=te.start,Ce=te.end;if(Ce===void 0&&(Ce=le),"selectionStart"in X)X.selectionStart=le,X.selectionEnd=Math.min(Ce,X.value.length);else{var we=X.ownerDocument||document,ue=we&&we.defaultView||window;if(ue.getSelection){var he=ue.getSelection(),Ue=X.textContent.length,et=Math.min(te.start,Ue),Yt=te.end===void 0?et:Math.min(te.end,Ue);!he.extend&&et>Yt&&(L=Yt,Yt=et,et=L);var se=hx(X,et),ne=hx(X,Yt);if(se&&ne&&(he.rangeCount!==1||he.anchorNode!==se.node||he.anchorOffset!==se.offset||he.focusNode!==ne.node||he.focusOffset!==ne.offset)){var ie=we.createRange();ie.setStart(se.node,se.offset),he.removeAllRanges(),et>Yt?(he.addRange(ie),he.extend(ne.node,ne.offset)):(ie.setEnd(ne.node,ne.offset),he.addRange(ie))}}}}for(we=[],he=X;he=he.parentNode;)he.nodeType===1&&we.push({element:he,left:he.scrollLeft,top:he.scrollTop});for(typeof X.focus=="function"&&X.focus(),X=0;X<we.length;X++){var Ne=we[X];Ne.element.scrollLeft=Ne.left,Ne.element.scrollTop=Ne.top}}Df=!!sy,oy=sy=null}finally{Pt=v,F.p=h,I.T=c}}r.current=s,En=2}}function jS(){if(En===2){En=0;var r=no,s=al,c=(s.flags&8772)!==0;if((s.subtreeFlags&8772)!==0||c){c=I.T,I.T=null;var h=F.p;F.p=2;var v=Pt;Pt|=4;try{sS(r,s.alternate,s)}finally{Pt=v,F.p=h,I.T=c}}En=3}}function RS(){if(En===4||En===3){En=0,Pe();var r=no,s=al,c=us,h=bS;(s.subtreeFlags&10256)!==0||(s.flags&10256)!==0?En=5:(En=0,al=no=null,OS(r,r.pendingLanes));var v=r.pendingLanes;if(v===0&&(to=null),nt(c),s=s.stateNode,vt&&typeof vt.onCommitFiberRoot=="function")try{vt.onCommitFiberRoot(ot,s,void 0,(s.current.flags&128)===128)}catch{}if(h!==null){s=I.T,v=F.p,F.p=2,I.T=null;try{for(var C=r.onRecoverableError,L=0;L<h.length;L++){var X=h[L];C(X.value,{componentStack:X.stack})}}finally{I.T=s,F.p=v}}(us&3)!==0&&bf(),Oa(r),v=r.pendingLanes,(c&261930)!==0&&(v&42)!==0?r===Gg?Hc++:(Hc=0,Gg=r):Hc=0,Uc(0)}}function OS(r,s){(r.pooledCacheLanes&=s)===0&&(s=r.pooledCache,s!=null&&(r.pooledCache=null,wc(s)))}function bf(){return DS(),jS(),RS(),IS()}function IS(){if(En!==5)return!1;var r=no,s=Ug;Ug=0;var c=nt(us),h=I.T,v=F.p;try{F.p=32>c?32:c,I.T=null,c=Vg,Vg=null;var C=no,L=us;if(En=0,al=no=null,us=0,(Pt&6)!==0)throw Error(a(331));var X=Pt;if(Pt|=4,mS(C.current),fS(C,C.current,L,c),Pt=X,Uc(0,!1),vt&&typeof vt.onPostCommitFiberRoot=="function")try{vt.onPostCommitFiberRoot(ot,C)}catch{}return!0}finally{F.p=v,I.T=h,OS(r,s)}}function kS(r,s,c){s=Lr(c,s),s=wg(r.stateNode,s,2),r=Xs(r,s,2),r!==null&&(cr(r,2),Oa(r))}function Ht(r,s,c){if(r.tag===3)kS(r,r,c);else for(;s!==null;){if(s.tag===3){kS(s,r,c);break}else if(s.tag===1){var h=s.stateNode;if(typeof s.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(to===null||!to.has(h))){r=Lr(c,r),c=MC(2),h=Xs(s,c,2),h!==null&&(PC(c,h,s,r),cr(h,2),Oa(h));break}}s=s.return}}function Xg(r,s,c){var h=r.pingCache;if(h===null){h=r.pingCache=new ZR;var v=new Set;h.set(s,v)}else v=h.get(s),v===void 0&&(v=new Set,h.set(s,v));v.has(c)||(Fg=!0,v.add(c),r=rO.bind(null,r,s,c),s.then(r,r))}function rO(r,s,c){var h=r.pingCache;h!==null&&h.delete(s),r.pingedLanes|=r.suspendedLanes&c,r.warmLanes&=~c,Wt===r&&(Nt&c)===c&&(un===4||un===3&&(Nt&62914560)===Nt&&300>$e()-ff?(Pt&2)===0&&sl(r,0):zg|=c,rl===Nt&&(rl=0)),Oa(r)}function MS(r,s){s===0&&(s=oa()),r=Uo(r,s),r!==null&&(cr(r,s),Oa(r))}function aO(r){var s=r.memoizedState,c=0;s!==null&&(c=s.retryLane),MS(r,c)}function sO(r,s){var c=0;switch(r.tag){case 31:case 13:var h=r.stateNode,v=r.memoizedState;v!==null&&(c=v.retryLane);break;case 19:h=r.stateNode;break;case 22:h=r.stateNode._retryCache;break;default:throw Error(a(314))}h!==null&&h.delete(s),MS(r,c)}function oO(r,s){return ve(r,s)}var vf=null,il=null,Kg=!1,xf=!1,Qg=!1,ao=0;function Oa(r){r!==il&&r.next===null&&(il===null?vf=il=r:il=il.next=r),xf=!0,Kg||(Kg=!0,lO())}function Uc(r,s){if(!Qg&&xf){Qg=!0;do for(var c=!1,h=vf;h!==null;){if(r!==0){var v=h.pendingLanes;if(v===0)var C=0;else{var L=h.suspendedLanes,X=h.pingedLanes;C=(1<<31-ft(42|r)+1)-1,C&=v&~(L&~X),C=C&201326741?C&201326741|1:C?C|2:0}C!==0&&(c=!0,qS(h,C))}else C=Nt,C=vr(h,h===Wt?C:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(C&3)===0||zn(h,C)||(c=!0,qS(h,C));h=h.next}while(c);Qg=!1}}function iO(){PS()}function PS(){xf=Kg=!1;var r=0;ao!==0&&bO()&&(r=ao);for(var s=$e(),c=null,h=vf;h!==null;){var v=h.next,C=LS(h,s);C===0?(h.next=null,c===null?vf=v:c.next=v,v===null&&(il=c)):(c=h,(r!==0||(C&3)!==0)&&(xf=!0)),h=v}En!==0&&En!==5||Uc(r),ao!==0&&(ao=0)}function LS(r,s){for(var c=r.suspendedLanes,h=r.pingedLanes,v=r.expirationTimes,C=r.pendingLanes&-62914561;0<C;){var L=31-ft(C),X=1<<L,te=v[L];te===-1?((X&c)===0||(X&h)!==0)&&(v[L]=Hn(X,s)):te<=s&&(r.expiredLanes|=X),C&=~X}if(s=Wt,c=Nt,c=vr(r,r===s?c:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),h=r.callbackNode,c===0||r===s&&(zt===2||zt===9)||r.cancelPendingCommit!==null)return h!==null&&h!==null&&pe(h),r.callbackNode=null,r.callbackPriority=0;if((c&3)===0||zn(r,c)){if(s=c&-c,s===r.callbackPriority)return s;switch(h!==null&&pe(h),nt(c)){case 2:case 8:c=Ae;break;case 32:c=Me;break;case 268435456:c=dt;break;default:c=Me}return h=BS.bind(null,r),c=ve(c,h),r.callbackPriority=s,r.callbackNode=c,s}return h!==null&&h!==null&&pe(h),r.callbackPriority=2,r.callbackNode=null,2}function BS(r,s){if(En!==0&&En!==5)return r.callbackNode=null,r.callbackPriority=0,null;var c=r.callbackNode;if(bf()&&r.callbackNode!==c)return null;var h=Nt;return h=vr(r,r===Wt?h:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),h===0?null:(xS(r,h,s),LS(r,$e()),r.callbackNode!=null&&r.callbackNode===c?BS.bind(null,r):null)}function qS(r,s){if(bf())return null;xS(r,s,!0)}function lO(){xO(function(){(Pt&6)!==0?ve(He,iO):PS()})}function Zg(){if(ao===0){var r=Gi;r===0&&(r=nn,nn<<=1,(nn&261888)===0&&(nn=256)),ao=r}return ao}function FS(r){return r==null||typeof r=="symbol"||typeof r=="boolean"?null:typeof r=="function"?r:Xa(""+r)}function zS(r,s){var c=s.ownerDocument.createElement("input");return c.name=s.name,c.value=s.value,r.id&&c.setAttribute("form",r.id),s.parentNode.insertBefore(c,s),r=new FormData(r),c.parentNode.removeChild(c),r}function cO(r,s,c,h,v){if(s==="submit"&&c&&c.stateNode===v){var C=FS((v[Tn]||null).action),L=h.submitter;L&&(s=(s=L[Tn]||null)?FS(s.formAction):L.getAttribute("formAction"),s!==null&&(C=s,L=null));var X=new jd("action","action",null,h,v);r.push({event:X,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(ao!==0){var te=L?zS(v,L):new FormData(v);bg(c,{pending:!0,data:te,method:v.method,action:C},null,te)}}else typeof C=="function"&&(X.preventDefault(),te=L?zS(v,L):new FormData(v),bg(c,{pending:!0,data:te,method:v.method,action:C},C,te))},currentTarget:v}]})}}for(var Jg=0;Jg<km.length;Jg++){var ey=km[Jg],uO=ey.toLowerCase(),dO=ey[0].toUpperCase()+ey.slice(1);pa(uO,"on"+dO)}pa(vx,"onAnimationEnd"),pa(xx,"onAnimationIteration"),pa(Cx,"onAnimationStart"),pa("dblclick","onDoubleClick"),pa("focusin","onFocus"),pa("focusout","onBlur"),pa(TR,"onTransitionRun"),pa(_R,"onTransitionStart"),pa(AR,"onTransitionCancel"),pa(Sx,"onTransitionEnd"),_t("onMouseEnter",["mouseout","mouseover"]),_t("onMouseLeave",["mouseout","mouseover"]),_t("onPointerEnter",["pointerout","pointerover"]),_t("onPointerLeave",["pointerout","pointerover"]),Rt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Rt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Rt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Rt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Rt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Rt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Vc="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(" "),fO=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Vc));function HS(r,s){s=(s&4)!==0;for(var c=0;c<r.length;c++){var h=r[c],v=h.event;h=h.listeners;e:{var C=void 0;if(s)for(var L=h.length-1;0<=L;L--){var X=h[L],te=X.instance,le=X.currentTarget;if(X=X.listener,te!==C&&v.isPropagationStopped())break e;C=X,v.currentTarget=le;try{C(v)}catch(Ce){Id(Ce)}v.currentTarget=null,C=te}else for(L=0;L<h.length;L++){if(X=h[L],te=X.instance,le=X.currentTarget,X=X.listener,te!==C&&v.isPropagationStopped())break e;C=X,v.currentTarget=le;try{C(v)}catch(Ce){Id(Ce)}v.currentTarget=null,C=te}}}}function St(r,s){var c=s[Ms];c===void 0&&(c=s[Ms]=new Set);var h=r+"__bubble";c.has(h)||(US(s,r,2,!1),c.add(h))}function ty(r,s,c){var h=0;s&&(h|=4),US(c,r,h,s)}var Cf="_reactListening"+Math.random().toString(36).slice(2);function ny(r){if(!r[Cf]){r[Cf]=!0,st.forEach(function(c){c!=="selectionchange"&&(fO.has(c)||ty(c,!1,r),ty(c,!0,r))});var s=r.nodeType===9?r:r.ownerDocument;s===null||s[Cf]||(s[Cf]=!0,ty("selectionchange",!1,s))}}function US(r,s,c,h){switch(vN(s)){case 2:var v=qO;break;case 8:v=FO;break;default:v=yy}c=v.bind(null,s,c,r),v=void 0,!Sm||s!=="touchstart"&&s!=="touchmove"&&s!=="wheel"||(v=!0),h?v!==void 0?r.addEventListener(s,c,{capture:!0,passive:v}):r.addEventListener(s,c,!0):v!==void 0?r.addEventListener(s,c,{passive:v}):r.addEventListener(s,c,!1)}function ry(r,s,c,h,v){var C=h;if((s&1)===0&&(s&2)===0&&h!==null)e:for(;;){if(h===null)return;var L=h.tag;if(L===3||L===4){var X=h.stateNode.containerInfo;if(X===v)break;if(L===4)for(L=h.return;L!==null;){var te=L.tag;if((te===3||te===4)&&L.stateNode.containerInfo===v)return;L=L.return}for(;X!==null;){if(L=ce(X),L===null)return;if(te=L.tag,te===5||te===6||te===26||te===27){h=C=L;continue e}X=X.parentNode}}h=h.return}X1(function(){var le=C,Ce=Fs(c),we=[];e:{var ue=Nx.get(r);if(ue!==void 0){var he=jd,Ue=r;switch(r){case"keypress":if(Ad(c)===0)break e;case"keydown":case"keyup":he=sR;break;case"focusin":Ue="focus",he=$m;break;case"focusout":Ue="blur",he=$m;break;case"beforeblur":case"afterblur":he=$m;break;case"click":if(c.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":he=Z1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":he=Yj;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":he=lR;break;case vx:case xx:case Cx:he=Kj;break;case Sx:he=uR;break;case"scroll":case"scrollend":he=Vj;break;case"wheel":he=fR;break;case"copy":case"cut":case"paste":he=Zj;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":he=ex;break;case"toggle":case"beforetoggle":he=hR}var et=(s&4)!==0,Yt=!et&&(r==="scroll"||r==="scrollend"),se=et?ue!==null?ue+"Capture":null:ue;et=[];for(var ne=le,ie;ne!==null;){var Ne=ne;if(ie=Ne.stateNode,Ne=Ne.tag,Ne!==5&&Ne!==26&&Ne!==27||ie===null||se===null||(Ne=pc(ne,se),Ne!=null&&et.push(Gc(ne,Ne,ie))),Yt)break;ne=ne.return}0<et.length&&(ue=new he(ue,Ue,null,c,Ce),we.push({event:ue,listeners:et}))}}if((s&7)===0){e:{if(ue=r==="mouseover"||r==="pointerover",he=r==="mouseout"||r==="pointerout",ue&&c!==qs&&(Ue=c.relatedTarget||c.fromElement)&&(ce(Ue)||Ue[la]))break e;if((he||ue)&&(ue=Ce.window===Ce?Ce:(ue=Ce.ownerDocument)?ue.defaultView||ue.parentWindow:window,he?(Ue=c.relatedTarget||c.toElement,he=le,Ue=Ue?ce(Ue):null,Ue!==null&&(Yt=i(Ue),et=Ue.tag,Ue!==Yt||et!==5&&et!==27&&et!==6)&&(Ue=null)):(he=null,Ue=le),he!==Ue)){if(et=Z1,Ne="onMouseLeave",se="onMouseEnter",ne="mouse",(r==="pointerout"||r==="pointerover")&&(et=ex,Ne="onPointerLeave",se="onPointerEnter",ne="pointer"),Yt=he==null?ue:Oe(he),ie=Ue==null?ue:Oe(Ue),ue=new et(Ne,ne+"leave",he,c,Ce),ue.target=Yt,ue.relatedTarget=ie,Ne=null,ce(Ce)===le&&(et=new et(se,ne+"enter",Ue,c,Ce),et.target=ie,et.relatedTarget=Yt,Ne=et),Yt=Ne,he&&Ue)t:{for(et=pO,se=he,ne=Ue,ie=0,Ne=se;Ne;Ne=et(Ne))ie++;Ne=0;for(var Ke=ne;Ke;Ke=et(Ke))Ne++;for(;0<ie-Ne;)se=et(se),ie--;for(;0<Ne-ie;)ne=et(ne),Ne--;for(;ie--;){if(se===ne||ne!==null&&se===ne.alternate){et=se;break t}se=et(se),ne=et(ne)}et=null}else et=null;he!==null&&VS(we,ue,he,et,!1),Ue!==null&&Yt!==null&&VS(we,Yt,Ue,et,!0)}}e:{if(ue=le?Oe(le):window,he=ue.nodeName&&ue.nodeName.toLowerCase(),he==="select"||he==="input"&&ue.type==="file")var It=lx;else if(ox(ue))if(cx)It=wR;else{It=SR;var Ge=CR}else he=ue.nodeName,!he||he.toLowerCase()!=="input"||ue.type!=="checkbox"&&ue.type!=="radio"?le&&Bs(le.elementType)&&(It=lx):It=NR;if(It&&(It=It(r,le))){ix(we,It,c,Ce);break e}Ge&&Ge(r,ue,le),r==="focusout"&&le&&ue.type==="number"&&le.memoizedProps.value!=null&&On(ue,"number",ue.value)}switch(Ge=le?Oe(le):window,r){case"focusin":(ox(Ge)||Ge.contentEditable==="true")&&(Li=Ge,Rm=le,Cc=null);break;case"focusout":Cc=Rm=Li=null;break;case"mousedown":Om=!0;break;case"contextmenu":case"mouseup":case"dragend":Om=!1,yx(we,c,Ce);break;case"selectionchange":if($R)break;case"keydown":case"keyup":yx(we,c,Ce)}var ht;if(_m)e:{switch(r){case"compositionstart":var wt="onCompositionStart";break e;case"compositionend":wt="onCompositionEnd";break e;case"compositionupdate":wt="onCompositionUpdate";break e}wt=void 0}else Pi?ax(r,c)&&(wt="onCompositionEnd"):r==="keydown"&&c.keyCode===229&&(wt="onCompositionStart");wt&&(tx&&c.locale!=="ko"&&(Pi||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&Pi&&(ht=K1()):(zs=Ce,Nm="value"in zs?zs.value:zs.textContent,Pi=!0)),Ge=Sf(le,wt),0<Ge.length&&(wt=new J1(wt,r,null,c,Ce),we.push({event:wt,listeners:Ge}),ht?wt.data=ht:(ht=sx(c),ht!==null&&(wt.data=ht)))),(ht=gR?yR(r,c):bR(r,c))&&(wt=Sf(le,"onBeforeInput"),0<wt.length&&(Ge=new J1("onBeforeInput","beforeinput",null,c,Ce),we.push({event:Ge,listeners:wt}),Ge.data=ht)),cO(we,r,le,c,Ce)}HS(we,s)})}function Gc(r,s,c){return{instance:r,listener:s,currentTarget:c}}function Sf(r,s){for(var c=s+"Capture",h=[];r!==null;){var v=r,C=v.stateNode;if(v=v.tag,v!==5&&v!==26&&v!==27||C===null||(v=pc(r,c),v!=null&&h.unshift(Gc(r,v,C)),v=pc(r,s),v!=null&&h.push(Gc(r,v,C))),r.tag===3)return h;r=r.return}return[]}function pO(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5&&r.tag!==27);return r||null}function VS(r,s,c,h,v){for(var C=s._reactName,L=[];c!==null&&c!==h;){var X=c,te=X.alternate,le=X.stateNode;if(X=X.tag,te!==null&&te===h)break;X!==5&&X!==26&&X!==27||le===null||(te=le,v?(le=pc(c,C),le!=null&&L.unshift(Gc(c,le,te))):v||(le=pc(c,C),le!=null&&L.push(Gc(c,le,te)))),c=c.return}L.length!==0&&r.push({event:s,listeners:L})}var hO=/\r\n?/g,mO=/\u0000|\uFFFD/g;function GS(r){return(typeof r=="string"?r:""+r).replace(hO,`
`).replace(mO,"")}function YS(r,s){return s=GS(s),GS(r)===s}function Gt(r,s,c,h,v,C){switch(c){case"children":typeof h=="string"?s==="body"||s==="textarea"&&h===""||da(r,h):(typeof h=="number"||typeof h=="bigint")&&s!=="body"&&da(r,""+h);break;case"className":Un(r,"class",h);break;case"tabIndex":Un(r,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":Un(r,c,h);break;case"style":dc(r,h,C);break;case"data":if(s!=="object"){Un(r,"data",h);break}case"src":case"href":if(h===""&&(s!=="a"||c!=="href")){r.removeAttribute(c);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){r.removeAttribute(c);break}h=Xa(""+h),r.setAttribute(c,h);break;case"action":case"formAction":if(typeof h=="function"){r.setAttribute(c,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof C=="function"&&(c==="formAction"?(s!=="input"&&Gt(r,s,"name",v.name,v,null),Gt(r,s,"formEncType",v.formEncType,v,null),Gt(r,s,"formMethod",v.formMethod,v,null),Gt(r,s,"formTarget",v.formTarget,v,null)):(Gt(r,s,"encType",v.encType,v,null),Gt(r,s,"method",v.method,v,null),Gt(r,s,"target",v.target,v,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){r.removeAttribute(c);break}h=Xa(""+h),r.setAttribute(c,h);break;case"onClick":h!=null&&(r.onclick=Mr);break;case"onScroll":h!=null&&St("scroll",r);break;case"onScrollEnd":h!=null&&St("scrollend",r);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(a(61));if(c=h.__html,c!=null){if(v.children!=null)throw Error(a(60));r.innerHTML=c}}break;case"multiple":r.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":r.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){r.removeAttribute("xlink:href");break}c=Xa(""+h),r.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",c);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?r.setAttribute(c,""+h):r.removeAttribute(c);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?r.setAttribute(c,""):r.removeAttribute(c);break;case"capture":case"download":h===!0?r.setAttribute(c,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?r.setAttribute(c,h):r.removeAttribute(c);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?r.setAttribute(c,h):r.removeAttribute(c);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?r.removeAttribute(c):r.setAttribute(c,h);break;case"popover":St("beforetoggle",r),St("toggle",r),rn(r,"popover",h);break;case"xlinkActuate":Vn(r,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Vn(r,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Vn(r,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Vn(r,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Vn(r,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Vn(r,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Vn(r,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Vn(r,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Vn(r,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":rn(r,"is",h);break;case"innerText":case"textContent":break;default:(!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(c=fc.get(c)||c,rn(r,c,h))}}function ay(r,s,c,h,v,C){switch(c){case"style":dc(r,h,C);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(a(61));if(c=h.__html,c!=null){if(v.children!=null)throw Error(a(60));r.innerHTML=c}}break;case"children":typeof h=="string"?da(r,h):(typeof h=="number"||typeof h=="bigint")&&da(r,""+h);break;case"onScroll":h!=null&&St("scroll",r);break;case"onScrollEnd":h!=null&&St("scrollend",r);break;case"onClick":h!=null&&(r.onclick=Mr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Ut.hasOwnProperty(c))e:{if(c[0]==="o"&&c[1]==="n"&&(v=c.endsWith("Capture"),s=c.slice(2,v?c.length-7:void 0),C=r[Tn]||null,C=C!=null?C[c]:null,typeof C=="function"&&r.removeEventListener(s,C,v),typeof h=="function")){typeof C!="function"&&C!==null&&(c in r?r[c]=null:r.hasAttribute(c)&&r.removeAttribute(c)),r.addEventListener(s,h,v);break e}c in r?r[c]=h:h===!0?r.setAttribute(c,""):rn(r,c,h)}}}function Pn(r,s,c){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":St("error",r),St("load",r);var h=!1,v=!1,C;for(C in c)if(c.hasOwnProperty(C)){var L=c[C];if(L!=null)switch(C){case"src":h=!0;break;case"srcSet":v=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(a(137,s));default:Gt(r,s,C,L,c,null)}}v&&Gt(r,s,"srcSet",c.srcSet,c,null),h&&Gt(r,s,"src",c.src,c,null);return;case"input":St("invalid",r);var X=C=L=v=null,te=null,le=null;for(h in c)if(c.hasOwnProperty(h)){var Ce=c[h];if(Ce!=null)switch(h){case"name":v=Ce;break;case"type":L=Ce;break;case"checked":te=Ce;break;case"defaultChecked":le=Ce;break;case"value":C=Ce;break;case"defaultValue":X=Ce;break;case"children":case"dangerouslySetInnerHTML":if(Ce!=null)throw Error(a(137,s));break;default:Gt(r,s,h,Ce,c,null)}}qo(r,C,X,te,le,L,v,!1);return;case"select":St("invalid",r),h=L=C=null;for(v in c)if(c.hasOwnProperty(v)&&(X=c[v],X!=null))switch(v){case"value":C=X;break;case"defaultValue":L=X;break;case"multiple":h=X;default:Gt(r,s,v,X,c,null)}s=C,c=L,r.multiple=!!h,s!=null?Yn(r,!!h,s,!1):c!=null&&Yn(r,!!h,c,!0);return;case"textarea":St("invalid",r),C=v=h=null;for(L in c)if(c.hasOwnProperty(L)&&(X=c[L],X!=null))switch(L){case"value":h=X;break;case"defaultValue":v=X;break;case"children":C=X;break;case"dangerouslySetInnerHTML":if(X!=null)throw Error(a(91));break;default:Gt(r,s,L,X,c,null)}Ps(r,h,v,C);return;case"option":for(te in c)if(c.hasOwnProperty(te)&&(h=c[te],h!=null))switch(te){case"selected":r.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Gt(r,s,te,h,c,null)}return;case"dialog":St("beforetoggle",r),St("toggle",r),St("cancel",r),St("close",r);break;case"iframe":case"object":St("load",r);break;case"video":case"audio":for(h=0;h<Vc.length;h++)St(Vc[h],r);break;case"image":St("error",r),St("load",r);break;case"details":St("toggle",r);break;case"embed":case"source":case"link":St("error",r),St("load",r);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 c)if(c.hasOwnProperty(le)&&(h=c[le],h!=null))switch(le){case"children":case"dangerouslySetInnerHTML":throw Error(a(137,s));default:Gt(r,s,le,h,c,null)}return;default:if(Bs(s)){for(Ce in c)c.hasOwnProperty(Ce)&&(h=c[Ce],h!==void 0&&ay(r,s,Ce,h,c,void 0));return}}for(X in c)c.hasOwnProperty(X)&&(h=c[X],h!=null&&Gt(r,s,X,h,c,null))}function gO(r,s,c,h){switch(s){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var v=null,C=null,L=null,X=null,te=null,le=null,Ce=null;for(he in c){var we=c[he];if(c.hasOwnProperty(he)&&we!=null)switch(he){case"checked":break;case"value":break;case"defaultValue":te=we;default:h.hasOwnProperty(he)||Gt(r,s,he,null,h,we)}}for(var ue in h){var he=h[ue];if(we=c[ue],h.hasOwnProperty(ue)&&(he!=null||we!=null))switch(ue){case"type":C=he;break;case"name":v=he;break;case"checked":le=he;break;case"defaultChecked":Ce=he;break;case"value":L=he;break;case"defaultValue":X=he;break;case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(a(137,s));break;default:he!==we&&Gt(r,s,ue,he,h,we)}}ca(r,L,X,te,le,Ce,C,v);return;case"select":he=L=X=ue=null;for(C in c)if(te=c[C],c.hasOwnProperty(C)&&te!=null)switch(C){case"value":break;case"multiple":he=te;default:h.hasOwnProperty(C)||Gt(r,s,C,null,h,te)}for(v in h)if(C=h[v],te=c[v],h.hasOwnProperty(v)&&(C!=null||te!=null))switch(v){case"value":ue=C;break;case"defaultValue":X=C;break;case"multiple":L=C;default:C!==te&&Gt(r,s,v,C,h,te)}s=X,c=L,h=he,ue!=null?Yn(r,!!c,ue,!1):!!h!=!!c&&(s!=null?Yn(r,!!c,s,!0):Yn(r,!!c,c?[]:"",!1));return;case"textarea":he=ue=null;for(X in c)if(v=c[X],c.hasOwnProperty(X)&&v!=null&&!h.hasOwnProperty(X))switch(X){case"value":break;case"children":break;default:Gt(r,s,X,null,h,v)}for(L in h)if(v=h[L],C=c[L],h.hasOwnProperty(L)&&(v!=null||C!=null))switch(L){case"value":ue=v;break;case"defaultValue":he=v;break;case"children":break;case"dangerouslySetInnerHTML":if(v!=null)throw Error(a(91));break;default:v!==C&&Gt(r,s,L,v,h,C)}ua(r,ue,he);return;case"option":for(var Ue in c)if(ue=c[Ue],c.hasOwnProperty(Ue)&&ue!=null&&!h.hasOwnProperty(Ue))switch(Ue){case"selected":r.selected=!1;break;default:Gt(r,s,Ue,null,h,ue)}for(te in h)if(ue=h[te],he=c[te],h.hasOwnProperty(te)&&ue!==he&&(ue!=null||he!=null))switch(te){case"selected":r.selected=ue&&typeof ue!="function"&&typeof ue!="symbol";break;default:Gt(r,s,te,ue,h,he)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var et in c)ue=c[et],c.hasOwnProperty(et)&&ue!=null&&!h.hasOwnProperty(et)&&Gt(r,s,et,null,h,ue);for(le in h)if(ue=h[le],he=c[le],h.hasOwnProperty(le)&&ue!==he&&(ue!=null||he!=null))switch(le){case"children":case"dangerouslySetInnerHTML":if(ue!=null)throw Error(a(137,s));break;default:Gt(r,s,le,ue,h,he)}return;default:if(Bs(s)){for(var Yt in c)ue=c[Yt],c.hasOwnProperty(Yt)&&ue!==void 0&&!h.hasOwnProperty(Yt)&&ay(r,s,Yt,void 0,h,ue);for(Ce in h)ue=h[Ce],he=c[Ce],!h.hasOwnProperty(Ce)||ue===he||ue===void 0&&he===void 0||ay(r,s,Ce,ue,h,he);return}}for(var se in c)ue=c[se],c.hasOwnProperty(se)&&ue!=null&&!h.hasOwnProperty(se)&&Gt(r,s,se,null,h,ue);for(we in h)ue=h[we],he=c[we],!h.hasOwnProperty(we)||ue===he||ue==null&&he==null||Gt(r,s,we,ue,h,he)}function WS(r){switch(r){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function yO(){if(typeof performance.getEntriesByType=="function"){for(var r=0,s=0,c=performance.getEntriesByType("resource"),h=0;h<c.length;h++){var v=c[h],C=v.transferSize,L=v.initiatorType,X=v.duration;if(C&&X&&WS(L)){for(L=0,X=v.responseEnd,h+=1;h<c.length;h++){var te=c[h],le=te.startTime;if(le>X)break;var Ce=te.transferSize,we=te.initiatorType;Ce&&WS(we)&&(te=te.responseEnd,L+=Ce*(te<X?1:(X-le)/(te-le)))}if(--h,s+=8*(C+L)/(v.duration/1e3),r++,10<r)break}}if(0<r)return s/r/1e6}return navigator.connection&&(r=navigator.connection.downlink,typeof r=="number")?r:5}var sy=null,oy=null;function Nf(r){return r.nodeType===9?r:r.ownerDocument}function XS(r){switch(r){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function KS(r,s){if(r===0)switch(s){case"svg":return 1;case"math":return 2;default:return 0}return r===1&&s==="foreignObject"?0:r}function iy(r,s){return r==="textarea"||r==="noscript"||typeof s.children=="string"||typeof s.children=="number"||typeof s.children=="bigint"||typeof s.dangerouslySetInnerHTML=="object"&&s.dangerouslySetInnerHTML!==null&&s.dangerouslySetInnerHTML.__html!=null}var ly=null;function bO(){var r=window.event;return r&&r.type==="popstate"?r===ly?!1:(ly=r,!0):(ly=null,!1)}var QS=typeof setTimeout=="function"?setTimeout:void 0,vO=typeof clearTimeout=="function"?clearTimeout:void 0,ZS=typeof Promise=="function"?Promise:void 0,xO=typeof queueMicrotask=="function"?queueMicrotask:typeof ZS<"u"?function(r){return ZS.resolve(null).then(r).catch(CO)}:QS;function CO(r){setTimeout(function(){throw r})}function so(r){return r==="head"}function JS(r,s){var c=s,h=0;do{var v=c.nextSibling;if(r.removeChild(c),v&&v.nodeType===8)if(c=v.data,c==="/$"||c==="/&"){if(h===0){r.removeChild(v),dl(s);return}h--}else if(c==="$"||c==="$?"||c==="$~"||c==="$!"||c==="&")h++;else if(c==="html")Yc(r.ownerDocument.documentElement);else if(c==="head"){c=r.ownerDocument.head,Yc(c);for(var C=c.firstChild;C;){var L=C.nextSibling,X=C.nodeName;C[Bo]||X==="SCRIPT"||X==="STYLE"||X==="LINK"&&C.rel.toLowerCase()==="stylesheet"||c.removeChild(C),C=L}}else c==="body"&&Yc(r.ownerDocument.body);c=v}while(c);dl(s)}function eN(r,s){var c=r;r=0;do{var h=c.nextSibling;if(c.nodeType===1?s?(c._stashedDisplay=c.style.display,c.style.display="none"):(c.style.display=c._stashedDisplay||"",c.getAttribute("style")===""&&c.removeAttribute("style")):c.nodeType===3&&(s?(c._stashedText=c.nodeValue,c.nodeValue=""):c.nodeValue=c._stashedText||""),h&&h.nodeType===8)if(c=h.data,c==="/$"){if(r===0)break;r--}else c!=="$"&&c!=="$?"&&c!=="$~"&&c!=="$!"||r++;c=h}while(c)}function cy(r){var s=r.firstChild;for(s&&s.nodeType===10&&(s=s.nextSibling);s;){var c=s;switch(s=s.nextSibling,c.nodeName){case"HTML":case"HEAD":case"BODY":cy(c),J(c);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(c.rel.toLowerCase()==="stylesheet")continue}r.removeChild(c)}}function SO(r,s,c,h){for(;r.nodeType===1;){var v=c;if(r.nodeName.toLowerCase()!==s.toLowerCase()){if(!h&&(r.nodeName!=="INPUT"||r.type!=="hidden"))break}else if(h){if(!r[Bo])switch(s){case"meta":if(!r.hasAttribute("itemprop"))break;return r;case"link":if(C=r.getAttribute("rel"),C==="stylesheet"&&r.hasAttribute("data-precedence"))break;if(C!==v.rel||r.getAttribute("href")!==(v.href==null||v.href===""?null:v.href)||r.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin)||r.getAttribute("title")!==(v.title==null?null:v.title))break;return r;case"style":if(r.hasAttribute("data-precedence"))break;return r;case"script":if(C=r.getAttribute("src"),(C!==(v.src==null?null:v.src)||r.getAttribute("type")!==(v.type==null?null:v.type)||r.getAttribute("crossorigin")!==(v.crossOrigin==null?null:v.crossOrigin))&&C&&r.hasAttribute("async")&&!r.hasAttribute("itemprop"))break;return r;default:return r}}else if(s==="input"&&r.type==="hidden"){var C=v.name==null?null:""+v.name;if(v.type==="hidden"&&r.getAttribute("name")===C)return r}else return r;if(r=Hr(r.nextSibling),r===null)break}return null}function NO(r,s,c){if(s==="")return null;for(;r.nodeType!==3;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!c||(r=Hr(r.nextSibling),r===null))return null;return r}function tN(r,s){for(;r.nodeType!==8;)if((r.nodeType!==1||r.nodeName!=="INPUT"||r.type!=="hidden")&&!s||(r=Hr(r.nextSibling),r===null))return null;return r}function uy(r){return r.data==="$?"||r.data==="$~"}function dy(r){return r.data==="$!"||r.data==="$?"&&r.ownerDocument.readyState!=="loading"}function wO(r,s){var c=r.ownerDocument;if(r.data==="$~")r._reactRetry=s;else if(r.data!=="$?"||c.readyState!=="loading")s();else{var h=function(){s(),c.removeEventListener("DOMContentLoaded",h)};c.addEventListener("DOMContentLoaded",h),r._reactRetry=h}}function Hr(r){for(;r!=null;r=r.nextSibling){var s=r.nodeType;if(s===1||s===3)break;if(s===8){if(s=r.data,s==="$"||s==="$!"||s==="$?"||s==="$~"||s==="&"||s==="F!"||s==="F")break;if(s==="/$"||s==="/&")return null}}return r}var fy=null;function nN(r){r=r.nextSibling;for(var s=0;r;){if(r.nodeType===8){var c=r.data;if(c==="/$"||c==="/&"){if(s===0)return Hr(r.nextSibling);s--}else c!=="$"&&c!=="$!"&&c!=="$?"&&c!=="$~"&&c!=="&"||s++}r=r.nextSibling}return null}function rN(r){r=r.previousSibling;for(var s=0;r;){if(r.nodeType===8){var c=r.data;if(c==="$"||c==="$!"||c==="$?"||c==="$~"||c==="&"){if(s===0)return r;s--}else c!=="/$"&&c!=="/&"||s++}r=r.previousSibling}return null}function aN(r,s,c){switch(s=Nf(c),r){case"html":if(r=s.documentElement,!r)throw Error(a(452));return r;case"head":if(r=s.head,!r)throw Error(a(453));return r;case"body":if(r=s.body,!r)throw Error(a(454));return r;default:throw Error(a(451))}}function Yc(r){for(var s=r.attributes;s.length;)r.removeAttributeNode(s[0]);J(r)}var Ur=new Map,sN=new Set;function wf(r){return typeof r.getRootNode=="function"?r.getRootNode():r.nodeType===9?r:r.ownerDocument}var ds=F.d;F.d={f:EO,r:$O,D:TO,C:_O,L:AO,m:DO,X:RO,S:jO,M:OO};function EO(){var r=ds.f(),s=mf();return r||s}function $O(r){var s=Ee(r);s!==null&&s.tag===5&&s.type==="form"?SC(s):ds.r(r)}var ll=typeof document>"u"?null:document;function oN(r,s,c){var h=ll;if(h&&typeof s=="string"&&s){var v=Gn(s);v='link[rel="'+r+'"][href="'+v+'"]',typeof c=="string"&&(v+='[crossorigin="'+c+'"]'),sN.has(v)||(sN.add(v),r={rel:r,crossOrigin:c,href:s},h.querySelector(v)===null&&(s=h.createElement("link"),Pn(s,"link",r),ze(s),h.head.appendChild(s)))}}function TO(r){ds.D(r),oN("dns-prefetch",r,null)}function _O(r,s){ds.C(r,s),oN("preconnect",r,s)}function AO(r,s,c){ds.L(r,s,c);var h=ll;if(h&&r&&s){var v='link[rel="preload"][as="'+Gn(s)+'"]';s==="image"&&c&&c.imageSrcSet?(v+='[imagesrcset="'+Gn(c.imageSrcSet)+'"]',typeof c.imageSizes=="string"&&(v+='[imagesizes="'+Gn(c.imageSizes)+'"]')):v+='[href="'+Gn(r)+'"]';var C=v;switch(s){case"style":C=cl(r);break;case"script":C=ul(r)}Ur.has(C)||(r=g({rel:"preload",href:s==="image"&&c&&c.imageSrcSet?void 0:r,as:s},c),Ur.set(C,r),h.querySelector(v)!==null||s==="style"&&h.querySelector(Wc(C))||s==="script"&&h.querySelector(Xc(C))||(s=h.createElement("link"),Pn(s,"link",r),ze(s),h.head.appendChild(s)))}}function DO(r,s){ds.m(r,s);var c=ll;if(c&&r){var h=s&&typeof s.as=="string"?s.as:"script",v='link[rel="modulepreload"][as="'+Gn(h)+'"][href="'+Gn(r)+'"]',C=v;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":C=ul(r)}if(!Ur.has(C)&&(r=g({rel:"modulepreload",href:r},s),Ur.set(C,r),c.querySelector(v)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(c.querySelector(Xc(C)))return}h=c.createElement("link"),Pn(h,"link",r),ze(h),c.head.appendChild(h)}}}function jO(r,s,c){ds.S(r,s,c);var h=ll;if(h&&r){var v=Ve(h).hoistableStyles,C=cl(r);s=s||"default";var L=v.get(C);if(!L){var X={loading:0,preload:null};if(L=h.querySelector(Wc(C)))X.loading=5;else{r=g({rel:"stylesheet",href:r,"data-precedence":s},c),(c=Ur.get(C))&&py(r,c);var te=L=h.createElement("link");ze(te),Pn(te,"link",r),te._p=new Promise(function(le,Ce){te.onload=le,te.onerror=Ce}),te.addEventListener("load",function(){X.loading|=1}),te.addEventListener("error",function(){X.loading|=2}),X.loading|=4,Ef(L,s,h)}L={type:"stylesheet",instance:L,count:1,state:X},v.set(C,L)}}}function RO(r,s){ds.X(r,s);var c=ll;if(c&&r){var h=Ve(c).hoistableScripts,v=ul(r),C=h.get(v);C||(C=c.querySelector(Xc(v)),C||(r=g({src:r,async:!0},s),(s=Ur.get(v))&&hy(r,s),C=c.createElement("script"),ze(C),Pn(C,"link",r),c.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},h.set(v,C))}}function OO(r,s){ds.M(r,s);var c=ll;if(c&&r){var h=Ve(c).hoistableScripts,v=ul(r),C=h.get(v);C||(C=c.querySelector(Xc(v)),C||(r=g({src:r,async:!0,type:"module"},s),(s=Ur.get(v))&&hy(r,s),C=c.createElement("script"),ze(C),Pn(C,"link",r),c.head.appendChild(C)),C={type:"script",instance:C,count:1,state:null},h.set(v,C))}}function iN(r,s,c,h){var v=(v=G.current)?wf(v):null;if(!v)throw Error(a(446));switch(r){case"meta":case"title":return null;case"style":return typeof c.precedence=="string"&&typeof c.href=="string"?(s=cl(c.href),c=Ve(v).hoistableStyles,h=c.get(s),h||(h={type:"style",instance:null,count:0,state:null},c.set(s,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(c.rel==="stylesheet"&&typeof c.href=="string"&&typeof c.precedence=="string"){r=cl(c.href);var C=Ve(v).hoistableStyles,L=C.get(r);if(L||(v=v.ownerDocument||v,L={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},C.set(r,L),(C=v.querySelector(Wc(r)))&&!C._p&&(L.instance=C,L.state.loading=5),Ur.has(r)||(c={rel:"preload",as:"style",href:c.href,crossOrigin:c.crossOrigin,integrity:c.integrity,media:c.media,hrefLang:c.hrefLang,referrerPolicy:c.referrerPolicy},Ur.set(r,c),C||IO(v,r,c,L.state))),s&&h===null)throw Error(a(528,""));return L}if(s&&h!==null)throw Error(a(529,""));return null;case"script":return s=c.async,c=c.src,typeof c=="string"&&s&&typeof s!="function"&&typeof s!="symbol"?(s=ul(c),c=Ve(v).hoistableScripts,h=c.get(s),h||(h={type:"script",instance:null,count:0,state:null},c.set(s,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(a(444,r))}}function cl(r){return'href="'+Gn(r)+'"'}function Wc(r){return'link[rel="stylesheet"]['+r+"]"}function lN(r){return g({},r,{"data-precedence":r.precedence,precedence:null})}function IO(r,s,c,h){r.querySelector('link[rel="preload"][as="style"]['+s+"]")?h.loading=1:(s=r.createElement("link"),h.preload=s,s.addEventListener("load",function(){return h.loading|=1}),s.addEventListener("error",function(){return h.loading|=2}),Pn(s,"link",c),ze(s),r.head.appendChild(s))}function ul(r){return'[src="'+Gn(r)+'"]'}function Xc(r){return"script[async]"+r}function cN(r,s,c){if(s.count++,s.instance===null)switch(s.type){case"style":var h=r.querySelector('style[data-href~="'+Gn(c.href)+'"]');if(h)return s.instance=h,ze(h),h;var v=g({},c,{"data-href":c.href,"data-precedence":c.precedence,href:null,precedence:null});return h=(r.ownerDocument||r).createElement("style"),ze(h),Pn(h,"style",v),Ef(h,c.precedence,r),s.instance=h;case"stylesheet":v=cl(c.href);var C=r.querySelector(Wc(v));if(C)return s.state.loading|=4,s.instance=C,ze(C),C;h=lN(c),(v=Ur.get(v))&&py(h,v),C=(r.ownerDocument||r).createElement("link"),ze(C);var L=C;return L._p=new Promise(function(X,te){L.onload=X,L.onerror=te}),Pn(C,"link",h),s.state.loading|=4,Ef(C,c.precedence,r),s.instance=C;case"script":return C=ul(c.src),(v=r.querySelector(Xc(C)))?(s.instance=v,ze(v),v):(h=c,(v=Ur.get(C))&&(h=g({},c),hy(h,v)),r=r.ownerDocument||r,v=r.createElement("script"),ze(v),Pn(v,"link",h),r.head.appendChild(v),s.instance=v);case"void":return null;default:throw Error(a(443,s.type))}else s.type==="stylesheet"&&(s.state.loading&4)===0&&(h=s.instance,s.state.loading|=4,Ef(h,c.precedence,r));return s.instance}function Ef(r,s,c){for(var h=c.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),v=h.length?h[h.length-1]:null,C=v,L=0;L<h.length;L++){var X=h[L];if(X.dataset.precedence===s)C=X;else if(C!==v)break}C?C.parentNode.insertBefore(r,C.nextSibling):(s=c.nodeType===9?c.head:c,s.insertBefore(r,s.firstChild))}function py(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.title==null&&(r.title=s.title)}function hy(r,s){r.crossOrigin==null&&(r.crossOrigin=s.crossOrigin),r.referrerPolicy==null&&(r.referrerPolicy=s.referrerPolicy),r.integrity==null&&(r.integrity=s.integrity)}var $f=null;function uN(r,s,c){if($f===null){var h=new Map,v=$f=new Map;v.set(c,h)}else v=$f,h=v.get(c),h||(h=new Map,v.set(c,h));if(h.has(r))return h;for(h.set(r,null),c=c.getElementsByTagName(r),v=0;v<c.length;v++){var C=c[v];if(!(C[Bo]||C[yn]||r==="link"&&C.getAttribute("rel")==="stylesheet")&&C.namespaceURI!=="http://www.w3.org/2000/svg"){var L=C.getAttribute(s)||"";L=r+L;var X=h.get(L);X?X.push(C):h.set(L,[C])}}return h}function dN(r,s,c){r=r.ownerDocument||r,r.head.insertBefore(c,s==="title"?r.querySelector("head > title"):null)}function kO(r,s,c){if(c===1||s.itemProp!=null)return!1;switch(r){case"meta":case"title":return!0;case"style":if(typeof s.precedence!="string"||typeof s.href!="string"||s.href==="")break;return!0;case"link":if(typeof s.rel!="string"||typeof s.href!="string"||s.href===""||s.onLoad||s.onError)break;switch(s.rel){case"stylesheet":return r=s.disabled,typeof s.precedence=="string"&&r==null;default:return!0}case"script":if(s.async&&typeof s.async!="function"&&typeof s.async!="symbol"&&!s.onLoad&&!s.onError&&s.src&&typeof s.src=="string")return!0}return!1}function fN(r){return!(r.type==="stylesheet"&&(r.state.loading&3)===0)}function MO(r,s,c,h){if(c.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(c.state.loading&4)===0){if(c.instance===null){var v=cl(h.href),C=s.querySelector(Wc(v));if(C){s=C._p,s!==null&&typeof s=="object"&&typeof s.then=="function"&&(r.count++,r=Tf.bind(r),s.then(r,r)),c.state.loading|=4,c.instance=C,ze(C);return}C=s.ownerDocument||s,h=lN(h),(v=Ur.get(v))&&py(h,v),C=C.createElement("link"),ze(C);var L=C;L._p=new Promise(function(X,te){L.onload=X,L.onerror=te}),Pn(C,"link",h),c.instance=C}r.stylesheets===null&&(r.stylesheets=new Map),r.stylesheets.set(c,s),(s=c.state.preload)&&(c.state.loading&3)===0&&(r.count++,c=Tf.bind(r),s.addEventListener("load",c),s.addEventListener("error",c))}}var my=0;function PO(r,s){return r.stylesheets&&r.count===0&&Af(r,r.stylesheets),0<r.count||0<r.imgCount?function(c){var h=setTimeout(function(){if(r.stylesheets&&Af(r,r.stylesheets),r.unsuspend){var C=r.unsuspend;r.unsuspend=null,C()}},6e4+s);0<r.imgBytes&&my===0&&(my=62500*yO());var v=setTimeout(function(){if(r.waitingForImages=!1,r.count===0&&(r.stylesheets&&Af(r,r.stylesheets),r.unsuspend)){var C=r.unsuspend;r.unsuspend=null,C()}},(r.imgBytes>my?50:800)+s);return r.unsuspend=c,function(){r.unsuspend=null,clearTimeout(h),clearTimeout(v)}}:null}function Tf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Af(this,this.stylesheets);else if(this.unsuspend){var r=this.unsuspend;this.unsuspend=null,r()}}}var _f=null;function Af(r,s){r.stylesheets=null,r.unsuspend!==null&&(r.count++,_f=new Map,s.forEach(LO,r),_f=null,Tf.call(r))}function LO(r,s){if(!(s.state.loading&4)){var c=_f.get(r);if(c)var h=c.get(null);else{c=new Map,_f.set(r,c);for(var v=r.querySelectorAll("link[data-precedence],style[data-precedence]"),C=0;C<v.length;C++){var L=v[C];(L.nodeName==="LINK"||L.getAttribute("media")!=="not all")&&(c.set(L.dataset.precedence,L),h=L)}h&&c.set(null,h)}v=s.instance,L=v.getAttribute("data-precedence"),C=c.get(L)||h,C===h&&c.set(null,v),c.set(L,v),this.count++,h=Tf.bind(this),v.addEventListener("load",h),v.addEventListener("error",h),C?C.parentNode.insertBefore(v,C.nextSibling):(r=r.nodeType===9?r.head:r,r.insertBefore(v,r.firstChild)),s.state.loading|=4}}var Kc={$$typeof:A,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function BO(r,s,c,h,v,C,L,X,te){this.tag=1,this.containerInfo=r,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=lr(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=lr(0),this.hiddenUpdates=lr(null),this.identifierPrefix=h,this.onUncaughtError=v,this.onCaughtError=C,this.onRecoverableError=L,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=te,this.incompleteTransitions=new Map}function pN(r,s,c,h,v,C,L,X,te,le,Ce,we){return r=new BO(r,s,c,L,te,le,Ce,we,X),s=1,C===!0&&(s|=24),C=Cr(3,null,null,s),r.current=C,C.stateNode=r,s=Wm(),s.refCount++,r.pooledCache=s,s.refCount++,C.memoizedState={element:h,isDehydrated:c,cache:s},Zm(C),r}function hN(r){return r?(r=Fi,r):Fi}function mN(r,s,c,h,v,C){v=hN(v),h.context===null?h.context=v:h.pendingContext=v,h=Ws(s),h.payload={element:c},C=C===void 0?null:C,C!==null&&(h.callback=C),c=Xs(r,h,s),c!==null&&(mr(c,r,s),_c(c,r,s))}function gN(r,s){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var c=r.retryLane;r.retryLane=c!==0&&c<s?c:s}}function gy(r,s){gN(r,s),(r=r.alternate)&&gN(r,s)}function yN(r){if(r.tag===13||r.tag===31){var s=Uo(r,67108864);s!==null&&mr(s,r,67108864),gy(r,67108864)}}function bN(r){if(r.tag===13||r.tag===31){var s=$r();s=Ye(s);var c=Uo(r,s);c!==null&&mr(c,r,s),gy(r,s)}}var Df=!0;function qO(r,s,c,h){var v=I.T;I.T=null;var C=F.p;try{F.p=2,yy(r,s,c,h)}finally{F.p=C,I.T=v}}function FO(r,s,c,h){var v=I.T;I.T=null;var C=F.p;try{F.p=8,yy(r,s,c,h)}finally{F.p=C,I.T=v}}function yy(r,s,c,h){if(Df){var v=by(h);if(v===null)ry(r,s,h,jf,c),xN(r,h);else if(HO(v,r,s,c,h))h.stopPropagation();else if(xN(r,h),s&4&&-1<zO.indexOf(r)){for(;v!==null;){var C=Ee(v);if(C!==null)switch(C.tag){case 3:if(C=C.stateNode,C.current.memoizedState.isDehydrated){var L=ln(C.pendingLanes);if(L!==0){var X=C;for(X.pendingLanes|=2,X.entangledLanes|=2;L;){var te=1<<31-ft(L);X.entanglements[1]|=te,L&=~te}Oa(C),(Pt&6)===0&&(pf=$e()+500,Uc(0))}}break;case 31:case 13:X=Uo(C,2),X!==null&&mr(X,C,2),mf(),gy(C,2)}if(C=by(h),C===null&&ry(r,s,h,jf,c),C===v)break;v=C}v!==null&&h.stopPropagation()}else ry(r,s,h,null,c)}}function by(r){return r=Fs(r),vy(r)}var jf=null;function vy(r){if(jf=null,r=ce(r),r!==null){var s=i(r);if(s===null)r=null;else{var c=s.tag;if(c===13){if(r=l(s),r!==null)return r;r=null}else if(c===31){if(r=u(s),r!==null)return r;r=null}else if(c===3){if(s.stateNode.current.memoizedState.isDehydrated)return s.tag===3?s.stateNode.containerInfo:null;r=null}else s!==r&&(r=null)}}return jf=r,null}function vN(r){switch(r){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(je()){case He:return 2;case Ae:return 8;case Me:case Je:return 32;case dt:return 268435456;default:return 32}default:return 32}}var xy=!1,oo=null,io=null,lo=null,Qc=new Map,Zc=new Map,co=[],zO="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 xN(r,s){switch(r){case"focusin":case"focusout":oo=null;break;case"dragenter":case"dragleave":io=null;break;case"mouseover":case"mouseout":lo=null;break;case"pointerover":case"pointerout":Qc.delete(s.pointerId);break;case"gotpointercapture":case"lostpointercapture":Zc.delete(s.pointerId)}}function Jc(r,s,c,h,v,C){return r===null||r.nativeEvent!==C?(r={blockedOn:s,domEventName:c,eventSystemFlags:h,nativeEvent:C,targetContainers:[v]},s!==null&&(s=Ee(s),s!==null&&yN(s)),r):(r.eventSystemFlags|=h,s=r.targetContainers,v!==null&&s.indexOf(v)===-1&&s.push(v),r)}function HO(r,s,c,h,v){switch(s){case"focusin":return oo=Jc(oo,r,s,c,h,v),!0;case"dragenter":return io=Jc(io,r,s,c,h,v),!0;case"mouseover":return lo=Jc(lo,r,s,c,h,v),!0;case"pointerover":var C=v.pointerId;return Qc.set(C,Jc(Qc.get(C)||null,r,s,c,h,v)),!0;case"gotpointercapture":return C=v.pointerId,Zc.set(C,Jc(Zc.get(C)||null,r,s,c,h,v)),!0}return!1}function CN(r){var s=ce(r.target);if(s!==null){var c=i(s);if(c!==null){if(s=c.tag,s===13){if(s=l(c),s!==null){r.blockedOn=s,ia(r.priority,function(){bN(c)});return}}else if(s===31){if(s=u(c),s!==null){r.blockedOn=s,ia(r.priority,function(){bN(c)});return}}else if(s===3&&c.stateNode.current.memoizedState.isDehydrated){r.blockedOn=c.tag===3?c.stateNode.containerInfo:null;return}}}r.blockedOn=null}function Rf(r){if(r.blockedOn!==null)return!1;for(var s=r.targetContainers;0<s.length;){var c=by(r.nativeEvent);if(c===null){c=r.nativeEvent;var h=new c.constructor(c.type,c);qs=h,c.target.dispatchEvent(h),qs=null}else return s=Ee(c),s!==null&&yN(s),r.blockedOn=c,!1;s.shift()}return!0}function SN(r,s,c){Rf(r)&&c.delete(s)}function UO(){xy=!1,oo!==null&&Rf(oo)&&(oo=null),io!==null&&Rf(io)&&(io=null),lo!==null&&Rf(lo)&&(lo=null),Qc.forEach(SN),Zc.forEach(SN)}function Of(r,s){r.blockedOn===s&&(r.blockedOn=null,xy||(xy=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,UO)))}var If=null;function NN(r){If!==r&&(If=r,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){If===r&&(If=null);for(var s=0;s<r.length;s+=3){var c=r[s],h=r[s+1],v=r[s+2];if(typeof h!="function"){if(vy(h||c)===null)continue;break}var C=Ee(c);C!==null&&(r.splice(s,3),s-=3,bg(C,{pending:!0,data:v,method:c.method,action:h},h,v))}}))}function dl(r){function s(te){return Of(te,r)}oo!==null&&Of(oo,r),io!==null&&Of(io,r),lo!==null&&Of(lo,r),Qc.forEach(s),Zc.forEach(s);for(var c=0;c<co.length;c++){var h=co[c];h.blockedOn===r&&(h.blockedOn=null)}for(;0<co.length&&(c=co[0],c.blockedOn===null);)CN(c),c.blockedOn===null&&co.shift();if(c=(r.ownerDocument||r).$$reactFormReplay,c!=null)for(h=0;h<c.length;h+=3){var v=c[h],C=c[h+1],L=v[Tn]||null;if(typeof C=="function")L||NN(c);else if(L){var X=null;if(C&&C.hasAttribute("formAction")){if(v=C,L=C[Tn]||null)X=L.formAction;else if(vy(v)!==null)continue}else X=L.action;typeof X=="function"?c[h+1]=X:(c.splice(h,3),h-=3),NN(c)}}}function wN(){function r(C){C.canIntercept&&C.info==="react-transition"&&C.intercept({handler:function(){return new Promise(function(L){return v=L})},focusReset:"manual",scroll:"manual"})}function s(){v!==null&&(v(),v=null),h||setTimeout(c,20)}function c(){if(!h&&!navigation.transition){var C=navigation.currentEntry;C&&C.url!=null&&navigation.navigate(C.url,{state:C.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,v=null;return navigation.addEventListener("navigate",r),navigation.addEventListener("navigatesuccess",s),navigation.addEventListener("navigateerror",s),setTimeout(c,100),function(){h=!0,navigation.removeEventListener("navigate",r),navigation.removeEventListener("navigatesuccess",s),navigation.removeEventListener("navigateerror",s),v!==null&&(v(),v=null)}}}function Cy(r){this._internalRoot=r}kf.prototype.render=Cy.prototype.render=function(r){var s=this._internalRoot;if(s===null)throw Error(a(409));var c=s.current,h=$r();mN(c,h,r,s,null,null)},kf.prototype.unmount=Cy.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var s=r.containerInfo;mN(r.current,2,null,r,null,null),mf(),s[la]=null}};function kf(r){this._internalRoot=r}kf.prototype.unstable_scheduleHydration=function(r){if(r){var s=ic();r={blockedOn:null,target:r,priority:s};for(var c=0;c<co.length&&s!==0&&s<co[c].priority;c++);co.splice(c,0,r),c===0&&CN(r)}};var EN=t.version;if(EN!=="19.2.0")throw Error(a(527,EN,"19.2.0"));F.findDOMNode=function(r){var s=r._reactInternals;if(s===void 0)throw typeof r.render=="function"?Error(a(188)):(r=Object.keys(r).join(","),Error(a(268,r)));return r=f(s),r=r!==null?m(r):null,r=r===null?null:r.stateNode,r};var VO={bundleType:0,version:"19.2.0",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Mf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Mf.isDisabled&&Mf.supportsFiber)try{ot=Mf.inject(VO),vt=Mf}catch{}}return tu.createRoot=function(r,s){if(!o(r))throw Error(a(299));var c=!1,h="",v=RC,C=OC,L=IC;return s!=null&&(s.unstable_strictMode===!0&&(c=!0),s.identifierPrefix!==void 0&&(h=s.identifierPrefix),s.onUncaughtError!==void 0&&(v=s.onUncaughtError),s.onCaughtError!==void 0&&(C=s.onCaughtError),s.onRecoverableError!==void 0&&(L=s.onRecoverableError)),s=pN(r,1,!1,null,null,c,h,null,v,C,L,wN),r[la]=s.current,ny(r),new Cy(s)},tu.hydrateRoot=function(r,s,c){if(!o(r))throw Error(a(299));var h=!1,v="",C=RC,L=OC,X=IC,te=null;return c!=null&&(c.unstable_strictMode===!0&&(h=!0),c.identifierPrefix!==void 0&&(v=c.identifierPrefix),c.onUncaughtError!==void 0&&(C=c.onUncaughtError),c.onCaughtError!==void 0&&(L=c.onCaughtError),c.onRecoverableError!==void 0&&(X=c.onRecoverableError),c.formState!==void 0&&(te=c.formState)),s=pN(r,1,!0,s,c??null,h,v,te,C,L,X,wN),s.context=hN(null),c=s.current,h=$r(),h=Ye(h),v=Ws(h),v.callback=null,Xs(c,v,h),c=h,s.current.lanes=c,cr(s,c),Oa(s),r[la]=s.current,ny(r),new kf(s)},tu.version="19.2.0",tu}var kN;function nI(){if(kN)return Ny.exports;kN=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),Ny.exports=tI(),Ny.exports}var rI=nI(),Pa=function(){return Pa=Object.assign||function(t){for(var n,a=1,o=arguments.length;a<o;a++){n=arguments[a];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Pa.apply(this,arguments)};function q$(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,a=Object.getOwnPropertySymbols(e);o<a.length;o++)t.indexOf(a[o])<0&&Object.prototype.propertyIsEnumerable.call(e,a[o])&&(n[a[o]]=e[a[o]]);return n}function aI(e,t,n){if(n||arguments.length===2)for(var a=0,o=t.length,i;a<o;a++)(i||!(a in t))&&(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))}var B=ji();const $t=Di(B),F$=YO({__proto__:null,default:$t},[B]);var ap="right-scroll-bar-position",sp="width-before-scroll-bar",sI="with-scroll-bars-hidden",oI="--removed-body-scroll-bar-size";function _y(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function iI(e,t){var n=B.useState(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(a){var o=n.value;o!==a&&(n.value=a,n.callback(a,o))}}}})[0];return n.callback=t,n.facade}var lI=typeof window<"u"?B.useLayoutEffect:B.useEffect,MN=new WeakMap;function cI(e,t){var n=iI(null,function(a){return e.forEach(function(o){return _y(o,a)})});return lI(function(){var a=MN.get(n);if(a){var o=new Set(a),i=new Set(e),l=n.current;o.forEach(function(u){i.has(u)||_y(u,null)}),i.forEach(function(u){o.has(u)||_y(u,l)})}MN.set(n,e)},[e]),n}function uI(e){return e}function dI(e,t){t===void 0&&(t=uI);var n=[],a=!1,o={read:function(){if(a)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(i){var l=t(i,a);return n.push(l),function(){n=n.filter(function(u){return u!==l})}},assignSyncMedium:function(i){for(a=!0;n.length;){var l=n;n=[],l.forEach(i)}n={push:function(u){return i(u)},filter:function(){return n}}},assignMedium:function(i){a=!0;var l=[];if(n.length){var u=n;n=[],u.forEach(i),l=n}var d=function(){var m=l;l=[],m.forEach(i)},f=function(){return Promise.resolve().then(d)};f(),n={push:function(m){l.push(m),f()},filter:function(m){return l=l.filter(m),n}}}};return o}function fI(e){e===void 0&&(e={});var t=dI(null);return t.options=Pa({async:!0,ssr:!1},e),t}var z$=function(e){var t=e.sideCar,n=q$(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var a=t.read();if(!a)throw new Error("Sidecar medium not found");return B.createElement(a,Pa({},n))};z$.isSideCarExport=!0;function pI(e,t){return e.useMedium(t),z$}var H$=fI(),Ay=function(){},Jp=B.forwardRef(function(e,t){var n=B.useRef(null),a=B.useState({onScrollCapture:Ay,onWheelCapture:Ay,onTouchMoveCapture:Ay}),o=a[0],i=a[1],l=e.forwardProps,u=e.children,d=e.className,f=e.removeScrollBar,m=e.enabled,g=e.shards,y=e.sideCar,b=e.noRelative,x=e.noIsolation,S=e.inert,w=e.allowPinchZoom,N=e.as,T=N===void 0?"div":N,A=e.gapMode,R=q$(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=y,$=cI([n,t]),_=Pa(Pa({},R),o);return B.createElement(B.Fragment,null,m&&B.createElement(E,{sideCar:H$,removeScrollBar:f,shards:g,noRelative:b,noIsolation:x,inert:S,setCallbacks:i,allowPinchZoom:!!w,lockRef:n,gapMode:A}),l?B.cloneElement(B.Children.only(u),Pa(Pa({},_),{ref:$})):B.createElement(T,Pa({},_,{className:d,ref:$}),u))});Jp.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Jp.classNames={fullWidth:sp,zeroRight:ap};var hI=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function mI(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=hI();return t&&e.setAttribute("nonce",t),e}function gI(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function yI(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var bI=function(){var e=0,t=null;return{add:function(n){e==0&&(t=mI())&&(gI(t,n),yI(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},vI=function(){var e=bI();return function(t,n){B.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},U$=function(){var e=vI(),t=function(n){var a=n.styles,o=n.dynamic;return e(a,o),null};return t},xI={left:0,top:0,right:0,gap:0},Dy=function(e){return parseInt(e||"",10)||0},CI=function(e){var t=window.getComputedStyle(document.body),n=t[e==="padding"?"paddingLeft":"marginLeft"],a=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[Dy(n),Dy(a),Dy(o)]},SI=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return xI;var t=CI(e),n=document.documentElement.clientWidth,a=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,a-n+t[2]-t[0])}},NI=U$(),_l="data-scroll-locked",wI=function(e,t,n,a){var o=e.left,i=e.top,l=e.right,u=e.gap;return n===void 0&&(n="margin"),`
  .`.concat(sI,` {
   overflow: hidden `).concat(a,`;
   padding-right: `).concat(u,"px ").concat(a,`;
  }
  body[`).concat(_l,`] {
    overflow: hidden `).concat(a,`;
    overscroll-behavior: contain;
    `).concat([t&&"position: relative ".concat(a,";"),n==="margin"&&`
    padding-left: `.concat(o,`px;
    padding-top: `).concat(i,`px;
    padding-right: `).concat(l,`px;
    margin-left:0;
    margin-top:0;
    margin-right: `).concat(u,"px ").concat(a,`;
    `),n==="padding"&&"padding-right: ".concat(u,"px ").concat(a,";")].filter(Boolean).join(""),`
  }
  
  .`).concat(ap,` {
    right: `).concat(u,"px ").concat(a,`;
  }
  
  .`).concat(sp,` {
    margin-right: `).concat(u,"px ").concat(a,`;
  }
  
  .`).concat(ap," .").concat(ap,` {
    right: 0 `).concat(a,`;
  }
  
  .`).concat(sp," .").concat(sp,` {
    margin-right: 0 `).concat(a,`;
  }
  
  body[`).concat(_l,`] {
    `).concat(oI,": ").concat(u,`px;
  }
`)},PN=function(){var e=parseInt(document.body.getAttribute(_l)||"0",10);return isFinite(e)?e:0},EI=function(){B.useEffect(function(){return document.body.setAttribute(_l,(PN()+1).toString()),function(){var e=PN()-1;e<=0?document.body.removeAttribute(_l):document.body.setAttribute(_l,e.toString())}},[])},$I=function(e){var t=e.noRelative,n=e.noImportant,a=e.gapMode,o=a===void 0?"margin":a;EI();var i=B.useMemo(function(){return SI(o)},[o]);return B.createElement(NI,{styles:wI(i,!t,o,n?"":"!important")})},Kb=!1;if(typeof window<"u")try{var Pf=Object.defineProperty({},"passive",{get:function(){return Kb=!0,!0}});window.addEventListener("test",Pf,Pf),window.removeEventListener("test",Pf,Pf)}catch{Kb=!1}var fl=Kb?{passive:!1}:!1,TI=function(e){return e.tagName==="TEXTAREA"},V$=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!=="hidden"&&!(n.overflowY===n.overflowX&&!TI(e)&&n[t]==="visible")},_I=function(e){return V$(e,"overflowY")},AI=function(e){return V$(e,"overflowX")},LN=function(e,t){var n=t.ownerDocument,a=t;do{typeof ShadowRoot<"u"&&a instanceof ShadowRoot&&(a=a.host);var o=G$(e,a);if(o){var i=Y$(e,a),l=i[1],u=i[2];if(l>u)return!0}a=a.parentNode}while(a&&a!==n.body);return!1},DI=function(e){var t=e.scrollTop,n=e.scrollHeight,a=e.clientHeight;return[t,n,a]},jI=function(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;return[t,n,a]},G$=function(e,t){return e==="v"?_I(t):AI(t)},Y$=function(e,t){return e==="v"?DI(t):jI(t)},RI=function(e,t){return e==="h"&&t==="rtl"?-1:1},OI=function(e,t,n,a,o){var i=RI(e,window.getComputedStyle(t).direction),l=i*a,u=n.target,d=t.contains(u),f=!1,m=l>0,g=0,y=0;do{if(!u)break;var b=Y$(e,u),x=b[0],S=b[1],w=b[2],N=S-w-i*x;(x||N)&&G$(e,u)&&(g+=N,y+=x);var T=u.parentNode;u=T&&T.nodeType===Node.DOCUMENT_FRAGMENT_NODE?T.host:T}while(!d&&u!==document.body||d&&(t.contains(u)||t===u));return(m&&Math.abs(g)<1||!m&&Math.abs(y)<1)&&(f=!0),f},Lf=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},BN=function(e){return[e.deltaX,e.deltaY]},qN=function(e){return e&&"current"in e?e.current:e},II=function(e,t){return e[0]===t[0]&&e[1]===t[1]},kI=function(e){return`
  .block-interactivity-`.concat(e,` {pointer-events: none;}
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
`)},MI=0,pl=[];function PI(e){var t=B.useRef([]),n=B.useRef([0,0]),a=B.useRef(),o=B.useState(MI++)[0],i=B.useState(U$)[0],l=B.useRef(e);B.useEffect(function(){l.current=e},[e]),B.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var S=aI([e.lockRef.current],(e.shards||[]).map(qN),!0).filter(Boolean);return S.forEach(function(w){return w.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),S.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=B.useCallback(function(S,w){if("touches"in S&&S.touches.length===2||S.type==="wheel"&&S.ctrlKey)return!l.current.allowPinchZoom;var N=Lf(S),T=n.current,A="deltaX"in S?S.deltaX:T[0]-N[0],R="deltaY"in S?S.deltaY:T[1]-N[1],E,$=S.target,_=Math.abs(A)>Math.abs(R)?"h":"v";if("touches"in S&&_==="h"&&$.type==="range")return!1;var k=LN(_,$);if(!k)return!0;if(k?E=_:(E=_==="v"?"h":"v",k=LN(_,$)),!k)return!1;if(!a.current&&"changedTouches"in S&&(A||R)&&(a.current=E),!E)return!0;var q=a.current||E;return OI(q,w,S,q==="h"?A:R)},[]),d=B.useCallback(function(S){var w=S;if(!(!pl.length||pl[pl.length-1]!==i)){var N="deltaY"in w?BN(w):Lf(w),T=t.current.filter(function(E){return E.name===w.type&&(E.target===w.target||w.target===E.shadowParent)&&II(E.delta,N)})[0];if(T&&T.should){w.cancelable&&w.preventDefault();return}if(!T){var A=(l.current.shards||[]).map(qN).filter(Boolean).filter(function(E){return E.contains(w.target)}),R=A.length>0?u(w,A[0]):!l.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),f=B.useCallback(function(S,w,N,T){var A={name:S,delta:w,target:N,should:T,shadowParent:LI(N)};t.current.push(A),setTimeout(function(){t.current=t.current.filter(function(R){return R!==A})},1)},[]),m=B.useCallback(function(S){n.current=Lf(S),a.current=void 0},[]),g=B.useCallback(function(S){f(S.type,BN(S),S.target,u(S,e.lockRef.current))},[]),y=B.useCallback(function(S){f(S.type,Lf(S),S.target,u(S,e.lockRef.current))},[]);B.useEffect(function(){return pl.push(i),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:y}),document.addEventListener("wheel",d,fl),document.addEventListener("touchmove",d,fl),document.addEventListener("touchstart",m,fl),function(){pl=pl.filter(function(S){return S!==i}),document.removeEventListener("wheel",d,fl),document.removeEventListener("touchmove",d,fl),document.removeEventListener("touchstart",m,fl)}},[]);var b=e.removeScrollBar,x=e.inert;return B.createElement(B.Fragment,null,x?B.createElement(i,{styles:kI(o)}):null,b?B.createElement($I,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function LI(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const BI=pI(H$,PI);var W$=B.forwardRef(function(e,t){return B.createElement(Jp,Pa({},e,{ref:t,sideCar:BI}))});W$.classNames=Jp.classNames;function qa(e){return Object.keys(e)}function jy(e){return e&&typeof e=="object"&&!Array.isArray(e)}function Z0(e,t){const n={...e},a=t;return jy(e)&&jy(t)&&Object.keys(t).forEach(o=>{jy(a[o])&&o in e?n[o]=Z0(n[o],a[o]):n[o]=a[o]}),n}function qI(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function FI(e){return typeof e!="string"||!e.includes("var(--mantine-scale)")?e:e.match(/^calc\((.*?)\)$/)?.[1].split("*")[0].trim()}function zI(e){const t=FI(e);return typeof t=="number"?t:typeof t=="string"?t.includes("calc")||t.includes("var")?t:t.includes("px")?Number(t.replace("px","")):t.includes("rem")?Number(t.replace("rem",""))*16:t.includes("em")?Number(t.replace("em",""))*16:Number(t):NaN}function FN(e){return e==="0rem"?"0rem":`calc(${e} * var(--mantine-scale))`}function X$(e,{shouldScale:t=!1}={}){function n(a){if(a===0||a==="0")return`0${e}`;if(typeof a=="number"){const o=`${a/16}${e}`;return t?FN(o):o}if(typeof a=="string"){if(a===""||a.startsWith("calc(")||a.startsWith("clamp(")||a.includes("rgba("))return a;if(a.includes(","))return a.split(",").map(i=>n(i)).join(",");if(a.includes(" "))return a.split(" ").map(i=>n(i)).join(" ");const o=a.replace("px","");if(!Number.isNaN(Number(o))){const i=`${Number(o)/16}${e}`;return t?FN(i):i}}return a}return n}const De=X$("rem",{shouldScale:!0}),zN=X$("em");function J0(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[n]=e[n]),t),{})}function K$(e){if(typeof e=="number")return!0;if(typeof e=="string"){if(e.startsWith("calc(")||e.startsWith("var(")||e.includes(" ")&&e.trim()!=="")return!0;const t=/^[+-]?[0-9]+(\.[0-9]+)?(px|em|rem|ex|ch|lh|rlh|vw|vh|vmin|vmax|vb|vi|svw|svh|lvw|lvh|dvw|dvh|cm|mm|in|pt|pc|q|cqw|cqh|cqi|cqb|cqmin|cqmax|%)?$/;return e.trim().split(/\s+/).every(a=>t.test(a))}return!1}function Q$(e){return Array.isArray(e)||e===null?!1:typeof e=="object"?e.type!==B.Fragment:!1}function Zu(e){const t=B.createContext(null);return[({children:o,value:i})=>p.jsx(t.Provider,{value:i,children:o}),()=>{const o=B.useContext(t);if(o===null)throw new Error(e);return o}]}function ev(e=null){const t=B.createContext(e);return[({children:o,value:i})=>p.jsx(t.Provider,{value:i,children:o}),()=>B.useContext(t)]}const HI={app:100,modal:200,popover:300,overlay:400,max:9999};function Ri(e){return HI[e]}const UI=()=>{};function VI(e,t={active:!0}){return typeof e!="function"||!t.active?t.onKeyDown||UI:n=>{n.key==="Escape"&&(e(n),t.onTrigger?.())}}function ta(e,t="size",n=!0){if(e!==void 0)return K$(e)?n?De(e):e:`var(--${t}-${e})`}function Z$(e){return ta(e,"mantine-spacing")}function Gl(e){return e===void 0?"var(--mantine-radius-default)":ta(e,"mantine-radius")}function Jr(e){return ta(e,"mantine-font-size")}function tv(e){if(e)return ta(e,"mantine-shadow",!1)}function GI(e,t,n){return t===void 0&&n===void 0?e:t!==void 0&&n===void 0?Math.max(e,t):Math.min(t===void 0&&n!==void 0?e:Math.max(e,t),n)}function YI(e="mantine-"){return`${e}${Math.random().toString(36).slice(2,11)}`}function di(e){const t=B.useRef(e);return B.useEffect(()=>{t.current=e}),B.useMemo(()=>((...n)=>t.current?.(...n)),[])}function eh(e,t){const{delay:n,flushOnUnmount:a,leading:o}=typeof t=="number"?{delay:t,flushOnUnmount:!1,leading:!1}:t,i=di(e),l=B.useRef(0),u=B.useMemo(()=>{const d=Object.assign((...f)=>{window.clearTimeout(l.current);const m=d._isFirstCall;d._isFirstCall=!1;function g(){window.clearTimeout(l.current),l.current=0,d._isFirstCall=!0}if(o&&m){i(...f);const x=()=>{g()},S=()=>{l.current!==0&&(g(),i(...f))},w=()=>{g()};d.flush=S,d.cancel=w,l.current=window.setTimeout(x,n);return}if(o&&!m){const x=()=>{l.current!==0&&(g(),i(...f))},S=()=>{g()};d.flush=x,d.cancel=S;const w=()=>{g()};l.current=window.setTimeout(w,n);return}const y=()=>{l.current!==0&&(g(),i(...f))},b=()=>{g()};d.flush=y,d.cancel=b,l.current=window.setTimeout(y,n)},{flush:()=>{},cancel:()=>{},_isFirstCall:!0});return d},[i,n,o]);return B.useEffect(()=>()=>{a?u.flush():u.cancel()},[u,a]),u}const WI=["mousedown","touchstart"];function XI(e,t,n){const a=B.useRef(null),o=t||WI;return B.useEffect(()=>{const i=l=>{const{target:u}=l??{};if(Array.isArray(n)){const d=!document.body.contains(u)&&u?.tagName!=="HTML";n.every(m=>!!m&&!l.composedPath().includes(m))&&!d&&e(l)}else a.current&&!a.current.contains(u)&&e(l)};return o.forEach(l=>document.addEventListener(l,i)),()=>{o.forEach(l=>document.removeEventListener(l,i))}},[a,e,n]),a}function KI(e,t){try{return e.addEventListener("change",t),()=>e.removeEventListener("change",t)}catch{return e.addListener(t),()=>e.removeListener(t)}}function QI(e,t){return typeof window<"u"&&"matchMedia"in window?window.matchMedia(e).matches:!1}function ZI(e,t,{getInitialValueInEffect:n}={getInitialValueInEffect:!0}){const[a,o]=B.useState(n?t:QI(e));return B.useEffect(()=>{try{const i=window.matchMedia(e);return o(i.matches),KI(i,l=>o(l.matches))}catch{return}},[e]),a||!1}const Ju=typeof document<"u"?B.useLayoutEffect:B.useEffect;function xu(e,t){const n=B.useRef(!1);B.useEffect(()=>()=>{n.current=!1},[]),B.useEffect(()=>{if(n.current)return e();n.current=!0},t)}function J$({opened:e,shouldReturnFocus:t=!0}){const n=B.useRef(null),a=()=>{n.current&&"focus"in n.current&&typeof n.current.focus=="function"&&n.current?.focus({preventScroll:!0})};return xu(()=>{let o=-1;const i=l=>{l.key==="Tab"&&window.clearTimeout(o)};return document.addEventListener("keydown",i),e?n.current=document.activeElement:t&&(o=window.setTimeout(a,10)),()=>{window.clearTimeout(o),document.removeEventListener("keydown",i)}},[e,t]),a}const JI=/input|select|textarea|button|object/,eT="a, input, select, textarea, button, object, [tabindex]";function ek(e){return e.style.display==="none"}function tk(e){if(e.getAttribute("aria-hidden")||e.getAttribute("hidden")||e.getAttribute("type")==="hidden")return!1;let n=e;for(;n&&!(n===document.body||n.nodeType===11);){if(ek(n))return!1;n=n.parentNode}return!0}function tT(e){let t=e.getAttribute("tabindex");return t===null&&(t=void 0),parseInt(t,10)}function Qb(e){const t=e.nodeName.toLowerCase(),n=!Number.isNaN(tT(e));return(JI.test(t)&&!e.disabled||e instanceof HTMLAnchorElement&&e.href||n)&&tk(e)}function nT(e){const t=tT(e);return(Number.isNaN(t)||t>=0)&&Qb(e)}function nk(e){return Array.from(e.querySelectorAll(eT)).filter(nT)}function rk(e,t){const n=nk(e);if(!n.length){t.preventDefault();return}const a=n[t.shiftKey?0:n.length-1],o=e.getRootNode();let i=a===o.activeElement||e===o.activeElement;const l=o.activeElement;if(l.tagName==="INPUT"&&l.getAttribute("type")==="radio"&&(i=n.filter(m=>m.getAttribute("type")==="radio"&&m.getAttribute("name")===l.getAttribute("name")).includes(a)),!i)return;t.preventDefault();const d=n[t.shiftKey?n.length-1:0];d&&d.focus()}function ak(e=!0){const t=B.useRef(null),n=o=>{let i=o.querySelector("[data-autofocus]");if(!i){const l=Array.from(o.querySelectorAll(eT));i=l.find(nT)||l.find(Qb)||null,!i&&Qb(o)&&(i=o)}i&&i.focus({preventScroll:!0})},a=B.useCallback(o=>{e&&o!==null&&t.current!==o&&(o?(setTimeout(()=>{o.getRootNode()&&n(o)}),t.current=o):t.current=null)},[e]);return B.useEffect(()=>{if(!e)return;t.current&&setTimeout(()=>n(t.current));const o=i=>{i.key==="Tab"&&t.current&&rk(t.current,i)};return document.addEventListener("keydown",o),()=>document.removeEventListener("keydown",o)},[e]),a}const sk=$t.useId||(()=>{});function ok(){const e=sk();return e?`mantine-${e.replace(/:/g,"")}`:""}function nv(e){const t=ok(),[n,a]=B.useState(t);return Ju(()=>{a(YI())},[]),typeof e=="string"?e:typeof window>"u"?t:n}function ik(e,t,n){B.useEffect(()=>(window.addEventListener(e,t,n),()=>window.removeEventListener(e,t,n)),[e,t])}function Zb(e,t){if(typeof e=="function")return e(t);typeof e=="object"&&e!==null&&"current"in e&&(e.current=t)}function lk(...e){const t=new Map;return n=>{if(e.forEach(a=>{const o=Zb(a,n);o&&t.set(a,o)}),t.size>0)return()=>{e.forEach(a=>{const o=t.get(a);o&&typeof o=="function"?o():Zb(a,null)}),t.clear()}}}function js(...e){return B.useCallback(lk(...e),e)}function rv({value:e,defaultValue:t,finalValue:n,onChange:a=()=>{}}){const[o,i]=B.useState(t!==void 0?t:n),l=(u,...d)=>{i(u),a?.(u,...d)};return e!==void 0?[e,a,!0]:[o,l,!1]}function rT(e,t){return ZI("(prefers-reduced-motion: reduce)",e,t)}function ck(e=!1,t={}){const[n,a]=B.useState(e),o=B.useCallback(()=>{a(u=>u||(t.onOpen?.(),!0))},[t.onOpen]),i=B.useCallback(()=>{a(u=>u&&(t.onClose?.(),!1))},[t.onClose]),l=B.useCallback(()=>{n?i():o()},[i,o,n]);return[n,{open:o,close:i,toggle:l}]}function uk(e){const t=$t.version;return typeof $t.version!="string"||t.startsWith("18.")?e?.ref:e?.props?.ref}function aT(e){var t,n,a="";if(typeof e=="string"||typeof e=="number")a+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=aT(e[t]))&&(a&&(a+=" "),a+=n)}else for(n in e)e[n]&&(a&&(a+=" "),a+=n);return a}function na(){for(var e,t,n=0,a="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=aT(e))&&(a&&(a+=" "),a+=t);return a}const dk={};function fk(e){const t={};return e.forEach(n=>{Object.entries(n).forEach(([a,o])=>{t[a]?t[a]=na(t[a],o):t[a]=o})}),t}function th({theme:e,classNames:t,props:n,stylesCtx:a}){const i=(Array.isArray(t)?t:[t]).map(l=>typeof l=="function"?l(e,n,a):l||dk);return fk(i)}function Cp({theme:e,styles:t,props:n,stylesCtx:a}){return(Array.isArray(t)?t:[t]).reduce((i,l)=>typeof l=="function"?{...i,...l(e,n,a)}:{...i,...l},{})}const sT=B.createContext(null);function Ao(){const e=B.useContext(sT);if(!e)throw new Error("[@mantine/core] MantineProvider was not found in tree");return e}function pk(){return Ao().cssVariablesResolver}function hk(){return Ao().classNamesPrefix}function av(){return Ao().getStyleNonce}function mk(){return Ao().withStaticClasses}function gk(){return Ao().headless}function yk(){return Ao().stylesTransform?.sx}function bk(){return Ao().stylesTransform?.styles}function nh(){return Ao().env||"default"}function vk(e){return/^#?([0-9A-F]{3}){1,2}([0-9A-F]{2})?$/i.test(e)}function xk(e){let t=e.replace("#","");if(t.length===3){const l=t.split("");t=[l[0],l[0],l[1],l[1],l[2],l[2]].join("")}if(t.length===8){const l=parseInt(t.slice(6,8),16)/255;return{r:parseInt(t.slice(0,2),16),g:parseInt(t.slice(2,4),16),b:parseInt(t.slice(4,6),16),a:l}}const n=parseInt(t,16),a=n>>16&255,o=n>>8&255,i=n&255;return{r:a,g:o,b:i,a:1}}function Ck(e){const[t,n,a,o]=e.replace(/[^0-9,./]/g,"").split(/[/,]/).map(Number);return{r:t,g:n,b:a,a:o===void 0?1:o}}function Sk(e){const t=/^hsla?\(\s*(\d+)\s*,\s*(\d+%)\s*,\s*(\d+%)\s*(,\s*(0?\.\d+|\d+(\.\d+)?))?\s*\)$/i,n=e.match(t);if(!n)return{r:0,g:0,b:0,a:1};const a=parseInt(n[1],10),o=parseInt(n[2],10)/100,i=parseInt(n[3],10)/100,l=n[5]?parseFloat(n[5]):void 0,u=(1-Math.abs(2*i-1))*o,d=a/60,f=u*(1-Math.abs(d%2-1)),m=i-u/2;let g,y,b;return d>=0&&d<1?(g=u,y=f,b=0):d>=1&&d<2?(g=f,y=u,b=0):d>=2&&d<3?(g=0,y=u,b=f):d>=3&&d<4?(g=0,y=f,b=u):d>=4&&d<5?(g=f,y=0,b=u):(g=u,y=0,b=f),{r:Math.round((g+m)*255),g:Math.round((y+m)*255),b:Math.round((b+m)*255),a:l||1}}function sv(e){return vk(e)?xk(e):e.startsWith("rgb")?Ck(e):e.startsWith("hsl")?Sk(e):{r:0,g:0,b:0,a:1}}function Bf(e,t){if(e.startsWith("var("))return`color-mix(in srgb, ${e}, black ${t*100}%)`;const{r:n,g:a,b:o,a:i}=sv(e),l=1-t,u=d=>Math.round(d*l);return`rgba(${u(n)}, ${u(a)}, ${u(o)}, ${i})`}function _u(e,t){return typeof e.primaryShade=="number"?e.primaryShade:t==="dark"?e.primaryShade.dark:e.primaryShade.light}function Ry(e){return e<=.03928?e/12.92:((e+.055)/1.055)**2.4}function Nk(e){const t=e.match(/oklch\((.*?)%\s/);return t?parseFloat(t[1]):null}function wk(e){if(e.startsWith("oklch("))return(Nk(e)||0)/100;const{r:t,g:n,b:a}=sv(e),o=t/255,i=n/255,l=a/255,u=Ry(o),d=Ry(i),f=Ry(l);return .2126*u+.7152*d+.0722*f}function nu(e,t=.179){return e.startsWith("var(")?!1:wk(e)>t}function ed({color:e,theme:t,colorScheme:n}){if(typeof e!="string")throw new Error(`[@mantine/core] Failed to parse color. Expected color to be a string, instead got ${typeof e}`);if(e==="bright")return{color:e,value:n==="dark"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:nu(n==="dark"?t.white:t.black,t.luminanceThreshold),variable:"--mantine-color-bright"};if(e==="dimmed")return{color:e,value:n==="dark"?t.colors.dark[2]:t.colors.gray[7],shade:void 0,isThemeColor:!1,isLight:nu(n==="dark"?t.colors.dark[2]:t.colors.gray[6],t.luminanceThreshold),variable:"--mantine-color-dimmed"};if(e==="white"||e==="black")return{color:e,value:e==="white"?t.white:t.black,shade:void 0,isThemeColor:!1,isLight:nu(e==="white"?t.white:t.black,t.luminanceThreshold),variable:`--mantine-color-${e}`};const[a,o]=e.split("."),i=o?Number(o):void 0,l=a in t.colors;if(l){const u=i!==void 0?t.colors[a][i]:t.colors[a][_u(t,n||"light")];return{color:a,value:u,shade:i,isThemeColor:l,isLight:nu(u,t.luminanceThreshold),variable:o?`--mantine-color-${a}-${i}`:`--mantine-color-${a}-filled`}}return{color:e,value:e,isThemeColor:l,isLight:nu(e,t.luminanceThreshold),shade:i,variable:void 0}}function HN(e,t){const n=ed({color:e||t.primaryColor,theme:t});return n.variable?`var(${n.variable})`:e}function UN(e,t){const n={from:e?.from||t.defaultGradient.from,to:e?.to||t.defaultGradient.to,deg:e?.deg??t.defaultGradient.deg??0},a=HN(n.from,t),o=HN(n.to,t);return`linear-gradient(${n.deg}deg, ${a} 0%, ${o} 100%)`}function Ma(e,t){if(typeof e!="string"||t>1||t<0)return"rgba(0, 0, 0, 1)";if(e.startsWith("var(")){const i=(1-t)*100;return`color-mix(in srgb, ${e}, transparent ${i}%)`}if(e.startsWith("oklch"))return e.includes("/")?e.replace(/\/\s*[\d.]+\s*\)/,`/ ${t})`):e.replace(")",` / ${t})`);const{r:n,g:a,b:o}=sv(e);return`rgba(${n}, ${a}, ${o}, ${t})`}const hl=Ma,Ek=({color:e,theme:t,variant:n,gradient:a,autoContrast:o})=>{const i=ed({color:e,theme:t}),l=typeof o=="boolean"?o:t.autoContrast;if(n==="none")return{background:"transparent",hover:"transparent",color:"inherit",border:"none"};if(n==="filled"){const u=l&&i.isLight?"var(--mantine-color-black)":"var(--mantine-color-white)";return i.isThemeColor?i.shade===void 0?{background:`var(--mantine-color-${e}-filled)`,hover:`var(--mantine-color-${e}-filled-hover)`,color:u,border:`${De(1)} solid transparent`}:{background:`var(--mantine-color-${i.color}-${i.shade})`,hover:`var(--mantine-color-${i.color}-${i.shade===9?8:i.shade+1})`,color:u,border:`${De(1)} solid transparent`}:{background:e,hover:Bf(e,.1),color:u,border:`${De(1)} solid transparent`}}if(n==="light"){if(i.isThemeColor){if(i.shade===void 0)return{background:`var(--mantine-color-${e}-light)`,hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${De(1)} solid transparent`};const u=t.colors[i.color][i.shade];return{background:Ma(u,.1),hover:Ma(u,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${De(1)} solid transparent`}}return{background:Ma(e,.1),hover:Ma(e,.12),color:e,border:`${De(1)} solid transparent`}}if(n==="outline")return i.isThemeColor?i.shade===void 0?{background:"transparent",hover:`var(--mantine-color-${e}-outline-hover)`,color:`var(--mantine-color-${e}-outline)`,border:`${De(1)} solid var(--mantine-color-${e}-outline)`}:{background:"transparent",hover:Ma(t.colors[i.color][i.shade],.05),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${De(1)} solid var(--mantine-color-${i.color}-${i.shade})`}:{background:"transparent",hover:Ma(e,.05),color:e,border:`${De(1)} solid ${e}`};if(n==="subtle"){if(i.isThemeColor){if(i.shade===void 0)return{background:"transparent",hover:`var(--mantine-color-${e}-light-hover)`,color:`var(--mantine-color-${e}-light-color)`,border:`${De(1)} solid transparent`};const u=t.colors[i.color][i.shade];return{background:"transparent",hover:Ma(u,.12),color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${De(1)} solid transparent`}}return{background:"transparent",hover:Ma(e,.12),color:e,border:`${De(1)} solid transparent`}}return n==="transparent"?i.isThemeColor?i.shade===void 0?{background:"transparent",hover:"transparent",color:`var(--mantine-color-${e}-light-color)`,border:`${De(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:`var(--mantine-color-${i.color}-${Math.min(i.shade,6)})`,border:`${De(1)} solid transparent`}:{background:"transparent",hover:"transparent",color:e,border:`${De(1)} solid transparent`}:n==="white"?i.isThemeColor?i.shade===void 0?{background:"var(--mantine-color-white)",hover:Bf(t.white,.01),color:`var(--mantine-color-${e}-filled)`,border:`${De(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Bf(t.white,.01),color:`var(--mantine-color-${i.color}-${i.shade})`,border:`${De(1)} solid transparent`}:{background:"var(--mantine-color-white)",hover:Bf(t.white,.01),color:e,border:`${De(1)} solid transparent`}:n==="gradient"?{background:UN(a,t),hover:UN(a,t),color:"var(--mantine-color-white)",border:"none"}:n==="default"?{background:"var(--mantine-color-default)",hover:"var(--mantine-color-default-hover)",color:"var(--mantine-color-default-color)",border:`${De(1)} solid var(--mantine-color-default-border)`}:{}},$k={dark:["#C9C9C9","#b8b8b8","#828282","#696969","#424242","#3b3b3b","#2e2e2e","#242424","#1f1f1f","#141414"],gray:["#f8f9fa","#f1f3f5","#e9ecef","#dee2e6","#ced4da","#adb5bd","#868e96","#495057","#343a40","#212529"],red:["#fff5f5","#ffe3e3","#ffc9c9","#ffa8a8","#ff8787","#ff6b6b","#fa5252","#f03e3e","#e03131","#c92a2a"],pink:["#fff0f6","#ffdeeb","#fcc2d7","#faa2c1","#f783ac","#f06595","#e64980","#d6336c","#c2255c","#a61e4d"],grape:["#f8f0fc","#f3d9fa","#eebefa","#e599f7","#da77f2","#cc5de8","#be4bdb","#ae3ec9","#9c36b5","#862e9c"],violet:["#f3f0ff","#e5dbff","#d0bfff","#b197fc","#9775fa","#845ef7","#7950f2","#7048e8","#6741d9","#5f3dc4"],indigo:["#edf2ff","#dbe4ff","#bac8ff","#91a7ff","#748ffc","#5c7cfa","#4c6ef5","#4263eb","#3b5bdb","#364fc7"],blue:["#e7f5ff","#d0ebff","#a5d8ff","#74c0fc","#4dabf7","#339af0","#228be6","#1c7ed6","#1971c2","#1864ab"],cyan:["#e3fafc","#c5f6fa","#99e9f2","#66d9e8","#3bc9db","#22b8cf","#15aabf","#1098ad","#0c8599","#0b7285"],teal:["#e6fcf5","#c3fae8","#96f2d7","#63e6be","#38d9a9","#20c997","#12b886","#0ca678","#099268","#087f5b"],green:["#ebfbee","#d3f9d8","#b2f2bb","#8ce99a","#69db7c","#51cf66","#40c057","#37b24d","#2f9e44","#2b8a3e"],lime:["#f4fce3","#e9fac8","#d8f5a2","#c0eb75","#a9e34b","#94d82d","#82c91e","#74b816","#66a80f","#5c940d"],yellow:["#fff9db","#fff3bf","#ffec99","#ffe066","#ffd43b","#fcc419","#fab005","#f59f00","#f08c00","#e67700"],orange:["#fff4e6","#ffe8cc","#ffd8a8","#ffc078","#ffa94d","#ff922b","#fd7e14","#f76707","#e8590c","#d9480f"]},VN="-apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji",ov={scale:1,fontSmoothing:!0,focusRing:"auto",white:"#fff",black:"#000",colors:$k,primaryShade:{light:6,dark:8},primaryColor:"blue",variantColorResolver:Ek,autoContrast:!1,luminanceThreshold:.3,fontFamily:VN,fontFamilyMonospace:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace",respectReducedMotion:!1,cursorType:"default",defaultGradient:{from:"blue",to:"cyan",deg:45},defaultRadius:"sm",activeClassName:"mantine-active",focusClassName:"",headings:{fontFamily:VN,fontWeight:"700",textWrap:"wrap",sizes:{h1:{fontSize:De(34),lineHeight:"1.3"},h2:{fontSize:De(26),lineHeight:"1.35"},h3:{fontSize:De(22),lineHeight:"1.4"},h4:{fontSize:De(18),lineHeight:"1.45"},h5:{fontSize:De(16),lineHeight:"1.5"},h6:{fontSize:De(14),lineHeight:"1.5"}}},fontSizes:{xs:De(12),sm:De(14),md:De(16),lg:De(18),xl:De(20)},lineHeights:{xs:"1.4",sm:"1.45",md:"1.55",lg:"1.6",xl:"1.65"},radius:{xs:De(2),sm:De(4),md:De(8),lg:De(16),xl:De(32)},spacing:{xs:De(10),sm:De(12),md:De(16),lg:De(20),xl:De(32)},breakpoints:{xs:"36em",sm:"48em",md:"62em",lg:"75em",xl:"88em"},shadows:{xs:`0 ${De(1)} ${De(3)} rgba(0, 0, 0, 0.05), 0 ${De(1)} ${De(2)} rgba(0, 0, 0, 0.1)`,sm:`0 ${De(1)} ${De(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${De(10)} ${De(15)} ${De(-5)}, rgba(0, 0, 0, 0.04) 0 ${De(7)} ${De(7)} ${De(-5)}`,md:`0 ${De(1)} ${De(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${De(20)} ${De(25)} ${De(-5)}, rgba(0, 0, 0, 0.04) 0 ${De(10)} ${De(10)} ${De(-5)}`,lg:`0 ${De(1)} ${De(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${De(28)} ${De(23)} ${De(-7)}, rgba(0, 0, 0, 0.04) 0 ${De(12)} ${De(12)} ${De(-7)}`,xl:`0 ${De(1)} ${De(3)} rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.05) 0 ${De(36)} ${De(28)} ${De(-7)}, rgba(0, 0, 0, 0.04) 0 ${De(17)} ${De(17)} ${De(-7)}`},other:{},components:{}};function GN(e){return e==="auto"||e==="dark"||e==="light"}function Tk({key:e="mantine-color-scheme-value"}={}){let t;return{get:n=>{if(typeof window>"u")return n;try{const a=window.localStorage.getItem(e);return GN(a)?a:n}catch{return n}},set:n=>{try{window.localStorage.setItem(e,n)}catch(a){console.warn("[@mantine/core] Local storage color scheme manager was unable to save color scheme.",a)}},subscribe:n=>{t=a=>{a.storageArea===window.localStorage&&a.key===e&&GN(a.newValue)&&n(a.newValue)},window.addEventListener("storage",t)},unsubscribe:()=>{window.removeEventListener("storage",t)},clear:()=>{window.localStorage.removeItem(e)}}}const _k="[@mantine/core] MantineProvider: Invalid theme.primaryColor, it accepts only key of theme.colors, learn more – https://mantine.dev/theming/colors/#primary-color",YN="[@mantine/core] MantineProvider: Invalid theme.primaryShade, it accepts only 0-9 integers or an object { light: 0-9, dark: 0-9 }";function Oy(e){return e<0||e>9?!1:parseInt(e.toString(),10)===e}function WN(e){if(!(e.primaryColor in e.colors))throw new Error(_k);if(typeof e.primaryShade=="object"&&(!Oy(e.primaryShade.dark)||!Oy(e.primaryShade.light)))throw new Error(YN);if(typeof e.primaryShade=="number"&&!Oy(e.primaryShade))throw new Error(YN)}function Ak(e,t){if(!t)return WN(e),e;const n=Z0(e,t);return t.fontFamily&&!t.headings?.fontFamily&&(n.headings.fontFamily=t.fontFamily),WN(n),n}const iv=B.createContext(null),Dk=()=>B.useContext(iv)||ov;function Do(){const e=B.useContext(iv);if(!e)throw new Error("@mantine/core: MantineProvider was not found in component tree, make sure you have it in your app");return e}function oT({theme:e,children:t,inherit:n=!0}){const a=Dk(),o=B.useMemo(()=>Ak(n?a:ov,e),[e,a,n]);return p.jsx(iv.Provider,{value:o,children:t})}oT.displayName="@mantine/core/MantineThemeProvider";function jk(){const e=Do(),t=av(),n=qa(e.breakpoints).reduce((a,o)=>{const i=e.breakpoints[o].includes("px"),l=zI(e.breakpoints[o]),u=i?`${l-.1}px`:zN(l-.1),d=i?`${l}px`:zN(l);return`${a}@media (max-width: ${u}) {.mantine-visible-from-${o} {display: none !important;}}@media (min-width: ${d}) {.mantine-hidden-from-${o} {display: none !important;}}`},"");return p.jsx("style",{"data-mantine-styles":"classes",nonce:t?.(),dangerouslySetInnerHTML:{__html:n}})}function Iy(e){return Object.entries(e).map(([t,n])=>`${t}: ${n};`).join("")}function ru(e,t){return(Array.isArray(e)?e:[e]).reduce((a,o)=>`${o}{${a}}`,t)}function Rk(e,t){const n=Iy(e.variables),a=n?ru(t,n):"",o=Iy(e.dark),i=Iy(e.light),l=o?ru(t===":host"?`${t}([data-mantine-color-scheme="dark"])`:`${t}[data-mantine-color-scheme="dark"]`,o):"",u=i?ru(t===":host"?`${t}([data-mantine-color-scheme="light"])`:`${t}[data-mantine-color-scheme="light"]`,i):"";return`${a}

${l}

${u}`}function Ok({color:e,theme:t,autoContrast:n}){return t.autoContrast&&ed({color:e||t.primaryColor,theme:t}).isLight?"var(--mantine-color-black)":"var(--mantine-color-white)"}function XN(e,t){return Ok({color:e.colors[e.primaryColor][_u(e,t)],theme:e,autoContrast:null})}function qf({theme:e,color:t,colorScheme:n,name:a=t,withColorValues:o=!0}){if(!e.colors[t])return{};if(n==="light"){const u=_u(e,"light"),d={[`--mantine-color-${a}-text`]:`var(--mantine-color-${a}-filled)`,[`--mantine-color-${a}-filled`]:`var(--mantine-color-${a}-${u})`,[`--mantine-color-${a}-filled-hover`]:`var(--mantine-color-${a}-${u===9?8:u+1})`,[`--mantine-color-${a}-light`]:hl(e.colors[t][u],.1),[`--mantine-color-${a}-light-hover`]:hl(e.colors[t][u],.12),[`--mantine-color-${a}-light-color`]:`var(--mantine-color-${a}-${u})`,[`--mantine-color-${a}-outline`]:`var(--mantine-color-${a}-${u})`,[`--mantine-color-${a}-outline-hover`]:hl(e.colors[t][u],.05)};return o?{[`--mantine-color-${a}-0`]:e.colors[t][0],[`--mantine-color-${a}-1`]:e.colors[t][1],[`--mantine-color-${a}-2`]:e.colors[t][2],[`--mantine-color-${a}-3`]:e.colors[t][3],[`--mantine-color-${a}-4`]:e.colors[t][4],[`--mantine-color-${a}-5`]:e.colors[t][5],[`--mantine-color-${a}-6`]:e.colors[t][6],[`--mantine-color-${a}-7`]:e.colors[t][7],[`--mantine-color-${a}-8`]:e.colors[t][8],[`--mantine-color-${a}-9`]:e.colors[t][9],...d}:d}const i=_u(e,"dark"),l={[`--mantine-color-${a}-text`]:`var(--mantine-color-${a}-4)`,[`--mantine-color-${a}-filled`]:`var(--mantine-color-${a}-${i})`,[`--mantine-color-${a}-filled-hover`]:`var(--mantine-color-${a}-${i===9?8:i+1})`,[`--mantine-color-${a}-light`]:hl(e.colors[t][Math.max(0,i-2)],.15),[`--mantine-color-${a}-light-hover`]:hl(e.colors[t][Math.max(0,i-2)],.2),[`--mantine-color-${a}-light-color`]:`var(--mantine-color-${a}-${Math.max(i-5,0)})`,[`--mantine-color-${a}-outline`]:`var(--mantine-color-${a}-${Math.max(i-4,0)})`,[`--mantine-color-${a}-outline-hover`]:hl(e.colors[t][Math.max(i-4,0)],.05)};return o?{[`--mantine-color-${a}-0`]:e.colors[t][0],[`--mantine-color-${a}-1`]:e.colors[t][1],[`--mantine-color-${a}-2`]:e.colors[t][2],[`--mantine-color-${a}-3`]:e.colors[t][3],[`--mantine-color-${a}-4`]:e.colors[t][4],[`--mantine-color-${a}-5`]:e.colors[t][5],[`--mantine-color-${a}-6`]:e.colors[t][6],[`--mantine-color-${a}-7`]:e.colors[t][7],[`--mantine-color-${a}-8`]:e.colors[t][8],[`--mantine-color-${a}-9`]:e.colors[t][9],...l}:l}function Ik(e){return!!e&&typeof e=="object"&&"mantine-virtual-color"in e}function ml(e,t,n){qa(t).forEach(a=>Object.assign(e,{[`--mantine-${n}-${a}`]:t[a]}))}const iT=e=>{const t=_u(e,"light"),n=e.defaultRadius in e.radius?e.radius[e.defaultRadius]:De(e.defaultRadius),a={variables:{"--mantine-z-index-app":"100","--mantine-z-index-modal":"200","--mantine-z-index-popover":"300","--mantine-z-index-overlay":"400","--mantine-z-index-max":"9999","--mantine-scale":e.scale.toString(),"--mantine-cursor-type":e.cursorType,"--mantine-webkit-font-smoothing":e.fontSmoothing?"antialiased":"unset","--mantine-moz-font-smoothing":e.fontSmoothing?"grayscale":"unset","--mantine-color-white":e.white,"--mantine-color-black":e.black,"--mantine-line-height":e.lineHeights.md,"--mantine-font-family":e.fontFamily,"--mantine-font-family-monospace":e.fontFamilyMonospace,"--mantine-font-family-headings":e.headings.fontFamily,"--mantine-heading-font-weight":e.headings.fontWeight,"--mantine-heading-text-wrap":e.headings.textWrap,"--mantine-radius-default":n,"--mantine-primary-color-filled":`var(--mantine-color-${e.primaryColor}-filled)`,"--mantine-primary-color-filled-hover":`var(--mantine-color-${e.primaryColor}-filled-hover)`,"--mantine-primary-color-light":`var(--mantine-color-${e.primaryColor}-light)`,"--mantine-primary-color-light-hover":`var(--mantine-color-${e.primaryColor}-light-hover)`,"--mantine-primary-color-light-color":`var(--mantine-color-${e.primaryColor}-light-color)`},light:{"--mantine-color-scheme":"light","--mantine-primary-color-contrast":XN(e,"light"),"--mantine-color-bright":"var(--mantine-color-black)","--mantine-color-text":e.black,"--mantine-color-body":e.white,"--mantine-color-error":"var(--mantine-color-red-6)","--mantine-color-placeholder":"var(--mantine-color-gray-5)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-${t})`,"--mantine-color-default":"var(--mantine-color-white)","--mantine-color-default-hover":"var(--mantine-color-gray-0)","--mantine-color-default-color":"var(--mantine-color-black)","--mantine-color-default-border":"var(--mantine-color-gray-4)","--mantine-color-dimmed":"var(--mantine-color-gray-6)","--mantine-color-disabled":"var(--mantine-color-gray-2)","--mantine-color-disabled-color":"var(--mantine-color-gray-5)","--mantine-color-disabled-border":"var(--mantine-color-gray-3)"},dark:{"--mantine-color-scheme":"dark","--mantine-primary-color-contrast":XN(e,"dark"),"--mantine-color-bright":"var(--mantine-color-white)","--mantine-color-text":"var(--mantine-color-dark-0)","--mantine-color-body":"var(--mantine-color-dark-7)","--mantine-color-error":"var(--mantine-color-red-8)","--mantine-color-placeholder":"var(--mantine-color-dark-3)","--mantine-color-anchor":`var(--mantine-color-${e.primaryColor}-4)`,"--mantine-color-default":"var(--mantine-color-dark-6)","--mantine-color-default-hover":"var(--mantine-color-dark-5)","--mantine-color-default-color":"var(--mantine-color-white)","--mantine-color-default-border":"var(--mantine-color-dark-4)","--mantine-color-dimmed":"var(--mantine-color-dark-2)","--mantine-color-disabled":"var(--mantine-color-dark-6)","--mantine-color-disabled-color":"var(--mantine-color-dark-3)","--mantine-color-disabled-border":"var(--mantine-color-dark-4)"}};ml(a.variables,e.breakpoints,"breakpoint"),ml(a.variables,e.spacing,"spacing"),ml(a.variables,e.fontSizes,"font-size"),ml(a.variables,e.lineHeights,"line-height"),ml(a.variables,e.shadows,"shadow"),ml(a.variables,e.radius,"radius"),e.colors[e.primaryColor].forEach((i,l)=>{a.variables[`--mantine-primary-color-${l}`]=`var(--mantine-color-${e.primaryColor}-${l})`}),qa(e.colors).forEach(i=>{const l=e.colors[i];if(Ik(l)){Object.assign(a.light,qf({theme:e,name:l.name,color:l.light,colorScheme:"light",withColorValues:!0})),Object.assign(a.dark,qf({theme:e,name:l.name,color:l.dark,colorScheme:"dark",withColorValues:!0}));return}l.forEach((u,d)=>{a.variables[`--mantine-color-${i}-${d}`]=u}),Object.assign(a.light,qf({theme:e,color:i,colorScheme:"light",withColorValues:!1})),Object.assign(a.dark,qf({theme:e,color:i,colorScheme:"dark",withColorValues:!1}))});const o=e.headings.sizes;return qa(o).forEach(i=>{a.variables[`--mantine-${i}-font-size`]=o[i].fontSize,a.variables[`--mantine-${i}-line-height`]=o[i].lineHeight,a.variables[`--mantine-${i}-font-weight`]=o[i].fontWeight||e.headings.fontWeight}),a};function kk({theme:e,generator:t}){const n=iT(e),a=t?.(e);return a?Z0(n,a):n}const ky=iT(ov);function Mk(e){const t={variables:{},light:{},dark:{}};return qa(e.variables).forEach(n=>{ky.variables[n]!==e.variables[n]&&(t.variables[n]=e.variables[n])}),qa(e.light).forEach(n=>{ky.light[n]!==e.light[n]&&(t.light[n]=e.light[n])}),qa(e.dark).forEach(n=>{ky.dark[n]!==e.dark[n]&&(t.dark[n]=e.dark[n])}),t}function Pk(e){return`
  ${e}[data-mantine-color-scheme="dark"] { --mantine-color-scheme: dark; }
  ${e}[data-mantine-color-scheme="light"] { --mantine-color-scheme: light; }
`}function lT({cssVariablesSelector:e,deduplicateCssVariables:t}){const n=Do(),a=av(),o=pk(),i=kk({theme:n,generator:o}),l=e===":root"&&t,u=l?Mk(i):i,d=Rk(u,e);return d?p.jsx("style",{"data-mantine-styles":!0,nonce:a?.(),dangerouslySetInnerHTML:{__html:`${d}${l?"":Pk(e)}`}}):null}lT.displayName="@mantine/CssVariables";function gl(e,t){const n=typeof window<"u"&&"matchMedia"in window&&window.matchMedia("(prefers-color-scheme: dark)")?.matches,a=e!=="auto"?e:n?"dark":"light";t()?.setAttribute("data-mantine-color-scheme",a)}function Lk({manager:e,defaultColorScheme:t,getRootElement:n,forceColorScheme:a}){const o=B.useRef(null),[i,l]=B.useState(()=>e.get(t)),u=a||i,d=B.useCallback(m=>{a||(gl(m,n),l(m),e.set(m))},[e.set,u,a]),f=B.useCallback(()=>{l(t),gl(t,n),e.clear()},[e.clear,t]);return B.useEffect(()=>(e.subscribe(d),e.unsubscribe),[e.subscribe,e.unsubscribe]),Ju(()=>{gl(e.get(t),n)},[]),B.useEffect(()=>{if(a)return gl(a,n),()=>{};a===void 0&&gl(i,n),typeof window<"u"&&"matchMedia"in window&&(o.current=window.matchMedia("(prefers-color-scheme: dark)"));const m=g=>{i==="auto"&&gl(g.matches?"dark":"light",n)};return o.current?.addEventListener("change",m),()=>o.current?.removeEventListener("change",m)},[i,a]),{colorScheme:u,setColorScheme:d,clearColorScheme:f}}function Bk({respectReducedMotion:e,getRootElement:t}){Ju(()=>{e&&t()?.setAttribute("data-respect-reduced-motion","true")},[e])}function cT({theme:e,children:t,getStyleNonce:n,withStaticClasses:a=!0,withGlobalClasses:o=!0,deduplicateCssVariables:i=!0,withCssVariables:l=!0,cssVariablesSelector:u=":root",classNamesPrefix:d="mantine",colorSchemeManager:f=Tk(),defaultColorScheme:m="light",getRootElement:g=()=>document.documentElement,cssVariablesResolver:y,forceColorScheme:b,stylesTransform:x,env:S}){const{colorScheme:w,setColorScheme:N,clearColorScheme:T}=Lk({defaultColorScheme:m,forceColorScheme:b,manager:f,getRootElement:g});return Bk({respectReducedMotion:e?.respectReducedMotion||!1,getRootElement:g}),p.jsx(sT.Provider,{value:{colorScheme:w,setColorScheme:N,clearColorScheme:T,getRootElement:g,classNamesPrefix:d,getStyleNonce:n,cssVariablesResolver:y,cssVariablesSelector:u,withStaticClasses:a,stylesTransform:x,env:S},children:p.jsxs(oT,{theme:e,children:[l&&p.jsx(lT,{cssVariablesSelector:u,deduplicateCssVariables:i}),o&&p.jsx(jk,{}),t]})})}cT.displayName="@mantine/core/MantineProvider";function Yl({classNames:e,styles:t,props:n,stylesCtx:a}){const o=Do();return{resolvedClassNames:th({theme:o,classNames:e,props:n,stylesCtx:a||void 0}),resolvedStyles:Cp({theme:o,styles:t,props:n,stylesCtx:a||void 0})}}const qk={always:"mantine-focus-always",auto:"mantine-focus-auto",never:"mantine-focus-never"};function Fk({theme:e,options:t,unstyled:n}){return na(t?.focusable&&!n&&(e.focusClassName||qk[e.focusRing]),t?.active&&!n&&e.activeClassName)}function zk({selector:e,stylesCtx:t,options:n,props:a,theme:o}){return th({theme:o,classNames:n?.classNames,props:n?.props||a,stylesCtx:t})[e]}function KN({selector:e,stylesCtx:t,theme:n,classNames:a,props:o}){return th({theme:n,classNames:a,props:o,stylesCtx:t})[e]}function Hk({rootSelector:e,selector:t,className:n}){return e===t?n:void 0}function Uk({selector:e,classes:t,unstyled:n}){return n?void 0:t[e]}function Vk({themeName:e,classNamesPrefix:t,selector:n,withStaticClass:a}){return a===!1?[]:e.map(o=>`${t}-${o}-${n}`)}function Gk({themeName:e,theme:t,selector:n,props:a,stylesCtx:o}){return e.map(i=>th({theme:t,classNames:t.components[i]?.classNames,props:a,stylesCtx:o})?.[n])}function Yk({options:e,classes:t,selector:n,unstyled:a}){return e?.variant&&!a?t[`${n}--${e.variant}`]:void 0}function Wk({theme:e,options:t,themeName:n,selector:a,classNamesPrefix:o,classNames:i,classes:l,unstyled:u,className:d,rootSelector:f,props:m,stylesCtx:g,withStaticClasses:y,headless:b,transformedStyles:x}){return na(Fk({theme:e,options:t,unstyled:u||b}),Gk({theme:e,themeName:n,selector:a,props:m,stylesCtx:g}),Yk({options:t,classes:l,selector:a,unstyled:u}),KN({selector:a,stylesCtx:g,theme:e,classNames:i,props:m}),KN({selector:a,stylesCtx:g,theme:e,classNames:x,props:m}),zk({selector:a,stylesCtx:g,options:t,props:m,theme:e}),Hk({rootSelector:f,selector:a,className:d}),Uk({selector:a,classes:l,unstyled:u||b}),y&&!b&&Vk({themeName:n,classNamesPrefix:o,selector:a,withStaticClass:t?.withStaticClass}),t?.className)}function Xk({theme:e,themeName:t,props:n,stylesCtx:a,selector:o}){return t.map(i=>Cp({theme:e,styles:e.components[i]?.styles,props:n,stylesCtx:a})[o]).reduce((i,l)=>({...i,...l}),{})}function Jb({style:e,theme:t}){return Array.isArray(e)?[...e].reduce((n,a)=>({...n,...Jb({style:a,theme:t})}),{}):typeof e=="function"?e(t):e??{}}function Kk(e){return e.reduce((t,n)=>(n&&Object.keys(n).forEach(a=>{t[a]={...t[a],...J0(n[a])}}),t),{})}function Qk({vars:e,varsResolver:t,theme:n,props:a,stylesCtx:o,selector:i,themeName:l,headless:u}){return Kk([u?{}:t?.(n,a,o),...l.map(d=>n.components?.[d]?.vars?.(n,a,o)),e?.(n,a,o)])?.[i]}function Zk({theme:e,themeName:t,selector:n,options:a,props:o,stylesCtx:i,rootSelector:l,styles:u,style:d,vars:f,varsResolver:m,headless:g,withStylesTransform:y}){return{...!y&&Xk({theme:e,themeName:t,props:o,stylesCtx:i,selector:n}),...!y&&Cp({theme:e,styles:u,props:o,stylesCtx:i})[n],...!y&&Cp({theme:e,styles:a?.styles,props:a?.props||o,stylesCtx:i})[n],...Qk({theme:e,props:o,stylesCtx:i,vars:f,varsResolver:m,selector:n,themeName:t,headless:g}),...l===n?Jb({style:d,theme:e}):null,...Jb({style:a?.style,theme:e})}}function Jk({props:e,stylesCtx:t,themeName:n}){const a=Do(),o=bk()?.();return{getTransformedStyles:l=>o?[...l.map(d=>o(d,{props:e,theme:a,ctx:t})),...n.map(d=>o(a.components[d]?.styles,{props:e,theme:a,ctx:t}))].filter(Boolean):[],withStylesTransform:!!o}}function sn({name:e,classes:t,props:n,stylesCtx:a,className:o,style:i,rootSelector:l="root",unstyled:u,classNames:d,styles:f,vars:m,varsResolver:g,attributes:y}){const b=Do(),x=hk(),S=mk(),w=gk(),N=(Array.isArray(e)?e:[e]).filter(R=>R),{withStylesTransform:T,getTransformedStyles:A}=Jk({props:n,stylesCtx:a,themeName:N});return(R,E)=>({className:Wk({theme:b,options:E,themeName:N,selector:R,classNamesPrefix:x,classNames:d,classes:t,unstyled:u,className:o,rootSelector:l,props:n,stylesCtx:a,withStaticClasses:S,headless:w,transformedStyles:A([E?.styles,f])}),style:Zk({theme:b,themeName:N,selector:R,options:E,props:n,stylesCtx:a,rootSelector:l,styles:f,style:i,vars:m,varsResolver:g,headless:w,withStylesTransform:T}),...y?.[R]})}function at(e,t,n){const a=Do(),o=a.components[e]?.defaultProps,i=typeof o=="function"?o(a):o;return{...t,...i,...J0(n)}}function My(e){return qa(e).reduce((t,n)=>e[n]!==void 0?`${t}${qI(n)}:${e[n]};`:t,"").trim()}function e4({selector:e,styles:t,media:n,container:a}){const o=t?My(t):"",i=Array.isArray(n)?n.map(u=>`@media${u.query}{${e}{${My(u.styles)}}}`):[],l=Array.isArray(a)?a.map(u=>`@container ${u.query}{${e}{${My(u.styles)}}}`):[];return`${o?`${e}{${o}}`:""}${i.join("")}${l.join("")}`.trim()}function t4(e){const t=av();return p.jsx("style",{"data-mantine-styles":"inline",nonce:t?.(),dangerouslySetInnerHTML:{__html:e4(e)}})}function lv(e){const{m:t,mx:n,my:a,mt:o,mb:i,ml:l,mr:u,me:d,ms:f,p:m,px:g,py:y,pt:b,pb:x,pl:S,pr:w,pe:N,ps:T,bd:A,bdrs:R,bg:E,c:$,opacity:_,ff:k,fz:q,fw:z,lts:D,ta:H,lh:O,fs:j,tt:M,td:I,w:F,miw:V,maw:W,h:U,mih:P,mah:Y,bgsz:K,bgp:Q,bgr:ee,bga:G,pos:oe,top:ye,left:me,bottom:Se,right:Be,inset:ae,display:ge,flex:fe,hiddenFrom:qe,visibleFrom:re,lightHidden:xe,darkHidden:Te,sx:be,...ve}=e;return{styleProps:J0({m:t,mx:n,my:a,mt:o,mb:i,ml:l,mr:u,me:d,ms:f,p:m,px:g,py:y,pt:b,pb:x,pl:S,pr:w,pe:N,ps:T,bd:A,bg:E,c:$,opacity:_,ff:k,fz:q,fw:z,lts:D,ta:H,lh:O,fs:j,tt:M,td:I,w:F,miw:V,maw:W,h:U,mih:P,mah:Y,bgsz:K,bgp:Q,bgr:ee,bga:G,pos:oe,top:ye,left:me,bottom:Se,right:Be,inset:ae,display:ge,flex:fe,bdrs:R,hiddenFrom:qe,visibleFrom:re,lightHidden:xe,darkHidden:Te,sx:be}),rest:ve}}const n4={m:{type:"spacing",property:"margin"},mt:{type:"spacing",property:"marginTop"},mb:{type:"spacing",property:"marginBottom"},ml:{type:"spacing",property:"marginLeft"},mr:{type:"spacing",property:"marginRight"},ms:{type:"spacing",property:"marginInlineStart"},me:{type:"spacing",property:"marginInlineEnd"},mx:{type:"spacing",property:"marginInline"},my:{type:"spacing",property:"marginBlock"},p:{type:"spacing",property:"padding"},pt:{type:"spacing",property:"paddingTop"},pb:{type:"spacing",property:"paddingBottom"},pl:{type:"spacing",property:"paddingLeft"},pr:{type:"spacing",property:"paddingRight"},ps:{type:"spacing",property:"paddingInlineStart"},pe:{type:"spacing",property:"paddingInlineEnd"},px:{type:"spacing",property:"paddingInline"},py:{type:"spacing",property:"paddingBlock"},bd:{type:"border",property:"border"},bdrs:{type:"radius",property:"borderRadius"},bg:{type:"color",property:"background"},c:{type:"textColor",property:"color"},opacity:{type:"identity",property:"opacity"},ff:{type:"fontFamily",property:"fontFamily"},fz:{type:"fontSize",property:"fontSize"},fw:{type:"identity",property:"fontWeight"},lts:{type:"size",property:"letterSpacing"},ta:{type:"identity",property:"textAlign"},lh:{type:"lineHeight",property:"lineHeight"},fs:{type:"identity",property:"fontStyle"},tt:{type:"identity",property:"textTransform"},td:{type:"identity",property:"textDecoration"},w:{type:"spacing",property:"width"},miw:{type:"spacing",property:"minWidth"},maw:{type:"spacing",property:"maxWidth"},h:{type:"spacing",property:"height"},mih:{type:"spacing",property:"minHeight"},mah:{type:"spacing",property:"maxHeight"},bgsz:{type:"size",property:"backgroundSize"},bgp:{type:"identity",property:"backgroundPosition"},bgr:{type:"identity",property:"backgroundRepeat"},bga:{type:"identity",property:"backgroundAttachment"},pos:{type:"identity",property:"position"},top:{type:"size",property:"top"},left:{type:"size",property:"left"},bottom:{type:"size",property:"bottom"},right:{type:"size",property:"right"},inset:{type:"size",property:"inset"},display:{type:"identity",property:"display"},flex:{type:"identity",property:"flex"}};function cv(e,t){const n=ed({color:e,theme:t});return n.color==="dimmed"?"var(--mantine-color-dimmed)":n.color==="bright"?"var(--mantine-color-bright)":n.variable?`var(${n.variable})`:n.color}function r4(e,t){const n=ed({color:e,theme:t});return n.isThemeColor&&n.shade===void 0?`var(--mantine-color-${n.color}-text)`:cv(e,t)}function a4(e,t){if(typeof e=="number")return De(e);if(typeof e=="string"){const[n,a,...o]=e.split(" ").filter(l=>l.trim()!=="");let i=`${De(n)}`;return a&&(i+=` ${a}`),o.length>0&&(i+=` ${cv(o.join(" "),t)}`),i.trim()}return e}const QN={text:"var(--mantine-font-family)",mono:"var(--mantine-font-family-monospace)",monospace:"var(--mantine-font-family-monospace)",heading:"var(--mantine-font-family-headings)",headings:"var(--mantine-font-family-headings)"};function s4(e){return typeof e=="string"&&e in QN?QN[e]:e}const o4=["h1","h2","h3","h4","h5","h6"];function i4(e,t){return typeof e=="string"&&e in t.fontSizes?`var(--mantine-font-size-${e})`:typeof e=="string"&&o4.includes(e)?`var(--mantine-${e}-font-size)`:typeof e=="number"||typeof e=="string"?De(e):e}function l4(e){return e}const c4=["h1","h2","h3","h4","h5","h6"];function u4(e,t){return typeof e=="string"&&e in t.lineHeights?`var(--mantine-line-height-${e})`:typeof e=="string"&&c4.includes(e)?`var(--mantine-${e}-line-height)`:e}function d4(e,t){return typeof e=="string"&&e in t.radius?`var(--mantine-radius-${e})`:typeof e=="number"||typeof e=="string"?De(e):e}function f4(e){return typeof e=="number"?De(e):e}function p4(e,t){if(typeof e=="number")return De(e);if(typeof e=="string"){const n=e.replace("-","");if(!(n in t.spacing))return De(e);const a=`--mantine-spacing-${n}`;return e.startsWith("-")?`calc(var(${a}) * -1)`:`var(${a})`}return e}const Py={color:cv,textColor:r4,fontSize:i4,spacing:p4,radius:d4,identity:l4,size:f4,lineHeight:u4,fontFamily:s4,border:a4};function ZN(e){return e.replace("(min-width: ","").replace("em)","")}function h4({media:e,...t}){const a=Object.keys(e).sort((o,i)=>Number(ZN(o))-Number(ZN(i))).map(o=>({query:o,styles:e[o]}));return{...t,media:a}}function m4(e){if(typeof e!="object"||e===null)return!1;const t=Object.keys(e);return!(t.length===1&&t[0]==="base")}function g4(e){return typeof e=="object"&&e!==null?"base"in e?e.base:void 0:e}function y4(e){return typeof e=="object"&&e!==null?qa(e).filter(t=>t!=="base"):[]}function b4(e,t){return typeof e=="object"&&e!==null&&t in e?e[t]:e}function v4({styleProps:e,data:t,theme:n}){return h4(qa(e).reduce((a,o)=>{if(o==="hiddenFrom"||o==="visibleFrom"||o==="sx")return a;const i=t[o],l=Array.isArray(i.property)?i.property:[i.property],u=g4(e[o]);if(!m4(e[o]))return l.forEach(f=>{a.inlineStyles[f]=Py[i.type](u,n)}),a;a.hasResponsiveStyles=!0;const d=y4(e[o]);return l.forEach(f=>{u!=null&&(a.styles[f]=Py[i.type](u,n)),d.forEach(m=>{const g=`(min-width: ${n.breakpoints[m]})`;a.media[g]={...a.media[g],[f]:Py[i.type](b4(e[o],m),n)}})}),a},{hasResponsiveStyles:!1,styles:{},inlineStyles:{},media:{}}))}function x4(){return`__m__-${B.useId().replace(/[:«»]/g,"")}`}function uT(e){return e.startsWith("data-")?e:`data-${e}`}function C4(e){return Object.keys(e).reduce((t,n)=>{const a=e[n];return a===void 0||a===""||a===!1||a===null||(t[uT(n)]=e[n]),t},{})}function dT(e){return e?typeof e=="string"?{[uT(e)]:!0}:Array.isArray(e)?[...e].reduce((t,n)=>({...t,...dT(n)}),{}):C4(e):null}function e0(e,t){return Array.isArray(e)?[...e].reduce((n,a)=>({...n,...e0(a,t)}),{}):typeof e=="function"?e(t):e??{}}function S4({theme:e,style:t,vars:n,styleProps:a}){const o=e0(t,e),i=e0(n,e);return{...o,...i,...a}}const fT=B.forwardRef(({component:e,style:t,__vars:n,className:a,variant:o,mod:i,size:l,hiddenFrom:u,visibleFrom:d,lightHidden:f,darkHidden:m,renderRoot:g,__size:y,...b},x)=>{const S=Do(),w=e||"div",{styleProps:N,rest:T}=lv(b),R=yk()?.()?.(N.sx),E=x4(),$=v4({styleProps:N,theme:S,data:n4}),_={ref:x,style:S4({theme:S,style:t,vars:n,styleProps:$.inlineStyles}),className:na(a,R,{[E]:$.hasResponsiveStyles,"mantine-light-hidden":f,"mantine-dark-hidden":m,[`mantine-hidden-from-${u}`]:u,[`mantine-visible-from-${d}`]:d}),"data-variant":o,"data-size":K$(l)?void 0:l||void 0,size:y,...dT(i),...T};return p.jsxs(p.Fragment,{children:[$.hasResponsiveStyles&&p.jsx(t4,{selector:`.${E}`,styles:$.styles,media:$.media}),typeof g=="function"?g(_):p.jsx(w,{..._})]})});fT.displayName="@mantine/core/Box";const Bt=fT;function pT(e){return e}function xt(e){const t=B.forwardRef(e);return t.extend=pT,t.withProps=n=>{const a=B.forwardRef((o,i)=>p.jsx(t,{...n,...o,ref:i}));return a.extend=t.extend,a.displayName=`WithProps(${t.displayName})`,a},t}function td(e){const t=B.forwardRef(e);return t.withProps=n=>{const a=B.forwardRef((o,i)=>p.jsx(t,{...n,...o,ref:i}));return a.extend=t.extend,a.displayName=`WithProps(${t.displayName})`,a},t.extend=pT,t}const N4=B.createContext({dir:"ltr",toggleDirection:()=>{},setDirection:()=>{}});function uv(){return B.useContext(N4)}var nd=B$();const hT=Di(nd);function rh(){return typeof window<"u"}function Wl(e){return mT(e)?(e.nodeName||"").toLowerCase():"#document"}function Ar(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ga(e){var t;return(t=(mT(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function mT(e){return rh()?e instanceof Node||e instanceof Ar(e).Node:!1}function ar(e){return rh()?e instanceof Element||e instanceof Ar(e).Element:!1}function za(e){return rh()?e instanceof HTMLElement||e instanceof Ar(e).HTMLElement:!1}function JN(e){return!rh()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Ar(e).ShadowRoot}const w4=new Set(["inline","contents"]);function rd(e){const{overflow:t,overflowX:n,overflowY:a,display:o}=Na(e);return/auto|scroll|overlay|hidden|clip/.test(t+a+n)&&!w4.has(o)}const E4=new Set(["table","td","th"]);function $4(e){return E4.has(Wl(e))}const T4=[":popover-open",":modal"];function ah(e){return T4.some(t=>{try{return e.matches(t)}catch{return!1}})}const _4=["transform","translate","scale","rotate","perspective"],A4=["transform","translate","scale","rotate","perspective","filter"],D4=["paint","layout","strict","content"];function dv(e){const t=fv(),n=ar(e)?Na(e):e;return _4.some(a=>n[a]?n[a]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||A4.some(a=>(n.willChange||"").includes(a))||D4.some(a=>(n.contain||"").includes(a))}function j4(e){let t=So(e);for(;za(t)&&!Ol(t);){if(dv(t))return t;if(ah(t))return null;t=So(t)}return null}function fv(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const R4=new Set(["html","body","#document"]);function Ol(e){return R4.has(Wl(e))}function Na(e){return Ar(e).getComputedStyle(e)}function sh(e){return ar(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function So(e){if(Wl(e)==="html")return e;const t=e.assignedSlot||e.parentNode||JN(e)&&e.host||Ga(e);return JN(t)?t.host:t}function gT(e){const t=So(e);return Ol(t)?e.ownerDocument?e.ownerDocument.body:e.body:za(t)&&rd(t)?t:gT(t)}function Au(e,t,n){var a;t===void 0&&(t=[]),n===void 0&&(n=!0);const o=gT(e),i=o===((a=e.ownerDocument)==null?void 0:a.body),l=Ar(o);if(i){const u=t0(l);return t.concat(l,l.visualViewport||[],rd(o)?o:[],u&&n?Au(u):[])}return t.concat(o,Au(o,[],n))}function t0(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}const O4=["top","right","bottom","left"],wa=Math.min,Xn=Math.max,Sp=Math.round,Ff=Math.floor,Fa=e=>({x:e,y:e}),I4={left:"right",right:"left",bottom:"top",top:"bottom"},k4={start:"end",end:"start"};function n0(e,t,n){return Xn(e,wa(t,n))}function Ha(e,t){return typeof e=="function"?e(t):e}function Ea(e){return e.split("-")[0]}function Xl(e){return e.split("-")[1]}function pv(e){return e==="x"?"y":"x"}function hv(e){return e==="y"?"height":"width"}const M4=new Set(["top","bottom"]);function va(e){return M4.has(Ea(e))?"y":"x"}function mv(e){return pv(va(e))}function P4(e,t,n){n===void 0&&(n=!1);const a=Xl(e),o=mv(e),i=hv(o);let l=o==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(l=Np(l)),[l,Np(l)]}function L4(e){const t=Np(e);return[r0(e),t,r0(t)]}function r0(e){return e.replace(/start|end/g,t=>k4[t])}const ew=["left","right"],tw=["right","left"],B4=["top","bottom"],q4=["bottom","top"];function F4(e,t,n){switch(e){case"top":case"bottom":return n?t?tw:ew:t?ew:tw;case"left":case"right":return t?B4:q4;default:return[]}}function z4(e,t,n,a){const o=Xl(e);let i=F4(Ea(e),n==="start",a);return o&&(i=i.map(l=>l+"-"+o),t&&(i=i.concat(i.map(r0)))),i}function Np(e){return e.replace(/left|right|bottom|top/g,t=>I4[t])}function H4(e){return{top:0,right:0,bottom:0,left:0,...e}}function gv(e){return typeof e!="number"?H4(e):{top:e,right:e,bottom:e,left:e}}function Il(e){const{x:t,y:n,width:a,height:o}=e;return{width:a,height:o,top:n,left:t,right:t+a,bottom:n+o,x:t,y:n}}var U4=typeof document<"u",V4=function(){},a0=U4?B.useLayoutEffect:V4;const G4={...F$},Y4=G4.useInsertionEffect,W4=Y4||(e=>e());function X4(e){const t=B.useRef(()=>{});return W4(()=>{t.current=e}),B.useCallback(function(){for(var n=arguments.length,a=new Array(n),o=0;o<n;o++)a[o]=arguments[o];return t.current==null?void 0:t.current(...a)},[])}function nw(e,t,n){let{reference:a,floating:o}=e;const i=va(t),l=mv(t),u=hv(l),d=Ea(t),f=i==="y",m=a.x+a.width/2-o.width/2,g=a.y+a.height/2-o.height/2,y=a[u]/2-o[u]/2;let b;switch(d){case"top":b={x:m,y:a.y-o.height};break;case"bottom":b={x:m,y:a.y+a.height};break;case"right":b={x:a.x+a.width,y:g};break;case"left":b={x:a.x-o.width,y:g};break;default:b={x:a.x,y:a.y}}switch(Xl(t)){case"start":b[l]-=y*(n&&f?-1:1);break;case"end":b[l]+=y*(n&&f?-1:1);break}return b}const K4=async(e,t,n)=>{const{placement:a="bottom",strategy:o="absolute",middleware:i=[],platform:l}=n,u=i.filter(Boolean),d=await(l.isRTL==null?void 0:l.isRTL(t));let f=await l.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:g}=nw(f,a,d),y=a,b={},x=0;for(let S=0;S<u.length;S++){const{name:w,fn:N}=u[S],{x:T,y:A,data:R,reset:E}=await N({x:m,y:g,initialPlacement:a,placement:y,strategy:o,middlewareData:b,rects:f,platform:l,elements:{reference:e,floating:t}});m=T??m,g=A??g,b={...b,[w]:{...b[w],...R}},E&&x<=50&&(x++,typeof E=="object"&&(E.placement&&(y=E.placement),E.rects&&(f=E.rects===!0?await l.getElementRects({reference:e,floating:t,strategy:o}):E.rects),{x:m,y:g}=nw(f,y,d)),S=-1)}return{x:m,y:g,placement:y,strategy:o,middlewareData:b}};async function Du(e,t){var n;t===void 0&&(t={});const{x:a,y:o,platform:i,rects:l,elements:u,strategy:d}=e,{boundary:f="clippingAncestors",rootBoundary:m="viewport",elementContext:g="floating",altBoundary:y=!1,padding:b=0}=Ha(t,e),x=gv(b),w=u[y?g==="floating"?"reference":"floating":g],N=Il(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(u.floating)),boundary:f,rootBoundary:m,strategy:d})),T=g==="floating"?{x:a,y:o,width:l.floating.width,height:l.floating.height}:l.reference,A=await(i.getOffsetParent==null?void 0:i.getOffsetParent(u.floating)),R=await(i.isElement==null?void 0:i.isElement(A))?await(i.getScale==null?void 0:i.getScale(A))||{x:1,y:1}:{x:1,y:1},E=Il(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:u,rect:T,offsetParent:A,strategy:d}):T);return{top:(N.top-E.top+x.top)/R.y,bottom:(E.bottom-N.bottom+x.bottom)/R.y,left:(N.left-E.left+x.left)/R.x,right:(E.right-N.right+x.right)/R.x}}const Q4=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:o,rects:i,platform:l,elements:u,middlewareData:d}=t,{element:f,padding:m=0}=Ha(e,t)||{};if(f==null)return{};const g=gv(m),y={x:n,y:a},b=mv(o),x=hv(b),S=await l.getDimensions(f),w=b==="y",N=w?"top":"left",T=w?"bottom":"right",A=w?"clientHeight":"clientWidth",R=i.reference[x]+i.reference[b]-y[b]-i.floating[x],E=y[b]-i.reference[b],$=await(l.getOffsetParent==null?void 0:l.getOffsetParent(f));let _=$?$[A]:0;(!_||!await(l.isElement==null?void 0:l.isElement($)))&&(_=u.floating[A]||i.floating[x]);const k=R/2-E/2,q=_/2-S[x]/2-1,z=wa(g[N],q),D=wa(g[T],q),H=z,O=_-S[x]-D,j=_/2-S[x]/2+k,M=n0(H,j,O),I=!d.arrow&&Xl(o)!=null&&j!==M&&i.reference[x]/2-(j<H?z:D)-S[x]/2<0,F=I?j<H?j-H:j-O:0;return{[b]:y[b]+F,data:{[b]:M,centerOffset:j-M-F,...I&&{alignmentOffset:F}},reset:I}}}),Z4=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,a;const{placement:o,middlewareData:i,rects:l,initialPlacement:u,platform:d,elements:f}=t,{mainAxis:m=!0,crossAxis:g=!0,fallbackPlacements:y,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:x="none",flipAlignment:S=!0,...w}=Ha(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const N=Ea(o),T=va(u),A=Ea(u)===u,R=await(d.isRTL==null?void 0:d.isRTL(f.floating)),E=y||(A||!S?[Np(u)]:L4(u)),$=x!=="none";!y&&$&&E.push(...z4(u,S,x,R));const _=[u,...E],k=await Du(t,w),q=[];let z=((a=i.flip)==null?void 0:a.overflows)||[];if(m&&q.push(k[N]),g){const j=P4(o,l,R);q.push(k[j[0]],k[j[1]])}if(z=[...z,{placement:o,overflows:q}],!q.every(j=>j<=0)){var D,H;const j=(((D=i.flip)==null?void 0:D.index)||0)+1,M=_[j];if(M&&(!(g==="alignment"?T!==va(M):!1)||z.every(V=>va(V.placement)===T?V.overflows[0]>0:!0)))return{data:{index:j,overflows:z},reset:{placement:M}};let I=(H=z.filter(F=>F.overflows[0]<=0).sort((F,V)=>F.overflows[1]-V.overflows[1])[0])==null?void 0:H.placement;if(!I)switch(b){case"bestFit":{var O;const F=(O=z.filter(V=>{if($){const W=va(V.placement);return W===T||W==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(W=>W>0).reduce((W,U)=>W+U,0)]).sort((V,W)=>V[1]-W[1])[0])==null?void 0:O[0];F&&(I=F);break}case"initialPlacement":I=u;break}if(o!==I)return{reset:{placement:I}}}return{}}}};function rw(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function aw(e){return O4.some(t=>e[t]>=0)}const J4=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,{strategy:a="referenceHidden",...o}=Ha(e,t);switch(a){case"referenceHidden":{const i=await Du(t,{...o,elementContext:"reference"}),l=rw(i,n.reference);return{data:{referenceHiddenOffsets:l,referenceHidden:aw(l)}}}case"escaped":{const i=await Du(t,{...o,altBoundary:!0}),l=rw(i,n.floating);return{data:{escapedOffsets:l,escaped:aw(l)}}}default:return{}}}}};function yT(e){const t=wa(...e.map(i=>i.left)),n=wa(...e.map(i=>i.top)),a=Xn(...e.map(i=>i.right)),o=Xn(...e.map(i=>i.bottom));return{x:t,y:n,width:a-t,height:o-n}}function eM(e){const t=e.slice().sort((o,i)=>o.y-i.y),n=[];let a=null;for(let o=0;o<t.length;o++){const i=t[o];!a||i.y-a.y>a.height/2?n.push([i]):n[n.length-1].push(i),a=i}return n.map(o=>Il(yT(o)))}const tM=function(e){return e===void 0&&(e={}),{name:"inline",options:e,async fn(t){const{placement:n,elements:a,rects:o,platform:i,strategy:l}=t,{padding:u=2,x:d,y:f}=Ha(e,t),m=Array.from(await(i.getClientRects==null?void 0:i.getClientRects(a.reference))||[]),g=eM(m),y=Il(yT(m)),b=gv(u);function x(){if(g.length===2&&g[0].left>g[1].right&&d!=null&&f!=null)return g.find(w=>d>w.left-b.left&&d<w.right+b.right&&f>w.top-b.top&&f<w.bottom+b.bottom)||y;if(g.length>=2){if(va(n)==="y"){const z=g[0],D=g[g.length-1],H=Ea(n)==="top",O=z.top,j=D.bottom,M=H?z.left:D.left,I=H?z.right:D.right,F=I-M,V=j-O;return{top:O,bottom:j,left:M,right:I,width:F,height:V,x:M,y:O}}const w=Ea(n)==="left",N=Xn(...g.map(z=>z.right)),T=wa(...g.map(z=>z.left)),A=g.filter(z=>w?z.left===T:z.right===N),R=A[0].top,E=A[A.length-1].bottom,$=T,_=N,k=_-$,q=E-R;return{top:R,bottom:E,left:$,right:_,width:k,height:q,x:$,y:R}}return y}const S=await i.getElementRects({reference:{getBoundingClientRect:x},floating:a.floating,strategy:l});return o.reference.x!==S.reference.x||o.reference.y!==S.reference.y||o.reference.width!==S.reference.width||o.reference.height!==S.reference.height?{reset:{rects:S}}:{}}}},bT=new Set(["left","top"]);async function nM(e,t){const{placement:n,platform:a,elements:o}=e,i=await(a.isRTL==null?void 0:a.isRTL(o.floating)),l=Ea(n),u=Xl(n),d=va(n)==="y",f=bT.has(l)?-1:1,m=i&&d?-1:1,g=Ha(t,e);let{mainAxis:y,crossAxis:b,alignmentAxis:x}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return u&&typeof x=="number"&&(b=u==="end"?x*-1:x),d?{x:b*m,y:y*f}:{x:y*f,y:b*m}}const rM=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,a;const{x:o,y:i,placement:l,middlewareData:u}=t,d=await nM(t,e);return l===((n=u.offset)==null?void 0:n.placement)&&(a=u.arrow)!=null&&a.alignmentOffset?{}:{x:o+d.x,y:i+d.y,data:{...d,placement:l}}}}},aM=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:a,placement:o}=t,{mainAxis:i=!0,crossAxis:l=!1,limiter:u={fn:w=>{let{x:N,y:T}=w;return{x:N,y:T}}},...d}=Ha(e,t),f={x:n,y:a},m=await Du(t,d),g=va(Ea(o)),y=pv(g);let b=f[y],x=f[g];if(i){const w=y==="y"?"top":"left",N=y==="y"?"bottom":"right",T=b+m[w],A=b-m[N];b=n0(T,b,A)}if(l){const w=g==="y"?"top":"left",N=g==="y"?"bottom":"right",T=x+m[w],A=x-m[N];x=n0(T,x,A)}const S=u.fn({...t,[y]:b,[g]:x});return{...S,data:{x:S.x-n,y:S.y-a,enabled:{[y]:i,[g]:l}}}}}},sM=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:a,placement:o,rects:i,middlewareData:l}=t,{offset:u=0,mainAxis:d=!0,crossAxis:f=!0}=Ha(e,t),m={x:n,y:a},g=va(o),y=pv(g);let b=m[y],x=m[g];const S=Ha(u,t),w=typeof S=="number"?{mainAxis:S,crossAxis:0}:{mainAxis:0,crossAxis:0,...S};if(d){const A=y==="y"?"height":"width",R=i.reference[y]-i.floating[A]+w.mainAxis,E=i.reference[y]+i.reference[A]-w.mainAxis;b<R?b=R:b>E&&(b=E)}if(f){var N,T;const A=y==="y"?"width":"height",R=bT.has(Ea(o)),E=i.reference[g]-i.floating[A]+(R&&((N=l.offset)==null?void 0:N[g])||0)+(R?0:w.crossAxis),$=i.reference[g]+i.reference[A]+(R?0:((T=l.offset)==null?void 0:T[g])||0)-(R?w.crossAxis:0);x<E?x=E:x>$&&(x=$)}return{[y]:b,[g]:x}}}},oM=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,a;const{placement:o,rects:i,platform:l,elements:u}=t,{apply:d=()=>{},...f}=Ha(e,t),m=await Du(t,f),g=Ea(o),y=Xl(o),b=va(o)==="y",{width:x,height:S}=i.floating;let w,N;g==="top"||g==="bottom"?(w=g,N=y===(await(l.isRTL==null?void 0:l.isRTL(u.floating))?"start":"end")?"left":"right"):(N=g,w=y==="end"?"top":"bottom");const T=S-m.top-m.bottom,A=x-m.left-m.right,R=wa(S-m[w],T),E=wa(x-m[N],A),$=!t.middlewareData.shift;let _=R,k=E;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(k=A),(a=t.middlewareData.shift)!=null&&a.enabled.y&&(_=T),$&&!y){const z=Xn(m.left,0),D=Xn(m.right,0),H=Xn(m.top,0),O=Xn(m.bottom,0);b?k=x-2*(z!==0||D!==0?z+D:Xn(m.left,m.right)):_=S-2*(H!==0||O!==0?H+O:Xn(m.top,m.bottom))}await d({...t,availableWidth:k,availableHeight:_});const q=await l.getDimensions(u.floating);return x!==q.width||S!==q.height?{reset:{rects:!0}}:{}}}};function vT(e){const t=Na(e);let n=parseFloat(t.width)||0,a=parseFloat(t.height)||0;const o=za(e),i=o?e.offsetWidth:n,l=o?e.offsetHeight:a,u=Sp(n)!==i||Sp(a)!==l;return u&&(n=i,a=l),{width:n,height:a,$:u}}function yv(e){return ar(e)?e:e.contextElement}function Al(e){const t=yv(e);if(!za(t))return Fa(1);const n=t.getBoundingClientRect(),{width:a,height:o,$:i}=vT(t);let l=(i?Sp(n.width):n.width)/a,u=(i?Sp(n.height):n.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const iM=Fa(0);function xT(e){const t=Ar(e);return!fv()||!t.visualViewport?iM:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function lM(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==Ar(e)?!1:t}function Ci(e,t,n,a){t===void 0&&(t=!1),n===void 0&&(n=!1);const o=e.getBoundingClientRect(),i=yv(e);let l=Fa(1);t&&(a?ar(a)&&(l=Al(a)):l=Al(e));const u=lM(i,n,a)?xT(i):Fa(0);let d=(o.left+u.x)/l.x,f=(o.top+u.y)/l.y,m=o.width/l.x,g=o.height/l.y;if(i){const y=Ar(i),b=a&&ar(a)?Ar(a):a;let x=y,S=t0(x);for(;S&&a&&b!==x;){const w=Al(S),N=S.getBoundingClientRect(),T=Na(S),A=N.left+(S.clientLeft+parseFloat(T.paddingLeft))*w.x,R=N.top+(S.clientTop+parseFloat(T.paddingTop))*w.y;d*=w.x,f*=w.y,m*=w.x,g*=w.y,d+=A,f+=R,x=Ar(S),S=t0(x)}}return Il({width:m,height:g,x:d,y:f})}function oh(e,t){const n=sh(e).scrollLeft;return t?t.left+n:Ci(Ga(e)).left+n}function CT(e,t){const n=e.getBoundingClientRect(),a=n.left+t.scrollLeft-oh(e,n),o=n.top+t.scrollTop;return{x:a,y:o}}function cM(e){let{elements:t,rect:n,offsetParent:a,strategy:o}=e;const i=o==="fixed",l=Ga(a),u=t?ah(t.floating):!1;if(a===l||u&&i)return n;let d={scrollLeft:0,scrollTop:0},f=Fa(1);const m=Fa(0),g=za(a);if((g||!g&&!i)&&((Wl(a)!=="body"||rd(l))&&(d=sh(a)),za(a))){const b=Ci(a);f=Al(a),m.x=b.x+a.clientLeft,m.y=b.y+a.clientTop}const y=l&&!g&&!i?CT(l,d):Fa(0);return{width:n.width*f.x,height:n.height*f.y,x:n.x*f.x-d.scrollLeft*f.x+m.x+y.x,y:n.y*f.y-d.scrollTop*f.y+m.y+y.y}}function uM(e){return Array.from(e.getClientRects())}function dM(e){const t=Ga(e),n=sh(e),a=e.ownerDocument.body,o=Xn(t.scrollWidth,t.clientWidth,a.scrollWidth,a.clientWidth),i=Xn(t.scrollHeight,t.clientHeight,a.scrollHeight,a.clientHeight);let l=-n.scrollLeft+oh(e);const u=-n.scrollTop;return Na(a).direction==="rtl"&&(l+=Xn(t.clientWidth,a.clientWidth)-o),{width:o,height:i,x:l,y:u}}const sw=25;function fM(e,t){const n=Ar(e),a=Ga(e),o=n.visualViewport;let i=a.clientWidth,l=a.clientHeight,u=0,d=0;if(o){i=o.width,l=o.height;const m=fv();(!m||m&&t==="fixed")&&(u=o.offsetLeft,d=o.offsetTop)}const f=oh(a);if(f<=0){const m=a.ownerDocument,g=m.body,y=getComputedStyle(g),b=m.compatMode==="CSS1Compat"&&parseFloat(y.marginLeft)+parseFloat(y.marginRight)||0,x=Math.abs(a.clientWidth-g.clientWidth-b);x<=sw&&(i-=x)}else f<=sw&&(i+=f);return{width:i,height:l,x:u,y:d}}const pM=new Set(["absolute","fixed"]);function hM(e,t){const n=Ci(e,!0,t==="fixed"),a=n.top+e.clientTop,o=n.left+e.clientLeft,i=za(e)?Al(e):Fa(1),l=e.clientWidth*i.x,u=e.clientHeight*i.y,d=o*i.x,f=a*i.y;return{width:l,height:u,x:d,y:f}}function ow(e,t,n){let a;if(t==="viewport")a=fM(e,n);else if(t==="document")a=dM(Ga(e));else if(ar(t))a=hM(t,n);else{const o=xT(e);a={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return Il(a)}function ST(e,t){const n=So(e);return n===t||!ar(n)||Ol(n)?!1:Na(n).position==="fixed"||ST(n,t)}function mM(e,t){const n=t.get(e);if(n)return n;let a=Au(e,[],!1).filter(u=>ar(u)&&Wl(u)!=="body"),o=null;const i=Na(e).position==="fixed";let l=i?So(e):e;for(;ar(l)&&!Ol(l);){const u=Na(l),d=dv(l);!d&&u.position==="fixed"&&(o=null),(i?!d&&!o:!d&&u.position==="static"&&!!o&&pM.has(o.position)||rd(l)&&!d&&ST(e,l))?a=a.filter(m=>m!==l):o=u,l=So(l)}return t.set(e,a),a}function gM(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e;const l=[...n==="clippingAncestors"?ah(t)?[]:mM(t,this._c):[].concat(n),a],u=l[0],d=l.reduce((f,m)=>{const g=ow(t,m,o);return f.top=Xn(g.top,f.top),f.right=wa(g.right,f.right),f.bottom=wa(g.bottom,f.bottom),f.left=Xn(g.left,f.left),f},ow(t,u,o));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function yM(e){const{width:t,height:n}=vT(e);return{width:t,height:n}}function bM(e,t,n){const a=za(t),o=Ga(t),i=n==="fixed",l=Ci(e,!0,i,t);let u={scrollLeft:0,scrollTop:0};const d=Fa(0);function f(){d.x=oh(o)}if(a||!a&&!i)if((Wl(t)!=="body"||rd(o))&&(u=sh(t)),a){const b=Ci(t,!0,i,t);d.x=b.x+t.clientLeft,d.y=b.y+t.clientTop}else o&&f();i&&!a&&o&&f();const m=o&&!a&&!i?CT(o,u):Fa(0),g=l.left+u.scrollLeft-d.x-m.x,y=l.top+u.scrollTop-d.y-m.y;return{x:g,y,width:l.width,height:l.height}}function Ly(e){return Na(e).position==="static"}function iw(e,t){if(!za(e)||Na(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return Ga(e)===n&&(n=n.ownerDocument.body),n}function NT(e,t){const n=Ar(e);if(ah(e))return n;if(!za(e)){let o=So(e);for(;o&&!Ol(o);){if(ar(o)&&!Ly(o))return o;o=So(o)}return n}let a=iw(e,t);for(;a&&$4(a)&&Ly(a);)a=iw(a,t);return a&&Ol(a)&&Ly(a)&&!dv(a)?n:a||j4(e)||n}const vM=async function(e){const t=this.getOffsetParent||NT,n=this.getDimensions,a=await n(e.floating);return{reference:bM(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:a.width,height:a.height}}};function xM(e){return Na(e).direction==="rtl"}const CM={convertOffsetParentRelativeRectToViewportRelativeRect:cM,getDocumentElement:Ga,getClippingRect:gM,getOffsetParent:NT,getElementRects:vM,getClientRects:uM,getDimensions:yM,getScale:Al,isElement:ar,isRTL:xM};function wT(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function SM(e,t){let n=null,a;const o=Ga(e);function i(){var u;clearTimeout(a),(u=n)==null||u.disconnect(),n=null}function l(u,d){u===void 0&&(u=!1),d===void 0&&(d=1),i();const f=e.getBoundingClientRect(),{left:m,top:g,width:y,height:b}=f;if(u||t(),!y||!b)return;const x=Ff(g),S=Ff(o.clientWidth-(m+y)),w=Ff(o.clientHeight-(g+b)),N=Ff(m),A={rootMargin:-x+"px "+-S+"px "+-w+"px "+-N+"px",threshold:Xn(0,wa(1,d))||1};let R=!0;function E($){const _=$[0].intersectionRatio;if(_!==d){if(!R)return l();_?l(!1,_):a=setTimeout(()=>{l(!1,1e-7)},1e3)}_===1&&!wT(f,e.getBoundingClientRect())&&l(),R=!1}try{n=new IntersectionObserver(E,{...A,root:o.ownerDocument})}catch{n=new IntersectionObserver(E,A)}n.observe(e)}return l(!0),i}function lw(e,t,n,a){a===void 0&&(a={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:d=!1}=a,f=yv(e),m=o||i?[...f?Au(f):[],...Au(t)]:[];m.forEach(N=>{o&&N.addEventListener("scroll",n,{passive:!0}),i&&N.addEventListener("resize",n)});const g=f&&u?SM(f,n):null;let y=-1,b=null;l&&(b=new ResizeObserver(N=>{let[T]=N;T&&T.target===f&&b&&(b.unobserve(t),cancelAnimationFrame(y),y=requestAnimationFrame(()=>{var A;(A=b)==null||A.observe(t)})),n()}),f&&!d&&b.observe(f),b.observe(t));let x,S=d?Ci(e):null;d&&w();function w(){const N=Ci(e);S&&!wT(S,N)&&n(),S=N,x=requestAnimationFrame(w)}return n(),()=>{var N;m.forEach(T=>{o&&T.removeEventListener("scroll",n),i&&T.removeEventListener("resize",n)}),g?.(),(N=b)==null||N.disconnect(),b=null,d&&cancelAnimationFrame(x)}}const NM=rM,wM=aM,EM=Z4,$M=oM,TM=J4,cw=Q4,_M=tM,AM=sM,DM=(e,t,n)=>{const a=new Map,o={platform:CM,...n},i={...o.platform,_c:a};return K4(e,t,{...o,platform:i})};var jM=typeof document<"u",RM=function(){},op=jM?B.useLayoutEffect:RM;function wp(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,a,o;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(a=n;a--!==0;)if(!wp(e[a],t[a]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(a=n;a--!==0;)if(!{}.hasOwnProperty.call(t,o[a]))return!1;for(a=n;a--!==0;){const i=o[a];if(!(i==="_owner"&&e.$$typeof)&&!wp(e[i],t[i]))return!1}return!0}return e!==e&&t!==t}function ET(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uw(e,t){const n=ET(e);return Math.round(t*n)/n}function By(e){const t=B.useRef(e);return op(()=>{t.current=e}),t}function OM(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:a=[],platform:o,elements:{reference:i,floating:l}={},transform:u=!0,whileElementsMounted:d,open:f}=e,[m,g]=B.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[y,b]=B.useState(a);wp(y,a)||b(a);const[x,S]=B.useState(null),[w,N]=B.useState(null),T=B.useCallback(V=>{V!==$.current&&($.current=V,S(V))},[]),A=B.useCallback(V=>{V!==_.current&&(_.current=V,N(V))},[]),R=i||x,E=l||w,$=B.useRef(null),_=B.useRef(null),k=B.useRef(m),q=d!=null,z=By(d),D=By(o),H=By(f),O=B.useCallback(()=>{if(!$.current||!_.current)return;const V={placement:t,strategy:n,middleware:y};D.current&&(V.platform=D.current),DM($.current,_.current,V).then(W=>{const U={...W,isPositioned:H.current!==!1};j.current&&!wp(k.current,U)&&(k.current=U,nd.flushSync(()=>{g(U)}))})},[y,t,n,D,H]);op(()=>{f===!1&&k.current.isPositioned&&(k.current.isPositioned=!1,g(V=>({...V,isPositioned:!1})))},[f]);const j=B.useRef(!1);op(()=>(j.current=!0,()=>{j.current=!1}),[]),op(()=>{if(R&&($.current=R),E&&(_.current=E),R&&E){if(z.current)return z.current(R,E,O);O()}},[R,E,O,z,q]);const M=B.useMemo(()=>({reference:$,floating:_,setReference:T,setFloating:A}),[T,A]),I=B.useMemo(()=>({reference:R,floating:E}),[R,E]),F=B.useMemo(()=>{const V={position:n,left:0,top:0};if(!I.floating)return V;const W=uw(I.floating,m.x),U=uw(I.floating,m.y);return u?{...V,transform:"translate("+W+"px, "+U+"px)",...ET(I.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:W,top:U}},[n,u,I.floating,m.x,m.y]);return B.useMemo(()=>({...m,update:O,refs:M,elements:I,floatingStyles:F}),[m,O,M,I,F])}const IM=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:a,padding:o}=typeof e=="function"?e(n):e;return a&&t(a)?a.current!=null?cw({element:a.current,padding:o}).fn(n):{}:a?cw({element:a,padding:o}).fn(n):{}}}},kM=(e,t)=>({...NM(e),options:[e,t]}),MM=(e,t)=>({...wM(e),options:[e,t]}),dw=(e,t)=>({...AM(e),options:[e,t]}),fw=(e,t)=>({...EM(e),options:[e,t]}),PM=(e,t)=>({...$M(e),options:[e,t]}),LM=(e,t)=>({...TM(e),options:[e,t]}),pw=(e,t)=>({..._M(e),options:[e,t]}),BM=(e,t)=>({...IM(e),options:[e,t]});function $T(e){const t=B.useRef(void 0),n=B.useCallback(a=>{const o=e.map(i=>{if(i!=null){if(typeof i=="function"){const l=i,u=l(a);return typeof u=="function"?u:()=>{l(null)}}return i.current=a,()=>{i.current=null}}});return()=>{o.forEach(i=>i?.())}},e);return B.useMemo(()=>e.every(a=>a==null)?null:a=>{t.current&&(t.current(),t.current=void 0),a!=null&&(t.current=n(a))},e)}const qM={...F$};let hw=!1,FM=0;const mw=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+FM++;function zM(){const[e,t]=B.useState(()=>hw?mw():void 0);return a0(()=>{e==null&&t(mw())},[]),B.useEffect(()=>{hw=!0},[]),e}const HM=qM.useId,UM=HM||zM;function VM(){const e=new Map;return{emit(t,n){var a;(a=e.get(t))==null||a.forEach(o=>o(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){var a;(a=e.get(t))==null||a.delete(n)}}}const GM=B.createContext(null),YM=B.createContext(null),WM=()=>{var e;return((e=B.useContext(GM))==null?void 0:e.id)||null},XM=()=>B.useContext(YM);function KM(e){const{open:t=!1,onOpenChange:n,elements:a}=e,o=UM(),i=B.useRef({}),[l]=B.useState(()=>VM()),u=WM()!=null,[d,f]=B.useState(a.reference),m=X4((b,x,S)=>{i.current.openEvent=b?x:void 0,l.emit("openchange",{open:b,event:x,reason:S,nested:u}),n?.(b,x,S)}),g=B.useMemo(()=>({setPositionReference:f}),[]),y=B.useMemo(()=>({reference:d||a.reference||null,floating:a.floating||null,domReference:a.reference}),[d,a.reference,a.floating]);return B.useMemo(()=>({dataRef:i,open:t,onOpenChange:m,elements:y,events:l,floatingId:o,refs:g}),[t,m,y,l,o,g])}function QM(e){e===void 0&&(e={});const{nodeId:t}=e,n=KM({...e,elements:{reference:null,floating:null,...e.elements}}),a=e.rootContext||n,o=a.elements,[i,l]=B.useState(null),[u,d]=B.useState(null),m=o?.domReference||i,g=B.useRef(null),y=XM();a0(()=>{m&&(g.current=m)},[m]);const b=OM({...e,elements:{...o,...u&&{reference:u}}}),x=B.useCallback(A=>{const R=ar(A)?{getBoundingClientRect:()=>A.getBoundingClientRect(),getClientRects:()=>A.getClientRects(),contextElement:A}:A;d(R),b.refs.setReference(R)},[b.refs]),S=B.useCallback(A=>{(ar(A)||A===null)&&(g.current=A,l(A)),(ar(b.refs.reference.current)||b.refs.reference.current===null||A!==null&&!ar(A))&&b.refs.setReference(A)},[b.refs]),w=B.useMemo(()=>({...b.refs,setReference:S,setPositionReference:x,domReference:g}),[b.refs,S,x]),N=B.useMemo(()=>({...b.elements,domReference:m}),[b.elements,m]),T=B.useMemo(()=>({...b,...a,refs:w,elements:N,nodeId:t}),[b,w,N,t,a]);return a0(()=>{a.dataRef.current.floatingContext=T;const A=y?.nodesRef.current.find(R=>R.id===t);A&&(A.context=T)}),B.useMemo(()=>({...b,context:T,refs:w,elements:N}),[b,w,N,T])}const[ZM,aa]=Zu("ScrollArea.Root component was not found in tree");function kl(e,t){const n=di(t);Ju(()=>{let a=0;if(e){const o=new ResizeObserver(()=>{cancelAnimationFrame(a),a=window.requestAnimationFrame(n)});return o.observe(e),()=>{window.cancelAnimationFrame(a),o.unobserve(e)}}},[e,n])}const JM=B.forwardRef((e,t)=>{const{style:n,...a}=e,o=aa(),[i,l]=B.useState(0),[u,d]=B.useState(0),f=!!(i&&u);return kl(o.scrollbarX,()=>{const m=o.scrollbarX?.offsetHeight||0;o.onCornerHeightChange(m),d(m)}),kl(o.scrollbarY,()=>{const m=o.scrollbarY?.offsetWidth||0;o.onCornerWidthChange(m),l(m)}),f?p.jsx("div",{...a,ref:t,style:{...n,width:i,height:u}}):null}),eP=B.forwardRef((e,t)=>{const n=aa(),a=!!(n.scrollbarX&&n.scrollbarY);return n.type!=="scroll"&&a?p.jsx(JM,{...e,ref:t}):null}),tP={scrollHideDelay:1e3,type:"hover"},TT=B.forwardRef((e,t)=>{const{type:n,scrollHideDelay:a,scrollbars:o,getStyles:i,...l}=at("ScrollAreaRoot",tP,e),[u,d]=B.useState(null),[f,m]=B.useState(null),[g,y]=B.useState(null),[b,x]=B.useState(null),[S,w]=B.useState(null),[N,T]=B.useState(0),[A,R]=B.useState(0),[E,$]=B.useState(!1),[_,k]=B.useState(!1),q=js(t,z=>d(z));return p.jsx(ZM,{value:{type:n,scrollHideDelay:a,scrollArea:u,viewport:f,onViewportChange:m,content:g,onContentChange:y,scrollbarX:b,onScrollbarXChange:x,scrollbarXEnabled:E,onScrollbarXEnabledChange:$,scrollbarY:S,onScrollbarYChange:w,scrollbarYEnabled:_,onScrollbarYEnabledChange:k,onCornerWidthChange:T,onCornerHeightChange:R,getStyles:i},children:p.jsx(Bt,{...l,ref:q,__vars:{"--sa-corner-width":o!=="xy"?"0px":`${N}px`,"--sa-corner-height":o!=="xy"?"0px":`${A}px`}})})});TT.displayName="@mantine/core/ScrollAreaRoot";function _T(e,t){const n=e/t;return Number.isNaN(n)?0:n}function ih(e){const t=_T(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=(e.scrollbar.size-n)*t;return Math.max(a,18)}function AT(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const a=(t[1]-t[0])/(e[1]-e[0]);return t[0]+a*(n-e[0])}}function nP(e,[t,n]){return Math.min(n,Math.max(t,e))}function gw(e,t,n="ltr"){const a=ih(t),o=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,i=t.scrollbar.size-o,l=t.content-t.viewport,u=i-a,d=n==="ltr"?[0,l]:[l*-1,0],f=nP(e,d);return AT([0,l],[0,u])(f)}function rP(e,t,n,a="ltr"){const o=ih(n),i=o/2,l=t||i,u=o-l,d=n.scrollbar.paddingStart+l,f=n.scrollbar.size-n.scrollbar.paddingEnd-u,m=n.content-n.viewport,g=a==="ltr"?[0,m]:[m*-1,0];return AT([d,f],g)(e)}function DT(e,t){return e>0&&e<t}function Ep(e){return e?parseInt(e,10):0}function yi(e,t,{checkForDefaultPrevented:n=!0}={}){return a=>{e?.(a),(n===!1||!a.defaultPrevented)&&t?.(a)}}const[aP,jT]=Zu("ScrollAreaScrollbar was not found in tree"),RT=B.forwardRef((e,t)=>{const{sizes:n,hasThumb:a,onThumbChange:o,onThumbPointerUp:i,onThumbPointerDown:l,onThumbPositionChange:u,onDragScroll:d,onWheelScroll:f,onResize:m,...g}=e,y=aa(),[b,x]=B.useState(null),S=js(t,k=>x(k)),w=B.useRef(null),N=B.useRef(""),{viewport:T}=y,A=n.content-n.viewport,R=di(f),E=di(u),$=eh(m,10),_=k=>{if(w.current){const q=k.clientX-w.current.left,z=k.clientY-w.current.top;d({x:q,y:z})}};return B.useEffect(()=>{const k=q=>{const z=q.target;b?.contains(z)&&R(q,A)};return document.addEventListener("wheel",k,{passive:!1}),()=>document.removeEventListener("wheel",k,{passive:!1})},[T,b,A,R]),B.useEffect(E,[n,E]),kl(b,$),kl(y.content,$),p.jsx(aP,{value:{scrollbar:b,hasThumb:a,onThumbChange:di(o),onThumbPointerUp:di(i),onThumbPositionChange:E,onThumbPointerDown:di(l)},children:p.jsx("div",{...g,ref:S,"data-mantine-scrollbar":!0,style:{position:"absolute",...g.style},onPointerDown:yi(e.onPointerDown,k=>{k.preventDefault(),k.button===0&&(k.target.setPointerCapture(k.pointerId),w.current=b.getBoundingClientRect(),N.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",_(k))}),onPointerMove:yi(e.onPointerMove,_),onPointerUp:yi(e.onPointerUp,k=>{const q=k.target;q.hasPointerCapture(k.pointerId)&&(k.preventDefault(),q.releasePointerCapture(k.pointerId))}),onLostPointerCapture:()=>{document.body.style.webkitUserSelect=N.current,w.current=null}})})}),OT=B.forwardRef((e,t)=>{const{sizes:n,onSizesChange:a,style:o,...i}=e,l=aa(),[u,d]=B.useState(),f=B.useRef(null),m=js(t,f,l.onScrollbarXChange);return B.useEffect(()=>{f.current&&d(getComputedStyle(f.current))},[f]),p.jsx(RT,{"data-orientation":"horizontal",...i,ref:m,sizes:n,style:{...o,"--sa-thumb-width":`${ih(n)}px`},onThumbPointerDown:g=>e.onThumbPointerDown(g.x),onDragScroll:g=>e.onDragScroll(g.x),onWheelScroll:(g,y)=>{if(l.viewport){const b=l.viewport.scrollLeft+g.deltaX;e.onWheelScroll(b),DT(b,y)&&g.preventDefault()}},onResize:()=>{f.current&&l.viewport&&u&&a({content:l.viewport.scrollWidth,viewport:l.viewport.offsetWidth,scrollbar:{size:f.current.clientWidth,paddingStart:Ep(u.paddingLeft),paddingEnd:Ep(u.paddingRight)}})}})});OT.displayName="@mantine/core/ScrollAreaScrollbarX";const IT=B.forwardRef((e,t)=>{const{sizes:n,onSizesChange:a,style:o,...i}=e,l=aa(),[u,d]=B.useState(),f=B.useRef(null),m=js(t,f,l.onScrollbarYChange);return B.useEffect(()=>{f.current&&d(window.getComputedStyle(f.current))},[]),p.jsx(RT,{...i,"data-orientation":"vertical",ref:m,sizes:n,style:{"--sa-thumb-height":`${ih(n)}px`,...o},onThumbPointerDown:g=>e.onThumbPointerDown(g.y),onDragScroll:g=>e.onDragScroll(g.y),onWheelScroll:(g,y)=>{if(l.viewport){const b=l.viewport.scrollTop+g.deltaY;e.onWheelScroll(b),DT(b,y)&&g.preventDefault()}},onResize:()=>{f.current&&l.viewport&&u&&a({content:l.viewport.scrollHeight,viewport:l.viewport.offsetHeight,scrollbar:{size:f.current.clientHeight,paddingStart:Ep(u.paddingTop),paddingEnd:Ep(u.paddingBottom)}})}})});IT.displayName="@mantine/core/ScrollAreaScrollbarY";const lh=B.forwardRef((e,t)=>{const{orientation:n="vertical",...a}=e,{dir:o}=uv(),i=aa(),l=B.useRef(null),u=B.useRef(0),[d,f]=B.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),m=_T(d.viewport,d.content),g={...a,sizes:d,onSizesChange:f,hasThumb:m>0&&m<1,onThumbChange:b=>{l.current=b},onThumbPointerUp:()=>{u.current=0},onThumbPointerDown:b=>{u.current=b}},y=(b,x)=>rP(b,u.current,d,x);return n==="horizontal"?p.jsx(OT,{...g,ref:t,onThumbPositionChange:()=>{if(i.viewport&&l.current){const b=i.viewport.scrollLeft,x=gw(b,d,o);l.current.style.transform=`translate3d(${x}px, 0, 0)`}},onWheelScroll:b=>{i.viewport&&(i.viewport.scrollLeft=b)},onDragScroll:b=>{i.viewport&&(i.viewport.scrollLeft=y(b,o))}}):n==="vertical"?p.jsx(IT,{...g,ref:t,onThumbPositionChange:()=>{if(i.viewport&&l.current){const b=i.viewport.scrollTop,x=gw(b,d);d.scrollbar.size===0?l.current.style.setProperty("--thumb-opacity","0"):l.current.style.setProperty("--thumb-opacity","1"),l.current.style.transform=`translate3d(0, ${x}px, 0)`}},onWheelScroll:b=>{i.viewport&&(i.viewport.scrollTop=b)},onDragScroll:b=>{i.viewport&&(i.viewport.scrollTop=y(b))}}):null});lh.displayName="@mantine/core/ScrollAreaScrollbarVisible";const bv=B.forwardRef((e,t)=>{const n=aa(),{forceMount:a,...o}=e,[i,l]=B.useState(!1),u=e.orientation==="horizontal",d=eh(()=>{if(n.viewport){const f=n.viewport.offsetWidth<n.viewport.scrollWidth,m=n.viewport.offsetHeight<n.viewport.scrollHeight;l(u?f:m)}},10);return kl(n.viewport,d),kl(n.content,d),a||i?p.jsx(lh,{"data-state":i?"visible":"hidden",...o,ref:t}):null});bv.displayName="@mantine/core/ScrollAreaScrollbarAuto";const kT=B.forwardRef((e,t)=>{const{forceMount:n,...a}=e,o=aa(),[i,l]=B.useState(!1);return B.useEffect(()=>{const{scrollArea:u}=o;let d=0;if(u){const f=()=>{window.clearTimeout(d),l(!0)},m=()=>{d=window.setTimeout(()=>l(!1),o.scrollHideDelay)};return u.addEventListener("pointerenter",f),u.addEventListener("pointerleave",m),()=>{window.clearTimeout(d),u.removeEventListener("pointerenter",f),u.removeEventListener("pointerleave",m)}}},[o.scrollArea,o.scrollHideDelay]),n||i?p.jsx(bv,{"data-state":i?"visible":"hidden",...a,ref:t}):null});kT.displayName="@mantine/core/ScrollAreaScrollbarHover";const sP=B.forwardRef((e,t)=>{const{forceMount:n,...a}=e,o=aa(),i=e.orientation==="horizontal",[l,u]=B.useState("hidden"),d=eh(()=>u("idle"),100);return B.useEffect(()=>{if(l==="idle"){const f=window.setTimeout(()=>u("hidden"),o.scrollHideDelay);return()=>window.clearTimeout(f)}},[l,o.scrollHideDelay]),B.useEffect(()=>{const{viewport:f}=o,m=i?"scrollLeft":"scrollTop";if(f){let g=f[m];const y=()=>{const b=f[m];g!==b&&(u("scrolling"),d()),g=b};return f.addEventListener("scroll",y),()=>f.removeEventListener("scroll",y)}},[o.viewport,i,d]),n||l!=="hidden"?p.jsx(lh,{"data-state":l==="hidden"?"hidden":"visible",...a,ref:t,onPointerEnter:yi(e.onPointerEnter,()=>u("interacting")),onPointerLeave:yi(e.onPointerLeave,()=>u("idle"))}):null}),s0=B.forwardRef((e,t)=>{const{forceMount:n,...a}=e,o=aa(),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:l}=o,u=e.orientation==="horizontal";return B.useEffect(()=>(u?i(!0):l(!0),()=>{u?i(!1):l(!1)}),[u,i,l]),o.type==="hover"?p.jsx(kT,{...a,ref:t,forceMount:n}):o.type==="scroll"?p.jsx(sP,{...a,ref:t,forceMount:n}):o.type==="auto"?p.jsx(bv,{...a,ref:t,forceMount:n}):o.type==="always"?p.jsx(lh,{...a,ref:t}):null});s0.displayName="@mantine/core/ScrollAreaScrollbar";function oP(e,t=()=>{}){let n={left:e.scrollLeft,top:e.scrollTop},a=0;return(function o(){const i={left:e.scrollLeft,top:e.scrollTop},l=n.left!==i.left,u=n.top!==i.top;(l||u)&&t(),n=i,a=window.requestAnimationFrame(o)})(),()=>window.cancelAnimationFrame(a)}const MT=B.forwardRef((e,t)=>{const{style:n,...a}=e,o=aa(),i=jT(),{onThumbPositionChange:l}=i,u=js(t,m=>i.onThumbChange(m)),d=B.useRef(void 0),f=eh(()=>{d.current&&(d.current(),d.current=void 0)},100);return B.useEffect(()=>{const{viewport:m}=o;if(m){const g=()=>{if(f(),!d.current){const y=oP(m,l);d.current=y,l()}};return l(),m.addEventListener("scroll",g),()=>m.removeEventListener("scroll",g)}},[o.viewport,f,l]),p.jsx("div",{"data-state":i.hasThumb?"visible":"hidden",...a,ref:u,style:{width:"var(--sa-thumb-width)",height:"var(--sa-thumb-height)",...n},onPointerDownCapture:yi(e.onPointerDownCapture,m=>{const y=m.target.getBoundingClientRect(),b=m.clientX-y.left,x=m.clientY-y.top;i.onThumbPointerDown({x:b,y:x})}),onPointerUp:yi(e.onPointerUp,i.onThumbPointerUp)})});MT.displayName="@mantine/core/ScrollAreaThumb";const o0=B.forwardRef((e,t)=>{const{forceMount:n,...a}=e,o=jT();return n||o.hasThumb?p.jsx(MT,{ref:t,...a}):null});o0.displayName="@mantine/core/ScrollAreaThumb";const PT=B.forwardRef(({children:e,style:t,...n},a)=>{const o=aa(),i=js(a,o.onViewportChange);return p.jsx(Bt,{...n,ref:i,style:{overflowX:o.scrollbarXEnabled?"scroll":"hidden",overflowY:o.scrollbarYEnabled?"scroll":"hidden",...t},children:p.jsx("div",{...o.getStyles("content"),ref:o.onContentChange,children:e})})});PT.displayName="@mantine/core/ScrollAreaViewport";var vv={root:"m_d57069b5",content:"m_b1336c6",viewport:"m_c0783ff9",viewportInner:"m_f8f631dd",scrollbar:"m_c44ba933",thumb:"m_d8b5e363",corner:"m_21657268"};const LT={scrollHideDelay:1e3,type:"hover",scrollbars:"xy"},iP=(e,{scrollbarSize:t,overscrollBehavior:n})=>({root:{"--scrollarea-scrollbar-size":De(t),"--scrollarea-over-scroll-behavior":n}}),ad=xt((e,t)=>{const n=at("ScrollArea",LT,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,scrollbarSize:d,vars:f,type:m,scrollHideDelay:g,viewportProps:y,viewportRef:b,onScrollPositionChange:x,children:S,offsetScrollbars:w,scrollbars:N,onBottomReached:T,onTopReached:A,overscrollBehavior:R,attributes:E,...$}=n,[_,k]=B.useState(!1),[q,z]=B.useState(!1),[D,H]=B.useState(!1),O=sn({name:"ScrollArea",props:n,classes:vv,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:E,vars:f,varsResolver:iP}),j=B.useRef(null),M=$T([b,j]);return B.useEffect(()=>{if(!j.current||w!=="present")return;const I=j.current,F=new ResizeObserver(()=>{const{scrollHeight:V,clientHeight:W,scrollWidth:U,clientWidth:P}=I;z(V>W),H(U>P)});return F.observe(I),()=>F.disconnect()},[j,w]),p.jsxs(TT,{getStyles:O,type:m==="never"?"always":m,scrollHideDelay:g,ref:t,scrollbars:N,...O("root"),...$,children:[p.jsx(PT,{...y,...O("viewport",{style:y?.style}),ref:M,"data-offset-scrollbars":w===!0?"xy":w||void 0,"data-scrollbars":N||void 0,"data-horizontal-hidden":w==="present"&&!D?"true":void 0,"data-vertical-hidden":w==="present"&&!q?"true":void 0,onScroll:I=>{y?.onScroll?.(I),x?.({x:I.currentTarget.scrollLeft,y:I.currentTarget.scrollTop});const{scrollTop:F,scrollHeight:V,clientHeight:W}=I.currentTarget;F-(V-W)>=-.6&&T?.(),F===0&&A?.()},children:S}),(N==="xy"||N==="x")&&p.jsx(s0,{...O("scrollbar"),orientation:"horizontal","data-hidden":m==="never"||w==="present"&&!D?!0:void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:p.jsx(o0,{...O("thumb")})}),(N==="xy"||N==="y")&&p.jsx(s0,{...O("scrollbar"),orientation:"vertical","data-hidden":m==="never"||w==="present"&&!q?!0:void 0,forceMount:!0,onMouseEnter:()=>k(!0),onMouseLeave:()=>k(!1),children:p.jsx(o0,{...O("thumb")})}),p.jsx(eP,{...O("corner"),"data-hovered":_||void 0,"data-hidden":m==="never"||void 0})]})});ad.displayName="@mantine/core/ScrollArea";const xv=xt((e,t)=>{const{children:n,classNames:a,styles:o,scrollbarSize:i,scrollHideDelay:l,type:u,dir:d,offsetScrollbars:f,viewportRef:m,onScrollPositionChange:g,unstyled:y,variant:b,viewportProps:x,scrollbars:S,style:w,vars:N,onBottomReached:T,onTopReached:A,onOverflowChange:R,...E}=at("ScrollAreaAutosize",LT,e),$=B.useRef(null),_=$T([m,$]),[k,q]=B.useState(!1),z=B.useRef(!1);return B.useEffect(()=>{if(!R)return;const D=$.current;if(!D)return;const H=()=>{const j=D.scrollHeight>D.clientHeight;j!==k&&(z.current?R?.(j):(z.current=!0,j&&R?.(!0)),q(j))};H();const O=new ResizeObserver(H);return O.observe(D),()=>O.disconnect()},[R,k]),p.jsx(Bt,{...E,ref:t,style:[{display:"flex",overflow:"hidden"},w],children:p.jsx(Bt,{style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden",...S==="y"&&{minWidth:0},...S==="x"&&{minHeight:0},...S==="xy"&&{minWidth:0,minHeight:0},...S===!1&&{minWidth:0,minHeight:0}},children:p.jsx(ad,{classNames:a,styles:o,scrollHideDelay:l,scrollbarSize:i,type:u,dir:d,offsetScrollbars:f,viewportRef:_,onScrollPositionChange:g,unstyled:y,variant:b,viewportProps:x,vars:N,scrollbars:S,onBottomReached:T,onTopReached:A,"data-autosize":"true",children:n})})})});ad.classes=vv;xv.displayName="@mantine/core/ScrollAreaAutosize";xv.classes=vv;ad.Autosize=xv;var BT={root:"m_87cf2631"};const lP={__staticSelector:"UnstyledButton"},xs=td((e,t)=>{const n=at("UnstyledButton",lP,e),{className:a,component:o="button",__staticSelector:i,unstyled:l,classNames:u,styles:d,style:f,attributes:m,...g}=n,y=sn({name:i,props:n,classes:BT,className:a,style:f,classNames:u,styles:d,unstyled:l,attributes:m});return p.jsx(Bt,{...y("root",{focusable:!0}),component:o,ref:t,type:o==="button"?"button":void 0,...g})});xs.classes=BT;xs.displayName="@mantine/core/UnstyledButton";var qT={root:"m_515a97f8"};const Cv=xt((e,t)=>{const n=at("VisuallyHidden",null,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,attributes:f,...m}=n,g=sn({name:"VisuallyHidden",classes:qT,props:n,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:f});return p.jsx(Bt,{component:"span",ref:t,...g("root"),...m})});Cv.classes=qT;Cv.displayName="@mantine/core/VisuallyHidden";var FT={root:"m_1b7284a3"};const cP=(e,{radius:t,shadow:n})=>({root:{"--paper-radius":t===void 0?void 0:Gl(t),"--paper-shadow":tv(n)}}),Sv=td((e,t)=>{const n=at("Paper",null,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,withBorder:d,vars:f,radius:m,shadow:g,variant:y,mod:b,attributes:x,...S}=n,w=sn({name:"Paper",props:n,classes:FT,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:x,vars:f,varsResolver:cP});return p.jsx(Bt,{ref:t,mod:[{"data-with-border":d},b],...w("root"),variant:y,...S})});Sv.classes=FT;Sv.displayName="@mantine/core/Paper";function yw(e,t,n,a){return e==="center"||a==="center"?{top:t}:e==="end"?{bottom:n}:e==="start"?{top:n}:{}}function bw(e,t,n,a,o){return e==="center"||a==="center"?{left:t}:e==="end"?{[o==="ltr"?"right":"left"]:n}:e==="start"?{[o==="ltr"?"left":"right"]:n}:{}}const uP={bottom:"borderTopLeftRadius",left:"borderTopRightRadius",right:"borderBottomLeftRadius",top:"borderBottomRightRadius"};function dP({position:e,arrowSize:t,arrowOffset:n,arrowRadius:a,arrowPosition:o,arrowX:i,arrowY:l,dir:u}){const[d,f="center"]=e.split("-"),m={width:t,height:t,transform:"rotate(45deg)",position:"absolute",[uP[d]]:a},g=-t/2;return d==="left"?{...m,...yw(f,l,n,o),right:g,borderLeftColor:"transparent",borderBottomColor:"transparent",clipPath:"polygon(100% 0, 0 0, 100% 100%)"}:d==="right"?{...m,...yw(f,l,n,o),left:g,borderRightColor:"transparent",borderTopColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 100%)"}:d==="top"?{...m,...bw(f,i,n,o,u),bottom:g,borderTopColor:"transparent",borderLeftColor:"transparent",clipPath:"polygon(0 100%, 100% 100%, 100% 0)"}:d==="bottom"?{...m,...bw(f,i,n,o,u),top:g,borderBottomColor:"transparent",borderRightColor:"transparent",clipPath:"polygon(0 100%, 0 0, 100% 0)"}:{}}const zT=B.forwardRef(({position:e,arrowSize:t,arrowOffset:n,arrowRadius:a,arrowPosition:o,visible:i,arrowX:l,arrowY:u,style:d,...f},m)=>{const{dir:g}=uv();return i?p.jsx("div",{...f,ref:m,style:{...d,...dP({position:e,arrowSize:t,arrowOffset:n,arrowRadius:a,arrowPosition:o,dir:g,arrowX:l,arrowY:u})}}):null});zT.displayName="@mantine/core/FloatingArrow";function fP(e,t){if(e==="rtl"&&(t.includes("right")||t.includes("left"))){const[n,a]=t.split("-"),o=n==="right"?"left":"right";return a===void 0?o:`${o}-${a}`}return t}var HT={root:"m_9814e45f"};const pP={zIndex:Ri("modal")},hP=(e,{gradient:t,color:n,backgroundOpacity:a,blur:o,radius:i,zIndex:l})=>({root:{"--overlay-bg":t||(n!==void 0||a!==void 0)&&Ma(n||"#000",a??.6)||void 0,"--overlay-filter":o?`blur(${De(o)})`:void 0,"--overlay-radius":i===void 0?void 0:Gl(i),"--overlay-z-index":l?.toString()}}),ch=td((e,t)=>{const n=at("Overlay",pP,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,fixed:f,center:m,children:g,radius:y,zIndex:b,gradient:x,blur:S,color:w,backgroundOpacity:N,mod:T,attributes:A,...R}=n,E=sn({name:"Overlay",props:n,classes:HT,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:A,vars:d,varsResolver:hP});return p.jsx(Bt,{ref:t,...E("root"),mod:[{center:m,fixed:f},T],...R,children:g})});ch.classes=HT;ch.displayName="@mantine/core/Overlay";function qy(e){const t=document.createElement("div");return t.setAttribute("data-portal","true"),typeof e.className=="string"&&t.classList.add(...e.className.split(" ").filter(Boolean)),typeof e.style=="object"&&Object.assign(t.style,e.style),typeof e.id=="string"&&t.setAttribute("id",e.id),t}function mP({target:e,reuseTargetNode:t,...n}){if(e)return typeof e=="string"?document.querySelector(e)||qy(n):e;if(t){const a=document.querySelector("[data-mantine-shared-portal-node]");if(a)return a;const o=qy(n);return o.setAttribute("data-mantine-shared-portal-node","true"),document.body.appendChild(o),o}return qy(n)}const gP={reuseTargetNode:!0},UT=xt((e,t)=>{const{children:n,target:a,reuseTargetNode:o,...i}=at("Portal",gP,e),[l,u]=B.useState(!1),d=B.useRef(null);return Ju(()=>(u(!0),d.current=mP({target:a,reuseTargetNode:o,...i}),Zb(t,d.current),!a&&!o&&d.current&&document.body.appendChild(d.current),()=>{!a&&!o&&d.current&&document.body.removeChild(d.current)}),[a]),!l||!d.current?null:nd.createPortal(p.jsx(p.Fragment,{children:n}),d.current)});UT.displayName="@mantine/core/Portal";const uh=xt(({withinPortal:e=!0,children:t,...n},a)=>nh()==="test"||!e?p.jsx(p.Fragment,{children:t}):p.jsx(UT,{ref:a,...n,children:t}));uh.displayName="@mantine/core/OptionalPortal";const au=e=>({in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:`scale(.9) translateY(${e==="bottom"?10:-10}px)`},transitionProperty:"transform, opacity"}),zf={fade:{in:{opacity:1},out:{opacity:0},transitionProperty:"opacity"},"fade-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(30px)"},transitionProperty:"opacity, transform"},"fade-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-30px)"},transitionProperty:"opacity, transform"},"fade-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(30px)"},transitionProperty:"opacity, transform"},"fade-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-30px)"},transitionProperty:"opacity, transform"},scale:{in:{opacity:1,transform:"scale(1)"},out:{opacity:0,transform:"scale(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-y":{in:{opacity:1,transform:"scaleY(1)"},out:{opacity:0,transform:"scaleY(0)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"scale-x":{in:{opacity:1,transform:"scaleX(1)"},out:{opacity:0,transform:"scaleX(0)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"skew-up":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(-20px) skew(-10deg, -5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"skew-down":{in:{opacity:1,transform:"translateY(0) skew(0deg, 0deg)"},out:{opacity:0,transform:"translateY(20px) skew(-10deg, -5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-left":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(-5deg)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"rotate-right":{in:{opacity:1,transform:"translateY(0) rotate(0deg)"},out:{opacity:0,transform:"translateY(20px) rotate(5deg)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-down":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(-100%)"},common:{transformOrigin:"top"},transitionProperty:"transform, opacity"},"slide-up":{in:{opacity:1,transform:"translateY(0)"},out:{opacity:0,transform:"translateY(100%)"},common:{transformOrigin:"bottom"},transitionProperty:"transform, opacity"},"slide-left":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(100%)"},common:{transformOrigin:"left"},transitionProperty:"transform, opacity"},"slide-right":{in:{opacity:1,transform:"translateX(0)"},out:{opacity:0,transform:"translateX(-100%)"},common:{transformOrigin:"right"},transitionProperty:"transform, opacity"},pop:{...au("bottom"),common:{transformOrigin:"center center"}},"pop-bottom-left":{...au("bottom"),common:{transformOrigin:"bottom left"}},"pop-bottom-right":{...au("bottom"),common:{transformOrigin:"bottom right"}},"pop-top-left":{...au("top"),common:{transformOrigin:"top left"}},"pop-top-right":{...au("top"),common:{transformOrigin:"top right"}}},vw={entering:"in",entered:"in",exiting:"out",exited:"out","pre-exiting":"out","pre-entering":"out"};function yP({transition:e,state:t,duration:n,timingFunction:a}){const o={WebkitBackfaceVisibility:"hidden",transitionDuration:`${n}ms`,transitionTimingFunction:a};return typeof e=="string"?e in zf?{transitionProperty:zf[e].transitionProperty,...o,...zf[e].common,...zf[e][vw[t]]}:{}:{transitionProperty:e.transitionProperty,...o,...e.common,...e[vw[t]]}}function bP({duration:e,exitDuration:t,timingFunction:n,mounted:a,onEnter:o,onExit:i,onEntered:l,onExited:u,enterDelay:d,exitDelay:f}){const m=Do(),g=rT(),y=m.respectReducedMotion?g:!1,[b,x]=B.useState(y?0:e),[S,w]=B.useState(a?"entered":"exited"),N=B.useRef(-1),T=B.useRef(-1),A=B.useRef(-1);function R(){window.clearTimeout(N.current),window.clearTimeout(T.current),cancelAnimationFrame(A.current)}const E=_=>{R();const k=_?o:i,q=_?l:u,z=y?0:_?e:t;x(z),z===0?(typeof k=="function"&&k(),typeof q=="function"&&q(),w(_?"entered":"exited")):A.current=requestAnimationFrame(()=>{hT.flushSync(()=>{w(_?"pre-entering":"pre-exiting")}),A.current=requestAnimationFrame(()=>{typeof k=="function"&&k(),w(_?"entering":"exiting"),N.current=window.setTimeout(()=>{typeof q=="function"&&q(),w(_?"entered":"exited")},z)})})},$=_=>{if(R(),typeof(_?d:f)!="number"){E(_);return}T.current=window.setTimeout(()=>{E(_)},_?d:f)};return xu(()=>{$(a)},[a]),B.useEffect(()=>()=>{R()},[]),{transitionDuration:b,transitionStatus:S,transitionTimingFunction:n||"ease"}}function sd({keepMounted:e,transition:t="fade",duration:n=250,exitDuration:a=n,mounted:o,children:i,timingFunction:l="ease",onExit:u,onEntered:d,onEnter:f,onExited:m,enterDelay:g,exitDelay:y}){const b=nh(),{transitionDuration:x,transitionStatus:S,transitionTimingFunction:w}=bP({mounted:o,exitDuration:a,duration:n,timingFunction:l,onExit:u,onEntered:d,onEnter:f,onExited:m,enterDelay:g,exitDelay:y});return x===0||b==="test"?o?p.jsx(p.Fragment,{children:i({})}):e?i({display:"none"}):null:S==="exited"?e?i({display:"none"}):null:p.jsx(p.Fragment,{children:i(yP({transition:t,duration:x,state:S,timingFunction:w}))})}sd.displayName="@mantine/core/Transition";const[vP,VT]=Zu("Popover component was not found in the tree");function dh({children:e,active:t=!0,refProp:n="ref",innerRef:a}){const o=ak(t),i=js(o,a);return Q$(e)?B.cloneElement(e,{[n]:i}):e}function GT(e){return p.jsx(Cv,{tabIndex:-1,"data-autofocus":!0,...e})}dh.displayName="@mantine/core/FocusTrap";GT.displayName="@mantine/core/FocusTrapInitialFocus";dh.InitialFocus=GT;var YT={dropdown:"m_38a85659",arrow:"m_a31dc6c1",overlay:"m_3d7bc908"};const Nv=xt((e,t)=>{const n=at("PopoverDropdown",null,e),{className:a,style:o,vars:i,children:l,onKeyDownCapture:u,variant:d,classNames:f,styles:m,...g}=n,y=VT(),b=J$({opened:y.opened,shouldReturnFocus:y.returnFocus}),x=y.withRoles?{"aria-labelledby":y.getTargetId(),id:y.getDropdownId(),role:"dialog",tabIndex:-1}:{},S=js(t,y.floating);return y.disabled?null:p.jsx(uh,{...y.portalProps,withinPortal:y.withinPortal,children:p.jsx(sd,{mounted:y.opened,...y.transitionProps,transition:y.transitionProps?.transition||"fade",duration:y.transitionProps?.duration??150,keepMounted:y.keepMounted,exitDuration:typeof y.transitionProps?.exitDuration=="number"?y.transitionProps.exitDuration:y.transitionProps?.duration,children:w=>p.jsx(dh,{active:y.trapFocus&&y.opened,innerRef:S,children:p.jsxs(Bt,{...x,...g,variant:d,onKeyDownCapture:VI(()=>{y.onClose?.(),y.onDismiss?.()},{active:y.closeOnEscape,onTrigger:b,onKeyDown:u}),"data-position":y.placement,"data-fixed":y.floatingStrategy==="fixed"||void 0,...y.getStyles("dropdown",{className:a,props:n,classNames:f,styles:m,style:[{...w,zIndex:y.zIndex,top:y.y??0,left:y.x??0,width:y.width==="target"?void 0:De(y.width),...y.referenceHidden?{display:"none"}:null},y.resolvedStyles.dropdown,m?.dropdown,o]}),children:[l,p.jsx(zT,{ref:y.arrowRef,arrowX:y.arrowX,arrowY:y.arrowY,visible:y.withArrow,position:y.placement,arrowSize:y.arrowSize,arrowRadius:y.arrowRadius,arrowOffset:y.arrowOffset,arrowPosition:y.arrowPosition,...y.getStyles("arrow",{props:n,classNames:f,styles:m})})]})})})})});Nv.classes=YT;Nv.displayName="@mantine/core/PopoverDropdown";const xP={refProp:"ref",popupType:"dialog"},WT=xt((e,t)=>{const{children:n,refProp:a,popupType:o,...i}=at("PopoverTarget",xP,e);if(!Q$(n))throw new Error("Popover.Target component children should be an element or a component that accepts ref. Fragments, strings, numbers and other primitive values are not supported");const l=i,u=VT(),d=js(u.reference,uk(n),t),f=u.withRoles?{"aria-haspopup":o,"aria-expanded":u.opened,"aria-controls":u.getDropdownId(),id:u.getTargetId()}:{};return B.cloneElement(n,{...l,...f,...u.targetProps,className:na(u.targetProps.className,l.className,n.props.className),[a]:d,...u.controlled?null:{onClick:()=>{u.onToggle(),n.props.onClick?.()}}})});WT.displayName="@mantine/core/PopoverTarget";function CP(e){if(e===void 0)return{shift:!0,flip:!0};const t={...e};return e.shift===void 0&&(t.shift=!0),e.flip===void 0&&(t.flip=!0),t}function SP(e,t,n){const a=CP(e.middlewares),o=[kM(e.offset),LM()];return e.dropdownVisible&&n!=="test"&&e.preventPositionChangeWhenVisible&&(a.flip=!1),a.shift&&o.push(MM(typeof a.shift=="boolean"?{limiter:dw(),padding:5}:{limiter:dw(),padding:5,...a.shift})),a.flip&&o.push(typeof a.flip=="boolean"?fw():fw(a.flip)),a.inline&&o.push(typeof a.inline=="boolean"?pw():pw(a.inline)),o.push(BM({element:e.arrowRef,padding:e.arrowOffset})),(a.size||e.width==="target")&&o.push(PM({...typeof a.size=="boolean"?{}:a.size,apply({rects:i,availableWidth:l,availableHeight:u,...d}){const m=t().refs.floating.current?.style??{};a.size&&(typeof a.size=="object"&&a.size.apply?a.size.apply({rects:i,availableWidth:l,availableHeight:u,...d}):Object.assign(m,{maxWidth:`${l}px`,maxHeight:`${u}px`})),e.width==="target"&&Object.assign(m,{width:`${i.reference.width}px`})}})),o}function NP(e){const t=nh(),[n,a]=rv({value:e.opened,defaultValue:e.defaultOpened,finalValue:!1,onChange:e.onChange}),o=B.useRef(n),i=()=>{n&&!e.disabled&&a(!1)},l=()=>{e.disabled||a(!n)},u=QM({strategy:e.strategy,placement:e.preventPositionChangeWhenVisible?e.positionRef.current:e.position,middleware:SP(e,()=>u,t),whileElementsMounted:e.keepMounted?void 0:lw});return B.useEffect(()=>{if(!(!u.refs.reference.current||!u.refs.floating.current)&&n)return lw(u.refs.reference.current,u.refs.floating.current,u.update)},[n,u.update]),xu(()=>{e.onPositionChange?.(u.placement),e.positionRef.current=u.placement},[u.placement,e.preventPositionChangeWhenVisible]),xu(()=>{n!==o.current&&(n?e.onOpen?.():e.onClose?.()),o.current=n},[n,e.onClose,e.onOpen]),xu(()=>{let d=-1;return n&&(d=window.setTimeout(()=>e.setDropdownVisible(!0),4)),()=>{window.clearTimeout(d)}},[n,e.position]),{floating:u,controlled:typeof e.opened=="boolean",opened:n,onClose:i,onToggle:l}}const wP={position:"bottom",offset:8,positionDependencies:[],transitionProps:{transition:"fade",duration:150},middlewares:{flip:!0,shift:!0,inline:!1},arrowSize:7,arrowOffset:5,arrowRadius:0,arrowPosition:"side",closeOnClickOutside:!0,withinPortal:!0,closeOnEscape:!0,trapFocus:!1,withRoles:!0,returnFocus:!1,withOverlay:!1,hideDetached:!0,clickOutsideEvents:["mousedown","touchstart"],zIndex:Ri("popover"),__staticSelector:"Popover",width:"max-content"},EP=(e,{radius:t,shadow:n})=>({dropdown:{"--popover-radius":t===void 0?void 0:Gl(t),"--popover-shadow":tv(n)}});function bi(e){const t=at("Popover",wP,e),{children:n,position:a,offset:o,onPositionChange:i,positionDependencies:l,opened:u,transitionProps:d,onExitTransitionEnd:f,onEnterTransitionEnd:m,width:g,middlewares:y,withArrow:b,arrowSize:x,arrowOffset:S,arrowRadius:w,arrowPosition:N,unstyled:T,classNames:A,styles:R,closeOnClickOutside:E,withinPortal:$,portalProps:_,closeOnEscape:k,clickOutsideEvents:q,trapFocus:z,onClose:D,onDismiss:H,onOpen:O,onChange:j,zIndex:M,radius:I,shadow:F,id:V,defaultOpened:W,__staticSelector:U,withRoles:P,disabled:Y,returnFocus:K,variant:Q,keepMounted:ee,vars:G,floatingStrategy:oe,withOverlay:ye,overlayProps:me,hideDetached:Se,attributes:Be,preventPositionChangeWhenVisible:ae,...ge}=t,fe=sn({name:U,props:t,classes:YT,classNames:A,styles:R,unstyled:T,attributes:Be,rootSelector:"dropdown",vars:G,varsResolver:EP}),{resolvedStyles:qe}=Yl({classNames:A,styles:R,props:t}),[re,xe]=B.useState(u??W??!1),Te=B.useRef(a),be=B.useRef(null),[ve,pe]=B.useState(null),[_e,Pe]=B.useState(null),{dir:$e}=uv(),je=nh(),He=nv(V),Ae=NP({middlewares:y,width:g,position:fP($e,a),offset:typeof o=="number"?o+(b?x/2:0):o,arrowRef:be,arrowOffset:S,onPositionChange:i,positionDependencies:l,opened:u,defaultOpened:W,onChange:j,onOpen:O,onClose:D,onDismiss:H,strategy:oe,dropdownVisible:re,setDropdownVisible:xe,positionRef:Te,disabled:Y,preventPositionChangeWhenVisible:ae,keepMounted:ee});XI(()=>{E&&(Ae.onClose(),H?.())},q,[ve,_e]);const Me=B.useCallback(Z=>{pe(Z),Ae.floating.refs.setReference(Z)},[Ae.floating.refs.setReference]),Je=B.useCallback(Z=>{Pe(Z),Ae.floating.refs.setFloating(Z)},[Ae.floating.refs.setFloating]),dt=B.useCallback(()=>{d?.onExited?.(),f?.(),xe(!1),ae||(Te.current=a)},[d?.onExited,f,ae,a]),Re=B.useCallback(()=>{d?.onEntered?.(),m?.()},[d?.onEntered,m]);return p.jsxs(vP,{value:{returnFocus:K,disabled:Y,controlled:Ae.controlled,reference:Me,floating:Je,x:Ae.floating.x,y:Ae.floating.y,arrowX:Ae.floating?.middlewareData?.arrow?.x,arrowY:Ae.floating?.middlewareData?.arrow?.y,opened:Ae.opened,arrowRef:be,transitionProps:{...d,onExited:dt,onEntered:Re},width:g,withArrow:b,arrowSize:x,arrowOffset:S,arrowRadius:w,arrowPosition:N,placement:Ae.floating.placement,trapFocus:z,withinPortal:$,portalProps:_,zIndex:M,radius:I,shadow:F,closeOnEscape:k,onDismiss:H,onClose:Ae.onClose,onToggle:Ae.onToggle,getTargetId:()=>`${He}-target`,getDropdownId:()=>`${He}-dropdown`,withRoles:P,targetProps:ge,__staticSelector:U,classNames:A,styles:R,unstyled:T,variant:Q,keepMounted:ee,getStyles:fe,resolvedStyles:qe,floatingStrategy:oe,referenceHidden:Se&&je!=="test"?Ae.floating.middlewareData.hide?.referenceHidden:!1},children:[n,ye&&p.jsx(sd,{transition:"fade",mounted:Ae.opened,duration:d?.duration||250,exitDuration:d?.exitDuration||250,children:Z=>p.jsx(uh,{withinPortal:$,children:p.jsx(ch,{...me,...fe("overlay",{className:me?.className,style:[Z,me?.style]})})})})]})}bi.Target=WT;bi.Dropdown=Nv;bi.displayName="@mantine/core/Popover";bi.extend=e=>e;const XT=B.forwardRef(({size:e="var(--cb-icon-size, 70%)",style:t,...n},a)=>p.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...t,width:e,height:e},ref:a,...n,children:p.jsx("path",{d:"M11.7816 4.03157C12.0062 3.80702 12.0062 3.44295 11.7816 3.2184C11.5571 2.99385 11.193 2.99385 10.9685 3.2184L7.50005 6.68682L4.03164 3.2184C3.80708 2.99385 3.44301 2.99385 3.21846 3.2184C2.99391 3.44295 2.99391 3.80702 3.21846 4.03157L6.68688 7.49999L3.21846 10.9684C2.99391 11.193 2.99391 11.557 3.21846 11.7816C3.44301 12.0061 3.80708 12.0061 4.03164 11.7816L7.50005 8.31316L10.9685 11.7816C11.193 12.0061 11.5571 12.0061 11.7816 11.7816C12.0062 11.557 12.0062 11.193 11.7816 10.9684L8.31322 7.49999L11.7816 4.03157Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})}));XT.displayName="@mantine/core/CloseIcon";var KT={root:"m_86a44da5","root--subtle":"m_220c80f2"};const $P={variant:"subtle"},TP=(e,{size:t,radius:n,iconSize:a})=>({root:{"--cb-size":ta(t,"cb-size"),"--cb-radius":n===void 0?void 0:Gl(n),"--cb-icon-size":De(a)}}),fh=td((e,t)=>{const n=at("CloseButton",$P,e),{iconSize:a,children:o,vars:i,radius:l,className:u,classNames:d,style:f,styles:m,unstyled:g,"data-disabled":y,disabled:b,variant:x,icon:S,mod:w,attributes:N,__staticSelector:T,...A}=n,R=sn({name:T||"CloseButton",props:n,className:u,style:f,classes:KT,classNames:d,styles:m,unstyled:g,attributes:N,vars:i,varsResolver:TP});return p.jsxs(xs,{ref:t,...A,unstyled:g,variant:x,disabled:b,mod:[{disabled:b||y},w],...R("root",{variant:x,active:!b&&!y}),children:[S||p.jsx(XT,{}),o]})});fh.classes=KT;fh.displayName="@mantine/core/CloseButton";const[_P,Rs]=Zu("ModalBase component was not found in tree");function AP({opened:e,transitionDuration:t}){const[n,a]=B.useState(e),o=B.useRef(-1),l=rT()?0:t;return B.useEffect(()=>(e?(a(!0),window.clearTimeout(o.current)):l===0?a(!1):o.current=window.setTimeout(()=>a(!1),l),()=>window.clearTimeout(o.current)),[e,l]),n}function DP({id:e,transitionProps:t,opened:n,trapFocus:a,closeOnEscape:o,onClose:i,returnFocus:l}){const u=nv(e),[d,f]=B.useState(!1),[m,g]=B.useState(!1),y=typeof t?.duration=="number"?t?.duration:200,b=AP({opened:n,transitionDuration:y});return ik("keydown",x=>{x.key==="Escape"&&o&&!x.isComposing&&n&&x.target?.getAttribute("data-mantine-stop-propagation")!=="true"&&i()},{capture:!0}),J$({opened:n,shouldReturnFocus:a&&l}),{_id:u,titleMounted:d,bodyMounted:m,shouldLockScroll:b,setTitleMounted:f,setBodyMounted:g}}const QT=B.forwardRef(({keepMounted:e,opened:t,onClose:n,id:a,transitionProps:o,onExitTransitionEnd:i,onEnterTransitionEnd:l,trapFocus:u,closeOnEscape:d,returnFocus:f,closeOnClickOutside:m,withinPortal:g,portalProps:y,lockScroll:b,children:x,zIndex:S,shadow:w,padding:N,__vars:T,unstyled:A,removeScrollProps:R,...E},$)=>{const{_id:_,titleMounted:k,bodyMounted:q,shouldLockScroll:z,setTitleMounted:D,setBodyMounted:H}=DP({id:a,transitionProps:o,opened:t,trapFocus:u,closeOnEscape:d,onClose:n,returnFocus:f}),{key:O,...j}=R||{};return p.jsx(uh,{...y,withinPortal:g,children:p.jsx(_P,{value:{opened:t,onClose:n,closeOnClickOutside:m,onExitTransitionEnd:i,onEnterTransitionEnd:l,transitionProps:{...o,keepMounted:e},getTitleId:()=>`${_}-title`,getBodyId:()=>`${_}-body`,titleMounted:k,bodyMounted:q,setTitleMounted:D,setBodyMounted:H,trapFocus:u,closeOnEscape:d,zIndex:S,unstyled:A},children:p.jsx(W$,{enabled:z&&b,...j,children:p.jsx(Bt,{ref:$,...E,__vars:{...T,"--mb-z-index":(S||Ri("modal")).toString(),"--mb-shadow":tv(w),"--mb-padding":Z$(N)},children:x})},O)})})});QT.displayName="@mantine/core/ModalBase";function jP(){const e=Rs();return B.useEffect(()=>(e.setBodyMounted(!0),()=>e.setBodyMounted(!1)),[]),e.getBodyId()}var Ml={title:"m_615af6c9",header:"m_b5489c3c",inner:"m_60c222c7",content:"m_fd1ab0aa",close:"m_606cb269",body:"m_5df29311"};const ZT=B.forwardRef(({className:e,...t},n)=>{const a=jP(),o=Rs();return p.jsx(Bt,{ref:n,...t,id:a,className:na({[Ml.body]:!o.unstyled},e)})});ZT.displayName="@mantine/core/ModalBaseBody";const JT=B.forwardRef(({className:e,onClick:t,...n},a)=>{const o=Rs();return p.jsx(fh,{ref:a,...n,onClick:i=>{o.onClose(),t?.(i)},className:na({[Ml.close]:!o.unstyled},e),unstyled:o.unstyled})});JT.displayName="@mantine/core/ModalBaseCloseButton";const e_=B.forwardRef(({transitionProps:e,className:t,innerProps:n,onKeyDown:a,style:o,...i},l)=>{const u=Rs();return p.jsx(sd,{mounted:u.opened,transition:"pop",...u.transitionProps,onExited:()=>{u.onExitTransitionEnd?.(),u.transitionProps?.onExited?.()},onEntered:()=>{u.onEnterTransitionEnd?.(),u.transitionProps?.onEntered?.()},...e,children:d=>p.jsx("div",{...n,className:na({[Ml.inner]:!u.unstyled},n.className),children:p.jsx(dh,{active:u.opened&&u.trapFocus,innerRef:l,children:p.jsx(Sv,{...i,component:"section",role:"dialog",tabIndex:-1,"aria-modal":!0,"aria-describedby":u.bodyMounted?u.getBodyId():void 0,"aria-labelledby":u.titleMounted?u.getTitleId():void 0,style:[o,d],className:na({[Ml.content]:!u.unstyled},t),unstyled:u.unstyled,children:i.children})})})})});e_.displayName="@mantine/core/ModalBaseContent";const t_=B.forwardRef(({className:e,...t},n)=>{const a=Rs();return p.jsx(Bt,{component:"header",ref:n,className:na({[Ml.header]:!a.unstyled},e),...t})});t_.displayName="@mantine/core/ModalBaseHeader";const RP={duration:200,timingFunction:"ease",transition:"fade"};function OP(e){const t=Rs();return{...RP,...t.transitionProps,...e}}const n_=B.forwardRef(({onClick:e,transitionProps:t,style:n,visible:a,...o},i)=>{const l=Rs(),u=OP(t);return p.jsx(sd,{mounted:a!==void 0?a:l.opened,...u,transition:"fade",children:d=>p.jsx(ch,{ref:i,fixed:!0,style:[n,d],zIndex:l.zIndex,unstyled:l.unstyled,onClick:f=>{e?.(f),l.closeOnClickOutside&&l.onClose()},...o})})});n_.displayName="@mantine/core/ModalBaseOverlay";function IP(){const e=Rs();return B.useEffect(()=>(e.setTitleMounted(!0),()=>e.setTitleMounted(!1)),[]),e.getTitleId()}const r_=B.forwardRef(({className:e,...t},n)=>{const a=IP(),o=Rs();return p.jsx(Bt,{component:"h2",ref:n,className:na({[Ml.title]:!o.unstyled},e),...t,id:a})});r_.displayName="@mantine/core/ModalBaseTitle";function kP({children:e}){return p.jsx(p.Fragment,{children:e})}const[MP,PP]=ev({size:"sm"}),a_=xt((e,t)=>{const n=at("InputClearButton",null,e),{size:a,variant:o,vars:i,classNames:l,styles:u,...d}=n,f=PP(),{resolvedClassNames:m,resolvedStyles:g}=Yl({classNames:l,styles:u,props:n});return p.jsx(fh,{variant:o||"transparent",ref:t,size:a||f?.size||"sm",classNames:m,styles:g,__staticSelector:"InputClearButton",style:{pointerEvents:"all",background:"var(--input-bg)",...d.style},...d})});a_.displayName="@mantine/core/InputClearButton";const LP={xs:7,sm:8,md:10,lg:12,xl:15};function BP({__clearable:e,__clearSection:t,rightSection:n,__defaultRightSection:a,size:o="sm"}){const i=e&&t;return i&&(n||a)?p.jsxs("div",{"data-combined-clear-section":!0,style:{display:"flex",gap:2,alignItems:"center",paddingInlineEnd:LP[o]},children:[i,n||a]}):n===null?null:n||i||a}const[qP,ph]=ev({offsetBottom:!1,offsetTop:!1,describedBy:void 0,getStyles:null,inputId:void 0,labelId:void 0});var sa={wrapper:"m_6c018570",input:"m_8fb7ebe7",section:"m_82577fc2",placeholder:"m_88bacfd0",root:"m_46b77525",label:"m_8fdc1311",required:"m_78a94662",error:"m_8f816625",description:"m_fe47ce59"};const FP=(e,{size:t})=>({description:{"--input-description-size":t===void 0?void 0:`calc(${Jr(t)} - ${De(2)})`}}),hh=xt((e,t)=>{const n=at("InputDescription",null,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,size:f,__staticSelector:m,__inheritStyles:g=!0,attributes:y,variant:b,...x}=at("InputDescription",null,n),S=ph(),w=sn({name:["InputWrapper",m],props:n,classes:sa,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:y,rootSelector:"description",vars:d,varsResolver:FP}),N=g&&S?.getStyles||w;return p.jsx(Bt,{component:"p",ref:t,variant:b,size:f,...N("description",S?.getStyles?{className:o,style:i}:void 0),...x})});hh.classes=sa;hh.displayName="@mantine/core/InputDescription";const zP=(e,{size:t})=>({error:{"--input-error-size":t===void 0?void 0:`calc(${Jr(t)} - ${De(2)})`}}),mh=xt((e,t)=>{const n=at("InputError",null,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,size:f,attributes:m,__staticSelector:g,__inheritStyles:y=!0,variant:b,...x}=n,S=sn({name:["InputWrapper",g],props:n,classes:sa,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:m,rootSelector:"error",vars:d,varsResolver:zP}),w=ph(),N=y&&w?.getStyles||S;return p.jsx(Bt,{component:"p",ref:t,variant:b,size:f,...N("error",w?.getStyles?{className:o,style:i}:void 0),...x})});mh.classes=sa;mh.displayName="@mantine/core/InputError";const xw={labelElement:"label"},HP=(e,{size:t})=>({label:{"--input-label-size":Jr(t),"--input-asterisk-color":void 0}}),gh=xt((e,t)=>{const n=at("InputLabel",xw,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,labelElement:f,size:m,required:g,htmlFor:y,onMouseDown:b,children:x,__staticSelector:S,variant:w,mod:N,attributes:T,...A}=at("InputLabel",xw,n),R=sn({name:["InputWrapper",S],props:n,classes:sa,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:T,rootSelector:"label",vars:d,varsResolver:HP}),E=ph(),$=E?.getStyles||R;return p.jsxs(Bt,{...$("label",E?.getStyles?{className:o,style:i}:void 0),component:f,variant:w,size:m,ref:t,htmlFor:f==="label"?y:void 0,mod:[{required:g},N],onMouseDown:_=>{b?.(_),!_.defaultPrevented&&_.detail>1&&_.preventDefault()},...A,children:[x,g&&p.jsx("span",{...$("required"),"aria-hidden":!0,children:" *"})]})});gh.classes=sa;gh.displayName="@mantine/core/InputLabel";const wv=xt((e,t)=>{const n=at("InputPlaceholder",null,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,__staticSelector:f,variant:m,error:g,mod:y,attributes:b,...x}=n,S=sn({name:["InputPlaceholder",f],props:n,classes:sa,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:b,rootSelector:"placeholder"});return p.jsx(Bt,{...S("placeholder"),mod:[{error:!!g},y],component:"span",variant:m,ref:t,...x})});wv.classes=sa;wv.displayName="@mantine/core/InputPlaceholder";function UP(e,{hasDescription:t,hasError:n}){const a=e.findIndex(d=>d==="input"),o=e.slice(0,a),i=e.slice(a+1),l=t&&o.includes("description")||n&&o.includes("error");return{offsetBottom:t&&i.includes("description")||n&&i.includes("error"),offsetTop:l}}const VP={labelElement:"label",inputContainer:e=>e,inputWrapperOrder:["label","description","input","error"]},GP=(e,{size:t})=>({label:{"--input-label-size":Jr(t),"--input-asterisk-color":void 0},error:{"--input-error-size":t===void 0?void 0:`calc(${Jr(t)} - ${De(2)})`},description:{"--input-description-size":t===void 0?void 0:`calc(${Jr(t)} - ${De(2)})`}}),Ev=xt((e,t)=>{const n=at("InputWrapper",VP,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,size:f,variant:m,__staticSelector:g,inputContainer:y,inputWrapperOrder:b,label:x,error:S,description:w,labelProps:N,descriptionProps:T,errorProps:A,labelElement:R,children:E,withAsterisk:$,id:_,required:k,__stylesApiProps:q,mod:z,attributes:D,...H}=n,O=sn({name:["InputWrapper",g],props:q||n,classes:sa,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:D,vars:d,varsResolver:GP}),j={size:f,variant:m,__staticSelector:g},M=nv(_),I=typeof $=="boolean"?$:k,F=A?.id||`${M}-error`,V=T?.id||`${M}-description`,W=M,U=!!S&&typeof S!="boolean",P=!!w,Y=`${U?F:""} ${P?V:""}`,K=Y.trim().length>0?Y.trim():void 0,Q=N?.id||`${M}-label`,ee=x&&p.jsx(gh,{labelElement:R,id:Q,htmlFor:W,required:I,...j,...N,children:x},"label"),G=P&&p.jsx(hh,{...T,...j,size:T?.size||j.size,id:T?.id||V,children:w},"description"),oe=p.jsx(B.Fragment,{children:y(E)},"input"),ye=U&&B.createElement(mh,{...A,...j,size:A?.size||j.size,key:"error",id:A?.id||F},S),me=b.map(Se=>{switch(Se){case"label":return ee;case"input":return oe;case"description":return G;case"error":return ye;default:return null}});return p.jsx(qP,{value:{getStyles:O,describedBy:K,inputId:W,labelId:Q,...UP(b,{hasDescription:P,hasError:U})},children:p.jsx(Bt,{ref:t,variant:m,size:f,mod:[{error:!!S},z],...O("root"),...H,children:me})})});Ev.classes=sa;Ev.displayName="@mantine/core/InputWrapper";const YP={variant:"default",leftSectionPointerEvents:"none",rightSectionPointerEvents:"none",withAria:!0,withErrorStyles:!0,size:"sm"},WP=(e,t,n)=>({wrapper:{"--input-margin-top":n.offsetTop?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-margin-bottom":n.offsetBottom?"calc(var(--mantine-spacing-xs) / 2)":void 0,"--input-height":ta(t.size,"input-height"),"--input-fz":Jr(t.size),"--input-radius":t.radius===void 0?void 0:Gl(t.radius),"--input-left-section-width":t.leftSectionWidth!==void 0?De(t.leftSectionWidth):void 0,"--input-right-section-width":t.rightSectionWidth!==void 0?De(t.rightSectionWidth):void 0,"--input-padding-y":t.multiline?ta(t.size,"input-padding-y"):void 0,"--input-left-section-pointer-events":t.leftSectionPointerEvents,"--input-right-section-pointer-events":t.rightSectionPointerEvents}}),Wr=td((e,t)=>{const n=at("Input",YP,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,required:d,__staticSelector:f,__stylesApiProps:m,size:g,wrapperProps:y,error:b,disabled:x,leftSection:S,leftSectionProps:w,leftSectionWidth:N,rightSection:T,rightSectionProps:A,rightSectionWidth:R,rightSectionPointerEvents:E,leftSectionPointerEvents:$,variant:_,vars:k,pointer:q,multiline:z,radius:D,id:H,withAria:O,withErrorStyles:j,mod:M,inputSize:I,attributes:F,__clearSection:V,__clearable:W,__defaultRightSection:U,...P}=n,{styleProps:Y,rest:K}=lv(P),Q=ph(),ee={offsetBottom:Q?.offsetBottom,offsetTop:Q?.offsetTop},G=sn({name:["Input",f],props:m||n,classes:sa,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:F,stylesCtx:ee,rootSelector:"wrapper",vars:k,varsResolver:WP}),oe=O?{required:d,disabled:x,"aria-invalid":!!b,"aria-describedby":Q?.describedBy,id:Q?.inputId||H}:{},ye=BP({__clearable:W,__clearSection:V,rightSection:T,__defaultRightSection:U,size:g});return p.jsx(MP,{value:{size:g||"sm"},children:p.jsxs(Bt,{...G("wrapper"),...Y,...y,mod:[{error:!!b&&j,pointer:q,disabled:x,multiline:z,"data-with-right-section":!!ye,"data-with-left-section":!!S},M],variant:_,size:g,children:[S&&p.jsx("div",{...w,"data-position":"left",...G("section",{className:w?.className,style:w?.style}),children:S}),p.jsx(Bt,{component:"input",...K,...oe,ref:t,required:d,mod:{disabled:x,error:!!b&&j},variant:_,__size:I,...G("input")}),ye&&p.jsx("div",{...A,"data-position":"right",...G("section",{className:A?.className,style:A?.style}),children:ye})]})})});Wr.classes=sa;Wr.Wrapper=Ev;Wr.Label=gh;Wr.Error=mh;Wr.Description=hh;Wr.Placeholder=wv;Wr.ClearButton=a_;Wr.displayName="@mantine/core/Input";function XP(e,t,n){const a=at(e,t,n),{label:o,description:i,error:l,required:u,classNames:d,styles:f,className:m,unstyled:g,__staticSelector:y,__stylesApiProps:b,errorProps:x,labelProps:S,descriptionProps:w,wrapperProps:N,id:T,size:A,style:R,inputContainer:E,inputWrapperOrder:$,withAsterisk:_,variant:k,vars:q,mod:z,attributes:D,...H}=a,{styleProps:O,rest:j}=lv(H),M={label:o,description:i,error:l,required:u,classNames:d,className:m,__staticSelector:y,__stylesApiProps:b||a,errorProps:x,labelProps:S,descriptionProps:w,unstyled:g,styles:f,size:A,style:R,inputContainer:E,inputWrapperOrder:$,withAsterisk:_,variant:k,id:T,mod:z,attributes:D,...N};return{...j,classNames:d,styles:f,unstyled:g,wrapperProps:{...M,...O},inputProps:{required:u,classNames:d,styles:f,unstyled:g,size:A,__staticSelector:y,__stylesApiProps:b||a,error:l,variant:k,id:T,attributes:D}}}function i0({style:e,size:t=16,...n}){return p.jsx("svg",{viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{...e,width:De(t),height:De(t),display:"block"},...n,children:p.jsx("path",{d:"M3.13523 6.15803C3.3241 5.95657 3.64052 5.94637 3.84197 6.13523L7.5 9.56464L11.158 6.13523C11.3595 5.94637 11.6759 5.95657 11.8648 6.15803C12.0536 6.35949 12.0434 6.67591 11.842 6.86477L7.84197 10.6148C7.64964 10.7951 7.35036 10.7951 7.15803 10.6148L3.15803 6.86477C2.95657 6.67591 2.94637 6.35949 3.13523 6.15803Z",fill:"currentColor",fillRule:"evenodd",clipRule:"evenodd"})})}i0.displayName="@mantine/core/AccordionChevron";function $p(){return $p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)({}).hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},$p.apply(null,arguments)}const[KP,Kl]=Zu("Modal component was not found in tree");var Os={root:"m_9df02822",content:"m_54c44539",inner:"m_1f958f16",header:"m_d0e2b9cd"};const yh=xt((e,t)=>{const n=at("ModalBody",null,e),{classNames:a,className:o,style:i,styles:l,vars:u,...d}=n,f=Kl();return p.jsx(ZT,{ref:t,...f.getStyles("body",{classNames:a,style:i,styles:l,className:o}),...d})});yh.classes=Os;yh.displayName="@mantine/core/ModalBody";const bh=xt((e,t)=>{const n=at("ModalCloseButton",null,e),{classNames:a,className:o,style:i,styles:l,vars:u,...d}=n,f=Kl();return p.jsx(JT,{ref:t,...f.getStyles("close",{classNames:a,style:i,styles:l,className:o}),...d})});bh.classes=Os;bh.displayName="@mantine/core/ModalCloseButton";const vh=xt((e,t)=>{const n=at("ModalContent",null,e),{classNames:a,className:o,style:i,styles:l,vars:u,children:d,__hidden:f,...m}=n,g=Kl(),y=g.scrollAreaComponent||kP;return p.jsx(e_,{...g.getStyles("content",{className:o,style:i,styles:l,classNames:a}),innerProps:g.getStyles("inner",{className:o,style:i,styles:l,classNames:a}),"data-full-screen":g.fullScreen||void 0,"data-modal-content":!0,"data-hidden":f||void 0,ref:t,...m,children:p.jsx(y,{style:{maxHeight:g.fullScreen?"100dvh":`calc(100dvh - (${De(g.yOffset)} * 2))`},children:d})})});vh.classes=Os;vh.displayName="@mantine/core/ModalContent";const xh=xt((e,t)=>{const n=at("ModalHeader",null,e),{classNames:a,className:o,style:i,styles:l,vars:u,...d}=n,f=Kl();return p.jsx(t_,{ref:t,...f.getStyles("header",{classNames:a,style:i,styles:l,className:o}),...d})});xh.classes=Os;xh.displayName="@mantine/core/ModalHeader";const Ch=xt((e,t)=>{const n=at("ModalOverlay",null,e),{classNames:a,className:o,style:i,styles:l,vars:u,...d}=n,f=Kl();return p.jsx(n_,{ref:t,...f.getStyles("overlay",{classNames:a,style:i,styles:l,className:o}),...d})});Ch.classes=Os;Ch.displayName="@mantine/core/ModalOverlay";const QP={__staticSelector:"Modal",closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Ri("modal"),transitionProps:{duration:200,transition:"fade-down"},yOffset:"5dvh"},ZP=(e,{radius:t,size:n,yOffset:a,xOffset:o})=>({root:{"--modal-radius":t===void 0?void 0:Gl(t),"--modal-size":ta(n,"modal-size"),"--modal-y-offset":De(a),"--modal-x-offset":De(o)}}),Sh=xt((e,t)=>{const n=at("ModalRoot",QP,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,yOffset:f,scrollAreaComponent:m,radius:g,fullScreen:y,centered:b,xOffset:x,__staticSelector:S,attributes:w,...N}=n,T=sn({name:S,classes:Os,props:n,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:w,vars:d,varsResolver:ZP});return p.jsx(KP,{value:{yOffset:f,scrollAreaComponent:m,getStyles:T,fullScreen:y},children:p.jsx(QT,{ref:t,...T("root"),"data-full-screen":y||void 0,"data-centered":b||void 0,"data-offset-scrollbars":m===ad.Autosize||void 0,unstyled:u,...N})})});Sh.classes=Os;Sh.displayName="@mantine/core/ModalRoot";const[JP,eL]=ev();function s_({children:e}){const[t,n]=B.useState([]),[a,o]=B.useState(Ri("modal"));return p.jsx(JP,{value:{stack:t,addModal:(i,l)=>{n(u=>[...new Set([...u,i])]),o(u=>typeof l=="number"&&typeof u=="number"?Math.max(u,l):u)},removeModal:i=>n(l=>l.filter(u=>u!==i)),getZIndex:i=>`calc(${a} + ${t.indexOf(i)} + 1)`,currentId:t[t.length-1],maxZIndex:a},children:e})}s_.displayName="@mantine/core/ModalStack";const Nh=xt((e,t)=>{const n=at("ModalTitle",null,e),{classNames:a,className:o,style:i,styles:l,vars:u,...d}=n,f=Kl();return p.jsx(r_,{ref:t,...f.getStyles("title",{classNames:a,style:i,styles:l,className:o}),...d})});Nh.classes=Os;Nh.displayName="@mantine/core/ModalTitle";const tL={closeOnClickOutside:!0,withinPortal:!0,lockScroll:!0,trapFocus:!0,returnFocus:!0,closeOnEscape:!0,keepMounted:!1,zIndex:Ri("modal"),transitionProps:{duration:200,transition:"fade-down"},withOverlay:!0,withCloseButton:!0},Ta=xt((e,t)=>{const{title:n,withOverlay:a,overlayProps:o,withCloseButton:i,closeButtonProps:l,children:u,radius:d,opened:f,stackId:m,zIndex:g,...y}=at("Modal",tL,e),b=eL(),x=!!n||i,S=b&&m?{closeOnEscape:b.currentId===m,trapFocus:b.currentId===m,zIndex:b.getZIndex(m)}:{},w=a===!1?!1:m&&b?b.currentId===m:f;return B.useEffect(()=>{b&&m&&(f?b.addModal(m,g||Ri("modal")):b.removeModal(m))},[f,m,g]),p.jsxs(Sh,{ref:t,radius:d,opened:f,zIndex:b&&m?b.getZIndex(m):g,...y,...S,children:[a&&p.jsx(Ch,{visible:w,transitionProps:b&&m?{duration:0}:void 0,...o}),p.jsxs(vh,{radius:d,__hidden:b&&m&&f?m!==b.currentId:!1,children:[x&&p.jsxs(xh,{children:[n&&p.jsx(Nh,{children:n}),i&&p.jsx(bh,{...l})]}),p.jsx(yh,{children:u})]})]})});Ta.classes=Os;Ta.displayName="@mantine/core/Modal";Ta.Root=Sh;Ta.Overlay=Ch;Ta.Content=vh;Ta.Body=yh;Ta.Header=xh;Ta.Title=Nh;Ta.CloseButton=bh;Ta.Stack=s_;const Cw=(e,t)=>document.querySelector(`input[name='${e}']`)?.value??t,yl=e=>new Date(e.getFullYear(),e.getMonth(),e.getDate()),nL=e=>e.toLocaleString("en-US"),Et=(e,t=2)=>(parseFloat(e)||0).toLocaleString("en-US",{minimumFractionDigits:t,maximumFractionDigits:t}),Sw=e=>{const t=new Date(e),n=t.getDate(),a=t.toLocaleString("en-US",{month:"short"}),o=t.getFullYear();return`${a} ${n}, ${o}`},Ze=e=>{if(!(e instanceof Date)||isNaN(e))return"Invalid Date";const t=e.getFullYear(),n=String(e.getMonth()+1).padStart(2,"0"),a=String(e.getDate()).padStart(2,"0");return`${t}-${n}-${a}`},gn=(e,t)=>{const n=new Date(e);return n.setDate(n.getDate()+t),n},o_=e=>{const t=new Date(e),n=t.getFullYear(),a=String(t.getMonth()+1).padStart(2,"0"),o=String(t.getDate()).padStart(2,"0"),i=String(t.getHours()).padStart(2,"0"),l=String(t.getMinutes()).padStart(2,"0"),u=String(t.getSeconds()).padStart(2,"0");return`${n}-${a}-${o}T${i}:${l}:${u}`},dn=e=>{const t=new Date(e),n=t.toLocaleString("en-US",{weekday:"short"}),a=t.getDate(),o=t.toLocaleString("en-US",{month:"short"}),i=t.getFullYear();return`${n} ${a} ${o}, ${i}`},Tr=e=>!e||e?.trim()==""?"":e?.split(" ").map(t=>{const n=t.match(/^(\W*)(\w+)(\W*)$/);if(n){const[,a,o,i]=n;return a+o.charAt(0).toUpperCase()+o.slice(1).toLowerCase()+i}return t}).join(" "),Nw=(e,t)=>{const n=new Date(e),a=new Date(t);n.setHours(0,0,0,0),a.setHours(0,0,0,0);const o=Math.abs(a-n);return Math.floor(o/(1e3*60*60*24))},rL=(e,...t)=>{let n=[e,...t].filter(Boolean),a=Array.from(new Set(n.filter(o=>o)));return a.sort((o,i)=>o-i),a.join(",")},i_=(e,t)=>{const n=[];let a=0;for(let o=1;o<e.length;o++)Number(e[o])===1&&n.push(t?.[a]),a++;return n},aL=e=>e?.toString().replace(/\\r\\n\\t/g,"").replace(/\\r\\n/g,"").replace(/\\n/g,"").replace(/\\t/g,"").replace(/\\+/g,"").replace(/\/+/g,"/").trim(),fi=e=>!e||e.length===0?"":e.length===1?e[0]:e.length===2?`${e[0]} & ${e[1]}`:`${e.slice(0,-1).join(", ")} & ${e[e.length-1]}`,sL=e=>{if(!e||e=="00:00:00")return"";const[t,n]=e.split(":");let a=parseInt(t,10);const o=n,i=a>=12?"PM":"AM";return a>12?a-=12:a===0&&(a=12),`${a}:${o} ${i}`},oL=(e,t,n)=>{const a=Number(e||0),o=Number(t||0),i=Number(n||0),l=a>0?`${a} Adults`:void 0,u=o>0?`${o} Child`:void 0,d=i>0?`${i} Infant`:void 0;return[l,u,d].filter(Boolean)?.join(", ")};var Fy={exports:{}},zy={};/**
 * @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 ww;function iL(){if(ww)return zy;ww=1;var e=ji();function t(d,f){return d===f&&(d!==0||1/d===1/f)||d!==d&&f!==f}var n=typeof Object.is=="function"?Object.is:t,a=e.useSyncExternalStore,o=e.useRef,i=e.useEffect,l=e.useMemo,u=e.useDebugValue;return zy.useSyncExternalStoreWithSelector=function(d,f,m,g,y){var b=o(null);if(b.current===null){var x={hasValue:!1,value:null};b.current=x}else x=b.current;b=l(function(){function w(E){if(!N){if(N=!0,T=E,E=g(E),y!==void 0&&x.hasValue){var $=x.value;if(y($,E))return A=$}return A=E}if($=A,n(T,E))return $;var _=g(E);return y!==void 0&&y($,_)?(T=E,$):(T=E,A=_)}var N=!1,T,A,R=m===void 0?null:m;return[function(){return w(f())},R===null?void 0:function(){return w(R())}]},[f,m,g,y]);var S=a(d,b[0],b[1]);return i(function(){x.hasValue=!0,x.value=S},[S]),u(S),S},zy}var Ew;function lL(){return Ew||(Ew=1,Fy.exports=iL()),Fy.exports}var cL=lL(),uL=B.version.startsWith("19"),dL=Symbol.for(uL?"react.transitional.element":"react.element"),fL=Symbol.for("react.portal"),pL=Symbol.for("react.fragment"),hL=Symbol.for("react.strict_mode"),mL=Symbol.for("react.profiler"),gL=Symbol.for("react.consumer"),yL=Symbol.for("react.context"),l_=Symbol.for("react.forward_ref"),bL=Symbol.for("react.suspense"),vL=Symbol.for("react.suspense_list"),$v=Symbol.for("react.memo"),xL=Symbol.for("react.lazy"),CL=l_,SL=$v;function NL(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case dL:switch(e=e.type,e){case pL:case mL:case hL:case bL:case vL:return e;default:switch(e=e&&e.$$typeof,e){case yL:case l_:case xL:case $v:return e;case gL:return e;default:return t}}case fL:return t}}}function wL(e){return NL(e)===$v}function EL(e,t,n,a,{areStatesEqual:o,areOwnPropsEqual:i,areStatePropsEqual:l}){let u=!1,d,f,m,g,y;function b(T,A){return d=T,f=A,m=e(d,f),g=t(a,f),y=n(m,g,f),u=!0,y}function x(){return m=e(d,f),t.dependsOnOwnProps&&(g=t(a,f)),y=n(m,g,f),y}function S(){return e.dependsOnOwnProps&&(m=e(d,f)),t.dependsOnOwnProps&&(g=t(a,f)),y=n(m,g,f),y}function w(){const T=e(d,f),A=!l(T,m);return m=T,A&&(y=n(m,g,f)),y}function N(T,A){const R=!i(A,f),E=!o(T,d,A,f);return d=T,f=A,R&&E?x():R?S():E?w():y}return function(A,R){return u?N(A,R):b(A,R)}}function $L(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:a,...o}){const i=t(e,o),l=n(e,o),u=a(e,o);return EL(i,l,u,e,o)}function TL(e,t){const n={};for(const a in e){const o=e[a];typeof o=="function"&&(n[a]=(...i)=>t(o(...i)))}return n}function l0(e){return function(n){const a=e(n);function o(){return a}return o.dependsOnOwnProps=!1,o}}function $w(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function c_(e,t){return function(a,{displayName:o}){const i=function(u,d){return i.dependsOnOwnProps?i.mapToProps(u,d):i.mapToProps(u,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(u,d){i.mapToProps=e,i.dependsOnOwnProps=$w(e);let f=i(u,d);return typeof f=="function"&&(i.mapToProps=f,i.dependsOnOwnProps=$w(f),f=i(u,d)),f},i}}function Tv(e,t){return(n,a)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${a.wrappedComponentName}.`)}}function _L(e){return e&&typeof e=="object"?l0(t=>TL(e,t)):e?typeof e=="function"?c_(e):Tv(e,"mapDispatchToProps"):l0(t=>({dispatch:t}))}function AL(e){return e?typeof e=="function"?c_(e):Tv(e,"mapStateToProps"):l0(()=>({}))}function DL(e,t,n){return{...n,...e,...t}}function jL(e){return function(n,{displayName:a,areMergedPropsEqual:o}){let i=!1,l;return function(d,f,m){const g=e(d,f,m);return i?o(g,l)||(l=g):(i=!0,l=g),l}}}function RL(e){return e?typeof e=="function"?jL(e):Tv(e,"mergeProps"):()=>DL}function OL(e){e()}function IL(){let e=null,t=null;return{clear(){e=null,t=null},notify(){OL(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let a=e;for(;a;)n.push(a),a=a.next;return n},subscribe(n){let a=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!a||e===null||(a=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var Tw={notify(){},get:()=>[]};function u_(e,t){let n,a=Tw,o=0,i=!1;function l(S){m();const w=a.subscribe(S);let N=!1;return()=>{N||(N=!0,w(),g())}}function u(){a.notify()}function d(){x.onStateChange&&x.onStateChange()}function f(){return i}function m(){o++,n||(n=t?t.addNestedSub(d):e.subscribe(d),a=IL())}function g(){o--,n&&o===0&&(n(),n=void 0,a.clear(),a=Tw)}function y(){i||(i=!0,m())}function b(){i&&(i=!1,g())}const x={addNestedSub:l,notifyNestedSubs:u,handleChangeWrapper:d,isSubscribed:f,trySubscribe:y,tryUnsubscribe:b,getListeners:()=>a};return x}var kL=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ML=kL(),PL=()=>typeof navigator<"u"&&navigator.product==="ReactNative",LL=PL(),BL=()=>ML||LL?B.useLayoutEffect:B.useEffect,Tp=BL();function _w(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Hy(e,t){if(_w(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!_w(e[n[o]],t[n[o]]))return!1;return!0}var qL={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},FL={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},zL={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},d_={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},HL={[CL]:zL,[SL]:d_};function Aw(e){return wL(e)?d_:HL[e.$$typeof]||qL}var UL=Object.defineProperty,VL=Object.getOwnPropertyNames,Dw=Object.getOwnPropertySymbols,GL=Object.getOwnPropertyDescriptor,YL=Object.getPrototypeOf,jw=Object.prototype;function c0(e,t){if(typeof t!="string"){if(jw){const i=YL(t);i&&i!==jw&&c0(e,i)}let n=VL(t);Dw&&(n=n.concat(Dw(t)));const a=Aw(e),o=Aw(t);for(let i=0;i<n.length;++i){const l=n[i];if(!FL[l]&&!(o&&o[l])&&!(a&&a[l])){const u=GL(t,l);try{UL(e,l,u)}catch{}}}}return e}var WL=Symbol.for("react-redux-context"),XL=typeof globalThis<"u"?globalThis:{};function KL(){if(!B.createContext)return{};const e=XL[WL]??=new Map;let t=e.get(B.createContext);return t||(t=B.createContext(null),e.set(B.createContext,t)),t}var ws=KL(),QL=[null,null];function ZL(e,t,n){Tp(()=>e(...t),n)}function JL(e,t,n,a,o,i){e.current=a,n.current=!1,o.current&&(o.current=null,i())}function e6(e,t,n,a,o,i,l,u,d,f,m){if(!e)return()=>{};let g=!1,y=null;const b=()=>{if(g||!u.current)return;const S=t.getState();let w,N;try{w=a(S,o.current)}catch(T){N=T,y=T}N||(y=null),w===i.current?l.current||f():(i.current=w,d.current=w,l.current=!0,m())};return n.onStateChange=b,n.trySubscribe(),b(),()=>{if(g=!0,n.tryUnsubscribe(),n.onStateChange=null,y)throw y}}function t6(e,t){return e===t}function n6(e,t,n,{pure:a,areStatesEqual:o=t6,areOwnPropsEqual:i=Hy,areStatePropsEqual:l=Hy,areMergedPropsEqual:u=Hy,forwardRef:d=!1,context:f=ws}={}){const m=f,g=AL(e),y=_L(t),b=RL(n),x=!!e;return w=>{const N=w.displayName||w.name||"Component",T=`Connect(${N})`,A={shouldHandleStateChanges:x,displayName:T,wrappedComponentName:N,WrappedComponent:w,initMapStateToProps:g,initMapDispatchToProps:y,initMergeProps:b,areStatesEqual:o,areStatePropsEqual:l,areOwnPropsEqual:i,areMergedPropsEqual:u};function R(_){const[k,q,z]=B.useMemo(()=>{const{reactReduxForwardedRef:ae,...ge}=_;return[_.context,ae,ge]},[_]),D=B.useMemo(()=>{let ae=m;return k?.Consumer,ae},[k,m]),H=B.useContext(D),O=!!_.store&&!!_.store.getState&&!!_.store.dispatch,j=!!H&&!!H.store,M=O?_.store:H.store,I=j?H.getServerState:M.getState,F=B.useMemo(()=>$L(M.dispatch,A),[M]),[V,W]=B.useMemo(()=>{if(!x)return QL;const ae=u_(M,O?void 0:H.subscription),ge=ae.notifyNestedSubs.bind(ae);return[ae,ge]},[M,O,H]),U=B.useMemo(()=>O?H:{...H,subscription:V},[O,H,V]),P=B.useRef(void 0),Y=B.useRef(z),K=B.useRef(void 0),Q=B.useRef(!1),ee=B.useRef(!1),G=B.useRef(void 0);Tp(()=>(ee.current=!0,()=>{ee.current=!1}),[]);const oe=B.useMemo(()=>()=>K.current&&z===Y.current?K.current:F(M.getState(),z),[M,z]),ye=B.useMemo(()=>ge=>V?e6(x,M,V,F,Y,P,Q,ee,K,W,ge):()=>{},[V]);ZL(JL,[Y,P,Q,z,K,W]);let me;try{me=B.useSyncExternalStore(ye,oe,I?()=>F(I(),z):oe)}catch(ae){throw G.current&&(ae.message+=`
The error may be correlated with this previous error:
${G.current.stack}

`),ae}Tp(()=>{G.current=void 0,K.current=void 0,P.current=me});const Se=B.useMemo(()=>B.createElement(w,{...me,ref:q}),[q,w,me]);return B.useMemo(()=>x?B.createElement(D.Provider,{value:U},Se):Se,[D,Se,U])}const $=B.memo(R);if($.WrappedComponent=w,$.displayName=R.displayName=T,d){const k=B.forwardRef(function(z,D){return B.createElement($,{...z,reactReduxForwardedRef:D})});return k.displayName=T,k.WrappedComponent=w,c0(k,w)}return c0($,w)}}var f_=n6;function r6(e){const{children:t,context:n,serverState:a,store:o}=e,i=B.useMemo(()=>{const d=u_(o);return{store:o,subscription:d,getServerState:a?()=>a:void 0}},[o,a]),l=B.useMemo(()=>o.getState(),[o]);Tp(()=>{const{subscription:d}=i;return d.onStateChange=d.notifyNestedSubs,d.trySubscribe(),l!==o.getState()&&d.notifyNestedSubs(),()=>{d.tryUnsubscribe(),d.onStateChange=void 0}},[i,l]);const u=n||ws;return B.createElement(u.Provider,{value:i},t)}var p_=r6;function _v(e=ws){return function(){return B.useContext(e)}}var h_=_v();function m_(e=ws){const t=e===ws?h_:_v(e),n=()=>{const{store:a}=t();return a};return Object.assign(n,{withTypes:()=>n}),n}var a6=m_();function s6(e=ws){const t=e===ws?a6:m_(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var on=s6(),o6=(e,t)=>e===t;function i6(e=ws){const t=e===ws?h_:_v(e),n=(a,o={})=>{const{equalityFn:i=o6}=typeof o=="function"?{equalityFn:o}:o,l=t(),{store:u,subscription:d,getServerState:f}=l;B.useRef(!0);const m=B.useCallback({[a.name](y){return a(y)}}[a.name],[a]),g=cL.useSyncExternalStoreWithSelector(d.addNestedSub,u.getState,f||u.getState,m,i);return B.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var lt=i6();let l6={data:""},c6=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||l6},u6=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,d6=/\/\*[^]*?\*\/|  +/g,Rw=/\n+/g,mo=(e,t)=>{let n="",a="",o="";for(let i in e){let l=e[i];i[0]=="@"?i[1]=="i"?n=i+" "+l+";":a+=i[1]=="f"?mo(l,i):i+"{"+mo(l,i[1]=="k"?"":t)+"}":typeof l=="object"?a+=mo(l,t?t.replace(/([^,])+/g,u=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,d=>/&/.test(d)?d.replace(/&/g,u):u?u+" "+d:d)):i):l!=null&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=mo.p?mo.p(i,l):i+":"+l+";")}return n+(t&&o?t+"{"+o+"}":o)+a},fs={},g_=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+g_(e[n]);return t}return e},f6=(e,t,n,a,o)=>{let i=g_(e),l=fs[i]||(fs[i]=(d=>{let f=0,m=11;for(;f<d.length;)m=101*m+d.charCodeAt(f++)>>>0;return"go"+m})(i));if(!fs[l]){let d=i!==e?e:(f=>{let m,g,y=[{}];for(;m=u6.exec(f.replace(d6,""));)m[4]?y.shift():m[3]?(g=m[3].replace(Rw," ").trim(),y.unshift(y[0][g]=y[0][g]||{})):y[0][m[1]]=m[2].replace(Rw," ").trim();return y[0]})(e);fs[l]=mo(o?{["@keyframes "+l]:d}:d,n?"":"."+l)}let u=n&&fs.g?fs.g:null;return n&&(fs.g=fs[l]),((d,f,m,g)=>{g?f.data=f.data.replace(g,d):f.data.indexOf(d)===-1&&(f.data=m?d+f.data:f.data+d)})(fs[l],t,a,u),l},p6=(e,t,n)=>e.reduce((a,o,i)=>{let l=t[i];if(l&&l.call){let u=l(n),d=u&&u.props&&u.props.className||/^go/.test(u)&&u;l=d?"."+d:u&&typeof u=="object"?u.props?"":mo(u,""):u===!1?"":u}return a+o+(l??"")},"");function wh(e){let t=this||{},n=e.call?e(t.p):e;return f6(n.unshift?n.raw?p6(n,[].slice.call(arguments,1),t.p):n.reduce((a,o)=>Object.assign(a,o&&o.call?o(t.p):o),{}):n,c6(t.target),t.g,t.o,t.k)}let y_,u0,d0;wh.bind({g:1});let Es=wh.bind({k:1});function h6(e,t,n,a){mo.p=t,y_=e,u0=n,d0=a}function jo(e,t){let n=this||{};return function(){let a=arguments;function o(i,l){let u=Object.assign({},i),d=u.className||o.className;n.p=Object.assign({theme:u0&&u0()},u),n.o=/ *go\d+/.test(d),u.className=wh.apply(n,a)+(d?" "+d:"");let f=e;return e[0]&&(f=u.as||e,delete u.as),d0&&f[0]&&d0(u),y_(f,u)}return o}}var m6=e=>typeof e=="function",_p=(e,t)=>m6(e)?e(t):e,g6=(()=>{let e=0;return()=>(++e).toString()})(),b_=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),y6=20,Av="default",v_=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(l=>l.id===t.toast.id?{...l,...t.toast}:l)};case 2:let{toast:a}=t;return v_(e,{type:e.toasts.find(l=>l.id===a.id)?1:0,toast:a});case 3:let{toastId:o}=t;return{...e,toasts:e.toasts.map(l=>l.id===o||o===void 0?{...l,dismissed:!0,visible:!1}:l)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(l=>l.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let i=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(l=>({...l,pauseDuration:l.pauseDuration+i}))}}},ip=[],x_={toasts:[],pausedAt:void 0,settings:{toastLimit:y6}},La={},C_=(e,t=Av)=>{La[t]=v_(La[t]||x_,e),ip.forEach(([n,a])=>{n===t&&a(La[t])})},S_=e=>Object.keys(La).forEach(t=>C_(e,t)),b6=e=>Object.keys(La).find(t=>La[t].toasts.some(n=>n.id===e)),Eh=(e=Av)=>t=>{C_(t,e)},v6={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},x6=(e={},t=Av)=>{let[n,a]=B.useState(La[t]||x_),o=B.useRef(La[t]);B.useEffect(()=>(o.current!==La[t]&&a(La[t]),ip.push([t,a]),()=>{let l=ip.findIndex(([u])=>u===t);l>-1&&ip.splice(l,1)}),[t]);let i=n.toasts.map(l=>{var u,d,f;return{...e,...e[l.type],...l,removeDelay:l.removeDelay||((u=e[l.type])==null?void 0:u.removeDelay)||e?.removeDelay,duration:l.duration||((d=e[l.type])==null?void 0:d.duration)||e?.duration||v6[l.type],style:{...e.style,...(f=e[l.type])==null?void 0:f.style,...l.style}}});return{...n,toasts:i}},C6=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:n?.id||g6()}),od=e=>(t,n)=>{let a=C6(t,e,n);return Eh(a.toasterId||b6(a.id))({type:2,toast:a}),a.id},$n=(e,t)=>od("blank")(e,t);$n.error=od("error");$n.success=od("success");$n.loading=od("loading");$n.custom=od("custom");$n.dismiss=(e,t)=>{let n={type:3,toastId:e};t?Eh(t)(n):S_(n)};$n.dismissAll=e=>$n.dismiss(void 0,e);$n.remove=(e,t)=>{let n={type:4,toastId:e};t?Eh(t)(n):S_(n)};$n.removeAll=e=>$n.remove(void 0,e);$n.promise=(e,t,n)=>{let a=$n.loading(t.loading,{...n,...n?.loading});return typeof e=="function"&&(e=e()),e.then(o=>{let i=t.success?_p(t.success,o):void 0;return i?$n.success(i,{id:a,...n,...n?.success}):$n.dismiss(a),o}).catch(o=>{let i=t.error?_p(t.error,o):void 0;i?$n.error(i,{id:a,...n,...n?.error}):$n.dismiss(a)}),e};var S6=1e3,N6=(e,t="default")=>{let{toasts:n,pausedAt:a}=x6(e,t),o=B.useRef(new Map).current,i=B.useCallback((g,y=S6)=>{if(o.has(g))return;let b=setTimeout(()=>{o.delete(g),l({type:4,toastId:g})},y);o.set(g,b)},[]);B.useEffect(()=>{if(a)return;let g=Date.now(),y=n.map(b=>{if(b.duration===1/0)return;let x=(b.duration||0)+b.pauseDuration-(g-b.createdAt);if(x<0){b.visible&&$n.dismiss(b.id);return}return setTimeout(()=>$n.dismiss(b.id,t),x)});return()=>{y.forEach(b=>b&&clearTimeout(b))}},[n,a,t]);let l=B.useCallback(Eh(t),[t]),u=B.useCallback(()=>{l({type:5,time:Date.now()})},[l]),d=B.useCallback((g,y)=>{l({type:1,toast:{id:g,height:y}})},[l]),f=B.useCallback(()=>{a&&l({type:6,time:Date.now()})},[a,l]),m=B.useCallback((g,y)=>{let{reverseOrder:b=!1,gutter:x=8,defaultPosition:S}=y||{},w=n.filter(A=>(A.position||S)===(g.position||S)&&A.height),N=w.findIndex(A=>A.id===g.id),T=w.filter((A,R)=>R<N&&A.visible).length;return w.filter(A=>A.visible).slice(...b?[T+1]:[0,T]).reduce((A,R)=>A+(R.height||0)+x,0)},[n]);return B.useEffect(()=>{n.forEach(g=>{if(g.dismissed)i(g.id,g.removeDelay);else{let y=o.get(g.id);y&&(clearTimeout(y),o.delete(g.id))}})},[n,i]),{toasts:n,handlers:{updateHeight:d,startPause:u,endPause:f,calculateOffset:m}}},w6=Es`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,E6=Es`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,$6=Es`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,T6=jo("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

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

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

  animation: ${D6} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${j6} 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;
  }
`,O6=jo("div")`
  position: absolute;
`,I6=jo("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,k6=Es`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,M6=jo("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${k6} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,P6=({toast:e})=>{let{icon:t,type:n,iconTheme:a}=e;return t!==void 0?typeof t=="string"?B.createElement(M6,null,t):t:n==="blank"?null:B.createElement(I6,null,B.createElement(A6,{...a}),n!=="loading"&&B.createElement(O6,null,n==="error"?B.createElement(T6,{...a}):B.createElement(R6,{...a})))},L6=e=>`
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,B6=e=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
`,q6="0%{opacity:0;} 100%{opacity:1;}",F6="0%{opacity:1;} 100%{opacity:0;}",z6=jo("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;
`,H6=jo("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,U6=(e,t)=>{let n=e.includes("top")?1:-1,[a,o]=b_()?[q6,F6]:[L6(n),B6(n)];return{animation:t?`${Es(a)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${Es(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},V6=B.memo(({toast:e,position:t,style:n,children:a})=>{let o=e.height?U6(e.position||t||"top-center",e.visible):{opacity:0},i=B.createElement(P6,{toast:e}),l=B.createElement(H6,{...e.ariaProps},_p(e.message,e));return B.createElement(z6,{className:e.className,style:{...o,...n,...e.style}},typeof a=="function"?a({icon:i,message:l}):B.createElement(B.Fragment,null,i,l))});h6(B.createElement);var G6=({id:e,className:t,style:n,onHeightUpdate:a,children:o})=>{let i=B.useCallback(l=>{if(l){let u=()=>{let d=l.getBoundingClientRect().height;a(e,d)};u(),new MutationObserver(u).observe(l,{subtree:!0,childList:!0,characterData:!0})}},[e,a]);return B.createElement("div",{ref:i,className:t,style:n},o)},Y6=(e,t)=>{let n=e.includes("top"),a=n?{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:b_()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...a,...o}},W6=wh`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`,Hf=16,X6=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:a,children:o,toasterId:i,containerStyle:l,containerClassName:u})=>{let{toasts:d,handlers:f}=N6(n,i);return B.createElement("div",{"data-rht-toaster":i||"",style:{position:"fixed",zIndex:9999,top:Hf,left:Hf,right:Hf,bottom:Hf,pointerEvents:"none",...l},className:u,onMouseEnter:f.startPause,onMouseLeave:f.endPause},d.map(m=>{let g=m.position||t,y=f.calculateOffset(m,{reverseOrder:e,gutter:a,defaultPosition:t}),b=Y6(g,y);return B.createElement(G6,{id:m.id,key:m.id,onHeightUpdate:f.updateHeight,className:m.visible?W6:"",style:b},m.type==="custom"?_p(m.message,m):o?o(m):B.createElement(V6,{toast:m,position:g}))}))},rt=$n;function K6(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Q6(e,t,n){return t&&K6(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var Ow="(prefers-reduced-motion: reduce)",$l=1,Z6=2,Pl=3,Ql=4,id=5,lp=6,Ap=7,J6={CREATED:$l,MOUNTED:Z6,IDLE:Pl,MOVING:Ql,SCROLLING:id,DRAGGING:lp,DESTROYED:Ap};function $s(e){e.length=0}function Ro(e,t,n){return Array.prototype.slice.call(e,t,n)}function Xt(e){return e.bind.apply(e,[null].concat(Ro(arguments,1)))}var N_=setTimeout,f0=function(){};function Iw(e){return requestAnimationFrame(e)}function $h(e,t){return typeof t===e}function ju(e){return!jv(e)&&$h("object",e)}var Dv=Array.isArray,w_=Xt($h,"function"),No=Xt($h,"string"),ld=Xt($h,"undefined");function jv(e){return e===null}function E_(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch{return!1}}function cd(e){return Dv(e)?e:[e]}function ra(e,t){cd(e).forEach(t)}function Rv(e,t){return e.indexOf(t)>-1}function cp(e,t){return e.push.apply(e,cd(t)),e}function bs(e,t,n){e&&ra(t,function(a){a&&e.classList[n?"add":"remove"](a)})}function Ua(e,t){bs(e,No(t)?t.split(" "):t,!0)}function ud(e,t){ra(t,e.appendChild.bind(e))}function Ov(e,t){ra(e,function(n){var a=(t||n).parentNode;a&&a.insertBefore(n,t)})}function Ru(e,t){return E_(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function $_(e,t){var n=e?Ro(e.children):[];return t?n.filter(function(a){return Ru(a,t)}):n}function dd(e,t){return t?$_(e,t)[0]:e.firstElementChild}var Ou=Object.keys;function vi(e,t,n){return e&&(n?Ou(e).reverse():Ou(e)).forEach(function(a){a!=="__proto__"&&t(e[a],a)}),e}function Iu(e){return Ro(arguments,1).forEach(function(t){vi(t,function(n,a){e[a]=t[a]})}),e}function yo(e){return Ro(arguments,1).forEach(function(t){vi(t,function(n,a){Dv(n)?e[a]=n.slice():ju(n)?e[a]=yo({},ju(e[a])?e[a]:{},n):e[a]=n})}),e}function kw(e,t){ra(t||Ou(e),function(n){delete e[n]})}function Va(e,t){ra(e,function(n){ra(t,function(a){n&&n.removeAttribute(a)})})}function bt(e,t,n){ju(t)?vi(t,function(a,o){bt(e,o,a)}):ra(e,function(a){jv(n)||n===""?Va(a,t):a.setAttribute(t,String(n))})}function Dl(e,t,n){var a=document.createElement(e);return t&&(No(t)?Ua(a,t):bt(a,t)),n&&ud(n,a),a}function ya(e,t,n){if(ld(n))return getComputedStyle(e)[t];jv(n)||(e.style[t]=""+n)}function ku(e,t){ya(e,"display",t)}function T_(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function xa(e,t){return e.getAttribute(t)}function Mw(e,t){return e&&e.classList.contains(t)}function Yr(e){return e.getBoundingClientRect()}function Si(e){ra(e,function(t){t&&t.parentNode&&t.parentNode.removeChild(t)})}function __(e){return dd(new DOMParser().parseFromString(e,"text/html").body)}function ys(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function A_(e,t){return e&&e.querySelector(t)}function Iv(e,t){return t?Ro(e.querySelectorAll(t)):[]}function vs(e,t){bs(e,t,!1)}function p0(e){return e.timeStamp}function ri(e){return No(e)?e:e?e+"px":""}var fd="splide",kv="data-"+fd;function Cu(e,t){if(!e)throw new Error("["+fd+"] "+(t||""))}var wo=Math.min,Dp=Math.max,jp=Math.floor,Mu=Math.ceil,gr=Math.abs;function D_(e,t,n){return gr(e-t)<n}function up(e,t,n,a){var o=wo(t,n),i=Dp(t,n);return a?o<e&&e<i:o<=e&&e<=i}function wl(e,t,n){var a=wo(t,n),o=Dp(t,n);return wo(Dp(a,e),o)}function h0(e){return+(e>0)-+(e<0)}function m0(e,t){return ra(t,function(n){e=e.replace("%s",""+n)}),e}function Mv(e){return e<10?"0"+e:""+e}var Pw={};function e5(e){return""+e+Mv(Pw[e]=(Pw[e]||0)+1)}function j_(){var e=[];function t(l,u,d,f){o(l,u,function(m,g,y){var b="addEventListener"in m,x=b?m.removeEventListener.bind(m,g,d,f):m.removeListener.bind(m,d);b?m.addEventListener(g,d,f):m.addListener(d),e.push([m,g,y,d,x])})}function n(l,u,d){o(l,u,function(f,m,g){e=e.filter(function(y){return y[0]===f&&y[1]===m&&y[2]===g&&(!d||y[3]===d)?(y[4](),!1):!0})})}function a(l,u,d){var f,m=!0;return typeof CustomEvent=="function"?f=new CustomEvent(u,{bubbles:m,detail:d}):(f=document.createEvent("CustomEvent"),f.initCustomEvent(u,m,!1,d)),l.dispatchEvent(f),f}function o(l,u,d){ra(l,function(f){f&&ra(u,function(m){m.split(" ").forEach(function(g){var y=g.split(".");d(f,y[0],y[1])})})})}function i(){e.forEach(function(l){l[4]()}),$s(e)}return{bind:t,unbind:n,dispatch:a,destroy:i}}var Oo="mounted",g0="ready",Ts="move",Zl="moved",Pv="click",R_="active",O_="inactive",I_="visible",k_="hidden",Nn="refresh",or="updated",Ll="resize",Th="resized",M_="drag",P_="dragging",L_="dragged",_h="scroll",Oi="scrolled",t5="overflow",Lv="destroy",B_="arrows:mounted",q_="arrows:updated",F_="pagination:mounted",z_="pagination:updated",Bv="navigation:mounted",qv="autoplay:play",H_="autoplay:playing",Fv="autoplay:pause",zv="lazyload:loaded",U_="sk",V_="sh",Rp="ei";function an(e){var t=e?e.event.bus:document.createDocumentFragment(),n=j_();function a(i,l){n.bind(t,cd(i).join(" "),function(u){l.apply(l,Dv(u.detail)?u.detail:[])})}function o(i){n.dispatch(t,i,Ro(arguments,1))}return e&&e.event.on(Lv,n.destroy),Iu(n,{bus:t,on:a,off:Xt(n.unbind,t),emit:o})}function Ah(e,t,n,a){var o=Date.now,i,l=0,u,d=!0,f=0;function m(){if(!d){if(l=e?wo((o()-i)/e,1):1,n&&n(l),l>=1&&(t(),i=o(),a&&++f>=a))return y();u=Iw(m)}}function g(N){N||x(),i=o()-(N?l*e:0),d=!1,u=Iw(m)}function y(){d=!0}function b(){i=o(),l=0,n&&n(l)}function x(){u&&cancelAnimationFrame(u),l=0,u=0,d=!0}function S(N){e=N}function w(){return d}return{start:g,rewind:b,pause:y,cancel:x,set:S,isPaused:w}}function n5(e){var t=e;function n(o){t=o}function a(o){return Rv(cd(o),t)}return{set:n,is:a}}function r5(e,t){var n=Ah(0,e,null,1);return function(){n.isPaused()&&n.start()}}function a5(e,t,n){var a=e.state,o=n.breakpoints||{},i=n.reducedMotion||{},l=j_(),u=[];function d(){var x=n.mediaQuery==="min";Ou(o).sort(function(S,w){return x?+S-+w:+w-+S}).forEach(function(S){m(o[S],"("+(x?"min":"max")+"-width:"+S+"px)")}),m(i,Ow),g()}function f(x){x&&l.destroy()}function m(x,S){var w=matchMedia(S);l.bind(w,"change",g),u.push([x,w])}function g(){var x=a.is(Ap),S=n.direction,w=u.reduce(function(N,T){return yo(N,T[1].matches?T[0]:{})},{});kw(n),b(w),n.destroy?e.destroy(n.destroy==="completely"):x?(f(!0),e.mount()):S!==n.direction&&e.refresh()}function y(x){matchMedia(Ow).matches&&(x?yo(n,i):kw(n,Ou(i)))}function b(x,S,w){yo(n,x),S&&yo(Object.getPrototypeOf(n),x),(w||!a.is($l))&&e.emit(or,n)}return{setup:d,destroy:f,reduce:y,set:b}}var Dh="Arrow",jh=Dh+"Left",Rh=Dh+"Right",G_=Dh+"Up",Y_=Dh+"Down",Lw="rtl",Oh="ttb",Uy={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[G_,Rh],ArrowRight:[Y_,jh]};function s5(e,t,n){function a(i,l,u){u=u||n.direction;var d=u===Lw&&!l?1:u===Oh?0:-1;return Uy[i]&&Uy[i][d]||i.replace(/width|left|right/i,function(f,m){var g=Uy[f.toLowerCase()][d]||f;return m>0?g.charAt(0).toUpperCase()+g.slice(1):g})}function o(i){return i*(n.direction===Lw?1:-1)}return{resolve:a,orient:o}}var Cs="role",jl="tabindex",o5="disabled",_a="aria-",pd=_a+"controls",W_=_a+"current",Bw=_a+"selected",Xr=_a+"label",Hv=_a+"labelledby",X_=_a+"hidden",Uv=_a+"orientation",Pu=_a+"roledescription",qw=_a+"live",Fw=_a+"busy",zw=_a+"atomic",Vv=[Cs,jl,o5,pd,W_,Xr,Hv,X_,Uv,Pu],Ya=fd+"__",Io="is-",Vy=fd,Hw=Ya+"track",i5=Ya+"list",Ih=Ya+"slide",K_=Ih+"--clone",l5=Ih+"__container",Gv=Ya+"arrows",kh=Ya+"arrow",Q_=kh+"--prev",Z_=kh+"--next",Mh=Ya+"pagination",J_=Mh+"__page",c5=Ya+"progress",u5=c5+"__bar",d5=Ya+"toggle",f5=Ya+"spinner",p5=Ya+"sr",h5=Io+"initialized",Ni=Io+"active",eA=Io+"prev",tA=Io+"next",y0=Io+"visible",b0=Io+"loading",nA=Io+"focus-in",rA=Io+"overflow",m5=[Ni,y0,eA,tA,b0,nA,rA],g5={slide:Ih,clone:K_,arrows:Gv,arrow:kh,prev:Q_,next:Z_,pagination:Mh,page:J_,spinner:f5};function y5(e,t){if(w_(e.closest))return e.closest(t);for(var n=e;n&&n.nodeType===1&&!Ru(n,t);)n=n.parentElement;return n}var b5=5,Uw=200,aA="touchstart mousedown",Gy="touchmove mousemove",Yy="touchend touchcancel mouseup click";function v5(e,t,n){var a=an(e),o=a.on,i=a.bind,l=e.root,u=n.i18n,d={},f=[],m=[],g=[],y,b,x;function S(){A(),R(),T()}function w(){o(Nn,N),o(Nn,S),o(or,T),i(document,aA+" keydown",function(_){x=_.type==="keydown"},{capture:!0}),i(l,"focusin",function(){bs(l,nA,!!x)})}function N(_){var k=Vv.concat("style");$s(f),vs(l,m),vs(y,g),Va([y,b],k),Va(l,_?k:["style",Pu])}function T(){vs(l,m),vs(y,g),m=$(Vy),g=$(Hw),Ua(l,m),Ua(y,g),bt(l,Xr,n.label),bt(l,Hv,n.labelledby)}function A(){y=E("."+Hw),b=dd(y,"."+i5),Cu(y&&b,"A track/list element is missing."),cp(f,$_(b,"."+Ih+":not(."+K_+")")),vi({arrows:Gv,pagination:Mh,prev:Q_,next:Z_,bar:u5,toggle:d5},function(_,k){d[k]=E("."+_)}),Iu(d,{root:l,track:y,list:b,slides:f})}function R(){var _=l.id||e5(fd),k=n.role;l.id=_,y.id=y.id||_+"-track",b.id=b.id||_+"-list",!xa(l,Cs)&&l.tagName!=="SECTION"&&k&&bt(l,Cs,k),bt(l,Pu,u.carousel),bt(b,Cs,"presentation")}function E(_){var k=A_(l,_);return k&&y5(k,"."+Vy)===l?k:void 0}function $(_){return[_+"--"+n.type,_+"--"+n.direction,n.drag&&_+"--draggable",n.isNavigation&&_+"--nav",_===Vy&&Ni]}return Iu(d,{setup:S,mount:w,destroy:N})}var Bl="slide",Jl="loop",hd="fade";function x5(e,t,n,a){var o=an(e),i=o.on,l=o.emit,u=o.bind,d=e.Components,f=e.root,m=e.options,g=m.isNavigation,y=m.updateOnMove,b=m.i18n,x=m.pagination,S=m.slideFocus,w=d.Direction.resolve,N=xa(a,"style"),T=xa(a,Xr),A=n>-1,R=dd(a,"."+l5),E;function $(){A||(a.id=f.id+"-slide"+Mv(t+1),bt(a,Cs,x?"tabpanel":"group"),bt(a,Pu,b.slide),bt(a,Xr,T||m0(b.slideLabel,[t+1,e.length]))),_()}function _(){u(a,"click",Xt(l,Pv,V)),u(a,"keydown",Xt(l,U_,V)),i([Zl,V_,Oi],D),i(Bv,q),y&&i(Ts,z)}function k(){E=!0,o.destroy(),vs(a,m5),Va(a,Vv),bt(a,"style",N),bt(a,Xr,T||"")}function q(){var W=e.splides.map(function(U){var P=U.splide.Components.Slides.getAt(t);return P?P.slide.id:""}).join(" ");bt(a,Xr,m0(b.slideX,(A?n:t)+1)),bt(a,pd,W),bt(a,Cs,S?"button":""),S&&Va(a,Pu)}function z(){E||D()}function D(){if(!E){var W=e.index;H(),O(),bs(a,eA,t===W-1),bs(a,tA,t===W+1)}}function H(){var W=M();W!==Mw(a,Ni)&&(bs(a,Ni,W),bt(a,W_,g&&W||""),l(W?R_:O_,V))}function O(){var W=I(),U=!W&&(!M()||A);if(e.state.is([Ql,id])||bt(a,X_,U||""),bt(Iv(a,m.focusableNodes||""),jl,U?-1:""),S&&bt(a,jl,U?-1:0),W!==Mw(a,y0)&&(bs(a,y0,W),l(W?I_:k_,V)),!W&&document.activeElement===a){var P=d.Slides.getAt(e.index);P&&T_(P.slide)}}function j(W,U,P){ya(P&&R||a,W,U)}function M(){var W=e.index;return W===t||m.cloneStatus&&W===n}function I(){if(e.is(hd))return M();var W=Yr(d.Elements.track),U=Yr(a),P=w("left",!0),Y=w("right",!0);return jp(W[P])<=Mu(U[P])&&jp(U[Y])<=Mu(W[Y])}function F(W,U){var P=gr(W-t);return!A&&(m.rewind||e.is(Jl))&&(P=wo(P,e.length-P)),P<=U}var V={index:t,slideIndex:n,slide:a,container:R,isClone:A,mount:$,destroy:k,update:D,style:j,isWithin:F};return V}function C5(e,t,n){var a=an(e),o=a.on,i=a.emit,l=a.bind,u=t.Elements,d=u.slides,f=u.list,m=[];function g(){y(),o(Nn,b),o(Nn,y)}function y(){d.forEach(function(D,H){S(D,H,-1)})}function b(){E(function(D){D.destroy()}),$s(m)}function x(){E(function(D){D.update()})}function S(D,H,O){var j=x5(e,H,O,D);j.mount(),m.push(j),m.sort(function(M,I){return M.index-I.index})}function w(D){return D?$(function(H){return!H.isClone}):m}function N(D){var H=t.Controller,O=H.toIndex(D),j=H.hasFocus()?1:n.perPage;return $(function(M){return up(M.index,O,O+j-1)})}function T(D){return $(D)[0]}function A(D,H){ra(D,function(O){if(No(O)&&(O=__(O)),E_(O)){var j=d[H];j?Ov(O,j):ud(f,O),Ua(O,n.classes.slide),k(O,Xt(i,Ll))}}),i(Nn)}function R(D){Si($(D).map(function(H){return H.slide})),i(Nn)}function E(D,H){w(H).forEach(D)}function $(D){return m.filter(w_(D)?D:function(H){return No(D)?Ru(H.slide,D):Rv(cd(D),H.index)})}function _(D,H,O){E(function(j){j.style(D,H,O)})}function k(D,H){var O=Iv(D,"img"),j=O.length;j?O.forEach(function(M){l(M,"load error",function(){--j||H()})}):H()}function q(D){return D?d.length:m.length}function z(){return m.length>n.perPage}return{mount:g,destroy:b,update:x,register:S,get:w,getIn:N,getAt:T,add:A,remove:R,forEach:E,filter:$,style:_,getLength:q,isEnough:z}}function S5(e,t,n){var a=an(e),o=a.on,i=a.bind,l=a.emit,u=t.Slides,d=t.Direction.resolve,f=t.Elements,m=f.root,g=f.track,y=f.list,b=u.getAt,x=u.style,S,w,N;function T(){A(),i(window,"resize load",r5(Xt(l,Ll))),o([or,Nn],A),o(Ll,R)}function A(){S=n.direction===Oh,ya(m,"maxWidth",ri(n.width)),ya(g,d("paddingLeft"),E(!1)),ya(g,d("paddingRight"),E(!0)),R(!0)}function R(V){var W=Yr(m);(V||w.width!==W.width||w.height!==W.height)&&(ya(g,"height",$()),x(d("marginRight"),ri(n.gap)),x("width",k()),x("height",q(),!0),w=W,l(Th),N!==(N=F())&&(bs(m,rA,N),l(t5,N)))}function E(V){var W=n.padding,U=d(V?"right":"left");return W&&ri(W[U]||(ju(W)?0:W))||"0px"}function $(){var V="";return S&&(V=_(),Cu(V,"height or heightRatio is missing."),V="calc("+V+" - "+E(!1)+" - "+E(!0)+")"),V}function _(){return ri(n.height||Yr(y).width*n.heightRatio)}function k(){return n.autoWidth?null:ri(n.fixedWidth)||(S?"":z())}function q(){return ri(n.fixedHeight)||(S?n.autoHeight?null:z():_())}function z(){var V=ri(n.gap);return"calc((100%"+(V&&" + "+V)+")/"+(n.perPage||1)+(V&&" - "+V)+")"}function D(){return Yr(y)[d("width")]}function H(V,W){var U=b(V||0);return U?Yr(U.slide)[d("width")]+(W?0:M()):0}function O(V,W){var U=b(V);if(U){var P=Yr(U.slide)[d("right")],Y=Yr(y)[d("left")];return gr(P-Y)+(W?0:M())}return 0}function j(V){return O(e.length-1)-O(0)+H(0,V)}function M(){var V=b(0);return V&&parseFloat(ya(V.slide,d("marginRight")))||0}function I(V){return parseFloat(ya(g,d("padding"+(V?"Right":"Left"))))||0}function F(){return e.is(hd)||j(!0)>D()}return{mount:T,resize:R,listSize:D,slideSize:H,sliderSize:j,totalSize:O,getPadding:I,isOverflow:F}}var N5=2;function w5(e,t,n){var a=an(e),o=a.on,i=t.Elements,l=t.Slides,u=t.Direction.resolve,d=[],f;function m(){o(Nn,g),o([or,Ll],b),(f=w())&&(x(f),t.Layout.resize(!0))}function g(){y(),m()}function y(){Si(d),$s(d),a.destroy()}function b(){var N=w();f!==N&&(f<N||!N)&&a.emit(Nn)}function x(N){var T=l.get().slice(),A=T.length;if(A){for(;T.length<N;)cp(T,T);cp(T.slice(-N),T.slice(0,N)).forEach(function(R,E){var $=E<N,_=S(R.slide,E);$?Ov(_,T[0].slide):ud(i.list,_),cp(d,_),l.register(_,E-N+($?0:A),R.index)})}}function S(N,T){var A=N.cloneNode(!0);return Ua(A,n.classes.clone),A.id=e.root.id+"-clone"+Mv(T+1),A}function w(){var N=n.clones;if(!e.is(Jl))N=0;else if(ld(N)){var T=n[u("fixedWidth")]&&t.Layout.slideSize(0),A=T&&Mu(Yr(i.track)[u("width")]/T);N=A||n[u("autoWidth")]&&e.length||n.perPage*N5}return N}return{mount:m,destroy:y}}function E5(e,t,n){var a=an(e),o=a.on,i=a.emit,l=e.state.set,u=t.Layout,d=u.slideSize,f=u.getPadding,m=u.totalSize,g=u.listSize,y=u.sliderSize,b=t.Direction,x=b.resolve,S=b.orient,w=t.Elements,N=w.list,T=w.track,A;function R(){A=t.Transition,o([Oo,Th,or,Nn],E)}function E(){t.Controller.isBusy()||(t.Scroll.cancel(),_(e.index),t.Slides.update())}function $(U,P,Y,K){U!==P&&V(U>Y)&&(D(),k(z(j(),U>Y),!0)),l(Ql),i(Ts,P,Y,U),A.start(P,function(){l(Pl),i(Zl,P,Y,U),K&&K()})}function _(U){k(O(U,!0))}function k(U,P){if(!e.is(hd)){var Y=P?U:q(U);ya(N,"transform","translate"+x("X")+"("+Y+"px)"),U!==Y&&i(V_)}}function q(U){if(e.is(Jl)){var P=H(U),Y=P>t.Controller.getEnd(),K=P<0;(K||Y)&&(U=z(U,Y))}return U}function z(U,P){var Y=U-F(P),K=y();return U-=S(K*(Mu(gr(Y)/K)||1))*(P?1:-1),U}function D(){k(j(),!0),A.cancel()}function H(U){for(var P=t.Slides.get(),Y=0,K=1/0,Q=0;Q<P.length;Q++){var ee=P[Q].index,G=gr(O(ee,!0)-U);if(G<=K)K=G,Y=ee;else break}return Y}function O(U,P){var Y=S(m(U-1)-I(U));return P?M(Y):Y}function j(){var U=x("left");return Yr(N)[U]-Yr(T)[U]+S(f(!1))}function M(U){return n.trimSpace&&e.is(Bl)&&(U=wl(U,0,S(y(!0)-g()))),U}function I(U){var P=n.focus;return P==="center"?(g()-d(U,!0))/2:+P*d(U)||0}function F(U){return O(U?t.Controller.getEnd():0,!!n.trimSpace)}function V(U){var P=S(z(j(),U));return U?P>=0:P<=N[x("scrollWidth")]-Yr(T)[x("width")]}function W(U,P){P=ld(P)?j():P;var Y=U!==!0&&S(P)<S(F(!1)),K=U!==!1&&S(P)>S(F(!0));return Y||K}return{mount:R,move:$,jump:_,translate:k,shift:z,cancel:D,toIndex:H,toPosition:O,getPosition:j,getLimit:F,exceededLimit:W,reposition:E}}function $5(e,t,n){var a=an(e),o=a.on,i=a.emit,l=t.Move,u=l.getPosition,d=l.getLimit,f=l.toPosition,m=t.Slides,g=m.isEnough,y=m.getLength,b=n.omitEnd,x=e.is(Jl),S=e.is(Bl),w=Xt(j,!1),N=Xt(j,!0),T=n.start||0,A,R=T,E,$,_;function k(){q(),o([or,Nn,Rp],q),o(Th,z)}function q(){E=y(!0),$=n.perMove,_=n.perPage,A=V();var G=wl(T,0,b?A:E-1);G!==T&&(T=G,l.reposition())}function z(){A!==V()&&i(Rp)}function D(G,oe,ye){if(!ee()){var me=O(G),Se=F(me);Se>-1&&(oe||Se!==T)&&(Y(Se),l.move(me,Se,R,ye))}}function H(G,oe,ye,me){t.Scroll.scroll(G,oe,ye,function(){var Se=F(l.toIndex(u()));Y(b?wo(Se,A):Se),me&&me()})}function O(G){var oe=T;if(No(G)){var ye=G.match(/([+\-<>])(\d+)?/)||[],me=ye[1],Se=ye[2];me==="+"||me==="-"?oe=M(T+ +(""+me+(+Se||1)),T):me===">"?oe=Se?W(+Se):w(!0):me==="<"&&(oe=N(!0))}else oe=x?G:wl(G,0,A);return oe}function j(G,oe){var ye=$||(Q()?1:_),me=M(T+ye*(G?-1:1),T,!($||Q()));return me===-1&&S&&!D_(u(),d(!G),1)?G?0:A:oe?me:F(me)}function M(G,oe,ye){if(g()||Q()){var me=I(G);me!==G&&(oe=G,G=me,ye=!1),G<0||G>A?!$&&(up(0,G,oe,!0)||up(A,oe,G,!0))?G=W(U(G)):x?G=ye?G<0?-(E%_||_):E:G:n.rewind?G=G<0?A:0:G=-1:ye&&G!==oe&&(G=W(U(oe)+(G<oe?-1:1)))}else G=-1;return G}function I(G){if(S&&n.trimSpace==="move"&&G!==T)for(var oe=u();oe===f(G,!0)&&up(G,0,e.length-1,!n.rewind);)G<T?--G:++G;return G}function F(G){return x?(G+E)%E||0:G}function V(){for(var G=E-(Q()||x&&$?1:_);b&&G-- >0;)if(f(E-1,!0)!==f(G,!0)){G++;break}return wl(G,0,E-1)}function W(G){return wl(Q()?G:_*G,0,A)}function U(G){return Q()?wo(G,A):jp((G>=A?E-1:G)/_)}function P(G){var oe=l.toIndex(G);return S?wl(oe,0,A):oe}function Y(G){G!==T&&(R=T,T=G)}function K(G){return G?R:T}function Q(){return!ld(n.focus)||n.isNavigation}function ee(){return e.state.is([Ql,id])&&!!n.waitForTransition}return{mount:k,go:D,scroll:H,getNext:w,getPrev:N,getAdjacent:j,getEnd:V,setIndex:Y,getIndex:K,toIndex:W,toPage:U,toDest:P,hasFocus:Q,isBusy:ee}}var T5="http://www.w3.org/2000/svg",_5="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z",Uf=40;function A5(e,t,n){var a=an(e),o=a.on,i=a.bind,l=a.emit,u=n.classes,d=n.i18n,f=t.Elements,m=t.Controller,g=f.arrows,y=f.track,b=g,x=f.prev,S=f.next,w,N,T={};function A(){E(),o(or,R)}function R(){$(),A()}function E(){var H=n.arrows;H&&!(x&&S)&&q(),x&&S&&(Iu(T,{prev:x,next:S}),ku(b,H?"":"none"),Ua(b,N=Gv+"--"+n.direction),H&&(_(),D(),bt([x,S],pd,y.id),l(B_,x,S)))}function $(){a.destroy(),vs(b,N),w?(Si(g?[x,S]:b),x=S=null):Va([x,S],Vv)}function _(){o([Oo,Zl,Nn,Oi,Rp],D),i(S,"click",Xt(k,">")),i(x,"click",Xt(k,"<"))}function k(H){m.go(H,!0)}function q(){b=g||Dl("div",u.arrows),x=z(!0),S=z(!1),w=!0,ud(b,[x,S]),!g&&Ov(b,y)}function z(H){var O='<button class="'+u.arrow+" "+(H?u.prev:u.next)+'" type="button"><svg xmlns="'+T5+'" viewBox="0 0 '+Uf+" "+Uf+'" width="'+Uf+'" height="'+Uf+'" focusable="false"><path d="'+(n.arrowPath||_5)+'" />';return __(O)}function D(){if(x&&S){var H=e.index,O=m.getPrev(),j=m.getNext(),M=O>-1&&H<O?d.last:d.prev,I=j>-1&&H>j?d.first:d.next;x.disabled=O<0,S.disabled=j<0,bt(x,Xr,M),bt(S,Xr,I),l(q_,x,S,O,j)}}return{arrows:T,mount:A,destroy:$,update:D}}var D5=kv+"-interval";function j5(e,t,n){var a=an(e),o=a.on,i=a.bind,l=a.emit,u=Ah(n.interval,e.go.bind(e,">"),_),d=u.isPaused,f=t.Elements,m=t.Elements,g=m.root,y=m.toggle,b=n.autoplay,x,S,w=b==="pause";function N(){b&&(T(),y&&bt(y,pd,f.track.id),w||A(),$())}function T(){n.pauseOnHover&&i(g,"mouseenter mouseleave",function(q){x=q.type==="mouseenter",E()}),n.pauseOnFocus&&i(g,"focusin focusout",function(q){S=q.type==="focusin",E()}),y&&i(y,"click",function(){w?A():R(!0)}),o([Ts,_h,Nn],u.rewind),o(Ts,k)}function A(){d()&&t.Slides.isEnough()&&(u.start(!n.resetProgress),S=x=w=!1,$(),l(qv))}function R(q){q===void 0&&(q=!0),w=!!q,$(),d()||(u.pause(),l(Fv))}function E(){w||(x||S?R(!1):A())}function $(){y&&(bs(y,Ni,!w),bt(y,Xr,n.i18n[w?"play":"pause"]))}function _(q){var z=f.bar;z&&ya(z,"width",q*100+"%"),l(H_,q)}function k(q){var z=t.Slides.getAt(q);u.set(z&&+xa(z.slide,D5)||n.interval)}return{mount:N,destroy:u.cancel,play:A,pause:R,isPaused:d}}function R5(e,t,n){var a=an(e),o=a.on;function i(){n.cover&&(o(zv,Xt(u,!0)),o([Oo,or,Nn],Xt(l,!0)))}function l(d){t.Slides.forEach(function(f){var m=dd(f.container||f.slide,"img");m&&m.src&&u(d,m,f)})}function u(d,f,m){m.style("background",d?'center/cover no-repeat url("'+f.src+'")':"",!0),ku(f,d?"none":"")}return{mount:i,destroy:Xt(l,!1)}}var O5=10,I5=600,k5=.6,M5=1.5,P5=800;function L5(e,t,n){var a=an(e),o=a.on,i=a.emit,l=e.state.set,u=t.Move,d=u.getPosition,f=u.getLimit,m=u.exceededLimit,g=u.translate,y=e.is(Bl),b,x,S=1;function w(){o(Ts,R),o([or,Nn],E)}function N(_,k,q,z,D){var H=d();if(R(),q&&(!y||!m())){var O=t.Layout.sliderSize(),j=h0(_)*O*jp(gr(_)/O)||0;_=u.toPosition(t.Controller.toDest(_%O))+j}var M=D_(H,_,1);S=1,k=M?0:k||Dp(gr(_-H)/M5,P5),x=z,b=Ah(k,T,Xt(A,H,_,D),1),l(id),i(_h),b.start()}function T(){l(Pl),x&&x(),i(Oi)}function A(_,k,q,z){var D=d(),H=_+(k-_)*$(z),O=(H-D)*S;g(D+O),y&&!q&&m()&&(S*=k5,gr(O)<O5&&N(f(m(!0)),I5,!1,x,!0))}function R(){b&&b.cancel()}function E(){b&&!b.isPaused()&&(R(),T())}function $(_){var k=n.easingFunc;return k?k(_):1-Math.pow(1-_,4)}return{mount:w,destroy:R,scroll:N,cancel:E}}var El={passive:!1,capture:!0};function B5(e,t,n){var a=an(e),o=a.on,i=a.emit,l=a.bind,u=a.unbind,d=e.state,f=t.Move,m=t.Scroll,g=t.Controller,y=t.Elements.track,b=t.Media.reduce,x=t.Direction,S=x.resolve,w=x.orient,N=f.getPosition,T=f.exceededLimit,A,R,E,$,_,k=!1,q,z,D;function H(){l(y,Gy,f0,El),l(y,Yy,f0,El),l(y,aA,j,El),l(y,"click",F,{capture:!0}),l(y,"dragstart",ys),o([Oo,or],O)}function O(){var ge=n.drag;ae(!ge),$=ge==="free"}function j(ge){if(q=!1,!z){var fe=Se(ge);me(ge.target)&&(fe||!ge.button)&&(g.isBusy()?ys(ge,!0):(D=fe?y:window,_=d.is([Ql,id]),E=null,l(D,Gy,M,El),l(D,Yy,I,El),f.cancel(),m.cancel(),V(ge)))}}function M(ge){if(d.is(lp)||(d.set(lp),i(M_)),ge.cancelable)if(_){f.translate(A+ye(Q(ge)));var fe=ee(ge)>Uw,qe=k!==(k=T());(fe||qe)&&V(ge),q=!0,i(P_),ys(ge)}else P(ge)&&(_=U(ge),ys(ge))}function I(ge){d.is(lp)&&(d.set(Pl),i(L_)),_&&(W(ge),ys(ge)),u(D,Gy,M),u(D,Yy,I),_=!1}function F(ge){!z&&q&&ys(ge,!0)}function V(ge){E=R,R=ge,A=N()}function W(ge){var fe=Y(ge),qe=K(fe),re=n.rewind&&n.rewindByDrag;b(!1),$?g.scroll(qe,0,n.snap):e.is(hd)?g.go(w(h0(fe))<0?re?"<":"-":re?">":"+"):e.is(Bl)&&k&&re?g.go(T(!0)?">":"<"):g.go(g.toDest(qe),!0),b(!0)}function U(ge){var fe=n.dragMinThreshold,qe=ju(fe),re=qe&&fe.mouse||0,xe=(qe?fe.touch:+fe)||10;return gr(Q(ge))>(Se(ge)?xe:re)}function P(ge){return gr(Q(ge))>gr(Q(ge,!0))}function Y(ge){if(e.is(Jl)||!k){var fe=ee(ge);if(fe&&fe<Uw)return Q(ge)/fe}return 0}function K(ge){return N()+h0(ge)*wo(gr(ge)*(n.flickPower||600),$?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}function Q(ge,fe){return oe(ge,fe)-oe(G(ge),fe)}function ee(ge){return p0(ge)-p0(G(ge))}function G(ge){return R===ge&&E||R}function oe(ge,fe){return(Se(ge)?ge.changedTouches[0]:ge)["page"+S(fe?"Y":"X")]}function ye(ge){return ge/(k&&e.is(Bl)?b5:1)}function me(ge){var fe=n.noDrag;return!Ru(ge,"."+J_+", ."+kh)&&(!fe||!Ru(ge,fe))}function Se(ge){return typeof TouchEvent<"u"&&ge instanceof TouchEvent}function Be(){return _}function ae(ge){z=ge}return{mount:H,disable:ae,isDragging:Be}}var q5={Spacebar:" ",Right:Rh,Left:jh,Up:G_,Down:Y_};function Yv(e){return e=No(e)?e:e.key,q5[e]||e}var Vw="keydown";function F5(e,t,n){var a=an(e),o=a.on,i=a.bind,l=a.unbind,u=e.root,d=t.Direction.resolve,f,m;function g(){y(),o(or,b),o(or,y),o(Ts,S)}function y(){var N=n.keyboard;N&&(f=N==="global"?window:u,i(f,Vw,w))}function b(){l(f,Vw)}function x(N){m=N}function S(){var N=m;m=!0,N_(function(){m=N})}function w(N){if(!m){var T=Yv(N);T===d(jh)?e.go("<"):T===d(Rh)&&e.go(">")}}return{mount:g,destroy:b,disable:x}}var Su=kv+"-lazy",dp=Su+"-srcset",z5="["+Su+"], ["+dp+"]";function H5(e,t,n){var a=an(e),o=a.on,i=a.off,l=a.bind,u=a.emit,d=n.lazyLoad==="sequential",f=[Zl,Oi],m=[];function g(){n.lazyLoad&&(y(),o(Nn,y))}function y(){$s(m),b(),d?N():(i(f),o(f,x),x())}function b(){t.Slides.forEach(function(T){Iv(T.slide,z5).forEach(function(A){var R=xa(A,Su),E=xa(A,dp);if(R!==A.src||E!==A.srcset){var $=n.classes.spinner,_=A.parentElement,k=dd(_,"."+$)||Dl("span",$,_);m.push([A,T,k]),A.src||ku(A,"none")}})})}function x(){m=m.filter(function(T){var A=n.perPage*((n.preloadPages||1)+1)-1;return T[1].isWithin(e.index,A)?S(T):!0}),m.length||i(f)}function S(T){var A=T[0];Ua(T[1].slide,b0),l(A,"load error",Xt(w,T)),bt(A,"src",xa(A,Su)),bt(A,"srcset",xa(A,dp)),Va(A,Su),Va(A,dp)}function w(T,A){var R=T[0],E=T[1];vs(E.slide,b0),A.type!=="error"&&(Si(T[2]),ku(R,""),u(zv,R,E),u(Ll)),d&&N()}function N(){m.length&&S(m.shift())}return{mount:g,destroy:Xt($s,m),check:x}}function U5(e,t,n){var a=an(e),o=a.on,i=a.emit,l=a.bind,u=t.Slides,d=t.Elements,f=t.Controller,m=f.hasFocus,g=f.getIndex,y=f.go,b=t.Direction.resolve,x=d.pagination,S=[],w,N;function T(){A(),o([or,Nn,Rp],T);var z=n.pagination;x&&ku(x,z?"":"none"),z&&(o([Ts,_h,Oi],q),R(),q(),i(F_,{list:w,items:S},k(e.index)))}function A(){w&&(Si(x?Ro(w.children):w),vs(w,N),$s(S),w=null),a.destroy()}function R(){var z=e.length,D=n.classes,H=n.i18n,O=n.perPage,j=m()?f.getEnd()+1:Mu(z/O);w=x||Dl("ul",D.pagination,d.track.parentElement),Ua(w,N=Mh+"--"+_()),bt(w,Cs,"tablist"),bt(w,Xr,H.select),bt(w,Uv,_()===Oh?"vertical":"");for(var M=0;M<j;M++){var I=Dl("li",null,w),F=Dl("button",{class:D.page,type:"button"},I),V=u.getIn(M).map(function(U){return U.slide.id}),W=!m()&&O>1?H.pageX:H.slideX;l(F,"click",Xt(E,M)),n.paginationKeyboard&&l(F,"keydown",Xt($,M)),bt(I,Cs,"presentation"),bt(F,Cs,"tab"),bt(F,pd,V.join(" ")),bt(F,Xr,m0(W,M+1)),bt(F,jl,-1),S.push({li:I,button:F,page:M})}}function E(z){y(">"+z,!0)}function $(z,D){var H=S.length,O=Yv(D),j=_(),M=-1;O===b(Rh,!1,j)?M=++z%H:O===b(jh,!1,j)?M=(--z+H)%H:O==="Home"?M=0:O==="End"&&(M=H-1);var I=S[M];I&&(T_(I.button),y(">"+M),ys(D,!0))}function _(){return n.paginationDirection||n.direction}function k(z){return S[f.toPage(z)]}function q(){var z=k(g(!0)),D=k(g());if(z){var H=z.button;vs(H,Ni),Va(H,Bw),bt(H,jl,-1)}if(D){var O=D.button;Ua(O,Ni),bt(O,Bw,!0),bt(O,jl,"")}i(z_,{list:w,items:S},z,D)}return{items:S,mount:T,destroy:A,getAt:k,update:q}}var V5=[" ","Enter"];function G5(e,t,n){var a=n.isNavigation,o=n.slideFocus,i=[];function l(){e.splides.forEach(function(x){x.isParent||(f(e,x.splide),f(x.splide,e))}),a&&m()}function u(){i.forEach(function(x){x.destroy()}),$s(i)}function d(){u(),l()}function f(x,S){var w=an(x);w.on(Ts,function(N,T,A){S.go(S.is(Jl)?A:N)}),i.push(w)}function m(){var x=an(e),S=x.on;S(Pv,y),S(U_,b),S([Oo,or],g),i.push(x),x.emit(Bv,e.splides)}function g(){bt(t.Elements.list,Uv,n.direction===Oh?"vertical":"")}function y(x){e.go(x.index)}function b(x,S){Rv(V5,Yv(S))&&(y(x),ys(S))}return{setup:Xt(t.Media.set,{slideFocus:ld(o)?a:o},!0),mount:l,destroy:u,remount:d}}function Y5(e,t,n){var a=an(e),o=a.bind,i=0;function l(){n.wheel&&o(t.Elements.track,"wheel",u,El)}function u(f){if(f.cancelable){var m=f.deltaY,g=m<0,y=p0(f),b=n.wheelMinThreshold||0,x=n.wheelSleep||0;gr(m)>b&&y-i>x&&(e.go(g?"<":">"),i=y),d(g)&&ys(f)}}function d(f){return!n.releaseWheel||e.state.is(Ql)||t.Controller.getAdjacent(f)!==-1}return{mount:l}}var W5=90;function X5(e,t,n){var a=an(e),o=a.on,i=t.Elements.track,l=n.live&&!n.isNavigation,u=Dl("span",p5),d=Ah(W5,Xt(m,!1));function f(){l&&(y(!t.Autoplay.isPaused()),bt(i,zw,!0),u.textContent="…",o(qv,Xt(y,!0)),o(Fv,Xt(y,!1)),o([Zl,Oi],Xt(m,!0)))}function m(b){bt(i,Fw,b),b?(ud(i,u),d.start()):(Si(u),d.cancel())}function g(){Va(i,[qw,zw,Fw]),Si(u)}function y(b){l&&bt(i,qw,b?"off":"polite")}return{mount:f,disable:y,destroy:g}}var K5=Object.freeze({__proto__:null,Media:a5,Direction:s5,Elements:v5,Slides:C5,Layout:S5,Clones:w5,Move:E5,Controller:$5,Arrows:A5,Autoplay:j5,Cover:R5,Scroll:L5,Drag:B5,Keyboard:F5,LazyLoad:H5,Pagination:U5,Sync:G5,Wheel:Y5,Live:X5}),Q5={prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},Z5={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:g5,i18n:Q5,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function J5(e,t,n){var a=t.Slides;function o(){an(e).on([Oo,Nn],i)}function i(){a.forEach(function(u){u.style("transform","translateX(-"+100*u.index+"%)")})}function l(u,d){a.style("transition","opacity "+n.speed+"ms "+n.easing),N_(d)}return{mount:o,start:l,cancel:f0}}function eB(e,t,n){var a=t.Move,o=t.Controller,i=t.Scroll,l=t.Elements.list,u=Xt(ya,l,"transition"),d;function f(){an(e).bind(l,"transitionend",function(b){b.target===l&&d&&(g(),d())})}function m(b,x){var S=a.toPosition(b,!0),w=a.getPosition(),N=y(b);gr(S-w)>=1&&N>=1?n.useScroll?i.scroll(S,N,!1,x):(u("transform "+N+"ms "+n.easing),a.translate(S,!0),d=x):(a.jump(b),x())}function g(){u(""),i.cancel()}function y(b){var x=n.rewindSpeed;if(e.is(Bl)&&x){var S=o.getIndex(!0),w=o.getEnd();if(S===0&&b>=w||S>=w&&b===0)return x}return n.speed}return{mount:f,start:m,cancel:g}}var tB=(function(){function e(n,a){this.event=an(),this.Components={},this.state=n5($l),this.splides=[],this._o={},this._E={};var o=No(n)?A_(document,n):n;Cu(o,o+" is invalid."),this.root=o,a=yo({label:xa(o,Xr)||"",labelledby:xa(o,Hv)||""},Z5,e.defaults,a||{});try{yo(a,JSON.parse(xa(o,kv)))}catch{Cu(!1,"Invalid JSON")}this._o=Object.create(yo({},a))}var t=e.prototype;return t.mount=function(a,o){var i=this,l=this.state,u=this.Components;Cu(l.is([$l,Ap]),"Already mounted!"),l.set($l),this._C=u,this._T=o||this._T||(this.is(hd)?J5:eB),this._E=a||this._E;var d=Iu({},K5,this._E,{Transition:this._T});return vi(d,function(f,m){var g=f(i,u,i._o);u[m]=g,g.setup&&g.setup()}),vi(u,function(f){f.mount&&f.mount()}),this.emit(Oo),Ua(this.root,h5),l.set(Pl),this.emit(g0),this},t.sync=function(a){return this.splides.push({splide:a}),a.splides.push({splide:this,isParent:!0}),this.state.is(Pl)&&(this._C.Sync.remount(),a.Components.Sync.remount()),this},t.go=function(a){return this._C.Controller.go(a),this},t.on=function(a,o){return this.event.on(a,o),this},t.off=function(a){return this.event.off(a),this},t.emit=function(a){var o;return(o=this.event).emit.apply(o,[a].concat(Ro(arguments,1))),this},t.add=function(a,o){return this._C.Slides.add(a,o),this},t.remove=function(a){return this._C.Slides.remove(a),this},t.is=function(a){return this._o.type===a},t.refresh=function(){return this.emit(Nn),this},t.destroy=function(a){a===void 0&&(a=!0);var o=this.event,i=this.state;return i.is($l)?an(this).on(g0,this.destroy.bind(this,a)):(vi(this._C,function(l){l.destroy&&l.destroy(a)},!0),o.emit(Lv),o.destroy(),a&&$s(this.splides),i.set(Ap)),this},Q6(e,[{key:"options",get:function(){return this._o},set:function(a){this._C.Media.set(a,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}]),e})(),Wv=tB;Wv.defaults={};Wv.STATES=J6;var Gw=[[Oo,"onMounted"],[g0,"onReady"],[Ts,"onMove"],[Zl,"onMoved"],[Pv,"onClick"],[R_,"onActive"],[O_,"onInactive"],[I_,"onVisible"],[k_,"onHidden"],[Nn,"onRefresh"],[or,"onUpdated"],[Ll,"onResize"],[Th,"onResized"],[M_,"onDrag"],[P_,"onDragging"],[L_,"onDragged"],[_h,"onScroll"],[Oi,"onScrolled"],[Lv,"onDestroy"],[B_,"onArrowsMounted"],[q_,"onArrowsUpdated"],[F_,"onPaginationMounted"],[z_,"onPaginationUpdated"],[Bv,"onNavigationMounted"],[qv,"onAutoplayPlay"],[H_,"onAutoplayPlaying"],[Fv,"onAutoplayPause"],[zv,"onLazyLoadLoaded"]];function Xv(...e){return e.filter(Boolean).join(" ")}function Op(e){return e!==null&&typeof e=="object"}function v0(e,t){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&!e.some((n,a)=>!v0(n,t[a]));if(Op(e)&&Op(t)){const n=Object.keys(e),a=Object.keys(t);return n.length===a.length&&!n.some(o=>!Object.prototype.hasOwnProperty.call(t,o)||!v0(e[o],t[o]))}return e===t}function nB(e,t){return e.length===t.length&&!e.some((n,a)=>n!==t[a])}function rB(e,t){if(e){const n=Object.keys(e);for(let a=0;a<n.length;a++){const o=n[a];if(o!=="__proto__"&&t(e[o],o)===!1)break}}return e}function x0(e,t){const n=e;return rB(t,(a,o)=>{Array.isArray(a)?n[o]=a.slice():Op(a)?n[o]=x0(Op(n[o])?n[o]:{},a):n[o]=a}),n}var aB=({children:e,className:t,...n})=>$t.createElement("div",{className:Xv("splide__track",t),...n},$t.createElement("ul",{className:"splide__list"},e)),Ip=class extends $t.Component{constructor(){super(...arguments),this.splideRef=$t.createRef(),this.slides=[]}componentDidMount(){const{options:e,extensions:t,transition:n}=this.props,{current:a}=this.splideRef;a&&(this.splide=new Wv(a,e),this.bind(this.splide),this.splide.mount(t,n),this.options=x0({},e||{}),this.slides=this.getSlides())}componentWillUnmount(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}componentDidUpdate(){if(!this.splide)return;const{options:e}=this.props;e&&!v0(this.options,e)&&(this.splide.options=e,this.options=x0({},e));const t=this.getSlides();nB(this.slides,t)||(this.splide.refresh(),this.slides=t)}sync(e){var t;(t=this.splide)==null||t.sync(e)}go(e){var t;(t=this.splide)==null||t.go(e)}getSlides(){var e;if(this.splide){const t=(e=this.splide.Components.Elements)==null?void 0:e.list.children;return t&&Array.prototype.slice.call(t)||[]}return[]}bind(e){Gw.forEach(([t,n])=>{const a=this.props[n];typeof a=="function"&&e.on(t,(...o)=>{a(e,...o)})})}omit(e,t){return t.forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&delete e[n]}),e}render(){const{className:e,tag:t="div",hasTrack:n=!0,children:a,...o}=this.props;return $t.createElement(t,{className:Xv("splide",e),ref:this.splideRef,...this.omit(o,["options",...Gw.map(i=>i[1])])},n?$t.createElement(aB,null,a):a)}},kp=({children:e,className:t,...n})=>$t.createElement("li",{className:Xv("splide__slide",t),...n},e);/*!
 * Splide.js
 * Version  : 4.1.3
 * License  : MIT
 * Copyright: 2022 Naotoshi Fujita
 *//*!
 * Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 * Copyright 2025 Fonticons, Inc.
 */var sA={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32z"]},oA={prefix:"fas",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M48 64c-26.5 0-48 21.5-48 48 0 15.1 7.1 29.3 19.2 38.4l208 156c17.1 12.8 40.5 12.8 57.6 0l208-156c12.1-9.1 19.2-23.3 19.2-38.4 0-26.5-21.5-48-48-48L48 64zM0 196L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-188-198.4 148.8c-34.1 25.6-81.1 25.6-115.2 0L0 196z"]},sB={prefix:"fas",iconName:"plane-arrival",icon:[576,512,[128748],"f5af","M386.6 193.1L265.9 3.7c-4.8-7.6-12.6-12.8-21.4-14.3l-43.1-7.6c-10.8-1.9-20.2 7.3-18.6 18.1l24 161.6-105-18.5-33.8-61.8C64.5 74.7 58.2 70.2 51.1 69L34 66c-9.8-1.7-18.8 5.9-18.8 15.8l.6 106.3c.2 30.9 22.4 57.3 52.9 62.7l13.5 2.4 0 0 417.6 73.6c30.5 5.4 59.5-15 64.9-45.4s-15-59.5-45.4-64.9L386.6 193.1zM224 384a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm131.2-15.3a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM32 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l512 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 448z"]},oB={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376C296.3 401.1 253.9 416 208 416 93.1 416 0 322.9 0 208S93.1 0 208 0 416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},ec=oB,iB={prefix:"fas",iconName:"person-hiking",icon:[448,512,["hiking"],"f6ec","M192-32a56 56 0 1 1 0 112 56 56 0 1 1 0-112zM128 173.6c0-34 27.6-61.6 61.6-61.6 20.3 0 39.7 8.1 54 22.4l48.2 48.2c6 6 14.1 9.4 22.6 9.4l37.5 0c5.8 0 11.3 1.6 16 4.3l0-76.3c0-13.3 10.7-24 24-24s24 10.7 24 24l0 400c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-268.3c-4.7 2.7-10.2 4.3-16 4.3l-37.5 0c-25.5 0-49.9-10.1-67.9-28.1l-6.6-6.6 0 109.2 34.5 29.6c17.7 15.2 29.3 36.2 32.6 59.3l12.6 88.1c2.5 17.5-9.7 33.7-27.2 36.2s-33.7-9.7-36.2-27.2l-12.6-88.1c-1.1-7.7-5-14.7-10.9-19.8l-71.4-61.2c-21.3-18.2-33.5-44.9-33.5-72.9l0-101zm-4.8 203.7c2.3 2.3 4.7 4.4 7.1 6.5l44.9 38.5c-3.6 8.4-8.5 16.3-14.4 23.4L88.6 532.5c-11.3 13.6-31.5 15.4-45.1 4.1s-15.4-31.5-4.1-45.1l72.3-86.7c2.6-3.1 4.5-6.6 5.8-10.4l5.7-17.1zM0 160c0-35.3 28.7-64 64-64 17.7 0 32 14.3 32 32l0 128c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-96z"]},lB={prefix:"fas",iconName:"plane-departure",icon:[576,512,[128747],"f5b0","M372 143.9L172.7 40.2c-8-4.1-17.3-4.8-25.7-1.7l-41.1 15c-10.3 3.7-13.8 16.4-7.1 25L200.3 206.4 100.1 242.8 40 206.2c-6.2-3.8-13.8-4.5-20.7-2.1L3 210.1c-9.4 3.4-13.4 14.5-8.3 23.1l53.6 91.8c15.6 26.7 48.1 38.4 77.1 27.8l12.9-4.7 0 0 398.4-145c29.1-10.6 44-42.7 33.5-71.8s-42.7-44-71.8-33.5L372 143.9zM32.2 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l512 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-512 0z"]},Yw={prefix:"fas",iconName:"hotel",icon:[512,512,[127976],"f594","M16 24C16 10.7 26.7 0 40 0L472 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-8 0 0 416 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24L40 512c-13.3 0-24-10.7-24-24s10.7-24 24-24l8 0 0-416-8 0C26.7 48 16 37.3 16 24zm208 88l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zM128 96c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm96 112l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zM352 96c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM112 208l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm240-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM288 384l43.8 0c9.9 0 17.5-9 14-18.2-13.8-36.1-48.8-61.8-89.7-61.8s-75.9 25.7-89.7 61.8c-3.5 9.2 4.1 18.2 14 18.2l43.8 0 0 80 64 0 0-80z"]},cB={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M256.4 0c-17.7 0-32 14.3-32 32l0 32-160 0c-17.7 0-32 14.3-32 32l0 64c0 17.7 14.3 32 32 32l160 0 0 64-153.4 0c-4.2 0-8.3 1.7-11.3 4.7l-48 48c-6.2 6.2-6.2 16.4 0 22.6l48 48c3 3 7.1 4.7 11.3 4.7l153.4 0 0 96c0 17.7 14.3 32 32 32s32-14.3 32-32l0-96 160 0c17.7 0 32-14.3 32-32l0-64c0-17.7-14.3-32-32-32l-160 0 0-64 153.4 0c4.2 0 8.3-1.7 11.3-4.7l48-48c6.2-6.2 6.2-16.4 0-22.6l-48-48c-3-3-7.1-4.7-11.3-4.7l-153.4 0 0-32c0-17.7-14.3-32-32-32z"]},Wy={prefix:"fas",iconName:"image",icon:[448,512,[],"f03e","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm64 80a48 48 0 1 1 0 96 48 48 0 1 1 0-96zM272 224c8.4 0 16.1 4.4 20.5 11.5l88 144c4.5 7.4 4.7 16.7 .5 24.3S368.7 416 360 416L88 416c-8.9 0-17.2-5-21.3-12.9s-3.5-17.5 1.6-24.8l56-80c4.5-6.4 11.8-10.2 19.7-10.2s15.2 3.8 19.7 10.2l26.4 37.8 61.4-100.5c4.4-7.1 12.1-11.5 20.5-11.5z"]},Xy={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512a256 256 0 1 1 0-512 256 256 0 1 1 0 512zm0-192a32 32 0 1 0 0 64 32 32 0 1 0 0-64zm0-192c-18.2 0-32.7 15.5-31.4 33.7l7.4 104c.9 12.6 11.4 22.3 23.9 22.3 12.6 0 23-9.7 23.9-22.3l7.4-104c1.3-18.2-13.1-33.7-31.4-33.7z"]},Ky={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 17.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 117.3 160 488c0 17.7 14.3 32 32 32s32-14.3 32-32l0-370.7 105.4 105.4c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},uB={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]},Or=uB,dB={prefix:"fas",iconName:"plane",icon:[576,512,[],"f072","M520 200c30.9 0 56 25.1 56 56s-25.1 56-56 56l-127.3 0-159.2 173.6c-6.1 6.6-14.6 10.4-23.6 10.4l-43.7 0c-10.9 0-18.6-10.7-15.2-21.1l54.3-162.9-99.7 0-52.8 66c-3 3.8-7.6 6-12.5 6l-19.8 0c-10.4 0-18-9.8-15.5-19.9L32 256 5 147.9C2.4 137.8 10.1 128 20.5 128l19.8 0c4.9 0 9.5 2.2 12.5 6l52.8 66 99.7 0-54.3-162.9C147.6 26.7 155.3 16 166.2 16l43.7 0c9 0 17.5 3.8 23.6 10.4L392.7 200 520 200z"]},fB={prefix:"fas",iconName:"circle-right",icon:[512,512,[61838,"arrow-alt-circle-right"],"f35a","M0 256a256 256 0 1 0 512 0 256 256 0 1 0 -512 0zm387.3 11.3l-104 104c-4.6 4.6-11.5 5.9-17.4 3.5S256 366.5 256 360l0-56-96 0c-17.7 0-32-14.3-32-32l0-32c0-17.7 14.3-32 32-32l96 0 0-56c0-6.5 3.9-12.3 9.9-14.8s12.9-1.1 17.4 3.5l104 104c6.2 6.2 6.2 16.4 0 22.6z"]},pB={prefix:"fas",iconName:"phone",icon:[512,512,[128222,128379],"f095","M160.2 25C152.3 6.1 131.7-3.9 112.1 1.4l-5.5 1.5c-64.6 17.6-119.8 80.2-103.7 156.4 37.1 175 174.8 312.7 349.8 349.8 76.3 16.2 138.8-39.1 156.4-103.7l1.5-5.5c5.4-19.7-4.7-40.3-23.5-48.1l-97.3-40.5c-16.5-6.9-35.6-2.1-47 11.8l-38.6 47.2C233.9 335.4 177.3 277 144.8 205.3L189 169.3c13.9-11.3 18.6-30.4 11.8-47L160.2 25z"]},Ss={prefix:"fas",iconName:"angle-down",icon:[384,512,[8964],"f107","M169.4 374.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 306.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},Mp={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M309.5-18.9c-4.1-8-12.4-13.1-21.4-13.1s-17.3 5.1-21.4 13.1L193.1 125.3 33.2 150.7c-8.9 1.4-16.3 7.7-19.1 16.3s-.5 18 5.8 24.4l114.4 114.5-25.2 159.9c-1.4 8.9 2.3 17.9 9.6 23.2s16.9 6.1 25 2L288.1 417.6 432.4 491c8 4.1 17.7 3.3 25-2s11-14.2 9.6-23.2L441.7 305.9 556.1 191.4c6.4-6.4 8.6-15.8 5.8-24.4s-10.1-14.9-19.1-16.3L383 125.3 309.5-18.9z"]},iA={prefix:"fas",iconName:"lock",icon:[384,512,[128274],"f023","M128 96l0 64 128 0 0-64c0-35.3-28.7-64-64-64s-64 28.7-64 64zM64 160l0-64C64 25.3 121.3-32 192-32S320 25.3 320 96l0 64c35.3 0 64 28.7 64 64l0 224c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 224c0-35.3 28.7-64 64-64z"]},lA={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 160-160 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l160 0 0 160c0 17.7 14.3 32 32 32s32-14.3 32-32l0-160 160 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-160 0 0-160z"]},Kv={prefix:"fas",iconName:"angle-up",icon:[384,512,[8963],"f106","M169.4 137.4c12.5-12.5 32.8-12.5 45.3 0l160 160c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L192 205.3 54.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l160-160z"]},Qy={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 502.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 402.7 224 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 370.7-105.4-105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]},cA={prefix:"fas",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M0 188.6C0 84.4 86 0 192 0S384 84.4 384 188.6c0 119.3-120.2 262.3-170.4 316.8-11.8 12.8-31.5 12.8-43.3 0-50.2-54.5-170.4-197.5-170.4-316.8zM192 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128z"]},uA={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},hB={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M65.9 228.5c13.3-93 93.4-164.5 190.1-164.5 53 0 101 21.5 135.8 56.2 .2 .2 .4 .4 .6 .6l7.6 7.2-47.9 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l128 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 53.4-11.3-10.7C390.5 28.6 326.5 0 256 0 127 0 20.3 95.4 2.6 219.5 .1 237 12.2 253.2 29.7 255.7s33.7-9.7 36.2-27.1zm443.5 64c2.5-17.5-9.7-33.7-27.1-36.2s-33.7 9.7-36.2 27.1c-13.3 93-93.4 164.5-190.1 164.5-53 0-101-21.5-135.8-56.2-.2-.2-.4-.4-.6-.6l-7.6-7.2 47.9 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 320c-8.5 0-16.7 3.4-22.7 9.5S-.1 343.7 0 352.3l1 127c.1 17.7 14.6 31.9 32.3 31.7S65.2 496.4 65 478.7l-.4-51.5 10.7 10.1c46.3 46.1 110.2 74.7 180.7 74.7 129 0 235.7-95.4 253.4-219.5z"]},Qv=hB;/*!
 * Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 * Copyright 2025 Fonticons, Inc.
 */function C0(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}function mB(e){if(Array.isArray(e))return e}function gB(e){if(Array.isArray(e))return C0(e)}function yB(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bB(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,dA(a.key),a)}}function vB(e,t,n){return t&&bB(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function fp(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Zv(e))||t){n&&(e=n);var a=0,o=function(){};return{s:o,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(d){throw d},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,l=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var d=n.next();return l=d.done,d},e:function(d){u=!0,i=d},f:function(){try{l||n.return==null||n.return()}finally{if(u)throw i}}}}function yt(e,t,n){return(t=dA(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function CB(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var a,o,i,l,u=[],d=!0,f=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;d=!1}else for(;!(d=(a=i.call(n)).done)&&(u.push(a.value),u.length!==t);d=!0);}catch(m){f=!0,o=m}finally{try{if(!d&&n.return!=null&&(l=n.return(),Object(l)!==l))return}finally{if(f)throw o}}return u}}function SB(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function NB(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ww(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,a)}return n}function Ie(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ww(Object(n),!0).forEach(function(a){yt(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ww(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Ph(e,t){return mB(e)||CB(e,t)||Zv(e,t)||SB()}function $a(e){return gB(e)||xB(e)||Zv(e)||NB()}function wB(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var a=n.call(e,t);if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function dA(e){var t=wB(e,"string");return typeof t=="symbol"?t:t+""}function Pp(e){"@babel/helpers - typeof";return Pp=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pp(e)}function Zv(e,t){if(e){if(typeof e=="string")return C0(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?C0(e,t):void 0}}var Xw=function(){},Jv={},fA={},pA=null,hA={mark:Xw,measure:Xw};try{typeof window<"u"&&(Jv=window),typeof document<"u"&&(fA=document),typeof MutationObserver<"u"&&(pA=MutationObserver),typeof performance<"u"&&(hA=performance)}catch{}var EB=Jv.navigator||{},Kw=EB.userAgent,Qw=Kw===void 0?"":Kw,Eo=Jv,Jt=fA,Zw=pA,Vf=hA;Eo.document;var Is=!!Jt.documentElement&&!!Jt.head&&typeof Jt.addEventListener=="function"&&typeof Jt.createElement=="function",mA=~Qw.indexOf("MSIE")||~Qw.indexOf("Trident/"),Zy,$B=/fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,TB=/Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i,gA={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"},slab:{"fa-regular":"regular",faslr:"regular"},"slab-press":{"fa-regular":"regular",faslpr:"regular"},thumbprint:{"fa-light":"light",fatl:"light"},whiteboard:{"fa-semibold":"semibold",fawsb:"semibold"},notdog:{"fa-solid":"solid",fans:"solid"},"notdog-duo":{"fa-solid":"solid",fands:"solid"},etch:{"fa-solid":"solid",faes:"solid"},jelly:{"fa-regular":"regular",fajr:"regular"},"jelly-fill":{"fa-regular":"regular",fajfr:"regular"},"jelly-duo":{"fa-regular":"regular",fajdr:"regular"},chisel:{"fa-regular":"regular",facr:"regular"},utility:{"fa-semibold":"semibold",fausb:"semibold"},"utility-duo":{"fa-semibold":"semibold",faudsb:"semibold"},"utility-fill":{"fa-semibold":"semibold",faufsb:"semibold"}},_B={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},yA=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],qn="classic",md="duotone",bA="sharp",vA="sharp-duotone",xA="chisel",CA="etch",SA="jelly",NA="jelly-duo",wA="jelly-fill",EA="notdog",$A="notdog-duo",TA="slab",_A="slab-press",AA="thumbprint",DA="utility",jA="utility-duo",RA="utility-fill",OA="whiteboard",AB="Classic",DB="Duotone",jB="Sharp",RB="Sharp Duotone",OB="Chisel",IB="Etch",kB="Jelly",MB="Jelly Duo",PB="Jelly Fill",LB="Notdog",BB="Notdog Duo",qB="Slab",FB="Slab Press",zB="Thumbprint",HB="Utility",UB="Utility Duo",VB="Utility Fill",GB="Whiteboard",IA=[qn,md,bA,vA,xA,CA,SA,NA,wA,EA,$A,TA,_A,AA,DA,jA,RA,OA];Zy={},yt(yt(yt(yt(yt(yt(yt(yt(yt(yt(Zy,qn,AB),md,DB),bA,jB),vA,RB),xA,OB),CA,IB),SA,kB),NA,MB),wA,PB),EA,LB),yt(yt(yt(yt(yt(yt(yt(yt(Zy,$A,BB),TA,qB),_A,FB),AA,zB),DA,HB),jA,UB),RA,VB),OA,GB);var YB={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"},slab:{400:"faslr"},"slab-press":{400:"faslpr"},whiteboard:{600:"fawsb"},thumbprint:{300:"fatl"},notdog:{900:"fans"},"notdog-duo":{900:"fands"},etch:{900:"faes"},chisel:{400:"facr"},jelly:{400:"fajr"},"jelly-fill":{400:"fajfr"},"jelly-duo":{400:"fajdr"},utility:{600:"fausb"},"utility-duo":{600:"faudsb"},"utility-fill":{600:"faufsb"}},WB={"Font Awesome 7 Free":{900:"fas",400:"far"},"Font Awesome 7 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 7 Brands":{400:"fab",normal:"fab"},"Font Awesome 7 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 7 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 7 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"},"Font Awesome 7 Jelly":{400:"fajr",normal:"fajr"},"Font Awesome 7 Jelly Fill":{400:"fajfr",normal:"fajfr"},"Font Awesome 7 Jelly Duo":{400:"fajdr",normal:"fajdr"},"Font Awesome 7 Slab":{400:"faslr",normal:"faslr"},"Font Awesome 7 Slab Press":{400:"faslpr",normal:"faslpr"},"Font Awesome 7 Thumbprint":{300:"fatl",normal:"fatl"},"Font Awesome 7 Notdog":{900:"fans",normal:"fans"},"Font Awesome 7 Notdog Duo":{900:"fands",normal:"fands"},"Font Awesome 7 Etch":{900:"faes",normal:"faes"},"Font Awesome 7 Chisel":{400:"facr",normal:"facr"},"Font Awesome 7 Whiteboard":{600:"fawsb",normal:"fawsb"},"Font Awesome 7 Utility":{600:"fausb",normal:"fausb"},"Font Awesome 7 Utility Duo":{600:"faudsb",normal:"faudsb"},"Font Awesome 7 Utility Fill":{600:"faufsb",normal:"faufsb"}},XB=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["chisel",{defaultShortPrefixId:"facr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["etch",{defaultShortPrefixId:"faes",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["jelly",{defaultShortPrefixId:"fajr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-duo",{defaultShortPrefixId:"fajdr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["jelly-fill",{defaultShortPrefixId:"fajfr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["notdog",{defaultShortPrefixId:"fans",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["notdog-duo",{defaultShortPrefixId:"fands",defaultStyleId:"solid",styleIds:["solid"],futureStyleIds:[],defaultFontWeight:900}],["slab",{defaultShortPrefixId:"faslr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["slab-press",{defaultShortPrefixId:"faslpr",defaultStyleId:"regular",styleIds:["regular"],futureStyleIds:[],defaultFontWeight:400}],["thumbprint",{defaultShortPrefixId:"fatl",defaultStyleId:"light",styleIds:["light"],futureStyleIds:[],defaultFontWeight:300}],["utility",{defaultShortPrefixId:"fausb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-duo",{defaultShortPrefixId:"faudsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["utility-fill",{defaultShortPrefixId:"faufsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}],["whiteboard",{defaultShortPrefixId:"fawsb",defaultStyleId:"semibold",styleIds:["semibold"],futureStyleIds:[],defaultFontWeight:600}]]),KB={chisel:{regular:"facr"},classic:{brands:"fab",light:"fal",regular:"far",solid:"fas",thin:"fat"},duotone:{light:"fadl",regular:"fadr",solid:"fad",thin:"fadt"},etch:{solid:"faes"},jelly:{regular:"fajr"},"jelly-duo":{regular:"fajdr"},"jelly-fill":{regular:"fajfr"},notdog:{solid:"fans"},"notdog-duo":{solid:"fands"},sharp:{light:"fasl",regular:"fasr",solid:"fass",thin:"fast"},"sharp-duotone":{light:"fasdl",regular:"fasdr",solid:"fasds",thin:"fasdt"},slab:{regular:"faslr"},"slab-press":{regular:"faslpr"},thumbprint:{light:"fatl"},utility:{semibold:"fausb"},"utility-duo":{semibold:"faudsb"},"utility-fill":{semibold:"faufsb"},whiteboard:{semibold:"fawsb"}},kA=["fak","fa-kit","fakd","fa-kit-duotone"],Jw={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},QB=["kit"],ZB="kit",JB="kit-duotone",e8="Kit",t8="Kit Duotone";yt(yt({},ZB,e8),JB,t8);var n8={kit:{"fa-kit":"fak"}},r8={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},a8={kit:{fak:"fa-kit"}},e2={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Jy,Gf={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},s8=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-thumbprint","fa-whiteboard","fa-notdog","fa-notdog-duo","fa-chisel","fa-etch","fa-jelly","fa-jelly-fill","fa-jelly-duo","fa-slab","fa-slab-press","fa-utility","fa-utility-duo","fa-utility-fill"],o8="classic",i8="duotone",l8="sharp",c8="sharp-duotone",u8="chisel",d8="etch",f8="jelly",p8="jelly-duo",h8="jelly-fill",m8="notdog",g8="notdog-duo",y8="slab",b8="slab-press",v8="thumbprint",x8="utility",C8="utility-duo",S8="utility-fill",N8="whiteboard",w8="Classic",E8="Duotone",$8="Sharp",T8="Sharp Duotone",_8="Chisel",A8="Etch",D8="Jelly",j8="Jelly Duo",R8="Jelly Fill",O8="Notdog",I8="Notdog Duo",k8="Slab",M8="Slab Press",P8="Thumbprint",L8="Utility",B8="Utility Duo",q8="Utility Fill",F8="Whiteboard";Jy={},yt(yt(yt(yt(yt(yt(yt(yt(yt(yt(Jy,o8,w8),i8,E8),l8,$8),c8,T8),u8,_8),d8,A8),f8,D8),p8,j8),h8,R8),m8,O8),yt(yt(yt(yt(yt(yt(yt(yt(Jy,g8,I8),y8,k8),b8,M8),v8,P8),x8,L8),C8,B8),S8,q8),N8,F8);var z8="kit",H8="kit-duotone",U8="Kit",V8="Kit Duotone";yt(yt({},z8,U8),H8,V8);var G8={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"},slab:{"fa-regular":"faslr"},"slab-press":{"fa-regular":"faslpr"},whiteboard:{"fa-semibold":"fawsb"},thumbprint:{"fa-light":"fatl"},notdog:{"fa-solid":"fans"},"notdog-duo":{"fa-solid":"fands"},etch:{"fa-solid":"faes"},jelly:{"fa-regular":"fajr"},"jelly-fill":{"fa-regular":"fajfr"},"jelly-duo":{"fa-regular":"fajdr"},chisel:{"fa-regular":"facr"},utility:{"fa-semibold":"fausb"},"utility-duo":{"fa-semibold":"faudsb"},"utility-fill":{"fa-semibold":"faufsb"}},Y8={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"],slab:["faslr"],"slab-press":["faslpr"],whiteboard:["fawsb"],thumbprint:["fatl"],notdog:["fans"],"notdog-duo":["fands"],etch:["faes"],jelly:["fajr"],"jelly-fill":["fajfr"],"jelly-duo":["fajdr"],chisel:["facr"],utility:["fausb"],"utility-duo":["faudsb"],"utility-fill":["faufsb"]},S0={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"},slab:{faslr:"fa-regular"},"slab-press":{faslpr:"fa-regular"},whiteboard:{fawsb:"fa-semibold"},thumbprint:{fatl:"fa-light"},notdog:{fans:"fa-solid"},"notdog-duo":{fands:"fa-solid"},etch:{faes:"fa-solid"},jelly:{fajr:"fa-regular"},"jelly-fill":{fajfr:"fa-regular"},"jelly-duo":{fajdr:"fa-regular"},chisel:{facr:"fa-regular"},utility:{fausb:"fa-semibold"},"utility-duo":{faudsb:"fa-semibold"},"utility-fill":{faufsb:"fa-semibold"}},W8=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands","fa-semibold"],MA=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","faslr","faslpr","fawsb","fatl","fans","fands","faes","fajr","fajfr","fajdr","facr","fausb","faudsb","faufsb"].concat(s8,W8),X8=["solid","regular","light","thin","duotone","brands","semibold"],PA=[1,2,3,4,5,6,7,8,9,10],K8=PA.concat([11,12,13,14,15,16,17,18,19,20]),Q8=["aw","fw","pull-left","pull-right"],Z8=[].concat($a(Object.keys(Y8)),X8,Q8,["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","inverse","layers","layers-bottom-left","layers-bottom-right","layers-counter","layers-text","layers-top-left","layers-top-right","li","pull-end","pull-start","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","width-auto","width-fixed",Gf.GROUP,Gf.SWAP_OPACITY,Gf.PRIMARY,Gf.SECONDARY]).concat(PA.map(function(e){return"".concat(e,"x")})).concat(K8.map(function(e){return"w-".concat(e)})),J8={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}},_s="___FONT_AWESOME___",N0=16,LA="fa",BA="svg-inline--fa",wi="data-fa-i2svg",w0="data-fa-pseudo-element",eq="data-fa-pseudo-element-pending",e1="data-prefix",t1="data-icon",t2="fontawesome-i2svg",tq="async",nq=["HTML","HEAD","STYLE","SCRIPT"],qA=["::before","::after",":before",":after"],FA=(function(){try{return!0}catch{return!1}})();function gd(e){return new Proxy(e,{get:function(n,a){return a in n?n[a]:n[qn]}})}var zA=Ie({},gA);zA[qn]=Ie(Ie(Ie(Ie({},{"fa-duotone":"duotone"}),gA[qn]),Jw.kit),Jw["kit-duotone"]);var rq=gd(zA),E0=Ie({},KB);E0[qn]=Ie(Ie(Ie(Ie({},{duotone:"fad"}),E0[qn]),e2.kit),e2["kit-duotone"]);var n2=gd(E0),$0=Ie({},S0);$0[qn]=Ie(Ie({},$0[qn]),a8.kit);var n1=gd($0),T0=Ie({},G8);T0[qn]=Ie(Ie({},T0[qn]),n8.kit);gd(T0);var aq=$B,HA="fa-layers-text",sq=TB,oq=Ie({},YB);gd(oq);var iq=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],eb=_B,lq=[].concat($a(QB),$a(Z8)),Nu=Eo.FontAwesomeConfig||{};function cq(e){var t=Jt.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function uq(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}if(Jt&&typeof Jt.querySelector=="function"){var dq=[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-search-pseudo-elements","searchPseudoElements"],["data-search-pseudo-elements-warnings","searchPseudoElementsWarnings"],["data-search-pseudo-elements-full-scan","searchPseudoElementsFullScan"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]];dq.forEach(function(e){var t=Ph(e,2),n=t[0],a=t[1],o=uq(cq(n));o!=null&&(Nu[a]=o)})}var UA={styleDefault:"solid",familyDefault:qn,cssPrefix:LA,replacementClass:BA,autoReplaceSvg:!0,autoAddCss:!0,searchPseudoElements:!1,searchPseudoElementsWarnings:!0,searchPseudoElementsFullScan:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Nu.familyPrefix&&(Nu.cssPrefix=Nu.familyPrefix);var ql=Ie(Ie({},UA),Nu);ql.autoReplaceSvg||(ql.observeMutations=!1);var Qe={};Object.keys(UA).forEach(function(e){Object.defineProperty(Qe,e,{enumerable:!0,set:function(n){ql[e]=n,wu.forEach(function(a){return a(Qe)})},get:function(){return ql[e]}})});Object.defineProperty(Qe,"familyPrefix",{enumerable:!0,set:function(t){ql.cssPrefix=t,wu.forEach(function(n){return n(Qe)})},get:function(){return ql.cssPrefix}});Eo.FontAwesomeConfig=Qe;var wu=[];function fq(e){return wu.push(e),function(){wu.splice(wu.indexOf(e),1)}}var bl=N0,Ba={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function pq(e){if(!(!e||!Is)){var t=Jt.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=Jt.head.childNodes,a=null,o=n.length-1;o>-1;o--){var i=n[o],l=(i.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(l)>-1&&(a=i)}return Jt.head.insertBefore(t,a),e}}var hq="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function r2(){for(var e=12,t="";e-- >0;)t+=hq[Math.random()*62|0];return t}function tc(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function r1(e){return e.classList?tc(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function VA(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function mq(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(VA(e[n]),'" ')},"").trim()}function Lh(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function a1(e){return e.size!==Ba.size||e.x!==Ba.x||e.y!==Ba.y||e.rotate!==Ba.rotate||e.flipX||e.flipY}function gq(e){var t=e.transform,n=e.containerWidth,a=e.iconWidth,o={transform:"translate(".concat(n/2," 256)")},i="translate(".concat(t.x*32,", ").concat(t.y*32,") "),l="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),u="rotate(".concat(t.rotate," 0 0)"),d={transform:"".concat(i," ").concat(l," ").concat(u)},f={transform:"translate(".concat(a/2*-1," -256)")};return{outer:o,inner:d,path:f}}function yq(e){var t=e.transform,n=e.width,a=n===void 0?N0:n,o=e.height,i=o===void 0?N0:o,l="";return mA?l+="translate(".concat(t.x/bl-a/2,"em, ").concat(t.y/bl-i/2,"em) "):l+="translate(calc(-50% + ".concat(t.x/bl,"em), calc(-50% + ").concat(t.y/bl,"em)) "),l+="scale(".concat(t.size/bl*(t.flipX?-1:1),", ").concat(t.size/bl*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var bq=`:root, :host {
  --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free";
  --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free";
  --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro";
  --fa-font-thin: normal 100 1em/1 "Font Awesome 7 Pro";
  --fa-font-duotone: normal 900 1em/1 "Font Awesome 7 Duotone";
  --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 7 Duotone";
  --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 7 Duotone";
  --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 7 Duotone";
  --fa-font-brands: normal 400 1em/1 "Font Awesome 7 Brands";
  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 7 Sharp";
  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 7 Sharp";
  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 7 Sharp";
  --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 7 Sharp";
  --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 7 Sharp Duotone";
  --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 7 Sharp Duotone";
  --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 7 Sharp Duotone";
  --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 7 Sharp Duotone";
  --fa-font-slab-regular: normal 400 1em/1 "Font Awesome 7 Slab";
  --fa-font-slab-press-regular: normal 400 1em/1 "Font Awesome 7 Slab Press";
  --fa-font-whiteboard-semibold: normal 600 1em/1 "Font Awesome 7 Whiteboard";
  --fa-font-thumbprint-light: normal 300 1em/1 "Font Awesome 7 Thumbprint";
  --fa-font-notdog-solid: normal 900 1em/1 "Font Awesome 7 Notdog";
  --fa-font-notdog-duo-solid: normal 900 1em/1 "Font Awesome 7 Notdog Duo";
  --fa-font-etch-solid: normal 900 1em/1 "Font Awesome 7 Etch";
  --fa-font-jelly-regular: normal 400 1em/1 "Font Awesome 7 Jelly";
  --fa-font-jelly-fill-regular: normal 400 1em/1 "Font Awesome 7 Jelly Fill";
  --fa-font-jelly-duo-regular: normal 400 1em/1 "Font Awesome 7 Jelly Duo";
  --fa-font-chisel-regular: normal 400 1em/1 "Font Awesome 7 Chisel";
  --fa-font-utility-semibold: normal 600 1em/1 "Font Awesome 7 Utility";
  --fa-font-utility-duo-semibold: normal 600 1em/1 "Font Awesome 7 Utility Duo";
  --fa-font-utility-fill-semibold: normal 600 1em/1 "Font Awesome 7 Utility Fill";
}

.svg-inline--fa {
  box-sizing: content-box;
  display: var(--fa-display, inline-block);
  height: 1em;
  overflow: visible;
  vertical-align: -0.125em;
  width: var(--fa-width, 1.25em);
}
.svg-inline--fa.fa-2xs {
  vertical-align: 0.1em;
}
.svg-inline--fa.fa-xs {
  vertical-align: 0em;
}
.svg-inline--fa.fa-sm {
  vertical-align: -0.0714285714em;
}
.svg-inline--fa.fa-lg {
  vertical-align: -0.2em;
}
.svg-inline--fa.fa-xl {
  vertical-align: -0.25em;
}
.svg-inline--fa.fa-2xl {
  vertical-align: -0.3125em;
}
.svg-inline--fa.fa-pull-left,
.svg-inline--fa .fa-pull-start {
  float: inline-start;
  margin-inline-end: var(--fa-pull-margin, 0.3em);
}
.svg-inline--fa.fa-pull-right,
.svg-inline--fa .fa-pull-end {
  float: inline-end;
  margin-inline-start: var(--fa-pull-margin, 0.3em);
}
.svg-inline--fa.fa-li {
  width: var(--fa-li-width, 2em);
  inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
  inset-block-start: 0.25em; /* syncing vertical alignment with Web Font rendering */
}

.fa-layers-counter, .fa-layers-text {
  display: inline-block;
  position: absolute;
  text-align: center;
}

.fa-layers {
  display: inline-block;
  height: 1em;
  position: relative;
  text-align: center;
  vertical-align: -0.125em;
  width: var(--fa-width, 1.25em);
}
.fa-layers .svg-inline--fa {
  inset: 0;
  margin: auto;
  position: absolute;
  transform-origin: center center;
}

.fa-layers-text {
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transform-origin: center center;
}

.fa-layers-counter {
  background-color: var(--fa-counter-background-color, #ff253a);
  border-radius: var(--fa-counter-border-radius, 1em);
  box-sizing: border-box;
  color: var(--fa-inverse, #fff);
  line-height: var(--fa-counter-line-height, 1);
  max-width: var(--fa-counter-max-width, 5em);
  min-width: var(--fa-counter-min-width, 1.5em);
  overflow: hidden;
  padding: var(--fa-counter-padding, 0.25em 0.5em);
  right: var(--fa-right, 0);
  text-overflow: ellipsis;
  top: var(--fa-top, 0);
  transform: scale(var(--fa-counter-scale, 0.25));
  transform-origin: top right;
}

.fa-layers-bottom-right {
  bottom: var(--fa-bottom, 0);
  right: var(--fa-right, 0);
  top: auto;
  transform: scale(var(--fa-layers-scale, 0.25));
  transform-origin: bottom right;
}

.fa-layers-bottom-left {
  bottom: var(--fa-bottom, 0);
  left: var(--fa-left, 0);
  right: auto;
  top: auto;
  transform: scale(var(--fa-layers-scale, 0.25));
  transform-origin: bottom left;
}

.fa-layers-top-right {
  top: var(--fa-top, 0);
  right: var(--fa-right, 0);
  transform: scale(var(--fa-layers-scale, 0.25));
  transform-origin: top right;
}

.fa-layers-top-left {
  left: var(--fa-left, 0);
  right: auto;
  top: var(--fa-top, 0);
  transform: scale(var(--fa-layers-scale, 0.25));
  transform-origin: top left;
}

.fa-1x {
  font-size: 1em;
}

.fa-2x {
  font-size: 2em;
}

.fa-3x {
  font-size: 3em;
}

.fa-4x {
  font-size: 4em;
}

.fa-5x {
  font-size: 5em;
}

.fa-6x {
  font-size: 6em;
}

.fa-7x {
  font-size: 7em;
}

.fa-8x {
  font-size: 8em;
}

.fa-9x {
  font-size: 9em;
}

.fa-10x {
  font-size: 10em;
}

.fa-2xs {
  font-size: calc(10 / 16 * 1em); /* converts a 10px size into an em-based value that's relative to the scale's 16px base */
  line-height: calc(1 / 10 * 1em); /* sets the line-height of the icon back to that of it's parent */
  vertical-align: calc((6 / 10 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}

.fa-xs {
  font-size: calc(12 / 16 * 1em); /* converts a 12px size into an em-based value that's relative to the scale's 16px base */
  line-height: calc(1 / 12 * 1em); /* sets the line-height of the icon back to that of it's parent */
  vertical-align: calc((6 / 12 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}

.fa-sm {
  font-size: calc(14 / 16 * 1em); /* converts a 14px size into an em-based value that's relative to the scale's 16px base */
  line-height: calc(1 / 14 * 1em); /* sets the line-height of the icon back to that of it's parent */
  vertical-align: calc((6 / 14 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}

.fa-lg {
  font-size: calc(20 / 16 * 1em); /* converts a 20px size into an em-based value that's relative to the scale's 16px base */
  line-height: calc(1 / 20 * 1em); /* sets the line-height of the icon back to that of it's parent */
  vertical-align: calc((6 / 20 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}

.fa-xl {
  font-size: calc(24 / 16 * 1em); /* converts a 24px size into an em-based value that's relative to the scale's 16px base */
  line-height: calc(1 / 24 * 1em); /* sets the line-height of the icon back to that of it's parent */
  vertical-align: calc((6 / 24 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}

.fa-2xl {
  font-size: calc(32 / 16 * 1em); /* converts a 32px size into an em-based value that's relative to the scale's 16px base */
  line-height: calc(1 / 32 * 1em); /* sets the line-height of the icon back to that of it's parent */
  vertical-align: calc((6 / 32 - 0.375) * 1em); /* vertically centers the icon taking into account the surrounding text's descender */
}

.fa-width-auto {
  --fa-width: auto;
}

.fa-fw,
.fa-width-fixed {
  --fa-width: 1.25em;
}

.fa-ul {
  list-style-type: none;
  margin-inline-start: var(--fa-li-margin, 2.5em);
  padding-inline-start: 0;
}
.fa-ul > li {
  position: relative;
}

.fa-li {
  inset-inline-start: calc(-1 * var(--fa-li-width, 2em));
  position: absolute;
  text-align: center;
  width: var(--fa-li-width, 2em);
  line-height: inherit;
}

/* Heads Up: Bordered Icons will not be supported in the future!
  - This feature will be deprecated in the next major release of Font Awesome (v8)!
  - You may continue to use it in this version *v7), but it will not be supported in Font Awesome v8.
*/
/* Notes:
* --@{v.$css-prefix}-border-width = 1/16 by default (to render as ~1px based on a 16px default font-size)
* --@{v.$css-prefix}-border-padding =
  ** 3/16 for vertical padding (to give ~2px of vertical whitespace around an icon considering it's vertical alignment)
  ** 4/16 for horizontal padding (to give ~4px of horizontal whitespace around an icon)
*/
.fa-border {
  border-color: var(--fa-border-color, #eee);
  border-radius: var(--fa-border-radius, 0.1em);
  border-style: var(--fa-border-style, solid);
  border-width: var(--fa-border-width, 0.0625em);
  box-sizing: var(--fa-border-box-sizing, content-box);
  padding: var(--fa-border-padding, 0.1875em 0.25em);
}

.fa-pull-left,
.fa-pull-start {
  float: inline-start;
  margin-inline-end: var(--fa-pull-margin, 0.3em);
}

.fa-pull-right,
.fa-pull-end {
  float: inline-end;
  margin-inline-start: var(--fa-pull-margin, 0.3em);
}

.fa-beat {
  animation-name: fa-beat;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, ease-in-out);
}

.fa-bounce {
  animation-name: fa-bounce;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}

.fa-fade {
  animation-name: fa-fade;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}

.fa-beat-fade {
  animation-name: fa-beat-fade;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}

.fa-flip {
  animation-name: fa-flip;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, ease-in-out);
}

.fa-shake {
  animation-name: fa-shake;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, linear);
}

.fa-spin {
  animation-name: fa-spin;
  animation-delay: var(--fa-animation-delay, 0s);
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 2s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, linear);
}

.fa-spin-reverse {
  --fa-animation-direction: reverse;
}

.fa-pulse,
.fa-spin-pulse {
  animation-name: fa-spin;
  animation-direction: var(--fa-animation-direction, normal);
  animation-duration: var(--fa-animation-duration, 1s);
  animation-iteration-count: var(--fa-animation-iteration-count, infinite);
  animation-timing-function: var(--fa-animation-timing, steps(8));
}

@media (prefers-reduced-motion: reduce) {
  .fa-beat,
  .fa-bounce,
  .fa-fade,
  .fa-beat-fade,
  .fa-flip,
  .fa-pulse,
  .fa-shake,
  .fa-spin,
  .fa-spin-pulse {
    animation: none !important;
    transition: none !important;
  }
}
@keyframes fa-beat {
  0%, 90% {
    transform: scale(1);
  }
  45% {
    transform: scale(var(--fa-beat-scale, 1.25));
  }
}
@keyframes fa-bounce {
  0% {
    transform: scale(1, 1) translateY(0);
  }
  10% {
    transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
  }
  30% {
    transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
  }
  50% {
    transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
  }
  57% {
    transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
  }
  64% {
    transform: scale(1, 1) translateY(0);
  }
  100% {
    transform: scale(1, 1) translateY(0);
  }
}
@keyframes fa-fade {
  50% {
    opacity: var(--fa-fade-opacity, 0.4);
  }
}
@keyframes fa-beat-fade {
  0%, 100% {
    opacity: var(--fa-beat-fade-opacity, 0.4);
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(var(--fa-beat-fade-scale, 1.125));
  }
}
@keyframes fa-flip {
  50% {
    transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
  }
}
@keyframes fa-shake {
  0% {
    transform: rotate(-15deg);
  }
  4% {
    transform: rotate(15deg);
  }
  8%, 24% {
    transform: rotate(-18deg);
  }
  12%, 28% {
    transform: rotate(18deg);
  }
  16% {
    transform: rotate(-22deg);
  }
  20% {
    transform: rotate(22deg);
  }
  32% {
    transform: rotate(-12deg);
  }
  36% {
    transform: rotate(12deg);
  }
  40%, 100% {
    transform: rotate(0deg);
  }
}
@keyframes fa-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.fa-rotate-90 {
  transform: rotate(90deg);
}

.fa-rotate-180 {
  transform: rotate(180deg);
}

.fa-rotate-270 {
  transform: rotate(270deg);
}

.fa-flip-horizontal {
  transform: scale(-1, 1);
}

.fa-flip-vertical {
  transform: scale(1, -1);
}

.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
  transform: scale(-1, -1);
}

.fa-rotate-by {
  transform: rotate(var(--fa-rotate-angle, 0));
}

.svg-inline--fa .fa-primary {
  fill: var(--fa-primary-color, currentColor);
  opacity: var(--fa-primary-opacity, 1);
}

.svg-inline--fa .fa-secondary {
  fill: var(--fa-secondary-color, currentColor);
  opacity: var(--fa-secondary-opacity, 0.4);
}

.svg-inline--fa.fa-swap-opacity .fa-primary {
  opacity: var(--fa-secondary-opacity, 0.4);
}

.svg-inline--fa.fa-swap-opacity .fa-secondary {
  opacity: var(--fa-primary-opacity, 1);
}

.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
  fill: black;
}

.svg-inline--fa.fa-inverse {
  fill: var(--fa-inverse, #fff);
}

.fa-stack {
  display: inline-block;
  height: 2em;
  line-height: 2em;
  position: relative;
  vertical-align: middle;
  width: 2.5em;
}

.fa-inverse {
  color: var(--fa-inverse, #fff);
}

.svg-inline--fa.fa-stack-1x {
  --fa-width: 1.25em;
  height: 1em;
  width: var(--fa-width);
}
.svg-inline--fa.fa-stack-2x {
  --fa-width: 2.5em;
  height: 2em;
  width: var(--fa-width);
}

.fa-stack-1x,
.fa-stack-2x {
  inset: 0;
  margin: auto;
  position: absolute;
  z-index: var(--fa-stack-z-index, auto);
}`;function GA(){var e=LA,t=BA,n=Qe.cssPrefix,a=Qe.replacementClass,o=bq;if(n!==e||a!==t){var i=new RegExp("\\.".concat(e,"\\-"),"g"),l=new RegExp("\\--".concat(e,"\\-"),"g"),u=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(n,"-")).replace(l,"--".concat(n,"-")).replace(u,".".concat(a))}return o}var a2=!1;function tb(){Qe.autoAddCss&&!a2&&(pq(GA()),a2=!0)}var vq={mixout:function(){return{dom:{css:GA,insertCss:tb}}},hooks:function(){return{beforeDOMElementCreation:function(){tb()},beforeI2svg:function(){tb()}}}},As=Eo||{};As[_s]||(As[_s]={});As[_s].styles||(As[_s].styles={});As[_s].hooks||(As[_s].hooks={});As[_s].shims||(As[_s].shims=[]);var Ca=As[_s],YA=[],WA=function(){Jt.removeEventListener("DOMContentLoaded",WA),Lp=1,YA.map(function(t){return t()})},Lp=!1;Is&&(Lp=(Jt.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Jt.readyState),Lp||Jt.addEventListener("DOMContentLoaded",WA));function xq(e){Is&&(Lp?setTimeout(e,0):YA.push(e))}function yd(e){var t=e.tag,n=e.attributes,a=n===void 0?{}:n,o=e.children,i=o===void 0?[]:o;return typeof e=="string"?VA(e):"<".concat(t," ").concat(mq(a),">").concat(i.map(yd).join(""),"</").concat(t,">")}function s2(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var nb=function(t,n,a,o){var i=Object.keys(t),l=i.length,u=n,d,f,m;for(a===void 0?(d=1,m=t[i[0]]):(d=0,m=a);d<l;d++)f=i[d],m=u(m,t[f],f,t);return m};function XA(e){return $a(e).length!==1?null:e.codePointAt(0).toString(16)}function o2(e){return Object.keys(e).reduce(function(t,n){var a=e[n],o=!!a.icon;return o?t[a.iconName]=a.icon:t[n]=a,t},{})}function _0(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.skipHooks,o=a===void 0?!1:a,i=o2(t);typeof Ca.hooks.addPack=="function"&&!o?Ca.hooks.addPack(e,o2(t)):Ca.styles[e]=Ie(Ie({},Ca.styles[e]||{}),i),e==="fas"&&_0("fa",t)}var Lu=Ca.styles,Cq=Ca.shims,KA=Object.keys(n1),Sq=KA.reduce(function(e,t){return e[t]=Object.keys(n1[t]),e},{}),s1=null,QA={},ZA={},JA={},eD={},tD={};function Nq(e){return~lq.indexOf(e)}function wq(e,t){var n=t.split("-"),a=n[0],o=n.slice(1).join("-");return a===e&&o!==""&&!Nq(o)?o:null}var nD=function(){var t=function(i){return nb(Lu,function(l,u,d){return l[d]=nb(u,i,{}),l},{})};QA=t(function(o,i,l){if(i[3]&&(o[i[3]]=l),i[2]){var u=i[2].filter(function(d){return typeof d=="number"});u.forEach(function(d){o[d.toString(16)]=l})}return o}),ZA=t(function(o,i,l){if(o[l]=l,i[2]){var u=i[2].filter(function(d){return typeof d=="string"});u.forEach(function(d){o[d]=l})}return o}),tD=t(function(o,i,l){var u=i[2];return o[l]=l,u.forEach(function(d){o[d]=l}),o});var n="far"in Lu||Qe.autoFetchSvg,a=nb(Cq,function(o,i){var l=i[0],u=i[1],d=i[2];return u==="far"&&!n&&(u="fas"),typeof l=="string"&&(o.names[l]={prefix:u,iconName:d}),typeof l=="number"&&(o.unicodes[l.toString(16)]={prefix:u,iconName:d}),o},{names:{},unicodes:{}});JA=a.names,eD=a.unicodes,s1=Bh(Qe.styleDefault,{family:Qe.familyDefault})};fq(function(e){s1=Bh(e.styleDefault,{family:Qe.familyDefault})});nD();function o1(e,t){return(QA[e]||{})[t]}function Eq(e,t){return(ZA[e]||{})[t]}function pi(e,t){return(tD[e]||{})[t]}function rD(e){return JA[e]||{prefix:null,iconName:null}}function $q(e){var t=eD[e],n=o1("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function $o(){return s1}var aD=function(){return{prefix:null,iconName:null,rest:[]}};function Tq(e){var t=qn,n=KA.reduce(function(a,o){return a[o]="".concat(Qe.cssPrefix,"-").concat(o),a},{});return IA.forEach(function(a){(e.includes(n[a])||e.some(function(o){return Sq[a].includes(o)}))&&(t=a)}),t}function Bh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,a=n===void 0?qn:n,o=rq[a][e];if(a===md&&!e)return"fad";var i=n2[a][e]||n2[a][o],l=e in Ca.styles?e:null,u=i||l||null;return u}function _q(e){var t=[],n=null;return e.forEach(function(a){var o=wq(Qe.cssPrefix,a);o?n=o:a&&t.push(a)}),{iconName:n,rest:t}}function i2(e){return e.sort().filter(function(t,n,a){return a.indexOf(t)===n})}var l2=MA.concat(kA);function qh(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.skipLookups,a=n===void 0?!1:n,o=null,i=i2(e.filter(function(b){return l2.includes(b)})),l=i2(e.filter(function(b){return!l2.includes(b)})),u=i.filter(function(b){return o=b,!yA.includes(b)}),d=Ph(u,1),f=d[0],m=f===void 0?null:f,g=Tq(i),y=Ie(Ie({},_q(l)),{},{prefix:Bh(m,{family:g})});return Ie(Ie(Ie({},y),Rq({values:e,family:g,styles:Lu,config:Qe,canonical:y,givenPrefix:o})),Aq(a,o,y))}function Aq(e,t,n){var a=n.prefix,o=n.iconName;if(e||!a||!o)return{prefix:a,iconName:o};var i=t==="fa"?rD(o):{},l=pi(a,o);return o=i.iconName||l||o,a=i.prefix||a,a==="far"&&!Lu.far&&Lu.fas&&!Qe.autoFetchSvg&&(a="fas"),{prefix:a,iconName:o}}var Dq=IA.filter(function(e){return e!==qn||e!==md}),jq=Object.keys(S0).filter(function(e){return e!==qn}).map(function(e){return Object.keys(S0[e])}).flat();function Rq(e){var t=e.values,n=e.family,a=e.canonical,o=e.givenPrefix,i=o===void 0?"":o,l=e.styles,u=l===void 0?{}:l,d=e.config,f=d===void 0?{}:d,m=n===md,g=t.includes("fa-duotone")||t.includes("fad"),y=f.familyDefault==="duotone",b=a.prefix==="fad"||a.prefix==="fa-duotone";if(!m&&(g||y||b)&&(a.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(a.prefix="fab"),!a.prefix&&Dq.includes(n)){var x=Object.keys(u).find(function(w){return jq.includes(w)});if(x||f.autoFetchSvg){var S=XB.get(n).defaultShortPrefixId;a.prefix=S,a.iconName=pi(a.prefix,a.iconName)||a.iconName}}return(a.prefix==="fa"||i==="fa")&&(a.prefix=$o()||"fas"),a}var Oq=(function(){function e(){yB(this,e),this.definitions={}}return vB(e,[{key:"add",value:function(){for(var n=this,a=arguments.length,o=new Array(a),i=0;i<a;i++)o[i]=arguments[i];var l=o.reduce(this._pullDefinitions,{});Object.keys(l).forEach(function(u){n.definitions[u]=Ie(Ie({},n.definitions[u]||{}),l[u]),_0(u,l[u]);var d=n1[qn][u];d&&_0(d,l[u]),nD()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(n,a){var o=a.prefix&&a.iconName&&a.icon?{0:a}:a;return Object.keys(o).map(function(i){var l=o[i],u=l.prefix,d=l.iconName,f=l.icon,m=f[2];n[u]||(n[u]={}),m.length>0&&m.forEach(function(g){typeof g=="string"&&(n[u][g]=f)}),n[u][d]=f}),n}}])})(),c2=[],Tl={},Rl={},Iq=Object.keys(Rl);function kq(e,t){var n=t.mixoutsTo;return c2=e,Tl={},Object.keys(Rl).forEach(function(a){Iq.indexOf(a)===-1&&delete Rl[a]}),c2.forEach(function(a){var o=a.mixout?a.mixout():{};if(Object.keys(o).forEach(function(l){typeof o[l]=="function"&&(n[l]=o[l]),Pp(o[l])==="object"&&Object.keys(o[l]).forEach(function(u){n[l]||(n[l]={}),n[l][u]=o[l][u]})}),a.hooks){var i=a.hooks();Object.keys(i).forEach(function(l){Tl[l]||(Tl[l]=[]),Tl[l].push(i[l])})}a.provides&&a.provides(Rl)}),n}function A0(e,t){for(var n=arguments.length,a=new Array(n>2?n-2:0),o=2;o<n;o++)a[o-2]=arguments[o];var i=Tl[e]||[];return i.forEach(function(l){t=l.apply(null,[t].concat(a))}),t}function Ei(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];var o=Tl[e]||[];o.forEach(function(i){i.apply(null,n)})}function To(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Rl[e]?Rl[e].apply(null,t):void 0}function D0(e){e.prefix==="fa"&&(e.prefix="fas");var t=e.iconName,n=e.prefix||$o();if(t)return t=pi(n,t)||t,s2(sD.definitions,n,t)||s2(Ca.styles,n,t)}var sD=new Oq,Mq=function(){Qe.autoReplaceSvg=!1,Qe.observeMutations=!1,Ei("noAuto")},Pq={i2svg:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Is?(Ei("beforeI2svg",t),To("pseudoElements2svg",t),To("i2svg",t)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot;Qe.autoReplaceSvg===!1&&(Qe.autoReplaceSvg=!0),Qe.observeMutations=!0,xq(function(){Bq({autoReplaceSvgRoot:n}),Ei("watch",t)})}},Lq={icon:function(t){if(t===null)return null;if(Pp(t)==="object"&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:pi(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&t.length===2){var n=t[1].indexOf("fa-")===0?t[1].slice(3):t[1],a=Bh(t[0]);return{prefix:a,iconName:pi(a,n)||n}}if(typeof t=="string"&&(t.indexOf("".concat(Qe.cssPrefix,"-"))>-1||t.match(aq))){var o=qh(t.split(" "),{skipLookups:!0});return{prefix:o.prefix||$o(),iconName:pi(o.prefix,o.iconName)||o.iconName}}if(typeof t=="string"){var i=$o();return{prefix:i,iconName:pi(i,t)||t}}}},Ir={noAuto:Mq,config:Qe,dom:Pq,parse:Lq,library:sD,findIconDefinition:D0,toHtml:yd},Bq=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.autoReplaceSvgRoot,a=n===void 0?Jt:n;(Object.keys(Ca.styles).length>0||Qe.autoFetchSvg)&&Is&&Qe.autoReplaceSvg&&Ir.dom.i2svg({node:a})};function Fh(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(a){return yd(a)})}}),Object.defineProperty(e,"node",{get:function(){if(Is){var a=Jt.createElement("div");return a.innerHTML=e.html,a.children}}}),e}function qq(e){var t=e.children,n=e.main,a=e.mask,o=e.attributes,i=e.styles,l=e.transform;if(a1(l)&&n.found&&!a.found){var u=n.width,d=n.height,f={x:u/d/2,y:.5};o.style=Lh(Ie(Ie({},i),{},{"transform-origin":"".concat(f.x+l.x/16,"em ").concat(f.y+l.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}function Fq(e){var t=e.prefix,n=e.iconName,a=e.children,o=e.attributes,i=e.symbol,l=i===!0?"".concat(t,"-").concat(Qe.cssPrefix,"-").concat(n):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ie(Ie({},o),{},{id:l}),children:a}]}]}function zq(e){var t=["aria-label","aria-labelledby","title","role"];return t.some(function(n){return n in e})}function i1(e){var t=e.icons,n=t.main,a=t.mask,o=e.prefix,i=e.iconName,l=e.transform,u=e.symbol,d=e.maskId,f=e.extra,m=e.watchable,g=m===void 0?!1:m,y=a.found?a:n,b=y.width,x=y.height,S=[Qe.replacementClass,i?"".concat(Qe.cssPrefix,"-").concat(i):""].filter(function(E){return f.classes.indexOf(E)===-1}).filter(function(E){return E!==""||!!E}).concat(f.classes).join(" "),w={children:[],attributes:Ie(Ie({},f.attributes),{},{"data-prefix":o,"data-icon":i,class:S,role:f.attributes.role||"img",viewBox:"0 0 ".concat(b," ").concat(x)})};!zq(f.attributes)&&!f.attributes["aria-hidden"]&&(w.attributes["aria-hidden"]="true"),g&&(w.attributes[wi]="");var N=Ie(Ie({},w),{},{prefix:o,iconName:i,main:n,mask:a,maskId:d,transform:l,symbol:u,styles:Ie({},f.styles)}),T=a.found&&n.found?To("generateAbstractMask",N)||{children:[],attributes:{}}:To("generateAbstractIcon",N)||{children:[],attributes:{}},A=T.children,R=T.attributes;return N.children=A,N.attributes=R,u?Fq(N):qq(N)}function u2(e){var t=e.content,n=e.width,a=e.height,o=e.transform,i=e.extra,l=e.watchable,u=l===void 0?!1:l,d=Ie(Ie({},i.attributes),{},{class:i.classes.join(" ")});u&&(d[wi]="");var f=Ie({},i.styles);a1(o)&&(f.transform=yq({transform:o,width:n,height:a}),f["-webkit-transform"]=f.transform);var m=Lh(f);m.length>0&&(d.style=m);var g=[];return g.push({tag:"span",attributes:d,children:[t]}),g}function Hq(e){var t=e.content,n=e.extra,a=Ie(Ie({},n.attributes),{},{class:n.classes.join(" ")}),o=Lh(n.styles);o.length>0&&(a.style=o);var i=[];return i.push({tag:"span",attributes:a,children:[t]}),i}var rb=Ca.styles;function j0(e){var t=e[0],n=e[1],a=e.slice(4),o=Ph(a,1),i=o[0],l=null;return Array.isArray(i)?l={tag:"g",attributes:{class:"".concat(Qe.cssPrefix,"-").concat(eb.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Qe.cssPrefix,"-").concat(eb.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(Qe.cssPrefix,"-").concat(eb.PRIMARY),fill:"currentColor",d:i[1]}}]}:l={tag:"path",attributes:{fill:"currentColor",d:i}},{found:!0,width:t,height:n,icon:l}}var Uq={found:!1,width:512,height:512};function Vq(e,t){!FA&&!Qe.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function R0(e,t){var n=t;return t==="fa"&&Qe.styleDefault!==null&&(t=$o()),new Promise(function(a,o){if(n==="fa"){var i=rD(e)||{};e=i.iconName||e,t=i.prefix||t}if(e&&t&&rb[t]&&rb[t][e]){var l=rb[t][e];return a(j0(l))}Vq(e,t),a(Ie(Ie({},Uq),{},{icon:Qe.showMissingIcons&&e?To("missingIconAbstract")||{}:{}}))})}var d2=function(){},O0=Qe.measurePerformance&&Vf&&Vf.mark&&Vf.measure?Vf:{mark:d2,measure:d2},bu='FA "7.1.0"',Gq=function(t){return O0.mark("".concat(bu," ").concat(t," begins")),function(){return oD(t)}},oD=function(t){O0.mark("".concat(bu," ").concat(t," ends")),O0.measure("".concat(bu," ").concat(t),"".concat(bu," ").concat(t," begins"),"".concat(bu," ").concat(t," ends"))},l1={begin:Gq,end:oD},pp=function(){};function f2(e){var t=e.getAttribute?e.getAttribute(wi):null;return typeof t=="string"}function Yq(e){var t=e.getAttribute?e.getAttribute(e1):null,n=e.getAttribute?e.getAttribute(t1):null;return t&&n}function Wq(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Qe.replacementClass)}function Xq(){if(Qe.autoReplaceSvg===!0)return hp.replace;var e=hp[Qe.autoReplaceSvg];return e||hp.replace}function Kq(e){return Jt.createElementNS("http://www.w3.org/2000/svg",e)}function Qq(e){return Jt.createElement(e)}function iD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,a=n===void 0?e.tag==="svg"?Kq:Qq:n;if(typeof e=="string")return Jt.createTextNode(e);var o=a(e.tag);Object.keys(e.attributes||[]).forEach(function(l){o.setAttribute(l,e.attributes[l])});var i=e.children||[];return i.forEach(function(l){o.appendChild(iD(l,{ceFn:a}))}),o}function Zq(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var hp={replace:function(t){var n=t[0];if(n.parentNode)if(t[1].forEach(function(o){n.parentNode.insertBefore(iD(o),n)}),n.getAttribute(wi)===null&&Qe.keepOriginalSource){var a=Jt.createComment(Zq(n));n.parentNode.replaceChild(a,n)}else n.remove()},nest:function(t){var n=t[0],a=t[1];if(~r1(n).indexOf(Qe.replacementClass))return hp.replace(t);var o=new RegExp("".concat(Qe.cssPrefix,"-.*"));if(delete a[0].attributes.id,a[0].attributes.class){var i=a[0].attributes.class.split(" ").reduce(function(u,d){return d===Qe.replacementClass||d.match(o)?u.toSvg.push(d):u.toNode.push(d),u},{toNode:[],toSvg:[]});a[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?n.removeAttribute("class"):n.setAttribute("class",i.toNode.join(" "))}var l=a.map(function(u){return yd(u)}).join(`
`);n.setAttribute(wi,""),n.innerHTML=l}};function p2(e){e()}function lD(e,t){var n=typeof t=="function"?t:pp;if(e.length===0)n();else{var a=p2;Qe.mutateApproach===tq&&(a=Eo.requestAnimationFrame||p2),a(function(){var o=Xq(),i=l1.begin("mutate");e.map(o),i(),n()})}}var c1=!1;function cD(){c1=!0}function I0(){c1=!1}var Bp=null;function h2(e){if(Zw&&Qe.observeMutations){var t=e.treeCallback,n=t===void 0?pp:t,a=e.nodeCallback,o=a===void 0?pp:a,i=e.pseudoElementsCallback,l=i===void 0?pp:i,u=e.observeMutationsRoot,d=u===void 0?Jt:u;Bp=new Zw(function(f){if(!c1){var m=$o();tc(f).forEach(function(g){if(g.type==="childList"&&g.addedNodes.length>0&&!f2(g.addedNodes[0])&&(Qe.searchPseudoElements&&l(g.target),n(g.target)),g.type==="attributes"&&g.target.parentNode&&Qe.searchPseudoElements&&l([g.target],!0),g.type==="attributes"&&f2(g.target)&&~iq.indexOf(g.attributeName))if(g.attributeName==="class"&&Yq(g.target)){var y=qh(r1(g.target)),b=y.prefix,x=y.iconName;g.target.setAttribute(e1,b||m),x&&g.target.setAttribute(t1,x)}else Wq(g.target)&&o(g.target)})}}),Is&&Bp.observe(d,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Jq(){Bp&&Bp.disconnect()}function e7(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(a,o){var i=o.split(":"),l=i[0],u=i.slice(1);return l&&u.length>0&&(a[l]=u.join(":").trim()),a},{})),n}function t7(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),a=e.innerText!==void 0?e.innerText.trim():"",o=qh(r1(e));return o.prefix||(o.prefix=$o()),t&&n&&(o.prefix=t,o.iconName=n),o.iconName&&o.prefix||(o.prefix&&a.length>0&&(o.iconName=Eq(o.prefix,e.innerText)||o1(o.prefix,XA(e.innerText))),!o.iconName&&Qe.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o}function n7(e){var t=tc(e.attributes).reduce(function(n,a){return n.name!=="class"&&n.name!=="style"&&(n[a.name]=a.value),n},{});return t}function r7(){return{iconName:null,prefix:null,transform:Ba,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function m2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=t7(e),a=n.iconName,o=n.prefix,i=n.rest,l=n7(e),u=A0("parseNodeAttributes",{},e),d=t.styleParser?e7(e):[];return Ie({iconName:a,prefix:o,transform:Ba,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:i,styles:d,attributes:l}},u)}var a7=Ca.styles;function uD(e){var t=Qe.autoReplaceSvg==="nest"?m2(e,{styleParser:!1}):m2(e);return~t.extra.classes.indexOf(HA)?To("generateLayersText",e,t):To("generateSvgReplacementMutation",e,t)}function s7(){return[].concat($a(kA),$a(MA))}function g2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Is)return Promise.resolve();var n=Jt.documentElement.classList,a=function(g){return n.add("".concat(t2,"-").concat(g))},o=function(g){return n.remove("".concat(t2,"-").concat(g))},i=Qe.autoFetchSvg?s7():yA.concat(Object.keys(a7));i.includes("fa")||i.push("fa");var l=[".".concat(HA,":not([").concat(wi,"])")].concat(i.map(function(m){return".".concat(m,":not([").concat(wi,"])")})).join(", ");if(l.length===0)return Promise.resolve();var u=[];try{u=tc(e.querySelectorAll(l))}catch{}if(u.length>0)a("pending"),o("complete");else return Promise.resolve();var d=l1.begin("onTree"),f=u.reduce(function(m,g){try{var y=uD(g);y&&m.push(y)}catch(b){FA||b.name==="MissingIcon"&&console.error(b)}return m},[]);return new Promise(function(m,g){Promise.all(f).then(function(y){lD(y,function(){a("active"),a("complete"),o("pending"),typeof t=="function"&&t(),d(),m()})}).catch(function(y){d(),g(y)})})}function o7(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;uD(e).then(function(n){n&&lD([n],t)})}function i7(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=(t||{}).icon?t:D0(t||{}),o=n.mask;return o&&(o=(o||{}).icon?o:D0(o||{})),e(a,Ie(Ie({},n),{},{mask:o}))}}var l7=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.transform,o=a===void 0?Ba:a,i=n.symbol,l=i===void 0?!1:i,u=n.mask,d=u===void 0?null:u,f=n.maskId,m=f===void 0?null:f,g=n.classes,y=g===void 0?[]:g,b=n.attributes,x=b===void 0?{}:b,S=n.styles,w=S===void 0?{}:S;if(t){var N=t.prefix,T=t.iconName,A=t.icon;return Fh(Ie({type:"icon"},t),function(){return Ei("beforeDOMElementCreation",{iconDefinition:t,params:n}),i1({icons:{main:j0(A),mask:d?j0(d.icon):{found:!1,width:null,height:null,icon:{}}},prefix:N,iconName:T,transform:Ie(Ie({},Ba),o),symbol:l,maskId:m,extra:{attributes:x,styles:w,classes:y}})})}},c7={mixout:function(){return{icon:i7(l7)}},hooks:function(){return{mutationObserverCallbacks:function(n){return n.treeCallback=g2,n.nodeCallback=o7,n}}},provides:function(t){t.i2svg=function(n){var a=n.node,o=a===void 0?Jt:a,i=n.callback,l=i===void 0?function(){}:i;return g2(o,l)},t.generateSvgReplacementMutation=function(n,a){var o=a.iconName,i=a.prefix,l=a.transform,u=a.symbol,d=a.mask,f=a.maskId,m=a.extra;return new Promise(function(g,y){Promise.all([R0(o,i),d.iconName?R0(d.iconName,d.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(b){var x=Ph(b,2),S=x[0],w=x[1];g([n,i1({icons:{main:S,mask:w},prefix:i,iconName:o,transform:l,symbol:u,maskId:f,extra:m,watchable:!0})])}).catch(y)})},t.generateAbstractIcon=function(n){var a=n.children,o=n.attributes,i=n.main,l=n.transform,u=n.styles,d=Lh(u);d.length>0&&(o.style=d);var f;return a1(l)&&(f=To("generateAbstractTransformGrouping",{main:i,transform:l,containerWidth:i.width,iconWidth:i.width})),a.push(f||i.icon),{children:a,attributes:o}}}},u7={mixout:function(){return{layer:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.classes,i=o===void 0?[]:o;return Fh({type:"layer"},function(){Ei("beforeDOMElementCreation",{assembler:n,params:a});var l=[];return n(function(u){Array.isArray(u)?u.map(function(d){l=l.concat(d.abstract)}):l=l.concat(u.abstract)}),[{tag:"span",attributes:{class:["".concat(Qe.cssPrefix,"-layers")].concat($a(i)).join(" ")},children:l}]})}}}},d7={mixout:function(){return{counter:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};a.title;var o=a.classes,i=o===void 0?[]:o,l=a.attributes,u=l===void 0?{}:l,d=a.styles,f=d===void 0?{}:d;return Fh({type:"counter",content:n},function(){return Ei("beforeDOMElementCreation",{content:n,params:a}),Hq({content:n.toString(),extra:{attributes:u,styles:f,classes:["".concat(Qe.cssPrefix,"-layers-counter")].concat($a(i))}})})}}}},f7={mixout:function(){return{text:function(n){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=a.transform,i=o===void 0?Ba:o,l=a.classes,u=l===void 0?[]:l,d=a.attributes,f=d===void 0?{}:d,m=a.styles,g=m===void 0?{}:m;return Fh({type:"text",content:n},function(){return Ei("beforeDOMElementCreation",{content:n,params:a}),u2({content:n,transform:Ie(Ie({},Ba),i),extra:{attributes:f,styles:g,classes:["".concat(Qe.cssPrefix,"-layers-text")].concat($a(u))}})})}}},provides:function(t){t.generateLayersText=function(n,a){var o=a.transform,i=a.extra,l=null,u=null;if(mA){var d=parseInt(getComputedStyle(n).fontSize,10),f=n.getBoundingClientRect();l=f.width/d,u=f.height/d}return Promise.resolve([n,u2({content:n.innerHTML,width:l,height:u,transform:o,extra:i,watchable:!0})])}}},dD=new RegExp('"',"ug"),y2=[1105920,1112319],b2=Ie(Ie(Ie(Ie({},{FontAwesome:{normal:"fas",400:"fas"}}),WB),J8),r8),k0=Object.keys(b2).reduce(function(e,t){return e[t.toLowerCase()]=b2[t],e},{}),p7=Object.keys(k0).reduce(function(e,t){var n=k0[t];return e[t]=n[900]||$a(Object.entries(n))[0][1],e},{});function h7(e){var t=e.replace(dD,"");return XA($a(t)[0]||"")}function m7(e){var t=e.getPropertyValue("font-feature-settings").includes("ss01"),n=e.getPropertyValue("content"),a=n.replace(dD,""),o=a.codePointAt(0),i=o>=y2[0]&&o<=y2[1],l=a.length===2?a[0]===a[1]:!1;return i||l||t}function g7(e,t){var n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),a=parseInt(t),o=isNaN(a)?"normal":a;return(k0[n]||{})[o]||p7[n]}function v2(e,t){var n="".concat(eq).concat(t.replace(":","-"));return new Promise(function(a,o){if(e.getAttribute(n)!==null)return a();var i=tc(e.children),l=i.filter(function($){return $.getAttribute(w0)===t})[0],u=Eo.getComputedStyle(e,t),d=u.getPropertyValue("font-family"),f=d.match(sq),m=u.getPropertyValue("font-weight"),g=u.getPropertyValue("content");if(l&&!f)return e.removeChild(l),a();if(f&&g!=="none"&&g!==""){var y=u.getPropertyValue("content"),b=g7(d,m),x=h7(y),S=f[0].startsWith("FontAwesome"),w=m7(u),N=o1(b,x),T=N;if(S){var A=$q(x);A.iconName&&A.prefix&&(N=A.iconName,b=A.prefix)}if(N&&!w&&(!l||l.getAttribute(e1)!==b||l.getAttribute(t1)!==T)){e.setAttribute(n,T),l&&e.removeChild(l);var R=r7(),E=R.extra;E.attributes[w0]=t,R0(N,b).then(function($){var _=i1(Ie(Ie({},R),{},{icons:{main:$,mask:aD()},prefix:b,iconName:T,extra:E,watchable:!0})),k=Jt.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(k,e.firstChild):e.appendChild(k),k.outerHTML=_.map(function(q){return yd(q)}).join(`
`),e.removeAttribute(n),a()}).catch(o)}else a()}else a()})}function y7(e){return Promise.all([v2(e,"::before"),v2(e,"::after")])}function b7(e){return e.parentNode!==document.head&&!~nq.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(w0)&&(!e.parentNode||e.parentNode.tagName!=="svg")}var v7=function(t){return!!t&&qA.some(function(n){return t.includes(n)})},x7=function(t){if(!t)return[];var n=new Set,a=t.split(/,(?![^()]*\))/).map(function(d){return d.trim()});a=a.flatMap(function(d){return d.includes("(")?d:d.split(",").map(function(f){return f.trim()})});var o=fp(a),i;try{for(o.s();!(i=o.n()).done;){var l=i.value;if(v7(l)){var u=qA.reduce(function(d,f){return d.replace(f,"")},l);u!==""&&u!=="*"&&n.add(u)}}}catch(d){o.e(d)}finally{o.f()}return n};function x2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(Is){var n;if(t)n=e;else if(Qe.searchPseudoElementsFullScan)n=e.querySelectorAll("*");else{var a=new Set,o=fp(document.styleSheets),i;try{for(o.s();!(i=o.n()).done;){var l=i.value;try{var u=fp(l.cssRules),d;try{for(u.s();!(d=u.n()).done;){var f=d.value,m=x7(f.selectorText),g=fp(m),y;try{for(g.s();!(y=g.n()).done;){var b=y.value;a.add(b)}}catch(S){g.e(S)}finally{g.f()}}}catch(S){u.e(S)}finally{u.f()}}catch(S){Qe.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(l.href," (").concat(S.message,`)
If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the <link>, enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(S){o.e(S)}finally{o.f()}if(!a.size)return;var x=Array.from(a).join(", ");try{n=e.querySelectorAll(x)}catch{}}return new Promise(function(S,w){var N=tc(n).filter(b7).map(y7),T=l1.begin("searchPseudoElements");cD(),Promise.all(N).then(function(){T(),I0(),S()}).catch(function(){T(),I0(),w()})})}}var C7={hooks:function(){return{mutationObserverCallbacks:function(n){return n.pseudoElementsCallback=x2,n}}},provides:function(t){t.pseudoElements2svg=function(n){var a=n.node,o=a===void 0?Jt:a;Qe.searchPseudoElements&&x2(o)}}},C2=!1,S7={mixout:function(){return{dom:{unwatch:function(){cD(),C2=!0}}}},hooks:function(){return{bootstrap:function(){h2(A0("mutationObserverCallbacks",{}))},noAuto:function(){Jq()},watch:function(n){var a=n.observeMutationsRoot;C2?I0():h2(A0("mutationObserverCallbacks",{observeMutationsRoot:a}))}}}},S2=function(t){var n={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return t.toLowerCase().split(" ").reduce(function(a,o){var i=o.toLowerCase().split("-"),l=i[0],u=i.slice(1).join("-");if(l&&u==="h")return a.flipX=!0,a;if(l&&u==="v")return a.flipY=!0,a;if(u=parseFloat(u),isNaN(u))return a;switch(l){case"grow":a.size=a.size+u;break;case"shrink":a.size=a.size-u;break;case"left":a.x=a.x-u;break;case"right":a.x=a.x+u;break;case"up":a.y=a.y-u;break;case"down":a.y=a.y+u;break;case"rotate":a.rotate=a.rotate+u;break}return a},n)},N7={mixout:function(){return{parse:{transform:function(n){return S2(n)}}}},hooks:function(){return{parseNodeAttributes:function(n,a){var o=a.getAttribute("data-fa-transform");return o&&(n.transform=S2(o)),n}}},provides:function(t){t.generateAbstractTransformGrouping=function(n){var a=n.main,o=n.transform,i=n.containerWidth,l=n.iconWidth,u={transform:"translate(".concat(i/2," 256)")},d="translate(".concat(o.x*32,", ").concat(o.y*32,") "),f="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),m="rotate(".concat(o.rotate," 0 0)"),g={transform:"".concat(d," ").concat(f," ").concat(m)},y={transform:"translate(".concat(l/2*-1," -256)")},b={outer:u,inner:g,path:y};return{tag:"g",attributes:Ie({},b.outer),children:[{tag:"g",attributes:Ie({},b.inner),children:[{tag:a.icon.tag,children:a.icon.children,attributes:Ie(Ie({},a.icon.attributes),b.path)}]}]}}}},ab={x:0,y:0,width:"100%",height:"100%"};function N2(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function w7(e){return e.tag==="g"?e.children:[e]}var E7={hooks:function(){return{parseNodeAttributes:function(n,a){var o=a.getAttribute("data-fa-mask"),i=o?qh(o.split(" ").map(function(l){return l.trim()})):aD();return i.prefix||(i.prefix=$o()),n.mask=i,n.maskId=a.getAttribute("data-fa-mask-id"),n}}},provides:function(t){t.generateAbstractMask=function(n){var a=n.children,o=n.attributes,i=n.main,l=n.mask,u=n.maskId,d=n.transform,f=i.width,m=i.icon,g=l.width,y=l.icon,b=gq({transform:d,containerWidth:g,iconWidth:f}),x={tag:"rect",attributes:Ie(Ie({},ab),{},{fill:"white"})},S=m.children?{children:m.children.map(N2)}:{},w={tag:"g",attributes:Ie({},b.inner),children:[N2(Ie({tag:m.tag,attributes:Ie(Ie({},m.attributes),b.path)},S))]},N={tag:"g",attributes:Ie({},b.outer),children:[w]},T="mask-".concat(u||r2()),A="clip-".concat(u||r2()),R={tag:"mask",attributes:Ie(Ie({},ab),{},{id:T,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[x,N]},E={tag:"defs",children:[{tag:"clipPath",attributes:{id:A},children:w7(y)},R]};return a.push(E,{tag:"rect",attributes:Ie({fill:"currentColor","clip-path":"url(#".concat(A,")"),mask:"url(#".concat(T,")")},ab)}),{children:a,attributes:o}}}},$7={provides:function(t){var n=!1;Eo.matchMedia&&(n=Eo.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var a=[],o={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};a.push({tag:"path",attributes:Ie(Ie({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var l=Ie(Ie({},i),{},{attributeName:"opacity"}),u={tag:"circle",attributes:Ie(Ie({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return n||u.children.push({tag:"animate",attributes:Ie(Ie({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ie(Ie({},l),{},{values:"1;0;1;1;0;1;"})}),a.push(u),a.push({tag:"path",attributes:Ie(Ie({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:n?[]:[{tag:"animate",attributes:Ie(Ie({},l),{},{values:"1;0;0;0;0;1;"})}]}),n||a.push({tag:"path",attributes:Ie(Ie({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Ie(Ie({},l),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:a}}}},T7={hooks:function(){return{parseNodeAttributes:function(n,a){var o=a.getAttribute("data-fa-symbol"),i=o===null?!1:o===""?!0:o;return n.symbol=i,n}}}},_7=[vq,c7,u7,d7,f7,C7,S7,N7,E7,$7,T7];kq(_7,{mixoutsTo:Ir});Ir.noAuto;var Bu=Ir.config;Ir.library;Ir.dom;var fD=Ir.parse;Ir.findIconDefinition;Ir.toHtml;var A7=Ir.icon;Ir.layer;Ir.text;Ir.counter;function D7(e){return e=e-0,e===e}function pD(e){return D7(e)?e:(e=e.replace(/[_-]+(.)?/g,(t,n)=>n?n.toUpperCase():""),e.charAt(0).toLowerCase()+e.slice(1))}function j7(e){return e.charAt(0).toUpperCase()+e.slice(1)}var vl=new Map,R7=1e3;function O7(e){if(vl.has(e))return vl.get(e);const t={};let n=0;const a=e.length;for(;n<a;){const o=e.indexOf(";",n),i=o===-1?a:o,l=e.slice(n,i).trim();if(l){const u=l.indexOf(":");if(u>0){const d=l.slice(0,u).trim(),f=l.slice(u+1).trim();if(d&&f){const m=pD(d);t[m.startsWith("webkit")?j7(m):m]=f}}}n=i+1}if(vl.size===R7){const o=vl.keys().next().value;o&&vl.delete(o)}return vl.set(e,t),t}function hD(e,t,n={}){if(typeof t=="string")return t;const a=(t.children||[]).map(f=>hD(e,f)),o=t.attributes||{},i={};for(const[f,m]of Object.entries(o))switch(!0){case f==="class":{i.className=m;break}case f==="style":{i.style=O7(String(m));break}case f.startsWith("aria-"):case f.startsWith("data-"):{i[f.toLowerCase()]=m;break}default:i[pD(f)]=m}const{style:l,"aria-label":u,...d}=n;return l&&(i.style=i.style?{...i.style,...l}:l),u&&(i["aria-label"]=u,i["aria-hidden"]="false"),e(t.tag,{...d,...i},...a)}var I7=hD.bind(null,$t.createElement),w2=(e,t)=>{const n=B.useId();return e||(t?n:void 0)},k7=class{constructor(e="react-fontawesome"){this.enabled=!1;let t=!1;try{t=typeof process<"u"&&!1}catch{}this.scope=e,this.enabled=t}log(...e){this.enabled&&console.log(`[${this.scope}]`,...e)}warn(...e){this.enabled&&console.warn(`[${this.scope}]`,...e)}error(...e){this.enabled&&console.error(`[${this.scope}]`,...e)}},M7="searchPseudoElementsFullScan"in Bu?"7.0.0":"6.0.0",P7=Number.parseInt(M7)>=7,Eu="fa",ps={beat:"fa-beat",fade:"fa-fade",beatFade:"fa-beat-fade",bounce:"fa-bounce",shake:"fa-shake",spin:"fa-spin",spinPulse:"fa-spin-pulse",spinReverse:"fa-spin-reverse",pulse:"fa-pulse"},L7={left:"fa-pull-left",right:"fa-pull-right"},B7={90:"fa-rotate-90",180:"fa-rotate-180",270:"fa-rotate-270"},q7={"2xs":"fa-2xs",xs:"fa-xs",sm:"fa-sm",lg:"fa-lg",xl:"fa-xl","2xl":"fa-2xl","1x":"fa-1x","2x":"fa-2x","3x":"fa-3x","4x":"fa-4x","5x":"fa-5x","6x":"fa-6x","7x":"fa-7x","8x":"fa-8x","9x":"fa-9x","10x":"fa-10x"},hs={border:"fa-border",fixedWidth:"fa-fw",flip:"fa-flip",flipHorizontal:"fa-flip-horizontal",flipVertical:"fa-flip-vertical",inverse:"fa-inverse",rotateBy:"fa-rotate-by",swapOpacity:"fa-swap-opacity",widthAuto:"fa-width-auto"};function F7(e){const t=Bu.cssPrefix||Bu.familyPrefix||Eu;return t===Eu?e:e.replace(new RegExp(`(?<=^|\\s)${Eu}-`,"g"),`${t}-`)}function z7(e){const{beat:t,fade:n,beatFade:a,bounce:o,shake:i,spin:l,spinPulse:u,spinReverse:d,pulse:f,fixedWidth:m,inverse:g,border:y,flip:b,size:x,rotation:S,pull:w,swapOpacity:N,rotateBy:T,widthAuto:A,className:R}=e,E=[];return R&&E.push(...R.split(" ")),t&&E.push(ps.beat),n&&E.push(ps.fade),a&&E.push(ps.beatFade),o&&E.push(ps.bounce),i&&E.push(ps.shake),l&&E.push(ps.spin),d&&E.push(ps.spinReverse),u&&E.push(ps.spinPulse),f&&E.push(ps.pulse),m&&E.push(hs.fixedWidth),g&&E.push(hs.inverse),y&&E.push(hs.border),b===!0&&E.push(hs.flip),(b==="horizontal"||b==="both")&&E.push(hs.flipHorizontal),(b==="vertical"||b==="both")&&E.push(hs.flipVertical),x!=null&&E.push(q7[x]),S!=null&&S!==0&&E.push(B7[S]),w!=null&&E.push(L7[w]),N&&E.push(hs.swapOpacity),P7?(T&&E.push(hs.rotateBy),A&&E.push(hs.widthAuto),(Bu.cssPrefix||Bu.familyPrefix||Eu)===Eu?E:E.map(F7)):E}var H7=e=>typeof e=="object"&&"icon"in e&&!!e.icon;function E2(e){if(e)return H7(e)?e:fD.icon(e)}function U7(e){return Object.keys(e)}var $2=new k7("FontAwesomeIcon"),mD={border:!1,className:"",mask:void 0,maskId:void 0,fixedWidth:!1,inverse:!1,flip:!1,icon:void 0,listItem:!1,pull:void 0,pulse:!1,rotation:void 0,rotateBy:!1,size:void 0,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:void 0,transform:void 0,swapOpacity:!1,widthAuto:!1},V7=new Set(Object.keys(mD)),Fe=$t.forwardRef((e,t)=>{const n={...mD,...e},{icon:a,mask:o,symbol:i,title:l,titleId:u,maskId:d,transform:f}=n,m=w2(d,!!o),g=w2(u,!!l),y=E2(a);if(!y)return $2.error("Icon lookup is undefined",a),null;const b=z7(n),x=typeof f=="string"?fD.transform(f):f,S=E2(o),w=A7(y,{...b.length>0&&{classes:b},...x&&{transform:x},...S&&{mask:S},symbol:i,title:l,titleId:g,maskId:m});if(!w)return $2.error("Could not find icon",y),null;const{abstract:N}=w,T={ref:t};for(const A of U7(n))V7.has(A)||(T[A]=n[A]);return I7(N[0],T)});Fe.displayName="FontAwesomeIcon";var sb={exports:{}};const G7={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var ob,T2;function Y7(){if(T2)return ob;T2=1;var e=G7;ob=t;function t(n){if(n>=55296&&n<=57343||n>1114111)return"�";n in e&&(n=e[n]);var a="";return n>65535&&(n-=65536,a+=String.fromCharCode(n>>>10&1023|55296),n=56320|n&1023),a+=String.fromCharCode(n),a}return ob}const W7="Á",X7="á",K7="Ă",Q7="ă",Z7="∾",J7="∿",eF="∾̳",tF="Â",nF="â",rF="´",aF="А",sF="а",oF="Æ",iF="æ",lF="⁡",cF="𝔄",uF="𝔞",dF="À",fF="à",pF="ℵ",hF="ℵ",mF="Α",gF="α",yF="Ā",bF="ā",vF="⨿",xF="&",CF="&",SF="⩕",NF="⩓",wF="∧",EF="⩜",$F="⩘",TF="⩚",_F="∠",AF="⦤",DF="∠",jF="⦨",RF="⦩",OF="⦪",IF="⦫",kF="⦬",MF="⦭",PF="⦮",LF="⦯",BF="∡",qF="∟",FF="⊾",zF="⦝",HF="∢",UF="Å",VF="⍼",GF="Ą",YF="ą",WF="𝔸",XF="𝕒",KF="⩯",QF="≈",ZF="⩰",JF="≊",e9="≋",t9="'",n9="⁡",r9="≈",a9="≊",s9="Å",o9="å",i9="𝒜",l9="𝒶",c9="≔",u9="*",d9="≈",f9="≍",p9="Ã",h9="ã",m9="Ä",g9="ä",y9="∳",b9="⨑",v9="≌",x9="϶",C9="‵",S9="∽",N9="⋍",w9="∖",E9="⫧",$9="⊽",T9="⌅",_9="⌆",A9="⌅",D9="⎵",j9="⎶",R9="≌",O9="Б",I9="б",k9="„",M9="∵",P9="∵",L9="∵",B9="⦰",q9="϶",F9="ℬ",z9="ℬ",H9="Β",U9="β",V9="ℶ",G9="≬",Y9="𝔅",W9="𝔟",X9="⋂",K9="◯",Q9="⋃",Z9="⨀",J9="⨁",ez="⨂",tz="⨆",nz="★",rz="▽",az="△",sz="⨄",oz="⋁",iz="⋀",lz="⤍",cz="⧫",uz="▪",dz="▴",fz="▾",pz="◂",hz="▸",mz="␣",gz="▒",yz="░",bz="▓",vz="█",xz="=⃥",Cz="≡⃥",Sz="⫭",Nz="⌐",wz="𝔹",Ez="𝕓",$z="⊥",Tz="⊥",_z="⋈",Az="⧉",Dz="┐",jz="╕",Rz="╖",Oz="╗",Iz="┌",kz="╒",Mz="╓",Pz="╔",Lz="─",Bz="═",qz="┬",Fz="╤",zz="╥",Hz="╦",Uz="┴",Vz="╧",Gz="╨",Yz="╩",Wz="⊟",Xz="⊞",Kz="⊠",Qz="┘",Zz="╛",Jz="╜",eH="╝",tH="└",nH="╘",rH="╙",aH="╚",sH="│",oH="║",iH="┼",lH="╪",cH="╫",uH="╬",dH="┤",fH="╡",pH="╢",hH="╣",mH="├",gH="╞",yH="╟",bH="╠",vH="‵",xH="˘",CH="˘",SH="¦",NH="𝒷",wH="ℬ",EH="⁏",$H="∽",TH="⋍",_H="⧅",AH="\\",DH="⟈",jH="•",RH="•",OH="≎",IH="⪮",kH="≏",MH="≎",PH="≏",LH="Ć",BH="ć",qH="⩄",FH="⩉",zH="⩋",HH="∩",UH="⋒",VH="⩇",GH="⩀",YH="ⅅ",WH="∩︀",XH="⁁",KH="ˇ",QH="ℭ",ZH="⩍",JH="Č",eU="č",tU="Ç",nU="ç",rU="Ĉ",aU="ĉ",sU="∰",oU="⩌",iU="⩐",lU="Ċ",cU="ċ",uU="¸",dU="¸",fU="⦲",pU="¢",hU="·",mU="·",gU="𝔠",yU="ℭ",bU="Ч",vU="ч",xU="✓",CU="✓",SU="Χ",NU="χ",wU="ˆ",EU="≗",$U="↺",TU="↻",_U="⊛",AU="⊚",DU="⊝",jU="⊙",RU="®",OU="Ⓢ",IU="⊖",kU="⊕",MU="⊗",PU="○",LU="⧃",BU="≗",qU="⨐",FU="⫯",zU="⧂",HU="∲",UU="”",VU="’",GU="♣",YU="♣",WU=":",XU="∷",KU="⩴",QU="≔",ZU="≔",JU=",",eV="@",tV="∁",nV="∘",rV="∁",aV="ℂ",sV="≅",oV="⩭",iV="≡",lV="∮",cV="∯",uV="∮",dV="𝕔",fV="ℂ",pV="∐",hV="∐",mV="©",gV="©",yV="℗",bV="∳",vV="↵",xV="✗",CV="⨯",SV="𝒞",NV="𝒸",wV="⫏",EV="⫑",$V="⫐",TV="⫒",_V="⋯",AV="⤸",DV="⤵",jV="⋞",RV="⋟",OV="↶",IV="⤽",kV="⩈",MV="⩆",PV="≍",LV="∪",BV="⋓",qV="⩊",FV="⊍",zV="⩅",HV="∪︀",UV="↷",VV="⤼",GV="⋞",YV="⋟",WV="⋎",XV="⋏",KV="¤",QV="↶",ZV="↷",JV="⋎",eG="⋏",tG="∲",nG="∱",rG="⌭",aG="†",sG="‡",oG="ℸ",iG="↓",lG="↡",cG="⇓",uG="‐",dG="⫤",fG="⊣",pG="⤏",hG="˝",mG="Ď",gG="ď",yG="Д",bG="д",vG="‡",xG="⇊",CG="ⅅ",SG="ⅆ",NG="⤑",wG="⩷",EG="°",$G="∇",TG="Δ",_G="δ",AG="⦱",DG="⥿",jG="𝔇",RG="𝔡",OG="⥥",IG="⇃",kG="⇂",MG="´",PG="˙",LG="˝",BG="`",qG="˜",FG="⋄",zG="⋄",HG="⋄",UG="♦",VG="♦",GG="¨",YG="ⅆ",WG="ϝ",XG="⋲",KG="÷",QG="÷",ZG="⋇",JG="⋇",eY="Ђ",tY="ђ",nY="⌞",rY="⌍",aY="$",sY="𝔻",oY="𝕕",iY="¨",lY="˙",cY="⃜",uY="≐",dY="≑",fY="≐",pY="∸",hY="∔",mY="⊡",gY="⌆",yY="∯",bY="¨",vY="⇓",xY="⇐",CY="⇔",SY="⫤",NY="⟸",wY="⟺",EY="⟹",$Y="⇒",TY="⊨",_Y="⇑",AY="⇕",DY="∥",jY="⤓",RY="↓",OY="↓",IY="⇓",kY="⇵",MY="̑",PY="⇊",LY="⇃",BY="⇂",qY="⥐",FY="⥞",zY="⥖",HY="↽",UY="⥟",VY="⥗",GY="⇁",YY="↧",WY="⊤",XY="⤐",KY="⌟",QY="⌌",ZY="𝒟",JY="𝒹",eW="Ѕ",tW="ѕ",nW="⧶",rW="Đ",aW="đ",sW="⋱",oW="▿",iW="▾",lW="⇵",cW="⥯",uW="⦦",dW="Џ",fW="џ",pW="⟿",hW="É",mW="é",gW="⩮",yW="Ě",bW="ě",vW="Ê",xW="ê",CW="≖",SW="≕",NW="Э",wW="э",EW="⩷",$W="Ė",TW="ė",_W="≑",AW="ⅇ",DW="≒",jW="𝔈",RW="𝔢",OW="⪚",IW="È",kW="è",MW="⪖",PW="⪘",LW="⪙",BW="∈",qW="⏧",FW="ℓ",zW="⪕",HW="⪗",UW="Ē",VW="ē",GW="∅",YW="∅",WW="◻",XW="∅",KW="▫",QW=" ",ZW=" ",JW=" ",eX="Ŋ",tX="ŋ",nX=" ",rX="Ę",aX="ę",sX="𝔼",oX="𝕖",iX="⋕",lX="⧣",cX="⩱",uX="ε",dX="Ε",fX="ε",pX="ϵ",hX="≖",mX="≕",gX="≂",yX="⪖",bX="⪕",vX="⩵",xX="=",CX="≂",SX="≟",NX="⇌",wX="≡",EX="⩸",$X="⧥",TX="⥱",_X="≓",AX="ℯ",DX="ℰ",jX="≐",RX="⩳",OX="≂",IX="Η",kX="η",MX="Ð",PX="ð",LX="Ë",BX="ë",qX="€",FX="!",zX="∃",HX="∃",UX="ℰ",VX="ⅇ",GX="ⅇ",YX="≒",WX="Ф",XX="ф",KX="♀",QX="ffi",ZX="ff",JX="ffl",eK="𝔉",tK="𝔣",nK="fi",rK="◼",aK="▪",sK="fj",oK="♭",iK="fl",lK="▱",cK="ƒ",uK="𝔽",dK="𝕗",fK="∀",pK="∀",hK="⋔",mK="⫙",gK="ℱ",yK="⨍",bK="½",vK="⅓",xK="¼",CK="⅕",SK="⅙",NK="⅛",wK="⅔",EK="⅖",$K="¾",TK="⅗",_K="⅜",AK="⅘",DK="⅚",jK="⅝",RK="⅞",OK="⁄",IK="⌢",kK="𝒻",MK="ℱ",PK="ǵ",LK="Γ",BK="γ",qK="Ϝ",FK="ϝ",zK="⪆",HK="Ğ",UK="ğ",VK="Ģ",GK="Ĝ",YK="ĝ",WK="Г",XK="г",KK="Ġ",QK="ġ",ZK="≥",JK="≧",eQ="⪌",tQ="⋛",nQ="≥",rQ="≧",aQ="⩾",sQ="⪩",oQ="⩾",iQ="⪀",lQ="⪂",cQ="⪄",uQ="⋛︀",dQ="⪔",fQ="𝔊",pQ="𝔤",hQ="≫",mQ="⋙",gQ="⋙",yQ="ℷ",bQ="Ѓ",vQ="ѓ",xQ="⪥",CQ="≷",SQ="⪒",NQ="⪤",wQ="⪊",EQ="⪊",$Q="⪈",TQ="≩",_Q="⪈",AQ="≩",DQ="⋧",jQ="𝔾",RQ="𝕘",OQ="`",IQ="≥",kQ="⋛",MQ="≧",PQ="⪢",LQ="≷",BQ="⩾",qQ="≳",FQ="𝒢",zQ="ℊ",HQ="≳",UQ="⪎",VQ="⪐",GQ="⪧",YQ="⩺",WQ=">",XQ=">",KQ="≫",QQ="⋗",ZQ="⦕",JQ="⩼",eZ="⪆",tZ="⥸",nZ="⋗",rZ="⋛",aZ="⪌",sZ="≷",oZ="≳",iZ="≩︀",lZ="≩︀",cZ="ˇ",uZ=" ",dZ="½",fZ="ℋ",pZ="Ъ",hZ="ъ",mZ="⥈",gZ="↔",yZ="⇔",bZ="↭",vZ="^",xZ="ℏ",CZ="Ĥ",SZ="ĥ",NZ="♥",wZ="♥",EZ="…",$Z="⊹",TZ="𝔥",_Z="ℌ",AZ="ℋ",DZ="⤥",jZ="⤦",RZ="⇿",OZ="∻",IZ="↩",kZ="↪",MZ="𝕙",PZ="ℍ",LZ="―",BZ="─",qZ="𝒽",FZ="ℋ",zZ="ℏ",HZ="Ħ",UZ="ħ",VZ="≎",GZ="≏",YZ="⁃",WZ="‐",XZ="Í",KZ="í",QZ="⁣",ZZ="Î",JZ="î",eJ="И",tJ="и",nJ="İ",rJ="Е",aJ="е",sJ="¡",oJ="⇔",iJ="𝔦",lJ="ℑ",cJ="Ì",uJ="ì",dJ="ⅈ",fJ="⨌",pJ="∭",hJ="⧜",mJ="℩",gJ="IJ",yJ="ij",bJ="Ī",vJ="ī",xJ="ℑ",CJ="ⅈ",SJ="ℐ",NJ="ℑ",wJ="ı",EJ="ℑ",$J="⊷",TJ="Ƶ",_J="⇒",AJ="℅",DJ="∞",jJ="⧝",RJ="ı",OJ="⊺",IJ="∫",kJ="∬",MJ="ℤ",PJ="∫",LJ="⊺",BJ="⋂",qJ="⨗",FJ="⨼",zJ="⁣",HJ="⁢",UJ="Ё",VJ="ё",GJ="Į",YJ="į",WJ="𝕀",XJ="𝕚",KJ="Ι",QJ="ι",ZJ="⨼",JJ="¿",eee="𝒾",tee="ℐ",nee="∈",ree="⋵",aee="⋹",see="⋴",oee="⋳",iee="∈",lee="⁢",cee="Ĩ",uee="ĩ",dee="І",fee="і",pee="Ï",hee="ï",mee="Ĵ",gee="ĵ",yee="Й",bee="й",vee="𝔍",xee="𝔧",Cee="ȷ",See="𝕁",Nee="𝕛",wee="𝒥",Eee="𝒿",$ee="Ј",Tee="ј",_ee="Є",Aee="є",Dee="Κ",jee="κ",Ree="ϰ",Oee="Ķ",Iee="ķ",kee="К",Mee="к",Pee="𝔎",Lee="𝔨",Bee="ĸ",qee="Х",Fee="х",zee="Ќ",Hee="ќ",Uee="𝕂",Vee="𝕜",Gee="𝒦",Yee="𝓀",Wee="⇚",Xee="Ĺ",Kee="ĺ",Qee="⦴",Zee="ℒ",Jee="Λ",ete="λ",tte="⟨",nte="⟪",rte="⦑",ate="⟨",ste="⪅",ote="ℒ",ite="«",lte="⇤",cte="⤟",ute="←",dte="↞",fte="⇐",pte="⤝",hte="↩",mte="↫",gte="⤹",yte="⥳",bte="↢",vte="⤙",xte="⤛",Cte="⪫",Ste="⪭",Nte="⪭︀",wte="⤌",Ete="⤎",$te="❲",Tte="{",_te="[",Ate="⦋",Dte="⦏",jte="⦍",Rte="Ľ",Ote="ľ",Ite="Ļ",kte="ļ",Mte="⌈",Pte="{",Lte="Л",Bte="л",qte="⤶",Fte="“",zte="„",Hte="⥧",Ute="⥋",Vte="↲",Gte="≤",Yte="≦",Wte="⟨",Xte="⇤",Kte="←",Qte="←",Zte="⇐",Jte="⇆",ene="↢",tne="⌈",nne="⟦",rne="⥡",ane="⥙",sne="⇃",one="⌊",ine="↽",lne="↼",cne="⇇",une="↔",dne="↔",fne="⇔",pne="⇆",hne="⇋",mne="↭",gne="⥎",yne="↤",bne="⊣",vne="⥚",xne="⋋",Cne="⧏",Sne="⊲",Nne="⊴",wne="⥑",Ene="⥠",$ne="⥘",Tne="↿",_ne="⥒",Ane="↼",Dne="⪋",jne="⋚",Rne="≤",One="≦",Ine="⩽",kne="⪨",Mne="⩽",Pne="⩿",Lne="⪁",Bne="⪃",qne="⋚︀",Fne="⪓",zne="⪅",Hne="⋖",Une="⋚",Vne="⪋",Gne="⋚",Yne="≦",Wne="≶",Xne="≶",Kne="⪡",Qne="≲",Zne="⩽",Jne="≲",ere="⥼",tre="⌊",nre="𝔏",rre="𝔩",are="≶",sre="⪑",ore="⥢",ire="↽",lre="↼",cre="⥪",ure="▄",dre="Љ",fre="љ",pre="⇇",hre="≪",mre="⋘",gre="⌞",yre="⇚",bre="⥫",vre="◺",xre="Ŀ",Cre="ŀ",Sre="⎰",Nre="⎰",wre="⪉",Ere="⪉",$re="⪇",Tre="≨",_re="⪇",Are="≨",Dre="⋦",jre="⟬",Rre="⇽",Ore="⟦",Ire="⟵",kre="⟵",Mre="⟸",Pre="⟷",Lre="⟷",Bre="⟺",qre="⟼",Fre="⟶",zre="⟶",Hre="⟹",Ure="↫",Vre="↬",Gre="⦅",Yre="𝕃",Wre="𝕝",Xre="⨭",Kre="⨴",Qre="∗",Zre="_",Jre="↙",eae="↘",tae="◊",nae="◊",rae="⧫",aae="(",sae="⦓",oae="⇆",iae="⌟",lae="⇋",cae="⥭",uae="‎",dae="⊿",fae="‹",pae="𝓁",hae="ℒ",mae="↰",gae="↰",yae="≲",bae="⪍",vae="⪏",xae="[",Cae="‘",Sae="‚",Nae="Ł",wae="ł",Eae="⪦",$ae="⩹",Tae="<",_ae="<",Aae="≪",Dae="⋖",jae="⋋",Rae="⋉",Oae="⥶",Iae="⩻",kae="◃",Mae="⊴",Pae="◂",Lae="⦖",Bae="⥊",qae="⥦",Fae="≨︀",zae="≨︀",Hae="¯",Uae="♂",Vae="✠",Gae="✠",Yae="↦",Wae="↦",Xae="↧",Kae="↤",Qae="↥",Zae="▮",Jae="⨩",ese="М",tse="м",nse="—",rse="∺",ase="∡",sse=" ",ose="ℳ",ise="𝔐",lse="𝔪",cse="℧",use="µ",dse="*",fse="⫰",pse="∣",hse="·",mse="⊟",gse="−",yse="∸",bse="⨪",vse="∓",xse="⫛",Cse="…",Sse="∓",Nse="⊧",wse="𝕄",Ese="𝕞",$se="∓",Tse="𝓂",_se="ℳ",Ase="∾",Dse="Μ",jse="μ",Rse="⊸",Ose="⊸",Ise="∇",kse="Ń",Mse="ń",Pse="∠⃒",Lse="≉",Bse="⩰̸",qse="≋̸",Fse="ʼn",zse="≉",Hse="♮",Use="ℕ",Vse="♮",Gse=" ",Yse="≎̸",Wse="≏̸",Xse="⩃",Kse="Ň",Qse="ň",Zse="Ņ",Jse="ņ",eoe="≇",toe="⩭̸",noe="⩂",roe="Н",aoe="н",soe="–",ooe="⤤",ioe="↗",loe="⇗",coe="↗",uoe="≠",doe="≐̸",foe="​",poe="​",hoe="​",moe="​",goe="≢",yoe="⤨",boe="≂̸",voe="≫",xoe="≪",Coe=`
`,Soe="∄",Noe="∄",woe="𝔑",Eoe="𝔫",$oe="≧̸",Toe="≱",_oe="≱",Aoe="≧̸",Doe="⩾̸",joe="⩾̸",Roe="⋙̸",Ooe="≵",Ioe="≫⃒",koe="≯",Moe="≯",Poe="≫̸",Loe="↮",Boe="⇎",qoe="⫲",Foe="∋",zoe="⋼",Hoe="⋺",Uoe="∋",Voe="Њ",Goe="њ",Yoe="↚",Woe="⇍",Xoe="‥",Koe="≦̸",Qoe="≰",Zoe="↚",Joe="⇍",eie="↮",tie="⇎",nie="≰",rie="≦̸",aie="⩽̸",sie="⩽̸",oie="≮",iie="⋘̸",lie="≴",cie="≪⃒",uie="≮",die="⋪",fie="⋬",pie="≪̸",hie="∤",mie="⁠",gie=" ",yie="𝕟",bie="ℕ",vie="⫬",xie="¬",Cie="≢",Sie="≭",Nie="∦",wie="∉",Eie="≠",$ie="≂̸",Tie="∄",_ie="≯",Aie="≱",Die="≧̸",jie="≫̸",Rie="≹",Oie="⩾̸",Iie="≵",kie="≎̸",Mie="≏̸",Pie="∉",Lie="⋵̸",Bie="⋹̸",qie="∉",Fie="⋷",zie="⋶",Hie="⧏̸",Uie="⋪",Vie="⋬",Gie="≮",Yie="≰",Wie="≸",Xie="≪̸",Kie="⩽̸",Qie="≴",Zie="⪢̸",Jie="⪡̸",ele="∌",tle="∌",nle="⋾",rle="⋽",ale="⊀",sle="⪯̸",ole="⋠",ile="∌",lle="⧐̸",cle="⋫",ule="⋭",dle="⊏̸",fle="⋢",ple="⊐̸",hle="⋣",mle="⊂⃒",gle="⊈",yle="⊁",ble="⪰̸",vle="⋡",xle="≿̸",Cle="⊃⃒",Sle="⊉",Nle="≁",wle="≄",Ele="≇",$le="≉",Tle="∤",_le="∦",Ale="∦",Dle="⫽⃥",jle="∂̸",Rle="⨔",Ole="⊀",Ile="⋠",kle="⊀",Mle="⪯̸",Ple="⪯̸",Lle="⤳̸",Ble="↛",qle="⇏",Fle="↝̸",zle="↛",Hle="⇏",Ule="⋫",Vle="⋭",Gle="⊁",Yle="⋡",Wle="⪰̸",Xle="𝒩",Kle="𝓃",Qle="∤",Zle="∦",Jle="≁",ece="≄",tce="≄",nce="∤",rce="∦",ace="⋢",sce="⋣",oce="⊄",ice="⫅̸",lce="⊈",cce="⊂⃒",uce="⊈",dce="⫅̸",fce="⊁",pce="⪰̸",hce="⊅",mce="⫆̸",gce="⊉",yce="⊃⃒",bce="⊉",vce="⫆̸",xce="≹",Cce="Ñ",Sce="ñ",Nce="≸",wce="⋪",Ece="⋬",$ce="⋫",Tce="⋭",_ce="Ν",Ace="ν",Dce="#",jce="№",Rce=" ",Oce="≍⃒",Ice="⊬",kce="⊭",Mce="⊮",Pce="⊯",Lce="≥⃒",Bce=">⃒",qce="⤄",Fce="⧞",zce="⤂",Hce="≤⃒",Uce="<⃒",Vce="⊴⃒",Gce="⤃",Yce="⊵⃒",Wce="∼⃒",Xce="⤣",Kce="↖",Qce="⇖",Zce="↖",Jce="⤧",eue="Ó",tue="ó",nue="⊛",rue="Ô",aue="ô",sue="⊚",oue="О",iue="о",lue="⊝",cue="Ő",uue="ő",due="⨸",fue="⊙",pue="⦼",hue="Œ",mue="œ",gue="⦿",yue="𝔒",bue="𝔬",vue="˛",xue="Ò",Cue="ò",Sue="⧁",Nue="⦵",wue="Ω",Eue="∮",$ue="↺",Tue="⦾",_ue="⦻",Aue="‾",Due="⧀",jue="Ō",Rue="ō",Oue="Ω",Iue="ω",kue="Ο",Mue="ο",Pue="⦶",Lue="⊖",Bue="𝕆",que="𝕠",Fue="⦷",zue="“",Hue="‘",Uue="⦹",Vue="⊕",Gue="↻",Yue="⩔",Wue="∨",Xue="⩝",Kue="ℴ",Que="ℴ",Zue="ª",Jue="º",ede="⊶",tde="⩖",nde="⩗",rde="⩛",ade="Ⓢ",sde="𝒪",ode="ℴ",ide="Ø",lde="ø",cde="⊘",ude="Õ",dde="õ",fde="⨶",pde="⨷",hde="⊗",mde="Ö",gde="ö",yde="⌽",bde="‾",vde="⏞",xde="⎴",Cde="⏜",Sde="¶",Nde="∥",wde="∥",Ede="⫳",$de="⫽",Tde="∂",_de="∂",Ade="П",Dde="п",jde="%",Rde=".",Ode="‰",Ide="⊥",kde="‱",Mde="𝔓",Pde="𝔭",Lde="Φ",Bde="φ",qde="ϕ",Fde="ℳ",zde="☎",Hde="Π",Ude="π",Vde="⋔",Gde="ϖ",Yde="ℏ",Wde="ℎ",Xde="ℏ",Kde="⨣",Qde="⊞",Zde="⨢",Jde="+",efe="∔",tfe="⨥",nfe="⩲",rfe="±",afe="±",sfe="⨦",ofe="⨧",ife="±",lfe="ℌ",cfe="⨕",ufe="𝕡",dfe="ℙ",ffe="£",pfe="⪷",hfe="⪻",mfe="≺",gfe="≼",yfe="⪷",bfe="≺",vfe="≼",xfe="≺",Cfe="⪯",Sfe="≼",Nfe="≾",wfe="⪯",Efe="⪹",$fe="⪵",Tfe="⋨",_fe="⪯",Afe="⪳",Dfe="≾",jfe="′",Rfe="″",Ofe="ℙ",Ife="⪹",kfe="⪵",Mfe="⋨",Pfe="∏",Lfe="∏",Bfe="⌮",qfe="⌒",Ffe="⌓",zfe="∝",Hfe="∝",Ufe="∷",Vfe="∝",Gfe="≾",Yfe="⊰",Wfe="𝒫",Xfe="𝓅",Kfe="Ψ",Qfe="ψ",Zfe=" ",Jfe="𝔔",epe="𝔮",tpe="⨌",npe="𝕢",rpe="ℚ",ape="⁗",spe="𝒬",ope="𝓆",ipe="ℍ",lpe="⨖",cpe="?",upe="≟",dpe='"',fpe='"',ppe="⇛",hpe="∽̱",mpe="Ŕ",gpe="ŕ",ype="√",bpe="⦳",vpe="⟩",xpe="⟫",Cpe="⦒",Spe="⦥",Npe="⟩",wpe="»",Epe="⥵",$pe="⇥",Tpe="⤠",_pe="⤳",Ape="→",Dpe="↠",jpe="⇒",Rpe="⤞",Ope="↪",Ipe="↬",kpe="⥅",Mpe="⥴",Ppe="⤖",Lpe="↣",Bpe="↝",qpe="⤚",Fpe="⤜",zpe="∶",Hpe="ℚ",Upe="⤍",Vpe="⤏",Gpe="⤐",Ype="❳",Wpe="}",Xpe="]",Kpe="⦌",Qpe="⦎",Zpe="⦐",Jpe="Ř",ehe="ř",the="Ŗ",nhe="ŗ",rhe="⌉",ahe="}",she="Р",ohe="р",ihe="⤷",lhe="⥩",che="”",uhe="”",dhe="↳",fhe="ℜ",phe="ℛ",hhe="ℜ",mhe="ℝ",ghe="ℜ",yhe="▭",bhe="®",vhe="®",xhe="∋",Che="⇋",She="⥯",Nhe="⥽",whe="⌋",Ehe="𝔯",$he="ℜ",The="⥤",_he="⇁",Ahe="⇀",Dhe="⥬",jhe="Ρ",Rhe="ρ",Ohe="ϱ",Ihe="⟩",khe="⇥",Mhe="→",Phe="→",Lhe="⇒",Bhe="⇄",qhe="↣",Fhe="⌉",zhe="⟧",Hhe="⥝",Uhe="⥕",Vhe="⇂",Ghe="⌋",Yhe="⇁",Whe="⇀",Xhe="⇄",Khe="⇌",Qhe="⇉",Zhe="↝",Jhe="↦",eme="⊢",tme="⥛",nme="⋌",rme="⧐",ame="⊳",sme="⊵",ome="⥏",ime="⥜",lme="⥔",cme="↾",ume="⥓",dme="⇀",fme="˚",pme="≓",hme="⇄",mme="⇌",gme="‏",yme="⎱",bme="⎱",vme="⫮",xme="⟭",Cme="⇾",Sme="⟧",Nme="⦆",wme="𝕣",Eme="ℝ",$me="⨮",Tme="⨵",_me="⥰",Ame=")",Dme="⦔",jme="⨒",Rme="⇉",Ome="⇛",Ime="›",kme="𝓇",Mme="ℛ",Pme="↱",Lme="↱",Bme="]",qme="’",Fme="’",zme="⋌",Hme="⋊",Ume="▹",Vme="⊵",Gme="▸",Yme="⧎",Wme="⧴",Xme="⥨",Kme="℞",Qme="Ś",Zme="ś",Jme="‚",ege="⪸",tge="Š",nge="š",rge="⪼",age="≻",sge="≽",oge="⪰",ige="⪴",lge="Ş",cge="ş",uge="Ŝ",dge="ŝ",fge="⪺",pge="⪶",hge="⋩",mge="⨓",gge="≿",yge="С",bge="с",vge="⊡",xge="⋅",Cge="⩦",Sge="⤥",Nge="↘",wge="⇘",Ege="↘",$ge="§",Tge=";",_ge="⤩",Age="∖",Dge="∖",jge="✶",Rge="𝔖",Oge="𝔰",Ige="⌢",kge="♯",Mge="Щ",Pge="щ",Lge="Ш",Bge="ш",qge="↓",Fge="←",zge="∣",Hge="∥",Uge="→",Vge="↑",Gge="­",Yge="Σ",Wge="σ",Xge="ς",Kge="ς",Qge="∼",Zge="⩪",Jge="≃",eye="≃",tye="⪞",nye="⪠",rye="⪝",aye="⪟",sye="≆",oye="⨤",iye="⥲",lye="←",cye="∘",uye="∖",dye="⨳",fye="⧤",pye="∣",hye="⌣",mye="⪪",gye="⪬",yye="⪬︀",bye="Ь",vye="ь",xye="⌿",Cye="⧄",Sye="/",Nye="𝕊",wye="𝕤",Eye="♠",$ye="♠",Tye="∥",_ye="⊓",Aye="⊓︀",Dye="⊔",jye="⊔︀",Rye="√",Oye="⊏",Iye="⊑",kye="⊏",Mye="⊑",Pye="⊐",Lye="⊒",Bye="⊐",qye="⊒",Fye="□",zye="□",Hye="⊓",Uye="⊏",Vye="⊑",Gye="⊐",Yye="⊒",Wye="⊔",Xye="▪",Kye="□",Qye="▪",Zye="→",Jye="𝒮",ebe="𝓈",tbe="∖",nbe="⌣",rbe="⋆",abe="⋆",sbe="☆",obe="★",ibe="ϵ",lbe="ϕ",cbe="¯",ube="⊂",dbe="⋐",fbe="⪽",pbe="⫅",hbe="⊆",mbe="⫃",gbe="⫁",ybe="⫋",bbe="⊊",vbe="⪿",xbe="⥹",Cbe="⊂",Sbe="⋐",Nbe="⊆",wbe="⫅",Ebe="⊆",$be="⊊",Tbe="⫋",_be="⫇",Abe="⫕",Dbe="⫓",jbe="⪸",Rbe="≻",Obe="≽",Ibe="≻",kbe="⪰",Mbe="≽",Pbe="≿",Lbe="⪰",Bbe="⪺",qbe="⪶",Fbe="⋩",zbe="≿",Hbe="∋",Ube="∑",Vbe="∑",Gbe="♪",Ybe="¹",Wbe="²",Xbe="³",Kbe="⊃",Qbe="⋑",Zbe="⪾",Jbe="⫘",e0e="⫆",t0e="⊇",n0e="⫄",r0e="⊃",a0e="⊇",s0e="⟉",o0e="⫗",i0e="⥻",l0e="⫂",c0e="⫌",u0e="⊋",d0e="⫀",f0e="⊃",p0e="⋑",h0e="⊇",m0e="⫆",g0e="⊋",y0e="⫌",b0e="⫈",v0e="⫔",x0e="⫖",C0e="⤦",S0e="↙",N0e="⇙",w0e="↙",E0e="⤪",$0e="ß",T0e="	",_0e="⌖",A0e="Τ",D0e="τ",j0e="⎴",R0e="Ť",O0e="ť",I0e="Ţ",k0e="ţ",M0e="Т",P0e="т",L0e="⃛",B0e="⌕",q0e="𝔗",F0e="𝔱",z0e="∴",H0e="∴",U0e="∴",V0e="Θ",G0e="θ",Y0e="ϑ",W0e="ϑ",X0e="≈",K0e="∼",Q0e="  ",Z0e=" ",J0e=" ",eve="≈",tve="∼",nve="Þ",rve="þ",ave="˜",sve="∼",ove="≃",ive="≅",lve="≈",cve="⨱",uve="⊠",dve="×",fve="⨰",pve="∭",hve="⤨",mve="⌶",gve="⫱",yve="⊤",bve="𝕋",vve="𝕥",xve="⫚",Cve="⤩",Sve="‴",Nve="™",wve="™",Eve="▵",$ve="▿",Tve="◃",_ve="⊴",Ave="≜",Dve="▹",jve="⊵",Rve="◬",Ove="≜",Ive="⨺",kve="⃛",Mve="⨹",Pve="⧍",Lve="⨻",Bve="⏢",qve="𝒯",Fve="𝓉",zve="Ц",Hve="ц",Uve="Ћ",Vve="ћ",Gve="Ŧ",Yve="ŧ",Wve="≬",Xve="↞",Kve="↠",Qve="Ú",Zve="ú",Jve="↑",e1e="↟",t1e="⇑",n1e="⥉",r1e="Ў",a1e="ў",s1e="Ŭ",o1e="ŭ",i1e="Û",l1e="û",c1e="У",u1e="у",d1e="⇅",f1e="Ű",p1e="ű",h1e="⥮",m1e="⥾",g1e="𝔘",y1e="𝔲",b1e="Ù",v1e="ù",x1e="⥣",C1e="↿",S1e="↾",N1e="▀",w1e="⌜",E1e="⌜",$1e="⌏",T1e="◸",_1e="Ū",A1e="ū",D1e="¨",j1e="_",R1e="⏟",O1e="⎵",I1e="⏝",k1e="⋃",M1e="⊎",P1e="Ų",L1e="ų",B1e="𝕌",q1e="𝕦",F1e="⤒",z1e="↑",H1e="↑",U1e="⇑",V1e="⇅",G1e="↕",Y1e="↕",W1e="⇕",X1e="⥮",K1e="↿",Q1e="↾",Z1e="⊎",J1e="↖",exe="↗",txe="υ",nxe="ϒ",rxe="ϒ",axe="Υ",sxe="υ",oxe="↥",ixe="⊥",lxe="⇈",cxe="⌝",uxe="⌝",dxe="⌎",fxe="Ů",pxe="ů",hxe="◹",mxe="𝒰",gxe="𝓊",yxe="⋰",bxe="Ũ",vxe="ũ",xxe="▵",Cxe="▴",Sxe="⇈",Nxe="Ü",wxe="ü",Exe="⦧",$xe="⦜",Txe="ϵ",_xe="ϰ",Axe="∅",Dxe="ϕ",jxe="ϖ",Rxe="∝",Oxe="↕",Ixe="⇕",kxe="ϱ",Mxe="ς",Pxe="⊊︀",Lxe="⫋︀",Bxe="⊋︀",qxe="⫌︀",Fxe="ϑ",zxe="⊲",Hxe="⊳",Uxe="⫨",Vxe="⫫",Gxe="⫩",Yxe="В",Wxe="в",Xxe="⊢",Kxe="⊨",Qxe="⊩",Zxe="⊫",Jxe="⫦",eCe="⊻",tCe="∨",nCe="⋁",rCe="≚",aCe="⋮",sCe="|",oCe="‖",iCe="|",lCe="‖",cCe="∣",uCe="|",dCe="❘",fCe="≀",pCe=" ",hCe="𝔙",mCe="𝔳",gCe="⊲",yCe="⊂⃒",bCe="⊃⃒",vCe="𝕍",xCe="𝕧",CCe="∝",SCe="⊳",NCe="𝒱",wCe="𝓋",ECe="⫋︀",$Ce="⊊︀",TCe="⫌︀",_Ce="⊋︀",ACe="⊪",DCe="⦚",jCe="Ŵ",RCe="ŵ",OCe="⩟",ICe="∧",kCe="⋀",MCe="≙",PCe="℘",LCe="𝔚",BCe="𝔴",qCe="𝕎",FCe="𝕨",zCe="℘",HCe="≀",UCe="≀",VCe="𝒲",GCe="𝓌",YCe="⋂",WCe="◯",XCe="⋃",KCe="▽",QCe="𝔛",ZCe="𝔵",JCe="⟷",eSe="⟺",tSe="Ξ",nSe="ξ",rSe="⟵",aSe="⟸",sSe="⟼",oSe="⋻",iSe="⨀",lSe="𝕏",cSe="𝕩",uSe="⨁",dSe="⨂",fSe="⟶",pSe="⟹",hSe="𝒳",mSe="𝓍",gSe="⨆",ySe="⨄",bSe="△",vSe="⋁",xSe="⋀",CSe="Ý",SSe="ý",NSe="Я",wSe="я",ESe="Ŷ",$Se="ŷ",TSe="Ы",_Se="ы",ASe="¥",DSe="𝔜",jSe="𝔶",RSe="Ї",OSe="ї",ISe="𝕐",kSe="𝕪",MSe="𝒴",PSe="𝓎",LSe="Ю",BSe="ю",qSe="ÿ",FSe="Ÿ",zSe="Ź",HSe="ź",USe="Ž",VSe="ž",GSe="З",YSe="з",WSe="Ż",XSe="ż",KSe="ℨ",QSe="​",ZSe="Ζ",JSe="ζ",eNe="𝔷",tNe="ℨ",nNe="Ж",rNe="ж",aNe="⇝",sNe="𝕫",oNe="ℤ",iNe="𝒵",lNe="𝓏",cNe="‍",uNe="‌",dNe={Aacute:W7,aacute:X7,Abreve:K7,abreve:Q7,ac:Z7,acd:J7,acE:eF,Acirc:tF,acirc:nF,acute:rF,Acy:aF,acy:sF,AElig:oF,aelig:iF,af:lF,Afr:cF,afr:uF,Agrave:dF,agrave:fF,alefsym:pF,aleph:hF,Alpha:mF,alpha:gF,Amacr:yF,amacr:bF,amalg:vF,amp:xF,AMP:CF,andand:SF,And:NF,and:wF,andd:EF,andslope:$F,andv:TF,ang:_F,ange:AF,angle:DF,angmsdaa:jF,angmsdab:RF,angmsdac:OF,angmsdad:IF,angmsdae:kF,angmsdaf:MF,angmsdag:PF,angmsdah:LF,angmsd:BF,angrt:qF,angrtvb:FF,angrtvbd:zF,angsph:HF,angst:UF,angzarr:VF,Aogon:GF,aogon:YF,Aopf:WF,aopf:XF,apacir:KF,ap:QF,apE:ZF,ape:JF,apid:e9,apos:t9,ApplyFunction:n9,approx:r9,approxeq:a9,Aring:s9,aring:o9,Ascr:i9,ascr:l9,Assign:c9,ast:u9,asymp:d9,asympeq:f9,Atilde:p9,atilde:h9,Auml:m9,auml:g9,awconint:y9,awint:b9,backcong:v9,backepsilon:x9,backprime:C9,backsim:S9,backsimeq:N9,Backslash:w9,Barv:E9,barvee:$9,barwed:T9,Barwed:_9,barwedge:A9,bbrk:D9,bbrktbrk:j9,bcong:R9,Bcy:O9,bcy:I9,bdquo:k9,becaus:M9,because:P9,Because:L9,bemptyv:B9,bepsi:q9,bernou:F9,Bernoullis:z9,Beta:H9,beta:U9,beth:V9,between:G9,Bfr:Y9,bfr:W9,bigcap:X9,bigcirc:K9,bigcup:Q9,bigodot:Z9,bigoplus:J9,bigotimes:ez,bigsqcup:tz,bigstar:nz,bigtriangledown:rz,bigtriangleup:az,biguplus:sz,bigvee:oz,bigwedge:iz,bkarow:lz,blacklozenge:cz,blacksquare:uz,blacktriangle:dz,blacktriangledown:fz,blacktriangleleft:pz,blacktriangleright:hz,blank:mz,blk12:gz,blk14:yz,blk34:bz,block:vz,bne:xz,bnequiv:Cz,bNot:Sz,bnot:Nz,Bopf:wz,bopf:Ez,bot:$z,bottom:Tz,bowtie:_z,boxbox:Az,boxdl:Dz,boxdL:jz,boxDl:Rz,boxDL:Oz,boxdr:Iz,boxdR:kz,boxDr:Mz,boxDR:Pz,boxh:Lz,boxH:Bz,boxhd:qz,boxHd:Fz,boxhD:zz,boxHD:Hz,boxhu:Uz,boxHu:Vz,boxhU:Gz,boxHU:Yz,boxminus:Wz,boxplus:Xz,boxtimes:Kz,boxul:Qz,boxuL:Zz,boxUl:Jz,boxUL:eH,boxur:tH,boxuR:nH,boxUr:rH,boxUR:aH,boxv:sH,boxV:oH,boxvh:iH,boxvH:lH,boxVh:cH,boxVH:uH,boxvl:dH,boxvL:fH,boxVl:pH,boxVL:hH,boxvr:mH,boxvR:gH,boxVr:yH,boxVR:bH,bprime:vH,breve:xH,Breve:CH,brvbar:SH,bscr:NH,Bscr:wH,bsemi:EH,bsim:$H,bsime:TH,bsolb:_H,bsol:AH,bsolhsub:DH,bull:jH,bullet:RH,bump:OH,bumpE:IH,bumpe:kH,Bumpeq:MH,bumpeq:PH,Cacute:LH,cacute:BH,capand:qH,capbrcup:FH,capcap:zH,cap:HH,Cap:UH,capcup:VH,capdot:GH,CapitalDifferentialD:YH,caps:WH,caret:XH,caron:KH,Cayleys:QH,ccaps:ZH,Ccaron:JH,ccaron:eU,Ccedil:tU,ccedil:nU,Ccirc:rU,ccirc:aU,Cconint:sU,ccups:oU,ccupssm:iU,Cdot:lU,cdot:cU,cedil:uU,Cedilla:dU,cemptyv:fU,cent:pU,centerdot:hU,CenterDot:mU,cfr:gU,Cfr:yU,CHcy:bU,chcy:vU,check:xU,checkmark:CU,Chi:SU,chi:NU,circ:wU,circeq:EU,circlearrowleft:$U,circlearrowright:TU,circledast:_U,circledcirc:AU,circleddash:DU,CircleDot:jU,circledR:RU,circledS:OU,CircleMinus:IU,CirclePlus:kU,CircleTimes:MU,cir:PU,cirE:LU,cire:BU,cirfnint:qU,cirmid:FU,cirscir:zU,ClockwiseContourIntegral:HU,CloseCurlyDoubleQuote:UU,CloseCurlyQuote:VU,clubs:GU,clubsuit:YU,colon:WU,Colon:XU,Colone:KU,colone:QU,coloneq:ZU,comma:JU,commat:eV,comp:tV,compfn:nV,complement:rV,complexes:aV,cong:sV,congdot:oV,Congruent:iV,conint:lV,Conint:cV,ContourIntegral:uV,copf:dV,Copf:fV,coprod:pV,Coproduct:hV,copy:mV,COPY:gV,copysr:yV,CounterClockwiseContourIntegral:bV,crarr:vV,cross:xV,Cross:CV,Cscr:SV,cscr:NV,csub:wV,csube:EV,csup:$V,csupe:TV,ctdot:_V,cudarrl:AV,cudarrr:DV,cuepr:jV,cuesc:RV,cularr:OV,cularrp:IV,cupbrcap:kV,cupcap:MV,CupCap:PV,cup:LV,Cup:BV,cupcup:qV,cupdot:FV,cupor:zV,cups:HV,curarr:UV,curarrm:VV,curlyeqprec:GV,curlyeqsucc:YV,curlyvee:WV,curlywedge:XV,curren:KV,curvearrowleft:QV,curvearrowright:ZV,cuvee:JV,cuwed:eG,cwconint:tG,cwint:nG,cylcty:rG,dagger:aG,Dagger:sG,daleth:oG,darr:iG,Darr:lG,dArr:cG,dash:uG,Dashv:dG,dashv:fG,dbkarow:pG,dblac:hG,Dcaron:mG,dcaron:gG,Dcy:yG,dcy:bG,ddagger:vG,ddarr:xG,DD:CG,dd:SG,DDotrahd:NG,ddotseq:wG,deg:EG,Del:$G,Delta:TG,delta:_G,demptyv:AG,dfisht:DG,Dfr:jG,dfr:RG,dHar:OG,dharl:IG,dharr:kG,DiacriticalAcute:MG,DiacriticalDot:PG,DiacriticalDoubleAcute:LG,DiacriticalGrave:BG,DiacriticalTilde:qG,diam:FG,diamond:zG,Diamond:HG,diamondsuit:UG,diams:VG,die:GG,DifferentialD:YG,digamma:WG,disin:XG,div:KG,divide:QG,divideontimes:ZG,divonx:JG,DJcy:eY,djcy:tY,dlcorn:nY,dlcrop:rY,dollar:aY,Dopf:sY,dopf:oY,Dot:iY,dot:lY,DotDot:cY,doteq:uY,doteqdot:dY,DotEqual:fY,dotminus:pY,dotplus:hY,dotsquare:mY,doublebarwedge:gY,DoubleContourIntegral:yY,DoubleDot:bY,DoubleDownArrow:vY,DoubleLeftArrow:xY,DoubleLeftRightArrow:CY,DoubleLeftTee:SY,DoubleLongLeftArrow:NY,DoubleLongLeftRightArrow:wY,DoubleLongRightArrow:EY,DoubleRightArrow:$Y,DoubleRightTee:TY,DoubleUpArrow:_Y,DoubleUpDownArrow:AY,DoubleVerticalBar:DY,DownArrowBar:jY,downarrow:RY,DownArrow:OY,Downarrow:IY,DownArrowUpArrow:kY,DownBreve:MY,downdownarrows:PY,downharpoonleft:LY,downharpoonright:BY,DownLeftRightVector:qY,DownLeftTeeVector:FY,DownLeftVectorBar:zY,DownLeftVector:HY,DownRightTeeVector:UY,DownRightVectorBar:VY,DownRightVector:GY,DownTeeArrow:YY,DownTee:WY,drbkarow:XY,drcorn:KY,drcrop:QY,Dscr:ZY,dscr:JY,DScy:eW,dscy:tW,dsol:nW,Dstrok:rW,dstrok:aW,dtdot:sW,dtri:oW,dtrif:iW,duarr:lW,duhar:cW,dwangle:uW,DZcy:dW,dzcy:fW,dzigrarr:pW,Eacute:hW,eacute:mW,easter:gW,Ecaron:yW,ecaron:bW,Ecirc:vW,ecirc:xW,ecir:CW,ecolon:SW,Ecy:NW,ecy:wW,eDDot:EW,Edot:$W,edot:TW,eDot:_W,ee:AW,efDot:DW,Efr:jW,efr:RW,eg:OW,Egrave:IW,egrave:kW,egs:MW,egsdot:PW,el:LW,Element:BW,elinters:qW,ell:FW,els:zW,elsdot:HW,Emacr:UW,emacr:VW,empty:GW,emptyset:YW,EmptySmallSquare:WW,emptyv:XW,EmptyVerySmallSquare:KW,emsp13:QW,emsp14:ZW,emsp:JW,ENG:eX,eng:tX,ensp:nX,Eogon:rX,eogon:aX,Eopf:sX,eopf:oX,epar:iX,eparsl:lX,eplus:cX,epsi:uX,Epsilon:dX,epsilon:fX,epsiv:pX,eqcirc:hX,eqcolon:mX,eqsim:gX,eqslantgtr:yX,eqslantless:bX,Equal:vX,equals:xX,EqualTilde:CX,equest:SX,Equilibrium:NX,equiv:wX,equivDD:EX,eqvparsl:$X,erarr:TX,erDot:_X,escr:AX,Escr:DX,esdot:jX,Esim:RX,esim:OX,Eta:IX,eta:kX,ETH:MX,eth:PX,Euml:LX,euml:BX,euro:qX,excl:FX,exist:zX,Exists:HX,expectation:UX,exponentiale:VX,ExponentialE:GX,fallingdotseq:YX,Fcy:WX,fcy:XX,female:KX,ffilig:QX,fflig:ZX,ffllig:JX,Ffr:eK,ffr:tK,filig:nK,FilledSmallSquare:rK,FilledVerySmallSquare:aK,fjlig:sK,flat:oK,fllig:iK,fltns:lK,fnof:cK,Fopf:uK,fopf:dK,forall:fK,ForAll:pK,fork:hK,forkv:mK,Fouriertrf:gK,fpartint:yK,frac12:bK,frac13:vK,frac14:xK,frac15:CK,frac16:SK,frac18:NK,frac23:wK,frac25:EK,frac34:$K,frac35:TK,frac38:_K,frac45:AK,frac56:DK,frac58:jK,frac78:RK,frasl:OK,frown:IK,fscr:kK,Fscr:MK,gacute:PK,Gamma:LK,gamma:BK,Gammad:qK,gammad:FK,gap:zK,Gbreve:HK,gbreve:UK,Gcedil:VK,Gcirc:GK,gcirc:YK,Gcy:WK,gcy:XK,Gdot:KK,gdot:QK,ge:ZK,gE:JK,gEl:eQ,gel:tQ,geq:nQ,geqq:rQ,geqslant:aQ,gescc:sQ,ges:oQ,gesdot:iQ,gesdoto:lQ,gesdotol:cQ,gesl:uQ,gesles:dQ,Gfr:fQ,gfr:pQ,gg:hQ,Gg:mQ,ggg:gQ,gimel:yQ,GJcy:bQ,gjcy:vQ,gla:xQ,gl:CQ,glE:SQ,glj:NQ,gnap:wQ,gnapprox:EQ,gne:$Q,gnE:TQ,gneq:_Q,gneqq:AQ,gnsim:DQ,Gopf:jQ,gopf:RQ,grave:OQ,GreaterEqual:IQ,GreaterEqualLess:kQ,GreaterFullEqual:MQ,GreaterGreater:PQ,GreaterLess:LQ,GreaterSlantEqual:BQ,GreaterTilde:qQ,Gscr:FQ,gscr:zQ,gsim:HQ,gsime:UQ,gsiml:VQ,gtcc:GQ,gtcir:YQ,gt:WQ,GT:XQ,Gt:KQ,gtdot:QQ,gtlPar:ZQ,gtquest:JQ,gtrapprox:eZ,gtrarr:tZ,gtrdot:nZ,gtreqless:rZ,gtreqqless:aZ,gtrless:sZ,gtrsim:oZ,gvertneqq:iZ,gvnE:lZ,Hacek:cZ,hairsp:uZ,half:dZ,hamilt:fZ,HARDcy:pZ,hardcy:hZ,harrcir:mZ,harr:gZ,hArr:yZ,harrw:bZ,Hat:vZ,hbar:xZ,Hcirc:CZ,hcirc:SZ,hearts:NZ,heartsuit:wZ,hellip:EZ,hercon:$Z,hfr:TZ,Hfr:_Z,HilbertSpace:AZ,hksearow:DZ,hkswarow:jZ,hoarr:RZ,homtht:OZ,hookleftarrow:IZ,hookrightarrow:kZ,hopf:MZ,Hopf:PZ,horbar:LZ,HorizontalLine:BZ,hscr:qZ,Hscr:FZ,hslash:zZ,Hstrok:HZ,hstrok:UZ,HumpDownHump:VZ,HumpEqual:GZ,hybull:YZ,hyphen:WZ,Iacute:XZ,iacute:KZ,ic:QZ,Icirc:ZZ,icirc:JZ,Icy:eJ,icy:tJ,Idot:nJ,IEcy:rJ,iecy:aJ,iexcl:sJ,iff:oJ,ifr:iJ,Ifr:lJ,Igrave:cJ,igrave:uJ,ii:dJ,iiiint:fJ,iiint:pJ,iinfin:hJ,iiota:mJ,IJlig:gJ,ijlig:yJ,Imacr:bJ,imacr:vJ,image:xJ,ImaginaryI:CJ,imagline:SJ,imagpart:NJ,imath:wJ,Im:EJ,imof:$J,imped:TJ,Implies:_J,incare:AJ,in:"∈",infin:DJ,infintie:jJ,inodot:RJ,intcal:OJ,int:IJ,Int:kJ,integers:MJ,Integral:PJ,intercal:LJ,Intersection:BJ,intlarhk:qJ,intprod:FJ,InvisibleComma:zJ,InvisibleTimes:HJ,IOcy:UJ,iocy:VJ,Iogon:GJ,iogon:YJ,Iopf:WJ,iopf:XJ,Iota:KJ,iota:QJ,iprod:ZJ,iquest:JJ,iscr:eee,Iscr:tee,isin:nee,isindot:ree,isinE:aee,isins:see,isinsv:oee,isinv:iee,it:lee,Itilde:cee,itilde:uee,Iukcy:dee,iukcy:fee,Iuml:pee,iuml:hee,Jcirc:mee,jcirc:gee,Jcy:yee,jcy:bee,Jfr:vee,jfr:xee,jmath:Cee,Jopf:See,jopf:Nee,Jscr:wee,jscr:Eee,Jsercy:$ee,jsercy:Tee,Jukcy:_ee,jukcy:Aee,Kappa:Dee,kappa:jee,kappav:Ree,Kcedil:Oee,kcedil:Iee,Kcy:kee,kcy:Mee,Kfr:Pee,kfr:Lee,kgreen:Bee,KHcy:qee,khcy:Fee,KJcy:zee,kjcy:Hee,Kopf:Uee,kopf:Vee,Kscr:Gee,kscr:Yee,lAarr:Wee,Lacute:Xee,lacute:Kee,laemptyv:Qee,lagran:Zee,Lambda:Jee,lambda:ete,lang:tte,Lang:nte,langd:rte,langle:ate,lap:ste,Laplacetrf:ote,laquo:ite,larrb:lte,larrbfs:cte,larr:ute,Larr:dte,lArr:fte,larrfs:pte,larrhk:hte,larrlp:mte,larrpl:gte,larrsim:yte,larrtl:bte,latail:vte,lAtail:xte,lat:Cte,late:Ste,lates:Nte,lbarr:wte,lBarr:Ete,lbbrk:$te,lbrace:Tte,lbrack:_te,lbrke:Ate,lbrksld:Dte,lbrkslu:jte,Lcaron:Rte,lcaron:Ote,Lcedil:Ite,lcedil:kte,lceil:Mte,lcub:Pte,Lcy:Lte,lcy:Bte,ldca:qte,ldquo:Fte,ldquor:zte,ldrdhar:Hte,ldrushar:Ute,ldsh:Vte,le:Gte,lE:Yte,LeftAngleBracket:Wte,LeftArrowBar:Xte,leftarrow:Kte,LeftArrow:Qte,Leftarrow:Zte,LeftArrowRightArrow:Jte,leftarrowtail:ene,LeftCeiling:tne,LeftDoubleBracket:nne,LeftDownTeeVector:rne,LeftDownVectorBar:ane,LeftDownVector:sne,LeftFloor:one,leftharpoondown:ine,leftharpoonup:lne,leftleftarrows:cne,leftrightarrow:une,LeftRightArrow:dne,Leftrightarrow:fne,leftrightarrows:pne,leftrightharpoons:hne,leftrightsquigarrow:mne,LeftRightVector:gne,LeftTeeArrow:yne,LeftTee:bne,LeftTeeVector:vne,leftthreetimes:xne,LeftTriangleBar:Cne,LeftTriangle:Sne,LeftTriangleEqual:Nne,LeftUpDownVector:wne,LeftUpTeeVector:Ene,LeftUpVectorBar:$ne,LeftUpVector:Tne,LeftVectorBar:_ne,LeftVector:Ane,lEg:Dne,leg:jne,leq:Rne,leqq:One,leqslant:Ine,lescc:kne,les:Mne,lesdot:Pne,lesdoto:Lne,lesdotor:Bne,lesg:qne,lesges:Fne,lessapprox:zne,lessdot:Hne,lesseqgtr:Une,lesseqqgtr:Vne,LessEqualGreater:Gne,LessFullEqual:Yne,LessGreater:Wne,lessgtr:Xne,LessLess:Kne,lesssim:Qne,LessSlantEqual:Zne,LessTilde:Jne,lfisht:ere,lfloor:tre,Lfr:nre,lfr:rre,lg:are,lgE:sre,lHar:ore,lhard:ire,lharu:lre,lharul:cre,lhblk:ure,LJcy:dre,ljcy:fre,llarr:pre,ll:hre,Ll:mre,llcorner:gre,Lleftarrow:yre,llhard:bre,lltri:vre,Lmidot:xre,lmidot:Cre,lmoustache:Sre,lmoust:Nre,lnap:wre,lnapprox:Ere,lne:$re,lnE:Tre,lneq:_re,lneqq:Are,lnsim:Dre,loang:jre,loarr:Rre,lobrk:Ore,longleftarrow:Ire,LongLeftArrow:kre,Longleftarrow:Mre,longleftrightarrow:Pre,LongLeftRightArrow:Lre,Longleftrightarrow:Bre,longmapsto:qre,longrightarrow:Fre,LongRightArrow:zre,Longrightarrow:Hre,looparrowleft:Ure,looparrowright:Vre,lopar:Gre,Lopf:Yre,lopf:Wre,loplus:Xre,lotimes:Kre,lowast:Qre,lowbar:Zre,LowerLeftArrow:Jre,LowerRightArrow:eae,loz:tae,lozenge:nae,lozf:rae,lpar:aae,lparlt:sae,lrarr:oae,lrcorner:iae,lrhar:lae,lrhard:cae,lrm:uae,lrtri:dae,lsaquo:fae,lscr:pae,Lscr:hae,lsh:mae,Lsh:gae,lsim:yae,lsime:bae,lsimg:vae,lsqb:xae,lsquo:Cae,lsquor:Sae,Lstrok:Nae,lstrok:wae,ltcc:Eae,ltcir:$ae,lt:Tae,LT:_ae,Lt:Aae,ltdot:Dae,lthree:jae,ltimes:Rae,ltlarr:Oae,ltquest:Iae,ltri:kae,ltrie:Mae,ltrif:Pae,ltrPar:Lae,lurdshar:Bae,luruhar:qae,lvertneqq:Fae,lvnE:zae,macr:Hae,male:Uae,malt:Vae,maltese:Gae,Map:"⤅",map:Yae,mapsto:Wae,mapstodown:Xae,mapstoleft:Kae,mapstoup:Qae,marker:Zae,mcomma:Jae,Mcy:ese,mcy:tse,mdash:nse,mDDot:rse,measuredangle:ase,MediumSpace:sse,Mellintrf:ose,Mfr:ise,mfr:lse,mho:cse,micro:use,midast:dse,midcir:fse,mid:pse,middot:hse,minusb:mse,minus:gse,minusd:yse,minusdu:bse,MinusPlus:vse,mlcp:xse,mldr:Cse,mnplus:Sse,models:Nse,Mopf:wse,mopf:Ese,mp:$se,mscr:Tse,Mscr:_se,mstpos:Ase,Mu:Dse,mu:jse,multimap:Rse,mumap:Ose,nabla:Ise,Nacute:kse,nacute:Mse,nang:Pse,nap:Lse,napE:Bse,napid:qse,napos:Fse,napprox:zse,natural:Hse,naturals:Use,natur:Vse,nbsp:Gse,nbump:Yse,nbumpe:Wse,ncap:Xse,Ncaron:Kse,ncaron:Qse,Ncedil:Zse,ncedil:Jse,ncong:eoe,ncongdot:toe,ncup:noe,Ncy:roe,ncy:aoe,ndash:soe,nearhk:ooe,nearr:ioe,neArr:loe,nearrow:coe,ne:uoe,nedot:doe,NegativeMediumSpace:foe,NegativeThickSpace:poe,NegativeThinSpace:hoe,NegativeVeryThinSpace:moe,nequiv:goe,nesear:yoe,nesim:boe,NestedGreaterGreater:voe,NestedLessLess:xoe,NewLine:Coe,nexist:Soe,nexists:Noe,Nfr:woe,nfr:Eoe,ngE:$oe,nge:Toe,ngeq:_oe,ngeqq:Aoe,ngeqslant:Doe,nges:joe,nGg:Roe,ngsim:Ooe,nGt:Ioe,ngt:koe,ngtr:Moe,nGtv:Poe,nharr:Loe,nhArr:Boe,nhpar:qoe,ni:Foe,nis:zoe,nisd:Hoe,niv:Uoe,NJcy:Voe,njcy:Goe,nlarr:Yoe,nlArr:Woe,nldr:Xoe,nlE:Koe,nle:Qoe,nleftarrow:Zoe,nLeftarrow:Joe,nleftrightarrow:eie,nLeftrightarrow:tie,nleq:nie,nleqq:rie,nleqslant:aie,nles:sie,nless:oie,nLl:iie,nlsim:lie,nLt:cie,nlt:uie,nltri:die,nltrie:fie,nLtv:pie,nmid:hie,NoBreak:mie,NonBreakingSpace:gie,nopf:yie,Nopf:bie,Not:vie,not:xie,NotCongruent:Cie,NotCupCap:Sie,NotDoubleVerticalBar:Nie,NotElement:wie,NotEqual:Eie,NotEqualTilde:$ie,NotExists:Tie,NotGreater:_ie,NotGreaterEqual:Aie,NotGreaterFullEqual:Die,NotGreaterGreater:jie,NotGreaterLess:Rie,NotGreaterSlantEqual:Oie,NotGreaterTilde:Iie,NotHumpDownHump:kie,NotHumpEqual:Mie,notin:Pie,notindot:Lie,notinE:Bie,notinva:qie,notinvb:Fie,notinvc:zie,NotLeftTriangleBar:Hie,NotLeftTriangle:Uie,NotLeftTriangleEqual:Vie,NotLess:Gie,NotLessEqual:Yie,NotLessGreater:Wie,NotLessLess:Xie,NotLessSlantEqual:Kie,NotLessTilde:Qie,NotNestedGreaterGreater:Zie,NotNestedLessLess:Jie,notni:ele,notniva:tle,notnivb:nle,notnivc:rle,NotPrecedes:ale,NotPrecedesEqual:sle,NotPrecedesSlantEqual:ole,NotReverseElement:ile,NotRightTriangleBar:lle,NotRightTriangle:cle,NotRightTriangleEqual:ule,NotSquareSubset:dle,NotSquareSubsetEqual:fle,NotSquareSuperset:ple,NotSquareSupersetEqual:hle,NotSubset:mle,NotSubsetEqual:gle,NotSucceeds:yle,NotSucceedsEqual:ble,NotSucceedsSlantEqual:vle,NotSucceedsTilde:xle,NotSuperset:Cle,NotSupersetEqual:Sle,NotTilde:Nle,NotTildeEqual:wle,NotTildeFullEqual:Ele,NotTildeTilde:$le,NotVerticalBar:Tle,nparallel:_le,npar:Ale,nparsl:Dle,npart:jle,npolint:Rle,npr:Ole,nprcue:Ile,nprec:kle,npreceq:Mle,npre:Ple,nrarrc:Lle,nrarr:Ble,nrArr:qle,nrarrw:Fle,nrightarrow:zle,nRightarrow:Hle,nrtri:Ule,nrtrie:Vle,nsc:Gle,nsccue:Yle,nsce:Wle,Nscr:Xle,nscr:Kle,nshortmid:Qle,nshortparallel:Zle,nsim:Jle,nsime:ece,nsimeq:tce,nsmid:nce,nspar:rce,nsqsube:ace,nsqsupe:sce,nsub:oce,nsubE:ice,nsube:lce,nsubset:cce,nsubseteq:uce,nsubseteqq:dce,nsucc:fce,nsucceq:pce,nsup:hce,nsupE:mce,nsupe:gce,nsupset:yce,nsupseteq:bce,nsupseteqq:vce,ntgl:xce,Ntilde:Cce,ntilde:Sce,ntlg:Nce,ntriangleleft:wce,ntrianglelefteq:Ece,ntriangleright:$ce,ntrianglerighteq:Tce,Nu:_ce,nu:Ace,num:Dce,numero:jce,numsp:Rce,nvap:Oce,nvdash:Ice,nvDash:kce,nVdash:Mce,nVDash:Pce,nvge:Lce,nvgt:Bce,nvHarr:qce,nvinfin:Fce,nvlArr:zce,nvle:Hce,nvlt:Uce,nvltrie:Vce,nvrArr:Gce,nvrtrie:Yce,nvsim:Wce,nwarhk:Xce,nwarr:Kce,nwArr:Qce,nwarrow:Zce,nwnear:Jce,Oacute:eue,oacute:tue,oast:nue,Ocirc:rue,ocirc:aue,ocir:sue,Ocy:oue,ocy:iue,odash:lue,Odblac:cue,odblac:uue,odiv:due,odot:fue,odsold:pue,OElig:hue,oelig:mue,ofcir:gue,Ofr:yue,ofr:bue,ogon:vue,Ograve:xue,ograve:Cue,ogt:Sue,ohbar:Nue,ohm:wue,oint:Eue,olarr:$ue,olcir:Tue,olcross:_ue,oline:Aue,olt:Due,Omacr:jue,omacr:Rue,Omega:Oue,omega:Iue,Omicron:kue,omicron:Mue,omid:Pue,ominus:Lue,Oopf:Bue,oopf:que,opar:Fue,OpenCurlyDoubleQuote:zue,OpenCurlyQuote:Hue,operp:Uue,oplus:Vue,orarr:Gue,Or:Yue,or:Wue,ord:Xue,order:Kue,orderof:Que,ordf:Zue,ordm:Jue,origof:ede,oror:tde,orslope:nde,orv:rde,oS:ade,Oscr:sde,oscr:ode,Oslash:ide,oslash:lde,osol:cde,Otilde:ude,otilde:dde,otimesas:fde,Otimes:pde,otimes:hde,Ouml:mde,ouml:gde,ovbar:yde,OverBar:bde,OverBrace:vde,OverBracket:xde,OverParenthesis:Cde,para:Sde,parallel:Nde,par:wde,parsim:Ede,parsl:$de,part:Tde,PartialD:_de,Pcy:Ade,pcy:Dde,percnt:jde,period:Rde,permil:Ode,perp:Ide,pertenk:kde,Pfr:Mde,pfr:Pde,Phi:Lde,phi:Bde,phiv:qde,phmmat:Fde,phone:zde,Pi:Hde,pi:Ude,pitchfork:Vde,piv:Gde,planck:Yde,planckh:Wde,plankv:Xde,plusacir:Kde,plusb:Qde,pluscir:Zde,plus:Jde,plusdo:efe,plusdu:tfe,pluse:nfe,PlusMinus:rfe,plusmn:afe,plussim:sfe,plustwo:ofe,pm:ife,Poincareplane:lfe,pointint:cfe,popf:ufe,Popf:dfe,pound:ffe,prap:pfe,Pr:hfe,pr:mfe,prcue:gfe,precapprox:yfe,prec:bfe,preccurlyeq:vfe,Precedes:xfe,PrecedesEqual:Cfe,PrecedesSlantEqual:Sfe,PrecedesTilde:Nfe,preceq:wfe,precnapprox:Efe,precneqq:$fe,precnsim:Tfe,pre:_fe,prE:Afe,precsim:Dfe,prime:jfe,Prime:Rfe,primes:Ofe,prnap:Ife,prnE:kfe,prnsim:Mfe,prod:Pfe,Product:Lfe,profalar:Bfe,profline:qfe,profsurf:Ffe,prop:zfe,Proportional:Hfe,Proportion:Ufe,propto:Vfe,prsim:Gfe,prurel:Yfe,Pscr:Wfe,pscr:Xfe,Psi:Kfe,psi:Qfe,puncsp:Zfe,Qfr:Jfe,qfr:epe,qint:tpe,qopf:npe,Qopf:rpe,qprime:ape,Qscr:spe,qscr:ope,quaternions:ipe,quatint:lpe,quest:cpe,questeq:upe,quot:dpe,QUOT:fpe,rAarr:ppe,race:hpe,Racute:mpe,racute:gpe,radic:ype,raemptyv:bpe,rang:vpe,Rang:xpe,rangd:Cpe,range:Spe,rangle:Npe,raquo:wpe,rarrap:Epe,rarrb:$pe,rarrbfs:Tpe,rarrc:_pe,rarr:Ape,Rarr:Dpe,rArr:jpe,rarrfs:Rpe,rarrhk:Ope,rarrlp:Ipe,rarrpl:kpe,rarrsim:Mpe,Rarrtl:Ppe,rarrtl:Lpe,rarrw:Bpe,ratail:qpe,rAtail:Fpe,ratio:zpe,rationals:Hpe,rbarr:Upe,rBarr:Vpe,RBarr:Gpe,rbbrk:Ype,rbrace:Wpe,rbrack:Xpe,rbrke:Kpe,rbrksld:Qpe,rbrkslu:Zpe,Rcaron:Jpe,rcaron:ehe,Rcedil:the,rcedil:nhe,rceil:rhe,rcub:ahe,Rcy:she,rcy:ohe,rdca:ihe,rdldhar:lhe,rdquo:che,rdquor:uhe,rdsh:dhe,real:fhe,realine:phe,realpart:hhe,reals:mhe,Re:ghe,rect:yhe,reg:bhe,REG:vhe,ReverseElement:xhe,ReverseEquilibrium:Che,ReverseUpEquilibrium:She,rfisht:Nhe,rfloor:whe,rfr:Ehe,Rfr:$he,rHar:The,rhard:_he,rharu:Ahe,rharul:Dhe,Rho:jhe,rho:Rhe,rhov:Ohe,RightAngleBracket:Ihe,RightArrowBar:khe,rightarrow:Mhe,RightArrow:Phe,Rightarrow:Lhe,RightArrowLeftArrow:Bhe,rightarrowtail:qhe,RightCeiling:Fhe,RightDoubleBracket:zhe,RightDownTeeVector:Hhe,RightDownVectorBar:Uhe,RightDownVector:Vhe,RightFloor:Ghe,rightharpoondown:Yhe,rightharpoonup:Whe,rightleftarrows:Xhe,rightleftharpoons:Khe,rightrightarrows:Qhe,rightsquigarrow:Zhe,RightTeeArrow:Jhe,RightTee:eme,RightTeeVector:tme,rightthreetimes:nme,RightTriangleBar:rme,RightTriangle:ame,RightTriangleEqual:sme,RightUpDownVector:ome,RightUpTeeVector:ime,RightUpVectorBar:lme,RightUpVector:cme,RightVectorBar:ume,RightVector:dme,ring:fme,risingdotseq:pme,rlarr:hme,rlhar:mme,rlm:gme,rmoustache:yme,rmoust:bme,rnmid:vme,roang:xme,roarr:Cme,robrk:Sme,ropar:Nme,ropf:wme,Ropf:Eme,roplus:$me,rotimes:Tme,RoundImplies:_me,rpar:Ame,rpargt:Dme,rppolint:jme,rrarr:Rme,Rrightarrow:Ome,rsaquo:Ime,rscr:kme,Rscr:Mme,rsh:Pme,Rsh:Lme,rsqb:Bme,rsquo:qme,rsquor:Fme,rthree:zme,rtimes:Hme,rtri:Ume,rtrie:Vme,rtrif:Gme,rtriltri:Yme,RuleDelayed:Wme,ruluhar:Xme,rx:Kme,Sacute:Qme,sacute:Zme,sbquo:Jme,scap:ege,Scaron:tge,scaron:nge,Sc:rge,sc:age,sccue:sge,sce:oge,scE:ige,Scedil:lge,scedil:cge,Scirc:uge,scirc:dge,scnap:fge,scnE:pge,scnsim:hge,scpolint:mge,scsim:gge,Scy:yge,scy:bge,sdotb:vge,sdot:xge,sdote:Cge,searhk:Sge,searr:Nge,seArr:wge,searrow:Ege,sect:$ge,semi:Tge,seswar:_ge,setminus:Age,setmn:Dge,sext:jge,Sfr:Rge,sfr:Oge,sfrown:Ige,sharp:kge,SHCHcy:Mge,shchcy:Pge,SHcy:Lge,shcy:Bge,ShortDownArrow:qge,ShortLeftArrow:Fge,shortmid:zge,shortparallel:Hge,ShortRightArrow:Uge,ShortUpArrow:Vge,shy:Gge,Sigma:Yge,sigma:Wge,sigmaf:Xge,sigmav:Kge,sim:Qge,simdot:Zge,sime:Jge,simeq:eye,simg:tye,simgE:nye,siml:rye,simlE:aye,simne:sye,simplus:oye,simrarr:iye,slarr:lye,SmallCircle:cye,smallsetminus:uye,smashp:dye,smeparsl:fye,smid:pye,smile:hye,smt:mye,smte:gye,smtes:yye,SOFTcy:bye,softcy:vye,solbar:xye,solb:Cye,sol:Sye,Sopf:Nye,sopf:wye,spades:Eye,spadesuit:$ye,spar:Tye,sqcap:_ye,sqcaps:Aye,sqcup:Dye,sqcups:jye,Sqrt:Rye,sqsub:Oye,sqsube:Iye,sqsubset:kye,sqsubseteq:Mye,sqsup:Pye,sqsupe:Lye,sqsupset:Bye,sqsupseteq:qye,square:Fye,Square:zye,SquareIntersection:Hye,SquareSubset:Uye,SquareSubsetEqual:Vye,SquareSuperset:Gye,SquareSupersetEqual:Yye,SquareUnion:Wye,squarf:Xye,squ:Kye,squf:Qye,srarr:Zye,Sscr:Jye,sscr:ebe,ssetmn:tbe,ssmile:nbe,sstarf:rbe,Star:abe,star:sbe,starf:obe,straightepsilon:ibe,straightphi:lbe,strns:cbe,sub:ube,Sub:dbe,subdot:fbe,subE:pbe,sube:hbe,subedot:mbe,submult:gbe,subnE:ybe,subne:bbe,subplus:vbe,subrarr:xbe,subset:Cbe,Subset:Sbe,subseteq:Nbe,subseteqq:wbe,SubsetEqual:Ebe,subsetneq:$be,subsetneqq:Tbe,subsim:_be,subsub:Abe,subsup:Dbe,succapprox:jbe,succ:Rbe,succcurlyeq:Obe,Succeeds:Ibe,SucceedsEqual:kbe,SucceedsSlantEqual:Mbe,SucceedsTilde:Pbe,succeq:Lbe,succnapprox:Bbe,succneqq:qbe,succnsim:Fbe,succsim:zbe,SuchThat:Hbe,sum:Ube,Sum:Vbe,sung:Gbe,sup1:Ybe,sup2:Wbe,sup3:Xbe,sup:Kbe,Sup:Qbe,supdot:Zbe,supdsub:Jbe,supE:e0e,supe:t0e,supedot:n0e,Superset:r0e,SupersetEqual:a0e,suphsol:s0e,suphsub:o0e,suplarr:i0e,supmult:l0e,supnE:c0e,supne:u0e,supplus:d0e,supset:f0e,Supset:p0e,supseteq:h0e,supseteqq:m0e,supsetneq:g0e,supsetneqq:y0e,supsim:b0e,supsub:v0e,supsup:x0e,swarhk:C0e,swarr:S0e,swArr:N0e,swarrow:w0e,swnwar:E0e,szlig:$0e,Tab:T0e,target:_0e,Tau:A0e,tau:D0e,tbrk:j0e,Tcaron:R0e,tcaron:O0e,Tcedil:I0e,tcedil:k0e,Tcy:M0e,tcy:P0e,tdot:L0e,telrec:B0e,Tfr:q0e,tfr:F0e,there4:z0e,therefore:H0e,Therefore:U0e,Theta:V0e,theta:G0e,thetasym:Y0e,thetav:W0e,thickapprox:X0e,thicksim:K0e,ThickSpace:Q0e,ThinSpace:Z0e,thinsp:J0e,thkap:eve,thksim:tve,THORN:nve,thorn:rve,tilde:ave,Tilde:sve,TildeEqual:ove,TildeFullEqual:ive,TildeTilde:lve,timesbar:cve,timesb:uve,times:dve,timesd:fve,tint:pve,toea:hve,topbot:mve,topcir:gve,top:yve,Topf:bve,topf:vve,topfork:xve,tosa:Cve,tprime:Sve,trade:Nve,TRADE:wve,triangle:Eve,triangledown:$ve,triangleleft:Tve,trianglelefteq:_ve,triangleq:Ave,triangleright:Dve,trianglerighteq:jve,tridot:Rve,trie:Ove,triminus:Ive,TripleDot:kve,triplus:Mve,trisb:Pve,tritime:Lve,trpezium:Bve,Tscr:qve,tscr:Fve,TScy:zve,tscy:Hve,TSHcy:Uve,tshcy:Vve,Tstrok:Gve,tstrok:Yve,twixt:Wve,twoheadleftarrow:Xve,twoheadrightarrow:Kve,Uacute:Qve,uacute:Zve,uarr:Jve,Uarr:e1e,uArr:t1e,Uarrocir:n1e,Ubrcy:r1e,ubrcy:a1e,Ubreve:s1e,ubreve:o1e,Ucirc:i1e,ucirc:l1e,Ucy:c1e,ucy:u1e,udarr:d1e,Udblac:f1e,udblac:p1e,udhar:h1e,ufisht:m1e,Ufr:g1e,ufr:y1e,Ugrave:b1e,ugrave:v1e,uHar:x1e,uharl:C1e,uharr:S1e,uhblk:N1e,ulcorn:w1e,ulcorner:E1e,ulcrop:$1e,ultri:T1e,Umacr:_1e,umacr:A1e,uml:D1e,UnderBar:j1e,UnderBrace:R1e,UnderBracket:O1e,UnderParenthesis:I1e,Union:k1e,UnionPlus:M1e,Uogon:P1e,uogon:L1e,Uopf:B1e,uopf:q1e,UpArrowBar:F1e,uparrow:z1e,UpArrow:H1e,Uparrow:U1e,UpArrowDownArrow:V1e,updownarrow:G1e,UpDownArrow:Y1e,Updownarrow:W1e,UpEquilibrium:X1e,upharpoonleft:K1e,upharpoonright:Q1e,uplus:Z1e,UpperLeftArrow:J1e,UpperRightArrow:exe,upsi:txe,Upsi:nxe,upsih:rxe,Upsilon:axe,upsilon:sxe,UpTeeArrow:oxe,UpTee:ixe,upuparrows:lxe,urcorn:cxe,urcorner:uxe,urcrop:dxe,Uring:fxe,uring:pxe,urtri:hxe,Uscr:mxe,uscr:gxe,utdot:yxe,Utilde:bxe,utilde:vxe,utri:xxe,utrif:Cxe,uuarr:Sxe,Uuml:Nxe,uuml:wxe,uwangle:Exe,vangrt:$xe,varepsilon:Txe,varkappa:_xe,varnothing:Axe,varphi:Dxe,varpi:jxe,varpropto:Rxe,varr:Oxe,vArr:Ixe,varrho:kxe,varsigma:Mxe,varsubsetneq:Pxe,varsubsetneqq:Lxe,varsupsetneq:Bxe,varsupsetneqq:qxe,vartheta:Fxe,vartriangleleft:zxe,vartriangleright:Hxe,vBar:Uxe,Vbar:Vxe,vBarv:Gxe,Vcy:Yxe,vcy:Wxe,vdash:Xxe,vDash:Kxe,Vdash:Qxe,VDash:Zxe,Vdashl:Jxe,veebar:eCe,vee:tCe,Vee:nCe,veeeq:rCe,vellip:aCe,verbar:sCe,Verbar:oCe,vert:iCe,Vert:lCe,VerticalBar:cCe,VerticalLine:uCe,VerticalSeparator:dCe,VerticalTilde:fCe,VeryThinSpace:pCe,Vfr:hCe,vfr:mCe,vltri:gCe,vnsub:yCe,vnsup:bCe,Vopf:vCe,vopf:xCe,vprop:CCe,vrtri:SCe,Vscr:NCe,vscr:wCe,vsubnE:ECe,vsubne:$Ce,vsupnE:TCe,vsupne:_Ce,Vvdash:ACe,vzigzag:DCe,Wcirc:jCe,wcirc:RCe,wedbar:OCe,wedge:ICe,Wedge:kCe,wedgeq:MCe,weierp:PCe,Wfr:LCe,wfr:BCe,Wopf:qCe,wopf:FCe,wp:zCe,wr:HCe,wreath:UCe,Wscr:VCe,wscr:GCe,xcap:YCe,xcirc:WCe,xcup:XCe,xdtri:KCe,Xfr:QCe,xfr:ZCe,xharr:JCe,xhArr:eSe,Xi:tSe,xi:nSe,xlarr:rSe,xlArr:aSe,xmap:sSe,xnis:oSe,xodot:iSe,Xopf:lSe,xopf:cSe,xoplus:uSe,xotime:dSe,xrarr:fSe,xrArr:pSe,Xscr:hSe,xscr:mSe,xsqcup:gSe,xuplus:ySe,xutri:bSe,xvee:vSe,xwedge:xSe,Yacute:CSe,yacute:SSe,YAcy:NSe,yacy:wSe,Ycirc:ESe,ycirc:$Se,Ycy:TSe,ycy:_Se,yen:ASe,Yfr:DSe,yfr:jSe,YIcy:RSe,yicy:OSe,Yopf:ISe,yopf:kSe,Yscr:MSe,yscr:PSe,YUcy:LSe,yucy:BSe,yuml:qSe,Yuml:FSe,Zacute:zSe,zacute:HSe,Zcaron:USe,zcaron:VSe,Zcy:GSe,zcy:YSe,Zdot:WSe,zdot:XSe,zeetrf:KSe,ZeroWidthSpace:QSe,Zeta:ZSe,zeta:JSe,zfr:eNe,Zfr:tNe,ZHcy:nNe,zhcy:rNe,zigrarr:aNe,zopf:sNe,Zopf:oNe,Zscr:iNe,zscr:lNe,zwj:cNe,zwnj:uNe},fNe="Á",pNe="á",hNe="Â",mNe="â",gNe="´",yNe="Æ",bNe="æ",vNe="À",xNe="à",CNe="&",SNe="&",NNe="Å",wNe="å",ENe="Ã",$Ne="ã",TNe="Ä",_Ne="ä",ANe="¦",DNe="Ç",jNe="ç",RNe="¸",ONe="¢",INe="©",kNe="©",MNe="¤",PNe="°",LNe="÷",BNe="É",qNe="é",FNe="Ê",zNe="ê",HNe="È",UNe="è",VNe="Ð",GNe="ð",YNe="Ë",WNe="ë",XNe="½",KNe="¼",QNe="¾",ZNe=">",JNe=">",ewe="Í",twe="í",nwe="Î",rwe="î",awe="¡",swe="Ì",owe="ì",iwe="¿",lwe="Ï",cwe="ï",uwe="«",dwe="<",fwe="<",pwe="¯",hwe="µ",mwe="·",gwe=" ",ywe="¬",bwe="Ñ",vwe="ñ",xwe="Ó",Cwe="ó",Swe="Ô",Nwe="ô",wwe="Ò",Ewe="ò",$we="ª",Twe="º",_we="Ø",Awe="ø",Dwe="Õ",jwe="õ",Rwe="Ö",Owe="ö",Iwe="¶",kwe="±",Mwe="£",Pwe='"',Lwe='"',Bwe="»",qwe="®",Fwe="®",zwe="§",Hwe="­",Uwe="¹",Vwe="²",Gwe="³",Ywe="ß",Wwe="Þ",Xwe="þ",Kwe="×",Qwe="Ú",Zwe="ú",Jwe="Û",e2e="û",t2e="Ù",n2e="ù",r2e="¨",a2e="Ü",s2e="ü",o2e="Ý",i2e="ý",l2e="¥",c2e="ÿ",u2e={Aacute:fNe,aacute:pNe,Acirc:hNe,acirc:mNe,acute:gNe,AElig:yNe,aelig:bNe,Agrave:vNe,agrave:xNe,amp:CNe,AMP:SNe,Aring:NNe,aring:wNe,Atilde:ENe,atilde:$Ne,Auml:TNe,auml:_Ne,brvbar:ANe,Ccedil:DNe,ccedil:jNe,cedil:RNe,cent:ONe,copy:INe,COPY:kNe,curren:MNe,deg:PNe,divide:LNe,Eacute:BNe,eacute:qNe,Ecirc:FNe,ecirc:zNe,Egrave:HNe,egrave:UNe,ETH:VNe,eth:GNe,Euml:YNe,euml:WNe,frac12:XNe,frac14:KNe,frac34:QNe,gt:ZNe,GT:JNe,Iacute:ewe,iacute:twe,Icirc:nwe,icirc:rwe,iexcl:awe,Igrave:swe,igrave:owe,iquest:iwe,Iuml:lwe,iuml:cwe,laquo:uwe,lt:dwe,LT:fwe,macr:pwe,micro:hwe,middot:mwe,nbsp:gwe,not:ywe,Ntilde:bwe,ntilde:vwe,Oacute:xwe,oacute:Cwe,Ocirc:Swe,ocirc:Nwe,Ograve:wwe,ograve:Ewe,ordf:$we,ordm:Twe,Oslash:_we,oslash:Awe,Otilde:Dwe,otilde:jwe,Ouml:Rwe,ouml:Owe,para:Iwe,plusmn:kwe,pound:Mwe,quot:Pwe,QUOT:Lwe,raquo:Bwe,reg:qwe,REG:Fwe,sect:zwe,shy:Hwe,sup1:Uwe,sup2:Vwe,sup3:Gwe,szlig:Ywe,THORN:Wwe,thorn:Xwe,times:Kwe,Uacute:Qwe,uacute:Zwe,Ucirc:Jwe,ucirc:e2e,Ugrave:t2e,ugrave:n2e,uml:r2e,Uuml:a2e,uuml:s2e,Yacute:o2e,yacute:i2e,yen:l2e,yuml:c2e},d2e="&",f2e="'",p2e=">",h2e="<",m2e='"',g2e={amp:d2e,apos:f2e,gt:p2e,lt:h2e,quot:m2e};var ib,_2;function gD(){if(_2)return ib;_2=1,ib=Re;var e=Y7(),t=dNe,n=u2e,a=g2e,o=0,i=o++,l=o++,u=o++,d=o++,f=o++,m=o++,g=o++,y=o++,b=o++,x=o++,S=o++,w=o++,N=o++,T=o++,A=o++,R=o++,E=o++,$=o++,_=o++,k=o++,q=o++,z=o++,D=o++,H=o++,O=o++,j=o++,M=o++,I=o++,F=o++,V=o++,W=o++,U=o++,P=o++,Y=o++,K=o++,Q=o++,ee=o++,G=o++,oe=o++,ye=o++,me=o++,Se=o++,Be=o++,ae=o++,ge=o++,fe=o++,qe=o++,re=o++,xe=o++,Te=o++,be=o++,ve=o++,pe=o++,_e=o++,Pe=o++,$e=0,je=$e++,He=$e++,Ae=$e++;function Me(Z){return Z===" "||Z===`
`||Z==="	"||Z==="\f"||Z==="\r"}function Je(Z,ot,vt){var tt=Z.toLowerCase();return Z===tt?function(ft){ft===tt?this._state=ot:(this._state=vt,this._index--)}:function(ft){ft===tt||ft===Z?this._state=ot:(this._state=vt,this._index--)}}function dt(Z,ot){var vt=Z.toLowerCase();return function(tt){tt===vt||tt===Z?this._state=ot:(this._state=u,this._index--)}}function Re(Z,ot){this._state=i,this._buffer="",this._sectionStart=0,this._index=0,this._bufferOffset=0,this._baseState=i,this._special=je,this._cbs=ot,this._running=!0,this._ended=!1,this._xmlMode=!!(Z&&Z.xmlMode),this._decodeEntities=!!(Z&&Z.decodeEntities)}return Re.prototype._stateText=function(Z){Z==="<"?(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._state=l,this._sectionStart=this._index):this._decodeEntities&&this._special===je&&Z==="&"&&(this._index>this._sectionStart&&this._cbs.ontext(this._getSection()),this._baseState=i,this._state=be,this._sectionStart=this._index)},Re.prototype._stateBeforeTagName=function(Z){Z==="/"?this._state=f:Z==="<"?(this._cbs.ontext(this._getSection()),this._sectionStart=this._index):Z===">"||this._special!==je||Me(Z)?this._state=i:Z==="!"?(this._state=A,this._sectionStart=this._index+1):Z==="?"?(this._state=E,this._sectionStart=this._index+1):(this._state=!this._xmlMode&&(Z==="s"||Z==="S")?W:u,this._sectionStart=this._index)},Re.prototype._stateInTagName=function(Z){(Z==="/"||Z===">"||Me(Z))&&(this._emitToken("onopentagname"),this._state=y,this._index--)},Re.prototype._stateBeforeCloseingTagName=function(Z){Me(Z)||(Z===">"?this._state=i:this._special!==je?Z==="s"||Z==="S"?this._state=U:(this._state=i,this._index--):(this._state=m,this._sectionStart=this._index))},Re.prototype._stateInCloseingTagName=function(Z){(Z===">"||Me(Z))&&(this._emitToken("onclosetag"),this._state=g,this._index--)},Re.prototype._stateAfterCloseingTagName=function(Z){Z===">"&&(this._state=i,this._sectionStart=this._index+1)},Re.prototype._stateBeforeAttributeName=function(Z){Z===">"?(this._cbs.onopentagend(),this._state=i,this._sectionStart=this._index+1):Z==="/"?this._state=d:Me(Z)||(this._state=b,this._sectionStart=this._index)},Re.prototype._stateInSelfClosingTag=function(Z){Z===">"?(this._cbs.onselfclosingtag(),this._state=i,this._sectionStart=this._index+1):Me(Z)||(this._state=y,this._index--)},Re.prototype._stateInAttributeName=function(Z){(Z==="="||Z==="/"||Z===">"||Me(Z))&&(this._cbs.onattribname(this._getSection()),this._sectionStart=-1,this._state=x,this._index--)},Re.prototype._stateAfterAttributeName=function(Z){Z==="="?this._state=S:Z==="/"||Z===">"?(this._cbs.onattribend(),this._state=y,this._index--):Me(Z)||(this._cbs.onattribend(),this._state=b,this._sectionStart=this._index)},Re.prototype._stateBeforeAttributeValue=function(Z){Z==='"'?(this._state=w,this._sectionStart=this._index+1):Z==="'"?(this._state=N,this._sectionStart=this._index+1):Me(Z)||(this._state=T,this._sectionStart=this._index,this._index--)},Re.prototype._stateInAttributeValueDoubleQuotes=function(Z){Z==='"'?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=y):this._decodeEntities&&Z==="&"&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=be,this._sectionStart=this._index)},Re.prototype._stateInAttributeValueSingleQuotes=function(Z){Z==="'"?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=y):this._decodeEntities&&Z==="&"&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=be,this._sectionStart=this._index)},Re.prototype._stateInAttributeValueNoQuotes=function(Z){Me(Z)||Z===">"?(this._emitToken("onattribdata"),this._cbs.onattribend(),this._state=y,this._index--):this._decodeEntities&&Z==="&"&&(this._emitToken("onattribdata"),this._baseState=this._state,this._state=be,this._sectionStart=this._index)},Re.prototype._stateBeforeDeclaration=function(Z){this._state=Z==="["?z:Z==="-"?$:R},Re.prototype._stateInDeclaration=function(Z){Z===">"&&(this._cbs.ondeclaration(this._getSection()),this._state=i,this._sectionStart=this._index+1)},Re.prototype._stateInProcessingInstruction=function(Z){Z===">"&&(this._cbs.onprocessinginstruction(this._getSection()),this._state=i,this._sectionStart=this._index+1)},Re.prototype._stateBeforeComment=function(Z){Z==="-"?(this._state=_,this._sectionStart=this._index+1):this._state=R},Re.prototype._stateInComment=function(Z){Z==="-"&&(this._state=k)},Re.prototype._stateAfterComment1=function(Z){Z==="-"?this._state=q:this._state=_},Re.prototype._stateAfterComment2=function(Z){Z===">"?(this._cbs.oncomment(this._buffer.substring(this._sectionStart,this._index-2)),this._state=i,this._sectionStart=this._index+1):Z!=="-"&&(this._state=_)},Re.prototype._stateBeforeCdata1=Je("C",D,R),Re.prototype._stateBeforeCdata2=Je("D",H,R),Re.prototype._stateBeforeCdata3=Je("A",O,R),Re.prototype._stateBeforeCdata4=Je("T",j,R),Re.prototype._stateBeforeCdata5=Je("A",M,R),Re.prototype._stateBeforeCdata6=function(Z){Z==="["?(this._state=I,this._sectionStart=this._index+1):(this._state=R,this._index--)},Re.prototype._stateInCdata=function(Z){Z==="]"&&(this._state=F)},Re.prototype._stateAfterCdata1=function(Z){Z==="]"?this._state=V:this._state=I},Re.prototype._stateAfterCdata2=function(Z){Z===">"?(this._cbs.oncdata(this._buffer.substring(this._sectionStart,this._index-2)),this._state=i,this._sectionStart=this._index+1):Z!=="]"&&(this._state=I)},Re.prototype._stateBeforeSpecial=function(Z){Z==="c"||Z==="C"?this._state=P:Z==="t"||Z==="T"?this._state=Be:(this._state=u,this._index--)},Re.prototype._stateBeforeSpecialEnd=function(Z){this._special===He&&(Z==="c"||Z==="C")?this._state=G:this._special===Ae&&(Z==="t"||Z==="T")?this._state=qe:this._state=i},Re.prototype._stateBeforeScript1=dt("R",Y),Re.prototype._stateBeforeScript2=dt("I",K),Re.prototype._stateBeforeScript3=dt("P",Q),Re.prototype._stateBeforeScript4=dt("T",ee),Re.prototype._stateBeforeScript5=function(Z){(Z==="/"||Z===">"||Me(Z))&&(this._special=He),this._state=u,this._index--},Re.prototype._stateAfterScript1=Je("R",oe,i),Re.prototype._stateAfterScript2=Je("I",ye,i),Re.prototype._stateAfterScript3=Je("P",me,i),Re.prototype._stateAfterScript4=Je("T",Se,i),Re.prototype._stateAfterScript5=function(Z){Z===">"||Me(Z)?(this._special=je,this._state=m,this._sectionStart=this._index-6,this._index--):this._state=i},Re.prototype._stateBeforeStyle1=dt("Y",ae),Re.prototype._stateBeforeStyle2=dt("L",ge),Re.prototype._stateBeforeStyle3=dt("E",fe),Re.prototype._stateBeforeStyle4=function(Z){(Z==="/"||Z===">"||Me(Z))&&(this._special=Ae),this._state=u,this._index--},Re.prototype._stateAfterStyle1=Je("Y",re,i),Re.prototype._stateAfterStyle2=Je("L",xe,i),Re.prototype._stateAfterStyle3=Je("E",Te,i),Re.prototype._stateAfterStyle4=function(Z){Z===">"||Me(Z)?(this._special=je,this._state=m,this._sectionStart=this._index-5,this._index--):this._state=i},Re.prototype._stateBeforeEntity=Je("#",ve,pe),Re.prototype._stateBeforeNumericEntity=Je("X",Pe,_e),Re.prototype._parseNamedEntityStrict=function(){if(this._sectionStart+1<this._index){var Z=this._buffer.substring(this._sectionStart+1,this._index),ot=this._xmlMode?a:t;ot.hasOwnProperty(Z)&&(this._emitPartial(ot[Z]),this._sectionStart=this._index+1)}},Re.prototype._parseLegacyEntity=function(){var Z=this._sectionStart+1,ot=this._index-Z;for(ot>6&&(ot=6);ot>=2;){var vt=this._buffer.substr(Z,ot);if(n.hasOwnProperty(vt)){this._emitPartial(n[vt]),this._sectionStart+=ot+1;return}else ot--}},Re.prototype._stateInNamedEntity=function(Z){Z===";"?(this._parseNamedEntityStrict(),this._sectionStart+1<this._index&&!this._xmlMode&&this._parseLegacyEntity(),this._state=this._baseState):(Z<"a"||Z>"z")&&(Z<"A"||Z>"Z")&&(Z<"0"||Z>"9")&&(this._xmlMode||this._sectionStart+1===this._index||(this._baseState!==i?Z!=="="&&this._parseNamedEntityStrict():this._parseLegacyEntity()),this._state=this._baseState,this._index--)},Re.prototype._decodeNumericEntity=function(Z,ot){var vt=this._sectionStart+Z;if(vt!==this._index){var tt=this._buffer.substring(vt,this._index),ft=parseInt(tt,ot);this._emitPartial(e(ft)),this._sectionStart=this._index}else this._sectionStart--;this._state=this._baseState},Re.prototype._stateInNumericEntity=function(Z){Z===";"?(this._decodeNumericEntity(2,10),this._sectionStart++):(Z<"0"||Z>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(2,10),this._index--)},Re.prototype._stateInHexEntity=function(Z){Z===";"?(this._decodeNumericEntity(3,16),this._sectionStart++):(Z<"a"||Z>"f")&&(Z<"A"||Z>"F")&&(Z<"0"||Z>"9")&&(this._xmlMode?this._state=this._baseState:this._decodeNumericEntity(3,16),this._index--)},Re.prototype._cleanup=function(){this._sectionStart<0?(this._buffer="",this._bufferOffset+=this._index,this._index=0):this._running&&(this._state===i?(this._sectionStart!==this._index&&this._cbs.ontext(this._buffer.substr(this._sectionStart)),this._buffer="",this._bufferOffset+=this._index,this._index=0):this._sectionStart===this._index?(this._buffer="",this._bufferOffset+=this._index,this._index=0):(this._buffer=this._buffer.substr(this._sectionStart),this._index-=this._sectionStart,this._bufferOffset+=this._sectionStart),this._sectionStart=0)},Re.prototype.write=function(Z){this._ended&&this._cbs.onerror(Error(".write() after done!")),this._buffer+=Z,this._parse()},Re.prototype._parse=function(){for(;this._index<this._buffer.length&&this._running;){var Z=this._buffer.charAt(this._index);this._state===i?this._stateText(Z):this._state===l?this._stateBeforeTagName(Z):this._state===u?this._stateInTagName(Z):this._state===f?this._stateBeforeCloseingTagName(Z):this._state===m?this._stateInCloseingTagName(Z):this._state===g?this._stateAfterCloseingTagName(Z):this._state===d?this._stateInSelfClosingTag(Z):this._state===y?this._stateBeforeAttributeName(Z):this._state===b?this._stateInAttributeName(Z):this._state===x?this._stateAfterAttributeName(Z):this._state===S?this._stateBeforeAttributeValue(Z):this._state===w?this._stateInAttributeValueDoubleQuotes(Z):this._state===N?this._stateInAttributeValueSingleQuotes(Z):this._state===T?this._stateInAttributeValueNoQuotes(Z):this._state===A?this._stateBeforeDeclaration(Z):this._state===R?this._stateInDeclaration(Z):this._state===E?this._stateInProcessingInstruction(Z):this._state===$?this._stateBeforeComment(Z):this._state===_?this._stateInComment(Z):this._state===k?this._stateAfterComment1(Z):this._state===q?this._stateAfterComment2(Z):this._state===z?this._stateBeforeCdata1(Z):this._state===D?this._stateBeforeCdata2(Z):this._state===H?this._stateBeforeCdata3(Z):this._state===O?this._stateBeforeCdata4(Z):this._state===j?this._stateBeforeCdata5(Z):this._state===M?this._stateBeforeCdata6(Z):this._state===I?this._stateInCdata(Z):this._state===F?this._stateAfterCdata1(Z):this._state===V?this._stateAfterCdata2(Z):this._state===W?this._stateBeforeSpecial(Z):this._state===U?this._stateBeforeSpecialEnd(Z):this._state===P?this._stateBeforeScript1(Z):this._state===Y?this._stateBeforeScript2(Z):this._state===K?this._stateBeforeScript3(Z):this._state===Q?this._stateBeforeScript4(Z):this._state===ee?this._stateBeforeScript5(Z):this._state===G?this._stateAfterScript1(Z):this._state===oe?this._stateAfterScript2(Z):this._state===ye?this._stateAfterScript3(Z):this._state===me?this._stateAfterScript4(Z):this._state===Se?this._stateAfterScript5(Z):this._state===Be?this._stateBeforeStyle1(Z):this._state===ae?this._stateBeforeStyle2(Z):this._state===ge?this._stateBeforeStyle3(Z):this._state===fe?this._stateBeforeStyle4(Z):this._state===qe?this._stateAfterStyle1(Z):this._state===re?this._stateAfterStyle2(Z):this._state===xe?this._stateAfterStyle3(Z):this._state===Te?this._stateAfterStyle4(Z):this._state===be?this._stateBeforeEntity(Z):this._state===ve?this._stateBeforeNumericEntity(Z):this._state===pe?this._stateInNamedEntity(Z):this._state===_e?this._stateInNumericEntity(Z):this._state===Pe?this._stateInHexEntity(Z):this._cbs.onerror(Error("unknown _state"),this._state),this._index++}this._cleanup()},Re.prototype.pause=function(){this._running=!1},Re.prototype.resume=function(){this._running=!0,this._index<this._buffer.length&&this._parse(),this._ended&&this._finish()},Re.prototype.end=function(Z){this._ended&&this._cbs.onerror(Error(".end() after done!")),Z&&this.write(Z),this._ended=!0,this._running&&this._finish()},Re.prototype._finish=function(){this._sectionStart<this._index&&this._handleTrailingData(),this._cbs.onend()},Re.prototype._handleTrailingData=function(){var Z=this._buffer.substr(this._sectionStart);this._state===I||this._state===F||this._state===V?this._cbs.oncdata(Z):this._state===_||this._state===k||this._state===q?this._cbs.oncomment(Z):this._state===pe&&!this._xmlMode?(this._parseLegacyEntity(),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):this._state===_e&&!this._xmlMode?(this._decodeNumericEntity(2,10),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):this._state===Pe&&!this._xmlMode?(this._decodeNumericEntity(3,16),this._sectionStart<this._index&&(this._state=this._baseState,this._handleTrailingData())):this._state!==u&&this._state!==y&&this._state!==S&&this._state!==x&&this._state!==b&&this._state!==N&&this._state!==w&&this._state!==T&&this._state!==m&&this._cbs.ontext(Z)},Re.prototype.reset=function(){Re.call(this,{xmlMode:this._xmlMode,decodeEntities:this._decodeEntities},this._cbs)},Re.prototype.getAbsoluteIndex=function(){return this._bufferOffset+this._index},Re.prototype._getSection=function(){return this._buffer.substring(this._sectionStart,this._index)},Re.prototype._emitToken=function(Z){this._cbs[Z](this._getSection()),this._sectionStart=-1},Re.prototype._emitPartial=function(Z){this._baseState!==i?this._cbs.onattribdata(Z):this._cbs.ontext(Z)},ib}var Yf={exports:{}},A2;function zh(){return A2||(A2=1,typeof Object.create=="function"?Yf.exports=function(t,n){n&&(t.super_=n,t.prototype=Object.create(n.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Yf.exports=function(t,n){if(n){t.super_=n;var a=function(){};a.prototype=n.prototype,t.prototype=new a,t.prototype.constructor=t}}),Yf.exports}const y2e={},b2e=Object.freeze(Object.defineProperty({__proto__:null,default:y2e},Symbol.toStringTag,{value:"Module"})),qp=WO(b2e);var lb,D2;function yD(){if(D2)return lb;D2=1;var e=gD(),t={input:!0,option:!0,optgroup:!0,select:!0,button:!0,datalist:!0,textarea:!0},n={tr:{tr:!0,th:!0,td:!0},th:{th:!0},td:{thead:!0,th:!0,td:!0},body:{head:!0,link:!0,script:!0},li:{li:!0},p:{p:!0},h1:{p:!0},h2:{p:!0},h3:{p:!0},h4:{p:!0},h5:{p:!0},h6:{p:!0},select:t,input:t,output:t,button:t,datalist:t,textarea:t,option:{option:!0},optgroup:{optgroup:!0}},a={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},o={__proto__:null,math:!0,svg:!0},i={__proto__:null,mi:!0,mo:!0,mn:!0,ms:!0,mtext:!0,"annotation-xml":!0,foreignObject:!0,desc:!0,title:!0},l=/\s|\//;function u(d,f){this._options=f||{},this._cbs=d||{},this._tagname="",this._attribname="",this._attribvalue="",this._attribs=null,this._stack=[],this._foreignContext=[],this.startIndex=0,this.endIndex=null,this._lowerCaseTagNames="lowerCaseTags"in this._options?!!this._options.lowerCaseTags:!this._options.xmlMode,this._lowerCaseAttributeNames="lowerCaseAttributeNames"in this._options?!!this._options.lowerCaseAttributeNames:!this._options.xmlMode,this._options.Tokenizer&&(e=this._options.Tokenizer),this._tokenizer=new e(this._options,this),this._cbs.onparserinit&&this._cbs.onparserinit(this)}return zh()(u,qp.EventEmitter),u.prototype._updatePosition=function(d){this.endIndex===null?this._tokenizer._sectionStart<=d?this.startIndex=0:this.startIndex=this._tokenizer._sectionStart-d:this.startIndex=this.endIndex+1,this.endIndex=this._tokenizer.getAbsoluteIndex()},u.prototype.ontext=function(d){this._updatePosition(1),this.endIndex--,this._cbs.ontext&&this._cbs.ontext(d)},u.prototype.onopentagname=function(d){if(this._lowerCaseTagNames&&(d=d.toLowerCase()),this._tagname=d,!this._options.xmlMode&&d in n)for(var f;(f=this._stack[this._stack.length-1])in n[d];this.onclosetag(f));(this._options.xmlMode||!(d in a))&&(this._stack.push(d),d in o?this._foreignContext.push(!0):d in i&&this._foreignContext.push(!1)),this._cbs.onopentagname&&this._cbs.onopentagname(d),this._cbs.onopentag&&(this._attribs={})},u.prototype.onopentagend=function(){this._updatePosition(1),this._attribs&&(this._cbs.onopentag&&this._cbs.onopentag(this._tagname,this._attribs),this._attribs=null),!this._options.xmlMode&&this._cbs.onclosetag&&this._tagname in a&&this._cbs.onclosetag(this._tagname),this._tagname=""},u.prototype.onclosetag=function(d){if(this._updatePosition(1),this._lowerCaseTagNames&&(d=d.toLowerCase()),(d in o||d in i)&&this._foreignContext.pop(),this._stack.length&&(!(d in a)||this._options.xmlMode)){var f=this._stack.lastIndexOf(d);if(f!==-1)if(this._cbs.onclosetag)for(f=this._stack.length-f;f--;)this._cbs.onclosetag(this._stack.pop());else this._stack.length=f;else d==="p"&&!this._options.xmlMode&&(this.onopentagname(d),this._closeCurrentTag())}else!this._options.xmlMode&&(d==="br"||d==="p")&&(this.onopentagname(d),this._closeCurrentTag())},u.prototype.onselfclosingtag=function(){this._options.xmlMode||this._options.recognizeSelfClosing||this._foreignContext[this._foreignContext.length-1]?this._closeCurrentTag():this.onopentagend()},u.prototype._closeCurrentTag=function(){var d=this._tagname;this.onopentagend(),this._stack[this._stack.length-1]===d&&(this._cbs.onclosetag&&this._cbs.onclosetag(d),this._stack.pop())},u.prototype.onattribname=function(d){this._lowerCaseAttributeNames&&(d=d.toLowerCase()),this._attribname=d},u.prototype.onattribdata=function(d){this._attribvalue+=d},u.prototype.onattribend=function(){this._cbs.onattribute&&this._cbs.onattribute(this._attribname,this._attribvalue),this._attribs&&!Object.prototype.hasOwnProperty.call(this._attribs,this._attribname)&&(this._attribs[this._attribname]=this._attribvalue),this._attribname="",this._attribvalue=""},u.prototype._getInstructionName=function(d){var f=d.search(l),m=f<0?d:d.substr(0,f);return this._lowerCaseTagNames&&(m=m.toLowerCase()),m},u.prototype.ondeclaration=function(d){if(this._cbs.onprocessinginstruction){var f=this._getInstructionName(d);this._cbs.onprocessinginstruction("!"+f,"!"+d)}},u.prototype.onprocessinginstruction=function(d){if(this._cbs.onprocessinginstruction){var f=this._getInstructionName(d);this._cbs.onprocessinginstruction("?"+f,"?"+d)}},u.prototype.oncomment=function(d){this._updatePosition(4),this._cbs.oncomment&&this._cbs.oncomment(d),this._cbs.oncommentend&&this._cbs.oncommentend()},u.prototype.oncdata=function(d){this._updatePosition(1),this._options.xmlMode||this._options.recognizeCDATA?(this._cbs.oncdatastart&&this._cbs.oncdatastart(),this._cbs.ontext&&this._cbs.ontext(d),this._cbs.oncdataend&&this._cbs.oncdataend()):this.oncomment("[CDATA["+d+"]]")},u.prototype.onerror=function(d){this._cbs.onerror&&this._cbs.onerror(d)},u.prototype.onend=function(){if(this._cbs.onclosetag)for(var d=this._stack.length;d>0;this._cbs.onclosetag(this._stack[--d]));this._cbs.onend&&this._cbs.onend()},u.prototype.reset=function(){this._cbs.onreset&&this._cbs.onreset(),this._tokenizer.reset(),this._tagname="",this._attribname="",this._attribs=null,this._stack=[],this._cbs.onparserinit&&this._cbs.onparserinit(this)},u.prototype.parseComplete=function(d){this.reset(),this.end(d)},u.prototype.write=function(d){this._tokenizer.write(d)},u.prototype.end=function(d){this._tokenizer.end(d)},u.prototype.pause=function(){this._tokenizer.pause()},u.prototype.resume=function(){this._tokenizer.resume()},u.prototype.parseChunk=u.prototype.write,u.prototype.done=u.prototype.end,lb=u,lb}var cb,j2;function bd(){return j2||(j2=1,cb={Text:"text",Directive:"directive",Comment:"comment",Script:"script",Style:"style",Tag:"tag",CDATA:"cdata",Doctype:"doctype",isTag:function(e){return e.type==="tag"||e.type==="script"||e.type==="style"}}),cb}var ub={exports:{}},R2;function bD(){if(R2)return ub.exports;R2=1,ub.exports={get firstChild(){var n=this.children;return n&&n[0]||null},get lastChild(){var n=this.children;return n&&n[n.length-1]||null},get nodeType(){return t[this.type]||t.element}};var e={tagName:"name",childNodes:"children",parentNode:"parent",previousSibling:"prev",nextSibling:"next",nodeValue:"data"},t={element:1,text:3,cdata:4,comment:8};return Object.keys(e).forEach(function(n){}),ub.exports}var db={exports:{}},O2;function v2e(){if(O2)return db.exports;O2=1;var e=bD(),t=db.exports=Object.create(e),n={tagName:"name"};return Object.keys(n).forEach(function(a){var o=n[a];Object.defineProperty(t,a,{get:function(){return this[o]||null},set:function(i){return this[o]=i,i}})}),db.exports}var fb,I2;function vD(){if(I2)return fb;I2=1;var e=bd(),t=/\s+/g,n=bD(),a=v2e();function o(l,u,d){typeof l=="object"?(d=u,u=l,l=null):typeof u=="function"&&(d=u,u=i),this._callback=l,this._options=u||i,this._elementCB=d,this.dom=[],this._done=!1,this._tagStack=[],this._parser=this._parser||null}var i={normalizeWhitespace:!1,withStartIndices:!1,withEndIndices:!1};return o.prototype.onparserinit=function(l){this._parser=l},o.prototype.onreset=function(){o.call(this,this._callback,this._options,this._elementCB)},o.prototype.onend=function(){this._done||(this._done=!0,this._parser=null,this._handleCallback(null))},o.prototype._handleCallback=o.prototype.onerror=function(l){if(typeof this._callback=="function")this._callback(l,this.dom);else if(l)throw l},o.prototype.onclosetag=function(){var l=this._tagStack.pop();this._options.withEndIndices&&l&&(l.endIndex=this._parser.endIndex),this._elementCB&&this._elementCB(l)},o.prototype._createDomElement=function(l){if(!this._options.withDomLvl1)return l;var u;l.type==="tag"?u=Object.create(a):u=Object.create(n);for(var d in l)l.hasOwnProperty(d)&&(u[d]=l[d]);return u},o.prototype._addDomElement=function(l){var u=this._tagStack[this._tagStack.length-1],d=u?u.children:this.dom,f=d[d.length-1];l.next=null,this._options.withStartIndices&&(l.startIndex=this._parser.startIndex),this._options.withEndIndices&&(l.endIndex=this._parser.endIndex),f?(l.prev=f,f.next=l):l.prev=null,d.push(l),l.parent=u||null},o.prototype.onopentag=function(l,u){var d={type:l==="script"?e.Script:l==="style"?e.Style:e.Tag,name:l,attribs:u,children:[]},f=this._createDomElement(d);this._addDomElement(f),this._tagStack.push(f)},o.prototype.ontext=function(l){var u=this._options.normalizeWhitespace||this._options.ignoreWhitespace,d;if(!this._tagStack.length&&this.dom.length&&(d=this.dom[this.dom.length-1]).type===e.Text)u?d.data=(d.data+l).replace(t," "):d.data+=l;else if(this._tagStack.length&&(d=this._tagStack[this._tagStack.length-1])&&(d=d.children[d.children.length-1])&&d.type===e.Text)u?d.data=(d.data+l).replace(t," "):d.data+=l;else{u&&(l=l.replace(t," "));var f=this._createDomElement({data:l,type:e.Text});this._addDomElement(f)}},o.prototype.oncomment=function(l){var u=this._tagStack[this._tagStack.length-1];if(u&&u.type===e.Comment){u.data+=l;return}var d={data:l,type:e.Comment},f=this._createDomElement(d);this._addDomElement(f),this._tagStack.push(f)},o.prototype.oncdatastart=function(){var l={children:[{data:"",type:e.Text}],type:e.CDATA},u=this._createDomElement(l);this._addDomElement(u),this._tagStack.push(u)},o.prototype.oncommentend=o.prototype.oncdataend=function(){this._tagStack.pop()},o.prototype.onprocessinginstruction=function(l,u){var d=this._createDomElement({name:l,data:u,type:e.Directive});this._addDomElement(d)},fb=o,fb}var pb={exports:{}},hb={exports:{}},mb={},k2;function x2e(){return k2||(k2=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(a){a.Root="root",a.Text="text",a.Directive="directive",a.Comment="comment",a.Script="script",a.Style="style",a.Tag="tag",a.CDATA="cdata",a.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(a){return a.type===t.Tag||a.type===t.Script||a.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(mb)),mb}var gb={},ga={};const C2e="Á",S2e="á",N2e="Ă",w2e="ă",E2e="∾",$2e="∿",T2e="∾̳",_2e="Â",A2e="â",D2e="´",j2e="А",R2e="а",O2e="Æ",I2e="æ",k2e="⁡",M2e="𝔄",P2e="𝔞",L2e="À",B2e="à",q2e="ℵ",F2e="ℵ",z2e="Α",H2e="α",U2e="Ā",V2e="ā",G2e="⨿",Y2e="&",W2e="&",X2e="⩕",K2e="⩓",Q2e="∧",Z2e="⩜",J2e="⩘",eEe="⩚",tEe="∠",nEe="⦤",rEe="∠",aEe="⦨",sEe="⦩",oEe="⦪",iEe="⦫",lEe="⦬",cEe="⦭",uEe="⦮",dEe="⦯",fEe="∡",pEe="∟",hEe="⊾",mEe="⦝",gEe="∢",yEe="Å",bEe="⍼",vEe="Ą",xEe="ą",CEe="𝔸",SEe="𝕒",NEe="⩯",wEe="≈",EEe="⩰",$Ee="≊",TEe="≋",_Ee="'",AEe="⁡",DEe="≈",jEe="≊",REe="Å",OEe="å",IEe="𝒜",kEe="𝒶",MEe="≔",PEe="*",LEe="≈",BEe="≍",qEe="Ã",FEe="ã",zEe="Ä",HEe="ä",UEe="∳",VEe="⨑",GEe="≌",YEe="϶",WEe="‵",XEe="∽",KEe="⋍",QEe="∖",ZEe="⫧",JEe="⊽",e$e="⌅",t$e="⌆",n$e="⌅",r$e="⎵",a$e="⎶",s$e="≌",o$e="Б",i$e="б",l$e="„",c$e="∵",u$e="∵",d$e="∵",f$e="⦰",p$e="϶",h$e="ℬ",m$e="ℬ",g$e="Β",y$e="β",b$e="ℶ",v$e="≬",x$e="𝔅",C$e="𝔟",S$e="⋂",N$e="◯",w$e="⋃",E$e="⨀",$$e="⨁",T$e="⨂",_$e="⨆",A$e="★",D$e="▽",j$e="△",R$e="⨄",O$e="⋁",I$e="⋀",k$e="⤍",M$e="⧫",P$e="▪",L$e="▴",B$e="▾",q$e="◂",F$e="▸",z$e="␣",H$e="▒",U$e="░",V$e="▓",G$e="█",Y$e="=⃥",W$e="≡⃥",X$e="⫭",K$e="⌐",Q$e="𝔹",Z$e="𝕓",J$e="⊥",eTe="⊥",tTe="⋈",nTe="⧉",rTe="┐",aTe="╕",sTe="╖",oTe="╗",iTe="┌",lTe="╒",cTe="╓",uTe="╔",dTe="─",fTe="═",pTe="┬",hTe="╤",mTe="╥",gTe="╦",yTe="┴",bTe="╧",vTe="╨",xTe="╩",CTe="⊟",STe="⊞",NTe="⊠",wTe="┘",ETe="╛",$Te="╜",TTe="╝",_Te="└",ATe="╘",DTe="╙",jTe="╚",RTe="│",OTe="║",ITe="┼",kTe="╪",MTe="╫",PTe="╬",LTe="┤",BTe="╡",qTe="╢",FTe="╣",zTe="├",HTe="╞",UTe="╟",VTe="╠",GTe="‵",YTe="˘",WTe="˘",XTe="¦",KTe="𝒷",QTe="ℬ",ZTe="⁏",JTe="∽",e_e="⋍",t_e="⧅",n_e="\\",r_e="⟈",a_e="•",s_e="•",o_e="≎",i_e="⪮",l_e="≏",c_e="≎",u_e="≏",d_e="Ć",f_e="ć",p_e="⩄",h_e="⩉",m_e="⩋",g_e="∩",y_e="⋒",b_e="⩇",v_e="⩀",x_e="ⅅ",C_e="∩︀",S_e="⁁",N_e="ˇ",w_e="ℭ",E_e="⩍",$_e="Č",T_e="č",__e="Ç",A_e="ç",D_e="Ĉ",j_e="ĉ",R_e="∰",O_e="⩌",I_e="⩐",k_e="Ċ",M_e="ċ",P_e="¸",L_e="¸",B_e="⦲",q_e="¢",F_e="·",z_e="·",H_e="𝔠",U_e="ℭ",V_e="Ч",G_e="ч",Y_e="✓",W_e="✓",X_e="Χ",K_e="χ",Q_e="ˆ",Z_e="≗",J_e="↺",eAe="↻",tAe="⊛",nAe="⊚",rAe="⊝",aAe="⊙",sAe="®",oAe="Ⓢ",iAe="⊖",lAe="⊕",cAe="⊗",uAe="○",dAe="⧃",fAe="≗",pAe="⨐",hAe="⫯",mAe="⧂",gAe="∲",yAe="”",bAe="’",vAe="♣",xAe="♣",CAe=":",SAe="∷",NAe="⩴",wAe="≔",EAe="≔",$Ae=",",TAe="@",_Ae="∁",AAe="∘",DAe="∁",jAe="ℂ",RAe="≅",OAe="⩭",IAe="≡",kAe="∮",MAe="∯",PAe="∮",LAe="𝕔",BAe="ℂ",qAe="∐",FAe="∐",zAe="©",HAe="©",UAe="℗",VAe="∳",GAe="↵",YAe="✗",WAe="⨯",XAe="𝒞",KAe="𝒸",QAe="⫏",ZAe="⫑",JAe="⫐",eDe="⫒",tDe="⋯",nDe="⤸",rDe="⤵",aDe="⋞",sDe="⋟",oDe="↶",iDe="⤽",lDe="⩈",cDe="⩆",uDe="≍",dDe="∪",fDe="⋓",pDe="⩊",hDe="⊍",mDe="⩅",gDe="∪︀",yDe="↷",bDe="⤼",vDe="⋞",xDe="⋟",CDe="⋎",SDe="⋏",NDe="¤",wDe="↶",EDe="↷",$De="⋎",TDe="⋏",_De="∲",ADe="∱",DDe="⌭",jDe="†",RDe="‡",ODe="ℸ",IDe="↓",kDe="↡",MDe="⇓",PDe="‐",LDe="⫤",BDe="⊣",qDe="⤏",FDe="˝",zDe="Ď",HDe="ď",UDe="Д",VDe="д",GDe="‡",YDe="⇊",WDe="ⅅ",XDe="ⅆ",KDe="⤑",QDe="⩷",ZDe="°",JDe="∇",e3e="Δ",t3e="δ",n3e="⦱",r3e="⥿",a3e="𝔇",s3e="𝔡",o3e="⥥",i3e="⇃",l3e="⇂",c3e="´",u3e="˙",d3e="˝",f3e="`",p3e="˜",h3e="⋄",m3e="⋄",g3e="⋄",y3e="♦",b3e="♦",v3e="¨",x3e="ⅆ",C3e="ϝ",S3e="⋲",N3e="÷",w3e="÷",E3e="⋇",$3e="⋇",T3e="Ђ",_3e="ђ",A3e="⌞",D3e="⌍",j3e="$",R3e="𝔻",O3e="𝕕",I3e="¨",k3e="˙",M3e="⃜",P3e="≐",L3e="≑",B3e="≐",q3e="∸",F3e="∔",z3e="⊡",H3e="⌆",U3e="∯",V3e="¨",G3e="⇓",Y3e="⇐",W3e="⇔",X3e="⫤",K3e="⟸",Q3e="⟺",Z3e="⟹",J3e="⇒",eje="⊨",tje="⇑",nje="⇕",rje="∥",aje="⤓",sje="↓",oje="↓",ije="⇓",lje="⇵",cje="̑",uje="⇊",dje="⇃",fje="⇂",pje="⥐",hje="⥞",mje="⥖",gje="↽",yje="⥟",bje="⥗",vje="⇁",xje="↧",Cje="⊤",Sje="⤐",Nje="⌟",wje="⌌",Eje="𝒟",$je="𝒹",Tje="Ѕ",_je="ѕ",Aje="⧶",Dje="Đ",jje="đ",Rje="⋱",Oje="▿",Ije="▾",kje="⇵",Mje="⥯",Pje="⦦",Lje="Џ",Bje="џ",qje="⟿",Fje="É",zje="é",Hje="⩮",Uje="Ě",Vje="ě",Gje="Ê",Yje="ê",Wje="≖",Xje="≕",Kje="Э",Qje="э",Zje="⩷",Jje="Ė",eRe="ė",tRe="≑",nRe="ⅇ",rRe="≒",aRe="𝔈",sRe="𝔢",oRe="⪚",iRe="È",lRe="è",cRe="⪖",uRe="⪘",dRe="⪙",fRe="∈",pRe="⏧",hRe="ℓ",mRe="⪕",gRe="⪗",yRe="Ē",bRe="ē",vRe="∅",xRe="∅",CRe="◻",SRe="∅",NRe="▫",wRe=" ",ERe=" ",$Re=" ",TRe="Ŋ",_Re="ŋ",ARe=" ",DRe="Ę",jRe="ę",RRe="𝔼",ORe="𝕖",IRe="⋕",kRe="⧣",MRe="⩱",PRe="ε",LRe="Ε",BRe="ε",qRe="ϵ",FRe="≖",zRe="≕",HRe="≂",URe="⪖",VRe="⪕",GRe="⩵",YRe="=",WRe="≂",XRe="≟",KRe="⇌",QRe="≡",ZRe="⩸",JRe="⧥",eOe="⥱",tOe="≓",nOe="ℯ",rOe="ℰ",aOe="≐",sOe="⩳",oOe="≂",iOe="Η",lOe="η",cOe="Ð",uOe="ð",dOe="Ë",fOe="ë",pOe="€",hOe="!",mOe="∃",gOe="∃",yOe="ℰ",bOe="ⅇ",vOe="ⅇ",xOe="≒",COe="Ф",SOe="ф",NOe="♀",wOe="ffi",EOe="ff",$Oe="ffl",TOe="𝔉",_Oe="𝔣",AOe="fi",DOe="◼",jOe="▪",ROe="fj",OOe="♭",IOe="fl",kOe="▱",MOe="ƒ",POe="𝔽",LOe="𝕗",BOe="∀",qOe="∀",FOe="⋔",zOe="⫙",HOe="ℱ",UOe="⨍",VOe="½",GOe="⅓",YOe="¼",WOe="⅕",XOe="⅙",KOe="⅛",QOe="⅔",ZOe="⅖",JOe="¾",eIe="⅗",tIe="⅜",nIe="⅘",rIe="⅚",aIe="⅝",sIe="⅞",oIe="⁄",iIe="⌢",lIe="𝒻",cIe="ℱ",uIe="ǵ",dIe="Γ",fIe="γ",pIe="Ϝ",hIe="ϝ",mIe="⪆",gIe="Ğ",yIe="ğ",bIe="Ģ",vIe="Ĝ",xIe="ĝ",CIe="Г",SIe="г",NIe="Ġ",wIe="ġ",EIe="≥",$Ie="≧",TIe="⪌",_Ie="⋛",AIe="≥",DIe="≧",jIe="⩾",RIe="⪩",OIe="⩾",IIe="⪀",kIe="⪂",MIe="⪄",PIe="⋛︀",LIe="⪔",BIe="𝔊",qIe="𝔤",FIe="≫",zIe="⋙",HIe="⋙",UIe="ℷ",VIe="Ѓ",GIe="ѓ",YIe="⪥",WIe="≷",XIe="⪒",KIe="⪤",QIe="⪊",ZIe="⪊",JIe="⪈",eke="≩",tke="⪈",nke="≩",rke="⋧",ake="𝔾",ske="𝕘",oke="`",ike="≥",lke="⋛",cke="≧",uke="⪢",dke="≷",fke="⩾",pke="≳",hke="𝒢",mke="ℊ",gke="≳",yke="⪎",bke="⪐",vke="⪧",xke="⩺",Cke=">",Ske=">",Nke="≫",wke="⋗",Eke="⦕",$ke="⩼",Tke="⪆",_ke="⥸",Ake="⋗",Dke="⋛",jke="⪌",Rke="≷",Oke="≳",Ike="≩︀",kke="≩︀",Mke="ˇ",Pke=" ",Lke="½",Bke="ℋ",qke="Ъ",Fke="ъ",zke="⥈",Hke="↔",Uke="⇔",Vke="↭",Gke="^",Yke="ℏ",Wke="Ĥ",Xke="ĥ",Kke="♥",Qke="♥",Zke="…",Jke="⊹",e4e="𝔥",t4e="ℌ",n4e="ℋ",r4e="⤥",a4e="⤦",s4e="⇿",o4e="∻",i4e="↩",l4e="↪",c4e="𝕙",u4e="ℍ",d4e="―",f4e="─",p4e="𝒽",h4e="ℋ",m4e="ℏ",g4e="Ħ",y4e="ħ",b4e="≎",v4e="≏",x4e="⁃",C4e="‐",S4e="Í",N4e="í",w4e="⁣",E4e="Î",$4e="î",T4e="И",_4e="и",A4e="İ",D4e="Е",j4e="е",R4e="¡",O4e="⇔",I4e="𝔦",k4e="ℑ",M4e="Ì",P4e="ì",L4e="ⅈ",B4e="⨌",q4e="∭",F4e="⧜",z4e="℩",H4e="IJ",U4e="ij",V4e="Ī",G4e="ī",Y4e="ℑ",W4e="ⅈ",X4e="ℐ",K4e="ℑ",Q4e="ı",Z4e="ℑ",J4e="⊷",eMe="Ƶ",tMe="⇒",nMe="℅",rMe="∞",aMe="⧝",sMe="ı",oMe="⊺",iMe="∫",lMe="∬",cMe="ℤ",uMe="∫",dMe="⊺",fMe="⋂",pMe="⨗",hMe="⨼",mMe="⁣",gMe="⁢",yMe="Ё",bMe="ё",vMe="Į",xMe="į",CMe="𝕀",SMe="𝕚",NMe="Ι",wMe="ι",EMe="⨼",$Me="¿",TMe="𝒾",_Me="ℐ",AMe="∈",DMe="⋵",jMe="⋹",RMe="⋴",OMe="⋳",IMe="∈",kMe="⁢",MMe="Ĩ",PMe="ĩ",LMe="І",BMe="і",qMe="Ï",FMe="ï",zMe="Ĵ",HMe="ĵ",UMe="Й",VMe="й",GMe="𝔍",YMe="𝔧",WMe="ȷ",XMe="𝕁",KMe="𝕛",QMe="𝒥",ZMe="𝒿",JMe="Ј",ePe="ј",tPe="Є",nPe="є",rPe="Κ",aPe="κ",sPe="ϰ",oPe="Ķ",iPe="ķ",lPe="К",cPe="к",uPe="𝔎",dPe="𝔨",fPe="ĸ",pPe="Х",hPe="х",mPe="Ќ",gPe="ќ",yPe="𝕂",bPe="𝕜",vPe="𝒦",xPe="𝓀",CPe="⇚",SPe="Ĺ",NPe="ĺ",wPe="⦴",EPe="ℒ",$Pe="Λ",TPe="λ",_Pe="⟨",APe="⟪",DPe="⦑",jPe="⟨",RPe="⪅",OPe="ℒ",IPe="«",kPe="⇤",MPe="⤟",PPe="←",LPe="↞",BPe="⇐",qPe="⤝",FPe="↩",zPe="↫",HPe="⤹",UPe="⥳",VPe="↢",GPe="⤙",YPe="⤛",WPe="⪫",XPe="⪭",KPe="⪭︀",QPe="⤌",ZPe="⤎",JPe="❲",eLe="{",tLe="[",nLe="⦋",rLe="⦏",aLe="⦍",sLe="Ľ",oLe="ľ",iLe="Ļ",lLe="ļ",cLe="⌈",uLe="{",dLe="Л",fLe="л",pLe="⤶",hLe="“",mLe="„",gLe="⥧",yLe="⥋",bLe="↲",vLe="≤",xLe="≦",CLe="⟨",SLe="⇤",NLe="←",wLe="←",ELe="⇐",$Le="⇆",TLe="↢",_Le="⌈",ALe="⟦",DLe="⥡",jLe="⥙",RLe="⇃",OLe="⌊",ILe="↽",kLe="↼",MLe="⇇",PLe="↔",LLe="↔",BLe="⇔",qLe="⇆",FLe="⇋",zLe="↭",HLe="⥎",ULe="↤",VLe="⊣",GLe="⥚",YLe="⋋",WLe="⧏",XLe="⊲",KLe="⊴",QLe="⥑",ZLe="⥠",JLe="⥘",e6e="↿",t6e="⥒",n6e="↼",r6e="⪋",a6e="⋚",s6e="≤",o6e="≦",i6e="⩽",l6e="⪨",c6e="⩽",u6e="⩿",d6e="⪁",f6e="⪃",p6e="⋚︀",h6e="⪓",m6e="⪅",g6e="⋖",y6e="⋚",b6e="⪋",v6e="⋚",x6e="≦",C6e="≶",S6e="≶",N6e="⪡",w6e="≲",E6e="⩽",$6e="≲",T6e="⥼",_6e="⌊",A6e="𝔏",D6e="𝔩",j6e="≶",R6e="⪑",O6e="⥢",I6e="↽",k6e="↼",M6e="⥪",P6e="▄",L6e="Љ",B6e="љ",q6e="⇇",F6e="≪",z6e="⋘",H6e="⌞",U6e="⇚",V6e="⥫",G6e="◺",Y6e="Ŀ",W6e="ŀ",X6e="⎰",K6e="⎰",Q6e="⪉",Z6e="⪉",J6e="⪇",e5e="≨",t5e="⪇",n5e="≨",r5e="⋦",a5e="⟬",s5e="⇽",o5e="⟦",i5e="⟵",l5e="⟵",c5e="⟸",u5e="⟷",d5e="⟷",f5e="⟺",p5e="⟼",h5e="⟶",m5e="⟶",g5e="⟹",y5e="↫",b5e="↬",v5e="⦅",x5e="𝕃",C5e="𝕝",S5e="⨭",N5e="⨴",w5e="∗",E5e="_",$5e="↙",T5e="↘",_5e="◊",A5e="◊",D5e="⧫",j5e="(",R5e="⦓",O5e="⇆",I5e="⌟",k5e="⇋",M5e="⥭",P5e="‎",L5e="⊿",B5e="‹",q5e="𝓁",F5e="ℒ",z5e="↰",H5e="↰",U5e="≲",V5e="⪍",G5e="⪏",Y5e="[",W5e="‘",X5e="‚",K5e="Ł",Q5e="ł",Z5e="⪦",J5e="⩹",eBe="<",tBe="<",nBe="≪",rBe="⋖",aBe="⋋",sBe="⋉",oBe="⥶",iBe="⩻",lBe="◃",cBe="⊴",uBe="◂",dBe="⦖",fBe="⥊",pBe="⥦",hBe="≨︀",mBe="≨︀",gBe="¯",yBe="♂",bBe="✠",vBe="✠",xBe="↦",CBe="↦",SBe="↧",NBe="↤",wBe="↥",EBe="▮",$Be="⨩",TBe="М",_Be="м",ABe="—",DBe="∺",jBe="∡",RBe=" ",OBe="ℳ",IBe="𝔐",kBe="𝔪",MBe="℧",PBe="µ",LBe="*",BBe="⫰",qBe="∣",FBe="·",zBe="⊟",HBe="−",UBe="∸",VBe="⨪",GBe="∓",YBe="⫛",WBe="…",XBe="∓",KBe="⊧",QBe="𝕄",ZBe="𝕞",JBe="∓",e8e="𝓂",t8e="ℳ",n8e="∾",r8e="Μ",a8e="μ",s8e="⊸",o8e="⊸",i8e="∇",l8e="Ń",c8e="ń",u8e="∠⃒",d8e="≉",f8e="⩰̸",p8e="≋̸",h8e="ʼn",m8e="≉",g8e="♮",y8e="ℕ",b8e="♮",v8e=" ",x8e="≎̸",C8e="≏̸",S8e="⩃",N8e="Ň",w8e="ň",E8e="Ņ",$8e="ņ",T8e="≇",_8e="⩭̸",A8e="⩂",D8e="Н",j8e="н",R8e="–",O8e="⤤",I8e="↗",k8e="⇗",M8e="↗",P8e="≠",L8e="≐̸",B8e="​",q8e="​",F8e="​",z8e="​",H8e="≢",U8e="⤨",V8e="≂̸",G8e="≫",Y8e="≪",W8e=`
`,X8e="∄",K8e="∄",Q8e="𝔑",Z8e="𝔫",J8e="≧̸",eqe="≱",tqe="≱",nqe="≧̸",rqe="⩾̸",aqe="⩾̸",sqe="⋙̸",oqe="≵",iqe="≫⃒",lqe="≯",cqe="≯",uqe="≫̸",dqe="↮",fqe="⇎",pqe="⫲",hqe="∋",mqe="⋼",gqe="⋺",yqe="∋",bqe="Њ",vqe="њ",xqe="↚",Cqe="⇍",Sqe="‥",Nqe="≦̸",wqe="≰",Eqe="↚",$qe="⇍",Tqe="↮",_qe="⇎",Aqe="≰",Dqe="≦̸",jqe="⩽̸",Rqe="⩽̸",Oqe="≮",Iqe="⋘̸",kqe="≴",Mqe="≪⃒",Pqe="≮",Lqe="⋪",Bqe="⋬",qqe="≪̸",Fqe="∤",zqe="⁠",Hqe=" ",Uqe="𝕟",Vqe="ℕ",Gqe="⫬",Yqe="¬",Wqe="≢",Xqe="≭",Kqe="∦",Qqe="∉",Zqe="≠",Jqe="≂̸",e7e="∄",t7e="≯",n7e="≱",r7e="≧̸",a7e="≫̸",s7e="≹",o7e="⩾̸",i7e="≵",l7e="≎̸",c7e="≏̸",u7e="∉",d7e="⋵̸",f7e="⋹̸",p7e="∉",h7e="⋷",m7e="⋶",g7e="⧏̸",y7e="⋪",b7e="⋬",v7e="≮",x7e="≰",C7e="≸",S7e="≪̸",N7e="⩽̸",w7e="≴",E7e="⪢̸",$7e="⪡̸",T7e="∌",_7e="∌",A7e="⋾",D7e="⋽",j7e="⊀",R7e="⪯̸",O7e="⋠",I7e="∌",k7e="⧐̸",M7e="⋫",P7e="⋭",L7e="⊏̸",B7e="⋢",q7e="⊐̸",F7e="⋣",z7e="⊂⃒",H7e="⊈",U7e="⊁",V7e="⪰̸",G7e="⋡",Y7e="≿̸",W7e="⊃⃒",X7e="⊉",K7e="≁",Q7e="≄",Z7e="≇",J7e="≉",eFe="∤",tFe="∦",nFe="∦",rFe="⫽⃥",aFe="∂̸",sFe="⨔",oFe="⊀",iFe="⋠",lFe="⊀",cFe="⪯̸",uFe="⪯̸",dFe="⤳̸",fFe="↛",pFe="⇏",hFe="↝̸",mFe="↛",gFe="⇏",yFe="⋫",bFe="⋭",vFe="⊁",xFe="⋡",CFe="⪰̸",SFe="𝒩",NFe="𝓃",wFe="∤",EFe="∦",$Fe="≁",TFe="≄",_Fe="≄",AFe="∤",DFe="∦",jFe="⋢",RFe="⋣",OFe="⊄",IFe="⫅̸",kFe="⊈",MFe="⊂⃒",PFe="⊈",LFe="⫅̸",BFe="⊁",qFe="⪰̸",FFe="⊅",zFe="⫆̸",HFe="⊉",UFe="⊃⃒",VFe="⊉",GFe="⫆̸",YFe="≹",WFe="Ñ",XFe="ñ",KFe="≸",QFe="⋪",ZFe="⋬",JFe="⋫",e9e="⋭",t9e="Ν",n9e="ν",r9e="#",a9e="№",s9e=" ",o9e="≍⃒",i9e="⊬",l9e="⊭",c9e="⊮",u9e="⊯",d9e="≥⃒",f9e=">⃒",p9e="⤄",h9e="⧞",m9e="⤂",g9e="≤⃒",y9e="<⃒",b9e="⊴⃒",v9e="⤃",x9e="⊵⃒",C9e="∼⃒",S9e="⤣",N9e="↖",w9e="⇖",E9e="↖",$9e="⤧",T9e="Ó",_9e="ó",A9e="⊛",D9e="Ô",j9e="ô",R9e="⊚",O9e="О",I9e="о",k9e="⊝",M9e="Ő",P9e="ő",L9e="⨸",B9e="⊙",q9e="⦼",F9e="Œ",z9e="œ",H9e="⦿",U9e="𝔒",V9e="𝔬",G9e="˛",Y9e="Ò",W9e="ò",X9e="⧁",K9e="⦵",Q9e="Ω",Z9e="∮",J9e="↺",eze="⦾",tze="⦻",nze="‾",rze="⧀",aze="Ō",sze="ō",oze="Ω",ize="ω",lze="Ο",cze="ο",uze="⦶",dze="⊖",fze="𝕆",pze="𝕠",hze="⦷",mze="“",gze="‘",yze="⦹",bze="⊕",vze="↻",xze="⩔",Cze="∨",Sze="⩝",Nze="ℴ",wze="ℴ",Eze="ª",$ze="º",Tze="⊶",_ze="⩖",Aze="⩗",Dze="⩛",jze="Ⓢ",Rze="𝒪",Oze="ℴ",Ize="Ø",kze="ø",Mze="⊘",Pze="Õ",Lze="õ",Bze="⨶",qze="⨷",Fze="⊗",zze="Ö",Hze="ö",Uze="⌽",Vze="‾",Gze="⏞",Yze="⎴",Wze="⏜",Xze="¶",Kze="∥",Qze="∥",Zze="⫳",Jze="⫽",eHe="∂",tHe="∂",nHe="П",rHe="п",aHe="%",sHe=".",oHe="‰",iHe="⊥",lHe="‱",cHe="𝔓",uHe="𝔭",dHe="Φ",fHe="φ",pHe="ϕ",hHe="ℳ",mHe="☎",gHe="Π",yHe="π",bHe="⋔",vHe="ϖ",xHe="ℏ",CHe="ℎ",SHe="ℏ",NHe="⨣",wHe="⊞",EHe="⨢",$He="+",THe="∔",_He="⨥",AHe="⩲",DHe="±",jHe="±",RHe="⨦",OHe="⨧",IHe="±",kHe="ℌ",MHe="⨕",PHe="𝕡",LHe="ℙ",BHe="£",qHe="⪷",FHe="⪻",zHe="≺",HHe="≼",UHe="⪷",VHe="≺",GHe="≼",YHe="≺",WHe="⪯",XHe="≼",KHe="≾",QHe="⪯",ZHe="⪹",JHe="⪵",eUe="⋨",tUe="⪯",nUe="⪳",rUe="≾",aUe="′",sUe="″",oUe="ℙ",iUe="⪹",lUe="⪵",cUe="⋨",uUe="∏",dUe="∏",fUe="⌮",pUe="⌒",hUe="⌓",mUe="∝",gUe="∝",yUe="∷",bUe="∝",vUe="≾",xUe="⊰",CUe="𝒫",SUe="𝓅",NUe="Ψ",wUe="ψ",EUe=" ",$Ue="𝔔",TUe="𝔮",_Ue="⨌",AUe="𝕢",DUe="ℚ",jUe="⁗",RUe="𝒬",OUe="𝓆",IUe="ℍ",kUe="⨖",MUe="?",PUe="≟",LUe='"',BUe='"',qUe="⇛",FUe="∽̱",zUe="Ŕ",HUe="ŕ",UUe="√",VUe="⦳",GUe="⟩",YUe="⟫",WUe="⦒",XUe="⦥",KUe="⟩",QUe="»",ZUe="⥵",JUe="⇥",eVe="⤠",tVe="⤳",nVe="→",rVe="↠",aVe="⇒",sVe="⤞",oVe="↪",iVe="↬",lVe="⥅",cVe="⥴",uVe="⤖",dVe="↣",fVe="↝",pVe="⤚",hVe="⤜",mVe="∶",gVe="ℚ",yVe="⤍",bVe="⤏",vVe="⤐",xVe="❳",CVe="}",SVe="]",NVe="⦌",wVe="⦎",EVe="⦐",$Ve="Ř",TVe="ř",_Ve="Ŗ",AVe="ŗ",DVe="⌉",jVe="}",RVe="Р",OVe="р",IVe="⤷",kVe="⥩",MVe="”",PVe="”",LVe="↳",BVe="ℜ",qVe="ℛ",FVe="ℜ",zVe="ℝ",HVe="ℜ",UVe="▭",VVe="®",GVe="®",YVe="∋",WVe="⇋",XVe="⥯",KVe="⥽",QVe="⌋",ZVe="𝔯",JVe="ℜ",eGe="⥤",tGe="⇁",nGe="⇀",rGe="⥬",aGe="Ρ",sGe="ρ",oGe="ϱ",iGe="⟩",lGe="⇥",cGe="→",uGe="→",dGe="⇒",fGe="⇄",pGe="↣",hGe="⌉",mGe="⟧",gGe="⥝",yGe="⥕",bGe="⇂",vGe="⌋",xGe="⇁",CGe="⇀",SGe="⇄",NGe="⇌",wGe="⇉",EGe="↝",$Ge="↦",TGe="⊢",_Ge="⥛",AGe="⋌",DGe="⧐",jGe="⊳",RGe="⊵",OGe="⥏",IGe="⥜",kGe="⥔",MGe="↾",PGe="⥓",LGe="⇀",BGe="˚",qGe="≓",FGe="⇄",zGe="⇌",HGe="‏",UGe="⎱",VGe="⎱",GGe="⫮",YGe="⟭",WGe="⇾",XGe="⟧",KGe="⦆",QGe="𝕣",ZGe="ℝ",JGe="⨮",eYe="⨵",tYe="⥰",nYe=")",rYe="⦔",aYe="⨒",sYe="⇉",oYe="⇛",iYe="›",lYe="𝓇",cYe="ℛ",uYe="↱",dYe="↱",fYe="]",pYe="’",hYe="’",mYe="⋌",gYe="⋊",yYe="▹",bYe="⊵",vYe="▸",xYe="⧎",CYe="⧴",SYe="⥨",NYe="℞",wYe="Ś",EYe="ś",$Ye="‚",TYe="⪸",_Ye="Š",AYe="š",DYe="⪼",jYe="≻",RYe="≽",OYe="⪰",IYe="⪴",kYe="Ş",MYe="ş",PYe="Ŝ",LYe="ŝ",BYe="⪺",qYe="⪶",FYe="⋩",zYe="⨓",HYe="≿",UYe="С",VYe="с",GYe="⊡",YYe="⋅",WYe="⩦",XYe="⤥",KYe="↘",QYe="⇘",ZYe="↘",JYe="§",eWe=";",tWe="⤩",nWe="∖",rWe="∖",aWe="✶",sWe="𝔖",oWe="𝔰",iWe="⌢",lWe="♯",cWe="Щ",uWe="щ",dWe="Ш",fWe="ш",pWe="↓",hWe="←",mWe="∣",gWe="∥",yWe="→",bWe="↑",vWe="­",xWe="Σ",CWe="σ",SWe="ς",NWe="ς",wWe="∼",EWe="⩪",$We="≃",TWe="≃",_We="⪞",AWe="⪠",DWe="⪝",jWe="⪟",RWe="≆",OWe="⨤",IWe="⥲",kWe="←",MWe="∘",PWe="∖",LWe="⨳",BWe="⧤",qWe="∣",FWe="⌣",zWe="⪪",HWe="⪬",UWe="⪬︀",VWe="Ь",GWe="ь",YWe="⌿",WWe="⧄",XWe="/",KWe="𝕊",QWe="𝕤",ZWe="♠",JWe="♠",eXe="∥",tXe="⊓",nXe="⊓︀",rXe="⊔",aXe="⊔︀",sXe="√",oXe="⊏",iXe="⊑",lXe="⊏",cXe="⊑",uXe="⊐",dXe="⊒",fXe="⊐",pXe="⊒",hXe="□",mXe="□",gXe="⊓",yXe="⊏",bXe="⊑",vXe="⊐",xXe="⊒",CXe="⊔",SXe="▪",NXe="□",wXe="▪",EXe="→",$Xe="𝒮",TXe="𝓈",_Xe="∖",AXe="⌣",DXe="⋆",jXe="⋆",RXe="☆",OXe="★",IXe="ϵ",kXe="ϕ",MXe="¯",PXe="⊂",LXe="⋐",BXe="⪽",qXe="⫅",FXe="⊆",zXe="⫃",HXe="⫁",UXe="⫋",VXe="⊊",GXe="⪿",YXe="⥹",WXe="⊂",XXe="⋐",KXe="⊆",QXe="⫅",ZXe="⊆",JXe="⊊",eKe="⫋",tKe="⫇",nKe="⫕",rKe="⫓",aKe="⪸",sKe="≻",oKe="≽",iKe="≻",lKe="⪰",cKe="≽",uKe="≿",dKe="⪰",fKe="⪺",pKe="⪶",hKe="⋩",mKe="≿",gKe="∋",yKe="∑",bKe="∑",vKe="♪",xKe="¹",CKe="²",SKe="³",NKe="⊃",wKe="⋑",EKe="⪾",$Ke="⫘",TKe="⫆",_Ke="⊇",AKe="⫄",DKe="⊃",jKe="⊇",RKe="⟉",OKe="⫗",IKe="⥻",kKe="⫂",MKe="⫌",PKe="⊋",LKe="⫀",BKe="⊃",qKe="⋑",FKe="⊇",zKe="⫆",HKe="⊋",UKe="⫌",VKe="⫈",GKe="⫔",YKe="⫖",WKe="⤦",XKe="↙",KKe="⇙",QKe="↙",ZKe="⤪",JKe="ß",eQe="	",tQe="⌖",nQe="Τ",rQe="τ",aQe="⎴",sQe="Ť",oQe="ť",iQe="Ţ",lQe="ţ",cQe="Т",uQe="т",dQe="⃛",fQe="⌕",pQe="𝔗",hQe="𝔱",mQe="∴",gQe="∴",yQe="∴",bQe="Θ",vQe="θ",xQe="ϑ",CQe="ϑ",SQe="≈",NQe="∼",wQe="  ",EQe=" ",$Qe=" ",TQe="≈",_Qe="∼",AQe="Þ",DQe="þ",jQe="˜",RQe="∼",OQe="≃",IQe="≅",kQe="≈",MQe="⨱",PQe="⊠",LQe="×",BQe="⨰",qQe="∭",FQe="⤨",zQe="⌶",HQe="⫱",UQe="⊤",VQe="𝕋",GQe="𝕥",YQe="⫚",WQe="⤩",XQe="‴",KQe="™",QQe="™",ZQe="▵",JQe="▿",eZe="◃",tZe="⊴",nZe="≜",rZe="▹",aZe="⊵",sZe="◬",oZe="≜",iZe="⨺",lZe="⃛",cZe="⨹",uZe="⧍",dZe="⨻",fZe="⏢",pZe="𝒯",hZe="𝓉",mZe="Ц",gZe="ц",yZe="Ћ",bZe="ћ",vZe="Ŧ",xZe="ŧ",CZe="≬",SZe="↞",NZe="↠",wZe="Ú",EZe="ú",$Ze="↑",TZe="↟",_Ze="⇑",AZe="⥉",DZe="Ў",jZe="ў",RZe="Ŭ",OZe="ŭ",IZe="Û",kZe="û",MZe="У",PZe="у",LZe="⇅",BZe="Ű",qZe="ű",FZe="⥮",zZe="⥾",HZe="𝔘",UZe="𝔲",VZe="Ù",GZe="ù",YZe="⥣",WZe="↿",XZe="↾",KZe="▀",QZe="⌜",ZZe="⌜",JZe="⌏",eJe="◸",tJe="Ū",nJe="ū",rJe="¨",aJe="_",sJe="⏟",oJe="⎵",iJe="⏝",lJe="⋃",cJe="⊎",uJe="Ų",dJe="ų",fJe="𝕌",pJe="𝕦",hJe="⤒",mJe="↑",gJe="↑",yJe="⇑",bJe="⇅",vJe="↕",xJe="↕",CJe="⇕",SJe="⥮",NJe="↿",wJe="↾",EJe="⊎",$Je="↖",TJe="↗",_Je="υ",AJe="ϒ",DJe="ϒ",jJe="Υ",RJe="υ",OJe="↥",IJe="⊥",kJe="⇈",MJe="⌝",PJe="⌝",LJe="⌎",BJe="Ů",qJe="ů",FJe="◹",zJe="𝒰",HJe="𝓊",UJe="⋰",VJe="Ũ",GJe="ũ",YJe="▵",WJe="▴",XJe="⇈",KJe="Ü",QJe="ü",ZJe="⦧",JJe="⦜",eet="ϵ",tet="ϰ",net="∅",ret="ϕ",aet="ϖ",set="∝",oet="↕",iet="⇕",cet="ϱ",uet="ς",det="⊊︀",fet="⫋︀",pet="⊋︀",het="⫌︀",met="ϑ",get="⊲",yet="⊳",bet="⫨",vet="⫫",xet="⫩",Cet="В",Net="в",wet="⊢",Eet="⊨",$et="⊩",Tet="⊫",_et="⫦",Aet="⊻",Det="∨",jet="⋁",Ret="≚",Oet="⋮",Iet="|",ket="‖",Met="|",Pet="‖",Let="∣",Bet="|",qet="❘",Fet="≀",zet=" ",Het="𝔙",Uet="𝔳",Vet="⊲",Get="⊂⃒",Yet="⊃⃒",Wet="𝕍",Xet="𝕧",Ket="∝",Qet="⊳",Zet="𝒱",Jet="𝓋",ett="⫋︀",ttt="⊊︀",ntt="⫌︀",rtt="⊋︀",att="⊪",stt="⦚",ott="Ŵ",itt="ŵ",ltt="⩟",ctt="∧",utt="⋀",dtt="≙",ftt="℘",ptt="𝔚",htt="𝔴",mtt="𝕎",gtt="𝕨",ytt="℘",btt="≀",vtt="≀",xtt="𝒲",Ctt="𝓌",Stt="⋂",Ntt="◯",wtt="⋃",Ett="▽",$tt="𝔛",Ttt="𝔵",_tt="⟷",Att="⟺",Dtt="Ξ",jtt="ξ",Rtt="⟵",Ott="⟸",Itt="⟼",ktt="⋻",Mtt="⨀",Ptt="𝕏",Ltt="𝕩",Btt="⨁",qtt="⨂",Ftt="⟶",ztt="⟹",Htt="𝒳",Utt="𝓍",Vtt="⨆",Gtt="⨄",Ytt="△",Wtt="⋁",Xtt="⋀",Ktt="Ý",Qtt="ý",Ztt="Я",Jtt="я",ent="Ŷ",tnt="ŷ",nnt="Ы",rnt="ы",ant="¥",snt="𝔜",ont="𝔶",int="Ї",lnt="ї",cnt="𝕐",unt="𝕪",dnt="𝒴",fnt="𝓎",pnt="Ю",hnt="ю",mnt="ÿ",gnt="Ÿ",ynt="Ź",bnt="ź",vnt="Ž",xnt="ž",Cnt="З",Snt="з",Nnt="Ż",wnt="ż",Ent="ℨ",$nt="​",Tnt="Ζ",_nt="ζ",Ant="𝔷",Dnt="ℨ",jnt="Ж",Rnt="ж",Ont="⇝",Int="𝕫",knt="ℤ",Mnt="𝒵",Pnt="𝓏",Lnt="‍",Bnt="‌",xD={Aacute:C2e,aacute:S2e,Abreve:N2e,abreve:w2e,ac:E2e,acd:$2e,acE:T2e,Acirc:_2e,acirc:A2e,acute:D2e,Acy:j2e,acy:R2e,AElig:O2e,aelig:I2e,af:k2e,Afr:M2e,afr:P2e,Agrave:L2e,agrave:B2e,alefsym:q2e,aleph:F2e,Alpha:z2e,alpha:H2e,Amacr:U2e,amacr:V2e,amalg:G2e,amp:Y2e,AMP:W2e,andand:X2e,And:K2e,and:Q2e,andd:Z2e,andslope:J2e,andv:eEe,ang:tEe,ange:nEe,angle:rEe,angmsdaa:aEe,angmsdab:sEe,angmsdac:oEe,angmsdad:iEe,angmsdae:lEe,angmsdaf:cEe,angmsdag:uEe,angmsdah:dEe,angmsd:fEe,angrt:pEe,angrtvb:hEe,angrtvbd:mEe,angsph:gEe,angst:yEe,angzarr:bEe,Aogon:vEe,aogon:xEe,Aopf:CEe,aopf:SEe,apacir:NEe,ap:wEe,apE:EEe,ape:$Ee,apid:TEe,apos:_Ee,ApplyFunction:AEe,approx:DEe,approxeq:jEe,Aring:REe,aring:OEe,Ascr:IEe,ascr:kEe,Assign:MEe,ast:PEe,asymp:LEe,asympeq:BEe,Atilde:qEe,atilde:FEe,Auml:zEe,auml:HEe,awconint:UEe,awint:VEe,backcong:GEe,backepsilon:YEe,backprime:WEe,backsim:XEe,backsimeq:KEe,Backslash:QEe,Barv:ZEe,barvee:JEe,barwed:e$e,Barwed:t$e,barwedge:n$e,bbrk:r$e,bbrktbrk:a$e,bcong:s$e,Bcy:o$e,bcy:i$e,bdquo:l$e,becaus:c$e,because:u$e,Because:d$e,bemptyv:f$e,bepsi:p$e,bernou:h$e,Bernoullis:m$e,Beta:g$e,beta:y$e,beth:b$e,between:v$e,Bfr:x$e,bfr:C$e,bigcap:S$e,bigcirc:N$e,bigcup:w$e,bigodot:E$e,bigoplus:$$e,bigotimes:T$e,bigsqcup:_$e,bigstar:A$e,bigtriangledown:D$e,bigtriangleup:j$e,biguplus:R$e,bigvee:O$e,bigwedge:I$e,bkarow:k$e,blacklozenge:M$e,blacksquare:P$e,blacktriangle:L$e,blacktriangledown:B$e,blacktriangleleft:q$e,blacktriangleright:F$e,blank:z$e,blk12:H$e,blk14:U$e,blk34:V$e,block:G$e,bne:Y$e,bnequiv:W$e,bNot:X$e,bnot:K$e,Bopf:Q$e,bopf:Z$e,bot:J$e,bottom:eTe,bowtie:tTe,boxbox:nTe,boxdl:rTe,boxdL:aTe,boxDl:sTe,boxDL:oTe,boxdr:iTe,boxdR:lTe,boxDr:cTe,boxDR:uTe,boxh:dTe,boxH:fTe,boxhd:pTe,boxHd:hTe,boxhD:mTe,boxHD:gTe,boxhu:yTe,boxHu:bTe,boxhU:vTe,boxHU:xTe,boxminus:CTe,boxplus:STe,boxtimes:NTe,boxul:wTe,boxuL:ETe,boxUl:$Te,boxUL:TTe,boxur:_Te,boxuR:ATe,boxUr:DTe,boxUR:jTe,boxv:RTe,boxV:OTe,boxvh:ITe,boxvH:kTe,boxVh:MTe,boxVH:PTe,boxvl:LTe,boxvL:BTe,boxVl:qTe,boxVL:FTe,boxvr:zTe,boxvR:HTe,boxVr:UTe,boxVR:VTe,bprime:GTe,breve:YTe,Breve:WTe,brvbar:XTe,bscr:KTe,Bscr:QTe,bsemi:ZTe,bsim:JTe,bsime:e_e,bsolb:t_e,bsol:n_e,bsolhsub:r_e,bull:a_e,bullet:s_e,bump:o_e,bumpE:i_e,bumpe:l_e,Bumpeq:c_e,bumpeq:u_e,Cacute:d_e,cacute:f_e,capand:p_e,capbrcup:h_e,capcap:m_e,cap:g_e,Cap:y_e,capcup:b_e,capdot:v_e,CapitalDifferentialD:x_e,caps:C_e,caret:S_e,caron:N_e,Cayleys:w_e,ccaps:E_e,Ccaron:$_e,ccaron:T_e,Ccedil:__e,ccedil:A_e,Ccirc:D_e,ccirc:j_e,Cconint:R_e,ccups:O_e,ccupssm:I_e,Cdot:k_e,cdot:M_e,cedil:P_e,Cedilla:L_e,cemptyv:B_e,cent:q_e,centerdot:F_e,CenterDot:z_e,cfr:H_e,Cfr:U_e,CHcy:V_e,chcy:G_e,check:Y_e,checkmark:W_e,Chi:X_e,chi:K_e,circ:Q_e,circeq:Z_e,circlearrowleft:J_e,circlearrowright:eAe,circledast:tAe,circledcirc:nAe,circleddash:rAe,CircleDot:aAe,circledR:sAe,circledS:oAe,CircleMinus:iAe,CirclePlus:lAe,CircleTimes:cAe,cir:uAe,cirE:dAe,cire:fAe,cirfnint:pAe,cirmid:hAe,cirscir:mAe,ClockwiseContourIntegral:gAe,CloseCurlyDoubleQuote:yAe,CloseCurlyQuote:bAe,clubs:vAe,clubsuit:xAe,colon:CAe,Colon:SAe,Colone:NAe,colone:wAe,coloneq:EAe,comma:$Ae,commat:TAe,comp:_Ae,compfn:AAe,complement:DAe,complexes:jAe,cong:RAe,congdot:OAe,Congruent:IAe,conint:kAe,Conint:MAe,ContourIntegral:PAe,copf:LAe,Copf:BAe,coprod:qAe,Coproduct:FAe,copy:zAe,COPY:HAe,copysr:UAe,CounterClockwiseContourIntegral:VAe,crarr:GAe,cross:YAe,Cross:WAe,Cscr:XAe,cscr:KAe,csub:QAe,csube:ZAe,csup:JAe,csupe:eDe,ctdot:tDe,cudarrl:nDe,cudarrr:rDe,cuepr:aDe,cuesc:sDe,cularr:oDe,cularrp:iDe,cupbrcap:lDe,cupcap:cDe,CupCap:uDe,cup:dDe,Cup:fDe,cupcup:pDe,cupdot:hDe,cupor:mDe,cups:gDe,curarr:yDe,curarrm:bDe,curlyeqprec:vDe,curlyeqsucc:xDe,curlyvee:CDe,curlywedge:SDe,curren:NDe,curvearrowleft:wDe,curvearrowright:EDe,cuvee:$De,cuwed:TDe,cwconint:_De,cwint:ADe,cylcty:DDe,dagger:jDe,Dagger:RDe,daleth:ODe,darr:IDe,Darr:kDe,dArr:MDe,dash:PDe,Dashv:LDe,dashv:BDe,dbkarow:qDe,dblac:FDe,Dcaron:zDe,dcaron:HDe,Dcy:UDe,dcy:VDe,ddagger:GDe,ddarr:YDe,DD:WDe,dd:XDe,DDotrahd:KDe,ddotseq:QDe,deg:ZDe,Del:JDe,Delta:e3e,delta:t3e,demptyv:n3e,dfisht:r3e,Dfr:a3e,dfr:s3e,dHar:o3e,dharl:i3e,dharr:l3e,DiacriticalAcute:c3e,DiacriticalDot:u3e,DiacriticalDoubleAcute:d3e,DiacriticalGrave:f3e,DiacriticalTilde:p3e,diam:h3e,diamond:m3e,Diamond:g3e,diamondsuit:y3e,diams:b3e,die:v3e,DifferentialD:x3e,digamma:C3e,disin:S3e,div:N3e,divide:w3e,divideontimes:E3e,divonx:$3e,DJcy:T3e,djcy:_3e,dlcorn:A3e,dlcrop:D3e,dollar:j3e,Dopf:R3e,dopf:O3e,Dot:I3e,dot:k3e,DotDot:M3e,doteq:P3e,doteqdot:L3e,DotEqual:B3e,dotminus:q3e,dotplus:F3e,dotsquare:z3e,doublebarwedge:H3e,DoubleContourIntegral:U3e,DoubleDot:V3e,DoubleDownArrow:G3e,DoubleLeftArrow:Y3e,DoubleLeftRightArrow:W3e,DoubleLeftTee:X3e,DoubleLongLeftArrow:K3e,DoubleLongLeftRightArrow:Q3e,DoubleLongRightArrow:Z3e,DoubleRightArrow:J3e,DoubleRightTee:eje,DoubleUpArrow:tje,DoubleUpDownArrow:nje,DoubleVerticalBar:rje,DownArrowBar:aje,downarrow:sje,DownArrow:oje,Downarrow:ije,DownArrowUpArrow:lje,DownBreve:cje,downdownarrows:uje,downharpoonleft:dje,downharpoonright:fje,DownLeftRightVector:pje,DownLeftTeeVector:hje,DownLeftVectorBar:mje,DownLeftVector:gje,DownRightTeeVector:yje,DownRightVectorBar:bje,DownRightVector:vje,DownTeeArrow:xje,DownTee:Cje,drbkarow:Sje,drcorn:Nje,drcrop:wje,Dscr:Eje,dscr:$je,DScy:Tje,dscy:_je,dsol:Aje,Dstrok:Dje,dstrok:jje,dtdot:Rje,dtri:Oje,dtrif:Ije,duarr:kje,duhar:Mje,dwangle:Pje,DZcy:Lje,dzcy:Bje,dzigrarr:qje,Eacute:Fje,eacute:zje,easter:Hje,Ecaron:Uje,ecaron:Vje,Ecirc:Gje,ecirc:Yje,ecir:Wje,ecolon:Xje,Ecy:Kje,ecy:Qje,eDDot:Zje,Edot:Jje,edot:eRe,eDot:tRe,ee:nRe,efDot:rRe,Efr:aRe,efr:sRe,eg:oRe,Egrave:iRe,egrave:lRe,egs:cRe,egsdot:uRe,el:dRe,Element:fRe,elinters:pRe,ell:hRe,els:mRe,elsdot:gRe,Emacr:yRe,emacr:bRe,empty:vRe,emptyset:xRe,EmptySmallSquare:CRe,emptyv:SRe,EmptyVerySmallSquare:NRe,emsp13:wRe,emsp14:ERe,emsp:$Re,ENG:TRe,eng:_Re,ensp:ARe,Eogon:DRe,eogon:jRe,Eopf:RRe,eopf:ORe,epar:IRe,eparsl:kRe,eplus:MRe,epsi:PRe,Epsilon:LRe,epsilon:BRe,epsiv:qRe,eqcirc:FRe,eqcolon:zRe,eqsim:HRe,eqslantgtr:URe,eqslantless:VRe,Equal:GRe,equals:YRe,EqualTilde:WRe,equest:XRe,Equilibrium:KRe,equiv:QRe,equivDD:ZRe,eqvparsl:JRe,erarr:eOe,erDot:tOe,escr:nOe,Escr:rOe,esdot:aOe,Esim:sOe,esim:oOe,Eta:iOe,eta:lOe,ETH:cOe,eth:uOe,Euml:dOe,euml:fOe,euro:pOe,excl:hOe,exist:mOe,Exists:gOe,expectation:yOe,exponentiale:bOe,ExponentialE:vOe,fallingdotseq:xOe,Fcy:COe,fcy:SOe,female:NOe,ffilig:wOe,fflig:EOe,ffllig:$Oe,Ffr:TOe,ffr:_Oe,filig:AOe,FilledSmallSquare:DOe,FilledVerySmallSquare:jOe,fjlig:ROe,flat:OOe,fllig:IOe,fltns:kOe,fnof:MOe,Fopf:POe,fopf:LOe,forall:BOe,ForAll:qOe,fork:FOe,forkv:zOe,Fouriertrf:HOe,fpartint:UOe,frac12:VOe,frac13:GOe,frac14:YOe,frac15:WOe,frac16:XOe,frac18:KOe,frac23:QOe,frac25:ZOe,frac34:JOe,frac35:eIe,frac38:tIe,frac45:nIe,frac56:rIe,frac58:aIe,frac78:sIe,frasl:oIe,frown:iIe,fscr:lIe,Fscr:cIe,gacute:uIe,Gamma:dIe,gamma:fIe,Gammad:pIe,gammad:hIe,gap:mIe,Gbreve:gIe,gbreve:yIe,Gcedil:bIe,Gcirc:vIe,gcirc:xIe,Gcy:CIe,gcy:SIe,Gdot:NIe,gdot:wIe,ge:EIe,gE:$Ie,gEl:TIe,gel:_Ie,geq:AIe,geqq:DIe,geqslant:jIe,gescc:RIe,ges:OIe,gesdot:IIe,gesdoto:kIe,gesdotol:MIe,gesl:PIe,gesles:LIe,Gfr:BIe,gfr:qIe,gg:FIe,Gg:zIe,ggg:HIe,gimel:UIe,GJcy:VIe,gjcy:GIe,gla:YIe,gl:WIe,glE:XIe,glj:KIe,gnap:QIe,gnapprox:ZIe,gne:JIe,gnE:eke,gneq:tke,gneqq:nke,gnsim:rke,Gopf:ake,gopf:ske,grave:oke,GreaterEqual:ike,GreaterEqualLess:lke,GreaterFullEqual:cke,GreaterGreater:uke,GreaterLess:dke,GreaterSlantEqual:fke,GreaterTilde:pke,Gscr:hke,gscr:mke,gsim:gke,gsime:yke,gsiml:bke,gtcc:vke,gtcir:xke,gt:Cke,GT:Ske,Gt:Nke,gtdot:wke,gtlPar:Eke,gtquest:$ke,gtrapprox:Tke,gtrarr:_ke,gtrdot:Ake,gtreqless:Dke,gtreqqless:jke,gtrless:Rke,gtrsim:Oke,gvertneqq:Ike,gvnE:kke,Hacek:Mke,hairsp:Pke,half:Lke,hamilt:Bke,HARDcy:qke,hardcy:Fke,harrcir:zke,harr:Hke,hArr:Uke,harrw:Vke,Hat:Gke,hbar:Yke,Hcirc:Wke,hcirc:Xke,hearts:Kke,heartsuit:Qke,hellip:Zke,hercon:Jke,hfr:e4e,Hfr:t4e,HilbertSpace:n4e,hksearow:r4e,hkswarow:a4e,hoarr:s4e,homtht:o4e,hookleftarrow:i4e,hookrightarrow:l4e,hopf:c4e,Hopf:u4e,horbar:d4e,HorizontalLine:f4e,hscr:p4e,Hscr:h4e,hslash:m4e,Hstrok:g4e,hstrok:y4e,HumpDownHump:b4e,HumpEqual:v4e,hybull:x4e,hyphen:C4e,Iacute:S4e,iacute:N4e,ic:w4e,Icirc:E4e,icirc:$4e,Icy:T4e,icy:_4e,Idot:A4e,IEcy:D4e,iecy:j4e,iexcl:R4e,iff:O4e,ifr:I4e,Ifr:k4e,Igrave:M4e,igrave:P4e,ii:L4e,iiiint:B4e,iiint:q4e,iinfin:F4e,iiota:z4e,IJlig:H4e,ijlig:U4e,Imacr:V4e,imacr:G4e,image:Y4e,ImaginaryI:W4e,imagline:X4e,imagpart:K4e,imath:Q4e,Im:Z4e,imof:J4e,imped:eMe,Implies:tMe,incare:nMe,in:"∈",infin:rMe,infintie:aMe,inodot:sMe,intcal:oMe,int:iMe,Int:lMe,integers:cMe,Integral:uMe,intercal:dMe,Intersection:fMe,intlarhk:pMe,intprod:hMe,InvisibleComma:mMe,InvisibleTimes:gMe,IOcy:yMe,iocy:bMe,Iogon:vMe,iogon:xMe,Iopf:CMe,iopf:SMe,Iota:NMe,iota:wMe,iprod:EMe,iquest:$Me,iscr:TMe,Iscr:_Me,isin:AMe,isindot:DMe,isinE:jMe,isins:RMe,isinsv:OMe,isinv:IMe,it:kMe,Itilde:MMe,itilde:PMe,Iukcy:LMe,iukcy:BMe,Iuml:qMe,iuml:FMe,Jcirc:zMe,jcirc:HMe,Jcy:UMe,jcy:VMe,Jfr:GMe,jfr:YMe,jmath:WMe,Jopf:XMe,jopf:KMe,Jscr:QMe,jscr:ZMe,Jsercy:JMe,jsercy:ePe,Jukcy:tPe,jukcy:nPe,Kappa:rPe,kappa:aPe,kappav:sPe,Kcedil:oPe,kcedil:iPe,Kcy:lPe,kcy:cPe,Kfr:uPe,kfr:dPe,kgreen:fPe,KHcy:pPe,khcy:hPe,KJcy:mPe,kjcy:gPe,Kopf:yPe,kopf:bPe,Kscr:vPe,kscr:xPe,lAarr:CPe,Lacute:SPe,lacute:NPe,laemptyv:wPe,lagran:EPe,Lambda:$Pe,lambda:TPe,lang:_Pe,Lang:APe,langd:DPe,langle:jPe,lap:RPe,Laplacetrf:OPe,laquo:IPe,larrb:kPe,larrbfs:MPe,larr:PPe,Larr:LPe,lArr:BPe,larrfs:qPe,larrhk:FPe,larrlp:zPe,larrpl:HPe,larrsim:UPe,larrtl:VPe,latail:GPe,lAtail:YPe,lat:WPe,late:XPe,lates:KPe,lbarr:QPe,lBarr:ZPe,lbbrk:JPe,lbrace:eLe,lbrack:tLe,lbrke:nLe,lbrksld:rLe,lbrkslu:aLe,Lcaron:sLe,lcaron:oLe,Lcedil:iLe,lcedil:lLe,lceil:cLe,lcub:uLe,Lcy:dLe,lcy:fLe,ldca:pLe,ldquo:hLe,ldquor:mLe,ldrdhar:gLe,ldrushar:yLe,ldsh:bLe,le:vLe,lE:xLe,LeftAngleBracket:CLe,LeftArrowBar:SLe,leftarrow:NLe,LeftArrow:wLe,Leftarrow:ELe,LeftArrowRightArrow:$Le,leftarrowtail:TLe,LeftCeiling:_Le,LeftDoubleBracket:ALe,LeftDownTeeVector:DLe,LeftDownVectorBar:jLe,LeftDownVector:RLe,LeftFloor:OLe,leftharpoondown:ILe,leftharpoonup:kLe,leftleftarrows:MLe,leftrightarrow:PLe,LeftRightArrow:LLe,Leftrightarrow:BLe,leftrightarrows:qLe,leftrightharpoons:FLe,leftrightsquigarrow:zLe,LeftRightVector:HLe,LeftTeeArrow:ULe,LeftTee:VLe,LeftTeeVector:GLe,leftthreetimes:YLe,LeftTriangleBar:WLe,LeftTriangle:XLe,LeftTriangleEqual:KLe,LeftUpDownVector:QLe,LeftUpTeeVector:ZLe,LeftUpVectorBar:JLe,LeftUpVector:e6e,LeftVectorBar:t6e,LeftVector:n6e,lEg:r6e,leg:a6e,leq:s6e,leqq:o6e,leqslant:i6e,lescc:l6e,les:c6e,lesdot:u6e,lesdoto:d6e,lesdotor:f6e,lesg:p6e,lesges:h6e,lessapprox:m6e,lessdot:g6e,lesseqgtr:y6e,lesseqqgtr:b6e,LessEqualGreater:v6e,LessFullEqual:x6e,LessGreater:C6e,lessgtr:S6e,LessLess:N6e,lesssim:w6e,LessSlantEqual:E6e,LessTilde:$6e,lfisht:T6e,lfloor:_6e,Lfr:A6e,lfr:D6e,lg:j6e,lgE:R6e,lHar:O6e,lhard:I6e,lharu:k6e,lharul:M6e,lhblk:P6e,LJcy:L6e,ljcy:B6e,llarr:q6e,ll:F6e,Ll:z6e,llcorner:H6e,Lleftarrow:U6e,llhard:V6e,lltri:G6e,Lmidot:Y6e,lmidot:W6e,lmoustache:X6e,lmoust:K6e,lnap:Q6e,lnapprox:Z6e,lne:J6e,lnE:e5e,lneq:t5e,lneqq:n5e,lnsim:r5e,loang:a5e,loarr:s5e,lobrk:o5e,longleftarrow:i5e,LongLeftArrow:l5e,Longleftarrow:c5e,longleftrightarrow:u5e,LongLeftRightArrow:d5e,Longleftrightarrow:f5e,longmapsto:p5e,longrightarrow:h5e,LongRightArrow:m5e,Longrightarrow:g5e,looparrowleft:y5e,looparrowright:b5e,lopar:v5e,Lopf:x5e,lopf:C5e,loplus:S5e,lotimes:N5e,lowast:w5e,lowbar:E5e,LowerLeftArrow:$5e,LowerRightArrow:T5e,loz:_5e,lozenge:A5e,lozf:D5e,lpar:j5e,lparlt:R5e,lrarr:O5e,lrcorner:I5e,lrhar:k5e,lrhard:M5e,lrm:P5e,lrtri:L5e,lsaquo:B5e,lscr:q5e,Lscr:F5e,lsh:z5e,Lsh:H5e,lsim:U5e,lsime:V5e,lsimg:G5e,lsqb:Y5e,lsquo:W5e,lsquor:X5e,Lstrok:K5e,lstrok:Q5e,ltcc:Z5e,ltcir:J5e,lt:eBe,LT:tBe,Lt:nBe,ltdot:rBe,lthree:aBe,ltimes:sBe,ltlarr:oBe,ltquest:iBe,ltri:lBe,ltrie:cBe,ltrif:uBe,ltrPar:dBe,lurdshar:fBe,luruhar:pBe,lvertneqq:hBe,lvnE:mBe,macr:gBe,male:yBe,malt:bBe,maltese:vBe,Map:"⤅",map:xBe,mapsto:CBe,mapstodown:SBe,mapstoleft:NBe,mapstoup:wBe,marker:EBe,mcomma:$Be,Mcy:TBe,mcy:_Be,mdash:ABe,mDDot:DBe,measuredangle:jBe,MediumSpace:RBe,Mellintrf:OBe,Mfr:IBe,mfr:kBe,mho:MBe,micro:PBe,midast:LBe,midcir:BBe,mid:qBe,middot:FBe,minusb:zBe,minus:HBe,minusd:UBe,minusdu:VBe,MinusPlus:GBe,mlcp:YBe,mldr:WBe,mnplus:XBe,models:KBe,Mopf:QBe,mopf:ZBe,mp:JBe,mscr:e8e,Mscr:t8e,mstpos:n8e,Mu:r8e,mu:a8e,multimap:s8e,mumap:o8e,nabla:i8e,Nacute:l8e,nacute:c8e,nang:u8e,nap:d8e,napE:f8e,napid:p8e,napos:h8e,napprox:m8e,natural:g8e,naturals:y8e,natur:b8e,nbsp:v8e,nbump:x8e,nbumpe:C8e,ncap:S8e,Ncaron:N8e,ncaron:w8e,Ncedil:E8e,ncedil:$8e,ncong:T8e,ncongdot:_8e,ncup:A8e,Ncy:D8e,ncy:j8e,ndash:R8e,nearhk:O8e,nearr:I8e,neArr:k8e,nearrow:M8e,ne:P8e,nedot:L8e,NegativeMediumSpace:B8e,NegativeThickSpace:q8e,NegativeThinSpace:F8e,NegativeVeryThinSpace:z8e,nequiv:H8e,nesear:U8e,nesim:V8e,NestedGreaterGreater:G8e,NestedLessLess:Y8e,NewLine:W8e,nexist:X8e,nexists:K8e,Nfr:Q8e,nfr:Z8e,ngE:J8e,nge:eqe,ngeq:tqe,ngeqq:nqe,ngeqslant:rqe,nges:aqe,nGg:sqe,ngsim:oqe,nGt:iqe,ngt:lqe,ngtr:cqe,nGtv:uqe,nharr:dqe,nhArr:fqe,nhpar:pqe,ni:hqe,nis:mqe,nisd:gqe,niv:yqe,NJcy:bqe,njcy:vqe,nlarr:xqe,nlArr:Cqe,nldr:Sqe,nlE:Nqe,nle:wqe,nleftarrow:Eqe,nLeftarrow:$qe,nleftrightarrow:Tqe,nLeftrightarrow:_qe,nleq:Aqe,nleqq:Dqe,nleqslant:jqe,nles:Rqe,nless:Oqe,nLl:Iqe,nlsim:kqe,nLt:Mqe,nlt:Pqe,nltri:Lqe,nltrie:Bqe,nLtv:qqe,nmid:Fqe,NoBreak:zqe,NonBreakingSpace:Hqe,nopf:Uqe,Nopf:Vqe,Not:Gqe,not:Yqe,NotCongruent:Wqe,NotCupCap:Xqe,NotDoubleVerticalBar:Kqe,NotElement:Qqe,NotEqual:Zqe,NotEqualTilde:Jqe,NotExists:e7e,NotGreater:t7e,NotGreaterEqual:n7e,NotGreaterFullEqual:r7e,NotGreaterGreater:a7e,NotGreaterLess:s7e,NotGreaterSlantEqual:o7e,NotGreaterTilde:i7e,NotHumpDownHump:l7e,NotHumpEqual:c7e,notin:u7e,notindot:d7e,notinE:f7e,notinva:p7e,notinvb:h7e,notinvc:m7e,NotLeftTriangleBar:g7e,NotLeftTriangle:y7e,NotLeftTriangleEqual:b7e,NotLess:v7e,NotLessEqual:x7e,NotLessGreater:C7e,NotLessLess:S7e,NotLessSlantEqual:N7e,NotLessTilde:w7e,NotNestedGreaterGreater:E7e,NotNestedLessLess:$7e,notni:T7e,notniva:_7e,notnivb:A7e,notnivc:D7e,NotPrecedes:j7e,NotPrecedesEqual:R7e,NotPrecedesSlantEqual:O7e,NotReverseElement:I7e,NotRightTriangleBar:k7e,NotRightTriangle:M7e,NotRightTriangleEqual:P7e,NotSquareSubset:L7e,NotSquareSubsetEqual:B7e,NotSquareSuperset:q7e,NotSquareSupersetEqual:F7e,NotSubset:z7e,NotSubsetEqual:H7e,NotSucceeds:U7e,NotSucceedsEqual:V7e,NotSucceedsSlantEqual:G7e,NotSucceedsTilde:Y7e,NotSuperset:W7e,NotSupersetEqual:X7e,NotTilde:K7e,NotTildeEqual:Q7e,NotTildeFullEqual:Z7e,NotTildeTilde:J7e,NotVerticalBar:eFe,nparallel:tFe,npar:nFe,nparsl:rFe,npart:aFe,npolint:sFe,npr:oFe,nprcue:iFe,nprec:lFe,npreceq:cFe,npre:uFe,nrarrc:dFe,nrarr:fFe,nrArr:pFe,nrarrw:hFe,nrightarrow:mFe,nRightarrow:gFe,nrtri:yFe,nrtrie:bFe,nsc:vFe,nsccue:xFe,nsce:CFe,Nscr:SFe,nscr:NFe,nshortmid:wFe,nshortparallel:EFe,nsim:$Fe,nsime:TFe,nsimeq:_Fe,nsmid:AFe,nspar:DFe,nsqsube:jFe,nsqsupe:RFe,nsub:OFe,nsubE:IFe,nsube:kFe,nsubset:MFe,nsubseteq:PFe,nsubseteqq:LFe,nsucc:BFe,nsucceq:qFe,nsup:FFe,nsupE:zFe,nsupe:HFe,nsupset:UFe,nsupseteq:VFe,nsupseteqq:GFe,ntgl:YFe,Ntilde:WFe,ntilde:XFe,ntlg:KFe,ntriangleleft:QFe,ntrianglelefteq:ZFe,ntriangleright:JFe,ntrianglerighteq:e9e,Nu:t9e,nu:n9e,num:r9e,numero:a9e,numsp:s9e,nvap:o9e,nvdash:i9e,nvDash:l9e,nVdash:c9e,nVDash:u9e,nvge:d9e,nvgt:f9e,nvHarr:p9e,nvinfin:h9e,nvlArr:m9e,nvle:g9e,nvlt:y9e,nvltrie:b9e,nvrArr:v9e,nvrtrie:x9e,nvsim:C9e,nwarhk:S9e,nwarr:N9e,nwArr:w9e,nwarrow:E9e,nwnear:$9e,Oacute:T9e,oacute:_9e,oast:A9e,Ocirc:D9e,ocirc:j9e,ocir:R9e,Ocy:O9e,ocy:I9e,odash:k9e,Odblac:M9e,odblac:P9e,odiv:L9e,odot:B9e,odsold:q9e,OElig:F9e,oelig:z9e,ofcir:H9e,Ofr:U9e,ofr:V9e,ogon:G9e,Ograve:Y9e,ograve:W9e,ogt:X9e,ohbar:K9e,ohm:Q9e,oint:Z9e,olarr:J9e,olcir:eze,olcross:tze,oline:nze,olt:rze,Omacr:aze,omacr:sze,Omega:oze,omega:ize,Omicron:lze,omicron:cze,omid:uze,ominus:dze,Oopf:fze,oopf:pze,opar:hze,OpenCurlyDoubleQuote:mze,OpenCurlyQuote:gze,operp:yze,oplus:bze,orarr:vze,Or:xze,or:Cze,ord:Sze,order:Nze,orderof:wze,ordf:Eze,ordm:$ze,origof:Tze,oror:_ze,orslope:Aze,orv:Dze,oS:jze,Oscr:Rze,oscr:Oze,Oslash:Ize,oslash:kze,osol:Mze,Otilde:Pze,otilde:Lze,otimesas:Bze,Otimes:qze,otimes:Fze,Ouml:zze,ouml:Hze,ovbar:Uze,OverBar:Vze,OverBrace:Gze,OverBracket:Yze,OverParenthesis:Wze,para:Xze,parallel:Kze,par:Qze,parsim:Zze,parsl:Jze,part:eHe,PartialD:tHe,Pcy:nHe,pcy:rHe,percnt:aHe,period:sHe,permil:oHe,perp:iHe,pertenk:lHe,Pfr:cHe,pfr:uHe,Phi:dHe,phi:fHe,phiv:pHe,phmmat:hHe,phone:mHe,Pi:gHe,pi:yHe,pitchfork:bHe,piv:vHe,planck:xHe,planckh:CHe,plankv:SHe,plusacir:NHe,plusb:wHe,pluscir:EHe,plus:$He,plusdo:THe,plusdu:_He,pluse:AHe,PlusMinus:DHe,plusmn:jHe,plussim:RHe,plustwo:OHe,pm:IHe,Poincareplane:kHe,pointint:MHe,popf:PHe,Popf:LHe,pound:BHe,prap:qHe,Pr:FHe,pr:zHe,prcue:HHe,precapprox:UHe,prec:VHe,preccurlyeq:GHe,Precedes:YHe,PrecedesEqual:WHe,PrecedesSlantEqual:XHe,PrecedesTilde:KHe,preceq:QHe,precnapprox:ZHe,precneqq:JHe,precnsim:eUe,pre:tUe,prE:nUe,precsim:rUe,prime:aUe,Prime:sUe,primes:oUe,prnap:iUe,prnE:lUe,prnsim:cUe,prod:uUe,Product:dUe,profalar:fUe,profline:pUe,profsurf:hUe,prop:mUe,Proportional:gUe,Proportion:yUe,propto:bUe,prsim:vUe,prurel:xUe,Pscr:CUe,pscr:SUe,Psi:NUe,psi:wUe,puncsp:EUe,Qfr:$Ue,qfr:TUe,qint:_Ue,qopf:AUe,Qopf:DUe,qprime:jUe,Qscr:RUe,qscr:OUe,quaternions:IUe,quatint:kUe,quest:MUe,questeq:PUe,quot:LUe,QUOT:BUe,rAarr:qUe,race:FUe,Racute:zUe,racute:HUe,radic:UUe,raemptyv:VUe,rang:GUe,Rang:YUe,rangd:WUe,range:XUe,rangle:KUe,raquo:QUe,rarrap:ZUe,rarrb:JUe,rarrbfs:eVe,rarrc:tVe,rarr:nVe,Rarr:rVe,rArr:aVe,rarrfs:sVe,rarrhk:oVe,rarrlp:iVe,rarrpl:lVe,rarrsim:cVe,Rarrtl:uVe,rarrtl:dVe,rarrw:fVe,ratail:pVe,rAtail:hVe,ratio:mVe,rationals:gVe,rbarr:yVe,rBarr:bVe,RBarr:vVe,rbbrk:xVe,rbrace:CVe,rbrack:SVe,rbrke:NVe,rbrksld:wVe,rbrkslu:EVe,Rcaron:$Ve,rcaron:TVe,Rcedil:_Ve,rcedil:AVe,rceil:DVe,rcub:jVe,Rcy:RVe,rcy:OVe,rdca:IVe,rdldhar:kVe,rdquo:MVe,rdquor:PVe,rdsh:LVe,real:BVe,realine:qVe,realpart:FVe,reals:zVe,Re:HVe,rect:UVe,reg:VVe,REG:GVe,ReverseElement:YVe,ReverseEquilibrium:WVe,ReverseUpEquilibrium:XVe,rfisht:KVe,rfloor:QVe,rfr:ZVe,Rfr:JVe,rHar:eGe,rhard:tGe,rharu:nGe,rharul:rGe,Rho:aGe,rho:sGe,rhov:oGe,RightAngleBracket:iGe,RightArrowBar:lGe,rightarrow:cGe,RightArrow:uGe,Rightarrow:dGe,RightArrowLeftArrow:fGe,rightarrowtail:pGe,RightCeiling:hGe,RightDoubleBracket:mGe,RightDownTeeVector:gGe,RightDownVectorBar:yGe,RightDownVector:bGe,RightFloor:vGe,rightharpoondown:xGe,rightharpoonup:CGe,rightleftarrows:SGe,rightleftharpoons:NGe,rightrightarrows:wGe,rightsquigarrow:EGe,RightTeeArrow:$Ge,RightTee:TGe,RightTeeVector:_Ge,rightthreetimes:AGe,RightTriangleBar:DGe,RightTriangle:jGe,RightTriangleEqual:RGe,RightUpDownVector:OGe,RightUpTeeVector:IGe,RightUpVectorBar:kGe,RightUpVector:MGe,RightVectorBar:PGe,RightVector:LGe,ring:BGe,risingdotseq:qGe,rlarr:FGe,rlhar:zGe,rlm:HGe,rmoustache:UGe,rmoust:VGe,rnmid:GGe,roang:YGe,roarr:WGe,robrk:XGe,ropar:KGe,ropf:QGe,Ropf:ZGe,roplus:JGe,rotimes:eYe,RoundImplies:tYe,rpar:nYe,rpargt:rYe,rppolint:aYe,rrarr:sYe,Rrightarrow:oYe,rsaquo:iYe,rscr:lYe,Rscr:cYe,rsh:uYe,Rsh:dYe,rsqb:fYe,rsquo:pYe,rsquor:hYe,rthree:mYe,rtimes:gYe,rtri:yYe,rtrie:bYe,rtrif:vYe,rtriltri:xYe,RuleDelayed:CYe,ruluhar:SYe,rx:NYe,Sacute:wYe,sacute:EYe,sbquo:$Ye,scap:TYe,Scaron:_Ye,scaron:AYe,Sc:DYe,sc:jYe,sccue:RYe,sce:OYe,scE:IYe,Scedil:kYe,scedil:MYe,Scirc:PYe,scirc:LYe,scnap:BYe,scnE:qYe,scnsim:FYe,scpolint:zYe,scsim:HYe,Scy:UYe,scy:VYe,sdotb:GYe,sdot:YYe,sdote:WYe,searhk:XYe,searr:KYe,seArr:QYe,searrow:ZYe,sect:JYe,semi:eWe,seswar:tWe,setminus:nWe,setmn:rWe,sext:aWe,Sfr:sWe,sfr:oWe,sfrown:iWe,sharp:lWe,SHCHcy:cWe,shchcy:uWe,SHcy:dWe,shcy:fWe,ShortDownArrow:pWe,ShortLeftArrow:hWe,shortmid:mWe,shortparallel:gWe,ShortRightArrow:yWe,ShortUpArrow:bWe,shy:vWe,Sigma:xWe,sigma:CWe,sigmaf:SWe,sigmav:NWe,sim:wWe,simdot:EWe,sime:$We,simeq:TWe,simg:_We,simgE:AWe,siml:DWe,simlE:jWe,simne:RWe,simplus:OWe,simrarr:IWe,slarr:kWe,SmallCircle:MWe,smallsetminus:PWe,smashp:LWe,smeparsl:BWe,smid:qWe,smile:FWe,smt:zWe,smte:HWe,smtes:UWe,SOFTcy:VWe,softcy:GWe,solbar:YWe,solb:WWe,sol:XWe,Sopf:KWe,sopf:QWe,spades:ZWe,spadesuit:JWe,spar:eXe,sqcap:tXe,sqcaps:nXe,sqcup:rXe,sqcups:aXe,Sqrt:sXe,sqsub:oXe,sqsube:iXe,sqsubset:lXe,sqsubseteq:cXe,sqsup:uXe,sqsupe:dXe,sqsupset:fXe,sqsupseteq:pXe,square:hXe,Square:mXe,SquareIntersection:gXe,SquareSubset:yXe,SquareSubsetEqual:bXe,SquareSuperset:vXe,SquareSupersetEqual:xXe,SquareUnion:CXe,squarf:SXe,squ:NXe,squf:wXe,srarr:EXe,Sscr:$Xe,sscr:TXe,ssetmn:_Xe,ssmile:AXe,sstarf:DXe,Star:jXe,star:RXe,starf:OXe,straightepsilon:IXe,straightphi:kXe,strns:MXe,sub:PXe,Sub:LXe,subdot:BXe,subE:qXe,sube:FXe,subedot:zXe,submult:HXe,subnE:UXe,subne:VXe,subplus:GXe,subrarr:YXe,subset:WXe,Subset:XXe,subseteq:KXe,subseteqq:QXe,SubsetEqual:ZXe,subsetneq:JXe,subsetneqq:eKe,subsim:tKe,subsub:nKe,subsup:rKe,succapprox:aKe,succ:sKe,succcurlyeq:oKe,Succeeds:iKe,SucceedsEqual:lKe,SucceedsSlantEqual:cKe,SucceedsTilde:uKe,succeq:dKe,succnapprox:fKe,succneqq:pKe,succnsim:hKe,succsim:mKe,SuchThat:gKe,sum:yKe,Sum:bKe,sung:vKe,sup1:xKe,sup2:CKe,sup3:SKe,sup:NKe,Sup:wKe,supdot:EKe,supdsub:$Ke,supE:TKe,supe:_Ke,supedot:AKe,Superset:DKe,SupersetEqual:jKe,suphsol:RKe,suphsub:OKe,suplarr:IKe,supmult:kKe,supnE:MKe,supne:PKe,supplus:LKe,supset:BKe,Supset:qKe,supseteq:FKe,supseteqq:zKe,supsetneq:HKe,supsetneqq:UKe,supsim:VKe,supsub:GKe,supsup:YKe,swarhk:WKe,swarr:XKe,swArr:KKe,swarrow:QKe,swnwar:ZKe,szlig:JKe,Tab:eQe,target:tQe,Tau:nQe,tau:rQe,tbrk:aQe,Tcaron:sQe,tcaron:oQe,Tcedil:iQe,tcedil:lQe,Tcy:cQe,tcy:uQe,tdot:dQe,telrec:fQe,Tfr:pQe,tfr:hQe,there4:mQe,therefore:gQe,Therefore:yQe,Theta:bQe,theta:vQe,thetasym:xQe,thetav:CQe,thickapprox:SQe,thicksim:NQe,ThickSpace:wQe,ThinSpace:EQe,thinsp:$Qe,thkap:TQe,thksim:_Qe,THORN:AQe,thorn:DQe,tilde:jQe,Tilde:RQe,TildeEqual:OQe,TildeFullEqual:IQe,TildeTilde:kQe,timesbar:MQe,timesb:PQe,times:LQe,timesd:BQe,tint:qQe,toea:FQe,topbot:zQe,topcir:HQe,top:UQe,Topf:VQe,topf:GQe,topfork:YQe,tosa:WQe,tprime:XQe,trade:KQe,TRADE:QQe,triangle:ZQe,triangledown:JQe,triangleleft:eZe,trianglelefteq:tZe,triangleq:nZe,triangleright:rZe,trianglerighteq:aZe,tridot:sZe,trie:oZe,triminus:iZe,TripleDot:lZe,triplus:cZe,trisb:uZe,tritime:dZe,trpezium:fZe,Tscr:pZe,tscr:hZe,TScy:mZe,tscy:gZe,TSHcy:yZe,tshcy:bZe,Tstrok:vZe,tstrok:xZe,twixt:CZe,twoheadleftarrow:SZe,twoheadrightarrow:NZe,Uacute:wZe,uacute:EZe,uarr:$Ze,Uarr:TZe,uArr:_Ze,Uarrocir:AZe,Ubrcy:DZe,ubrcy:jZe,Ubreve:RZe,ubreve:OZe,Ucirc:IZe,ucirc:kZe,Ucy:MZe,ucy:PZe,udarr:LZe,Udblac:BZe,udblac:qZe,udhar:FZe,ufisht:zZe,Ufr:HZe,ufr:UZe,Ugrave:VZe,ugrave:GZe,uHar:YZe,uharl:WZe,uharr:XZe,uhblk:KZe,ulcorn:QZe,ulcorner:ZZe,ulcrop:JZe,ultri:eJe,Umacr:tJe,umacr:nJe,uml:rJe,UnderBar:aJe,UnderBrace:sJe,UnderBracket:oJe,UnderParenthesis:iJe,Union:lJe,UnionPlus:cJe,Uogon:uJe,uogon:dJe,Uopf:fJe,uopf:pJe,UpArrowBar:hJe,uparrow:mJe,UpArrow:gJe,Uparrow:yJe,UpArrowDownArrow:bJe,updownarrow:vJe,UpDownArrow:xJe,Updownarrow:CJe,UpEquilibrium:SJe,upharpoonleft:NJe,upharpoonright:wJe,uplus:EJe,UpperLeftArrow:$Je,UpperRightArrow:TJe,upsi:_Je,Upsi:AJe,upsih:DJe,Upsilon:jJe,upsilon:RJe,UpTeeArrow:OJe,UpTee:IJe,upuparrows:kJe,urcorn:MJe,urcorner:PJe,urcrop:LJe,Uring:BJe,uring:qJe,urtri:FJe,Uscr:zJe,uscr:HJe,utdot:UJe,Utilde:VJe,utilde:GJe,utri:YJe,utrif:WJe,uuarr:XJe,Uuml:KJe,uuml:QJe,uwangle:ZJe,vangrt:JJe,varepsilon:eet,varkappa:tet,varnothing:net,varphi:ret,varpi:aet,varpropto:set,varr:oet,vArr:iet,varrho:cet,varsigma:uet,varsubsetneq:det,varsubsetneqq:fet,varsupsetneq:pet,varsupsetneqq:het,vartheta:met,vartriangleleft:get,vartriangleright:yet,vBar:bet,Vbar:vet,vBarv:xet,Vcy:Cet,vcy:Net,vdash:wet,vDash:Eet,Vdash:$et,VDash:Tet,Vdashl:_et,veebar:Aet,vee:Det,Vee:jet,veeeq:Ret,vellip:Oet,verbar:Iet,Verbar:ket,vert:Met,Vert:Pet,VerticalBar:Let,VerticalLine:Bet,VerticalSeparator:qet,VerticalTilde:Fet,VeryThinSpace:zet,Vfr:Het,vfr:Uet,vltri:Vet,vnsub:Get,vnsup:Yet,Vopf:Wet,vopf:Xet,vprop:Ket,vrtri:Qet,Vscr:Zet,vscr:Jet,vsubnE:ett,vsubne:ttt,vsupnE:ntt,vsupne:rtt,Vvdash:att,vzigzag:stt,Wcirc:ott,wcirc:itt,wedbar:ltt,wedge:ctt,Wedge:utt,wedgeq:dtt,weierp:ftt,Wfr:ptt,wfr:htt,Wopf:mtt,wopf:gtt,wp:ytt,wr:btt,wreath:vtt,Wscr:xtt,wscr:Ctt,xcap:Stt,xcirc:Ntt,xcup:wtt,xdtri:Ett,Xfr:$tt,xfr:Ttt,xharr:_tt,xhArr:Att,Xi:Dtt,xi:jtt,xlarr:Rtt,xlArr:Ott,xmap:Itt,xnis:ktt,xodot:Mtt,Xopf:Ptt,xopf:Ltt,xoplus:Btt,xotime:qtt,xrarr:Ftt,xrArr:ztt,Xscr:Htt,xscr:Utt,xsqcup:Vtt,xuplus:Gtt,xutri:Ytt,xvee:Wtt,xwedge:Xtt,Yacute:Ktt,yacute:Qtt,YAcy:Ztt,yacy:Jtt,Ycirc:ent,ycirc:tnt,Ycy:nnt,ycy:rnt,yen:ant,Yfr:snt,yfr:ont,YIcy:int,yicy:lnt,Yopf:cnt,yopf:unt,Yscr:dnt,yscr:fnt,YUcy:pnt,yucy:hnt,yuml:mnt,Yuml:gnt,Zacute:ynt,zacute:bnt,Zcaron:vnt,zcaron:xnt,Zcy:Cnt,zcy:Snt,Zdot:Nnt,zdot:wnt,zeetrf:Ent,ZeroWidthSpace:$nt,Zeta:Tnt,zeta:_nt,zfr:Ant,Zfr:Dnt,ZHcy:jnt,zhcy:Rnt,zigrarr:Ont,zopf:Int,Zopf:knt,Zscr:Mnt,zscr:Pnt,zwj:Lnt,zwnj:Bnt},qnt="Á",Fnt="á",znt="Â",Hnt="â",Unt="´",Vnt="Æ",Gnt="æ",Ynt="À",Wnt="à",Xnt="&",Knt="&",Qnt="Å",Znt="å",Jnt="Ã",ert="ã",trt="Ä",nrt="ä",rrt="¦",art="Ç",srt="ç",ort="¸",irt="¢",lrt="©",crt="©",urt="¤",drt="°",frt="÷",prt="É",hrt="é",mrt="Ê",grt="ê",yrt="È",brt="è",vrt="Ð",xrt="ð",Crt="Ë",Srt="ë",Nrt="½",wrt="¼",Ert="¾",$rt=">",Trt=">",_rt="Í",Art="í",Drt="Î",jrt="î",Rrt="¡",Ort="Ì",Irt="ì",krt="¿",Mrt="Ï",Prt="ï",Lrt="«",Brt="<",qrt="<",Frt="¯",zrt="µ",Hrt="·",Urt=" ",Vrt="¬",Grt="Ñ",Yrt="ñ",Wrt="Ó",Xrt="ó",Krt="Ô",Qrt="ô",Zrt="Ò",Jrt="ò",eat="ª",tat="º",nat="Ø",rat="ø",aat="Õ",sat="õ",oat="Ö",iat="ö",lat="¶",cat="±",uat="£",dat='"',fat='"',pat="»",hat="®",mat="®",gat="§",yat="­",bat="¹",vat="²",xat="³",Cat="ß",Sat="Þ",Nat="þ",wat="×",Eat="Ú",$at="ú",Tat="Û",_at="û",Aat="Ù",Dat="ù",jat="¨",Rat="Ü",Oat="ü",Iat="Ý",kat="ý",Mat="¥",Pat="ÿ",Lat={Aacute:qnt,aacute:Fnt,Acirc:znt,acirc:Hnt,acute:Unt,AElig:Vnt,aelig:Gnt,Agrave:Ynt,agrave:Wnt,amp:Xnt,AMP:Knt,Aring:Qnt,aring:Znt,Atilde:Jnt,atilde:ert,Auml:trt,auml:nrt,brvbar:rrt,Ccedil:art,ccedil:srt,cedil:ort,cent:irt,copy:lrt,COPY:crt,curren:urt,deg:drt,divide:frt,Eacute:prt,eacute:hrt,Ecirc:mrt,ecirc:grt,Egrave:yrt,egrave:brt,ETH:vrt,eth:xrt,Euml:Crt,euml:Srt,frac12:Nrt,frac14:wrt,frac34:Ert,gt:$rt,GT:Trt,Iacute:_rt,iacute:Art,Icirc:Drt,icirc:jrt,iexcl:Rrt,Igrave:Ort,igrave:Irt,iquest:krt,Iuml:Mrt,iuml:Prt,laquo:Lrt,lt:Brt,LT:qrt,macr:Frt,micro:zrt,middot:Hrt,nbsp:Urt,not:Vrt,Ntilde:Grt,ntilde:Yrt,Oacute:Wrt,oacute:Xrt,Ocirc:Krt,ocirc:Qrt,Ograve:Zrt,ograve:Jrt,ordf:eat,ordm:tat,Oslash:nat,oslash:rat,Otilde:aat,otilde:sat,Ouml:oat,ouml:iat,para:lat,plusmn:cat,pound:uat,quot:dat,QUOT:fat,raquo:pat,reg:hat,REG:mat,sect:gat,shy:yat,sup1:bat,sup2:vat,sup3:xat,szlig:Cat,THORN:Sat,thorn:Nat,times:wat,Uacute:Eat,uacute:$at,Ucirc:Tat,ucirc:_at,Ugrave:Aat,ugrave:Dat,uml:jat,Uuml:Rat,uuml:Oat,Yacute:Iat,yacute:kat,yen:Mat,yuml:Pat},Bat="&",qat="'",Fat=">",zat="<",Hat='"',CD={amp:Bat,apos:qat,gt:Fat,lt:zat,quot:Hat};var xl={};const Uat={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var M2;function Vat(){if(M2)return xl;M2=1;var e=xl&&xl.__importDefault||function(o){return o&&o.__esModule?o:{default:o}};Object.defineProperty(xl,"__esModule",{value:!0});var t=e(Uat),n=String.fromCodePoint||function(o){var i="";return o>65535&&(o-=65536,i+=String.fromCharCode(o>>>10&1023|55296),o=56320|o&1023),i+=String.fromCharCode(o),i};function a(o){return o>=55296&&o<=57343||o>1114111?"�":(o in t.default&&(o=t.default[o]),n(o))}return xl.default=a,xl}var P2;function L2(){if(P2)return ga;P2=1;var e=ga&&ga.__importDefault||function(f){return f&&f.__esModule?f:{default:f}};Object.defineProperty(ga,"__esModule",{value:!0}),ga.decodeHTML=ga.decodeHTMLStrict=ga.decodeXML=void 0;var t=e(xD),n=e(Lat),a=e(CD),o=e(Vat()),i=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;ga.decodeXML=l(a.default),ga.decodeHTMLStrict=l(t.default);function l(f){var m=d(f);return function(g){return String(g).replace(i,m)}}var u=function(f,m){return f<m?1:-1};ga.decodeHTML=(function(){for(var f=Object.keys(n.default).sort(u),m=Object.keys(t.default).sort(u),g=0,y=0;g<m.length;g++)f[y]===m[g]?(m[g]+=";?",y++):m[g]+=";";var b=new RegExp("&(?:"+m.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),x=d(t.default);function S(w){return w.substr(-1)!==";"&&(w+=";"),x(w)}return function(w){return String(w).replace(b,S)}})();function d(f){return function(g){if(g.charAt(1)==="#"){var y=g.charAt(2);return y==="X"||y==="x"?o.default(parseInt(g.substr(3),16)):o.default(parseInt(g.substr(2),10))}return f[g.slice(1,-1)]||g}}return ga}var nr={},B2;function q2(){if(B2)return nr;B2=1;var e=nr&&nr.__importDefault||function(N){return N&&N.__esModule?N:{default:N}};Object.defineProperty(nr,"__esModule",{value:!0}),nr.escapeUTF8=nr.escape=nr.encodeNonAsciiHTML=nr.encodeHTML=nr.encodeXML=void 0;var t=e(CD),n=u(t.default),a=d(n);nr.encodeXML=w(n);var o=e(xD),i=u(o.default),l=d(i);nr.encodeHTML=y(i,l),nr.encodeNonAsciiHTML=w(i);function u(N){return Object.keys(N).sort().reduce(function(T,A){return T[N[A]]="&"+A+";",T},{})}function d(N){for(var T=[],A=[],R=0,E=Object.keys(N);R<E.length;R++){var $=E[R];$.length===1?T.push("\\"+$):A.push($)}T.sort();for(var _=0;_<T.length-1;_++){for(var k=_;k<T.length-1&&T[k].charCodeAt(1)+1===T[k+1].charCodeAt(1);)k+=1;var q=1+k-_;q<3||T.splice(_,q,T[_]+"-"+T[k])}return A.unshift("["+T.join("")+"]"),new RegExp(A.join("|"),"g")}var f=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,m=String.prototype.codePointAt!=null?function(N){return N.codePointAt(0)}:function(N){return(N.charCodeAt(0)-55296)*1024+N.charCodeAt(1)-56320+65536};function g(N){return"&#x"+(N.length>1?m(N):N.charCodeAt(0)).toString(16).toUpperCase()+";"}function y(N,T){return function(A){return A.replace(T,function(R){return N[R]}).replace(f,g)}}var b=new RegExp(a.source+"|"+f.source,"g");function x(N){return N.replace(b,g)}nr.escape=x;function S(N){return N.replace(a,g)}nr.escapeUTF8=S;function w(N){return function(T){return T.replace(b,function(A){return N[A]||g(A)})}}return nr}var F2;function Gat(){return F2||(F2=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=L2(),n=q2();function a(d,f){return(!f||f<=0?t.decodeXML:t.decodeHTML)(d)}e.decode=a;function o(d,f){return(!f||f<=0?t.decodeXML:t.decodeHTMLStrict)(d)}e.decodeStrict=o;function i(d,f){return(!f||f<=0?n.encodeXML:n.encodeHTML)(d)}e.encode=i;var l=q2();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return l.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return l.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return l.encodeHTML}});var u=L2();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return u.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return u.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return u.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return u.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return u.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return u.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return u.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return u.decodeXML}})})(gb)),gb}const Yat={altglyph:"altGlyph",altglyphdef:"altGlyphDef",altglyphitem:"altGlyphItem",animatecolor:"animateColor",animatemotion:"animateMotion",animatetransform:"animateTransform",clippath:"clipPath",feblend:"feBlend",fecolormatrix:"feColorMatrix",fecomponenttransfer:"feComponentTransfer",fecomposite:"feComposite",feconvolvematrix:"feConvolveMatrix",fediffuselighting:"feDiffuseLighting",fedisplacementmap:"feDisplacementMap",fedistantlight:"feDistantLight",fedropshadow:"feDropShadow",feflood:"feFlood",fefunca:"feFuncA",fefuncb:"feFuncB",fefuncg:"feFuncG",fefuncr:"feFuncR",fegaussianblur:"feGaussianBlur",feimage:"feImage",femerge:"feMerge",femergenode:"feMergeNode",femorphology:"feMorphology",feoffset:"feOffset",fepointlight:"fePointLight",fespecularlighting:"feSpecularLighting",fespotlight:"feSpotLight",fetile:"feTile",feturbulence:"feTurbulence",foreignobject:"foreignObject",glyphref:"glyphRef",lineargradient:"linearGradient",radialgradient:"radialGradient",textpath:"textPath"},Wat={definitionurl:"definitionURL",attributename:"attributeName",attributetype:"attributeType",basefrequency:"baseFrequency",baseprofile:"baseProfile",calcmode:"calcMode",clippathunits:"clipPathUnits",diffuseconstant:"diffuseConstant",edgemode:"edgeMode",filterunits:"filterUnits",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",limitingconeangle:"limitingConeAngle",markerheight:"markerHeight",markerunits:"markerUnits",markerwidth:"markerWidth",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",numoctaves:"numOctaves",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",refx:"refX",refy:"refY",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",specularconstant:"specularConstant",specularexponent:"specularExponent",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stitchtiles:"stitchTiles",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textlength:"textLength",viewbox:"viewBox",viewtarget:"viewTarget",xchannelselector:"xChannelSelector",ychannelselector:"yChannelSelector",zoomandpan:"zoomAndPan"},Xat={elementNames:Yat,attributeNames:Wat};var z2;function Kat(){if(z2)return hb.exports;z2=1;var e=x2e(),t=Gat(),n=Xat;n.elementNames.__proto__=null,n.attributeNames.__proto__=null;var a={__proto__:null,style:!0,script:!0,xmp:!0,iframe:!0,noembed:!0,noframes:!0,plaintext:!0,noscript:!0};function o(b,x){if(b){var S="",w;for(var N in b)w=b[N],S&&(S+=" "),x.xmlMode==="foreign"&&(N=n.attributeNames[N]||N),S+=N,(w!==null&&w!==""||x.xmlMode)&&(S+='="'+(x.decodeEntities?t.encodeXML(w):w.replace(/\"/g,"&quot;"))+'"');return S}}var i={__proto__:null,area:!0,base:!0,basefont:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,isindex:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},l=hb.exports=function(b,x){!Array.isArray(b)&&!b.cheerio&&(b=[b]),x=x||{};for(var S="",w=0;w<b.length;w++){var N=b[w];N.type==="root"?S+=l(N.children,x):e.isTag(N)?S+=d(N,x):N.type===e.Directive?S+=f(N):N.type===e.Comment?S+=y(N):N.type===e.CDATA?S+=g(N):S+=m(N,x)}return S},u=["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"];function d(b,x){x.xmlMode==="foreign"&&(b.name=n.elementNames[b.name]||b.name,b.parent&&u.indexOf(b.parent.name)>=0&&(x=Object.assign({},x,{xmlMode:!1}))),!x.xmlMode&&["svg","math"].indexOf(b.name)>=0&&(x=Object.assign({},x,{xmlMode:"foreign"}));var S="<"+b.name,w=o(b.attribs,x);return w&&(S+=" "+w),x.xmlMode&&(!b.children||b.children.length===0)?S+="/>":(S+=">",b.children&&(S+=l(b.children,x)),(!i[b.name]||x.xmlMode)&&(S+="</"+b.name+">")),S}function f(b){return"<"+b.data+">"}function m(b,x){var S=b.data||"";return x.decodeEntities&&!(b.parent&&b.parent.name in a)&&(S=t.encodeXML(S)),S}function g(b){return"<![CDATA["+b.children[0].data+"]]>"}function y(b){return"<!--"+b.data+"-->"}return hb.exports}var yb,H2;function Qat(){if(H2)return yb;H2=1;var e=bd(),t=Kat(),n=e.isTag;yb={getInnerHTML:a,getOuterHTML:t,getText:o};function a(i,l){return i.children?i.children.map(function(u){return t(u,l)}).join(""):""}function o(i){return Array.isArray(i)?i.map(o).join(""):n(i)?i.name==="br"?`
`:o(i.children):i.type===e.CDATA?o(i.children):i.type===e.Text?i.data:""}return yb}var fo={},U2;function Zat(){if(U2)return fo;U2=1;var e=fo.getChildren=function(n){return n.children},t=fo.getParent=function(n){return n.parent};return fo.getSiblings=function(n){var a=t(n);return a?e(a):[n]},fo.getAttributeValue=function(n,a){return n.attribs&&n.attribs[a]},fo.hasAttrib=function(n,a){return!!n.attribs&&hasOwnProperty.call(n.attribs,a)},fo.getName=function(n){return n.name},fo}var ai={},V2;function Jat(){return V2||(V2=1,ai.removeElement=function(e){if(e.prev&&(e.prev.next=e.next),e.next&&(e.next.prev=e.prev),e.parent){var t=e.parent.children;t.splice(t.lastIndexOf(e),1)}},ai.replaceElement=function(e,t){var n=t.prev=e.prev;n&&(n.next=t);var a=t.next=e.next;a&&(a.prev=t);var o=t.parent=e.parent;if(o){var i=o.children;i[i.lastIndexOf(e)]=t}},ai.appendChild=function(e,t){if(t.parent=e,e.children.push(t)!==1){var n=e.children[e.children.length-2];n.next=t,t.prev=n,t.next=null}},ai.append=function(e,t){var n=e.parent,a=e.next;if(t.next=a,t.prev=e,e.next=t,t.parent=n,a){if(a.prev=t,n){var o=n.children;o.splice(o.lastIndexOf(a),0,t)}}else n&&n.children.push(t)},ai.prepend=function(e,t){var n=e.parent;if(n){var a=n.children;a.splice(a.lastIndexOf(e),0,t)}e.prev&&(e.prev.next=t),t.parent=n,t.prev=e.prev,t.next=e,e.prev=t}),ai}var bb,G2;function est(){if(G2)return bb;G2=1;var e=bd().isTag;bb={filter:t,find:n,findOneChild:a,findOne:o,existsOne:i,findAll:l};function t(u,d,f,m){return Array.isArray(d)||(d=[d]),(typeof m!="number"||!isFinite(m))&&(m=1/0),n(u,d,f!==!1,m)}function n(u,d,f,m){for(var g=[],y,b=0,x=d.length;b<x&&!(u(d[b])&&(g.push(d[b]),--m<=0)||(y=d[b].children,f&&y&&y.length>0&&(y=n(u,y,f,m),g=g.concat(y),m-=y.length,m<=0)));b++);return g}function a(u,d){for(var f=0,m=d.length;f<m;f++)if(u(d[f]))return d[f];return null}function o(u,d){for(var f=null,m=0,g=d.length;m<g&&!f;m++)if(e(d[m]))u(d[m])?f=d[m]:d[m].children.length>0&&(f=o(u,d[m].children));else continue;return f}function i(u,d){for(var f=0,m=d.length;f<m;f++)if(e(d[f])&&(u(d[f])||d[f].children.length>0&&i(u,d[f].children)))return!0;return!1}function l(u,d){for(var f=[],m=d.slice();m.length;){var g=m.shift();e(g)&&(g.children&&g.children.length>0&&m.unshift.apply(m,g.children),u(g)&&f.push(g))}return f}return bb}var po={},Y2;function tst(){if(Y2)return po;Y2=1;var e=bd(),t=po.isTag=e.isTag;po.testElement=function(i,l){for(var u in i)if(i.hasOwnProperty(u)){if(u==="tag_name"){if(!t(l)||!i.tag_name(l.name))return!1}else if(u==="tag_type"){if(!i.tag_type(l.type))return!1}else if(u==="tag_contains"){if(t(l)||!i.tag_contains(l.data))return!1}else if(!l.attribs||!i[u](l.attribs[u]))return!1}return!0};var n={tag_name:function(i){return typeof i=="function"?function(l){return t(l)&&i(l.name)}:i==="*"?t:function(l){return t(l)&&l.name===i}},tag_type:function(i){return typeof i=="function"?function(l){return i(l.type)}:function(l){return l.type===i}},tag_contains:function(i){return typeof i=="function"?function(l){return!t(l)&&i(l.data)}:function(l){return!t(l)&&l.data===i}}};function a(i,l){return typeof l=="function"?function(u){return u.attribs&&l(u.attribs[i])}:function(u){return u.attribs&&u.attribs[i]===l}}function o(i,l){return function(u){return i(u)||l(u)}}return po.getElements=function(i,l,u,d){var f=Object.keys(i).map(function(m){var g=i[m];return m in n?n[m](g):a(m,g)});return f.length===0?[]:this.filter(f.reduce(o),l,u,d)},po.getElementById=function(i,l,u){return Array.isArray(l)||(l=[l]),this.findOne(a("id",i),l,u!==!1)},po.getElementsByTagName=function(i,l,u,d){return this.filter(n.tag_name(i),l,u,d)},po.getElementsByTagType=function(i,l,u,d){return this.filter(n.tag_type(i),l,u,d)},po}var su={},W2;function nst(){if(W2)return su;W2=1,su.removeSubsets=function(n){for(var a=n.length,o,i,l;--a>-1;){for(o=i=n[a],n[a]=null,l=!0;i;){if(n.indexOf(i)>-1){l=!1,n.splice(a,1);break}i=i.parent}l&&(n[a]=o)}return n};var e={DISCONNECTED:1,PRECEDING:2,FOLLOWING:4,CONTAINS:8,CONTAINED_BY:16},t=su.compareDocumentPosition=function(n,a){var o=[],i=[],l,u,d,f,m,g;if(n===a)return 0;for(l=n;l;)o.unshift(l),l=l.parent;for(l=a;l;)i.unshift(l),l=l.parent;for(g=0;o[g]===i[g];)g++;return g===0?e.DISCONNECTED:(u=o[g-1],d=u.children,f=o[g],m=i[g],d.indexOf(f)>d.indexOf(m)?u===a?e.FOLLOWING|e.CONTAINED_BY:e.FOLLOWING:u===n?e.PRECEDING|e.CONTAINS:e.PRECEDING)};return su.uniqueSort=function(n){var a=n.length,o,i;for(n=n.slice();--a>-1;)o=n[a],i=n.indexOf(o),i>-1&&i<a&&n.splice(a,1);return n.sort(function(l,u){var d=t(l,u);return d&e.PRECEDING?-1:d&e.FOLLOWING?1:0}),n},su}var X2;function SD(){return X2||(X2=1,(function(e){var t=e.exports;[Qat(),Zat(),Jat(),est(),tst(),nst()].forEach(function(n){Object.keys(n).forEach(function(a){t[a]=n[a].bind(t)})})})(pb)),pb.exports}var vb,K2;function rst(){if(K2)return vb;K2=1;var e=vD(),t=SD();function n(d,f){this.init(d,f)}zh()(n,e),n.prototype.init=e;function a(d,f){return t.getElementsByTagName(d,f,!0)}function o(d,f){return t.getElementsByTagName(d,f,!0,1)[0]}function i(d,f,m){return t.getText(t.getElementsByTagName(d,f,m,1)).trim()}function l(d,f,m,g,y){var b=i(m,g,y);b&&(d[f]=b)}var u=function(d){return d==="rss"||d==="feed"||d==="rdf:RDF"};return n.prototype.onend=function(){var d={},f=o(u,this.dom),m,g;f&&(f.name==="feed"?(g=f.children,d.type="atom",l(d,"id","id",g),l(d,"title","title",g),(m=o("link",g))&&(m=m.attribs)&&(m=m.href)&&(d.link=m),l(d,"description","subtitle",g),(m=i("updated",g))&&(d.updated=new Date(m)),l(d,"author","email",g,!0),d.items=a("entry",g).map(function(y){var b={},x;return y=y.children,l(b,"id","id",y),l(b,"title","title",y),(x=o("link",y))&&(x=x.attribs)&&(x=x.href)&&(b.link=x),(x=i("summary",y)||i("content",y))&&(b.description=x),(x=i("updated",y))&&(b.pubDate=new Date(x)),b})):(g=o("channel",f.children).children,d.type=f.name.substr(0,3),d.id="",l(d,"title","title",g),l(d,"link","link",g),l(d,"description","description",g),(m=i("lastBuildDate",g))&&(d.updated=new Date(m)),l(d,"author","managingEditor",g,!0),d.items=a("item",f.children).map(function(y){var b={},x;return y=y.children,l(b,"id","guid",y),l(b,"title","title",y),l(b,"link","link",y),l(b,"description","description",y),(x=i("pubDate",y))&&(b.pubDate=new Date(x)),b}))),this.dom=d,e.prototype._handleCallback.call(this,f?null:Error("couldn't find root of feed"))},vb=n,vb}var xb={},Wf={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Q2;function ast(){return Q2||(Q2=1,(function(e,t){var n=qp,a=n.Buffer;function o(l,u){for(var d in l)u[d]=l[d]}a.from&&a.alloc&&a.allocUnsafe&&a.allocUnsafeSlow?e.exports=n:(o(n,t),t.Buffer=i);function i(l,u,d){return a(l,u,d)}i.prototype=Object.create(a.prototype),o(a,i),i.from=function(l,u,d){if(typeof l=="number")throw new TypeError("Argument must not be a number");return a(l,u,d)},i.alloc=function(l,u,d){if(typeof l!="number")throw new TypeError("Argument must be a number");var f=a(l);return u!==void 0?typeof d=="string"?f.fill(u,d):f.fill(u):f.fill(0),f},i.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return a(l)},i.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(l)}})(Wf,Wf.exports)),Wf.exports}var Z2;function sst(){if(Z2)return xb;Z2=1;var e=ast().Buffer,t=e.isEncoding||function(N){switch(N=""+N,N&&N.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function n(N){if(!N)return"utf8";for(var T;;)switch(N){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return N;default:if(T)return;N=(""+N).toLowerCase(),T=!0}}function a(N){var T=n(N);if(typeof T!="string"&&(e.isEncoding===t||!t(N)))throw new Error("Unknown encoding: "+N);return T||N}xb.StringDecoder=o;function o(N){this.encoding=a(N);var T;switch(this.encoding){case"utf16le":this.text=g,this.end=y,T=4;break;case"utf8":this.fillLast=d,T=4;break;case"base64":this.text=b,this.end=x,T=3;break;default:this.write=S,this.end=w;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(T)}o.prototype.write=function(N){if(N.length===0)return"";var T,A;if(this.lastNeed){if(T=this.fillLast(N),T===void 0)return"";A=this.lastNeed,this.lastNeed=0}else A=0;return A<N.length?T?T+this.text(N,A):this.text(N,A):T||""},o.prototype.end=m,o.prototype.text=f,o.prototype.fillLast=function(N){if(this.lastNeed<=N.length)return N.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);N.copy(this.lastChar,this.lastTotal-this.lastNeed,0,N.length),this.lastNeed-=N.length};function i(N){return N<=127?0:N>>5===6?2:N>>4===14?3:N>>3===30?4:N>>6===2?-1:-2}function l(N,T,A){var R=T.length-1;if(R<A)return 0;var E=i(T[R]);return E>=0?(E>0&&(N.lastNeed=E-1),E):--R<A||E===-2?0:(E=i(T[R]),E>=0?(E>0&&(N.lastNeed=E-2),E):--R<A||E===-2?0:(E=i(T[R]),E>=0?(E>0&&(E===2?E=0:N.lastNeed=E-3),E):0))}function u(N,T,A){if((T[0]&192)!==128)return N.lastNeed=0,"�";if(N.lastNeed>1&&T.length>1){if((T[1]&192)!==128)return N.lastNeed=1,"�";if(N.lastNeed>2&&T.length>2&&(T[2]&192)!==128)return N.lastNeed=2,"�"}}function d(N){var T=this.lastTotal-this.lastNeed,A=u(this,N);if(A!==void 0)return A;if(this.lastNeed<=N.length)return N.copy(this.lastChar,T,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);N.copy(this.lastChar,T,0,N.length),this.lastNeed-=N.length}function f(N,T){var A=l(this,N,T);if(!this.lastNeed)return N.toString("utf8",T);this.lastTotal=A;var R=N.length-(A-this.lastNeed);return N.copy(this.lastChar,0,R),N.toString("utf8",T,R)}function m(N){var T=N&&N.length?this.write(N):"";return this.lastNeed?T+"�":T}function g(N,T){if((N.length-T)%2===0){var A=N.toString("utf16le",T);if(A){var R=A.charCodeAt(A.length-1);if(R>=55296&&R<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=N[N.length-2],this.lastChar[1]=N[N.length-1],A.slice(0,-1)}return A}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=N[N.length-1],N.toString("utf16le",T,N.length-1)}function y(N){var T=N&&N.length?this.write(N):"";if(this.lastNeed){var A=this.lastTotal-this.lastNeed;return T+this.lastChar.toString("utf16le",0,A)}return T}function b(N,T){var A=(N.length-T)%3;return A===0?N.toString("base64",T):(this.lastNeed=3-A,this.lastTotal=3,A===1?this.lastChar[0]=N[N.length-1]:(this.lastChar[0]=N[N.length-2],this.lastChar[1]=N[N.length-1]),N.toString("base64",T,N.length-A))}function x(N){var T=N&&N.length?this.write(N):"";return this.lastNeed?T+this.lastChar.toString("base64",0,3-this.lastNeed):T}function S(N){return N.toString(this.encoding)}function w(N){return N&&N.length?this.write(N):""}return xb}var Cb,J2;function ND(){if(J2)return Cb;J2=1,Cb=o;var e=yD(),t=qp.Writable,n=sst().StringDecoder,a=qp.Buffer;function o(i,l){var u=this._parser=new e(i,l),d=this._decoder=new n;t.call(this,{decodeStrings:!1}),this.once("finish",function(){u.end(d.end())})}return zh()(o,t),o.prototype._write=function(i,l,u){i instanceof a&&(i=this._decoder.write(i)),this._parser.write(i),u()},Cb}var Sb,eE;function ost(){if(eE)return Sb;eE=1,Sb=t;var e=ND();function t(o){e.call(this,new n(this),o)}zh()(t,e),t.prototype.readable=!0;function n(o){this.scope=o}var a=Hh().EVENTS;return Object.keys(a).forEach(function(o){if(a[o]===0)n.prototype["on"+o]=function(){this.scope.emit(o)};else if(a[o]===1)n.prototype["on"+o]=function(i){this.scope.emit(o,i)};else if(a[o]===2)n.prototype["on"+o]=function(i,l){this.scope.emit(o,i,l)};else throw Error("wrong number of arguments!")}),Sb}var Nb,tE;function ist(){if(tE)return Nb;tE=1,Nb=e;function e(n){this._cbs=n||{}}var t=Hh().EVENTS;return Object.keys(t).forEach(function(n){if(t[n]===0)n="on"+n,e.prototype[n]=function(){this._cbs[n]&&this._cbs[n]()};else if(t[n]===1)n="on"+n,e.prototype[n]=function(a){this._cbs[n]&&this._cbs[n](a)};else if(t[n]===2)n="on"+n,e.prototype[n]=function(a,o){this._cbs[n]&&this._cbs[n](a,o)};else throw Error("wrong number of arguments")}),Nb}var wb,nE;function lst(){if(nE)return wb;nE=1,wb=e;function e(n){this._cbs=n||{},this.events=[]}var t=Hh().EVENTS;return Object.keys(t).forEach(function(n){if(t[n]===0)n="on"+n,e.prototype[n]=function(){this.events.push([n]),this._cbs[n]&&this._cbs[n]()};else if(t[n]===1)n="on"+n,e.prototype[n]=function(a){this.events.push([n,a]),this._cbs[n]&&this._cbs[n](a)};else if(t[n]===2)n="on"+n,e.prototype[n]=function(a,o){this.events.push([n,a,o]),this._cbs[n]&&this._cbs[n](a,o)};else throw Error("wrong number of arguments")}),e.prototype.onreset=function(){this.events=[],this._cbs.onreset&&this._cbs.onreset()},e.prototype.restart=function(){this._cbs.onreset&&this._cbs.onreset();for(var n=0,a=this.events.length;n<a;n++)if(this._cbs[this.events[n][0]]){var o=this.events[n].length;o===1?this._cbs[this.events[n][0]]():o===2?this._cbs[this.events[n][0]](this.events[n][1]):this._cbs[this.events[n][0]](this.events[n][1],this.events[n][2])}},wb}var rE;function Hh(){return rE||(rE=1,(function(e){var t=yD(),n=vD();function a(o,i){return delete e.exports[o],e.exports[o]=i,i}e.exports={Parser:t,Tokenizer:gD(),ElementType:bd(),DomHandler:n,get FeedHandler(){return a("FeedHandler",rst())},get Stream(){return a("Stream",ost())},get WritableStream(){return a("WritableStream",ND())},get ProxyHandler(){return a("ProxyHandler",ist())},get DomUtils(){return a("DomUtils",SD())},get CollectingHandler(){return a("CollectingHandler",lst())},DefaultHandler:n,get RssHandler(){return a("RssHandler",this.FeedHandler)},parseDOM:function(o,i){var l=new n(i);return new t(l,i).end(o),l.dom},parseFeed:function(o,i){var l=new e.exports.FeedHandler(i);return new t(l,i).end(o),l.dom},createDomStream:function(o,i,l){var u=new n(o,i,l);return new t(u,i)},EVENTS:{attribute:2,cdatastart:0,cdataend:0,text:1,processinginstruction:2,comment:1,commentend:0,closetag:1,opentag:2,opentagname:1,error:1,end:0}}})(sb)),sb.exports}var gs=Hh();const cst=Di(gs);function ust(e){return e.type==="text"&&/\r?\n/.test(e.data)&&e.data.trim()===""}function dst(e){return e.data}const fst=["allowfullScreen","async","autoplay","capture","checked","controls","default","defer","disabled","formnovalidate","hidden","loop","multiple","muted","novalidate","open","playsinline","readonly","required","reversed","scoped","seamless","selected","itemscope"],pst={accept:"accept","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",allowtransparency:"allowTransparency",alt:"alt",as:"as",async:"async",autocomplete:"autoComplete",autoplay:"autoPlay",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",charset:"charSet",challenge:"challenge",checked:"checked",cite:"cite",classid:"classID",class:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlsList:"controlsList",coords:"coords",crossorigin:"crossOrigin",data:"data",datetime:"dateTime",default:"default",defer:"defer",dir:"dir",disabled:"disabled",download:"download",draggable:"draggable",enctype:"encType",form:"form",formaction:"formAction",formenctype:"formEncType",formmethod:"formMethod",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",for:"htmlFor","http-equiv":"httpEquiv",icon:"icon",id:"id",inputmode:"inputMode",integrity:"integrity",is:"is",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginheight:"marginHeight",marginwidth:"marginWidth",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",slot:"slot",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",datatype:"datatype",inlist:"inlist",prefix:"prefix",property:"property",resource:"resource",typeof:"typeof",vocab:"vocab",autocapitalize:"autoCapitalize",autocorrect:"autoCorrect",autosave:"autoSave",color:"color",itemprop:"itemProp",itemscope:"itemScope",itemtype:"itemType",itemid:"itemID",itemref:"itemRef",results:"results",security:"security",unselectable:"unselectable"},hst=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,Eb={};function wD(e){return Eb.hasOwnProperty(e)||(Eb[e]=hst.test(e)),Eb[e]}const mst=function(e,t){return fst.map(a=>a.toLowerCase()).indexOf(e.toLowerCase())>=0&&(t=e),t};function gst(e){return Object.keys(e).filter(t=>wD(t)).reduce((t,n)=>{const a=n.toLowerCase(),o=pst[a]||a;return t[o]=mst(o,e[n]),t},{})}function yst(e=""){return e===""?{}:e.split(";").reduce((t,n)=>{let[a,o]=n.split(/^([^:]+):/).filter((i,l)=>l>0).map(i=>i.trim().toLowerCase());return o===void 0||(a=a.replace(/^-ms-/,"ms-").replace(/-(.)/g,(i,l)=>l.toUpperCase()),t[a]=o),t},{})}function ED(e,t){const n=Object.assign({},gst(e),{key:t});return typeof n.style=="string"||n.style instanceof String?n.style=yst(n.style):delete n.style,n}const bst=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function vst(e,t,n){const a=e.name;if(!wD(a))return null;const o=ED(e.attribs,t);let i=null;return bst.indexOf(a)===-1&&(i=$D(e.children,n)),$t.createElement(a,o,i)}function xst(e,t){let n;e.children.length>0&&(n=e.children[0].data);const a=ED(e.attribs,t);return $t.createElement("style",a,n)}function ou(){return null}const Cst={[gs.ElementType.Text]:dst,[gs.ElementType.Tag]:vst,[gs.ElementType.Style]:xst,[gs.ElementType.Directive]:ou,[gs.ElementType.Comment]:ou,[gs.ElementType.Script]:ou,[gs.ElementType.CDATA]:ou,[gs.ElementType.Doctype]:ou};function Sst(e,t,n){return Cst[e.type](e,t,n)}function $D(e,t){return e.filter(n=>!ust(n)).map((n,a)=>{let o;return typeof t=="function"&&(o=t(n,a),o===null||o)?o:Sst(n,a,t)})}function Nst(e,{decodeEntities:t=!0,transform:n,preprocessNodes:a=o=>o}={}){const o=a(cst.parseDOM(e,{decodeEntities:t}));return $D(o,n)}let aE="",$b='<div><canvas id="canv"></canvas><div><a id="reload_href"  style="cursor: pointer; color: blue">Reload Captcha</a></div></div>';const qu=(e,t="white",n="black",a="")=>{aE=e;let o="",i="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";a==="upper"?i="ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789":a==="lower"?i="abcdefghijklmnopqrstuvwxyz0123456789":a==="numbers"?i="0123456789":a==="special_char"&&(i="~`!@#$%^&*()_+-=[]{}|:'<>,.?/");let l=parseInt(e);for(let x=0,S=i.length;x<l;++x)o+=i.charAt(Math.floor(Math.random()*S));let u=o,d=document.getElementById("canv"),f=d.getContext("2d");document.getElementById("image");let m=u,g=30,y=m.split(`
`);y.slice(0).sort(function(x,S){return S.length-x.length}),f.canvas.width=parseInt(l)*25,f.canvas.height=y.length*g,f.fillStyle=t,f.fillRect(0,0,d.width,d.height),f.textBaseline="middle",f.font="italic 20px Arial",f.fillStyle=n;let b=0;for(let x=0;x<parseInt(l);x++){b=parseInt(b)+1;let S=20*b;f.fillText(o[x],S,Math.round(Math.random()*3+12))}document.getElementById("reload_href").onclick=function(){qu(aE,t,n,a)}};class TD extends B.Component{render(){let t="",n="";return $b='<div><canvas id="canv" style="background-color: blue;"></canvas><div><a id="reload_href"  style="cursor: pointer; color: blue">Reload Captcha</a></div></div>',this.props.reloadText&&(t=this.props.reloadText),this.props.reloadColor&&(n=this.props.reloadColor),t==""&&(t="Reload Captcha"),n==""&&(n="blue"),$b='<div><canvas id="canv"></canvas><div><a id="reload_href"  style="cursor: pointer; color: '+n+'">'+t+"</a></div></div>",Nst($b)}}function sE(){const e=()=>qu(6);return B.useEffect(()=>{qu(6)},[]),p.jsx(p.Fragment,{children:p.jsxs("div",{className:"backdrop-blur-sm rounded-lg p-5 bg-black/40 max-w-lg",children:[p.jsxs("div",{className:"relative mb-5",children:[p.jsx("div",{className:"absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none",children:p.jsx(Fe,{icon:oA})}),p.jsx("input",{type:"text",className:"bg-white text-gray-800 text-sm rounded block w-full ps-10 p-2.5 focus:outline-none placeholder:text-gray-600",placeholder:"E-Mail Address"})]}),p.jsxs("div",{className:"relative mb-5",children:[p.jsx("div",{className:"absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none",children:p.jsx(Fe,{icon:iA})}),p.jsx("input",{type:"passowrd",className:"bg-white text-gray-800 text-sm rounded block w-full ps-10 p-2.5 focus:outline-none placeholder:text-gray-600",placeholder:"Password"})]}),p.jsxs("div",{className:"mb-5 flex gap-5",children:[p.jsx("input",{type:"text",className:"flex-1 bg-white text-gray-800 text-sm rounded block w-full p-2.5 focus:outline-none placeholder:text-gray-600",placeholder:"Captcha"}),p.jsxs("div",{className:"flex-1 flex gap-2.5 items-center bg-white rounded px-2.5",children:[p.jsx(TD,{reloadColor:"blue",reloadText:" "}),p.jsx("div",{className:"w-1 h-full border-r border-dashed"}),p.jsx("button",{onClick:e,type:"button",className:"cursor-pointer",children:p.jsx(Fe,{icon:Qv})})]})]}),p.jsx("button",{type:"button",className:"bg-(--highlight-color) p-2 w-full rounded font-medium text-white uppercase tracking-widest mb-4",children:"Login"}),p.jsx("div",{className:"text-center mb-3",children:p.jsx("button",{type:"button",className:"text-white cursor-pointer",children:"Forgot your password?"})}),p.jsxs("div",{className:"text-center text-white",children:["For New User.  ",p.jsx("button",{type:"button",className:"text-(--highlight-color) cursor-pointer",children:"Register"})]})]})})}function bo(e){const{title:t,description:n}=e;return p.jsx(p.Fragment,{children:p.jsxs("div",{className:"title-block text-center mb-8",children:[p.jsx("h3",{className:"text-3xl font-bold",children:t}),n&&p.jsx("h4",{className:"text-gray-700 mt-2",children:n}),p.jsxs("div",{className:"flex justify-center gap-3 items-center mt-3",children:[p.jsx("div",{className:"w-full max-w-32 h-1 bg-(--highlight-color)"}),p.jsx(Fe,{icon:iB,className:"text-(--highlight-color)"}),p.jsx("div",{className:"w-full max-w-32 h-1 bg-(--highlight-color)"})]})]})})}function Uh(e){const{packageList:t}=e;return p.jsx(p.Fragment,{children:p.jsx(Ip,{"aria-label":"Holiday Packages",options:{type:"loop",perPage:4,perMove:1,gap:"10px",autoplay:!0,interval:3e3,pauseOnHover:!0,pagination:!1,arrows:!0,breakpoints:{1200:{perPage:3},768:{perPage:2},480:{perPage:1}}},children:t?.map((n,a)=>p.jsx(kp,{children:p.jsx("div",{className:"p-2",children:p.jsxs("div",{className:"shadow bg-white",children:[p.jsx("img",{src:n?.image?.trim()||"https://www.superdmc.com/public/images/noimageother.jpg",alt:n?.name||"",className:"w-full h-48 object-cover"}),p.jsxs("div",{className:"p-3 bg-white",children:[p.jsxs("div",{className:"mb-3",children:[p.jsx("h5",{className:"text-lg font-semibold",children:n?.name||""}),p.jsxs("div",{className:"text-gray-700 text-sm",children:[Number(n?.nights||0)+1," Days, ",Number(n?.nights||0)," Nights"]})]}),n?.description?.trim()&&p.jsx("div",{className:"text-gray-700 text-sm mb-3",children:n?.description||""}),p.jsx("a",{href:"",className:"bg-(--highlight-color) px-2 py-1 block w-full rounded text-center font-medium text-white uppercase tracking-widest",children:"Book Now"})]})]})})},a))})})}function wst(){const e=()=>qu(6);return B.useEffect(()=>{qu(6)},[]),p.jsx(p.Fragment,{children:p.jsxs("div",{className:"flex items-center gap-5 bg-gray-300 px-5 py-3",children:[p.jsx("img",{src:"https://www.superdmc.com/public/upload/21/images/logo.png",alt:"Super DMC",className:"max-w-60"}),p.jsxs("div",{className:"flex gap-4 justify-end items-start flex-1",children:[p.jsxs("div",{className:"relative max-w-60",children:[p.jsx("div",{className:"absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none",children:p.jsx(Fe,{icon:oA})}),p.jsx("input",{type:"text",className:"bg-white text-gray-800 text-sm rounded block w-full ps-10 p-2.5 focus:outline-none placeholder:text-gray-600",placeholder:"E-Mail Address"})]}),p.jsxs("div",{className:"max-w-60",children:[p.jsxs("div",{className:"relative",children:[p.jsx("div",{className:"absolute inset-y-0 start-0 flex items-center ps-3.5 pointer-events-none",children:p.jsx(Fe,{icon:iA})}),p.jsx("input",{type:"passowrd",className:"bg-white text-gray-800 text-sm rounded block w-full ps-10 p-2.5 focus:outline-none placeholder:text-gray-600",placeholder:"Password"})]}),p.jsx("button",{type:"button",className:"text-sm cursor-pointer",children:"Forgot your password?"})]}),p.jsxs("div",{className:"flex gap-5",children:[p.jsx("input",{type:"text",className:"bg-white text-gray-800 text-sm rounded block w-full p-2.5 focus:outline-none placeholder:text-gray-600 max-w-28",placeholder:"Captcha"}),p.jsxs("div",{className:"flex gap-2.5 items-center bg-white rounded px-2.5",children:[p.jsx(TD,{reloadColor:"blue",reloadText:" "}),p.jsx("div",{className:"w-1 h-full border-r border-dashed"}),p.jsx("button",{onClick:e,type:"button",className:"cursor-pointer",children:p.jsx(Fe,{icon:Qv})})]})]}),p.jsx("button",{type:"button",className:"bg-(--highlight-color) px-5 py-2 rounded font-medium text-white uppercase tracking-widest w-max",children:"Login"}),p.jsx("button",{type:"button",className:"bg-(--highlight-color) px-5 py-2 rounded font-medium text-white uppercase tracking-widest w-max",children:"Register"})]})]})})}function Est(){const e=lt(u=>u.global),[t,n]=B.useState(!1),[a,o]=B.useState(!1),[i,l]=B.useState(!1);return B.useEffect(()=>{const u=()=>n(window.scrollY>50),d=()=>{o(window.innerWidth<1024),l(window.innerWidth>=1024)};return u(),d(),window.addEventListener("scroll",u),window.addEventListener("resize",d),()=>{window.removeEventListener("scroll",u),window.removeEventListener("resize",d)}},[]),p.jsxs(p.Fragment,{children:[e?.formPosition==="top"&&p.jsx(wst,{}),p.jsxs("div",{className:`flex items-center shadow-sm px-5 py-3 w-full backdrop-blur-xs ${e?.formPosition!=="top"?`fixed top-0 z-20 ${t?"bg-white":""}`:""}`,children:[p.jsx("div",{className:"flex-1",children:e?.formPosition!=="top"&&p.jsx("img",{src:"https://www.superdmc.com/public/upload/21/images/logo.png",alt:"Super DMC",className:"max-w-60"})}),a&&p.jsx("button",{type:"button",onClick:()=>l(!0),className:"w-9 h-9 flex items-center justify-center rounded-full bg-(--highlight-color) text-white",children:p.jsx(Fe,{icon:uA})}),!a&&p.jsxs("div",{className:"flex-none flex items-center gap-5",children:[p.jsx("a",{href:"",className:`no-underline font-medium ${e?.formPosition==="top"||t?"text-black":"text-white"} hover:text-(--highlight-color)`,children:"Flight"}),p.jsx("a",{href:"",className:`no-underline font-medium ${e?.formPosition==="top"||t?"text-black":"text-white"} hover:text-(--highlight-color)`,children:"Hotels"}),p.jsx("a",{href:"",className:`no-underline font-medium ${e?.formPosition==="top"||t?"text-black":"text-white"} hover:text-(--highlight-color)`,children:"Special Discounted Hotels"}),p.jsx("a",{href:"",className:`no-underline font-medium ${e?.formPosition==="top"||t?"text-black":"text-white"} hover:text-(--highlight-color)`,children:"Holidays"}),p.jsx("a",{href:"",className:`no-underline font-medium ${e?.formPosition==="top"||t?"text-black":"text-white"} hover:text-(--highlight-color)`,children:"Activities"}),p.jsx("a",{href:"",className:`no-underline font-medium ${e?.formPosition==="top"||t?"text-black":"text-white"} hover:text-(--highlight-color)`,children:"Visa"})]})]}),a&&p.jsxs("div",{className:`fixed top-0 right-0 h-full max-w-80 w-full bg-white shadow-2xl z-50 transform transition-transform duration-500 ease-in-out ${i?"translate-x-0":"translate-x-full"}`,children:[p.jsxs("div",{className:"flex justify-between items-center gap-3 p-5 border-b border-gray-300",children:[p.jsx("img",{src:"https://www.superdmc.com/public/upload/21/images/logo.png",alt:"Super DMC",className:"max-w-44"}),p.jsx("button",{type:"button",onClick:()=>l(!1),className:"text-xs",children:p.jsx(Fe,{icon:Or})})]}),p.jsxs("div",{className:"flex flex-col items-start gap-3 p-5",children:[p.jsx("a",{href:"",className:"no-underline font-medium text-black hover:text-(--highlight-color)",children:"Flight"}),p.jsx("a",{href:"",className:"no-underline font-medium text-black hover:text-(--highlight-color)",children:"Hotels"}),p.jsx("a",{href:"",className:"no-underline font-medium text-black hover:text-(--highlight-color)",children:"Special Discounted Hotels"}),p.jsx("a",{href:"",className:"no-underline font-medium text-black hover:text-(--highlight-color)",children:"Holidays"}),p.jsx("a",{href:"",className:"no-underline font-medium text-black hover:text-(--highlight-color)",children:"Activities"}),p.jsx("a",{href:"",className:"no-underline font-medium text-black hover:text-(--highlight-color)",children:"Visa"})]})]})]})}/*!
 * Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 * Copyright 2025 Fonticons, Inc.
 */var $st={prefix:"fab",iconName:"linkedin",icon:[448,512,[],"f08c","M416 32L31.9 32C14.3 32 0 46.5 0 64.3L0 447.7C0 465.5 14.3 480 31.9 480L416 480c17.6 0 32-14.5 32-32.3l0-383.4C448 46.5 433.6 32 416 32zM135.4 416l-66.4 0 0-213.8 66.5 0 0 213.8-.1 0zM102.2 96a38.5 38.5 0 1 1 0 77 38.5 38.5 0 1 1 0-77zM384.3 416l-66.4 0 0-104c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9l0 105.8-66.4 0 0-213.8 63.7 0 0 29.2 .9 0c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9l0 117.2z"]},Tst={prefix:"fab",iconName:"facebook",icon:[512,512,[62e3],"f09a","M512 256C512 114.6 397.4 0 256 0S0 114.6 0 256C0 376 82.7 476.8 194.2 504.5l0-170.3-52.8 0 0-78.2 52.8 0 0-33.7c0-87.1 39.4-127.5 125-127.5 16.2 0 44.2 3.2 55.7 6.4l0 70.8c-6-.6-16.5-1-29.6-1-42 0-58.2 15.9-58.2 57.2l0 27.8 83.6 0-14.4 78.2-69.3 0 0 175.9C413.8 494.8 512 386.9 512 256z"]},_st={prefix:"fab",iconName:"instagram",icon:[448,512,[],"f16d","M224.3 141a115 115 0 1 0 -.6 230 115 115 0 1 0 .6-230zm-.6 40.4a74.6 74.6 0 1 1 .6 149.2 74.6 74.6 0 1 1 -.6-149.2zm93.4-45.1a26.8 26.8 0 1 1 53.6 0 26.8 26.8 0 1 1 -53.6 0zm129.7 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.8zM399 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"]},Ast={prefix:"fab",iconName:"x-twitter",icon:[448,512,[],"e61b","M357.2 48L427.8 48 273.6 224.2 455 464 313 464 201.7 318.6 74.5 464 3.8 464 168.7 275.5-5.2 48 140.4 48 240.9 180.9 357.2 48zM332.4 421.8l39.1 0-252.4-333.8-42 0 255.3 333.8z"]};/*!
 * Font Awesome Free 7.1.0 by @fontawesome - https://fontawesome.com
 * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
 * Copyright 2025 Fonticons, Inc.
 */var Dst={prefix:"far",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M61.4 64C27.5 64 0 91.5 0 125.4 0 126.3 0 127.1 .1 128L0 128 0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-256-.1 0c0-.9 .1-1.7 .1-2.6 0-33.9-27.5-61.4-61.4-61.4L61.4 64zM464 192.3L464 384c0 8.8-7.2 16-16 16L64 400c-8.8 0-16-7.2-16-16l0-191.7 154.8 117.4c31.4 23.9 74.9 23.9 106.4 0L464 192.3zM48 125.4C48 118 54 112 61.4 112l389.2 0c7.4 0 13.4 6 13.4 13.4 0 4.2-2 8.2-5.3 10.7L280.2 271.5c-14.3 10.8-34.1 10.8-48.4 0L53.3 136.1c-3.3-2.5-5.3-6.5-5.3-10.7z"]},jst={prefix:"far",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M120 0c13.3 0 24 10.7 24 24l0 40 160 0 0-40c0-13.3 10.7-24 24-24s24 10.7 24 24l0 40 32 0c35.3 0 64 28.7 64 64l0 288c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 128C0 92.7 28.7 64 64 64l32 0 0-40c0-13.3 10.7-24 24-24zM384 432c8.8 0 16-7.2 16-16l0-64-88 0 0 80 72 0zm16-128l0-80-88 0 0 80 88 0zm-136 0l0-80-80 0 0 80 80 0zm-128 0l0-80-88 0 0 80 88 0zM48 352l0 64c0 8.8 7.2 16 16 16l72 0 0-80-88 0zm136 0l0 80 80 0 0-80-80 0zM120 112l-56 0c-8.8 0-16 7.2-16 16l0 48 352 0 0-48c0-8.8-7.2-16-16-16l-264 0z"]},hi={prefix:"far",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M166.2-16c-13.3 0-25.3 8.3-30 20.8L120 48 24 48C10.7 48 0 58.7 0 72S10.7 96 24 96l400 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-96 0-16.2-43.2C307.1-7.7 295.2-16 281.8-16L166.2-16zM32 144l0 304c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-304-48 0 0 304c0 8.8-7.2 16-16 16L96 464c-8.8 0-16-7.2-16-16l0-304-48 0zm160 72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 176c0 13.3 10.7 24 24 24s24-10.7 24-24l0-176zm112 0c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 176c0 13.3 10.7 24 24 24s24-10.7 24-24l0-176z"]},go=hi,Rst={prefix:"far",iconName:"copyright",icon:[512,512,[169],"f1f9","M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464a256 256 0 1 0 0-512 256 256 0 1 0 0 512zM205.1 306.9c-28.1-28.1-28.1-73.7 0-101.8s73.7-28.1 101.8 0c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9c-46.9-46.9-122.8-46.9-169.7 0s-46.9 122.8 0 169.7 122.8 46.9 169.7 0c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0c-28.1 28.1-73.7 28.1-101.8 0z"]};const iu=e=>{const{title:t}=e;return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"text-lg font-semibold mb-3",children:t}),p.jsx("div",{className:"h-1 w-full border-b-2 border-white border-dashed mb-5"})]})},Ia=e=>{const{label:t,link:n}=e;return p.jsx(p.Fragment,{children:p.jsx("div",{children:p.jsx("a",{href:n,className:"no-underline text-sm text-white hover:text-(--highlight-color)",children:t})})})};function Ost(){return p.jsx(p.Fragment,{children:p.jsxs("footer",{className:"text-white",children:[p.jsxs("div",{className:"bg-gray-800 px-5 py-10 grid md:grid-cols-2 lg:grid-cols-4 gap-5",children:[p.jsxs("div",{children:[p.jsx(iu,{title:"About B2B SuperDMC"}),p.jsx("p",{className:"text-gray-200 mb-1",children:"helloGTX is a travel technology company based in Noida. This is our test portal where you can check the functionality of Flight, Package, Visa and Actiities bookings."}),p.jsx("p",{className:"text-gray-200",children:"To know more about helloGTX platform kindly visit www.hellogtx.com or connect with us at sales@hellogtx.com"})]}),p.jsxs("div",{children:[p.jsx(iu,{title:"Products"}),p.jsxs("div",{className:"grid gap-3",children:[p.jsx(Ia,{link:"",label:"Flight"}),p.jsx(Ia,{link:"",label:"Hotel"}),p.jsx(Ia,{link:"",label:"Special Discounted Hotels"}),p.jsx(Ia,{link:"",label:"Holidays"}),p.jsx(Ia,{link:"",label:"Activities"}),p.jsx(Ia,{link:"",label:"Visa"})]})]}),p.jsxs("div",{children:[p.jsx(iu,{title:"Useful Links"}),p.jsxs("div",{className:"grid gap-3",children:[p.jsx(Ia,{link:"",label:"Business Card"}),p.jsx(Ia,{link:"",label:"About Us"}),p.jsx(Ia,{link:"",label:"Contact Us"}),p.jsx(Ia,{link:"",label:"Privacy Policy"})]})]}),p.jsxs("div",{children:[p.jsxs("div",{className:"mb-5",children:[p.jsx(iu,{title:"Contact Us"}),p.jsxs("div",{className:"grid gap-3",children:[p.jsxs("div",{className:"text-sm",children:[p.jsx(Fe,{icon:cB})," Sector - 59 Noida - 201301 Uttar Pradesh"]}),p.jsxs("a",{href:"mailto:gaurav@catpl.co.in",className:"no-underline text-sm text-white hover:text-(--highlight-color)",children:[p.jsx(Fe,{icon:Dst})," gaurav@catpl.co.in"]}),p.jsxs("a",{href:"tel:+919811192312",className:"no-underline text-sm text-white hover:text-(--highlight-color)",children:[p.jsx(Fe,{icon:pB})," +91 9811192312"]}),p.jsxs("div",{className:"flex gap-5 items-center",children:[p.jsx("a",{href:"",className:"border border-white rounded-full w-8 h-8 flex items-center justify-center hover:bg-white hover:text-(--highlight-color)",children:p.jsx(Fe,{icon:_st})}),p.jsx("a",{href:"",className:"border border-white rounded-full w-8 h-8 flex items-center justify-center hover:bg-white hover:text-(--highlight-color)",children:p.jsx(Fe,{icon:$st})}),p.jsx("a",{href:"",className:"border border-white rounded-full w-8 h-8 flex items-center justify-center hover:bg-white hover:text-(--highlight-color)",children:p.jsx(Fe,{icon:Ast})}),p.jsx("a",{href:"",className:"border border-white rounded-full w-8 h-8 flex items-center justify-center hover:bg-white hover:text-(--highlight-color)",children:p.jsx(Fe,{icon:Tst})})]})]})]}),p.jsxs("div",{children:[p.jsx(iu,{title:"Newsletter"}),p.jsxs("div",{children:[p.jsx("p",{className:"mb-2",children:"Get latest updates and offers."}),p.jsxs("div",{className:"flex",children:[p.jsx("input",{type:"email",placeholder:"Email",className:"border border-white px-3 py-1 bg-zinc-600 flex-1 focus:outline-none"}),p.jsx("button",{type:"button",className:"bg-(--highlight-color) py-1 text-sm w-24 border highlightBorder",children:"Submit"})]})]})]})]})]}),p.jsxs("div",{className:"px-5 py-2 bg-(--highlight-color) text-center text-sm",children:[p.jsx(Fe,{icon:Rst})," 2025 Copyright: B2B SuperDMC || All Rights Reserved."]})]})})}function oE(){const e=lt(t=>t.global);return p.jsxs(p.Fragment,{children:[p.jsx(Est,{}),p.jsxs("section",{className:`relative ${e?.formPosition==="top"?"min-h-[300px]":"min-h-[550px]"} md:min-h-[450px]`,children:[p.jsx("img",{src:"https://www.superdmc.com/public/upload/21/home/18/18_1709183654.jpg",alt:"Banner",className:`object-cover ${e?.formPosition==="top"?"min-h-[300px]":"min-h-[550px]"} md:min-h-[450px]`}),p.jsxs("div",{className:`flex ${e?.formPosition==="left"?"flex-col-reverse":"flex-col"} md:flex-row gap-5 px-5 pt-20 pb-3 ${e?.formPosition==="top"?"justify-center md:justify-start":""} items-center md:items-end bg-black/10 z-10 absolute top-0 left-0 right-0 bottom-0 w-full h-full`,children:[e?.formPosition==="left"&&p.jsx(sE,{}),p.jsxs("div",{className:"md:flex-1",children:[p.jsx("h1",{className:"text-xl md:text-3xl lg:text-5xl text-center md:text-left font-semibold text-white mb-2",children:"Banner Heading"}),p.jsx("h2",{className:"md:text-lg lg:text-3xl text-center md:text-left text-gray-100",children:"Discover Your Dream Destination"})]}),e?.formPosition==="right"&&p.jsx(sE,{})]})]}),e?.isEverywhere&&e?.everywhere?.length>0&&p.jsxs("section",{className:"px-5 py-8 odd:bg-gray-100",children:[p.jsx(bo,{title:"We Are Everywhere",description:"We are at every state with the largest B2B Destination & Marketing Management Company."}),p.jsx("div",{className:"flex flex-col md:flex-row justify-center md:items-center gap-5",children:e?.everywhere?.map((t,n)=>p.jsxs("div",{className:"bg-(--highlight-color)/30 p-3 flex-1 md:max-w-80",children:[p.jsx("img",{src:t?.image||"",alt:"Image 1",className:"w-full block mb-2"}),p.jsx("div",{className:"font-semibold text-lg text-center",children:t?.text||""})]},n))})]}),e?.isPackageDeals&&e?.packagesDeals?.length>0&&p.jsxs("section",{className:"px-5 py-8 odd:bg-gray-100",children:[p.jsx(bo,{title:"Exclusive Holiday Deals"}),p.jsx(Uh,{packageList:e?.packagesDeals||[]})]}),e?.isFlightDeals&&e?.flightDeals?.length>0&&p.jsxs("section",{className:"px-5 py-8 odd:bg-gray-100",children:[p.jsx(bo,{title:"Exclusive Flight Deals"}),p.jsx(Ip,{"aria-label":"Flight Packages",options:{type:"loop",perPage:6,perMove:1,gap:"1rem",autoplay:!0,interval:3e3,pauseOnHover:!0,pagination:!1,arrows:!0,breakpoints:{1200:{perPage:5},1024:{perPage:4},768:{perPage:3},480:{perPage:2}}},children:e?.flightDeals?.map((t,n)=>p.jsx(kp,{children:p.jsx("div",{className:"p-2",children:p.jsxs("div",{className:"shadow bg-white",children:[p.jsxs("div",{className:"relative p-5",children:[p.jsxs("div",{className:"flex items-center gap-3 mb-7",children:[p.jsx("div",{className:"w-7 h-7 border highlightBorder bg-white text-(--highlight-color) rounded-full flex items-center justify-center",children:p.jsx(Fe,{icon:lB,className:"text-xs"})}),p.jsx("div",{className:"font-semibold",children:t?.departureCity||""})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"w-7 h-7 border highlightBorder bg-(--highlight-color) text-white rounded-full flex items-center justify-center",children:p.jsx(Fe,{icon:sB,className:"text-xs"})}),p.jsx("div",{className:"font-semibold",children:t?.arrivalCity||""})]}),p.jsx("div",{className:"absolute w-1 h-7 border-r-2 highlightBorder left-8 top-12 border-dashed"})]}),p.jsxs("div",{className:"text-center px-5 py-2 border-t border-dashed",children:[p.jsx("div",{className:"text-gray-600 text-sm",children:"Starting From"}),p.jsxs("div",{className:"text-(--highlight-color) font-semibold text-lg",children:[t?.currency||""," ",nL(t?.price||0)]})]})]})})},n))})]}),p.jsx("section",{children:p.jsx("img",{src:"https://www.superdmc.com/public/upload/21/homepromotioncontent/1709187931.jpg",alt:"Promo",className:"w-full"})}),e?.isSuppliers&&e?.suppliers?.length>0&&p.jsxs("section",{className:"px-5 py-8 odd:bg-gray-100",children:[p.jsx(bo,{title:"Our Suppliers"}),p.jsx(Ip,{"aria-label":"Holiday Packages",options:{type:"loop",perPage:5,perMove:1,gap:"1rem",autoplay:!0,interval:3e3,pauseOnHover:!0,pagination:!1,arrows:!0,breakpoints:{1200:{perPage:4},768:{perPage:3},480:{perPage:2}}},children:e?.suppliers?.map((t,n)=>p.jsx(kp,{children:p.jsx("div",{className:"p-2 flex justify-center",children:p.jsx("img",{src:t?.trim()||"https://www.superdmc.com/public/images/noimageother.jpg",alt:`Supplier ${n+1}`})})},n))})]}),e?.isFeatures&&e?.features?.length>0&&p.jsx("section",{className:"px-5 py-8 bg-[#ececec]",children:p.jsx("div",{className:"flex flex-wrap gap-3 md:gap-5 justify-center items-center",children:e?.features?.map((t,n)=>p.jsxs("div",{className:"flex-1 min-w-36 max-w-60",children:[p.jsx("div",{className:"flex justify-center mb-5",children:p.jsx("img",{src:t?.image||"",alt:t?.title||"Feature",className:"w-20"})}),p.jsx("div",{className:"text-center font-semibold",children:t?.title||""})]},n))})}),p.jsx(Ost,{})]})}function Ist(e){const{label:t,bookNowLink:n,boxBackground:a,children:o,description:i}=e;return p.jsx(p.Fragment,{children:p.jsxs("div",{className:a||"",children:[p.jsxs("div",{className:"p-4 h-28 flex flex-col justify-center relative overflow-hidden gap-1",children:[p.jsx("div",{className:"text-xl font-semibold w-full relative z-2 text-white max-w-3/4",children:t}),i&&p.jsx("div",{className:"text-white w-full",children:i}),p.jsx("div",{className:"absolute top-1/2 right-5 text-black/20 -translate-y-1/2 z-0 text-7xl",children:o})]}),p.jsxs("a",{href:n,className:"bg-black/30 text-white px-3 py-2 font-semibold text-center w-full block",children:["Book Now ",p.jsx(Fe,{icon:fB})]})]})})}function kst(){const e=lt(t=>t.global);return p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"p-5",children:p.jsx("div",{className:"grid grid-cols-4 gap-5",children:e?.dashboardLinks?.map((t,n)=>p.jsx(Ist,{label:t?.label||"",bookNowLink:t?.link||"",boxBackground:t?.background||"",description:t?.description||"",children:p.jsx(Fe,{icon:t.icon})},n))})}),e?.packagesDeals?.length>0&&p.jsxs("div",{className:"p-5",children:[p.jsx(bo,{title:"Trending Tours"}),p.jsx(Uh,{packageList:e?.packagesDeals||[]})]})]})}function Mst(){const e=lt(t=>t.global);return p.jsx(p.Fragment,{children:p.jsxs("div",{className:"p-5 space-y-5",children:[p.jsx("div",{className:"dashboard-banner",children:p.jsx(Ip,{"aria-label":"Holiday Packages",options:{type:"loop",perPage:1,perMove:1,autoplay:!0,interval:3e3,pauseOnHover:!0,pagination:!1,arrows:!0,breakpoints:{480:{perPage:1}}},children:p.jsx(kp,{children:p.jsxs("div",{className:"rounded-xl overflow-hidden relative",children:[p.jsx("img",{src:"https://www.superdmc.com/public/upload/21/home/18/18_1709183654.jpg",alt:"Banner Image",className:"w-full rounded-xl"}),p.jsxs("div",{className:"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 text-center w-full max-w-2xl",children:[p.jsx("div",{className:"text-4xl font-semibold text-white mb-1",children:"Discover Australia & New Zealand"}),p.jsx("div",{className:"text-white mb-3 p-0!",children:"Lorem ipsum dolor, sit amet consectetur adipisicing elit. Tenetur suscipit, quis modi consectetur nisi assumenda id dolorem iste. Incidunt, voluptatem!"}),p.jsxs("div",{className:"flex rounded-4xl overflow-hidden",children:[p.jsx("input",{type:"text",className:"flex-1 bg-white focus:outline-none px-5 py-2",placeholder:"Search destination"}),p.jsx("button",{type:"button",className:"text-white bg-(--highlight-color) w-28 py-2",children:"Search"})]})]})]})})})}),p.jsxs("div",{children:[p.jsx(bo,{title:"Explore Activities",description:"Discover amazing services"}),p.jsx("div",{className:"grid grid-cols-9 gap-5",children:e?.dashboardLinks?.map((t,n)=>p.jsxs("a",{className:"text-center block no-underline",href:t?.link||"",children:[p.jsx("div",{className:`w-10 h-10 flex justify-center items-center rounded-lg mx-auto mb-2 text-white ${t?.background||""}`,children:p.jsx(Fe,{icon:t.icon})}),p.jsx("div",{className:"font-semibold",children:t?.label||""}),t?.description&&p.jsx("div",{className:"text-gray-600 mt-1 text-xs",children:t?.description||""})]},n))})]}),e?.packagesDeals?.length>0&&p.jsxs("div",{className:"p-5",children:[p.jsx(bo,{title:"Trending Tours"}),p.jsx(Uh,{packageList:e?.packagesDeals||[]})]})]})})}function Pst(){const e=lt(t=>t.global);return p.jsx(p.Fragment,{children:p.jsxs("div",{className:"px-5 py-3",children:[p.jsx("h1",{className:"text-2xl font-semibold mb-5",children:"Search Your Holiday"}),p.jsxs("div",{className:"flex gap-5 mb-5",children:[p.jsx("input",{type:"text",className:"flex-1 bg-white focus:outline-none px-5 py-2",placeholder:"Search destination"}),p.jsx("button",{type:"button",className:"px-5 py-1 border-2 highlightBorder bg-(--highlight-color) text-white font-medium cursor-pointer",children:p.jsx("span",{className:"text-sm",children:"Search Holiday"})}),p.jsx("a",{href:"/byo",className:"px-5 py-1 border-2 highlightBorder bg-white text-(--highlight-color) font-medium block no-underline transition-all duration-300 hover:bg-(--highlight-color) hover:text-white!",children:p.jsx("span",{className:"text-sm",children:"Build Your Own Holiday"})})]}),e?.packagesDeals?.length>0&&p.jsxs("div",{children:[p.jsx(bo,{title:"Trending Packages"}),p.jsx(Uh,{packageList:e?.packagesDeals||[]})]})]})})}function An(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 Lst=typeof Symbol=="function"&&Symbol.observable||"@@observable",iE=Lst,Tb=()=>Math.random().toString(36).substring(7).split("").join("."),Bst={INIT:`@@redux/INIT${Tb()}`,REPLACE:`@@redux/REPLACE${Tb()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Tb()}`},Fp=Bst;function u1(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function d1(e,t,n){if(typeof e!="function")throw new Error(An(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(An(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(An(1));return n(d1)(e,t)}let a=e,o=t,i=new Map,l=i,u=0,d=!1;function f(){l===i&&(l=new Map,i.forEach((w,N)=>{l.set(N,w)}))}function m(){if(d)throw new Error(An(3));return o}function g(w){if(typeof w!="function")throw new Error(An(4));if(d)throw new Error(An(5));let N=!0;f();const T=u++;return l.set(T,w),function(){if(N){if(d)throw new Error(An(6));N=!1,f(),l.delete(T),i=null}}}function y(w){if(!u1(w))throw new Error(An(7));if(typeof w.type>"u")throw new Error(An(8));if(typeof w.type!="string")throw new Error(An(17));if(d)throw new Error(An(9));try{d=!0,o=a(o,w)}finally{d=!1}return(i=l).forEach(T=>{T()}),w}function b(w){if(typeof w!="function")throw new Error(An(10));a=w,y({type:Fp.REPLACE})}function x(){const w=g;return{subscribe(N){if(typeof N!="object"||N===null)throw new Error(An(11));function T(){const R=N;R.next&&R.next(m())}return T(),{unsubscribe:w(T)}},[iE](){return this}}}return y({type:Fp.INIT}),{dispatch:y,subscribe:g,getState:m,replaceReducer:b,[iE]:x}}function qst(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Fp.INIT})>"u")throw new Error(An(12));if(typeof n(void 0,{type:Fp.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(An(13))})}function Fst(e){const t=Object.keys(e),n={};for(let i=0;i<t.length;i++){const l=t[i];typeof e[l]=="function"&&(n[l]=e[l])}const a=Object.keys(n);let o;try{qst(n)}catch(i){o=i}return function(l={},u){if(o)throw o;let d=!1;const f={};for(let m=0;m<a.length;m++){const g=a[m],y=n[g],b=l[g],x=y(b,u);if(typeof x>"u")throw u&&u.type,new Error(An(14));f[g]=x,d=d||x!==b}return d=d||a.length!==Object.keys(l).length,d?f:l}}function lE(e,t){return function(...n){return t(e.apply(this,n))}}function cE(e,t){if(typeof e=="function")return lE(e,t);if(typeof e!="object"||e===null)throw new Error(An(16));const n={};for(const a in e){const o=e[a];typeof o=="function"&&(n[a]=lE(o,t))}return n}function Fu(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...a)=>t(n(...a)))}function _D(...e){return t=>(n,a)=>{const o=t(n,a);let i=()=>{throw new Error(An(15))};const l={getState:o.getState,dispatch:(d,...f)=>i(d,...f)},u=e.map(d=>d(l));return i=Fu(...u)(o.dispatch),{...o,dispatch:i}}}function zst(e){return u1(e)&&"type"in e&&typeof e.type=="string"}var AD=Symbol.for("immer-nothing"),uE=Symbol.for("immer-draftable"),Rr=Symbol.for("immer-state");function ba(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var zu=Object.getPrototypeOf;function $i(e){return!!e&&!!e[Rr]}function Ds(e){return e?DD(e)||Array.isArray(e)||!!e[uE]||!!e.constructor?.[uE]||vd(e)||Gh(e):!1}var Hst=Object.prototype.constructor.toString(),dE=new WeakMap;function DD(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let a=dE.get(n);return a===void 0&&(a=Function.toString.call(n),dE.set(n,a)),a===Hst}function zp(e,t,n=!0){Vh(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((a,o)=>t(o,a,e))}function Vh(e){const t=e[Rr];return t?t.type_:Array.isArray(e)?1:vd(e)?2:Gh(e)?3:0}function M0(e,t){return Vh(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function jD(e,t,n){const a=Vh(e);a===2?e.set(t,n):a===3?e.add(n):e[t]=n}function Ust(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function vd(e){return e instanceof Map}function Gh(e){return e instanceof Set}function ci(e){return e.copy_||e.base_}function P0(e,t){if(vd(e))return new Map(e);if(Gh(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=DD(e);if(t===!0||t==="class_only"&&!n){const a=Object.getOwnPropertyDescriptors(e);delete a[Rr];let o=Reflect.ownKeys(a);for(let i=0;i<o.length;i++){const l=o[i],u=a[l];u.writable===!1&&(u.writable=!0,u.configurable=!0),(u.get||u.set)&&(a[l]={configurable:!0,writable:!0,enumerable:u.enumerable,value:e[l]})}return Object.create(zu(e),a)}else{const a=zu(e);if(a!==null&&n)return{...e};const o=Object.create(a);return Object.assign(o,e)}}function f1(e,t=!1){return Yh(e)||$i(e)||!Ds(e)||(Vh(e)>1&&Object.defineProperties(e,{set:Xf,add:Xf,clear:Xf,delete:Xf}),Object.freeze(e),t&&Object.values(e).forEach(n=>f1(n,!0))),e}function Vst(){ba(2)}var Xf={value:Vst};function Yh(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var Gst={};function Ti(e){const t=Gst[e];return t||ba(0,e),t}var Hu;function RD(){return Hu}function Yst(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function fE(e,t){t&&(Ti("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function L0(e){B0(e),e.drafts_.forEach(Wst),e.drafts_=null}function B0(e){e===Hu&&(Hu=e.parent_)}function pE(e){return Hu=Yst(Hu,e)}function Wst(e){const t=e[Rr];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function hE(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Rr].modified_&&(L0(t),ba(4)),Ds(e)&&(e=Hp(t,e),t.parent_||Up(t,e)),t.patches_&&Ti("Patches").generateReplacementPatches_(n[Rr].base_,e,t.patches_,t.inversePatches_)):e=Hp(t,n,[]),L0(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==AD?e:void 0}function Hp(e,t,n){if(Yh(t))return t;const a=e.immer_.shouldUseStrictIteration(),o=t[Rr];if(!o)return zp(t,(i,l)=>mE(e,o,t,i,l,n),a),t;if(o.scope_!==e)return t;if(!o.modified_)return Up(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const i=o.copy_;let l=i,u=!1;o.type_===3&&(l=new Set(i),i.clear(),u=!0),zp(l,(d,f)=>mE(e,o,i,d,f,n,u),a),Up(e,i,!1),n&&e.patches_&&Ti("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function mE(e,t,n,a,o,i,l){if(o==null||typeof o!="object"&&!l)return;const u=Yh(o);if(!(u&&!l)){if($i(o)){const d=i&&t&&t.type_!==3&&!M0(t.assigned_,a)?i.concat(a):void 0,f=Hp(e,o,d);if(jD(n,a,f),$i(f))e.canAutoFreeze_=!1;else return}else l&&n.add(o);if(Ds(o)&&!u){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[a]===o&&u)return;Hp(e,o),(!t||!t.scope_.parent_)&&typeof a!="symbol"&&(vd(n)?n.has(a):Object.prototype.propertyIsEnumerable.call(n,a))&&Up(e,o)}}}function Up(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&f1(t,n)}function Xst(e,t){const n=Array.isArray(e),a={type_:n?1:0,scope_:t?t.scope_:RD(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=a,i=p1;n&&(o=[a],i=Uu);const{revoke:l,proxy:u}=Proxy.revocable(o,i);return a.draft_=u,a.revoke_=l,u}var p1={get(e,t){if(t===Rr)return e;const n=ci(e);if(!M0(n,t))return Kst(e,n,t);const a=n[t];return e.finalized_||!Ds(a)?a:a===_b(e.base_,t)?(Ab(e),e.copy_[t]=F0(a,e)):a},has(e,t){return t in ci(e)},ownKeys(e){return Reflect.ownKeys(ci(e))},set(e,t,n){const a=OD(ci(e),t);if(a?.set)return a.set.call(e.draft_,n),!0;if(!e.modified_){const o=_b(ci(e),t),i=o?.[Rr];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(Ust(n,o)&&(n!==void 0||M0(e.base_,t)))return!0;Ab(e),q0(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return _b(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Ab(e),q0(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ci(e),a=Reflect.getOwnPropertyDescriptor(n,t);return a&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:a.enumerable,value:n[t]}},defineProperty(){ba(11)},getPrototypeOf(e){return zu(e.base_)},setPrototypeOf(){ba(12)}},Uu={};zp(p1,(e,t)=>{Uu[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Uu.deleteProperty=function(e,t){return Uu.set.call(this,e,t,void 0)};Uu.set=function(e,t,n){return p1.set.call(this,e[0],t,n,e[0])};function _b(e,t){const n=e[Rr];return(n?ci(n):e)[t]}function Kst(e,t,n){const a=OD(t,n);return a?"value"in a?a.value:a.get?.call(e.draft_):void 0}function OD(e,t){if(!(t in e))return;let n=zu(e);for(;n;){const a=Object.getOwnPropertyDescriptor(n,t);if(a)return a;n=zu(n)}}function q0(e){e.modified_||(e.modified_=!0,e.parent_&&q0(e.parent_))}function Ab(e){e.copy_||(e.copy_=P0(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Qst=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,a)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const l=this;return function(d=i,...f){return l.produce(d,m=>n.call(this,m,...f))}}typeof n!="function"&&ba(6),a!==void 0&&typeof a!="function"&&ba(7);let o;if(Ds(t)){const i=pE(this),l=F0(t,void 0);let u=!0;try{o=n(l),u=!1}finally{u?L0(i):B0(i)}return fE(i,a),hE(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===AD&&(o=void 0),this.autoFreeze_&&f1(o,!0),a){const i=[],l=[];Ti("Patches").generateReplacementPatches_(t,o,i,l),a(i,l)}return o}else ba(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(l,...u)=>this.produceWithPatches(l,d=>t(d,...u));let a,o;return[this.produce(t,n,(l,u)=>{a=l,o=u}),a,o]},typeof e?.autoFreeze=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof e?.useStrictShallowCopy=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof e?.useStrictIteration=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Ds(e)||ba(8),$i(e)&&(e=Zst(e));const t=pE(this),n=F0(e,void 0);return n[Rr].isManual_=!0,B0(t),n}finishDraft(e,t){const n=e&&e[Rr];(!n||!n.isManual_)&&ba(9);const{scope_:a}=n;return fE(a,t),hE(void 0,a)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const a=Ti("Patches").applyPatches_;return $i(e)?a(e,t):this.produce(e,o=>a(o,t))}};function F0(e,t){const n=vd(e)?Ti("MapSet").proxyMap_(e,t):Gh(e)?Ti("MapSet").proxySet_(e,t):Xst(e,t);return(t?t.scope_:RD()).drafts_.push(n),n}function Zst(e){return $i(e)||ba(10,e),ID(e)}function ID(e){if(!Ds(e)||Yh(e))return e;const t=e[Rr];let n,a=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=P0(e,t.scope_.immer_.useStrictShallowCopy_),a=t.scope_.immer_.shouldUseStrictIteration()}else n=P0(e,!0);return zp(n,(o,i)=>{jD(n,o,ID(i))},a),t&&(t.finalized_=!1),n}var Jst=new Qst,kD=Jst.produce;function MD(e){return({dispatch:n,getState:a})=>o=>i=>typeof i=="function"?i(n,a,e):o(i)}var eot=MD(),tot=MD,not=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Fu:Fu.apply(null,arguments)};function gE(e,t){function n(...a){if(t){let o=t(...a);if(!o)throw new Error(Ns(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:a[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=a=>zst(a)&&a.type===e,n}var PD=class vu extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,vu.prototype)}static get[Symbol.species](){return vu}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new vu(...t[0].concat(this)):new vu(...t.concat(this))}};function yE(e){return Ds(e)?kD(e,()=>{}):e}function Kf(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function rot(e){return typeof e=="boolean"}var aot=()=>function(t){const{thunk:n=!0,immutableCheck:a=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let l=new PD;return n&&(rot(n)?l.push(eot):l.push(tot(n.extraArgument))),l},sot="RTK_autoBatch",bE=e=>t=>{setTimeout(t,e)},oot=(e={type:"raf"})=>t=>(...n)=>{const a=t(...n);let o=!0,i=!1,l=!1;const u=new Set,d=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:bE(10):e.type==="callback"?e.queueNotification:bE(e.timeout),f=()=>{l=!1,i&&(i=!1,u.forEach(m=>m()))};return Object.assign({},a,{subscribe(m){const g=()=>o&&m(),y=a.subscribe(g);return u.add(m),()=>{y(),u.delete(m)}},dispatch(m){try{return o=!m?.meta?.[sot],i=!o,i&&(l||(l=!0,d(f))),a.dispatch(m)}finally{o=!0}}})},iot=e=>function(n){const{autoBatch:a=!0}=n??{};let o=new PD(e);return a&&o.push(oot(typeof a=="object"?a:void 0)),o};function lot(e){const t=aot(),{reducer:n=void 0,middleware:a,devTools:o=!0,preloadedState:i=void 0,enhancers:l=void 0}=e||{};let u;if(typeof n=="function")u=n;else if(u1(n))u=Fst(n);else throw new Error(Ns(1));let d;typeof a=="function"?d=a(t):d=t();let f=Fu;o&&(f=not({trace:!1,...typeof o=="object"&&o}));const m=_D(...d),g=iot(m);let y=typeof l=="function"?l(g):g();const b=f(...y);return d1(u,i,b)}function LD(e){const t={},n=[];let a;const o={addCase(i,l){const u=typeof i=="string"?i:i.type;if(!u)throw new Error(Ns(28));if(u in t)throw new Error(Ns(29));return t[u]=l,o},addAsyncThunk(i,l){return l.pending&&(t[i.pending.type]=l.pending),l.rejected&&(t[i.rejected.type]=l.rejected),l.fulfilled&&(t[i.fulfilled.type]=l.fulfilled),l.settled&&n.push({matcher:i.settled,reducer:l.settled}),o},addMatcher(i,l){return n.push({matcher:i,reducer:l}),o},addDefaultCase(i){return a=i,o}};return e(o),[t,n,a]}function cot(e){return typeof e=="function"}function uot(e,t){let[n,a,o]=LD(t),i;if(cot(e))i=()=>yE(e());else{const u=yE(e);i=()=>u}function l(u=i(),d){let f=[n[d.type],...a.filter(({matcher:m})=>m(d)).map(({reducer:m})=>m)];return f.filter(m=>!!m).length===0&&(f=[o]),f.reduce((m,g)=>{if(g)if($i(m)){const b=g(m,d);return b===void 0?m:b}else{if(Ds(m))return kD(m,y=>g(y,d));{const y=g(m,d);if(y===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return y}}return m},u)}return l.getInitialState=i,l}var dot=Symbol.for("rtk-slice-createasyncthunk");function fot(e,t){return`${e}/${t}`}function pot({creators:e}={}){const t=e?.asyncThunk?.[dot];return function(a){const{name:o,reducerPath:i=o}=a;if(!o)throw new Error(Ns(11));const l=(typeof a.reducers=="function"?a.reducers(mot()):a.reducers)||{},u=Object.keys(l),d={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},f={addCase(A,R){const E=typeof A=="string"?A:A.type;if(!E)throw new Error(Ns(12));if(E in d.sliceCaseReducersByType)throw new Error(Ns(13));return d.sliceCaseReducersByType[E]=R,f},addMatcher(A,R){return d.sliceMatchers.push({matcher:A,reducer:R}),f},exposeAction(A,R){return d.actionCreators[A]=R,f},exposeCaseReducer(A,R){return d.sliceCaseReducersByName[A]=R,f}};u.forEach(A=>{const R=l[A],E={reducerName:A,type:fot(o,A),createNotation:typeof a.reducers=="function"};yot(R)?vot(E,R,f,t):got(E,R,f)});function m(){const[A={},R=[],E=void 0]=typeof a.extraReducers=="function"?LD(a.extraReducers):[a.extraReducers],$={...A,...d.sliceCaseReducersByType};return uot(a.initialState,_=>{for(let k in $)_.addCase(k,$[k]);for(let k of d.sliceMatchers)_.addMatcher(k.matcher,k.reducer);for(let k of R)_.addMatcher(k.matcher,k.reducer);E&&_.addDefaultCase(E)})}const g=A=>A,y=new Map,b=new WeakMap;let x;function S(A,R){return x||(x=m()),x(A,R)}function w(){return x||(x=m()),x.getInitialState()}function N(A,R=!1){function E(_){let k=_[A];return typeof k>"u"&&R&&(k=Kf(b,E,w)),k}function $(_=g){const k=Kf(y,R,()=>new WeakMap);return Kf(k,_,()=>{const q={};for(const[z,D]of Object.entries(a.selectors??{}))q[z]=hot(D,_,()=>Kf(b,_,w),R);return q})}return{reducerPath:A,getSelectors:$,get selectors(){return $(E)},selectSlice:E}}const T={name:o,reducer:S,actions:d.actionCreators,caseReducers:d.sliceCaseReducersByName,getInitialState:w,...N(i),injectInto(A,{reducerPath:R,...E}={}){const $=R??i;return A.inject({reducerPath:$,reducer:S},E),{...T,...N($,!0)}}};return T}}function hot(e,t,n,a){function o(i,...l){let u=t(i);return typeof u>"u"&&a&&(u=n()),e(u,...l)}return o.unwrapped=e,o}var Wh=pot();function mot(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function got({type:e,reducerName:t,createNotation:n},a,o){let i,l;if("reducer"in a){if(n&&!bot(a))throw new Error(Ns(17));i=a.reducer,l=a.prepare}else i=a;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,l?gE(e,l):gE(e))}function yot(e){return e._reducerDefinitionType==="asyncThunk"}function bot(e){return e._reducerDefinitionType==="reducerWithPrepare"}function vot({type:e,reducerName:t},n,a,o){if(!o)throw new Error(Ns(18));const{payloadCreator:i,fulfilled:l,pending:u,rejected:d,settled:f,options:m}=n,g=o(e,i,m);a.exposeAction(t,g),l&&a.addCase(g.fulfilled,l),u&&a.addCase(g.pending,u),d&&a.addCase(g.rejected,d),f&&a.addMatcher(g.settled,f),a.exposeCaseReducer(t,{fulfilled:l||Qf,pending:u||Qf,rejected:d||Qf,settled:f||Qf})}function Qf(){}function Ns(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 BD=Wh({name:"global",initialState:{formPosition:"right",menuPosition:"left",menuItems:[{label:"Dashbaord",href:"/dashboard"},{label:"Dashbaord 2",href:"/dashboard2"},{label:"Build Package",href:"/byo"},{label:"Land Only Package",href:"/byonew"},{label:"Holidays",href:"holidays"},{label:"My Queries",href:""},{label:"My Bookings",href:""},{label:"Settings",dropList:[{label:"Markup",href:""},{label:"Profile",href:""},{label:"Change Password",href:""},{label:"Relationship Manager",href:""},{label:"Secure Transaction",href:""},{label:"Log Out",href:""}]}],isEverywhere:!0,everywhere:[{image:"https://www.superdmc.com/public/upload/21/ourpartner/1709187881.png",text:"Guaranteed Service"},{image:"https://www.superdmc.com/public/upload/21/ourpartner/1709187872.png",text:"Best Offers"},{image:"https://www.superdmc.com/public/upload/21/ourpartner/1709187857.png",text:"Best Fares"}],isPackageDeals:!0,packagesDeals:[{image:"https://www.superdmc.com/public/upload/21/home/18/18_1709183654.jpg",name:"Dubai with Abu Dhabi",nights:3,description:"We are at every state with the largest B2B Destination & Marketing Management Company."}],isFlightDeals:!0,flightDeals:[{departureCity:"Delhi",arrivalCity:"Mumbai",currency:"INR",price:3e3}],isSuppliers:!0,suppliers:["https://www.superdmc.com/public/upload/21/support/3/1709184973.png","https://www.superdmc.com/public/upload/21/support/2/1709184920.png","https://www.superdmc.com/public/upload/21/support/1/1709184641.png"],isFeatures:!0,features:[{image:"https://www.tourwayzdmc.com/public/upload/139360/ourpartner/1741350405.png",title:"Elite Travel Management"},{image:"https://www.tourwayzdmc.com/public/upload/139360/ourpartner/1741349088.png",title:"Corporate & MICE Excellence"},{image:"https://www.tourwayzdmc.com/public/upload/139360/ourpartner/1741348539.png",title:"Yacht & Private Parties"},{image:"https://www.tourwayzdmc.com/public/upload/139360/ourpartner/1741350377.png",title:"Luxury Stays & Private Pool Villas"}],dashboardLinks:[{label:"Flights",link:"/flights",background:"bg-orange-600",icon:dB},{label:"Hotels",link:"/hotels",background:"bg-sky-600",icon:Yw},{label:"Special Discounted Hotels/ Villas",link:"/hotelsinv",background:"bg-sky-600",icon:Yw},{label:"Build Package",link:"/byo",background:"bg-blue-800",icon:Wy,description:"Hotel + Land Transfers + Sightseeing's"},{label:"Land Only Package",link:"/byonew",background:"bg-blue-800",icon:Wy,description:"Land Transfers + Sightseeing's"},{label:"Holidays",link:"/holidays",background:"bg-blue-800",icon:Wy},{label:"Activities",link:"/activities",background:"bg-sky-600",icon:Xy},{label:"Visa",link:"/visa",background:"bg-sky-600",icon:Xy},{label:"Enquiry",link:"/enquiry",background:"bg-sky-600",icon:Xy}]},reducers:{updateGlobalState:(e,t)=>{const n=t.payload;Object.entries(n).forEach(([a,o])=>{e[a]=o})},updateCurrencyList:(e,t)=>{const n=t.payload,a=new Map;n?.forEach(o=>{a.set(parseInt(o?.CurrencyId),o?.Title?.trim())}),e.currencyMap=Object.fromEntries(a),e.currencyList=n?.map(o=>({currencyId:Number(o?.CurrencyId||0),currencyName:o?.Title?.trim()}))}}}),{updateGlobalState:Db,updateCurrencyList:xot}=BD.actions,Cot=BD.reducer,h1=`${window.location.origin}/`,sr="https://globaltravelexchange.com/",qD=`${h1}public/images/goa-2.jpg`,ho=3,Sot=/^\d*$/,Not=/^\d*\.?\d*$/,wot=[{name:"IsHotelSelected",label:"Hotel"},{name:"IsTransferSelected",label:"Transfers"},{name:"IsSightseeingSelected",label:"Sightseeing"},{name:"IsMealsSelected",label:"Meals"},{name:"IsGuideSelected",label:"Guides"}],Eot=[{name:"Select Pax & Destinations",stepId:1},{name:"Select Hotel & Rooms",stepId:2,checkName:["IsHotelSelected"]},{name:"Day Wise Itinerary",stepId:3,checkName:["IsTransferSelected","IsSightseeingSelected","IsMealsSelected","IsGuideSelected"]},{name:"View Cost & Share Quote",stepId:4}],Kr={4:"Airport Transfer (P2P)",1:"Itinerary Transport",8:"Local/City Transfer (P2P)",5:"Railway Station Transfer (P2P)",6:"Bus Stand Transfer (P2P)",7:"Port Transfer (P2P)",9:"Meal Transfer (P2P)",3:"SIC Transfer",10:"Per Day Cost"},$ot={4:"#f7d865",1:"#f7d865",8:"#f7d865",5:"#f7d865",6:"#f7d865",7:"#f7d865",9:"#f7d865",3:"#f7d865",10:"#f7d865"},FD=[{id:1,name:"One Way"},{id:2,name:"Round Trip"},{id:8,name:"Local"},{id:4,name:"Airport"}],vE={1:"MAP",2:"AP",3:"AI",4:"EP",5:"CP",6:"CP",7:"MAP",8:"AP",9:"EP"},Tot={EP:"Room Only (EP/RO)",CP:"With Breakfast (CP/BB)",MAP:"Breakfast & Lunch/Dinner (MAP/HB)",AP:"Breakfast, Lunch & Dinner (AP/FB)",AI:"All Inclusive (AI)"},_ot={HB:1,FB:2,AI:3,RO:4,BB:5,CP:6,MAP:7,AP:8,EP:9},Aot={1:"Single Sharing",2:"Twin Sharing",3:"Triple Sharing",4:"Quad Sharing",5:"Quint Sharing",6:"Hexa Sharing"},zD={1:"twin",2:"triple",3:"single",4:"quad",5:"quint",6:"hexa"},Fl={1:"SIC",2:"PVT",3:"Entry Only"},HD={1:"Veg",2:"Non-Veg",3:"AI"},Dot={1:"Break Fast",2:"Lunch",3:"Dinner"},jot={1:"Per Person",2:"Per Item",3:"Total"},Rot=["Internet","Restaurant","Swimming Pool","Gym","Kids Friendly","Spa","Sports","Bar","Pets","Cafe","Nightclub","Room Service","Laundry","Transfers","Business Friendly","Smoking","Disabled Friendly","Other","Airport Shuttle","Good Fitness Center"],Ln=[];for(let e=0;e<256;++e)Ln.push((e+256).toString(16).slice(1));function Oot(e,t=0){return(Ln[e[t+0]]+Ln[e[t+1]]+Ln[e[t+2]]+Ln[e[t+3]]+"-"+Ln[e[t+4]]+Ln[e[t+5]]+"-"+Ln[e[t+6]]+Ln[e[t+7]]+"-"+Ln[e[t+8]]+Ln[e[t+9]]+"-"+Ln[e[t+10]]+Ln[e[t+11]]+Ln[e[t+12]]+Ln[e[t+13]]+Ln[e[t+14]]+Ln[e[t+15]]).toLowerCase()}let jb;const Iot=new Uint8Array(16);function kot(){if(!jb){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");jb=crypto.getRandomValues.bind(crypto)}return jb(Iot)}const Mot=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),xE={randomUUID:Mot};function Pot(e,t,n){e=e||{};const a=e.random??e.rng?.()??kot();if(a.length<16)throw new Error("Random bytes length must be >= 16");return a[6]=a[6]&15|64,a[8]=a[8]&63|128,Oot(a)}function Zt(e,t,n){return xE.randomUUID&&!e?xE.randomUUID():Pot(e)}var Lot="Invariant failed";function Bot(e,t){throw new Error(Lot)}var Sa=function(t){var n=t.top,a=t.right,o=t.bottom,i=t.left,l=a-i,u=o-n,d={top:n,right:a,bottom:o,left:i,width:l,height:u,x:i,y:n,center:{x:(a+i)/2,y:(o+n)/2}};return d},m1=function(t,n){return{top:t.top-n.top,left:t.left-n.left,bottom:t.bottom+n.bottom,right:t.right+n.right}},CE=function(t,n){return{top:t.top+n.top,left:t.left+n.left,bottom:t.bottom-n.bottom,right:t.right-n.right}},qot=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},Rb={top:0,right:0,bottom:0,left:0},g1=function(t){var n=t.borderBox,a=t.margin,o=a===void 0?Rb:a,i=t.border,l=i===void 0?Rb:i,u=t.padding,d=u===void 0?Rb:u,f=Sa(m1(n,o)),m=Sa(CE(n,l)),g=Sa(CE(m,d));return{marginBox:f,borderBox:Sa(n),paddingBox:m,contentBox:g,margin:o,border:l,padding:d}},Vr=function(t){var n=t.slice(0,-2),a=t.slice(-2);if(a!=="px")return 0;var o=Number(n);return isNaN(o)&&Bot(),o},Fot=function(){return{x:window.pageXOffset,y:window.pageYOffset}},Vp=function(t,n){var a=t.borderBox,o=t.border,i=t.margin,l=t.padding,u=qot(a,n);return g1({borderBox:u,border:o,margin:i,padding:l})},Gp=function(t,n){return n===void 0&&(n=Fot()),Vp(t,n)},UD=function(t,n){var a={top:Vr(n.marginTop),right:Vr(n.marginRight),bottom:Vr(n.marginBottom),left:Vr(n.marginLeft)},o={top:Vr(n.paddingTop),right:Vr(n.paddingRight),bottom:Vr(n.paddingBottom),left:Vr(n.paddingLeft)},i={top:Vr(n.borderTopWidth),right:Vr(n.borderRightWidth),bottom:Vr(n.borderBottomWidth),left:Vr(n.borderLeftWidth)};return g1({borderBox:t,margin:a,padding:o,border:i})},VD=function(t){var n=t.getBoundingClientRect(),a=window.getComputedStyle(t);return UD(n,a)},Vu=function(t){var n=[],a=null,o=function(){for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];n=u,!a&&(a=requestAnimationFrame(function(){a=null,t.apply(void 0,n)}))};return o.cancel=function(){a&&(cancelAnimationFrame(a),a=null)},o};function GD(e,t){}GD.bind(null,"warn");GD.bind(null,"error");function vo(){}function zot(e,t){return{...e,...t}}function Qr(e,t,n){const a=t.map(o=>{const i=zot(n,o.options);return e.addEventListener(o.eventName,o.fn,i),function(){e.removeEventListener(o.eventName,o.fn,i)}});return function(){a.forEach(i=>{i()})}}const Hot="Invariant failed";class Yp extends Error{}Yp.prototype.toString=function(){return this.message};function Le(e,t){throw new Yp(Hot)}class Uot extends $t.Component{constructor(...t){super(...t),this.callbacks=null,this.unbind=vo,this.onWindowError=n=>{const a=this.getCallbacks();a.isDragging()&&a.tryAbort(),n.error instanceof Yp&&n.preventDefault()},this.getCallbacks=()=>{if(!this.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return this.callbacks},this.setCallbacks=n=>{this.callbacks=n}}componentDidMount(){this.unbind=Qr(window,[{eventName:"error",fn:this.onWindowError}])}componentDidCatch(t){if(t instanceof Yp){this.setState({});return}throw t}componentWillUnmount(){this.unbind()}render(){return this.props.children(this.setCallbacks)}}const Vot=`
  Press space bar to start a drag.
  When dragging you can use the arrow keys to move the item around and escape to cancel.
  Some screen readers may require you to be in focus mode or to use your pass through key
`,Wp=e=>e+1,Got=e=>`
  You have lifted an item in position ${Wp(e.source.index)}
`,YD=(e,t)=>{const n=e.droppableId===t.droppableId,a=Wp(e.index),o=Wp(t.index);return n?`
      You have moved the item from position ${a}
      to position ${o}
    `:`
    You have moved the item from position ${a}
    in list ${e.droppableId}
    to list ${t.droppableId}
    in position ${o}
  `},WD=(e,t,n)=>t.droppableId===n.droppableId?`
      The item ${e}
      has been combined with ${n.draggableId}`:`
      The item ${e}
      in list ${t.droppableId}
      has been combined with ${n.draggableId}
      in list ${n.droppableId}
    `,Yot=e=>{const t=e.destination;if(t)return YD(e.source,t);const n=e.combine;return n?WD(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},SE=e=>`
  The item has returned to its starting position
  of ${Wp(e.index)}
`,Wot=e=>{if(e.reason==="CANCEL")return`
      Movement cancelled.
      ${SE(e.source)}
    `;const t=e.destination,n=e.combine;return t?`
      You have dropped the item.
      ${YD(e.source,t)}
    `:n?`
      You have dropped the item.
      ${WD(e.draggableId,e.source,n)}
    `:`
    The item has been dropped while not over a drop area.
    ${SE(e.source)}
  `},mp={dragHandleUsageInstructions:Vot,onDragStart:Got,onDragUpdate:Yot,onDragEnd:Wot};function Xot(e,t){return!!(e===t||Number.isNaN(e)&&Number.isNaN(t))}function XD(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Xot(e[n],t[n]))return!1;return!0}function jt(e,t){const n=B.useState(()=>({inputs:t,result:e()}))[0],a=B.useRef(!0),o=B.useRef(n),l=a.current||!!(t&&o.current.inputs&&XD(t,o.current.inputs))?o.current:{inputs:t,result:e()};return B.useEffect(()=>{a.current=!1,o.current=l},[l]),l.result}function Xe(e,t){return jt(()=>e,t)}const Rn={x:0,y:0},Bn=(e,t)=>({x:e.x+t.x,y:e.y+t.y}),_r=(e,t)=>({x:e.x-t.x,y:e.y-t.y}),xo=(e,t)=>e.x===t.x&&e.y===t.y,nc=e=>({x:e.x!==0?-e.x:0,y:e.y!==0?-e.y:0}),_i=(e,t,n=0)=>e==="x"?{x:t,y:n}:{x:n,y:t},Gu=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2),NE=(e,t)=>Math.min(...t.map(n=>Gu(e,n))),KD=e=>t=>({x:e(t.x),y:e(t.y)});var Kot=(e,t)=>{const n=Sa({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n};const xd=(e,t)=>({top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}),wE=e=>[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}],Qot={top:0,right:0,bottom:0,left:0},Zot=(e,t)=>t?xd(e,t.scroll.diff.displacement):e,Jot=(e,t,n)=>n&&n.increasedBy?{...e,[t.end]:e[t.end]+n.increasedBy[t.line]}:e,eit=(e,t)=>t&&t.shouldClipSubject?Kot(t.pageMarginBox,e):Sa(e);var zl=({page:e,withPlaceholder:t,axis:n,frame:a})=>{const o=Zot(e.marginBox,a),i=Jot(o,n,t),l=eit(i,a);return{page:e,withPlaceholder:t,active:l}},y1=(e,t)=>{e.frame||Le();const n=e.frame,a=_r(t,n.scroll.initial),o=nc(a),i={...n,scroll:{initial:n.scroll.initial,current:t,diff:{value:a,displacement:o},max:n.scroll.max}},l=zl({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return{...e,frame:i,subject:l}};function jn(e,t=XD){let n=null;function a(...o){if(n&&n.lastThis===this&&t(o,n.lastArgs))return n.lastResult;const i=e.apply(this,o);return n={lastResult:i,lastArgs:o,lastThis:this},i}return a.clear=function(){n=null},a}const QD=jn(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),ZD=jn(e=>e.reduce((t,n)=>(t[n.descriptor.id]=n,t),{})),Xh=jn(e=>Object.values(e)),tit=jn(e=>Object.values(e));var rc=jn((e,t)=>tit(t).filter(a=>e===a.descriptor.droppableId).sort((a,o)=>a.descriptor.index-o.descriptor.index));function b1(e){return e.at&&e.at.type==="REORDER"?e.at.destination:null}function Kh(e){return e.at&&e.at.type==="COMBINE"?e.at.combine:null}var Qh=jn((e,t)=>t.filter(n=>n.descriptor.id!==e.descriptor.id)),nit=({isMovingForward:e,draggable:t,destination:n,insideDestination:a,previousImpact:o})=>{if(!n.isCombineEnabled||!b1(o))return null;function l(b){const x={type:"COMBINE",combine:{draggableId:b,droppableId:n.descriptor.id}};return{...o,at:x}}const u=o.displaced.all,d=u.length?u[0]:null;if(e)return d?l(d):null;const f=Qh(t,a);if(!d){if(!f.length)return null;const b=f[f.length-1];return l(b.descriptor.id)}const m=f.findIndex(b=>b.descriptor.id===d);m===-1&&Le();const g=m-1;if(g<0)return null;const y=f[g];return l(y.descriptor.id)},ac=(e,t)=>e.descriptor.droppableId===t.descriptor.id;const JD={point:Rn,value:0},Yu={invisible:{},visible:{},all:[]},rit={displaced:Yu,displacedBy:JD,at:null};var ea=(e,t)=>n=>e<=n&&n<=t,e3=e=>{const t=ea(e.top,e.bottom),n=ea(e.left,e.right);return a=>{if(t(a.top)&&t(a.bottom)&&n(a.left)&&n(a.right))return!0;const i=t(a.top)||t(a.bottom),l=n(a.left)||n(a.right);if(i&&l)return!0;const d=a.top<e.top&&a.bottom>e.bottom,f=a.left<e.left&&a.right>e.right;return d&&f?!0:d&&l||f&&i}},ait=e=>{const t=ea(e.top,e.bottom),n=ea(e.left,e.right);return a=>t(a.top)&&t(a.bottom)&&n(a.left)&&n(a.right)};const v1={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},t3={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"};var sit=e=>t=>{const n=ea(t.top,t.bottom),a=ea(t.left,t.right);return o=>e===v1?n(o.top)&&n(o.bottom):a(o.left)&&a(o.right)};const oit=(e,t)=>{const n=t.frame?t.frame.scroll.diff.displacement:Rn;return xd(e,n)},iit=(e,t,n)=>t.subject.active?n(t.subject.active)(e):!1,lit=(e,t,n)=>n(t)(e),x1=({target:e,destination:t,viewport:n,withDroppableDisplacement:a,isVisibleThroughFrameFn:o})=>{const i=a?oit(e,t):e;return iit(i,t,o)&&lit(i,n,o)},cit=e=>x1({...e,isVisibleThroughFrameFn:e3}),n3=e=>x1({...e,isVisibleThroughFrameFn:ait}),uit=e=>x1({...e,isVisibleThroughFrameFn:sit(e.destination.axis)}),dit=(e,t,n)=>{if(typeof n=="boolean")return n;if(!t)return!0;const{invisible:a,visible:o}=t;if(a[e])return!1;const i=o[e];return i?i.shouldAnimate:!0};function fit(e,t){const n=e.page.marginBox,a={top:t.point.y,right:0,bottom:0,left:t.point.x};return Sa(m1(n,a))}function Wu({afterDragging:e,destination:t,displacedBy:n,viewport:a,forceShouldAnimate:o,last:i}){return e.reduce(function(u,d){const f=fit(d,n),m=d.descriptor.id;if(u.all.push(m),!cit({target:f,destination:t,viewport:a,withDroppableDisplacement:!0}))return u.invisible[d.descriptor.id]=!0,u;const y=dit(m,i,o),b={draggableId:m,shouldAnimate:y};return u.visible[m]=b,u},{all:[],visible:{},invisible:{}})}function pit(e,t){if(!e.length)return 0;const n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function EE({insideDestination:e,inHomeList:t,displacedBy:n,destination:a}){const o=pit(e,{inHomeList:t});return{displaced:Yu,displacedBy:n,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:o}}}}function Xp({draggable:e,insideDestination:t,destination:n,viewport:a,displacedBy:o,last:i,index:l,forceShouldAnimate:u}){const d=ac(e,n);if(l==null)return EE({insideDestination:t,inHomeList:d,displacedBy:o,destination:n});const f=t.find(x=>x.descriptor.index===l);if(!f)return EE({insideDestination:t,inHomeList:d,displacedBy:o,destination:n});const m=Qh(e,t),g=t.indexOf(f),y=m.slice(g);return{displaced:Wu({afterDragging:y,destination:n,displacedBy:o,last:i,viewport:a.frame,forceShouldAnimate:u}),displacedBy:o,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:l}}}}function _o(e,t){return!!t.effected[e]}var hit=({isMovingForward:e,destination:t,draggables:n,combine:a,afterCritical:o})=>{if(!t.isCombineEnabled)return null;const i=a.draggableId,u=n[i].descriptor.index;return _o(i,o)?e?u:u-1:e?u+1:u},mit=({isMovingForward:e,isInHomeList:t,insideDestination:n,location:a})=>{if(!n.length)return null;const o=a.index,i=e?o+1:o-1,l=n[0].descriptor.index,u=n[n.length-1].descriptor.index,d=t?u:u+1;return i<l||i>d?null:i},git=({isMovingForward:e,isInHomeList:t,draggable:n,draggables:a,destination:o,insideDestination:i,previousImpact:l,viewport:u,afterCritical:d})=>{const f=l.at;if(f||Le(),f.type==="REORDER"){const g=mit({isMovingForward:e,isInHomeList:t,location:f.destination,insideDestination:i});return g==null?null:Xp({draggable:n,insideDestination:i,destination:o,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:g})}const m=hit({isMovingForward:e,destination:o,displaced:l.displaced,draggables:a,combine:f.combine,afterCritical:d});return m==null?null:Xp({draggable:n,insideDestination:i,destination:o,viewport:u,last:l.displaced,displacedBy:l.displacedBy,index:m})},yit=({displaced:e,afterCritical:t,combineWith:n,displacedBy:a})=>{const o=!!(e.visible[n]||e.invisible[n]);return _o(n,t)?o?Rn:nc(a.point):o?a.point:Rn},bit=({afterCritical:e,impact:t,draggables:n})=>{const a=Kh(t);a||Le();const o=a.draggableId,i=n[o].page.borderBox.center,l=yit({displaced:t.displaced,afterCritical:e,combineWith:o,displacedBy:t.displacedBy});return Bn(i,l)};const r3=(e,t)=>t.margin[e.start]+t.borderBox[e.size]/2,vit=(e,t)=>t.margin[e.end]+t.borderBox[e.size]/2,C1=(e,t,n)=>t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2,$E=({axis:e,moveRelativeTo:t,isMoving:n})=>_i(e.line,t.marginBox[e.end]+r3(e,n),C1(e,t.marginBox,n)),TE=({axis:e,moveRelativeTo:t,isMoving:n})=>_i(e.line,t.marginBox[e.start]-vit(e,n),C1(e,t.marginBox,n)),xit=({axis:e,moveInto:t,isMoving:n})=>_i(e.line,t.contentBox[e.start]+r3(e,n),C1(e,t.contentBox,n));var Cit=({impact:e,draggable:t,draggables:n,droppable:a,afterCritical:o})=>{const i=rc(a.descriptor.id,n),l=t.page,u=a.axis;if(!i.length)return xit({axis:u,moveInto:a.page,isMoving:l});const{displaced:d,displacedBy:f}=e,m=d.all[0];if(m){const y=n[m];if(_o(m,o))return TE({axis:u,moveRelativeTo:y.page,isMoving:l});const b=Vp(y.page,f.point);return TE({axis:u,moveRelativeTo:b,isMoving:l})}const g=i[i.length-1];if(g.descriptor.id===t.descriptor.id)return l.borderBox.center;if(_o(g.descriptor.id,o)){const y=Vp(g.page,nc(o.displacedBy.point));return $E({axis:u,moveRelativeTo:y,isMoving:l})}return $E({axis:u,moveRelativeTo:g.page,isMoving:l})},z0=(e,t)=>{const n=e.frame;return n?Bn(t,n.scroll.diff.displacement):t};const Sit=({impact:e,draggable:t,droppable:n,draggables:a,afterCritical:o})=>{const i=t.page.borderBox.center,l=e.at;return!n||!l?i:l.type==="REORDER"?Cit({impact:e,draggable:t,draggables:a,droppable:n,afterCritical:o}):bit({impact:e,draggables:a,afterCritical:o})};var Zh=e=>{const t=Sit(e),n=e.droppable;return n?z0(n,t):t},a3=(e,t)=>{const n=_r(t,e.scroll.initial),a=nc(n);return{frame:Sa({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:a}}}};function _E(e,t){return e.map(n=>t[n])}function Nit(e,t){for(let n=0;n<t.length;n++){const a=t[n].visible[e];if(a)return a}return null}var wit=({impact:e,viewport:t,destination:n,draggables:a,maxScrollChange:o})=>{const i=a3(t,Bn(t.scroll.current,o)),l=n.frame?y1(n,Bn(n.frame.scroll.current,o)):n,u=e.displaced,d=Wu({afterDragging:_E(u.all,a),destination:n,displacedBy:e.displacedBy,viewport:i.frame,last:u,forceShouldAnimate:!1}),f=Wu({afterDragging:_E(u.all,a),destination:l,displacedBy:e.displacedBy,viewport:t.frame,last:u,forceShouldAnimate:!1}),m={},g={},y=[u,d,f];return u.all.forEach(x=>{const S=Nit(x,y);if(S){g[x]=S;return}m[x]=!0}),{...e,displaced:{all:u.all,invisible:m,visible:g}}},Eit=(e,t)=>Bn(e.scroll.diff.displacement,t),S1=({pageBorderBoxCenter:e,draggable:t,viewport:n})=>{const a=Eit(n,e),o=_r(a,t.page.borderBox.center);return Bn(t.client.borderBox.center,o)},s3=({draggable:e,destination:t,newPageBorderBoxCenter:n,viewport:a,withDroppableDisplacement:o,onlyOnMainAxis:i=!1})=>{const l=_r(n,e.page.borderBox.center),d={target:xd(e.page.borderBox,l),destination:t,withDroppableDisplacement:o,viewport:a};return i?uit(d):n3(d)},$it=({isMovingForward:e,draggable:t,destination:n,draggables:a,previousImpact:o,viewport:i,previousPageBorderBoxCenter:l,previousClientSelection:u,afterCritical:d})=>{if(!n.isEnabled)return null;const f=rc(n.descriptor.id,a),m=ac(t,n),g=nit({isMovingForward:e,draggable:t,destination:n,insideDestination:f,previousImpact:o})||git({isMovingForward:e,isInHomeList:m,draggable:t,draggables:a,destination:n,insideDestination:f,previousImpact:o,viewport:i,afterCritical:d});if(!g)return null;const y=Zh({impact:g,draggable:t,droppable:n,draggables:a,afterCritical:d});if(s3({draggable:t,destination:n,newPageBorderBoxCenter:y,viewport:i.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:S1({pageBorderBoxCenter:y,draggable:t,viewport:i}),impact:g,scrollJumpRequest:null};const x=_r(y,l),S=wit({impact:g,viewport:i,destination:n,draggables:a,maxScrollChange:x});return{clientSelection:u,impact:S,scrollJumpRequest:x}};const rr=e=>{const t=e.subject.active;return t||Le(),t};var Tit=({isMovingForward:e,pageBorderBoxCenter:t,source:n,droppables:a,viewport:o})=>{const i=n.subject.active;if(!i)return null;const l=n.axis,u=ea(i[l.start],i[l.end]),d=Xh(a).filter(m=>m!==n).filter(m=>m.isEnabled).filter(m=>!!m.subject.active).filter(m=>e3(o.frame)(rr(m))).filter(m=>{const g=rr(m);return e?i[l.crossAxisEnd]<g[l.crossAxisEnd]:g[l.crossAxisStart]<i[l.crossAxisStart]}).filter(m=>{const g=rr(m),y=ea(g[l.start],g[l.end]);return u(g[l.start])||u(g[l.end])||y(i[l.start])||y(i[l.end])}).sort((m,g)=>{const y=rr(m)[l.crossAxisStart],b=rr(g)[l.crossAxisStart];return e?y-b:b-y}).filter((m,g,y)=>rr(m)[l.crossAxisStart]===rr(y[0])[l.crossAxisStart]);if(!d.length)return null;if(d.length===1)return d[0];const f=d.filter(m=>ea(rr(m)[l.start],rr(m)[l.end])(t[l.line]));return f.length===1?f[0]:f.length>1?f.sort((m,g)=>rr(m)[l.start]-rr(g)[l.start])[0]:d.sort((m,g)=>{const y=NE(t,wE(rr(m))),b=NE(t,wE(rr(g)));return y!==b?y-b:rr(m)[l.start]-rr(g)[l.start]})[0]};const AE=(e,t)=>{const n=e.page.borderBox.center;return _o(e.descriptor.id,t)?_r(n,t.displacedBy.point):n},_it=(e,t)=>{const n=e.page.borderBox;return _o(e.descriptor.id,t)?xd(n,nc(t.displacedBy.point)):n};var Ait=({pageBorderBoxCenter:e,viewport:t,destination:n,insideDestination:a,afterCritical:o})=>a.filter(l=>n3({target:_it(l,o),destination:n,viewport:t.frame,withDroppableDisplacement:!0})).sort((l,u)=>{const d=Gu(e,z0(n,AE(l,o))),f=Gu(e,z0(n,AE(u,o)));return d<f?-1:f<d?1:l.descriptor.index-u.descriptor.index})[0]||null,Cd=jn(function(t,n){const a=n[t.line];return{value:a,point:_i(t.line,a)}});const Dit=(e,t,n)=>{const a=e.axis;if(e.descriptor.mode==="virtual")return _i(a.line,t[a.line]);const o=e.subject.page.contentBox[a.size],d=rc(e.descriptor.id,n).reduce((f,m)=>f+m.client.marginBox[a.size],0)+t[a.line]-o;return d<=0?null:_i(a.line,d)},o3=(e,t)=>({...e,scroll:{...e.scroll,max:t}}),i3=(e,t,n)=>{const a=e.frame;ac(t,e)&&Le(),e.subject.withPlaceholder&&Le();const o=Cd(e.axis,t.displaceBy).point,i=Dit(e,o,n),l={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!a){const m=zl({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:e.frame});return{...e,subject:m}}const u=i?Bn(a.scroll.max,i):a.scroll.max,d=o3(a,u),f=zl({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:d});return{...e,subject:f,frame:d}},jit=e=>{const t=e.subject.withPlaceholder;t||Le();const n=e.frame;if(!n){const l=zl({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return{...e,subject:l}}const a=t.oldFrameMaxScroll;a||Le();const o=o3(n,a),i=zl({page:e.subject.page,axis:e.axis,frame:o,withPlaceholder:null});return{...e,subject:i,frame:o}};var Rit=({previousPageBorderBoxCenter:e,moveRelativeTo:t,insideDestination:n,draggable:a,draggables:o,destination:i,viewport:l,afterCritical:u})=>{if(!t){if(n.length)return null;const g={displaced:Yu,displacedBy:JD,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:0}}},y=Zh({impact:g,draggable:a,droppable:i,draggables:o,afterCritical:u}),b=ac(a,i)?i:i3(i,a,o);return s3({draggable:a,destination:b,newPageBorderBoxCenter:y,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?g:null}const d=e[i.axis.line]<=t.page.borderBox.center[i.axis.line],f=(()=>{const g=t.descriptor.index;return t.descriptor.id===a.descriptor.id||d?g:g+1})(),m=Cd(i.axis,a.displaceBy);return Xp({draggable:a,insideDestination:n,destination:i,viewport:l,displacedBy:m,last:Yu,index:f})},Oit=({isMovingForward:e,previousPageBorderBoxCenter:t,draggable:n,isOver:a,draggables:o,droppables:i,viewport:l,afterCritical:u})=>{const d=Tit({isMovingForward:e,pageBorderBoxCenter:t,source:a,droppables:i,viewport:l});if(!d)return null;const f=rc(d.descriptor.id,o),m=Ait({pageBorderBoxCenter:t,viewport:l,destination:d,insideDestination:f,afterCritical:u}),g=Rit({previousPageBorderBoxCenter:t,destination:d,draggable:n,draggables:o,moveRelativeTo:m,insideDestination:f,viewport:l,afterCritical:u});if(!g)return null;const y=Zh({impact:g,draggable:n,droppable:d,draggables:o,afterCritical:u});return{clientSelection:S1({pageBorderBoxCenter:y,draggable:n,viewport:l}),impact:g,scrollJumpRequest:null}},Dr=e=>{const t=e.at;return t?t.type==="REORDER"?t.destination.droppableId:t.combine.droppableId:null};const Iit=(e,t)=>{const n=Dr(e);return n?t[n]:null};var kit=({state:e,type:t})=>{const n=Iit(e.impact,e.dimensions.droppables),a=!!n,o=e.dimensions.droppables[e.critical.droppable.id],i=n||o,l=i.axis.direction,u=l==="vertical"&&(t==="MOVE_UP"||t==="MOVE_DOWN")||l==="horizontal"&&(t==="MOVE_LEFT"||t==="MOVE_RIGHT");if(u&&!a)return null;const d=t==="MOVE_DOWN"||t==="MOVE_RIGHT",f=e.dimensions.draggables[e.critical.draggable.id],m=e.current.page.borderBoxCenter,{draggables:g,droppables:y}=e.dimensions;return u?$it({isMovingForward:d,previousPageBorderBoxCenter:m,draggable:f,destination:i,draggables:g,viewport:e.viewport,previousClientSelection:e.current.client.selection,previousImpact:e.impact,afterCritical:e.afterCritical}):Oit({isMovingForward:d,previousPageBorderBoxCenter:m,draggable:f,isOver:i,draggables:g,droppables:y,viewport:e.viewport,afterCritical:e.afterCritical})};function ui(e){return e.phase==="DRAGGING"||e.phase==="COLLECTING"}function l3(e){const t=ea(e.top,e.bottom),n=ea(e.left,e.right);return function(o){return t(o.y)&&n(o.x)}}function Mit(e,t){return e.left<t.right&&e.right>t.left&&e.top<t.bottom&&e.bottom>t.top}function Pit({pageBorderBox:e,draggable:t,candidates:n}){const a=t.page.borderBox.center,o=n.map(i=>{const l=i.axis,u=_i(i.axis.line,e.center[l.line],i.page.borderBox.center[l.crossAxisLine]);return{id:i.descriptor.id,distance:Gu(a,u)}}).sort((i,l)=>l.distance-i.distance);return o[0]?o[0].id:null}function Lit({pageBorderBox:e,draggable:t,droppables:n}){const a=Xh(n).filter(o=>{if(!o.isEnabled)return!1;const i=o.subject.active;if(!i||!Mit(e,i))return!1;if(l3(i)(e.center))return!0;const l=o.axis,u=i.center[l.crossAxisLine],d=e[l.crossAxisStart],f=e[l.crossAxisEnd],m=ea(i[l.crossAxisStart],i[l.crossAxisEnd]),g=m(d),y=m(f);return!g&&!y?!0:g?d<u:f>u});return a.length?a.length===1?a[0].descriptor.id:Pit({pageBorderBox:e,draggable:t,candidates:a}):null}const c3=(e,t)=>Sa(xd(e,t));var Bit=(e,t)=>{const n=e.frame;return n?c3(t,n.scroll.diff.value):t};function u3({displaced:e,id:t}){return!!(e.visible[t]||e.invisible[t])}function qit({draggable:e,closest:t,inHomeList:n}){return t?n&&t.descriptor.index>e.descriptor.index?t.descriptor.index-1:t.descriptor.index:null}var Fit=({pageBorderBoxWithDroppableScroll:e,draggable:t,destination:n,insideDestination:a,last:o,viewport:i,afterCritical:l})=>{const u=n.axis,d=Cd(n.axis,t.displaceBy),f=d.value,m=e[u.start],g=e[u.end],b=Qh(t,a).find(S=>{const w=S.descriptor.id,N=S.page.borderBox.center[u.line],T=_o(w,l),A=u3({displaced:o,id:w});return T?A?g<=N:m<N-f:A?g<=N+f:m<N})||null,x=qit({draggable:t,closest:b,inHomeList:ac(t,n)});return Xp({draggable:t,insideDestination:a,destination:n,viewport:i,last:o,displacedBy:d,index:x})};const zit=4;var Hit=({draggable:e,pageBorderBoxWithDroppableScroll:t,previousImpact:n,destination:a,insideDestination:o,afterCritical:i})=>{if(!a.isCombineEnabled)return null;const l=a.axis,u=Cd(a.axis,e.displaceBy),d=u.value,f=t[l.start],m=t[l.end],y=Qh(e,o).find(x=>{const S=x.descriptor.id,w=x.page.borderBox,T=w[l.size]/zit,A=_o(S,i),R=u3({displaced:n.displaced,id:S});return A?R?m>w[l.start]+T&&m<w[l.end]-T:f>w[l.start]-d+T&&f<w[l.end]-d-T:R?m>w[l.start]+d+T&&m<w[l.end]+d-T:f>w[l.start]+T&&f<w[l.end]-T});return y?{displacedBy:u,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:y.descriptor.id,droppableId:a.descriptor.id}}}:null},d3=({pageOffset:e,draggable:t,draggables:n,droppables:a,previousImpact:o,viewport:i,afterCritical:l})=>{const u=c3(t.page.borderBox,e),d=Lit({pageBorderBox:u,draggable:t,droppables:a});if(!d)return rit;const f=a[d],m=rc(f.descriptor.id,n),g=Bit(f,u);return Hit({pageBorderBoxWithDroppableScroll:g,draggable:t,previousImpact:o,destination:f,insideDestination:m,afterCritical:l})||Fit({pageBorderBoxWithDroppableScroll:g,draggable:t,destination:f,insideDestination:m,last:o.displaced,viewport:i,afterCritical:l})},N1=(e,t)=>({...e,[t.descriptor.id]:t});const Uit=({previousImpact:e,impact:t,droppables:n})=>{const a=Dr(e),o=Dr(t);if(!a||a===o)return n;const i=n[a];if(!i.subject.withPlaceholder)return n;const l=jit(i);return N1(n,l)};var Vit=({draggable:e,draggables:t,droppables:n,previousImpact:a,impact:o})=>{const i=Uit({previousImpact:a,impact:o,droppables:n}),l=Dr(o);if(!l)return i;const u=n[l];if(ac(e,u)||u.subject.withPlaceholder)return i;const d=i3(u,e,t);return N1(i,d)},$u=({state:e,clientSelection:t,dimensions:n,viewport:a,impact:o,scrollJumpRequest:i})=>{const l=a||e.viewport,u=n||e.dimensions,d=t||e.current.client.selection,f=_r(d,e.initial.client.selection),m={offset:f,selection:d,borderBoxCenter:Bn(e.initial.client.borderBoxCenter,f)},g={selection:Bn(m.selection,l.scroll.current),borderBoxCenter:Bn(m.borderBoxCenter,l.scroll.current),offset:Bn(m.offset,l.scroll.diff.value)},y={client:m,page:g};if(e.phase==="COLLECTING")return{...e,dimensions:u,viewport:l,current:y};const b=u.draggables[e.critical.draggable.id],x=o||d3({pageOffset:g.offset,draggable:b,draggables:u.draggables,droppables:u.droppables,previousImpact:e.impact,viewport:l,afterCritical:e.afterCritical}),S=Vit({draggable:b,impact:x,previousImpact:e.impact,draggables:u.draggables,droppables:u.droppables});return{...e,current:y,dimensions:{draggables:u.draggables,droppables:S},impact:x,viewport:l,scrollJumpRequest:i||null,forceShouldAnimate:i?!1:null}};function Git(e,t){return e.map(n=>t[n])}var f3=({impact:e,viewport:t,draggables:n,destination:a,forceShouldAnimate:o})=>{const i=e.displaced,l=Git(i.all,n),u=Wu({afterDragging:l,destination:a,displacedBy:e.displacedBy,viewport:t.frame,forceShouldAnimate:o,last:i});return{...e,displaced:u}},p3=({impact:e,draggable:t,droppable:n,draggables:a,viewport:o,afterCritical:i})=>{const l=Zh({impact:e,draggable:t,draggables:a,droppable:n,afterCritical:i});return S1({pageBorderBoxCenter:l,draggable:t,viewport:o})},h3=({state:e,dimensions:t,viewport:n})=>{e.movementMode!=="SNAP"&&Le();const a=e.impact,o=n||e.viewport,i=t||e.dimensions,{draggables:l,droppables:u}=i,d=l[e.critical.draggable.id],f=Dr(a);f||Le();const m=u[f],g=f3({impact:a,viewport:o,destination:m,draggables:l}),y=p3({impact:g,draggable:d,droppable:m,draggables:l,viewport:o,afterCritical:e.afterCritical});return $u({impact:g,clientSelection:y,state:e,dimensions:i,viewport:o})},Yit=e=>({index:e.index,droppableId:e.droppableId}),m3=({draggable:e,home:t,draggables:n,viewport:a})=>{const o=Cd(t.axis,e.displaceBy),i=rc(t.descriptor.id,n),l=i.indexOf(e);l===-1&&Le();const u=i.slice(l+1),d=u.reduce((y,b)=>(y[b.descriptor.id]=!0,y),{}),f={inVirtualList:t.descriptor.mode==="virtual",displacedBy:o,effected:d};return{impact:{displaced:Wu({afterDragging:u,destination:t,displacedBy:o,last:null,viewport:a.frame,forceShouldAnimate:!1}),displacedBy:o,at:{type:"REORDER",destination:Yit(e.descriptor)}},afterCritical:f}},Wit=(e,t)=>({draggables:e.draggables,droppables:N1(e.droppables,t)}),Xit=({draggable:e,offset:t,initialWindowScroll:n})=>{const a=Vp(e.client,t),o=Gp(a,n);return{...e,placeholder:{...e.placeholder,client:a},client:a,page:o}},Kit=e=>{const t=e.frame;return t||Le(),t},Qit=({additions:e,updatedDroppables:t,viewport:n})=>{const a=n.scroll.diff.value;return e.map(o=>{const i=o.descriptor.droppableId,l=t[i],d=Kit(l).scroll.diff.value,f=Bn(a,d);return Xit({draggable:o,offset:f,initialWindowScroll:n.scroll.initial})})},Zit=({state:e,published:t})=>{const n=t.modified.map(N=>{const T=e.dimensions.droppables[N.droppableId];return y1(T,N.scroll)}),a={...e.dimensions.droppables,...QD(n)},o=ZD(Qit({additions:t.additions,updatedDroppables:a,viewport:e.viewport})),i={...e.dimensions.draggables,...o};t.removals.forEach(N=>{delete i[N]});const l={droppables:a,draggables:i},u=Dr(e.impact),d=u?l.droppables[u]:null,f=l.draggables[e.critical.draggable.id],m=l.droppables[e.critical.droppable.id],{impact:g,afterCritical:y}=m3({draggable:f,home:m,draggables:i,viewport:e.viewport}),b=d&&d.isCombineEnabled?e.impact:g,x=d3({pageOffset:e.current.page.offset,draggable:l.draggables[e.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:b,viewport:e.viewport,afterCritical:y}),S={...e,phase:"DRAGGING",impact:x,onLiftImpact:g,dimensions:l,afterCritical:y,forceShouldAnimate:!1};return e.phase==="COLLECTING"?S:{...S,phase:"DROP_PENDING",reason:e.reason,isWaiting:!1}};const H0=e=>e.movementMode==="SNAP",Ob=(e,t,n)=>{const a=Wit(e.dimensions,t);return!H0(e)||n?$u({state:e,dimensions:a}):h3({state:e,dimensions:a})};function Ib(e){return e.isDragging&&e.movementMode==="SNAP"?{...e,scrollJumpRequest:null}:e}const DE={phase:"IDLE",completed:null,shouldFlush:!1};var Jit=(e=DE,t)=>{if(t.type==="FLUSH")return{...DE,shouldFlush:!0};if(t.type==="INITIAL_PUBLISH"){e.phase!=="IDLE"&&Le();const{critical:n,clientSelection:a,viewport:o,dimensions:i,movementMode:l}=t.payload,u=i.draggables[n.draggable.id],d=i.droppables[n.droppable.id],f={selection:a,borderBoxCenter:u.client.borderBox.center,offset:Rn},m={client:f,page:{selection:Bn(f.selection,o.scroll.initial),borderBoxCenter:Bn(f.selection,o.scroll.initial),offset:Bn(f.selection,o.scroll.diff.value)}},g=Xh(i.droppables).every(S=>!S.isFixedOnPage),{impact:y,afterCritical:b}=m3({draggable:u,home:d,draggables:i.draggables,viewport:o});return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:l,dimensions:i,initial:m,current:m,isWindowScrollAllowed:g,impact:y,afterCritical:b,onLiftImpact:y,viewport:o,scrollJumpRequest:null,forceShouldAnimate:null}}if(t.type==="COLLECTION_STARTING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"?e:(e.phase!=="DRAGGING"&&Le(),{...e,phase:"COLLECTING"});if(t.type==="PUBLISH_WHILE_DRAGGING")return e.phase==="COLLECTING"||e.phase==="DROP_PENDING"||Le(),Zit({state:e,published:t.payload});if(t.type==="MOVE"){if(e.phase==="DROP_PENDING")return e;ui(e)||Le();const{client:n}=t.payload;return xo(n,e.current.client.selection)?e:$u({state:e,clientSelection:n,impact:H0(e)?e.impact:null})}if(t.type==="UPDATE_DROPPABLE_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="COLLECTING")return Ib(e);ui(e)||Le();const{id:n,newScroll:a}=t.payload,o=e.dimensions.droppables[n];if(!o)return e;const i=y1(o,a);return Ob(e,i,!1)}if(t.type==="UPDATE_DROPPABLE_IS_ENABLED"){if(e.phase==="DROP_PENDING")return e;ui(e)||Le();const{id:n,isEnabled:a}=t.payload,o=e.dimensions.droppables[n];o||Le(),o.isEnabled===a&&Le();const i={...o,isEnabled:a};return Ob(e,i,!0)}if(t.type==="UPDATE_DROPPABLE_IS_COMBINE_ENABLED"){if(e.phase==="DROP_PENDING")return e;ui(e)||Le();const{id:n,isCombineEnabled:a}=t.payload,o=e.dimensions.droppables[n];o||Le(),o.isCombineEnabled===a&&Le();const i={...o,isCombineEnabled:a};return Ob(e,i,!0)}if(t.type==="MOVE_BY_WINDOW_SCROLL"){if(e.phase==="DROP_PENDING"||e.phase==="DROP_ANIMATING")return e;ui(e)||Le(),e.isWindowScrollAllowed||Le();const n=t.payload.newScroll;if(xo(e.viewport.scroll.current,n))return Ib(e);const a=a3(e.viewport,n);return H0(e)?h3({state:e,viewport:a}):$u({state:e,viewport:a})}if(t.type==="UPDATE_VIEWPORT_MAX_SCROLL"){if(!ui(e))return e;const n=t.payload.maxScroll;if(xo(n,e.viewport.scroll.max))return e;const a={...e.viewport,scroll:{...e.viewport.scroll,max:n}};return{...e,viewport:a}}if(t.type==="MOVE_UP"||t.type==="MOVE_DOWN"||t.type==="MOVE_LEFT"||t.type==="MOVE_RIGHT"){if(e.phase==="COLLECTING"||e.phase==="DROP_PENDING")return e;e.phase!=="DRAGGING"&&Le();const n=kit({state:e,type:t.type});return n?$u({state:e,impact:n.impact,clientSelection:n.clientSelection,scrollJumpRequest:n.scrollJumpRequest}):e}if(t.type==="DROP_PENDING"){const n=t.payload.reason;return e.phase!=="COLLECTING"&&Le(),{...e,phase:"DROP_PENDING",isWaiting:!0,reason:n}}if(t.type==="DROP_ANIMATE"){const{completed:n,dropDuration:a,newHomeClientOffset:o}=t.payload;return e.phase==="DRAGGING"||e.phase==="DROP_PENDING"||Le(),{phase:"DROP_ANIMATING",completed:n,dropDuration:a,newHomeClientOffset:o,dimensions:e.dimensions}}if(t.type==="DROP_COMPLETE"){const{completed:n}=t.payload;return{phase:"IDLE",completed:n,shouldFlush:!1}}return e};function qt(e,t){return e instanceof Object&&"type"in e&&e.type===t}const elt=e=>({type:"BEFORE_INITIAL_CAPTURE",payload:e}),tlt=e=>({type:"LIFT",payload:e}),nlt=e=>({type:"INITIAL_PUBLISH",payload:e}),rlt=e=>({type:"PUBLISH_WHILE_DRAGGING",payload:e}),alt=()=>({type:"COLLECTION_STARTING",payload:null}),slt=e=>({type:"UPDATE_DROPPABLE_SCROLL",payload:e}),olt=e=>({type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}),ilt=e=>({type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}),g3=e=>({type:"MOVE",payload:e}),llt=e=>({type:"MOVE_BY_WINDOW_SCROLL",payload:e}),clt=e=>({type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}),ult=()=>({type:"MOVE_UP",payload:null}),dlt=()=>({type:"MOVE_DOWN",payload:null}),flt=()=>({type:"MOVE_RIGHT",payload:null}),plt=()=>({type:"MOVE_LEFT",payload:null}),w1=()=>({type:"FLUSH",payload:null}),hlt=e=>({type:"DROP_ANIMATE",payload:e}),E1=e=>({type:"DROP_COMPLETE",payload:e}),y3=e=>({type:"DROP",payload:e}),mlt=e=>({type:"DROP_PENDING",payload:e}),b3=()=>({type:"DROP_ANIMATION_FINISHED",payload:null});var glt=e=>({getState:t,dispatch:n})=>a=>o=>{if(!qt(o,"LIFT")){a(o);return}const{id:i,clientSelection:l,movementMode:u}=o.payload,d=t();d.phase==="DROP_ANIMATING"&&n(E1({completed:d.completed})),t().phase!=="IDLE"&&Le(),n(w1()),n(elt({draggableId:i,movementMode:u}));const m={draggableId:i,scrollOptions:{shouldPublishImmediately:u==="SNAP"}},{critical:g,dimensions:y,viewport:b}=e.startPublishing(m);n(nlt({critical:g,dimensions:y,clientSelection:l,movementMode:u,viewport:b}))},ylt=e=>()=>t=>n=>{qt(n,"INITIAL_PUBLISH")&&e.dragging(),qt(n,"DROP_ANIMATE")&&e.dropping(n.payload.completed.result.reason),(qt(n,"FLUSH")||qt(n,"DROP_COMPLETE"))&&e.resting(),t(n)};const $1={outOfTheWay:"cubic-bezier(0.2, 0, 0, 1)",drop:"cubic-bezier(.2,1,.1,1)"},Xu={opacity:{drop:0,combining:.7},scale:{drop:.75}},v3={outOfTheWay:.2,minDropTime:.33,maxDropTime:.55},si=`${v3.outOfTheWay}s ${$1.outOfTheWay}`,Tu={fluid:`opacity ${si}`,snap:`transform ${si}, opacity ${si}`,drop:e=>{const t=`${e}s ${$1.drop}`;return`transform ${t}, opacity ${t}`},outOfTheWay:`transform ${si}`,placeholder:`height ${si}, width ${si}, margin ${si}`},jE=e=>xo(e,Rn)?void 0:`translate(${e.x}px, ${e.y}px)`,U0={moveTo:jE,drop:(e,t)=>{const n=jE(e);if(n)return t?`${n} scale(${Xu.scale.drop})`:n}},{minDropTime:V0,maxDropTime:x3}=v3,blt=x3-V0,RE=1500,vlt=.6;var xlt=({current:e,destination:t,reason:n})=>{const a=Gu(e,t);if(a<=0)return V0;if(a>=RE)return x3;const o=a/RE,i=V0+blt*o,l=n==="CANCEL"?i*vlt:i;return Number(l.toFixed(2))},Clt=({impact:e,draggable:t,dimensions:n,viewport:a,afterCritical:o})=>{const{draggables:i,droppables:l}=n,u=Dr(e),d=u?l[u]:null,f=l[t.descriptor.droppableId],m=p3({impact:e,draggable:t,draggables:i,afterCritical:o,droppable:d||f,viewport:a});return _r(m,t.client.borderBox.center)},Slt=({draggables:e,reason:t,lastImpact:n,home:a,viewport:o,onLiftImpact:i})=>!n.at||t!=="DROP"?{impact:f3({draggables:e,impact:i,destination:a,viewport:o,forceShouldAnimate:!0}),didDropInsideDroppable:!1}:n.at.type==="REORDER"?{impact:n,didDropInsideDroppable:!0}:{impact:{...n,displaced:Yu},didDropInsideDroppable:!0};const Nlt=({getState:e,dispatch:t})=>n=>a=>{if(!qt(a,"DROP")){n(a);return}const o=e(),i=a.payload.reason;if(o.phase==="COLLECTING"){t(mlt({reason:i}));return}if(o.phase==="IDLE")return;o.phase==="DROP_PENDING"&&o.isWaiting&&Le(),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||Le();const u=o.critical,d=o.dimensions,f=d.draggables[o.critical.draggable.id],{impact:m,didDropInsideDroppable:g}=Slt({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),y=g?b1(m):null,b=g?Kh(m):null,x={index:u.draggable.index,droppableId:u.droppable.id},S={draggableId:f.descriptor.id,type:f.descriptor.type,source:x,reason:i,mode:o.movementMode,destination:y,combine:b},w=Clt({impact:m,draggable:f,dimensions:d,viewport:o.viewport,afterCritical:o.afterCritical}),N={critical:o.critical,afterCritical:o.afterCritical,result:S,impact:m};if(!(!xo(o.current.client.offset,w)||!!S.combine)){t(E1({completed:N}));return}const A=xlt({current:o.current.client.offset,destination:w,reason:i});t(hlt({newHomeClientOffset:w,dropDuration:A,completed:N}))};var C3=()=>({x:window.pageXOffset,y:window.pageYOffset});function wlt(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:t=>{t.target!==window&&t.target!==window.document||e()}}}function Elt({onWindowScroll:e}){function t(){e(C3())}const n=Vu(t),a=wlt(n);let o=vo;function i(){return o!==vo}function l(){i()&&Le(),o=Qr(window,[a])}function u(){i()||Le(),n.cancel(),o(),o=vo}return{start:l,stop:u,isActive:i}}const $lt=e=>qt(e,"DROP_COMPLETE")||qt(e,"DROP_ANIMATE")||qt(e,"FLUSH"),Tlt=e=>{const t=Elt({onWindowScroll:n=>{e.dispatch(llt({newScroll:n}))}});return n=>a=>{!t.isActive()&&qt(a,"INITIAL_PUBLISH")&&t.start(),t.isActive()&&$lt(a)&&t.stop(),n(a)}};var _lt=e=>{let t=!1,n=!1;const a=setTimeout(()=>{n=!0}),o=i=>{t||n||(t=!0,e(i),clearTimeout(a))};return o.wasCalled=()=>t,o},Alt=()=>{const e=[],t=o=>{const i=e.findIndex(u=>u.timerId===o);i===-1&&Le();const[l]=e.splice(i,1);l.callback()};return{add:o=>{const i=setTimeout(()=>t(i)),l={timerId:i,callback:o};e.push(l)},flush:()=>{if(!e.length)return;const o=[...e];e.length=0,o.forEach(i=>{clearTimeout(i.timerId),i.callback()})}}};const Dlt=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.droppableId===t.droppableId&&e.index===t.index,jlt=(e,t)=>e==null&&t==null?!0:e==null||t==null?!1:e.draggableId===t.draggableId&&e.droppableId===t.droppableId,Rlt=(e,t)=>{if(e===t)return!0;const n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,a=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&a},lu=(e,t)=>{t()},Zf=(e,t)=>({draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t});function kb(e,t,n,a){if(!e){n(a(t));return}const o=_lt(n);e(t,{announce:o}),o.wasCalled()||n(a(t))}var Olt=(e,t)=>{const n=Alt();let a=null;const o=(g,y)=>{a&&Le(),lu("onBeforeCapture",()=>{const b=e().onBeforeCapture;b&&b({draggableId:g,mode:y})})},i=(g,y)=>{a&&Le(),lu("onBeforeDragStart",()=>{const b=e().onBeforeDragStart;b&&b(Zf(g,y))})},l=(g,y)=>{a&&Le();const b=Zf(g,y);a={mode:y,lastCritical:g,lastLocation:b.source,lastCombine:null},n.add(()=>{lu("onDragStart",()=>kb(e().onDragStart,b,t,mp.onDragStart))})},u=(g,y)=>{const b=b1(y),x=Kh(y);a||Le();const S=!Rlt(g,a.lastCritical);S&&(a.lastCritical=g);const w=!Dlt(a.lastLocation,b);w&&(a.lastLocation=b);const N=!jlt(a.lastCombine,x);if(N&&(a.lastCombine=x),!S&&!w&&!N)return;const T={...Zf(g,a.mode),combine:x,destination:b};n.add(()=>{lu("onDragUpdate",()=>kb(e().onDragUpdate,T,t,mp.onDragUpdate))})},d=()=>{a||Le(),n.flush()},f=g=>{a||Le(),a=null,lu("onDragEnd",()=>kb(e().onDragEnd,g,t,mp.onDragEnd))};return{beforeCapture:o,beforeStart:i,start:l,update:u,flush:d,drop:f,abort:()=>{if(!a)return;const g={...Zf(a.lastCritical,a.mode),combine:null,destination:null,reason:"CANCEL"};f(g)}}},Ilt=(e,t)=>{const n=Olt(e,t);return a=>o=>i=>{if(qt(i,"BEFORE_INITIAL_CAPTURE")){n.beforeCapture(i.payload.draggableId,i.payload.movementMode);return}if(qt(i,"INITIAL_PUBLISH")){const u=i.payload.critical;n.beforeStart(u,i.payload.movementMode),o(i),n.start(u,i.payload.movementMode);return}if(qt(i,"DROP_COMPLETE")){const u=i.payload.completed.result;n.flush(),o(i),n.drop(u);return}if(o(i),qt(i,"FLUSH")){n.abort();return}const l=a.getState();l.phase==="DRAGGING"&&n.update(l.critical,l.impact)}};const klt=e=>t=>n=>{if(!qt(n,"DROP_ANIMATION_FINISHED")){t(n);return}const a=e.getState();a.phase!=="DROP_ANIMATING"&&Le(),e.dispatch(E1({completed:a.completed}))},Mlt=e=>{let t=null,n=null;function a(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return o=>i=>{if((qt(i,"FLUSH")||qt(i,"DROP_COMPLETE")||qt(i,"DROP_ANIMATION_FINISHED"))&&a(),o(i),!qt(i,"DROP_ANIMATE"))return;const l={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){e.getState().phase==="DROP_ANIMATING"&&e.dispatch(b3())}};n=requestAnimationFrame(()=>{n=null,t=Qr(window,[l])})}};var Plt=e=>()=>t=>n=>{(qt(n,"DROP_COMPLETE")||qt(n,"FLUSH")||qt(n,"DROP_ANIMATE"))&&e.stopPublishing(),t(n)},Llt=e=>{let t=!1;return()=>n=>a=>{if(qt(a,"INITIAL_PUBLISH")){t=!0,e.tryRecordFocus(a.payload.critical.draggable.id),n(a),e.tryRestoreFocusRecorded();return}if(n(a),!!t){if(qt(a,"FLUSH")){t=!1,e.tryRestoreFocusRecorded();return}if(qt(a,"DROP_COMPLETE")){t=!1;const o=a.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}};const Blt=e=>qt(e,"DROP_COMPLETE")||qt(e,"DROP_ANIMATE")||qt(e,"FLUSH");var qlt=e=>t=>n=>a=>{if(Blt(a)){e.stop(),n(a);return}if(qt(a,"INITIAL_PUBLISH")){n(a);const o=t.getState();o.phase!=="DRAGGING"&&Le(),e.start(o);return}n(a),e.scroll(t.getState())};const Flt=e=>t=>n=>{if(t(n),!qt(n,"PUBLISH_WHILE_DRAGGING"))return;const a=e.getState();a.phase==="DROP_PENDING"&&(a.isWaiting||e.dispatch(y3({reason:a.reason})))},zlt=Fu;var Hlt=({dimensionMarshal:e,focusMarshal:t,styleMarshal:n,getResponders:a,announce:o,autoScroller:i})=>d1(Jit,zlt(_D(ylt(n),Plt(e),glt(e),Nlt,klt,Mlt,Flt,qlt(i),Tlt,Llt(t),Ilt(a,o))));const Mb=()=>({additions:{},removals:{},modified:{}});function Ult({registry:e,callbacks:t}){let n=Mb(),a=null;const o=()=>{a||(t.collectionStarting(),a=requestAnimationFrame(()=>{a=null;const{additions:d,removals:f,modified:m}=n,g=Object.keys(d).map(x=>e.draggable.getById(x).getDimension(Rn)).sort((x,S)=>x.descriptor.index-S.descriptor.index),y=Object.keys(m).map(x=>{const w=e.droppable.getById(x).callbacks.getScrollWhileDragging();return{droppableId:x,scroll:w}}),b={additions:g,removals:Object.keys(f),modified:y};n=Mb(),t.publish(b)}))};return{add:d=>{const f=d.descriptor.id;n.additions[f]=d,n.modified[d.descriptor.droppableId]=!0,n.removals[f]&&delete n.removals[f],o()},remove:d=>{const f=d.descriptor;n.removals[f.id]=!0,n.modified[f.droppableId]=!0,n.additions[f.id]&&delete n.additions[f.id],o()},stop:()=>{a&&(cancelAnimationFrame(a),a=null,n=Mb())}}}var S3=({scrollHeight:e,scrollWidth:t,height:n,width:a})=>{const o=_r({x:t,y:e},{x:a,y:n});return{x:Math.max(0,o.x),y:Math.max(0,o.y)}},N3=()=>{const e=document.documentElement;return e||Le(),e},w3=()=>{const e=N3();return S3({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},Vlt=()=>{const e=C3(),t=w3(),n=e.y,a=e.x,o=N3(),i=o.clientWidth,l=o.clientHeight,u=a+i,d=n+l;return{frame:Sa({top:n,left:a,right:u,bottom:d}),scroll:{initial:e,current:e,max:t,diff:{value:Rn,displacement:Rn}}}},Glt=({critical:e,scrollOptions:t,registry:n})=>{const a=Vlt(),o=a.scroll.current,i=e.droppable,l=n.droppable.getAllByType(i.type).map(m=>m.callbacks.getDimensionAndWatchScroll(o,t)),u=n.draggable.getAllByType(e.draggable.type).map(m=>m.getDimension(o));return{dimensions:{draggables:ZD(u),droppables:QD(l)},critical:e,viewport:a}};function OE(e,t,n){return!(n.descriptor.id===t.id||n.descriptor.type!==t.type||e.droppable.getById(n.descriptor.droppableId).descriptor.mode!=="virtual")}var Ylt=(e,t)=>{let n=null;const a=Ult({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=(y,b)=>{e.droppable.exists(y)||Le(),n&&t.updateDroppableIsEnabled({id:y,isEnabled:b})},i=(y,b)=>{n&&(e.droppable.exists(y)||Le(),t.updateDroppableIsCombineEnabled({id:y,isCombineEnabled:b}))},l=(y,b)=>{n&&(e.droppable.exists(y)||Le(),t.updateDroppableScroll({id:y,newScroll:b}))},u=(y,b)=>{n&&e.droppable.getById(y).callbacks.scroll(b)},d=()=>{if(!n)return;a.stop();const y=n.critical.droppable;e.droppable.getAllByType(y.type).forEach(b=>b.callbacks.dragStopped()),n.unsubscribe(),n=null},f=y=>{n||Le();const b=n.critical.draggable;y.type==="ADDITION"&&OE(e,b,y.value)&&a.add(y.value),y.type==="REMOVAL"&&OE(e,b,y.value)&&a.remove(y.value)};return{updateDroppableIsEnabled:o,updateDroppableIsCombineEnabled:i,scrollDroppable:u,updateDroppableScroll:l,startPublishing:y=>{n&&Le();const b=e.draggable.getById(y.draggableId),x=e.droppable.getById(b.descriptor.droppableId),S={draggable:b.descriptor,droppable:x.descriptor},w=e.subscribe(f);return n={critical:S,unsubscribe:w},Glt({critical:S,registry:e,scrollOptions:y.scrollOptions})},stopPublishing:d}},E3=(e,t)=>e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP",Wlt=e=>{window.scrollBy(e.x,e.y)};const Xlt=jn(e=>Xh(e).filter(t=>!(!t.isEnabled||!t.frame))),Klt=(e,t)=>Xlt(t).find(a=>(a.frame||Le(),l3(a.frame.pageMarginBox)(e)))||null;var Qlt=({center:e,destination:t,droppables:n})=>{if(t){const o=n[t];return o.frame?o:null}return Klt(e,n)};const Ku={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:e=>e**2,durationDampening:{stopDampeningAt:1200,accelerateAt:360},disabled:!1};var Zlt=(e,t,n=()=>Ku)=>{const a=n(),o=e[t.size]*a.startFromPercentage,i=e[t.size]*a.maxScrollAtPercentage;return{startScrollingFrom:o,maxScrollValueAt:i}},$3=({startOfRange:e,endOfRange:t,current:n})=>{const a=t-e;return a===0?0:(n-e)/a},T1=1,Jlt=(e,t,n=()=>Ku)=>{const a=n();if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return a.maxPixelScroll;if(e===t.startScrollingFrom)return T1;const i=1-$3({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),l=a.maxPixelScroll*a.ease(i);return Math.ceil(l)},ect=(e,t,n)=>{const a=n(),o=a.durationDampening.accelerateAt,i=a.durationDampening.stopDampeningAt,l=t,u=i,f=Date.now()-l;if(f>=i)return e;if(f<o)return T1;const m=$3({startOfRange:o,endOfRange:u,current:f}),g=e*a.ease(m);return Math.ceil(g)},IE=({distanceToEdge:e,thresholds:t,dragStartTime:n,shouldUseTimeDampening:a,getAutoScrollerOptions:o})=>{const i=Jlt(e,t,o);return i===0?0:a?Math.max(ect(i,n,o),T1):i},kE=({container:e,distanceToEdges:t,dragStartTime:n,axis:a,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const l=Zlt(e,a,i);return t[a.end]<t[a.start]?IE({distanceToEdge:t[a.end],thresholds:l,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i}):-1*IE({distanceToEdge:t[a.start],thresholds:l,dragStartTime:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i})},tct=({container:e,subject:t,proposedScroll:n})=>{const a=t.height>e.height,o=t.width>e.width;return!o&&!a?n:o&&a?null:{x:o?0:n.x,y:a?0:n.y}};const nct=KD(e=>e===0?0:e);var T3=({dragStartTime:e,container:t,subject:n,center:a,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const l={top:a.y-t.top,right:t.right-a.x,bottom:t.bottom-a.y,left:a.x-t.left},u=kE({container:t,distanceToEdges:l,dragStartTime:e,axis:v1,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),d=kE({container:t,distanceToEdges:l,dragStartTime:e,axis:t3,shouldUseTimeDampening:o,getAutoScrollerOptions:i}),f=nct({x:d,y:u});if(xo(f,Rn))return null;const m=tct({container:t,subject:n,proposedScroll:f});return m?xo(m,Rn)?null:m:null};const rct=KD(e=>e===0?0:e>0?1:-1),_1=(()=>{const e=(t,n)=>t<0?t:t>n?t-n:0;return({current:t,max:n,change:a})=>{const o=Bn(t,a),i={x:e(o.x,n.x),y:e(o.y,n.y)};return xo(i,Rn)?null:i}})(),_3=({max:e,current:t,change:n})=>{const a={x:Math.max(t.x,e.x),y:Math.max(t.y,e.y)},o=rct(n),i=_1({max:a,current:t,change:o});return!i||o.x!==0&&i.x===0||o.y!==0&&i.y===0},A1=(e,t)=>_3({current:e.scroll.current,max:e.scroll.max,change:t}),act=(e,t)=>{if(!A1(e,t))return null;const n=e.scroll.max,a=e.scroll.current;return _1({current:a,max:n,change:t})},D1=(e,t)=>{const n=e.frame;return n?_3({current:n.scroll.current,max:n.scroll.max,change:t}):!1},sct=(e,t)=>{const n=e.frame;return!n||!D1(e,t)?null:_1({current:n.scroll.current,max:n.scroll.max,change:t})};var oct=({viewport:e,subject:t,center:n,dragStartTime:a,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const l=T3({dragStartTime:a,container:e.frame,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return l&&A1(e,l)?l:null},ict=({droppable:e,subject:t,center:n,dragStartTime:a,shouldUseTimeDampening:o,getAutoScrollerOptions:i})=>{const l=e.frame;if(!l)return null;const u=T3({dragStartTime:a,container:l.pageMarginBox,subject:t,center:n,shouldUseTimeDampening:o,getAutoScrollerOptions:i});return u&&D1(e,u)?u:null},ME=({state:e,dragStartTime:t,shouldUseTimeDampening:n,scrollWindow:a,scrollDroppable:o,getAutoScrollerOptions:i})=>{const l=e.current.page.borderBoxCenter,d=e.dimensions.draggables[e.critical.draggable.id].page.marginBox;if(e.isWindowScrollAllowed){const g=e.viewport,y=oct({dragStartTime:t,viewport:g,subject:d,center:l,shouldUseTimeDampening:n,getAutoScrollerOptions:i});if(y){a(y);return}}const f=Qlt({center:l,destination:Dr(e.impact),droppables:e.dimensions.droppables});if(!f)return;const m=ict({dragStartTime:t,droppable:f,subject:d,center:l,shouldUseTimeDampening:n,getAutoScrollerOptions:i});m&&o(f.descriptor.id,m)},lct=({scrollWindow:e,scrollDroppable:t,getAutoScrollerOptions:n=()=>Ku})=>{const a=Vu(e),o=Vu(t);let i=null;const l=f=>{i||Le();const{shouldUseTimeDampening:m,dragStartTime:g}=i;ME({state:f,scrollWindow:a,scrollDroppable:o,dragStartTime:g,shouldUseTimeDampening:m,getAutoScrollerOptions:n})};return{start:f=>{i&&Le();const m=Date.now();let g=!1;const y=()=>{g=!0};ME({state:f,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:y,scrollDroppable:y,getAutoScrollerOptions:n}),i={dragStartTime:m,shouldUseTimeDampening:g},g&&l(f)},stop:()=>{i&&(a.cancel(),o.cancel(),i=null)},scroll:l}},cct=({move:e,scrollDroppable:t,scrollWindow:n})=>{const a=(u,d)=>{const f=Bn(u.current.client.selection,d);e({client:f})},o=(u,d)=>{if(!D1(u,d))return d;const f=sct(u,d);if(!f)return t(u.descriptor.id,d),null;const m=_r(d,f);return t(u.descriptor.id,m),_r(d,m)},i=(u,d,f)=>{if(!u||!A1(d,f))return f;const m=act(d,f);if(!m)return n(f),null;const g=_r(f,m);return n(g),_r(f,g)};return u=>{const d=u.scrollJumpRequest;if(!d)return;const f=Dr(u.impact);f||Le();const m=o(u.dimensions.droppables[f],d);if(!m)return;const g=u.viewport,y=i(u.isWindowScrollAllowed,g,m);y&&a(u,y)}},uct=({scrollDroppable:e,scrollWindow:t,move:n,getAutoScrollerOptions:a})=>{const o=lct({scrollWindow:t,scrollDroppable:e,getAutoScrollerOptions:a}),i=cct({move:n,scrollWindow:t,scrollDroppable:e});return{scroll:d=>{if(!(a().disabled||d.phase!=="DRAGGING")){if(d.movementMode==="FLUID"){o.scroll(d);return}d.scrollJumpRequest&&i(d)}},start:o.start,stop:o.stop}};const Hl="data-rfd",Ul=(()=>{const e=`${Hl}-drag-handle`;return{base:e,draggableId:`${e}-draggable-id`,contextId:`${e}-context-id`}})(),G0=(()=>{const e=`${Hl}-draggable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),dct=(()=>{const e=`${Hl}-droppable`;return{base:e,contextId:`${e}-context-id`,id:`${e}-id`}})(),PE={contextId:`${Hl}-scroll-container-context-id`},fct=e=>t=>`[${t}="${e}"]`,cu=(e,t)=>e.map(n=>{const a=n.styles[t];return a?`${n.selector} { ${a} }`:""}).join(" "),pct="pointer-events: none;";var hct=e=>{const t=fct(e),n=(()=>{const u=`
      cursor: -webkit-grab;
      cursor: grab;
    `;return{selector:t(Ul.contextId),styles:{always:`
          -webkit-touch-callout: none;
          -webkit-tap-highlight-color: rgba(0,0,0,0);
          touch-action: manipulation;
        `,resting:u,dragging:pct,dropAnimating:u}}})(),a=(()=>{const u=`
      transition: ${Tu.outOfTheWay};
    `;return{selector:t(G0.contextId),styles:{dragging:u,dropAnimating:u,userCancel:u}}})(),o={selector:t(dct.contextId),styles:{always:"overflow-anchor: none;"}},l=[a,n,o,{selector:"body",styles:{dragging:`
        cursor: grabbing;
        cursor: -webkit-grabbing;
        user-select: none;
        -webkit-user-select: none;
        -moz-user-select: none;
        -ms-user-select: none;
        overflow-anchor: none;
      `}}];return{always:cu(l,"always"),resting:cu(l,"resting"),dragging:cu(l,"dragging"),dropAnimating:cu(l,"dropAnimating"),userCancel:cu(l,"userCancel")}};const jr=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?B.useLayoutEffect:B.useEffect,Pb=()=>{const e=document.querySelector("head");return e||Le(),e},LE=e=>{const t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};function mct(e,t){const n=jt(()=>hct(e),[e]),a=B.useRef(null),o=B.useRef(null),i=Xe(jn(g=>{const y=o.current;y||Le(),y.textContent=g}),[]),l=Xe(g=>{const y=a.current;y||Le(),y.textContent=g},[]);jr(()=>{!a.current&&!o.current||Le();const g=LE(t),y=LE(t);return a.current=g,o.current=y,g.setAttribute(`${Hl}-always`,e),y.setAttribute(`${Hl}-dynamic`,e),Pb().appendChild(g),Pb().appendChild(y),l(n.always),i(n.resting),()=>{const b=x=>{const S=x.current;S||Le(),Pb().removeChild(S),x.current=null};b(a),b(o)}},[t,l,i,n.always,n.resting,e]);const u=Xe(()=>i(n.dragging),[i,n.dragging]),d=Xe(g=>{if(g==="DROP"){i(n.dropAnimating);return}i(n.userCancel)},[i,n.dropAnimating,n.userCancel]),f=Xe(()=>{o.current&&i(n.resting)},[i,n.resting]);return jt(()=>({dragging:u,dropping:d,resting:f}),[u,d,f])}function A3(e,t){return Array.from(e.querySelectorAll(t))}var D3=e=>e&&e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView:window;function Jh(e){return e instanceof D3(e).HTMLElement}function gct(e,t){const n=`[${Ul.contextId}="${e}"]`,a=A3(document,n);if(!a.length)return null;const o=a.find(i=>i.getAttribute(Ul.draggableId)===t);return!o||!Jh(o)?null:o}function yct(e){const t=B.useRef({}),n=B.useRef(null),a=B.useRef(null),o=B.useRef(!1),i=Xe(function(y,b){const x={id:y,focus:b};return t.current[y]=x,function(){const w=t.current;w[y]!==x&&delete w[y]}},[]),l=Xe(function(y){const b=gct(e,y);b&&b!==document.activeElement&&b.focus()},[e]),u=Xe(function(y,b){n.current===y&&(n.current=b)},[]),d=Xe(function(){a.current||o.current&&(a.current=requestAnimationFrame(()=>{a.current=null;const y=n.current;y&&l(y)}))},[l]),f=Xe(function(y){n.current=null;const b=document.activeElement;b&&b.getAttribute(Ul.draggableId)===y&&(n.current=y)},[]);return jr(()=>(o.current=!0,function(){o.current=!1;const y=a.current;y&&cancelAnimationFrame(y)}),[]),jt(()=>({register:i,tryRecordFocus:f,tryRestoreFocusRecorded:d,tryShiftRecord:u}),[i,f,d,u])}function bct(){const e={draggables:{},droppables:{}},t=[];function n(g){return t.push(g),function(){const b=t.indexOf(g);b!==-1&&t.splice(b,1)}}function a(g){t.length&&t.forEach(y=>y(g))}function o(g){return e.draggables[g]||null}function i(g){const y=o(g);return y||Le(),y}const l={register:g=>{e.draggables[g.descriptor.id]=g,a({type:"ADDITION",value:g})},update:(g,y)=>{const b=e.draggables[y.descriptor.id];b&&b.uniqueId===g.uniqueId&&(delete e.draggables[y.descriptor.id],e.draggables[g.descriptor.id]=g)},unregister:g=>{const y=g.descriptor.id,b=o(y);b&&g.uniqueId===b.uniqueId&&(delete e.draggables[y],e.droppables[g.descriptor.droppableId]&&a({type:"REMOVAL",value:g}))},getById:i,findById:o,exists:g=>!!o(g),getAllByType:g=>Object.values(e.draggables).filter(y=>y.descriptor.type===g)};function u(g){return e.droppables[g]||null}function d(g){const y=u(g);return y||Le(),y}const f={register:g=>{e.droppables[g.descriptor.id]=g},unregister:g=>{const y=u(g.descriptor.id);y&&g.uniqueId===y.uniqueId&&delete e.droppables[g.descriptor.id]},getById:d,findById:u,exists:g=>!!u(g),getAllByType:g=>Object.values(e.droppables).filter(y=>y.descriptor.type===g)};function m(){e.draggables={},e.droppables={},t.length=0}return{draggable:l,droppable:f,subscribe:n,clean:m}}function vct(){const e=jt(bct,[]);return B.useEffect(()=>function(){e.clean()},[e]),e}var j1=$t.createContext(null),Kp=()=>{const e=document.body;return e||Le(),e};const xct={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Cct=e=>`rfd-announcement-${e}`;function Sct(e){const t=jt(()=>Cct(e),[e]),n=B.useRef(null);return B.useEffect(function(){const i=document.createElement("div");return n.current=i,i.id=t,i.setAttribute("aria-live","assertive"),i.setAttribute("aria-atomic","true"),$p(i.style,xct),Kp().appendChild(i),function(){setTimeout(function(){const d=Kp();d.contains(i)&&d.removeChild(i),i===n.current&&(n.current=null)})}},[t]),Xe(o=>{const i=n.current;if(i){i.textContent=o;return}},[])}const Nct={separator:"::"};function R1(e,t=Nct){const n=$t.useId();return jt(()=>`${e}${t.separator}${n}`,[t.separator,e,n])}function wct({contextId:e,uniqueId:t}){return`rfd-hidden-text-${e}-${t}`}function Ect({contextId:e,text:t}){const n=R1("hidden-text",{separator:"-"}),a=jt(()=>wct({contextId:e,uniqueId:n}),[n,e]);return B.useEffect(function(){const i=document.createElement("div");return i.id=a,i.textContent=t,i.style.display="none",Kp().appendChild(i),function(){const u=Kp();u.contains(i)&&u.removeChild(i)}},[a,t]),a}var em=$t.createContext(null);function j3(e){const t=B.useRef(e);return B.useEffect(()=>{t.current=e}),t}function $ct(){let e=null;function t(){return!!e}function n(l){return l===e}function a(l){e&&Le();const u={abandon:l};return e=u,u}function o(){e||Le(),e=null}function i(){e&&(e.abandon(),o())}return{isClaimed:t,isActive:n,claim:a,release:o,tryAbandon:i}}function Qu(e){return e.phase==="IDLE"||e.phase==="DROP_ANIMATING"?!1:e.isDragging}const Tct=9,_ct=13,O1=27,R3=32,Act=33,Dct=34,jct=35,Rct=36,Oct=37,Ict=38,kct=39,Mct=40,Pct={[_ct]:!0,[Tct]:!0};var O3=e=>{Pct[e.keyCode]&&e.preventDefault()};const tm=(()=>{const e="visibilitychange";return typeof document>"u"?e:[e,`ms${e}`,`webkit${e}`,`moz${e}`,`o${e}`].find(a=>`on${a}`in document)||e})(),I3=0,BE=5;function Lct(e,t){return Math.abs(t.x-e.x)>=BE||Math.abs(t.y-e.y)>=BE}const qE={type:"IDLE"};function Bct({cancel:e,completed:t,getPhase:n,setPhase:a}){return[{eventName:"mousemove",fn:o=>{const{button:i,clientX:l,clientY:u}=o;if(i!==I3)return;const d={x:l,y:u},f=n();if(f.type==="DRAGGING"){o.preventDefault(),f.actions.move(d);return}f.type!=="PENDING"&&Le();const m=f.point;if(!Lct(m,d))return;o.preventDefault();const g=f.actions.fluidLift(d);a({type:"DRAGGING",actions:g})}},{eventName:"mouseup",fn:o=>{const i=n();if(i.type!=="DRAGGING"){e();return}o.preventDefault(),i.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"mousedown",fn:o=>{n().type==="DRAGGING"&&o.preventDefault(),e()}},{eventName:"keydown",fn:o=>{if(n().type==="PENDING"){e();return}if(o.keyCode===O1){o.preventDefault(),e();return}O3(o)}},{eventName:"resize",fn:e},{eventName:"scroll",options:{passive:!0,capture:!1},fn:()=>{n().type==="PENDING"&&e()}},{eventName:"webkitmouseforcedown",fn:o=>{const i=n();if(i.type==="IDLE"&&Le(),i.actions.shouldRespectForcePress()){e();return}o.preventDefault()}},{eventName:tm,fn:e}]}function qct(e){const t=B.useRef(qE),n=B.useRef(vo),a=jt(()=>({eventName:"mousedown",fn:function(g){if(g.defaultPrevented||g.button!==I3||g.ctrlKey||g.metaKey||g.shiftKey||g.altKey)return;const y=e.findClosestDraggableId(g);if(!y)return;const b=e.tryGetLock(y,l,{sourceEvent:g});if(!b)return;g.preventDefault();const x={x:g.clientX,y:g.clientY};n.current(),f(b,x)}}),[e]),o=jt(()=>({eventName:"webkitmouseforcewillbegin",fn:m=>{if(m.defaultPrevented)return;const g=e.findClosestDraggableId(m);if(!g)return;const y=e.findOptionsForDraggable(g);y&&(y.shouldRespectForcePress||e.canGetLock(g)&&m.preventDefault())}}),[e]),i=Xe(function(){const g={passive:!1,capture:!0};n.current=Qr(window,[o,a],g)},[o,a]),l=Xe(()=>{t.current.type!=="IDLE"&&(t.current=qE,n.current(),i())},[i]),u=Xe(()=>{const m=t.current;l(),m.type==="DRAGGING"&&m.actions.cancel({shouldBlockNextClick:!0}),m.type==="PENDING"&&m.actions.abort()},[l]),d=Xe(function(){const g={capture:!0,passive:!1},y=Bct({cancel:u,completed:l,getPhase:()=>t.current,setPhase:b=>{t.current=b}});n.current=Qr(window,y,g)},[u,l]),f=Xe(function(g,y){t.current.type!=="IDLE"&&Le(),t.current={type:"PENDING",point:y,actions:g},d()},[d]);jr(function(){return i(),function(){n.current()}},[i])}function Fct(){}const zct={[Dct]:!0,[Act]:!0,[Rct]:!0,[jct]:!0};function Hct(e,t){function n(){t(),e.cancel()}function a(){t(),e.drop()}return[{eventName:"keydown",fn:o=>{if(o.keyCode===O1){o.preventDefault(),n();return}if(o.keyCode===R3){o.preventDefault(),a();return}if(o.keyCode===Mct){o.preventDefault(),e.moveDown();return}if(o.keyCode===Ict){o.preventDefault(),e.moveUp();return}if(o.keyCode===kct){o.preventDefault(),e.moveRight();return}if(o.keyCode===Oct){o.preventDefault(),e.moveLeft();return}if(zct[o.keyCode]){o.preventDefault();return}O3(o)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:tm,fn:n}]}function Uct(e){const t=B.useRef(Fct),n=jt(()=>({eventName:"keydown",fn:function(i){if(i.defaultPrevented||i.keyCode!==R3)return;const l=e.findClosestDraggableId(i);if(!l)return;const u=e.tryGetLock(l,m,{sourceEvent:i});if(!u)return;i.preventDefault();let d=!0;const f=u.snapLift();t.current();function m(){d||Le(),d=!1,t.current(),a()}t.current=Qr(window,Hct(f,m),{capture:!0,passive:!1})}}),[e]),a=Xe(function(){const i={passive:!1,capture:!0};t.current=Qr(window,[n],i)},[n]);jr(function(){return a(),function(){t.current()}},[a])}const Lb={type:"IDLE"},Vct=120,Gct=.15;function Yct({cancel:e,getPhase:t}){return[{eventName:"orientationchange",fn:e},{eventName:"resize",fn:e},{eventName:"contextmenu",fn:n=>{n.preventDefault()}},{eventName:"keydown",fn:n=>{if(t().type!=="DRAGGING"){e();return}n.keyCode===O1&&n.preventDefault(),e()}},{eventName:tm,fn:e}]}function Wct({cancel:e,completed:t,getPhase:n}){return[{eventName:"touchmove",options:{capture:!1},fn:a=>{const o=n();if(o.type!=="DRAGGING"){e();return}o.hasMoved=!0;const{clientX:i,clientY:l}=a.touches[0],u={x:i,y:l};a.preventDefault(),o.actions.move(u)}},{eventName:"touchend",fn:a=>{const o=n();if(o.type!=="DRAGGING"){e();return}a.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),t()}},{eventName:"touchcancel",fn:a=>{if(n().type!=="DRAGGING"){e();return}a.preventDefault(),e()}},{eventName:"touchforcechange",fn:a=>{const o=n();o.type==="IDLE"&&Le();const i=a.touches[0];if(!i||!(i.force>=Gct))return;const u=o.actions.shouldRespectForcePress();if(o.type==="PENDING"){u&&e();return}if(u){if(o.hasMoved){a.preventDefault();return}e();return}a.preventDefault()}},{eventName:tm,fn:e}]}function Xct(e){const t=B.useRef(Lb),n=B.useRef(vo),a=Xe(function(){return t.current},[]),o=Xe(function(b){t.current=b},[]),i=jt(()=>({eventName:"touchstart",fn:function(b){if(b.defaultPrevented)return;const x=e.findClosestDraggableId(b);if(!x)return;const S=e.tryGetLock(x,u,{sourceEvent:b});if(!S)return;const w=b.touches[0],{clientX:N,clientY:T}=w,A={x:N,y:T};n.current(),g(S,A)}}),[e]),l=Xe(function(){const b={capture:!0,passive:!1};n.current=Qr(window,[i],b)},[i]),u=Xe(()=>{const y=t.current;y.type!=="IDLE"&&(y.type==="PENDING"&&clearTimeout(y.longPressTimerId),o(Lb),n.current(),l())},[l,o]),d=Xe(()=>{const y=t.current;u(),y.type==="DRAGGING"&&y.actions.cancel({shouldBlockNextClick:!0}),y.type==="PENDING"&&y.actions.abort()},[u]),f=Xe(function(){const b={capture:!0,passive:!1},x={cancel:d,completed:u,getPhase:a},S=Qr(window,Wct(x),b),w=Qr(window,Yct(x),b);n.current=function(){S(),w()}},[d,a,u]),m=Xe(function(){const b=a();b.type!=="PENDING"&&Le();const x=b.actions.fluidLift(b.point);o({type:"DRAGGING",actions:x,hasMoved:!1})},[a,o]),g=Xe(function(b,x){a().type!=="IDLE"&&Le();const S=setTimeout(m,Vct);o({type:"PENDING",point:x,actions:b,longPressTimerId:S}),f()},[f,a,o,m]);jr(function(){return l(),function(){n.current();const x=a();x.type==="PENDING"&&(clearTimeout(x.longPressTimerId),o(Lb))}},[a,l,o]),jr(function(){return Qr(window,[{eventName:"touchmove",fn:()=>{},options:{capture:!1,passive:!1}}])},[])}const Kct=["input","button","textarea","select","option","optgroup","video","audio"];function k3(e,t){if(t==null)return!1;if(Kct.includes(t.tagName.toLowerCase()))return!0;const a=t.getAttribute("contenteditable");return a==="true"||a===""?!0:t===e?!1:k3(e,t.parentElement)}function Qct(e,t){const n=t.target;return Jh(n)?k3(e,n):!1}var Zct=e=>Sa(e.getBoundingClientRect()).center;function Jct(e){return e instanceof D3(e).Element}const eut=(()=>{const e="matches";return typeof document>"u"?e:[e,"msMatchesSelector","webkitMatchesSelector"].find(a=>a in Element.prototype)||e})();function M3(e,t){return e==null?null:e[eut](t)?e:M3(e.parentElement,t)}function tut(e,t){return e.closest?e.closest(t):M3(e,t)}function nut(e){return`[${Ul.contextId}="${e}"]`}function rut(e,t){const n=t.target;if(!Jct(n))return null;const a=nut(e),o=tut(n,a);return!o||!Jh(o)?null:o}function aut(e,t){const n=rut(e,t);return n?n.getAttribute(Ul.draggableId):null}function sut(e,t){const n=`[${G0.contextId}="${e}"]`,o=A3(document,n).find(i=>i.getAttribute(G0.id)===t);return!o||!Jh(o)?null:o}function out(e){e.preventDefault()}function Jf({expected:e,phase:t,isLockActive:n,shouldWarn:a}){return!(!n()||e!==t)}function P3({lockAPI:e,store:t,registry:n,draggableId:a}){if(e.isClaimed())return!1;const o=n.draggable.findById(a);return!(!o||!o.options.isEnabled||!E3(t.getState(),a))}function iut({lockAPI:e,contextId:t,store:n,registry:a,draggableId:o,forceSensorStop:i,sourceEvent:l}){if(!P3({lockAPI:e,store:n,registry:a,draggableId:o}))return null;const d=a.draggable.getById(o),f=sut(t,d.descriptor.id);if(!f||l&&!d.options.canDragInteractiveElements&&Qct(f,l))return null;const m=e.claim(i||vo);let g="PRE_DRAG";function y(){return d.options.shouldRespectForcePress}function b(){return e.isActive(m)}function x(E,$){Jf({expected:E,phase:g,isLockActive:b,shouldWarn:!0})&&n.dispatch($())}const S=x.bind(null,"DRAGGING");function w(E){function $(){e.release(),g="COMPLETED"}g!=="PRE_DRAG"&&($(),Le()),n.dispatch(tlt(E.liftActionArgs)),g="DRAGGING";function _(k,q={shouldBlockNextClick:!1}){if(E.cleanup(),q.shouldBlockNextClick){const z=Qr(window,[{eventName:"click",fn:out,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(z)}$(),n.dispatch(y3({reason:k}))}return{isActive:()=>Jf({expected:"DRAGGING",phase:g,isLockActive:b,shouldWarn:!1}),shouldRespectForcePress:y,drop:k=>_("DROP",k),cancel:k=>_("CANCEL",k),...E.actions}}function N(E){const $=Vu(k=>{S(()=>g3({client:k}))});return{...w({liftActionArgs:{id:o,clientSelection:E,movementMode:"FLUID"},cleanup:()=>$.cancel(),actions:{move:$}}),move:$}}function T(){const E={moveUp:()=>S(ult),moveRight:()=>S(flt),moveDown:()=>S(dlt),moveLeft:()=>S(plt)};return w({liftActionArgs:{id:o,clientSelection:Zct(f),movementMode:"SNAP"},cleanup:vo,actions:E})}function A(){Jf({expected:"PRE_DRAG",phase:g,isLockActive:b,shouldWarn:!0})&&e.release()}return{isActive:()=>Jf({expected:"PRE_DRAG",phase:g,isLockActive:b,shouldWarn:!1}),shouldRespectForcePress:y,fluidLift:N,snapLift:T,abort:A}}const lut=[qct,Uct,Xct];function cut({contextId:e,store:t,registry:n,customSensors:a,enableDefaultSensors:o}){const i=[...o?lut:[],...a||[]],l=B.useState(()=>$ct())[0],u=Xe(function(w,N){Qu(w)&&!Qu(N)&&l.tryAbandon()},[l]);jr(function(){let w=t.getState();return t.subscribe(()=>{const T=t.getState();u(w,T),w=T})},[l,t,u]),jr(()=>l.tryAbandon,[l.tryAbandon]);const d=Xe(S=>P3({lockAPI:l,registry:n,store:t,draggableId:S}),[l,n,t]),f=Xe((S,w,N)=>iut({lockAPI:l,registry:n,contextId:e,store:t,draggableId:S,forceSensorStop:w||null,sourceEvent:N&&N.sourceEvent?N.sourceEvent:null}),[e,l,n,t]),m=Xe(S=>aut(e,S),[e]),g=Xe(S=>{const w=n.draggable.findById(S);return w?w.options:null},[n.draggable]),y=Xe(function(){l.isClaimed()&&(l.tryAbandon(),t.getState().phase!=="IDLE"&&t.dispatch(w1()))},[l,t]),b=Xe(()=>l.isClaimed(),[l]),x=jt(()=>({canGetLock:d,tryGetLock:f,findClosestDraggableId:m,findOptionsForDraggable:g,tryReleaseLock:y,isLockClaimed:b}),[d,f,m,g,y,b]);for(let S=0;S<i.length;S++)i[S](x)}const uut=e=>({onBeforeCapture:t=>{const n=()=>{e.onBeforeCapture&&e.onBeforeCapture(t)};nd.flushSync(n)},onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}),dut=e=>({...Ku,...e.autoScrollerOptions,durationDampening:{...Ku.durationDampening,...e.autoScrollerOptions}});function uu(e){return e.current||Le(),e.current}function fut(e){const{contextId:t,setCallbacks:n,sensors:a,nonce:o,dragHandleUsageInstructions:i}=e,l=B.useRef(null),u=j3(e),d=Xe(()=>uut(u.current),[u]),f=Xe(()=>dut(u.current),[u]),m=Sct(t),g=Ect({contextId:t,text:i}),y=mct(t,o),b=Xe(z=>{uu(l).dispatch(z)},[]),x=jt(()=>cE({publishWhileDragging:rlt,updateDroppableScroll:slt,updateDroppableIsEnabled:olt,updateDroppableIsCombineEnabled:ilt,collectionStarting:alt},b),[b]),S=vct(),w=jt(()=>Ylt(S,x),[S,x]),N=jt(()=>uct({scrollWindow:Wlt,scrollDroppable:w.scrollDroppable,getAutoScrollerOptions:f,...cE({move:g3},b)}),[w.scrollDroppable,b,f]),T=yct(t),A=jt(()=>Hlt({announce:m,autoScroller:N,dimensionMarshal:w,focusMarshal:T,getResponders:d,styleMarshal:y}),[m,N,w,T,d,y]);l.current=A;const R=Xe(()=>{const z=uu(l);z.getState().phase!=="IDLE"&&z.dispatch(w1())},[]),E=Xe(()=>{const z=uu(l).getState();return z.phase==="DROP_ANIMATING"?!0:z.phase==="IDLE"?!1:z.isDragging},[]),$=jt(()=>({isDragging:E,tryAbort:R}),[E,R]);n($);const _=Xe(z=>E3(uu(l).getState(),z),[]),k=Xe(()=>ui(uu(l).getState()),[]),q=jt(()=>({marshal:w,focus:T,contextId:t,canLift:_,isMovementAllowed:k,dragHandleUsageInstructionsId:g,registry:S}),[t,w,g,T,_,k,S]);return cut({contextId:t,store:A,registry:S,customSensors:a||null,enableDefaultSensors:e.enableDefaultSensors!==!1}),B.useEffect(()=>R,[R]),$t.createElement(em.Provider,{value:q},$t.createElement(p_,{context:j1,store:A},e.children))}function put(){return $t.useId()}function hut(e){const t=put(),n=e.dragHandleUsageInstructions||mp.dragHandleUsageInstructions;return $t.createElement(Uot,null,a=>$t.createElement(fut,{nonce:e.nonce,contextId:t,setCallbacks:a,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd,autoScrollerOptions:e.autoScrollerOptions},e.children))}const FE={dragging:5e3,dropAnimating:4500},mut=(e,t)=>t?Tu.drop(t.duration):e?Tu.snap:Tu.fluid,gut=(e,t)=>{if(e)return t?Xu.opacity.drop:Xu.opacity.combining},yut=e=>e.forceShouldAnimate!=null?e.forceShouldAnimate:e.mode==="SNAP";function but(e){const n=e.dimension.client,{offset:a,combineWith:o,dropping:i}=e,l=!!o,u=yut(e),d=!!i,f=d?U0.drop(a,l):U0.moveTo(a);return{position:"fixed",top:n.marginBox.top,left:n.marginBox.left,boxSizing:"border-box",width:n.borderBox.width,height:n.borderBox.height,transition:mut(u,i),transform:f,opacity:gut(l,d),zIndex:d?FE.dropAnimating:FE.dragging,pointerEvents:"none"}}function vut(e){return{transform:U0.moveTo(e.offset),transition:e.shouldAnimateDisplacement?void 0:"none"}}function xut(e){return e.type==="DRAGGING"?but(e):vut(e)}function Cut(e,t,n=Rn){const a=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=UD(o,a),l=Gp(i,n),u={client:i,tagName:t.tagName.toLowerCase(),display:a.display},d={x:i.marginBox.width,y:i.marginBox.height};return{descriptor:e,placeholder:u,displaceBy:d,client:i,page:l}}function Sut(e){const t=R1("draggable"),{descriptor:n,registry:a,getDraggableRef:o,canDragInteractiveElements:i,shouldRespectForcePress:l,isEnabled:u}=e,d=jt(()=>({canDragInteractiveElements:i,shouldRespectForcePress:l,isEnabled:u}),[i,u,l]),f=Xe(b=>{const x=o();return x||Le(),Cut(n,x,b)},[n,o]),m=jt(()=>({uniqueId:t,descriptor:n,options:d,getDimension:f}),[n,f,d,t]),g=B.useRef(m),y=B.useRef(!0);jr(()=>(a.draggable.register(g.current),()=>a.draggable.unregister(g.current)),[a.draggable]),jr(()=>{if(y.current){y.current=!1;return}const b=g.current;g.current=m,a.draggable.update(m,b)},[m,a.draggable])}var I1=$t.createContext(null);function Qp(e){const t=B.useContext(e);return t||Le(),t}function Nut(e){e.preventDefault()}const wut=e=>{const t=B.useRef(null),n=Xe(($=null)=>{t.current=$},[]),a=Xe(()=>t.current,[]),{contextId:o,dragHandleUsageInstructionsId:i,registry:l}=Qp(em),{type:u,droppableId:d}=Qp(I1),f=jt(()=>({id:e.draggableId,index:e.index,type:u,droppableId:d}),[e.draggableId,e.index,u,d]),{children:m,draggableId:g,isEnabled:y,shouldRespectForcePress:b,canDragInteractiveElements:x,isClone:S,mapped:w,dropAnimationFinished:N}=e;if(!S){const $=jt(()=>({descriptor:f,registry:l,getDraggableRef:a,canDragInteractiveElements:x,shouldRespectForcePress:b,isEnabled:y}),[f,l,a,x,b,y]);Sut($)}const T=jt(()=>y?{tabIndex:0,role:"button","aria-describedby":i,"data-rfd-drag-handle-draggable-id":g,"data-rfd-drag-handle-context-id":o,draggable:!1,onDragStart:Nut}:null,[o,i,g,y]),A=Xe($=>{w.type==="DRAGGING"&&w.dropping&&$.propertyName==="transform"&&nd.flushSync(N)},[N,w]),R=jt(()=>{const $=xut(w),_=w.type==="DRAGGING"&&w.dropping?A:void 0;return{innerRef:n,draggableProps:{"data-rfd-draggable-context-id":o,"data-rfd-draggable-id":g,style:$,onTransitionEnd:_},dragHandleProps:T}},[o,T,g,w,A,n]),E=jt(()=>({draggableId:f.id,type:f.type,source:{index:f.index,droppableId:f.droppableId}}),[f.droppableId,f.id,f.index,f.type]);return $t.createElement($t.Fragment,null,m(R,w.snapshot,E))};var L3=(e,t)=>e===t,B3=e=>{const{combine:t,destination:n}=e;return n?n.droppableId:t?t.droppableId:null};const Eut=e=>e.combine?e.combine.draggableId:null,$ut=e=>e.at&&e.at.type==="COMBINE"?e.at.combine.draggableId:null;function Tut(){const e=jn((o,i)=>({x:o,y:i})),t=jn((o,i,l=null,u=null,d=null)=>({isDragging:!0,isClone:i,isDropAnimating:!!d,dropAnimation:d,mode:o,draggingOver:l,combineWith:u,combineTargetFor:null})),n=jn((o,i,l,u,d=null,f=null,m=null)=>({mapped:{type:"DRAGGING",dropping:null,draggingOver:d,combineWith:f,mode:i,offset:o,dimension:l,forceShouldAnimate:m,snapshot:t(i,u,d,f,null)}}));return(o,i)=>{if(Qu(o)){if(o.critical.draggable.id!==i.draggableId)return null;const l=o.current.client.offset,u=o.dimensions.draggables[i.draggableId],d=Dr(o.impact),f=$ut(o.impact),m=o.forceShouldAnimate;return n(e(l.x,l.y),o.movementMode,u,i.isClone,d,f,m)}if(o.phase==="DROP_ANIMATING"){const l=o.completed;if(l.result.draggableId!==i.draggableId)return null;const u=i.isClone,d=o.dimensions.draggables[i.draggableId],f=l.result,m=f.mode,g=B3(f),y=Eut(f),x={duration:o.dropDuration,curve:$1.drop,moveTo:o.newHomeClientOffset,opacity:y?Xu.opacity.drop:null,scale:y?Xu.scale.drop:null};return{mapped:{type:"DRAGGING",offset:o.newHomeClientOffset,dimension:d,dropping:x,draggingOver:g,combineWith:y,mode:m,forceShouldAnimate:null,snapshot:t(m,u,g,y,x)}}}return null}}function q3(e=null){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}const _ut={mapped:{type:"SECONDARY",offset:Rn,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:q3(null)}};function Aut(){const e=jn((l,u)=>({x:l,y:u})),t=jn(q3),n=jn((l,u=null,d)=>({mapped:{type:"SECONDARY",offset:l,combineTargetFor:u,shouldAnimateDisplacement:d,snapshot:t(u)}})),a=l=>l?n(Rn,l,!0):null,o=(l,u,d,f)=>{const m=d.displaced.visible[l],g=!!(f.inVirtualList&&f.effected[l]),y=Kh(d),b=y&&y.draggableId===l?u:null;if(!m){if(!g)return a(b);if(d.displaced.invisible[l])return null;const w=nc(f.displacedBy.point),N=e(w.x,w.y);return n(N,b,!0)}if(g)return a(b);const x=d.displacedBy.point,S=e(x.x,x.y);return n(S,b,m.shouldAnimate)};return(l,u)=>{if(Qu(l))return l.critical.draggable.id===u.draggableId?null:o(u.draggableId,l.critical.draggable.id,l.impact,l.afterCritical);if(l.phase==="DROP_ANIMATING"){const d=l.completed;return d.result.draggableId===u.draggableId?null:o(u.draggableId,d.result.draggableId,d.impact,d.afterCritical)}return null}}const Dut=()=>{const e=Tut(),t=Aut();return(a,o)=>e(a,o)||t(a,o)||_ut},jut={dropAnimationFinished:b3},Rut=f_(Dut,jut,null,{context:j1,areStatePropsEqual:L3})(wut);function F3(e){return Qp(I1).isUsingCloneFor===e.draggableId&&!e.isClone?null:$t.createElement(Rut,e)}function Out(e){const t=typeof e.isDragDisabled=="boolean"?!e.isDragDisabled:!0,n=!!e.disableInteractiveElementBlocking,a=!!e.shouldRespectForcePress;return $t.createElement(F3,$p({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:a}))}const z3=e=>t=>e===t,Iut=z3("scroll"),kut=z3("auto"),zE=(e,t)=>t(e.overflowX)||t(e.overflowY),Mut=e=>{const t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return zE(n,Iut)||zE(n,kut)},Put=()=>!1,H3=e=>e==null?null:e===document.body?Put()?e:null:e===document.documentElement?null:Mut(e)?e:H3(e.parentElement);var Y0=e=>({x:e.scrollLeft,y:e.scrollTop});const U3=e=>e?window.getComputedStyle(e).position==="fixed"?!0:U3(e.parentElement):!1;var Lut=e=>{const t=H3(e),n=U3(e);return{closestScrollable:t,isFixedOnPage:n}},But=({descriptor:e,isEnabled:t,isCombineEnabled:n,isFixedOnPage:a,direction:o,client:i,page:l,closest:u})=>{const d=(()=>{if(!u)return null;const{scrollSize:y,client:b}=u,x=S3({scrollHeight:y.scrollHeight,scrollWidth:y.scrollWidth,height:b.paddingBox.height,width:b.paddingBox.width});return{pageMarginBox:u.page.marginBox,frameClient:b,scrollSize:y,shouldClipSubject:u.shouldClipSubject,scroll:{initial:u.scroll,current:u.scroll,max:x,diff:{value:Rn,displacement:Rn}}}})(),f=o==="vertical"?v1:t3,m=zl({page:l,withPlaceholder:null,axis:f,frame:d});return{descriptor:e,isCombineEnabled:n,isFixedOnPage:a,axis:f,isEnabled:t,client:i,page:l,frame:d,subject:m}};const qut=(e,t)=>{const n=VD(e);if(!t||e!==t)return n;const a=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=a+t.scrollHeight,l=o+t.scrollWidth,d=m1({top:a,right:l,bottom:i,left:o},n.border);return g1({borderBox:d,margin:n.margin,border:n.border,padding:n.padding})};var Fut=({ref:e,descriptor:t,env:n,windowScroll:a,direction:o,isDropDisabled:i,isCombineEnabled:l,shouldClipSubject:u})=>{const d=n.closestScrollable,f=qut(e,d),m=Gp(f,a),g=(()=>{if(!d)return null;const b=VD(d),x={scrollHeight:d.scrollHeight,scrollWidth:d.scrollWidth};return{client:b,page:Gp(b,a),scroll:Y0(d),scrollSize:x,shouldClipSubject:u}})();return But({descriptor:t,isEnabled:!i,isCombineEnabled:l,isFixedOnPage:n.isFixedOnPage,direction:o,client:f,page:m,closest:g})};const zut={passive:!1},Hut={passive:!0};var HE=e=>e.shouldPublishImmediately?zut:Hut;const ep=e=>e&&e.env.closestScrollable||null;function Uut(e){const t=B.useRef(null),n=Qp(em),a=R1("droppable"),{registry:o,marshal:i}=n,l=j3(e),u=jt(()=>({id:e.droppableId,type:e.type,mode:e.mode}),[e.droppableId,e.mode,e.type]),d=B.useRef(u),f=jt(()=>jn((R,E)=>{t.current||Le();const $={x:R,y:E};i.updateDroppableScroll(u.id,$)}),[u.id,i]),m=Xe(()=>{const R=t.current;return!R||!R.env.closestScrollable?Rn:Y0(R.env.closestScrollable)},[]),g=Xe(()=>{const R=m();f(R.x,R.y)},[m,f]),y=jt(()=>Vu(g),[g]),b=Xe(()=>{const R=t.current,E=ep(R);if(R&&E||Le(),R.scrollOptions.shouldPublishImmediately){g();return}y()},[y,g]),x=Xe((R,E)=>{t.current&&Le();const $=l.current,_=$.getDroppableRef();_||Le();const k=Lut(_),q={ref:_,descriptor:u,env:k,scrollOptions:E};t.current=q;const z=Fut({ref:_,descriptor:u,env:k,windowScroll:R,direction:$.direction,isDropDisabled:$.isDropDisabled,isCombineEnabled:$.isCombineEnabled,shouldClipSubject:!$.ignoreContainerClipping}),D=k.closestScrollable;return D&&(D.setAttribute(PE.contextId,n.contextId),D.addEventListener("scroll",b,HE(q.scrollOptions))),z},[n.contextId,u,b,l]),S=Xe(()=>{const R=t.current,E=ep(R);return R&&E||Le(),Y0(E)},[]),w=Xe(()=>{const R=t.current;R||Le();const E=ep(R);t.current=null,E&&(y.cancel(),E.removeAttribute(PE.contextId),E.removeEventListener("scroll",b,HE(R.scrollOptions)))},[b,y]),N=Xe(R=>{const E=t.current;E||Le();const $=ep(E);$||Le(),$.scrollTop+=R.y,$.scrollLeft+=R.x},[]),T=jt(()=>({getDimensionAndWatchScroll:x,getScrollWhileDragging:S,dragStopped:w,scroll:N}),[w,x,S,N]),A=jt(()=>({uniqueId:a,descriptor:u,callbacks:T}),[T,u,a]);jr(()=>(d.current=A.descriptor,o.droppable.register(A),()=>{t.current&&w(),o.droppable.unregister(A)}),[T,u,w,A,i,o.droppable]),jr(()=>{t.current&&i.updateDroppableIsEnabled(d.current.id,!e.isDropDisabled)},[e.isDropDisabled,i]),jr(()=>{t.current&&i.updateDroppableIsCombineEnabled(d.current.id,e.isCombineEnabled)},[e.isCombineEnabled,i])}function Bb(){}const UE={width:0,height:0,margin:Qot},Vut=({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>e||n==="close"?UE:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin},Gut=({isAnimatingOpenOnMount:e,placeholder:t,animate:n})=>{const a=Vut({isAnimatingOpenOnMount:e,placeholder:t,animate:n});return{display:t.display,boxSizing:"border-box",width:a.width,height:a.height,marginTop:a.margin.top,marginRight:a.margin.right,marginBottom:a.margin.bottom,marginLeft:a.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:n!=="none"?Tu.placeholder:null}},Yut=e=>{const t=B.useRef(null),n=Xe(()=>{t.current&&(clearTimeout(t.current),t.current=null)},[]),{animate:a,onTransitionEnd:o,onClose:i,contextId:l}=e,[u,d]=B.useState(e.animate==="open");B.useEffect(()=>u?a!=="open"?(n(),d(!1),Bb):t.current?Bb:(t.current=setTimeout(()=>{t.current=null,d(!1)}),n):Bb,[a,u,n]);const f=Xe(g=>{g.propertyName==="height"&&(o(),a==="close"&&i())},[a,i,o]),m=Gut({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return $t.createElement(e.placeholder.tagName,{style:m,"data-rfd-placeholder-context-id":l,onTransitionEnd:f,ref:e.innerRef})};var Wut=$t.memo(Yut);class Xut extends $t.PureComponent{constructor(...t){super(...t),this.state={isVisible:!!this.props.on,data:this.props.on,animate:this.props.shouldAnimate&&this.props.on?"open":"none"},this.onClose=()=>{this.state.animate==="close"&&this.setState({isVisible:!1})}}static getDerivedStateFromProps(t,n){return t.shouldAnimate?t.on?{isVisible:!0,data:t.on,animate:"open"}:n.isVisible?{isVisible:!0,data:n.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:!!t.on,data:t.on,animate:"none"}}render(){if(!this.state.isVisible)return null;const t={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(t)}}const Kut=e=>{const t=B.useContext(em);t||Le();const{contextId:n,isMovementAllowed:a}=t,o=B.useRef(null),i=B.useRef(null),{children:l,droppableId:u,type:d,mode:f,direction:m,ignoreContainerClipping:g,isDropDisabled:y,isCombineEnabled:b,snapshot:x,useClone:S,updateViewportMaxScroll:w,getContainerForClone:N}=e,T=Xe(()=>o.current,[]),A=Xe((D=null)=>{o.current=D},[]);Xe(()=>i.current,[]);const R=Xe((D=null)=>{i.current=D},[]),E=Xe(()=>{a()&&w({maxScroll:w3()})},[a,w]);Uut({droppableId:u,type:d,mode:f,direction:m,isDropDisabled:y,isCombineEnabled:b,ignoreContainerClipping:g,getDroppableRef:T});const $=jt(()=>$t.createElement(Xut,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},({onClose:D,data:H,animate:O})=>$t.createElement(Wut,{placeholder:H,onClose:D,innerRef:R,animate:O,contextId:n,onTransitionEnd:E})),[n,E,e.placeholder,e.shouldAnimatePlaceholder,R]),_=jt(()=>({innerRef:A,placeholder:$,droppableProps:{"data-rfd-droppable-id":u,"data-rfd-droppable-context-id":n}}),[n,u,$,A]),k=S?S.dragging.draggableId:null,q=jt(()=>({droppableId:u,type:d,isUsingCloneFor:k}),[u,k,d]);function z(){if(!S)return null;const{dragging:D,render:H}=S,O=$t.createElement(F3,{draggableId:D.draggableId,index:D.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(j,M)=>H(j,M,D));return hT.createPortal(O,N())}return $t.createElement(I1.Provider,{value:q},l(_,x),z())};function Qut(){return document.body||Le(),document.body}const VE={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:Qut},V3=e=>{let t={...e},n;for(n in VE)e[n]===void 0&&(t={...t,[n]:VE[n]});return t},qb=(e,t)=>e===t.droppable.type,GE=(e,t)=>t.draggables[e.draggable.id],Zut=()=>{const e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t={...e,shouldAnimatePlaceholder:!1},n=jn(i=>({draggableId:i.id,type:i.type,source:{index:i.index,droppableId:i.droppableId}})),a=jn((i,l,u,d,f,m)=>{const g=f.descriptor.id;if(f.descriptor.droppableId===i){const x=m?{render:m,dragging:n(f.descriptor)}:null,S={isDraggingOver:u,draggingOverWith:u?g:null,draggingFromThisWith:g,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!1,snapshot:S,useClone:x}}if(!l)return t;if(!d)return e;const b={isDraggingOver:u,draggingOverWith:g,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:f.placeholder,shouldAnimatePlaceholder:!0,snapshot:b,useClone:null}});return(i,l)=>{const u=V3(l),d=u.droppableId,f=u.type,m=!u.isDropDisabled,g=u.renderClone;if(Qu(i)){const y=i.critical;if(!qb(f,y))return t;const b=GE(y,i.dimensions),x=Dr(i.impact)===d;return a(d,m,x,x,b,g)}if(i.phase==="DROP_ANIMATING"){const y=i.completed;if(!qb(f,y.critical))return t;const b=GE(y.critical,i.dimensions);return a(d,m,B3(y.result)===d,Dr(y.impact)===d,b,g)}if(i.phase==="IDLE"&&i.completed&&!i.shouldFlush){const y=i.completed;if(!qb(f,y.critical))return t;const b=Dr(y.impact)===d,x=!!(y.impact.at&&y.impact.at.type==="COMBINE"),S=y.critical.droppable.id===d;return b?x?e:t:S?e:t}return t}},Jut={updateViewportMaxScroll:clt},edt=f_(Zut,Jut,(e,t,n)=>({...V3(n),...e,...t}),{context:j1,areStatePropsEqual:L3})(Kut);var Fb,YE;function tdt(){return YE||(YE=1,Fb=(function(e){var t={};function n(a){if(t[a])return t[a].exports;var o=t[a]={i:a,l:!1,exports:{}};return e[a].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(a,o,i){n.o(a,o)||Object.defineProperty(a,o,{enumerable:!0,get:i})},n.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},n.t=function(a,o){if(1&o&&(a=n(a)),8&o||4&o&&typeof a=="object"&&a&&a.__esModule)return a;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:a}),2&o&&typeof a!="string")for(var l in a)n.d(i,l,(function(u){return a[u]}).bind(null,l));return i},n.n=function(a){var o=a&&a.__esModule?function(){return a.default}:function(){return a};return n.d(o,"a",o),o},n.o=function(a,o){return Object.prototype.hasOwnProperty.call(a,o)},n.p="",n(n.s=9)})([function(e,t){e.exports=ji()},function(e,t,n){var a;/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(){var o={}.hasOwnProperty;function i(){for(var l=[],u=0;u<arguments.length;u++){var d=arguments[u];if(d){var f=typeof d;if(f==="string"||f==="number")l.push(d);else if(Array.isArray(d)){if(d.length){var m=i.apply(null,d);m&&l.push(m)}}else if(f==="object"){if(d.toString!==Object.prototype.toString&&!d.toString.toString().includes("[native code]")){l.push(d.toString());continue}for(var g in d)o.call(d,g)&&d[g]&&l.push(g)}}}return l.join(" ")}e.exports?(i.default=i,e.exports=i):(a=(function(){return i}).apply(t,[]))===void 0||(e.exports=a)})()},function(e,t,n){(function(a){var o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,d=parseInt,f=typeof a=="object"&&a&&a.Object===Object&&a,m=typeof self=="object"&&self&&self.Object===Object&&self,g=f||m||Function("return this")(),y=Object.prototype.toString,b=g.Symbol,x=b?b.prototype:void 0,S=x?x.toString:void 0;function w(R){if(typeof R=="string")return R;if(T(R))return S?S.call(R):"";var E=R+"";return E=="0"&&1/R==-1/0?"-0":E}function N(R){var E=typeof R;return!!R&&(E=="object"||E=="function")}function T(R){return typeof R=="symbol"||(function(E){return!!E&&typeof E=="object"})(R)&&y.call(R)=="[object Symbol]"}function A(R){return R?(R=(function(E){if(typeof E=="number")return E;if(T(E))return NaN;if(N(E)){var $=typeof E.valueOf=="function"?E.valueOf():E;E=N($)?$+"":$}if(typeof E!="string")return E===0?E:+E;E=E.replace(o,"");var _=l.test(E);return _||u.test(E)?d(E.slice(2),_?2:8):i.test(E)?NaN:+E})(R))===1/0||R===-1/0?17976931348623157e292*(R<0?-1:1):R==R?R:0:R===0?R:0}e.exports=function(R,E,$){var _,k,q,z;return R=(_=R)==null?"":w(_),k=(function(D){var H=A(D),O=H%1;return H==H?O?H-O:H:0})($),q=0,z=R.length,k==k&&(z!==void 0&&(k=k<=z?k:z),q!==void 0&&(k=k>=q?k:q)),$=k,E=w(E),R.slice($,$+E.length)==E}}).call(this,n(3))},function(e,t){var n;n=(function(){return this})();try{n=n||new Function("return this")()}catch{typeof window=="object"&&(n=window)}e.exports=n},function(e,t,n){(function(a){var o=/^\[object .+?Constructor\]$/,i=typeof a=="object"&&a&&a.Object===Object&&a,l=typeof self=="object"&&self&&self.Object===Object&&self,u=i||l||Function("return this")(),d,f=Array.prototype,m=Function.prototype,g=Object.prototype,y=u["__core-js_shared__"],b=(d=/[^.]+$/.exec(y&&y.keys&&y.keys.IE_PROTO||""))?"Symbol(src)_1."+d:"",x=m.toString,S=g.hasOwnProperty,w=g.toString,N=RegExp("^"+x.call(S).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),T=f.splice,A=D(u,"Map"),R=D(Object,"create");function E(j){var M=-1,I=j?j.length:0;for(this.clear();++M<I;){var F=j[M];this.set(F[0],F[1])}}function $(j){var M=-1,I=j?j.length:0;for(this.clear();++M<I;){var F=j[M];this.set(F[0],F[1])}}function _(j){var M=-1,I=j?j.length:0;for(this.clear();++M<I;){var F=j[M];this.set(F[0],F[1])}}function k(j,M){for(var I,F,V=j.length;V--;)if((I=j[V][0])===(F=M)||I!=I&&F!=F)return V;return-1}function q(j){return!(!O(j)||(M=j,b&&b in M))&&((function(I){var F=O(I)?w.call(I):"";return F=="[object Function]"||F=="[object GeneratorFunction]"})(j)||(function(I){var F=!1;if(I!=null&&typeof I.toString!="function")try{F=!!(I+"")}catch{}return F})(j)?N:o).test((function(I){if(I!=null){try{return x.call(I)}catch{}try{return I+""}catch{}}return""})(j));var M}function z(j,M){var I,F,V=j.__data__;return((F=typeof(I=M))=="string"||F=="number"||F=="symbol"||F=="boolean"?I!=="__proto__":I===null)?V[typeof M=="string"?"string":"hash"]:V.map}function D(j,M){var I=(function(F,V){return F?.[V]})(j,M);return q(I)?I:void 0}function H(j,M){if(typeof j!="function"||M&&typeof M!="function")throw new TypeError("Expected a function");var I=function(){var F=arguments,V=M?M.apply(this,F):F[0],W=I.cache;if(W.has(V))return W.get(V);var U=j.apply(this,F);return I.cache=W.set(V,U),U};return I.cache=new(H.Cache||_),I}function O(j){var M=typeof j;return!!j&&(M=="object"||M=="function")}E.prototype.clear=function(){this.__data__=R?R(null):{}},E.prototype.delete=function(j){return this.has(j)&&delete this.__data__[j]},E.prototype.get=function(j){var M=this.__data__;if(R){var I=M[j];return I==="__lodash_hash_undefined__"?void 0:I}return S.call(M,j)?M[j]:void 0},E.prototype.has=function(j){var M=this.__data__;return R?M[j]!==void 0:S.call(M,j)},E.prototype.set=function(j,M){return this.__data__[j]=R&&M===void 0?"__lodash_hash_undefined__":M,this},$.prototype.clear=function(){this.__data__=[]},$.prototype.delete=function(j){var M=this.__data__,I=k(M,j);return!(I<0)&&(I==M.length-1?M.pop():T.call(M,I,1),!0)},$.prototype.get=function(j){var M=this.__data__,I=k(M,j);return I<0?void 0:M[I][1]},$.prototype.has=function(j){return k(this.__data__,j)>-1},$.prototype.set=function(j,M){var I=this.__data__,F=k(I,j);return F<0?I.push([j,M]):I[F][1]=M,this},_.prototype.clear=function(){this.__data__={hash:new E,map:new(A||$),string:new E}},_.prototype.delete=function(j){return z(this,j).delete(j)},_.prototype.get=function(j){return z(this,j).get(j)},_.prototype.has=function(j){return z(this,j).has(j)},_.prototype.set=function(j,M){return z(this,j).set(j,M),this},H.Cache=_,e.exports=H}).call(this,n(3))},function(e,t,n){(function(a){var o=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,d=parseInt,f=typeof a=="object"&&a&&a.Object===Object&&a,m=typeof self=="object"&&self&&self.Object===Object&&self,g=f||m||Function("return this")(),y=Object.prototype.toString,b=Math.max,x=Math.min,S=function(){return g.Date.now()};function w(T){var A=typeof T;return!!T&&(A=="object"||A=="function")}function N(T){if(typeof T=="number")return T;if((function(E){return typeof E=="symbol"||(function($){return!!$&&typeof $=="object"})(E)&&y.call(E)=="[object Symbol]"})(T))return NaN;if(w(T)){var A=typeof T.valueOf=="function"?T.valueOf():T;T=w(A)?A+"":A}if(typeof T!="string")return T===0?T:+T;T=T.replace(o,"");var R=l.test(T);return R||u.test(T)?d(T.slice(2),R?2:8):i.test(T)?NaN:+T}e.exports=function(T,A,R){var E,$,_,k,q,z,D=0,H=!1,O=!1,j=!0;if(typeof T!="function")throw new TypeError("Expected a function");function M(P){var Y=E,K=$;return E=$=void 0,D=P,k=T.apply(K,Y)}function I(P){return D=P,q=setTimeout(V,A),H?M(P):k}function F(P){var Y=P-z;return z===void 0||Y>=A||Y<0||O&&P-D>=_}function V(){var P=S();if(F(P))return W(P);q=setTimeout(V,(function(Y){var K=A-(Y-z);return O?x(K,_-(Y-D)):K})(P))}function W(P){return q=void 0,j&&E?M(P):(E=$=void 0,k)}function U(){var P=S(),Y=F(P);if(E=arguments,$=this,z=P,Y){if(q===void 0)return I(z);if(O)return q=setTimeout(V,A),M(z)}return q===void 0&&(q=setTimeout(V,A)),k}return A=N(A)||0,w(R)&&(H=!!R.leading,_=(O="maxWait"in R)?b(N(R.maxWait)||0,A):_,j="trailing"in R?!!R.trailing:j),U.cancel=function(){q!==void 0&&clearTimeout(q),D=0,E=z=$=q=void 0},U.flush=function(){return q===void 0?k:W(S())},U}}).call(this,n(3))},function(e,t,n){(function(a,o){var i="[object Arguments]",l="[object Map]",u="[object Object]",d="[object Set]",f=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,m=/^\w*$/,g=/^\./,y=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,b=/\\(\\)?/g,x=/^\[object .+?Constructor\]$/,S=/^(?:0|[1-9]\d*)$/,w={};w["[object Float32Array]"]=w["[object Float64Array]"]=w["[object Int8Array]"]=w["[object Int16Array]"]=w["[object Int32Array]"]=w["[object Uint8Array]"]=w["[object Uint8ClampedArray]"]=w["[object Uint16Array]"]=w["[object Uint32Array]"]=!0,w[i]=w["[object Array]"]=w["[object ArrayBuffer]"]=w["[object Boolean]"]=w["[object DataView]"]=w["[object Date]"]=w["[object Error]"]=w["[object Function]"]=w[l]=w["[object Number]"]=w[u]=w["[object RegExp]"]=w[d]=w["[object String]"]=w["[object WeakMap]"]=!1;var N=typeof a=="object"&&a&&a.Object===Object&&a,T=typeof self=="object"&&self&&self.Object===Object&&self,A=N||T||Function("return this")(),R=t&&!t.nodeType&&t,E=R&&typeof o=="object"&&o&&!o.nodeType&&o,$=E&&E.exports===R&&N.process,_=(function(){try{return $&&$.binding("util")}catch{}})(),k=_&&_.isTypedArray;function q(J,ce,Ee,Oe){var Ve=-1,ze=J?J.length:0;for(Oe&&ze&&(Ee=J[++Ve]);++Ve<ze;)Ee=ce(Ee,J[Ve],Ve,J);return Ee}function z(J,ce){for(var Ee=-1,Oe=J?J.length:0;++Ee<Oe;)if(ce(J[Ee],Ee,J))return!0;return!1}function D(J,ce,Ee,Oe,Ve){return Ve(J,(function(ze,st,Ut){Ee=Oe?(Oe=!1,ze):ce(Ee,ze,st,Ut)})),Ee}function H(J){var ce=!1;if(J!=null&&typeof J.toString!="function")try{ce=!!(J+"")}catch{}return ce}function O(J){var ce=-1,Ee=Array(J.size);return J.forEach((function(Oe,Ve){Ee[++ce]=[Ve,Oe]})),Ee}function j(J){var ce=-1,Ee=Array(J.size);return J.forEach((function(Oe){Ee[++ce]=Oe})),Ee}var M,I,F,V=Array.prototype,W=Function.prototype,U=Object.prototype,P=A["__core-js_shared__"],Y=(M=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+M:"",K=W.toString,Q=U.hasOwnProperty,ee=U.toString,G=RegExp("^"+K.call(Q).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oe=A.Symbol,ye=A.Uint8Array,me=U.propertyIsEnumerable,Se=V.splice,Be=(I=Object.keys,F=Object,function(J){return I(F(J))}),ae=zn(A,"DataView"),ge=zn(A,"Map"),fe=zn(A,"Promise"),qe=zn(A,"Set"),re=zn(A,"WeakMap"),xe=zn(Object,"create"),Te=Ft(ae),be=Ft(ge),ve=Ft(fe),pe=Ft(qe),_e=Ft(re),Pe=oe?oe.prototype:void 0,$e=Pe?Pe.valueOf:void 0,je=Pe?Pe.toString:void 0;function He(J){var ce=-1,Ee=J?J.length:0;for(this.clear();++ce<Ee;){var Oe=J[ce];this.set(Oe[0],Oe[1])}}function Ae(J){var ce=-1,Ee=J?J.length:0;for(this.clear();++ce<Ee;){var Oe=J[ce];this.set(Oe[0],Oe[1])}}function Me(J){var ce=-1,Ee=J?J.length:0;for(this.clear();++ce<Ee;){var Oe=J[ce];this.set(Oe[0],Oe[1])}}function Je(J){var ce=-1,Ee=J?J.length:0;for(this.__data__=new Me;++ce<Ee;)this.add(J[ce])}function dt(J){this.__data__=new Ae(J)}function Re(J,ce){var Ee=ia(J)||ic(J)?(function(st,Ut){for(var Rt=-1,_t=Array(st);++Rt<st;)_t[Rt]=Ut(Rt);return _t})(J.length,String):[],Oe=Ee.length,Ve=!!Oe;for(var ze in J)!Q.call(J,ze)||Ve&&(ze=="length"||oa(ze,Oe))||Ee.push(ze);return Ee}function Z(J,ce){for(var Ee=J.length;Ee--;)if(nt(J[Ee][0],ce))return Ee;return-1}He.prototype.clear=function(){this.__data__=xe?xe(null):{}},He.prototype.delete=function(J){return this.has(J)&&delete this.__data__[J]},He.prototype.get=function(J){var ce=this.__data__;if(xe){var Ee=ce[J];return Ee==="__lodash_hash_undefined__"?void 0:Ee}return Q.call(ce,J)?ce[J]:void 0},He.prototype.has=function(J){var ce=this.__data__;return xe?ce[J]!==void 0:Q.call(ce,J)},He.prototype.set=function(J,ce){return this.__data__[J]=xe&&ce===void 0?"__lodash_hash_undefined__":ce,this},Ae.prototype.clear=function(){this.__data__=[]},Ae.prototype.delete=function(J){var ce=this.__data__,Ee=Z(ce,J);return!(Ee<0)&&(Ee==ce.length-1?ce.pop():Se.call(ce,Ee,1),!0)},Ae.prototype.get=function(J){var ce=this.__data__,Ee=Z(ce,J);return Ee<0?void 0:ce[Ee][1]},Ae.prototype.has=function(J){return Z(this.__data__,J)>-1},Ae.prototype.set=function(J,ce){var Ee=this.__data__,Oe=Z(Ee,J);return Oe<0?Ee.push([J,ce]):Ee[Oe][1]=ce,this},Me.prototype.clear=function(){this.__data__={hash:new He,map:new(ge||Ae),string:new He}},Me.prototype.delete=function(J){return vr(this,J).delete(J)},Me.prototype.get=function(J){return vr(this,J).get(J)},Me.prototype.has=function(J){return vr(this,J).has(J)},Me.prototype.set=function(J,ce){return vr(this,J).set(J,ce),this},Je.prototype.add=Je.prototype.push=function(J){return this.__data__.set(J,"__lodash_hash_undefined__"),this},Je.prototype.has=function(J){return this.__data__.has(J)},dt.prototype.clear=function(){this.__data__=new Ae},dt.prototype.delete=function(J){return this.__data__.delete(J)},dt.prototype.get=function(J){return this.__data__.get(J)},dt.prototype.has=function(J){return this.__data__.has(J)},dt.prototype.set=function(J,ce){var Ee=this.__data__;if(Ee instanceof Ae){var Oe=Ee.__data__;if(!ge||Oe.length<199)return Oe.push([J,ce]),this;Ee=this.__data__=new Me(Oe)}return Ee.set(J,ce),this};var ot,vt=(ot=function(J,ce){return J&&tt(J,ce,Lo)},function(J,ce){if(J==null)return J;if(!kr(J))return ot(J,ce);for(var Ee=J.length,Oe=-1,Ve=Object(J);++Oe<Ee&&ce(Ve[Oe],Oe,Ve)!==!1;);return J}),tt=(function(J){return function(ce,Ee,Oe){for(var Ve=-1,ze=Object(ce),st=Oe(ce),Ut=st.length;Ut--;){var Rt=st[++Ve];if(Ee(ze[Rt],Rt,ze)===!1)break}return ce}})();function ft(J,ce){for(var Ee=0,Oe=(ce=lr(ce,J)?[ce]:wn(ce)).length;J!=null&&Ee<Oe;)J=J[pt(ce[Ee++])];return Ee&&Ee==Oe?J:void 0}function ir(J,ce){return J!=null&&ce in Object(J)}function tn(J,ce,Ee,Oe,Ve){return J===ce||(J==null||ce==null||!la(J)&&!Ms(ce)?J!=J&&ce!=ce:(function(ze,st,Ut,Rt,_t,Dt){var er=ia(ze),bn=ia(st),fn="[object Array]",rn="[object Array]";er||(fn=(fn=Hn(ze))==i?u:fn),bn||(rn=(rn=Hn(st))==i?u:rn);var Un=fn==u&&!H(ze),Vn=rn==u&&!H(st),pn=fn==rn;if(pn&&!Un)return Dt||(Dt=new dt),er||xm(ze)?ln(ze,st,Ut,Rt,_t,Dt):(function(Ot,Mt,Gn,ca,qo,On,Yn){switch(Gn){case"[object DataView]":if(Ot.byteLength!=Mt.byteLength||Ot.byteOffset!=Mt.byteOffset)return!1;Ot=Ot.buffer,Mt=Mt.buffer;case"[object ArrayBuffer]":return!(Ot.byteLength!=Mt.byteLength||!ca(new ye(Ot),new ye(Mt)));case"[object Boolean]":case"[object Date]":case"[object Number]":return nt(+Ot,+Mt);case"[object Error]":return Ot.name==Mt.name&&Ot.message==Mt.message;case"[object RegExp]":case"[object String]":return Ot==Mt+"";case l:var ua=O;case d:var Ps=2&On;if(ua||(ua=j),Ot.size!=Mt.size&&!Ps)return!1;var da=Yn.get(Ot);if(da)return da==Mt;On|=1,Yn.set(Ot,Mt);var Ls=ln(ua(Ot),ua(Mt),ca,qo,On,Yn);return Yn.delete(Ot),Ls;case"[object Symbol]":if($e)return $e.call(Ot)==$e.call(Mt)}return!1})(ze,st,fn,Ut,Rt,_t,Dt);if(!(2&_t)){var cc=Un&&Q.call(ze,"__wrapped__"),$d=Vn&&Q.call(st,"__wrapped__");if(cc||$d){var uc=cc?ze.value():ze,Td=$d?st.value():st;return Dt||(Dt=new dt),Ut(uc,Td,Rt,_t,Dt)}}return pn?(Dt||(Dt=new dt),(function(Ot,Mt,Gn,ca,qo,On){var Yn=2&qo,ua=Lo(Ot),Ps=ua.length,da=Lo(Mt).length;if(Ps!=da&&!Yn)return!1;for(var Ls=Ps;Ls--;){var fa=ua[Ls];if(!(Yn?fa in Mt:Q.call(Mt,fa)))return!1}var dc=On.get(Ot);if(dc&&On.get(Mt))return dc==Mt;var Bs=!0;On.set(Ot,Mt),On.set(Mt,Ot);for(var fc=Yn;++Ls<Ps;){fa=ua[Ls];var Ii=Ot[fa],Xa=Mt[fa];if(ca)var Mr=Yn?ca(Xa,Ii,fa,Mt,Ot,On):ca(Ii,Xa,fa,Ot,Mt,On);if(!(Mr===void 0?Ii===Xa||Gn(Ii,Xa,ca,qo,On):Mr)){Bs=!1;break}fc||(fc=fa=="constructor")}if(Bs&&!fc){var qs=Ot.constructor,Fs=Mt.constructor;qs==Fs||!("constructor"in Ot)||!("constructor"in Mt)||typeof qs=="function"&&qs instanceof qs&&typeof Fs=="function"&&Fs instanceof Fs||(Bs=!1)}return On.delete(Ot),On.delete(Mt),Bs})(ze,st,Ut,Rt,_t,Dt)):!1})(J,ce,tn,Ee,Oe,Ve))}function Zn(J){return!(!la(J)||(function(ce){return!!Y&&Y in ce})(J))&&(yn(J)||H(J)?G:x).test(Ft(J))}function nn(J){return typeof J=="function"?J:J==null?Bo:typeof J=="object"?ia(J)?(function(Oe,Ve){return lr(Oe)&&cr(Ve)?Wa(pt(Oe),Ve):function(ze){var st=(function(Ut,Rt,_t){var Dt=Ut==null?void 0:ft(Ut,Rt);return Dt===void 0?_t:Dt})(ze,Oe);return st===void 0&&st===Ve?(function(Ut,Rt){return Ut!=null&&(function(_t,Dt,er){Dt=lr(Dt,_t)?[Dt]:wn(Dt);for(var bn,fn=-1,rn=Dt.length;++fn<rn;){var Un=pt(Dt[fn]);if(!(bn=_t!=null&&er(_t,Un)))break;_t=_t[Un]}return bn||!!(rn=_t?_t.length:0)&&Tn(rn)&&oa(Un,rn)&&(ia(_t)||ic(_t))})(Ut,Rt,ir)})(ze,Oe):tn(Ve,st,void 0,3)}})(J[0],J[1]):(function(Oe){var Ve=(function(ze){for(var st=Lo(ze),Ut=st.length;Ut--;){var Rt=st[Ut],_t=ze[Rt];st[Ut]=[Rt,_t,cr(_t)]}return st})(Oe);return Ve.length==1&&Ve[0][2]?Wa(Ve[0][0],Ve[0][1]):function(ze){return ze===Oe||(function(st,Ut,Rt,_t){var Dt=Rt.length,er=Dt;if(st==null)return!er;for(st=Object(st);Dt--;){var bn=Rt[Dt];if(bn[2]?bn[1]!==st[bn[0]]:!(bn[0]in st))return!1}for(;++Dt<er;){var fn=(bn=Rt[Dt])[0],rn=st[fn],Un=bn[1];if(bn[2]){if(rn===void 0&&!(fn in st))return!1}else{var Vn=new dt,pn;if(!(pn===void 0?tn(Un,rn,_t,3,Vn):pn))return!1}}return!0})(ze,Oe,Ve)}})(J):lr(ce=J)?(Ee=pt(ce),function(Oe){return Oe?.[Ee]}):(function(Oe){return function(Ve){return ft(Ve,Oe)}})(ce);var ce,Ee}function Jn(J){if(Ee=(ce=J)&&ce.constructor,Oe=typeof Ee=="function"&&Ee.prototype||U,ce!==Oe)return Be(J);var ce,Ee,Oe,Ve=[];for(var ze in Object(J))Q.call(J,ze)&&ze!="constructor"&&Ve.push(ze);return Ve}function wn(J){return ia(J)?J:ks(J)}function ln(J,ce,Ee,Oe,Ve,ze){var st=2&Ve,Ut=J.length,Rt=ce.length;if(Ut!=Rt&&!(st&&Rt>Ut))return!1;var _t=ze.get(J);if(_t&&ze.get(ce))return _t==ce;var Dt=-1,er=!0,bn=1&Ve?new Je:void 0;for(ze.set(J,ce),ze.set(ce,J);++Dt<Ut;){var fn=J[Dt],rn=ce[Dt];if(Oe)var Un=st?Oe(rn,fn,Dt,ce,J,ze):Oe(fn,rn,Dt,J,ce,ze);if(Un!==void 0){if(Un)continue;er=!1;break}if(bn){if(!z(ce,(function(Vn,pn){if(!bn.has(pn)&&(fn===Vn||Ee(fn,Vn,Oe,Ve,ze)))return bn.add(pn)}))){er=!1;break}}else if(fn!==rn&&!Ee(fn,rn,Oe,Ve,ze)){er=!1;break}}return ze.delete(J),ze.delete(ce),er}function vr(J,ce){var Ee,Oe,Ve=J.__data__;return((Oe=typeof(Ee=ce))=="string"||Oe=="number"||Oe=="symbol"||Oe=="boolean"?Ee!=="__proto__":Ee===null)?Ve[typeof ce=="string"?"string":"hash"]:Ve.map}function zn(J,ce){var Ee=(function(Oe,Ve){return Oe?.[Ve]})(J,ce);return Zn(Ee)?Ee:void 0}var Hn=function(J){return ee.call(J)};function oa(J,ce){return!!(ce=ce??9007199254740991)&&(typeof J=="number"||S.test(J))&&J>-1&&J%1==0&&J<ce}function lr(J,ce){if(ia(J))return!1;var Ee=typeof J;return!(Ee!="number"&&Ee!="symbol"&&Ee!="boolean"&&J!=null&&!lc(J))||m.test(J)||!f.test(J)||ce!=null&&J in Object(ce)}function cr(J){return J==J&&!la(J)}function Wa(J,ce){return function(Ee){return Ee!=null&&Ee[J]===ce&&(ce!==void 0||J in Object(Ee))}}(ae&&Hn(new ae(new ArrayBuffer(1)))!="[object DataView]"||ge&&Hn(new ge)!=l||fe&&Hn(fe.resolve())!="[object Promise]"||qe&&Hn(new qe)!=d||re&&Hn(new re)!="[object WeakMap]")&&(Hn=function(J){var ce=ee.call(J),Ee=ce==u?J.constructor:void 0,Oe=Ee?Ft(Ee):void 0;if(Oe)switch(Oe){case Te:return"[object DataView]";case be:return l;case ve:return"[object Promise]";case pe:return d;case _e:return"[object WeakMap]"}return ce});var ks=Ye((function(J){var ce;J=(ce=J)==null?"":(function(Oe){if(typeof Oe=="string")return Oe;if(lc(Oe))return je?je.call(Oe):"";var Ve=Oe+"";return Ve=="0"&&1/Oe==-1/0?"-0":Ve})(ce);var Ee=[];return g.test(J)&&Ee.push(""),J.replace(y,(function(Oe,Ve,ze,st){Ee.push(ze?st.replace(b,"$1"):Ve||Oe)})),Ee}));function pt(J){if(typeof J=="string"||lc(J))return J;var ce=J+"";return ce=="0"&&1/J==-1/0?"-0":ce}function Ft(J){if(J!=null){try{return K.call(J)}catch{}try{return J+""}catch{}}return""}function Ye(J,ce){if(typeof J!="function"||ce&&typeof ce!="function")throw new TypeError("Expected a function");var Ee=function(){var Oe=arguments,Ve=ce?ce.apply(this,Oe):Oe[0],ze=Ee.cache;if(ze.has(Ve))return ze.get(Ve);var st=J.apply(this,Oe);return Ee.cache=ze.set(Ve,st),st};return Ee.cache=new(Ye.Cache||Me),Ee}function nt(J,ce){return J===ce||J!=J&&ce!=ce}function ic(J){return(function(ce){return Ms(ce)&&kr(ce)})(J)&&Q.call(J,"callee")&&(!me.call(J,"callee")||ee.call(J)==i)}Ye.Cache=Me;var ia=Array.isArray;function kr(J){return J!=null&&Tn(J.length)&&!yn(J)}function yn(J){var ce=la(J)?ee.call(J):"";return ce=="[object Function]"||ce=="[object GeneratorFunction]"}function Tn(J){return typeof J=="number"&&J>-1&&J%1==0&&J<=9007199254740991}function la(J){var ce=typeof J;return!!J&&(ce=="object"||ce=="function")}function Ms(J){return!!J&&typeof J=="object"}function lc(J){return typeof J=="symbol"||Ms(J)&&ee.call(J)=="[object Symbol]"}var xm=k?(function(J){return function(ce){return J(ce)}})(k):function(J){return Ms(J)&&Tn(J.length)&&!!w[ee.call(J)]};function Lo(J){return kr(J)?Re(J):Jn(J)}function Bo(J){return J}o.exports=function(J,ce,Ee){var Oe=ia(J)?q:D,Ve=arguments.length<3;return Oe(J,nn(ce),Ee,Ve,vt)}}).call(this,n(3),n(7)(e))},function(e,t){e.exports=function(n){return n.webpackPolyfill||(n.deprecate=function(){},n.paths=[],n.children||(n.children=[]),Object.defineProperty(n,"loaded",{enumerable:!0,get:function(){return n.l}}),Object.defineProperty(n,"id",{enumerable:!0,get:function(){return n.i}}),n.webpackPolyfill=1),n}},function(e,t){String.prototype.padEnd||(String.prototype.padEnd=function(n,a){return n>>=0,a=String(a!==void 0?a:" "),this.length>n?String(this):((n-=this.length)>a.length&&(a+=a.repeat(n/a.length)),String(this)+a.slice(0,n))})},function(e,t,n){function a(P,Y,K){return Y in P?Object.defineProperty(P,Y,{value:K,enumerable:!0,configurable:!0,writable:!0}):P[Y]=K,P}function o(P){if(Symbol.iterator in Object(P)||Object.prototype.toString.call(P)==="[object Arguments]")return Array.from(P)}function i(P){return(function(Y){if(Array.isArray(Y)){for(var K=0,Q=new Array(Y.length);K<Y.length;K++)Q[K]=Y[K];return Q}})(P)||o(P)||(function(){throw new TypeError("Invalid attempt to spread non-iterable instance")})()}function l(P){if(Array.isArray(P))return P}function u(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function d(P,Y){if(!(P instanceof Y))throw new TypeError("Cannot call a class as a function")}function f(P,Y){for(var K=0;K<Y.length;K++){var Q=Y[K];Q.enumerable=Q.enumerable||!1,Q.configurable=!0,"value"in Q&&(Q.writable=!0),Object.defineProperty(P,Q.key,Q)}}function m(P){return(m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(Y){return typeof Y}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y})(P)}function g(P){return(g=typeof Symbol=="function"&&m(Symbol.iterator)==="symbol"?function(Y){return m(Y)}:function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":m(Y)})(P)}function y(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function b(P){return(b=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)})(P)}function x(P,Y){return(x=Object.setPrototypeOf||function(K,Q){return K.__proto__=Q,K})(P,Y)}n.r(t),n.d(t,"getCountries",(function(){return H})),n.d(t,"getCountryByDialCode",(function(){return W}));var S=n(0),w=n.n(S),N=n(5),T=n.n(N),A=n(4),R=n.n(A),E=n(6),$=n.n(E),_=n(2),k=n.n(_),q=n(1),z=n.n(q);n(8);function D(P,Y){return l(P)||(function(K,Q){var ee=[],G=!0,oe=!1,ye=void 0;try{for(var me,Se=K[Symbol.iterator]();!(G=(me=Se.next()).done)&&(ee.push(me.value),!Q||ee.length!==Q);G=!0);}catch(Be){oe=!0,ye=Be}finally{try{G||Se.return==null||Se.return()}finally{if(oe)throw ye}}return ee})(P,Y)||u()}var H=[["Afghanistan",["asia"],"af","93"],["Albania",["europe"],"al","355"],["Algeria",["africa","north-africa"],"dz","213"],["Andorra",["europe"],"ad","376"],["Angola",["africa"],"ao","244"],["Antigua and Barbuda",["america","carribean"],"ag","1268"],["Argentina",["america","south-america"],"ar","54","(..) ........",0,["11","221","223","261","264","2652","280","2905","291","2920","2966","299","341","342","343","351","376","379","381","3833","385","387","388"]],["Armenia",["asia","ex-ussr"],"am","374",".. ......"],["Aruba",["america","carribean"],"aw","297"],["Australia",["oceania"],"au","61","(..) .... ....",0,["2","3","4","7","8","02","03","04","07","08"]],["Austria",["europe","eu-union"],"at","43"],["Azerbaijan",["asia","ex-ussr"],"az","994","(..) ... .. .."],["Bahamas",["america","carribean"],"bs","1242"],["Bahrain",["middle-east"],"bh","973"],["Bangladesh",["asia"],"bd","880"],["Barbados",["america","carribean"],"bb","1246"],["Belarus",["europe","ex-ussr"],"by","375","(..) ... .. .."],["Belgium",["europe","eu-union"],"be","32","... .. .. .."],["Belize",["america","central-america"],"bz","501"],["Benin",["africa"],"bj","229"],["Bhutan",["asia"],"bt","975"],["Bolivia",["america","south-america"],"bo","591"],["Bosnia and Herzegovina",["europe","ex-yugos"],"ba","387"],["Botswana",["africa"],"bw","267"],["Brazil",["america","south-america"],"br","55","(..) ........."],["British Indian Ocean Territory",["asia"],"io","246"],["Brunei",["asia"],"bn","673"],["Bulgaria",["europe","eu-union"],"bg","359"],["Burkina Faso",["africa"],"bf","226"],["Burundi",["africa"],"bi","257"],["Cambodia",["asia"],"kh","855"],["Cameroon",["africa"],"cm","237"],["Canada",["america","north-america"],"ca","1","(...) ...-....",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde",["africa"],"cv","238"],["Caribbean Netherlands",["america","carribean"],"bq","599","",1],["Central African Republic",["africa"],"cf","236"],["Chad",["africa"],"td","235"],["Chile",["america","south-america"],"cl","56"],["China",["asia"],"cn","86","..-........."],["Colombia",["america","south-america"],"co","57","... ... ...."],["Comoros",["africa"],"km","269"],["Congo",["africa"],"cd","243"],["Congo",["africa"],"cg","242"],["Costa Rica",["america","central-america"],"cr","506","....-...."],["Côte d’Ivoire",["africa"],"ci","225",".. .. .. .."],["Croatia",["europe","eu-union","ex-yugos"],"hr","385"],["Cuba",["america","carribean"],"cu","53"],["Curaçao",["america","carribean"],"cw","599","",0],["Cyprus",["europe","eu-union"],"cy","357",".. ......"],["Czech Republic",["europe","eu-union"],"cz","420","... ... ..."],["Denmark",["europe","eu-union","baltic"],"dk","45",".. .. .. .."],["Djibouti",["africa"],"dj","253"],["Dominica",["america","carribean"],"dm","1767"],["Dominican Republic",["america","carribean"],"do","1","",2,["809","829","849"]],["Ecuador",["america","south-america"],"ec","593"],["Egypt",["africa","north-africa"],"eg","20"],["El Salvador",["america","central-america"],"sv","503","....-...."],["Equatorial Guinea",["africa"],"gq","240"],["Eritrea",["africa"],"er","291"],["Estonia",["europe","eu-union","ex-ussr","baltic"],"ee","372",".... ......"],["Ethiopia",["africa"],"et","251"],["Fiji",["oceania"],"fj","679"],["Finland",["europe","eu-union","baltic"],"fi","358",".. ... .. .."],["France",["europe","eu-union"],"fr","33",". .. .. .. .."],["French Guiana",["america","south-america"],"gf","594"],["French Polynesia",["oceania"],"pf","689"],["Gabon",["africa"],"ga","241"],["Gambia",["africa"],"gm","220"],["Georgia",["asia","ex-ussr"],"ge","995"],["Germany",["europe","eu-union","baltic"],"de","49",".... ........"],["Ghana",["africa"],"gh","233"],["Greece",["europe","eu-union"],"gr","30"],["Grenada",["america","carribean"],"gd","1473"],["Guadeloupe",["america","carribean"],"gp","590","",0],["Guam",["oceania"],"gu","1671"],["Guatemala",["america","central-america"],"gt","502","....-...."],["Guinea",["africa"],"gn","224"],["Guinea-Bissau",["africa"],"gw","245"],["Guyana",["america","south-america"],"gy","592"],["Haiti",["america","carribean"],"ht","509","....-...."],["Honduras",["america","central-america"],"hn","504"],["Hong Kong",["asia"],"hk","852",".... ...."],["Hungary",["europe","eu-union"],"hu","36"],["Iceland",["europe"],"is","354","... ...."],["India",["asia"],"in","91",".....-....."],["Indonesia",["asia"],"id","62"],["Iran",["middle-east"],"ir","98","... ... ...."],["Iraq",["middle-east"],"iq","964"],["Ireland",["europe","eu-union"],"ie","353",".. ......."],["Israel",["middle-east"],"il","972","... ... ...."],["Italy",["europe","eu-union"],"it","39","... .......",0],["Jamaica",["america","carribean"],"jm","1876"],["Japan",["asia"],"jp","81",".. .... ...."],["Jordan",["middle-east"],"jo","962"],["Kazakhstan",["asia","ex-ussr"],"kz","7","... ...-..-..",1,["310","311","312","313","315","318","321","324","325","326","327","336","7172","73622"]],["Kenya",["africa"],"ke","254"],["Kiribati",["oceania"],"ki","686"],["Kosovo",["europe","ex-yugos"],"xk","383"],["Kuwait",["middle-east"],"kw","965"],["Kyrgyzstan",["asia","ex-ussr"],"kg","996","... ... ..."],["Laos",["asia"],"la","856"],["Latvia",["europe","eu-union","ex-ussr","baltic"],"lv","371",".. ... ..."],["Lebanon",["middle-east"],"lb","961"],["Lesotho",["africa"],"ls","266"],["Liberia",["africa"],"lr","231"],["Libya",["africa","north-africa"],"ly","218"],["Liechtenstein",["europe"],"li","423"],["Lithuania",["europe","eu-union","ex-ussr","baltic"],"lt","370"],["Luxembourg",["europe","eu-union"],"lu","352"],["Macau",["asia"],"mo","853"],["Macedonia",["europe","ex-yugos"],"mk","389"],["Madagascar",["africa"],"mg","261"],["Malawi",["africa"],"mw","265"],["Malaysia",["asia"],"my","60","..-....-...."],["Maldives",["asia"],"mv","960"],["Mali",["africa"],"ml","223"],["Malta",["europe","eu-union"],"mt","356"],["Marshall Islands",["oceania"],"mh","692"],["Martinique",["america","carribean"],"mq","596"],["Mauritania",["africa"],"mr","222"],["Mauritius",["africa"],"mu","230"],["Mexico",["america","central-america"],"mx","52","... ... ....",0,["55","81","33","656","664","998","774","229"]],["Micronesia",["oceania"],"fm","691"],["Moldova",["europe"],"md","373","(..) ..-..-.."],["Monaco",["europe"],"mc","377"],["Mongolia",["asia"],"mn","976"],["Montenegro",["europe","ex-yugos"],"me","382"],["Morocco",["africa","north-africa"],"ma","212"],["Mozambique",["africa"],"mz","258"],["Myanmar",["asia"],"mm","95"],["Namibia",["africa"],"na","264"],["Nauru",["africa"],"nr","674"],["Nepal",["asia"],"np","977"],["Netherlands",["europe","eu-union"],"nl","31",".. ........"],["New Caledonia",["oceania"],"nc","687"],["New Zealand",["oceania"],"nz","64","...-...-...."],["Nicaragua",["america","central-america"],"ni","505"],["Niger",["africa"],"ne","227"],["Nigeria",["africa"],"ng","234"],["North Korea",["asia"],"kp","850"],["Norway",["europe","baltic"],"no","47","... .. ..."],["Oman",["middle-east"],"om","968"],["Pakistan",["asia"],"pk","92","...-......."],["Palau",["oceania"],"pw","680"],["Palestine",["middle-east"],"ps","970"],["Panama",["america","central-america"],"pa","507"],["Papua New Guinea",["oceania"],"pg","675"],["Paraguay",["america","south-america"],"py","595"],["Peru",["america","south-america"],"pe","51"],["Philippines",["asia"],"ph","63",".... ......."],["Poland",["europe","eu-union","baltic"],"pl","48","...-...-..."],["Portugal",["europe","eu-union"],"pt","351"],["Puerto Rico",["america","carribean"],"pr","1","",3,["787","939"]],["Qatar",["middle-east"],"qa","974"],["Réunion",["africa"],"re","262"],["Romania",["europe","eu-union"],"ro","40"],["Russia",["europe","asia","ex-ussr","baltic"],"ru","7","(...) ...-..-..",0],["Rwanda",["africa"],"rw","250"],["Saint Kitts and Nevis",["america","carribean"],"kn","1869"],["Saint Lucia",["america","carribean"],"lc","1758"],["Saint Vincent and the Grenadines",["america","carribean"],"vc","1784"],["Samoa",["oceania"],"ws","685"],["San Marino",["europe"],"sm","378"],["São Tomé and Príncipe",["africa"],"st","239"],["Saudi Arabia",["middle-east"],"sa","966"],["Senegal",["africa"],"sn","221"],["Serbia",["europe","ex-yugos"],"rs","381"],["Seychelles",["africa"],"sc","248"],["Sierra Leone",["africa"],"sl","232"],["Singapore",["asia"],"sg","65","....-...."],["Slovakia",["europe","eu-union"],"sk","421"],["Slovenia",["europe","eu-union","ex-yugos"],"si","386"],["Solomon Islands",["oceania"],"sb","677"],["Somalia",["africa"],"so","252"],["South Africa",["africa"],"za","27"],["South Korea",["asia"],"kr","82","... .... ...."],["South Sudan",["africa","north-africa"],"ss","211"],["Spain",["europe","eu-union"],"es","34","... ... ..."],["Sri Lanka",["asia"],"lk","94"],["Sudan",["africa"],"sd","249"],["Suriname",["america","south-america"],"sr","597"],["Swaziland",["africa"],"sz","268"],["Sweden",["europe","eu-union","baltic"],"se","46","(...) ...-..."],["Switzerland",["europe"],"ch","41",".. ... .. .."],["Syria",["middle-east"],"sy","963"],["Taiwan",["asia"],"tw","886"],["Tajikistan",["asia","ex-ussr"],"tj","992"],["Tanzania",["africa"],"tz","255"],["Thailand",["asia"],"th","66"],["Timor-Leste",["asia"],"tl","670"],["Togo",["africa"],"tg","228"],["Tonga",["oceania"],"to","676"],["Trinidad and Tobago",["america","carribean"],"tt","1868"],["Tunisia",["africa","north-africa"],"tn","216"],["Turkey",["europe"],"tr","90","... ... .. .."],["Turkmenistan",["asia","ex-ussr"],"tm","993"],["Tuvalu",["asia"],"tv","688"],["Uganda",["africa"],"ug","256"],["Ukraine",["europe","ex-ussr"],"ua","380","(..) ... .. .."],["United Arab Emirates",["middle-east"],"ae","971"],["United Kingdom",["europe","eu-union"],"gb","44",".... ......"],["United States",["america","north-america"],"us","1","(...) ...-....",0,["907","205","251","256","334","479","501","870","480","520","602","623","928","209","213","310","323","408","415","510","530","559","562","619","626","650","661","707","714","760","805","818","831","858","909","916","925","949","951","303","719","970","203","860","202","302","239","305","321","352","386","407","561","727","772","813","850","863","904","941","954","229","404","478","706","770","912","808","319","515","563","641","712","208","217","309","312","618","630","708","773","815","847","219","260","317","574","765","812","316","620","785","913","270","502","606","859","225","318","337","504","985","413","508","617","781","978","301","410","207","231","248","269","313","517","586","616","734","810","906","989","218","320","507","612","651","763","952","314","417","573","636","660","816","228","601","662","406","252","336","704","828","910","919","701","308","402","603","201","609","732","856","908","973","505","575","702","775","212","315","516","518","585","607","631","716","718","845","914","216","330","419","440","513","614","740","937","405","580","918","503","541","215","412","570","610","717","724","814","401","803","843","864","605","423","615","731","865","901","931","210","214","254","281","325","361","409","432","512","713","806","817","830","903","915","936","940","956","972","979","435","801","276","434","540","703","757","804","802","206","253","360","425","509","262","414","608","715","920","304","307"]],["Uruguay",["america","south-america"],"uy","598"],["Uzbekistan",["asia","ex-ussr"],"uz","998",".. ... .. .."],["Vanuatu",["oceania"],"vu","678"],["Vatican City",["europe"],"va","39",".. .... ....",1],["Venezuela",["america","south-america"],"ve","58"],["Vietnam",["asia"],"vn","84"],["Yemen",["middle-east"],"ye","967"],["Zambia",["africa"],"zm","260"],["Zimbabwe",["africa"],"zw","263"]],O=[["American Samoa",["oceania"],"as","1684"],["Anguilla",["america","carribean"],"ai","1264"],["Bermuda",["america","north-america"],"bm","1441"],["British Virgin Islands",["america","carribean"],"vg","1284"],["Cayman Islands",["america","carribean"],"ky","1345"],["Cook Islands",["oceania"],"ck","682"],["Falkland Islands",["america","south-america"],"fk","500"],["Faroe Islands",["europe"],"fo","298"],["Gibraltar",["europe"],"gi","350"],["Greenland",["america"],"gl","299"],["Jersey",["europe","eu-union"],"je","44",".... ......"],["Montserrat",["america","carribean"],"ms","1664"],["Niue",["asia"],"nu","683"],["Norfolk Island",["oceania"],"nf","672"],["Northern Mariana Islands",["oceania"],"mp","1670"],["Saint Barthélemy",["america","carribean"],"bl","590","",1],["Saint Helena",["africa"],"sh","290"],["Saint Martin",["america","carribean"],"mf","590","",2],["Saint Pierre and Miquelon",["america","north-america"],"pm","508"],["Sint Maarten",["america","carribean"],"sx","1721"],["Tokelau",["oceania"],"tk","690"],["Turks and Caicos Islands",["america","carribean"],"tc","1649"],["U.S. Virgin Islands",["america","carribean"],"vi","1340"],["Wallis and Futuna",["oceania"],"wf","681"]];function j(P,Y,K,Q,ee){return!K||ee?P+"".padEnd(Y.length,".")+" "+Q:P+"".padEnd(Y.length,".")+" "+K}function M(P,Y,K,Q,ee){var G,oe,ye=[];return oe=Y===!0,[(G=[]).concat.apply(G,i(P.map((function(me){var Se={name:me[0],regions:me[1],iso2:me[2],countryCode:me[3],dialCode:me[3],format:j(K,me[3],me[4],Q,ee),priority:me[5]||0},Be=[];return me[6]&&me[6].map((function(ae){var ge=(function(fe){for(var qe=1;qe<arguments.length;qe++){var re=arguments[qe]!=null?arguments[qe]:{},xe=Object.keys(re);typeof Object.getOwnPropertySymbols=="function"&&(xe=xe.concat(Object.getOwnPropertySymbols(re).filter((function(Te){return Object.getOwnPropertyDescriptor(re,Te).enumerable})))),xe.forEach((function(Te){a(fe,Te,re[Te])}))}return fe})({},Se);ge.dialCode=me[3]+ae,ge.isAreaCode=!0,ge.areaCodeLength=ae.length,Be.push(ge)})),Be.length>0?(Se.mainCode=!0,oe||Y.constructor.name==="Array"&&Y.includes(me[2])?(Se.hasAreaCodes=!0,[Se].concat(Be)):(ye=ye.concat(Be),[Se])):[Se]})))),ye]}function I(P,Y,K,Q){if(K!==null){var ee=Object.keys(K),G=Object.values(K);ee.forEach((function(oe,ye){if(Q)return P.push([oe,G[ye]]);var me=P.findIndex((function(Be){return Be[0]===oe}));if(me===-1){var Se=[oe];Se[Y]=G[ye],P.push(Se)}else P[me][Y]=G[ye]}))}}function F(P,Y){return Y.length===0?P:P.map((function(K){var Q=Y.findIndex((function(G){return G[0]===K[2]}));if(Q===-1)return K;var ee=Y[Q];return ee[1]&&(K[4]=ee[1]),ee[3]&&(K[5]=ee[3]),ee[2]&&(K[6]=ee[2]),K}))}var V=function P(Y,K,Q,ee,G,oe,ye,me,Se,Be,ae,ge,fe,qe){d(this,P),this.filterRegions=function($e,je){if(typeof $e=="string"){var He=$e;return je.filter((function(Ae){return Ae.regions.some((function(Me){return Me===He}))}))}return je.filter((function(Ae){return $e.map((function(Me){return Ae.regions.some((function(Je){return Je===Me}))})).some((function(Me){return Me}))}))},this.sortTerritories=function($e,je){var He=[].concat(i($e),i(je));return He.sort((function(Ae,Me){return Ae.name<Me.name?-1:Ae.name>Me.name?1:0})),He},this.getFilteredCountryList=function($e,je,He){return $e.length===0?je:He?$e.map((function(Ae){var Me=je.find((function(Je){return Je.iso2===Ae}));if(Me)return Me})).filter((function(Ae){return Ae})):je.filter((function(Ae){return $e.some((function(Me){return Me===Ae.iso2}))}))},this.localizeCountries=function($e,je,He){for(var Ae=0;Ae<$e.length;Ae++)je[$e[Ae].iso2]!==void 0?$e[Ae].localName=je[$e[Ae].iso2]:je[$e[Ae].name]!==void 0&&($e[Ae].localName=je[$e[Ae].name]);return He||$e.sort((function(Me,Je){return Me.localName<Je.localName?-1:Me.localName>Je.localName?1:0})),$e},this.getCustomAreas=function($e,je){for(var He=[],Ae=0;Ae<je.length;Ae++){var Me=JSON.parse(JSON.stringify($e));Me.dialCode+=je[Ae],He.push(Me)}return He},this.excludeCountries=function($e,je){return je.length===0?$e:$e.filter((function(He){return!je.includes(He.iso2)}))};var re=(function($e,je,He){var Ae=[];return I(Ae,1,$e,!0),I(Ae,3,je),I(Ae,2,He),Ae})(me,Se,Be),xe=F(JSON.parse(JSON.stringify(H)),re),Te=F(JSON.parse(JSON.stringify(O)),re),be=D(M(xe,Y,ge,fe,qe),2),ve=be[0],pe=be[1];if(K){var _e=D(M(Te,Y,ge,fe,qe),2),Pe=_e[0];_e[1],ve=this.sortTerritories(Pe,ve)}Q&&(ve=this.filterRegions(Q,ve)),this.onlyCountries=this.localizeCountries(this.excludeCountries(this.getFilteredCountryList(ee,ve,ye.includes("onlyCountries")),oe),ae,ye.includes("onlyCountries")),this.preferredCountries=G.length===0?[]:this.localizeCountries(this.getFilteredCountryList(G,ve,ye.includes("preferredCountries")),ae,ye.includes("preferredCountries")),this.hiddenAreaCodes=this.excludeCountries(this.getFilteredCountryList(ee,pe),oe)},W=function(P){if(!P)return[];var Y=H.find((function(K){return K[3]==P}));return Y!==void 0?{countryCode:Y[0],regions:Y[1],country:Y[2],dialCode:Y[3]}:{}},U=(function(P){function Y(ee){var G;d(this,Y),(G=(function(re,xe){return!xe||g(xe)!=="object"&&typeof xe!="function"?y(re):xe})(this,b(Y).call(this,ee))).getProbableCandidate=R()((function(re){return re&&re.length!==0?G.state.onlyCountries.filter((function(xe){return k()(xe.name.toLowerCase(),re.toLowerCase())}),y(y(G)))[0]:null})),G.guessSelectedCountry=R()((function(re,xe,Te,be){var ve;if(G.props.enableAreaCodes===!1&&(be.some((function(Pe){if(k()(re,Pe.dialCode))return Te.some((function($e){if(Pe.iso2===$e.iso2&&$e.mainCode)return ve=$e,!0})),!0})),ve))return ve;var pe=Te.find((function(Pe){return Pe.iso2==xe}));if(re.trim()==="")return pe;var _e=Te.reduce((function(Pe,$e){return k()(re,$e.dialCode)&&($e.dialCode.length>Pe.dialCode.length||$e.dialCode.length===Pe.dialCode.length&&$e.priority<Pe.priority)?$e:Pe}),{dialCode:"",priority:10001},y(y(G)));return _e.name?_e:pe})),G.updateCountry=function(re){var xe,Te=G.state.onlyCountries;(xe=re.indexOf(0)>="0"&&re.indexOf(0)<="9"?Te.find((function(be){return be.dialCode==+re})):Te.find((function(be){return be.iso2==re})))&&xe.dialCode&&G.setState({selectedCountry:xe,formattedNumber:G.props.disableCountryCode?"":G.formatNumber(xe.dialCode,xe)})},G.scrollTo=function(re,xe){if(re){var Te=G.dropdownRef;if(Te&&document.body){var be=Te.offsetHeight,ve=Te.getBoundingClientRect().top+document.body.scrollTop,pe=ve+be,_e=re,Pe=_e.getBoundingClientRect(),$e=_e.offsetHeight,je=Pe.top+document.body.scrollTop,He=je+$e,Ae=je-ve+Te.scrollTop,Me=be/2-$e/2;if(G.props.enableSearch?je<ve+32:je<ve)xe&&(Ae-=Me),Te.scrollTop=Ae;else if(He>pe){xe&&(Ae+=Me);var Je=be-$e;Te.scrollTop=Ae-Je}}}},G.scrollToTop=function(){var re=G.dropdownRef;re&&document.body&&(re.scrollTop=0)},G.formatNumber=function(re,xe){if(!xe)return re;var Te,be=xe.format,ve=G.props,pe=ve.disableCountryCode,_e=ve.enableAreaCodeStretch,Pe=ve.enableLongNumbers,$e=ve.autoFormat;if(pe?((Te=be.split(" ")).shift(),Te=Te.join(" ")):_e&&xe.isAreaCode?((Te=be.split(" "))[1]=Te[1].replace(/\.+/,"".padEnd(xe.areaCodeLength,".")),Te=Te.join(" ")):Te=be,!re||re.length===0)return pe?"":G.props.prefix;if(re&&re.length<2||!Te||!$e)return pe?re:G.props.prefix+re;var je,He=$()(Te,(function(Ae,Me){if(Ae.remainingText.length===0)return Ae;if(Me!==".")return{formattedText:Ae.formattedText+Me,remainingText:Ae.remainingText};var Je,dt=l(Je=Ae.remainingText)||o(Je)||u(),Re=dt[0],Z=dt.slice(1);return{formattedText:Ae.formattedText+Re,remainingText:Z}}),{formattedText:"",remainingText:re.split("")});return(je=Pe?He.formattedText+He.remainingText.join(""):He.formattedText).includes("(")&&!je.includes(")")&&(je+=")"),je},G.cursorToEnd=function(){var re=G.numberInputRef;if(document.activeElement===re){re.focus();var xe=re.value.length;re.value.charAt(xe-1)===")"&&(xe-=1),re.setSelectionRange(xe,xe)}},G.getElement=function(re){return G["flag_no_".concat(re)]},G.getCountryData=function(){return G.state.selectedCountry?{name:G.state.selectedCountry.name||"",dialCode:G.state.selectedCountry.dialCode||"",countryCode:G.state.selectedCountry.iso2||"",format:G.state.selectedCountry.format||""}:{}},G.handleFlagDropdownClick=function(re){if(re.preventDefault(),G.state.showDropdown||!G.props.disabled){var xe=G.state,Te=xe.preferredCountries,be=xe.onlyCountries,ve=xe.selectedCountry,pe=G.concatPreferredCountries(Te,be).findIndex((function(_e){return _e.dialCode===ve.dialCode&&_e.iso2===ve.iso2}));G.setState({showDropdown:!G.state.showDropdown,highlightCountryIndex:pe},(function(){G.state.showDropdown&&G.scrollTo(G.getElement(G.state.highlightCountryIndex))}))}},G.handleInput=function(re){var xe=re.target.value,Te=G.props,be=Te.prefix,ve=Te.onChange,pe=G.props.disableCountryCode?"":be,_e=G.state.selectedCountry,Pe=G.state.freezeSelection;if(!G.props.countryCodeEditable){var $e=be+(_e.hasAreaCodes?G.state.onlyCountries.find((function(tt){return tt.iso2===_e.iso2&&tt.mainCode})).dialCode:_e.dialCode);if(xe.slice(0,$e.length)!==$e)return}if(xe===be)return ve&&ve("",G.getCountryData(),re,""),G.setState({formattedNumber:""});if(!(xe.replace(/\D/g,"").length>15&&(G.props.enableLongNumbers===!1||typeof G.props.enableLongNumbers=="number"&&xe.replace(/\D/g,"").length>G.props.enableLongNumbers))&&xe!==G.state.formattedNumber){re.preventDefault?re.preventDefault():re.returnValue=!1;var je=G.props.country,He=G.state,Ae=He.onlyCountries,Me=He.selectedCountry,Je=He.hiddenAreaCodes;if(ve&&re.persist(),xe.length>0){var dt=xe.replace(/\D/g,"");(!G.state.freezeSelection||Me&&Me.dialCode.length>dt.length)&&(_e=G.props.disableCountryGuess?Me:G.guessSelectedCountry(dt.substring(0,6),je,Ae,Je)||Me,Pe=!1),pe=G.formatNumber(dt,_e),_e=_e.dialCode?_e:Me}var Re=re.target.selectionStart,Z=re.target.selectionStart,ot=G.state.formattedNumber,vt=pe.length-ot.length;G.setState({formattedNumber:pe,freezeSelection:Pe,selectedCountry:_e},(function(){vt>0&&(Z-=vt),pe.charAt(pe.length-1)==")"?G.numberInputRef.setSelectionRange(pe.length-1,pe.length-1):Z>0&&ot.length>=pe.length?G.numberInputRef.setSelectionRange(Z,Z):Re<ot.length&&G.numberInputRef.setSelectionRange(Re,Re),ve&&ve(pe.replace(/[^0-9]+/g,""),G.getCountryData(),re,pe)}))}},G.handleInputClick=function(re){G.setState({showDropdown:!1}),G.props.onClick&&G.props.onClick(re,G.getCountryData())},G.handleDoubleClick=function(re){var xe=re.target.value.length;re.target.setSelectionRange(0,xe)},G.handleFlagItemClick=function(re,xe){var Te=G.state.selectedCountry,be=G.state.onlyCountries.find((function(Pe){return Pe==re}));if(be){var ve=G.state.formattedNumber.replace(" ","").replace("(","").replace(")","").replace("-",""),pe=ve.length>1?ve.replace(Te.dialCode,be.dialCode):be.dialCode,_e=G.formatNumber(pe.replace(/\D/g,""),be);G.setState({showDropdown:!1,selectedCountry:be,freezeSelection:!0,formattedNumber:_e,searchValue:""},(function(){G.cursorToEnd(),G.props.onChange&&G.props.onChange(_e.replace(/[^0-9]+/g,""),G.getCountryData(),xe,_e)}))}},G.handleInputFocus=function(re){G.numberInputRef&&G.numberInputRef.value===G.props.prefix&&G.state.selectedCountry&&!G.props.disableCountryCode&&G.setState({formattedNumber:G.props.prefix+G.state.selectedCountry.dialCode},(function(){G.props.jumpCursorToEnd&&setTimeout(G.cursorToEnd,0)})),G.setState({placeholder:""}),G.props.onFocus&&G.props.onFocus(re,G.getCountryData()),G.props.jumpCursorToEnd&&setTimeout(G.cursorToEnd,0)},G.handleInputBlur=function(re){re.target.value||G.setState({placeholder:G.props.placeholder}),G.props.onBlur&&G.props.onBlur(re,G.getCountryData())},G.handleInputCopy=function(re){if(G.props.copyNumbersOnly){var xe=window.getSelection().toString().replace(/[^0-9]+/g,"");re.clipboardData.setData("text/plain",xe),re.preventDefault()}},G.getHighlightCountryIndex=function(re){var xe=G.state.highlightCountryIndex+re;return xe<0||xe>=G.state.onlyCountries.length+G.state.preferredCountries.length?xe-re:G.props.enableSearch&&xe>G.getSearchFilteredCountries().length?0:xe},G.searchCountry=function(){var re=G.getProbableCandidate(G.state.queryString)||G.state.onlyCountries[0],xe=G.state.onlyCountries.findIndex((function(Te){return Te==re}))+G.state.preferredCountries.length;G.scrollTo(G.getElement(xe),!0),G.setState({queryString:"",highlightCountryIndex:xe})},G.handleKeydown=function(re){var xe=G.props.keys,Te=re.target.className;if(Te.includes("selected-flag")&&re.which===xe.ENTER&&!G.state.showDropdown)return G.handleFlagDropdownClick(re);if(Te.includes("form-control")&&(re.which===xe.ENTER||re.which===xe.ESC))return re.target.blur();if(G.state.showDropdown&&!G.props.disabled&&(!Te.includes("search-box")||re.which===xe.UP||re.which===xe.DOWN||re.which===xe.ENTER||re.which===xe.ESC&&re.target.value==="")){re.preventDefault?re.preventDefault():re.returnValue=!1;var be=function(ve){G.setState({highlightCountryIndex:G.getHighlightCountryIndex(ve)},(function(){G.scrollTo(G.getElement(G.state.highlightCountryIndex),!0)}))};switch(re.which){case xe.DOWN:be(1);break;case xe.UP:be(-1);break;case xe.ENTER:G.props.enableSearch?G.handleFlagItemClick(G.getSearchFilteredCountries()[G.state.highlightCountryIndex]||G.getSearchFilteredCountries()[0],re):G.handleFlagItemClick([].concat(i(G.state.preferredCountries),i(G.state.onlyCountries))[G.state.highlightCountryIndex],re);break;case xe.ESC:case xe.TAB:G.setState({showDropdown:!1},G.cursorToEnd);break;default:(re.which>=xe.A&&re.which<=xe.Z||re.which===xe.SPACE)&&G.setState({queryString:G.state.queryString+String.fromCharCode(re.which)},G.state.debouncedQueryStingSearcher)}}},G.handleInputKeyDown=function(re){var xe=G.props,Te=xe.keys,be=xe.onEnterKeyPress,ve=xe.onKeyDown;re.which===Te.ENTER&&be&&be(re),ve&&ve(re)},G.handleClickOutside=function(re){G.dropdownRef&&!G.dropdownContainerRef.contains(re.target)&&G.state.showDropdown&&G.setState({showDropdown:!1})},G.handleSearchChange=function(re){var xe=re.currentTarget.value,Te=G.state,be=Te.preferredCountries,ve=Te.selectedCountry,pe=0;if(xe===""&&ve){var _e=G.state.onlyCountries;pe=G.concatPreferredCountries(be,_e).findIndex((function(Pe){return Pe==ve})),setTimeout((function(){return G.scrollTo(G.getElement(pe))}),100)}G.setState({searchValue:xe,highlightCountryIndex:pe})},G.concatPreferredCountries=function(re,xe){return re.length>0?i(new Set(re.concat(xe))):xe},G.getDropdownCountryName=function(re){return re.localName||re.name},G.getSearchFilteredCountries=function(){var re=G.state,xe=re.preferredCountries,Te=re.onlyCountries,be=re.searchValue,ve=G.props.enableSearch,pe=G.concatPreferredCountries(xe,Te),_e=be.trim().toLowerCase().replace("+","");if(ve&&_e){if(/^\d+$/.test(_e))return pe.filter((function(je){var He=je.dialCode;return["".concat(He)].some((function(Ae){return Ae.toLowerCase().includes(_e)}))}));var Pe=pe.filter((function(je){var He=je.iso2;return["".concat(He)].some((function(Ae){return Ae.toLowerCase().includes(_e)}))})),$e=pe.filter((function(je){var He=je.name,Ae=je.localName;return je.iso2,["".concat(He),"".concat(Ae||"")].some((function(Me){return Me.toLowerCase().includes(_e)}))}));return G.scrollToTop(),i(new Set([].concat(Pe,$e)))}return pe},G.getCountryDropdownList=function(){var re=G.state,xe=re.preferredCountries,Te=re.highlightCountryIndex,be=re.showDropdown,ve=re.searchValue,pe=G.props,_e=pe.disableDropdown,Pe=pe.prefix,$e=G.props,je=$e.enableSearch,He=$e.searchNotFound,Ae=$e.disableSearchIcon,Me=$e.searchClass,Je=$e.searchStyle,dt=$e.searchPlaceholder,Re=$e.autocompleteSearch,Z=G.getSearchFilteredCountries().map((function(tt,ft){var ir=Te===ft,tn=z()({country:!0,preferred:tt.iso2==="us"||tt.iso2==="gb",active:tt.iso2==="us",highlight:ir}),Zn="flag ".concat(tt.iso2);return w.a.createElement("li",Object.assign({ref:function(nn){return G["flag_no_".concat(ft)]=nn},key:"flag_no_".concat(ft),"data-flag-key":"flag_no_".concat(ft),className:tn,"data-dial-code":"1",tabIndex:_e?"-1":"0","data-country-code":tt.iso2,onClick:function(nn){return G.handleFlagItemClick(tt,nn)},role:"option"},ir?{"aria-selected":!0}:{}),w.a.createElement("div",{className:Zn}),w.a.createElement("span",{className:"country-name"},G.getDropdownCountryName(tt)),w.a.createElement("span",{className:"dial-code"},tt.format?G.formatNumber(tt.dialCode,tt):Pe+tt.dialCode))})),ot=w.a.createElement("li",{key:"dashes",className:"divider"});xe.length>0&&(!je||je&&!ve.trim())&&Z.splice(xe.length,0,ot);var vt=z()(a({"country-list":!0,hide:!be},G.props.dropdownClass,!0));return w.a.createElement("ul",{ref:function(tt){return!je&&tt&&tt.focus(),G.dropdownRef=tt},className:vt,style:G.props.dropdownStyle,role:"listbox",tabIndex:"0"},je&&w.a.createElement("li",{className:z()(a({search:!0},Me,Me))},!Ae&&w.a.createElement("span",{className:z()(a({"search-emoji":!0},"".concat(Me,"-emoji"),Me)),role:"img","aria-label":"Magnifying glass"},"🔎"),w.a.createElement("input",{className:z()(a({"search-box":!0},"".concat(Me,"-box"),Me)),style:Je,type:"search",placeholder:dt,autoFocus:!0,autoComplete:Re?"on":"off",value:ve,onChange:G.handleSearchChange})),Z.length>0?Z:w.a.createElement("li",{className:"no-entries-message"},w.a.createElement("span",null,He)))};var oe,ye=new V(ee.enableAreaCodes,ee.enableTerritories,ee.regions,ee.onlyCountries,ee.preferredCountries,ee.excludeCountries,ee.preserveOrder,ee.masks,ee.priority,ee.areaCodes,ee.localization,ee.prefix,ee.defaultMask,ee.alwaysDefaultMask),me=ye.onlyCountries,Se=ye.preferredCountries,Be=ye.hiddenAreaCodes,ae=ee.value?ee.value.replace(/\D/g,""):"";oe=ee.disableInitialCountryGuess?0:ae.length>1?G.guessSelectedCountry(ae.substring(0,6),ee.country,me,Be)||0:ee.country&&me.find((function(re){return re.iso2==ee.country}))||0;var ge,fe=ae.length<2&&oe&&!k()(ae,oe.dialCode)?oe.dialCode:"";ge=ae===""&&oe===0?"":G.formatNumber((ee.disableCountryCode?"":fe)+ae,oe.name?oe:void 0);var qe=me.findIndex((function(re){return re==oe}));return G.state={showDropdown:ee.showDropdown,formattedNumber:ge,onlyCountries:me,preferredCountries:Se,hiddenAreaCodes:Be,selectedCountry:oe,highlightCountryIndex:qe,queryString:"",freezeSelection:!1,debouncedQueryStingSearcher:T()(G.searchCountry,250),searchValue:""},G}var K,Q;return(function(ee,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");ee.prototype=Object.create(G&&G.prototype,{constructor:{value:ee,writable:!0,configurable:!0}}),G&&x(ee,G)})(Y,P),K=Y,(Q=[{key:"componentDidMount",value:function(){document.addEventListener&&this.props.enableClickOutside&&document.addEventListener("mousedown",this.handleClickOutside),this.props.onMount&&this.props.onMount(this.state.formattedNumber.replace(/[^0-9]+/g,""),this.getCountryData(),this.state.formattedNumber)}},{key:"componentWillUnmount",value:function(){document.removeEventListener&&this.props.enableClickOutside&&document.removeEventListener("mousedown",this.handleClickOutside)}},{key:"componentDidUpdate",value:function(ee,G,oe){ee.country!==this.props.country?this.updateCountry(this.props.country):ee.value!==this.props.value&&this.updateFormattedNumber(this.props.value)}},{key:"updateFormattedNumber",value:function(ee){if(ee===null)return this.setState({selectedCountry:0,formattedNumber:""});var G=this.state,oe=G.onlyCountries,ye=G.selectedCountry,me=G.hiddenAreaCodes,Se=this.props,Be=Se.country,ae=Se.prefix;if(ee==="")return this.setState({selectedCountry:ye,formattedNumber:""});var ge,fe,qe=ee.replace(/\D/g,"");if(ye&&k()(ee,ae+ye.dialCode))fe=this.formatNumber(qe,ye),this.setState({formattedNumber:fe});else{var re=(ge=this.props.disableCountryGuess?ye:this.guessSelectedCountry(qe.substring(0,6),Be,oe,me)||ye)&&k()(qe,ae+ge.dialCode)?ge.dialCode:"";fe=this.formatNumber((this.props.disableCountryCode?"":re)+qe,ge||void 0),this.setState({selectedCountry:ge,formattedNumber:fe})}}},{key:"render",value:function(){var ee,G,oe,ye=this,me=this.state,Se=me.onlyCountries,Be=me.selectedCountry,ae=me.showDropdown,ge=me.formattedNumber,fe=me.hiddenAreaCodes,qe=this.props,re=qe.disableDropdown,xe=qe.renderStringAsFlag,Te=qe.isValid,be=qe.defaultErrorMessage,ve=qe.specialLabel;if(typeof Te=="boolean")G=Te;else{var pe=Te(ge.replace(/\D/g,""),Be,Se,fe);typeof pe=="boolean"?(G=pe)===!1&&(oe=be):(G=!1,oe=pe)}var _e=z()((a(ee={},this.props.containerClass,!0),a(ee,"react-tel-input",!0),ee)),Pe=z()({arrow:!0,up:ae}),$e=z()(a({"form-control":!0,"invalid-number":!G,open:ae},this.props.inputClass,!0)),je=z()({"selected-flag":!0,open:ae}),He=z()(a({"flag-dropdown":!0,"invalid-number":!G,open:ae},this.props.buttonClass,!0)),Ae="flag ".concat(Be&&Be.iso2);return w.a.createElement("div",{className:"".concat(_e," ").concat(this.props.className),style:this.props.style||this.props.containerStyle,onKeyDown:this.handleKeydown},ve&&w.a.createElement("div",{className:"special-label"},ve),oe&&w.a.createElement("div",{className:"invalid-number-message"},oe),w.a.createElement("input",Object.assign({className:$e,style:this.props.inputStyle,onChange:this.handleInput,onClick:this.handleInputClick,onDoubleClick:this.handleDoubleClick,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onCopy:this.handleInputCopy,value:ge,onKeyDown:this.handleInputKeyDown,placeholder:this.props.placeholder,disabled:this.props.disabled,type:"tel"},this.props.inputProps,{ref:function(Me){ye.numberInputRef=Me,typeof ye.props.inputProps.ref=="function"?ye.props.inputProps.ref(Me):typeof ye.props.inputProps.ref=="object"&&(ye.props.inputProps.ref.current=Me)}})),w.a.createElement("div",{className:He,style:this.props.buttonStyle,ref:function(Me){return ye.dropdownContainerRef=Me}},xe?w.a.createElement("div",{className:je},xe):w.a.createElement("div",{onClick:re?void 0:this.handleFlagDropdownClick,className:je,title:Be?"".concat(Be.localName||Be.name,": + ").concat(Be.dialCode):"",tabIndex:re?"-1":"0",role:"button","aria-haspopup":"listbox","aria-expanded":!!ae||void 0},w.a.createElement("div",{className:Ae},!re&&w.a.createElement("div",{className:Pe}))),ae&&this.getCountryDropdownList()))}}])&&f(K.prototype,Q),Y})(w.a.Component);U.defaultProps={country:"",value:"",onlyCountries:[],preferredCountries:[],excludeCountries:[],placeholder:"1 (702) 123-4567",searchPlaceholder:"search",searchNotFound:"No entries to show",flagsImagePath:"./flags.png",disabled:!1,containerStyle:{},inputStyle:{},buttonStyle:{},dropdownStyle:{},searchStyle:{},containerClass:"",inputClass:"",buttonClass:"",dropdownClass:"",searchClass:"",className:"",autoFormat:!0,enableAreaCodes:!1,enableTerritories:!1,disableCountryCode:!1,disableDropdown:!1,enableLongNumbers:!1,countryCodeEditable:!0,enableSearch:!1,disableSearchIcon:!1,disableInitialCountryGuess:!1,disableCountryGuess:!1,regions:"",inputProps:{},localization:{},masks:null,priority:null,areaCodes:null,preserveOrder:[],defaultMask:"... ... ... ... ..",alwaysDefaultMask:!1,prefix:"+",copyNumbersOnly:!0,renderStringAsFlag:"",autocompleteSearch:!1,jumpCursorToEnd:!0,enableAreaCodeStretch:!1,enableClickOutside:!0,showDropdown:!1,isValid:!0,defaultErrorMessage:"",specialLabel:"Phone",onEnterKeyPress:null,keys:{UP:38,DOWN:40,RIGHT:39,LEFT:37,ENTER:13,ESC:27,PLUS:43,A:65,Z:90,SPACE:32,TAB:9}},t.default=U}])),Fb}var ndt=tdt();const rdt=Di(ndt);var gp={exports:{}},adt=gp.exports,WE;function sdt(){return WE||(WE=1,(function(e,t){(function(n,a){e.exports=a()})(adt,(function(){var n=1e3,a=6e4,o=36e5,i="millisecond",l="second",u="minute",d="hour",f="day",m="week",g="month",y="quarter",b="year",x="date",S="Invalid Date",w=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,N=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,T={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(j){var M=["th","st","nd","rd"],I=j%100;return"["+j+(M[(I-20)%10]||M[I]||M[0])+"]"}},A=function(j,M,I){var F=String(j);return!F||F.length>=M?j:""+Array(M+1-F.length).join(I)+j},R={s:A,z:function(j){var M=-j.utcOffset(),I=Math.abs(M),F=Math.floor(I/60),V=I%60;return(M<=0?"+":"-")+A(F,2,"0")+":"+A(V,2,"0")},m:function j(M,I){if(M.date()<I.date())return-j(I,M);var F=12*(I.year()-M.year())+(I.month()-M.month()),V=M.clone().add(F,g),W=I-V<0,U=M.clone().add(F+(W?-1:1),g);return+(-(F+(I-V)/(W?V-U:U-V))||0)},a:function(j){return j<0?Math.ceil(j)||0:Math.floor(j)},p:function(j){return{M:g,y:b,w:m,d:f,D:x,h:d,m:u,s:l,ms:i,Q:y}[j]||String(j||"").toLowerCase().replace(/s$/,"")},u:function(j){return j===void 0}},E="en",$={};$[E]=T;var _="$isDayjsObject",k=function(j){return j instanceof H||!(!j||!j[_])},q=function j(M,I,F){var V;if(!M)return E;if(typeof M=="string"){var W=M.toLowerCase();$[W]&&(V=W),I&&($[W]=I,V=W);var U=M.split("-");if(!V&&U.length>1)return j(U[0])}else{var P=M.name;$[P]=M,V=P}return!F&&V&&(E=V),V||!F&&E},z=function(j,M){if(k(j))return j.clone();var I=typeof M=="object"?M:{};return I.date=j,I.args=arguments,new H(I)},D=R;D.l=q,D.i=k,D.w=function(j,M){return z(j,{locale:M.$L,utc:M.$u,x:M.$x,$offset:M.$offset})};var H=(function(){function j(I){this.$L=q(I.locale,null,!0),this.parse(I),this.$x=this.$x||I.x||{},this[_]=!0}var M=j.prototype;return M.parse=function(I){this.$d=(function(F){var V=F.date,W=F.utc;if(V===null)return new Date(NaN);if(D.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var U=V.match(w);if(U){var P=U[2]-1||0,Y=(U[7]||"0").substring(0,3);return W?new Date(Date.UTC(U[1],P,U[3]||1,U[4]||0,U[5]||0,U[6]||0,Y)):new Date(U[1],P,U[3]||1,U[4]||0,U[5]||0,U[6]||0,Y)}}return new Date(V)})(I),this.init()},M.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},M.$utils=function(){return D},M.isValid=function(){return this.$d.toString()!==S},M.isSame=function(I,F){var V=z(I);return this.startOf(F)<=V&&V<=this.endOf(F)},M.isAfter=function(I,F){return z(I)<this.startOf(F)},M.isBefore=function(I,F){return this.endOf(F)<z(I)},M.$g=function(I,F,V){return D.u(I)?this[F]:this.set(V,I)},M.unix=function(){return Math.floor(this.valueOf()/1e3)},M.valueOf=function(){return this.$d.getTime()},M.startOf=function(I,F){var V=this,W=!!D.u(F)||F,U=D.p(I),P=function(me,Se){var Be=D.w(V.$u?Date.UTC(V.$y,Se,me):new Date(V.$y,Se,me),V);return W?Be:Be.endOf(f)},Y=function(me,Se){return D.w(V.toDate()[me].apply(V.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(Se)),V)},K=this.$W,Q=this.$M,ee=this.$D,G="set"+(this.$u?"UTC":"");switch(U){case b:return W?P(1,0):P(31,11);case g:return W?P(1,Q):P(0,Q+1);case m:var oe=this.$locale().weekStart||0,ye=(K<oe?K+7:K)-oe;return P(W?ee-ye:ee+(6-ye),Q);case f:case x:return Y(G+"Hours",0);case d:return Y(G+"Minutes",1);case u:return Y(G+"Seconds",2);case l:return Y(G+"Milliseconds",3);default:return this.clone()}},M.endOf=function(I){return this.startOf(I,!1)},M.$set=function(I,F){var V,W=D.p(I),U="set"+(this.$u?"UTC":""),P=(V={},V[f]=U+"Date",V[x]=U+"Date",V[g]=U+"Month",V[b]=U+"FullYear",V[d]=U+"Hours",V[u]=U+"Minutes",V[l]=U+"Seconds",V[i]=U+"Milliseconds",V)[W],Y=W===f?this.$D+(F-this.$W):F;if(W===g||W===b){var K=this.clone().set(x,1);K.$d[P](Y),K.init(),this.$d=K.set(x,Math.min(this.$D,K.daysInMonth())).$d}else P&&this.$d[P](Y);return this.init(),this},M.set=function(I,F){return this.clone().$set(I,F)},M.get=function(I){return this[D.p(I)]()},M.add=function(I,F){var V,W=this;I=Number(I);var U=D.p(F),P=function(Q){var ee=z(W);return D.w(ee.date(ee.date()+Math.round(Q*I)),W)};if(U===g)return this.set(g,this.$M+I);if(U===b)return this.set(b,this.$y+I);if(U===f)return P(1);if(U===m)return P(7);var Y=(V={},V[u]=a,V[d]=o,V[l]=n,V)[U]||1,K=this.$d.getTime()+I*Y;return D.w(K,this)},M.subtract=function(I,F){return this.add(-1*I,F)},M.format=function(I){var F=this,V=this.$locale();if(!this.isValid())return V.invalidDate||S;var W=I||"YYYY-MM-DDTHH:mm:ssZ",U=D.z(this),P=this.$H,Y=this.$m,K=this.$M,Q=V.weekdays,ee=V.months,G=V.meridiem,oe=function(Se,Be,ae,ge){return Se&&(Se[Be]||Se(F,W))||ae[Be].slice(0,ge)},ye=function(Se){return D.s(P%12||12,Se,"0")},me=G||function(Se,Be,ae){var ge=Se<12?"AM":"PM";return ae?ge.toLowerCase():ge};return W.replace(N,(function(Se,Be){return Be||(function(ae){switch(ae){case"YY":return String(F.$y).slice(-2);case"YYYY":return D.s(F.$y,4,"0");case"M":return K+1;case"MM":return D.s(K+1,2,"0");case"MMM":return oe(V.monthsShort,K,ee,3);case"MMMM":return oe(ee,K);case"D":return F.$D;case"DD":return D.s(F.$D,2,"0");case"d":return String(F.$W);case"dd":return oe(V.weekdaysMin,F.$W,Q,2);case"ddd":return oe(V.weekdaysShort,F.$W,Q,3);case"dddd":return Q[F.$W];case"H":return String(P);case"HH":return D.s(P,2,"0");case"h":return ye(1);case"hh":return ye(2);case"a":return me(P,Y,!0);case"A":return me(P,Y,!1);case"m":return String(Y);case"mm":return D.s(Y,2,"0");case"s":return String(F.$s);case"ss":return D.s(F.$s,2,"0");case"SSS":return D.s(F.$ms,3,"0");case"Z":return U}return null})(Se)||U.replace(":","")}))},M.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},M.diff=function(I,F,V){var W,U=this,P=D.p(F),Y=z(I),K=(Y.utcOffset()-this.utcOffset())*a,Q=this-Y,ee=function(){return D.m(U,Y)};switch(P){case b:W=ee()/12;break;case g:W=ee();break;case y:W=ee()/3;break;case m:W=(Q-K)/6048e5;break;case f:W=(Q-K)/864e5;break;case d:W=Q/o;break;case u:W=Q/a;break;case l:W=Q/n;break;default:W=Q}return V?W:D.a(W)},M.daysInMonth=function(){return this.endOf(g).$D},M.$locale=function(){return $[this.$L]},M.locale=function(I,F){if(!I)return this.$L;var V=this.clone(),W=q(I,F,!0);return W&&(V.$L=W),V},M.clone=function(){return D.w(this.$d,this)},M.toDate=function(){return new Date(this.valueOf())},M.toJSON=function(){return this.isValid()?this.toISOString():null},M.toISOString=function(){return this.$d.toISOString()},M.toString=function(){return this.$d.toUTCString()},j})(),O=H.prototype;return z.prototype=O,[["$ms",i],["$s",l],["$m",u],["$H",d],["$W",f],["$M",g],["$y",b],["$D",x]].forEach((function(j){O[j[1]]=function(M){return this.$g(M,j[0],j[1])}})),z.extend=function(j,M){return j.$i||(j(M,H,z),j.$i=!0),z},z.locale=q,z.isDayjs=k,z.unix=function(j){return z(1e3*j)},z.en=$[E],z.Ls=$,z.p={},z}))})(gp)),gp.exports}var odt=sdt();const ke=Di(odt);function idt({type:e,date:t,locale:n,format:a,labelSeparator:o}){const i=l=>ke(l).locale(n).format(a);return e==="default"?t===null?"":i(t):e==="multiple"?t.map(i).join(", "):e==="range"&&Array.isArray(t)?t[0]&&t[1]?`${i(t[0])} ${o} ${i(t[1])}`:t[0]?`${i(t[0])} ${o} `:"":""}function ldt({formatter:e,...t}){return(e||idt)(t)}function cdt({direction:e,levelIndex:t,rowIndex:n,cellIndex:a,size:o}){switch(e){case"up":return t===0&&n===0?null:n===0?{levelIndex:t-1,rowIndex:a<=o[t-1][o[t-1].length-1]-1?o[t-1].length-1:o[t-1].length-2,cellIndex:a}:{levelIndex:t,rowIndex:n-1,cellIndex:a};case"down":return n===o[t].length-1?{levelIndex:t+1,rowIndex:0,cellIndex:a}:n===o[t].length-2&&a>=o[t][o[t].length-1]?{levelIndex:t+1,rowIndex:0,cellIndex:a}:{levelIndex:t,rowIndex:n+1,cellIndex:a};case"left":return t===0&&n===0&&a===0?null:n===0&&a===0?{levelIndex:t-1,rowIndex:o[t-1].length-1,cellIndex:o[t-1][o[t-1].length-1]-1}:a===0?{levelIndex:t,rowIndex:n-1,cellIndex:o[t][n-1]-1}:{levelIndex:t,rowIndex:n,cellIndex:a-1};case"right":return n===o[t].length-1&&a===o[t][n]-1?{levelIndex:t+1,rowIndex:0,cellIndex:0}:a===o[t][n]-1?{levelIndex:t,rowIndex:n+1,cellIndex:0}:{levelIndex:t,rowIndex:n,cellIndex:a+1};default:return{levelIndex:t,rowIndex:n,cellIndex:a}}}function G3({controlsRef:e,direction:t,levelIndex:n,rowIndex:a,cellIndex:o,size:i}){const l=cdt({direction:t,size:i,rowIndex:a,cellIndex:o,levelIndex:n});if(!l)return;const u=e.current?.[l.levelIndex]?.[l.rowIndex]?.[l.cellIndex];u&&(u.disabled||u.getAttribute("data-hidden")||u.getAttribute("data-outside")?G3({controlsRef:e,direction:t,levelIndex:l.levelIndex,cellIndex:l.cellIndex,rowIndex:l.rowIndex,size:i}):u.focus())}function udt(e){switch(e){case"ArrowDown":return"down";case"ArrowUp":return"up";case"ArrowRight":return"right";case"ArrowLeft":return"left";default:return null}}function ddt(e){return e.current?.map(t=>t.map(n=>n.length))}function k1({controlsRef:e,levelIndex:t,rowIndex:n,cellIndex:a,event:o}){const i=udt(o.key);if(i){o.preventDefault();const l=ddt(e);G3({controlsRef:e,direction:i,levelIndex:t,rowIndex:n,cellIndex:a,size:l})}}function Qn(e){return e==null||e===""?e:ke(e).format("YYYY-MM-DD")}function Y3(e){return e==null||e===""?e:ke(e).format("YYYY-MM-DD HH:mm:ss")}function fdt({minDate:e,maxDate:t}){const n=ke();return!e&&!t?Qn(n):e&&ke(n).isBefore(e)?Qn(e):t&&ke(n).isAfter(t)?Qn(t):Qn(n)}const pdt={locale:"en",firstDayOfWeek:1,weekendDays:[0,6],labelSeparator:"–",consistentWeeks:!1},hdt=B.createContext(pdt);function ko(){const e=B.useContext(hdt),t=B.useCallback(i=>i||e.locale,[e.locale]),n=B.useCallback(i=>typeof i=="number"?i:e.firstDayOfWeek,[e.firstDayOfWeek]),a=B.useCallback(i=>Array.isArray(i)?i:e.weekendDays,[e.weekendDays]),o=B.useCallback(i=>typeof i=="string"?i:e.labelSeparator,[e.labelSeparator]);return{...e,getLocale:t,getFirstDayOfWeek:n,getWeekendDays:a,getLabelSeparator:o}}function mdt({value:e,type:t,withTime:n}){const a=n?Y3:Qn;if(t==="range"&&Array.isArray(e)){const o=a(e[0]),i=a(e[1]);return o?i?`${o} – ${i}`:`${o} –`:""}return t==="multiple"&&Array.isArray(e)?e.filter(Boolean).join(", "):!Array.isArray(e)&&e?a(e):""}function W3({value:e,type:t,name:n,form:a,withTime:o=!1}){return p.jsx("input",{type:"hidden",value:mdt({value:e,type:t,withTime:o}),name:n,form:a})}W3.displayName="@mantine/dates/HiddenDatesInput";var X3={day:"m_396ce5cb"};const gdt=(e,{size:t})=>({day:{"--day-size":ta(t,"day-size")}}),M1=xt((e,t)=>{const n=at("Day",null,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,date:f,disabled:m,__staticSelector:g,weekend:y,outside:b,selected:x,renderDay:S,inRange:w,firstInRange:N,lastInRange:T,hidden:A,static:R,highlightToday:E,attributes:$,..._}=n,k=sn({name:g||"Day",classes:X3,props:n,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:$,vars:d,varsResolver:gdt,rootSelector:"day"});return p.jsx(xs,{...k("day",{style:A?{display:"none"}:void 0}),component:R?"div":"button",ref:t,disabled:m,"data-today":ke(f).isSame(new Date,"day")||void 0,"data-hidden":A||void 0,"data-highlight-today":E||void 0,"data-disabled":m||void 0,"data-weekend":!m&&!b&&y||void 0,"data-outside":!m&&b||void 0,"data-selected":!m&&x||void 0,"data-in-range":w&&!m||void 0,"data-first-in-range":N&&!m||void 0,"data-last-in-range":T&&!m||void 0,"data-static":R||void 0,unstyled:u,..._,children:S?.(f)||ke(f).date()})});M1.classes=X3;M1.displayName="@mantine/dates/Day";function ydt({locale:e,format:t="dd",firstDayOfWeek:n=1}){const a=ke().day(n),o=[];for(let i=0;i<7;i+=1)typeof t=="string"?o.push(ke(a).add(i,"days").locale(e).format(t)):o.push(t(ke(a).add(i,"days").format("YYYY-MM-DD")));return o}var K3={weekday:"m_18a3eca"};const bdt=(e,{size:t})=>({weekdaysRow:{"--wr-fz":Jr(t),"--wr-spacing":Z$(t)}}),P1=xt((e,t)=>{const n=at("WeekdaysRow",null,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,locale:f,firstDayOfWeek:m,weekdayFormat:g,cellComponent:y="th",__staticSelector:b,withWeekNumbers:x,attributes:S,...w}=n,N=sn({name:b||"WeekdaysRow",classes:K3,props:n,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:S,vars:d,varsResolver:bdt,rootSelector:"weekdaysRow"}),T=ko(),A=ydt({locale:T.getLocale(f),format:g,firstDayOfWeek:T.getFirstDayOfWeek(m)}).map((R,E)=>p.jsx(y,{...N("weekday"),children:R},E));return p.jsxs(Bt,{component:"tr",ref:t,...N("weekdaysRow"),...w,children:[x&&p.jsx(y,{...N("weekday"),children:"#"}),A]})});P1.classes=K3;P1.displayName="@mantine/dates/WeekdaysRow";function vdt(e,t=1){let n=ke(e);if(!n.isValid())return n;const a=t===0?6:t-1;for(;n.day()!==a;)n=n.add(1,"day");return n.format("YYYY-MM-DD")}function xdt(e,t=1){let n=ke(e);for(;n.day()!==t;)n=n.subtract(1,"day");return n.format("YYYY-MM-DD")}function Cdt({month:e,firstDayOfWeek:t=1,consistentWeeks:n}){const a=ke(e).subtract(ke(e).date()-1,"day"),o=ke(a.format("YYYY-M-D")),i=o.format("YYYY-MM-DD"),l=o.add(+o.daysInMonth()-1,"day").format("YYYY-MM-DD"),u=vdt(l,t),d=[];let f=ke(xdt(i,t));for(;ke(f).isBefore(u,"day");){const m=[];for(let g=0;g<7;g+=1)m.push(f.format("YYYY-MM-DD")),f=f.add(1,"day");d.push(m)}if(n&&d.length<6){const m=d[d.length-1],g=m[m.length-1];let y=ke(g).add(1,"day");for(;d.length<6;){const b=[];for(let x=0;x<7;x+=1)b.push(y.format("YYYY-MM-DD")),y=y.add(1,"day");d.push(b)}}return d}function L1(e,t){return ke(e).format("YYYY-MM")===ke(t).format("YYYY-MM")}function Q3(e,t){return t?ke(e).isAfter(ke(t).subtract(1,"day"),"day"):!0}function Z3(e,t){return t?ke(e).isBefore(ke(t).add(1,"day"),"day"):!0}function Sdt({dates:e,minDate:t,maxDate:n,getDayProps:a,excludeDate:o,hideOutsideDates:i,month:l}){const u=e.flat().filter(m=>Z3(m,n)&&Q3(m,t)&&!o?.(m)&&!a?.(m)?.disabled&&(!i||L1(m,l))),d=u.find(m=>a?.(m)?.selected);if(d)return d;const f=u.find(m=>ke().isSame(m,"date"));return f||u[0]}var yp={exports:{}},Ndt=yp.exports,XE;function wdt(){return XE||(XE=1,(function(e,t){(function(n,a){e.exports=a()})(Ndt,(function(){var n="day";return function(a,o,i){var l=function(f){return f.add(4-f.isoWeekday(),n)},u=o.prototype;u.isoWeekYear=function(){return l(this).year()},u.isoWeek=function(f){if(!this.$utils().u(f))return this.add(7*(f-this.isoWeek()),n);var m,g,y,b,x=l(this),S=(m=this.isoWeekYear(),g=this.$u,y=(g?i.utc:i)().year(m).startOf("year"),b=4-y.isoWeekday(),y.isoWeekday()>4&&(b+=7),y.add(b,n));return x.diff(S,"week")+1},u.isoWeekday=function(f){return this.$utils().u(f)?this.day()||7:this.day(this.day()%7?f:f-7)};var d=u.startOf;u.startOf=function(f,m){var g=this.$utils(),y=!!g.u(m)||m;return g.p(f)==="isoweek"?y?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):d.bind(this)(f,m)}}}))})(yp)),yp.exports}var Edt=wdt();const $dt=Di(Edt);ke.extend($dt);function Tdt(e){const t=e.find(n=>ke(n).day()===1);return ke(t).isoWeek()}var J3={month:"m_cc9820d3",monthCell:"m_8f457cd5",weekNumber:"m_6cff9dea"};const _dt={withCellSpacing:!0},Adt=(e,{size:t})=>({weekNumber:{"--wn-fz":Jr(t),"--wn-size":ta(t,"wn-size")}}),nm=xt((e,t)=>{const n=at("Month",_dt,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,__staticSelector:f,locale:m,firstDayOfWeek:g,weekdayFormat:y,month:b,weekendDays:x,getDayProps:S,excludeDate:w,minDate:N,maxDate:T,renderDay:A,hideOutsideDates:R,hideWeekdays:E,getDayAriaLabel:$,static:_,__getDayRef:k,__onDayKeyDown:q,__onDayClick:z,__onDayMouseEnter:D,__preventFocus:H,__stopPropagation:O,withCellSpacing:j,size:M,highlightToday:I,withWeekNumbers:F,attributes:V,...W}=n,U=sn({name:f||"Month",classes:J3,props:n,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:V,vars:d,varsResolver:Adt,rootSelector:"month"}),P=ko(),Y=Cdt({month:b,firstDayOfWeek:P.getFirstDayOfWeek(g),consistentWeeks:P.consistentWeeks}),K=Sdt({dates:Y,minDate:Qn(N),maxDate:Qn(T),getDayProps:S,excludeDate:w,hideOutsideDates:R,month:b}),{resolvedClassNames:Q,resolvedStyles:ee}=Yl({classNames:a,styles:l,props:n}),G=Y.map((oe,ye)=>{const me=oe.map((Se,Be)=>{const ae=!L1(Se,b),ge=$?.(Se)||ke(Se).locale(m||P.locale).format("D MMMM YYYY"),fe=S?.(Se),qe=ke(Se).isSame(K,"date");return p.jsx("td",{...U("monthCell"),"data-with-spacing":j||void 0,children:p.jsx(M1,{__staticSelector:f||"Month",classNames:Q,styles:ee,unstyled:u,"data-mantine-stop-propagation":O||void 0,highlightToday:I,renderDay:A,date:Se,size:M,weekend:P.getWeekendDays(x).includes(ke(Se).get("day")),outside:ae,hidden:R?ae:!1,"aria-label":ge,static:_,disabled:w?.(Se)||!Z3(Se,Qn(T))||!Q3(Se,Qn(N)),ref:re=>{re&&k?.(ye,Be,re)},...fe,onKeyDown:re=>{fe?.onKeyDown?.(re),q?.(re,{rowIndex:ye,cellIndex:Be,date:Se})},onMouseEnter:re=>{fe?.onMouseEnter?.(re),D?.(re,Se)},onClick:re=>{fe?.onClick?.(re),z?.(re,Se)},onMouseDown:re=>{fe?.onMouseDown?.(re),H&&re.preventDefault()},tabIndex:H||!qe?-1:0})},Se.toString())});return p.jsxs("tr",{...U("monthRow"),children:[F&&p.jsx("td",{...U("weekNumber"),children:Tdt(oe)}),me]},ye)});return p.jsxs(Bt,{component:"table",...U("month"),size:M,ref:t,...W,children:[!E&&p.jsx("thead",{...U("monthThead"),children:p.jsx(P1,{__staticSelector:f||"Month",locale:m,firstDayOfWeek:g,weekdayFormat:y,size:M,classNames:Q,styles:ee,unstyled:u,withWeekNumbers:F})}),p.jsx("tbody",{...U("monthTbody"),children:G})]})});nm.classes=J3;nm.displayName="@mantine/dates/Month";var ej={pickerControl:"m_dc6a3c71"};const Ddt=(e,{size:t})=>({pickerControl:{"--dpc-fz":Jr(t),"--dpc-size":ta(t,"dpc-size")}}),rm=xt((e,t)=>{const n=at("PickerControl",null,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,firstInRange:f,lastInRange:m,inRange:g,__staticSelector:y,selected:b,disabled:x,attributes:S,...w}=n,N=sn({name:y||"PickerControl",classes:ej,props:n,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:S,vars:d,varsResolver:Ddt,rootSelector:"pickerControl"});return p.jsx(xs,{...N("pickerControl"),ref:t,unstyled:u,"data-picker-control":!0,"data-selected":b&&!x||void 0,"data-disabled":x||void 0,"data-in-range":g&&!x&&!b||void 0,"data-first-in-range":f&&!x||void 0,"data-last-in-range":m&&!x||void 0,disabled:x,...w})});rm.classes=ej;rm.displayName="@mantine/dates/PickerControl";function tj({year:e,minDate:t,maxDate:n}){return!t&&!n?!1:!!(t&&ke(e).isBefore(t,"year")||n&&ke(e).isAfter(n,"year"))}function jdt({years:e,minDate:t,maxDate:n,getYearControlProps:a}){const o=e.flat().filter(u=>!tj({year:u,minDate:t,maxDate:n})&&!a?.(u)?.disabled),i=o.find(u=>a?.(u)?.selected);if(i)return i;const l=o.find(u=>ke().isSame(u,"year"));return l||o[0]}function nj(e){const t=ke(e).year(),n=t-t%10;let a=0;const o=[[],[],[],[]];for(let i=0;i<4;i+=1){const l=i===3?1:3;for(let u=0;u<l;u+=1)o[i].push(ke(new Date(n+a,0)).format("YYYY-MM-DD")),a+=1}return o}var rj={yearsList:"m_9206547b",yearsListCell:"m_c5a19c7d"};const Rdt={yearsListFormat:"YYYY",withCellSpacing:!0},am=xt((e,t)=>{const n=at("YearsList",Rdt,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,decade:f,yearsListFormat:m,locale:g,minDate:y,maxDate:b,getYearControlProps:x,__staticSelector:S,__getControlRef:w,__onControlKeyDown:N,__onControlClick:T,__onControlMouseEnter:A,__preventFocus:R,__stopPropagation:E,withCellSpacing:$,size:_,attributes:k,...q}=n,z=sn({name:S||"YearsList",classes:rj,props:n,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:k,vars:d,rootSelector:"yearsList"}),D=ko(),H=nj(f),O=jdt({years:H,minDate:y,maxDate:b,getYearControlProps:x}),j=H.map((M,I)=>{const F=M.map((V,W)=>{const U=x?.(V),P=ke(V).isSame(O,"year");return p.jsx("td",{...z("yearsListCell"),"data-with-spacing":$||void 0,children:p.jsx(rm,{...z("yearsListControl"),size:_,unstyled:u,"data-mantine-stop-propagation":E||void 0,disabled:tj({year:V,minDate:y,maxDate:b}),ref:Y=>{Y&&w?.(I,W,Y)},...U,onKeyDown:Y=>{U?.onKeyDown?.(Y),N?.(Y,{rowIndex:I,cellIndex:W,date:V})},onClick:Y=>{U?.onClick?.(Y),T?.(Y,V)},onMouseEnter:Y=>{U?.onMouseEnter?.(Y),A?.(Y,V)},onMouseDown:Y=>{U?.onMouseDown?.(Y),R&&Y.preventDefault()},tabIndex:R||!P?-1:0,children:ke(V).locale(D.getLocale(g)).format(m)})},W)});return p.jsx("tr",{...z("yearsListRow"),children:F},I)});return p.jsx(Bt,{component:"table",ref:t,size:_,...z("yearsList"),...q,children:p.jsx("tbody",{children:j})})});am.classes=rj;am.displayName="@mantine/dates/YearsList";function aj({month:e,minDate:t,maxDate:n}){return!t&&!n?!1:!!(t&&ke(e).isBefore(t,"month")||n&&ke(e).isAfter(n,"month"))}function Odt({months:e,minDate:t,maxDate:n,getMonthControlProps:a}){const o=e.flat().filter(u=>!aj({month:u,minDate:t,maxDate:n})&&!a?.(u)?.disabled),i=o.find(u=>a?.(u)?.selected);if(i)return i;const l=o.find(u=>ke().isSame(u,"month"));return l||o[0]}function Idt(e){const t=ke(e).startOf("year").toDate(),n=[[],[],[],[]];let a=0;for(let o=0;o<4;o+=1)for(let i=0;i<3;i+=1)n[o].push(ke(t).add(a,"months").format("YYYY-MM-DD")),a+=1;return n}var sj={monthsList:"m_2a6c32d",monthsListCell:"m_fe27622f"};const kdt={monthsListFormat:"MMM",withCellSpacing:!0},sm=xt((e,t)=>{const n=at("MonthsList",kdt,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,__staticSelector:f,year:m,monthsListFormat:g,locale:y,minDate:b,maxDate:x,getMonthControlProps:S,__getControlRef:w,__onControlKeyDown:N,__onControlClick:T,__onControlMouseEnter:A,__preventFocus:R,__stopPropagation:E,withCellSpacing:$,size:_,attributes:k,...q}=n,z=sn({name:f||"MonthsList",classes:sj,props:n,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:k,vars:d,rootSelector:"monthsList"}),D=ko(),H=Idt(m),O=Odt({months:H,minDate:Qn(b),maxDate:Qn(x),getMonthControlProps:S}),j=H.map((M,I)=>{const F=M.map((V,W)=>{const U=S?.(V),P=ke(V).isSame(O,"month");return p.jsx("td",{...z("monthsListCell"),"data-with-spacing":$||void 0,children:p.jsx(rm,{...z("monthsListControl"),size:_,unstyled:u,__staticSelector:f||"MonthsList","data-mantine-stop-propagation":E||void 0,disabled:aj({month:V,minDate:Qn(b),maxDate:Qn(x)}),ref:Y=>{Y&&w?.(I,W,Y)},...U,onKeyDown:Y=>{U?.onKeyDown?.(Y),N?.(Y,{rowIndex:I,cellIndex:W,date:V})},onClick:Y=>{U?.onClick?.(Y),T?.(Y,V)},onMouseEnter:Y=>{U?.onMouseEnter?.(Y),A?.(Y,V)},onMouseDown:Y=>{U?.onMouseDown?.(Y),R&&Y.preventDefault()},tabIndex:R||!P?-1:0,children:ke(V).locale(D.getLocale(y)).format(g)})},W)});return p.jsx("tr",{...z("monthsListRow"),children:F},I)});return p.jsx(Bt,{component:"table",ref:t,size:_,...z("monthsList"),...q,children:p.jsx("tbody",{children:j})})});sm.classes=sj;sm.displayName="@mantine/dates/MonthsList";var oj={calendarHeader:"m_730a79ed",calendarHeaderLevel:"m_f6645d97",calendarHeaderControl:"m_2351eeb0",calendarHeaderControlIcon:"m_367dc749"};const Mdt={hasNextLevel:!0,withNext:!0,withPrevious:!0,headerControlsOrder:["previous","level","next"]},Pdt=(e,{size:t})=>({calendarHeader:{"--dch-control-size":ta(t,"dch-control-size"),"--dch-fz":Jr(t)}}),Mo=xt((e,t)=>{const n=at("CalendarHeader",Mdt,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,nextIcon:f,previousIcon:m,nextLabel:g,previousLabel:y,onNext:b,onPrevious:x,onLevelClick:S,label:w,nextDisabled:N,previousDisabled:T,hasNextLevel:A,levelControlAriaLabel:R,withNext:E,withPrevious:$,headerControlsOrder:_,__staticSelector:k,__preventFocus:q,__stopPropagation:z,attributes:D,...H}=n,O=sn({name:k||"CalendarHeader",classes:oj,props:n,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:D,vars:d,varsResolver:Pdt,rootSelector:"calendarHeader"}),j=q?W=>W.preventDefault():void 0,M=$&&B.createElement(xs,{...O("calendarHeaderControl"),key:"previous","data-direction":"previous","aria-label":y,onClick:x,unstyled:u,onMouseDown:j,disabled:T,"data-disabled":T||void 0,tabIndex:q||T?-1:0,"data-mantine-stop-propagation":z||void 0},m||p.jsx(i0,{...O("calendarHeaderControlIcon"),"data-direction":"previous",size:"45%"})),I=B.createElement(xs,{component:A?"button":"div",...O("calendarHeaderLevel"),key:"level",onClick:A?S:void 0,unstyled:u,onMouseDown:A?j:void 0,disabled:!A,"data-static":!A||void 0,"aria-label":R,tabIndex:q||!A?-1:0,"data-mantine-stop-propagation":z||void 0},w),F=E&&B.createElement(xs,{...O("calendarHeaderControl"),key:"next","data-direction":"next","aria-label":g,onClick:b,unstyled:u,onMouseDown:j,disabled:N,"data-disabled":N||void 0,tabIndex:q||N?-1:0,"data-mantine-stop-propagation":z||void 0},f||p.jsx(i0,{...O("calendarHeaderControlIcon"),"data-direction":"next",size:"45%"})),V=_.map(W=>W==="previous"?M:W==="level"?I:W==="next"?F:null);return p.jsx(Bt,{...O("calendarHeader"),ref:t,...H,children:V})});Mo.classes=oj;Mo.displayName="@mantine/dates/CalendarHeader";function Ldt(e){const t=nj(e);return[t[0][0],t[3][0]]}const Bdt={decadeLabelFormat:"YYYY"},om=xt((e,t)=>{const n=at("DecadeLevel",Bdt,e),{decade:a,locale:o,minDate:i,maxDate:l,yearsListFormat:u,getYearControlProps:d,__getControlRef:f,__onControlKeyDown:m,__onControlClick:g,__onControlMouseEnter:y,withCellSpacing:b,__preventFocus:x,nextIcon:S,previousIcon:w,nextLabel:N,previousLabel:T,onNext:A,onPrevious:R,nextDisabled:E,previousDisabled:$,levelControlAriaLabel:_,withNext:k,withPrevious:q,headerControlsOrder:z,decadeLabelFormat:D,classNames:H,styles:O,unstyled:j,__staticSelector:M,__stopPropagation:I,size:F,attributes:V,...W}=n,U=ko(),[P,Y]=Ldt(a),K={__staticSelector:M||"DecadeLevel",classNames:H,styles:O,unstyled:j,size:F,attributes:V},Q=typeof E=="boolean"?E:l?!ke(Y).endOf("year").isBefore(l):!1,ee=typeof $=="boolean"?$:i?!ke(P).startOf("year").isAfter(i):!1,G=(oe,ye)=>ke(oe).locale(o||U.locale).format(ye);return p.jsxs(Bt,{"data-decade-level":!0,size:F,ref:t,...W,children:[p.jsx(Mo,{label:typeof D=="function"?D(P,Y):`${G(P,D)} – ${G(Y,D)}`,__preventFocus:x,__stopPropagation:I,nextIcon:S,previousIcon:w,nextLabel:N,previousLabel:T,onNext:A,onPrevious:R,nextDisabled:Q,previousDisabled:ee,hasNextLevel:!1,levelControlAriaLabel:_,withNext:k,withPrevious:q,headerControlsOrder:z,...K}),p.jsx(am,{decade:a,locale:o,minDate:i,maxDate:l,yearsListFormat:u,getYearControlProps:d,__getControlRef:f,__onControlKeyDown:m,__onControlClick:g,__onControlMouseEnter:y,__preventFocus:x,__stopPropagation:I,withCellSpacing:b,...K})]})});om.classes={...am.classes,...Mo.classes};om.displayName="@mantine/dates/DecadeLevel";const qdt={yearLabelFormat:"YYYY"},im=xt((e,t)=>{const n=at("YearLevel",qdt,e),{year:a,locale:o,minDate:i,maxDate:l,monthsListFormat:u,getMonthControlProps:d,__getControlRef:f,__onControlKeyDown:m,__onControlClick:g,__onControlMouseEnter:y,withCellSpacing:b,__preventFocus:x,nextIcon:S,previousIcon:w,nextLabel:N,previousLabel:T,onNext:A,onPrevious:R,onLevelClick:E,nextDisabled:$,previousDisabled:_,hasNextLevel:k,levelControlAriaLabel:q,withNext:z,withPrevious:D,headerControlsOrder:H,yearLabelFormat:O,__staticSelector:j,__stopPropagation:M,size:I,classNames:F,styles:V,unstyled:W,attributes:U,...P}=n,Y=ko(),K={__staticSelector:j||"YearLevel",classNames:F,styles:V,unstyled:W,size:I,attributes:U},Q=typeof $=="boolean"?$:l?!ke(a).endOf("year").isBefore(l):!1,ee=typeof _=="boolean"?_:i?!ke(a).startOf("year").isAfter(i):!1;return p.jsxs(Bt,{"data-year-level":!0,size:I,ref:t,...P,children:[p.jsx(Mo,{label:typeof O=="function"?O(a):ke(a).locale(o||Y.locale).format(O),__preventFocus:x,__stopPropagation:M,nextIcon:S,previousIcon:w,nextLabel:N,previousLabel:T,onNext:A,onPrevious:R,onLevelClick:E,nextDisabled:Q,previousDisabled:ee,hasNextLevel:k,levelControlAriaLabel:q,withNext:z,withPrevious:D,headerControlsOrder:H,...K}),p.jsx(sm,{year:a,locale:o,minDate:i,maxDate:l,monthsListFormat:u,getMonthControlProps:d,__getControlRef:f,__onControlKeyDown:m,__onControlClick:g,__onControlMouseEnter:y,__preventFocus:x,__stopPropagation:M,withCellSpacing:b,...K})]})});im.classes={...Mo.classes,...sm.classes};im.displayName="@mantine/dates/YearLevel";const Fdt={monthLabelFormat:"MMMM YYYY"},lm=xt((e,t)=>{const n=at("MonthLevel",Fdt,e),{month:a,locale:o,firstDayOfWeek:i,weekdayFormat:l,weekendDays:u,getDayProps:d,excludeDate:f,minDate:m,maxDate:g,renderDay:y,hideOutsideDates:b,hideWeekdays:x,getDayAriaLabel:S,__getDayRef:w,__onDayKeyDown:N,__onDayClick:T,__onDayMouseEnter:A,withCellSpacing:R,highlightToday:E,withWeekNumbers:$,__preventFocus:_,__stopPropagation:k,nextIcon:q,previousIcon:z,nextLabel:D,previousLabel:H,onNext:O,onPrevious:j,onLevelClick:M,nextDisabled:I,previousDisabled:F,hasNextLevel:V,levelControlAriaLabel:W,withNext:U,withPrevious:P,headerControlsOrder:Y,monthLabelFormat:K,classNames:Q,styles:ee,unstyled:G,__staticSelector:oe,size:ye,static:me,attributes:Se,...Be}=n,ae=ko(),ge={__staticSelector:oe||"MonthLevel",classNames:Q,styles:ee,unstyled:G,size:ye,attributes:Se},fe=typeof I=="boolean"?I:g?!ke(a).endOf("month").isBefore(g):!1,qe=typeof F=="boolean"?F:m?!ke(a).startOf("month").isAfter(m):!1;return p.jsxs(Bt,{"data-month-level":!0,size:ye,ref:t,...Be,children:[p.jsx(Mo,{label:typeof K=="function"?K(a):ke(a).locale(o||ae.locale).format(K),__preventFocus:_,__stopPropagation:k,nextIcon:q,previousIcon:z,nextLabel:D,previousLabel:H,onNext:O,onPrevious:j,onLevelClick:M,nextDisabled:fe,previousDisabled:qe,hasNextLevel:V,levelControlAriaLabel:W,withNext:U,withPrevious:P,headerControlsOrder:Y,...ge}),p.jsx(nm,{month:a,locale:o,firstDayOfWeek:i,weekdayFormat:l,weekendDays:u,getDayProps:d,excludeDate:f,minDate:m,maxDate:g,renderDay:y,hideOutsideDates:b,hideWeekdays:x,getDayAriaLabel:S,__getDayRef:w,__onDayKeyDown:N,__onDayClick:T,__onDayMouseEnter:A,__preventFocus:_,__stopPropagation:k,static:me,withCellSpacing:R,highlightToday:E,withWeekNumbers:$,...ge})]})});lm.classes={...nm.classes,...Mo.classes};lm.displayName="@mantine/dates/MonthLevel";var ij={levelsGroup:"m_30b26e33"};const Po=xt((e,t)=>{const n=at("LevelsGroup",null,e),{classNames:a,className:o,style:i,styles:l,unstyled:u,vars:d,__staticSelector:f,attributes:m,...g}=n,y=sn({name:f||"LevelsGroup",classes:ij,props:n,className:o,style:i,classNames:a,styles:l,unstyled:u,attributes:m,vars:d,rootSelector:"levelsGroup"});return p.jsx(Bt,{ref:t,...y("levelsGroup"),...g})});Po.classes=ij;Po.displayName="@mantine/dates/LevelsGroup";const zdt={numberOfColumns:1},cm=xt((e,t)=>{const n=at("DecadeLevelGroup",zdt,e),{decade:a,locale:o,minDate:i,maxDate:l,yearsListFormat:u,getYearControlProps:d,__onControlClick:f,__onControlMouseEnter:m,withCellSpacing:g,__preventFocus:y,nextIcon:b,previousIcon:x,nextLabel:S,previousLabel:w,onNext:N,onPrevious:T,nextDisabled:A,previousDisabled:R,headerControlsOrder:E,classNames:$,styles:_,unstyled:k,__staticSelector:q,__stopPropagation:z,numberOfColumns:D,levelControlAriaLabel:H,decadeLabelFormat:O,size:j,vars:M,attributes:I,...F}=n,V=B.useRef([]),W=Array(D).fill(0).map((U,P)=>{const Y=ke(a).add(P*10,"years").format("YYYY-MM-DD");return p.jsx(om,{size:j,yearsListFormat:u,decade:Y,withNext:P===D-1,withPrevious:P===0,decadeLabelFormat:O,__onControlClick:f,__onControlMouseEnter:m,__onControlKeyDown:(K,Q)=>k1({levelIndex:P,rowIndex:Q.rowIndex,cellIndex:Q.cellIndex,event:K,controlsRef:V}),__getControlRef:(K,Q,ee)=>{Array.isArray(V.current[P])||(V.current[P]=[]),Array.isArray(V.current[P][K])||(V.current[P][K]=[]),V.current[P][K][Q]=ee},levelControlAriaLabel:typeof H=="function"?H(Y):H,locale:o,minDate:i,maxDate:l,__preventFocus:y,__stopPropagation:z,nextIcon:b,previousIcon:x,nextLabel:S,previousLabel:w,onNext:N,onPrevious:T,nextDisabled:A,previousDisabled:R,getYearControlProps:d,__staticSelector:q||"DecadeLevelGroup",classNames:$,styles:_,unstyled:k,withCellSpacing:g,headerControlsOrder:E,attributes:I},P)});return p.jsx(Po,{classNames:$,styles:_,__staticSelector:q||"DecadeLevelGroup",ref:t,size:j,unstyled:k,attributes:I,...F,children:W})});cm.classes={...Po.classes,...om.classes};cm.displayName="@mantine/dates/DecadeLevelGroup";const Hdt={numberOfColumns:1},um=xt((e,t)=>{const n=at("YearLevelGroup",Hdt,e),{year:a,locale:o,minDate:i,maxDate:l,monthsListFormat:u,getMonthControlProps:d,__onControlClick:f,__onControlMouseEnter:m,withCellSpacing:g,__preventFocus:y,nextIcon:b,previousIcon:x,nextLabel:S,previousLabel:w,onNext:N,onPrevious:T,onLevelClick:A,nextDisabled:R,previousDisabled:E,hasNextLevel:$,headerControlsOrder:_,classNames:k,styles:q,unstyled:z,__staticSelector:D,__stopPropagation:H,numberOfColumns:O,levelControlAriaLabel:j,yearLabelFormat:M,size:I,vars:F,attributes:V,...W}=n,U=B.useRef([]),P=Array(O).fill(0).map((Y,K)=>{const Q=ke(a).add(K,"years").format("YYYY-MM-DD");return p.jsx(im,{size:I,monthsListFormat:u,year:Q,withNext:K===O-1,withPrevious:K===0,yearLabelFormat:M,__stopPropagation:H,__onControlClick:f,__onControlMouseEnter:m,__onControlKeyDown:(ee,G)=>k1({levelIndex:K,rowIndex:G.rowIndex,cellIndex:G.cellIndex,event:ee,controlsRef:U}),__getControlRef:(ee,G,oe)=>{Array.isArray(U.current[K])||(U.current[K]=[]),Array.isArray(U.current[K][ee])||(U.current[K][ee]=[]),U.current[K][ee][G]=oe},levelControlAriaLabel:typeof j=="function"?j(Q):j,locale:o,minDate:i,maxDate:l,__preventFocus:y,nextIcon:b,previousIcon:x,nextLabel:S,previousLabel:w,onNext:N,onPrevious:T,onLevelClick:A,nextDisabled:R,previousDisabled:E,hasNextLevel:$,getMonthControlProps:d,classNames:k,styles:q,unstyled:z,__staticSelector:D||"YearLevelGroup",withCellSpacing:g,headerControlsOrder:_,attributes:V},K)});return p.jsx(Po,{classNames:k,styles:q,__staticSelector:D||"YearLevelGroup",ref:t,size:I,unstyled:z,attributes:V,...W,children:P})});um.classes={...im.classes,...Po.classes};um.displayName="@mantine/dates/YearLevelGroup";const Udt={numberOfColumns:1},dm=xt((e,t)=>{const n=at("MonthLevelGroup",Udt,e),{month:a,locale:o,firstDayOfWeek:i,weekdayFormat:l,weekendDays:u,getDayProps:d,excludeDate:f,minDate:m,maxDate:g,renderDay:y,hideOutsideDates:b,hideWeekdays:x,getDayAriaLabel:S,__onDayClick:w,__onDayMouseEnter:N,withCellSpacing:T,highlightToday:A,withWeekNumbers:R,__preventFocus:E,nextIcon:$,previousIcon:_,nextLabel:k,previousLabel:q,onNext:z,onPrevious:D,onLevelClick:H,nextDisabled:O,previousDisabled:j,hasNextLevel:M,headerControlsOrder:I,classNames:F,styles:V,unstyled:W,numberOfColumns:U,levelControlAriaLabel:P,monthLabelFormat:Y,__staticSelector:K,__stopPropagation:Q,size:ee,static:G,vars:oe,attributes:ye,...me}=n,Se=B.useRef([]),Be=Array(U).fill(0).map((ae,ge)=>{const fe=ke(a).add(ge,"months").format("YYYY-MM-DD");return p.jsx(lm,{month:fe,withNext:ge===U-1,withPrevious:ge===0,monthLabelFormat:Y,__stopPropagation:Q,__onDayClick:w,__onDayMouseEnter:N,__onDayKeyDown:(qe,re)=>k1({levelIndex:ge,rowIndex:re.rowIndex,cellIndex:re.cellIndex,event:qe,controlsRef:Se}),__getDayRef:(qe,re,xe)=>{Array.isArray(Se.current[ge])||(Se.current[ge]=[]),Array.isArray(Se.current[ge][qe])||(Se.current[ge][qe]=[]),Se.current[ge][qe][re]=xe},levelControlAriaLabel:typeof P=="function"?P(fe):P,locale:o,firstDayOfWeek:i,weekdayFormat:l,weekendDays:u,getDayProps:d,excludeDate:f,minDate:m,maxDate:g,renderDay:y,hideOutsideDates:b,hideWeekdays:x,getDayAriaLabel:S,__preventFocus:E,nextIcon:$,previousIcon:_,nextLabel:k,previousLabel:q,onNext:z,onPrevious:D,onLevelClick:H,nextDisabled:O,previousDisabled:j,hasNextLevel:M,classNames:F,styles:V,unstyled:W,__staticSelector:K||"MonthLevelGroup",size:ee,static:G,withCellSpacing:T,highlightToday:A,withWeekNumbers:R,headerControlsOrder:I,attributes:ye},ge)});return p.jsx(Po,{classNames:F,styles:V,__staticSelector:K||"MonthLevelGroup",ref:t,size:ee,attributes:ye,...me,children:Be})});dm.classes={...Po.classes,...lm.classes};dm.displayName="@mantine/dates/MonthLevelGroup";var lj={input:"m_6fa5e2aa"};const fm=xt((e,t)=>{const{inputProps:n,wrapperProps:a,placeholder:o,classNames:i,styles:l,unstyled:u,popoverProps:d,modalProps:f,dropdownType:m,children:g,formattedValue:y,dropdownHandlers:b,dropdownOpened:x,onClick:S,clearable:w,onClear:N,clearButtonProps:T,rightSection:A,shouldClear:R,readOnly:E,disabled:$,value:_,name:k,form:q,type:z,onDropdownClose:D,withTime:H,...O}=XP("PickerInputBase",{size:"sm"},e),j=p.jsx(Wr.ClearButton,{onClick:N,unstyled:u,...T}),M=()=>{z==="range"&&Array.isArray(_)&&_[0]&&!_[1]&&N(),b.close()};return p.jsxs(p.Fragment,{children:[m==="modal"&&!E&&p.jsx(Ta,{opened:x,onClose:M,withCloseButton:!1,size:"auto","data-dates-modal":!0,unstyled:u,...f,children:g}),p.jsx(Wr.Wrapper,{...a,children:p.jsxs(bi,{position:"bottom-start",opened:x,trapFocus:!0,returnFocus:!1,unstyled:u,onClose:D,...d,disabled:d?.disabled||m==="modal"||E,onChange:I=>{I||(d?.onClose?.(),M())},children:[p.jsx(bi.Target,{children:p.jsx(Wr,{"data-dates-input":!0,"data-read-only":E||void 0,disabled:$,component:"button",type:"button",multiline:!0,onClick:I=>{S?.(I),b.toggle()},__clearSection:j,__clearable:w&&R&&!E&&!$,rightSection:A,...n,ref:t,classNames:{...i,input:na(lj.input,i?.input)},...O,children:y||p.jsx(Wr.Placeholder,{error:n.error,unstyled:u,className:i?.placeholder,style:l?.placeholder,children:o})})}),p.jsx(bi.Dropdown,{"data-dates-dropdown":!0,children:g})]})}),p.jsx(W3,{value:_,name:k,form:q,type:z,withTime:H})]})});fm.classes=lj;fm.displayName="@mantine/dates/PickerInputBase";const KE=e=>e==="range"?[null,null]:e==="multiple"?[]:null,QE=(e,t)=>{const n=t?Y3:Qn;return Array.isArray(e)?e.map(n):n(e)};function B1({type:e,value:t,defaultValue:n,onChange:a,withTime:o=!1}){const i=B.useRef(e),[l,u,d]=rv({value:QE(t,o),defaultValue:QE(n,o),finalValue:KE(e),onChange:a});let f=l;return i.current!==e&&(i.current=e,t===void 0&&(f=n!==void 0?n:KE(e),u(f))),[f,u,d]}function zb(e,t){return e?e==="month"?0:e==="year"?1:2:t||0}function Vdt(e){return e===0?"month":e===1?"year":"decade"}function du(e,t,n){return Vdt(GI(zb(e,0),zb(t,0),zb(n,2)))}const Gdt={maxLevel:"decade",minLevel:"month",__updateDateOnYearSelect:!0,__updateDateOnMonthSelect:!0,enableKeyboardNavigation:!0},pm=xt((e,t)=>{const n=at("Calendar",Gdt,e),{vars:a,maxLevel:o,minLevel:i,defaultLevel:l,level:u,onLevelChange:d,date:f,defaultDate:m,onDateChange:g,numberOfColumns:y,columnsToScroll:b,ariaLabels:x,nextLabel:S,previousLabel:w,onYearSelect:N,onMonthSelect:T,onYearMouseEnter:A,onMonthMouseEnter:R,headerControlsOrder:E,__updateDateOnYearSelect:$,__updateDateOnMonthSelect:_,__setDateRef:k,__setLevelRef:q,firstDayOfWeek:z,weekdayFormat:D,weekendDays:H,getDayProps:O,excludeDate:j,renderDay:M,hideOutsideDates:I,hideWeekdays:F,getDayAriaLabel:V,monthLabelFormat:W,nextIcon:U,previousIcon:P,__onDayClick:Y,__onDayMouseEnter:K,withCellSpacing:Q,highlightToday:ee,withWeekNumbers:G,monthsListFormat:oe,getMonthControlProps:ye,yearLabelFormat:me,yearsListFormat:Se,getYearControlProps:Be,decadeLabelFormat:ae,classNames:ge,styles:fe,unstyled:qe,minDate:re,maxDate:xe,locale:Te,__staticSelector:be,size:ve,__preventFocus:pe,__stopPropagation:_e,onNextDecade:Pe,onPreviousDecade:$e,onNextYear:je,onPreviousYear:He,onNextMonth:Ae,onPreviousMonth:Me,static:Je,enableKeyboardNavigation:dt,attributes:Re,...Z}=n,{resolvedClassNames:ot,resolvedStyles:vt}=Yl({classNames:ge,styles:fe,props:n}),[tt,ft]=rv({value:u?du(u,i,o):void 0,defaultValue:l?du(l,i,o):void 0,finalValue:du(void 0,i,o),onChange:d}),[ir,tn]=B1({type:"default",value:Qn(f),defaultValue:Qn(m),onChange:g});B.useImperativeHandle(k,()=>pt=>{tn(pt)}),B.useImperativeHandle(q,()=>pt=>{ft(pt)});const Zn={__staticSelector:be||"Calendar",styles:vt,classNames:ot,unstyled:qe,size:ve,attributes:Re},nn=b||y||1,Jn=new Date,wn=re&&ke(Jn).isAfter(re)?re:ke(Jn).format("YYYY-MM-DD"),ln=ir||wn,vr=()=>{const pt=ke(ln).add(nn,"month").format("YYYY-MM-DD");Ae?.(pt),tn(pt)},zn=()=>{const pt=ke(ln).subtract(nn,"month").format("YYYY-MM-DD");Me?.(pt),tn(pt)},Hn=()=>{const pt=ke(ln).add(nn,"year").format("YYYY-MM-DD");je?.(pt),tn(pt)},oa=()=>{const pt=ke(ln).subtract(nn,"year").format("YYYY-MM-DD");He?.(pt),tn(pt)},lr=()=>{const pt=ke(ln).add(10*nn,"year").format("YYYY-MM-DD");Pe?.(pt),tn(pt)},cr=()=>{const pt=ke(ln).subtract(10*nn,"year").format("YYYY-MM-DD");$e?.(pt),tn(pt)},Wa=B.useRef(null);B.useEffect(()=>{if(!dt||Je)return;const pt=Ft=>{if(!Wa.current?.contains(document.activeElement))return;const Ye=Ft.ctrlKey||Ft.metaKey,nt=Ft.shiftKey;switch(Ft.key){case"ArrowUp":Ye&&nt?(Ft.preventDefault(),cr()):Ye&&(Ft.preventDefault(),oa());break;case"ArrowDown":Ye&&nt?(Ft.preventDefault(),lr()):Ye&&(Ft.preventDefault(),Hn());break;case"y":case"Y":tt==="month"&&(Ft.preventDefault(),ft("year"));break}};return document.addEventListener("keydown",pt),()=>{document.removeEventListener("keydown",pt)}},[dt,Je,tt,Hn,oa,lr,cr]);const ks=pt=>{Wa.current=pt,typeof t=="function"?t(pt):t&&(t.current=pt)};return p.jsxs(Bt,{ref:ks,size:ve,"data-calendar":!0,...Z,children:[tt==="month"&&p.jsx(dm,{month:ln,minDate:re,maxDate:xe,firstDayOfWeek:z,weekdayFormat:D,weekendDays:H,getDayProps:O,excludeDate:j,renderDay:M,hideOutsideDates:I,hideWeekdays:F,getDayAriaLabel:V,onNext:vr,onPrevious:zn,hasNextLevel:o!=="month",onLevelClick:()=>ft("year"),numberOfColumns:y,locale:Te,levelControlAriaLabel:x?.monthLevelControl,nextLabel:x?.nextMonth??S,nextIcon:U,previousLabel:x?.previousMonth??w,previousIcon:P,monthLabelFormat:W,__onDayClick:Y,__onDayMouseEnter:K,__preventFocus:pe,__stopPropagation:_e,static:Je,withCellSpacing:Q,highlightToday:ee,withWeekNumbers:G,headerControlsOrder:E,...Zn}),tt==="year"&&p.jsx(um,{year:ln,numberOfColumns:y,minDate:re,maxDate:xe,monthsListFormat:oe,getMonthControlProps:ye,locale:Te,onNext:Hn,onPrevious:oa,hasNextLevel:o!=="month"&&o!=="year",onLevelClick:()=>ft("decade"),levelControlAriaLabel:x?.yearLevelControl,nextLabel:x?.nextYear??S,nextIcon:U,previousLabel:x?.previousYear??w,previousIcon:P,yearLabelFormat:me,__onControlMouseEnter:R,__onControlClick:(pt,Ft)=>{_&&tn(Ft),ft(du("month",i,o)),T?.(Ft)},__preventFocus:pe,__stopPropagation:_e,withCellSpacing:Q,headerControlsOrder:E,...Zn}),tt==="decade"&&p.jsx(cm,{decade:ln,minDate:re,maxDate:xe,yearsListFormat:Se,getYearControlProps:Be,locale:Te,onNext:lr,onPrevious:cr,numberOfColumns:y,nextLabel:x?.nextDecade??S,nextIcon:U,previousLabel:x?.previousDecade??w,previousIcon:P,decadeLabelFormat:ae,__onControlMouseEnter:A,__onControlClick:(pt,Ft)=>{$&&tn(Ft),ft(du("year",i,o)),N?.(Ft)},__preventFocus:pe,__stopPropagation:_e,withCellSpacing:Q,headerControlsOrder:E,...Zn})]})});pm.classes={...cm.classes,...um.classes,...dm.classes};pm.displayName="@mantine/dates/Calendar";function cj(e){const{maxLevel:t,minLevel:n,defaultLevel:a,level:o,onLevelChange:i,nextIcon:l,previousIcon:u,date:d,defaultDate:f,onDateChange:m,numberOfColumns:g,columnsToScroll:y,ariaLabels:b,nextLabel:x,previousLabel:S,onYearSelect:w,onMonthSelect:N,onYearMouseEnter:T,onMonthMouseEnter:A,onNextMonth:R,onPreviousMonth:E,onNextYear:$,onPreviousYear:_,onNextDecade:k,onPreviousDecade:q,withCellSpacing:z,highlightToday:D,__updateDateOnYearSelect:H,__updateDateOnMonthSelect:O,__setDateRef:j,__setLevelRef:M,withWeekNumbers:I,headerControlsOrder:F,firstDayOfWeek:V,weekdayFormat:W,weekendDays:U,getDayProps:P,excludeDate:Y,renderDay:K,hideOutsideDates:Q,hideWeekdays:ee,getDayAriaLabel:G,monthLabelFormat:oe,monthsListFormat:ye,getMonthControlProps:me,yearLabelFormat:Se,yearsListFormat:Be,getYearControlProps:ae,decadeLabelFormat:ge,allowSingleDateInRange:fe,allowDeselect:qe,minDate:re,maxDate:xe,locale:Te,...be}=e;return{calendarProps:{maxLevel:t,minLevel:n,defaultLevel:a,level:o,onLevelChange:i,nextIcon:l,previousIcon:u,date:d,defaultDate:f,onDateChange:m,numberOfColumns:g,columnsToScroll:y,ariaLabels:b,nextLabel:x,previousLabel:S,onYearSelect:w,onMonthSelect:N,onYearMouseEnter:T,onMonthMouseEnter:A,onNextMonth:R,onPreviousMonth:E,onNextYear:$,onPreviousYear:_,onNextDecade:k,onPreviousDecade:q,withCellSpacing:z,highlightToday:D,__updateDateOnYearSelect:H,__updateDateOnMonthSelect:O,__setDateRef:j,withWeekNumbers:I,headerControlsOrder:F,firstDayOfWeek:V,weekdayFormat:W,weekendDays:U,getDayProps:P,excludeDate:Y,renderDay:K,hideOutsideDates:Q,hideWeekdays:ee,getDayAriaLabel:G,monthLabelFormat:oe,monthsListFormat:ye,getMonthControlProps:me,yearLabelFormat:Se,yearsListFormat:Be,getYearControlProps:ae,decadeLabelFormat:ge,allowSingleDateInRange:fe,allowDeselect:qe,minDate:re,maxDate:xe,locale:Te},others:be}}function ZE(e,t){const n=[...t].sort((a,o)=>ke(a).isAfter(ke(o))?1:-1);return ke(n[0]).startOf("day").subtract(1,"ms").isBefore(e)&&ke(n[1]).endOf("day").add(1,"ms").isAfter(e)}function Ydt({type:e,level:t,value:n,defaultValue:a,onChange:o,allowSingleDateInRange:i,allowDeselect:l,onMouseLeave:u}){const[d,f]=B1({type:e,value:n,defaultValue:a,onChange:o}),[m,g]=B.useState(e==="range"&&d[0]&&!d[1]?d[0]:null),[y,b]=B.useState(null),x=E=>{if(e==="range"){if(m&&!d[1]){if(ke(E).isSame(m,t)&&!i){g(null),b(null),f([null,null]);return}const $=[E,m];$.sort((_,k)=>ke(_).isAfter(ke(k))?1:-1),f($),b(null),g(null);return}if(d[0]&&!d[1]&&ke(E).isSame(d[0],t)&&!i){g(null),b(null),f([null,null]);return}f([E,null]),b(null),g(E);return}if(e==="multiple"){d.some($=>ke($).isSame(E,t))?f(d.filter($=>!ke($).isSame(E,t))):f([...d,E]);return}d&&l&&ke(E).isSame(d,t)?f(null):f(E)},S=E=>m&&y?ZE(E,[y,m]):d[0]&&d[1]?ZE(E,d):!1,w=e==="range"?E=>{u?.(E),b(null)}:u,N=E=>d[0]&&ke(E).isSame(d[0],t)?!(y&&ke(y).isBefore(d[0])):!1,T=E=>d[1]?ke(E).isSame(d[1],t):!d[0]||!y?!1:ke(y).isBefore(d[0])&&ke(E).isSame(d[0],t),A=E=>{if(e==="range")return{selected:d.some(_=>_&&ke(_).isSame(E,t)),inRange:S(E),firstInRange:N(E),lastInRange:T(E),"data-autofocus":!!d[0]&&ke(d[0]).isSame(E,t)||void 0};if(e==="multiple")return{selected:d.some(_=>_&&ke(_).isSame(E,t)),"data-autofocus":!!d[0]&&ke(d[0]).isSame(E,t)||void 0};const $=ke(d).isSame(E,t);return{selected:$,"data-autofocus":$||void 0}},R=e==="range"&&m?b:()=>{};return B.useEffect(()=>{if(e==="range")if(d[0]&&!d[1])g(d[0]);else{const E=d[0]==null&&d[1]==null,$=d[0]!=null&&d[1]!=null;(E||$)&&(g(null),b(null))}},[d]),{onDateChange:x,onRootMouseLeave:w,onHoveredDateChange:R,getControlProps:A,_value:d,setValue:f}}var Wdt={datePickerRoot:"m_765a40cf",presetsList:"m_d6a681e1",presetButton:"m_acd30b22"};const Xdt=(e,{size:t})=>({datePickerRoot:{"--preset-font-size":Jr(t)}}),Kdt={type:"default",defaultLevel:"month",numberOfColumns:1,size:"sm"},hm=xt((e,t)=>{const n=at("DatePicker",Kdt,e),{allowDeselect:a,allowSingleDateInRange:o,value:i,defaultValue:l,onChange:u,onMouseLeave:d,classNames:f,styles:m,__staticSelector:g,__onDayClick:y,__onDayMouseEnter:b,__onPresetSelect:x,__stopPropagation:S,presets:w,className:N,style:T,unstyled:A,size:R,vars:E,attributes:$,..._}=n,{calendarProps:k,others:q}=cj(_),z=B.useRef(null),D=B.useRef(null),H=sn({name:g||"DatePicker",classes:Wdt,props:n,className:N,style:T,classNames:f,styles:m,unstyled:A,attributes:$,rootSelector:w?"datePickerRoot":void 0,varsResolver:Xdt,vars:E}),{onDateChange:O,onRootMouseLeave:j,onHoveredDateChange:M,getControlProps:I,_value:F,setValue:V}=Ydt({type:q.type,level:"day",allowDeselect:a,allowSingleDateInRange:o,value:i,defaultValue:l,onChange:u,onMouseLeave:d}),{resolvedClassNames:W,resolvedStyles:U}=Yl({classNames:f,styles:m,props:n}),P=p.jsx(pm,{ref:t,classNames:W,styles:U,__staticSelector:g||"DatePicker",onMouseLeave:j,size:R,...k,...w?{}:q,__stopPropagation:S,__setDateRef:z,__setLevelRef:D,minLevel:k.minLevel||"month",__onDayMouseEnter:(Q,ee)=>{M(ee),b?.(Q,ee)},__onDayClick:(Q,ee)=>{O(ee),y?.(Q,ee)},getDayProps:Q=>({...I(Q),...k.getDayProps?.(Q)}),getMonthControlProps:Q=>({selected:typeof F=="string"?L1(Q,F):!1,...k.getMonthControlProps?.(Q)}),getYearControlProps:Q=>({selected:typeof F=="string"?ke(Q).isSame(F,"year"):!1,...k.getYearControlProps?.(Q)}),hideOutsideDates:k.hideOutsideDates??k.numberOfColumns!==1,...w?{}:{className:N,style:T,attributes:$}});if(!w)return P;const Y=Q=>{const ee=Array.isArray(Q)?Q[0]:Q;ee!==void 0&&(z.current?.(ee),D.current?.("month"),x?x(ee):V(Q))},K=w.map((Q,ee)=>p.jsx(xs,{...H("presetButton"),onClick:()=>Y(Q.value),onMouseDown:G=>G.preventDefault(),"data-mantine-stop-propagation":S||void 0,children:Q.label},ee));return p.jsxs(Bt,{...H("datePickerRoot"),size:R,...q,children:[p.jsx("div",{...H("presetsList"),children:K}),P]})});hm.classes=pm.classes;hm.displayName="@mantine/dates/DatePicker";function Qdt({type:e,value:t,defaultValue:n,onChange:a,locale:o,format:i,closeOnChange:l,sortDates:u,labelSeparator:d,valueFormatter:f}){const m=ko(),[g,y]=ck(!1),[b,x]=B1({type:e,value:t,defaultValue:n,onChange:a}),S=ldt({type:e,date:b,locale:m.getLocale(o),format:i,labelSeparator:m.getLabelSeparator(d),formatter:f}),w=A=>{l&&(e==="default"&&y.close(),e==="range"&&A[0]&&A[1]&&y.close()),x(u&&e==="multiple"?[...A].sort((R,E)=>ke(R).isAfter(ke(E))?1:-1):A)},N=()=>w(e==="range"?[null,null]:e==="multiple"?[]:null),T=e==="range"?!!b[0]:e==="multiple"?b.length>0:b!==null;return{_value:b,setValue:w,onClear:N,shouldClear:T,formattedValue:S,dropdownOpened:g,dropdownHandlers:y}}const Zdt={type:"default",valueFormat:"MMMM D, YYYY",closeOnChange:!0,sortDates:!0,dropdownType:"popover"},q1=xt((e,t)=>{const n=at("DatePickerInput",Zdt,e),{type:a,value:o,defaultValue:i,onChange:l,valueFormat:u,labelSeparator:d,locale:f,classNames:m,styles:g,unstyled:y,closeOnChange:b,size:x,variant:S,dropdownType:w,sortDates:N,minDate:T,maxDate:A,vars:R,defaultDate:E,valueFormatter:$,presets:_,attributes:k,...q}=n,{resolvedClassNames:z,resolvedStyles:D}=Yl({classNames:m,styles:g,props:n}),{calendarProps:H,others:O}=cj(q),{_value:j,setValue:M,formattedValue:I,dropdownHandlers:F,dropdownOpened:V,onClear:W,shouldClear:U}=Qdt({type:a,value:o,defaultValue:i,onChange:l,locale:f,format:u,labelSeparator:d,closeOnChange:b,sortDates:N,valueFormatter:$}),P=Array.isArray(j)?j[0]||E:j||E;return p.jsx(fm,{formattedValue:I,dropdownOpened:V,dropdownHandlers:F,classNames:z,styles:D,unstyled:y,ref:t,onClear:W,shouldClear:U,value:j,size:x,variant:S,dropdownType:w,...O,type:a,__staticSelector:"DatePickerInput",attributes:k,children:p.jsx(hm,{...H,size:x,variant:S,type:a,value:j,defaultDate:P||fdt({maxDate:A,minDate:T}),onChange:M,locale:f,classNames:z,styles:D,unstyled:y,__staticSelector:"DatePickerInput",__stopPropagation:w==="popover",minDate:T,maxDate:A,presets:_,attributes:k})})});q1.classes={...fm.classes,...hm.classes};q1.displayName="@mantine/dates/DatePickerInput";function Jdt(e){const{placeholder:t,onChange:n,inputClass:a,disabled:o,name:i,minDate:l,maxDate:u}=e,[d,f]=B.useState(null),m=x=>x instanceof Date&&!isNaN(x),g=x=>{n({target:{name:i,value:x}})},y=l?new Date(l):null,b=u?new Date(u):null;return B.useEffect(()=>{const x=e.value?new Date(e.value):null;f(m(x)?x:null)},[e.value]),p.jsx(p.Fragment,{children:p.jsxs("div",{className:"relative",children:[p.jsx(q1,{variant:"styled",value:d,onChange:g,placeholder:t||"",className:`defaultBorder pe-4 ${a||""}`,valueFormat:"MMM DD, YYYY",disabled:o||!1,minDate:m(y)?y:void 0,maxDate:m(b)?b:void 0}),p.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 right-2 text-gray-500",children:p.jsx(Fe,{icon:jst})})]})})}function uj(e,t){return function(){return e.apply(t,arguments)}}const{toString:eft}=Object.prototype,{getPrototypeOf:F1}=Object,{iterator:mm,toStringTag:dj}=Symbol,gm=(e=>t=>{const n=eft.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Aa=e=>(e=e.toLowerCase(),t=>gm(t)===e),ym=e=>t=>typeof t===e,{isArray:sc}=Array,Vl=ym("undefined");function Sd(e){return e!==null&&!Vl(e)&&e.constructor!==null&&!Vl(e.constructor)&&yr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const fj=Aa("ArrayBuffer");function tft(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fj(e.buffer),t}const nft=ym("string"),yr=ym("function"),pj=ym("number"),Nd=e=>e!==null&&typeof e=="object",rft=e=>e===!0||e===!1,bp=e=>{if(gm(e)!=="object")return!1;const t=F1(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(dj in e)&&!(mm in e)},aft=e=>{if(!Nd(e)||Sd(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},sft=Aa("Date"),oft=Aa("File"),ift=Aa("Blob"),lft=Aa("FileList"),cft=e=>Nd(e)&&yr(e.pipe),uft=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||yr(e.append)&&((t=gm(e))==="formdata"||t==="object"&&yr(e.toString)&&e.toString()==="[object FormData]"))},dft=Aa("URLSearchParams"),[fft,pft,hft,mft]=["ReadableStream","Request","Response","Headers"].map(Aa),gft=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function wd(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let a,o;if(typeof e!="object"&&(e=[e]),sc(e))for(a=0,o=e.length;a<o;a++)t.call(null,e[a],a,e);else{if(Sd(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),l=i.length;let u;for(a=0;a<l;a++)u=i[a],t.call(null,e[u],u,e)}}function hj(e,t){if(Sd(e))return null;t=t.toLowerCase();const n=Object.keys(e);let a=n.length,o;for(;a-- >0;)if(o=n[a],t===o.toLowerCase())return o;return null}const mi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,mj=e=>!Vl(e)&&e!==mi;function W0(){const{caseless:e,skipUndefined:t}=mj(this)&&this||{},n={},a=(o,i)=>{const l=e&&hj(n,i)||i;bp(n[l])&&bp(o)?n[l]=W0(n[l],o):bp(o)?n[l]=W0({},o):sc(o)?n[l]=o.slice():(!t||!Vl(o))&&(n[l]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&wd(arguments[o],a);return n}const yft=(e,t,n,{allOwnKeys:a}={})=>(wd(t,(o,i)=>{n&&yr(o)?e[i]=uj(o,n):e[i]=o},{allOwnKeys:a}),e),bft=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),vft=(e,t,n,a)=>{e.prototype=Object.create(t.prototype,a),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},xft=(e,t,n,a)=>{let o,i,l;const u={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)l=o[i],(!a||a(l,e,t))&&!u[l]&&(t[l]=e[l],u[l]=!0);e=n!==!1&&F1(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Cft=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const a=e.indexOf(t,n);return a!==-1&&a===n},Sft=e=>{if(!e)return null;if(sc(e))return e;let t=e.length;if(!pj(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},Nft=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&F1(Uint8Array)),wft=(e,t)=>{const a=(e&&e[mm]).call(e);let o;for(;(o=a.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},Eft=(e,t)=>{let n;const a=[];for(;(n=e.exec(t))!==null;)a.push(n);return a},$ft=Aa("HTMLFormElement"),Tft=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,a,o){return a.toUpperCase()+o}),JE=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_ft=Aa("RegExp"),gj=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),a={};wd(n,(o,i)=>{let l;(l=t(o,i,e))!==!1&&(a[i]=l||o)}),Object.defineProperties(e,a)},Aft=e=>{gj(e,(t,n)=>{if(yr(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const a=e[n];if(yr(a)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Dft=(e,t)=>{const n={},a=o=>{o.forEach(i=>{n[i]=!0})};return sc(e)?a(e):a(String(e).split(t)),n},jft=()=>{},Rft=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Oft(e){return!!(e&&yr(e.append)&&e[dj]==="FormData"&&e[mm])}const Ift=e=>{const t=new Array(10),n=(a,o)=>{if(Nd(a)){if(t.indexOf(a)>=0)return;if(Sd(a))return a;if(!("toJSON"in a)){t[o]=a;const i=sc(a)?[]:{};return wd(a,(l,u)=>{const d=n(l,o+1);!Vl(d)&&(i[u]=d)}),t[o]=void 0,i}}return a};return n(e,0)},kft=Aa("AsyncFunction"),Mft=e=>e&&(Nd(e)||yr(e))&&yr(e.then)&&yr(e.catch),yj=((e,t)=>e?setImmediate:t?((n,a)=>(mi.addEventListener("message",({source:o,data:i})=>{o===mi&&i===n&&a.length&&a.shift()()},!1),o=>{a.push(o),mi.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",yr(mi.postMessage)),Pft=typeof queueMicrotask<"u"?queueMicrotask.bind(mi):typeof process<"u"&&process.nextTick||yj,Lft=e=>e!=null&&yr(e[mm]),de={isArray:sc,isArrayBuffer:fj,isBuffer:Sd,isFormData:uft,isArrayBufferView:tft,isString:nft,isNumber:pj,isBoolean:rft,isObject:Nd,isPlainObject:bp,isEmptyObject:aft,isReadableStream:fft,isRequest:pft,isResponse:hft,isHeaders:mft,isUndefined:Vl,isDate:sft,isFile:oft,isBlob:ift,isRegExp:_ft,isFunction:yr,isStream:cft,isURLSearchParams:dft,isTypedArray:Nft,isFileList:lft,forEach:wd,merge:W0,extend:yft,trim:gft,stripBOM:bft,inherits:vft,toFlatObject:xft,kindOf:gm,kindOfTest:Aa,endsWith:Cft,toArray:Sft,forEachEntry:wft,matchAll:Eft,isHTMLForm:$ft,hasOwnProperty:JE,hasOwnProp:JE,reduceDescriptors:gj,freezeMethods:Aft,toObjectSet:Dft,toCamelCase:Tft,noop:jft,toFiniteNumber:Rft,findKey:hj,global:mi,isContextDefined:mj,isSpecCompliantForm:Oft,toJSONObject:Ift,isAsyncFn:kft,isThenable:Mft,setImmediate:yj,asap:Pft,isIterable:Lft};function ut(e,t,n,a,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),a&&(this.request=a),o&&(this.response=o,this.status=o.status?o.status:null)}de.inherits(ut,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:de.toJSONObject(this.config),code:this.code,status:this.status}}});const bj=ut.prototype,vj={};["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=>{vj[e]={value:e}});Object.defineProperties(ut,vj);Object.defineProperty(bj,"isAxiosError",{value:!0});ut.from=(e,t,n,a,o,i)=>{const l=Object.create(bj);de.toFlatObject(e,l,function(m){return m!==Error.prototype},f=>f!=="isAxiosError");const u=e&&e.message?e.message:"Error",d=t==null&&e?e.code:t;return ut.call(l,u,d,n,a,o),e&&l.cause==null&&Object.defineProperty(l,"cause",{value:e,configurable:!0}),l.name=e&&e.name||"Error",i&&Object.assign(l,i),l};const Bft=null;function X0(e){return de.isPlainObject(e)||de.isArray(e)}function xj(e){return de.endsWith(e,"[]")?e.slice(0,-2):e}function e$(e,t,n){return e?e.concat(t).map(function(o,i){return o=xj(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function qft(e){return de.isArray(e)&&!e.some(X0)}const Fft=de.toFlatObject(de,{},null,function(t){return/^is[A-Z]/.test(t)});function bm(e,t,n){if(!de.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=de.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!de.isUndefined(w[S])});const a=n.metaTokens,o=n.visitor||m,i=n.dots,l=n.indexes,d=(n.Blob||typeof Blob<"u"&&Blob)&&de.isSpecCompliantForm(t);if(!de.isFunction(o))throw new TypeError("visitor must be a function");function f(x){if(x===null)return"";if(de.isDate(x))return x.toISOString();if(de.isBoolean(x))return x.toString();if(!d&&de.isBlob(x))throw new ut("Blob is not supported. Use a Buffer instead.");return de.isArrayBuffer(x)||de.isTypedArray(x)?d&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function m(x,S,w){let N=x;if(x&&!w&&typeof x=="object"){if(de.endsWith(S,"{}"))S=a?S:S.slice(0,-2),x=JSON.stringify(x);else if(de.isArray(x)&&qft(x)||(de.isFileList(x)||de.endsWith(S,"[]"))&&(N=de.toArray(x)))return S=xj(S),N.forEach(function(A,R){!(de.isUndefined(A)||A===null)&&t.append(l===!0?e$([S],R,i):l===null?S:S+"[]",f(A))}),!1}return X0(x)?!0:(t.append(e$(w,S,i),f(x)),!1)}const g=[],y=Object.assign(Fft,{defaultVisitor:m,convertValue:f,isVisitable:X0});function b(x,S){if(!de.isUndefined(x)){if(g.indexOf(x)!==-1)throw Error("Circular reference detected in "+S.join("."));g.push(x),de.forEach(x,function(N,T){(!(de.isUndefined(N)||N===null)&&o.call(t,N,de.isString(T)?T.trim():T,S,y))===!0&&b(N,S?S.concat(T):[T])}),g.pop()}}if(!de.isObject(e))throw new TypeError("data must be an object");return b(e),t}function t$(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(a){return t[a]})}function z1(e,t){this._pairs=[],e&&bm(e,this,t)}const Cj=z1.prototype;Cj.append=function(t,n){this._pairs.push([t,n])};Cj.toString=function(t){const n=t?function(a){return t.call(this,a,t$)}:t$;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function zft(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Sj(e,t,n){if(!t)return e;const a=n&&n.encode||zft;de.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=de.isURLSearchParams(t)?t.toString():new z1(t,n).toString(a),i){const l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class n${constructor(){this.handlers=[]}use(t,n,a){return this.handlers.push({fulfilled:t,rejected:n,synchronous:a?a.synchronous:!1,runWhen:a?a.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){de.forEach(this.handlers,function(a){a!==null&&t(a)})}}const Nj={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Hft=typeof URLSearchParams<"u"?URLSearchParams:z1,Uft=typeof FormData<"u"?FormData:null,Vft=typeof Blob<"u"?Blob:null,Gft={isBrowser:!0,classes:{URLSearchParams:Hft,FormData:Uft,Blob:Vft},protocols:["http","https","file","blob","url","data"]},H1=typeof window<"u"&&typeof document<"u",K0=typeof navigator=="object"&&navigator||void 0,Yft=H1&&(!K0||["ReactNative","NativeScript","NS"].indexOf(K0.product)<0),Wft=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Xft=H1&&window.location.href||"http://localhost",Kft=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:H1,hasStandardBrowserEnv:Yft,hasStandardBrowserWebWorkerEnv:Wft,navigator:K0,origin:Xft},Symbol.toStringTag,{value:"Module"})),Kn={...Kft,...Gft};function Qft(e,t){return bm(e,new Kn.classes.URLSearchParams,{visitor:function(n,a,o,i){return Kn.isNode&&de.isBuffer(n)?(this.append(a,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Zft(e){return de.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Jft(e){const t={},n=Object.keys(e);let a;const o=n.length;let i;for(a=0;a<o;a++)i=n[a],t[i]=e[i];return t}function wj(e){function t(n,a,o,i){let l=n[i++];if(l==="__proto__")return!0;const u=Number.isFinite(+l),d=i>=n.length;return l=!l&&de.isArray(o)?o.length:l,d?(de.hasOwnProp(o,l)?o[l]=[o[l],a]:o[l]=a,!u):((!o[l]||!de.isObject(o[l]))&&(o[l]=[]),t(n,a,o[l],i)&&de.isArray(o[l])&&(o[l]=Jft(o[l])),!u)}if(de.isFormData(e)&&de.isFunction(e.entries)){const n={};return de.forEachEntry(e,(a,o)=>{t(Zft(a),o,n,0)}),n}return null}function ept(e,t,n){if(de.isString(e))try{return(t||JSON.parse)(e),de.trim(e)}catch(a){if(a.name!=="SyntaxError")throw a}return(n||JSON.stringify)(e)}const Ed={transitional:Nj,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const a=n.getContentType()||"",o=a.indexOf("application/json")>-1,i=de.isObject(t);if(i&&de.isHTMLForm(t)&&(t=new FormData(t)),de.isFormData(t))return o?JSON.stringify(wj(t)):t;if(de.isArrayBuffer(t)||de.isBuffer(t)||de.isStream(t)||de.isFile(t)||de.isBlob(t)||de.isReadableStream(t))return t;if(de.isArrayBufferView(t))return t.buffer;if(de.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let u;if(i){if(a.indexOf("application/x-www-form-urlencoded")>-1)return Qft(t,this.formSerializer).toString();if((u=de.isFileList(t))||a.indexOf("multipart/form-data")>-1){const d=this.env&&this.env.FormData;return bm(u?{"files[]":t}:t,d&&new d,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),ept(t)):t}],transformResponse:[function(t){const n=this.transitional||Ed.transitional,a=n&&n.forcedJSONParsing,o=this.responseType==="json";if(de.isResponse(t)||de.isReadableStream(t))return t;if(t&&de.isString(t)&&(a&&!this.responseType||o)){const l=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(u){if(l)throw u.name==="SyntaxError"?ut.from(u,ut.ERR_BAD_RESPONSE,this,null,this.response):u}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Kn.classes.FormData,Blob:Kn.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};de.forEach(["delete","get","head","post","put","patch"],e=>{Ed.headers[e]={}});const tpt=de.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"]),npt=e=>{const t={};let n,a,o;return e&&e.split(`
`).forEach(function(l){o=l.indexOf(":"),n=l.substring(0,o).trim().toLowerCase(),a=l.substring(o+1).trim(),!(!n||t[n]&&tpt[n])&&(n==="set-cookie"?t[n]?t[n].push(a):t[n]=[a]:t[n]=t[n]?t[n]+", "+a:a)}),t},r$=Symbol("internals");function fu(e){return e&&String(e).trim().toLowerCase()}function vp(e){return e===!1||e==null?e:de.isArray(e)?e.map(vp):String(e)}function rpt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let a;for(;a=n.exec(e);)t[a[1]]=a[2];return t}const apt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Hb(e,t,n,a,o){if(de.isFunction(a))return a.call(this,t,n);if(o&&(t=n),!!de.isString(t)){if(de.isString(a))return t.indexOf(a)!==-1;if(de.isRegExp(a))return a.test(t)}}function spt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,a)=>n.toUpperCase()+a)}function opt(e,t){const n=de.toCamelCase(" "+t);["get","set","has"].forEach(a=>{Object.defineProperty(e,a+n,{value:function(o,i,l){return this[a].call(this,t,o,i,l)},configurable:!0})})}let br=class{constructor(t){t&&this.set(t)}set(t,n,a){const o=this;function i(u,d,f){const m=fu(d);if(!m)throw new Error("header name must be a non-empty string");const g=de.findKey(o,m);(!g||o[g]===void 0||f===!0||f===void 0&&o[g]!==!1)&&(o[g||d]=vp(u))}const l=(u,d)=>de.forEach(u,(f,m)=>i(f,m,d));if(de.isPlainObject(t)||t instanceof this.constructor)l(t,n);else if(de.isString(t)&&(t=t.trim())&&!apt(t))l(npt(t),n);else if(de.isObject(t)&&de.isIterable(t)){let u={},d,f;for(const m of t){if(!de.isArray(m))throw TypeError("Object iterator must return a key-value pair");u[f=m[0]]=(d=u[f])?de.isArray(d)?[...d,m[1]]:[d,m[1]]:m[1]}l(u,n)}else t!=null&&i(n,t,a);return this}get(t,n){if(t=fu(t),t){const a=de.findKey(this,t);if(a){const o=this[a];if(!n)return o;if(n===!0)return rpt(o);if(de.isFunction(n))return n.call(this,o,a);if(de.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=fu(t),t){const a=de.findKey(this,t);return!!(a&&this[a]!==void 0&&(!n||Hb(this,this[a],a,n)))}return!1}delete(t,n){const a=this;let o=!1;function i(l){if(l=fu(l),l){const u=de.findKey(a,l);u&&(!n||Hb(a,a[u],u,n))&&(delete a[u],o=!0)}}return de.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let a=n.length,o=!1;for(;a--;){const i=n[a];(!t||Hb(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,a={};return de.forEach(this,(o,i)=>{const l=de.findKey(a,i);if(l){n[l]=vp(o),delete n[i];return}const u=t?spt(i):String(i).trim();u!==i&&delete n[i],n[u]=vp(o),a[u]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return de.forEach(this,(a,o)=>{a!=null&&a!==!1&&(n[o]=t&&de.isArray(a)?a.join(", "):a)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const a=new this(t);return n.forEach(o=>a.set(o)),a}static accessor(t){const a=(this[r$]=this[r$]={accessors:{}}).accessors,o=this.prototype;function i(l){const u=fu(l);a[u]||(opt(o,l),a[u]=!0)}return de.isArray(t)?t.forEach(i):i(t),this}};br.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);de.reduceDescriptors(br.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(a){this[n]=a}}});de.freezeMethods(br);function Ub(e,t){const n=this||Ed,a=t||n,o=br.from(a.headers);let i=a.data;return de.forEach(e,function(u){i=u.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function Ej(e){return!!(e&&e.__CANCEL__)}function oc(e,t,n){ut.call(this,e??"canceled",ut.ERR_CANCELED,t,n),this.name="CanceledError"}de.inherits(oc,ut,{__CANCEL__:!0});function $j(e,t,n){const a=n.config.validateStatus;!n.status||!a||a(n.status)?e(n):t(new ut("Request failed with status code "+n.status,[ut.ERR_BAD_REQUEST,ut.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function ipt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function lpt(e,t){e=e||10;const n=new Array(e),a=new Array(e);let o=0,i=0,l;return t=t!==void 0?t:1e3,function(d){const f=Date.now(),m=a[i];l||(l=f),n[o]=d,a[o]=f;let g=i,y=0;for(;g!==o;)y+=n[g++],g=g%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),f-l<t)return;const b=m&&f-m;return b?Math.round(y*1e3/b):void 0}}function cpt(e,t){let n=0,a=1e3/t,o,i;const l=(f,m=Date.now())=>{n=m,o=null,i&&(clearTimeout(i),i=null),e(...f)};return[(...f)=>{const m=Date.now(),g=m-n;g>=a?l(f,m):(o=f,i||(i=setTimeout(()=>{i=null,l(o)},a-g)))},()=>o&&l(o)]}const Zp=(e,t,n=3)=>{let a=0;const o=lpt(50,250);return cpt(i=>{const l=i.loaded,u=i.lengthComputable?i.total:void 0,d=l-a,f=o(d),m=l<=u;a=l;const g={loaded:l,total:u,progress:u?l/u:void 0,bytes:d,rate:f||void 0,estimated:f&&u&&m?(u-l)/f:void 0,event:i,lengthComputable:u!=null,[t?"download":"upload"]:!0};e(g)},n)},a$=(e,t)=>{const n=e!=null;return[a=>t[0]({lengthComputable:n,total:e,loaded:a}),t[1]]},s$=e=>(...t)=>de.asap(()=>e(...t)),upt=Kn.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Kn.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Kn.origin),Kn.navigator&&/(msie|trident)/i.test(Kn.navigator.userAgent)):()=>!0,dpt=Kn.hasStandardBrowserEnv?{write(e,t,n,a,o,i,l){if(typeof document>"u")return;const u=[`${e}=${encodeURIComponent(t)}`];de.isNumber(n)&&u.push(`expires=${new Date(n).toUTCString()}`),de.isString(a)&&u.push(`path=${a}`),de.isString(o)&&u.push(`domain=${o}`),i===!0&&u.push("secure"),de.isString(l)&&u.push(`SameSite=${l}`),document.cookie=u.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function fpt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function ppt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Tj(e,t,n){let a=!fpt(t);return e&&(a||n==!1)?ppt(e,t):t}const o$=e=>e instanceof br?{...e}:e;function Ai(e,t){t=t||{};const n={};function a(f,m,g,y){return de.isPlainObject(f)&&de.isPlainObject(m)?de.merge.call({caseless:y},f,m):de.isPlainObject(m)?de.merge({},m):de.isArray(m)?m.slice():m}function o(f,m,g,y){if(de.isUndefined(m)){if(!de.isUndefined(f))return a(void 0,f,g,y)}else return a(f,m,g,y)}function i(f,m){if(!de.isUndefined(m))return a(void 0,m)}function l(f,m){if(de.isUndefined(m)){if(!de.isUndefined(f))return a(void 0,f)}else return a(void 0,m)}function u(f,m,g){if(g in t)return a(f,m);if(g in e)return a(void 0,f)}const d={url:i,method:i,data:i,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:u,headers:(f,m,g)=>o(o$(f),o$(m),g,!0)};return de.forEach(Object.keys({...e,...t}),function(m){const g=d[m]||o,y=g(e[m],t[m],m);de.isUndefined(y)&&g!==u||(n[m]=y)}),n}const _j=e=>{const t=Ai({},e);let{data:n,withXSRFToken:a,xsrfHeaderName:o,xsrfCookieName:i,headers:l,auth:u}=t;if(t.headers=l=br.from(l),t.url=Sj(Tj(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),u&&l.set("Authorization","Basic "+btoa((u.username||"")+":"+(u.password?unescape(encodeURIComponent(u.password)):""))),de.isFormData(n)){if(Kn.hasStandardBrowserEnv||Kn.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(de.isFunction(n.getHeaders)){const d=n.getHeaders(),f=["content-type","content-length"];Object.entries(d).forEach(([m,g])=>{f.includes(m.toLowerCase())&&l.set(m,g)})}}if(Kn.hasStandardBrowserEnv&&(a&&de.isFunction(a)&&(a=a(t)),a||a!==!1&&upt(t.url))){const d=o&&i&&dpt.read(i);d&&l.set(o,d)}return t},hpt=typeof XMLHttpRequest<"u",mpt=hpt&&function(e){return new Promise(function(n,a){const o=_j(e);let i=o.data;const l=br.from(o.headers).normalize();let{responseType:u,onUploadProgress:d,onDownloadProgress:f}=o,m,g,y,b,x;function S(){b&&b(),x&&x(),o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let w=new XMLHttpRequest;w.open(o.method.toUpperCase(),o.url,!0),w.timeout=o.timeout;function N(){if(!w)return;const A=br.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),E={data:!u||u==="text"||u==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:A,config:e,request:w};$j(function(_){n(_),S()},function(_){a(_),S()},E),w=null}"onloadend"in w?w.onloadend=N:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(N)},w.onabort=function(){w&&(a(new ut("Request aborted",ut.ECONNABORTED,e,w)),w=null)},w.onerror=function(R){const E=R&&R.message?R.message:"Network Error",$=new ut(E,ut.ERR_NETWORK,e,w);$.event=R||null,a($),w=null},w.ontimeout=function(){let R=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const E=o.transitional||Nj;o.timeoutErrorMessage&&(R=o.timeoutErrorMessage),a(new ut(R,E.clarifyTimeoutError?ut.ETIMEDOUT:ut.ECONNABORTED,e,w)),w=null},i===void 0&&l.setContentType(null),"setRequestHeader"in w&&de.forEach(l.toJSON(),function(R,E){w.setRequestHeader(E,R)}),de.isUndefined(o.withCredentials)||(w.withCredentials=!!o.withCredentials),u&&u!=="json"&&(w.responseType=o.responseType),f&&([y,x]=Zp(f,!0),w.addEventListener("progress",y)),d&&w.upload&&([g,b]=Zp(d),w.upload.addEventListener("progress",g),w.upload.addEventListener("loadend",b)),(o.cancelToken||o.signal)&&(m=A=>{w&&(a(!A||A.type?new oc(null,e,w):A),w.abort(),w=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));const T=ipt(o.url);if(T&&Kn.protocols.indexOf(T)===-1){a(new ut("Unsupported protocol "+T+":",ut.ERR_BAD_REQUEST,e));return}w.send(i||null)})},gpt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let a=new AbortController,o;const i=function(f){if(!o){o=!0,u();const m=f instanceof Error?f:this.reason;a.abort(m instanceof ut?m:new oc(m instanceof Error?m.message:m))}};let l=t&&setTimeout(()=>{l=null,i(new ut(`timeout ${t} of ms exceeded`,ut.ETIMEDOUT))},t);const u=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(f=>{f.unsubscribe?f.unsubscribe(i):f.removeEventListener("abort",i)}),e=null)};e.forEach(f=>f.addEventListener("abort",i));const{signal:d}=a;return d.unsubscribe=()=>de.asap(u),d}},ypt=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let a=0,o;for(;a<n;)o=a+t,yield e.slice(a,o),a=o},bpt=async function*(e,t){for await(const n of vpt(e))yield*ypt(n,t)},vpt=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:a}=await t.read();if(n)break;yield a}}finally{await t.cancel()}},i$=(e,t,n,a)=>{const o=bpt(e,t);let i=0,l,u=d=>{l||(l=!0,a&&a(d))};return new ReadableStream({async pull(d){try{const{done:f,value:m}=await o.next();if(f){u(),d.close();return}let g=m.byteLength;if(n){let y=i+=g;n(y)}d.enqueue(new Uint8Array(m))}catch(f){throw u(f),f}},cancel(d){return u(d),o.return()}},{highWaterMark:2})},l$=64*1024,{isFunction:tp}=de,xpt=(({Request:e,Response:t})=>({Request:e,Response:t}))(de.global),{ReadableStream:c$,TextEncoder:u$}=de.global,d$=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Cpt=e=>{e=de.merge.call({skipUndefined:!0},xpt,e);const{fetch:t,Request:n,Response:a}=e,o=t?tp(t):typeof fetch=="function",i=tp(n),l=tp(a);if(!o)return!1;const u=o&&tp(c$),d=o&&(typeof u$=="function"?(x=>S=>x.encode(S))(new u$):async x=>new Uint8Array(await new n(x).arrayBuffer())),f=i&&u&&d$(()=>{let x=!1;const S=new n(Kn.origin,{body:new c$,method:"POST",get duplex(){return x=!0,"half"}}).headers.has("Content-Type");return x&&!S}),m=l&&u&&d$(()=>de.isReadableStream(new a("").body)),g={stream:m&&(x=>x.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(x=>{!g[x]&&(g[x]=(S,w)=>{let N=S&&S[x];if(N)return N.call(S);throw new ut(`Response type '${x}' is not supported`,ut.ERR_NOT_SUPPORT,w)})});const y=async x=>{if(x==null)return 0;if(de.isBlob(x))return x.size;if(de.isSpecCompliantForm(x))return(await new n(Kn.origin,{method:"POST",body:x}).arrayBuffer()).byteLength;if(de.isArrayBufferView(x)||de.isArrayBuffer(x))return x.byteLength;if(de.isURLSearchParams(x)&&(x=x+""),de.isString(x))return(await d(x)).byteLength},b=async(x,S)=>{const w=de.toFiniteNumber(x.getContentLength());return w??y(S)};return async x=>{let{url:S,method:w,data:N,signal:T,cancelToken:A,timeout:R,onDownloadProgress:E,onUploadProgress:$,responseType:_,headers:k,withCredentials:q="same-origin",fetchOptions:z}=_j(x),D=t||fetch;_=_?(_+"").toLowerCase():"text";let H=gpt([T,A&&A.toAbortSignal()],R),O=null;const j=H&&H.unsubscribe&&(()=>{H.unsubscribe()});let M;try{if($&&f&&w!=="get"&&w!=="head"&&(M=await b(k,N))!==0){let P=new n(S,{method:"POST",body:N,duplex:"half"}),Y;if(de.isFormData(N)&&(Y=P.headers.get("content-type"))&&k.setContentType(Y),P.body){const[K,Q]=a$(M,Zp(s$($)));N=i$(P.body,l$,K,Q)}}de.isString(q)||(q=q?"include":"omit");const I=i&&"credentials"in n.prototype,F={...z,signal:H,method:w.toUpperCase(),headers:k.normalize().toJSON(),body:N,duplex:"half",credentials:I?q:void 0};O=i&&new n(S,F);let V=await(i?D(O,z):D(S,F));const W=m&&(_==="stream"||_==="response");if(m&&(E||W&&j)){const P={};["status","statusText","headers"].forEach(ee=>{P[ee]=V[ee]});const Y=de.toFiniteNumber(V.headers.get("content-length")),[K,Q]=E&&a$(Y,Zp(s$(E),!0))||[];V=new a(i$(V.body,l$,K,()=>{Q&&Q(),j&&j()}),P)}_=_||"text";let U=await g[de.findKey(g,_)||"text"](V,x);return!W&&j&&j(),await new Promise((P,Y)=>{$j(P,Y,{data:U,headers:br.from(V.headers),status:V.status,statusText:V.statusText,config:x,request:O})})}catch(I){throw j&&j(),I&&I.name==="TypeError"&&/Load failed|fetch/i.test(I.message)?Object.assign(new ut("Network Error",ut.ERR_NETWORK,x,O),{cause:I.cause||I}):ut.from(I,I&&I.code,x,O)}}},Spt=new Map,Aj=e=>{let t=e&&e.env||{};const{fetch:n,Request:a,Response:o}=t,i=[a,o,n];let l=i.length,u=l,d,f,m=Spt;for(;u--;)d=i[u],f=m.get(d),f===void 0&&m.set(d,f=u?new Map:Cpt(t)),m=f;return f};Aj();const U1={http:Bft,xhr:mpt,fetch:{get:Aj}};de.forEach(U1,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const f$=e=>`- ${e}`,Npt=e=>de.isFunction(e)||e===null||e===!1;function wpt(e,t){e=de.isArray(e)?e:[e];const{length:n}=e;let a,o;const i={};for(let l=0;l<n;l++){a=e[l];let u;if(o=a,!Npt(a)&&(o=U1[(u=String(a)).toLowerCase()],o===void 0))throw new ut(`Unknown adapter '${u}'`);if(o&&(de.isFunction(o)||(o=o.get(t))))break;i[u||"#"+l]=o}if(!o){const l=Object.entries(i).map(([d,f])=>`adapter ${d} `+(f===!1?"is not supported by the environment":"is not available in the build"));let u=n?l.length>1?`since :
`+l.map(f$).join(`
`):" "+f$(l[0]):"as no adapter specified";throw new ut("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return o}const Dj={getAdapter:wpt,adapters:U1};function Vb(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new oc(null,e)}function p$(e){return Vb(e),e.headers=br.from(e.headers),e.data=Ub.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Dj.getAdapter(e.adapter||Ed.adapter,e)(e).then(function(a){return Vb(e),a.data=Ub.call(e,e.transformResponse,a),a.headers=br.from(a.headers),a},function(a){return Ej(a)||(Vb(e),a&&a.response&&(a.response.data=Ub.call(e,e.transformResponse,a.response),a.response.headers=br.from(a.response.headers))),Promise.reject(a)})}const jj="1.13.2",vm={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{vm[e]=function(a){return typeof a===e||"a"+(t<1?"n ":" ")+e}});const h$={};vm.transitional=function(t,n,a){function o(i,l){return"[Axios v"+jj+"] Transitional option '"+i+"'"+l+(a?". "+a:"")}return(i,l,u)=>{if(t===!1)throw new ut(o(l," has been removed"+(n?" in "+n:"")),ut.ERR_DEPRECATED);return n&&!h$[l]&&(h$[l]=!0,console.warn(o(l," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,l,u):!0}};vm.spelling=function(t){return(n,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function Ept(e,t,n){if(typeof e!="object")throw new ut("options must be an object",ut.ERR_BAD_OPTION_VALUE);const a=Object.keys(e);let o=a.length;for(;o-- >0;){const i=a[o],l=t[i];if(l){const u=e[i],d=u===void 0||l(u,i,e);if(d!==!0)throw new ut("option "+i+" must be "+d,ut.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ut("Unknown option "+i,ut.ERR_BAD_OPTION)}}const xp={assertOptions:Ept,validators:vm},ka=xp.validators;let xi=class{constructor(t){this.defaults=t||{},this.interceptors={request:new n$,response:new n$}}async request(t,n){try{return await this._request(t,n)}catch(a){if(a instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{a.stack?i&&!String(a.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(a.stack+=`
`+i):a.stack=i}catch{}}throw a}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Ai(this.defaults,n);const{transitional:a,paramsSerializer:o,headers:i}=n;a!==void 0&&xp.assertOptions(a,{silentJSONParsing:ka.transitional(ka.boolean),forcedJSONParsing:ka.transitional(ka.boolean),clarifyTimeoutError:ka.transitional(ka.boolean)},!1),o!=null&&(de.isFunction(o)?n.paramsSerializer={serialize:o}:xp.assertOptions(o,{encode:ka.function,serialize:ka.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),xp.assertOptions(n,{baseUrl:ka.spelling("baseURL"),withXsrfToken:ka.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let l=i&&de.merge(i.common,i[n.method]);i&&de.forEach(["delete","get","head","post","put","patch","common"],x=>{delete i[x]}),n.headers=br.concat(l,i);const u=[];let d=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(d=d&&S.synchronous,u.unshift(S.fulfilled,S.rejected))});const f=[];this.interceptors.response.forEach(function(S){f.push(S.fulfilled,S.rejected)});let m,g=0,y;if(!d){const x=[p$.bind(this),void 0];for(x.unshift(...u),x.push(...f),y=x.length,m=Promise.resolve(n);g<y;)m=m.then(x[g++],x[g++]);return m}y=u.length;let b=n;for(;g<y;){const x=u[g++],S=u[g++];try{b=x(b)}catch(w){S.call(this,w);break}}try{m=p$.call(this,b)}catch(x){return Promise.reject(x)}for(g=0,y=f.length;g<y;)m=m.then(f[g++],f[g++]);return m}getUri(t){t=Ai(this.defaults,t);const n=Tj(t.baseURL,t.url,t.allowAbsoluteUrls);return Sj(n,t.params,t.paramsSerializer)}};de.forEach(["delete","get","head","options"],function(t){xi.prototype[t]=function(n,a){return this.request(Ai(a||{},{method:t,url:n,data:(a||{}).data}))}});de.forEach(["post","put","patch"],function(t){function n(a){return function(i,l,u){return this.request(Ai(u||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:i,data:l}))}}xi.prototype[t]=n(),xi.prototype[t+"Form"]=n(!0)});let $pt=class Rj{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const a=this;this.promise.then(o=>{if(!a._listeners)return;let i=a._listeners.length;for(;i-- >0;)a._listeners[i](o);a._listeners=null}),this.promise.then=o=>{let i;const l=new Promise(u=>{a.subscribe(u),i=u}).then(o);return l.cancel=function(){a.unsubscribe(i)},l},t(function(i,l,u){a.reason||(a.reason=new oc(i,l,u),n(a.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=a=>{t.abort(a)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new Rj(function(o){t=o}),cancel:t}}};function Tpt(e){return function(n){return e.apply(null,n)}}function _pt(e){return de.isObject(e)&&e.isAxiosError===!0}const Q0={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,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Q0).forEach(([e,t])=>{Q0[t]=e});function Oj(e){const t=new xi(e),n=uj(xi.prototype.request,t);return de.extend(n,xi.prototype,t,{allOwnKeys:!0}),de.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return Oj(Ai(e,o))},n}const Tt=Oj(Ed);Tt.Axios=xi;Tt.CanceledError=oc;Tt.CancelToken=$pt;Tt.isCancel=Ej;Tt.VERSION=jj;Tt.toFormData=bm;Tt.AxiosError=ut;Tt.Cancel=Tt.CanceledError;Tt.all=function(t){return Promise.all(t)};Tt.spread=Tpt;Tt.isAxiosError=_pt;Tt.mergeConfig=Ai;Tt.AxiosHeaders=br;Tt.formToJSON=e=>wj(de.isHTMLForm(e)?new FormData(e):e);Tt.getAdapter=Dj.getAdapter;Tt.HttpStatusCode=Q0;Tt.default=Tt;const{Axios:Uht,AxiosError:Vht,CanceledError:Ght,isCancel:Yht,CancelToken:Wht,VERSION:Xht,all:Kht,Cancel:Qht,isAxiosError:Zht,spread:Jht,toFormData:emt,AxiosHeaders:tmt,HttpStatusCode:nmt,formToJSON:rmt,getAdapter:amt,mergeConfig:smt}=Tt;function Apt(e){const{name:t,value:n,onChange:a,inputClass:o,disabled:i,placeholder:l}=e,u=B.useRef([]),d=B.useRef(null),f=B.useRef(null),[m,g]=B.useState(""),[y,b]=B.useState([]),[x,S]=B.useState(0),[w,N]=B.useState(!1),[T,A]=B.useState({top:0,left:0}),R=()=>N(!1);B.useEffect(()=>{g(n||"")},[n]);const E=async H=>{const{value:O}=H.target;if(g(O),O?.length>=3)try{const j=`${h1}api/quick-package/get-start-city-from-transport-data?term=${O}`,{data:M}=await Tt.post(j,{});D(),b([...M?.map(I=>({...I}))||[]]),S(0),N(!0)}catch(j){console.error("Error fetching city list from transport data:",j),N(!1),b([])}else N(!1),b([])},$=H=>{N(!0),S(0),D()},_=()=>{setTimeout(()=>{R()},500)},k=H=>{const O=H.key;O==="ArrowDown"?S(j=>j===y.length-1?0:j+1):O==="ArrowUp"?S(j=>j===0?y.length-1:j-1):O==="Enter"&&q(y[x])},q=H=>{if(H){const O=Tr(H?.label||"");a({target:{name:t,value:O,cityId:Number(H?.CityId||0)}})}else a({target:{name:t,value:"",cityId:0}});b([]),R()},z=()=>{a({target:{name:t,value:"",cityId:0}})},D=()=>{const H=d.current.getBoundingClientRect(),O=f.current?.offsetHeight||150,j=f.current?.offsetWidth||200,M=window.innerHeight,I=window.innerWidth;let F=H.bottom,V=H.left;H.bottom+O>M&&(F=H.top-O),H.left+j>I&&(V=I-j-10),A({top:F,left:V})};return B.useEffect(()=>{const H=j=>{f.current&&!f.current.contains(j.target)&&d.current&&!d.current.contains(j.target)&&(R(),S(0))},O=()=>{R(),S(0)};return document.addEventListener("click",H),window.addEventListener("scroll",O),()=>{document.removeEventListener("click",H),window.removeEventListener("scroll",O)}},[]),B.useEffect(()=>{u.current[x]&&u.current[x].scrollIntoView({behavior:"smooth",block:"nearest"})},[x]),p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"relative bg-white",children:[p.jsx("input",{type:"text",ref:d,name:t,value:m,onChange:E,onFocus:$,onBlurCapture:_,disabled:i||!1,placeholder:l||"",onKeyDown:k,autoComplete:"one-time-code",className:`w-full defaultBorder py-1 pl-2 pr-11 focus:outline-none disabled:cursor-not-allowed! disabled:opacity-50 disabled:bg-gray-300! ${o||""}`}),!e?.disabled&&m?.trim()!==""&&p.jsx("button",{type:"button",onClick:z,className:"absolute top-1/2 -translate-y-1/2 right-6 cursor-pointer",children:p.jsx(Fe,{icon:Or,className:"text-rose-500 text-xs"})}),p.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 right-1 text-gray-500",children:p.jsx(Fe,{icon:cA})})]}),w&&y&&y.length>0&&p.jsx("div",{ref:f,className:"fixed bg-white defaultBorder rounded shadow-lg py-1 w-[300px] z-9999 max-h-52 overflow-y-auto",style:{position:"fixed",top:`${T.top}px`,left:`${T.left}px`},children:y.map((H,O)=>p.jsx("button",{type:"button",ref:j=>u.current[O]=j,onMouseEnter:()=>S(O),onClick:()=>q(H),className:`py-1 px-2 text-left w-full ${x===O?"bg-sky-50":""}`,children:p.jsx("span",{className:"text-sm",children:Tr(H.CityName)})},O))})]})}function Dpt(e){const{value:t,name:n,onChange:a,inputClass:o,placeholder:i,disabled:l,dropdownWidth:u,noBackground:d}=e,f=B.useRef([]),m=lt(j=>j.global),[g,y]=B.useState(""),[b,x]=B.useState(!1),[S,w]=B.useState({top:0,left:0}),[N,T]=B.useState(),[A,R]=B.useState([...m?.currencyList||[]]),E=B.useRef(null),$=B.useRef(null);B.useEffect(()=>{y(t||"")},[t]);const _=()=>x(!1),k=j=>{x(!0),T(0),O(j),R([...m?.currencyList||[]])},q=j=>{const M=j.key;M==="ArrowDown"?T(I=>I===A.length-1?0:I+1):M==="ArrowUp"?T(I=>I===0?A.length-1:I-1):M==="Enter"&&D(A[N])},z=async j=>{const M=j.target.value;y(M),x(!0),O(j)},D=j=>{a({target:{name:n,value:j.currencyName.trim(),currencyId:j.currencyId}}),y(t||""),_()},H=()=>{setTimeout(()=>{_()},500)},O=j=>{j.stopPropagation();const M=E.current.getBoundingClientRect(),I=$.current?.offsetHeight||150,F=$.current?.offsetWidth||200,V=window.innerHeight,W=window.innerWidth;let U=M.bottom,P=M.left;M.bottom+I>V&&(U=M.top-I),M.left+F>W&&(P=W-F-10),w({top:U,left:P})};return B.useEffect(()=>{const j=I=>{$.current&&!$.current.contains(I.target)&&E.current&&!E.current.contains(I.target)&&(_(),T(null))},M=()=>{_()};return document.addEventListener("click",j),window.addEventListener("scroll",M),()=>{document.removeEventListener("click",j),window.removeEventListener("scroll",M)}},[]),B.useEffect(()=>{const j=m?.currencyList?.filter(M=>(M.currencyName?M.currencyName.trim().toLowerCase():"").includes((g||"").toLowerCase()))||[];R([...j]),T(0)},[m?.currencyList,g]),B.useEffect(()=>{f.current[N]&&f.current[N].scrollIntoView({behavior:"smooth",block:"nearest"})},[N]),p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"relative",onClick:k,children:[p.jsx("input",{type:"text",name:n,disabled:l||!1,ref:E,autoComplete:"one-time-code",className:`focus:outline-none defaultBorder w-full py-1 pl-2 pr-4 ${o||""} ${d?"bg-white":"bg-yellow-50"}`,value:g,placeholder:i||"",onChange:z,onFocus:k,onBlur:H,onClick:k,onKeyDown:q}),!l&&p.jsx("div",{className:"absolute top-1/2 right-2 -translate-y-1/2 text-xs",children:p.jsx(Fe,{icon:Ss})})]}),b&&A&&A.length>0&&p.jsx("div",{ref:$,className:"fixed bg-white defaultBorder shadow-lg py-1 z-9999999 max-h-52 overflow-y-auto",style:{position:"fixed",top:`${S.top}px`,left:`${S.left}px`,width:u||"300px"},children:A.map((j,M)=>p.jsx("button",{type:"button",ref:I=>f.current[M]=I,onMouseEnter:()=>T(M),onClick:()=>D(j),className:`py-1 px-2 text-left w-full ${N===M?"bg-sky-50":""}`,children:j.currencyName.trim()},M))})]})}function jpt(e){const{name:t,value:n,onChange:a,inputClass:o,disabled:i,placeholder:l,handleSelectDestination:u}=e,d=lt(j=>j.global),f=B.useRef([]),m=B.useRef(null),g=B.useRef(null),[y,b]=B.useState(""),[x,S]=B.useState([]),[w,N]=B.useState(0),[T,A]=B.useState(!1),[R,E]=B.useState({top:0,left:0}),$=()=>A(!1);B.useEffect(()=>{b(n||"")},[n]);const _=async j=>{const{value:M}=j.target;if(b(M),M?.trim()?.length>=3){const I=d?.hotelCitiesList?.filter(F=>{const V=F?.cityName?.toLowerCase()||"",W=F?.countryName?.toLowerCase()||"";return[V,W?`(${W})`:""].filter(Boolean)?.join(" ")?.includes(M?.trim()?.toLowerCase())});O(),S([...I?.map(F=>({...F}))||[]]),N(0),A(!0)}else A(!1),S([])},k=j=>{A(!0),N(0),O()},q=()=>{setTimeout(()=>{$()},500)},z=j=>{const M=j.key;if(M==="ArrowDown")N(I=>I===x.length-1?0:I+1);else if(M==="ArrowUp")N(I=>I===0?x.length-1:I-1);else if(M==="Enter"){const I=x?.[w]||{};if(D(x[w]),u){const F=Tr(I?.cityName||""),V=Tr(I?.countryName||""),W=[F,V?`(${V})`:""].filter(Boolean)?.join(" ");u({countryId:Number(I?.countryId||0),cityId:Number(I?.cityId||0),title:W,cityName:F}),b("")}}},D=j=>{if(j){const M=Tr(j?.cityName||""),I=Tr(j?.countryName||""),F=[M,I?`(${I})`:""].filter(Boolean)?.join(" ");a({target:{name:t,value:F,cityId:Number(j?.cityId||0),countryId:Number(j?.countryId||0),cityName:M,countryName:I}}),u&&(u({countryId:Number(j?.countryId||0),cityId:Number(j?.cityId||0),title:F,cityName:M}),b(""))}else a({target:{name:t,value:"",cityId:0,cityName:"",countryName:"",countryId:0}});S([]),$()},H=()=>{a({target:{name:t,value:"",cityId:0,cityName:"",countryName:"",countryId:0}})},O=()=>{const j=m.current.getBoundingClientRect(),M=g.current?.offsetHeight||150,I=g.current?.offsetWidth||200,F=window.innerHeight,V=window.innerWidth;let W=j.bottom,U=j.left;j.bottom+M>F&&(W=j.top-M),j.left+I>V&&(U=V-I-10),E({top:W,left:U})};return B.useEffect(()=>{const j=I=>{g.current&&!g.current.contains(I.target)&&m.current&&!m.current.contains(I.target)&&($(),N(0))},M=()=>{$(),N(0)};return document.addEventListener("click",j),window.addEventListener("scroll",M),()=>{document.removeEventListener("click",j),window.removeEventListener("scroll",M)}},[]),B.useEffect(()=>{f.current[w]&&f.current[w].scrollIntoView({behavior:"smooth",block:"nearest"})},[w]),p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"relative",children:[p.jsx("input",{type:"text",ref:m,name:t,value:y,onChange:_,onFocus:k,onBlurCapture:q,disabled:i||!1,placeholder:l||"",onKeyDown:z,autoComplete:"one-time-code",className:`w-full defaultBorder py-1 pl-2 pr-11 focus:outline-none disabled:cursor-not-allowed! ${o||""}`}),!e?.disabled&&y?.trim()!==""&&p.jsx("button",{type:"button",onClick:H,className:"absolute top-1/2 -translate-y-1/2 right-6 cursor-pointer",children:p.jsx(Fe,{icon:Or,className:"text-rose-500 text-xs"})}),p.jsx("div",{className:"absolute top-1/2 -translate-y-1/2 right-1 text-gray-500",children:p.jsx(Fe,{icon:cA})})]}),T&&x&&x.length>0&&p.jsx("div",{ref:g,className:"fixed bg-white defaultBorder rounded shadow-lg py-1 w-[300px] z-9999 max-h-52 overflow-y-auto",style:{position:"fixed",top:`${R.top}px`,left:`${R.left}px`},children:x.map((j,M)=>{const I=Tr(j?.cityName||""),F=Tr(j?.countryName||""),V=[I,F?`(${F})`:""].filter(Boolean)?.join(" ");return p.jsx("button",{type:"button",ref:W=>f.current[M]=W,onMouseEnter:()=>N(M),onClick:()=>D(j),className:`py-1 px-2 text-left w-full ${w===M?"bg-sky-50":""}`,children:p.jsx("span",{className:"text-sm",children:V})},M)})})]})}function Rpt(e){const t=B.useRef([]),[n,a]=B.useState(""),[o,i]=B.useState(!1),[l,u]=B.useState({top:0,left:0}),[d,f]=B.useState(),[m,g]=B.useState([]),[y,b]=B.useState([]),x=B.useRef(null),S=B.useRef(null);B.useEffect(()=>{e?.value&&a(e.value||"")},[e.value]);const w=()=>i(!1),N=_=>{i(!0),f(0),$(_)},T=_=>{const k=_.key;k==="ArrowDown"?f(q=>q===y.length-1?0:q+1):k==="ArrowUp"?f(q=>q===0?y.length-1:q-1):k==="Enter"&&(y?.length>0?R(y[d]):e.onChange({target:{name:e.name,value:n}}))},A=async _=>{let k=_.target.value.replace(/[^0-9]/g,"");if(k.length>0&&parseInt(k[0])>2&&(k="2"),k.length>1&&k[0]==="2"&&parseInt(k[1])>3&&(k=k[0]+"3"),k.length>2&&parseInt(k[2])>5&&(k=k.slice(0,2)+"5"),k.length>2&&(k=k.slice(0,2)+":"+k.slice(2)),k.length>5&&(k=k.slice(0,5)),e.onChange({target:{name:e.name,value:k}}),a(k),k.length>=1){const q=m.filter(z=>z.startsWith(k));q.length>0?(b(q),i(!0)):(b([]),i(!1))}else b([]),i(!1)},R=_=>{e.onChange({target:{name:e.name,value:_}}),a(e?.value||""),w()},E=()=>{setTimeout(()=>{w()},500)},$=_=>{_.stopPropagation();const k=x.current.getBoundingClientRect(),q=S.current?.offsetHeight||150,z=S.current?.offsetWidth||200,D=window.innerHeight,H=window.innerWidth;let O=0;const j=85*parseFloat(getComputedStyle(document.documentElement).fontSize);window.innerWidth>j&&e?.isPopUpOpen&&(O=H-j);let M=k.bottom,I=k.left-O;k.bottom+q>D&&(M=k.top-q),k.left+z>H&&(I=H-z-10),u({top:M,left:I})};return B.useEffect(()=>{const _=q=>{S.current&&!S.current.contains(q.target)&&x.current&&!x.current.contains(q.target)&&(w(),f(null))},k=()=>{w()};return document.addEventListener("click",_),window.addEventListener("scroll",k),()=>{document.removeEventListener("click",_),window.removeEventListener("scroll",k)}},[]),B.useEffect(()=>{t.current[d]&&t.current[d].scrollIntoView({behavior:"smooth",block:"nearest"})},[d]),B.useEffect(()=>{const _=[],q=parseInt(e?.timeGap||300);for(let z=0;z<86400;z+=q){const D=Math.floor(z/3600).toString().padStart(2,"0"),H=Math.floor(z%3600/60).toString().padStart(2,"0");_.push(`${D}:${H}`)}g(_),b(_)},[e?.timeGap]),p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"relative bg-white",onClick:N,children:[p.jsx("input",{type:"text",name:e.name,ref:x,autoComplete:"one-time-code",className:`focus:outline-none  py-1 pl-2 pr-4 defaultBorder disabled:cursor-not-allowed! disabled:opacity-50 disabled:bg-gray-300! ${e?.inputClass||""}`,value:n||"",onChange:A,onFocus:N,onBlur:E,onClick:N,onKeyDown:T,disabled:e?.disabled||!1,placeholder:e?.placeholder||""}),!e?.disabled&&p.jsx("div",{className:"absolute top-1/2 right-1 -translate-y-1/2 text-xs",children:p.jsx(Fe,{icon:Ss})})]}),o&&y&&y.length>0&&p.jsx("div",{ref:S,className:"fixed bg-white defaultBorder shadow-lg py-1 w-[100px] z-9999999 max-h-52 overflow-y-auto",style:{position:"fixed",top:`${l.top}px`,left:`${l.left}px`},children:y.map((_,k)=>p.jsx("button",{type:"button",ref:q=>t.current[k]=q,onMouseEnter:()=>f(k),onClick:()=>R(_),className:`py-1 px-2 text-left w-full ${d===k?"bg-sky-50":""}`,children:_},k))})]})}const ms=e=>{const{label:t,required:n,labelClass:a}=e;return t?p.jsxs("label",{className:`text-xs! mb-1 font-normal! ${a||""}`,children:[t," ",n?p.jsx("span",{className:"text-rose-600",children:"*"}):""]}):""},We=e=>{const{value:t,onChange:n,onKeyDown:a,required:o,label:i,disabled:l,inputClass:u,divClass:d,type:f,name:m,onBlur:g,placeholder:y,labelClass:b}=e;if(["text","email","number","decimal"].some(x=>x===f)){const x=S=>{const w=S.target.value;f==="number"&&Sot.test(w)?n({target:{name:m,value:w}}):f==="decimal"&&Not.test(w)?n({target:{name:m,value:w}}):f!=="number"&&f!=="decimal"&&n({target:{name:m,value:w}})};return p.jsxs("div",{className:d||"",children:[p.jsx(ms,{label:i,labelClass:b||"",required:o}),p.jsx("div",{className:"bg-white",children:p.jsx("input",{type:["text","number","decimal"].some(S=>S===f)?"text":f,name:m,autoComplete:"one-time-code",value:t||"",onChange:x,placeholder:y&&y?.trim()!=""?`${y||""} ${o?"*":""}`:"",onBlur:g,disabled:l||!1,maxLength:e?.maxCharacters||"",className:`w-full defaultBorder py-1 px-2 focus:outline-none disabled:cursor-not-allowed! disabled:opacity-50 disabled:bg-gray-300! ${u||""}`})})]})}else return f==="select"?p.jsxs("div",{className:d||"",children:[p.jsx(ms,{label:i,labelClass:b||"",required:o}),p.jsx("select",{name:m,value:t||"",onChange:n,onBlur:g,disabled:l||!1,className:`block w-full defaultBorder py-1 px-2 focus:outline-none disabled:cursor-not-allowed! leading-5 ${u||""}`,children:e?.optionList?.map((x,S)=>p.jsx("option",{value:x?.value||"",children:x?.label||""},S))})]}):f==="countryCode"?p.jsxs("div",{className:d||"",children:[p.jsx(ms,{label:i,labelClass:b||"",required:o}),p.jsx(rdt,{autoFormat:!1,value:t||"",placeholder:"",inputClass:`w-full border-zinc-200 disabled:cursor-not-allowed! ${u||""}`,onChange:x=>n({target:{name:m,value:`+${x}`}})})]}):f==="textarea"?p.jsxs("div",{className:d||"",children:[p.jsx(ms,{label:i,labelClass:b||"",required:o}),p.jsx("textarea",{name:m,autoComplete:"one-time-code",value:t||"",onChange:n,onBlur:g,disabled:l||!1,className:`w-full defaultBorder py-1 px-2 focus:outline-none disabled:cursor-not-allowed! ${u||""}`})]}):f==="date"?p.jsxs("div",{className:d||"",children:[p.jsx(ms,{label:i,labelClass:b||"",required:o}),p.jsx(Jdt,{value:t,name:m,onChange:n,noBackground:l||!1,disabled:l||!1,placeholder:y&&y?.trim()!=""?`${y||""} ${o?"*":""}`:"",inputClass:`disabled:cursor-not-allowed! ${u||""}`,minDate:e.minDate,maxDate:e.maxDate,inputStyles:e?.inputStyles||{}})]}):f==="currencySelect"?p.jsxs("div",{className:d||"",children:[p.jsx(ms,{label:i,labelClass:b||"",required:o}),p.jsx(Dpt,{value:t,name:m,onChange:n,noBackground:e?.noBackground||l||!1,disabled:l||!1,placeholder:y||"",inputClass:`disabled:cursor-not-allowed! ${u||""}`,dropdownWidth:e?.dropdownWidth||void 0})]}):f==="cityFromTransport"?p.jsxs("div",{className:d||"",children:[p.jsx(ms,{label:i,labelClass:b||"",required:o}),p.jsx(Apt,{value:t,name:m,onChange:n,onKeyDown:a,inputClass:u||"",disabled:l||!1,placeholder:y&&y?.trim()!=""?`${y||""} ${o?"*":""}`:""})]}):f==="cityFromHotel"?p.jsxs("div",{className:d||"",children:[p.jsx(ms,{label:i,labelClass:b||"",required:o}),p.jsx(jpt,{value:t,name:m,onChange:n,handleSelectDestination:e.handleSelectDestination,inputClass:u||"",disabled:l||!1,placeholder:y&&y?.trim()!=""?`${y||""} ${o?"*":""}`:""})]}):f==="time"?p.jsxs("div",{className:d||"",children:[p.jsx(ms,{label:i,labelClass:b||"",required:o}),p.jsx(Rpt,{value:t,name:m,onChange:n,disabled:l||!1,noBackground:l||!1,inputClass:u||"",placeholder:y&&y?.trim()!=""?`${y||""} ${o?"*":""}`:"",timeGap:e.timeGap,isPopUpOpen:e?.isPopUpOpen||!1})]}):""},Ij=Wh({name:"buildYourOwnData",initialState:{adults:2,currentStep:1,currency:1,PlanType:5,IsHotelSelected:!0,IsTransferSelected:!0,IsSightseeingSelected:!0,TotalNights:1,tripSuggestion:[],hotelCities:[],HotelOptions:[],dayWiseItinerary:[{}],inventoryHotels:{},hotelDetails:{},otherItems:[]},reducers:{updateBuildYourOwnData:(e,t)=>{const n=t.payload;Object.entries(n).forEach(([a,o])=>{e[a]=o})},updateDayWiseItinerary:(e,t)=>{const{dayIdx:n,actionType:a,activityType:o,activityIdx:i,updates:l}=t.payload;if(n>=0){if(a==="add"){let u={};o==="transfers"&&(u={directNoOfCar:1}),e.dayWiseItinerary[n][o]=[...e?.dayWiseItinerary?.[n]?.[o]||[],{...u}]}if(a==="remove"&&i>=0){const u=e.dayWiseItinerary[n][o][i];if(e.dayWiseItinerary[n][o]=e.dayWiseItinerary[n][o].filter((d,f)=>f!==i),o==="transfers"&&Number(u?.RouteSysId||0)>0&&Number(u?.RouteSysId||0)===Number(e?.selectedRouteSuggestion?.routeId||0)&&(e.selectedRouteSuggestion={}),o==="transfers"&&u?.includedSightseeings?.length>0&&(e.dayWiseItinerary=e.dayWiseItinerary.map(d=>{if(!d?.dayWisePrivateSightseeing?.length)return d;const f=d.transfers.filter(g=>g?.uniqueId!==u?.uniqueId),m=d.dayWisePrivateSightseeing.filter(g=>g?.transUniqueId!==u?.uniqueId);return{...d,dayWisePrivateSightseeing:m.map(g=>({...g})),transfers:f.map(g=>({...g}))}})),o==="sightseeing"){const d=e?.dayWiseItinerary?.[n]?.transfers?.filter(f=>f?.sightUniqueId!==u?.uniqueId);e.dayWiseItinerary[n].transfers=[...d?.map(f=>({...f}))||[]]}}a==="update"&&i>=0&&Object.entries(l).forEach(([u,d])=>{e.dayWiseItinerary[n][o][i][u]=d}),a==="newItems"&&l.length>0&&e.dayWiseItinerary[n][o].push(...l)}},updateInventoryHotels:(e,t)=>{const{cityId:n,hotelList:a,actionType:o,hotelUniqueId:i,roomIdx:l,key:u,value:d,otherKey:f,otherValue:m}=t.payload;if(o==="newHotels"&&(e.inventoryHotels[n]=a),o==="newRoom"){const g=e?.inventoryHotels?.[n]?.findIndex(y=>y.uniqueId===i);if(g>=0){const y=e?.inventoryHotels?.[n]?.[g],b=Object.values(y?.availableRoomTypes||{})?.[0],x=b?.mealPLans?.[0],S={AdultPax:1,room:b?.name||"",mealPlan:x?.short,meal_type:x?.id,sharingType:"Single Sharing",sharingTypeNum:1};e.inventoryHotels[n][g].rooms=[...e?.inventoryHotels?.[n]?.[g]?.rooms||[],{...S}]}}if(o==="deleteRoom"){const g=e?.inventoryHotels?.[n]?.findIndex(y=>y.uniqueId===i);g>=0&&l>=0&&e?.inventoryHotels?.[n]?.[g]?.rooms?.splice(l,1)}if(o==="resetFilter"){const y=(e?.inventoryHotels?.[n]||[])?.map(b=>({...b,isFiltered:!0}));!e?.inventoryHotels?.[n]?.length<=0&&(e.inventoryHotels[n]=[]),e.inventoryHotels[n]=[...y]}if(o==="updateRoom"){const g=e?.inventoryHotels?.[n]?.findIndex(y=>y.uniqueId===i);if(g>=0&&l>=0&&(e.inventoryHotels[n][g].rooms[l][u]=d,f&&(e.inventoryHotels[n][g].rooms[l][f]=m),u==="AdultPax"||u==="ExtraAdultPax")){const y=e?.inventoryHotels?.[n]?.[g]?.rooms?.[l]||{},b=Number(y?.AdultPax||0)+Number(y?.ExtraAdultPax||0),x=b>=6?6:b;e.inventoryHotels[n][g].rooms[l].sharingTypeNum=x,e.inventoryHotels[n][g].rooms[l].sharingType=Aot[x]}}},addHotelDetails:(e,t)=>{const{hotelId:n,data:a}=t.payload;e.hotelDetails[n]={...a}},updateHotelCities:(e,t)=>{const{cityUniqueId:n,key:a,value:o}=t.payload,i=e?.hotelCities?.findIndex(l=>l.uniqueId===n);i>=0&&(e.hotelCities[i][a]=o,a==="hotelSelf"&&o&&(e.selectedHotels[n]={},e.dayWiseItinerary?.forEach(l=>{l.cityUniqueId===n&&(l.IsHotelSelf=!0)})))},removeSelectedHotel:(e,t)=>{const{selectedCity:n,hotelIdx:a}=t.payload,o={...e?.selectedHotels?.[n]||{}};a>=0&&delete o[a];const i=Object.values(o).reduce((l,u,d)=>(l[d+1]=u,l),{});e.selectedHotels={...e?.selectedHotels||{},[n]:{...i||{}}}},updateOtherItems:(e,t)=>{const{actionType:n,newItems:a}=t.payload;n==="newItems"&&(e.otherItems=[...e?.otherItems||[],...a])}}}),{updateBuildYourOwnData:Lt,updateDayWiseItinerary:Dn,updateInventoryHotels:gi,addHotelDetails:Opt,updateHotelCities:Ipt,removeSelectedHotel:kj,updateOtherItems:kpt}=Ij.actions,Mpt=Ij.reducer,Ppt=(e,t,n,a,o,i,l,u)=>{const d=[];for(const[f,m]of e.entries()){const g=Number(m?.SupplierSysId||0),y=m?.SupplierName?.trim()||"",b=Number(m?.Stars||0),x=Number(m?.AccomSysId||0),S=Zt(),w={},N=new Map,T={},A=new Date(t),R=new Date(n),E=[],$=m?.AccoAminitiesMask?.trim();let _=[];$&&(_=i_($,Rot));const k=[];for(;A<R;){const W=A.getDate(),U=A.getMonth()+1,P=A.getFullYear(),Y=A.toLocaleDateString("en-US",{weekday:"short"});k.push([Y.toLowerCase(),W,U,P].join("_")),A.setDate(A.getDate()+1)}const q=Number(m?.CurrencyType||0),z=parseFloat(m?.conversionRate||0),D=a?.[q]||"";m?.HotelRate?.forEach(W=>{const U=W?.Title?.trim(),P=Number(W?.MealPlanType||0),Y={id:P,short:vE?.[P]||""};if(N.has(U)){const K=N?.get(U)||{};K?.mealPLans?.some(Q=>Number(Q?.id||0)===P)||N.set(U,{...K,mealPLans:[...K?.mealPLans||[],{...Y}]})}else N.set(U,{id:Number(W?.RoomSysId||0),name:W?.Title?.trim(),mealPLans:[{...Y}]});w[U?.toLowerCase()]={maxChild:Number(W?.MaxAllowChild||0),maxGuest:Number(W?.MaxAllowGuest||0),maxAdult:Number(W?.MaxPaxCount||0),minGuest:Number(W?.PaxCount||0)}}),Array.from(N?.values())?.forEach(W=>{const U=W?.name||"",P=[];W?.mealPLans?.forEach((Y,K)=>{const Q=Y?.short||"",G=(m?.HotelRate?.filter(ye=>vE[Number(ye?.MealPlanType||0)]===Q&&ye?.Title?.trim()===U)).map(ye=>({from:yl(new Date(ye.FromDate)),to:yl(new Date(ye.Todate))}));k.every(ye=>{const[,me,Se,Be]=ye.split("_"),ae=yl(new Date(Be,Se-1,me));return G.some(ge=>ae>=ge.from&&ae<=ge.to)})||P.push(K)}),W.mealPLans=W.mealPLans?.filter((Y,K)=>!P.includes(K)),W.mealPLans?.length<=0&&N.delete(U)}),m?.Promotions?.forEach(W=>{const U=W?.FromBookingDate?new Date(W?.FromBookingDate||""):"",P=W?.ToBookingDate?new Date(W?.ToBookingDate||""):"",Y=W?.FromStayPeriod?new Date(W?.FromStayPeriod||""):"",K=W?.ToStayPeriod?new Date(W?.ToStayPeriod||""):"",Q=Number(W?.RoomType||0),ee=Number(W?.MealType||0),G=N.values()?.some(Be=>Number(Be?.id||0)===Q),oe=G&&N.values()?.find(Be=>Number(Be?.id||0)===Q)?.mealPLans?.some(Be=>Be.id==ee),ye=new Date>=U&&new Date<=P,me=W?.IsNight?o>=Number(W?.MinNight||0)&&o<=(W?.MaxNight||0):!0,Se=W?.IsStayPeriod?new Date(t)>=Y&&new Date(n)<=K:!0;G&&oe&&ye&&me&&Se&&E.push({PromotionType:Number(W?.PromotionType||1),PromotionValue:parseFloat(W?.PromotionValue||0),MealType:ee,RoomType:Q,RoomTypeName:N.values()?.find(Be=>Number(Be?.id||0)===Q)?.name||"",IsMinRoom:W?.IsMinRoom||!1,MinRoom:W?.IsMinRoom?Number(W?.MinRoom||0):0,PromotionName:W?.PromotionName?.trim(),promoId:Number(W?.AccomPromotionsSysId||0)})});const H=Object.fromEntries(N),O=Object.keys(H)?.[0]||"",j=Lpt(i,l,u,w?.[O.toLowerCase()]||{}),M=H?.[O]?.mealPLans?.[0]||{},I=E?.find(W=>W.RoomTypeName===O&&Number(W?.MealType)===Number(M?.id)),F=Number(I?.PromotionType||0),V=parseFloat(I?.PromotionValue||0);if(Array.from(N?.values())?.length>0||Number(m?.HotelRateType||0)===3&&m?.GoogleSheetId&&m?.GoogleSheetId?.trim()!==""){for(const G of k){const oe=G.split("_"),ye=oe[0],me=parseInt(oe[1],10),Se=parseInt(oe[2],10),Be=parseInt(oe[3],10),ae=yl(new Date(Be,Se-1,me));m?.HotelRate?.filter(fe=>{const qe=yl(new Date(fe.FromDate)),re=yl(new Date(fe.Todate));return ae>=qe&&ae<=re})?.forEach(fe=>{const qe=fe?.Title?.trim(),re=Number(fe?.MealPlanType||0),Te=(fe?.WeekendDefine?.split(",").map(ve=>ve.trim().toLowerCase())).includes(ye),be=Number(fe?.PromotionsSysId||0);T[`costing_${qe}_${re}_${G}${be>0?`_${be}`:""}`]={1:{adultCost:parseFloat(Te?fe?.WkNetSOccupCost||0:fe?.NetSOccupCost||0),AdultExtraBed:parseFloat(Te?fe?.WkNetExtraBedCost||0:fe?.NetExtraBedCost||0),CostExtraBed:parseFloat(Te?fe?.WkNetTriOccupCost||0:fe?.NetTriOccupCost||0),CostWithoutBed:parseFloat(Te?fe?.WkNetExtraWOBedCost||0:fe?.NetExtraWOBedCost||0)},2:{adultCost:parseFloat(Te?fe?.WkNetDOccupCost||0:fe?.NetDOccupCost||0),AdultExtraBed:parseFloat(Te?fe?.WkNetExtraBedCost||0:fe?.NetExtraBedCost||0),CostExtraBed:parseFloat(Te?fe?.WkNetTriOccupCost||0:fe?.NetTriOccupCost||0),CostWithoutBed:parseFloat(Te?fe?.WkNetExtraWOBedCost||0:fe?.NetExtraWOBedCost||0)},3:{adultCost:parseFloat(Te?fe?.WkNetDOccupCost||0:fe?.NetDOccupCost||0),AdultExtraBed:parseFloat(Te?fe?.WkNetExtraBedCost||0:fe?.NetExtraBedCost||0),CostExtraBed:parseFloat(Te?fe?.WkNetTriOccupCost||0:fe?.NetTriOccupCost||0),CostWithoutBed:parseFloat(Te?fe?.WkNetExtraWOBedCost||0:fe?.NetExtraWOBedCost||0)},4:{adultCost:parseFloat(Te?fe?.WkNetDOccupCost||0:fe?.NetDOccupCost||0),AdultExtraBed:parseFloat(Te?fe?.WkNetExtraBedCost||0:fe?.NetExtraBedCost||0),CostExtraBed:parseFloat(Te?fe?.WkNetTriOccupCost||0:fe?.NetTriOccupCost||0),CostWithoutBed:parseFloat(Te?fe?.WkNetExtraWOBedCost||0:fe?.NetExtraWOBedCost||0)},5:{adultCost:parseFloat(Te?fe?.WkNetDOccupCost||0:fe?.NetDOccupCost||0),AdultExtraBed:parseFloat(Te?fe?.WkNetExtraBedCost||0:fe?.NetExtraBedCost||0),CostExtraBed:parseFloat(Te?fe?.WkNetTriOccupCost||0:fe?.NetTriOccupCost||0),CostWithoutBed:parseFloat(Te?fe?.WkNetExtraWOBedCost||0:fe?.NetExtraWOBedCost||0)},6:{adultCost:parseFloat(Te?fe?.WkNetDOccupCost||0:fe?.NetDOccupCost||0),AdultExtraBed:parseFloat(Te?fe?.WkNetExtraBedCost||0:fe?.NetExtraBedCost||0),CostExtraBed:parseFloat(Te?fe?.WkNetTriOccupCost||0:fe?.NetTriOccupCost||0),CostWithoutBed:parseFloat(Te?fe?.WkNetExtraWOBedCost||0:fe?.NetExtraWOBedCost||0)},MarkType:Number(fe?.MarkType||1),MarkVal:parseFloat(fe?.B2BMarkup||0),PromotionsSysId:be}})}const W=Object.values(T).map(G=>{const oe=Number(G?.[2]?.adultCost);return isNaN(oe)?null:{cost:oe,MarkType:G?.MarkType,MarkVal:G?.MarkVal}}).filter(Boolean).reduce((G,oe)=>oe.cost<G.cost?oe:G);let U=0;I&&F===2?U=W.cost*V/100:I&&F===1&&(U=V);const P=W.cost-U,{MarkType:Y,MarkVal:K}=W;let Q=0;Number(Y||0)===1?Q=parseFloat(K||0)*P/100:Q=parseFloat(K||0);const ee=P+Q;d.push({Title:m?.Title?.trim()||"",CityName:m?.CityName?.trim()||"",AccomSysId:x,SupplierSysId:g,SupplierName:y,DetailImg:m?.DetailImg?.trim()!=""&&m?.DetailImg?.trim()!="0"?m?.DetailImg?.trim():"",Brief:m?.Brief?.trim(),uniqueId:S,currencyId:q,currencyName:D,minPerNightCost:ee*z,availableRoomTypes:{...H},newCostingObj:{...T},datesArray:[...k],isFiltered:!0,initialIdx:f,promotions:[...E],starRating:b,PromotionName:I?.PromotionName?.trim(),PromotionValue:F===3?void 0:`${F===1?D:""} ${V} ${F===2?"%":""}`?.trim(),Area:m?.Area?.trim()||"",Address:m?.Address?.trim()||"",accoAminitiesArray:[..._],roomPaxInfo:w,accoAminitiesMask:m?.AccoAminitiesMask?.trim(),rooms:[...j.map(G=>({...G,room:O,mealPlan:M?.short,meal_type:M?.id}))]})}}return{hotelList:[...d.filter(Boolean)]}},Mj=(e,t,n)=>{const a=[],o=()=>({AdultPax:0,ExtraAdultPax:0,ExtraBedChildPax:0,NoBedChildPax:0,InfantPax:0,sharingType:"",sharingTypeNum:0});let i=e;for(;i>=2;){const f=o();f.AdultPax=2,a.push(f),i-=2}if(i===1&&a?.length<=0){const f=o();f.AdultPax=i,a.push(f),i-=1}i===1&&a.length>0&&(a[0].ExtraAdultPax=1);let l=t,u=0;for(;l>0&&a.length>0;)a[u%a.length].ExtraBedChildPax+=1,l--,u++;for(u=0;l>0&&a.length>0;)a[u%a.length].NoBedChildPax+=1,l--,u++;let d=n;for(u=0;d>0&&a.length>0;)a[u%a.length].InfantPax+=1,d--,u++;return a.forEach(f=>{const m=f.AdultPax+f.ExtraAdultPax;m===1?(f.sharingType="Single Sharing",f.sharingTypeNum=1):m===2?(f.sharingType="Twin Sharing",f.sharingTypeNum=2):m===3?(f.sharingType="Triple Sharing",f.sharingTypeNum=3):m===4?(f.sharingType="Quad Sharing",f.sharingTypeNum=4):m===5?(f.sharingType="Quint Sharing",f.sharingTypeNum=5):m===6&&(f.sharingType="Hexa Sharing",f.sharingTypeNum=6)}),a},Lpt=(e,t,n,a)=>{const{maxGuest:o,maxAdult:i,maxChild:l}=a,u=[],d=()=>({AdultPax:0,ExtraAdultPax:0,ExtraBedChildPax:0,NoBedChildPax:0,InfantPax:0,sharingType:"",sharingTypeNum:0});let f=e,m=t,g=n;const y=Math.min(i,3),b=Math.ceil(f/y);for(let T=0;T<b;T++)u.push(d());for(const T of u)f>=2&&(T.AdultPax=2,f-=2);for(const T of u)f>0&&T.ExtraAdultPax===0&&(T.ExtraAdultPax=1,f--);let x=0,S=0;for(;m>0&&u.length&&S<u.length*2;){const T=u[x%u.length];T.AdultPax+T.ExtraAdultPax+T.ExtraBedChildPax<o&&T.ExtraBedChildPax<l&&(T.ExtraBedChildPax+=1,m--),x++,S++}for(;m>0;){const T=u.find(R=>R.AdultPax+R.ExtraAdultPax>=2);if(!T)break;const A=d();T.ExtraAdultPax>0?T.ExtraAdultPax-=1:T.AdultPax-=1,A.AdultPax=1,A.ExtraBedChildPax=1,m--,u.push(A)}let w=0;for(;g>0&&u.length;)u[w%u.length].InfantPax+=1,g--,w++;const N={1:"Single Sharing",2:"Twin Sharing",3:"Triple Sharing",4:"Quad Sharing",5:"Quint Sharing",6:"Hexa Sharing"};return u.forEach(T=>{const A=T.AdultPax+T.ExtraAdultPax;T.sharingTypeNum=A,T.sharingType=N[A]||""}),u},V1=(e,t,n,a,o,i,l,u,d,f,m)=>{const g=[];let y=0;return e?.forEach((b,x)=>{const w=Number(e?.[x-1]?.noofnight||0)+1,N=w+Number(b?.noofnight||0),T=Number(b?.noofnight||0),R=x===e.length-1?T+1:T,E=!!b?.hotelSelf,$=Number(b?.hidden_destination_id||0),_=b?.destinationName?.trim(),k=Number(e?.[x-1]?.hidden_destination_id||0),q=e?.[x-1]?.destinationName?.trim();Array.from({length:R})?.forEach((z,D)=>{const H=t[y]||{};let O=_,j=$,M=_,I=$,F=_;D===0?x===0?u===$?(j=$,M=_,I=$,F=_,O=_):(j=u,M=d,I=$,F=_,O=[d,_].filter(Boolean)?.join(" to ")||""):k===$?(j=$,M=_,I=$,F=_,O=_):(j=k,M=q,I=$,F=_,O=[q,_].filter(Boolean)?.join(" to ")||""):x+1===e.length&&D+1===R&&($===f?(j=$,M=_,I=$,F=_,O=_):(j=$,M=_,I=f,F=m,O=[_,m].filter(Boolean)?.join(" to ")||"")),g.push({Cities:b?.destinationName?.trim(),CitySysId:Number(b?.hidden_destination_id||0),StartDate:Ze(new Date(b?.CheckIn)),EndDate:Ze(new Date(b?.CheckOut)),IsHotelSelf:l?E:!0,dayDate:Ze(gn(new Date(b?.CheckIn),D)),TotalMinDays:w,TotalMaxDays:N,transfers:a?H.transfers||[]:[],sightseeing:n?H.sightseeing||[]:[],meals:o?H.meals||[]:[],guides:i?H.guides||[]:[],dayWisePrivateSightseeing:H.dayWisePrivateSightseeing||[],uniqueId:H.uniqueId||Zt(),cityUniqueId:b.uniqueId,dayWiseTitleToShow:O||"",itineraryDayStartCityId:j||0,itineraryDayStartCity:M||"",itineraryDayEndCityId:I||0,itineraryDayEndCity:F||""}),y++})}),g},Bpt=(e,t,n,a,o,i)=>{let l=e;o&&(l=e?.filter(m=>(m?.TransportSubType?.trim()?.split(",")?.filter(y=>Kr?.[y])?.filter(y=>Number(y)!==1)).length>0)||[]);const u=new Map,d=new Map;return{transferList:[...l?.map(m=>{let g=m?.TransportSubType?.trim()?.split(",")?.filter(D=>Kr?.[D]);o&&(g=g?.filter(D=>Number(D)!==1));const y=g?.some(D=>Number(D)===1),b=new Map,x=new Map;m?.SightSeeingWithSquence?.forEach(D=>{x.set(Number(D?.destSequence||0),{...D})}),Array.from(x.keys())?.forEach(D=>{const H=x.get(D),O=Number(D)===1?Number(H?.nights||0)-1:Number(H?.nights||0);O>0&&b.set(Number(H?.destSequence||0),{destination:H?.CityName?.trim(),hidden_destination_id:Number(H?.DestSysId||0),noofnight:O})});const S=y&&[m?.CityName?.trim(),...Array.from(b.values())?.map(D=>`${D?.destination} ${D?.noofnight}N`)||[],m?.EndCityName?.trim()].filter(Boolean)?.join(" → ")||"",w=n+a,N=Number(m?.Noofnights||1)-1,T=Ze(new Date(t)),A=Ze(new Date(gn(T,N)));let R=0;const E=m?.SightSeeingWithSquence?.filter(D=>Number(D?.SSSysId||0)),$=[];E?.forEach((D,H)=>{const j=Number(D?.Sequence||0)+R-1;$.push({CityName:D?.CityName?.trim(),CitySysId:Number(D?.DestSysId||0),Country:"",SSSysId:Number(D?.SSSysId||0),title:D?.SightSeeingName?.trim(),itineraryIdx:y?j:-1,isItineraryTransSight:j>=0&&y});const M=Number(E?.[H+1]?.destSequence||0),I=Number(D?.destSequence||0);H<E?.length&&M!==I&&(R+=Number(D?.nights||0))});const _=new Map,k=new Map;m?.RoutePickupData?.forEach(D=>{const H=Number(D?.pickupAreaId||0);H>0&&_.set(H,D?.pickupArea?.trim());const O=Number(D?.dropAreaId||0);O>0&&k.set(O,D?.dropArea?.trim())});const q=m?.VehicleRoute?.map(D=>{const H=Number(D?.CurrencyType||0),O=i?.[H]||"",j=Number(D?.SupplierSysId||0),M=D?.SupplierName?.trim()||"",I=Number(D?.Capacity||0),F=parseFloat(D?.Cost||0),V=parseFloat(D?.B2BMarkUp||0),W=Math.ceil(w/I);let U=0;Number(D?.MarkupType||0)===2?U=V*F/100:U=V;const P=Number(g?.[0]||0);return{categoryTransport:P||"",TransTypeCat:Number(m?.TransportType||0),pickupArea:[..._.values()][0]||"",dropArea:[...k.values()][0]||"",AdultPax:n,ChildPax:a,currency:O,CurrencyType:H,fromSupplier:H>0&&j>0,transportSupplierName:M,supplierId:j,directNoOfCar:W,VehicleName:D?.VehName?.trim(),capacityTransport:I,transportVehicleCost:F,transportVehicleMarkup:U,transportVehicleCostPerDay:F,transportVehicleMarkupPerDay:U,transportTotalCost:(F+U)*W,StartDate:T,ToDate:P==10?T:A,uniqueId:Number(D?.RouteVechSysId||0),isSelected:!1,...P===10?{kmIncluded:Number(D?.vehicleKM||0),postKMRate:Number(D?.vehiclePerKMCost||0)}:{}}})||[],z=q?.some(D=>D?.categoryTransport==10);return u.set(Number(m?.StartCitySysId||0),{cityId:Number(m?.StartCitySysId||0),cityName:m?.CityName?.trim()}),d.set(Number(m?.DestinationCitySysId||0),{cityId:Number(m?.DestinationCitySysId||0),cityName:m?.DestinationCityName?.trim()}),{RouteName:z?"Per Day Cost":m?.RouteName?.trim(),DestinationCityName:m?.DestinationCityName?.trim(),DestinationCityId:Number(m?.DestinationCitySysId||0),EndCityName:m?.EndCityName?.trim(),EndCityId:Number(m?.EndCitySysId||0),CityName:m?.CityName?.trim(),CityId:Number(m?.StartCitySysId||0),PerDayCostString:m?.StateName?.trim()||m?.CountryName?.trim()||"",RouteDestinationStr:m?.RouteDestinationStr?.trim(),RouteSysId:Number(m?.RouteSysId||0),TransportType:Number(m?.TransportType||0),uniqueId:Zt(),isFiltered:!0,includedCategories:[...g],vehicleRoutes:[...q],includedSightseeings:[...$],pickUpAreas:[..._.values()||[]],dropAreas:[...k.values()||[]],dayWisePlanText:S,citiesArray:Array.from(b.values())}})],startCitiesList:Array.from(u.values())?.filter(m=>Number(m?.cityId||!1)),destinationCitiesList:Array.from(d.values())?.filter(m=>Number(m?.cityId||!1))}},qpt=(e,t,n,a,o)=>({sightseeing:e?.map(l=>{let u=[];const d=Zt(),f=Number(l?.SSSysId||0),m=Number(l?.SupplierSysId||0),g=l?.SupplierName?.trim()||"",y=Number(l?.CostCurrency||0),b=o?.[y]||"",x={sightseeing:l?.Title?.trim()||"",sightseeingDW:f,sightSupplierName:g,sightSupplierId:m,currency:b,CurrencyType:y,fromSupplier:y>0&&m>0},S=[],w=parseFloat(l?.AdultEntryFee||0),N=parseFloat(l?.ChildEntryFee||0),T=w*t+N*n;w>0&&S.push({...x,sightseeingType:"3",AdultPax:t,ChildPax:n,AdultCost:w||0,KidsCost:N||0,AdultMarkup:0,ChildMarkup:0,totalAmountSightseeing:T,uniqueId:Zt(),background:"#f0fdf4"});const A=l?.SicCost?.[0]||{},R=l?.SicCost?.length>0?w+parseFloat(A?.TotalCostNativeAdult||0):0,E=l?.SicCost?.length>0?N+parseFloat(A?.TotalCostNativeChild||0):0,$=parseFloat(A?.MarkUpNativeAdult||0),_=parseFloat(A?.MarkUpNativeChild||0);l?.SicCost?.length>0&&S.push({...x,sightseeingType:"1",AdultPax:t,ChildPax:n,AdultCost:R,KidsCost:E,AdultMarkup:$,ChildMarkup:_,totalAmountSightseeing:(R+$)*t+(E+_)*n,uniqueId:Zt(),background:"#faf5ff"});let k={};if(l?.PvtCost?.length>0){l?.PvtCost?.sort((I,F)=>Number(F?.PaxCount||0)-Number(I?.PaxCount||0)),u=l?.PvtCost?.map(I=>Number(I?.PaxCount||0)),l?.PvtCost?.forEach(I=>{k[Number(I?.PaxCount||0)]={AdultCost:parseFloat(I?.TotalCostNativeAdult||0),ChildCost:parseFloat(I?.TotalCostNativeChild||0),AdultMarkup:parseFloat(I?.AdultMarkup||0),ChildMarkup:parseFloat(I?.ChildMarkup||0),capacity:Number(I?.PaxCount||0)}});const D=u?.[0]||1,H=k?.[D]||{},O=Math.ceil((t+n)/D),j=t*parseFloat(H?.AdultCost||0)+n*parseFloat(H?.ChildCost||0),M=t*parseFloat(H?.AdultMarkup||0)+n*parseFloat(H?.ChildMarkup||0);S.push({...x,sightseeingTime:"",sightseeingType:"2",AdultCost:w,KidsCost:N,AdultPax:t,ChildPax:n,AdultMarkup:0,ChildMarkup:0,sightseeingTypeOptional:!1,totalAmountSightseeing:T,pvtPerVehicleWise:!1,uniqueId:Zt(),pvtVehicles:[{categoryTransport:1,TransTypeCat:"",pickupArea:"",dropArea:"",adultPax:t,childPax:n,paxCount:t+n,transportSupplierName:g,supplierId:m,currency:b,fromSupplier:y>0&&m>0,CurrencyType:y,VehicleName:"",directNoOfCar:O,capacityTransport:D,transportAdultCost:parseFloat(H?.AdultCost||0),transportChildCost:parseFloat(H?.ChildCost||0),transportVehicleCost:j/O,transportVehicleTotalMarkup:M,transportVehicleMarkup:M/O,transportTotalCost:j+M,uniqueId:Zt()}]})}let q={};if(l?.PvtVehicleCost?.length>0){l?.PvtVehicleCost?.forEach(M=>{const I=Number(M?.CurrencyType||0),F=o?.[I]||"",V=parseFloat(M?.Cost||0);let W=0;Number(M?.MarkupType||0)===2?W=Number(M?.Markup||0)*V/100:W=Number(M?.Markup||0);const U=Number(M?.SupplierSysId||0),P=Zt();q[P]={pickupArea:M?.Area?.trim(),transportSupplierName:M?.SupplierName?.trim(),supplierId:U,fromSupplier:U>0&&I>0,currency:F,CurrencyType:I,VehicleName:M?.VehName?.trim(),capacityTransport:Number(M?.Capacity||0),transportVehicleCost:V,transportVehicleMarkup:W}});const D={...Object.values(q||{})?.[0]||{}},H=Number(D?.capacityTransport||0),O=H>0?Math.ceil((t+n)/H):0,j=(parseFloat(D?.transportVehicleCost||0)+parseFloat(D?.transportVehicleMarkup||0))*O;S.push({...x,sightseeingTime:"",sightseeingType:"2",AdultCost:w,KidsCost:N,AdultPax:t,ChildPax:n,AdultMarkup:0,ChildMarkup:0,sightseeingTypeOptional:!1,totalAmountSightseeing:T,pvtPerVehicleWise:!0,uniqueId:Zt(),pvtVehicles:[{selectedVehicleId:Object.keys(q||{})?.[0]||"",categoryTransport:1,TransTypeCat:"",dropArea:"",paxCount:t+n,directNoOfCar:O,transportTotalCost:j,transportVehicleTotalMarkup:parseFloat(D?.transportVehicleMarkup||0)*O,...D,uniqueId:Zt()}]})}let z=[];return l?.ExtraServices?.length>0&&l?.ExtraServices?.forEach(D=>{const H=Number(D?.CostCurrency||0),O=o?.[H]||"",j=Number(D?.SupplierSysId||0),M=parseFloat(D?.TotalCost||0),I=Number(D?.PriceType||1),F={itemName:D?.Title?.trim(),costType:0,adultCount:0,childCount:0,infantCount:0,itemCount:0,supplierName:D?.SupplierName?.trim(),supplierId:j,fromSupplier:H>0&&j>0,currency:O,CurrencyType:H,adultCost:0,childCost:0,infantCost:0,itemCost:0,totalCost:0,markup:0,finalPrice:0,isSelected:!0,uniqueId:Zt()};if(I===1)F.costType=2,F.itemCount=1,F.itemCost=M,F.totalCost=M,F.finalPrice=M;else{const V=(t+n+a)*M;F.costType=1,F.adultCount=t,F.childCount=n,F.infantCount=a,F.adultCost=M,F.childCost=M,F.infantCost=M,F.totalCost=V,F.finalPrice=V}z.push({...F})}),{Title:l?.Title?.trim()||"",SSSysId:f,sightSupplierName:g,isFiltered:!0,sightSupplierId:m,costingRow:[...S],uniqueId:d,selectedSight:"",privateVehicles:{...q},otherItems:[...z],hasPVTSightseeingWithVehicle:l?.PvtVehicleCost?.length>0,capacity:[...u],privateCostObject:{...k}}})?.filter(l=>l?.costingRow?.length>0)}),Fpt=(e,t,n,a)=>({mealsData:[...e?.map(i=>{const l=Number(i?.SupplierSysId||0),u=i?.SupplierName?.trim()||"",d=i?.MealRate?.map(f=>{const m=Number(f?.CurrencySysId||0),g=a?.[m]||"",y=parseFloat(f?.AdultSales||0),b=parseFloat(f?.childSales||0),x=t*y+n*b;return{mealsCategoryDW:Dot?.[Number(f?.MealCategory||0)]||"",ServiceTitle:HD?.[Number(f?.MealType||0)],mealsOptionsDW:f?.MealName?.trim()||"",mealAdultCount:t,TotalChild:n,supplier:u,supplierId:l,currency:g,fromSupplier:m>0,CurrencyType:m,cost:x,mealAdultCost:y,mealChildCost:b,uniqueId:Zt()}});return{mealItems:d,uniqueId:Zt(),isFiltered:!0,supplier:i?.SupplierName?.trim()||"",supplierId:l,mealName:d?.[0]?.mealsOptionsDW?.trim()||""}})]}),zpt=e=>[...e?.map(t=>({...t,cities:[...t?.cities?.map(n=>{const a=Number(n?.hidden_selected_hotel_id||0)<=0;return{...n,hotelSelf:a,CheckIn:Ze(new Date(n?.CheckIn)),HotelCostFinal:a?0:parseFloat(n?.HotelCostFinal||0),HotelCostTotal:a?0:parseFloat(n?.HotelCostTotal||0),HotelTaxTotal:a?0:parseFloat(n?.HotelTaxTotal||0),HotelMarkupTotal:a?0:parseFloat(n?.HotelMarkupTotal||0),HotelTax:a?0:parseFloat(n?.HotelTax||0),rooms:n?.rooms?.map(o=>({...o,SharingType:Number(o?.sharingTypeNum||0),adultCost:a?0:parseFloat(o?.adultCost||0),AdultExtraBed:a?0:parseFloat(o?.AdultExtraBed||0),CostExtraBed:a?0:parseFloat(o?.CostExtraBed||0),CostWithoutBed:a?0:parseFloat(o?.CostWithoutBed||0),CostInfant:a?0:parseFloat(o?.CostInfant||0)}))}})||[]]}))||[]],Hpt=(e,t)=>{const n=["sharingTypeNum","AdultPax","ExtraAdultPax","ExtraBedChildPax","NoBedChildPax","InfantPax"];let a=!1;e:for(let o=0;o<(e||[]).length;o++){const l=e[o]?.cities?.filter(u=>!u?.hotelSelf)||[];for(let u=0;u<l.length;u++){const f=l[u]?.rooms||[],m=t||[];if(f.length!==m.length){a=!0;break e}for(let g=0;g<f.length;g++){const y=f[g],b=m[g];for(let x=0;x<n.length;x++){const S=n[x],w=Number(y?.[S]||0),N=Number(b?.[S]||0);if(w!==N){a=!0;break e}}}}}return a},Upt=e=>e?.map(t=>{const n=t?.dayWisePrivateSightseeing?.map(u=>({SupplierSysId:0,CurrencyType:0,SightSeeingID:parseInt(u?.SSSysId||0)>0?parseInt(u?.SSSysId||0):"",CityId:parseInt(u?.SSSysId||0)>0?parseInt(u?.CitySysId||0):parseInt(t?.CitySysId||0),SightseeingTitle:u?.title||"",AdultPax:Number(u?.AdultPax||0),ChildPax:Number(u?.ChildPax||0),isTransfer:u?.isTransfer||!1,uniqueCode:u?.uniqueCode||""}))||[],a=t?.sightseeing?.filter(u=>Number(u?.sightseeingDW||0)>0||parseFloat(u?.totalAmountSightseeing||0)>0)?.map(u=>({...u,SCurrencyType:parseInt(u?.CurrencyType||0)}))||[],o=t?.transfers?.filter(u=>Number(u?.categoryTransport||0)>0||parseFloat(u?.transportTotalCost||0)>0)?.map(u=>({...u,SCurrencyType:parseInt(u?.CurrencyType||0)}))||[],i=t?.meals?.filter(u=>u?.ServiceTitle&&u?.ServiceTitle?.trim()!=""||parseInt(u?.cost||0)>0)?.map(u=>({...u,SCurrencyType:parseInt(u?.CurrencyType||0)}))||[],l=t?.guides?.filter(u=>u?.guideName&&u?.guideName?.trim()!=""||parseInt(u?.finalPrice||0)>0)?.map(u=>({...u,SCurrencyType:parseInt(u?.CurrencyType||0)}))||[];return{...t,dayWiseSICSightseeing:[],dayWisePrivateSightseeing:[...n],sightseeing:[...a],transfers:[...o],meals:[...i],guides:[...l]}}),Vpt=(e,t,n,a,o,i,l,u,d,f)=>{const m=e?.filter(y=>(y?.TransportSubType?.split(/\s*,\s*/)?.filter(Boolean)?.map(x=>Number(x))).includes(1))||[],g=t+n;return m?.forEach(y=>{const b=new Map;let x=0;const S=[],w=new Map;y?.SightSeeingWithSquence?.forEach(O=>{w.set(Number(O?.destSequence||0),{...O})}),Array.from(w.keys())?.forEach(O=>{const j=w.get(O),M=Number(O)===1?Number(j?.nights||0)-1:Number(j?.nights||0);if(M>0){const I=new Date(gn(new Date(a),x)),F=new Date(gn(I,M));b.set(Number(j?.destSequence||0),{destinationName:j?.CityName?.trim(),destination:j?.CityName?.trim(),hidden_destination_id:Number(j?.DestSysId||0),CheckIn:Ze(I),CheckOut:Ze(F),noofnight:M,uniqueId:Zt()}),x+=M}});const N=Array.from(b.values()),T=V1(N,[],i,l,u,d,f,Number(y?.StartCitySysId||0),y?.CityName?.trim(),Number(y?.EndCitySysId||0),y?.EndCityName?.trim());N?.forEach((O,j)=>{let M=Number(O?.noofnight||0);const I=j>0?N?.[j-1]?.CheckOut||O?.CheckIn:a||void 0,F=I?gn(I,M):"";O.noofnight=M,O.CheckIn=I?Ze(new Date(I)):"",O.CheckOut=F?Ze(new Date(F)):""});const A=[y?.CityName?.trim(),...N?.map(O=>`${O?.destination} ${O?.noofnight}N`)||[],y?.EndCityName?.trim()].filter(Boolean)?.join(" → ")||"";let R=0;const E=y?.SightSeeingWithSquence?.filter(O=>Number(O?.SSSysId||0)>0);E?.forEach((O,j)=>{const I=Number(O?.Sequence||0)+R-1,F={CityName:O?.CityName?.trim()||"",CitySysId:Number(O?.DestSysId||0),SSSysId:Number(O?.SSSysId||0),title:O?.SightSeeingName?.trim()||"",AdultPax:t,ChildPax:n};S.push({...F}),T[I].dayWisePrivateSightseeing=[...T?.[I]?.dayWisePrivateSightseeing||[]],T[I].dayWisePrivateSightseeing.push({...F});const V=Number(E?.[j+1]?.destSequence||0),W=Number(O?.destSequence||0);j<E?.length&&V!==W&&(R+=Number(O?.nights||0))});const $=new Map,_=new Map;y?.RoutePickupData?.forEach(O=>{const j=Number(O?.pickupAreaId||0);j>0&&$.set(j,O?.pickupArea?.trim());const M=Number(O?.dropAreaId||0);M>0&&_.set(M,O?.dropArea?.trim())});const k=N?.reduce((O,j)=>O+Number(j?.noofnight||0),0),q=Number(y?.Noofnights||1),z=Ze(new Date(a)),D=Ze(new Date(gn(z,q))),H=y?.VehicleRoute?.map(O=>{const j=Number(O?.CurrencyType||0),M=o?.[j]||"",I=Number(O?.SupplierSysId||0),F=O?.SupplierName?.trim()||"",V=Number(O?.Capacity||0),W=parseFloat(O?.Cost||0),U=parseFloat(O?.B2BMarkUp||0),P=Math.ceil(g/V);let Y=0;return Number(O?.MarkupType||0)===2?Y=U*W/100:Y=U,{categoryTransport:1,TransTypeCat:Number(y?.TransportType||0),pickupArea:[...$.values()][0]||"",dropArea:[..._.values()][0]||"",AdultPax:t,ChildPax:n,currency:M,CurrencyType:j,fromSupplier:j>0&&I>0,transportSupplierName:F,supplierId:I,directNoOfCar:P,VehicleName:O?.VehName?.trim(),capacityTransport:V,transportVehicleCost:W,transportVehicleMarkup:Y,transportVehicleCostPerDay:W,transportVehicleMarkupPerDay:Y,transportTotalCost:(W+Y)*P,StartDate:z,ToDate:D,uniqueId:Number(O?.RouteVechSysId||0),isSelected:!1,includedSightseeings:[...S]}})||[];y.hotelCities=[...N],y.dayWisePlanText=A,y.dayWiseItinerary=T,y.Noofnights=k,y.vehicleRoutes=H}),{itineraryTransports:m}},Gpt=(e,t,n,a,o,i,l,u,d,f)=>{const m=a+o,g=[];return e?.filter(y=>{const b=y?.TransportSubType?.trim()?.split(",")?.filter(x=>Kr?.[x])?.map(x=>Number(x));return Number(y?.StartCitySysId||0)!==l||(y?.VehicleRoute||[]).length<=0||n!==8&&Number(y?.DestinationCitySysId||0)!==d?!1:n===1||n===2?Number(y?.TransportType||0)===n:n===8?b.includes(n)&&Number(y?.DestinationCitySysId||0)===l:n===4?b.includes(n):!0})?.forEach(y=>{const b=y?.SightSeeingWithSquence?.filter(q=>Number(q?.SSSysId||0)>0);let x=y?.TransportSubType?.trim()?.split(",")?.filter(q=>Kr?.[q])?.map(q=>Number(q||0))?.filter(Boolean);(n===8||n===4)&&(x=[n]);const S=new Map;let w=0;const N=new Map;y?.SightSeeingWithSquence?.forEach(q=>{N.set(Number(q?.destSequence||0),{...q})}),Array.from(N.keys())?.forEach(q=>{const z=N.get(q),D=Number(q)===1?Number(z?.nights||0)-1:Number(z?.nights||0),H=new Date(gn(new Date(i),w)),O=new Date(gn(H,D));S.set(Number(z?.destSequence||0),{destinationName:z?.CityName?.trim(),destination:z?.CityName?.trim(),hidden_destination_id:Number(z?.DestSysId||0),CheckIn:Ze(H),CheckOut:Ze(O),noofnight:D,hotelSelf:!0,uniqueId:Zt()}),w+=D});const T=Array.from(S.values()),A=V1(T,[],!0,!0,!1,!1,!1,l,u,d,f);let R=0;const E=[];b?.forEach((q,z)=>{const H=Number(q?.Sequence||0)+R-1,O={CityName:q?.CityName?.trim()||"",CitySysId:Number(q?.DestSysId||0),SSSysId:Number(q?.SSSysId||0),title:q?.SightSeeingName?.trim()||"",AdultPax:a,ChildPax:o};E.push({...O}),A[H].dayWisePrivateSightseeing=[...A?.[H]?.dayWisePrivateSightseeing||[]],A[H].dayWisePrivateSightseeing.push({...O});const j=Number(b?.[z+1]?.destSequence||0),M=Number(q?.destSequence||0);z<b?.length&&j!==M&&(R+=Number(q?.nights||0))});const $=Ze(new Date(i)),_=T?.reduce((q,z)=>q+Number(z?.noofnight||0),0),k=Ze(new Date(gn(new Date(i),_)));y?.VehicleRoute?.forEach(q=>{const z=Number(q?.CurrencyType||0),D=t?.[z]||"",H=Number(q?.SupplierSysId||0),O=q?.SupplierName?.trim()||"",j=Number(q?.Capacity||0),M=parseFloat(q?.Cost||0),I=parseFloat(q?.B2BMarkUp||0),F=Math.ceil(m/j);let V=0;Number(q?.MarkupType||0)===2?V=I*M/100:V=I,g.push({categoryTransport:Number(x?.[0]||0),TransTypeCat:Number(y?.TransportType||0),RouteName:y?.RouteName?.trim(),RouteId:Number(y?.RouteSysId||0),StartCityName:y?.CityName?.trim(),StartCityId:Number(y?.StartCitySysId||0),DestinationCityName:y?.DestinationCityName?.trim(),DestinationCityId:Number(y?.DestinationCitySysId||0),EndCityName:y?.EndCityName?.trim(),EndCityId:Number(y?.EndCitySysId||0),IsAC:q?.IsAC||!1,includedSightseeings:[...E],includedCategories:[...x],currency:D,CurrencyType:z,transportSupplierName:O,supplierId:H,directNoOfCar:F,VehicleName:q?.VehName?.trim(),capacityTransport:j,transportVehicleCost:M,transportVehicleMarkup:V,transportPerVehicleCost:M+V,transportTotalCost:(M+V)*F,RouteVechSysId:Number(q?.RouteVechSysId||0),kmIncluded:Number(q?.vehicleKM||0),postKMRate:Number(q?.vehiclePerKMCost||0),paxCount:a+o,StartDate:$||"",ToDate:k||"",dayWiseItinerary:A,citiesArray:T,uniqueId:Zt()})})}),{transportData:g}},Ypt=(e,t)=>{let n={};return e?.forEach((a,o)=>{const i=Number(a?.ExtraBedChildPax||0),l=Number(a?.NoBedChildPax||0),u={Adult:Number(a?.AdultPax||0)+Number(a?.ExtraAdultPax||0),Child:i+l,Infant:Number(a?.InfantPax||0),AdultBedType:Number(a?.ExtraAdultPax||0)>0?"extrabed":"",adult_type:zD?.[Number(a?.sharingTypeNum||0)]||"",departuredate:Ze(new Date(t)),returndate:""};let d=1;for(let f=0;f<i;f++)u[`ChildBedType_${d}`]="extrabed",d++;for(let f=0;f<l;f++)u[`ChildBedType_${d}`]="withoutbed",d++;n={...n,[o+1]:{...u}}}),JSON.stringify(n||{})},Wpt=e=>{const t=B.useRef(null),n=l=>l.stopPropagation(),a=()=>e.onClose();if(B.useEffect(()=>{const l=u=>{u.key==="Escape"&&e.onClose()};return document.addEventListener("keydown",l),()=>{document.removeEventListener("keydown",l)}},[e]),!e.content)return null;const o=e.isClosing?"animate-slide-right-fade":"animate-slide-left-fade",i=e.isClosing?"":"backdrop-blur-[5px]";return e?.modalStyle==="slide"?p.jsx("div",{className:`fixed top-0 left-0 bottom-0 right-0 z-20 h-screen inset-0 ${i}`,children:p.jsx("div",{className:`flex flex-col h-full ml-auto bg-white border-l shadow max-w-340 w-full ${o}`,onClick:l=>l.stopPropagation(),children:p.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar",children:e.content})})}):p.jsx("div",{className:"fixed inset-0 z-20 w-screen overflow-y-auto bg-gray-500/75 transition-opacity",id:"proposal-fulfillment-modal",onClick:a,children:p.jsx("div",{className:"flex min-h-full items-start justify-center p-4 text-center",onClick:n,children:p.jsx("div",{ref:t,className:`overflow-hidden bg-white text-left shadow-xl transition-all w-full sm:my-8 ${e.modalWidth?e.modalWidth:"max-w-3xl"}`,children:e.content})})})},Pj=B.createContext(),Xpt=e=>{const[t,n]=B.useState(null),[a,o]=B.useState(null),[i,l]=B.useState(null),[u,d]=B.useState(!1),f=b=>{n(b)},m=()=>{d(!0),setTimeout(()=>{n(null),o(null),l(null),d(!1)},700)},g=b=>o(b),y=b=>l(b);return B.useEffect(()=>(t?(document.body.classList.add("overflow-hidden"),document.body.classList.add("pr-4")):(document.body.classList.remove("overflow-hidden"),document.body.classList.remove("pr-4")),()=>{document.body.classList.remove("overflow-hidden"),document.body.classList.remove("pr-4")}),[t]),p.jsxs(Pj.Provider,{value:{showModal:f,closeModal:m,changeModalWidth:g,changeModalStyle:y},children:[e.children,p.jsx(Wpt,{content:t,onClose:m,modalWidth:a,modalStyle:i,isClosing:u})]})},Fn=()=>B.useContext(Pj);function Kpt(e){const{popupHead:t,popupMessage:n,onConfirm:a,onCancel:o}=e;return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"py-3 px-4 flex justify-between items-center gap-3 bg-black text-white",children:[p.jsx("div",{className:"text-xl font-semibold",children:t}),p.jsx("button",{type:"button",onClick:o,children:p.jsx(Fe,{icon:Or})})]}),p.jsx("div",{className:"p-4",children:n}),p.jsxs("div",{className:"bg-gray-50 px-4 py-3 flex items-center gap-3 justify-end text-sm",children:[p.jsx("button",{type:"submit",onClick:o,className:"bg-white border border-(--highlight-color) text-(--highlight-color)! px-4 py-1",children:"Cancel"}),p.jsx("button",{type:"submit",onClick:a,className:"bg-(--highlight-color) border border-(--highlight-color) text-white px-4 py-1",children:"Continue"})]})]})}function Qpt(){const e=on(),{showModal:t,closeModal:n,changeModalWidth:a}=Fn(),o=lt(S=>S.buildYourOwnData),[i,l]=B.useState({}),[u,d]=B.useState({}),f=()=>new Promise((S,w)=>{a("max-w-2xl"),t(()=>p.jsx(Kpt,{popupHead:"Route Change Confirmation",popupMessage:"You have already selected a route. If you add or remove any destination, change the number of nights, or modify the sequence, the selected route will be removed. Do you want to continue?",onConfirm:()=>{S(),e(Lt({dayWiseItinerary:[],selectedRouteSuggestion:{},selectedHotels:{}}))},onCancel:w}))}),m=async(S,w,N,T)=>{if(Number(o?.selectedRouteSuggestion?.routeId||0)>0&&N!=="hotelSelf")try{await f()}catch{return}finally{n()}const A=[...o?.hotelCities?.map(E=>({...E}))||[]];S==="delete"&&w>=0&&A?.splice(w,1),A?.forEach((E,$)=>{let _=Number(E?.noofnight||0);w===$&&(S==="increase"?_=_+1:S==="decrease"?_=_>1?_-1:1:S==="updateValue"&&(E[N]=T));const k=$>0?A?.[$-1]?.CheckOut||E?.CheckIn:o?.StartDate||void 0,q=k?gn(k,_):"";E.noofnight=_,E.CheckIn=k?Ze(new Date(k)):"",E.CheckOut=q?Ze(new Date(q)):""});const R=[...A?.map(E=>({...E}))||[]];e(Lt({hotelCities:[...R]}))},g=async S=>{if(Number(o?.selectedRouteSuggestion?.routeId||0)>0)try{await f()}catch{return}finally{n()}if(!S.destination)return;const w=[...o?.hotelCities?.map(R=>({...R}))||[]],[N]=w.splice(S.source.index,1);w.splice(S.destination.index,0,N);let T=o?.StartDate||void 0;const A=w.map(R=>{const E=Number(R?.noofnight||0),$=T||"",_=T?gn(T,E):"";return T=_,{...R,CheckIn:$,CheckOut:_}});e(Lt({hotelCities:A}))},y=S=>{const{value:w,cityId:N,cityName:T,countryName:A}=S.target;if(!o?.StartDate)return rt.error("Enter start date first."),!1;l({title:w,cityId:N,cityName:T,countryName:A})},b=async S=>{if(Number(o?.selectedRouteSuggestion?.routeId||0)>0)try{await f()}catch{return}finally{n()}const{cityId:w,title:N,cityName:T,countryId:A}=S;if(!o?.StartDate)return rt.error("Enter start date first."),!1;if(Number(w||0)<=0)return rt.error("Enter valid destination."),!1;let R=[...o?.hotelCities?.map(q=>({...q}))||[]];const E=R?.[R?.length-1]||void 0;let $=Ze(new Date(o.StartDate));E&&($=Ze(new Date(E.CheckOut)));const _=Ze(gn($,2)),k=[...R,{destinationName:N?.trim()||"",destination:T?.trim()||"",hidden_destination_id:Number(w||0),hidden_country_id:Number(A||0),CheckIn:$,CheckOut:_,noofnight:2,uniqueId:Zt()}];e(Lt({hotelCities:[...k]})),l({})},x=()=>{if(!o?.IsHotelSelected&&!o?.IsTransferSelected&&!o?.IsSightseeingSelected&&!o?.IsMealsSelected&&!o?.IsGuideSelected)return rt.error("Select atleast one service."),!1;if(!o?.StartDate)return rt.error("Enter valid start date."),!1;if(Number(o?.startCity_id||0)<=0)return rt.error("Enter valid start city."),!1;if(Number(o?.endCity_id||0)<=0)return rt.error("Enter valid end city."),!1;if(Number(o?.adults||0)<=0)return rt.error("Enter valid number of adults."),!1;if(o?.hotelCities?.length<=0)return rt.error("Enter atleat one hotel city."),!1;const S=Number(u?.adults||0)!==Number(o?.adults||0)||Number(u?.child||0)!==Number(o?.child||0)||Number(u?.infant||0)!==Number(o?.infant||0),w=Ze(new Date(o?.StartDate))!==Ze(new Date(u?.StartDate));let N=!1;o?.hotelCities?.length!==u?.hotelCities?.length?N=!0:o?.hotelCities?.forEach((q,z)=>{const D=u?.hotelCities?.[z];N=Number(q?.hidden_destination_id||0)!==Number(D?.hidden_destination_id||0)||Ze(new Date(q?.CheckIn))!==Ze(new Date(D?.CheckIn))||Ze(new Date(q?.CheckOut))!==Ze(new Date(D?.CheckOut))||Number(q?.noofnight||0)!==Number(D?.noofnight||0)});const T=o?.hotelCities?.reduce((q,z)=>q+parseFloat(z?.noofnight||0),0),A=gn(o.StartDate,T),R=o?.hotelCities||[],E=S||N||w?[]:o?.dayWiseItinerary||[],$=V1(R,E,o?.IsSightseeingSelected,o?.IsTransferSelected,o?.IsMealsSelected,o?.IsGuideSelected,o?.IsHotelSelected,Number(o?.startCity_id||0),o?.startCity?.trim(),Number(o?.endCity_id||0),o?.endCity?.trim()),_={};o?.hotelCities?.forEach(q=>{q?.hotelSelf||S||N||w?_[q.uniqueId]={}:_[q.uniqueId]={...o?.selectedHotels?.[q.uniqueId]||{}}});let k=0;o?.IsHotelSelected&&o?.hotelCities?.some(q=>!q?.hotelSelf)?k=2:o?.IsTransferSelected||o?.IsSightseeingSelected||o?.IsMealsSelected||o?.IsGuideSelected?k=3:k=4,e(Lt({currentStep:k,dayWiseItinerary:$,TotalNights:T,EndDate:Ze(new Date(A)),selectedHotels:_,isContinuedToServices:!0}))};return B.useEffect(()=>{try{const S=structuredClone(o);d(S)}catch(S){console.error("Cloning failed:",S)}},[]),p.jsx(p.Fragment,{children:p.jsxs("div",{className:"p-3 shadow bg-white",children:[p.jsxs("div",{className:"mb-3 p-0!",children:[p.jsx("span",{className:"text-xl",children:"Add Hotel Cities & Nights"})," ",p.jsx("span",{className:"text-sky-600 hoverhighlightTextColor",children:"(In case of Difft Hotels in same city Pls select the same city 2 times as per the stay date.)"})]}),o?.hotelCities?.length>0&&p.jsx("div",{className:"overflow-x-auto w-full mb-3 p-0!",children:p.jsx(hut,{onDragEnd:g,children:p.jsx(edt,{droppableId:"destinationsTable",children:S=>p.jsxs("table",{className:"w-full text-left defaultBorder text-sm",...S.droppableProps,ref:S.innerRef,children:[p.jsx("thead",{className:"text-xs text-gray-700 bg-stone-100 defaultBorder-b",children:p.jsxs("tr",{children:[p.jsx("th",{className:"p-2!"}),p.jsx("th",{className:"p-2!",children:"Destination"}),p.jsx("th",{className:"p-2!",children:"Check-In"}),p.jsx("th",{className:"p-2!",children:"Check-Out"}),p.jsx("th",{className:"p-2! w-44",children:"Nights"}),p.jsx("th",{className:"p-2! text-center w-24",children:"Action"})]})}),p.jsxs("tbody",{children:[o?.hotelCities?.map((w,N)=>p.jsx(Out,{draggableId:N.toString(),index:N,children:(T,A)=>p.jsxs("tr",{ref:T.innerRef,...T.draggableProps,className:`defaultBorder-b ${A.isDragging?"bg-orange-50 shadow-lg":""}`,style:{...T.draggableProps.style,display:A.isDragging?"table":"",width:"calc(100% - 5rem)",tableLayout:"fixed"},children:[p.jsx("td",{...T.dragHandleProps,className:"p-2 defaultBorder-r text-center cursor-grab",children:p.jsx(Fe,{icon:uA})}),p.jsx("td",{className:"p-2! defaultBorder-r",children:w?.destinationName||""}),p.jsx("td",{className:"p-2! defaultBorder-r",children:w?.CheckIn?Sw(w?.CheckIn):""}),p.jsx("td",{className:"p-2! defaultBorder-r",children:w?.CheckOut?Sw(w?.CheckOut):""}),p.jsx("td",{className:"p-1! defaultBorder-r",children:p.jsxs("div",{className:"flex defaultBorder",children:[p.jsx("button",{type:"button",className:"flex-1 bg-gray-200 p-1 cursor-pointer",onClick:()=>m("decrease",N),children:p.jsx("span",{className:"text-xs",children:p.jsx(Fe,{icon:sA})})}),p.jsx("div",{className:"flex-1 bg-gray-100 p-1 text-center",children:Number(w?.noofnight||0)}),p.jsx("button",{type:"button",className:"flex-1 bg-gray-200 p-1 cursor-pointer",onClick:()=>m("increase",N),children:p.jsx("span",{className:"text-xs",children:p.jsx(Fe,{icon:lA})})})]})}),p.jsx("td",{className:"p-1! text-center",children:p.jsx("button",{type:"button",onClick:()=>m("delete",N),className:"w-6 h-6 bg-rose-100 text-rose-600! rounded cursor-pointer",children:p.jsx(Fe,{icon:go})})})]})},N.toString())),S.placeholder]})]})})})}),p.jsx("div",{className:"mb-3 p-0! max-w-2xl flex gap-3",children:p.jsx(We,{type:"cityFromHotel",name:"destinationCovered",value:i?.title||"",onChange:y,placeholder:"Enter a destination or hotel city",inputClass:"bg-white w-full",divClass:"flex-1",handleSelectDestination:b})}),p.jsx("div",{className:"flex justify-end",children:p.jsx("button",{type:"button",onClick:x,className:"bg-(--highlight-color) px-3 py-1 text-sm text-white font-semibold cursor-pointer",children:"Save & Continue"})})]})})}function Zpt(){const e=on(),t=lt(d=>d.buildYourOwnData),n=lt(d=>d.global),[a,o]=B.useState(!1),i=(d,f,m,g)=>{const y={};if(d==="StartDate"){y[d]=Ze(new Date(f));const b=[...t?.hotelCities?.map(w=>({...w}))||[]];b?.forEach((w,N)=>{let T=Number(w?.noofnight||0);const A=N>0?b?.[N-1]?.CheckOut||w?.CheckIn:new Date(f),R=gn(A,T);w.noofnight=T,w.CheckIn=Ze(new Date(A)),w.CheckOut=Ze(new Date(R))}),y.hotelCities=[...b?.map(w=>({...w}))||[]];const x=Number(t?.TotalNights||0),S=gn(new Date(f),x);y.EndDate=Ze(new Date(S))}else if(d==="TotalNights"){const b=Number(f||0),x=t?.StartDate?gn(new Date(t?.StartDate),b):"";y.EndDate=Ze(new Date(x)),y.TotalNights=b}else y[d]=f,d==="startCity"&&(y.endCity=f,y.endCity_id=Number(g||0));m&&(y[m]=g),e(Lt({...y}))},l=async()=>{if(!t?.StartDate)return rt.error("Enter valid start date."),!1;if(Number(t?.startCity_id||0)<=0)return rt.error("Enter valid start city."),!1;if(Number(t?.endCity_id||0)<=0)return rt.error("Enter valid end city."),!1;if(Number(t?.adults||0)<=0)return rt.error("Enter valid number of adults."),!1;o(!0),e(Lt({tripSuggestion:[]}));const d=JSON.stringify({CityId:Number(t?.startCity_id||0),EndCity:Number(t?.endCity_id||0),DestinationId:Number(t?.startCity_id||0),FromDate:t?.StartDate?Ze(new Date(t?.StartDate)):"",ToDate:t?.EndDate?Ze(new Date(t?.EndDate)):""});try{const{data:f}=await Tt.post(`${sr}webservice/inventory-data/transfer`,d,{headers:{SecurityKey:n?.securityKey||""}});if(f?.status){const m=Number(t?.adults||0),g=Number(t?.child||0),{itineraryTransports:y}=Vpt(f?.data,m,g,t?.StartDate,n?.currencyMap,t?.IsSightseeingSelected,t?.IsTransferSelected,t?.IsMealsSelected,t?.IsGuideSelected,t?.IsHotelSelected);e(Lt({tripSuggestion:[...y?.filter(b=>b?.vehicleRoutes?.length>0)||[]],hotelCities:[],dayWiseItinerary:[],selectedHotels:{},isRoutesFetched:!0,selectedRouteSuggestion:{}}))}else e(Lt({tripSuggestion:[],hotelCities:[],dayWiseItinerary:[],selectedHotels:{},selectedRouteSuggestion:{}})),rt.error("No routes found.")}catch(f){console.error("Error fetching transport data:",f),e(Lt({tripSuggestion:[],hotelCities:[],dayWiseItinerary:[],selectedHotels:{},selectedRouteSuggestion:{}}))}finally{o(!1)}},u=()=>{e(Lt({isRoutesFetched:!1,isContinuedToServices:!1,hotelCities:[],tripSuggestion:[],dayWiseItinerary:[],selectedHotels:{},selectedRouteSuggestion:{}}))};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"mb-5 pt-0! flex gap-3 items-start",children:[p.jsxs("div",{className:"flex-1",children:[p.jsx("div",{className:"text-lg font-semibold text-white",children:"Services"}),p.jsx("div",{className:"flex gap-3",children:wot?.map((d,f)=>p.jsxs("label",{htmlFor:d?.name||"",className:`flex! gap-2 px-2 items-center bg-white ${t?.isRoutesFetched||t?.isContinuedToServices?"cursor-not-allowed":""}`,children:[p.jsx("input",{type:"checkbox",name:d?.name||"",id:d?.name||"",className:"w-3 h-3 m-0!",checked:t?.[d?.name||""]||!1,onChange:m=>i(m.target.name,m.target.checked),disabled:t?.isRoutesFetched||t?.isContinuedToServices||!1}),p.jsx("span",{className:"w-1 defaultBorder-r h-full"}),p.jsx("span",{className:"font-normal text-sm py-1",children:d?.label||""})]},f))})]}),t?.isContinuedToServices&&p.jsx("div",{className:"text-xs",children:p.jsx("button",{type:"button",onClick:()=>window.location.reload(),className:"px-3 py-1 text-white bg-gray-400",children:"Reset"})})]}),p.jsxs("div",{className:"flex gap-3 text-sm mb-3 p-0!",children:[p.jsx(We,{type:"date",label:"Start Date",labelClass:"text-white",name:"StartDate",value:t?.StartDate||"",onChange:d=>i(d.target.name,d.target.value),disabled:t?.isRoutesFetched||t?.isContinuedToServices||!1,placeholder:"MMM DD, YYYY",inputClass:"bg-white w-full text-sm",divClass:"flex-1 max-w-60",minDate:o_(new Date).slice(0,16)}),p.jsx(We,{type:"number",label:"No. of Nights",labelClass:"text-white",name:"TotalNights",value:t?.TotalNights||"",onChange:d=>i(d.target.name,d.target.value),disabled:t?.isRoutesFetched||t?.isContinuedToServices||!1,inputClass:"bg-white w-full text-sm",divClass:"flex-1 max-w-40"}),p.jsx(We,{type:"date",label:"End Date",labelClass:"text-white",name:"EndDate",value:t?.EndDate||"",onChange:d=>i(d.target.name,d.target.value),placeholder:"MMM DD, YYYY",inputClass:"bg-white w-full text-sm",divClass:"flex-1 max-w-60",disabled:!0}),p.jsx(We,{type:"text",label:"Currency",labelClass:"text-white",name:"baseCurrency",value:t?.baseCurrency||"",noBackground:!0,disabled:!0,inputClass:"bg-gray-200",divClass:"flex-1 max-w-60 text-gray-500"})]}),p.jsxs("div",{className:"flex gap-3 text-sm mb-3 p-0!",children:[p.jsx(We,{type:"cityFromTransport",label:"Start City / Arrival Airport City",labelClass:"text-white",name:"startCity",value:t?.startCity||"",onChange:d=>i(d.target.name,d.target.value,"startCity_id",d.target.cityId),disabled:t?.isRoutesFetched||t?.isContinuedToServices||!1,placeholder:"Start City / Arrival Airport City",inputClass:"bg-white w-full",divClass:"flex-1"}),p.jsx(We,{type:"cityFromTransport",label:"End City / Departure Airport City",labelClass:"text-white",name:"endCity",value:t?.endCity||"",onChange:d=>i(d.target.name,d.target.value,"endCity_id",d.target.cityId),disabled:t?.isRoutesFetched||t?.isContinuedToServices||!1,placeholder:"End City / Departure Airport City",inputClass:"bg-white w-full",divClass:"flex-1"})]}),p.jsxs("div",{className:"flex gap-3 text-sm mb-3 p-0!",children:[p.jsx(We,{type:"number",label:"No of Adult (+ 12Yrs)",labelClass:"text-white",name:"adults",value:t?.adults||"",onChange:d=>i(d.target.name,d.target.value),disabled:t?.isRoutesFetched||t?.isContinuedToServices||!1,inputClass:"bg-white w-full",divClass:"flex-1"}),p.jsx(We,{type:"number",label:"No of Child (2 - 12 Yrs)",labelClass:"text-white",name:"child",value:t?.child||"",onChange:d=>i(d.target.name,d.target.value),disabled:t?.isRoutesFetched||t?.isContinuedToServices||!1,inputClass:"bg-white w-full",divClass:"flex-1"}),p.jsx(We,{type:"number",label:"No of Infant (0 - 2 Yrs)",labelClass:"text-white",name:"infant",value:t?.infant||"",onChange:d=>i(d.target.name,d.target.value),disabled:t?.isRoutesFetched||t?.isContinuedToServices||!1,inputClass:"bg-white w-full",divClass:"flex-1"})]}),p.jsx("div",{className:"flex justify-end text-sm",children:t?.isRoutesFetched||t?.isContinuedToServices?p.jsx("button",{type:"button",onClick:u,className:"bg-(--highlight-color) px-3 py-1 text-white font-semibold cursor-pointer! disabled:opacity-30 disabled:cursor-not-allowed!",children:"Modify"}):p.jsx("button",{type:"button",onClick:l,disabled:a,className:"bg-(--highlight-color) px-3 py-1 text-white font-semibold cursor-pointer! disabled:opacity-30 disabled:cursor-not-allowed!",children:a?"Loading...":"Suggest Routes"})})]})}function Jpt(){const e=on(),t=lt(o=>o.global),n=lt(o=>o.buildYourOwnData);return B.useCallback(async o=>{if(o<=0)return{};if(n?.hotelDetails?.[o]?.isAlreadyFetched)return n?.hotelDetails?.[o]||{};try{const i=`${sr}webservice/inventory-data/hotel-wise`,l=JSON.stringify({HotelSysId:o}),{data:u}=await Tt.post(i,l,{headers:{SecurityKey:t?.securityKey}}),d=u?.data?.[0]||{};return e(Opt({hotelId:o,data:{...d,isAlreadyFetched:!0}})),d}catch(i){console.error("Error fetching details:",i),rt.error("Error fetching details")}return 1},[n?.hotelDetails,t?.securityKey,e])}var pu={},Cl={},np={},oi={},ii={},Gb={},m$;function Lj(){return m$||(m$=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(a){a.Root="root",a.Text="text",a.Directive="directive",a.Comment="comment",a.Script="script",a.Style="style",a.Tag="tag",a.CDATA="cdata",a.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(a){return a.type===t.Tag||a.type===t.Script||a.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(Gb)),Gb}var mt={},g$;function y$(){if(g$)return mt;g$=1;var e=mt&&mt.__extends||(function(){var E=function($,_){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,q){k.__proto__=q}||function(k,q){for(var z in q)Object.prototype.hasOwnProperty.call(q,z)&&(k[z]=q[z])},E($,_)};return function($,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");E($,_);function k(){this.constructor=$}$.prototype=_===null?Object.create(_):(k.prototype=_.prototype,new k)}})(),t=mt&&mt.__assign||function(){return t=Object.assign||function(E){for(var $,_=1,k=arguments.length;_<k;_++){$=arguments[_];for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(E[q]=$[q])}return E},t.apply(this,arguments)};Object.defineProperty(mt,"__esModule",{value:!0}),mt.cloneNode=mt.hasChildren=mt.isDocument=mt.isDirective=mt.isComment=mt.isText=mt.isCDATA=mt.isTag=mt.Element=mt.Document=mt.CDATA=mt.NodeWithChildren=mt.ProcessingInstruction=mt.Comment=mt.Text=mt.DataNode=mt.Node=void 0;var n=Lj(),a=(function(){function E(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(E.prototype,"parentNode",{get:function(){return this.parent},set:function($){this.parent=$},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"previousSibling",{get:function(){return this.prev},set:function($){this.prev=$},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"nextSibling",{get:function(){return this.next},set:function($){this.next=$},enumerable:!1,configurable:!0}),E.prototype.cloneNode=function($){return $===void 0&&($=!1),A(this,$)},E})();mt.Node=a;var o=(function(E){e($,E);function $(_){var k=E.call(this)||this;return k.data=_,k}return Object.defineProperty($.prototype,"nodeValue",{get:function(){return this.data},set:function(_){this.data=_},enumerable:!1,configurable:!0}),$})(a);mt.DataNode=o;var i=(function(E){e($,E);function $(){var _=E!==null&&E.apply(this,arguments)||this;return _.type=n.ElementType.Text,_}return Object.defineProperty($.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),$})(o);mt.Text=i;var l=(function(E){e($,E);function $(){var _=E!==null&&E.apply(this,arguments)||this;return _.type=n.ElementType.Comment,_}return Object.defineProperty($.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),$})(o);mt.Comment=l;var u=(function(E){e($,E);function $(_,k){var q=E.call(this,k)||this;return q.name=_,q.type=n.ElementType.Directive,q}return Object.defineProperty($.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),$})(o);mt.ProcessingInstruction=u;var d=(function(E){e($,E);function $(_){var k=E.call(this)||this;return k.children=_,k}return Object.defineProperty($.prototype,"firstChild",{get:function(){var _;return(_=this.children[0])!==null&&_!==void 0?_:null},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"childNodes",{get:function(){return this.children},set:function(_){this.children=_},enumerable:!1,configurable:!0}),$})(a);mt.NodeWithChildren=d;var f=(function(E){e($,E);function $(){var _=E!==null&&E.apply(this,arguments)||this;return _.type=n.ElementType.CDATA,_}return Object.defineProperty($.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),$})(d);mt.CDATA=f;var m=(function(E){e($,E);function $(){var _=E!==null&&E.apply(this,arguments)||this;return _.type=n.ElementType.Root,_}return Object.defineProperty($.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),$})(d);mt.Document=m;var g=(function(E){e($,E);function $(_,k,q,z){q===void 0&&(q=[]),z===void 0&&(z=_==="script"?n.ElementType.Script:_==="style"?n.ElementType.Style:n.ElementType.Tag);var D=E.call(this,q)||this;return D.name=_,D.attribs=k,D.type=z,D}return Object.defineProperty($.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"tagName",{get:function(){return this.name},set:function(_){this.name=_},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"attributes",{get:function(){var _=this;return Object.keys(this.attribs).map(function(k){var q,z;return{name:k,value:_.attribs[k],namespace:(q=_["x-attribsNamespace"])===null||q===void 0?void 0:q[k],prefix:(z=_["x-attribsPrefix"])===null||z===void 0?void 0:z[k]}})},enumerable:!1,configurable:!0}),$})(d);mt.Element=g;function y(E){return(0,n.isTag)(E)}mt.isTag=y;function b(E){return E.type===n.ElementType.CDATA}mt.isCDATA=b;function x(E){return E.type===n.ElementType.Text}mt.isText=x;function S(E){return E.type===n.ElementType.Comment}mt.isComment=S;function w(E){return E.type===n.ElementType.Directive}mt.isDirective=w;function N(E){return E.type===n.ElementType.Root}mt.isDocument=N;function T(E){return Object.prototype.hasOwnProperty.call(E,"children")}mt.hasChildren=T;function A(E,$){$===void 0&&($=!1);var _;if(x(E))_=new i(E.data);else if(S(E))_=new l(E.data);else if(y(E)){var k=$?R(E.children):[],q=new g(E.name,t({},E.attribs),k);k.forEach(function(O){return O.parent=q}),E.namespace!=null&&(q.namespace=E.namespace),E["x-attribsNamespace"]&&(q["x-attribsNamespace"]=t({},E["x-attribsNamespace"])),E["x-attribsPrefix"]&&(q["x-attribsPrefix"]=t({},E["x-attribsPrefix"])),_=q}else if(b(E)){var k=$?R(E.children):[],z=new f(k);k.forEach(function(j){return j.parent=z}),_=z}else if(N(E)){var k=$?R(E.children):[],D=new m(k);k.forEach(function(j){return j.parent=D}),E["x-mode"]&&(D["x-mode"]=E["x-mode"]),_=D}else if(w(E)){var H=new u(E.name,E.data);E["x-name"]!=null&&(H["x-name"]=E["x-name"],H["x-publicId"]=E["x-publicId"],H["x-systemId"]=E["x-systemId"]),_=H}else throw new Error("Not implemented yet: ".concat(E.type));return _.startIndex=E.startIndex,_.endIndex=E.endIndex,E.sourceCodeLocation!=null&&(_.sourceCodeLocation=E.sourceCodeLocation),_}mt.cloneNode=A;function R(E){for(var $=E.map(function(k){return A(k,!0)}),_=1;_<$.length;_++)$[_].prev=$[_-1],$[_-1].next=$[_];return $}return mt}var b$;function eht(){return b$||(b$=1,(function(e){var t=ii&&ii.__createBinding||(Object.create?(function(u,d,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(d,f);(!g||("get"in g?!d.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(u,m,g)}):(function(u,d,f,m){m===void 0&&(m=f),u[m]=d[f]})),n=ii&&ii.__exportStar||function(u,d){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(d,f)&&t(d,u,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var a=Lj(),o=y$();n(y$(),e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=(function(){function u(d,f,m){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f=="function"&&(m=f,f=i),typeof d=="object"&&(f=d,d=void 0),this.callback=d??null,this.options=f??i,this.elementCB=m??null}return u.prototype.onparserinit=function(d){this.parser=d},u.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},u.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},u.prototype.onerror=function(d){this.handleCallback(d)},u.prototype.onclosetag=function(){this.lastNode=null;var d=this.tagStack.pop();this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(d)},u.prototype.onopentag=function(d,f){var m=this.options.xmlMode?a.ElementType.Tag:void 0,g=new o.Element(d,f,void 0,m);this.addNode(g),this.tagStack.push(g)},u.prototype.ontext=function(d){var f=this.lastNode;if(f&&f.type===a.ElementType.Text)f.data+=d,this.options.withEndIndices&&(f.endIndex=this.parser.endIndex);else{var m=new o.Text(d);this.addNode(m),this.lastNode=m}},u.prototype.oncomment=function(d){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment){this.lastNode.data+=d;return}var f=new o.Comment(d);this.addNode(f),this.lastNode=f},u.prototype.oncommentend=function(){this.lastNode=null},u.prototype.oncdatastart=function(){var d=new o.Text(""),f=new o.CDATA([d]);this.addNode(f),d.parent=f,this.lastNode=d},u.prototype.oncdataend=function(){this.lastNode=null},u.prototype.onprocessinginstruction=function(d,f){var m=new o.ProcessingInstruction(d,f);this.addNode(m)},u.prototype.handleCallback=function(d){if(typeof this.callback=="function")this.callback(d,this.dom);else if(d)throw d},u.prototype.addNode=function(d){var f=this.tagStack[this.tagStack.length-1],m=f.children[f.children.length-1];this.options.withStartIndices&&(d.startIndex=this.parser.startIndex),this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),f.children.push(d),m&&(d.prev=m,m.next=d),d.parent=f,this.lastNode=null},u})();e.DomHandler=l,e.default=l})(ii)),ii}var Yb={},v$;function tht(){return v$||(v$=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=e.CARRIAGE_RETURN_PLACEHOLDER=e.CARRIAGE_RETURN_REGEX=e.CARRIAGE_RETURN=e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES=void 0,e.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],e.CASE_SENSITIVE_TAG_NAMES_MAP=e.CASE_SENSITIVE_TAG_NAMES.reduce(function(t,n){return t[n.toLowerCase()]=n,t},{}),e.CARRIAGE_RETURN="\r",e.CARRIAGE_RETURN_REGEX=new RegExp(e.CARRIAGE_RETURN,"g"),e.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),e.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(e.CARRIAGE_RETURN_PLACEHOLDER,"g")})(Yb)),Yb}var x$;function Bj(){if(x$)return oi;x$=1,Object.defineProperty(oi,"__esModule",{value:!0}),oi.formatAttributes=a,oi.escapeSpecialCharacters=i,oi.revertEscapedCharacters=l,oi.formatDOM=u;var e=eht(),t=tht();function n(d){return t.CASE_SENSITIVE_TAG_NAMES_MAP[d]}function a(d){for(var f={},m=0,g=d.length;m<g;m++){var y=d[m];f[y.name]=y.value}return f}function o(d){d=d.toLowerCase();var f=n(d);return f||d}function i(d){return d.replace(t.CARRIAGE_RETURN_REGEX,t.CARRIAGE_RETURN_PLACEHOLDER)}function l(d){return d.replace(t.CARRIAGE_RETURN_PLACEHOLDER_REGEX,t.CARRIAGE_RETURN)}function u(d,f,m){f===void 0&&(f=null);for(var g=[],y,b=0,x=d.length;b<x;b++){var S=d[b];switch(S.nodeType){case 1:{var w=o(S.nodeName);y=new e.Element(w,a(S.attributes)),y.children=u(w==="template"?S.content.childNodes:S.childNodes,y);break}case 3:y=new e.Text(l(S.nodeValue));break;case 8:y=new e.Comment(S.nodeValue);break;default:continue}var N=g[b-1]||null;N&&(N.next=y),y.parent=f,y.prev=N,y.next=null,g.push(y)}return m&&(y=new e.ProcessingInstruction(m.substring(0,m.indexOf(" ")).toLowerCase(),m),y.next=g[0]||null,y.parent=f,g.unshift(y),g[1]&&(g[1].prev=g[0])),g}return oi}var C$;function nht(){if(C$)return np;C$=1,Object.defineProperty(np,"__esModule",{value:!0}),np.default=S;var e=Bj(),t="html",n="head",a="body",o=/<([a-zA-Z]+[0-9]?)/,i=/<head[^]*>/i,l=/<body[^]*>/i,u=function(w,N){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(w,N){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},f=typeof window=="object"&&window.DOMParser;if(typeof f=="function"){var m=new f,g="text/html";d=function(w,N){return N&&(w="<".concat(N,">").concat(w,"</").concat(N,">")),m.parseFromString(w,g)},u=d}if(typeof document=="object"&&document.implementation){var y=document.implementation.createHTMLDocument();u=function(w,N){if(N){var T=y.documentElement.querySelector(N);return T&&(T.innerHTML=w),y}return y.documentElement.innerHTML=w,y}}var b=typeof document=="object"&&document.createElement("template"),x;b&&b.content&&(x=function(w){return b.innerHTML=w,b.content.childNodes});function S(w){var N,T;w=(0,e.escapeSpecialCharacters)(w);var A=w.match(o),R=A&&A[1]?A[1].toLowerCase():"";switch(R){case t:{var E=d(w);if(!i.test(w)){var $=E.querySelector(n);(N=$?.parentNode)===null||N===void 0||N.removeChild($)}if(!l.test(w)){var $=E.querySelector(a);(T=$?.parentNode)===null||T===void 0||T.removeChild($)}return E.querySelectorAll(t)}case n:case a:{var _=u(w).querySelectorAll(R);return l.test(w)&&i.test(w)?_[0].parentNode.childNodes:_}default:{if(x)return x(w);var $=u(w,a).querySelector(a);return $.childNodes}}}return np}var S$;function rht(){if(S$)return Cl;S$=1;var e=Cl&&Cl.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(Cl,"__esModule",{value:!0}),Cl.default=o;var t=e(nht()),n=Bj(),a=/<(![a-zA-Z\s]+)>/;function o(i){if(typeof i!="string")throw new TypeError("First argument must be a string");if(!i)return[];var l=i.match(a),u=l?l[1]:void 0;return(0,n.formatDOM)((0,t.default)(i),null,u)}return Cl}var rp={},Gr={},hu={},N$;function aht(){if(N$)return hu;N$=1;var e=0;hu.SAME=e;var t=1;return hu.CAMELCASE=t,hu.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1},hu}var w$;function sht(){if(w$)return Gr;w$=1;const e=0,t=1,n=2,a=3,o=4,i=5,l=6;function u(E){return f.hasOwnProperty(E)?f[E]:null}function d(E,$,_,k,q,z,D){this.acceptsBooleans=$===n||$===a||$===o,this.attributeName=k,this.attributeNamespace=q,this.mustUseProperty=_,this.propertyName=E,this.type=$,this.sanitizeURL=z,this.removeEmptyString=D}const f={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach(E=>{f[E]=new d(E,e,!1,E,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(([E,$])=>{f[E]=new d(E,t,!1,$,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(E=>{f[E]=new d(E,n,!1,E.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(E=>{f[E]=new d(E,n,!1,E,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(E=>{f[E]=new d(E,a,!1,E.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(E=>{f[E]=new d(E,a,!0,E,null,!1,!1)}),["capture","download"].forEach(E=>{f[E]=new d(E,o,!1,E,null,!1,!1)}),["cols","rows","size","span"].forEach(E=>{f[E]=new d(E,l,!1,E,null,!1,!1)}),["rowSpan","start"].forEach(E=>{f[E]=new d(E,i,!1,E.toLowerCase(),null,!1,!1)});const g=/[\-\:]([a-z])/g,y=E=>E[1].toUpperCase();["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(E=>{const $=E.replace(g,y);f[$]=new d($,t,!1,E,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(E=>{const $=E.replace(g,y);f[$]=new d($,t,!1,E,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(E=>{const $=E.replace(g,y);f[$]=new d($,t,!1,E,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(E=>{f[E]=new d(E,t,!1,E.toLowerCase(),null,!1,!1)});const b="xlinkHref";f[b]=new d("xlinkHref",t,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(E=>{f[E]=new d(E,t,!1,E.toLowerCase(),null,!0,!0)});const{CAMELCASE:x,SAME:S,possibleStandardNames:w}=aht(),T=":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",A=RegExp.prototype.test.bind(new RegExp("^(data|aria)-["+T+"]*$")),R=Object.keys(w).reduce((E,$)=>{const _=w[$];return _===S?E[$]=$:_===x?E[$.toLowerCase()]=$:E[$]=_,E},{});return Gr.BOOLEAN=a,Gr.BOOLEANISH_STRING=n,Gr.NUMERIC=i,Gr.OVERLOADED_BOOLEAN=o,Gr.POSITIVE_NUMERIC=l,Gr.RESERVED=e,Gr.STRING=t,Gr.getPropertyInfo=u,Gr.isCustomAttribute=A,Gr.possibleStandardNames=R,Gr}var mu={},Sl={},Wb,E$;function oht(){if(E$)return Wb;E$=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,i=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,u=/^\s+|\s+$/g,d=`
`,f="/",m="*",g="",y="comment",b="declaration";function x(w,N){if(typeof w!="string")throw new TypeError("First argument must be a string");if(!w)return[];N=N||{};var T=1,A=1;function R(j){var M=j.match(t);M&&(T+=M.length);var I=j.lastIndexOf(d);A=~I?j.length-I:A+j.length}function E(){var j={line:T,column:A};return function(M){return M.position=new $(j),q(),M}}function $(j){this.start=j,this.end={line:T,column:A},this.source=N.source}$.prototype.content=w;function _(j){var M=new Error(N.source+":"+T+":"+A+": "+j);if(M.reason=j,M.filename=N.source,M.line=T,M.column=A,M.source=w,!N.silent)throw M}function k(j){var M=j.exec(w);if(M){var I=M[0];return R(I),w=w.slice(I.length),M}}function q(){k(n)}function z(j){var M;for(j=j||[];M=D();)M!==!1&&j.push(M);return j}function D(){var j=E();if(!(f!=w.charAt(0)||m!=w.charAt(1))){for(var M=2;g!=w.charAt(M)&&(m!=w.charAt(M)||f!=w.charAt(M+1));)++M;if(M+=2,g===w.charAt(M-1))return _("End of comment missing");var I=w.slice(2,M-2);return A+=2,R(I),w=w.slice(M),A+=2,j({type:y,comment:I})}}function H(){var j=E(),M=k(a);if(M){if(D(),!k(o))return _("property missing ':'");var I=k(i),F=j({type:b,property:S(M[0].replace(e,g)),value:I?S(I[0].replace(e,g)):g});return k(l),F}}function O(){var j=[];z(j);for(var M;M=H();)M!==!1&&(j.push(M),z(j));return j}return q(),O()}function S(w){return w?w.replace(u,g):g}return Wb=x,Wb}var $$;function iht(){if($$)return Sl;$$=1;var e=Sl&&Sl.__importDefault||function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(Sl,"__esModule",{value:!0}),Sl.default=n;const t=e(oht());function n(a,o){let i=null;if(!a||typeof a!="string")return i;const l=(0,t.default)(a),u=typeof o=="function";return l.forEach(d=>{if(d.type!=="declaration")return;const{property:f,value:m}=d;u?o(f,m,d):m&&(i=i||{},i[f]=m)}),i}return Sl}var gu={},T$;function lht(){if(T$)return gu;T$=1,Object.defineProperty(gu,"__esModule",{value:!0}),gu.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,a=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,i=function(f){return!f||n.test(f)||e.test(f)},l=function(f,m){return m.toUpperCase()},u=function(f,m){return"".concat(m,"-")},d=function(f,m){return m===void 0&&(m={}),i(f)?f:(f=f.toLowerCase(),m.reactCompat?f=f.replace(o,u):f=f.replace(a,u),f.replace(t,l))};return gu.camelCase=d,gu}var yu,_$;function cht(){if(_$)return yu;_$=1;var e=yu&&yu.__importDefault||function(o){return o&&o.__esModule?o:{default:o}},t=e(iht()),n=lht();function a(o,i){var l={};return!o||typeof o!="string"||(0,t.default)(o,function(u,d){u&&d&&(l[(0,n.camelCase)(u,i)]=d)}),l}return a.default=a,yu=a,yu}var A$;function qj(){return A$||(A$=1,(function(e){var t=mu&&mu.__importDefault||function(m){return m&&m.__esModule?m:{default:m}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=i,e.setStyleProp=u;var n=ji(),a=t(cht()),o=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]);function i(m,g){return m.includes("-")?!o.has(m):!!(g&&typeof g.is=="string")}var l={reactCompat:!0};function u(m,g){if(typeof m=="string"){if(!m.trim()){g.style={};return}try{g.style=(0,a.default)(m,l)}catch{g.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(".")[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]);var d=function(m){return!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(m.name)};e.canTextBeChildOfNode=d;var f=function(m){return m};e.returnFirstArg=f})(mu)),mu}var D$;function Fj(){if(D$)return rp;D$=1,Object.defineProperty(rp,"__esModule",{value:!0}),rp.default=i;var e=sht(),t=qj(),n=["checked","value"],a=["input","select","textarea"],o={reset:!0,submit:!0};function i(u,d){u===void 0&&(u={});var f={},m=!!(u.type&&o[u.type]);for(var g in u){var y=u[g];if((0,e.isCustomAttribute)(g)){f[g]=y;continue}var b=g.toLowerCase(),x=l(b);if(x){var S=(0,e.getPropertyInfo)(x);switch(n.includes(x)&&a.includes(d)&&!m&&(x=l("default"+b)),f[x]=y,S&&S.type){case e.BOOLEAN:f[x]=!0;break;case e.OVERLOADED_BOOLEAN:y===""&&(f[x]=!0);break}continue}t.PRESERVE_CUSTOM_ATTRIBUTES&&(f[g]=y)}return(0,t.setStyleProp)(u.style,f),f}function l(u){return e.possibleStandardNames[u]}return rp}var Nl={},j$;function uht(){if(j$)return Nl;j$=1;var e=Nl&&Nl.__importDefault||function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(Nl,"__esModule",{value:!0}),Nl.default=i;var t=ji(),n=e(Fj()),a=qj(),o={cloneElement:t.cloneElement,createElement:t.createElement,isValidElement:t.isValidElement};function i(u,d){d===void 0&&(d={});for(var f=[],m=typeof d.replace=="function",g=d.transform||a.returnFirstArg,y=d.library||o,b=y.cloneElement,x=y.createElement,S=y.isValidElement,w=u.length,N=0;N<w;N++){var T=u[N];if(m){var A=d.replace(T,N);if(S(A)){w>1&&(A=b(A,{key:A.key||N})),f.push(g(A,T,N));continue}}if(T.type==="text"){var R=!T.data.trim().length;if(R&&T.parent&&!(0,a.canTextBeChildOfNode)(T.parent)||d.trim&&R)continue;f.push(g(T.data,T,N));continue}var E=T,$={};l(E)?((0,a.setStyleProp)(E.attribs.style,E.attribs),$=E.attribs):E.attribs&&($=(0,n.default)(E.attribs,E.name));var _=void 0;switch(T.type){case"script":case"style":T.children[0]&&($.dangerouslySetInnerHTML={__html:T.children[0].data});break;case"tag":T.name==="textarea"&&T.children[0]?$.defaultValue=T.children[0].data:T.children&&T.children.length&&(_=i(T.children,d));break;default:continue}w>1&&($.key=N),f.push(g(x(T.name,$,_),T,N))}return f.length===1?f[0]:f}function l(u){return a.PRESERVE_CUSTOM_ATTRIBUTES&&u.type==="tag"&&(0,a.isCustomComponent)(u.name,u.attribs)}return Nl}var li={},Xb={},R$;function zj(){return R$||(R$=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Doctype=e.CDATA=e.Tag=e.Style=e.Script=e.Comment=e.Directive=e.Text=e.Root=e.isTag=e.ElementType=void 0;var t;(function(a){a.Root="root",a.Text="text",a.Directive="directive",a.Comment="comment",a.Script="script",a.Style="style",a.Tag="tag",a.CDATA="cdata",a.Doctype="doctype"})(t=e.ElementType||(e.ElementType={}));function n(a){return a.type===t.Tag||a.type===t.Script||a.type===t.Style}e.isTag=n,e.Root=t.Root,e.Text=t.Text,e.Directive=t.Directive,e.Comment=t.Comment,e.Script=t.Script,e.Style=t.Style,e.Tag=t.Tag,e.CDATA=t.CDATA,e.Doctype=t.Doctype})(Xb)),Xb}var gt={},O$;function I$(){if(O$)return gt;O$=1;var e=gt&&gt.__extends||(function(){var E=function($,_){return E=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,q){k.__proto__=q}||function(k,q){for(var z in q)Object.prototype.hasOwnProperty.call(q,z)&&(k[z]=q[z])},E($,_)};return function($,_){if(typeof _!="function"&&_!==null)throw new TypeError("Class extends value "+String(_)+" is not a constructor or null");E($,_);function k(){this.constructor=$}$.prototype=_===null?Object.create(_):(k.prototype=_.prototype,new k)}})(),t=gt&&gt.__assign||function(){return t=Object.assign||function(E){for(var $,_=1,k=arguments.length;_<k;_++){$=arguments[_];for(var q in $)Object.prototype.hasOwnProperty.call($,q)&&(E[q]=$[q])}return E},t.apply(this,arguments)};Object.defineProperty(gt,"__esModule",{value:!0}),gt.cloneNode=gt.hasChildren=gt.isDocument=gt.isDirective=gt.isComment=gt.isText=gt.isCDATA=gt.isTag=gt.Element=gt.Document=gt.CDATA=gt.NodeWithChildren=gt.ProcessingInstruction=gt.Comment=gt.Text=gt.DataNode=gt.Node=void 0;var n=zj(),a=(function(){function E(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(E.prototype,"parentNode",{get:function(){return this.parent},set:function($){this.parent=$},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"previousSibling",{get:function(){return this.prev},set:function($){this.prev=$},enumerable:!1,configurable:!0}),Object.defineProperty(E.prototype,"nextSibling",{get:function(){return this.next},set:function($){this.next=$},enumerable:!1,configurable:!0}),E.prototype.cloneNode=function($){return $===void 0&&($=!1),A(this,$)},E})();gt.Node=a;var o=(function(E){e($,E);function $(_){var k=E.call(this)||this;return k.data=_,k}return Object.defineProperty($.prototype,"nodeValue",{get:function(){return this.data},set:function(_){this.data=_},enumerable:!1,configurable:!0}),$})(a);gt.DataNode=o;var i=(function(E){e($,E);function $(){var _=E!==null&&E.apply(this,arguments)||this;return _.type=n.ElementType.Text,_}return Object.defineProperty($.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),$})(o);gt.Text=i;var l=(function(E){e($,E);function $(){var _=E!==null&&E.apply(this,arguments)||this;return _.type=n.ElementType.Comment,_}return Object.defineProperty($.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),$})(o);gt.Comment=l;var u=(function(E){e($,E);function $(_,k){var q=E.call(this,k)||this;return q.name=_,q.type=n.ElementType.Directive,q}return Object.defineProperty($.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),$})(o);gt.ProcessingInstruction=u;var d=(function(E){e($,E);function $(_){var k=E.call(this)||this;return k.children=_,k}return Object.defineProperty($.prototype,"firstChild",{get:function(){var _;return(_=this.children[0])!==null&&_!==void 0?_:null},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"childNodes",{get:function(){return this.children},set:function(_){this.children=_},enumerable:!1,configurable:!0}),$})(a);gt.NodeWithChildren=d;var f=(function(E){e($,E);function $(){var _=E!==null&&E.apply(this,arguments)||this;return _.type=n.ElementType.CDATA,_}return Object.defineProperty($.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),$})(d);gt.CDATA=f;var m=(function(E){e($,E);function $(){var _=E!==null&&E.apply(this,arguments)||this;return _.type=n.ElementType.Root,_}return Object.defineProperty($.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),$})(d);gt.Document=m;var g=(function(E){e($,E);function $(_,k,q,z){q===void 0&&(q=[]),z===void 0&&(z=_==="script"?n.ElementType.Script:_==="style"?n.ElementType.Style:n.ElementType.Tag);var D=E.call(this,q)||this;return D.name=_,D.attribs=k,D.type=z,D}return Object.defineProperty($.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"tagName",{get:function(){return this.name},set:function(_){this.name=_},enumerable:!1,configurable:!0}),Object.defineProperty($.prototype,"attributes",{get:function(){var _=this;return Object.keys(this.attribs).map(function(k){var q,z;return{name:k,value:_.attribs[k],namespace:(q=_["x-attribsNamespace"])===null||q===void 0?void 0:q[k],prefix:(z=_["x-attribsPrefix"])===null||z===void 0?void 0:z[k]}})},enumerable:!1,configurable:!0}),$})(d);gt.Element=g;function y(E){return(0,n.isTag)(E)}gt.isTag=y;function b(E){return E.type===n.ElementType.CDATA}gt.isCDATA=b;function x(E){return E.type===n.ElementType.Text}gt.isText=x;function S(E){return E.type===n.ElementType.Comment}gt.isComment=S;function w(E){return E.type===n.ElementType.Directive}gt.isDirective=w;function N(E){return E.type===n.ElementType.Root}gt.isDocument=N;function T(E){return Object.prototype.hasOwnProperty.call(E,"children")}gt.hasChildren=T;function A(E,$){$===void 0&&($=!1);var _;if(x(E))_=new i(E.data);else if(S(E))_=new l(E.data);else if(y(E)){var k=$?R(E.children):[],q=new g(E.name,t({},E.attribs),k);k.forEach(function(O){return O.parent=q}),E.namespace!=null&&(q.namespace=E.namespace),E["x-attribsNamespace"]&&(q["x-attribsNamespace"]=t({},E["x-attribsNamespace"])),E["x-attribsPrefix"]&&(q["x-attribsPrefix"]=t({},E["x-attribsPrefix"])),_=q}else if(b(E)){var k=$?R(E.children):[],z=new f(k);k.forEach(function(j){return j.parent=z}),_=z}else if(N(E)){var k=$?R(E.children):[],D=new m(k);k.forEach(function(j){return j.parent=D}),E["x-mode"]&&(D["x-mode"]=E["x-mode"]),_=D}else if(w(E)){var H=new u(E.name,E.data);E["x-name"]!=null&&(H["x-name"]=E["x-name"],H["x-publicId"]=E["x-publicId"],H["x-systemId"]=E["x-systemId"]),_=H}else throw new Error("Not implemented yet: ".concat(E.type));return _.startIndex=E.startIndex,_.endIndex=E.endIndex,E.sourceCodeLocation!=null&&(_.sourceCodeLocation=E.sourceCodeLocation),_}gt.cloneNode=A;function R(E){for(var $=E.map(function(k){return A(k,!0)}),_=1;_<$.length;_++)$[_].prev=$[_-1],$[_-1].next=$[_];return $}return gt}var k$;function dht(){return k$||(k$=1,(function(e){var t=li&&li.__createBinding||(Object.create?(function(u,d,f,m){m===void 0&&(m=f);var g=Object.getOwnPropertyDescriptor(d,f);(!g||("get"in g?!d.__esModule:g.writable||g.configurable))&&(g={enumerable:!0,get:function(){return d[f]}}),Object.defineProperty(u,m,g)}):(function(u,d,f,m){m===void 0&&(m=f),u[m]=d[f]})),n=li&&li.__exportStar||function(u,d){for(var f in u)f!=="default"&&!Object.prototype.hasOwnProperty.call(d,f)&&t(d,u,f)};Object.defineProperty(e,"__esModule",{value:!0}),e.DomHandler=void 0;var a=zj(),o=I$();n(I$(),e);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=(function(){function u(d,f,m){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof f=="function"&&(m=f,f=i),typeof d=="object"&&(f=d,d=void 0),this.callback=d??null,this.options=f??i,this.elementCB=m??null}return u.prototype.onparserinit=function(d){this.parser=d},u.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},u.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},u.prototype.onerror=function(d){this.handleCallback(d)},u.prototype.onclosetag=function(){this.lastNode=null;var d=this.tagStack.pop();this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(d)},u.prototype.onopentag=function(d,f){var m=this.options.xmlMode?a.ElementType.Tag:void 0,g=new o.Element(d,f,void 0,m);this.addNode(g),this.tagStack.push(g)},u.prototype.ontext=function(d){var f=this.lastNode;if(f&&f.type===a.ElementType.Text)f.data+=d,this.options.withEndIndices&&(f.endIndex=this.parser.endIndex);else{var m=new o.Text(d);this.addNode(m),this.lastNode=m}},u.prototype.oncomment=function(d){if(this.lastNode&&this.lastNode.type===a.ElementType.Comment){this.lastNode.data+=d;return}var f=new o.Comment(d);this.addNode(f),this.lastNode=f},u.prototype.oncommentend=function(){this.lastNode=null},u.prototype.oncdatastart=function(){var d=new o.Text(""),f=new o.CDATA([d]);this.addNode(f),d.parent=f,this.lastNode=d},u.prototype.oncdataend=function(){this.lastNode=null},u.prototype.onprocessinginstruction=function(d,f){var m=new o.ProcessingInstruction(d,f);this.addNode(m)},u.prototype.handleCallback=function(d){if(typeof this.callback=="function")this.callback(d,this.dom);else if(d)throw d},u.prototype.addNode=function(d){var f=this.tagStack[this.tagStack.length-1],m=f.children[f.children.length-1];this.options.withStartIndices&&(d.startIndex=this.parser.startIndex),this.options.withEndIndices&&(d.endIndex=this.parser.endIndex),f.children.push(d),m&&(d.prev=m,m.next=d),d.parent=f,this.lastNode=null},u})();e.DomHandler=l,e.default=l})(li)),li}var M$;function fht(){return M$||(M$=1,(function(e){var t=pu&&pu.__importDefault||function(d){return d&&d.__esModule?d:{default:d}};Object.defineProperty(e,"__esModule",{value:!0}),e.htmlToDOM=e.domToReact=e.attributesToProps=e.Text=e.ProcessingInstruction=e.Element=e.Comment=void 0,e.default=u;var n=t(rht());e.htmlToDOM=n.default;var a=t(Fj());e.attributesToProps=a.default;var o=t(uht());e.domToReact=o.default;var i=dht();Object.defineProperty(e,"Comment",{enumerable:!0,get:function(){return i.Comment}}),Object.defineProperty(e,"Element",{enumerable:!0,get:function(){return i.Element}}),Object.defineProperty(e,"ProcessingInstruction",{enumerable:!0,get:function(){return i.ProcessingInstruction}}),Object.defineProperty(e,"Text",{enumerable:!0,get:function(){return i.Text}});var l={lowerCaseAttributeNames:!1};function u(d,f){if(typeof d!="string")throw new TypeError("First argument must be a string");return d?(0,o.default)((0,n.default)(d,f?.htmlparser2||l),f):[]}})(pu)),pu}var pht=fht();const P$=Di(pht),Zr=P$.default||P$;function hht(e){const{hotelData:t,accoAminitiesMask:n}=e,{closeModal:a}=Fn(),o=["Overview","Amenities","Photo Gallery","Map"],[i,l]=B.useState(o[0]);return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"py-3 px-4 flex justify-between items-center gap-3 bg-black text-white",children:[p.jsx("div",{className:"text-xl font-semibold",children:"Hotel Detail"}),p.jsx("button",{type:"button",onClick:a,children:p.jsx(Fe,{icon:Or})})]}),p.jsxs("div",{className:"p-4",children:[p.jsx("div",{className:"flex gap-2 mb-4 p-0! text-sm",children:o?.map((u,d)=>p.jsx("button",{type:"button",onClick:()=>l(u),className:`px-3 py-1 border-2 ${i===u?"bg-gray-600 text-white":"text-gray-600!"}`,children:u},d))}),i===o[0]&&p.jsxs("div",{className:"flex gap-4 items-start",children:[p.jsx("div",{className:"flex-1",children:Zr(aL(t?.Brief?.trim()||""))}),p.jsx("img",{src:t?.DetailImg?.trim()?t?.DetailImg?.trim()?.replace(/\\\//g,"/"):qD,alt:t?.Title?.trim()||"",className:"max-w-56 w-56 max-h-96 object-cover"})]}),i===o[1]&&p.jsx("div",{className:"flex gap-2 items-start",children:(()=>{const u=i_(n,t?.AccomAminity||[]);return u?.length>0?p.jsx(p.Fragment,{children:u?.map((d,f)=>p.jsx("div",{className:"defaultBorder px-2 py-1 text-xs",children:d?.Title?.trim()||""},f))}):""})()})]})]})}function mht(e){const{hotelItem:t,handleSelectHotel:n}=e,a=on(),o=Jpt(),{showModal:i,changeModalWidth:l}=Fn(),u=lt(S=>S.buildYourOwnData),[d,f]=B.useState(!1),[m,g]=B.useState(!1),y=()=>{const S=u?.selectedCity||"",w=t?.rooms?.reduce((z,D)=>z+Number(D?.AdultPax||0)+Number(D?.ExtraAdultPax||0),0),N=t?.rooms?.reduce((z,D)=>z+Number(D?.NoBedChildPax||0)+Number(D?.ExtraBedChildPax||0),0),T=t?.rooms?.reduce((z,D)=>z+Number(D?.InfantPax||0),0);if(Number(u?.adults||0)>0&&w!==Number(u?.adults||0))return rt.error("No. of adults in room is not equal to no. of adults in query."),!1;if(Number(u?.child||0)>0&&N!==Number(u?.child||0))return rt.error("No. of children in room is not equal to no. of children in query."),!1;if(Number(u?.infant||0)>0&&T!==Number(u?.infant||0))return rt.error("No. of infants in room is not equal to no. of infants in query."),!1;if(Object.keys(u?.selectedHotels?.[S]||{})?.length===ho)return rt.error(`You can select a maximum of ${ho} hotels for a single city.`),!1;for(const[z,D]of t?.rooms?.entries()||[]){if(!D?.room?.trim())return rt.error(`Enter valid Room Type of Room ${z+1} `),!1;const H=t?.roomPaxInfo?.[D?.room?.trim()?.toLowerCase()],O=Number(H?.maxGuest||0),j=Number(H?.maxAdult||0),M=Number(H?.maxChild||0),I=Number(D?.AdultPax||0),F=Number(D?.ExtraAdultPax||0),V=Number(D?.ExtraBedChildPax||0),W=Number(D?.NoBedChildPax||0),U=I+F+V+W,P=I+F,Y=V+W;if(U>O)return rt.error(`More than ${O} travellers not allowed in room ${z+1}`),!1;if(P>j)return rt.error(`More than ${j} adults not allowed in room ${z+1}`),!1;if(Y>M)return rt.error(`More than ${M} child not allowed in room ${z+1}`),!1}const A=u?.hotelCities?.find(z=>z.uniqueId===S),R=Number(A?.noofnight||0),E=t?.rooms?.length,$=t?.rooms?.map(z=>{const D=t?.promotions?.find(ee=>ee.RoomTypeName===z.room&&Number(ee?.MealType)===Number(z?.meal_type||0)&&(ee?.IsMinRoom&&E>=Number(ee?.MinRoom||0)||!ee?.IsMinRoom)),H=Number(D?.PromotionType||0),O=parseFloat(D?.PromotionValue||0),j=Number(D?.promoId||0),M=[];t?.datesArray?.forEach(ee=>{const G=`costing_${z.room}_${z.meal_type}_${ee}`;let oe={...t?.newCostingObj?.[G]||{}};H===3&&j>0&&t?.newCostingObj?.[`${G}_${j}`]&&(oe=t?.newCostingObj?.[`${G}_${j}`]);let ye=parseFloat(oe?.[Number(z?.sharingTypeNum||0)]?.adultCost||0);D&&H===2?ye-=ye*O/100:D&&H===1&&(ye-=O);let me=parseFloat(oe?.[Number(z?.sharingTypeNum||0)]?.AdultExtraBed||0);D&&H===2?me-=me*O/100:D&&H===1&&(me-=O);let Se=parseFloat(oe?.[Number(z?.sharingTypeNum||0)]?.CostExtraBed||0);D&&H===2?Se-=Se*O/100:D&&H===1&&(Se-=O);let Be=parseFloat(oe?.[Number(z?.sharingTypeNum||0)]?.CostWithoutBed||0);D&&H===2?Be-=Be*O/100:D&&H===1&&(Be-=O);const ae=ye+Number(z?.ExtraAdultPax||0)*me+Number(z?.ExtraBedChildPax||0)*Se+Number(z?.NoBedChildPax||0)*Be,ge=parseFloat(oe?.MarkVal||0);let fe=0;Number(oe?.MarkType||0)===1?fe=ge*ae/100:fe=ge,M.push({adultCost:ye,adultExtraBedCost:me,childExtraBedCost:Se,childNoBedCost:Be,singleDayMarkUp:fe})});const I=Number(z?.AdultPax||0),F=Number(z?.ExtraAdultPax||0),V=Number(z?.ExtraBedChildPax||0),W=Number(z?.NoBedChildPax||0),U=M?.reduce((ee,G)=>ee+parseFloat(G?.adultCost||0),0),P=M?.reduce((ee,G)=>ee+parseFloat(G?.adultExtraBedCost||0),0),Y=M?.reduce((ee,G)=>ee+parseFloat(G?.childExtraBedCost||0),0),K=M?.reduce((ee,G)=>ee+parseFloat(G?.childNoBedCost||0),0),Q=M?.reduce((ee,G)=>ee+parseFloat(G?.singleDayMarkUp||0),0);return{AdultPax:I,ExtraAdultPax:F,ExtraBedChildPax:V,NoBedChildPax:W,InfantPax:Number(z?.InfantPax||0),sharingType:z?.sharingType?.trim(),sharingTypeNum:Number(z?.sharingTypeNum||0),roomType:Number(z?.roomType||0),room:z?.room?.trim(),mealPlan:z?.mealPlan,meal_type:Number(z?.meal_type||0),adultCost:U/R,AdultExtraBed:F>0?P/(R*F):0,CostExtraBed:V>0?Y/(R*V):0,CostWithoutBed:W>0?K/(R*W):0,roomMarkUp:Q,CostInfant:0}}),_=$?.reduce((z,D)=>z+R*(parseFloat(D?.adultCost||0)+parseFloat(D?.AdultExtraBed||0)*Number(D?.ExtraAdultPax||0)+parseFloat(D?.CostExtraBed||0)*Number(D?.ExtraBedChildPax||0)+parseFloat(D?.CostWithoutBed||0)*Number(D?.NoBedChildPax||0)),0),k=$?.reduce((z,D)=>z+parseFloat(D?.roomMarkUp||0),0),q={destination:A?.destination?.trim(),destinationName:A?.destinationName?.trim(),hidden_destination_id:Number(A?.hidden_destination_id||0),hidden_country_id:0,rooms:$,HotelMarkupType:2,totalCost:0,HotelMarkupTotal:k,HotelCostFinal:_+k,hotel_name:t?.Title?.trim(),hidden_selected_hotel_id:Number(t?.AccomSysId||0),starRating:Number(t?.starRating||0),similar_hotel:!0,noofnight:R,CheckIn:Ze(new Date(A?.CheckIn)),HotelCostCurrencyName:t?.currencyName?.trim(),HotelCostCurrency:Number(t?.currencyId||0),HotelCostSupplier:t?.SupplierName?.trim(),HotelCostSupplierId:Number(t?.SupplierSysId||0),HotelTax:0,HotelTaxTotal:0,HotelCostTotal:_,cityUniqueId:A?.uniqueId};f(!1),n(q)},b=(S,w,N,T,A)=>{a(gi({cityId:u.selectedCity,actionType:"updateRoom",hotelUniqueId:t.uniqueId,roomIdx:N,key:S,value:w,otherKey:T,otherValue:A}))},x=async()=>{const S=Number(t?.AccomSysId||0);g(!0);const w=await o(S);l("max-w-4xl"),i(()=>p.jsx(hht,{hotelData:w,accoAminitiesMask:t?.accoAminitiesMask?.trim()||""})),g(!1)};return p.jsx(p.Fragment,{children:p.jsxs("div",{className:"py-5 defaultBorder-b last:border-0",children:[p.jsxs("div",{className:"flex gap-5",children:[p.jsx("img",{src:t?.DetailImg?.trim()?t?.DetailImg?.trim()?.replace(/\\\//g,"/"):qD,alt:t?.Title?.trim()||"",className:"max-w-56 w-56 h-36 object-cover"}),p.jsxs("div",{className:"flex-1",children:[p.jsxs("div",{className:"flex justify-between gap-5 mb-1",children:[p.jsxs("div",{className:"font-semibold text-lg",children:[t?.Title?.trim()||"","  ",Array.from({length:Number(t?.starRating||0)})?.map((S,w)=>p.jsx("span",{className:"text-xs text-yellow-500",children:p.jsx(Fe,{icon:Mp})},w)),Array.from({length:5-Number(t?.starRating||0)})?.map((S,w)=>p.jsx("span",{className:"text-xs",children:p.jsx(Fe,{icon:Mp})},w))]}),p.jsxs("div",{children:["Starting From: ",p.jsxs("span",{className:"font-semibold",children:[u?.baseCurrency?.trim()||""," ",Et(t?.minPerNightCost||0)]})," /night"]})]}),(t?.Area?.trim()||t?.Address?.trim())&&p.jsxs("div",{className:"text-xs mb-2",children:[p.jsx("span",{className:"font-semibold",children:"Address:"})," ",p.jsx("span",{className:"text-gray-600",children:[t?.Address?.trim(),t?.Area?.trim()?`(${t?.Area?.trim()})`:""].filter(Boolean)?.join(", ")||""})]}),t?.accoAminitiesArray?.length>0&&p.jsxs("div",{className:"text-xs mb-2",children:[p.jsx("span",{className:"font-semibold",children:"Amenities:"})," ",p.jsx("span",{className:"text-gray-600",children:t?.accoAminitiesArray?.join(", ")})]}),p.jsx("div",{className:"font-semibold text-xs mb-2",children:p.jsx("button",{type:"button",onClick:x,disabled:m,className:"highlightTextColor disabled:text-gray-700",children:m?"Loading...":"View Details"})}),p.jsx("div",{className:"flex justify-end items-center text-sm gap-2",children:(()=>{const S=Object.values(u?.selectedHotels?.[u?.selectedCity]||{})?.findIndex(w=>Number(w.hidden_selected_hotel_id||0)===Number(t.AccomSysId||0));return S>=0?p.jsxs(p.Fragment,{children:[p.jsx("button",{type:"button",onClick:()=>a(kj({selectedCity:u?.selectedCity,hotelIdx:S+1})),className:"text-rose-600!",children:"Remove"}),p.jsx("button",{type:"button",onClick:()=>rt.success("Hotel already selected."),className:"defaultBorder px-3 py-1 bg-green-600 text-white!",children:"Selected"})]}):p.jsx("button",{type:"button",onClick:()=>f(w=>!w),className:"defaultBorder px-3 py-1 bg-gray-200 hover:bg-gray-400 hover:text-white!",children:d?"Hide Rooms":"Show Rooms"})})()})]})]}),d&&p.jsxs("div",{className:"mt-3",children:[p.jsx("div",{className:"overflow-x-auto w-full mb-2",children:p.jsxs("table",{className:"w-full text-left defaultBorder text-sm",children:[p.jsx("thead",{className:"text-xs text-gray-700 uppercase bg-stone-100",children:p.jsxs("tr",{className:"defaultBorder-b",children:[p.jsx("th",{className:"p-2!"}),p.jsx("th",{className:"p-2!",children:"Room Type"}),p.jsx("th",{className:"p-2!",children:"Meal Plan"}),Number(u?.adults||0)>0&&p.jsx("th",{className:"p-2!",children:"Adults"}),Number(u?.adults||0)>2&&p.jsx("th",{className:"p-2!",children:"Adults Extra"}),Number(u?.child||0)>0&&p.jsxs(p.Fragment,{children:[p.jsx("th",{className:"p-2!",children:"Child (7 - 12 Yrs)"}),p.jsx("th",{className:"p-2!",children:"Child (2 - 6 Yrs)"})]}),Number(u?.infant||0)>0&&p.jsx("th",{className:"p-2!",children:"Infant (Below 2 Yrs)"}),p.jsx("th",{className:"p-2!",children:"Cost"}),p.jsx("th",{className:"p-2!",children:"Action"})]})}),p.jsx("tbody",{children:t?.rooms?.map((S,w)=>p.jsxs(B.Fragment,{children:[p.jsxs("tr",{className:"defaultBorder-b",children:[p.jsxs("td",{className:"p-2! defaultBorder-r font-semibold",children:["Room ",w+1]}),p.jsx("td",{className:"p-1! defaultBorder-r max-w-48",children:p.jsx(We,{type:"select",name:"room",value:S?.room||"",onChange:N=>b(N.target.name,N.target.value,w),inputClass:"bg-yellow-50",optionList:[...Object.values(t?.availableRoomTypes)?.map(N=>({value:N?.name?.trim(),label:N?.name?.trim()}))||[]]})}),p.jsx("td",{className:"p-1! defaultBorder-r max-w-48",children:p.jsx(We,{type:"select",name:"mealPlan",value:S?.mealPlan||"",onChange:N=>b(N.target.name,N.target.value,w,"meal_type",_ot[N.target.value]),inputClass:"bg-yellow-50",optionList:[...t?.availableRoomTypes?.[S?.room||""]?.mealPLans?.map(N=>({label:Tot[N?.short],value:N?.short}))||[]]})}),Number(u?.adults||0)>0&&p.jsx("td",{className:"p-1! defaultBorder-r",children:p.jsx(We,{type:"select",name:"AdultPax",value:S?.AdultPax||"",onChange:N=>b(N.target.name,N.target.value,w),inputClass:"bg-yellow-50",optionList:Array.from({length:Math.min(6,Number(u?.adults||0))})?.map((N,T)=>({label:T+1,value:T+1}))})}),Number(u?.adults||0)>2&&p.jsx("td",{className:"p-1! defaultBorder-r",children:p.jsx(We,{type:"select",name:"ExtraAdultPax",value:S?.ExtraAdultPax||"",onChange:N=>b(N.target.name,N.target.value,w),inputClass:"bg-yellow-50",optionList:[{label:"-- Select --",value:""},{label:1,value:1}]})}),Number(u?.child||0)>0&&p.jsxs(p.Fragment,{children:[p.jsx("td",{className:"p-1! defaultBorder-r",children:p.jsx(We,{type:"select",name:"ExtraBedChildPax",value:S?.ExtraBedChildPax||"",onChange:N=>b(N.target.name,N.target.value,w),inputClass:"bg-yellow-50",optionList:[{label:"-- Select --",value:""},...Array.from({length:Number(u?.child||0)})?.map((N,T)=>({label:T+1,value:T+1}))||[]]})}),p.jsx("td",{className:"p-1! defaultBorder-r",children:p.jsx(We,{type:"select",name:"NoBedChildPax",value:S?.NoBedChildPax||"",onChange:N=>b(N.target.name,N.target.value,w),inputClass:"bg-yellow-50",optionList:[{label:"-- Select --",value:""},...Array.from({length:Number(u?.child||0)})?.map((N,T)=>({label:T+1,value:T+1}))||[]]})})]}),Number(u?.infant||0)>0&&p.jsx("td",{className:"p-1! defaultBorder-r",children:p.jsx(We,{type:"select",name:"InfantPax",value:S?.InfantPax||"",onChange:N=>b(N.target.name,N.target.value,w),inputClass:"bg-yellow-50",optionList:[{label:"-- Select --",value:""},...Array.from({length:Number(u?.infant||0)})?.map((N,T)=>({label:T+1,value:T+1}))||[]]})}),p.jsx("td",{className:"p-1! defaultBorder-r text-center",children:t?.rooms?.length>1&&p.jsx("button",{type:"button",onClick:()=>a(gi({cityId:u?.selectedCity,hotelUniqueId:t.uniqueId,roomIdx:w,actionType:"deleteRoom"})),className:"w-6 h-6 text-sm bg-rose-100 rounded text-rose-600! cursor-pointer",children:p.jsx(Fe,{icon:hi})})})]}),(()=>{const N=t?.roomPaxInfo?.[S?.room?.trim()?.toLowerCase()],T=Number(N?.minGuest||0),A=Number(N?.maxGuest||0),R=Number(N?.maxAdult||0),E=Number(N?.maxChild||0),$=T>0?`Min Guest: ${T}`:void 0,_=A>0?`Max Guest: ${A}`:void 0,k=R>0?`Max Adults: ${R}`:void 0,q=E>0?`Max Child: ${E}`:void 0,z=[$,_,k,q].filter(Boolean)?.join(" || ")||void 0;return z?p.jsx("tr",{className:"defaultBorder-b",children:p.jsx("td",{colSpan:9,className:"p-2! defaultBorder",children:z})}):""})()]},w))})]})}),p.jsxs("div",{className:"text-sm flex justify-between items-end gap-2",children:[p.jsx("button",{type:"button",onClick:()=>a(gi({cityId:u?.selectedCity,hotelUniqueId:t.uniqueId,actionType:"newRoom"})),className:"highlightTextColor cursor-pointer",children:"Add Room"}),p.jsx("button",{type:"button",onClick:y,className:"px-3 py-1 bg-(--highlight-color) text-white cursor-pointer hover:bg-black",children:"Select Rooms"})]})]})]})})}function ght(e){const{label:t,options:n,selected:a,onChange:o,valueType:i}=e,[l,u]=B.useState(!1),d=B.useRef(null),f=()=>u(g=>!g);B.useEffect(()=>{const g=y=>{d.current?.contains(y.target)||u(!1)};return document.addEventListener("mousedown",g),()=>document.removeEventListener("mousedown",g)},[]);const m=g=>{let y;a.includes(g)?y=a.filter(b=>b!==g):y=[...a,g],o(y)};return p.jsxs("div",{className:"text-sm relative",ref:d,children:[p.jsxs("button",{type:"button",onClick:f,className:"flex gap-4 justify-between items-center cursor-pointer px-2 py-1 bg-white defaultBorder focus:outline-none w-full",children:[p.jsx("div",{children:t}),p.jsx(Fe,{icon:Ss,className:"text-gray-500"})]}),l&&p.jsx("div",{className:"py-2 absolute top-full right-0 w-56 defaultBorder shadow rounded bg-white z-10",children:n.map((g,y)=>{const b=i==="number"?Number(g?.value||0):g?.value||"";return p.jsxs("label",{htmlFor:`${t}_${b}`,className:"px-2 py-1 hover:bg-sky-50 w-full flex! gap-2 items-center text-sm font-normal!",children:[p.jsx("input",{type:"checkbox",checked:a?.includes(b)||!1,onChange:()=>m(b),id:`${t}_${b}`,className:"m-0!"}),p.jsx("span",{children:g?.label})]},y)})})]})}const Hj=Wh({name:"exchangeRates",initialState:{},reducers:{updateExchangeRate:(e,t)=>{const n=t.payload;Object.entries(n).forEach(([a,o])=>{e[a]=o})}}}),{updateExchangeRate:yht}=Hj.actions,bht=Hj.reducer;function G1(){const e=on(),t=lt(a=>a.exchangeRates);return B.useCallback(async(a,o)=>{const i=a?.trim()||"",l=o?.trim()||"";if(!i||!l||i===l)return 1;const u=`${i}_${l}`;if(t?.[u])return t[u];try{const d={FromCurrency:i,ToCurrency:l},f=`${sr}gtxwebservices/coupon/get-currecy-exchange-rate-with-markup`,{data:m}=await Tt.post(f,JSON.stringify(d),{headers:{SecurityKey:"86D10927-FCA4-47A4-9BB0-F899575E711A"}});if(m.status){const g=parseFloat(m?.data||1);return e(yht({[u]:g})),g}}catch(d){return console.error("Error fetching conversion rate:",d),1}return 1},[t,e])}function Y1(e){const{nextStep:t}=e,{closeModal:n}=Fn(),a=on(),o=lt(f=>f.buildYourOwnData),[i,l]=B.useState({});B.useEffect(()=>{const f={};Object.keys(o?.selectedHotels||{})?.forEach(m=>{const g=o?.selectedHotels?.[m]||{},y={};let b=1;Array.from({length:ho})?.forEach((x,S)=>{let w=Number(g?.[S+1]?.hidden_selected_hotel_id||0);w<=0&&(w=Number(g?.[b]?.hidden_selected_hotel_id||0),b=b%Object.keys(g)?.length+1),y[`option_${S+1}`]=w}),b=1,f[m]={...y}}),l({...f})},[o?.selectedHotels]);const u=(f,m,g)=>{l(y=>{const b={...y};return g?b[g][f]=m:b[f]=m,b})},d=()=>{if(Array.from({length:ho})?.every((m,g)=>!i?.[`isSelected_option_${g+1}`]))return rt.error("Select atleast one option."),!1;const f={};o?.hotelCities?.filter(m=>!m?.hotelSelf)?.forEach(m=>{const g=i?.[m.uniqueId]||{},y={};let b=1;Object.keys(g)?.forEach(x=>{const[,S]=x.split("_");if(i?.[`isSelected_option_${S}`]||!1){const N=Number(g?.[x]||0),T=Object.values(o?.selectedHotels?.[m.uniqueId])?.find(A=>Number(A?.hidden_selected_hotel_id||0)===N);y[b]=T,b+=1}}),f[m.uniqueId]={...y}}),a(Lt({selectedHotels:f,currentStep:t})),n()};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"py-3 px-4 flex justify-between items-center gap-3 bg-black text-white",children:[p.jsx("div",{className:"text-xl font-semibold",children:"Choose Your Options"}),p.jsx("button",{type:"button",onClick:n,children:p.jsx(Fe,{icon:Or})})]}),p.jsx("div",{className:"p-4",children:p.jsx("div",{className:"overflow-x-auto w-full",children:p.jsxs("table",{className:"w-full text-sm text-left defaultBorder",children:[p.jsx("thead",{className:"text-gray-700",children:p.jsxs("tr",{className:"text-xs bg-stone-100 defaultBorder-b",children:[p.jsx("th",{className:"p-2!",children:"Place"}),Array.from({length:ho})?.map((f,m)=>p.jsxs("th",{className:"p-2!",children:["Option ",m+1]},m))]})}),p.jsxs("tbody",{children:[o?.hotelCities?.filter(f=>!f?.hotelSelf)?.map(f=>{const m=f?.CheckIn?dn(f.CheckIn):"",g=f?.CheckOut?dn(f.CheckOut):"";return p.jsxs("tr",{className:"defaultBorder-b",children:[p.jsxs("td",{className:"p-2! defaultBorder bg-stone-100",children:[p.jsxs("div",{children:[f?.noofnight||"","N ",f?.destinationName?.trim()||""]}),p.jsx("div",{className:"text-xs",children:[m,g].filter(Boolean)?.join(" - ")})]}),Array.from({length:ho})?.map((y,b)=>p.jsx("td",{className:"p-1! defaultBorder",children:p.jsx(We,{type:"select",name:`option_${b+1}`,value:i?.[f.uniqueId]?.[`option_${b+1}`]||"",onChange:x=>u(x.target.name,x.target.value,f.uniqueId),optionList:[...Object.values(o?.selectedHotels?.[f.uniqueId])?.map(x=>({value:Number(x?.hidden_selected_hotel_id||0),label:x?.hotel_name?.trim()||""}))||[]],inputClass:"bg-yellow-50"})},b))]},f.uniqueId)}),p.jsxs("tr",{className:"defaultBorder-b",children:[p.jsx("td",{className:"p-1! defaultBorder"}),Array.from({length:ho})?.map((f,m)=>p.jsx("td",{className:"p-1! defaultBorder",children:p.jsx("button",{type:"button",onClick:()=>u(`isSelected_option_${m+1}`,!i?.[`isSelected_option_${m+1}`]),className:`px-3 py-1 border highlightBorder w-full ${i?.[`isSelected_option_${m+1}`]?"bg-(--highlight-color) text-white":""}`,children:i?.[`isSelected_option_${m+1}`]?"Selected":"Select"})},m))]})]})]})})}),p.jsx("div",{className:"bg-gray-50 px-4 py-3 flex items-center gap-3 justify-end text-sm",children:p.jsx("button",{type:"submit",onClick:d,disabled:Array.from({length:ho})?.every((f,m)=>!i?.[`isSelected_option_${m+1}`]),className:"bg-(--highlight-color) border border-(--highlight-color) text-white px-4 py-1 disabled:opacity-30",children:"Save & Continue"})})]})}function vht(){const e=on(),t=G1(),{showModal:n,changeModalWidth:a}=Fn(),o=lt(N=>N.buildYourOwnData),i=lt(N=>N.global),[l,u]=B.useState({}),[d,f]=B.useState(!1);B.useEffect(()=>{let N=o?.hotelCities?.filter(T=>!T?.hotelSelf)?.[0]?.uniqueId;N||(N=o?.hotelCities?.[0]?.uniqueId),e(Lt({selectedCity:N}))},[]),B.useEffect(()=>{(async()=>{const T=new Map,A=Number(o?.adults||0),R=Number(o?.child||0),E=Number(o?.infant||0);f(!0);try{for(const $ of o?.hotelCities?.filter(_=>!_?.hotelSelf)||[])if((o?.inventoryHotels?.[$.uniqueId]?.length||0)>0){const _=o?.inventoryHotels?.[$.uniqueId]||[];e(gi({cityId:$.uniqueId,hotelList:_,actionType:"newHotels"}))}else{const _=Ze(new Date($.CheckIn)),k=Ze(new Date($.CheckOut)),q={FromDate:_,ToDate:k,CityId:parseInt($?.hidden_destination_id||0)};try{const{data:z}=await Tt.post(`${sr}webservice/inventory-data/hotel`,JSON.stringify(q),{headers:{SecurityKey:i.securityKey}});if(z?.status){const D=[];for(const O of z?.data||[])if(O?.HotelRate?.length>0){const j=Number(O?.CurrencyType||0),M=i?.currencyMap?.[j]||"",I=`${M}_${o.baseCurrency}`;let F=T?.get(I)||1;!T.has(I)&&j>0&&j!==parseInt(o?.baseCurrencyId||0)&&(F=await t(M,o.baseCurrency),T.set(I,F)),D.push({...O,conversionRate:F})}const{hotelList:H}=Ppt(D,_,k,i?.currencyMap,Number($?.noofnight||0),A,R,E);e(gi({cityId:$.uniqueId,hotelList:H,actionType:"newHotels"}))}}catch(z){console.error("Error fetching hotel data:",$.hidden_destination_id,z)}}}finally{f(!1)}})()},[e,o?.adults,o?.child,o?.hotelCities,o?.infant,o.baseCurrency,o?.baseCurrencyId,i.securityKey,i?.currencyMap]);const m=[{value:1,label:"1 Star"},{value:2,label:"2 Star"},{value:3,label:"3 Star"},{value:4,label:"4 Star"},{value:5,label:"5 Star"}],g=N=>{const T=l?.sortBy||"";N==="star"?y("sortBy",T==="starASC"?"starDES":"starASC"):N==="price"?y("sortBy",T==="priceASC"?"priceDES":"priceASC"):N==="name"&&y("sortBy",T==="nameASC"?"nameDES":"nameASC")},y=(N,T,A,R)=>{const E=o?.selectedCity;let $={...l};$[N]=T,u({...$});const k=(o?.inventoryHotels?.[E]||[])?.map(z=>{let D=!0;const H=($?.hotelOrLocation||"")?.toLowerCase()?.trim();if(H&&H!==""){const j=`${z?.Title?.trim()} (${z?.AccomSysId})`,M=[z?.Area?.trim(),z?.CityName?.trim()].filter(Boolean)?.join(", ")||"";D=D&&(j.toLowerCase().includes(H)||M.toLowerCase().includes(H))}const O=$?.starRating||[];return O?.length>0&&!O?.includes("")&&(D=D&&O?.includes(Number(z?.starRating||0))),{...z,isFiltered:D}}),q=$?.sortBy?.trim()||"";q==="starASC"&&k.sort((z,D)=>Number(z.starRating||0)-Number(D.starRating||0)),q==="starDES"&&k.sort((z,D)=>Number(D.starRating||0)-Number(z.starRating||0)),q==="priceASC"&&k.sort((z,D)=>Number(z.minPerNightCost||0)-Number(D.minPerNightCost||0)),q==="priceDES"&&k.sort((z,D)=>Number(D.minPerNightCost||0)-Number(z.minPerNightCost||0)),q==="nameASC"&&k.sort((z,D)=>(z.Title||"").localeCompare(D.Title||"",void 0,{sensitivity:"base"})),q==="nameDES"&&k.sort((z,D)=>(D.Title||"").localeCompare(z.Title||"",void 0,{sensitivity:"base"})),e(gi({cityId:E,hotelList:k,actionType:"newHotels"}))},b=N=>{const T=o?.selectedCity,A=o?.selectedHotels?.[T]||{},R={...o?.selectedHotels||{},[T]:{...A||{},[Object.values(A)?.length+1]:{...N}}};e(Lt({selectedHotels:R}))},x=N=>{e(Lt({selectedCity:N})),u({})},S=(N,T,A)=>{e(Ipt({cityUniqueId:N,key:T,value:A}));const R=Number(o?.currentStep||0);let E=R+1;if(R===2&&!o?.IsTransferSelected&&!o?.IsSightseeingSelected&&!o?.IsMealsSelected&&!o?.IsGuideSelected&&(E=4),A){const $=o?.hotelCities?.filter(_=>!_?.hotelSelf&&_.uniqueId!==N);if($?.length>0){const _={};for(const k of $){if(Object.values(o?.selectedHotels?.[k.uniqueId]||{})?.length===0){e(Lt({selectedCity:k.uniqueId}));return}_[k.uniqueId]={...o?.selectedHotels?.[k.uniqueId]||{}}}if(Object.values(_)?.every(k=>Object.values(k)?.length===1)){e(Lt({currentStep:E}));return}else{a("max-w-5xl"),n(()=>p.jsx(Y1,{nextStep:E}));return}}else e(Lt({currentStep:E}))}},w=()=>{e(gi({cityId:o?.selectedCity,actionType:"resetFilter"})),u({})};return p.jsx(p.Fragment,{children:p.jsx("div",{children:o?.hotelCities?.length>0&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"flex gap-2 text-sm mb-3",children:o?.hotelCities?.map((N,T)=>p.jsxs("button",{type:"button",onClick:()=>x(N.uniqueId),className:`px-3 py-1 defaultBorder highlightBorder ${N.uniqueId===o?.selectedCity?"bg-(--highlight-color) text-white":"bg-white highlightTextColor"}`,children:[N?.noofnight||"","N ",N?.destinationName?.trim()||""]},T))}),(()=>{const N=o?.hotelCities?.find(R=>R.uniqueId===o?.selectedCity);if(!N)return"";const T=N?.CheckIn?dn(N.CheckIn):"",A=N?.CheckOut?dn(N.CheckOut):"";return p.jsxs("div",{className:"defaultBorder",children:[p.jsxs("div",{className:"bg-zinc-900 text-white px-3 py-2 flex justify-between gap-3 items-end",children:[p.jsxs("div",{children:[p.jsxs("span",{className:"text-xl leading-none",children:[N?.noofnight||"","N ",N?.destinationName?.trim()||""]})," ",p.jsxs("span",{className:"text-xs leading-none",children:[[T,A].filter(Boolean)?.join(" - "),"  (",(()=>{const R=Number(o?.adults||0),E=Number(o?.child||0),$=Number(o?.infant||0),_=R>0?`${R} Adults`:void 0,k=E>0?`${E} Child`:void 0,q=$>0?`${$} Infant`:void 0;return[_,k,q].filter(Boolean)?.join(", ")})(),")"]})]}),p.jsxs("label",{htmlFor:N.uniqueId,className:"flex! bg-gray-200",children:[p.jsx("div",{className:"flex items-center justify-center px-2 border-r border-white",children:p.jsx("input",{type:"checkbox",name:"hotelSelf",id:N.uniqueId,className:"w-3 h-3 m-0!",checked:N?.hotelSelf||!1,onChange:R=>S(N?.uniqueId,R.target.name,!N?.hotelSelf)})}),p.jsx("div",{className:"leading-none text-xs! p-2 text-black font-normal",children:"Skip Hotel"})]})]}),!N?.hotelSelf&&p.jsxs("div",{className:"p-3 flex justify-between items-center gap-4 bg-gray-200 defaultBorder-b",children:[p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"font-semibold",children:"Sort By:"}),p.jsxs("button",{type:"button",onClick:()=>g("name"),className:"font-semibold flex gap-1 items-center cursor-pointer hoverhighlightTextColor",children:["Name",p.jsx("span",{className:`text-sm ${["nameASC","nameDES"].includes(l?.sortBy)?"highlightTextColor":""}`,children:p.jsx(Fe,{icon:l?.sortBy==="nameDES"?Qy:Ky})})]}),p.jsxs("button",{type:"button",onClick:()=>g("star"),className:"font-semibold flex gap-1 items-center cursor-pointer hoverhighlightTextColor",children:["Star",p.jsx("span",{className:`text-sm ${["starASC","starDES"].includes(l?.sortBy)?"highlightTextColor":""}`,children:p.jsx(Fe,{icon:l?.sortBy==="starDES"?Qy:Ky})})]}),p.jsxs("button",{type:"button",onClick:()=>g("price"),className:"font-semibold flex gap-1 items-center cursor-pointer hoverhighlightTextColor",children:["Price",p.jsx("span",{className:`text-sm ${["priceASC","priceDES"].includes(l?.sortBy)?"highlightTextColor":""}`,children:p.jsx(Fe,{icon:l?.sortBy==="priceDES"?Qy:Ky})})]})]}),p.jsxs("div",{className:"flex items-center gap-3",children:[p.jsx("div",{className:"font-semibold",children:"Filter:"}),p.jsx(We,{type:"text",name:"hotelOrLocation",value:l?.hotelOrLocation||"",onChange:R=>y(R.target.name,R.target.value),placeholder:"Search by Hotel / Location",inputClass:"bg-white",divClass:"w-60 text-sm"}),p.jsx(ght,{label:"Star Rating",options:m,selected:l?.starRating||[],onChange:R=>y("starRating",R),valueType:"number"}),p.jsx("div",{className:"text-sm",children:p.jsxs("button",{type:"button",onClick:w,className:"bg-white defaultBorder px-2 py-1 focus:outline-none flex gap-2 items-center",children:["Reset ",p.jsx("span",{className:"text-xs",children:p.jsx(Fe,{icon:Qv,className:"text-gray-500"})})]})})]})]}),N?.hotelSelf?p.jsx("div",{className:"px-5 py-3 bg-white font-semibold",children:"City Hotels are skipped."}):o?.inventoryHotels?.[o?.selectedCity]?.filter(R=>R?.isFiltered)?.length>0?p.jsx("div",{className:"px-5 bg-white",children:o?.inventoryHotels?.[o?.selectedCity]?.filter(R=>R?.isFiltered)?.map((R,E)=>p.jsx(mht,{hotelItem:R,handleSelectHotel:b},`${E}-${R.AccomSysId}`))}):p.jsx("div",{className:"px-5 py-3 bg-white font-semibold",children:d?"Loading...":"No Hotels Found."})]})})()]})})})}function xht(){const{closeModal:e}=Fn(),t=lt(x=>x.buildYourOwnData),[n,a]=B.useState(0),o=Number(t?.douTriShareAdults||0),i=Number(t?.singleShareAdults||0),l=Number(t?.quadShareAdults||0),u=Number(t?.quintShareAdults||0),d=Number(t?.hexaShareAdults||0),f=Number(t?.totalExtraBedAdults||0),m=Number(t?.totalWithBedChild||0),g=Number(t?.totalNoBedChild||0),y=Number(t?.totalInfant||0),b=o+i+l+u+d+f+m+g+y;return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"py-3 px-4 flex justify-between items-center gap-3 bg-black text-white",children:[p.jsx("div",{className:"text-xl font-semibold",children:"Per Person Pricing"}),p.jsx("button",{type:"button",onClick:e,children:p.jsx(Fe,{icon:Or})})]}),p.jsxs("div",{className:"p-3",children:[p.jsx("div",{className:"flex gap-2 text-sm mb-3 p-0!",children:t?.finalCosting?.map((x,S)=>p.jsxs("button",{type:"button",onClick:()=>a(S),className:`px-3 py-1 border-2 border-(--highlight-color)! ${n===S?"bg-(--highlight-color) text-white":"text-(--highlight-color)!"}`,children:["Option ",S+1]},S))}),(()=>{const x=t?.finalCosting?.[n]||{},S=Number(x?.totalMarkup||0),w=Number(x?.taxAmount||0),N=Number(x?.globalMarkUp||0),T=Number(x?.extraMarkUp||0),A=(S+w+N+T)/b,R=Number(x?.perAdultCost||0)+A,E=Number(x?.SingleOccupancy||0)+A,$=Number(x?.CostQuad||0)+A,_=Number(x?.CostQuint||0)+A,k=Number(x?.CostHexa||0)+A,q=Number(x?.perAdultEBCost||0)+A,z=Number(x?.perChildWBCost||0)+A,D=Number(x?.perChildNBCost||0)+A,H=Number(x?.perInfantCost||0)+A,O=R*o+E*i+$*l+_*u+k*d+q*f+z*m+D*g+H*y;return p.jsx("div",{className:"overflow-x-auto w-full",children:p.jsxs("table",{className:"text-sm defaultBorder w-full",children:[p.jsx("thead",{className:"text-gray-700 uppercase",children:p.jsxs("tr",{className:"bg-stone-100 defaultBorder text-xs",children:[p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Pax Type"}),p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"No. of Pax"}),p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Cost P.P."}),p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Total"})]})}),p.jsxs("tbody",{children:[o>0&&p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:"Adult (Twin Sharing)"}),p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:o}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(R)]}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(R*o)]})]}),i>0&&p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:"Adult (Single Sharing)"}),p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:i}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(E)]}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(E*i)]})]}),l>0&&p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:"Adult (Quad Sharing)"}),p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:l}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et($)]}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et($*l)]})]}),u>0&&p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:"Adult (Quint Sharing)"}),p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:u}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(_)]}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(_*u)]})]}),d>0&&p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:"Adult (Hexa Sharing)"}),p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:d}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(k)]}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(k*d)]})]}),f>0&&p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:"Adult (Extra Bed)"}),p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:f}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(q)]}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(q*f)]})]}),m>0&&p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:"Child (With Bed)"}),p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:m}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(z)]}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(z*m)]})]}),g>0&&p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:"Child (Without Bed)"}),p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:g}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(D)]}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(D*g)]})]}),y>0&&p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:"Infant"}),p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:y}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(H)]}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(H*y)]})]}),p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:"Total Cost (Incl. GST)"}),p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap",children:b}),p.jsx("td",{className:"defaultBorder p-2! whitespace-nowrap"}),p.jsxs("td",{className:"defaultBorder p-2! whitespace-nowrap",children:[t?.baseCurrency||""," ",Et(O)]})]})]})]})})})()]})]})}function L$(e){const{redirectUrl:t}=e,n=lt(l=>l.buildYourOwnData),{closeModal:a}=Fn(),o=()=>{const l=[n?.startCity?.trim(),...n?.hotelCities?.map(u=>u?.destination?.trim())||[],n?.endCity?.trim()].filter(Boolean)?.join(" - ")||"";return`*Dear Sir/Madam,*
           
This is further to your travel query for ${l}. Please find below details for your trip to ${l}.

${n?.HotelOptions?.map((u,d)=>`*🏨 OPTION ${d+1} - ${n?.baseCurrency||""} ${Et(n?.finalCosting?.[d]?.salesPrice||0)}*
${u?.cities?.filter(f=>Number(f?.hidden_selected_hotel_id||0)>0)?.map(f=>`     *${Tr(f?.hotel_name?.trim()||"")} | ${f?.destinationName?.trim()} (${f?.noofnight||""}N)*
    ${f?.CheckIn?` ${dn(new Date(f?.CheckIn))} - ${dn(gn(new Date(f?.CheckIn),Number(f?.noofnight||1)))}`:""}
${f?.rooms?.map((m,g)=>{const y=Number(m?.AdultPax||0)+Number(m?.ExtraAdultPax||0),b=Number(m?.ExtraBedChildPax||0)+Number(m?.NoBedChildPax||0),x=Number(m?.InfantPax||0),S=[y>0?`${y} Adults`:null,b>0?`${b} Child`:null,x>0?`${x} Infant`:null].filter(Boolean).join(", ");return`     Room ${g+1}: ${m?.room} | ${m?.mealPlan} | ${S}`}).join(`
`)}`).join(`

`)}`).join(`

`)}


${n?.dayWiseItinerary?.map((u,d)=>{const f=[];return f.push(`*Day ${d+1}${u?.dayDate?` (${dn(u.dayDate)})`:""} - ${u?.dayWiseTitleToShow?.trim()||u.Cities.trim()||""}*`),u?.transfers?.length>0&&f.push(`*🚗 Transfers*
`+u.transfers.map(m=>`- ${Kr?.[m?.categoryTransport||""]||""}: ${m?.VehicleName?.trim()||""}${m?.capacityTransport?` (${m.capacityTransport} Seats)`:""}${m?.directNoOfCar?` X ${m.directNoOfCar}`:""}`).join(`
`)),(u?.sightseeing?.length>0||u?.dayWisePrivateSightseeing?.length>0)&&f.push(`*🎯 Sightseeing*
`+[...(u?.sightseeing||[]).map(m=>`- ${Zr(m?.sightseeing?.trim()||"")} (${Fl?.[m?.sightseeingType||""]||""})`),...(u?.dayWisePrivateSightseeing||[]).map(m=>`- ${Zr(m?.title?.trim()||"")} (PVT)`)].join(`
`)),u?.meals?.length>0&&f.push(`*🍽️ Meals*
`+u.meals.map(m=>`- ${m?.mealsCategoryDW?.trim()||""}${m?.ServiceTitle?.trim()?` (${m.ServiceTitle.trim()})`:""}`).join(`
`)),u?.guides?.length>0&&f.push(`*👨‍✈️ Guides*
`+u.guides.map(m=>`- ${m?.guideName?.trim()||""}`).join(`
`)),f.join(`
`)}).join(`

`)}


Regards,
${n?.agencyData?.AgencyName?.trim()&&`${n?.agencyData?.AgencyName?.trim()}`}
${n?.agencyData?.FirstName?.trim()&&`${[n?.agencyData?.FirstName?.trim(),n?.agencyData?.LastName?.trim()].filter(Boolean)?.join(" ")||""}`}
${n?.agencyData?.ContactNo1?.trim()&&`${[n?.agencyData?.CountryCode?.trim(),n?.agencyData?.ContactNo1?.trim()].filter(Boolean)?.join(" ")||""}`}
`.trim()},i=async()=>{const l=o();try{await navigator.clipboard.writeText(l),rt.success("Copied to clipboard.")}catch(u){console.error("Failed to copy message:",u),rt.error("Failed to copy.")}};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"py-3 px-4 flex justify-between items-center gap-3 bg-black text-white",children:[p.jsx("div",{className:"text-xl font-semibold",children:"Share to WhatsApp"}),p.jsx("button",{type:"button",onClick:a,children:p.jsx(Fe,{icon:Or})})]}),p.jsxs("div",{className:"p-4",children:[(()=>{const l=[n?.startCity?.trim(),...n?.hotelCities?.map(u=>u?.destination?.trim())||[],n?.endCity?.trim()].filter(Boolean)?.join(" - ")||"";return p.jsxs("div",{className:"mb-3",children:[p.jsx("div",{className:"font-semibold mb-1",children:"Dear Sir/Madam, "}),p.jsxs("div",{children:["This is further to your travel query for ",l,". Please find below details for your trip to ",l,"."]})]})})(),n?.HotelOptions?.map((l,u)=>p.jsxs("div",{className:"text-sm mb-3",children:[p.jsxs("div",{className:"font-semibold mb-1",children:["🏨 OPTION ",u+1," - ",n?.baseCurrency||""," ",Et(n?.finalCosting?.[u]?.salesPrice||0)]}),l?.cities?.map((d,f)=>Number(d?.hidden_selected_hotel_id||0)>0&&p.jsxs("div",{className:"mb-2 ps-3",children:[p.jsxs("div",{className:"font-semibold",children:[Tr(d?.hotel_name?.trim()||"")," | ",d?.destinationName?.trim()," (",d?.noofnight||"","N)"]}),d?.CheckIn&&p.jsxs("div",{children:[dn(new Date(d?.CheckIn))," - ",dn(gn(new Date(d?.CheckIn),Number(d?.noofnight||1)))]}),d?.rooms?.map((m,g)=>p.jsxs("div",{children:["Room ",g+1,": ",m?.room," | ",m?.mealPlan," | ",(()=>{const y=Number(m?.AdultPax||0)+Number(m?.ExtraAdultPax||0),b=Number(m?.ExtraBedChildPax||0)+Number(m?.NoBedChildPax||0),x=Number(m?.InfantPax||0),S=y>0?`${y} Adults`:void 0,w=b>0?`${b} Child`:void 0,N=x>0?`${x} Infant`:void 0;return[S,w,N].filter(Boolean)?.join(", ")})()]},g))]},f))]},u)),n?.dayWiseItinerary?.map((l,u)=>p.jsxs("div",{className:"text-sm mb-3",children:[p.jsxs("div",{className:"font-semibold mb-1",children:["Day ",u+1," ",l?.dayDate?`(${dn(l.dayDate)})`:""," - ",l?.dayWiseTitleToShow?.trim()||l?.Cities?.trim()||""]}),p.jsxs("div",{children:[l?.transfers?.length>0&&p.jsxs("div",{className:"mb-2",children:[p.jsx("div",{className:"font-semibold",children:"🚗 Transfers"}),p.jsx("div",{className:"ps-3",children:l?.transfers?.map((d,f)=>p.jsxs("div",{children:["- ",Kr?.[d?.categoryTransport||""]||"",": ",d?.VehicleName?.trim()||"",d?.capacityTransport?`(${d?.capacityTransport} Seats)`:""," ",d?.directNoOfCar?`X ${d?.directNoOfCar}`:""]},f))})]}),(l?.sightseeing?.length>0||l?.dayWisePrivateSightseeing?.length>0)&&p.jsxs("div",{className:"mb-2",children:[p.jsx("div",{className:"font-semibold",children:"🎯 Sightseeing"}),p.jsxs("div",{className:"ps-3",children:[l?.sightseeing?.map((d,f)=>p.jsxs("div",{children:["- ",Zr(d?.sightseeing?.trim()||"")," (",Fl?.[d?.sightseeingType||""]||"",")"]},f)),l?.dayWisePrivateSightseeing?.map((d,f)=>p.jsxs("div",{children:["- ",Zr(d?.title?.trim()||"")," (PVT)"]},f))]})]}),l?.meals?.length>0&&p.jsxs("div",{className:"mb-2",children:[p.jsx("div",{className:"font-semibold",children:"🍽️ Meals"}),p.jsx("div",{className:"ps-3",children:l?.meals?.map((d,f)=>p.jsxs("div",{children:["- ",d?.mealsCategoryDW?.trim()||""," ",d?.ServiceTitle?.trim()?`(${d?.ServiceTitle?.trim()||""})`:""]},f))})]}),l?.guides?.length>0&&p.jsxs("div",{className:"mb-2",children:[p.jsx("div",{className:"font-semibold",children:"👨‍✈️ Guides"}),p.jsx("div",{className:"ps-3",children:l?.guides?.map((d,f)=>p.jsxs("div",{children:["- ",d?.guideName?.trim()||""]},f))})]})]})]},u)),p.jsxs("div",{children:[p.jsx("div",{children:"Regards,"}),n?.agencyData?.AgencyName?.trim()&&p.jsx("div",{children:n?.agencyData?.AgencyName?.trim()}),n?.agencyData?.FirstName?.trim()&&p.jsx("div",{children:[n?.agencyData?.FirstName?.trim(),n?.agencyData?.LastName?.trim()].filter(Boolean)?.join(" ")||""}),n?.agencyData?.ContactNo1?.trim()&&p.jsx("div",{children:[n?.agencyData?.CountryCode?.trim(),n?.agencyData?.ContactNo1?.trim()].filter(Boolean)?.join(" ")||""})]})]}),p.jsxs("div",{className:"bg-gray-50 px-4 py-3 flex items-center gap-3 justify-end text-sm",children:[p.jsx("button",{type:"submit",onClick:a,className:"bg-white border border-(--highlight-color) text-(--highlight-color)! px-4 py-1",children:"Cancel"}),p.jsx("button",{type:"button",onClick:i,className:"bg-white border border-(--highlight-color) text-(--highlight-color)! px-4 py-1",children:"Copy to Clipboard"}),p.jsx("a",{href:t||"",target:"_blank",className:"bg-(--highlight-color)! border border-(--highlight-color) text-white! px-4 py-1",children:"Book Now"})]})]})}function Cht(){const e=on(),t=G1(),{showModal:n,changeModalWidth:a}=Fn(),o=lt(T=>T.global),i=lt(T=>T.buildYourOwnData),[l,u]=B.useState(!1),[d,f]=B.useState({}),[m,g]=B.useState({}),[y,b]=B.useState({sharePricing:"PP"});B.useEffect(()=>{const T=async(O,j,M)=>{const{douTriShareAdults:I,singleShareAdults:F,quadShareAdults:V,quintShareAdults:W,hexaShareAdults:U,totalExtraBedAdults:P,totalWithBedChild:Y,totalNoBedChild:K,totalInfant:Q}=M,ee=Number(i?.adults||0),G=Number(i?.child||0),oe=Number(i?.infant||0),ye=ee+G+oe,me=o?.taxSettings?.find(be=>Number(be?.PlanType||0)===5)||void 0,Se=parseFloat(me?.TaxPercentage||0),Be=o?.markupSettings?.find(be=>Number(be?.PlanType||0)===5&&Number(be?.ItemSourceType||0)===3)||void 0,ae={},ge=[],fe=[],qe=new Map;if(i?.dayWiseItinerary?.some(be=>be?.sightseeing?.length>0&&be?.sightseeing?.some(ve=>!ve?.sightseeingTypeOptional)&&be?.sightseeing?.filter(ve=>!ve?.sightseeingTypeOptional)?.some(ve=>parseFloat(ve?.totalAmountSightseeing||0)>0)||be?.transfers?.length>0&&be?.transfers?.some(ve=>parseFloat(ve?.transportTotalCost||0)>0)||be?.meals?.length>0&&be?.meals?.some(ve=>parseFloat(ve?.cost||0)>0)||be?.guides?.length>0&&be?.guides?.some(ve=>parseFloat(ve?.finalPrice||0)>0)))for(const be of i?.dayWiseItinerary||[]){if(i?.IsSightseeingSelected&&be?.sightseeing?.some(ve=>parseFloat(ve?.totalAmountSightseeing||0)>0))for(const ve of be?.sightseeing||[]){const pe=`${ve.currency}_${i.baseCurrency}`;let _e=qe.get(pe)||1;ve?.CurrencyType&&parseInt(ve?.CurrencyType)!==parseInt(i.baseCurrencyId)&&!qe.has(pe)&&(_e=await t(ve.currency,i.baseCurrency),qe.set(pe,_e));const Pe=parseInt(ve?.AdultPax||0),$e=parseFloat(ve?.AdultCost||0),je=ee>0?$e*Pe/ee:0,He=parseFloat(ve?.AdultMarkup||0)*Pe,Ae=parseInt(ve?.ChildPax||0),Me=parseFloat(ve?.KidsCost||0),Je=G>0?Me*Ae/G:0,dt=parseFloat(ve?.ChildMarkup||0)*Ae,Re=He+dt,Z=parseFloat(ve?.totalAmountSightseeing||0),ot=$e*Pe+Me*Ae;ae.perAdultCost=parseFloat(ae?.perAdultCost||0)+je*_e,ae.perAdultEBCost=parseFloat(ae?.perAdultEBCost||0)+je*_e,ae.perChildWBCost=parseFloat(ae?.perChildWBCost||0)+Je*_e,ae.perChildNBCost=parseFloat(ae?.perChildNBCost||0)+Je*_e,ae.totalCost=parseFloat(ae?.totalCost||0)+ot*_e,ae.totalMarkup=parseFloat(ae?.totalMarkup||0)+Re*_e,ae.totalCostWithMarkup=parseFloat(ae?.totalCostWithMarkup||0)+(ot+Re)*_e,ae.salesPrice=parseFloat(ae?.salesPrice||0)+Z*_e}if(i?.IsTransferSelected&&be?.transfers?.length>0&&be?.transfers?.some(ve=>parseFloat(ve?.transportTotalCost||0)>0))for(const ve of be?.transfers||[]){const pe=`${ve.currency}_${i.baseCurrency}`;let _e=qe.get(pe)||1;ve?.CurrencyType&&parseInt(ve?.CurrencyType)!==parseInt(i.baseCurrencyId)&&!qe.has(pe)&&(_e=await t(ve.currency,i.baseCurrency),qe.set(pe,_e));const Pe=parseInt(ve?.directNoOfCar||0),$e=parseFloat(ve?.transportVehicleCost||0)*Pe,je=$e/(ee+G),He=parseFloat(ve?.transportVehicleMarkup||0)*Pe,Ae=parseFloat(ve?.transportTotalCost||0);ae.perAdultCost=parseFloat(ae?.perAdultCost||0)+je*_e,ae.perAdultEBCost=parseFloat(ae?.perAdultEBCost||0)+je*_e,ae.perChildWBCost=parseFloat(ae?.perChildWBCost||0)+je*_e,ae.perChildNBCost=parseFloat(ae?.perChildNBCost||0)+je*_e,ae.totalCost=parseFloat(ae?.totalCost||0)+$e*_e,ae.totalMarkup=parseFloat(ae?.totalMarkup||0)+He*_e,ae.totalCostWithMarkup=parseFloat(ae?.totalCostWithMarkup||0)+($e+He)*_e,ae.salesPrice=parseFloat(ae?.salesPrice||0)+Ae*_e}if(i?.IsMealsSelected&&be?.meals?.length>0&&be?.meals?.some(ve=>parseFloat(ve?.cost||0)>0))for(const ve of be?.meals||[]){const pe=`${ve.currency}_${i.baseCurrency}`;let _e=qe.get(pe)||1;ve?.CurrencyType&&parseInt(ve?.CurrencyType)!==parseInt(i.baseCurrencyId)&&!qe.has(pe)&&(_e=await t(ve.currency,i.baseCurrency),qe.set(pe,_e));const Pe=parseFloat(ve?.cost||0),$e=Pe/(ee+G);ae.perAdultCost=parseFloat(ae?.perAdultCost||0)+$e*_e,ae.perAdultEBCost=parseFloat(ae?.perAdultEBCost||0)+$e*_e,ae.perChildWBCost=parseFloat(ae?.perChildWBCost||0)+$e*_e,ae.perChildNBCost=parseFloat(ae?.perChildNBCost||0)+$e*_e,ae.totalCost=parseFloat(ae?.totalCost||0)+Pe*_e,ae.totalCostWithMarkup=parseFloat(ae?.totalCostWithMarkup||0)+Pe*_e,ae.salesPrice=parseFloat(ae?.salesPrice||0)+Pe*_e}if(i?.IsGuideSelected&&be?.guides?.length>0&&be?.guides?.some(ve=>parseFloat(ve?.totalCost||0)>0))for(const ve of be?.guides||[]){const pe=`${ve.currency}_${i.baseCurrency}`;let _e=qe.get(pe)||1;ve?.CurrencyType&&parseInt(ve?.CurrencyType)!==parseInt(i.baseCurrencyId)&&!qe.has(pe)&&(_e=await t(ve.currency,i.baseCurrency),qe.set(pe,_e));const Pe=parseFloat(ve?.totalCost||0),$e=parseFloat(ve?.totalMarkUp||0),je=Pe/ye,He=Pe+$e;ae.perAdultCost=parseFloat(ae?.perAdultCost||0)+je*_e,ae.perAdultEBCost=parseFloat(ae?.perAdultEBCost||0)+je*_e,ae.perChildWBCost=parseFloat(ae?.perChildWBCost||0)+je*_e,ae.perChildNBCost=parseFloat(ae?.perChildNBCost||0)+je*_e,ae.perInfantCost=parseFloat(ae?.perInfantCost||0)+je*_e,ae.totalCost=parseFloat(ae?.totalCost||0)+Pe*_e,ae.totalMarkup=parseFloat(ae?.totalMarkup||0)+$e*_e,ae.totalCostWithMarkup=parseFloat(ae?.totalCostWithMarkup||0)+He*_e,ae.salesPrice=parseFloat(ae?.salesPrice||0)+He*_e}}if(i?.otherItems?.filter(be=>be?.IsSelected)?.some(be=>parseFloat(be?.finalPrice||0)>0))for(const be of i?.otherItems?.filter(ve=>ve?.IsSelected)||[]){const ve=`${be.currency}_${i.baseCurrency}`;let pe=qe.get(ve)||1;be?.CurrencyType&&parseInt(be?.CurrencyType)!==parseInt(i.baseCurrencyId)&&!qe.has(ve)&&(pe=await t(be.currency,i.baseCurrency),qe.set(ve,pe));const _e=Number(be?.adultCount||0),Pe=Number(be?.childCount||0),$e=Number(be?.infantCount||0);let je=0,He=0,Ae=0;parseInt(be?.costType)===1?(je=ee>0?parseFloat(be?.adultCost||0)*_e/ee:0,He=G>0?parseFloat(be?.childCost||0)*Pe/G:0,Ae=oe>0?parseFloat(be?.infantCost||0)*$e/oe:0):je=He=Ae=parseFloat(be?.totalCost||0)/ye;const Me=parseFloat(be?.totalCost||0)*pe,Je=parseFloat(be?.markup||0)*pe,dt=parseFloat(be?.finalPrice||0)*pe;ae.perAdultCost=parseFloat(ae?.perAdultCost||0)+je*pe,ae.perAdultEBCost=parseFloat(ae?.perAdultEBCost||0)+je*pe,ae.perChildWBCost=parseFloat(ae?.perChildWBCost||0)+He*pe,ae.perChildNBCost=parseFloat(ae?.perChildNBCost||0)+He*pe,ae.perInfantCost=parseFloat(ae?.perInfantCost||0)+Ae*pe,ae.totalCost=parseFloat(ae?.totalCost||0)+Me,ae.totalMarkup=parseFloat(ae?.totalMarkup||0)+Je,ae.totalCostWithMarkup=parseFloat(ae?.totalCostWithMarkup||0)+Je+Me,ae.salesPrice=parseFloat(ae?.salesPrice||0)+dt}let re=0;if(Number(me?.TaxType||0)==2?re=parseFloat(ae?.totalMarkup||0)*Se/100:Number(me?.TaxType||0)==1&&(re=parseFloat(ae?.totalCostWithMarkup||0)*Se/100),ae.taxAmount=re,ae.salesPrice=parseFloat(ae?.salesPrice||0)+re,O?.length>0)for(const[be,ve]of O.entries()){const pe={name:`Hotel Opt ${be+1}`};for(const Pe of ve?.cities||[]){const $e=`${Pe.HotelCostCurrencyName}_${i.baseCurrency}`;let je=qe.get($e)||1;Pe?.HotelCostCurrency&&parseInt(Pe?.HotelCostCurrency)!==parseInt(i.baseCurrencyId)&&!qe.has($e)&&(je=await t(Pe.HotelCostCurrencyName,i.baseCurrency),qe.set($e,je));const He=Pe?.rooms?.filter(Ye=>parseInt(Ye?.sharingTypeNum||0)===2||parseInt(Ye?.sharingTypeNum||0)===3),Ae=Pe?.rooms?.filter(Ye=>parseInt(Ye?.sharingTypeNum||0)===1),Me=Pe?.rooms?.filter(Ye=>parseInt(Ye?.sharingTypeNum||0)===4),Je=Pe?.rooms?.filter(Ye=>parseInt(Ye?.sharingTypeNum||0)===5),dt=Pe?.rooms?.filter(Ye=>parseInt(Ye?.sharingTypeNum||0)===6),Re=parseInt(Pe?.noofnight||0),Z=Re>1?Re:1;let ot=He?.reduce((Ye,nt)=>Ye+parseFloat(nt?.adultCost||0)*Z,0),vt=Ae?.reduce((Ye,nt)=>Ye+parseFloat(nt?.adultCost||0)*Z,0),tt=Me?.reduce((Ye,nt)=>Ye+parseFloat(nt?.adultCost||0)*Z,0),ft=Je?.reduce((Ye,nt)=>Ye+parseFloat(nt?.adultCost||0)*Z,0),ir=dt?.reduce((Ye,nt)=>Ye+parseFloat(nt?.adultCost||0)*Z,0),tn=Pe?.rooms?.reduce((Ye,nt)=>Ye+parseFloat(nt?.AdultExtraBed||0)*parseInt(nt?.ExtraAdultPax||0)*Z,0),Zn=Pe?.rooms?.reduce((Ye,nt)=>Ye+parseFloat(nt?.CostExtraBed||0)*parseInt(nt?.ExtraBedChildPax||0)*Z,0),nn=Pe?.rooms?.reduce((Ye,nt)=>Ye+parseFloat(nt?.CostWithoutBed||0)*parseInt(nt?.NoBedChildPax||0)*Z,0),Jn=Pe?.rooms?.reduce((Ye,nt)=>Ye+parseFloat(nt?.CostInfant||0)*parseInt(nt?.InfantPax||0)*Z,0);const wn=parseFloat(Pe?.HotelTax||0);ot=ot+wn*ot/100,vt=vt+wn*vt/100,tt=tt+wn*tt/100,ft=ft+wn*ft/100,ir=ir+wn*ir/100,tn=tn+wn*tn/100,Zn=Zn+wn*Zn/100,nn=nn+wn*nn/100,Jn=Jn+wn*Jn/100;const ln=He?.reduce((Ye,nt)=>Ye+parseFloat(nt?.AdultPax||0),0),vr=Ae?.reduce((Ye,nt)=>Ye+parseFloat(nt?.AdultPax||0),0),zn=Me?.reduce((Ye,nt)=>Ye+parseFloat(nt?.AdultPax||0),0),Hn=Je?.reduce((Ye,nt)=>Ye+parseFloat(nt?.AdultPax||0),0),oa=dt?.reduce((Ye,nt)=>Ye+parseFloat(nt?.AdultPax||0),0),lr=Pe?.rooms?.reduce((Ye,nt)=>Ye+parseInt(nt?.ExtraAdultPax||0),0),cr=Pe?.rooms?.reduce((Ye,nt)=>Ye+parseInt(nt?.ExtraBedChildPax||0),0),Wa=Pe?.rooms?.reduce((Ye,nt)=>Ye+parseInt(nt?.NoBedChildPax||0),0),ks=Pe?.rooms?.reduce((Ye,nt)=>Ye+parseInt(nt?.InfantPax||0),0);pe.perAdultCost=(pe?.perAdultCost||0)+(ot>0?ot*je/ln:0),pe.SingleOccupancy=(pe?.SingleOccupancy||0)+(vt>0?vt*je/vr:0),pe.CostQuad=(pe?.CostQuad||0)+(tt>0?tt*je/zn:0),pe.CostQuint=(pe?.CostQuint||0)+(ft>0?ft*je/Hn:0),pe.CostHexa=(pe?.CostHexa||0)+(ir>0?ir*je/oa:0),pe.perAdultEBCost=(pe?.perAdultEBCost||0)+(tn>0?tn*je/lr:0),pe.perChildWBCost=(pe?.perChildWBCost||0)+(Zn>0?Zn*je/cr:0),pe.perChildNBCost=(pe?.perChildNBCost||0)+(nn>0?nn*je/Wa:0),pe.perInfantCost=(pe?.perInfantCost||0)+(Jn>0?Jn*je/ks:0);const pt=parseFloat(Pe?.HotelCostTotal||0)*je,Ft=parseFloat(Pe?.HotelMarkupTotal||0)*je;pe.totalCost=(pe?.totalCost||0)+pt,pe.totalMarkup=(pe?.totalMarkup||0)+Ft,pe.totalCostWithMarkup=(pe?.totalCostWithMarkup||0)+pt+Ft,pe.taxType=Tr(me?.TaxName||"")}let _e=0;me?.TaxType==2?_e=parseFloat(pe?.totalMarkup||0)*Se/100:me?.TaxType==1&&(_e=parseFloat(pe?.totalCostWithMarkup||0)*Se/100),pe.taxAmount=_e,pe.salesPrice=(pe?.totalCostWithMarkup||0)+_e,ge.push(pe),fe.push({name:"Total",perAdultCost:Number(I||0)>0?parseFloat(ae?.perAdultCost||0)+parseFloat(pe.perAdultCost||0):0,SingleOccupancy:Number(F||0)>0?parseFloat(ae?.perAdultCost||0)+parseFloat(pe.SingleOccupancy||0):0,CostQuad:Number(V||0)>0?parseFloat(ae?.perAdultCost||0)+parseFloat(pe.CostQuad||0):0,CostQuint:Number(W||0)>0?parseFloat(ae?.perAdultCost||0)+parseFloat(pe.CostQuint||0):0,CostHexa:Number(U||0)>0?parseFloat(ae?.perAdultCost||0)+parseFloat(pe.CostHexa||0):0,perAdultEBCost:Number(P||0)>0?parseFloat(ae?.perAdultEBCost||0)+parseFloat(pe.perAdultEBCost||0):0,perChildWBCost:Number(Y||0)>0?parseFloat(ae?.perChildWBCost||0)+parseFloat(pe.perChildWBCost||0):0,perChildNBCost:Number(K||0)>0?parseFloat(ae?.perChildNBCost||0)+parseFloat(pe.perChildNBCost||0):0,perInfantCost:Number(Q||0)>0?parseFloat(ae?.perInfantCost||0)+parseFloat(pe.perInfantCost||0):0,totalCost:parseFloat(ae?.totalCost||0)+parseFloat(pe.totalCost||0),totalMarkup:parseFloat(ae?.totalMarkup||0)+parseFloat(pe.totalMarkup||0),totalCostWithMarkup:parseFloat(ae?.totalCostWithMarkup||0)+parseFloat(pe.totalCostWithMarkup||0),taxAmount:parseFloat(ae?.taxAmount||0)+parseFloat(pe.taxAmount||0),finalPrice:parseFloat(ae?.salesPrice||0)+parseFloat(pe.salesPrice||0),salesPrice:parseFloat(ae?.salesPrice||0)+parseFloat(pe.salesPrice||0)})}const xe=Number(Be?.MarkUpType||0),Te=parseFloat(Be?.MarkUpValue||0);fe?.forEach((be,ve)=>{let pe=0;xe===1?pe=(ee+G)*Te:xe===2?pe=parseFloat(be?.totalCostWithMarkup||0)*Te/100:xe===3?pe=parseFloat(be?.totalCost||0)*Te/100:xe===4&&(pe=parseFloat(be?.totalMarkup||0)*Te/100);const _e=parseFloat(be?.finalPrice||0),Pe=parseFloat(m?.[`markUp_${ve+1}`]||0),$e=pe*Se/100;be.globalMarkUp=pe,be.extraMarkUp=Pe,be.taxAmount=parseFloat(be?.taxAmount||0)+$e,be.salesPrice=_e+Pe+pe+$e}),e(Lt({totalServiceCost:{...ae},hotelCostng:[...ge?.map(be=>({...be}))||[]],finalCosting:[...fe?.map(be=>({...be}))||[]],HotelOptions:O,RoomInfoJson:JSON.stringify(j)}))},A=new Set,R={};i?.hotelCities?.filter(O=>!O?.hotelSelf)?.forEach(O=>{R[O.uniqueId]={...i?.selectedHotels?.[O.uniqueId]||{}}}),Object.values(R||{})?.forEach(O=>{const j=Object.values(O||{})?.length;A.add(j)});const E=Mj(Number(i?.adults||0),Number(i?.child||0),Number(i?.infant||0)),$=Array.from(A)?.filter(O=>+(O>0)),_=$.length>0?Math.max(...$):1,k=Array.from({length:_},()=>({cities:i?.hotelCities?.map(O=>({cityUniqueId:O.uniqueId,destinationName:O?.destinationName?.trim(),destination:O?.destination?.trim(),hidden_destination_id:Number(O?.hidden_destination_id||0),CheckIn:O?.CheckIn,CheckOut:O?.CheckOut,hotelSelf:O?.hotelSelf||!1,noofnight:Number(O?.noofnight||0),rooms:[...E?.map(j=>({...j}))||[]]}))}));i?.IsHotelSelected&&k?.forEach((O,j)=>{O?.cities?.filter(M=>!M?.hotelSelf)?.forEach(M=>{const I=R?.[M?.cityUniqueId||""]||{};let F=I?.[j+1]||void 0;!F&&Object.values(I)?.length>0&&(F=I?.[1]||{}),Object.keys(F||{})?.forEach(V=>{M[V]=F?.[V]})})});let q=k?.[0]?.cities?.[0]?.rooms||[];q?.length<=0&&(q=[...E?.map(O=>({...O}))||[]],k?.forEach(O=>{O?.cities?.forEach(j=>{j.rooms=[...q?.map(M=>({...M}))||[]]})}));let z={};q?.forEach((O,j)=>{const M=Number(O?.ExtraBedChildPax||0),I=Number(O?.NoBedChildPax||0),F={Adult:Number(O?.AdultPax||0)+Number(O?.ExtraAdultPax||0),Child:M+I,Infant:Number(O?.InfantPax||0),AdultBedType:Number(O?.ExtraAdultPax||0)>0?"extrabed":"",adult_type:zD?.[Number(O?.sharingTypeNum||0)]||"",departuredate:Ze(new Date(i?.StartDate)),returndate:""};let V=1;for(let W=0;W<M;W++)F[`ChildBedType_${V}`]="extrabed",V++;for(let W=0;W<I;W++)F[`ChildBedType_${V}`]="withoutbed",V++;z={...z,[j+1]:{...F}}});const D=Hpt(k,q);b(O=>({...O,sharePricing:D?"Overall":O?.sharePricing||"PP",disableSharePricing:D}));const H={douTriShareAdults:q?.filter(O=>Number(O?.sharingTypeNum||0)===2||Number(O?.sharingTypeNum||0)===3)?.reduce((O,j)=>O+Number(j?.AdultPax||0),0),singleShareAdults:q?.filter(O=>Number(O?.sharingTypeNum||0)===1)?.reduce((O,j)=>O+Number(j?.AdultPax||0),0),quadShareAdults:q?.filter(O=>Number(O?.sharingTypeNum||0)===4)?.reduce((O,j)=>O+Number(j?.AdultPax||0),0),quintShareAdults:q?.filter(O=>Number(O?.sharingTypeNum||0)===5)?.reduce((O,j)=>O+Number(j?.AdultPax||0),0),hexaShareAdults:q?.filter(O=>Number(O?.sharingTypeNum||0)===6)?.reduce((O,j)=>O+Number(j?.AdultPax||0),0),totalExtraBedAdults:q?.reduce((O,j)=>O+Number(j?.ExtraAdultPax||0),0),totalWithBedChild:q?.reduce((O,j)=>O+Number(j?.ExtraBedChildPax||0),0),totalNoBedChild:q?.reduce((O,j)=>O+Number(j?.NoBedChildPax||0),0),totalInfant:q?.reduce((O,j)=>O+Number(j?.InfantPax||0),0)};e(Lt({...H})),T(k,z,H)},[i?.StartDate,i?.hotelCities,i?.selectedHotels,i?.adults,i?.child,i?.infant,i?.dayWiseItinerary,i?.baseCurrency,i?.baseCurrencyId,i?.IsGuideSelected,i?.IsHotelSelected,i?.IsMealsSelected,i?.IsSightseeingSelected,i?.IsTransferSelected,o?.taxSettings,o?.markupSettings,m,e]);const x=async()=>{const T=o?.taxSettings?.find(R=>Number(R?.PlanType||0)===5)||void 0,A={SourcePlace:i?.startCity||"",SourcePlaceSysId:Number(i?.startCity_id||0),EndCityTitle:i?.endCity||"",EndCityId:Number(i?.endCity_id||0),DestinationPlacesSysId:Number(i?.hotelCities?.[0]?.hidden_destination_id||0),DestinationPlaces:i?.hotelCities?.[0]?.destination||"",RoomJson:i?.RoomInfoJson||"{}",TripDate:i?.StartDate?Ze(new Date(i?.StartDate)):"",HotelOptions:zpt(i?.HotelOptions||[]),dayWiseItinerary:Upt(i?.dayWiseItinerary||[],Number(i?.adults||0),Number(i?.child||0)),otherItems:[...i?.otherItems?.filter(R=>(R?.itemName?.trim()||"")!==""||parseFloat(R?.finalPrice||0)>0)||[]],quickPackageType:3,submitType:"view",PlanType:5,IsDayWiseItinerary:!0,SelectPricing:y?.sharePricing||"",sharePricing:y?.sharePricing||"",DestinationCovered:i?.hotelCities?.map(R=>parseInt(R?.hidden_destination_id||0))?.filter(Boolean)?.join(", ")||"",StartDate:i?.StartDate?Ze(new Date(i?.StartDate)):"",IsOnlySightseeingPkg:0,isShareWithFlight:!1,ShareCombinedFlightPricing:!1,ShareCombinedVisaPricing:!1,hotelServiceCost:[...i?.hotelCostng?.map(R=>({...R}))||[]],finalCosting:[...i?.finalCosting?.map(R=>{const E=parseFloat(R?.extraMarkUp||0),$=parseFloat(R?.globalMarkUp||0),_=parseFloat(R?.salesPrice||0),k=parseFloat(R?.totalMarkup||0);return{...R,extraMarkUp:$,B2BAgencyExtraMarkup:E,totalMarkup:k+$,salesPrice:_-E}})||[]],disableSharePricing:y?.disableSharePricing||!1,GSTApplicableOn:Number(T?.TaxSysId||0),shareConversionRate:1,shareCurrency:i?.baseCurrency||"",shareCurrencyId:Number(i?.baseCurrencyId||0),ProposalEmailTo:"",EmailContent:"",InternalRemark:"",IsBookingTerms:!1,BookingTerms:"",IsCancellationPolicy:!1,CancellationPolicy:"",IsExclusions:!1,Exclusions:"",IsInclusions:!1,Inclusions:"",IsREFUNDPOLICY:!1,REFUNDPOLICY:"",IsTermsAndConditions:!1,TermsAndConditions:"",IsTravelBasics:!1,TravelBasics:"",IsWhyUseUs:!1,WhyUseUs:"",advanceRequiredToBook:"",displayFlightBreakup:!1,displayHotelBreakup:!1,displaySightseeingBreakup:!1,displayTCS:!1,displayTransferBreakup:!1,displayVisaBreakup:!1,isFlightTCS:!1,isPackageTCS:!1,isVisaTCS:!1};u(!0);try{const{data:R}=await Tt.post(`${sr}webservice/quick-package/save-data-from-b2b`,A,{headers:{SecurityKey:o?.securityKey}});if(R?.status)return R?.URL||""}catch(R){console.error("Error saving data:",R)}finally{u(!1)}},S=async T=>{const A=await x();f({action:T,show:!0,url:A}),T==="book"?window.open(A,"_blank"):T==="whatsapp"&&(a("max-w-2xl"),n(()=>p.jsx(L$,{redirectUrl:A})))},w=()=>{a("max-w-2xl"),n(()=>p.jsx(L$,{redirectUrl:d?.url||""}))},N=()=>{a("max-w-4xl"),n(()=>p.jsx(xht,{}))};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"bg-zinc-900 text-white p-3 mb-3",children:[p.jsxs("div",{className:"text-xl mb-1",children:[[i?.startCity?.trim(),i?.endCity?.trim()].filter(Boolean)?.join(" to ")," ",p.jsxs("span",{className:"text-sm",children:["(",(()=>{const T=Number(i?.adults||0),A=Number(i?.child||0),R=Number(i?.infant||0),E=T>0?`${T} Adults`:void 0,$=A>0?`${A} Child`:void 0,_=R>0?`${R} Infant`:void 0;return[E,$,_].filter(Boolean)?.join(", ")})(),")"]})]}),p.jsxs("div",{className:"text-xs",children:[dn(i?.StartDate)," - ",dn(i?.EndDate)]})]}),p.jsxs("div",{className:"p-3 bg-white defaultBorder",children:[p.jsx("div",{className:"text-xl font-semibold mb-3 p-0!",children:"Price Details"}),p.jsx("div",{className:"flex gap-3 mb-3 p-0!",children:i?.HotelOptions?.map((T,A)=>p.jsxs("div",{className:"flex-1 defaultBorder lg:max-w-1/3",children:[p.jsxs("div",{className:"bg-slate-300 px-3 py-2 text-center font-semibold",children:["Option ",A+1]}),p.jsxs("div",{className:"text-xs",children:[T?.cities?.map((R,E)=>Number(R?.hidden_selected_hotel_id||0)>0&&p.jsxs("div",{className:"defaultBorder-b last:border-0 p-2",children:[p.jsxs("div",{className:"font-semibold",children:[R?.hotel_name?.trim()," | ",R?.destinationName?.trim()," (",R?.noofnight||"","N)"]}),R?.CheckIn&&p.jsxs("div",{children:[dn(new Date(R?.CheckIn))," - ",dn(gn(new Date(R?.CheckIn),Number(R?.noofnight||1)))]}),R?.rooms?.map(($,_)=>p.jsxs("div",{children:["Room ",_+1,": ",$?.room," | ",$?.mealPlan," (",(()=>{const k=Number($?.AdultPax||0)+Number($?.ExtraAdultPax||0),q=Number($?.ExtraBedChildPax||0)+Number($?.NoBedChildPax||0),z=Number($?.InfantPax||0),D=k>0?`${k} Adults`:void 0,H=q>0?`${q} Child`:void 0,O=z>0?`${z} Infant`:void 0;return[D,H,O].filter(Boolean)?.join(", ")})(),")"]},_))]},E)),p.jsx("div",{className:"p-2 defaultBorder-b font-semibold last:border-0 bg-stone-200",children:"Day Wise Itinerary"}),i?.dayWiseItinerary?.map((R,E)=>p.jsxs("div",{className:"defaultBorder-b last:border-0",children:[p.jsxs("div",{className:"p-2 defaultBorder-b bg-stone-100",children:[p.jsxs("span",{className:"font-semibold",children:["Day ",E+1," - ",R?.dayWiseTitleToShow?.trim()||R?.Cities?.trim()||""]}),p.jsx("div",{children:R?.dayDate?dn(R.dayDate):""})]}),p.jsxs("div",{className:"p-2 grid grid-cols-2 gap-2",children:[R?.transfers?.length>0&&p.jsxs("div",{className:"defaultBorder",children:[p.jsx("div",{className:"bg-slate-50 font-semibold defaultBorder-b px-2 py-1",children:"Transfers"}),p.jsx("div",{className:"p-2",children:R?.transfers?.map(($,_)=>p.jsxs("div",{children:[p.jsxs("div",{className:"font-bold",children:[Kr?.[$?.categoryTransport||""]||"",":"]}),p.jsxs("div",{children:[$?.VehicleName?.trim()||"",$?.capacityTransport?`(${$?.capacityTransport} Seats)`:""," ",$?.directNoOfCar?`X ${$?.directNoOfCar}`:""]})]},_))})]}),(R?.sightseeing?.length>0||R?.dayWisePrivateSightseeing?.length>0)&&p.jsxs("div",{className:"defaultBorder",children:[p.jsx("div",{className:"bg-slate-50 font-semibold defaultBorder-b px-2 py-1",children:"Sightseeing"}),p.jsxs("div",{className:"p-2",children:[R?.sightseeing?.map(($,_)=>p.jsxs("div",{children:[Zr($?.sightseeing?.trim()||"")," (",Fl?.[$?.sightseeingType||""]||"",")"]},_)),R?.dayWisePrivateSightseeing?.map(($,_)=>p.jsxs("div",{children:[Zr($?.title?.trim()||"")," (PVT)"]},_))]})]}),R?.meals?.length>0&&p.jsxs("div",{className:"defaultBorder",children:[p.jsx("div",{className:"bg-slate-50 font-semibold defaultBorder-b px-2 py-1",children:"Meals"}),p.jsx("div",{className:"p-2",children:R?.meals?.map(($,_)=>p.jsxs("div",{children:[$?.mealsCategoryDW?.trim()||""," ",$?.ServiceTitle?.trim()?`(${$?.ServiceTitle?.trim()||""})`:""]},_))})]}),R?.guides?.length>0&&p.jsxs("div",{className:"defaultBorder",children:[p.jsx("div",{className:"bg-slate-50 font-semibold defaultBorder-b px-2 py-1",children:"Guides"}),p.jsx("div",{className:"p-2",children:R?.guides?.map(($,_)=>p.jsx("div",{children:$?.guideName?.trim()||""},_))})]})]})]},E))]})]},A))}),p.jsx("div",{className:"flex gap-3 mb-3 p-0!",children:i?.finalCosting?.map((T,A)=>p.jsxs("div",{className:"flex-1 defaultBorder lg:max-w-1/3",children:[p.jsxs("div",{className:"bg-slate-300 px-3 py-2 text-center font-semibold",children:["Option ",A+1]}),p.jsx("table",{className:"w-full text-left text-sm",children:p.jsxs("tbody",{className:"text-gray-700",children:[p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("th",{className:"p-2! bg-stone-100 defaultBorder-r",children:"Total Price"}),p.jsxs("td",{className:"p-2! text-right",children:[i?.baseCurrency||""," ",Et(Number(T?.totalCostWithMarkup||0)+Number(T?.globalMarkUp||0)+Number(T?.taxAmount||0))]})]}),p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("th",{className:"p-2! bg-stone-100 defaultBorder-r",children:"Markup"}),p.jsxs("td",{className:"px-2! py-1! flex gap-1 items-center justify-end",children:[p.jsx("span",{children:i?.baseCurrency||""}),p.jsx(We,{type:"number",name:`markUp_${A+1}`,value:m?.[`markUp_${A+1}`]||"",onChange:R=>g(E=>({...E,[R.target.name]:R.target.value})),inputClass:"bg-yellow-50 text-right",divClass:"flex-1 max-w-32"})]})]}),p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("th",{className:"p-2! bg-stone-100 defaultBorder-r",children:"Final Price"}),p.jsxs("td",{className:"p-2! text-right",children:[i?.baseCurrency||""," ",Et(T?.salesPrice||0)]})]})]})})]},A))}),p.jsxs("div",{className:"flex justify-end gap-2 items-center mt-10",children:[p.jsxs("label",{htmlFor:"shareTotalPricing",className:"flex! bg-gray-200",children:[p.jsx("div",{className:"flex items-center justify-center px-2 border-r border-white",children:p.jsx("input",{type:"radio",name:"sharePricingtype",id:"shareTotalPricing",className:"w-3 h-3 m-0!",checked:y?.sharePricing==="Overall",disabled:y?.disableSharePricing||!1,onChange:()=>b(T=>({...T,sharePricing:"Overall"}))})}),p.jsx("div",{className:"leading-none text-sm p-2",children:"Share Total Pricing"})]}),!y?.disableSharePricing&&p.jsxs("label",{htmlFor:"sharePerPersonPricing",className:"flex! bg-gray-200",children:[p.jsx("div",{className:"flex items-center justify-center px-2 border-r border-white",children:p.jsx("input",{type:"radio",name:"sharePricingtype",id:"sharePerPersonPricing",className:"w-3 h-3 m-0!",checked:y?.sharePricing==="PP",disabled:y?.disableSharePricing||!1,onChange:()=>b(T=>({...T,sharePricing:"PP"}))})}),p.jsx("div",{className:"leading-none text-sm p-2",onClick:N,children:"Share with PP Pricing"})]}),d?.show?p.jsxs(p.Fragment,{children:[p.jsx("button",{type:"button",onClick:()=>f({}),className:"px-3 py-1 bg-white text-(--highlight-color)! border border-(--highlight-color)!",children:"Modify Proposal"}),(d?.action==="email"||d?.action==="whatsapp")&&p.jsx("button",{type:"button",onClick:w,className:"px-3 py-1 bg-green-600 text-white border border-green-600!",children:"Share to WhatsApp"}),p.jsx("a",{href:d?.url||"",target:"_blank",className:"px-3 py-1 bg-(--highlight-color)! text-white! border border-(--highlight-color)!",children:d?.action==="email"||d?.action==="whatsapp"?"Book Now":"View Proposal"})]}):p.jsxs(p.Fragment,{children:[p.jsx("button",{type:"button",onClick:()=>S("whatsapp"),className:"px-3 py-1 bg-green-600 text-white cursor-pointer hover:bg-black disabled:opacity-40",children:l?"Loading...":"Get Quote on WhatsApp"}),p.jsx("button",{type:"button",onClick:()=>S("email"),className:"px-3 py-1 bg-(--highlight-color) text-white cursor-pointer hover:bg-black disabled:opacity-40",children:l?"Loading...":"Get Quote on Email"}),p.jsx("button",{type:"button",onClick:()=>S("book"),className:"px-3 py-1 bg-(--highlight-color) text-white cursor-pointer hover:bg-black disabled:opacity-40",children:l?"Loading...":"Book Now"})]})]})]})]})}function Sht(e){const{planData:t}=e,{closeModal:n}=Fn(),a=on(),o=lt(g=>g.buildYourOwnData),[i,l]=B.useState([]),u=()=>{l(g=>{const y=[...g?.map(b=>({...b}))||[]];return y.push({vehicleId:t?.vehicleRoutes?.[0]?.uniqueId||"",quantity:t?.vehicleRoutes?.[0]?.directNoOfCar||"",AdultPax:t?.vehicleRoutes?.[0]?.AdultPax||"",ChildPax:t?.vehicleRoutes?.[0]?.ChildPax||""}),y})},d=g=>{l(y=>{const b=[...y?.map(S=>({...S}))||[]],x=b?.findIndex(S=>S.vehicleId===g);return x>=0&&b.splice(x,1),b})},f=(g,y,b)=>{l(x=>{const S=[...x?.map(w=>({...w}))||[]];return b>=0&&(S[b][g]=y),S})};B.useEffect(()=>{l([{vehicleId:Number(t?.vehicleRoutes?.[0]?.uniqueId||0),quantity:Number(t?.vehicleRoutes?.[0]?.directNoOfCar||0),AdultPax:Number(t?.vehicleRoutes?.[0]?.AdultPax||0),ChildPax:Number(t?.vehicleRoutes?.[0]?.ChildPax||0)}])},[t?.vehicleRoutes]);const m=()=>{if(!o?.StartDate)return rt.error("Enter start date first."),n(),!1;if(i?.some($=>Number($.quantity||0)<=0))return rt.error("Enter valid no of vehicles."),!1;const g=i?.reduce(($,_)=>$+parseFloat(_?.AdultPax||0),0),y=i?.reduce(($,_)=>$+parseFloat(_?.ChildPax||0),0);if(g!=Number(o?.adults||0))return rt.error("No. of adults are not matching with query."),!1;if(y!=Number(o?.child||0))return rt.error("No. of child are not matching with query."),!1;const b=t?.hotelCities?.reduce(($,_)=>$+parseFloat(_?.noofnight||0),0),x=gn(o.StartDate,b),S=[],w=Zt();i?.forEach($=>{const _=t?.vehicleRoutes?.find(D=>Number(D?.uniqueId||0)===Number($?.vehicleId||0)),k=Number($?.quantity||0),q=Number(_?.transportVehicleCost||0),z=Number(_?.transportVehicleMarkup||0);_&&S.push({..._,directNoOfCar:k,paxCount:Number($?.AdultPax||0)+Number($?.ChildPax||0),transportVehicleCost:q,transportVehicleMarkup:z,transportTotalCost:(q+z)*k,RouteSysId:Number(t?.RouteSysId||0),isTransfer:!0,uniqueId:w,uniqueCode:w})});const N=[...new Set([...i?.map($=>Number($?.vehicleId||0))||[]])].filter(Boolean),T=N?.map($=>t?.vehicleRoutes?.find(_=>_.uniqueId===$)?.VehicleName?.trim()||""),A=fi(T)||"",R=t?.dayWiseItinerary?.map($=>{const _=Number($?.itineraryDayStartCityId||0),k=$?.itineraryDayStartCity?.trim()||"",q=Number($?.itineraryDayEndCityId||0),z=$?.itineraryDayEndCity?.trim()||"",D=[...$?.dayWisePrivateSightseeing?.map(O=>({sightName:O?.title?.trim()||"",cityId:Number(O?.CitySysId||0)}))||[]];let H="";if(_===q){const O=fi(D?.map(j=>j?.sightName||""));H=`<p>Pick-up from ${k} location by ${A}.${D?.length>0?` Will visit ${O}.`:""}</p>`}else{const O=D?.filter(F=>F.cityId===_),j=D?.filter(F=>F.cityId===q),M=fi(O?.map(F=>F?.sightName||"")),I=fi(j?.map(F=>F?.sightName||""));H=`<p>Pick-up from ${k} location${O?.length>0?` will visit ${M}`:""} and drop at ${z} location by ${A}.${j?.length>0?` Will visit ${I}.`:""}</p>`}return{...$,Title:$?.dayWiseTitleToShow?.trim()||"",Details:H||"",dayWisePrivateSightseeing:[...$?.dayWisePrivateSightseeing?.map(O=>({...O,isTransfer:!0,transUniqueId:w,uniqueCode:w}))||[]]}});let E=0;o?.IsHotelSelected?E=2:o?.IsMealsSelected||o?.IsGuideSelected?E=3:E=4,a(Lt({dayWiseItinerary:R,hotelCities:t?.hotelCities||[],currentStep:E,TotalNights:b,EndDate:Ze(new Date(x)),selectedHotels:{},totalServiceCost:[],hotelCostng:[],finalCosting:[],HotelOptions:[],isContinuedToServices:!0,selectedRouteSuggestion:{routeId:Number(t?.RouteSysId||0),selectedVehicleIds:[...N]}})),a(Dn({actionType:"newItems",dayIdx:0,activityType:"transfers",updates:[...S?.map($=>({...$}))||[]]})),n()};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"py-3 px-4 flex justify-between items-center gap-3 bg-black text-white",children:[p.jsx("div",{className:"text-xl font-semibold",children:"Route"}),p.jsx("button",{type:"button",onClick:n,children:p.jsx(Fe,{icon:Or})})]}),p.jsxs("div",{className:"p-4",children:[p.jsxs("div",{className:"mb-4 p-0!",children:[p.jsx("div",{className:"mb-1 font-semibold",children:t?.dayWisePlanText?.trim()}),p.jsxs("div",{className:"text-xs",children:[[t?.CityName?.trim(),t?.EndCityName?.trim()].filter(Boolean)?.join(" - ")||"",Number(t?.Noofnights||0)>0?` (${t?.Noofnights}N/${t?.Noofnights+1}D)`:""]})]}),t?.dayWiseItinerary?.length>0&&p.jsx("div",{className:"defaultBorder",children:t?.dayWiseItinerary?.map((g,y)=>p.jsxs("div",{children:[p.jsxs("div",{className:"font-medium text-sm px-2 py-1 bg-slate-200",children:["Day ",y+1," - ",g?.dayWiseTitleToShow?.trim()||g?.Cities?.trim()||""]}),p.jsxs("div",{className:"space-y-1 p-2",children:[(g?.sightseeing?.length>0||g?.dayWisePrivateSightseeing?.length>0)&&p.jsxs("div",{className:"text-gray-600 text-xs",children:[p.jsx("span",{className:"font-semibold text-gray-800",children:"Sightseeings:"})," ",(()=>{const b=g?.sightseeing?.map(S=>S?.sightseeing?.trim()),x=g?.dayWisePrivateSightseeing?.map(S=>S?.title?.trim());return[...b,...x].filter(Boolean)?.join(", ")})()]}),g?.transfers?.length>0&&g?.transfers?.map((b,x)=>p.jsxs("div",{className:"text-gray-600 text-xs",children:[p.jsx("span",{className:"font-semibold text-gray-800",children:"Transfer:"})," ",[b?.VehicleName?.trim(),Number(b?.capacityTransport||0)>0?`(${b?.capacityTransport||""})`:"",Number(b?.directNoOfCar||0)>0?`x${b?.directNoOfCar||""}`:""].filter(Boolean)?.join(" ")]},x))]})]},y))}),t?.vehicleRoutes?.length>0&&i?.length>0&&p.jsxs(p.Fragment,{children:[i?.map((g,y)=>p.jsxs("div",{className:"mt-4 flex gap-2 items-end",children:[p.jsx(We,{name:"vehicleId",value:g?.vehicleId||"",onChange:b=>f(b.target.name,b.target.value,y),type:"select",label:"Vehicle",divClass:"text-sm flex-1",inputClass:"bg-yellow-50",optionList:t?.vehicleRoutes?.map(b=>({value:b?.uniqueId,label:`${b?.VehicleName?.trim()||""} (${b?.capacityTransport||""})`}))}),p.jsx(We,{name:"quantity",value:g?.quantity||"",onChange:b=>f(b.target.name,b.target.value,y),type:"number",label:"No. of Vehicle",divClass:"text-sm w-24",inputClass:"bg-yellow-50"}),Number(o?.adults||0)>0&&p.jsx(We,{name:"AdultPax",value:g?.AdultPax||"",onChange:b=>f(b.target.name,b.target.value,y),type:"select",label:"Adults",divClass:"text-sm w-20",inputClass:"bg-yellow-50",optionList:[...Array.from({length:Number(o?.adults||0)}).map((b,x)=>({value:x+1,label:x+1}))||[]]}),Number(o?.child||0)>0&&p.jsx(We,{name:"ChildPax",value:g?.ChildPax||"",onChange:b=>f(b.target.name,b.target.value,y),type:"select",label:"Child",divClass:"text-sm w-20",inputClass:"bg-yellow-50",optionList:[...Array.from({length:Number(o?.child||0)}).map((b,x)=>({value:x+1,label:x+1}))||[]]}),p.jsx("div",{className:"text-sm",children:p.jsx("button",{type:"button",disabled:i?.length<=1,onClick:()=>d(g?.vehicleId),className:"w-7 h-7 bg-rose-100! text-rose-600! disabled:opacity-30 disabled:text-gray-600! disabled:cursor-not-allowed!",children:p.jsx(Fe,{icon:hi})})})]},y)),p.jsx("div",{className:"text-xs flex justify-end mt-3",children:p.jsx("button",{type:"button",onClick:u,className:"bg-black text-white px-2 py-1",children:"Add Vehicle"})})]})]}),p.jsxs("div",{className:"bg-gray-50 px-4 py-3 flex items-center gap-3 justify-end text-sm",children:[p.jsx("button",{type:"button",onClick:n,className:"bg-white defaultBorder highlightBorder highlightTextColor px-5 py-1 font-semibold",children:"Cancel"}),p.jsx("button",{type:"submit",onClick:m,className:"bg-(--highlight-color) defaultBorder highlightBorder text-white px-5 py-1 font-semibold",children:"Select & Proceed"})]})]})}function Nht(){const{showModal:e,changeModalWidth:t}=Fn(),n=on(),a=lt(g=>g.buildYourOwnData),[o,i]=B.useState({nights:a?.TotalNights}),[l,u]=B.useState([]),d=(g,y)=>i(b=>({...b,[g]:y})),f=g=>{if(Number(a?.selectedRouteSuggestion?.routeId||0)===Number(g?.RouteSysId||0))return rt.error("Route already selected."),!1;t("max-w-lg"),e(()=>p.jsx(Sht,{planData:g}))},m=()=>{n(Lt({hotelCities:[],dayWiseItinerary:[],selectedHotels:{},HotelOptions:[],totalServiceCost:{},hotelCostng:[],finalCosting:[],RoomInfoJson:"{}",selectedRouteSuggestion:{}}))};return B.useEffect(()=>{let g=[...a?.tripSuggestion?.map(x=>({...x}))||[]];const y=o?.query?.trim()?.toLowerCase()||void 0,b=Number(o?.nights||0);g=g?.filter(x=>{const S=Number(x?.Noofnights||0);if(b>0&&S!==b)return!1;if(y){const w=`${S}n/${S+1}d ${x?.dayWisePlanText||""}`.toLowerCase();return(x?.RouteName||"").toLowerCase().includes(y)||w.includes(y)}return!0})||[],u([...g])},[a.tripSuggestion,o]),p.jsx(p.Fragment,{children:p.jsxs("div",{className:"p-3 shadow bg-white mb-3",children:[p.jsxs("div",{className:"mb-3 p-0! flex gap-3 items-center",children:[p.jsx("div",{className:"text-xl flex-1",children:"Suggested Routes"}),p.jsxs("div",{className:"flex items-center text-sm defaultBorder",children:[p.jsx("button",{type:"button",className:"py-1 px-2",onClick:()=>d("nights",Number(o?.nights||0)===0?0:Number(o?.nights||0)-1),children:p.jsx(Fe,{icon:sA,className:"text-gray-500"})}),p.jsx("input",{type:"number",name:"nights",autoComplete:"one-time-code",className:"focus:outline-none block w-14 text-center defaultBorder-r defaultBorder-l py-1",value:o?.nights||"",placeholder:"Nights",onChange:g=>d(g.target.name,g.target.value)}),p.jsx("button",{type:"button",className:"py-1 px-2",onClick:()=>d("nights",Number(o?.nights||0)+1),children:p.jsx(Fe,{icon:lA,className:"text-gray-500"})})]}),p.jsxs("div",{className:"col-span-2 md:col-span-1 flex items-center gap-2 px-2 py-1 text-sm defaultBorder flex-1 md:max-w-80",children:[p.jsx(Fe,{icon:ec,className:"text-gray-500"}),p.jsx("input",{type:"text",name:"query",autoComplete:"one-time-code",className:"focus:outline-none block flex-1 w-full",value:o?.query||"",placeholder:"Search by route name / description...",onChange:g=>d(g.target.name,g.target.value)})]})]}),p.jsx("div",{className:"mb-2",children:p.jsx("div",{className:"overflow-y-auto max-h-52",children:p.jsxs("table",{className:"w-full text-left defaultBorder text-sm",children:[p.jsx("thead",{className:"text-xs text-gray-700 uppercase bg-stone-100 sticky top-0",children:p.jsxs("tr",{className:"defaultBorder-b",children:[p.jsx("th",{className:"p-2!",children:"Available Suggested Routes"}),p.jsx("th",{className:"p-2!",children:"Description"}),p.jsx("th",{className:"p-2! text-center w-28",children:"Action"})]})}),p.jsx("tbody",{children:l?.length>0?l?.map((g,y)=>p.jsxs("tr",{className:"defaultBorder-b",children:[p.jsxs("td",{className:"p-2! defaultBorder-r",children:[p.jsx("span",{className:"font-semibold",children:[Number(g?.Noofnights||0)>0?`${Number(g?.Noofnights||0)}N`:"",Number(g?.Noofnights||0)+1>0?`${Number(g?.Noofnights||0)+1}D`:""].filter(Boolean)?.join("/")})," (",g?.dayWisePlanText?.trim()||"",")"]}),p.jsx("td",{className:"p-2! defaultBorder-r",children:g?.RouteName?.trim()||""}),p.jsx("td",{className:"p-1!",children:p.jsx("div",{className:"flex gap-1 justify-center items-center text-xs",children:Number(a?.selectedRouteSuggestion?.routeId||0)===Number(g?.RouteSysId||0)?p.jsx("button",{type:"button",onClick:()=>m(),className:"px-3 py-1 defaultBorder cursor-pointer bg-red-600! text-white!",children:"Remove"}):p.jsx("button",{type:"button",onClick:()=>f(g),className:"px-3 py-1 defaultBorder cursor-pointer hover:bg-(--highlight-color) hover:text-white!",children:"View / Select"})})})]},y)):p.jsx("tr",{className:"defaultBorder-b",children:p.jsx("td",{colSpan:3,className:"p-2!",children:"No Routes Found."})})})]})})})]})})}function wht(e){const{dayIdx:t,inventorySightseeing:n}=e,a=on(),{closeModal:o}=Fn(),i=lt($=>$.global),l=lt($=>$.buildYourOwnData),[u,d]=B.useState([]),[f,m]=B.useState({}),[g,y]=B.useState(new Set),b=($,_,k,q)=>{let z={...f,[$]:_};m({...z});const D=u?.map(H=>{let O=!0;const j=(z?.query||"")?.toLowerCase()?.trim();return j&&j!==""&&(O=`${H?.Title?.trim()} (${H?.SSSysId})`.toLowerCase().includes(j)),z?.sightseeingWithVehicles&&(O=O&&H?.costingRow?.some(M=>M?.pvtVehicles?.length>0)),{...H,isFiltered:O}});d([...D])};B.useEffect(()=>{const{sightseeing:$}=qpt(n,Number(l?.adults||0),Number(l?.child||0),Number(l?.infant||0),i?.currencyMap);d([...$])},[l?.adults,l?.child,l?.infant,n,i?.currencyMap]);const x=$=>{y(_=>{const k=new Set(_);return k.has($)?k.delete($):k.add($),k})};//! Select OR Unselect the particular sightseeing
const S=($,_)=>{const k=Number(l?.adults||0)+Number(l?.child||0);d(q=>{const z=[...q],D=z?.findIndex(H=>H.uniqueId===_);if(D>=0){const H=z?.[D]?.selectedSight||"";if(H!==$){const O=z?.[D]?.costingRow?.findIndex(j=>j.uniqueId===$);if(O>=0){const j=z?.[D]?.costingRow?.[O]||{};if(Number(j?.sightseeingType||0)===2&&j?.pvtVehicles?.length>0&&j?.pvtVehicles?.reduce((I,F)=>I+Number(F?.paxCount||0),0)>k)return rt.error("Pax count in vehicle is more than pax count in query."),z}}z[D].selectedSight=H===$?"":$}return z})};//! Update sightseeing data in costing row
const w=($,_,k,q)=>{d(z=>{const D=[...z],H=D?.findIndex(O=>O.uniqueId===q);if(H>=0){const O=D[H]?.costingRow?.findIndex(j=>j.uniqueId===k);if(O>=0){D[H].costingRow[O][$]=_;const j=D?.[H]?.costingRow?.[O]||{},M=Number(j?.AdultPax||0),I=Number(j?.ChildPax||0),F=parseFloat(j?.AdultCost||0),V=parseFloat(j?.AdultMarkup||0),W=parseFloat(j?.KidsCost||0),U=parseFloat(j?.ChildMarkup||0);let P=(F+V)*M+(W+U)*I;D[H].costingRow[O].totalAmountSightseeing=P,Number(j?.sightseeingType||0)===2&&j?.pvtVehicles?.length>0&&j?.pvtVehicles?.forEach(Y=>{Number(Y?.paxCount||0)>M+I&&(Y.paxCount=M+I)})}}return D})};//! Update Vehicle Data for Private Sightseeing (PVT Sightseeing with Vehicle)
const N=($,_,k,q,z)=>{d(D=>{const H=[...D],O=H?.findIndex(j=>j.uniqueId===k);if(O>=0){const j=H[O]?.costingRow?.findIndex(F=>F.uniqueId===q),M=H?.[O]?.privateVehicles||{},I=H?.[O]?.costingRow?.[j]||{};if(j>=0&&I?.pvtVehicles?.length>0){const F=I?.pvtVehicles||[],V=F?.findIndex(W=>W.uniqueId===z);if(V>=0){if(($==="paxCount"||$==="directNoOfCar"||$==="adultPax"||$==="childPax")&&!F[V]?.userAcceptedCondition){if(!window.confirm("You have selected fewer seats than the total number of travellers. Do you want to continue?"))return D;F[V].userAcceptedCondition=!0}if(F[V][$]=_,I?.pvtPerVehicleWise){const W=M?.[F?.[V]?.selectedVehicleId||""]||{},U=F?.[V]?.directNoOfCar||0,P=parseFloat(W?.transportVehicleCost||0),Y=parseFloat(W?.transportVehicleMarkup||0),K=(P+Y)*U;F[V]={...F?.[V]||{},...W,transportVehicleTotalMarkup:Y*U,transportTotalCost:K}}else{const W=H?.[O]?.privateCostObject||{},U=Number(F?.[V]?.capacityTransport||1),P=Number(F?.[V]?.directNoOfCar||1),Y=W?.[U]||{},K=Number(F?.[V]?.adultPax||0),Q=Number(F?.[V]?.childPax||0),ee=parseFloat(Y?.AdultCost||0),G=parseFloat(Y?.ChildCost||0),oe=parseFloat(Y?.AdultMarkup||0),ye=parseFloat(Y?.ChildMarkup||0),me=K*ee+Q*G,Se=K*oe+Q*ye;F[V].paxCount=K+Q,F[V].transportAdultCost=ee,F[V].transportChildCost=G,F[V].transportVehicleCost=me/P,F[V].transportVehicleTotalMarkup=Se,F[V].transportVehicleMarkup=Se/P,F[V].transportTotalCost=me+Se}H[O].costingRow[j].pvtVehicles=[...F?.map(W=>({...W}))||[]]}}}return H})};//! Add New Vehicle for Private Sightseeing (PVT Sightseeing with Vehicle)
const T=($,_)=>{d(k=>{const q=[...k],z=q?.findIndex(D=>D.uniqueId===$);if(z>=0){const D=q[z]?.costingRow?.findIndex(j=>j.uniqueId===_),H=q?.[z]?.costingRow?.[D]||{},O=H?.pvtVehicles||[];if(D>=0&&Number(H?.sightseeingType||0)===2)if(H?.pvtPerVehicleWise){const j=q?.[z]?.privateVehicles||[],M={...Object.values(j||{})?.[0]||{}},I=parseFloat(M?.transportVehicleCost||0)+parseFloat(M?.transportVehicleMarkup||0);O.push({selectedVehicleId:Object.keys(j||{})?.[0]||"",categoryTransport:1,TransTypeCat:"",dropArea:"",paxCount:1,directNoOfCar:1,transportTotalCost:I,transportVehicleTotalMarkup:parseFloat(M?.transportVehicleMarkup),...M,uniqueId:Zt()})}else{const j=Number(l?.adults||0),M=Number(l?.child||0),I=q?.[z]?.capacity?.[0]||1,F=q?.[z]?.privateCostObject?.[I]||{},V=Math.ceil((j+M)/I),W=j*parseFloat(F?.AdultCost||0)+M*parseFloat(F?.ChildCost||0),U=j*parseFloat(F?.AdultMarkup||0)+M*parseFloat(F?.ChildMarkup||0);O.push({categoryTransport:1,TransTypeCat:"",pickupArea:"",dropArea:"",adultPax:j,childPax:M,paxCount:j+M,transportSupplierName:H?.sightSupplierName?.trim(),supplierId:Number(H?.sightSupplierId||0),currency:H?.currency?.trim(),fromSupplier:Number(H?.CurrencyType||0)>0&&Number(H?.sightSupplierId||0)>0,CurrencyType:Number(H?.CurrencyType||0),VehicleName:"",directNoOfCar:V,capacityTransport:I,transportAdultCost:parseFloat(F?.AdultCost||0),transportChildCost:parseFloat(F?.ChildCost||0),transportVehicleCost:W/V,transportVehicleTotalMarkup:U,transportVehicleMarkup:U/V,transportTotalCost:W+U,uniqueId:Zt()})}}return q})};//! Remove Vehicle for Private Sightseeing (PVT Sightseeing with Vehicle)
const A=($,_,k)=>{d(q=>{const z=[...q],D=z?.findIndex(H=>H.uniqueId===$);if(D>=0){const H=z[D]?.costingRow?.findIndex(O=>O.uniqueId===_);if(H>=0){const O=z?.[D]?.costingRow?.[H]?.pvtVehicles||[],j=O?.findIndex(M=>M.uniqueId===k);j>=0&&O.splice(j,1),z[D].costingRow[H].pvtVehicles=[...O?.map(M=>({...M}))||[]]}}return z})};//! Update data for extra item
const R=($,_,k,q)=>{d(z=>{const D=[...z],H=D?.findIndex(O=>O.uniqueId===k);if(H>=0){const O=D?.[H]?.otherItems?.findIndex(j=>j.uniqueId===q);if(O>=0){D[H].otherItems[O][$]=_;const j=D?.[H]?.otherItems?.[O]||{};let M=0;if(Number(j?.costType||0)===1){const I=parseInt(j?.adultCount||0),F=parseInt(j?.childCount||0),V=parseInt(j?.infantCount||0),W=parseFloat(j?.adultCost||0),U=parseFloat(j?.childCost||0),P=parseFloat(j?.infantCost||0);M=I*W+F*U+V*P}else if(Number(j?.costType||0)===2){const I=parseInt(j?.itemCount||0),F=parseFloat(j?.itemCost||0);M=I*F}D[H].otherItems[O].totalCost=M,D[H].otherItems[O].finalPrice=M}}return D})};//! Save selected Sightseeing to the Day Wise Itinerary and Other Items if existed.
const E=()=>{const $=[],_=[],k=[],q=l?.dayWiseItinerary?.[t]?.StartDate?Ze(new Date(l?.dayWiseItinerary?.[t]?.StartDate)):"";u?.some(z=>z?.selectedSight&&z?.selectedSight?.trim()!=="")&&u?.filter(D=>D?.selectedSight&&D?.selectedSight?.trim()!=="")?.forEach(D=>{const H=D?.selectedSight||"",O=D?.costingRow?.find(I=>I.uniqueId===H),j=Number(O?.sightseeingType||0),M={sightseeing:O?.sightseeing||"",sightseeingDW:Number(O?.sightseeingDW||0),sightseeingType:j,sightseeingTime:"",sightSupplierName:O?.sightSupplierName?.trim()||"",sightSupplierId:Number(O?.sightSupplierId||0),currency:O?.currency?.trim()||"",CurrencyType:Number(O?.CurrencyType||0),fromSupplier:Number(O?.CurrencyType||0)>0&&Number(O?.sightSupplierId||0)>0,AdultPax:Number(O?.AdultPax||0),ChildPax:Number(O?.ChildPax||0),AdultCost:parseFloat(O?.AdultCost||0),KidsCost:parseFloat(O?.KidsCost||0),AdultMarkup:parseFloat(O?.AdultMarkup||0),ChildMarkup:parseFloat(O?.ChildMarkup||0),sightseeingTypeOptional:!1,totalAmountSightseeing:parseFloat(O?.totalAmountSightseeing||0)};if(j===2&&O?.pvtVehicles?.length>0){const I=Zt();M.isSightseeing=!0,M.uniqueId=I,M.uniqueCode=I,O?.pvtVehicles?.forEach(F=>{$.push({categoryTransport:Number(F?.categoryTransport||0),TransTypeCat:Number(F?.TransTypeCat||0),pickupArea:F?.pickupArea?.trim()||"",dropArea:F?.dropArea?.trim()||"",paxCount:Number(F?.paxCount||0),transportSupplierName:F?.transportSupplierName?.trim()||"",supplierId:Number(F?.supplierId||0),currency:F?.currency?.trim()||"",fromSupplier:Number(F?.CurrencyType||0)>0&&Number(F?.supplierId||0)>0,CurrencyType:Number(F?.CurrencyType||0),VehicleName:F?.VehicleName?.trim()||"",directNoOfCar:Number(F?.directNoOfCar||0),capacityTransport:Number(F?.capacityTransport||0),transportVehicleCost:parseFloat(F?.transportVehicleCost||0),transportVehicleMarkup:parseFloat(F?.transportVehicleMarkup||0),transportTotalCost:parseFloat(F?.transportTotalCost||0),StartDate:q,ToDate:q,isSightseeing:!0,uniqueId:Zt(),sightUniqueId:I,uniqueCode:I})}),D?.otherItems?.length>0&&D?.otherItems?.filter(F=>F?.isSelected)?.forEach(F=>{k.push({...F,IsSelected:!0})})}_.push({...M})}),a(Dn({dayIdx:t,actionType:"newItems",activityType:"transfers",updates:$})),a(Dn({dayIdx:t,actionType:"newItems",activityType:"sightseeing",updates:_})),a(kpt({actionType:"newItems",newItems:[...k]})),o()};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"sticky top-0 z-10",children:[p.jsxs("div",{className:"py-2 px-4 flex justify-between items-center gap-3 bg-black text-white",children:[p.jsx("div",{className:"text-xl font-semibold",children:"Search Sightseeing"}),p.jsxs("div",{className:"flex gap-3 items-center text-sm",children:[u?.some($=>$?.selectedSight&&$?.selectedSight?.trim()!=="")&&p.jsx("button",{type:"button",onClick:E,className:"bg-(--highlight-color) text-white px-5 py-1",children:"Add"}),p.jsx("button",{type:"button",onClick:o,children:p.jsx(Fe,{icon:Or})})]})]}),p.jsxs("div",{className:"grid grid-cols-2 md:flex justify-end items-center gap-3 px-4 py-2 defaultBorder bg-white",children:[p.jsxs("div",{className:"col-span-2 md:col-span-1 flex items-center gap-2 px-2 py-1 text-sm defaultBorder flex-1 md:max-w-96 shadow-sm",children:[p.jsx(Fe,{icon:ec,className:"text-gray-500"}),p.jsx("input",{type:"text",name:"query",autoComplete:"one-time-code",className:"focus:outline-none block flex-1 w-full",value:f?.query||"",placeholder:"Search by sightseeing name or id...",onChange:$=>b($.target.name,$.target.value)})]}),u?.some($=>$?.costingRow?.some(_=>_?.pvtVehicles?.length>0)||!1)&&p.jsx("div",{className:"text-sm",children:p.jsx("button",{type:"button",onClick:()=>b("sightseeingWithVehicles",!f?.sightseeingWithVehicles),className:`cursor-pointer px-2 py-1 shadow-sm defaultBorder ${f?.sightseeingWithVehicles?"bg-sky-100":""}`,children:"Sightseeing with Vehicles"})})]})]}),u?.filter($=>$?.isFiltered)?.length>0?p.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar p-4",children:u?.filter($=>$?.isFiltered)?.map(($,_)=>p.jsxs("div",{className:"shadow-xs defaultBorder mb-5 p-0! last:mb-0",children:[p.jsxs("div",{type:"button",onClick:()=>x($?.uniqueId),className:"flex gap-3 justify-between items-center cursor-pointer bg-gray-300 px-3 py-2",children:[p.jsxs("h2",{className:"text-base! font-semibold! m-0!",children:[Zr($?.Title||"")," ",$?.SSSysId?`(${$?.SSSysId})`:""]}),p.jsx(Fe,{icon:g.has($?.uniqueId)?Kv:Ss})]}),g.has($?.uniqueId)&&p.jsxs("div",{className:"p-3",children:[p.jsx("div",{className:"overflow-x-auto w-full",children:p.jsxs("table",{className:"w-full text-sm text-left defaultBorder",children:[p.jsx("thead",{className:"text-xs text-gray-700 uppercase bg-stone-100 defaultBorder",children:p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("th",{className:"p-2! defaultBorder",children:"Type"}),Number(l?.adults||0)>0&&p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Adult Count"}),Number(l?.child||0)>0&&p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Child Count"}),p.jsx("th",{className:"p-2! defaultBorder",children:"Action"})]})}),p.jsx("tbody",{children:$?.costingRow?.filter(k=>Number(k?.sightseeingType||0)!==2)?.map(k=>p.jsxs("tr",{className:"defaultBorder",children:[p.jsxs("td",{className:"p-2! defaultBorder whitespace-nowrap",children:[Fl?.[k.sightseeingType]||""," ",Number(k?.sightseeingType||0)===1?"with Entry":""]}),Number(l?.adults||0)>0&&p.jsx("td",{className:"defaultBorder p-1! max-w-24",children:p.jsx(We,{type:"select",name:"AdultPax",value:k?.AdultPax||"",onChange:q=>w(q.target.name,q.target.value,k.uniqueId,$.uniqueId),inputClass:"text-sm bg-white",optionList:[...Array.from({length:Number(l?.adults||0)}).map((q,z)=>({value:z+1,label:z+1}))]})}),Number(l?.child||0)>0&&p.jsx("td",{className:"defaultBorder p-1! max-w-24",children:p.jsx(We,{type:"select",name:"ChildPax",value:k?.ChildPax||"",onChange:q=>w(q.target.name,q.target.value,k.uniqueId,$.uniqueId),inputClass:"text-sm bg-white",optionList:[{value:"",label:"-- Select --"},...Array.from({length:Number(l?.child||0)}).map((q,z)=>({value:z+1,label:z+1}))]})}),p.jsx("td",{className:"py-1! px-2! text-xs defaultBorder",children:p.jsx("button",{type:"button",onClick:()=>S(k.uniqueId,$.uniqueId),className:`px-3 py-1 defaultBorder ${$?.selectedSight===k?.uniqueId?"text-white bg-green-500 hover:bg-green-600":"highlightTextColor highlightBorder"}`,children:$?.selectedSight===k?.uniqueId?"Selected":"Select"})})]},k.uniqueId))})]})}),(()=>{const k=$?.costingRow?.filter(q=>Number(q?.sightseeingType||0)===2&&q?.pvtVehicles?.length>0);return k?.length>0?k?.map(q=>{const z=q?.pvtPerVehicleWise||!1;return p.jsxs("div",{className:"defaultBorder border-zinc-500!",children:[p.jsx("div",{className:"overflow-x-auto w-full",children:p.jsxs("table",{className:"w-full text-sm text-left defaultBorder",children:[p.jsx("thead",{className:"bg-stone-100 defaultBorder",children:p.jsxs("tr",{className:"defaultBorder text-xs text-gray-700 uppercase",children:[p.jsx("th",{className:"p-2! defaultBorder",children:"PVT Vehicle with Entry"}),Number(l?.adults||0)>0&&p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Adult Count"}),Number(l?.child||0)>0&&p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Child Count"}),p.jsx("th",{className:"p-2! defaultBorder",children:"Vehicle"}),p.jsx("th",{className:"p-2! defaultBorder",children:"Capacity"}),p.jsx("th",{className:"p-2! defaultBorder",children:"Vehicle Quantity"}),p.jsx("th",{className:"p-2!",children:"Action"})]})}),p.jsxs("tbody",{children:[p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"p-2! defaultBorder",children:"Sightseeing"}),Number(l?.adults||0)>0&&p.jsx("td",{className:"p-1! defaultBorder w-20",children:p.jsx(We,{type:"select",name:"AdultPax",value:q?.AdultPax||"",onChange:D=>w(D.target.name,D.target.value,q.uniqueId,$.uniqueId),inputClass:"text-sm",optionList:[...Array.from({length:Number(l?.adults||0)}).map((D,H)=>({value:H+1,label:H+1}))]})}),Number(l?.child||0)>0&&p.jsx("td",{className:"p-1! defaultBorder w-20",children:p.jsx(We,{type:"select",name:"ChildPax",value:q?.ChildPax||"",onChange:D=>w(D.target.name,D.target.value,q.uniqueId,$.uniqueId),inputClass:"text-sm",optionList:[{value:"",label:"-- Select --"},...Array.from({length:Number(l?.child||0)}).map((D,H)=>({value:H+1,label:H+1}))]})}),p.jsx("td",{className:"p-2! defaultBorder"}),p.jsx("td",{className:"p-2! defaultBorder"}),p.jsx("td",{className:"p-2! defaultBorder"}),p.jsx("td",{className:"p-1! defaultBorder text-xs",children:p.jsx("button",{type:"button",onClick:()=>S(q.uniqueId,$.uniqueId),className:`px-3 py-1 defaultBorder ${$?.selectedSight===q?.uniqueId?"text-white bg-green-500 hover:bg-green-600":"highlightTextColor highlightBorder"}`,children:$?.selectedSight===q?.uniqueId?"Selected":"Select"})})]}),z?p.jsx(p.Fragment,{children:q?.pvtVehicles?.map((D,H)=>p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"p-2! defaultBorder",children:"Vehicle"}),p.jsx("td",{className:"p-1! defaultBorder",colSpan:[Number(l?.adults||0)>0,Number(l?.child||0)>0].filter(Boolean)?.length||1,children:p.jsx(We,{type:"select",name:"paxCount",value:D?.paxCount||"",onChange:O=>N(O.target.name,O.target.value,$.uniqueId,q.uniqueId,D.uniqueId),inputClass:"text-sm",optionList:[...Array.from({length:Number(l?.adults||0)+Number(l?.child||0)}).map((O,j)=>({value:j+1,label:j+1}))]})}),p.jsx("td",{className:"p-1! defaultBorder max-w-40",children:p.jsx(We,{type:"select",name:"selectedVehicleId",value:D?.selectedVehicleId||"",onChange:O=>N(O.target.name,O.target.value,$.uniqueId,q.uniqueId,D.uniqueId),inputClass:"text-sm",optionList:[...Object.keys($?.privateVehicles)?.map(O=>({value:O,label:`${$?.privateVehicles?.[O||""]?.VehicleName} - ${$?.privateVehicles?.[O||""]?.capacityTransport}`}))||[]]})}),p.jsx("td",{className:"p-2! defaultBorder w-20",children:D?.capacityTransport||""}),p.jsx("td",{className:"p-1! defaultBorder w-20",children:p.jsx(We,{type:"number",name:"directNoOfCar",value:D?.directNoOfCar||"",onChange:O=>N(O.target.name,O.target.value,$.uniqueId,q.uniqueId,D.uniqueId),inputClass:"text-sm"})}),p.jsx("td",{className:"p-1! text-center",children:p.jsxs("div",{className:"flex gap-2 justify-start text-xs",children:[q?.pvtVehicles?.length>1&&p.jsx("button",{type:"button",onClick:()=>A($.uniqueId,q.uniqueId,D.uniqueId),className:"text-rose-600! bg-rose-100 w-6 h-6",children:p.jsx(Fe,{icon:go})}),H+1===q?.pvtVehicles?.length&&p.jsx("button",{type:"button",onClick:()=>T($.uniqueId,q.uniqueId),className:"px-2 py-1 bg-gray-500 text-white",children:"Add Vehicle"})]})})]},D.uniqueId))}):p.jsx(p.Fragment,{children:q?.pvtVehicles?.map((D,H)=>p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"p-2! defaultBorder",children:"Vehicle"}),Number(l?.adults||0)>0&&p.jsx("td",{className:"p-1! defaultBorder",children:p.jsx(We,{type:"select",name:"adultPax",value:D?.adultPax||"",onChange:O=>N(O.target.name,O.target.value,$.uniqueId,q.uniqueId,D.uniqueId),inputClass:"text-sm",optionList:[...Array.from({length:Number(l?.adults||0)}).map((O,j)=>({value:j+1,label:j+1}))]})}),Number(l?.child||0)>0&&p.jsx("td",{className:"p-1! defaultBorder",children:p.jsx(We,{type:"select",name:"childPax",value:D?.childPax||"",onChange:O=>N(O.target.name,O.target.value,$.uniqueId,q.uniqueId,D.uniqueId),inputClass:"text-sm",optionList:[{value:"",label:"-- Select --"},...Array.from({length:Number(l?.child||0)}).map((O,j)=>({value:j+1,label:j+1}))]})}),p.jsx("td",{className:"p-1! defaultBorder max-w-40",children:p.jsx(We,{type:"text",name:"VehicleName",value:D?.VehicleName||"",onChange:O=>N(O.target.name,O.target.value,$.uniqueId,q.uniqueId,D.uniqueId),inputClass:"text-sm"})}),p.jsx("td",{className:"p-1! defaultBorder w-20",children:p.jsx(We,{type:"select",name:"capacityTransport",value:D?.capacityTransport||"",onChange:O=>N(O.target.name,O.target.value,$.uniqueId,q.uniqueId,D.uniqueId),inputClass:"text-sm",optionList:[...$?.capacity?.map(O=>({value:O,label:O}))||[]]})}),p.jsx("td",{className:"p-1! defaultBorder w-20",children:p.jsx(We,{type:"number",name:"directNoOfCar",value:D?.directNoOfCar||"",onChange:O=>N(O.target.name,O.target.value,$.uniqueId,q.uniqueId,D.uniqueId),inputClass:"text-sm"})}),p.jsx("td",{className:"p-1! text-center",children:p.jsxs("div",{className:"flex gap-2 justify-start text-xs",children:[q?.pvtVehicles?.length>1&&p.jsx("button",{type:"button",onClick:()=>A($.uniqueId,q.uniqueId,D.uniqueId),className:"text-rose-600! bg-rose-100 w-6 h-6",children:p.jsx(Fe,{icon:go})}),H+1===q?.pvtVehicles?.length&&p.jsx("button",{type:"button",onClick:()=>T($.uniqueId,q.uniqueId),className:"px-2 py-1 bg-gray-500 text-white",children:"Add Vehicle"})]})})]},D.uniqueId))})]})]})}),z&&$?.otherItems?.length>0&&p.jsx("div",{className:"overflow-x-auto w-full",children:p.jsxs("table",{className:"w-full text-left defaultBorder text-sm",children:[p.jsxs("thead",{className:"text-xs text-gray-700 uppercase bg-stone-100 defaultBorder",children:[p.jsx("tr",{className:"defaultBorder bg-stone-200",children:(()=>{const H=5+[Number(l?.adults||0)>0,Number(l?.child||0)>0,Number(l?.infant||0)>0].filter(Boolean)?.length*2;return p.jsx("th",{colSpan:H,className:"p-2!",children:"Extra Services"})})()}),p.jsxs("tr",{children:[p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Item Name"}),Number(l?.adults||0)>0&&p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Adult Count"}),Number(l?.child||0)>0&&p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Child Count"}),Number(l?.infant||0)>0&&p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Infant Count"}),p.jsx("th",{className:"p-2! defaultBorder max-w-16",children:"Item Count"}),Number(l?.adults||0)>0&&p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Cost / Adult"}),Number(l?.child||0)>0&&p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Cost / Child"}),Number(l?.infant||0)>0&&p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Cost / Infant"}),p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Cost / Item"}),p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap",children:"Total Cost"}),p.jsx("th",{className:"p-2! defaultBorder whitespace-nowrap text-center",children:"Action"})]})]}),p.jsx("tbody",{children:$?.otherItems?.map(D=>p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"p-2! defaultBorder",children:D?.itemName?.trim()||""}),Number(l?.adults||0)>0&&p.jsx("td",{className:"p-1 defaultBorder w-20",children:Number(D?.costType||0)===1?p.jsx(We,{type:"select",name:"adultCount",value:D?.adultCount||"",onChange:H=>R(H.target.name,H.target.value,$.uniqueId,D.uniqueId),inputClass:"text-sm",optionList:[...Array.from({length:Number(l?.adults||0)}).map((H,O)=>({value:O+1,label:O+1}))]}):""}),Number(l?.child||0)>0&&p.jsx("td",{className:"p-1! defaultBorder w-20",children:Number(D?.costType||0)===1?p.jsx(We,{type:"select",name:"childCount",value:D?.childCount||"",onChange:H=>R(H.target.name,H.target.value,$.uniqueId,D.uniqueId),inputClass:"text-sm",optionList:[{value:"",label:"-- Select --"},...Array.from({length:Number(l?.child||0)}).map((H,O)=>({value:O+1,label:O+1}))]}):""}),Number(l?.infant||0)>0&&p.jsx("td",{className:"p-1! defaultBorder w-20",children:Number(D?.costType||0)===1?p.jsx(We,{type:"select",name:"infantCount",value:D?.infantCount||"",onChange:H=>R(H.target.name,H.target.value,$.uniqueId,D.uniqueId),inputClass:"text-sm",optionList:[{value:"",label:"-- Select --"},...Array.from({length:Number(l?.infant||0)}).map((H,O)=>({value:O+1,label:O+1}))]}):""}),p.jsx("td",{className:"p-1! defaultBorder w-20",children:Number(D?.costType||0)===2?p.jsx(We,{type:"number",name:"itemCount",value:D?.itemCount||"",onChange:H=>R(H.target.name,H.target.value,$.uniqueId,D.uniqueId),inputClass:"text-sm"}):""}),Number(l?.adults||0)>0&&p.jsx("td",{className:"p-2! defaultBorder",children:Number(D?.costType||0)===1&&D?.adultCost>0?`${D?.currency||""} ${Et(D?.adultCost||0)}`:""}),Number(l?.child||0)>0&&p.jsx("td",{className:"p-2! defaultBorder",children:Number(D?.costType||0)===1&&D?.childCost>0&&Number(D?.childCount||0)>0?`${D?.currency||""} ${Et(D?.childCost||0)}`:""}),Number(l?.infant||0)>0&&p.jsx("td",{className:"p-2! defaultBorder",children:Number(D?.costType||0)===1&&D?.infantCost>0&&Number(D?.infantCount||0)>0?`${D?.currency||""} ${Et(D?.infantCost||0)}`:""}),p.jsx("td",{className:"p-2! defaultBorder",children:Number(D?.costType||0)===2&&D?.itemCost>0?`${D?.currency||""} ${Et(D?.itemCost||0)}`:""}),p.jsx("td",{className:"p-2! defaultBorder",children:D?.totalCost>0?`${D?.currency||""} ${Et(D?.totalCost||0)}`:""}),p.jsx("td",{className:"p-1! text-center",children:p.jsx("input",{type:"checkbox",className:"w-4 h-4 m-0",checked:D?.isSelected||!1,onChange:()=>R("isSelected",!D?.isSelected,$.uniqueId,D.uniqueId)})})]},D.uniqueId))})]})})]},q.uniqueId)}):""})()]})]},_))}):p.jsx("div",{className:"p-4 text-lg",children:"No sightseeings found."})]})}function Eht(e){const{dayIdx:t,inventoryTransfers:n,fromDate:a,toDate:o}=e,i=B.useMemo(()=>[4,5,6,7,8,9],[]),l=on(),u=lt(D=>D.buildYourOwnData),d=lt(D=>D.global),{closeModal:f}=Fn(),[m,g]=B.useState([]),[y,b]=B.useState({}),[x,S]=B.useState(new Set),[w,N]=B.useState([]),[T,A]=B.useState([]),[R,E]=B.useState(!1);B.useEffect(()=>{const D={},H=t!==0;let{transferList:O,startCitiesList:j,destinationCitiesList:M}=Bpt(n,a,Number(u?.adults||0),Number(u?.child||0),H,d?.currencyMap);const I=t===0,F=t+1===u?.dayWiseItinerary?.length,V=Number(u?.dayWiseItinerary?.[t]?.itineraryDayStartCityId||0),W=Number(u?.dayWiseItinerary?.[t]?.itineraryDayEndCityId||0);V>0&&j?.some(U=>Number(U?.cityId||0)===V)&&(D.startCity=V),W>0&&M?.some(U=>Number(U?.cityId||0)===W)&&(D.destCity=W),O=O?.filter(U=>{if(U?.vehicleRoutes?.length<=0)return!1;if(U?.includedCategories?.some(P=>Number(P||0)===1)){if(U?.citiesArray?.length!==u?.hotelCities?.length)return!1;for(let P=0;P<U?.citiesArray?.length;P++){const Y=U?.citiesArray?.[P]||{},K=u?.hotelCities?.[P]||{};if(Number(Y?.hidden_destination_id||0)!==Number(K?.hidden_destination_id||0)||Number(Y?.noofnight||0)!==Number(K?.noofnight||0))return!1}}return!0}),O?.some(U=>U?.includedCategories?.some(P=>Number(P||0)===4))&&(I||F)&&(D.transferType=2,O?.forEach(U=>{if(U?.includedCategories?.some(Y=>Number(Y||0)===4)&&U?.vehicleRoutes?.length>0){if(U?.pickUpAreas?.length>0){const Y=U?.pickUpAreas?.find(Q=>Q.toLowerCase().includes("airport")),K=U?.pickUpAreas?.find(Q=>Q.toLowerCase().includes("hotel"));I&&Y&&U?.vehicleRoutes?.forEach(Q=>{Q.pickupArea=Y}),F&&K&&U?.vehicleRoutes?.forEach(Q=>{Q.pickupArea=K})}else U?.vehicleRoutes?.forEach(Y=>{Y.pickupArea=I?"Airport":"Hotel"});if(U?.dropAreas?.length>0){const Y=U?.dropAreas?.find(Q=>Q.toLowerCase().includes("airport")),K=U?.dropAreas?.find(Q=>Q.toLowerCase().includes("hotel"));I&&K&&U?.vehicleRoutes?.forEach(Q=>{Q.dropArea=K}),F&&Y&&U?.vehicleRoutes?.forEach(Q=>{Q.dropArea=Y})}else U?.vehicleRoutes?.forEach(Y=>{Y.dropArea=I?"Hotel":"Airport"});I&&U?.vehicleRoutes?.forEach(Y=>{Y.categoryTransport=4})}})),O?.forEach(U=>{let P=U?.isFiltered||!1;const Y=Number(D?.startCity||0),K=Number(D?.destCity||0);(Y>0||K>0)&&(P=P&&(Number(U?.CityId||0)===Y&&Number(U?.DestinationCityId||0)===Y||Number(U?.CityId||0)===Y&&Number(U?.DestinationCityId||0)===K||Number(U?.CityId||0)===K&&Number(U?.DestinationCityId||0)===K));const Q=Number(D?.transferType||0);Q>0&&(Q===2?P=P&&U?.includedCategories?.some(ee=>i.includes(Number(ee||0))):P=P&&U?.includedCategories?.some(ee=>Number(ee||0)===Q)),U.isFiltered=P}),b({...D}),N([...j]),A([...M]),g([...O])},[u?.adults,u?.child,a,n,d?.currencyMap,t,i,u?.dayWiseItinerary,u?.hotelCities]);const $=()=>{l(Lt({hotelCities:[],dayWiseItinerary:[],selectedHotels:{},HotelOptions:[],totalServiceCost:{},hotelCostng:[],finalCosting:[],RoomInfoJson:"{}",selectedRouteSuggestion:{},currentStep:1})),f()},_=D=>{S(H=>{const O=new Set(H);return O.has(D)?O.delete(D):O.add(D),O})},k=(D,H,O,j)=>{let M={...y,[D]:H};O&&(M[O]=j),b({...M});const I=m?.map(F=>{let V=!0;const W=(M?.query||"")?.toLowerCase()?.trim();W&&W!==""&&(V=`${F?.RouteName?.trim()}`.toLowerCase().includes(W));const U=Number(M?.startCity||0),P=Number(M?.destCity||0);(U>0||P>0)&&(V=V&&(Number(F?.CityId||0)===U&&Number(F?.DestinationCityId||0)===U||Number(F?.CityId||0)===U&&Number(F?.DestinationCityId||0)===P||Number(F?.CityId||0)===P&&Number(F?.DestinationCityId||0)===P)),M?.sightTrans?.trim()==="included"&&(V=V&&F?.includedSightseeings?.length>0),M?.sightTrans?.trim()==="notincluded"&&(V=V&&F?.includedSightseeings?.length<=0);const Y=Number(M?.transferType||0);return Y>0&&(Y===2?V=V&&F?.includedCategories?.some(K=>i.includes(Number(K||0))):V=V&&F?.includedCategories?.some(K=>Number(K||0)===Y)),{...F,isFiltered:V}});g([...I])},q=(D,H,O,j,M,I)=>{g(F=>{const V=[...F],W=V?.findIndex(U=>U.uniqueId===O);if(W>=0){const U=V?.[W]?.vehicleRoutes?.findIndex(P=>Number(P?.uniqueId)===Number(j));if(U>=0){if(D==="isSelected"&&H){const Y=Number(V?.[W]?.vehicleRoutes?.[U]?.categoryTransport||0),K=Number(V?.[W]?.vehicleRoutes?.[U]?.directNoOfCar||0),Q=Number(V?.[W]?.vehicleRoutes?.[U]?.capacityTransport||0),ee=Number(V?.[W]?.vehicleRoutes?.[U]?.paxCount||0);if(!R&&Y===1&&Number(u?.selectedRouteSuggestion?.routeId||0)>0){const oe=window.confirm("You have already selected an itinerary transport. Do you want to add more transfer?");if(E(oe),!oe)return V}if(new Date(V[W].vehicleRoutes[U].ToDate)>new Date(Ze(o))&&!window.confirm("The end date of transfer is out of range."))return V;if(ee>K*Q)return rt.error("The total number of passengers exceeds the vehicle capacity."),V;if(K<=0)return rt.error("Enter valid number of vehicles."),V}if(V[W].vehicleRoutes[U][D]=H,D==="StartDate"){const Y=new Date(V[W].vehicleRoutes[U].StartDate),K=new Date(V[W].vehicleRoutes[U].ToDate);Y>K&&(V[W].vehicleRoutes[U].ToDate=Ze(Y))}const P=V?.[W]?.vehicleRoutes?.[U]?.categoryTransport||"";if(P==10){const Y=new Date(V[W].vehicleRoutes[U].StartDate),K=new Date(V[W].vehicleRoutes[U].ToDate),Q=Nw(Y,K)+1;V[W].vehicleRoutes[U].transportVehicleCost=(V?.[W]?.vehicleRoutes?.[U]?.transportVehicleCostPerDay||0)*Q,V[W].vehicleRoutes[U].transportVehicleMarkup=(V?.[W]?.vehicleRoutes?.[U]?.transportVehicleMarkupPerDay||0)*Q}if(D==="directNoOfCar"||P==10){const Y=Number(V?.[W]?.vehicleRoutes?.[U]?.directNoOfCar||0),K=parseInt(V?.[W]?.vehicleRoutes?.[U]?.transportVehicleCost||0),Q=parseInt(V?.[W]?.vehicleRoutes?.[U]?.transportVehicleMarkup||0),ee=parseInt((K+Q)*Y);V[W].vehicleRoutes[U].transportTotalCost=ee}}D==="isItinerary"&&(V[W][D]=H,H&&V?.[W]?.vehicleRoutes?.forEach(P=>{if((P?.categoryTransport||"")==10){const K=new Date(P.StartDate),Q=new Date(o),ee=Nw(K,Q)+1,G=(P?.transportVehicleCostPerDay||0)*ee,oe=(P?.transportVehicleMarkupPerDay||0)*ee,ye=Number(P?.directNoOfCar||0),me=parseInt((G+oe)*ye);P.ToDate=gn(K,ee-1),P.transportVehicleCost=G,P.transportVehicleMarkup=oe,P.transportTotalCost=me}}))}return V})},z=async()=>{const D=[],H=[];if(m?.filter(j=>j?.vehicleRoutes?.some(M=>M?.isSelected))?.forEach(j=>{j?.vehicleRoutes?.some(M=>M?.isSelected)&&j?.vehicleRoutes?.filter(M=>M?.isSelected)?.forEach(M=>{const I={...M,RouteSysId:Number(j?.RouteSysId||0),paxCount:Number(M?.AdultPax||0)+Number(M?.ChildPax||0),includedSightseeings:[...j?.includedSightseeings?.map(F=>({...F}))||[]]};if(j?.includedSightseeings?.length>0){const F=Zt();I.isTransfer=!0,I.vehicleId=Number(I?.uniqueId||0),I.uniqueId=F,I.uniqueCode=F,j?.includedSightseeings?.forEach(V=>{H.push({...V,AdultPax:Number(M?.AdultPax||0),ChildPax:Number(M?.ChildPax||0),isTransfer:!0,transUniqueId:F,uniqueCode:F})})}D.push({...I})})}),l(Dn({dayIdx:t,actionType:"newItems",activityType:"transfers",updates:D})),D?.some(j=>Number(j?.categoryTransport||0)===1)){const j=Number(D?.find(I=>Number(I?.categoryTransport||0)===1)?.RouteSysId||0),M=D?.filter(I=>Number(I?.RouteSysId||0)===j)?.map(I=>Number(I?.vehicleId||0))||[];j>0&&l(Lt({selectedRouteSuggestion:{routeId:j,selectedVehicleIds:[...new Set([...M?.map(I=>Number(I||0))||[]])].filter(Boolean)}}))}const O=H?.map(j=>Number(j?.SSSysId||0))?.filter(Boolean)||[];if(H?.length>0&&O?.length>0){try{const U=JSON.stringify({Sightseeing:O?.join(", "),FromDate:Ze(a),TotalPax:Number(u?.adults||0)+Number(u?.child||0)}),{data:P}=await Tt.post(`${sr}webservice/inventory-data/get-sightseeing-rate`,U,{headers:{SecurityKey:d?.securityKey}});P?.status&&P?.data?.length>0&&H?.forEach(Y=>{const K=P?.data?.find(Q=>Number(Q?.SSSysId||0)===Number(Y?.sightseeingDW||0));if(K){const Q=Number(K?.CostCurrency||0),ee=Number(K?.SupplierSysId||0),G=Number(Y?.AdultPax||0),oe=Number(Y?.ChildPax||0),ye=parseFloat(K?.AdultEntryFee||0),me=parseFloat(K?.ChildEntryFee||0);Y.AdultCost=ye,Y.KidsCost=me,Y.CurrencyType=Q,Y.currency=d?.currencyMap?.[Q]||[],Y.fromSupplier=Q>0&&ee>0,Y.sightSupplierId=ee,Y.sightSupplierName=K?.SupplierName?.trim()||"",Y.totalAmountSightseeing=ye*G+me*oe}})}catch(U){console.error("Error fetching sightseeing price.",U)}const j=H?.filter(U=>!U?.isItineraryTransSight),M=j?.filter(U=>Number(U?.totalAmountSightseeing||0)>0),I=j?.filter(U=>Number(U?.totalAmountSightseeing||0)<=0),F=H?.filter(U=>U?.isItineraryTransSight),V=F?.filter(U=>Number(U?.totalAmountSightseeing||0)>0),W=F?.filter(U=>Number(U?.totalAmountSightseeing||0)<=0);M?.length>0&&l(Dn({dayIdx:t,actionType:"newItems",activityType:"sightseeing",updates:M?.map(U=>({AdultCost:parseFloat(U?.AdultCost||0),AdultMarkup:0,AdultPax:Number(U?.AdultPax||0),ChildMarkup:0,ChildPax:Number(U?.ChildPax||0),CurrencyType:Number(U?.CurrencyType||0),KidsCost:parseFloat(U?.KidsCost||0),currency:U?.currency||"",fromSupplier:U?.fromSupplier||!1,sightSupplierId:Number(U?.sightSupplierId||0),sightSupplierName:U?.sightSupplierName||"",sightseeing:U?.title?.trim(),sightseeingDW:Number(U?.SSSysId||0),CityId:Number(U?.CitySysId||0),cityName:U?.CityName?.trim(),sightseeingTime:"",sightseeingType:3,sightseeingTypeOptional:!1,totalAmountSightseeing:parseFloat(U?.totalAmountSightseeing||0),isTransfer:U?.isTransfer,transUniqueId:U?.transUniqueId,uniqueCode:U?.uniqueCode}))})),I?.length>0&&l(Dn({dayIdx:t,actionType:"newItems",activityType:"dayWisePrivateSightseeing",updates:I?.map(U=>({CityName:U?.CityName?.trim(),CitySysId:Number(U?.CitySysId||0),Country:U?.Country?.trim(),SSSysId:Number(U?.SSSysId||0),title:U?.title?.trim(),AdultPax:Number(U?.AdultPax||0),ChildPax:Number(U?.ChildPax||0),isTransfer:U?.isTransfer,transUniqueId:U?.transUniqueId,uniqueCode:U?.uniqueCode}))})),W?.length>0&&W?.forEach(U=>{const P=Number(U?.itineraryIdx||0);P>=0&&P<u?.dayWiseItinerary?.length&&l(Dn({dayIdx:P,actionType:"newItems",activityType:"dayWisePrivateSightseeing",updates:[{CityName:U?.CityName?.trim(),CitySysId:Number(U?.CitySysId||0),Country:U?.Country?.trim(),SSSysId:Number(U?.SSSysId||0),title:U?.title?.trim(),AdultPax:Number(U?.AdultPax||0),ChildPax:Number(U?.ChildPax||0),isTransfer:U?.isTransfer,transUniqueId:U?.transUniqueId,uniqueCode:U?.transUniqueId}]}))}),V?.length>0&&V?.forEach(U=>{const P=Number(U?.itineraryIdx||0);P>=0&&P<u?.dayWiseItinerary?.length&&l(Dn({dayIdx:P,actionType:"newItems",activityType:"dayWisePrivateSightseeing",updates:[{AdultCost:parseFloat(U?.AdultCost||0),AdultMarkup:0,AdultPax:Number(U?.AdultPax||0),ChildMarkup:0,ChildPax:Number(U?.ChildPax||0),CurrencyType:Number(U?.CurrencyType||0),KidsCost:parseFloat(U?.KidsCost||0),currency:U?.currency||"",fromSupplier:U?.fromSupplier||!1,sightSupplierId:Number(U?.sightSupplierId||0),sightSupplierName:U?.sightSupplierName||"",sightseeing:U?.title?.trim(),sightseeingDW:Number(U?.SSSysId||0),CityId:Number(U?.CitySysId||0),cityName:U?.CityName?.trim(),sightseeingTime:"",sightseeingType:3,sightseeingTypeOptional:!1,totalAmountSightseeing:parseFloat(U?.totalAmountSightseeing||0),isTransfer:U?.isTransfer,transUniqueId:U?.transUniqueId,uniqueCode:U?.uniqueCode}]}))})}f()};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"sticky top-0 z-10",children:[p.jsxs("div",{className:"py-2 px-4 flex justify-between items-center gap-3 bg-black text-white",children:[p.jsx("div",{className:"text-xl font-semibold",children:"Search Transfer"}),p.jsxs("div",{className:"flex gap-3 items-center",children:[m?.some(D=>D?.vehicleRoutes?.some(H=>H?.isSelected))?p.jsx("button",{type:"button",onClick:z,className:"bg-(--highlight-color) text-white px-5 py-1",children:"Add"}):"",p.jsx("button",{type:"button",onClick:f,children:p.jsx(Fe,{icon:Or})})]})]}),p.jsxs("div",{className:"grid grid-cols-2 md:flex justify-end items-center gap-3 px-4 py-2 defaultBorder-b bg-white",children:[m?.some(D=>D?.includedSightseeings?.length>0)&&p.jsx("div",{className:"text-sm",children:p.jsx("button",{type:"button",onClick:()=>k("sightTrans",y?.sightTrans==="included"?"":"included"),className:`cursor-pointer px-2 py-1 shadow-sm defaultBorder ${y?.sightTrans==="included"?"bg-sky-100":""}`,children:"Combo Transfers"})}),m?.some(D=>D?.includedCategories?.some(H=>Number(H||0)===1))&&p.jsx("div",{className:"text-sm",children:p.jsx("button",{type:"button",onClick:()=>k("transferType",Number(y?.transferType||0)===1?0:1),className:`cursor-pointer px-2 py-1 shadow-sm defaultBorder ${Number(y?.transferType||0)===1?"bg-sky-100":""}`,children:"Itinerary Transfer"})}),m?.some(D=>D?.includedCategories?.some(H=>i.includes(Number(H||0))))&&p.jsx("div",{className:"text-sm",children:p.jsx("button",{type:"button",onClick:()=>k("transferType",Number(y?.transferType||0)===2?0:2),className:`cursor-pointer px-2 py-1 shadow-sm defaultBorder ${Number(y?.transferType||0)===2?"bg-sky-100":""}`,children:"Point to Point Transfer"})}),p.jsxs("div",{className:"text-sm relative",children:[p.jsxs("button",{type:"button",onClick:()=>k("openStartCity",!y?.openStartCity),className:"flex gap-4 justify-between items-center cursor-pointer px-2 py-1 shadow-sm defaultBorder focus:outline-none w-full",children:[p.jsxs("div",{children:["From: ",w?.find(D=>D.cityId===y.startCity)?.cityName||"All City"]}),p.jsx(Fe,{icon:Ss,className:"text-gray-500"})]}),y?.openStartCity&&p.jsxs("div",{className:"py-2 absolute top-full right-0 w-56 defaultBorder shadow bg-white z-10",children:[p.jsx("button",{type:"button",onClick:()=>k("startCity",0,"openStartCity",!y?.openStartCity),className:"block px-2 py-1 hover:bg-sky-50 w-full text-left",children:"All City"}),w?.map(D=>p.jsx("button",{type:"button",onClick:()=>k("startCity",D.cityId,"openStartCity",!y?.openStartCity),className:"block px-2 py-1 hover:bg-sky-50 w-full text-left",children:D?.cityName||""},D.cityId))]})]}),p.jsxs("div",{className:"text-sm relative",children:[p.jsxs("button",{type:"button",onClick:()=>k("openDestinationCity",!y?.openDestinationCity),className:"flex gap-4 justify-between items-center cursor-pointer px-2 py-1 shadow-sm defaultBorder focus:outline-none w-full",children:[p.jsxs("div",{children:["Destination: ",T?.find(D=>D.cityId===y.destCity)?.cityName||"All City"]}),p.jsx(Fe,{icon:Ss,className:"text-gray-500"})]}),y?.openDestinationCity&&p.jsxs("div",{className:"py-2 absolute top-full right-0 w-56 defaultBorder shadow bg-white z-10",children:[p.jsx("button",{type:"button",onClick:()=>k("destCity",0,"openDestinationCity",!y?.openDestinationCity),className:"block px-2 py-1 hover:bg-sky-50 w-full text-left",children:"All City"}),T?.map(D=>p.jsx("button",{type:"button",onClick:()=>k("destCity",D.cityId,"openDestinationCity",!y?.openDestinationCity),className:"block px-2 py-1 hover:bg-sky-50 w-full text-left",children:D?.cityName||""},D.cityId))]})]}),p.jsxs("div",{className:"col-span-2 md:col-span-1 flex items-center gap-2 px-2 py-1 text-sm defaultBorder flex-1 md:max-w-64 shadow-sm",children:[p.jsx(Fe,{icon:ec,className:"text-gray-500"}),p.jsx("input",{type:"text",name:"query",autoComplete:"one-time-code",className:"focus:outline-none block flex-1 w-full",value:y?.query||"",placeholder:"Search by route name...",onChange:D=>k(D.target.name,D.target.value)})]})]})]}),m?.some(D=>D?.isFiltered)?p.jsx("div",{className:"overflow-y-auto custom-scrollbar p-4",children:m?.filter(D=>D?.isFiltered)?.map((D,H)=>p.jsxs("div",{className:"shadow-xs defaultBorder mb-5 p-0! last:mb-0",children:[p.jsxs("div",{type:"button",onClick:()=>_(Number(D?.RouteSysId||0)),className:"flex gap-3 justify-between items-center cursor-pointer bg-gray-300 px-3 py-2",children:[p.jsxs("div",{children:[p.jsx("h2",{className:"text-base! font-semibold! m-0!",children:D?.RouteName||""}),p.jsxs("div",{className:"text-[12px]! flex gap-2 items-center",children:[D?.dayWisePlanText?.trim()&&p.jsx("div",{children:D?.dayWisePlanText||""}),D?.PerDayCostString?.trim()&&D?.includedCategories?.some(O=>Number(O)===10)&&p.jsx("div",{children:D?.PerDayCostString||""}),D?.includedCategories?.map((O,j)=>p.jsx("div",{className:"px-[5px] font-semibold",style:{background:$ot[O]||"#000000"},children:Kr?.[O||""]||""},j))]})]}),p.jsx(Fe,{icon:x.has(Number(D?.RouteSysId||0))?Kv:Ss})]}),x.has(Number(D?.RouteSysId||0))&&p.jsxs("div",{className:"p-3",children:[D?.includedSightseeings?.length>0&&p.jsxs("div",{className:"defaultBorder text-[13px] p-2",children:[p.jsx("span",{className:"font-semibold",children:"Sightseeings Included - "}),D?.includedSightseeings?.map(O=>Tr(O?.title?.trim()||""))?.join(", ")]}),p.jsx("div",{className:"overflow-x-auto w-full mb-2",children:p.jsxs("table",{className:"w-full text-sm text-left defaultBorder",children:[p.jsx("thead",{className:"text-gray-700",children:p.jsxs("tr",{className:"text-xs bg-stone-100 defaultBorder-b",children:[p.jsx("th",{className:"p-2!",children:"Vehicle Name (Capacity)"}),p.jsx("th",{className:"p-2!",children:"Category"}),p.jsx("th",{className:"p-2!",children:"Pickup Area"}),p.jsx("th",{className:"p-2!",children:"Drop Area"}),Number(u?.adults||0)>0&&p.jsx("th",{className:"p-2!",children:"Adults"}),Number(u?.child||0)>0&&p.jsx("th",{className:"p-2!",children:"Childs"}),p.jsx("th",{className:"p-2!",children:"No Of Vehicle"}),p.jsx("th",{className:"p-2! text-center w-24",children:"Action"})]})}),p.jsx("tbody",{children:D?.vehicleRoutes?.map((O,j)=>p.jsxs("tr",{className:"defaultBorder-b",children:[p.jsxs("td",{className:"p-2! defaultBorder-r font-semibold",children:[p.jsxs("div",{children:[O?.VehicleName||""," (",O?.capacityTransport||"",")"]}),Number(O?.categoryTransport||0)===10?p.jsx("div",{className:"font-normal text-xs",children:[Number(O?.kmIncluded||0)>0?`${O?.kmIncluded||""} kms included`:"",Number(O?.postKMRate||0)>0?`Post limit: ${O?.currency||""} ${O?.postKMRate||""}/km`:""].filter(Boolean)?.join(" | ")||""}):""]}),D?.includedCategories?.length===1?p.jsx("td",{className:"p-2! defaultBorder-r",children:Kr?.[O?.categoryTransport||""]||""}):p.jsx("td",{className:"defaultBorder p-1!",children:p.jsx(We,{type:"select",name:"categoryTransport",value:O?.categoryTransport||"",onChange:M=>q(M.target.name,M.target.value,D.uniqueId,O.uniqueId),inputClass:"text-sm",disabled:O?.isSelected||!1,optionList:[...Object.keys(Kr)?.filter(M=>D?.includedCategories?.includes(M))?.map(M=>({value:M,label:Kr[M]}))||[]]})}),p.jsx("td",{className:"defaultBorder p-1!",children:p.jsx(We,{type:D?.pickUpAreas?.length>0?"select":"text",name:"pickupArea",value:O?.pickupArea||"",onChange:M=>q(M.target.name,M.target.value,D.uniqueId,O.uniqueId),inputClass:"text-sm",disabled:O?.isSelected||!1,optionList:[...D?.pickUpAreas?.map(M=>({value:M,label:M}))||[]]})}),p.jsx("td",{className:"defaultBorder p-1!",children:p.jsx(We,{type:D?.dropAreas?.length>0?"select":"text",name:"dropArea",value:O?.dropArea||"",onChange:M=>q(M.target.name,M.target.value,D.uniqueId,O.uniqueId),inputClass:"text-sm",disabled:O?.isSelected||!1,optionList:[...D?.dropAreas?.map(M=>({value:M,label:M}))||[]]})}),Number(u?.adults||0)>0&&p.jsx("td",{className:"defaultBorder p-1!",children:p.jsx(We,{type:"select",name:"AdultPax",value:O?.AdultPax||"",onChange:M=>q(M.target.name,M.target.value,D.uniqueId,O.uniqueId),inputClass:"text-sm",disabled:O?.isSelected||!1,optionList:[...Array.from({length:Number(u?.adults||0)}).map((M,I)=>({value:I+1,label:I+1}))||[]]})}),Number(u?.child||0)>0&&p.jsx("td",{className:"defaultBorder p-1!",children:p.jsx(We,{type:"select",name:"ChildPax",value:O?.ChildPax||"",onChange:M=>q(M.target.name,M.target.value,D.uniqueId,O.uniqueId),inputClass:"text-sm",disabled:O?.isSelected||!1,optionList:[...Array.from({length:Number(u?.child||0)}).map((M,I)=>({value:I+1,label:I+1}))||[]]})}),p.jsx("td",{className:"defaultBorder p-1!",children:p.jsx(We,{type:"number",name:"directNoOfCar",value:O?.directNoOfCar||"",onChange:M=>q(M.target.name,M.target.value,D.uniqueId,O.uniqueId),inputClass:"text-sm",disabled:O?.isSelected||!1})}),p.jsx("td",{className:"p-1! text-xs text-center",children:Number(D?.RouteSysId||0)===Number(u?.selectedRouteSuggestion?.routeId||0)&&u?.selectedRouteSuggestion?.selectedVehicleIds.includes(Number(O?.uniqueId||0))?p.jsx("button",{type:"button",onClick:$,className:"px-3 py-1 defaultBorder text-white border-greeen-500 bg-rose-500 hover:bg-rose-600",children:"Remove"}):p.jsx("button",{type:"button",onClick:()=>q("isSelected",!O?.isSelected,D.uniqueId,O.uniqueId),className:`px-3 py-1 defaultBorder ${O?.isSelected?"text-white border-greeen-500 bg-green-500 hover:bg-green-600":"highlightTextColor highlightBorder"}`,children:O?.isSelected?"Selected":"Select"})})]},j))})]})})]})]},H))}):p.jsx("div",{className:"p-4 text-lg",children:"No transfers found."})]})}function $ht(e){const{dayIdx:t,inventoryMeals:n}=e,a=lt(N=>N.global),o=lt(N=>N.buildYourOwnData),{closeModal:i}=Fn(),l=on(),[u,d]=B.useState([]),[f,m]=B.useState({}),[g,y]=B.useState(new Set),b=N=>{y(T=>{const A=new Set(T);return A.has(N)?A.delete(N):A.add(N),A})},x=(N,T,A,R)=>{let E={...f,[N]:T};A&&(E[A]=R),m({...E});const $=u?.map(_=>{let k=!0;const q=(E?.query||"")?.toLowerCase()?.trim();q&&q!==""&&(k=_?.mealName?.toLowerCase().includes(q));const z=(E?.mealType||"")?.toLowerCase()?.trim();return z&&z!==""&&(k=k&&_?.mealItems?.some(D=>D?.ServiceTitle?.toLowerCase()?.trim()===z)),{..._,isFiltered:k}});d([...$])};B.useEffect(()=>{const{mealsData:N}=Fpt(n,Number(o?.adults||0),Number(o?.child||0),a?.currencyMap);d(N)},[o?.adults,o?.child,n,a?.currencyMap]);const S=(N,T,A,R)=>{d(E=>{const $=[...E],_=$?.findIndex(k=>k.uniqueId===A);if(_>=0){const k=$?.[_]?.mealItems?.findIndex(q=>q.uniqueId===R);if(k>=0){$[_].mealItems[k][N]=T;const q=$?.[_]?.mealItems?.[k]||{},z=parseFloat(q?.mealAdultCost||0),D=parseFloat(q?.mealChildCost||0),H=Number(q?.mealAdultCount||0),O=Number(q?.TotalChild||0),j=H*z+O*D;$[_].mealItems[k].cost=j}}return $})},w=()=>{const N=[];u?.filter(T=>T?.mealItems?.some(A=>A?.isSelected))?.forEach(T=>{const A=T?.mealItems?.filter(R=>R?.isSelected);N.push(...A)}),N?.length>0&&t>=0&&l(Dn({dayIdx:t,actionType:"newItems",activityType:"meals",updates:N})),i()};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"sticky top-0 z-10",children:[p.jsxs("div",{className:"py-2 px-4 flex justify-between items-center gap-3 bg-black text-white",children:[p.jsx("div",{className:"text-xl font-semibold",children:"Search Meals"}),p.jsxs("div",{className:"flex gap-3 items-center",children:[u?.some(N=>N?.mealItems?.some(T=>T?.isSelected))&&p.jsx("button",{type:"button",onClick:w,className:"bg-(--highlight-color) text-white px-5 py-1",children:"Add"}),p.jsx("button",{type:"button",onClick:i,children:p.jsx(Fe,{icon:Or})})]})]}),p.jsxs("div",{className:"grid grid-cols-2 md:flex justify-end items-center gap-3 px-4 py-2 defaultBorder bg-white",children:[p.jsxs("div",{className:"col-span-2 md:col-span-1 flex items-center gap-2 px-2 py-1 text-sm defaultBorder flex-1 md:max-w-96 shadow-sm",children:[p.jsx(Fe,{icon:ec,className:"text-gray-500"}),p.jsx("input",{type:"text",name:"query",autoComplete:"one-time-code",className:"focus:outline-none block flex-1 w-full",value:f?.query||"",placeholder:"Search by meal name",onChange:N=>x(N.target.name,N.target.value)})]}),p.jsxs("div",{className:"text-sm relative",children:[p.jsxs("button",{type:"button",onClick:()=>x("openMealType",!f?.openMealType),className:"flex gap-4 justify-between items-center cursor-pointer px-2 py-1 shadow-sm defaultBorder focus:outline-none w-full",children:[p.jsxs("div",{children:["Type: ",f?.mealType||"All Meals"]}),p.jsx(Fe,{icon:Ss,className:"text-gray-500"})]}),f?.openMealType&&p.jsxs("div",{className:"py-2 absolute top-full right-0 w-56 defaultBorder shadow bg-white z-10",children:[p.jsx("button",{type:"button",onClick:()=>x("mealType","","openMealType",!f?.openMealType),className:"block px-2 py-1 hover:bg-sky-50 w-full text-left",children:"All Meals"}),Object.values(HD)?.map(N=>p.jsx("button",{type:"button",onClick:()=>x("mealType",N,"openMealType",!f?.openMealType),className:"block px-2 py-1 hover:bg-sky-50 w-full text-left",children:N||""},N))]})]})]})]}),u?.some(N=>N?.mealItems?.length>0&&N?.isFiltered)?p.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar p-4",children:u?.filter(N=>N?.mealItems?.length>0&&N?.isFiltered)?.map((N,T)=>p.jsxs("div",{className:"shadow-xs defaultBorder rounded mb-5 p-0! last:mb-0",children:[p.jsxs("div",{type:"button",onClick:()=>b(N?.uniqueId),className:"flex gap-3 justify-between items-center cursor-pointer bg-gray-300 px-3 py-2",children:[p.jsx("h2",{className:"text-base! font-semibold! bg-gray-300 m-0!",children:N?.mealName}),p.jsx(Fe,{icon:g.has(N?.uniqueId)?Kv:Ss})]}),g.has(N?.uniqueId)&&p.jsx("div",{className:"p-3",children:p.jsx("div",{className:"overflow-x-auto w-full",children:p.jsxs("table",{className:"w-full text-sm text-left defaultBorder",children:[p.jsx("thead",{className:"text-gray-700",children:p.jsxs("tr",{className:"text-xs bg-stone-100 defaultBorder",children:[p.jsx("th",{className:"p-2!",children:"Meals"}),p.jsx("th",{className:"p-2!",children:"Type"}),Number(o?.adults||0)>0&&p.jsx("th",{className:"p-2!",children:"Adult Count"}),Number(o?.child||0)>0&&p.jsx("th",{className:"p-2!",children:"Child Count"}),p.jsx("th",{className:"p-2! w-24 text-center",children:"Action"})]})}),p.jsx("tbody",{children:N?.mealItems?.map((A,R)=>p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"p-2! defaultBorder",children:A?.mealsCategoryDW?.trim()||""}),p.jsx("td",{className:"p-2! defaultBorder",children:A?.ServiceTitle||""}),Number(o?.adults||0)>0&&p.jsx("td",{className:"defaultBorder p-1!",children:p.jsx(We,{type:"select",name:"mealAdultCount",value:A?.mealAdultCount||"",onChange:E=>S(E.target.name,E.target.value,N.uniqueId,A.uniqueId),inputClass:"text-sm",disabled:A?.isSelected||!1,optionList:[...Array.from({length:Number(o?.adults||0)}).map((E,$)=>({value:$+1,label:$+1}))||[]]})}),Number(o?.child||0)>0&&p.jsx("td",{className:"defaultBorder p-1!",children:p.jsx(We,{type:"select",name:"TotalChild",value:A?.TotalChild||"",onChange:E=>S(E.target.name,E.target.value,N.uniqueId,A.uniqueId),inputClass:"text-sm",disabled:A?.isSelected||!1,optionList:[{value:"",label:"-- Select --"},...Array.from({length:Number(o?.child||0)}).map((E,$)=>({value:$+1,label:$+1}))||[]]})}),p.jsx("td",{className:"p-1! text-xs text-center",children:p.jsx("button",{type:"button",onClick:()=>S("isSelected",!A?.isSelected,N.uniqueId,A.uniqueId),className:`px-3 py-1 defaultBorder ${A?.isSelected?"text-white border-greeen-500 bg-green-500 hover:bg-green-600":"highlightTextColor highlightBorder"}`,children:A?.isSelected?"Selected":"Select"})})]},R))})]})})})]},T))}):p.jsx("div",{className:"p-4 text-lg",children:"No meals found."})]})}function Tht(e){const{dayIdx:t,inventoryGuides:n}=e,{closeModal:a}=Fn(),o=on(),i=lt(b=>b.global),[l,u]=B.useState([]),[d,f]=B.useState({}),m=(b,x,S,w)=>{let N={...d,[b]:x};f({...N});const T=l?.map(A=>{let R=!0;const E=(N?.query||"")?.toLowerCase()?.trim();return E&&E!==""&&(R=A?.guideName?.toLowerCase().includes(E)),{...A,isFiltered:R}});u([...T])};B.useEffect(()=>{const b=n?.map(x=>{const S=Number(x?.CurrencySysId||0),w=i?.currencyMap?.[S]||"";return{guideName:x?.GuideName?.trim(),costType:3,supplier:"",supplierId:0,currency:w,CurrencyType:S,fromSupplier:"",totalCost:parseFloat(x?.PerDayRate||0),totalMarkUp:"",finalPrice:parseFloat(x?.PerDayRate||0),uniqueId:Zt(),isSelected:!1,isFiltered:!0}});u([...b])},[n,i?.currencyMap]);const g=(b,x,S)=>{u(w=>{const N=[...w],T=N?.findIndex(A=>A.uniqueId===S);return T>=0&&(N[T][b]=x),N})},y=()=>{const b=l?.filter(x=>x?.isSelected);b?.length>0&&t>=0&&o(Dn({dayIdx:t,actionType:"newItems",activityType:"guides",updates:b})),a()};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"sticky top-0 z-10",children:[p.jsxs("div",{className:"py-2 px-4 flex justify-between items-center gap-3 bg-black text-white",children:[p.jsx("div",{className:"text-xl font-semibold",children:"Search Guides"}),p.jsxs("div",{className:"flex gap-3 items-center",children:[l?.some(b=>b?.isSelected)&&p.jsx("button",{type:"button",onClick:y,className:"bg-(--highlight-color) text-white px-5 py-1",children:"Add"}),p.jsx("button",{type:"button",onClick:a,children:p.jsx(Fe,{icon:Or})})]})]}),p.jsx("div",{className:"grid grid-cols-2 md:flex justify-end items-center gap-3 px-4 py-2 defaultBorder bg-white",children:p.jsxs("div",{className:"col-span-2 md:col-span-1 flex items-center gap-2 px-2 py-1 text-sm defaultBorder flex-1 md:max-w-96 shadow-sm",children:[p.jsx(Fe,{icon:ec,className:"text-gray-500"}),p.jsx("input",{type:"text",name:"query",autoComplete:"one-time-code",className:"focus:outline-none block flex-1 w-full",value:d?.query||"",placeholder:"Search by guide name",onChange:b=>m(b.target.name,b.target.value)})]})})]}),l?.some(b=>b?.isFiltered)?p.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar p-4",children:p.jsx("div",{className:"overflow-x-auto w-full mb-2",children:p.jsxs("table",{className:"w-full text-sm text-left defaultBorder",children:[p.jsx("thead",{className:"text-gray-700",children:p.jsxs("tr",{className:"text-xs bg-stone-100 defaultBorder",children:[p.jsx("th",{className:"p-2!",children:"Guide Name"}),p.jsx("th",{className:"p-2!",children:"Action"})]})}),p.jsx("tbody",{children:l?.filter(b=>b?.isFiltered)?.map((b,x)=>p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("td",{className:"p-2! defaultBorder",children:b?.guideName||""}),p.jsx("td",{className:"p-1! text-xs",children:p.jsx("button",{type:"button",onClick:()=>g("isSelected",!b?.isSelected,b.uniqueId),className:`px-3 py-1 defaultBorder ${b?.isSelected?"text-white border-greeen-500 bg-green-500 hover:bg-green-600":"highlightTextColor highlightBorder"}`,children:b?.isSelected?"Selected":"Select"})})]},x))})]})})}):p.jsx("div",{className:"p-4 text-lg",children:"No guide found."})]})}function _ht(){const e=on(),t=lt(f=>f.buildYourOwnData),n=lt(f=>f.global),{showModal:a,changeModalStyle:o}=Fn(),i=async f=>{const m=Number(t?.dayWiseItinerary?.[f]?.CitySysId||0),g=Number(t?.startCity_id||0),y=g>0?g:m,b=Number(t?.dayWiseItinerary?.[f-1]?.CitySysId||0),x=Number(t?.dayWiseItinerary?.[f+1]?.CitySysId||0),S=JSON.stringify({CityId:f===0?y:b,EndCity:f===t?.dayWiseItinerary.length-1?y:x,DestinationId:m,FromDate:Ze(new Date(t?.dayWiseItinerary?.[f]?.dayDate||"")),ToDate:Ze(new Date(t?.dayWiseItinerary?.[t?.dayWiseItinerary.length-1]?.EndDate||""))});try{const w=`${sr}webservice/inventory-data/transfer`,{data:N}=await Tt.post(w,S,{headers:{SecurityKey:n?.securityKey}});N?.status&&N?.data?.length>0?(o("slide"),a(p.jsx(Eht,{dayIdx:f,inventoryTransfers:N?.data||[],fromDate:new Date(t?.dayWiseItinerary?.[f]?.dayDate||""),toDate:new Date(t?.dayWiseItinerary?.[t?.dayWiseItinerary.length-1]?.EndDate||"")}))):rt.error("No transfers found.")}catch(w){console.error("Error fetching inventory transfers:",w)}},l=async f=>{const m=rL(t?.dayWiseItinerary?.[f]?.CitySysId,t?.dayWiseItinerary?.[f-1]?.CitySysId||null);if(!m||m?.trim()==="")return rt.error("Enter valid city in hotel options or destinations covered."),!1;const g=JSON.stringify({CityIds:m,FromDate:t?.dayWiseItinerary?.[f]?.dayDate,TotalPax:Number(t?.adults||0)+Number(t?.child||0),MarketSysId:2});try{const{data:y}=await Tt.post(`${sr}webservice/inventory-data/sightseeing`,g,{headers:{SecurityKey:n?.securityKey}});y?.status&&y?.data?.length>0?(o("slide"),a(p.jsx(wht,{dayIdx:f,inventorySightseeing:y?.data||[]}))):rt.error("No sightseeing found.")}catch(y){console.error("Error fetching inventory sightseeing:",y)}},u=async f=>{const m=Number(t?.dayWiseItinerary?.[f]?.CitySysId||0),g=JSON.stringify({CityId:m});try{const y=`${sr}webservice/inventory-data/meal`,{data:b}=await Tt.post(y,g,{headers:{SecurityKey:n?.securityKey}});b?.status&&b?.data?.length>0?(o("slide"),a(p.jsx($ht,{dayIdx:f,inventoryMeals:b?.data||[]}))):rt.error("No meals found.")}catch(y){console.error("Error fetching inventory meals:",y)}},d=async f=>{const m=Number(t?.dayWiseItinerary?.[f]?.CitySysId||0),g=JSON.stringify({CityId:m});try{const y=`${sr}webservice/inventory-data/guide`,{data:b}=await Tt.post(y,g,{headers:{SecurityKey:n?.securityKey}});b?.status&&b?.data?.length>0?(o("slide"),a(p.jsx(Tht,{dayIdx:f,inventoryGuides:b?.data||[]}))):rt.error("No guides found.")}catch(y){console.error("Error fetching inventory guides:",y)}};return p.jsx(p.Fragment,{children:p.jsxs("div",{children:[p.jsx("div",{className:"defaultBorder mb-3 p-0!",children:p.jsxs("div",{className:"bg-zinc-900 text-white p-3",children:[p.jsxs("span",{className:"text-xl",children:[[t?.startCity?.trim(),t?.endCity?.trim()].filter(Boolean)?.join(" to ")," "]}),p.jsxs("span",{className:"text-xs",children:[dn(t?.StartDate)," - ",dn(t?.EndDate),"  (",(()=>{const f=Number(t?.adults||0),m=Number(t?.child||0),g=Number(t?.infant||0),y=f>0?`${f} Adults`:void 0,b=m>0?`${m} Child`:void 0,x=g>0?`${g} Infant`:void 0;return[y,b,x].filter(Boolean)?.join(", ")})(),")"]})]})}),t?.dayWiseItinerary?.map((f,m)=>p.jsxs("div",{className:"mb-3 p-0! shadow",children:[p.jsxs("div",{className:"px-3 py-2 bg-black text-white",children:["Day ",m+1," - ",f?.dayWiseTitleToShow?.trim()||f?.Cities?.trim()||""," (",dn(f.dayDate),")"]}),p.jsxs("div",{className:"bg-white p-3 space-y-4",children:[f?.transfers?.length>0&&p.jsx("div",{className:"overflow-x-auto w-full mb-2",children:p.jsxs("table",{className:"w-full text-sm text-left defaultBorder",children:[p.jsxs("thead",{className:"text-gray-700",children:[p.jsx("tr",{className:"defaultBorder",children:p.jsx("th",{colSpan:8,className:"p-2! text-black text-sm!",children:"Transfer Details"})}),p.jsxs("tr",{className:"text-xs bg-stone-100 defaultBorder-b",children:[p.jsx("th",{className:"p-2!",children:"Vehicle Name (Capacity)"}),p.jsx("th",{className:"p-2!",children:"Category"}),p.jsx("th",{className:"p-2!",children:"Pickup Area"}),p.jsx("th",{className:"p-2!",children:"Drop Area"}),p.jsx("th",{className:"p-2!",children:"Pax Count"}),p.jsx("th",{className:"p-2!",children:"No Of Vehicle"}),p.jsx("th",{className:"p-2! text-center w-24",children:"Action"})]})]}),p.jsx("tbody",{children:f?.transfers?.map((g,y)=>p.jsxs(B.Fragment,{children:[p.jsxs("tr",{className:"defaultBorder-b",children:[p.jsxs("td",{className:"p-2! defaultBorder",children:[g?.VehicleName||""," (",g?.capacityTransport||"",")"]}),p.jsx("td",{className:"p-2! defaultBorder",children:Kr?.[g?.categoryTransport||""]||""}),p.jsx("td",{className:"p-2! defaultBorder",children:g?.pickupArea||""}),p.jsx("td",{className:"p-2! defaultBorder",children:g?.dropArea||""}),p.jsx("td",{className:"p-2! defaultBorder",children:g?.paxCount||""}),p.jsx("td",{className:"p-2! defaultBorder",children:g?.directNoOfCar||""}),p.jsx("td",{className:"p-1! text-center",children:!(g?.isSightseeing&&f?.sightseeing?.some(b=>g?.sightUniqueId===b?.uniqueId))&&p.jsx("button",{type:"button",onClick:()=>e(Dn({actionType:"remove",dayIdx:m,activityType:"transfers",activityIdx:y})),className:"w-6 h-6 text-sm bg-rose-100 rounded text-rose-600! cursor-pointer",children:p.jsx(Fe,{icon:hi})})})]}),g?.includedSightseeings?.length>0&&p.jsx("tr",{className:"defaultBorder-b",children:p.jsxs("td",{className:"p-2! text-xs!",colSpan:8,children:[p.jsx("span",{className:"font-semibold",children:"Sightseeing Included:"})," ",g?.includedSightseeings?.map(b=>Tr(b?.title?.trim()||""))?.join(", ")||""]})})]},y))})]})}),(f?.sightseeing?.length>0||f?.dayWisePrivateSightseeing?.length>0)&&p.jsx("div",{className:"overflow-x-auto w-full mb-2",children:p.jsxs("table",{className:"w-full text-sm text-left defaultBorder",children:[p.jsxs("thead",{className:"text-gray-700",children:[p.jsx("tr",{className:"defaultBorder",children:p.jsx("th",{colSpan:7,className:"p-2! text-black text-sm!",children:"Sightseeing Details"})}),p.jsxs("tr",{className:"text-xs bg-stone-100 defaultBorder-b",children:[p.jsx("th",{className:"p-2!",children:"Sightseeing Name"}),p.jsx("th",{className:"p-2!",children:"Type"}),Number(t?.adults||0)>0&&p.jsx("th",{className:"p-2!",children:"Adults"}),Number(t?.child||0)>0&&p.jsx("th",{className:"p-2!",children:"Child"}),p.jsx("th",{className:"p-2! text-center w-24",children:"Action"})]})]}),p.jsxs("tbody",{children:[f?.sightseeing?.map((g,y)=>p.jsxs("tr",{className:"defaultBorder-b",children:[p.jsx("td",{className:"p-2! defaultBorder",children:Zr(g?.sightseeing||"")}),p.jsx("td",{className:"p-2! defaultBorder",children:Fl?.[g?.sightseeingType||""]||""}),Number(t?.adults||0)>0&&p.jsx("td",{className:"p-2! defaultBorder",children:g?.AdultPax||""}),Number(t?.child||0)>0&&p.jsx("td",{className:"p-2! defaultBorder",children:g?.ChildPax||""}),p.jsx("td",{className:"p-1! text-center",children:p.jsx("button",{type:"button",onClick:()=>e(Dn({actionType:"remove",dayIdx:m,activityType:"sightseeing",activityIdx:y})),className:"w-6 h-6 text-sm bg-rose-100 rounded text-rose-600! cursor-pointer",children:p.jsx(Fe,{icon:hi})})})]},y)),f?.dayWisePrivateSightseeing?.map((g,y)=>p.jsxs("tr",{className:"defaultBorder-b",children:[p.jsx("td",{className:"p-2! defaultBorder",children:Zr(g?.title||"")}),p.jsx("td",{className:"p-2! defaultBorder",children:"PVT"}),Number(t?.adults||0)>0&&p.jsx("td",{className:"p-2! defaultBorder",children:g?.AdultPax||""}),Number(t?.child||0)>0&&p.jsx("td",{className:"p-2! defaultBorder",children:g?.ChildPax||""}),p.jsx("td",{className:"p-2"})]},y))]})]})}),f?.meals?.length>0&&p.jsx("div",{className:"overflow-x-auto w-full mb-2",children:p.jsxs("table",{className:"w-full text-sm text-left defaultBorder",children:[p.jsxs("thead",{className:"text-gray-700",children:[p.jsx("tr",{className:"defaultBorder",children:p.jsx("th",{colSpan:7,className:"p-2! text-black text-sm!",children:"Meals Details"})}),p.jsxs("tr",{className:"text-xs bg-stone-100 defaultBorder-b",children:[p.jsx("th",{className:"p-2!",children:"Meals"}),p.jsx("th",{className:"p-2!",children:"Type"}),p.jsx("th",{className:"p-2!",children:"Short Description"}),Number(t?.adults||0)>0&&p.jsx("th",{className:"p-2!",children:"Adult Count"}),Number(t?.child||0)>0&&p.jsx("th",{className:"p-2!",children:"Child Count"}),p.jsx("th",{className:"p-2! text-center w-24",children:"Action"})]})]}),p.jsx("tbody",{children:f?.meals?.map((g,y)=>p.jsxs("tr",{className:"defaultBorder-b",children:[p.jsx("td",{className:"p-2! defaultBorder",children:g?.mealsCategoryDW?.trim()||""}),p.jsx("td",{className:"p-2! defaultBorder",children:g?.ServiceTitle||""}),p.jsx("td",{className:"p-2! defaultBorder",children:g?.mealsOptionsDW||""}),Number(t?.adults||0)>0&&p.jsx("td",{className:"p-2! defaultBorder",children:g?.mealAdultCount||""}),Number(t?.child||0)>0&&p.jsx("td",{className:"p-2! defaultBorder",children:g?.TotalChild||""}),p.jsx("td",{className:"p-1! text-center",children:p.jsx("button",{type:"button",onClick:()=>e(Dn({actionType:"remove",dayIdx:m,activityType:"meals",activityIdx:y})),className:"w-6 h-6 text-sm bg-rose-100 rounded text-rose-600! cursor-pointer",children:p.jsx(Fe,{icon:hi})})})]},y))})]})}),f?.guides?.length>0&&p.jsx("div",{className:"overflow-x-auto w-full mb-2",children:p.jsxs("table",{className:"w-full text-sm text-left defaultBorder",children:[p.jsxs("thead",{className:"text-gray-700",children:[p.jsx("tr",{className:"defaultBorder",children:p.jsx("th",{colSpan:4,className:"p-2! text-black text-sm!",children:"Guide Details"})}),p.jsxs("tr",{className:"text-xs bg-stone-100 defaultBorder-b",children:[p.jsx("th",{className:"p-2!",children:"Guide Name"}),p.jsx("th",{className:"p-2!",children:"Cost Type"}),p.jsx("th",{className:"p-2! text-center w-24",children:"Action"})]})]}),p.jsx("tbody",{children:f?.guides?.map((g,y)=>p.jsxs("tr",{className:"defaultBorder-b",children:[p.jsx("td",{className:"p-2! defaultBorder",children:g?.guideName?.trim()||""}),p.jsx("td",{className:"p-2! defaultBorder",children:jot?.[g?.costType||""]||""}),p.jsx("td",{className:"p-1! text-center",children:p.jsx("button",{type:"button",onClick:()=>e(Dn({actionType:"remove",dayIdx:m,activityType:"guides",activityIdx:y})),className:"w-6 h-6 text-sm bg-rose-100 rounded text-rose-600! cursor-pointer",children:p.jsx(Fe,{icon:hi})})})]},y))})]})}),p.jsxs("div",{className:"flex flex-wrap gap-2",children:[t?.IsTransferSelected&&p.jsxs("div",{className:"flex justify-between bg-stone-200",children:[p.jsx("div",{className:"px-2 py-1 text-sm font-semibold",children:"Transfer(s)"}),p.jsx("button",{type:"button",className:"bg-(--highlight-color) text-white px-3 flex items-center",onClick:()=>i(m),children:p.jsx("span",{className:"text-xs",children:"Add"})})]}),t?.IsSightseeingSelected&&p.jsxs("div",{className:"flex justify-between bg-stone-200",children:[p.jsx("div",{className:"px-2 py-1 text-sm font-semibold",children:"Sightseeing(s)"}),p.jsx("button",{type:"button",className:"bg-(--highlight-color) text-white px-3 flex items-center",onClick:()=>l(m),children:p.jsx("span",{className:"text-xs",children:"Add"})})]}),t?.IsMealsSelected&&p.jsxs("div",{className:"flex justify-between bg-stone-200",children:[p.jsx("div",{className:"px-2 py-1 text-sm font-semibold",children:"Meal(s)"}),p.jsx("button",{type:"button",className:"bg-(--highlight-color) text-white px-3 flex items-center",onClick:()=>u(m),children:p.jsx("span",{className:"text-xs",children:"Add"})})]}),t?.IsGuideSelected&&p.jsxs("div",{className:"flex justify-between bg-stone-200",children:[p.jsx("div",{className:"px-2 py-1 text-sm font-semibold",children:"Guide(s)"}),p.jsx("button",{type:"button",className:"bg-(--highlight-color) text-white px-3 flex items-center",onClick:()=>d(m),children:p.jsx("span",{className:"text-xs",children:"Add"})})]})]})]})]},m))]})})}function Aht(){const e=on(),{showModal:t,changeModalWidth:n}=Fn(),a=lt(i=>i.buildYourOwnData),o=()=>{const i=Number(a?.currentStep||0);let l=i+1;if(i===2&&!a?.IsTransferSelected&&!a?.IsSightseeingSelected&&!a?.IsMealsSelected&&!a?.IsGuideSelected&&(l=4),i===2){const u=a?.hotelCities?.filter(f=>!f?.hotelSelf)||[];for(let f=0;f<u.length;f++){const g=u[f]?.uniqueId,y=Object.values(a?.selectedHotels?.[g]||{});if(y.length===0||y.some(x=>Number(x?.hidden_selected_hotel_id||0)<=0)){e(Lt({selectedCity:g}));return}}const d={};a?.hotelCities?.filter(f=>!f?.hotelSelf)?.forEach(f=>{d[f.uniqueId]={...a?.selectedHotels?.[f.uniqueId]||{}}}),Object.values(d)?.every(f=>Object.values(f)?.length===1)?e(Lt({currentStep:l})):(n("max-w-5xl"),t(()=>p.jsx(Y1,{nextStep:l})));return}e(Lt({currentStep:l}))};return p.jsx(p.Fragment,{children:p.jsxs("div",{className:"defaultBorder sticky top-3 pb-14",children:[p.jsxs("div",{className:"overflow-y-auto max-h-[calc(100vh-8rem)]",children:[a?.IsHotelSelected&&a?.hotelCities?.some(i=>!i?.hotelSelf)&&p.jsxs("div",{children:[p.jsx("div",{className:"bg-zinc-900 text-center p-3 text-white text-xl leading-none",children:"Hotel Selected"}),a?.hotelCities?.filter(i=>!i?.hotelSelf)?.map((i,l)=>p.jsxs("div",{children:[p.jsxs("div",{className:"bg-gray-200 px-3 py-2 border-b border-gray-300",children:[p.jsxs("div",{className:"text-base",children:[Number(i?.noofnight||0)>0&&p.jsxs("span",{className:"font-semibold",children:[i?.noofnight||0,"N"]})," ",i?.destinationName?.trim()||""]}),i?.CheckIn&&p.jsxs("div",{className:"text-xs",children:[dn(i?.CheckIn||"")," - ",dn(i?.CheckOut||"")]})]}),Object.keys(a?.selectedHotels?.[i?.uniqueId||""]||{})?.map((u=>{const d=a?.selectedHotels?.[i?.uniqueId||""]?.[u];return p.jsx("div",{className:"bg-white",children:p.jsxs("div",{className:"px-3 py-2 space-y-1 hover:bg-slate-100 border-b border-gray-200",children:[p.jsxs("div",{className:"flex justify-between gap-4 text-sm mb-1",children:[p.jsxs("div",{className:"font-semibold",children:["Option ",u]}),p.jsx("button",{type:"button",onClick:()=>e(kj({selectedCity:i?.uniqueId,hotelIdx:u})),className:"text-rose-600!",children:p.jsx(Fe,{icon:go})})]}),p.jsxs("div",{className:"text-sm mb-2",children:[d?.hotel_name?.trim()||"","  ",Array.from({length:Number(d?.starRating||0)})?.map((f,m)=>p.jsx("span",{className:"text-xs text-yellow-500",children:p.jsx(Fe,{icon:Mp})},m)),Array.from({length:5-Number(d?.starRating||0)})?.map((f,m)=>p.jsx("span",{className:"text-xs",children:p.jsx(Fe,{icon:Mp})},m))]}),d?.rooms?.map((f,m)=>p.jsxs("div",{className:"text-gray-500 text-xs",children:["Room ",m+1,": ",f?.room," | ",f?.mealPlan," (",(()=>{const g=Number(f?.AdultPax||0)+Number(f?.ExtraAdultPax||0),y=Number(f?.ExtraBedChildPax||0)+Number(f?.NoBedChildPax||0),b=Number(f?.InfantPax||0),x=g>0?`${g} Adults`:void 0,S=y>0?`${y} Child`:void 0,w=b>0?`${b} Infant`:void 0;return[x,S,w].filter(Boolean)?.join(", ")})(),")"]},m))]})},u)}))]},l))]}),(a?.IsTransferSelected||a?.IsSightseeingSelected||a?.IsMealsSelected||a?.IsGuideSelected)&&p.jsxs("div",{children:[p.jsx("div",{className:"bg-zinc-900 text-center p-3 text-white text-xl leading-none",children:"Itinerary"}),a?.dayWiseItinerary?.map((i,l)=>p.jsxs("div",{children:[p.jsxs("div",{className:"bg-gray-500 text-white text-center px-3 py-2 border-b border-t border-gray-300 text-xs",children:["Day ",l+1," (",dn(i.dayDate),") ",i?.dayWiseTitleToShow?.trim()||i?.Cities?.trim()||""]}),p.jsxs("div",{className:"p-3 space-y-3",children:[i?.transfers?.length>0&&p.jsxs("div",{className:"defaultBorder",children:[p.jsx("div",{className:"text-sm font-semibold px-3 py-1 bg-slate-200 defaultBorder-b",children:"Transfers"}),i?.transfers?.map((u,d)=>p.jsxs("div",{className:"defaultBorder-b last:border-0 text-xs px-3 py-1 flex gap-2 justify-between items-center",children:[p.jsxs("div",{children:[u?.VehicleName?.trim()||""," ",Number(u?.directNoOfCar||0)>0?`(x${u?.directNoOfCar||""}) `:"",(u?.pickupArea?.trim()||u?.dropArea?.trim())&&`(${[u?.pickupArea?.trim(),u?.dropArea?.trim()].filter(Boolean)?.join(" - ")})`]}),!(u?.isSightseeing&&i?.sightseeing?.some(f=>u?.sightUniqueId===f?.uniqueId))&&p.jsx("button",{type:"button",onClick:()=>e(Dn({actionType:"remove",dayIdx:l,activityType:"transfers",activityIdx:d})),className:"text-rose-600!",children:p.jsx(Fe,{icon:go})})]},d))]}),(i?.sightseeing?.length>0||i?.dayWisePrivateSightseeing?.length>0)&&p.jsxs("div",{className:"defaultBorder",children:[p.jsx("div",{className:"text-sm font-semibold px-3 py-1 bg-slate-200 defaultBorder-b",children:"Sightseeings"}),i?.sightseeing?.map((u,d)=>p.jsxs("div",{className:"defaultBorder-b last:border-0 text-xs px-3 py-1 flex gap-2 justify-between items-center",children:[p.jsxs("div",{children:[Zr(u?.sightseeing?.trim()||"")," (",Fl?.[u?.sightseeingType||""]||"",")"]}),p.jsx("button",{type:"button",onClick:()=>e(Dn({actionType:"remove",dayIdx:l,activityType:"sightseeing",activityIdx:d})),className:"text-rose-600!",children:p.jsx(Fe,{icon:go})})]},d)),i?.dayWisePrivateSightseeing?.map((u,d)=>p.jsx("div",{className:"defaultBorder-b last:border-0 text-xs px-3 py-1 flex gap-2 justify-between items-center",children:p.jsxs("div",{children:[Zr(u?.title?.trim()||"")," (PVT)"]})},d))]}),i?.meals?.length>0&&p.jsxs("div",{className:"defaultBorder",children:[p.jsx("div",{className:"text-sm font-semibold px-3 py-1 bg-slate-200 defaultBorder-b",children:"Meals"}),i?.meals?.map((u,d)=>p.jsxs("div",{className:"defaultBorder-b last:border-0 text-xs px-3 py-1 flex gap-2 justify-between items-center",children:[p.jsxs("div",{children:[u?.mealsCategoryDW?.trim()||""," ",u?.ServiceTitle?.trim()?`(${u?.ServiceTitle?.trim()||""})`:""]}),p.jsx("button",{type:"button",onClick:()=>e(Dn({actionType:"remove",dayIdx:l,activityType:"meals",activityIdx:d})),className:"text-rose-600!",children:p.jsx(Fe,{icon:go})})]},d))]}),i?.guides?.length>0&&p.jsxs("div",{className:"defaultBorder",children:[p.jsx("div",{className:"text-sm font-semibold px-3 py-1 bg-slate-200 defaultBorder-b",children:"Guides"}),i?.guides?.map((u,d)=>p.jsxs("div",{className:"defaultBorder-b last:border-0 text-xs px-3 py-1 flex gap-2 justify-between items-center",children:[p.jsx("div",{children:u?.guideName?.trim()||""}),p.jsx("button",{type:"button",onClick:()=>e(Dn({actionType:"remove",dayIdx:l,activityType:"guides",activityIdx:d})),className:"text-rose-600!",children:p.jsx(Fe,{icon:go})})]},d))]})]})]},l))]})]}),p.jsx("div",{className:"p-3 bg-white absolute bottom-0 left-0 w-full defaultBorder-t",children:p.jsx("button",{type:"button",onClick:o,className:"bg-(--highlight-color) block w-full px-3 py-1 text-sm text-white font-semibold cursor-pointer",children:"Next"})})]})})}function Dht(){const e=on(),{showModal:t,changeModalWidth:n}=Fn(),a=lt(i=>i.buildYourOwnData),o=(i,l)=>{if(Number(l)!==1&&Number(a?.currentStep||0)===2){const u=a?.hotelCities?.filter(f=>!f?.hotelSelf)||[];for(let f=0;f<u.length;f++){const m=u[f],g=m?.uniqueId,y=Object.values(a?.selectedHotels?.[g]||{});if(y.length===0||y.some(x=>Number(x?.hidden_selected_hotel_id||0)<=0)){rt.error(`Enter valid Hotel for City ${f+1} ${m?.destinationName||""}`),e(Lt({selectedCity:g}));return}}const d={};a?.hotelCities?.filter(f=>!f?.hotelSelf)?.forEach(f=>{d[f.uniqueId]={...a?.selectedHotels?.[f.uniqueId]||{}}}),Object.values(d)?.every(f=>Object.values(f)?.length===1)?e(Lt({currentStep:l})):(n("max-w-5xl"),t(()=>p.jsx(Y1,{nextStep:l})));return}e(Lt({[i]:l}))};return p.jsx(p.Fragment,{children:p.jsxs("div",{className:`bg-gray-100 p-3 ${[1,2,3].includes(Number(a?.currentStep||0))?"grid grid-cols-4 gap-4 items-start":""}`,children:[p.jsxs("div",{className:[1,2,3].includes(Number(a?.currentStep||0))?"col-span-3":"",children:[p.jsx("div",{className:"relative p-3! mb-3 bg-zinc-800 shadow",children:Number(a?.currentStep||0)===1?p.jsx(Zpt,{}):p.jsx("div",{className:"flex gap-3 flex-wrap p-0!",children:Eot?.filter(i=>!i?.checkName||i?.checkName?.some(l=>a[l]))?.map((i,l)=>p.jsxs("button",{onClick:()=>o("currentStep",Number(i?.stepId||0)),className:`text-white text-left py-2 px-4 cursor-pointer ${Number(a?.currentStep||0)===Number(i?.stepId||0)?"bg-(--highlight-color)":"bg-black"} hover:bg-(--highlight-color)`,children:[p.jsxs("div",{className:"text-xs font-semibold",children:["Step ",l+1]}),p.jsx("div",{className:"text-xs",children:i?.name||""})]},l))})}),Number(a?.currentStep||0)===1&&p.jsxs(p.Fragment,{children:[a?.tripSuggestion?.length>0&&p.jsx(Nht,{}),p.jsx(Qpt,{})]}),Number(a?.currentStep||0)===2&&p.jsx(vht,{}),Number(a?.currentStep||0)===3&&p.jsx(_ht,{}),Number(a?.currentStep||0)===4&&p.jsx(Cht,{})]}),(Number(a?.currentStep||0)===2||Number(a?.currentStep||0)===3)&&p.jsx(Aht,{})]})})}const Uj=Wh({name:"transferBooking",initialState:{currentStep:1},reducers:{updateTransferBookingData:(e,t)=>{const n=t.payload;Object.entries(n).forEach(([a,o])=>{e[a]=o})},updateInnerObjectKeys:(e,t)=>{const{updates:n,objectVar:a}=t.payload;Object.entries(n).forEach(([o,i])=>{e[a][o]=i})}}}),{updateTransferBookingData:Co,updateInnerObjectKeys:jht}=Uj.actions,Rht=Uj.reducer;function Oht(){const e=on(),t=lt(m=>m.global),n=lt(m=>m.transferBooking),[a,o]=B.useState({transType:1,adults:2}),[i,l]=B.useState(!1),u=(m,g,y,b)=>{o(x=>({...x,[m]:g,...y?.trim()?{[y]:b}:{}}))},d=()=>{e(Co({transferVehicles:[],isTransfersFetched:!1,transType:0,startCity:"",startCity_id:0,endCity:"",endCity_id:0,StartDate:"",startTime:""}))},f=async()=>{if(Number(a?.startCity_id||0)<=0)return rt.error("Enter valid from city."),!1;if(Number(a?.transType||0)!==8&&Number(a?.endCity_id||0)<=0)return rt.error("Enter valid to city."),!1;if(!a?.StartDate)return rt.error("Enter valid pick up date."),!1;if(!a?.startTime)return rt.error("Enter valid pick up time."),!1;if(Number(a?.adults||0)<=0)return rt.error("Enter valid number of adults."),!1;l(!0);const m=Number(a?.startCity_id||0),g=a?.startCity||"",y=Number(a?.endCity_id||0),b=a?.endCity||"",x=[8].includes(Number(a?.transType||0))?m:y,S=[8].includes(Number(a?.transType||0))?g:b,w=[8].includes(Number(a?.transType||0))?m:y,N=[8].includes(Number(a?.transType||0))?g:b,T=JSON.stringify({CityId:m,EndCity:x,DestinationId:w,FromDate:a?.StartDate?Ze(new Date(a?.StartDate)):"",ToDate:a?.StartDate?Ze(new Date(a?.StartDate)):""});try{const{data:A}=await Tt.post(`${sr}webservice/inventory-data/transfer`,T,{headers:{SecurityKey:t?.securityKey||""}});if(A?.status){const{transportData:R}=Gpt(A?.data,t?.currencyMap,Number(a?.transType||0),Number(a?.adults||0),Number(a?.child||0),a?.StartDate,m,g,x,S);R?.length>0?e(Co({transferVehicles:[...R],isTransfersFetched:!0,transType:Number(a?.transType||0),startCity:g,startCity_id:m,endCity:S,endCity_id:x,destinationCity:N,destinationCity_id:w,StartDate:a?.StartDate||"",startTime:a?.startTime||"",adults:Number(a?.adults||0),child:Number(a?.child||0),infant:Number(a?.infant||0),queryData:{...a}})):rt.error("No transfers found.")}else rt.error("No transfers found.")}catch(A){console.error("Error fetching transport data:",A),rt.error("Some error occurred.")}finally{l(!1)}};return B.useEffect(()=>{o({...n?.queryData||{transType:1,adults:2}})},[n?.queryData]),p.jsx(p.Fragment,{children:p.jsxs("div",{className:"bg-zinc-800 shadow p-3",children:[p.jsx("div",{className:"flex gap-2 items-center text-sm mb-3 p-0!",children:FD?.map((m,g)=>p.jsx("button",{type:"button",disabled:n?.isTransfersFetched||!1,onClick:()=>u("transType",Number(m?.id||0)),className:`px-3 py-1 disabled:cursor-not-allowed! ${Number(a?.transType||0)===Number(m?.id||0)?"bg-(--highlight-color) text-white!":"bg-white disabled:opacity-70"}`,children:m?.name||""},g))}),p.jsxs("div",{className:"flex gap-3 text-sm mb-3 p-0!",children:[p.jsx(We,{type:"cityFromTransport",label:"From City",labelClass:"text-white",name:"startCity",value:a?.startCity||"",onChange:m=>u(m.target.name,m.target.value,"startCity_id",m.target.cityId),placeholder:"From City",inputClass:"bg-white w-full",divClass:"flex-1 max-w-64",disabled:n?.isTransfersFetched||!1}),Number(a?.transType||0)!==8&&p.jsx(We,{type:"cityFromTransport",label:"To City",labelClass:"text-white",name:"endCity",value:a?.endCity||"",onChange:m=>u(m.target.name,m.target.value,"endCity_id",m.target.cityId),placeholder:"To City",inputClass:"bg-white w-full",divClass:"flex-1 max-w-64",disabled:n?.isTransfersFetched||!1}),p.jsx(We,{type:"date",label:"Pick Up Date",labelClass:"text-white",name:"StartDate",value:a?.StartDate||"",onChange:m=>u(m.target.name,m.target.value),placeholder:"MMM DD, YYYY",inputClass:"bg-white w-full text-sm",divClass:"flex-1 max-w-64",minDate:o_(new Date).slice(0,16),disabled:n?.isTransfersFetched||!1}),p.jsx(We,{type:"time",label:"Pick Up Time",labelClass:"text-white",name:"startTime",value:a?.startTime||"",onChange:m=>u(m.target.name,m.target.value),placeholder:"HH:MM",inputClass:"bg-white w-full text-sm",divClass:"flex-1 max-w-64",disabled:n?.isTransfersFetched||!1})]}),p.jsxs("div",{className:"flex gap-3 text-sm mb-3 p-0!",children:[p.jsx(We,{type:"number",label:"No of Adult (+ 12Yrs)",labelClass:"text-white",name:"adults",value:a?.adults||"",onChange:m=>u(m.target.name,m.target.value),inputClass:"bg-white w-full",divClass:"flex-1 max-w-64",disabled:n?.isTransfersFetched||!1}),p.jsx(We,{type:"number",label:"No of Child (2 - 12 Yrs)",labelClass:"text-white",name:"child",value:a?.child||"",onChange:m=>u(m.target.name,m.target.value),inputClass:"bg-white w-full",divClass:"flex-1 max-w-64",disabled:n?.isTransfersFetched||!1}),p.jsx(We,{type:"number",label:"No of Infant (0 - 2 Yrs)",labelClass:"text-white",name:"infant",value:a?.infant||"",onChange:m=>u(m.target.name,m.target.value),inputClass:"bg-white w-full",divClass:"flex-1 max-w-64",disabled:n?.isTransfersFetched||!1})]}),p.jsx("div",{className:"flex justify-end text-sm",children:n?.isTransfersFetched?p.jsx("button",{type:"button",onClick:d,className:"bg-(--highlight-color) px-3 py-1 text-white font-semibold cursor-pointer! disabled:opacity-30 disabled:cursor-not-allowed!",children:"Modify"}):p.jsx("button",{type:"button",onClick:f,disabled:i,className:"bg-(--highlight-color) px-3 py-1 text-white font-semibold cursor-pointer! disabled:opacity-30 disabled:cursor-not-allowed!",children:i?"Loading...":"Explore Transfers"})})]})})}function Iht(){const e=on(),t=lt(f=>f.transferBooking),[n,a]=B.useState([]),[o,i]=B.useState({}),l=(f,m)=>i(g=>({...g,[f]:m})),u=f=>{e(Co({selectedVehicle:{...f},currentStep:2}))},d=()=>{e(Co({selectedVehicle:{}}))};return B.useEffect(()=>{let f=[...t?.transferVehicles?.map(g=>({...g}))||[]];const m=o?.query?.trim()?.toLowerCase()||void 0;f=f?.filter(g=>{if(m){const y=(g?.VehicleName||"").toLowerCase();return(g?.RouteName||"").toLowerCase().includes(m)||y.includes(m)}return!0})||[],a([...f])},[t?.transferVehicles,o]),t?.isTransfersFetched?p.jsx(p.Fragment,{children:p.jsxs("div",{className:"mt-3 p-3 bg-white shadow",children:[p.jsxs("div",{className:"mb-3 p-0! flex gap-3 items-center",children:[p.jsx("div",{className:"text-lg font-semibold flex-1",children:"Suggested Transfers"}),p.jsxs("div",{className:"flex items-center gap-2 px-2 py-1 text-sm defaultBorder flex-1 md:max-w-80",children:[p.jsx(Fe,{icon:ec,className:"text-gray-500"}),p.jsx("input",{type:"text",name:"query",autoComplete:"one-time-code",className:"focus:outline-none block flex-1 w-full text-gray-700!",value:o?.query||"",placeholder:"Search by route name / vehicle...",onChange:f=>l(f.target.name,f.target.value)})]})]}),p.jsx("div",{className:"overflow-y-auto",children:p.jsxs("table",{className:"w-full text-left defaultBorder text-sm",children:[p.jsx("thead",{className:"text-xs text-gray-700 uppercase bg-stone-100 sticky top-0",children:p.jsxs("tr",{className:"defaultBorder-b",children:[p.jsx("th",{className:"p-2!",children:"Vehicle Name"}),p.jsx("th",{className:"p-2!",children:"Capacity"}),p.jsx("th",{className:"p-2!",children:"Route Name"}),p.jsx("th",{className:"p-2!",children:"Price / Vehicle"}),p.jsx("th",{className:"p-2! text-center w-[170px]",children:"Action"})]})}),p.jsx("tbody",{children:n?.length>0?n?.map((f,m)=>p.jsxs(B.Fragment,{children:[p.jsxs("tr",{className:"defaultBorder",children:[p.jsxs("td",{className:"p-2! defaultBorder",children:[p.jsx("div",{children:f?.VehicleName||""}),p.jsx("div",{className:"text-xs",children:[Number(f?.kmIncluded||0)>0?`${f?.kmIncluded||""} kms included`:"",Number(f?.postKMRate||0)>0?`Post limit: ${f?.currency||""} ${f?.postKMRate||""}/km`:""].filter(Boolean)?.join(" | ")||""})]}),p.jsxs("td",{className:"p-2! defaultBorder",children:[f?.capacityTransport||""," Seater ",f?.IsAC?"AC Cab":""]}),p.jsx("td",{className:"p-2! defaultBorder",children:f?.RouteName||""}),p.jsxs("td",{className:"p-2! defaultBorder",children:[f?.currency||""," ",Et(f?.transportPerVehicleCost||0)]}),p.jsx("td",{className:"p-1!",children:p.jsx("div",{className:"text-xs flex justify-center gap-2",children:t?.selectedVehicle?.uniqueId===f.uniqueId?p.jsxs(p.Fragment,{children:[p.jsx("button",{type:"button",onClick:()=>d(),className:"px-3 py-1 defaultBorder border-red-600! bg-red-600! text-white!",children:"Remove"}),p.jsx("button",{type:"button",onClick:()=>e(Co({currentStep:2})),className:"px-3 py-1 defaultBorder border-(--highlight-color)! bg-white text-(--highlight-color)! hover:bg-(--highlight-color)! hover:text-white!",children:"View"})]}):p.jsx("button",{type:"button",onClick:()=>u(f),className:"px-3 py-1 defaultBorder border-(--highlight-color)! bg-white text-(--highlight-color)! hover:bg-(--highlight-color)! hover:text-white!",children:"Select"})})})]}),f?.includedSightseeings?.length>0&&p.jsx("tr",{className:"defaultBorder",children:p.jsx("td",{className:"p-2! defaultBorder",colSpan:5,children:p.jsxs("div",{className:"text-gray-600 text-xs",children:[p.jsx("span",{className:"font-semibold",children:"Sightseeings:"})," ",f?.includedSightseeings?.map(g=>`${g?.title}${g?.CityName?.trim()?` (${g?.CityName?.trim()})`:""}`)?.join(", ")||""]})})})]},m)):p.jsx("tr",{className:"defaultBorder-b",children:p.jsx("td",{colSpan:3,className:"p-2!",children:"No Transfers Found."})})})]})})]})}):""}function kht(){const e=on(),t=lt(o=>o.transferBooking),n=t?.selectedVehicle||{},a=(o,i)=>{e(jht({objectVar:"selectedVehicle",updates:{[o]:i}}))};return p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"bg-white shadow p-3 space-y-1 mb-3",children:[p.jsxs("div",{className:"text-xl font-semibold",children:[[t?.startCity,t?.endCity].filter(Boolean)?.join(" → ")," ",p.jsxs("span",{className:"text-gray-500 font-normal text-base",children:["(",FD?.find(o=>Number(o?.id||0)===Number(t?.transType||0))?.name||"",")"]})]}),p.jsx("div",{className:"text-gray-600 text-sm",children:oL(t?.adults,t?.child,t?.infant)}),p.jsxs("div",{className:"text-gray-600 text-sm",children:[p.jsx("span",{children:"Car Type: "}),p.jsxs("span",{className:"font-semibold",children:[n?.VehicleName||""," (",n?.capacityTransport||""," Seater ",n?.IsAC?"AC Cab":"",")"]})]}),p.jsxs("div",{className:"text-gray-600 text-sm",children:[p.jsx("span",{children:"PickUp Date: "}),p.jsx("span",{className:"font-semibold",children:[t?.StartDate?dn(t?.StartDate):void 0,t?.startTime?sL(t?.startTime):void 0].filter(Boolean)?.join(", ")||""})]}),n?.includedSightseeings?.length>0&&p.jsxs("div",{className:"text-gray-600 text-sm",children:[p.jsx("span",{children:"Sightseeings: "}),p.jsx("span",{className:"font-semibold",children:n?.includedSightseeings?.map(o=>o?.title)?.join(", ")||""})]})]}),p.jsxs("div",{className:"shadow bg-white",children:[p.jsx("div",{className:"px-3 py-2 bg-gray-300 font-semibold text-xl",children:"Pickup Details"}),p.jsxs("div",{className:"p-3 flex gap-3 text-sm",children:[p.jsx(We,{type:"text",name:"pickupArea",value:n?.pickupArea||"",label:"Pick Up Area",divClass:"flex-1",onChange:o=>a(o.target.name,o.target.value)}),p.jsx(We,{type:"text",name:"dropArea",value:n?.dropArea||"",label:"Drop Area",divClass:"flex-1",onChange:o=>a(o.target.name,o.target.value)}),p.jsx(We,{type:"number",name:"directNoOfCar",value:n?.directNoOfCar||"",label:"No. of Vehicles",divClass:"flex-1",onChange:o=>a(o.target.name,o.target.value)})]})]})]})}function Mht(){const e=on(),t=lt(a=>a.transferBooking),n=a=>{e(Co({currentStep:a}))};return p.jsx(p.Fragment,{children:p.jsx("div",{className:"bg-zinc-800 shadow p-3 mb-3",children:p.jsxs("div",{className:"flex gap-3 flex-wrap p-0!",children:[p.jsxs("button",{onClick:()=>n(1),className:`text-white text-left py-2 px-4 cursor-pointer ${Number(t?.currentStep||0)===1?"bg-(--highlight-color)":"bg-black"} hover:bg-(--highlight-color)`,children:[p.jsx("div",{className:"text-xs font-semibold",children:"Step 1"}),p.jsx("div",{className:"text-xs",children:"Search & Select Vehicle"})]}),p.jsxs("button",{onClick:()=>n(2),className:`text-white text-left py-2 px-4 cursor-pointer ${Number(t?.currentStep||0)===2?"bg-(--highlight-color)":"bg-black"} hover:bg-(--highlight-color)`,children:[p.jsx("div",{className:"text-xs font-semibold",children:"Step 2"}),p.jsx("div",{className:"text-xs",children:"Review Your Booking"})]})]})})})}function Pht(){const e=on(),t=G1(),n=lt(u=>u.global),a=lt(u=>u.transferBooking),[o,i]=B.useState(0),l=a?.finalCost||0;return B.useEffect(()=>{const u=a?.selectedVehicle||{},d=async S=>{const{douTriShareAdults:w,singleShareAdults:N,quadShareAdults:T,quintShareAdults:A,hexaShareAdults:R,totalExtraBedAdults:E,totalWithBedChild:$,totalNoBedChild:_,totalInfant:k}=S,q=Number(a?.adults||0),z=Number(a?.child||0),D=n?.taxSettings?.find(oe=>Number(oe?.PlanType||0)===5)||void 0,H=parseFloat(D?.TaxPercentage||0),O=n?.markupSettings?.find(oe=>Number(oe?.PlanType||0)===5&&Number(oe?.ItemSourceType||0)===3)||void 0,j=Number(O?.MarkUpType||0),M=parseFloat(O?.MarkUpValue||0);let I=1;u?.CurrencyType&&parseInt(u?.CurrencyType)!==parseInt(n.baseCurrencyId)&&(I=await t(u.currency,n.baseCurrency));const F=parseInt(u?.directNoOfCar||0),V=parseFloat(u?.transportVehicleCost||0)*F*I,W=parseFloat(u?.transportVehicleMarkup||0)*F*I,U=Number(u?.capacityTransport||0),P=V/(q+z)*I,Y=V+W;let K=0,Q=0;Number(D?.TaxType||0)==2?K=W*H/100:Number(D?.TaxType||0)==1&&(K=Y*H/100),j===1?Q=U*M:j===2?Q=Y*M/100:j===3?Q=V*M/100:j===4&&(Q=W*M/100);const ee=Q*H/100,G=parseFloat(o||0);e(Co({finalCost:{perAdultCost:Number(w||0)>0?P:0,SingleOccupancy:Number(N||0)>0?P:0,CostQuad:Number(T||0)>0?P:0,CostQuint:Number(A||0)>0?P:0,CostHexa:Number(R||0)>0?P:0,perAdultEBCost:Number(E||0)>0?P:0,perChildWBCost:Number($||0)>0?P:0,perChildNBCost:Number(_||0)>0?P:0,perInfantCost:Number(k||0)>0?P:0,totalCost:V,totalMarkup:W,totalCostWithMarkup:Y,globalMarkUp:Q,extraMarkUp:G,taxAmount:K+ee,finalPrice:Y+Q+K+ee,salesPrice:Y+G+Q+K+ee}}))},f=[...u?.citiesArray||[]],m=[...u?.dayWiseItinerary?.map(S=>({...S,dayWisePrivateSightseeing:[...S?.dayWisePrivateSightseeing?.map(w=>({...w}))||[]],dayWiseSICSightseeing:[],transfers:[],sightseeing:[],meals:[],guides:[]}))||[]];m[0].transfers=[{...a?.selectedVehicle||{}}],m?.forEach(S=>{const w=Number(S?.itineraryDayStartCityId||0),N=S?.itineraryDayStartCity?.trim()||"",T=Number(S?.itineraryDayEndCityId||0),A=S?.itineraryDayEndCity?.trim()||"",R=[...S?.dayWisePrivateSightseeing?.map($=>({sightName:$?.title?.trim()||"",cityId:Number($?.CitySysId||0)}))||[]];let E="";if(w===T){const $=fi(R?.map(_=>_?.sightName||""));E=`<p>Pick-up from ${N} location by ${u?.VehicleName}.${R?.length>0?` Will visit ${$}.`:""}</p>`}else{const $=R?.filter(z=>z.cityId===w),_=R?.filter(z=>z.cityId===T),k=fi($?.map(z=>z?.sightName||"")),q=fi(_?.map(z=>z?.sightName||""));E=`<p>Pick-up from ${N} location${$?.length>0?` will visit ${k}`:""} and drop at ${A} location by ${u?.VehicleName}.${_?.length>0?` Will visit ${q}.`:""}</p>`}S.Title=S?.dayWiseTitleToShow?.trim()||"",S.Details=E||"",S.dayWisePrivateSightseeing=[...S?.dayWisePrivateSightseeing?.map($=>({...$,isTransfer:!0,transUniqueId:u.uniqueId}))||[]]});const g=Mj(Number(a?.adults||0),Number(a?.child||0),Number(a?.infant||0)),y=Array.from({length:1},()=>({cities:f?.map(S=>({destinationName:S?.destinationName?.trim(),destination:S?.destination?.trim(),hidden_destination_id:Number(S?.hidden_destination_id||0),CheckIn:S?.CheckIn,CheckOut:S?.CheckOut,hotelSelf:S?.hotelSelf||!1,noofnight:Number(S?.noofnight||0),rooms:[...g?.map(w=>({...w}))||[]]}))})),b={douTriShareAdults:g?.filter(S=>Number(S?.sharingTypeNum||0)===2||Number(S?.sharingTypeNum||0)===3)?.reduce((S,w)=>S+Number(w?.AdultPax||0),0),singleShareAdults:g?.filter(S=>Number(S?.sharingTypeNum||0)===1)?.reduce((S,w)=>S+Number(w?.AdultPax||0),0),quadShareAdults:g?.filter(S=>Number(S?.sharingTypeNum||0)===4)?.reduce((S,w)=>S+Number(w?.AdultPax||0),0),quintShareAdults:g?.filter(S=>Number(S?.sharingTypeNum||0)===5)?.reduce((S,w)=>S+Number(w?.AdultPax||0),0),hexaShareAdults:g?.filter(S=>Number(S?.sharingTypeNum||0)===6)?.reduce((S,w)=>S+Number(w?.AdultPax||0),0),totalExtraBedAdults:g?.reduce((S,w)=>S+Number(w?.ExtraAdultPax||0),0),totalWithBedChild:g?.reduce((S,w)=>S+Number(w?.ExtraBedChildPax||0),0),totalNoBedChild:g?.reduce((S,w)=>S+Number(w?.NoBedChildPax||0),0),totalInfant:g?.reduce((S,w)=>S+Number(w?.InfantPax||0),0)},x=Ypt(g,a?.StartDate);e(Co({dayWiseItinerary:m,hotelOptions:y,roomInfoJson:x})),d(b)},[e,o,n.baseCurrency,n.baseCurrencyId,n?.markupSettings,n?.taxSettings,a?.StartDate,a?.adults,a?.child,a?.infant,a?.selectedVehicle]),p.jsx(p.Fragment,{children:p.jsx("div",{children:p.jsx("div",{className:"defaultBorder",children:p.jsx("table",{className:"w-full text-left text-sm",children:p.jsxs("tbody",{className:"text-gray-700",children:[p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("th",{className:"p-2! bg-stone-100 defaultBorder-r",children:"Base Cost"}),p.jsxs("td",{className:"p-2! text-right",children:[n?.baseCurrency||""," ",Et(l?.totalCost||0)]})]}),p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("th",{className:"p-2! bg-stone-100 defaultBorder-r",children:"MarkUp"}),p.jsxs("td",{className:"p-2! text-right",children:[n?.baseCurrency||""," ",Et(l?.totalMarkup||0)]})]}),p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("th",{className:"p-2! bg-stone-100 defaultBorder-r",children:"Agency MarkUp"}),p.jsxs("td",{className:"p-2! text-right",children:[n?.baseCurrency||""," ",Et(l?.globalMarkUp||0)]})]}),p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("th",{className:"p-2! bg-stone-100 defaultBorder-r",children:"Tax"}),p.jsxs("td",{className:"p-2! text-right",children:[n?.baseCurrency||""," ",Et(l?.taxAmount||0)]})]}),p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("th",{className:"p-2! bg-stone-100 defaultBorder-r",children:"Total Price"}),p.jsxs("td",{className:"p-2! text-right",children:[n?.baseCurrency||""," ",Et(l?.finalPrice||0)]})]}),p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("th",{className:"p-2! bg-stone-100 defaultBorder-r",children:"Markup"}),p.jsxs("td",{className:"px-2! py-1! flex gap-1 items-center justify-end",children:[p.jsx("span",{children:n?.baseCurrency||""}),p.jsx(We,{type:"decimal",name:"extraMarkUp",value:o||"",onChange:u=>i(u.target.value),inputClass:"bg-yellow-50 text-right",divClass:"flex-1 max-w-32"})]})]}),p.jsxs("tr",{className:"defaultBorder",children:[p.jsx("th",{className:"p-2! bg-stone-100 defaultBorder-r",children:"Final Price"}),p.jsxs("td",{className:"p-2! text-right",children:[n?.baseCurrency||""," ",Et(l?.salesPrice||0)]})]})]})})})})})}function Lht(){const e=lt(g=>g.global),t=lt(g=>g.transferBooking),[n,a]=B.useState(!1),[o,i]=B.useState("PP"),[l,u]=B.useState({}),d=()=>{const g=parseFloat(t?.finalCost?.extraMarkUp||0),y=parseFloat(t?.finalCost?.globalMarkUp||0),b=parseFloat(t?.finalCost?.salesPrice||0),x=parseFloat(t?.finalCost?.totalMarkup||0);return[{...t?.finalCost||{},extraMarkUp:y,B2BAgencyExtraMarkup:g,totalMarkup:x+y,salesPrice:b-g}]},f=()=>{let g=t?.hotelOptions?.map(y=>({...y,cities:y.cities?.filter(b=>b.noofnight>0)||[]})).filter(y=>y.cities.length>0)||[];if(g.length===0&&t?.hotelOptions?.length>0){const y=t.hotelOptions[0];g=[{...y,cities:y.cities?.length?[y.cities[0]]:[]}]}return g},m=async()=>{const g=e?.taxSettings?.find(b=>Number(b?.PlanType||0)===5)||void 0,y={SourcePlace:t?.startCity||"",SourcePlaceSysId:Number(t?.startCity_id||0),EndCityTitle:t?.endCity||"",EndCityId:Number(t?.endCity_id||0),DestinationPlacesSysId:Number(t?.destinationCity_id||0),DestinationPlaces:t?.destinationCity||"",RoomJson:t?.roomInfoJson||"{}",TripDate:t?.StartDate?Ze(new Date(t?.StartDate)):"",HotelOptions:f(),dayWiseItinerary:t?.dayWiseItinerary||[],quickPackageType:3,submitType:"view",PlanType:5,IsDayWiseItinerary:!0,SelectPricing:o||"",sharePricing:o||"",DestinationCovered:Number(t?.destinationCity_id||0),StartDate:t?.StartDate?Ze(new Date(t?.StartDate)):"",IsOnlySightseeingPkg:0,isShareWithFlight:!1,ShareCombinedFlightPricing:!1,ShareCombinedVisaPricing:!1,hotelServiceCost:[],finalCosting:d(),GSTApplicableOn:Number(g?.TaxSysId||0),shareConversionRate:1,shareCurrency:e?.baseCurrency||"",shareCurrencyId:Number(e?.baseCurrencyId||0)};a(!0);try{const{data:b}=await Tt.post(`${sr}webservice/quick-package/save-data-from-b2b`,y,{headers:{SecurityKey:e?.securityKey}});if(b?.status){const x=`${sr}publicpackage/view-customer-final-package/id/${b?.id||""}/code/${b?.code||""}`;u({redirectUrl:x,show:!0})}}catch(b){console.error("Error saving data:",b)}finally{a(!1)}};return p.jsx(p.Fragment,{children:p.jsxs("div",{className:"flex justify-end gap-3 mt-3",children:[p.jsxs("label",{htmlFor:"shareTotalPricing",className:"flex! bg-gray-200",children:[p.jsx("div",{className:"flex items-center justify-center px-2 border-r border-white",children:p.jsx("input",{type:"radio",name:"sharePricingtype",id:"shareTotalPricing",className:"w-3 h-3 m-0!",checked:o==="Overall",onChange:()=>i("Overall")})}),p.jsx("div",{className:"leading-none text-sm p-2",children:"Share Total Pricing"})]}),p.jsxs("label",{htmlFor:"sharePerPersonPricing",className:"flex! bg-gray-200",children:[p.jsx("div",{className:"flex items-center justify-center px-2 border-r border-white",children:p.jsx("input",{type:"radio",name:"sharePricingtype",id:"sharePerPersonPricing",className:"w-3 h-3 m-0!",checked:o==="PP",onChange:()=>i("PP")})}),p.jsx("div",{className:"leading-none text-sm p-2",children:"Share with PP Pricing"})]}),l?.show?p.jsxs(p.Fragment,{children:[p.jsx("button",{type:"button",onClick:()=>u({}),className:"px-3 py-1 bg-white text-(--highlight-color)! border border-(--highlight-color)!",children:"Modify Transfer"}),p.jsx("a",{href:l?.redirectUrl||"",target:"_blank",className:"px-3 py-1 bg-(--highlight-color)! text-white! border border-(--highlight-color)!",children:"View Transfer"})]}):p.jsx("button",{type:"button",onClick:m,className:"px-3 py-1 bg-(--highlight-color) text-white cursor-pointer hover:bg-black disabled:opacity-40",children:n?"Loading...":"Book Now"})]})})}function Bht(){const e=lt(t=>t.transferBooking);return p.jsx(p.Fragment,{children:p.jsxs("div",{className:"bg-gray-100 p-3",children:[p.jsxs("div",{className:"grid grid-cols-4 gap-4 items-start",children:[p.jsx("div",{className:"col-span-3",children:Number(e?.currentStep||0)===1?p.jsxs(p.Fragment,{children:[p.jsx(Oht,{}),p.jsx(Iht,{})]}):Number(e?.currentStep||0)===2?p.jsxs(p.Fragment,{children:[p.jsx(Mht,{}),p.jsx(kht,{})]}):""}),Number(e?.currentStep||0)===2&&p.jsx(Pht,{})]}),Number(e?.currentStep||0)===2&&p.jsx(Lht,{})]})})}function qht(){const e=on(),t=Cw("pageIdentifier",""),n=Cw("SecurityKey","");B.useEffect(()=>{const i=async()=>{try{const{data:d}=await Tt.post(`${sr}webservice/currency`);e(xot(d||[]))}catch(d){console.error("Error fetching currency data: ",d)}},l=async()=>{try{const{data:d}=await Tt.post(`${h1}api/quick-package/get-markup`);d?.status&&(e(Db({taxSettings:[...d?.TaxSetting?.map(f=>({...f}))||[]],markupSettings:[...d?.Markup?.map(f=>({...f}))||[]],baseCurrencyId:Number(d?.TrxCurrency||0),baseCurrency:d?.Currency?.trim(),agencyData:{...d?.B2BAgencyData||{}}})),e(Lt({baseCurrencyId:Number(d?.TrxCurrency||0),baseCurrency:d?.Currency?.trim(),agencyData:{...d?.B2BAgencyData||{}}})))}catch(d){console.error("Error fetching tax settings data: ",d)}},u=async()=>{try{const d=`${sr}webservice/inventory-data/hotel-city`,{data:f}=await Tt.post(d,{},{headers:{SecurityKey:n}});f?.status&&e(Db({hotelCitiesList:[...f?.data?.map(m=>({cityName:m?.CityName?.trim(),cityId:Number(m?.CitySysId||0),countryName:m?.CountryName?.trim(),countryId:Number(m?.ContSysId||0)}))||[]]}))}catch(d){console.error("Error fetching hotel cities:",d)}};n&&t&&(i(),l(),u()),e(Db({pageIdentifier:t,agencySecurityKey:"F38C55F4-5771-4EED-AAB2-D1CE094AEB4E",securityKey:n}))},[e,t,n]);const o={"login-page":oE,dashboard:kst,"dashboard-two":Mst,"build-your-own-one":Dht,"transfer-booking":Bht,holidays:Pst}[t?.toLowerCase()]||oE;return p.jsx(p.Fragment,{children:p.jsxs(Xpt,{children:[p.jsx(o,{}),p.jsx(X6,{position:"bottom-center"})]})})}const Fht=lot({reducer:{global:Cot,buildYourOwnData:Mpt,exchangeRates:bht,transferBooking:Rht}});rI.createRoot(document.getElementById("root")).render(p.jsx(p_,{store:Fht,children:p.jsx(cT,{children:p.jsx(qht,{})})}));

Youez - 2016 - github.com/yon3zu
LinuXploit