var d7=Object.defineProperty;var f7=(e,t,a)=>t in e?d7(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var La=(e,t,a)=>f7(e,typeof t!="symbol"?t+"":t,a);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const c of o)if(c.type==="childList")for(const u of c.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function a(o){const c={};return o.integrity&&(c.integrity=o.integrity),o.referrerPolicy&&(c.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?c.credentials="include":o.crossOrigin==="anonymous"?c.credentials="omit":c.credentials="same-origin",c}function r(o){if(o.ep)return;o.ep=!0;const c=a(o);fetch(o.href,c)}})();function gs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xf={exports:{}},Mo={};/**
 * @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 My;function m7(){if(My)return Mo;My=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function a(r,o,c){var u=null;if(c!==void 0&&(u=""+c),o.key!==void 0&&(u=""+o.key),"key"in o){c={};for(var m in o)m!=="key"&&(c[m]=o[m])}else c=o;return o=c.ref,{$$typeof:e,type:r,key:u,ref:o!==void 0?o:null,props:c}}return Mo.Fragment=t,Mo.jsx=a,Mo.jsxs=a,Mo}var Ry;function p7(){return Ry||(Ry=1,Xf.exports=m7()),Xf.exports}var f=p7(),Wf={exports:{}},Te={};/**
 * @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 Dy;function h7(){if(Dy)return Te;Dy=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),c=Symbol.for("react.consumer"),u=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.iterator;function v(j){return j===null||typeof j!="object"?null:(j=b&&j[b]||j["@@iterator"],typeof j=="function"?j:null)}var T={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,C={};function E(j,N,I){this.props=j,this.context=N,this.refs=C,this.updater=I||T}E.prototype.isReactComponent={},E.prototype.setState=function(j,N){if(typeof j!="object"&&typeof j!="function"&&j!=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,j,N,"setState")},E.prototype.forceUpdate=function(j){this.updater.enqueueForceUpdate(this,j,"forceUpdate")};function O(){}O.prototype=E.prototype;function D(j,N,I){this.props=j,this.context=N,this.refs=C,this.updater=I||T}var M=D.prototype=new O;M.constructor=D,S(M,E.prototype),M.isPureReactComponent=!0;var F=Array.isArray,V={H:null,A:null,T:null,S:null},te=Object.prototype.hasOwnProperty;function ie(j,N,I,ee,Q,fe){return I=fe.ref,{$$typeof:e,type:j,key:N,ref:I!==void 0?I:null,props:fe}}function ae(j,N){return ie(j.type,N,void 0,void 0,void 0,j.props)}function W(j){return typeof j=="object"&&j!==null&&j.$$typeof===e}function se(j){var N={"=":"=0",":":"=2"};return"$"+j.replace(/[=:]/g,function(I){return N[I]})}var Ae=/\/+/g;function je(j,N){return typeof j=="object"&&j!==null&&j.key!=null?se(""+j.key):N.toString(36)}function Ee(){}function re(j){switch(j.status){case"fulfilled":return j.value;case"rejected":throw j.reason;default:switch(typeof j.status=="string"?j.then(Ee,Ee):(j.status="pending",j.then(function(N){j.status==="pending"&&(j.status="fulfilled",j.value=N)},function(N){j.status==="pending"&&(j.status="rejected",j.reason=N)})),j.status){case"fulfilled":return j.value;case"rejected":throw j.reason}}throw j}function pe(j,N,I,ee,Q){var fe=typeof j;(fe==="undefined"||fe==="boolean")&&(j=null);var de=!1;if(j===null)de=!0;else switch(fe){case"bigint":case"string":case"number":de=!0;break;case"object":switch(j.$$typeof){case e:case t:de=!0;break;case y:return de=j._init,pe(de(j._payload),N,I,ee,Q)}}if(de)return Q=Q(j),de=ee===""?"."+je(j,0):ee,F(Q)?(I="",de!=null&&(I=de.replace(Ae,"$&/")+"/"),pe(Q,N,I,"",function(Pe){return Pe})):Q!=null&&(W(Q)&&(Q=ae(Q,I+(Q.key==null||j&&j.key===Q.key?"":(""+Q.key).replace(Ae,"$&/")+"/")+de)),N.push(Q)),1;de=0;var ke=ee===""?".":ee+":";if(F(j))for(var xe=0;xe<j.length;xe++)ee=j[xe],fe=ke+je(ee,xe),de+=pe(ee,N,I,fe,Q);else if(xe=v(j),typeof xe=="function")for(j=xe.call(j),xe=0;!(ee=j.next()).done;)ee=ee.value,fe=ke+je(ee,xe++),de+=pe(ee,N,I,fe,Q);else if(fe==="object"){if(typeof j.then=="function")return pe(re(j),N,I,ee,Q);throw N=String(j),Error("Objects are not valid as a React child (found: "+(N==="[object Object]"?"object with keys {"+Object.keys(j).join(", ")+"}":N)+"). If you meant to render a collection of children, use an array instead.")}return de}function K(j,N,I){if(j==null)return j;var ee=[],Q=0;return pe(j,ee,"","",function(fe){return N.call(I,fe,Q++)}),ee}function _(j){if(j._status===-1){var N=j._result;N=N(),N.then(function(I){(j._status===0||j._status===-1)&&(j._status=1,j._result=I)},function(I){(j._status===0||j._status===-1)&&(j._status=2,j._result=I)}),j._status===-1&&(j._status=0,j._result=N)}if(j._status===1)return j._result.default;throw j._result}var R=typeof reportError=="function"?reportError:function(j){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var N=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof j=="object"&&j!==null&&typeof j.message=="string"?String(j.message):String(j),error:j});if(!window.dispatchEvent(N))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",j);return}console.error(j)};function Z(){}return Te.Children={map:K,forEach:function(j,N,I){K(j,function(){N.apply(this,arguments)},I)},count:function(j){var N=0;return K(j,function(){N++}),N},toArray:function(j){return K(j,function(N){return N})||[]},only:function(j){if(!W(j))throw Error("React.Children.only expected to receive a single React element child.");return j}},Te.Component=E,Te.Fragment=a,Te.Profiler=o,Te.PureComponent=D,Te.StrictMode=r,Te.Suspense=p,Te.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=V,Te.act=function(){throw Error("act(...) is not supported in production builds of React.")},Te.cache=function(j){return function(){return j.apply(null,arguments)}},Te.cloneElement=function(j,N,I){if(j==null)throw Error("The argument must be a React element, but you passed "+j+".");var ee=S({},j.props),Q=j.key,fe=void 0;if(N!=null)for(de in N.ref!==void 0&&(fe=void 0),N.key!==void 0&&(Q=""+N.key),N)!te.call(N,de)||de==="key"||de==="__self"||de==="__source"||de==="ref"&&N.ref===void 0||(ee[de]=N[de]);var de=arguments.length-2;if(de===1)ee.children=I;else if(1<de){for(var ke=Array(de),xe=0;xe<de;xe++)ke[xe]=arguments[xe+2];ee.children=ke}return ie(j.type,Q,void 0,void 0,fe,ee)},Te.createContext=function(j){return j={$$typeof:u,_currentValue:j,_currentValue2:j,_threadCount:0,Provider:null,Consumer:null},j.Provider=j,j.Consumer={$$typeof:c,_context:j},j},Te.createElement=function(j,N,I){var ee,Q={},fe=null;if(N!=null)for(ee in N.key!==void 0&&(fe=""+N.key),N)te.call(N,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(Q[ee]=N[ee]);var de=arguments.length-2;if(de===1)Q.children=I;else if(1<de){for(var ke=Array(de),xe=0;xe<de;xe++)ke[xe]=arguments[xe+2];Q.children=ke}if(j&&j.defaultProps)for(ee in de=j.defaultProps,de)Q[ee]===void 0&&(Q[ee]=de[ee]);return ie(j,fe,void 0,void 0,null,Q)},Te.createRef=function(){return{current:null}},Te.forwardRef=function(j){return{$$typeof:m,render:j}},Te.isValidElement=W,Te.lazy=function(j){return{$$typeof:y,_payload:{_status:-1,_result:j},_init:_}},Te.memo=function(j,N){return{$$typeof:g,type:j,compare:N===void 0?null:N}},Te.startTransition=function(j){var N=V.T,I={};V.T=I;try{var ee=j(),Q=V.S;Q!==null&&Q(I,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(Z,R)}catch(fe){R(fe)}finally{V.T=N}},Te.unstable_useCacheRefresh=function(){return V.H.useCacheRefresh()},Te.use=function(j){return V.H.use(j)},Te.useActionState=function(j,N,I){return V.H.useActionState(j,N,I)},Te.useCallback=function(j,N){return V.H.useCallback(j,N)},Te.useContext=function(j){return V.H.useContext(j)},Te.useDebugValue=function(){},Te.useDeferredValue=function(j,N){return V.H.useDeferredValue(j,N)},Te.useEffect=function(j,N){return V.H.useEffect(j,N)},Te.useId=function(){return V.H.useId()},Te.useImperativeHandle=function(j,N,I){return V.H.useImperativeHandle(j,N,I)},Te.useInsertionEffect=function(j,N){return V.H.useInsertionEffect(j,N)},Te.useLayoutEffect=function(j,N){return V.H.useLayoutEffect(j,N)},Te.useMemo=function(j,N){return V.H.useMemo(j,N)},Te.useOptimistic=function(j,N){return V.H.useOptimistic(j,N)},Te.useReducer=function(j,N,I){return V.H.useReducer(j,N,I)},Te.useRef=function(j){return V.H.useRef(j)},Te.useState=function(j){return V.H.useState(j)},Te.useSyncExternalStore=function(j,N,I){return V.H.useSyncExternalStore(j,N,I)},Te.useTransition=function(){return V.H.useTransition()},Te.version="19.0.0",Te}var Oy;function Pp(){return Oy||(Oy=1,Wf.exports=h7()),Wf.exports}var w=Pp();const la=gs(w);var Qf={exports:{}},Ro={},Jf={exports:{}},em={};/**
 * @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 _y;function g7(){return _y||(_y=1,function(e){function t(K,_){var R=K.length;K.push(_);e:for(;0<R;){var Z=R-1>>>1,j=K[Z];if(0<o(j,_))K[Z]=_,K[R]=j,R=Z;else break e}}function a(K){return K.length===0?null:K[0]}function r(K){if(K.length===0)return null;var _=K[0],R=K.pop();if(R!==_){K[0]=R;e:for(var Z=0,j=K.length,N=j>>>1;Z<N;){var I=2*(Z+1)-1,ee=K[I],Q=I+1,fe=K[Q];if(0>o(ee,R))Q<j&&0>o(fe,ee)?(K[Z]=fe,K[Q]=R,Z=Q):(K[Z]=ee,K[I]=R,Z=I);else if(Q<j&&0>o(fe,R))K[Z]=fe,K[Q]=R,Z=Q;else break e}}return _}function o(K,_){var R=K.sortIndex-_.sortIndex;return R!==0?R:K.id-_.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var c=performance;e.unstable_now=function(){return c.now()}}else{var u=Date,m=u.now();e.unstable_now=function(){return u.now()-m}}var p=[],g=[],y=1,b=null,v=3,T=!1,S=!1,C=!1,E=typeof setTimeout=="function"?setTimeout:null,O=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function M(K){for(var _=a(g);_!==null;){if(_.callback===null)r(g);else if(_.startTime<=K)r(g),_.sortIndex=_.expirationTime,t(p,_);else break;_=a(g)}}function F(K){if(C=!1,M(K),!S)if(a(p)!==null)S=!0,re();else{var _=a(g);_!==null&&pe(F,_.startTime-K)}}var V=!1,te=-1,ie=5,ae=-1;function W(){return!(e.unstable_now()-ae<ie)}function se(){if(V){var K=e.unstable_now();ae=K;var _=!0;try{e:{S=!1,C&&(C=!1,O(te),te=-1),T=!0;var R=v;try{t:{for(M(K),b=a(p);b!==null&&!(b.expirationTime>K&&W());){var Z=b.callback;if(typeof Z=="function"){b.callback=null,v=b.priorityLevel;var j=Z(b.expirationTime<=K);if(K=e.unstable_now(),typeof j=="function"){b.callback=j,M(K),_=!0;break t}b===a(p)&&r(p),M(K)}else r(p);b=a(p)}if(b!==null)_=!0;else{var N=a(g);N!==null&&pe(F,N.startTime-K),_=!1}}break e}finally{b=null,v=R,T=!1}_=void 0}}finally{_?Ae():V=!1}}}var Ae;if(typeof D=="function")Ae=function(){D(se)};else if(typeof MessageChannel<"u"){var je=new MessageChannel,Ee=je.port2;je.port1.onmessage=se,Ae=function(){Ee.postMessage(null)}}else Ae=function(){E(se,0)};function re(){V||(V=!0,Ae())}function pe(K,_){te=E(function(){K(e.unstable_now())},_)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(K){K.callback=null},e.unstable_continueExecution=function(){S||T||(S=!0,re())},e.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ie=0<K?Math.floor(1e3/K):5},e.unstable_getCurrentPriorityLevel=function(){return v},e.unstable_getFirstCallbackNode=function(){return a(p)},e.unstable_next=function(K){switch(v){case 1:case 2:case 3:var _=3;break;default:_=v}var R=v;v=_;try{return K()}finally{v=R}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(K,_){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var R=v;v=K;try{return _()}finally{v=R}},e.unstable_scheduleCallback=function(K,_,R){var Z=e.unstable_now();switch(typeof R=="object"&&R!==null?(R=R.delay,R=typeof R=="number"&&0<R?Z+R:Z):R=Z,K){case 1:var j=-1;break;case 2:j=250;break;case 5:j=1073741823;break;case 4:j=1e4;break;default:j=5e3}return j=R+j,K={id:y++,callback:_,priorityLevel:K,startTime:R,expirationTime:j,sortIndex:-1},R>Z?(K.sortIndex=R,t(g,K),a(p)===null&&K===a(g)&&(C?(O(te),te=-1):C=!0,pe(F,R-Z))):(K.sortIndex=j,t(p,K),S||T||(S=!0,re())),K},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(K){var _=v;return function(){var R=v;v=_;try{return K.apply(this,arguments)}finally{v=R}}}}(em)),em}var Ly;function y7(){return Ly||(Ly=1,Jf.exports=g7()),Jf.exports}var tm={exports:{}},Vt={};/**
 * @license React
 * react-dom.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var By;function x7(){if(By)return Vt;By=1;var e=Pp();function t(p){var g="https://react.dev/errors/"+p;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}return"Minified React error #"+p+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var r={d:{f:a,r:function(){throw Error(t(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function c(p,g,y){var b=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:b==null?null:""+b,children:p,containerInfo:g,implementation:y}}var u=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(p,g){if(p==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return Vt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Vt.createPortal=function(p,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(t(299));return c(p,g,null,y)},Vt.flushSync=function(p){var g=u.T,y=r.p;try{if(u.T=null,r.p=2,p)return p()}finally{u.T=g,r.p=y,r.d.f()}},Vt.preconnect=function(p,g){typeof p=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,r.d.C(p,g))},Vt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},Vt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,b=m(y,g.crossOrigin),v=typeof g.integrity=="string"?g.integrity:void 0,T=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?r.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:b,integrity:v,fetchPriority:T}):y==="script"&&r.d.X(p,{crossOrigin:b,integrity:v,fetchPriority:T,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Vt.preinitModule=function(p,g){if(typeof p=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=m(g.as,g.crossOrigin);r.d.M(p,{crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&r.d.M(p)},Vt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,b=m(y,g.crossOrigin);r.d.L(p,y,{crossOrigin:b,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},Vt.preloadModule=function(p,g){if(typeof p=="string")if(g){var y=m(g.as,g.crossOrigin);r.d.m(p,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else r.d.m(p)},Vt.requestFormReset=function(p){r.d.r(p)},Vt.unstable_batchedUpdates=function(p,g){return p(g)},Vt.useFormState=function(p,g,y){return u.H.useFormState(p,g,y)},Vt.useFormStatus=function(){return u.H.useHostTransitionStatus()},Vt.version="19.0.0",Vt}var zy;function b7(){if(zy)return tm.exports;zy=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(),tm.exports=x7(),tm.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 Py;function v7(){if(Py)return Ro;Py=1;var e=y7(),t=Pp(),a=b7();function r(n){var i="https://react.dev/errors/"+n;if(1<arguments.length){i+="?args[]="+encodeURIComponent(arguments[1]);for(var s=2;s<arguments.length;s++)i+="&args[]="+encodeURIComponent(arguments[s])}return"Minified React error #"+n+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}var c=Symbol.for("react.element"),u=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),p=Symbol.for("react.fragment"),g=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),b=Symbol.for("react.provider"),v=Symbol.for("react.consumer"),T=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),C=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),O=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),M=Symbol.for("react.offscreen"),F=Symbol.for("react.memo_cache_sentinel"),V=Symbol.iterator;function te(n){return n===null||typeof n!="object"?null:(n=V&&n[V]||n["@@iterator"],typeof n=="function"?n:null)}var ie=Symbol.for("react.client.reference");function ae(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ie?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case p:return"Fragment";case m:return"Portal";case y:return"Profiler";case g:return"StrictMode";case C:return"Suspense";case E:return"SuspenseList"}if(typeof n=="object")switch(n.$$typeof){case T:return(n.displayName||"Context")+".Provider";case v:return(n._context.displayName||"Context")+".Consumer";case S:var i=n.render;return n=n.displayName,n||(n=i.displayName||i.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case O:return i=n.displayName||null,i!==null?i:ae(n.type)||"Memo";case D:i=n._payload,n=n._init;try{return ae(n(i))}catch{}}return null}var W=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,se=Object.assign,Ae,je;function Ee(n){if(Ae===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);Ae=i&&i[1]||"",je=-1<s.stack.indexOf(`
    at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Ae+n+je}var re=!1;function pe(n,i){if(!n||re)return"";re=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(i){var J=function(){throw Error()};if(Object.defineProperty(J.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(J,[])}catch(Y){var U=Y}Reflect.construct(n,[],J)}else{try{J.call()}catch(Y){U=Y}n.call(J.prototype)}}else{try{throw Error()}catch(Y){U=Y}(J=n())&&typeof J.catch=="function"&&J.catch(function(){})}}catch(Y){if(Y&&U&&typeof Y.stack=="string")return[Y.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var h=l.DetermineComponentFrameRoot(),x=h[0],k=h[1];if(x&&k){var A=x.split(`
`),B=k.split(`
`);for(d=l=0;l<A.length&&!A[l].includes("DetermineComponentFrameRoot");)l++;for(;d<B.length&&!B[d].includes("DetermineComponentFrameRoot");)d++;if(l===A.length||d===B.length)for(l=A.length-1,d=B.length-1;1<=l&&0<=d&&A[l]!==B[d];)d--;for(;1<=l&&0<=d;l--,d--)if(A[l]!==B[d]){if(l!==1||d!==1)do if(l--,d--,0>d||A[l]!==B[d]){var G=`
`+A[l].replace(" at new "," at ");return n.displayName&&G.includes("<anonymous>")&&(G=G.replace("<anonymous>",n.displayName)),G}while(1<=l&&0<=d);break}}}finally{re=!1,Error.prepareStackTrace=s}return(s=n?n.displayName||n.name:"")?Ee(s):""}function K(n){switch(n.tag){case 26:case 27:case 5:return Ee(n.type);case 16:return Ee("Lazy");case 13:return Ee("Suspense");case 19:return Ee("SuspenseList");case 0:case 15:return n=pe(n.type,!1),n;case 11:return n=pe(n.type.render,!1),n;case 1:return n=pe(n.type,!0),n;default:return""}}function _(n){try{var i="";do i+=K(n),n=n.return;while(n);return i}catch(s){return`
Error generating stack: `+s.message+`
`+s.stack}}function R(n){var i=n,s=n;if(n.alternate)for(;i.return;)i=i.return;else{n=i;do i=n,i.flags&4098&&(s=i.return),n=i.return;while(n)}return i.tag===3?s:null}function Z(n){if(n.tag===13){var i=n.memoizedState;if(i===null&&(n=n.alternate,n!==null&&(i=n.memoizedState)),i!==null)return i.dehydrated}return null}function j(n){if(R(n)!==n)throw Error(r(188))}function N(n){var i=n.alternate;if(!i){if(i=R(n),i===null)throw Error(r(188));return i!==n?null:n}for(var s=n,l=i;;){var d=s.return;if(d===null)break;var h=d.alternate;if(h===null){if(l=d.return,l!==null){s=l;continue}break}if(d.child===h.child){for(h=d.child;h;){if(h===s)return j(d),n;if(h===l)return j(d),i;h=h.sibling}throw Error(r(188))}if(s.return!==l.return)s=d,l=h;else{for(var x=!1,k=d.child;k;){if(k===s){x=!0,s=d,l=h;break}if(k===l){x=!0,l=d,s=h;break}k=k.sibling}if(!x){for(k=h.child;k;){if(k===s){x=!0,s=h,l=d;break}if(k===l){x=!0,l=h,s=d;break}k=k.sibling}if(!x)throw Error(r(189))}}if(s.alternate!==l)throw Error(r(190))}if(s.tag!==3)throw Error(r(188));return s.stateNode.current===s?n:i}function I(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n;for(n=n.child;n!==null;){if(i=I(n),i!==null)return i;n=n.sibling}return null}var ee=Array.isArray,Q=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,fe={pending:!1,data:null,method:null,action:null},de=[],ke=-1;function xe(n){return{current:n}}function Pe(n){0>ke||(n.current=de[ke],de[ke]=null,ke--)}function He(n,i){ke++,de[ke]=n.current,n.current=i}var kt=xe(null),Wt=xe(null),sn=xe(null),ma=xe(null);function pa(n,i){switch(He(sn,i),He(Wt,n),He(kt,null),n=i.nodeType,n){case 9:case 11:i=(i=i.documentElement)&&(i=i.namespaceURI)?ry(i):0;break;default:if(n=n===8?i.parentNode:i,i=n.tagName,n=n.namespaceURI)n=ry(n),i=sy(n,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}Pe(kt),He(kt,i)}function zn(){Pe(kt),Pe(Wt),Pe(sn)}function on(n){n.memoizedState!==null&&He(ma,n);var i=kt.current,s=sy(i,n.type);i!==s&&(He(Wt,n),He(kt,s))}function Xn(n){Wt.current===n&&(Pe(kt),Pe(Wt)),ma.current===n&&(Pe(ma),jo._currentValue=fe)}var q=Object.prototype.hasOwnProperty,he=e.unstable_scheduleCallback,Me=e.unstable_cancelCallback,Rt=e.unstable_shouldYield,ha=e.unstable_requestPaint,ne=e.unstable_now,ve=e.unstable_getCurrentPriorityLevel,nt=e.unstable_ImmediatePriority,dt=e.unstable_UserBlockingPriority,St=e.unstable_NormalPriority,Si=e.unstable_LowPriority,ga=e.unstable_IdlePriority,Ms=e.log,Rs=e.unstable_setDisableYieldValue,ya=null,Ct=null;function Ds(n){if(Ct&&typeof Ct.onCommitFiberRoot=="function")try{Ct.onCommitFiberRoot(ya,n,void 0,(n.current.flags&128)===128)}catch{}}function xn(n){if(typeof Ms=="function"&&Rs(n),Ct&&typeof Ct.setStrictMode=="function")try{Ct.setStrictMode(ya,n)}catch{}}var Dt=Math.clz32?Math.clz32:Q4,Os=Math.log,Fu=Math.LN2;function Q4(n){return n>>>=0,n===0?32:31-(Os(n)/Fu|0)|0}var bl=128,vl=4194304;function Ci(n){var i=n&42;if(i!==0)return i;switch(n&-n){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: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 n&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function wl(n,i){var s=n.pendingLanes;if(s===0)return 0;var l=0,d=n.suspendedLanes,h=n.pingedLanes,x=n.warmLanes;n=n.finishedLanes!==0;var k=s&134217727;return k!==0?(s=k&~d,s!==0?l=Ci(s):(h&=k,h!==0?l=Ci(h):n||(x=k&~x,x!==0&&(l=Ci(x))))):(k=s&~d,k!==0?l=Ci(k):h!==0?l=Ci(h):n||(x=s&~x,x!==0&&(l=Ci(x)))),l===0?0:i!==0&&i!==l&&!(i&d)&&(d=l&-l,x=i&-i,d>=x||d===32&&(x&4194176)!==0)?i:l}function _s(n,i){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&i)===0}function J4(n,i){switch(n){case 1:case 2:case 4:case 8:return i+250;case 16:case 32:case 64: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 i+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 Wh(){var n=bl;return bl<<=1,!(bl&4194176)&&(bl=128),n}function Qh(){var n=vl;return vl<<=1,!(vl&62914560)&&(vl=4194304),n}function $u(n){for(var i=[],s=0;31>s;s++)i.push(n);return i}function Ls(n,i){n.pendingLanes|=i,i!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function e3(n,i,s,l,d,h){var x=n.pendingLanes;n.pendingLanes=s,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=s,n.entangledLanes&=s,n.errorRecoveryDisabledLanes&=s,n.shellSuspendCounter=0;var k=n.entanglements,A=n.expirationTimes,B=n.hiddenUpdates;for(s=x&~s;0<s;){var G=31-Dt(s),J=1<<G;k[G]=0,A[G]=-1;var U=B[G];if(U!==null)for(B[G]=null,G=0;G<U.length;G++){var Y=U[G];Y!==null&&(Y.lane&=-536870913)}s&=~J}l!==0&&Jh(n,l,0),h!==0&&d===0&&n.tag!==0&&(n.suspendedLanes|=h&~(x&~i))}function Jh(n,i,s){n.pendingLanes|=i,n.suspendedLanes&=~i;var l=31-Dt(i);n.entangledLanes|=i,n.entanglements[l]=n.entanglements[l]|1073741824|s&4194218}function eg(n,i){var s=n.entangledLanes|=i;for(n=n.entanglements;s;){var l=31-Dt(s),d=1<<l;d&i|n[l]&i&&(n[l]|=i),s&=~d}}function tg(n){return n&=-n,2<n?8<n?n&134217727?32:268435456:8:2}function ng(){var n=Q.p;return n!==0?n:(n=window.event,n===void 0?32:Cy(n.type))}function t3(n,i){var s=Q.p;try{return Q.p=n,i()}finally{Q.p=s}}var qa=Math.random().toString(36).slice(2),zt="__reactFiber$"+qa,Qt="__reactProps$"+qa,mr="__reactContainer$"+qa,Yu="__reactEvents$"+qa,n3="__reactListeners$"+qa,a3="__reactHandles$"+qa,ag="__reactResources$"+qa,Bs="__reactMarker$"+qa;function Gu(n){delete n[zt],delete n[Qt],delete n[Yu],delete n[n3],delete n[a3]}function ji(n){var i=n[zt];if(i)return i;for(var s=n.parentNode;s;){if(i=s[mr]||s[zt]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(n=cy(n);n!==null;){if(s=n[zt])return s;n=cy(n)}return i}n=s,s=n.parentNode}return null}function pr(n){if(n=n[zt]||n[mr]){var i=n.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return n}return null}function zs(n){var i=n.tag;if(i===5||i===26||i===27||i===6)return n.stateNode;throw Error(r(33))}function hr(n){var i=n[ag];return i||(i=n[ag]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function jt(n){n[Bs]=!0}var ig=new Set,rg={};function Ei(n,i){gr(n,i),gr(n+"Capture",i)}function gr(n,i){for(rg[n]=i,n=0;n<i.length;n++)ig.add(i[n])}var xa=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),i3=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]*$"),sg={},og={};function r3(n){return q.call(og,n)?!0:q.call(sg,n)?!1:i3.test(n)?og[n]=!0:(sg[n]=!0,!1)}function kl(n,i,s){if(r3(i))if(s===null)n.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":n.removeAttribute(i);return;case"boolean":var l=i.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){n.removeAttribute(i);return}}n.setAttribute(i,""+s)}}function Sl(n,i,s){if(s===null)n.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(i);return}n.setAttribute(i,""+s)}}function ba(n,i,s,l){if(l===null)n.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(s);return}n.setAttributeNS(i,s,""+l)}}function bn(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function lg(n){var i=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function s3(n){var i=lg(n)?"checked":"value",s=Object.getOwnPropertyDescriptor(n.constructor.prototype,i),l=""+n[i];if(!n.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,h=s.set;return Object.defineProperty(n,i,{configurable:!0,get:function(){return d.call(this)},set:function(x){l=""+x,h.call(this,x)}}),Object.defineProperty(n,i,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(x){l=""+x},stopTracking:function(){n._valueTracker=null,delete n[i]}}}}function Cl(n){n._valueTracker||(n._valueTracker=s3(n))}function cg(n){if(!n)return!1;var i=n._valueTracker;if(!i)return!0;var s=i.getValue(),l="";return n&&(l=lg(n)?n.checked?"true":"false":n.value),n=l,n!==s?(i.setValue(n),!0):!1}function jl(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var o3=/[\n"\\]/g;function vn(n){return n.replace(o3,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function Iu(n,i,s,l,d,h,x,k){n.name="",x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?n.type=x:n.removeAttribute("type"),i!=null?x==="number"?(i===0&&n.value===""||n.value!=i)&&(n.value=""+bn(i)):n.value!==""+bn(i)&&(n.value=""+bn(i)):x!=="submit"&&x!=="reset"||n.removeAttribute("value"),i!=null?Zu(n,x,bn(i)):s!=null?Zu(n,x,bn(s)):l!=null&&n.removeAttribute("value"),d==null&&h!=null&&(n.defaultChecked=!!h),d!=null&&(n.checked=d&&typeof d!="function"&&typeof d!="symbol"),k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?n.name=""+bn(k):n.removeAttribute("name")}function ug(n,i,s,l,d,h,x,k){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(n.type=h),i!=null||s!=null){if(!(h!=="submit"&&h!=="reset"||i!=null))return;s=s!=null?""+bn(s):"",i=i!=null?""+bn(i):s,k||i===n.value||(n.value=i),n.defaultValue=i}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,n.checked=k?n.checked:!!l,n.defaultChecked=!!l,x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"&&(n.name=x)}function Zu(n,i,s){i==="number"&&jl(n.ownerDocument)===n||n.defaultValue===""+s||(n.defaultValue=""+s)}function yr(n,i,s,l){if(n=n.options,i){i={};for(var d=0;d<s.length;d++)i["$"+s[d]]=!0;for(s=0;s<n.length;s++)d=i.hasOwnProperty("$"+n[s].value),n[s].selected!==d&&(n[s].selected=d),d&&l&&(n[s].defaultSelected=!0)}else{for(s=""+bn(s),i=null,d=0;d<n.length;d++){if(n[d].value===s){n[d].selected=!0,l&&(n[d].defaultSelected=!0);return}i!==null||n[d].disabled||(i=n[d])}i!==null&&(i.selected=!0)}}function dg(n,i,s){if(i!=null&&(i=""+bn(i),i!==n.value&&(n.value=i),s==null)){n.defaultValue!==i&&(n.defaultValue=i);return}n.defaultValue=s!=null?""+bn(s):""}function fg(n,i,s,l){if(i==null){if(l!=null){if(s!=null)throw Error(r(92));if(ee(l)){if(1<l.length)throw Error(r(93));l=l[0]}s=l}s==null&&(s=""),i=s}s=bn(i),n.defaultValue=s,l=n.textContent,l===s&&l!==""&&l!==null&&(n.value=l)}function xr(n,i){if(i){var s=n.firstChild;if(s&&s===n.lastChild&&s.nodeType===3){s.nodeValue=i;return}}n.textContent=i}var l3=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 mg(n,i,s){var l=i.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?n.setProperty(i,""):i==="float"?n.cssFloat="":n[i]="":l?n.setProperty(i,s):typeof s!="number"||s===0||l3.has(i)?i==="float"?n.cssFloat=s:n[i]=(""+s).trim():n[i]=s+"px"}function pg(n,i,s){if(i!=null&&typeof i!="object")throw Error(r(62));if(n=n.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||i!=null&&i.hasOwnProperty(l)||(l.indexOf("--")===0?n.setProperty(l,""):l==="float"?n.cssFloat="":n[l]="");for(var d in i)l=i[d],i.hasOwnProperty(d)&&s[d]!==l&&mg(n,d,l)}else for(var h in i)i.hasOwnProperty(h)&&mg(n,h,i[h])}function Ku(n){if(n.indexOf("-")===-1)return!1;switch(n){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 c3=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"]]),u3=/^[\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 El(n){return u3.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var Xu=null;function Wu(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var br=null,vr=null;function hg(n){var i=pr(n);if(i&&(n=i.stateNode)){var s=n[Qt]||null;e:switch(n=i.stateNode,i.type){case"input":if(Iu(n,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=n;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+vn(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var l=s[i];if(l!==n&&l.form===n.form){var d=l[Qt]||null;if(!d)throw Error(r(90));Iu(l,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(i=0;i<s.length;i++)l=s[i],l.form===n.form&&cg(l)}break e;case"textarea":dg(n,s.value,s.defaultValue);break e;case"select":i=s.value,i!=null&&yr(n,!!s.multiple,i,!1)}}}var Qu=!1;function gg(n,i,s){if(Qu)return n(i,s);Qu=!0;try{var l=n(i);return l}finally{if(Qu=!1,(br!==null||vr!==null)&&(cc(),br&&(i=br,n=vr,vr=br=null,hg(i),n)))for(i=0;i<n.length;i++)hg(n[i])}}function Ps(n,i){var s=n.stateNode;if(s===null)return null;var l=s[Qt]||null;if(l===null)return null;s=l[i];e:switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(n=n.type,l=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!l;break e;default:n=!1}if(n)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var Ju=!1;if(xa)try{var Vs={};Object.defineProperty(Vs,"passive",{get:function(){Ju=!0}}),window.addEventListener("test",Vs,Vs),window.removeEventListener("test",Vs,Vs)}catch{Ju=!1}var Fa=null,ed=null,Tl=null;function yg(){if(Tl)return Tl;var n,i=ed,s=i.length,l,d="value"in Fa?Fa.value:Fa.textContent,h=d.length;for(n=0;n<s&&i[n]===d[n];n++);var x=s-n;for(l=1;l<=x&&i[s-l]===d[h-l];l++);return Tl=d.slice(n,1<l?1-l:void 0)}function Al(n){var i=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&i===13&&(n=13)):n=i,n===10&&(n=13),32<=n||n===13?n:0}function Nl(){return!0}function xg(){return!1}function Jt(n){function i(s,l,d,h,x){this._reactName=s,this._targetInst=d,this.type=l,this.nativeEvent=h,this.target=x,this.currentTarget=null;for(var k in n)n.hasOwnProperty(k)&&(s=n[k],this[k]=s?s(h):h[k]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Nl:xg,this.isPropagationStopped=xg,this}return se(i.prototype,{preventDefault:function(){this.defaultPrevented=!0;var s=this.nativeEvent;s&&(s.preventDefault?s.preventDefault():typeof s.returnValue!="unknown"&&(s.returnValue=!1),this.isDefaultPrevented=Nl)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Nl)},persist:function(){},isPersistent:Nl}),i}var Ti={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ml=Jt(Ti),Us=se({},Ti,{view:0,detail:0}),d3=Jt(Us),td,nd,Hs,Rl=se({},Us,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:id,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Hs&&(Hs&&n.type==="mousemove"?(td=n.screenX-Hs.screenX,nd=n.screenY-Hs.screenY):nd=td=0,Hs=n),td)},movementY:function(n){return"movementY"in n?n.movementY:nd}}),bg=Jt(Rl),f3=se({},Rl,{dataTransfer:0}),m3=Jt(f3),p3=se({},Us,{relatedTarget:0}),ad=Jt(p3),h3=se({},Ti,{animationName:0,elapsedTime:0,pseudoElement:0}),g3=Jt(h3),y3=se({},Ti,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),x3=Jt(y3),b3=se({},Ti,{data:0}),vg=Jt(b3),v3={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},w3={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"},k3={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function S3(n){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(n):(n=k3[n])?!!i[n]:!1}function id(){return S3}var C3=se({},Us,{key:function(n){if(n.key){var i=v3[n.key]||n.key;if(i!=="Unidentified")return i}return n.type==="keypress"?(n=Al(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?w3[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:id,charCode:function(n){return n.type==="keypress"?Al(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Al(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),j3=Jt(C3),E3=se({},Rl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wg=Jt(E3),T3=se({},Us,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:id}),A3=Jt(T3),N3=se({},Ti,{propertyName:0,elapsedTime:0,pseudoElement:0}),M3=Jt(N3),R3=se({},Rl,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),D3=Jt(R3),O3=se({},Ti,{newState:0,oldState:0}),_3=Jt(O3),L3=[9,13,27,32],rd=xa&&"CompositionEvent"in window,qs=null;xa&&"documentMode"in document&&(qs=document.documentMode);var B3=xa&&"TextEvent"in window&&!qs,kg=xa&&(!rd||qs&&8<qs&&11>=qs),Sg=" ",Cg=!1;function jg(n,i){switch(n){case"keyup":return L3.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Eg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var wr=!1;function z3(n,i){switch(n){case"compositionend":return Eg(i);case"keypress":return i.which!==32?null:(Cg=!0,Sg);case"textInput":return n=i.data,n===Sg&&Cg?null:n;default:return null}}function P3(n,i){if(wr)return n==="compositionend"||!rd&&jg(n,i)?(n=yg(),Tl=ed=Fa=null,wr=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(i.ctrlKey||i.altKey||i.metaKey)||i.ctrlKey&&i.altKey){if(i.char&&1<i.char.length)return i.char;if(i.which)return String.fromCharCode(i.which)}return null;case"compositionend":return kg&&i.locale!=="ko"?null:i.data;default:return null}}var V3={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 Tg(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i==="input"?!!V3[n.type]:i==="textarea"}function Ag(n,i,s,l){br?vr?vr.push(l):vr=[l]:br=l,i=pc(i,"onChange"),0<i.length&&(s=new Ml("onChange","change",null,s,l),n.push({event:s,listeners:i}))}var Fs=null,$s=null;function U3(n){ey(n,0)}function Dl(n){var i=zs(n);if(cg(i))return n}function Ng(n,i){if(n==="change")return i}var Mg=!1;if(xa){var sd;if(xa){var od="oninput"in document;if(!od){var Rg=document.createElement("div");Rg.setAttribute("oninput","return;"),od=typeof Rg.oninput=="function"}sd=od}else sd=!1;Mg=sd&&(!document.documentMode||9<document.documentMode)}function Dg(){Fs&&(Fs.detachEvent("onpropertychange",Og),$s=Fs=null)}function Og(n){if(n.propertyName==="value"&&Dl($s)){var i=[];Ag(i,$s,n,Wu(n)),gg(U3,i)}}function H3(n,i,s){n==="focusin"?(Dg(),Fs=i,$s=s,Fs.attachEvent("onpropertychange",Og)):n==="focusout"&&Dg()}function q3(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Dl($s)}function F3(n,i){if(n==="click")return Dl(i)}function $3(n,i){if(n==="input"||n==="change")return Dl(i)}function Y3(n,i){return n===i&&(n!==0||1/n===1/i)||n!==n&&i!==i}var ln=typeof Object.is=="function"?Object.is:Y3;function Ys(n,i){if(ln(n,i))return!0;if(typeof n!="object"||n===null||typeof i!="object"||i===null)return!1;var s=Object.keys(n),l=Object.keys(i);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var d=s[l];if(!q.call(i,d)||!ln(n[d],i[d]))return!1}return!0}function _g(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Lg(n,i){var s=_g(n);n=0;for(var l;s;){if(s.nodeType===3){if(l=n+s.textContent.length,n<=i&&l>=i)return{node:s,offset:i-n};n=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=_g(s)}}function Bg(n,i){return n&&i?n===i?!0:n&&n.nodeType===3?!1:i&&i.nodeType===3?Bg(n,i.parentNode):"contains"in n?n.contains(i):n.compareDocumentPosition?!!(n.compareDocumentPosition(i)&16):!1:!1}function zg(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var i=jl(n.document);i instanceof n.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)n=i.contentWindow;else break;i=jl(n.document)}return i}function ld(n){var i=n&&n.nodeName&&n.nodeName.toLowerCase();return i&&(i==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||i==="textarea"||n.contentEditable==="true")}function G3(n,i){var s=zg(i);i=n.focusedElem;var l=n.selectionRange;if(s!==i&&i&&i.ownerDocument&&Bg(i.ownerDocument.documentElement,i)){if(l!==null&&ld(i)){if(n=l.start,s=l.end,s===void 0&&(s=n),"selectionStart"in i)i.selectionStart=n,i.selectionEnd=Math.min(s,i.value.length);else if(s=(n=i.ownerDocument||document)&&n.defaultView||window,s.getSelection){s=s.getSelection();var d=i.textContent.length,h=Math.min(l.start,d);l=l.end===void 0?h:Math.min(l.end,d),!s.extend&&h>l&&(d=l,l=h,h=d),d=Lg(i,h);var x=Lg(i,l);d&&x&&(s.rangeCount!==1||s.anchorNode!==d.node||s.anchorOffset!==d.offset||s.focusNode!==x.node||s.focusOffset!==x.offset)&&(n=n.createRange(),n.setStart(d.node,d.offset),s.removeAllRanges(),h>l?(s.addRange(n),s.extend(x.node,x.offset)):(n.setEnd(x.node,x.offset),s.addRange(n)))}}for(n=[],s=i;s=s.parentNode;)s.nodeType===1&&n.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<n.length;i++)s=n[i],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var I3=xa&&"documentMode"in document&&11>=document.documentMode,kr=null,cd=null,Gs=null,ud=!1;function Pg(n,i,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;ud||kr==null||kr!==jl(l)||(l=kr,"selectionStart"in l&&ld(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),Gs&&Ys(Gs,l)||(Gs=l,l=pc(cd,"onSelect"),0<l.length&&(i=new Ml("onSelect","select",null,i,s),n.push({event:i,listeners:l}),i.target=kr)))}function Ai(n,i){var s={};return s[n.toLowerCase()]=i.toLowerCase(),s["Webkit"+n]="webkit"+i,s["Moz"+n]="moz"+i,s}var Sr={animationend:Ai("Animation","AnimationEnd"),animationiteration:Ai("Animation","AnimationIteration"),animationstart:Ai("Animation","AnimationStart"),transitionrun:Ai("Transition","TransitionRun"),transitionstart:Ai("Transition","TransitionStart"),transitioncancel:Ai("Transition","TransitionCancel"),transitionend:Ai("Transition","TransitionEnd")},dd={},Vg={};xa&&(Vg=document.createElement("div").style,"AnimationEvent"in window||(delete Sr.animationend.animation,delete Sr.animationiteration.animation,delete Sr.animationstart.animation),"TransitionEvent"in window||delete Sr.transitionend.transition);function Ni(n){if(dd[n])return dd[n];if(!Sr[n])return n;var i=Sr[n],s;for(s in i)if(i.hasOwnProperty(s)&&s in Vg)return dd[n]=i[s];return n}var Ug=Ni("animationend"),Hg=Ni("animationiteration"),qg=Ni("animationstart"),Z3=Ni("transitionrun"),K3=Ni("transitionstart"),X3=Ni("transitioncancel"),Fg=Ni("transitionend"),$g=new Map,Yg="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 scrollEnd toggle touchMove waiting wheel".split(" ");function Pn(n,i){$g.set(n,i),Ei(i,[n])}var wn=[],Cr=0,fd=0;function Ol(){for(var n=Cr,i=fd=Cr=0;i<n;){var s=wn[i];wn[i++]=null;var l=wn[i];wn[i++]=null;var d=wn[i];wn[i++]=null;var h=wn[i];if(wn[i++]=null,l!==null&&d!==null){var x=l.pending;x===null?d.next=d:(d.next=x.next,x.next=d),l.pending=d}h!==0&&Gg(s,d,h)}}function _l(n,i,s,l){wn[Cr++]=n,wn[Cr++]=i,wn[Cr++]=s,wn[Cr++]=l,fd|=l,n.lanes|=l,n=n.alternate,n!==null&&(n.lanes|=l)}function md(n,i,s,l){return _l(n,i,s,l),Ll(n)}function $a(n,i){return _l(n,null,null,i),Ll(n)}function Gg(n,i,s){n.lanes|=s;var l=n.alternate;l!==null&&(l.lanes|=s);for(var d=!1,h=n.return;h!==null;)h.childLanes|=s,l=h.alternate,l!==null&&(l.childLanes|=s),h.tag===22&&(n=h.stateNode,n===null||n._visibility&1||(d=!0)),n=h,h=h.return;d&&i!==null&&n.tag===3&&(h=n.stateNode,d=31-Dt(s),h=h.hiddenUpdates,n=h[d],n===null?h[d]=[i]:n.push(i),i.lane=s|536870912)}function Ll(n){if(50<xo)throw xo=0,vf=null,Error(r(185));for(var i=n.return;i!==null;)n=i,i=n.return;return n.tag===3?n.stateNode:null}var jr={},Ig=new WeakMap;function kn(n,i){if(typeof n=="object"&&n!==null){var s=Ig.get(n);return s!==void 0?s:(i={value:n,source:i,stack:_(i)},Ig.set(n,i),i)}return{value:n,source:i,stack:_(i)}}var Er=[],Tr=0,Bl=null,zl=0,Sn=[],Cn=0,Mi=null,va=1,wa="";function Ri(n,i){Er[Tr++]=zl,Er[Tr++]=Bl,Bl=n,zl=i}function Zg(n,i,s){Sn[Cn++]=va,Sn[Cn++]=wa,Sn[Cn++]=Mi,Mi=n;var l=va;n=wa;var d=32-Dt(l)-1;l&=~(1<<d),s+=1;var h=32-Dt(i)+d;if(30<h){var x=d-d%5;h=(l&(1<<x)-1).toString(32),l>>=x,d-=x,va=1<<32-Dt(i)+d|s<<d|l,wa=h+n}else va=1<<h|s<<d|l,wa=n}function pd(n){n.return!==null&&(Ri(n,1),Zg(n,1,0))}function hd(n){for(;n===Bl;)Bl=Er[--Tr],Er[Tr]=null,zl=Er[--Tr],Er[Tr]=null;for(;n===Mi;)Mi=Sn[--Cn],Sn[Cn]=null,wa=Sn[--Cn],Sn[Cn]=null,va=Sn[--Cn],Sn[Cn]=null}var Yt=null,Ot=null,Ve=!1,Vn=null,Wn=!1,gd=Error(r(519));function Di(n){var i=Error(r(418,""));throw Ks(kn(i,n)),gd}function Kg(n){var i=n.stateNode,s=n.type,l=n.memoizedProps;switch(i[zt]=n,i[Qt]=l,s){case"dialog":Be("cancel",i),Be("close",i);break;case"iframe":case"object":case"embed":Be("load",i);break;case"video":case"audio":for(s=0;s<vo.length;s++)Be(vo[s],i);break;case"source":Be("error",i);break;case"img":case"image":case"link":Be("error",i),Be("load",i);break;case"details":Be("toggle",i);break;case"input":Be("invalid",i),ug(i,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Cl(i);break;case"select":Be("invalid",i);break;case"textarea":Be("invalid",i),fg(i,l.value,l.defaultValue,l.children),Cl(i)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||l.suppressHydrationWarning===!0||iy(i.textContent,s)?(l.popover!=null&&(Be("beforetoggle",i),Be("toggle",i)),l.onScroll!=null&&Be("scroll",i),l.onScrollEnd!=null&&Be("scrollend",i),l.onClick!=null&&(i.onclick=hc),i=!0):i=!1,i||Di(n)}function Xg(n){for(Yt=n.return;Yt;)switch(Yt.tag){case 3:case 27:Wn=!0;return;case 5:case 13:Wn=!1;return;default:Yt=Yt.return}}function Is(n){if(n!==Yt)return!1;if(!Ve)return Xg(n),Ve=!0,!1;var i=!1,s;if((s=n.tag!==3&&n.tag!==27)&&((s=n.tag===5)&&(s=n.type,s=!(s!=="form"&&s!=="button")||zf(n.type,n.memoizedProps)),s=!s),s&&(i=!0),i&&Ot&&Di(n),Xg(n),n.tag===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(r(317));e:{for(n=n.nextSibling,i=0;n;){if(n.nodeType===8)if(s=n.data,s==="/$"){if(i===0){Ot=Hn(n.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++;n=n.nextSibling}Ot=null}}else Ot=Yt?Hn(n.stateNode.nextSibling):null;return!0}function Zs(){Ot=Yt=null,Ve=!1}function Ks(n){Vn===null?Vn=[n]:Vn.push(n)}var Xs=Error(r(460)),Wg=Error(r(474)),yd={then:function(){}};function Qg(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Pl(){}function Jg(n,i,s){switch(s=n[s],s===void 0?n.push(i):s!==i&&(i.then(Pl,Pl),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,n===Xs?Error(r(483)):n;default:if(typeof i.status=="string")i.then(Pl,Pl);else{if(n=We,n!==null&&100<n.shellSuspendCounter)throw Error(r(482));n=i,n.status="pending",n.then(function(l){if(i.status==="pending"){var d=i;d.status="fulfilled",d.value=l}},function(l){if(i.status==="pending"){var d=i;d.status="rejected",d.reason=l}})}switch(i.status){case"fulfilled":return i.value;case"rejected":throw n=i.reason,n===Xs?Error(r(483)):n}throw Ws=i,Xs}}var Ws=null;function e0(){if(Ws===null)throw Error(r(459));var n=Ws;return Ws=null,n}var Ar=null,Qs=0;function Vl(n){var i=Qs;return Qs+=1,Ar===null&&(Ar=[]),Jg(Ar,n,i)}function Js(n,i){i=i.props.ref,n.ref=i!==void 0?i:null}function Ul(n,i){throw i.$$typeof===c?Error(r(525)):(n=Object.prototype.toString.call(i),Error(r(31,n==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":n)))}function t0(n){var i=n._init;return i(n._payload)}function n0(n){function i(z,L){if(n){var P=z.deletions;P===null?(z.deletions=[L],z.flags|=16):P.push(L)}}function s(z,L){if(!n)return null;for(;L!==null;)i(z,L),L=L.sibling;return null}function l(z){for(var L=new Map;z!==null;)z.key!==null?L.set(z.key,z):L.set(z.index,z),z=z.sibling;return L}function d(z,L){return z=ni(z,L),z.index=0,z.sibling=null,z}function h(z,L,P){return z.index=P,n?(P=z.alternate,P!==null?(P=P.index,P<L?(z.flags|=33554434,L):P):(z.flags|=33554434,L)):(z.flags|=1048576,L)}function x(z){return n&&z.alternate===null&&(z.flags|=33554434),z}function k(z,L,P,X){return L===null||L.tag!==6?(L=ff(P,z.mode,X),L.return=z,L):(L=d(L,P),L.return=z,L)}function A(z,L,P,X){var ce=P.type;return ce===p?G(z,L,P.props.children,X,P.key):L!==null&&(L.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===D&&t0(ce)===L.type)?(L=d(L,P.props),Js(L,P),L.return=z,L):(L=ic(P.type,P.key,P.props,null,z.mode,X),Js(L,P),L.return=z,L)}function B(z,L,P,X){return L===null||L.tag!==4||L.stateNode.containerInfo!==P.containerInfo||L.stateNode.implementation!==P.implementation?(L=mf(P,z.mode,X),L.return=z,L):(L=d(L,P.children||[]),L.return=z,L)}function G(z,L,P,X,ce){return L===null||L.tag!==7?(L=qi(P,z.mode,X,ce),L.return=z,L):(L=d(L,P),L.return=z,L)}function J(z,L,P){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=ff(""+L,z.mode,P),L.return=z,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case u:return P=ic(L.type,L.key,L.props,null,z.mode,P),Js(P,L),P.return=z,P;case m:return L=mf(L,z.mode,P),L.return=z,L;case D:var X=L._init;return L=X(L._payload),J(z,L,P)}if(ee(L)||te(L))return L=qi(L,z.mode,P,null),L.return=z,L;if(typeof L.then=="function")return J(z,Vl(L),P);if(L.$$typeof===T)return J(z,tc(z,L),P);Ul(z,L)}return null}function U(z,L,P,X){var ce=L!==null?L.key:null;if(typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint")return ce!==null?null:k(z,L,""+P,X);if(typeof P=="object"&&P!==null){switch(P.$$typeof){case u:return P.key===ce?A(z,L,P,X):null;case m:return P.key===ce?B(z,L,P,X):null;case D:return ce=P._init,P=ce(P._payload),U(z,L,P,X)}if(ee(P)||te(P))return ce!==null?null:G(z,L,P,X,null);if(typeof P.then=="function")return U(z,L,Vl(P),X);if(P.$$typeof===T)return U(z,L,tc(z,P),X);Ul(z,P)}return null}function Y(z,L,P,X,ce){if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return z=z.get(P)||null,k(L,z,""+X,ce);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case u:return z=z.get(X.key===null?P:X.key)||null,A(L,z,X,ce);case m:return z=z.get(X.key===null?P:X.key)||null,B(L,z,X,ce);case D:var Re=X._init;return X=Re(X._payload),Y(z,L,P,X,ce)}if(ee(X)||te(X))return z=z.get(P)||null,G(L,z,X,ce,null);if(typeof X.then=="function")return Y(z,L,P,Vl(X),ce);if(X.$$typeof===T)return Y(z,L,P,tc(L,X),ce);Ul(L,X)}return null}function me(z,L,P,X){for(var ce=null,Re=null,ye=L,we=L=0,At=null;ye!==null&&we<P.length;we++){ye.index>we?(At=ye,ye=null):At=ye.sibling;var Ue=U(z,ye,P[we],X);if(Ue===null){ye===null&&(ye=At);break}n&&ye&&Ue.alternate===null&&i(z,ye),L=h(Ue,L,we),Re===null?ce=Ue:Re.sibling=Ue,Re=Ue,ye=At}if(we===P.length)return s(z,ye),Ve&&Ri(z,we),ce;if(ye===null){for(;we<P.length;we++)ye=J(z,P[we],X),ye!==null&&(L=h(ye,L,we),Re===null?ce=ye:Re.sibling=ye,Re=ye);return Ve&&Ri(z,we),ce}for(ye=l(ye);we<P.length;we++)At=Y(ye,z,we,P[we],X),At!==null&&(n&&At.alternate!==null&&ye.delete(At.key===null?we:At.key),L=h(At,L,we),Re===null?ce=At:Re.sibling=At,Re=At);return n&&ye.forEach(function(ci){return i(z,ci)}),Ve&&Ri(z,we),ce}function Ce(z,L,P,X){if(P==null)throw Error(r(151));for(var ce=null,Re=null,ye=L,we=L=0,At=null,Ue=P.next();ye!==null&&!Ue.done;we++,Ue=P.next()){ye.index>we?(At=ye,ye=null):At=ye.sibling;var ci=U(z,ye,Ue.value,X);if(ci===null){ye===null&&(ye=At);break}n&&ye&&ci.alternate===null&&i(z,ye),L=h(ci,L,we),Re===null?ce=ci:Re.sibling=ci,Re=ci,ye=At}if(Ue.done)return s(z,ye),Ve&&Ri(z,we),ce;if(ye===null){for(;!Ue.done;we++,Ue=P.next())Ue=J(z,Ue.value,X),Ue!==null&&(L=h(Ue,L,we),Re===null?ce=Ue:Re.sibling=Ue,Re=Ue);return Ve&&Ri(z,we),ce}for(ye=l(ye);!Ue.done;we++,Ue=P.next())Ue=Y(ye,z,we,Ue.value,X),Ue!==null&&(n&&Ue.alternate!==null&&ye.delete(Ue.key===null?we:Ue.key),L=h(Ue,L,we),Re===null?ce=Ue:Re.sibling=Ue,Re=Ue);return n&&ye.forEach(function(u7){return i(z,u7)}),Ve&&Ri(z,we),ce}function ct(z,L,P,X){if(typeof P=="object"&&P!==null&&P.type===p&&P.key===null&&(P=P.props.children),typeof P=="object"&&P!==null){switch(P.$$typeof){case u:e:{for(var ce=P.key;L!==null;){if(L.key===ce){if(ce=P.type,ce===p){if(L.tag===7){s(z,L.sibling),X=d(L,P.props.children),X.return=z,z=X;break e}}else if(L.elementType===ce||typeof ce=="object"&&ce!==null&&ce.$$typeof===D&&t0(ce)===L.type){s(z,L.sibling),X=d(L,P.props),Js(X,P),X.return=z,z=X;break e}s(z,L);break}else i(z,L);L=L.sibling}P.type===p?(X=qi(P.props.children,z.mode,X,P.key),X.return=z,z=X):(X=ic(P.type,P.key,P.props,null,z.mode,X),Js(X,P),X.return=z,z=X)}return x(z);case m:e:{for(ce=P.key;L!==null;){if(L.key===ce)if(L.tag===4&&L.stateNode.containerInfo===P.containerInfo&&L.stateNode.implementation===P.implementation){s(z,L.sibling),X=d(L,P.children||[]),X.return=z,z=X;break e}else{s(z,L);break}else i(z,L);L=L.sibling}X=mf(P,z.mode,X),X.return=z,z=X}return x(z);case D:return ce=P._init,P=ce(P._payload),ct(z,L,P,X)}if(ee(P))return me(z,L,P,X);if(te(P)){if(ce=te(P),typeof ce!="function")throw Error(r(150));return P=ce.call(P),Ce(z,L,P,X)}if(typeof P.then=="function")return ct(z,L,Vl(P),X);if(P.$$typeof===T)return ct(z,L,tc(z,P),X);Ul(z,P)}return typeof P=="string"&&P!==""||typeof P=="number"||typeof P=="bigint"?(P=""+P,L!==null&&L.tag===6?(s(z,L.sibling),X=d(L,P),X.return=z,z=X):(s(z,L),X=ff(P,z.mode,X),X.return=z,z=X),x(z)):s(z,L)}return function(z,L,P,X){try{Qs=0;var ce=ct(z,L,P,X);return Ar=null,ce}catch(ye){if(ye===Xs)throw ye;var Re=An(29,ye,null,z.mode);return Re.lanes=X,Re.return=z,Re}finally{}}}var Oi=n0(!0),a0=n0(!1),Nr=xe(null),Hl=xe(0);function i0(n,i){n=Da,He(Hl,n),He(Nr,i),Da=n|i.baseLanes}function xd(){He(Hl,Da),He(Nr,Nr.current)}function bd(){Da=Hl.current,Pe(Nr),Pe(Hl)}var jn=xe(null),Qn=null;function Ya(n){var i=n.alternate;He(bt,bt.current&1),He(jn,n),Qn===null&&(i===null||Nr.current!==null||i.memoizedState!==null)&&(Qn=n)}function r0(n){if(n.tag===22){if(He(bt,bt.current),He(jn,n),Qn===null){var i=n.alternate;i!==null&&i.memoizedState!==null&&(Qn=n)}}else Ga()}function Ga(){He(bt,bt.current),He(jn,jn.current)}function ka(n){Pe(jn),Qn===n&&(Qn=null),Pe(bt)}var bt=xe(0);function ql(n){for(var i=n;i!==null;){if(i.tag===13){var s=i.memoizedState;if(s!==null&&(s=s.dehydrated,s===null||s.data==="$?"||s.data==="$!"))return i}else if(i.tag===19&&i.memoizedProps.revealOrder!==void 0){if(i.flags&128)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var W3=typeof AbortController<"u"?AbortController:function(){var n=[],i=this.signal={aborted:!1,addEventListener:function(s,l){n.push(l)}};this.abort=function(){i.aborted=!0,n.forEach(function(s){return s()})}},Q3=e.unstable_scheduleCallback,J3=e.unstable_NormalPriority,vt={$$typeof:T,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function vd(){return{controller:new W3,data:new Map,refCount:0}}function eo(n){n.refCount--,n.refCount===0&&Q3(J3,function(){n.controller.abort()})}var to=null,wd=0,Mr=0,Rr=null;function ek(n,i){if(to===null){var s=to=[];wd=0,Mr=Af(),Rr={status:"pending",value:void 0,then:function(l){s.push(l)}}}return wd++,i.then(s0,s0),i}function s0(){if(--wd===0&&to!==null){Rr!==null&&(Rr.status="fulfilled");var n=to;to=null,Mr=0,Rr=null;for(var i=0;i<n.length;i++)(0,n[i])()}}function tk(n,i){var s=[],l={status:"pending",value:null,reason:null,then:function(d){s.push(d)}};return n.then(function(){l.status="fulfilled",l.value=i;for(var d=0;d<s.length;d++)(0,s[d])(i)},function(d){for(l.status="rejected",l.reason=d,d=0;d<s.length;d++)(0,s[d])(void 0)}),l}var o0=W.S;W.S=function(n,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&ek(n,i),o0!==null&&o0(n,i)};var _i=xe(null);function kd(){var n=_i.current;return n!==null?n:We.pooledCache}function Fl(n,i){i===null?He(_i,_i.current):He(_i,i.pool)}function l0(){var n=kd();return n===null?null:{parent:vt._currentValue,pool:n}}var Ia=0,Ne=null,Ie=null,ht=null,$l=!1,Dr=!1,Li=!1,Yl=0,no=0,Or=null,nk=0;function ft(){throw Error(r(321))}function Sd(n,i){if(i===null)return!1;for(var s=0;s<i.length&&s<n.length;s++)if(!ln(n[s],i[s]))return!1;return!0}function Cd(n,i,s,l,d,h){return Ia=h,Ne=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,W.H=n===null||n.memoizedState===null?Bi:Za,Li=!1,h=s(l,d),Li=!1,Dr&&(h=u0(i,s,l,d)),c0(n),h}function c0(n){W.H=Jn;var i=Ie!==null&&Ie.next!==null;if(Ia=0,ht=Ie=Ne=null,$l=!1,no=0,Or=null,i)throw Error(r(300));n===null||Et||(n=n.dependencies,n!==null&&ec(n)&&(Et=!0))}function u0(n,i,s,l){Ne=n;var d=0;do{if(Dr&&(Or=null),no=0,Dr=!1,25<=d)throw Error(r(301));if(d+=1,ht=Ie=null,n.updateQueue!=null){var h=n.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}W.H=zi,h=i(s,l)}while(Dr);return h}function ak(){var n=W.H,i=n.useState()[0];return i=typeof i.then=="function"?ao(i):i,n=n.useState()[0],(Ie!==null?Ie.memoizedState:null)!==n&&(Ne.flags|=1024),i}function jd(){var n=Yl!==0;return Yl=0,n}function Ed(n,i,s){i.updateQueue=n.updateQueue,i.flags&=-2053,n.lanes&=~s}function Td(n){if($l){for(n=n.memoizedState;n!==null;){var i=n.queue;i!==null&&(i.pending=null),n=n.next}$l=!1}Ia=0,ht=Ie=Ne=null,Dr=!1,no=Yl=0,Or=null}function en(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ht===null?Ne.memoizedState=ht=n:ht=ht.next=n,ht}function gt(){if(Ie===null){var n=Ne.alternate;n=n!==null?n.memoizedState:null}else n=Ie.next;var i=ht===null?Ne.memoizedState:ht.next;if(i!==null)ht=i,Ie=n;else{if(n===null)throw Ne.alternate===null?Error(r(467)):Error(r(310));Ie=n,n={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},ht===null?Ne.memoizedState=ht=n:ht=ht.next=n}return ht}var Gl;Gl=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function ao(n){var i=no;return no+=1,Or===null&&(Or=[]),n=Jg(Or,n,i),i=Ne,(ht===null?i.memoizedState:ht.next)===null&&(i=i.alternate,W.H=i===null||i.memoizedState===null?Bi:Za),n}function Il(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return ao(n);if(n.$$typeof===T)return Pt(n)}throw Error(r(438,String(n)))}function Ad(n){var i=null,s=Ne.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var l=Ne.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(i={data:l.data.map(function(d){return d.slice()}),index:0})))}if(i==null&&(i={data:[],index:0}),s===null&&(s=Gl(),Ne.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0)for(s=i.data[i.index]=Array(n),l=0;l<n;l++)s[l]=F;return i.index++,s}function Sa(n,i){return typeof i=="function"?i(n):i}function Zl(n){var i=gt();return Nd(i,Ie,n)}function Nd(n,i,s){var l=n.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=s;var d=n.baseQueue,h=l.pending;if(h!==null){if(d!==null){var x=d.next;d.next=h.next,h.next=x}i.baseQueue=d=h,l.pending=null}if(h=n.baseState,d===null)n.memoizedState=h;else{i=d.next;var k=x=null,A=null,B=i,G=!1;do{var J=B.lane&-536870913;if(J!==B.lane?(ze&J)===J:(Ia&J)===J){var U=B.revertLane;if(U===0)A!==null&&(A=A.next={lane:0,revertLane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),J===Mr&&(G=!0);else if((Ia&U)===U){B=B.next,U===Mr&&(G=!0);continue}else J={lane:0,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(k=A=J,x=h):A=A.next=J,Ne.lanes|=U,ai|=U;J=B.action,Li&&s(h,J),h=B.hasEagerState?B.eagerState:s(h,J)}else U={lane:J,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},A===null?(k=A=U,x=h):A=A.next=U,Ne.lanes|=J,ai|=J;B=B.next}while(B!==null&&B!==i);if(A===null?x=h:A.next=k,!ln(h,n.memoizedState)&&(Et=!0,G&&(s=Rr,s!==null)))throw s;n.memoizedState=h,n.baseState=x,n.baseQueue=A,l.lastRenderedState=h}return d===null&&(l.lanes=0),[n.memoizedState,l.dispatch]}function Md(n){var i=gt(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=n;var l=s.dispatch,d=s.pending,h=i.memoizedState;if(d!==null){s.pending=null;var x=d=d.next;do h=n(h,x.action),x=x.next;while(x!==d);ln(h,i.memoizedState)||(Et=!0),i.memoizedState=h,i.baseQueue===null&&(i.baseState=h),s.lastRenderedState=h}return[h,l]}function d0(n,i,s){var l=Ne,d=gt(),h=Ve;if(h){if(s===void 0)throw Error(r(407));s=s()}else s=i();var x=!ln((Ie||d).memoizedState,s);if(x&&(d.memoizedState=s,Et=!0),d=d.queue,Od(p0.bind(null,l,d,n),[n]),d.getSnapshot!==i||x||ht!==null&&ht.memoizedState.tag&1){if(l.flags|=2048,_r(9,m0.bind(null,l,d,s,i),{destroy:void 0},null),We===null)throw Error(r(349));h||Ia&60||f0(l,i,s)}return s}function f0(n,i,s){n.flags|=16384,n={getSnapshot:i,value:s},i=Ne.updateQueue,i===null?(i=Gl(),Ne.updateQueue=i,i.stores=[n]):(s=i.stores,s===null?i.stores=[n]:s.push(n))}function m0(n,i,s,l){i.value=s,i.getSnapshot=l,h0(i)&&g0(n)}function p0(n,i,s){return s(function(){h0(i)&&g0(n)})}function h0(n){var i=n.getSnapshot;n=n.value;try{var s=i();return!ln(n,s)}catch{return!0}}function g0(n){var i=$a(n,2);i!==null&&Gt(i,n,2)}function Rd(n){var i=en();if(typeof n=="function"){var s=n;if(n=s(),Li){xn(!0);try{s()}finally{xn(!1)}}}return i.memoizedState=i.baseState=n,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:n},i}function y0(n,i,s,l){return n.baseState=s,Nd(n,Ie,typeof l=="function"?l:Sa)}function ik(n,i,s,l,d){if(Wl(n))throw Error(r(485));if(n=i.action,n!==null){var h={payload:d,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(x){h.listeners.push(x)}};W.T!==null?s(!0):h.isTransition=!1,l(h),s=i.pending,s===null?(h.next=i.pending=h,x0(i,h)):(h.next=s.next,i.pending=s.next=h)}}function x0(n,i){var s=i.action,l=i.payload,d=n.state;if(i.isTransition){var h=W.T,x={};W.T=x;try{var k=s(d,l),A=W.S;A!==null&&A(x,k),b0(n,i,k)}catch(B){Dd(n,i,B)}finally{W.T=h}}else try{h=s(d,l),b0(n,i,h)}catch(B){Dd(n,i,B)}}function b0(n,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){v0(n,i,l)},function(l){return Dd(n,i,l)}):v0(n,i,s)}function v0(n,i,s){i.status="fulfilled",i.value=s,w0(i),n.state=s,i=n.pending,i!==null&&(s=i.next,s===i?n.pending=null:(s=s.next,i.next=s,x0(n,s)))}function Dd(n,i,s){var l=n.pending;if(n.pending=null,l!==null){l=l.next;do i.status="rejected",i.reason=s,w0(i),i=i.next;while(i!==l)}n.action=null}function w0(n){n=n.listeners;for(var i=0;i<n.length;i++)(0,n[i])()}function k0(n,i){return i}function S0(n,i){if(Ve){var s=We.formState;if(s!==null){e:{var l=Ne;if(Ve){if(Ot){t:{for(var d=Ot,h=Wn;d.nodeType!==8;){if(!h){d=null;break t}if(d=Hn(d.nextSibling),d===null){d=null;break t}}h=d.data,d=h==="F!"||h==="F"?d:null}if(d){Ot=Hn(d.nextSibling),l=d.data==="F!";break e}}Di(l)}l=!1}l&&(i=s[0])}}return s=en(),s.memoizedState=s.baseState=i,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:k0,lastRenderedState:i},s.queue=l,s=H0.bind(null,Ne,l),l.dispatch=s,l=Rd(!1),h=Pd.bind(null,Ne,!1,l.queue),l=en(),d={state:i,dispatch:null,action:n,pending:null},l.queue=d,s=ik.bind(null,Ne,d,h,s),d.dispatch=s,l.memoizedState=n,[i,s,!1]}function C0(n){var i=gt();return j0(i,Ie,n)}function j0(n,i,s){i=Nd(n,i,k0)[0],n=Zl(Sa)[0],i=typeof i=="object"&&i!==null&&typeof i.then=="function"?ao(i):i;var l=gt(),d=l.queue,h=d.dispatch;return s!==l.memoizedState&&(Ne.flags|=2048,_r(9,rk.bind(null,d,s),{destroy:void 0},null)),[i,h,n]}function rk(n,i){n.action=i}function E0(n){var i=gt(),s=Ie;if(s!==null)return j0(i,s,n);gt(),i=i.memoizedState,s=gt();var l=s.queue.dispatch;return s.memoizedState=n,[i,l,!1]}function _r(n,i,s,l){return n={tag:n,create:i,inst:s,deps:l,next:null},i=Ne.updateQueue,i===null&&(i=Gl(),Ne.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=n.next=n:(l=s.next,s.next=n,n.next=l,i.lastEffect=n),n}function T0(){return gt().memoizedState}function Kl(n,i,s,l){var d=en();Ne.flags|=n,d.memoizedState=_r(1|i,s,{destroy:void 0},l===void 0?null:l)}function Xl(n,i,s,l){var d=gt();l=l===void 0?null:l;var h=d.memoizedState.inst;Ie!==null&&l!==null&&Sd(l,Ie.memoizedState.deps)?d.memoizedState=_r(i,s,h,l):(Ne.flags|=n,d.memoizedState=_r(1|i,s,h,l))}function A0(n,i){Kl(8390656,8,n,i)}function Od(n,i){Xl(2048,8,n,i)}function N0(n,i){return Xl(4,2,n,i)}function M0(n,i){return Xl(4,4,n,i)}function R0(n,i){if(typeof i=="function"){n=n();var s=i(n);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return n=n(),i.current=n,function(){i.current=null}}function D0(n,i,s){s=s!=null?s.concat([n]):null,Xl(4,4,R0.bind(null,i,n),s)}function _d(){}function O0(n,i){var s=gt();i=i===void 0?null:i;var l=s.memoizedState;return i!==null&&Sd(i,l[1])?l[0]:(s.memoizedState=[n,i],n)}function _0(n,i){var s=gt();i=i===void 0?null:i;var l=s.memoizedState;if(i!==null&&Sd(i,l[1]))return l[0];if(l=n(),Li){xn(!0);try{n()}finally{xn(!1)}}return s.memoizedState=[l,i],l}function Ld(n,i,s){return s===void 0||Ia&1073741824?n.memoizedState=i:(n.memoizedState=s,n=B1(),Ne.lanes|=n,ai|=n,s)}function L0(n,i,s,l){return ln(s,i)?s:Nr.current!==null?(n=Ld(n,s,l),ln(n,i)||(Et=!0),n):Ia&42?(n=B1(),Ne.lanes|=n,ai|=n,i):(Et=!0,n.memoizedState=s)}function B0(n,i,s,l,d){var h=Q.p;Q.p=h!==0&&8>h?h:8;var x=W.T,k={};W.T=k,Pd(n,!1,i,s);try{var A=d(),B=W.S;if(B!==null&&B(k,A),A!==null&&typeof A=="object"&&typeof A.then=="function"){var G=tk(A,l);io(n,i,G,fn(n))}else io(n,i,l,fn(n))}catch(J){io(n,i,{then:function(){},status:"rejected",reason:J},fn())}finally{Q.p=h,W.T=x}}function sk(){}function Bd(n,i,s,l){if(n.tag!==5)throw Error(r(476));var d=z0(n).queue;B0(n,d,i,fe,s===null?sk:function(){return P0(n),s(l)})}function z0(n){var i=n.memoizedState;if(i!==null)return i;i={memoizedState:fe,baseState:fe,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:fe},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Sa,lastRenderedState:s},next:null},n.memoizedState=i,n=n.alternate,n!==null&&(n.memoizedState=i),i}function P0(n){var i=z0(n).next.queue;io(n,i,{},fn())}function zd(){return Pt(jo)}function V0(){return gt().memoizedState}function U0(){return gt().memoizedState}function ok(n){for(var i=n.return;i!==null;){switch(i.tag){case 24:case 3:var s=fn();n=Wa(s);var l=Qa(i,n,s);l!==null&&(Gt(l,i,s),oo(l,i,s)),i={cache:vd()},n.payload=i;return}i=i.return}}function lk(n,i,s){var l=fn();s={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},Wl(n)?q0(i,s):(s=md(n,i,s,l),s!==null&&(Gt(s,n,l),F0(s,i,l)))}function H0(n,i,s){var l=fn();io(n,i,s,l)}function io(n,i,s,l){var d={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(Wl(n))q0(i,d);else{var h=n.alternate;if(n.lanes===0&&(h===null||h.lanes===0)&&(h=i.lastRenderedReducer,h!==null))try{var x=i.lastRenderedState,k=h(x,s);if(d.hasEagerState=!0,d.eagerState=k,ln(k,x))return _l(n,i,d,0),We===null&&Ol(),!1}catch{}finally{}if(s=md(n,i,d,l),s!==null)return Gt(s,n,l),F0(s,i,l),!0}return!1}function Pd(n,i,s,l){if(l={lane:2,revertLane:Af(),action:l,hasEagerState:!1,eagerState:null,next:null},Wl(n)){if(i)throw Error(r(479))}else i=md(n,s,l,2),i!==null&&Gt(i,n,2)}function Wl(n){var i=n.alternate;return n===Ne||i!==null&&i===Ne}function q0(n,i){Dr=$l=!0;var s=n.pending;s===null?i.next=i:(i.next=s.next,s.next=i),n.pending=i}function F0(n,i,s){if(s&4194176){var l=i.lanes;l&=n.pendingLanes,s|=l,i.lanes=s,eg(n,s)}}var Jn={readContext:Pt,use:Il,useCallback:ft,useContext:ft,useEffect:ft,useImperativeHandle:ft,useLayoutEffect:ft,useInsertionEffect:ft,useMemo:ft,useReducer:ft,useRef:ft,useState:ft,useDebugValue:ft,useDeferredValue:ft,useTransition:ft,useSyncExternalStore:ft,useId:ft};Jn.useCacheRefresh=ft,Jn.useMemoCache=ft,Jn.useHostTransitionStatus=ft,Jn.useFormState=ft,Jn.useActionState=ft,Jn.useOptimistic=ft;var Bi={readContext:Pt,use:Il,useCallback:function(n,i){return en().memoizedState=[n,i===void 0?null:i],n},useContext:Pt,useEffect:A0,useImperativeHandle:function(n,i,s){s=s!=null?s.concat([n]):null,Kl(4194308,4,R0.bind(null,i,n),s)},useLayoutEffect:function(n,i){return Kl(4194308,4,n,i)},useInsertionEffect:function(n,i){Kl(4,2,n,i)},useMemo:function(n,i){var s=en();i=i===void 0?null:i;var l=n();if(Li){xn(!0);try{n()}finally{xn(!1)}}return s.memoizedState=[l,i],l},useReducer:function(n,i,s){var l=en();if(s!==void 0){var d=s(i);if(Li){xn(!0);try{s(i)}finally{xn(!1)}}}else d=i;return l.memoizedState=l.baseState=d,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:d},l.queue=n,n=n.dispatch=lk.bind(null,Ne,n),[l.memoizedState,n]},useRef:function(n){var i=en();return n={current:n},i.memoizedState=n},useState:function(n){n=Rd(n);var i=n.queue,s=H0.bind(null,Ne,i);return i.dispatch=s,[n.memoizedState,s]},useDebugValue:_d,useDeferredValue:function(n,i){var s=en();return Ld(s,n,i)},useTransition:function(){var n=Rd(!1);return n=B0.bind(null,Ne,n.queue,!0,!1),en().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,i,s){var l=Ne,d=en();if(Ve){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),We===null)throw Error(r(349));ze&60||f0(l,i,s)}d.memoizedState=s;var h={value:s,getSnapshot:i};return d.queue=h,A0(p0.bind(null,l,h,n),[n]),l.flags|=2048,_r(9,m0.bind(null,l,h,s,i),{destroy:void 0},null),s},useId:function(){var n=en(),i=We.identifierPrefix;if(Ve){var s=wa,l=va;s=(l&~(1<<32-Dt(l)-1)).toString(32)+s,i=":"+i+"R"+s,s=Yl++,0<s&&(i+="H"+s.toString(32)),i+=":"}else s=nk++,i=":"+i+"r"+s.toString(32)+":";return n.memoizedState=i},useCacheRefresh:function(){return en().memoizedState=ok.bind(null,Ne)}};Bi.useMemoCache=Ad,Bi.useHostTransitionStatus=zd,Bi.useFormState=S0,Bi.useActionState=S0,Bi.useOptimistic=function(n){var i=en();i.memoizedState=i.baseState=n;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=Pd.bind(null,Ne,!0,s),s.dispatch=i,[n,i]};var Za={readContext:Pt,use:Il,useCallback:O0,useContext:Pt,useEffect:Od,useImperativeHandle:D0,useInsertionEffect:N0,useLayoutEffect:M0,useMemo:_0,useReducer:Zl,useRef:T0,useState:function(){return Zl(Sa)},useDebugValue:_d,useDeferredValue:function(n,i){var s=gt();return L0(s,Ie.memoizedState,n,i)},useTransition:function(){var n=Zl(Sa)[0],i=gt().memoizedState;return[typeof n=="boolean"?n:ao(n),i]},useSyncExternalStore:d0,useId:V0};Za.useCacheRefresh=U0,Za.useMemoCache=Ad,Za.useHostTransitionStatus=zd,Za.useFormState=C0,Za.useActionState=C0,Za.useOptimistic=function(n,i){var s=gt();return y0(s,Ie,n,i)};var zi={readContext:Pt,use:Il,useCallback:O0,useContext:Pt,useEffect:Od,useImperativeHandle:D0,useInsertionEffect:N0,useLayoutEffect:M0,useMemo:_0,useReducer:Md,useRef:T0,useState:function(){return Md(Sa)},useDebugValue:_d,useDeferredValue:function(n,i){var s=gt();return Ie===null?Ld(s,n,i):L0(s,Ie.memoizedState,n,i)},useTransition:function(){var n=Md(Sa)[0],i=gt().memoizedState;return[typeof n=="boolean"?n:ao(n),i]},useSyncExternalStore:d0,useId:V0};zi.useCacheRefresh=U0,zi.useMemoCache=Ad,zi.useHostTransitionStatus=zd,zi.useFormState=E0,zi.useActionState=E0,zi.useOptimistic=function(n,i){var s=gt();return Ie!==null?y0(s,Ie,n,i):(s.baseState=n,[n,s.queue.dispatch])};function Vd(n,i,s,l){i=n.memoizedState,s=s(l,i),s=s==null?i:se({},i,s),n.memoizedState=s,n.lanes===0&&(n.updateQueue.baseState=s)}var Ud={isMounted:function(n){return(n=n._reactInternals)?R(n)===n:!1},enqueueSetState:function(n,i,s){n=n._reactInternals;var l=fn(),d=Wa(l);d.payload=i,s!=null&&(d.callback=s),i=Qa(n,d,l),i!==null&&(Gt(i,n,l),oo(i,n,l))},enqueueReplaceState:function(n,i,s){n=n._reactInternals;var l=fn(),d=Wa(l);d.tag=1,d.payload=i,s!=null&&(d.callback=s),i=Qa(n,d,l),i!==null&&(Gt(i,n,l),oo(i,n,l))},enqueueForceUpdate:function(n,i){n=n._reactInternals;var s=fn(),l=Wa(s);l.tag=2,i!=null&&(l.callback=i),i=Qa(n,l,s),i!==null&&(Gt(i,n,s),oo(i,n,s))}};function $0(n,i,s,l,d,h,x){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(l,h,x):i.prototype&&i.prototype.isPureReactComponent?!Ys(s,l)||!Ys(d,h):!0}function Y0(n,i,s,l){n=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,l),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,l),i.state!==n&&Ud.enqueueReplaceState(i,i.state,null)}function Pi(n,i){var s=i;if("ref"in i){s={};for(var l in i)l!=="ref"&&(s[l]=i[l])}if(n=n.defaultProps){s===i&&(s=se({},s));for(var d in n)s[d]===void 0&&(s[d]=n[d])}return s}var Ql=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function G0(n){Ql(n)}function I0(n){console.error(n)}function Z0(n){Ql(n)}function Jl(n,i){try{var s=n.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(l){setTimeout(function(){throw l})}}function K0(n,i,s){try{var l=n.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Hd(n,i,s){return s=Wa(s),s.tag=3,s.payload={element:null},s.callback=function(){Jl(n,i)},s}function X0(n){return n=Wa(n),n.tag=3,n}function W0(n,i,s,l){var d=s.type.getDerivedStateFromError;if(typeof d=="function"){var h=l.value;n.payload=function(){return d(h)},n.callback=function(){K0(i,s,l)}}var x=s.stateNode;x!==null&&typeof x.componentDidCatch=="function"&&(n.callback=function(){K0(i,s,l),typeof d!="function"&&(ii===null?ii=new Set([this]):ii.add(this));var k=l.stack;this.componentDidCatch(l.value,{componentStack:k!==null?k:""})})}function ck(n,i,s,l,d){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(i=s.alternate,i!==null&&so(i,s,d,!0),s=jn.current,s!==null){switch(s.tag){case 13:return Qn===null?Sf():s.alternate===null&&lt===0&&(lt=3),s.flags&=-257,s.flags|=65536,s.lanes=d,l===yd?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([l]):i.add(l),jf(n,l,d)),!1;case 22:return s.flags|=65536,l===yd?s.flags|=16384:(i=s.updateQueue,i===null?(i={transitions:null,markerInstances:null,retryQueue:new Set([l])},s.updateQueue=i):(s=i.retryQueue,s===null?i.retryQueue=new Set([l]):s.add(l)),jf(n,l,d)),!1}throw Error(r(435,s.tag))}return jf(n,l,d),Sf(),!1}if(Ve)return i=jn.current,i!==null?(!(i.flags&65536)&&(i.flags|=256),i.flags|=65536,i.lanes=d,l!==gd&&(n=Error(r(422),{cause:l}),Ks(kn(n,s)))):(l!==gd&&(i=Error(r(423),{cause:l}),Ks(kn(i,s))),n=n.current.alternate,n.flags|=65536,d&=-d,n.lanes|=d,l=kn(l,s),d=Hd(n.stateNode,l,d),nf(n,d),lt!==4&&(lt=2)),!1;var h=Error(r(520),{cause:l});if(h=kn(h,s),go===null?go=[h]:go.push(h),lt!==4&&(lt=2),i===null)return!0;l=kn(l,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,n=d&-d,s.lanes|=n,n=Hd(s.stateNode,l,n),nf(s,n),!1;case 1:if(i=s.type,h=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(ii===null||!ii.has(h))))return s.flags|=65536,d&=-d,s.lanes|=d,d=X0(d),W0(d,n,s,l),nf(s,d),!1}s=s.return}while(s!==null);return!1}var Q0=Error(r(461)),Et=!1;function _t(n,i,s,l){i.child=n===null?a0(i,null,s,l):Oi(i,n.child,s,l)}function J0(n,i,s,l,d){s=s.render;var h=i.ref;if("ref"in l){var x={};for(var k in l)k!=="ref"&&(x[k]=l[k])}else x=l;return Ui(i),l=Cd(n,i,s,x,h,d),k=jd(),n!==null&&!Et?(Ed(n,i,d),Ca(n,i,d)):(Ve&&k&&pd(i),i.flags|=1,_t(n,i,l,d),i.child)}function e1(n,i,s,l,d){if(n===null){var h=s.type;return typeof h=="function"&&!df(h)&&h.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=h,t1(n,i,h,l,d)):(n=ic(s.type,null,l,i,i.mode,d),n.ref=i.ref,n.return=i,i.child=n)}if(h=n.child,!Xd(n,d)){var x=h.memoizedProps;if(s=s.compare,s=s!==null?s:Ys,s(x,l)&&n.ref===i.ref)return Ca(n,i,d)}return i.flags|=1,n=ni(h,l),n.ref=i.ref,n.return=i,i.child=n}function t1(n,i,s,l,d){if(n!==null){var h=n.memoizedProps;if(Ys(h,l)&&n.ref===i.ref)if(Et=!1,i.pendingProps=l=h,Xd(n,d))n.flags&131072&&(Et=!0);else return i.lanes=n.lanes,Ca(n,i,d)}return qd(n,i,s,l,d)}function n1(n,i,s){var l=i.pendingProps,d=l.children,h=(i.stateNode._pendingVisibility&2)!==0,x=n!==null?n.memoizedState:null;if(ro(n,i),l.mode==="hidden"||h){if(i.flags&128){if(l=x!==null?x.baseLanes|s:s,n!==null){for(d=i.child=n.child,h=0;d!==null;)h=h|d.lanes|d.childLanes,d=d.sibling;i.childLanes=h&~l}else i.childLanes=0,i.child=null;return a1(n,i,l,s)}if(s&536870912)i.memoizedState={baseLanes:0,cachePool:null},n!==null&&Fl(i,x!==null?x.cachePool:null),x!==null?i0(i,x):xd(),r0(i);else return i.lanes=i.childLanes=536870912,a1(n,i,x!==null?x.baseLanes|s:s,s)}else x!==null?(Fl(i,x.cachePool),i0(i,x),Ga(),i.memoizedState=null):(n!==null&&Fl(i,null),xd(),Ga());return _t(n,i,d,s),i.child}function a1(n,i,s,l){var d=kd();return d=d===null?null:{parent:vt._currentValue,pool:d},i.memoizedState={baseLanes:s,cachePool:d},n!==null&&Fl(i,null),xd(),r0(i),n!==null&&so(n,i,l,!0),null}function ro(n,i){var s=i.ref;if(s===null)n!==null&&n.ref!==null&&(i.flags|=2097664);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(n===null||n.ref!==s)&&(i.flags|=2097664)}}function qd(n,i,s,l,d){return Ui(i),s=Cd(n,i,s,l,void 0,d),l=jd(),n!==null&&!Et?(Ed(n,i,d),Ca(n,i,d)):(Ve&&l&&pd(i),i.flags|=1,_t(n,i,s,d),i.child)}function i1(n,i,s,l,d,h){return Ui(i),i.updateQueue=null,s=u0(i,l,s,d),c0(n),l=jd(),n!==null&&!Et?(Ed(n,i,h),Ca(n,i,h)):(Ve&&l&&pd(i),i.flags|=1,_t(n,i,s,h),i.child)}function r1(n,i,s,l,d){if(Ui(i),i.stateNode===null){var h=jr,x=s.contextType;typeof x=="object"&&x!==null&&(h=Pt(x)),h=new s(l,h),i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Ud,i.stateNode=h,h._reactInternals=i,h=i.stateNode,h.props=l,h.state=i.memoizedState,h.refs={},ef(i),x=s.contextType,h.context=typeof x=="object"&&x!==null?Pt(x):jr,h.state=i.memoizedState,x=s.getDerivedStateFromProps,typeof x=="function"&&(Vd(i,s,x,l),h.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(x=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),x!==h.state&&Ud.enqueueReplaceState(h,h.state,null),co(i,l,h,d),lo(),h.state=i.memoizedState),typeof h.componentDidMount=="function"&&(i.flags|=4194308),l=!0}else if(n===null){h=i.stateNode;var k=i.memoizedProps,A=Pi(s,k);h.props=A;var B=h.context,G=s.contextType;x=jr,typeof G=="object"&&G!==null&&(x=Pt(G));var J=s.getDerivedStateFromProps;G=typeof J=="function"||typeof h.getSnapshotBeforeUpdate=="function",k=i.pendingProps!==k,G||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(k||B!==x)&&Y0(i,h,l,x),Xa=!1;var U=i.memoizedState;h.state=U,co(i,l,h,d),lo(),B=i.memoizedState,k||U!==B||Xa?(typeof J=="function"&&(Vd(i,s,J,l),B=i.memoizedState),(A=Xa||$0(i,s,A,l,U,B,x))?(G||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(i.flags|=4194308)):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),i.memoizedProps=l,i.memoizedState=B),h.props=l,h.state=B,h.context=x,l=A):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{h=i.stateNode,tf(n,i),x=i.memoizedProps,G=Pi(s,x),h.props=G,J=i.pendingProps,U=h.context,B=s.contextType,A=jr,typeof B=="object"&&B!==null&&(A=Pt(B)),k=s.getDerivedStateFromProps,(B=typeof k=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(x!==J||U!==A)&&Y0(i,h,l,A),Xa=!1,U=i.memoizedState,h.state=U,co(i,l,h,d),lo();var Y=i.memoizedState;x!==J||U!==Y||Xa||n!==null&&n.dependencies!==null&&ec(n.dependencies)?(typeof k=="function"&&(Vd(i,s,k,l),Y=i.memoizedState),(G=Xa||$0(i,s,G,l,U,Y,A)||n!==null&&n.dependencies!==null&&ec(n.dependencies))?(B||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,Y,A),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,Y,A)),typeof h.componentDidUpdate=="function"&&(i.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof h.componentDidUpdate!="function"||x===n.memoizedProps&&U===n.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&U===n.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=Y),h.props=l,h.state=Y,h.context=A,l=G):(typeof h.componentDidUpdate!="function"||x===n.memoizedProps&&U===n.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||x===n.memoizedProps&&U===n.memoizedState||(i.flags|=1024),l=!1)}return h=l,ro(n,i),l=(i.flags&128)!==0,h||l?(h=i.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:h.render(),i.flags|=1,n!==null&&l?(i.child=Oi(i,n.child,null,d),i.child=Oi(i,null,s,d)):_t(n,i,s,d),i.memoizedState=h.state,n=i.child):n=Ca(n,i,d),n}function s1(n,i,s,l){return Zs(),i.flags|=256,_t(n,i,s,l),i.child}var Fd={dehydrated:null,treeContext:null,retryLane:0};function $d(n){return{baseLanes:n,cachePool:l0()}}function Yd(n,i,s){return n=n!==null?n.childLanes&~s:0,i&&(n|=Nn),n}function o1(n,i,s){var l=i.pendingProps,d=!1,h=(i.flags&128)!==0,x;if((x=h)||(x=n!==null&&n.memoizedState===null?!1:(bt.current&2)!==0),x&&(d=!0,i.flags&=-129),x=(i.flags&32)!==0,i.flags&=-33,n===null){if(Ve){if(d?Ya(i):Ga(),Ve){var k=Ot,A;if(A=k){e:{for(A=k,k=Wn;A.nodeType!==8;){if(!k){k=null;break e}if(A=Hn(A.nextSibling),A===null){k=null;break e}}k=A}k!==null?(i.memoizedState={dehydrated:k,treeContext:Mi!==null?{id:va,overflow:wa}:null,retryLane:536870912},A=An(18,null,null,0),A.stateNode=k,A.return=i,i.child=A,Yt=i,Ot=null,A=!0):A=!1}A||Di(i)}if(k=i.memoizedState,k!==null&&(k=k.dehydrated,k!==null))return k.data==="$!"?i.lanes=16:i.lanes=536870912,null;ka(i)}return k=l.children,l=l.fallback,d?(Ga(),d=i.mode,k=Id({mode:"hidden",children:k},d),l=qi(l,d,s,null),k.return=i,l.return=i,k.sibling=l,i.child=k,d=i.child,d.memoizedState=$d(s),d.childLanes=Yd(n,x,s),i.memoizedState=Fd,l):(Ya(i),Gd(i,k))}if(A=n.memoizedState,A!==null&&(k=A.dehydrated,k!==null)){if(h)i.flags&256?(Ya(i),i.flags&=-257,i=Zd(n,i,s)):i.memoizedState!==null?(Ga(),i.child=n.child,i.flags|=128,i=null):(Ga(),d=l.fallback,k=i.mode,l=Id({mode:"visible",children:l.children},k),d=qi(d,k,s,null),d.flags|=2,l.return=i,d.return=i,l.sibling=d,i.child=l,Oi(i,n.child,null,s),l=i.child,l.memoizedState=$d(s),l.childLanes=Yd(n,x,s),i.memoizedState=Fd,i=d);else if(Ya(i),k.data==="$!"){if(x=k.nextSibling&&k.nextSibling.dataset,x)var B=x.dgst;x=B,l=Error(r(419)),l.stack="",l.digest=x,Ks({value:l,source:null,stack:null}),i=Zd(n,i,s)}else if(Et||so(n,i,s,!1),x=(s&n.childLanes)!==0,Et||x){if(x=We,x!==null){if(l=s&-s,l&42)l=1;else switch(l){case 2:l=1;break;case 8:l=4;break;case 32:l=16;break;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:case 4194304:case 8388608:case 16777216:case 33554432:l=64;break;case 268435456:l=134217728;break;default:l=0}if(l=l&(x.suspendedLanes|s)?0:l,l!==0&&l!==A.retryLane)throw A.retryLane=l,$a(n,l),Gt(x,n,l),Q0}k.data==="$?"||Sf(),i=Zd(n,i,s)}else k.data==="$?"?(i.flags|=128,i.child=n.child,i=Ck.bind(null,n),k._reactRetry=i,i=null):(n=A.treeContext,Ot=Hn(k.nextSibling),Yt=i,Ve=!0,Vn=null,Wn=!1,n!==null&&(Sn[Cn++]=va,Sn[Cn++]=wa,Sn[Cn++]=Mi,va=n.id,wa=n.overflow,Mi=i),i=Gd(i,l.children),i.flags|=4096);return i}return d?(Ga(),d=l.fallback,k=i.mode,A=n.child,B=A.sibling,l=ni(A,{mode:"hidden",children:l.children}),l.subtreeFlags=A.subtreeFlags&31457280,B!==null?d=ni(B,d):(d=qi(d,k,s,null),d.flags|=2),d.return=i,l.return=i,l.sibling=d,i.child=l,l=d,d=i.child,k=n.child.memoizedState,k===null?k=$d(s):(A=k.cachePool,A!==null?(B=vt._currentValue,A=A.parent!==B?{parent:B,pool:B}:A):A=l0(),k={baseLanes:k.baseLanes|s,cachePool:A}),d.memoizedState=k,d.childLanes=Yd(n,x,s),i.memoizedState=Fd,l):(Ya(i),s=n.child,n=s.sibling,s=ni(s,{mode:"visible",children:l.children}),s.return=i,s.sibling=null,n!==null&&(x=i.deletions,x===null?(i.deletions=[n],i.flags|=16):x.push(n)),i.child=s,i.memoizedState=null,s)}function Gd(n,i){return i=Id({mode:"visible",children:i},n.mode),i.return=n,n.child=i}function Id(n,i){return O1(n,i,0,null)}function Zd(n,i,s){return Oi(i,n.child,null,s),n=Gd(i,i.pendingProps.children),n.flags|=2,i.memoizedState=null,n}function l1(n,i,s){n.lanes|=i;var l=n.alternate;l!==null&&(l.lanes|=i),Qd(n.return,i,s)}function Kd(n,i,s,l,d){var h=n.memoizedState;h===null?n.memoizedState={isBackwards:i,rendering:null,renderingStartTime:0,last:l,tail:s,tailMode:d}:(h.isBackwards=i,h.rendering=null,h.renderingStartTime=0,h.last=l,h.tail=s,h.tailMode=d)}function c1(n,i,s){var l=i.pendingProps,d=l.revealOrder,h=l.tail;if(_t(n,i,l.children,s),l=bt.current,l&2)l=l&1|2,i.flags|=128;else{if(n!==null&&n.flags&128)e:for(n=i.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&l1(n,s,i);else if(n.tag===19)l1(n,s,i);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===i)break e;for(;n.sibling===null;){if(n.return===null||n.return===i)break e;n=n.return}n.sibling.return=n.return,n=n.sibling}l&=1}switch(He(bt,l),d){case"forwards":for(s=i.child,d=null;s!==null;)n=s.alternate,n!==null&&ql(n)===null&&(d=s),s=s.sibling;s=d,s===null?(d=i.child,i.child=null):(d=s.sibling,s.sibling=null),Kd(i,!1,d,s,h);break;case"backwards":for(s=null,d=i.child,i.child=null;d!==null;){if(n=d.alternate,n!==null&&ql(n)===null){i.child=d;break}n=d.sibling,d.sibling=s,s=d,d=n}Kd(i,!0,s,null,h);break;case"together":Kd(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Ca(n,i,s){if(n!==null&&(i.dependencies=n.dependencies),ai|=i.lanes,!(s&i.childLanes))if(n!==null){if(so(n,i,s,!1),(s&i.childLanes)===0)return null}else return null;if(n!==null&&i.child!==n.child)throw Error(r(153));if(i.child!==null){for(n=i.child,s=ni(n,n.pendingProps),i.child=s,s.return=i;n.sibling!==null;)n=n.sibling,s=s.sibling=ni(n,n.pendingProps),s.return=i;s.sibling=null}return i.child}function Xd(n,i){return n.lanes&i?!0:(n=n.dependencies,!!(n!==null&&ec(n)))}function uk(n,i,s){switch(i.tag){case 3:pa(i,i.stateNode.containerInfo),Ka(i,vt,n.memoizedState.cache),Zs();break;case 27:case 5:on(i);break;case 4:pa(i,i.stateNode.containerInfo);break;case 10:Ka(i,i.type,i.memoizedProps.value);break;case 13:var l=i.memoizedState;if(l!==null)return l.dehydrated!==null?(Ya(i),i.flags|=128,null):s&i.child.childLanes?o1(n,i,s):(Ya(i),n=Ca(n,i,s),n!==null?n.sibling:null);Ya(i);break;case 19:var d=(n.flags&128)!==0;if(l=(s&i.childLanes)!==0,l||(so(n,i,s,!1),l=(s&i.childLanes)!==0),d){if(l)return c1(n,i,s);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),He(bt,bt.current),l)break;return null;case 22:case 23:return i.lanes=0,n1(n,i,s);case 24:Ka(i,vt,n.memoizedState.cache)}return Ca(n,i,s)}function u1(n,i,s){if(n!==null)if(n.memoizedProps!==i.pendingProps)Et=!0;else{if(!Xd(n,s)&&!(i.flags&128))return Et=!1,uk(n,i,s);Et=!!(n.flags&131072)}else Et=!1,Ve&&i.flags&1048576&&Zg(i,zl,i.index);switch(i.lanes=0,i.tag){case 16:e:{n=i.pendingProps;var l=i.elementType,d=l._init;if(l=d(l._payload),i.type=l,typeof l=="function")df(l)?(n=Pi(l,n),i.tag=1,i=r1(null,i,l,n,s)):(i.tag=0,i=qd(null,i,l,n,s));else{if(l!=null){if(d=l.$$typeof,d===S){i.tag=11,i=J0(null,i,l,n,s);break e}else if(d===O){i.tag=14,i=e1(null,i,l,n,s);break e}}throw i=ae(l)||l,Error(r(306,i,""))}}return i;case 0:return qd(n,i,i.type,i.pendingProps,s);case 1:return l=i.type,d=Pi(l,i.pendingProps),r1(n,i,l,d,s);case 3:e:{if(pa(i,i.stateNode.containerInfo),n===null)throw Error(r(387));var h=i.pendingProps;d=i.memoizedState,l=d.element,tf(n,i),co(i,h,null,s);var x=i.memoizedState;if(h=x.cache,Ka(i,vt,h),h!==d.cache&&Jd(i,[vt],s,!0),lo(),h=x.element,d.isDehydrated)if(d={element:h,isDehydrated:!1,cache:x.cache},i.updateQueue.baseState=d,i.memoizedState=d,i.flags&256){i=s1(n,i,h,s);break e}else if(h!==l){l=kn(Error(r(424)),i),Ks(l),i=s1(n,i,h,s);break e}else for(Ot=Hn(i.stateNode.containerInfo.firstChild),Yt=i,Ve=!0,Vn=null,Wn=!0,s=a0(i,null,h,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(Zs(),h===l){i=Ca(n,i,s);break e}_t(n,i,h,s)}i=i.child}return i;case 26:return ro(n,i),n===null?(s=my(i.type,null,i.pendingProps,null))?i.memoizedState=s:Ve||(s=i.type,n=i.pendingProps,l=gc(sn.current).createElement(s),l[zt]=i,l[Qt]=n,Lt(l,s,n),jt(l),i.stateNode=l):i.memoizedState=my(i.type,n.memoizedProps,i.pendingProps,n.memoizedState),null;case 27:return on(i),n===null&&Ve&&(l=i.stateNode=uy(i.type,i.pendingProps,sn.current),Yt=i,Wn=!0,Ot=Hn(l.firstChild)),l=i.pendingProps.children,n!==null||Ve?_t(n,i,l,s):i.child=Oi(i,null,l,s),ro(n,i),i.child;case 5:return n===null&&Ve&&((d=l=Ot)&&(l=Uk(l,i.type,i.pendingProps,Wn),l!==null?(i.stateNode=l,Yt=i,Ot=Hn(l.firstChild),Wn=!1,d=!0):d=!1),d||Di(i)),on(i),d=i.type,h=i.pendingProps,x=n!==null?n.memoizedProps:null,l=h.children,zf(d,h)?l=null:x!==null&&zf(d,x)&&(i.flags|=32),i.memoizedState!==null&&(d=Cd(n,i,ak,null,null,s),jo._currentValue=d),ro(n,i),_t(n,i,l,s),i.child;case 6:return n===null&&Ve&&((n=s=Ot)&&(s=Hk(s,i.pendingProps,Wn),s!==null?(i.stateNode=s,Yt=i,Ot=null,n=!0):n=!1),n||Di(i)),null;case 13:return o1(n,i,s);case 4:return pa(i,i.stateNode.containerInfo),l=i.pendingProps,n===null?i.child=Oi(i,null,l,s):_t(n,i,l,s),i.child;case 11:return J0(n,i,i.type,i.pendingProps,s);case 7:return _t(n,i,i.pendingProps,s),i.child;case 8:return _t(n,i,i.pendingProps.children,s),i.child;case 12:return _t(n,i,i.pendingProps.children,s),i.child;case 10:return l=i.pendingProps,Ka(i,i.type,l.value),_t(n,i,l.children,s),i.child;case 9:return d=i.type._context,l=i.pendingProps.children,Ui(i),d=Pt(d),l=l(d),i.flags|=1,_t(n,i,l,s),i.child;case 14:return e1(n,i,i.type,i.pendingProps,s);case 15:return t1(n,i,i.type,i.pendingProps,s);case 19:return c1(n,i,s);case 22:return n1(n,i,s);case 24:return Ui(i),l=Pt(vt),n===null?(d=kd(),d===null&&(d=We,h=vd(),d.pooledCache=h,h.refCount++,h!==null&&(d.pooledCacheLanes|=s),d=h),i.memoizedState={parent:l,cache:d},ef(i),Ka(i,vt,d)):(n.lanes&s&&(tf(n,i),co(i,null,null,s),lo()),d=n.memoizedState,h=i.memoizedState,d.parent!==l?(d={parent:l,cache:l},i.memoizedState=d,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=d),Ka(i,vt,l)):(l=h.cache,Ka(i,vt,l),l!==d.cache&&Jd(i,[vt],s,!0))),_t(n,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}var Wd=xe(null),Vi=null,ja=null;function Ka(n,i,s){He(Wd,i._currentValue),i._currentValue=s}function Ea(n){n._currentValue=Wd.current,Pe(Wd)}function Qd(n,i,s){for(;n!==null;){var l=n.alternate;if((n.childLanes&i)!==i?(n.childLanes|=i,l!==null&&(l.childLanes|=i)):l!==null&&(l.childLanes&i)!==i&&(l.childLanes|=i),n===s)break;n=n.return}}function Jd(n,i,s,l){var d=n.child;for(d!==null&&(d.return=n);d!==null;){var h=d.dependencies;if(h!==null){var x=d.child;h=h.firstContext;e:for(;h!==null;){var k=h;h=d;for(var A=0;A<i.length;A++)if(k.context===i[A]){h.lanes|=s,k=h.alternate,k!==null&&(k.lanes|=s),Qd(h.return,s,n),l||(x=null);break e}h=k.next}}else if(d.tag===18){if(x=d.return,x===null)throw Error(r(341));x.lanes|=s,h=x.alternate,h!==null&&(h.lanes|=s),Qd(x,s,n),x=null}else x=d.child;if(x!==null)x.return=d;else for(x=d;x!==null;){if(x===n){x=null;break}if(d=x.sibling,d!==null){d.return=x.return,x=d;break}x=x.return}d=x}}function so(n,i,s,l){n=null;for(var d=i,h=!1;d!==null;){if(!h){if(d.flags&524288)h=!0;else if(d.flags&262144)break}if(d.tag===10){var x=d.alternate;if(x===null)throw Error(r(387));if(x=x.memoizedProps,x!==null){var k=d.type;ln(d.pendingProps.value,x.value)||(n!==null?n.push(k):n=[k])}}else if(d===ma.current){if(x=d.alternate,x===null)throw Error(r(387));x.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(n!==null?n.push(jo):n=[jo])}d=d.return}n!==null&&Jd(i,n,s,l),i.flags|=262144}function ec(n){for(n=n.firstContext;n!==null;){if(!ln(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Ui(n){Vi=n,ja=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Pt(n){return d1(Vi,n)}function tc(n,i){return Vi===null&&Ui(n),d1(n,i)}function d1(n,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},ja===null){if(n===null)throw Error(r(308));ja=i,n.dependencies={lanes:0,firstContext:i},n.flags|=524288}else ja=ja.next=i;return s}var Xa=!1;function ef(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function tf(n,i){n=n.updateQueue,i.updateQueue===n&&(i.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function Wa(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function Qa(n,i,s){var l=n.updateQueue;if(l===null)return null;if(l=l.shared,it&2){var d=l.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),l.pending=i,i=Ll(n),Gg(n,null,s),i}return _l(n,l,i,s),Ll(n)}function oo(n,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194176)!==0)){var l=i.lanes;l&=n.pendingLanes,s|=l,i.lanes=s,eg(n,s)}}function nf(n,i){var s=n.updateQueue,l=n.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var d=null,h=null;if(s=s.firstBaseUpdate,s!==null){do{var x={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};h===null?d=h=x:h=h.next=x,s=s.next}while(s!==null);h===null?d=h=i:h=h.next=i}else d=h=i;s={baseState:l.baseState,firstBaseUpdate:d,lastBaseUpdate:h,shared:l.shared,callbacks:l.callbacks},n.updateQueue=s;return}n=s.lastBaseUpdate,n===null?s.firstBaseUpdate=i:n.next=i,s.lastBaseUpdate=i}var af=!1;function lo(){if(af){var n=Rr;if(n!==null)throw n}}function co(n,i,s,l){af=!1;var d=n.updateQueue;Xa=!1;var h=d.firstBaseUpdate,x=d.lastBaseUpdate,k=d.shared.pending;if(k!==null){d.shared.pending=null;var A=k,B=A.next;A.next=null,x===null?h=B:x.next=B,x=A;var G=n.alternate;G!==null&&(G=G.updateQueue,k=G.lastBaseUpdate,k!==x&&(k===null?G.firstBaseUpdate=B:k.next=B,G.lastBaseUpdate=A))}if(h!==null){var J=d.baseState;x=0,G=B=A=null,k=h;do{var U=k.lane&-536870913,Y=U!==k.lane;if(Y?(ze&U)===U:(l&U)===U){U!==0&&U===Mr&&(af=!0),G!==null&&(G=G.next={lane:0,tag:k.tag,payload:k.payload,callback:null,next:null});e:{var me=n,Ce=k;U=i;var ct=s;switch(Ce.tag){case 1:if(me=Ce.payload,typeof me=="function"){J=me.call(ct,J,U);break e}J=me;break e;case 3:me.flags=me.flags&-65537|128;case 0:if(me=Ce.payload,U=typeof me=="function"?me.call(ct,J,U):me,U==null)break e;J=se({},J,U);break e;case 2:Xa=!0}}U=k.callback,U!==null&&(n.flags|=64,Y&&(n.flags|=8192),Y=d.callbacks,Y===null?d.callbacks=[U]:Y.push(U))}else Y={lane:U,tag:k.tag,payload:k.payload,callback:k.callback,next:null},G===null?(B=G=Y,A=J):G=G.next=Y,x|=U;if(k=k.next,k===null){if(k=d.shared.pending,k===null)break;Y=k,k=Y.next,Y.next=null,d.lastBaseUpdate=Y,d.shared.pending=null}}while(!0);G===null&&(A=J),d.baseState=A,d.firstBaseUpdate=B,d.lastBaseUpdate=G,h===null&&(d.shared.lanes=0),ai|=x,n.lanes=x,n.memoizedState=J}}function f1(n,i){if(typeof n!="function")throw Error(r(191,n));n.call(i)}function m1(n,i){var s=n.callbacks;if(s!==null)for(n.callbacks=null,n=0;n<s.length;n++)f1(s[n],i)}function uo(n,i){try{var s=i.updateQueue,l=s!==null?s.lastEffect:null;if(l!==null){var d=l.next;s=d;do{if((s.tag&n)===n){l=void 0;var h=s.create,x=s.inst;l=h(),x.destroy=l}s=s.next}while(s!==d)}}catch(k){Ke(i,i.return,k)}}function Ja(n,i,s){try{var l=i.updateQueue,d=l!==null?l.lastEffect:null;if(d!==null){var h=d.next;l=h;do{if((l.tag&n)===n){var x=l.inst,k=x.destroy;if(k!==void 0){x.destroy=void 0,d=i;var A=s;try{k()}catch(B){Ke(d,A,B)}}}l=l.next}while(l!==h)}}catch(B){Ke(i,i.return,B)}}function p1(n){var i=n.updateQueue;if(i!==null){var s=n.stateNode;try{m1(i,s)}catch(l){Ke(n,n.return,l)}}}function h1(n,i,s){s.props=Pi(n.type,n.memoizedProps),s.state=n.memoizedState;try{s.componentWillUnmount()}catch(l){Ke(n,i,l)}}function Hi(n,i){try{var s=n.ref;if(s!==null){var l=n.stateNode;switch(n.tag){case 26:case 27:case 5:var d=l;break;default:d=l}typeof s=="function"?n.refCleanup=s(d):s.current=d}}catch(h){Ke(n,i,h)}}function cn(n,i){var s=n.ref,l=n.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(d){Ke(n,i,d)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(d){Ke(n,i,d)}else s.current=null}function g1(n){var i=n.type,s=n.memoizedProps,l=n.stateNode;try{e:switch(i){case"button":case"input":case"select":case"textarea":s.autoFocus&&l.focus();break e;case"img":s.src?l.src=s.src:s.srcSet&&(l.srcset=s.srcSet)}}catch(d){Ke(n,n.return,d)}}function y1(n,i,s){try{var l=n.stateNode;Lk(l,n.type,s,i),l[Qt]=i}catch(d){Ke(n,n.return,d)}}function x1(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27||n.tag===4}function rf(n){e:for(;;){for(;n.sibling===null;){if(n.return===null||x1(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==27&&n.tag!==18;){if(n.flags&2||n.child===null||n.tag===4)continue e;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function sf(n,i,s){var l=n.tag;if(l===5||l===6)n=n.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(n,i):s.insertBefore(n,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(n,s)):(i=s,i.appendChild(n)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=hc));else if(l!==4&&l!==27&&(n=n.child,n!==null))for(sf(n,i,s),n=n.sibling;n!==null;)sf(n,i,s),n=n.sibling}function nc(n,i,s){var l=n.tag;if(l===5||l===6)n=n.stateNode,i?s.insertBefore(n,i):s.appendChild(n);else if(l!==4&&l!==27&&(n=n.child,n!==null))for(nc(n,i,s),n=n.sibling;n!==null;)nc(n,i,s),n=n.sibling}var Ta=!1,ot=!1,of=!1,b1=typeof WeakSet=="function"?WeakSet:Set,Tt=null,v1=!1;function dk(n,i){if(n=n.containerInfo,Lf=kc,n=zg(n),ld(n)){if("selectionStart"in n)var s={start:n.selectionStart,end:n.selectionEnd};else e:{s=(s=n.ownerDocument)&&s.defaultView||window;var l=s.getSelection&&s.getSelection();if(l&&l.rangeCount!==0){s=l.anchorNode;var d=l.anchorOffset,h=l.focusNode;l=l.focusOffset;try{s.nodeType,h.nodeType}catch{s=null;break e}var x=0,k=-1,A=-1,B=0,G=0,J=n,U=null;t:for(;;){for(var Y;J!==s||d!==0&&J.nodeType!==3||(k=x+d),J!==h||l!==0&&J.nodeType!==3||(A=x+l),J.nodeType===3&&(x+=J.nodeValue.length),(Y=J.firstChild)!==null;)U=J,J=Y;for(;;){if(J===n)break t;if(U===s&&++B===d&&(k=x),U===h&&++G===l&&(A=x),(Y=J.nextSibling)!==null)break;J=U,U=J.parentNode}J=Y}s=k===-1||A===-1?null:{start:k,end:A}}else s=null}s=s||{start:0,end:0}}else s=null;for(Bf={focusedElem:n,selectionRange:s},kc=!1,Tt=i;Tt!==null;)if(i=Tt,n=i.child,(i.subtreeFlags&1028)!==0&&n!==null)n.return=i,Tt=n;else for(;Tt!==null;){switch(i=Tt,h=i.alternate,n=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if(n&1024&&h!==null){n=void 0,s=i,d=h.memoizedProps,h=h.memoizedState,l=s.stateNode;try{var me=Pi(s.type,d,s.elementType===s.type);n=l.getSnapshotBeforeUpdate(me,h),l.__reactInternalSnapshotBeforeUpdate=n}catch(Ce){Ke(s,s.return,Ce)}}break;case 3:if(n&1024){if(n=i.stateNode.containerInfo,s=n.nodeType,s===9)Uf(n);else if(s===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":Uf(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(n&1024)throw Error(r(163))}if(n=i.sibling,n!==null){n.return=i.return,Tt=n;break}Tt=i.return}return me=v1,v1=!1,me}function w1(n,i,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:Na(n,s),l&4&&uo(5,s);break;case 1:if(Na(n,s),l&4)if(n=s.stateNode,i===null)try{n.componentDidMount()}catch(k){Ke(s,s.return,k)}else{var d=Pi(s.type,i.memoizedProps);i=i.memoizedState;try{n.componentDidUpdate(d,i,n.__reactInternalSnapshotBeforeUpdate)}catch(k){Ke(s,s.return,k)}}l&64&&p1(s),l&512&&Hi(s,s.return);break;case 3:if(Na(n,s),l&64&&(l=s.updateQueue,l!==null)){if(n=null,s.child!==null)switch(s.child.tag){case 27:case 5:n=s.child.stateNode;break;case 1:n=s.child.stateNode}try{m1(l,n)}catch(k){Ke(s,s.return,k)}}break;case 26:Na(n,s),l&512&&Hi(s,s.return);break;case 27:case 5:Na(n,s),i===null&&l&4&&g1(s),l&512&&Hi(s,s.return);break;case 12:Na(n,s);break;case 13:Na(n,s),l&4&&C1(n,s);break;case 22:if(d=s.memoizedState!==null||Ta,!d){i=i!==null&&i.memoizedState!==null||ot;var h=Ta,x=ot;Ta=d,(ot=i)&&!x?ei(n,s,(s.subtreeFlags&8772)!==0):Na(n,s),Ta=h,ot=x}l&512&&(s.memoizedProps.mode==="manual"?Hi(s,s.return):cn(s,s.return));break;default:Na(n,s)}}function k1(n){var i=n.alternate;i!==null&&(n.alternate=null,k1(i)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(i=n.stateNode,i!==null&&Gu(i)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var yt=null,un=!1;function Aa(n,i,s){for(s=s.child;s!==null;)S1(n,i,s),s=s.sibling}function S1(n,i,s){if(Ct&&typeof Ct.onCommitFiberUnmount=="function")try{Ct.onCommitFiberUnmount(ya,s)}catch{}switch(s.tag){case 26:ot||cn(s,i),Aa(n,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:ot||cn(s,i);var l=yt,d=un;for(yt=s.stateNode,Aa(n,i,s),s=s.stateNode,i=s.attributes;i.length;)s.removeAttributeNode(i[0]);Gu(s),yt=l,un=d;break;case 5:ot||cn(s,i);case 6:d=yt;var h=un;if(yt=null,Aa(n,i,s),yt=d,un=h,yt!==null)if(un)try{n=yt,l=s.stateNode,n.nodeType===8?n.parentNode.removeChild(l):n.removeChild(l)}catch(x){Ke(s,i,x)}else try{yt.removeChild(s.stateNode)}catch(x){Ke(s,i,x)}break;case 18:yt!==null&&(un?(i=yt,s=s.stateNode,i.nodeType===8?Vf(i.parentNode,s):i.nodeType===1&&Vf(i,s),No(i)):Vf(yt,s.stateNode));break;case 4:l=yt,d=un,yt=s.stateNode.containerInfo,un=!0,Aa(n,i,s),yt=l,un=d;break;case 0:case 11:case 14:case 15:ot||Ja(2,s,i),ot||Ja(4,s,i),Aa(n,i,s);break;case 1:ot||(cn(s,i),l=s.stateNode,typeof l.componentWillUnmount=="function"&&h1(s,i,l)),Aa(n,i,s);break;case 21:Aa(n,i,s);break;case 22:ot||cn(s,i),ot=(l=ot)||s.memoizedState!==null,Aa(n,i,s),ot=l;break;default:Aa(n,i,s)}}function C1(n,i){if(i.memoizedState===null&&(n=i.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{No(n)}catch(s){Ke(i,i.return,s)}}function fk(n){switch(n.tag){case 13:case 19:var i=n.stateNode;return i===null&&(i=n.stateNode=new b1),i;case 22:return n=n.stateNode,i=n._retryCache,i===null&&(i=n._retryCache=new b1),i;default:throw Error(r(435,n.tag))}}function lf(n,i){var s=fk(n);i.forEach(function(l){var d=jk.bind(null,n,l);s.has(l)||(s.add(l),l.then(d,d))})}function En(n,i){var s=i.deletions;if(s!==null)for(var l=0;l<s.length;l++){var d=s[l],h=n,x=i,k=x;e:for(;k!==null;){switch(k.tag){case 27:case 5:yt=k.stateNode,un=!1;break e;case 3:yt=k.stateNode.containerInfo,un=!0;break e;case 4:yt=k.stateNode.containerInfo,un=!0;break e}k=k.return}if(yt===null)throw Error(r(160));S1(h,x,d),yt=null,un=!1,h=d.alternate,h!==null&&(h.return=null),d.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)j1(i,n),i=i.sibling}var Un=null;function j1(n,i){var s=n.alternate,l=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:En(i,n),Tn(n),l&4&&(Ja(3,n,n.return),uo(3,n),Ja(5,n,n.return));break;case 1:En(i,n),Tn(n),l&512&&(ot||s===null||cn(s,s.return)),l&64&&Ta&&(n=n.updateQueue,n!==null&&(l=n.callbacks,l!==null&&(s=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var d=Un;if(En(i,n),Tn(n),l&512&&(ot||s===null||cn(s,s.return)),l&4){var h=s!==null?s.memoizedState:null;if(l=n.memoizedState,s===null)if(l===null)if(n.stateNode===null){e:{l=n.type,s=n.memoizedProps,d=d.ownerDocument||d;t:switch(l){case"title":h=d.getElementsByTagName("title")[0],(!h||h[Bs]||h[zt]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=d.createElement(l),d.head.insertBefore(h,d.querySelector("head > title"))),Lt(h,l,s),h[zt]=n,jt(h),l=h;break e;case"link":var x=gy("link","href",d).get(l+(s.href||""));if(x){for(var k=0;k<x.length;k++)if(h=x[k],h.getAttribute("href")===(s.href==null?null:s.href)&&h.getAttribute("rel")===(s.rel==null?null:s.rel)&&h.getAttribute("title")===(s.title==null?null:s.title)&&h.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){x.splice(k,1);break t}}h=d.createElement(l),Lt(h,l,s),d.head.appendChild(h);break;case"meta":if(x=gy("meta","content",d).get(l+(s.content||""))){for(k=0;k<x.length;k++)if(h=x[k],h.getAttribute("content")===(s.content==null?null:""+s.content)&&h.getAttribute("name")===(s.name==null?null:s.name)&&h.getAttribute("property")===(s.property==null?null:s.property)&&h.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&h.getAttribute("charset")===(s.charSet==null?null:s.charSet)){x.splice(k,1);break t}}h=d.createElement(l),Lt(h,l,s),d.head.appendChild(h);break;default:throw Error(r(468,l))}h[zt]=n,jt(h),l=h}n.stateNode=l}else yy(d,n.type,n.stateNode);else n.stateNode=hy(d,l,n.memoizedProps);else h!==l?(h===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):h.count--,l===null?yy(d,n.type,n.stateNode):hy(d,l,n.memoizedProps)):l===null&&n.stateNode!==null&&y1(n,n.memoizedProps,s.memoizedProps)}break;case 27:if(l&4&&n.alternate===null){d=n.stateNode,h=n.memoizedProps;try{for(var A=d.firstChild;A;){var B=A.nextSibling,G=A.nodeName;A[Bs]||G==="HEAD"||G==="BODY"||G==="SCRIPT"||G==="STYLE"||G==="LINK"&&A.rel.toLowerCase()==="stylesheet"||d.removeChild(A),A=B}for(var J=n.type,U=d.attributes;U.length;)d.removeAttributeNode(U[0]);Lt(d,J,h),d[zt]=n,d[Qt]=h}catch(me){Ke(n,n.return,me)}}case 5:if(En(i,n),Tn(n),l&512&&(ot||s===null||cn(s,s.return)),n.flags&32){d=n.stateNode;try{xr(d,"")}catch(me){Ke(n,n.return,me)}}l&4&&n.stateNode!=null&&(d=n.memoizedProps,y1(n,d,s!==null?s.memoizedProps:d)),l&1024&&(of=!0);break;case 6:if(En(i,n),Tn(n),l&4){if(n.stateNode===null)throw Error(r(162));l=n.memoizedProps,s=n.stateNode;try{s.nodeValue=l}catch(me){Ke(n,n.return,me)}}break;case 3:if(bc=null,d=Un,Un=yc(i.containerInfo),En(i,n),Un=d,Tn(n),l&4&&s!==null&&s.memoizedState.isDehydrated)try{No(i.containerInfo)}catch(me){Ke(n,n.return,me)}of&&(of=!1,E1(n));break;case 4:l=Un,Un=yc(n.stateNode.containerInfo),En(i,n),Tn(n),Un=l;break;case 12:En(i,n),Tn(n);break;case 13:En(i,n),Tn(n),n.child.flags&8192&&n.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(yf=ne()),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,lf(n,l)));break;case 22:if(l&512&&(ot||s===null||cn(s,s.return)),A=n.memoizedState!==null,B=s!==null&&s.memoizedState!==null,G=Ta,J=ot,Ta=G||A,ot=J||B,En(i,n),ot=J,Ta=G,Tn(n),i=n.stateNode,i._current=n,i._visibility&=-3,i._visibility|=i._pendingVisibility&2,l&8192&&(i._visibility=A?i._visibility&-2:i._visibility|1,A&&(i=Ta||ot,s===null||B||i||Lr(n)),n.memoizedProps===null||n.memoizedProps.mode!=="manual"))e:for(s=null,i=n;;){if(i.tag===5||i.tag===26||i.tag===27){if(s===null){B=s=i;try{if(d=B.stateNode,A)h=d.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{x=B.stateNode,k=B.memoizedProps.style;var Y=k!=null&&k.hasOwnProperty("display")?k.display:null;x.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(me){Ke(B,B.return,me)}}}else if(i.tag===6){if(s===null){B=i;try{B.stateNode.nodeValue=A?"":B.memoizedProps}catch(me){Ke(B,B.return,me)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===n)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===n)break e;for(;i.sibling===null;){if(i.return===null||i.return===n)break e;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}l&4&&(l=n.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,lf(n,s))));break;case 19:En(i,n),Tn(n),l&4&&(l=n.updateQueue,l!==null&&(n.updateQueue=null,lf(n,l)));break;case 21:break;default:En(i,n),Tn(n)}}function Tn(n){var i=n.flags;if(i&2){try{if(n.tag!==27){e:{for(var s=n.return;s!==null;){if(x1(s)){var l=s;break e}s=s.return}throw Error(r(160))}switch(l.tag){case 27:var d=l.stateNode,h=rf(n);nc(n,h,d);break;case 5:var x=l.stateNode;l.flags&32&&(xr(x,""),l.flags&=-33);var k=rf(n);nc(n,k,x);break;case 3:case 4:var A=l.stateNode.containerInfo,B=rf(n);sf(n,B,A);break;default:throw Error(r(161))}}}catch(G){Ke(n,n.return,G)}n.flags&=-3}i&4096&&(n.flags&=-4097)}function E1(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var i=n;E1(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),n=n.sibling}}function Na(n,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)w1(n,i.alternate,i),i=i.sibling}function Lr(n){for(n=n.child;n!==null;){var i=n;switch(i.tag){case 0:case 11:case 14:case 15:Ja(4,i,i.return),Lr(i);break;case 1:cn(i,i.return);var s=i.stateNode;typeof s.componentWillUnmount=="function"&&h1(i,i.return,s),Lr(i);break;case 26:case 27:case 5:cn(i,i.return),Lr(i);break;case 22:cn(i,i.return),i.memoizedState===null&&Lr(i);break;default:Lr(i)}n=n.sibling}}function ei(n,i,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var l=i.alternate,d=n,h=i,x=h.flags;switch(h.tag){case 0:case 11:case 15:ei(d,h,s),uo(4,h);break;case 1:if(ei(d,h,s),l=h,d=l.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(B){Ke(l,l.return,B)}if(l=h,d=l.updateQueue,d!==null){var k=l.stateNode;try{var A=d.shared.hiddenCallbacks;if(A!==null)for(d.shared.hiddenCallbacks=null,d=0;d<A.length;d++)f1(A[d],k)}catch(B){Ke(l,l.return,B)}}s&&x&64&&p1(h),Hi(h,h.return);break;case 26:case 27:case 5:ei(d,h,s),s&&l===null&&x&4&&g1(h),Hi(h,h.return);break;case 12:ei(d,h,s);break;case 13:ei(d,h,s),s&&x&4&&C1(d,h);break;case 22:h.memoizedState===null&&ei(d,h,s),Hi(h,h.return);break;default:ei(d,h,s)}i=i.sibling}}function cf(n,i){var s=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),n=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(n=i.memoizedState.cachePool.pool),n!==s&&(n!=null&&n.refCount++,s!=null&&eo(s))}function uf(n,i){n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&eo(n))}function ti(n,i,s,l){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)T1(n,i,s,l),i=i.sibling}function T1(n,i,s,l){var d=i.flags;switch(i.tag){case 0:case 11:case 15:ti(n,i,s,l),d&2048&&uo(9,i);break;case 3:ti(n,i,s,l),d&2048&&(n=null,i.alternate!==null&&(n=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==n&&(i.refCount++,n!=null&&eo(n)));break;case 12:if(d&2048){ti(n,i,s,l),n=i.stateNode;try{var h=i.memoizedProps,x=h.id,k=h.onPostCommit;typeof k=="function"&&k(x,i.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(A){Ke(i,i.return,A)}}else ti(n,i,s,l);break;case 23:break;case 22:h=i.stateNode,i.memoizedState!==null?h._visibility&4?ti(n,i,s,l):fo(n,i):h._visibility&4?ti(n,i,s,l):(h._visibility|=4,Br(n,i,s,l,(i.subtreeFlags&10256)!==0)),d&2048&&cf(i.alternate,i);break;case 24:ti(n,i,s,l),d&2048&&uf(i.alternate,i);break;default:ti(n,i,s,l)}}function Br(n,i,s,l,d){for(d=d&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var h=n,x=i,k=s,A=l,B=x.flags;switch(x.tag){case 0:case 11:case 15:Br(h,x,k,A,d),uo(8,x);break;case 23:break;case 22:var G=x.stateNode;x.memoizedState!==null?G._visibility&4?Br(h,x,k,A,d):fo(h,x):(G._visibility|=4,Br(h,x,k,A,d)),d&&B&2048&&cf(x.alternate,x);break;case 24:Br(h,x,k,A,d),d&&B&2048&&uf(x.alternate,x);break;default:Br(h,x,k,A,d)}i=i.sibling}}function fo(n,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=n,l=i,d=l.flags;switch(l.tag){case 22:fo(s,l),d&2048&&cf(l.alternate,l);break;case 24:fo(s,l),d&2048&&uf(l.alternate,l);break;default:fo(s,l)}i=i.sibling}}var mo=8192;function zr(n){if(n.subtreeFlags&mo)for(n=n.child;n!==null;)A1(n),n=n.sibling}function A1(n){switch(n.tag){case 26:zr(n),n.flags&mo&&n.memoizedState!==null&&e7(Un,n.memoizedState,n.memoizedProps);break;case 5:zr(n);break;case 3:case 4:var i=Un;Un=yc(n.stateNode.containerInfo),zr(n),Un=i;break;case 22:n.memoizedState===null&&(i=n.alternate,i!==null&&i.memoizedState!==null?(i=mo,mo=16777216,zr(n),mo=i):zr(n));break;default:zr(n)}}function N1(n){var i=n.alternate;if(i!==null&&(n=i.child,n!==null)){i.child=null;do i=n.sibling,n.sibling=null,n=i;while(n!==null)}}function po(n){var i=n.deletions;if(n.flags&16){if(i!==null)for(var s=0;s<i.length;s++){var l=i[s];Tt=l,R1(l,n)}N1(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)M1(n),n=n.sibling}function M1(n){switch(n.tag){case 0:case 11:case 15:po(n),n.flags&2048&&Ja(9,n,n.return);break;case 3:po(n);break;case 12:po(n);break;case 22:var i=n.stateNode;n.memoizedState!==null&&i._visibility&4&&(n.return===null||n.return.tag!==13)?(i._visibility&=-5,ac(n)):po(n);break;default:po(n)}}function ac(n){var i=n.deletions;if(n.flags&16){if(i!==null)for(var s=0;s<i.length;s++){var l=i[s];Tt=l,R1(l,n)}N1(n)}for(n=n.child;n!==null;){switch(i=n,i.tag){case 0:case 11:case 15:Ja(8,i,i.return),ac(i);break;case 22:s=i.stateNode,s._visibility&4&&(s._visibility&=-5,ac(i));break;default:ac(i)}n=n.sibling}}function R1(n,i){for(;Tt!==null;){var s=Tt;switch(s.tag){case 0:case 11:case 15:Ja(8,s,i);break;case 23:case 22:if(s.memoizedState!==null&&s.memoizedState.cachePool!==null){var l=s.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:eo(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,Tt=l;else e:for(s=n;Tt!==null;){l=Tt;var d=l.sibling,h=l.return;if(k1(l),l===s){Tt=null;break e}if(d!==null){d.return=h,Tt=d;break e}Tt=h}}}function mk(n,i,s,l){this.tag=n,this.key=s,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=i,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function An(n,i,s,l){return new mk(n,i,s,l)}function df(n){return n=n.prototype,!(!n||!n.isReactComponent)}function ni(n,i){var s=n.alternate;return s===null?(s=An(n.tag,i,n.key,n.mode),s.elementType=n.elementType,s.type=n.type,s.stateNode=n.stateNode,s.alternate=n,n.alternate=s):(s.pendingProps=i,s.type=n.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=n.flags&31457280,s.childLanes=n.childLanes,s.lanes=n.lanes,s.child=n.child,s.memoizedProps=n.memoizedProps,s.memoizedState=n.memoizedState,s.updateQueue=n.updateQueue,i=n.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=n.sibling,s.index=n.index,s.ref=n.ref,s.refCleanup=n.refCleanup,s}function D1(n,i){n.flags&=31457282;var s=n.alternate;return s===null?(n.childLanes=0,n.lanes=i,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=s.childLanes,n.lanes=s.lanes,n.child=s.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=s.memoizedProps,n.memoizedState=s.memoizedState,n.updateQueue=s.updateQueue,n.type=s.type,i=s.dependencies,n.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),n}function ic(n,i,s,l,d,h){var x=0;if(l=n,typeof n=="function")df(n)&&(x=1);else if(typeof n=="string")x=Qk(n,s,kt.current)?26:n==="html"||n==="head"||n==="body"?27:5;else e:switch(n){case p:return qi(s.children,d,h,i);case g:x=8,d|=24;break;case y:return n=An(12,s,i,d|2),n.elementType=y,n.lanes=h,n;case C:return n=An(13,s,i,d),n.elementType=C,n.lanes=h,n;case E:return n=An(19,s,i,d),n.elementType=E,n.lanes=h,n;case M:return O1(s,d,h,i);default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case b:case T:x=10;break e;case v:x=9;break e;case S:x=11;break e;case O:x=14;break e;case D:x=16,l=null;break e}x=29,s=Error(r(130,n===null?"null":typeof n,"")),l=null}return i=An(x,s,i,d),i.elementType=n,i.type=l,i.lanes=h,i}function qi(n,i,s,l){return n=An(7,n,l,i),n.lanes=s,n}function O1(n,i,s,l){n=An(22,n,l,i),n.elementType=M,n.lanes=s;var d={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var h=d._current;if(h===null)throw Error(r(456));if(!(d._pendingVisibility&2)){var x=$a(h,2);x!==null&&(d._pendingVisibility|=2,Gt(x,h,2))}},attach:function(){var h=d._current;if(h===null)throw Error(r(456));if(d._pendingVisibility&2){var x=$a(h,2);x!==null&&(d._pendingVisibility&=-3,Gt(x,h,2))}}};return n.stateNode=d,n}function ff(n,i,s){return n=An(6,n,null,i),n.lanes=s,n}function mf(n,i,s){return i=An(4,n.children!==null?n.children:[],n.key,i),i.lanes=s,i.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},i}function Ma(n){n.flags|=4}function _1(n,i){if(i.type!=="stylesheet"||i.state.loading&4)n.flags&=-16777217;else if(n.flags|=16777216,!xy(i)){if(i=jn.current,i!==null&&((ze&4194176)===ze?Qn!==null:(ze&62914560)!==ze&&!(ze&536870912)||i!==Qn))throw Ws=yd,Wg;n.flags|=8192}}function rc(n,i){i!==null&&(n.flags|=4),n.flags&16384&&(i=n.tag!==22?Qh():536870912,n.lanes|=i,Vr|=i)}function ho(n,i){if(!Ve)switch(n.tailMode){case"hidden":i=n.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?n.tail=null:s.sibling=null;break;case"collapsed":s=n.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?i||n.tail===null?n.tail=null:n.tail.sibling=null:l.sibling=null}}function at(n){var i=n.alternate!==null&&n.alternate.child===n.child,s=0,l=0;if(i)for(var d=n.child;d!==null;)s|=d.lanes|d.childLanes,l|=d.subtreeFlags&31457280,l|=d.flags&31457280,d.return=n,d=d.sibling;else for(d=n.child;d!==null;)s|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=n,d=d.sibling;return n.subtreeFlags|=l,n.childLanes=s,i}function pk(n,i,s){var l=i.pendingProps;switch(hd(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return at(i),null;case 1:return at(i),null;case 3:return s=i.stateNode,l=null,n!==null&&(l=n.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),Ea(vt),zn(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(n===null||n.child===null)&&(Is(i)?Ma(i):n===null||n.memoizedState.isDehydrated&&!(i.flags&256)||(i.flags|=1024,Vn!==null&&(wf(Vn),Vn=null))),at(i),null;case 26:return s=i.memoizedState,n===null?(Ma(i),s!==null?(at(i),_1(i,s)):(at(i),i.flags&=-16777217)):s?s!==n.memoizedState?(Ma(i),at(i),_1(i,s)):(at(i),i.flags&=-16777217):(n.memoizedProps!==l&&Ma(i),at(i),i.flags&=-16777217),null;case 27:Xn(i),s=sn.current;var d=i.type;if(n!==null&&i.stateNode!=null)n.memoizedProps!==l&&Ma(i);else{if(!l){if(i.stateNode===null)throw Error(r(166));return at(i),null}n=kt.current,Is(i)?Kg(i):(n=uy(d,l,s),i.stateNode=n,Ma(i))}return at(i),null;case 5:if(Xn(i),s=i.type,n!==null&&i.stateNode!=null)n.memoizedProps!==l&&Ma(i);else{if(!l){if(i.stateNode===null)throw Error(r(166));return at(i),null}if(n=kt.current,Is(i))Kg(i);else{switch(d=gc(sn.current),n){case 1:n=d.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:n=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":n=d.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":n=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":n=d.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?n.multiple=!0:l.size&&(n.size=l.size);break;default:n=typeof l.is=="string"?d.createElement(s,{is:l.is}):d.createElement(s)}}n[zt]=i,n[Qt]=l;e:for(d=i.child;d!==null;){if(d.tag===5||d.tag===6)n.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===i)break e;for(;d.sibling===null;){if(d.return===null||d.return===i)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}i.stateNode=n;e:switch(Lt(n,s,l),s){case"button":case"input":case"select":case"textarea":n=!!l.autoFocus;break e;case"img":n=!0;break e;default:n=!1}n&&Ma(i)}}return at(i),i.flags&=-16777217,null;case 6:if(n&&i.stateNode!=null)n.memoizedProps!==l&&Ma(i);else{if(typeof l!="string"&&i.stateNode===null)throw Error(r(166));if(n=sn.current,Is(i)){if(n=i.stateNode,s=i.memoizedProps,l=null,d=Yt,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}n[zt]=i,n=!!(n.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||iy(n.nodeValue,s)),n||Di(i)}else n=gc(n).createTextNode(l),n[zt]=i,i.stateNode=n}return at(i),null;case 13:if(l=i.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(d=Is(i),l!==null&&l.dehydrated!==null){if(n===null){if(!d)throw Error(r(318));if(d=i.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[zt]=i}else Zs(),!(i.flags&128)&&(i.memoizedState=null),i.flags|=4;at(i),d=!1}else Vn!==null&&(wf(Vn),Vn=null),d=!0;if(!d)return i.flags&256?(ka(i),i):(ka(i),null)}if(ka(i),i.flags&128)return i.lanes=s,i;if(s=l!==null,n=n!==null&&n.memoizedState!==null,s){l=i.child,d=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(d=l.alternate.memoizedState.cachePool.pool);var h=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(h=l.memoizedState.cachePool.pool),h!==d&&(l.flags|=2048)}return s!==n&&s&&(i.child.flags|=8192),rc(i,i.updateQueue),at(i),null;case 4:return zn(),n===null&&Df(i.stateNode.containerInfo),at(i),null;case 10:return Ea(i.type),at(i),null;case 19:if(Pe(bt),d=i.memoizedState,d===null)return at(i),null;if(l=(i.flags&128)!==0,h=d.rendering,h===null)if(l)ho(d,!1);else{if(lt!==0||n!==null&&n.flags&128)for(n=i.child;n!==null;){if(h=ql(n),h!==null){for(i.flags|=128,ho(d,!1),n=h.updateQueue,i.updateQueue=n,rc(i,n),i.subtreeFlags=0,n=s,s=i.child;s!==null;)D1(s,n),s=s.sibling;return He(bt,bt.current&1|2),i.child}n=n.sibling}d.tail!==null&&ne()>sc&&(i.flags|=128,l=!0,ho(d,!1),i.lanes=4194304)}else{if(!l)if(n=ql(h),n!==null){if(i.flags|=128,l=!0,n=n.updateQueue,i.updateQueue=n,rc(i,n),ho(d,!0),d.tail===null&&d.tailMode==="hidden"&&!h.alternate&&!Ve)return at(i),null}else 2*ne()-d.renderingStartTime>sc&&s!==536870912&&(i.flags|=128,l=!0,ho(d,!1),i.lanes=4194304);d.isBackwards?(h.sibling=i.child,i.child=h):(n=d.last,n!==null?n.sibling=h:i.child=h,d.last=h)}return d.tail!==null?(i=d.tail,d.rendering=i,d.tail=i.sibling,d.renderingStartTime=ne(),i.sibling=null,n=bt.current,He(bt,l?n&1|2:n&1),i):(at(i),null);case 22:case 23:return ka(i),bd(),l=i.memoizedState!==null,n!==null?n.memoizedState!==null!==l&&(i.flags|=8192):l&&(i.flags|=8192),l?s&536870912&&!(i.flags&128)&&(at(i),i.subtreeFlags&6&&(i.flags|=8192)):at(i),s=i.updateQueue,s!==null&&rc(i,s.retryQueue),s=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(s=n.memoizedState.cachePool.pool),l=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==s&&(i.flags|=2048),n!==null&&Pe(_i),null;case 24:return s=null,n!==null&&(s=n.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),Ea(vt),at(i),null;case 25:return null}throw Error(r(156,i.tag))}function hk(n,i){switch(hd(i),i.tag){case 1:return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 3:return Ea(vt),zn(),n=i.flags,n&65536&&!(n&128)?(i.flags=n&-65537|128,i):null;case 26:case 27:case 5:return Xn(i),null;case 13:if(ka(i),n=i.memoizedState,n!==null&&n.dehydrated!==null){if(i.alternate===null)throw Error(r(340));Zs()}return n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 19:return Pe(bt),null;case 4:return zn(),null;case 10:return Ea(i.type),null;case 22:case 23:return ka(i),bd(),n!==null&&Pe(_i),n=i.flags,n&65536?(i.flags=n&-65537|128,i):null;case 24:return Ea(vt),null;case 25:return null;default:return null}}function L1(n,i){switch(hd(i),i.tag){case 3:Ea(vt),zn();break;case 26:case 27:case 5:Xn(i);break;case 4:zn();break;case 13:ka(i);break;case 19:Pe(bt);break;case 10:Ea(i.type);break;case 22:case 23:ka(i),bd(),n!==null&&Pe(_i);break;case 24:Ea(vt)}}var gk={getCacheForType:function(n){var i=Pt(vt),s=i.data.get(n);return s===void 0&&(s=n(),i.data.set(n,s)),s}},yk=typeof WeakMap=="function"?WeakMap:Map,it=0,We=null,Oe=null,ze=0,Qe=0,dn=null,Ra=!1,Pr=!1,pf=!1,Da=0,lt=0,ai=0,Fi=0,hf=0,Nn=0,Vr=0,go=null,ea=null,gf=!1,yf=0,sc=1/0,oc=null,ii=null,lc=!1,$i=null,yo=0,xf=0,bf=null,xo=0,vf=null;function fn(){if(it&2&&ze!==0)return ze&-ze;if(W.T!==null){var n=Mr;return n!==0?n:Af()}return ng()}function B1(){Nn===0&&(Nn=!(ze&536870912)||Ve?Wh():536870912);var n=jn.current;return n!==null&&(n.flags|=32),Nn}function Gt(n,i,s){(n===We&&Qe===2||n.cancelPendingCommit!==null)&&(Ur(n,0),Oa(n,ze,Nn,!1)),Ls(n,s),(!(it&2)||n!==We)&&(n===We&&(!(it&2)&&(Fi|=s),lt===4&&Oa(n,ze,Nn,!1)),ta(n))}function z1(n,i,s){if(it&6)throw Error(r(327));var l=!s&&(i&60)===0&&(i&n.expiredLanes)===0||_s(n,i),d=l?vk(n,i):Cf(n,i,!0),h=l;do{if(d===0){Pr&&!l&&Oa(n,i,0,!1);break}else if(d===6)Oa(n,i,0,!Ra);else{if(s=n.current.alternate,h&&!xk(s)){d=Cf(n,i,!1),h=!1;continue}if(d===2){if(h=i,n.errorRecoveryDisabledLanes&h)var x=0;else x=n.pendingLanes&-536870913,x=x!==0?x:x&536870912?536870912:0;if(x!==0){i=x;e:{var k=n;d=go;var A=k.current.memoizedState.isDehydrated;if(A&&(Ur(k,x).flags|=256),x=Cf(k,x,!1),x!==2){if(pf&&!A){k.errorRecoveryDisabledLanes|=h,Fi|=h,d=4;break e}h=ea,ea=d,h!==null&&wf(h)}d=x}if(h=!1,d!==2)continue}}if(d===1){Ur(n,0),Oa(n,i,0,!0);break}e:{switch(l=n,d){case 0:case 1:throw Error(r(345));case 4:if((i&4194176)===i){Oa(l,i,Nn,!Ra);break e}break;case 2:ea=null;break;case 3:case 5:break;default:throw Error(r(329))}if(l.finishedWork=s,l.finishedLanes=i,(i&62914560)===i&&(h=yf+300-ne(),10<h)){if(Oa(l,i,Nn,!Ra),wl(l,0)!==0)break e;l.timeoutHandle=oy(P1.bind(null,l,s,ea,oc,gf,i,Nn,Fi,Vr,Ra,2,-0,0),h);break e}P1(l,s,ea,oc,gf,i,Nn,Fi,Vr,Ra,0,-0,0)}}break}while(!0);ta(n)}function wf(n){ea===null?ea=n:ea.push.apply(ea,n)}function P1(n,i,s,l,d,h,x,k,A,B,G,J,U){var Y=i.subtreeFlags;if((Y&8192||(Y&16785408)===16785408)&&(Co={stylesheets:null,count:0,unsuspend:Jk},A1(i),i=t7(),i!==null)){n.cancelPendingCommit=i(Y1.bind(null,n,s,l,d,x,k,A,1,J,U)),Oa(n,h,x,!B);return}Y1(n,s,l,d,x,k,A,G,J,U)}function xk(n){for(var i=n;;){var s=i.tag;if((s===0||s===11||s===15)&&i.flags&16384&&(s=i.updateQueue,s!==null&&(s=s.stores,s!==null)))for(var l=0;l<s.length;l++){var d=s[l],h=d.getSnapshot;d=d.value;try{if(!ln(h(),d))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===n)break;for(;i.sibling===null;){if(i.return===null||i.return===n)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Oa(n,i,s,l){i&=~hf,i&=~Fi,n.suspendedLanes|=i,n.pingedLanes&=~i,l&&(n.warmLanes|=i),l=n.expirationTimes;for(var d=i;0<d;){var h=31-Dt(d),x=1<<h;l[h]=-1,d&=~x}s!==0&&Jh(n,s,i)}function cc(){return it&6?!0:(bo(0),!1)}function kf(){if(Oe!==null){if(Qe===0)var n=Oe.return;else n=Oe,ja=Vi=null,Td(n),Ar=null,Qs=0,n=Oe;for(;n!==null;)L1(n.alternate,n),n=n.return;Oe=null}}function Ur(n,i){n.finishedWork=null,n.finishedLanes=0;var s=n.timeoutHandle;s!==-1&&(n.timeoutHandle=-1,zk(s)),s=n.cancelPendingCommit,s!==null&&(n.cancelPendingCommit=null,s()),kf(),We=n,Oe=s=ni(n.current,null),ze=i,Qe=0,dn=null,Ra=!1,Pr=_s(n,i),pf=!1,Vr=Nn=hf=Fi=ai=lt=0,ea=go=null,gf=!1,i&8&&(i|=i&32);var l=n.entangledLanes;if(l!==0)for(n=n.entanglements,l&=i;0<l;){var d=31-Dt(l),h=1<<d;i|=n[d],l&=~h}return Da=i,Ol(),s}function V1(n,i){Ne=null,W.H=Jn,i===Xs?(i=e0(),Qe=3):i===Wg?(i=e0(),Qe=4):Qe=i===Q0?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,dn=i,Oe===null&&(lt=1,Jl(n,kn(i,n.current)))}function U1(){var n=W.H;return W.H=Jn,n===null?Jn:n}function H1(){var n=W.A;return W.A=gk,n}function Sf(){lt=4,Ra||(ze&4194176)!==ze&&jn.current!==null||(Pr=!0),!(ai&134217727)&&!(Fi&134217727)||We===null||Oa(We,ze,Nn,!1)}function Cf(n,i,s){var l=it;it|=2;var d=U1(),h=H1();(We!==n||ze!==i)&&(oc=null,Ur(n,i)),i=!1;var x=lt;e:do try{if(Qe!==0&&Oe!==null){var k=Oe,A=dn;switch(Qe){case 8:kf(),x=6;break e;case 3:case 2:case 6:jn.current===null&&(i=!0);var B=Qe;if(Qe=0,dn=null,Hr(n,k,A,B),s&&Pr){x=0;break e}break;default:B=Qe,Qe=0,dn=null,Hr(n,k,A,B)}}bk(),x=lt;break}catch(G){V1(n,G)}while(!0);return i&&n.shellSuspendCounter++,ja=Vi=null,it=l,W.H=d,W.A=h,Oe===null&&(We=null,ze=0,Ol()),x}function bk(){for(;Oe!==null;)q1(Oe)}function vk(n,i){var s=it;it|=2;var l=U1(),d=H1();We!==n||ze!==i?(oc=null,sc=ne()+500,Ur(n,i)):Pr=_s(n,i);e:do try{if(Qe!==0&&Oe!==null){i=Oe;var h=dn;t:switch(Qe){case 1:Qe=0,dn=null,Hr(n,i,h,1);break;case 2:if(Qg(h)){Qe=0,dn=null,F1(i);break}i=function(){Qe===2&&We===n&&(Qe=7),ta(n)},h.then(i,i);break e;case 3:Qe=7;break e;case 4:Qe=5;break e;case 7:Qg(h)?(Qe=0,dn=null,F1(i)):(Qe=0,dn=null,Hr(n,i,h,7));break;case 5:var x=null;switch(Oe.tag){case 26:x=Oe.memoizedState;case 5:case 27:var k=Oe;if(!x||xy(x)){Qe=0,dn=null;var A=k.sibling;if(A!==null)Oe=A;else{var B=k.return;B!==null?(Oe=B,uc(B)):Oe=null}break t}}Qe=0,dn=null,Hr(n,i,h,5);break;case 6:Qe=0,dn=null,Hr(n,i,h,6);break;case 8:kf(),lt=6;break e;default:throw Error(r(462))}}wk();break}catch(G){V1(n,G)}while(!0);return ja=Vi=null,W.H=l,W.A=d,it=s,Oe!==null?0:(We=null,ze=0,Ol(),lt)}function wk(){for(;Oe!==null&&!Rt();)q1(Oe)}function q1(n){var i=u1(n.alternate,n,Da);n.memoizedProps=n.pendingProps,i===null?uc(n):Oe=i}function F1(n){var i=n,s=i.alternate;switch(i.tag){case 15:case 0:i=i1(s,i,i.pendingProps,i.type,void 0,ze);break;case 11:i=i1(s,i,i.pendingProps,i.type.render,i.ref,ze);break;case 5:Td(i);default:L1(s,i),i=Oe=D1(i,Da),i=u1(s,i,Da)}n.memoizedProps=n.pendingProps,i===null?uc(n):Oe=i}function Hr(n,i,s,l){ja=Vi=null,Td(i),Ar=null,Qs=0;var d=i.return;try{if(ck(n,d,i,s,ze)){lt=1,Jl(n,kn(s,n.current)),Oe=null;return}}catch(h){if(d!==null)throw Oe=d,h;lt=1,Jl(n,kn(s,n.current)),Oe=null;return}i.flags&32768?(Ve||l===1?n=!0:Pr||ze&536870912?n=!1:(Ra=n=!0,(l===2||l===3||l===6)&&(l=jn.current,l!==null&&l.tag===13&&(l.flags|=16384))),$1(i,n)):uc(i)}function uc(n){var i=n;do{if(i.flags&32768){$1(i,Ra);return}n=i.return;var s=pk(i.alternate,i,Da);if(s!==null){Oe=s;return}if(i=i.sibling,i!==null){Oe=i;return}Oe=i=n}while(i!==null);lt===0&&(lt=5)}function $1(n,i){do{var s=hk(n.alternate,n);if(s!==null){s.flags&=32767,Oe=s;return}if(s=n.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(n=n.sibling,n!==null)){Oe=n;return}Oe=n=s}while(n!==null);lt=6,Oe=null}function Y1(n,i,s,l,d,h,x,k,A,B){var G=W.T,J=Q.p;try{Q.p=2,W.T=null,kk(n,i,s,l,J,d,h,x,k,A,B)}finally{W.T=G,Q.p=J}}function kk(n,i,s,l,d,h,x,k){do qr();while($i!==null);if(it&6)throw Error(r(327));var A=n.finishedWork;if(l=n.finishedLanes,A===null)return null;if(n.finishedWork=null,n.finishedLanes=0,A===n.current)throw Error(r(177));n.callbackNode=null,n.callbackPriority=0,n.cancelPendingCommit=null;var B=A.lanes|A.childLanes;if(B|=fd,e3(n,l,B,h,x,k),n===We&&(Oe=We=null,ze=0),!(A.subtreeFlags&10256)&&!(A.flags&10256)||lc||(lc=!0,xf=B,bf=s,Ek(St,function(){return qr(),null})),s=(A.flags&15990)!==0,A.subtreeFlags&15990||s?(s=W.T,W.T=null,h=Q.p,Q.p=2,x=it,it|=4,dk(n,A),j1(A,n),G3(Bf,n.containerInfo),kc=!!Lf,Bf=Lf=null,n.current=A,w1(n,A.alternate,A),ha(),it=x,Q.p=h,W.T=s):n.current=A,lc?(lc=!1,$i=n,yo=l):G1(n,B),B=n.pendingLanes,B===0&&(ii=null),Ds(A.stateNode),ta(n),i!==null)for(d=n.onRecoverableError,A=0;A<i.length;A++)B=i[A],d(B.value,{componentStack:B.stack});return yo&3&&qr(),B=n.pendingLanes,l&4194218&&B&42?n===vf?xo++:(xo=0,vf=n):xo=0,bo(0),null}function G1(n,i){(n.pooledCacheLanes&=i)===0&&(i=n.pooledCache,i!=null&&(n.pooledCache=null,eo(i)))}function qr(){if($i!==null){var n=$i,i=xf;xf=0;var s=tg(yo),l=W.T,d=Q.p;try{if(Q.p=32>s?32:s,W.T=null,$i===null)var h=!1;else{s=bf,bf=null;var x=$i,k=yo;if($i=null,yo=0,it&6)throw Error(r(331));var A=it;if(it|=4,M1(x.current),T1(x,x.current,k,s),it=A,bo(0,!1),Ct&&typeof Ct.onPostCommitFiberRoot=="function")try{Ct.onPostCommitFiberRoot(ya,x)}catch{}h=!0}return h}finally{Q.p=d,W.T=l,G1(n,i)}}return!1}function I1(n,i,s){i=kn(s,i),i=Hd(n.stateNode,i,2),n=Qa(n,i,2),n!==null&&(Ls(n,2),ta(n))}function Ke(n,i,s){if(n.tag===3)I1(n,n,s);else for(;i!==null;){if(i.tag===3){I1(i,n,s);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ii===null||!ii.has(l))){n=kn(s,n),s=X0(2),l=Qa(i,s,2),l!==null&&(W0(s,l,i,n),Ls(l,2),ta(l));break}}i=i.return}}function jf(n,i,s){var l=n.pingCache;if(l===null){l=n.pingCache=new yk;var d=new Set;l.set(i,d)}else d=l.get(i),d===void 0&&(d=new Set,l.set(i,d));d.has(s)||(pf=!0,d.add(s),n=Sk.bind(null,n,i,s),i.then(n,n))}function Sk(n,i,s){var l=n.pingCache;l!==null&&l.delete(i),n.pingedLanes|=n.suspendedLanes&s,n.warmLanes&=~s,We===n&&(ze&s)===s&&(lt===4||lt===3&&(ze&62914560)===ze&&300>ne()-yf?!(it&2)&&Ur(n,0):hf|=s,Vr===ze&&(Vr=0)),ta(n)}function Z1(n,i){i===0&&(i=Qh()),n=$a(n,i),n!==null&&(Ls(n,i),ta(n))}function Ck(n){var i=n.memoizedState,s=0;i!==null&&(s=i.retryLane),Z1(n,s)}function jk(n,i){var s=0;switch(n.tag){case 13:var l=n.stateNode,d=n.memoizedState;d!==null&&(s=d.retryLane);break;case 19:l=n.stateNode;break;case 22:l=n.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(i),Z1(n,s)}function Ek(n,i){return he(n,i)}var dc=null,Fr=null,Ef=!1,fc=!1,Tf=!1,Yi=0;function ta(n){n!==Fr&&n.next===null&&(Fr===null?dc=Fr=n:Fr=Fr.next=n),fc=!0,Ef||(Ef=!0,Ak(Tk))}function bo(n,i){if(!Tf&&fc){Tf=!0;do for(var s=!1,l=dc;l!==null;){if(n!==0){var d=l.pendingLanes;if(d===0)var h=0;else{var x=l.suspendedLanes,k=l.pingedLanes;h=(1<<31-Dt(42|n)+1)-1,h&=d&~(x&~k),h=h&201326677?h&201326677|1:h?h|2:0}h!==0&&(s=!0,W1(l,h))}else h=ze,h=wl(l,l===We?h:0),!(h&3)||_s(l,h)||(s=!0,W1(l,h));l=l.next}while(s);Tf=!1}}function Tk(){fc=Ef=!1;var n=0;Yi!==0&&(Bk()&&(n=Yi),Yi=0);for(var i=ne(),s=null,l=dc;l!==null;){var d=l.next,h=K1(l,i);h===0?(l.next=null,s===null?dc=d:s.next=d,d===null&&(Fr=s)):(s=l,(n!==0||h&3)&&(fc=!0)),l=d}bo(n)}function K1(n,i){for(var s=n.suspendedLanes,l=n.pingedLanes,d=n.expirationTimes,h=n.pendingLanes&-62914561;0<h;){var x=31-Dt(h),k=1<<x,A=d[x];A===-1?(!(k&s)||k&l)&&(d[x]=J4(k,i)):A<=i&&(n.expiredLanes|=k),h&=~k}if(i=We,s=ze,s=wl(n,n===i?s:0),l=n.callbackNode,s===0||n===i&&Qe===2||n.cancelPendingCommit!==null)return l!==null&&l!==null&&Me(l),n.callbackNode=null,n.callbackPriority=0;if(!(s&3)||_s(n,s)){if(i=s&-s,i===n.callbackPriority)return i;switch(l!==null&&Me(l),tg(s)){case 2:case 8:s=dt;break;case 32:s=St;break;case 268435456:s=ga;break;default:s=St}return l=X1.bind(null,n),s=he(s,l),n.callbackPriority=i,n.callbackNode=s,i}return l!==null&&l!==null&&Me(l),n.callbackPriority=2,n.callbackNode=null,2}function X1(n,i){var s=n.callbackNode;if(qr()&&n.callbackNode!==s)return null;var l=ze;return l=wl(n,n===We?l:0),l===0?null:(z1(n,l,i),K1(n,ne()),n.callbackNode!=null&&n.callbackNode===s?X1.bind(null,n):null)}function W1(n,i){if(qr())return null;z1(n,i,!0)}function Ak(n){Pk(function(){it&6?he(nt,n):n()})}function Af(){return Yi===0&&(Yi=Wh()),Yi}function Q1(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:El(""+n)}function J1(n,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,n.id&&s.setAttribute("form",n.id),i.parentNode.insertBefore(s,i),n=new FormData(n),s.parentNode.removeChild(s),n}function Nk(n,i,s,l,d){if(i==="submit"&&s&&s.stateNode===d){var h=Q1((d[Qt]||null).action),x=l.submitter;x&&(i=(i=x[Qt]||null)?Q1(i.formAction):x.getAttribute("formAction"),i!==null&&(h=i,x=null));var k=new Ml("action","action",null,l,d);n.push({event:k,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Yi!==0){var A=x?J1(d,x):new FormData(d);Bd(s,{pending:!0,data:A,method:d.method,action:h},null,A)}}else typeof h=="function"&&(k.preventDefault(),A=x?J1(d,x):new FormData(d),Bd(s,{pending:!0,data:A,method:d.method,action:h},h,A))},currentTarget:d}]})}}for(var Nf=0;Nf<Yg.length;Nf++){var Mf=Yg[Nf],Mk=Mf.toLowerCase(),Rk=Mf[0].toUpperCase()+Mf.slice(1);Pn(Mk,"on"+Rk)}Pn(Ug,"onAnimationEnd"),Pn(Hg,"onAnimationIteration"),Pn(qg,"onAnimationStart"),Pn("dblclick","onDoubleClick"),Pn("focusin","onFocus"),Pn("focusout","onBlur"),Pn(Z3,"onTransitionRun"),Pn(K3,"onTransitionStart"),Pn(X3,"onTransitionCancel"),Pn(Fg,"onTransitionEnd"),gr("onMouseEnter",["mouseout","mouseover"]),gr("onMouseLeave",["mouseout","mouseover"]),gr("onPointerEnter",["pointerout","pointerover"]),gr("onPointerLeave",["pointerout","pointerover"]),Ei("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Ei("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Ei("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ei("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Ei("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Ei("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var vo="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(" "),Dk=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(vo));function ey(n,i){i=(i&4)!==0;for(var s=0;s<n.length;s++){var l=n[s],d=l.event;l=l.listeners;e:{var h=void 0;if(i)for(var x=l.length-1;0<=x;x--){var k=l[x],A=k.instance,B=k.currentTarget;if(k=k.listener,A!==h&&d.isPropagationStopped())break e;h=k,d.currentTarget=B;try{h(d)}catch(G){Ql(G)}d.currentTarget=null,h=A}else for(x=0;x<l.length;x++){if(k=l[x],A=k.instance,B=k.currentTarget,k=k.listener,A!==h&&d.isPropagationStopped())break e;h=k,d.currentTarget=B;try{h(d)}catch(G){Ql(G)}d.currentTarget=null,h=A}}}}function Be(n,i){var s=i[Yu];s===void 0&&(s=i[Yu]=new Set);var l=n+"__bubble";s.has(l)||(ty(i,n,2,!1),s.add(l))}function Rf(n,i,s){var l=0;i&&(l|=4),ty(s,n,l,i)}var mc="_reactListening"+Math.random().toString(36).slice(2);function Df(n){if(!n[mc]){n[mc]=!0,ig.forEach(function(s){s!=="selectionchange"&&(Dk.has(s)||Rf(s,!1,n),Rf(s,!0,n))});var i=n.nodeType===9?n:n.ownerDocument;i===null||i[mc]||(i[mc]=!0,Rf("selectionchange",!1,i))}}function ty(n,i,s,l){switch(Cy(i)){case 2:var d=i7;break;case 8:d=r7;break;default:d=Yf}s=d.bind(null,i,s,n),d=void 0,!Ju||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(d=!0),l?d!==void 0?n.addEventListener(i,s,{capture:!0,passive:d}):n.addEventListener(i,s,!0):d!==void 0?n.addEventListener(i,s,{passive:d}):n.addEventListener(i,s,!1)}function Of(n,i,s,l,d){var h=l;if(!(i&1)&&!(i&2)&&l!==null)e:for(;;){if(l===null)return;var x=l.tag;if(x===3||x===4){var k=l.stateNode.containerInfo;if(k===d||k.nodeType===8&&k.parentNode===d)break;if(x===4)for(x=l.return;x!==null;){var A=x.tag;if((A===3||A===4)&&(A=x.stateNode.containerInfo,A===d||A.nodeType===8&&A.parentNode===d))return;x=x.return}for(;k!==null;){if(x=ji(k),x===null)return;if(A=x.tag,A===5||A===6||A===26||A===27){l=h=x;continue e}k=k.parentNode}}l=l.return}gg(function(){var B=h,G=Wu(s),J=[];e:{var U=$g.get(n);if(U!==void 0){var Y=Ml,me=n;switch(n){case"keypress":if(Al(s)===0)break e;case"keydown":case"keyup":Y=j3;break;case"focusin":me="focus",Y=ad;break;case"focusout":me="blur",Y=ad;break;case"beforeblur":case"afterblur":Y=ad;break;case"click":if(s.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Y=bg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Y=m3;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Y=A3;break;case Ug:case Hg:case qg:Y=g3;break;case Fg:Y=M3;break;case"scroll":case"scrollend":Y=d3;break;case"wheel":Y=D3;break;case"copy":case"cut":case"paste":Y=x3;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Y=wg;break;case"toggle":case"beforetoggle":Y=_3}var Ce=(i&4)!==0,ct=!Ce&&(n==="scroll"||n==="scrollend"),z=Ce?U!==null?U+"Capture":null:U;Ce=[];for(var L=B,P;L!==null;){var X=L;if(P=X.stateNode,X=X.tag,X!==5&&X!==26&&X!==27||P===null||z===null||(X=Ps(L,z),X!=null&&Ce.push(wo(L,X,P))),ct)break;L=L.return}0<Ce.length&&(U=new Y(U,me,null,s,G),J.push({event:U,listeners:Ce}))}}if(!(i&7)){e:{if(U=n==="mouseover"||n==="pointerover",Y=n==="mouseout"||n==="pointerout",U&&s!==Xu&&(me=s.relatedTarget||s.fromElement)&&(ji(me)||me[mr]))break e;if((Y||U)&&(U=G.window===G?G:(U=G.ownerDocument)?U.defaultView||U.parentWindow:window,Y?(me=s.relatedTarget||s.toElement,Y=B,me=me?ji(me):null,me!==null&&(ct=R(me),Ce=me.tag,me!==ct||Ce!==5&&Ce!==27&&Ce!==6)&&(me=null)):(Y=null,me=B),Y!==me)){if(Ce=bg,X="onMouseLeave",z="onMouseEnter",L="mouse",(n==="pointerout"||n==="pointerover")&&(Ce=wg,X="onPointerLeave",z="onPointerEnter",L="pointer"),ct=Y==null?U:zs(Y),P=me==null?U:zs(me),U=new Ce(X,L+"leave",Y,s,G),U.target=ct,U.relatedTarget=P,X=null,ji(G)===B&&(Ce=new Ce(z,L+"enter",me,s,G),Ce.target=P,Ce.relatedTarget=ct,X=Ce),ct=X,Y&&me)t:{for(Ce=Y,z=me,L=0,P=Ce;P;P=$r(P))L++;for(P=0,X=z;X;X=$r(X))P++;for(;0<L-P;)Ce=$r(Ce),L--;for(;0<P-L;)z=$r(z),P--;for(;L--;){if(Ce===z||z!==null&&Ce===z.alternate)break t;Ce=$r(Ce),z=$r(z)}Ce=null}else Ce=null;Y!==null&&ny(J,U,Y,Ce,!1),me!==null&&ct!==null&&ny(J,ct,me,Ce,!0)}}e:{if(U=B?zs(B):window,Y=U.nodeName&&U.nodeName.toLowerCase(),Y==="select"||Y==="input"&&U.type==="file")var ce=Ng;else if(Tg(U))if(Mg)ce=$3;else{ce=q3;var Re=H3}else Y=U.nodeName,!Y||Y.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?B&&Ku(B.elementType)&&(ce=Ng):ce=F3;if(ce&&(ce=ce(n,B))){Ag(J,ce,s,G);break e}Re&&Re(n,U,B),n==="focusout"&&B&&U.type==="number"&&B.memoizedProps.value!=null&&Zu(U,"number",U.value)}switch(Re=B?zs(B):window,n){case"focusin":(Tg(Re)||Re.contentEditable==="true")&&(kr=Re,cd=B,Gs=null);break;case"focusout":Gs=cd=kr=null;break;case"mousedown":ud=!0;break;case"contextmenu":case"mouseup":case"dragend":ud=!1,Pg(J,s,G);break;case"selectionchange":if(I3)break;case"keydown":case"keyup":Pg(J,s,G)}var ye;if(rd)e:{switch(n){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else wr?jg(n,s)&&(we="onCompositionEnd"):n==="keydown"&&s.keyCode===229&&(we="onCompositionStart");we&&(kg&&s.locale!=="ko"&&(wr||we!=="onCompositionStart"?we==="onCompositionEnd"&&wr&&(ye=yg()):(Fa=G,ed="value"in Fa?Fa.value:Fa.textContent,wr=!0)),Re=pc(B,we),0<Re.length&&(we=new vg(we,n,null,s,G),J.push({event:we,listeners:Re}),ye?we.data=ye:(ye=Eg(s),ye!==null&&(we.data=ye)))),(ye=B3?z3(n,s):P3(n,s))&&(we=pc(B,"onBeforeInput"),0<we.length&&(Re=new vg("onBeforeInput","beforeinput",null,s,G),J.push({event:Re,listeners:we}),Re.data=ye)),Nk(J,n,B,s,G)}ey(J,i)})}function wo(n,i,s){return{instance:n,listener:i,currentTarget:s}}function pc(n,i){for(var s=i+"Capture",l=[];n!==null;){var d=n,h=d.stateNode;d=d.tag,d!==5&&d!==26&&d!==27||h===null||(d=Ps(n,s),d!=null&&l.unshift(wo(n,d,h)),d=Ps(n,i),d!=null&&l.push(wo(n,d,h))),n=n.return}return l}function $r(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function ny(n,i,s,l,d){for(var h=i._reactName,x=[];s!==null&&s!==l;){var k=s,A=k.alternate,B=k.stateNode;if(k=k.tag,A!==null&&A===l)break;k!==5&&k!==26&&k!==27||B===null||(A=B,d?(B=Ps(s,h),B!=null&&x.unshift(wo(s,B,A))):d||(B=Ps(s,h),B!=null&&x.push(wo(s,B,A)))),s=s.return}x.length!==0&&n.push({event:i,listeners:x})}var Ok=/\r\n?/g,_k=/\u0000|\uFFFD/g;function ay(n){return(typeof n=="string"?n:""+n).replace(Ok,`
`).replace(_k,"")}function iy(n,i){return i=ay(i),ay(n)===i}function hc(){}function Ze(n,i,s,l,d,h){switch(s){case"children":typeof l=="string"?i==="body"||i==="textarea"&&l===""||xr(n,l):(typeof l=="number"||typeof l=="bigint")&&i!=="body"&&xr(n,""+l);break;case"className":Sl(n,"class",l);break;case"tabIndex":Sl(n,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Sl(n,s,l);break;case"style":pg(n,l,h);break;case"data":if(i!=="object"){Sl(n,"data",l);break}case"src":case"href":if(l===""&&(i!=="a"||s!=="href")){n.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(s);break}l=El(""+l),n.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){n.setAttribute(s,"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 h=="function"&&(s==="formAction"?(i!=="input"&&Ze(n,i,"name",d.name,d,null),Ze(n,i,"formEncType",d.formEncType,d,null),Ze(n,i,"formMethod",d.formMethod,d,null),Ze(n,i,"formTarget",d.formTarget,d,null)):(Ze(n,i,"encType",d.encType,d,null),Ze(n,i,"method",d.method,d,null),Ze(n,i,"target",d.target,d,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){n.removeAttribute(s);break}l=El(""+l),n.setAttribute(s,l);break;case"onClick":l!=null&&(n.onclick=hc);break;case"onScroll":l!=null&&Be("scroll",n);break;case"onScrollEnd":l!=null&&Be("scrollend",n);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(d.children!=null)throw Error(r(60));n.innerHTML=s}}break;case"multiple":n.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":n.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){n.removeAttribute("xlink:href");break}s=El(""+l),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",s);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(s,""+l):n.removeAttribute(s);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":l&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(s,""):n.removeAttribute(s);break;case"capture":case"download":l===!0?n.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?n.setAttribute(s,l):n.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?n.setAttribute(s,l):n.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?n.removeAttribute(s):n.setAttribute(s,l);break;case"popover":Be("beforetoggle",n),Be("toggle",n),kl(n,"popover",l);break;case"xlinkActuate":ba(n,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":ba(n,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":ba(n,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":ba(n,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":ba(n,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":ba(n,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":ba(n,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":ba(n,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":ba(n,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":kl(n,"is",l);break;case"innerText":case"textContent":break;default:(!(2<s.length)||s[0]!=="o"&&s[0]!=="O"||s[1]!=="n"&&s[1]!=="N")&&(s=c3.get(s)||s,kl(n,s,l))}}function _f(n,i,s,l,d,h){switch(s){case"style":pg(n,l,h);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(r(61));if(s=l.__html,s!=null){if(d.children!=null)throw Error(r(60));n.innerHTML=s}}break;case"children":typeof l=="string"?xr(n,l):(typeof l=="number"||typeof l=="bigint")&&xr(n,""+l);break;case"onScroll":l!=null&&Be("scroll",n);break;case"onScrollEnd":l!=null&&Be("scrollend",n);break;case"onClick":l!=null&&(n.onclick=hc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rg.hasOwnProperty(s))e:{if(s[0]==="o"&&s[1]==="n"&&(d=s.endsWith("Capture"),i=s.slice(2,d?s.length-7:void 0),h=n[Qt]||null,h=h!=null?h[s]:null,typeof h=="function"&&n.removeEventListener(i,h,d),typeof l=="function")){typeof h!="function"&&h!==null&&(s in n?n[s]=null:n.hasAttribute(s)&&n.removeAttribute(s)),n.addEventListener(i,l,d);break e}s in n?n[s]=l:l===!0?n.setAttribute(s,""):kl(n,s,l)}}}function Lt(n,i,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Be("error",n),Be("load",n);var l=!1,d=!1,h;for(h in s)if(s.hasOwnProperty(h)){var x=s[h];if(x!=null)switch(h){case"src":l=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ze(n,i,h,x,s,null)}}d&&Ze(n,i,"srcSet",s.srcSet,s,null),l&&Ze(n,i,"src",s.src,s,null);return;case"input":Be("invalid",n);var k=h=x=d=null,A=null,B=null;for(l in s)if(s.hasOwnProperty(l)){var G=s[l];if(G!=null)switch(l){case"name":d=G;break;case"type":x=G;break;case"checked":A=G;break;case"defaultChecked":B=G;break;case"value":h=G;break;case"defaultValue":k=G;break;case"children":case"dangerouslySetInnerHTML":if(G!=null)throw Error(r(137,i));break;default:Ze(n,i,l,G,s,null)}}ug(n,h,k,A,B,x,d,!1),Cl(n);return;case"select":Be("invalid",n),l=x=h=null;for(d in s)if(s.hasOwnProperty(d)&&(k=s[d],k!=null))switch(d){case"value":h=k;break;case"defaultValue":x=k;break;case"multiple":l=k;default:Ze(n,i,d,k,s,null)}i=h,s=x,n.multiple=!!l,i!=null?yr(n,!!l,i,!1):s!=null&&yr(n,!!l,s,!0);return;case"textarea":Be("invalid",n),h=d=l=null;for(x in s)if(s.hasOwnProperty(x)&&(k=s[x],k!=null))switch(x){case"value":l=k;break;case"defaultValue":d=k;break;case"children":h=k;break;case"dangerouslySetInnerHTML":if(k!=null)throw Error(r(91));break;default:Ze(n,i,x,k,s,null)}fg(n,l,d,h),Cl(n);return;case"option":for(A in s)if(s.hasOwnProperty(A)&&(l=s[A],l!=null))switch(A){case"selected":n.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Ze(n,i,A,l,s,null)}return;case"dialog":Be("cancel",n),Be("close",n);break;case"iframe":case"object":Be("load",n);break;case"video":case"audio":for(l=0;l<vo.length;l++)Be(vo[l],n);break;case"image":Be("error",n),Be("load",n);break;case"details":Be("toggle",n);break;case"embed":case"source":case"link":Be("error",n),Be("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in s)if(s.hasOwnProperty(B)&&(l=s[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:Ze(n,i,B,l,s,null)}return;default:if(Ku(i)){for(G in s)s.hasOwnProperty(G)&&(l=s[G],l!==void 0&&_f(n,i,G,l,s,void 0));return}}for(k in s)s.hasOwnProperty(k)&&(l=s[k],l!=null&&Ze(n,i,k,l,s,null))}function Lk(n,i,s,l){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,h=null,x=null,k=null,A=null,B=null,G=null;for(Y in s){var J=s[Y];if(s.hasOwnProperty(Y)&&J!=null)switch(Y){case"checked":break;case"value":break;case"defaultValue":A=J;default:l.hasOwnProperty(Y)||Ze(n,i,Y,null,l,J)}}for(var U in l){var Y=l[U];if(J=s[U],l.hasOwnProperty(U)&&(Y!=null||J!=null))switch(U){case"type":h=Y;break;case"name":d=Y;break;case"checked":B=Y;break;case"defaultChecked":G=Y;break;case"value":x=Y;break;case"defaultValue":k=Y;break;case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(r(137,i));break;default:Y!==J&&Ze(n,i,U,Y,l,J)}}Iu(n,x,k,A,B,G,h,d);return;case"select":Y=x=k=U=null;for(h in s)if(A=s[h],s.hasOwnProperty(h)&&A!=null)switch(h){case"value":break;case"multiple":Y=A;default:l.hasOwnProperty(h)||Ze(n,i,h,null,l,A)}for(d in l)if(h=l[d],A=s[d],l.hasOwnProperty(d)&&(h!=null||A!=null))switch(d){case"value":U=h;break;case"defaultValue":k=h;break;case"multiple":x=h;default:h!==A&&Ze(n,i,d,h,l,A)}i=k,s=x,l=Y,U!=null?yr(n,!!s,U,!1):!!l!=!!s&&(i!=null?yr(n,!!s,i,!0):yr(n,!!s,s?[]:"",!1));return;case"textarea":Y=U=null;for(k in s)if(d=s[k],s.hasOwnProperty(k)&&d!=null&&!l.hasOwnProperty(k))switch(k){case"value":break;case"children":break;default:Ze(n,i,k,null,l,d)}for(x in l)if(d=l[x],h=s[x],l.hasOwnProperty(x)&&(d!=null||h!=null))switch(x){case"value":U=d;break;case"defaultValue":Y=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==h&&Ze(n,i,x,d,l,h)}dg(n,U,Y);return;case"option":for(var me in s)if(U=s[me],s.hasOwnProperty(me)&&U!=null&&!l.hasOwnProperty(me))switch(me){case"selected":n.selected=!1;break;default:Ze(n,i,me,null,l,U)}for(A in l)if(U=l[A],Y=s[A],l.hasOwnProperty(A)&&U!==Y&&(U!=null||Y!=null))switch(A){case"selected":n.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:Ze(n,i,A,U,l,Y)}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 Ce in s)U=s[Ce],s.hasOwnProperty(Ce)&&U!=null&&!l.hasOwnProperty(Ce)&&Ze(n,i,Ce,null,l,U);for(B in l)if(U=l[B],Y=s[B],l.hasOwnProperty(B)&&U!==Y&&(U!=null||Y!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(r(137,i));break;default:Ze(n,i,B,U,l,Y)}return;default:if(Ku(i)){for(var ct in s)U=s[ct],s.hasOwnProperty(ct)&&U!==void 0&&!l.hasOwnProperty(ct)&&_f(n,i,ct,void 0,l,U);for(G in l)U=l[G],Y=s[G],!l.hasOwnProperty(G)||U===Y||U===void 0&&Y===void 0||_f(n,i,G,U,l,Y);return}}for(var z in s)U=s[z],s.hasOwnProperty(z)&&U!=null&&!l.hasOwnProperty(z)&&Ze(n,i,z,null,l,U);for(J in l)U=l[J],Y=s[J],!l.hasOwnProperty(J)||U===Y||U==null&&Y==null||Ze(n,i,J,U,l,Y)}var Lf=null,Bf=null;function gc(n){return n.nodeType===9?n:n.ownerDocument}function ry(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function sy(n,i){if(n===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&i==="foreignObject"?0:n}function zf(n,i){return n==="textarea"||n==="noscript"||typeof i.children=="string"||typeof i.children=="number"||typeof i.children=="bigint"||typeof i.dangerouslySetInnerHTML=="object"&&i.dangerouslySetInnerHTML!==null&&i.dangerouslySetInnerHTML.__html!=null}var Pf=null;function Bk(){var n=window.event;return n&&n.type==="popstate"?n===Pf?!1:(Pf=n,!0):(Pf=null,!1)}var oy=typeof setTimeout=="function"?setTimeout:void 0,zk=typeof clearTimeout=="function"?clearTimeout:void 0,ly=typeof Promise=="function"?Promise:void 0,Pk=typeof queueMicrotask=="function"?queueMicrotask:typeof ly<"u"?function(n){return ly.resolve(null).then(n).catch(Vk)}:oy;function Vk(n){setTimeout(function(){throw n})}function Vf(n,i){var s=i,l=0;do{var d=s.nextSibling;if(n.removeChild(s),d&&d.nodeType===8)if(s=d.data,s==="/$"){if(l===0){n.removeChild(d),No(i);return}l--}else s!=="$"&&s!=="$?"&&s!=="$!"||l++;s=d}while(s);No(i)}function Uf(n){var i=n.firstChild;for(i&&i.nodeType===10&&(i=i.nextSibling);i;){var s=i;switch(i=i.nextSibling,s.nodeName){case"HTML":case"HEAD":case"BODY":Uf(s),Gu(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}n.removeChild(s)}}function Uk(n,i,s,l){for(;n.nodeType===1;){var d=s;if(n.nodeName.toLowerCase()!==i.toLowerCase()){if(!l&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(l){if(!n[Bs])switch(i){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(h=n.getAttribute("rel"),h==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(h!==d.rel||n.getAttribute("href")!==(d.href==null?null:d.href)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||n.getAttribute("title")!==(d.title==null?null:d.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(h=n.getAttribute("src"),(h!==(d.src==null?null:d.src)||n.getAttribute("type")!==(d.type==null?null:d.type)||n.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&h&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(i==="input"&&n.type==="hidden"){var h=d.name==null?null:""+d.name;if(d.type==="hidden"&&n.getAttribute("name")===h)return n}else return n;if(n=Hn(n.nextSibling),n===null)break}return null}function Hk(n,i,s){if(i==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!s||(n=Hn(n.nextSibling),n===null))return null;return n}function Hn(n){for(;n!=null;n=n.nextSibling){var i=n.nodeType;if(i===1||i===3)break;if(i===8){if(i=n.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return n}function cy(n){n=n.previousSibling;for(var i=0;n;){if(n.nodeType===8){var s=n.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return n;i--}else s==="/$"&&i++}n=n.previousSibling}return null}function uy(n,i,s){switch(i=gc(s),n){case"html":if(n=i.documentElement,!n)throw Error(r(452));return n;case"head":if(n=i.head,!n)throw Error(r(453));return n;case"body":if(n=i.body,!n)throw Error(r(454));return n;default:throw Error(r(451))}}var Mn=new Map,dy=new Set;function yc(n){return typeof n.getRootNode=="function"?n.getRootNode():n.ownerDocument}var _a=Q.d;Q.d={f:qk,r:Fk,D:$k,C:Yk,L:Gk,m:Ik,X:Kk,S:Zk,M:Xk};function qk(){var n=_a.f(),i=cc();return n||i}function Fk(n){var i=pr(n);i!==null&&i.tag===5&&i.type==="form"?P0(i):_a.r(n)}var Yr=typeof document>"u"?null:document;function fy(n,i,s){var l=Yr;if(l&&typeof i=="string"&&i){var d=vn(i);d='link[rel="'+n+'"][href="'+d+'"]',typeof s=="string"&&(d+='[crossorigin="'+s+'"]'),dy.has(d)||(dy.add(d),n={rel:n,crossOrigin:s,href:i},l.querySelector(d)===null&&(i=l.createElement("link"),Lt(i,"link",n),jt(i),l.head.appendChild(i)))}}function $k(n){_a.D(n),fy("dns-prefetch",n,null)}function Yk(n,i){_a.C(n,i),fy("preconnect",n,i)}function Gk(n,i,s){_a.L(n,i,s);var l=Yr;if(l&&n&&i){var d='link[rel="preload"][as="'+vn(i)+'"]';i==="image"&&s&&s.imageSrcSet?(d+='[imagesrcset="'+vn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(d+='[imagesizes="'+vn(s.imageSizes)+'"]')):d+='[href="'+vn(n)+'"]';var h=d;switch(i){case"style":h=Gr(n);break;case"script":h=Ir(n)}Mn.has(h)||(n=se({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:n,as:i},s),Mn.set(h,n),l.querySelector(d)!==null||i==="style"&&l.querySelector(ko(h))||i==="script"&&l.querySelector(So(h))||(i=l.createElement("link"),Lt(i,"link",n),jt(i),l.head.appendChild(i)))}}function Ik(n,i){_a.m(n,i);var s=Yr;if(s&&n){var l=i&&typeof i.as=="string"?i.as:"script",d='link[rel="modulepreload"][as="'+vn(l)+'"][href="'+vn(n)+'"]',h=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ir(n)}if(!Mn.has(h)&&(n=se({rel:"modulepreload",href:n},i),Mn.set(h,n),s.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector(So(h)))return}l=s.createElement("link"),Lt(l,"link",n),jt(l),s.head.appendChild(l)}}}function Zk(n,i,s){_a.S(n,i,s);var l=Yr;if(l&&n){var d=hr(l).hoistableStyles,h=Gr(n);i=i||"default";var x=d.get(h);if(!x){var k={loading:0,preload:null};if(x=l.querySelector(ko(h)))k.loading=5;else{n=se({rel:"stylesheet",href:n,"data-precedence":i},s),(s=Mn.get(h))&&Hf(n,s);var A=x=l.createElement("link");jt(A),Lt(A,"link",n),A._p=new Promise(function(B,G){A.onload=B,A.onerror=G}),A.addEventListener("load",function(){k.loading|=1}),A.addEventListener("error",function(){k.loading|=2}),k.loading|=4,xc(x,i,l)}x={type:"stylesheet",instance:x,count:1,state:k},d.set(h,x)}}}function Kk(n,i){_a.X(n,i);var s=Yr;if(s&&n){var l=hr(s).hoistableScripts,d=Ir(n),h=l.get(d);h||(h=s.querySelector(So(d)),h||(n=se({src:n,async:!0},i),(i=Mn.get(d))&&qf(n,i),h=s.createElement("script"),jt(h),Lt(h,"link",n),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function Xk(n,i){_a.M(n,i);var s=Yr;if(s&&n){var l=hr(s).hoistableScripts,d=Ir(n),h=l.get(d);h||(h=s.querySelector(So(d)),h||(n=se({src:n,async:!0,type:"module"},i),(i=Mn.get(d))&&qf(n,i),h=s.createElement("script"),jt(h),Lt(h,"link",n),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function my(n,i,s,l){var d=(d=sn.current)?yc(d):null;if(!d)throw Error(r(446));switch(n){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=Gr(s.href),s=hr(d).hoistableStyles,l=s.get(i),l||(l={type:"style",instance:null,count:0,state:null},s.set(i,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(s.rel==="stylesheet"&&typeof s.href=="string"&&typeof s.precedence=="string"){n=Gr(s.href);var h=hr(d).hoistableStyles,x=h.get(n);if(x||(d=d.ownerDocument||d,x={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(n,x),(h=d.querySelector(ko(n)))&&!h._p&&(x.instance=h,x.state.loading=5),Mn.has(n)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Mn.set(n,s),h||Wk(d,n,s,x.state))),i&&l===null)throw Error(r(528,""));return x}if(i&&l!==null)throw Error(r(529,""));return null;case"script":return i=s.async,s=s.src,typeof s=="string"&&i&&typeof i!="function"&&typeof i!="symbol"?(i=Ir(s),s=hr(d).hoistableScripts,l=s.get(i),l||(l={type:"script",instance:null,count:0,state:null},s.set(i,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,n))}}function Gr(n){return'href="'+vn(n)+'"'}function ko(n){return'link[rel="stylesheet"]['+n+"]"}function py(n){return se({},n,{"data-precedence":n.precedence,precedence:null})}function Wk(n,i,s,l){n.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=n.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),Lt(i,"link",s),jt(i),n.head.appendChild(i))}function Ir(n){return'[src="'+vn(n)+'"]'}function So(n){return"script[async]"+n}function hy(n,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var l=n.querySelector('style[data-href~="'+vn(s.href)+'"]');if(l)return i.instance=l,jt(l),l;var d=se({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(n.ownerDocument||n).createElement("style"),jt(l),Lt(l,"style",d),xc(l,s.precedence,n),i.instance=l;case"stylesheet":d=Gr(s.href);var h=n.querySelector(ko(d));if(h)return i.state.loading|=4,i.instance=h,jt(h),h;l=py(s),(d=Mn.get(d))&&Hf(l,d),h=(n.ownerDocument||n).createElement("link"),jt(h);var x=h;return x._p=new Promise(function(k,A){x.onload=k,x.onerror=A}),Lt(h,"link",l),i.state.loading|=4,xc(h,s.precedence,n),i.instance=h;case"script":return h=Ir(s.src),(d=n.querySelector(So(h)))?(i.instance=d,jt(d),d):(l=s,(d=Mn.get(h))&&(l=se({},s),qf(l,d)),n=n.ownerDocument||n,d=n.createElement("script"),jt(d),Lt(d,"link",l),n.head.appendChild(d),i.instance=d);case"void":return null;default:throw Error(r(443,i.type))}else i.type==="stylesheet"&&!(i.state.loading&4)&&(l=i.instance,i.state.loading|=4,xc(l,s.precedence,n));return i.instance}function xc(n,i,s){for(var l=s.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=l.length?l[l.length-1]:null,h=d,x=0;x<l.length;x++){var k=l[x];if(k.dataset.precedence===i)h=k;else if(h!==d)break}h?h.parentNode.insertBefore(n,h.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(n,i.firstChild))}function Hf(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.title==null&&(n.title=i.title)}function qf(n,i){n.crossOrigin==null&&(n.crossOrigin=i.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=i.referrerPolicy),n.integrity==null&&(n.integrity=i.integrity)}var bc=null;function gy(n,i,s){if(bc===null){var l=new Map,d=bc=new Map;d.set(s,l)}else d=bc,l=d.get(s),l||(l=new Map,d.set(s,l));if(l.has(n))return l;for(l.set(n,null),s=s.getElementsByTagName(n),d=0;d<s.length;d++){var h=s[d];if(!(h[Bs]||h[zt]||n==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var x=h.getAttribute(i)||"";x=n+x;var k=l.get(x);k?k.push(h):l.set(x,[h])}}return l}function yy(n,i,s){n=n.ownerDocument||n,n.head.insertBefore(s,i==="title"?n.querySelector("head > title"):null)}function Qk(n,i,s){if(s===1||i.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof i.precedence!="string"||typeof i.href!="string"||i.href==="")break;return!0;case"link":if(typeof i.rel!="string"||typeof i.href!="string"||i.href===""||i.onLoad||i.onError)break;switch(i.rel){case"stylesheet":return n=i.disabled,typeof i.precedence=="string"&&n==null;default:return!0}case"script":if(i.async&&typeof i.async!="function"&&typeof i.async!="symbol"&&!i.onLoad&&!i.onError&&i.src&&typeof i.src=="string")return!0}return!1}function xy(n){return!(n.type==="stylesheet"&&!(n.state.loading&3))}var Co=null;function Jk(){}function e7(n,i,s){if(Co===null)throw Error(r(475));var l=Co;if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&!(i.state.loading&4)){if(i.instance===null){var d=Gr(s.href),h=n.querySelector(ko(d));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(l.count++,l=vc.bind(l),n.then(l,l)),i.state.loading|=4,i.instance=h,jt(h);return}h=n.ownerDocument||n,s=py(s),(d=Mn.get(d))&&Hf(s,d),h=h.createElement("link"),jt(h);var x=h;x._p=new Promise(function(k,A){x.onload=k,x.onerror=A}),Lt(h,"link",s),i.instance=h}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(i,n),(n=i.state.preload)&&!(i.state.loading&3)&&(l.count++,i=vc.bind(l),n.addEventListener("load",i),n.addEventListener("error",i))}}function t7(){if(Co===null)throw Error(r(475));var n=Co;return n.stylesheets&&n.count===0&&Ff(n,n.stylesheets),0<n.count?function(i){var s=setTimeout(function(){if(n.stylesheets&&Ff(n,n.stylesheets),n.unsuspend){var l=n.unsuspend;n.unsuspend=null,l()}},6e4);return n.unsuspend=i,function(){n.unsuspend=null,clearTimeout(s)}}:null}function vc(){if(this.count--,this.count===0){if(this.stylesheets)Ff(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var wc=null;function Ff(n,i){n.stylesheets=null,n.unsuspend!==null&&(n.count++,wc=new Map,i.forEach(n7,n),wc=null,vc.call(n))}function n7(n,i){if(!(i.state.loading&4)){var s=wc.get(n);if(s)var l=s.get(null);else{s=new Map,wc.set(n,s);for(var d=n.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<d.length;h++){var x=d[h];(x.nodeName==="LINK"||x.getAttribute("media")!=="not all")&&(s.set(x.dataset.precedence,x),l=x)}l&&s.set(null,l)}d=i.instance,x=d.getAttribute("data-precedence"),h=s.get(x)||l,h===l&&s.set(null,d),s.set(x,d),this.count++,l=vc.bind(this),d.addEventListener("load",l),d.addEventListener("error",l),h?h.parentNode.insertBefore(d,h.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(d,n.firstChild)),i.state.loading|=4}}var jo={$$typeof:T,Provider:null,Consumer:null,_currentValue:fe,_currentValue2:fe,_threadCount:0};function a7(n,i,s,l,d,h,x,k){this.tag=1,this.containerInfo=n,this.finishedWork=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=$u(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=$u(0),this.hiddenUpdates=$u(null),this.identifierPrefix=l,this.onUncaughtError=d,this.onCaughtError=h,this.onRecoverableError=x,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=k,this.incompleteTransitions=new Map}function by(n,i,s,l,d,h,x,k,A,B,G,J){return n=new a7(n,i,s,x,k,A,B,J),i=1,h===!0&&(i|=24),h=An(3,null,null,i),n.current=h,h.stateNode=n,i=vd(),i.refCount++,n.pooledCache=i,i.refCount++,h.memoizedState={element:l,isDehydrated:s,cache:i},ef(h),n}function vy(n){return n?(n=jr,n):jr}function wy(n,i,s,l,d,h){d=vy(d),l.context===null?l.context=d:l.pendingContext=d,l=Wa(i),l.payload={element:s},h=h===void 0?null:h,h!==null&&(l.callback=h),s=Qa(n,l,i),s!==null&&(Gt(s,n,i),oo(s,n,i))}function ky(n,i){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var s=n.retryLane;n.retryLane=s!==0&&s<i?s:i}}function $f(n,i){ky(n,i),(n=n.alternate)&&ky(n,i)}function Sy(n){if(n.tag===13){var i=$a(n,67108864);i!==null&&Gt(i,n,67108864),$f(n,67108864)}}var kc=!0;function i7(n,i,s,l){var d=W.T;W.T=null;var h=Q.p;try{Q.p=2,Yf(n,i,s,l)}finally{Q.p=h,W.T=d}}function r7(n,i,s,l){var d=W.T;W.T=null;var h=Q.p;try{Q.p=8,Yf(n,i,s,l)}finally{Q.p=h,W.T=d}}function Yf(n,i,s,l){if(kc){var d=Gf(l);if(d===null)Of(n,i,l,Sc,s),jy(n,l);else if(o7(d,n,i,s,l))l.stopPropagation();else if(jy(n,l),i&4&&-1<s7.indexOf(n)){for(;d!==null;){var h=pr(d);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var x=Ci(h.pendingLanes);if(x!==0){var k=h;for(k.pendingLanes|=2,k.entangledLanes|=2;x;){var A=1<<31-Dt(x);k.entanglements[1]|=A,x&=~A}ta(h),!(it&6)&&(sc=ne()+500,bo(0))}}break;case 13:k=$a(h,2),k!==null&&Gt(k,h,2),cc(),$f(h,2)}if(h=Gf(l),h===null&&Of(n,i,l,Sc,s),h===d)break;d=h}d!==null&&l.stopPropagation()}else Of(n,i,l,null,s)}}function Gf(n){return n=Wu(n),If(n)}var Sc=null;function If(n){if(Sc=null,n=ji(n),n!==null){var i=R(n);if(i===null)n=null;else{var s=i.tag;if(s===13){if(n=Z(i),n!==null)return n;n=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;n=null}else i!==n&&(n=null)}}return Sc=n,null}function Cy(n){switch(n){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(ve()){case nt:return 2;case dt:return 8;case St:case Si:return 32;case ga:return 268435456;default:return 32}default:return 32}}var Zf=!1,ri=null,si=null,oi=null,Eo=new Map,To=new Map,li=[],s7="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 jy(n,i){switch(n){case"focusin":case"focusout":ri=null;break;case"dragenter":case"dragleave":si=null;break;case"mouseover":case"mouseout":oi=null;break;case"pointerover":case"pointerout":Eo.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":To.delete(i.pointerId)}}function Ao(n,i,s,l,d,h){return n===null||n.nativeEvent!==h?(n={blockedOn:i,domEventName:s,eventSystemFlags:l,nativeEvent:h,targetContainers:[d]},i!==null&&(i=pr(i),i!==null&&Sy(i)),n):(n.eventSystemFlags|=l,i=n.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),n)}function o7(n,i,s,l,d){switch(i){case"focusin":return ri=Ao(ri,n,i,s,l,d),!0;case"dragenter":return si=Ao(si,n,i,s,l,d),!0;case"mouseover":return oi=Ao(oi,n,i,s,l,d),!0;case"pointerover":var h=d.pointerId;return Eo.set(h,Ao(Eo.get(h)||null,n,i,s,l,d)),!0;case"gotpointercapture":return h=d.pointerId,To.set(h,Ao(To.get(h)||null,n,i,s,l,d)),!0}return!1}function Ey(n){var i=ji(n.target);if(i!==null){var s=R(i);if(s!==null){if(i=s.tag,i===13){if(i=Z(s),i!==null){n.blockedOn=i,t3(n.priority,function(){if(s.tag===13){var l=fn(),d=$a(s,l);d!==null&&Gt(d,s,l),$f(s,l)}});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){n.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}n.blockedOn=null}function Cc(n){if(n.blockedOn!==null)return!1;for(var i=n.targetContainers;0<i.length;){var s=Gf(n.nativeEvent);if(s===null){s=n.nativeEvent;var l=new s.constructor(s.type,s);Xu=l,s.target.dispatchEvent(l),Xu=null}else return i=pr(s),i!==null&&Sy(i),n.blockedOn=s,!1;i.shift()}return!0}function Ty(n,i,s){Cc(n)&&s.delete(i)}function l7(){Zf=!1,ri!==null&&Cc(ri)&&(ri=null),si!==null&&Cc(si)&&(si=null),oi!==null&&Cc(oi)&&(oi=null),Eo.forEach(Ty),To.forEach(Ty)}function jc(n,i){n.blockedOn===i&&(n.blockedOn=null,Zf||(Zf=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,l7)))}var Ec=null;function Ay(n){Ec!==n&&(Ec=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Ec===n&&(Ec=null);for(var i=0;i<n.length;i+=3){var s=n[i],l=n[i+1],d=n[i+2];if(typeof l!="function"){if(If(l||s)===null)continue;break}var h=pr(s);h!==null&&(n.splice(i,3),i-=3,Bd(h,{pending:!0,data:d,method:s.method,action:l},l,d))}}))}function No(n){function i(A){return jc(A,n)}ri!==null&&jc(ri,n),si!==null&&jc(si,n),oi!==null&&jc(oi,n),Eo.forEach(i),To.forEach(i);for(var s=0;s<li.length;s++){var l=li[s];l.blockedOn===n&&(l.blockedOn=null)}for(;0<li.length&&(s=li[0],s.blockedOn===null);)Ey(s),s.blockedOn===null&&li.shift();if(s=(n.ownerDocument||n).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var d=s[l],h=s[l+1],x=d[Qt]||null;if(typeof h=="function")x||Ay(s);else if(x){var k=null;if(h&&h.hasAttribute("formAction")){if(d=h,x=h[Qt]||null)k=x.formAction;else if(If(d)!==null)continue}else k=x.action;typeof k=="function"?s[l+1]=k:(s.splice(l,3),l-=3),Ay(s)}}}function Kf(n){this._internalRoot=n}Tc.prototype.render=Kf.prototype.render=function(n){var i=this._internalRoot;if(i===null)throw Error(r(409));var s=i.current,l=fn();wy(s,l,n,i,null,null)},Tc.prototype.unmount=Kf.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var i=n.containerInfo;n.tag===0&&qr(),wy(n.current,2,null,n,null,null),cc(),i[mr]=null}};function Tc(n){this._internalRoot=n}Tc.prototype.unstable_scheduleHydration=function(n){if(n){var i=ng();n={blockedOn:null,target:n,priority:i};for(var s=0;s<li.length&&i!==0&&i<li[s].priority;s++);li.splice(s,0,n),s===0&&Ey(n)}};var Ny=t.version;if(Ny!=="19.0.0")throw Error(r(527,Ny,"19.0.0"));Q.findDOMNode=function(n){var i=n._reactInternals;if(i===void 0)throw typeof n.render=="function"?Error(r(188)):(n=Object.keys(n).join(","),Error(r(268,n)));return n=N(i),n=n!==null?I(n):null,n=n===null?null:n.stateNode,n};var c7={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:W,findFiberByHostInstance:ji,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ac=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ac.isDisabled&&Ac.supportsFiber)try{ya=Ac.inject(c7),Ct=Ac}catch{}}return Ro.createRoot=function(n,i){if(!o(n))throw Error(r(299));var s=!1,l="",d=G0,h=I0,x=Z0,k=null;return i!=null&&(i.unstable_strictMode===!0&&(s=!0),i.identifierPrefix!==void 0&&(l=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(h=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(k=i.unstable_transitionCallbacks)),i=by(n,1,!1,null,null,s,l,d,h,x,k,null),n[mr]=i.current,Df(n.nodeType===8?n.parentNode:n),new Kf(i)},Ro.hydrateRoot=function(n,i,s){if(!o(n))throw Error(r(299));var l=!1,d="",h=G0,x=I0,k=Z0,A=null,B=null;return s!=null&&(s.unstable_strictMode===!0&&(l=!0),s.identifierPrefix!==void 0&&(d=s.identifierPrefix),s.onUncaughtError!==void 0&&(h=s.onUncaughtError),s.onCaughtError!==void 0&&(x=s.onCaughtError),s.onRecoverableError!==void 0&&(k=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(A=s.unstable_transitionCallbacks),s.formState!==void 0&&(B=s.formState)),i=by(n,1,!0,i,s??null,l,d,h,x,k,A,B),i.context=vy(null),s=i.current,l=fn(),d=Wa(l),d.callback=null,Qa(s,d,l),i.current.lanes=l,Ls(i,l),ta(i),n[mr]=i.current,Df(n),new Tc(i)},Ro.version="19.0.0",Ro}var Vy;function w7(){if(Vy)return Qf.exports;Vy=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(),Qf.exports=v7(),Qf.exports}var k7=w7();/**
 * react-router v7.13.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var Uy="popstate";function S7(e={}){function t(r,o){let{pathname:c,search:u,hash:m}=r.location;return Ym("",{pathname:c,search:u,hash:m},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function a(r,o){return typeof o=="string"?o:Fo(o)}return j7(t,a,null,e)}function et(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function In(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function C7(){return Math.random().toString(36).substring(2,10)}function Hy(e,t){return{usr:e.state,key:e.key,idx:t}}function Ym(e,t,a=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ys(t):t,state:a,key:t&&t.key||r||C7()}}function Fo({pathname:e="/",search:t="",hash:a=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function ys(e){let t={};if(e){let a=e.indexOf("#");a>=0&&(t.hash=e.substring(a),e=e.substring(0,a));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function j7(e,t,a,r={}){let{window:o=document.defaultView,v5Compat:c=!1}=r,u=o.history,m="POP",p=null,g=y();g==null&&(g=0,u.replaceState({...u.state,idx:g},""));function y(){return(u.state||{idx:null}).idx}function b(){m="POP";let E=y(),O=E==null?null:E-g;g=E,p&&p({action:m,location:C.location,delta:O})}function v(E,O){m="PUSH";let D=Ym(C.location,E,O);g=y()+1;let M=Hy(D,g),F=C.createHref(D);try{u.pushState(M,"",F)}catch(V){if(V instanceof DOMException&&V.name==="DataCloneError")throw V;o.location.assign(F)}c&&p&&p({action:m,location:C.location,delta:1})}function T(E,O){m="REPLACE";let D=Ym(C.location,E,O);g=y();let M=Hy(D,g),F=C.createHref(D);u.replaceState(M,"",F),c&&p&&p({action:m,location:C.location,delta:0})}function S(E){return E7(E)}let C={get action(){return m},get location(){return e(o,u)},listen(E){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(Uy,b),p=E,()=>{o.removeEventListener(Uy,b),p=null}},createHref(E){return t(o,E)},createURL:S,encodeLocation(E){let O=S(E);return{pathname:O.pathname,search:O.search,hash:O.hash}},push:v,replace:T,go(E){return u.go(E)}};return C}function E7(e,t=!1){let a="http://localhost";typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),et(a,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:Fo(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=a+r),new URL(r,a)}function Lv(e,t,a="/"){return T7(e,t,a,!1)}function T7(e,t,a,r){let o=typeof t=="string"?ys(t):t,c=Va(o.pathname||"/",a);if(c==null)return null;let u=Bv(e);A7(u);let m=null;for(let p=0;m==null&&p<u.length;++p){let g=V7(c);m=z7(u[p],g,r)}return m}function Bv(e,t=[],a=[],r="",o=!1){let c=(u,m,p=o,g)=>{let y={relativePath:g===void 0?u.path||"":g,caseSensitive:u.caseSensitive===!0,childrenIndex:m,route:u};if(y.relativePath.startsWith("/")){if(!y.relativePath.startsWith(r)&&p)return;et(y.relativePath.startsWith(r),`Absolute route path "${y.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),y.relativePath=y.relativePath.slice(r.length)}let b=za([r,y.relativePath]),v=a.concat(y);u.children&&u.children.length>0&&(et(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${b}".`),Bv(u.children,t,v,b,p)),!(u.path==null&&!u.index)&&t.push({path:b,score:L7(b,u.index),routesMeta:v})};return e.forEach((u,m)=>{var p;if(u.path===""||!((p=u.path)!=null&&p.includes("?")))c(u,m);else for(let g of zv(u.path))c(u,m,!0,g)}),t}function zv(e){let t=e.split("/");if(t.length===0)return[];let[a,...r]=t,o=a.endsWith("?"),c=a.replace(/\?$/,"");if(r.length===0)return o?[c,""]:[c];let u=zv(r.join("/")),m=[];return m.push(...u.map(p=>p===""?c:[c,p].join("/"))),o&&m.push(...u),m.map(p=>e.startsWith("/")&&p===""?"/":p)}function A7(e){e.sort((t,a)=>t.score!==a.score?a.score-t.score:B7(t.routesMeta.map(r=>r.childrenIndex),a.routesMeta.map(r=>r.childrenIndex)))}var N7=/^:[\w-]+$/,M7=3,R7=2,D7=1,O7=10,_7=-2,qy=e=>e==="*";function L7(e,t){let a=e.split("/"),r=a.length;return a.some(qy)&&(r+=_7),t&&(r+=R7),a.filter(o=>!qy(o)).reduce((o,c)=>o+(N7.test(c)?M7:c===""?D7:O7),r)}function B7(e,t){return e.length===t.length&&e.slice(0,-1).every((r,o)=>r===t[o])?e[e.length-1]-t[t.length-1]:0}function z7(e,t,a=!1){let{routesMeta:r}=e,o={},c="/",u=[];for(let m=0;m<r.length;++m){let p=r[m],g=m===r.length-1,y=c==="/"?t:t.slice(c.length)||"/",b=eu({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),v=p.route;if(!b&&g&&a&&!r[r.length-1].route.index&&(b=eu({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!b)return null;Object.assign(o,b.params),u.push({params:o,pathname:za([c,b.pathname]),pathnameBase:F7(za([c,b.pathnameBase])),route:v}),b.pathnameBase!=="/"&&(c=za([c,b.pathnameBase]))}return u}function eu(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,r]=P7(e.path,e.caseSensitive,e.end),o=t.match(a);if(!o)return null;let c=o[0],u=c.replace(/(.)\/+$/,"$1"),m=o.slice(1);return{params:r.reduce((g,{paramName:y,isOptional:b},v)=>{if(y==="*"){let S=m[v]||"";u=c.slice(0,c.length-S.length).replace(/(.)\/+$/,"$1")}const T=m[v];return b&&!T?g[y]=void 0:g[y]=(T||"").replace(/%2F/g,"/"),g},{}),pathname:c,pathnameBase:u,pattern:e}}function P7(e,t=!1,a=!0){In(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],o="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,m,p)=>(r.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function V7(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return In(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Va(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let a=t.endsWith("/")?t.length-1:t.length,r=e.charAt(a);return r&&r!=="/"?null:e.slice(a)||"/"}var U7=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function H7(e,t="/"){let{pathname:a,search:r="",hash:o=""}=typeof e=="string"?ys(e):e,c;return a?(a=a.replace(/\/\/+/g,"/"),a.startsWith("/")?c=Fy(a.substring(1),"/"):c=Fy(a,t)):c=t,{pathname:c,search:$7(r),hash:Y7(o)}}function Fy(e,t){let a=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function nm(e,t,a,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function q7(e){return e.filter((t,a)=>a===0||t.route.path&&t.route.path.length>0)}function Vp(e){let t=q7(e);return t.map((a,r)=>r===t.length-1?a.pathname:a.pathnameBase)}function Up(e,t,a,r=!1){let o;typeof e=="string"?o=ys(e):(o={...e},et(!o.pathname||!o.pathname.includes("?"),nm("?","pathname","search",o)),et(!o.pathname||!o.pathname.includes("#"),nm("#","pathname","hash",o)),et(!o.search||!o.search.includes("#"),nm("#","search","hash",o)));let c=e===""||o.pathname==="",u=c?"/":o.pathname,m;if(u==null)m=a;else{let b=t.length-1;if(!r&&u.startsWith("..")){let v=u.split("/");for(;v[0]==="..";)v.shift(),b-=1;o.pathname=v.join("/")}m=b>=0?t[b]:"/"}let p=H7(o,m),g=u&&u!=="/"&&u.endsWith("/"),y=(c||u===".")&&a.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var za=e=>e.join("/").replace(/\/\/+/g,"/"),F7=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),$7=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Y7=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,G7=class{constructor(e,t,a,r=!1){this.status=e,this.statusText=t||"",this.internal=r,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function I7(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function Z7(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var Pv=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Vv(e,t){let a=e;if(typeof a!="string"||!U7.test(a))return{absoluteURL:void 0,isExternal:!1,to:a};let r=a,o=!1;if(Pv)try{let c=new URL(window.location.href),u=a.startsWith("//")?new URL(c.protocol+a):new URL(a),m=Va(u.pathname,t);u.origin===c.origin&&m!=null?a=m+u.search+u.hash:o=!0}catch{In(!1,`<Link to="${a}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var Uv=["POST","PUT","PATCH","DELETE"];new Set(Uv);var K7=["GET",...Uv];new Set(K7);var xs=w.createContext(null);xs.displayName="DataRouter";var Eu=w.createContext(null);Eu.displayName="DataRouterState";var X7=w.createContext(!1),Hv=w.createContext({isTransitioning:!1});Hv.displayName="ViewTransition";var W7=w.createContext(new Map);W7.displayName="Fetchers";var Q7=w.createContext(null);Q7.displayName="Await";var hn=w.createContext(null);hn.displayName="Navigation";var tl=w.createContext(null);tl.displayName="Location";var Zn=w.createContext({outlet:null,matches:[],isDataRoute:!1});Zn.displayName="Route";var Hp=w.createContext(null);Hp.displayName="RouteError";var qv="REACT_ROUTER_ERROR",J7="REDIRECT",e9="ROUTE_ERROR_RESPONSE";function t9(e){if(e.startsWith(`${qv}:${J7}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function n9(e){if(e.startsWith(`${qv}:${e9}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new G7(t.status,t.statusText,t.data)}catch{}}function a9(e,{relative:t}={}){et(bs(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:r}=w.useContext(hn),{hash:o,pathname:c,search:u}=al(e,{relative:t}),m=c;return a!=="/"&&(m=c==="/"?a:za([a,c])),r.createHref({pathname:m,search:u,hash:o})}function bs(){return w.useContext(tl)!=null}function Bn(){return et(bs(),"useLocation() may be used only in the context of a <Router> component."),w.useContext(tl).location}var Fv="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function $v(e){w.useContext(hn).static||w.useLayoutEffect(e)}function nl(){let{isDataRoute:e}=w.useContext(Zn);return e?x9():i9()}function i9(){et(bs(),"useNavigate() may be used only in the context of a <Router> component.");let e=w.useContext(xs),{basename:t,navigator:a}=w.useContext(hn),{matches:r}=w.useContext(Zn),{pathname:o}=Bn(),c=JSON.stringify(Vp(r)),u=w.useRef(!1);return $v(()=>{u.current=!0}),w.useCallback((p,g={})=>{if(In(u.current,Fv),!u.current)return;if(typeof p=="number"){a.go(p);return}let y=Up(p,JSON.parse(c),o,g.relative==="path");e==null&&t!=="/"&&(y.pathname=y.pathname==="/"?t:za([t,y.pathname])),(g.replace?a.replace:a.push)(y,g.state,g)},[t,a,c,o,e])}var r9=w.createContext(null);function s9(e){let t=w.useContext(Zn).outlet;return w.useMemo(()=>t&&w.createElement(r9.Provider,{value:e},t),[t,e])}function al(e,{relative:t}={}){let{matches:a}=w.useContext(Zn),{pathname:r}=Bn(),o=JSON.stringify(Vp(a));return w.useMemo(()=>Up(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function o9(e,t){return Yv(e,t)}function Yv(e,t,a,r,o){var D;et(bs(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:c}=w.useContext(hn),{matches:u}=w.useContext(Zn),m=u[u.length-1],p=m?m.params:{},g=m?m.pathname:"/",y=m?m.pathnameBase:"/",b=m&&m.route;{let M=b&&b.path||"";Iv(g,!b||M.endsWith("*")||M.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${M}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${M}"> to <Route path="${M==="/"?"*":`${M}/*`}">.`)}let v=Bn(),T;if(t){let M=typeof t=="string"?ys(t):t;et(y==="/"||((D=M.pathname)==null?void 0:D.startsWith(y)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${y}" but pathname "${M.pathname}" was given in the \`location\` prop.`),T=M}else T=v;let S=T.pathname||"/",C=S;if(y!=="/"){let M=y.replace(/^\//,"").split("/");C="/"+S.replace(/^\//,"").split("/").slice(M.length).join("/")}let E=Lv(e,{pathname:C});In(b||E!=null,`No routes matched location "${T.pathname}${T.search}${T.hash}" `),In(E==null||E[E.length-1].route.element!==void 0||E[E.length-1].route.Component!==void 0||E[E.length-1].route.lazy!==void 0,`Matched leaf route at location "${T.pathname}${T.search}${T.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let O=f9(E&&E.map(M=>Object.assign({},M,{params:Object.assign({},p,M.params),pathname:za([y,c.encodeLocation?c.encodeLocation(M.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathname]),pathnameBase:M.pathnameBase==="/"?y:za([y,c.encodeLocation?c.encodeLocation(M.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:M.pathnameBase])})),u,a,r,o);return t&&O?w.createElement(tl.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...T},navigationType:"POP"}},O):O}function l9(){let e=y9(),t=I7(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),a=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},c={padding:"2px 4px",backgroundColor:r},u=null;return console.error("Error handled by React Router default ErrorBoundary:",e),u=w.createElement(w.Fragment,null,w.createElement("p",null,"💿 Hey developer 👋"),w.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",w.createElement("code",{style:c},"ErrorBoundary")," or"," ",w.createElement("code",{style:c},"errorElement")," prop on your route.")),w.createElement(w.Fragment,null,w.createElement("h2",null,"Unexpected Application Error!"),w.createElement("h3",{style:{fontStyle:"italic"}},t),a?w.createElement("pre",{style:o},a):null,u)}var c9=w.createElement(l9,null),Gv=class extends w.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const a=n9(e.digest);a&&(e=a)}let t=e!==void 0?w.createElement(Zn.Provider,{value:this.props.routeContext},w.createElement(Hp.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?w.createElement(u9,{error:e},t):t}};Gv.contextType=X7;var am=new WeakMap;function u9({children:e,error:t}){let{basename:a}=w.useContext(hn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=t9(t.digest);if(r){let o=am.get(t);if(o)throw o;let c=Vv(r.location,a);if(Pv&&!am.get(t))if(c.isExternal||r.reloadDocument)window.location.href=c.absoluteURL||c.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(c.to,{replace:r.replace}));throw am.set(t,u),u}return w.createElement("meta",{httpEquiv:"refresh",content:`0;url=${c.absoluteURL||c.to}`})}}return e}function d9({routeContext:e,match:t,children:a}){let r=w.useContext(xs);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),w.createElement(Zn.Provider,{value:e},a)}function f9(e,t=[],a=null,r=null,o=null){if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(t.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let c=e,u=a==null?void 0:a.errors;if(u!=null){let y=c.findIndex(b=>b.route.id&&(u==null?void 0:u[b.route.id])!==void 0);et(y>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),c=c.slice(0,Math.min(c.length,y+1))}let m=!1,p=-1;if(a)for(let y=0;y<c.length;y++){let b=c[y];if((b.route.HydrateFallback||b.route.hydrateFallbackElement)&&(p=y),b.route.id){let{loaderData:v,errors:T}=a,S=b.route.loader&&!v.hasOwnProperty(b.route.id)&&(!T||T[b.route.id]===void 0);if(b.route.lazy||S){m=!0,p>=0?c=c.slice(0,p+1):c=[c[0]];break}}}let g=a&&r?(y,b)=>{var v,T;r(y,{location:a.location,params:((T=(v=a.matches)==null?void 0:v[0])==null?void 0:T.params)??{},unstable_pattern:Z7(a.matches),errorInfo:b})}:void 0;return c.reduceRight((y,b,v)=>{let T,S=!1,C=null,E=null;a&&(T=u&&b.route.id?u[b.route.id]:void 0,C=b.route.errorElement||c9,m&&(p<0&&v===0?(Iv("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),S=!0,E=null):p===v&&(S=!0,E=b.route.hydrateFallbackElement||null)));let O=t.concat(c.slice(0,v+1)),D=()=>{let M;return T?M=C:S?M=E:b.route.Component?M=w.createElement(b.route.Component,null):b.route.element?M=b.route.element:M=y,w.createElement(d9,{match:b,routeContext:{outlet:y,matches:O,isDataRoute:a!=null},children:M})};return a&&(b.route.ErrorBoundary||b.route.errorElement||v===0)?w.createElement(Gv,{location:a.location,revalidation:a.revalidation,component:C,error:T,children:D(),routeContext:{outlet:null,matches:O,isDataRoute:!0},onError:g}):D()},null)}function qp(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function m9(e){let t=w.useContext(xs);return et(t,qp(e)),t}function p9(e){let t=w.useContext(Eu);return et(t,qp(e)),t}function h9(e){let t=w.useContext(Zn);return et(t,qp(e)),t}function Fp(e){let t=h9(e),a=t.matches[t.matches.length-1];return et(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function g9(){return Fp("useRouteId")}function y9(){var r;let e=w.useContext(Hp),t=p9("useRouteError"),a=Fp("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[a]}function x9(){let{router:e}=m9("useNavigate"),t=Fp("useNavigate"),a=w.useRef(!1);return $v(()=>{a.current=!0}),w.useCallback(async(o,c={})=>{In(a.current,Fv),a.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...c}))},[e,t])}var $y={};function Iv(e,t,a){!t&&!$y[e]&&($y[e]=!0,In(!1,a))}w.memo(b9);function b9({routes:e,future:t,state:a,onError:r}){return Yv(e,void 0,a,r,t)}function $p({to:e,replace:t,state:a,relative:r}){et(bs(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=w.useContext(hn);In(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:c}=w.useContext(Zn),{pathname:u}=Bn(),m=nl(),p=Up(e,Vp(c),u,r==="path"),g=JSON.stringify(p);return w.useEffect(()=>{m(JSON.parse(g),{replace:t,state:a,relative:r})},[m,g,r,t,a]),null}function Zv(e){return s9(e.context)}function Ut(e){et(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function v9({basename:e="/",children:t=null,location:a,navigationType:r="POP",navigator:o,static:c=!1,unstable_useTransitions:u}){et(!bs(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let m=e.replace(/^\/*/,"/"),p=w.useMemo(()=>({basename:m,navigator:o,static:c,unstable_useTransitions:u,future:{}}),[m,o,c,u]);typeof a=="string"&&(a=ys(a));let{pathname:g="/",search:y="",hash:b="",state:v=null,key:T="default"}=a,S=w.useMemo(()=>{let C=Va(g,m);return C==null?null:{location:{pathname:C,search:y,hash:b,state:v,key:T},navigationType:r}},[m,g,y,b,v,T,r]);return In(S!=null,`<Router basename="${m}"> is not able to match the URL "${g}${y}${b}" because it does not start with the basename, so the <Router> won't render anything.`),S==null?null:w.createElement(hn.Provider,{value:p},w.createElement(tl.Provider,{children:t,value:S}))}function w9({children:e,location:t}){return o9(Gm(e),t)}function Gm(e,t=[]){let a=[];return w.Children.forEach(e,(r,o)=>{if(!w.isValidElement(r))return;let c=[...t,o];if(r.type===w.Fragment){a.push.apply(a,Gm(r.props.children,c));return}et(r.type===Ut,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),et(!r.props.index||!r.props.children,"An index route cannot have child routes.");let u={id:r.props.id||c.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(u.children=Gm(r.props.children,c)),a.push(u)}),a}var Hc="get",qc="application/x-www-form-urlencoded";function Tu(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function k9(e){return Tu(e)&&e.tagName.toLowerCase()==="button"}function S9(e){return Tu(e)&&e.tagName.toLowerCase()==="form"}function C9(e){return Tu(e)&&e.tagName.toLowerCase()==="input"}function j9(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function E9(e,t){return e.button===0&&(!t||t==="_self")&&!j9(e)}var Nc=null;function T9(){if(Nc===null)try{new FormData(document.createElement("form"),0),Nc=!1}catch{Nc=!0}return Nc}var A9=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function im(e){return e!=null&&!A9.has(e)?(In(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${qc}"`),null):e}function N9(e,t){let a,r,o,c,u;if(S9(e)){let m=e.getAttribute("action");r=m?Va(m,t):null,a=e.getAttribute("method")||Hc,o=im(e.getAttribute("enctype"))||qc,c=new FormData(e)}else if(k9(e)||C9(e)&&(e.type==="submit"||e.type==="image")){let m=e.form;if(m==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=e.getAttribute("formaction")||m.getAttribute("action");if(r=p?Va(p,t):null,a=e.getAttribute("formmethod")||m.getAttribute("method")||Hc,o=im(e.getAttribute("formenctype"))||im(m.getAttribute("enctype"))||qc,c=new FormData(m,e),!T9()){let{name:g,type:y,value:b}=e;if(y==="image"){let v=g?`${g}.`:"";c.append(`${v}x`,"0"),c.append(`${v}y`,"0")}else g&&c.append(g,b)}}else{if(Tu(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Hc,r=null,o=qc,u=e}return c&&o==="text/plain"&&(u=c,c=void 0),{action:r,method:a.toLowerCase(),encType:o,formData:c,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Yp(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function M9(e,t,a,r){let o=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a?o.pathname.endsWith("/")?o.pathname=`${o.pathname}_.${r}`:o.pathname=`${o.pathname}.${r}`:o.pathname==="/"?o.pathname=`_root.${r}`:t&&Va(o.pathname,t)==="/"?o.pathname=`${t.replace(/\/$/,"")}/_root.${r}`:o.pathname=`${o.pathname.replace(/\/$/,"")}.${r}`,o}async function R9(e,t){if(e.id in t)return t[e.id];try{let a=await import(e.module);return t[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function D9(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function O9(e,t,a){let r=await Promise.all(e.map(async o=>{let c=t.routes[o.route.id];if(c){let u=await R9(c,a);return u.links?u.links():[]}return[]}));return z9(r.flat(1).filter(D9).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Yy(e,t,a,r,o,c){let u=(p,g)=>a[g]?p.route.id!==a[g].route.id:!0,m=(p,g)=>{var y;return a[g].pathname!==p.pathname||((y=a[g].route.path)==null?void 0:y.endsWith("*"))&&a[g].params["*"]!==p.params["*"]};return c==="assets"?t.filter((p,g)=>u(p,g)||m(p,g)):c==="data"?t.filter((p,g)=>{var b;let y=r.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(u(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let v=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((b=a[0])==null?void 0:b.params)||{},nextUrl:new URL(e,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof v=="boolean")return v}return!0}):[]}function _9(e,t,{includeHydrateFallback:a}={}){return L9(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let c=[o.module];return o.clientActionModule&&(c=c.concat(o.clientActionModule)),o.clientLoaderModule&&(c=c.concat(o.clientLoaderModule)),a&&o.hydrateFallbackModule&&(c=c.concat(o.hydrateFallbackModule)),o.imports&&(c=c.concat(o.imports)),c}).flat(1))}function L9(e){return[...new Set(e)]}function B9(e){let t={},a=Object.keys(e).sort();for(let r of a)t[r]=e[r];return t}function z9(e,t){let a=new Set;return new Set(t),e.reduce((r,o)=>{let c=JSON.stringify(B9(o));return a.has(c)||(a.add(c),r.push({key:c,link:o})),r},[])}function Kv(){let e=w.useContext(xs);return Yp(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function P9(){let e=w.useContext(Eu);return Yp(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var Gp=w.createContext(void 0);Gp.displayName="FrameworkContext";function Xv(){let e=w.useContext(Gp);return Yp(e,"You must render this element inside a <HydratedRouter> element"),e}function V9(e,t){let a=w.useContext(Gp),[r,o]=w.useState(!1),[c,u]=w.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:y,onTouchStart:b}=t,v=w.useRef(null);w.useEffect(()=>{if(e==="render"&&u(!0),e==="viewport"){let C=O=>{O.forEach(D=>{u(D.isIntersecting)})},E=new IntersectionObserver(C,{threshold:.5});return v.current&&E.observe(v.current),()=>{E.disconnect()}}},[e]),w.useEffect(()=>{if(r){let C=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(C)}}},[r]);let T=()=>{o(!0)},S=()=>{o(!1),u(!1)};return a?e!=="intent"?[c,v,{}]:[c,v,{onFocus:Do(m,T),onBlur:Do(p,S),onMouseEnter:Do(g,T),onMouseLeave:Do(y,S),onTouchStart:Do(b,T)}]:[!1,v,{}]}function Do(e,t){return a=>{e&&e(a),a.defaultPrevented||t(a)}}function U9({page:e,...t}){let{router:a}=Kv(),r=w.useMemo(()=>Lv(a.routes,e,a.basename),[a.routes,e,a.basename]);return r?w.createElement(q9,{page:e,matches:r,...t}):null}function H9(e){let{manifest:t,routeModules:a}=Xv(),[r,o]=w.useState([]);return w.useEffect(()=>{let c=!1;return O9(e,t,a).then(u=>{c||o(u)}),()=>{c=!0}},[e,t,a]),r}function q9({page:e,matches:t,...a}){let r=Bn(),{future:o,manifest:c,routeModules:u}=Xv(),{basename:m}=Kv(),{loaderData:p,matches:g}=P9(),y=w.useMemo(()=>Yy(e,t,g,c,r,"data"),[e,t,g,c,r]),b=w.useMemo(()=>Yy(e,t,g,c,r,"assets"),[e,t,g,c,r]),v=w.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let C=new Set,E=!1;if(t.forEach(D=>{var F;let M=c.routes[D.route.id];!M||!M.hasLoader||(!y.some(V=>V.route.id===D.route.id)&&D.route.id in p&&((F=u[D.route.id])!=null&&F.shouldRevalidate)||M.hasClientLoader?E=!0:C.add(D.route.id))}),C.size===0)return[];let O=M9(e,m,o.unstable_trailingSlashAwareDataRequests,"data");return E&&C.size>0&&O.searchParams.set("_routes",t.filter(D=>C.has(D.route.id)).map(D=>D.route.id).join(",")),[O.pathname+O.search]},[m,o.unstable_trailingSlashAwareDataRequests,p,r,c,y,t,e,u]),T=w.useMemo(()=>_9(b,c),[b,c]),S=H9(b);return w.createElement(w.Fragment,null,v.map(C=>w.createElement("link",{key:C,rel:"prefetch",as:"fetch",href:C,...a})),T.map(C=>w.createElement("link",{key:C,rel:"modulepreload",href:C,...a})),S.map(({key:C,link:E})=>w.createElement("link",{key:C,nonce:a.nonce,...E,crossOrigin:E.crossOrigin??a.crossOrigin})))}function F9(...e){return t=>{e.forEach(a=>{typeof a=="function"?a(t):a!=null&&(a.current=t)})}}var $9=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{$9&&(window.__reactRouterVersion="7.13.0")}catch{}function Y9({basename:e,children:t,unstable_useTransitions:a,window:r}){let o=w.useRef();o.current==null&&(o.current=S7({window:r,v5Compat:!0}));let c=o.current,[u,m]=w.useState({action:c.action,location:c.location}),p=w.useCallback(g=>{a===!1?m(g):w.startTransition(()=>m(g))},[a]);return w.useLayoutEffect(()=>c.listen(p),[c,p]),w.createElement(v9,{basename:e,children:t,location:u.location,navigationType:u.action,navigator:c,unstable_useTransitions:a})}var Wv=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Yn=w.forwardRef(function({onClick:t,discover:a="render",prefetch:r="none",relative:o,reloadDocument:c,replace:u,state:m,target:p,to:g,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:v,...T},S){let{basename:C,unstable_useTransitions:E}=w.useContext(hn),O=typeof g=="string"&&Wv.test(g),D=Vv(g,C);g=D.to;let M=a9(g,{relative:o}),[F,V,te]=V9(r,T),ie=K9(g,{replace:u,state:m,target:p,preventScrollReset:y,relative:o,viewTransition:b,unstable_defaultShouldRevalidate:v,unstable_useTransitions:E});function ae(se){t&&t(se),se.defaultPrevented||ie(se)}let W=w.createElement("a",{...T,...te,href:D.absoluteURL||M,onClick:D.isExternal||c?t:ae,ref:F9(S,V),target:p,"data-discover":!O&&a==="render"?"true":void 0});return F&&!O?w.createElement(w.Fragment,null,W,w.createElement(U9,{page:M})):W});Yn.displayName="Link";var G9=w.forwardRef(function({"aria-current":t="page",caseSensitive:a=!1,className:r="",end:o=!1,style:c,to:u,viewTransition:m,children:p,...g},y){let b=al(u,{relative:g.relative}),v=Bn(),T=w.useContext(Eu),{navigator:S,basename:C}=w.useContext(hn),E=T!=null&&eS(b)&&m===!0,O=S.encodeLocation?S.encodeLocation(b).pathname:b.pathname,D=v.pathname,M=T&&T.navigation&&T.navigation.location?T.navigation.location.pathname:null;a||(D=D.toLowerCase(),M=M?M.toLowerCase():null,O=O.toLowerCase()),M&&C&&(M=Va(M,C)||M);const F=O!=="/"&&O.endsWith("/")?O.length-1:O.length;let V=D===O||!o&&D.startsWith(O)&&D.charAt(F)==="/",te=M!=null&&(M===O||!o&&M.startsWith(O)&&M.charAt(O.length)==="/"),ie={isActive:V,isPending:te,isTransitioning:E},ae=V?t:void 0,W;typeof r=="function"?W=r(ie):W=[r,V?"active":null,te?"pending":null,E?"transitioning":null].filter(Boolean).join(" ");let se=typeof c=="function"?c(ie):c;return w.createElement(Yn,{...g,"aria-current":ae,className:W,ref:y,style:se,to:u,viewTransition:m},typeof p=="function"?p(ie):p)});G9.displayName="NavLink";var I9=w.forwardRef(({discover:e="render",fetcherKey:t,navigate:a,reloadDocument:r,replace:o,state:c,method:u=Hc,action:m,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:v,...T},S)=>{let{unstable_useTransitions:C}=w.useContext(hn),E=Q9(),O=J9(m,{relative:g}),D=u.toLowerCase()==="get"?"get":"post",M=typeof m=="string"&&Wv.test(m),F=V=>{if(p&&p(V),V.defaultPrevented)return;V.preventDefault();let te=V.nativeEvent.submitter,ie=(te==null?void 0:te.getAttribute("formmethod"))||u,ae=()=>E(te||V.currentTarget,{fetcherKey:t,method:ie,navigate:a,replace:o,state:c,relative:g,preventScrollReset:y,viewTransition:b,unstable_defaultShouldRevalidate:v});C&&a!==!1?w.startTransition(()=>ae()):ae()};return w.createElement("form",{ref:S,method:D,action:O,onSubmit:r?p:F,...T,"data-discover":!M&&e==="render"?"true":void 0})});I9.displayName="Form";function Z9(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Qv(e){let t=w.useContext(xs);return et(t,Z9(e)),t}function K9(e,{target:t,replace:a,state:r,preventScrollReset:o,relative:c,viewTransition:u,unstable_defaultShouldRevalidate:m,unstable_useTransitions:p}={}){let g=nl(),y=Bn(),b=al(e,{relative:c});return w.useCallback(v=>{if(E9(v,t)){v.preventDefault();let T=a!==void 0?a:Fo(y)===Fo(b),S=()=>g(e,{replace:T,state:r,preventScrollReset:o,relative:c,viewTransition:u,unstable_defaultShouldRevalidate:m});p?w.startTransition(()=>S()):S()}},[y,g,b,a,r,t,e,o,c,u,m,p])}var X9=0,W9=()=>`__${String(++X9)}__`;function Q9(){let{router:e}=Qv("useSubmit"),{basename:t}=w.useContext(hn),a=g9(),r=e.fetch,o=e.navigate;return w.useCallback(async(c,u={})=>{let{action:m,method:p,encType:g,formData:y,body:b}=N9(c,t);if(u.navigate===!1){let v=u.fetcherKey||W9();await r(v,a,u.action||m,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:b,formMethod:u.method||p,formEncType:u.encType||g,flushSync:u.flushSync})}else await o(u.action||m,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:y,body:b,formMethod:u.method||p,formEncType:u.encType||g,replace:u.replace,state:u.state,fromRouteId:a,flushSync:u.flushSync,viewTransition:u.viewTransition})},[r,o,t,a])}function J9(e,{relative:t}={}){let{basename:a}=w.useContext(hn),r=w.useContext(Zn);et(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),c={...al(e||".",{relative:t})},u=Bn();if(e==null){c.search=u.search;let m=new URLSearchParams(c.search),p=m.getAll("index");if(p.some(y=>y==="")){m.delete("index"),p.filter(b=>b).forEach(b=>m.append("index",b));let y=m.toString();c.search=y?`?${y}`:""}}return(!e||e===".")&&o.route.index&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(c.pathname=c.pathname==="/"?a:za([a,c.pathname])),Fo(c)}function eS(e,{relative:t}={}){let a=w.useContext(Hv);et(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Qv("useViewTransitionState"),o=al(e,{relative:t});if(!a.isTransitioning)return!1;let c=Va(a.currentLocation.pathname,r)||a.currentLocation.pathname,u=Va(a.nextLocation.pathname,r)||a.nextLocation.pathname;return eu(o.pathname,u)!=null||eu(o.pathname,c)!=null}const Jv=w.createContext(void 0),Au=()=>{const e=w.useContext(Jv);if(!e)throw new Error("useSidebar must be used within a SidebarProvider");return e},tS=({children:e})=>{const[t,a]=w.useState(!0),[r,o]=w.useState(!1),[c,u]=w.useState(!1),[m,p]=w.useState(!1),[g,y]=w.useState(null),[b,v]=w.useState(null);w.useEffect(()=>{const E=()=>{const O=window.innerWidth<768;u(O),O||o(!1)};return E(),window.addEventListener("resize",E),()=>{window.removeEventListener("resize",E)}},[]);const T=()=>{a(E=>!E)},S=()=>{o(E=>!E)},C=E=>{v(O=>O===E?null:E)};return f.jsx(Jv.Provider,{value:{isExpanded:c?!1:t,isMobileOpen:r,isHovered:m,activeItem:g,openSubmenu:b,toggleSidebar:T,toggleMobileSidebar:S,setIsHovered:p,setActiveItem:y,toggleSubmenu:C},children:e})},ew=w.createContext(void 0),nS=({children:e})=>{const[t,a]=w.useState("light"),[r,o]=w.useState(!1);w.useEffect(()=>{const m=localStorage.getItem("theme")||"light";a(m),o(!0)},[]),w.useEffect(()=>{r&&(localStorage.setItem("theme",t),t==="dark"?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark"))},[t,r]);const c=()=>{a(u=>u==="light"?"dark":"light")};return f.jsx(ew.Provider,{value:{theme:t,toggleTheme:c},children:e})},tw=()=>{const e=w.useContext(ew);if(e===void 0)throw new Error("useTheme must be used within a ThemeProvider");return e},aS=()=>{const{toggleTheme:e}=tw();return f.jsxs("button",{onClick:e,className:"relative flex items-center justify-center text-gray-500 transition-colors bg-white border border-gray-200 rounded-full hover:text-dark-900 h-11 w-11 hover:bg-gray-100 hover:text-gray-700 dark:border-gray-800 dark:bg-gray-900 dark:text-gray-400 dark:hover:bg-gray-800 dark:hover:text-white",children:[f.jsx("svg",{className:"hidden dark:block",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99998 1.5415C10.4142 1.5415 10.75 1.87729 10.75 2.2915V3.5415C10.75 3.95572 10.4142 4.2915 9.99998 4.2915C9.58577 4.2915 9.24998 3.95572 9.24998 3.5415V2.2915C9.24998 1.87729 9.58577 1.5415 9.99998 1.5415ZM10.0009 6.79327C8.22978 6.79327 6.79402 8.22904 6.79402 10.0001C6.79402 11.7712 8.22978 13.207 10.0009 13.207C11.772 13.207 13.2078 11.7712 13.2078 10.0001C13.2078 8.22904 11.772 6.79327 10.0009 6.79327ZM5.29402 10.0001C5.29402 7.40061 7.40135 5.29327 10.0009 5.29327C12.6004 5.29327 14.7078 7.40061 14.7078 10.0001C14.7078 12.5997 12.6004 14.707 10.0009 14.707C7.40135 14.707 5.29402 12.5997 5.29402 10.0001ZM15.9813 5.08035C16.2742 4.78746 16.2742 4.31258 15.9813 4.01969C15.6884 3.7268 15.2135 3.7268 14.9207 4.01969L14.0368 4.90357C13.7439 5.19647 13.7439 5.67134 14.0368 5.96423C14.3297 6.25713 14.8045 6.25713 15.0974 5.96423L15.9813 5.08035ZM18.4577 10.0001C18.4577 10.4143 18.1219 10.7501 17.7077 10.7501H16.4577C16.0435 10.7501 15.7077 10.4143 15.7077 10.0001C15.7077 9.58592 16.0435 9.25013 16.4577 9.25013H17.7077C18.1219 9.25013 18.4577 9.58592 18.4577 10.0001ZM14.9207 15.9806C15.2135 16.2735 15.6884 16.2735 15.9813 15.9806C16.2742 15.6877 16.2742 15.2128 15.9813 14.9199L15.0974 14.036C14.8045 13.7431 14.3297 13.7431 14.0368 14.036C13.7439 14.3289 13.7439 14.8038 14.0368 15.0967L14.9207 15.9806ZM9.99998 15.7088C10.4142 15.7088 10.75 16.0445 10.75 16.4588V17.7088C10.75 18.123 10.4142 18.4588 9.99998 18.4588C9.58577 18.4588 9.24998 18.123 9.24998 17.7088V16.4588C9.24998 16.0445 9.58577 15.7088 9.99998 15.7088ZM5.96356 15.0972C6.25646 14.8043 6.25646 14.3295 5.96356 14.0366C5.67067 13.7437 5.1958 13.7437 4.9029 14.0366L4.01902 14.9204C3.72613 15.2133 3.72613 15.6882 4.01902 15.9811C4.31191 16.274 4.78679 16.274 5.07968 15.9811L5.96356 15.0972ZM4.29224 10.0001C4.29224 10.4143 3.95645 10.7501 3.54224 10.7501H2.29224C1.87802 10.7501 1.54224 10.4143 1.54224 10.0001C1.54224 9.58592 1.87802 9.25013 2.29224 9.25013H3.54224C3.95645 9.25013 4.29224 9.58592 4.29224 10.0001ZM4.9029 5.9637C5.1958 6.25659 5.67067 6.25659 5.96356 5.9637C6.25646 5.6708 6.25646 5.19593 5.96356 4.90303L5.07968 4.01915C4.78679 3.72626 4.31191 3.72626 4.01902 4.01915C3.72613 4.31204 3.72613 4.78692 4.01902 5.07981L4.9029 5.9637Z",fill:"currentColor"})}),f.jsx("svg",{className:"dark:hidden",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M17.4547 11.97L18.1799 12.1611C18.265 11.8383 18.1265 11.4982 17.8401 11.3266C17.5538 11.1551 17.1885 11.1934 16.944 11.4207L17.4547 11.97ZM8.0306 2.5459L8.57989 3.05657C8.80718 2.81209 8.84554 2.44682 8.67398 2.16046C8.50243 1.8741 8.16227 1.73559 7.83948 1.82066L8.0306 2.5459ZM12.9154 13.0035C9.64678 13.0035 6.99707 10.3538 6.99707 7.08524H5.49707C5.49707 11.1823 8.81835 14.5035 12.9154 14.5035V13.0035ZM16.944 11.4207C15.8869 12.4035 14.4721 13.0035 12.9154 13.0035V14.5035C14.8657 14.5035 16.6418 13.7499 17.9654 12.5193L16.944 11.4207ZM16.7295 11.7789C15.9437 14.7607 13.2277 16.9586 10.0003 16.9586V18.4586C13.9257 18.4586 17.2249 15.7853 18.1799 12.1611L16.7295 11.7789ZM10.0003 16.9586C6.15734 16.9586 3.04199 13.8433 3.04199 10.0003H1.54199C1.54199 14.6717 5.32892 18.4586 10.0003 18.4586V16.9586ZM3.04199 10.0003C3.04199 6.77289 5.23988 4.05695 8.22173 3.27114L7.83948 1.82066C4.21532 2.77574 1.54199 6.07486 1.54199 10.0003H3.04199ZM6.99707 7.08524C6.99707 5.52854 7.5971 4.11366 8.57989 3.05657L7.48132 2.03522C6.25073 3.35885 5.49707 5.13487 5.49707 7.08524H6.99707Z",fill:"currentColor"})})]})},iS=({tag:e="button",to:t,onClick:a,onItemClick:r,baseClassName:o="block w-full text-left px-4 py-2 text-sm text-gray-700 hover:bg-gray-100 hover:text-gray-900",className:c="",children:u})=>{const m=`${o} ${c}`.trim(),p=g=>{e==="button"&&g.preventDefault(),a&&a(),r&&r()};return e==="a"&&t?f.jsx(Yn,{to:t,className:m,onClick:p,children:u}):f.jsx("button",{onClick:p,className:m,children:u})},rS=({isOpen:e,onClose:t,children:a,className:r=""})=>{const o=w.useRef(null);return w.useEffect(()=>{const c=u=>{o.current&&!o.current.contains(u.target)&&!u.target.closest(".dropdown-toggle")&&t()};return document.addEventListener("mousedown",c),()=>{document.removeEventListener("mousedown",c)}},[t]),e?f.jsx("div",{ref:o,className:`absolute z-40  right-0 mt-2  rounded-xl border border-gray-200 bg-white  shadow-theme-lg dark:border-gray-800 dark:bg-gray-dark ${r}`,children:a}):null},sS=7,oS=10;let Gy=!1;const qe={token:"auth_token",refreshToken:"refresh_token",user:"auth_user",time:"auth_time",remember:"rememberMe",sessionFlag:"auth_session_alive"};function us(){const e=window.localStorage,t=window.sessionStorage;Object.values(qe).forEach(a=>{e.removeItem(a),t.removeItem(a)})}function nw(e,t=sS){if(!e)return!0;const a=new Date(e).getTime();if(Number.isNaN(a))return!0;const r=t*24*60*60*1e3;return Date.now()-a>r}function Ip(){const e=window.localStorage,t=window.sessionStorage;if(e.getItem(qe.remember)==="true")return;t.getItem(qe.sessionFlag)==="1"||(e.removeItem(qe.token),e.removeItem(qe.user),e.removeItem(qe.time))}function lS(){return Ip(),window.localStorage.getItem(qe.token)||""}function cS(){return Ip(),window.localStorage.getItem(qe.time)||""}function uS(e,t,a,r){const o=window.localStorage,c=window.sessionStorage;o.setItem(qe.remember,r?"true":"false"),r?c.removeItem(qe.sessionFlag):c.setItem(qe.sessionFlag,"1"),o.setItem(qe.token,e),o.setItem(qe.refreshToken,t),o.setItem(qe.user,JSON.stringify(a||{})),o.setItem(qe.time,new Date().toISOString())}function aw(){const e=lS(),t=cS();return!e||!t?!1:nw(t)||dS(e)?(us(),!1):!0}function Zp(e,t,a){if(String(a||"").includes("/api/auth/login"))return!1;const o=String((t==null?void 0:t.msg)||(t==null?void 0:t.message)||(t==null?void 0:t.error)||"").toLowerCase();return e===401&&(o.includes("token has expired")||o.includes("token expired")||o.includes("expired")||o.includes("missing authorization")||o.includes("invalid token")||o.includes("unauthorized"))}function Kp(){us(),!(typeof window>"u"||Gy)&&(Gy=!0,window.location.pathname!=="/login"&&window.location.replace("/login"))}function dS(e){if(!e||e.startsWith("client."))return!1;try{const t=JSON.parse(fS(e.split(".")[1]||""));return t!=null&&t.exp?t.exp*1e3<=Date.now()+oS*1e3:!1}catch{return!1}}function fS(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),a=t.padEnd(Math.ceil(t.length/4)*4,"="),r=window.atob(a);return decodeURIComponent(r.split("").map(o=>`%${o.charCodeAt(0).toString(16).padStart(2,"0")}`).join(""))}function mS(e){const t=e.replace(/-/g,"+").replace(/_/g,"/"),a=t.padEnd(Math.ceil(t.length/4)*4,"="),r=atob(a);return decodeURIComponent(r.split("").map(c=>"%"+c.charCodeAt(0).toString(16).padStart(2,"0")).join(""))}function pS(e){try{const t=e.split(".");if(t.length<2)return null;const a=mS(t[1]);return JSON.parse(a)}catch{return null}}function hS(e){var o,c;const t=(e||"").trim().split(/\s+/).filter(Boolean);if(!t.length)return"U";const a=((o=t[0])==null?void 0:o[0])||"",r=t.length>1&&((c=t[t.length-1])==null?void 0:c[0])||"";return(a+r).toUpperCase()}function Iy(){const e={full_name:"User",email:"-"};try{const t=localStorage.getItem(qe.user);if(t){const a=JSON.parse(t),r=((a==null?void 0:a.full_name)||"").trim(),o=((a==null?void 0:a.email)||"").trim();if(r||o)return{full_name:r||"User",email:o||"-"}}}catch{}try{const t=localStorage.getItem(qe.token)||"",a=t?pS(t):null,r=((a==null?void 0:a.name)||(a==null?void 0:a.username)||"").trim(),o=((a==null?void 0:a.email)||"").trim();if(r||o)return{full_name:r||"User",email:o||"-"}}catch{}return e}function gS(){const[e,t]=w.useState(!1),a=nl(),[r,o]=w.useState(()=>Iy());w.useEffect(()=>{const g=()=>o(Iy());g();const y=b=>{(b.key===qe.user||b.key===qe.token)&&g()};return window.addEventListener("storage",y),()=>window.removeEventListener("storage",y)},[]);const c=w.useMemo(()=>hS(r.full_name),[r.full_name]);function u(){t(g=>!g)}function m(){t(!1)}function p(){m();let g="/signin-employee";try{const y=localStorage.getItem(qe.user);if(y){const b=JSON.parse(y);(b==null?void 0:b.role)==="admin"&&(g="/login")}}catch{}us(),a(g,{replace:!0})}return f.jsxs("div",{className:"relative",children:[f.jsxs("button",{onClick:u,className:"flex items-center text-gray-700 dropdown-toggle dark:text-gray-400",type:"button",children:[f.jsx("span",{className:"mr-3 overflow-hidden rounded-full h-11 w-11 flex items-center justify-center bg-gray-100 text-gray-700 dark:bg-gray-800 dark:text-gray-200 font-semibold",children:c}),f.jsx("span",{className:"block mr-1 font-medium text-theme-sm",children:r.full_name||"User"}),f.jsx("svg",{className:`stroke-gray-500 dark:stroke-gray-400 transition-transform duration-200 ${e?"rotate-180":""}`,width:"18",height:"20",viewBox:"0 0 18 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M4.3125 8.65625L9 13.3437L13.6875 8.65625",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})})]}),f.jsxs(rS,{isOpen:e,onClose:m,className:"absolute right-0 mt-[17px] flex w-[260px] flex-col rounded-2xl border border-gray-200 bg-white p-3 shadow-theme-lg dark:border-gray-800 dark:bg-gray-dark",children:[f.jsxs("div",{className:"px-1",children:[f.jsx("span",{className:"block font-medium text-gray-700 text-theme-sm dark:text-gray-200",children:r.full_name||"User"}),f.jsx("span",{className:"mt-0.5 block text-theme-xs text-gray-500 dark:text-gray-400",children:r.email||"Email"})]}),f.jsx("ul",{className:"flex flex-col gap-1 pt-4 pb-3 border-b border-gray-200 dark:border-gray-800",children:f.jsx("li",{children:f.jsxs(iS,{onItemClick:m,tag:"a",to:"/profile",className:"flex items-center gap-3 px-3 py-2 font-medium text-gray-700 rounded-lg group text-theme-sm hover:bg-gray-100 hover:text-gray-700 dark:text-gray-300 dark:hover:bg-white/5 dark:hover:text-white",children:[f.jsx("svg",{className:"fill-gray-500 group-hover:fill-gray-700 dark:fill-gray-400 dark:group-hover:fill-gray-200",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 14.1526 4.3002 16.1184 5.61936 17.616C6.17279 15.3096 8.24852 13.5955 10.7246 13.5955H13.2746C15.7509 13.5955 17.8268 15.31 18.38 17.6167C19.6996 16.119 20.5 14.153 20.5 12C20.5 7.30558 16.6944 3.5 12 3.5ZM17.0246 18.8566V18.8455C17.0246 16.7744 15.3457 15.0955 13.2746 15.0955H10.7246C8.65354 15.0955 6.97461 16.7744 6.97461 18.8455V18.856C8.38223 19.8895 10.1198 20.5 12 20.5C13.8798 20.5 15.6171 19.8898 17.0246 18.8566ZM2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM11.9991 7.25C10.8847 7.25 9.98126 8.15342 9.98126 9.26784C9.98126 10.3823 10.8847 11.2857 11.9991 11.2857C13.1135 11.2857 14.0169 10.3823 14.0169 9.26784C14.0169 8.15342 13.1135 7.25 11.9991 7.25Z",fill:""})}),"Profile"]})})}),f.jsxs("button",{onClick:p,type:"button",className:"flex items-center gap-3 px-3 py-2 mt-3 font-medium text-gray-700 rounded-lg group text-theme-sm hover:bg-gray-100 hover:text-gray-700 dark:text-gray-300 dark:hover:bg-white/5 dark:hover:text-white",children:[f.jsx("svg",{className:"fill-gray-500 group-hover:fill-gray-700 dark:fill-gray-400 dark:group-hover:fill-gray-200",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M15.1007 19.247C14.6865 19.247 14.3507 18.9112 14.3507 18.497L14.3507 14.245H12.8507V18.497C12.8507 19.7396 13.8581 20.747 15.1007 20.747H18.5007C19.7434 20.747 20.7507 19.7396 20.7507 18.497L20.7507 5.49609C20.7507 4.25345 19.7433 3.24609 18.5007 3.24609H15.1007C13.8581 3.24609 12.8507 4.25345 12.8507 5.49609V9.74501L14.3507 9.74501V5.49609C14.3507 5.08188 14.6865 4.74609 15.1007 4.74609L18.5007 4.74609C18.9149 4.74609 19.2507 5.08188 19.2507 5.49609L19.2507 18.497C19.2507 18.9112 18.9149 19.247 18.5007 19.247H15.1007ZM3.25073 11.9984C3.25073 12.2144 3.34204 12.4091 3.48817 12.546L8.09483 17.1556C8.38763 17.4485 8.86251 17.4487 9.15549 17.1559C9.44848 16.8631 9.44863 16.3882 9.15583 16.0952L5.81116 12.7484L16.0007 12.7484C16.4149 12.7484 16.7507 12.4127 16.7507 11.9984C16.7507 11.5842 16.4149 11.2484 16.0007 11.2484L5.81528 11.2484L9.15585 7.90554C9.44864 7.61255 9.44847 7.13767 9.15547 6.84488C8.86248 6.55209 8.3876 6.55226 8.09481 6.84525L3.52309 11.4202C3.35673 11.5577 3.25073 11.7657 3.25073 11.9984Z",fill:""})}),"Sign out"]})]})]})}const yS=()=>{const[e,t]=w.useState(!1),{isMobileOpen:a,toggleSidebar:r,toggleMobileSidebar:o}=Au(),c=()=>{window.innerWidth>=1024?r():o()},u=()=>{t(!e)},m=w.useRef(null);return w.useEffect(()=>{const p=g=>{var y;(g.metaKey||g.ctrlKey)&&g.key==="k"&&(g.preventDefault(),(y=m.current)==null||y.focus())};return document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)}},[]),f.jsx("header",{className:"site-header sticky top-0 z-99999 flex w-full min-w-0 overflow-x-hidden border-gray-200 dark:border-gray-800 lg:border-b",style:{backgroundColor:"rgba(255, 255, 255, 0.05)",backdropFilter:"blur(60px) saturate(200%)",WebkitBackdropFilter:"blur(60px) saturate(200%)"},children:f.jsxs("div",{className:"flex min-w-0 grow flex-col items-center justify-between lg:flex-row lg:px-6",children:[f.jsxs("div",{className:"flex min-w-0 items-center justify-between w-full gap-2 px-3 py-3 dark:border-gray-800 sm:gap-4 lg:justify-normal lg:border-b-0 lg:px-0 lg:py-4",children:[f.jsx("button",{className:"items-center justify-center w-10 h-10 text-gray-500 border-gray-200 rounded-lg z-99999 dark:border-gray-800 lg:flex dark:text-gray-400 lg:h-11 lg:w-11 lg:border",onClick:c,"aria-label":"Toggle Sidebar",children:a?f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.21967 7.28131C5.92678 6.98841 5.92678 6.51354 6.21967 6.22065C6.51256 5.92775 6.98744 5.92775 7.28033 6.22065L11.999 10.9393L16.7176 6.22078C17.0105 5.92789 17.4854 5.92788 17.7782 6.22078C18.0711 6.51367 18.0711 6.98855 17.7782 7.28144L13.0597 12L17.7782 16.7186C18.0711 17.0115 18.0711 17.4863 17.7782 17.7792C17.4854 18.0721 17.0105 18.0721 16.7176 17.7792L11.999 13.0607L7.28033 17.7794C6.98744 18.0722 6.51256 18.0722 6.21967 17.7794C5.92678 17.4865 5.92678 17.0116 6.21967 16.7187L10.9384 12L6.21967 7.28131Z",fill:"currentColor"})}):f.jsx("svg",{width:"16",height:"12",viewBox:"0 0 16 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0.583252 1C0.583252 0.585788 0.919038 0.25 1.33325 0.25H14.6666C15.0808 0.25 15.4166 0.585786 15.4166 1C15.4166 1.41421 15.0808 1.75 14.6666 1.75L1.33325 1.75C0.919038 1.75 0.583252 1.41422 0.583252 1ZM0.583252 11C0.583252 10.5858 0.919038 10.25 1.33325 10.25L14.6666 10.25C15.0808 10.25 15.4166 10.5858 15.4166 11C15.4166 11.4142 15.0808 11.75 14.6666 11.75L1.33325 11.75C0.919038 11.75 0.583252 11.4142 0.583252 11ZM1.33325 5.25C0.919038 5.25 0.583252 5.58579 0.583252 6C0.583252 6.41421 0.919038 6.75 1.33325 6.75L7.99992 6.75C8.41413 6.75 8.74992 6.41421 8.74992 6C8.74992 5.58579 8.41413 5.25 7.99992 5.25L1.33325 5.25Z",fill:"currentColor"})})}),f.jsx(Yn,{to:"/",className:"lg:hidden",children:f.jsx("p",{className:"text-lg font-bold text-gray-800 dark:text-white",children:"Compare PKWT SJS"})}),f.jsx("button",{onClick:u,className:"flex items-center justify-center w-10 h-10 text-gray-700 rounded-lg z-99999 hover:bg-gray-100 dark:text-gray-400 dark:hover:bg-gray-800 lg:hidden",children:f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99902 10.4951C6.82745 10.4951 7.49902 11.1667 7.49902 11.9951V12.0051C7.49902 12.8335 6.82745 13.5051 5.99902 13.5051C5.1706 13.5051 4.49902 12.8335 4.49902 12.0051V11.9951C4.49902 11.1667 5.1706 10.4951 5.99902 10.4951ZM17.999 10.4951C18.8275 10.4951 19.499 11.1667 19.499 11.9951V12.0051C19.499 12.8335 18.8275 13.5051 17.999 13.5051C17.1706 13.5051 16.499 12.8335 16.499 12.0051V11.9951C16.499 11.1667 17.1706 10.4951 17.999 10.4951ZM13.499 11.9951C13.499 11.1667 12.8275 10.4951 11.999 10.4951C11.1706 10.4951 10.499 11.1667 10.499 11.9951V12.0051C10.499 12.8335 11.1706 13.5051 11.999 13.5051C12.8275 13.5051 13.499 12.8335 13.499 12.0051V11.9951Z",fill:"currentColor"})})}),f.jsx("div",{className:"hidden min-w-0 lg:block",children:f.jsx("form",{className:"w-full",children:f.jsxs("div",{className:"relative w-full max-w-[430px]",children:[f.jsx("span",{className:"absolute -translate-y-1/2 pointer-events-none left-4 top-1/2",children:f.jsx("svg",{className:"fill-gray-500 dark:fill-gray-400",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.04175 9.37363C3.04175 5.87693 5.87711 3.04199 9.37508 3.04199C12.8731 3.04199 15.7084 5.87693 15.7084 9.37363C15.7084 12.8703 12.8731 15.7053 9.37508 15.7053C5.87711 15.7053 3.04175 12.8703 3.04175 9.37363ZM9.37508 1.54199C5.04902 1.54199 1.54175 5.04817 1.54175 9.37363C1.54175 13.6991 5.04902 17.2053 9.37508 17.2053C11.2674 17.2053 13.003 16.5344 14.357 15.4176L17.177 18.238C17.4699 18.5309 17.9448 18.5309 18.2377 18.238C18.5306 17.9451 18.5306 17.4703 18.2377 17.1774L15.418 14.3573C16.5365 13.0033 17.2084 11.2669 17.2084 9.37363C17.2084 5.04817 13.7011 1.54199 9.37508 1.54199Z",fill:""})})}),f.jsx("input",{ref:m,type:"text",placeholder:"Search or type command...",className:"dark:bg-dark-900 h-11 w-full rounded-lg border border-gray-200 bg-transparent py-2.5 pl-12 pr-14 text-sm text-gray-800 shadow-theme-xs placeholder:text-gray-400 focus:border-brand-300 focus:outline-hidden focus:ring-3 focus:ring-brand-500/10 dark:border-gray-800 dark:bg-gray-900 dark:bg-white/[0.03] dark:text-white/90 dark:placeholder:text-white/30 dark:focus:border-brand-800"}),f.jsxs("button",{className:"absolute right-2.5 top-1/2 inline-flex -translate-y-1/2 items-center gap-0.5 rounded-lg border border-gray-200 bg-gray-50 px-[7px] py-[4.5px] text-xs -tracking-[0.2px] text-gray-500 dark:border-gray-800 dark:bg-white/[0.03] dark:text-gray-400",children:[f.jsx("span",{children:" ⌘ "}),f.jsx("span",{children:" K "})]})]})})})]}),f.jsxs("div",{className:`${e?"flex":"hidden"} min-w-0 items-center justify-between w-full gap-4 px-5 py-4 lg:flex shadow-theme-md lg:justify-end lg:px-0 lg:shadow-none`,children:[f.jsx("div",{className:"flex items-center gap-2 2xsm:gap-3",children:f.jsx(aS,{})}),f.jsx(gS,{})]})]})})},xS=()=>{const{isMobileOpen:e,toggleMobileSidebar:t}=Au();return e?f.jsx("div",{className:"fixed inset-0 z-40 bg-gray-900/50 lg:hidden",onClick:t}):null};/*!
* sweetalert2 v11.26.21
* Released under the MIT License.
*/function iw(e,t,a){if(typeof e=="function"?e===t:e.has(t))return arguments.length<3?t:a;throw new TypeError("Private element is not present on this object")}function bS(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Zy(e,t){return e.get(iw(e,t))}function vS(e,t,a){bS(e,t),t.set(e,a)}function wS(e,t,a){return e.set(iw(e,t),a),a}const kS=100,ge={},SS=()=>{ge.previousActiveElement instanceof HTMLElement?(ge.previousActiveElement.focus(),ge.previousActiveElement=null):document.body&&document.body.focus()},CS=e=>new Promise(t=>{if(!e)return t();const a=window.scrollX,r=window.scrollY;ge.restoreFocusTimeout=setTimeout(()=>{SS(),t()},kS),window.scrollTo(a,r)}),rw="swal2-",jS=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],$=jS.reduce((e,t)=>(e[t]=rw+t,e),{}),ES=["success","warning","info","question","error"],tu=ES.reduce((e,t)=>(e[t]=rw+t,e),{}),sw="SweetAlert2:",Xp=e=>e.charAt(0).toUpperCase()+e.slice(1),Kt=e=>{console.warn(`${sw} ${typeof e=="object"?e.join(" "):e}`)},cr=e=>{console.error(`${sw} ${e}`)},Ky=[],TS=e=>{Ky.includes(e)||(Ky.push(e),Kt(e))},ow=(e,t=null)=>{TS(`"${e}" is deprecated and will be removed in the next major release.${t?` Use "${t}" instead.`:""}`)},Nu=e=>typeof e=="function"?e():e,Wp=e=>e&&typeof e.toPromise=="function",il=e=>Wp(e)?e.toPromise():Promise.resolve(e),Qp=e=>e&&Promise.resolve(e)===e,Xt=()=>document.body.querySelector(`.${$.container}`),rl=e=>{const t=Xt();return t?t.querySelector(e):null},gn=e=>rl(`.${e}`),Ye=()=>gn($.popup),vs=()=>gn($.icon),AS=()=>gn($["icon-content"]),lw=()=>gn($.title),Jp=()=>gn($["html-container"]),cw=()=>gn($.image),eh=()=>gn($["progress-steps"]),Mu=()=>gn($["validation-message"]),ua=()=>rl(`.${$.actions} .${$.confirm}`),ws=()=>rl(`.${$.actions} .${$.cancel}`),ur=()=>rl(`.${$.actions} .${$.deny}`),NS=()=>gn($["input-label"]),ks=()=>rl(`.${$.loader}`),sl=()=>gn($.actions),uw=()=>gn($.footer),Ru=()=>gn($["timer-progress-bar"]),th=()=>gn($.close),MS=`
  a[href],
  area[href],
  input:not([disabled]),
  select:not([disabled]),
  textarea:not([disabled]),
  button:not([disabled]),
  iframe,
  object,
  embed,
  [tabindex="0"],
  [contenteditable],
  audio[controls],
  video[controls],
  summary
`,nh=()=>{const e=Ye();if(!e)return[];const t=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),a=Array.from(t).sort((c,u)=>{const m=parseInt(c.getAttribute("tabindex")||"0"),p=parseInt(u.getAttribute("tabindex")||"0");return m>p?1:m<p?-1:0}),r=e.querySelectorAll(MS),o=Array.from(r).filter(c=>c.getAttribute("tabindex")!=="-1");return[...new Set(a.concat(o))].filter(c=>nn(c))},ah=()=>Pa(document.body,$.shown)&&!Pa(document.body,$["toast-shown"])&&!Pa(document.body,$["no-backdrop"]),Du=()=>{const e=Ye();return e?Pa(e,$.toast):!1},RS=()=>{const e=Ye();return e?e.hasAttribute("data-loading"):!1},yn=(e,t)=>{if(e.textContent="",t){const r=new DOMParser().parseFromString(t,"text/html"),o=r.querySelector("head");o&&Array.from(o.childNodes).forEach(u=>{e.appendChild(u)});const c=r.querySelector("body");c&&Array.from(c.childNodes).forEach(u=>{u instanceof HTMLVideoElement||u instanceof HTMLAudioElement?e.appendChild(u.cloneNode(!0)):e.appendChild(u)})}},Pa=(e,t)=>{if(!t)return!1;const a=t.split(/\s+/);for(let r=0;r<a.length;r++)if(!e.classList.contains(a[r]))return!1;return!0},DS=(e,t)=>{Array.from(e.classList).forEach(a=>{!Object.values($).includes(a)&&!Object.values(tu).includes(a)&&!Object.values(t.showClass||{}).includes(a)&&e.classList.remove(a)})},mn=(e,t,a)=>{if(DS(e,t),!t.customClass)return;const r=t.customClass[a];if(r){if(typeof r!="string"&&!r.forEach){Kt(`Invalid type of customClass.${a}! Expected string or iterable object, got "${typeof r}"`);return}Fe(e,r)}},Ou=(e,t)=>{if(!t)return null;switch(t){case"select":case"textarea":case"file":return e.querySelector(`.${$.popup} > .${$[t]}`);case"checkbox":return e.querySelector(`.${$.popup} > .${$.checkbox} input`);case"radio":return e.querySelector(`.${$.popup} > .${$.radio} input:checked`)||e.querySelector(`.${$.popup} > .${$.radio} input:first-child`);case"range":return e.querySelector(`.${$.popup} > .${$.range} input`);default:return e.querySelector(`.${$.popup} > .${$.input}`)}},dw=e=>{if(e.focus(),e.type!=="file"){const t=e.value;e.value="",e.value=t}},fw=(e,t,a)=>{!e||!t||(typeof t=="string"&&(t=t.split(/\s+/).filter(Boolean)),t.forEach(r=>{Array.isArray(e)?e.forEach(o=>{a?o.classList.add(r):o.classList.remove(r)}):a?e.classList.add(r):e.classList.remove(r)}))},Fe=(e,t)=>{fw(e,t,!0)},Ln=(e,t)=>{fw(e,t,!1)},gi=(e,t)=>{const a=Array.from(e.children);for(let r=0;r<a.length;r++){const o=a[r];if(o instanceof HTMLElement&&Pa(o,t))return o}},ar=(e,t,a)=>{a===`${parseInt(`${a}`)}`&&(a=parseInt(a)),a||parseInt(`${a}`)===0?e.style.setProperty(t,typeof a=="number"?`${a}px`:a):e.style.removeProperty(t)},Mt=(e,t="flex")=>{e&&(e.style.display=t)},$t=e=>{e&&(e.style.display="none")},ih=(e,t="block")=>{e&&new MutationObserver(()=>{ol(e,e.innerHTML,t)}).observe(e,{childList:!0,subtree:!0})},Xy=(e,t,a,r)=>{const o=e.querySelector(t);o&&o.style.setProperty(a,r)},ol=(e,t,a="flex")=>{t?Mt(e,a):$t(e)},nn=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),OS=()=>!nn(ua())&&!nn(ur())&&!nn(ws()),Im=e=>e.scrollHeight>e.clientHeight,_S=(e,t)=>{let a=e;for(;a&&a!==t;){if(Im(a))return!0;a=a.parentElement}return!1},mw=e=>{const t=window.getComputedStyle(e),a=parseFloat(t.getPropertyValue("animation-duration")||"0"),r=parseFloat(t.getPropertyValue("transition-duration")||"0");return a>0||r>0},rh=(e,t=!1)=>{const a=Ru();a&&nn(a)&&(t&&(a.style.transition="none",a.style.width="100%"),setTimeout(()=>{a.style.transition=`width ${e/1e3}s linear`,a.style.width="0%"},10))},LS=()=>{const e=Ru();if(!e)return;const t=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const a=parseInt(window.getComputedStyle(e).width),r=t/a*100;e.style.width=`${r}%`},BS=()=>typeof window>"u"||typeof document>"u",zS=`
 <div aria-labelledby="${$.title}" aria-describedby="${$["html-container"]}" class="${$.popup}" tabindex="-1">
   <button type="button" class="${$.close}"></button>
   <ul class="${$["progress-steps"]}"></ul>
   <div class="${$.icon}"></div>
   <img class="${$.image}" />
   <h2 class="${$.title}" id="${$.title}"></h2>
   <div class="${$["html-container"]}" id="${$["html-container"]}"></div>
   <input class="${$.input}" id="${$.input}" />
   <input type="file" class="${$.file}" />
   <div class="${$.range}">
     <input type="range" />
     <output></output>
   </div>
   <select class="${$.select}" id="${$.select}"></select>
   <div class="${$.radio}"></div>
   <label class="${$.checkbox}">
     <input type="checkbox" id="${$.checkbox}" />
     <span class="${$.label}"></span>
   </label>
   <textarea class="${$.textarea}" id="${$.textarea}"></textarea>
   <div class="${$["validation-message"]}" id="${$["validation-message"]}"></div>
   <div class="${$.actions}">
     <div class="${$.loader}"></div>
     <button type="button" class="${$.confirm}"></button>
     <button type="button" class="${$.deny}"></button>
     <button type="button" class="${$.cancel}"></button>
   </div>
   <div class="${$.footer}"></div>
   <div class="${$["timer-progress-bar-container"]}">
     <div class="${$["timer-progress-bar"]}"></div>
   </div>
 </div>
`.replace(/(^|\n)\s*/g,""),PS=()=>{const e=Xt();return e?(e.remove(),Ln([document.documentElement,document.body],[$["no-backdrop"],$["toast-shown"],$["has-column"]]),!0):!1},Gi=()=>{ge.currentInstance&&ge.currentInstance.resetValidationMessage()},VS=()=>{const e=Ye();if(!e)return;const t=gi(e,$.input),a=gi(e,$.file),r=e.querySelector(`.${$.range} input`),o=e.querySelector(`.${$.range} output`),c=gi(e,$.select),u=e.querySelector(`.${$.checkbox} input`),m=gi(e,$.textarea);t&&(t.oninput=Gi),a&&(a.onchange=Gi),c&&(c.onchange=Gi),u&&(u.onchange=Gi),m&&(m.oninput=Gi),r&&o&&(r.oninput=()=>{Gi(),o.value=r.value},r.onchange=()=>{Gi(),o.value=r.value})},US=e=>{if(typeof e=="string"){const t=document.querySelector(e);if(!t)throw new Error(`Target element "${e}" not found`);return t}return e},HS=e=>{const t=Ye();t&&(t.setAttribute("role",e.toast?"alert":"dialog"),t.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||t.setAttribute("aria-modal","true"))},qS=e=>{window.getComputedStyle(e).direction==="rtl"&&(Fe(Xt(),$.rtl),ge.isRTL=!0)},FS=e=>{const t=PS();if(BS()){cr("SweetAlert2 requires document to initialize");return}const a=document.createElement("div");a.className=$.container,t&&Fe(a,$["no-transition"]),yn(a,zS),a.dataset.swal2Theme=e.theme;const r=US(e.target||"body");r.appendChild(a),e.topLayer&&(a.setAttribute("popover",""),a.showPopover()),HS(e),qS(r),VS()},sh=(e,t)=>{e instanceof HTMLElement?t.appendChild(e):typeof e=="object"?$S(e,t):e&&yn(t,e)},$S=(e,t)=>{"jquery"in e?YS(t,e):yn(t,e.toString())},YS=(e,t)=>{if(e.textContent="",0 in t)for(let a=0;a in t;a++)e.appendChild(t[a].cloneNode(!0));else e.appendChild(t.cloneNode(!0))},GS=(e,t)=>{const a=sl(),r=ks();!a||!r||(!t.showConfirmButton&&!t.showDenyButton&&!t.showCancelButton?$t(a):Mt(a),mn(a,t,"actions"),IS(a,r,t),yn(r,t.loaderHtml||""),mn(r,t,"loader"))};function IS(e,t,a){const r=ua(),o=ur(),c=ws();!r||!o||!c||(sm(r,"confirm",a),sm(o,"deny",a),sm(c,"cancel",a),ZS(r,o,c,a),a.reverseButtons&&(a.toast?(e.insertBefore(c,r),e.insertBefore(o,r)):(e.insertBefore(c,t),e.insertBefore(o,t),e.insertBefore(r,t))))}function ZS(e,t,a,r){if(!r.buttonsStyling){Ln([e,t,a],$.styled);return}Fe([e,t,a],$.styled),r.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",r.confirmButtonColor),r.denyButtonColor&&t.style.setProperty("--swal2-deny-button-background-color",r.denyButtonColor),r.cancelButtonColor&&a.style.setProperty("--swal2-cancel-button-background-color",r.cancelButtonColor),rm(e),rm(t),rm(a)}function rm(e){const t=window.getComputedStyle(e);if(t.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const a=t.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-focus-box-shadow",t.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${a}`))}function sm(e,t,a){const r=Xp(t);ol(e,a[`show${r}Button`],"inline-block"),yn(e,a[`${t}ButtonText`]||""),e.setAttribute("aria-label",a[`${t}ButtonAriaLabel`]||""),e.className=$[t],mn(e,a,`${t}Button`)}const KS=(e,t)=>{const a=th();a&&(yn(a,t.closeButtonHtml||""),mn(a,t,"closeButton"),ol(a,t.showCloseButton),a.setAttribute("aria-label",t.closeButtonAriaLabel||""))},XS=(e,t)=>{const a=Xt();a&&(WS(a,t.backdrop),QS(a,t.position),JS(a,t.grow),mn(a,t,"container"))};function WS(e,t){typeof t=="string"?e.style.background=t:t||Fe([document.documentElement,document.body],$["no-backdrop"])}function QS(e,t){t&&(t in $?Fe(e,$[t]):(Kt('The "position" parameter is not valid, defaulting to "center"'),Fe(e,$.center)))}function JS(e,t){t&&Fe(e,$[`grow-${t}`])}var $e={innerParams:new WeakMap,domCache:new WeakMap,focusedElement:new WeakMap};const eC=["input","file","range","select","radio","checkbox","textarea"],tC=(e,t)=>{const a=Ye();if(!a)return;const r=$e.innerParams.get(e),o=!r||t.input!==r.input;eC.forEach(c=>{const u=gi(a,$[c]);u&&(iC(c,t.inputAttributes),u.className=$[c],o&&$t(u))}),t.input&&(o&&nC(t),rC(t))},nC=e=>{if(!e.input)return;if(!mt[e.input]){cr(`Unexpected type of input! Expected ${Object.keys(mt).join(" | ")}, got "${e.input}"`);return}const t=pw(e.input);if(!t)return;const a=mt[e.input](t,e);Mt(t),e.inputAutoFocus&&setTimeout(()=>{dw(a)})},aC=e=>{for(let t=0;t<e.attributes.length;t++){const a=e.attributes[t].name;["id","type","value","style"].includes(a)||e.removeAttribute(a)}},iC=(e,t)=>{const a=Ye();if(!a)return;const r=Ou(a,e);if(r){aC(r);for(const o in t)r.setAttribute(o,t[o])}},rC=e=>{if(!e.input)return;const t=pw(e.input);t&&mn(t,e,"input")},oh=(e,t)=>{!e.placeholder&&t.inputPlaceholder&&(e.placeholder=t.inputPlaceholder)},ll=(e,t,a)=>{if(a.inputLabel){const r=document.createElement("label"),o=$["input-label"];r.setAttribute("for",e.id),r.className=o,typeof a.customClass=="object"&&Fe(r,a.customClass.inputLabel),r.innerText=a.inputLabel,t.insertAdjacentElement("beforebegin",r)}},pw=e=>{const t=Ye();if(t)return gi(t,$[e]||$.input)},nu=(e,t)=>{["string","number"].includes(typeof t)?e.value=`${t}`:Qp(t)||Kt(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof t}"`)},mt={};mt.text=mt.email=mt.password=mt.number=mt.tel=mt.url=mt.search=mt.date=mt["datetime-local"]=mt.time=mt.week=mt.month=(e,t)=>{const a=e;return nu(a,t.inputValue),ll(a,a,t),oh(a,t),a.type=t.input,a};mt.file=(e,t)=>{const a=e;return ll(a,a,t),oh(a,t),a};mt.range=(e,t)=>{const a=e,r=a.querySelector("input"),o=a.querySelector("output");return r&&(nu(r,t.inputValue),r.type=t.input,ll(r,e,t)),o&&nu(o,t.inputValue),e};mt.select=(e,t)=>{const a=e;if(a.textContent="",t.inputPlaceholder){const r=document.createElement("option");yn(r,t.inputPlaceholder),r.value="",r.disabled=!0,r.selected=!0,a.appendChild(r)}return ll(a,a,t),a};mt.radio=e=>{const t=e;return t.textContent="",e};mt.checkbox=(e,t)=>{const a=Ye();if(!a)throw new Error("Popup not found");const r=Ou(a,"checkbox");if(!r)throw new Error("Checkbox input not found");r.value="1",r.checked=!!t.inputValue;const c=e.querySelector("span");if(c){const u=t.inputPlaceholder||t.inputLabel;u&&yn(c,u)}return r};mt.textarea=(e,t)=>{const a=e;nu(a,t.inputValue),oh(a,t),ll(a,a,t);const r=o=>parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const o=Ye();if(!o)return;const c=parseInt(window.getComputedStyle(o).width),u=()=>{if(!document.body.contains(a))return;const m=a.offsetWidth+r(a),p=Ye();p&&(m>c?p.style.width=`${m}px`:ar(p,"width",t.width))};new MutationObserver(u).observe(a,{attributes:!0,attributeFilter:["style"]})}}),a};const sC=(e,t)=>{const a=Jp();a&&(ih(a),mn(a,t,"htmlContainer"),t.html?(sh(t.html,a),Mt(a,"block")):t.text?(a.textContent=t.text,Mt(a,"block")):$t(a),tC(e,t))},oC=(e,t)=>{const a=uw();a&&(ih(a),ol(a,!!t.footer,"block"),t.footer&&sh(t.footer,a),mn(a,t,"footer"))},lC=(e,t)=>{const a=$e.innerParams.get(e),r=vs();if(!r)return;if(a&&t.icon===a.icon){Qy(r,t),Wy(r,t);return}if(!t.icon&&!t.iconHtml){$t(r);return}if(t.icon&&Object.keys(tu).indexOf(t.icon)===-1){cr(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${t.icon}"`),$t(r);return}Mt(r),Qy(r,t),Wy(r,t),Fe(r,t.showClass&&t.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",hw)},Wy=(e,t)=>{for(const[a,r]of Object.entries(tu))t.icon!==a&&Ln(e,r);Fe(e,t.icon&&tu[t.icon]),dC(e,t),hw(),mn(e,t,"icon")},hw=()=>{const e=Ye();if(!e)return;const t=window.getComputedStyle(e).getPropertyValue("background-color"),a=e.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let r=0;r<a.length;r++)a[r].style.backgroundColor=t},cC=e=>`
  ${e.animation?'<div class="swal2-success-circular-line-left"></div>':""}
  <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>
  <div class="swal2-success-ring"></div>
  ${e.animation?'<div class="swal2-success-fix"></div>':""}
  ${e.animation?'<div class="swal2-success-circular-line-right"></div>':""}
`,uC=`
  <span class="swal2-x-mark">
    <span class="swal2-x-mark-line-left"></span>
    <span class="swal2-x-mark-line-right"></span>
  </span>
`,Qy=(e,t)=>{if(!t.icon&&!t.iconHtml)return;let a=e.innerHTML,r="";t.iconHtml?r=Jy(t.iconHtml):t.icon==="success"?(r=cC(t),a=a.replace(/ style=".*?"/g,"")):t.icon==="error"?r=uC:t.icon&&(r=Jy({question:"?",warning:"!",info:"i"}[t.icon])),a.trim()!==r.trim()&&yn(e,r)},dC=(e,t)=>{if(t.iconColor){e.style.color=t.iconColor,e.style.borderColor=t.iconColor;for(const a of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])Xy(e,a,"background-color",t.iconColor);Xy(e,".swal2-success-ring","border-color",t.iconColor)}},Jy=e=>`<div class="${$["icon-content"]}">${e}</div>`,fC=(e,t)=>{const a=cw();if(a){if(!t.imageUrl){$t(a);return}Mt(a,""),a.setAttribute("src",t.imageUrl),a.setAttribute("alt",t.imageAlt||""),ar(a,"width",t.imageWidth),ar(a,"height",t.imageHeight),a.className=$.image,mn(a,t,"image")}};let lh=!1,gw=0,yw=0,xw=0,bw=0;const mC=e=>{e.addEventListener("mousedown",au),document.body.addEventListener("mousemove",iu),e.addEventListener("mouseup",ru),e.addEventListener("touchstart",au),document.body.addEventListener("touchmove",iu),e.addEventListener("touchend",ru)},pC=e=>{e.removeEventListener("mousedown",au),document.body.removeEventListener("mousemove",iu),e.removeEventListener("mouseup",ru),e.removeEventListener("touchstart",au),document.body.removeEventListener("touchmove",iu),e.removeEventListener("touchend",ru)},au=e=>{const t=Ye();if(!t)return;const a=vs();if(e.target===t||a&&a.contains(e.target)){lh=!0;const r=vw(e);gw=r.clientX,yw=r.clientY,xw=parseInt(t.style.insetInlineStart)||0,bw=parseInt(t.style.insetBlockStart)||0,Fe(t,"swal2-dragging")}},iu=e=>{const t=Ye();if(t&&lh){let{clientX:a,clientY:r}=vw(e);const o=a-gw;t.style.insetInlineStart=`${xw+(ge.isRTL?-o:o)}px`,t.style.insetBlockStart=`${bw+(r-yw)}px`}},ru=()=>{const e=Ye();lh=!1,Ln(e,"swal2-dragging")},vw=e=>{let t=0,a=0;return e.type.startsWith("mouse")?(t=e.clientX,a=e.clientY):e.type.startsWith("touch")&&(t=e.touches[0].clientX,a=e.touches[0].clientY),{clientX:t,clientY:a}},hC=(e,t)=>{const a=Xt(),r=Ye();if(!(!a||!r)){if(t.toast){ar(a,"width",t.width),r.style.width="100%";const o=ks();o&&r.insertBefore(o,vs())}else ar(r,"width",t.width);ar(r,"padding",t.padding),t.color&&(r.style.color=t.color),t.background&&(r.style.background=t.background),$t(Mu()),gC(r,t),t.draggable&&!t.toast?(Fe(r,$.draggable),mC(r)):(Ln(r,$.draggable),pC(r))}},gC=(e,t)=>{const a=t.showClass||{};e.className=`${$.popup} ${nn(e)?a.popup:""}`,t.toast?(Fe([document.documentElement,document.body],$["toast-shown"]),Fe(e,$.toast)):Fe(e,$.modal),mn(e,t,"popup"),typeof t.customClass=="string"&&Fe(e,t.customClass),t.icon&&Fe(e,$[`icon-${t.icon}`])},yC=(e,t)=>{const a=eh();if(!a)return;const{progressSteps:r,currentProgressStep:o}=t;if(!r||r.length===0||o===void 0){$t(a);return}Mt(a),a.textContent="",o>=r.length&&Kt("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((c,u)=>{const m=xC(c);if(a.appendChild(m),u===o&&Fe(m,$["active-progress-step"]),u!==r.length-1){const p=bC(t);a.appendChild(p)}})},xC=e=>{const t=document.createElement("li");return Fe(t,$["progress-step"]),yn(t,e),t},bC=e=>{const t=document.createElement("li");return Fe(t,$["progress-step-line"]),e.progressStepsDistance&&ar(t,"width",e.progressStepsDistance),t},vC=(e,t)=>{const a=lw();a&&(ih(a),ol(a,!!(t.title||t.titleText),"block"),t.title&&sh(t.title,a),t.titleText&&(a.innerText=t.titleText),mn(a,t,"title"))},ww=(e,t)=>{var a;hC(e,t),XS(e,t),yC(e,t),lC(e,t),fC(e,t),vC(e,t),KS(e,t),sC(e,t),GS(e,t),oC(e,t);const r=Ye();typeof t.didRender=="function"&&r&&t.didRender(r),(a=ge.eventEmitter)===null||a===void 0||a.emit("didRender",r)},wC=()=>nn(Ye()),kw=()=>{var e;return(e=ua())===null||e===void 0?void 0:e.click()},kC=()=>{var e;return(e=ur())===null||e===void 0?void 0:e.click()},SC=()=>{var e;return(e=ws())===null||e===void 0?void 0:e.click()},Ss=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Sw=e=>{if(e.keydownTarget&&e.keydownHandlerAdded&&e.keydownHandler){const t=e.keydownHandler;e.keydownTarget.removeEventListener("keydown",t,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1}},CC=(e,t,a)=>{if(Sw(e),!t.toast){const r=c=>EC(t,c,a);e.keydownHandler=r;const o=t.keydownListenerCapture?window:Ye();if(o){e.keydownTarget=o,e.keydownListenerCapture=t.keydownListenerCapture;const c=r;e.keydownTarget.addEventListener("keydown",c,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0}}},Zm=(e,t)=>{var a;const r=nh();if(r.length){e=e+t,e===-2&&(e=r.length-1),e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();return}(a=Ye())===null||a===void 0||a.focus()},Cw=["ArrowRight","ArrowDown"],jC=["ArrowLeft","ArrowUp"],EC=(e,t,a)=>{e&&(t.isComposing||t.keyCode===229||(e.stopKeydownPropagation&&t.stopPropagation(),t.key==="Enter"?TC(t,e):t.key==="Tab"?AC(t):[...Cw,...jC].includes(t.key)?NC(t.key):t.key==="Escape"&&MC(t,e,a)))},TC=(e,t)=>{if(!Nu(t.allowEnterKey))return;const a=Ye();if(!a||!t.input)return;const r=Ou(a,t.input);if(e.target&&r&&e.target instanceof HTMLElement&&e.target.outerHTML===r.outerHTML){if(["textarea","file"].includes(t.input))return;kw(),e.preventDefault()}},AC=e=>{const t=e.target,a=nh();let r=-1;for(let o=0;o<a.length;o++)if(t===a[o]){r=o;break}e.shiftKey?Zm(r,-1):Zm(r,1),e.stopPropagation(),e.preventDefault()},NC=e=>{const t=sl(),a=ua(),r=ur(),o=ws();if(!t||!a||!r||!o)return;const c=[a,r,o];if(document.activeElement instanceof HTMLElement&&!c.includes(document.activeElement))return;const u=Cw.includes(e)?"nextElementSibling":"previousElementSibling";let m=document.activeElement;if(m){for(let p=0;p<t.children.length;p++){if(m=m[u],!m)return;if(m instanceof HTMLButtonElement&&nn(m))break}m instanceof HTMLButtonElement&&m.focus()}},MC=(e,t,a)=>{e.preventDefault(),Nu(t.allowEscapeKey)&&a(Ss.esc)};var ds={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const RC=()=>{const e=Xt();Array.from(document.body.children).forEach(a=>{a.contains(e)||(a.hasAttribute("aria-hidden")&&a.setAttribute("data-previous-aria-hidden",a.getAttribute("aria-hidden")||""),a.setAttribute("aria-hidden","true"))})},jw=()=>{Array.from(document.body.children).forEach(t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})},Ew=typeof window<"u"&&!!window.GestureEvent,DC=()=>{if(Ew&&!Pa(document.body,$.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,Fe(document.body,$.iosfix),OC()}},OC=()=>{const e=Xt();if(!e)return;let t;e.ontouchstart=a=>{t=_C(a)},e.ontouchmove=a=>{t&&(a.preventDefault(),a.stopPropagation())}},_C=e=>{const t=e.target,a=Xt(),r=Jp();return!a||!r||LC(e)||BC(e)?!1:t===a||!Im(a)&&t instanceof HTMLElement&&!_S(t,r)&&t.tagName!=="INPUT"&&t.tagName!=="TEXTAREA"&&!(Im(r)&&r.contains(t))},LC=e=>!!(e.touches&&e.touches.length&&e.touches[0].touchType==="stylus"),BC=e=>e.touches&&e.touches.length>1,zC=()=>{if(Pa(document.body,$.iosfix)){const e=parseInt(document.body.style.top,10);Ln(document.body,$.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},PC=()=>{const e=document.createElement("div");e.className=$["scrollbar-measure"],document.body.appendChild(e);const t=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),t};let is=null;const VC=e=>{is===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(is=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${is+PC()}px`)},UC=()=>{is!==null&&(document.body.style.paddingRight=`${is}px`,is=null)};function Tw(e,t,a,r){Du()?ex(e,r):(CS(a).then(()=>ex(e,r)),Sw(ge)),Ew?(t.setAttribute("style","display:none !important"),t.removeAttribute("class"),t.innerHTML=""):t.remove(),ah()&&(UC(),zC(),jw()),HC()}function HC(){Ln([document.documentElement,document.body],[$.shown,$["height-auto"],$["no-backdrop"],$["toast-shown"]])}function yi(e){e=FC(e);const t=ds.swalPromiseResolve.get(this),a=qC(this);this.isAwaitingPromise?e.isDismissed||(cl(this),t(e)):a&&t(e)}const qC=e=>{const t=Ye();if(!t)return!1;const a=$e.innerParams.get(e);if(!a||Pa(t,a.hideClass.popup))return!1;Ln(t,a.showClass.popup),Fe(t,a.hideClass.popup);const r=Xt();return Ln(r,a.showClass.backdrop),Fe(r,a.hideClass.backdrop),$C(e,t,a),!0};function Aw(e){const t=ds.swalPromiseReject.get(this);cl(this),t&&t(e)}const cl=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,$e.innerParams.get(e)||e._destroy())},FC=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),$C=(e,t,a)=>{var r;const o=Xt(),c=mw(t);typeof a.willClose=="function"&&a.willClose(t),(r=ge.eventEmitter)===null||r===void 0||r.emit("willClose",t),c&&o?YC(e,t,o,!!a.returnFocus,a.didClose):o&&Tw(e,o,!!a.returnFocus,a.didClose)},YC=(e,t,a,r,o)=>{ge.swalCloseEventFinishedCallback=Tw.bind(null,e,a,r,o);const c=function(u){if(u.target===t){var m;(m=ge.swalCloseEventFinishedCallback)===null||m===void 0||m.call(ge),delete ge.swalCloseEventFinishedCallback,t.removeEventListener("animationend",c),t.removeEventListener("transitionend",c)}};t.addEventListener("animationend",c),t.addEventListener("transitionend",c)},ex=(e,t)=>{setTimeout(()=>{var a;typeof t=="function"&&t.bind(e.params)(),(a=ge.eventEmitter)===null||a===void 0||a.emit("didClose"),e._destroy&&e._destroy()})},fs=e=>{let t=Ye();if(t||new be,t=Ye(),!t)return;const a=ks();Du()?$t(vs()):GC(t,e),Mt(a),t.setAttribute("data-loading","true"),t.setAttribute("aria-busy","true"),t.focus()},GC=(e,t)=>{const a=sl(),r=ks();!a||!r||(!t&&nn(ua())&&(t=ua()),Mt(a),t&&($t(t),r.setAttribute("data-button-to-replace",t.className),a.insertBefore(r,t)),Fe([e,a],$.loading))},IC=(e,t)=>{t.input==="select"||t.input==="radio"?QC(e,t):["text","email","number","tel","textarea"].some(a=>a===t.input)&&(Wp(t.inputValue)||Qp(t.inputValue))&&(fs(ua()),JC(e,t))},ZC=(e,t)=>{const a=e.getInput();if(!a)return null;switch(t.input){case"checkbox":return KC(a);case"radio":return XC(a);case"file":return WC(a);default:return t.inputAutoTrim?a.value.trim():a.value}},KC=e=>e.checked?1:0,XC=e=>e.checked?e.value:null,WC=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,QC=(e,t)=>{const a=Ye();if(!a)return;const r=o=>{t.input==="select"?e8(a,su(o),t):t.input==="radio"&&t8(a,su(o),t)};Wp(t.inputOptions)||Qp(t.inputOptions)?(fs(ua()),il(t.inputOptions).then(o=>{e.hideLoading(),r(o)})):typeof t.inputOptions=="object"?r(t.inputOptions):cr(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof t.inputOptions}`)},JC=(e,t)=>{const a=e.getInput();a&&($t(a),il(t.inputValue).then(r=>{a.value=t.input==="number"?`${parseFloat(r)||0}`:`${r}`,Mt(a),a.focus(),e.hideLoading()}).catch(r=>{cr(`Error in inputValue promise: ${r}`),a.value="",Mt(a),a.focus(),e.hideLoading()}))};function e8(e,t,a){const r=gi(e,$.select);if(!r)return;const o=(c,u,m)=>{const p=document.createElement("option");p.value=m,yn(p,u),p.selected=Nw(m,a.inputValue),c.appendChild(p)};t.forEach(c=>{const u=c[0],m=c[1];if(Array.isArray(m)){const p=document.createElement("optgroup");p.label=u,p.disabled=!1,r.appendChild(p),m.forEach(g=>o(p,g[1],g[0]))}else o(r,m,u)}),r.focus()}function t8(e,t,a){const r=gi(e,$.radio);if(!r)return;t.forEach(c=>{const u=c[0],m=c[1],p=document.createElement("input"),g=document.createElement("label");p.type="radio",p.name=$.radio,p.value=u,Nw(u,a.inputValue)&&(p.checked=!0);const y=document.createElement("span");yn(y,m),y.className=$.label,g.appendChild(p),g.appendChild(y),r.appendChild(g)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}const su=e=>{const t=[];return e instanceof Map?e.forEach((a,r)=>{let o=a;typeof o=="object"&&(o=su(o)),t.push([r,o])}):Object.keys(e).forEach(a=>{let r=e[a];typeof r=="object"&&(r=su(r)),t.push([a,r])}),t},Nw=(e,t)=>!!t&&t!==null&&t!==void 0&&t.toString()===e.toString(),n8=e=>{const t=$e.innerParams.get(e);e.disableButtons(),t.input?Mw(e,"confirm"):uh(e,!0)},a8=e=>{const t=$e.innerParams.get(e);e.disableButtons(),t.returnInputValueOnDeny?Mw(e,"deny"):ch(e,!1)},i8=(e,t)=>{e.disableButtons(),t(Ss.cancel)},Mw=(e,t)=>{const a=$e.innerParams.get(e);if(!a.input){cr(`The "input" parameter is needed to be set when using returnInputValueOn${Xp(t)}`);return}const r=e.getInput(),o=ZC(e,a);a.inputValidator?r8(e,o,t):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(a.validationMessage||r.validationMessage)):t==="deny"?ch(e,o):uh(e,o)},r8=(e,t,a)=>{const r=$e.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>il(r.inputValidator(t,r.validationMessage))).then(c=>{e.enableButtons(),e.enableInput(),c?e.showValidationMessage(c):a==="deny"?ch(e,t):uh(e,t)})},ch=(e,t)=>{const a=$e.innerParams.get(e);a.showLoaderOnDeny&&fs(ur()),a.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>il(a.preDeny(t,a.validationMessage))).then(o=>{o===!1?(e.hideLoading(),cl(e)):e.close({isDenied:!0,value:typeof o>"u"?t:o})}).catch(o=>Rw(e,o))):e.close({isDenied:!0,value:t})},tx=(e,t)=>{e.close({isConfirmed:!0,value:t})},Rw=(e,t)=>{e.rejectPromise(t)},uh=(e,t)=>{const a=$e.innerParams.get(e);a.showLoaderOnConfirm&&fs(),a.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>il(a.preConfirm(t,a.validationMessage))).then(o=>{nn(Mu())||o===!1?(e.hideLoading(),cl(e)):tx(e,typeof o>"u"?t:o)}).catch(o=>Rw(e,o))):tx(e,t)};function ou(){const e=$e.innerParams.get(this);if(!e)return;const t=$e.domCache.get(this);$t(t.loader),Du()?e.icon&&Mt(vs()):s8(t),Ln([t.popup,t.actions],$.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.denyButton.disabled=!1,t.cancelButton.disabled=!1;const a=$e.focusedElement.get(this);a instanceof HTMLElement&&document.activeElement===document.body&&a.focus(),$e.focusedElement.delete(this)}const s8=e=>{const t=e.loader.getAttribute("data-button-to-replace"),a=t?e.popup.getElementsByClassName(t):[];a.length?Mt(a[0],"inline-block"):OS()&&$t(e.actions)};function Dw(){const e=$e.innerParams.get(this),t=$e.domCache.get(this);return t?Ou(t.popup,e.input):null}function Ow(e,t,a){const r=$e.domCache.get(e);t.forEach(o=>{r[o].disabled=a})}function _w(e,t){const a=Ye();if(!(!a||!e))if(e.type==="radio"){const r=a.querySelectorAll(`[name="${$.radio}"]`);for(let o=0;o<r.length;o++)r[o].disabled=t}else e.disabled=t}function Lw(){Ow(this,["confirmButton","denyButton","cancelButton"],!1);const e=$e.focusedElement.get(this);e instanceof HTMLElement&&document.activeElement===document.body&&e.focus(),$e.focusedElement.delete(this)}function Bw(){$e.focusedElement.set(this,document.activeElement),Ow(this,["confirmButton","denyButton","cancelButton"],!0)}function zw(){_w(this.getInput(),!1)}function Pw(){_w(this.getInput(),!0)}function Vw(e){const t=$e.domCache.get(this),a=$e.innerParams.get(this);yn(t.validationMessage,e),t.validationMessage.className=$["validation-message"],a.customClass&&a.customClass.validationMessage&&Fe(t.validationMessage,a.customClass.validationMessage),Mt(t.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",$["validation-message"]),dw(r),Fe(r,$.inputerror))}function Uw(){const e=$e.domCache.get(this);e.validationMessage&&$t(e.validationMessage);const t=this.getInput();t&&(t.removeAttribute("aria-invalid"),t.removeAttribute("aria-describedby"),Ln(t,$.inputerror))}const xi={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"&times;",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},o8=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],l8={allowEnterKey:void 0},c8=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Hw=e=>Object.prototype.hasOwnProperty.call(xi,e),qw=e=>o8.indexOf(e)!==-1,Fw=e=>l8[e],u8=e=>{Hw(e)||Kt(`Unknown parameter "${e}"`)},d8=e=>{c8.includes(e)&&Kt(`The parameter "${e}" is incompatible with toasts`)},f8=e=>{const t=Fw(e);t&&ow(e,t)},$w=e=>{e.backdrop===!1&&e.allowOutsideClick&&Kt('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(e.theme)&&Kt(`Invalid theme "${e.theme}"`);for(const t in e)u8(t),e.toast&&d8(t),f8(t)};function Yw(e){const t=Xt(),a=Ye(),r=$e.innerParams.get(this);if(!a||Pa(a,r.hideClass.popup)){Kt("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const o=m8(e),c=Object.assign({},r,o);$w(c),t&&(t.dataset.swal2Theme=c.theme),ww(this,c),$e.innerParams.set(this,c),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const m8=e=>{const t={};return Object.keys(e).forEach(a=>{if(qw(a)){const r=e;t[a]=r[a]}else Kt(`Invalid parameter to update: ${a}`)}),t};function Gw(){var e;const t=$e.domCache.get(this),a=$e.innerParams.get(this);if(!a){Iw(this);return}t.popup&&ge.swalCloseEventFinishedCallback&&(ge.swalCloseEventFinishedCallback(),delete ge.swalCloseEventFinishedCallback),typeof a.didDestroy=="function"&&a.didDestroy(),(e=ge.eventEmitter)===null||e===void 0||e.emit("didDestroy"),p8(this)}const p8=e=>{Iw(e),delete e.params,delete ge.keydownHandler,delete ge.keydownTarget,delete ge.currentInstance},Iw=e=>{e.isAwaitingPromise?(om($e,e),e.isAwaitingPromise=!0):(om(ds,e),om($e,e),delete e.isAwaitingPromise,delete e.disableButtons,delete e.enableButtons,delete e.getInput,delete e.disableInput,delete e.enableInput,delete e.hideLoading,delete e.disableLoading,delete e.showValidationMessage,delete e.resetValidationMessage,delete e.close,delete e.closePopup,delete e.closeModal,delete e.closeToast,delete e.rejectPromise,delete e.update,delete e._destroy)},om=(e,t)=>{for(const a in e)e[a].delete(t)};var h8=Object.freeze({__proto__:null,_destroy:Gw,close:yi,closeModal:yi,closePopup:yi,closeToast:yi,disableButtons:Bw,disableInput:Pw,disableLoading:ou,enableButtons:Lw,enableInput:zw,getInput:Dw,handleAwaitingPromise:cl,hideLoading:ou,rejectPromise:Aw,resetValidationMessage:Uw,showValidationMessage:Vw,update:Yw});const g8=(e,t,a)=>{e.toast?y8(e,t,a):(b8(t),v8(t),w8(e,t,a))},y8=(e,t,a)=>{t.popup.onclick=()=>{e&&(x8(e)||e.timer||e.input)||a(Ss.close)}},x8=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let lu=!1;const b8=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(t){e.container.onmouseup=()=>{},t.target===e.container&&(lu=!0)}}},v8=e=>{e.container.onmousedown=t=>{t.target===e.container&&t.preventDefault(),e.popup.onmouseup=function(a){e.popup.onmouseup=()=>{},(a.target===e.popup||a.target instanceof HTMLElement&&e.popup.contains(a.target))&&(lu=!0)}}},w8=(e,t,a)=>{t.container.onclick=r=>{if(lu){lu=!1;return}r.target===t.container&&Nu(e.allowOutsideClick)&&a(Ss.backdrop)}},k8=e=>typeof e=="object"&&e!==null&&"jquery"in e,nx=e=>e instanceof Element||k8(e),S8=e=>{const t={};return typeof e[0]=="object"&&!nx(e[0])?Object.assign(t,e[0]):["title","html","icon"].forEach((a,r)=>{const o=e[r];typeof o=="string"||nx(o)?t[a]=o:o!==void 0&&cr(`Unexpected type of ${a}! Expected "string" or "Element", got ${typeof o}`)}),t};function C8(...e){return new this(...e)}function j8(e){class t extends this{_main(r,o){return super._main(r,Object.assign({},e,o))}}return t}const E8=()=>ge.timeout&&ge.timeout.getTimerLeft(),Zw=()=>{if(ge.timeout)return LS(),ge.timeout.stop()},Kw=()=>{if(ge.timeout){const e=ge.timeout.start();return rh(e),e}},T8=()=>{const e=ge.timeout;return e&&(e.running?Zw():Kw())},A8=e=>{if(ge.timeout){const t=ge.timeout.increase(e);return rh(t,!0),t}},N8=()=>!!(ge.timeout&&ge.timeout.isRunning());let ax=!1;const Km={};function M8(e="data-swal-template"){Km[e]=this,ax||(document.body.addEventListener("click",R8),ax=!0)}const R8=e=>{for(let t=e.target;t&&t!==document;t=t.parentNode)for(const a in Km){const r=t.getAttribute&&t.getAttribute(a);if(r){Km[a].fire({template:r});return}}};class D8{constructor(){this.events={}}_getHandlersByEventName(t){return typeof this.events[t]>"u"&&(this.events[t]=[]),this.events[t]}on(t,a){const r=this._getHandlersByEventName(t);r.includes(a)||r.push(a)}once(t,a){const r=(...o)=>{this.removeListener(t,r),a.apply(this,o)};this.on(t,r)}emit(t,...a){this._getHandlersByEventName(t).forEach(r=>{try{r.apply(this,a)}catch(o){console.error(o)}})}removeListener(t,a){const r=this._getHandlersByEventName(t),o=r.indexOf(a);o>-1&&r.splice(o,1)}removeAllListeners(t){this.events[t]!==void 0&&(this.events[t].length=0)}reset(){this.events={}}}ge.eventEmitter=new D8;const O8=(e,t)=>{ge.eventEmitter&&ge.eventEmitter.on(e,t)},_8=(e,t)=>{ge.eventEmitter&&ge.eventEmitter.once(e,t)},L8=(e,t)=>{if(ge.eventEmitter){if(!e){ge.eventEmitter.reset();return}t?ge.eventEmitter.removeListener(e,t):ge.eventEmitter.removeAllListeners(e)}};var B8=Object.freeze({__proto__:null,argsToParams:S8,bindClickHandler:M8,clickCancel:SC,clickConfirm:kw,clickDeny:kC,enableLoading:fs,fire:C8,getActions:sl,getCancelButton:ws,getCloseButton:th,getConfirmButton:ua,getContainer:Xt,getDenyButton:ur,getFocusableElements:nh,getFooter:uw,getHtmlContainer:Jp,getIcon:vs,getIconContent:AS,getImage:cw,getInputLabel:NS,getLoader:ks,getPopup:Ye,getProgressSteps:eh,getTimerLeft:E8,getTimerProgressBar:Ru,getTitle:lw,getValidationMessage:Mu,increaseTimer:A8,isDeprecatedParameter:Fw,isLoading:RS,isTimerRunning:N8,isUpdatableParameter:qw,isValidParameter:Hw,isVisible:wC,mixin:j8,off:L8,on:O8,once:_8,resumeTimer:Kw,showLoading:fs,stopTimer:Zw,toggleTimer:T8});class z8{constructor(t,a){this.callback=t,this.remaining=a,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(t){const a=this.running;return a&&this.stop(),this.remaining+=t,a&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Xw=["swal-title","swal-html","swal-footer"],P8=e=>{const t=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!t)return{};const a=t.content;return G8(a),Object.assign(V8(a),U8(a),H8(a),q8(a),F8(a),$8(a),Y8(a,Xw))},V8=e=>{const t={};return Array.from(e.querySelectorAll("swal-param")).forEach(r=>{or(r,["name","value"]);const o=r.getAttribute("name"),c=r.getAttribute("value");!o||!c||(o in xi&&typeof xi[o]=="boolean"?t[o]=c!=="false":o in xi&&typeof xi[o]=="object"?t[o]=JSON.parse(c):t[o]=c)}),t},U8=e=>{const t={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(r=>{const o=r.getAttribute("name"),c=r.getAttribute("value");!o||!c||(t[o]=new Function(`return ${c}`)())}),t},H8=e=>{const t={};return Array.from(e.querySelectorAll("swal-button")).forEach(r=>{or(r,["type","color","aria-label"]);const o=r.getAttribute("type");if(!(!o||!["confirm","cancel","deny"].includes(o))){if(t[`${o}ButtonText`]=r.innerHTML,t[`show${Xp(o)}Button`]=!0,r.hasAttribute("color")){const c=r.getAttribute("color");c!==null&&(t[`${o}ButtonColor`]=c)}if(r.hasAttribute("aria-label")){const c=r.getAttribute("aria-label");c!==null&&(t[`${o}ButtonAriaLabel`]=c)}}}),t},q8=e=>{const t={},a=e.querySelector("swal-image");return a&&(or(a,["src","width","height","alt"]),a.hasAttribute("src")&&(t.imageUrl=a.getAttribute("src")||void 0),a.hasAttribute("width")&&(t.imageWidth=a.getAttribute("width")||void 0),a.hasAttribute("height")&&(t.imageHeight=a.getAttribute("height")||void 0),a.hasAttribute("alt")&&(t.imageAlt=a.getAttribute("alt")||void 0)),t},F8=e=>{const t={},a=e.querySelector("swal-icon");return a&&(or(a,["type","color"]),a.hasAttribute("type")&&(t.icon=a.getAttribute("type")),a.hasAttribute("color")&&(t.iconColor=a.getAttribute("color")),t.iconHtml=a.innerHTML),t},$8=e=>{const t={},a=e.querySelector("swal-input");a&&(or(a,["type","label","placeholder","value"]),t.input=a.getAttribute("type")||"text",a.hasAttribute("label")&&(t.inputLabel=a.getAttribute("label")),a.hasAttribute("placeholder")&&(t.inputPlaceholder=a.getAttribute("placeholder")),a.hasAttribute("value")&&(t.inputValue=a.getAttribute("value")));const r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(t.inputOptions={},r.forEach(o=>{or(o,["value"]);const c=o.getAttribute("value");if(!c)return;const u=o.innerHTML;t.inputOptions[c]=u})),t},Y8=(e,t)=>{const a={};for(const r in t){const o=t[r],c=e.querySelector(o);c&&(or(c,[]),a[o.replace(/^swal-/,"")]=c.innerHTML.trim())}return a},G8=e=>{const t=Xw.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(e.children).forEach(a=>{const r=a.tagName.toLowerCase();t.includes(r)||Kt(`Unrecognized element <${r}>`)})},or=(e,t)=>{Array.from(e.attributes).forEach(a=>{t.indexOf(a.name)===-1&&Kt([`Unrecognized attribute "${a.name}" on <${e.tagName.toLowerCase()}>.`,`${t.length?`Allowed attributes are: ${t.join(", ")}`:"To set the value, use HTML within the element."}`])})},Ww=10,I8=e=>{var t,a;const r=Xt(),o=Ye();if(!r||!o)return;typeof e.willOpen=="function"&&e.willOpen(o),(t=ge.eventEmitter)===null||t===void 0||t.emit("willOpen",o);const u=window.getComputedStyle(document.body).overflowY;if(X8(r,o,e),setTimeout(()=>{Z8(r,o)},Ww),ah()&&(K8(r,e.scrollbarPadding!==void 0?e.scrollbarPadding:!1,u),RC()),!Du()&&!ge.previousActiveElement&&(ge.previousActiveElement=document.activeElement),typeof e.didOpen=="function"){const m=e.didOpen;setTimeout(()=>m(o))}(a=ge.eventEmitter)===null||a===void 0||a.emit("didOpen",o)},cu=e=>{const t=Ye();if(!t||e.target!==t)return;const a=Xt();a&&(t.removeEventListener("animationend",cu),t.removeEventListener("transitionend",cu),a.style.overflowY="auto",Ln(a,$["no-transition"]))},Z8=(e,t)=>{mw(t)?(e.style.overflowY="hidden",t.addEventListener("animationend",cu),t.addEventListener("transitionend",cu)):e.style.overflowY="auto"},K8=(e,t,a)=>{DC(),t&&a!=="hidden"&&VC(a),setTimeout(()=>{e.scrollTop=0})},X8=(e,t,a)=>{var r;(r=a.showClass)!==null&&r!==void 0&&r.backdrop&&Fe(e,a.showClass.backdrop),a.animation?(t.style.setProperty("opacity","0","important"),Mt(t,"grid"),setTimeout(()=>{var o;(o=a.showClass)!==null&&o!==void 0&&o.popup&&Fe(t,a.showClass.popup),t.style.removeProperty("opacity")},Ww)):Mt(t,"grid"),Fe([document.documentElement,document.body],$.shown),a.heightAuto&&a.backdrop&&!a.toast&&Fe([document.documentElement,document.body],$["height-auto"])};var ix={email:(e,t)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid email address"),url:(e,t)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(t||"Invalid URL")};function W8(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=ix.email),e.input==="url"&&(e.inputValidator=ix.url))}function Q8(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(Kt('Target parameter is not valid, defaulting to "body"'),e.target="body")}function J8(e){W8(e),e.showLoaderOnConfirm&&!e.preConfirm&&Kt(`showLoaderOnConfirm is set to true, but preConfirm is not defined.
showLoaderOnConfirm should be used together with preConfirm, see usage example:
https://sweetalert2.github.io/#ajax-request`),Q8(e),typeof e.title=="string"&&(e.title=e.title.split(`
`).join("<br />")),FS(e)}let ia;var Mc=new WeakMap;class pt{constructor(...t){if(vS(this,Mc,Promise.resolve({isConfirmed:!1,isDenied:!1,isDismissed:!0})),typeof window>"u")return;ia=this;const a=Object.freeze(this.constructor.argsToParams(t));this.params=a,this.isAwaitingPromise=!1,wS(Mc,this,this._main(ia.params))}_main(t,a={}){if($w(Object.assign({},a,t)),ge.currentInstance){const c=ds.swalPromiseResolve.get(ge.currentInstance),{isAwaitingPromise:u}=ge.currentInstance;ge.currentInstance._destroy(),u||c({isDismissed:!0}),ah()&&jw()}ge.currentInstance=ia;const r=t6(t,a);J8(r),Object.freeze(r),ge.timeout&&(ge.timeout.stop(),delete ge.timeout),clearTimeout(ge.restoreFocusTimeout);const o=n6(ia);return ww(ia,r),$e.innerParams.set(ia,r),e6(ia,o,r)}then(t){return Zy(Mc,this).then(t)}finally(t){return Zy(Mc,this).finally(t)}}const e6=(e,t,a)=>new Promise((r,o)=>{const c=u=>{e.close({isDismissed:!0,dismiss:u,isConfirmed:!1,isDenied:!1})};ds.swalPromiseResolve.set(e,r),ds.swalPromiseReject.set(e,o),t.confirmButton.onclick=()=>{n8(e)},t.denyButton.onclick=()=>{a8(e)},t.cancelButton.onclick=()=>{i8(e,c)},t.closeButton.onclick=()=>{c(Ss.close)},g8(a,t,c),CC(ge,a,c),IC(e,a),I8(a),a6(ge,a,c),i6(t,a),setTimeout(()=>{t.container.scrollTop=0})}),t6=(e,t)=>{const a=P8(e),r=Object.assign({},xi,t,a,e);return r.showClass=Object.assign({},xi.showClass,r.showClass),r.hideClass=Object.assign({},xi.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},n6=e=>{const t={popup:Ye(),container:Xt(),actions:sl(),confirmButton:ua(),denyButton:ur(),cancelButton:ws(),loader:ks(),closeButton:th(),validationMessage:Mu(),progressSteps:eh()};return $e.domCache.set(e,t),t},a6=(e,t,a)=>{const r=Ru();$t(r),t.timer&&(e.timeout=new z8(()=>{a("timer"),delete e.timeout},t.timer),t.timerProgressBar&&r&&(Mt(r),mn(r,t,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&rh(t.timer)})))},i6=(e,t)=>{if(!t.toast){if(!Nu(t.allowEnterKey)){ow("allowEnterKey","preConfirm: () => false"),e.popup.focus();return}r6(e)||s6(e,t)||Zm(-1,1)}},r6=e=>{const t=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const a of t)if(a instanceof HTMLElement&&nn(a))return a.focus(),!0;return!1},s6=(e,t)=>t.focusDeny&&nn(e.denyButton)?(e.denyButton.focus(),!0):t.focusCancel&&nn(e.cancelButton)?(e.cancelButton.focus(),!0):t.focusConfirm&&nn(e.confirmButton)?(e.confirmButton.focus(),!0):!1;pt.prototype.disableButtons=Bw;pt.prototype.enableButtons=Lw;pt.prototype.getInput=Dw;pt.prototype.disableInput=Pw;pt.prototype.enableInput=zw;pt.prototype.hideLoading=ou;pt.prototype.disableLoading=ou;pt.prototype.showValidationMessage=Vw;pt.prototype.resetValidationMessage=Uw;pt.prototype.close=yi;pt.prototype.closePopup=yi;pt.prototype.closeModal=yi;pt.prototype.closeToast=yi;pt.prototype.rejectPromise=Aw;pt.prototype.update=Yw;pt.prototype._destroy=Gw;Object.assign(pt,B8);Object.keys(h8).forEach(e=>{pt[e]=function(...t){if(ia&&ia[e])return ia[e](...t)}});pt.DismissReason=Ss;pt.version="11.26.21";const be=pt;be.default=be;typeof document<"u"&&function(e,t){var a=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(a),a.styleSheet)a.styleSheet.disabled||(a.styleSheet.cssText=t);else try{a.innerHTML=t}catch{a.innerText=t}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.15s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border: 1px solid #d9d9d9;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-input-hover-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-focus-border: 1px solid #b4dbed;--swal2-input-focus-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-footer-border-color: #eee;--swal2-footer-background: transparent;--swal2-footer-color: inherit;--swal2-timer-progress-bar-background: rgba(0, 0, 0, 0.3);--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-actions-justify-content: center;--swal2-actions-width: auto;--swal2-actions-margin: 1.25em auto 0;--swal2-actions-padding: 0;--swal2-actions-border-radius: 0;--swal2-actions-background: transparent;--swal2-action-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-action-button-hover: black 10%;--swal2-action-button-active: black 10%;--swal2-confirm-button-box-shadow: none;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-box-shadow: none;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-box-shadow: none;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white);--swal2-timer-progress-bar-background: rgba(255, 255, 255, 0.7)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start     top            top-end" "center-start  center         center-end" "bottom-start  bottom-center  bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;overflow-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:var(--swal2-actions-justify-content);width:var(--swal2-actions-width);margin:var(--swal2-actions-margin);padding:var(--swal2-actions-padding);border-radius:var(--swal2-actions-border-radius);background:var(--swal2-actions-background)}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-action-button-transition);border:none;box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);box-shadow:var(--swal2-confirm-button-box-shadow);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);box-shadow:var(--swal2-deny-button-box-shadow);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);box-shadow:var(--swal2-cancel-button-box-shadow);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-hover))}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), var(--swal2-action-button-active))}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);background:var(--swal2-footer-background);color:var(--swal2-footer-color);font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:var(--swal2-timer-progress-bar-background)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;overflow-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:var(--swal2-input-border);border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):hover,div:where(.swal2-container) input:where(.swal2-file):hover,div:where(.swal2-container) textarea:where(.swal2-textarea):hover{box-shadow:var(--swal2-input-hover-box-shadow)}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:var(--swal2-input-focus-border);outline:none;box-shadow:var(--swal2-input-focus-box-shadow)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}100%{transform:translate3d(0, 0, 0) scale(1);opacity:1}}@keyframes swal2-hide{0%{transform:translate3d(0, 0, 0) scale(1);opacity:1}100%{transform:translate3d(0, -50px, 0) scale(0.9);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');const o6=e=>w.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},w.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 3.25C4.25736 3.25 3.25 4.25736 3.25 5.5V8.99998C3.25 10.2426 4.25736 11.25 5.5 11.25H9C10.2426 11.25 11.25 10.2426 11.25 8.99998V5.5C11.25 4.25736 10.2426 3.25 9 3.25H5.5ZM4.75 5.5C4.75 5.08579 5.08579 4.75 5.5 4.75H9C9.41421 4.75 9.75 5.08579 9.75 5.5V8.99998C9.75 9.41419 9.41421 9.74998 9 9.74998H5.5C5.08579 9.74998 4.75 9.41419 4.75 8.99998V5.5ZM5.5 12.75C4.25736 12.75 3.25 13.7574 3.25 15V18.5C3.25 19.7426 4.25736 20.75 5.5 20.75H9C10.2426 20.75 11.25 19.7427 11.25 18.5V15C11.25 13.7574 10.2426 12.75 9 12.75H5.5ZM4.75 15C4.75 14.5858 5.08579 14.25 5.5 14.25H9C9.41421 14.25 9.75 14.5858 9.75 15V18.5C9.75 18.9142 9.41421 19.25 9 19.25H5.5C5.08579 19.25 4.75 18.9142 4.75 18.5V15ZM12.75 5.5C12.75 4.25736 13.7574 3.25 15 3.25H18.5C19.7426 3.25 20.75 4.25736 20.75 5.5V8.99998C20.75 10.2426 19.7426 11.25 18.5 11.25H15C13.7574 11.25 12.75 10.2426 12.75 8.99998V5.5ZM15 4.75C14.5858 4.75 14.25 5.08579 14.25 5.5V8.99998C14.25 9.41419 14.5858 9.74998 15 9.74998H18.5C18.9142 9.74998 19.25 9.41419 19.25 8.99998V5.5C19.25 5.08579 18.9142 4.75 18.5 4.75H15ZM15 12.75C13.7574 12.75 12.75 13.7574 12.75 15V18.5C12.75 19.7426 13.7574 20.75 15 20.75H18.5C19.7426 20.75 20.75 19.7427 20.75 18.5V15C20.75 13.7574 19.7426 12.75 18.5 12.75H15ZM14.25 15C14.25 14.5858 14.5858 14.25 15 14.25H18.5C18.9142 14.25 19.25 14.5858 19.25 15V18.5C19.25 18.9142 18.9142 19.25 18.5 19.25H15C14.5858 19.25 14.25 18.9142 14.25 18.5V15Z",fill:"currentColor"})),l6=e=>w.createElement("svg",{className:"fill-current",width:"1em",height:"1em",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},w.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M19.8335 19.75C19.8335 20.9926 18.8261 22 17.5835 22H7.0835C5.84086 22 4.8335 20.9926 4.8335 19.75V9.62105C4.8335 9.02455 5.07036 8.45247 5.49201 8.03055L10.8597 2.65951C11.2817 2.23725 11.8542 2 12.4512 2H17.5835C18.8261 2 19.8335 3.00736 19.8335 4.25V19.75ZM17.5835 20.5C17.9977 20.5 18.3335 20.1642 18.3335 19.75V4.25C18.3335 3.83579 17.9977 3.5 17.5835 3.5H12.5815L12.5844 7.49913C12.5853 8.7424 11.5776 9.75073 10.3344 9.75073H6.3335V19.75C6.3335 20.1642 6.66928 20.5 7.0835 20.5H17.5835ZM7.39262 8.25073L11.0823 4.55876L11.0844 7.5002C11.0847 7.91462 10.7488 8.25073 10.3344 8.25073H7.39262ZM8.5835 14.5C8.5835 14.0858 8.91928 13.75 9.3335 13.75H15.3335C15.7477 13.75 16.0835 14.0858 16.0835 14.5C16.0835 14.9142 15.7477 15.25 15.3335 15.25H9.3335C8.91928 15.25 8.5835 14.9142 8.5835 14.5ZM8.5835 17.5C8.5835 17.0858 8.91928 16.75 9.3335 16.75H12.3335C12.7477 16.75 13.0835 17.0858 13.0835 17.5C13.0835 17.9142 12.7477 18.25 12.3335 18.25H9.3335C8.91928 18.25 8.5835 17.9142 8.5835 17.5Z",fill:"currentColor"})),c6=e=>w.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},w.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.54142 3.7915C6.54142 2.54886 7.54878 1.5415 8.79142 1.5415H11.2081C12.4507 1.5415 13.4581 2.54886 13.4581 3.7915V4.0415H15.6252H16.666C17.0802 4.0415 17.416 4.37729 17.416 4.7915C17.416 5.20572 17.0802 5.5415 16.666 5.5415H16.3752V8.24638V13.2464V16.2082C16.3752 17.4508 15.3678 18.4582 14.1252 18.4582H5.87516C4.63252 18.4582 3.62516 17.4508 3.62516 16.2082V13.2464V8.24638V5.5415H3.3335C2.91928 5.5415 2.5835 5.20572 2.5835 4.7915C2.5835 4.37729 2.91928 4.0415 3.3335 4.0415H4.37516H6.54142V3.7915ZM14.8752 13.2464V8.24638V5.5415H13.4581H12.7081H7.29142H6.54142H5.12516V8.24638V13.2464V16.2082C5.12516 16.6224 5.46095 16.9582 5.87516 16.9582H14.1252C14.5394 16.9582 14.8752 16.6224 14.8752 16.2082V13.2464ZM8.04142 4.0415H11.9581V3.7915C11.9581 3.37729 11.6223 3.0415 11.2081 3.0415H8.79142C8.37721 3.0415 8.04142 3.37729 8.04142 3.7915V4.0415ZM8.3335 7.99984C8.74771 7.99984 9.0835 8.33562 9.0835 8.74984V13.7498C9.0835 14.1641 8.74771 14.4998 8.3335 14.4998C7.91928 14.4998 7.5835 14.1641 7.5835 13.7498V8.74984C7.5835 8.33562 7.91928 7.99984 8.3335 7.99984ZM12.4168 8.74984C12.4168 8.33562 12.081 7.99984 11.6668 7.99984C11.2526 7.99984 10.9168 8.33562 10.9168 8.74984V13.7498C10.9168 14.1641 11.2526 14.4998 11.6668 14.4998C12.081 14.4998 12.4168 14.1641 12.4168 13.7498V8.74984Z",fill:"currentColor"})),u6=e=>w.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 21 21",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},w.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17.0911 3.53206C16.2124 2.65338 14.7878 2.65338 13.9091 3.53206L5.6074 11.8337C5.29899 12.1421 5.08687 12.5335 4.99684 12.9603L4.26177 16.445C4.20943 16.6931 4.286 16.9508 4.46529 17.1301C4.64458 17.3094 4.90232 17.3859 5.15042 17.3336L8.63507 16.5985C9.06184 16.5085 9.45324 16.2964 9.76165 15.988L18.0633 7.68631C18.942 6.80763 18.942 5.38301 18.0633 4.50433L17.0911 3.53206ZM14.9697 4.59272C15.2626 4.29982 15.7375 4.29982 16.0304 4.59272L17.0027 5.56499C17.2956 5.85788 17.2956 6.33276 17.0027 6.62565L16.1043 7.52402L14.0714 5.49109L14.9697 4.59272ZM13.0107 6.55175L6.66806 12.8944C6.56526 12.9972 6.49455 13.1277 6.46454 13.2699L5.96704 15.6283L8.32547 15.1308C8.46772 15.1008 8.59819 15.0301 8.70099 14.9273L15.0436 8.58468L13.0107 6.55175Z",fill:"currentColor"})),d6=e=>w.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},w.createElement("path",{d:"M4.79175 7.396L10.0001 12.6043L15.2084 7.396",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round"})),f6=e=>w.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},w.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0002 13.8619C7.23361 13.8619 4.86803 12.1372 3.92328 9.70241C4.86804 7.26761 7.23361 5.54297 10.0002 5.54297C12.7667 5.54297 15.1323 7.26762 16.0771 9.70243C15.1323 12.1372 12.7667 13.8619 10.0002 13.8619ZM10.0002 4.04297C6.48191 4.04297 3.49489 6.30917 2.4155 9.4593C2.3615 9.61687 2.3615 9.78794 2.41549 9.94552C3.49488 13.0957 6.48191 15.3619 10.0002 15.3619C13.5184 15.3619 16.5055 13.0957 17.5849 9.94555C17.6389 9.78797 17.6389 9.6169 17.5849 9.45932C16.5055 6.30919 13.5184 4.04297 10.0002 4.04297ZM9.99151 7.84413C8.96527 7.84413 8.13333 8.67606 8.13333 9.70231C8.13333 10.7286 8.96527 11.5605 9.99151 11.5605H10.0064C11.0326 11.5605 11.8646 10.7286 11.8646 9.70231C11.8646 8.67606 11.0326 7.84413 10.0064 7.84413H9.99151Z"})),m6=e=>w.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},w.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M4.63803 3.57709C4.34513 3.2842 3.87026 3.2842 3.57737 3.57709C3.28447 3.86999 3.28447 4.34486 3.57737 4.63775L4.85323 5.91362C3.74609 6.84199 2.89363 8.06395 2.4155 9.45936C2.3615 9.61694 2.3615 9.78801 2.41549 9.94558C3.49488 13.0957 6.48191 15.3619 10.0002 15.3619C11.255 15.3619 12.4422 15.0737 13.4994 14.5598L15.3625 16.4229C15.6554 16.7158 16.1302 16.7158 16.4231 16.4229C16.716 16.13 16.716 15.6551 16.4231 15.3622L4.63803 3.57709ZM12.3608 13.4212L10.4475 11.5079C10.3061 11.5423 10.1584 11.5606 10.0064 11.5606H9.99151C8.96527 11.5606 8.13333 10.7286 8.13333 9.70237C8.13333 9.5461 8.15262 9.39434 8.18895 9.24933L5.91885 6.97923C5.03505 7.69015 4.34057 8.62704 3.92328 9.70247C4.86803 12.1373 7.23361 13.8619 10.0002 13.8619C10.8326 13.8619 11.6287 13.7058 12.3608 13.4212ZM16.0771 9.70249C15.7843 10.4569 15.3552 11.1432 14.8199 11.7311L15.8813 12.7925C16.6329 11.9813 17.2187 11.0143 17.5849 9.94561C17.6389 9.78803 17.6389 9.61696 17.5849 9.45938C16.5055 6.30925 13.5184 4.04303 10.0002 4.04303C9.13525 4.04303 8.30244 4.17999 7.52218 4.43338L8.75139 5.66259C9.1556 5.58413 9.57311 5.54303 10.0002 5.54303C12.7667 5.54303 15.1323 7.26768 16.0771 9.70249Z"})),Qw=e=>w.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},w.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3.5C7.30558 3.5 3.5 7.30558 3.5 12C3.5 14.1526 4.3002 16.1184 5.61936 17.616C6.17279 15.3096 8.24852 13.5955 10.7246 13.5955H13.2746C15.7509 13.5955 17.8268 15.31 18.38 17.6167C19.6996 16.119 20.5 14.153 20.5 12C20.5 7.30558 16.6944 3.5 12 3.5ZM17.0246 18.8566V18.8455C17.0246 16.7744 15.3457 15.0955 13.2746 15.0955H10.7246C8.65354 15.0955 6.97461 16.7744 6.97461 18.8455V18.856C8.38223 19.8895 10.1198 20.5 12 20.5C13.8798 20.5 15.6171 19.8898 17.0246 18.8566ZM2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12ZM11.9991 7.25C10.8847 7.25 9.98126 8.15342 9.98126 9.26784C9.98126 10.3823 10.8847 11.2857 11.9991 11.2857C13.1135 11.2857 14.0169 10.3823 14.0169 9.26784C14.0169 8.15342 13.1135 7.25 11.9991 7.25ZM8.48126 9.26784C8.48126 7.32499 10.0563 5.75 11.9991 5.75C13.9419 5.75 15.5169 7.32499 15.5169 9.26784C15.5169 11.2107 13.9419 12.7857 11.9991 12.7857C10.0563 12.7857 8.48126 11.2107 8.48126 9.26784Z",fill:"currentColor"})),p6=e=>w.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},w.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.5 3.25C4.25736 3.25 3.25 4.25736 3.25 5.5V18.5C3.25 19.7426 4.25736 20.75 5.5 20.75H18.5001C19.7427 20.75 20.7501 19.7426 20.7501 18.5V5.5C20.7501 4.25736 19.7427 3.25 18.5001 3.25H5.5ZM4.75 5.5C4.75 5.08579 5.08579 4.75 5.5 4.75H18.5001C18.9143 4.75 19.2501 5.08579 19.2501 5.5V18.5C19.2501 18.9142 18.9143 19.25 18.5001 19.25H5.5C5.08579 19.25 4.75 18.9142 4.75 18.5V5.5ZM6.25005 9.7143C6.25005 9.30008 6.58583 8.9643 7.00005 8.9643L17 8.96429C17.4143 8.96429 17.75 9.30008 17.75 9.71429C17.75 10.1285 17.4143 10.4643 17 10.4643L7.00005 10.4643C6.58583 10.4643 6.25005 10.1285 6.25005 9.7143ZM6.25005 14.2857C6.25005 13.8715 6.58583 13.5357 7.00005 13.5357H17C17.4143 13.5357 17.75 13.8715 17.75 14.2857C17.75 14.6999 17.4143 15.0357 17 15.0357H7.00005C6.58583 15.0357 6.25005 14.6999 6.25005 14.2857Z",fill:"currentColor"})),h6=e=>w.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",...e},w.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.99915 10.2451C6.96564 10.2451 7.74915 11.0286 7.74915 11.9951V12.0051C7.74915 12.9716 6.96564 13.7551 5.99915 13.7551C5.03265 13.7551 4.24915 12.9716 4.24915 12.0051V11.9951C4.24915 11.0286 5.03265 10.2451 5.99915 10.2451ZM17.9991 10.2451C18.9656 10.2451 19.7491 11.0286 19.7491 11.9951V12.0051C19.7491 12.9716 18.9656 13.7551 17.9991 13.7551C17.0326 13.7551 16.2491 12.9716 16.2491 12.0051V11.9951C16.2491 11.0286 17.0326 10.2451 17.9991 10.2451ZM13.7491 11.9951C13.7491 11.0286 12.9656 10.2451 11.9991 10.2451C11.0326 10.2451 10.2491 11.0286 10.2491 11.9951V12.0051C10.2491 12.9716 11.0326 13.7551 11.9991 13.7551C12.9656 13.7551 13.7491 12.9716 13.7491 12.0051V11.9951Z",fill:"currentColor"}));function g6(){const[e,t]=w.useState(null),a=new Date().getFullYear(),r="https://compare-pkwt-sjs.com";return w.useEffect(()=>{var o;try{const c=window.localStorage.getItem(qe.user);c&&t((o=JSON.parse(c))==null?void 0:o.role)}catch{}},[]),f.jsxs("div",{className:`
        mx-auto mb-10 w-full mt-5 max-w-60 rounded-2xl bg-gray-50 px-4 py-5 text-center dark:bg-white/[0.03]
      `,children:[f.jsx("h3",{className:"mb-2 font-semibold text-gray-900 dark:text-white",children:"Compare PKWT SJS"}),f.jsx("p",{className:"mb-4 text-gray-500 text-theme-sm dark:text-gray-400",children:"Portal pembanding data perpanjangan kontrak PKWT secara otomatis dan akurat."}),e==="superadmin"&&f.jsx("a",{href:r,target:"_blank",rel:"nofollow noreferrer",className:"flex items-center justify-center rounded-lg bg-brand-500 p-3 font-medium text-white text-theme-sm hover:bg-brand-600",children:"Visit Website"}),f.jsxs("p",{className:"mt-3 text-xs text-gray-400 dark:text-gray-500",children:["© ",a," PT. Sinar Jernih Suksesindo"]})]})}/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Jw=(...e)=>e.filter((t,a,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===a).join(" ").trim();/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y6=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x6=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,a,r)=>r?r.toUpperCase():a.toLowerCase());/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rx=e=>{const t=x6(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var b6={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v6=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w6=w.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:r,className:o="",children:c,iconNode:u,...m},p)=>w.createElement("svg",{ref:p,...b6,width:t,height:t,stroke:e,strokeWidth:r?Number(a)*24/Number(t):a,className:Jw("lucide",o),...!c&&!v6(m)&&{"aria-hidden":"true"},...m},[...u.map(([g,y])=>w.createElement(g,y)),...Array.isArray(c)?c:[c]]));/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const De=(e,t)=>{const a=w.forwardRef(({className:r,...o},c)=>w.createElement(w6,{ref:c,iconNode:t,className:Jw(`lucide-${y6(rx(e))}`,`lucide-${e}`,r),...o}));return a.displayName=rx(e),a};/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const k6=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],S6=De("activity",k6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const C6=[["rect",{width:"20",height:"5",x:"2",y:"3",rx:"1",key:"1wp1u1"}],["path",{d:"M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8",key:"1s80jp"}],["path",{d:"M10 12h4",key:"a56b0p"}]],j6=De("archive",C6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const E6=[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]],e2=De("arrow-down",E6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const T6=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],A6=De("arrow-right",T6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const N6=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],t2=De("arrow-up-down",N6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const M6=[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]],n2=De("arrow-up",M6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const R6=[["path",{d:"M10 12h4",key:"a56b0p"}],["path",{d:"M10 8h4",key:"1sr2af"}],["path",{d:"M14 21v-3a2 2 0 0 0-4 0v3",key:"1rgiei"}],["path",{d:"M6 10H4a2 2 0 0 0-2 2v7a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V9a2 2 0 0 0-2-2h-2",key:"secmi2"}],["path",{d:"M6 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16",key:"16ra0t"}]],sx=De("building-2",R6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const D6=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],O6=De("check",D6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _6=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],L6=De("chevron-down",_6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const B6=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],a2=De("chevron-left",B6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const z6=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],i2=De("chevron-right",z6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const P6=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],$o=De("circle-check",P6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const V6=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],U6=De("circle-play",V6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const H6=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],ox=De("circle-x",H6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const q6=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],F6=De("clock",q6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const $6=[["path",{d:"M12 13v8",key:"1l5pq0"}],["path",{d:"M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242",key:"1pljnt"}],["path",{d:"m8 17 4-4 4 4",key:"1quai1"}]],Yo=De("cloud-upload",$6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Y6=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],r2=De("database",Y6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const G6=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],uu=De("download",G6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const I6=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],lx=De("eye",I6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Z6=[["path",{d:"M13.659 22H18a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v11.5",key:"4pqfef"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 12v-1",key:"1ej8lb"}],["path",{d:"M8 18v-2",key:"qcmpov"}],["path",{d:"M8 7V6",key:"1nbb54"}],["circle",{cx:"8",cy:"20",r:"2",key:"ckkr5m"}]],K6=De("file-archive",Z6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const X6=[["path",{d:"M10.5 22H6a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v6",key:"g5mvt7"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m14 20 2 2 4-4",key:"15kota"}]],W6=De("file-check-corner",X6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Q6=[["path",{d:"M16 22h2a2 2 0 0 0 2-2V8a2.4 2.4 0 0 0-.706-1.706l-3.588-3.588A2.4 2.4 0 0 0 14 2H6a2 2 0 0 0-2 2v2.85",key:"ryk6xj"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 14v2.2l1.6 1",key:"6m4bie"}],["circle",{cx:"8",cy:"16",r:"6",key:"10v15b"}]],s2=De("file-clock",Q6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const J6=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]],cx=De("file-question-mark",J6);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ej=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M8 13h2",key:"yr2amv"}],["path",{d:"M14 13h2",key:"un5t4a"}],["path",{d:"M8 17h2",key:"2yhykz"}],["path",{d:"M14 17h2",key:"10kma7"}]],tj=De("file-spreadsheet",ej);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const nj=[["path",{d:"M15 2h-4a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V8",key:"14sh0y"}],["path",{d:"M16.706 2.706A2.4 2.4 0 0 0 15 2v5a1 1 0 0 0 1 1h5a2.4 2.4 0 0 0-.706-1.706z",key:"1970lx"}],["path",{d:"M5 7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h8a2 2 0 0 0 1.732-1",key:"l4dndm"}]],o2=De("files",nj);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const aj=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]],dh=De("info",aj);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ij=[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]],ux=De("pencil",ij);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const rj=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Xm=De("plus",rj);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sj=[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]],dx=De("power",sj);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oj=[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]],lj=De("refresh-ccw",oj);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cj=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Go=De("refresh-cw",cj);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const uj=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],dj=De("rotate-ccw",uj);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const fj=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Io=De("search",fj);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const mj=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],l2=De("shield-check",mj);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const pj=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],Fc=De("trash-2",pj);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const hj=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],gj=De("triangle-alert",hj);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yj=[["path",{d:"m16 11 2 2 4-4",key:"9rsbq5"}],["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],xj=De("user-check",yj);/**
 * @license lucide-react v0.577.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bj=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],du=De("x",bj),vj=()=>{const{isExpanded:e,isMobileOpen:t,isHovered:a,setIsHovered:r}=Au(),o=Bn(),c=nl(),[u,m]=w.useState(null);w.useEffect(()=>{try{const D=window.localStorage.getItem(qe.user);if(D){const M=JSON.parse(D),F=((M==null?void 0:M.role)||"").toString().toLowerCase().trim();m(F||null)}}catch{}},[]);const p=()=>{be.fire({title:"Konfirmasi Logout",text:"Apakah Anda yakin ingin keluar dari aplikasi?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#ef4444",cancelButtonColor:"#3b82f6",confirmButtonText:"Ya, Logout!",cancelButtonText:"Batal",customClass:{popup:"dark:bg-gray-800 dark:text-white rounded-2xl",title:"text-xl font-bold"}}).then(D=>{D.isConfirmed&&(window.localStorage.removeItem(qe.token),window.localStorage.removeItem(qe.user),c("/login"))})},[g,y]=w.useState(null),[b,v]=w.useState({}),T=w.useRef({}),S=w.useCallback((D,M)=>!D&&M?M.some(F=>o.pathname===F.path):D?D==="/"?o.pathname==="/":o.pathname===D||M&&M.some(F=>o.pathname===F.path):!1,[o.pathname]),C=la.useMemo(()=>{const D=[{icon:f.jsx(o6,{}),name:"Dashboard",path:"/"},{icon:f.jsx(l6,{}),name:"File Renamer",subItems:[{name:"Master Data",path:"/master"},{name:"Import Excel",path:"/master/import"},{name:"Upload & Rename",path:"/uploads"},{name:"Review Queue",path:"/reviews"}]},{icon:f.jsx(j6,{className:"w-5 h-5 text-indigo-500"}),name:"Reports",path:"/reports"},{icon:f.jsx(p6,{}),name:"Log Aktivitas",path:"/activity-logs"}];return u==="superadmin"&&D.push({icon:f.jsx(l2,{className:"w-5 h-5 text-amber-500"}),name:"Manajemen Admin",path:"/admins"}),D.push({icon:f.jsx(Qw,{}),name:"Profile Saya",path:"/profile"}),D},[u]);w.useEffect(()=>{let D=!1;C.forEach((M,F)=>{M.subItems&&M.subItems.forEach(V=>{S(V.path)&&(y({type:"main",index:F}),D=!0)})}),D||y(null)},[o.pathname,S,C]),w.useEffect(()=>{if(g!==null){const D=`main-${g.index}`,M=T.current[D];M&&v(F=>({...F,[D]:M.scrollHeight||0}))}},[g]);const E=D=>{y(M=>M&&M.index===D?null:{type:"main",index:D})},O=D=>f.jsx("ul",{className:"flex flex-col gap-4",children:D.map((M,F)=>f.jsxs("li",{children:[M.subItems?f.jsxs("button",{onClick:()=>E(F),className:`menu-item group ${S(void 0,M.subItems)?"menu-item-active":"menu-item-inactive"} cursor-pointer ${!e&&!a?"lg:justify-center":"lg:justify-start"}`,type:"button",children:[f.jsx("span",{className:`menu-item-icon-size ${S(void 0,M.subItems)?"menu-item-icon-active":"menu-item-icon-inactive"}`,children:M.icon}),(e||a||t)&&f.jsx("span",{className:"menu-item-text",children:M.name}),(e||a||t)&&f.jsx(d6,{className:`ml-auto w-5 h-5 transition-transform duration-200 ${(g==null?void 0:g.index)===F?"rotate-180 text-brand-500":""}`})]}):M.path&&f.jsxs(Yn,{to:M.path,className:`menu-item group ${S(M.path)?"menu-item-active":"menu-item-inactive"}`,children:[f.jsx("span",{className:`menu-item-icon-size ${S(M.path)?"menu-item-icon-active":"menu-item-icon-inactive"}`,children:M.icon}),(e||a||t)&&f.jsx("span",{className:"menu-item-text",children:M.name})]}),M.subItems&&(e||a||t)&&f.jsx("div",{ref:V=>{T.current[`main-${F}`]=V},style:{height:(g==null?void 0:g.index)===F?`${b[`main-${F}`]}px`:"0px"},className:"overflow-hidden transition-all duration-300 ease-in-out",children:f.jsx("ul",{className:"mt-2 ml-9 flex flex-col gap-2 border-l border-gray-100 dark:border-gray-800",children:M.subItems.map(V=>f.jsx("li",{children:f.jsx(Yn,{to:V.path,className:`block py-2 px-4 text-sm transition-colors rounded-lg ${S(V.path)?"text-brand-500 font-bold bg-brand-50 dark:bg-brand-500/10":"text-gray-500 hover:text-brand-500 dark:text-gray-400 dark:hover:text-white"}`,children:V.name})},V.name))})})]},M.name))});return f.jsxs("aside",{className:`fixed mt-16 flex flex-col lg:mt-0 top-0 px-5 left-0 bg-white dark:bg-gray-900 dark:border-gray-800 text-gray-900 h-screen transition-all duration-300 ease-in-out z-50 border-r border-gray-200 
        ${e||t||a?"w-[290px]":"w-[90px]"}
        ${t?"translate-x-0":"-translate-x-full"}
        lg:translate-x-0`,onMouseEnter:()=>!e&&r(!0),onMouseLeave:()=>r(!1),children:[f.jsx("div",{className:`py-8 flex ${!e&&!a?"lg:justify-center":"justify-start"}`,children:f.jsx(Yn,{to:"/",children:e||a||t?f.jsx("p",{className:"text-lg font-bold text-gray-800 dark:text-blue-600",children:"File Renamer SJS"}):f.jsx("p",{className:"text-lg font-bold text-gray-800 dark:text-blue-600 pt-2 flex justify-center w-full",children:f.jsx(s2,{className:"size-6 text-brand-500"})})})}),f.jsx("div",{className:"flex flex-col overflow-y-auto duration-300 ease-linear no-scrollbar",children:f.jsx("nav",{className:"mb-6",children:f.jsx("div",{className:"flex flex-col gap-4",children:f.jsxs("div",{children:[f.jsx("h2",{className:`mb-4 text-xs uppercase flex leading-[20px] text-gray-400 ${!e&&!a?"lg:justify-center":"justify-start"}`,children:e||a||t?"Menu":f.jsx(h6,{className:"size-6"})}),O(C),f.jsxs("button",{onClick:p,className:`menu-item group mt-4 cursor-pointer text-gray-500 hover:text-rose-600 hover:bg-rose-50 dark:hover:bg-rose-500/10 dark:text-gray-400 ${!e&&!a?"lg:justify-center":"lg:justify-start"}`,type:"button",children:[f.jsx("span",{className:"menu-item-icon-size group-hover:text-rose-600 dark:group-hover:text-rose-400",children:f.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:f.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"})})}),(e||a||t)&&f.jsx("span",{className:"menu-item-text font-medium group-hover:text-rose-600 dark:group-hover:text-rose-400",children:"Logout"})]}),f.jsx("div",{className:"mt-4",children:f.jsx(g6,{})})]})})})})]})},wj=()=>{const{isExpanded:e,isHovered:t,isMobileOpen:a}=Au();return f.jsxs("div",{className:"min-h-screen overflow-x-hidden xl:flex",children:[f.jsxs("div",{className:"shrink-0",children:[f.jsx(vj,{}),f.jsx(xS,{})]}),f.jsxs("div",{className:`min-w-0 flex-1 transition-all duration-300 ease-in-out ${e||t?"lg:ml-[290px]":"lg:ml-[90px]"} ${a?"ml-0":""}`,children:[f.jsx(yS,{}),f.jsx("div",{className:"mx-auto w-full min-w-0 max-w-(--breakpoint-2xl) p-4 md:p-6",children:f.jsx(Zv,{})})]})]})},kj=()=>f.jsx(tS,{children:f.jsx(wj,{})});function Sj(){const{pathname:e}=Bn();return w.useEffect(()=>{window.scrollTo({top:0,left:0,behavior:"smooth"})},[e]),null}function Cj({children:e}){const t=Bn();return aw()?f.jsx(f.Fragment,{children:e}):f.jsx($p,{to:"/login",replace:!0,state:{from:t}})}function jj({children:e}){return aw()?f.jsx($p,{to:"/",replace:!0}):f.jsx(f.Fragment,{children:e})}var lm,fx;function Ej(){if(fx)return lm;fx=1;var e=typeof Element<"u",t=typeof Map=="function",a=typeof Set=="function",r=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(c,u){if(c===u)return!0;if(c&&u&&typeof c=="object"&&typeof u=="object"){if(c.constructor!==u.constructor)return!1;var m,p,g;if(Array.isArray(c)){if(m=c.length,m!=u.length)return!1;for(p=m;p--!==0;)if(!o(c[p],u[p]))return!1;return!0}var y;if(t&&c instanceof Map&&u instanceof Map){if(c.size!==u.size)return!1;for(y=c.entries();!(p=y.next()).done;)if(!u.has(p.value[0]))return!1;for(y=c.entries();!(p=y.next()).done;)if(!o(p.value[1],u.get(p.value[0])))return!1;return!0}if(a&&c instanceof Set&&u instanceof Set){if(c.size!==u.size)return!1;for(y=c.entries();!(p=y.next()).done;)if(!u.has(p.value[0]))return!1;return!0}if(r&&ArrayBuffer.isView(c)&&ArrayBuffer.isView(u)){if(m=c.length,m!=u.length)return!1;for(p=m;p--!==0;)if(c[p]!==u[p])return!1;return!0}if(c.constructor===RegExp)return c.source===u.source&&c.flags===u.flags;if(c.valueOf!==Object.prototype.valueOf&&typeof c.valueOf=="function"&&typeof u.valueOf=="function")return c.valueOf()===u.valueOf();if(c.toString!==Object.prototype.toString&&typeof c.toString=="function"&&typeof u.toString=="function")return c.toString()===u.toString();if(g=Object.keys(c),m=g.length,m!==Object.keys(u).length)return!1;for(p=m;p--!==0;)if(!Object.prototype.hasOwnProperty.call(u,g[p]))return!1;if(e&&c instanceof Element)return!1;for(p=m;p--!==0;)if(!((g[p]==="_owner"||g[p]==="__v"||g[p]==="__o")&&c.$$typeof)&&!o(c[g[p]],u[g[p]]))return!1;return!0}return c!==c&&u!==u}return lm=function(u,m){try{return o(u,m)}catch(p){if((p.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw p}},lm}var Tj=Ej();const Aj=gs(Tj);var cm,mx;function Nj(){if(mx)return cm;mx=1;var e=function(t,a,r,o,c,u,m,p){if(!t){var g;if(a===void 0)g=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var y=[r,o,c,u,m,p],b=0;g=new Error(a.replace(/%s/g,function(){return y[b++]})),g.name="Invariant Violation"}throw g.framesToPop=1,g}};return cm=e,cm}var Mj=Nj();const px=gs(Mj);var um,hx;function Rj(){return hx||(hx=1,um=function(t,a,r,o){var c=r?r.call(o,t,a):void 0;if(c!==void 0)return!!c;if(t===a)return!0;if(typeof t!="object"||!t||typeof a!="object"||!a)return!1;var u=Object.keys(t),m=Object.keys(a);if(u.length!==m.length)return!1;for(var p=Object.prototype.hasOwnProperty.bind(a),g=0;g<u.length;g++){var y=u[g];if(!p(y))return!1;var b=t[y],v=a[y];if(c=r?r.call(o,b,v,y):void 0,c===!1||c===void 0&&b!==v)return!1}return!0}),um}var Dj=Rj();const Oj=gs(Dj);var c2=(e=>(e.BASE="base",e.BODY="body",e.HEAD="head",e.HTML="html",e.LINK="link",e.META="meta",e.NOSCRIPT="noscript",e.SCRIPT="script",e.STYLE="style",e.TITLE="title",e.FRAGMENT="Symbol(react.fragment)",e))(c2||{}),dm={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},gx=Object.values(c2),fh={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},_j=Object.entries(fh).reduce((e,[t,a])=>(e[a]=t,e),{}),$n="data-rh",rs={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},ss=(e,t)=>{for(let a=e.length-1;a>=0;a-=1){const r=e[a];if(Object.prototype.hasOwnProperty.call(r,t))return r[t]}return null},Lj=e=>{let t=ss(e,"title");const a=ss(e,rs.TITLE_TEMPLATE);if(Array.isArray(t)&&(t=t.join("")),a&&t)return a.replace(/%s/g,()=>t);const r=ss(e,rs.DEFAULT_TITLE);return t||r||void 0},Bj=e=>ss(e,rs.ON_CHANGE_CLIENT_STATE)||(()=>{}),fm=(e,t)=>t.filter(a=>typeof a[e]<"u").map(a=>a[e]).reduce((a,r)=>({...a,...r}),{}),zj=(e,t)=>t.filter(a=>typeof a.base<"u").map(a=>a.base).reverse().reduce((a,r)=>{if(!a.length){const o=Object.keys(r);for(let c=0;c<o.length;c+=1){const m=o[c].toLowerCase();if(e.indexOf(m)!==-1&&r[m])return a.concat(r)}}return a},[]),Pj=e=>console&&typeof console.warn=="function"&&console.warn(e),Oo=(e,t,a)=>{const r={};return a.filter(o=>Array.isArray(o[e])?!0:(typeof o[e]<"u"&&Pj(`Helmet: ${e} should be of type "Array". Instead found type "${typeof o[e]}"`),!1)).map(o=>o[e]).reverse().reduce((o,c)=>{const u={};c.filter(p=>{let g;const y=Object.keys(p);for(let v=0;v<y.length;v+=1){const T=y[v],S=T.toLowerCase();t.indexOf(S)!==-1&&!(g==="rel"&&p[g].toLowerCase()==="canonical")&&!(S==="rel"&&p[S].toLowerCase()==="stylesheet")&&(g=S),t.indexOf(T)!==-1&&(T==="innerHTML"||T==="cssText"||T==="itemprop")&&(g=T)}if(!g||!p[g])return!1;const b=p[g].toLowerCase();return r[g]||(r[g]={}),u[g]||(u[g]={}),r[g][b]?!1:(u[g][b]=!0,!0)}).reverse().forEach(p=>o.push(p));const m=Object.keys(u);for(let p=0;p<m.length;p+=1){const g=m[p],y={...r[g],...u[g]};r[g]=y}return o},[]).reverse()},Vj=(e,t)=>{if(Array.isArray(e)&&e.length){for(let a=0;a<e.length;a+=1)if(e[a][t])return!0}return!1},Uj=e=>({baseTag:zj(["href"],e),bodyAttributes:fm("bodyAttributes",e),defer:ss(e,rs.DEFER),encode:ss(e,rs.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:fm("htmlAttributes",e),linkTags:Oo("link",["rel","href"],e),metaTags:Oo("meta",["name","charset","http-equiv","property","itemprop"],e),noscriptTags:Oo("noscript",["innerHTML"],e),onChangeClientState:Bj(e),scriptTags:Oo("script",["src","innerHTML"],e),styleTags:Oo("style",["cssText"],e),title:Lj(e),titleAttributes:fm("titleAttributes",e),prioritizeSeoTags:Vj(e,rs.PRIORITIZE_SEO_TAGS)}),u2=e=>Array.isArray(e)?e.join(""):e,Hj=(e,t)=>{const a=Object.keys(e);for(let r=0;r<a.length;r+=1)if(t[a[r]]&&t[a[r]].includes(e[a[r]]))return!0;return!1},mm=(e,t)=>Array.isArray(e)?e.reduce((a,r)=>(Hj(r,t)?a.priority.push(r):a.default.push(r),a),{priority:[],default:[]}):{default:e,priority:[]},yx=(e,t)=>({...e,[t]:void 0}),qj=["noscript","script","style"],Wm=(e,t=!0)=>t===!1?String(e):String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;"),d2=e=>Object.keys(e).reduce((t,a)=>{const r=typeof e[a]<"u"?`${a}="${e[a]}"`:`${a}`;return t?`${t} ${r}`:r},""),Fj=(e,t,a,r)=>{const o=d2(a),c=u2(t);return o?`<${e} ${$n}="true" ${o}>${Wm(c,r)}</${e}>`:`<${e} ${$n}="true">${Wm(c,r)}</${e}>`},$j=(e,t,a=!0)=>t.reduce((r,o)=>{const c=o,u=Object.keys(c).filter(g=>!(g==="innerHTML"||g==="cssText")).reduce((g,y)=>{const b=typeof c[y]>"u"?y:`${y}="${Wm(c[y],a)}"`;return g?`${g} ${b}`:b},""),m=c.innerHTML||c.cssText||"",p=qj.indexOf(e)===-1;return`${r}<${e} ${$n}="true" ${u}${p?"/>":`>${m}</${e}>`}`},""),f2=(e,t={})=>Object.keys(e).reduce((a,r)=>{const o=fh[r];return a[o||r]=e[r],a},t),Yj=(e,t,a)=>{const r={key:t,[$n]:!0},o=f2(a,r);return[la.createElement("title",o,t)]},$c=(e,t)=>t.map((a,r)=>{const o={key:r,[$n]:!0};return Object.keys(a).forEach(c=>{const m=fh[c]||c;if(m==="innerHTML"||m==="cssText"){const p=a.innerHTML||a.cssText;o.dangerouslySetInnerHTML={__html:p}}else o[m]=a[c]}),la.createElement(e,o)}),Dn=(e,t,a=!0)=>{switch(e){case"title":return{toComponent:()=>Yj(e,t.title,t.titleAttributes),toString:()=>Fj(e,t.title,t.titleAttributes,a)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>f2(t),toString:()=>d2(t)};default:return{toComponent:()=>$c(e,t),toString:()=>$j(e,t,a)}}},Gj=({metaTags:e,linkTags:t,scriptTags:a,encode:r})=>{const o=mm(e,dm.meta),c=mm(t,dm.link),u=mm(a,dm.script);return{priorityMethods:{toComponent:()=>[...$c("meta",o.priority),...$c("link",c.priority),...$c("script",u.priority)],toString:()=>`${Dn("meta",o.priority,r)} ${Dn("link",c.priority,r)} ${Dn("script",u.priority,r)}`},metaTags:o.default,linkTags:c.default,scriptTags:u.default}},Ij=e=>{const{baseTag:t,bodyAttributes:a,encode:r=!0,htmlAttributes:o,noscriptTags:c,styleTags:u,title:m="",titleAttributes:p,prioritizeSeoTags:g}=e;let{linkTags:y,metaTags:b,scriptTags:v}=e,T={toComponent:()=>{},toString:()=>""};return g&&({priorityMethods:T,linkTags:y,metaTags:b,scriptTags:v}=Gj(e)),{priority:T,base:Dn("base",t,r),bodyAttributes:Dn("bodyAttributes",a,r),htmlAttributes:Dn("htmlAttributes",o,r),link:Dn("link",y,r),meta:Dn("meta",b,r),noscript:Dn("noscript",c,r),script:Dn("script",v,r),style:Dn("style",u,r),title:Dn("title",{title:m,titleAttributes:p},r)}},Qm=Ij,Rc=[],m2=!!(typeof window<"u"&&window.document&&window.document.createElement),Jm=class{constructor(e,t){La(this,"instances",[]);La(this,"canUseDOM",m2);La(this,"context");La(this,"value",{setHelmet:e=>{this.context.helmet=e},helmetInstances:{get:()=>this.canUseDOM?Rc:this.instances,add:e=>{(this.canUseDOM?Rc:this.instances).push(e)},remove:e=>{const t=(this.canUseDOM?Rc:this.instances).indexOf(e);(this.canUseDOM?Rc:this.instances).splice(t,1)}}});this.context=e,this.canUseDOM=t||!1,t||(e.helmet=Qm({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},Zj={},p2=la.createContext(Zj),nr,h2=(nr=class extends w.Component{constructor(a){super(a);La(this,"helmetData");this.helmetData=new Jm(this.props.context||{},nr.canUseDOM)}render(){return la.createElement(p2.Provider,{value:this.helmetData.value},this.props.children)}},La(nr,"canUseDOM",m2),nr),Zr=(e,t)=>{const a=document.head||document.querySelector("head"),r=a.querySelectorAll(`${e}[${$n}]`),o=[].slice.call(r),c=[];let u;return t&&t.length&&t.forEach(m=>{const p=document.createElement(e);for(const g in m)if(Object.prototype.hasOwnProperty.call(m,g))if(g==="innerHTML")p.innerHTML=m.innerHTML;else if(g==="cssText")p.styleSheet?p.styleSheet.cssText=m.cssText:p.appendChild(document.createTextNode(m.cssText));else{const y=g,b=typeof m[y]>"u"?"":m[y];p.setAttribute(g,b)}p.setAttribute($n,"true"),o.some((g,y)=>(u=y,p.isEqualNode(g)))?o.splice(u,1):c.push(p)}),o.forEach(m=>{var p;return(p=m.parentNode)==null?void 0:p.removeChild(m)}),c.forEach(m=>a.appendChild(m)),{oldTags:o,newTags:c}},ep=(e,t)=>{const a=document.getElementsByTagName(e)[0];if(!a)return;const r=a.getAttribute($n),o=r?r.split(","):[],c=[...o],u=Object.keys(t);for(const m of u){const p=t[m]||"";a.getAttribute(m)!==p&&a.setAttribute(m,p),o.indexOf(m)===-1&&o.push(m);const g=c.indexOf(m);g!==-1&&c.splice(g,1)}for(let m=c.length-1;m>=0;m-=1)a.removeAttribute(c[m]);o.length===c.length?a.removeAttribute($n):a.getAttribute($n)!==u.join(",")&&a.setAttribute($n,u.join(","))},Kj=(e,t)=>{typeof e<"u"&&document.title!==e&&(document.title=u2(e)),ep("title",t)},xx=(e,t)=>{const{baseTag:a,bodyAttributes:r,htmlAttributes:o,linkTags:c,metaTags:u,noscriptTags:m,onChangeClientState:p,scriptTags:g,styleTags:y,title:b,titleAttributes:v}=e;ep("body",r),ep("html",o),Kj(b,v);const T={baseTag:Zr("base",a),linkTags:Zr("link",c),metaTags:Zr("meta",u),noscriptTags:Zr("noscript",m),scriptTags:Zr("script",g),styleTags:Zr("style",y)},S={},C={};Object.keys(T).forEach(E=>{const{newTags:O,oldTags:D}=T[E];O.length&&(S[E]=O),D.length&&(C[E]=T[E].oldTags)}),t&&t(),p(e,S,C)},_o=null,Xj=e=>{_o&&cancelAnimationFrame(_o),e.defer?_o=requestAnimationFrame(()=>{xx(e,()=>{_o=null})}):(xx(e),_o=null)},Wj=Xj,bx=class extends w.Component{constructor(){super(...arguments);La(this,"rendered",!1)}shouldComponentUpdate(t){return!Oj(t,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:t}=this.props.context;t.remove(this),this.emitChange()}emitChange(){const{helmetInstances:t,setHelmet:a}=this.props.context;let r=null;const o=Uj(t.get().map(c=>{const u={...c.props};return delete u.context,u}));h2.canUseDOM?Wj(o):Qm&&(r=Qm(o)),a(r)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:t}=this.props.context;t.add(this),this.emitChange()}render(){return this.init(),null}},$m,Qj=($m=class extends w.Component{shouldComponentUpdate(e){return!Aj(yx(this.props,"helmetData"),yx(e,"helmetData"))}mapNestedChildrenToProps(e,t){if(!t)return null;switch(e.type){case"script":case"noscript":return{innerHTML:t};case"style":return{cssText:t};default:throw new Error(`<${e.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(e,t,a,r){return{...t,[e.type]:[...t[e.type]||[],{...a,...this.mapNestedChildrenToProps(e,r)}]}}mapObjectTypeChildren(e,t,a,r){switch(e.type){case"title":return{...t,[e.type]:r,titleAttributes:{...a}};case"body":return{...t,bodyAttributes:{...a}};case"html":return{...t,htmlAttributes:{...a}};default:return{...t,[e.type]:{...a}}}}mapArrayTypeChildrenToProps(e,t){let a={...t};return Object.keys(e).forEach(r=>{a={...a,[r]:e[r]}}),a}warnOnInvalidChildren(e,t){return px(gx.some(a=>e.type===a),typeof e.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${gx.join(", ")} are allowed. Helmet does not support rendering <${e.type}> elements. Refer to our API for more information.`),px(!t||typeof t=="string"||Array.isArray(t)&&!t.some(a=>typeof a!="string"),`Helmet expects a string as a child of <${e.type}>. Did you forget to wrap your children in braces? ( <${e.type}>{\`\`}</${e.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(e,t){let a={};return la.Children.forEach(e,r=>{if(!r||!r.props)return;const{children:o,...c}=r.props,u=Object.keys(c).reduce((p,g)=>(p[_j[g]||g]=c[g],p),{});let{type:m}=r;switch(typeof m=="symbol"?m=m.toString():this.warnOnInvalidChildren(r,o),m){case"Symbol(react.fragment)":t=this.mapChildrenToProps(o,t);break;case"link":case"meta":case"noscript":case"script":case"style":a=this.flattenArrayTypeChildren(r,a,u,o);break;default:t=this.mapObjectTypeChildren(r,t,u,o);break}}),this.mapArrayTypeChildrenToProps(a,t)}render(){const{children:e,...t}=this.props;let a={...t},{helmetData:r}=t;if(e&&(a=this.mapChildrenToProps(e,a)),r&&!(r instanceof Jm)){const o=r;r=new Jm(o.context,!0),delete a.helmetData}return r?la.createElement(bx,{...a,context:r.value}):la.createElement(p2.Consumer,null,o=>la.createElement(bx,{...a,context:o}))}},La($m,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),$m);const fa=({title:e,description:t})=>f.jsxs(Qj,{children:[f.jsx("title",{children:e}),f.jsx("meta",{name:"description",content:t})]}),Jj=({children:e})=>f.jsx(h2,{children:e});function g2(){return f.jsxs(f.Fragment,{children:[f.jsx("div",{className:"absolute right-0 top-0 -z-1 w-full max-w-[250px] xl:max-w-[450px]",children:f.jsx("img",{src:"/images/shape/grid-01.svg",alt:"grid"})}),f.jsx("div",{className:"absolute bottom-0 left-0 -z-1 w-full max-w-[250px] rotate-180 xl:max-w-[450px]",children:f.jsx("img",{src:"/images/shape/grid-01.svg",alt:"grid"})})]})}function eE(){const{toggleTheme:e}=tw();return f.jsxs("button",{onClick:e,className:"inline-flex items-center justify-center text-white transition-colors rounded-full size-14 bg-brand-500 hover:bg-brand-600",children:[f.jsx("svg",{className:"hidden dark:block",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99998 1.5415C10.4142 1.5415 10.75 1.87729 10.75 2.2915V3.5415C10.75 3.95572 10.4142 4.2915 9.99998 4.2915C9.58577 4.2915 9.24998 3.95572 9.24998 3.5415V2.2915C9.24998 1.87729 9.58577 1.5415 9.99998 1.5415ZM10.0009 6.79327C8.22978 6.79327 6.79402 8.22904 6.79402 10.0001C6.79402 11.7712 8.22978 13.207 10.0009 13.207C11.772 13.207 13.2078 11.7712 13.2078 10.0001C13.2078 8.22904 11.772 6.79327 10.0009 6.79327ZM5.29402 10.0001C5.29402 7.40061 7.40135 5.29327 10.0009 5.29327C12.6004 5.29327 14.7078 7.40061 14.7078 10.0001C14.7078 12.5997 12.6004 14.707 10.0009 14.707C7.40135 14.707 5.29402 12.5997 5.29402 10.0001ZM15.9813 5.08035C16.2742 4.78746 16.2742 4.31258 15.9813 4.01969C15.6884 3.7268 15.2135 3.7268 14.9207 4.01969L14.0368 4.90357C13.7439 5.19647 13.7439 5.67134 14.0368 5.96423C14.3297 6.25713 14.8045 6.25713 15.0974 5.96423L15.9813 5.08035ZM18.4577 10.0001C18.4577 10.4143 18.1219 10.7501 17.7077 10.7501H16.4577C16.0435 10.7501 15.7077 10.4143 15.7077 10.0001C15.7077 9.58592 16.0435 9.25013 16.4577 9.25013H17.7077C18.1219 9.25013 18.4577 9.58592 18.4577 10.0001ZM14.9207 15.9806C15.2135 16.2735 15.6884 16.2735 15.9813 15.9806C16.2742 15.6877 16.2742 15.2128 15.9813 14.9199L15.0974 14.036C14.8045 13.7431 14.3297 13.7431 14.0368 14.036C13.7439 14.3289 13.7439 14.8038 14.0368 15.0967L14.9207 15.9806ZM9.99998 15.7088C10.4142 15.7088 10.75 16.0445 10.75 16.4588V17.7088C10.75 18.123 10.4142 18.4588 9.99998 18.4588C9.58577 18.4588 9.24998 18.123 9.24998 17.7088V16.4588C9.24998 16.0445 9.58577 15.7088 9.99998 15.7088ZM5.96356 15.0972C6.25646 14.8043 6.25646 14.3295 5.96356 14.0366C5.67067 13.7437 5.1958 13.7437 4.9029 14.0366L4.01902 14.9204C3.72613 15.2133 3.72613 15.6882 4.01902 15.9811C4.31191 16.274 4.78679 16.274 5.07968 15.9811L5.96356 15.0972ZM4.29224 10.0001C4.29224 10.4143 3.95645 10.7501 3.54224 10.7501H2.29224C1.87802 10.7501 1.54224 10.4143 1.54224 10.0001C1.54224 9.58592 1.87802 9.25013 2.29224 9.25013H3.54224C3.95645 9.25013 4.29224 9.58592 4.29224 10.0001ZM4.9029 5.9637C5.1958 6.25659 5.67067 6.25659 5.96356 5.9637C6.25646 5.6708 6.25646 5.19593 5.96356 4.90303L5.07968 4.01915C4.78679 3.72626 4.31191 3.72626 4.01902 4.01915C3.72613 4.31204 3.72613 4.78692 4.01902 5.07981L4.9029 5.9637Z",fill:"currentColor"})}),f.jsx("svg",{className:"dark:hidden",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M17.4547 11.97L18.1799 12.1611C18.265 11.8383 18.1265 11.4982 17.8401 11.3266C17.5538 11.1551 17.1885 11.1934 16.944 11.4207L17.4547 11.97ZM8.0306 2.5459L8.57989 3.05657C8.80718 2.81209 8.84554 2.44682 8.67398 2.16046C8.50243 1.8741 8.16227 1.73559 7.83948 1.82066L8.0306 2.5459ZM12.9154 13.0035C9.64678 13.0035 6.99707 10.3538 6.99707 7.08524H5.49707C5.49707 11.1823 8.81835 14.5035 12.9154 14.5035V13.0035ZM16.944 11.4207C15.8869 12.4035 14.4721 13.0035 12.9154 13.0035V14.5035C14.8657 14.5035 16.6418 13.7499 17.9654 12.5193L16.944 11.4207ZM16.7295 11.7789C15.9437 14.7607 13.2277 16.9586 10.0003 16.9586V18.4586C13.9257 18.4586 17.2249 15.7853 18.1799 12.1611L16.7295 11.7789ZM10.0003 16.9586C6.15734 16.9586 3.04199 13.8433 3.04199 10.0003H1.54199C1.54199 14.6717 5.32892 18.4586 10.0003 18.4586V16.9586ZM3.04199 10.0003C3.04199 6.77289 5.23988 4.05695 8.22173 3.27114L7.83948 1.82066C4.21532 2.77574 1.54199 6.07486 1.54199 10.0003H3.04199ZM6.99707 7.08524C6.99707 5.52854 7.5971 4.11366 8.57989 3.05657L7.48132 2.03522C6.25073 3.35885 5.49707 5.13487 5.49707 7.08524H6.99707Z",fill:"currentColor"})})]})}function tE({children:e}){const t=Bn();return t.pathname.includes("/login")||t.pathname.includes("admin"),f.jsx("div",{className:"relative p-6 bg-white z-1 dark:bg-gray-900 sm:p-0",children:f.jsxs("div",{className:"relative flex flex-col justify-center w-full h-screen lg:flex-row dark:bg-gray-900 sm:p-0",children:[e,f.jsx("div",{className:"items-center hidden w-full h-full lg:w-1/2 bg-brand-950 dark:bg-white/5 lg:grid",children:f.jsxs("div",{className:"relative flex items-center justify-center z-1",children:[f.jsx(g2,{}),f.jsxs("div",{className:"flex flex-col items-center max-w-xs",children:[f.jsx(Yn,{to:"/",className:"block mb-4",children:f.jsx("p",{className:"text-lg font-bold text-gray-800 text-white dark:text-white",children:"Compare PKWT SJS"})}),f.jsx("p",{className:"text-center text-gray-400 dark:text-white/60",children:"Portal admin untuk membandingkan data kontrak PKWT secara otomatis dan akurat."})]})]})}),f.jsx("div",{className:"fixed z-50 hidden bottom-6 right-6 sm:block",children:f.jsx(eE,{})})]})})}const mh="-",nE=e=>{const t=iE(e),{conflictingClassGroups:a,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:u=>{const m=u.split(mh);return m[0]===""&&m.length!==1&&m.shift(),y2(m,t)||aE(u)},getConflictingClassGroupIds:(u,m)=>{const p=a[u]||[];return m&&r[u]?[...p,...r[u]]:p}}},y2=(e,t)=>{var u;if(e.length===0)return t.classGroupId;const a=e[0],r=t.nextPart.get(a),o=r?y2(e.slice(1),r):void 0;if(o)return o;if(t.validators.length===0)return;const c=e.join(mh);return(u=t.validators.find(({validator:m})=>m(c)))==null?void 0:u.classGroupId},vx=/^\[(.+)\]$/,aE=e=>{if(vx.test(e)){const t=vx.exec(e)[1],a=t==null?void 0:t.substring(0,t.indexOf(":"));if(a)return"arbitrary.."+a}},iE=e=>{const{theme:t,classGroups:a}=e,r={nextPart:new Map,validators:[]};for(const o in a)tp(a[o],r,o,t);return r},tp=(e,t,a,r)=>{e.forEach(o=>{if(typeof o=="string"){const c=o===""?t:wx(t,o);c.classGroupId=a;return}if(typeof o=="function"){if(rE(o)){tp(o(r),t,a,r);return}t.validators.push({validator:o,classGroupId:a});return}Object.entries(o).forEach(([c,u])=>{tp(u,wx(t,c),a,r)})})},wx=(e,t)=>{let a=e;return t.split(mh).forEach(r=>{a.nextPart.has(r)||a.nextPart.set(r,{nextPart:new Map,validators:[]}),a=a.nextPart.get(r)}),a},rE=e=>e.isThemeGetter,sE=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,a=new Map,r=new Map;const o=(c,u)=>{a.set(c,u),t++,t>e&&(t=0,r=a,a=new Map)};return{get(c){let u=a.get(c);if(u!==void 0)return u;if((u=r.get(c))!==void 0)return o(c,u),u},set(c,u){a.has(c)?a.set(c,u):o(c,u)}}},np="!",ap=":",oE=ap.length,lE=e=>{const{prefix:t,experimentalParseClassName:a}=e;let r=o=>{const c=[];let u=0,m=0,p=0,g;for(let S=0;S<o.length;S++){let C=o[S];if(u===0&&m===0){if(C===ap){c.push(o.slice(p,S)),p=S+oE;continue}if(C==="/"){g=S;continue}}C==="["?u++:C==="]"?u--:C==="("?m++:C===")"&&m--}const y=c.length===0?o:o.substring(p),b=cE(y),v=b!==y,T=g&&g>p?g-p:void 0;return{modifiers:c,hasImportantModifier:v,baseClassName:b,maybePostfixModifierPosition:T}};if(t){const o=t+ap,c=r;r=u=>u.startsWith(o)?c(u.substring(o.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:u,maybePostfixModifierPosition:void 0}}if(a){const o=r;r=c=>a({className:c,parseClassName:o})}return r},cE=e=>e.endsWith(np)?e.substring(0,e.length-1):e.startsWith(np)?e.substring(1):e,uE=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map(r=>[r,!0]));return r=>{if(r.length<=1)return r;const o=[];let c=[];return r.forEach(u=>{u[0]==="["||t[u]?(o.push(...c.sort(),u),c=[]):c.push(u)}),o.push(...c.sort()),o}},dE=e=>({cache:sE(e.cacheSize),parseClassName:lE(e),sortModifiers:uE(e),...nE(e)}),fE=/\s+/,mE=(e,t)=>{const{parseClassName:a,getClassGroupId:r,getConflictingClassGroupIds:o,sortModifiers:c}=t,u=[],m=e.trim().split(fE);let p="";for(let g=m.length-1;g>=0;g-=1){const y=m[g],{isExternal:b,modifiers:v,hasImportantModifier:T,baseClassName:S,maybePostfixModifierPosition:C}=a(y);if(b){p=y+(p.length>0?" "+p:p);continue}let E=!!C,O=r(E?S.substring(0,C):S);if(!O){if(!E){p=y+(p.length>0?" "+p:p);continue}if(O=r(S),!O){p=y+(p.length>0?" "+p:p);continue}E=!1}const D=c(v).join(":"),M=T?D+np:D,F=M+O;if(u.includes(F))continue;u.push(F);const V=o(O,E);for(let te=0;te<V.length;++te){const ie=V[te];u.push(M+ie)}p=y+(p.length>0?" "+p:p)}return p};function pE(){let e=0,t,a,r="";for(;e<arguments.length;)(t=arguments[e++])&&(a=x2(t))&&(r&&(r+=" "),r+=a);return r}const x2=e=>{if(typeof e=="string")return e;let t,a="";for(let r=0;r<e.length;r++)e[r]&&(t=x2(e[r]))&&(a&&(a+=" "),a+=t);return a};function hE(e,...t){let a,r,o,c=u;function u(p){const g=t.reduce((y,b)=>b(y),e());return a=dE(g),r=a.cache.get,o=a.cache.set,c=m,m(p)}function m(p){const g=r(p);if(g)return g;const y=mE(p,a);return o(p,y),y}return function(){return c(pE.apply(null,arguments))}}const Nt=e=>{const t=a=>a[e]||[];return t.isThemeGetter=!0,t},b2=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,v2=/^\((?:(\w[\w-]*):)?(.+)\)$/i,gE=/^\d+\/\d+$/,yE=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,xE=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,bE=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,vE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,wE=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Kr=e=>gE.test(e),_e=e=>!!e&&!Number.isNaN(Number(e)),Ii=e=>!!e&&Number.isInteger(Number(e)),kx=e=>e.endsWith("%")&&_e(e.slice(0,-1)),ui=e=>yE.test(e),kE=()=>!0,SE=e=>xE.test(e)&&!bE.test(e),ph=()=>!1,CE=e=>vE.test(e),jE=e=>wE.test(e),EE=e=>!oe(e)&&!le(e),TE=e=>Cs(e,S2,ph),oe=e=>b2.test(e),Zi=e=>Cs(e,C2,SE),pm=e=>Cs(e,PE,_e),AE=e=>Cs(e,w2,ph),NE=e=>Cs(e,k2,jE),ME=e=>Cs(e,ph,CE),le=e=>v2.test(e),Dc=e=>js(e,C2),RE=e=>js(e,VE),DE=e=>js(e,w2),OE=e=>js(e,S2),_E=e=>js(e,k2),LE=e=>js(e,UE,!0),Cs=(e,t,a)=>{const r=b2.exec(e);return r?r[1]?t(r[1]):a(r[2]):!1},js=(e,t,a=!1)=>{const r=v2.exec(e);return r?r[1]?t(r[1]):a:!1},w2=e=>e==="position",BE=new Set(["image","url"]),k2=e=>BE.has(e),zE=new Set(["length","size","percentage"]),S2=e=>zE.has(e),C2=e=>e==="length",PE=e=>e==="number",VE=e=>e==="family-name",UE=e=>e==="shadow",HE=()=>{const e=Nt("color"),t=Nt("font"),a=Nt("text"),r=Nt("font-weight"),o=Nt("tracking"),c=Nt("leading"),u=Nt("breakpoint"),m=Nt("container"),p=Nt("spacing"),g=Nt("radius"),y=Nt("shadow"),b=Nt("inset-shadow"),v=Nt("drop-shadow"),T=Nt("blur"),S=Nt("perspective"),C=Nt("aspect"),E=Nt("ease"),O=Nt("animate"),D=()=>["auto","avoid","all","avoid-page","page","left","right","column"],M=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],F=()=>["auto","hidden","clip","visible","scroll"],V=()=>["auto","contain","none"],te=()=>[Kr,"px","full","auto",le,oe,p],ie=()=>[Ii,"none","subgrid",le,oe],ae=()=>["auto",{span:["full",Ii,le,oe]},le,oe],W=()=>[Ii,"auto",le,oe],se=()=>["auto","min","max","fr",le,oe],Ae=()=>[le,oe,p],je=()=>["start","end","center","between","around","evenly","stretch","baseline"],Ee=()=>["start","end","center","stretch"],re=()=>[le,oe,p],pe=()=>["px",...re()],K=()=>["px","auto",...re()],_=()=>[Kr,"auto","px","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",le,oe,p],R=()=>[e,le,oe],Z=()=>[kx,Zi],j=()=>["","none","full",g,le,oe],N=()=>["",_e,Dc,Zi],I=()=>["solid","dashed","dotted","double"],ee=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],Q=()=>["","none",T,le,oe],fe=()=>["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",le,oe],de=()=>["none",_e,le,oe],ke=()=>["none",_e,le,oe],xe=()=>[_e,le,oe],Pe=()=>[Kr,"full","px",le,oe,p];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[ui],breakpoint:[ui],color:[kE],container:[ui],"drop-shadow":[ui],ease:["in","out","in-out"],font:[EE],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[ui],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[ui],shadow:[ui],spacing:[_e],text:[ui],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",Kr,oe,le,C]}],container:["container"],columns:[{columns:[_e,oe,le,m]}],"break-after":[{"break-after":D()}],"break-before":[{"break-before":D()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...M(),oe,le]}],overflow:[{overflow:F()}],"overflow-x":[{"overflow-x":F()}],"overflow-y":[{"overflow-y":F()}],overscroll:[{overscroll:V()}],"overscroll-x":[{"overscroll-x":V()}],"overscroll-y":[{"overscroll-y":V()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:te()}],"inset-x":[{"inset-x":te()}],"inset-y":[{"inset-y":te()}],start:[{start:te()}],end:[{end:te()}],top:[{top:te()}],right:[{right:te()}],bottom:[{bottom:te()}],left:[{left:te()}],visibility:["visible","invisible","collapse"],z:[{z:[Ii,"auto",le,oe]}],basis:[{basis:[Kr,"full","auto",le,oe,m,p]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[_e,Kr,"auto","initial","none",oe]}],grow:[{grow:["",_e,le,oe]}],shrink:[{shrink:["",_e,le,oe]}],order:[{order:[Ii,"first","last","none",le,oe]}],"grid-cols":[{"grid-cols":ie()}],"col-start-end":[{col:ae()}],"col-start":[{"col-start":W()}],"col-end":[{"col-end":W()}],"grid-rows":[{"grid-rows":ie()}],"row-start-end":[{row:ae()}],"row-start":[{"row-start":W()}],"row-end":[{"row-end":W()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":se()}],"auto-rows":[{"auto-rows":se()}],gap:[{gap:Ae()}],"gap-x":[{"gap-x":Ae()}],"gap-y":[{"gap-y":Ae()}],"justify-content":[{justify:[...je(),"normal"]}],"justify-items":[{"justify-items":[...Ee(),"normal"]}],"justify-self":[{"justify-self":["auto",...Ee()]}],"align-content":[{content:["normal",...je()]}],"align-items":[{items:[...Ee(),"baseline"]}],"align-self":[{self:["auto",...Ee(),"baseline"]}],"place-content":[{"place-content":je()}],"place-items":[{"place-items":[...Ee(),"baseline"]}],"place-self":[{"place-self":["auto",...Ee()]}],p:[{p:pe()}],px:[{px:pe()}],py:[{py:pe()}],ps:[{ps:pe()}],pe:[{pe:pe()}],pt:[{pt:pe()}],pr:[{pr:pe()}],pb:[{pb:pe()}],pl:[{pl:pe()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":re()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":re()}],"space-y-reverse":["space-y-reverse"],size:[{size:_()}],w:[{w:[m,"screen",..._()]}],"min-w":[{"min-w":[m,"screen","none",..._()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[u]},..._()]}],h:[{h:["screen",..._()]}],"min-h":[{"min-h":["screen","none",..._()]}],"max-h":[{"max-h":["screen",..._()]}],"font-size":[{text:["base",a,Dc,Zi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[r,le,pm]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",kx,oe]}],"font-family":[{font:[RE,oe,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,le,oe]}],"line-clamp":[{"line-clamp":[_e,"none",le,pm]}],leading:[{leading:[le,oe,c,p]}],"list-image":[{"list-image":["none",le,oe]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",le,oe]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:R()}],"text-color":[{text:R()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...I(),"wavy"]}],"text-decoration-thickness":[{decoration:[_e,"from-font","auto",le,Zi]}],"text-decoration-color":[{decoration:R()}],"underline-offset":[{"underline-offset":[_e,"auto",le,oe]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:["px",...re()]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",le,oe]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",le,oe]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...M(),DE,AE]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:["auto","cover","contain",OE,TE]}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Ii,le,oe],radial:["",le,oe],conic:[Ii,le,oe]},_E,NE]}],"bg-color":[{bg:R()}],"gradient-from-pos":[{from:Z()}],"gradient-via-pos":[{via:Z()}],"gradient-to-pos":[{to:Z()}],"gradient-from":[{from:R()}],"gradient-via":[{via:R()}],"gradient-to":[{to:R()}],rounded:[{rounded:j()}],"rounded-s":[{"rounded-s":j()}],"rounded-e":[{"rounded-e":j()}],"rounded-t":[{"rounded-t":j()}],"rounded-r":[{"rounded-r":j()}],"rounded-b":[{"rounded-b":j()}],"rounded-l":[{"rounded-l":j()}],"rounded-ss":[{"rounded-ss":j()}],"rounded-se":[{"rounded-se":j()}],"rounded-ee":[{"rounded-ee":j()}],"rounded-es":[{"rounded-es":j()}],"rounded-tl":[{"rounded-tl":j()}],"rounded-tr":[{"rounded-tr":j()}],"rounded-br":[{"rounded-br":j()}],"rounded-bl":[{"rounded-bl":j()}],"border-w":[{border:N()}],"border-w-x":[{"border-x":N()}],"border-w-y":[{"border-y":N()}],"border-w-s":[{"border-s":N()}],"border-w-e":[{"border-e":N()}],"border-w-t":[{"border-t":N()}],"border-w-r":[{"border-r":N()}],"border-w-b":[{"border-b":N()}],"border-w-l":[{"border-l":N()}],"divide-x":[{"divide-x":N()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":N()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...I(),"hidden","none"]}],"divide-style":[{divide:[...I(),"hidden","none"]}],"border-color":[{border:R()}],"border-color-x":[{"border-x":R()}],"border-color-y":[{"border-y":R()}],"border-color-s":[{"border-s":R()}],"border-color-e":[{"border-e":R()}],"border-color-t":[{"border-t":R()}],"border-color-r":[{"border-r":R()}],"border-color-b":[{"border-b":R()}],"border-color-l":[{"border-l":R()}],"divide-color":[{divide:R()}],"outline-style":[{outline:[...I(),"none","hidden"]}],"outline-offset":[{"outline-offset":[_e,le,oe]}],"outline-w":[{outline:["",_e,Dc,Zi]}],"outline-color":[{outline:[e]}],shadow:[{shadow:["","none",y,LE,ME]}],"shadow-color":[{shadow:R()}],"inset-shadow":[{"inset-shadow":["none",le,oe,b]}],"inset-shadow-color":[{"inset-shadow":R()}],"ring-w":[{ring:N()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:R()}],"ring-offset-w":[{"ring-offset":[_e,Zi]}],"ring-offset-color":[{"ring-offset":R()}],"inset-ring-w":[{"inset-ring":N()}],"inset-ring-color":[{"inset-ring":R()}],opacity:[{opacity:[_e,le,oe]}],"mix-blend":[{"mix-blend":[...ee(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ee()}],filter:[{filter:["","none",le,oe]}],blur:[{blur:Q()}],brightness:[{brightness:[_e,le,oe]}],contrast:[{contrast:[_e,le,oe]}],"drop-shadow":[{"drop-shadow":["","none",v,le,oe]}],grayscale:[{grayscale:["",_e,le,oe]}],"hue-rotate":[{"hue-rotate":[_e,le,oe]}],invert:[{invert:["",_e,le,oe]}],saturate:[{saturate:[_e,le,oe]}],sepia:[{sepia:["",_e,le,oe]}],"backdrop-filter":[{"backdrop-filter":["","none",le,oe]}],"backdrop-blur":[{"backdrop-blur":Q()}],"backdrop-brightness":[{"backdrop-brightness":[_e,le,oe]}],"backdrop-contrast":[{"backdrop-contrast":[_e,le,oe]}],"backdrop-grayscale":[{"backdrop-grayscale":["",_e,le,oe]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[_e,le,oe]}],"backdrop-invert":[{"backdrop-invert":["",_e,le,oe]}],"backdrop-opacity":[{"backdrop-opacity":[_e,le,oe]}],"backdrop-saturate":[{"backdrop-saturate":[_e,le,oe]}],"backdrop-sepia":[{"backdrop-sepia":["",_e,le,oe]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":re()}],"border-spacing-x":[{"border-spacing-x":re()}],"border-spacing-y":[{"border-spacing-y":re()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",le,oe]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[_e,"initial",le,oe]}],ease:[{ease:["linear","initial",E,le,oe]}],delay:[{delay:[_e,le,oe]}],animate:[{animate:["none",O,le,oe]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[S,le,oe]}],"perspective-origin":[{"perspective-origin":fe()}],rotate:[{rotate:de()}],"rotate-x":[{"rotate-x":de()}],"rotate-y":[{"rotate-y":de()}],"rotate-z":[{"rotate-z":de()}],scale:[{scale:ke()}],"scale-x":[{"scale-x":ke()}],"scale-y":[{"scale-y":ke()}],"scale-z":[{"scale-z":ke()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[le,oe,"","none","gpu","cpu"]}],"transform-origin":[{origin:fe()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Pe()}],"translate-x":[{"translate-x":Pe()}],"translate-y":[{"translate-y":Pe()}],"translate-z":[{"translate-z":Pe()}],"translate-none":["translate-none"],accent:[{accent:R()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:R()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",le,oe]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":re()}],"scroll-mx":[{"scroll-mx":re()}],"scroll-my":[{"scroll-my":re()}],"scroll-ms":[{"scroll-ms":re()}],"scroll-me":[{"scroll-me":re()}],"scroll-mt":[{"scroll-mt":re()}],"scroll-mr":[{"scroll-mr":re()}],"scroll-mb":[{"scroll-mb":re()}],"scroll-ml":[{"scroll-ml":re()}],"scroll-p":[{"scroll-p":re()}],"scroll-px":[{"scroll-px":re()}],"scroll-py":[{"scroll-py":re()}],"scroll-ps":[{"scroll-ps":re()}],"scroll-pe":[{"scroll-pe":re()}],"scroll-pt":[{"scroll-pt":re()}],"scroll-pr":[{"scroll-pr":re()}],"scroll-pb":[{"scroll-pb":re()}],"scroll-pl":[{"scroll-pl":re()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",le,oe]}],fill:[{fill:["none",...R()]}],"stroke-w":[{stroke:[_e,Dc,Zi,pm]}],stroke:[{stroke:["none",...R()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["before","after","placeholder","file","marker","selection","first-line","first-letter","backdrop","*","**"]}},qE=hE(HE);function j2(e){var t,a,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(a=j2(e[t]))&&(r&&(r+=" "),r+=a)}else for(a in e)e[a]&&(r&&(r+=" "),r+=a);return r}function FE(){for(var e,t,a=0,r="",o=arguments.length;a<o;a++)(e=arguments[a])&&(t=j2(e))&&(r&&(r+=" "),r+=t);return r}const Ba=({htmlFor:e,children:t,className:a})=>f.jsx("label",{htmlFor:e,className:FE(qE("mb-1.5 block text-sm font-medium text-gray-700 dark:text-gray-400",a)),children:t}),ra=({type:e="text",id:t,name:a,placeholder:r,value:o,onChange:c,className:u="",min:m,max:p,step:g,disabled:y=!1,success:b=!1,error:v=!1,hint:T,autoComplete:S})=>{let C=` h-11 w-full rounded-lg border appearance-none px-4 py-2.5 text-sm shadow-theme-xs placeholder:text-gray-400 focus:outline-hidden focus:ring-3  dark:bg-gray-900 dark:text-white/90 dark:placeholder:text-white/30 ${u}`;return y?C+=" text-gray-500 border-gray-300 opacity-40 bg-gray-100 cursor-not-allowed dark:bg-gray-800 dark:text-gray-400 dark:border-gray-700 opacity-40":v?C+="  border-error-500 focus:border-error-300 focus:ring-error-500/20 dark:text-error-400 dark:border-error-500 dark:focus:border-error-800":b?C+="  border-success-500 focus:border-success-300 focus:ring-success-500/20 dark:text-success-400 dark:border-success-500 dark:focus:border-success-800":C+=" bg-transparent text-gray-800 border-gray-300 focus:border-brand-300 focus:ring-brand-500/20 dark:border-gray-700 dark:text-white/90  dark:focus:border-brand-800",f.jsxs("div",{className:"relative",children:[f.jsx("input",{type:e,id:t,name:a,placeholder:r,value:o,onChange:c,min:m,max:p,step:g,disabled:y,autoComplete:S,className:C}),T&&f.jsx("p",{className:`mt-1.5 text-xs ${v?"text-error-500":b?"text-success-500":"text-gray-500"}`,children:T})]})},$E=({label:e,checked:t,id:a,onChange:r,className:o="",disabled:c=!1})=>f.jsxs("label",{className:`flex items-center space-x-3 group cursor-pointer ${c?"cursor-not-allowed opacity-60":""}`,children:[f.jsxs("div",{className:"relative w-5 h-5",children:[f.jsx("input",{id:a,type:"checkbox",className:`w-5 h-5 appearance-none cursor-pointer dark:border-gray-700 border border-gray-300 checked:border-transparent rounded-md checked:bg-brand-500 disabled:opacity-60 
          ${o}`,checked:t,onChange:u=>r(u.target.checked),disabled:c}),t&&f.jsx("svg",{className:"absolute transform -translate-x-1/2 -translate-y-1/2 pointer-events-none top-1/2 left-1/2",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:f.jsx("path",{d:"M11.6666 3.5L5.24992 9.91667L2.33325 7",stroke:"white",strokeWidth:"1.94437",strokeLinecap:"round",strokeLinejoin:"round"})}),c&&f.jsx("svg",{className:"absolute transform -translate-x-1/2 -translate-y-1/2 pointer-events-none top-1/2 left-1/2",xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",children:f.jsx("path",{d:"M11.6666 3.5L5.24992 9.91667L2.33325 7",stroke:"#E4E7EC",strokeWidth:"2.33333",strokeLinecap:"round",strokeLinejoin:"round"})})]}),e&&f.jsx("span",{className:"text-sm font-medium text-gray-800 dark:text-gray-200",children:e})]}),qt=({children:e,size:t="md",variant:a="primary",startIcon:r,endIcon:o,onClick:c,className:u="",disabled:m=!1,type:p="submit"})=>{const g={sm:"px-4 py-3 text-sm",md:"px-5 py-3.5 text-sm"},y={primary:"bg-brand-500 text-white shadow-theme-xs hover:bg-brand-600 disabled:bg-brand-300",outline:"bg-white text-gray-700 ring-1 ring-inset ring-gray-300 hover:bg-gray-50 dark:bg-gray-800 dark:text-gray-400 dark:ring-gray-700 dark:hover:bg-white/[0.03] dark:hover:text-gray-300"};return f.jsxs("button",{type:p,className:`inline-flex items-center justify-center gap-2 rounded-lg transition ${u} ${g[t]} ${y[a]} ${m?"cursor-not-allowed opacity-50":""}`,onClick:c,disabled:m,children:[r&&f.jsx("span",{className:"flex items-center",children:r}),e,o&&f.jsx("span",{className:"flex items-center",children:o})]})};function E2(e,t){return function(){return e.apply(t,arguments)}}const{toString:YE}=Object.prototype,{getPrototypeOf:hh}=Object,{iterator:_u,toStringTag:T2}=Symbol,Lu=(e=>t=>{const a=YE.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Kn=e=>(e=e.toLowerCase(),t=>Lu(t)===e),Bu=e=>t=>typeof t===e,{isArray:Es}=Array,ms=Bu("undefined");function ul(e){return e!==null&&!ms(e)&&e.constructor!==null&&!ms(e.constructor)&&an(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const A2=Kn("ArrayBuffer");function GE(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&A2(e.buffer),t}const IE=Bu("string"),an=Bu("function"),N2=Bu("number"),dl=e=>e!==null&&typeof e=="object",ZE=e=>e===!0||e===!1,Yc=e=>{if(Lu(e)!=="object")return!1;const t=hh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(T2 in e)&&!(_u in e)},KE=e=>{if(!dl(e)||ul(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},XE=Kn("Date"),WE=Kn("File"),QE=Kn("Blob"),JE=Kn("FileList"),eT=e=>dl(e)&&an(e.pipe),tT=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||an(e.append)&&((t=Lu(e))==="formdata"||t==="object"&&an(e.toString)&&e.toString()==="[object FormData]"))},nT=Kn("URLSearchParams"),[aT,iT,rT,sT]=["ReadableStream","Request","Response","Headers"].map(Kn),oT=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function fl(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Es(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(ul(e))return;const c=a?Object.getOwnPropertyNames(e):Object.keys(e),u=c.length;let m;for(r=0;r<u;r++)m=c[r],t.call(null,e[m],m,e)}}function M2(e,t){if(ul(e))return null;t=t.toLowerCase();const a=Object.keys(e);let r=a.length,o;for(;r-- >0;)if(o=a[r],t===o.toLowerCase())return o;return null}const Ji=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,R2=e=>!ms(e)&&e!==Ji;function ip(){const{caseless:e,skipUndefined:t}=R2(this)&&this||{},a={},r=(o,c)=>{if(c==="__proto__"||c==="constructor"||c==="prototype")return;const u=e&&M2(a,c)||c;Yc(a[u])&&Yc(o)?a[u]=ip(a[u],o):Yc(o)?a[u]=ip({},o):Es(o)?a[u]=o.slice():(!t||!ms(o))&&(a[u]=o)};for(let o=0,c=arguments.length;o<c;o++)arguments[o]&&fl(arguments[o],r);return a}const lT=(e,t,a,{allOwnKeys:r}={})=>(fl(t,(o,c)=>{a&&an(o)?Object.defineProperty(e,c,{value:E2(o,a),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,c,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),cT=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),uT=(e,t,a,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},dT=(e,t,a,r)=>{let o,c,u;const m={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),c=o.length;c-- >0;)u=o[c],(!r||r(u,e,t))&&!m[u]&&(t[u]=e[u],m[u]=!0);e=a!==!1&&hh(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},fT=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const r=e.indexOf(t,a);return r!==-1&&r===a},mT=e=>{if(!e)return null;if(Es(e))return e;let t=e.length;if(!N2(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},pT=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hh(Uint8Array)),hT=(e,t)=>{const r=(e&&e[_u]).call(e);let o;for(;(o=r.next())&&!o.done;){const c=o.value;t.call(e,c[0],c[1])}},gT=(e,t)=>{let a;const r=[];for(;(a=e.exec(t))!==null;)r.push(a);return r},yT=Kn("HTMLFormElement"),xT=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,o){return r.toUpperCase()+o}),Sx=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),bT=Kn("RegExp"),D2=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),r={};fl(a,(o,c)=>{let u;(u=t(o,c,e))!==!1&&(r[c]=u||o)}),Object.defineProperties(e,r)},vT=e=>{D2(e,(t,a)=>{if(an(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const r=e[a];if(an(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},wT=(e,t)=>{const a={},r=o=>{o.forEach(c=>{a[c]=!0})};return Es(e)?r(e):r(String(e).split(t)),a},kT=()=>{},ST=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function CT(e){return!!(e&&an(e.append)&&e[T2]==="FormData"&&e[_u])}const jT=e=>{const t=new Array(10),a=(r,o)=>{if(dl(r)){if(t.indexOf(r)>=0)return;if(ul(r))return r;if(!("toJSON"in r)){t[o]=r;const c=Es(r)?[]:{};return fl(r,(u,m)=>{const p=a(u,o+1);!ms(p)&&(c[m]=p)}),t[o]=void 0,c}}return r};return a(e,0)},ET=Kn("AsyncFunction"),TT=e=>e&&(dl(e)||an(e))&&an(e.then)&&an(e.catch),O2=((e,t)=>e?setImmediate:t?((a,r)=>(Ji.addEventListener("message",({source:o,data:c})=>{o===Ji&&c===a&&r.length&&r.shift()()},!1),o=>{r.push(o),Ji.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",an(Ji.postMessage)),AT=typeof queueMicrotask<"u"?queueMicrotask.bind(Ji):typeof process<"u"&&process.nextTick||O2,NT=e=>e!=null&&an(e[_u]),H={isArray:Es,isArrayBuffer:A2,isBuffer:ul,isFormData:tT,isArrayBufferView:GE,isString:IE,isNumber:N2,isBoolean:ZE,isObject:dl,isPlainObject:Yc,isEmptyObject:KE,isReadableStream:aT,isRequest:iT,isResponse:rT,isHeaders:sT,isUndefined:ms,isDate:XE,isFile:WE,isBlob:QE,isRegExp:bT,isFunction:an,isStream:eT,isURLSearchParams:nT,isTypedArray:pT,isFileList:JE,forEach:fl,merge:ip,extend:lT,trim:oT,stripBOM:cT,inherits:uT,toFlatObject:dT,kindOf:Lu,kindOfTest:Kn,endsWith:fT,toArray:mT,forEachEntry:hT,matchAll:gT,isHTMLForm:yT,hasOwnProperty:Sx,hasOwnProp:Sx,reduceDescriptors:D2,freezeMethods:vT,toObjectSet:wT,toCamelCase:xT,noop:kT,toFiniteNumber:ST,findKey:M2,global:Ji,isContextDefined:R2,isSpecCompliantForm:CT,toJSONObject:jT,isAsyncFn:ET,isThenable:TT,setImmediate:O2,asap:AT,isIterable:NT};let Se=class _2 extends Error{static from(t,a,r,o,c,u){const m=new _2(t.message,a||t.code,r,o,c);return m.cause=t,m.name=t.name,u&&Object.assign(m,u),m}constructor(t,a,r,o,c){super(t),this.name="AxiosError",this.isAxiosError=!0,a&&(this.code=a),r&&(this.config=r),o&&(this.request=o),c&&(this.response=c,this.status=c.status)}toJSON(){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:H.toJSONObject(this.config),code:this.code,status:this.status}}};Se.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";Se.ERR_BAD_OPTION="ERR_BAD_OPTION";Se.ECONNABORTED="ECONNABORTED";Se.ETIMEDOUT="ETIMEDOUT";Se.ERR_NETWORK="ERR_NETWORK";Se.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";Se.ERR_DEPRECATED="ERR_DEPRECATED";Se.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";Se.ERR_BAD_REQUEST="ERR_BAD_REQUEST";Se.ERR_CANCELED="ERR_CANCELED";Se.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";Se.ERR_INVALID_URL="ERR_INVALID_URL";const MT=null;function rp(e){return H.isPlainObject(e)||H.isArray(e)}function L2(e){return H.endsWith(e,"[]")?e.slice(0,-2):e}function Cx(e,t,a){return e?e.concat(t).map(function(o,c){return o=L2(o),!a&&c?"["+o+"]":o}).join(a?".":""):t}function RT(e){return H.isArray(e)&&!e.some(rp)}const DT=H.toFlatObject(H,{},null,function(t){return/^is[A-Z]/.test(t)});function zu(e,t,a){if(!H.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=H.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(C,E){return!H.isUndefined(E[C])});const r=a.metaTokens,o=a.visitor||y,c=a.dots,u=a.indexes,p=(a.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(t);if(!H.isFunction(o))throw new TypeError("visitor must be a function");function g(S){if(S===null)return"";if(H.isDate(S))return S.toISOString();if(H.isBoolean(S))return S.toString();if(!p&&H.isBlob(S))throw new Se("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(S)||H.isTypedArray(S)?p&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function y(S,C,E){let O=S;if(S&&!E&&typeof S=="object"){if(H.endsWith(C,"{}"))C=r?C:C.slice(0,-2),S=JSON.stringify(S);else if(H.isArray(S)&&RT(S)||(H.isFileList(S)||H.endsWith(C,"[]"))&&(O=H.toArray(S)))return C=L2(C),O.forEach(function(M,F){!(H.isUndefined(M)||M===null)&&t.append(u===!0?Cx([C],F,c):u===null?C:C+"[]",g(M))}),!1}return rp(S)?!0:(t.append(Cx(E,C,c),g(S)),!1)}const b=[],v=Object.assign(DT,{defaultVisitor:y,convertValue:g,isVisitable:rp});function T(S,C){if(!H.isUndefined(S)){if(b.indexOf(S)!==-1)throw Error("Circular reference detected in "+C.join("."));b.push(S),H.forEach(S,function(O,D){(!(H.isUndefined(O)||O===null)&&o.call(t,O,H.isString(D)?D.trim():D,C,v))===!0&&T(O,C?C.concat(D):[D])}),b.pop()}}if(!H.isObject(e))throw new TypeError("data must be an object");return T(e),t}function jx(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function gh(e,t){this._pairs=[],e&&zu(e,this,t)}const B2=gh.prototype;B2.append=function(t,a){this._pairs.push([t,a])};B2.toString=function(t){const a=t?function(r){return t.call(this,r,jx)}:jx;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function OT(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function z2(e,t,a){if(!t)return e;const r=a&&a.encode||OT,o=H.isFunction(a)?{serialize:a}:a,c=o&&o.serialize;let u;if(c?u=c(t,o):u=H.isURLSearchParams(t)?t.toString():new gh(t,o).toString(r),u){const m=e.indexOf("#");m!==-1&&(e=e.slice(0,m)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class Ex{constructor(){this.handlers=[]}use(t,a,r){return this.handlers.push({fulfilled:t,rejected:a,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){H.forEach(this.handlers,function(r){r!==null&&t(r)})}}const yh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},_T=typeof URLSearchParams<"u"?URLSearchParams:gh,LT=typeof FormData<"u"?FormData:null,BT=typeof Blob<"u"?Blob:null,zT={isBrowser:!0,classes:{URLSearchParams:_T,FormData:LT,Blob:BT},protocols:["http","https","file","blob","url","data"]},xh=typeof window<"u"&&typeof document<"u",sp=typeof navigator=="object"&&navigator||void 0,PT=xh&&(!sp||["ReactNative","NativeScript","NS"].indexOf(sp.product)<0),VT=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",UT=xh&&window.location.href||"http://localhost",HT=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:xh,hasStandardBrowserEnv:PT,hasStandardBrowserWebWorkerEnv:VT,navigator:sp,origin:UT},Symbol.toStringTag,{value:"Module"})),Ht={...HT,...zT};function qT(e,t){return zu(e,new Ht.classes.URLSearchParams,{visitor:function(a,r,o,c){return Ht.isNode&&H.isBuffer(a)?(this.append(r,a.toString("base64")),!1):c.defaultVisitor.apply(this,arguments)},...t})}function FT(e){return H.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function $T(e){const t={},a=Object.keys(e);let r;const o=a.length;let c;for(r=0;r<o;r++)c=a[r],t[c]=e[c];return t}function P2(e){function t(a,r,o,c){let u=a[c++];if(u==="__proto__")return!0;const m=Number.isFinite(+u),p=c>=a.length;return u=!u&&H.isArray(o)?o.length:u,p?(H.hasOwnProp(o,u)?o[u]=[o[u],r]:o[u]=r,!m):((!o[u]||!H.isObject(o[u]))&&(o[u]=[]),t(a,r,o[u],c)&&H.isArray(o[u])&&(o[u]=$T(o[u])),!m)}if(H.isFormData(e)&&H.isFunction(e.entries)){const a={};return H.forEachEntry(e,(r,o)=>{t(FT(r),o,a,0)}),a}return null}function YT(e,t,a){if(H.isString(e))try{return(t||JSON.parse)(e),H.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(a||JSON.stringify)(e)}const ml={transitional:yh,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const r=a.getContentType()||"",o=r.indexOf("application/json")>-1,c=H.isObject(t);if(c&&H.isHTMLForm(t)&&(t=new FormData(t)),H.isFormData(t))return o?JSON.stringify(P2(t)):t;if(H.isArrayBuffer(t)||H.isBuffer(t)||H.isStream(t)||H.isFile(t)||H.isBlob(t)||H.isReadableStream(t))return t;if(H.isArrayBufferView(t))return t.buffer;if(H.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let m;if(c){if(r.indexOf("application/x-www-form-urlencoded")>-1)return qT(t,this.formSerializer).toString();if((m=H.isFileList(t))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return zu(m?{"files[]":t}:t,p&&new p,this.formSerializer)}}return c||o?(a.setContentType("application/json",!1),YT(t)):t}],transformResponse:[function(t){const a=this.transitional||ml.transitional,r=a&&a.forcedJSONParsing,o=this.responseType==="json";if(H.isResponse(t)||H.isReadableStream(t))return t;if(t&&H.isString(t)&&(r&&!this.responseType||o)){const u=!(a&&a.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(m){if(u)throw m.name==="SyntaxError"?Se.from(m,Se.ERR_BAD_RESPONSE,this,null,this.response):m}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ht.classes.FormData,Blob:Ht.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],e=>{ml.headers[e]={}});const GT=H.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"]),IT=e=>{const t={};let a,r,o;return e&&e.split(`
`).forEach(function(u){o=u.indexOf(":"),a=u.substring(0,o).trim().toLowerCase(),r=u.substring(o+1).trim(),!(!a||t[a]&&GT[a])&&(a==="set-cookie"?t[a]?t[a].push(r):t[a]=[r]:t[a]=t[a]?t[a]+", "+r:r)}),t},Tx=Symbol("internals");function Lo(e){return e&&String(e).trim().toLowerCase()}function Gc(e){return e===!1||e==null?e:H.isArray(e)?e.map(Gc):String(e)}function ZT(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=a.exec(e);)t[r[1]]=r[2];return t}const KT=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function hm(e,t,a,r,o){if(H.isFunction(r))return r.call(this,t,a);if(o&&(t=a),!!H.isString(t)){if(H.isString(r))return t.indexOf(r)!==-1;if(H.isRegExp(r))return r.test(t)}}function XT(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,r)=>a.toUpperCase()+r)}function WT(e,t){const a=H.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+a,{value:function(o,c,u){return this[r].call(this,t,o,c,u)},configurable:!0})})}let rn=class{constructor(t){t&&this.set(t)}set(t,a,r){const o=this;function c(m,p,g){const y=Lo(p);if(!y)throw new Error("header name must be a non-empty string");const b=H.findKey(o,y);(!b||o[b]===void 0||g===!0||g===void 0&&o[b]!==!1)&&(o[b||p]=Gc(m))}const u=(m,p)=>H.forEach(m,(g,y)=>c(g,y,p));if(H.isPlainObject(t)||t instanceof this.constructor)u(t,a);else if(H.isString(t)&&(t=t.trim())&&!KT(t))u(IT(t),a);else if(H.isObject(t)&&H.isIterable(t)){let m={},p,g;for(const y of t){if(!H.isArray(y))throw TypeError("Object iterator must return a key-value pair");m[g=y[0]]=(p=m[g])?H.isArray(p)?[...p,y[1]]:[p,y[1]]:y[1]}u(m,a)}else t!=null&&c(a,t,r);return this}get(t,a){if(t=Lo(t),t){const r=H.findKey(this,t);if(r){const o=this[r];if(!a)return o;if(a===!0)return ZT(o);if(H.isFunction(a))return a.call(this,o,r);if(H.isRegExp(a))return a.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=Lo(t),t){const r=H.findKey(this,t);return!!(r&&this[r]!==void 0&&(!a||hm(this,this[r],r,a)))}return!1}delete(t,a){const r=this;let o=!1;function c(u){if(u=Lo(u),u){const m=H.findKey(r,u);m&&(!a||hm(r,r[m],m,a))&&(delete r[m],o=!0)}}return H.isArray(t)?t.forEach(c):c(t),o}clear(t){const a=Object.keys(this);let r=a.length,o=!1;for(;r--;){const c=a[r];(!t||hm(this,this[c],c,t,!0))&&(delete this[c],o=!0)}return o}normalize(t){const a=this,r={};return H.forEach(this,(o,c)=>{const u=H.findKey(r,c);if(u){a[u]=Gc(o),delete a[c];return}const m=t?XT(c):String(c).trim();m!==c&&delete a[c],a[m]=Gc(o),r[m]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return H.forEach(this,(r,o)=>{r!=null&&r!==!1&&(a[o]=t&&H.isArray(r)?r.join(", "):r)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).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,...a){const r=new this(t);return a.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[Tx]=this[Tx]={accessors:{}}).accessors,o=this.prototype;function c(u){const m=Lo(u);r[m]||(WT(o,u),r[m]=!0)}return H.isArray(t)?t.forEach(c):c(t),this}};rn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);H.reduceDescriptors(rn.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[a]=r}}});H.freezeMethods(rn);function gm(e,t){const a=this||ml,r=t||a,o=rn.from(r.headers);let c=r.data;return H.forEach(e,function(m){c=m.call(a,c,o.normalize(),t?t.status:void 0)}),o.normalize(),c}function V2(e){return!!(e&&e.__CANCEL__)}let pl=class extends Se{constructor(t,a,r){super(t??"canceled",Se.ERR_CANCELED,a,r),this.name="CanceledError",this.__CANCEL__=!0}};function U2(e,t,a){const r=a.config.validateStatus;!a.status||!r||r(a.status)?e(a):t(new Se("Request failed with status code "+a.status,[Se.ERR_BAD_REQUEST,Se.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function QT(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function JT(e,t){e=e||10;const a=new Array(e),r=new Array(e);let o=0,c=0,u;return t=t!==void 0?t:1e3,function(p){const g=Date.now(),y=r[c];u||(u=g),a[o]=p,r[o]=g;let b=c,v=0;for(;b!==o;)v+=a[b++],b=b%e;if(o=(o+1)%e,o===c&&(c=(c+1)%e),g-u<t)return;const T=y&&g-y;return T?Math.round(v*1e3/T):void 0}}function eA(e,t){let a=0,r=1e3/t,o,c;const u=(g,y=Date.now())=>{a=y,o=null,c&&(clearTimeout(c),c=null),e(...g)};return[(...g)=>{const y=Date.now(),b=y-a;b>=r?u(g,y):(o=g,c||(c=setTimeout(()=>{c=null,u(o)},r-b)))},()=>o&&u(o)]}const fu=(e,t,a=3)=>{let r=0;const o=JT(50,250);return eA(c=>{const u=c.loaded,m=c.lengthComputable?c.total:void 0,p=u-r,g=o(p),y=u<=m;r=u;const b={loaded:u,total:m,progress:m?u/m:void 0,bytes:p,rate:g||void 0,estimated:g&&m&&y?(m-u)/g:void 0,event:c,lengthComputable:m!=null,[t?"download":"upload"]:!0};e(b)},a)},Ax=(e,t)=>{const a=e!=null;return[r=>t[0]({lengthComputable:a,total:e,loaded:r}),t[1]]},Nx=e=>(...t)=>H.asap(()=>e(...t)),tA=Ht.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,Ht.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(Ht.origin),Ht.navigator&&/(msie|trident)/i.test(Ht.navigator.userAgent)):()=>!0,nA=Ht.hasStandardBrowserEnv?{write(e,t,a,r,o,c,u){if(typeof document>"u")return;const m=[`${e}=${encodeURIComponent(t)}`];H.isNumber(a)&&m.push(`expires=${new Date(a).toUTCString()}`),H.isString(r)&&m.push(`path=${r}`),H.isString(o)&&m.push(`domain=${o}`),c===!0&&m.push("secure"),H.isString(u)&&m.push(`SameSite=${u}`),document.cookie=m.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 aA(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function iA(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function H2(e,t,a){let r=!aA(t);return e&&(r||a==!1)?iA(e,t):t}const Mx=e=>e instanceof rn?{...e}:e;function lr(e,t){t=t||{};const a={};function r(g,y,b,v){return H.isPlainObject(g)&&H.isPlainObject(y)?H.merge.call({caseless:v},g,y):H.isPlainObject(y)?H.merge({},y):H.isArray(y)?y.slice():y}function o(g,y,b,v){if(H.isUndefined(y)){if(!H.isUndefined(g))return r(void 0,g,b,v)}else return r(g,y,b,v)}function c(g,y){if(!H.isUndefined(y))return r(void 0,y)}function u(g,y){if(H.isUndefined(y)){if(!H.isUndefined(g))return r(void 0,g)}else return r(void 0,y)}function m(g,y,b){if(b in t)return r(g,y);if(b in e)return r(void 0,g)}const p={url:c,method:c,data:c,baseURL:u,transformRequest:u,transformResponse:u,paramsSerializer:u,timeout:u,timeoutMessage:u,withCredentials:u,withXSRFToken:u,adapter:u,responseType:u,xsrfCookieName:u,xsrfHeaderName:u,onUploadProgress:u,onDownloadProgress:u,decompress:u,maxContentLength:u,maxBodyLength:u,beforeRedirect:u,transport:u,httpAgent:u,httpsAgent:u,cancelToken:u,socketPath:u,responseEncoding:u,validateStatus:m,headers:(g,y,b)=>o(Mx(g),Mx(y),b,!0)};return H.forEach(Object.keys({...e,...t}),function(y){if(y==="__proto__"||y==="constructor"||y==="prototype")return;const b=H.hasOwnProp(p,y)?p[y]:o,v=b(e[y],t[y],y);H.isUndefined(v)&&b!==m||(a[y]=v)}),a}const q2=e=>{const t=lr({},e);let{data:a,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:c,headers:u,auth:m}=t;if(t.headers=u=rn.from(u),t.url=z2(H2(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),m&&u.set("Authorization","Basic "+btoa((m.username||"")+":"+(m.password?unescape(encodeURIComponent(m.password)):""))),H.isFormData(a)){if(Ht.hasStandardBrowserEnv||Ht.hasStandardBrowserWebWorkerEnv)u.setContentType(void 0);else if(H.isFunction(a.getHeaders)){const p=a.getHeaders(),g=["content-type","content-length"];Object.entries(p).forEach(([y,b])=>{g.includes(y.toLowerCase())&&u.set(y,b)})}}if(Ht.hasStandardBrowserEnv&&(r&&H.isFunction(r)&&(r=r(t)),r||r!==!1&&tA(t.url))){const p=o&&c&&nA.read(c);p&&u.set(o,p)}return t},rA=typeof XMLHttpRequest<"u",sA=rA&&function(e){return new Promise(function(a,r){const o=q2(e);let c=o.data;const u=rn.from(o.headers).normalize();let{responseType:m,onUploadProgress:p,onDownloadProgress:g}=o,y,b,v,T,S;function C(){T&&T(),S&&S(),o.cancelToken&&o.cancelToken.unsubscribe(y),o.signal&&o.signal.removeEventListener("abort",y)}let E=new XMLHttpRequest;E.open(o.method.toUpperCase(),o.url,!0),E.timeout=o.timeout;function O(){if(!E)return;const M=rn.from("getAllResponseHeaders"in E&&E.getAllResponseHeaders()),V={data:!m||m==="text"||m==="json"?E.responseText:E.response,status:E.status,statusText:E.statusText,headers:M,config:e,request:E};U2(function(ie){a(ie),C()},function(ie){r(ie),C()},V),E=null}"onloadend"in E?E.onloadend=O:E.onreadystatechange=function(){!E||E.readyState!==4||E.status===0&&!(E.responseURL&&E.responseURL.indexOf("file:")===0)||setTimeout(O)},E.onabort=function(){E&&(r(new Se("Request aborted",Se.ECONNABORTED,e,E)),E=null)},E.onerror=function(F){const V=F&&F.message?F.message:"Network Error",te=new Se(V,Se.ERR_NETWORK,e,E);te.event=F||null,r(te),E=null},E.ontimeout=function(){let F=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const V=o.transitional||yh;o.timeoutErrorMessage&&(F=o.timeoutErrorMessage),r(new Se(F,V.clarifyTimeoutError?Se.ETIMEDOUT:Se.ECONNABORTED,e,E)),E=null},c===void 0&&u.setContentType(null),"setRequestHeader"in E&&H.forEach(u.toJSON(),function(F,V){E.setRequestHeader(V,F)}),H.isUndefined(o.withCredentials)||(E.withCredentials=!!o.withCredentials),m&&m!=="json"&&(E.responseType=o.responseType),g&&([v,S]=fu(g,!0),E.addEventListener("progress",v)),p&&E.upload&&([b,T]=fu(p),E.upload.addEventListener("progress",b),E.upload.addEventListener("loadend",T)),(o.cancelToken||o.signal)&&(y=M=>{E&&(r(!M||M.type?new pl(null,e,E):M),E.abort(),E=null)},o.cancelToken&&o.cancelToken.subscribe(y),o.signal&&(o.signal.aborted?y():o.signal.addEventListener("abort",y)));const D=QT(o.url);if(D&&Ht.protocols.indexOf(D)===-1){r(new Se("Unsupported protocol "+D+":",Se.ERR_BAD_REQUEST,e));return}E.send(c||null)})},oA=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let r=new AbortController,o;const c=function(g){if(!o){o=!0,m();const y=g instanceof Error?g:this.reason;r.abort(y instanceof Se?y:new pl(y instanceof Error?y.message:y))}};let u=t&&setTimeout(()=>{u=null,c(new Se(`timeout of ${t}ms exceeded`,Se.ETIMEDOUT))},t);const m=()=>{e&&(u&&clearTimeout(u),u=null,e.forEach(g=>{g.unsubscribe?g.unsubscribe(c):g.removeEventListener("abort",c)}),e=null)};e.forEach(g=>g.addEventListener("abort",c));const{signal:p}=r;return p.unsubscribe=()=>H.asap(m),p}},lA=function*(e,t){let a=e.byteLength;if(a<t){yield e;return}let r=0,o;for(;r<a;)o=r+t,yield e.slice(r,o),r=o},cA=async function*(e,t){for await(const a of uA(e))yield*lA(a,t)},uA=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:r}=await t.read();if(a)break;yield r}}finally{await t.cancel()}},Rx=(e,t,a,r)=>{const o=cA(e,t);let c=0,u,m=p=>{u||(u=!0,r&&r(p))};return new ReadableStream({async pull(p){try{const{done:g,value:y}=await o.next();if(g){m(),p.close();return}let b=y.byteLength;if(a){let v=c+=b;a(v)}p.enqueue(new Uint8Array(y))}catch(g){throw m(g),g}},cancel(p){return m(p),o.return()}},{highWaterMark:2})},Dx=64*1024,{isFunction:Oc}=H,dA=(({Request:e,Response:t})=>({Request:e,Response:t}))(H.global),{ReadableStream:Ox,TextEncoder:_x}=H.global,Lx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fA=e=>{e=H.merge.call({skipUndefined:!0},dA,e);const{fetch:t,Request:a,Response:r}=e,o=t?Oc(t):typeof fetch=="function",c=Oc(a),u=Oc(r);if(!o)return!1;const m=o&&Oc(Ox),p=o&&(typeof _x=="function"?(S=>C=>S.encode(C))(new _x):async S=>new Uint8Array(await new a(S).arrayBuffer())),g=c&&m&&Lx(()=>{let S=!1;const C=new a(Ht.origin,{body:new Ox,method:"POST",get duplex(){return S=!0,"half"}}).headers.has("Content-Type");return S&&!C}),y=u&&m&&Lx(()=>H.isReadableStream(new r("").body)),b={stream:y&&(S=>S.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(S=>{!b[S]&&(b[S]=(C,E)=>{let O=C&&C[S];if(O)return O.call(C);throw new Se(`Response type '${S}' is not supported`,Se.ERR_NOT_SUPPORT,E)})});const v=async S=>{if(S==null)return 0;if(H.isBlob(S))return S.size;if(H.isSpecCompliantForm(S))return(await new a(Ht.origin,{method:"POST",body:S}).arrayBuffer()).byteLength;if(H.isArrayBufferView(S)||H.isArrayBuffer(S))return S.byteLength;if(H.isURLSearchParams(S)&&(S=S+""),H.isString(S))return(await p(S)).byteLength},T=async(S,C)=>{const E=H.toFiniteNumber(S.getContentLength());return E??v(C)};return async S=>{let{url:C,method:E,data:O,signal:D,cancelToken:M,timeout:F,onDownloadProgress:V,onUploadProgress:te,responseType:ie,headers:ae,withCredentials:W="same-origin",fetchOptions:se}=q2(S),Ae=t||fetch;ie=ie?(ie+"").toLowerCase():"text";let je=oA([D,M&&M.toAbortSignal()],F),Ee=null;const re=je&&je.unsubscribe&&(()=>{je.unsubscribe()});let pe;try{if(te&&g&&E!=="get"&&E!=="head"&&(pe=await T(ae,O))!==0){let N=new a(C,{method:"POST",body:O,duplex:"half"}),I;if(H.isFormData(O)&&(I=N.headers.get("content-type"))&&ae.setContentType(I),N.body){const[ee,Q]=Ax(pe,fu(Nx(te)));O=Rx(N.body,Dx,ee,Q)}}H.isString(W)||(W=W?"include":"omit");const K=c&&"credentials"in a.prototype,_={...se,signal:je,method:E.toUpperCase(),headers:ae.normalize().toJSON(),body:O,duplex:"half",credentials:K?W:void 0};Ee=c&&new a(C,_);let R=await(c?Ae(Ee,se):Ae(C,_));const Z=y&&(ie==="stream"||ie==="response");if(y&&(V||Z&&re)){const N={};["status","statusText","headers"].forEach(fe=>{N[fe]=R[fe]});const I=H.toFiniteNumber(R.headers.get("content-length")),[ee,Q]=V&&Ax(I,fu(Nx(V),!0))||[];R=new r(Rx(R.body,Dx,ee,()=>{Q&&Q(),re&&re()}),N)}ie=ie||"text";let j=await b[H.findKey(b,ie)||"text"](R,S);return!Z&&re&&re(),await new Promise((N,I)=>{U2(N,I,{data:j,headers:rn.from(R.headers),status:R.status,statusText:R.statusText,config:S,request:Ee})})}catch(K){throw re&&re(),K&&K.name==="TypeError"&&/Load failed|fetch/i.test(K.message)?Object.assign(new Se("Network Error",Se.ERR_NETWORK,S,Ee,K&&K.response),{cause:K.cause||K}):Se.from(K,K&&K.code,S,Ee,K&&K.response)}}},mA=new Map,F2=e=>{let t=e&&e.env||{};const{fetch:a,Request:r,Response:o}=t,c=[r,o,a];let u=c.length,m=u,p,g,y=mA;for(;m--;)p=c[m],g=y.get(p),g===void 0&&y.set(p,g=m?new Map:fA(t)),y=g;return g};F2();const bh={http:MT,xhr:sA,fetch:{get:F2}};H.forEach(bh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Bx=e=>`- ${e}`,pA=e=>H.isFunction(e)||e===null||e===!1;function hA(e,t){e=H.isArray(e)?e:[e];const{length:a}=e;let r,o;const c={};for(let u=0;u<a;u++){r=e[u];let m;if(o=r,!pA(r)&&(o=bh[(m=String(r)).toLowerCase()],o===void 0))throw new Se(`Unknown adapter '${m}'`);if(o&&(H.isFunction(o)||(o=o.get(t))))break;c[m||"#"+u]=o}if(!o){const u=Object.entries(c).map(([p,g])=>`adapter ${p} `+(g===!1?"is not supported by the environment":"is not available in the build"));let m=a?u.length>1?`since :
`+u.map(Bx).join(`
`):" "+Bx(u[0]):"as no adapter specified";throw new Se("There is no suitable adapter to dispatch the request "+m,"ERR_NOT_SUPPORT")}return o}const $2={getAdapter:hA,adapters:bh};function ym(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new pl(null,e)}function zx(e){return ym(e),e.headers=rn.from(e.headers),e.data=gm.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$2.getAdapter(e.adapter||ml.adapter,e)(e).then(function(r){return ym(e),r.data=gm.call(e,e.transformResponse,r),r.headers=rn.from(r.headers),r},function(r){return V2(r)||(ym(e),r&&r.response&&(r.response.data=gm.call(e,e.transformResponse,r.response),r.response.headers=rn.from(r.response.headers))),Promise.reject(r)})}const Y2="1.13.5",Pu={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Pu[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Px={};Pu.transitional=function(t,a,r){function o(c,u){return"[Axios v"+Y2+"] Transitional option '"+c+"'"+u+(r?". "+r:"")}return(c,u,m)=>{if(t===!1)throw new Se(o(u," has been removed"+(a?" in "+a:"")),Se.ERR_DEPRECATED);return a&&!Px[u]&&(Px[u]=!0,console.warn(o(u," has been deprecated since v"+a+" and will be removed in the near future"))),t?t(c,u,m):!0}};Pu.spelling=function(t){return(a,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function gA(e,t,a){if(typeof e!="object")throw new Se("options must be an object",Se.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const c=r[o],u=t[c];if(u){const m=e[c],p=m===void 0||u(m,c,e);if(p!==!0)throw new Se("option "+c+" must be "+p,Se.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Se("Unknown option "+c,Se.ERR_BAD_OPTION)}}const Ic={assertOptions:gA,validators:Pu},Rn=Ic.validators;let ir=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Ex,response:new Ex}}async request(t,a){try{return await this._request(t,a)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const c=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?c&&!String(r.stack).endsWith(c.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+c):r.stack=c}catch{}}throw r}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=lr(this.defaults,a);const{transitional:r,paramsSerializer:o,headers:c}=a;r!==void 0&&Ic.assertOptions(r,{silentJSONParsing:Rn.transitional(Rn.boolean),forcedJSONParsing:Rn.transitional(Rn.boolean),clarifyTimeoutError:Rn.transitional(Rn.boolean),legacyInterceptorReqResOrdering:Rn.transitional(Rn.boolean)},!1),o!=null&&(H.isFunction(o)?a.paramsSerializer={serialize:o}:Ic.assertOptions(o,{encode:Rn.function,serialize:Rn.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),Ic.assertOptions(a,{baseUrl:Rn.spelling("baseURL"),withXsrfToken:Rn.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let u=c&&H.merge(c.common,c[a.method]);c&&H.forEach(["delete","get","head","post","put","patch","common"],S=>{delete c[S]}),a.headers=rn.concat(u,c);const m=[];let p=!0;this.interceptors.request.forEach(function(C){if(typeof C.runWhen=="function"&&C.runWhen(a)===!1)return;p=p&&C.synchronous;const E=a.transitional||yh;E&&E.legacyInterceptorReqResOrdering?m.unshift(C.fulfilled,C.rejected):m.push(C.fulfilled,C.rejected)});const g=[];this.interceptors.response.forEach(function(C){g.push(C.fulfilled,C.rejected)});let y,b=0,v;if(!p){const S=[zx.bind(this),void 0];for(S.unshift(...m),S.push(...g),v=S.length,y=Promise.resolve(a);b<v;)y=y.then(S[b++],S[b++]);return y}v=m.length;let T=a;for(;b<v;){const S=m[b++],C=m[b++];try{T=S(T)}catch(E){C.call(this,E);break}}try{y=zx.call(this,T)}catch(S){return Promise.reject(S)}for(b=0,v=g.length;b<v;)y=y.then(g[b++],g[b++]);return y}getUri(t){t=lr(this.defaults,t);const a=H2(t.baseURL,t.url,t.allowAbsoluteUrls);return z2(a,t.params,t.paramsSerializer)}};H.forEach(["delete","get","head","options"],function(t){ir.prototype[t]=function(a,r){return this.request(lr(r||{},{method:t,url:a,data:(r||{}).data}))}});H.forEach(["post","put","patch"],function(t){function a(r){return function(c,u,m){return this.request(lr(m||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:c,data:u}))}}ir.prototype[t]=a(),ir.prototype[t+"Form"]=a(!0)});let yA=class G2{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(c){a=c});const r=this;this.promise.then(o=>{if(!r._listeners)return;let c=r._listeners.length;for(;c-- >0;)r._listeners[c](o);r._listeners=null}),this.promise.then=o=>{let c;const u=new Promise(m=>{r.subscribe(m),c=m}).then(o);return u.cancel=function(){r.unsubscribe(c)},u},t(function(c,u,m){r.reason||(r.reason=new pl(c,u,m),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=r=>{t.abort(r)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new G2(function(o){t=o}),cancel:t}}};function xA(e){return function(a){return e.apply(null,a)}}function bA(e){return H.isObject(e)&&e.isAxiosError===!0}const op={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(op).forEach(([e,t])=>{op[t]=e});function I2(e){const t=new ir(e),a=E2(ir.prototype.request,t);return H.extend(a,ir.prototype,t,{allOwnKeys:!0}),H.extend(a,t,null,{allOwnKeys:!0}),a.create=function(o){return I2(lr(e,o))},a}const tt=I2(ml);tt.Axios=ir;tt.CanceledError=pl;tt.CancelToken=yA;tt.isCancel=V2;tt.VERSION=Y2;tt.toFormData=zu;tt.AxiosError=Se;tt.Cancel=tt.CanceledError;tt.all=function(t){return Promise.all(t)};tt.spread=xA;tt.isAxiosError=bA;tt.mergeConfig=lr;tt.AxiosHeaders=rn;tt.formToJSON=e=>P2(H.isHTMLForm(e)?new FormData(e):e);tt.getAdapter=$2.getAdapter;tt.HttpStatusCode=op;tt.default=tt;const{Axios:lz,AxiosError:cz,CanceledError:uz,isCancel:dz,CancelToken:fz,VERSION:mz,all:pz,Cancel:hz,isAxiosError:gz,spread:yz,toFormData:xz,AxiosHeaders:bz,HttpStatusCode:vz,formToJSON:wz,getAdapter:kz,mergeConfig:Sz}=tt,vA="https://backend-compare-absensi.fjrmns.my.id",wA=vA,kA="https://backend-compare-absensi.fjrmns.my.id".trim(),SA=(kA||wA).replace(/\/+$/,"");function CA(){return SA}function jA(e){if(!e)return"";const t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t!=null&&t[1])return decodeURIComponent(t[1].replace(/"/g,""));const a=e.match(/filename="?([^";]+)"?/i);return(a==null?void 0:a[1])||""}async function lp(e,t="download"){const a=await Le.get(e,{responseType:"blob"}),r=jA(a.headers["content-disposition"])||t,o=a.data instanceof Blob?a.data:new Blob([a.data],{type:a.headers["content-type"]||"application/octet-stream"}),c=URL.createObjectURL(o),u=document.createElement("a");u.href=c,u.download=r,document.body.appendChild(u),u.click(),u.remove(),URL.revokeObjectURL(c)}const Le=tt.create({baseURL:CA(),headers:{"Content-Type":"application/json"}});Le.interceptors.request.use(e=>{const t=localStorage.getItem(qe.token)||"";return t&&(e.headers.Authorization=`Bearer ${t}`),e});Le.interceptors.response.use(e=>e,e=>{var o,c,u;const t=(o=e==null?void 0:e.response)==null?void 0:o.status,a=((c=e==null?void 0:e.response)==null?void 0:c.data)||{},r=String(((u=e==null?void 0:e.config)==null?void 0:u.url)||"");return Zp(t,a,r)&&Kp(),Promise.reject(e)});const EA=7,TA=5e3,AA=/^(?:[A-Z0-9._%+-]+)@(?:[A-Z0-9.-]+)\.(?:[A-Z]{2,})$/i;function Vx(e){return typeof e=="string"&&e.includes("@")}function NA(e){var t,a,r;return(e==null?void 0:e.accessToken)||(e==null?void 0:e.access_token)||(e==null?void 0:e.token)||((t=e==null?void 0:e.data)==null?void 0:t.accessToken)||((a=e==null?void 0:e.data)==null?void 0:a.access_token)||((r=e==null?void 0:e.data)==null?void 0:r.token)}function MA(e){var t,a;return(e==null?void 0:e.refreshToken)||(e==null?void 0:e.refresh_token)||((t=e==null?void 0:e.data)==null?void 0:t.refreshToken)||((a=e==null?void 0:e.data)==null?void 0:a.refresh_token)}function RA(e){var a;const t=(e==null?void 0:e.user)||((a=e==null?void 0:e.data)==null?void 0:a.user)||{};return{...t,role:(t.role||t.role_name||"").toString().toLowerCase()}}function DA(e){const t={t:Date.now(),id:(e==null?void 0:e.id)??null,u:(e==null?void 0:e.username)??null,r:(e==null?void 0:e.role)??null};try{return`client.${btoa(unescape(encodeURIComponent(JSON.stringify(t))))}`}catch{return`client.${Date.now()}`}}function OA(){const e=nl(),[t,a]=w.useState(!1),[r,o]=w.useState(!1),[c,u]=w.useState(""),[m,p]=w.useState(""),[g,y]=w.useState(!1),[b,v]=w.useState({});w.useEffect(()=>{Ip();const C=window.localStorage.getItem(qe.remember)==="true";o(C);const E=window.localStorage.getItem(qe.token)||"",O=window.localStorage.getItem(qe.refreshToken)||"",D=window.localStorage.getItem(qe.time)||"";E&&O&&D?nw(D,EA)?us():e("/",{replace:!0}):(E||O||D)&&us()},[e]),w.useEffect(()=>{if(!b.form)return;const C=window.setTimeout(()=>{v(E=>E.form?{...E,form:void 0}:E)},TA);return()=>window.clearTimeout(C)},[b.form]);const T=()=>{const C={},E=(c||"").trim();return E?(Vx(E)&&!AA.test(E)&&(C.identifier="Format email tidak valid"),!Vx(E)&&E.length<3&&(C.identifier="Username minimal 3 karakter")):C.identifier="Username / Email wajib diisi",m?m.length<3&&(C.password="Minimal 3 karakter"):C.password="Password wajib diisi",v(C),Object.keys(C).length===0},S=async C=>{var E,O;if(C.preventDefault(),!!T()){y(!0),v({});try{const M=(await Le.post("/api/auth/login",{username:c.trim(),password:m})).data||{},F=RA(M),V=NA(M)||DA(F),te=MA(M)||V;if(F!=null&&F.role&&!["admin","superadmin"].includes(F.role)){v(ie=>({...ie,form:"Akses ditolak. Akun Anda tidak memiliki izin untuk masuk."}));return}uS(V,te,F,r),e("/",{replace:!0})}catch(D){const M=((E=D.response)==null?void 0:E.data)||{},F=M.message||M.error||(((O=D.response)==null?void 0:O.status)===401?"Username/Email atau password salah":"Gagal masuk. Coba lagi.");v(V=>({...V,form:F}))}finally{y(!1)}}};return f.jsx("div",{className:"flex flex-col flex-1",children:f.jsx("div",{className:"flex flex-col justify-center flex-1 w-full max-w-md mx-auto",children:f.jsxs("div",{children:[f.jsxs("div",{className:"mb-6 text-center",children:[f.jsx("img",{src:"https://sinarjernihsuksesindo.id/assets/images/sjs.png",onError:C=>{C.currentTarget.src="https://sinarjernihsuksesindo.id/assets/images/sjs.png"},alt:"Logo File Renamer SJS",className:"mx-auto h-16 w-auto object-contain"}),f.jsx("h1",{className:"mt-4 mb-1 font-semibold text-gray-800 text-title-sm dark:text-white/90 sm:text-title-md",children:"Login File Renamer SJS"}),f.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Masukkan credentials Anda"})]}),f.jsx("form",{onSubmit:S,noValidate:!0,children:f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{children:[f.jsxs(Ba,{children:["Username / Email ",f.jsx("span",{className:"text-error-500",children:"*"})]}),f.jsx(ra,{placeholder:"Username / Email",value:c,onChange:C=>u(C.target.value),autoComplete:"username"}),b.identifier&&f.jsx("p",{className:"mt-1 text-sm text-error-500",children:b.identifier})]}),f.jsxs("div",{children:[f.jsxs(Ba,{children:["Password ",f.jsx("span",{className:"text-error-500",children:"*"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(ra,{type:t?"text":"password",placeholder:"Masukkan password",value:m,onChange:C=>p(C.target.value),autoComplete:"current-password"}),f.jsx("button",{type:"button",onClick:()=>a(C=>!C),className:"absolute z-30 -translate-y-1/2 right-4 top-1/2","aria-label":t?"Sembunyikan password":"Tampilkan password",children:t?f.jsx(f6,{className:"fill-gray-500 dark:fill-gray-400 size-5"}):f.jsx(m6,{className:"fill-gray-500 dark:fill-gray-400 size-5"})})]}),b.password&&f.jsx("p",{className:"mt-1 text-sm text-error-500",children:b.password})]}),f.jsx("div",{className:"flex items-center justify-between",children:f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx($E,{checked:r,onChange:o}),f.jsx("span",{className:"block font-normal text-gray-700 text-theme-sm dark:text-gray-400",children:"Keep me logged in"})]})}),b.form&&f.jsx("div",{className:"rounded-lg border border-error-200 bg-error-50 px-4 py-3 text-sm text-error-700 transition-opacity duration-300 dark:border-error-500/30 dark:bg-error-500/10 dark:text-error-200",children:b.form}),f.jsx("div",{children:f.jsx(qt,{className:"w-full",size:"sm",disabled:g,type:"submit",children:g?"Logging in...":"Sign In"})})]})}),f.jsx("div",{className:"mt-6",children:f.jsxs("p",{className:"text-xs font-normal text-center text-gray-500 dark:text-gray-400",children:["© ",new Date().getFullYear()," PT. Sinar Jernih Suksesindo - File Renamer"]})})]})})})}function _A(){return f.jsxs(f.Fragment,{children:[f.jsx(fa,{title:"Login Admin | File Renamer SJS",description:"Halaman login File Renamer PT Sinar Jernih Suksesindo"}),f.jsx(tE,{children:f.jsx(OA,{})})]})}function cp(){return f.jsxs(f.Fragment,{children:[f.jsx(fa,{title:"React.js 404 Dashboard | TailAdmin - React.js Admin Dashboard Template",description:"This is React.js 404 Dashboard page for TailAdmin - React.js Tailwind CSS Admin Dashboard Template"}),f.jsxs("div",{className:"relative flex flex-col items-center justify-center min-h-screen p-6 overflow-hidden z-1",children:[f.jsx(g2,{}),f.jsxs("div",{className:"mx-auto w-full max-w-[242px] text-center sm:max-w-[472px]",children:[f.jsx("h1",{className:"mb-8 font-bold text-gray-800 text-title-md dark:text-white/90 xl:text-title-2xl",children:"ERROR"}),f.jsx("img",{src:"/images/error/404.svg",alt:"404",className:"dark:hidden"}),f.jsx("img",{src:"/images/error/404-dark.svg",alt:"404",className:"hidden dark:block"}),f.jsx("p",{className:"mt-10 mb-6 text-base text-gray-700 dark:text-gray-400 sm:text-lg",children:"We can’t seem to find the page you are looking for!"}),f.jsx(Yn,{to:"/",className:"inline-flex items-center justify-center rounded-lg border border-gray-300 bg-white px-5 py-3.5 text-sm font-medium text-gray-700 shadow-theme-xs hover:bg-gray-50 hover:text-gray-800 dark:border-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-white/[0.03] dark:hover:text-gray-200",children:"Back to Home Page"})]}),f.jsxs("p",{className:"absolute text-sm text-center text-gray-500 -translate-x-1/2 bottom-6 left-1/2 dark:text-gray-400",children:["© ",new Date().getFullYear()," - TailAdmin"]})]})]})}function Ux({allowedRoles:e}){const[t,a]=w.useState(null),[r,o]=w.useState(!0);return w.useEffect(()=>{try{const c=window.localStorage.getItem(qe.user);if(c){const u=JSON.parse(c),m=((u==null?void 0:u.role)||(u==null?void 0:u.role_name)||"").toString().toLowerCase();m&&a(m)}}catch(c){console.error("Failed to parse user role for RoleGuard",c)}o(!1)},[]),r?null:t&&!e.includes(t)?f.jsx(cp,{}):!t&&!r?f.jsx($p,{to:"/login",replace:!0}):f.jsx(Zv,{})}const Z2=w.createContext({});function LA(e){const t=w.useRef(null);return t.current===null&&(t.current=e()),t.current}const K2=typeof window<"u",BA=K2?w.useLayoutEffect:w.useEffect,vh=w.createContext(null);function wh(e,t){e.indexOf(t)===-1&&e.push(t)}function mu(e,t){const a=e.indexOf(t);a>-1&&e.splice(a,1)}const da=(e,t,a)=>a>t?t:a<e?e:a;let kh=()=>{};const Ua={},X2=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function W2(e){return typeof e=="object"&&e!==null}const Q2=e=>/^0[^.\s]+$/u.test(e);function Sh(e){let t;return()=>(t===void 0&&(t=e()),t)}const _n=e=>e,zA=(e,t)=>a=>t(e(a)),hl=(...e)=>e.reduce(zA),Zo=(e,t,a)=>{const r=t-e;return r===0?1:(a-e)/r};class Ch{constructor(){this.subscriptions=[]}add(t){return wh(this.subscriptions,t),()=>mu(this.subscriptions,t)}notify(t,a,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,a,r);else for(let c=0;c<o;c++){const u=this.subscriptions[c];u&&u(t,a,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Gn=e=>e*1e3,On=e=>e/1e3;function J2(e,t){return t?e*(1e3/t):0}const e5=(e,t,a)=>(((1-3*a+3*t)*e+(3*a-6*t))*e+3*t)*e,PA=1e-7,VA=12;function UA(e,t,a,r,o){let c,u,m=0;do u=t+(a-t)/2,c=e5(u,r,o)-e,c>0?a=u:t=u;while(Math.abs(c)>PA&&++m<VA);return u}function gl(e,t,a,r){if(e===t&&a===r)return _n;const o=c=>UA(c,0,1,e,a);return c=>c===0||c===1?c:e5(o(c),t,r)}const t5=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,n5=e=>t=>1-e(1-t),a5=gl(.33,1.53,.69,.99),jh=n5(a5),i5=t5(jh),r5=e=>(e*=2)<1?.5*jh(e):.5*(2-Math.pow(2,-10*(e-1))),Eh=e=>1-Math.sin(Math.acos(e)),s5=n5(Eh),o5=t5(Eh),HA=gl(.42,0,1,1),qA=gl(0,0,.58,1),l5=gl(.42,0,.58,1),FA=e=>Array.isArray(e)&&typeof e[0]!="number",c5=e=>Array.isArray(e)&&typeof e[0]=="number",$A={linear:_n,easeIn:HA,easeInOut:l5,easeOut:qA,circIn:Eh,circInOut:o5,circOut:s5,backIn:jh,backInOut:i5,backOut:a5,anticipate:r5},YA=e=>typeof e=="string",Hx=e=>{if(c5(e)){kh(e.length===4);const[t,a,r,o]=e;return gl(t,a,r,o)}else if(YA(e))return $A[e];return e},_c=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function GA(e,t){let a=new Set,r=new Set,o=!1,c=!1;const u=new WeakSet;let m={delta:0,timestamp:0,isProcessing:!1};function p(y){u.has(y)&&(g.schedule(y),e()),y(m)}const g={schedule:(y,b=!1,v=!1)=>{const S=v&&o?a:r;return b&&u.add(y),S.has(y)||S.add(y),y},cancel:y=>{r.delete(y),u.delete(y)},process:y=>{if(m=y,o){c=!0;return}o=!0,[a,r]=[r,a],a.forEach(p),a.clear(),o=!1,c&&(c=!1,g.process(y))}};return g}const IA=40;function u5(e,t){let a=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},c=()=>a=!0,u=_c.reduce((M,F)=>(M[F]=GA(c),M),{}),{setup:m,read:p,resolveKeyframes:g,preUpdate:y,update:b,preRender:v,render:T,postRender:S}=u,C=()=>{const M=Ua.useManualTiming?o.timestamp:performance.now();a=!1,Ua.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(M-o.timestamp,IA),1)),o.timestamp=M,o.isProcessing=!0,m.process(o),p.process(o),g.process(o),y.process(o),b.process(o),v.process(o),T.process(o),S.process(o),o.isProcessing=!1,a&&t&&(r=!1,e(C))},E=()=>{a=!0,r=!0,o.isProcessing||e(C)};return{schedule:_c.reduce((M,F)=>{const V=u[F];return M[F]=(te,ie=!1,ae=!1)=>(a||E(),V.schedule(te,ie,ae)),M},{}),cancel:M=>{for(let F=0;F<_c.length;F++)u[_c[F]].cancel(M)},state:o,steps:u}}const{schedule:Je,cancel:vi,state:Bt,steps:xm}=u5(typeof requestAnimationFrame<"u"?requestAnimationFrame:_n,!0);let Zc;function ZA(){Zc=void 0}const It={now:()=>(Zc===void 0&&It.set(Bt.isProcessing||Ua.useManualTiming?Bt.timestamp:performance.now()),Zc),set:e=>{Zc=e,queueMicrotask(ZA)}},d5=e=>t=>typeof t=="string"&&t.startsWith(e),f5=d5("--"),KA=d5("var(--"),Th=e=>KA(e)?XA.test(e.split("/*")[0].trim()):!1,XA=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function qx(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const Ts={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ko={...Ts,transform:e=>da(0,1,e)},Lc={...Ts,default:1},Vo=e=>Math.round(e*1e5)/1e5,Ah=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function WA(e){return e==null}const QA=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Nh=(e,t)=>a=>!!(typeof a=="string"&&QA.test(a)&&a.startsWith(e)||t&&!WA(a)&&Object.prototype.hasOwnProperty.call(a,t)),m5=(e,t,a)=>r=>{if(typeof r!="string")return r;const[o,c,u,m]=r.match(Ah);return{[e]:parseFloat(o),[t]:parseFloat(c),[a]:parseFloat(u),alpha:m!==void 0?parseFloat(m):1}},JA=e=>da(0,255,e),bm={...Ts,transform:e=>Math.round(JA(e))},er={test:Nh("rgb","red"),parse:m5("red","green","blue"),transform:({red:e,green:t,blue:a,alpha:r=1})=>"rgba("+bm.transform(e)+", "+bm.transform(t)+", "+bm.transform(a)+", "+Vo(Ko.transform(r))+")"};function eN(e){let t="",a="",r="",o="";return e.length>5?(t=e.substring(1,3),a=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),a=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,a+=a,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(a,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const up={test:Nh("#"),parse:eN,transform:er.transform},yl=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),fi=yl("deg"),ca=yl("%"),ue=yl("px"),tN=yl("vh"),nN=yl("vw"),Fx={...ca,parse:e=>ca.parse(e)/100,transform:e=>ca.transform(e*100)},Jr={test:Nh("hsl","hue"),parse:m5("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:a,alpha:r=1})=>"hsla("+Math.round(e)+", "+ca.transform(Vo(t))+", "+ca.transform(Vo(a))+", "+Vo(Ko.transform(r))+")"},xt={test:e=>er.test(e)||up.test(e)||Jr.test(e),parse:e=>er.test(e)?er.parse(e):Jr.test(e)?Jr.parse(e):up.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?er.transform(e):Jr.transform(e),getAnimatableNone:e=>{const t=xt.parse(e);return t.alpha=0,xt.transform(t)}},aN=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function iN(e){var t,a;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ah))==null?void 0:t.length)||0)+(((a=e.match(aN))==null?void 0:a.length)||0)>0}const p5="number",h5="color",rN="var",sN="var(",$x="${}",oN=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Xo(e){const t=e.toString(),a=[],r={color:[],number:[],var:[]},o=[];let c=0;const m=t.replace(oN,p=>(xt.test(p)?(r.color.push(c),o.push(h5),a.push(xt.parse(p))):p.startsWith(sN)?(r.var.push(c),o.push(rN),a.push(p)):(r.number.push(c),o.push(p5),a.push(parseFloat(p))),++c,$x)).split($x);return{values:a,split:m,indexes:r,types:o}}function g5(e){return Xo(e).values}function y5(e){const{split:t,types:a}=Xo(e),r=t.length;return o=>{let c="";for(let u=0;u<r;u++)if(c+=t[u],o[u]!==void 0){const m=a[u];m===p5?c+=Vo(o[u]):m===h5?c+=xt.transform(o[u]):c+=o[u]}return c}}const lN=e=>typeof e=="number"?0:xt.test(e)?xt.getAnimatableNone(e):e;function cN(e){const t=g5(e);return y5(e)(t.map(lN))}const wi={test:iN,parse:g5,createTransformer:y5,getAnimatableNone:cN};function vm(e,t,a){return a<0&&(a+=1),a>1&&(a-=1),a<1/6?e+(t-e)*6*a:a<1/2?t:a<2/3?e+(t-e)*(2/3-a)*6:e}function uN({hue:e,saturation:t,lightness:a,alpha:r}){e/=360,t/=100,a/=100;let o=0,c=0,u=0;if(!t)o=c=u=a;else{const m=a<.5?a*(1+t):a+t-a*t,p=2*a-m;o=vm(p,m,e+1/3),c=vm(p,m,e),u=vm(p,m,e-1/3)}return{red:Math.round(o*255),green:Math.round(c*255),blue:Math.round(u*255),alpha:r}}function pu(e,t){return a=>a>0?t:e}const st=(e,t,a)=>e+(t-e)*a,wm=(e,t,a)=>{const r=e*e,o=a*(t*t-r)+r;return o<0?0:Math.sqrt(o)},dN=[up,er,Jr],fN=e=>dN.find(t=>t.test(e));function Yx(e){const t=fN(e);if(!t)return!1;let a=t.parse(e);return t===Jr&&(a=uN(a)),a}const Gx=(e,t)=>{const a=Yx(e),r=Yx(t);if(!a||!r)return pu(e,t);const o={...a};return c=>(o.red=wm(a.red,r.red,c),o.green=wm(a.green,r.green,c),o.blue=wm(a.blue,r.blue,c),o.alpha=st(a.alpha,r.alpha,c),er.transform(o))},dp=new Set(["none","hidden"]);function mN(e,t){return dp.has(e)?a=>a<=0?e:t:a=>a>=1?t:e}function pN(e,t){return a=>st(e,t,a)}function Mh(e){return typeof e=="number"?pN:typeof e=="string"?Th(e)?pu:xt.test(e)?Gx:yN:Array.isArray(e)?x5:typeof e=="object"?xt.test(e)?Gx:hN:pu}function x5(e,t){const a=[...e],r=a.length,o=e.map((c,u)=>Mh(c)(c,t[u]));return c=>{for(let u=0;u<r;u++)a[u]=o[u](c);return a}}function hN(e,t){const a={...e,...t},r={};for(const o in a)e[o]!==void 0&&t[o]!==void 0&&(r[o]=Mh(e[o])(e[o],t[o]));return o=>{for(const c in r)a[c]=r[c](o);return a}}function gN(e,t){const a=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const c=t.types[o],u=e.indexes[c][r[c]],m=e.values[u]??0;a[o]=m,r[c]++}return a}const yN=(e,t)=>{const a=wi.createTransformer(t),r=Xo(e),o=Xo(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?dp.has(e)&&!o.values.length||dp.has(t)&&!r.values.length?mN(e,t):hl(x5(gN(r,o),o.values),a):pu(e,t)};function b5(e,t,a){return typeof e=="number"&&typeof t=="number"&&typeof a=="number"?st(e,t,a):Mh(e)(e,t)}const xN=e=>{const t=({timestamp:a})=>e(a);return{start:(a=!0)=>Je.update(t,a),stop:()=>vi(t),now:()=>Bt.isProcessing?Bt.timestamp:It.now()}},v5=(e,t,a=10)=>{let r="";const o=Math.max(Math.round(t/a),2);for(let c=0;c<o;c++)r+=Math.round(e(c/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},hu=2e4;function Rh(e){let t=0;const a=50;let r=e.next(t);for(;!r.done&&t<hu;)t+=a,r=e.next(t);return t>=hu?1/0:t}function bN(e,t=100,a){const r=a({...e,keyframes:[0,t]}),o=Math.min(Rh(r),hu);return{type:"keyframes",ease:c=>r.next(o*c).value/t,duration:On(o)}}const vN=5;function w5(e,t,a){const r=Math.max(t-vN,0);return J2(a-e(r),t-r)}const ut={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},Ix=.001;function wN({duration:e=ut.duration,bounce:t=ut.bounce,velocity:a=ut.velocity,mass:r=ut.mass}){let o,c,u=1-t;u=da(ut.minDamping,ut.maxDamping,u),e=da(ut.minDuration,ut.maxDuration,On(e)),u<1?(o=g=>{const y=g*u,b=y*e,v=y-a,T=fp(g,u),S=Math.exp(-b);return Ix-v/T*S},c=g=>{const b=g*u*e,v=b*a+a,T=Math.pow(u,2)*Math.pow(g,2)*e,S=Math.exp(-b),C=fp(Math.pow(g,2),u);return(-o(g)+Ix>0?-1:1)*((v-T)*S)/C}):(o=g=>{const y=Math.exp(-g*e),b=(g-a)*e+1;return-.001+y*b},c=g=>{const y=Math.exp(-g*e),b=(a-g)*(e*e);return y*b});const m=5/e,p=SN(o,c,m);if(e=Gn(e),isNaN(p))return{stiffness:ut.stiffness,damping:ut.damping,duration:e};{const g=Math.pow(p,2)*r;return{stiffness:g,damping:u*2*Math.sqrt(r*g),duration:e}}}const kN=12;function SN(e,t,a){let r=a;for(let o=1;o<kN;o++)r=r-e(r)/t(r);return r}function fp(e,t){return e*Math.sqrt(1-t*t)}const CN=["duration","bounce"],jN=["stiffness","damping","mass"];function Zx(e,t){return t.some(a=>e[a]!==void 0)}function EN(e){let t={velocity:ut.velocity,stiffness:ut.stiffness,damping:ut.damping,mass:ut.mass,isResolvedFromDuration:!1,...e};if(!Zx(e,jN)&&Zx(e,CN))if(e.visualDuration){const a=e.visualDuration,r=2*Math.PI/(a*1.2),o=r*r,c=2*da(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:ut.mass,stiffness:o,damping:c}}else{const a=wN(e);t={...t,...a,mass:ut.mass},t.isResolvedFromDuration=!0}return t}function gu(e=ut.visualDuration,t=ut.bounce){const a=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=a;const c=a.keyframes[0],u=a.keyframes[a.keyframes.length-1],m={done:!1,value:c},{stiffness:p,damping:g,mass:y,duration:b,velocity:v,isResolvedFromDuration:T}=EN({...a,velocity:-On(a.velocity||0)}),S=v||0,C=g/(2*Math.sqrt(p*y)),E=u-c,O=On(Math.sqrt(p/y)),D=Math.abs(E)<5;r||(r=D?ut.restSpeed.granular:ut.restSpeed.default),o||(o=D?ut.restDelta.granular:ut.restDelta.default);let M;if(C<1){const V=fp(O,C);M=te=>{const ie=Math.exp(-C*O*te);return u-ie*((S+C*O*E)/V*Math.sin(V*te)+E*Math.cos(V*te))}}else if(C===1)M=V=>u-Math.exp(-O*V)*(E+(S+O*E)*V);else{const V=O*Math.sqrt(C*C-1);M=te=>{const ie=Math.exp(-C*O*te),ae=Math.min(V*te,300);return u-ie*((S+C*O*E)*Math.sinh(ae)+V*E*Math.cosh(ae))/V}}const F={calculatedDuration:T&&b||null,next:V=>{const te=M(V);if(T)m.done=V>=b;else{let ie=V===0?S:0;C<1&&(ie=V===0?Gn(S):w5(M,V,te));const ae=Math.abs(ie)<=r,W=Math.abs(u-te)<=o;m.done=ae&&W}return m.value=m.done?u:te,m},toString:()=>{const V=Math.min(Rh(F),hu),te=v5(ie=>F.next(V*ie).value,V,30);return V+"ms "+te},toTransition:()=>{}};return F}gu.applyToOptions=e=>{const t=bN(e,100,gu);return e.ease=t.ease,e.duration=Gn(t.duration),e.type="keyframes",e};function mp({keyframes:e,velocity:t=0,power:a=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:c=500,modifyTarget:u,min:m,max:p,restDelta:g=.5,restSpeed:y}){const b=e[0],v={done:!1,value:b},T=ae=>m!==void 0&&ae<m||p!==void 0&&ae>p,S=ae=>m===void 0?p:p===void 0||Math.abs(m-ae)<Math.abs(p-ae)?m:p;let C=a*t;const E=b+C,O=u===void 0?E:u(E);O!==E&&(C=O-b);const D=ae=>-C*Math.exp(-ae/r),M=ae=>O+D(ae),F=ae=>{const W=D(ae),se=M(ae);v.done=Math.abs(W)<=g,v.value=v.done?O:se};let V,te;const ie=ae=>{T(v.value)&&(V=ae,te=gu({keyframes:[v.value,S(v.value)],velocity:w5(M,ae,v.value),damping:o,stiffness:c,restDelta:g,restSpeed:y}))};return ie(0),{calculatedDuration:null,next:ae=>{let W=!1;return!te&&V===void 0&&(W=!0,F(ae),ie(ae)),V!==void 0&&ae>=V?te.next(ae-V):(!W&&F(ae),v)}}}function TN(e,t,a){const r=[],o=a||Ua.mix||b5,c=e.length-1;for(let u=0;u<c;u++){let m=o(e[u],e[u+1]);if(t){const p=Array.isArray(t)?t[u]||_n:t;m=hl(p,m)}r.push(m)}return r}function AN(e,t,{clamp:a=!0,ease:r,mixer:o}={}){const c=e.length;if(kh(c===t.length),c===1)return()=>t[0];if(c===2&&t[0]===t[1])return()=>t[1];const u=e[0]===e[1];e[0]>e[c-1]&&(e=[...e].reverse(),t=[...t].reverse());const m=TN(t,r,o),p=m.length,g=y=>{if(u&&y<e[0])return t[0];let b=0;if(p>1)for(;b<e.length-2&&!(y<e[b+1]);b++);const v=Zo(e[b],e[b+1],y);return m[b](v)};return a?y=>g(da(e[0],e[c-1],y)):g}function NN(e,t){const a=e[e.length-1];for(let r=1;r<=t;r++){const o=Zo(0,t,r);e.push(st(a,1,o))}}function MN(e){const t=[0];return NN(t,e.length-1),t}function RN(e,t){return e.map(a=>a*t)}function DN(e,t){return e.map(()=>t||l5).splice(0,e.length-1)}function Uo({duration:e=300,keyframes:t,times:a,ease:r="easeInOut"}){const o=FA(r)?r.map(Hx):Hx(r),c={done:!1,value:t[0]},u=RN(a&&a.length===t.length?a:MN(t),e),m=AN(u,t,{ease:Array.isArray(o)?o:DN(t,o)});return{calculatedDuration:e,next:p=>(c.value=m(p),c.done=p>=e,c)}}const ON=e=>e!==null;function Dh(e,{repeat:t,repeatType:a="loop"},r,o=1){const c=e.filter(ON),m=o<0||t&&a!=="loop"&&t%2===1?0:c.length-1;return!m||r===void 0?c[m]:r}const _N={decay:mp,inertia:mp,tween:Uo,keyframes:Uo,spring:gu};function k5(e){typeof e.type=="string"&&(e.type=_N[e.type])}class Oh{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,a){return this.finished.then(t,a)}}const LN=e=>e/100;class _h extends Oh{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:a}=this.options;a&&a.updatedAt!==It.now()&&this.tick(It.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;k5(t);const{type:a=Uo,repeat:r=0,repeatDelay:o=0,repeatType:c,velocity:u=0}=t;let{keyframes:m}=t;const p=a||Uo;p!==Uo&&typeof m[0]!="number"&&(this.mixKeyframes=hl(LN,b5(m[0],m[1])),m=[0,100]);const g=p({...t,keyframes:m});c==="mirror"&&(this.mirroredGenerator=p({...t,keyframes:[...m].reverse(),velocity:-u})),g.calculatedDuration===null&&(g.calculatedDuration=Rh(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=g}updateTime(t){const a=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=a}tick(t,a=!1){const{generator:r,totalDuration:o,mixKeyframes:c,mirroredGenerator:u,resolvedDuration:m,calculatedDuration:p}=this;if(this.startTime===null)return r.next(0);const{delay:g=0,keyframes:y,repeat:b,repeatType:v,repeatDelay:T,type:S,onUpdate:C,finalKeyframe:E}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),a?this.currentTime=t:this.updateTime(t);const O=this.currentTime-g*(this.playbackSpeed>=0?1:-1),D=this.playbackSpeed>=0?O<0:O>o;this.currentTime=Math.max(O,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let M=this.currentTime,F=r;if(b){const ae=Math.min(this.currentTime,o)/m;let W=Math.floor(ae),se=ae%1;!se&&ae>=1&&(se=1),se===1&&W--,W=Math.min(W,b+1),!!(W%2)&&(v==="reverse"?(se=1-se,T&&(se-=T/m)):v==="mirror"&&(F=u)),M=da(0,1,se)*m}const V=D?{done:!1,value:y[0]}:F.next(M);c&&(V.value=c(V.value));let{done:te}=V;!D&&p!==null&&(te=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const ie=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&te);return ie&&S!==mp&&(V.value=Dh(y,this.options,E,this.speed)),C&&C(V.value),ie&&this.finish(),V}then(t,a){return this.finished.then(t,a)}get duration(){return On(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+On(t)}get time(){return On(this.currentTime)}set time(t){var a;t=Gn(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(a=this.driver)==null||a.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(It.now());const a=this.playbackSpeed!==t;this.playbackSpeed=t,a&&(this.time=On(this.currentTime))}play(){var o,c;if(this.isStopped)return;const{driver:t=xN,startTime:a}=this.options;this.driver||(this.driver=t(u=>this.tick(u))),(c=(o=this.options).onPlay)==null||c.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=a??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(It.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,a;this.notifyFinished(),this.teardown(),this.state="finished",(a=(t=this.options).onComplete)==null||a.call(t)}cancel(){var t,a;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(a=(t=this.options).onCancel)==null||a.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var a;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(a=this.driver)==null||a.stop(),t.observe(this)}}function BN(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const tr=e=>e*180/Math.PI,pp=e=>{const t=tr(Math.atan2(e[1],e[0]));return hp(t)},zN={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:pp,rotateZ:pp,skewX:e=>tr(Math.atan(e[1])),skewY:e=>tr(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},hp=e=>(e=e%360,e<0&&(e+=360),e),Kx=pp,Xx=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Wx=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),PN={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Xx,scaleY:Wx,scale:e=>(Xx(e)+Wx(e))/2,rotateX:e=>hp(tr(Math.atan2(e[6],e[5]))),rotateY:e=>hp(tr(Math.atan2(-e[2],e[0]))),rotateZ:Kx,rotate:Kx,skewX:e=>tr(Math.atan(e[4])),skewY:e=>tr(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function gp(e){return e.includes("scale")?1:0}function yp(e,t){if(!e||e==="none")return gp(t);const a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(a)r=PN,o=a;else{const m=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=zN,o=m}if(!o)return gp(t);const c=r[t],u=o[1].split(",").map(UN);return typeof c=="function"?c(u):u[c]}const VN=(e,t)=>{const{transform:a="none"}=getComputedStyle(e);return yp(a,t)};function UN(e){return parseFloat(e.trim())}const As=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Ns=new Set(As),Qx=e=>e===Ts||e===ue,HN=new Set(["x","y","z"]),qN=As.filter(e=>!HN.has(e));function FN(e){const t=[];return qN.forEach(a=>{const r=e.getValue(a);r!==void 0&&(t.push([a,r.get()]),r.set(a.startsWith("scale")?1:0))}),t}const bi={width:({x:e},{paddingLeft:t="0",paddingRight:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),height:({y:e},{paddingTop:t="0",paddingBottom:a="0"})=>e.max-e.min-parseFloat(t)-parseFloat(a),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>yp(t,"x"),y:(e,{transform:t})=>yp(t,"y")};bi.translateX=bi.x;bi.translateY=bi.y;const rr=new Set;let xp=!1,bp=!1,vp=!1;function S5(){if(bp){const e=Array.from(rr).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),a=new Map;t.forEach(r=>{const o=FN(r);o.length&&(a.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=a.get(r);o&&o.forEach(([c,u])=>{var m;(m=r.getValue(c))==null||m.set(u)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}bp=!1,xp=!1,rr.forEach(e=>e.complete(vp)),rr.clear()}function C5(){rr.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(bp=!0)})}function $N(){vp=!0,C5(),S5(),vp=!1}class Lh{constructor(t,a,r,o,c,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=a,this.name=r,this.motionValue=o,this.element=c,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(rr.add(this),xp||(xp=!0,Je.read(C5),Je.resolveKeyframes(S5))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:a,element:r,motionValue:o}=this;if(t[0]===null){const c=o==null?void 0:o.get(),u=t[t.length-1];if(c!==void 0)t[0]=c;else if(r&&a){const m=r.readValue(a,u);m!=null&&(t[0]=m)}t[0]===void 0&&(t[0]=u),o&&c===void 0&&o.set(t[0])}BN(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),rr.delete(this)}cancel(){this.state==="scheduled"&&(rr.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const YN=e=>e.startsWith("--");function GN(e,t,a){YN(t)?e.style.setProperty(t,a):e.style[t]=a}const IN=Sh(()=>window.ScrollTimeline!==void 0),ZN={};function KN(e,t){const a=Sh(e);return()=>ZN[t]??a()}const j5=KN(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Po=([e,t,a,r])=>`cubic-bezier(${e}, ${t}, ${a}, ${r})`,Jx={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Po([0,.65,.55,1]),circOut:Po([.55,0,1,.45]),backIn:Po([.31,.01,.66,-.59]),backOut:Po([.33,1.53,.69,.99])};function E5(e,t){if(e)return typeof e=="function"?j5()?v5(e,t):"ease-out":c5(e)?Po(e):Array.isArray(e)?e.map(a=>E5(a,t)||Jx.easeOut):Jx[e]}function XN(e,t,a,{delay:r=0,duration:o=300,repeat:c=0,repeatType:u="loop",ease:m="easeOut",times:p}={},g=void 0){const y={[t]:a};p&&(y.offset=p);const b=E5(m,o);Array.isArray(b)&&(y.easing=b);const v={delay:r,duration:o,easing:Array.isArray(b)?"linear":b,fill:"both",iterations:c+1,direction:u==="reverse"?"alternate":"normal"};return g&&(v.pseudoElement=g),e.animate(y,v)}function T5(e){return typeof e=="function"&&"applyToOptions"in e}function WN({type:e,...t}){return T5(e)&&j5()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class A5 extends Oh{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:a,name:r,keyframes:o,pseudoElement:c,allowFlatten:u=!1,finalKeyframe:m,onComplete:p}=t;this.isPseudoElement=!!c,this.allowFlatten=u,this.options=t,kh(typeof t.type!="string");const g=WN(t);this.animation=XN(a,r,o,g,c),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!c){const y=Dh(o,this.options,m,this.speed);this.updateMotionValue?this.updateMotionValue(y):GN(a,r,y),this.animation.cancel()}p==null||p(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,a;(a=(t=this.animation).finish)==null||a.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var a,r,o;const t=(a=this.options)==null?void 0:a.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((o=(r=this.animation).commitStyles)==null||o.call(r))}get duration(){var a,r;const t=((r=(a=this.animation.effect)==null?void 0:a.getComputedTiming)==null?void 0:r.call(a).duration)||0;return On(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+On(t)}get time(){return On(Number(this.animation.currentTime)||0)}set time(t){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Gn(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,observe:a}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&IN()?(this.animation.timeline=t,_n):a(this)}}const N5={anticipate:r5,backInOut:i5,circInOut:o5};function QN(e){return e in N5}function JN(e){typeof e.ease=="string"&&QN(e.ease)&&(e.ease=N5[e.ease])}const km=10;class eM extends A5{constructor(t){JN(t),k5(t),super(t),t.startTime!==void 0&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:a,onUpdate:r,onComplete:o,element:c,...u}=this.options;if(!a)return;if(t!==void 0){a.set(t);return}const m=new _h({...u,autoplay:!1}),p=Math.max(km,It.now()-this.startTime),g=da(0,km,p-km);a.setWithVelocity(m.sample(Math.max(0,p-g)).value,m.sample(p).value,g),m.stop()}}const eb=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(wi.test(e)||e==="0")&&!e.startsWith("url("));function tM(e){const t=e[0];if(e.length===1)return!0;for(let a=0;a<e.length;a++)if(e[a]!==t)return!0}function nM(e,t,a,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const c=e[e.length-1],u=eb(o,t),m=eb(c,t);return!u||!m?!1:tM(e)||(a==="spring"||T5(a))&&r}function wp(e){e.duration=0,e.type="keyframes"}const aM=new Set(["opacity","clipPath","filter","transform"]),iM=Sh(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function rM(e){var y;const{motionValue:t,name:a,repeatDelay:r,repeatType:o,damping:c,type:u}=e;if(!(((y=t==null?void 0:t.owner)==null?void 0:y.current)instanceof HTMLElement))return!1;const{onUpdate:p,transformTemplate:g}=t.owner.getProps();return iM()&&a&&aM.has(a)&&(a!=="transform"||!g)&&!p&&!r&&o!=="mirror"&&c!==0&&u!=="inertia"}const sM=40;class oM extends Oh{constructor({autoplay:t=!0,delay:a=0,type:r="keyframes",repeat:o=0,repeatDelay:c=0,repeatType:u="loop",keyframes:m,name:p,motionValue:g,element:y,...b}){var S;super(),this.stop=()=>{var C,E;this._animation&&(this._animation.stop(),(C=this.stopTimeline)==null||C.call(this)),(E=this.keyframeResolver)==null||E.cancel()},this.createdAt=It.now();const v={autoplay:t,delay:a,type:r,repeat:o,repeatDelay:c,repeatType:u,name:p,motionValue:g,element:y,...b},T=(y==null?void 0:y.KeyframeResolver)||Lh;this.keyframeResolver=new T(m,(C,E,O)=>this.onKeyframesResolved(C,E,v,!O),p,g,y),(S=this.keyframeResolver)==null||S.scheduleResolve()}onKeyframesResolved(t,a,r,o){var E,O;this.keyframeResolver=void 0;const{name:c,type:u,velocity:m,delay:p,isHandoff:g,onUpdate:y}=r;this.resolvedAt=It.now(),nM(t,c,u,m)||((Ua.instantAnimations||!p)&&(y==null||y(Dh(t,r,a))),t[0]=t[t.length-1],wp(r),r.repeat=0);const v={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>sM?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:a,...r,keyframes:t},T=!g&&rM(v),S=(O=(E=v.motionValue)==null?void 0:E.owner)==null?void 0:O.current,C=T?new eM({...v,element:S}):new _h(v);C.finished.then(()=>{this.notifyFinished()}).catch(_n),this.pendingTimeline&&(this.stopTimeline=C.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=C}get finished(){return this._animation?this.animation.finished:this._finished}then(t,a){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),$N()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function M5(e,t,a,r=0,o=1){const c=Array.from(e).sort((g,y)=>g.sortNodePosition(y)).indexOf(t),u=e.size,m=(u-1)*r;return typeof a=="function"?a(c,u):o===1?c*r:m-c*r}const lM=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function cM(e){const t=lM.exec(e);if(!t)return[,];const[,a,r,o]=t;return[`--${a??r}`,o]}function R5(e,t,a=1){const[r,o]=cM(e);if(!r)return;const c=window.getComputedStyle(t).getPropertyValue(r);if(c){const u=c.trim();return X2(u)?parseFloat(u):u}return Th(o)?R5(o,t,a+1):o}const uM={type:"spring",stiffness:500,damping:25,restSpeed:10},dM=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),fM={type:"keyframes",duration:.8},mM={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pM=(e,{keyframes:t})=>t.length>2?fM:Ns.has(e)?e.startsWith("scale")?dM(t[1]):uM:mM,hM=e=>e!==null;function gM(e,{repeat:t,repeatType:a="loop"},r){const o=e.filter(hM),c=t&&a!=="loop"&&t%2===1?0:o.length-1;return o[c]}function D5(e,t){if(e!=null&&e.inherit&&t){const{inherit:a,...r}=e;return{...t,...r}}return e}function Bh(e,t){const a=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return a!==e?D5(a,e):a}function yM({when:e,delay:t,delayChildren:a,staggerChildren:r,staggerDirection:o,repeat:c,repeatType:u,repeatDelay:m,from:p,elapsed:g,...y}){return!!Object.keys(y).length}const zh=(e,t,a,r={},o,c)=>u=>{const m=Bh(r,e)||{},p=m.delay||r.delay||0;let{elapsed:g=0}=r;g=g-Gn(p);const y={keyframes:Array.isArray(a)?a:[null,a],ease:"easeOut",velocity:t.getVelocity(),...m,delay:-g,onUpdate:v=>{t.set(v),m.onUpdate&&m.onUpdate(v)},onComplete:()=>{u(),m.onComplete&&m.onComplete()},name:e,motionValue:t,element:c?void 0:o};yM(m)||Object.assign(y,pM(e,y)),y.duration&&(y.duration=Gn(y.duration)),y.repeatDelay&&(y.repeatDelay=Gn(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let b=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(wp(y),y.delay===0&&(b=!0)),(Ua.instantAnimations||Ua.skipAnimations||o!=null&&o.shouldSkipAnimations)&&(b=!0,wp(y),y.delay=0),y.allowFlatten=!m.type&&!m.ease,b&&!c&&t.get()!==void 0){const v=gM(y.keyframes,m);if(v!==void 0){Je.update(()=>{y.onUpdate(v),y.onComplete()});return}}return m.isSync?new _h(y):new oM(y)};function tb(e){const t=[{},{}];return e==null||e.values.forEach((a,r)=>{t[0][r]=a.get(),t[1][r]=a.getVelocity()}),t}function Ph(e,t,a,r){if(typeof t=="function"){const[o,c]=tb(r);t=t(a!==void 0?a:e.custom,o,c)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,c]=tb(r);t=t(a!==void 0?a:e.custom,o,c)}return t}function os(e,t,a){const r=e.getProps();return Ph(r,t,a!==void 0?a:r.custom,e)}const O5=new Set(["width","height","top","left","right","bottom",...As]),nb=30,xM=e=>!isNaN(parseFloat(e));class bM{constructor(t,a={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var c;const o=It.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((c=this.events.change)==null||c.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=a.owner}setCurrent(t){this.current=t,this.updatedAt=It.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=xM(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,a){this.events[t]||(this.events[t]=new Ch);const r=this.events[t].add(a);return t==="change"?()=>{r(),Je.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,a){this.passiveEffect=t,this.stopPassiveEffect=a}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,a,r){this.set(a),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,a=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,a&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=It.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>nb)return 0;const a=Math.min(this.updatedAt-this.prevUpdatedAt,nb);return J2(parseFloat(this.current)-parseFloat(this.prevFrameValue),a)}start(t){return this.stop(),new Promise(a=>{this.hasAnimated=!0,this.animation=t(a),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,a;(t=this.dependents)==null||t.clear(),(a=this.events.destroy)==null||a.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ps(e,t){return new bM(e,t)}const kp=e=>Array.isArray(e);function vM(e,t,a){e.hasValue(t)?e.getValue(t).set(a):e.addValue(t,ps(a))}function wM(e){return kp(e)?e[e.length-1]||0:e}function kM(e,t){const a=os(e,t);let{transitionEnd:r={},transition:o={},...c}=a||{};c={...c,...r};for(const u in c){const m=wM(c[u]);vM(e,u,m)}}const Ft=e=>!!(e&&e.getVelocity);function SM(e){return!!(Ft(e)&&e.add)}function Sp(e,t){const a=e.getValue("willChange");if(SM(a))return a.add(t);if(!a&&Ua.WillChange){const r=new Ua.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Vh(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const CM="framerAppearId",_5="data-"+Vh(CM);function L5(e){return e.props[_5]}function jM({protectedKeys:e,needsAnimating:t},a){const r=e.hasOwnProperty(a)&&t[a]!==!0;return t[a]=!1,r}function B5(e,t,{delay:a=0,transitionOverride:r,type:o}={}){let{transition:c,transitionEnd:u,...m}=t;const p=e.getDefaultTransition();c=c?D5(c,p):p;const g=c==null?void 0:c.reduceMotion;r&&(c=r);const y=[],b=o&&e.animationState&&e.animationState.getState()[o];for(const v in m){const T=e.getValue(v,e.latestValues[v]??null),S=m[v];if(S===void 0||b&&jM(b,v))continue;const C={delay:a,...Bh(c||{},v)},E=T.get();if(E!==void 0&&!T.isAnimating&&!Array.isArray(S)&&S===E&&!C.velocity)continue;let O=!1;if(window.MotionHandoffAnimation){const F=L5(e);if(F){const V=window.MotionHandoffAnimation(F,v,Je);V!==null&&(C.startTime=V,O=!0)}}Sp(e,v);const D=g??e.shouldReduceMotion;T.start(zh(v,T,S,D&&O5.has(v)?{type:!1}:C,e,O));const M=T.animation;M&&y.push(M)}if(u){const v=()=>Je.update(()=>{u&&kM(e,u)});y.length?Promise.all(y).then(v):v()}return y}function Cp(e,t,a={}){var p;const r=os(e,t,a.type==="exit"?(p=e.presenceContext)==null?void 0:p.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};a.transitionOverride&&(o=a.transitionOverride);const c=r?()=>Promise.all(B5(e,r,a)):()=>Promise.resolve(),u=e.variantChildren&&e.variantChildren.size?(g=0)=>{const{delayChildren:y=0,staggerChildren:b,staggerDirection:v}=o;return EM(e,t,g,y,b,v,a)}:()=>Promise.resolve(),{when:m}=o;if(m){const[g,y]=m==="beforeChildren"?[c,u]:[u,c];return g().then(()=>y())}else return Promise.all([c(),u(a.delay)])}function EM(e,t,a=0,r=0,o=0,c=1,u){const m=[];for(const p of e.variantChildren)p.notify("AnimationStart",t),m.push(Cp(p,t,{...u,delay:a+(typeof r=="function"?0:r)+M5(e.variantChildren,p,r,o,c)}).then(()=>p.notify("AnimationComplete",t)));return Promise.all(m)}function TM(e,t,a={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(c=>Cp(e,c,a));r=Promise.all(o)}else if(typeof t=="string")r=Cp(e,t,a);else{const o=typeof t=="function"?os(e,t,a.custom):t;r=Promise.all(B5(e,o,a))}return r.then(()=>{e.notify("AnimationComplete",t)})}const AM={test:e=>e==="auto",parse:e=>e},z5=e=>t=>t.test(e),P5=[Ts,ue,ca,fi,nN,tN,AM],ab=e=>P5.find(z5(e));function NM(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Q2(e):!0}const MM=new Set(["brightness","contrast","saturate","opacity"]);function RM(e){const[t,a]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=a.match(Ah)||[];if(!r)return e;const o=a.replace(r,"");let c=MM.has(t)?1:0;return r!==a&&(c*=100),t+"("+c+o+")"}const DM=/\b([a-z-]*)\(.*?\)/gu,jp={...wi,getAnimatableNone:e=>{const t=e.match(DM);return t?t.map(RM).join(" "):e}},ib={...Ts,transform:Math.round},OM={rotate:fi,rotateX:fi,rotateY:fi,rotateZ:fi,scale:Lc,scaleX:Lc,scaleY:Lc,scaleZ:Lc,skew:fi,skewX:fi,skewY:fi,distance:ue,translateX:ue,translateY:ue,translateZ:ue,x:ue,y:ue,z:ue,perspective:ue,transformPerspective:ue,opacity:Ko,originX:Fx,originY:Fx,originZ:ue},Uh={borderWidth:ue,borderTopWidth:ue,borderRightWidth:ue,borderBottomWidth:ue,borderLeftWidth:ue,borderRadius:ue,borderTopLeftRadius:ue,borderTopRightRadius:ue,borderBottomRightRadius:ue,borderBottomLeftRadius:ue,width:ue,maxWidth:ue,height:ue,maxHeight:ue,top:ue,right:ue,bottom:ue,left:ue,inset:ue,insetBlock:ue,insetBlockStart:ue,insetBlockEnd:ue,insetInline:ue,insetInlineStart:ue,insetInlineEnd:ue,padding:ue,paddingTop:ue,paddingRight:ue,paddingBottom:ue,paddingLeft:ue,paddingBlock:ue,paddingBlockStart:ue,paddingBlockEnd:ue,paddingInline:ue,paddingInlineStart:ue,paddingInlineEnd:ue,margin:ue,marginTop:ue,marginRight:ue,marginBottom:ue,marginLeft:ue,marginBlock:ue,marginBlockStart:ue,marginBlockEnd:ue,marginInline:ue,marginInlineStart:ue,marginInlineEnd:ue,fontSize:ue,backgroundPositionX:ue,backgroundPositionY:ue,...OM,zIndex:ib,fillOpacity:Ko,strokeOpacity:Ko,numOctaves:ib},_M={...Uh,color:xt,backgroundColor:xt,outlineColor:xt,fill:xt,stroke:xt,borderColor:xt,borderTopColor:xt,borderRightColor:xt,borderBottomColor:xt,borderLeftColor:xt,filter:jp,WebkitFilter:jp},V5=e=>_M[e];function U5(e,t){let a=V5(e);return a!==jp&&(a=wi),a.getAnimatableNone?a.getAnimatableNone(t):void 0}const LM=new Set(["auto","none","0"]);function BM(e,t,a){let r=0,o;for(;r<e.length&&!o;){const c=e[r];typeof c=="string"&&!LM.has(c)&&Xo(c).values.length&&(o=e[r]),r++}if(o&&a)for(const c of t)e[c]=U5(a,o)}class zM extends Lh{constructor(t,a,r,o,c){super(t,a,r,o,c,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:a,name:r}=this;if(!a||!a.current)return;super.readKeyframes();for(let y=0;y<t.length;y++){let b=t[y];if(typeof b=="string"&&(b=b.trim(),Th(b))){const v=R5(b,a.current);v!==void 0&&(t[y]=v),y===t.length-1&&(this.finalKeyframe=b)}}if(this.resolveNoneKeyframes(),!O5.has(r)||t.length!==2)return;const[o,c]=t,u=ab(o),m=ab(c),p=qx(o),g=qx(c);if(p!==g&&bi[r]){this.needsMeasurement=!0;return}if(u!==m)if(Qx(u)&&Qx(m))for(let y=0;y<t.length;y++){const b=t[y];typeof b=="string"&&(t[y]=parseFloat(b))}else bi[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:a}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||NM(t[o]))&&r.push(o);r.length&&BM(t,r,a)}measureInitialState(){const{element:t,unresolvedKeyframes:a,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=bi[r](t.measureViewportBox(),window.getComputedStyle(t.current)),a[0]=this.measuredOrigin;const o=a[a.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var m;const{element:t,name:a,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(a);o&&o.jump(this.measuredOrigin,!1);const c=r.length-1,u=r[c];r[c]=bi[a](t.measureViewportBox(),window.getComputedStyle(t.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),(m=this.removedTransforms)!=null&&m.length&&this.removedTransforms.forEach(([p,g])=>{t.getValue(p).set(g)}),this.resolveNoneKeyframes()}}const PM=new Set(["opacity","clipPath","filter","transform"]);function H5(e,t,a){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=(a==null?void 0:a[e])??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e).filter(r=>r!=null)}const q5=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function VM(e){return W2(e)&&"offsetHeight"in e}const{schedule:Hh}=u5(queueMicrotask,!1),Fn={x:!1,y:!1};function F5(){return Fn.x||Fn.y}function UM(e){return e==="x"||e==="y"?Fn[e]?null:(Fn[e]=!0,()=>{Fn[e]=!1}):Fn.x||Fn.y?null:(Fn.x=Fn.y=!0,()=>{Fn.x=Fn.y=!1})}function $5(e,t){const a=H5(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[a,o,()=>r.abort()]}function HM(e){return!(e.pointerType==="touch"||F5())}function qM(e,t,a={}){const[r,o,c]=$5(e,a);return r.forEach(u=>{let m=!1,p=!1,g;const y=()=>{u.removeEventListener("pointerleave",S)},b=E=>{g&&(g(E),g=void 0),y()},v=E=>{m=!1,window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",v),p&&(p=!1,b(E))},T=()=>{m=!0,window.addEventListener("pointerup",v,o),window.addEventListener("pointercancel",v,o)},S=E=>{if(E.pointerType!=="touch"){if(m){p=!0;return}b(E)}},C=E=>{if(!HM(E))return;p=!1;const O=t(u,E);typeof O=="function"&&(g=O,u.addEventListener("pointerleave",S,o))};u.addEventListener("pointerenter",C,o),u.addEventListener("pointerdown",T,o)}),c}const Y5=(e,t)=>t?e===t?!0:Y5(e,t.parentElement):!1,qh=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,FM=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function $M(e){return FM.has(e.tagName)||e.isContentEditable===!0}const YM=new Set(["INPUT","SELECT","TEXTAREA"]);function GM(e){return YM.has(e.tagName)||e.isContentEditable===!0}const Kc=new WeakSet;function rb(e){return t=>{t.key==="Enter"&&e(t)}}function Sm(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const IM=(e,t)=>{const a=e.currentTarget;if(!a)return;const r=rb(()=>{if(Kc.has(a))return;Sm(a,"down");const o=rb(()=>{Sm(a,"up")}),c=()=>Sm(a,"cancel");a.addEventListener("keyup",o,t),a.addEventListener("blur",c,t)});a.addEventListener("keydown",r,t),a.addEventListener("blur",()=>a.removeEventListener("keydown",r),t)};function sb(e){return qh(e)&&!F5()}const ob=new WeakSet;function ZM(e,t,a={}){const[r,o,c]=$5(e,a),u=m=>{const p=m.currentTarget;if(!sb(m)||ob.has(m))return;Kc.add(p),a.stopPropagation&&ob.add(m);const g=t(p,m),y=(T,S)=>{window.removeEventListener("pointerup",b),window.removeEventListener("pointercancel",v),Kc.has(p)&&Kc.delete(p),sb(T)&&typeof g=="function"&&g(T,{success:S})},b=T=>{y(T,p===window||p===document||a.useGlobalTarget||Y5(p,T.target))},v=T=>{y(T,!1)};window.addEventListener("pointerup",b,o),window.addEventListener("pointercancel",v,o)};return r.forEach(m=>{(a.useGlobalTarget?window:m).addEventListener("pointerdown",u,o),VM(m)&&(m.addEventListener("focus",g=>IM(g,o)),!$M(m)&&!m.hasAttribute("tabindex")&&(m.tabIndex=0))}),c}function Fh(e){return W2(e)&&"ownerSVGElement"in e}const Xc=new WeakMap;let mi;const G5=(e,t,a)=>(r,o)=>o&&o[0]?o[0][e+"Size"]:Fh(r)&&"getBBox"in r?r.getBBox()[t]:r[a],KM=G5("inline","width","offsetWidth"),XM=G5("block","height","offsetHeight");function WM({target:e,borderBoxSize:t}){var a;(a=Xc.get(e))==null||a.forEach(r=>{r(e,{get width(){return KM(e,t)},get height(){return XM(e,t)}})})}function QM(e){e.forEach(WM)}function JM(){typeof ResizeObserver>"u"||(mi=new ResizeObserver(QM))}function eR(e,t){mi||JM();const a=H5(e);return a.forEach(r=>{let o=Xc.get(r);o||(o=new Set,Xc.set(r,o)),o.add(t),mi==null||mi.observe(r)}),()=>{a.forEach(r=>{const o=Xc.get(r);o==null||o.delete(t),o!=null&&o.size||mi==null||mi.unobserve(r)})}}const Wc=new Set;let es;function tR(){es=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Wc.forEach(t=>t(e))},window.addEventListener("resize",es)}function nR(e){return Wc.add(e),es||tR(),()=>{Wc.delete(e),!Wc.size&&typeof es=="function"&&(window.removeEventListener("resize",es),es=void 0)}}function lb(e,t){return typeof e=="function"?nR(e):eR(e,t)}function aR(e){return Fh(e)&&e.tagName==="svg"}const iR=[...P5,xt,wi],rR=e=>iR.find(z5(e)),cb=()=>({translate:0,scale:1,origin:0,originPoint:0}),ts=()=>({x:cb(),y:cb()}),ub=()=>({min:0,max:0}),wt=()=>({x:ub(),y:ub()}),sR=new WeakMap;function Vu(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function Wo(e){return typeof e=="string"||Array.isArray(e)}const $h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Yh=["initial",...$h];function Uu(e){return Vu(e.animate)||Yh.some(t=>Wo(e[t]))}function I5(e){return!!(Uu(e)||e.variants)}function oR(e,t,a){for(const r in t){const o=t[r],c=a[r];if(Ft(o))e.addValue(r,o);else if(Ft(c))e.addValue(r,ps(o,{owner:e}));else if(c!==o)if(e.hasValue(r)){const u=e.getValue(r);u.liveStyle===!0?u.jump(o):u.hasAnimated||u.set(o)}else{const u=e.getStaticValue(r);e.addValue(r,ps(u!==void 0?u:o,{owner:e}))}}for(const r in a)t[r]===void 0&&e.removeValue(r);return t}const Ep={current:null},Z5={current:!1},lR=typeof window<"u";function cR(){if(Z5.current=!0,!!lR)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Ep.current=e.matches;e.addEventListener("change",t),t()}else Ep.current=!1}const db=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let yu={};function K5(e){yu=e}function uR(){return yu}class dR{scrapeMotionValuesFromProps(t,a,r){return{}}constructor({parent:t,props:a,presenceContext:r,reducedMotionConfig:o,skipAnimations:c,blockInitialAnimation:u,visualState:m},p={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Lh,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const T=It.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,Je.render(this.render,!1,!0))};const{latestValues:g,renderState:y}=m;this.latestValues=g,this.baseTarget={...g},this.initialValues=a.initial?{...g}:{},this.renderState=y,this.parent=t,this.props=a,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.skipAnimationsConfig=c,this.options=p,this.blockInitialAnimation=!!u,this.isControllingVariants=Uu(a),this.isVariantNode=I5(a),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:b,...v}=this.scrapeMotionValuesFromProps(a,{},this);for(const T in v){const S=v[T];g[T]!==void 0&&Ft(S)&&S.set(g[T])}}mount(t){var a,r;if(this.hasBeenMounted)for(const o in this.initialValues)(a=this.values.get(o))==null||a.jump(this.initialValues[o]),this.latestValues[o]=this.initialValues[o];this.current=t,sR.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((o,c)=>this.bindToMotionValue(c,o)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Z5.current||cR(),this.shouldReduceMotion=Ep.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(r=this.parent)==null||r.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),vi(this.notifyUpdate),vi(this.render),this.valueSubscriptions.forEach(a=>a()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const a in this.events)this.events[a].clear();for(const a in this.features){const r=this.features[a];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,a){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),a.accelerate&&PM.has(t)&&this.current instanceof HTMLElement){const{factory:u,keyframes:m,times:p,ease:g,duration:y}=a.accelerate,b=new A5({element:this.current,name:t,keyframes:m,times:p,ease:g,duration:Gn(y)}),v=u(b);this.valueSubscriptions.set(t,()=>{v(),b.cancel()});return}const r=Ns.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=a.on("change",u=>{this.latestValues[t]=u,this.props.onUpdate&&Je.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let c;typeof window<"u"&&window.MotionCheckAppearSync&&(c=window.MotionCheckAppearSync(this,t,a)),this.valueSubscriptions.set(t,()=>{o(),c&&c(),a.owner&&a.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in yu){const a=yu[t];if(!a)continue;const{isEnabled:r,Feature:o}=a;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const c=this.features[t];c.isMounted?c.update():(c.mount(),c.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):wt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,a){this.latestValues[t]=a}update(t,a){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=a;for(let r=0;r<db.length;r++){const o=db[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const c="on"+o,u=t[c];u&&(this.propEventSubscriptions[o]=this.on(o,u))}this.prevMotionValues=oR(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const a=this.getClosestVariantNode();if(a)return a.variantChildren&&a.variantChildren.add(t),()=>a.variantChildren.delete(t)}addValue(t,a){const r=this.values.get(t);a!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,a),this.values.set(t,a),this.latestValues[t]=a.get())}removeValue(t){this.values.delete(t);const a=this.valueSubscriptions.get(t);a&&(a(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,a){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&a!==void 0&&(r=ps(a===null?void 0:a,{owner:this}),this.addValue(t,r)),r}readValue(t,a){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(X2(r)||Q2(r))?r=parseFloat(r):!rR(r)&&wi.test(a)&&(r=U5(t,a)),this.setBaseTarget(t,Ft(r)?r.get():r)),Ft(r)?r.get():r}setBaseTarget(t,a){this.baseTarget[t]=a}getBaseTarget(t){var c;const{initial:a}=this.props;let r;if(typeof a=="string"||typeof a=="object"){const u=Ph(this.props,a,(c=this.presenceContext)==null?void 0:c.custom);u&&(r=u[t])}if(a&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!Ft(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,a){return this.events[t]||(this.events[t]=new Ch),this.events[t].add(a)}notify(t,...a){this.events[t]&&this.events[t].notify(...a)}scheduleRenderMicrotask(){Hh.render(this.render)}}class X5 extends dR{constructor(){super(...arguments),this.KeyframeResolver=zM}sortInstanceNodePosition(t,a){return t.compareDocumentPosition(a)&2?1:-1}getBaseTargetFromProps(t,a){const r=t.style;return r?r[a]:void 0}removeValueFromRenderState(t,{vars:a,style:r}){delete a[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Ft(t)&&(this.childSubscription=t.on("change",a=>{this.current&&(this.current.textContent=`${a}`)}))}}class ki{constructor(t){this.isMounted=!1,this.node=t}update(){}}function W5({top:e,left:t,right:a,bottom:r}){return{x:{min:t,max:a},y:{min:e,max:r}}}function fR({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function mR(e,t){if(!t)return e;const a=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:a.y,left:a.x,bottom:r.y,right:r.x}}function Cm(e){return e===void 0||e===1}function Tp({scale:e,scaleX:t,scaleY:a}){return!Cm(e)||!Cm(t)||!Cm(a)}function Xi(e){return Tp(e)||Q5(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Q5(e){return fb(e.x)||fb(e.y)}function fb(e){return e&&e!=="0%"}function xu(e,t,a){const r=e-a,o=t*r;return a+o}function mb(e,t,a,r,o){return o!==void 0&&(e=xu(e,o,r)),xu(e,a,r)+t}function Ap(e,t=0,a=1,r,o){e.min=mb(e.min,t,a,r,o),e.max=mb(e.max,t,a,r,o)}function J5(e,{x:t,y:a}){Ap(e.x,t.translate,t.scale,t.originPoint),Ap(e.y,a.translate,a.scale,a.originPoint)}const pb=.999999999999,hb=1.0000000000001;function pR(e,t,a,r=!1){const o=a.length;if(!o)return;t.x=t.y=1;let c,u;for(let m=0;m<o;m++){c=a[m],u=c.projectionDelta;const{visualElement:p}=c.options;p&&p.props.style&&p.props.style.display==="contents"||(r&&c.options.layoutScroll&&c.scroll&&c!==c.root&&as(e,{x:-c.scroll.offset.x,y:-c.scroll.offset.y}),u&&(t.x*=u.x.scale,t.y*=u.y.scale,J5(e,u)),r&&Xi(c.latestValues)&&as(e,c.latestValues))}t.x<hb&&t.x>pb&&(t.x=1),t.y<hb&&t.y>pb&&(t.y=1)}function ns(e,t){e.min=e.min+t,e.max=e.max+t}function gb(e,t,a,r,o=.5){const c=st(e.min,e.max,o);Ap(e,t,a,c,r)}function as(e,t){gb(e.x,t.x,t.scaleX,t.scale,t.originX),gb(e.y,t.y,t.scaleY,t.scale,t.originY)}function e4(e,t){return W5(mR(e.getBoundingClientRect(),t))}function hR(e,t,a){const r=e4(e,a),{scroll:o}=t;return o&&(ns(r.x,o.offset.x),ns(r.y,o.offset.y)),r}const gR={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},yR=As.length;function xR(e,t,a){let r="",o=!0;for(let c=0;c<yR;c++){const u=As[c],m=e[u];if(m===void 0)continue;let p=!0;if(typeof m=="number")p=m===(u.startsWith("scale")?1:0);else{const g=parseFloat(m);p=u.startsWith("scale")?g===1:g===0}if(!p||a){const g=q5(m,Uh[u]);if(!p){o=!1;const y=gR[u]||u;r+=`${y}(${g}) `}a&&(t[u]=g)}}return r=r.trim(),a?r=a(t,o?"":r):o&&(r="none"),r}function Gh(e,t,a){const{style:r,vars:o,transformOrigin:c}=e;let u=!1,m=!1;for(const p in t){const g=t[p];if(Ns.has(p)){u=!0;continue}else if(f5(p)){o[p]=g;continue}else{const y=q5(g,Uh[p]);p.startsWith("origin")?(m=!0,c[p]=y):r[p]=y}}if(t.transform||(u||a?r.transform=xR(t,e.transform,a):r.transform&&(r.transform="none")),m){const{originX:p="50%",originY:g="50%",originZ:y=0}=c;r.transformOrigin=`${p} ${g} ${y}`}}function t4(e,{style:t,vars:a},r,o){const c=e.style;let u;for(u in t)c[u]=t[u];o==null||o.applyProjectionStyles(c,r);for(u in a)c.setProperty(u,a[u])}function yb(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Bo={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(ue.test(e))e=parseFloat(e);else return e;const a=yb(e,t.target.x),r=yb(e,t.target.y);return`${a}% ${r}%`}},bR={correct:(e,{treeScale:t,projectionDelta:a})=>{const r=e,o=wi.parse(e);if(o.length>5)return r;const c=wi.createTransformer(e),u=typeof o[0]!="number"?1:0,m=a.x.scale*t.x,p=a.y.scale*t.y;o[0+u]/=m,o[1+u]/=p;const g=st(m,p,.5);return typeof o[2+u]=="number"&&(o[2+u]/=g),typeof o[3+u]=="number"&&(o[3+u]/=g),c(o)}},Np={borderRadius:{...Bo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Bo,borderTopRightRadius:Bo,borderBottomLeftRadius:Bo,borderBottomRightRadius:Bo,boxShadow:bR};function n4(e,{layout:t,layoutId:a}){return Ns.has(e)||e.startsWith("origin")||(t||a!==void 0)&&(!!Np[e]||e==="opacity")}function Ih(e,t,a){var u;const r=e.style,o=t==null?void 0:t.style,c={};if(!r)return c;for(const m in r)(Ft(r[m])||o&&Ft(o[m])||n4(m,e)||((u=a==null?void 0:a.getValue(m))==null?void 0:u.liveStyle)!==void 0)&&(c[m]=r[m]);return c}function vR(e){return window.getComputedStyle(e)}class wR extends X5{constructor(){super(...arguments),this.type="html",this.renderInstance=t4}readValueFromInstance(t,a){var r;if(Ns.has(a))return(r=this.projection)!=null&&r.isProjecting?gp(a):VN(t,a);{const o=vR(t),c=(f5(a)?o.getPropertyValue(a):o[a])||0;return typeof c=="string"?c.trim():c}}measureInstanceViewportBox(t,{transformPagePoint:a}){return e4(t,a)}build(t,a,r){Gh(t,a,r.transformTemplate)}scrapeMotionValuesFromProps(t,a,r){return Ih(t,a,r)}}const kR={offset:"stroke-dashoffset",array:"stroke-dasharray"},SR={offset:"strokeDashoffset",array:"strokeDasharray"};function CR(e,t,a=1,r=0,o=!0){e.pathLength=1;const c=o?kR:SR;e[c.offset]=`${-r}`,e[c.array]=`${t} ${a}`}const jR=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function a4(e,{attrX:t,attrY:a,attrScale:r,pathLength:o,pathSpacing:c=1,pathOffset:u=0,...m},p,g,y){if(Gh(e,m,g),p){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:b,style:v}=e;b.transform&&(v.transform=b.transform,delete b.transform),(v.transform||b.transformOrigin)&&(v.transformOrigin=b.transformOrigin??"50% 50%",delete b.transformOrigin),v.transform&&(v.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete b.transformBox);for(const T of jR)b[T]!==void 0&&(v[T]=b[T],delete b[T]);t!==void 0&&(b.x=t),a!==void 0&&(b.y=a),r!==void 0&&(b.scale=r),o!==void 0&&CR(b,o,c,u,!1)}const i4=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),r4=e=>typeof e=="string"&&e.toLowerCase()==="svg";function ER(e,t,a,r){t4(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(i4.has(o)?o:Vh(o),t.attrs[o])}function s4(e,t,a){const r=Ih(e,t,a);for(const o in e)if(Ft(e[o])||Ft(t[o])){const c=As.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[c]=e[o]}return r}class TR extends X5{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=wt}getBaseTargetFromProps(t,a){return t[a]}readValueFromInstance(t,a){if(Ns.has(a)){const r=V5(a);return r&&r.default||0}return a=i4.has(a)?a:Vh(a),t.getAttribute(a)}scrapeMotionValuesFromProps(t,a,r){return s4(t,a,r)}build(t,a,r){a4(t,a,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,a,r,o){ER(t,a,r,o)}mount(t){this.isSVGTag=r4(t.tagName),super.mount(t)}}const AR=Yh.length;function o4(e){if(!e)return;if(!e.isControllingVariants){const a=e.parent?o4(e.parent)||{}:{};return e.props.initial!==void 0&&(a.initial=e.props.initial),a}const t={};for(let a=0;a<AR;a++){const r=Yh[a],o=e.props[r];(Wo(o)||o===!1)&&(t[r]=o)}return t}function l4(e,t){if(!Array.isArray(t))return!1;const a=t.length;if(a!==e.length)return!1;for(let r=0;r<a;r++)if(t[r]!==e[r])return!1;return!0}const NR=[...$h].reverse(),MR=$h.length;function RR(e){return t=>Promise.all(t.map(({animation:a,options:r})=>TM(e,a,r)))}function DR(e){let t=RR(e),a=xb(),r=!0;const o=p=>(g,y)=>{var v;const b=os(e,y,p==="exit"?(v=e.presenceContext)==null?void 0:v.custom:void 0);if(b){const{transition:T,transitionEnd:S,...C}=b;g={...g,...C,...S}}return g};function c(p){t=p(e)}function u(p){const{props:g}=e,y=o4(e.parent)||{},b=[],v=new Set;let T={},S=1/0;for(let E=0;E<MR;E++){const O=NR[E],D=a[O],M=g[O]!==void 0?g[O]:y[O],F=Wo(M),V=O===p?D.isActive:null;V===!1&&(S=E);let te=M===y[O]&&M!==g[O]&&F;if(te&&r&&e.manuallyAnimateOnMount&&(te=!1),D.protectedKeys={...T},!D.isActive&&V===null||!M&&!D.prevProp||Vu(M)||typeof M=="boolean")continue;if(O==="exit"&&D.isActive&&V!==!0){D.prevResolvedValues&&(T={...T,...D.prevResolvedValues});continue}const ie=OR(D.prevProp,M);let ae=ie||O===p&&D.isActive&&!te&&F||E>S&&F,W=!1;const se=Array.isArray(M)?M:[M];let Ae=se.reduce(o(O),{});V===!1&&(Ae={});const{prevResolvedValues:je={}}=D,Ee={...je,...Ae},re=_=>{ae=!0,v.has(_)&&(W=!0,v.delete(_)),D.needsAnimating[_]=!0;const R=e.getValue(_);R&&(R.liveStyle=!1)};for(const _ in Ee){const R=Ae[_],Z=je[_];if(T.hasOwnProperty(_))continue;let j=!1;kp(R)&&kp(Z)?j=!l4(R,Z):j=R!==Z,j?R!=null?re(_):v.add(_):R!==void 0&&v.has(_)?re(_):D.protectedKeys[_]=!0}D.prevProp=M,D.prevResolvedValues=Ae,D.isActive&&(T={...T,...Ae}),r&&e.blockInitialAnimation&&(ae=!1);const pe=te&&ie;ae&&(!pe||W)&&b.push(...se.map(_=>{const R={type:O};if(typeof _=="string"&&r&&!pe&&e.manuallyAnimateOnMount&&e.parent){const{parent:Z}=e,j=os(Z,_);if(Z.enteringChildren&&j){const{delayChildren:N}=j.transition||{};R.delay=M5(Z.enteringChildren,e,N)}}return{animation:_,options:R}}))}if(v.size){const E={};if(typeof g.initial!="boolean"){const O=os(e,Array.isArray(g.initial)?g.initial[0]:g.initial);O&&O.transition&&(E.transition=O.transition)}v.forEach(O=>{const D=e.getBaseTarget(O),M=e.getValue(O);M&&(M.liveStyle=!0),E[O]=D??null}),b.push({animation:E})}let C=!!b.length;return r&&(g.initial===!1||g.initial===g.animate)&&!e.manuallyAnimateOnMount&&(C=!1),r=!1,C?t(b):Promise.resolve()}function m(p,g){var b;if(a[p].isActive===g)return Promise.resolve();(b=e.variantChildren)==null||b.forEach(v=>{var T;return(T=v.animationState)==null?void 0:T.setActive(p,g)}),a[p].isActive=g;const y=u(p);for(const v in a)a[v].protectedKeys={};return y}return{animateChanges:u,setActive:m,setAnimateFunction:c,getState:()=>a,reset:()=>{a=xb()}}}function OR(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!l4(t,e):!1}function Ki(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function xb(){return{animate:Ki(!0),whileInView:Ki(),whileHover:Ki(),whileTap:Ki(),whileDrag:Ki(),whileFocus:Ki(),exit:Ki()}}function bb(e,t){e.min=t.min,e.max=t.max}function qn(e,t){bb(e.x,t.x),bb(e.y,t.y)}function vb(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const c4=1e-4,_R=1-c4,LR=1+c4,u4=.01,BR=0-u4,zR=0+u4;function Zt(e){return e.max-e.min}function PR(e,t,a){return Math.abs(e-t)<=a}function wb(e,t,a,r=.5){e.origin=r,e.originPoint=st(t.min,t.max,e.origin),e.scale=Zt(a)/Zt(t),e.translate=st(a.min,a.max,e.origin)-e.originPoint,(e.scale>=_R&&e.scale<=LR||isNaN(e.scale))&&(e.scale=1),(e.translate>=BR&&e.translate<=zR||isNaN(e.translate))&&(e.translate=0)}function Ho(e,t,a,r){wb(e.x,t.x,a.x,r?r.originX:void 0),wb(e.y,t.y,a.y,r?r.originY:void 0)}function kb(e,t,a){e.min=a.min+t.min,e.max=e.min+Zt(t)}function VR(e,t,a){kb(e.x,t.x,a.x),kb(e.y,t.y,a.y)}function Sb(e,t,a){e.min=t.min-a.min,e.max=e.min+Zt(t)}function bu(e,t,a){Sb(e.x,t.x,a.x),Sb(e.y,t.y,a.y)}function Cb(e,t,a,r,o){return e-=t,e=xu(e,1/a,r),o!==void 0&&(e=xu(e,1/o,r)),e}function UR(e,t=0,a=1,r=.5,o,c=e,u=e){if(ca.test(t)&&(t=parseFloat(t),t=st(u.min,u.max,t/100)-u.min),typeof t!="number")return;let m=st(c.min,c.max,r);e===c&&(m-=t),e.min=Cb(e.min,t,a,m,o),e.max=Cb(e.max,t,a,m,o)}function jb(e,t,[a,r,o],c,u){UR(e,t[a],t[r],t[o],t.scale,c,u)}const HR=["x","scaleX","originX"],qR=["y","scaleY","originY"];function Eb(e,t,a,r){jb(e.x,t,HR,a?a.x:void 0,r?r.x:void 0),jb(e.y,t,qR,a?a.y:void 0,r?r.y:void 0)}function Tb(e){return e.translate===0&&e.scale===1}function d4(e){return Tb(e.x)&&Tb(e.y)}function Ab(e,t){return e.min===t.min&&e.max===t.max}function FR(e,t){return Ab(e.x,t.x)&&Ab(e.y,t.y)}function Nb(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function f4(e,t){return Nb(e.x,t.x)&&Nb(e.y,t.y)}function Mb(e){return Zt(e.x)/Zt(e.y)}function Rb(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function aa(e){return[e("x"),e("y")]}function $R(e,t,a){let r="";const o=e.x.translate/t.x,c=e.y.translate/t.y,u=(a==null?void 0:a.z)||0;if((o||c||u)&&(r=`translate3d(${o}px, ${c}px, ${u}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),a){const{transformPerspective:g,rotate:y,rotateX:b,rotateY:v,skewX:T,skewY:S}=a;g&&(r=`perspective(${g}px) ${r}`),y&&(r+=`rotate(${y}deg) `),b&&(r+=`rotateX(${b}deg) `),v&&(r+=`rotateY(${v}deg) `),T&&(r+=`skewX(${T}deg) `),S&&(r+=`skewY(${S}deg) `)}const m=e.x.scale*t.x,p=e.y.scale*t.y;return(m!==1||p!==1)&&(r+=`scale(${m}, ${p})`),r||"none"}const m4=["TopLeft","TopRight","BottomLeft","BottomRight"],YR=m4.length,Db=e=>typeof e=="string"?parseFloat(e):e,Ob=e=>typeof e=="number"||ue.test(e);function GR(e,t,a,r,o,c){o?(e.opacity=st(0,a.opacity??1,IR(r)),e.opacityExit=st(t.opacity??1,0,ZR(r))):c&&(e.opacity=st(t.opacity??1,a.opacity??1,r));for(let u=0;u<YR;u++){const m=`border${m4[u]}Radius`;let p=_b(t,m),g=_b(a,m);if(p===void 0&&g===void 0)continue;p||(p=0),g||(g=0),p===0||g===0||Ob(p)===Ob(g)?(e[m]=Math.max(st(Db(p),Db(g),r),0),(ca.test(g)||ca.test(p))&&(e[m]+="%")):e[m]=g}(t.rotate||a.rotate)&&(e.rotate=st(t.rotate||0,a.rotate||0,r))}function _b(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const IR=p4(0,.5,s5),ZR=p4(.5,.95,_n);function p4(e,t,a){return r=>r<e?0:r>t?1:a(Zo(e,t,r))}function KR(e,t,a){const r=Ft(e)?e:ps(e);return r.start(zh("",r,t,a)),r.animation}function Qo(e,t,a,r={passive:!0}){return e.addEventListener(t,a,r),()=>e.removeEventListener(t,a)}const XR=(e,t)=>e.depth-t.depth;class WR{constructor(){this.children=[],this.isDirty=!1}add(t){wh(this.children,t),this.isDirty=!0}remove(t){mu(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(XR),this.isDirty=!1,this.children.forEach(t)}}function QR(e,t){const a=It.now(),r=({timestamp:o})=>{const c=o-a;c>=t&&(vi(r),e(c-t))};return Je.setup(r,!0),()=>vi(r)}function Qc(e){return Ft(e)?e.get():e}class JR{constructor(){this.members=[]}add(t){wh(this.members,t);for(let a=this.members.length-1;a>=0;a--){const r=this.members[a];if(r===t||r===this.lead||r===this.prevLead)continue;const o=r.instance;o&&o.isConnected===!1&&r.isPresent!==!1&&!r.snapshot&&mu(this.members,r)}t.scheduleRender()}remove(t){if(mu(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const a=this.members[this.members.length-1];a&&this.promote(a)}}relegate(t){const a=this.members.findIndex(o=>t===o);if(a===0)return!1;let r;for(let o=a;o>=0;o--){const c=this.members[o],u=c.instance;if(c.isPresent!==!1&&(!u||u.isConnected!==!1)){r=c;break}}return r?(this.promote(r),!0):!1}promote(t,a){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender();const o=r.options.layoutDependency,c=t.options.layoutDependency;if(!(o!==void 0&&c!==void 0&&o===c)){const p=r.instance;p&&p.isConnected===!1&&!r.snapshot||(t.resumeFrom=r,a&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0))}const{crossfade:m}=t.options;m===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:a,resumingFrom:r}=t;a.onExitComplete&&a.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Jc={hasAnimatedSinceResize:!0,hasEverUpdated:!1},jm=["","X","Y","Z"],eD=1e3;let tD=0;function Em(e,t,a,r){const{latestValues:o}=t;o[e]&&(a[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function h4(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const a=L5(t);if(window.MotionHasOptimisedAnimation(a,"transform")){const{layout:o,layoutId:c}=e.options;window.MotionCancelOptimisedAnimation(a,"transform",Je,!(o||c))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&h4(r)}function g4({attachResizeListener:e,defaultParent:t,measureScroll:a,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(u={},m=t==null?void 0:t()){this.id=tD++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(iD),this.nodes.forEach(lD),this.nodes.forEach(cD),this.nodes.forEach(rD)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=m?m.root||m:this,this.path=m?[...m.path,m]:[],this.parent=m,this.depth=m?m.depth+1:0;for(let p=0;p<this.path.length;p++)this.path[p].shouldResetTransform=!0;this.root===this&&(this.nodes=new WR)}addEventListener(u,m){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Ch),this.eventHandlers.get(u).add(m)}notifyListeners(u,...m){const p=this.eventHandlers.get(u);p&&p.notify(...m)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=Fh(u)&&!aR(u),this.instance=u;const{layoutId:m,layout:p,visualElement:g}=this.options;if(g&&!g.current&&g.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(p||m)&&(this.isLayoutDirty=!0),e){let y,b=0;const v=()=>this.root.updateBlockedByResize=!1;Je.read(()=>{b=window.innerWidth}),e(u,()=>{const T=window.innerWidth;T!==b&&(b=T,this.root.updateBlockedByResize=!0,y&&y(),y=QR(v,250),Jc.hasAnimatedSinceResize&&(Jc.hasAnimatedSinceResize=!1,this.nodes.forEach(zb)))})}m&&this.root.registerSharedNode(m,this),this.options.animate!==!1&&g&&(m||p)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:b,hasRelativeLayoutChanged:v,layout:T})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const S=this.options.transition||g.getDefaultTransition()||pD,{onLayoutAnimationStart:C,onLayoutAnimationComplete:E}=g.getProps(),O=!this.targetLayout||!f4(this.targetLayout,T),D=!b&&v;if(this.options.layoutRoot||this.resumeFrom||D||b&&(O||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const M={...Bh(S,"layout"),onPlay:C,onComplete:E};(g.shouldReduceMotion||this.options.layoutRoot)&&(M.delay=0,M.type=!1),this.startAnimation(M),this.setAnimationOrigin(y,D)}else b||zb(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=T})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),vi(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(uD),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&h4(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const b=this.path[y];b.shouldResetTransform=!0,b.updateScroll("snapshot"),b.options.layoutRoot&&b.willUpdate(!1)}const{layoutId:m,layout:p}=this.options;if(m===void 0&&!p)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(Lb);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Bb);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(oD),this.nodes.forEach(nD),this.nodes.forEach(aD)):this.nodes.forEach(Bb),this.clearAllSnapshots();const m=It.now();Bt.delta=da(0,1e3/60,m-Bt.timestamp),Bt.timestamp=m,Bt.isProcessing=!0,xm.update.process(Bt),xm.preRender.process(Bt),xm.render.process(Bt),Bt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Hh.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(sD),this.sharedNodes.forEach(dD)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Je.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Je.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Zt(this.snapshot.measuredBox.x)&&!Zt(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let p=0;p<this.path.length;p++)this.path[p].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=wt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:m}=this.options;m&&m.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let m=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(m=!1),m&&this.instance){const p=r(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:p,offset:a(this.instance),wasRoot:this.scroll?this.scroll.isRoot:p}}}resetTransform(){if(!o)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,m=this.projectionDelta&&!d4(this.projectionDelta),p=this.getTransformTemplate(),g=p?p(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;u&&this.instance&&(m||Xi(this.latestValues)||y)&&(o(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const m=this.measurePageBox();let p=this.removeElementScroll(m);return u&&(p=this.removeTransform(p)),hD(p),{animationId:this.root.animationId,measuredBox:m,layoutBox:p,latestValues:{},source:this.id}}measurePageBox(){var g;const{visualElement:u}=this.options;if(!u)return wt();const m=u.measureViewportBox();if(!(((g=this.scroll)==null?void 0:g.wasRoot)||this.path.some(gD))){const{scroll:y}=this.root;y&&(ns(m.x,y.offset.x),ns(m.y,y.offset.y))}return m}removeElementScroll(u){var p;const m=wt();if(qn(m,u),(p=this.scroll)!=null&&p.wasRoot)return m;for(let g=0;g<this.path.length;g++){const y=this.path[g],{scroll:b,options:v}=y;y!==this.root&&b&&v.layoutScroll&&(b.wasRoot&&qn(m,u),ns(m.x,b.offset.x),ns(m.y,b.offset.y))}return m}applyTransform(u,m=!1){const p=wt();qn(p,u);for(let g=0;g<this.path.length;g++){const y=this.path[g];!m&&y.options.layoutScroll&&y.scroll&&y!==y.root&&as(p,{x:-y.scroll.offset.x,y:-y.scroll.offset.y}),Xi(y.latestValues)&&as(p,y.latestValues)}return Xi(this.latestValues)&&as(p,this.latestValues),p}removeTransform(u){const m=wt();qn(m,u);for(let p=0;p<this.path.length;p++){const g=this.path[p];if(!g.instance||!Xi(g.latestValues))continue;Tp(g.latestValues)&&g.updateSnapshot();const y=wt(),b=g.measurePageBox();qn(y,b),Eb(m,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,y)}return Xi(this.latestValues)&&Eb(m,this.latestValues),m}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Bt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var T;const m=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=m.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=m.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=m.isSharedProjectionDirty);const p=!!this.resumingFrom||this!==m;if(!(u||p&&this.isSharedProjectionDirty||this.isProjectionDirty||(T=this.parent)!=null&&T.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:b}=this.options;if(!this.layout||!(y||b))return;this.resolvedRelativeTargetAt=Bt.timestamp;const v=this.getClosestProjectingParent();v&&this.linkedParentVersion!==v.layoutVersion&&!v.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(v&&v.layout?this.createRelativeTarget(v,this.layout.layoutBox,v.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=wt(),this.targetWithTransforms=wt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),VR(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):qn(this.target,this.layout.layoutBox),J5(this.target,this.targetDelta)):qn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,v&&!!v.resumingFrom==!!this.resumingFrom&&!v.options.layoutScroll&&v.target&&this.animationProgress!==1?this.createRelativeTarget(v,this.target,v.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Tp(this.parent.latestValues)||Q5(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(u,m,p){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=wt(),this.relativeTargetOrigin=wt(),bu(this.relativeTargetOrigin,m,p),qn(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var S;const u=this.getLead(),m=!!this.resumingFrom||this!==u;let p=!0;if((this.isProjectionDirty||(S=this.parent)!=null&&S.isProjectionDirty)&&(p=!1),m&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(p=!1),this.resolvedRelativeTargetAt===Bt.timestamp&&(p=!1),p)return;const{layout:g,layoutId:y}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||y))return;qn(this.layoutCorrected,this.layout.layoutBox);const b=this.treeScale.x,v=this.treeScale.y;pR(this.layoutCorrected,this.treeScale,this.path,m),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=wt());const{target:T}=u;if(!T){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(vb(this.prevProjectionDelta.x,this.projectionDelta.x),vb(this.prevProjectionDelta.y,this.projectionDelta.y)),Ho(this.projectionDelta,this.layoutCorrected,T,this.latestValues),(this.treeScale.x!==b||this.treeScale.y!==v||!Rb(this.projectionDelta.x,this.prevProjectionDelta.x)||!Rb(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",T))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var m;if((m=this.options.visualElement)==null||m.scheduleRender(),u){const p=this.getStack();p&&p.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ts(),this.projectionDelta=ts(),this.projectionDeltaWithTransform=ts()}setAnimationOrigin(u,m=!1){const p=this.snapshot,g=p?p.latestValues:{},y={...this.latestValues},b=ts();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!m;const v=wt(),T=p?p.source:void 0,S=this.layout?this.layout.source:void 0,C=T!==S,E=this.getStack(),O=!E||E.members.length<=1,D=!!(C&&!O&&this.options.crossfade===!0&&!this.path.some(mD));this.animationProgress=0;let M;this.mixTargetDelta=F=>{const V=F/1e3;Pb(b.x,u.x,V),Pb(b.y,u.y,V),this.setTargetDelta(b),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bu(v,this.layout.layoutBox,this.relativeParent.layout.layoutBox),fD(this.relativeTarget,this.relativeTargetOrigin,v,V),M&&FR(this.relativeTarget,M)&&(this.isProjectionDirty=!1),M||(M=wt()),qn(M,this.relativeTarget)),C&&(this.animationValues=y,GR(y,g,this.latestValues,V,D,O)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=V},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var m,p,g;this.notifyListeners("animationStart"),(m=this.currentAnimation)==null||m.stop(),(g=(p=this.resumingFrom)==null?void 0:p.currentAnimation)==null||g.stop(),this.pendingAnimation&&(vi(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Je.update(()=>{Jc.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ps(0)),this.currentAnimation=KR(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),u.onUpdate&&u.onUpdate(y)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(eD),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:m,target:p,layout:g,latestValues:y}=u;if(!(!m||!p||!g)){if(this!==u&&this.layout&&g&&y4(this.options.animationType,this.layout.layoutBox,g.layoutBox)){p=this.target||wt();const b=Zt(this.layout.layoutBox.x);p.x.min=u.target.x.min,p.x.max=p.x.min+b;const v=Zt(this.layout.layoutBox.y);p.y.min=u.target.y.min,p.y.max=p.y.min+v}qn(m,p),as(m,y),Ho(this.projectionDeltaWithTransform,this.layoutCorrected,m,y)}}registerSharedNode(u,m){this.sharedNodes.has(u)||this.sharedNodes.set(u,new JR),this.sharedNodes.get(u).add(m);const g=m.options.initialPromotionConfig;m.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(m):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var m;const{layoutId:u}=this.options;return u?((m=this.getStack())==null?void 0:m.lead)||this:this}getPrevLead(){var m;const{layoutId:u}=this.options;return u?(m=this.getStack())==null?void 0:m.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:m,preserveFollowOpacity:p}={}){const g=this.getStack();g&&g.promote(this,p),u&&(this.projectionDelta=void 0,this.needsReset=!0),m&&this.setOptions({transition:m})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let m=!1;const{latestValues:p}=u;if((p.z||p.rotate||p.rotateX||p.rotateY||p.rotateZ||p.skewX||p.skewY)&&(m=!0),!m)return;const g={};p.z&&Em("z",u,g,this.animationValues);for(let y=0;y<jm.length;y++)Em(`rotate${jm[y]}`,u,g,this.animationValues),Em(`skew${jm[y]}`,u,g,this.animationValues);u.render();for(const y in g)u.setStaticValue(y,g[y]),this.animationValues&&(this.animationValues[y]=g[y]);u.scheduleRender()}applyProjectionStyles(u,m){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const p=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=Qc(m==null?void 0:m.pointerEvents)||"",u.transform=p?p(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=Qc(m==null?void 0:m.pointerEvents)||""),this.hasProjected&&!Xi(this.latestValues)&&(u.transform=p?p({},""):"none",this.hasProjected=!1);return}u.visibility="";const y=g.animationValues||g.latestValues;this.applyTransformsToTarget();let b=$R(this.projectionDeltaWithTransform,this.treeScale,y);p&&(b=p(y,b)),u.transform=b;const{x:v,y:T}=this.projectionDelta;u.transformOrigin=`${v.origin*100}% ${T.origin*100}% 0`,g.animationValues?u.opacity=g===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:u.opacity=g===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const S in Np){if(y[S]===void 0)continue;const{correct:C,applyTo:E,isCSSVariable:O}=Np[S],D=b==="none"?y[S]:C(y[S],g);if(E){const M=E.length;for(let F=0;F<M;F++)u[E[F]]=D}else O?this.options.visualElement.renderState.vars[S]=D:u[S]=D}this.options.layoutId&&(u.pointerEvents=g===this?Qc(m==null?void 0:m.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var m;return(m=u.currentAnimation)==null?void 0:m.stop()}),this.root.nodes.forEach(Lb),this.root.sharedNodes.clear()}}}function nD(e){e.updateLayout()}function aD(e){var a;const t=((a=e.resumeFrom)==null?void 0:a.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:c}=e.options,u=t.source!==e.layout.source;c==="size"?aa(b=>{const v=u?t.measuredBox[b]:t.layoutBox[b],T=Zt(v);v.min=r[b].min,v.max=v.min+T}):y4(c,t.layoutBox,r)&&aa(b=>{const v=u?t.measuredBox[b]:t.layoutBox[b],T=Zt(r[b]);v.max=v.min+T,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[b].max=e.relativeTarget[b].min+T)});const m=ts();Ho(m,r,t.layoutBox);const p=ts();u?Ho(p,e.applyTransform(o,!0),t.measuredBox):Ho(p,r,t.layoutBox);const g=!d4(m);let y=!1;if(!e.resumeFrom){const b=e.getClosestProjectingParent();if(b&&!b.resumeFrom){const{snapshot:v,layout:T}=b;if(v&&T){const S=wt();bu(S,t.layoutBox,v.layoutBox);const C=wt();bu(C,r,T.layoutBox),f4(S,C)||(y=!0),b.options.layoutRoot&&(e.relativeTarget=C,e.relativeTargetOrigin=S,e.relativeParent=b)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:p,layoutDelta:m,hasLayoutChanged:g,hasRelativeLayoutChanged:y})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function iD(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function rD(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function sD(e){e.clearSnapshot()}function Lb(e){e.clearMeasurements()}function Bb(e){e.isLayoutDirty=!1}function oD(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function zb(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function lD(e){e.resolveTargetDelta()}function cD(e){e.calcProjection()}function uD(e){e.resetSkewAndRotation()}function dD(e){e.removeLeadSnapshot()}function Pb(e,t,a){e.translate=st(t.translate,0,a),e.scale=st(t.scale,1,a),e.origin=t.origin,e.originPoint=t.originPoint}function Vb(e,t,a,r){e.min=st(t.min,a.min,r),e.max=st(t.max,a.max,r)}function fD(e,t,a,r){Vb(e.x,t.x,a.x,r),Vb(e.y,t.y,a.y,r)}function mD(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const pD={duration:.45,ease:[.4,0,.1,1]},Ub=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Hb=Ub("applewebkit/")&&!Ub("chrome/")?Math.round:_n;function qb(e){e.min=Hb(e.min),e.max=Hb(e.max)}function hD(e){qb(e.x),qb(e.y)}function y4(e,t,a){return e==="position"||e==="preserve-aspect"&&!PR(Mb(t),Mb(a),.2)}function gD(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const yD=g4({attachResizeListener:(e,t)=>Qo(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Tm={current:void 0},x4=g4({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!Tm.current){const e=new yD({});e.mount(window),e.setOptions({layoutScroll:!0}),Tm.current=e}return Tm.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),b4=w.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function xD(e=!0){const t=w.useContext(vh);if(t===null)return[!0,null];const{isPresent:a,onExitComplete:r,register:o}=t,c=w.useId();w.useEffect(()=>{if(e)return o(c)},[e]);const u=w.useCallback(()=>e&&r&&r(c),[c,r,e]);return!a&&r?[!1,u]:[!0]}const v4=w.createContext({strict:!1}),Fb={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let $b=!1;function bD(){if($b)return;const e={};for(const t in Fb)e[t]={isEnabled:a=>Fb[t].some(r=>!!a[r])};K5(e),$b=!0}function w4(){return bD(),uR()}function vD(e){const t=w4();for(const a in e)t[a]={...t[a],...e[a]};K5(t)}const wD=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function vu(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||wD.has(e)}let k4=e=>!vu(e);function kD(e){typeof e=="function"&&(k4=t=>t.startsWith("on")?!vu(t):e(t))}try{kD(require("@emotion/is-prop-valid").default)}catch{}function SD(e,t,a){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(k4(o)||a===!0&&vu(o)||!t&&!vu(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const Hu=w.createContext({});function CD(e,t){if(Uu(e)){const{initial:a,animate:r}=e;return{initial:a===!1||Wo(a)?a:void 0,animate:Wo(r)?r:void 0}}return e.inherit!==!1?t:{}}function jD(e){const{initial:t,animate:a}=CD(e,w.useContext(Hu));return w.useMemo(()=>({initial:t,animate:a}),[Yb(t),Yb(a)])}function Yb(e){return Array.isArray(e)?e.join(" "):e}const Zh=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function S4(e,t,a){for(const r in t)!Ft(t[r])&&!n4(r,a)&&(e[r]=t[r])}function ED({transformTemplate:e},t){return w.useMemo(()=>{const a=Zh();return Gh(a,t,e),Object.assign({},a.vars,a.style)},[t])}function TD(e,t){const a=e.style||{},r={};return S4(r,a,e),Object.assign(r,ED(e,t)),r}function AD(e,t){const a={},r=TD(e,t);return e.drag&&e.dragListener!==!1&&(a.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(a.tabIndex=0),a.style=r,a}const C4=()=>({...Zh(),attrs:{}});function ND(e,t,a,r){const o=w.useMemo(()=>{const c=C4();return a4(c,t,r4(r),e.transformTemplate,e.style),{...c.attrs,style:{...c.style}}},[t]);if(e.style){const c={};S4(c,e.style,e),o.style={...c,...o.style}}return o}const MD=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Kh(e){return typeof e!="string"||e.includes("-")?!1:!!(MD.indexOf(e)>-1||/[A-Z]/u.test(e))}function RD(e,t,a,{latestValues:r},o,c=!1,u){const p=(u??Kh(e)?ND:AD)(t,r,o,e),g=SD(t,typeof e=="string",c),y=e!==w.Fragment?{...g,...p,ref:a}:{},{children:b}=t,v=w.useMemo(()=>Ft(b)?b.get():b,[b]);return w.createElement(e,{...y,children:v})}function DD({scrapeMotionValuesFromProps:e,createRenderState:t},a,r,o){return{latestValues:OD(a,r,o,e),renderState:t()}}function OD(e,t,a,r){const o={},c=r(e,{});for(const v in c)o[v]=Qc(c[v]);let{initial:u,animate:m}=e;const p=Uu(e),g=I5(e);t&&g&&!p&&e.inherit!==!1&&(u===void 0&&(u=t.initial),m===void 0&&(m=t.animate));let y=a?a.initial===!1:!1;y=y||u===!1;const b=y?m:u;if(b&&typeof b!="boolean"&&!Vu(b)){const v=Array.isArray(b)?b:[b];for(let T=0;T<v.length;T++){const S=Ph(e,v[T]);if(S){const{transitionEnd:C,transition:E,...O}=S;for(const D in O){let M=O[D];if(Array.isArray(M)){const F=y?M.length-1:0;M=M[F]}M!==null&&(o[D]=M)}for(const D in C)o[D]=C[D]}}}return o}const j4=e=>(t,a)=>{const r=w.useContext(Hu),o=w.useContext(vh),c=()=>DD(e,t,r,o);return a?c():LA(c)},_D=j4({scrapeMotionValuesFromProps:Ih,createRenderState:Zh}),LD=j4({scrapeMotionValuesFromProps:s4,createRenderState:C4}),BD=Symbol.for("motionComponentSymbol");function zD(e,t,a){const r=w.useRef(a);w.useInsertionEffect(()=>{r.current=a});const o=w.useRef(null);return w.useCallback(c=>{var m;c&&((m=e.onMount)==null||m.call(e,c)),t&&(c?t.mount(c):t.unmount());const u=r.current;if(typeof u=="function")if(c){const p=u(c);typeof p=="function"&&(o.current=p)}else o.current?(o.current(),o.current=null):u(c);else u&&(u.current=c)},[t])}const E4=w.createContext({});function Wr(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function PD(e,t,a,r,o,c){var M,F;const{visualElement:u}=w.useContext(Hu),m=w.useContext(v4),p=w.useContext(vh),g=w.useContext(b4),y=g.reducedMotion,b=g.skipAnimations,v=w.useRef(null),T=w.useRef(!1);r=r||m.renderer,!v.current&&r&&(v.current=r(e,{visualState:t,parent:u,props:a,presenceContext:p,blockInitialAnimation:p?p.initial===!1:!1,reducedMotionConfig:y,skipAnimations:b,isSVG:c}),T.current&&v.current&&(v.current.manuallyAnimateOnMount=!0));const S=v.current,C=w.useContext(E4);S&&!S.projection&&o&&(S.type==="html"||S.type==="svg")&&VD(v.current,a,o,C);const E=w.useRef(!1);w.useInsertionEffect(()=>{S&&E.current&&S.update(a,p)});const O=a[_5],D=w.useRef(!!O&&!((M=window.MotionHandoffIsComplete)!=null&&M.call(window,O))&&((F=window.MotionHasOptimisedAnimation)==null?void 0:F.call(window,O)));return BA(()=>{T.current=!0,S&&(E.current=!0,window.MotionIsMounted=!0,S.updateFeatures(),S.scheduleRenderMicrotask(),D.current&&S.animationState&&S.animationState.animateChanges())}),w.useEffect(()=>{S&&(!D.current&&S.animationState&&S.animationState.animateChanges(),D.current&&(queueMicrotask(()=>{var V;(V=window.MotionHandoffMarkAsComplete)==null||V.call(window,O)}),D.current=!1),S.enteringChildren=void 0)}),S}function VD(e,t,a,r){const{layoutId:o,layout:c,drag:u,dragConstraints:m,layoutScroll:p,layoutRoot:g,layoutCrossfade:y}=t;e.projection=new a(e.latestValues,t["data-framer-portal-id"]?void 0:T4(e.parent)),e.projection.setOptions({layoutId:o,layout:c,alwaysMeasureLayout:!!u||m&&Wr(m),visualElement:e,animationType:typeof c=="string"?c:"both",initialPromotionConfig:r,crossfade:y,layoutScroll:p,layoutRoot:g})}function T4(e){if(e)return e.options.allowProjection!==!1?e.projection:T4(e.parent)}function Am(e,{forwardMotionProps:t=!1,type:a}={},r,o){r&&vD(r);const c=a?a==="svg":Kh(e),u=c?LD:_D;function m(g,y){let b;const v={...w.useContext(b4),...g,layoutId:UD(g)},{isStatic:T}=v,S=jD(g),C=u(g,T);if(!T&&K2){HD();const E=qD(v);b=E.MeasureLayout,S.visualElement=PD(e,C,v,o,E.ProjectionNode,c)}return f.jsxs(Hu.Provider,{value:S,children:[b&&S.visualElement?f.jsx(b,{visualElement:S.visualElement,...v}):null,RD(e,g,zD(C,S.visualElement,y),C,T,t,c)]})}m.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const p=w.forwardRef(m);return p[BD]=e,p}function UD({layoutId:e}){const t=w.useContext(Z2).id;return t&&e!==void 0?t+"-"+e:e}function HD(e,t){w.useContext(v4).strict}function qD(e){const t=w4(),{drag:a,layout:r}=t;if(!a&&!r)return{};const o={...a,...r};return{MeasureLayout:a!=null&&a.isEnabled(e)||r!=null&&r.isEnabled(e)?o.MeasureLayout:void 0,ProjectionNode:o.ProjectionNode}}function FD(e,t){if(typeof Proxy>"u")return Am;const a=new Map,r=(c,u)=>Am(c,u,e,t),o=(c,u)=>r(c,u);return new Proxy(o,{get:(c,u)=>u==="create"?r:(a.has(u)||a.set(u,Am(u,void 0,e,t)),a.get(u))})}const $D=(e,t)=>t.isSVG??Kh(e)?new TR(t):new wR(t,{allowProjection:e!==w.Fragment});class YD extends ki{constructor(t){super(t),t.animationState||(t.animationState=DR(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Vu(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:a}=this.node.prevProps||{};t!==a&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let GD=0;class ID extends ki{constructor(){super(...arguments),this.id=GD++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:a}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);a&&!t&&o.then(()=>{a(this.id)})}mount(){const{register:t,onExitComplete:a}=this.node.presenceContext||{};a&&a(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const ZD={animation:{Feature:YD},exit:{Feature:ID}};function xl(e){return{point:{x:e.pageX,y:e.pageY}}}const KD=e=>t=>qh(t)&&e(t,xl(t));function qo(e,t,a,r){return Qo(e,t,KD(a),r)}const A4=({current:e})=>e?e.ownerDocument.defaultView:null,Gb=(e,t)=>Math.abs(e-t);function XD(e,t){const a=Gb(e.x,t.x),r=Gb(e.y,t.y);return Math.sqrt(a**2+r**2)}const Ib=new Set(["auto","scroll"]);class N4{constructor(t,a,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:c=!1,distanceThreshold:u=3,element:m}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=T=>{this.handleScroll(T.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const T=Mm(this.lastMoveEventInfo,this.history),S=this.startEvent!==null,C=XD(T.offset,{x:0,y:0})>=this.distanceThreshold;if(!S&&!C)return;const{point:E}=T,{timestamp:O}=Bt;this.history.push({...E,timestamp:O});const{onStart:D,onMove:M}=this.handlers;S||(D&&D(this.lastMoveEvent,T),this.startEvent=this.lastMoveEvent),M&&M(this.lastMoveEvent,T)},this.handlePointerMove=(T,S)=>{this.lastMoveEvent=T,this.lastMoveEventInfo=Nm(S,this.transformPagePoint),Je.update(this.updatePoint,!0)},this.handlePointerUp=(T,S)=>{this.end();const{onEnd:C,onSessionEnd:E,resumeAnimation:O}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&O&&O(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const D=Mm(T.type==="pointercancel"?this.lastMoveEventInfo:Nm(S,this.transformPagePoint),this.history);this.startEvent&&C&&C(T,D),E&&E(T,D)},!qh(t))return;this.dragSnapToOrigin=c,this.handlers=a,this.transformPagePoint=r,this.distanceThreshold=u,this.contextWindow=o||window;const p=xl(t),g=Nm(p,this.transformPagePoint),{point:y}=g,{timestamp:b}=Bt;this.history=[{...y,timestamp:b}];const{onSessionStart:v}=a;v&&v(t,Mm(g,this.history)),this.removeListeners=hl(qo(this.contextWindow,"pointermove",this.handlePointerMove),qo(this.contextWindow,"pointerup",this.handlePointerUp),qo(this.contextWindow,"pointercancel",this.handlePointerUp)),m&&this.startScrollTracking(m)}startScrollTracking(t){let a=t.parentElement;for(;a;){const r=getComputedStyle(a);(Ib.has(r.overflowX)||Ib.has(r.overflowY))&&this.scrollPositions.set(a,{x:a.scrollLeft,y:a.scrollTop}),a=a.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const a=this.scrollPositions.get(t);if(!a)return;const r=t===window,o=r?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},c={x:o.x-a.x,y:o.y-a.y};c.x===0&&c.y===0||(r?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=c.x,this.lastMoveEventInfo.point.y+=c.y):this.history.length>0&&(this.history[0].x-=c.x,this.history[0].y-=c.y),this.scrollPositions.set(t,o),Je.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),vi(this.updatePoint)}}function Nm(e,t){return t?{point:t(e.point)}:e}function Zb(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Mm({point:e},t){return{point:e,delta:Zb(e,M4(t)),offset:Zb(e,WD(t)),velocity:QD(t,.1)}}function WD(e){return e[0]}function M4(e){return e[e.length-1]}function QD(e,t){if(e.length<2)return{x:0,y:0};let a=e.length-1,r=null;const o=M4(e);for(;a>=0&&(r=e[a],!(o.timestamp-r.timestamp>Gn(t)));)a--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&o.timestamp-r.timestamp>Gn(t)*2&&(r=e[1]);const c=On(o.timestamp-r.timestamp);if(c===0)return{x:0,y:0};const u={x:(o.x-r.x)/c,y:(o.y-r.y)/c};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function JD(e,{min:t,max:a},r){return t!==void 0&&e<t?e=r?st(t,e,r.min):Math.max(e,t):a!==void 0&&e>a&&(e=r?st(a,e,r.max):Math.min(e,a)),e}function Kb(e,t,a){return{min:t!==void 0?e.min+t:void 0,max:a!==void 0?e.max+a-(e.max-e.min):void 0}}function eO(e,{top:t,left:a,bottom:r,right:o}){return{x:Kb(e.x,a,o),y:Kb(e.y,t,r)}}function Xb(e,t){let a=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([a,r]=[r,a]),{min:a,max:r}}function tO(e,t){return{x:Xb(e.x,t.x),y:Xb(e.y,t.y)}}function nO(e,t){let a=.5;const r=Zt(e),o=Zt(t);return o>r?a=Zo(t.min,t.max-r,e.min):r>o&&(a=Zo(e.min,e.max-o,t.min)),da(0,1,a)}function aO(e,t){const a={};return t.min!==void 0&&(a.min=t.min-e.min),t.max!==void 0&&(a.max=t.max-e.min),a}const Mp=.35;function iO(e=Mp){return e===!1?e=0:e===!0&&(e=Mp),{x:Wb(e,"left","right"),y:Wb(e,"top","bottom")}}function Wb(e,t,a){return{min:Qb(e,t),max:Qb(e,a)}}function Qb(e,t){return typeof e=="number"?e:e[t]||0}const rO=new WeakMap;class sO{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=wt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:a=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const c=b=>{a&&this.snapToCursor(xl(b).point),this.stopAnimation()},u=(b,v)=>{const{drag:T,dragPropagation:S,onDragStart:C}=this.getProps();if(T&&!S&&(this.openDragLock&&this.openDragLock(),this.openDragLock=UM(T),!this.openDragLock))return;this.latestPointerEvent=b,this.latestPanInfo=v,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),aa(O=>{let D=this.getAxisMotionValue(O).get()||0;if(ca.test(D)){const{projection:M}=this.visualElement;if(M&&M.layout){const F=M.layout.layoutBox[O];F&&(D=Zt(F)*(parseFloat(D)/100))}}this.originPoint[O]=D}),C&&Je.update(()=>C(b,v),!1,!0),Sp(this.visualElement,"transform");const{animationState:E}=this.visualElement;E&&E.setActive("whileDrag",!0)},m=(b,v)=>{this.latestPointerEvent=b,this.latestPanInfo=v;const{dragPropagation:T,dragDirectionLock:S,onDirectionLock:C,onDrag:E}=this.getProps();if(!T&&!this.openDragLock)return;const{offset:O}=v;if(S&&this.currentDirection===null){this.currentDirection=lO(O),this.currentDirection!==null&&C&&C(this.currentDirection);return}this.updateAxis("x",v.point,O),this.updateAxis("y",v.point,O),this.visualElement.render(),E&&Je.update(()=>E(b,v),!1,!0)},p=(b,v)=>{this.latestPointerEvent=b,this.latestPanInfo=v,this.stop(b,v),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:b}=this.getProps();(b||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new N4(t,{onSessionStart:c,onStart:u,onMove:m,onSessionEnd:p,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:r,contextWindow:A4(this.visualElement),element:this.visualElement.current})}stop(t,a){const r=t||this.latestPointerEvent,o=a||this.latestPanInfo,c=this.isDragging;if(this.cancel(),!c||!o||!r)return;const{velocity:u}=o;this.startAnimation(u);const{onDragEnd:m}=this.getProps();m&&Je.postRender(()=>m(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:a}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),a&&a.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,a,r){const{drag:o}=this.getProps();if(!r||!Bc(t,o,this.currentDirection))return;const c=this.getAxisMotionValue(t);let u=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(u=JD(u,this.constraints[t],this.elastic[t])),c.set(u)}resolveConstraints(){var c;const{dragConstraints:t,dragElastic:a}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(c=this.visualElement.projection)==null?void 0:c.layout,o=this.constraints;t&&Wr(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=eO(r.layoutBox,t):this.constraints=!1,this.elastic=iO(a),o!==this.constraints&&!Wr(t)&&r&&this.constraints&&!this.hasMutatedConstraints&&aa(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=aO(r.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:a}=this.getProps();if(!t||!Wr(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const c=hR(r,o.root,this.visualElement.getTransformPagePoint());let u=tO(o.layout.layoutBox,c);if(a){const m=a(fR(u));this.hasMutatedConstraints=!!m,m&&(u=W5(m))}return u}startAnimation(t){const{drag:a,dragMomentum:r,dragElastic:o,dragTransition:c,dragSnapToOrigin:u,onDragTransitionEnd:m}=this.getProps(),p=this.constraints||{},g=aa(y=>{if(!Bc(y,a,this.currentDirection))return;let b=p&&p[y]||{};u&&(b={min:0,max:0});const v=o?200:1e6,T=o?40:1e7,S={type:"inertia",velocity:r?t[y]:0,bounceStiffness:v,bounceDamping:T,timeConstant:750,restDelta:1,restSpeed:10,...c,...b};return this.startAxisValueAnimation(y,S)});return Promise.all(g).then(m)}startAxisValueAnimation(t,a){const r=this.getAxisMotionValue(t);return Sp(this.visualElement,t),r.start(zh(t,r,0,a,this.visualElement,!1))}stopAnimation(){aa(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const a=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[a];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){aa(a=>{const{drag:r}=this.getProps();if(!Bc(a,r,this.currentDirection))return;const{projection:o}=this.visualElement,c=this.getAxisMotionValue(a);if(o&&o.layout){const{min:u,max:m}=o.layout.layoutBox[a],p=c.get()||0;c.set(t[a]-st(u,m,.5)+p)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:a}=this.getProps(),{projection:r}=this.visualElement;if(!Wr(a)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};aa(u=>{const m=this.getAxisMotionValue(u);if(m&&this.constraints!==!1){const p=m.get();o[u]=nO({min:p,max:p},this.constraints[u])}});const{transformTemplate:c}=this.visualElement.getProps();this.visualElement.current.style.transform=c?c({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.constraints=!1,this.resolveConstraints(),aa(u=>{if(!Bc(u,t,null))return;const m=this.getAxisMotionValue(u),{min:p,max:g}=this.constraints[u];m.set(st(p,g,o[u]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;rO.set(this.visualElement,this);const t=this.visualElement.current,a=qo(t,"pointerdown",g=>{const{drag:y,dragListener:b=!0}=this.getProps(),v=g.target,T=v!==t&&GM(v);y&&b&&!T&&this.start(g)});let r;const o=()=>{const{dragConstraints:g}=this.getProps();Wr(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),r||(r=oO(t,g.current,()=>this.scalePositionWithinConstraints())))},{projection:c}=this.visualElement,u=c.addEventListener("measure",o);c&&!c.layout&&(c.root&&c.root.updateScroll(),c.updateLayout()),Je.read(o);const m=Qo(window,"resize",()=>this.scalePositionWithinConstraints()),p=c.addEventListener("didUpdate",({delta:g,hasLayoutChanged:y})=>{this.isDragging&&y&&(aa(b=>{const v=this.getAxisMotionValue(b);v&&(this.originPoint[b]+=g[b].translate,v.set(v.get()+g[b].translate))}),this.visualElement.render())});return()=>{m(),a(),u(),p&&p(),r&&r()}}getProps(){const t=this.visualElement.getProps(),{drag:a=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:c=!1,dragElastic:u=Mp,dragMomentum:m=!0}=t;return{...t,drag:a,dragDirectionLock:r,dragPropagation:o,dragConstraints:c,dragElastic:u,dragMomentum:m}}}function Jb(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function oO(e,t,a){const r=lb(e,Jb(a)),o=lb(t,Jb(a));return()=>{r(),o()}}function Bc(e,t,a){return(t===!0||t===e)&&(a===null||a===e)}function lO(e,t=10){let a=null;return Math.abs(e.y)>t?a="y":Math.abs(e.x)>t&&(a="x"),a}class cO extends ki{constructor(t){super(t),this.removeGroupControls=_n,this.removeListeners=_n,this.controls=new sO(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||_n}update(){const{dragControls:t}=this.node.getProps(),{dragControls:a}=this.node.prevProps||{};t!==a&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Rm=e=>(t,a)=>{e&&Je.update(()=>e(t,a),!1,!0)};class uO extends ki{constructor(){super(...arguments),this.removePointerDownListener=_n}onPointerDown(t){this.session=new N4(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:A4(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:a,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:Rm(t),onStart:Rm(a),onMove:Rm(r),onEnd:(c,u)=>{delete this.session,o&&Je.postRender(()=>o(c,u))}}}mount(){this.removePointerDownListener=qo(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Dm=!1;class dO extends w.Component{componentDidMount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:r,layoutId:o}=this.props,{projection:c}=t;c&&(a.group&&a.group.add(c),r&&r.register&&o&&r.register(c),Dm&&c.root.didUpdate(),c.addEventListener("animationComplete",()=>{this.safeToRemove()}),c.setOptions({...c.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Jc.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:a,visualElement:r,drag:o,isPresent:c}=this.props,{projection:u}=r;return u&&(u.isPresent=c,t.layoutDependency!==a&&u.setOptions({...u.options,layoutDependency:a}),Dm=!0,o||t.layoutDependency!==a||a===void 0||t.isPresent!==c?u.willUpdate():this.safeToRemove(),t.isPresent!==c&&(c?u.promote():u.relegate()||Je.postRender(()=>{const m=u.getStack();(!m||!m.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),Hh.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:a,switchLayoutGroup:r}=this.props,{projection:o}=t;Dm=!0,o&&(o.scheduleCheckAfterUnmount(),a&&a.group&&a.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function R4(e){const[t,a]=xD(),r=w.useContext(Z2);return f.jsx(dO,{...e,layoutGroup:r,switchLayoutGroup:w.useContext(E4),isPresent:t,safeToRemove:a})}const fO={pan:{Feature:uO},drag:{Feature:cO,ProjectionNode:x4,MeasureLayout:R4}};function ev(e,t,a){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",a==="Start");const o="onHover"+a,c=r[o];c&&Je.postRender(()=>c(t,xl(t)))}class mO extends ki{mount(){const{current:t}=this.node;t&&(this.unmount=qM(t,(a,r)=>(ev(this.node,r,"Start"),o=>ev(this.node,o,"End"))))}unmount(){}}class pO extends ki{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=hl(Qo(this.node.current,"focus",()=>this.onFocus()),Qo(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function tv(e,t,a){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",a==="Start");const o="onTap"+(a==="End"?"":a),c=r[o];c&&Je.postRender(()=>c(t,xl(t)))}class hO extends ki{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:a,propagate:r}=this.node.props;this.unmount=ZM(t,(o,c)=>(tv(this.node,c,"Start"),(u,{success:m})=>tv(this.node,u,m?"End":"Cancel")),{useGlobalTarget:a,stopPropagation:(r==null?void 0:r.tap)===!1})}unmount(){}}const Rp=new WeakMap,Om=new WeakMap,gO=e=>{const t=Rp.get(e.target);t&&t(e)},yO=e=>{e.forEach(gO)};function xO({root:e,...t}){const a=e||document;Om.has(a)||Om.set(a,{});const r=Om.get(a),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(yO,{root:e,...t})),r[o]}function bO(e,t,a){const r=xO(t);return Rp.set(e,a),r.observe(e),()=>{Rp.delete(e),r.unobserve(e)}}const vO={some:0,all:1};class wO extends ki{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:a,margin:r,amount:o="some",once:c}=t,u={root:a?a.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:vO[o]},m=p=>{const{isIntersecting:g}=p;if(this.isInView===g||(this.isInView=g,c&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:y,onViewportLeave:b}=this.node.getProps(),v=g?y:b;v&&v(p)};return bO(this.node.current,u,m)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:a}=this.node;["amount","margin","root"].some(kO(t,a))&&this.startObserver()}unmount(){}}function kO({viewport:e={}},{viewport:t={}}={}){return a=>e[a]!==t[a]}const SO={inView:{Feature:wO},tap:{Feature:hO},focus:{Feature:pO},hover:{Feature:mO}},CO={layout:{ProjectionNode:x4,MeasureLayout:R4}},jO={...ZD,...SO,...fO,...CO},EO=FD(jO,$D),ls=({variant:e="light",color:t="primary",size:a="md",startIcon:r,endIcon:o,children:c})=>{const u="inline-flex items-center px-2.5 py-0.5 justify-center gap-1 rounded-full font-medium",m={sm:"text-theme-xs",md:"text-sm"},p={light:{primary:"bg-brand-50 text-brand-500 dark:bg-brand-500/15 dark:text-brand-400",success:"bg-success-50 text-success-600 dark:bg-success-500/15 dark:text-success-500",error:"bg-error-50 text-error-600 dark:bg-error-500/15 dark:text-error-500",warning:"bg-warning-50 text-warning-600 dark:bg-warning-500/15 dark:text-orange-400",info:"bg-blue-light-50 text-blue-light-500 dark:bg-blue-light-500/15 dark:text-blue-light-500",light:"bg-gray-100 text-gray-700 dark:bg-white/5 dark:text-white/80",dark:"bg-gray-500 text-white dark:bg-white/5 dark:text-white"},solid:{primary:"bg-brand-500 text-white dark:text-white",success:"bg-success-500 text-white dark:text-white",error:"bg-error-500 text-white dark:text-white",warning:"bg-warning-500 text-white dark:text-white",info:"bg-blue-light-500 text-white dark:text-white",light:"bg-gray-400 dark:bg-white/5 text-white dark:text-white/80",dark:"bg-gray-700 text-white dark:text-white"}},g=m[a],y=p[e][t];return f.jsxs("span",{className:`${u} ${g} ${y}`,children:[r&&f.jsx("span",{className:"mr-1",children:r}),c,o&&f.jsx("span",{className:"ml-1",children:o})]})},nv={total_master:0,total_batches:0,total_files:0,total_renamed:0,total_need_review:0,total_failed:0};function TO(){const[e,t]=w.useState(nv),[a,r]=w.useState(!0),[o,c]=w.useState(!1),[u,m]=w.useState(new Date),p=async(y=!0)=>{var b;y?r(!0):c(!0);try{const v=await Le.get("/api/dashboard/summary");t({...nv,...((b=v.data)==null?void 0:b.data)||{}}),m(new Date)}catch{be.fire("Gagal","Gagal mengambil ringkasan dashboard","error")}finally{r(!1),c(!1)}};w.useEffect(()=>{p()},[]);const g=[{label:"Master Karyawan",value:e.total_master,icon:r2,color:"text-blue-600",bg:"bg-blue-50 dark:bg-blue-900/20",link:"/master"},{label:"Batch Upload",value:e.total_batches,icon:Yo,color:"text-emerald-600",bg:"bg-emerald-50 dark:bg-emerald-900/20",link:"/uploads"},{label:"Total File",value:e.total_files,icon:o2,color:"text-indigo-600",bg:"bg-indigo-50 dark:bg-indigo-900/20",link:"/uploads"},{label:"Berhasil Rename",value:e.total_renamed,icon:$o,color:"text-teal-600",bg:"bg-teal-50 dark:bg-teal-900/20",link:"/reports"},{label:"Perlu Review",value:e.total_need_review,icon:s2,color:"text-amber-600",bg:"bg-amber-50 dark:bg-amber-900/20",link:"/reviews"},{label:"Gagal",value:e.total_failed,icon:F6,color:"text-rose-600",bg:"bg-rose-50 dark:bg-rose-900/20",link:"/reviews"}];return f.jsxs(f.Fragment,{children:[f.jsx(fa,{title:"Dashboard File Renamer",description:"Ringkasan proses rename Timesheet, Approval, dan Email."}),f.jsxs("div",{className:"min-h-screen bg-gray-50/50 p-4 dark:bg-gray-950 md:p-8",children:[f.jsxs("div",{className:"mb-8 flex flex-col justify-between gap-4 md:flex-row md:items-center",children:[f.jsxs("div",{children:[f.jsx("h1",{className:"mb-1 text-3xl font-bold text-gray-900 dark:text-white",children:"Dashboard File Renamer"}),f.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:"Monitoring master data, upload dokumen, hasil rename, dan review queue."})]}),f.jsxs("div",{className:"flex flex-col items-end gap-1.5",children:[f.jsxs("button",{onClick:()=>p(!1),disabled:o,className:"flex items-center gap-2 rounded-xl border border-gray-200 bg-white px-4 py-2 text-sm font-medium shadow-sm transition-colors hover:bg-gray-50 disabled:opacity-50 dark:border-gray-700 dark:bg-gray-800 dark:hover:bg-gray-700",children:[f.jsx(lj,{className:`h-4 w-4 ${o?"animate-spin":""}`}),o?"Memperbarui...":"Refresh"]}),f.jsxs("span",{className:"text-[10px] text-gray-400",children:["Update: ",u.toLocaleTimeString("id-ID")]})]})]}),a?f.jsx("div",{className:"grid animate-pulse grid-cols-1 gap-6 md:grid-cols-3",children:[1,2,3].map(y=>f.jsx("div",{className:"h-32 rounded-2xl bg-gray-200 dark:bg-gray-800"},y))}):f.jsx("div",{className:"grid grid-cols-1 gap-6 md:grid-cols-2 xl:grid-cols-3",children:g.map((y,b)=>f.jsx(EO.div,{initial:{opacity:0,y:18},animate:{opacity:1,y:0},transition:{delay:b*.05},className:"rounded-2xl border border-gray-100 bg-white p-6 shadow-sm transition-shadow hover:shadow-md dark:border-gray-700 dark:bg-gray-800",children:f.jsxs("div",{className:"flex items-center gap-4",children:[f.jsx("div",{className:`rounded-xl p-3 ${y.bg}`,children:f.jsx(y.icon,{className:`h-6 w-6 ${y.color}`})}),f.jsxs("div",{className:"min-w-0 flex-1",children:[f.jsx("p",{className:"truncate text-xs font-medium text-gray-500 dark:text-gray-400",children:y.label}),f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("h3",{className:"text-2xl font-bold text-gray-900 dark:text-white",children:y.value}),f.jsx(Yn,{to:y.link,className:"p-1 text-gray-300 transition-colors hover:text-blue-500",children:f.jsx(A6,{className:"h-5 w-5"})})]})]})]})},y.label))}),f.jsx("div",{className:"mt-8 rounded-2xl border border-gray-100 bg-white p-6 shadow-sm dark:border-gray-700 dark:bg-gray-800",children:f.jsxs("div",{className:"flex flex-col gap-4 md:flex-row md:items-center md:justify-between",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-lg font-semibold text-gray-900 dark:text-white",children:"Alur Kerja"}),f.jsx("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:"Import master Excel, upload dokumen PDF/MSG, proses rename, lalu selesaikan file yang masuk review."})]}),f.jsxs("div",{className:"flex flex-wrap gap-2",children:[f.jsx(ls,{color:"info",children:"TIMESHEET"}),f.jsx(ls,{color:"warning",children:"APPROVAL"}),f.jsx(ls,{color:"success",children:"EMAIL"})]})]})})]})]})}const dr=({pageTitle:e})=>f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3 mb-6",children:[f.jsx("h2",{className:"text-xl font-semibold text-gray-800 dark:text-white/90","x-text":"pageName",children:e}),f.jsx("nav",{children:f.jsxs("ol",{className:"flex items-center gap-1.5",children:[f.jsx("li",{children:f.jsxs(Yn,{className:"inline-flex items-center gap-1.5 text-sm text-gray-500 dark:text-gray-400",to:"/",children:["Home",f.jsx("svg",{className:"stroke-current",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{d:"M6.0765 12.667L10.2432 8.50033L6.0765 4.33366",stroke:"",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})]})}),f.jsx("li",{className:"text-sm text-gray-800 dark:text-white/90",children:e})]})})]}),AO=(e=!1)=>{const[t,a]=w.useState(e),r=w.useCallback(()=>a(!0),[]),o=w.useCallback(()=>a(!1),[]),c=w.useCallback(()=>a(u=>!u),[]);return{isOpen:t,openModal:r,closeModal:o,toggleModal:c}},D4=({isOpen:e,onClose:t,children:a,className:r,showCloseButton:o=!0,isFullscreen:c=!1})=>{const u=w.useRef(null);if(w.useEffect(()=>{const p=g=>{g.key==="Escape"&&t()};return e&&document.addEventListener("keydown",p),()=>{document.removeEventListener("keydown",p)}},[e,t]),w.useEffect(()=>(e?document.body.style.overflow="hidden":document.body.style.overflow="unset",()=>{document.body.style.overflow="unset"}),[e]),!e)return null;const m=c?"w-full h-full":"relative w-full rounded-3xl bg-white  dark:bg-gray-900";return f.jsxs("div",{className:"fixed inset-0 flex items-center justify-center overflow-y-auto modal z-99999",children:[!c&&f.jsx("div",{className:"fixed inset-0 h-full w-full bg-gray-400/50 backdrop-blur-[32px]",onClick:t}),f.jsxs("div",{ref:u,className:`${m}  ${r}`,onClick:p=>p.stopPropagation(),children:[o&&f.jsx("button",{onClick:t,className:"absolute right-3 top-3 z-999 flex h-9.5 w-9.5 items-center justify-center rounded-full bg-gray-100 text-gray-400 transition-colors hover:bg-gray-200 hover:text-gray-700 dark:bg-gray-800 dark:text-gray-400 dark:hover:bg-gray-700 dark:hover:text-white sm:right-6 sm:top-6 sm:h-11 sm:w-11",children:f.jsx("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:f.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6.04289 16.5413C5.65237 16.9318 5.65237 17.565 6.04289 17.9555C6.43342 18.346 7.06658 18.346 7.45711 17.9555L11.9987 13.4139L16.5408 17.956C16.9313 18.3466 17.5645 18.3466 17.955 17.956C18.3455 17.5655 18.3455 16.9323 17.955 16.5418L13.4129 11.9997L17.955 7.4576C18.3455 7.06707 18.3455 6.43391 17.955 6.04338C17.5645 5.65286 16.9313 5.65286 16.5408 6.04338L11.9987 10.5855L7.45711 6.0439C7.06658 5.65338 6.43342 5.65338 6.04289 6.0439C5.65237 6.43442 5.65237 7.06759 6.04289 7.45811L10.5845 11.9997L6.04289 16.5413Z",fill:"currentColor"})})}),f.jsx("div",{children:a})]})]})},O4=6048e5,NO=864e5,_4=6e4,L4=36e5,av=Symbol.for("constructDateFrom");function Ha(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&av in e?e[av](t):e instanceof Date?new e.constructor(t):new Date(t)}function pn(e,t){return Ha(t||e,e)}let MO={};function qu(){return MO}function Jo(e,t){var m,p,g,y;const a=qu(),r=(t==null?void 0:t.weekStartsOn)??((p=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:p.weekStartsOn)??a.weekStartsOn??((y=(g=a.locale)==null?void 0:g.options)==null?void 0:y.weekStartsOn)??0,o=pn(e,t==null?void 0:t.in),c=o.getDay(),u=(c<r?7:0)+c-r;return o.setDate(o.getDate()-u),o.setHours(0,0,0,0),o}function wu(e,t){return Jo(e,{...t,weekStartsOn:1})}function B4(e,t){const a=pn(e,t==null?void 0:t.in),r=a.getFullYear(),o=Ha(a,0);o.setFullYear(r+1,0,4),o.setHours(0,0,0,0);const c=wu(o),u=Ha(a,0);u.setFullYear(r,0,4),u.setHours(0,0,0,0);const m=wu(u);return a.getTime()>=c.getTime()?r+1:a.getTime()>=m.getTime()?r:r-1}function iv(e){const t=pn(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function RO(e,...t){const a=Ha.bind(null,t.find(r=>typeof r=="object"));return t.map(a)}function rv(e,t){const a=pn(e,t==null?void 0:t.in);return a.setHours(0,0,0,0),a}function DO(e,t,a){const[r,o]=RO(a==null?void 0:a.in,e,t),c=rv(r),u=rv(o),m=+c-iv(c),p=+u-iv(u);return Math.round((m-p)/NO)}function OO(e,t){const a=B4(e,t),r=Ha(e,0);return r.setFullYear(a,0,4),r.setHours(0,0,0,0),wu(r)}function _O(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function LO(e){return!(!_O(e)&&typeof e!="number"||isNaN(+pn(e)))}function BO(e,t){const a=pn(e,t==null?void 0:t.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}const zO={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},PO=(e,t,a)=>{let r;const o=zO[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+r:r+" ago":r};function cs(e){return(t={})=>{const a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}const VO={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},UO={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},HO={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},qO={date:cs({formats:VO,defaultWidth:"full"}),time:cs({formats:UO,defaultWidth:"full"}),dateTime:cs({formats:HO,defaultWidth:"full"})},FO={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},$O=(e,t,a,r)=>FO[e];function sa(e){return(t,a)=>{const r=a!=null&&a.context?String(a.context):"standalone";let o;if(r==="formatting"&&e.formattingValues){const u=e.defaultFormattingWidth||e.defaultWidth,m=a!=null&&a.width?String(a.width):u;o=e.formattingValues[m]||e.formattingValues[u]}else{const u=e.defaultWidth,m=a!=null&&a.width?String(a.width):e.defaultWidth;o=e.values[m]||e.values[u]}const c=e.argumentCallback?e.argumentCallback(t):t;return o[c]}}const YO={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},GO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},IO={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},ZO={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},KO={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},XO={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},WO=(e,t)=>{const a=Number(e),r=a%100;if(r>20||r<10)switch(r%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},QO={ordinalNumber:WO,era:sa({values:YO,defaultWidth:"wide"}),quarter:sa({values:GO,defaultWidth:"wide",argumentCallback:e=>e-1}),month:sa({values:IO,defaultWidth:"wide"}),day:sa({values:ZO,defaultWidth:"wide"}),dayPeriod:sa({values:KO,defaultWidth:"wide",formattingValues:XO,defaultFormattingWidth:"wide"})};function oa(e){return(t,a={})=>{const r=a.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],c=t.match(o);if(!c)return null;const u=c[0],m=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],p=Array.isArray(m)?e_(m,b=>b.test(u)):JO(m,b=>b.test(u));let g;g=e.valueCallback?e.valueCallback(p):p,g=a.valueCallback?a.valueCallback(g):g;const y=t.slice(u.length);return{value:g,rest:y}}}function JO(e,t){for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}function e_(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}function z4(e){return(t,a={})=>{const r=t.match(e.matchPattern);if(!r)return null;const o=r[0],c=t.match(e.parsePattern);if(!c)return null;let u=e.valueCallback?e.valueCallback(c[0]):c[0];u=a.valueCallback?a.valueCallback(u):u;const m=t.slice(o.length);return{value:u,rest:m}}}const t_=/^(\d+)(th|st|nd|rd)?/i,n_=/\d+/i,a_={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},i_={any:[/^b/i,/^(a|c)/i]},r_={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},s_={any:[/1/i,/2/i,/3/i,/4/i]},o_={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},l_={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},c_={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},u_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},d_={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},f_={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},m_={ordinalNumber:z4({matchPattern:t_,parsePattern:n_,valueCallback:e=>parseInt(e,10)}),era:oa({matchPatterns:a_,defaultMatchWidth:"wide",parsePatterns:i_,defaultParseWidth:"any"}),quarter:oa({matchPatterns:r_,defaultMatchWidth:"wide",parsePatterns:s_,defaultParseWidth:"any",valueCallback:e=>e+1}),month:oa({matchPatterns:o_,defaultMatchWidth:"wide",parsePatterns:l_,defaultParseWidth:"any"}),day:oa({matchPatterns:c_,defaultMatchWidth:"wide",parsePatterns:u_,defaultParseWidth:"any"}),dayPeriod:oa({matchPatterns:d_,defaultMatchWidth:"any",parsePatterns:f_,defaultParseWidth:"any"})},p_={code:"en-US",formatDistance:PO,formatLong:qO,formatRelative:$O,localize:QO,match:m_,options:{weekStartsOn:0,firstWeekContainsDate:1}};function h_(e,t){const a=pn(e,t==null?void 0:t.in);return DO(a,BO(a))+1}function g_(e,t){const a=pn(e,t==null?void 0:t.in),r=+wu(a)-+OO(a);return Math.round(r/O4)+1}function P4(e,t){var y,b,v,T;const a=pn(e,t==null?void 0:t.in),r=a.getFullYear(),o=qu(),c=(t==null?void 0:t.firstWeekContainsDate)??((b=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:b.firstWeekContainsDate)??o.firstWeekContainsDate??((T=(v=o.locale)==null?void 0:v.options)==null?void 0:T.firstWeekContainsDate)??1,u=Ha((t==null?void 0:t.in)||e,0);u.setFullYear(r+1,0,c),u.setHours(0,0,0,0);const m=Jo(u,t),p=Ha((t==null?void 0:t.in)||e,0);p.setFullYear(r,0,c),p.setHours(0,0,0,0);const g=Jo(p,t);return+a>=+m?r+1:+a>=+g?r:r-1}function y_(e,t){var m,p,g,y;const a=qu(),r=(t==null?void 0:t.firstWeekContainsDate)??((p=(m=t==null?void 0:t.locale)==null?void 0:m.options)==null?void 0:p.firstWeekContainsDate)??a.firstWeekContainsDate??((y=(g=a.locale)==null?void 0:g.options)==null?void 0:y.firstWeekContainsDate)??1,o=P4(e,t),c=Ha((t==null?void 0:t.in)||e,0);return c.setFullYear(o,0,r),c.setHours(0,0,0,0),Jo(c,t)}function x_(e,t){const a=pn(e,t==null?void 0:t.in),r=+Jo(a,t)-+y_(a,t);return Math.round(r/O4)+1}function Ge(e,t){const a=e<0?"-":"",r=Math.abs(e).toString().padStart(t,"0");return a+r}const di={y(e,t){const a=e.getFullYear(),r=a>0?a:1-a;return Ge(t==="yy"?r%100:r,t.length)},M(e,t){const a=e.getMonth();return t==="M"?String(a+1):Ge(a+1,2)},d(e,t){return Ge(e.getDate(),t.length)},a(e,t){const a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(e,t){return Ge(e.getHours()%12||12,t.length)},H(e,t){return Ge(e.getHours(),t.length)},m(e,t){return Ge(e.getMinutes(),t.length)},s(e,t){return Ge(e.getSeconds(),t.length)},S(e,t){const a=t.length,r=e.getMilliseconds(),o=Math.trunc(r*Math.pow(10,a-3));return Ge(o,t.length)}},Xr={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},sv={G:function(e,t,a){const r=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(r,{width:"abbreviated"});case"GGGGG":return a.era(r,{width:"narrow"});case"GGGG":default:return a.era(r,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){const r=e.getFullYear(),o=r>0?r:1-r;return a.ordinalNumber(o,{unit:"year"})}return di.y(e,t)},Y:function(e,t,a,r){const o=P4(e,r),c=o>0?o:1-o;if(t==="YY"){const u=c%100;return Ge(u,2)}return t==="Yo"?a.ordinalNumber(c,{unit:"year"}):Ge(c,t.length)},R:function(e,t){const a=B4(e);return Ge(a,t.length)},u:function(e,t){const a=e.getFullYear();return Ge(a,t.length)},Q:function(e,t,a){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(r);case"QQ":return Ge(r,2);case"Qo":return a.ordinalNumber(r,{unit:"quarter"});case"QQQ":return a.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(r,{width:"wide",context:"formatting"})}},q:function(e,t,a){const r=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(r);case"qq":return Ge(r,2);case"qo":return a.ordinalNumber(r,{unit:"quarter"});case"qqq":return a.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(r,{width:"wide",context:"standalone"})}},M:function(e,t,a){const r=e.getMonth();switch(t){case"M":case"MM":return di.M(e,t);case"Mo":return a.ordinalNumber(r+1,{unit:"month"});case"MMM":return a.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(r,{width:"wide",context:"formatting"})}},L:function(e,t,a){const r=e.getMonth();switch(t){case"L":return String(r+1);case"LL":return Ge(r+1,2);case"Lo":return a.ordinalNumber(r+1,{unit:"month"});case"LLL":return a.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(r,{width:"wide",context:"standalone"})}},w:function(e,t,a,r){const o=x_(e,r);return t==="wo"?a.ordinalNumber(o,{unit:"week"}):Ge(o,t.length)},I:function(e,t,a){const r=g_(e);return t==="Io"?a.ordinalNumber(r,{unit:"week"}):Ge(r,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getDate(),{unit:"date"}):di.d(e,t)},D:function(e,t,a){const r=h_(e);return t==="Do"?a.ordinalNumber(r,{unit:"dayOfYear"}):Ge(r,t.length)},E:function(e,t,a){const r=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(r,{width:"short",context:"formatting"});case"EEEE":default:return a.day(r,{width:"wide",context:"formatting"})}},e:function(e,t,a,r){const o=e.getDay(),c=(o-r.weekStartsOn+8)%7||7;switch(t){case"e":return String(c);case"ee":return Ge(c,2);case"eo":return a.ordinalNumber(c,{unit:"day"});case"eee":return a.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(o,{width:"short",context:"formatting"});case"eeee":default:return a.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,a,r){const o=e.getDay(),c=(o-r.weekStartsOn+8)%7||7;switch(t){case"c":return String(c);case"cc":return Ge(c,t.length);case"co":return a.ordinalNumber(c,{unit:"day"});case"ccc":return a.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(o,{width:"narrow",context:"standalone"});case"cccccc":return a.day(o,{width:"short",context:"standalone"});case"cccc":default:return a.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,a){const r=e.getDay(),o=r===0?7:r;switch(t){case"i":return String(o);case"ii":return Ge(o,t.length);case"io":return a.ordinalNumber(o,{unit:"day"});case"iii":return a.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(r,{width:"short",context:"formatting"});case"iiii":default:return a.day(r,{width:"wide",context:"formatting"})}},a:function(e,t,a){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,a){const r=e.getHours();let o;switch(r===12?o=Xr.noon:r===0?o=Xr.midnight:o=r/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,a){const r=e.getHours();let o;switch(r>=17?o=Xr.evening:r>=12?o=Xr.afternoon:r>=4?o=Xr.morning:o=Xr.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){let r=e.getHours()%12;return r===0&&(r=12),a.ordinalNumber(r,{unit:"hour"})}return di.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getHours(),{unit:"hour"}):di.H(e,t)},K:function(e,t,a){const r=e.getHours()%12;return t==="Ko"?a.ordinalNumber(r,{unit:"hour"}):Ge(r,t.length)},k:function(e,t,a){let r=e.getHours();return r===0&&(r=24),t==="ko"?a.ordinalNumber(r,{unit:"hour"}):Ge(r,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):di.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getSeconds(),{unit:"second"}):di.s(e,t)},S:function(e,t){return di.S(e,t)},X:function(e,t,a){const r=e.getTimezoneOffset();if(r===0)return"Z";switch(t){case"X":return lv(r);case"XXXX":case"XX":return Wi(r);case"XXXXX":case"XXX":default:return Wi(r,":")}},x:function(e,t,a){const r=e.getTimezoneOffset();switch(t){case"x":return lv(r);case"xxxx":case"xx":return Wi(r);case"xxxxx":case"xxx":default:return Wi(r,":")}},O:function(e,t,a){const r=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ov(r,":");case"OOOO":default:return"GMT"+Wi(r,":")}},z:function(e,t,a){const r=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ov(r,":");case"zzzz":default:return"GMT"+Wi(r,":")}},t:function(e,t,a){const r=Math.trunc(+e/1e3);return Ge(r,t.length)},T:function(e,t,a){return Ge(+e,t.length)}};function ov(e,t=""){const a=e>0?"-":"+",r=Math.abs(e),o=Math.trunc(r/60),c=r%60;return c===0?a+String(o):a+String(o)+t+Ge(c,2)}function lv(e,t){return e%60===0?(e>0?"-":"+")+Ge(Math.abs(e)/60,2):Wi(e,t)}function Wi(e,t=""){const a=e>0?"-":"+",r=Math.abs(e),o=Ge(Math.trunc(r/60),2),c=Ge(r%60,2);return a+o+t+c}const cv=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},V4=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},b_=(e,t)=>{const a=e.match(/(P+)(p+)?/)||[],r=a[1],o=a[2];if(!o)return cv(e,t);let c;switch(r){case"P":c=t.dateTime({width:"short"});break;case"PP":c=t.dateTime({width:"medium"});break;case"PPP":c=t.dateTime({width:"long"});break;case"PPPP":default:c=t.dateTime({width:"full"});break}return c.replace("{{date}}",cv(r,t)).replace("{{time}}",V4(o,t))},v_={p:V4,P:b_},w_=/^D+$/,k_=/^Y+$/,S_=["D","DD","YY","YYYY"];function C_(e){return w_.test(e)}function j_(e){return k_.test(e)}function E_(e,t,a){const r=T_(e,t,a);if(console.warn(r),S_.includes(e))throw new RangeError(r)}function T_(e,t,a){const r=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}const A_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,N_=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,M_=/^'([^]*?)'?$/,R_=/''/g,D_=/[a-zA-Z]/;function O_(e,t,a){var y,b,v,T,S,C,E,O;const r=qu(),o=(a==null?void 0:a.locale)??r.locale??p_,c=(a==null?void 0:a.firstWeekContainsDate)??((b=(y=a==null?void 0:a.locale)==null?void 0:y.options)==null?void 0:b.firstWeekContainsDate)??r.firstWeekContainsDate??((T=(v=r.locale)==null?void 0:v.options)==null?void 0:T.firstWeekContainsDate)??1,u=(a==null?void 0:a.weekStartsOn)??((C=(S=a==null?void 0:a.locale)==null?void 0:S.options)==null?void 0:C.weekStartsOn)??r.weekStartsOn??((O=(E=r.locale)==null?void 0:E.options)==null?void 0:O.weekStartsOn)??0,m=pn(e,a==null?void 0:a.in);if(!LO(m))throw new RangeError("Invalid time value");let p=t.match(N_).map(D=>{const M=D[0];if(M==="p"||M==="P"){const F=v_[M];return F(D,o.formatLong)}return D}).join("").match(A_).map(D=>{if(D==="''")return{isToken:!1,value:"'"};const M=D[0];if(M==="'")return{isToken:!1,value:__(D)};if(sv[M])return{isToken:!0,value:D};if(M.match(D_))throw new RangeError("Format string contains an unescaped latin alphabet character `"+M+"`");return{isToken:!1,value:D}});o.localize.preprocessor&&(p=o.localize.preprocessor(m,p));const g={firstWeekContainsDate:c,weekStartsOn:u,locale:o};return p.map(D=>{if(!D.isToken)return D.value;const M=D.value;(!(a!=null&&a.useAdditionalWeekYearTokens)&&j_(M)||!(a!=null&&a.useAdditionalDayOfYearTokens)&&C_(M))&&E_(M,t,String(e));const F=sv[M[0]];return F(m,M,o.localize,g)}).join("")}function __(e){const t=e.match(M_);return t?t[1].replace(R_,"'"):e}function L_(e,t){const a=()=>Ha(t==null?void 0:t.in,NaN),o=V_(e);let c;if(o.date){const g=U_(o.date,2);c=H_(g.restDateString,g.year)}if(!c||isNaN(+c))return a();const u=+c;let m=0,p;if(o.time&&(m=q_(o.time),isNaN(m)))return a();if(o.timezone){if(p=F_(o.timezone),isNaN(p))return a()}else{const g=new Date(u+m),y=pn(0,t==null?void 0:t.in);return y.setFullYear(g.getUTCFullYear(),g.getUTCMonth(),g.getUTCDate()),y.setHours(g.getUTCHours(),g.getUTCMinutes(),g.getUTCSeconds(),g.getUTCMilliseconds()),y}return pn(u+m+p,t==null?void 0:t.in)}const zc={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},B_=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,z_=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,P_=/^([+-])(\d{2})(?::?(\d{2}))?$/;function V_(e){const t={},a=e.split(zc.dateTimeDelimiter);let r;if(a.length>2)return t;if(/:/.test(a[0])?r=a[0]:(t.date=a[0],r=a[1],zc.timeZoneDelimiter.test(t.date)&&(t.date=e.split(zc.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const o=zc.timezone.exec(r);o?(t.time=r.replace(o[1],""),t.timezone=o[1]):t.time=r}return t}function U_(e,t){const a=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(a);if(!r)return{year:NaN,restDateString:""};const o=r[1]?parseInt(r[1]):null,c=r[2]?parseInt(r[2]):null;return{year:c===null?o:c*100,restDateString:e.slice((r[1]||r[2]).length)}}function H_(e,t){if(t===null)return new Date(NaN);const a=e.match(B_);if(!a)return new Date(NaN);const r=!!a[4],o=zo(a[1]),c=zo(a[2])-1,u=zo(a[3]),m=zo(a[4]),p=zo(a[5])-1;if(r)return Z_(t,m,p)?$_(t,m,p):new Date(NaN);{const g=new Date(0);return!G_(t,c,u)||!I_(t,o)?new Date(NaN):(g.setUTCFullYear(t,c,Math.max(o,u)),g)}}function zo(e){return e?parseInt(e):1}function q_(e){const t=e.match(z_);if(!t)return NaN;const a=_m(t[1]),r=_m(t[2]),o=_m(t[3]);return K_(a,r,o)?a*L4+r*_4+o*1e3:NaN}function _m(e){return e&&parseFloat(e.replace(",","."))||0}function F_(e){if(e==="Z")return 0;const t=e.match(P_);if(!t)return 0;const a=t[1]==="+"?-1:1,r=parseInt(t[2]),o=t[3]&&parseInt(t[3])||0;return X_(r,o)?a*(r*L4+o*_4):NaN}function $_(e,t,a){const r=new Date(0);r.setUTCFullYear(e,0,4);const o=r.getUTCDay()||7,c=(t-1)*7+a+1-o;return r.setUTCDate(r.getUTCDate()+c),r}const Y_=[31,null,31,30,31,30,31,31,30,31,30,31];function U4(e){return e%400===0||e%4===0&&e%100!==0}function G_(e,t,a){return t>=0&&t<=11&&a>=1&&a<=(Y_[t]||(U4(e)?29:28))}function I_(e,t){return t>=1&&t<=(U4(e)?366:365)}function Z_(e,t,a){return t>=1&&t<=53&&a>=0&&a<=6}function K_(e,t,a){return e===24?t===0&&a===0:a>=0&&a<60&&t>=0&&t<60&&e>=0&&e<25}function X_(e,t){return t>=0&&t<=59}const W_={lessThanXSeconds:{one:"kurang dari 1 detik",other:"kurang dari {{count}} detik"},xSeconds:{one:"1 detik",other:"{{count}} detik"},halfAMinute:"setengah menit",lessThanXMinutes:{one:"kurang dari 1 menit",other:"kurang dari {{count}} menit"},xMinutes:{one:"1 menit",other:"{{count}} menit"},aboutXHours:{one:"sekitar 1 jam",other:"sekitar {{count}} jam"},xHours:{one:"1 jam",other:"{{count}} jam"},xDays:{one:"1 hari",other:"{{count}} hari"},aboutXWeeks:{one:"sekitar 1 minggu",other:"sekitar {{count}} minggu"},xWeeks:{one:"1 minggu",other:"{{count}} minggu"},aboutXMonths:{one:"sekitar 1 bulan",other:"sekitar {{count}} bulan"},xMonths:{one:"1 bulan",other:"{{count}} bulan"},aboutXYears:{one:"sekitar 1 tahun",other:"sekitar {{count}} tahun"},xYears:{one:"1 tahun",other:"{{count}} tahun"},overXYears:{one:"lebih dari 1 tahun",other:"lebih dari {{count}} tahun"},almostXYears:{one:"hampir 1 tahun",other:"hampir {{count}} tahun"}},Q_=(e,t,a)=>{let r;const o=W_[e];return typeof o=="string"?r=o:t===1?r=o.one:r=o.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"dalam waktu "+r:r+" yang lalu":r},J_={full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"d/M/yyyy"},eL={full:"HH.mm.ss",long:"HH.mm.ss",medium:"HH.mm",short:"HH.mm"},tL={full:"{{date}} 'pukul' {{time}}",long:"{{date}} 'pukul' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},nL={date:cs({formats:J_,defaultWidth:"full"}),time:cs({formats:eL,defaultWidth:"full"}),dateTime:cs({formats:tL,defaultWidth:"full"})},aL={lastWeek:"eeee 'lalu pukul' p",yesterday:"'Kemarin pukul' p",today:"'Hari ini pukul' p",tomorrow:"'Besok pukul' p",nextWeek:"eeee 'pukul' p",other:"P"},iL=(e,t,a,r)=>aL[e],rL={narrow:["SM","M"],abbreviated:["SM","M"],wide:["Sebelum Masehi","Masehi"]},sL={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["Kuartal ke-1","Kuartal ke-2","Kuartal ke-3","Kuartal ke-4"]},oL={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","Mei","Jun","Jul","Agt","Sep","Okt","Nov","Des"],wide:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"]},lL={narrow:["M","S","S","R","K","J","S"],short:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],abbreviated:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],wide:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},cL={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},uL={narrow:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},abbreviated:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"},wide:{am:"AM",pm:"PM",midnight:"tengah malam",noon:"tengah hari",morning:"pagi",afternoon:"siang",evening:"sore",night:"malam"}},dL=(e,t)=>"ke-"+Number(e),fL={ordinalNumber:dL,era:sa({values:rL,defaultWidth:"wide"}),quarter:sa({values:sL,defaultWidth:"wide",argumentCallback:e=>e-1}),month:sa({values:oL,defaultWidth:"wide"}),day:sa({values:lL,defaultWidth:"wide"}),dayPeriod:sa({values:cL,defaultWidth:"wide",formattingValues:uL,defaultFormattingWidth:"wide"})},mL=/^ke-(\d+)?/i,pL=/\d+/i,hL={narrow:/^(sm|m)/i,abbreviated:/^(s\.?\s?m\.?|s\.?\s?e\.?\s?u\.?|m\.?|e\.?\s?u\.?)/i,wide:/^(sebelum masehi|sebelum era umum|masehi|era umum)/i},gL={any:[/^s/i,/^(m|e)/i]},yL={narrow:/^[1234]/i,abbreviated:/^K-?\s[1234]/i,wide:/^Kuartal ke-?\s?[1234]/i},xL={any:[/1/i,/2/i,/3/i,/4/i]},bL={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|mei|jun|jul|agt|sep|okt|nov|des)/i,wide:/^(januari|februari|maret|april|mei|juni|juli|agustus|september|oktober|november|desember)/i},vL={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^ma/i,/^ap/i,/^me/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},wL={narrow:/^[srkjm]/i,short:/^(min|sen|sel|rab|kam|jum|sab)/i,abbreviated:/^(min|sen|sel|rab|kam|jum|sab)/i,wide:/^(minggu|senin|selasa|rabu|kamis|jumat|sabtu)/i},kL={narrow:[/^m/i,/^s/i,/^s/i,/^r/i,/^k/i,/^j/i,/^s/i],any:[/^m/i,/^sen/i,/^sel/i,/^r/i,/^k/i,/^j/i,/^sa/i]},SL={narrow:/^(a|p|tengah m|tengah h|(di(\swaktu)?) (pagi|siang|sore|malam))/i,any:/^([ap]\.?\s?m\.?|tengah malam|tengah hari|(di(\swaktu)?) (pagi|siang|sore|malam))/i},CL={any:{am:/^a/i,pm:/^pm/i,midnight:/^tengah m/i,noon:/^tengah h/i,morning:/pagi/i,afternoon:/siang/i,evening:/sore/i,night:/malam/i}},jL={ordinalNumber:z4({matchPattern:mL,parsePattern:pL,valueCallback:e=>parseInt(e,10)}),era:oa({matchPatterns:hL,defaultMatchWidth:"wide",parsePatterns:gL,defaultParseWidth:"any"}),quarter:oa({matchPatterns:yL,defaultMatchWidth:"wide",parsePatterns:xL,defaultParseWidth:"any",valueCallback:e=>e+1}),month:oa({matchPatterns:bL,defaultMatchWidth:"wide",parsePatterns:vL,defaultParseWidth:"any"}),day:oa({matchPatterns:wL,defaultMatchWidth:"wide",parsePatterns:kL,defaultParseWidth:"any"}),dayPeriod:oa({matchPatterns:SL,defaultMatchWidth:"any",parsePatterns:CL,defaultParseWidth:"any"})},EL={code:"id",formatDistance:Q_,formatLong:nL,formatRelative:iL,localize:fL,match:jL,options:{weekStartsOn:1,firstWeekContainsDate:1}},TL=(e,t="dd MMM yyyy, HH:mm")=>{if(!e)return"-";try{let a=e;a&&!a.includes("Z")&&!a.includes("+")&&(a=`${a}Z`);const r=L_(a);return O_(r,t,{locale:EL})}catch{return console.error("Invalid date format:",e),e}},AL=e=>TL(e);function NL({user:e,loading:t,onUpdated:a}){const{isOpen:r,openModal:o,closeModal:c}=AO(),[u,m]=w.useState({username:"",full_name:"",email:"",phone:""}),[p,g]=w.useState({current:"",new:"",confirm:""}),[y,b]=w.useState(!1);w.useEffect(()=>{e&&m({username:e.username,full_name:e.full_name,email:e.email||"",phone:e.phone||""})},[e]);const v=async S=>{var C,E;S.preventDefault(),b(!0);try{await Le.put("/api/auth/profile",u),be.fire({icon:"success",title:"Berhasil",text:"Profil diperbarui",timer:1500,showConfirmButton:!1}),a(),c()}catch(O){be.fire({icon:"error",title:"Gagal",text:((E=(C=O.response)==null?void 0:C.data)==null?void 0:E.message)||"Terjadi kesalahan"})}finally{b(!1)}},T=async S=>{var C,E;if(S.preventDefault(),p.new!==p.confirm)return be.fire({icon:"error",text:"Konfirmasi password tidak cocok"});b(!0);try{await Le.post("/api/auth/profile",{current_password:p.current,new_password:p.new}),be.fire({icon:"success",title:"Berhasil",text:"Password diperbarui"}),g({current:"",new:"",confirm:""})}catch(O){be.fire({icon:"error",title:"Gagal",text:((E=(C=O.response)==null?void 0:C.data)==null?void 0:E.message)||"Password saat ini salah"})}finally{b(!1)}};return t||!e?f.jsx("div",{className:"p-10 text-center animate-pulse",children:"Memuat..."}):f.jsxs("div",{className:"space-y-8",children:[f.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-8",children:[{label:"Username",value:`@${e.username}`},{label:"Nama Lengkap",value:e.full_name},{label:"Email",value:e.email||"-"},{label:"No. HP",value:e.phone||"-"},{label:"Peran",value:e.role,uppercase:!0},{label:"Login Terakhir",value:AL(e.last_login)}].map((S,C)=>f.jsxs("div",{className:"space-y-1",children:[f.jsx("p",{className:"text-[10px] uppercase font-bold text-gray-400 tracking-wider font-mono",children:S.label}),f.jsx("p",{className:`text-base font-semibold text-gray-800 dark:text-white ${S.uppercase?"uppercase":""}`,children:S.value})]},C))}),f.jsx("div",{className:"flex justify-end pt-4 border-t border-gray-100 dark:border-gray-800",children:f.jsx(qt,{onClick:o,children:"Edit Profil"})}),f.jsx(D4,{isOpen:r,onClose:c,className:"max-w-2xl",children:f.jsx("div",{className:"p-8 space-y-8 max-h-[90vh] overflow-y-auto custom-scrollbar",children:f.jsxs("div",{className:"flex flex-col gap-6 lg:flex-row",children:[f.jsxs("form",{onSubmit:v,className:"flex-1 space-y-4",children:[f.jsx("h4",{className:"text-lg font-bold",children:"Data Pribadi"}),f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{children:[f.jsx(Ba,{children:"Username"}),f.jsx(ra,{value:u.username,onChange:S=>m({...u,username:S.target.value}),required:!0})]}),f.jsxs("div",{children:[f.jsx(Ba,{children:"Nama Lengkap"}),f.jsx(ra,{value:u.full_name,onChange:S=>m({...u,full_name:S.target.value}),required:!0})]}),f.jsxs("div",{children:[f.jsx(Ba,{children:"Email"}),f.jsx(ra,{type:"email",value:u.email,onChange:S=>m({...u,email:S.target.value})})]}),f.jsxs("div",{children:[f.jsx(Ba,{children:"No. HP"}),f.jsx(ra,{value:u.phone,onChange:S=>m({...u,phone:S.target.value})})]})]}),f.jsx(qt,{type:"submit",disabled:y,className:"w-full",children:"Simpan Perubahan"})]}),f.jsx("div",{className:"hidden lg:block w-px bg-gray-100 dark:bg-gray-800"}),f.jsxs("form",{onSubmit:T,className:"flex-1 space-y-4",children:[f.jsx("h4",{className:"text-lg font-bold",children:"Ganti Password"}),f.jsxs("div",{className:"space-y-3",children:[f.jsxs("div",{children:[f.jsx(Ba,{children:"Password Saat Ini"}),f.jsx(ra,{type:"password",value:p.current,onChange:S=>g({...p,current:S.target.value}),required:!0})]}),f.jsxs("div",{className:"pt-2 border-t border-gray-100 dark:border-gray-800",children:[f.jsx(Ba,{children:"Password Baru"}),f.jsx(ra,{type:"password",value:p.new,onChange:S=>g({...p,new:S.target.value}),required:!0})]}),f.jsxs("div",{children:[f.jsx(Ba,{children:"Konfirmasi Password"}),f.jsx(ra,{type:"password",value:p.confirm,onChange:S=>g({...p,confirm:S.target.value}),required:!0})]})]}),f.jsx(qt,{type:"submit",variant:"outline",disabled:y,className:"w-full border-red-500 text-red-500 hover:bg-red-50",children:"Update Password"})]})]})})})]})}function ML(){const[e,t]=w.useState(null),[a,r]=w.useState(!0),[o,c]=w.useState(""),u=w.useCallback(async()=>{var m,p;r(!0),c("");try{const g=await Le.get("/api/auth/me");if(g.data.success){const y=g.data.data;t(y),localStorage.setItem(qe.user,JSON.stringify(y))}}catch(g){c(((p=(m=g.response)==null?void 0:m.data)==null?void 0:p.message)||"Gagal mengambil data profil.")}finally{r(!1)}},[]);return w.useEffect(()=>{u()},[u]),f.jsxs(f.Fragment,{children:[f.jsx(fa,{title:"Profil Saya",description:"Pengaturan profil akun admin."}),f.jsx(dr,{pageTitle:"Profil Saya"}),f.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 dark:border-gray-800 dark:bg-white/[0.03] lg:p-6 shadow-sm",children:[f.jsx("h3",{className:"mb-5 text-lg font-semibold text-gray-800 dark:text-white/90 lg:mb-7",children:"Informasi Akun"}),o&&f.jsx("div",{className:"mb-6 rounded-lg border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700 dark:border-red-500/30 dark:bg-red-500/10 dark:text-red-200",children:o}),f.jsx("div",{className:"space-y-6",children:f.jsx(NL,{user:e,loading:a,onUpdated:u})})]})]})}function RL(e){const t=(e||"").toUpperCase();return t.includes("FAILED")||t.includes("DELETE")?"error":t.includes("IMPORT")||t.includes("UPLOAD")||t.includes("REVIEW")?"warning":t.includes("LOGIN")||t.includes("RENAME")||t.includes("CREATE")||t.includes("UPDATE")?"success":"info"}function DL(){const[e,t]=w.useState([]),[a,r]=w.useState(!0),o=async()=>{var c;r(!0);try{const u=await Le.get("/api/activity-logs");t(((c=u.data)==null?void 0:c.data)||[])}finally{r(!1)}};return w.useEffect(()=>{o()},[]),f.jsxs(f.Fragment,{children:[f.jsx(fa,{title:"Activity Logs | File Renamer",description:"Riwayat aktivitas admin File Renamer."}),f.jsx(dr,{pageTitle:"Activity Logs"}),f.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-6 shadow-sm dark:border-gray-800 dark:bg-white/[0.03]",children:[f.jsxs("div",{className:"mb-5 flex items-center gap-2",children:[f.jsx(S6,{className:"h-5 w-5 text-brand-500"}),f.jsx("h1",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"Log Aktivitas"})]}),f.jsx("div",{className:"overflow-x-auto",children:f.jsxs("table",{className:"w-full text-left text-sm",children:[f.jsx("thead",{className:"bg-gray-50 text-xs uppercase text-gray-500 dark:bg-white/5",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3",children:"Waktu"}),f.jsx("th",{className:"px-4 py-3",children:"User"}),f.jsx("th",{className:"px-4 py-3",children:"Aktivitas"}),f.jsx("th",{className:"px-4 py-3",children:"Modul"}),f.jsx("th",{className:"px-4 py-3",children:"Deskripsi"}),f.jsx("th",{className:"px-4 py-3",children:"Endpoint"})]})}),f.jsx("tbody",{className:"divide-y divide-gray-100 dark:divide-white/5",children:a?f.jsx("tr",{children:f.jsx("td",{colSpan:6,className:"px-4 py-12 text-center text-gray-400",children:"Memuat log..."})}):e.length===0?f.jsx("tr",{children:f.jsx("td",{colSpan:6,className:"px-4 py-12 text-center text-gray-400",children:"Belum ada log."})}):e.map(c=>f.jsxs("tr",{children:[f.jsx("td",{className:"whitespace-nowrap px-4 py-3 text-xs text-gray-500",children:c.created_at?new Date(c.created_at).toLocaleString("id-ID"):"-"}),f.jsxs("td",{className:"px-4 py-3 font-semibold",children:["@",c.username||c.user_id||"system"]}),f.jsx("td",{className:"px-4 py-3",children:f.jsx(ls,{color:RL(c.activity_type),children:c.activity_type})}),f.jsx("td",{className:"px-4 py-3",children:c.module_name}),f.jsx("td",{className:"px-4 py-3 text-gray-600 dark:text-gray-300",children:c.description}),f.jsxs("td",{className:"px-4 py-3 text-xs text-gray-500",children:[c.request_method," ",c.request_url]})]},c.id))})]})})]})]})}const OL=({children:e,className:t})=>f.jsx("table",{className:`min-w-full  ${t}`,children:e}),_L=({children:e,className:t})=>f.jsx("thead",{className:t,children:e}),LL=({children:e,className:t})=>f.jsx("tbody",{className:t,children:e}),Pc=({children:e,className:t})=>f.jsx("tr",{className:t,children:e}),tn=({children:e,isHeader:t=!1,className:a,colSpan:r})=>{const o=t?"th":"td";return f.jsx(o,{className:` ${a}`,colSpan:r,children:e})};function BL({user:e,onClose:t,onSuccess:a}){const[r,o]=w.useState(""),[c,u]=w.useState(!1),m=async()=>{var p,g;if(!r||r.length<6){be.fire({icon:"warning",title:"Password Lemah",text:"Minimal 6 karakter."});return}u(!0);try{await Le.post(`/api/admins/${e.id}/reset-password`,{password:r}),await be.fire({icon:"success",title:"Password Direset",text:`Password baru untuk @${e.username} adalah: ${r}`}),a(),t()}catch(y){be.fire({icon:"error",title:"Gagal",text:((g=(p=y.response)==null?void 0:p.data)==null?void 0:g.message)||"Terjadi kesalahan"})}finally{u(!1)}};return f.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",children:f.jsxs("div",{className:"w-full max-w-sm rounded-2xl bg-white p-6 dark:bg-gray-900 border border-gray-200 dark:border-gray-800",children:[f.jsxs("h3",{className:"text-lg font-bold mb-4",children:["Reset Password @",e.username]}),f.jsx("label",{className:"block text-sm mb-2",children:"Password Baru"}),f.jsx("input",{type:"text",className:"w-full rounded-lg border p-2 mb-4 dark:bg-gray-800",value:r,onChange:p=>o(p.target.value),placeholder:"Min 6 karakter"}),f.jsxs("div",{className:"flex justify-end gap-2",children:[f.jsx(qt,{onClick:t,variant:"outline",size:"sm",children:"Batal"}),f.jsx(qt,{onClick:m,disabled:c,size:"sm",children:"Reset Sekarang"})]})]})})}function zL({user:e,onClose:t,onSuccess:a}){const[r,o]=w.useState({username:(e==null?void 0:e.username)||"",email:(e==null?void 0:e.email)||"",full_name:(e==null?void 0:e.full_name)||"",phone:(e==null?void 0:e.phone)||"",role:(e==null?void 0:e.role)||"admin",password:""}),[c,u]=w.useState(!1),m=!!e,p=async g=>{var y,b;g.preventDefault(),u(!0);try{m?(await Le.put(`/api/admins/${e.id}`,r),be.fire({icon:"success",title:"Berhasil",text:"Admin diperbarui",timer:1500,showConfirmButton:!1})):(await Le.post("/api/admins",r),be.fire({icon:"success",title:"Berhasil",text:"Admin ditambahkan",timer:1500,showConfirmButton:!1})),a(),t()}catch(v){be.fire({icon:"error",title:"Gagal",text:((b=(y=v.response)==null?void 0:y.data)==null?void 0:b.message)||"Terjadi kesalahan"})}finally{u(!1)}};return f.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",children:f.jsxs("form",{onSubmit:p,className:"w-full max-w-md rounded-2xl bg-white p-6 dark:bg-gray-900 border border-gray-200 dark:border-gray-800 space-y-4",children:[f.jsx("h3",{className:"text-lg font-bold",children:m?"Edit Admin":"Tambah Admin Baru"}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs font-medium mb-1 uppercase text-gray-400",children:"Username"}),f.jsx("input",{className:"w-full rounded-lg border p-2 dark:bg-gray-800",value:r.username,onChange:g=>o({...r,username:g.target.value}),required:!0})]}),!m&&f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs font-medium mb-1 uppercase text-gray-400",children:"Password"}),f.jsx("input",{type:"password",className:"w-full rounded-lg border p-2 dark:bg-gray-800",value:r.password,onChange:g=>o({...r,password:g.target.value}),required:!0})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs font-medium mb-1 uppercase text-gray-400",children:"Nama Lengkap"}),f.jsx("input",{className:"w-full rounded-lg border p-2 dark:bg-gray-800",value:r.full_name,onChange:g=>o({...r,full_name:g.target.value}),required:!0})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs font-medium mb-1 uppercase text-gray-400",children:"Email"}),f.jsx("input",{type:"email",className:"w-full rounded-lg border p-2 dark:bg-gray-800",value:r.email,onChange:g=>o({...r,email:g.target.value})})]}),f.jsxs("div",{children:[f.jsx("label",{className:"block text-xs font-medium mb-1 uppercase text-gray-400",children:"Role"}),f.jsxs("select",{className:"w-full rounded-lg border p-2 dark:bg-gray-800",value:r.role,onChange:g=>o({...r,role:g.target.value}),children:[f.jsx("option",{value:"admin",children:"Admin"}),f.jsx("option",{value:"superadmin",children:"Superadmin"})]})]}),f.jsxs("div",{className:"flex justify-end gap-2 pt-2",children:[f.jsx(qt,{onClick:t,variant:"outline",size:"sm",type:"button",children:"Batal"}),f.jsx(qt,{disabled:c,size:"sm",type:"submit",children:m?"Simpan Perubahan":"Buat Admin"})]})]})})}function PL(){const[e,t]=w.useState([]),[a,r]=w.useState(!0),[o,c]=w.useState(""),[u,m]=w.useState(null),[p,g]=w.useState(!1),[y,b]=w.useState(!1),v=w.useCallback(async()=>{var C,E;r(!0);try{const O=await Le.get("/api/admins",{params:{search:o}});t(((E=(C=O.data)==null?void 0:C.data)==null?void 0:E.items)||[])}catch(O){console.error("Gagal ambil data admin",O)}finally{r(!1)}},[o]);w.useEffect(()=>{v()},[v]);const T=async C=>{var O,D;if((await be.fire({title:`${C.is_active?"Nonaktifkan":"Aktifkan"} Akun?`,text:`Akun @${C.username} akan ${C.is_active?"dinonaktifkan":"diaktifkan"}.`,icon:"warning",showCancelButton:!0,confirmButtonText:"Ya, Lanjutkan",cancelButtonText:"Batal"})).isConfirmed)try{await Le.patch(`/api/admins/${C.id}/toggle-active`),v()}catch(M){be.fire({icon:"error",title:"Gagal",text:((D=(O=M.response)==null?void 0:O.data)==null?void 0:D.message)||"Terjadi kesalahan"})}},S=async C=>{var O,D;if((await be.fire({title:"Hapus Admin?",text:"Data admin ini akan dihapus permanen.",icon:"error",showCancelButton:!0,confirmButtonText:"Hapus!",confirmButtonColor:"#ef4444"})).isConfirmed)try{await Le.delete(`/api/admins/${C.id}`),v()}catch(M){be.fire({icon:"error",title:"Gagal",text:((D=(O=M.response)==null?void 0:O.data)==null?void 0:D.message)||"Terjadi kesalahan"})}};return f.jsxs("div",{className:"space-y-4",children:[f.jsxs("div",{className:"flex flex-col sm:flex-row items-center justify-between gap-4",children:[f.jsx("input",{placeholder:"Cari admin...",className:"w-full sm:w-64 rounded-xl border p-2.5 dark:bg-gray-900",value:o,onChange:C=>c(C.target.value)}),f.jsx(qt,{onClick:()=>{m(void 0),g(!0)},children:"+ Tambah Admin"})]}),f.jsx("div",{className:"overflow-hidden rounded-xl border border-gray-200 bg-white dark:border-gray-800 dark:bg-gray-900",children:f.jsx("div",{className:"overflow-x-auto",children:f.jsxs(OL,{children:[f.jsx(_L,{children:f.jsxs(Pc,{children:[f.jsx(tn,{isHeader:!0,className:"px-5 py-3",children:"Nama Lengkap"}),f.jsx(tn,{isHeader:!0,className:"px-5 py-3",children:"Username"}),f.jsx(tn,{isHeader:!0,className:"px-5 py-3",children:"Email"}),f.jsx(tn,{isHeader:!0,className:"px-5 py-3",children:"Role"}),f.jsx(tn,{isHeader:!0,className:"px-5 py-3 text-center",children:"Status"}),f.jsx(tn,{isHeader:!0,className:"px-5 py-3 text-end",children:"Aksi"})]})}),f.jsx(LL,{children:a?f.jsx(Pc,{children:f.jsx(tn,{colSpan:6,className:"text-center py-10",children:"Memuat data..."})}):e.length===0?f.jsx(Pc,{children:f.jsx(tn,{colSpan:6,className:"text-center py-10",children:"Tidak ada admin."})}):e.map(C=>f.jsxs(Pc,{children:[f.jsx(tn,{className:"px-5 py-4 font-medium",children:C.full_name}),f.jsxs(tn,{className:"px-5 py-4 text-brand-500 font-mono",children:["@",C.username]}),f.jsx(tn,{className:"px-5 py-4 text-gray-500",children:C.email||"-"}),f.jsx(tn,{className:"px-5 py-4 uppercase text-[10px] font-bold",children:f.jsxs("div",{className:"flex items-center gap-1",children:[C.role==="superadmin"?f.jsx(l2,{className:"w-4 h-4 text-amber-500"}):f.jsx(Qw,{className:"w-4 h-4 text-blue-500"}),C.role]})}),f.jsx(tn,{className:"px-5 py-4 text-center",children:f.jsx(ls,{color:C.is_active?"success":"warning",children:C.is_active?"Aktif":"Nonaktif"})}),f.jsxs(tn,{className:"px-5 py-4 text-end space-x-2",children:[f.jsx("button",{onClick:()=>{m(C),g(!0)},className:"text-blue-500",title:"Edit",children:f.jsx(u6,{className:"w-4 h-4"})}),f.jsx("button",{onClick:()=>{m(C),b(!0)},className:"text-amber-500",title:"Reset PW",children:"🔑"}),f.jsx("button",{onClick:()=>T(C),className:C.is_active?"text-orange-500":"text-green-500",title:C.is_active?"Matikan":"Aktifkan",children:C.is_active?"🚫":"✅"}),f.jsx("button",{onClick:()=>S(C),className:"text-red-500",title:"Hapus",children:f.jsx(c6,{className:"w-4 h-4"})})]})]},C.id))})]})})}),p&&f.jsx(zL,{user:u,onClose:()=>g(!1),onSuccess:v}),y&&u&&f.jsx(BL,{user:u,onClose:()=>b(!1),onSuccess:v})]})}function VL(e){const t=(e||"").toUpperCase();return t.includes("FAILED")||t.includes("REJECTED")?"error":t.includes("INACTIVE")||t.includes("REVIEW")||t.includes("DUPLICATE")||t.includes("UNKNOWN")||t.includes("PENDING")?"warning":t.includes("SUCCESS")||t.includes("RENAMED")||t.includes("APPROVED")||t.includes("ACTIVE")||t.includes("VALID")?"success":"info"}function sr({value:e}){return f.jsx(ls,{color:VL(e),children:e||"-"})}const Lm={nip:"",full_name:"",division_name:"",format_timesheet:"",format_approval:"",format_email:"",status:"ACTIVE"},UL=[{key:"nip",label:"NIP",placeholder:"Contoh: 240001",required:!0},{key:"full_name",label:"Nama",placeholder:"Nama karyawan",required:!0},{key:"division_name",label:"Divisi",placeholder:"Nama divisi",required:!0},{key:"format_timesheet",label:"Format Timesheet",placeholder:"DIVISI - NAMA"},{key:"format_approval",label:"Format Approval",placeholder:"DIVISI - NAMA_APPROVAL"},{key:"format_email",label:"Format Email",placeholder:"DIVISI - NAMA_EMAIL"}],HL=[{key:"nip",label:"NIP"},{key:"full_name",label:"Nama"},{key:"division_name",label:"Divisi"},{key:"format_timesheet",label:"Format",className:"min-w-[320px]"},{key:"status",label:"Status"}];function hi(e){return(e==null?void 0:e.trim())||"-"}function pi(e){return hi(e.division_name_snapshot||e.division_name)}function uv(e,t){return t==="division_name"?pi(e):hi(e[t])}function dv(e){return e.trim().toUpperCase()}function Bm(e,t){var a,r;return((r=(a=e.response)==null?void 0:a.data)==null?void 0:r.message)||t}function qL(){const[e,t]=w.useState([]),[a,r]=w.useState(""),[o,c]=w.useState("ALL"),[u,m]=w.useState([]),[p,g]=w.useState(""),[y,b]=w.useState(!1),[v,T]=w.useState(10),[S,C]=w.useState(1),[E,O]=w.useState("full_name"),[D,M]=w.useState("asc"),[F,V]=w.useState(Lm),[te,ie]=w.useState(null),[ae,W]=w.useState(!1),[se,Ae]=w.useState(!1),[je,Ee]=w.useState(!1),re=w.useRef(null),pe=w.useCallback(async()=>{var q;Ae(!0);try{const he=await Le.get("/api/master/employees",{params:{limit:5e3}});t(((q=he.data)==null?void 0:q.data)||[])}catch{be.fire("Gagal","Tidak dapat mengambil master data","error")}finally{Ae(!1)}},[]);w.useEffect(()=>{pe()},[pe]),w.useEffect(()=>{const q=he=>{re.current&&!re.current.contains(he.target)&&b(!1)};return document.addEventListener("mousedown",q),()=>document.removeEventListener("mousedown",q)},[]);const K=w.useMemo(()=>{const q=e.filter(Rt=>Rt.status==="ACTIVE").length,he=e.filter(Rt=>Rt.status==="INACTIVE").length,Me=new Set(e.map(pi).filter(Rt=>Rt!=="-")).size;return{total:e.length,active:q,inactive:he,divisions:Me}},[e]),_=w.useMemo(()=>Array.from(new Set(e.map(pi).filter(q=>q!=="-"))).sort((q,he)=>q.localeCompare(he,"id",{sensitivity:"base"})),[e]);w.useEffect(()=>{m(q=>{const he=new Set(_),Me=q.filter(Rt=>he.has(Rt));return Me.length===q.length?q:Me})},[_]);const R=w.useMemo(()=>{const q=p.trim().toLowerCase();return q?_.filter(he=>he.toLowerCase().includes(q)):_},[_,p]),Z=w.useMemo(()=>{const q=a.trim().toLowerCase(),he=new Set(u);return e.filter(Me=>o!=="ALL"&&Me.status!==o||he.size>0&&!he.has(pi(Me))?!1:q?[Me.nip,Me.full_name,pi(Me),Me.format_timesheet,Me.format_approval,Me.format_email,Me.status].join(" ").toLowerCase().includes(q):!0)},[e,a,u,o]),j=w.useMemo(()=>[...Z].sort((q,he)=>{const Me=uv(q,E),Rt=uv(he,E),ha=Me.localeCompare(Rt,"id",{numeric:!0,sensitivity:"base"});return D==="asc"?ha:-ha}),[Z,D,E]),N=Math.max(1,Math.ceil(j.length/v));w.useEffect(()=>{C(q=>Math.max(1,Math.min(q,N)))},[N]);const I=w.useMemo(()=>{const q=(S-1)*v;return j.slice(q,q+v)},[S,v,j]),ee=w.useMemo(()=>{const he=Math.floor(2.5);let Me=Math.max(1,S-he);const Rt=Math.min(N,Me+5-1);return Me=Math.max(1,Rt-5+1),Array.from({length:Rt-Me+1},(ha,ne)=>Me+ne)},[S,N]),Q=j.length===0?0:(S-1)*v+1,fe=Math.min(S*v,j.length),de=()=>{const q=dv(F.division_name),he=dv(F.full_name);return{...F,nip:F.nip.trim(),full_name:he,division_name:q,format_timesheet:F.format_timesheet.trim()||`${q} - ${he}`,format_approval:F.format_approval.trim()||`${q} - ${he}_APPROVAL`,format_email:F.format_email.trim()||`${q} - ${he}_EMAIL`}},ke=()=>{V(Lm),ie(null),W(!1)},xe=()=>{je||ke()},Pe=()=>{ie(null),V(Lm),W(!0)},He=q=>{ie(q.id),V({nip:q.nip||"",full_name:q.full_name||"",division_name:pi(q)==="-"?"":pi(q),format_timesheet:q.format_timesheet||"",format_approval:q.format_approval||"",format_email:q.format_email||"",status:q.status==="INACTIVE"?"INACTIVE":"ACTIVE"}),W(!0)},kt=(q,he)=>{V(Me=>({...Me,[q]:he}))},Wt=async q=>{q.preventDefault();const he=de();if(!he.nip||!he.full_name||!he.division_name){be.fire("Lengkapi data","NIP, nama, dan divisi wajib diisi","warning");return}Ee(!0);try{te?await Le.put(`/api/master/employees/${te}`,he):await Le.post("/api/master/employees",he),await pe(),ke(),be.fire("Berhasil","Master data tersimpan","success")}catch(Me){be.fire("Gagal",Bm(Me,"Master data gagal disimpan"),"error")}finally{Ee(!1)}},sn=async q=>{const he=q.status==="ACTIVE",Me=he?"Nonaktifkan":"Aktifkan";if((await be.fire({title:`${Me} master?`,text:`${q.full_name} akan ${he?"dinonaktifkan":"diaktifkan"}.`,icon:"warning",showCancelButton:!0,confirmButtonText:Me})).isConfirmed)try{await Le.patch(`/api/master/employees/${q.id}/${he?"deactivate":"activate"}`),await pe(),be.fire("Berhasil",`Master berhasil ${he?"dinonaktifkan":"diaktifkan"}`,"success")}catch(ha){be.fire("Gagal",Bm(ha,"Status master gagal diubah"),"error")}},ma=async q=>{if((await be.fire({title:"Hapus master permanen?",text:`${q.full_name} akan dihapus permanen dari database.`,icon:"error",showCancelButton:!0,confirmButtonText:"Hapus permanen",confirmButtonColor:"#ef4444"})).isConfirmed)try{await Le.delete(`/api/master/employees/${q.id}`),await pe(),be.fire("Berhasil","Master berhasil dihapus permanen","success")}catch(Me){be.fire("Gagal",Bm(Me,"Master gagal dihapus"),"error")}},pa=q=>{if(C(1),E===q){M(he=>he==="asc"?"desc":"asc");return}O(q),M("asc")},zn=q=>E!==q?f.jsx(t2,{className:"h-3.5 w-3.5 text-gray-400"}):D==="asc"?f.jsx(n2,{className:"h-3.5 w-3.5 text-brand-500"}):f.jsx(e2,{className:"h-3.5 w-3.5 text-brand-500"}),on=q=>{m(he=>he.includes(q)?he.filter(Me=>Me!==q):[...he,q]),C(1)},Xn=()=>{m([]),g(""),C(1)};return f.jsxs(f.Fragment,{children:[f.jsx(fa,{title:"Master Data | File Renamer",description:"Kelola master karyawan dan format nama file."}),f.jsx(dr,{pageTitle:"Master Data"}),f.jsxs("div",{className:"space-y-6",children:[f.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 shadow-sm dark:border-gray-800 dark:bg-white/[0.03] sm:p-6",children:f.jsxs("div",{className:"grid grid-cols-1 gap-3 sm:grid-cols-2 xl:grid-cols-4",children:[f.jsxs("div",{className:"rounded-xl border border-gray-100 bg-gray-50 p-4 dark:border-gray-800 dark:bg-white/[0.03]",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("p",{className:"text-xs font-semibold uppercase text-gray-500 dark:text-gray-400",children:"Total Master"}),f.jsx(r2,{className:"h-4 w-4 text-brand-500"})]}),f.jsx("p",{className:"mt-3 text-2xl font-bold text-gray-900 dark:text-white",children:K.total})]}),f.jsxs("div",{className:"rounded-xl border border-gray-100 bg-emerald-50 p-4 dark:border-emerald-500/20 dark:bg-emerald-500/10",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("p",{className:"text-xs font-semibold uppercase text-gray-500 dark:text-gray-400",children:"Aktif"}),f.jsx(xj,{className:"h-4 w-4 text-emerald-600"})]}),f.jsx("p",{className:"mt-3 text-2xl font-bold text-gray-900 dark:text-white",children:K.active})]}),f.jsxs("div",{className:"rounded-xl border border-gray-100 bg-orange-50 p-4 dark:border-orange-500/20 dark:bg-orange-500/10",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("p",{className:"text-xs font-semibold uppercase text-gray-500 dark:text-gray-400",children:"Nonaktif"}),f.jsx(dx,{className:"h-4 w-4 text-orange-600"})]}),f.jsx("p",{className:"mt-3 text-2xl font-bold text-gray-900 dark:text-white",children:K.inactive})]}),f.jsxs("div",{className:"rounded-xl border border-gray-100 bg-sky-50 p-4 dark:border-sky-500/20 dark:bg-sky-500/10",children:[f.jsxs("div",{className:"flex items-center justify-between",children:[f.jsx("p",{className:"text-xs font-semibold uppercase text-gray-500 dark:text-gray-400",children:"Divisi"}),f.jsx(sx,{className:"h-4 w-4 text-sky-600"})]}),f.jsx("p",{className:"mt-3 text-2xl font-bold text-gray-900 dark:text-white",children:K.divisions})]})]})}),f.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-white/[0.03]",children:[f.jsxs("div",{className:"border-b border-gray-100 p-5 dark:border-gray-800 sm:p-6",children:[f.jsxs("div",{className:"flex flex-col gap-4 xl:flex-row xl:items-center xl:justify-between",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"Daftar Master"}),f.jsxs("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:[Q,"-",fe," dari ",j.length," data"]})]}),f.jsxs("div",{className:"flex flex-col gap-3 sm:flex-row sm:items-center",children:[f.jsx(qt,{type:"button",size:"sm",variant:"outline",onClick:()=>void pe(),disabled:se,startIcon:f.jsx(Go,{className:`h-4 w-4 ${se?"animate-spin":""}`}),children:"Refresh"}),f.jsx(qt,{type:"button",size:"sm",onClick:Pe,startIcon:f.jsx(Xm,{className:"h-4 w-4"}),children:"Tambah Master"})]})]}),f.jsxs("div",{className:"mt-5 grid grid-cols-1 gap-3 lg:grid-cols-[minmax(240px,1fr)_minmax(230px,300px)_auto_auto] lg:items-center",children:[f.jsxs("div",{className:"relative",children:[f.jsx(Io,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400"}),f.jsx("input",{value:a,onChange:q=>{r(q.target.value),C(1)},placeholder:"Cari NIP, nama, divisi, format",className:"h-11 w-full rounded-lg border border-gray-300 bg-white pl-10 pr-4 text-sm text-gray-800 outline-none transition focus:border-brand-300 focus:ring-3 focus:ring-brand-500/20 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90"})]}),f.jsxs("div",{ref:re,className:"relative",children:[f.jsxs("button",{type:"button",onClick:()=>b(q=>!q),className:"flex h-11 w-full items-center justify-between gap-3 rounded-lg border border-gray-300 bg-white px-3 text-left text-sm text-gray-800 outline-none transition hover:bg-gray-50 focus:border-brand-300 focus:ring-3 focus:ring-brand-500/20 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90 dark:hover:bg-white/[0.04]",children:[f.jsxs("span",{className:"flex min-w-0 items-center gap-2",children:[f.jsx(sx,{className:"h-4 w-4 shrink-0 text-gray-400"}),f.jsx("span",{className:"truncate",children:u.length>0?`${u.length} divisi dipilih`:"Filter divisi"})]}),f.jsx(L6,{className:`h-4 w-4 shrink-0 text-gray-400 transition ${y?"rotate-180":""}`})]}),y&&f.jsxs("div",{className:"absolute left-0 right-0 z-50 mt-2 overflow-hidden rounded-xl border border-gray-200 bg-white shadow-lg dark:border-gray-700 dark:bg-gray-900",children:[f.jsx("div",{className:"border-b border-gray-100 p-3 dark:border-gray-800",children:f.jsxs("div",{className:"relative",children:[f.jsx(Io,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400"}),f.jsx("input",{value:p,onChange:q=>g(q.target.value),placeholder:"Cari divisi",className:"h-10 w-full rounded-lg border border-gray-200 bg-white pl-10 pr-3 text-sm text-gray-800 outline-none transition focus:border-brand-300 focus:ring-3 focus:ring-brand-500/20 dark:border-gray-700 dark:bg-gray-950 dark:text-white/90"})]})}),f.jsx("div",{className:"max-h-64 overflow-y-auto p-1",children:R.length===0?f.jsx("div",{className:"px-3 py-4 text-center text-sm text-gray-500 dark:text-gray-400",children:"Divisi tidak ditemukan."}):R.map(q=>{const he=u.includes(q);return f.jsxs("button",{type:"button",onClick:()=>on(q),className:`flex w-full items-center gap-3 rounded-lg px-3 py-2.5 text-left text-sm transition ${he?"bg-brand-50 text-brand-700 dark:bg-brand-500/10 dark:text-brand-300":"text-gray-700 hover:bg-gray-50 dark:text-gray-300 dark:hover:bg-white/[0.04]"}`,children:[f.jsx("span",{className:`flex h-5 w-5 shrink-0 items-center justify-center rounded border ${he?"border-brand-500 bg-brand-500 text-white":"border-gray-300 bg-white dark:border-gray-600 dark:bg-gray-950"}`,children:he&&f.jsx(O6,{className:"h-3.5 w-3.5"})}),f.jsx("span",{className:"min-w-0 flex-1 truncate",children:q})]},q)})}),u.length>0&&f.jsx("div",{className:"border-t border-gray-100 p-2 dark:border-gray-800",children:f.jsxs("button",{type:"button",onClick:Xn,className:"flex w-full items-center justify-center gap-2 rounded-lg px-3 py-2 text-sm font-semibold text-gray-600 transition hover:bg-gray-50 dark:text-gray-300 dark:hover:bg-white/[0.04]",children:[f.jsx(du,{className:"h-4 w-4"}),"Reset filter divisi"]})})]})]}),f.jsx("div",{className:"flex rounded-lg border border-gray-200 bg-gray-50 p-1 dark:border-gray-700 dark:bg-gray-900",children:[{value:"ALL",label:"Semua"},{value:"ACTIVE",label:"Aktif"},{value:"INACTIVE",label:"Nonaktif"}].map(q=>f.jsx("button",{type:"button",onClick:()=>{c(q.value),C(1)},className:`h-9 rounded-md px-3 text-sm font-semibold transition ${o===q.value?"bg-white text-brand-600 shadow-sm dark:bg-white/[0.08] dark:text-white":"text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"}`,children:q.label},q.value))}),f.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-600 dark:text-gray-300",children:["Tampil",f.jsx("select",{value:v,onChange:q=>{T(Number(q.target.value)),C(1)},className:"h-11 rounded-lg border border-gray-300 bg-white px-3 text-sm text-gray-800 outline-none focus:border-brand-300 focus:ring-3 focus:ring-brand-500/20 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90",children:[10,25,50,100].map(q=>f.jsx("option",{value:q,children:q},q))})]})]}),u.length>0&&f.jsx("div",{className:"mt-3 flex flex-wrap gap-2",children:u.map(q=>f.jsxs("button",{type:"button",onClick:()=>on(q),className:"inline-flex max-w-full items-center gap-2 rounded-lg bg-brand-50 px-3 py-1.5 text-xs font-semibold text-brand-700 transition hover:bg-brand-100 dark:bg-brand-500/10 dark:text-brand-300 dark:hover:bg-brand-500/20",children:[f.jsx("span",{className:"truncate",children:q}),f.jsx(du,{className:"h-3.5 w-3.5 shrink-0"})]},q))})]}),f.jsx("div",{className:"overflow-x-auto",children:f.jsxs("table",{className:"w-full text-left text-sm",children:[f.jsx("thead",{className:"bg-gray-50 text-xs uppercase text-gray-500 dark:bg-white/[0.04] dark:text-gray-400",children:f.jsxs("tr",{children:[HL.map(q=>f.jsx("th",{className:`px-5 py-4 font-semibold ${q.className||""}`,children:f.jsxs("button",{type:"button",onClick:()=>pa(q.key),className:"inline-flex items-center gap-2 whitespace-nowrap text-left",children:[q.label,zn(q.key)]})},q.key)),f.jsx("th",{className:"px-5 py-4 text-right font-semibold",children:"Aksi"})]})}),f.jsx("tbody",{className:"divide-y divide-gray-100 dark:divide-white/[0.05]",children:se?f.jsx("tr",{children:f.jsx("td",{colSpan:6,className:"px-5 py-12 text-center text-sm text-gray-500 dark:text-gray-400",children:"Memuat master data..."})}):I.length===0?f.jsx("tr",{children:f.jsx("td",{colSpan:6,className:"px-5 py-12 text-center text-sm text-gray-500 dark:text-gray-400",children:"Data tidak ditemukan."})}):I.map(q=>f.jsxs("tr",{className:"transition hover:bg-gray-50/70 dark:hover:bg-white/[0.03]",children:[f.jsx("td",{className:"whitespace-nowrap px-5 py-4 font-mono text-sm font-semibold text-brand-600 dark:text-brand-400",children:hi(q.nip)}),f.jsx("td",{className:"min-w-[220px] px-5 py-4",children:f.jsx("p",{className:"font-semibold text-gray-900 dark:text-white",children:hi(q.full_name)})}),f.jsx("td",{className:"whitespace-nowrap px-5 py-4 text-gray-600 dark:text-gray-300",children:pi(q)}),f.jsxs("td",{className:"min-w-[320px] px-5 py-4",children:[f.jsx("p",{className:"font-medium text-gray-800 dark:text-white/90",children:hi(q.format_timesheet)}),f.jsxs("p",{className:"mt-1 text-xs text-gray-500 dark:text-gray-400",children:[hi(q.format_approval)," - ",hi(q.format_email)]})]}),f.jsx("td",{className:"whitespace-nowrap px-5 py-4",children:f.jsx(sr,{value:q.status})}),f.jsx("td",{className:"px-5 py-4",children:f.jsxs("div",{className:"flex justify-end gap-2",children:[f.jsx("button",{type:"button",onClick:()=>He(q),className:"inline-flex h-9 w-9 items-center justify-center rounded-lg border border-blue-100 bg-blue-50 text-blue-600 transition hover:bg-blue-100 dark:border-blue-500/20 dark:bg-blue-500/10 dark:text-blue-300",title:"Edit","aria-label":"Edit master",children:f.jsx(ux,{className:"h-4 w-4"})}),f.jsx("button",{type:"button",onClick:()=>void sn(q),className:`inline-flex h-9 w-9 items-center justify-center rounded-lg border transition ${q.status==="ACTIVE"?"border-orange-100 bg-orange-50 text-orange-600 hover:bg-orange-100 dark:border-orange-500/20 dark:bg-orange-500/10 dark:text-orange-300":"border-emerald-100 bg-emerald-50 text-emerald-600 hover:bg-emerald-100 dark:border-emerald-500/20 dark:bg-emerald-500/10 dark:text-emerald-300"}`,title:q.status==="ACTIVE"?"Nonaktifkan":"Aktifkan","aria-label":q.status==="ACTIVE"?"Nonaktifkan master":"Aktifkan master",children:f.jsx(dx,{className:"h-4 w-4"})}),f.jsx("button",{type:"button",onClick:()=>void ma(q),className:"inline-flex h-9 w-9 items-center justify-center rounded-lg border border-rose-100 bg-rose-50 text-rose-600 transition hover:bg-rose-100 dark:border-rose-500/20 dark:bg-rose-500/10 dark:text-rose-300",title:"Hapus permanen","aria-label":"Hapus master",children:f.jsx(Fc,{className:"h-4 w-4"})})]})})]},q.id))})]})}),f.jsxs("div",{className:"flex flex-col gap-3 border-t border-gray-100 px-5 py-4 dark:border-gray-800 sm:flex-row sm:items-center sm:justify-between",children:[f.jsxs("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:["Menampilkan ",Q,"-",fe," dari ",j.length," data"]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("button",{type:"button",onClick:()=>C(q=>Math.max(1,q-1)),disabled:S===1,className:"inline-flex h-9 w-9 items-center justify-center rounded-lg border border-gray-200 text-gray-600 transition hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-40 dark:border-gray-700 dark:text-gray-300 dark:hover:bg-white/[0.04]","aria-label":"Halaman sebelumnya",children:f.jsx(a2,{className:"h-4 w-4"})}),ee.map(q=>f.jsx("button",{type:"button",onClick:()=>C(q),className:`h-9 min-w-9 rounded-lg px-3 text-sm font-semibold transition ${S===q?"bg-brand-500 text-white":"border border-gray-200 text-gray-600 hover:bg-gray-50 dark:border-gray-700 dark:text-gray-300 dark:hover:bg-white/[0.04]"}`,children:q},q)),f.jsx("button",{type:"button",onClick:()=>C(q=>Math.min(N,q+1)),disabled:S===N,className:"inline-flex h-9 w-9 items-center justify-center rounded-lg border border-gray-200 text-gray-600 transition hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-40 dark:border-gray-700 dark:text-gray-300 dark:hover:bg-white/[0.04]","aria-label":"Halaman berikutnya",children:f.jsx(i2,{className:"h-4 w-4"})})]})]})]})]}),f.jsx(D4,{isOpen:ae,onClose:xe,className:"mx-4 max-w-4xl overflow-hidden",showCloseButton:!je,children:f.jsxs("form",{onSubmit:Wt,children:[f.jsx("div",{className:"border-b border-gray-100 px-6 py-5 pr-16 dark:border-gray-800",children:f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"flex h-11 w-11 items-center justify-center rounded-lg bg-brand-50 text-brand-600 dark:bg-brand-500/10 dark:text-brand-300",children:te?f.jsx(ux,{className:"h-5 w-5"}):f.jsx(Xm,{className:"h-5 w-5"})}),f.jsxs("div",{children:[f.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-white",children:te?"Edit Master":"Tambah Master"}),f.jsx("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:te?hi(F.nip):"Data karyawan baru"})]})]})}),f.jsx("div",{className:"max-h-[calc(100vh-230px)] overflow-y-auto px-6 py-5",children:f.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[UL.map(q=>f.jsxs("label",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300",children:[q.label,q.required&&f.jsx("span",{className:"ml-1 text-error-500",children:"*"}),f.jsx(ra,{value:F[q.key],onChange:he=>kt(q.key,he.target.value),placeholder:q.placeholder,className:"mt-2",disabled:je})]},q.key)),f.jsxs("label",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300",children:["Status",f.jsxs("select",{value:F.status,onChange:q=>kt("status",q.target.value),disabled:je,className:"mt-2 h-11 w-full rounded-lg border border-gray-300 bg-white px-4 py-2.5 text-sm text-gray-800 outline-none transition focus:border-brand-300 focus:ring-3 focus:ring-brand-500/20 disabled:cursor-not-allowed disabled:opacity-50 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90",children:[f.jsx("option",{value:"ACTIVE",children:"ACTIVE"}),f.jsx("option",{value:"INACTIVE",children:"INACTIVE"})]})]})]})}),f.jsxs("div",{className:"flex flex-col-reverse gap-3 border-t border-gray-100 px-6 py-5 dark:border-gray-800 sm:flex-row sm:justify-end",children:[f.jsx(qt,{type:"button",variant:"outline",onClick:xe,disabled:je,children:"Batal"}),f.jsx(qt,{type:"submit",disabled:je,startIcon:je?f.jsx(Go,{className:"h-4 w-4 animate-spin"}):void 0,children:te?"Update Master":"Simpan Master"})]})]})})]})}const FL="/Master%20Data%20Absensi.xlsx",$L=["Format Timesheet","Format Approval","Format Email","NIP","Nama","Timesheet","Approval","Email","Status Payroll","Status Invoice","Divisi"],YL=[{label:"Download template",description:"Gunakan struktur kolom standar master absensi."},{label:"Upload Excel",description:"Sistem membaca data dan validasi NIP, nama, dan divisi."},{label:"Commit import",description:"Data valid akan dibuat baru atau diperbarui."}],GL=[{key:"row_number",label:"Row"},{key:"nip",label:"NIP"},{key:"full_name",label:"Nama",className:"min-w-[220px]"},{key:"division_name",label:"Divisi"},{key:"format_timesheet",label:"Format Timesheet",className:"min-w-[260px]"},{key:"status",label:"Status"},{key:"message",label:"Pesan",className:"min-w-[240px]"}];function fv(e,t){var a,r;return((r=(a=e.response)==null?void 0:a.data)==null?void 0:r.message)||t}function Qr(e){return(e==null?void 0:e.trim())||"-"}function zm(e){var a;const t=(a=e.message)==null?void 0:a.trim();return t||((e.status||"").toUpperCase()==="VALID"?"Semua valid, kolom aman":(e.status||"").toUpperCase()==="FAILED"?"Data belum valid, cek kolom wajib":"Belum ada pesan validasi")}function IL(e){return e?e.size<1024*1024?`${(e.size/1024).toFixed(1)} KB`:`${(e.size/(1024*1024)).toFixed(2)} MB`:""}function mv(e,t){return t==="row_number"?e.row_number:Qr(e[t])}function ZL(){const[e,t]=w.useState(null),[a,r]=w.useState(null),[o,c]=w.useState(null),[u,m]=w.useState(""),[p,g]=w.useState("ALL"),[y,b]=w.useState(10),[v,T]=w.useState(1),[S,C]=w.useState("row_number"),[E,O]=w.useState("asc"),[D,M]=w.useState(!1),F=((a==null?void 0:a.summary.total_failed)||0)>0,V=!!(a!=null&&a.stored_path)&&!F&&!D,te=w.useMemo(()=>((a==null?void 0:a.rows)||[]).filter(N=>N.status==="FAILED"),[a]),ie=w.useMemo(()=>{const N=u.trim().toLowerCase();return((a==null?void 0:a.rows)||[]).filter(I=>p!=="ALL"&&I.status!==p?!1:N?[I.row_number,I.nip,I.full_name,I.division_name,I.format_timesheet,I.status,zm(I)].join(" ").toLowerCase().includes(N):!0)},[a,u,p]),ae=w.useMemo(()=>[...ie].sort((N,I)=>{const ee=mv(N,S),Q=mv(I,S),fe=typeof ee=="number"&&typeof Q=="number"?ee-Q:String(ee).localeCompare(String(Q),"id",{numeric:!0,sensitivity:"base"});return E==="asc"?fe:-fe}),[ie,E,S]),W=Math.max(1,Math.ceil(ae.length/y)),se=ae.length===0?0:(v-1)*y+1,Ae=Math.min(v*y,ae.length),je=w.useMemo(()=>{const I=(Math.min(v,W)-1)*y;return ae.slice(I,I+y)},[v,y,W,ae]),Ee=w.useMemo(()=>{const I=Math.floor(2.5),ee=Math.min(v,W);let Q=Math.max(1,ee-I);const fe=Math.min(W,Q+5-1);return Q=Math.max(1,fe-5+1),Array.from({length:fe-Q+1},(de,ke)=>Q+ke)},[v,W]),re=()=>{m(""),g("ALL"),T(1),C("row_number"),O("asc")},pe=N=>{t(N||null),r(null),c(null),re()},K=()=>{t(null),r(null),c(null),re()},_=async()=>{var I;if(!e)return;const N=new FormData;N.append("file",e),M(!0),c(null);try{const ee=await Le.post("/api/master/import/preview",N,{headers:{"Content-Type":"multipart/form-data"}});r(((I=ee.data)==null?void 0:I.data)||null),re(),be.fire("Berhasil","Preview import selesai","success")}catch(ee){be.fire("Gagal",fv(ee,"Preview gagal"),"error")}finally{M(!1)}},R=async()=>{var N;if(a!=null&&a.stored_path){M(!0);try{const ee=((N=(await Le.post("/api/master/import/commit",{stored_path:a.stored_path,original_filename:a.original_filename})).data)==null?void 0:N.data)||{};c(ee),be.fire("Import Selesai",`${ee.total_inserted||0} inserted, ${ee.total_updated||0} updated, ${ee.total_failed||0} failed`,"success")}catch(I){be.fire("Gagal",fv(I,"Commit import gagal"),"error")}finally{M(!1)}}},Z=N=>{if(T(1),S===N){O(I=>I==="asc"?"desc":"asc");return}C(N),O("asc")},j=N=>S!==N?f.jsx(t2,{className:"h-3.5 w-3.5 text-gray-400"}):E==="asc"?f.jsx(n2,{className:"h-3.5 w-3.5 text-brand-500"}):f.jsx(e2,{className:"h-3.5 w-3.5 text-brand-500"});return f.jsxs(f.Fragment,{children:[f.jsx(fa,{title:"Import Master | File Renamer",description:"Preview dan commit import master Excel."}),f.jsx(dr,{pageTitle:"Import Master Excel"}),f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 shadow-sm dark:border-gray-800 dark:bg-white/[0.03] sm:p-6",children:[f.jsxs("div",{className:"flex flex-col gap-4 xl:flex-row xl:items-start xl:justify-between",children:[f.jsx("div",{children:f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("div",{className:"flex h-11 w-11 items-center justify-center rounded-lg bg-brand-50 text-brand-600 dark:bg-brand-500/10 dark:text-brand-300",children:f.jsx(tj,{className:"h-5 w-5"})}),f.jsxs("div",{children:[f.jsx("h1",{className:"text-xl font-bold text-gray-900 dark:text-white",children:"Import Master Absensi"}),f.jsx("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:"Preview dulu sebelum data master disimpan ke database."})]})]})}),f.jsxs("a",{href:FL,download:"Master Data Absensi.xlsx",className:"inline-flex h-11 items-center justify-center gap-2 rounded-lg bg-gray-900 px-4 text-sm font-semibold text-white transition hover:bg-gray-800 dark:bg-white dark:text-gray-900 dark:hover:bg-gray-200",children:[f.jsx(uu,{className:"h-4 w-4"}),"Download Template"]})]}),f.jsx("div",{className:"mt-6 grid grid-cols-1 gap-3 lg:grid-cols-3",children:YL.map((N,I)=>f.jsxs("div",{className:"rounded-xl border border-gray-100 bg-gray-50 p-4 dark:border-gray-800 dark:bg-white/[0.03]",children:[f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsx("span",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-white text-sm font-bold text-brand-600 shadow-sm dark:bg-white/[0.08] dark:text-brand-300",children:I+1}),f.jsx("p",{className:"font-semibold text-gray-900 dark:text-white",children:N.label})]}),f.jsx("p",{className:"mt-2 text-sm text-gray-500 dark:text-gray-400",children:N.description})]},N.label))})]}),f.jsxs("div",{className:"grid grid-cols-1 gap-6 xl:grid-cols-[0.85fr_1.15fr]",children:[f.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 shadow-sm dark:border-gray-800 dark:bg-white/[0.03] sm:p-6",children:[f.jsxs("div",{className:"mb-5 flex items-center gap-2",children:[f.jsx(dh,{className:"h-5 w-5 text-brand-500"}),f.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"Struktur Template"})]}),f.jsxs("div",{className:"rounded-xl border border-brand-100 bg-brand-50 p-4 dark:border-brand-500/20 dark:bg-brand-500/10",children:[f.jsx("p",{className:"text-sm font-semibold text-gray-900 dark:text-white",children:"Kolom wajib sesuai urutan A-K"}),f.jsx("p",{className:"mt-1 text-sm text-gray-600 dark:text-gray-300",children:"Header NIP, Nama, dan Divisi wajib ada. Baris duplikat NIP akan ditandai gagal saat preview."})]}),f.jsx("div",{className:"mt-4 grid grid-cols-1 gap-2 sm:grid-cols-2",children:$L.map((N,I)=>f.jsxs("div",{className:"flex items-center gap-2 rounded-lg border border-gray-100 px-3 py-2 text-sm text-gray-700 dark:border-gray-800 dark:text-gray-300",children:[f.jsx("span",{className:"flex h-6 w-6 items-center justify-center rounded-md bg-gray-100 text-xs font-bold text-gray-500 dark:bg-white/[0.06] dark:text-gray-400",children:String.fromCharCode(65+I)}),N]},N))})]}),f.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-5 shadow-sm dark:border-gray-800 dark:bg-white/[0.03] sm:p-6",children:[f.jsxs("div",{className:"mb-5 flex flex-col gap-3 sm:flex-row sm:items-center sm:justify-between",children:[f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx(Yo,{className:"h-5 w-5 text-brand-500"}),f.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"Upload Excel"})]}),e&&f.jsx(qt,{type:"button",size:"sm",variant:"outline",onClick:K,disabled:D,startIcon:f.jsx(dj,{className:"h-4 w-4"}),children:"Reset"})]}),f.jsxs("label",{className:"flex min-h-52 cursor-pointer flex-col items-center justify-center rounded-2xl border-2 border-dashed border-gray-200 bg-gray-50/70 px-5 text-center transition hover:border-brand-300 hover:bg-brand-50/40 dark:border-gray-700 dark:bg-gray-900/50 dark:hover:border-brand-500/60 dark:hover:bg-brand-500/10",children:[f.jsx(Yo,{className:"mb-3 h-11 w-11 text-brand-500"}),f.jsx("span",{className:"text-sm font-semibold text-brand-600 dark:text-brand-300",children:e?e.name:"Klik untuk pilih file Excel"}),f.jsx("span",{className:"mt-2 text-xs text-gray-500 dark:text-gray-400",children:e?`${IL(e)} - ${e.type||"Excel file"}`:"Format .xlsx atau .xls"}),f.jsx("input",{className:"hidden",type:"file",accept:".xlsx,.xls",onChange:N=>{var I;return pe((I=N.target.files)==null?void 0:I[0])}})]}),f.jsxs("div",{className:"mt-5 flex flex-col gap-3 sm:flex-row",children:[f.jsx(qt,{type:"button",onClick:()=>void _(),disabled:!e||D,startIcon:D?f.jsx(Go,{className:"h-4 w-4 animate-spin"}):f.jsx(W6,{className:"h-4 w-4"}),children:"Preview Data"}),f.jsx(qt,{type:"button",variant:"outline",onClick:()=>void R(),disabled:!V,startIcon:D?f.jsx(Go,{className:"h-4 w-4 animate-spin"}):f.jsx($o,{className:"h-4 w-4"}),children:"Commit Import"})]}),a&&F&&f.jsxs("div",{className:"mt-5 flex gap-3 rounded-xl border border-amber-200 bg-amber-50 p-4 text-sm text-amber-800 dark:border-amber-500/30 dark:bg-amber-500/10 dark:text-amber-200",children:[f.jsx(gj,{className:"mt-0.5 h-5 w-5 shrink-0"}),f.jsxs("p",{children:[a.summary.total_failed," row masih gagal. Commit dibuka setelah semua row valid."]})]}),o&&f.jsxs("div",{className:"mt-5 rounded-xl border border-emerald-100 bg-emerald-50 p-4 dark:border-emerald-500/20 dark:bg-emerald-500/10",children:[f.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-emerald-700 dark:text-emerald-300",children:[f.jsx($o,{className:"h-4 w-4"}),"Import berhasil diproses"]}),f.jsxs("p",{className:"mt-2 text-sm text-gray-600 dark:text-gray-300",children:[o.total_inserted||0," inserted, ",o.total_updated||0," updated,"," ",o.total_failed||0," failed."]})]})]})]}),a&&f.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white shadow-sm dark:border-gray-800 dark:bg-white/[0.03]",children:[f.jsxs("div",{className:"border-b border-gray-100 p-5 dark:border-gray-800 sm:p-6",children:[f.jsxs("div",{className:"flex flex-col gap-4 xl:flex-row xl:items-center xl:justify-between",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"Preview Import"}),f.jsx("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:Qr(a.original_filename)})]}),f.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[f.jsxs("div",{className:"rounded-xl border border-gray-100 bg-gray-50 px-4 py-3 dark:border-gray-800 dark:bg-white/[0.03]",children:[f.jsx("p",{className:"text-xs text-gray-500",children:"Total"}),f.jsx("p",{className:"text-xl font-bold text-gray-900 dark:text-white",children:a.summary.total_rows})]}),f.jsxs("div",{className:"rounded-xl border border-emerald-100 bg-emerald-50 px-4 py-3 dark:border-emerald-500/20 dark:bg-emerald-500/10",children:[f.jsx("p",{className:"text-xs text-gray-500",children:"Valid"}),f.jsx("p",{className:"text-xl font-bold text-emerald-700 dark:text-emerald-300",children:a.summary.total_valid})]}),f.jsxs("div",{className:"rounded-xl border border-rose-100 bg-rose-50 px-4 py-3 dark:border-rose-500/20 dark:bg-rose-500/10",children:[f.jsx("p",{className:"text-xs text-gray-500",children:"Failed"}),f.jsx("p",{className:"text-xl font-bold text-rose-700 dark:text-rose-300",children:a.summary.total_failed})]})]})]}),te.length>0&&f.jsxs("div",{className:"mt-5 rounded-xl border border-rose-100 bg-rose-50 p-4 dark:border-rose-500/20 dark:bg-rose-500/10",children:[f.jsx("p",{className:"text-sm font-semibold text-rose-700 dark:text-rose-300",children:"Row gagal"}),f.jsxs("div",{className:"mt-2 flex flex-wrap gap-2",children:[te.slice(0,8).map(N=>f.jsxs("span",{className:"rounded-lg bg-white px-2.5 py-1 text-xs font-semibold text-rose-600 dark:bg-white/[0.08]",children:["Row ",N.row_number,": ",zm(N)]},N.row_number)),te.length>8&&f.jsxs("span",{className:"rounded-lg bg-white px-2.5 py-1 text-xs font-semibold text-rose-600 dark:bg-white/[0.08]",children:["+",te.length-8," row lain"]})]})]}),f.jsxs("div",{className:"mt-5 grid grid-cols-1 gap-3 lg:grid-cols-[minmax(240px,1fr)_auto_auto] lg:items-center",children:[f.jsxs("div",{className:"relative",children:[f.jsx(Io,{className:"pointer-events-none absolute left-3 top-1/2 h-4 w-4 -translate-y-1/2 text-gray-400"}),f.jsx("input",{value:u,onChange:N=>{m(N.target.value),T(1)},placeholder:"Cari row, NIP, nama, divisi, status",className:"h-11 w-full rounded-lg border border-gray-300 bg-white pl-10 pr-4 text-sm text-gray-800 outline-none transition focus:border-brand-300 focus:ring-3 focus:ring-brand-500/20 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90"})]}),f.jsx("div",{className:"flex rounded-lg border border-gray-200 bg-gray-50 p-1 dark:border-gray-700 dark:bg-gray-900",children:[{value:"ALL",label:"Semua"},{value:"VALID",label:"Valid"},{value:"FAILED",label:"Failed"}].map(N=>f.jsx("button",{type:"button",onClick:()=>{g(N.value),T(1)},className:`h-9 rounded-md px-3 text-sm font-semibold transition ${p===N.value?"bg-white text-brand-600 shadow-sm dark:bg-white/[0.08] dark:text-white":"text-gray-500 hover:text-gray-700 dark:text-gray-400 dark:hover:text-gray-200"}`,children:N.label},N.value))}),f.jsxs("label",{className:"flex items-center gap-2 text-sm font-medium text-gray-600 dark:text-gray-300",children:["Tampil",f.jsx("select",{value:y,onChange:N=>{b(Number(N.target.value)),T(1)},className:"h-11 rounded-lg border border-gray-300 bg-white px-3 text-sm text-gray-800 outline-none focus:border-brand-300 focus:ring-3 focus:ring-brand-500/20 dark:border-gray-700 dark:bg-gray-900 dark:text-white/90",children:[10,25,50,100].map(N=>f.jsx("option",{value:N,children:N},N))})]})]}),f.jsxs("p",{className:"mt-3 text-sm text-gray-500 dark:text-gray-400",children:["Menampilkan ",se,"-",Ae," dari ",ae.length," row preview"]})]}),f.jsx("div",{className:"overflow-x-auto",children:f.jsxs("table",{className:"w-full text-left text-sm",children:[f.jsx("thead",{className:"bg-gray-50 text-xs uppercase text-gray-500 dark:bg-white/[0.04] dark:text-gray-400",children:f.jsx("tr",{children:GL.map(N=>f.jsx("th",{className:`px-5 py-4 font-semibold ${N.className||""}`,children:f.jsxs("button",{type:"button",onClick:()=>Z(N.key),className:"inline-flex items-center gap-2 whitespace-nowrap text-left",children:[N.label,j(N.key)]})},N.key))})}),f.jsx("tbody",{className:"divide-y divide-gray-100 dark:divide-white/[0.05]",children:je.length===0?f.jsx("tr",{children:f.jsx("td",{colSpan:7,className:"px-5 py-12 text-center text-sm text-gray-500 dark:text-gray-400",children:"Row preview tidak ditemukan."})}):je.map(N=>f.jsxs("tr",{className:"transition hover:bg-gray-50/70 dark:hover:bg-white/[0.03]",children:[f.jsx("td",{className:"whitespace-nowrap px-5 py-4 font-semibold text-gray-700 dark:text-gray-300",children:N.row_number}),f.jsx("td",{className:"whitespace-nowrap px-5 py-4 font-mono font-semibold text-brand-600 dark:text-brand-400",children:Qr(N.nip)}),f.jsx("td",{className:"min-w-[220px] px-5 py-4 font-semibold text-gray-900 dark:text-white",children:Qr(N.full_name)}),f.jsx("td",{className:"whitespace-nowrap px-5 py-4 text-gray-600 dark:text-gray-300",children:Qr(N.division_name)}),f.jsx("td",{className:"min-w-[260px] px-5 py-4 text-gray-600 dark:text-gray-300",children:Qr(N.format_timesheet)}),f.jsx("td",{className:"whitespace-nowrap px-5 py-4",children:f.jsx(sr,{value:N.status})}),f.jsx("td",{className:"min-w-[240px] px-5 py-4 text-xs",children:f.jsx("span",{className:N.status==="VALID"?"font-semibold text-emerald-600 dark:text-emerald-300":"font-semibold text-rose-600 dark:text-rose-300",children:zm(N)})})]},N.row_number))})]})}),f.jsxs("div",{className:"flex flex-col gap-3 border-t border-gray-100 px-5 py-4 dark:border-gray-800 sm:flex-row sm:items-center sm:justify-between",children:[f.jsxs("p",{className:"text-sm text-gray-500 dark:text-gray-400",children:["Menampilkan ",se,"-",Ae," dari ",ae.length," row"]}),f.jsxs("div",{className:"flex items-center gap-2",children:[f.jsx("button",{type:"button",onClick:()=>T(N=>Math.max(1,N-1)),disabled:v===1,className:"inline-flex h-9 w-9 items-center justify-center rounded-lg border border-gray-200 text-gray-600 transition hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-40 dark:border-gray-700 dark:text-gray-300 dark:hover:bg-white/[0.04]","aria-label":"Halaman sebelumnya",children:f.jsx(a2,{className:"h-4 w-4"})}),Ee.map(N=>f.jsx("button",{type:"button",onClick:()=>T(N),className:`h-9 min-w-9 rounded-lg px-3 text-sm font-semibold transition ${v===N?"bg-brand-500 text-white":"border border-gray-200 text-gray-600 hover:bg-gray-50 dark:border-gray-700 dark:text-gray-300 dark:hover:bg-white/[0.04]"}`,children:N},N)),f.jsx("button",{type:"button",onClick:()=>T(N=>Math.min(W,N+1)),disabled:v===W,className:"inline-flex h-9 w-9 items-center justify-center rounded-lg border border-gray-200 text-gray-600 transition hover:bg-gray-50 disabled:cursor-not-allowed disabled:opacity-40 dark:border-gray-700 dark:text-gray-300 dark:hover:bg-white/[0.04]","aria-label":"Halaman berikutnya",children:f.jsx(i2,{className:"h-4 w-4"})})]})]})]})]})]})}var Pm={exports:{}},Vm,pv;function KL(){if(pv)return Vm;pv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Vm=e,Vm}var Um,hv;function XL(){if(hv)return Um;hv=1;var e=KL();function t(){}function a(){}return a.resetWarningCache=t,Um=function(){function r(u,m,p,g,y,b){if(b!==e){var v=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw v.name="Invariant Violation",v}}r.isRequired=r;function o(){return r}var c={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:t};return c.PropTypes=c,c},Um}var gv;function WL(){return gv||(gv=1,Pm.exports=XL()()),Pm.exports}var QL=WL();const Xe=gs(QL);function fr(e,t,a,r){function o(c){return c instanceof a?c:new a(function(u){u(c)})}return new(a||(a=Promise))(function(c,u){function m(y){try{g(r.next(y))}catch(b){u(b)}}function p(y){try{g(r.throw(y))}catch(b){u(b)}}function g(y){y.done?c(y.value):o(y.value).then(m,p)}g((r=r.apply(e,t||[])).next())})}const JL=new Map([["1km","application/vnd.1000minds.decision-model+xml"],["3dml","text/vnd.in3d.3dml"],["3ds","image/x-3ds"],["3g2","video/3gpp2"],["3gp","video/3gp"],["3gpp","video/3gpp"],["3mf","model/3mf"],["7z","application/x-7z-compressed"],["7zip","application/x-7z-compressed"],["123","application/vnd.lotus-1-2-3"],["aab","application/x-authorware-bin"],["aac","audio/x-acc"],["aam","application/x-authorware-map"],["aas","application/x-authorware-seg"],["abw","application/x-abiword"],["ac","application/vnd.nokia.n-gage.ac+xml"],["ac3","audio/ac3"],["acc","application/vnd.americandynamics.acc"],["ace","application/x-ace-compressed"],["acu","application/vnd.acucobol"],["acutc","application/vnd.acucorp"],["adp","audio/adpcm"],["aep","application/vnd.audiograph"],["afm","application/x-font-type1"],["afp","application/vnd.ibm.modcap"],["ahead","application/vnd.ahead.space"],["ai","application/pdf"],["aif","audio/x-aiff"],["aifc","audio/x-aiff"],["aiff","audio/x-aiff"],["air","application/vnd.adobe.air-application-installer-package+zip"],["ait","application/vnd.dvb.ait"],["ami","application/vnd.amiga.ami"],["amr","audio/amr"],["apk","application/vnd.android.package-archive"],["apng","image/apng"],["appcache","text/cache-manifest"],["application","application/x-ms-application"],["apr","application/vnd.lotus-approach"],["arc","application/x-freearc"],["arj","application/x-arj"],["asc","application/pgp-signature"],["asf","video/x-ms-asf"],["asm","text/x-asm"],["aso","application/vnd.accpac.simply.aso"],["asx","video/x-ms-asf"],["atc","application/vnd.acucorp"],["atom","application/atom+xml"],["atomcat","application/atomcat+xml"],["atomdeleted","application/atomdeleted+xml"],["atomsvc","application/atomsvc+xml"],["atx","application/vnd.antix.game-component"],["au","audio/x-au"],["avi","video/x-msvideo"],["avif","image/avif"],["aw","application/applixware"],["azf","application/vnd.airzip.filesecure.azf"],["azs","application/vnd.airzip.filesecure.azs"],["azv","image/vnd.airzip.accelerator.azv"],["azw","application/vnd.amazon.ebook"],["b16","image/vnd.pco.b16"],["bat","application/x-msdownload"],["bcpio","application/x-bcpio"],["bdf","application/x-font-bdf"],["bdm","application/vnd.syncml.dm+wbxml"],["bdoc","application/x-bdoc"],["bed","application/vnd.realvnc.bed"],["bh2","application/vnd.fujitsu.oasysprs"],["bin","application/octet-stream"],["blb","application/x-blorb"],["blorb","application/x-blorb"],["bmi","application/vnd.bmi"],["bmml","application/vnd.balsamiq.bmml+xml"],["bmp","image/bmp"],["book","application/vnd.framemaker"],["box","application/vnd.previewsystems.box"],["boz","application/x-bzip2"],["bpk","application/octet-stream"],["bpmn","application/octet-stream"],["bsp","model/vnd.valve.source.compiled-map"],["btif","image/prs.btif"],["buffer","application/octet-stream"],["bz","application/x-bzip"],["bz2","application/x-bzip2"],["c","text/x-c"],["c4d","application/vnd.clonk.c4group"],["c4f","application/vnd.clonk.c4group"],["c4g","application/vnd.clonk.c4group"],["c4p","application/vnd.clonk.c4group"],["c4u","application/vnd.clonk.c4group"],["c11amc","application/vnd.cluetrust.cartomobile-config"],["c11amz","application/vnd.cluetrust.cartomobile-config-pkg"],["cab","application/vnd.ms-cab-compressed"],["caf","audio/x-caf"],["cap","application/vnd.tcpdump.pcap"],["car","application/vnd.curl.car"],["cat","application/vnd.ms-pki.seccat"],["cb7","application/x-cbr"],["cba","application/x-cbr"],["cbr","application/x-cbr"],["cbt","application/x-cbr"],["cbz","application/x-cbr"],["cc","text/x-c"],["cco","application/x-cocoa"],["cct","application/x-director"],["ccxml","application/ccxml+xml"],["cdbcmsg","application/vnd.contact.cmsg"],["cda","application/x-cdf"],["cdf","application/x-netcdf"],["cdfx","application/cdfx+xml"],["cdkey","application/vnd.mediastation.cdkey"],["cdmia","application/cdmi-capability"],["cdmic","application/cdmi-container"],["cdmid","application/cdmi-domain"],["cdmio","application/cdmi-object"],["cdmiq","application/cdmi-queue"],["cdr","application/cdr"],["cdx","chemical/x-cdx"],["cdxml","application/vnd.chemdraw+xml"],["cdy","application/vnd.cinderella"],["cer","application/pkix-cert"],["cfs","application/x-cfs-compressed"],["cgm","image/cgm"],["chat","application/x-chat"],["chm","application/vnd.ms-htmlhelp"],["chrt","application/vnd.kde.kchart"],["cif","chemical/x-cif"],["cii","application/vnd.anser-web-certificate-issue-initiation"],["cil","application/vnd.ms-artgalry"],["cjs","application/node"],["cla","application/vnd.claymore"],["class","application/octet-stream"],["clkk","application/vnd.crick.clicker.keyboard"],["clkp","application/vnd.crick.clicker.palette"],["clkt","application/vnd.crick.clicker.template"],["clkw","application/vnd.crick.clicker.wordbank"],["clkx","application/vnd.crick.clicker"],["clp","application/x-msclip"],["cmc","application/vnd.cosmocaller"],["cmdf","chemical/x-cmdf"],["cml","chemical/x-cml"],["cmp","application/vnd.yellowriver-custom-menu"],["cmx","image/x-cmx"],["cod","application/vnd.rim.cod"],["coffee","text/coffeescript"],["com","application/x-msdownload"],["conf","text/plain"],["cpio","application/x-cpio"],["cpp","text/x-c"],["cpt","application/mac-compactpro"],["crd","application/x-mscardfile"],["crl","application/pkix-crl"],["crt","application/x-x509-ca-cert"],["crx","application/x-chrome-extension"],["cryptonote","application/vnd.rig.cryptonote"],["csh","application/x-csh"],["csl","application/vnd.citationstyles.style+xml"],["csml","chemical/x-csml"],["csp","application/vnd.commonspace"],["csr","application/octet-stream"],["css","text/css"],["cst","application/x-director"],["csv","text/csv"],["cu","application/cu-seeme"],["curl","text/vnd.curl"],["cww","application/prs.cww"],["cxt","application/x-director"],["cxx","text/x-c"],["dae","model/vnd.collada+xml"],["daf","application/vnd.mobius.daf"],["dart","application/vnd.dart"],["dataless","application/vnd.fdsn.seed"],["davmount","application/davmount+xml"],["dbf","application/vnd.dbf"],["dbk","application/docbook+xml"],["dcr","application/x-director"],["dcurl","text/vnd.curl.dcurl"],["dd2","application/vnd.oma.dd2+xml"],["ddd","application/vnd.fujixerox.ddd"],["ddf","application/vnd.syncml.dmddf+xml"],["dds","image/vnd.ms-dds"],["deb","application/x-debian-package"],["def","text/plain"],["deploy","application/octet-stream"],["der","application/x-x509-ca-cert"],["dfac","application/vnd.dreamfactory"],["dgc","application/x-dgc-compressed"],["dic","text/x-c"],["dir","application/x-director"],["dis","application/vnd.mobius.dis"],["disposition-notification","message/disposition-notification"],["dist","application/octet-stream"],["distz","application/octet-stream"],["djv","image/vnd.djvu"],["djvu","image/vnd.djvu"],["dll","application/octet-stream"],["dmg","application/x-apple-diskimage"],["dmn","application/octet-stream"],["dmp","application/vnd.tcpdump.pcap"],["dms","application/octet-stream"],["dna","application/vnd.dna"],["doc","application/msword"],["docm","application/vnd.ms-word.template.macroEnabled.12"],["docx","application/vnd.openxmlformats-officedocument.wordprocessingml.document"],["dot","application/msword"],["dotm","application/vnd.ms-word.template.macroEnabled.12"],["dotx","application/vnd.openxmlformats-officedocument.wordprocessingml.template"],["dp","application/vnd.osgi.dp"],["dpg","application/vnd.dpgraph"],["dra","audio/vnd.dra"],["drle","image/dicom-rle"],["dsc","text/prs.lines.tag"],["dssc","application/dssc+der"],["dtb","application/x-dtbook+xml"],["dtd","application/xml-dtd"],["dts","audio/vnd.dts"],["dtshd","audio/vnd.dts.hd"],["dump","application/octet-stream"],["dvb","video/vnd.dvb.file"],["dvi","application/x-dvi"],["dwd","application/atsc-dwd+xml"],["dwf","model/vnd.dwf"],["dwg","image/vnd.dwg"],["dxf","image/vnd.dxf"],["dxp","application/vnd.spotfire.dxp"],["dxr","application/x-director"],["ear","application/java-archive"],["ecelp4800","audio/vnd.nuera.ecelp4800"],["ecelp7470","audio/vnd.nuera.ecelp7470"],["ecelp9600","audio/vnd.nuera.ecelp9600"],["ecma","application/ecmascript"],["edm","application/vnd.novadigm.edm"],["edx","application/vnd.novadigm.edx"],["efif","application/vnd.picsel"],["ei6","application/vnd.pg.osasli"],["elc","application/octet-stream"],["emf","image/emf"],["eml","message/rfc822"],["emma","application/emma+xml"],["emotionml","application/emotionml+xml"],["emz","application/x-msmetafile"],["eol","audio/vnd.digital-winds"],["eot","application/vnd.ms-fontobject"],["eps","application/postscript"],["epub","application/epub+zip"],["es","application/ecmascript"],["es3","application/vnd.eszigno3+xml"],["esa","application/vnd.osgi.subsystem"],["esf","application/vnd.epson.esf"],["et3","application/vnd.eszigno3+xml"],["etx","text/x-setext"],["eva","application/x-eva"],["evy","application/x-envoy"],["exe","application/octet-stream"],["exi","application/exi"],["exp","application/express"],["exr","image/aces"],["ext","application/vnd.novadigm.ext"],["ez","application/andrew-inset"],["ez2","application/vnd.ezpix-album"],["ez3","application/vnd.ezpix-package"],["f","text/x-fortran"],["f4v","video/mp4"],["f77","text/x-fortran"],["f90","text/x-fortran"],["fbs","image/vnd.fastbidsheet"],["fcdt","application/vnd.adobe.formscentral.fcdt"],["fcs","application/vnd.isac.fcs"],["fdf","application/vnd.fdf"],["fdt","application/fdt+xml"],["fe_launch","application/vnd.denovo.fcselayout-link"],["fg5","application/vnd.fujitsu.oasysgp"],["fgd","application/x-director"],["fh","image/x-freehand"],["fh4","image/x-freehand"],["fh5","image/x-freehand"],["fh7","image/x-freehand"],["fhc","image/x-freehand"],["fig","application/x-xfig"],["fits","image/fits"],["flac","audio/x-flac"],["fli","video/x-fli"],["flo","application/vnd.micrografx.flo"],["flv","video/x-flv"],["flw","application/vnd.kde.kivio"],["flx","text/vnd.fmi.flexstor"],["fly","text/vnd.fly"],["fm","application/vnd.framemaker"],["fnc","application/vnd.frogans.fnc"],["fo","application/vnd.software602.filler.form+xml"],["for","text/x-fortran"],["fpx","image/vnd.fpx"],["frame","application/vnd.framemaker"],["fsc","application/vnd.fsc.weblaunch"],["fst","image/vnd.fst"],["ftc","application/vnd.fluxtime.clip"],["fti","application/vnd.anser-web-funds-transfer-initiation"],["fvt","video/vnd.fvt"],["fxp","application/vnd.adobe.fxp"],["fxpl","application/vnd.adobe.fxp"],["fzs","application/vnd.fuzzysheet"],["g2w","application/vnd.geoplan"],["g3","image/g3fax"],["g3w","application/vnd.geospace"],["gac","application/vnd.groove-account"],["gam","application/x-tads"],["gbr","application/rpki-ghostbusters"],["gca","application/x-gca-compressed"],["gdl","model/vnd.gdl"],["gdoc","application/vnd.google-apps.document"],["geo","application/vnd.dynageo"],["geojson","application/geo+json"],["gex","application/vnd.geometry-explorer"],["ggb","application/vnd.geogebra.file"],["ggt","application/vnd.geogebra.tool"],["ghf","application/vnd.groove-help"],["gif","image/gif"],["gim","application/vnd.groove-identity-message"],["glb","model/gltf-binary"],["gltf","model/gltf+json"],["gml","application/gml+xml"],["gmx","application/vnd.gmx"],["gnumeric","application/x-gnumeric"],["gpg","application/gpg-keys"],["gph","application/vnd.flographit"],["gpx","application/gpx+xml"],["gqf","application/vnd.grafeq"],["gqs","application/vnd.grafeq"],["gram","application/srgs"],["gramps","application/x-gramps-xml"],["gre","application/vnd.geometry-explorer"],["grv","application/vnd.groove-injector"],["grxml","application/srgs+xml"],["gsf","application/x-font-ghostscript"],["gsheet","application/vnd.google-apps.spreadsheet"],["gslides","application/vnd.google-apps.presentation"],["gtar","application/x-gtar"],["gtm","application/vnd.groove-tool-message"],["gtw","model/vnd.gtw"],["gv","text/vnd.graphviz"],["gxf","application/gxf"],["gxt","application/vnd.geonext"],["gz","application/gzip"],["gzip","application/gzip"],["h","text/x-c"],["h261","video/h261"],["h263","video/h263"],["h264","video/h264"],["hal","application/vnd.hal+xml"],["hbci","application/vnd.hbci"],["hbs","text/x-handlebars-template"],["hdd","application/x-virtualbox-hdd"],["hdf","application/x-hdf"],["heic","image/heic"],["heics","image/heic-sequence"],["heif","image/heif"],["heifs","image/heif-sequence"],["hej2","image/hej2k"],["held","application/atsc-held+xml"],["hh","text/x-c"],["hjson","application/hjson"],["hlp","application/winhlp"],["hpgl","application/vnd.hp-hpgl"],["hpid","application/vnd.hp-hpid"],["hps","application/vnd.hp-hps"],["hqx","application/mac-binhex40"],["hsj2","image/hsj2"],["htc","text/x-component"],["htke","application/vnd.kenameaapp"],["htm","text/html"],["html","text/html"],["hvd","application/vnd.yamaha.hv-dic"],["hvp","application/vnd.yamaha.hv-voice"],["hvs","application/vnd.yamaha.hv-script"],["i2g","application/vnd.intergeo"],["icc","application/vnd.iccprofile"],["ice","x-conference/x-cooltalk"],["icm","application/vnd.iccprofile"],["ico","image/x-icon"],["ics","text/calendar"],["ief","image/ief"],["ifb","text/calendar"],["ifm","application/vnd.shana.informed.formdata"],["iges","model/iges"],["igl","application/vnd.igloader"],["igm","application/vnd.insors.igm"],["igs","model/iges"],["igx","application/vnd.micrografx.igx"],["iif","application/vnd.shana.informed.interchange"],["img","application/octet-stream"],["imp","application/vnd.accpac.simply.imp"],["ims","application/vnd.ms-ims"],["in","text/plain"],["ini","text/plain"],["ink","application/inkml+xml"],["inkml","application/inkml+xml"],["install","application/x-install-instructions"],["iota","application/vnd.astraea-software.iota"],["ipfix","application/ipfix"],["ipk","application/vnd.shana.informed.package"],["irm","application/vnd.ibm.rights-management"],["irp","application/vnd.irepository.package+xml"],["iso","application/x-iso9660-image"],["itp","application/vnd.shana.informed.formtemplate"],["its","application/its+xml"],["ivp","application/vnd.immervision-ivp"],["ivu","application/vnd.immervision-ivu"],["jad","text/vnd.sun.j2me.app-descriptor"],["jade","text/jade"],["jam","application/vnd.jam"],["jar","application/java-archive"],["jardiff","application/x-java-archive-diff"],["java","text/x-java-source"],["jhc","image/jphc"],["jisp","application/vnd.jisp"],["jls","image/jls"],["jlt","application/vnd.hp-jlyt"],["jng","image/x-jng"],["jnlp","application/x-java-jnlp-file"],["joda","application/vnd.joost.joda-archive"],["jp2","image/jp2"],["jpe","image/jpeg"],["jpeg","image/jpeg"],["jpf","image/jpx"],["jpg","image/jpeg"],["jpg2","image/jp2"],["jpgm","video/jpm"],["jpgv","video/jpeg"],["jph","image/jph"],["jpm","video/jpm"],["jpx","image/jpx"],["js","application/javascript"],["json","application/json"],["json5","application/json5"],["jsonld","application/ld+json"],["jsonl","application/jsonl"],["jsonml","application/jsonml+json"],["jsx","text/jsx"],["jxr","image/jxr"],["jxra","image/jxra"],["jxrs","image/jxrs"],["jxs","image/jxs"],["jxsc","image/jxsc"],["jxsi","image/jxsi"],["jxss","image/jxss"],["kar","audio/midi"],["karbon","application/vnd.kde.karbon"],["kdb","application/octet-stream"],["kdbx","application/x-keepass2"],["key","application/x-iwork-keynote-sffkey"],["kfo","application/vnd.kde.kformula"],["kia","application/vnd.kidspiration"],["kml","application/vnd.google-earth.kml+xml"],["kmz","application/vnd.google-earth.kmz"],["kne","application/vnd.kinar"],["knp","application/vnd.kinar"],["kon","application/vnd.kde.kontour"],["kpr","application/vnd.kde.kpresenter"],["kpt","application/vnd.kde.kpresenter"],["kpxx","application/vnd.ds-keypoint"],["ksp","application/vnd.kde.kspread"],["ktr","application/vnd.kahootz"],["ktx","image/ktx"],["ktx2","image/ktx2"],["ktz","application/vnd.kahootz"],["kwd","application/vnd.kde.kword"],["kwt","application/vnd.kde.kword"],["lasxml","application/vnd.las.las+xml"],["latex","application/x-latex"],["lbd","application/vnd.llamagraphics.life-balance.desktop"],["lbe","application/vnd.llamagraphics.life-balance.exchange+xml"],["les","application/vnd.hhe.lesson-player"],["less","text/less"],["lgr","application/lgr+xml"],["lha","application/octet-stream"],["link66","application/vnd.route66.link66+xml"],["list","text/plain"],["list3820","application/vnd.ibm.modcap"],["listafp","application/vnd.ibm.modcap"],["litcoffee","text/coffeescript"],["lnk","application/x-ms-shortcut"],["log","text/plain"],["lostxml","application/lost+xml"],["lrf","application/octet-stream"],["lrm","application/vnd.ms-lrm"],["ltf","application/vnd.frogans.ltf"],["lua","text/x-lua"],["luac","application/x-lua-bytecode"],["lvp","audio/vnd.lucent.voice"],["lwp","application/vnd.lotus-wordpro"],["lzh","application/octet-stream"],["m1v","video/mpeg"],["m2a","audio/mpeg"],["m2v","video/mpeg"],["m3a","audio/mpeg"],["m3u","text/plain"],["m3u8","application/vnd.apple.mpegurl"],["m4a","audio/x-m4a"],["m4p","application/mp4"],["m4s","video/iso.segment"],["m4u","application/vnd.mpegurl"],["m4v","video/x-m4v"],["m13","application/x-msmediaview"],["m14","application/x-msmediaview"],["m21","application/mp21"],["ma","application/mathematica"],["mads","application/mads+xml"],["maei","application/mmt-aei+xml"],["mag","application/vnd.ecowin.chart"],["maker","application/vnd.framemaker"],["man","text/troff"],["manifest","text/cache-manifest"],["map","application/json"],["mar","application/octet-stream"],["markdown","text/markdown"],["mathml","application/mathml+xml"],["mb","application/mathematica"],["mbk","application/vnd.mobius.mbk"],["mbox","application/mbox"],["mc1","application/vnd.medcalcdata"],["mcd","application/vnd.mcd"],["mcurl","text/vnd.curl.mcurl"],["md","text/markdown"],["mdb","application/x-msaccess"],["mdi","image/vnd.ms-modi"],["mdx","text/mdx"],["me","text/troff"],["mesh","model/mesh"],["meta4","application/metalink4+xml"],["metalink","application/metalink+xml"],["mets","application/mets+xml"],["mfm","application/vnd.mfmp"],["mft","application/rpki-manifest"],["mgp","application/vnd.osgeo.mapguide.package"],["mgz","application/vnd.proteus.magazine"],["mid","audio/midi"],["midi","audio/midi"],["mie","application/x-mie"],["mif","application/vnd.mif"],["mime","message/rfc822"],["mj2","video/mj2"],["mjp2","video/mj2"],["mjs","application/javascript"],["mk3d","video/x-matroska"],["mka","audio/x-matroska"],["mkd","text/x-markdown"],["mks","video/x-matroska"],["mkv","video/x-matroska"],["mlp","application/vnd.dolby.mlp"],["mmd","application/vnd.chipnuts.karaoke-mmd"],["mmf","application/vnd.smaf"],["mml","text/mathml"],["mmr","image/vnd.fujixerox.edmics-mmr"],["mng","video/x-mng"],["mny","application/x-msmoney"],["mobi","application/x-mobipocket-ebook"],["mods","application/mods+xml"],["mov","video/quicktime"],["movie","video/x-sgi-movie"],["mp2","audio/mpeg"],["mp2a","audio/mpeg"],["mp3","audio/mpeg"],["mp4","video/mp4"],["mp4a","audio/mp4"],["mp4s","application/mp4"],["mp4v","video/mp4"],["mp21","application/mp21"],["mpc","application/vnd.mophun.certificate"],["mpd","application/dash+xml"],["mpe","video/mpeg"],["mpeg","video/mpeg"],["mpg","video/mpeg"],["mpg4","video/mp4"],["mpga","audio/mpeg"],["mpkg","application/vnd.apple.installer+xml"],["mpm","application/vnd.blueice.multipass"],["mpn","application/vnd.mophun.application"],["mpp","application/vnd.ms-project"],["mpt","application/vnd.ms-project"],["mpy","application/vnd.ibm.minipay"],["mqy","application/vnd.mobius.mqy"],["mrc","application/marc"],["mrcx","application/marcxml+xml"],["ms","text/troff"],["mscml","application/mediaservercontrol+xml"],["mseed","application/vnd.fdsn.mseed"],["mseq","application/vnd.mseq"],["msf","application/vnd.epson.msf"],["msg","application/vnd.ms-outlook"],["msh","model/mesh"],["msi","application/x-msdownload"],["msl","application/vnd.mobius.msl"],["msm","application/octet-stream"],["msp","application/octet-stream"],["msty","application/vnd.muvee.style"],["mtl","model/mtl"],["mts","model/vnd.mts"],["mus","application/vnd.musician"],["musd","application/mmt-usd+xml"],["musicxml","application/vnd.recordare.musicxml+xml"],["mvb","application/x-msmediaview"],["mvt","application/vnd.mapbox-vector-tile"],["mwf","application/vnd.mfer"],["mxf","application/mxf"],["mxl","application/vnd.recordare.musicxml"],["mxmf","audio/mobile-xmf"],["mxml","application/xv+xml"],["mxs","application/vnd.triscape.mxs"],["mxu","video/vnd.mpegurl"],["n-gage","application/vnd.nokia.n-gage.symbian.install"],["n3","text/n3"],["nb","application/mathematica"],["nbp","application/vnd.wolfram.player"],["nc","application/x-netcdf"],["ncx","application/x-dtbncx+xml"],["nfo","text/x-nfo"],["ngdat","application/vnd.nokia.n-gage.data"],["nitf","application/vnd.nitf"],["nlu","application/vnd.neurolanguage.nlu"],["nml","application/vnd.enliven"],["nnd","application/vnd.noblenet-directory"],["nns","application/vnd.noblenet-sealer"],["nnw","application/vnd.noblenet-web"],["npx","image/vnd.net-fpx"],["nq","application/n-quads"],["nsc","application/x-conference"],["nsf","application/vnd.lotus-notes"],["nt","application/n-triples"],["ntf","application/vnd.nitf"],["numbers","application/x-iwork-numbers-sffnumbers"],["nzb","application/x-nzb"],["oa2","application/vnd.fujitsu.oasys2"],["oa3","application/vnd.fujitsu.oasys3"],["oas","application/vnd.fujitsu.oasys"],["obd","application/x-msbinder"],["obgx","application/vnd.openblox.game+xml"],["obj","model/obj"],["oda","application/oda"],["odb","application/vnd.oasis.opendocument.database"],["odc","application/vnd.oasis.opendocument.chart"],["odf","application/vnd.oasis.opendocument.formula"],["odft","application/vnd.oasis.opendocument.formula-template"],["odg","application/vnd.oasis.opendocument.graphics"],["odi","application/vnd.oasis.opendocument.image"],["odm","application/vnd.oasis.opendocument.text-master"],["odp","application/vnd.oasis.opendocument.presentation"],["ods","application/vnd.oasis.opendocument.spreadsheet"],["odt","application/vnd.oasis.opendocument.text"],["oga","audio/ogg"],["ogex","model/vnd.opengex"],["ogg","audio/ogg"],["ogv","video/ogg"],["ogx","application/ogg"],["omdoc","application/omdoc+xml"],["onepkg","application/onenote"],["onetmp","application/onenote"],["onetoc","application/onenote"],["onetoc2","application/onenote"],["opf","application/oebps-package+xml"],["opml","text/x-opml"],["oprc","application/vnd.palm"],["opus","audio/ogg"],["org","text/x-org"],["osf","application/vnd.yamaha.openscoreformat"],["osfpvg","application/vnd.yamaha.openscoreformat.osfpvg+xml"],["osm","application/vnd.openstreetmap.data+xml"],["otc","application/vnd.oasis.opendocument.chart-template"],["otf","font/otf"],["otg","application/vnd.oasis.opendocument.graphics-template"],["oth","application/vnd.oasis.opendocument.text-web"],["oti","application/vnd.oasis.opendocument.image-template"],["otp","application/vnd.oasis.opendocument.presentation-template"],["ots","application/vnd.oasis.opendocument.spreadsheet-template"],["ott","application/vnd.oasis.opendocument.text-template"],["ova","application/x-virtualbox-ova"],["ovf","application/x-virtualbox-ovf"],["owl","application/rdf+xml"],["oxps","application/oxps"],["oxt","application/vnd.openofficeorg.extension"],["p","text/x-pascal"],["p7a","application/x-pkcs7-signature"],["p7b","application/x-pkcs7-certificates"],["p7c","application/pkcs7-mime"],["p7m","application/pkcs7-mime"],["p7r","application/x-pkcs7-certreqresp"],["p7s","application/pkcs7-signature"],["p8","application/pkcs8"],["p10","application/x-pkcs10"],["p12","application/x-pkcs12"],["pac","application/x-ns-proxy-autoconfig"],["pages","application/x-iwork-pages-sffpages"],["pas","text/x-pascal"],["paw","application/vnd.pawaafile"],["pbd","application/vnd.powerbuilder6"],["pbm","image/x-portable-bitmap"],["pcap","application/vnd.tcpdump.pcap"],["pcf","application/x-font-pcf"],["pcl","application/vnd.hp-pcl"],["pclxl","application/vnd.hp-pclxl"],["pct","image/x-pict"],["pcurl","application/vnd.curl.pcurl"],["pcx","image/x-pcx"],["pdb","application/x-pilot"],["pde","text/x-processing"],["pdf","application/pdf"],["pem","application/x-x509-user-cert"],["pfa","application/x-font-type1"],["pfb","application/x-font-type1"],["pfm","application/x-font-type1"],["pfr","application/font-tdpfr"],["pfx","application/x-pkcs12"],["pgm","image/x-portable-graymap"],["pgn","application/x-chess-pgn"],["pgp","application/pgp"],["php","application/x-httpd-php"],["php3","application/x-httpd-php"],["php4","application/x-httpd-php"],["phps","application/x-httpd-php-source"],["phtml","application/x-httpd-php"],["pic","image/x-pict"],["pkg","application/octet-stream"],["pki","application/pkixcmp"],["pkipath","application/pkix-pkipath"],["pkpass","application/vnd.apple.pkpass"],["pl","application/x-perl"],["plb","application/vnd.3gpp.pic-bw-large"],["plc","application/vnd.mobius.plc"],["plf","application/vnd.pocketlearn"],["pls","application/pls+xml"],["pm","application/x-perl"],["pml","application/vnd.ctc-posml"],["png","image/png"],["pnm","image/x-portable-anymap"],["portpkg","application/vnd.macports.portpkg"],["pot","application/vnd.ms-powerpoint"],["potm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["potx","application/vnd.openxmlformats-officedocument.presentationml.template"],["ppa","application/vnd.ms-powerpoint"],["ppam","application/vnd.ms-powerpoint.addin.macroEnabled.12"],["ppd","application/vnd.cups-ppd"],["ppm","image/x-portable-pixmap"],["pps","application/vnd.ms-powerpoint"],["ppsm","application/vnd.ms-powerpoint.slideshow.macroEnabled.12"],["ppsx","application/vnd.openxmlformats-officedocument.presentationml.slideshow"],["ppt","application/powerpoint"],["pptm","application/vnd.ms-powerpoint.presentation.macroEnabled.12"],["pptx","application/vnd.openxmlformats-officedocument.presentationml.presentation"],["pqa","application/vnd.palm"],["prc","application/x-pilot"],["pre","application/vnd.lotus-freelance"],["prf","application/pics-rules"],["provx","application/provenance+xml"],["ps","application/postscript"],["psb","application/vnd.3gpp.pic-bw-small"],["psd","application/x-photoshop"],["psf","application/x-font-linux-psf"],["pskcxml","application/pskc+xml"],["pti","image/prs.pti"],["ptid","application/vnd.pvi.ptid1"],["pub","application/x-mspublisher"],["pvb","application/vnd.3gpp.pic-bw-var"],["pwn","application/vnd.3m.post-it-notes"],["pya","audio/vnd.ms-playready.media.pya"],["pyv","video/vnd.ms-playready.media.pyv"],["qam","application/vnd.epson.quickanime"],["qbo","application/vnd.intu.qbo"],["qfx","application/vnd.intu.qfx"],["qps","application/vnd.publishare-delta-tree"],["qt","video/quicktime"],["qwd","application/vnd.quark.quarkxpress"],["qwt","application/vnd.quark.quarkxpress"],["qxb","application/vnd.quark.quarkxpress"],["qxd","application/vnd.quark.quarkxpress"],["qxl","application/vnd.quark.quarkxpress"],["qxt","application/vnd.quark.quarkxpress"],["ra","audio/x-realaudio"],["ram","audio/x-pn-realaudio"],["raml","application/raml+yaml"],["rapd","application/route-apd+xml"],["rar","application/x-rar"],["ras","image/x-cmu-raster"],["rcprofile","application/vnd.ipunplugged.rcprofile"],["rdf","application/rdf+xml"],["rdz","application/vnd.data-vision.rdz"],["relo","application/p2p-overlay+xml"],["rep","application/vnd.businessobjects"],["res","application/x-dtbresource+xml"],["rgb","image/x-rgb"],["rif","application/reginfo+xml"],["rip","audio/vnd.rip"],["ris","application/x-research-info-systems"],["rl","application/resource-lists+xml"],["rlc","image/vnd.fujixerox.edmics-rlc"],["rld","application/resource-lists-diff+xml"],["rm","audio/x-pn-realaudio"],["rmi","audio/midi"],["rmp","audio/x-pn-realaudio-plugin"],["rms","application/vnd.jcp.javame.midlet-rms"],["rmvb","application/vnd.rn-realmedia-vbr"],["rnc","application/relax-ng-compact-syntax"],["rng","application/xml"],["roa","application/rpki-roa"],["roff","text/troff"],["rp9","application/vnd.cloanto.rp9"],["rpm","audio/x-pn-realaudio-plugin"],["rpss","application/vnd.nokia.radio-presets"],["rpst","application/vnd.nokia.radio-preset"],["rq","application/sparql-query"],["rs","application/rls-services+xml"],["rsa","application/x-pkcs7"],["rsat","application/atsc-rsat+xml"],["rsd","application/rsd+xml"],["rsheet","application/urc-ressheet+xml"],["rss","application/rss+xml"],["rtf","text/rtf"],["rtx","text/richtext"],["run","application/x-makeself"],["rusd","application/route-usd+xml"],["rv","video/vnd.rn-realvideo"],["s","text/x-asm"],["s3m","audio/s3m"],["saf","application/vnd.yamaha.smaf-audio"],["sass","text/x-sass"],["sbml","application/sbml+xml"],["sc","application/vnd.ibm.secure-container"],["scd","application/x-msschedule"],["scm","application/vnd.lotus-screencam"],["scq","application/scvp-cv-request"],["scs","application/scvp-cv-response"],["scss","text/x-scss"],["scurl","text/vnd.curl.scurl"],["sda","application/vnd.stardivision.draw"],["sdc","application/vnd.stardivision.calc"],["sdd","application/vnd.stardivision.impress"],["sdkd","application/vnd.solent.sdkm+xml"],["sdkm","application/vnd.solent.sdkm+xml"],["sdp","application/sdp"],["sdw","application/vnd.stardivision.writer"],["sea","application/octet-stream"],["see","application/vnd.seemail"],["seed","application/vnd.fdsn.seed"],["sema","application/vnd.sema"],["semd","application/vnd.semd"],["semf","application/vnd.semf"],["senmlx","application/senml+xml"],["sensmlx","application/sensml+xml"],["ser","application/java-serialized-object"],["setpay","application/set-payment-initiation"],["setreg","application/set-registration-initiation"],["sfd-hdstx","application/vnd.hydrostatix.sof-data"],["sfs","application/vnd.spotfire.sfs"],["sfv","text/x-sfv"],["sgi","image/sgi"],["sgl","application/vnd.stardivision.writer-global"],["sgm","text/sgml"],["sgml","text/sgml"],["sh","application/x-sh"],["shar","application/x-shar"],["shex","text/shex"],["shf","application/shf+xml"],["shtml","text/html"],["sid","image/x-mrsid-image"],["sieve","application/sieve"],["sig","application/pgp-signature"],["sil","audio/silk"],["silo","model/mesh"],["sis","application/vnd.symbian.install"],["sisx","application/vnd.symbian.install"],["sit","application/x-stuffit"],["sitx","application/x-stuffitx"],["siv","application/sieve"],["skd","application/vnd.koan"],["skm","application/vnd.koan"],["skp","application/vnd.koan"],["skt","application/vnd.koan"],["sldm","application/vnd.ms-powerpoint.slide.macroenabled.12"],["sldx","application/vnd.openxmlformats-officedocument.presentationml.slide"],["slim","text/slim"],["slm","text/slim"],["sls","application/route-s-tsid+xml"],["slt","application/vnd.epson.salt"],["sm","application/vnd.stepmania.stepchart"],["smf","application/vnd.stardivision.math"],["smi","application/smil"],["smil","application/smil"],["smv","video/x-smv"],["smzip","application/vnd.stepmania.package"],["snd","audio/basic"],["snf","application/x-font-snf"],["so","application/octet-stream"],["spc","application/x-pkcs7-certificates"],["spdx","text/spdx"],["spf","application/vnd.yamaha.smaf-phrase"],["spl","application/x-futuresplash"],["spot","text/vnd.in3d.spot"],["spp","application/scvp-vp-response"],["spq","application/scvp-vp-request"],["spx","audio/ogg"],["sql","application/x-sql"],["src","application/x-wais-source"],["srt","application/x-subrip"],["sru","application/sru+xml"],["srx","application/sparql-results+xml"],["ssdl","application/ssdl+xml"],["sse","application/vnd.kodak-descriptor"],["ssf","application/vnd.epson.ssf"],["ssml","application/ssml+xml"],["sst","application/octet-stream"],["st","application/vnd.sailingtracker.track"],["stc","application/vnd.sun.xml.calc.template"],["std","application/vnd.sun.xml.draw.template"],["stf","application/vnd.wt.stf"],["sti","application/vnd.sun.xml.impress.template"],["stk","application/hyperstudio"],["stl","model/stl"],["stpx","model/step+xml"],["stpxz","model/step-xml+zip"],["stpz","model/step+zip"],["str","application/vnd.pg.format"],["stw","application/vnd.sun.xml.writer.template"],["styl","text/stylus"],["stylus","text/stylus"],["sub","text/vnd.dvb.subtitle"],["sus","application/vnd.sus-calendar"],["susp","application/vnd.sus-calendar"],["sv4cpio","application/x-sv4cpio"],["sv4crc","application/x-sv4crc"],["svc","application/vnd.dvb.service"],["svd","application/vnd.svd"],["svg","image/svg+xml"],["svgz","image/svg+xml"],["swa","application/x-director"],["swf","application/x-shockwave-flash"],["swi","application/vnd.aristanetworks.swi"],["swidtag","application/swid+xml"],["sxc","application/vnd.sun.xml.calc"],["sxd","application/vnd.sun.xml.draw"],["sxg","application/vnd.sun.xml.writer.global"],["sxi","application/vnd.sun.xml.impress"],["sxm","application/vnd.sun.xml.math"],["sxw","application/vnd.sun.xml.writer"],["t","text/troff"],["t3","application/x-t3vm-image"],["t38","image/t38"],["taglet","application/vnd.mynfc"],["tao","application/vnd.tao.intent-module-archive"],["tap","image/vnd.tencent.tap"],["tar","application/x-tar"],["tcap","application/vnd.3gpp2.tcap"],["tcl","application/x-tcl"],["td","application/urc-targetdesc+xml"],["teacher","application/vnd.smart.teacher"],["tei","application/tei+xml"],["teicorpus","application/tei+xml"],["tex","application/x-tex"],["texi","application/x-texinfo"],["texinfo","application/x-texinfo"],["text","text/plain"],["tfi","application/thraud+xml"],["tfm","application/x-tex-tfm"],["tfx","image/tiff-fx"],["tga","image/x-tga"],["tgz","application/x-tar"],["thmx","application/vnd.ms-officetheme"],["tif","image/tiff"],["tiff","image/tiff"],["tk","application/x-tcl"],["tmo","application/vnd.tmobile-livetv"],["toml","application/toml"],["torrent","application/x-bittorrent"],["tpl","application/vnd.groove-tool-template"],["tpt","application/vnd.trid.tpt"],["tr","text/troff"],["tra","application/vnd.trueapp"],["trig","application/trig"],["trm","application/x-msterminal"],["ts","video/mp2t"],["tsd","application/timestamped-data"],["tsv","text/tab-separated-values"],["ttc","font/collection"],["ttf","font/ttf"],["ttl","text/turtle"],["ttml","application/ttml+xml"],["twd","application/vnd.simtech-mindmapper"],["twds","application/vnd.simtech-mindmapper"],["txd","application/vnd.genomatix.tuxedo"],["txf","application/vnd.mobius.txf"],["txt","text/plain"],["u8dsn","message/global-delivery-status"],["u8hdr","message/global-headers"],["u8mdn","message/global-disposition-notification"],["u8msg","message/global"],["u32","application/x-authorware-bin"],["ubj","application/ubjson"],["udeb","application/x-debian-package"],["ufd","application/vnd.ufdl"],["ufdl","application/vnd.ufdl"],["ulx","application/x-glulx"],["umj","application/vnd.umajin"],["unityweb","application/vnd.unity"],["uoml","application/vnd.uoml+xml"],["uri","text/uri-list"],["uris","text/uri-list"],["urls","text/uri-list"],["usdz","model/vnd.usdz+zip"],["ustar","application/x-ustar"],["utz","application/vnd.uiq.theme"],["uu","text/x-uuencode"],["uva","audio/vnd.dece.audio"],["uvd","application/vnd.dece.data"],["uvf","application/vnd.dece.data"],["uvg","image/vnd.dece.graphic"],["uvh","video/vnd.dece.hd"],["uvi","image/vnd.dece.graphic"],["uvm","video/vnd.dece.mobile"],["uvp","video/vnd.dece.pd"],["uvs","video/vnd.dece.sd"],["uvt","application/vnd.dece.ttml+xml"],["uvu","video/vnd.uvvu.mp4"],["uvv","video/vnd.dece.video"],["uvva","audio/vnd.dece.audio"],["uvvd","application/vnd.dece.data"],["uvvf","application/vnd.dece.data"],["uvvg","image/vnd.dece.graphic"],["uvvh","video/vnd.dece.hd"],["uvvi","image/vnd.dece.graphic"],["uvvm","video/vnd.dece.mobile"],["uvvp","video/vnd.dece.pd"],["uvvs","video/vnd.dece.sd"],["uvvt","application/vnd.dece.ttml+xml"],["uvvu","video/vnd.uvvu.mp4"],["uvvv","video/vnd.dece.video"],["uvvx","application/vnd.dece.unspecified"],["uvvz","application/vnd.dece.zip"],["uvx","application/vnd.dece.unspecified"],["uvz","application/vnd.dece.zip"],["vbox","application/x-virtualbox-vbox"],["vbox-extpack","application/x-virtualbox-vbox-extpack"],["vcard","text/vcard"],["vcd","application/x-cdlink"],["vcf","text/x-vcard"],["vcg","application/vnd.groove-vcard"],["vcs","text/x-vcalendar"],["vcx","application/vnd.vcx"],["vdi","application/x-virtualbox-vdi"],["vds","model/vnd.sap.vds"],["vhd","application/x-virtualbox-vhd"],["vis","application/vnd.visionary"],["viv","video/vnd.vivo"],["vlc","application/videolan"],["vmdk","application/x-virtualbox-vmdk"],["vob","video/x-ms-vob"],["vor","application/vnd.stardivision.writer"],["vox","application/x-authorware-bin"],["vrml","model/vrml"],["vsd","application/vnd.visio"],["vsf","application/vnd.vsf"],["vss","application/vnd.visio"],["vst","application/vnd.visio"],["vsw","application/vnd.visio"],["vtf","image/vnd.valve.source.texture"],["vtt","text/vtt"],["vtu","model/vnd.vtu"],["vxml","application/voicexml+xml"],["w3d","application/x-director"],["wad","application/x-doom"],["wadl","application/vnd.sun.wadl+xml"],["war","application/java-archive"],["wasm","application/wasm"],["wav","audio/x-wav"],["wax","audio/x-ms-wax"],["wbmp","image/vnd.wap.wbmp"],["wbs","application/vnd.criticaltools.wbs+xml"],["wbxml","application/wbxml"],["wcm","application/vnd.ms-works"],["wdb","application/vnd.ms-works"],["wdp","image/vnd.ms-photo"],["weba","audio/webm"],["webapp","application/x-web-app-manifest+json"],["webm","video/webm"],["webmanifest","application/manifest+json"],["webp","image/webp"],["wg","application/vnd.pmi.widget"],["wgt","application/widget"],["wks","application/vnd.ms-works"],["wm","video/x-ms-wm"],["wma","audio/x-ms-wma"],["wmd","application/x-ms-wmd"],["wmf","image/wmf"],["wml","text/vnd.wap.wml"],["wmlc","application/wmlc"],["wmls","text/vnd.wap.wmlscript"],["wmlsc","application/vnd.wap.wmlscriptc"],["wmv","video/x-ms-wmv"],["wmx","video/x-ms-wmx"],["wmz","application/x-msmetafile"],["woff","font/woff"],["woff2","font/woff2"],["word","application/msword"],["wpd","application/vnd.wordperfect"],["wpl","application/vnd.ms-wpl"],["wps","application/vnd.ms-works"],["wqd","application/vnd.wqd"],["wri","application/x-mswrite"],["wrl","model/vrml"],["wsc","message/vnd.wfa.wsc"],["wsdl","application/wsdl+xml"],["wspolicy","application/wspolicy+xml"],["wtb","application/vnd.webturbo"],["wvx","video/x-ms-wvx"],["x3d","model/x3d+xml"],["x3db","model/x3d+fastinfoset"],["x3dbz","model/x3d+binary"],["x3dv","model/x3d-vrml"],["x3dvz","model/x3d+vrml"],["x3dz","model/x3d+xml"],["x32","application/x-authorware-bin"],["x_b","model/vnd.parasolid.transmit.binary"],["x_t","model/vnd.parasolid.transmit.text"],["xaml","application/xaml+xml"],["xap","application/x-silverlight-app"],["xar","application/vnd.xara"],["xav","application/xcap-att+xml"],["xbap","application/x-ms-xbap"],["xbd","application/vnd.fujixerox.docuworks.binder"],["xbm","image/x-xbitmap"],["xca","application/xcap-caps+xml"],["xcs","application/calendar+xml"],["xdf","application/xcap-diff+xml"],["xdm","application/vnd.syncml.dm+xml"],["xdp","application/vnd.adobe.xdp+xml"],["xdssc","application/dssc+xml"],["xdw","application/vnd.fujixerox.docuworks"],["xel","application/xcap-el+xml"],["xenc","application/xenc+xml"],["xer","application/patch-ops-error+xml"],["xfdf","application/vnd.adobe.xfdf"],["xfdl","application/vnd.xfdl"],["xht","application/xhtml+xml"],["xhtml","application/xhtml+xml"],["xhvml","application/xv+xml"],["xif","image/vnd.xiff"],["xl","application/excel"],["xla","application/vnd.ms-excel"],["xlam","application/vnd.ms-excel.addin.macroEnabled.12"],["xlc","application/vnd.ms-excel"],["xlf","application/xliff+xml"],["xlm","application/vnd.ms-excel"],["xls","application/vnd.ms-excel"],["xlsb","application/vnd.ms-excel.sheet.binary.macroEnabled.12"],["xlsm","application/vnd.ms-excel.sheet.macroEnabled.12"],["xlsx","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"],["xlt","application/vnd.ms-excel"],["xltm","application/vnd.ms-excel.template.macroEnabled.12"],["xltx","application/vnd.openxmlformats-officedocument.spreadsheetml.template"],["xlw","application/vnd.ms-excel"],["xm","audio/xm"],["xml","application/xml"],["xns","application/xcap-ns+xml"],["xo","application/vnd.olpc-sugar"],["xop","application/xop+xml"],["xpi","application/x-xpinstall"],["xpl","application/xproc+xml"],["xpm","image/x-xpixmap"],["xpr","application/vnd.is-xpr"],["xps","application/vnd.ms-xpsdocument"],["xpw","application/vnd.intercon.formnet"],["xpx","application/vnd.intercon.formnet"],["xsd","application/xml"],["xsl","application/xml"],["xslt","application/xslt+xml"],["xsm","application/vnd.syncml+xml"],["xspf","application/xspf+xml"],["xul","application/vnd.mozilla.xul+xml"],["xvm","application/xv+xml"],["xvml","application/xv+xml"],["xwd","image/x-xwindowdump"],["xyz","chemical/x-xyz"],["xz","application/x-xz"],["yaml","text/yaml"],["yang","application/yang"],["yin","application/yin+xml"],["yml","text/yaml"],["ymp","text/x-suse-ymp"],["z","application/x-compress"],["z1","application/x-zmachine"],["z2","application/x-zmachine"],["z3","application/x-zmachine"],["z4","application/x-zmachine"],["z5","application/x-zmachine"],["z6","application/x-zmachine"],["z7","application/x-zmachine"],["z8","application/x-zmachine"],["zaz","application/vnd.zzazz.deck+xml"],["zip","application/zip"],["zir","application/vnd.zul"],["zirz","application/vnd.zul"],["zmm","application/vnd.handheld-entertainment+xml"],["zsh","text/x-scriptzsh"]]);function hs(e,t,a){const r=eB(e),{webkitRelativePath:o}=e,c=typeof t=="string"?t:typeof o=="string"&&o.length>0?o:`./${e.name}`;return typeof r.path!="string"&&yv(r,"path",c),yv(r,"relativePath",c),r}function eB(e){const{name:t}=e;if(t&&t.lastIndexOf(".")!==-1&&!e.type){const r=t.split(".").pop().toLowerCase(),o=JL.get(r);o&&Object.defineProperty(e,"type",{value:o,writable:!1,configurable:!1,enumerable:!0})}return e}function yv(e,t,a){Object.defineProperty(e,t,{value:a,writable:!1,configurable:!1,enumerable:!0})}const tB=[".DS_Store","Thumbs.db"];function nB(e){return fr(this,void 0,void 0,function*(){return ku(e)&&aB(e.dataTransfer)?oB(e.dataTransfer,e.type):iB(e)?rB(e):Array.isArray(e)&&e.every(t=>"getFile"in t&&typeof t.getFile=="function")?sB(e):[]})}function aB(e){return ku(e)}function iB(e){return ku(e)&&ku(e.target)}function ku(e){return typeof e=="object"&&e!==null}function rB(e){return Dp(e.target.files).map(t=>hs(t))}function sB(e){return fr(this,void 0,void 0,function*(){return(yield Promise.all(e.map(a=>a.getFile()))).map(a=>hs(a))})}function oB(e,t){return fr(this,void 0,void 0,function*(){if(e.items){const a=Dp(e.items).filter(o=>o.kind==="file");if(t!=="drop")return a;const r=yield Promise.all(a.map(lB));return xv(H4(r))}return xv(Dp(e.files).map(a=>hs(a)))})}function xv(e){return e.filter(t=>tB.indexOf(t.name)===-1)}function Dp(e){if(e===null)return[];const t=[];for(let a=0;a<e.length;a++){const r=e[a];t.push(r)}return t}function lB(e){if(typeof e.webkitGetAsEntry!="function")return bv(e);const t=e.webkitGetAsEntry();return t&&t.isDirectory?q4(t):bv(e,t)}function H4(e){return e.reduce((t,a)=>[...t,...Array.isArray(a)?H4(a):[a]],[])}function bv(e,t){return fr(this,void 0,void 0,function*(){var a;if(globalThis.isSecureContext&&typeof e.getAsFileSystemHandle=="function"){const c=yield e.getAsFileSystemHandle();if(c===null)throw new Error(`${e} is not a File`);if(c!==void 0){const u=yield c.getFile();return u.handle=c,hs(u)}}const r=e.getAsFile();if(!r)throw new Error(`${e} is not a File`);return hs(r,(a=t==null?void 0:t.fullPath)!==null&&a!==void 0?a:void 0)})}function cB(e){return fr(this,void 0,void 0,function*(){return e.isDirectory?q4(e):uB(e)})}function q4(e){const t=e.createReader();return new Promise((a,r)=>{const o=[];function c(){t.readEntries(u=>fr(this,void 0,void 0,function*(){if(u.length){const m=Promise.all(u.map(cB));o.push(m),c()}else try{const m=yield Promise.all(o);a(m)}catch(m){r(m)}}),u=>{r(u)})}c()})}function uB(e){return fr(this,void 0,void 0,function*(){return new Promise((t,a)=>{e.file(r=>{const o=hs(r,e.fullPath);t(o)},r=>{a(r)})})})}var Vc={},vv;function dB(){return vv||(vv=1,Vc.__esModule=!0,Vc.default=function(e,t){if(e&&t){var a=Array.isArray(t)?t:t.split(",");if(a.length===0)return!0;var r=e.name||"",o=(e.type||"").toLowerCase(),c=o.replace(/\/.*$/,"");return a.some(function(u){var m=u.trim().toLowerCase();return m.charAt(0)==="."?r.toLowerCase().endsWith(m):m.endsWith("/*")?c===m.replace(/\/.*$/,""):o===m})}return!0}),Vc}var fB=dB();const Hm=gs(fB);function wv(e){return hB(e)||pB(e)||$4(e)||mB()}function mB(){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 pB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hB(e){if(Array.isArray(e))return Op(e)}function kv(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,r)}return a}function Sv(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?kv(Object(a),!0).forEach(function(r){F4(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):kv(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function F4(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function el(e,t){return xB(e)||yB(e,t)||$4(e,t)||gB()}function gB(){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 $4(e,t){if(e){if(typeof e=="string")return Op(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return Op(e,t)}}function Op(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function yB(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r=[],o=!0,c=!1,u,m;try{for(a=a.call(e);!(o=(u=a.next()).done)&&(r.push(u.value),!(t&&r.length===t));o=!0);}catch(p){c=!0,m=p}finally{try{!o&&a.return!=null&&a.return()}finally{if(c)throw m}}return r}}function xB(e){if(Array.isArray(e))return e}var bB=typeof Hm=="function"?Hm:Hm.default,vB="file-invalid-type",wB="file-too-large",kB="file-too-small",SB="too-many-files",CB=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",a=t.split(","),r=a.length>1?"one of ".concat(a.join(", ")):a[0];return{code:vB,message:"File type must be ".concat(r)}},Cv=function(t){return{code:wB,message:"File is larger than ".concat(t," ").concat(t===1?"byte":"bytes")}},jv=function(t){return{code:kB,message:"File is smaller than ".concat(t," ").concat(t===1?"byte":"bytes")}},jB={code:SB,message:"Too many files"};function Y4(e,t){var a=e.type==="application/x-moz-file"||bB(e,t);return[a,a?null:CB(t)]}function G4(e,t,a){if(Qi(e.size))if(Qi(t)&&Qi(a)){if(e.size>a)return[!1,Cv(a)];if(e.size<t)return[!1,jv(t)]}else{if(Qi(t)&&e.size<t)return[!1,jv(t)];if(Qi(a)&&e.size>a)return[!1,Cv(a)]}return[!0,null]}function Qi(e){return e!=null}function EB(e){var t=e.files,a=e.accept,r=e.minSize,o=e.maxSize,c=e.multiple,u=e.maxFiles,m=e.validator;return!c&&t.length>1||c&&u>=1&&t.length>u?!1:t.every(function(p){var g=Y4(p,a),y=el(g,1),b=y[0],v=G4(p,r,o),T=el(v,1),S=T[0],C=m?m(p):null;return b&&S&&!C})}function Su(e){return typeof e.isPropagationStopped=="function"?e.isPropagationStopped():typeof e.cancelBubble<"u"?e.cancelBubble:!1}function Uc(e){return e.dataTransfer?Array.prototype.some.call(e.dataTransfer.types,function(t){return t==="Files"||t==="application/x-moz-file"}):!!e.target&&!!e.target.files}function Ev(e){e.preventDefault()}function TB(e){return e.indexOf("MSIE")!==-1||e.indexOf("Trident/")!==-1}function AB(e){return e.indexOf("Edge/")!==-1}function NB(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.navigator.userAgent;return TB(e)||AB(e)}function na(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return function(r){for(var o=arguments.length,c=new Array(o>1?o-1:0),u=1;u<o;u++)c[u-1]=arguments[u];return t.some(function(m){return!Su(r)&&m&&m.apply(void 0,[r].concat(c)),Su(r)})}}function MB(){return"showOpenFilePicker"in window}function RB(e){if(Qi(e)){var t=Object.entries(e).filter(function(a){var r=el(a,2),o=r[0],c=r[1],u=!0;return I4(o)||(console.warn('Skipped "'.concat(o,'" because it is not a valid MIME type. Check https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Common_types for a list of valid MIME types.')),u=!1),(!Array.isArray(c)||!c.every(Z4))&&(console.warn('Skipped "'.concat(o,'" because an invalid file extension was provided.')),u=!1),u}).reduce(function(a,r){var o=el(r,2),c=o[0],u=o[1];return Sv(Sv({},a),{},F4({},c,u))},{});return[{description:"Files",accept:t}]}return e}function DB(e){if(Qi(e))return Object.entries(e).reduce(function(t,a){var r=el(a,2),o=r[0],c=r[1];return[].concat(wv(t),[o],wv(c))},[]).filter(function(t){return I4(t)||Z4(t)}).join(",")}function OB(e){return e instanceof DOMException&&(e.name==="AbortError"||e.code===e.ABORT_ERR)}function _B(e){return e instanceof DOMException&&(e.name==="SecurityError"||e.code===e.SECURITY_ERR)}function I4(e){return e==="audio/*"||e==="video/*"||e==="image/*"||e==="text/*"||e==="application/*"||/\w+\/[-+.\w]+/g.test(e)}function Z4(e){return/^.*\.[\w]+$/.test(e)}var LB=["children"],BB=["open"],zB=["refKey","role","onKeyDown","onFocus","onBlur","onClick","onDragEnter","onDragOver","onDragLeave","onDrop"],PB=["refKey","onChange","onClick"];function VB(e){return qB(e)||HB(e)||K4(e)||UB()}function UB(){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 HB(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qB(e){if(Array.isArray(e))return _p(e)}function qm(e,t){return YB(e)||$B(e,t)||K4(e,t)||FB()}function FB(){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 K4(e,t){if(e){if(typeof e=="string")return _p(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return _p(e,t)}}function _p(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=new Array(t);a<t;a++)r[a]=e[a];return r}function $B(e,t){var a=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(a!=null){var r=[],o=!0,c=!1,u,m;try{for(a=a.call(e);!(o=(u=a.next()).done)&&(r.push(u.value),!(t&&r.length===t));o=!0);}catch(p){c=!0,m=p}finally{try{!o&&a.return!=null&&a.return()}finally{if(c)throw m}}return r}}function YB(e){if(Array.isArray(e))return e}function Tv(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,r)}return a}function rt(e){for(var t=1;t<arguments.length;t++){var a=arguments[t]!=null?arguments[t]:{};t%2?Tv(Object(a),!0).forEach(function(r){Lp(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Tv(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function Lp(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function Cu(e,t){if(e==null)return{};var a=GB(e,t),r,o;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(o=0;o<c.length;o++)r=c[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function GB(e,t){if(e==null)return{};var a={},r=Object.keys(e),o,c;for(c=0;c<r.length;c++)o=r[c],!(t.indexOf(o)>=0)&&(a[o]=e[o]);return a}var Xh=w.forwardRef(function(e,t){var a=e.children,r=Cu(e,LB),o=W4(r),c=o.open,u=Cu(o,BB);return w.useImperativeHandle(t,function(){return{open:c}},[c]),la.createElement(w.Fragment,null,a(rt(rt({},u),{},{open:c})))});Xh.displayName="Dropzone";var X4={disabled:!1,getFilesFromEvent:nB,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};Xh.defaultProps=X4;Xh.propTypes={children:Xe.func,accept:Xe.objectOf(Xe.arrayOf(Xe.string)),multiple:Xe.bool,preventDropOnDocument:Xe.bool,noClick:Xe.bool,noKeyboard:Xe.bool,noDrag:Xe.bool,noDragEventsBubbling:Xe.bool,minSize:Xe.number,maxSize:Xe.number,maxFiles:Xe.number,disabled:Xe.bool,getFilesFromEvent:Xe.func,onFileDialogCancel:Xe.func,onFileDialogOpen:Xe.func,useFsAccessApi:Xe.bool,autoFocus:Xe.bool,onDragEnter:Xe.func,onDragLeave:Xe.func,onDragOver:Xe.func,onDrop:Xe.func,onDropAccepted:Xe.func,onDropRejected:Xe.func,onError:Xe.func,validator:Xe.func};var Bp={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function W4(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=rt(rt({},X4),e),a=t.accept,r=t.disabled,o=t.getFilesFromEvent,c=t.maxSize,u=t.minSize,m=t.multiple,p=t.maxFiles,g=t.onDragEnter,y=t.onDragLeave,b=t.onDragOver,v=t.onDrop,T=t.onDropAccepted,S=t.onDropRejected,C=t.onFileDialogCancel,E=t.onFileDialogOpen,O=t.useFsAccessApi,D=t.autoFocus,M=t.preventDropOnDocument,F=t.noClick,V=t.noKeyboard,te=t.noDrag,ie=t.noDragEventsBubbling,ae=t.onError,W=t.validator,se=w.useMemo(function(){return DB(a)},[a]),Ae=w.useMemo(function(){return RB(a)},[a]),je=w.useMemo(function(){return typeof E=="function"?E:Av},[E]),Ee=w.useMemo(function(){return typeof C=="function"?C:Av},[C]),re=w.useRef(null),pe=w.useRef(null),K=w.useReducer(IB,Bp),_=qm(K,2),R=_[0],Z=_[1],j=R.isFocused,N=R.isFileDialogActive,I=w.useRef(typeof window<"u"&&window.isSecureContext&&O&&MB()),ee=function(){!I.current&&N&&setTimeout(function(){if(pe.current){var ve=pe.current.files;ve.length||(Z({type:"closeDialog"}),Ee())}},300)};w.useEffect(function(){return window.addEventListener("focus",ee,!1),function(){window.removeEventListener("focus",ee,!1)}},[pe,N,Ee,I]);var Q=w.useRef([]),fe=function(ve){re.current&&re.current.contains(ve.target)||(ve.preventDefault(),Q.current=[])};w.useEffect(function(){return M&&(document.addEventListener("dragover",Ev,!1),document.addEventListener("drop",fe,!1)),function(){M&&(document.removeEventListener("dragover",Ev),document.removeEventListener("drop",fe))}},[re,M]),w.useEffect(function(){return!r&&D&&re.current&&re.current.focus(),function(){}},[re,D,r]);var de=w.useCallback(function(ne){ae?ae(ne):console.error(ne)},[ae]),ke=w.useCallback(function(ne){ne.preventDefault(),ne.persist(),he(ne),Q.current=[].concat(VB(Q.current),[ne.target]),Uc(ne)&&Promise.resolve(o(ne)).then(function(ve){if(!(Su(ne)&&!ie)){var nt=ve.length,dt=nt>0&&EB({files:ve,accept:se,minSize:u,maxSize:c,multiple:m,maxFiles:p,validator:W}),St=nt>0&&!dt;Z({isDragAccept:dt,isDragReject:St,isDragActive:!0,type:"setDraggedFiles"}),g&&g(ne)}}).catch(function(ve){return de(ve)})},[o,g,de,ie,se,u,c,m,p,W]),xe=w.useCallback(function(ne){ne.preventDefault(),ne.persist(),he(ne);var ve=Uc(ne);if(ve&&ne.dataTransfer)try{ne.dataTransfer.dropEffect="copy"}catch{}return ve&&b&&b(ne),!1},[b,ie]),Pe=w.useCallback(function(ne){ne.preventDefault(),ne.persist(),he(ne);var ve=Q.current.filter(function(dt){return re.current&&re.current.contains(dt)}),nt=ve.indexOf(ne.target);nt!==-1&&ve.splice(nt,1),Q.current=ve,!(ve.length>0)&&(Z({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),Uc(ne)&&y&&y(ne))},[re,y,ie]),He=w.useCallback(function(ne,ve){var nt=[],dt=[];ne.forEach(function(St){var Si=Y4(St,se),ga=qm(Si,2),Ms=ga[0],Rs=ga[1],ya=G4(St,u,c),Ct=qm(ya,2),Ds=Ct[0],xn=Ct[1],Dt=W?W(St):null;if(Ms&&Ds&&!Dt)nt.push(St);else{var Os=[Rs,xn];Dt&&(Os=Os.concat(Dt)),dt.push({file:St,errors:Os.filter(function(Fu){return Fu})})}}),(!m&&nt.length>1||m&&p>=1&&nt.length>p)&&(nt.forEach(function(St){dt.push({file:St,errors:[jB]})}),nt.splice(0)),Z({acceptedFiles:nt,fileRejections:dt,isDragReject:dt.length>0,type:"setFiles"}),v&&v(nt,dt,ve),dt.length>0&&S&&S(dt,ve),nt.length>0&&T&&T(nt,ve)},[Z,m,se,u,c,p,v,T,S,W]),kt=w.useCallback(function(ne){ne.preventDefault(),ne.persist(),he(ne),Q.current=[],Uc(ne)&&Promise.resolve(o(ne)).then(function(ve){Su(ne)&&!ie||He(ve,ne)}).catch(function(ve){return de(ve)}),Z({type:"reset"})},[o,He,de,ie]),Wt=w.useCallback(function(){if(I.current){Z({type:"openDialog"}),je();var ne={multiple:m,types:Ae};window.showOpenFilePicker(ne).then(function(ve){return o(ve)}).then(function(ve){He(ve,null),Z({type:"closeDialog"})}).catch(function(ve){OB(ve)?(Ee(ve),Z({type:"closeDialog"})):_B(ve)?(I.current=!1,pe.current?(pe.current.value=null,pe.current.click()):de(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):de(ve)});return}pe.current&&(Z({type:"openDialog"}),je(),pe.current.value=null,pe.current.click())},[Z,je,Ee,O,He,de,Ae,m]),sn=w.useCallback(function(ne){!re.current||!re.current.isEqualNode(ne.target)||(ne.key===" "||ne.key==="Enter"||ne.keyCode===32||ne.keyCode===13)&&(ne.preventDefault(),Wt())},[re,Wt]),ma=w.useCallback(function(){Z({type:"focus"})},[]),pa=w.useCallback(function(){Z({type:"blur"})},[]),zn=w.useCallback(function(){F||(NB()?setTimeout(Wt,0):Wt())},[F,Wt]),on=function(ve){return r?null:ve},Xn=function(ve){return V?null:on(ve)},q=function(ve){return te?null:on(ve)},he=function(ve){ie&&ve.stopPropagation()},Me=w.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=ne.refKey,nt=ve===void 0?"ref":ve,dt=ne.role,St=ne.onKeyDown,Si=ne.onFocus,ga=ne.onBlur,Ms=ne.onClick,Rs=ne.onDragEnter,ya=ne.onDragOver,Ct=ne.onDragLeave,Ds=ne.onDrop,xn=Cu(ne,zB);return rt(rt(Lp({onKeyDown:Xn(na(St,sn)),onFocus:Xn(na(Si,ma)),onBlur:Xn(na(ga,pa)),onClick:on(na(Ms,zn)),onDragEnter:q(na(Rs,ke)),onDragOver:q(na(ya,xe)),onDragLeave:q(na(Ct,Pe)),onDrop:q(na(Ds,kt)),role:typeof dt=="string"&&dt!==""?dt:"presentation"},nt,re),!r&&!V?{tabIndex:0}:{}),xn)}},[re,sn,ma,pa,zn,ke,xe,Pe,kt,V,te,r]),Rt=w.useCallback(function(ne){ne.stopPropagation()},[]),ha=w.useMemo(function(){return function(){var ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ve=ne.refKey,nt=ve===void 0?"ref":ve,dt=ne.onChange,St=ne.onClick,Si=Cu(ne,PB),ga=Lp({accept:se,multiple:m,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:on(na(dt,kt)),onClick:on(na(St,Rt)),tabIndex:-1},nt,pe);return rt(rt({},ga),Si)}},[pe,a,m,kt,r]);return rt(rt({},R),{},{isFocused:j&&!r,getRootProps:Me,getInputProps:ha,rootRef:re,inputRef:pe,open:on(Wt)})}function IB(e,t){switch(t.type){case"focus":return rt(rt({},e),{},{isFocused:!0});case"blur":return rt(rt({},e),{},{isFocused:!1});case"openDialog":return rt(rt({},Bp),{},{isFileDialogActive:!0});case"closeDialog":return rt(rt({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return rt(rt({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return rt(rt({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return rt({},Bp);default:return e}}function Av(){}const ZB=".pdf,.msg,.png,.jpg,.jpeg,.doc,.docx,.xls,.xlsx,.csv",Nv=e=>{if(!e)return"0 B";const t=["B","KB","MB","GB"],a=Math.min(Math.floor(Math.log(e)/Math.log(1024)),t.length-1);return`${(e/Math.pow(1024,a)).toFixed(a===0?0:1)} ${t[a]}`},Fm=e=>`${e.name}-${e.size}-${e.lastModified}`;function KB(){var K;const[e,t]=w.useState([]),[a,r]=w.useState(""),[o,c]=w.useState([]),[u,m]=w.useState(null),[p,g]=w.useState(!1),y=_=>["UPLOADED","PROCESSING","COMPLETED_WITH_REVIEW","FAILED"].includes(String(_||"").toUpperCase()),b=_=>Number(_.total_success||0)>0,v=_=>!!(_.is_renamed||String(_.rename_status||"").toUpperCase()==="RENAMED"),T=w.useMemo(()=>e.reduce((_,R)=>_+R.size,0),[e]),S=_=>{if(_==null||_==="")return"-";const R=Number(_);return Number.isFinite(R)?`${Math.round(R*100)}%`:String(_)},C=_=>{const R=String(_.rename_status||"").toUpperCase();return _.error_message?_.error_message:R==="TYPE_UNKNOWN"?"Jenis dokumen belum terdeteksi":R==="MASTER_NOT_FOUND"?"Karyawan tidak cocok dengan master data":R==="DUPLICATE_TARGET"?"Nama target sudah dipakai":R==="NEED_REVIEW"&&_.duplicate_reason?`Duplikat file: ${_.duplicate_reason}`:R==="NEED_REVIEW"?"Butuh review manual":""},E=_=>_.detected_employee_name||_.detected_nip||_.detected_division||"-",O=_=>_.batch_name||_.batch_code,D=async()=>{var R;const _=await Le.get("/api/uploads/batches");c(((R=_.data)==null?void 0:R.data)||[])},M=_=>{t(R=>R.filter((Z,j)=>j!==_))},F=_=>{const R=Array.from(_||[]);R.length&&t(Z=>{const j=new Set(Z.map(Fm)),N=R.filter(I=>{const ee=Fm(I);return j.has(ee)?!1:(j.add(ee),!0)});return[...Z,...N]})},{getRootProps:V,getInputProps:te,isDragActive:ie,open:ae}=W4({accept:{"application/pdf":[".pdf"],"application/vnd.ms-outlook":[".msg"],"application/msword":[".doc"],"application/vnd.openxmlformats-officedocument.wordprocessingml.document":[".docx"],"application/vnd.ms-excel":[".xls"],"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":[".xlsx"],"text/csv":[".csv"],"image/png":[".png"],"image/jpeg":[".jpg",".jpeg"]},multiple:!0,noClick:!0,onDrop:_=>F(_)}),W=async _=>{var Z;const R=await Le.get(`/api/uploads/batches/${_}`);m((Z=R.data)==null?void 0:Z.data)};w.useEffect(()=>{D()},[]);const se=async()=>{var R,Z,j;const _=new FormData;e.forEach(N=>_.append("files",N)),_.append("batch_name",a),g(!0);try{const N=await Le.post("/api/uploads/batches",_,{headers:{"Content-Type":"multipart/form-data"}});m((R=N.data)==null?void 0:R.data),t([]),r(""),await D(),be.fire("Berhasil","Batch upload dibuat","success")}catch(N){be.fire("Gagal",((j=(Z=N.response)==null?void 0:Z.data)==null?void 0:j.message)||"Upload gagal","error")}finally{g(!1)}},Ae=async _=>{var R,Z;g(!0);try{await Le.post(`/api/uploads/batches/${_}/process`),await W(_),await D(),be.fire("Selesai","Batch selesai diproses","success")}catch(j){be.fire("Gagal",((Z=(R=j.response)==null?void 0:R.data)==null?void 0:Z.message)||"Process gagal","error")}finally{g(!1)}},je=async _=>{var Z,j,N;if((await be.fire({title:"Hapus batch?",text:`${_.batch_code} dan semua file di dalamnya akan dihapus permanen.`,icon:"error",showCancelButton:!0,confirmButtonText:"Hapus permanen",confirmButtonColor:"#ef4444"})).isConfirmed)try{await Le.delete(`/api/uploads/batches/${_.id}`),((Z=u==null?void 0:u.batch)==null?void 0:Z.id)===_.id&&m(null),await D(),be.fire("Berhasil","Batch berhasil dihapus","success")}catch(I){be.fire("Gagal",((N=(j=I.response)==null?void 0:j.data)==null?void 0:N.message)||"Batch gagal dihapus","error")}},Ee=async _=>{var Z,j,N;if((await be.fire({title:"Hapus file?",text:`${_.original_filename} akan dihapus permanen dari database dan storage.`,icon:"error",showCancelButton:!0,confirmButtonText:"Hapus permanen",confirmButtonColor:"#ef4444"})).isConfirmed)try{await Le.delete(`/api/uploads/files/${_.id}`),(Z=u==null?void 0:u.batch)!=null&&Z.id&&await W(u.batch.id),await D(),be.fire("Berhasil","File berhasil dihapus","success")}catch(I){be.fire("Gagal",((N=(j=I.response)==null?void 0:j.data)==null?void 0:N.message)||"File gagal dihapus","error")}},re=async _=>{var R,Z;g(!0);try{await lp(`/api/uploads/batches/${_.id}/download`,`${_.batch_code||"batch"}_renamed.zip`)}catch(j){be.fire("Gagal",((Z=(R=j.response)==null?void 0:R.data)==null?void 0:Z.message)||"Download ZIP gagal","error")}finally{g(!1)}},pe=async _=>{var R,Z;g(!0);try{await lp(`/api/uploads/files/${_.id}/download`,_.target_filename||_.original_filename||"file")}catch(j){be.fire("Gagal",((Z=(R=j.response)==null?void 0:R.data)==null?void 0:Z.message)||"Download file gagal","error")}finally{g(!1)}};return f.jsxs(f.Fragment,{children:[f.jsx(fa,{title:"Upload Rename | File Renamer",description:"Upload PDF/MSG dan proses rename otomatis."}),f.jsx(dr,{pageTitle:"Upload & Rename"}),f.jsxs("div",{className:"space-y-6",children:[f.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-4 shadow-sm dark:border-gray-800 dark:bg-white/[0.03] sm:p-6",children:[f.jsxs("div",{className:"grid min-w-0 grid-cols-1 gap-4 xl:grid-cols-[minmax(240px,340px)_minmax(0,1fr)] 2xl:grid-cols-[minmax(260px,360px)_minmax(0,1fr)_auto] 2xl:items-end",children:[f.jsxs("label",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300",children:["Nama Batch ",f.jsx("span",{className:"font-normal text-gray-400",children:"(opsional)"}),f.jsx("input",{value:a,onChange:_=>r(_.target.value),placeholder:"Contoh: Timesheet 18 Mei",className:"mt-2 h-11 w-full rounded-lg border border-gray-200 px-3 dark:border-gray-700 dark:bg-gray-900"}),f.jsxs("span",{className:"mt-2 flex gap-1.5 text-xs font-normal leading-5 text-gray-500 dark:text-gray-400",children:[f.jsx(dh,{className:"mt-0.5 h-3.5 w-3.5 shrink-0"}),"Satu batch bisa berisi banyak file. Hasil rename yang sukses bisa didownload sekaligus sebagai ZIP."]})]}),f.jsxs("div",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300",children:["File Dokumen",f.jsxs("div",{...V(),className:`mt-2 flex min-h-24 cursor-pointer flex-col items-stretch justify-between gap-4 rounded-xl border border-dashed px-4 py-3 transition sm:flex-row sm:items-center ${ie?"border-brand-500 bg-brand-50 dark:bg-brand-500/10":"border-gray-200 bg-gray-50 hover:border-brand-400 dark:border-gray-700 dark:bg-gray-900"}`,children:[f.jsx("input",{...te(),accept:ZB}),f.jsxs("div",{className:"flex min-w-0 items-center gap-3",children:[f.jsx("div",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-lg bg-white text-brand-500 shadow-sm ring-1 ring-gray-100 dark:bg-gray-800 dark:ring-white/10",children:f.jsx(Yo,{className:"h-5 w-5"})}),f.jsxs("div",{className:"min-w-0",children:[f.jsx("p",{className:"font-bold text-gray-800 dark:text-white/90",children:ie?"Lepas file di sini":"Drag file ke sini atau pilih banyak file"}),f.jsx("p",{className:"mt-1 text-xs font-normal leading-5 text-gray-500 dark:text-gray-400",children:"PDF, MSG, PNG, JPG, JPEG, DOC, DOCX, XLS, XLSX, CSV. Semua file yang dipilih masuk ke batch yang sama."})]})]}),f.jsxs("button",{type:"button",disabled:p,onClick:_=>{_.stopPropagation(),ae()},className:"inline-flex h-9 shrink-0 items-center justify-center gap-2 rounded-lg bg-white px-3 text-xs font-bold text-brand-600 shadow-sm ring-1 ring-gray-100 disabled:opacity-50 dark:bg-gray-800 dark:ring-white/10",children:[f.jsx(Xm,{className:"h-4 w-4"})," Add Files"]})]})]}),f.jsxs("button",{disabled:!e.length||p,onClick:se,className:"inline-flex h-11 items-center justify-center gap-2 rounded-xl bg-brand-500 px-5 text-sm font-bold text-white disabled:opacity-50 xl:col-span-2 2xl:col-span-1",children:[f.jsx(Yo,{className:"h-4 w-4"})," Upload Batch"]})]}),e.length>0&&f.jsxs("div",{className:"mt-4 rounded-xl border border-gray-100 bg-gray-50 p-4 dark:border-white/10 dark:bg-white/[0.03]",children:[f.jsxs("div",{className:"flex flex-wrap items-center justify-between gap-3",children:[f.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold text-gray-700 dark:text-gray-200",children:[f.jsx(o2,{className:"h-4 w-4 text-brand-500"}),e.length," file dalam batch ini"]}),f.jsxs("div",{className:"flex items-center gap-3",children:[f.jsxs("span",{className:"text-xs text-gray-500 dark:text-gray-400",children:["Total ",Nv(T)]}),f.jsx("button",{type:"button",disabled:p,onClick:()=>t([]),className:"text-xs font-bold text-rose-500 disabled:opacity-50",children:"Clear"})]})]}),f.jsx("div",{className:"mt-3 flex max-h-28 flex-wrap gap-2 overflow-y-auto pr-1",children:e.map((_,R)=>f.jsxs("span",{className:"inline-flex max-w-full items-center gap-2 rounded-lg bg-white px-3 py-1.5 text-xs font-medium text-gray-700 shadow-sm ring-1 ring-gray-100 dark:bg-gray-900 dark:text-gray-200 dark:ring-white/10",children:[f.jsx("span",{className:"max-w-[260px] truncate",title:_.name,children:_.name}),f.jsx("span",{className:"shrink-0 text-gray-400",children:Nv(_.size)}),f.jsx("button",{type:"button",disabled:p,onClick:()=>M(R),className:"shrink-0 rounded-full p-0.5 text-gray-400 hover:bg-gray-100 hover:text-rose-500 disabled:opacity-50 dark:hover:bg-white/10",title:"Hapus dari batch",children:f.jsx(du,{className:"h-3.5 w-3.5"})})]},Fm(_)))})]})]}),f.jsxs("div",{className:"grid min-w-0 grid-cols-1 gap-6 xl:grid-cols-[minmax(300px,380px)_minmax(0,1fr)] 2xl:grid-cols-[minmax(340px,420px)_minmax(0,1fr)]",children:[f.jsxs("div",{className:"min-w-0 rounded-2xl border border-gray-200 bg-white p-4 shadow-sm dark:border-gray-800 dark:bg-white/[0.03] sm:p-6",children:[f.jsx("h2",{className:"mb-4 text-lg font-bold",children:"Riwayat Batch"}),f.jsx("div",{className:"space-y-3",children:o.map(_=>f.jsxs("div",{className:"rounded-xl border border-gray-100 p-4 dark:border-gray-800",children:[f.jsxs("div",{className:"flex items-start justify-between gap-3",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("p",{className:"break-words font-bold",children:O(_)}),f.jsx("p",{className:"text-xs text-gray-500",children:_.batch_name?_.batch_code:`${_.total_files} file`}),_.batch_name&&f.jsxs("p",{className:"text-xs text-gray-500",children:[_.total_files," file"]})]}),f.jsx("div",{className:"shrink-0",children:f.jsx(sr,{value:_.status})})]}),f.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[f.jsx("button",{onClick:()=>W(_.id),className:"rounded-lg bg-gray-100 px-3 py-2 text-xs font-bold text-gray-700 dark:bg-gray-800 dark:text-gray-200",children:"Detail"}),y(_.status)&&f.jsxs("button",{disabled:p,onClick:()=>Ae(_.id),className:"inline-flex items-center gap-1 rounded-lg bg-emerald-500 px-3 py-2 text-xs font-bold text-white disabled:opacity-50",children:[f.jsx(U6,{className:"h-3.5 w-3.5"})," Process"]}),b(_)&&f.jsxs("button",{disabled:p,onClick:()=>re(_),className:"inline-flex items-center gap-1 rounded-lg bg-sky-50 px-3 py-2 text-xs font-bold text-sky-700 disabled:opacity-50 dark:bg-sky-500/10 dark:text-sky-300",children:[f.jsx(K6,{className:"h-3.5 w-3.5"})," ZIP"]}),f.jsxs("button",{disabled:p,onClick:()=>je(_),className:"inline-flex items-center gap-1 rounded-lg bg-rose-50 px-3 py-2 text-xs font-bold text-rose-600 disabled:opacity-50",children:[f.jsx(Fc,{className:"h-3.5 w-3.5"})," Hapus"]})]})]},_.id))})]}),f.jsxs("div",{className:"min-w-0 rounded-2xl border border-gray-200 bg-white p-4 shadow-sm dark:border-gray-800 dark:bg-white/[0.03] sm:p-6",children:[f.jsxs("div",{className:"mb-4 flex flex-col gap-1 sm:flex-row sm:items-center sm:justify-between",children:[f.jsx("h2",{className:"text-lg font-bold",children:"Detail File"}),(u==null?void 0:u.batch)&&f.jsxs("p",{className:"text-xs font-medium text-gray-500",children:[((K=u.files)==null?void 0:K.length)||0," file"]})]}),f.jsxs("div",{className:"space-y-3 lg:hidden",children:[((u==null?void 0:u.files)||[]).map(_=>{const R=C(_);return f.jsxs("div",{className:"rounded-xl border border-gray-100 p-4 dark:border-gray-800",children:[f.jsxs("div",{className:"flex items-start justify-between gap-3",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("p",{className:"break-words font-semibold text-gray-900 dark:text-white",children:_.original_filename}),R&&f.jsx("p",{className:"mt-1 text-xs leading-5 text-amber-600 dark:text-amber-400",children:R})]}),f.jsx(sr,{value:_.rename_status})]}),f.jsxs("div",{className:"mt-3 grid grid-cols-2 gap-3 text-xs text-gray-500 dark:text-gray-400",children:[f.jsxs("div",{children:[f.jsx("span",{className:"font-semibold text-gray-700 dark:text-gray-200",children:"Type"}),f.jsx("br",{}),_.detected_document_type||"-"]}),f.jsxs("div",{children:[f.jsx("span",{className:"font-semibold text-gray-700 dark:text-gray-200",children:"Confidence"}),f.jsx("br",{}),S(_.confidence_score)]}),f.jsxs("div",{className:"col-span-2",children:[f.jsx("span",{className:"font-semibold text-gray-700 dark:text-gray-200",children:"Pegawai"}),f.jsx("br",{}),E(_)]}),f.jsxs("div",{className:"col-span-2",children:[f.jsx("span",{className:"font-semibold text-gray-700 dark:text-gray-200",children:"Target"}),f.jsx("br",{}),_.target_filename||"-"]})]}),f.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[v(_)&&f.jsxs("button",{type:"button",disabled:p,onClick:()=>pe(_),className:"inline-flex items-center gap-2 rounded-lg bg-sky-50 px-3 py-2 text-xs font-bold text-sky-700 disabled:opacity-50 dark:bg-sky-500/10 dark:text-sky-300",children:[f.jsx(uu,{className:"h-4 w-4"})," Download"]}),f.jsxs("button",{type:"button",disabled:p,onClick:()=>Ee(_),className:"inline-flex items-center gap-2 rounded-lg bg-rose-50 px-3 py-2 text-xs font-bold text-rose-600 disabled:opacity-50",children:[f.jsx(Fc,{className:"h-4 w-4"})," Hapus"]})]})]},_.id)}),!((u==null?void 0:u.files)||[]).length&&f.jsx("div",{className:"rounded-xl border border-dashed border-gray-200 p-6 text-center text-sm text-gray-500 dark:border-gray-800 dark:text-gray-400",children:"Pilih batch untuk melihat detail file."})]}),f.jsx("div",{className:"hidden min-w-0 overflow-x-auto lg:block",children:f.jsxs("table",{className:"min-w-[980px] w-full table-fixed text-left text-sm",children:[f.jsx("thead",{className:"bg-gray-50 text-xs uppercase text-gray-500 dark:bg-white/5",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3",children:"Original"}),f.jsx("th",{className:"px-4 py-3",children:"Type"}),f.jsx("th",{className:"px-4 py-3",children:"Pegawai"}),f.jsx("th",{className:"px-4 py-3",children:"Target"}),f.jsx("th",{className:"px-4 py-3",children:"Confidence"}),f.jsx("th",{className:"px-4 py-3",children:"Status"}),f.jsx("th",{className:"px-4 py-3",children:"Aksi"})]})}),f.jsx("tbody",{className:"divide-y divide-gray-100 dark:divide-white/5",children:((u==null?void 0:u.files)||[]).map(_=>{const R=C(_);return f.jsxs("tr",{children:[f.jsxs("td",{className:"px-4 py-3 align-top",children:[f.jsx("p",{className:"break-words font-medium text-gray-800 dark:text-white/90",children:_.original_filename}),R&&f.jsx("p",{className:"mt-1 text-xs text-amber-600 dark:text-amber-400",children:R})]}),f.jsx("td",{className:"px-4 py-3 align-top",children:_.detected_document_type||"-"}),f.jsx("td",{className:"break-words px-4 py-3 align-top",children:E(_)}),f.jsx("td",{className:"break-words px-4 py-3 align-top",children:_.target_filename||"-"}),f.jsx("td",{className:"px-4 py-3 align-top",children:S(_.confidence_score)}),f.jsx("td",{className:"px-4 py-3 align-top",children:f.jsx(sr,{value:_.rename_status})}),f.jsx("td",{className:"px-4 py-3 align-top",children:f.jsxs("div",{className:"flex gap-2",children:[v(_)&&f.jsx("button",{type:"button",disabled:p,onClick:()=>pe(_),className:"rounded-lg bg-sky-50 p-2 text-sky-700 disabled:opacity-50 dark:bg-sky-500/10 dark:text-sky-300",title:"Download hasil rename",children:f.jsx(uu,{className:"h-4 w-4"})}),f.jsx("button",{type:"button",disabled:p,onClick:()=>Ee(_),className:"rounded-lg bg-rose-50 p-2 text-rose-600 disabled:opacity-50",title:"Hapus file permanen",children:f.jsx(Fc,{className:"h-4 w-4"})})]})})]},_.id)})})]})})]})]})]})]})}function Mv(e,t){var a,r;return((r=(a=e.response)==null?void 0:a.data)==null?void 0:r.message)||t}function Rv(e){const t=String(e||"").toUpperCase();return{NAME_NOT_FOUND:"Nama karyawan tidak cocok",TYPE_UNKNOWN:"Jenis dokumen belum jelas",LOW_CONFIDENCE:"Confidence rendah",DUPLICATE_TARGET:"Nama target duplikat",FILE_ERROR:"File gagal diproses",OTHER:"Perlu cek manual"}[t]||e||"-"}function Dv(e){return e?`${e.nip||"-"} - ${e.full_name||"-"}${e.division_name_snapshot?` (${e.division_name_snapshot})`:""}`:""}function XB(e){const t=String(e||"").toLowerCase().match(/\.([a-z0-9]+)$/);return(t==null?void 0:t[1])||""}function WB(){var ie,ae,W,se,Ae,je,Ee,re,pe,K,_;const[e,t]=w.useState([]),[a,r]=w.useState([]),[o,c]=w.useState({}),[u,m]=w.useState({}),[p,g]=w.useState(null),[y,b]=w.useState(!1),[v,T]=w.useState(""),S=async()=>{var R,Z;b(!0),T("");try{const[j,N]=await Promise.all([Le.get("/api/reviews"),Le.get("/api/master/employees",{params:{limit:1e3}})]),I=(R=j.data)==null?void 0:R.data,ee=(Z=N.data)==null?void 0:Z.data;t(Array.isArray(I)?I:[]),r(Array.isArray(ee)?ee:[])}catch(j){t([]),r([]),T(Mv(j,"Review queue gagal dimuat"))}finally{b(!1)}};w.useEffect(()=>{S()},[]);const C=w.useMemo(()=>{const R=e.filter(N=>["WAITING","IN_REVIEW"].includes(String(N.review_status||"").toUpperCase())).length,Z=e.filter(N=>String(N.review_status||"").toUpperCase()==="APPROVED").length,j=e.filter(N=>String(N.review_status||"").toUpperCase()==="REJECTED").length;return{waiting:R,approved:Z,rejected:j}},[e]),E=(R,Z)=>c(j=>({...j,[R]:{...j[R]||{},...Z}})),O=R=>{var Z,j;return Number(((Z=o[R.id])==null?void 0:Z.master_employee_id)||R.corrected_master_employee_id||((j=R.uploaded_file)==null?void 0:j.matched_master_employee_id)||0)},D=R=>{const Z=String(u[R.id]||"").trim().toUpperCase(),j=O(R),N=(Z?a.filter(ee=>`${ee.nip||""} ${ee.full_name||""} ${ee.division_name_snapshot||""}`.toUpperCase().includes(Z)):a).slice(0,80),I=a.find(ee=>Number(ee.id)===j);return I&&!N.some(ee=>Number(ee.id)===j)?[I,...N].slice(0,80):N},M=async R=>{var N;const Z=R.uploaded_file;if(!(Z!=null&&Z.id))return;const j=XB(Z.original_filename);g({open:!0,loading:!0,row:R,file:Z,data:null,blob:null,blobUrl:"",error:""});try{const ee=((N=(await Le.get(`/api/uploads/files/${Z.id}/preview`)).data)==null?void 0:N.data)||{};let Q=null,fe="";if(["pdf","image"].includes(ee.preview_type)||["pdf","png","jpg","jpeg"].includes(j)){const ke=await Le.get(`/api/uploads/files/${Z.id}/download`,{responseType:"blob"});Q=ke.data instanceof Blob?ke.data:new Blob([ke.data],{type:ke.headers["content-type"]||ee.mime_type||"application/octet-stream"}),fe=URL.createObjectURL(Q)}g({open:!0,loading:!1,row:R,file:Z,data:ee,blob:Q,blobUrl:fe,error:""})}catch(I){g({open:!0,loading:!1,row:R,file:Z,data:null,blob:null,blobUrl:"",error:Mv(I,"Preview file gagal dimuat")})}},F=()=>{p!=null&&p.blobUrl&&URL.revokeObjectURL(p.blobUrl),g(null)},V=async R=>{var Z,j;try{await Le.post(`/api/reviews/${R}/approve`,o[R]||{}),await S(),be.fire("Berhasil","File review disetujui","success")}catch(N){be.fire("Gagal",((j=(Z=N.response)==null?void 0:Z.data)==null?void 0:j.message)||"Approve gagal","error")}},te=async R=>{var Z,j;try{await Le.post(`/api/reviews/${R}/reject`),await S(),be.fire("Berhasil","File review ditolak","success")}catch(N){be.fire("Gagal",((j=(Z=N.response)==null?void 0:Z.data)==null?void 0:j.message)||"Reject gagal","error")}};return f.jsxs(f.Fragment,{children:[f.jsx(fa,{title:"Review Queue | File Renamer",description:"Koreksi file yang belum aman untuk auto rename."}),f.jsx(dr,{pageTitle:"Review Queue"}),f.jsxs("div",{className:"space-y-6",children:[f.jsx("div",{className:"rounded-2xl border border-gray-200 bg-white p-4 shadow-sm dark:border-gray-800 dark:bg-white/[0.03] sm:p-6",children:f.jsxs("div",{className:"grid min-w-0 gap-5 xl:grid-cols-[minmax(0,1.5fr)_minmax(280px,1fr)] xl:items-start",children:[f.jsxs("div",{children:[f.jsxs("div",{className:"flex items-center gap-2 text-sm font-bold text-brand-600 dark:text-brand-400",children:[f.jsx(dh,{className:"h-4 w-4"}),"Area pengecekan manual"]}),f.jsx("h2",{className:"mt-3 text-xl font-bold text-gray-900 dark:text-white",children:"Untuk file yang belum aman di-rename otomatis"}),f.jsx("p",{className:"mt-2 max-w-3xl text-sm leading-6 text-gray-600 dark:text-gray-400",children:"Data muncul di sini kalau sistem ragu membaca file, misalnya nama karyawan tidak cocok dengan master, jenis dokumen belum jelas, confidence rendah, target filename duplikat, atau ada error saat proses. File yang sudah berhasil `RENAMED` langsung dicek dan didownload dari halaman Upload & Rename, bukan dari Review Queue."}),f.jsxs("div",{className:"mt-4 grid gap-3 md:grid-cols-3",children:[f.jsxs("div",{className:"rounded-lg border border-amber-100 bg-amber-50 p-3 dark:border-amber-500/20 dark:bg-amber-500/10",children:[f.jsx("p",{className:"text-xs font-semibold uppercase text-amber-700 dark:text-amber-300",children:"Perlu keputusan"}),f.jsx("p",{className:"mt-1 text-2xl font-bold text-gray-900 dark:text-white",children:C.waiting})]}),f.jsxs("div",{className:"rounded-lg border border-emerald-100 bg-emerald-50 p-3 dark:border-emerald-500/20 dark:bg-emerald-500/10",children:[f.jsx("p",{className:"text-xs font-semibold uppercase text-emerald-700 dark:text-emerald-300",children:"Disetujui"}),f.jsx("p",{className:"mt-1 text-2xl font-bold text-gray-900 dark:text-white",children:C.approved})]}),f.jsxs("div",{className:"rounded-lg border border-rose-100 bg-rose-50 p-3 dark:border-rose-500/20 dark:bg-rose-500/10",children:[f.jsx("p",{className:"text-xs font-semibold uppercase text-rose-700 dark:text-rose-300",children:"Ditolak"}),f.jsx("p",{className:"mt-1 text-2xl font-bold text-gray-900 dark:text-white",children:C.rejected})]})]})]}),f.jsxs("div",{className:"rounded-lg border border-gray-100 bg-gray-50 p-4 text-sm text-gray-600 dark:border-gray-800 dark:bg-white/[0.03] dark:text-gray-400",children:[f.jsx("p",{className:"font-bold text-gray-900 dark:text-white",children:"Alur singkat"}),f.jsxs("ol",{className:"mt-3 space-y-2",children:[f.jsx("li",{children:"1. Cek alasan di kolom Issue."}),f.jsx("li",{children:"2. Koreksi tipe dokumen, master karyawan, atau nama file target."}),f.jsx("li",{children:"3. Klik Approve untuk rename ulang, atau Reject kalau file memang tidak dipakai."})]}),f.jsxs("button",{onClick:()=>void S(),disabled:y,className:"mt-4 inline-flex items-center gap-2 rounded-lg bg-gray-900 px-3 py-2 text-xs font-bold text-white disabled:opacity-50 dark:bg-white dark:text-gray-900",children:[f.jsx(Go,{className:`h-3.5 w-3.5 ${y?"animate-spin":""}`}),"Muat ulang"]})]})]})}),f.jsxs("div",{className:"min-w-0 rounded-2xl border border-gray-200 bg-white p-4 shadow-sm dark:border-gray-800 dark:bg-white/[0.03] sm:p-6",children:[f.jsxs("div",{className:"mb-4 flex flex-col gap-2 md:flex-row md:items-center md:justify-between",children:[f.jsxs("div",{children:[f.jsx("h2",{className:"text-lg font-bold text-gray-900 dark:text-white",children:"Daftar File Perlu Review"}),f.jsx("p",{className:"mt-1 text-sm text-gray-500 dark:text-gray-400",children:"Kosong berarti tidak ada file yang sedang butuh koreksi manual."})]}),f.jsxs("p",{className:"text-sm font-semibold text-gray-500 dark:text-gray-400",children:[e.length," item"]})]}),f.jsx("div",{className:"space-y-3 2xl:hidden",children:y?f.jsx("div",{className:"rounded-xl border border-dashed border-gray-200 p-6 text-center text-sm text-gray-500 dark:border-gray-800 dark:text-gray-400",children:"Memuat review queue..."}):v?f.jsxs("div",{className:"rounded-xl border border-rose-100 bg-rose-50 p-6 text-center dark:border-rose-500/20 dark:bg-rose-500/10",children:[f.jsx(ox,{className:"mx-auto h-8 w-8 text-rose-500"}),f.jsx("p",{className:"mt-3 font-semibold text-rose-600 dark:text-rose-400",children:v}),f.jsx("button",{onClick:()=>void S(),className:"mt-3 rounded-lg bg-white px-3 py-2 text-xs font-bold text-gray-700 shadow-sm dark:bg-gray-800 dark:text-gray-200",children:"Muat ulang"})]}):e.length===0?f.jsxs("div",{className:"rounded-xl border border-dashed border-gray-200 p-6 text-center dark:border-gray-800",children:[f.jsx($o,{className:"mx-auto h-9 w-9 text-emerald-500"}),f.jsx("p",{className:"mt-3 font-bold text-gray-900 dark:text-white",children:"Tidak ada file yang perlu review manual."}),f.jsx("p",{className:"mt-2 text-sm leading-6 text-gray-500 dark:text-gray-400",children:"File yang sudah berhasil rename bisa dicek dari halaman Upload & Rename."})]}):e.map(R=>{var Z,j,N,I,ee,Q,fe,de;return f.jsxs("div",{className:"rounded-xl border border-gray-100 p-4 dark:border-gray-800",children:[f.jsxs("div",{className:"flex items-start justify-between gap-3",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("p",{className:"break-words font-bold text-gray-900 dark:text-white",children:(Z=R.uploaded_file)==null?void 0:Z.original_filename}),f.jsx("p",{className:"mt-1 text-xs text-gray-500",children:((j=R.uploaded_file)==null?void 0:j.detected_employee_name)||((N=R.uploaded_file)==null?void 0:N.detected_nip)||"-"})]}),f.jsx(sr,{value:R.review_status})]}),f.jsxs("div",{className:"mt-3 flex items-start gap-2 rounded-lg bg-amber-50 p-3 text-sm dark:bg-amber-500/10",children:[f.jsx(cx,{className:"mt-0.5 h-4 w-4 shrink-0 text-amber-500"}),f.jsxs("div",{children:[f.jsx("p",{className:"font-semibold text-gray-900 dark:text-white",children:Rv(R.issue_type)}),f.jsx("p",{className:"text-xs leading-5 text-gray-500 dark:text-gray-400",children:R.issue_description||R.issue_type})]})]}),f.jsxs("div",{className:"mt-3 grid grid-cols-1 gap-2",children:[f.jsxs("select",{value:((I=o[R.id])==null?void 0:I.document_type)||R.corrected_document_type||((ee=R.uploaded_file)==null?void 0:ee.detected_document_type)||"TIMESHEET",onChange:ke=>E(R.id,{document_type:ke.target.value}),className:"h-10 rounded-lg border border-gray-200 px-3 text-sm dark:border-gray-700 dark:bg-gray-900",children:[f.jsx("option",{children:"TIMESHEET"}),f.jsx("option",{children:"APPROVAL"}),f.jsx("option",{children:"EMAIL"})]}),f.jsxs("div",{className:"relative",children:[f.jsx(Io,{className:"pointer-events-none absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-gray-400"}),f.jsx("input",{placeholder:"Cari NIP / nama / divisi",value:u[R.id]||"",onChange:ke=>m(xe=>({...xe,[R.id]:ke.target.value})),className:"h-10 w-full rounded-lg border border-gray-200 pl-8 pr-3 text-sm dark:border-gray-700 dark:bg-gray-900"})]}),f.jsxs("select",{value:((Q=o[R.id])==null?void 0:Q.master_employee_id)||R.corrected_master_employee_id||((fe=R.uploaded_file)==null?void 0:fe.matched_master_employee_id)||"",onChange:ke=>E(R.id,{master_employee_id:Number(ke.target.value)}),className:"h-10 rounded-lg border border-gray-200 px-3 text-sm dark:border-gray-700 dark:bg-gray-900",children:[f.jsx("option",{value:"",children:"Pilih master"}),D(R).map(ke=>f.jsx("option",{value:ke.id,children:Dv(ke)},ke.id))]}),f.jsx("input",{placeholder:"Target filename opsional",value:((de=o[R.id])==null?void 0:de.target_filename)||"",onChange:ke=>E(R.id,{target_filename:ke.target.value}),className:"h-10 rounded-lg border border-gray-200 px-3 text-sm dark:border-gray-700 dark:bg-gray-900"})]}),f.jsxs("div",{className:"mt-3 flex flex-wrap gap-2",children:[f.jsxs("button",{type:"button",onClick:()=>M(R),className:"inline-flex items-center gap-1 rounded-lg bg-gray-100 px-3 py-2 text-xs font-bold text-gray-700 dark:bg-gray-800 dark:text-gray-200",children:[f.jsx(lx,{className:"h-3.5 w-3.5"})," View"]}),f.jsx("button",{disabled:y,onClick:()=>V(R.id),className:"rounded-lg bg-emerald-500 px-3 py-2 text-xs font-bold text-white disabled:opacity-50",children:"Approve"}),f.jsx("button",{disabled:y,onClick:()=>te(R.id),className:"rounded-lg bg-rose-500 px-3 py-2 text-xs font-bold text-white disabled:opacity-50",children:"Reject"})]})]},R.id)})}),f.jsx("div",{className:"hidden min-w-0 overflow-x-auto custom-scrollbar 2xl:block",children:f.jsxs("table",{className:"w-full min-w-[1240px] table-fixed text-left text-sm",children:[f.jsxs("colgroup",{children:[f.jsx("col",{className:"w-[19%]"}),f.jsx("col",{className:"w-[19%]"}),f.jsx("col",{className:"w-[42%]"}),f.jsx("col",{className:"w-[8%]"}),f.jsx("col",{className:"w-[12%]"})]}),f.jsx("thead",{className:"bg-gray-50 text-xs uppercase text-gray-500 dark:bg-white/5",children:f.jsxs("tr",{children:[f.jsx("th",{className:"px-4 py-3",children:"File"}),f.jsx("th",{className:"px-4 py-3",children:"Issue"}),f.jsx("th",{className:"px-4 py-3",children:"Koreksi"}),f.jsx("th",{className:"px-4 py-3",children:"Status"}),f.jsx("th",{className:"px-4 py-3",children:"Aksi"})]})}),f.jsx("tbody",{className:"divide-y divide-gray-100 dark:divide-white/5",children:y?f.jsx("tr",{children:f.jsx("td",{className:"px-4 py-10 text-center text-gray-500 dark:text-gray-400",colSpan:5,children:"Memuat review queue..."})}):v?f.jsx("tr",{children:f.jsxs("td",{className:"px-4 py-10 text-center",colSpan:5,children:[f.jsx(ox,{className:"mx-auto h-8 w-8 text-rose-500"}),f.jsx("p",{className:"mt-3 font-semibold text-rose-600 dark:text-rose-400",children:v}),f.jsx("button",{onClick:()=>void S(),className:"mt-3 rounded-lg bg-gray-100 px-3 py-2 text-xs font-bold text-gray-700 dark:bg-gray-800 dark:text-gray-200",children:"Muat ulang"})]})}):e.length===0?f.jsx("tr",{children:f.jsxs("td",{className:"px-4 py-12 text-center",colSpan:5,children:[f.jsx($o,{className:"mx-auto h-9 w-9 text-emerald-500"}),f.jsx("p",{className:"mt-3 font-bold text-gray-900 dark:text-white",children:"Tidak ada file yang perlu review manual."}),f.jsx("p",{className:"mx-auto mt-2 max-w-xl text-sm leading-6 text-gray-500 dark:text-gray-400",children:"Kalau hasil rename sudah muncul `RENAMED` di halaman Upload & Rename, lanjut download dari tombol file atau ZIP batch di sana. Halaman ini baru terisi kalau sistem menemukan kasus yang butuh keputusan operator."})]})}):e.map(R=>{var Z,j,N,I,ee,Q,fe,de,ke;return f.jsxs("tr",{children:[f.jsxs("td",{className:"px-4 py-3 align-top",children:[f.jsx("p",{className:"break-all font-bold",title:(Z=R.uploaded_file)==null?void 0:Z.original_filename,children:(j=R.uploaded_file)==null?void 0:j.original_filename}),f.jsx("p",{className:"text-xs text-gray-500",children:((N=R.uploaded_file)==null?void 0:N.detected_employee_name)||((I=R.uploaded_file)==null?void 0:I.detected_nip)||"-"}),f.jsxs("button",{type:"button",onClick:()=>M(R),className:"mt-2 inline-flex items-center gap-1 rounded-lg bg-gray-100 px-2.5 py-1.5 text-xs font-bold text-gray-700 dark:bg-gray-800 dark:text-gray-200",children:[f.jsx(lx,{className:"h-3.5 w-3.5"})," View"]})]}),f.jsx("td",{className:"px-4 py-3 align-top",children:f.jsxs("div",{className:"flex min-w-0 items-start gap-2",children:[f.jsx(cx,{className:"mt-0.5 h-4 w-4 shrink-0 text-amber-500"}),f.jsxs("div",{className:"min-w-0",children:[f.jsx("p",{className:"font-semibold",children:Rv(R.issue_type)}),f.jsx("p",{className:"break-words text-xs text-gray-500",children:R.issue_description||R.issue_type})]})]})}),f.jsx("td",{className:"px-4 py-3 align-top",children:f.jsxs("div",{className:"grid min-w-0 grid-cols-[minmax(115px,0.75fr)_minmax(200px,1.2fr)_minmax(170px,1fr)] gap-2",children:[f.jsxs("select",{value:((ee=o[R.id])==null?void 0:ee.document_type)||R.corrected_document_type||((Q=R.uploaded_file)==null?void 0:Q.detected_document_type)||"TIMESHEET",onChange:xe=>E(R.id,{document_type:xe.target.value}),className:"w-full min-w-0 rounded-lg border border-gray-200 px-3 py-2 dark:border-gray-700 dark:bg-gray-900",children:[f.jsx("option",{children:"TIMESHEET"}),f.jsx("option",{children:"APPROVAL"}),f.jsx("option",{children:"EMAIL"})]}),f.jsxs("div",{className:"min-w-0 space-y-1",children:[f.jsxs("div",{className:"relative",children:[f.jsx(Io,{className:"pointer-events-none absolute left-3 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-gray-400"}),f.jsx("input",{placeholder:"Cari NIP / nama / divisi",value:u[R.id]||"",onChange:xe=>m(Pe=>({...Pe,[R.id]:xe.target.value})),className:"h-9 w-full min-w-0 rounded-lg border border-gray-200 pl-8 pr-3 text-xs dark:border-gray-700 dark:bg-gray-900"})]}),f.jsxs("select",{value:((fe=o[R.id])==null?void 0:fe.master_employee_id)||R.corrected_master_employee_id||((de=R.uploaded_file)==null?void 0:de.matched_master_employee_id)||"",onChange:xe=>E(R.id,{master_employee_id:Number(xe.target.value)}),className:"w-full min-w-0 rounded-lg border border-gray-200 px-3 py-2 dark:border-gray-700 dark:bg-gray-900",children:[f.jsx("option",{value:"",children:"Pilih master"}),D(R).map(xe=>f.jsx("option",{value:xe.id,children:Dv(xe)},xe.id))]})]}),f.jsx("input",{placeholder:"Target filename opsional",value:((ke=o[R.id])==null?void 0:ke.target_filename)||"",onChange:xe=>E(R.id,{target_filename:xe.target.value}),className:"w-full min-w-0 rounded-lg border border-gray-200 px-3 py-2 dark:border-gray-700 dark:bg-gray-900"})]})}),f.jsx("td",{className:"px-4 py-3 align-top whitespace-nowrap",children:f.jsx(sr,{value:R.review_status})}),f.jsx("td",{className:"px-4 py-3 align-top",children:f.jsxs("div",{className:"flex flex-wrap gap-2",children:[f.jsx("button",{disabled:y,onClick:()=>V(R.id),className:"shrink-0 rounded-lg bg-emerald-500 px-3 py-2 text-xs font-bold text-white disabled:opacity-50",children:"Approve"}),f.jsx("button",{disabled:y,onClick:()=>te(R.id),className:"shrink-0 rounded-lg bg-rose-500 px-3 py-2 text-xs font-bold text-white disabled:opacity-50",children:"Reject"})]})})]},R.id)})})]})})]})]}),(p==null?void 0:p.open)&&f.jsx("div",{className:"fixed inset-0 z-[99999] bg-black/70 p-4",children:f.jsxs("div",{className:"mx-auto flex h-full max-w-7xl flex-col overflow-hidden rounded-lg bg-white shadow-2xl dark:bg-gray-950",children:[f.jsxs("div",{className:"flex items-center justify-between gap-4 border-b border-gray-200 px-5 py-3 dark:border-white/10",children:[f.jsxs("div",{className:"min-w-0",children:[f.jsx("p",{className:"truncate text-sm font-bold text-gray-900 dark:text-white",children:(ie=p.file)==null?void 0:ie.original_filename}),f.jsx("p",{className:"text-xs text-gray-500 dark:text-gray-400",children:((ae=p.data)==null?void 0:ae.mime_type)||((W=p.file)==null?void 0:W.original_mime_type)||"-"})]}),f.jsx("button",{type:"button",onClick:F,className:"rounded-lg p-2 text-gray-500 hover:bg-gray-100 dark:hover:bg-white/10",children:f.jsx(du,{className:"h-5 w-5"})})]}),f.jsx("div",{className:"min-h-0 flex-1 bg-gray-100 dark:bg-gray-900",children:p.loading?f.jsx("div",{className:"flex h-full items-center justify-center text-sm font-semibold text-gray-500",children:"Memuat preview..."}):p.error?f.jsx("div",{className:"flex h-full items-center justify-center p-6 text-center text-sm font-semibold text-rose-600",children:p.error}):((se=p.data)==null?void 0:se.preview_type)==="pdf"&&p.blobUrl?f.jsx("iframe",{title:"File preview",src:p.blobUrl,className:"h-full w-full border-0"}):((Ae=p.data)==null?void 0:Ae.preview_type)==="image"&&p.blobUrl?f.jsx("div",{className:"flex h-full items-center justify-center overflow-auto p-4",children:f.jsx("img",{src:p.blobUrl,alt:((je=p.file)==null?void 0:je.original_filename)||"Preview",className:"max-h-full max-w-full object-contain"})}):((Ee=p.data)==null?void 0:Ee.preview_type)==="google_docs"&&((re=p.data)!=null&&re.google_viewer_url)?f.jsx("iframe",{title:"Google Docs preview",src:p.data.google_viewer_url,className:"h-full w-full border-0 bg-white"}):((pe=p.data)==null?void 0:pe.preview_type)==="message"?f.jsxs("div",{className:"h-full overflow-auto bg-white p-6 text-sm text-gray-800 dark:bg-gray-950 dark:text-gray-100",children:[f.jsxs("div",{className:"mb-5 rounded-lg border border-gray-200 p-4 dark:border-white/10",children:[f.jsxs("p",{children:[f.jsx("span",{className:"font-bold",children:"Subject:"})," ",p.data.subject||"-"]}),f.jsxs("p",{children:[f.jsx("span",{className:"font-bold",children:"From:"})," ",p.data.sender||"-"]}),f.jsxs("p",{children:[f.jsx("span",{className:"font-bold",children:"To:"})," ",p.data.to||"-"]}),f.jsxs("p",{children:[f.jsx("span",{className:"font-bold",children:"Cc:"})," ",p.data.cc||"-"]}),!!((K=p.data.attachments)!=null&&K.length)&&f.jsxs("p",{children:[f.jsx("span",{className:"font-bold",children:"Attachments:"})," ",p.data.attachments.join(", ")]})]}),f.jsx("pre",{className:"whitespace-pre-wrap font-sans leading-6",children:p.data.content||"Tidak ada isi pesan yang bisa ditampilkan."})]}):f.jsx("div",{className:"h-full overflow-auto bg-white p-6 text-sm text-gray-800 dark:bg-gray-950 dark:text-gray-100",children:f.jsx("pre",{className:"whitespace-pre-wrap font-sans leading-6",children:((_=p.data)==null?void 0:_.content)||"Preview teks tidak tersedia untuk file ini. Gunakan download/open original dari halaman upload."})})})]})})]})}function QB(){const[e,t]=w.useState([]),[a,r]=w.useState(""),[o,c]=w.useState(null);w.useEffect(()=>{Le.get("/api/uploads/batches").then(p=>{var g;return t(((g=p.data)==null?void 0:g.data)||[])})},[]);const u=async()=>{var p,g,y;try{const b=await Le.get("/api/reports/rename-result",{params:{batch_id:a||void 0}});c((p=b.data)==null?void 0:p.data),be.fire("Berhasil","Report rename result dibuat","success")}catch(b){be.fire("Gagal",((y=(g=b.response)==null?void 0:g.data)==null?void 0:y.message)||"Report gagal dibuat","error")}},m=async()=>{var p,g;if(o!=null&&o.id)try{await lp(`/api/reports/exports/${o.id}/download`,o.report_filename||"rename_result.xlsx")}catch(y){be.fire("Gagal",((g=(p=y.response)==null?void 0:p.data)==null?void 0:g.message)||"Download report gagal","error")}};return f.jsxs(f.Fragment,{children:[f.jsx(fa,{title:"Reports | File Renamer",description:"Export report hasil rename."}),f.jsx(dr,{pageTitle:"Reports"}),f.jsxs("div",{className:"rounded-2xl border border-gray-200 bg-white p-6 shadow-sm dark:border-gray-800 dark:bg-white/[0.03]",children:[f.jsxs("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-[1fr_auto] md:items-end",children:[f.jsxs("label",{className:"text-sm font-semibold text-gray-700 dark:text-gray-300",children:["Batch",f.jsxs("select",{value:a,onChange:p=>r(p.target.value),className:"mt-2 h-11 w-full rounded-lg border border-gray-200 px-3 dark:border-gray-700 dark:bg-gray-900",children:[f.jsx("option",{value:"",children:"Semua batch"}),e.map(p=>f.jsx("option",{value:p.id,children:p.batch_code},p.id))]})]}),f.jsx("button",{onClick:u,className:"h-11 rounded-xl bg-brand-500 px-5 text-sm font-bold text-white",children:"Generate Rename Result"})]}),o&&f.jsxs("div",{className:"mt-6 rounded-2xl border border-emerald-100 bg-emerald-50 p-4 dark:border-emerald-500/20 dark:bg-emerald-500/10",children:[f.jsx("p",{className:"font-bold text-emerald-700 dark:text-emerald-300",children:o.report_filename}),f.jsxs("p",{className:"mt-1 text-sm text-emerald-700 dark:text-emerald-300",children:[o.total_rows," row berhasil diexport."]}),f.jsxs("button",{type:"button",onClick:m,className:"mt-3 inline-flex items-center gap-2 rounded-xl bg-emerald-500 px-4 py-2 text-sm font-bold text-white",children:[f.jsx(uu,{className:"h-4 w-4"})," Download"]})]})]})]})}function JB(){return f.jsxs(Y9,{children:[f.jsx(Sj,{}),f.jsxs(w9,{children:[f.jsxs(Ut,{path:"/",element:f.jsx(Cj,{children:f.jsx(kj,{})}),children:[f.jsx(Ut,{index:!0,element:f.jsx(TO,{})}),f.jsx(Ut,{path:"profile",element:f.jsx(ML,{})}),f.jsxs(Ut,{element:f.jsx(Ux,{allowedRoles:["superadmin","admin"]}),children:[f.jsx(Ut,{path:"activity-logs",element:f.jsx(DL,{})}),f.jsx(Ut,{path:"master",element:f.jsx(qL,{})}),f.jsx(Ut,{path:"master/import",element:f.jsx(ZL,{})}),f.jsx(Ut,{path:"uploads",element:f.jsx(KB,{})}),f.jsx(Ut,{path:"reviews",element:f.jsx(WB,{})}),f.jsx(Ut,{path:"reports",element:f.jsx(QB,{})})]}),f.jsx(Ut,{element:f.jsx(Ux,{allowedRoles:["superadmin"]}),children:f.jsx(Ut,{path:"admins",element:f.jsx(PL,{})})}),f.jsx(Ut,{path:"*",element:f.jsx(cp,{})})]}),f.jsx(Ut,{path:"/login",element:f.jsx(jj,{children:f.jsx(_A,{})})}),f.jsx(Ut,{path:"*",element:f.jsx(cp,{})})]})]})}const Ov="__compare_pkwt_request_metadata_patched__",ju="X-Client-User-Agent";function zp(){return typeof navigator>"u"?"unknown":navigator.userAgent||"unknown"}function _v(e,t){const a=new Headers(e);return t&&new Headers(t).forEach((r,o)=>{a.set(o,r)}),a.has(ju)||a.set(ju,zp()),a}function ez(){if(typeof window>"u"||typeof window.fetch!="function")return;const e=window.fetch.bind(window);window.fetch=async(t,a)=>{let r;if(t instanceof Request){const o=_v(t.headers,a==null?void 0:a.headers);r=await e(new Request(t,{...a,headers:o}))}else{const o=_v(void 0,a==null?void 0:a.headers);r=await e(t,{...a,headers:o})}return await tz(r,t),r}}async function tz(e,t){if(e.status!==401)return;let a={};try{a=await e.clone().json()}catch{a={}}const r=t instanceof Request?t.url:String(t);Zp(e.status,a,r)&&Kp()}function nz(){tt.interceptors.request.use(e=>{const t=e.headers;return t&&typeof t.set=="function"?(t.set(ju,zp()),e):(e.headers={...t||{},[ju]:zp()},e)}),tt.interceptors.response.use(e=>e,e=>{var t,a,r;return Zp((t=e==null?void 0:e.response)==null?void 0:t.status,(a=e==null?void 0:e.response)==null?void 0:a.data,(r=e==null?void 0:e.config)==null?void 0:r.url)&&Kp(),Promise.reject(e)})}function az(){if(typeof window>"u")return;const e=window;e[Ov]||(ez(),nz(),e[Ov]=!0)}az();tt.interceptors.request.use(e=>e);k7.createRoot(document.getElementById("root")).render(f.jsx(w.StrictMode,{children:f.jsx(nS,{children:f.jsx(Jj,{children:f.jsx(JB,{})})})}));
