var Gy=e=>{throw TypeError(e)};var gh=(e,n,a)=>n.has(e)||Gy("Cannot "+a);var M=(e,n,a)=>(gh(e,n,"read from private field"),a?a.call(e):n.get(e)),Ce=(e,n,a)=>n.has(e)?Gy("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),he=(e,n,a,r)=>(gh(e,n,"write to private field"),r?r.call(e,a):n.set(e,a),a),Fe=(e,n,a)=>(gh(e,n,"access private method"),a);var Ku=(e,n,a,r)=>({set _(o){he(e,n,o,a)},get _(){return M(e,n,r)}});(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const u of o)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&r(f)}).observe(document,{childList:!0,subtree:!0});function a(o){const u={};return o.integrity&&(u.integrity=o.integrity),o.referrerPolicy&&(u.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?u.credentials="include":o.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function r(o){if(o.ep)return;o.ep=!0;const u=a(o);fetch(o.href,u)}})();function Bc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ph={exports:{}},to={};/**
 * @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 Yy;function IS(){if(Yy)return to;Yy=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(r,o,u){var f=null;if(u!==void 0&&(f=""+u),o.key!==void 0&&(f=""+o.key),"key"in o){u={};for(var m in o)m!=="key"&&(u[m]=o[m])}else u=o;return o=u.ref,{$$typeof:e,type:r,key:f,ref:o!==void 0?o:null,props:u}}return to.Fragment=n,to.jsx=a,to.jsxs=a,to}var $y;function qS(){return $y||($y=1,ph.exports=IS()),ph.exports}var c=qS(),yh={exports:{}},He={};/**
 * @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 Xy;function QS(){if(Xy)return He;Xy=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=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"),v=Symbol.iterator;function b(N){return N===null||typeof N!="object"?null:(N=v&&N[v]||N["@@iterator"],typeof N=="function"?N:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},S=Object.assign,j={};function C(N,X,le){this.props=N,this.context=X,this.refs=j,this.updater=le||x}C.prototype.isReactComponent={},C.prototype.setState=function(N,X){if(typeof N!="object"&&typeof N!="function"&&N!=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,N,X,"setState")},C.prototype.forceUpdate=function(N){this.updater.enqueueForceUpdate(this,N,"forceUpdate")};function k(){}k.prototype=C.prototype;function z(N,X,le){this.props=N,this.context=X,this.refs=j,this.updater=le||x}var _=z.prototype=new k;_.constructor=z,S(_,C.prototype),_.isPureReactComponent=!0;var Z=Array.isArray,R={H:null,A:null,T:null,S:null},W=Object.prototype.hasOwnProperty;function ue(N,X,le,q,re,we){return le=we.ref,{$$typeof:e,type:N,key:X,ref:le!==void 0?le:null,props:we}}function se(N,X){return ue(N.type,X,void 0,void 0,void 0,N.props)}function Q(N){return typeof N=="object"&&N!==null&&N.$$typeof===e}function ne(N){var X={"=":"=0",":":"=2"};return"$"+N.replace(/[=:]/g,function(le){return X[le]})}var fe=/\/+/g;function ge(N,X){return typeof N=="object"&&N!==null&&N.key!=null?ne(""+N.key):X.toString(36)}function De(){}function ce(N){switch(N.status){case"fulfilled":return N.value;case"rejected":throw N.reason;default:switch(typeof N.status=="string"?N.then(De,De):(N.status="pending",N.then(function(X){N.status==="pending"&&(N.status="fulfilled",N.value=X)},function(X){N.status==="pending"&&(N.status="rejected",N.reason=X)})),N.status){case"fulfilled":return N.value;case"rejected":throw N.reason}}throw N}function P(N,X,le,q,re){var we=typeof N;(we==="undefined"||we==="boolean")&&(N=null);var Re=!1;if(N===null)Re=!0;else switch(we){case"bigint":case"string":case"number":Re=!0;break;case"object":switch(N.$$typeof){case e:case n:Re=!0;break;case y:return Re=N._init,P(Re(N._payload),X,le,q,re)}}if(Re)return re=re(N),Re=q===""?"."+ge(N,0):q,Z(re)?(le="",Re!=null&&(le=Re.replace(fe,"$&/")+"/"),P(re,X,le,"",function(ze){return ze})):re!=null&&(Q(re)&&(re=se(re,le+(re.key==null||N&&N.key===re.key?"":(""+re.key).replace(fe,"$&/")+"/")+Re)),X.push(re)),1;Re=0;var dt=q===""?".":q+":";if(Z(N))for(var Ve=0;Ve<N.length;Ve++)q=N[Ve],we=dt+ge(q,Ve),Re+=P(q,X,le,we,re);else if(Ve=b(N),typeof Ve=="function")for(N=Ve.call(N),Ve=0;!(q=N.next()).done;)q=q.value,we=dt+ge(q,Ve++),Re+=P(q,X,le,we,re);else if(we==="object"){if(typeof N.then=="function")return P(ce(N),X,le,q,re);throw X=String(N),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(N).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return Re}function H(N,X,le){if(N==null)return N;var q=[],re=0;return P(N,q,"","",function(we){return X.call(le,we,re++)}),q}function te(N){if(N._status===-1){var X=N._result;X=X(),X.then(function(le){(N._status===0||N._status===-1)&&(N._status=1,N._result=le)},function(le){(N._status===0||N._status===-1)&&(N._status=2,N._result=le)}),N._status===-1&&(N._status=0,N._result=X)}if(N._status===1)return N._result.default;throw N._result}var $=typeof reportError=="function"?reportError:function(N){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=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(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",N);return}console.error(N)};function oe(){}return He.Children={map:H,forEach:function(N,X,le){H(N,function(){X.apply(this,arguments)},le)},count:function(N){var X=0;return H(N,function(){X++}),X},toArray:function(N){return H(N,function(X){return X})||[]},only:function(N){if(!Q(N))throw Error("React.Children.only expected to receive a single React element child.");return N}},He.Component=C,He.Fragment=a,He.Profiler=o,He.PureComponent=z,He.StrictMode=r,He.Suspense=p,He.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=R,He.act=function(){throw Error("act(...) is not supported in production builds of React.")},He.cache=function(N){return function(){return N.apply(null,arguments)}},He.cloneElement=function(N,X,le){if(N==null)throw Error("The argument must be a React element, but you passed "+N+".");var q=S({},N.props),re=N.key,we=void 0;if(X!=null)for(Re in X.ref!==void 0&&(we=void 0),X.key!==void 0&&(re=""+X.key),X)!W.call(X,Re)||Re==="key"||Re==="__self"||Re==="__source"||Re==="ref"&&X.ref===void 0||(q[Re]=X[Re]);var Re=arguments.length-2;if(Re===1)q.children=le;else if(1<Re){for(var dt=Array(Re),Ve=0;Ve<Re;Ve++)dt[Ve]=arguments[Ve+2];q.children=dt}return ue(N.type,re,void 0,void 0,we,q)},He.createContext=function(N){return N={$$typeof:f,_currentValue:N,_currentValue2:N,_threadCount:0,Provider:null,Consumer:null},N.Provider=N,N.Consumer={$$typeof:u,_context:N},N},He.createElement=function(N,X,le){var q,re={},we=null;if(X!=null)for(q in X.key!==void 0&&(we=""+X.key),X)W.call(X,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(re[q]=X[q]);var Re=arguments.length-2;if(Re===1)re.children=le;else if(1<Re){for(var dt=Array(Re),Ve=0;Ve<Re;Ve++)dt[Ve]=arguments[Ve+2];re.children=dt}if(N&&N.defaultProps)for(q in Re=N.defaultProps,Re)re[q]===void 0&&(re[q]=Re[q]);return ue(N,we,void 0,void 0,null,re)},He.createRef=function(){return{current:null}},He.forwardRef=function(N){return{$$typeof:m,render:N}},He.isValidElement=Q,He.lazy=function(N){return{$$typeof:y,_payload:{_status:-1,_result:N},_init:te}},He.memo=function(N,X){return{$$typeof:g,type:N,compare:X===void 0?null:X}},He.startTransition=function(N){var X=R.T,le={};R.T=le;try{var q=N(),re=R.S;re!==null&&re(le,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(oe,$)}catch(we){$(we)}finally{R.T=X}},He.unstable_useCacheRefresh=function(){return R.H.useCacheRefresh()},He.use=function(N){return R.H.use(N)},He.useActionState=function(N,X,le){return R.H.useActionState(N,X,le)},He.useCallback=function(N,X){return R.H.useCallback(N,X)},He.useContext=function(N){return R.H.useContext(N)},He.useDebugValue=function(){},He.useDeferredValue=function(N,X){return R.H.useDeferredValue(N,X)},He.useEffect=function(N,X){return R.H.useEffect(N,X)},He.useId=function(){return R.H.useId()},He.useImperativeHandle=function(N,X,le){return R.H.useImperativeHandle(N,X,le)},He.useInsertionEffect=function(N,X){return R.H.useInsertionEffect(N,X)},He.useLayoutEffect=function(N,X){return R.H.useLayoutEffect(N,X)},He.useMemo=function(N,X){return R.H.useMemo(N,X)},He.useOptimistic=function(N,X){return R.H.useOptimistic(N,X)},He.useReducer=function(N,X,le){return R.H.useReducer(N,X,le)},He.useRef=function(N){return R.H.useRef(N)},He.useState=function(N){return R.H.useState(N)},He.useSyncExternalStore=function(N,X,le){return R.H.useSyncExternalStore(N,X,le)},He.useTransition=function(){return R.H.useTransition()},He.version="19.0.0",He}var Ky;function zm(){return Ky||(Ky=1,yh.exports=QS()),yh.exports}var E=zm();const $i=Bc(E);var vh={exports:{}},no={},wh={exports:{}},bh={};/**
 * @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 Zy;function GS(){return Zy||(Zy=1,function(e){function n(H,te){var $=H.length;H.push(te);e:for(;0<$;){var oe=$-1>>>1,N=H[oe];if(0<o(N,te))H[oe]=te,H[$]=N,$=oe;else break e}}function a(H){return H.length===0?null:H[0]}function r(H){if(H.length===0)return null;var te=H[0],$=H.pop();if($!==te){H[0]=$;e:for(var oe=0,N=H.length,X=N>>>1;oe<X;){var le=2*(oe+1)-1,q=H[le],re=le+1,we=H[re];if(0>o(q,$))re<N&&0>o(we,q)?(H[oe]=we,H[re]=$,oe=re):(H[oe]=q,H[le]=$,oe=le);else if(re<N&&0>o(we,$))H[oe]=we,H[re]=$,oe=re;else break e}}return te}function o(H,te){var $=H.sortIndex-te.sortIndex;return $!==0?$:H.id-te.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;e.unstable_now=function(){return u.now()}}else{var f=Date,m=f.now();e.unstable_now=function(){return f.now()-m}}var p=[],g=[],y=1,v=null,b=3,x=!1,S=!1,j=!1,C=typeof setTimeout=="function"?setTimeout:null,k=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function _(H){for(var te=a(g);te!==null;){if(te.callback===null)r(g);else if(te.startTime<=H)r(g),te.sortIndex=te.expirationTime,n(p,te);else break;te=a(g)}}function Z(H){if(j=!1,_(H),!S)if(a(p)!==null)S=!0,ce();else{var te=a(g);te!==null&&P(Z,te.startTime-H)}}var R=!1,W=-1,ue=5,se=-1;function Q(){return!(e.unstable_now()-se<ue)}function ne(){if(R){var H=e.unstable_now();se=H;var te=!0;try{e:{S=!1,j&&(j=!1,k(W),W=-1),x=!0;var $=b;try{t:{for(_(H),v=a(p);v!==null&&!(v.expirationTime>H&&Q());){var oe=v.callback;if(typeof oe=="function"){v.callback=null,b=v.priorityLevel;var N=oe(v.expirationTime<=H);if(H=e.unstable_now(),typeof N=="function"){v.callback=N,_(H),te=!0;break t}v===a(p)&&r(p),_(H)}else r(p);v=a(p)}if(v!==null)te=!0;else{var X=a(g);X!==null&&P(Z,X.startTime-H),te=!1}}break e}finally{v=null,b=$,x=!1}te=void 0}}finally{te?fe():R=!1}}}var fe;if(typeof z=="function")fe=function(){z(ne)};else if(typeof MessageChannel<"u"){var ge=new MessageChannel,De=ge.port2;ge.port1.onmessage=ne,fe=function(){De.postMessage(null)}}else fe=function(){C(ne,0)};function ce(){R||(R=!0,fe())}function P(H,te){W=C(function(){H(e.unstable_now())},te)}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(H){H.callback=null},e.unstable_continueExecution=function(){S||x||(S=!0,ce())},e.unstable_forceFrameRate=function(H){0>H||125<H?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<H?Math.floor(1e3/H):5},e.unstable_getCurrentPriorityLevel=function(){return b},e.unstable_getFirstCallbackNode=function(){return a(p)},e.unstable_next=function(H){switch(b){case 1:case 2:case 3:var te=3;break;default:te=b}var $=b;b=te;try{return H()}finally{b=$}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(H,te){switch(H){case 1:case 2:case 3:case 4:case 5:break;default:H=3}var $=b;b=H;try{return te()}finally{b=$}},e.unstable_scheduleCallback=function(H,te,$){var oe=e.unstable_now();switch(typeof $=="object"&&$!==null?($=$.delay,$=typeof $=="number"&&0<$?oe+$:oe):$=oe,H){case 1:var N=-1;break;case 2:N=250;break;case 5:N=1073741823;break;case 4:N=1e4;break;default:N=5e3}return N=$+N,H={id:y++,callback:te,priorityLevel:H,startTime:$,expirationTime:N,sortIndex:-1},$>oe?(H.sortIndex=$,n(g,H),a(p)===null&&H===a(g)&&(j?(k(W),W=-1):j=!0,P(Z,$-oe))):(H.sortIndex=N,n(p,H),S||x||(S=!0,ce())),H},e.unstable_shouldYield=Q,e.unstable_wrapCallback=function(H){var te=b;return function(){var $=b;b=te;try{return H.apply(this,arguments)}finally{b=$}}}}(bh)),bh}var Jy;function YS(){return Jy||(Jy=1,wh.exports=GS()),wh.exports}var xh={exports:{}},Wt={};/**
 * @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 Wy;function $S(){if(Wy)return Wt;Wy=1;var e=zm();function n(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(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},o=Symbol.for("react.portal");function u(p,g,y){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:v==null?null:""+v,children:p,containerInfo:g,implementation:y}}var f=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 Wt.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Wt.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(n(299));return u(p,g,null,y)},Wt.flushSync=function(p){var g=f.T,y=r.p;try{if(f.T=null,r.p=2,p)return p()}finally{f.T=g,r.p=y,r.d.f()}},Wt.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))},Wt.prefetchDNS=function(p){typeof p=="string"&&r.d.D(p)},Wt.preinit=function(p,g){if(typeof p=="string"&&g&&typeof g.as=="string"){var y=g.as,v=m(y,g.crossOrigin),b=typeof g.integrity=="string"?g.integrity:void 0,x=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?r.d.S(p,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:b,fetchPriority:x}):y==="script"&&r.d.X(p,{crossOrigin:v,integrity:b,fetchPriority:x,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},Wt.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)},Wt.preload=function(p,g){if(typeof p=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,v=m(y,g.crossOrigin);r.d.L(p,y,{crossOrigin:v,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})}},Wt.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)},Wt.requestFormReset=function(p){r.d.r(p)},Wt.unstable_batchedUpdates=function(p,g){return p(g)},Wt.useFormState=function(p,g,y){return f.H.useFormState(p,g,y)},Wt.useFormStatus=function(){return f.H.useHostTransitionStatus()},Wt.version="19.0.0",Wt}var ev;function Fw(){if(ev)return xh.exports;ev=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),xh.exports=$S(),xh.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 tv;function XS(){if(tv)return no;tv=1;var e=YS(),n=zm(),a=Fw();function r(t){var i="https://react.dev/errors/"+t;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 #"+t+"; visit "+i+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function o(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}var u=Symbol.for("react.element"),f=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"),v=Symbol.for("react.provider"),b=Symbol.for("react.consumer"),x=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),k=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),_=Symbol.for("react.offscreen"),Z=Symbol.for("react.memo_cache_sentinel"),R=Symbol.iterator;function W(t){return t===null||typeof t!="object"?null:(t=R&&t[R]||t["@@iterator"],typeof t=="function"?t:null)}var ue=Symbol.for("react.client.reference");function se(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===ue?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case p:return"Fragment";case m:return"Portal";case y:return"Profiler";case g:return"StrictMode";case j:return"Suspense";case C:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case x:return(t.displayName||"Context")+".Provider";case b:return(t._context.displayName||"Context")+".Consumer";case S:var i=t.render;return t=t.displayName,t||(t=i.displayName||i.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case k:return i=t.displayName||null,i!==null?i:se(t.type)||"Memo";case z:i=t._payload,t=t._init;try{return se(t(i))}catch{}}return null}var Q=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ne=Object.assign,fe,ge;function De(t){if(fe===void 0)try{throw Error()}catch(s){var i=s.stack.trim().match(/\n( *(at )?)/);fe=i&&i[1]||"",ge=-1<s.stack.indexOf(`
    at`)?" (<anonymous>)":-1<s.stack.indexOf("@")?"@unknown:0:0":""}return`
`+fe+t+ge}var ce=!1;function P(t,i){if(!t||ce)return"";ce=!0;var s=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(i){var ae=function(){throw Error()};if(Object.defineProperty(ae.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ae,[])}catch(K){var V=K}Reflect.construct(t,[],ae)}else{try{ae.call()}catch(K){V=K}t.call(ae.prototype)}}else{try{throw Error()}catch(K){V=K}(ae=t())&&typeof ae.catch=="function"&&ae.catch(function(){})}}catch(K){if(K&&V&&typeof K.stack=="string")return[K.stack,V.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(),w=h[0],A=h[1];if(w&&A){var T=w.split(`
`),B=A.split(`
`);for(d=l=0;l<T.length&&!T[l].includes("DetermineComponentFrameRoot");)l++;for(;d<B.length&&!B[d].includes("DetermineComponentFrameRoot");)d++;if(l===T.length||d===B.length)for(l=T.length-1,d=B.length-1;1<=l&&0<=d&&T[l]!==B[d];)d--;for(;1<=l&&0<=d;l--,d--)if(T[l]!==B[d]){if(l!==1||d!==1)do if(l--,d--,0>d||T[l]!==B[d]){var J=`
`+T[l].replace(" at new "," at ");return t.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",t.displayName)),J}while(1<=l&&0<=d);break}}}finally{ce=!1,Error.prepareStackTrace=s}return(s=t?t.displayName||t.name:"")?De(s):""}function H(t){switch(t.tag){case 26:case 27:case 5:return De(t.type);case 16:return De("Lazy");case 13:return De("Suspense");case 19:return De("SuspenseList");case 0:case 15:return t=P(t.type,!1),t;case 11:return t=P(t.type.render,!1),t;case 1:return t=P(t.type,!0),t;default:return""}}function te(t){try{var i="";do i+=H(t),t=t.return;while(t);return i}catch(s){return`
Error generating stack: `+s.message+`
`+s.stack}}function $(t){var i=t,s=t;if(t.alternate)for(;i.return;)i=i.return;else{t=i;do i=t,(i.flags&4098)!==0&&(s=i.return),t=i.return;while(t)}return i.tag===3?s:null}function oe(t){if(t.tag===13){var i=t.memoizedState;if(i===null&&(t=t.alternate,t!==null&&(i=t.memoizedState)),i!==null)return i.dehydrated}return null}function N(t){if($(t)!==t)throw Error(r(188))}function X(t){var i=t.alternate;if(!i){if(i=$(t),i===null)throw Error(r(188));return i!==t?null:t}for(var s=t,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 N(d),t;if(h===l)return N(d),i;h=h.sibling}throw Error(r(188))}if(s.return!==l.return)s=d,l=h;else{for(var w=!1,A=d.child;A;){if(A===s){w=!0,s=d,l=h;break}if(A===l){w=!0,l=d,s=h;break}A=A.sibling}if(!w){for(A=h.child;A;){if(A===s){w=!0,s=h,l=d;break}if(A===l){w=!0,l=h,s=d;break}A=A.sibling}if(!w)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?t:i}function le(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t;for(t=t.child;t!==null;){if(i=le(t),i!==null)return i;t=t.sibling}return null}var q=Array.isArray,re=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,we={pending:!1,data:null,method:null,action:null},Re=[],dt=-1;function Ve(t){return{current:t}}function ze(t){0>dt||(t.current=Re[dt],Re[dt]=null,dt--)}function _e(t,i){dt++,Re[dt]=t.current,t.current=i}var bt=Ve(null),xn=Ve(null),Rt=Ve(null),Yr=Ve(null);function $r(t,i){switch(_e(Rt,i),_e(xn,t),_e(bt,null),t=i.nodeType,t){case 9:case 11:i=(i=i.documentElement)&&(i=i.namespaceURI)?xy(i):0;break;default:if(t=t===8?i.parentNode:i,i=t.tagName,t=t.namespaceURI)t=xy(t),i=Sy(t,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}ze(bt),_e(bt,i)}function Oa(){ze(bt),ze(xn),ze(Rt)}function rl(t){t.memoizedState!==null&&_e(Yr,t);var i=bt.current,s=Sy(i,t.type);i!==s&&(_e(xn,t),_e(bt,s))}function Xr(t){xn.current===t&&(ze(bt),ze(xn)),Yr.current===t&&(ze(Yr),Kl._currentValue=we)}var sl=Object.prototype.hasOwnProperty,ll=e.unstable_scheduleCallback,ia=e.unstable_cancelCallback,tr=e.unstable_shouldYield,Uo=e.unstable_requestPaint,hn=e.unstable_now,ya=e.unstable_getCurrentPriorityLevel,zn=e.unstable_ImmediatePriority,ol=e.unstable_UserBlockingPriority,oi=e.unstable_NormalPriority,ud=e.unstable_LowPriority,ra=e.unstable_IdlePriority,Ho=e.log,Fo=e.unstable_setDisableYieldValue,ui=null,rn=null;function Po(t){if(rn&&typeof rn.onCommitFiberRoot=="function")try{rn.onCommitFiberRoot(ui,t,void 0,(t.current.flags&128)===128)}catch{}}function Sn(t){if(typeof Ho=="function"&&Fo(t),rn&&typeof rn.setStrictMode=="function")try{rn.setStrictMode(ui,t)}catch{}}var Zt=Math.clz32?Math.clz32:Vo,ul=Math.log,cd=Math.LN2;function Vo(t){return t>>>=0,t===0?32:31-(ul(t)/cd|0)|0}var Kr=128,nr=4194304;function Ln(t){var i=t&42;if(i!==0)return i;switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return t}}function _a(t,i){var s=t.pendingLanes;if(s===0)return 0;var l=0,d=t.suspendedLanes,h=t.pingedLanes,w=t.warmLanes;t=t.finishedLanes!==0;var A=s&134217727;return A!==0?(s=A&~d,s!==0?l=Ln(s):(h&=A,h!==0?l=Ln(h):t||(w=A&~w,w!==0&&(l=Ln(w))))):(A=s&~d,A!==0?l=Ln(A):h!==0?l=Ln(h):t||(w=s&~w,w!==0&&(l=Ln(w)))),l===0?0:i!==0&&i!==l&&(i&d)===0&&(d=l&-l,w=i&-i,d>=w||d===32&&(w&4194176)!==0)?i:l}function ar(t,i){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&i)===0}function dd(t,i){switch(t){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 D(){var t=Kr;return Kr<<=1,(Kr&4194176)===0&&(Kr=128),t}function U(){var t=nr;return nr<<=1,(nr&62914560)===0&&(nr=4194304),t}function I(t){for(var i=[],s=0;31>s;s++)i.push(t);return i}function ie(t,i){t.pendingLanes|=i,i!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function de(t,i,s,l,d,h){var w=t.pendingLanes;t.pendingLanes=s,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=s,t.entangledLanes&=s,t.errorRecoveryDisabledLanes&=s,t.shellSuspendCounter=0;var A=t.entanglements,T=t.expirationTimes,B=t.hiddenUpdates;for(s=w&~s;0<s;){var J=31-Zt(s),ae=1<<J;A[J]=0,T[J]=-1;var V=B[J];if(V!==null)for(B[J]=null,J=0;J<V.length;J++){var K=V[J];K!==null&&(K.lane&=-536870913)}s&=~ae}l!==0&&Ne(t,l,0),h!==0&&d===0&&t.tag!==0&&(t.suspendedLanes|=h&~(w&~i))}function Ne(t,i,s){t.pendingLanes|=i,t.suspendedLanes&=~i;var l=31-Zt(i);t.entangledLanes|=i,t.entanglements[l]=t.entanglements[l]|1073741824|s&4194218}function Ee(t,i){var s=t.entangledLanes|=i;for(t=t.entanglements;s;){var l=31-Zt(s),d=1<<l;d&i|t[l]&i&&(t[l]|=i),s&=~d}}function be(t){return t&=-t,2<t?8<t?(t&134217727)!==0?32:268435456:8:2}function Se(){var t=re.p;return t!==0?t:(t=window.event,t===void 0?32:Fy(t.type))}function me(t,i){var s=re.p;try{return re.p=t,i()}finally{re.p=s}}var pe=Math.random().toString(36).slice(2),ye="__reactFiber$"+pe,Oe="__reactProps$"+pe,tt="__reactContainer$"+pe,Dt="__reactEvents$"+pe,xt="__reactListeners$"+pe,mt="__reactHandles$"+pe,St="__reactResources$"+pe,Un="__reactMarker$"+pe;function Ba(t){delete t[ye],delete t[Oe],delete t[Dt],delete t[xt],delete t[mt]}function Qt(t){var i=t[ye];if(i)return i;for(var s=t.parentNode;s;){if(i=s[tt]||s[ye]){if(s=i.alternate,i.child!==null||s!==null&&s.child!==null)for(t=Ey(t);t!==null;){if(s=t[ye])return s;t=Ey(t)}return i}t=s,s=t.parentNode}return null}function Gt(t){if(t=t[ye]||t[tt]){var i=t.tag;if(i===5||i===6||i===13||i===26||i===27||i===3)return t}return null}function za(t){var i=t.tag;if(i===5||i===26||i===27||i===6)return t.stateNode;throw Error(r(33))}function Hn(t){var i=t[St];return i||(i=t[St]={hoistableStyles:new Map,hoistableScripts:new Map}),i}function st(t){t[Un]=!0}var ir=new Set,rr={};function $e(t,i){gt(t,i),gt(t+"Capture",i)}function gt(t,i){for(rr[t]=i,t=0;t<i.length;t++)ir.add(i[t])}var mn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),sr=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]*$"),pt={},La={};function Io(t){return sl.call(La,t)?!0:sl.call(pt,t)?!1:sr.test(t)?La[t]=!0:(pt[t]=!0,!1)}function Zr(t,i,s){if(Io(i))if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":t.removeAttribute(i);return;case"boolean":var l=i.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){t.removeAttribute(i);return}}t.setAttribute(i,""+s)}}function qo(t,i,s){if(s===null)t.removeAttribute(i);else{switch(typeof s){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(i);return}t.setAttribute(i,""+s)}}function Ua(t,i,s,l){if(l===null)t.removeAttribute(s);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(s);return}t.setAttributeNS(i,s,""+l)}}function Fn(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function Cg(t){var i=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(i==="checkbox"||i==="radio")}function U2(t){var i=Cg(t)?"checked":"value",s=Object.getOwnPropertyDescriptor(t.constructor.prototype,i),l=""+t[i];if(!t.hasOwnProperty(i)&&typeof s<"u"&&typeof s.get=="function"&&typeof s.set=="function"){var d=s.get,h=s.set;return Object.defineProperty(t,i,{configurable:!0,get:function(){return d.call(this)},set:function(w){l=""+w,h.call(this,w)}}),Object.defineProperty(t,i,{enumerable:s.enumerable}),{getValue:function(){return l},setValue:function(w){l=""+w},stopTracking:function(){t._valueTracker=null,delete t[i]}}}}function Qo(t){t._valueTracker||(t._valueTracker=U2(t))}function Eg(t){if(!t)return!1;var i=t._valueTracker;if(!i)return!0;var s=i.getValue(),l="";return t&&(l=Cg(t)?t.checked?"true":"false":t.value),t=l,t!==s?(i.setValue(t),!0):!1}function Go(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}var H2=/[\n"\\]/g;function Pn(t){return t.replace(H2,function(i){return"\\"+i.charCodeAt(0).toString(16)+" "})}function fd(t,i,s,l,d,h,w,A){t.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?t.type=w:t.removeAttribute("type"),i!=null?w==="number"?(i===0&&t.value===""||t.value!=i)&&(t.value=""+Fn(i)):t.value!==""+Fn(i)&&(t.value=""+Fn(i)):w!=="submit"&&w!=="reset"||t.removeAttribute("value"),i!=null?hd(t,w,Fn(i)):s!=null?hd(t,w,Fn(s)):l!=null&&t.removeAttribute("value"),d==null&&h!=null&&(t.defaultChecked=!!h),d!=null&&(t.checked=d&&typeof d!="function"&&typeof d!="symbol"),A!=null&&typeof A!="function"&&typeof A!="symbol"&&typeof A!="boolean"?t.name=""+Fn(A):t.removeAttribute("name")}function jg(t,i,s,l,d,h,w,A){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(t.type=h),i!=null||s!=null){if(!(h!=="submit"&&h!=="reset"||i!=null))return;s=s!=null?""+Fn(s):"",i=i!=null?""+Fn(i):s,A||i===t.value||(t.value=i),t.defaultValue=i}l=l??d,l=typeof l!="function"&&typeof l!="symbol"&&!!l,t.checked=A?t.checked:!!l,t.defaultChecked=!!l,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(t.name=w)}function hd(t,i,s){i==="number"&&Go(t.ownerDocument)===t||t.defaultValue===""+s||(t.defaultValue=""+s)}function Jr(t,i,s,l){if(t=t.options,i){i={};for(var d=0;d<s.length;d++)i["$"+s[d]]=!0;for(s=0;s<t.length;s++)d=i.hasOwnProperty("$"+t[s].value),t[s].selected!==d&&(t[s].selected=d),d&&l&&(t[s].defaultSelected=!0)}else{for(s=""+Fn(s),i=null,d=0;d<t.length;d++){if(t[d].value===s){t[d].selected=!0,l&&(t[d].defaultSelected=!0);return}i!==null||t[d].disabled||(i=t[d])}i!==null&&(i.selected=!0)}}function Rg(t,i,s){if(i!=null&&(i=""+Fn(i),i!==t.value&&(t.value=i),s==null)){t.defaultValue!==i&&(t.defaultValue=i);return}t.defaultValue=s!=null?""+Fn(s):""}function Ng(t,i,s,l){if(i==null){if(l!=null){if(s!=null)throw Error(r(92));if(q(l)){if(1<l.length)throw Error(r(93));l=l[0]}s=l}s==null&&(s=""),i=s}s=Fn(i),t.defaultValue=s,l=t.textContent,l===s&&l!==""&&l!==null&&(t.value=l)}function Wr(t,i){if(i){var s=t.firstChild;if(s&&s===t.lastChild&&s.nodeType===3){s.nodeValue=i;return}}t.textContent=i}var F2=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 Tg(t,i,s){var l=i.indexOf("--")===0;s==null||typeof s=="boolean"||s===""?l?t.setProperty(i,""):i==="float"?t.cssFloat="":t[i]="":l?t.setProperty(i,s):typeof s!="number"||s===0||F2.has(i)?i==="float"?t.cssFloat=s:t[i]=(""+s).trim():t[i]=s+"px"}function kg(t,i,s){if(i!=null&&typeof i!="object")throw Error(r(62));if(t=t.style,s!=null){for(var l in s)!s.hasOwnProperty(l)||i!=null&&i.hasOwnProperty(l)||(l.indexOf("--")===0?t.setProperty(l,""):l==="float"?t.cssFloat="":t[l]="");for(var d in i)l=i[d],i.hasOwnProperty(d)&&s[d]!==l&&Tg(t,d,l)}else for(var h in i)i.hasOwnProperty(h)&&Tg(t,h,i[h])}function md(t){if(t.indexOf("-")===-1)return!1;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var P2=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"]]),V2=/^[\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 Yo(t){return V2.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}var gd=null;function pd(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var es=null,ts=null;function Mg(t){var i=Gt(t);if(i&&(t=i.stateNode)){var s=t[Oe]||null;e:switch(t=i.stateNode,i.type){case"input":if(fd(t,s.value,s.defaultValue,s.defaultValue,s.checked,s.defaultChecked,s.type,s.name),i=s.name,s.type==="radio"&&i!=null){for(s=t;s.parentNode;)s=s.parentNode;for(s=s.querySelectorAll('input[name="'+Pn(""+i)+'"][type="radio"]'),i=0;i<s.length;i++){var l=s[i];if(l!==t&&l.form===t.form){var d=l[Oe]||null;if(!d)throw Error(r(90));fd(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===t.form&&Eg(l)}break e;case"textarea":Rg(t,s.value,s.defaultValue);break e;case"select":i=s.value,i!=null&&Jr(t,!!s.multiple,i,!1)}}}var yd=!1;function Dg(t,i,s){if(yd)return t(i,s);yd=!0;try{var l=t(i);return l}finally{if(yd=!1,(es!==null||ts!==null)&&(ku(),es&&(i=es,t=ts,ts=es=null,Mg(i),t)))for(i=0;i<t.length;i++)Mg(t[i])}}function cl(t,i){var s=t.stateNode;if(s===null)return null;var l=s[Oe]||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)||(t=t.type,l=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!l;break e;default:t=!1}if(t)return null;if(s&&typeof s!="function")throw Error(r(231,i,typeof s));return s}var vd=!1;if(mn)try{var dl={};Object.defineProperty(dl,"passive",{get:function(){vd=!0}}),window.addEventListener("test",dl,dl),window.removeEventListener("test",dl,dl)}catch{vd=!1}var ci=null,wd=null,$o=null;function Og(){if($o)return $o;var t,i=wd,s=i.length,l,d="value"in ci?ci.value:ci.textContent,h=d.length;for(t=0;t<s&&i[t]===d[t];t++);var w=s-t;for(l=1;l<=w&&i[s-l]===d[h-l];l++);return $o=d.slice(t,1<l?1-l:void 0)}function Xo(t){var i=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&i===13&&(t=13)):t=i,t===10&&(t=13),32<=t||t===13?t:0}function Ko(){return!0}function _g(){return!1}function gn(t){function i(s,l,d,h,w){this._reactName=s,this._targetInst=d,this.type=l,this.nativeEvent=h,this.target=w,this.currentTarget=null;for(var A in t)t.hasOwnProperty(A)&&(s=t[A],this[A]=s?s(h):h[A]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?Ko:_g,this.isPropagationStopped=_g,this}return ne(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=Ko)},stopPropagation:function(){var s=this.nativeEvent;s&&(s.stopPropagation?s.stopPropagation():typeof s.cancelBubble!="unknown"&&(s.cancelBubble=!0),this.isPropagationStopped=Ko)},persist:function(){},isPersistent:Ko}),i}var lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Zo=gn(lr),fl=ne({},lr,{view:0,detail:0}),I2=gn(fl),bd,xd,hl,Jo=ne({},fl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ad,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==hl&&(hl&&t.type==="mousemove"?(bd=t.screenX-hl.screenX,xd=t.screenY-hl.screenY):xd=bd=0,hl=t),bd)},movementY:function(t){return"movementY"in t?t.movementY:xd}}),Bg=gn(Jo),q2=ne({},Jo,{dataTransfer:0}),Q2=gn(q2),G2=ne({},fl,{relatedTarget:0}),Sd=gn(G2),Y2=ne({},lr,{animationName:0,elapsedTime:0,pseudoElement:0}),$2=gn(Y2),X2=ne({},lr,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),K2=gn(X2),Z2=ne({},lr,{data:0}),zg=gn(Z2),J2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},W2={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"},e1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function t1(t){var i=this.nativeEvent;return i.getModifierState?i.getModifierState(t):(t=e1[t])?!!i[t]:!1}function Ad(){return t1}var n1=ne({},fl,{key:function(t){if(t.key){var i=J2[t.key]||t.key;if(i!=="Unidentified")return i}return t.type==="keypress"?(t=Xo(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?W2[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ad,charCode:function(t){return t.type==="keypress"?Xo(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Xo(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),a1=gn(n1),i1=ne({},Jo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Lg=gn(i1),r1=ne({},fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ad}),s1=gn(r1),l1=ne({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0}),o1=gn(l1),u1=ne({},Jo,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),c1=gn(u1),d1=ne({},lr,{newState:0,oldState:0}),f1=gn(d1),h1=[9,13,27,32],Cd=mn&&"CompositionEvent"in window,ml=null;mn&&"documentMode"in document&&(ml=document.documentMode);var m1=mn&&"TextEvent"in window&&!ml,Ug=mn&&(!Cd||ml&&8<ml&&11>=ml),Hg=" ",Fg=!1;function Pg(t,i){switch(t){case"keyup":return h1.indexOf(i.keyCode)!==-1;case"keydown":return i.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Vg(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var ns=!1;function g1(t,i){switch(t){case"compositionend":return Vg(i);case"keypress":return i.which!==32?null:(Fg=!0,Hg);case"textInput":return t=i.data,t===Hg&&Fg?null:t;default:return null}}function p1(t,i){if(ns)return t==="compositionend"||!Cd&&Pg(t,i)?(t=Og(),$o=wd=ci=null,ns=!1,t):null;switch(t){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 Ug&&i.locale!=="ko"?null:i.data;default:return null}}var y1={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 Ig(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i==="input"?!!y1[t.type]:i==="textarea"}function qg(t,i,s,l){es?ts?ts.push(l):ts=[l]:es=l,i=Bu(i,"onChange"),0<i.length&&(s=new Zo("onChange","change",null,s,l),t.push({event:s,listeners:i}))}var gl=null,pl=null;function v1(t){py(t,0)}function Wo(t){var i=za(t);if(Eg(i))return t}function Qg(t,i){if(t==="change")return i}var Gg=!1;if(mn){var Ed;if(mn){var jd="oninput"in document;if(!jd){var Yg=document.createElement("div");Yg.setAttribute("oninput","return;"),jd=typeof Yg.oninput=="function"}Ed=jd}else Ed=!1;Gg=Ed&&(!document.documentMode||9<document.documentMode)}function $g(){gl&&(gl.detachEvent("onpropertychange",Xg),pl=gl=null)}function Xg(t){if(t.propertyName==="value"&&Wo(pl)){var i=[];qg(i,pl,t,pd(t)),Dg(v1,i)}}function w1(t,i,s){t==="focusin"?($g(),gl=i,pl=s,gl.attachEvent("onpropertychange",Xg)):t==="focusout"&&$g()}function b1(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Wo(pl)}function x1(t,i){if(t==="click")return Wo(i)}function S1(t,i){if(t==="input"||t==="change")return Wo(i)}function A1(t,i){return t===i&&(t!==0||1/t===1/i)||t!==t&&i!==i}var An=typeof Object.is=="function"?Object.is:A1;function yl(t,i){if(An(t,i))return!0;if(typeof t!="object"||t===null||typeof i!="object"||i===null)return!1;var s=Object.keys(t),l=Object.keys(i);if(s.length!==l.length)return!1;for(l=0;l<s.length;l++){var d=s[l];if(!sl.call(i,d)||!An(t[d],i[d]))return!1}return!0}function Kg(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Zg(t,i){var s=Kg(t);t=0;for(var l;s;){if(s.nodeType===3){if(l=t+s.textContent.length,t<=i&&l>=i)return{node:s,offset:i-t};t=l}e:{for(;s;){if(s.nextSibling){s=s.nextSibling;break e}s=s.parentNode}s=void 0}s=Kg(s)}}function Jg(t,i){return t&&i?t===i?!0:t&&t.nodeType===3?!1:i&&i.nodeType===3?Jg(t,i.parentNode):"contains"in t?t.contains(i):t.compareDocumentPosition?!!(t.compareDocumentPosition(i)&16):!1:!1}function Wg(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var i=Go(t.document);i instanceof t.HTMLIFrameElement;){try{var s=typeof i.contentWindow.location.href=="string"}catch{s=!1}if(s)t=i.contentWindow;else break;i=Go(t.document)}return i}function Rd(t){var i=t&&t.nodeName&&t.nodeName.toLowerCase();return i&&(i==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||i==="textarea"||t.contentEditable==="true")}function C1(t,i){var s=Wg(i);i=t.focusedElem;var l=t.selectionRange;if(s!==i&&i&&i.ownerDocument&&Jg(i.ownerDocument.documentElement,i)){if(l!==null&&Rd(i)){if(t=l.start,s=l.end,s===void 0&&(s=t),"selectionStart"in i)i.selectionStart=t,i.selectionEnd=Math.min(s,i.value.length);else if(s=(t=i.ownerDocument||document)&&t.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=Zg(i,h);var w=Zg(i,l);d&&w&&(s.rangeCount!==1||s.anchorNode!==d.node||s.anchorOffset!==d.offset||s.focusNode!==w.node||s.focusOffset!==w.offset)&&(t=t.createRange(),t.setStart(d.node,d.offset),s.removeAllRanges(),h>l?(s.addRange(t),s.extend(w.node,w.offset)):(t.setEnd(w.node,w.offset),s.addRange(t)))}}for(t=[],s=i;s=s.parentNode;)s.nodeType===1&&t.push({element:s,left:s.scrollLeft,top:s.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<t.length;i++)s=t[i],s.element.scrollLeft=s.left,s.element.scrollTop=s.top}}var E1=mn&&"documentMode"in document&&11>=document.documentMode,as=null,Nd=null,vl=null,Td=!1;function ep(t,i,s){var l=s.window===s?s.document:s.nodeType===9?s:s.ownerDocument;Td||as==null||as!==Go(l)||(l=as,"selectionStart"in l&&Rd(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}),vl&&yl(vl,l)||(vl=l,l=Bu(Nd,"onSelect"),0<l.length&&(i=new Zo("onSelect","select",null,i,s),t.push({event:i,listeners:l}),i.target=as)))}function or(t,i){var s={};return s[t.toLowerCase()]=i.toLowerCase(),s["Webkit"+t]="webkit"+i,s["Moz"+t]="moz"+i,s}var is={animationend:or("Animation","AnimationEnd"),animationiteration:or("Animation","AnimationIteration"),animationstart:or("Animation","AnimationStart"),transitionrun:or("Transition","TransitionRun"),transitionstart:or("Transition","TransitionStart"),transitioncancel:or("Transition","TransitionCancel"),transitionend:or("Transition","TransitionEnd")},kd={},tp={};mn&&(tp=document.createElement("div").style,"AnimationEvent"in window||(delete is.animationend.animation,delete is.animationiteration.animation,delete is.animationstart.animation),"TransitionEvent"in window||delete is.transitionend.transition);function ur(t){if(kd[t])return kd[t];if(!is[t])return t;var i=is[t],s;for(s in i)if(i.hasOwnProperty(s)&&s in tp)return kd[t]=i[s];return t}var np=ur("animationend"),ap=ur("animationiteration"),ip=ur("animationstart"),j1=ur("transitionrun"),R1=ur("transitionstart"),N1=ur("transitioncancel"),rp=ur("transitionend"),sp=new Map,lp="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 sa(t,i){sp.set(t,i),$e(i,[t])}var Vn=[],rs=0,Md=0;function eu(){for(var t=rs,i=Md=rs=0;i<t;){var s=Vn[i];Vn[i++]=null;var l=Vn[i];Vn[i++]=null;var d=Vn[i];Vn[i++]=null;var h=Vn[i];if(Vn[i++]=null,l!==null&&d!==null){var w=l.pending;w===null?d.next=d:(d.next=w.next,w.next=d),l.pending=d}h!==0&&op(s,d,h)}}function tu(t,i,s,l){Vn[rs++]=t,Vn[rs++]=i,Vn[rs++]=s,Vn[rs++]=l,Md|=l,t.lanes|=l,t=t.alternate,t!==null&&(t.lanes|=l)}function Dd(t,i,s,l){return tu(t,i,s,l),nu(t)}function di(t,i){return tu(t,null,null,i),nu(t)}function op(t,i,s){t.lanes|=s;var l=t.alternate;l!==null&&(l.lanes|=s);for(var d=!1,h=t.return;h!==null;)h.childLanes|=s,l=h.alternate,l!==null&&(l.childLanes|=s),h.tag===22&&(t=h.stateNode,t===null||t._visibility&1||(d=!0)),t=h,h=h.return;d&&i!==null&&t.tag===3&&(h=t.stateNode,d=31-Zt(s),h=h.hiddenUpdates,t=h[d],t===null?h[d]=[i]:t.push(i),i.lane=s|536870912)}function nu(t){if(50<Il)throw Il=0,Hf=null,Error(r(185));for(var i=t.return;i!==null;)t=i,i=t.return;return t.tag===3?t.stateNode:null}var ss={},up=new WeakMap;function In(t,i){if(typeof t=="object"&&t!==null){var s=up.get(t);return s!==void 0?s:(i={value:t,source:i,stack:te(i)},up.set(t,i),i)}return{value:t,source:i,stack:te(i)}}var ls=[],os=0,au=null,iu=0,qn=[],Qn=0,cr=null,Ha=1,Fa="";function dr(t,i){ls[os++]=iu,ls[os++]=au,au=t,iu=i}function cp(t,i,s){qn[Qn++]=Ha,qn[Qn++]=Fa,qn[Qn++]=cr,cr=t;var l=Ha;t=Fa;var d=32-Zt(l)-1;l&=~(1<<d),s+=1;var h=32-Zt(i)+d;if(30<h){var w=d-d%5;h=(l&(1<<w)-1).toString(32),l>>=w,d-=w,Ha=1<<32-Zt(i)+d|s<<d|l,Fa=h+t}else Ha=1<<h|s<<d|l,Fa=t}function Od(t){t.return!==null&&(dr(t,1),cp(t,1,0))}function _d(t){for(;t===au;)au=ls[--os],ls[os]=null,iu=ls[--os],ls[os]=null;for(;t===cr;)cr=qn[--Qn],qn[Qn]=null,Fa=qn[--Qn],qn[Qn]=null,Ha=qn[--Qn],qn[Qn]=null}var sn=null,Yt=null,Ke=!1,la=null,va=!1,Bd=Error(r(519));function fr(t){var i=Error(r(418,""));throw xl(In(i,t)),Bd}function dp(t){var i=t.stateNode,s=t.type,l=t.memoizedProps;switch(i[ye]=t,i[Oe]=l,s){case"dialog":Ge("cancel",i),Ge("close",i);break;case"iframe":case"object":case"embed":Ge("load",i);break;case"video":case"audio":for(s=0;s<Ql.length;s++)Ge(Ql[s],i);break;case"source":Ge("error",i);break;case"img":case"image":case"link":Ge("error",i),Ge("load",i);break;case"details":Ge("toggle",i);break;case"input":Ge("invalid",i),jg(i,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),Qo(i);break;case"select":Ge("invalid",i);break;case"textarea":Ge("invalid",i),Ng(i,l.value,l.defaultValue,l.children),Qo(i)}s=l.children,typeof s!="string"&&typeof s!="number"&&typeof s!="bigint"||i.textContent===""+s||l.suppressHydrationWarning===!0||by(i.textContent,s)?(l.popover!=null&&(Ge("beforetoggle",i),Ge("toggle",i)),l.onScroll!=null&&Ge("scroll",i),l.onScrollEnd!=null&&Ge("scrollend",i),l.onClick!=null&&(i.onclick=zu),i=!0):i=!1,i||fr(t)}function fp(t){for(sn=t.return;sn;)switch(sn.tag){case 3:case 27:va=!0;return;case 5:case 13:va=!1;return;default:sn=sn.return}}function wl(t){if(t!==sn)return!1;if(!Ke)return fp(t),Ke=!0,!1;var i=!1,s;if((s=t.tag!==3&&t.tag!==27)&&((s=t.tag===5)&&(s=t.type,s=!(s!=="form"&&s!=="button")||nh(t.type,t.memoizedProps)),s=!s),s&&(i=!0),i&&Yt&&fr(t),fp(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(r(317));e:{for(t=t.nextSibling,i=0;t;){if(t.nodeType===8)if(s=t.data,s==="/$"){if(i===0){Yt=ua(t.nextSibling);break e}i--}else s!=="$"&&s!=="$!"&&s!=="$?"||i++;t=t.nextSibling}Yt=null}}else Yt=sn?ua(t.stateNode.nextSibling):null;return!0}function bl(){Yt=sn=null,Ke=!1}function xl(t){la===null?la=[t]:la.push(t)}var Sl=Error(r(460)),hp=Error(r(474)),zd={then:function(){}};function mp(t){return t=t.status,t==="fulfilled"||t==="rejected"}function ru(){}function gp(t,i,s){switch(s=t[s],s===void 0?t.push(i):s!==i&&(i.then(ru,ru),i=s),i.status){case"fulfilled":return i.value;case"rejected":throw t=i.reason,t===Sl?Error(r(483)):t;default:if(typeof i.status=="string")i.then(ru,ru);else{if(t=lt,t!==null&&100<t.shellSuspendCounter)throw Error(r(482));t=i,t.status="pending",t.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 t=i.reason,t===Sl?Error(r(483)):t}throw Al=i,Sl}}var Al=null;function pp(){if(Al===null)throw Error(r(459));var t=Al;return Al=null,t}var us=null,Cl=0;function su(t){var i=Cl;return Cl+=1,us===null&&(us=[]),gp(us,t,i)}function El(t,i){i=i.props.ref,t.ref=i!==void 0?i:null}function lu(t,i){throw i.$$typeof===u?Error(r(525)):(t=Object.prototype.toString.call(i),Error(r(31,t==="[object Object]"?"object with keys {"+Object.keys(i).join(", ")+"}":t)))}function yp(t){var i=t._init;return i(t._payload)}function vp(t){function i(L,O){if(t){var F=L.deletions;F===null?(L.deletions=[O],L.flags|=16):F.push(O)}}function s(L,O){if(!t)return null;for(;O!==null;)i(L,O),O=O.sibling;return null}function l(L){for(var O=new Map;L!==null;)L.key!==null?O.set(L.key,L):O.set(L.index,L),L=L.sibling;return O}function d(L,O){return L=Ai(L,O),L.index=0,L.sibling=null,L}function h(L,O,F){return L.index=F,t?(F=L.alternate,F!==null?(F=F.index,F<O?(L.flags|=33554434,O):F):(L.flags|=33554434,O)):(L.flags|=1048576,O)}function w(L){return t&&L.alternate===null&&(L.flags|=33554434),L}function A(L,O,F,ee){return O===null||O.tag!==6?(O=Mf(F,L.mode,ee),O.return=L,O):(O=d(O,F),O.return=L,O)}function T(L,O,F,ee){var ve=F.type;return ve===p?J(L,O,F.props.children,ee,F.key):O!==null&&(O.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===z&&yp(ve)===O.type)?(O=d(O,F.props),El(O,F),O.return=L,O):(O=Eu(F.type,F.key,F.props,null,L.mode,ee),El(O,F),O.return=L,O)}function B(L,O,F,ee){return O===null||O.tag!==4||O.stateNode.containerInfo!==F.containerInfo||O.stateNode.implementation!==F.implementation?(O=Df(F,L.mode,ee),O.return=L,O):(O=d(O,F.children||[]),O.return=L,O)}function J(L,O,F,ee,ve){return O===null||O.tag!==7?(O=Sr(F,L.mode,ee,ve),O.return=L,O):(O=d(O,F),O.return=L,O)}function ae(L,O,F){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Mf(""+O,L.mode,F),O.return=L,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case f:return F=Eu(O.type,O.key,O.props,null,L.mode,F),El(F,O),F.return=L,F;case m:return O=Df(O,L.mode,F),O.return=L,O;case z:var ee=O._init;return O=ee(O._payload),ae(L,O,F)}if(q(O)||W(O))return O=Sr(O,L.mode,F,null),O.return=L,O;if(typeof O.then=="function")return ae(L,su(O),F);if(O.$$typeof===x)return ae(L,Su(L,O),F);lu(L,O)}return null}function V(L,O,F,ee){var ve=O!==null?O.key:null;if(typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint")return ve!==null?null:A(L,O,""+F,ee);if(typeof F=="object"&&F!==null){switch(F.$$typeof){case f:return F.key===ve?T(L,O,F,ee):null;case m:return F.key===ve?B(L,O,F,ee):null;case z:return ve=F._init,F=ve(F._payload),V(L,O,F,ee)}if(q(F)||W(F))return ve!==null?null:J(L,O,F,ee,null);if(typeof F.then=="function")return V(L,O,su(F),ee);if(F.$$typeof===x)return V(L,O,Su(L,F),ee);lu(L,F)}return null}function K(L,O,F,ee,ve){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return L=L.get(F)||null,A(O,L,""+ee,ve);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case f:return L=L.get(ee.key===null?F:ee.key)||null,T(O,L,ee,ve);case m:return L=L.get(ee.key===null?F:ee.key)||null,B(O,L,ee,ve);case z:var Ie=ee._init;return ee=Ie(ee._payload),K(L,O,F,ee,ve)}if(q(ee)||W(ee))return L=L.get(F)||null,J(O,L,ee,ve,null);if(typeof ee.then=="function")return K(L,O,F,su(ee),ve);if(ee.$$typeof===x)return K(L,O,F,Su(O,ee),ve);lu(O,ee)}return null}function xe(L,O,F,ee){for(var ve=null,Ie=null,Ae=O,Te=O=0,Pt=null;Ae!==null&&Te<F.length;Te++){Ae.index>Te?(Pt=Ae,Ae=null):Pt=Ae.sibling;var Ze=V(L,Ae,F[Te],ee);if(Ze===null){Ae===null&&(Ae=Pt);break}t&&Ae&&Ze.alternate===null&&i(L,Ae),O=h(Ze,O,Te),Ie===null?ve=Ze:Ie.sibling=Ze,Ie=Ze,Ae=Pt}if(Te===F.length)return s(L,Ae),Ke&&dr(L,Te),ve;if(Ae===null){for(;Te<F.length;Te++)Ae=ae(L,F[Te],ee),Ae!==null&&(O=h(Ae,O,Te),Ie===null?ve=Ae:Ie.sibling=Ae,Ie=Ae);return Ke&&dr(L,Te),ve}for(Ae=l(Ae);Te<F.length;Te++)Pt=K(Ae,L,Te,F[Te],ee),Pt!==null&&(t&&Pt.alternate!==null&&Ae.delete(Pt.key===null?Te:Pt.key),O=h(Pt,O,Te),Ie===null?ve=Pt:Ie.sibling=Pt,Ie=Pt);return t&&Ae.forEach(function(ki){return i(L,ki)}),Ke&&dr(L,Te),ve}function Le(L,O,F,ee){if(F==null)throw Error(r(151));for(var ve=null,Ie=null,Ae=O,Te=O=0,Pt=null,Ze=F.next();Ae!==null&&!Ze.done;Te++,Ze=F.next()){Ae.index>Te?(Pt=Ae,Ae=null):Pt=Ae.sibling;var ki=V(L,Ae,Ze.value,ee);if(ki===null){Ae===null&&(Ae=Pt);break}t&&Ae&&ki.alternate===null&&i(L,Ae),O=h(ki,O,Te),Ie===null?ve=ki:Ie.sibling=ki,Ie=ki,Ae=Pt}if(Ze.done)return s(L,Ae),Ke&&dr(L,Te),ve;if(Ae===null){for(;!Ze.done;Te++,Ze=F.next())Ze=ae(L,Ze.value,ee),Ze!==null&&(O=h(Ze,O,Te),Ie===null?ve=Ze:Ie.sibling=Ze,Ie=Ze);return Ke&&dr(L,Te),ve}for(Ae=l(Ae);!Ze.done;Te++,Ze=F.next())Ze=K(Ae,L,Te,Ze.value,ee),Ze!==null&&(t&&Ze.alternate!==null&&Ae.delete(Ze.key===null?Te:Ze.key),O=h(Ze,O,Te),Ie===null?ve=Ze:Ie.sibling=Ze,Ie=Ze);return t&&Ae.forEach(function(VS){return i(L,VS)}),Ke&&dr(L,Te),ve}function Et(L,O,F,ee){if(typeof F=="object"&&F!==null&&F.type===p&&F.key===null&&(F=F.props.children),typeof F=="object"&&F!==null){switch(F.$$typeof){case f:e:{for(var ve=F.key;O!==null;){if(O.key===ve){if(ve=F.type,ve===p){if(O.tag===7){s(L,O.sibling),ee=d(O,F.props.children),ee.return=L,L=ee;break e}}else if(O.elementType===ve||typeof ve=="object"&&ve!==null&&ve.$$typeof===z&&yp(ve)===O.type){s(L,O.sibling),ee=d(O,F.props),El(ee,F),ee.return=L,L=ee;break e}s(L,O);break}else i(L,O);O=O.sibling}F.type===p?(ee=Sr(F.props.children,L.mode,ee,F.key),ee.return=L,L=ee):(ee=Eu(F.type,F.key,F.props,null,L.mode,ee),El(ee,F),ee.return=L,L=ee)}return w(L);case m:e:{for(ve=F.key;O!==null;){if(O.key===ve)if(O.tag===4&&O.stateNode.containerInfo===F.containerInfo&&O.stateNode.implementation===F.implementation){s(L,O.sibling),ee=d(O,F.children||[]),ee.return=L,L=ee;break e}else{s(L,O);break}else i(L,O);O=O.sibling}ee=Df(F,L.mode,ee),ee.return=L,L=ee}return w(L);case z:return ve=F._init,F=ve(F._payload),Et(L,O,F,ee)}if(q(F))return xe(L,O,F,ee);if(W(F)){if(ve=W(F),typeof ve!="function")throw Error(r(150));return F=ve.call(F),Le(L,O,F,ee)}if(typeof F.then=="function")return Et(L,O,su(F),ee);if(F.$$typeof===x)return Et(L,O,Su(L,F),ee);lu(L,F)}return typeof F=="string"&&F!==""||typeof F=="number"||typeof F=="bigint"?(F=""+F,O!==null&&O.tag===6?(s(L,O.sibling),ee=d(O,F),ee.return=L,L=ee):(s(L,O),ee=Mf(F,L.mode,ee),ee.return=L,L=ee),w(L)):s(L,O)}return function(L,O,F,ee){try{Cl=0;var ve=Et(L,O,F,ee);return us=null,ve}catch(Ae){if(Ae===Sl)throw Ae;var Ie=Xn(29,Ae,null,L.mode);return Ie.lanes=ee,Ie.return=L,Ie}finally{}}}var hr=vp(!0),wp=vp(!1),cs=Ve(null),ou=Ve(0);function bp(t,i){t=Za,_e(ou,t),_e(cs,i),Za=t|i.baseLanes}function Ld(){_e(ou,Za),_e(cs,cs.current)}function Ud(){Za=ou.current,ze(cs),ze(ou)}var Gn=Ve(null),wa=null;function fi(t){var i=t.alternate;_e(zt,zt.current&1),_e(Gn,t),wa===null&&(i===null||cs.current!==null||i.memoizedState!==null)&&(wa=t)}function xp(t){if(t.tag===22){if(_e(zt,zt.current),_e(Gn,t),wa===null){var i=t.alternate;i!==null&&i.memoizedState!==null&&(wa=t)}}else hi()}function hi(){_e(zt,zt.current),_e(Gn,Gn.current)}function Pa(t){ze(Gn),wa===t&&(wa=null),ze(zt)}var zt=Ve(0);function uu(t){for(var i=t;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)!==0)return i}else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return null;i=i.return}i.sibling.return=i.return,i=i.sibling}return null}var T1=typeof AbortController<"u"?AbortController:function(){var t=[],i=this.signal={aborted:!1,addEventListener:function(s,l){t.push(l)}};this.abort=function(){i.aborted=!0,t.forEach(function(s){return s()})}},k1=e.unstable_scheduleCallback,M1=e.unstable_NormalPriority,Lt={$$typeof:x,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Hd(){return{controller:new T1,data:new Map,refCount:0}}function jl(t){t.refCount--,t.refCount===0&&k1(M1,function(){t.controller.abort()})}var Rl=null,Fd=0,ds=0,fs=null;function D1(t,i){if(Rl===null){var s=Rl=[];Fd=0,ds=Yf(),fs={status:"pending",value:void 0,then:function(l){s.push(l)}}}return Fd++,i.then(Sp,Sp),i}function Sp(){if(--Fd===0&&Rl!==null){fs!==null&&(fs.status="fulfilled");var t=Rl;Rl=null,ds=0,fs=null;for(var i=0;i<t.length;i++)(0,t[i])()}}function O1(t,i){var s=[],l={status:"pending",value:null,reason:null,then:function(d){s.push(d)}};return t.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 Ap=Q.S;Q.S=function(t,i){typeof i=="object"&&i!==null&&typeof i.then=="function"&&D1(t,i),Ap!==null&&Ap(t,i)};var mr=Ve(null);function Pd(){var t=mr.current;return t!==null?t:lt.pooledCache}function cu(t,i){i===null?_e(mr,mr.current):_e(mr,i.pool)}function Cp(){var t=Pd();return t===null?null:{parent:Lt._currentValue,pool:t}}var mi=0,Pe=null,at=null,Ot=null,du=!1,hs=!1,gr=!1,fu=0,Nl=0,ms=null,_1=0;function Nt(){throw Error(r(321))}function Vd(t,i){if(i===null)return!1;for(var s=0;s<i.length&&s<t.length;s++)if(!An(t[s],i[s]))return!1;return!0}function Id(t,i,s,l,d,h){return mi=h,Pe=i,i.memoizedState=null,i.updateQueue=null,i.lanes=0,Q.H=t===null||t.memoizedState===null?pr:gi,gr=!1,h=s(l,d),gr=!1,hs&&(h=jp(i,s,l,d)),Ep(t),h}function Ep(t){Q.H=ba;var i=at!==null&&at.next!==null;if(mi=0,Ot=at=Pe=null,du=!1,Nl=0,ms=null,i)throw Error(r(300));t===null||Ht||(t=t.dependencies,t!==null&&xu(t)&&(Ht=!0))}function jp(t,i,s,l){Pe=t;var d=0;do{if(hs&&(ms=null),Nl=0,hs=!1,25<=d)throw Error(r(301));if(d+=1,Ot=at=null,t.updateQueue!=null){var h=t.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}Q.H=yr,h=i(s,l)}while(hs);return h}function B1(){var t=Q.H,i=t.useState()[0];return i=typeof i.then=="function"?Tl(i):i,t=t.useState()[0],(at!==null?at.memoizedState:null)!==t&&(Pe.flags|=1024),i}function qd(){var t=fu!==0;return fu=0,t}function Qd(t,i,s){i.updateQueue=t.updateQueue,i.flags&=-2053,t.lanes&=~s}function Gd(t){if(du){for(t=t.memoizedState;t!==null;){var i=t.queue;i!==null&&(i.pending=null),t=t.next}du=!1}mi=0,Ot=at=Pe=null,hs=!1,Nl=fu=0,ms=null}function pn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ot===null?Pe.memoizedState=Ot=t:Ot=Ot.next=t,Ot}function _t(){if(at===null){var t=Pe.alternate;t=t!==null?t.memoizedState:null}else t=at.next;var i=Ot===null?Pe.memoizedState:Ot.next;if(i!==null)Ot=i,at=t;else{if(t===null)throw Pe.alternate===null?Error(r(467)):Error(r(310));at=t,t={memoizedState:at.memoizedState,baseState:at.baseState,baseQueue:at.baseQueue,queue:at.queue,next:null},Ot===null?Pe.memoizedState=Ot=t:Ot=Ot.next=t}return Ot}var hu;hu=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function Tl(t){var i=Nl;return Nl+=1,ms===null&&(ms=[]),t=gp(ms,t,i),i=Pe,(Ot===null?i.memoizedState:Ot.next)===null&&(i=i.alternate,Q.H=i===null||i.memoizedState===null?pr:gi),t}function mu(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return Tl(t);if(t.$$typeof===x)return Jt(t)}throw Error(r(438,String(t)))}function Yd(t){var i=null,s=Pe.updateQueue;if(s!==null&&(i=s.memoCache),i==null){var l=Pe.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=hu(),Pe.updateQueue=s),s.memoCache=i,s=i.data[i.index],s===void 0)for(s=i.data[i.index]=Array(t),l=0;l<t;l++)s[l]=Z;return i.index++,s}function Va(t,i){return typeof i=="function"?i(t):i}function gu(t){var i=_t();return $d(i,at,t)}function $d(t,i,s){var l=t.queue;if(l===null)throw Error(r(311));l.lastRenderedReducer=s;var d=t.baseQueue,h=l.pending;if(h!==null){if(d!==null){var w=d.next;d.next=h.next,h.next=w}i.baseQueue=d=h,l.pending=null}if(h=t.baseState,d===null)t.memoizedState=h;else{i=d.next;var A=w=null,T=null,B=i,J=!1;do{var ae=B.lane&-536870913;if(ae!==B.lane?(Xe&ae)===ae:(mi&ae)===ae){var V=B.revertLane;if(V===0)T!==null&&(T=T.next={lane:0,revertLane:0,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null}),ae===ds&&(J=!0);else if((mi&V)===V){B=B.next,V===ds&&(J=!0);continue}else ae={lane:0,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},T===null?(A=T=ae,w=h):T=T.next=ae,Pe.lanes|=V,Ci|=V;ae=B.action,gr&&s(h,ae),h=B.hasEagerState?B.eagerState:s(h,ae)}else V={lane:ae,revertLane:B.revertLane,action:B.action,hasEagerState:B.hasEagerState,eagerState:B.eagerState,next:null},T===null?(A=T=V,w=h):T=T.next=V,Pe.lanes|=ae,Ci|=ae;B=B.next}while(B!==null&&B!==i);if(T===null?w=h:T.next=A,!An(h,t.memoizedState)&&(Ht=!0,J&&(s=fs,s!==null)))throw s;t.memoizedState=h,t.baseState=w,t.baseQueue=T,l.lastRenderedState=h}return d===null&&(l.lanes=0),[t.memoizedState,l.dispatch]}function Xd(t){var i=_t(),s=i.queue;if(s===null)throw Error(r(311));s.lastRenderedReducer=t;var l=s.dispatch,d=s.pending,h=i.memoizedState;if(d!==null){s.pending=null;var w=d=d.next;do h=t(h,w.action),w=w.next;while(w!==d);An(h,i.memoizedState)||(Ht=!0),i.memoizedState=h,i.baseQueue===null&&(i.baseState=h),s.lastRenderedState=h}return[h,l]}function Rp(t,i,s){var l=Pe,d=_t(),h=Ke;if(h){if(s===void 0)throw Error(r(407));s=s()}else s=i();var w=!An((at||d).memoizedState,s);if(w&&(d.memoizedState=s,Ht=!0),d=d.queue,Jd(kp.bind(null,l,d,t),[t]),d.getSnapshot!==i||w||Ot!==null&&Ot.memoizedState.tag&1){if(l.flags|=2048,gs(9,Tp.bind(null,l,d,s,i),{destroy:void 0},null),lt===null)throw Error(r(349));h||(mi&60)!==0||Np(l,i,s)}return s}function Np(t,i,s){t.flags|=16384,t={getSnapshot:i,value:s},i=Pe.updateQueue,i===null?(i=hu(),Pe.updateQueue=i,i.stores=[t]):(s=i.stores,s===null?i.stores=[t]:s.push(t))}function Tp(t,i,s,l){i.value=s,i.getSnapshot=l,Mp(i)&&Dp(t)}function kp(t,i,s){return s(function(){Mp(i)&&Dp(t)})}function Mp(t){var i=t.getSnapshot;t=t.value;try{var s=i();return!An(t,s)}catch{return!0}}function Dp(t){var i=di(t,2);i!==null&&ln(i,t,2)}function Kd(t){var i=pn();if(typeof t=="function"){var s=t;if(t=s(),gr){Sn(!0);try{s()}finally{Sn(!1)}}}return i.memoizedState=i.baseState=t,i.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Va,lastRenderedState:t},i}function Op(t,i,s,l){return t.baseState=s,$d(t,at,typeof l=="function"?l:Va)}function z1(t,i,s,l,d){if(vu(t))throw Error(r(485));if(t=i.action,t!==null){var h={payload:d,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){h.listeners.push(w)}};Q.T!==null?s(!0):h.isTransition=!1,l(h),s=i.pending,s===null?(h.next=i.pending=h,_p(i,h)):(h.next=s.next,i.pending=s.next=h)}}function _p(t,i){var s=i.action,l=i.payload,d=t.state;if(i.isTransition){var h=Q.T,w={};Q.T=w;try{var A=s(d,l),T=Q.S;T!==null&&T(w,A),Bp(t,i,A)}catch(B){Zd(t,i,B)}finally{Q.T=h}}else try{h=s(d,l),Bp(t,i,h)}catch(B){Zd(t,i,B)}}function Bp(t,i,s){s!==null&&typeof s=="object"&&typeof s.then=="function"?s.then(function(l){zp(t,i,l)},function(l){return Zd(t,i,l)}):zp(t,i,s)}function zp(t,i,s){i.status="fulfilled",i.value=s,Lp(i),t.state=s,i=t.pending,i!==null&&(s=i.next,s===i?t.pending=null:(s=s.next,i.next=s,_p(t,s)))}function Zd(t,i,s){var l=t.pending;if(t.pending=null,l!==null){l=l.next;do i.status="rejected",i.reason=s,Lp(i),i=i.next;while(i!==l)}t.action=null}function Lp(t){t=t.listeners;for(var i=0;i<t.length;i++)(0,t[i])()}function Up(t,i){return i}function Hp(t,i){if(Ke){var s=lt.formState;if(s!==null){e:{var l=Pe;if(Ke){if(Yt){t:{for(var d=Yt,h=va;d.nodeType!==8;){if(!h){d=null;break t}if(d=ua(d.nextSibling),d===null){d=null;break t}}h=d.data,d=h==="F!"||h==="F"?d:null}if(d){Yt=ua(d.nextSibling),l=d.data==="F!";break e}}fr(l)}l=!1}l&&(i=s[0])}}return s=pn(),s.memoizedState=s.baseState=i,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Up,lastRenderedState:i},s.queue=l,s=a0.bind(null,Pe,l),l.dispatch=s,l=Kd(!1),h=af.bind(null,Pe,!1,l.queue),l=pn(),d={state:i,dispatch:null,action:t,pending:null},l.queue=d,s=z1.bind(null,Pe,d,h,s),d.dispatch=s,l.memoizedState=t,[i,s,!1]}function Fp(t){var i=_t();return Pp(i,at,t)}function Pp(t,i,s){i=$d(t,i,Up)[0],t=gu(Va)[0],i=typeof i=="object"&&i!==null&&typeof i.then=="function"?Tl(i):i;var l=_t(),d=l.queue,h=d.dispatch;return s!==l.memoizedState&&(Pe.flags|=2048,gs(9,L1.bind(null,d,s),{destroy:void 0},null)),[i,h,t]}function L1(t,i){t.action=i}function Vp(t){var i=_t(),s=at;if(s!==null)return Pp(i,s,t);_t(),i=i.memoizedState,s=_t();var l=s.queue.dispatch;return s.memoizedState=t,[i,l,!1]}function gs(t,i,s,l){return t={tag:t,create:i,inst:s,deps:l,next:null},i=Pe.updateQueue,i===null&&(i=hu(),Pe.updateQueue=i),s=i.lastEffect,s===null?i.lastEffect=t.next=t:(l=s.next,s.next=t,t.next=l,i.lastEffect=t),t}function Ip(){return _t().memoizedState}function pu(t,i,s,l){var d=pn();Pe.flags|=t,d.memoizedState=gs(1|i,s,{destroy:void 0},l===void 0?null:l)}function yu(t,i,s,l){var d=_t();l=l===void 0?null:l;var h=d.memoizedState.inst;at!==null&&l!==null&&Vd(l,at.memoizedState.deps)?d.memoizedState=gs(i,s,h,l):(Pe.flags|=t,d.memoizedState=gs(1|i,s,h,l))}function qp(t,i){pu(8390656,8,t,i)}function Jd(t,i){yu(2048,8,t,i)}function Qp(t,i){return yu(4,2,t,i)}function Gp(t,i){return yu(4,4,t,i)}function Yp(t,i){if(typeof i=="function"){t=t();var s=i(t);return function(){typeof s=="function"?s():i(null)}}if(i!=null)return t=t(),i.current=t,function(){i.current=null}}function $p(t,i,s){s=s!=null?s.concat([t]):null,yu(4,4,Yp.bind(null,i,t),s)}function Wd(){}function Xp(t,i){var s=_t();i=i===void 0?null:i;var l=s.memoizedState;return i!==null&&Vd(i,l[1])?l[0]:(s.memoizedState=[t,i],t)}function Kp(t,i){var s=_t();i=i===void 0?null:i;var l=s.memoizedState;if(i!==null&&Vd(i,l[1]))return l[0];if(l=t(),gr){Sn(!0);try{t()}finally{Sn(!1)}}return s.memoizedState=[l,i],l}function ef(t,i,s){return s===void 0||(mi&1073741824)!==0?t.memoizedState=i:(t.memoizedState=s,t=J0(),Pe.lanes|=t,Ci|=t,s)}function Zp(t,i,s,l){return An(s,i)?s:cs.current!==null?(t=ef(t,s,l),An(t,i)||(Ht=!0),t):(mi&42)===0?(Ht=!0,t.memoizedState=s):(t=J0(),Pe.lanes|=t,Ci|=t,i)}function Jp(t,i,s,l,d){var h=re.p;re.p=h!==0&&8>h?h:8;var w=Q.T,A={};Q.T=A,af(t,!1,i,s);try{var T=d(),B=Q.S;if(B!==null&&B(A,T),T!==null&&typeof T=="object"&&typeof T.then=="function"){var J=O1(T,l);kl(t,i,J,Rn(t))}else kl(t,i,l,Rn(t))}catch(ae){kl(t,i,{then:function(){},status:"rejected",reason:ae},Rn())}finally{re.p=h,Q.T=w}}function U1(){}function tf(t,i,s,l){if(t.tag!==5)throw Error(r(476));var d=Wp(t).queue;Jp(t,d,i,we,s===null?U1:function(){return e0(t),s(l)})}function Wp(t){var i=t.memoizedState;if(i!==null)return i;i={memoizedState:we,baseState:we,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Va,lastRenderedState:we},next:null};var s={};return i.next={memoizedState:s,baseState:s,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Va,lastRenderedState:s},next:null},t.memoizedState=i,t=t.alternate,t!==null&&(t.memoizedState=i),i}function e0(t){var i=Wp(t).next.queue;kl(t,i,{},Rn())}function nf(){return Jt(Kl)}function t0(){return _t().memoizedState}function n0(){return _t().memoizedState}function H1(t){for(var i=t.return;i!==null;){switch(i.tag){case 24:case 3:var s=Rn();t=vi(s);var l=wi(i,t,s);l!==null&&(ln(l,i,s),Ol(l,i,s)),i={cache:Hd()},t.payload=i;return}i=i.return}}function F1(t,i,s){var l=Rn();s={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null},vu(t)?i0(i,s):(s=Dd(t,i,s,l),s!==null&&(ln(s,t,l),r0(s,i,l)))}function a0(t,i,s){var l=Rn();kl(t,i,s,l)}function kl(t,i,s,l){var d={lane:l,revertLane:0,action:s,hasEagerState:!1,eagerState:null,next:null};if(vu(t))i0(i,d);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=i.lastRenderedReducer,h!==null))try{var w=i.lastRenderedState,A=h(w,s);if(d.hasEagerState=!0,d.eagerState=A,An(A,w))return tu(t,i,d,0),lt===null&&eu(),!1}catch{}finally{}if(s=Dd(t,i,d,l),s!==null)return ln(s,t,l),r0(s,i,l),!0}return!1}function af(t,i,s,l){if(l={lane:2,revertLane:Yf(),action:l,hasEagerState:!1,eagerState:null,next:null},vu(t)){if(i)throw Error(r(479))}else i=Dd(t,s,l,2),i!==null&&ln(i,t,2)}function vu(t){var i=t.alternate;return t===Pe||i!==null&&i===Pe}function i0(t,i){hs=du=!0;var s=t.pending;s===null?i.next=i:(i.next=s.next,s.next=i),t.pending=i}function r0(t,i,s){if((s&4194176)!==0){var l=i.lanes;l&=t.pendingLanes,s|=l,i.lanes=s,Ee(t,s)}}var ba={readContext:Jt,use:mu,useCallback:Nt,useContext:Nt,useEffect:Nt,useImperativeHandle:Nt,useLayoutEffect:Nt,useInsertionEffect:Nt,useMemo:Nt,useReducer:Nt,useRef:Nt,useState:Nt,useDebugValue:Nt,useDeferredValue:Nt,useTransition:Nt,useSyncExternalStore:Nt,useId:Nt};ba.useCacheRefresh=Nt,ba.useMemoCache=Nt,ba.useHostTransitionStatus=Nt,ba.useFormState=Nt,ba.useActionState=Nt,ba.useOptimistic=Nt;var pr={readContext:Jt,use:mu,useCallback:function(t,i){return pn().memoizedState=[t,i===void 0?null:i],t},useContext:Jt,useEffect:qp,useImperativeHandle:function(t,i,s){s=s!=null?s.concat([t]):null,pu(4194308,4,Yp.bind(null,i,t),s)},useLayoutEffect:function(t,i){return pu(4194308,4,t,i)},useInsertionEffect:function(t,i){pu(4,2,t,i)},useMemo:function(t,i){var s=pn();i=i===void 0?null:i;var l=t();if(gr){Sn(!0);try{t()}finally{Sn(!1)}}return s.memoizedState=[l,i],l},useReducer:function(t,i,s){var l=pn();if(s!==void 0){var d=s(i);if(gr){Sn(!0);try{s(i)}finally{Sn(!1)}}}else d=i;return l.memoizedState=l.baseState=d,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:d},l.queue=t,t=t.dispatch=F1.bind(null,Pe,t),[l.memoizedState,t]},useRef:function(t){var i=pn();return t={current:t},i.memoizedState=t},useState:function(t){t=Kd(t);var i=t.queue,s=a0.bind(null,Pe,i);return i.dispatch=s,[t.memoizedState,s]},useDebugValue:Wd,useDeferredValue:function(t,i){var s=pn();return ef(s,t,i)},useTransition:function(){var t=Kd(!1);return t=Jp.bind(null,Pe,t.queue,!0,!1),pn().memoizedState=t,[!1,t]},useSyncExternalStore:function(t,i,s){var l=Pe,d=pn();if(Ke){if(s===void 0)throw Error(r(407));s=s()}else{if(s=i(),lt===null)throw Error(r(349));(Xe&60)!==0||Np(l,i,s)}d.memoizedState=s;var h={value:s,getSnapshot:i};return d.queue=h,qp(kp.bind(null,l,h,t),[t]),l.flags|=2048,gs(9,Tp.bind(null,l,h,s,i),{destroy:void 0},null),s},useId:function(){var t=pn(),i=lt.identifierPrefix;if(Ke){var s=Fa,l=Ha;s=(l&~(1<<32-Zt(l)-1)).toString(32)+s,i=":"+i+"R"+s,s=fu++,0<s&&(i+="H"+s.toString(32)),i+=":"}else s=_1++,i=":"+i+"r"+s.toString(32)+":";return t.memoizedState=i},useCacheRefresh:function(){return pn().memoizedState=H1.bind(null,Pe)}};pr.useMemoCache=Yd,pr.useHostTransitionStatus=nf,pr.useFormState=Hp,pr.useActionState=Hp,pr.useOptimistic=function(t){var i=pn();i.memoizedState=i.baseState=t;var s={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return i.queue=s,i=af.bind(null,Pe,!0,s),s.dispatch=i,[t,i]};var gi={readContext:Jt,use:mu,useCallback:Xp,useContext:Jt,useEffect:Jd,useImperativeHandle:$p,useInsertionEffect:Qp,useLayoutEffect:Gp,useMemo:Kp,useReducer:gu,useRef:Ip,useState:function(){return gu(Va)},useDebugValue:Wd,useDeferredValue:function(t,i){var s=_t();return Zp(s,at.memoizedState,t,i)},useTransition:function(){var t=gu(Va)[0],i=_t().memoizedState;return[typeof t=="boolean"?t:Tl(t),i]},useSyncExternalStore:Rp,useId:t0};gi.useCacheRefresh=n0,gi.useMemoCache=Yd,gi.useHostTransitionStatus=nf,gi.useFormState=Fp,gi.useActionState=Fp,gi.useOptimistic=function(t,i){var s=_t();return Op(s,at,t,i)};var yr={readContext:Jt,use:mu,useCallback:Xp,useContext:Jt,useEffect:Jd,useImperativeHandle:$p,useInsertionEffect:Qp,useLayoutEffect:Gp,useMemo:Kp,useReducer:Xd,useRef:Ip,useState:function(){return Xd(Va)},useDebugValue:Wd,useDeferredValue:function(t,i){var s=_t();return at===null?ef(s,t,i):Zp(s,at.memoizedState,t,i)},useTransition:function(){var t=Xd(Va)[0],i=_t().memoizedState;return[typeof t=="boolean"?t:Tl(t),i]},useSyncExternalStore:Rp,useId:t0};yr.useCacheRefresh=n0,yr.useMemoCache=Yd,yr.useHostTransitionStatus=nf,yr.useFormState=Vp,yr.useActionState=Vp,yr.useOptimistic=function(t,i){var s=_t();return at!==null?Op(s,at,t,i):(s.baseState=t,[t,s.queue.dispatch])};function rf(t,i,s,l){i=t.memoizedState,s=s(l,i),s=s==null?i:ne({},i,s),t.memoizedState=s,t.lanes===0&&(t.updateQueue.baseState=s)}var sf={isMounted:function(t){return(t=t._reactInternals)?$(t)===t:!1},enqueueSetState:function(t,i,s){t=t._reactInternals;var l=Rn(),d=vi(l);d.payload=i,s!=null&&(d.callback=s),i=wi(t,d,l),i!==null&&(ln(i,t,l),Ol(i,t,l))},enqueueReplaceState:function(t,i,s){t=t._reactInternals;var l=Rn(),d=vi(l);d.tag=1,d.payload=i,s!=null&&(d.callback=s),i=wi(t,d,l),i!==null&&(ln(i,t,l),Ol(i,t,l))},enqueueForceUpdate:function(t,i){t=t._reactInternals;var s=Rn(),l=vi(s);l.tag=2,i!=null&&(l.callback=i),i=wi(t,l,s),i!==null&&(ln(i,t,s),Ol(i,t,s))}};function s0(t,i,s,l,d,h,w){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(l,h,w):i.prototype&&i.prototype.isPureReactComponent?!yl(s,l)||!yl(d,h):!0}function l0(t,i,s,l){t=i.state,typeof i.componentWillReceiveProps=="function"&&i.componentWillReceiveProps(s,l),typeof i.UNSAFE_componentWillReceiveProps=="function"&&i.UNSAFE_componentWillReceiveProps(s,l),i.state!==t&&sf.enqueueReplaceState(i,i.state,null)}function vr(t,i){var s=i;if("ref"in i){s={};for(var l in i)l!=="ref"&&(s[l]=i[l])}if(t=t.defaultProps){s===i&&(s=ne({},s));for(var d in t)s[d]===void 0&&(s[d]=t[d])}return s}var wu=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var i=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(i))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)};function o0(t){wu(t)}function u0(t){console.error(t)}function c0(t){wu(t)}function bu(t,i){try{var s=t.onUncaughtError;s(i.value,{componentStack:i.stack})}catch(l){setTimeout(function(){throw l})}}function d0(t,i,s){try{var l=t.onCaughtError;l(s.value,{componentStack:s.stack,errorBoundary:i.tag===1?i.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function lf(t,i,s){return s=vi(s),s.tag=3,s.payload={element:null},s.callback=function(){bu(t,i)},s}function f0(t){return t=vi(t),t.tag=3,t}function h0(t,i,s,l){var d=s.type.getDerivedStateFromError;if(typeof d=="function"){var h=l.value;t.payload=function(){return d(h)},t.callback=function(){d0(i,s,l)}}var w=s.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(t.callback=function(){d0(i,s,l),typeof d!="function"&&(Ei===null?Ei=new Set([this]):Ei.add(this));var A=l.stack;this.componentDidCatch(l.value,{componentStack:A!==null?A:""})})}function P1(t,i,s,l,d){if(s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(i=s.alternate,i!==null&&Dl(i,s,d,!0),s=Gn.current,s!==null){switch(s.tag){case 13:return wa===null?Vf():s.alternate===null&&Ct===0&&(Ct=3),s.flags&=-257,s.flags|=65536,s.lanes=d,l===zd?s.flags|=16384:(i=s.updateQueue,i===null?s.updateQueue=new Set([l]):i.add(l),qf(t,l,d)),!1;case 22:return s.flags|=65536,l===zd?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)),qf(t,l,d)),!1}throw Error(r(435,s.tag))}return qf(t,l,d),Vf(),!1}if(Ke)return i=Gn.current,i!==null?((i.flags&65536)===0&&(i.flags|=256),i.flags|=65536,i.lanes=d,l!==Bd&&(t=Error(r(422),{cause:l}),xl(In(t,s)))):(l!==Bd&&(i=Error(r(423),{cause:l}),xl(In(i,s))),t=t.current.alternate,t.flags|=65536,d&=-d,t.lanes|=d,l=In(l,s),d=lf(t.stateNode,l,d),Sf(t,d),Ct!==4&&(Ct=2)),!1;var h=Error(r(520),{cause:l});if(h=In(h,s),Pl===null?Pl=[h]:Pl.push(h),Ct!==4&&(Ct=2),i===null)return!0;l=In(l,s),s=i;do{switch(s.tag){case 3:return s.flags|=65536,t=d&-d,s.lanes|=t,t=lf(s.stateNode,l,t),Sf(s,t),!1;case 1:if(i=s.type,h=s.stateNode,(s.flags&128)===0&&(typeof i.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Ei===null||!Ei.has(h))))return s.flags|=65536,d&=-d,s.lanes|=d,d=f0(d),h0(d,t,s,l),Sf(s,d),!1}s=s.return}while(s!==null);return!1}var m0=Error(r(461)),Ht=!1;function $t(t,i,s,l){i.child=t===null?wp(i,null,s,l):hr(i,t.child,s,l)}function g0(t,i,s,l,d){s=s.render;var h=i.ref;if("ref"in l){var w={};for(var A in l)A!=="ref"&&(w[A]=l[A])}else w=l;return br(i),l=Id(t,i,s,w,h,d),A=qd(),t!==null&&!Ht?(Qd(t,i,d),Ia(t,i,d)):(Ke&&A&&Od(i),i.flags|=1,$t(t,i,l,d),i.child)}function p0(t,i,s,l,d){if(t===null){var h=s.type;return typeof h=="function"&&!kf(h)&&h.defaultProps===void 0&&s.compare===null?(i.tag=15,i.type=h,y0(t,i,h,l,d)):(t=Eu(s.type,null,l,i,i.mode,d),t.ref=i.ref,t.return=i,i.child=t)}if(h=t.child,!pf(t,d)){var w=h.memoizedProps;if(s=s.compare,s=s!==null?s:yl,s(w,l)&&t.ref===i.ref)return Ia(t,i,d)}return i.flags|=1,t=Ai(h,l),t.ref=i.ref,t.return=i,i.child=t}function y0(t,i,s,l,d){if(t!==null){var h=t.memoizedProps;if(yl(h,l)&&t.ref===i.ref)if(Ht=!1,i.pendingProps=l=h,pf(t,d))(t.flags&131072)!==0&&(Ht=!0);else return i.lanes=t.lanes,Ia(t,i,d)}return of(t,i,s,l,d)}function v0(t,i,s){var l=i.pendingProps,d=l.children,h=(i.stateNode._pendingVisibility&2)!==0,w=t!==null?t.memoizedState:null;if(Ml(t,i),l.mode==="hidden"||h){if((i.flags&128)!==0){if(l=w!==null?w.baseLanes|s:s,t!==null){for(d=i.child=t.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 w0(t,i,l,s)}if((s&536870912)!==0)i.memoizedState={baseLanes:0,cachePool:null},t!==null&&cu(i,w!==null?w.cachePool:null),w!==null?bp(i,w):Ld(),xp(i);else return i.lanes=i.childLanes=536870912,w0(t,i,w!==null?w.baseLanes|s:s,s)}else w!==null?(cu(i,w.cachePool),bp(i,w),hi(),i.memoizedState=null):(t!==null&&cu(i,null),Ld(),hi());return $t(t,i,d,s),i.child}function w0(t,i,s,l){var d=Pd();return d=d===null?null:{parent:Lt._currentValue,pool:d},i.memoizedState={baseLanes:s,cachePool:d},t!==null&&cu(i,null),Ld(),xp(i),t!==null&&Dl(t,i,l,!0),null}function Ml(t,i){var s=i.ref;if(s===null)t!==null&&t.ref!==null&&(i.flags|=2097664);else{if(typeof s!="function"&&typeof s!="object")throw Error(r(284));(t===null||t.ref!==s)&&(i.flags|=2097664)}}function of(t,i,s,l,d){return br(i),s=Id(t,i,s,l,void 0,d),l=qd(),t!==null&&!Ht?(Qd(t,i,d),Ia(t,i,d)):(Ke&&l&&Od(i),i.flags|=1,$t(t,i,s,d),i.child)}function b0(t,i,s,l,d,h){return br(i),i.updateQueue=null,s=jp(i,l,s,d),Ep(t),l=qd(),t!==null&&!Ht?(Qd(t,i,h),Ia(t,i,h)):(Ke&&l&&Od(i),i.flags|=1,$t(t,i,s,h),i.child)}function x0(t,i,s,l,d){if(br(i),i.stateNode===null){var h=ss,w=s.contextType;typeof w=="object"&&w!==null&&(h=Jt(w)),h=new s(l,h),i.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=sf,i.stateNode=h,h._reactInternals=i,h=i.stateNode,h.props=l,h.state=i.memoizedState,h.refs={},bf(i),w=s.contextType,h.context=typeof w=="object"&&w!==null?Jt(w):ss,h.state=i.memoizedState,w=s.getDerivedStateFromProps,typeof w=="function"&&(rf(i,s,w,l),h.state=i.memoizedState),typeof s.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(w=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),w!==h.state&&sf.enqueueReplaceState(h,h.state,null),Bl(i,l,h,d),_l(),h.state=i.memoizedState),typeof h.componentDidMount=="function"&&(i.flags|=4194308),l=!0}else if(t===null){h=i.stateNode;var A=i.memoizedProps,T=vr(s,A);h.props=T;var B=h.context,J=s.contextType;w=ss,typeof J=="object"&&J!==null&&(w=Jt(J));var ae=s.getDerivedStateFromProps;J=typeof ae=="function"||typeof h.getSnapshotBeforeUpdate=="function",A=i.pendingProps!==A,J||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(A||B!==w)&&l0(i,h,l,w),yi=!1;var V=i.memoizedState;h.state=V,Bl(i,l,h,d),_l(),B=i.memoizedState,A||V!==B||yi?(typeof ae=="function"&&(rf(i,s,ae,l),B=i.memoizedState),(T=yi||s0(i,s,T,l,V,B,w))?(J||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=w,l=T):(typeof h.componentDidMount=="function"&&(i.flags|=4194308),l=!1)}else{h=i.stateNode,xf(t,i),w=i.memoizedProps,J=vr(s,w),h.props=J,ae=i.pendingProps,V=h.context,B=s.contextType,T=ss,typeof B=="object"&&B!==null&&(T=Jt(B)),A=s.getDerivedStateFromProps,(B=typeof A=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(w!==ae||V!==T)&&l0(i,h,l,T),yi=!1,V=i.memoizedState,h.state=V,Bl(i,l,h,d),_l();var K=i.memoizedState;w!==ae||V!==K||yi||t!==null&&t.dependencies!==null&&xu(t.dependencies)?(typeof A=="function"&&(rf(i,s,A,l),K=i.memoizedState),(J=yi||s0(i,s,J,l,V,K,T)||t!==null&&t.dependencies!==null&&xu(t.dependencies))?(B||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(l,K,T),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(l,K,T)),typeof h.componentDidUpdate=="function"&&(i.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(i.flags|=1024)):(typeof h.componentDidUpdate!="function"||w===t.memoizedProps&&V===t.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&V===t.memoizedState||(i.flags|=1024),i.memoizedProps=l,i.memoizedState=K),h.props=l,h.state=K,h.context=T,l=J):(typeof h.componentDidUpdate!="function"||w===t.memoizedProps&&V===t.memoizedState||(i.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||w===t.memoizedProps&&V===t.memoizedState||(i.flags|=1024),l=!1)}return h=l,Ml(t,i),l=(i.flags&128)!==0,h||l?(h=i.stateNode,s=l&&typeof s.getDerivedStateFromError!="function"?null:h.render(),i.flags|=1,t!==null&&l?(i.child=hr(i,t.child,null,d),i.child=hr(i,null,s,d)):$t(t,i,s,d),i.memoizedState=h.state,t=i.child):t=Ia(t,i,d),t}function S0(t,i,s,l){return bl(),i.flags|=256,$t(t,i,s,l),i.child}var uf={dehydrated:null,treeContext:null,retryLane:0};function cf(t){return{baseLanes:t,cachePool:Cp()}}function df(t,i,s){return t=t!==null?t.childLanes&~s:0,i&&(t|=Kn),t}function A0(t,i,s){var l=i.pendingProps,d=!1,h=(i.flags&128)!==0,w;if((w=h)||(w=t!==null&&t.memoizedState===null?!1:(zt.current&2)!==0),w&&(d=!0,i.flags&=-129),w=(i.flags&32)!==0,i.flags&=-33,t===null){if(Ke){if(d?fi(i):hi(),Ke){var A=Yt,T;if(T=A){e:{for(T=A,A=va;T.nodeType!==8;){if(!A){A=null;break e}if(T=ua(T.nextSibling),T===null){A=null;break e}}A=T}A!==null?(i.memoizedState={dehydrated:A,treeContext:cr!==null?{id:Ha,overflow:Fa}:null,retryLane:536870912},T=Xn(18,null,null,0),T.stateNode=A,T.return=i,i.child=T,sn=i,Yt=null,T=!0):T=!1}T||fr(i)}if(A=i.memoizedState,A!==null&&(A=A.dehydrated,A!==null))return A.data==="$!"?i.lanes=16:i.lanes=536870912,null;Pa(i)}return A=l.children,l=l.fallback,d?(hi(),d=i.mode,A=hf({mode:"hidden",children:A},d),l=Sr(l,d,s,null),A.return=i,l.return=i,A.sibling=l,i.child=A,d=i.child,d.memoizedState=cf(s),d.childLanes=df(t,w,s),i.memoizedState=uf,l):(fi(i),ff(i,A))}if(T=t.memoizedState,T!==null&&(A=T.dehydrated,A!==null)){if(h)i.flags&256?(fi(i),i.flags&=-257,i=mf(t,i,s)):i.memoizedState!==null?(hi(),i.child=t.child,i.flags|=128,i=null):(hi(),d=l.fallback,A=i.mode,l=hf({mode:"visible",children:l.children},A),d=Sr(d,A,s,null),d.flags|=2,l.return=i,d.return=i,l.sibling=d,i.child=l,hr(i,t.child,null,s),l=i.child,l.memoizedState=cf(s),l.childLanes=df(t,w,s),i.memoizedState=uf,i=d);else if(fi(i),A.data==="$!"){if(w=A.nextSibling&&A.nextSibling.dataset,w)var B=w.dgst;w=B,l=Error(r(419)),l.stack="",l.digest=w,xl({value:l,source:null,stack:null}),i=mf(t,i,s)}else if(Ht||Dl(t,i,s,!1),w=(s&t.childLanes)!==0,Ht||w){if(w=lt,w!==null){if(l=s&-s,(l&42)!==0)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&(w.suspendedLanes|s))!==0?0:l,l!==0&&l!==T.retryLane)throw T.retryLane=l,di(t,l),ln(w,t,l),m0}A.data==="$?"||Vf(),i=mf(t,i,s)}else A.data==="$?"?(i.flags|=128,i.child=t.child,i=nS.bind(null,t),A._reactRetry=i,i=null):(t=T.treeContext,Yt=ua(A.nextSibling),sn=i,Ke=!0,la=null,va=!1,t!==null&&(qn[Qn++]=Ha,qn[Qn++]=Fa,qn[Qn++]=cr,Ha=t.id,Fa=t.overflow,cr=i),i=ff(i,l.children),i.flags|=4096);return i}return d?(hi(),d=l.fallback,A=i.mode,T=t.child,B=T.sibling,l=Ai(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&31457280,B!==null?d=Ai(B,d):(d=Sr(d,A,s,null),d.flags|=2),d.return=i,l.return=i,l.sibling=d,i.child=l,l=d,d=i.child,A=t.child.memoizedState,A===null?A=cf(s):(T=A.cachePool,T!==null?(B=Lt._currentValue,T=T.parent!==B?{parent:B,pool:B}:T):T=Cp(),A={baseLanes:A.baseLanes|s,cachePool:T}),d.memoizedState=A,d.childLanes=df(t,w,s),i.memoizedState=uf,l):(fi(i),s=t.child,t=s.sibling,s=Ai(s,{mode:"visible",children:l.children}),s.return=i,s.sibling=null,t!==null&&(w=i.deletions,w===null?(i.deletions=[t],i.flags|=16):w.push(t)),i.child=s,i.memoizedState=null,s)}function ff(t,i){return i=hf({mode:"visible",children:i},t.mode),i.return=t,t.child=i}function hf(t,i){return X0(t,i,0,null)}function mf(t,i,s){return hr(i,t.child,null,s),t=ff(i,i.pendingProps.children),t.flags|=2,i.memoizedState=null,t}function C0(t,i,s){t.lanes|=i;var l=t.alternate;l!==null&&(l.lanes|=i),vf(t.return,i,s)}function gf(t,i,s,l,d){var h=t.memoizedState;h===null?t.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 E0(t,i,s){var l=i.pendingProps,d=l.revealOrder,h=l.tail;if($t(t,i,l.children,s),l=zt.current,(l&2)!==0)l=l&1|2,i.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=i.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&C0(t,s,i);else if(t.tag===19)C0(t,s,i);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===i)break e;for(;t.sibling===null;){if(t.return===null||t.return===i)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}l&=1}switch(_e(zt,l),d){case"forwards":for(s=i.child,d=null;s!==null;)t=s.alternate,t!==null&&uu(t)===null&&(d=s),s=s.sibling;s=d,s===null?(d=i.child,i.child=null):(d=s.sibling,s.sibling=null),gf(i,!1,d,s,h);break;case"backwards":for(s=null,d=i.child,i.child=null;d!==null;){if(t=d.alternate,t!==null&&uu(t)===null){i.child=d;break}t=d.sibling,d.sibling=s,s=d,d=t}gf(i,!0,s,null,h);break;case"together":gf(i,!1,null,null,void 0);break;default:i.memoizedState=null}return i.child}function Ia(t,i,s){if(t!==null&&(i.dependencies=t.dependencies),Ci|=i.lanes,(s&i.childLanes)===0)if(t!==null){if(Dl(t,i,s,!1),(s&i.childLanes)===0)return null}else return null;if(t!==null&&i.child!==t.child)throw Error(r(153));if(i.child!==null){for(t=i.child,s=Ai(t,t.pendingProps),i.child=s,s.return=i;t.sibling!==null;)t=t.sibling,s=s.sibling=Ai(t,t.pendingProps),s.return=i;s.sibling=null}return i.child}function pf(t,i){return(t.lanes&i)!==0?!0:(t=t.dependencies,!!(t!==null&&xu(t)))}function V1(t,i,s){switch(i.tag){case 3:$r(i,i.stateNode.containerInfo),pi(i,Lt,t.memoizedState.cache),bl();break;case 27:case 5:rl(i);break;case 4:$r(i,i.stateNode.containerInfo);break;case 10:pi(i,i.type,i.memoizedProps.value);break;case 13:var l=i.memoizedState;if(l!==null)return l.dehydrated!==null?(fi(i),i.flags|=128,null):(s&i.child.childLanes)!==0?A0(t,i,s):(fi(i),t=Ia(t,i,s),t!==null?t.sibling:null);fi(i);break;case 19:var d=(t.flags&128)!==0;if(l=(s&i.childLanes)!==0,l||(Dl(t,i,s,!1),l=(s&i.childLanes)!==0),d){if(l)return E0(t,i,s);i.flags|=128}if(d=i.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),_e(zt,zt.current),l)break;return null;case 22:case 23:return i.lanes=0,v0(t,i,s);case 24:pi(i,Lt,t.memoizedState.cache)}return Ia(t,i,s)}function j0(t,i,s){if(t!==null)if(t.memoizedProps!==i.pendingProps)Ht=!0;else{if(!pf(t,s)&&(i.flags&128)===0)return Ht=!1,V1(t,i,s);Ht=(t.flags&131072)!==0}else Ht=!1,Ke&&(i.flags&1048576)!==0&&cp(i,iu,i.index);switch(i.lanes=0,i.tag){case 16:e:{t=i.pendingProps;var l=i.elementType,d=l._init;if(l=d(l._payload),i.type=l,typeof l=="function")kf(l)?(t=vr(l,t),i.tag=1,i=x0(null,i,l,t,s)):(i.tag=0,i=of(null,i,l,t,s));else{if(l!=null){if(d=l.$$typeof,d===S){i.tag=11,i=g0(null,i,l,t,s);break e}else if(d===k){i.tag=14,i=p0(null,i,l,t,s);break e}}throw i=se(l)||l,Error(r(306,i,""))}}return i;case 0:return of(t,i,i.type,i.pendingProps,s);case 1:return l=i.type,d=vr(l,i.pendingProps),x0(t,i,l,d,s);case 3:e:{if($r(i,i.stateNode.containerInfo),t===null)throw Error(r(387));var h=i.pendingProps;d=i.memoizedState,l=d.element,xf(t,i),Bl(i,h,null,s);var w=i.memoizedState;if(h=w.cache,pi(i,Lt,h),h!==d.cache&&wf(i,[Lt],s,!0),_l(),h=w.element,d.isDehydrated)if(d={element:h,isDehydrated:!1,cache:w.cache},i.updateQueue.baseState=d,i.memoizedState=d,i.flags&256){i=S0(t,i,h,s);break e}else if(h!==l){l=In(Error(r(424)),i),xl(l),i=S0(t,i,h,s);break e}else for(Yt=ua(i.stateNode.containerInfo.firstChild),sn=i,Ke=!0,la=null,va=!0,s=wp(i,null,h,s),i.child=s;s;)s.flags=s.flags&-3|4096,s=s.sibling;else{if(bl(),h===l){i=Ia(t,i,s);break e}$t(t,i,h,s)}i=i.child}return i;case 26:return Ml(t,i),t===null?(s=Ty(i.type,null,i.pendingProps,null))?i.memoizedState=s:Ke||(s=i.type,t=i.pendingProps,l=Lu(Rt.current).createElement(s),l[ye]=i,l[Oe]=t,Xt(l,s,t),st(l),i.stateNode=l):i.memoizedState=Ty(i.type,t.memoizedProps,i.pendingProps,t.memoizedState),null;case 27:return rl(i),t===null&&Ke&&(l=i.stateNode=jy(i.type,i.pendingProps,Rt.current),sn=i,va=!0,Yt=ua(l.firstChild)),l=i.pendingProps.children,t!==null||Ke?$t(t,i,l,s):i.child=hr(i,null,l,s),Ml(t,i),i.child;case 5:return t===null&&Ke&&((d=l=Yt)&&(l=vS(l,i.type,i.pendingProps,va),l!==null?(i.stateNode=l,sn=i,Yt=ua(l.firstChild),va=!1,d=!0):d=!1),d||fr(i)),rl(i),d=i.type,h=i.pendingProps,w=t!==null?t.memoizedProps:null,l=h.children,nh(d,h)?l=null:w!==null&&nh(d,w)&&(i.flags|=32),i.memoizedState!==null&&(d=Id(t,i,B1,null,null,s),Kl._currentValue=d),Ml(t,i),$t(t,i,l,s),i.child;case 6:return t===null&&Ke&&((t=s=Yt)&&(s=wS(s,i.pendingProps,va),s!==null?(i.stateNode=s,sn=i,Yt=null,t=!0):t=!1),t||fr(i)),null;case 13:return A0(t,i,s);case 4:return $r(i,i.stateNode.containerInfo),l=i.pendingProps,t===null?i.child=hr(i,null,l,s):$t(t,i,l,s),i.child;case 11:return g0(t,i,i.type,i.pendingProps,s);case 7:return $t(t,i,i.pendingProps,s),i.child;case 8:return $t(t,i,i.pendingProps.children,s),i.child;case 12:return $t(t,i,i.pendingProps.children,s),i.child;case 10:return l=i.pendingProps,pi(i,i.type,l.value),$t(t,i,l.children,s),i.child;case 9:return d=i.type._context,l=i.pendingProps.children,br(i),d=Jt(d),l=l(d),i.flags|=1,$t(t,i,l,s),i.child;case 14:return p0(t,i,i.type,i.pendingProps,s);case 15:return y0(t,i,i.type,i.pendingProps,s);case 19:return E0(t,i,s);case 22:return v0(t,i,s);case 24:return br(i),l=Jt(Lt),t===null?(d=Pd(),d===null&&(d=lt,h=Hd(),d.pooledCache=h,h.refCount++,h!==null&&(d.pooledCacheLanes|=s),d=h),i.memoizedState={parent:l,cache:d},bf(i),pi(i,Lt,d)):((t.lanes&s)!==0&&(xf(t,i),Bl(i,null,null,s),_l()),d=t.memoizedState,h=i.memoizedState,d.parent!==l?(d={parent:l,cache:l},i.memoizedState=d,i.lanes===0&&(i.memoizedState=i.updateQueue.baseState=d),pi(i,Lt,l)):(l=h.cache,pi(i,Lt,l),l!==d.cache&&wf(i,[Lt],s,!0))),$t(t,i,i.pendingProps.children,s),i.child;case 29:throw i.pendingProps}throw Error(r(156,i.tag))}var yf=Ve(null),wr=null,qa=null;function pi(t,i,s){_e(yf,i._currentValue),i._currentValue=s}function Qa(t){t._currentValue=yf.current,ze(yf)}function vf(t,i,s){for(;t!==null;){var l=t.alternate;if((t.childLanes&i)!==i?(t.childLanes|=i,l!==null&&(l.childLanes|=i)):l!==null&&(l.childLanes&i)!==i&&(l.childLanes|=i),t===s)break;t=t.return}}function wf(t,i,s,l){var d=t.child;for(d!==null&&(d.return=t);d!==null;){var h=d.dependencies;if(h!==null){var w=d.child;h=h.firstContext;e:for(;h!==null;){var A=h;h=d;for(var T=0;T<i.length;T++)if(A.context===i[T]){h.lanes|=s,A=h.alternate,A!==null&&(A.lanes|=s),vf(h.return,s,t),l||(w=null);break e}h=A.next}}else if(d.tag===18){if(w=d.return,w===null)throw Error(r(341));w.lanes|=s,h=w.alternate,h!==null&&(h.lanes|=s),vf(w,s,t),w=null}else w=d.child;if(w!==null)w.return=d;else for(w=d;w!==null;){if(w===t){w=null;break}if(d=w.sibling,d!==null){d.return=w.return,w=d;break}w=w.return}d=w}}function Dl(t,i,s,l){t=null;for(var d=i,h=!1;d!==null;){if(!h){if((d.flags&524288)!==0)h=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var w=d.alternate;if(w===null)throw Error(r(387));if(w=w.memoizedProps,w!==null){var A=d.type;An(d.pendingProps.value,w.value)||(t!==null?t.push(A):t=[A])}}else if(d===Yr.current){if(w=d.alternate,w===null)throw Error(r(387));w.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(t!==null?t.push(Kl):t=[Kl])}d=d.return}t!==null&&wf(i,t,s,l),i.flags|=262144}function xu(t){for(t=t.firstContext;t!==null;){if(!An(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function br(t){wr=t,qa=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function Jt(t){return R0(wr,t)}function Su(t,i){return wr===null&&br(t),R0(t,i)}function R0(t,i){var s=i._currentValue;if(i={context:i,memoizedValue:s,next:null},qa===null){if(t===null)throw Error(r(308));qa=i,t.dependencies={lanes:0,firstContext:i},t.flags|=524288}else qa=qa.next=i;return s}var yi=!1;function bf(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function xf(t,i){t=t.updateQueue,i.updateQueue===t&&(i.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function vi(t){return{lane:t,tag:0,payload:null,callback:null,next:null}}function wi(t,i,s){var l=t.updateQueue;if(l===null)return null;if(l=l.shared,(vt&2)!==0){var d=l.pending;return d===null?i.next=i:(i.next=d.next,d.next=i),l.pending=i,i=nu(t),op(t,null,s),i}return tu(t,l,i,s),nu(t)}function Ol(t,i,s){if(i=i.updateQueue,i!==null&&(i=i.shared,(s&4194176)!==0)){var l=i.lanes;l&=t.pendingLanes,s|=l,i.lanes=s,Ee(t,s)}}function Sf(t,i){var s=t.updateQueue,l=t.alternate;if(l!==null&&(l=l.updateQueue,s===l)){var d=null,h=null;if(s=s.firstBaseUpdate,s!==null){do{var w={lane:s.lane,tag:s.tag,payload:s.payload,callback:null,next:null};h===null?d=h=w:h=h.next=w,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},t.updateQueue=s;return}t=s.lastBaseUpdate,t===null?s.firstBaseUpdate=i:t.next=i,s.lastBaseUpdate=i}var Af=!1;function _l(){if(Af){var t=fs;if(t!==null)throw t}}function Bl(t,i,s,l){Af=!1;var d=t.updateQueue;yi=!1;var h=d.firstBaseUpdate,w=d.lastBaseUpdate,A=d.shared.pending;if(A!==null){d.shared.pending=null;var T=A,B=T.next;T.next=null,w===null?h=B:w.next=B,w=T;var J=t.alternate;J!==null&&(J=J.updateQueue,A=J.lastBaseUpdate,A!==w&&(A===null?J.firstBaseUpdate=B:A.next=B,J.lastBaseUpdate=T))}if(h!==null){var ae=d.baseState;w=0,J=B=T=null,A=h;do{var V=A.lane&-536870913,K=V!==A.lane;if(K?(Xe&V)===V:(l&V)===V){V!==0&&V===ds&&(Af=!0),J!==null&&(J=J.next={lane:0,tag:A.tag,payload:A.payload,callback:null,next:null});e:{var xe=t,Le=A;V=i;var Et=s;switch(Le.tag){case 1:if(xe=Le.payload,typeof xe=="function"){ae=xe.call(Et,ae,V);break e}ae=xe;break e;case 3:xe.flags=xe.flags&-65537|128;case 0:if(xe=Le.payload,V=typeof xe=="function"?xe.call(Et,ae,V):xe,V==null)break e;ae=ne({},ae,V);break e;case 2:yi=!0}}V=A.callback,V!==null&&(t.flags|=64,K&&(t.flags|=8192),K=d.callbacks,K===null?d.callbacks=[V]:K.push(V))}else K={lane:V,tag:A.tag,payload:A.payload,callback:A.callback,next:null},J===null?(B=J=K,T=ae):J=J.next=K,w|=V;if(A=A.next,A===null){if(A=d.shared.pending,A===null)break;K=A,A=K.next,K.next=null,d.lastBaseUpdate=K,d.shared.pending=null}}while(!0);J===null&&(T=ae),d.baseState=T,d.firstBaseUpdate=B,d.lastBaseUpdate=J,h===null&&(d.shared.lanes=0),Ci|=w,t.lanes=w,t.memoizedState=ae}}function N0(t,i){if(typeof t!="function")throw Error(r(191,t));t.call(i)}function T0(t,i){var s=t.callbacks;if(s!==null)for(t.callbacks=null,t=0;t<s.length;t++)N0(s[t],i)}function zl(t,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&t)===t){l=void 0;var h=s.create,w=s.inst;l=h(),w.destroy=l}s=s.next}while(s!==d)}}catch(A){rt(i,i.return,A)}}function bi(t,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&t)===t){var w=l.inst,A=w.destroy;if(A!==void 0){w.destroy=void 0,d=i;var T=s;try{A()}catch(B){rt(d,T,B)}}}l=l.next}while(l!==h)}}catch(B){rt(i,i.return,B)}}function k0(t){var i=t.updateQueue;if(i!==null){var s=t.stateNode;try{T0(i,s)}catch(l){rt(t,t.return,l)}}}function M0(t,i,s){s.props=vr(t.type,t.memoizedProps),s.state=t.memoizedState;try{s.componentWillUnmount()}catch(l){rt(t,i,l)}}function xr(t,i){try{var s=t.ref;if(s!==null){var l=t.stateNode;switch(t.tag){case 26:case 27:case 5:var d=l;break;default:d=l}typeof s=="function"?t.refCleanup=s(d):s.current=d}}catch(h){rt(t,i,h)}}function Cn(t,i){var s=t.ref,l=t.refCleanup;if(s!==null)if(typeof l=="function")try{l()}catch(d){rt(t,i,d)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof s=="function")try{s(null)}catch(d){rt(t,i,d)}else s.current=null}function D0(t){var i=t.type,s=t.memoizedProps,l=t.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){rt(t,t.return,d)}}function O0(t,i,s){try{var l=t.stateNode;hS(l,t.type,s,i),l[Oe]=i}catch(d){rt(t,t.return,d)}}function _0(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27||t.tag===4}function Cf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||_0(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==27&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function Ef(t,i,s){var l=t.tag;if(l===5||l===6)t=t.stateNode,i?s.nodeType===8?s.parentNode.insertBefore(t,i):s.insertBefore(t,i):(s.nodeType===8?(i=s.parentNode,i.insertBefore(t,s)):(i=s,i.appendChild(t)),s=s._reactRootContainer,s!=null||i.onclick!==null||(i.onclick=zu));else if(l!==4&&l!==27&&(t=t.child,t!==null))for(Ef(t,i,s),t=t.sibling;t!==null;)Ef(t,i,s),t=t.sibling}function Au(t,i,s){var l=t.tag;if(l===5||l===6)t=t.stateNode,i?s.insertBefore(t,i):s.appendChild(t);else if(l!==4&&l!==27&&(t=t.child,t!==null))for(Au(t,i,s),t=t.sibling;t!==null;)Au(t,i,s),t=t.sibling}var Ga=!1,At=!1,jf=!1,B0=typeof WeakSet=="function"?WeakSet:Set,Ft=null,z0=!1;function I1(t,i){if(t=t.containerInfo,eh=Iu,t=Wg(t),Rd(t)){if("selectionStart"in t)var s={start:t.selectionStart,end:t.selectionEnd};else e:{s=(s=t.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 w=0,A=-1,T=-1,B=0,J=0,ae=t,V=null;t:for(;;){for(var K;ae!==s||d!==0&&ae.nodeType!==3||(A=w+d),ae!==h||l!==0&&ae.nodeType!==3||(T=w+l),ae.nodeType===3&&(w+=ae.nodeValue.length),(K=ae.firstChild)!==null;)V=ae,ae=K;for(;;){if(ae===t)break t;if(V===s&&++B===d&&(A=w),V===h&&++J===l&&(T=w),(K=ae.nextSibling)!==null)break;ae=V,V=ae.parentNode}ae=K}s=A===-1||T===-1?null:{start:A,end:T}}else s=null}s=s||{start:0,end:0}}else s=null;for(th={focusedElem:t,selectionRange:s},Iu=!1,Ft=i;Ft!==null;)if(i=Ft,t=i.child,(i.subtreeFlags&1028)!==0&&t!==null)t.return=i,Ft=t;else for(;Ft!==null;){switch(i=Ft,h=i.alternate,t=i.flags,i.tag){case 0:break;case 11:case 15:break;case 1:if((t&1024)!==0&&h!==null){t=void 0,s=i,d=h.memoizedProps,h=h.memoizedState,l=s.stateNode;try{var xe=vr(s.type,d,s.elementType===s.type);t=l.getSnapshotBeforeUpdate(xe,h),l.__reactInternalSnapshotBeforeUpdate=t}catch(Le){rt(s,s.return,Le)}}break;case 3:if((t&1024)!==0){if(t=i.stateNode.containerInfo,s=t.nodeType,s===9)rh(t);else if(s===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":rh(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((t&1024)!==0)throw Error(r(163))}if(t=i.sibling,t!==null){t.return=i.return,Ft=t;break}Ft=i.return}return xe=z0,z0=!1,xe}function L0(t,i,s){var l=s.flags;switch(s.tag){case 0:case 11:case 15:$a(t,s),l&4&&zl(5,s);break;case 1:if($a(t,s),l&4)if(t=s.stateNode,i===null)try{t.componentDidMount()}catch(A){rt(s,s.return,A)}else{var d=vr(s.type,i.memoizedProps);i=i.memoizedState;try{t.componentDidUpdate(d,i,t.__reactInternalSnapshotBeforeUpdate)}catch(A){rt(s,s.return,A)}}l&64&&k0(s),l&512&&xr(s,s.return);break;case 3:if($a(t,s),l&64&&(l=s.updateQueue,l!==null)){if(t=null,s.child!==null)switch(s.child.tag){case 27:case 5:t=s.child.stateNode;break;case 1:t=s.child.stateNode}try{T0(l,t)}catch(A){rt(s,s.return,A)}}break;case 26:$a(t,s),l&512&&xr(s,s.return);break;case 27:case 5:$a(t,s),i===null&&l&4&&D0(s),l&512&&xr(s,s.return);break;case 12:$a(t,s);break;case 13:$a(t,s),l&4&&F0(t,s);break;case 22:if(d=s.memoizedState!==null||Ga,!d){i=i!==null&&i.memoizedState!==null||At;var h=Ga,w=At;Ga=d,(At=i)&&!w?xi(t,s,(s.subtreeFlags&8772)!==0):$a(t,s),Ga=h,At=w}l&512&&(s.memoizedProps.mode==="manual"?xr(s,s.return):Cn(s,s.return));break;default:$a(t,s)}}function U0(t){var i=t.alternate;i!==null&&(t.alternate=null,U0(i)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(i=t.stateNode,i!==null&&Ba(i)),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}var Bt=null,En=!1;function Ya(t,i,s){for(s=s.child;s!==null;)H0(t,i,s),s=s.sibling}function H0(t,i,s){if(rn&&typeof rn.onCommitFiberUnmount=="function")try{rn.onCommitFiberUnmount(ui,s)}catch{}switch(s.tag){case 26:At||Cn(s,i),Ya(t,i,s),s.memoizedState?s.memoizedState.count--:s.stateNode&&(s=s.stateNode,s.parentNode.removeChild(s));break;case 27:At||Cn(s,i);var l=Bt,d=En;for(Bt=s.stateNode,Ya(t,i,s),s=s.stateNode,i=s.attributes;i.length;)s.removeAttributeNode(i[0]);Ba(s),Bt=l,En=d;break;case 5:At||Cn(s,i);case 6:d=Bt;var h=En;if(Bt=null,Ya(t,i,s),Bt=d,En=h,Bt!==null)if(En)try{t=Bt,l=s.stateNode,t.nodeType===8?t.parentNode.removeChild(l):t.removeChild(l)}catch(w){rt(s,i,w)}else try{Bt.removeChild(s.stateNode)}catch(w){rt(s,i,w)}break;case 18:Bt!==null&&(En?(i=Bt,s=s.stateNode,i.nodeType===8?ih(i.parentNode,s):i.nodeType===1&&ih(i,s),eo(i)):ih(Bt,s.stateNode));break;case 4:l=Bt,d=En,Bt=s.stateNode.containerInfo,En=!0,Ya(t,i,s),Bt=l,En=d;break;case 0:case 11:case 14:case 15:At||bi(2,s,i),At||bi(4,s,i),Ya(t,i,s);break;case 1:At||(Cn(s,i),l=s.stateNode,typeof l.componentWillUnmount=="function"&&M0(s,i,l)),Ya(t,i,s);break;case 21:Ya(t,i,s);break;case 22:At||Cn(s,i),At=(l=At)||s.memoizedState!==null,Ya(t,i,s),At=l;break;default:Ya(t,i,s)}}function F0(t,i){if(i.memoizedState===null&&(t=i.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{eo(t)}catch(s){rt(i,i.return,s)}}function q1(t){switch(t.tag){case 13:case 19:var i=t.stateNode;return i===null&&(i=t.stateNode=new B0),i;case 22:return t=t.stateNode,i=t._retryCache,i===null&&(i=t._retryCache=new B0),i;default:throw Error(r(435,t.tag))}}function Rf(t,i){var s=q1(t);i.forEach(function(l){var d=aS.bind(null,t,l);s.has(l)||(s.add(l),l.then(d,d))})}function Yn(t,i){var s=i.deletions;if(s!==null)for(var l=0;l<s.length;l++){var d=s[l],h=t,w=i,A=w;e:for(;A!==null;){switch(A.tag){case 27:case 5:Bt=A.stateNode,En=!1;break e;case 3:Bt=A.stateNode.containerInfo,En=!0;break e;case 4:Bt=A.stateNode.containerInfo,En=!0;break e}A=A.return}if(Bt===null)throw Error(r(160));H0(h,w,d),Bt=null,En=!1,h=d.alternate,h!==null&&(h.return=null),d.return=null}if(i.subtreeFlags&13878)for(i=i.child;i!==null;)P0(i,t),i=i.sibling}var oa=null;function P0(t,i){var s=t.alternate,l=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Yn(i,t),$n(t),l&4&&(bi(3,t,t.return),zl(3,t),bi(5,t,t.return));break;case 1:Yn(i,t),$n(t),l&512&&(At||s===null||Cn(s,s.return)),l&64&&Ga&&(t=t.updateQueue,t!==null&&(l=t.callbacks,l!==null&&(s=t.shared.hiddenCallbacks,t.shared.hiddenCallbacks=s===null?l:s.concat(l))));break;case 26:var d=oa;if(Yn(i,t),$n(t),l&512&&(At||s===null||Cn(s,s.return)),l&4){var h=s!==null?s.memoizedState:null;if(l=t.memoizedState,s===null)if(l===null)if(t.stateNode===null){e:{l=t.type,s=t.memoizedProps,d=d.ownerDocument||d;t:switch(l){case"title":h=d.getElementsByTagName("title")[0],(!h||h[Un]||h[ye]||h.namespaceURI==="http://www.w3.org/2000/svg"||h.hasAttribute("itemprop"))&&(h=d.createElement(l),d.head.insertBefore(h,d.querySelector("head > title"))),Xt(h,l,s),h[ye]=t,st(h),l=h;break e;case"link":var w=Dy("link","href",d).get(l+(s.href||""));if(w){for(var A=0;A<w.length;A++)if(h=w[A],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)){w.splice(A,1);break t}}h=d.createElement(l),Xt(h,l,s),d.head.appendChild(h);break;case"meta":if(w=Dy("meta","content",d).get(l+(s.content||""))){for(A=0;A<w.length;A++)if(h=w[A],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)){w.splice(A,1);break t}}h=d.createElement(l),Xt(h,l,s),d.head.appendChild(h);break;default:throw Error(r(468,l))}h[ye]=t,st(h),l=h}t.stateNode=l}else Oy(d,t.type,t.stateNode);else t.stateNode=My(d,l,t.memoizedProps);else h!==l?(h===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):h.count--,l===null?Oy(d,t.type,t.stateNode):My(d,l,t.memoizedProps)):l===null&&t.stateNode!==null&&O0(t,t.memoizedProps,s.memoizedProps)}break;case 27:if(l&4&&t.alternate===null){d=t.stateNode,h=t.memoizedProps;try{for(var T=d.firstChild;T;){var B=T.nextSibling,J=T.nodeName;T[Un]||J==="HEAD"||J==="BODY"||J==="SCRIPT"||J==="STYLE"||J==="LINK"&&T.rel.toLowerCase()==="stylesheet"||d.removeChild(T),T=B}for(var ae=t.type,V=d.attributes;V.length;)d.removeAttributeNode(V[0]);Xt(d,ae,h),d[ye]=t,d[Oe]=h}catch(xe){rt(t,t.return,xe)}}case 5:if(Yn(i,t),$n(t),l&512&&(At||s===null||Cn(s,s.return)),t.flags&32){d=t.stateNode;try{Wr(d,"")}catch(xe){rt(t,t.return,xe)}}l&4&&t.stateNode!=null&&(d=t.memoizedProps,O0(t,d,s!==null?s.memoizedProps:d)),l&1024&&(jf=!0);break;case 6:if(Yn(i,t),$n(t),l&4){if(t.stateNode===null)throw Error(r(162));l=t.memoizedProps,s=t.stateNode;try{s.nodeValue=l}catch(xe){rt(t,t.return,xe)}}break;case 3:if(Fu=null,d=oa,oa=Uu(i.containerInfo),Yn(i,t),oa=d,$n(t),l&4&&s!==null&&s.memoizedState.isDehydrated)try{eo(i.containerInfo)}catch(xe){rt(t,t.return,xe)}jf&&(jf=!1,V0(t));break;case 4:l=oa,oa=Uu(t.stateNode.containerInfo),Yn(i,t),$n(t),oa=l;break;case 12:Yn(i,t),$n(t);break;case 13:Yn(i,t),$n(t),t.child.flags&8192&&t.memoizedState!==null!=(s!==null&&s.memoizedState!==null)&&(zf=hn()),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Rf(t,l)));break;case 22:if(l&512&&(At||s===null||Cn(s,s.return)),T=t.memoizedState!==null,B=s!==null&&s.memoizedState!==null,J=Ga,ae=At,Ga=J||T,At=ae||B,Yn(i,t),At=ae,Ga=J,$n(t),i=t.stateNode,i._current=t,i._visibility&=-3,i._visibility|=i._pendingVisibility&2,l&8192&&(i._visibility=T?i._visibility&-2:i._visibility|1,T&&(i=Ga||At,s===null||B||i||ps(t)),t.memoizedProps===null||t.memoizedProps.mode!=="manual"))e:for(s=null,i=t;;){if(i.tag===5||i.tag===26||i.tag===27){if(s===null){B=s=i;try{if(d=B.stateNode,T)h=d.style,typeof h.setProperty=="function"?h.setProperty("display","none","important"):h.display="none";else{w=B.stateNode,A=B.memoizedProps.style;var K=A!=null&&A.hasOwnProperty("display")?A.display:null;w.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(xe){rt(B,B.return,xe)}}}else if(i.tag===6){if(s===null){B=i;try{B.stateNode.nodeValue=T?"":B.memoizedProps}catch(xe){rt(B,B.return,xe)}}}else if((i.tag!==22&&i.tag!==23||i.memoizedState===null||i===t)&&i.child!==null){i.child.return=i,i=i.child;continue}if(i===t)break e;for(;i.sibling===null;){if(i.return===null||i.return===t)break e;s===i&&(s=null),i=i.return}s===i&&(s=null),i.sibling.return=i.return,i=i.sibling}l&4&&(l=t.updateQueue,l!==null&&(s=l.retryQueue,s!==null&&(l.retryQueue=null,Rf(t,s))));break;case 19:Yn(i,t),$n(t),l&4&&(l=t.updateQueue,l!==null&&(t.updateQueue=null,Rf(t,l)));break;case 21:break;default:Yn(i,t),$n(t)}}function $n(t){var i=t.flags;if(i&2){try{if(t.tag!==27){e:{for(var s=t.return;s!==null;){if(_0(s)){var l=s;break e}s=s.return}throw Error(r(160))}switch(l.tag){case 27:var d=l.stateNode,h=Cf(t);Au(t,h,d);break;case 5:var w=l.stateNode;l.flags&32&&(Wr(w,""),l.flags&=-33);var A=Cf(t);Au(t,A,w);break;case 3:case 4:var T=l.stateNode.containerInfo,B=Cf(t);Ef(t,B,T);break;default:throw Error(r(161))}}}catch(J){rt(t,t.return,J)}t.flags&=-3}i&4096&&(t.flags&=-4097)}function V0(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var i=t;V0(i),i.tag===5&&i.flags&1024&&i.stateNode.reset(),t=t.sibling}}function $a(t,i){if(i.subtreeFlags&8772)for(i=i.child;i!==null;)L0(t,i.alternate,i),i=i.sibling}function ps(t){for(t=t.child;t!==null;){var i=t;switch(i.tag){case 0:case 11:case 14:case 15:bi(4,i,i.return),ps(i);break;case 1:Cn(i,i.return);var s=i.stateNode;typeof s.componentWillUnmount=="function"&&M0(i,i.return,s),ps(i);break;case 26:case 27:case 5:Cn(i,i.return),ps(i);break;case 22:Cn(i,i.return),i.memoizedState===null&&ps(i);break;default:ps(i)}t=t.sibling}}function xi(t,i,s){for(s=s&&(i.subtreeFlags&8772)!==0,i=i.child;i!==null;){var l=i.alternate,d=t,h=i,w=h.flags;switch(h.tag){case 0:case 11:case 15:xi(d,h,s),zl(4,h);break;case 1:if(xi(d,h,s),l=h,d=l.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}catch(B){rt(l,l.return,B)}if(l=h,d=l.updateQueue,d!==null){var A=l.stateNode;try{var T=d.shared.hiddenCallbacks;if(T!==null)for(d.shared.hiddenCallbacks=null,d=0;d<T.length;d++)N0(T[d],A)}catch(B){rt(l,l.return,B)}}s&&w&64&&k0(h),xr(h,h.return);break;case 26:case 27:case 5:xi(d,h,s),s&&l===null&&w&4&&D0(h),xr(h,h.return);break;case 12:xi(d,h,s);break;case 13:xi(d,h,s),s&&w&4&&F0(d,h);break;case 22:h.memoizedState===null&&xi(d,h,s),xr(h,h.return);break;default:xi(d,h,s)}i=i.sibling}}function Nf(t,i){var s=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),t=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(t=i.memoizedState.cachePool.pool),t!==s&&(t!=null&&t.refCount++,s!=null&&jl(s))}function Tf(t,i){t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&jl(t))}function Si(t,i,s,l){if(i.subtreeFlags&10256)for(i=i.child;i!==null;)I0(t,i,s,l),i=i.sibling}function I0(t,i,s,l){var d=i.flags;switch(i.tag){case 0:case 11:case 15:Si(t,i,s,l),d&2048&&zl(9,i);break;case 3:Si(t,i,s,l),d&2048&&(t=null,i.alternate!==null&&(t=i.alternate.memoizedState.cache),i=i.memoizedState.cache,i!==t&&(i.refCount++,t!=null&&jl(t)));break;case 12:if(d&2048){Si(t,i,s,l),t=i.stateNode;try{var h=i.memoizedProps,w=h.id,A=h.onPostCommit;typeof A=="function"&&A(w,i.alternate===null?"mount":"update",t.passiveEffectDuration,-0)}catch(T){rt(i,i.return,T)}}else Si(t,i,s,l);break;case 23:break;case 22:h=i.stateNode,i.memoizedState!==null?h._visibility&4?Si(t,i,s,l):Ll(t,i):h._visibility&4?Si(t,i,s,l):(h._visibility|=4,ys(t,i,s,l,(i.subtreeFlags&10256)!==0)),d&2048&&Nf(i.alternate,i);break;case 24:Si(t,i,s,l),d&2048&&Tf(i.alternate,i);break;default:Si(t,i,s,l)}}function ys(t,i,s,l,d){for(d=d&&(i.subtreeFlags&10256)!==0,i=i.child;i!==null;){var h=t,w=i,A=s,T=l,B=w.flags;switch(w.tag){case 0:case 11:case 15:ys(h,w,A,T,d),zl(8,w);break;case 23:break;case 22:var J=w.stateNode;w.memoizedState!==null?J._visibility&4?ys(h,w,A,T,d):Ll(h,w):(J._visibility|=4,ys(h,w,A,T,d)),d&&B&2048&&Nf(w.alternate,w);break;case 24:ys(h,w,A,T,d),d&&B&2048&&Tf(w.alternate,w);break;default:ys(h,w,A,T,d)}i=i.sibling}}function Ll(t,i){if(i.subtreeFlags&10256)for(i=i.child;i!==null;){var s=t,l=i,d=l.flags;switch(l.tag){case 22:Ll(s,l),d&2048&&Nf(l.alternate,l);break;case 24:Ll(s,l),d&2048&&Tf(l.alternate,l);break;default:Ll(s,l)}i=i.sibling}}var Ul=8192;function vs(t){if(t.subtreeFlags&Ul)for(t=t.child;t!==null;)q0(t),t=t.sibling}function q0(t){switch(t.tag){case 26:vs(t),t.flags&Ul&&t.memoizedState!==null&&DS(oa,t.memoizedState,t.memoizedProps);break;case 5:vs(t);break;case 3:case 4:var i=oa;oa=Uu(t.stateNode.containerInfo),vs(t),oa=i;break;case 22:t.memoizedState===null&&(i=t.alternate,i!==null&&i.memoizedState!==null?(i=Ul,Ul=16777216,vs(t),Ul=i):vs(t));break;default:vs(t)}}function Q0(t){var i=t.alternate;if(i!==null&&(t=i.child,t!==null)){i.child=null;do i=t.sibling,t.sibling=null,t=i;while(t!==null)}}function Hl(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var l=i[s];Ft=l,Y0(l,t)}Q0(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)G0(t),t=t.sibling}function G0(t){switch(t.tag){case 0:case 11:case 15:Hl(t),t.flags&2048&&bi(9,t,t.return);break;case 3:Hl(t);break;case 12:Hl(t);break;case 22:var i=t.stateNode;t.memoizedState!==null&&i._visibility&4&&(t.return===null||t.return.tag!==13)?(i._visibility&=-5,Cu(t)):Hl(t);break;default:Hl(t)}}function Cu(t){var i=t.deletions;if((t.flags&16)!==0){if(i!==null)for(var s=0;s<i.length;s++){var l=i[s];Ft=l,Y0(l,t)}Q0(t)}for(t=t.child;t!==null;){switch(i=t,i.tag){case 0:case 11:case 15:bi(8,i,i.return),Cu(i);break;case 22:s=i.stateNode,s._visibility&4&&(s._visibility&=-5,Cu(i));break;default:Cu(i)}t=t.sibling}}function Y0(t,i){for(;Ft!==null;){var s=Ft;switch(s.tag){case 0:case 11:case 15:bi(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:jl(s.memoizedState.cache)}if(l=s.child,l!==null)l.return=s,Ft=l;else e:for(s=t;Ft!==null;){l=Ft;var d=l.sibling,h=l.return;if(U0(l),l===s){Ft=null;break e}if(d!==null){d.return=h,Ft=d;break e}Ft=h}}}function Q1(t,i,s,l){this.tag=t,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 Xn(t,i,s,l){return new Q1(t,i,s,l)}function kf(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ai(t,i){var s=t.alternate;return s===null?(s=Xn(t.tag,i,t.key,t.mode),s.elementType=t.elementType,s.type=t.type,s.stateNode=t.stateNode,s.alternate=t,t.alternate=s):(s.pendingProps=i,s.type=t.type,s.flags=0,s.subtreeFlags=0,s.deletions=null),s.flags=t.flags&31457280,s.childLanes=t.childLanes,s.lanes=t.lanes,s.child=t.child,s.memoizedProps=t.memoizedProps,s.memoizedState=t.memoizedState,s.updateQueue=t.updateQueue,i=t.dependencies,s.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext},s.sibling=t.sibling,s.index=t.index,s.ref=t.ref,s.refCleanup=t.refCleanup,s}function $0(t,i){t.flags&=31457282;var s=t.alternate;return s===null?(t.childLanes=0,t.lanes=i,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null):(t.childLanes=s.childLanes,t.lanes=s.lanes,t.child=s.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=s.memoizedProps,t.memoizedState=s.memoizedState,t.updateQueue=s.updateQueue,t.type=s.type,i=s.dependencies,t.dependencies=i===null?null:{lanes:i.lanes,firstContext:i.firstContext}),t}function Eu(t,i,s,l,d,h){var w=0;if(l=t,typeof t=="function")kf(t)&&(w=1);else if(typeof t=="string")w=kS(t,s,bt.current)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case p:return Sr(s.children,d,h,i);case g:w=8,d|=24;break;case y:return t=Xn(12,s,i,d|2),t.elementType=y,t.lanes=h,t;case j:return t=Xn(13,s,i,d),t.elementType=j,t.lanes=h,t;case C:return t=Xn(19,s,i,d),t.elementType=C,t.lanes=h,t;case _:return X0(s,d,h,i);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case v:case x:w=10;break e;case b:w=9;break e;case S:w=11;break e;case k:w=14;break e;case z:w=16,l=null;break e}w=29,s=Error(r(130,t===null?"null":typeof t,"")),l=null}return i=Xn(w,s,i,d),i.elementType=t,i.type=l,i.lanes=h,i}function Sr(t,i,s,l){return t=Xn(7,t,l,i),t.lanes=s,t}function X0(t,i,s,l){t=Xn(22,t,l,i),t.elementType=_,t.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)===0){var w=di(h,2);w!==null&&(d._pendingVisibility|=2,ln(w,h,2))}},attach:function(){var h=d._current;if(h===null)throw Error(r(456));if((d._pendingVisibility&2)!==0){var w=di(h,2);w!==null&&(d._pendingVisibility&=-3,ln(w,h,2))}}};return t.stateNode=d,t}function Mf(t,i,s){return t=Xn(6,t,null,i),t.lanes=s,t}function Df(t,i,s){return i=Xn(4,t.children!==null?t.children:[],t.key,i),i.lanes=s,i.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},i}function Xa(t){t.flags|=4}function K0(t,i){if(i.type!=="stylesheet"||(i.state.loading&4)!==0)t.flags&=-16777217;else if(t.flags|=16777216,!_y(i)){if(i=Gn.current,i!==null&&((Xe&4194176)===Xe?wa!==null:(Xe&62914560)!==Xe&&(Xe&536870912)===0||i!==wa))throw Al=zd,hp;t.flags|=8192}}function ju(t,i){i!==null&&(t.flags|=4),t.flags&16384&&(i=t.tag!==22?U():536870912,t.lanes|=i,bs|=i)}function Fl(t,i){if(!Ke)switch(t.tailMode){case"hidden":i=t.tail;for(var s=null;i!==null;)i.alternate!==null&&(s=i),i=i.sibling;s===null?t.tail=null:s.sibling=null;break;case"collapsed":s=t.tail;for(var l=null;s!==null;)s.alternate!==null&&(l=s),s=s.sibling;l===null?i||t.tail===null?t.tail=null:t.tail.sibling=null:l.sibling=null}}function yt(t){var i=t.alternate!==null&&t.alternate.child===t.child,s=0,l=0;if(i)for(var d=t.child;d!==null;)s|=d.lanes|d.childLanes,l|=d.subtreeFlags&31457280,l|=d.flags&31457280,d.return=t,d=d.sibling;else for(d=t.child;d!==null;)s|=d.lanes|d.childLanes,l|=d.subtreeFlags,l|=d.flags,d.return=t,d=d.sibling;return t.subtreeFlags|=l,t.childLanes=s,i}function G1(t,i,s){var l=i.pendingProps;switch(_d(i),i.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yt(i),null;case 1:return yt(i),null;case 3:return s=i.stateNode,l=null,t!==null&&(l=t.memoizedState.cache),i.memoizedState.cache!==l&&(i.flags|=2048),Qa(Lt),Oa(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(t===null||t.child===null)&&(wl(i)?Xa(i):t===null||t.memoizedState.isDehydrated&&(i.flags&256)===0||(i.flags|=1024,la!==null&&(Ff(la),la=null))),yt(i),null;case 26:return s=i.memoizedState,t===null?(Xa(i),s!==null?(yt(i),K0(i,s)):(yt(i),i.flags&=-16777217)):s?s!==t.memoizedState?(Xa(i),yt(i),K0(i,s)):(yt(i),i.flags&=-16777217):(t.memoizedProps!==l&&Xa(i),yt(i),i.flags&=-16777217),null;case 27:Xr(i),s=Rt.current;var d=i.type;if(t!==null&&i.stateNode!=null)t.memoizedProps!==l&&Xa(i);else{if(!l){if(i.stateNode===null)throw Error(r(166));return yt(i),null}t=bt.current,wl(i)?dp(i):(t=jy(d,l,s),i.stateNode=t,Xa(i))}return yt(i),null;case 5:if(Xr(i),s=i.type,t!==null&&i.stateNode!=null)t.memoizedProps!==l&&Xa(i);else{if(!l){if(i.stateNode===null)throw Error(r(166));return yt(i),null}if(t=bt.current,wl(i))dp(i);else{switch(d=Lu(Rt.current),t){case 1:t=d.createElementNS("http://www.w3.org/2000/svg",s);break;case 2:t=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;default:switch(s){case"svg":t=d.createElementNS("http://www.w3.org/2000/svg",s);break;case"math":t=d.createElementNS("http://www.w3.org/1998/Math/MathML",s);break;case"script":t=d.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild);break;case"select":t=typeof l.is=="string"?d.createElement("select",{is:l.is}):d.createElement("select"),l.multiple?t.multiple=!0:l.size&&(t.size=l.size);break;default:t=typeof l.is=="string"?d.createElement(s,{is:l.is}):d.createElement(s)}}t[ye]=i,t[Oe]=l;e:for(d=i.child;d!==null;){if(d.tag===5||d.tag===6)t.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=t;e:switch(Xt(t,s,l),s){case"button":case"input":case"select":case"textarea":t=!!l.autoFocus;break e;case"img":t=!0;break e;default:t=!1}t&&Xa(i)}}return yt(i),i.flags&=-16777217,null;case 6:if(t&&i.stateNode!=null)t.memoizedProps!==l&&Xa(i);else{if(typeof l!="string"&&i.stateNode===null)throw Error(r(166));if(t=Rt.current,wl(i)){if(t=i.stateNode,s=i.memoizedProps,l=null,d=sn,d!==null)switch(d.tag){case 27:case 5:l=d.memoizedProps}t[ye]=i,t=!!(t.nodeValue===s||l!==null&&l.suppressHydrationWarning===!0||by(t.nodeValue,s)),t||fr(i)}else t=Lu(t).createTextNode(l),t[ye]=i,i.stateNode=t}return yt(i),null;case 13:if(l=i.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(d=wl(i),l!==null&&l.dehydrated!==null){if(t===null){if(!d)throw Error(r(318));if(d=i.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(r(317));d[ye]=i}else bl(),(i.flags&128)===0&&(i.memoizedState=null),i.flags|=4;yt(i),d=!1}else la!==null&&(Ff(la),la=null),d=!0;if(!d)return i.flags&256?(Pa(i),i):(Pa(i),null)}if(Pa(i),(i.flags&128)!==0)return i.lanes=s,i;if(s=l!==null,t=t!==null&&t.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!==t&&s&&(i.child.flags|=8192),ju(i,i.updateQueue),yt(i),null;case 4:return Oa(),t===null&&Zf(i.stateNode.containerInfo),yt(i),null;case 10:return Qa(i.type),yt(i),null;case 19:if(ze(zt),d=i.memoizedState,d===null)return yt(i),null;if(l=(i.flags&128)!==0,h=d.rendering,h===null)if(l)Fl(d,!1);else{if(Ct!==0||t!==null&&(t.flags&128)!==0)for(t=i.child;t!==null;){if(h=uu(t),h!==null){for(i.flags|=128,Fl(d,!1),t=h.updateQueue,i.updateQueue=t,ju(i,t),i.subtreeFlags=0,t=s,s=i.child;s!==null;)$0(s,t),s=s.sibling;return _e(zt,zt.current&1|2),i.child}t=t.sibling}d.tail!==null&&hn()>Ru&&(i.flags|=128,l=!0,Fl(d,!1),i.lanes=4194304)}else{if(!l)if(t=uu(h),t!==null){if(i.flags|=128,l=!0,t=t.updateQueue,i.updateQueue=t,ju(i,t),Fl(d,!0),d.tail===null&&d.tailMode==="hidden"&&!h.alternate&&!Ke)return yt(i),null}else 2*hn()-d.renderingStartTime>Ru&&s!==536870912&&(i.flags|=128,l=!0,Fl(d,!1),i.lanes=4194304);d.isBackwards?(h.sibling=i.child,i.child=h):(t=d.last,t!==null?t.sibling=h:i.child=h,d.last=h)}return d.tail!==null?(i=d.tail,d.rendering=i,d.tail=i.sibling,d.renderingStartTime=hn(),i.sibling=null,t=zt.current,_e(zt,l?t&1|2:t&1),i):(yt(i),null);case 22:case 23:return Pa(i),Ud(),l=i.memoizedState!==null,t!==null?t.memoizedState!==null!==l&&(i.flags|=8192):l&&(i.flags|=8192),l?(s&536870912)!==0&&(i.flags&128)===0&&(yt(i),i.subtreeFlags&6&&(i.flags|=8192)):yt(i),s=i.updateQueue,s!==null&&ju(i,s.retryQueue),s=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(s=t.memoizedState.cachePool.pool),l=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(l=i.memoizedState.cachePool.pool),l!==s&&(i.flags|=2048),t!==null&&ze(mr),null;case 24:return s=null,t!==null&&(s=t.memoizedState.cache),i.memoizedState.cache!==s&&(i.flags|=2048),Qa(Lt),yt(i),null;case 25:return null}throw Error(r(156,i.tag))}function Y1(t,i){switch(_d(i),i.tag){case 1:return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 3:return Qa(Lt),Oa(),t=i.flags,(t&65536)!==0&&(t&128)===0?(i.flags=t&-65537|128,i):null;case 26:case 27:case 5:return Xr(i),null;case 13:if(Pa(i),t=i.memoizedState,t!==null&&t.dehydrated!==null){if(i.alternate===null)throw Error(r(340));bl()}return t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 19:return ze(zt),null;case 4:return Oa(),null;case 10:return Qa(i.type),null;case 22:case 23:return Pa(i),Ud(),t!==null&&ze(mr),t=i.flags,t&65536?(i.flags=t&-65537|128,i):null;case 24:return Qa(Lt),null;case 25:return null;default:return null}}function Z0(t,i){switch(_d(i),i.tag){case 3:Qa(Lt),Oa();break;case 26:case 27:case 5:Xr(i);break;case 4:Oa();break;case 13:Pa(i);break;case 19:ze(zt);break;case 10:Qa(i.type);break;case 22:case 23:Pa(i),Ud(),t!==null&&ze(mr);break;case 24:Qa(Lt)}}var $1={getCacheForType:function(t){var i=Jt(Lt),s=i.data.get(t);return s===void 0&&(s=t(),i.data.set(t,s)),s}},X1=typeof WeakMap=="function"?WeakMap:Map,vt=0,lt=null,qe=null,Xe=0,ot=0,jn=null,Ka=!1,ws=!1,Of=!1,Za=0,Ct=0,Ci=0,Ar=0,_f=0,Kn=0,bs=0,Pl=null,xa=null,Bf=!1,zf=0,Ru=1/0,Nu=null,Ei=null,Tu=!1,Cr=null,Vl=0,Lf=0,Uf=null,Il=0,Hf=null;function Rn(){if((vt&2)!==0&&Xe!==0)return Xe&-Xe;if(Q.T!==null){var t=ds;return t!==0?t:Yf()}return Se()}function J0(){Kn===0&&(Kn=(Xe&536870912)===0||Ke?D():536870912);var t=Gn.current;return t!==null&&(t.flags|=32),Kn}function ln(t,i,s){(t===lt&&ot===2||t.cancelPendingCommit!==null)&&(xs(t,0),Ja(t,Xe,Kn,!1)),ie(t,s),((vt&2)===0||t!==lt)&&(t===lt&&((vt&2)===0&&(Ar|=s),Ct===4&&Ja(t,Xe,Kn,!1)),Sa(t))}function W0(t,i,s){if((vt&6)!==0)throw Error(r(327));var l=!s&&(i&60)===0&&(i&t.expiredLanes)===0||ar(t,i),d=l?J1(t,i):If(t,i,!0),h=l;do{if(d===0){ws&&!l&&Ja(t,i,0,!1);break}else if(d===6)Ja(t,i,0,!Ka);else{if(s=t.current.alternate,h&&!K1(s)){d=If(t,i,!1),h=!1;continue}if(d===2){if(h=i,t.errorRecoveryDisabledLanes&h)var w=0;else w=t.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){i=w;e:{var A=t;d=Pl;var T=A.current.memoizedState.isDehydrated;if(T&&(xs(A,w).flags|=256),w=If(A,w,!1),w!==2){if(Of&&!T){A.errorRecoveryDisabledLanes|=h,Ar|=h,d=4;break e}h=xa,xa=d,h!==null&&Ff(h)}d=w}if(h=!1,d!==2)continue}}if(d===1){xs(t,0),Ja(t,i,0,!0);break}e:{switch(l=t,d){case 0:case 1:throw Error(r(345));case 4:if((i&4194176)===i){Ja(l,i,Kn,!Ka);break e}break;case 2:xa=null;break;case 3:case 5:break;default:throw Error(r(329))}if(l.finishedWork=s,l.finishedLanes=i,(i&62914560)===i&&(h=zf+300-hn(),10<h)){if(Ja(l,i,Kn,!Ka),_a(l,0)!==0)break e;l.timeoutHandle=Ay(ey.bind(null,l,s,xa,Nu,Bf,i,Kn,Ar,bs,Ka,2,-0,0),h);break e}ey(l,s,xa,Nu,Bf,i,Kn,Ar,bs,Ka,0,-0,0)}}break}while(!0);Sa(t)}function Ff(t){xa===null?xa=t:xa.push.apply(xa,t)}function ey(t,i,s,l,d,h,w,A,T,B,J,ae,V){var K=i.subtreeFlags;if((K&8192||(K&16785408)===16785408)&&(Xl={stylesheets:null,count:0,unsuspend:MS},q0(i),i=OS(),i!==null)){t.cancelPendingCommit=i(ly.bind(null,t,s,l,d,w,A,T,1,ae,V)),Ja(t,h,w,!B);return}ly(t,s,l,d,w,A,T,J,ae,V)}function K1(t){for(var i=t;;){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(!An(h(),d))return!1}catch{return!1}}if(s=i.child,i.subtreeFlags&16384&&s!==null)s.return=i,i=s;else{if(i===t)break;for(;i.sibling===null;){if(i.return===null||i.return===t)return!0;i=i.return}i.sibling.return=i.return,i=i.sibling}}return!0}function Ja(t,i,s,l){i&=~_f,i&=~Ar,t.suspendedLanes|=i,t.pingedLanes&=~i,l&&(t.warmLanes|=i),l=t.expirationTimes;for(var d=i;0<d;){var h=31-Zt(d),w=1<<h;l[h]=-1,d&=~w}s!==0&&Ne(t,s,i)}function ku(){return(vt&6)===0?(ql(0),!1):!0}function Pf(){if(qe!==null){if(ot===0)var t=qe.return;else t=qe,qa=wr=null,Gd(t),us=null,Cl=0,t=qe;for(;t!==null;)Z0(t.alternate,t),t=t.return;qe=null}}function xs(t,i){t.finishedWork=null,t.finishedLanes=0;var s=t.timeoutHandle;s!==-1&&(t.timeoutHandle=-1,gS(s)),s=t.cancelPendingCommit,s!==null&&(t.cancelPendingCommit=null,s()),Pf(),lt=t,qe=s=Ai(t.current,null),Xe=i,ot=0,jn=null,Ka=!1,ws=ar(t,i),Of=!1,bs=Kn=_f=Ar=Ci=Ct=0,xa=Pl=null,Bf=!1,(i&8)!==0&&(i|=i&32);var l=t.entangledLanes;if(l!==0)for(t=t.entanglements,l&=i;0<l;){var d=31-Zt(l),h=1<<d;i|=t[d],l&=~h}return Za=i,eu(),s}function ty(t,i){Pe=null,Q.H=ba,i===Sl?(i=pp(),ot=3):i===hp?(i=pp(),ot=4):ot=i===m0?8:i!==null&&typeof i=="object"&&typeof i.then=="function"?6:1,jn=i,qe===null&&(Ct=1,bu(t,In(i,t.current)))}function ny(){var t=Q.H;return Q.H=ba,t===null?ba:t}function ay(){var t=Q.A;return Q.A=$1,t}function Vf(){Ct=4,Ka||(Xe&4194176)!==Xe&&Gn.current!==null||(ws=!0),(Ci&134217727)===0&&(Ar&134217727)===0||lt===null||Ja(lt,Xe,Kn,!1)}function If(t,i,s){var l=vt;vt|=2;var d=ny(),h=ay();(lt!==t||Xe!==i)&&(Nu=null,xs(t,i)),i=!1;var w=Ct;e:do try{if(ot!==0&&qe!==null){var A=qe,T=jn;switch(ot){case 8:Pf(),w=6;break e;case 3:case 2:case 6:Gn.current===null&&(i=!0);var B=ot;if(ot=0,jn=null,Ss(t,A,T,B),s&&ws){w=0;break e}break;default:B=ot,ot=0,jn=null,Ss(t,A,T,B)}}Z1(),w=Ct;break}catch(J){ty(t,J)}while(!0);return i&&t.shellSuspendCounter++,qa=wr=null,vt=l,Q.H=d,Q.A=h,qe===null&&(lt=null,Xe=0,eu()),w}function Z1(){for(;qe!==null;)iy(qe)}function J1(t,i){var s=vt;vt|=2;var l=ny(),d=ay();lt!==t||Xe!==i?(Nu=null,Ru=hn()+500,xs(t,i)):ws=ar(t,i);e:do try{if(ot!==0&&qe!==null){i=qe;var h=jn;t:switch(ot){case 1:ot=0,jn=null,Ss(t,i,h,1);break;case 2:if(mp(h)){ot=0,jn=null,ry(i);break}i=function(){ot===2&&lt===t&&(ot=7),Sa(t)},h.then(i,i);break e;case 3:ot=7;break e;case 4:ot=5;break e;case 7:mp(h)?(ot=0,jn=null,ry(i)):(ot=0,jn=null,Ss(t,i,h,7));break;case 5:var w=null;switch(qe.tag){case 26:w=qe.memoizedState;case 5:case 27:var A=qe;if(!w||_y(w)){ot=0,jn=null;var T=A.sibling;if(T!==null)qe=T;else{var B=A.return;B!==null?(qe=B,Mu(B)):qe=null}break t}}ot=0,jn=null,Ss(t,i,h,5);break;case 6:ot=0,jn=null,Ss(t,i,h,6);break;case 8:Pf(),Ct=6;break e;default:throw Error(r(462))}}W1();break}catch(J){ty(t,J)}while(!0);return qa=wr=null,Q.H=l,Q.A=d,vt=s,qe!==null?0:(lt=null,Xe=0,eu(),Ct)}function W1(){for(;qe!==null&&!tr();)iy(qe)}function iy(t){var i=j0(t.alternate,t,Za);t.memoizedProps=t.pendingProps,i===null?Mu(t):qe=i}function ry(t){var i=t,s=i.alternate;switch(i.tag){case 15:case 0:i=b0(s,i,i.pendingProps,i.type,void 0,Xe);break;case 11:i=b0(s,i,i.pendingProps,i.type.render,i.ref,Xe);break;case 5:Gd(i);default:Z0(s,i),i=qe=$0(i,Za),i=j0(s,i,Za)}t.memoizedProps=t.pendingProps,i===null?Mu(t):qe=i}function Ss(t,i,s,l){qa=wr=null,Gd(i),us=null,Cl=0;var d=i.return;try{if(P1(t,d,i,s,Xe)){Ct=1,bu(t,In(s,t.current)),qe=null;return}}catch(h){if(d!==null)throw qe=d,h;Ct=1,bu(t,In(s,t.current)),qe=null;return}i.flags&32768?(Ke||l===1?t=!0:ws||(Xe&536870912)!==0?t=!1:(Ka=t=!0,(l===2||l===3||l===6)&&(l=Gn.current,l!==null&&l.tag===13&&(l.flags|=16384))),sy(i,t)):Mu(i)}function Mu(t){var i=t;do{if((i.flags&32768)!==0){sy(i,Ka);return}t=i.return;var s=G1(i.alternate,i,Za);if(s!==null){qe=s;return}if(i=i.sibling,i!==null){qe=i;return}qe=i=t}while(i!==null);Ct===0&&(Ct=5)}function sy(t,i){do{var s=Y1(t.alternate,t);if(s!==null){s.flags&=32767,qe=s;return}if(s=t.return,s!==null&&(s.flags|=32768,s.subtreeFlags=0,s.deletions=null),!i&&(t=t.sibling,t!==null)){qe=t;return}qe=t=s}while(t!==null);Ct=6,qe=null}function ly(t,i,s,l,d,h,w,A,T,B){var J=Q.T,ae=re.p;try{re.p=2,Q.T=null,eS(t,i,s,l,ae,d,h,w,A,T,B)}finally{Q.T=J,re.p=ae}}function eS(t,i,s,l,d,h,w,A){do As();while(Cr!==null);if((vt&6)!==0)throw Error(r(327));var T=t.finishedWork;if(l=t.finishedLanes,T===null)return null;if(t.finishedWork=null,t.finishedLanes=0,T===t.current)throw Error(r(177));t.callbackNode=null,t.callbackPriority=0,t.cancelPendingCommit=null;var B=T.lanes|T.childLanes;if(B|=Md,de(t,l,B,h,w,A),t===lt&&(qe=lt=null,Xe=0),(T.subtreeFlags&10256)===0&&(T.flags&10256)===0||Tu||(Tu=!0,Lf=B,Uf=s,iS(oi,function(){return As(),null})),s=(T.flags&15990)!==0,(T.subtreeFlags&15990)!==0||s?(s=Q.T,Q.T=null,h=re.p,re.p=2,w=vt,vt|=4,I1(t,T),P0(T,t),C1(th,t.containerInfo),Iu=!!eh,th=eh=null,t.current=T,L0(t,T.alternate,T),Uo(),vt=w,re.p=h,Q.T=s):t.current=T,Tu?(Tu=!1,Cr=t,Vl=l):oy(t,B),B=t.pendingLanes,B===0&&(Ei=null),Po(T.stateNode),Sa(t),i!==null)for(d=t.onRecoverableError,T=0;T<i.length;T++)B=i[T],d(B.value,{componentStack:B.stack});return(Vl&3)!==0&&As(),B=t.pendingLanes,(l&4194218)!==0&&(B&42)!==0?t===Hf?Il++:(Il=0,Hf=t):Il=0,ql(0),null}function oy(t,i){(t.pooledCacheLanes&=i)===0&&(i=t.pooledCache,i!=null&&(t.pooledCache=null,jl(i)))}function As(){if(Cr!==null){var t=Cr,i=Lf;Lf=0;var s=be(Vl),l=Q.T,d=re.p;try{if(re.p=32>s?32:s,Q.T=null,Cr===null)var h=!1;else{s=Uf,Uf=null;var w=Cr,A=Vl;if(Cr=null,Vl=0,(vt&6)!==0)throw Error(r(331));var T=vt;if(vt|=4,G0(w.current),I0(w,w.current,A,s),vt=T,ql(0,!1),rn&&typeof rn.onPostCommitFiberRoot=="function")try{rn.onPostCommitFiberRoot(ui,w)}catch{}h=!0}return h}finally{re.p=d,Q.T=l,oy(t,i)}}return!1}function uy(t,i,s){i=In(s,i),i=lf(t.stateNode,i,2),t=wi(t,i,2),t!==null&&(ie(t,2),Sa(t))}function rt(t,i,s){if(t.tag===3)uy(t,t,s);else for(;i!==null;){if(i.tag===3){uy(i,t,s);break}else if(i.tag===1){var l=i.stateNode;if(typeof i.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(Ei===null||!Ei.has(l))){t=In(s,t),s=f0(2),l=wi(i,s,2),l!==null&&(h0(s,l,i,t),ie(l,2),Sa(l));break}}i=i.return}}function qf(t,i,s){var l=t.pingCache;if(l===null){l=t.pingCache=new X1;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)||(Of=!0,d.add(s),t=tS.bind(null,t,i,s),i.then(t,t))}function tS(t,i,s){var l=t.pingCache;l!==null&&l.delete(i),t.pingedLanes|=t.suspendedLanes&s,t.warmLanes&=~s,lt===t&&(Xe&s)===s&&(Ct===4||Ct===3&&(Xe&62914560)===Xe&&300>hn()-zf?(vt&2)===0&&xs(t,0):_f|=s,bs===Xe&&(bs=0)),Sa(t)}function cy(t,i){i===0&&(i=U()),t=di(t,i),t!==null&&(ie(t,i),Sa(t))}function nS(t){var i=t.memoizedState,s=0;i!==null&&(s=i.retryLane),cy(t,s)}function aS(t,i){var s=0;switch(t.tag){case 13:var l=t.stateNode,d=t.memoizedState;d!==null&&(s=d.retryLane);break;case 19:l=t.stateNode;break;case 22:l=t.stateNode._retryCache;break;default:throw Error(r(314))}l!==null&&l.delete(i),cy(t,s)}function iS(t,i){return ll(t,i)}var Du=null,Cs=null,Qf=!1,Ou=!1,Gf=!1,Er=0;function Sa(t){t!==Cs&&t.next===null&&(Cs===null?Du=Cs=t:Cs=Cs.next=t),Ou=!0,Qf||(Qf=!0,sS(rS))}function ql(t,i){if(!Gf&&Ou){Gf=!0;do for(var s=!1,l=Du;l!==null;){if(t!==0){var d=l.pendingLanes;if(d===0)var h=0;else{var w=l.suspendedLanes,A=l.pingedLanes;h=(1<<31-Zt(42|t)+1)-1,h&=d&~(w&~A),h=h&201326677?h&201326677|1:h?h|2:0}h!==0&&(s=!0,hy(l,h))}else h=Xe,h=_a(l,l===lt?h:0),(h&3)===0||ar(l,h)||(s=!0,hy(l,h));l=l.next}while(s);Gf=!1}}function rS(){Ou=Qf=!1;var t=0;Er!==0&&(mS()&&(t=Er),Er=0);for(var i=hn(),s=null,l=Du;l!==null;){var d=l.next,h=dy(l,i);h===0?(l.next=null,s===null?Du=d:s.next=d,d===null&&(Cs=s)):(s=l,(t!==0||(h&3)!==0)&&(Ou=!0)),l=d}ql(t)}function dy(t,i){for(var s=t.suspendedLanes,l=t.pingedLanes,d=t.expirationTimes,h=t.pendingLanes&-62914561;0<h;){var w=31-Zt(h),A=1<<w,T=d[w];T===-1?((A&s)===0||(A&l)!==0)&&(d[w]=dd(A,i)):T<=i&&(t.expiredLanes|=A),h&=~A}if(i=lt,s=Xe,s=_a(t,t===i?s:0),l=t.callbackNode,s===0||t===i&&ot===2||t.cancelPendingCommit!==null)return l!==null&&l!==null&&ia(l),t.callbackNode=null,t.callbackPriority=0;if((s&3)===0||ar(t,s)){if(i=s&-s,i===t.callbackPriority)return i;switch(l!==null&&ia(l),be(s)){case 2:case 8:s=ol;break;case 32:s=oi;break;case 268435456:s=ra;break;default:s=oi}return l=fy.bind(null,t),s=ll(s,l),t.callbackPriority=i,t.callbackNode=s,i}return l!==null&&l!==null&&ia(l),t.callbackPriority=2,t.callbackNode=null,2}function fy(t,i){var s=t.callbackNode;if(As()&&t.callbackNode!==s)return null;var l=Xe;return l=_a(t,t===lt?l:0),l===0?null:(W0(t,l,i),dy(t,hn()),t.callbackNode!=null&&t.callbackNode===s?fy.bind(null,t):null)}function hy(t,i){if(As())return null;W0(t,i,!0)}function sS(t){pS(function(){(vt&6)!==0?ll(zn,t):t()})}function Yf(){return Er===0&&(Er=D()),Er}function my(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:Yo(""+t)}function gy(t,i){var s=i.ownerDocument.createElement("input");return s.name=i.name,s.value=i.value,t.id&&s.setAttribute("form",t.id),i.parentNode.insertBefore(s,i),t=new FormData(t),s.parentNode.removeChild(s),t}function lS(t,i,s,l,d){if(i==="submit"&&s&&s.stateNode===d){var h=my((d[Oe]||null).action),w=l.submitter;w&&(i=(i=w[Oe]||null)?my(i.formAction):w.getAttribute("formAction"),i!==null&&(h=i,w=null));var A=new Zo("action","action",null,l,d);t.push({event:A,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(Er!==0){var T=w?gy(d,w):new FormData(d);tf(s,{pending:!0,data:T,method:d.method,action:h},null,T)}}else typeof h=="function"&&(A.preventDefault(),T=w?gy(d,w):new FormData(d),tf(s,{pending:!0,data:T,method:d.method,action:h},h,T))},currentTarget:d}]})}}for(var $f=0;$f<lp.length;$f++){var Xf=lp[$f],oS=Xf.toLowerCase(),uS=Xf[0].toUpperCase()+Xf.slice(1);sa(oS,"on"+uS)}sa(np,"onAnimationEnd"),sa(ap,"onAnimationIteration"),sa(ip,"onAnimationStart"),sa("dblclick","onDoubleClick"),sa("focusin","onFocus"),sa("focusout","onBlur"),sa(j1,"onTransitionRun"),sa(R1,"onTransitionStart"),sa(N1,"onTransitionCancel"),sa(rp,"onTransitionEnd"),gt("onMouseEnter",["mouseout","mouseover"]),gt("onMouseLeave",["mouseout","mouseover"]),gt("onPointerEnter",["pointerout","pointerover"]),gt("onPointerLeave",["pointerout","pointerover"]),$e("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),$e("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),$e("onBeforeInput",["compositionend","keypress","textInput","paste"]),$e("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),$e("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),$e("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ql="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(" "),cS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Ql));function py(t,i){i=(i&4)!==0;for(var s=0;s<t.length;s++){var l=t[s],d=l.event;l=l.listeners;e:{var h=void 0;if(i)for(var w=l.length-1;0<=w;w--){var A=l[w],T=A.instance,B=A.currentTarget;if(A=A.listener,T!==h&&d.isPropagationStopped())break e;h=A,d.currentTarget=B;try{h(d)}catch(J){wu(J)}d.currentTarget=null,h=T}else for(w=0;w<l.length;w++){if(A=l[w],T=A.instance,B=A.currentTarget,A=A.listener,T!==h&&d.isPropagationStopped())break e;h=A,d.currentTarget=B;try{h(d)}catch(J){wu(J)}d.currentTarget=null,h=T}}}}function Ge(t,i){var s=i[Dt];s===void 0&&(s=i[Dt]=new Set);var l=t+"__bubble";s.has(l)||(yy(i,t,2,!1),s.add(l))}function Kf(t,i,s){var l=0;i&&(l|=4),yy(s,t,l,i)}var _u="_reactListening"+Math.random().toString(36).slice(2);function Zf(t){if(!t[_u]){t[_u]=!0,ir.forEach(function(s){s!=="selectionchange"&&(cS.has(s)||Kf(s,!1,t),Kf(s,!0,t))});var i=t.nodeType===9?t:t.ownerDocument;i===null||i[_u]||(i[_u]=!0,Kf("selectionchange",!1,i))}}function yy(t,i,s,l){switch(Fy(i)){case 2:var d=zS;break;case 8:d=LS;break;default:d=ch}s=d.bind(null,i,s,t),d=void 0,!vd||i!=="touchstart"&&i!=="touchmove"&&i!=="wheel"||(d=!0),l?d!==void 0?t.addEventListener(i,s,{capture:!0,passive:d}):t.addEventListener(i,s,!0):d!==void 0?t.addEventListener(i,s,{passive:d}):t.addEventListener(i,s,!1)}function Jf(t,i,s,l,d){var h=l;if((i&1)===0&&(i&2)===0&&l!==null)e:for(;;){if(l===null)return;var w=l.tag;if(w===3||w===4){var A=l.stateNode.containerInfo;if(A===d||A.nodeType===8&&A.parentNode===d)break;if(w===4)for(w=l.return;w!==null;){var T=w.tag;if((T===3||T===4)&&(T=w.stateNode.containerInfo,T===d||T.nodeType===8&&T.parentNode===d))return;w=w.return}for(;A!==null;){if(w=Qt(A),w===null)return;if(T=w.tag,T===5||T===6||T===26||T===27){l=h=w;continue e}A=A.parentNode}}l=l.return}Dg(function(){var B=h,J=pd(s),ae=[];e:{var V=sp.get(t);if(V!==void 0){var K=Zo,xe=t;switch(t){case"keypress":if(Xo(s)===0)break e;case"keydown":case"keyup":K=a1;break;case"focusin":xe="focus",K=Sd;break;case"focusout":xe="blur",K=Sd;break;case"beforeblur":case"afterblur":K=Sd;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":K=Bg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":K=Q2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":K=s1;break;case np:case ap:case ip:K=$2;break;case rp:K=o1;break;case"scroll":case"scrollend":K=I2;break;case"wheel":K=c1;break;case"copy":case"cut":case"paste":K=K2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":K=Lg;break;case"toggle":case"beforetoggle":K=f1}var Le=(i&4)!==0,Et=!Le&&(t==="scroll"||t==="scrollend"),L=Le?V!==null?V+"Capture":null:V;Le=[];for(var O=B,F;O!==null;){var ee=O;if(F=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||F===null||L===null||(ee=cl(O,L),ee!=null&&Le.push(Gl(O,ee,F))),Et)break;O=O.return}0<Le.length&&(V=new K(V,xe,null,s,J),ae.push({event:V,listeners:Le}))}}if((i&7)===0){e:{if(V=t==="mouseover"||t==="pointerover",K=t==="mouseout"||t==="pointerout",V&&s!==gd&&(xe=s.relatedTarget||s.fromElement)&&(Qt(xe)||xe[tt]))break e;if((K||V)&&(V=J.window===J?J:(V=J.ownerDocument)?V.defaultView||V.parentWindow:window,K?(xe=s.relatedTarget||s.toElement,K=B,xe=xe?Qt(xe):null,xe!==null&&(Et=$(xe),Le=xe.tag,xe!==Et||Le!==5&&Le!==27&&Le!==6)&&(xe=null)):(K=null,xe=B),K!==xe)){if(Le=Bg,ee="onMouseLeave",L="onMouseEnter",O="mouse",(t==="pointerout"||t==="pointerover")&&(Le=Lg,ee="onPointerLeave",L="onPointerEnter",O="pointer"),Et=K==null?V:za(K),F=xe==null?V:za(xe),V=new Le(ee,O+"leave",K,s,J),V.target=Et,V.relatedTarget=F,ee=null,Qt(J)===B&&(Le=new Le(L,O+"enter",xe,s,J),Le.target=F,Le.relatedTarget=Et,ee=Le),Et=ee,K&&xe)t:{for(Le=K,L=xe,O=0,F=Le;F;F=Es(F))O++;for(F=0,ee=L;ee;ee=Es(ee))F++;for(;0<O-F;)Le=Es(Le),O--;for(;0<F-O;)L=Es(L),F--;for(;O--;){if(Le===L||L!==null&&Le===L.alternate)break t;Le=Es(Le),L=Es(L)}Le=null}else Le=null;K!==null&&vy(ae,V,K,Le,!1),xe!==null&&Et!==null&&vy(ae,Et,xe,Le,!0)}}e:{if(V=B?za(B):window,K=V.nodeName&&V.nodeName.toLowerCase(),K==="select"||K==="input"&&V.type==="file")var ve=Qg;else if(Ig(V))if(Gg)ve=S1;else{ve=b1;var Ie=w1}else K=V.nodeName,!K||K.toLowerCase()!=="input"||V.type!=="checkbox"&&V.type!=="radio"?B&&md(B.elementType)&&(ve=Qg):ve=x1;if(ve&&(ve=ve(t,B))){qg(ae,ve,s,J);break e}Ie&&Ie(t,V,B),t==="focusout"&&B&&V.type==="number"&&B.memoizedProps.value!=null&&hd(V,"number",V.value)}switch(Ie=B?za(B):window,t){case"focusin":(Ig(Ie)||Ie.contentEditable==="true")&&(as=Ie,Nd=B,vl=null);break;case"focusout":vl=Nd=as=null;break;case"mousedown":Td=!0;break;case"contextmenu":case"mouseup":case"dragend":Td=!1,ep(ae,s,J);break;case"selectionchange":if(E1)break;case"keydown":case"keyup":ep(ae,s,J)}var Ae;if(Cd)e:{switch(t){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else ns?Pg(t,s)&&(Te="onCompositionEnd"):t==="keydown"&&s.keyCode===229&&(Te="onCompositionStart");Te&&(Ug&&s.locale!=="ko"&&(ns||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&ns&&(Ae=Og()):(ci=J,wd="value"in ci?ci.value:ci.textContent,ns=!0)),Ie=Bu(B,Te),0<Ie.length&&(Te=new zg(Te,t,null,s,J),ae.push({event:Te,listeners:Ie}),Ae?Te.data=Ae:(Ae=Vg(s),Ae!==null&&(Te.data=Ae)))),(Ae=m1?g1(t,s):p1(t,s))&&(Te=Bu(B,"onBeforeInput"),0<Te.length&&(Ie=new zg("onBeforeInput","beforeinput",null,s,J),ae.push({event:Ie,listeners:Te}),Ie.data=Ae)),lS(ae,t,B,s,J)}py(ae,i)})}function Gl(t,i,s){return{instance:t,listener:i,currentTarget:s}}function Bu(t,i){for(var s=i+"Capture",l=[];t!==null;){var d=t,h=d.stateNode;d=d.tag,d!==5&&d!==26&&d!==27||h===null||(d=cl(t,s),d!=null&&l.unshift(Gl(t,d,h)),d=cl(t,i),d!=null&&l.push(Gl(t,d,h))),t=t.return}return l}function Es(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function vy(t,i,s,l,d){for(var h=i._reactName,w=[];s!==null&&s!==l;){var A=s,T=A.alternate,B=A.stateNode;if(A=A.tag,T!==null&&T===l)break;A!==5&&A!==26&&A!==27||B===null||(T=B,d?(B=cl(s,h),B!=null&&w.unshift(Gl(s,B,T))):d||(B=cl(s,h),B!=null&&w.push(Gl(s,B,T)))),s=s.return}w.length!==0&&t.push({event:i,listeners:w})}var dS=/\r\n?/g,fS=/\u0000|\uFFFD/g;function wy(t){return(typeof t=="string"?t:""+t).replace(dS,`
`).replace(fS,"")}function by(t,i){return i=wy(i),wy(t)===i}function zu(){}function it(t,i,s,l,d,h){switch(s){case"children":typeof l=="string"?i==="body"||i==="textarea"&&l===""||Wr(t,l):(typeof l=="number"||typeof l=="bigint")&&i!=="body"&&Wr(t,""+l);break;case"className":qo(t,"class",l);break;case"tabIndex":qo(t,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":qo(t,s,l);break;case"style":kg(t,l,h);break;case"data":if(i!=="object"){qo(t,"data",l);break}case"src":case"href":if(l===""&&(i!=="a"||s!=="href")){t.removeAttribute(s);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(s);break}l=Yo(""+l),t.setAttribute(s,l);break;case"action":case"formAction":if(typeof l=="function"){t.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"&&it(t,i,"name",d.name,d,null),it(t,i,"formEncType",d.formEncType,d,null),it(t,i,"formMethod",d.formMethod,d,null),it(t,i,"formTarget",d.formTarget,d,null)):(it(t,i,"encType",d.encType,d,null),it(t,i,"method",d.method,d,null),it(t,i,"target",d.target,d,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){t.removeAttribute(s);break}l=Yo(""+l),t.setAttribute(s,l);break;case"onClick":l!=null&&(t.onclick=zu);break;case"onScroll":l!=null&&Ge("scroll",t);break;case"onScrollEnd":l!=null&&Ge("scrollend",t);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));t.innerHTML=s}}break;case"multiple":t.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":t.muted=l&&typeof l!="function"&&typeof l!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(l==null||typeof l=="function"||typeof l=="boolean"||typeof l=="symbol"){t.removeAttribute("xlink:href");break}s=Yo(""+l),t.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"?t.setAttribute(s,""+l):t.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"?t.setAttribute(s,""):t.removeAttribute(s);break;case"capture":case"download":l===!0?t.setAttribute(s,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?t.setAttribute(s,l):t.removeAttribute(s);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?t.setAttribute(s,l):t.removeAttribute(s);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?t.removeAttribute(s):t.setAttribute(s,l);break;case"popover":Ge("beforetoggle",t),Ge("toggle",t),Zr(t,"popover",l);break;case"xlinkActuate":Ua(t,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Ua(t,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Ua(t,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Ua(t,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Ua(t,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Ua(t,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Ua(t,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Ua(t,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Ua(t,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Zr(t,"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=P2.get(s)||s,Zr(t,s,l))}}function Wf(t,i,s,l,d,h){switch(s){case"style":kg(t,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));t.innerHTML=s}}break;case"children":typeof l=="string"?Wr(t,l):(typeof l=="number"||typeof l=="bigint")&&Wr(t,""+l);break;case"onScroll":l!=null&&Ge("scroll",t);break;case"onScrollEnd":l!=null&&Ge("scrollend",t);break;case"onClick":l!=null&&(t.onclick=zu);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!rr.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=t[Oe]||null,h=h!=null?h[s]:null,typeof h=="function"&&t.removeEventListener(i,h,d),typeof l=="function")){typeof h!="function"&&h!==null&&(s in t?t[s]=null:t.hasAttribute(s)&&t.removeAttribute(s)),t.addEventListener(i,l,d);break e}s in t?t[s]=l:l===!0?t.setAttribute(s,""):Zr(t,s,l)}}}function Xt(t,i,s){switch(i){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Ge("error",t),Ge("load",t);var l=!1,d=!1,h;for(h in s)if(s.hasOwnProperty(h)){var w=s[h];if(w!=null)switch(h){case"src":l=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:it(t,i,h,w,s,null)}}d&&it(t,i,"srcSet",s.srcSet,s,null),l&&it(t,i,"src",s.src,s,null);return;case"input":Ge("invalid",t);var A=h=w=d=null,T=null,B=null;for(l in s)if(s.hasOwnProperty(l)){var J=s[l];if(J!=null)switch(l){case"name":d=J;break;case"type":w=J;break;case"checked":T=J;break;case"defaultChecked":B=J;break;case"value":h=J;break;case"defaultValue":A=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(r(137,i));break;default:it(t,i,l,J,s,null)}}jg(t,h,A,T,B,w,d,!1),Qo(t);return;case"select":Ge("invalid",t),l=w=h=null;for(d in s)if(s.hasOwnProperty(d)&&(A=s[d],A!=null))switch(d){case"value":h=A;break;case"defaultValue":w=A;break;case"multiple":l=A;default:it(t,i,d,A,s,null)}i=h,s=w,t.multiple=!!l,i!=null?Jr(t,!!l,i,!1):s!=null&&Jr(t,!!l,s,!0);return;case"textarea":Ge("invalid",t),h=d=l=null;for(w in s)if(s.hasOwnProperty(w)&&(A=s[w],A!=null))switch(w){case"value":l=A;break;case"defaultValue":d=A;break;case"children":h=A;break;case"dangerouslySetInnerHTML":if(A!=null)throw Error(r(91));break;default:it(t,i,w,A,s,null)}Ng(t,l,d,h),Qo(t);return;case"option":for(T in s)if(s.hasOwnProperty(T)&&(l=s[T],l!=null))switch(T){case"selected":t.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:it(t,i,T,l,s,null)}return;case"dialog":Ge("cancel",t),Ge("close",t);break;case"iframe":case"object":Ge("load",t);break;case"video":case"audio":for(l=0;l<Ql.length;l++)Ge(Ql[l],t);break;case"image":Ge("error",t),Ge("load",t);break;case"details":Ge("toggle",t);break;case"embed":case"source":case"link":Ge("error",t),Ge("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(B in s)if(s.hasOwnProperty(B)&&(l=s[B],l!=null))switch(B){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,i));default:it(t,i,B,l,s,null)}return;default:if(md(i)){for(J in s)s.hasOwnProperty(J)&&(l=s[J],l!==void 0&&Wf(t,i,J,l,s,void 0));return}}for(A in s)s.hasOwnProperty(A)&&(l=s[A],l!=null&&it(t,i,A,l,s,null))}function hS(t,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,w=null,A=null,T=null,B=null,J=null;for(K in s){var ae=s[K];if(s.hasOwnProperty(K)&&ae!=null)switch(K){case"checked":break;case"value":break;case"defaultValue":T=ae;default:l.hasOwnProperty(K)||it(t,i,K,null,l,ae)}}for(var V in l){var K=l[V];if(ae=s[V],l.hasOwnProperty(V)&&(K!=null||ae!=null))switch(V){case"type":h=K;break;case"name":d=K;break;case"checked":B=K;break;case"defaultChecked":J=K;break;case"value":w=K;break;case"defaultValue":A=K;break;case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(r(137,i));break;default:K!==ae&&it(t,i,V,K,l,ae)}}fd(t,w,A,T,B,J,h,d);return;case"select":K=w=A=V=null;for(h in s)if(T=s[h],s.hasOwnProperty(h)&&T!=null)switch(h){case"value":break;case"multiple":K=T;default:l.hasOwnProperty(h)||it(t,i,h,null,l,T)}for(d in l)if(h=l[d],T=s[d],l.hasOwnProperty(d)&&(h!=null||T!=null))switch(d){case"value":V=h;break;case"defaultValue":A=h;break;case"multiple":w=h;default:h!==T&&it(t,i,d,h,l,T)}i=A,s=w,l=K,V!=null?Jr(t,!!s,V,!1):!!l!=!!s&&(i!=null?Jr(t,!!s,i,!0):Jr(t,!!s,s?[]:"",!1));return;case"textarea":K=V=null;for(A in s)if(d=s[A],s.hasOwnProperty(A)&&d!=null&&!l.hasOwnProperty(A))switch(A){case"value":break;case"children":break;default:it(t,i,A,null,l,d)}for(w in l)if(d=l[w],h=s[w],l.hasOwnProperty(w)&&(d!=null||h!=null))switch(w){case"value":V=d;break;case"defaultValue":K=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(r(91));break;default:d!==h&&it(t,i,w,d,l,h)}Rg(t,V,K);return;case"option":for(var xe in s)if(V=s[xe],s.hasOwnProperty(xe)&&V!=null&&!l.hasOwnProperty(xe))switch(xe){case"selected":t.selected=!1;break;default:it(t,i,xe,null,l,V)}for(T in l)if(V=l[T],K=s[T],l.hasOwnProperty(T)&&V!==K&&(V!=null||K!=null))switch(T){case"selected":t.selected=V&&typeof V!="function"&&typeof V!="symbol";break;default:it(t,i,T,V,l,K)}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 Le in s)V=s[Le],s.hasOwnProperty(Le)&&V!=null&&!l.hasOwnProperty(Le)&&it(t,i,Le,null,l,V);for(B in l)if(V=l[B],K=s[B],l.hasOwnProperty(B)&&V!==K&&(V!=null||K!=null))switch(B){case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(r(137,i));break;default:it(t,i,B,V,l,K)}return;default:if(md(i)){for(var Et in s)V=s[Et],s.hasOwnProperty(Et)&&V!==void 0&&!l.hasOwnProperty(Et)&&Wf(t,i,Et,void 0,l,V);for(J in l)V=l[J],K=s[J],!l.hasOwnProperty(J)||V===K||V===void 0&&K===void 0||Wf(t,i,J,V,l,K);return}}for(var L in s)V=s[L],s.hasOwnProperty(L)&&V!=null&&!l.hasOwnProperty(L)&&it(t,i,L,null,l,V);for(ae in l)V=l[ae],K=s[ae],!l.hasOwnProperty(ae)||V===K||V==null&&K==null||it(t,i,ae,V,l,K)}var eh=null,th=null;function Lu(t){return t.nodeType===9?t:t.ownerDocument}function xy(t){switch(t){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Sy(t,i){if(t===0)switch(i){case"svg":return 1;case"math":return 2;default:return 0}return t===1&&i==="foreignObject"?0:t}function nh(t,i){return t==="textarea"||t==="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 ah=null;function mS(){var t=window.event;return t&&t.type==="popstate"?t===ah?!1:(ah=t,!0):(ah=null,!1)}var Ay=typeof setTimeout=="function"?setTimeout:void 0,gS=typeof clearTimeout=="function"?clearTimeout:void 0,Cy=typeof Promise=="function"?Promise:void 0,pS=typeof queueMicrotask=="function"?queueMicrotask:typeof Cy<"u"?function(t){return Cy.resolve(null).then(t).catch(yS)}:Ay;function yS(t){setTimeout(function(){throw t})}function ih(t,i){var s=i,l=0;do{var d=s.nextSibling;if(t.removeChild(s),d&&d.nodeType===8)if(s=d.data,s==="/$"){if(l===0){t.removeChild(d),eo(i);return}l--}else s!=="$"&&s!=="$?"&&s!=="$!"||l++;s=d}while(s);eo(i)}function rh(t){var i=t.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":rh(s),Ba(s);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(s.rel.toLowerCase()==="stylesheet")continue}t.removeChild(s)}}function vS(t,i,s,l){for(;t.nodeType===1;){var d=s;if(t.nodeName.toLowerCase()!==i.toLowerCase()){if(!l&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(l){if(!t[Un])switch(i){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(h=t.getAttribute("rel"),h==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(h!==d.rel||t.getAttribute("href")!==(d.href==null?null:d.href)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||t.getAttribute("title")!==(d.title==null?null:d.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(h=t.getAttribute("src"),(h!==(d.src==null?null:d.src)||t.getAttribute("type")!==(d.type==null?null:d.type)||t.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&h&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(i==="input"&&t.type==="hidden"){var h=d.name==null?null:""+d.name;if(d.type==="hidden"&&t.getAttribute("name")===h)return t}else return t;if(t=ua(t.nextSibling),t===null)break}return null}function wS(t,i,s){if(i==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!s||(t=ua(t.nextSibling),t===null))return null;return t}function ua(t){for(;t!=null;t=t.nextSibling){var i=t.nodeType;if(i===1||i===3)break;if(i===8){if(i=t.data,i==="$"||i==="$!"||i==="$?"||i==="F!"||i==="F")break;if(i==="/$")return null}}return t}function Ey(t){t=t.previousSibling;for(var i=0;t;){if(t.nodeType===8){var s=t.data;if(s==="$"||s==="$!"||s==="$?"){if(i===0)return t;i--}else s==="/$"&&i++}t=t.previousSibling}return null}function jy(t,i,s){switch(i=Lu(s),t){case"html":if(t=i.documentElement,!t)throw Error(r(452));return t;case"head":if(t=i.head,!t)throw Error(r(453));return t;case"body":if(t=i.body,!t)throw Error(r(454));return t;default:throw Error(r(451))}}var Zn=new Map,Ry=new Set;function Uu(t){return typeof t.getRootNode=="function"?t.getRootNode():t.ownerDocument}var Wa=re.d;re.d={f:bS,r:xS,D:SS,C:AS,L:CS,m:ES,X:RS,S:jS,M:NS};function bS(){var t=Wa.f(),i=ku();return t||i}function xS(t){var i=Gt(t);i!==null&&i.tag===5&&i.type==="form"?e0(i):Wa.r(t)}var js=typeof document>"u"?null:document;function Ny(t,i,s){var l=js;if(l&&typeof i=="string"&&i){var d=Pn(i);d='link[rel="'+t+'"][href="'+d+'"]',typeof s=="string"&&(d+='[crossorigin="'+s+'"]'),Ry.has(d)||(Ry.add(d),t={rel:t,crossOrigin:s,href:i},l.querySelector(d)===null&&(i=l.createElement("link"),Xt(i,"link",t),st(i),l.head.appendChild(i)))}}function SS(t){Wa.D(t),Ny("dns-prefetch",t,null)}function AS(t,i){Wa.C(t,i),Ny("preconnect",t,i)}function CS(t,i,s){Wa.L(t,i,s);var l=js;if(l&&t&&i){var d='link[rel="preload"][as="'+Pn(i)+'"]';i==="image"&&s&&s.imageSrcSet?(d+='[imagesrcset="'+Pn(s.imageSrcSet)+'"]',typeof s.imageSizes=="string"&&(d+='[imagesizes="'+Pn(s.imageSizes)+'"]')):d+='[href="'+Pn(t)+'"]';var h=d;switch(i){case"style":h=Rs(t);break;case"script":h=Ns(t)}Zn.has(h)||(t=ne({rel:"preload",href:i==="image"&&s&&s.imageSrcSet?void 0:t,as:i},s),Zn.set(h,t),l.querySelector(d)!==null||i==="style"&&l.querySelector(Yl(h))||i==="script"&&l.querySelector($l(h))||(i=l.createElement("link"),Xt(i,"link",t),st(i),l.head.appendChild(i)))}}function ES(t,i){Wa.m(t,i);var s=js;if(s&&t){var l=i&&typeof i.as=="string"?i.as:"script",d='link[rel="modulepreload"][as="'+Pn(l)+'"][href="'+Pn(t)+'"]',h=d;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=Ns(t)}if(!Zn.has(h)&&(t=ne({rel:"modulepreload",href:t},i),Zn.set(h,t),s.querySelector(d)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(s.querySelector($l(h)))return}l=s.createElement("link"),Xt(l,"link",t),st(l),s.head.appendChild(l)}}}function jS(t,i,s){Wa.S(t,i,s);var l=js;if(l&&t){var d=Hn(l).hoistableStyles,h=Rs(t);i=i||"default";var w=d.get(h);if(!w){var A={loading:0,preload:null};if(w=l.querySelector(Yl(h)))A.loading=5;else{t=ne({rel:"stylesheet",href:t,"data-precedence":i},s),(s=Zn.get(h))&&sh(t,s);var T=w=l.createElement("link");st(T),Xt(T,"link",t),T._p=new Promise(function(B,J){T.onload=B,T.onerror=J}),T.addEventListener("load",function(){A.loading|=1}),T.addEventListener("error",function(){A.loading|=2}),A.loading|=4,Hu(w,i,l)}w={type:"stylesheet",instance:w,count:1,state:A},d.set(h,w)}}}function RS(t,i){Wa.X(t,i);var s=js;if(s&&t){var l=Hn(s).hoistableScripts,d=Ns(t),h=l.get(d);h||(h=s.querySelector($l(d)),h||(t=ne({src:t,async:!0},i),(i=Zn.get(d))&&lh(t,i),h=s.createElement("script"),st(h),Xt(h,"link",t),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function NS(t,i){Wa.M(t,i);var s=js;if(s&&t){var l=Hn(s).hoistableScripts,d=Ns(t),h=l.get(d);h||(h=s.querySelector($l(d)),h||(t=ne({src:t,async:!0,type:"module"},i),(i=Zn.get(d))&&lh(t,i),h=s.createElement("script"),st(h),Xt(h,"link",t),s.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},l.set(d,h))}}function Ty(t,i,s,l){var d=(d=Rt.current)?Uu(d):null;if(!d)throw Error(r(446));switch(t){case"meta":case"title":return null;case"style":return typeof s.precedence=="string"&&typeof s.href=="string"?(i=Rs(s.href),s=Hn(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"){t=Rs(s.href);var h=Hn(d).hoistableStyles,w=h.get(t);if(w||(d=d.ownerDocument||d,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},h.set(t,w),(h=d.querySelector(Yl(t)))&&!h._p&&(w.instance=h,w.state.loading=5),Zn.has(t)||(s={rel:"preload",as:"style",href:s.href,crossOrigin:s.crossOrigin,integrity:s.integrity,media:s.media,hrefLang:s.hrefLang,referrerPolicy:s.referrerPolicy},Zn.set(t,s),h||TS(d,t,s,w.state))),i&&l===null)throw Error(r(528,""));return w}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=Ns(s),s=Hn(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,t))}}function Rs(t){return'href="'+Pn(t)+'"'}function Yl(t){return'link[rel="stylesheet"]['+t+"]"}function ky(t){return ne({},t,{"data-precedence":t.precedence,precedence:null})}function TS(t,i,s,l){t.querySelector('link[rel="preload"][as="style"]['+i+"]")?l.loading=1:(i=t.createElement("link"),l.preload=i,i.addEventListener("load",function(){return l.loading|=1}),i.addEventListener("error",function(){return l.loading|=2}),Xt(i,"link",s),st(i),t.head.appendChild(i))}function Ns(t){return'[src="'+Pn(t)+'"]'}function $l(t){return"script[async]"+t}function My(t,i,s){if(i.count++,i.instance===null)switch(i.type){case"style":var l=t.querySelector('style[data-href~="'+Pn(s.href)+'"]');if(l)return i.instance=l,st(l),l;var d=ne({},s,{"data-href":s.href,"data-precedence":s.precedence,href:null,precedence:null});return l=(t.ownerDocument||t).createElement("style"),st(l),Xt(l,"style",d),Hu(l,s.precedence,t),i.instance=l;case"stylesheet":d=Rs(s.href);var h=t.querySelector(Yl(d));if(h)return i.state.loading|=4,i.instance=h,st(h),h;l=ky(s),(d=Zn.get(d))&&sh(l,d),h=(t.ownerDocument||t).createElement("link"),st(h);var w=h;return w._p=new Promise(function(A,T){w.onload=A,w.onerror=T}),Xt(h,"link",l),i.state.loading|=4,Hu(h,s.precedence,t),i.instance=h;case"script":return h=Ns(s.src),(d=t.querySelector($l(h)))?(i.instance=d,st(d),d):(l=s,(d=Zn.get(h))&&(l=ne({},s),lh(l,d)),t=t.ownerDocument||t,d=t.createElement("script"),st(d),Xt(d,"link",l),t.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)===0&&(l=i.instance,i.state.loading|=4,Hu(l,s.precedence,t));return i.instance}function Hu(t,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,w=0;w<l.length;w++){var A=l[w];if(A.dataset.precedence===i)h=A;else if(h!==d)break}h?h.parentNode.insertBefore(t,h.nextSibling):(i=s.nodeType===9?s.head:s,i.insertBefore(t,i.firstChild))}function sh(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.title==null&&(t.title=i.title)}function lh(t,i){t.crossOrigin==null&&(t.crossOrigin=i.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=i.referrerPolicy),t.integrity==null&&(t.integrity=i.integrity)}var Fu=null;function Dy(t,i,s){if(Fu===null){var l=new Map,d=Fu=new Map;d.set(s,l)}else d=Fu,l=d.get(s),l||(l=new Map,d.set(s,l));if(l.has(t))return l;for(l.set(t,null),s=s.getElementsByTagName(t),d=0;d<s.length;d++){var h=s[d];if(!(h[Un]||h[ye]||t==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!=="http://www.w3.org/2000/svg"){var w=h.getAttribute(i)||"";w=t+w;var A=l.get(w);A?A.push(h):l.set(w,[h])}}return l}function Oy(t,i,s){t=t.ownerDocument||t,t.head.insertBefore(s,i==="title"?t.querySelector("head > title"):null)}function kS(t,i,s){if(s===1||i.itemProp!=null)return!1;switch(t){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 t=i.disabled,typeof i.precedence=="string"&&t==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 _y(t){return!(t.type==="stylesheet"&&(t.state.loading&3)===0)}var Xl=null;function MS(){}function DS(t,i,s){if(Xl===null)throw Error(r(475));var l=Xl;if(i.type==="stylesheet"&&(typeof s.media!="string"||matchMedia(s.media).matches!==!1)&&(i.state.loading&4)===0){if(i.instance===null){var d=Rs(s.href),h=t.querySelector(Yl(d));if(h){t=h._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(l.count++,l=Pu.bind(l),t.then(l,l)),i.state.loading|=4,i.instance=h,st(h);return}h=t.ownerDocument||t,s=ky(s),(d=Zn.get(d))&&sh(s,d),h=h.createElement("link"),st(h);var w=h;w._p=new Promise(function(A,T){w.onload=A,w.onerror=T}),Xt(h,"link",s),i.instance=h}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(i,t),(t=i.state.preload)&&(i.state.loading&3)===0&&(l.count++,i=Pu.bind(l),t.addEventListener("load",i),t.addEventListener("error",i))}}function OS(){if(Xl===null)throw Error(r(475));var t=Xl;return t.stylesheets&&t.count===0&&oh(t,t.stylesheets),0<t.count?function(i){var s=setTimeout(function(){if(t.stylesheets&&oh(t,t.stylesheets),t.unsuspend){var l=t.unsuspend;t.unsuspend=null,l()}},6e4);return t.unsuspend=i,function(){t.unsuspend=null,clearTimeout(s)}}:null}function Pu(){if(this.count--,this.count===0){if(this.stylesheets)oh(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}var Vu=null;function oh(t,i){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Vu=new Map,i.forEach(_S,t),Vu=null,Pu.call(t))}function _S(t,i){if(!(i.state.loading&4)){var s=Vu.get(t);if(s)var l=s.get(null);else{s=new Map,Vu.set(t,s);for(var d=t.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<d.length;h++){var w=d[h];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(s.set(w.dataset.precedence,w),l=w)}l&&s.set(null,l)}d=i.instance,w=d.getAttribute("data-precedence"),h=s.get(w)||l,h===l&&s.set(null,d),s.set(w,d),this.count++,l=Pu.bind(this),d.addEventListener("load",l),d.addEventListener("error",l),h?h.parentNode.insertBefore(d,h.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(d,t.firstChild)),i.state.loading|=4}}var Kl={$$typeof:x,Provider:null,Consumer:null,_currentValue:we,_currentValue2:we,_threadCount:0};function BS(t,i,s,l,d,h,w,A){this.tag=1,this.containerInfo=t,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=I(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=I(0),this.hiddenUpdates=I(null),this.identifierPrefix=l,this.onUncaughtError=d,this.onCaughtError=h,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=A,this.incompleteTransitions=new Map}function By(t,i,s,l,d,h,w,A,T,B,J,ae){return t=new BS(t,i,s,w,A,T,B,ae),i=1,h===!0&&(i|=24),h=Xn(3,null,null,i),t.current=h,h.stateNode=t,i=Hd(),i.refCount++,t.pooledCache=i,i.refCount++,h.memoizedState={element:l,isDehydrated:s,cache:i},bf(h),t}function zy(t){return t?(t=ss,t):ss}function Ly(t,i,s,l,d,h){d=zy(d),l.context===null?l.context=d:l.pendingContext=d,l=vi(i),l.payload={element:s},h=h===void 0?null:h,h!==null&&(l.callback=h),s=wi(t,l,i),s!==null&&(ln(s,t,i),Ol(s,t,i))}function Uy(t,i){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var s=t.retryLane;t.retryLane=s!==0&&s<i?s:i}}function uh(t,i){Uy(t,i),(t=t.alternate)&&Uy(t,i)}function Hy(t){if(t.tag===13){var i=di(t,67108864);i!==null&&ln(i,t,67108864),uh(t,67108864)}}var Iu=!0;function zS(t,i,s,l){var d=Q.T;Q.T=null;var h=re.p;try{re.p=2,ch(t,i,s,l)}finally{re.p=h,Q.T=d}}function LS(t,i,s,l){var d=Q.T;Q.T=null;var h=re.p;try{re.p=8,ch(t,i,s,l)}finally{re.p=h,Q.T=d}}function ch(t,i,s,l){if(Iu){var d=dh(l);if(d===null)Jf(t,i,l,qu,s),Py(t,l);else if(HS(d,t,i,s,l))l.stopPropagation();else if(Py(t,l),i&4&&-1<US.indexOf(t)){for(;d!==null;){var h=Gt(d);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var w=Ln(h.pendingLanes);if(w!==0){var A=h;for(A.pendingLanes|=2,A.entangledLanes|=2;w;){var T=1<<31-Zt(w);A.entanglements[1]|=T,w&=~T}Sa(h),(vt&6)===0&&(Ru=hn()+500,ql(0))}}break;case 13:A=di(h,2),A!==null&&ln(A,h,2),ku(),uh(h,2)}if(h=dh(l),h===null&&Jf(t,i,l,qu,s),h===d)break;d=h}d!==null&&l.stopPropagation()}else Jf(t,i,l,null,s)}}function dh(t){return t=pd(t),fh(t)}var qu=null;function fh(t){if(qu=null,t=Qt(t),t!==null){var i=$(t);if(i===null)t=null;else{var s=i.tag;if(s===13){if(t=oe(i),t!==null)return t;t=null}else if(s===3){if(i.stateNode.current.memoizedState.isDehydrated)return i.tag===3?i.stateNode.containerInfo:null;t=null}else i!==t&&(t=null)}}return qu=t,null}function Fy(t){switch(t){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ya()){case zn:return 2;case ol:return 8;case oi:case ud:return 32;case ra:return 268435456;default:return 32}default:return 32}}var hh=!1,ji=null,Ri=null,Ni=null,Zl=new Map,Jl=new Map,Ti=[],US="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Py(t,i){switch(t){case"focusin":case"focusout":ji=null;break;case"dragenter":case"dragleave":Ri=null;break;case"mouseover":case"mouseout":Ni=null;break;case"pointerover":case"pointerout":Zl.delete(i.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jl.delete(i.pointerId)}}function Wl(t,i,s,l,d,h){return t===null||t.nativeEvent!==h?(t={blockedOn:i,domEventName:s,eventSystemFlags:l,nativeEvent:h,targetContainers:[d]},i!==null&&(i=Gt(i),i!==null&&Hy(i)),t):(t.eventSystemFlags|=l,i=t.targetContainers,d!==null&&i.indexOf(d)===-1&&i.push(d),t)}function HS(t,i,s,l,d){switch(i){case"focusin":return ji=Wl(ji,t,i,s,l,d),!0;case"dragenter":return Ri=Wl(Ri,t,i,s,l,d),!0;case"mouseover":return Ni=Wl(Ni,t,i,s,l,d),!0;case"pointerover":var h=d.pointerId;return Zl.set(h,Wl(Zl.get(h)||null,t,i,s,l,d)),!0;case"gotpointercapture":return h=d.pointerId,Jl.set(h,Wl(Jl.get(h)||null,t,i,s,l,d)),!0}return!1}function Vy(t){var i=Qt(t.target);if(i!==null){var s=$(i);if(s!==null){if(i=s.tag,i===13){if(i=oe(s),i!==null){t.blockedOn=i,me(t.priority,function(){if(s.tag===13){var l=Rn(),d=di(s,l);d!==null&&ln(d,s,l),uh(s,l)}});return}}else if(i===3&&s.stateNode.current.memoizedState.isDehydrated){t.blockedOn=s.tag===3?s.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Qu(t){if(t.blockedOn!==null)return!1;for(var i=t.targetContainers;0<i.length;){var s=dh(t.nativeEvent);if(s===null){s=t.nativeEvent;var l=new s.constructor(s.type,s);gd=l,s.target.dispatchEvent(l),gd=null}else return i=Gt(s),i!==null&&Hy(i),t.blockedOn=s,!1;i.shift()}return!0}function Iy(t,i,s){Qu(t)&&s.delete(i)}function FS(){hh=!1,ji!==null&&Qu(ji)&&(ji=null),Ri!==null&&Qu(Ri)&&(Ri=null),Ni!==null&&Qu(Ni)&&(Ni=null),Zl.forEach(Iy),Jl.forEach(Iy)}function Gu(t,i){t.blockedOn===i&&(t.blockedOn=null,hh||(hh=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,FS)))}var Yu=null;function qy(t){Yu!==t&&(Yu=t,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Yu===t&&(Yu=null);for(var i=0;i<t.length;i+=3){var s=t[i],l=t[i+1],d=t[i+2];if(typeof l!="function"){if(fh(l||s)===null)continue;break}var h=Gt(s);h!==null&&(t.splice(i,3),i-=3,tf(h,{pending:!0,data:d,method:s.method,action:l},l,d))}}))}function eo(t){function i(T){return Gu(T,t)}ji!==null&&Gu(ji,t),Ri!==null&&Gu(Ri,t),Ni!==null&&Gu(Ni,t),Zl.forEach(i),Jl.forEach(i);for(var s=0;s<Ti.length;s++){var l=Ti[s];l.blockedOn===t&&(l.blockedOn=null)}for(;0<Ti.length&&(s=Ti[0],s.blockedOn===null);)Vy(s),s.blockedOn===null&&Ti.shift();if(s=(t.ownerDocument||t).$$reactFormReplay,s!=null)for(l=0;l<s.length;l+=3){var d=s[l],h=s[l+1],w=d[Oe]||null;if(typeof h=="function")w||qy(s);else if(w){var A=null;if(h&&h.hasAttribute("formAction")){if(d=h,w=h[Oe]||null)A=w.formAction;else if(fh(d)!==null)continue}else A=w.action;typeof A=="function"?s[l+1]=A:(s.splice(l,3),l-=3),qy(s)}}}function mh(t){this._internalRoot=t}$u.prototype.render=mh.prototype.render=function(t){var i=this._internalRoot;if(i===null)throw Error(r(409));var s=i.current,l=Rn();Ly(s,l,t,i,null,null)},$u.prototype.unmount=mh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var i=t.containerInfo;t.tag===0&&As(),Ly(t.current,2,null,t,null,null),ku(),i[tt]=null}};function $u(t){this._internalRoot=t}$u.prototype.unstable_scheduleHydration=function(t){if(t){var i=Se();t={blockedOn:null,target:t,priority:i};for(var s=0;s<Ti.length&&i!==0&&i<Ti[s].priority;s++);Ti.splice(s,0,t),s===0&&Vy(t)}};var Qy=n.version;if(Qy!=="19.0.0")throw Error(r(527,Qy,"19.0.0"));re.findDOMNode=function(t){var i=t._reactInternals;if(i===void 0)throw typeof t.render=="function"?Error(r(188)):(t=Object.keys(t).join(","),Error(r(268,t)));return t=X(i),t=t!==null?le(t):null,t=t===null?null:t.stateNode,t};var PS={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:Q,findFiberByHostInstance:Qt,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Xu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Xu.isDisabled&&Xu.supportsFiber)try{ui=Xu.inject(PS),rn=Xu}catch{}}return no.createRoot=function(t,i){if(!o(t))throw Error(r(299));var s=!1,l="",d=o0,h=u0,w=c0,A=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&&(w=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(A=i.unstable_transitionCallbacks)),i=By(t,1,!1,null,null,s,l,d,h,w,A,null),t[tt]=i.current,Zf(t.nodeType===8?t.parentNode:t),new mh(i)},no.hydrateRoot=function(t,i,s){if(!o(t))throw Error(r(299));var l=!1,d="",h=o0,w=u0,A=c0,T=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&&(w=s.onCaughtError),s.onRecoverableError!==void 0&&(A=s.onRecoverableError),s.unstable_transitionCallbacks!==void 0&&(T=s.unstable_transitionCallbacks),s.formState!==void 0&&(B=s.formState)),i=By(t,1,!0,i,s??null,l,d,h,w,A,T,B),i.context=zy(null),s=i.current,l=Rn(),d=vi(l),d.callback=null,wi(s,d,l),i.current.lanes=l,ie(i,l),Sa(i),t[tt]=i.current,Zf(t),new $u(i)},no.version="19.0.0",no}var nv;function KS(){if(nv)return vh.exports;nv=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(n){console.error(n)}}return e(),vh.exports=XS(),vh.exports}var ZS=KS(),ao={},av;function JS(){if(av)return ao;av=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.parse=f,ao.serialize=g;const e=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,r=/^[\u0020-\u003A\u003D-\u007E]*$/,o=Object.prototype.toString,u=(()=>{const b=function(){};return b.prototype=Object.create(null),b})();function f(b,x){const S=new u,j=b.length;if(j<2)return S;const C=(x==null?void 0:x.decode)||y;let k=0;do{const z=b.indexOf("=",k);if(z===-1)break;const _=b.indexOf(";",k),Z=_===-1?j:_;if(z>Z){k=b.lastIndexOf(";",z-1)+1;continue}const R=m(b,k,z),W=p(b,z,R),ue=b.slice(R,W);if(S[ue]===void 0){let se=m(b,z+1,Z),Q=p(b,Z,se);const ne=C(b.slice(se,Q));S[ue]=ne}k=Z+1}while(k<j);return S}function m(b,x,S){do{const j=b.charCodeAt(x);if(j!==32&&j!==9)return x}while(++x<S);return S}function p(b,x,S){for(;x>S;){const j=b.charCodeAt(--x);if(j!==32&&j!==9)return x+1}return S}function g(b,x,S){const j=(S==null?void 0:S.encode)||encodeURIComponent;if(!e.test(b))throw new TypeError(`argument name is invalid: ${b}`);const C=j(x);if(!n.test(C))throw new TypeError(`argument val is invalid: ${x}`);let k=b+"="+C;if(!S)return k;if(S.maxAge!==void 0){if(!Number.isInteger(S.maxAge))throw new TypeError(`option maxAge is invalid: ${S.maxAge}`);k+="; Max-Age="+S.maxAge}if(S.domain){if(!a.test(S.domain))throw new TypeError(`option domain is invalid: ${S.domain}`);k+="; Domain="+S.domain}if(S.path){if(!r.test(S.path))throw new TypeError(`option path is invalid: ${S.path}`);k+="; Path="+S.path}if(S.expires){if(!v(S.expires)||!Number.isFinite(S.expires.valueOf()))throw new TypeError(`option expires is invalid: ${S.expires}`);k+="; Expires="+S.expires.toUTCString()}if(S.httpOnly&&(k+="; HttpOnly"),S.secure&&(k+="; Secure"),S.partitioned&&(k+="; Partitioned"),S.priority)switch(typeof S.priority=="string"?S.priority.toLowerCase():void 0){case"low":k+="; Priority=Low";break;case"medium":k+="; Priority=Medium";break;case"high":k+="; Priority=High";break;default:throw new TypeError(`option priority is invalid: ${S.priority}`)}if(S.sameSite)switch(typeof S.sameSite=="string"?S.sameSite.toLowerCase():S.sameSite){case!0:case"strict":k+="; SameSite=Strict";break;case"lax":k+="; SameSite=Lax";break;case"none":k+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${S.sameSite}`)}return k}function y(b){if(b.indexOf("%")===-1)return b;try{return decodeURIComponent(b)}catch{return b}}function v(b){return o.call(b)==="[object Date]"}return ao}JS();/**
 * react-router v7.3.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 Pw=e=>{throw TypeError(e)},WS=(e,n,a)=>n.has(e)||Pw("Cannot "+a),Sh=(e,n,a)=>(WS(e,n,"read from private field"),a?a.call(e):n.get(e)),eA=(e,n,a)=>n.has(e)?Pw("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(e):n.set(e,a),iv="popstate";function tA(e={}){function n(r,o){let{pathname:u,search:f,hash:m}=r.location;return go("",{pathname:u,search:f,hash:m},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function a(r,o){return typeof o=="string"?o:Xi(o)}return aA(n,a,null,e)}function Qe(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}function It(e,n){if(!e){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function nA(){return Math.random().toString(36).substring(2,10)}function rv(e,n){return{usr:e.state,key:e.key,idx:n}}function go(e,n,a=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof n=="string"?Ji(n):n,state:a,key:n&&n.key||r||nA()}}function Xi({pathname:e="/",search:n="",hash:a=""}){return n&&n!=="?"&&(e+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(e+=a.charAt(0)==="#"?a:"#"+a),e}function Ji(e){let n={};if(e){let a=e.indexOf("#");a>=0&&(n.hash=e.substring(a),e=e.substring(0,a));let r=e.indexOf("?");r>=0&&(n.search=e.substring(r),e=e.substring(0,r)),e&&(n.pathname=e)}return n}function aA(e,n,a,r={}){let{window:o=document.defaultView,v5Compat:u=!1}=r,f=o.history,m="POP",p=null,g=y();g==null&&(g=0,f.replaceState({...f.state,idx:g},""));function y(){return(f.state||{idx:null}).idx}function v(){m="POP";let C=y(),k=C==null?null:C-g;g=C,p&&p({action:m,location:j.location,delta:k})}function b(C,k){m="PUSH";let z=go(j.location,C,k);g=y()+1;let _=rv(z,g),Z=j.createHref(z);try{f.pushState(_,"",Z)}catch(R){if(R instanceof DOMException&&R.name==="DataCloneError")throw R;o.location.assign(Z)}u&&p&&p({action:m,location:j.location,delta:1})}function x(C,k){m="REPLACE";let z=go(j.location,C,k);g=y();let _=rv(z,g),Z=j.createHref(z);f.replaceState(_,"",Z),u&&p&&p({action:m,location:j.location,delta:0})}function S(C){let k=o.location.origin!=="null"?o.location.origin:o.location.href,z=typeof C=="string"?C:Xi(C);return z=z.replace(/ $/,"%20"),Qe(k,`No window.location.(origin|href) available to create URL for href: ${z}`),new URL(z,k)}let j={get action(){return m},get location(){return e(o,f)},listen(C){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(iv,v),p=C,()=>{o.removeEventListener(iv,v),p=null}},createHref(C){return n(o,C)},createURL:S,encodeLocation(C){let k=S(C);return{pathname:k.pathname,search:k.search,hash:k.hash}},push:b,replace:x,go(C){return f.go(C)}};return j}var co,sv=class{constructor(e){if(eA(this,co,new Map),e)for(let[n,a]of e)this.set(n,a)}get(e){if(Sh(this,co).has(e))return Sh(this,co).get(e);if(e.defaultValue!==void 0)return e.defaultValue;throw new Error("No value found for context")}set(e,n){Sh(this,co).set(e,n)}};co=new WeakMap;var iA=new Set(["lazy","caseSensitive","path","id","index","children"]);function rA(e){return e.index===!0}function gc(e,n,a=[],r={}){return e.map((o,u)=>{let f=[...a,String(u)],m=typeof o.id=="string"?o.id:f.join("-");if(Qe(o.index!==!0||!o.children,"Cannot specify children on an index route"),Qe(!r[m],`Found a route id collision on id "${m}".  Route id's must be globally unique within Data Router usages`),rA(o)){let p={...o,...n(o),id:m};return r[m]=p,p}else{let p={...o,...n(o),id:m,children:void 0};return r[m]=p,o.children&&(p.children=gc(o.children,n,f,r)),p}})}function Oi(e,n,a="/"){return rc(e,n,a,!1)}function rc(e,n,a,r){let o=typeof n=="string"?Ji(n):n,u=ta(o.pathname||"/",a);if(u==null)return null;let f=Vw(e);lA(f);let m=null;for(let p=0;m==null&&p<f.length;++p){let g=vA(u);m=pA(f[p],g,r)}return m}function sA(e,n){let{route:a,pathname:r,params:o}=e;return{id:a.id,pathname:r,params:o,data:n[a.id],handle:a.handle}}function Vw(e,n=[],a=[],r=""){let o=(u,f,m)=>{let p={relativePath:m===void 0?u.path||"":m,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};p.relativePath.startsWith("/")&&(Qe(p.relativePath.startsWith(r),`Absolute route path "${p.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),p.relativePath=p.relativePath.slice(r.length));let g=Ta([r,p.relativePath]),y=a.concat(p);u.children&&u.children.length>0&&(Qe(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${g}".`),Vw(u.children,n,y,g)),!(u.path==null&&!u.index)&&n.push({path:g,score:mA(g,u.index),routesMeta:y})};return e.forEach((u,f)=>{var m;if(u.path===""||!((m=u.path)!=null&&m.includes("?")))o(u,f);else for(let p of Iw(u.path))o(u,f,p)}),n}function Iw(e){let n=e.split("/");if(n.length===0)return[];let[a,...r]=n,o=a.endsWith("?"),u=a.replace(/\?$/,"");if(r.length===0)return o?[u,""]:[u];let f=Iw(r.join("/")),m=[];return m.push(...f.map(p=>p===""?u:[u,p].join("/"))),o&&m.push(...f),m.map(p=>e.startsWith("/")&&p===""?"/":p)}function lA(e){e.sort((n,a)=>n.score!==a.score?a.score-n.score:gA(n.routesMeta.map(r=>r.childrenIndex),a.routesMeta.map(r=>r.childrenIndex)))}var oA=/^:[\w-]+$/,uA=3,cA=2,dA=1,fA=10,hA=-2,lv=e=>e==="*";function mA(e,n){let a=e.split("/"),r=a.length;return a.some(lv)&&(r+=hA),n&&(r+=cA),a.filter(o=>!lv(o)).reduce((o,u)=>o+(oA.test(u)?uA:u===""?dA:fA),r)}function gA(e,n){return e.length===n.length&&e.slice(0,-1).every((r,o)=>r===n[o])?e[e.length-1]-n[n.length-1]:0}function pA(e,n,a=!1){let{routesMeta:r}=e,o={},u="/",f=[];for(let m=0;m<r.length;++m){let p=r[m],g=m===r.length-1,y=u==="/"?n:n.slice(u.length)||"/",v=pc({path:p.relativePath,caseSensitive:p.caseSensitive,end:g},y),b=p.route;if(!v&&g&&a&&!r[r.length-1].route.index&&(v=pc({path:p.relativePath,caseSensitive:p.caseSensitive,end:!1},y)),!v)return null;Object.assign(o,v.params),f.push({params:o,pathname:Ta([u,v.pathname]),pathnameBase:xA(Ta([u,v.pathnameBase])),route:b}),v.pathnameBase!=="/"&&(u=Ta([u,v.pathnameBase]))}return f}function pc(e,n){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[a,r]=yA(e.path,e.caseSensitive,e.end),o=n.match(a);if(!o)return null;let u=o[0],f=u.replace(/(.)\/+$/,"$1"),m=o.slice(1);return{params:r.reduce((g,{paramName:y,isOptional:v},b)=>{if(y==="*"){let S=m[b]||"";f=u.slice(0,u.length-S.length).replace(/(.)\/+$/,"$1")}const x=m[b];return v&&!x?g[y]=void 0:g[y]=(x||"").replace(/%2F/g,"/"),g},{}),pathname:u,pathnameBase:f,pattern:e}}function yA(e,n=!1,a=!0){It(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,(f,m,p)=>(r.push({paramName:m,isOptional:p!=null}),p?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,n?void 0:"i"),r]}function vA(e){try{return e.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return It(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),e}}function ta(e,n){if(n==="/")return e;if(!e.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,r=e.charAt(a);return r&&r!=="/"?null:e.slice(a)||"/"}function wA(e,n="/"){let{pathname:a,search:r="",hash:o=""}=typeof e=="string"?Ji(e):e;return{pathname:a?a.startsWith("/")?a:bA(a,n):n,search:SA(r),hash:AA(o)}}function bA(e,n){let a=n.replace(/\/+$/,"").split("/");return e.split("/").forEach(o=>{o===".."?a.length>1&&a.pop():o!=="."&&a.push(o)}),a.length>1?a.join("/"):"/"}function Ah(e,n,a,r){return`Cannot include a '${e}' character in a manually specified \`to.${n}\` 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 qw(e){return e.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function zc(e){let n=qw(e);return n.map((a,r)=>r===n.length-1?a.pathname:a.pathnameBase)}function Lc(e,n,a,r=!1){let o;typeof e=="string"?o=Ji(e):(o={...e},Qe(!o.pathname||!o.pathname.includes("?"),Ah("?","pathname","search",o)),Qe(!o.pathname||!o.pathname.includes("#"),Ah("#","pathname","hash",o)),Qe(!o.search||!o.search.includes("#"),Ah("#","search","hash",o)));let u=e===""||o.pathname==="",f=u?"/":o.pathname,m;if(f==null)m=a;else{let v=n.length-1;if(!r&&f.startsWith("..")){let b=f.split("/");for(;b[0]==="..";)b.shift(),v-=1;o.pathname=b.join("/")}m=v>=0?n[v]:"/"}let p=wA(o,m),g=f&&f!=="/"&&f.endsWith("/"),y=(u||f===".")&&a.endsWith("/");return!p.pathname.endsWith("/")&&(g||y)&&(p.pathname+="/"),p}var Ta=e=>e.join("/").replace(/\/\/+/g,"/"),xA=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),SA=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,AA=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,yc=class{constructor(e,n,a,r=!1){this.status=e,this.statusText=n||"",this.internal=r,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function po(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Qw=["POST","PUT","PATCH","DELETE"],CA=new Set(Qw),EA=["GET",...Qw],jA=new Set(EA),RA=new Set([301,302,303,307,308]),NA=new Set([307,308]),Ch={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},TA={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},io={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Lm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,kA=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Gw="remix-router-transitions",Yw=Symbol("ResetLoaderData");function MA(e){const n=e.window?e.window:typeof window<"u"?window:void 0,a=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u";Qe(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let r=e.mapRouteProperties||kA,o={},u=gc(e.routes,r,void 0,o),f,m=e.basename||"/",p=e.dataStrategy||zA,g={unstable_middleware:!1,...e.future},y=null,v=new Set,b=null,x=null,S=null,j=e.hydrationData!=null,C=Oi(u,e.history.location,m),k=!1,z=null;if(C==null&&!e.patchRoutesOnNavigation){let D=Wn(404,{pathname:e.history.location.pathname}),{matches:U,route:I}=wv(u);C=U,z={[I.id]:D}}C&&!e.hydrationData&&Ln(C,u,e.history.location.pathname).active&&(C=null);let _;if(C)if(C.some(D=>D.route.lazy))_=!1;else if(!C.some(D=>D.route.loader))_=!0;else{let D=e.hydrationData?e.hydrationData.loaderData:null,U=e.hydrationData?e.hydrationData.errors:null;if(U){let I=C.findIndex(ie=>U[ie.route.id]!==void 0);_=C.slice(0,I+1).every(ie=>!Wh(ie.route,D,U))}else _=C.every(I=>!Wh(I.route,D,U))}else{_=!1,C=[];let D=Ln(null,u,e.history.location.pathname);D.active&&D.matches&&(k=!0,C=D.matches)}let Z,R={historyAction:e.history.action,location:e.history.location,matches:C,initialized:_,navigation:Ch,restoreScrollPosition:e.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||z,fetchers:new Map,blockers:new Map},W="POP",ue=!1,se,Q=!1,ne=new Map,fe=null,ge=!1,De=!1,ce=new Set,P=new Map,H=0,te=-1,$=new Map,oe=new Set,N=new Map,X=new Map,le=new Set,q=new Map,re,we=null;function Re(){if(y=e.history.listen(({action:D,location:U,delta:I})=>{if(re){re(),re=void 0;return}It(q.size===0||I!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs.  This can also happen if you are using createHashRouter and the user manually changes the URL.");let ie=Zt({currentLocation:R.location,nextLocation:U,historyAction:D});if(ie&&I!=null){let de=new Promise(Ne=>{re=Ne});e.history.go(I*-1),Sn(ie,{state:"blocked",location:U,proceed(){Sn(ie,{state:"proceeding",proceed:void 0,reset:void 0,location:U}),de.then(()=>e.history.go(I))},reset(){let Ne=new Map(R.blockers);Ne.set(ie,io),ze({blockers:Ne})}});return}return Rt(D,U)}),a){$A(n,ne);let D=()=>XA(n,ne);n.addEventListener("pagehide",D),fe=()=>n.removeEventListener("pagehide",D)}return R.initialized||Rt("POP",R.location,{initialHydration:!0}),Z}function dt(){y&&y(),fe&&fe(),v.clear(),se&&se.abort(),R.fetchers.forEach((D,U)=>oi(U)),R.blockers.forEach((D,U)=>Po(U))}function Ve(D){return v.add(D),()=>v.delete(D)}function ze(D,U={}){R={...R,...D};let I=[],ie=[];R.fetchers.forEach((de,Ne)=>{de.state==="idle"&&(le.has(Ne)?I.push(Ne):ie.push(Ne))}),le.forEach(de=>{!R.fetchers.has(de)&&!P.has(de)&&I.push(de)}),[...v].forEach(de=>de(R,{deletedFetchers:I,viewTransitionOpts:U.viewTransitionOpts,flushSync:U.flushSync===!0})),I.forEach(de=>oi(de)),ie.forEach(de=>R.fetchers.delete(de))}function _e(D,U,{flushSync:I}={}){var me,pe;let ie=R.actionData!=null&&R.navigation.formMethod!=null&&fa(R.navigation.formMethod)&&R.navigation.state==="loading"&&((me=D.state)==null?void 0:me._isRedirect)!==!0,de;U.actionData?Object.keys(U.actionData).length>0?de=U.actionData:de=null:ie?de=R.actionData:de=null;let Ne=U.loaderData?yv(R.loaderData,U.loaderData,U.matches||[],U.errors):R.loaderData,Ee=R.blockers;Ee.size>0&&(Ee=new Map(Ee),Ee.forEach((ye,Oe)=>Ee.set(Oe,io)));let be=ue===!0||R.navigation.formMethod!=null&&fa(R.navigation.formMethod)&&((pe=D.state)==null?void 0:pe._isRedirect)!==!0;f&&(u=f,f=void 0),ge||W==="POP"||(W==="PUSH"?e.history.push(D,D.state):W==="REPLACE"&&e.history.replace(D,D.state));let Se;if(W==="POP"){let ye=ne.get(R.location.pathname);ye&&ye.has(D.pathname)?Se={currentLocation:R.location,nextLocation:D}:ne.has(D.pathname)&&(Se={currentLocation:D,nextLocation:R.location})}else if(Q){let ye=ne.get(R.location.pathname);ye?ye.add(D.pathname):(ye=new Set([D.pathname]),ne.set(R.location.pathname,ye)),Se={currentLocation:R.location,nextLocation:D}}ze({...U,actionData:de,loaderData:Ne,historyAction:W,location:D,initialized:!0,navigation:Ch,revalidation:"idle",restoreScrollPosition:nr(D,U.matches||R.matches),preventScrollReset:be,blockers:Ee},{viewTransitionOpts:Se,flushSync:I===!0}),W="POP",ue=!1,Q=!1,ge=!1,De=!1,we==null||we.resolve(),we=null}async function bt(D,U){if(typeof D=="number"){e.history.go(D);return}let I=Jh(R.location,R.matches,m,D,U==null?void 0:U.fromRouteId,U==null?void 0:U.relative),{path:ie,submission:de,error:Ne}=ov(!1,I,U),Ee=R.location,be=go(R.location,ie,U&&U.state);be={...be,...e.history.encodeLocation(be)};let Se=U&&U.replace!=null?U.replace:void 0,me="PUSH";Se===!0?me="REPLACE":Se===!1||de!=null&&fa(de.formMethod)&&de.formAction===R.location.pathname+R.location.search&&(me="REPLACE");let pe=U&&"preventScrollReset"in U?U.preventScrollReset===!0:void 0,ye=(U&&U.flushSync)===!0,Oe=Zt({currentLocation:Ee,nextLocation:be,historyAction:me});if(Oe){Sn(Oe,{state:"blocked",location:be,proceed(){Sn(Oe,{state:"proceeding",proceed:void 0,reset:void 0,location:be}),bt(D,U)},reset(){let tt=new Map(R.blockers);tt.set(Oe,io),ze({blockers:tt})}});return}await Rt(me,be,{submission:de,pendingError:Ne,preventScrollReset:pe,replace:U&&U.replace,enableViewTransition:U&&U.viewTransition,flushSync:ye})}function xn(){we||(we=KA()),hn(),ze({revalidation:"loading"});let D=we.promise;return R.navigation.state==="submitting"?D:R.navigation.state==="idle"?(Rt(R.historyAction,R.location,{startUninterruptedRevalidation:!0}),D):(Rt(W||R.historyAction,R.navigation.location,{overrideNavigation:R.navigation,enableViewTransition:Q===!0}),D)}async function Rt(D,U,I){se&&se.abort(),se=null,W=D,ge=(I&&I.startUninterruptedRevalidation)===!0,Kr(R.location,R.matches),ue=(I&&I.preventScrollReset)===!0,Q=(I&&I.enableViewTransition)===!0;let ie=f||u,de=I&&I.overrideNavigation,Ne=I!=null&&I.initialHydration&&R.matches&&R.matches.length>0&&!k?R.matches:Oi(ie,U,m),Ee=(I&&I.flushSync)===!0;if(Ne&&R.initialized&&!De&&IA(R.location,U)&&!(I&&I.submission&&fa(I.submission.formMethod))){_e(U,{matches:Ne},{flushSync:Ee});return}let be=Ln(Ne,ie,U.pathname);if(be.active&&be.matches&&(Ne=be.matches),!Ne){let{error:xt,notFoundMatches:mt,route:St}=ul(U.pathname);_e(U,{matches:mt,loaderData:{},errors:{[St.id]:xt}},{flushSync:Ee});return}se=new AbortController;let Se=Ts(e.history,U,se.signal,I&&I.submission),me=new sv(e.unstable_getContext?await e.unstable_getContext():void 0),pe;if(I&&I.pendingError)pe=[Rr(Ne).route.id,{type:"error",error:I.pendingError}];else if(I&&I.submission&&fa(I.submission.formMethod)){let xt=await Yr(Se,U,I.submission,Ne,me,be.active,{replace:I.replace,flushSync:Ee});if(xt.shortCircuited)return;if(xt.pendingActionResult){let[mt,St]=xt.pendingActionResult;if(Nn(St)&&po(St.error)&&St.error.status===404){se=null,_e(U,{matches:xt.matches,loaderData:{},errors:{[mt]:St.error}});return}}Ne=xt.matches||Ne,pe=xt.pendingActionResult,de=Eh(U,I.submission),Ee=!1,be.active=!1,Se=Ts(e.history,Se.url,Se.signal)}let{shortCircuited:ye,matches:Oe,loaderData:tt,errors:Dt}=await $r(Se,U,Ne,me,be.active,de,I&&I.submission,I&&I.fetcherSubmission,I&&I.replace,I&&I.initialHydration===!0,Ee,pe);ye||(se=null,_e(U,{matches:Oe||Ne,...vv(pe),loaderData:tt,errors:Dt}))}async function Yr(D,U,I,ie,de,Ne,Ee={}){hn();let be=GA(U,I);if(ze({navigation:be},{flushSync:Ee.flushSync===!0}),Ne){let pe=await _a(ie,U.pathname,D.signal);if(pe.type==="aborted")return{shortCircuited:!0};if(pe.type==="error"){let ye=Rr(pe.partialMatches).route.id;return{matches:pe.partialMatches,pendingActionResult:[ye,{type:"error",error:pe.error}]}}else if(pe.matches)ie=pe.matches;else{let{notFoundMatches:ye,error:Oe,route:tt}=ul(U.pathname);return{matches:ye,pendingActionResult:[tt.id,{type:"error",error:Oe}]}}}let Se,me=fo(ie,U);if(!me.route.action&&!me.route.lazy)Se={type:"error",error:Wn(405,{method:D.method,pathname:U.pathname,routeId:me.route.id})};else{let pe=await tr("action",D,[me],ie,de,null);if(Se=pe[me.route.id],!Se){for(let ye of ie)if(pe[ye.route.id]){Se=pe[ye.route.id];break}}if(D.signal.aborted)return{shortCircuited:!0}}if(Nr(Se)){let pe;return Ee&&Ee.replace!=null?pe=Ee.replace:pe=mv(Se.response.headers.get("Location"),new URL(D.url),m)===R.location.pathname+R.location.search,await ia(D,Se,!0,{submission:I,replace:pe}),{shortCircuited:!0}}if(Nn(Se)){let pe=Rr(ie,me.route.id);return(Ee&&Ee.replace)!==!0&&(W="PUSH"),{matches:ie,pendingActionResult:[pe.route.id,Se]}}return{matches:ie,pendingActionResult:[me.route.id,Se]}}async function $r(D,U,I,ie,de,Ne,Ee,be,Se,me,pe,ye){let Oe=Ne||Eh(U,Ee),tt=Ee||be||xv(Oe),Dt=!ge&&!me;if(de){if(Dt){let gt=Oa(ye);ze({navigation:Oe,...gt!==void 0?{actionData:gt}:{}},{flushSync:pe})}let $e=await _a(I,U.pathname,D.signal);if($e.type==="aborted")return{shortCircuited:!0};if($e.type==="error"){let gt=Rr($e.partialMatches).route.id;return{matches:$e.partialMatches,loaderData:{},errors:{[gt]:$e.error}}}else if($e.matches)I=$e.matches;else{let{error:gt,notFoundMatches:mn,route:sr}=ul(U.pathname);return{matches:mn,loaderData:{},errors:{[sr.id]:gt}}}}let xt=f||u,[mt,St]=cv(e.history,R,I,tt,U,me===!0,De,ce,le,N,oe,xt,m,ye);if(te=++H,mt.length===0&&St.length===0){let $e=Fo();return _e(U,{matches:I,loaderData:{},errors:ye&&Nn(ye[1])?{[ye[0]]:ye[1].error}:null,...vv(ye),...$e?{fetchers:new Map(R.fetchers)}:{}},{flushSync:pe}),{shortCircuited:!0}}if(Dt){let $e={};if(!de){$e.navigation=Oe;let gt=Oa(ye);gt!==void 0&&($e.actionData=gt)}St.length>0&&($e.fetchers=rl(St)),ze($e,{flushSync:pe})}St.forEach($e=>{ra($e.key),$e.controller&&P.set($e.key,$e.controller)});let Un=()=>St.forEach($e=>ra($e.key));se&&se.signal.addEventListener("abort",Un);let{loaderResults:Ba,fetcherResults:Qt}=await Uo(I,mt,St,D,ie);if(D.signal.aborted)return{shortCircuited:!0};se&&se.signal.removeEventListener("abort",Un),St.forEach($e=>P.delete($e.key));let Gt=Zu(Ba);if(Gt)return await ia(D,Gt.result,!0,{replace:Se}),{shortCircuited:!0};if(Gt=Zu(Qt),Gt)return oe.add(Gt.key),await ia(D,Gt.result,!0,{replace:Se}),{shortCircuited:!0};let{loaderData:za,errors:Hn}=pv(R,I,Ba,ye,St,Qt);me&&R.errors&&(Hn={...R.errors,...Hn});let st=Fo(),ir=ui(te),rr=st||ir||St.length>0;return{matches:I,loaderData:za,errors:Hn,...rr?{fetchers:new Map(R.fetchers)}:{}}}function Oa(D){if(D&&!Nn(D[1]))return{[D[0]]:D[1].data};if(R.actionData)return Object.keys(R.actionData).length===0?null:R.actionData}function rl(D){return D.forEach(U=>{let I=R.fetchers.get(U.key),ie=ro(void 0,I?I.data:void 0);R.fetchers.set(U.key,ie)}),new Map(R.fetchers)}async function Xr(D,U,I,ie){ra(D);let de=(ie&&ie.flushSync)===!0,Ne=f||u,Ee=Jh(R.location,R.matches,m,I,U,ie==null?void 0:ie.relative),be=Oi(Ne,Ee,m),Se=Ln(be,Ne,Ee);if(Se.active&&Se.matches&&(be=Se.matches),!be){zn(D,U,Wn(404,{pathname:Ee}),{flushSync:de});return}let{path:me,submission:pe,error:ye}=ov(!0,Ee,ie);if(ye){zn(D,U,ye,{flushSync:de});return}let Oe=fo(be,me),tt=new sv(e.unstable_getContext?await e.unstable_getContext():void 0),Dt=(ie&&ie.preventScrollReset)===!0;if(pe&&fa(pe.formMethod)){await sl(D,U,me,Oe,be,tt,Se.active,de,Dt,pe);return}N.set(D,{routeId:U,path:me}),await ll(D,U,me,Oe,be,tt,Se.active,de,Dt,pe)}async function sl(D,U,I,ie,de,Ne,Ee,be,Se,me){hn(),N.delete(D);function pe(pt){if(!pt.route.action&&!pt.route.lazy){let La=Wn(405,{method:me.formMethod,pathname:I,routeId:U});return zn(D,U,La,{flushSync:be}),!0}return!1}if(!Ee&&pe(ie))return;let ye=R.fetchers.get(D);ya(D,YA(me,ye),{flushSync:be});let Oe=new AbortController,tt=Ts(e.history,I,Oe.signal,me);if(Ee){let pt=await _a(de,I,tt.signal,D);if(pt.type==="aborted")return;if(pt.type==="error"){zn(D,U,pt.error,{flushSync:be});return}else if(pt.matches){if(de=pt.matches,ie=fo(de,I),pe(ie))return}else{zn(D,U,Wn(404,{pathname:I}),{flushSync:be});return}}P.set(D,Oe);let Dt=H,mt=(await tr("action",tt,[ie],de,Ne,D))[ie.route.id];if(tt.signal.aborted){P.get(D)===Oe&&P.delete(D);return}if(le.has(D)){if(Nr(mt)||Nn(mt)){ya(D,Mi(void 0));return}}else{if(Nr(mt))if(P.delete(D),te>Dt){ya(D,Mi(void 0));return}else return oe.add(D),ya(D,ro(me)),ia(tt,mt,!1,{fetcherSubmission:me,preventScrollReset:Se});if(Nn(mt)){zn(D,U,mt.error);return}}let St=R.navigation.location||R.location,Un=Ts(e.history,St,Oe.signal),Ba=f||u,Qt=R.navigation.state!=="idle"?Oi(Ba,R.navigation.location,m):R.matches;Qe(Qt,"Didn't find any matches after fetcher action");let Gt=++H;$.set(D,Gt);let za=ro(me,mt.data);R.fetchers.set(D,za);let[Hn,st]=cv(e.history,R,Qt,me,St,!1,De,ce,le,N,oe,Ba,m,[ie.route.id,mt]);st.filter(pt=>pt.key!==D).forEach(pt=>{let La=pt.key,Io=R.fetchers.get(La),Zr=ro(void 0,Io?Io.data:void 0);R.fetchers.set(La,Zr),ra(La),pt.controller&&P.set(La,pt.controller)}),ze({fetchers:new Map(R.fetchers)});let ir=()=>st.forEach(pt=>ra(pt.key));Oe.signal.addEventListener("abort",ir);let{loaderResults:rr,fetcherResults:$e}=await Uo(Qt,Hn,st,Un,Ne);if(Oe.signal.aborted)return;Oe.signal.removeEventListener("abort",ir),$.delete(D),P.delete(D),st.forEach(pt=>P.delete(pt.key));let gt=Zu(rr);if(gt)return ia(Un,gt.result,!1,{preventScrollReset:Se});if(gt=Zu($e),gt)return oe.add(gt.key),ia(Un,gt.result,!1,{preventScrollReset:Se});let{loaderData:mn,errors:sr}=pv(R,Qt,rr,void 0,st,$e);if(R.fetchers.has(D)){let pt=Mi(mt.data);R.fetchers.set(D,pt)}ui(Gt),R.navigation.state==="loading"&&Gt>te?(Qe(W,"Expected pending action"),se&&se.abort(),_e(R.navigation.location,{matches:Qt,loaderData:mn,errors:sr,fetchers:new Map(R.fetchers)})):(ze({errors:sr,loaderData:yv(R.loaderData,mn,Qt,sr),fetchers:new Map(R.fetchers)}),De=!1)}async function ll(D,U,I,ie,de,Ne,Ee,be,Se,me){let pe=R.fetchers.get(D);ya(D,ro(me,pe?pe.data:void 0),{flushSync:be});let ye=new AbortController,Oe=Ts(e.history,I,ye.signal);if(Ee){let mt=await _a(de,I,Oe.signal,D);if(mt.type==="aborted")return;if(mt.type==="error"){zn(D,U,mt.error,{flushSync:be});return}else if(mt.matches)de=mt.matches,ie=fo(de,I);else{zn(D,U,Wn(404,{pathname:I}),{flushSync:be});return}}P.set(D,ye);let tt=H,xt=(await tr("loader",Oe,[ie],de,Ne,D))[ie.route.id];if(P.get(D)===ye&&P.delete(D),!Oe.signal.aborted){if(le.has(D)){ya(D,Mi(void 0));return}if(Nr(xt))if(te>tt){ya(D,Mi(void 0));return}else{oe.add(D),await ia(Oe,xt,!1,{preventScrollReset:Se});return}if(Nn(xt)){zn(D,U,xt.error);return}ya(D,Mi(xt.data))}}async function ia(D,U,I,{submission:ie,fetcherSubmission:de,preventScrollReset:Ne,replace:Ee}={}){U.response.headers.has("X-Remix-Revalidate")&&(De=!0);let be=U.response.headers.get("Location");Qe(be,"Expected a Location header on the redirect Response"),be=mv(be,new URL(D.url),m);let Se=go(R.location,be,{_isRedirect:!0});if(a){let Dt=!1;if(U.response.headers.has("X-Remix-Reload-Document"))Dt=!0;else if(Lm.test(be)){const xt=e.history.createURL(be);Dt=xt.origin!==n.location.origin||ta(xt.pathname,m)==null}if(Dt){Ee?n.location.replace(be):n.location.assign(be);return}}se=null;let me=Ee===!0||U.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:pe,formAction:ye,formEncType:Oe}=R.navigation;!ie&&!de&&pe&&ye&&Oe&&(ie=xv(R.navigation));let tt=ie||de;if(NA.has(U.response.status)&&tt&&fa(tt.formMethod))await Rt(me,Se,{submission:{...tt,formAction:be},preventScrollReset:Ne||ue,enableViewTransition:I?Q:void 0});else{let Dt=Eh(Se,ie);await Rt(me,Se,{overrideNavigation:Dt,fetcherSubmission:de,preventScrollReset:Ne||ue,enableViewTransition:I?Q:void 0})}}async function tr(D,U,I,ie,de,Ne){let Ee,be={};try{Ee=await UA(p,D,U,I,ie,Ne,o,r,de,g.unstable_middleware)}catch(Se){return I.forEach(me=>{be[me.route.id]={type:"error",error:Se}}),be}for(let[Se,me]of Object.entries(Ee))if(qA(me)){let pe=me.result;be[Se]={type:"redirect",response:PA(pe,U,Se,ie,m)}}else be[Se]=await FA(me);return be}async function Uo(D,U,I,ie,de){let Ne=tr("loader",ie,U,D,de,null),Ee=Promise.all(I.map(async me=>{if(me.matches&&me.match&&me.controller){let ye=(await tr("loader",Ts(e.history,me.path,me.controller.signal),[me.match],me.matches,de,me.key))[me.match.route.id];return{[me.key]:ye}}else return Promise.resolve({[me.key]:{type:"error",error:Wn(404,{pathname:me.path})}})})),be=await Ne,Se=(await Ee).reduce((me,pe)=>Object.assign(me,pe),{});return{loaderResults:be,fetcherResults:Se}}function hn(){De=!0,N.forEach((D,U)=>{P.has(U)&&ce.add(U),ra(U)})}function ya(D,U,I={}){R.fetchers.set(D,U),ze({fetchers:new Map(R.fetchers)},{flushSync:(I&&I.flushSync)===!0})}function zn(D,U,I,ie={}){let de=Rr(R.matches,U);oi(D),ze({errors:{[de.route.id]:I},fetchers:new Map(R.fetchers)},{flushSync:(ie&&ie.flushSync)===!0})}function ol(D){return X.set(D,(X.get(D)||0)+1),le.has(D)&&le.delete(D),R.fetchers.get(D)||TA}function oi(D){let U=R.fetchers.get(D);P.has(D)&&!(U&&U.state==="loading"&&$.has(D))&&ra(D),N.delete(D),$.delete(D),oe.delete(D),le.delete(D),ce.delete(D),R.fetchers.delete(D)}function ud(D){let U=(X.get(D)||0)-1;U<=0?(X.delete(D),le.add(D)):X.set(D,U),ze({fetchers:new Map(R.fetchers)})}function ra(D){let U=P.get(D);U&&(U.abort(),P.delete(D))}function Ho(D){for(let U of D){let I=ol(U),ie=Mi(I.data);R.fetchers.set(U,ie)}}function Fo(){let D=[],U=!1;for(let I of oe){let ie=R.fetchers.get(I);Qe(ie,`Expected fetcher: ${I}`),ie.state==="loading"&&(oe.delete(I),D.push(I),U=!0)}return Ho(D),U}function ui(D){let U=[];for(let[I,ie]of $)if(ie<D){let de=R.fetchers.get(I);Qe(de,`Expected fetcher: ${I}`),de.state==="loading"&&(ra(I),$.delete(I),U.push(I))}return Ho(U),U.length>0}function rn(D,U){let I=R.blockers.get(D)||io;return q.get(D)!==U&&q.set(D,U),I}function Po(D){R.blockers.delete(D),q.delete(D)}function Sn(D,U){let I=R.blockers.get(D)||io;Qe(I.state==="unblocked"&&U.state==="blocked"||I.state==="blocked"&&U.state==="blocked"||I.state==="blocked"&&U.state==="proceeding"||I.state==="blocked"&&U.state==="unblocked"||I.state==="proceeding"&&U.state==="unblocked",`Invalid blocker state transition: ${I.state} -> ${U.state}`);let ie=new Map(R.blockers);ie.set(D,U),ze({blockers:ie})}function Zt({currentLocation:D,nextLocation:U,historyAction:I}){if(q.size===0)return;q.size>1&&It(!1,"A router only supports one blocker at a time");let ie=Array.from(q.entries()),[de,Ne]=ie[ie.length-1],Ee=R.blockers.get(de);if(!(Ee&&Ee.state==="proceeding")&&Ne({currentLocation:D,nextLocation:U,historyAction:I}))return de}function ul(D){let U=Wn(404,{pathname:D}),I=f||u,{matches:ie,route:de}=wv(I);return{notFoundMatches:ie,route:de,error:U}}function cd(D,U,I){if(b=D,S=U,x=I||null,!j&&R.navigation===Ch){j=!0;let ie=nr(R.location,R.matches);ie!=null&&ze({restoreScrollPosition:ie})}return()=>{b=null,S=null,x=null}}function Vo(D,U){return x&&x(D,U.map(ie=>sA(ie,R.loaderData)))||D.key}function Kr(D,U){if(b&&S){let I=Vo(D,U);b[I]=S()}}function nr(D,U){if(b){let I=Vo(D,U),ie=b[I];if(typeof ie=="number")return ie}return null}function Ln(D,U,I){if(e.patchRoutesOnNavigation)if(D){if(Object.keys(D[0].params).length>0)return{active:!0,matches:rc(U,I,m,!0)}}else return{active:!0,matches:rc(U,I,m,!0)||[]};return{active:!1,matches:null}}async function _a(D,U,I,ie){if(!e.patchRoutesOnNavigation)return{type:"success",matches:D};let de=D;for(;;){let Ne=f==null,Ee=f||u,be=o;try{await e.patchRoutesOnNavigation({signal:I,path:U,matches:de,fetcherKey:ie,patch:(pe,ye)=>{I.aborted||fv(pe,ye,Ee,be,r)}})}catch(pe){return{type:"error",error:pe,partialMatches:de}}finally{Ne&&!I.aborted&&(u=[...u])}if(I.aborted)return{type:"aborted"};let Se=Oi(Ee,U,m);if(Se)return{type:"success",matches:Se};let me=rc(Ee,U,m,!0);if(!me||de.length===me.length&&de.every((pe,ye)=>pe.route.id===me[ye].route.id))return{type:"success",matches:null};de=me}}function ar(D){o={},f=gc(D,r,void 0,o)}function dd(D,U){let I=f==null;fv(D,U,f||u,o,r),I&&(u=[...u],ze({}))}return Z={get basename(){return m},get future(){return g},get state(){return R},get routes(){return u},get window(){return n},initialize:Re,subscribe:Ve,enableScrollRestoration:cd,navigate:bt,fetch:Xr,revalidate:xn,createHref:D=>e.history.createHref(D),encodeLocation:D=>e.history.encodeLocation(D),getFetcher:ol,deleteFetcher:ud,dispose:dt,getBlocker:rn,deleteBlocker:Po,patchRoutes:dd,_internalFetchControllers:P,_internalSetRoutes:ar},Z}function DA(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function Jh(e,n,a,r,o,u){let f,m;if(o){f=[];for(let g of n)if(f.push(g),g.route.id===o){m=g;break}}else f=n,m=n[n.length-1];let p=Lc(r||".",zc(f),ta(e.pathname,a)||e.pathname,u==="path");if(r==null&&(p.search=e.search,p.hash=e.hash),(r==null||r===""||r===".")&&m){let g=Um(p.search);if(m.route.index&&!g)p.search=p.search?p.search.replace(/^\?/,"?index&"):"?index";else if(!m.route.index&&g){let y=new URLSearchParams(p.search),v=y.getAll("index");y.delete("index"),v.filter(x=>x).forEach(x=>y.append("index",x));let b=y.toString();p.search=b?`?${b}`:""}}return a!=="/"&&(p.pathname=p.pathname==="/"?a:Ta([a,p.pathname])),Xi(p)}function ov(e,n,a){if(!a||!DA(a))return{path:n};if(a.formMethod&&!QA(a.formMethod))return{path:n,error:Wn(405,{method:a.formMethod})};let r=()=>({path:n,error:Wn(400,{type:"invalid-body"})}),u=(a.formMethod||"get").toUpperCase(),f=Kw(n);if(a.body!==void 0){if(a.formEncType==="text/plain"){if(!fa(u))return r();let v=typeof a.body=="string"?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce((b,[x,S])=>`${b}${x}=${S}
`,""):String(a.body);return{path:n,submission:{formMethod:u,formAction:f,formEncType:a.formEncType,formData:void 0,json:void 0,text:v}}}else if(a.formEncType==="application/json"){if(!fa(u))return r();try{let v=typeof a.body=="string"?JSON.parse(a.body):a.body;return{path:n,submission:{formMethod:u,formAction:f,formEncType:a.formEncType,formData:void 0,json:v,text:void 0}}}catch{return r()}}}Qe(typeof FormData=="function","FormData is not available in this environment");let m,p;if(a.formData)m=tm(a.formData),p=a.formData;else if(a.body instanceof FormData)m=tm(a.body),p=a.body;else if(a.body instanceof URLSearchParams)m=a.body,p=gv(m);else if(a.body==null)m=new URLSearchParams,p=new FormData;else try{m=new URLSearchParams(a.body),p=gv(m)}catch{return r()}let g={formMethod:u,formAction:f,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:p,json:void 0,text:void 0};if(fa(g.formMethod))return{path:n,submission:g};let y=Ji(n);return e&&y.search&&Um(y.search)&&m.append("index",""),y.search=`?${m}`,{path:Xi(y),submission:g}}function uv(e,n,a=!1){let r=e.findIndex(o=>o.route.id===n);return r>=0?e.slice(0,a?r+1:r):e}function cv(e,n,a,r,o,u,f,m,p,g,y,v,b,x){let S=x?Nn(x[1])?x[1].error:x[1].data:void 0,j=e.createURL(n.location),C=e.createURL(o),k=a;u&&n.errors?k=uv(a,Object.keys(n.errors)[0],!0):x&&Nn(x[1])&&(k=uv(a,x[0]));let z=x?x[1].statusCode:void 0,_=z&&z>=400,Z=k.filter((W,ue)=>{let{route:se}=W;if(se.lazy)return!0;if(se.loader==null)return!1;if(u)return Wh(se,n.loaderData,n.errors);if(OA(n.loaderData,n.matches[ue],W))return!0;let Q=n.matches[ue],ne=W;return dv(W,{currentUrl:j,currentParams:Q.params,nextUrl:C,nextParams:ne.params,...r,actionResult:S,actionStatus:z,defaultShouldRevalidate:_?!1:f||j.pathname+j.search===C.pathname+C.search||j.search!==C.search||_A(Q,ne)})}),R=[];return g.forEach((W,ue)=>{if(u||!a.some(ge=>ge.route.id===W.routeId)||p.has(ue))return;let se=Oi(v,W.path,b);if(!se){R.push({key:ue,routeId:W.routeId,path:W.path,matches:null,match:null,controller:null});return}let Q=n.fetchers.get(ue),ne=fo(se,W.path),fe=!1;y.has(ue)?fe=!1:m.has(ue)?(m.delete(ue),fe=!0):Q&&Q.state!=="idle"&&Q.data===void 0?fe=f:fe=dv(ne,{currentUrl:j,currentParams:n.matches[n.matches.length-1].params,nextUrl:C,nextParams:a[a.length-1].params,...r,actionResult:S,actionStatus:z,defaultShouldRevalidate:_?!1:f}),fe&&R.push({key:ue,routeId:W.routeId,path:W.path,matches:se,match:ne,controller:new AbortController})}),[Z,R]}function Wh(e,n,a){if(e.lazy)return!0;if(!e.loader)return!1;let r=n!=null&&n[e.id]!==void 0,o=a!=null&&a[e.id]!==void 0;return!r&&o?!1:typeof e.loader=="function"&&e.loader.hydrate===!0?!0:!r&&!o}function OA(e,n,a){let r=!n||a.route.id!==n.route.id,o=!e.hasOwnProperty(a.route.id);return r||o}function _A(e,n){let a=e.route.path;return e.pathname!==n.pathname||a!=null&&a.endsWith("*")&&e.params["*"]!==n.params["*"]}function dv(e,n){if(e.route.shouldRevalidate){let a=e.route.shouldRevalidate(n);if(typeof a=="boolean")return a}return n.defaultShouldRevalidate}function fv(e,n,a,r,o){let u;if(e){let p=r[e];Qe(p,`No route found to patch children into: routeId = ${e}`),p.children||(p.children=[]),u=p.children}else u=a;let f=n.filter(p=>!u.some(g=>$w(p,g))),m=gc(f,o,[e||"_","patch",String((u==null?void 0:u.length)||"0")],r);u.push(...m)}function $w(e,n){return"id"in e&&"id"in n&&e.id===n.id?!0:e.index===n.index&&e.path===n.path&&e.caseSensitive===n.caseSensitive?(!e.children||e.children.length===0)&&(!n.children||n.children.length===0)?!0:e.children.every((a,r)=>{var o;return(o=n.children)==null?void 0:o.some(u=>$w(a,u))}):!1}async function BA(e,n,a){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let o=a[e.id];Qe(o,"No route found in manifest");let u={};for(let f in r){let p=o[f]!==void 0&&f!=="hasErrorBoundary";It(!p,`Route "${o.id}" has a static property "${f}" defined but its lazy function is also returning a value for this property. The lazy route property "${f}" will be ignored.`),!p&&!iA.has(f)&&(u[f]=r[f])}Object.assign(o,u),Object.assign(o,{...n(o),lazy:void 0})}async function hv(e){let n=e.matches.filter(o=>o.shouldLoad),a={};return(await Promise.all(n.map(o=>o.resolve()))).forEach((o,u)=>{a[n[u].route.id]=o}),a}async function zA(e){return e.matches.some(n=>n.route.unstable_middleware)?LA(e,!1,()=>hv(e),n=>({[n.routeId]:{type:"error",result:n.error}})):hv(e)}async function LA(e,n,a,r){let{matches:o,request:u,params:f,context:m}=e,p={handlerResult:void 0,propagateResult:n};try{let g=o.flatMap(v=>v.route.unstable_middleware?v.route.unstable_middleware.map(b=>[v.route.id,b]):[]),y=await Xw({request:u,params:f,context:m},g,p,a);return p.propagateResult?y:p.handlerResult}catch(g){if(!(g instanceof em))throw g;let y=await r(g);return p.handlerResult?Object.assign(p.handlerResult,y):y}}var em=class{constructor(e,n){this.routeId=e,this.error=n}};async function Xw(e,n,a,r,o=0){let{request:u}=e;if(u.signal.aborted)throw u.signal.reason?u.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${u.method} ${u.url}`);let f=n[o];if(!f)return a.handlerResult=await r(),a.handlerResult;let[m,p]=f,g=!1,y,v=async()=>{if(g)throw new Error("You may only call `next()` once per middleware");g=!0;let b=await Xw(e,n,a,r,o+1);if(a.propagateResult)return y=b,y};try{let b=await p({request:e.request,params:e.params,context:e.context},v);return g?b===void 0?y:b:v()}catch(b){throw b instanceof em?b:new em(m,b)}}async function UA(e,n,a,r,o,u,f,m,p,g){let y=o.map(x=>x.route.lazy?BA(x.route,m,f):void 0);g&&await Promise.all(y);let v=o.map((x,S)=>{let j=y[S],C=r.some(z=>z.route.id===x.route.id);return{...x,shouldLoad:C,resolve:async z=>(z&&a.method==="GET"&&(x.route.lazy||x.route.loader)&&(C=!0),C?HA(n,a,x,j,z,p):Promise.resolve({type:"data",result:void 0}))}}),b=await e({matches:v,request:a,params:o[0].params,fetcherKey:u,context:p});try{await Promise.all(y)}catch{}return b}async function HA(e,n,a,r,o,u){let f,m,p=g=>{let y,v=new Promise((S,j)=>y=j);m=()=>y(),n.signal.addEventListener("abort",m);let b=S=>typeof g!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${e}" [routeId: ${a.route.id}]`)):g({request:n,params:a.params,context:u},...S!==void 0?[S]:[]),x=(async()=>{try{return{type:"data",result:await(o?o(j=>b(j)):b())}}catch(S){return{type:"error",result:S}}})();return Promise.race([x,v])};try{let g=a.route[e];if(r)if(g){let y,[v]=await Promise.all([p(g).catch(b=>{y=b}),r]);if(y!==void 0)throw y;f=v}else if(await r,g=a.route[e],g)f=await p(g);else if(e==="action"){let y=new URL(n.url),v=y.pathname+y.search;throw Wn(405,{method:n.method,pathname:v,routeId:a.route.id})}else return{type:"data",result:void 0};else if(g)f=await p(g);else{let y=new URL(n.url),v=y.pathname+y.search;throw Wn(404,{pathname:v})}}catch(g){return{type:"error",result:g}}finally{m&&n.signal.removeEventListener("abort",m)}return f}async function FA(e){var r,o,u,f,m,p;let{result:n,type:a}=e;if(Zw(n)){let g;try{let y=n.headers.get("Content-Type");y&&/\bapplication\/json\b/.test(y)?n.body==null?g=null:g=await n.json():g=await n.text()}catch(y){return{type:"error",error:y}}return a==="error"?{type:"error",error:new yc(n.status,n.statusText,g),statusCode:n.status,headers:n.headers}:{type:"data",data:g,statusCode:n.status,headers:n.headers}}return a==="error"?bv(n)?n.data instanceof Error?{type:"error",error:n.data,statusCode:(r=n.init)==null?void 0:r.status,headers:(o=n.init)!=null&&o.headers?new Headers(n.init.headers):void 0}:{type:"error",error:new yc(((u=n.init)==null?void 0:u.status)||500,void 0,n.data),statusCode:po(n)?n.status:void 0,headers:(f=n.init)!=null&&f.headers?new Headers(n.init.headers):void 0}:{type:"error",error:n,statusCode:po(n)?n.status:void 0}:bv(n)?{type:"data",data:n.data,statusCode:(m=n.init)==null?void 0:m.status,headers:(p=n.init)!=null&&p.headers?new Headers(n.init.headers):void 0}:{type:"data",data:n}}function PA(e,n,a,r,o){let u=e.headers.get("Location");if(Qe(u,"Redirects returned/thrown from loaders/actions must have a Location header"),!Lm.test(u)){let f=r.slice(0,r.findIndex(m=>m.route.id===a)+1);u=Jh(new URL(n.url),f,o,u),e.headers.set("Location",u)}return e}function mv(e,n,a){if(Lm.test(e)){let r=e,o=r.startsWith("//")?new URL(n.protocol+r):new URL(r),u=ta(o.pathname,a)!=null;if(o.origin===n.origin&&u)return o.pathname+o.search+o.hash}return e}function Ts(e,n,a,r){let o=e.createURL(Kw(n)).toString(),u={signal:a};if(r&&fa(r.formMethod)){let{formMethod:f,formEncType:m}=r;u.method=f.toUpperCase(),m==="application/json"?(u.headers=new Headers({"Content-Type":m}),u.body=JSON.stringify(r.json)):m==="text/plain"?u.body=r.text:m==="application/x-www-form-urlencoded"&&r.formData?u.body=tm(r.formData):u.body=r.formData}return new Request(o,u)}function tm(e){let n=new URLSearchParams;for(let[a,r]of e.entries())n.append(a,typeof r=="string"?r:r.name);return n}function gv(e){let n=new FormData;for(let[a,r]of e.entries())n.append(a,r);return n}function VA(e,n,a,r=!1,o=!1){let u={},f=null,m,p=!1,g={},y=a&&Nn(a[1])?a[1].error:void 0;return e.forEach(v=>{if(!(v.route.id in n))return;let b=v.route.id,x=n[b];if(Qe(!Nr(x),"Cannot handle redirect results in processLoaderData"),Nn(x)){let S=x.error;if(y!==void 0&&(S=y,y=void 0),f=f||{},o)f[b]=S;else{let j=Rr(e,b);f[j.route.id]==null&&(f[j.route.id]=S)}r||(u[b]=Yw),p||(p=!0,m=po(x.error)?x.error.status:500),x.headers&&(g[b]=x.headers)}else u[b]=x.data,x.statusCode&&x.statusCode!==200&&!p&&(m=x.statusCode),x.headers&&(g[b]=x.headers)}),y!==void 0&&a&&(f={[a[0]]:y},u[a[0]]=void 0),{loaderData:u,errors:f,statusCode:m||200,loaderHeaders:g}}function pv(e,n,a,r,o,u){let{loaderData:f,errors:m}=VA(n,a,r);return o.forEach(p=>{let{key:g,match:y,controller:v}=p,b=u[g];if(Qe(b,"Did not find corresponding fetcher result"),!(v&&v.signal.aborted))if(Nn(b)){let x=Rr(e.matches,y==null?void 0:y.route.id);m&&m[x.route.id]||(m={...m,[x.route.id]:b.error}),e.fetchers.delete(g)}else if(Nr(b))Qe(!1,"Unhandled fetcher revalidation redirect");else{let x=Mi(b.data);e.fetchers.set(g,x)}}),{loaderData:f,errors:m}}function yv(e,n,a,r){let o=Object.entries(n).filter(([,u])=>u!==Yw).reduce((u,[f,m])=>(u[f]=m,u),{});for(let u of a){let f=u.route.id;if(!n.hasOwnProperty(f)&&e.hasOwnProperty(f)&&u.route.loader&&(o[f]=e[f]),r&&r.hasOwnProperty(f))break}return o}function vv(e){return e?Nn(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function Rr(e,n){return(n?e.slice(0,e.findIndex(r=>r.route.id===n)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function wv(e){let n=e.length===1?e[0]:e.find(a=>a.index||!a.path||a.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function Wn(e,{pathname:n,routeId:a,method:r,type:o,message:u}={}){let f="Unknown Server Error",m="Unknown @remix-run/router error";return e===400?(f="Bad Request",r&&n&&a?m=`You made a ${r} request to "${n}" but did not provide a \`loader\` for route "${a}", so there is no way to handle the request.`:o==="invalid-body"&&(m="Unable to encode submission body")):e===403?(f="Forbidden",m=`Route "${a}" does not match URL "${n}"`):e===404?(f="Not Found",m=`No route matches URL "${n}"`):e===405&&(f="Method Not Allowed",r&&n&&a?m=`You made a ${r.toUpperCase()} request to "${n}" but did not provide an \`action\` for route "${a}", so there is no way to handle the request.`:r&&(m=`Invalid request method "${r.toUpperCase()}"`)),new yc(e||500,f,new Error(m),!0)}function Zu(e){let n=Object.entries(e);for(let a=n.length-1;a>=0;a--){let[r,o]=n[a];if(Nr(o))return{key:r,result:o}}}function Kw(e){let n=typeof e=="string"?Ji(e):e;return Xi({...n,hash:""})}function IA(e,n){return e.pathname!==n.pathname||e.search!==n.search?!1:e.hash===""?n.hash!=="":e.hash===n.hash?!0:n.hash!==""}function qA(e){return Zw(e.result)&&RA.has(e.result.status)}function Nn(e){return e.type==="error"}function Nr(e){return(e&&e.type)==="redirect"}function bv(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function Zw(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function QA(e){return jA.has(e.toUpperCase())}function fa(e){return CA.has(e.toUpperCase())}function Um(e){return new URLSearchParams(e).getAll("index").some(n=>n==="")}function fo(e,n){let a=typeof n=="string"?Ji(n).search:n.search;if(e[e.length-1].route.index&&Um(a||""))return e[e.length-1];let r=qw(e);return r[r.length-1]}function xv(e){let{formMethod:n,formAction:a,formEncType:r,text:o,formData:u,json:f}=e;if(!(!n||!a||!r)){if(o!=null)return{formMethod:n,formAction:a,formEncType:r,formData:void 0,json:void 0,text:o};if(u!=null)return{formMethod:n,formAction:a,formEncType:r,formData:u,json:void 0,text:void 0};if(f!==void 0)return{formMethod:n,formAction:a,formEncType:r,formData:void 0,json:f,text:void 0}}}function Eh(e,n){return n?{state:"loading",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function GA(e,n){return{state:"submitting",location:e,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function ro(e,n){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function YA(e,n){return{state:"submitting",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:n?n.data:void 0}}function Mi(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function $A(e,n){try{let a=e.sessionStorage.getItem(Gw);if(a){let r=JSON.parse(a);for(let[o,u]of Object.entries(r||{}))u&&Array.isArray(u)&&n.set(o,new Set(u||[]))}}catch{}}function XA(e,n){if(n.size>0){let a={};for(let[r,o]of n)a[r]=[...o];try{e.sessionStorage.setItem(Gw,JSON.stringify(a))}catch(r){It(!1,`Failed to save applied view transitions in sessionStorage (${r}).`)}}}function KA(){let e,n,a=new Promise((r,o)=>{e=async u=>{r(u);try{await a}catch{}},n=async u=>{o(u);try{await a}catch{}}});return{promise:a,resolve:e,reject:n}}var qr=E.createContext(null);qr.displayName="DataRouter";var Co=E.createContext(null);Co.displayName="DataRouterState";var Hm=E.createContext({isTransitioning:!1});Hm.displayName="ViewTransition";var Jw=E.createContext(new Map);Jw.displayName="Fetchers";var ZA=E.createContext(null);ZA.displayName="Await";var ga=E.createContext(null);ga.displayName="Navigation";var Uc=E.createContext(null);Uc.displayName="Location";var aa=E.createContext({outlet:null,matches:[],isDataRoute:!1});aa.displayName="Route";var Fm=E.createContext(null);Fm.displayName="RouteError";function JA(e,{relative:n}={}){Qe(Ks(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:r}=E.useContext(ga),{hash:o,pathname:u,search:f}=Eo(e,{relative:n}),m=u;return a!=="/"&&(m=u==="/"?a:Ta([a,u])),r.createHref({pathname:m,search:f,hash:o})}function Ks(){return E.useContext(Uc)!=null}function Da(){return Qe(Ks(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(Uc).location}var Ww="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eb(e){E.useContext(ga).static||E.useLayoutEffect(e)}function dn(){let{isDataRoute:e}=E.useContext(aa);return e?fC():WA()}function WA(){Qe(Ks(),"useNavigate() may be used only in the context of a <Router> component.");let e=E.useContext(qr),{basename:n,navigator:a}=E.useContext(ga),{matches:r}=E.useContext(aa),{pathname:o}=Da(),u=JSON.stringify(zc(r)),f=E.useRef(!1);return eb(()=>{f.current=!0}),E.useCallback((p,g={})=>{if(It(f.current,Ww),!f.current)return;if(typeof p=="number"){a.go(p);return}let y=Lc(p,JSON.parse(u),o,g.relative==="path");e==null&&n!=="/"&&(y.pathname=y.pathname==="/"?n:Ta([n,y.pathname])),(g.replace?a.replace:a.push)(y,g.state,g)},[n,a,u,o,e])}var eC=E.createContext(null);function tC(e){let n=E.useContext(aa).outlet;return n&&E.createElement(eC.Provider,{value:e},n)}function Hc(){let{matches:e}=E.useContext(aa),n=e[e.length-1];return n?n.params:{}}function Eo(e,{relative:n}={}){let{matches:a}=E.useContext(aa),{pathname:r}=Da(),o=JSON.stringify(zc(a));return E.useMemo(()=>Lc(e,JSON.parse(o),r,n==="path"),[e,o,r,n])}function nC(e,n,a,r){Qe(Ks(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:o,static:u}=E.useContext(ga),{matches:f}=E.useContext(aa),m=f[f.length-1],p=m?m.params:{},g=m?m.pathname:"/",y=m?m.pathnameBase:"/",v=m&&m.route;{let z=v&&v.path||"";nb(g,!v||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${z}">) 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="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let b=Da(),x;x=b;let S=x.pathname||"/",j=S;if(y!=="/"){let z=y.replace(/^\//,"").split("/");j="/"+S.replace(/^\//,"").split("/").slice(z.length).join("/")}let C=!u&&a&&a.matches&&a.matches.length>0?a.matches:Oi(e,{pathname:j});return It(v||C!=null,`No routes matched location "${x.pathname}${x.search}${x.hash}" `),It(C==null||C[C.length-1].route.element!==void 0||C[C.length-1].route.Component!==void 0||C[C.length-1].route.lazy!==void 0,`Matched leaf route at location "${x.pathname}${x.search}${x.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.`),lC(C&&C.map(z=>Object.assign({},z,{params:Object.assign({},p,z.params),pathname:Ta([y,o.encodeLocation?o.encodeLocation(z.pathname).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?y:Ta([y,o.encodeLocation?o.encodeLocation(z.pathnameBase).pathname:z.pathnameBase])})),f,a,r)}function aC(){let e=tb(),n=po(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},u={padding:"2px 4px",backgroundColor:r},f=null;return console.error("Error handled by React Router default ErrorBoundary:",e),f=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:u},"ErrorBoundary")," or"," ",E.createElement("code",{style:u},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},n),a?E.createElement("pre",{style:o},a):null,f)}var iC=E.createElement(aC,null),rC=class extends E.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,n){return n.location!==e.location||n.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:n.error,location:n.location,revalidation:e.revalidation||n.revalidation}}componentDidCatch(e,n){console.error("React Router caught the following error during render",e,n)}render(){return this.state.error!==void 0?E.createElement(aa.Provider,{value:this.props.routeContext},E.createElement(Fm.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function sC({routeContext:e,match:n,children:a}){let r=E.useContext(qr);return r&&r.static&&r.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(aa.Provider,{value:e},a)}function lC(e,n=[],a=null,r=null){if(e==null){if(!a)return null;if(a.errors)e=a.matches;else if(n.length===0&&!a.initialized&&a.matches.length>0)e=a.matches;else return null}let o=e,u=a==null?void 0:a.errors;if(u!=null){let p=o.findIndex(g=>g.route.id&&(u==null?void 0:u[g.route.id])!==void 0);Qe(p>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),o=o.slice(0,Math.min(o.length,p+1))}let f=!1,m=-1;if(a)for(let p=0;p<o.length;p++){let g=o[p];if((g.route.HydrateFallback||g.route.hydrateFallbackElement)&&(m=p),g.route.id){let{loaderData:y,errors:v}=a,b=g.route.loader&&!y.hasOwnProperty(g.route.id)&&(!v||v[g.route.id]===void 0);if(g.route.lazy||b){f=!0,m>=0?o=o.slice(0,m+1):o=[o[0]];break}}}return o.reduceRight((p,g,y)=>{let v,b=!1,x=null,S=null;a&&(v=u&&g.route.id?u[g.route.id]:void 0,x=g.route.errorElement||iC,f&&(m<0&&y===0?(nb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),b=!0,S=null):m===y&&(b=!0,S=g.route.hydrateFallbackElement||null)));let j=n.concat(o.slice(0,y+1)),C=()=>{let k;return v?k=x:b?k=S:g.route.Component?k=E.createElement(g.route.Component,null):g.route.element?k=g.route.element:k=p,E.createElement(sC,{match:g,routeContext:{outlet:p,matches:j,isDataRoute:a!=null},children:k})};return a&&(g.route.ErrorBoundary||g.route.errorElement||y===0)?E.createElement(rC,{location:a.location,revalidation:a.revalidation,component:x,error:v,children:C(),routeContext:{outlet:null,matches:j,isDataRoute:!0}}):C()},null)}function Pm(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function oC(e){let n=E.useContext(qr);return Qe(n,Pm(e)),n}function uC(e){let n=E.useContext(Co);return Qe(n,Pm(e)),n}function cC(e){let n=E.useContext(aa);return Qe(n,Pm(e)),n}function Vm(e){let n=cC(e),a=n.matches[n.matches.length-1];return Qe(a.route.id,`${e} can only be used on routes that contain a unique "id"`),a.route.id}function dC(){return Vm("useRouteId")}function tb(){var r;let e=E.useContext(Fm),n=uC("useRouteError"),a=Vm("useRouteError");return e!==void 0?e:(r=n.errors)==null?void 0:r[a]}function fC(){let{router:e}=oC("useNavigate"),n=Vm("useNavigate"),a=E.useRef(!1);return eb(()=>{a.current=!0}),E.useCallback(async(o,u={})=>{It(a.current,Ww),a.current&&(typeof o=="number"?e.navigate(o):await e.navigate(o,{fromRouteId:n,...u}))},[e,n])}var Sv={};function nb(e,n,a){!n&&!Sv[e]&&(Sv[e]=!0,It(!1,a))}var Av={};function Cv(e,n){!e&&!Av[n]&&(Av[n]=!0,console.warn(n))}function hC(e){let n={hasErrorBoundary:e.hasErrorBoundary||e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&(e.element&&It(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(n,{element:E.createElement(e.Component),Component:void 0})),e.HydrateFallback&&(e.hydrateFallbackElement&&It(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(n,{hydrateFallbackElement:E.createElement(e.HydrateFallback),HydrateFallback:void 0})),e.ErrorBoundary&&(e.errorElement&&It(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(n,{errorElement:E.createElement(e.ErrorBoundary),ErrorBoundary:void 0})),n}var mC=class{constructor(){this.status="pending",this.promise=new Promise((e,n)=>{this.resolve=a=>{this.status==="pending"&&(this.status="resolved",e(a))},this.reject=a=>{this.status==="pending"&&(this.status="rejected",n(a))}})}};function gC({router:e,flushSync:n}){let[a,r]=E.useState(e.state),[o,u]=E.useState(),[f,m]=E.useState({isTransitioning:!1}),[p,g]=E.useState(),[y,v]=E.useState(),[b,x]=E.useState(),S=E.useRef(new Map),j=E.useCallback((_,{deletedFetchers:Z,flushSync:R,viewTransitionOpts:W})=>{_.fetchers.forEach((se,Q)=>{se.data!==void 0&&S.current.set(Q,se.data)}),Z.forEach(se=>S.current.delete(se)),Cv(R===!1||n!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable.  Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let ue=e.window!=null&&e.window.document!=null&&typeof e.window.document.startViewTransition=="function";if(Cv(W==null||ue,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!W||!ue){n&&R?n(()=>r(_)):E.startTransition(()=>r(_));return}if(n&&R){n(()=>{y&&(p&&p.resolve(),y.skipTransition()),m({isTransitioning:!0,flushSync:!0,currentLocation:W.currentLocation,nextLocation:W.nextLocation})});let se=e.window.document.startViewTransition(()=>{n(()=>r(_))});se.finished.finally(()=>{n(()=>{g(void 0),v(void 0),u(void 0),m({isTransitioning:!1})})}),n(()=>v(se));return}y?(p&&p.resolve(),y.skipTransition(),x({state:_,currentLocation:W.currentLocation,nextLocation:W.nextLocation})):(u(_),m({isTransitioning:!0,flushSync:!1,currentLocation:W.currentLocation,nextLocation:W.nextLocation}))},[e.window,n,y,p]);E.useLayoutEffect(()=>e.subscribe(j),[e,j]),E.useEffect(()=>{f.isTransitioning&&!f.flushSync&&g(new mC)},[f]),E.useEffect(()=>{if(p&&o&&e.window){let _=o,Z=p.promise,R=e.window.document.startViewTransition(async()=>{E.startTransition(()=>r(_)),await Z});R.finished.finally(()=>{g(void 0),v(void 0),u(void 0),m({isTransitioning:!1})}),v(R)}},[o,p,e.window]),E.useEffect(()=>{p&&o&&a.location.key===o.location.key&&p.resolve()},[p,y,a.location,o]),E.useEffect(()=>{!f.isTransitioning&&b&&(u(b.state),m({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),x(void 0))},[f.isTransitioning,b]);let C=E.useMemo(()=>({createHref:e.createHref,encodeLocation:e.encodeLocation,go:_=>e.navigate(_),push:(_,Z,R)=>e.navigate(_,{state:Z,preventScrollReset:R==null?void 0:R.preventScrollReset}),replace:(_,Z,R)=>e.navigate(_,{replace:!0,state:Z,preventScrollReset:R==null?void 0:R.preventScrollReset})}),[e]),k=e.basename||"/",z=E.useMemo(()=>({router:e,navigator:C,static:!1,basename:k}),[e,C,k]);return E.createElement(E.Fragment,null,E.createElement(qr.Provider,{value:z},E.createElement(Co.Provider,{value:a},E.createElement(Jw.Provider,{value:S.current},E.createElement(Hm.Provider,{value:f},E.createElement(vC,{basename:k,location:a.location,navigationType:a.historyAction,navigator:C},E.createElement(pC,{routes:e.routes,future:e.future,state:a})))))),null)}var pC=E.memo(yC);function yC({routes:e,future:n,state:a}){return nC(e,void 0,a,n)}function jh({to:e,replace:n,state:a,relative:r}){Qe(Ks(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=E.useContext(ga);It(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=E.useContext(aa),{pathname:f}=Da(),m=dn(),p=Lc(e,zc(u),f,r==="path"),g=JSON.stringify(p);return E.useEffect(()=>{m(JSON.parse(g),{replace:n,state:a,relative:r})},[m,g,r,n,a]),null}function ab(e){return tC(e.context)}function vC({basename:e="/",children:n=null,location:a,navigationType:r="POP",navigator:o,static:u=!1}){Qe(!Ks(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=e.replace(/^\/*/,"/"),m=E.useMemo(()=>({basename:f,navigator:o,static:u,future:{}}),[f,o,u]);typeof a=="string"&&(a=Ji(a));let{pathname:p="/",search:g="",hash:y="",state:v=null,key:b="default"}=a,x=E.useMemo(()=>{let S=ta(p,f);return S==null?null:{location:{pathname:S,search:g,hash:y,state:v,key:b},navigationType:r}},[f,p,g,y,v,b,r]);return It(x!=null,`<Router basename="${f}"> is not able to match the URL "${p}${g}${y}" because it does not start with the basename, so the <Router> won't render anything.`),x==null?null:E.createElement(ga.Provider,{value:m},E.createElement(Uc.Provider,{children:n,value:x}))}var sc="get",lc="application/x-www-form-urlencoded";function Fc(e){return e!=null&&typeof e.tagName=="string"}function wC(e){return Fc(e)&&e.tagName.toLowerCase()==="button"}function bC(e){return Fc(e)&&e.tagName.toLowerCase()==="form"}function xC(e){return Fc(e)&&e.tagName.toLowerCase()==="input"}function SC(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function AC(e,n){return e.button===0&&(!n||n==="_self")&&!SC(e)}var Ju=null;function CC(){if(Ju===null)try{new FormData(document.createElement("form"),0),Ju=!1}catch{Ju=!0}return Ju}var EC=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Rh(e){return e!=null&&!EC.has(e)?(It(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${lc}"`),null):e}function jC(e,n){let a,r,o,u,f;if(bC(e)){let m=e.getAttribute("action");r=m?ta(m,n):null,a=e.getAttribute("method")||sc,o=Rh(e.getAttribute("enctype"))||lc,u=new FormData(e)}else if(wC(e)||xC(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?ta(p,n):null,a=e.getAttribute("formmethod")||m.getAttribute("method")||sc,o=Rh(e.getAttribute("formenctype"))||Rh(m.getAttribute("enctype"))||lc,u=new FormData(m,e),!CC()){let{name:g,type:y,value:v}=e;if(y==="image"){let b=g?`${g}.`:"";u.append(`${b}x`,"0"),u.append(`${b}y`,"0")}else g&&u.append(g,v)}}else{if(Fc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=sc,r=null,o=lc,f=e}return u&&o==="text/plain"&&(f=u,u=void 0),{action:r,method:a.toLowerCase(),encType:o,formData:u,body:f}}function Im(e,n){if(e===!1||e===null||typeof e>"u")throw new Error(n)}async function RC(e,n){if(e.id in n)return n[e.id];try{let a=await import(e.module);return n[e.id]=a,a}catch(a){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function NC(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 TC(e,n,a){let r=await Promise.all(e.map(async o=>{let u=n.routes[o.route.id];if(u){let f=await RC(u,a);return f.links?f.links():[]}return[]}));return OC(r.flat(1).filter(NC).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Ev(e,n,a,r,o,u){let f=(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 u==="assets"?n.filter((p,g)=>f(p,g)||m(p,g)):u==="data"?n.filter((p,g)=>{var v;let y=r.routes[p.route.id];if(!y||!y.hasLoader)return!1;if(f(p,g)||m(p,g))return!0;if(p.route.shouldRevalidate){let b=p.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((v=a[0])==null?void 0:v.params)||{},nextUrl:new URL(e,window.origin),nextParams:p.params,defaultShouldRevalidate:!0});if(typeof b=="boolean")return b}return!0}):[]}function kC(e,n,{includeHydrateFallback:a}={}){return MC(e.map(r=>{let o=n.routes[r.route.id];if(!o)return[];let u=[o.module];return o.clientActionModule&&(u=u.concat(o.clientActionModule)),o.clientLoaderModule&&(u=u.concat(o.clientLoaderModule)),a&&o.hydrateFallbackModule&&(u=u.concat(o.hydrateFallbackModule)),o.imports&&(u=u.concat(o.imports)),u}).flat(1))}function MC(e){return[...new Set(e)]}function DC(e){let n={},a=Object.keys(e).sort();for(let r of a)n[r]=e[r];return n}function OC(e,n){let a=new Set;return new Set(n),e.reduce((r,o)=>{let u=JSON.stringify(DC(o));return a.has(u)||(a.add(u),r.push({key:u,link:o})),r},[])}function _C(e,n){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return a.pathname==="/"?a.pathname="_root.data":n&&ta(a.pathname,n)==="/"?a.pathname=`${n.replace(/\/$/,"")}/_root.data`:a.pathname=`${a.pathname.replace(/\/$/,"")}.data`,a}function ib(){let e=E.useContext(qr);return Im(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function BC(){let e=E.useContext(Co);return Im(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var qm=E.createContext(void 0);qm.displayName="FrameworkContext";function rb(){let e=E.useContext(qm);return Im(e,"You must render this element inside a <HydratedRouter> element"),e}function zC(e,n){let a=E.useContext(qm),[r,o]=E.useState(!1),[u,f]=E.useState(!1),{onFocus:m,onBlur:p,onMouseEnter:g,onMouseLeave:y,onTouchStart:v}=n,b=E.useRef(null);E.useEffect(()=>{if(e==="render"&&f(!0),e==="viewport"){let j=k=>{k.forEach(z=>{f(z.isIntersecting)})},C=new IntersectionObserver(j,{threshold:.5});return b.current&&C.observe(b.current),()=>{C.disconnect()}}},[e]),E.useEffect(()=>{if(r){let j=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(j)}}},[r]);let x=()=>{o(!0)},S=()=>{o(!1),f(!1)};return a?e!=="intent"?[u,b,{}]:[u,b,{onFocus:so(m,x),onBlur:so(p,S),onMouseEnter:so(g,x),onMouseLeave:so(y,S),onTouchStart:so(v,x)}]:[!1,b,{}]}function so(e,n){return a=>{e&&e(a),a.defaultPrevented||n(a)}}function LC({page:e,...n}){let{router:a}=ib(),r=E.useMemo(()=>Oi(a.routes,e,a.basename),[a.routes,e,a.basename]);return r?E.createElement(HC,{page:e,matches:r,...n}):null}function UC(e){let{manifest:n,routeModules:a}=rb(),[r,o]=E.useState([]);return E.useEffect(()=>{let u=!1;return TC(e,n,a).then(f=>{u||o(f)}),()=>{u=!0}},[e,n,a]),r}function HC({page:e,matches:n,...a}){let r=Da(),{manifest:o,routeModules:u}=rb(),{basename:f}=ib(),{loaderData:m,matches:p}=BC(),g=E.useMemo(()=>Ev(e,n,p,o,r,"data"),[e,n,p,o,r]),y=E.useMemo(()=>Ev(e,n,p,o,r,"assets"),[e,n,p,o,r]),v=E.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let S=new Set,j=!1;if(n.forEach(k=>{var _;let z=o.routes[k.route.id];!z||!z.hasLoader||(!g.some(Z=>Z.route.id===k.route.id)&&k.route.id in m&&((_=u[k.route.id])!=null&&_.shouldRevalidate)||z.hasClientLoader?j=!0:S.add(k.route.id))}),S.size===0)return[];let C=_C(e,f);return j&&S.size>0&&C.searchParams.set("_routes",n.filter(k=>S.has(k.route.id)).map(k=>k.route.id).join(",")),[C.pathname+C.search]},[f,m,r,o,g,n,e,u]),b=E.useMemo(()=>kC(y,o),[y,o]),x=UC(y);return E.createElement(E.Fragment,null,v.map(S=>E.createElement("link",{key:S,rel:"prefetch",as:"fetch",href:S,...a})),b.map(S=>E.createElement("link",{key:S,rel:"modulepreload",href:S,...a})),x.map(({key:S,link:j})=>E.createElement("link",{key:S,...j})))}function FC(...e){return n=>{e.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var sb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{sb&&(window.__reactRouterVersion="7.3.0")}catch{}function PC(e,n){return MA({basename:n==null?void 0:n.basename,unstable_getContext:n==null?void 0:n.unstable_getContext,future:n==null?void 0:n.future,history:tA({window:n==null?void 0:n.window}),hydrationData:VC(),routes:e,mapRouteProperties:hC,dataStrategy:n==null?void 0:n.dataStrategy,patchRoutesOnNavigation:n==null?void 0:n.patchRoutesOnNavigation,window:n==null?void 0:n.window}).initialize()}function VC(){let e=window==null?void 0:window.__staticRouterHydrationData;return e&&e.errors&&(e={...e,errors:IC(e.errors)}),e}function IC(e){if(!e)return null;let n=Object.entries(e),a={};for(let[r,o]of n)if(o&&o.__type==="RouteErrorResponse")a[r]=new yc(o.status,o.statusText,o.data,o.internal===!0);else if(o&&o.__type==="Error"){if(o.__subType){let u=window[o.__subType];if(typeof u=="function")try{let f=new u(o.message);f.stack="",a[r]=f}catch{}}if(a[r]==null){let u=new Error(o.message);u.stack="",a[r]=u}}else a[r]=o;return a}var lb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Pc=E.forwardRef(function({onClick:n,discover:a="render",prefetch:r="none",relative:o,reloadDocument:u,replace:f,state:m,target:p,to:g,preventScrollReset:y,viewTransition:v,...b},x){let{basename:S}=E.useContext(ga),j=typeof g=="string"&&lb.test(g),C,k=!1;if(typeof g=="string"&&j&&(C=g,sb))try{let Q=new URL(window.location.href),ne=g.startsWith("//")?new URL(Q.protocol+g):new URL(g),fe=ta(ne.pathname,S);ne.origin===Q.origin&&fe!=null?g=fe+ne.search+ne.hash:k=!0}catch{It(!1,`<Link to="${g}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let z=JA(g,{relative:o}),[_,Z,R]=zC(r,b),W=YC(g,{replace:f,state:m,target:p,preventScrollReset:y,relative:o,viewTransition:v});function ue(Q){n&&n(Q),Q.defaultPrevented||W(Q)}let se=E.createElement("a",{...b,...R,href:C||z,onClick:k||u?n:ue,ref:FC(x,Z),target:p,"data-discover":!j&&a==="render"?"true":void 0});return _&&!j?E.createElement(E.Fragment,null,se,E.createElement(LC,{page:z})):se});Pc.displayName="Link";var qC=E.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:r="",end:o=!1,style:u,to:f,viewTransition:m,children:p,...g},y){let v=Eo(f,{relative:g.relative}),b=Da(),x=E.useContext(Co),{navigator:S,basename:j}=E.useContext(ga),C=x!=null&&JC(v)&&m===!0,k=S.encodeLocation?S.encodeLocation(v).pathname:v.pathname,z=b.pathname,_=x&&x.navigation&&x.navigation.location?x.navigation.location.pathname:null;a||(z=z.toLowerCase(),_=_?_.toLowerCase():null,k=k.toLowerCase()),_&&j&&(_=ta(_,j)||_);const Z=k!=="/"&&k.endsWith("/")?k.length-1:k.length;let R=z===k||!o&&z.startsWith(k)&&z.charAt(Z)==="/",W=_!=null&&(_===k||!o&&_.startsWith(k)&&_.charAt(k.length)==="/"),ue={isActive:R,isPending:W,isTransitioning:C},se=R?n:void 0,Q;typeof r=="function"?Q=r(ue):Q=[r,R?"active":null,W?"pending":null,C?"transitioning":null].filter(Boolean).join(" ");let ne=typeof u=="function"?u(ue):u;return E.createElement(Pc,{...g,"aria-current":se,className:Q,ref:y,style:ne,to:f,viewTransition:m},typeof p=="function"?p(ue):p)});qC.displayName="NavLink";var QC=E.forwardRef(({discover:e="render",fetcherKey:n,navigate:a,reloadDocument:r,replace:o,state:u,method:f=sc,action:m,onSubmit:p,relative:g,preventScrollReset:y,viewTransition:v,...b},x)=>{let S=KC(),j=ZC(m,{relative:g}),C=f.toLowerCase()==="get"?"get":"post",k=typeof m=="string"&&lb.test(m),z=_=>{if(p&&p(_),_.defaultPrevented)return;_.preventDefault();let Z=_.nativeEvent.submitter,R=(Z==null?void 0:Z.getAttribute("formmethod"))||f;S(Z||_.currentTarget,{fetcherKey:n,method:R,navigate:a,replace:o,state:u,relative:g,preventScrollReset:y,viewTransition:v})};return E.createElement("form",{ref:x,method:C,action:j,onSubmit:r?p:z,...b,"data-discover":!k&&e==="render"?"true":void 0})});QC.displayName="Form";function GC(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function ob(e){let n=E.useContext(qr);return Qe(n,GC(e)),n}function YC(e,{target:n,replace:a,state:r,preventScrollReset:o,relative:u,viewTransition:f}={}){let m=dn(),p=Da(),g=Eo(e,{relative:u});return E.useCallback(y=>{if(AC(y,n)){y.preventDefault();let v=a!==void 0?a:Xi(p)===Xi(g);m(e,{replace:v,state:r,preventScrollReset:o,relative:u,viewTransition:f})}},[p,m,g,a,r,n,e,o,u,f])}var $C=0,XC=()=>`__${String(++$C)}__`;function KC(){let{router:e}=ob("useSubmit"),{basename:n}=E.useContext(ga),a=dC();return E.useCallback(async(r,o={})=>{let{action:u,method:f,encType:m,formData:p,body:g}=jC(r,n);if(o.navigate===!1){let y=o.fetcherKey||XC();await e.fetch(y,a,o.action||u,{preventScrollReset:o.preventScrollReset,formData:p,body:g,formMethod:o.method||f,formEncType:o.encType||m,flushSync:o.flushSync})}else await e.navigate(o.action||u,{preventScrollReset:o.preventScrollReset,formData:p,body:g,formMethod:o.method||f,formEncType:o.encType||m,replace:o.replace,state:o.state,fromRouteId:a,flushSync:o.flushSync,viewTransition:o.viewTransition})},[e,n,a])}function ZC(e,{relative:n}={}){let{basename:a}=E.useContext(ga),r=E.useContext(aa);Qe(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),u={...Eo(e||".",{relative:n})},f=Da();if(e==null){u.search=f.search;let m=new URLSearchParams(u.search),p=m.getAll("index");if(p.some(y=>y==="")){m.delete("index"),p.filter(v=>v).forEach(v=>m.append("index",v));let y=m.toString();u.search=y?`?${y}`:""}}return(!e||e===".")&&o.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(u.pathname=u.pathname==="/"?a:Ta([a,u.pathname])),Xi(u)}function JC(e,n={}){let a=E.useContext(Hm);Qe(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=ob("useViewTransitionState"),o=Eo(e,{relative:n.relative});if(!a.isTransitioning)return!1;let u=ta(a.currentLocation.pathname,r)||a.currentLocation.pathname,f=ta(a.nextLocation.pathname,r)||a.nextLocation.pathname;return pc(o.pathname,f)!=null||pc(o.pathname,u)!=null}new TextEncoder;var WC=Fw();/**
 * react-router v7.3.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
 */function eE(e){return E.createElement(gC,{flushSync:WC.flushSync,...e})}function tE(){return c.jsx("div",{className:"relative min-h-screen flex flex-col",children:c.jsx(ab,{})})}var ub={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},jv=$i.createContext&&$i.createContext(ub),nE=["attr","size","title"];function aE(e,n){if(e==null)return{};var a=iE(e,n),r,o;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(e);for(o=0;o<u.length;o++)r=u[o],!(n.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}function iE(e,n){if(e==null)return{};var a={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(n.indexOf(r)>=0)continue;a[r]=e[r]}return a}function vc(){return vc=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var r in a)Object.prototype.hasOwnProperty.call(a,r)&&(e[r]=a[r])}return e},vc.apply(this,arguments)}function Rv(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),a.push.apply(a,r)}return a}function wc(e){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Rv(Object(a),!0).forEach(function(r){rE(e,r,a[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(a)):Rv(Object(a)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(a,r))})}return e}function rE(e,n,a){return n=sE(n),n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function sE(e){var n=lE(e,"string");return typeof n=="symbol"?n:n+""}function lE(e,n){if(typeof e!="object"||!e)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var r=a.call(e,n);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(e)}function cb(e){return e&&e.map((n,a)=>$i.createElement(n.tag,wc({key:a},n.attr),cb(n.child)))}function wt(e){return n=>$i.createElement(oE,vc({attr:wc({},e.attr)},n),cb(e.child))}function oE(e){var n=a=>{var{attr:r,size:o,title:u}=e,f=aE(e,nE),m=o||a.size||"1em",p;return a.className&&(p=a.className),e.className&&(p=(p?p+" ":"")+e.className),$i.createElement("svg",vc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,r,f,{className:p,style:wc(wc({color:e.color||a.color},a.style),e.style),height:m,width:m,xmlns:"http://www.w3.org/2000/svg"}),u&&$i.createElement("title",null,u),e.children)};return jv!==void 0?$i.createElement(jv.Consumer,null,a=>n(a)):n(ub)}function uE(e){return wt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"},child:[]}]})(e)}function Vc(e){return wt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z"},child:[]}]})(e)}function cE(e){return wt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M504 256c0 136.967-111.033 248-248 248S8 392.967 8 256 119.033 8 256 8s248 111.033 248 248zM227.314 387.314l184-184c6.248-6.248 6.248-16.379 0-22.627l-22.627-22.627c-6.248-6.249-16.379-6.249-22.628 0L216 308.118l-70.059-70.059c-6.248-6.248-16.379-6.248-22.628 0l-22.627 22.627c-6.248 6.248-6.248 16.379 0 22.627l104 104c6.249 6.249 16.379 6.249 22.628.001z"},child:[]}]})(e)}function db(e){return wt({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"},child:[]}]})(e)}function fb(e){return wt({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"},child:[]}]})(e)}function dE(e){return wt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M256,8C119,8,8,119,8,256S119,504,256,504,504,393,504,256,393,8,256,8Zm92.49,313h0l-20,25a16,16,0,0,1-22.49,2.5h0l-67-49.72a40,40,0,0,1-15-31.23V112a16,16,0,0,1,16-16h32a16,16,0,0,1,16,16V256l58,42.5A16,16,0,0,1,348.49,321Z"},child:[]}]})(e)}function fE(e){return wt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M502.3 190.8c3.9-3.1 9.7-.2 9.7 4.7V400c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V195.6c0-5 5.7-7.8 9.7-4.7 22.4 17.4 52.1 39.5 154.1 113.6 21.1 15.4 56.7 47.8 92.2 47.6 35.7.3 72-32.8 92.3-47.6 102-74.1 131.6-96.3 154-113.7zM256 320c23.2.4 56.6-29.2 73.4-41.4 132.7-96.3 142.8-104.7 173.4-128.7 5.8-4.5 9.2-11.5 9.2-18.9v-19c0-26.5-21.5-48-48-48H48C21.5 64 0 85.5 0 112v19c0 7.4 3.4 14.3 9.2 18.9 30.6 23.9 40.7 32.4 173.4 128.7 16.8 12.2 50.2 41.8 73.4 41.4z"},child:[]}]})(e)}function hE(e){return wt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"},child:[]}]})(e)}function nm(e){return wt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M224 136V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V160H248c-13.2 0-24-10.8-24-24zm64 236c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-64c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12v8zm0-72v8c0 6.6-5.4 12-12 12H108c-6.6 0-12-5.4-12-12v-8c0-6.6 5.4-12 12-12h168c6.6 0 12 5.4 12 12zm96-114.1v6.1H256V0h6.1c6.4 0 12.5 2.5 17 7l97.9 98c4.5 4.5 7 10.6 7 16.9z"},child:[]}]})(e)}function mE(e){return wt({attr:{viewBox:"0 0 496 512"},child:[{tag:"path",attr:{d:"M336.5 160C322 70.7 287.8 8 248 8s-74 62.7-88.5 152h177zM152 256c0 22.2 1.2 43.5 3.3 64h185.3c2.1-20.5 3.3-41.8 3.3-64s-1.2-43.5-3.3-64H155.3c-2.1 20.5-3.3 41.8-3.3 64zm324.7-96c-28.6-67.9-86.5-120.4-158-141.6 24.4 33.8 41.2 84.7 50 141.6h108zM177.2 18.4C105.8 39.6 47.8 92.1 19.3 160h108c8.7-56.9 25.5-107.8 49.9-141.6zM487.4 192H372.7c2.1 21 3.3 42.5 3.3 64s-1.2 43-3.3 64h114.6c5.5-20.5 8.6-41.8 8.6-64s-3.1-43.5-8.5-64zM120 256c0-21.5 1.2-43 3.3-64H8.6C3.2 212.5 0 233.8 0 256s3.2 43.5 8.6 64h114.6c-2-21-3.2-42.5-3.2-64zm39.5 96c14.5 89.3 48.7 152 88.5 152s74-62.7 88.5-152h-177zm159.3 141.6c71.4-21.2 129.4-73.7 158-141.6h-108c-8.8 56.9-25.6 107.8-50 141.6zM19.3 352c28.6 67.9 86.5 120.4 158 141.6-24.4-33.8-41.2-84.7-50-141.6h-108z"},child:[]}]})(e)}function gE(e){return wt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M280.37 148.26L96 300.11V464a16 16 0 0 0 16 16l112.06-.29a16 16 0 0 0 15.92-16V368a16 16 0 0 1 16-16h64a16 16 0 0 1 16 16v95.64a16 16 0 0 0 16 16.05L464 480a16 16 0 0 0 16-16V300L295.67 148.26a12.19 12.19 0 0 0-15.3 0zM571.6 251.47L488 182.56V44.05a12 12 0 0 0-12-12h-56a12 12 0 0 0-12 12v72.61L318.47 43a48 48 0 0 0-61 0L4.34 251.47a12 12 0 0 0-1.6 16.9l25.5 31A12 12 0 0 0 45.15 301l235.22-193.74a12.19 12.19 0 0 1 15.3 0L530.9 301a12 12 0 0 0 16.9-1.6l25.5-31a12 12 0 0 0-1.7-16.93z"},child:[]}]})(e)}function pE(e){return wt({attr:{viewBox:"0 0 384 512"},child:[{tag:"path",attr:{d:"M172.268 501.67C26.97 291.031 0 269.413 0 192 0 85.961 85.961 0 192 0s192 85.961 192 192c0 77.413-26.97 99.031-172.268 309.67-9.535 13.774-29.93 13.773-39.464 0zM192 272c44.183 0 80-35.817 80-80s-35.817-80-80-80-80 35.817-80 80 35.817 80 80 80z"},child:[]}]})(e)}function Ic(e){return wt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M505 442.7L405.3 343c-4.5-4.5-10.6-7-17-7H372c27.6-35.3 44-79.7 44-128C416 93.1 322.9 0 208 0S0 93.1 0 208s93.1 208 208 208c48.3 0 92.7-16.4 128-44v16.3c0 6.4 2.5 12.5 7 17l99.7 99.7c9.4 9.4 24.6 9.4 33.9 0l28.3-28.3c9.4-9.4 9.4-24.6.1-34zM208 336c-70.7 0-128-57.2-128-128 0-70.7 57.2-128 128-128 70.7 0 128 57.2 128 128 0 70.7-57.2 128-128 128z"},child:[]}]})(e)}function yE(e){return wt({attr:{viewBox:"0 0 352 512"},child:[{tag:"path",attr:{d:"M242.72 256l100.07-100.07c12.28-12.28 12.28-32.19 0-44.48l-22.24-22.24c-12.28-12.28-32.19-12.28-44.48 0L176 189.28 75.93 89.21c-12.28-12.28-32.19-12.28-44.48 0L9.21 111.45c-12.28 12.28-12.28 32.19 0 44.48L109.28 256 9.21 356.07c-12.28 12.28-12.28 32.19 0 44.48l22.24 22.24c12.28 12.28 32.2 12.28 44.48 0L176 322.72l100.07 100.07c12.28 12.28 32.2 12.28 44.48 0l22.24-22.24c12.28-12.28 12.28-32.19 0-44.48L242.72 256z"},child:[]}]})(e)}function vE(e){return wt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0 96 57.3 96 128s57.3 128 128 128zm89.6 32h-16.7c-22.2 10.2-46.9 16-72.9 16s-50.6-5.8-72.9-16h-16.7C60.2 288 0 348.2 0 422.4V464c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48v-41.6c0-74.2-60.2-134.4-134.4-134.4z"},child:[]}]})(e)}const wE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASIAAAEXCAYAAAAJCUmoAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAACxMAAAsTAQCanBgAAAR/SURBVHhe7dc9blRnGIZhHxwlGixEmiBBBSmQZgUoHbsYZQNe1KwA17AASipKLEwkKBLyQ5NIYCfEzqT59nDjb66rmefU7+jWOcvbPy8fHuyB+7cPz8ac2ofz/+6OObXvbt74dcyp7cs9lyevzo/HntpmvdqOObWT0wv3nMi+3PPG+AXICBGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABueW3j5f3xp7au7+uHo45tTtHh+/HnNofn6724n+7L/dcdrvdmHM7Ob04HnNqm/VqO+bU3HMuPs2AnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkFuevrn48dO/u1vjeVqb9Wo75tSe/fS3e3LteCMCckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQG55+fvnHz5f7r4Zz9P6/tuvXo85tZ8/Xt3fh3s+uvf18zGZwLLb7cac28npxfGYU9usV9sx4drwaQbkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiA3PLil38ejz21O0eH78ec2oPbh2djwrWxPHl1fjz21Dbr1XZM4Avj0wzICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABsYOD/wHX81nTHsbWPwAAAABJRU5ErkJggg==",bE="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAASIAAAEXCAYAAAAJCUmoAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAQ4SURBVHgB7dfBTVRRGIbhc2dGOzBRlkSwDRqwDQIVSaYNG3BnCSaycaUkLF0hwyhdvHLP87TwJW/+fxnAf+vs5u5yTGAzAGJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBuGfACne7vz8cENk+HkzGB3YAXaHt8uhgTuL1+tx8T8JoBOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiILcMVuX9p18XY+1ebx5eHTY/xgQej4cPY+2e99wNVmVZlvOxdo9/f3+7evN1TODs5u7jWLvnPb1mQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgtYxJnN3eXYwK3V2/3YwL2XBcXEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyy+n+/nxMYPN0OBkTOG53P8cEZtnz4fDn+5jAbnt8uhgTuL1+tx8TOLu5uxwTsOe6eM2AnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkBMiICdEQE6IgJwQATkhAnJCBOSECMgJEZATIiAnREBOiICcEAE5IQJyQgTkhAjICRGQEyIgJ0RAToiAnBABOSECckIE5IQIyAkRkNvtlu3nwWrYc122m+2XMYF/FI8/craJi10AAAAASUVORK5CYII=",xE=()=>c.jsxs("div",{className:"relative w-full bg-sky-700 text-white py-12 px-6 md:px-32",children:[c.jsx("img",{className:"absolute top-0 left-0 h-64",src:wE,alt:"ornamen"}),c.jsxs("div",{className:"grid grid-cols-1 gap-y-4 md:flex justify-between items-start relative",children:[c.jsxs("div",{className:"w-full md:w-1/2",children:[c.jsx("h2",{className:"text-lg font-semibold",children:"Kontak:"}),c.jsxs("div",{className:"mt-4 space-y-3",children:[c.jsxs("a",{className:"flex items-center gap-3",href:"mailto:humic@telkomuniversity.ac.id",children:[c.jsx(fE,{className:"text-4xl text-white bg-sky-300 p-2 rounded-full"}),c.jsx("span",{children:"humic@telkomuniversity.ac.id"})]}),c.jsxs("a",{className:"flex items-center gap-3",href:"https://humic.telkomuniversity.ac.id/",children:[c.jsx(mE,{className:"text-4xl text-white bg-sky-300 p-2 rounded-full"}),c.jsx("span",{children:"https://humic.telkomuniversity.ac.id"})]}),c.jsxs("a",{className:"flex items-center gap-3",href:"https://www.instagram.com/humicengineering/",children:[c.jsx(uE,{className:"text-4xl text-white bg-sky-300 p-2 rounded-full"}),c.jsx("span",{children:"@humicengineering"})]})]})]}),c.jsxs("div",{className:"w-full md:w-1/2",children:[c.jsx("h2",{className:"text-lg font-semibold",children:"HUMiC Engineering Tel-U"}),c.jsx("p",{className:"mt-2 text-sm",children:"Pusat riset Telkom University di bidang teknologi untuk kesehatan & kesejahteraan manusia."}),c.jsx("div",{className:"mt-4 space-y-3",children:c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx(pE,{className:"text-4xl text-white bg-sky-300 p-2 rounded-full"}),c.jsxs("div",{children:[c.jsx("h2",{className:"text-sm font-normal",children:"Gedung Bangkit Telkom University Jl. Telekomunikasi No. 1, Terusan Buah Batu"}),c.jsx("p",{className:"font-bold",children:"Bandung 40257, Jawa Barat, Indonesia."})]})]})})]})]}),c.jsx("img",{className:"absolute bottom-0 right-0 h-64",src:bE,alt:"ornamen2"})]}),SE="modulepreload",AE=function(e){return"/"+e},Nv={},CE=function(n,a,r){let o=Promise.resolve();if(a&&a.length>0){document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),m=(f==null?void 0:f.nonce)||(f==null?void 0:f.getAttribute("nonce"));o=Promise.allSettled(a.map(p=>{if(p=AE(p),p in Nv)return;Nv[p]=!0;const g=p.endsWith(".css"),y=g?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const v=document.createElement("link");if(v.rel=g?"stylesheet":SE,g||(v.as="script"),v.crossOrigin="",v.href=p,m&&v.setAttribute("nonce",m),document.head.appendChild(v),g)return new Promise((b,x)=>{v.addEventListener("load",b),v.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${p}`)))})}))}function u(f){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=f,window.dispatchEvent(m),!m.defaultPrevented)throw f}return o.then(f=>{for(const m of f||[])m.status==="rejected"&&u(m.reason);return n().catch(u)})},ft="https://myskin-api.humicprototyping.net/api/v1",ht={auth:{registerDoctor:`${ft}/auth/register/doctor`,registerPatient:`${ft}/auth/register/patient`,login:`${ft}/auth/login`,refreshToken:`${ft}/auth/refresh-token`,logout:`${ft}/v1/auth/logout`},detectionsPatient:{history:`${ft}/patient/detections`,create:`${ft}/patient/detections`,update:`${ft}/patient/submission`,detail:`${ft}/patient/detection`},submissionsPatient:{history:`${ft}/patient/submissions`,detail:`${ft}/patient/submission`,delete:`${ft}/patient/submission`},accounts:{list:`${ft}/accounts`,detail:`${ft}/accounts`,create:`${ft}/accounts`,update:`${ft}/accounts`,delete:`${ft}/accounts`},doctor:{doctorList:`${ft}/patient/doctors`},doctor_services:{stats:`${ft}/doctor/dashboard/stats`,pending:`${ft}/doctor/dashboard/pending`,patients:`${ft}/doctor/patients`,submission:`${ft}/doctor/submissions/pending`,history:`${ft}/doctor/submissions/history`,detail:`${ft}/doctor/submissions/{id}/detail`,verify:`${ft}/doctor/submissions/{id}`}};function hb(e,n){return function(){return e.apply(n,arguments)}}const{toString:EE}=Object.prototype,{getPrototypeOf:Qm}=Object,qc=(e=>n=>{const a=EE.call(n);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),pa=e=>(e=e.toLowerCase(),n=>qc(n)===e),Qc=e=>n=>typeof n===e,{isArray:Zs}=Array,yo=Qc("undefined");function jE(e){return e!==null&&!yo(e)&&e.constructor!==null&&!yo(e.constructor)&&kn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const mb=pa("ArrayBuffer");function RE(e){let n;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?n=ArrayBuffer.isView(e):n=e&&e.buffer&&mb(e.buffer),n}const NE=Qc("string"),kn=Qc("function"),gb=Qc("number"),Gc=e=>e!==null&&typeof e=="object",TE=e=>e===!0||e===!1,oc=e=>{if(qc(e)!=="object")return!1;const n=Qm(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},kE=pa("Date"),ME=pa("File"),DE=pa("Blob"),OE=pa("FileList"),_E=e=>Gc(e)&&kn(e.pipe),BE=e=>{let n;return e&&(typeof FormData=="function"&&e instanceof FormData||kn(e.append)&&((n=qc(e))==="formdata"||n==="object"&&kn(e.toString)&&e.toString()==="[object FormData]"))},zE=pa("URLSearchParams"),[LE,UE,HE,FE]=["ReadableStream","Request","Response","Headers"].map(pa),PE=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function jo(e,n,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),Zs(e))for(r=0,o=e.length;r<o;r++)n.call(null,e[r],r,e);else{const u=a?Object.getOwnPropertyNames(e):Object.keys(e),f=u.length;let m;for(r=0;r<f;r++)m=u[r],n.call(null,e[m],m,e)}}function pb(e,n){n=n.toLowerCase();const a=Object.keys(e);let r=a.length,o;for(;r-- >0;)if(o=a[r],n===o.toLowerCase())return o;return null}const Tr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yb=e=>!yo(e)&&e!==Tr;function am(){const{caseless:e}=yb(this)&&this||{},n={},a=(r,o)=>{const u=e&&pb(n,o)||o;oc(n[u])&&oc(r)?n[u]=am(n[u],r):oc(r)?n[u]=am({},r):Zs(r)?n[u]=r.slice():n[u]=r};for(let r=0,o=arguments.length;r<o;r++)arguments[r]&&jo(arguments[r],a);return n}const VE=(e,n,a,{allOwnKeys:r}={})=>(jo(n,(o,u)=>{a&&kn(o)?e[u]=hb(o,a):e[u]=o},{allOwnKeys:r}),e),IE=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),qE=(e,n,a,r)=>{e.prototype=Object.create(n.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:n.prototype}),a&&Object.assign(e.prototype,a)},QE=(e,n,a,r)=>{let o,u,f;const m={};if(n=n||{},e==null)return n;do{for(o=Object.getOwnPropertyNames(e),u=o.length;u-- >0;)f=o[u],(!r||r(f,e,n))&&!m[f]&&(n[f]=e[f],m[f]=!0);e=a!==!1&&Qm(e)}while(e&&(!a||a(e,n))&&e!==Object.prototype);return n},GE=(e,n,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=n.length;const r=e.indexOf(n,a);return r!==-1&&r===a},YE=e=>{if(!e)return null;if(Zs(e))return e;let n=e.length;if(!gb(n))return null;const a=new Array(n);for(;n-- >0;)a[n]=e[n];return a},$E=(e=>n=>e&&n instanceof e)(typeof Uint8Array<"u"&&Qm(Uint8Array)),XE=(e,n)=>{const r=(e&&e[Symbol.iterator]).call(e);let o;for(;(o=r.next())&&!o.done;){const u=o.value;n.call(e,u[0],u[1])}},KE=(e,n)=>{let a;const r=[];for(;(a=e.exec(n))!==null;)r.push(a);return r},ZE=pa("HTMLFormElement"),JE=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,o){return r.toUpperCase()+o}),Tv=(({hasOwnProperty:e})=>(n,a)=>e.call(n,a))(Object.prototype),WE=pa("RegExp"),vb=(e,n)=>{const a=Object.getOwnPropertyDescriptors(e),r={};jo(a,(o,u)=>{let f;(f=n(o,u,e))!==!1&&(r[u]=f||o)}),Object.defineProperties(e,r)},ej=e=>{vb(e,(n,a)=>{if(kn(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const r=e[a];if(kn(r)){if(n.enumerable=!1,"writable"in n){n.writable=!1;return}n.set||(n.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},tj=(e,n)=>{const a={},r=o=>{o.forEach(u=>{a[u]=!0})};return Zs(e)?r(e):r(String(e).split(n)),a},nj=()=>{},aj=(e,n)=>e!=null&&Number.isFinite(e=+e)?e:n;function ij(e){return!!(e&&kn(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const rj=e=>{const n=new Array(10),a=(r,o)=>{if(Gc(r)){if(n.indexOf(r)>=0)return;if(!("toJSON"in r)){n[o]=r;const u=Zs(r)?[]:{};return jo(r,(f,m)=>{const p=a(f,o+1);!yo(p)&&(u[m]=p)}),n[o]=void 0,u}}return r};return a(e,0)},sj=pa("AsyncFunction"),lj=e=>e&&(Gc(e)||kn(e))&&kn(e.then)&&kn(e.catch),wb=((e,n)=>e?setImmediate:n?((a,r)=>(Tr.addEventListener("message",({source:o,data:u})=>{o===Tr&&u===a&&r.length&&r.shift()()},!1),o=>{r.push(o),Tr.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",kn(Tr.postMessage)),oj=typeof queueMicrotask<"u"?queueMicrotask.bind(Tr):typeof process<"u"&&process.nextTick||wb,G={isArray:Zs,isArrayBuffer:mb,isBuffer:jE,isFormData:BE,isArrayBufferView:RE,isString:NE,isNumber:gb,isBoolean:TE,isObject:Gc,isPlainObject:oc,isReadableStream:LE,isRequest:UE,isResponse:HE,isHeaders:FE,isUndefined:yo,isDate:kE,isFile:ME,isBlob:DE,isRegExp:WE,isFunction:kn,isStream:_E,isURLSearchParams:zE,isTypedArray:$E,isFileList:OE,forEach:jo,merge:am,extend:VE,trim:PE,stripBOM:IE,inherits:qE,toFlatObject:QE,kindOf:qc,kindOfTest:pa,endsWith:GE,toArray:YE,forEachEntry:XE,matchAll:KE,isHTMLForm:ZE,hasOwnProperty:Tv,hasOwnProp:Tv,reduceDescriptors:vb,freezeMethods:ej,toObjectSet:tj,toCamelCase:JE,noop:nj,toFiniteNumber:aj,findKey:pb,global:Tr,isContextDefined:yb,isSpecCompliantForm:ij,toJSONObject:rj,isAsyncFn:sj,isThenable:lj,setImmediate:wb,asap:oj};function Ue(e,n,a,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",n&&(this.code=n),a&&(this.config=a),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}G.inherits(Ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:G.toJSONObject(this.config),code:this.code,status:this.status}}});const bb=Ue.prototype,xb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{xb[e]={value:e}});Object.defineProperties(Ue,xb);Object.defineProperty(bb,"isAxiosError",{value:!0});Ue.from=(e,n,a,r,o,u)=>{const f=Object.create(bb);return G.toFlatObject(e,f,function(p){return p!==Error.prototype},m=>m!=="isAxiosError"),Ue.call(f,e.message,n,a,r,o),f.cause=e,f.name=e.name,u&&Object.assign(f,u),f};const uj=null;function im(e){return G.isPlainObject(e)||G.isArray(e)}function Sb(e){return G.endsWith(e,"[]")?e.slice(0,-2):e}function kv(e,n,a){return e?e.concat(n).map(function(o,u){return o=Sb(o),!a&&u?"["+o+"]":o}).join(a?".":""):n}function cj(e){return G.isArray(e)&&!e.some(im)}const dj=G.toFlatObject(G,{},null,function(n){return/^is[A-Z]/.test(n)});function Yc(e,n,a){if(!G.isObject(e))throw new TypeError("target must be an object");n=n||new FormData,a=G.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(j,C){return!G.isUndefined(C[j])});const r=a.metaTokens,o=a.visitor||y,u=a.dots,f=a.indexes,p=(a.Blob||typeof Blob<"u"&&Blob)&&G.isSpecCompliantForm(n);if(!G.isFunction(o))throw new TypeError("visitor must be a function");function g(S){if(S===null)return"";if(G.isDate(S))return S.toISOString();if(!p&&G.isBlob(S))throw new Ue("Blob is not supported. Use a Buffer instead.");return G.isArrayBuffer(S)||G.isTypedArray(S)?p&&typeof Blob=="function"?new Blob([S]):Buffer.from(S):S}function y(S,j,C){let k=S;if(S&&!C&&typeof S=="object"){if(G.endsWith(j,"{}"))j=r?j:j.slice(0,-2),S=JSON.stringify(S);else if(G.isArray(S)&&cj(S)||(G.isFileList(S)||G.endsWith(j,"[]"))&&(k=G.toArray(S)))return j=Sb(j),k.forEach(function(_,Z){!(G.isUndefined(_)||_===null)&&n.append(f===!0?kv([j],Z,u):f===null?j:j+"[]",g(_))}),!1}return im(S)?!0:(n.append(kv(C,j,u),g(S)),!1)}const v=[],b=Object.assign(dj,{defaultVisitor:y,convertValue:g,isVisitable:im});function x(S,j){if(!G.isUndefined(S)){if(v.indexOf(S)!==-1)throw Error("Circular reference detected in "+j.join("."));v.push(S),G.forEach(S,function(k,z){(!(G.isUndefined(k)||k===null)&&o.call(n,k,G.isString(z)?z.trim():z,j,b))===!0&&x(k,j?j.concat(z):[z])}),v.pop()}}if(!G.isObject(e))throw new TypeError("data must be an object");return x(e),n}function Mv(e){const n={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return n[r]})}function Gm(e,n){this._pairs=[],e&&Yc(e,this,n)}const Ab=Gm.prototype;Ab.append=function(n,a){this._pairs.push([n,a])};Ab.toString=function(n){const a=n?function(r){return n.call(this,r,Mv)}:Mv;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function fj(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Cb(e,n,a){if(!n)return e;const r=a&&a.encode||fj;G.isFunction(a)&&(a={serialize:a});const o=a&&a.serialize;let u;if(o?u=o(n,a):u=G.isURLSearchParams(n)?n.toString():new Gm(n,a).toString(r),u){const f=e.indexOf("#");f!==-1&&(e=e.slice(0,f)),e+=(e.indexOf("?")===-1?"?":"&")+u}return e}class Dv{constructor(){this.handlers=[]}use(n,a,r){return this.handlers.push({fulfilled:n,rejected:a,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(n){this.handlers[n]&&(this.handlers[n]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(n){G.forEach(this.handlers,function(r){r!==null&&n(r)})}}const Eb={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},hj=typeof URLSearchParams<"u"?URLSearchParams:Gm,mj=typeof FormData<"u"?FormData:null,gj=typeof Blob<"u"?Blob:null,pj={isBrowser:!0,classes:{URLSearchParams:hj,FormData:mj,Blob:gj},protocols:["http","https","file","blob","url","data"]},Ym=typeof window<"u"&&typeof document<"u",rm=typeof navigator=="object"&&navigator||void 0,yj=Ym&&(!rm||["ReactNative","NativeScript","NS"].indexOf(rm.product)<0),vj=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wj=Ym&&window.location.href||"http://localhost",bj=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Ym,hasStandardBrowserEnv:yj,hasStandardBrowserWebWorkerEnv:vj,navigator:rm,origin:wj},Symbol.toStringTag,{value:"Module"})),nn={...bj,...pj};function xj(e,n){return Yc(e,new nn.classes.URLSearchParams,Object.assign({visitor:function(a,r,o,u){return nn.isNode&&G.isBuffer(a)?(this.append(r,a.toString("base64")),!1):u.defaultVisitor.apply(this,arguments)}},n))}function Sj(e){return G.matchAll(/\w+|\[(\w*)]/g,e).map(n=>n[0]==="[]"?"":n[1]||n[0])}function Aj(e){const n={},a=Object.keys(e);let r;const o=a.length;let u;for(r=0;r<o;r++)u=a[r],n[u]=e[u];return n}function jb(e){function n(a,r,o,u){let f=a[u++];if(f==="__proto__")return!0;const m=Number.isFinite(+f),p=u>=a.length;return f=!f&&G.isArray(o)?o.length:f,p?(G.hasOwnProp(o,f)?o[f]=[o[f],r]:o[f]=r,!m):((!o[f]||!G.isObject(o[f]))&&(o[f]=[]),n(a,r,o[f],u)&&G.isArray(o[f])&&(o[f]=Aj(o[f])),!m)}if(G.isFormData(e)&&G.isFunction(e.entries)){const a={};return G.forEachEntry(e,(r,o)=>{n(Sj(r),o,a,0)}),a}return null}function Cj(e,n,a){if(G.isString(e))try{return(n||JSON.parse)(e),G.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(a||JSON.stringify)(e)}const Ro={transitional:Eb,adapter:["xhr","http","fetch"],transformRequest:[function(n,a){const r=a.getContentType()||"",o=r.indexOf("application/json")>-1,u=G.isObject(n);if(u&&G.isHTMLForm(n)&&(n=new FormData(n)),G.isFormData(n))return o?JSON.stringify(jb(n)):n;if(G.isArrayBuffer(n)||G.isBuffer(n)||G.isStream(n)||G.isFile(n)||G.isBlob(n)||G.isReadableStream(n))return n;if(G.isArrayBufferView(n))return n.buffer;if(G.isURLSearchParams(n))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),n.toString();let m;if(u){if(r.indexOf("application/x-www-form-urlencoded")>-1)return xj(n,this.formSerializer).toString();if((m=G.isFileList(n))||r.indexOf("multipart/form-data")>-1){const p=this.env&&this.env.FormData;return Yc(m?{"files[]":n}:n,p&&new p,this.formSerializer)}}return u||o?(a.setContentType("application/json",!1),Cj(n)):n}],transformResponse:[function(n){const a=this.transitional||Ro.transitional,r=a&&a.forcedJSONParsing,o=this.responseType==="json";if(G.isResponse(n)||G.isReadableStream(n))return n;if(n&&G.isString(n)&&(r&&!this.responseType||o)){const f=!(a&&a.silentJSONParsing)&&o;try{return JSON.parse(n)}catch(m){if(f)throw m.name==="SyntaxError"?Ue.from(m,Ue.ERR_BAD_RESPONSE,this,null,this.response):m}}return n}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:nn.classes.FormData,Blob:nn.classes.Blob},validateStatus:function(n){return n>=200&&n<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};G.forEach(["delete","get","head","post","put","patch"],e=>{Ro.headers[e]={}});const Ej=G.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"]),jj=e=>{const n={};let a,r,o;return e&&e.split(`
`).forEach(function(f){o=f.indexOf(":"),a=f.substring(0,o).trim().toLowerCase(),r=f.substring(o+1).trim(),!(!a||n[a]&&Ej[a])&&(a==="set-cookie"?n[a]?n[a].push(r):n[a]=[r]:n[a]=n[a]?n[a]+", "+r:r)}),n},Ov=Symbol("internals");function lo(e){return e&&String(e).trim().toLowerCase()}function uc(e){return e===!1||e==null?e:G.isArray(e)?e.map(uc):String(e)}function Rj(e){const n=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=a.exec(e);)n[r[1]]=r[2];return n}const Nj=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Nh(e,n,a,r,o){if(G.isFunction(r))return r.call(this,n,a);if(o&&(n=a),!!G.isString(n)){if(G.isString(r))return n.indexOf(r)!==-1;if(G.isRegExp(r))return r.test(n)}}function Tj(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(n,a,r)=>a.toUpperCase()+r)}function kj(e,n){const a=G.toCamelCase(" "+n);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+a,{value:function(o,u,f){return this[r].call(this,n,o,u,f)},configurable:!0})})}let wn=class{constructor(n){n&&this.set(n)}set(n,a,r){const o=this;function u(m,p,g){const y=lo(p);if(!y)throw new Error("header name must be a non-empty string");const v=G.findKey(o,y);(!v||o[v]===void 0||g===!0||g===void 0&&o[v]!==!1)&&(o[v||p]=uc(m))}const f=(m,p)=>G.forEach(m,(g,y)=>u(g,y,p));if(G.isPlainObject(n)||n instanceof this.constructor)f(n,a);else if(G.isString(n)&&(n=n.trim())&&!Nj(n))f(jj(n),a);else if(G.isHeaders(n))for(const[m,p]of n.entries())u(p,m,r);else n!=null&&u(a,n,r);return this}get(n,a){if(n=lo(n),n){const r=G.findKey(this,n);if(r){const o=this[r];if(!a)return o;if(a===!0)return Rj(o);if(G.isFunction(a))return a.call(this,o,r);if(G.isRegExp(a))return a.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(n,a){if(n=lo(n),n){const r=G.findKey(this,n);return!!(r&&this[r]!==void 0&&(!a||Nh(this,this[r],r,a)))}return!1}delete(n,a){const r=this;let o=!1;function u(f){if(f=lo(f),f){const m=G.findKey(r,f);m&&(!a||Nh(r,r[m],m,a))&&(delete r[m],o=!0)}}return G.isArray(n)?n.forEach(u):u(n),o}clear(n){const a=Object.keys(this);let r=a.length,o=!1;for(;r--;){const u=a[r];(!n||Nh(this,this[u],u,n,!0))&&(delete this[u],o=!0)}return o}normalize(n){const a=this,r={};return G.forEach(this,(o,u)=>{const f=G.findKey(r,u);if(f){a[f]=uc(o),delete a[u];return}const m=n?Tj(u):String(u).trim();m!==u&&delete a[u],a[m]=uc(o),r[m]=!0}),this}concat(...n){return this.constructor.concat(this,...n)}toJSON(n){const a=Object.create(null);return G.forEach(this,(r,o)=>{r!=null&&r!==!1&&(a[o]=n&&G.isArray(r)?r.join(", "):r)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([n,a])=>n+": "+a).join(`
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(n){return n instanceof this?n:new this(n)}static concat(n,...a){const r=new this(n);return a.forEach(o=>r.set(o)),r}static accessor(n){const r=(this[Ov]=this[Ov]={accessors:{}}).accessors,o=this.prototype;function u(f){const m=lo(f);r[m]||(kj(o,f),r[m]=!0)}return G.isArray(n)?n.forEach(u):u(n),this}};wn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);G.reduceDescriptors(wn.prototype,({value:e},n)=>{let a=n[0].toUpperCase()+n.slice(1);return{get:()=>e,set(r){this[a]=r}}});G.freezeMethods(wn);function Th(e,n){const a=this||Ro,r=n||a,o=wn.from(r.headers);let u=r.data;return G.forEach(e,function(m){u=m.call(a,u,o.normalize(),n?n.status:void 0)}),o.normalize(),u}function Rb(e){return!!(e&&e.__CANCEL__)}function Js(e,n,a){Ue.call(this,e??"canceled",Ue.ERR_CANCELED,n,a),this.name="CanceledError"}G.inherits(Js,Ue,{__CANCEL__:!0});function Nb(e,n,a){const r=a.config.validateStatus;!a.status||!r||r(a.status)?e(a):n(new Ue("Request failed with status code "+a.status,[Ue.ERR_BAD_REQUEST,Ue.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function Mj(e){const n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return n&&n[1]||""}function Dj(e,n){e=e||10;const a=new Array(e),r=new Array(e);let o=0,u=0,f;return n=n!==void 0?n:1e3,function(p){const g=Date.now(),y=r[u];f||(f=g),a[o]=p,r[o]=g;let v=u,b=0;for(;v!==o;)b+=a[v++],v=v%e;if(o=(o+1)%e,o===u&&(u=(u+1)%e),g-f<n)return;const x=y&&g-y;return x?Math.round(b*1e3/x):void 0}}function Oj(e,n){let a=0,r=1e3/n,o,u;const f=(g,y=Date.now())=>{a=y,o=null,u&&(clearTimeout(u),u=null),e.apply(null,g)};return[(...g)=>{const y=Date.now(),v=y-a;v>=r?f(g,y):(o=g,u||(u=setTimeout(()=>{u=null,f(o)},r-v)))},()=>o&&f(o)]}const bc=(e,n,a=3)=>{let r=0;const o=Dj(50,250);return Oj(u=>{const f=u.loaded,m=u.lengthComputable?u.total:void 0,p=f-r,g=o(p),y=f<=m;r=f;const v={loaded:f,total:m,progress:m?f/m:void 0,bytes:p,rate:g||void 0,estimated:g&&m&&y?(m-f)/g:void 0,event:u,lengthComputable:m!=null,[n?"download":"upload"]:!0};e(v)},a)},_v=(e,n)=>{const a=e!=null;return[r=>n[0]({lengthComputable:a,total:e,loaded:r}),n[1]]},Bv=e=>(...n)=>G.asap(()=>e(...n)),_j=nn.hasStandardBrowserEnv?((e,n)=>a=>(a=new URL(a,nn.origin),e.protocol===a.protocol&&e.host===a.host&&(n||e.port===a.port)))(new URL(nn.origin),nn.navigator&&/(msie|trident)/i.test(nn.navigator.userAgent)):()=>!0,Bj=nn.hasStandardBrowserEnv?{write(e,n,a,r,o,u){const f=[e+"="+encodeURIComponent(n)];G.isNumber(a)&&f.push("expires="+new Date(a).toGMTString()),G.isString(r)&&f.push("path="+r),G.isString(o)&&f.push("domain="+o),u===!0&&f.push("secure"),document.cookie=f.join("; ")},read(e){const n=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return n?decodeURIComponent(n[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function zj(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Lj(e,n){return n?e.replace(/\/?\/$/,"")+"/"+n.replace(/^\/+/,""):e}function Tb(e,n,a){let r=!zj(n);return e&&(r||a==!1)?Lj(e,n):n}const zv=e=>e instanceof wn?{...e}:e;function Fr(e,n){n=n||{};const a={};function r(g,y,v,b){return G.isPlainObject(g)&&G.isPlainObject(y)?G.merge.call({caseless:b},g,y):G.isPlainObject(y)?G.merge({},y):G.isArray(y)?y.slice():y}function o(g,y,v,b){if(G.isUndefined(y)){if(!G.isUndefined(g))return r(void 0,g,v,b)}else return r(g,y,v,b)}function u(g,y){if(!G.isUndefined(y))return r(void 0,y)}function f(g,y){if(G.isUndefined(y)){if(!G.isUndefined(g))return r(void 0,g)}else return r(void 0,y)}function m(g,y,v){if(v in n)return r(g,y);if(v in e)return r(void 0,g)}const p={url:u,method:u,data:u,baseURL:f,transformRequest:f,transformResponse:f,paramsSerializer:f,timeout:f,timeoutMessage:f,withCredentials:f,withXSRFToken:f,adapter:f,responseType:f,xsrfCookieName:f,xsrfHeaderName:f,onUploadProgress:f,onDownloadProgress:f,decompress:f,maxContentLength:f,maxBodyLength:f,beforeRedirect:f,transport:f,httpAgent:f,httpsAgent:f,cancelToken:f,socketPath:f,responseEncoding:f,validateStatus:m,headers:(g,y,v)=>o(zv(g),zv(y),v,!0)};return G.forEach(Object.keys(Object.assign({},e,n)),function(y){const v=p[y]||o,b=v(e[y],n[y],y);G.isUndefined(b)&&v!==m||(a[y]=b)}),a}const kb=e=>{const n=Fr({},e);let{data:a,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:u,headers:f,auth:m}=n;n.headers=f=wn.from(f),n.url=Cb(Tb(n.baseURL,n.url,n.allowAbsoluteUrls),e.params,e.paramsSerializer),m&&f.set("Authorization","Basic "+btoa((m.username||"")+":"+(m.password?unescape(encodeURIComponent(m.password)):"")));let p;if(G.isFormData(a)){if(nn.hasStandardBrowserEnv||nn.hasStandardBrowserWebWorkerEnv)f.setContentType(void 0);else if((p=f.getContentType())!==!1){const[g,...y]=p?p.split(";").map(v=>v.trim()).filter(Boolean):[];f.setContentType([g||"multipart/form-data",...y].join("; "))}}if(nn.hasStandardBrowserEnv&&(r&&G.isFunction(r)&&(r=r(n)),r||r!==!1&&_j(n.url))){const g=o&&u&&Bj.read(u);g&&f.set(o,g)}return n},Uj=typeof XMLHttpRequest<"u",Hj=Uj&&function(e){return new Promise(function(a,r){const o=kb(e);let u=o.data;const f=wn.from(o.headers).normalize();let{responseType:m,onUploadProgress:p,onDownloadProgress:g}=o,y,v,b,x,S;function j(){x&&x(),S&&S(),o.cancelToken&&o.cancelToken.unsubscribe(y),o.signal&&o.signal.removeEventListener("abort",y)}let C=new XMLHttpRequest;C.open(o.method.toUpperCase(),o.url,!0),C.timeout=o.timeout;function k(){if(!C)return;const _=wn.from("getAllResponseHeaders"in C&&C.getAllResponseHeaders()),R={data:!m||m==="text"||m==="json"?C.responseText:C.response,status:C.status,statusText:C.statusText,headers:_,config:e,request:C};Nb(function(ue){a(ue),j()},function(ue){r(ue),j()},R),C=null}"onloadend"in C?C.onloadend=k:C.onreadystatechange=function(){!C||C.readyState!==4||C.status===0&&!(C.responseURL&&C.responseURL.indexOf("file:")===0)||setTimeout(k)},C.onabort=function(){C&&(r(new Ue("Request aborted",Ue.ECONNABORTED,e,C)),C=null)},C.onerror=function(){r(new Ue("Network Error",Ue.ERR_NETWORK,e,C)),C=null},C.ontimeout=function(){let Z=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const R=o.transitional||Eb;o.timeoutErrorMessage&&(Z=o.timeoutErrorMessage),r(new Ue(Z,R.clarifyTimeoutError?Ue.ETIMEDOUT:Ue.ECONNABORTED,e,C)),C=null},u===void 0&&f.setContentType(null),"setRequestHeader"in C&&G.forEach(f.toJSON(),function(Z,R){C.setRequestHeader(R,Z)}),G.isUndefined(o.withCredentials)||(C.withCredentials=!!o.withCredentials),m&&m!=="json"&&(C.responseType=o.responseType),g&&([b,S]=bc(g,!0),C.addEventListener("progress",b)),p&&C.upload&&([v,x]=bc(p),C.upload.addEventListener("progress",v),C.upload.addEventListener("loadend",x)),(o.cancelToken||o.signal)&&(y=_=>{C&&(r(!_||_.type?new Js(null,e,C):_),C.abort(),C=null)},o.cancelToken&&o.cancelToken.subscribe(y),o.signal&&(o.signal.aborted?y():o.signal.addEventListener("abort",y)));const z=Mj(o.url);if(z&&nn.protocols.indexOf(z)===-1){r(new Ue("Unsupported protocol "+z+":",Ue.ERR_BAD_REQUEST,e));return}C.send(u||null)})},Fj=(e,n)=>{const{length:a}=e=e?e.filter(Boolean):[];if(n||a){let r=new AbortController,o;const u=function(g){if(!o){o=!0,m();const y=g instanceof Error?g:this.reason;r.abort(y instanceof Ue?y:new Js(y instanceof Error?y.message:y))}};let f=n&&setTimeout(()=>{f=null,u(new Ue(`timeout ${n} of ms exceeded`,Ue.ETIMEDOUT))},n);const m=()=>{e&&(f&&clearTimeout(f),f=null,e.forEach(g=>{g.unsubscribe?g.unsubscribe(u):g.removeEventListener("abort",u)}),e=null)};e.forEach(g=>g.addEventListener("abort",u));const{signal:p}=r;return p.unsubscribe=()=>G.asap(m),p}},Pj=function*(e,n){let a=e.byteLength;if(a<n){yield e;return}let r=0,o;for(;r<a;)o=r+n,yield e.slice(r,o),r=o},Vj=async function*(e,n){for await(const a of Ij(e))yield*Pj(a,n)},Ij=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const n=e.getReader();try{for(;;){const{done:a,value:r}=await n.read();if(a)break;yield r}}finally{await n.cancel()}},Lv=(e,n,a,r)=>{const o=Vj(e,n);let u=0,f,m=p=>{f||(f=!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 v=y.byteLength;if(a){let b=u+=v;a(b)}p.enqueue(new Uint8Array(y))}catch(g){throw m(g),g}},cancel(p){return m(p),o.return()}},{highWaterMark:2})},$c=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Mb=$c&&typeof ReadableStream=="function",qj=$c&&(typeof TextEncoder=="function"?(e=>n=>e.encode(n))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Db=(e,...n)=>{try{return!!e(...n)}catch{return!1}},Qj=Mb&&Db(()=>{let e=!1;const n=new Request(nn.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!n}),Uv=64*1024,sm=Mb&&Db(()=>G.isReadableStream(new Response("").body)),xc={stream:sm&&(e=>e.body)};$c&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(n=>{!xc[n]&&(xc[n]=G.isFunction(e[n])?a=>a[n]():(a,r)=>{throw new Ue(`Response type '${n}' is not supported`,Ue.ERR_NOT_SUPPORT,r)})})})(new Response);const Gj=async e=>{if(e==null)return 0;if(G.isBlob(e))return e.size;if(G.isSpecCompliantForm(e))return(await new Request(nn.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(G.isArrayBufferView(e)||G.isArrayBuffer(e))return e.byteLength;if(G.isURLSearchParams(e)&&(e=e+""),G.isString(e))return(await qj(e)).byteLength},Yj=async(e,n)=>{const a=G.toFiniteNumber(e.getContentLength());return a??Gj(n)},$j=$c&&(async e=>{let{url:n,method:a,data:r,signal:o,cancelToken:u,timeout:f,onDownloadProgress:m,onUploadProgress:p,responseType:g,headers:y,withCredentials:v="same-origin",fetchOptions:b}=kb(e);g=g?(g+"").toLowerCase():"text";let x=Fj([o,u&&u.toAbortSignal()],f),S;const j=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let C;try{if(p&&Qj&&a!=="get"&&a!=="head"&&(C=await Yj(y,r))!==0){let R=new Request(n,{method:"POST",body:r,duplex:"half"}),W;if(G.isFormData(r)&&(W=R.headers.get("content-type"))&&y.setContentType(W),R.body){const[ue,se]=_v(C,bc(Bv(p)));r=Lv(R.body,Uv,ue,se)}}G.isString(v)||(v=v?"include":"omit");const k="credentials"in Request.prototype;S=new Request(n,{...b,signal:x,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:r,duplex:"half",credentials:k?v:void 0});let z=await fetch(S);const _=sm&&(g==="stream"||g==="response");if(sm&&(m||_&&j)){const R={};["status","statusText","headers"].forEach(Q=>{R[Q]=z[Q]});const W=G.toFiniteNumber(z.headers.get("content-length")),[ue,se]=m&&_v(W,bc(Bv(m),!0))||[];z=new Response(Lv(z.body,Uv,ue,()=>{se&&se(),j&&j()}),R)}g=g||"text";let Z=await xc[G.findKey(xc,g)||"text"](z,e);return!_&&j&&j(),await new Promise((R,W)=>{Nb(R,W,{data:Z,headers:wn.from(z.headers),status:z.status,statusText:z.statusText,config:e,request:S})})}catch(k){throw j&&j(),k&&k.name==="TypeError"&&/fetch/i.test(k.message)?Object.assign(new Ue("Network Error",Ue.ERR_NETWORK,e,S),{cause:k.cause||k}):Ue.from(k,k&&k.code,e,S)}}),lm={http:uj,xhr:Hj,fetch:$j};G.forEach(lm,(e,n)=>{if(e){try{Object.defineProperty(e,"name",{value:n})}catch{}Object.defineProperty(e,"adapterName",{value:n})}});const Hv=e=>`- ${e}`,Xj=e=>G.isFunction(e)||e===null||e===!1,Ob={getAdapter:e=>{e=G.isArray(e)?e:[e];const{length:n}=e;let a,r;const o={};for(let u=0;u<n;u++){a=e[u];let f;if(r=a,!Xj(a)&&(r=lm[(f=String(a)).toLowerCase()],r===void 0))throw new Ue(`Unknown adapter '${f}'`);if(r)break;o[f||"#"+u]=r}if(!r){const u=Object.entries(o).map(([m,p])=>`adapter ${m} `+(p===!1?"is not supported by the environment":"is not available in the build"));let f=n?u.length>1?`since :
`+u.map(Hv).join(`
`):" "+Hv(u[0]):"as no adapter specified";throw new Ue("There is no suitable adapter to dispatch the request "+f,"ERR_NOT_SUPPORT")}return r},adapters:lm};function kh(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Js(null,e)}function Fv(e){return kh(e),e.headers=wn.from(e.headers),e.data=Th.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ob.getAdapter(e.adapter||Ro.adapter)(e).then(function(r){return kh(e),r.data=Th.call(e,e.transformResponse,r),r.headers=wn.from(r.headers),r},function(r){return Rb(r)||(kh(e),r&&r.response&&(r.response.data=Th.call(e,e.transformResponse,r.response),r.response.headers=wn.from(r.response.headers))),Promise.reject(r)})}const _b="1.8.4",Xc={};["object","boolean","number","function","string","symbol"].forEach((e,n)=>{Xc[e]=function(r){return typeof r===e||"a"+(n<1?"n ":" ")+e}});const Pv={};Xc.transitional=function(n,a,r){function o(u,f){return"[Axios v"+_b+"] Transitional option '"+u+"'"+f+(r?". "+r:"")}return(u,f,m)=>{if(n===!1)throw new Ue(o(f," has been removed"+(a?" in "+a:"")),Ue.ERR_DEPRECATED);return a&&!Pv[f]&&(Pv[f]=!0,console.warn(o(f," has been deprecated since v"+a+" and will be removed in the near future"))),n?n(u,f,m):!0}};Xc.spelling=function(n){return(a,r)=>(console.warn(`${r} is likely a misspelling of ${n}`),!0)};function Kj(e,n,a){if(typeof e!="object")throw new Ue("options must be an object",Ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const u=r[o],f=n[u];if(f){const m=e[u],p=m===void 0||f(m,u,e);if(p!==!0)throw new Ue("option "+u+" must be "+p,Ue.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new Ue("Unknown option "+u,Ue.ERR_BAD_OPTION)}}const cc={assertOptions:Kj,validators:Xc},Aa=cc.validators;let Ur=class{constructor(n){this.defaults=n,this.interceptors={request:new Dv,response:new Dv}}async request(n,a){try{return await this._request(n,a)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const u=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?u&&!String(r.stack).endsWith(u.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+u):r.stack=u}catch{}}throw r}}_request(n,a){typeof n=="string"?(a=a||{},a.url=n):a=n||{},a=Fr(this.defaults,a);const{transitional:r,paramsSerializer:o,headers:u}=a;r!==void 0&&cc.assertOptions(r,{silentJSONParsing:Aa.transitional(Aa.boolean),forcedJSONParsing:Aa.transitional(Aa.boolean),clarifyTimeoutError:Aa.transitional(Aa.boolean)},!1),o!=null&&(G.isFunction(o)?a.paramsSerializer={serialize:o}:cc.assertOptions(o,{encode:Aa.function,serialize:Aa.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),cc.assertOptions(a,{baseUrl:Aa.spelling("baseURL"),withXsrfToken:Aa.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let f=u&&G.merge(u.common,u[a.method]);u&&G.forEach(["delete","get","head","post","put","patch","common"],S=>{delete u[S]}),a.headers=wn.concat(f,u);const m=[];let p=!0;this.interceptors.request.forEach(function(j){typeof j.runWhen=="function"&&j.runWhen(a)===!1||(p=p&&j.synchronous,m.unshift(j.fulfilled,j.rejected))});const g=[];this.interceptors.response.forEach(function(j){g.push(j.fulfilled,j.rejected)});let y,v=0,b;if(!p){const S=[Fv.bind(this),void 0];for(S.unshift.apply(S,m),S.push.apply(S,g),b=S.length,y=Promise.resolve(a);v<b;)y=y.then(S[v++],S[v++]);return y}b=m.length;let x=a;for(v=0;v<b;){const S=m[v++],j=m[v++];try{x=S(x)}catch(C){j.call(this,C);break}}try{y=Fv.call(this,x)}catch(S){return Promise.reject(S)}for(v=0,b=g.length;v<b;)y=y.then(g[v++],g[v++]);return y}getUri(n){n=Fr(this.defaults,n);const a=Tb(n.baseURL,n.url,n.allowAbsoluteUrls);return Cb(a,n.params,n.paramsSerializer)}};G.forEach(["delete","get","head","options"],function(n){Ur.prototype[n]=function(a,r){return this.request(Fr(r||{},{method:n,url:a,data:(r||{}).data}))}});G.forEach(["post","put","patch"],function(n){function a(r){return function(u,f,m){return this.request(Fr(m||{},{method:n,headers:r?{"Content-Type":"multipart/form-data"}:{},url:u,data:f}))}}Ur.prototype[n]=a(),Ur.prototype[n+"Form"]=a(!0)});let Zj=class Bb{constructor(n){if(typeof n!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(u){a=u});const r=this;this.promise.then(o=>{if(!r._listeners)return;let u=r._listeners.length;for(;u-- >0;)r._listeners[u](o);r._listeners=null}),this.promise.then=o=>{let u;const f=new Promise(m=>{r.subscribe(m),u=m}).then(o);return f.cancel=function(){r.unsubscribe(u)},f},n(function(u,f,m){r.reason||(r.reason=new Js(u,f,m),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(n){if(this.reason){n(this.reason);return}this._listeners?this._listeners.push(n):this._listeners=[n]}unsubscribe(n){if(!this._listeners)return;const a=this._listeners.indexOf(n);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const n=new AbortController,a=r=>{n.abort(r)};return this.subscribe(a),n.signal.unsubscribe=()=>this.unsubscribe(a),n.signal}static source(){let n;return{token:new Bb(function(o){n=o}),cancel:n}}};function Jj(e){return function(a){return e.apply(null,a)}}function Wj(e){return G.isObject(e)&&e.isAxiosError===!0}const om={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(om).forEach(([e,n])=>{om[n]=e});function zb(e){const n=new Ur(e),a=hb(Ur.prototype.request,n);return G.extend(a,Ur.prototype,n,{allOwnKeys:!0}),G.extend(a,n,null,{allOwnKeys:!0}),a.create=function(o){return zb(Fr(e,o))},a}const kt=zb(Ro);kt.Axios=Ur;kt.CanceledError=Js;kt.CancelToken=Zj;kt.isCancel=Rb;kt.VERSION=_b;kt.toFormData=Yc;kt.AxiosError=Ue;kt.Cancel=kt.CanceledError;kt.all=function(n){return Promise.all(n)};kt.spread=Jj;kt.isAxiosError=Wj;kt.mergeConfig=Fr;kt.AxiosHeaders=wn;kt.formToJSON=e=>jb(G.isHTMLForm(e)?new FormData(e):e);kt.getAdapter=Ob.getAdapter;kt.HttpStatusCode=om;kt.default=kt;const{Axios:bk,AxiosError:xk,CanceledError:Sk,isCancel:Ak,CancelToken:Ck,VERSION:Ek,all:jk,Cancel:Rk,isAxiosError:Nk,spread:Tk,toFormData:kk,AxiosHeaders:Mk,HttpStatusCode:Dk,formToJSON:Ok,getAdapter:_k,mergeConfig:Bk}=kt,ut=kt.create({headers:{"Content-type":"application/json"}});ut.interceptors.request.use(e=>{const n=localStorage.getItem("token");return n&&(e.headers.Authorization=`Bearer ${n}`),e});const e4={getAccounts(e){return ut.get(ht.accounts.list,{params:e})},getAccountById(e){return ut.get(`${ht.accounts.detail}/${e}`)},createAccount(e){return ut.post(ht.accounts.create,e)},updateAccount(e,n){return ut.put(`${ht.accounts.update}/${e}`,n)},deleteAccount(e){return ut.delete(`${ht.accounts.delete}/${e}`)}},$m={registerDoctor(e){return ut.post(ht.auth.registerDoctor,e)},registerPatient(e){return ut.post(ht.auth.registerPatient,e)},login(e){return ut.post(ht.auth.login,e)},logout(){return ut.post(ht.auth.logout)},refreshToken(){return ut.post(ht.auth.refreshToken)}};var Mh={exports:{}},Dh,Vv;function t4(){if(Vv)return Dh;Vv=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Dh=e,Dh}var Oh,Iv;function n4(){if(Iv)return Oh;Iv=1;var e=t4();function n(){}function a(){}return a.resetWarningCache=n,Oh=function(){function r(f,m,p,g,y,v){if(v!==e){var b=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 b.name="Invariant Violation",b}}r.isRequired=r;function o(){return r}var u={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:n};return u.PropTypes=u,u},Oh}var qv;function a4(){return qv||(qv=1,Mh.exports=n4()()),Mh.exports}var i4=a4();const Be=Bc(i4),Lb=E.createContext(),Ub=({children:e})=>{const[n,a]=E.useState(null);E.useEffect(()=>{const u=localStorage.getItem("user");u&&a(JSON.parse(u))},[]);const r=u=>{a(u),localStorage.setItem("user",JSON.stringify(u))},o=()=>{a(null),localStorage.removeItem("user"),localStorage.removeItem("token")};return c.jsx(Lb.Provider,{value:{user:n,login:r,logout:o},children:e})};Ub.propTypes={children:Be.node};const Wi=()=>E.useContext(Lb),Hb=({onClose:e})=>{const[n,a]=E.useState(""),[r,o]=E.useState(""),[u,f]=E.useState(!1),m=dn(),{login:p}=Wi(),g=async y=>{var v,b;y.preventDefault(),f(!0);try{const x=await $m.login({email:n,password:r}),{token:S,data:j}=x.data;localStorage.setItem("token",S);const k=(await e4.getAccountById(j.id)).data;localStorage.setItem("user",JSON.stringify(k)),p(k),CE(()=>Promise.resolve().then(()=>X6),[]).then(z=>{z.default.fire({icon:"success",title:"Login berhasil!",text:"Membuka halaman utama...",showConfirmButton:!1,timer:2e3}).then(()=>{k.data.role==="doctor"?m("/dokter"):k.data.role==="patient"&&m("/")})}),e&&e(),k.data.role==="doctor"?m("/dokter"):k.data.role==="patient"&&m("/"),a(""),o("")}catch(x){alert("Login gagal: "+(((b=(v=x.response)==null?void 0:v.data)==null?void 0:b.message)||x.message))}finally{f(!1)}};return c.jsxs("form",{className:"space-y-4",onSubmit:g,children:[c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-[14px] font-bold",children:"Email"}),c.jsx("input",{type:"email",placeholder:"Masukkan email kamu",value:n,onChange:y=>a(y.target.value),required:!0,className:"w-full p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"})]}),c.jsxs("div",{className:"space-y-2",children:[c.jsx("label",{className:"text-[14px] font-bold",children:"Kata Sandi"}),c.jsx("input",{type:"password",placeholder:"Masukkan kata sandi kamu",value:r,onChange:y=>o(y.target.value),required:!0,className:"w-full p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"})]}),c.jsx("button",{type:"submit",disabled:u,className:"w-full bg-[#12476B] text-white font-bold py-3 rounded-full cursor-pointer",children:u?"Memproses...":"Masuk"})]})};Hb.propTypes={onClose:Be.func.isRequired};const Fb=({onOpenDoctorForm:e})=>{const[n,a]=E.useState({firstName:"",lastName:"",email:"",phone:"",birthDate:"",password:"",role:"",confirmPassword:"",agree:!1}),[r,o]=E.useState(!1),u=dn(),f=p=>{const{name:g,value:y,type:v,checked:b}=p.target,x=v==="checkbox"?b:y;a(S=>({...S,[g]:x}))},m=async p=>{if(p.preventDefault(),n.password!==n.confirmPassword){alert("Kata sandi tidak cocok!");return}if(!n.agree){alert("Harap setujui persyaratan penggunaan.");return}const g=n.email.split("@")[1];if(g!=="pasien.myskin.ac.id"&&g!=="dokter.myskin.ac.id"){alert("Email harus menggunakan domain yang valid!");return}const v={name:`${n.firstName} ${n.lastName}`.trim(),email:n.email,phone:n.phone,dob:n.birthDate,password:n.password,role:"patient",password_confirmation:n.confirmPassword};try{o(!0),await $m.registerPatient(v),alert("Pendaftaran berhasil!"),a({firstName:"",lastName:"",email:"",phone:"",birthDate:"",role:"",password:"",confirmPassword:"",agree:!1}),u("/")}catch(b){alert("Pendaftaran gagal. keterangan: "+b.message)}finally{o(!1)}};return c.jsxs("form",{onSubmit:m,className:"space-y-4",children:[c.jsxs("div",{className:"flex gap-4",children:[c.jsx("input",{type:"text",name:"firstName",placeholder:"Nama depan kamu",value:n.firstName,onChange:f,className:"w-1/2 p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"}),c.jsx("input",{type:"text",name:"lastName",placeholder:"Nama belakang kamu",value:n.lastName,onChange:f,className:"w-1/2 p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"})]}),c.jsxs("div",{className:"flex gap-4",children:[c.jsx("input",{type:"email",name:"email",placeholder:"Masukkan email kamu",value:n.email,onChange:f,className:"w-1/2 p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"}),c.jsx("input",{type:"tel",name:"phone",placeholder:"Masukkan nomor telepon kamu",value:n.phone,onChange:f,className:"w-1/2 p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"})]}),c.jsx("input",{type:"date",name:"birthDate",value:n.birthDate,onChange:f,className:"w-full p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"}),c.jsxs("div",{className:"flex gap-4",children:[c.jsx("input",{type:"password",name:"password",placeholder:"Masukkan kata sandi",value:n.password,onChange:f,className:"w-1/2 p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"}),c.jsx("input",{type:"password",name:"confirmPassword",placeholder:"Masukkan kembali kata sandi",value:n.confirmPassword,onChange:f,className:"w-1/2 p-3 border rounded-[16px] mt-1 border-[#B8B8B8] text-black"})]}),c.jsxs("div",{className:"flex items-center mb-4 text-[#646464]",children:[c.jsx("input",{type:"checkbox",name:"agree",checked:n.agree,onChange:f,className:"mr-2"}),c.jsx("label",{children:"Saya setuju dengan persyaratan penggunaan"})]}),c.jsx("button",{type:"submit",disabled:r,className:"w-full bg-[#12476B] text-white font-bold py-3 rounded-full cursor-pointer",children:r?"Memproses...":"Daftar"}),c.jsx("p",{className:"text-center text-gray-400",children:"Atau"}),c.jsx("button",{type:"button",onClick:e,className:"w-full border border-[#12476B] text-[#12476B] font-bold py-3 rounded-full cursor-pointer",children:"Daftar sebagai Dokter"})]})};Fb.propTypes={onClose:Be.func.isRequired,onOpenDoctorForm:Be.func.isRequired};const r4="/assets/doctor-B0xZjIfR.jpeg",Xm=({onClose:e,showLogin:n,onOpenDoctorForm:a})=>{const[r,o]=E.useState(n||"login");return c.jsxs("div",{className:"relative bg-white rounded-lg shadow-lg w-[1200px] flex flex-col lg:flex-row overflow-hidden p-5 max-h-[90%] mx-4 lg:mx-0",children:[c.jsx("div",{className:"w-full lg:w-1/2",children:c.jsx("img",{src:r4,alt:"Doctor",className:"w-full h-full object-cover rounded-lg"})}),c.jsxs("div",{className:"w-full lg:w-1/2 p-8 lg:relative overflow-auto",children:[c.jsx("button",{onClick:e,className:"absolute top-2 right-2 lg:top-0 lg:right-0 bg-[#12476B] text-white px-3 py-1 rounded-full cursor-pointer",children:"x"}),c.jsxs("h2",{className:"text-[26px] font-bold text-center",children:[" ",r==="login"?"Masuk":"Daftar"]}),c.jsx("p",{className:"text-[#646464] text-center mb-6",children:r==="login"?"Masuk untuk tetap terhubung":"Buat akun Anda"}),r==="login"?c.jsx(Hb,{onClose:e}):c.jsx(Fb,{onOpenDoctorForm:a}),c.jsxs("p",{className:"text-[12px] text-[#646464] text-center mt-4",children:["Email harus mengandung salah satu dari domain berikut:",c.jsx("span",{className:"text-[#2699E8]",children:" @pasien.myskin.ac.id "}),"untuk ",r==="login"?"masuk":"mendaftar"," sebagai pasien, atau",c.jsx("span",{className:"text-[#2699E8]",children:" @dokter.myskin.ac.id "}),"untuk ",r==="login"?"masuk":"mendaftar"," sebagai dokter."]}),r==="login"?c.jsxs("p",{className:"text-[12px] text-center text-[#646464] mt-2",children:["Belum memiliki akun?"," ",c.jsx("button",{href:"#",className:"text-[#2699E8] inline cursor-pointer",onClick:()=>o("register"),children:"Klik disini untuk daftar"})]}):c.jsxs("p",{className:"text-[12px] text-center text-[#646464] mt-2",children:["Sudah memiliki akun?"," ",c.jsx("button",{href:"#",className:"text-[#2699E8] inline cursor-pointer",onClick:()=>o("login"),children:"Masuk"})]})]})]})};Xm.propTypes={onClose:Be.func.isRequired,showLogin:Be.string,onOpenDoctorForm:Be.func};const s4="/assets/doctorImage-DY3J_gjP.jpg",Pb=({onNext:e,onDotClick:n})=>{const[a,r]=E.useState({name:"",email:"",phone:"",password:"",confirmPassword:"",practiceAddress:"",agree:!1}),o=f=>{const{name:m,value:p,type:g,checked:y}=f.target,v=g==="checkbox"?y:p;r(b=>({...b,[m]:v}))},u=f=>{if(f.preventDefault(),a.password.length<8){alert("Kata sandi harus terdiri dari minimal 8 karakter!");return}if(a.password!==a.confirmPassword){alert("Kata sandi tidak cocok!");return}if(a.email.split("@")[1]!=="dokter.myskin.ac.id"){alert("Email harus dengan domain dokter.myskin.ac.id");return}e({name:a.name,email:a.email,phone:a.phone,dob:null,password:a.password,role:"doctor",password_confirmation:a.confirmPassword,practice_address:a.practiceAddress})};return c.jsx("div",{className:"max-w-md mx-auto px-2 py-4",children:c.jsxs("form",{className:"space-y-4",onSubmit:u,children:[c.jsxs("div",{children:[c.jsx("label",{className:"block font-semibold mb-1",children:"Nama Lengkap"}),c.jsx("input",{type:"text",name:"name",value:a.name,onChange:o,placeholder:"Nama lengkap kamu",required:!0,className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block font-semibold mb-1",children:"Email"}),c.jsx("input",{type:"email",name:"email",value:a.email,onChange:o,placeholder:"Masukkan email kamu",required:!0,className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block font-semibold mb-1",children:"No. Telepon"}),c.jsx("input",{type:"tel",name:"phone",value:a.phone,onChange:o,placeholder:"Masukkan nomor telepon kamu",required:!0,className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block font-semibold mb-1",children:"Kata Sandi"}),c.jsx("input",{type:"password",name:"password",value:a.password,onChange:o,placeholder:"Masukkan kata sandi",required:!0,className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block font-semibold mb-1",children:"Konfirmasi Kata Sandi"}),c.jsx("input",{type:"password",name:"confirmPassword",value:a.confirmPassword,onChange:o,placeholder:"Masukkan kembali kata sandi",required:!0,className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block font-semibold mb-1",children:"Alamat Praktik"}),c.jsx("input",{type:"text",name:"practiceAddress",value:a.practiceAddress,onChange:o,placeholder:"Masukkan alamat praktik",required:!0,className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),c.jsx("button",{type:"submit",className:"w-full bg-[#1E3A5F] text-white font-semibold py-2 rounded-full hover:bg-[#1A2F4A] transition",children:"Next"}),c.jsxs("div",{className:"flex justify-center mt-4 space-x-2",children:[c.jsx("span",{className:"w-3 h-3 rounded-full bg-[#1E3A5F]"}),c.jsx("span",{className:"w-3 h-3 rounded-full bg-gray-300 cursor-pointer",onClick:n})]})]})})};Pb.propTypes={onNext:Be.func.isRequired,onDotClick:Be.func.isRequired};const Vb=({onSubmit:e,onDotClick:n})=>{const[a,r]=E.useState({specialization:"",license_number:"",license_file:null,diploma_file:null,certification_file:null,current_institution:"",work_history:"",publications:"",agree:!1}),[o,u]=E.useState({license_file:null,diploma_file:null,certification_file:null}),f=g=>{const{name:y,value:v,type:b,checked:x,files:S}=g.target;if(b==="checkbox")r(j=>({...j,[y]:x}));else if(b==="file"){const j=S[0];if(j){if(!["application/pdf","image/jpeg","image/png"].includes(j.type)){alert("File harus berupa PDF, JPG, atau PNG.");return}u(k=>({...k,[y]:j}))}}else r(j=>({...j,[y]:v}))},m=g=>{o[g]?(r(y=>({...y,[g]:o[g]})),alert(`File untuk ${g} berhasil diunggah.`)):alert("Silakan pilih file terlebih dahulu.")},p=g=>{if(g.preventDefault(),!a.agree){alert("Harap menyetujui persyaratan penggunaan.");return}const y=new FormData;y.append("specialization",a.specialization),y.append("license_number",a.license_number),y.append("license_file",a.license_file),y.append("diploma_file",a.diploma_file),a.certification_file&&y.append("certification_file",a.certification_file),y.append("current_institution",a.current_institution),y.append("work_history",a.work_history),y.append("publications",a.publications||""),e(a),alert("Pendaftaran berhasil!"),r({specialization:"",license_number:"",license_file:null,diploma_file:null,certification_file:null,current_institution:"",work_history:"",publications:"",agree:!1})};return c.jsx("div",{className:"max-w-md mx-auto px-2 py-4",children:c.jsxs("form",{className:"space-y-4",onSubmit:p,children:[c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block font-semibold mb-1",children:"Spesialisasi"}),c.jsxs("select",{name:"specialization",value:a.specialization,onChange:f,className:"w-full rounded-full border border-gray-300 px-4 py-2 bg-white focus:outline-none focus:ring-2 focus:ring-blue-500",required:!0,children:[c.jsx("option",{value:"",children:"Pilih spesialisasi kamu"}),c.jsx("option",{value:"kulit",children:"Dokter Spesialis Kulit"})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block font-semibold mb-1",children:"Nomor Registrasi Dokter"}),c.jsx("input",{type:"text",name:"license_number",value:a.license_number,onChange:f,placeholder:"Masukkan nomor registrasi dokter",className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500",required:!0})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block font-semibold mb-1",children:"Surat Tanda Registrasi"}),c.jsxs("div",{className:"flex items-center rounded-full border border-gray-300 overflow-hidden",children:[c.jsx("input",{type:"file",name:"license_file",onChange:f,className:"flex-1 px-4 py-2 text-sm",required:!0}),c.jsx("button",{type:"button",onClick:()=>m("license_file"),className:"mx-2 px-2 py-1 border-r border-sky-900 bg-sky-900 text-sm font-normal text-white rounded-lg",children:"Upload"})]}),a.license_file&&c.jsxs("p",{className:"text-green-600 text-sm mt-1",children:["✅ ",a.license_file.name," berhasil diunggah"]})]}),c.jsxs("div",{className:"w-full flex items-center space-x-2",children:[c.jsxs("div",{className:"w-1/2",children:[c.jsx("label",{className:"font-semibold mb-1",children:"Ijazah Kedokteran"}),c.jsxs("div",{className:"flex items-center rounded-full border border-gray-300 overflow-hidden",children:[c.jsx("input",{type:"file",name:"diploma_file",onChange:f,className:"w-2/3 flex-1 px-4 py-2 text-sm",required:!0}),c.jsx("button",{type:"button",onClick:()=>m("diploma_file"),className:"mx-2 px-2 py-1 border-r border-sky-900 bg-sky-900 text-sm font-normal text-white rounded-lg",children:"Upload"})]}),a.diploma_file&&c.jsxs("p",{className:"text-green-600 text-sm mt-1",children:["✅ ",a.diploma_file.name," berhasil diunggah"]})]}),c.jsxs("div",{className:"w-1/2",children:[c.jsx("label",{className:"font-semibold mb-1",children:"Sertifikat Keahlian (opsional)"}),c.jsxs("div",{className:"flex items-center rounded-full border border-gray-300 overflow-hidden",children:[c.jsx("input",{type:"file",name:"certification_file",onChange:f,className:"w-2/3 flex-1 px-4 py-2 text-sm"}),c.jsx("button",{type:"button",onClick:()=>m("certification_file"),className:"mx-2 px-2 py-1 border-r border-sky-900 bg-sky-900 text-sm font-normal text-white rounded-lg",children:"Upload"})]}),a.certification_file&&c.jsxs("p",{className:"text-green-600 text-sm mt-1",children:["✅ ",a.certification_file.name," berhasil diunggah"]})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"block font-semibold mb-1",children:"Institusi Kerja"}),c.jsx("input",{type:"text",name:"current_institution",value:a.current_institution,onChange:f,placeholder:"Masukkan institusi",className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500",required:!0})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block font-semibold mb-1",children:"Pengalaman Kerja"}),c.jsx("input",{type:"text",name:"work_history",value:a.work_history,onChange:f,placeholder:"Masukkan pengalaman kerja",className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500",required:!0})]})]}),c.jsxs("div",{children:[c.jsx("label",{className:"block font-semibold mb-1",children:"Publikasi Ilmiah (opsional)"}),c.jsx("input",{type:"text",name:"publications",value:a.publications,onChange:f,placeholder:"Masukkan publikasi ilmiah",className:"w-full rounded-full border border-gray-300 px-4 py-2 focus:outline-none focus:ring-2 focus:ring-blue-500"})]}),c.jsxs("div",{className:"flex items-center space-x-2",children:[c.jsx("input",{type:"checkbox",id:"terms",name:"agree",checked:a.agree,onChange:f,className:"accent-[#1E3A5F]",required:!0}),c.jsx("label",{htmlFor:"terms",className:"text-sm",children:"Saya setuju dengan persyaratan penggunaan"})]}),c.jsx("button",{type:"submit",className:"w-full bg-[#1E3A5F] text-white font-semibold py-2 rounded-full hover:bg-[#1A2F4A] transition",children:"Daftar"}),c.jsxs("div",{className:"flex justify-center mt-4 space-x-2",children:[c.jsx("span",{className:"w-3 h-3 rounded-full bg-gray-300 cursor-pointer",onClick:n}),c.jsx("span",{className:"w-3 h-3 rounded-full bg-[#1E3A5F]"})]})]})})};Vb.propTypes={onSubmit:Be.func.isRequired,onDotClick:Be.func.isRequired};const Ib=({onClose:e,onBackToLogin:n})=>{const[a,r]=E.useState(1),[o,u]=E.useState({}),f=p=>{u(g=>({...g,...p})),r(2)},m=async p=>{const g=new FormData;g.append("name",o.name),g.append("email",o.email),g.append("phone",o.phone),g.append("password",o.password),g.append("password_confirmation",o.password_confirmation),g.append("practice_address",o.practice_address),g.append("specialization",p.specialist),g.append("license_number",p.registrationNumber),g.append("license_file",p.licenseFile),g.append("diploma_file",p.medicalDegreeFile),g.append("certification_file",p.certificationFile),g.append("current_institution",p.currentInstitution),g.append("work_history",p.workHistory),g.append("publications",p.publications||"");try{await $m.registerDoctor(g),alert("Pendaftaran berhasil!"),e()}catch(y){console.error("Gagal mendaftar:",y),alert("Terjadi kesalahan saat mendaftar. Silakan coba lagi.")}};return c.jsxs("div",{className:"relative bg-white rounded-lg shadow-lg w-[1200px] flex flex-col lg:flex-row overflow-hidden p-5 max-h-[90%] mx-4 lg:mx-0",children:[c.jsx("div",{className:"w-full lg:w-1/2",children:c.jsx("img",{src:s4,alt:"Doctor",className:"w-full h-full object-cover rounded-lg"})}),c.jsxs("div",{className:"w-full lg:w-1/2 p-8 lg:relative overflow-auto",children:[c.jsx("button",{onClick:e,className:"absolute top-2 right-2 lg:top-0 lg:right-0 bg-[#12476B] text-white px-3 py-1 rounded-full cursor-pointer",children:"x"}),c.jsx("h2",{className:"text-[26px] font-bold text-center",children:a===1?"Daftar Dokter":"Profil Dokter Spesialis"}),c.jsx("p",{className:"text-[#646464] text-center mb-6",children:a===1?"Buat akun Dokter Anda":"Detail Profesional dan Dokumen Pendukung"}),c.jsxs("div",{children:[a===1&&c.jsx(Pb,{onNext:f,onDotClick:()=>r(2)}),a===2&&c.jsx(Vb,{onBack:()=>r(1),onSubmit:m,onDotClick:()=>r(1)})]}),c.jsxs("p",{className:"text-[12px] text-[#646464] text-center mt-4",children:["Email harus mengandung salah satu dari domain berikut:",c.jsx("span",{className:"text-[#2699E8]",children:" @pasien.myskin.ac.id "}),"untuk mendaftar sebagai pasien, atau",c.jsx("span",{className:"text-[#2699E8]",children:" @dokter.myskin.ac.id "}),"untuk mendaftar sebagai dokter."]}),c.jsxs("p",{className:"text-[12px] text-center text-[#646464] mt-2",children:["Sudah memiliki akun?"," ",c.jsx("button",{href:"#",className:"text-[#2699E8] inline cursor-pointer",onClick:n,children:"Masuk"})]})]})]})};Ib.propTypes={onClose:Be.func.isRequired,onBackToLogin:Be.func.isRequired};const qb=({onClose:e,type:n})=>{const[a,r]=E.useState(!1),[o,u]=E.useState(n),f=()=>{r(!0)},m=()=>{r(!1),e&&e()},p=()=>{r(!1),u("login")};return a?c.jsx(Ib,{onBackToLogin:p,onClose:m}):c.jsx(Xm,{onClose:m,showLogin:o,onOpenDoctorForm:f})};qb.propTypes={onClose:Be.func,type:Be.string};function Qb(e){return wt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M183.6 469.6C177.5 476.2 169 480 160 480s-17.5-3.8-23.6-10.4l-88-96c-11.9-13-11.1-33.3 2-45.2s33.3-11.1 45.2 2L128 365.7 128 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 301.7 32.4-35.4c11.9-13 32.2-13.9 45.2-2s13.9 32.2 2 45.2l-88 96zM320 320c0-17.7 14.3-32 32-32l128 0c12.9 0 24.6 7.8 29.6 19.8s2.2 25.7-6.9 34.9L429.3 416l50.7 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-128 0c-12.9 0-24.6-7.8-29.6-19.8s-2.2-25.7 6.9-34.9L402.7 352 352 352c-17.7 0-32-14.3-32-32zM416 32c12.1 0 23.2 6.8 28.6 17.7l64 128 16 32c7.9 15.8 1.5 35-14.3 42.9s-35 1.5-42.9-14.3L460.2 224l-88.4 0-7.2 14.3c-7.9 15.8-27.1 22.2-42.9 14.3s-22.2-27.1-14.3-42.9l16-32 64-128C392.8 38.8 403.9 32 416 32zM395.8 176l40.4 0L416 135.6 395.8 176z"},child:[]}]})(e)}function Gb(e){return wt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"},child:[]}]})(e)}function Yb(e){return wt({attr:{viewBox:"0 0 576 512"},child:[{tag:"path",attr:{d:"M183.6 42.4C177.5 35.8 169 32 160 32s-17.5 3.8-23.6 10.4l-88 96c-11.9 13-11.1 33.3 2 45.2s33.3 11.1 45.2-2L128 146.3 128 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-301.7 32.4 35.4c11.9 13 32.2 13.9 45.2 2s13.9-32.2 2-45.2l-88-96zM320 320c0 17.7 14.3 32 32 32l50.7 0-73.4 73.4c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l128 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-50.7 0 73.4-73.4c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8l-128 0c-17.7 0-32 14.3-32 32zM416 32c-12.1 0-23.2 6.8-28.6 17.7l-64 128-16 32c-7.9 15.8-1.5 35 14.3 42.9s35 1.5 42.9-14.3l7.2-14.3 88.4 0 7.2 14.3c7.9 15.8 27.1 22.2 42.9 14.3s22.2-27.1 14.3-42.9l-16-32-64-128C439.2 38.8 428.1 32 416 32zM395.8 176L416 135.6 436.2 176l-40.4 0z"},child:[]}]})(e)}function $b(e){return wt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM64 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"},child:[]}]})(e)}function Xb(e){return wt({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"},child:[]}]})(e)}function Kb(e){return wt({attr:{viewBox:"0 0 320 512"},child:[{tag:"path",attr:{d:"M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"},child:[]}]})(e)}function Qv(e){return wt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"},child:[]}]})(e)}function l4(e){return wt({attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M72 88a56 56 0 1 1 112 0A56 56 0 1 1 72 88zM64 245.7C54 256.9 48 271.8 48 288s6 31.1 16 42.3l0-84.7zm144.4-49.3C178.7 222.7 160 261.2 160 304c0 34.3 12 65.8 32 90.5l0 21.5c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32l0-26.8C26.2 371.2 0 332.7 0 288c0-61.9 50.1-112 112-112l32 0c24 0 46.2 7.5 64.4 20.3zM448 416l0-21.5c20-24.7 32-56.2 32-90.5c0-42.8-18.7-81.3-48.4-107.7C449.8 183.5 472 176 496 176l32 0c61.9 0 112 50.1 112 112c0 44.7-26.2 83.2-64 101.2l0 26.8c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32zm8-328a56 56 0 1 1 112 0A56 56 0 1 1 456 88zM576 245.7l0 84.7c10-11.3 16-26.1 16-42.3s-6-31.1-16-42.3zM320 32a64 64 0 1 1 0 128 64 64 0 1 1 0-128zM240 304c0 16.2 6 31 16 42.3l0-84.7c-10 11.3-16 26.1-16 42.3zm144-42.3l0 84.7c10-11.3 16-26.1 16-42.3s-6-31.1-16-42.3zM448 304c0 44.7-26.2 83.2-64 101.2l0 42.8c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32l0-42.8c-37.8-18-64-56.5-64-101.2c0-61.9 50.1-112 112-112l32 0c61.9 0 112 50.1 112 112z"},child:[]}]})(e)}const Ca=({to:e,children:n})=>c.jsx(Pc,{to:e,className:"font-semibold md:font-normal text-md text-black hover:text-gray-700 focus:font-bold cursor-pointer",children:n});Ca.propTypes={to:Be.string,children:Be.node};const Km=()=>{const[e,n]=E.useState(!1),[a,r]=E.useState("login"),o=()=>n(!1),u=(m="login")=>{r(m),n(!0)},f=({children:m})=>e?c.jsx("div",{className:"fixed inset-0 z-10 flex items-center justify-center bg-black/40",children:m}):null;return f.propTypes={children:Be.node.isRequired},{Modal:f,onOpen:u,onClose:o,type:a}},o4=()=>{var y,v;const{Modal:e,onOpen:n,onClose:a,type:r}=Km(),{user:o,logout:u}=Wi(),[f,m]=E.useState(!1),p=()=>{u()},g=()=>{var b,x;((b=o==null?void 0:o.data)==null?void 0:b.role)==="doctor"?window.location.href="/dokter":((x=o==null?void 0:o.data)==null?void 0:x.role)==="patient"&&(window.location.href="/")};return c.jsxs("div",{className:"fixed w-full flex justify-center lg:pt-5 absolute z-50",children:[c.jsxs("div",{className:"relative w-full lg:w-6xl flex md:justify-between items-center px-12 py-5 lg:rounded-xl shadow-md bg-white/60 backdrop-blur-sm",children:[c.jsx("div",{onClick:()=>m(!f),className:"md:hidden flex",children:c.jsx($b,{})}),c.jsx("h1",{className:"flex md:hidden font-bold mx-auto text-lg text-blue-950",children:"MySkin"}),f&&c.jsxs("div",{className:"md:hidden absolute top-17 left-0 w-full bg-white/90 flex flex-col items-center p-5 gap-y-5 shadow-lg",children:[c.jsx(Ca,{to:"/",children:"Beranda"}),o&&((y=o==null?void 0:o.data)==null?void 0:y.role)==="patient"&&c.jsxs(c.Fragment,{children:[c.jsx(Ca,{to:"deteksi",children:"Riwayat Deteksi"}),c.jsx(Ca,{to:"pengajuan",children:"Riwayat Pengajuan"})]}),c.jsx(Ca,{to:"/faq",children:"FAQ"}),o?c.jsxs("div",{className:"flex space-x-4",children:[c.jsx("button",{onClick:()=>g(),className:"cursor-pointer",children:"Dashboard"}),c.jsx("button",{onClick:p,className:"font-extralight text-md cursor-pointer text-red-500",children:"Keluar"})]}):c.jsxs("div",{className:"w-full flex flex-col gap-y-5",children:[c.jsx("button",{onClick:()=>n("register"),className:"font-semibold text-sky-900 text-md cursor-pointer",children:"Daftar"}),c.jsx("button",{onClick:()=>n("login"),className:"bg-sky-800 px-4 py-2 rounded-lg font-extralight text-white text-md cursor-pointer",children:"Masuk"})]})]}),c.jsx("h1",{className:"hidden md:flex font-bold text-md text-blue-950",children:"MySkin"}),c.jsxs("div",{className:"flex gap-x-4 hidden md:flex",children:[c.jsx(Ca,{to:"/",children:"Beranda"}),o&&((v=o==null?void 0:o.data)==null?void 0:v.role)==="patient"&&c.jsxs(c.Fragment,{children:[c.jsx(Ca,{to:"deteksi",children:"Riwayat Deteksi"}),c.jsx(Ca,{to:"pengajuan",children:"Riwayat Pengajuan"})]}),c.jsx(Ca,{to:"/faq",children:"FAQ"})]}),o?c.jsxs("div",{className:"flex space-x-4",children:[c.jsx("button",{onClick:()=>g(),className:"cursor-pointer",children:"Dashboard"}),c.jsx("button",{onClick:p,className:"font-extralight text-md cursor-pointer text-red-500",children:"Keluar"})]}):c.jsxs("div",{className:"hidden md:flex gap-x-4",children:[c.jsx("button",{onClick:()=>n("register"),className:" font-extralight text-sky-900 text-md cursor-pointer",children:"Daftar"}),c.jsx("button",{onClick:()=>n("login"),className:"bg-sky-800 px-4 py-2 rounded-lg font-extralight text-white text-md cursor-pointer",children:"Masuk"})]})]}),c.jsx(e,{children:c.jsx(qb,{onClose:a,type:r})})]})},u4=()=>{const{Modal:e,onClose:n}=Km(),a=Da(),[r,o]=E.useState(null),[u,f]=E.useState(!1);E.useEffect(()=>{const g=a.pathname.split("/")[2]||"dashboard";o(g),f(!1)},[a]);const m=()=>{localStorage.removeItem("user"),window.location.href="/"},p=[{to:"/dokter",label:"Dashboard",icon:c.jsx(gE,{size:20}),key:"dashboard"},{to:"/dokter/daftar-pasien",label:"Daftar Pasien",icon:c.jsx(l4,{size:20}),key:"daftar-pasien"},{to:"/dokter/daftar-pengajuan",label:"Daftar Pengajuan",icon:c.jsx(nm,{size:20}),key:"daftar-pengajuan"},{to:"/dokter/riwayat-verifikasi",label:"Riwayat Verifikasi",icon:c.jsx(nm,{size:20}),key:"riwayat-verifikasi"}];return c.jsxs("div",{className:"w-full flex justify-center mb-[60px] lg:mb-0",children:[c.jsxs("div",{className:"fixed w-full z-[20] bg-white",children:[c.jsxs("div",{className:"flex lg:hidden w-full justify-between items-center px-6 py-5 border-b-[1px] border-[#E3E3E3]",children:[c.jsx("div",{onClick:()=>f(!u),children:c.jsx($b,{})}),c.jsx("h1",{className:"flex md:hidden font-bold mx-auto pr-[18px] text-lg text-blue-950",children:"MySkin"})]}),u&&c.jsxs("div",{className:"absolute top-17 left-0 w-full flex flex-col items-center p-5 gap-y-5 shadow-lg bg-white",children:[p.map(g=>c.jsx(Ca,{to:g.to,children:g.label},g.key)),c.jsx("div",{className:"d-flex space-x-4",children:c.jsx("button",{onClick:m,className:"font-extralight text-md cursor-pointer text-red-500",children:"Keluar"})})]})]}),c.jsxs("div",{className:"hidden lg:flex w-full justify-between items-center px-12 py-5 border-b-[1px] border-[#E3E3E3] bg-white/60 backdrop-blur-sm",children:[c.jsx("h1",{className:"font-semibold text-md text-blue-950",children:"MySkin"}),c.jsx("div",{className:"flex gap-x-12 items-center",children:p.map(g=>c.jsxs(Pc,{to:g.to,className:"flex items-center gap-2",children:[c.jsx("span",{className:`px-3 py-3 rounded-lg shadow transition-all duration-300 ${r===g.key?"bg-[#12476B] text-white":"bg-white text-black"}`,children:g.icon}),c.jsx("span",{className:`${r===g.key?"font-bold text-[#12476B]":"text-black"}`,children:g.label})]},g.key))}),c.jsx("div",{className:"d-flex space-x-4",children:c.jsx("button",{onClick:m,className:"font-extralight text-md cursor-pointer text-red-500",children:"Keluar"})})]}),c.jsx(e,{children:c.jsx(Xm,{onClose:n})})]})},dc=({type:e})=>c.jsxs(c.Fragment,{children:[e==="default"&&c.jsx(o4,{}),e==="doctor"&&c.jsx(u4,{}),c.jsx("div",{className:"flex-1",children:c.jsx(ab,{})}),c.jsx(xE,{})]});dc.propTypes={type:Be.string.isRequired};const Ki={getStats(e){return ut.get(ht.doctor_services.stats,{params:e})},getPendingSubmissions(e){return ut.get(ht.doctor_services.pending,{params:e})},getPatients(e){return ut.get(ht.doctor_services.patients,{params:e})},getPendingSubmissionsList(e){return ut.get(ht.doctor_services.submission,{params:e})},getSubmissionsHistory(e){return ut.get(ht.doctor_services.history,{params:e})},getSubmissionDetail(e,n){const a=ht.doctor_services.detail.replace("{id}",e);return ut.get(a,{params:n})},verifySubmission(e,n){const a=ht.doctor_services.verify.replace("{id}",e);return ut.patch(a,n)}};/**
   * table-core
   *
   * Copyright (c) TanStack
   *
   * 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
   */function Qi(e,n){return typeof e=="function"?e(n):e}function Dn(e,n){return a=>{n.setState(r=>({...r,[e]:Qi(a,r[e])}))}}function Kc(e){return e instanceof Function}function c4(e){return Array.isArray(e)&&e.every(n=>typeof n=="number")}function d4(e,n){const a=[],r=o=>{o.forEach(u=>{a.push(u);const f=n(u);f!=null&&f.length&&r(f)})};return r(e),a}function ke(e,n,a){let r=[],o;return u=>{let f;a.key&&a.debug&&(f=Date.now());const m=e(u);if(!(m.length!==r.length||m.some((y,v)=>r[v]!==y)))return o;r=m;let g;if(a.key&&a.debug&&(g=Date.now()),o=n(...m),a==null||a.onChange==null||a.onChange(o),a.key&&a.debug&&a!=null&&a.debug()){const y=Math.round((Date.now()-f)*100)/100,v=Math.round((Date.now()-g)*100)/100,b=v/16,x=(S,j)=>{for(S=String(S);S.length<j;)S=" "+S;return S};console.info(`%c⏱ ${x(v,5)} /${x(y,5)} ms`,`
            font-size: .6rem;
            font-weight: bold;
            color: hsl(${Math.max(0,Math.min(120-120*b,120))}deg 100% 31%);`,a==null?void 0:a.key)}return o}}function Me(e,n,a,r){return{debug:()=>{var o;return(o=e==null?void 0:e.debugAll)!=null?o:e[n]},key:!1,onChange:r}}function f4(e,n,a,r){const o=()=>{var f;return(f=u.getValue())!=null?f:e.options.renderFallbackValue},u={id:`${n.id}_${a.id}`,row:n,column:a,getValue:()=>n.getValue(r),renderValue:o,getContext:ke(()=>[e,a,n,u],(f,m,p,g)=>({table:f,column:m,row:p,cell:g,getValue:g.getValue,renderValue:g.renderValue}),Me(e.options,"debugCells"))};return e._features.forEach(f=>{f.createCell==null||f.createCell(u,a,n,e)},{}),u}function h4(e,n,a,r){var o,u;const m={...e._getDefaultColumnDef(),...n},p=m.accessorKey;let g=(o=(u=m.id)!=null?u:p?typeof String.prototype.replaceAll=="function"?p.replaceAll(".","_"):p.replace(/\./g,"_"):void 0)!=null?o:typeof m.header=="string"?m.header:void 0,y;if(m.accessorFn?y=m.accessorFn:p&&(p.includes(".")?y=b=>{let x=b;for(const j of p.split(".")){var S;x=(S=x)==null?void 0:S[j]}return x}:y=b=>b[m.accessorKey]),!g)throw new Error;let v={id:`${String(g)}`,accessorFn:y,parent:r,depth:a,columnDef:m,columns:[],getFlatColumns:ke(()=>[!0],()=>{var b;return[v,...(b=v.columns)==null?void 0:b.flatMap(x=>x.getFlatColumns())]},Me(e.options,"debugColumns")),getLeafColumns:ke(()=>[e._getOrderColumnsFn()],b=>{var x;if((x=v.columns)!=null&&x.length){let S=v.columns.flatMap(j=>j.getLeafColumns());return b(S)}return[v]},Me(e.options,"debugColumns"))};for(const b of e._features)b.createColumn==null||b.createColumn(v,e);return v}const en="debugHeaders";function Gv(e,n,a){var r;let u={id:(r=a.id)!=null?r:n.id,column:n,index:a.index,isPlaceholder:!!a.isPlaceholder,placeholderId:a.placeholderId,depth:a.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const f=[],m=p=>{p.subHeaders&&p.subHeaders.length&&p.subHeaders.map(m),f.push(p)};return m(u),f},getContext:()=>({table:e,header:u,column:n})};return e._features.forEach(f=>{f.createHeader==null||f.createHeader(u,e)}),u}const m4={createTable:e=>{e.getHeaderGroups=ke(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,a,r,o)=>{var u,f;const m=(u=r==null?void 0:r.map(v=>a.find(b=>b.id===v)).filter(Boolean))!=null?u:[],p=(f=o==null?void 0:o.map(v=>a.find(b=>b.id===v)).filter(Boolean))!=null?f:[],g=a.filter(v=>!(r!=null&&r.includes(v.id))&&!(o!=null&&o.includes(v.id)));return Wu(n,[...m,...g,...p],e)},Me(e.options,en)),e.getCenterHeaderGroups=ke(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,a,r,o)=>(a=a.filter(u=>!(r!=null&&r.includes(u.id))&&!(o!=null&&o.includes(u.id))),Wu(n,a,e,"center")),Me(e.options,en)),e.getLeftHeaderGroups=ke(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(n,a,r)=>{var o;const u=(o=r==null?void 0:r.map(f=>a.find(m=>m.id===f)).filter(Boolean))!=null?o:[];return Wu(n,u,e,"left")},Me(e.options,en)),e.getRightHeaderGroups=ke(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(n,a,r)=>{var o;const u=(o=r==null?void 0:r.map(f=>a.find(m=>m.id===f)).filter(Boolean))!=null?o:[];return Wu(n,u,e,"right")},Me(e.options,en)),e.getFooterGroups=ke(()=>[e.getHeaderGroups()],n=>[...n].reverse(),Me(e.options,en)),e.getLeftFooterGroups=ke(()=>[e.getLeftHeaderGroups()],n=>[...n].reverse(),Me(e.options,en)),e.getCenterFooterGroups=ke(()=>[e.getCenterHeaderGroups()],n=>[...n].reverse(),Me(e.options,en)),e.getRightFooterGroups=ke(()=>[e.getRightHeaderGroups()],n=>[...n].reverse(),Me(e.options,en)),e.getFlatHeaders=ke(()=>[e.getHeaderGroups()],n=>n.map(a=>a.headers).flat(),Me(e.options,en)),e.getLeftFlatHeaders=ke(()=>[e.getLeftHeaderGroups()],n=>n.map(a=>a.headers).flat(),Me(e.options,en)),e.getCenterFlatHeaders=ke(()=>[e.getCenterHeaderGroups()],n=>n.map(a=>a.headers).flat(),Me(e.options,en)),e.getRightFlatHeaders=ke(()=>[e.getRightHeaderGroups()],n=>n.map(a=>a.headers).flat(),Me(e.options,en)),e.getCenterLeafHeaders=ke(()=>[e.getCenterFlatHeaders()],n=>n.filter(a=>{var r;return!((r=a.subHeaders)!=null&&r.length)}),Me(e.options,en)),e.getLeftLeafHeaders=ke(()=>[e.getLeftFlatHeaders()],n=>n.filter(a=>{var r;return!((r=a.subHeaders)!=null&&r.length)}),Me(e.options,en)),e.getRightLeafHeaders=ke(()=>[e.getRightFlatHeaders()],n=>n.filter(a=>{var r;return!((r=a.subHeaders)!=null&&r.length)}),Me(e.options,en)),e.getLeafHeaders=ke(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(n,a,r)=>{var o,u,f,m,p,g;return[...(o=(u=n[0])==null?void 0:u.headers)!=null?o:[],...(f=(m=a[0])==null?void 0:m.headers)!=null?f:[],...(p=(g=r[0])==null?void 0:g.headers)!=null?p:[]].map(y=>y.getLeafHeaders()).flat()},Me(e.options,en))}};function Wu(e,n,a,r){var o,u;let f=0;const m=function(b,x){x===void 0&&(x=1),f=Math.max(f,x),b.filter(S=>S.getIsVisible()).forEach(S=>{var j;(j=S.columns)!=null&&j.length&&m(S.columns,x+1)},0)};m(e);let p=[];const g=(b,x)=>{const S={depth:x,id:[r,`${x}`].filter(Boolean).join("_"),headers:[]},j=[];b.forEach(C=>{const k=[...j].reverse()[0],z=C.column.depth===S.depth;let _,Z=!1;if(z&&C.column.parent?_=C.column.parent:(_=C.column,Z=!0),k&&(k==null?void 0:k.column)===_)k.subHeaders.push(C);else{const R=Gv(a,_,{id:[r,x,_.id,C==null?void 0:C.id].filter(Boolean).join("_"),isPlaceholder:Z,placeholderId:Z?`${j.filter(W=>W.column===_).length}`:void 0,depth:x,index:j.length});R.subHeaders.push(C),j.push(R)}S.headers.push(C),C.headerGroup=S}),p.push(S),x>0&&g(j,x-1)},y=n.map((b,x)=>Gv(a,b,{depth:f,index:x}));g(y,f-1),p.reverse();const v=b=>b.filter(S=>S.column.getIsVisible()).map(S=>{let j=0,C=0,k=[0];S.subHeaders&&S.subHeaders.length?(k=[],v(S.subHeaders).forEach(_=>{let{colSpan:Z,rowSpan:R}=_;j+=Z,k.push(R)})):j=1;const z=Math.min(...k);return C=C+z,S.colSpan=j,S.rowSpan=C,{colSpan:j,rowSpan:C}});return v((o=(u=p[0])==null?void 0:u.headers)!=null?o:[]),p}const Zm=(e,n,a,r,o,u,f)=>{let m={id:n,index:r,original:a,depth:o,parentId:f,_valuesCache:{},_uniqueValuesCache:{},getValue:p=>{if(m._valuesCache.hasOwnProperty(p))return m._valuesCache[p];const g=e.getColumn(p);if(g!=null&&g.accessorFn)return m._valuesCache[p]=g.accessorFn(m.original,r),m._valuesCache[p]},getUniqueValues:p=>{if(m._uniqueValuesCache.hasOwnProperty(p))return m._uniqueValuesCache[p];const g=e.getColumn(p);if(g!=null&&g.accessorFn)return g.columnDef.getUniqueValues?(m._uniqueValuesCache[p]=g.columnDef.getUniqueValues(m.original,r),m._uniqueValuesCache[p]):(m._uniqueValuesCache[p]=[m.getValue(p)],m._uniqueValuesCache[p])},renderValue:p=>{var g;return(g=m.getValue(p))!=null?g:e.options.renderFallbackValue},subRows:[],getLeafRows:()=>d4(m.subRows,p=>p.subRows),getParentRow:()=>m.parentId?e.getRow(m.parentId,!0):void 0,getParentRows:()=>{let p=[],g=m;for(;;){const y=g.getParentRow();if(!y)break;p.push(y),g=y}return p.reverse()},getAllCells:ke(()=>[e.getAllLeafColumns()],p=>p.map(g=>f4(e,m,g,g.id)),Me(e.options,"debugRows")),_getAllCellsByColumnId:ke(()=>[m.getAllCells()],p=>p.reduce((g,y)=>(g[y.column.id]=y,g),{}),Me(e.options,"debugRows"))};for(let p=0;p<e._features.length;p++){const g=e._features[p];g==null||g.createRow==null||g.createRow(m,e)}return m},g4={createColumn:(e,n)=>{e._getFacetedRowModel=n.options.getFacetedRowModel&&n.options.getFacetedRowModel(n,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():n.getPreFilteredRowModel(),e._getFacetedUniqueValues=n.options.getFacetedUniqueValues&&n.options.getFacetedUniqueValues(n,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=n.options.getFacetedMinMaxValues&&n.options.getFacetedMinMaxValues(n,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},Zb=(e,n,a)=>{var r,o;const u=a==null||(r=a.toString())==null?void 0:r.toLowerCase();return!!(!((o=e.getValue(n))==null||(o=o.toString())==null||(o=o.toLowerCase())==null)&&o.includes(u))};Zb.autoRemove=e=>ma(e);const Jb=(e,n,a)=>{var r;return!!(!((r=e.getValue(n))==null||(r=r.toString())==null)&&r.includes(a))};Jb.autoRemove=e=>ma(e);const Wb=(e,n,a)=>{var r;return((r=e.getValue(n))==null||(r=r.toString())==null?void 0:r.toLowerCase())===(a==null?void 0:a.toLowerCase())};Wb.autoRemove=e=>ma(e);const ex=(e,n,a)=>{var r;return(r=e.getValue(n))==null?void 0:r.includes(a)};ex.autoRemove=e=>ma(e);const tx=(e,n,a)=>!a.some(r=>{var o;return!((o=e.getValue(n))!=null&&o.includes(r))});tx.autoRemove=e=>ma(e)||!(e!=null&&e.length);const nx=(e,n,a)=>a.some(r=>{var o;return(o=e.getValue(n))==null?void 0:o.includes(r)});nx.autoRemove=e=>ma(e)||!(e!=null&&e.length);const ax=(e,n,a)=>e.getValue(n)===a;ax.autoRemove=e=>ma(e);const ix=(e,n,a)=>e.getValue(n)==a;ix.autoRemove=e=>ma(e);const Jm=(e,n,a)=>{let[r,o]=a;const u=e.getValue(n);return u>=r&&u<=o};Jm.resolveFilterValue=e=>{let[n,a]=e,r=typeof n!="number"?parseFloat(n):n,o=typeof a!="number"?parseFloat(a):a,u=n===null||Number.isNaN(r)?-1/0:r,f=a===null||Number.isNaN(o)?1/0:o;if(u>f){const m=u;u=f,f=m}return[u,f]};Jm.autoRemove=e=>ma(e)||ma(e[0])&&ma(e[1]);const ni={includesString:Zb,includesStringSensitive:Jb,equalsString:Wb,arrIncludes:ex,arrIncludesAll:tx,arrIncludesSome:nx,equals:ax,weakEquals:ix,inNumberRange:Jm};function ma(e){return e==null||e===""}const p4={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:Dn("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,n)=>{e.getAutoFilterFn=()=>{const a=n.getCoreRowModel().flatRows[0],r=a==null?void 0:a.getValue(e.id);return typeof r=="string"?ni.includesString:typeof r=="number"?ni.inNumberRange:typeof r=="boolean"||r!==null&&typeof r=="object"?ni.equals:Array.isArray(r)?ni.arrIncludes:ni.weakEquals},e.getFilterFn=()=>{var a,r;return Kc(e.columnDef.filterFn)?e.columnDef.filterFn:e.columnDef.filterFn==="auto"?e.getAutoFilterFn():(a=(r=n.options.filterFns)==null?void 0:r[e.columnDef.filterFn])!=null?a:ni[e.columnDef.filterFn]},e.getCanFilter=()=>{var a,r,o;return((a=e.columnDef.enableColumnFilter)!=null?a:!0)&&((r=n.options.enableColumnFilters)!=null?r:!0)&&((o=n.options.enableFilters)!=null?o:!0)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var a;return(a=n.getState().columnFilters)==null||(a=a.find(r=>r.id===e.id))==null?void 0:a.value},e.getFilterIndex=()=>{var a,r;return(a=(r=n.getState().columnFilters)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?a:-1},e.setFilterValue=a=>{n.setColumnFilters(r=>{const o=e.getFilterFn(),u=r==null?void 0:r.find(y=>y.id===e.id),f=Qi(a,u?u.value:void 0);if(Yv(o,f,e)){var m;return(m=r==null?void 0:r.filter(y=>y.id!==e.id))!=null?m:[]}const p={id:e.id,value:f};if(u){var g;return(g=r==null?void 0:r.map(y=>y.id===e.id?p:y))!=null?g:[]}return r!=null&&r.length?[...r,p]:[p]})}},createRow:(e,n)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=n=>{const a=e.getAllLeafColumns(),r=o=>{var u;return(u=Qi(n,o))==null?void 0:u.filter(f=>{const m=a.find(p=>p.id===f.id);if(m){const p=m.getFilterFn();if(Yv(p,f.value,m))return!1}return!0})};e.options.onColumnFiltersChange==null||e.options.onColumnFiltersChange(r)},e.resetColumnFilters=n=>{var a,r;e.setColumnFilters(n?[]:(a=(r=e.initialState)==null?void 0:r.columnFilters)!=null?a:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel?e.getPreFilteredRowModel():e._getFilteredRowModel())}};function Yv(e,n,a){return(e&&e.autoRemove?e.autoRemove(n,a):!1)||typeof n>"u"||typeof n=="string"&&!n}const y4=(e,n,a)=>a.reduce((r,o)=>{const u=o.getValue(e);return r+(typeof u=="number"?u:0)},0),v4=(e,n,a)=>{let r;return a.forEach(o=>{const u=o.getValue(e);u!=null&&(r>u||r===void 0&&u>=u)&&(r=u)}),r},w4=(e,n,a)=>{let r;return a.forEach(o=>{const u=o.getValue(e);u!=null&&(r<u||r===void 0&&u>=u)&&(r=u)}),r},b4=(e,n,a)=>{let r,o;return a.forEach(u=>{const f=u.getValue(e);f!=null&&(r===void 0?f>=f&&(r=o=f):(r>f&&(r=f),o<f&&(o=f)))}),[r,o]},x4=(e,n)=>{let a=0,r=0;if(n.forEach(o=>{let u=o.getValue(e);u!=null&&(u=+u)>=u&&(++a,r+=u)}),a)return r/a},S4=(e,n)=>{if(!n.length)return;const a=n.map(u=>u.getValue(e));if(!c4(a))return;if(a.length===1)return a[0];const r=Math.floor(a.length/2),o=a.sort((u,f)=>u-f);return a.length%2!==0?o[r]:(o[r-1]+o[r])/2},A4=(e,n)=>Array.from(new Set(n.map(a=>a.getValue(e))).values()),C4=(e,n)=>new Set(n.map(a=>a.getValue(e))).size,E4=(e,n)=>n.length,_h={sum:y4,min:v4,max:w4,extent:b4,mean:x4,median:S4,unique:A4,uniqueCount:C4,count:E4},j4={getDefaultColumnDef:()=>({aggregatedCell:e=>{var n,a;return(n=(a=e.getValue())==null||a.toString==null?void 0:a.toString())!=null?n:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:Dn("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,n)=>{e.toggleGrouping=()=>{n.setGrouping(a=>a!=null&&a.includes(e.id)?a.filter(r=>r!==e.id):[...a??[],e.id])},e.getCanGroup=()=>{var a,r;return((a=e.columnDef.enableGrouping)!=null?a:!0)&&((r=n.options.enableGrouping)!=null?r:!0)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var a;return(a=n.getState().grouping)==null?void 0:a.includes(e.id)},e.getGroupedIndex=()=>{var a;return(a=n.getState().grouping)==null?void 0:a.indexOf(e.id)},e.getToggleGroupingHandler=()=>{const a=e.getCanGroup();return()=>{a&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{const a=n.getCoreRowModel().flatRows[0],r=a==null?void 0:a.getValue(e.id);if(typeof r=="number")return _h.sum;if(Object.prototype.toString.call(r)==="[object Date]")return _h.extent},e.getAggregationFn=()=>{var a,r;if(!e)throw new Error;return Kc(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:e.columnDef.aggregationFn==="auto"?e.getAutoAggregationFn():(a=(r=n.options.aggregationFns)==null?void 0:r[e.columnDef.aggregationFn])!=null?a:_h[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=n=>e.options.onGroupingChange==null?void 0:e.options.onGroupingChange(n),e.resetGrouping=n=>{var a,r;e.setGrouping(n?[]:(a=(r=e.initialState)==null?void 0:r.grouping)!=null?a:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel?e.getPreGroupedRowModel():e._getGroupedRowModel())},createRow:(e,n)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=a=>{if(e._groupingValuesCache.hasOwnProperty(a))return e._groupingValuesCache[a];const r=n.getColumn(a);return r!=null&&r.columnDef.getGroupingValue?(e._groupingValuesCache[a]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[a]):e.getValue(a)},e._groupingValuesCache={}},createCell:(e,n,a,r)=>{e.getIsGrouped=()=>n.getIsGrouped()&&n.id===a.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&n.getIsGrouped(),e.getIsAggregated=()=>{var o;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!((o=a.subRows)!=null&&o.length)}}};function R4(e,n,a){if(!(n!=null&&n.length)||!a)return e;const r=e.filter(u=>!n.includes(u.id));return a==="remove"?r:[...n.map(u=>e.find(f=>f.id===u)).filter(Boolean),...r]}const N4={getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:Dn("columnOrder",e)}),createColumn:(e,n)=>{e.getIndex=ke(a=>[mo(n,a)],a=>a.findIndex(r=>r.id===e.id),Me(n.options,"debugColumns")),e.getIsFirstColumn=a=>{var r;return((r=mo(n,a)[0])==null?void 0:r.id)===e.id},e.getIsLastColumn=a=>{var r;const o=mo(n,a);return((r=o[o.length-1])==null?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=n=>e.options.onColumnOrderChange==null?void 0:e.options.onColumnOrderChange(n),e.resetColumnOrder=n=>{var a;e.setColumnOrder(n?[]:(a=e.initialState.columnOrder)!=null?a:[])},e._getOrderColumnsFn=ke(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(n,a,r)=>o=>{let u=[];if(!(n!=null&&n.length))u=o;else{const f=[...n],m=[...o];for(;m.length&&f.length;){const p=f.shift(),g=m.findIndex(y=>y.id===p);g>-1&&u.push(m.splice(g,1)[0])}u=[...u,...m]}return R4(u,a,r)},Me(e.options,"debugTable"))}},Bh=()=>({left:[],right:[]}),T4={getInitialState:e=>({columnPinning:Bh(),...e}),getDefaultOptions:e=>({onColumnPinningChange:Dn("columnPinning",e)}),createColumn:(e,n)=>{e.pin=a=>{const r=e.getLeafColumns().map(o=>o.id).filter(Boolean);n.setColumnPinning(o=>{var u,f;if(a==="right"){var m,p;return{left:((m=o==null?void 0:o.left)!=null?m:[]).filter(v=>!(r!=null&&r.includes(v))),right:[...((p=o==null?void 0:o.right)!=null?p:[]).filter(v=>!(r!=null&&r.includes(v))),...r]}}if(a==="left"){var g,y;return{left:[...((g=o==null?void 0:o.left)!=null?g:[]).filter(v=>!(r!=null&&r.includes(v))),...r],right:((y=o==null?void 0:o.right)!=null?y:[]).filter(v=>!(r!=null&&r.includes(v)))}}return{left:((u=o==null?void 0:o.left)!=null?u:[]).filter(v=>!(r!=null&&r.includes(v))),right:((f=o==null?void 0:o.right)!=null?f:[]).filter(v=>!(r!=null&&r.includes(v)))}})},e.getCanPin=()=>e.getLeafColumns().some(r=>{var o,u,f;return((o=r.columnDef.enablePinning)!=null?o:!0)&&((u=(f=n.options.enableColumnPinning)!=null?f:n.options.enablePinning)!=null?u:!0)}),e.getIsPinned=()=>{const a=e.getLeafColumns().map(m=>m.id),{left:r,right:o}=n.getState().columnPinning,u=a.some(m=>r==null?void 0:r.includes(m)),f=a.some(m=>o==null?void 0:o.includes(m));return u?"left":f?"right":!1},e.getPinnedIndex=()=>{var a,r;const o=e.getIsPinned();return o?(a=(r=n.getState().columnPinning)==null||(r=r[o])==null?void 0:r.indexOf(e.id))!=null?a:-1:0}},createRow:(e,n)=>{e.getCenterVisibleCells=ke(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left,n.getState().columnPinning.right],(a,r,o)=>{const u=[...r??[],...o??[]];return a.filter(f=>!u.includes(f.column.id))},Me(n.options,"debugRows")),e.getLeftVisibleCells=ke(()=>[e._getAllVisibleCells(),n.getState().columnPinning.left],(a,r)=>(r??[]).map(u=>a.find(f=>f.column.id===u)).filter(Boolean).map(u=>({...u,position:"left"})),Me(n.options,"debugRows")),e.getRightVisibleCells=ke(()=>[e._getAllVisibleCells(),n.getState().columnPinning.right],(a,r)=>(r??[]).map(u=>a.find(f=>f.column.id===u)).filter(Boolean).map(u=>({...u,position:"right"})),Me(n.options,"debugRows"))},createTable:e=>{e.setColumnPinning=n=>e.options.onColumnPinningChange==null?void 0:e.options.onColumnPinningChange(n),e.resetColumnPinning=n=>{var a,r;return e.setColumnPinning(n?Bh():(a=(r=e.initialState)==null?void 0:r.columnPinning)!=null?a:Bh())},e.getIsSomeColumnsPinned=n=>{var a;const r=e.getState().columnPinning;if(!n){var o,u;return!!((o=r.left)!=null&&o.length||(u=r.right)!=null&&u.length)}return!!((a=r[n])!=null&&a.length)},e.getLeftLeafColumns=ke(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(n,a)=>(a??[]).map(r=>n.find(o=>o.id===r)).filter(Boolean),Me(e.options,"debugColumns")),e.getRightLeafColumns=ke(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(n,a)=>(a??[]).map(r=>n.find(o=>o.id===r)).filter(Boolean),Me(e.options,"debugColumns")),e.getCenterLeafColumns=ke(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(n,a,r)=>{const o=[...a??[],...r??[]];return n.filter(u=>!o.includes(u.id))},Me(e.options,"debugColumns"))}},ec={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},zh=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),k4={getDefaultColumnDef:()=>ec,getInitialState:e=>({columnSizing:{},columnSizingInfo:zh(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:Dn("columnSizing",e),onColumnSizingInfoChange:Dn("columnSizingInfo",e)}),createColumn:(e,n)=>{e.getSize=()=>{var a,r,o;const u=n.getState().columnSizing[e.id];return Math.min(Math.max((a=e.columnDef.minSize)!=null?a:ec.minSize,(r=u??e.columnDef.size)!=null?r:ec.size),(o=e.columnDef.maxSize)!=null?o:ec.maxSize)},e.getStart=ke(a=>[a,mo(n,a),n.getState().columnSizing],(a,r)=>r.slice(0,e.getIndex(a)).reduce((o,u)=>o+u.getSize(),0),Me(n.options,"debugColumns")),e.getAfter=ke(a=>[a,mo(n,a),n.getState().columnSizing],(a,r)=>r.slice(e.getIndex(a)+1).reduce((o,u)=>o+u.getSize(),0),Me(n.options,"debugColumns")),e.resetSize=()=>{n.setColumnSizing(a=>{let{[e.id]:r,...o}=a;return o})},e.getCanResize=()=>{var a,r;return((a=e.columnDef.enableResizing)!=null?a:!0)&&((r=n.options.enableColumnResizing)!=null?r:!0)},e.getIsResizing=()=>n.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,n)=>{e.getSize=()=>{let a=0;const r=o=>{if(o.subHeaders.length)o.subHeaders.forEach(r);else{var u;a+=(u=o.column.getSize())!=null?u:0}};return r(e),a},e.getStart=()=>{if(e.index>0){const a=e.headerGroup.headers[e.index-1];return a.getStart()+a.getSize()}return 0},e.getResizeHandler=a=>{const r=n.getColumn(e.column.id),o=r==null?void 0:r.getCanResize();return u=>{if(!r||!o||(u.persist==null||u.persist(),Lh(u)&&u.touches&&u.touches.length>1))return;const f=e.getSize(),m=e?e.getLeafHeaders().map(k=>[k.column.id,k.column.getSize()]):[[r.id,r.getSize()]],p=Lh(u)?Math.round(u.touches[0].clientX):u.clientX,g={},y=(k,z)=>{typeof z=="number"&&(n.setColumnSizingInfo(_=>{var Z,R;const W=n.options.columnResizeDirection==="rtl"?-1:1,ue=(z-((Z=_==null?void 0:_.startOffset)!=null?Z:0))*W,se=Math.max(ue/((R=_==null?void 0:_.startSize)!=null?R:0),-.999999);return _.columnSizingStart.forEach(Q=>{let[ne,fe]=Q;g[ne]=Math.round(Math.max(fe+fe*se,0)*100)/100}),{..._,deltaOffset:ue,deltaPercentage:se}}),(n.options.columnResizeMode==="onChange"||k==="end")&&n.setColumnSizing(_=>({..._,...g})))},v=k=>y("move",k),b=k=>{y("end",k),n.setColumnSizingInfo(z=>({...z,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},x=a||typeof document<"u"?document:null,S={moveHandler:k=>v(k.clientX),upHandler:k=>{x==null||x.removeEventListener("mousemove",S.moveHandler),x==null||x.removeEventListener("mouseup",S.upHandler),b(k.clientX)}},j={moveHandler:k=>(k.cancelable&&(k.preventDefault(),k.stopPropagation()),v(k.touches[0].clientX),!1),upHandler:k=>{var z;x==null||x.removeEventListener("touchmove",j.moveHandler),x==null||x.removeEventListener("touchend",j.upHandler),k.cancelable&&(k.preventDefault(),k.stopPropagation()),b((z=k.touches[0])==null?void 0:z.clientX)}},C=M4()?{passive:!1}:!1;Lh(u)?(x==null||x.addEventListener("touchmove",j.moveHandler,C),x==null||x.addEventListener("touchend",j.upHandler,C)):(x==null||x.addEventListener("mousemove",S.moveHandler,C),x==null||x.addEventListener("mouseup",S.upHandler,C)),n.setColumnSizingInfo(k=>({...k,startOffset:p,startSize:f,deltaOffset:0,deltaPercentage:0,columnSizingStart:m,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=n=>e.options.onColumnSizingChange==null?void 0:e.options.onColumnSizingChange(n),e.setColumnSizingInfo=n=>e.options.onColumnSizingInfoChange==null?void 0:e.options.onColumnSizingInfoChange(n),e.resetColumnSizing=n=>{var a;e.setColumnSizing(n?{}:(a=e.initialState.columnSizing)!=null?a:{})},e.resetHeaderSizeInfo=n=>{var a;e.setColumnSizingInfo(n?zh():(a=e.initialState.columnSizingInfo)!=null?a:zh())},e.getTotalSize=()=>{var n,a;return(n=(a=e.getHeaderGroups()[0])==null?void 0:a.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getLeftTotalSize=()=>{var n,a;return(n=(a=e.getLeftHeaderGroups()[0])==null?void 0:a.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getCenterTotalSize=()=>{var n,a;return(n=(a=e.getCenterHeaderGroups()[0])==null?void 0:a.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0},e.getRightTotalSize=()=>{var n,a;return(n=(a=e.getRightHeaderGroups()[0])==null?void 0:a.headers.reduce((r,o)=>r+o.getSize(),0))!=null?n:0}}};let tc=null;function M4(){if(typeof tc=="boolean")return tc;let e=!1;try{const n={get passive(){return e=!0,!1}},a=()=>{};window.addEventListener("test",a,n),window.removeEventListener("test",a)}catch{e=!1}return tc=e,tc}function Lh(e){return e.type==="touchstart"}const D4={getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:Dn("columnVisibility",e)}),createColumn:(e,n)=>{e.toggleVisibility=a=>{e.getCanHide()&&n.setColumnVisibility(r=>({...r,[e.id]:a??!e.getIsVisible()}))},e.getIsVisible=()=>{var a,r;const o=e.columns;return(a=o.length?o.some(u=>u.getIsVisible()):(r=n.getState().columnVisibility)==null?void 0:r[e.id])!=null?a:!0},e.getCanHide=()=>{var a,r;return((a=e.columnDef.enableHiding)!=null?a:!0)&&((r=n.options.enableHiding)!=null?r:!0)},e.getToggleVisibilityHandler=()=>a=>{e.toggleVisibility==null||e.toggleVisibility(a.target.checked)}},createRow:(e,n)=>{e._getAllVisibleCells=ke(()=>[e.getAllCells(),n.getState().columnVisibility],a=>a.filter(r=>r.column.getIsVisible()),Me(n.options,"debugRows")),e.getVisibleCells=ke(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(a,r,o)=>[...a,...r,...o],Me(n.options,"debugRows"))},createTable:e=>{const n=(a,r)=>ke(()=>[r(),r().filter(o=>o.getIsVisible()).map(o=>o.id).join("_")],o=>o.filter(u=>u.getIsVisible==null?void 0:u.getIsVisible()),Me(e.options,"debugColumns"));e.getVisibleFlatColumns=n("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=n("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=n("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=n("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=n("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=a=>e.options.onColumnVisibilityChange==null?void 0:e.options.onColumnVisibilityChange(a),e.resetColumnVisibility=a=>{var r;e.setColumnVisibility(a?{}:(r=e.initialState.columnVisibility)!=null?r:{})},e.toggleAllColumnsVisible=a=>{var r;a=(r=a)!=null?r:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((o,u)=>({...o,[u.id]:a||!(u.getCanHide!=null&&u.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(a=>!(a.getIsVisible!=null&&a.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(a=>a.getIsVisible==null?void 0:a.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>a=>{var r;e.toggleAllColumnsVisible((r=a.target)==null?void 0:r.checked)}}};function mo(e,n){return n?n==="center"?e.getCenterVisibleLeafColumns():n==="left"?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}const O4={createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},_4={getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:Dn("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:n=>{var a;const r=(a=e.getCoreRowModel().flatRows[0])==null||(a=a._getAllCellsByColumnId()[n.id])==null?void 0:a.getValue();return typeof r=="string"||typeof r=="number"}}),createColumn:(e,n)=>{e.getCanGlobalFilter=()=>{var a,r,o,u;return((a=e.columnDef.enableGlobalFilter)!=null?a:!0)&&((r=n.options.enableGlobalFilter)!=null?r:!0)&&((o=n.options.enableFilters)!=null?o:!0)&&((u=n.options.getColumnCanGlobalFilter==null?void 0:n.options.getColumnCanGlobalFilter(e))!=null?u:!0)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>ni.includesString,e.getGlobalFilterFn=()=>{var n,a;const{globalFilterFn:r}=e.options;return Kc(r)?r:r==="auto"?e.getGlobalAutoFilterFn():(n=(a=e.options.filterFns)==null?void 0:a[r])!=null?n:ni[r]},e.setGlobalFilter=n=>{e.options.onGlobalFilterChange==null||e.options.onGlobalFilterChange(n)},e.resetGlobalFilter=n=>{e.setGlobalFilter(n?void 0:e.initialState.globalFilter)}}},B4={getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:Dn("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let n=!1,a=!1;e._autoResetExpanded=()=>{var r,o;if(!n){e._queue(()=>{n=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetExpanded)!=null?r:!e.options.manualExpanding){if(a)return;a=!0,e._queue(()=>{e.resetExpanded(),a=!1})}},e.setExpanded=r=>e.options.onExpandedChange==null?void 0:e.options.onExpandedChange(r),e.toggleAllRowsExpanded=r=>{r??!e.getIsAllRowsExpanded()?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=r=>{var o,u;e.setExpanded(r?{}:(o=(u=e.initialState)==null?void 0:u.expanded)!=null?o:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(r=>r.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>r=>{r.persist==null||r.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{const r=e.getState().expanded;return r===!0||Object.values(r).some(Boolean)},e.getIsAllRowsExpanded=()=>{const r=e.getState().expanded;return typeof r=="boolean"?r===!0:!(!Object.keys(r).length||e.getRowModel().flatRows.some(o=>!o.getIsExpanded()))},e.getExpandedDepth=()=>{let r=0;return(e.getState().expanded===!0?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(u=>{const f=u.split(".");r=Math.max(r,f.length)}),r},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel?e.getPreExpandedRowModel():e._getExpandedRowModel())},createRow:(e,n)=>{e.toggleExpanded=a=>{n.setExpanded(r=>{var o;const u=r===!0?!0:!!(r!=null&&r[e.id]);let f={};if(r===!0?Object.keys(n.getRowModel().rowsById).forEach(m=>{f[m]=!0}):f=r,a=(o=a)!=null?o:!u,!u&&a)return{...f,[e.id]:!0};if(u&&!a){const{[e.id]:m,...p}=f;return p}return r})},e.getIsExpanded=()=>{var a;const r=n.getState().expanded;return!!((a=n.options.getIsRowExpanded==null?void 0:n.options.getIsRowExpanded(e))!=null?a:r===!0||r!=null&&r[e.id])},e.getCanExpand=()=>{var a,r,o;return(a=n.options.getRowCanExpand==null?void 0:n.options.getRowCanExpand(e))!=null?a:((r=n.options.enableExpanding)!=null?r:!0)&&!!((o=e.subRows)!=null&&o.length)},e.getIsAllParentsExpanded=()=>{let a=!0,r=e;for(;a&&r.parentId;)r=n.getRow(r.parentId,!0),a=r.getIsExpanded();return a},e.getToggleExpandedHandler=()=>{const a=e.getCanExpand();return()=>{a&&e.toggleExpanded()}}}},um=0,cm=10,Uh=()=>({pageIndex:um,pageSize:cm}),z4={getInitialState:e=>({...e,pagination:{...Uh(),...e==null?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:Dn("pagination",e)}),createTable:e=>{let n=!1,a=!1;e._autoResetPageIndex=()=>{var r,o;if(!n){e._queue(()=>{n=!0});return}if((r=(o=e.options.autoResetAll)!=null?o:e.options.autoResetPageIndex)!=null?r:!e.options.manualPagination){if(a)return;a=!0,e._queue(()=>{e.resetPageIndex(),a=!1})}},e.setPagination=r=>{const o=u=>Qi(r,u);return e.options.onPaginationChange==null?void 0:e.options.onPaginationChange(o)},e.resetPagination=r=>{var o;e.setPagination(r?Uh():(o=e.initialState.pagination)!=null?o:Uh())},e.setPageIndex=r=>{e.setPagination(o=>{let u=Qi(r,o.pageIndex);const f=typeof e.options.pageCount>"u"||e.options.pageCount===-1?Number.MAX_SAFE_INTEGER:e.options.pageCount-1;return u=Math.max(0,Math.min(u,f)),{...o,pageIndex:u}})},e.resetPageIndex=r=>{var o,u;e.setPageIndex(r?um:(o=(u=e.initialState)==null||(u=u.pagination)==null?void 0:u.pageIndex)!=null?o:um)},e.resetPageSize=r=>{var o,u;e.setPageSize(r?cm:(o=(u=e.initialState)==null||(u=u.pagination)==null?void 0:u.pageSize)!=null?o:cm)},e.setPageSize=r=>{e.setPagination(o=>{const u=Math.max(1,Qi(r,o.pageSize)),f=o.pageSize*o.pageIndex,m=Math.floor(f/u);return{...o,pageIndex:m,pageSize:u}})},e.setPageCount=r=>e.setPagination(o=>{var u;let f=Qi(r,(u=e.options.pageCount)!=null?u:-1);return typeof f=="number"&&(f=Math.max(-1,f)),{...o,pageCount:f}}),e.getPageOptions=ke(()=>[e.getPageCount()],r=>{let o=[];return r&&r>0&&(o=[...new Array(r)].fill(null).map((u,f)=>f)),o},Me(e.options,"debugTable")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{const{pageIndex:r}=e.getState().pagination,o=e.getPageCount();return o===-1?!0:o===0?!1:r<o-1},e.previousPage=()=>e.setPageIndex(r=>r-1),e.nextPage=()=>e.setPageIndex(r=>r+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel?e.getPrePaginationRowModel():e._getPaginationRowModel()),e.getPageCount=()=>{var r;return(r=e.options.pageCount)!=null?r:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var r;return(r=e.options.rowCount)!=null?r:e.getPrePaginationRowModel().rows.length}}},Hh=()=>({top:[],bottom:[]}),L4={getInitialState:e=>({rowPinning:Hh(),...e}),getDefaultOptions:e=>({onRowPinningChange:Dn("rowPinning",e)}),createRow:(e,n)=>{e.pin=(a,r,o)=>{const u=r?e.getLeafRows().map(p=>{let{id:g}=p;return g}):[],f=o?e.getParentRows().map(p=>{let{id:g}=p;return g}):[],m=new Set([...f,e.id,...u]);n.setRowPinning(p=>{var g,y;if(a==="bottom"){var v,b;return{top:((v=p==null?void 0:p.top)!=null?v:[]).filter(j=>!(m!=null&&m.has(j))),bottom:[...((b=p==null?void 0:p.bottom)!=null?b:[]).filter(j=>!(m!=null&&m.has(j))),...Array.from(m)]}}if(a==="top"){var x,S;return{top:[...((x=p==null?void 0:p.top)!=null?x:[]).filter(j=>!(m!=null&&m.has(j))),...Array.from(m)],bottom:((S=p==null?void 0:p.bottom)!=null?S:[]).filter(j=>!(m!=null&&m.has(j)))}}return{top:((g=p==null?void 0:p.top)!=null?g:[]).filter(j=>!(m!=null&&m.has(j))),bottom:((y=p==null?void 0:p.bottom)!=null?y:[]).filter(j=>!(m!=null&&m.has(j)))}})},e.getCanPin=()=>{var a;const{enableRowPinning:r,enablePinning:o}=n.options;return typeof r=="function"?r(e):(a=r??o)!=null?a:!0},e.getIsPinned=()=>{const a=[e.id],{top:r,bottom:o}=n.getState().rowPinning,u=a.some(m=>r==null?void 0:r.includes(m)),f=a.some(m=>o==null?void 0:o.includes(m));return u?"top":f?"bottom":!1},e.getPinnedIndex=()=>{var a,r;const o=e.getIsPinned();if(!o)return-1;const u=(a=o==="top"?n.getTopRows():n.getBottomRows())==null?void 0:a.map(f=>{let{id:m}=f;return m});return(r=u==null?void 0:u.indexOf(e.id))!=null?r:-1}},createTable:e=>{e.setRowPinning=n=>e.options.onRowPinningChange==null?void 0:e.options.onRowPinningChange(n),e.resetRowPinning=n=>{var a,r;return e.setRowPinning(n?Hh():(a=(r=e.initialState)==null?void 0:r.rowPinning)!=null?a:Hh())},e.getIsSomeRowsPinned=n=>{var a;const r=e.getState().rowPinning;if(!n){var o,u;return!!((o=r.top)!=null&&o.length||(u=r.bottom)!=null&&u.length)}return!!((a=r[n])!=null&&a.length)},e._getPinnedRows=(n,a,r)=>{var o;return((o=e.options.keepPinnedRows)==null||o?(a??[]).map(f=>{const m=e.getRow(f,!0);return m.getIsAllParentsExpanded()?m:null}):(a??[]).map(f=>n.find(m=>m.id===f))).filter(Boolean).map(f=>({...f,position:r}))},e.getTopRows=ke(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(n,a)=>e._getPinnedRows(n,a,"top"),Me(e.options,"debugRows")),e.getBottomRows=ke(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(n,a)=>e._getPinnedRows(n,a,"bottom"),Me(e.options,"debugRows")),e.getCenterRows=ke(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(n,a,r)=>{const o=new Set([...a??[],...r??[]]);return n.filter(u=>!o.has(u.id))},Me(e.options,"debugRows"))}},U4={getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:Dn("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=n=>e.options.onRowSelectionChange==null?void 0:e.options.onRowSelectionChange(n),e.resetRowSelection=n=>{var a;return e.setRowSelection(n?{}:(a=e.initialState.rowSelection)!=null?a:{})},e.toggleAllRowsSelected=n=>{e.setRowSelection(a=>{n=typeof n<"u"?n:!e.getIsAllRowsSelected();const r={...a},o=e.getPreGroupedRowModel().flatRows;return n?o.forEach(u=>{u.getCanSelect()&&(r[u.id]=!0)}):o.forEach(u=>{delete r[u.id]}),r})},e.toggleAllPageRowsSelected=n=>e.setRowSelection(a=>{const r=typeof n<"u"?n:!e.getIsAllPageRowsSelected(),o={...a};return e.getRowModel().rows.forEach(u=>{dm(o,u.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=ke(()=>[e.getState().rowSelection,e.getCoreRowModel()],(n,a)=>Object.keys(n).length?Fh(e,a):{rows:[],flatRows:[],rowsById:{}},Me(e.options,"debugTable")),e.getFilteredSelectedRowModel=ke(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(n,a)=>Object.keys(n).length?Fh(e,a):{rows:[],flatRows:[],rowsById:{}},Me(e.options,"debugTable")),e.getGroupedSelectedRowModel=ke(()=>[e.getState().rowSelection,e.getSortedRowModel()],(n,a)=>Object.keys(n).length?Fh(e,a):{rows:[],flatRows:[],rowsById:{}},Me(e.options,"debugTable")),e.getIsAllRowsSelected=()=>{const n=e.getFilteredRowModel().flatRows,{rowSelection:a}=e.getState();let r=!!(n.length&&Object.keys(a).length);return r&&n.some(o=>o.getCanSelect()&&!a[o.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows.filter(o=>o.getCanSelect()),{rowSelection:a}=e.getState();let r=!!n.length;return r&&n.some(o=>!a[o.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var n;const a=Object.keys((n=e.getState().rowSelection)!=null?n:{}).length;return a>0&&a<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{const n=e.getPaginationRowModel().flatRows;return e.getIsAllPageRowsSelected()?!1:n.filter(a=>a.getCanSelect()).some(a=>a.getIsSelected()||a.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>n=>{e.toggleAllRowsSelected(n.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>n=>{e.toggleAllPageRowsSelected(n.target.checked)}},createRow:(e,n)=>{e.toggleSelected=(a,r)=>{const o=e.getIsSelected();n.setRowSelection(u=>{var f;if(a=typeof a<"u"?a:!o,e.getCanSelect()&&o===a)return u;const m={...u};return dm(m,e.id,a,(f=r==null?void 0:r.selectChildren)!=null?f:!0,n),m})},e.getIsSelected=()=>{const{rowSelection:a}=n.getState();return Wm(e,a)},e.getIsSomeSelected=()=>{const{rowSelection:a}=n.getState();return fm(e,a)==="some"},e.getIsAllSubRowsSelected=()=>{const{rowSelection:a}=n.getState();return fm(e,a)==="all"},e.getCanSelect=()=>{var a;return typeof n.options.enableRowSelection=="function"?n.options.enableRowSelection(e):(a=n.options.enableRowSelection)!=null?a:!0},e.getCanSelectSubRows=()=>{var a;return typeof n.options.enableSubRowSelection=="function"?n.options.enableSubRowSelection(e):(a=n.options.enableSubRowSelection)!=null?a:!0},e.getCanMultiSelect=()=>{var a;return typeof n.options.enableMultiRowSelection=="function"?n.options.enableMultiRowSelection(e):(a=n.options.enableMultiRowSelection)!=null?a:!0},e.getToggleSelectedHandler=()=>{const a=e.getCanSelect();return r=>{var o;a&&e.toggleSelected((o=r.target)==null?void 0:o.checked)}}}},dm=(e,n,a,r,o)=>{var u;const f=o.getRow(n,!0);a?(f.getCanMultiSelect()||Object.keys(e).forEach(m=>delete e[m]),f.getCanSelect()&&(e[n]=!0)):delete e[n],r&&(u=f.subRows)!=null&&u.length&&f.getCanSelectSubRows()&&f.subRows.forEach(m=>dm(e,m.id,a,r,o))};function Fh(e,n){const a=e.getState().rowSelection,r=[],o={},u=function(f,m){return f.map(p=>{var g;const y=Wm(p,a);if(y&&(r.push(p),o[p.id]=p),(g=p.subRows)!=null&&g.length&&(p={...p,subRows:u(p.subRows)}),y)return p}).filter(Boolean)};return{rows:u(n.rows),flatRows:r,rowsById:o}}function Wm(e,n){var a;return(a=n[e.id])!=null?a:!1}function fm(e,n,a){var r;if(!((r=e.subRows)!=null&&r.length))return!1;let o=!0,u=!1;return e.subRows.forEach(f=>{if(!(u&&!o)&&(f.getCanSelect()&&(Wm(f,n)?u=!0:o=!1),f.subRows&&f.subRows.length)){const m=fm(f,n);m==="all"?u=!0:(m==="some"&&(u=!0),o=!1)}}),o?"all":u?"some":!1}const hm=/([0-9]+)/gm,H4=(e,n,a)=>rx(Zi(e.getValue(a)).toLowerCase(),Zi(n.getValue(a)).toLowerCase()),F4=(e,n,a)=>rx(Zi(e.getValue(a)),Zi(n.getValue(a))),P4=(e,n,a)=>eg(Zi(e.getValue(a)).toLowerCase(),Zi(n.getValue(a)).toLowerCase()),V4=(e,n,a)=>eg(Zi(e.getValue(a)),Zi(n.getValue(a))),I4=(e,n,a)=>{const r=e.getValue(a),o=n.getValue(a);return r>o?1:r<o?-1:0},q4=(e,n,a)=>eg(e.getValue(a),n.getValue(a));function eg(e,n){return e===n?0:e>n?1:-1}function Zi(e){return typeof e=="number"?isNaN(e)||e===1/0||e===-1/0?"":String(e):typeof e=="string"?e:""}function rx(e,n){const a=e.split(hm).filter(Boolean),r=n.split(hm).filter(Boolean);for(;a.length&&r.length;){const o=a.shift(),u=r.shift(),f=parseInt(o,10),m=parseInt(u,10),p=[f,m].sort();if(isNaN(p[0])){if(o>u)return 1;if(u>o)return-1;continue}if(isNaN(p[1]))return isNaN(f)?-1:1;if(f>m)return 1;if(m>f)return-1}return a.length-r.length}const oo={alphanumeric:H4,alphanumericCaseSensitive:F4,text:P4,textCaseSensitive:V4,datetime:I4,basic:q4},Q4={getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:Dn("sorting",e),isMultiSortEvent:n=>n.shiftKey}),createColumn:(e,n)=>{e.getAutoSortingFn=()=>{const a=n.getFilteredRowModel().flatRows.slice(10);let r=!1;for(const o of a){const u=o==null?void 0:o.getValue(e.id);if(Object.prototype.toString.call(u)==="[object Date]")return oo.datetime;if(typeof u=="string"&&(r=!0,u.split(hm).length>1))return oo.alphanumeric}return r?oo.text:oo.basic},e.getAutoSortDir=()=>{const a=n.getFilteredRowModel().flatRows[0];return typeof(a==null?void 0:a.getValue(e.id))=="string"?"asc":"desc"},e.getSortingFn=()=>{var a,r;if(!e)throw new Error;return Kc(e.columnDef.sortingFn)?e.columnDef.sortingFn:e.columnDef.sortingFn==="auto"?e.getAutoSortingFn():(a=(r=n.options.sortingFns)==null?void 0:r[e.columnDef.sortingFn])!=null?a:oo[e.columnDef.sortingFn]},e.toggleSorting=(a,r)=>{const o=e.getNextSortingOrder(),u=typeof a<"u"&&a!==null;n.setSorting(f=>{const m=f==null?void 0:f.find(x=>x.id===e.id),p=f==null?void 0:f.findIndex(x=>x.id===e.id);let g=[],y,v=u?a:o==="desc";if(f!=null&&f.length&&e.getCanMultiSort()&&r?m?y="toggle":y="add":f!=null&&f.length&&p!==f.length-1?y="replace":m?y="toggle":y="replace",y==="toggle"&&(u||o||(y="remove")),y==="add"){var b;g=[...f,{id:e.id,desc:v}],g.splice(0,g.length-((b=n.options.maxMultiSortColCount)!=null?b:Number.MAX_SAFE_INTEGER))}else y==="toggle"?g=f.map(x=>x.id===e.id?{...x,desc:v}:x):y==="remove"?g=f.filter(x=>x.id!==e.id):g=[{id:e.id,desc:v}];return g})},e.getFirstSortDir=()=>{var a,r;return((a=(r=e.columnDef.sortDescFirst)!=null?r:n.options.sortDescFirst)!=null?a:e.getAutoSortDir()==="desc")?"desc":"asc"},e.getNextSortingOrder=a=>{var r,o;const u=e.getFirstSortDir(),f=e.getIsSorted();return f?f!==u&&((r=n.options.enableSortingRemoval)==null||r)&&(!(a&&(o=n.options.enableMultiRemove)!=null)||o)?!1:f==="desc"?"asc":"desc":u},e.getCanSort=()=>{var a,r;return((a=e.columnDef.enableSorting)!=null?a:!0)&&((r=n.options.enableSorting)!=null?r:!0)&&!!e.accessorFn},e.getCanMultiSort=()=>{var a,r;return(a=(r=e.columnDef.enableMultiSort)!=null?r:n.options.enableMultiSort)!=null?a:!!e.accessorFn},e.getIsSorted=()=>{var a;const r=(a=n.getState().sorting)==null?void 0:a.find(o=>o.id===e.id);return r?r.desc?"desc":"asc":!1},e.getSortIndex=()=>{var a,r;return(a=(r=n.getState().sorting)==null?void 0:r.findIndex(o=>o.id===e.id))!=null?a:-1},e.clearSorting=()=>{n.setSorting(a=>a!=null&&a.length?a.filter(r=>r.id!==e.id):[])},e.getToggleSortingHandler=()=>{const a=e.getCanSort();return r=>{a&&(r.persist==null||r.persist(),e.toggleSorting==null||e.toggleSorting(void 0,e.getCanMultiSort()?n.options.isMultiSortEvent==null?void 0:n.options.isMultiSortEvent(r):!1))}}},createTable:e=>{e.setSorting=n=>e.options.onSortingChange==null?void 0:e.options.onSortingChange(n),e.resetSorting=n=>{var a,r;e.setSorting(n?[]:(a=(r=e.initialState)==null?void 0:r.sorting)!=null?a:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel?e.getPreSortedRowModel():e._getSortedRowModel())}},G4=[m4,D4,N4,T4,g4,p4,O4,_4,Q4,j4,B4,z4,L4,U4,k4];function Y4(e){var n,a;const r=[...G4,...(n=e._features)!=null?n:[]];let o={_features:r};const u=o._features.reduce((b,x)=>Object.assign(b,x.getDefaultOptions==null?void 0:x.getDefaultOptions(o)),{}),f=b=>o.options.mergeOptions?o.options.mergeOptions(u,b):{...u,...b};let p={...{},...(a=e.initialState)!=null?a:{}};o._features.forEach(b=>{var x;p=(x=b.getInitialState==null?void 0:b.getInitialState(p))!=null?x:p});const g=[];let y=!1;const v={_features:r,options:{...u,...e},initialState:p,_queue:b=>{g.push(b),y||(y=!0,Promise.resolve().then(()=>{for(;g.length;)g.shift()();y=!1}).catch(x=>setTimeout(()=>{throw x})))},reset:()=>{o.setState(o.initialState)},setOptions:b=>{const x=Qi(b,o.options);o.options=f(x)},getState:()=>o.options.state,setState:b=>{o.options.onStateChange==null||o.options.onStateChange(b)},_getRowId:(b,x,S)=>{var j;return(j=o.options.getRowId==null?void 0:o.options.getRowId(b,x,S))!=null?j:`${S?[S.id,x].join("."):x}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(b,x)=>{let S=(x?o.getPrePaginationRowModel():o.getRowModel()).rowsById[b];if(!S&&(S=o.getCoreRowModel().rowsById[b],!S))throw new Error;return S},_getDefaultColumnDef:ke(()=>[o.options.defaultColumn],b=>{var x;return b=(x=b)!=null?x:{},{header:S=>{const j=S.header.column.columnDef;return j.accessorKey?j.accessorKey:j.accessorFn?j.id:null},cell:S=>{var j,C;return(j=(C=S.renderValue())==null||C.toString==null?void 0:C.toString())!=null?j:null},...o._features.reduce((S,j)=>Object.assign(S,j.getDefaultColumnDef==null?void 0:j.getDefaultColumnDef()),{}),...b}},Me(e,"debugColumns")),_getColumnDefs:()=>o.options.columns,getAllColumns:ke(()=>[o._getColumnDefs()],b=>{const x=function(S,j,C){return C===void 0&&(C=0),S.map(k=>{const z=h4(o,k,C,j),_=k;return z.columns=_.columns?x(_.columns,z,C+1):[],z})};return x(b)},Me(e,"debugColumns")),getAllFlatColumns:ke(()=>[o.getAllColumns()],b=>b.flatMap(x=>x.getFlatColumns()),Me(e,"debugColumns")),_getAllFlatColumnsById:ke(()=>[o.getAllFlatColumns()],b=>b.reduce((x,S)=>(x[S.id]=S,x),{}),Me(e,"debugColumns")),getAllLeafColumns:ke(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(b,x)=>{let S=b.flatMap(j=>j.getLeafColumns());return x(S)},Me(e,"debugColumns")),getColumn:b=>o._getAllFlatColumnsById()[b]};Object.assign(o,v);for(let b=0;b<o._features.length;b++){const x=o._features[b];x==null||x.createTable==null||x.createTable(o)}return o}function sx(){return e=>ke(()=>[e.options.data],n=>{const a={rows:[],flatRows:[],rowsById:{}},r=function(o,u,f){u===void 0&&(u=0);const m=[];for(let g=0;g<o.length;g++){const y=Zm(e,e._getRowId(o[g],g,f),o[g],g,u,void 0,f==null?void 0:f.id);if(a.flatRows.push(y),a.rowsById[y.id]=y,m.push(y),e.options.getSubRows){var p;y.originalSubRows=e.options.getSubRows(o[g],g),(p=y.originalSubRows)!=null&&p.length&&(y.subRows=r(y.originalSubRows,u+1,y))}}return m};return a.rows=r(n),a},Me(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex()))}function $4(e){const n=[],a=r=>{var o;n.push(r),(o=r.subRows)!=null&&o.length&&r.getIsExpanded()&&r.subRows.forEach(a)};return e.rows.forEach(a),{rows:n,flatRows:e.flatRows,rowsById:e.rowsById}}function X4(e,n,a){return a.options.filterFromLeafRows?K4(e,n,a):Z4(e,n,a)}function K4(e,n,a){var r;const o=[],u={},f=(r=a.options.maxLeafRowFilterDepth)!=null?r:100,m=function(p,g){g===void 0&&(g=0);const y=[];for(let b=0;b<p.length;b++){var v;let x=p[b];const S=Zm(a,x.id,x.original,x.index,x.depth,void 0,x.parentId);if(S.columnFilters=x.columnFilters,(v=x.subRows)!=null&&v.length&&g<f){if(S.subRows=m(x.subRows,g+1),x=S,n(x)&&!S.subRows.length){y.push(x),u[x.id]=x,o.push(x);continue}if(n(x)||S.subRows.length){y.push(x),u[x.id]=x,o.push(x);continue}}else x=S,n(x)&&(y.push(x),u[x.id]=x,o.push(x))}return y};return{rows:m(e),flatRows:o,rowsById:u}}function Z4(e,n,a){var r;const o=[],u={},f=(r=a.options.maxLeafRowFilterDepth)!=null?r:100,m=function(p,g){g===void 0&&(g=0);const y=[];for(let b=0;b<p.length;b++){let x=p[b];if(n(x)){var v;if((v=x.subRows)!=null&&v.length&&g<f){const j=Zm(a,x.id,x.original,x.index,x.depth,void 0,x.parentId);j.subRows=m(x.subRows,g+1),x=j}y.push(x),o.push(x),u[x.id]=x}}return y};return{rows:m(e),flatRows:o,rowsById:u}}function lx(){return e=>ke(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(n,a,r)=>{if(!n.rows.length||!(a!=null&&a.length)&&!r){for(let b=0;b<n.flatRows.length;b++)n.flatRows[b].columnFilters={},n.flatRows[b].columnFiltersMeta={};return n}const o=[],u=[];(a??[]).forEach(b=>{var x;const S=e.getColumn(b.id);if(!S)return;const j=S.getFilterFn();j&&o.push({id:b.id,filterFn:j,resolvedValue:(x=j.resolveFilterValue==null?void 0:j.resolveFilterValue(b.value))!=null?x:b.value})});const f=(a??[]).map(b=>b.id),m=e.getGlobalFilterFn(),p=e.getAllLeafColumns().filter(b=>b.getCanGlobalFilter());r&&m&&p.length&&(f.push("__global__"),p.forEach(b=>{var x;u.push({id:b.id,filterFn:m,resolvedValue:(x=m.resolveFilterValue==null?void 0:m.resolveFilterValue(r))!=null?x:r})}));let g,y;for(let b=0;b<n.flatRows.length;b++){const x=n.flatRows[b];if(x.columnFilters={},o.length)for(let S=0;S<o.length;S++){g=o[S];const j=g.id;x.columnFilters[j]=g.filterFn(x,j,g.resolvedValue,C=>{x.columnFiltersMeta[j]=C})}if(u.length){for(let S=0;S<u.length;S++){y=u[S];const j=y.id;if(y.filterFn(x,j,y.resolvedValue,C=>{x.columnFiltersMeta[j]=C})){x.columnFilters.__global__=!0;break}}x.columnFilters.__global__!==!0&&(x.columnFilters.__global__=!1)}}const v=b=>{for(let x=0;x<f.length;x++)if(b.columnFilters[f[x]]===!1)return!1;return!0};return X4(n.rows,v,e)},Me(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex()))}function ox(e){return n=>ke(()=>[n.getState().pagination,n.getPrePaginationRowModel(),n.options.paginateExpandedRows?void 0:n.getState().expanded],(a,r)=>{if(!r.rows.length)return r;const{pageSize:o,pageIndex:u}=a;let{rows:f,flatRows:m,rowsById:p}=r;const g=o*u,y=g+o;f=f.slice(g,y);let v;n.options.paginateExpandedRows?v={rows:f,flatRows:m,rowsById:p}:v=$4({rows:f,flatRows:m,rowsById:p}),v.flatRows=[];const b=x=>{v.flatRows.push(x),x.subRows.length&&x.subRows.forEach(b)};return v.rows.forEach(b),v},Me(n.options,"debugTable"))}function ux(){return e=>ke(()=>[e.getState().sorting,e.getPreSortedRowModel()],(n,a)=>{if(!a.rows.length||!(n!=null&&n.length))return a;const r=e.getState().sorting,o=[],u=r.filter(p=>{var g;return(g=e.getColumn(p.id))==null?void 0:g.getCanSort()}),f={};u.forEach(p=>{const g=e.getColumn(p.id);g&&(f[p.id]={sortUndefined:g.columnDef.sortUndefined,invertSorting:g.columnDef.invertSorting,sortingFn:g.getSortingFn()})});const m=p=>{const g=p.map(y=>({...y}));return g.sort((y,v)=>{for(let x=0;x<u.length;x+=1){var b;const S=u[x],j=f[S.id],C=j.sortUndefined,k=(b=S==null?void 0:S.desc)!=null?b:!1;let z=0;if(C){const _=y.getValue(S.id),Z=v.getValue(S.id),R=_===void 0,W=Z===void 0;if(R||W){if(C==="first")return R?-1:1;if(C==="last")return R?1:-1;z=R&&W?0:R?C:-C}}if(z===0&&(z=j.sortingFn(y,v,S.id)),z!==0)return k&&(z*=-1),j.invertSorting&&(z*=-1),z}return y.index-v.index}),g.forEach(y=>{var v;o.push(y),(v=y.subRows)!=null&&v.length&&(y.subRows=m(y.subRows))}),g};return{rows:m(a.rows),flatRows:o,rowsById:a.rowsById}},Me(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex()))}/**
   * react-table
   *
   * Copyright (c) TanStack
   *
   * 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
   */function Sc(e,n){return e?J4(e)?E.createElement(e,n):e:null}function J4(e){return W4(e)||typeof e=="function"||e3(e)}function W4(e){return typeof e=="function"&&(()=>{const n=Object.getPrototypeOf(e);return n.prototype&&n.prototype.isReactComponent})()}function e3(e){return typeof e=="object"&&typeof e.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(e.$$typeof.description)}function cx(e){const n={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[a]=E.useState(()=>({current:Y4(n)})),[r,o]=E.useState(()=>a.current.initialState);return a.current.setOptions(u=>({...u,...e,state:{...r,...e.state},onStateChange:f=>{o(f),e.onStateChange==null||e.onStateChange(f)}})),a.current}const dx=({data:e})=>{const n=dn(),[a,r]=E.useState(""),[o,u]=E.useState([]),[f,m]=E.useState(10),p=E.useMemo(()=>[{header:"Nama Pasien",accessorKey:"name"},{header:"Nomor HP",accessorKey:"phone"},{header:"Jumlah Ajuan",accessorKey:"submissionCount",cell:({getValue:v})=>c.jsxs("span",{className:"text-blue-600 font-semibold",children:[v()," kali"]})}],[n]),g=cx({data:e,columns:p,state:{globalFilter:a,sorting:o},onGlobalFilterChange:r,onSortingChange:u,getCoreRowModel:sx(),getFilteredRowModel:lx(),getSortedRowModel:ux(),getPaginationRowModel:ox(),initialState:{pagination:{pageSize:f}}}),y=v=>{const b=Number(v.target.value);m(b),g.setPageSize(b)};return c.jsxs("div",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white p-6 overflow-auto border border-gray-100",children:[c.jsxs("div",{className:"mb-4 flex flex-col md:flex-row justify-between items-center gap-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("label",{htmlFor:"pageSize",className:"text-sm text-gray-700 whitespace-nowrap",children:"Tampilkan"}),c.jsx("select",{id:"pageSize",value:f,onChange:y,className:"px-3 py-2 border border-gray-200 rounded-lg shadow-sm text-sm",children:[10,25,50,100].map(v=>c.jsxs("option",{value:v,children:[v," data"]},v))})]}),c.jsxs("div",{className:"relative w-full max-w-sm",children:[c.jsx(Ic,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),c.jsx("input",{type:"text",value:a??"",onChange:v=>r(v.target.value),placeholder:"Cari data...",className:"pl-10 pr-4 py-2 border border-gray-200 rounded-lg w-full shadow-sm"})]})]}),c.jsxs("table",{className:"w-full text-left",children:[c.jsx("thead",{className:"border-b border-gray-200 text-black font-semibold",children:g.getHeaderGroups().map(v=>c.jsx("tr",{children:v.headers.map(b=>c.jsx("th",{className:"py-4 px-6 text-center cursor-pointer select-none",onClick:b.column.getToggleSortingHandler(),children:c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[Sc(b.column.columnDef.header,b.getContext()),{asc:c.jsx(Yb,{size:14}),desc:c.jsx(Qb,{size:14})}[b.column.getIsSorted()]??null]})},b.id))},v.id))}),c.jsx("tbody",{className:"text-gray-800",children:g.getRowModel().rows.map((v,b)=>c.jsx("tr",{className:b%2===0?"bg-white":"bg-gray-50",children:v.getVisibleCells().map(x=>c.jsx("td",{className:"py-4 px-6 text-center",children:Sc(x.column.columnDef.cell,x.getContext())},x.id))},v.id))})]}),c.jsxs("div",{className:"mt-6 flex flex-col md:flex-row items-center justify-between gap-4",children:[c.jsxs("div",{className:"text-sm text-gray-600",children:["Halaman ",g.getState().pagination.pageIndex+1," dari"," ",g.getPageCount(),"   |   Total:"," ",g.getFilteredRowModel().rows.length," data"]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("button",{onClick:()=>g.previousPage(),disabled:!g.getCanPreviousPage(),className:"px-4 py-2 bg-gray-200 rounded-lg disabled:opacity-50 flex items-center gap-1",children:[c.jsx(Xb,{}),"Sebelumnya"]}),c.jsxs("button",{onClick:()=>g.nextPage(),disabled:!g.getCanNextPage(),className:"px-4 py-2 bg-gray-200 rounded-lg disabled:opacity-50 flex items-center gap-1",children:["Selanjutnya",c.jsx(Kb,{})]})]})]})]})};dx.propTypes={data:Be.array.isRequired};const t3=()=>c.jsxs("div",{className:"py-10 px-6 w-full",children:[c.jsx("h1",{className:"text-3xl font-bold text-black text-center mb-6",children:"Daftar Pasien"}),c.jsxs("div",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white p-6 overflow-auto border border-gray-100",children:[c.jsxs("div",{className:"flex justify-between items-center mb-6",children:[c.jsx("div",{className:"w-36 h-10 bg-gray-200 rounded animate-pulse"}),c.jsx("div",{className:"w-72 h-10 bg-gray-200 rounded animate-pulse"})]}),c.jsxs("div",{className:"grid grid-cols-3 font-semibold text-black py-3 border-b border-gray-300",children:[c.jsx("div",{className:"h-6 w-32"}),c.jsx("div",{className:"h-6 w-40"}),c.jsx("div",{className:"h-6 w-28"})]}),[...Array(5)].map((e,n)=>c.jsxs("div",{className:"grid grid-cols-3 gap-4 py-4 border-b border-gray-100 animate-pulse",children:[c.jsx("div",{className:"h-6 bg-gray-200 rounded w-32"}),c.jsx("div",{className:"h-6 bg-gray-200 rounded w-40"}),c.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"})]},n)),c.jsxs("div",{className:"flex justify-between items-center mt-6",children:[c.jsx("div",{className:"h-6 w-40 bg-gray-200 rounded animate-pulse"}),c.jsxs("div",{className:"flex gap-4",children:[c.jsx("div",{className:"h-10 w-32 bg-gray-200 rounded animate-pulse"}),c.jsx("div",{className:"h-10 w-32 bg-gray-200 rounded animate-pulse"})]})]})]})]}),n3=()=>{const[e,n]=E.useState([]),[a,r]=E.useState(!0),[o,u]=E.useState(null);return E.useEffect(()=>{(async()=>{try{r(!0);const m=await Ki.getPatients();n(m.data.data||[]),r(!1)}catch(m){console.error("Error fetching patients:",m),u("Failed to fetch patients data"),r(!1)}})()},[]),a?c.jsx("div",{className:"px-6 flex justify-center",children:c.jsx(t3,{})}):o?c.jsxs("div",{className:"py-10 px-6",children:[c.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Daftar Pasien"}),c.jsx("div",{className:"py-10 px-6 flex justify-center",children:c.jsx("p",{className:"text-lg text-red-500",children:o})})]}):c.jsxs("div",{className:"py-10 px-6",children:[c.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Daftar Pasien"}),c.jsx("div",{className:"px-6 flex justify-center",children:e.length===0?c.jsxs("div",{className:"w-full flex flex-col items-center py-10",children:[c.jsx("img",{src:"/empty-state.svg",alt:"Empty",className:"w-40 h-40 mb-4 opacity-70",style:{objectFit:"contain"},onError:f=>f.target.style.display="none"}),c.jsx("p",{className:"text-lg text-gray-500",children:"Belum ada pasien yang terdaftar."})]}):c.jsx(dx,{data:e})})]})},a3=()=>c.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-4 animate-pulse",children:[c.jsx("div",{className:"w-full h-40 bg-gray-300 rounded-lg"}),c.jsx("div",{className:"h-4 bg-gray-300 rounded mt-4 w-3/4"}),c.jsx("div",{className:"h-3 bg-gray-200 rounded mt-2 w-1/2"}),c.jsx("div",{className:"h-3 bg-red-200 rounded mt-2 w-2/3"}),c.jsx("div",{className:"h-10 bg-gray-300 rounded-full mt-4"})]}),i3=()=>{const[e,n]=E.useState(1),[a,r]=E.useState([]),[o,u]=E.useState(!0),[f,m]=E.useState(null),[p,g]=E.useState(""),y=8,v=dn();E.useEffect(()=>{(async()=>{try{u(!0);const W=await Ki.getPendingSubmissionsList();r(W.data.data||[]),u(!1)}catch(W){console.error("Error fetching submissions:",W),m("Failed to fetch submissions"),u(!1)}})()},[]);const b=E.useMemo(()=>p.trim()?a.filter(R=>{const W=p.toLowerCase();return R.patientName&&R.patientName.toLowerCase().includes(W)||typeof R.diagnosisAi=="string"&&R.diagnosisAi.toLowerCase().includes(W)||R.submittedAt&&R.submittedAt.toLowerCase().includes(W)}):a,[a,p]),x=e*y,S=x-y,j=b.slice(S,x),C=Math.ceil(b.length/y),k=R=>{n(R)},z=R=>{R.preventDefault(),n(1)},_=R=>{g(R.target.value),n(1)},Z=()=>{const R=[];if(C<=5)for(let ue=1;ue<=C;ue++)R.push(c.jsx("button",{onClick:()=>k(ue),className:`px-4 py-2 rounded-lg cursor-pointer ${e===ue?"bg-[#12476B] text-white":"bg-gray-200 text-black"}`,children:ue},ue));else{R.push(c.jsx("button",{onClick:()=>k(1),className:`px-4 py-2 rounded-lg cursor-pointer ${e===1?"bg-[#12476B] text-white":"bg-gray-200 text-black"}`,children:"1"},1)),e>3&&R.push(c.jsx("span",{className:"px-2",children:"..."},"start-ellipsis"));const ue=Math.max(2,e-1),se=Math.min(C-1,e+1);for(let Q=ue;Q<=se;Q++)R.push(c.jsx("button",{onClick:()=>k(Q),className:`px-4 py-2 rounded-lg cursor-pointer ${e===Q?"bg-[#12476B] text-white":"bg-gray-200 text-black"}`,children:Q},Q));e<C-2&&R.push(c.jsx("span",{className:"px-2",children:"..."},"end-ellipsis")),R.push(c.jsx("button",{onClick:()=>k(C),className:`px-4 py-2 rounded-lg cursor-pointer ${e===C?"bg-[#12476B] text-white":"bg-gray-200 text-black"}`,children:C},C))}return R};return c.jsxs("div",{className:"container mx-auto min-h-screen py-10 px-4",children:[c.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Daftar Pengajuan Umum"}),c.jsx("div",{className:"max-w-xl mx-auto mt-6 mb-8",children:c.jsxs("form",{onSubmit:z,className:"relative",children:[c.jsx("input",{type:"text",placeholder:"Cari di sini...",value:p,onChange:_,className:"w-full py-3 px-4 pr-10 rounded-full border border-gray-300 focus:outline-none focus:ring-2 focus:ring-[#12476B] focus:border-transparent"}),c.jsx("button",{type:"submit",className:"absolute right-3 top-1/2 transform -translate-y-1/2 text-gray-400 hover:text-[#12476B]",children:c.jsx(Ic,{})})]})}),o?c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 my-8",children:[...Array(8)].map((R,W)=>c.jsx(a3,{},W))}):f?c.jsx("div",{className:"flex justify-center items-center h-64",children:c.jsx("p",{className:"text-lg text-red-500",children:f})}):c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 my-8",children:j.length>0?j.map(R=>c.jsxs("div",{className:"bg-white rounded-lg shadow-lg p-4",children:[c.jsx("img",{src:R.imageUrl,alt:"Skin Condition",className:"w-full h-40 object-cover rounded-lg"}),c.jsx("h2",{className:"font-semibold mt-3",children:R.patientName}),c.jsx("p",{className:"text-sm text-gray-600",children:R.submittedAt}),c.jsx("p",{className:"text-sm font-semibold text-red-600 mt-2",children:R.diagnosisAi}),c.jsx("button",{className:"w-full bg-[#12476B] text-white py-2 mt-3 rounded-full cursor-pointer",onClick:()=>v(`/dokter/riwayat-verifikasi/informasi-penyakit/${R.id}`),children:"Detail Pengajuan"})]},R.id)):c.jsx("div",{className:"col-span-4 text-center py-10",children:c.jsx("p",{children:"No submissions found"})})}),!o&&!f&&C>0&&c.jsxs("div",{className:"flex justify-center mt-4 space-x-2",children:[c.jsxs("button",{onClick:()=>k(e-1),disabled:e===1,className:`px-4 py-2 rounded-lg cursor-pointer flex items-center ${e===1?"bg-gray-300 text-gray-500":"bg-gray-200 text-black"}`,children:[c.jsx(db,{className:"mr-2"}),"Sebelumnya"]}),Z(),c.jsxs("button",{onClick:()=>k(e+1),disabled:e===C,className:`px-4 py-2 rounded-lg cursor-pointer flex items-center ${e===C?"bg-gray-300 text-gray-500":"bg-gray-200 text-black"}`,children:["Selanjutnya",c.jsx(fb,{className:"ml-2"})]})]})]})},r3=()=>{var y;const{user:e}=Wi(),[n,a]=E.useState({totalPatients:0,pending:0,verified:0}),[r,o]=E.useState(!0),[u,f]=E.useState(null);E.useEffect(()=>{(async()=>{try{o(!0);const b=await Ki.getStats();a(b.data.data),f(null)}catch(b){console.error("Failed to fetch stats:",b),f("Failed to load statistics. Please try again later.")}finally{o(!1)}})()},[]);const m=new Date,p={weekday:"long",year:"numeric",month:"long",day:"numeric"},g=m.toLocaleDateString("id-ID",p);return c.jsxs("div",{className:"p-6",children:[c.jsxs("h2",{className:"text-[28px]",children:["Hi, ",(y=e==null?void 0:e.data)==null?void 0:y.name]}),c.jsx("h3",{className:"text-[16px] text-[#646464]",children:g}),r?c.jsx("div",{className:"grid grid-cols-3 gap-4 mt-4",children:[1,2,3].map(v=>c.jsxs("div",{className:"space-y-2 p-5 rounded-lg shadow-xl bg-white border border-[#f7f7f7] animate-pulse",children:[c.jsx("div",{className:"h-4 bg-gray-200 rounded w-24"}),c.jsxs("div",{className:"flex items-center gap-4",children:[c.jsx("div",{className:"w-12 h-12 rounded-full bg-gray-200"}),c.jsx("div",{className:"h-6 bg-gray-200 rounded w-12"})]})]},v))}):u?c.jsx("div",{className:"mt-4 p-3 bg-red-100 text-red-700 rounded-md",children:u}):c.jsxs("div",{className:"grid grid-cols-3 gap-4 mt-4",children:[c.jsx(fc,{title:"Pasien",count:n.totalPatients||"-",icon:c.jsx(vE,{})}),c.jsx(fc,{title:"Menunggu Verifikasi",count:n.pending||"-",icon:c.jsx(dE,{})}),c.jsx(fc,{title:"Terverifikasi",count:n.verified||"-",icon:c.jsx(cE,{})})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-4 mt-6",children:[c.jsx("div",{className:"lg:col-span-7",children:c.jsx(s3,{})}),c.jsx("div",{className:"lg:col-span-5",children:c.jsx(l3,{})})]})]})},fc=({title:e,count:n,icon:a})=>c.jsxs("div",{className:"space-y-2 p-5 rounded-lg shadow-xl bg-white border border-[#f7f7f7]",children:[c.jsx("p",{className:"text-[16px] text-gray-500",children:e}),c.jsxs("div",{className:"flex items-center gap-4 ",children:[c.jsx("div",{className:"text-2xl border border-[#E3E3E3] rounded-full p-3",children:a}),c.jsx("p",{className:"text-xl font-bold text-[20px]",children:n})]})]});fc.propTypes={title:Be.string.isRequired,count:Be.number.isRequired,icon:Be.element.isRequired};const s3=()=>{const[e,n]=E.useState([]),[a,r]=E.useState(!0),[o,u]=E.useState(null);E.useEffect(()=>{(async()=>{try{r(!0);const p=await Ki.getPendingSubmissions({limit:5});n(p.data.data||[]),u(null)}catch(p){console.error("Failed to fetch pending summaries:",p),u("Failed to load verification requests. Please try again later.")}finally{r(!1)}})()},[]);const f=m=>{const p=new Date(m);return new Intl.DateTimeFormat("id-ID",{day:"2-digit",month:"2-digit",year:"numeric"}).format(p)};return c.jsxs("div",{children:[c.jsx("h2",{className:"lg:hidden font-bold text-[24px]",children:"Ajuan Verifikasi"}),c.jsxs("div",{className:"p-5 rounded-lg shadow-xl bg-white border border-[#f7f7f7]",children:[c.jsxs("div",{className:"flex items-center justify-between mb-3",children:[c.jsx("h2",{className:"hidden lg:block font-bold text-[30px]",children:"Ajuan Verifikasi"}),c.jsxs("a",{href:"/dokter/daftar-pengajuan",className:"text-[#12476B] flex items-center gap-2 text-[16px] font-bold",children:["Lihat semua ",c.jsx(Gb,{})]})]}),c.jsx("hr",{className:"hidden lg:block border border-[#E3E3E3]"}),a?c.jsx("div",{className:"animate-pulse space-y-4 mt-5",children:[...Array(3)].map((m,p)=>c.jsx("div",{className:"h-12 bg-gray-200 rounded w-full"},p))}):o?c.jsx("div",{className:"mt-5 p-3 bg-red-100 text-red-700 rounded-md",children:o}):e.length===0?c.jsx("div",{className:"mt-5 text-center py-8 text-gray-500",children:"Tidak ada ajuan verifikasi saat ini"}):c.jsxs("table",{className:"w-full mt-5",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{className:"text-[16px] py-4",children:"Tanggal"}),c.jsx("th",{className:"text-[16px] py-4",children:"Pasien"}),c.jsx("th",{className:"text-[16px] py-4",children:"Diagnosis AI"}),c.jsx("th",{className:"text-[16px] py-4",children:"Verifikasi"})]})}),c.jsx("tbody",{children:e.map(m=>c.jsxs("tr",{children:[c.jsx("td",{className:"text-[16px] py-2 text-center",children:m.submittedAt?f(m.submittedAt):"-"}),c.jsx("td",{className:"text-[16px] py-2 text-center",children:m.patientName||"-"}),c.jsx("td",{className:"text-[16px] py-2 text-center text-[#C11616]",children:m.diagnosisAi||"-"}),c.jsx("td",{className:"text-[16px] py-2 text-center",children:c.jsxs("button",{className:"w-full bg-[#12476B] text-white px-4 py-2 rounded-xl flex items-center justify-center gap-2",onClick:()=>window.location.href=`/dokter/riwayat-verifikasi/informasi-penyakit/${m.id}`,children:[c.jsx(nm,{})," Verifikasi"]})})]},m.id))})]})]})]})},l3=()=>{const[e,n]=E.useState([]),[a,r]=E.useState(!0),[o,u]=E.useState(null);return E.useEffect(()=>{(async()=>{try{r(!0);const m=await Ki.getPatients({limit:5});n(m.data.data||[]),u(null)}catch(m){console.error("Failed to fetch patient data:",m),u("Failed to load patient data. Please try again later.")}finally{r(!1)}})()},[]),c.jsxs("div",{children:[c.jsx("h2",{className:"lg:hidden font-bold mb-3 text-[24px]",children:"Pasien"}),c.jsxs("div",{className:"p-5 rounded-lg shadow-xl bg-white border border-[#f7f7f7]",children:[c.jsxs("div",{className:"flex items-center justify-between mb-3",children:[c.jsx("h2",{className:"hidden lg:block font-bold mb-3 text-[30px]",children:"Pasien"}),c.jsxs("a",{href:"/dokter/daftar-pasien",className:"text-[#12476B] flex items-center gap-2 text-[16px] font-bold",children:["Lihat semua ",c.jsx(Gb,{})]})]}),c.jsx("hr",{className:"hidden lg:block border border-[#E3E3E3]"}),a?c.jsx("div",{className:"animate-pulse space-y-4 mt-5",children:[...Array(3)].map((f,m)=>c.jsx("div",{className:"h-12 bg-gray-200 rounded w-full"},m))}):o?c.jsx("div",{className:"mt-5 p-3 bg-red-100 text-red-700 rounded-md",children:o}):e.length===0?c.jsx("div",{className:"mt-5 text-center py-8 text-gray-500",children:"Tidak ada data pasien saat ini"}):c.jsxs("table",{className:"w-full mt-5",children:[c.jsx("thead",{children:c.jsxs("tr",{children:[c.jsx("th",{className:"text-[16px] py-4",children:"Nama"}),c.jsx("th",{className:"text-[16px] py-4",children:"Nomor Telepon"}),c.jsx("th",{className:"text-[16px] py-4",children:"Jumlah Ajuan"})]})}),c.jsx("tbody",{children:e.map((f,m)=>c.jsxs("tr",{className:`text-[16px] py-2 text-center ${m%2===0?"bg-[#F6F4F4]":""}`,children:[c.jsx("td",{className:"py-2",children:f.name||"-"}),c.jsx("td",{className:"py-2",children:f.phone||"-"}),c.jsx("td",{className:"py-2",children:f.submissionCount||0})]},f.id||m))})]})]})]})},Gs="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAAoCAYAAABjPNNTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAOySURBVHgBzZk7TxtBFIXPbKKgEBI5bVLE6cCKFKdIT4Kow6NGOC1IPDo6TAGiC/wCQNQo0IIA0yEoAgUYqmwDNQIJ0eDJPbte22t28YxtmXzSyDM7a/v4zOPeHSvUiU4mE+joSOP+vg9KfZBLaXlNQOuEd4NSV1J3pebCcXIoFPbU6ekR6kDBEv3pU7cnzHGGS4LMceU9C1I21NmZa/omY5G6szOJZ8+W5Au60RyyuL1dVK57VetGI5Hi3riIy9bhXC1cmQY/xdXcYzc9KtKbd69e/W6ie3FkZb7OxHXGivSG13F2pZpEK1BqQZ2cTEZ2RV1sucCSmmihTuTNXCCtFki0ntBdXRPVlx+I1KnUdAvmYDxK/ZKR7A5dqmwUh/kvbHn3DpibA96/f9i3vQ3Mz8MSV7anL8H29DzUpdQS6mF0FPj6NbpvaAjI54GNDViQRHs7hz3LRmm4PYuV6kY9BA6OjQG9veWyvh7ut2Pc2wIrRYrADBrl+hq4vCyXiws0QAIvX2ZY8eak1Vzs7ARevwbevAG+f/ddCq6dnQE3N+V7OVfZT7EUzX7O0aBdC6VysiV980WmUhl5qT0f+/qA2Vk0hcFBX3Qtbm/f+guHW44yCOP8UBY6R2yHk+7TcbpY6fhjtLf3+SKV+mz0BgqkA/v7/pdxoZi4EcCVPjUFHByY/0Ct08HCScMGCiRcKNXX4tokcI+OmqJU0tHpdOPpFxfI1hawvIySwLU1YHMz+v6ODljw4Tnu7hKystEQXMEURrGETtW3N0aRaFBda/j/RSrlOjYPRE9F4KSLVmISbQIKhWNfpNZ7sMF0I64maluqhVK7TrGSgw3B/tjVFW4HGzTb/CHVjgWr3+ZHlpx88WIdNjBJIIzl5PwcyGT8CBSIYGQaGEBIYE+PXz88hBFMMGTNlAK2PFvsGueTjN3crAlzxp0d372oUBdkSQyJrNNd5pomFAoZEblSFsmk139CNKOejIgC6bhJ3JZzJJXPf2Q1/Ixj4yahMyMj5bwxjiB7Wl01n49aT4rIhYciUykmGn/w1FS4SEIRp3g0N4OnRqn+yuaDsChCeTCVw9MxU32OGR2729r6iwegrUXrRc+kKh4/sJLdnkknWgEF5vMTUV2xWZCXeLS1fZGq3UZfHzNxAj0tMEBWfVZeptFsOKW0buwQNfR5/vBnpQyjcXjGsyiPqwtNO46upELsD/CUwQ5XyoqpuABrkZUUz4+YZXz2/h4JP3VeFUtOhvRIynGtYY3jH7CVaxwUH/hYAAAAAElFTkSuQmCC",tg=({onClose:e,onDelete:n})=>c.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-black/30 z-50",children:c.jsxs("div",{className:"bg-white w-96 p-6 rounded-xl shadow-lg relative",children:[c.jsxs("div",{className:"flex justify-between items-center gap-2 border-b border-gray-200 pb-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("img",{src:Gs,alt:""}),c.jsx("h2",{className:"text-lg font-semibold text-gray-700",children:"Hapus Hasil Deteksi"})]}),c.jsx("button",{onClick:e,className:"text-gray-600 hover:text-red-500 cursor-pointer",children:"✖"})]}),c.jsx("div",{className:"my-2",children:c.jsx("p",{className:"text-sm font-normal",children:"Apakah kamu yakin ingin menghapus hasil deteksi?"})}),c.jsxs("div",{onClick:e,className:"w-full flex gap-x-1 mt-4",children:[c.jsx("button",{className:"w-1/2 px-4 py-2 border border-gray-400 rounded-lg text-gray-600 hover:bg-gray-100",children:"Kembali"}),c.jsx("button",{onClick:n,className:"w-1/2 px-3 py-1 bg-red-500 text-white rounded-lg hover:bg-red-600 cursor-pointer",children:c.jsxs("span",{className:"flex justify-center items-center gap-2",children:[c.jsx("img",{src:Gs,alt:""}),"Hapus"]})})]})]})});tg.propTypes={onClose:Be.func.isRequired,onDelete:Be.func};const Mn={getDetections(e){return ut.get(ht.detectionsPatient.history,{params:e})},getDetectionsById(e){return ut.get(`${ht.detectionsPatient.detail}/${e}`)},createDetection:e=>ut.post(`${ht.detectionsPatient.create}`,e,{headers:{"Content-Type":"multipart/form-data"}}),updateDetection:async(e,n,a)=>ut.patch(`${ht.detectionsPatient.update}/${e}`,n,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${a}`}}),getSubmissions(e){return ut.get(ht.submissionsPatient.history,{params:e})},getSubmissionsById(e){return ut.get(`${ht.submissionsPatient.detail}/${e}`)},deleteSubmission:async(e,n)=>await ut.delete(`${ht.submissionsPatient.delete}/${e}`,{headers:{Authorization:`Bearer ${n}`}}),getListDoctors(e){return ut.get(ht.doctor.doctorList,{params:e})}},fx=({data:e,onClose:n,onUpdated:a})=>{const[r,o]=E.useState(e.complaint||""),[u,f]=E.useState(!1),[m,p]=E.useState(!1),g=localStorage.getItem("token"),y=async()=>{if(!u){f(!0);return}try{p(!0),await Mn.updateDetection(e.id,{complaint:r},g),a&&a({complaint:r}),n()}catch(v){console.error("Gagal memperbarui keluhan:",v),alert("Terjadi kesalahan saat memperbarui data.")}finally{p(!1)}};return c.jsx("div",{className:"fixed inset-0 flex items-center justify-center bg-black/30 z-50",children:c.jsxs("div",{className:"bg-white w-96 p-6 rounded-xl shadow-lg relative",children:[c.jsxs("div",{className:"flex justify-between items-center gap-2 border-b border-gray-200 pb-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:"bg-orange-400 p-2 rounded-full",children:c.jsx(Qv,{className:"text-white text-lg"})}),c.jsx("h2",{className:"text-lg font-semibold text-gray-700",children:"Perbarui Keluhan"})]}),c.jsx("button",{onClick:n,className:"text-gray-600 hover:text-red-500 cursor-pointer",children:"✖"})]}),c.jsx("textarea",{onChange:v=>o(v.target.value),value:r,disabled:!u,className:"w-full mt-3 p-3 border rounded-lg text-gray-700 h-40 resize-none focus:outline-none focus:ring-2 focus:ring-orange-400"}),c.jsxs("div",{className:"w-full flex gap-x-1 mt-4",children:[c.jsx("button",{onClick:n,className:"w-1/2 px-4 py-2 border border-gray-400 rounded-lg text-gray-600 hover:bg-gray-100",children:"Kembali"}),c.jsx("button",{onClick:y,disabled:m,className:"w-1/2 px-4 py-2 bg-orange-400 text-white rounded-lg hover:bg-orange-600 cursor-pointer",children:c.jsxs("span",{className:"flex justify-center items-center gap-2",children:[c.jsx(Qv,{className:"text-white text-lg"}),u?m?"Menyimpan...":"Simpan":"Perbarui"]})})]})]})})};fx.propTypes={data:Be.object.isRequired,onClose:Be.func.isRequired,onUpdated:Be.func};const hx="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAAoCAYAAABjPNNTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAS8SURBVHgBxVlPbxtFFH9vbZHS0DaiEpVSqXWQKpIoCOcApxZsKnFN+ACl4QoC0hsSSHUOUG44ILg2iA/Q9gOAHYVTi0QjQZxSqbEqtRKRitLQooBsT+e3zxPvrnd3xonr/iRnd2fezP72/Zs3E6Y9QlVyI0Qv5CnbnCXik6QoT8y6TY2IBG/p+7q+0T+vSo3WMhfXbtIewNQjVGWqIMS88x1CzqjrMWVqqGtcXK+7DnImqSrjOcpmLuu7AvUHJWr8u8jF+pZN0ImkWpn6RP8t7UFzNtSJWu/zmfVqmlAqSd/vssNX+qi9JJT4zNpCUmciSTGvV9G3ORoEmMt8+o8LsV1xjQMnuMsmnqgXK+wHyIAJAkrNq+WJ+WhzF0m1MnlxAD6YDI+/VivjhWBTyNxtM29QL8geIho6TnRA/zKHpG37OtHOfdoH6jo9TZv0lA2/kC87T3PkdaITHxINjwvRIO7/SHTnq8C8uv/Fs0TNf4ge11w+IEfeQZi9hIddTWotFtrBkg68cOJbIdnQL928SvRonei/e/ID0I4fgI94dSn8IX9+JuPSsaW1OQZtdjSZ4TlygSEIbd39rkMmDgdGhSBkah/JFeNf/pTo75/SxxKNkPf8nL6W/cDxfZH5PNnw0qwQBDmY00Zwakk0uKFlH97QptYa37gkbUfeICs8b8a/+A8Zr0AuOH5O/Onu9+lyuwQPi/ypL4iOnpW+zGG5NrbJDlXAqueZB6s8Xgz/2rxiFfVNimi/rX3v97m2mb+RQIOpQRyadUHm4KyQ9Pg1qzAIArbJT30psnCJB9rvdu4JUZj6xAdCGM+uUCovJFGw2oBcCJgIjgM0dWxGCAZdAqZFDjUBtJMyRxTMOU9V8m7ll0khSTkOBKEpP+ojPosIh/nvXBKN9gKmk1qTO/uvEeGvIPjwejiJA/BBY/7Nax15+G10EYjHiEf9AFITcPvzcDu0O3qu2/xwnaNvd/zcgv6QNP4a9LU087tpsA2uZ7Eh0pWPXdYkbpgq6pfGz0wuRMKHBtEeNT9gPip9xdmFLItKVx1sqR9NVA9PJJNELjSAf9Y+jp8LHxocl4ZWa7VNUi0j1FOFH91qk3xF8l8QyJ2/viN9WFFspRo+9PEtckKWK+KTzFWrMDQJMqPvxffDHx/8LNVNGkFoEe4ATbvg/9aqkGw+Z62bfPx1VZweQbFXYEUCEFBWcBUx45Pk4k0ciVStY6AlaBNR2ytRU7aZKspl1eHmkn8xz7KvcCx6x3SCPjYrL9q+IUUvggDR2mxXN/BNrDJDoxL1IAdEc2YSlKrzm7WxEEkhOqFJcoFcgASOddqlLjQVPNzFdVlkdYFP18rdJH+ZzOt09Bv1CqwcMKepFQ2gVZDqdVMW0GIXSb9/ebKk16GL9CzRoOngMWHXsshvrZWcgujpYSF6jhm/djeG3oXKaeBQi/rgqhRtjSXpp6SmKg6WKAjW5uN6Eqsg/yS2OTStb90S/f6wkETQ50IO0FVSSV/6H0ywFKv9HaKG5sPePMMlp/25dTJ9OsG0qE8oyn07jg7Nb8gSz+jRvW09pCT8wZWcQc8kQ+/0l1LG3kFvifHvkcCuE9rCeY5HVW1WnVLUqs2sSXgCAPrTTVmQkTUAAAAASUVORK5CYII=",Zc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACkAAAAoCAYAAABjPNNTAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAPGSURBVHgBvZk9TBNhGMf/7yEIIqYuDmDCsSgSEoqJuJJg4gjEREBjgNlEYdLEgTLoKgzOiMagDgqjAwKJEw5CooAs3iAMLjQaClHb1+e59vBoe72n16O/5Gh797zH/56P9+sUAmJO6cjJakSTGj2qAo3QiCogoung6/Q9rjUsGLAMhcUUsLR2Xa0gAApF0jqjO1mYYWDQEVQEljYwoZOY2xhQlrSRWGTzjDYrFKZIWCfCQCGWSGDSGlZxf1MBra/1XZ1CLIDn/LBSGsPk1cVCRgVFct7V1uBtaN7zVhFb61Pj3pc94PBSwi/QVxNlgIRMfOlXox7Xcim3QJeYvEKNfMZcICizQIbSauTCSz2SfT5HZMsrPXbkOVgA8uZjimRn1rn/ZML8DQGoq0wfbrYTCIqV2EO70z0dc19R6TCLRfU0AV0N9HCncwU6bOykxc5/B2YtSDFPVIPDHrN1OWfZxZli8aXHBO5f9BbmxdYuMET/YXtXZB4nbzaxNw9yktQOSVreOgc8vFy8QKahFnhzFaivFZlHamrSmmyRnIsU6kG/Vnzz260oCX64Rx0yWxLXnfm0/3RKGrEXg3gwm0tn0ocf3MvwqGc4PyCgQ3DjOx+AZ5v+dl31EEEF1GNXN+Vjm58xe7BZML1Yp2quq/K34x5BAs1Jo+nCUYj6GQuTXYz0fsqAaUQp5hLjUyHkopsG6UMrNBr71aHPEcNFI3IMIXPlLHA+5McOXeS9doQKFbVlSBdE0snCrz8yuy3Z0GjjDIuWn+HP3xAx9B54sOxvJxWZSmHVDjf1RUs0LJqFjNlDfGO/quRwSyr36w5EqEos2J6kuC9KGswKZpo8KklEzm9DROovVm2RVfuYlTR4vinPuULwVO3jD387dh7XjC1yheZsWuBNFvjkM0qC7zEkmrUCSYWn/Hkwn6S8HJc0ZG9yYWwXUZ0OPEu/9k5WNOQ0a6NPTfP3Q2scWqktKOGMiPOOp1vdJrUrsHxgQcsU2jlLFmKXyNH1fjWRI7LlhY6iAp8QAHshljX7CeLtjECLBDY5vw8taddu0tacMOzZcK6xKPcRFJVEr/t3zrp7bUDFtLBLOhLISbazXOTdwTi+h14tGIXChnbuJtlJ2ecLbljRKMSFZKIMsMD1G2ok3zXDqxF3ouTRdnK/qKMvCQqxl0BGtInaMqNjZDmGkOGU0qVuorqxw0/bHpL1uYA4KZxM7GMitO1oNy6xvHAvemOfxE1LxTkULdIN7x8pehNBmd1Gn5GsVWc8cyzSG4cVeuOw6hdWL/4B4RFA8y8V2YsAAAAASUVORK5CYII=",mx="data:image/jpeg;base64, ",gx=({item:e,handleinfo:n,handleEdit:a,handleDelete:r,handleSubmission:o})=>{const u=parseFloat(e.persentase);let f="text-green-600";u>=50&&(f="text-red-600");const m=e.status==="rejected"?"text-red-600":e.status==="pending"?"text-yellow-600":"text-green-600";return c.jsx("div",{className:"block lg:hidden w-full mx-auto bg-white rounded-3xl shadow-lg p-6 mb-5",children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex justify-between",children:[c.jsx("span",{className:"font-bold",children:"Tanggal Pengajuan"}),c.jsx("span",{children:e.date})]}),c.jsxs("div",{className:"flex gap-x-2 justify-between",children:[c.jsx("span",{className:"font-bold",children:"Diagnosis AI"}),c.jsx("div",{className:`${f} text-right`,children:c.jsx("span",{className:"font-semibold",children:e.persentase})})]}),c.jsxs("div",{className:"flex justify-between items-center",children:[c.jsx("span",{className:"font-bold",children:"Gambar"}),c.jsx("img",{src:e.imageUrl||mx,alt:"Deteksi",className:"w-24 h-24 rounded-lg shadow-md"})]}),c.jsxs("div",{className:"flex justify-between",children:[c.jsx("span",{className:"font-bold",children:"Keluhan"}),c.jsx("p",{className:"text-right text-sm max-w-[60%] truncate",children:e.keluhan})]}),c.jsxs("div",{className:"flex justify-between",children:[c.jsx("span",{className:"font-bold",children:"Pengajuan"}),c.jsx("span",{className:`font-semibold ${e.pengajuan==="Sudah"?"text-green-600":"text-red-600"}`,children:e.pengajuan})]}),c.jsxs("div",{className:"flex justify-between",children:[c.jsx("span",{className:"font-bold",children:"Status"}),c.jsx("span",{className:`font-semibold ${m}`,children:e.status})]}),c.jsxs("div",{className:"flex justify-center gap-4 mt-4",children:[c.jsx("button",{onClick:n,className:"rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Zc,alt:"Info"})}),c.jsx("button",{className:"rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Gs,alt:"Hapus",onClick:r})}),e.pengajuan==="Sudah"&&c.jsx("button",{className:"rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:hx,alt:"Edit",onClick:a})})]}),e.pengajuan==="Tidak"&&c.jsx("div",{className:"w-full flex justify-center",children:c.jsx("button",{onClick:o,className:"w-3/4 text-sm font-semibold border border-black py-2 mt-2 rounded-lg cursor-pointer",children:"Ajukan Verifikasi"})})]})})};gx.propTypes={item:Be.object.isRequired,handleinfo:Be.func.isRequired,handleEdit:Be.func.isRequired,handleDelete:Be.func.isRequired,handleSubmission:Be.func.isRequired};const px=()=>c.jsx("div",{children:c.jsxs("div",{className:"w-full flex flex-row justify-center items-center gap-2",children:[c.jsx("div",{className:"w-4 h-4 rounded-full bg-sky-700 animate-bounce [animation-delay:.7s]"}),c.jsx("div",{className:"w-4 h-4 rounded-full bg-sky-700 animate-bounce [animation-delay:.3s]"}),c.jsx("div",{className:"w-4 h-4 rounded-full bg-sky-700 animate-bounce [animation-delay:.7s]"})]})});var Ws=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Pr=typeof window>"u"||"Deno"in globalThis;function ea(){}function o3(e,n){return typeof e=="function"?e(n):e}function mm(e){return typeof e=="number"&&e>=0&&e!==1/0}function yx(e,n){return Math.max(e+(n||0)-Date.now(),0)}function ks(e,n){return typeof e=="function"?e(n):e}function ha(e,n){return typeof e=="function"?e(n):e}function $v(e,n){const{type:a="all",exact:r,fetchStatus:o,predicate:u,queryKey:f,stale:m}=e;if(f){if(r){if(n.queryHash!==ng(f,n.options))return!1}else if(!vo(n.queryKey,f))return!1}if(a!=="all"){const p=n.isActive();if(a==="active"&&!p||a==="inactive"&&p)return!1}return!(typeof m=="boolean"&&n.isStale()!==m||o&&o!==n.state.fetchStatus||u&&!u(n))}function Xv(e,n){const{exact:a,status:r,predicate:o,mutationKey:u}=e;if(u){if(!n.options.mutationKey)return!1;if(a){if(Vr(n.options.mutationKey)!==Vr(u))return!1}else if(!vo(n.options.mutationKey,u))return!1}return!(r&&n.state.status!==r||o&&!o(n))}function ng(e,n){return((n==null?void 0:n.queryKeyHashFn)||Vr)(e)}function Vr(e){return JSON.stringify(e,(n,a)=>gm(a)?Object.keys(a).sort().reduce((r,o)=>(r[o]=a[o],r),{}):a)}function vo(e,n){return e===n?!0:typeof e!=typeof n?!1:e&&n&&typeof e=="object"&&typeof n=="object"?Object.keys(n).every(a=>vo(e[a],n[a])):!1}function vx(e,n){if(e===n)return e;const a=Kv(e)&&Kv(n);if(a||gm(e)&&gm(n)){const r=a?e:Object.keys(e),o=r.length,u=a?n:Object.keys(n),f=u.length,m=a?[]:{};let p=0;for(let g=0;g<f;g++){const y=a?g:u[g];(!a&&r.includes(y)||a)&&e[y]===void 0&&n[y]===void 0?(m[y]=void 0,p++):(m[y]=vx(e[y],n[y]),m[y]===e[y]&&e[y]!==void 0&&p++)}return o===f&&p===o?e:m}return n}function Ac(e,n){if(!n||Object.keys(e).length!==Object.keys(n).length)return!1;for(const a in e)if(e[a]!==n[a])return!1;return!0}function Kv(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function gm(e){if(!Zv(e))return!1;const n=e.constructor;if(n===void 0)return!0;const a=n.prototype;return!(!Zv(a)||!a.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function Zv(e){return Object.prototype.toString.call(e)==="[object Object]"}function u3(e){return new Promise(n=>{setTimeout(n,e)})}function pm(e,n,a){return typeof a.structuralSharing=="function"?a.structuralSharing(e,n):a.structuralSharing!==!1?vx(e,n):n}function c3(e,n,a=0){const r=[...e,n];return a&&r.length>a?r.slice(1):r}function d3(e,n,a=0){const r=[n,...e];return a&&r.length>a?r.slice(0,-1):r}var ag=Symbol();function wx(e,n){return!e.queryFn&&(n!=null&&n.initialPromise)?()=>n.initialPromise:!e.queryFn||e.queryFn===ag?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var kr,Bi,Os,kw,f3=(kw=class extends Ws{constructor(){super();Ce(this,kr);Ce(this,Bi);Ce(this,Os);he(this,Os,n=>{if(!Pr&&window.addEventListener){const a=()=>n();return window.addEventListener("visibilitychange",a,!1),()=>{window.removeEventListener("visibilitychange",a)}}})}onSubscribe(){M(this,Bi)||this.setEventListener(M(this,Os))}onUnsubscribe(){var n;this.hasListeners()||((n=M(this,Bi))==null||n.call(this),he(this,Bi,void 0))}setEventListener(n){var a;he(this,Os,n),(a=M(this,Bi))==null||a.call(this),he(this,Bi,n(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(n){M(this,kr)!==n&&(he(this,kr,n),this.onFocus())}onFocus(){const n=this.isFocused();this.listeners.forEach(a=>{a(n)})}isFocused(){var n;return typeof M(this,kr)=="boolean"?M(this,kr):((n=globalThis.document)==null?void 0:n.visibilityState)!=="hidden"}},kr=new WeakMap,Bi=new WeakMap,Os=new WeakMap,kw),ig=new f3,_s,zi,Bs,Mw,h3=(Mw=class extends Ws{constructor(){super();Ce(this,_s,!0);Ce(this,zi);Ce(this,Bs);he(this,Bs,n=>{if(!Pr&&window.addEventListener){const a=()=>n(!0),r=()=>n(!1);return window.addEventListener("online",a,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",a),window.removeEventListener("offline",r)}}})}onSubscribe(){M(this,zi)||this.setEventListener(M(this,Bs))}onUnsubscribe(){var n;this.hasListeners()||((n=M(this,zi))==null||n.call(this),he(this,zi,void 0))}setEventListener(n){var a;he(this,Bs,n),(a=M(this,zi))==null||a.call(this),he(this,zi,n(this.setOnline.bind(this)))}setOnline(n){M(this,_s)!==n&&(he(this,_s,n),this.listeners.forEach(r=>{r(n)}))}isOnline(){return M(this,_s)}},_s=new WeakMap,zi=new WeakMap,Bs=new WeakMap,Mw),Cc=new h3;function ym(){let e,n;const a=new Promise((o,u)=>{e=o,n=u});a.status="pending",a.catch(()=>{});function r(o){Object.assign(a,o),delete a.resolve,delete a.reject}return a.resolve=o=>{r({status:"fulfilled",value:o}),e(o)},a.reject=o=>{r({status:"rejected",reason:o}),n(o)},a}function m3(e){return Math.min(1e3*2**e,3e4)}function bx(e){return(e??"online")==="online"?Cc.isOnline():!0}var xx=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function Ph(e){return e instanceof xx}function Sx(e){let n=!1,a=0,r=!1,o;const u=ym(),f=j=>{var C;r||(b(new xx(j)),(C=e.abort)==null||C.call(e))},m=()=>{n=!0},p=()=>{n=!1},g=()=>ig.isFocused()&&(e.networkMode==="always"||Cc.isOnline())&&e.canRun(),y=()=>bx(e.networkMode)&&e.canRun(),v=j=>{var C;r||(r=!0,(C=e.onSuccess)==null||C.call(e,j),o==null||o(),u.resolve(j))},b=j=>{var C;r||(r=!0,(C=e.onError)==null||C.call(e,j),o==null||o(),u.reject(j))},x=()=>new Promise(j=>{var C;o=k=>{(r||g())&&j(k)},(C=e.onPause)==null||C.call(e)}).then(()=>{var j;o=void 0,r||(j=e.onContinue)==null||j.call(e)}),S=()=>{if(r)return;let j;const C=a===0?e.initialPromise:void 0;try{j=C??e.fn()}catch(k){j=Promise.reject(k)}Promise.resolve(j).then(v).catch(k=>{var W;if(r)return;const z=e.retry??(Pr?0:3),_=e.retryDelay??m3,Z=typeof _=="function"?_(a,k):_,R=z===!0||typeof z=="number"&&a<z||typeof z=="function"&&z(a,k);if(n||!R){b(k);return}a++,(W=e.onFail)==null||W.call(e,a,k),u3(Z).then(()=>g()?void 0:x()).then(()=>{n?b(k):S()})})};return{promise:u,cancel:f,continue:()=>(o==null||o(),u),cancelRetry:m,continueRetry:p,canStart:y,start:()=>(y()?S():x().then(S),u)}}var g3=e=>setTimeout(e,0);function p3(){let e=[],n=0,a=m=>{m()},r=m=>{m()},o=g3;const u=m=>{n?e.push(m):o(()=>{a(m)})},f=()=>{const m=e;e=[],m.length&&o(()=>{r(()=>{m.forEach(p=>{a(p)})})})};return{batch:m=>{let p;n++;try{p=m()}finally{n--,n||f()}return p},batchCalls:m=>(...p)=>{u(()=>{m(...p)})},schedule:u,setNotifyFunction:m=>{a=m},setBatchNotifyFunction:m=>{r=m},setScheduler:m=>{o=m}}}var Ut=p3(),Mr,Dw,Ax=(Dw=class{constructor(){Ce(this,Mr)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mm(this.gcTime)&&he(this,Mr,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Pr?1/0:5*60*1e3))}clearGcTimeout(){M(this,Mr)&&(clearTimeout(M(this,Mr)),he(this,Mr,void 0))}},Mr=new WeakMap,Dw),zs,Ls,Jn,Dr,tn,bo,Or,ca,ti,Ow,y3=(Ow=class extends Ax{constructor(n){super();Ce(this,ca);Ce(this,zs);Ce(this,Ls);Ce(this,Jn);Ce(this,Dr);Ce(this,tn);Ce(this,bo);Ce(this,Or);he(this,Or,!1),he(this,bo,n.defaultOptions),this.setOptions(n.options),this.observers=[],he(this,Dr,n.client),he(this,Jn,M(this,Dr).getQueryCache()),this.queryKey=n.queryKey,this.queryHash=n.queryHash,he(this,zs,v3(this.options)),this.state=n.state??M(this,zs),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var n;return(n=M(this,tn))==null?void 0:n.promise}setOptions(n){this.options={...M(this,bo),...n},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&M(this,Jn).remove(this)}setData(n,a){const r=pm(this.state.data,n,this.options);return Fe(this,ca,ti).call(this,{data:r,type:"success",dataUpdatedAt:a==null?void 0:a.updatedAt,manual:a==null?void 0:a.manual}),r}setState(n,a){Fe(this,ca,ti).call(this,{type:"setState",state:n,setStateOptions:a})}cancel(n){var r,o;const a=(r=M(this,tn))==null?void 0:r.promise;return(o=M(this,tn))==null||o.cancel(n),a?a.then(ea).catch(ea):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(M(this,zs))}isActive(){return this.observers.some(n=>ha(n.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===ag||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(n=>n.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(n=0){return this.state.isInvalidated||this.state.data===void 0||!yx(this.state.dataUpdatedAt,n)}onFocus(){var a;const n=this.observers.find(r=>r.shouldFetchOnWindowFocus());n==null||n.refetch({cancelRefetch:!1}),(a=M(this,tn))==null||a.continue()}onOnline(){var a;const n=this.observers.find(r=>r.shouldFetchOnReconnect());n==null||n.refetch({cancelRefetch:!1}),(a=M(this,tn))==null||a.continue()}addObserver(n){this.observers.includes(n)||(this.observers.push(n),this.clearGcTimeout(),M(this,Jn).notify({type:"observerAdded",query:this,observer:n}))}removeObserver(n){this.observers.includes(n)&&(this.observers=this.observers.filter(a=>a!==n),this.observers.length||(M(this,tn)&&(M(this,Or)?M(this,tn).cancel({revert:!0}):M(this,tn).cancelRetry()),this.scheduleGc()),M(this,Jn).notify({type:"observerRemoved",query:this,observer:n}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Fe(this,ca,ti).call(this,{type:"invalidate"})}fetch(n,a){var p,g,y;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(a!=null&&a.cancelRefetch))this.cancel({silent:!0});else if(M(this,tn))return M(this,tn).continueRetry(),M(this,tn).promise}if(n&&this.setOptions(n),!this.options.queryFn){const v=this.observers.find(b=>b.options.queryFn);v&&this.setOptions(v.options)}const r=new AbortController,o=v=>{Object.defineProperty(v,"signal",{enumerable:!0,get:()=>(he(this,Or,!0),r.signal)})},u=()=>{const v=wx(this.options,a),b={client:M(this,Dr),queryKey:this.queryKey,meta:this.meta};return o(b),he(this,Or,!1),this.options.persister?this.options.persister(v,b,this):v(b)},f={fetchOptions:a,options:this.options,queryKey:this.queryKey,client:M(this,Dr),state:this.state,fetchFn:u};o(f),(p=this.options.behavior)==null||p.onFetch(f,this),he(this,Ls,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((g=f.fetchOptions)==null?void 0:g.meta))&&Fe(this,ca,ti).call(this,{type:"fetch",meta:(y=f.fetchOptions)==null?void 0:y.meta});const m=v=>{var b,x,S,j;Ph(v)&&v.silent||Fe(this,ca,ti).call(this,{type:"error",error:v}),Ph(v)||((x=(b=M(this,Jn).config).onError)==null||x.call(b,v,this),(j=(S=M(this,Jn).config).onSettled)==null||j.call(S,this.state.data,v,this)),this.scheduleGc()};return he(this,tn,Sx({initialPromise:a==null?void 0:a.initialPromise,fn:f.fetchFn,abort:r.abort.bind(r),onSuccess:v=>{var b,x,S,j;if(v===void 0){m(new Error(`${this.queryHash} data is undefined`));return}try{this.setData(v)}catch(C){m(C);return}(x=(b=M(this,Jn).config).onSuccess)==null||x.call(b,v,this),(j=(S=M(this,Jn).config).onSettled)==null||j.call(S,v,this.state.error,this),this.scheduleGc()},onError:m,onFail:(v,b)=>{Fe(this,ca,ti).call(this,{type:"failed",failureCount:v,error:b})},onPause:()=>{Fe(this,ca,ti).call(this,{type:"pause"})},onContinue:()=>{Fe(this,ca,ti).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode,canRun:()=>!0})),M(this,tn).start()}},zs=new WeakMap,Ls=new WeakMap,Jn=new WeakMap,Dr=new WeakMap,tn=new WeakMap,bo=new WeakMap,Or=new WeakMap,ca=new WeakSet,ti=function(n){const a=r=>{switch(n.type){case"failed":return{...r,fetchFailureCount:n.failureCount,fetchFailureReason:n.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Cx(r.data,this.options),fetchMeta:n.meta??null};case"success":return{...r,data:n.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:n.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!n.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=n.error;return Ph(o)&&o.revert&&M(this,Ls)?{...M(this,Ls),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...n.state}}};this.state=a(this.state),Ut.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),M(this,Jn).notify({query:this,type:"updated",action:n})})},Ow);function Cx(e,n){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:bx(n.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function v3(e){const n=typeof e.initialData=="function"?e.initialData():e.initialData,a=n!==void 0,r=a?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:n,dataUpdateCount:0,dataUpdatedAt:a?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:a?"success":"pending",fetchStatus:"idle"}}var ja,_w,w3=(_w=class extends Ws{constructor(n={}){super();Ce(this,ja);this.config=n,he(this,ja,new Map)}build(n,a,r){const o=a.queryKey,u=a.queryHash??ng(o,a);let f=this.get(u);return f||(f=new y3({client:n,queryKey:o,queryHash:u,options:n.defaultQueryOptions(a),state:r,defaultOptions:n.getQueryDefaults(o)}),this.add(f)),f}add(n){M(this,ja).has(n.queryHash)||(M(this,ja).set(n.queryHash,n),this.notify({type:"added",query:n}))}remove(n){const a=M(this,ja).get(n.queryHash);a&&(n.destroy(),a===n&&M(this,ja).delete(n.queryHash),this.notify({type:"removed",query:n}))}clear(){Ut.batch(()=>{this.getAll().forEach(n=>{this.remove(n)})})}get(n){return M(this,ja).get(n)}getAll(){return[...M(this,ja).values()]}find(n){const a={exact:!0,...n};return this.getAll().find(r=>$v(a,r))}findAll(n={}){const a=this.getAll();return Object.keys(n).length>0?a.filter(r=>$v(n,r)):a}notify(n){Ut.batch(()=>{this.listeners.forEach(a=>{a(n)})})}onFocus(){Ut.batch(()=>{this.getAll().forEach(n=>{n.onFocus()})})}onOnline(){Ut.batch(()=>{this.getAll().forEach(n=>{n.onOnline()})})}},ja=new WeakMap,_w),Ra,on,_r,Na,Di,Bw,b3=(Bw=class extends Ax{constructor(n){super();Ce(this,Na);Ce(this,Ra);Ce(this,on);Ce(this,_r);this.mutationId=n.mutationId,he(this,on,n.mutationCache),he(this,Ra,[]),this.state=n.state||Ex(),this.setOptions(n.options),this.scheduleGc()}setOptions(n){this.options=n,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(n){M(this,Ra).includes(n)||(M(this,Ra).push(n),this.clearGcTimeout(),M(this,on).notify({type:"observerAdded",mutation:this,observer:n}))}removeObserver(n){he(this,Ra,M(this,Ra).filter(a=>a!==n)),this.scheduleGc(),M(this,on).notify({type:"observerRemoved",mutation:this,observer:n})}optionalRemove(){M(this,Ra).length||(this.state.status==="pending"?this.scheduleGc():M(this,on).remove(this))}continue(){var n;return((n=M(this,_r))==null?void 0:n.continue())??this.execute(this.state.variables)}async execute(n){var u,f,m,p,g,y,v,b,x,S,j,C,k,z,_,Z,R,W,ue,se;const a=()=>{Fe(this,Na,Di).call(this,{type:"continue"})};he(this,_r,Sx({fn:()=>this.options.mutationFn?this.options.mutationFn(n):Promise.reject(new Error("No mutationFn found")),onFail:(Q,ne)=>{Fe(this,Na,Di).call(this,{type:"failed",failureCount:Q,error:ne})},onPause:()=>{Fe(this,Na,Di).call(this,{type:"pause"})},onContinue:a,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>M(this,on).canRun(this)}));const r=this.state.status==="pending",o=!M(this,_r).canStart();try{if(r)a();else{Fe(this,Na,Di).call(this,{type:"pending",variables:n,isPaused:o}),await((f=(u=M(this,on).config).onMutate)==null?void 0:f.call(u,n,this));const ne=await((p=(m=this.options).onMutate)==null?void 0:p.call(m,n));ne!==this.state.context&&Fe(this,Na,Di).call(this,{type:"pending",context:ne,variables:n,isPaused:o})}const Q=await M(this,_r).start();return await((y=(g=M(this,on).config).onSuccess)==null?void 0:y.call(g,Q,n,this.state.context,this)),await((b=(v=this.options).onSuccess)==null?void 0:b.call(v,Q,n,this.state.context)),await((S=(x=M(this,on).config).onSettled)==null?void 0:S.call(x,Q,null,this.state.variables,this.state.context,this)),await((C=(j=this.options).onSettled)==null?void 0:C.call(j,Q,null,n,this.state.context)),Fe(this,Na,Di).call(this,{type:"success",data:Q}),Q}catch(Q){try{throw await((z=(k=M(this,on).config).onError)==null?void 0:z.call(k,Q,n,this.state.context,this)),await((Z=(_=this.options).onError)==null?void 0:Z.call(_,Q,n,this.state.context)),await((W=(R=M(this,on).config).onSettled)==null?void 0:W.call(R,void 0,Q,this.state.variables,this.state.context,this)),await((se=(ue=this.options).onSettled)==null?void 0:se.call(ue,void 0,Q,n,this.state.context)),Q}finally{Fe(this,Na,Di).call(this,{type:"error",error:Q})}}finally{M(this,on).runNext(this)}}},Ra=new WeakMap,on=new WeakMap,_r=new WeakMap,Na=new WeakSet,Di=function(n){const a=r=>{switch(n.type){case"failed":return{...r,failureCount:n.failureCount,failureReason:n.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:n.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:n.isPaused,status:"pending",variables:n.variables,submittedAt:Date.now()};case"success":return{...r,data:n.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:n.error,failureCount:r.failureCount+1,failureReason:n.error,isPaused:!1,status:"error"}}};this.state=a(this.state),Ut.batch(()=>{M(this,Ra).forEach(r=>{r.onMutationUpdate(n)}),M(this,on).notify({mutation:this,type:"updated",action:n})})},Bw);function Ex(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ai,da,xo,zw,x3=(zw=class extends Ws{constructor(n={}){super();Ce(this,ai);Ce(this,da);Ce(this,xo);this.config=n,he(this,ai,new Set),he(this,da,new Map),he(this,xo,0)}build(n,a,r){const o=new b3({mutationCache:this,mutationId:++Ku(this,xo)._,options:n.defaultMutationOptions(a),state:r});return this.add(o),o}add(n){M(this,ai).add(n);const a=nc(n);if(typeof a=="string"){const r=M(this,da).get(a);r?r.push(n):M(this,da).set(a,[n])}this.notify({type:"added",mutation:n})}remove(n){if(M(this,ai).delete(n)){const a=nc(n);if(typeof a=="string"){const r=M(this,da).get(a);if(r)if(r.length>1){const o=r.indexOf(n);o!==-1&&r.splice(o,1)}else r[0]===n&&M(this,da).delete(a)}}this.notify({type:"removed",mutation:n})}canRun(n){const a=nc(n);if(typeof a=="string"){const r=M(this,da).get(a),o=r==null?void 0:r.find(u=>u.state.status==="pending");return!o||o===n}else return!0}runNext(n){var r;const a=nc(n);if(typeof a=="string"){const o=(r=M(this,da).get(a))==null?void 0:r.find(u=>u!==n&&u.state.isPaused);return(o==null?void 0:o.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Ut.batch(()=>{M(this,ai).forEach(n=>{this.notify({type:"removed",mutation:n})}),M(this,ai).clear(),M(this,da).clear()})}getAll(){return Array.from(M(this,ai))}find(n){const a={exact:!0,...n};return this.getAll().find(r=>Xv(a,r))}findAll(n={}){return this.getAll().filter(a=>Xv(n,a))}notify(n){Ut.batch(()=>{this.listeners.forEach(a=>{a(n)})})}resumePausedMutations(){const n=this.getAll().filter(a=>a.state.isPaused);return Ut.batch(()=>Promise.all(n.map(a=>a.continue().catch(ea))))}},ai=new WeakMap,da=new WeakMap,xo=new WeakMap,zw);function nc(e){var n;return(n=e.options.scope)==null?void 0:n.id}function Jv(e){return{onFetch:(n,a)=>{var y,v,b,x,S;const r=n.options,o=(b=(v=(y=n.fetchOptions)==null?void 0:y.meta)==null?void 0:v.fetchMore)==null?void 0:b.direction,u=((x=n.state.data)==null?void 0:x.pages)||[],f=((S=n.state.data)==null?void 0:S.pageParams)||[];let m={pages:[],pageParams:[]},p=0;const g=async()=>{let j=!1;const C=_=>{Object.defineProperty(_,"signal",{enumerable:!0,get:()=>(n.signal.aborted?j=!0:n.signal.addEventListener("abort",()=>{j=!0}),n.signal)})},k=wx(n.options,n.fetchOptions),z=async(_,Z,R)=>{if(j)return Promise.reject();if(Z==null&&_.pages.length)return Promise.resolve(_);const W={client:n.client,queryKey:n.queryKey,pageParam:Z,direction:R?"backward":"forward",meta:n.options.meta};C(W);const ue=await k(W),{maxPages:se}=n.options,Q=R?d3:c3;return{pages:Q(_.pages,ue,se),pageParams:Q(_.pageParams,Z,se)}};if(o&&u.length){const _=o==="backward",Z=_?S3:Wv,R={pages:u,pageParams:f},W=Z(r,R);m=await z(R,W,_)}else{const _=e??u.length;do{const Z=p===0?f[0]??r.initialPageParam:Wv(r,m);if(p>0&&Z==null)break;m=await z(m,Z),p++}while(p<_)}return m};n.options.persister?n.fetchFn=()=>{var j,C;return(C=(j=n.options).persister)==null?void 0:C.call(j,g,{client:n.client,queryKey:n.queryKey,meta:n.options.meta,signal:n.signal},a)}:n.fetchFn=g}}}function Wv(e,{pages:n,pageParams:a}){const r=n.length-1;return n.length>0?e.getNextPageParam(n[r],n,a[r],a):void 0}function S3(e,{pages:n,pageParams:a}){var r;return n.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,n[0],n,a[0],a):void 0}var jt,Li,Ui,Us,Hs,Hi,Fs,Ps,Lw,A3=(Lw=class{constructor(e={}){Ce(this,jt);Ce(this,Li);Ce(this,Ui);Ce(this,Us);Ce(this,Hs);Ce(this,Hi);Ce(this,Fs);Ce(this,Ps);he(this,jt,e.queryCache||new w3),he(this,Li,e.mutationCache||new x3),he(this,Ui,e.defaultOptions||{}),he(this,Us,new Map),he(this,Hs,new Map),he(this,Hi,0)}mount(){Ku(this,Hi)._++,M(this,Hi)===1&&(he(this,Fs,ig.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,jt).onFocus())})),he(this,Ps,Cc.subscribe(async e=>{e&&(await this.resumePausedMutations(),M(this,jt).onOnline())})))}unmount(){var e,n;Ku(this,Hi)._--,M(this,Hi)===0&&((e=M(this,Fs))==null||e.call(this),he(this,Fs,void 0),(n=M(this,Ps))==null||n.call(this),he(this,Ps,void 0))}isFetching(e){return M(this,jt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return M(this,Li).findAll({...e,status:"pending"}).length}getQueryData(e){var a;const n=this.defaultQueryOptions({queryKey:e});return(a=M(this,jt).get(n.queryHash))==null?void 0:a.state.data}ensureQueryData(e){const n=this.defaultQueryOptions(e),a=M(this,jt).build(this,n),r=a.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&a.isStaleByTime(ks(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(r))}getQueriesData(e){return M(this,jt).findAll(e).map(({queryKey:n,state:a})=>{const r=a.data;return[n,r]})}setQueryData(e,n,a){const r=this.defaultQueryOptions({queryKey:e}),o=M(this,jt).get(r.queryHash),u=o==null?void 0:o.state.data,f=o3(n,u);if(f!==void 0)return M(this,jt).build(this,r).setData(f,{...a,manual:!0})}setQueriesData(e,n,a){return Ut.batch(()=>M(this,jt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,n,a)]))}getQueryState(e){var a;const n=this.defaultQueryOptions({queryKey:e});return(a=M(this,jt).get(n.queryHash))==null?void 0:a.state}removeQueries(e){const n=M(this,jt);Ut.batch(()=>{n.findAll(e).forEach(a=>{n.remove(a)})})}resetQueries(e,n){const a=M(this,jt);return Ut.batch(()=>(a.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},n)))}cancelQueries(e,n={}){const a={revert:!0,...n},r=Ut.batch(()=>M(this,jt).findAll(e).map(o=>o.cancel(a)));return Promise.all(r).then(ea).catch(ea)}invalidateQueries(e,n={}){return Ut.batch(()=>(M(this,jt).findAll(e).forEach(a=>{a.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},n)))}refetchQueries(e,n={}){const a={...n,cancelRefetch:n.cancelRefetch??!0},r=Ut.batch(()=>M(this,jt).findAll(e).filter(o=>!o.isDisabled()).map(o=>{let u=o.fetch(void 0,a);return a.throwOnError||(u=u.catch(ea)),o.state.fetchStatus==="paused"?Promise.resolve():u}));return Promise.all(r).then(ea)}fetchQuery(e){const n=this.defaultQueryOptions(e);n.retry===void 0&&(n.retry=!1);const a=M(this,jt).build(this,n);return a.isStaleByTime(ks(n.staleTime,a))?a.fetch(n):Promise.resolve(a.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ea).catch(ea)}fetchInfiniteQuery(e){return e.behavior=Jv(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ea).catch(ea)}ensureInfiniteQueryData(e){return e.behavior=Jv(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return Cc.isOnline()?M(this,Li).resumePausedMutations():Promise.resolve()}getQueryCache(){return M(this,jt)}getMutationCache(){return M(this,Li)}getDefaultOptions(){return M(this,Ui)}setDefaultOptions(e){he(this,Ui,e)}setQueryDefaults(e,n){M(this,Us).set(Vr(e),{queryKey:e,defaultOptions:n})}getQueryDefaults(e){const n=[...M(this,Us).values()],a={};return n.forEach(r=>{vo(e,r.queryKey)&&Object.assign(a,r.defaultOptions)}),a}setMutationDefaults(e,n){M(this,Hs).set(Vr(e),{mutationKey:e,defaultOptions:n})}getMutationDefaults(e){const n=[...M(this,Hs).values()],a={};return n.forEach(r=>{vo(e,r.mutationKey)&&Object.assign(a,r.defaultOptions)}),a}defaultQueryOptions(e){if(e._defaulted)return e;const n={...M(this,Ui).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return n.queryHash||(n.queryHash=ng(n.queryKey,n)),n.refetchOnReconnect===void 0&&(n.refetchOnReconnect=n.networkMode!=="always"),n.throwOnError===void 0&&(n.throwOnError=!!n.suspense),!n.networkMode&&n.persister&&(n.networkMode="offlineFirst"),n.queryFn===ag&&(n.enabled=!1),n}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...M(this,Ui).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){M(this,jt).clear(),M(this,Li).clear()}},jt=new WeakMap,Li=new WeakMap,Ui=new WeakMap,Us=new WeakMap,Hs=new WeakMap,Hi=new WeakMap,Fs=new WeakMap,Ps=new WeakMap,Lw),yn,Ye,So,un,Br,Vs,Fi,Pi,Ao,Is,qs,zr,Lr,Vi,Qs,et,ho,vm,wm,bm,xm,Sm,Am,Cm,jx,Uw,C3=(Uw=class extends Ws{constructor(n,a){super();Ce(this,et);Ce(this,yn);Ce(this,Ye);Ce(this,So);Ce(this,un);Ce(this,Br);Ce(this,Vs);Ce(this,Fi);Ce(this,Pi);Ce(this,Ao);Ce(this,Is);Ce(this,qs);Ce(this,zr);Ce(this,Lr);Ce(this,Vi);Ce(this,Qs,new Set);this.options=a,he(this,yn,n),he(this,Pi,null),he(this,Fi,ym()),this.options.experimental_prefetchInRender||M(this,Fi).reject(new Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(a)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(M(this,Ye).addObserver(this),ew(M(this,Ye),this.options)?Fe(this,et,ho).call(this):this.updateResult(),Fe(this,et,xm).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Em(M(this,Ye),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Em(M(this,Ye),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Fe(this,et,Sm).call(this),Fe(this,et,Am).call(this),M(this,Ye).removeObserver(this)}setOptions(n){const a=this.options,r=M(this,Ye);if(this.options=M(this,yn).defaultQueryOptions(n),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof ha(this.options.enabled,M(this,Ye))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Fe(this,et,Cm).call(this),M(this,Ye).setOptions(this.options),a._defaulted&&!Ac(this.options,a)&&M(this,yn).getQueryCache().notify({type:"observerOptionsUpdated",query:M(this,Ye),observer:this});const o=this.hasListeners();o&&tw(M(this,Ye),r,this.options,a)&&Fe(this,et,ho).call(this),this.updateResult(),o&&(M(this,Ye)!==r||ha(this.options.enabled,M(this,Ye))!==ha(a.enabled,M(this,Ye))||ks(this.options.staleTime,M(this,Ye))!==ks(a.staleTime,M(this,Ye)))&&Fe(this,et,vm).call(this);const u=Fe(this,et,wm).call(this);o&&(M(this,Ye)!==r||ha(this.options.enabled,M(this,Ye))!==ha(a.enabled,M(this,Ye))||u!==M(this,Vi))&&Fe(this,et,bm).call(this,u)}getOptimisticResult(n){const a=M(this,yn).getQueryCache().build(M(this,yn),n),r=this.createResult(a,n);return j3(this,r)&&(he(this,un,r),he(this,Vs,this.options),he(this,Br,M(this,Ye).state)),r}getCurrentResult(){return M(this,un)}trackResult(n,a){const r={};return Object.keys(n).forEach(o=>{Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(o),a==null||a(o),n[o])})}),r}trackProp(n){M(this,Qs).add(n)}getCurrentQuery(){return M(this,Ye)}refetch({...n}={}){return this.fetch({...n})}fetchOptimistic(n){const a=M(this,yn).defaultQueryOptions(n),r=M(this,yn).getQueryCache().build(M(this,yn),a);return r.fetch().then(()=>this.createResult(r,a))}fetch(n){return Fe(this,et,ho).call(this,{...n,cancelRefetch:n.cancelRefetch??!0}).then(()=>(this.updateResult(),M(this,un)))}createResult(n,a){var Q;const r=M(this,Ye),o=this.options,u=M(this,un),f=M(this,Br),m=M(this,Vs),g=n!==r?n.state:M(this,So),{state:y}=n;let v={...y},b=!1,x;if(a._optimisticResults){const ne=this.hasListeners(),fe=!ne&&ew(n,a),ge=ne&&tw(n,r,a,o);(fe||ge)&&(v={...v,...Cx(y.data,n.options)}),a._optimisticResults==="isRestoring"&&(v.fetchStatus="idle")}let{error:S,errorUpdatedAt:j,status:C}=v;x=v.data;let k=!1;if(a.placeholderData!==void 0&&x===void 0&&C==="pending"){let ne;u!=null&&u.isPlaceholderData&&a.placeholderData===(m==null?void 0:m.placeholderData)?(ne=u.data,k=!0):ne=typeof a.placeholderData=="function"?a.placeholderData((Q=M(this,qs))==null?void 0:Q.state.data,M(this,qs)):a.placeholderData,ne!==void 0&&(C="success",x=pm(u==null?void 0:u.data,ne,a),b=!0)}if(a.select&&x!==void 0&&!k)if(u&&x===(f==null?void 0:f.data)&&a.select===M(this,Ao))x=M(this,Is);else try{he(this,Ao,a.select),x=a.select(x),x=pm(u==null?void 0:u.data,x,a),he(this,Is,x),he(this,Pi,null)}catch(ne){he(this,Pi,ne)}M(this,Pi)&&(S=M(this,Pi),x=M(this,Is),j=Date.now(),C="error");const z=v.fetchStatus==="fetching",_=C==="pending",Z=C==="error",R=_&&z,W=x!==void 0,se={status:C,fetchStatus:v.fetchStatus,isPending:_,isSuccess:C==="success",isError:Z,isInitialLoading:R,isLoading:R,data:x,dataUpdatedAt:v.dataUpdatedAt,error:S,errorUpdatedAt:j,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>g.dataUpdateCount||v.errorUpdateCount>g.errorUpdateCount,isFetching:z,isRefetching:z&&!_,isLoadingError:Z&&!W,isPaused:v.fetchStatus==="paused",isPlaceholderData:b,isRefetchError:Z&&W,isStale:rg(n,a),refetch:this.refetch,promise:M(this,Fi)};if(this.options.experimental_prefetchInRender){const ne=De=>{se.status==="error"?De.reject(se.error):se.data!==void 0&&De.resolve(se.data)},fe=()=>{const De=he(this,Fi,se.promise=ym());ne(De)},ge=M(this,Fi);switch(ge.status){case"pending":n.queryHash===r.queryHash&&ne(ge);break;case"fulfilled":(se.status==="error"||se.data!==ge.value)&&fe();break;case"rejected":(se.status!=="error"||se.error!==ge.reason)&&fe();break}}return se}updateResult(){const n=M(this,un),a=this.createResult(M(this,Ye),this.options);if(he(this,Br,M(this,Ye).state),he(this,Vs,this.options),M(this,Br).data!==void 0&&he(this,qs,M(this,Ye)),Ac(a,n))return;he(this,un,a);const r=()=>{if(!n)return!0;const{notifyOnChangeProps:o}=this.options,u=typeof o=="function"?o():o;if(u==="all"||!u&&!M(this,Qs).size)return!0;const f=new Set(u??M(this,Qs));return this.options.throwOnError&&f.add("error"),Object.keys(M(this,un)).some(m=>{const p=m;return M(this,un)[p]!==n[p]&&f.has(p)})};Fe(this,et,jx).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Fe(this,et,xm).call(this)}},yn=new WeakMap,Ye=new WeakMap,So=new WeakMap,un=new WeakMap,Br=new WeakMap,Vs=new WeakMap,Fi=new WeakMap,Pi=new WeakMap,Ao=new WeakMap,Is=new WeakMap,qs=new WeakMap,zr=new WeakMap,Lr=new WeakMap,Vi=new WeakMap,Qs=new WeakMap,et=new WeakSet,ho=function(n){Fe(this,et,Cm).call(this);let a=M(this,Ye).fetch(this.options,n);return n!=null&&n.throwOnError||(a=a.catch(ea)),a},vm=function(){Fe(this,et,Sm).call(this);const n=ks(this.options.staleTime,M(this,Ye));if(Pr||M(this,un).isStale||!mm(n))return;const r=yx(M(this,un).dataUpdatedAt,n)+1;he(this,zr,setTimeout(()=>{M(this,un).isStale||this.updateResult()},r))},wm=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(M(this,Ye)):this.options.refetchInterval)??!1},bm=function(n){Fe(this,et,Am).call(this),he(this,Vi,n),!(Pr||ha(this.options.enabled,M(this,Ye))===!1||!mm(M(this,Vi))||M(this,Vi)===0)&&he(this,Lr,setInterval(()=>{(this.options.refetchIntervalInBackground||ig.isFocused())&&Fe(this,et,ho).call(this)},M(this,Vi)))},xm=function(){Fe(this,et,vm).call(this),Fe(this,et,bm).call(this,Fe(this,et,wm).call(this))},Sm=function(){M(this,zr)&&(clearTimeout(M(this,zr)),he(this,zr,void 0))},Am=function(){M(this,Lr)&&(clearInterval(M(this,Lr)),he(this,Lr,void 0))},Cm=function(){const n=M(this,yn).getQueryCache().build(M(this,yn),this.options);if(n===M(this,Ye))return;const a=M(this,Ye);he(this,Ye,n),he(this,So,n.state),this.hasListeners()&&(a==null||a.removeObserver(this),n.addObserver(this))},jx=function(n){Ut.batch(()=>{n.listeners&&this.listeners.forEach(a=>{a(M(this,un))}),M(this,yn).getQueryCache().notify({query:M(this,Ye),type:"observerResultsUpdated"})})},Uw);function E3(e,n){return ha(n.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&n.retryOnMount===!1)}function ew(e,n){return E3(e,n)||e.state.data!==void 0&&Em(e,n,n.refetchOnMount)}function Em(e,n,a){if(ha(n.enabled,e)!==!1){const r=typeof a=="function"?a(e):a;return r==="always"||r!==!1&&rg(e,n)}return!1}function tw(e,n,a,r){return(e!==n||ha(r.enabled,e)===!1)&&(!a.suspense||e.state.status!=="error")&&rg(e,a)}function rg(e,n){return ha(n.enabled,e)!==!1&&e.isStaleByTime(ks(n.staleTime,e))}function j3(e,n){return!Ac(e.getCurrentResult(),n)}var Ii,qi,vn,ii,si,hc,jm,Hw,R3=(Hw=class extends Ws{constructor(a,r){super();Ce(this,si);Ce(this,Ii);Ce(this,qi);Ce(this,vn);Ce(this,ii);he(this,Ii,a),this.setOptions(r),this.bindMethods(),Fe(this,si,hc).call(this)}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(a){var o;const r=this.options;this.options=M(this,Ii).defaultMutationOptions(a),Ac(this.options,r)||M(this,Ii).getMutationCache().notify({type:"observerOptionsUpdated",mutation:M(this,vn),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&Vr(r.mutationKey)!==Vr(this.options.mutationKey)?this.reset():((o=M(this,vn))==null?void 0:o.state.status)==="pending"&&M(this,vn).setOptions(this.options)}onUnsubscribe(){var a;this.hasListeners()||(a=M(this,vn))==null||a.removeObserver(this)}onMutationUpdate(a){Fe(this,si,hc).call(this),Fe(this,si,jm).call(this,a)}getCurrentResult(){return M(this,qi)}reset(){var a;(a=M(this,vn))==null||a.removeObserver(this),he(this,vn,void 0),Fe(this,si,hc).call(this),Fe(this,si,jm).call(this)}mutate(a,r){var o;return he(this,ii,r),(o=M(this,vn))==null||o.removeObserver(this),he(this,vn,M(this,Ii).getMutationCache().build(M(this,Ii),this.options)),M(this,vn).addObserver(this),M(this,vn).execute(a)}},Ii=new WeakMap,qi=new WeakMap,vn=new WeakMap,ii=new WeakMap,si=new WeakSet,hc=function(){var r;const a=((r=M(this,vn))==null?void 0:r.state)??Ex();he(this,qi,{...a,isPending:a.status==="pending",isSuccess:a.status==="success",isError:a.status==="error",isIdle:a.status==="idle",mutate:this.mutate,reset:this.reset})},jm=function(a){Ut.batch(()=>{var r,o,u,f,m,p,g,y;if(M(this,ii)&&this.hasListeners()){const v=M(this,qi).variables,b=M(this,qi).context;(a==null?void 0:a.type)==="success"?((o=(r=M(this,ii)).onSuccess)==null||o.call(r,a.data,v,b),(f=(u=M(this,ii)).onSettled)==null||f.call(u,a.data,null,v,b)):(a==null?void 0:a.type)==="error"&&((p=(m=M(this,ii)).onError)==null||p.call(m,a.error,v,b),(y=(g=M(this,ii)).onSettled)==null||y.call(g,void 0,a.error,v,b))}this.listeners.forEach(v=>{v(M(this,qi))})})},Hw),Rx=E.createContext(void 0),Nx=e=>{const n=E.useContext(Rx);if(!n)throw new Error("No QueryClient set, use QueryClientProvider to set one");return n},N3=({client:e,children:n})=>(E.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),c.jsx(Rx.Provider,{value:e,children:n})),Tx=E.createContext(!1),T3=()=>E.useContext(Tx);Tx.Provider;function k3(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var M3=E.createContext(k3()),D3=()=>E.useContext(M3);function kx(e,n){return typeof e=="function"?e(...n):!!e}function Rm(){}var O3=(e,n)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&(n.isReset()||(e.retryOnMount=!1))},_3=e=>{E.useEffect(()=>{e.clearReset()},[e])},B3=({result:e,errorResetBoundary:n,throwOnError:a,query:r,suspense:o})=>e.isError&&!n.isReset()&&!e.isFetching&&r&&(o&&e.data===void 0||kx(a,[e.error,r])),z3=e=>{const n=e.staleTime;e.suspense&&(e.staleTime=typeof n=="function"?(...a)=>Math.max(n(...a),1e3):Math.max(n??1e3,1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},L3=(e,n)=>e.isLoading&&e.isFetching&&!n,U3=(e,n)=>(e==null?void 0:e.suspense)&&n.isPending,nw=(e,n,a)=>n.fetchOptimistic(e).catch(()=>{a.clearReset()});function H3(e,n,a){var v,b,x,S,j;const r=Nx(),o=T3(),u=D3(),f=r.defaultQueryOptions(e);(b=(v=r.getDefaultOptions().queries)==null?void 0:v._experimental_beforeQuery)==null||b.call(v,f),f._optimisticResults=o?"isRestoring":"optimistic",z3(f),O3(f,u),_3(u);const m=!r.getQueryCache().get(f.queryHash),[p]=E.useState(()=>new n(r,f)),g=p.getOptimisticResult(f),y=!o&&e.subscribed!==!1;if(E.useSyncExternalStore(E.useCallback(C=>{const k=y?p.subscribe(Ut.batchCalls(C)):Rm;return p.updateResult(),k},[p,y]),()=>p.getCurrentResult(),()=>p.getCurrentResult()),E.useEffect(()=>{p.setOptions(f)},[f,p]),U3(f,g))throw nw(f,p,u);if(B3({result:g,errorResetBoundary:u,throwOnError:f.throwOnError,query:r.getQueryCache().get(f.queryHash),suspense:f.suspense}))throw g.error;if((S=(x=r.getDefaultOptions().queries)==null?void 0:x._experimental_afterQuery)==null||S.call(x,f,g),f.experimental_prefetchInRender&&!Pr&&L3(g,o)){const C=m?nw(f,p,u):(j=r.getQueryCache().get(f.queryHash))==null?void 0:j.promise;C==null||C.catch(Rm).finally(()=>{p.updateResult()})}return f.notifyOnChangeProps?g:p.trackResult(g)}function el(e,n){return H3(e,C3)}function Ec(e,n){const a=Nx(),[r]=E.useState(()=>new R3(a,e));E.useEffect(()=>{r.setOptions(e)},[r,e]);const o=E.useSyncExternalStore(E.useCallback(f=>r.subscribe(Ut.batchCalls(f)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),u=E.useCallback((f,m)=>{r.mutate(f,m).catch(Rm)},[r]);if(o.error&&kx(r.options.throwOnError,[o.error]))throw o.error;return{...o,mutate:u,mutateAsync:o.mutate}}function F3(e){if(typeof document>"u")return;let n=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css",n.firstChild?n.insertBefore(a,n.firstChild):n.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}F3(`:root{--toastify-color-light: #fff;--toastify-color-dark: #121212;--toastify-color-info: #3498db;--toastify-color-success: #07bc0c;--toastify-color-warning: #f1c40f;--toastify-color-error: hsl(6, 78%, 57%);--toastify-color-transparent: rgba(255, 255, 255, .7);--toastify-icon-color-info: var(--toastify-color-info);--toastify-icon-color-success: var(--toastify-color-success);--toastify-icon-color-warning: var(--toastify-color-warning);--toastify-icon-color-error: var(--toastify-color-error);--toastify-container-width: fit-content;--toastify-toast-width: 320px;--toastify-toast-offset: 16px;--toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));--toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));--toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));--toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));--toastify-toast-background: #fff;--toastify-toast-padding: 14px;--toastify-toast-min-height: 64px;--toastify-toast-max-height: 800px;--toastify-toast-bd-radius: 6px;--toastify-toast-shadow: 0px 4px 12px rgba(0, 0, 0, .1);--toastify-font-family: sans-serif;--toastify-z-index: 9999;--toastify-text-color-light: #757575;--toastify-text-color-dark: #fff;--toastify-text-color-info: #fff;--toastify-text-color-success: #fff;--toastify-text-color-warning: #fff;--toastify-text-color-error: #fff;--toastify-spinner-color: #616161;--toastify-spinner-color-empty-area: #e0e0e0;--toastify-color-progress-light: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55);--toastify-color-progress-dark: #bb86fc;--toastify-color-progress-info: var(--toastify-color-info);--toastify-color-progress-success: var(--toastify-color-success);--toastify-color-progress-warning: var(--toastify-color-warning);--toastify-color-progress-error: var(--toastify-color-error);--toastify-color-progress-bgo: .2}.Toastify__toast-container{z-index:var(--toastify-z-index);-webkit-transform:translate3d(0,0,var(--toastify-z-index));position:fixed;width:var(--toastify-container-width);box-sizing:border-box;color:#fff;display:flex;flex-direction:column}.Toastify__toast-container--top-left{top:var(--toastify-toast-top);left:var(--toastify-toast-left)}.Toastify__toast-container--top-center{top:var(--toastify-toast-top);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--top-right{top:var(--toastify-toast-top);right:var(--toastify-toast-right);align-items:end}.Toastify__toast-container--bottom-left{bottom:var(--toastify-toast-bottom);left:var(--toastify-toast-left)}.Toastify__toast-container--bottom-center{bottom:var(--toastify-toast-bottom);left:50%;transform:translate(-50%);align-items:center}.Toastify__toast-container--bottom-right{bottom:var(--toastify-toast-bottom);right:var(--toastify-toast-right);align-items:end}.Toastify__toast{--y: 0;position:relative;touch-action:none;width:var(--toastify-toast-width);min-height:var(--toastify-toast-min-height);box-sizing:border-box;margin-bottom:1rem;padding:var(--toastify-toast-padding);border-radius:var(--toastify-toast-bd-radius);box-shadow:var(--toastify-toast-shadow);max-height:var(--toastify-toast-max-height);font-family:var(--toastify-font-family);z-index:0;display:flex;flex:1 auto;align-items:center;word-break:break-word}@media only screen and (max-width: 480px){.Toastify__toast-container{width:100vw;left:env(safe-area-inset-left);margin:0}.Toastify__toast-container--top-left,.Toastify__toast-container--top-center,.Toastify__toast-container--top-right{top:env(safe-area-inset-top);transform:translate(0)}.Toastify__toast-container--bottom-left,.Toastify__toast-container--bottom-center,.Toastify__toast-container--bottom-right{bottom:env(safe-area-inset-bottom);transform:translate(0)}.Toastify__toast-container--rtl{right:env(safe-area-inset-right);left:initial}.Toastify__toast{--toastify-toast-width: 100%;margin-bottom:0;border-radius:0}}.Toastify__toast-container[data-stacked=true]{width:var(--toastify-toast-width)}.Toastify__toast--stacked{position:absolute;width:100%;transform:translate3d(0,var(--y),0) scale(var(--s));transition:transform .3s}.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body,.Toastify__toast--stacked[data-collapsed] .Toastify__close-button{transition:opacity .1s}.Toastify__toast--stacked[data-collapsed=false]{overflow:visible}.Toastify__toast--stacked[data-collapsed=true]:not(:last-child)>*{opacity:0}.Toastify__toast--stacked:after{content:"";position:absolute;left:0;right:0;height:calc(var(--g) * 1px);bottom:100%}.Toastify__toast--stacked[data-pos=top]{top:0}.Toastify__toast--stacked[data-pos=bot]{bottom:0}.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before{transform-origin:top}.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before{transform-origin:bottom}.Toastify__toast--stacked:before{content:"";position:absolute;left:0;right:0;bottom:0;height:100%;transform:scaleY(3);z-index:-1}.Toastify__toast--rtl{direction:rtl}.Toastify__toast--close-on-click{cursor:pointer}.Toastify__toast-icon{margin-inline-end:10px;width:22px;flex-shrink:0;display:flex}.Toastify--animate{animation-fill-mode:both;animation-duration:.5s}.Toastify--animate-icon{animation-fill-mode:both;animation-duration:.3s}.Toastify__toast-theme--dark{background:var(--toastify-color-dark);color:var(--toastify-text-color-dark)}.Toastify__toast-theme--light,.Toastify__toast-theme--colored.Toastify__toast--default{background:var(--toastify-color-light);color:var(--toastify-text-color-light)}.Toastify__toast-theme--colored.Toastify__toast--info{color:var(--toastify-text-color-info);background:var(--toastify-color-info)}.Toastify__toast-theme--colored.Toastify__toast--success{color:var(--toastify-text-color-success);background:var(--toastify-color-success)}.Toastify__toast-theme--colored.Toastify__toast--warning{color:var(--toastify-text-color-warning);background:var(--toastify-color-warning)}.Toastify__toast-theme--colored.Toastify__toast--error{color:var(--toastify-text-color-error);background:var(--toastify-color-error)}.Toastify__progress-bar-theme--light{background:var(--toastify-color-progress-light)}.Toastify__progress-bar-theme--dark{background:var(--toastify-color-progress-dark)}.Toastify__progress-bar--info{background:var(--toastify-color-progress-info)}.Toastify__progress-bar--success{background:var(--toastify-color-progress-success)}.Toastify__progress-bar--warning{background:var(--toastify-color-progress-warning)}.Toastify__progress-bar--error{background:var(--toastify-color-progress-error)}.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--success,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning,.Toastify__progress-bar-theme--colored.Toastify__progress-bar--error{background:var(--toastify-color-transparent)}.Toastify__close-button{color:#fff;position:absolute;top:6px;right:6px;background:transparent;outline:none;border:none;padding:0;cursor:pointer;opacity:.7;transition:.3s ease;z-index:1}.Toastify__toast--rtl .Toastify__close-button{left:6px;right:unset}.Toastify__close-button--light{color:#000;opacity:.3}.Toastify__close-button>svg{fill:currentColor;height:16px;width:14px}.Toastify__close-button:hover,.Toastify__close-button:focus{opacity:1}@keyframes Toastify__trackProgress{0%{transform:scaleX(1)}to{transform:scaleX(0)}}.Toastify__progress-bar{position:absolute;bottom:0;left:0;width:100%;height:100%;z-index:1;opacity:.7;transform-origin:left}.Toastify__progress-bar--animated{animation:Toastify__trackProgress linear 1 forwards}.Toastify__progress-bar--controlled{transition:transform .2s}.Toastify__progress-bar--rtl{right:0;left:initial;transform-origin:right;border-bottom-left-radius:initial}.Toastify__progress-bar--wrp{position:absolute;overflow:hidden;bottom:0;left:0;width:100%;height:5px;border-bottom-left-radius:var(--toastify-toast-bd-radius);border-bottom-right-radius:var(--toastify-toast-bd-radius)}.Toastify__progress-bar--wrp[data-hidden=true]{opacity:0}.Toastify__progress-bar--bg{opacity:var(--toastify-color-progress-bgo);width:100%;height:100%}.Toastify__spinner{width:20px;height:20px;box-sizing:border-box;border:2px solid;border-radius:100%;border-color:var(--toastify-spinner-color-empty-area);border-right-color:var(--toastify-spinner-color);animation:Toastify__spin .65s linear infinite}@keyframes Toastify__bounceInRight{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(3000px,0,0)}60%{opacity:1;transform:translate3d(-25px,0,0)}75%{transform:translate3d(10px,0,0)}90%{transform:translate3d(-5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutRight{20%{opacity:1;transform:translate3d(-20px,var(--y),0)}to{opacity:0;transform:translate3d(2000px,var(--y),0)}}@keyframes Toastify__bounceInLeft{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(-3000px,0,0)}60%{opacity:1;transform:translate3d(25px,0,0)}75%{transform:translate3d(-10px,0,0)}90%{transform:translate3d(5px,0,0)}to{transform:none}}@keyframes Toastify__bounceOutLeft{20%{opacity:1;transform:translate3d(20px,var(--y),0)}to{opacity:0;transform:translate3d(-2000px,var(--y),0)}}@keyframes Toastify__bounceInUp{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,3000px,0)}60%{opacity:1;transform:translate3d(0,-20px,0)}75%{transform:translate3d(0,10px,0)}90%{transform:translate3d(0,-5px,0)}to{transform:translateZ(0)}}@keyframes Toastify__bounceOutUp{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,-2000px,0)}}@keyframes Toastify__bounceInDown{0%,60%,75%,90%,to{animation-timing-function:cubic-bezier(.215,.61,.355,1)}0%{opacity:0;transform:translate3d(0,-3000px,0)}60%{opacity:1;transform:translate3d(0,25px,0)}75%{transform:translate3d(0,-10px,0)}90%{transform:translate3d(0,5px,0)}to{transform:none}}@keyframes Toastify__bounceOutDown{20%{transform:translate3d(0,calc(var(--y) - 10px),0)}40%,45%{opacity:1;transform:translate3d(0,calc(var(--y) + 20px),0)}to{opacity:0;transform:translate3d(0,2000px,0)}}.Toastify__bounce-enter--top-left,.Toastify__bounce-enter--bottom-left{animation-name:Toastify__bounceInLeft}.Toastify__bounce-enter--top-right,.Toastify__bounce-enter--bottom-right{animation-name:Toastify__bounceInRight}.Toastify__bounce-enter--top-center{animation-name:Toastify__bounceInDown}.Toastify__bounce-enter--bottom-center{animation-name:Toastify__bounceInUp}.Toastify__bounce-exit--top-left,.Toastify__bounce-exit--bottom-left{animation-name:Toastify__bounceOutLeft}.Toastify__bounce-exit--top-right,.Toastify__bounce-exit--bottom-right{animation-name:Toastify__bounceOutRight}.Toastify__bounce-exit--top-center{animation-name:Toastify__bounceOutUp}.Toastify__bounce-exit--bottom-center{animation-name:Toastify__bounceOutDown}@keyframes Toastify__zoomIn{0%{opacity:0;transform:scale3d(.3,.3,.3)}50%{opacity:1}}@keyframes Toastify__zoomOut{0%{opacity:1}50%{opacity:0;transform:translate3d(0,var(--y),0) scale3d(.3,.3,.3)}to{opacity:0}}.Toastify__zoom-enter{animation-name:Toastify__zoomIn}.Toastify__zoom-exit{animation-name:Toastify__zoomOut}@keyframes Toastify__flipIn{0%{transform:perspective(400px) rotateX(90deg);animation-timing-function:ease-in;opacity:0}40%{transform:perspective(400px) rotateX(-20deg);animation-timing-function:ease-in}60%{transform:perspective(400px) rotateX(10deg);opacity:1}80%{transform:perspective(400px) rotateX(-5deg)}to{transform:perspective(400px)}}@keyframes Toastify__flipOut{0%{transform:translate3d(0,var(--y),0) perspective(400px)}30%{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(-20deg);opacity:1}to{transform:translate3d(0,var(--y),0) perspective(400px) rotateX(90deg);opacity:0}}.Toastify__flip-enter{animation-name:Toastify__flipIn}.Toastify__flip-exit{animation-name:Toastify__flipOut}@keyframes Toastify__slideInRight{0%{transform:translate3d(110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInLeft{0%{transform:translate3d(-110%,0,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInUp{0%{transform:translate3d(0,110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideInDown{0%{transform:translate3d(0,-110%,0);visibility:visible}to{transform:translate3d(0,var(--y),0)}}@keyframes Toastify__slideOutRight{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(110%,var(--y),0)}}@keyframes Toastify__slideOutLeft{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(-110%,var(--y),0)}}@keyframes Toastify__slideOutDown{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,500px,0)}}@keyframes Toastify__slideOutUp{0%{transform:translate3d(0,var(--y),0)}to{visibility:hidden;transform:translate3d(0,-500px,0)}}.Toastify__slide-enter--top-left,.Toastify__slide-enter--bottom-left{animation-name:Toastify__slideInLeft}.Toastify__slide-enter--top-right,.Toastify__slide-enter--bottom-right{animation-name:Toastify__slideInRight}.Toastify__slide-enter--top-center{animation-name:Toastify__slideInDown}.Toastify__slide-enter--bottom-center{animation-name:Toastify__slideInUp}.Toastify__slide-exit--top-left,.Toastify__slide-exit--bottom-left{animation-name:Toastify__slideOutLeft;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-right,.Toastify__slide-exit--bottom-right{animation-name:Toastify__slideOutRight;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--top-center{animation-name:Toastify__slideOutUp;animation-timing-function:ease-in;animation-duration:.3s}.Toastify__slide-exit--bottom-center{animation-name:Toastify__slideOutDown;animation-timing-function:ease-in;animation-duration:.3s}@keyframes Toastify__spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}
`);var sg=e=>typeof e=="number"&&!isNaN(e),wo=e=>typeof e=="string",Mx=e=>typeof e=="function",P3=e=>wo(e)||sg(e),V3=e=>E.isValidElement(e)||wo(e)||Mx(e)||sg(e),I3=1,Dx=()=>`${I3++}`,ka=new Map,Nm=[],aw=new Set,Ox=()=>ka.size>0,q3=(e,{containerId:n})=>{var a;return(a=ka.get(n||1))==null?void 0:a.toasts.get(e)};function Q3(e,n){var a;if(n)return!!((a=ka.get(n))!=null&&a.isToastActive(e));let r=!1;return ka.forEach(o=>{o.isToastActive(e)&&(r=!0)}),r}function G3(e){if(!Ox()){Nm=Nm.filter(n=>e!=null&&n.options.toastId!==e);return}if(e==null||P3(e))ka.forEach(n=>{n.removeToast(e)});else if(e&&("containerId"in e||"id"in e)){let n=ka.get(e.containerId);n?n.removeToast(e.id):ka.forEach(a=>{a.removeToast(e.id)})}}var Y3=(e={})=>{ka.forEach(n=>{n.props.limit&&(!e.containerId||n.id===e.containerId)&&n.clearQueue()})};function $3(e,n){V3(e)&&(Ox()||Nm.push({content:e,options:n}),ka.forEach(a=>{a.buildToast(e,n)}))}function _x(e,n){ka.forEach(a=>{(n==null||!(n!=null&&n.containerId)||(n==null?void 0:n.containerId)===a.id)&&a.toggle(e,n==null?void 0:n.id)})}function X3(e){return aw.add(e),()=>{aw.delete(e)}}function K3(e){return e&&(wo(e.toastId)||sg(e.toastId))?e.toastId:Dx()}function No(e,n){return $3(e,n),n.toastId}function Jc(e,n){return{...n,type:n&&n.type||e,toastId:K3(n)}}function Wc(e){return(n,a)=>No(n,Jc(e,a))}function nt(e,n){return No(e,Jc("default",n))}nt.loading=(e,n)=>No(e,Jc("default",{isLoading:!0,autoClose:!1,closeOnClick:!1,closeButton:!1,draggable:!1,...n}));function Z3(e,{pending:n,error:a,success:r},o){let u;n&&(u=wo(n)?nt.loading(n,o):nt.loading(n.render,{...o,...n}));let f={isLoading:null,autoClose:null,closeOnClick:null,closeButton:null,draggable:null},m=(g,y,v)=>{if(y==null){nt.dismiss(u);return}let b={type:g,...f,...o,data:v},x=wo(y)?{render:y}:y;return u?nt.update(u,{...b,...x}):nt(x.render,{...b,...x}),v},p=Mx(e)?e():e;return p.then(g=>m("success",r,g)).catch(g=>m("error",a,g)),p}nt.promise=Z3;nt.success=Wc("success");nt.info=Wc("info");nt.error=Wc("error");nt.warning=Wc("warning");nt.warn=nt.warning;nt.dark=(e,n)=>No(e,Jc("default",{theme:"dark",...n}));function J3(e){G3(e)}nt.dismiss=J3;nt.clearWaitingQueue=Y3;nt.isActive=Q3;nt.update=(e,n={})=>{let a=q3(e,n);if(a){let{props:r,content:o}=a,u={delay:100,...r,...n,toastId:n.toastId||e,updateId:Dx()};u.toastId!==e&&(u.staleId=e);let f=u.render||o;delete u.render,No(f,u)}};nt.done=e=>{nt.update(e,{progress:1})};nt.onChange=X3;nt.play=e=>_x(!0,e);nt.pause=e=>_x(!1,e);const W3=()=>{var X,le;const e=JSON.parse(localStorage.getItem("user")),n=localStorage.getItem("token"),a=(X=e==null?void 0:e.data)==null?void 0:X.id,r=dn(),[o,u]=E.useState(!1),[f,m]=E.useState(!1),[p,g]=E.useState(""),[y,v]=E.useState(1),[b,x]=E.useState(5),[S,j]=E.useState(null),[C,k]=E.useState(null),[z,_]=E.useState(!1),{data:Z,isLoading:R,refetch:W}=el({queryKey:["submissions",a],queryFn:()=>Mn.getDetections({userId:a}),enabled:!!a,staleTime:5*60*1e3,cacheTime:30*60*1e3}),ue=((le=Z==null?void 0:Z.data)==null?void 0:le.data)||[],se=(ue==null?void 0:ue.filter(q=>{var re;return(re=q.complaint)==null?void 0:re.toLowerCase().includes(p.toLowerCase())}))||[],Q=se.length,ne=Math.ceil(Q/b),fe=y*b,ge=fe-b,De=se.slice(ge,fe),ce=q=>{r(`/deteksi/${q}`)},P=q=>{j(q),u(!0)},H=q=>{k(q),m(!0)},te=Ec({mutationFn:({id:q,data:re,token:we})=>Mn.updateDetection(q,re,we),onSuccess:()=>{nt.success("Data berhasil diperbarui"),W(),u(!1)},onError:()=>{nt.error("Gagal memperbarui data")}}),$=Ec({mutationFn:q=>Mn.deleteSubmission(q,n),onSuccess:()=>{nt.success("Data berhasil dihapus"),W(),m(!1),k(null)},onError:()=>{nt.error("Gagal menghapus data")}}),oe=()=>{y<ne&&v(q=>q+1)},N=()=>{y>1&&v(q=>q-1)};return c.jsxs(c.Fragment,{children:[o&&c.jsx(fx,{data:S,onClose:()=>u(!1),onUpdated:q=>{console.log("FORM DATA",q),console.log("TOKEN",n),console.log("ID",S.id),te.mutate({id:S.id,data:q,token:n})}}),f&&c.jsx(tg,{onClose:()=>m(!1),onDelete:()=>$.mutate(C)}),c.jsxs("div",{className:"pt-32 w-full px-6 lg:px-3",children:[c.jsx("h1",{className:"text-3xl font-bold text-black",children:"Riwayat Deteksi"}),c.jsxs("div",{className:"flex flex-col md:flex-row md:justify-between gap-3 mt-6 mb-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"mr-2 font-medium",children:"Tampilkan:"}),c.jsxs("select",{className:"border rounded px-3 py-1",value:b,onChange:q=>{x(Number(q.target.value)),v(1)},children:[c.jsx("option",{value:5,children:"5 data"}),c.jsx("option",{value:10,children:"10 data"}),c.jsx("option",{value:20,children:"20 data"})]})]}),c.jsx("div",{children:c.jsx("input",{type:"text",placeholder:"Cari keluhan...",className:"border rounded px-3 py-1 w-full md:w-64",value:p,onChange:q=>{g(q.target.value),v(1)}})})]}),c.jsx("button",{className:"px-4 py-2 mb-4 bg-sky-700 hover:bg-sky-600 font-semibold text-white rounded cursor-pointer",onClick:async()=>{try{_(!0),await W(),console.log("data deteksi di refresh")}finally{_(!1)}},children:z?"Memperbarui...":"Refresh Data 🔄"}),c.jsx("div",{className:"w-full lg:px-0 px-4 overflow-x-auto",children:c.jsxs("table",{className:"hidden lg:table w-full mt-6 mb-5 rounded-xl shadow-lg bg-white/60 backdrop-blur-md",children:[c.jsx("thead",{className:"border-b border-gray-200 text-left",children:c.jsxs("tr",{className:"text-black font-semibold",children:[c.jsx("th",{className:"py-4 px-6",children:"Tanggal Pengajuan"}),c.jsx("th",{className:"py-4 px-6",children:"Diagnosis AI"}),c.jsx("th",{className:"py-4 px-6",children:"Gambar"}),c.jsx("th",{className:"py-4 px-6",children:"Keluhan"}),c.jsx("th",{className:"py-4 px-6",children:"Pengajuan"}),c.jsx("th",{className:"py-4 px-6",children:"Status"}),c.jsx("th",{className:"py-4 px-6 text-center",children:"Aksi"})]})}),c.jsx("tbody",{className:"text-left text-gray-800",children:R?c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"py-6",children:c.jsx(px,{})})}):De.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:7,className:"text-center font-bold py-6",children:"Anda belom memiliki riwayat deteksi"})}):De.map(q=>{const we=parseFloat(q.diagnosisAi)>=50?"text-red-600":"text-green-600",Re=q.status==="rejected"?"text-red-600":q.status==="pending"?"text-yellow-600":"text-green-600";return c.jsxs("tr",{className:"*:align-middle *:text-start *:px-6",children:[c.jsx("td",{children:q.submittedAt}),c.jsx("td",{className:`font-semibold ${we}`,children:q.diagnosisAi}),c.jsx("td",{children:c.jsx("div",{className:"w-40 h-32 rounded-lg flex items-center justify-start overflow-hidden",children:c.jsx("img",{className:"max-w-full max-h-full object-contain",src:q.imageUrl,alt:"Deteksi"})})}),c.jsx("td",{className:"text-ellipsis",children:q==null?void 0:q.complaint}),c.jsx("td",{className:`font-semibold ${(q==null?void 0:q.isSubmitted)==="Sudah"?"text-green-600":"text-red-600"}`,children:q==null?void 0:q.isSubmitted}),c.jsx("td",{className:`font-semibold capitalize ${Re}`,children:q.status}),c.jsxs("td",{className:"flex flex-col items-center pt-4",children:[c.jsxs("div",{className:"flex gap-x-3",children:[c.jsx("button",{type:"button",onClick:()=>ce(q.id),className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Zc,alt:"Info"})}),c.jsx("button",{type:"button",className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Gs,alt:"Hapus",onClick:()=>H(q.id)})}),q.isSubmitted==="Sudah"&&c.jsx("button",{type:"button",onClick:()=>P(q),className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:hx,alt:"Edit"})})]}),q.isSubmitted==="Tidak"&&c.jsx("button",{type:"button",onClick:()=>r(`/pengajuan/ulang/${q.id}`),className:"w-3/4 text-sm font-semibold border border-black py-2 mt-2 rounded-lg cursor-pointer",children:"Ajukan Verifikasi"})]})]},q.id)})})]})}),c.jsx("div",{className:"lg:hidden mt-4 space-y-4",children:De.map(q=>{const re={date:q.submittedAt,persentase:q.diagnosisAi,imageUrl:q.imageUrl,keluhan:q.complaint,pengajuan:q.isSubmitted,status:q.status};return c.jsx(gx,{item:re,handleInfo:()=>ce(q.id),handleEdit:()=>P(q),handleDelete:()=>H(q.id),handleSubmission:()=>r(`/pengajuan/ulang/${q.id}`)},q.id)})}),c.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between mt-4 mb-10 px-4 text-sm text-gray-600",children:[c.jsxs("span",{children:["Halaman ",y," dari ",ne,"  |  Total"," ",Q," data"]}),c.jsxs("div",{className:"mt-2 lg:mt-0 flex gap-3",children:[c.jsx("button",{onClick:N,disabled:y===1,className:"px-4 py-2 rounded-md border disabled:cursor-not-allowed disabled:opacity-50",children:"Sebelumnya"}),c.jsx("button",{onClick:oe,disabled:y===ne,className:"px-4 py-2 rounded-md border disabled:cursor-not-allowed disabled:opacity-50",children:"Selanjutnya"})]})]})]})]})},iw="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABUAAAAVCAYAAACpF6WWAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAGMSURBVHgB1ZQ7TsNAEIZn1pBAtxIHwAUFHa4QpVOAUoYThBKhFLkB4QQICRAd4QSEikCDUlPgCyCWC4AbhFDsHcZJ7PgRR0ksCj5ppX3+++/O7AL8F3DaoKwe2oKMOlctAJI83SUAVxC0feH33O6VmllU7h5ZKPCUB23IRwFR++Px8iQ9YKQ71vYaNUS45bIJ05GAaK9ubMvv1+eHXFE+romE9+xfwuzspIVFfFSQeJpTMKQpqw07IxoEha/YhAVBouOMqNDGARSAg2pJuykToswWFEPC8peZFEVK3CXno9KIFSJwuelqwn2uO6PJZ8OSwihnnKZRAB5nDbnDXX4Ub6wGklo7GvRb3sKlyBm74Nw0I+Oc+EiGHbaFKL1EcwVeT3bjqYRTQupBAYLrCp9t/E47UABCaIX1+ClMWJChy4ubjKihlxZ5SQNBQr8S7xs7JT23KAs6gWD6C4yi7/dLHSz366PpLkf/nRetI2Btgp7DuXb32T1vTdps6icdMHh6K5417vFU3uf8p/wCITaErXLCrhMAAAAASUVORK5CYII=",eR=()=>{const e=[{title:"Apa itu melanoma?",desription:"Melanoma adalah jenis kanker kulit yang paling serius. Melanoma terjadi ketika sel-sel pigmentasi kulit yang disebut melanosit berubah menjadi sel-sel kanker. Melanoma dapat terjadi di kulit mana pun, tetapi melanoma yang terjadi di bagian tubuh yang tidak terpapar sinar matahari seringkali lebih serius."},{title:"Apa saja gejala Melanoma?",desription:"Gejala melanoma dapat meliputi munculnya tahi lalat baru atau perubahan pada tahi lalat yang sudah ada. Ciri-ciri tahi lalat yang mencurigakan termasuk bentuk yang tidak simetris, tepi yang tidak rata, warna yang tidak seragam, diameter lebih besar dari 6 mm, dan perubahan bentuk, ukuran, atau warna."},{title:"Bagaimana pengobatan untuk melanoma?",desription:"Gejala melanoma dapat meliputi munculnya tahi lalat baru atau perubahan pada tahi lalat yang sudah ada. Ciri-ciri tahi lalat yang mencurigakan termasuk bentuk yang tidak simetris, tepi yang tidak rata, warna yang tidak seragam, diameter lebih besar dari 6 mm, dan perubahan bentuk, ukuran, atau warna."},{title:"Bagaimana cara mencegah melanoma?",desription:"Pencegahan melanoma meliputi menghindari paparan sinar matahari yang berlebihan, terutama pada jam-jam terik. Gunakan tabir surya dengan SPF tinggi, kenakan pakaian pelindung, dan hindari penggunaan tanning bed. Selain itu, periksa kulit secara rutin untuk mendeteksi perubahan atau tanda-tanda yang mencurigakan."}],n=[{title:"Apa itu MySkin?",desription:"My Skin adalah sistem deteksi dini melanoma berbasis web yang menggunakan teknologi AI. Hasil analisis dapat diverifikasi oleh Dokter."},{title:"Apakah MySkin berbayar?",desription:"My Skin gratis untuk digunakan oleh khalayak umum, dapat diakses dimana saja dan tidak dipungut biaya sepersen pun"}];return c.jsxs("div",{className:"w-full pt-32",children:[c.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Frequntly Asked Questions"}),c.jsx("p",{className:"font-normal text-black text-center mt-2",children:"Terkait Melanoma"}),c.jsx("div",{className:"w-full flex flex-wrap justify-center gap-4 px-2 my-8",children:e.map((a,r)=>c.jsxs("div",{className:"rounded-lg shadow-lg w-full md:w-1/3 bg-white p-5",children:[c.jsxs("div",{className:"flex items-center gap-x-2",children:[c.jsx("span",{className:"border border-gray-200 p-1 rounded-lg",children:c.jsx("img",{src:iw,alt:""})}),c.jsx("h1",{className:"font-semibold",children:a.title})]}),c.jsx("p",{className:"text-sm font-normal mt-3",children:a.desription})]},r))}),c.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Frequntly Asked Questions"}),c.jsx("p",{className:"font-normal text-black text-center mt-2",children:"Terkait Melanoma"}),c.jsx("div",{className:"w-full flex flex-wrap justify-center px-2 gap-4 my-8",children:n.map((a,r)=>c.jsxs("div",{className:"rounded-lg shadow-lg w-full md:w-1/3 bg-white p-5",children:[c.jsxs("div",{className:"flex items-center gap-x-2",children:[c.jsx("span",{className:"border border-gray-200 p-1 rounded-lg",children:c.jsx("img",{src:iw,alt:""})}),c.jsx("h1",{className:"font-semibold",children:a.title})]}),c.jsx("p",{className:"text-sm font-normal mt-3",children:a.desription})]},r))})]})},tR="/assets/accordion1-zCBIfOOg.jpg",nR="/assets/accordion2-BgptnTtb.jpg",aR="/assets/accordion3-HU8XjMNE.jpg",iR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFoSURBVHgBrZTdUcJAFIXPXTMjj9gBVqA8Oeg4kgqQCqAErQCowBagAuyAOM7o+KQdGCsQX/RFWc9uEknIr4Ezk0z279t7T3avIEf6GU18YgCFYzZbtlOwhMYtv+6kAz9rnaRAj1ysMebIAMWa8plsghNAfY8u9jBnbxPV5HPzazm1USeB+gGXbM1RR99w5RzeH9CmCSwQefV/Lfm0TfoqCI+e1YcZGYtGNsIwulfsQg0cKPzwR5RphQnfk9J5Xxg6cNBjyoUwObOWGK+NRrlzBUcOYc0ymH4iZMX5HX4XQ1tORdg4irAMaiJ8S98XeJuwUOMY9ILtbmKVxofwQF8ReJOxmZdaUDamMBS9oIcNvGM3OlTi2goyw/aarm+K0Cdtr09d+QjPqQXaEiToo64UK05YxlTUxw6PUfbD3aopyMqVk3X5UvHxsK65FT2dMqu2DSTOyN08KBpdwnuxgmusecE+ZtLO9vwX7D910cozzz8AAAAASUVORK5CYII=",rR="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFvSURBVHgBrZRRTsJAEIb/WUnkEW+AJ1CejBqT9gTICfAKnoByEzgB3gCMicYnuYF4AvFFX5T136FAa7elFv5kU3Y38+3Mz+4IcmRf0MAnujA45bSpi4I5LO74617OMfPFSQb0xGCLiDtdFGvA0f8LTgHtAwIcYMTVBsppxsNv5UKzTgPtI645G6GKvhHKFSZroJYJjLHy6v+ac7Rc+WaZHj2rDnNyFvU0wzi7V+xDdRwZ/PCP8GtSEOrf+8KNQQ1tXwD9CPntZ3YWelVCL1RwYuif74oEtKLHwCgFdbBLRPZZ/Qo8cc0a8hURCgd1X8Kwhi30IK9qzPAt+16yUDfZBiPrw2U45ehuyxRGs4xQJL4ysWN6WMc79qNjI6F2kCF212DzUoSlWH0+VTVDfBsUqC1I0EFVGXacuI2Z1RoXJsyyE59WTsuqQjnbtC+T3I/7WljS0wGramkiSUbu4cumERDeTjRcZ80UhxhKy+/5L0y3cInXnQ8yAAAAAElFTkSuQmCC",Bx=({title:e,description:n,onClose:a})=>c.jsxs("div",{className:"bg-white rounded-2xl shadow-lg max-w-md w-full p-6 relative",children:[c.jsx("button",{onClick:a,className:"absolute top-4 right-4 text-gray-500 hover:text-gray-800",children:c.jsx(yE,{size:16})}),c.jsx("h2",{className:"text-lg font-semibold text-sky-700 mb-2",children:e}),c.jsx("p",{className:"text-gray-700 text-sm leading-relaxed",children:n})]});Bx.propTypes={title:Be.string.isRequired,description:Be.string.isRequired,onClose:Be.func.isRequired};const sR=()=>{const[e,n]=E.useState(0),{Modal:a,onOpen:r,onClose:o,type:u}=Km(),[f,m]=E.useState({title:"",description:""}),p=[{title:"Deteksi Awal",content:"MySkin membantu mendeteksi gejala awal melanoma untuk penanganan yang lebih cepat. MySkin membantu mendeteksi gejala awal melanoma untuk penanganan yang lebih cepat.",image:tR},{title:"Diagnosis Dokter",content:"MySkin menyediakan 10+ dokter untuk memverifikasi penyakit Anda.",image:nR},{title:"Diagnosis AI",content:"MySkin menggunakan kecerdasan buatan yang andal untuk menganalisa kulit Anda.",image:aR}],g=y=>{m({title:y.title,description:y.content}),r("accordion")};return c.jsxs("div",{className:"flex flex-col md:flex-row items-center md:space-x-8 py-10 px-6 md:px-20 transition-all duration-300 ease-out",children:[c.jsx("div",{className:"w-full md:w-1/2",children:c.jsx("img",{src:p[e].image,alt:"Selected",className:"rounded-lg w-full h-96"})}),c.jsx("div",{className:"w-full md:w-1/2 min-h-96 mt-6",children:p.map((y,v)=>c.jsxs("div",{className:"border border-gray-300 rounded-lg mb-4 overflow-hidden",children:[c.jsxs("button",{onClick:()=>n(v),className:"w-full text-left px-6 py-4 flex justify-between items-center bg-white cursor-pointer",children:[c.jsx("span",{className:"font-semibold text-lg",children:y.title}),c.jsx("span",{className:"text-xl",children:c.jsx("img",{src:e===v?iR:rR,alt:""})})]}),c.jsxs("div",{className:`px-6 transition-all duration-300 ease-in-out ${e===v?"md:max-h-40 opacity-100 py-4":"max-h-0 opacity-0 py-0"}`,children:[c.jsx("p",{children:y.content}),c.jsx("button",{onClick:()=>g(y),className:"flex justify-end w-full text-sky-900 font-semibold mt-4 cursor-pointer",children:"Lebih banyak →"})]})]},v))}),u==="accordion"&&c.jsx(a,{children:c.jsx(Bx,{title:f.title,description:f.description,onClose:o})})]})};/*!
* sweetalert2 v11.21.0
* Released under the MIT License.
*/function zx(e,n,a){if(typeof e=="function"?e===n:e.has(n))return arguments.length<3?n:a;throw new TypeError("Private element is not present on this object")}function lR(e,n){if(n.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function rw(e,n){return e.get(zx(e,n))}function oR(e,n,a){lR(e,n),n.set(e,a)}function uR(e,n,a){return e.set(zx(e,n),a),a}const cR=100,je={},dR=()=>{je.previousActiveElement instanceof HTMLElement?(je.previousActiveElement.focus(),je.previousActiveElement=null):document.body&&document.body.focus()},fR=e=>new Promise(n=>{if(!e)return n();const a=window.scrollX,r=window.scrollY;je.restoreFocusTimeout=setTimeout(()=>{dR(),n()},cR),window.scrollTo(a,r)}),Lx="swal2-",hR=["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"],Y=hR.reduce((e,n)=>(e[n]=Lx+n,e),{}),mR=["success","warning","info","question","error"],jc=mR.reduce((e,n)=>(e[n]=Lx+n,e),{}),Ux="SweetAlert2:",lg=e=>e.charAt(0).toUpperCase()+e.slice(1),cn=e=>{console.warn(`${Ux} ${typeof e=="object"?e.join(" "):e}`)},Qr=e=>{console.error(`${Ux} ${e}`)},sw=[],gR=e=>{sw.includes(e)||(sw.push(e),cn(e))},Hx=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;gR(`"${e}" is deprecated and will be removed in the next major release.${n?` Use "${n}" instead.`:""}`)},ed=e=>typeof e=="function"?e():e,og=e=>e&&typeof e.toPromise=="function",To=e=>og(e)?e.toPromise():Promise.resolve(e),ug=e=>e&&Promise.resolve(e)===e,fn=()=>document.body.querySelector(`.${Y.container}`),ko=e=>{const n=fn();return n?n.querySelector(e):null},_n=e=>ko(`.${e}`),Je=()=>_n(Y.popup),tl=()=>_n(Y.icon),pR=()=>_n(Y["icon-content"]),Fx=()=>_n(Y.title),cg=()=>_n(Y["html-container"]),Px=()=>_n(Y.image),dg=()=>_n(Y["progress-steps"]),td=()=>_n(Y["validation-message"]),Ma=()=>ko(`.${Y.actions} .${Y.confirm}`),nl=()=>ko(`.${Y.actions} .${Y.cancel}`),Gr=()=>ko(`.${Y.actions} .${Y.deny}`),yR=()=>_n(Y["input-label"]),al=()=>ko(`.${Y.loader}`),Mo=()=>_n(Y.actions),Vx=()=>_n(Y.footer),nd=()=>_n(Y["timer-progress-bar"]),fg=()=>_n(Y.close),vR=`
  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
`,hg=()=>{const e=Je();if(!e)return[];const n=e.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),a=Array.from(n).sort((u,f)=>{const m=parseInt(u.getAttribute("tabindex")||"0"),p=parseInt(f.getAttribute("tabindex")||"0");return m>p?1:m<p?-1:0}),r=e.querySelectorAll(vR),o=Array.from(r).filter(u=>u.getAttribute("tabindex")!=="-1");return[...new Set(a.concat(o))].filter(u=>bn(u))},mg=()=>ri(document.body,Y.shown)&&!ri(document.body,Y["toast-shown"])&&!ri(document.body,Y["no-backdrop"]),ad=()=>{const e=Je();return e?ri(e,Y.toast):!1},wR=()=>{const e=Je();return e?e.hasAttribute("data-loading"):!1},Bn=(e,n)=>{if(e.textContent="",n){const r=new DOMParser().parseFromString(n,"text/html"),o=r.querySelector("head");o&&Array.from(o.childNodes).forEach(f=>{e.appendChild(f)});const u=r.querySelector("body");u&&Array.from(u.childNodes).forEach(f=>{f instanceof HTMLVideoElement||f instanceof HTMLAudioElement?e.appendChild(f.cloneNode(!0)):e.appendChild(f)})}},ri=(e,n)=>{if(!n)return!1;const a=n.split(/\s+/);for(let r=0;r<a.length;r++)if(!e.classList.contains(a[r]))return!1;return!0},bR=(e,n)=>{Array.from(e.classList).forEach(a=>{!Object.values(Y).includes(a)&&!Object.values(jc).includes(a)&&!Object.values(n.showClass||{}).includes(a)&&e.classList.remove(a)})},On=(e,n,a)=>{if(bR(e,n),!n.customClass)return;const r=n.customClass[a];if(r){if(typeof r!="string"&&!r.forEach){cn(`Invalid type of customClass.${a}! Expected string or iterable object, got "${typeof r}"`);return}We(e,r)}},id=(e,n)=>{if(!n)return null;switch(n){case"select":case"textarea":case"file":return e.querySelector(`.${Y.popup} > .${Y[n]}`);case"checkbox":return e.querySelector(`.${Y.popup} > .${Y.checkbox} input`);case"radio":return e.querySelector(`.${Y.popup} > .${Y.radio} input:checked`)||e.querySelector(`.${Y.popup} > .${Y.radio} input:first-child`);case"range":return e.querySelector(`.${Y.popup} > .${Y.range} input`);default:return e.querySelector(`.${Y.popup} > .${Y.input}`)}},Ix=e=>{if(e.focus(),e.type!=="file"){const n=e.value;e.value="",e.value=n}},qx=(e,n,a)=>{!e||!n||(typeof n=="string"&&(n=n.split(/\s+/).filter(Boolean)),n.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)}))},We=(e,n)=>{qx(e,n,!0)},na=(e,n)=>{qx(e,n,!1)},Gi=(e,n)=>{const a=Array.from(e.children);for(let r=0;r<a.length;r++){const o=a[r];if(o instanceof HTMLElement&&ri(o,n))return o}},Hr=(e,n,a)=>{a===`${parseInt(a)}`&&(a=parseInt(a)),a||parseInt(a)===0?e.style.setProperty(n,typeof a=="number"?`${a}px`:a):e.style.removeProperty(n)},qt=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"flex";e&&(e.style.display=n)},an=e=>{e&&(e.style.display="none")},gg=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"block";e&&new MutationObserver(()=>{Do(e,e.innerHTML,n)}).observe(e,{childList:!0,subtree:!0})},lw=(e,n,a,r)=>{const o=e.querySelector(n);o&&o.style.setProperty(a,r)},Do=function(e,n){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"flex";n?qt(e,a):an(e)},bn=e=>!!(e&&(e.offsetWidth||e.offsetHeight||e.getClientRects().length)),xR=()=>!bn(Ma())&&!bn(Gr())&&!bn(nl()),ow=e=>e.scrollHeight>e.clientHeight,Qx=e=>{const n=window.getComputedStyle(e),a=parseFloat(n.getPropertyValue("animation-duration")||"0"),r=parseFloat(n.getPropertyValue("transition-duration")||"0");return a>0||r>0},pg=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const a=nd();a&&bn(a)&&(n&&(a.style.transition="none",a.style.width="100%"),setTimeout(()=>{a.style.transition=`width ${e/1e3}s linear`,a.style.width="0%"},10))},SR=()=>{const e=nd();if(!e)return;const n=parseInt(window.getComputedStyle(e).width);e.style.removeProperty("transition"),e.style.width="100%";const a=parseInt(window.getComputedStyle(e).width),r=n/a*100;e.style.width=`${r}%`},AR=()=>typeof window>"u"||typeof document>"u",CR=`
 <div aria-labelledby="${Y.title}" aria-describedby="${Y["html-container"]}" class="${Y.popup}" tabindex="-1">
   <button type="button" class="${Y.close}"></button>
   <ul class="${Y["progress-steps"]}"></ul>
   <div class="${Y.icon}"></div>
   <img class="${Y.image}" />
   <h2 class="${Y.title}" id="${Y.title}"></h2>
   <div class="${Y["html-container"]}" id="${Y["html-container"]}"></div>
   <input class="${Y.input}" id="${Y.input}" />
   <input type="file" class="${Y.file}" />
   <div class="${Y.range}">
     <input type="range" />
     <output></output>
   </div>
   <select class="${Y.select}" id="${Y.select}"></select>
   <div class="${Y.radio}"></div>
   <label class="${Y.checkbox}">
     <input type="checkbox" id="${Y.checkbox}" />
     <span class="${Y.label}"></span>
   </label>
   <textarea class="${Y.textarea}" id="${Y.textarea}"></textarea>
   <div class="${Y["validation-message"]}" id="${Y["validation-message"]}"></div>
   <div class="${Y.actions}">
     <div class="${Y.loader}"></div>
     <button type="button" class="${Y.confirm}"></button>
     <button type="button" class="${Y.deny}"></button>
     <button type="button" class="${Y.cancel}"></button>
   </div>
   <div class="${Y.footer}"></div>
   <div class="${Y["timer-progress-bar-container"]}">
     <div class="${Y["timer-progress-bar"]}"></div>
   </div>
 </div>
`.replace(/(^|\n)\s*/g,""),ER=()=>{const e=fn();return e?(e.remove(),na([document.documentElement,document.body],[Y["no-backdrop"],Y["toast-shown"],Y["has-column"]]),!0):!1},jr=()=>{je.currentInstance.resetValidationMessage()},jR=()=>{const e=Je(),n=Gi(e,Y.input),a=Gi(e,Y.file),r=e.querySelector(`.${Y.range} input`),o=e.querySelector(`.${Y.range} output`),u=Gi(e,Y.select),f=e.querySelector(`.${Y.checkbox} input`),m=Gi(e,Y.textarea);n.oninput=jr,a.onchange=jr,u.onchange=jr,f.onchange=jr,m.oninput=jr,r.oninput=()=>{jr(),o.value=r.value},r.onchange=()=>{jr(),o.value=r.value}},RR=e=>typeof e=="string"?document.querySelector(e):e,NR=e=>{const n=Je();n.setAttribute("role",e.toast?"alert":"dialog"),n.setAttribute("aria-live",e.toast?"polite":"assertive"),e.toast||n.setAttribute("aria-modal","true")},TR=e=>{window.getComputedStyle(e).direction==="rtl"&&We(fn(),Y.rtl)},kR=e=>{const n=ER();if(AR()){Qr("SweetAlert2 requires document to initialize");return}const a=document.createElement("div");a.className=Y.container,n&&We(a,Y["no-transition"]),Bn(a,CR),a.dataset.swal2Theme=e.theme;const r=RR(e.target);r.appendChild(a),e.topLayer&&(a.setAttribute("popover",""),a.showPopover()),NR(e),TR(r),jR()},yg=(e,n)=>{e instanceof HTMLElement?n.appendChild(e):typeof e=="object"?MR(e,n):e&&Bn(n,e)},MR=(e,n)=>{e.jquery?DR(n,e):Bn(n,e.toString())},DR=(e,n)=>{if(e.textContent="",0 in n)for(let a=0;a in n;a++)e.appendChild(n[a].cloneNode(!0));else e.appendChild(n.cloneNode(!0))},OR=(e,n)=>{const a=Mo(),r=al();!a||!r||(!n.showConfirmButton&&!n.showDenyButton&&!n.showCancelButton?an(a):qt(a),On(a,n,"actions"),_R(a,r,n),Bn(r,n.loaderHtml||""),On(r,n,"loader"))};function _R(e,n,a){const r=Ma(),o=Gr(),u=nl();!r||!o||!u||(Ih(r,"confirm",a),Ih(o,"deny",a),Ih(u,"cancel",a),BR(r,o,u,a),a.reverseButtons&&(a.toast?(e.insertBefore(u,r),e.insertBefore(o,r)):(e.insertBefore(u,n),e.insertBefore(o,n),e.insertBefore(r,n))))}function BR(e,n,a,r){if(!r.buttonsStyling){na([e,n,a],Y.styled);return}We([e,n,a],Y.styled),r.confirmButtonColor&&e.style.setProperty("--swal2-confirm-button-background-color",r.confirmButtonColor),r.denyButtonColor&&n.style.setProperty("--swal2-deny-button-background-color",r.denyButtonColor),r.cancelButtonColor&&a.style.setProperty("--swal2-cancel-button-background-color",r.cancelButtonColor),Vh(e),Vh(n),Vh(a)}function Vh(e){const n=window.getComputedStyle(e),a=n.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");e.style.setProperty("--swal2-action-button-outline",n.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${a}`))}function Ih(e,n,a){const r=lg(n);Do(e,a[`show${r}Button`],"inline-block"),Bn(e,a[`${n}ButtonText`]||""),e.setAttribute("aria-label",a[`${n}ButtonAriaLabel`]||""),e.className=Y[n],On(e,a,`${n}Button`)}const zR=(e,n)=>{const a=fg();a&&(Bn(a,n.closeButtonHtml||""),On(a,n,"closeButton"),Do(a,n.showCloseButton),a.setAttribute("aria-label",n.closeButtonAriaLabel||""))},LR=(e,n)=>{const a=fn();a&&(UR(a,n.backdrop),HR(a,n.position),FR(a,n.grow),On(a,n,"container"))};function UR(e,n){typeof n=="string"?e.style.background=n:n||We([document.documentElement,document.body],Y["no-backdrop"])}function HR(e,n){n&&(n in Y?We(e,Y[n]):(cn('The "position" parameter is not valid, defaulting to "center"'),We(e,Y.center)))}function FR(e,n){n&&We(e,Y[`grow-${n}`])}var ct={innerParams:new WeakMap,domCache:new WeakMap};const PR=["input","file","range","select","radio","checkbox","textarea"],VR=(e,n)=>{const a=Je();if(!a)return;const r=ct.innerParams.get(e),o=!r||n.input!==r.input;PR.forEach(u=>{const f=Gi(a,Y[u]);f&&(QR(u,n.inputAttributes),f.className=Y[u],o&&an(f))}),n.input&&(o&&IR(n),GR(n))},IR=e=>{if(!e.input)return;if(!Tt[e.input]){Qr(`Unexpected type of input! Expected ${Object.keys(Tt).join(" | ")}, got "${e.input}"`);return}const n=Gx(e.input);if(!n)return;const a=Tt[e.input](n,e);qt(n),e.inputAutoFocus&&setTimeout(()=>{Ix(a)})},qR=e=>{for(let n=0;n<e.attributes.length;n++){const a=e.attributes[n].name;["id","type","value","style"].includes(a)||e.removeAttribute(a)}},QR=(e,n)=>{const a=Je();if(!a)return;const r=id(a,e);if(r){qR(r);for(const o in n)r.setAttribute(o,n[o])}},GR=e=>{if(!e.input)return;const n=Gx(e.input);n&&On(n,e,"input")},vg=(e,n)=>{!e.placeholder&&n.inputPlaceholder&&(e.placeholder=n.inputPlaceholder)},Oo=(e,n,a)=>{if(a.inputLabel){const r=document.createElement("label"),o=Y["input-label"];r.setAttribute("for",e.id),r.className=o,typeof a.customClass=="object"&&We(r,a.customClass.inputLabel),r.innerText=a.inputLabel,n.insertAdjacentElement("beforebegin",r)}},Gx=e=>{const n=Je();if(n)return Gi(n,Y[e]||Y.input)},Rc=(e,n)=>{["string","number"].includes(typeof n)?e.value=`${n}`:ug(n)||cn(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof n}"`)},Tt={};Tt.text=Tt.email=Tt.password=Tt.number=Tt.tel=Tt.url=Tt.search=Tt.date=Tt["datetime-local"]=Tt.time=Tt.week=Tt.month=(e,n)=>(Rc(e,n.inputValue),Oo(e,e,n),vg(e,n),e.type=n.input,e);Tt.file=(e,n)=>(Oo(e,e,n),vg(e,n),e);Tt.range=(e,n)=>{const a=e.querySelector("input"),r=e.querySelector("output");return Rc(a,n.inputValue),a.type=n.input,Rc(r,n.inputValue),Oo(a,e,n),e};Tt.select=(e,n)=>{if(e.textContent="",n.inputPlaceholder){const a=document.createElement("option");Bn(a,n.inputPlaceholder),a.value="",a.disabled=!0,a.selected=!0,e.appendChild(a)}return Oo(e,e,n),e};Tt.radio=e=>(e.textContent="",e);Tt.checkbox=(e,n)=>{const a=id(Je(),"checkbox");a.value="1",a.checked=!!n.inputValue;const r=e.querySelector("span");return Bn(r,n.inputPlaceholder||n.inputLabel),a};Tt.textarea=(e,n)=>{Rc(e,n.inputValue),vg(e,n),Oo(e,e,n);const a=r=>parseInt(window.getComputedStyle(r).marginLeft)+parseInt(window.getComputedStyle(r).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const r=parseInt(window.getComputedStyle(Je()).width),o=()=>{if(!document.body.contains(e))return;const u=e.offsetWidth+a(e);u>r?Je().style.width=`${u}px`:Hr(Je(),"width",n.width)};new MutationObserver(o).observe(e,{attributes:!0,attributeFilter:["style"]})}}),e};const YR=(e,n)=>{const a=cg();a&&(gg(a),On(a,n,"htmlContainer"),n.html?(yg(n.html,a),qt(a,"block")):n.text?(a.textContent=n.text,qt(a,"block")):an(a),VR(e,n))},$R=(e,n)=>{const a=Vx();a&&(gg(a),Do(a,n.footer,"block"),n.footer&&yg(n.footer,a),On(a,n,"footer"))},XR=(e,n)=>{const a=ct.innerParams.get(e),r=tl();if(!r)return;if(a&&n.icon===a.icon){cw(r,n),uw(r,n);return}if(!n.icon&&!n.iconHtml){an(r);return}if(n.icon&&Object.keys(jc).indexOf(n.icon)===-1){Qr(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${n.icon}"`),an(r);return}qt(r),cw(r,n),uw(r,n),We(r,n.showClass&&n.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Yx)},uw=(e,n)=>{for(const[a,r]of Object.entries(jc))n.icon!==a&&na(e,r);We(e,n.icon&&jc[n.icon]),JR(e,n),Yx(),On(e,n,"icon")},Yx=()=>{const e=Je();if(!e)return;const n=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=n},KR=`
  <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> <div class="swal2-success-fix"></div>
  <div class="swal2-success-circular-line-right"></div>
`,ZR=`
  <span class="swal2-x-mark">
    <span class="swal2-x-mark-line-left"></span>
    <span class="swal2-x-mark-line-right"></span>
  </span>
`,cw=(e,n)=>{if(!n.icon&&!n.iconHtml)return;let a=e.innerHTML,r="";n.iconHtml?r=dw(n.iconHtml):n.icon==="success"?(r=KR,a=a.replace(/ style=".*?"/g,"")):n.icon==="error"?r=ZR:n.icon&&(r=dw({question:"?",warning:"!",info:"i"}[n.icon])),a.trim()!==r.trim()&&Bn(e,r)},JR=(e,n)=>{if(n.iconColor){e.style.color=n.iconColor,e.style.borderColor=n.iconColor;for(const a of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])lw(e,a,"background-color",n.iconColor);lw(e,".swal2-success-ring","border-color",n.iconColor)}},dw=e=>`<div class="${Y["icon-content"]}">${e}</div>`,WR=(e,n)=>{const a=Px();if(a){if(!n.imageUrl){an(a);return}qt(a,""),a.setAttribute("src",n.imageUrl),a.setAttribute("alt",n.imageAlt||""),Hr(a,"width",n.imageWidth),Hr(a,"height",n.imageHeight),a.className=Y.image,On(a,n,"image")}};let wg=!1,$x=0,Xx=0,Kx=0,Zx=0;const eN=e=>{e.addEventListener("mousedown",Nc),document.body.addEventListener("mousemove",Tc),e.addEventListener("mouseup",kc),e.addEventListener("touchstart",Nc),document.body.addEventListener("touchmove",Tc),e.addEventListener("touchend",kc)},tN=e=>{e.removeEventListener("mousedown",Nc),document.body.removeEventListener("mousemove",Tc),e.removeEventListener("mouseup",kc),e.removeEventListener("touchstart",Nc),document.body.removeEventListener("touchmove",Tc),e.removeEventListener("touchend",kc)},Nc=e=>{const n=Je();if(e.target===n||tl().contains(e.target)){wg=!0;const a=Jx(e);$x=a.clientX,Xx=a.clientY,Kx=parseInt(n.style.insetInlineStart)||0,Zx=parseInt(n.style.insetBlockStart)||0,We(n,"swal2-dragging")}},Tc=e=>{const n=Je();if(wg){let{clientX:a,clientY:r}=Jx(e);n.style.insetInlineStart=`${Kx+(a-$x)}px`,n.style.insetBlockStart=`${Zx+(r-Xx)}px`}},kc=()=>{const e=Je();wg=!1,na(e,"swal2-dragging")},Jx=e=>{let n=0,a=0;return e.type.startsWith("mouse")?(n=e.clientX,a=e.clientY):e.type.startsWith("touch")&&(n=e.touches[0].clientX,a=e.touches[0].clientY),{clientX:n,clientY:a}},nN=(e,n)=>{const a=fn(),r=Je();if(!(!a||!r)){if(n.toast){Hr(a,"width",n.width),r.style.width="100%";const o=al();o&&r.insertBefore(o,tl())}else Hr(r,"width",n.width);Hr(r,"padding",n.padding),n.color&&(r.style.color=n.color),n.background&&(r.style.background=n.background),an(td()),aN(r,n),n.draggable&&!n.toast?(We(r,Y.draggable),eN(r)):(na(r,Y.draggable),tN(r))}},aN=(e,n)=>{const a=n.showClass||{};e.className=`${Y.popup} ${bn(e)?a.popup:""}`,n.toast?(We([document.documentElement,document.body],Y["toast-shown"]),We(e,Y.toast)):We(e,Y.modal),On(e,n,"popup"),typeof n.customClass=="string"&&We(e,n.customClass),n.icon&&We(e,Y[`icon-${n.icon}`])},iN=(e,n)=>{const a=dg();if(!a)return;const{progressSteps:r,currentProgressStep:o}=n;if(!r||r.length===0||o===void 0){an(a);return}qt(a),a.textContent="",o>=r.length&&cn("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),r.forEach((u,f)=>{const m=rN(u);if(a.appendChild(m),f===o&&We(m,Y["active-progress-step"]),f!==r.length-1){const p=sN(n);a.appendChild(p)}})},rN=e=>{const n=document.createElement("li");return We(n,Y["progress-step"]),Bn(n,e),n},sN=e=>{const n=document.createElement("li");return We(n,Y["progress-step-line"]),e.progressStepsDistance&&Hr(n,"width",e.progressStepsDistance),n},lN=(e,n)=>{const a=Fx();a&&(gg(a),Do(a,n.title||n.titleText,"block"),n.title&&yg(n.title,a),n.titleText&&(a.innerText=n.titleText),On(a,n,"title"))},Wx=(e,n)=>{nN(e,n),LR(e,n),iN(e,n),XR(e,n),WR(e,n),lN(e,n),zR(e,n),YR(e,n),OR(e,n),$R(e,n);const a=Je();typeof n.didRender=="function"&&a&&n.didRender(a),je.eventEmitter.emit("didRender",a)},oN=()=>bn(Je()),e2=()=>{var e;return(e=Ma())===null||e===void 0?void 0:e.click()},uN=()=>{var e;return(e=Gr())===null||e===void 0?void 0:e.click()},cN=()=>{var e;return(e=nl())===null||e===void 0?void 0:e.click()},il=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),t2=e=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1)},dN=(e,n,a)=>{t2(e),n.toast||(e.keydownHandler=r=>hN(n,r,a),e.keydownTarget=n.keydownListenerCapture?window:Je(),e.keydownListenerCapture=n.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)},Tm=(e,n)=>{var a;const r=hg();if(r.length){e=e+n,e===-2&&(e=r.length-1),e===r.length?e=0:e===-1&&(e=r.length-1),r[e].focus();return}(a=Je())===null||a===void 0||a.focus()},n2=["ArrowRight","ArrowDown"],fN=["ArrowLeft","ArrowUp"],hN=(e,n,a)=>{e&&(n.isComposing||n.keyCode===229||(e.stopKeydownPropagation&&n.stopPropagation(),n.key==="Enter"?mN(n,e):n.key==="Tab"?gN(n):[...n2,...fN].includes(n.key)?pN(n.key):n.key==="Escape"&&yN(n,e,a)))},mN=(e,n)=>{if(!ed(n.allowEnterKey))return;const a=id(Je(),n.input);if(e.target&&a&&e.target instanceof HTMLElement&&e.target.outerHTML===a.outerHTML){if(["textarea","file"].includes(n.input))return;e2(),e.preventDefault()}},gN=e=>{const n=e.target,a=hg();let r=-1;for(let o=0;o<a.length;o++)if(n===a[o]){r=o;break}e.shiftKey?Tm(r,-1):Tm(r,1),e.stopPropagation(),e.preventDefault()},pN=e=>{const n=Mo(),a=Ma(),r=Gr(),o=nl();if(!n||!a||!r||!o)return;const u=[a,r,o];if(document.activeElement instanceof HTMLElement&&!u.includes(document.activeElement))return;const f=n2.includes(e)?"nextElementSibling":"previousElementSibling";let m=document.activeElement;if(m){for(let p=0;p<n.children.length;p++){if(m=m[f],!m)return;if(m instanceof HTMLButtonElement&&bn(m))break}m instanceof HTMLButtonElement&&m.focus()}},yN=(e,n,a)=>{ed(n.allowEscapeKey)&&(e.preventDefault(),a(il.esc))};var Ys={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const vN=()=>{const e=fn();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"))})},a2=()=>{Array.from(document.body.children).forEach(n=>{n.hasAttribute("data-previous-aria-hidden")?(n.setAttribute("aria-hidden",n.getAttribute("data-previous-aria-hidden")||""),n.removeAttribute("data-previous-aria-hidden")):n.removeAttribute("aria-hidden")})},i2=typeof window<"u"&&!!window.GestureEvent,wN=()=>{if(i2&&!ri(document.body,Y.iosfix)){const e=document.body.scrollTop;document.body.style.top=`${e*-1}px`,We(document.body,Y.iosfix),bN()}},bN=()=>{const e=fn();if(!e)return;let n;e.ontouchstart=a=>{n=xN(a)},e.ontouchmove=a=>{n&&(a.preventDefault(),a.stopPropagation())}},xN=e=>{const n=e.target,a=fn(),r=cg();return!a||!r||SN(e)||AN(e)?!1:n===a||!ow(a)&&n instanceof HTMLElement&&n.tagName!=="INPUT"&&n.tagName!=="TEXTAREA"&&!(ow(r)&&r.contains(n))},SN=e=>e.touches&&e.touches.length&&e.touches[0].touchType==="stylus",AN=e=>e.touches&&e.touches.length>1,CN=()=>{if(ri(document.body,Y.iosfix)){const e=parseInt(document.body.style.top,10);na(document.body,Y.iosfix),document.body.style.top="",document.body.scrollTop=e*-1}},EN=()=>{const e=document.createElement("div");e.className=Y["scrollbar-measure"],document.body.appendChild(e);const n=e.getBoundingClientRect().width-e.clientWidth;return document.body.removeChild(e),n};let Ms=null;const jN=e=>{Ms===null&&(document.body.scrollHeight>window.innerHeight||e==="scroll")&&(Ms=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${Ms+EN()}px`)},RN=()=>{Ms!==null&&(document.body.style.paddingRight=`${Ms}px`,Ms=null)};function r2(e,n,a,r){ad()?fw(e,r):(fR(a).then(()=>fw(e,r)),t2(je)),i2?(n.setAttribute("style","display:none !important"),n.removeAttribute("class"),n.innerHTML=""):n.remove(),mg()&&(RN(),CN(),a2()),NN()}function NN(){na([document.documentElement,document.body],[Y.shown,Y["height-auto"],Y["no-backdrop"],Y["toast-shown"]])}function Yi(e){e=kN(e);const n=Ys.swalPromiseResolve.get(this),a=TN(this);this.isAwaitingPromise?e.isDismissed||(_o(this),n(e)):a&&n(e)}const TN=e=>{const n=Je();if(!n)return!1;const a=ct.innerParams.get(e);if(!a||ri(n,a.hideClass.popup))return!1;na(n,a.showClass.popup),We(n,a.hideClass.popup);const r=fn();return na(r,a.showClass.backdrop),We(r,a.hideClass.backdrop),MN(e,n,a),!0};function s2(e){const n=Ys.swalPromiseReject.get(this);_o(this),n&&n(e)}const _o=e=>{e.isAwaitingPromise&&(delete e.isAwaitingPromise,ct.innerParams.get(e)||e._destroy())},kN=e=>typeof e>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},e),MN=(e,n,a)=>{var r;const o=fn(),u=Qx(n);typeof a.willClose=="function"&&a.willClose(n),(r=je.eventEmitter)===null||r===void 0||r.emit("willClose",n),u?DN(e,n,o,a.returnFocus,a.didClose):r2(e,o,a.returnFocus,a.didClose)},DN=(e,n,a,r,o)=>{je.swalCloseEventFinishedCallback=r2.bind(null,e,a,r,o);const u=function(f){if(f.target===n){var m;(m=je.swalCloseEventFinishedCallback)===null||m===void 0||m.call(je),delete je.swalCloseEventFinishedCallback,n.removeEventListener("animationend",u),n.removeEventListener("transitionend",u)}};n.addEventListener("animationend",u),n.addEventListener("transitionend",u)},fw=(e,n)=>{setTimeout(()=>{var a;typeof n=="function"&&n.bind(e.params)(),(a=je.eventEmitter)===null||a===void 0||a.emit("didClose"),e._destroy&&e._destroy()})},$s=e=>{let n=Je();if(n||new Tn,n=Je(),!n)return;const a=al();ad()?an(tl()):ON(n,e),qt(a),n.setAttribute("data-loading","true"),n.setAttribute("aria-busy","true"),n.focus()},ON=(e,n)=>{const a=Mo(),r=al();!a||!r||(!n&&bn(Ma())&&(n=Ma()),qt(a),n&&(an(n),r.setAttribute("data-button-to-replace",n.className),a.insertBefore(r,n)),We([e,a],Y.loading))},_N=(e,n)=>{n.input==="select"||n.input==="radio"?HN(e,n):["text","email","number","tel","textarea"].some(a=>a===n.input)&&(og(n.inputValue)||ug(n.inputValue))&&($s(Ma()),FN(e,n))},BN=(e,n)=>{const a=e.getInput();if(!a)return null;switch(n.input){case"checkbox":return zN(a);case"radio":return LN(a);case"file":return UN(a);default:return n.inputAutoTrim?a.value.trim():a.value}},zN=e=>e.checked?1:0,LN=e=>e.checked?e.value:null,UN=e=>e.files&&e.files.length?e.getAttribute("multiple")!==null?e.files:e.files[0]:null,HN=(e,n)=>{const a=Je();if(!a)return;const r=o=>{n.input==="select"?PN(a,Mc(o),n):n.input==="radio"&&VN(a,Mc(o),n)};og(n.inputOptions)||ug(n.inputOptions)?($s(Ma()),To(n.inputOptions).then(o=>{e.hideLoading(),r(o)})):typeof n.inputOptions=="object"?r(n.inputOptions):Qr(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof n.inputOptions}`)},FN=(e,n)=>{const a=e.getInput();a&&(an(a),To(n.inputValue).then(r=>{a.value=n.input==="number"?`${parseFloat(r)||0}`:`${r}`,qt(a),a.focus(),e.hideLoading()}).catch(r=>{Qr(`Error in inputValue promise: ${r}`),a.value="",qt(a),a.focus(),e.hideLoading()}))};function PN(e,n,a){const r=Gi(e,Y.select);if(!r)return;const o=(u,f,m)=>{const p=document.createElement("option");p.value=m,Bn(p,f),p.selected=l2(m,a.inputValue),u.appendChild(p)};n.forEach(u=>{const f=u[0],m=u[1];if(Array.isArray(m)){const p=document.createElement("optgroup");p.label=f,p.disabled=!1,r.appendChild(p),m.forEach(g=>o(p,g[1],g[0]))}else o(r,m,f)}),r.focus()}function VN(e,n,a){const r=Gi(e,Y.radio);if(!r)return;n.forEach(u=>{const f=u[0],m=u[1],p=document.createElement("input"),g=document.createElement("label");p.type="radio",p.name=Y.radio,p.value=f,l2(f,a.inputValue)&&(p.checked=!0);const y=document.createElement("span");Bn(y,m),y.className=Y.label,g.appendChild(p),g.appendChild(y),r.appendChild(g)});const o=r.querySelectorAll("input");o.length&&o[0].focus()}const Mc=e=>{const n=[];return e instanceof Map?e.forEach((a,r)=>{let o=a;typeof o=="object"&&(o=Mc(o)),n.push([r,o])}):Object.keys(e).forEach(a=>{let r=e[a];typeof r=="object"&&(r=Mc(r)),n.push([a,r])}),n},l2=(e,n)=>!!n&&n.toString()===e.toString(),IN=e=>{const n=ct.innerParams.get(e);e.disableButtons(),n.input?o2(e,"confirm"):xg(e,!0)},qN=e=>{const n=ct.innerParams.get(e);e.disableButtons(),n.returnInputValueOnDeny?o2(e,"deny"):bg(e,!1)},QN=(e,n)=>{e.disableButtons(),n(il.cancel)},o2=(e,n)=>{const a=ct.innerParams.get(e);if(!a.input){Qr(`The "input" parameter is needed to be set when using returnInputValueOn${lg(n)}`);return}const r=e.getInput(),o=BN(e,a);a.inputValidator?GN(e,o,n):r&&!r.checkValidity()?(e.enableButtons(),e.showValidationMessage(a.validationMessage||r.validationMessage)):n==="deny"?bg(e,o):xg(e,o)},GN=(e,n,a)=>{const r=ct.innerParams.get(e);e.disableInput(),Promise.resolve().then(()=>To(r.inputValidator(n,r.validationMessage))).then(u=>{e.enableButtons(),e.enableInput(),u?e.showValidationMessage(u):a==="deny"?bg(e,n):xg(e,n)})},bg=(e,n)=>{const a=ct.innerParams.get(e||void 0);a.showLoaderOnDeny&&$s(Gr()),a.preDeny?(e.isAwaitingPromise=!0,Promise.resolve().then(()=>To(a.preDeny(n,a.validationMessage))).then(o=>{o===!1?(e.hideLoading(),_o(e)):e.close({isDenied:!0,value:typeof o>"u"?n:o})}).catch(o=>u2(e||void 0,o))):e.close({isDenied:!0,value:n})},hw=(e,n)=>{e.close({isConfirmed:!0,value:n})},u2=(e,n)=>{e.rejectPromise(n)},xg=(e,n)=>{const a=ct.innerParams.get(e||void 0);a.showLoaderOnConfirm&&$s(),a.preConfirm?(e.resetValidationMessage(),e.isAwaitingPromise=!0,Promise.resolve().then(()=>To(a.preConfirm(n,a.validationMessage))).then(o=>{bn(td())||o===!1?(e.hideLoading(),_o(e)):hw(e,typeof o>"u"?n:o)}).catch(o=>u2(e||void 0,o))):hw(e,n)};function Dc(){const e=ct.innerParams.get(this);if(!e)return;const n=ct.domCache.get(this);an(n.loader),ad()?e.icon&&qt(tl()):YN(n),na([n.popup,n.actions],Y.loading),n.popup.removeAttribute("aria-busy"),n.popup.removeAttribute("data-loading"),n.confirmButton.disabled=!1,n.denyButton.disabled=!1,n.cancelButton.disabled=!1}const YN=e=>{const n=e.popup.getElementsByClassName(e.loader.getAttribute("data-button-to-replace"));n.length?qt(n[0],"inline-block"):xR()&&an(e.actions)};function c2(){const e=ct.innerParams.get(this),n=ct.domCache.get(this);return n?id(n.popup,e.input):null}function d2(e,n,a){const r=ct.domCache.get(e);n.forEach(o=>{r[o].disabled=a})}function f2(e,n){const a=Je();if(!(!a||!e))if(e.type==="radio"){const r=a.querySelectorAll(`[name="${Y.radio}"]`);for(let o=0;o<r.length;o++)r[o].disabled=n}else e.disabled=n}function h2(){d2(this,["confirmButton","denyButton","cancelButton"],!1)}function m2(){d2(this,["confirmButton","denyButton","cancelButton"],!0)}function g2(){f2(this.getInput(),!1)}function p2(){f2(this.getInput(),!0)}function y2(e){const n=ct.domCache.get(this),a=ct.innerParams.get(this);Bn(n.validationMessage,e),n.validationMessage.className=Y["validation-message"],a.customClass&&a.customClass.validationMessage&&We(n.validationMessage,a.customClass.validationMessage),qt(n.validationMessage);const r=this.getInput();r&&(r.setAttribute("aria-invalid","true"),r.setAttribute("aria-describedby",Y["validation-message"]),Ix(r),We(r,Y.inputerror))}function v2(){const e=ct.domCache.get(this);e.validationMessage&&an(e.validationMessage);const n=this.getInput();n&&(n.removeAttribute("aria-invalid"),n.removeAttribute("aria-describedby"),na(n,Y.inputerror))}const Ds={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},$N=["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"],XN={allowEnterKey:void 0},KN=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],w2=e=>Object.prototype.hasOwnProperty.call(Ds,e),b2=e=>$N.indexOf(e)!==-1,x2=e=>XN[e],ZN=e=>{w2(e)||cn(`Unknown parameter "${e}"`)},JN=e=>{KN.includes(e)&&cn(`The parameter "${e}" is incompatible with toasts`)},WN=e=>{const n=x2(e);n&&Hx(e,n)},S2=e=>{e.backdrop===!1&&e.allowOutsideClick&&cn('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),e.theme&&!["light","dark","auto","minimal","borderless","embed-iframe"].includes(e.theme)&&cn(`Invalid theme "${e.theme}". Expected "light", "dark", "auto", "minimal", "borderless", or "embed-iframe"`);for(const n in e)ZN(n),e.toast&&JN(n),WN(n)};function A2(e){const n=fn(),a=Je(),r=ct.innerParams.get(this);if(!a||ri(a,r.hideClass.popup)){cn("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=e6(e),u=Object.assign({},r,o);S2(u),n.dataset.swal2Theme=u.theme,Wx(this,u),ct.innerParams.set(this,u),Object.defineProperties(this,{params:{value:Object.assign({},this.params,e),writable:!1,enumerable:!0}})}const e6=e=>{const n={};return Object.keys(e).forEach(a=>{b2(a)?n[a]=e[a]:cn(`Invalid parameter to update: ${a}`)}),n};function C2(){const e=ct.domCache.get(this),n=ct.innerParams.get(this);if(!n){E2(this);return}e.popup&&je.swalCloseEventFinishedCallback&&(je.swalCloseEventFinishedCallback(),delete je.swalCloseEventFinishedCallback),typeof n.didDestroy=="function"&&n.didDestroy(),je.eventEmitter.emit("didDestroy"),t6(this)}const t6=e=>{E2(e),delete e.params,delete je.keydownHandler,delete je.keydownTarget,delete je.currentInstance},E2=e=>{e.isAwaitingPromise?(qh(ct,e),e.isAwaitingPromise=!0):(qh(Ys,e),qh(ct,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)},qh=(e,n)=>{for(const a in e)e[a].delete(n)};var n6=Object.freeze({__proto__:null,_destroy:C2,close:Yi,closeModal:Yi,closePopup:Yi,closeToast:Yi,disableButtons:m2,disableInput:p2,disableLoading:Dc,enableButtons:h2,enableInput:g2,getInput:c2,handleAwaitingPromise:_o,hideLoading:Dc,rejectPromise:s2,resetValidationMessage:v2,showValidationMessage:y2,update:A2});const a6=(e,n,a)=>{e.toast?i6(e,n,a):(s6(n),l6(n),o6(e,n,a))},i6=(e,n,a)=>{n.popup.onclick=()=>{e&&(r6(e)||e.timer||e.input)||a(il.close)}},r6=e=>!!(e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton);let Oc=!1;const s6=e=>{e.popup.onmousedown=()=>{e.container.onmouseup=function(n){e.container.onmouseup=()=>{},n.target===e.container&&(Oc=!0)}}},l6=e=>{e.container.onmousedown=n=>{n.target===e.container&&n.preventDefault(),e.popup.onmouseup=function(a){e.popup.onmouseup=()=>{},(a.target===e.popup||a.target instanceof HTMLElement&&e.popup.contains(a.target))&&(Oc=!0)}}},o6=(e,n,a)=>{n.container.onclick=r=>{if(Oc){Oc=!1;return}r.target===n.container&&ed(e.allowOutsideClick)&&a(il.backdrop)}},u6=e=>typeof e=="object"&&e.jquery,mw=e=>e instanceof Element||u6(e),c6=e=>{const n={};return typeof e[0]=="object"&&!mw(e[0])?Object.assign(n,e[0]):["title","html","icon"].forEach((a,r)=>{const o=e[r];typeof o=="string"||mw(o)?n[a]=o:o!==void 0&&Qr(`Unexpected type of ${a}! Expected "string" or "Element", got ${typeof o}`)}),n};function d6(){for(var e=arguments.length,n=new Array(e),a=0;a<e;a++)n[a]=arguments[a];return new this(...n)}function f6(e){class n extends this{_main(r,o){return super._main(r,Object.assign({},e,o))}}return n}const h6=()=>je.timeout&&je.timeout.getTimerLeft(),j2=()=>{if(je.timeout)return SR(),je.timeout.stop()},R2=()=>{if(je.timeout){const e=je.timeout.start();return pg(e),e}},m6=()=>{const e=je.timeout;return e&&(e.running?j2():R2())},g6=e=>{if(je.timeout){const n=je.timeout.increase(e);return pg(n,!0),n}},p6=()=>!!(je.timeout&&je.timeout.isRunning());let gw=!1;const km={};function y6(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data-swal-template";km[e]=this,gw||(document.body.addEventListener("click",v6),gw=!0)}const v6=e=>{for(let n=e.target;n&&n!==document;n=n.parentNode)for(const a in km){const r=n.getAttribute(a);if(r){km[a].fire({template:r});return}}};class w6{constructor(){this.events={}}_getHandlersByEventName(n){return typeof this.events[n]>"u"&&(this.events[n]=[]),this.events[n]}on(n,a){const r=this._getHandlersByEventName(n);r.includes(a)||r.push(a)}once(n,a){var r=this;const o=function(){r.removeListener(n,o);for(var u=arguments.length,f=new Array(u),m=0;m<u;m++)f[m]=arguments[m];a.apply(r,f)};this.on(n,o)}emit(n){for(var a=arguments.length,r=new Array(a>1?a-1:0),o=1;o<a;o++)r[o-1]=arguments[o];this._getHandlersByEventName(n).forEach(u=>{try{u.apply(this,r)}catch(f){console.error(f)}})}removeListener(n,a){const r=this._getHandlersByEventName(n),o=r.indexOf(a);o>-1&&r.splice(o,1)}removeAllListeners(n){this.events[n]!==void 0&&(this.events[n].length=0)}reset(){this.events={}}}je.eventEmitter=new w6;const b6=(e,n)=>{je.eventEmitter.on(e,n)},x6=(e,n)=>{je.eventEmitter.once(e,n)},S6=(e,n)=>{if(!e){je.eventEmitter.reset();return}n?je.eventEmitter.removeListener(e,n):je.eventEmitter.removeAllListeners(e)};var A6=Object.freeze({__proto__:null,argsToParams:c6,bindClickHandler:y6,clickCancel:cN,clickConfirm:e2,clickDeny:uN,enableLoading:$s,fire:d6,getActions:Mo,getCancelButton:nl,getCloseButton:fg,getConfirmButton:Ma,getContainer:fn,getDenyButton:Gr,getFocusableElements:hg,getFooter:Vx,getHtmlContainer:cg,getIcon:tl,getIconContent:pR,getImage:Px,getInputLabel:yR,getLoader:al,getPopup:Je,getProgressSteps:dg,getTimerLeft:h6,getTimerProgressBar:nd,getTitle:Fx,getValidationMessage:td,increaseTimer:g6,isDeprecatedParameter:x2,isLoading:wR,isTimerRunning:p6,isUpdatableParameter:b2,isValidParameter:w2,isVisible:oN,mixin:f6,off:S6,on:b6,once:x6,resumeTimer:R2,showLoading:$s,stopTimer:j2,toggleTimer:m6});class C6{constructor(n,a){this.callback=n,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(n){const a=this.running;return a&&this.stop(),this.remaining+=n,a&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const N2=["swal-title","swal-html","swal-footer"],E6=e=>{const n=typeof e.template=="string"?document.querySelector(e.template):e.template;if(!n)return{};const a=n.content;return O6(a),Object.assign(j6(a),R6(a),N6(a),T6(a),k6(a),M6(a),D6(a,N2))},j6=e=>{const n={};return Array.from(e.querySelectorAll("swal-param")).forEach(r=>{Ir(r,["name","value"]);const o=r.getAttribute("name"),u=r.getAttribute("value");!o||!u||(typeof Ds[o]=="boolean"?n[o]=u!=="false":typeof Ds[o]=="object"?n[o]=JSON.parse(u):n[o]=u)}),n},R6=e=>{const n={};return Array.from(e.querySelectorAll("swal-function-param")).forEach(r=>{const o=r.getAttribute("name"),u=r.getAttribute("value");!o||!u||(n[o]=new Function(`return ${u}`)())}),n},N6=e=>{const n={};return Array.from(e.querySelectorAll("swal-button")).forEach(r=>{Ir(r,["type","color","aria-label"]);const o=r.getAttribute("type");!o||!["confirm","cancel","deny"].includes(o)||(n[`${o}ButtonText`]=r.innerHTML,n[`show${lg(o)}Button`]=!0,r.hasAttribute("color")&&(n[`${o}ButtonColor`]=r.getAttribute("color")),r.hasAttribute("aria-label")&&(n[`${o}ButtonAriaLabel`]=r.getAttribute("aria-label")))}),n},T6=e=>{const n={},a=e.querySelector("swal-image");return a&&(Ir(a,["src","width","height","alt"]),a.hasAttribute("src")&&(n.imageUrl=a.getAttribute("src")||void 0),a.hasAttribute("width")&&(n.imageWidth=a.getAttribute("width")||void 0),a.hasAttribute("height")&&(n.imageHeight=a.getAttribute("height")||void 0),a.hasAttribute("alt")&&(n.imageAlt=a.getAttribute("alt")||void 0)),n},k6=e=>{const n={},a=e.querySelector("swal-icon");return a&&(Ir(a,["type","color"]),a.hasAttribute("type")&&(n.icon=a.getAttribute("type")),a.hasAttribute("color")&&(n.iconColor=a.getAttribute("color")),n.iconHtml=a.innerHTML),n},M6=e=>{const n={},a=e.querySelector("swal-input");a&&(Ir(a,["type","label","placeholder","value"]),n.input=a.getAttribute("type")||"text",a.hasAttribute("label")&&(n.inputLabel=a.getAttribute("label")),a.hasAttribute("placeholder")&&(n.inputPlaceholder=a.getAttribute("placeholder")),a.hasAttribute("value")&&(n.inputValue=a.getAttribute("value")));const r=Array.from(e.querySelectorAll("swal-input-option"));return r.length&&(n.inputOptions={},r.forEach(o=>{Ir(o,["value"]);const u=o.getAttribute("value");if(!u)return;const f=o.innerHTML;n.inputOptions[u]=f})),n},D6=(e,n)=>{const a={};for(const r in n){const o=n[r],u=e.querySelector(o);u&&(Ir(u,[]),a[o.replace(/^swal-/,"")]=u.innerHTML.trim())}return a},O6=e=>{const n=N2.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();n.includes(r)||cn(`Unrecognized element <${r}>`)})},Ir=(e,n)=>{Array.from(e.attributes).forEach(a=>{n.indexOf(a.name)===-1&&cn([`Unrecognized attribute "${a.name}" on <${e.tagName.toLowerCase()}>.`,`${n.length?`Allowed attributes are: ${n.join(", ")}`:"To set the value, use HTML within the element."}`])})},T2=10,_6=e=>{const n=fn(),a=Je();typeof e.willOpen=="function"&&e.willOpen(a),je.eventEmitter.emit("willOpen",a);const o=window.getComputedStyle(document.body).overflowY;L6(n,a,e),setTimeout(()=>{B6(n,a)},T2),mg()&&(z6(n,e.scrollbarPadding,o),vN()),!ad()&&!je.previousActiveElement&&(je.previousActiveElement=document.activeElement),typeof e.didOpen=="function"&&setTimeout(()=>e.didOpen(a)),je.eventEmitter.emit("didOpen",a),na(n,Y["no-transition"])},_c=e=>{const n=Je();if(e.target!==n)return;const a=fn();n.removeEventListener("animationend",_c),n.removeEventListener("transitionend",_c),a.style.overflowY="auto"},B6=(e,n)=>{Qx(n)?(e.style.overflowY="hidden",n.addEventListener("animationend",_c),n.addEventListener("transitionend",_c)):e.style.overflowY="auto"},z6=(e,n,a)=>{wN(),n&&a!=="hidden"&&jN(a),setTimeout(()=>{e.scrollTop=0})},L6=(e,n,a)=>{We(e,a.showClass.backdrop),a.animation?(n.style.setProperty("opacity","0","important"),qt(n,"grid"),setTimeout(()=>{We(n,a.showClass.popup),n.style.removeProperty("opacity")},T2)):qt(n,"grid"),We([document.documentElement,document.body],Y.shown),a.heightAuto&&a.backdrop&&!a.toast&&We([document.documentElement,document.body],Y["height-auto"])};var pw={email:(e,n)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(e)?Promise.resolve():Promise.resolve(n||"Invalid email address"),url:(e,n)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(e)?Promise.resolve():Promise.resolve(n||"Invalid URL")};function U6(e){e.inputValidator||(e.input==="email"&&(e.inputValidator=pw.email),e.input==="url"&&(e.inputValidator=pw.url))}function H6(e){(!e.target||typeof e.target=="string"&&!document.querySelector(e.target)||typeof e.target!="string"&&!e.target.appendChild)&&(cn('Target parameter is not valid, defaulting to "body"'),e.target="body")}function F6(e){U6(e),e.showLoaderOnConfirm&&!e.preConfirm&&cn(`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`),H6(e),typeof e.title=="string"&&(e.title=e.title.split(`
`).join("<br />")),kR(e)}let Ea;var ac=new WeakMap;class Mt{constructor(){if(oR(this,ac,void 0),typeof window>"u")return;Ea=this;for(var n=arguments.length,a=new Array(n),r=0;r<n;r++)a[r]=arguments[r];const o=Object.freeze(this.constructor.argsToParams(a));this.params=o,this.isAwaitingPromise=!1,uR(ac,this,this._main(Ea.params))}_main(n){let a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(S2(Object.assign({},a,n)),je.currentInstance){const u=Ys.swalPromiseResolve.get(je.currentInstance),{isAwaitingPromise:f}=je.currentInstance;je.currentInstance._destroy(),f||u({isDismissed:!0}),mg()&&a2()}je.currentInstance=Ea;const r=V6(n,a);F6(r),Object.freeze(r),je.timeout&&(je.timeout.stop(),delete je.timeout),clearTimeout(je.restoreFocusTimeout);const o=I6(Ea);return Wx(Ea,r),ct.innerParams.set(Ea,r),P6(Ea,o,r)}then(n){return rw(ac,this).then(n)}finally(n){return rw(ac,this).finally(n)}}const P6=(e,n,a)=>new Promise((r,o)=>{const u=f=>{e.close({isDismissed:!0,dismiss:f})};Ys.swalPromiseResolve.set(e,r),Ys.swalPromiseReject.set(e,o),n.confirmButton.onclick=()=>{IN(e)},n.denyButton.onclick=()=>{qN(e)},n.cancelButton.onclick=()=>{QN(e,u)},n.closeButton.onclick=()=>{u(il.close)},a6(a,n,u),dN(je,a,u),_N(e,a),_6(a),q6(je,a,u),Q6(n,a),setTimeout(()=>{n.container.scrollTop=0})}),V6=(e,n)=>{const a=E6(e),r=Object.assign({},Ds,n,a,e);return r.showClass=Object.assign({},Ds.showClass,r.showClass),r.hideClass=Object.assign({},Ds.hideClass,r.hideClass),r.animation===!1&&(r.showClass={backdrop:"swal2-noanimation"},r.hideClass={}),r},I6=e=>{const n={popup:Je(),container:fn(),actions:Mo(),confirmButton:Ma(),denyButton:Gr(),cancelButton:nl(),loader:al(),closeButton:fg(),validationMessage:td(),progressSteps:dg()};return ct.domCache.set(e,n),n},q6=(e,n,a)=>{const r=nd();an(r),n.timer&&(e.timeout=new C6(()=>{a("timer"),delete e.timeout},n.timer),n.timerProgressBar&&(qt(r),On(r,n,"timerProgressBar"),setTimeout(()=>{e.timeout&&e.timeout.running&&pg(n.timer)})))},Q6=(e,n)=>{if(!n.toast){if(!ed(n.allowEnterKey)){Hx("allowEnterKey"),$6();return}G6(e)||Y6(e,n)||Tm(-1,1)}},G6=e=>{const n=Array.from(e.popup.querySelectorAll("[autofocus]"));for(const a of n)if(a instanceof HTMLElement&&bn(a))return a.focus(),!0;return!1},Y6=(e,n)=>n.focusDeny&&bn(e.denyButton)?(e.denyButton.focus(),!0):n.focusCancel&&bn(e.cancelButton)?(e.cancelButton.focus(),!0):n.focusConfirm&&bn(e.confirmButton)?(e.confirmButton.focus(),!0):!1,$6=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const e=new Date,n=localStorage.getItem("swal-initiation");n?(e.getTime()-Date.parse(n))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const a=document.createElement("audio");a.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",a.loop=!0,document.body.appendChild(a),setTimeout(()=>{a.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${e}`)}Mt.prototype.disableButtons=m2;Mt.prototype.enableButtons=h2;Mt.prototype.getInput=c2;Mt.prototype.disableInput=p2;Mt.prototype.enableInput=g2;Mt.prototype.hideLoading=Dc;Mt.prototype.disableLoading=Dc;Mt.prototype.showValidationMessage=y2;Mt.prototype.resetValidationMessage=v2;Mt.prototype.close=Yi;Mt.prototype.closePopup=Yi;Mt.prototype.closeModal=Yi;Mt.prototype.closeToast=Yi;Mt.prototype.rejectPromise=s2;Mt.prototype.update=A2;Mt.prototype._destroy=C2;Object.assign(Mt,A6);Object.keys(n6).forEach(e=>{Mt[e]=function(){return Ea&&Ea[e]?Ea[e](...arguments):null}});Mt.DismissReason=il;Mt.version="11.21.0";const Tn=Mt;Tn.default=Tn;typeof document<"u"&&function(e,n){var a=e.createElement("style");if(e.getElementsByTagName("head")[0].appendChild(a),a.styleSheet)a.styleSheet.disabled||(a.styleSheet.cssText=n);else try{a.innerHTML=n}catch{a.innerText=n}}(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.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--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-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.1s, box-shadow 0.1s;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--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.1s, box-shadow 0.1s;--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-button-darken-hover: rgba(0, 0, 0, 0.1);--swal2-button-darken-active: rgba(0, 0, 0, 0.2);--swal2-button-transition: box-shadow 0.1s;--swal2-confirm-button-border: 0;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-deny-button-border: 0;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-cancel-button-border: 0;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--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)}@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)}}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;word-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:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(var(--swal2-button-darken-hover), var(--swal2-button-darken-hover))}div:where(.swal2-container) div:where(.swal2-actions):not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(var(--swal2-button-darken-active), var(--swal2-button-darken-active))}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-button-transition);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:var(--swal2-confirm-button-border);border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:var(--swal2-deny-button-border);border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:var(--swal2-cancel-button-border);border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);color:#fff;font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}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);color:inherit;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:rgba(0,0,0,.2)}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;word-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:1px solid #d9d9d9;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):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}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:scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);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 X6=Object.freeze(Object.defineProperty({__proto__:null,default:Tn},Symbol.toStringTag,{value:"Module"}));var Mm=function(e,n){return Mm=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(a[o]=r[o])},Mm(e,n)};function K6(e,n){if(typeof n!="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");Mm(e,n);function a(){this.constructor=e}e.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}var Vt=function(){return Vt=Object.assign||function(n){for(var a,r=1,o=arguments.length;r<o;r++){a=arguments[r];for(var u in a)Object.prototype.hasOwnProperty.call(a,u)&&(n[u]=a[u])}return n},Vt.apply(this,arguments)};var Qh,yw;function Z6(){if(yw)return Qh;yw=1;var e=!1,n,a,r,o,u,f,m,p,g,y,v,b,x,S,j;function C(){if(!e){e=!0;var z=navigator.userAgent,_=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(z),Z=/(Mac OS X)|(Windows)|(Linux)/.exec(z);if(b=/\b(iPhone|iP[ao]d)/.exec(z),x=/\b(iP[ao]d)/.exec(z),y=/Android/i.exec(z),S=/FBAN\/\w+;/i.exec(z),j=/Mobile/i.exec(z),v=!!/Win64/.exec(z),_){n=_[1]?parseFloat(_[1]):_[5]?parseFloat(_[5]):NaN,n&&document&&document.documentMode&&(n=document.documentMode);var R=/(?:Trident\/(\d+.\d+))/.exec(z);f=R?parseFloat(R[1])+4:n,a=_[2]?parseFloat(_[2]):NaN,r=_[3]?parseFloat(_[3]):NaN,o=_[4]?parseFloat(_[4]):NaN,o?(_=/(?:Chrome\/(\d+\.\d+))/.exec(z),u=_&&_[1]?parseFloat(_[1]):NaN):u=NaN}else n=a=r=u=o=NaN;if(Z){if(Z[1]){var W=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(z);m=W?parseFloat(W[1].replace("_",".")):!0}else m=!1;p=!!Z[2],g=!!Z[3]}else m=p=g=!1}}var k={ie:function(){return C()||n},ieCompatibilityMode:function(){return C()||f>n},ie64:function(){return k.ie()&&v},firefox:function(){return C()||a},opera:function(){return C()||r},webkit:function(){return C()||o},safari:function(){return k.webkit()},chrome:function(){return C()||u},windows:function(){return C()||p},osx:function(){return C()||m},linux:function(){return C()||g},iphone:function(){return C()||b},mobile:function(){return C()||b||x||y||j},nativeApp:function(){return C()||S},android:function(){return C()||y},ipad:function(){return C()||x}};return Qh=k,Qh}var Gh,vw;function J6(){if(vw)return Gh;vw=1;var e=!!(typeof window<"u"&&window.document&&window.document.createElement),n={canUseDOM:e,canUseWorkers:typeof Worker<"u",canUseEventListeners:e&&!!(window.addEventListener||window.attachEvent),canUseViewport:e&&!!window.screen,isInWorker:!e};return Gh=n,Gh}var Yh,ww;function W6(){if(ww)return Yh;ww=1;var e=J6(),n;e.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
 * Checks if an event is supported in the current execution environment.
 *
 * NOTE: This will not work correctly for non-generic events such as `change`,
 * `reset`, `load`, `error`, and `select`.
 *
 * Borrows from Modernizr.
 *
 * @param {string} eventNameSuffix Event name, e.g. "click".
 * @param {?boolean} capture Check if the capture phase is supported.
 * @return {boolean} True if the event is supported.
 * @internal
 * @license Modernizr 3.0.0pre (Custom Build) | MIT
 */function a(r,o){if(!e.canUseDOM||o&&!("addEventListener"in document))return!1;var u="on"+r,f=u in document;if(!f){var m=document.createElement("div");m.setAttribute(u,"return;"),f=typeof m[u]=="function"}return!f&&n&&r==="wheel"&&(f=document.implementation.hasFeature("Events.wheel","3.0")),f}return Yh=a,Yh}var $h,bw;function eT(){if(bw)return $h;bw=1;var e=Z6(),n=W6(),a=10,r=40,o=800;function u(f){var m=0,p=0,g=0,y=0;return"detail"in f&&(p=f.detail),"wheelDelta"in f&&(p=-f.wheelDelta/120),"wheelDeltaY"in f&&(p=-f.wheelDeltaY/120),"wheelDeltaX"in f&&(m=-f.wheelDeltaX/120),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(m=p,p=0),g=m*a,y=p*a,"deltaY"in f&&(y=f.deltaY),"deltaX"in f&&(g=f.deltaX),(g||y)&&f.deltaMode&&(f.deltaMode==1?(g*=r,y*=r):(g*=o,y*=o)),g&&!m&&(m=g<1?-1:1),y&&!p&&(p=y<1?-1:1),{spinX:m,spinY:p,pixelX:g,pixelY:y}}return u.getEventType=function(){return e.firefox()?"DOMMouseScroll":n("wheel")?"wheel":"mousewheel"},$h=u,$h}var Xh,xw;function tT(){return xw||(xw=1,Xh=eT()),Xh}var nT=tT();const aT=Bc(nT);function iT(e,n,a,r,o,u){u===void 0&&(u=0);var f=Xs(e,n,u),m=f.width,p=f.height,g=Math.min(m,a),y=Math.min(p,r);return g>y*o?{width:y*o,height:y}:{width:g,height:g/o}}function rT(e){return e.width>e.height?e.width/e.naturalWidth:e.height/e.naturalHeight}function uo(e,n,a,r,o){o===void 0&&(o=0);var u=Xs(n.width,n.height,o),f=u.width,m=u.height;return{x:Sw(e.x,f,a.width,r),y:Sw(e.y,m,a.height,r)}}function Sw(e,n,a,r){var o=n*r/2-a/2;return rd(e,-o,o)}function Aw(e,n){return Math.sqrt(Math.pow(e.y-n.y,2)+Math.pow(e.x-n.x,2))}function Cw(e,n){return Math.atan2(n.y-e.y,n.x-e.x)*180/Math.PI}function sT(e,n,a,r,o,u,f){u===void 0&&(u=0),f===void 0&&(f=!0);var m=f?lT:oT,p=Xs(n.width,n.height,u),g=Xs(n.naturalWidth,n.naturalHeight,u),y={x:m(100,((p.width-a.width/o)/2-e.x/o)/p.width*100),y:m(100,((p.height-a.height/o)/2-e.y/o)/p.height*100),width:m(100,a.width/p.width*100/o),height:m(100,a.height/p.height*100/o)},v=Math.round(m(g.width,y.width*g.width/100)),b=Math.round(m(g.height,y.height*g.height/100)),x=g.width>=g.height*r,S=x?{width:Math.round(b*r),height:b}:{width:v,height:Math.round(v/r)},j=Vt(Vt({},S),{x:Math.round(m(g.width-S.width,y.x*g.width/100)),y:Math.round(m(g.height-S.height,y.y*g.height/100))});return{croppedAreaPercentages:y,croppedAreaPixels:j}}function lT(e,n){return Math.min(e,Math.max(0,n))}function oT(e,n){return n}function uT(e,n,a,r,o,u){var f=Xs(n.width,n.height,a),m=rd(r.width/f.width*(100/e.width),o,u),p={x:m*f.width/2-r.width/2-f.width*m*(e.x/100),y:m*f.height/2-r.height/2-f.height*m*(e.y/100)};return{crop:p,zoom:m}}function cT(e,n,a){var r=rT(n);return a.height>a.width?a.height/(e.height*r):a.width/(e.width*r)}function dT(e,n,a,r,o,u){a===void 0&&(a=0);var f=Xs(n.naturalWidth,n.naturalHeight,a),m=rd(cT(e,n,r),o,u),p=r.height>r.width?r.height/e.height:r.width/e.width,g={x:((f.width-e.width)/2-e.x)*p,y:((f.height-e.height)/2-e.y)*p};return{crop:g,zoom:m}}function Ew(e,n){return{x:(n.x+e.x)/2,y:(n.y+e.y)/2}}function fT(e){return e*Math.PI/180}function Xs(e,n,a){var r=fT(a);return{width:Math.abs(Math.cos(r)*e)+Math.abs(Math.sin(r)*n),height:Math.abs(Math.sin(r)*e)+Math.abs(Math.cos(r)*n)}}function rd(e,n,a){return Math.min(Math.max(e,n),a)}function ic(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return e.filter(function(a){return typeof a=="string"&&a.length>0}).join(" ").trim()}var hT=`.reactEasyCrop_Container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  user-select: none;
  touch-action: none;
  cursor: move;
  display: flex;
  justify-content: center;
  align-items: center;
}

.reactEasyCrop_Image,
.reactEasyCrop_Video {
  will-change: transform; /* this improves performances and prevent painting issues on iOS Chrome */
}

.reactEasyCrop_Contain {
  max-width: 100%;
  max-height: 100%;
  margin: auto;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.reactEasyCrop_Cover_Horizontal {
  width: 100%;
  height: auto;
}
.reactEasyCrop_Cover_Vertical {
  width: auto;
  height: 100%;
}

.reactEasyCrop_CropArea {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-sizing: border-box;
  box-shadow: 0 0 0 9999em;
  color: rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.reactEasyCrop_CropAreaRound {
  border-radius: 50%;
}

.reactEasyCrop_CropAreaGrid::before {
  content: ' ';
  box-sizing: border-box;
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.5);
  top: 0;
  bottom: 0;
  left: 33.33%;
  right: 33.33%;
  border-top: 0;
  border-bottom: 0;
}

.reactEasyCrop_CropAreaGrid::after {
  content: ' ';
  box-sizing: border-box;
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.5);
  top: 33.33%;
  bottom: 33.33%;
  left: 0;
  right: 0;
  border-left: 0;
  border-right: 0;
}
`,mT=1,gT=3,pT=1,yT=function(e){K6(n,e);function n(){var a=e!==null&&e.apply(this,arguments)||this;return a.cropperRef=E.createRef(),a.imageRef=E.createRef(),a.videoRef=E.createRef(),a.containerPosition={x:0,y:0},a.containerRef=null,a.styleRef=null,a.containerRect=null,a.mediaSize={width:0,height:0,naturalWidth:0,naturalHeight:0},a.dragStartPosition={x:0,y:0},a.dragStartCrop={x:0,y:0},a.gestureZoomStart=0,a.gestureRotationStart=0,a.isTouching=!1,a.lastPinchDistance=0,a.lastPinchRotation=0,a.rafDragTimeout=null,a.rafPinchTimeout=null,a.wheelTimer=null,a.currentDoc=typeof document<"u"?document:null,a.currentWindow=typeof window<"u"?window:null,a.resizeObserver=null,a.state={cropSize:null,hasWheelJustStarted:!1,mediaObjectFit:void 0},a.initResizeObserver=function(){if(!(typeof window.ResizeObserver>"u"||!a.containerRef)){var r=!0;a.resizeObserver=new window.ResizeObserver(function(o){if(r){r=!1;return}a.computeSizes()}),a.resizeObserver.observe(a.containerRef)}},a.preventZoomSafari=function(r){return r.preventDefault()},a.cleanEvents=function(){a.currentDoc&&(a.currentDoc.removeEventListener("mousemove",a.onMouseMove),a.currentDoc.removeEventListener("mouseup",a.onDragStopped),a.currentDoc.removeEventListener("touchmove",a.onTouchMove),a.currentDoc.removeEventListener("touchend",a.onDragStopped),a.currentDoc.removeEventListener("gesturemove",a.onGestureMove),a.currentDoc.removeEventListener("gestureend",a.onGestureEnd),a.currentDoc.removeEventListener("scroll",a.onScroll))},a.clearScrollEvent=function(){a.containerRef&&a.containerRef.removeEventListener("wheel",a.onWheel),a.wheelTimer&&clearTimeout(a.wheelTimer)},a.onMediaLoad=function(){var r=a.computeSizes();r&&(a.emitCropData(),a.setInitialCrop(r)),a.props.onMediaLoaded&&a.props.onMediaLoaded(a.mediaSize)},a.setInitialCrop=function(r){if(a.props.initialCroppedAreaPercentages){var o=uT(a.props.initialCroppedAreaPercentages,a.mediaSize,a.props.rotation,r,a.props.minZoom,a.props.maxZoom),u=o.crop,f=o.zoom;a.props.onCropChange(u),a.props.onZoomChange&&a.props.onZoomChange(f)}else if(a.props.initialCroppedAreaPixels){var m=dT(a.props.initialCroppedAreaPixels,a.mediaSize,a.props.rotation,r,a.props.minZoom,a.props.maxZoom),u=m.crop,f=m.zoom;a.props.onCropChange(u),a.props.onZoomChange&&a.props.onZoomChange(f)}},a.computeSizes=function(){var r,o,u,f,m,p,g=a.imageRef.current||a.videoRef.current;if(g&&a.containerRef){a.containerRect=a.containerRef.getBoundingClientRect(),a.saveContainerPosition();var y=a.containerRect.width/a.containerRect.height,v=((r=a.imageRef.current)===null||r===void 0?void 0:r.naturalWidth)||((o=a.videoRef.current)===null||o===void 0?void 0:o.videoWidth)||0,b=((u=a.imageRef.current)===null||u===void 0?void 0:u.naturalHeight)||((f=a.videoRef.current)===null||f===void 0?void 0:f.videoHeight)||0,x=g.offsetWidth<v||g.offsetHeight<b,S=v/b,j=void 0;if(x)switch(a.state.mediaObjectFit){default:case"contain":j=y>S?{width:a.containerRect.height*S,height:a.containerRect.height}:{width:a.containerRect.width,height:a.containerRect.width/S};break;case"horizontal-cover":j={width:a.containerRect.width,height:a.containerRect.width/S};break;case"vertical-cover":j={width:a.containerRect.height*S,height:a.containerRect.height};break}else j={width:g.offsetWidth,height:g.offsetHeight};a.mediaSize=Vt(Vt({},j),{naturalWidth:v,naturalHeight:b}),a.props.setMediaSize&&a.props.setMediaSize(a.mediaSize);var C=a.props.cropSize?a.props.cropSize:iT(a.mediaSize.width,a.mediaSize.height,a.containerRect.width,a.containerRect.height,a.props.aspect,a.props.rotation);return(((m=a.state.cropSize)===null||m===void 0?void 0:m.height)!==C.height||((p=a.state.cropSize)===null||p===void 0?void 0:p.width)!==C.width)&&a.props.onCropSizeChange&&a.props.onCropSizeChange(C),a.setState({cropSize:C},a.recomputeCropPosition),a.props.setCropSize&&a.props.setCropSize(C),C}},a.saveContainerPosition=function(){if(a.containerRef){var r=a.containerRef.getBoundingClientRect();a.containerPosition={x:r.left,y:r.top}}},a.onMouseDown=function(r){a.currentDoc&&(r.preventDefault(),a.currentDoc.addEventListener("mousemove",a.onMouseMove),a.currentDoc.addEventListener("mouseup",a.onDragStopped),a.saveContainerPosition(),a.onDragStart(n.getMousePoint(r)))},a.onMouseMove=function(r){return a.onDrag(n.getMousePoint(r))},a.onScroll=function(r){a.currentDoc&&(r.preventDefault(),a.saveContainerPosition())},a.onTouchStart=function(r){a.currentDoc&&(a.isTouching=!0,!(a.props.onTouchRequest&&!a.props.onTouchRequest(r))&&(a.currentDoc.addEventListener("touchmove",a.onTouchMove,{passive:!1}),a.currentDoc.addEventListener("touchend",a.onDragStopped),a.saveContainerPosition(),r.touches.length===2?a.onPinchStart(r):r.touches.length===1&&a.onDragStart(n.getTouchPoint(r.touches[0]))))},a.onTouchMove=function(r){r.preventDefault(),r.touches.length===2?a.onPinchMove(r):r.touches.length===1&&a.onDrag(n.getTouchPoint(r.touches[0]))},a.onGestureStart=function(r){a.currentDoc&&(r.preventDefault(),a.currentDoc.addEventListener("gesturechange",a.onGestureMove),a.currentDoc.addEventListener("gestureend",a.onGestureEnd),a.gestureZoomStart=a.props.zoom,a.gestureRotationStart=a.props.rotation)},a.onGestureMove=function(r){if(r.preventDefault(),!a.isTouching){var o=n.getMousePoint(r),u=a.gestureZoomStart-1+r.scale;if(a.setNewZoom(u,o,{shouldUpdatePosition:!0}),a.props.onRotationChange){var f=a.gestureRotationStart+r.rotation;a.props.onRotationChange(f)}}},a.onGestureEnd=function(r){a.cleanEvents()},a.onDragStart=function(r){var o,u,f=r.x,m=r.y;a.dragStartPosition={x:f,y:m},a.dragStartCrop=Vt({},a.props.crop),(u=(o=a.props).onInteractionStart)===null||u===void 0||u.call(o)},a.onDrag=function(r){var o=r.x,u=r.y;a.currentWindow&&(a.rafDragTimeout&&a.currentWindow.cancelAnimationFrame(a.rafDragTimeout),a.rafDragTimeout=a.currentWindow.requestAnimationFrame(function(){if(a.state.cropSize&&!(o===void 0||u===void 0)){var f=o-a.dragStartPosition.x,m=u-a.dragStartPosition.y,p={x:a.dragStartCrop.x+f,y:a.dragStartCrop.y+m},g=a.props.restrictPosition?uo(p,a.mediaSize,a.state.cropSize,a.props.zoom,a.props.rotation):p;a.props.onCropChange(g)}}))},a.onDragStopped=function(){var r,o;a.isTouching=!1,a.cleanEvents(),a.emitCropData(),(o=(r=a.props).onInteractionEnd)===null||o===void 0||o.call(r)},a.onWheel=function(r){if(a.currentWindow&&!(a.props.onWheelRequest&&!a.props.onWheelRequest(r))){r.preventDefault();var o=n.getMousePoint(r),u=aT(r).pixelY,f=a.props.zoom-u*a.props.zoomSpeed/200;a.setNewZoom(f,o,{shouldUpdatePosition:!0}),a.state.hasWheelJustStarted||a.setState({hasWheelJustStarted:!0},function(){var m,p;return(p=(m=a.props).onInteractionStart)===null||p===void 0?void 0:p.call(m)}),a.wheelTimer&&clearTimeout(a.wheelTimer),a.wheelTimer=a.currentWindow.setTimeout(function(){return a.setState({hasWheelJustStarted:!1},function(){var m,p;return(p=(m=a.props).onInteractionEnd)===null||p===void 0?void 0:p.call(m)})},250)}},a.getPointOnContainer=function(r,o){var u=r.x,f=r.y;if(!a.containerRect)throw new Error("The Cropper is not mounted");return{x:a.containerRect.width/2-(u-o.x),y:a.containerRect.height/2-(f-o.y)}},a.getPointOnMedia=function(r){var o=r.x,u=r.y,f=a.props,m=f.crop,p=f.zoom;return{x:(o+m.x)/p,y:(u+m.y)/p}},a.setNewZoom=function(r,o,u){var f=u===void 0?{}:u,m=f.shouldUpdatePosition,p=m===void 0?!0:m;if(!(!a.state.cropSize||!a.props.onZoomChange)){var g=rd(r,a.props.minZoom,a.props.maxZoom);if(p){var y=a.getPointOnContainer(o,a.containerPosition),v=a.getPointOnMedia(y),b={x:v.x*g-y.x,y:v.y*g-y.y},x=a.props.restrictPosition?uo(b,a.mediaSize,a.state.cropSize,g,a.props.rotation):b;a.props.onCropChange(x)}a.props.onZoomChange(g)}},a.getCropData=function(){if(!a.state.cropSize)return null;var r=a.props.restrictPosition?uo(a.props.crop,a.mediaSize,a.state.cropSize,a.props.zoom,a.props.rotation):a.props.crop;return sT(r,a.mediaSize,a.state.cropSize,a.getAspect(),a.props.zoom,a.props.rotation,a.props.restrictPosition)},a.emitCropData=function(){var r=a.getCropData();if(r){var o=r.croppedAreaPercentages,u=r.croppedAreaPixels;a.props.onCropComplete&&a.props.onCropComplete(o,u),a.props.onCropAreaChange&&a.props.onCropAreaChange(o,u)}},a.emitCropAreaChange=function(){var r=a.getCropData();if(r){var o=r.croppedAreaPercentages,u=r.croppedAreaPixels;a.props.onCropAreaChange&&a.props.onCropAreaChange(o,u)}},a.recomputeCropPosition=function(){if(a.state.cropSize){var r=a.props.restrictPosition?uo(a.props.crop,a.mediaSize,a.state.cropSize,a.props.zoom,a.props.rotation):a.props.crop;a.props.onCropChange(r),a.emitCropData()}},a.onKeyDown=function(r){var o,u,f=a.props,m=f.crop,p=f.onCropChange,g=f.keyboardStep,y=f.zoom,v=f.rotation,b=g;if(a.state.cropSize){r.shiftKey&&(b*=.2);var x=Vt({},m);switch(r.key){case"ArrowUp":x.y-=b,r.preventDefault();break;case"ArrowDown":x.y+=b,r.preventDefault();break;case"ArrowLeft":x.x-=b,r.preventDefault();break;case"ArrowRight":x.x+=b,r.preventDefault();break;default:return}a.props.restrictPosition&&(x=uo(x,a.mediaSize,a.state.cropSize,y,v)),r.repeat||(u=(o=a.props).onInteractionStart)===null||u===void 0||u.call(o),p(x)}},a.onKeyUp=function(r){var o,u;switch(r.key){case"ArrowUp":case"ArrowDown":case"ArrowLeft":case"ArrowRight":r.preventDefault();break;default:return}a.emitCropData(),(u=(o=a.props).onInteractionEnd)===null||u===void 0||u.call(o)},a}return n.prototype.componentDidMount=function(){!this.currentDoc||!this.currentWindow||(this.containerRef&&(this.containerRef.ownerDocument&&(this.currentDoc=this.containerRef.ownerDocument),this.currentDoc.defaultView&&(this.currentWindow=this.currentDoc.defaultView),this.initResizeObserver(),typeof window.ResizeObserver>"u"&&this.currentWindow.addEventListener("resize",this.computeSizes),this.props.zoomWithScroll&&this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}),this.containerRef.addEventListener("gesturestart",this.onGestureStart)),this.currentDoc.addEventListener("scroll",this.onScroll),this.props.disableAutomaticStylesInjection||(this.styleRef=this.currentDoc.createElement("style"),this.styleRef.setAttribute("type","text/css"),this.props.nonce&&this.styleRef.setAttribute("nonce",this.props.nonce),this.styleRef.innerHTML=hT,this.currentDoc.head.appendChild(this.styleRef)),this.imageRef.current&&this.imageRef.current.complete&&this.onMediaLoad(),this.props.setImageRef&&this.props.setImageRef(this.imageRef),this.props.setVideoRef&&this.props.setVideoRef(this.videoRef),this.props.setCropperRef&&this.props.setCropperRef(this.cropperRef))},n.prototype.componentWillUnmount=function(){var a,r;!this.currentDoc||!this.currentWindow||(typeof window.ResizeObserver>"u"&&this.currentWindow.removeEventListener("resize",this.computeSizes),(a=this.resizeObserver)===null||a===void 0||a.disconnect(),this.containerRef&&this.containerRef.removeEventListener("gesturestart",this.preventZoomSafari),this.styleRef&&((r=this.styleRef.parentNode)===null||r===void 0||r.removeChild(this.styleRef)),this.cleanEvents(),this.props.zoomWithScroll&&this.clearScrollEvent())},n.prototype.componentDidUpdate=function(a){var r,o,u,f,m,p,g,y,v;a.rotation!==this.props.rotation?(this.computeSizes(),this.recomputeCropPosition()):a.aspect!==this.props.aspect?this.computeSizes():a.objectFit!==this.props.objectFit?this.computeSizes():a.zoom!==this.props.zoom?this.recomputeCropPosition():((r=a.cropSize)===null||r===void 0?void 0:r.height)!==((o=this.props.cropSize)===null||o===void 0?void 0:o.height)||((u=a.cropSize)===null||u===void 0?void 0:u.width)!==((f=this.props.cropSize)===null||f===void 0?void 0:f.width)?this.computeSizes():(((m=a.crop)===null||m===void 0?void 0:m.x)!==((p=this.props.crop)===null||p===void 0?void 0:p.x)||((g=a.crop)===null||g===void 0?void 0:g.y)!==((y=this.props.crop)===null||y===void 0?void 0:y.y))&&this.emitCropAreaChange(),a.zoomWithScroll!==this.props.zoomWithScroll&&this.containerRef&&(this.props.zoomWithScroll?this.containerRef.addEventListener("wheel",this.onWheel,{passive:!1}):this.clearScrollEvent()),a.video!==this.props.video&&((v=this.videoRef.current)===null||v===void 0||v.load());var b=this.getObjectFit();b!==this.state.mediaObjectFit&&this.setState({mediaObjectFit:b},this.computeSizes)},n.prototype.getAspect=function(){var a=this.props,r=a.cropSize,o=a.aspect;return r?r.width/r.height:o},n.prototype.getObjectFit=function(){var a,r,o,u;if(this.props.objectFit==="cover"){var f=this.imageRef.current||this.videoRef.current;if(f&&this.containerRef){this.containerRect=this.containerRef.getBoundingClientRect();var m=this.containerRect.width/this.containerRect.height,p=((a=this.imageRef.current)===null||a===void 0?void 0:a.naturalWidth)||((r=this.videoRef.current)===null||r===void 0?void 0:r.videoWidth)||0,g=((o=this.imageRef.current)===null||o===void 0?void 0:o.naturalHeight)||((u=this.videoRef.current)===null||u===void 0?void 0:u.videoHeight)||0,y=p/g;return y<m?"horizontal-cover":"vertical-cover"}return"horizontal-cover"}return this.props.objectFit},n.prototype.onPinchStart=function(a){var r=n.getTouchPoint(a.touches[0]),o=n.getTouchPoint(a.touches[1]);this.lastPinchDistance=Aw(r,o),this.lastPinchRotation=Cw(r,o),this.onDragStart(Ew(r,o))},n.prototype.onPinchMove=function(a){var r=this;if(!(!this.currentDoc||!this.currentWindow)){var o=n.getTouchPoint(a.touches[0]),u=n.getTouchPoint(a.touches[1]),f=Ew(o,u);this.onDrag(f),this.rafPinchTimeout&&this.currentWindow.cancelAnimationFrame(this.rafPinchTimeout),this.rafPinchTimeout=this.currentWindow.requestAnimationFrame(function(){var m=Aw(o,u),p=r.props.zoom*(m/r.lastPinchDistance);r.setNewZoom(p,f,{shouldUpdatePosition:!1}),r.lastPinchDistance=m;var g=Cw(o,u),y=r.props.rotation+(g-r.lastPinchRotation);r.props.onRotationChange&&r.props.onRotationChange(y),r.lastPinchRotation=g})}},n.prototype.render=function(){var a=this,r,o=this.props,u=o.image,f=o.video,m=o.mediaProps,p=o.cropperProps,g=o.transform,y=o.crop,v=y.x,b=y.y,x=o.rotation,S=o.zoom,j=o.cropShape,C=o.showGrid,k=o.style,z=k.containerStyle,_=k.cropAreaStyle,Z=k.mediaStyle,R=o.classes,W=R.containerClassName,ue=R.cropAreaClassName,se=R.mediaClassName,Q=(r=this.state.mediaObjectFit)!==null&&r!==void 0?r:this.getObjectFit();return E.createElement("div",{onMouseDown:this.onMouseDown,onTouchStart:this.onTouchStart,ref:function(fe){return a.containerRef=fe},"data-testid":"container",style:z,className:ic("reactEasyCrop_Container",W)},u?E.createElement("img",Vt({alt:"",className:ic("reactEasyCrop_Image",Q==="contain"&&"reactEasyCrop_Contain",Q==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",Q==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",se)},m,{src:u,ref:this.imageRef,style:Vt(Vt({},Z),{transform:g||"translate(".concat(v,"px, ").concat(b,"px) rotate(").concat(x,"deg) scale(").concat(S,")")}),onLoad:this.onMediaLoad})):f&&E.createElement("video",Vt({autoPlay:!0,playsInline:!0,loop:!0,muted:!0,className:ic("reactEasyCrop_Video",Q==="contain"&&"reactEasyCrop_Contain",Q==="horizontal-cover"&&"reactEasyCrop_Cover_Horizontal",Q==="vertical-cover"&&"reactEasyCrop_Cover_Vertical",se)},m,{ref:this.videoRef,onLoadedMetadata:this.onMediaLoad,style:Vt(Vt({},Z),{transform:g||"translate(".concat(v,"px, ").concat(b,"px) rotate(").concat(x,"deg) scale(").concat(S,")")}),controls:!1}),(Array.isArray(f)?f:[{src:f}]).map(function(ne){return E.createElement("source",Vt({key:ne.src},ne))})),this.state.cropSize&&E.createElement("div",Vt({ref:this.cropperRef,style:Vt(Vt({},_),{width:this.state.cropSize.width,height:this.state.cropSize.height}),tabIndex:0,onKeyDown:this.onKeyDown,onKeyUp:this.onKeyUp,"data-testid":"cropper",className:ic("reactEasyCrop_CropArea",j==="round"&&"reactEasyCrop_CropAreaRound",C&&"reactEasyCrop_CropAreaGrid",ue)},p)))},n.defaultProps={zoom:1,rotation:0,aspect:4/3,maxZoom:gT,minZoom:mT,cropShape:"rect",objectFit:"contain",showGrid:!0,style:{},classes:{},mediaProps:{},cropperProps:{},zoomSpeed:1,restrictPosition:!0,zoomWithScroll:!0,keyboardStep:pT},n.getMousePoint=function(a){return{x:Number(a.clientX),y:Number(a.clientY)}},n.getTouchPoint=function(a){return{x:Number(a.clientX),y:Number(a.clientY)}},n}(E.Component);async function vT(e,n){const a=new Image;a.src=e,await new Promise(u=>a.onload=u);const r=document.createElement("canvas"),o=r.getContext("2d");return r.width=n.width,r.height=n.height,o.drawImage(a,n.x,n.y,n.width,n.height,0,0,n.width,n.height),new Promise(u=>{r.toBlob(f=>u(URL.createObjectURL(f)),"image/jpeg")})}const k2=({image:e,onCropComplete:n})=>{const[a,r]=E.useState({x:0,y:0}),[o,u]=E.useState(1),f=E.useCallback(async(m,p)=>{const g=await vT(e,p);n(g)},[e,n]);return c.jsxs("div",{className:"relative w-full h-96 bg-gray-200 flex flex-col items-center justify-center",children:[c.jsx(yT,{image:e,crop:a,zoom:o,aspect:1,onCropChange:r,onZoomChange:u,onCropComplete:f}),c.jsx("button",{className:"mt-4 px-6 py-2 bg-blue-600 text-white font-semibold rounded-lg",onClick:()=>f(),children:"Simpan Crop"})]})};k2.propTypes={image:Be.string.isRequired,onCropComplete:Be.func.isRequired};const Bo="/assets/Ellipse%201-BVGZo3uy.png",zo="data:image/png;base64, ",sd=()=>c.jsx("div",{children:c.jsx("div",{className:"flex-col gap-4 w-full h-96 flex items-center justify-center",children:c.jsx("div",{className:"w-20 h-20 border-4 border-transparent text-sky-800 text-4xl animate-spin flex items-center justify-center border-t-blue-400 rounded-full",children:c.jsx("div",{className:"w-16 h-16 border-4 border-transparent text-gray-500 text-2xl animate-spin flex items-center justify-center border-t-red-400 rounded-full"})})})}),Sg=({handleDoctorSelect:e})=>{var x;const[n,a]=E.useState(""),[r,o]=E.useState(1),u=8,{data:f,isLoading:m,isError:p}=el({queryKey:["doctors",n],queryFn:()=>Mn.getListDoctors({search:n}),staleTime:5*60*1e3,cacheTime:30*60*1e3}),y=(((x=f==null?void 0:f.data)==null?void 0:x.data)||[]).filter(S=>S.name.toLowerCase().includes(n.toLowerCase())),v=Math.ceil(y.length/u),b=y.slice((r-1)*u,r*u);return c.jsxs("div",{className:"w-full pt-4",children:[c.jsxs("div",{className:"w-full flex items-center bg-white shadow-md rounded-lg px-4 py-2 mb-6 mx-auto",children:[c.jsx(Ic,{className:"text-gray-400 mr-2"}),c.jsx("input",{type:"text",placeholder:"Cari dokter",value:n,onChange:S=>{a(S.target.value),o(1)},className:"flex- outline-none bg-transparent text-gray-700"})]}),m?c.jsx(sd,{}):p?c.jsx("p",{className:"text-center text-red-500",children:"Gagal memuat data dokter."}):c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 md:grid-cols-4 gap-4",children:b.map(S=>c.jsxs("div",{className:"flex flex-col items-center bg-white rounded-xl shadow-md p-4",children:[c.jsx("img",{src:"https://img.freepik.com/free-photo/young-female-doctor-office_1303-18666.jpg?w=200",alt:"dokter",className:"w-20 h-20 rounded-full object-cover mb-4"}),c.jsxs("p",{className:"font-semibold text-center",children:["dr. ",S.name]}),c.jsx("button",{onClick:()=>e==null?void 0:e(S),className:"mt-3 bg-sky-900 text-white px-6 py-2 rounded-full cursor-pointer",children:"Pilih Dokter"})]},S.id))}),v>1&&c.jsxs("div",{className:"flex justify-center items-center space-x-2 mt-8",children:[c.jsx("button",{onClick:()=>o(S=>Math.max(S-1,1)),disabled:r===1,className:"px-3 py-1 rounded-md bg-white border disabled:opacity-50",children:c.jsx(db,{className:"m-1"})}),Array.from({length:v},(S,j)=>j+1).map(S=>c.jsx("button",{onClick:()=>o(S),className:`px-3 py-1 rounded-md border ${r===S?"bg-sky-900 text-white":"bg-white text-gray-700"}`,children:S},S)),c.jsx("button",{onClick:()=>o(S=>Math.min(S+1,v)),disabled:r===v,className:"px-3 py-1 rounded-md bg-white border disabled:opacity-50",children:c.jsx(fb,{className:"m-1"})})]})]})]})};Sg.propTypes={handleDoctorSelect:Be.func};const wT=()=>{var fe;const[e,n]=E.useState(null),[a,r]=E.useState(null),[o,u]=E.useState(!1),[f,m]=E.useState(!0),[p,g]=E.useState(null),[y,v]=E.useState(!1),[b,x]=E.useState(!1),S=E.useRef(!1),[j,C]=E.useState(""),[k,z]=E.useState(null),{user:_}=Wi(),Z=(fe=_==null?void 0:_.data)==null?void 0:fe.id,R=Ec({mutationFn:ge=>Mn.createDetection(ge),onSuccess:ge=>{var De;console.log("Detection submitted successfully:",ge),g((De=ge==null?void 0:ge.data)==null?void 0:De.data),v(!1)},onError:ge=>{var De,ce,P;console.error("Detailed error response:",{status:(De=ge.response)==null?void 0:De.status,data:(ce=ge.response)==null?void 0:ce.data,headers:(P=ge.response)==null?void 0:P.headers}),v(!1)}}),W=async ge=>{if(!b){if(x(!0),!ge){console.error("Missing cropped image URL");return}if(!Z){console.error("Patient ID not available. Current user:",_);return}try{if(v(!0),!ge.startsWith("blob:")&&!ge.startsWith("data:")){console.error("Invalid image URL format:",ge),v(!1);return}const De=await fetch(ge);if(!De.ok)throw new Error("Failed to fetch cropped image");const ce=await De.blob();if(!ce||ce.size===0)throw new Error("Empty image blob");const P=new File([ce],"diagnosis.jpg",{type:ce.type||"image/jpeg"}),H=new FormData;H.append("patient_id",Z.toString()),H.append("image",P,P.name);for(let[te,$]of H.entries())console.log(te,$ instanceof File?`${$.name} (${$.type})`:$);R.mutate(H)}catch(De){console.error("Submission error details:",{error:De.message,patientId:Z,hasCroppedImage:!!ge,userAuthStatus:!!_}),v(!1)}finally{x(!1)}}},ue=async ge=>{if(!j||!ge||!(p!=null&&p.id)){Tn.fire("Error","Keluhan dan dokter wajib diisi","error");return}const De={doctorId:ge.id,complaint:j};try{const ce=await Mn.updateDetection(p.id,De,_.token);console.log("data submit:",ce),Tn.fire("Berhasil","Pengajuan berhasil dikirim ke dokter","success"),m(!0),C(""),z(null)}catch(ce){console.error(ce),Tn.fire("Gagal","Terjadi kesalahan saat mengirim data","error")}},se=async ge=>{(await Tn.fire({title:`Pilih Dokter ${ge.name}?`,text:"Apakah Anda yakin ingin mengajukan verifikasi ke dokter ini?",icon:"question",showCancelButton:!0,confirmButtonText:"Ya, pilih dokter ini",cancelButtonText:"Batal"})).isConfirmed&&(z(ge),ue(ge))},Q=ge=>{const De=ge.target.files[0];De&&(n(URL.createObjectURL(De)),r(null),g(null),m(!0),S.current=!1)},ne=(p==null?void 0:p.percentage)>=50?"Tidak Aman":"Aman";return c.jsx("div",{className:"flex justify-center py-10 px-10 md:px-20 w-full",children:c.jsxs("div",{className:"md:bg-white md:py-8 md:px-20 md:rounded-lg md:border md:border-gray-400 w-full",children:[c.jsx("h1",{className:"text-2xl font-bold text-center text-black",children:"Deteksi Kanker Kulit"}),c.jsx("p",{className:"text-gray-500 text-center mt-2",children:"Masukkan gambar untuk mendeteksi kanker dari gambar yang diberikan"}),c.jsxs("div",{className:"w-full flex flex-col items-center",children:[o?c.jsx(k2,{image:e,onCropComplete:async ge=>{r(ge),u(!1),!S.current&&ge&&(S.current=!0,await W(ge))}}):c.jsx("div",{className:"w-full md:w-1/3 h-60 border-2 border-dashed border-gray-400 bg-blue-50 rounded-lg mt-6 flex justify-center items-center relative",children:a?c.jsx("img",{src:a,alt:"Cropped",className:"max-h-58 w-full object-cover rounded-lg"}):e?c.jsx("img",{src:e,alt:"Uploaded",className:"max-h-58 w-full object-cover rounded-lg"}):c.jsxs("label",{className:"cursor-pointer flex flex-col items-center text-blue-900 font-semibold",children:[c.jsx("span",{className:"text-lg",children:"+ Masukkan Gambar"}),c.jsx("input",{type:"file",className:"hidden",accept:"image/jpeg, image/png",onChange:Q})]})}),e&&!o&&c.jsx("div",{className:"w-full flex justify-center mt-3",children:a?c.jsxs("label",{className:"md:w-1/3 font-bold border border-gray-800 rounded-full px-6 py-2 cursor-pointer text-center",children:[c.jsx("input",{type:"file",className:"hidden",accept:"image/jpeg, image/png",onChange:Q}),"Ganti Foto"]}):c.jsx("button",{className:"md:w-1/3 font-bold text-white bg-sky-900 rounded-full px-6 py-2 cursor-pointer",onClick:()=>u(!0),children:"Crop Foto"})}),y&&c.jsx("div",{className:"mt-4 text-center",children:c.jsx("p",{className:"text-gray-600",children:"Memproses deteksi..."})}),a&&p&&c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-6",children:[c.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[c.jsx("img",{src:zo,alt:"Melanoma",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Melanoma"}),c.jsx("p",{children:p.diagnosis})]}),c.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:"text-green-500",children:`${p.percentage}% ${p.diagnosisAi} (${ne})`})]})]}),a&&_&&c.jsx("button",{onClick:()=>m(ge=>!ge),className:`md:w-1/3 font-bold text-white rounded-full px-6 py-2 my-4 cursor-pointer ${f?"bg-sky-900":"bg-red-700"}`,children:f?"Ajukan Verifikasi/Keluhan":"Batalkan Pengajuan"}),!f&&a&&c.jsxs("div",{className:"w-full",children:[c.jsx("h1",{className:"text-2xl font-bold text-center text-black",children:"Pengajuan Verifikasi"}),c.jsx("p",{className:"text-gray-500 text-center mt-2",children:"Ajukan keluhan dan pilih dokter Anda disini"}),c.jsxs("div",{className:"text-left w-full",children:[c.jsx("p",{children:"Keluhan:"}),c.jsx("textarea",{value:j,onChange:ge=>C(ge.target.value),className:"w-full h-32 border border-gray-400 rounded-lg p-2 mt-2",placeholder:"Masukkan keluhan Anda disini",required:!0}),c.jsx(Sg,{handleDoctorSelect:se}),k&&c.jsxs("div",{className:"mt-4 text-sm text-green-700",children:["Dokter terpilih: ",c.jsxs("strong",{children:["dr. ",k.name]})]})]})]})]}),!a&&c.jsxs("div",{className:"mt-6 text-sm text-gray-700",children:[c.jsxs("p",{className:"text-black",children:["1. Format: JPEG, PNG ",c.jsx("span",{className:"text-red-500",children:"*"})]}),c.jsxs("p",{className:"text-black",children:["2. Ukuran: Maksimum 5 MB ",c.jsx("span",{className:"text-red-500",children:"*"})]}),c.jsxs("p",{className:"text-black",children:["3. Resolusi: Minimal 800 x 600 piksel"," ",c.jsx("span",{className:"text-red-500",children:"*"})]}),c.jsx("p",{className:"text-red-500 mt-2 italic",children:"*Wajib mengikuti aturan gambar"})]})]})})},bT="/assets/doctor-B0xZjIfR.jpeg",xT="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAFMSURBVHgB7ZW9VcMwEMfvjgwQwgIZIRvgNIYORggdL7ADYQMKApQwAY8upkGMkAliFjBZAB1nPewnCQmbQKDJr/GzdH+dT/dhgA0NoP3S2zvhkJFGHC5nl8pe6+4fJ8RbTyH7IpvW53b8TfGgkPnZ/Yy3PHBODsznjhZxV05OIEYZQS8dT2BFSq1/C52Y8U56esjIB9AKPS+y64vQTtQBgx7I3YygBQyk5BF0QLBm3AgkaZrM16xEqSWtnTWMGXclB9Q2B8wvxePVBP4DE8F2Or5HhAH8Kqik4Y5MDojhQYp3DohnVaM1No2FaHLR3NUak0tY1BFUmCaRzfI+TcOJw5YO1Gs2HVYae1SsvUz/uA8sQjUdgwkX33bwMZ4V/JDP41oqwZ+omvTtcnaT22vyP+iTppGvxSYHpswQE89MQTn/Xfp+lUXHwoaveAeA0XugwY8BigAAAABJRU5ErkJggg==",ST=()=>{var n;const{user:e}=Wi();return c.jsxs("div",{className:"w-full min-h-screen",children:[c.jsxs("div",{className:"w-full h-80 md:h-[32rem]",children:[c.jsx("img",{src:bT,alt:"Dokter",className:"w-full h-full object-cover"}),c.jsxs("div",{className:"absolute left-8 md:left-32 top-28 md:top-48 max-w-md",children:[c.jsxs("h1",{className:"text-4xl md:text-5xl font-light text-sky-900",children:["Selamat Datang, ",c.jsx("br",{}),c.jsx("span",{className:"font-bold capitalize",children:((n=e==null?void 0:e.data)==null?void 0:n.name)||"Pasien"})]}),c.jsxs("button",{onClick:()=>window.location.href="#deteksi",className:"mt-4 md:mt-6 flex items-center gap-2 bg-white text-blue-900 font-semibold px-4 md:px-6 py-1 md:py-3 rounded-full shadow-lg cursor-pointer hover:bg-blue-100",children:[c.jsx("span",{className:"material-icons",children:c.jsx("img",{src:xT,alt:""})}),"Coba Sekarang"]})]})]}),c.jsx(sR,{}),c.jsx("div",{id:"deteksi",children:c.jsx(wT,{})})]})},ld="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAgCSURBVHgB7d0JbBRVGAfw/5vd7tHSUkCKpRERLSpIRCWtCmrrLYEEPCpFimCNF0ii4kHQqOARFY0xCl4BRaMxmBiNKAGj4oVFAsVSCi3QVmhLKZRylB67O+M3s1KEPdo53rDbfT8ym92Z2Q3sNzvvve99MwCCIAiCIAiCIAiCIAiCIAiCIAiCICQuBk6UfSvPRHvbVDCWhoTAZDjZcpY5uQYmOMGLzzcPkmMOEklAKaTHC2GCBF4UxYtEwyTTBzi/gAiGiIDEGBGQGCMCEmP49bJMatjXgnc+/Rn7m4/CTnmXD8eUCTk4XXQFRCn7+HF6XEBPXd3u3NHJ4O5+t0jKKuuxau0W2K28qj5+AkLG0uKBDa4acx7mzLjO1l+IOkq+duwFOJ30BUSR62jkDTt4PS5Mn3wFEo2+Rl1imyFwpS8gAf8fELjSF5DtaRX02A6BG11tCCsoCChlH9XQ09Pb8v3PHxt3Yiv1jHgbnJGO8fmjwJuRcUgpbA7IF9/+hdr6Zsy8/UoM7J/atf5IazvmPP857OL1upB/+fngyUBAFGpH2BTYQJZlvPbBaqz4boP2OoW+kFlF+V3bU7xu5Fx8DrbtaABvGQPTMCI7E7zpDwiTN0FxgLejxzrw3Jvf4OeS7drrszL74dabLjlpH0liWLzgLvQm+gOieKuATvB05GgbHn1xBTZt/Ud7fXZWfyxeOA2DBvT+yUfdyUU2amojTT7thwUWU66q+KmPUb37xMfVUw5r+tylXcEYNTwLyxfdkxDBUBnL9jKsg0mdnX4s+/J3bK7YjQee/gQVOxtQW3cADz/3GXY3HNT2ufmai/DWs4VISbYlWxMTjGV7FbaBgjIRJrhcTjxSfD3e+HANDrS04r55y+F0StRz6tC2F07MwWP33hj2vWpj30Q5LkWBbdLTvPC4k8CbwfS7ssOKgpWpE3PRLzUZr7y3SmvEEYwFHpyWh+I7xkV8X9FjS7F9117YKdmThCULizBy+GDwZOyUJUm/wSK35I3C0w9PoH+wSwvx7OnXRg2Gyh+QYbcOOsX6AgHwZvgwpxG7OjyO3DFP9kLPfMjBQ8e0bmzf1O6LVQIUkF27m2CnAel90D89JfpOjO1gWZOyYYKZGUN1gGDZSKlf3+Qe7+twSMgeOgi9kfE5dQWVECxnJiDrIVjORNVJwLKGXTjBeBviSK2G3OqnhsyWyhU/jT2cUujxM5sGklXVjeBtIGUK3nzmTpzRrw94MvxlsosKOpWyZTX09DxwtGfvQcxf9BWqavfh5cdvxTU5w7u2NdOAsqS0mgaI/EeI6uB1S2Ud8nJjLv1+EjWFwi0gdRSMh575lPJbh7TX+w+eXIGidkNfmjtZCxZvGTQPwzsYKnMBkdk6aoWKwME/NCE1g5KMh1uDM8Yz7xiL2266NGS/G8aN0JbewlwpqdNc11ed8atvbAlZ/+O6bZj55LKuYKiTUrOm5SMRmPuF+LANDq3oQXc6Vj3vT5nzPhr3H8YDhVfj3ilXa+tX/vQ3Fr79Lfx+asRpAPgoJRgLxo9BojAVEDZ6Rp3y90c1lIDRPceufuEOKZi5effzX7RckZuyqe9+tlZbl5bqwQuPTMKVl3HtM8Qc0ylbymmpVQahc+w9yGWppyt1LuR4o32cGoxF8wpw6cghYd+3fnO1tiiwL/9+VuYATLphdPSdTnMuK0hWdkEyFtfBg9Kx9NWZNF37BbZWBQsVBmf0xZIXipBF2yKZ//pXWjLSbi6ng3spkPmAONhGMweqOtBasmAaFn2wGm3tnZh1d37UYKgKJ+Tgz9JdCMj2/UIyBvRB7iXDwJv5U9bWTzIpHx5aqaYz/d4rWHDKMn0FFRtRROcaxn9kliAsuqSN2hHBEtYERMH3ECxhUabWmqKH7rTIh7G641e0yR0h2xj9Gee+DMOcQxDPrAmIpJRC4R+QUl8Fyn1VEbc7Ox1xHxBrTlntvhp69IMzGdGrPgLgXxXCmyUBYWPuP0bfVglijF9maPeHLur6WGXdbB9DOYJX6caE3+s9KF4zEMf8ocecet3qs7nNuGfkEcQa6+7kICv2X1Qexa91nrDBUKkTjKtqe152ZCfrAuJg8TUWsbEuWA/rTlmejB/Q1qi/6KG9Gaj+muZWwiQL1XPL0AlAanz3nPSw7BfCsserg4Na6NW4nibLy4BDO0OXFhre1KxEIrG4hIepF4Seq+st3VWMyNx700E+v3pbwtD1SfQVJfG/DOE4awOi4E/qbd2GeFNK/ZG3ltLpsyP89oKJwKSbYQdr75fFAqWIR3saIgdDVVoOu1gbENlRgd7IxokwSwOiFj1Qm9ACwTDrb/HH2F8QDLM+IAE55nJa8cT6gEhsJwTDrL+UQHJughI9DV5eWX+icLqJmpymKMUQ3k7qAQUrVrf4mtDojzwuYdIRrHUH963fkQLX3sj5qsNtPqwt+a+5q6ZsgT9K8aX6Vy0Jfq7HlYTc0UPB6856ln+qsuG9vnB7KpHsyQhXdaLeu2TuSysQzx6cmofiO8NcKRwLVSenormRQ9TTinjayj57kFZ3xegIO7EgysLCLD3dL/IHh92fRrYhyymf3SfZjWFDzgAvnK5+0lLxYe9gmXVmOr5+fzaE8Pjc2To4WSUYwCkgyhoIhvAJiE1FD70Rl4BoRQ+M8b/vXi/E739HkNhGJBpFNl01we8ac+aeTwNEGm3J8V8s1ROMtcLBnoAgCIIgCIIgCIIgCIIgJIh/AWKHeUFeYYwHAAAAAElFTkSuQmCC",M2="/assets/Ellipse%204-CrOw4YA8.png",AT=()=>{var y;const{id:e}=Hc(),n=dn(),{data:a,isLoading:r,isError:o}=el({queryKey:["submitDetect",e],queryFn:()=>Mn.getDetectionsById(e),enabled:!!e}),u=((y=a==null?void 0:a.data)==null?void 0:y.data)||[];if(r)return c.jsx("div",{className:"mt-10",children:c.jsx(sd,{})});if(o||!u)return c.jsx("div",{className:"w-full h-96 flex items-center justify-center font-semibold",children:"Gagal memuat data..."});const f=a.data.data,p=parseFloat(f.diagnosisAi)>=50?"text-red-600":"text-green-600",g=f.status==="rejected"?"text-red-600":f.status==="pending"?"text-yellow-600":"text-green-600";return c.jsx("div",{className:"py-20 lg:py-32 w-full px-4 lg:px-32",children:c.jsxs("div",{className:"w-full rounded-lg shadow-xl bg-white p-6 lg:p-10",children:[c.jsxs("button",{onClick:()=>n("/deteksi"),className:"flex items-center gap-x-2 px-4 py-2 text-white font-bold rounded-xl bg-sky-800 hover:bg-sky-900",children:[c.jsx(Vc,{className:"text-lg"}),"Kembali"]}),c.jsxs("div",{className:"text-center flex flex-col items-center mt-5",children:[c.jsx("h1",{className:"text-2xl font-semibold mb-2",children:"Detail Hasil Deteksi"}),c.jsx("p",{className:"text-sm text-gray-600",children:f.isSubmitted==="Sudah"?"Hasil deteksi sudah diverifikasi dokter":"Hasil deteksi belum diverifikasi dokter"})]}),c.jsx("img",{className:"rounded-3xl w-full lg:w-1/2 mx-auto my-6 object-cover",src:f.imageUrl,alt:"Hasil Deteksi Kulit"}),c.jsxs("p",{className:"w-full lg:w-1/2 mx-auto mb-4 text-left font-bold text-md",children:["ID Deteksi: ",f.id]}),c.jsx("a",{href:f.imageUrl,download:!0,className:"block w-full lg:w-1/2 mx-auto mb-6 px-4 py-2 text-white font-bold rounded-full bg-sky-800 hover:bg-sky-900 text-center",children:"Unduh Gambar"}),c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-4",children:[c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:zo,alt:"Diagnosis",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Diagnosis"}),c.jsx("p",{children:f.diagnosis||"Tidak diketahui"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:p,children:f.diagnosisAi||"Tidak tersedia"})]}),c.jsxs("div",{onClick:()=>f.isSubmitted==="Sudah"?n(`/deteksi/${f.id}`):n(`/pengajuan/ulang/${f.id}`),className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4 cursor-pointer",children:[c.jsx("img",{src:M2,alt:"Pengajuan Verifikasi",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Pengajuan Verifikasi"}),c.jsx("p",{className:`font-semibold ${f.isSubmitted==="Sudah"?"text-green-500":"text-red-500"}`,children:f.isSubmitted})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:ld,alt:"Status",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Status"}),c.jsx("p",{className:`font-semibold ${g}`,children:f.status})]})]}),c.jsx("p",{className:"text-sm font-normal text-gray-400 text-center",children:"*Hasil deteksi hanya berupa indikasi awal dari sistem, harap konsultasikan dengan dokter untuk kepastian diagnosis."})]})})};var mc={exports:{}},CT=mc.exports,jw;function ET(){return jw||(jw=1,function(e,n){(function(a,r){e.exports=r()})(CT,function(){var a=1e3,r=6e4,o=36e5,u="millisecond",f="second",m="minute",p="hour",g="day",y="week",v="month",b="quarter",x="year",S="date",j="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,k=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,z={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ce){var P=["th","st","nd","rd"],H=ce%100;return"["+ce+(P[(H-20)%10]||P[H]||P[0])+"]"}},_=function(ce,P,H){var te=String(ce);return!te||te.length>=P?ce:""+Array(P+1-te.length).join(H)+ce},Z={s:_,z:function(ce){var P=-ce.utcOffset(),H=Math.abs(P),te=Math.floor(H/60),$=H%60;return(P<=0?"+":"-")+_(te,2,"0")+":"+_($,2,"0")},m:function ce(P,H){if(P.date()<H.date())return-ce(H,P);var te=12*(H.year()-P.year())+(H.month()-P.month()),$=P.clone().add(te,v),oe=H-$<0,N=P.clone().add(te+(oe?-1:1),v);return+(-(te+(H-$)/(oe?$-N:N-$))||0)},a:function(ce){return ce<0?Math.ceil(ce)||0:Math.floor(ce)},p:function(ce){return{M:v,y:x,w:y,d:g,D:S,h:p,m,s:f,ms:u,Q:b}[ce]||String(ce||"").toLowerCase().replace(/s$/,"")},u:function(ce){return ce===void 0}},R="en",W={};W[R]=z;var ue="$isDayjsObject",se=function(ce){return ce instanceof ge||!(!ce||!ce[ue])},Q=function ce(P,H,te){var $;if(!P)return R;if(typeof P=="string"){var oe=P.toLowerCase();W[oe]&&($=oe),H&&(W[oe]=H,$=oe);var N=P.split("-");if(!$&&N.length>1)return ce(N[0])}else{var X=P.name;W[X]=P,$=X}return!te&&$&&(R=$),$||!te&&R},ne=function(ce,P){if(se(ce))return ce.clone();var H=typeof P=="object"?P:{};return H.date=ce,H.args=arguments,new ge(H)},fe=Z;fe.l=Q,fe.i=se,fe.w=function(ce,P){return ne(ce,{locale:P.$L,utc:P.$u,x:P.$x,$offset:P.$offset})};var ge=function(){function ce(H){this.$L=Q(H.locale,null,!0),this.parse(H),this.$x=this.$x||H.x||{},this[ue]=!0}var P=ce.prototype;return P.parse=function(H){this.$d=function(te){var $=te.date,oe=te.utc;if($===null)return new Date(NaN);if(fe.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var N=$.match(C);if(N){var X=N[2]-1||0,le=(N[7]||"0").substring(0,3);return oe?new Date(Date.UTC(N[1],X,N[3]||1,N[4]||0,N[5]||0,N[6]||0,le)):new Date(N[1],X,N[3]||1,N[4]||0,N[5]||0,N[6]||0,le)}}return new Date($)}(H),this.init()},P.init=function(){var H=this.$d;this.$y=H.getFullYear(),this.$M=H.getMonth(),this.$D=H.getDate(),this.$W=H.getDay(),this.$H=H.getHours(),this.$m=H.getMinutes(),this.$s=H.getSeconds(),this.$ms=H.getMilliseconds()},P.$utils=function(){return fe},P.isValid=function(){return this.$d.toString()!==j},P.isSame=function(H,te){var $=ne(H);return this.startOf(te)<=$&&$<=this.endOf(te)},P.isAfter=function(H,te){return ne(H)<this.startOf(te)},P.isBefore=function(H,te){return this.endOf(te)<ne(H)},P.$g=function(H,te,$){return fe.u(H)?this[te]:this.set($,H)},P.unix=function(){return Math.floor(this.valueOf()/1e3)},P.valueOf=function(){return this.$d.getTime()},P.startOf=function(H,te){var $=this,oe=!!fe.u(te)||te,N=fe.p(H),X=function(ze,_e){var bt=fe.w($.$u?Date.UTC($.$y,_e,ze):new Date($.$y,_e,ze),$);return oe?bt:bt.endOf(g)},le=function(ze,_e){return fe.w($.toDate()[ze].apply($.toDate("s"),(oe?[0,0,0,0]:[23,59,59,999]).slice(_e)),$)},q=this.$W,re=this.$M,we=this.$D,Re="set"+(this.$u?"UTC":"");switch(N){case x:return oe?X(1,0):X(31,11);case v:return oe?X(1,re):X(0,re+1);case y:var dt=this.$locale().weekStart||0,Ve=(q<dt?q+7:q)-dt;return X(oe?we-Ve:we+(6-Ve),re);case g:case S:return le(Re+"Hours",0);case p:return le(Re+"Minutes",1);case m:return le(Re+"Seconds",2);case f:return le(Re+"Milliseconds",3);default:return this.clone()}},P.endOf=function(H){return this.startOf(H,!1)},P.$set=function(H,te){var $,oe=fe.p(H),N="set"+(this.$u?"UTC":""),X=($={},$[g]=N+"Date",$[S]=N+"Date",$[v]=N+"Month",$[x]=N+"FullYear",$[p]=N+"Hours",$[m]=N+"Minutes",$[f]=N+"Seconds",$[u]=N+"Milliseconds",$)[oe],le=oe===g?this.$D+(te-this.$W):te;if(oe===v||oe===x){var q=this.clone().set(S,1);q.$d[X](le),q.init(),this.$d=q.set(S,Math.min(this.$D,q.daysInMonth())).$d}else X&&this.$d[X](le);return this.init(),this},P.set=function(H,te){return this.clone().$set(H,te)},P.get=function(H){return this[fe.p(H)]()},P.add=function(H,te){var $,oe=this;H=Number(H);var N=fe.p(te),X=function(re){var we=ne(oe);return fe.w(we.date(we.date()+Math.round(re*H)),oe)};if(N===v)return this.set(v,this.$M+H);if(N===x)return this.set(x,this.$y+H);if(N===g)return X(1);if(N===y)return X(7);var le=($={},$[m]=r,$[p]=o,$[f]=a,$)[N]||1,q=this.$d.getTime()+H*le;return fe.w(q,this)},P.subtract=function(H,te){return this.add(-1*H,te)},P.format=function(H){var te=this,$=this.$locale();if(!this.isValid())return $.invalidDate||j;var oe=H||"YYYY-MM-DDTHH:mm:ssZ",N=fe.z(this),X=this.$H,le=this.$m,q=this.$M,re=$.weekdays,we=$.months,Re=$.meridiem,dt=function(_e,bt,xn,Rt){return _e&&(_e[bt]||_e(te,oe))||xn[bt].slice(0,Rt)},Ve=function(_e){return fe.s(X%12||12,_e,"0")},ze=Re||function(_e,bt,xn){var Rt=_e<12?"AM":"PM";return xn?Rt.toLowerCase():Rt};return oe.replace(k,function(_e,bt){return bt||function(xn){switch(xn){case"YY":return String(te.$y).slice(-2);case"YYYY":return fe.s(te.$y,4,"0");case"M":return q+1;case"MM":return fe.s(q+1,2,"0");case"MMM":return dt($.monthsShort,q,we,3);case"MMMM":return dt(we,q);case"D":return te.$D;case"DD":return fe.s(te.$D,2,"0");case"d":return String(te.$W);case"dd":return dt($.weekdaysMin,te.$W,re,2);case"ddd":return dt($.weekdaysShort,te.$W,re,3);case"dddd":return re[te.$W];case"H":return String(X);case"HH":return fe.s(X,2,"0");case"h":return Ve(1);case"hh":return Ve(2);case"a":return ze(X,le,!0);case"A":return ze(X,le,!1);case"m":return String(le);case"mm":return fe.s(le,2,"0");case"s":return String(te.$s);case"ss":return fe.s(te.$s,2,"0");case"SSS":return fe.s(te.$ms,3,"0");case"Z":return N}return null}(_e)||N.replace(":","")})},P.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},P.diff=function(H,te,$){var oe,N=this,X=fe.p(te),le=ne(H),q=(le.utcOffset()-this.utcOffset())*r,re=this-le,we=function(){return fe.m(N,le)};switch(X){case x:oe=we()/12;break;case v:oe=we();break;case b:oe=we()/3;break;case y:oe=(re-q)/6048e5;break;case g:oe=(re-q)/864e5;break;case p:oe=re/o;break;case m:oe=re/r;break;case f:oe=re/a;break;default:oe=re}return $?oe:fe.a(oe)},P.daysInMonth=function(){return this.endOf(v).$D},P.$locale=function(){return W[this.$L]},P.locale=function(H,te){if(!H)return this.$L;var $=this.clone(),oe=Q(H,te,!0);return oe&&($.$L=oe),$},P.clone=function(){return fe.w(this.$d,this)},P.toDate=function(){return new Date(this.valueOf())},P.toJSON=function(){return this.isValid()?this.toISOString():null},P.toISOString=function(){return this.$d.toISOString()},P.toString=function(){return this.$d.toUTCString()},ce}(),De=ge.prototype;return ne.prototype=De,[["$ms",u],["$s",f],["$m",m],["$H",p],["$W",g],["$M",v],["$y",x],["$D",S]].forEach(function(ce){De[ce[1]]=function(P){return this.$g(P,ce[0],ce[1])}}),ne.extend=function(ce,P){return ce.$i||(ce(P,ge,ne),ce.$i=!0),ne},ne.locale=Q,ne.isDayjs=se,ne.unix=function(ce){return ne(1e3*ce)},ne.en=W[R],ne.Ls=W,ne.p={},ne})}(mc)),mc.exports}var jT=ET();const Rw=Bc(jT),RT=()=>{var v,b,x,S;const{id:e}=Hc(),n=dn(),{user:a}=Wi(),{data:r,isLoading:o,isError:u}=el({queryKey:["submission",e],queryFn:()=>Mn.getSubmissionsById(e),enabled:!!e});if(o)return c.jsx("div",{className:"mt-10",children:c.jsx(sd,{})});if(u||!(r!=null&&r.data))return c.jsx("div",{className:"w-full h-96 flex items-center justify-center font-semibold",children:"Gagal memuat data..."});const f=r.data.data,p=parseFloat(f.diagnosisAi)>=50?"text-red-600":"text-green-600",g=f.status==="rejected"?"text-red-600":f.status==="pending"?"text-yellow-600":"text-green-600",y=j=>Rw().diff(Rw(j),"year");return c.jsx("div",{className:"py-20 lg:py-32 w-full px-4 lg:px-32",children:c.jsxs("div",{className:"w-full rounded-lg shadow-xl bg-white p-4 lg:p-10",children:[c.jsxs("button",{onClick:()=>n("/pengajuan"),className:"flex justify-between gap-x-2 items-center px-4 py-2 text-white font-bold rounded-xl bg-sky-800 cursor-pointer",children:[c.jsx(Vc,{className:"text-lg text-white"}),"kembali"]}),c.jsxs("div",{className:"text-center flex flex-col items-center",children:[c.jsx("div",{className:"my-5 leading-10",children:c.jsx("h1",{className:"text-2xl font-semibold",children:"Prediksi Penyakit"})}),c.jsx("img",{className:"rounded-3xl w-full lg:w-1/2",src:f.imageUrl||"https://via.placeholder.com/600x400?text=No+Image",alt:"Hasil Deteksi"}),c.jsx("button",{className:"w-full lg:w-1/2 px-4 py-2 my-2 text-white font-bold rounded-full bg-sky-800 hover:bg-sky-900 cursor-pointer",children:"Unduh Gambar"}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 mt-4 gap-4 w-full",children:[c.jsxs("div",{className:"lg:col-span-3 p-4 text-left rounded-lg shadow-md",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Diverifikasi Oleh"}),c.jsxs("p",{children:["Dr. ",f.verifiedBy]})]}),c.jsxs("div",{className:"p-4 text-left rounded-lg shadow-md",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Detail Pasien"}),c.jsxs("span",{className:"flex flex-col gap-y-2",children:[c.jsxs("p",{children:["Nama: ",((v=a==null?void 0:a.data)==null?void 0:v.name)||"Pasien"]}),c.jsxs("p",{children:["Nomor Telepon: ",((b=a==null?void 0:a.data)==null?void 0:b.phone)||"-"]}),c.jsxs("p",{children:["Email: ",((x=a==null?void 0:a.data)==null?void 0:x.email)||"-"]}),c.jsxs("p",{children:["Umur: ",y((S=a==null?void 0:a.data)==null?void 0:S.dob)]})]})]}),c.jsxs("div",{className:"lg:col-span-2 p-4 text-left rounded-lg shadow-md",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Keluhan"}),c.jsx("p",{children:f.complaint})]})]}),c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-4",children:[c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:zo,alt:"Diagnosis",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Diagnosis"}),c.jsx("p",{children:f.diagnosis||"Tidak diketahui"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:p,children:f.diagnosisAi||"Tidak tersedia"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:ld,alt:"Status",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Status"}),c.jsx("p",{className:`font-semibold ${g}`,children:f.status})]})]}),c.jsxs("div",{className:"w-full text-left",children:[c.jsx("h1",{className:"text-2xl font-semibold text-center my-4",children:"Catatan Dokter"}),c.jsx("textarea",{className:"shadow-md rounded-lg w-full p-4",name:"catatan",id:"catatan",value:f.doctorNote,readOnly:!0})]})]})]})})},D2=e=>{const{diagnosis:n,percentage:a,status:r}=e;return c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-6",children:[c.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[c.jsx("img",{src:zo,alt:"Melanoma",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Melanoma"}),c.jsx("p",{children:a>49?"Iya":"Tidak"})]}),c.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:a>49?"text-red-500":"text-green-500",children:n})]}),c.jsxs("div",{className:"w-full h-48 shadow-md rounded-lg bg-white flex flex-col justify-center items-center gap-y-2 px-4 py-4 border border-gray-100",children:[c.jsx("img",{src:ld,alt:"Status",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Status"}),c.jsx("p",{className:r=="verified"?"text-green-500":"text-red-500",children:r==="verified"?"Sudah diverifikasi":"Belum diverifikasi"})]})]})};D2.propTypes={diagnosis:Be.string.isRequired,percentage:Be.number.isRequired,status:Be.string.isRequired};const Nw="/assets/default-DlLfYoqZ.png";let NT={data:""},TT=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||NT,kT=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,MT=/\/\*[^]*?\*\/|  +/g,Tw=/\n+/g,_i=(e,n)=>{let a="",r="",o="";for(let u in e){let f=e[u];u[0]=="@"?u[1]=="i"?a=u+" "+f+";":r+=u[1]=="f"?_i(f,u):u+"{"+_i(f,u[1]=="k"?"":n)+"}":typeof f=="object"?r+=_i(f,n?n.replace(/([^,])+/g,m=>u.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,p=>/&/.test(p)?p.replace(/&/g,m):m?m+" "+p:p)):u):f!=null&&(u=/^--/.test(u)?u:u.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=_i.p?_i.p(u,f):u+":"+f+";")}return a+(n&&o?n+"{"+o+"}":o)+r},ei={},O2=e=>{if(typeof e=="object"){let n="";for(let a in e)n+=a+O2(e[a]);return n}return e},DT=(e,n,a,r,o)=>{let u=O2(e),f=ei[u]||(ei[u]=(p=>{let g=0,y=11;for(;g<p.length;)y=101*y+p.charCodeAt(g++)>>>0;return"go"+y})(u));if(!ei[f]){let p=u!==e?e:(g=>{let y,v,b=[{}];for(;y=kT.exec(g.replace(MT,""));)y[4]?b.shift():y[3]?(v=y[3].replace(Tw," ").trim(),b.unshift(b[0][v]=b[0][v]||{})):b[0][y[1]]=y[2].replace(Tw," ").trim();return b[0]})(e);ei[f]=_i(o?{["@keyframes "+f]:p}:p,a?"":"."+f)}let m=a&&ei.g?ei.g:null;return a&&(ei.g=ei[f]),((p,g,y,v)=>{v?g.data=g.data.replace(v,p):g.data.indexOf(p)===-1&&(g.data=y?p+g.data:g.data+p)})(ei[f],n,r,m),f},OT=(e,n,a)=>e.reduce((r,o,u)=>{let f=n[u];if(f&&f.call){let m=f(a),p=m&&m.props&&m.props.className||/^go/.test(m)&&m;f=p?"."+p:m&&typeof m=="object"?m.props?"":_i(m,""):m===!1?"":m}return r+o+(f??"")},"");function od(e){let n=this||{},a=e.call?e(n.p):e;return DT(a.unshift?a.raw?OT(a,[].slice.call(arguments,1),n.p):a.reduce((r,o)=>Object.assign(r,o&&o.call?o(n.p):o),{}):a,TT(n.target),n.g,n.o,n.k)}let _2,Dm,Om;od.bind({g:1});let li=od.bind({k:1});function _T(e,n,a,r){_i.p=n,_2=e,Dm=a,Om=r}function er(e,n){let a=this||{};return function(){let r=arguments;function o(u,f){let m=Object.assign({},u),p=m.className||o.className;a.p=Object.assign({theme:Dm&&Dm()},m),a.o=/ *go\d+/.test(p),m.className=od.apply(a,r)+(p?" "+p:"");let g=e;return e[0]&&(g=m.as||e,delete m.as),Om&&g[0]&&Om(m),_2(g,m)}return o}}var BT=e=>typeof e=="function",_m=(e,n)=>BT(e)?e(n):e,zT=(()=>{let e=0;return()=>(++e).toString()})(),LT=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let n=matchMedia("(prefers-reduced-motion: reduce)");e=!n||n.matches}return e}})(),UT=20,B2=(e,n)=>{switch(n.type){case 0:return{...e,toasts:[n.toast,...e.toasts].slice(0,UT)};case 1:return{...e,toasts:e.toasts.map(u=>u.id===n.toast.id?{...u,...n.toast}:u)};case 2:let{toast:a}=n;return B2(e,{type:e.toasts.find(u=>u.id===a.id)?1:0,toast:a});case 3:let{toastId:r}=n;return{...e,toasts:e.toasts.map(u=>u.id===r||r===void 0?{...u,dismissed:!0,visible:!1}:u)};case 4:return n.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(u=>u.id!==n.toastId)};case 5:return{...e,pausedAt:n.time};case 6:let o=n.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(u=>({...u,pauseDuration:u.pauseDuration+o}))}}},HT=[],Kh={toasts:[],pausedAt:void 0},Ag=e=>{Kh=B2(Kh,e),HT.forEach(n=>{n(Kh)})},FT=(e,n="blank",a)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:n,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...a,id:(a==null?void 0:a.id)||zT()}),Lo=e=>(n,a)=>{let r=FT(n,e,a);return Ag({type:2,toast:r}),r.id},Kt=(e,n)=>Lo("blank")(e,n);Kt.error=Lo("error");Kt.success=Lo("success");Kt.loading=Lo("loading");Kt.custom=Lo("custom");Kt.dismiss=e=>{Ag({type:3,toastId:e})};Kt.remove=e=>Ag({type:4,toastId:e});Kt.promise=(e,n,a)=>{let r=Kt.loading(n.loading,{...a,...a==null?void 0:a.loading});return typeof e=="function"&&(e=e()),e.then(o=>{let u=n.success?_m(n.success,o):void 0;return u?Kt.success(u,{id:r,...a,...a==null?void 0:a.success}):Kt.dismiss(r),o}).catch(o=>{let u=n.error?_m(n.error,o):void 0;u?Kt.error(u,{id:r,...a,...a==null?void 0:a.error}):Kt.dismiss(r)}),e};var PT=li`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,VT=li`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,IT=li`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,qT=er("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

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

  &:after,
  &:before {
    content: '';
    animation: ${VT} 0.15s ease-out forwards;
    animation-delay: 150ms;
    position: absolute;
    border-radius: 3px;
    opacity: 0;
    background: ${e=>e.secondary||"#fff"};
    bottom: 9px;
    left: 4px;
    height: 2px;
    width: 12px;
  }

  &:before {
    animation: ${IT} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,QT=li`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,GT=er("div")`
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: ${e=>e.secondary||"#e0e0e0"};
  border-right-color: ${e=>e.primary||"#616161"};
  animation: ${QT} 1s linear infinite;
`,YT=li`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,$T=li`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,XT=er("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${YT} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${$T} 0.2s ease-out forwards;
    opacity: 0;
    animation-delay: 200ms;
    position: absolute;
    border-right: 2px solid;
    border-bottom: 2px solid;
    border-color: ${e=>e.secondary||"#fff"};
    bottom: 6px;
    left: 6px;
    height: 10px;
    width: 6px;
  }
`,KT=er("div")`
  position: absolute;
`,ZT=er("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,JT=li`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,WT=er("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${JT} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,ek=({toast:e})=>{let{icon:n,type:a,iconTheme:r}=e;return n!==void 0?typeof n=="string"?E.createElement(WT,null,n):n:a==="blank"?null:E.createElement(ZT,null,E.createElement(GT,{...r}),a!=="loading"&&E.createElement(KT,null,a==="error"?E.createElement(qT,{...r}):E.createElement(XT,{...r})))},tk=e=>`
0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;}
100% {transform: translate3d(0,0,0) scale(1); opacity:1;}
`,nk=e=>`
0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}
100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;}
`,ak="0%{opacity:0;} 100%{opacity:1;}",ik="0%{opacity:1;} 100%{opacity:0;}",rk=er("div")`
  display: flex;
  align-items: center;
  background: #fff;
  color: #363636;
  line-height: 1.3;
  will-change: transform;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  pointer-events: auto;
  padding: 8px 10px;
  border-radius: 8px;
`,sk=er("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`,lk=(e,n)=>{let a=e.includes("top")?1:-1,[r,o]=LT()?[ak,ik]:[tk(a),nk(a)];return{animation:n?`${li(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${li(o)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}};E.memo(({toast:e,position:n,style:a,children:r})=>{let o=e.height?lk(e.position||n||"top-center",e.visible):{opacity:0},u=E.createElement(ek,{toast:e}),f=E.createElement(sk,{...e.ariaProps},_m(e.message,e));return E.createElement(rk,{className:e.className,style:{...o,...a,...e.style}},typeof r=="function"?r({icon:u,message:f}):E.createElement(E.Fragment,null,u,f))});_T(E.createElement);od`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`;const ok=()=>c.jsxs("div",{className:"container mx-auto py-10 px-6 lg:px-0 animate-pulse",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[c.jsx("div",{className:"w-6 h-6 bg-gray-300 rounded-full"}),c.jsx("div",{className:"h-6 w-24 bg-gray-300 rounded"})]}),c.jsxs("div",{className:"text-center mb-6",children:[c.jsx("div",{className:"h-6 w-48 bg-gray-300 rounded mx-auto mb-2"}),c.jsx("div",{className:"h-4 w-24 bg-gray-200 rounded mx-auto"})]}),c.jsx("div",{className:"flex justify-center",children:c.jsx("div",{className:"w-full lg:w-1/2 h-[300px] bg-gray-200 rounded-2xl mb-4"})}),c.jsx("div",{className:"w-full lg:w-1/2 h-10 bg-gray-300 rounded-full mx-auto mb-6"}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-4 mb-6",children:[c.jsxs("div",{className:"p-4 rounded-lg shadow-md border border-gray-100",children:[c.jsx("div",{className:"h-6 w-32 bg-gray-300 mb-4 rounded"}),c.jsx("div",{className:"space-y-2",children:[...Array(4)].map((e,n)=>c.jsx("div",{className:"h-4 w-3/4 bg-gray-200 rounded"},n))})]}),c.jsxs("div",{className:"lg:col-span-2 p-4 rounded-lg shadow-md border border-gray-100",children:[c.jsx("div",{className:"h-6 w-32 bg-gray-300 mb-4 rounded"}),c.jsx("div",{className:"space-y-2",children:[...Array(4)].map((e,n)=>c.jsx("div",{className:"h-4 w-full bg-gray-200 rounded"},n))})]})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mb-6 w-full",children:[...Array(3)].map((e,n)=>c.jsx("div",{className:"h-24 bg-gray-200 rounded-lg shadow-md border border-gray-100"},n))}),c.jsxs("div",{className:"p-6 rounded-lg shadow-md w-full border border-gray-100",children:[c.jsx("div",{className:"h-6 w-40 bg-gray-300 mb-6 rounded"}),c.jsxs("div",{className:"flex gap-8 mb-6",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-4 h-4 rounded-full bg-gray-300"}),c.jsx("div",{className:"w-24 h-4 bg-gray-200 rounded"})]}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("div",{className:"w-4 h-4 rounded-full bg-gray-300"}),c.jsx("div",{className:"w-32 h-4 bg-gray-200 rounded"})]})]}),c.jsxs("div",{className:"mb-6",children:[c.jsx("div",{className:"w-24 h-4 bg-gray-300 mb-2 rounded"}),c.jsx("div",{className:"h-28 w-full bg-gray-100 rounded-lg"})]}),c.jsx("div",{className:"w-full h-10 bg-gray-300 rounded-full"})]})]}),uk=()=>{const{id:e}=Hc(),n=dn(),[a,r]=E.useState(null),[o,u]=E.useState(!0),[f,m]=E.useState(""),[p,g]=E.useState(""),[y,v]=E.useState(!1),[b,x]=E.useState(!1);E.useEffect(()=>{e&&((async()=>{try{u(!0);const Z=await Ki.getSubmissionDetail(e);r(Z.data.data),console.log("Submission Data:",Z.data.data),Z.data.data.diagnosis&&m(Z.data.data.diagnosis),Z.data.data.doctorNote&&g(Z.data.data.doctorNote)}catch(Z){console.error("Error fetching submission detail:",Z),Kt.error("Gagal memuat data submission")}finally{u(!1)}})(),v(!1))},[e]);const S=()=>{v(!0),console.log("Image failed to load, using default image")},j=async()=>{if(!f){Kt.error("Silakan pilih diagnosis terlebih dahulu");return}if((await Tn.fire({title:"Konfirmasi Verifikasi",html:"Apakah Anda sudah memverifikasi data dengan benar?<br><br><b>Hasil verifikasi tidak dapat diubah lagi</b><br>Pastikan Anda memeriksa dengan benar keluhan pasien.",icon:"warning",showCancelButton:!0,confirmButtonColor:"#12476B",cancelButtonColor:"#d33",confirmButtonText:"Ya, verifikasi",cancelButtonText:"Batalkan"})).isConfirmed)try{x(!0);const Z={diagnosis:f,doctorNote:p};await Ki.verifySubmission(e,Z),Kt.success("Verifikasi berhasil"),n("/dokter/riwayat-verifikasi")}catch(Z){console.error("Error verifying submission:",Z),Kt.error("Gagal memverifikasi submission")}finally{x(!1)}},C=()=>{if(!(a!=null&&a.imageUrl)||y){Kt.error("Gambar tidak tersedia untuk diunduh");return}const _=document.createElement("a");_.href=a.imageUrl,_.download=`skin-condition-${e}.jpg`,document.body.appendChild(_),_.click(),document.body.removeChild(_)};if(o)return c.jsxs("div",{className:"container mx-auto py-10 px-6 lg:px-0 text-center",children:[c.jsx(ok,{}),";"]});const k=(a==null?void 0:a.status)==="verified",z=y?Nw:a==null?void 0:a.imageUrl;return c.jsxs("div",{className:"container mx-auto py-10 px-6 lg:px-0",children:[c.jsxs("button",{onClick:()=>n("/dokter/riwayat-verifikasi"),className:"flex justify-between gap-x-2 items-center px-4 py-2 text-white font-bold rounded-xl bg-sky-800 cursor-pointer",children:[c.jsx(Vc,{className:"text-lg text-white"}),"kembali"]}),c.jsxs("div",{className:"text-center flex flex-col items-center",children:[c.jsxs("div",{className:"my-5 leading-10",children:[c.jsx("h1",{className:"text-2xl font-semibold",children:"Prediksi Penyakit"}),c.jsxs("p",{children:["ID: ",e||"-"]})]}),c.jsx("img",{className:"rounded-3xl w-full lg:w-1/2 object-cover max-h-[400px]",src:z||Nw,alt:"Skin condition",onError:S}),c.jsx("button",{className:`w-full lg:w-1/2 px-4 py-2 my-2 text-white font-bold rounded-full ${y?"bg-gray-500 cursor-not-allowed":"bg-sky-800 hover:bg-sky-900 cursor-pointer"}`,onClick:C,disabled:y,children:y?"Gambar tidak tersedia":"Unduh Gambar"}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 mt-4 gap-4 w-full",children:[c.jsxs("div",{className:"p-4 text-left rounded-lg shadow-md border border-gray-100",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Detail Pasien"}),c.jsxs("span",{className:"flex flex-col gap-y-2",children:[c.jsxs("p",{children:["Nama: ",(a==null?void 0:a.patientName)||"-"]}),c.jsxs("p",{children:["ID Pasien: ",(a==null?void 0:a.patientId)||"-"]}),c.jsxs("p",{children:["Status: ",(a==null?void 0:a.status)||"-"]}),c.jsxs("p",{children:["Tanggal Submit: ",(a==null?void 0:a.submittedAt)||"-"]}),(a==null?void 0:a.verifiedAt)&&c.jsxs("p",{children:["Tanggal Verifikasi: ",a.verifiedAt]})]})]}),c.jsxs("div",{className:"lg:col-span-2 p-4 text-left rounded-lg shadow-md border border-gray-100",children:[c.jsx("h1",{className:"font-bold text-2xl text-black mb-2",children:"Keluhan"}),c.jsx("p",{children:(a==null?void 0:a.complaint)||"Tidak ada keluhan"})]})]}),(a==null?void 0:a.diagnosisAi)&&c.jsx(D2,{diagnosis:a.diagnosisAi,percentage:a.percentage,status:a.status}),c.jsxs("div",{className:"p-6 mt-4 rounded-lg shadow-md w-full text-left border border-gray-100",children:[c.jsx("h1",{className:"text-xl font-semibold mb-4",children:k?"Hasil Verifikasi Dokter":"Verifikasi Hasil Deteksi"}),c.jsxs("div",{className:"mb-4",children:[c.jsx("p",{className:"font-bold mb-2",children:k?"Diagnosis Dokter:":"*Verifikasi Diagnosis"}),c.jsxs("div",{className:"flex gap-8",children:[c.jsxs("label",{className:`flex items-center gap-2 ${k?"cursor-default":"cursor-pointer"}`,children:[c.jsx("input",{type:"radio",className:"w-4 h-4",name:"diagnosis",value:"Melanoma",checked:f==="Melanoma",onChange:_=>!k&&m(_.target.value),disabled:k}),c.jsx("span",{children:"Melanoma"})]}),c.jsxs("label",{className:`flex items-center gap-2 ${k?"cursor-default":"cursor-pointer"}`,children:[c.jsx("input",{type:"radio",className:"w-4 h-4",name:"diagnosis",value:"Bukan Melanoma",checked:f==="Bukan Melanoma",onChange:_=>!k&&m(_.target.value),disabled:k}),c.jsx("span",{children:"Bukan Melanoma"})]})]})]}),c.jsxs("div",{className:"mb-6",children:[c.jsx("label",{htmlFor:"catatan",className:"block font-bold mb-2",children:k?"Catatan Dokter:":"Catatan:"}),k?c.jsx("div",{className:"border border-gray-200 rounded-lg w-full p-4 shadow-md min-h-[120px] bg-gray-50",children:p||"Tidak ada catatan"}):c.jsx("textarea",{id:"catatan",name:"catatan",placeholder:"Masukkan catatan untuk pasien disini",className:"border border-gray-200 rounded-lg w-full p-4 shadow-md min-h-[120px]",value:p,onChange:_=>g(_.target.value)})]}),!k&&c.jsx("button",{className:`w-full text-white font-semibold py-2 rounded-full ${b?"bg-gray-500 cursor-not-allowed":"bg-[#12476B] hover:bg-[#0f3c5b] cursor-pointer"}`,onClick:j,disabled:b,children:b?c.jsxs("div",{className:"flex items-center justify-center",children:[c.jsxs("svg",{className:"animate-spin -ml-1 mr-3 h-5 w-5 text-white",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",children:[c.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),c.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"})]}),"Memproses..."]}):"Verifikasi"})]})]})]})},z2=({item:e,handleDelete:n})=>{const a=dn(),o=parseFloat(e.persentase)>=50?"text-red-600":"text-green-600",u=e.status==="rejected"?"text-red-600":e.status==="pending"?"text-yellow-600":"text-green-600",f=e.diagnosis===null?"Menunggu":e.diagnosis!=="Melanoma"?"Bukan Melanoma":"Melanoma";return c.jsx("div",{className:"block lg:hidden w-full mx-auto bg-white rounded-3xl shadow-lg p-6 mb-5",children:c.jsxs("div",{className:"space-y-4",children:[c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Tanggal Pengajuan"}),c.jsx("span",{className:"text-right",children:e.date})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Diagnosis AI"}),c.jsx("span",{className:`font-semibold text-right ${o}`,children:e.persentase})]}),c.jsxs("div",{className:"flex justify-between gap-x-4 items-center",children:[c.jsx("span",{className:"font-bold",children:"Gambar"}),c.jsx("img",{src:mx,alt:"Deteksi",className:"w-24 h-24 rounded-lg shadow-md object-cover"})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Keluhan"}),c.jsx("p",{className:"text-right text-sm max-w-[60%] truncate",children:e.keluhan})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Status"}),c.jsx("span",{className:`font-semibold capitalize ${u}`,children:e.status})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Tanggal Diverifikasi"}),c.jsx("span",{children:e.tglVerif||"-"})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Verified By"}),c.jsx("span",{children:e.verifiedBy||"-"})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Melanoma"}),c.jsx("span",{children:f||"-"})]}),c.jsxs("div",{className:"flex justify-between gap-x-4",children:[c.jsx("span",{className:"font-bold",children:"Catatan Dokter"}),c.jsx("p",{className:"text-right text-sm max-w-[60%] truncate",children:e.doctorNote||"-"})]}),c.jsxs("div",{className:"flex justify-center gap-4 mt-4",children:[c.jsx("button",{onClick:()=>a(`/pengajuan/info/${e.id}`),className:"rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Zc,alt:"Info"})}),c.jsx("button",{onClick:n,className:"rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Gs,alt:"Hapus"})})]})]})})};z2.propTypes={item:Be.object.isRequired,handleDelete:Be.func.isRequired};const ck=()=>{var ce;const{user:e}=Wi(),n=e==null?void 0:e.token,a=(ce=e==null?void 0:e.data)==null?void 0:ce.id,[r,o]=E.useState(!1),[u,f]=E.useState(1),[m,p]=E.useState(""),[g,y]=E.useState(5),[v,b]=E.useState(null),[x,S]=E.useState(!1),j=dn(),{data:C,isLoading:k,refetch:z}=el({queryKey:["submissions",a],queryFn:()=>Mn.getSubmissions({userId:a}),enabled:!!a,staleTime:5*60*1e3,cacheTime:30*60*1e3}),_=E.useMemo(()=>{var P;return((P=C==null?void 0:C.data)==null?void 0:P.data)||[]},[C]),Z=(_==null?void 0:_.filter(P=>{var H;return(H=P.complaint)==null?void 0:H.toLowerCase().includes(m.toLowerCase())}))||[],R=Z.length,W=Math.ceil(R/g),ue=u*g,se=ue-g,Q=Z.slice(se,ue),ne=P=>{b(P),o(!0)},fe=Ec({mutationFn:P=>Mn.deleteSubmission(P,n),onSuccess:()=>{nt.success("Data berhasil dihapus"),z(),o(!1),b(null)},onError:()=>{nt.error("Gagal menghapus data")}}),ge=()=>{u<W&&f(P=>P+1)},De=()=>{u>1&&f(P=>P-1)};return c.jsxs(c.Fragment,{children:[r&&c.jsx(tg,{onClose:()=>o(!1),onDelete:()=>fe.mutate(v)}),c.jsxs("div",{className:"pt-32 w-full px-6 lg:px-3",children:[c.jsx("h1",{className:"text-3xl font-bold text-black",children:"Riwayat Pengajuan"}),c.jsxs("div",{className:"flex flex-col md:flex-row md:justify-between gap-3 mt-6 mb-4",children:[c.jsxs("div",{children:[c.jsx("label",{className:"mr-2 font-medium",children:"Tampilkan:"}),c.jsxs("select",{className:"border rounded px-3 py-1",value:g,onChange:P=>{y(Number(P.target.value)),f(1)},children:[c.jsx("option",{value:5,children:"5 data"}),c.jsx("option",{value:10,children:"10 data"}),c.jsx("option",{value:20,children:"20 data"})]})]}),c.jsx("div",{children:c.jsx("input",{type:"text",placeholder:"Cari keluhan...",className:"border rounded px-3 py-1 w-full md:w-64",value:m,onChange:P=>{p(P.target.value),f(1)}})})]}),c.jsx("button",{className:"px-4 py-2 mb-4 bg-sky-700 hover:bg-sky-600 font-semibold text-white rounded cursor-pointer",onClick:async()=>{try{S(!0),await z()}finally{S(!1)}},children:x?"Sedang memuat...":"Refresh Data 🔄"}),c.jsx("div",{className:"w-full overflow-x-auto hidden lg:block",children:c.jsxs("table",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white/60 backdrop-blur-md",children:[c.jsx("thead",{className:"border-b border-gray-200 text-left",children:c.jsxs("tr",{className:"text-black font-semibold",children:[c.jsx("th",{className:"py-4 px-6",children:"Tanggal"}),c.jsx("th",{className:"py-4 px-6",children:"Diagnosis AI"}),c.jsx("th",{className:"py-4 px-6",children:"Gambar"}),c.jsx("th",{className:"py-4 px-6",children:"Keluhan"}),c.jsx("th",{className:"py-4 px-6",children:"Status"}),c.jsx("th",{className:"py-4 px-6",children:"Tgl Verifikasi"}),c.jsx("th",{className:"py-4 px-6",children:"Verified By"}),c.jsx("th",{className:"py-4 px-6",children:"Melanoma"}),c.jsx("th",{className:"py-4 px-6",children:"Catatan Dokter"}),c.jsx("th",{className:"py-4 px-6",children:"Aksi"})]})}),c.jsx("tbody",{className:"text-left text-gray-800",children:k?c.jsx("tr",{children:c.jsx("td",{colSpan:10,className:"py-6",children:c.jsx(px,{})})}):Q.length===0?c.jsx("tr",{children:c.jsx("td",{colSpan:10,className:"text-center font-bold py-6",children:"Anda belum memiliki riwayat pengajuan"})}):Q.map((P,H)=>{const $=parseFloat(P.diagnosisAi)>=50?"text-red-600":"text-green-600",oe=P.status==="rejected"?"text-red-600":P.status==="pending"?"text-yellow-600":"text-green-600";return c.jsxs("tr",{className:"*:align-middle *:py-3 *:px-6",children:[c.jsx("td",{children:P.submittedAt}),c.jsx("td",{className:`font-semibold ${$}`,children:P.diagnosisAi}),c.jsx("td",{children:c.jsx("div",{className:"w-20 h-16 rounded-lg flex items-center justify-start overflow-hidden",children:c.jsx("img",{className:"max-w-full max-h-full object-cover",src:P.imageUrl,alt:"Deteksi"})})}),c.jsx("td",{className:"px-6 text-ellipsis",children:P.complaint}),c.jsx("td",{className:`px-6 font-semibold capitalize ${oe}`,children:P.status}),c.jsx("td",{children:P.verifiedAt}),c.jsx("td",{children:P.verifiedBy}),c.jsx("td",{children:P.diagnosis}),c.jsx("td",{children:P.doctorNote}),c.jsx("td",{children:c.jsxs("div",{className:"flex gap-x-3",children:[c.jsx("button",{type:"button",onClick:()=>j(`/pengajuan/info/${P.id}`),className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Zc,alt:"Info"})}),c.jsx("button",{className:"w-8 h-8 rounded-full flex items-center justify-center shadow-md cursor-pointer",children:c.jsx("img",{src:Gs,alt:"Hapus",onClick:()=>ne(P.id)})})]})})]},H)})})]})}),c.jsx("div",{className:"lg:hidden mt-4 space-y-4",children:Q.map((P,H)=>{const te={date:P.submittedAt,persentase:P.diagnosisAi,keluhan:P.complaint,status:P.status,tglVerif:P.verifiedAt,verifiedBy:P.verifiedBy,diagnosis:P.diagnosis,doctorNote:P.doctorNote};return c.jsx(z2,{item:te,handleDelete:()=>ne(P.id)},H)})}),c.jsxs("div",{className:"flex flex-col lg:flex-row lg:items-center justify-between mt-4 mb-10 px-4 text-sm text-gray-600",children:[c.jsxs("span",{children:["Halaman ",u," dari ",W,"  |  Total"," ",R," data"]}),c.jsxs("div",{className:"mt-2 lg:mt-0 flex gap-3",children:[c.jsx("button",{onClick:De,disabled:u===1,className:"px-4 py-2 rounded-md border cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",children:"Sebelumnya"}),c.jsx("button",{onClick:ge,disabled:u===W,className:"px-4 py-2 rounded-md border cursor-pointer disabled:cursor-not-allowed disabled:opacity-50",children:"Selanjutnya"})]})]})]})]})},Bm=({children:e})=>{const n=localStorage.getItem("token"),{data:a}=JSON.parse(localStorage.getItem("user")),r=Da();return!n||!a?c.jsx(jh,{to:"/",replace:!0}):a.role==="patient"&&!r.pathname.startsWith("/deteksi")&&!r.pathname.startsWith("/pengajuan")?c.jsx(jh,{to:"/",replace:!0}):a.role==="doctor"&&!r.pathname.startsWith("/dokter")?c.jsx(jh,{to:"/dokter",replace:!0}):e};Bm.propTypes={children:Be.node};const L2=({data:e})=>{const n=dn(),[a,r]=E.useState(""),[o,u]=E.useState([]),[f,m]=E.useState(10),p=E.useMemo(()=>[{header:"Tanggal Pengajuan",accessorKey:"submittedAt"},{header:"Pasien",accessorKey:"patientName"},{header:"Diagnosis AI",accessorKey:"diagnosisAi",cell:({getValue:v})=>c.jsx("span",{className:"text-green-600 font-semibold block",children:v()})},{header:"Verifikasi Dokter",accessorKey:"diagnosis"},{header:"Catatan",accessorKey:"doctorNote",cell:({getValue:v})=>c.jsx("p",{className:"truncate max-w-[250px]",children:v()})},{header:"Detail",cell:({row:v})=>c.jsxs("button",{onClick:()=>n(`/dokter/riwayat-verifikasi/informasi-penyakit/${v.original.id}`),className:"w-full bg-[#12476B] text-white px-4 py-2 rounded-xl flex items-center justify-center gap-2",children:[c.jsx(hE,{size:18}),"Detail"]})}],[n]),g=cx({data:e,columns:p,state:{globalFilter:a,sorting:o},onGlobalFilterChange:r,onSortingChange:u,getCoreRowModel:sx(),getFilteredRowModel:lx(),getSortedRowModel:ux(),getPaginationRowModel:ox(),initialState:{pagination:{pageSize:f}}}),y=v=>{const b=Number(v.target.value);m(b),g.setPageSize(b)};return c.jsxs("div",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white p-6 overflow-auto border border-gray-100",children:[c.jsxs("div",{className:"mb-4 flex flex-col md:flex-row justify-between items-center gap-4",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("label",{htmlFor:"pageSize",className:"text-sm text-gray-700 whitespace-nowrap",children:"Tampilkan"}),c.jsx("select",{id:"pageSize",value:f,onChange:y,className:"px-3 py-2 border border-gray-200 rounded-lg shadow-sm text-sm",children:[10,25,50,100].map(v=>c.jsxs("option",{value:v,children:[v," data"]},v))})]}),c.jsxs("div",{className:"relative w-full max-w-sm",children:[c.jsx(Ic,{className:"absolute left-3 top-1/2 -translate-y-1/2 text-gray-400"}),c.jsx("input",{type:"text",value:a??"",onChange:v=>r(v.target.value),placeholder:"Cari data...",className:"pl-10 pr-4 py-2 border border-gray-200 rounded-lg w-full shadow-sm"})]})]}),c.jsxs("table",{className:"w-full text-left",children:[c.jsx("thead",{className:"border-b border-gray-200 text-black font-semibold",children:g.getHeaderGroups().map(v=>c.jsx("tr",{children:v.headers.map(b=>c.jsx("th",{className:"py-4 px-6 text-center cursor-pointer select-none",onClick:b.column.getToggleSortingHandler(),children:c.jsxs("div",{className:"flex items-center justify-center gap-1",children:[Sc(b.column.columnDef.header,b.getContext()),{asc:c.jsx(Yb,{size:14}),desc:c.jsx(Qb,{size:14})}[b.column.getIsSorted()]??null]})},b.id))},v.id))}),c.jsx("tbody",{className:"text-gray-800",children:g.getRowModel().rows.map((v,b)=>c.jsx("tr",{className:b%2===0?"bg-white":"bg-gray-50",children:v.getVisibleCells().map(x=>c.jsx("td",{className:"py-4 px-6 text-center",children:Sc(x.column.columnDef.cell,x.getContext())},x.id))},v.id))})]}),c.jsxs("div",{className:"mt-6 flex flex-col md:flex-row items-center justify-between gap-4",children:[c.jsxs("div",{className:"text-sm text-gray-600",children:["Halaman ",g.getState().pagination.pageIndex+1," dari"," ",g.getPageCount(),"   |   Total:"," ",g.getFilteredRowModel().rows.length," data"]}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("button",{onClick:()=>g.previousPage(),disabled:!g.getCanPreviousPage(),className:"px-4 py-2 bg-gray-200 rounded-lg disabled:opacity-50 flex items-center gap-1",children:[c.jsx(Xb,{}),"Sebelumnya"]}),c.jsxs("button",{onClick:()=>g.nextPage(),disabled:!g.getCanNextPage(),className:"px-4 py-2 bg-gray-200 rounded-lg disabled:opacity-50 flex items-center gap-1",children:["Selanjutnya",c.jsx(Kb,{})]})]})]})]})};L2.propTypes={data:Be.array.isRequired};const dk=()=>c.jsxs("div",{className:"w-full mt-8 mb-5 rounded-xl shadow-lg bg-white p-6 overflow-auto border border-gray-100",children:[c.jsxs("div",{className:"grid grid-cols-4 font-semibold text-black py-3 border-b border-gray-300",children:[c.jsx("div",{className:"h-6 w-32 bg-gray-200 rounded"}),c.jsx("div",{className:"h-6 w-40 bg-gray-200 rounded"}),c.jsx("div",{className:"h-6 w-28 bg-gray-200 rounded"}),c.jsx("div",{className:"h-6 w-28 bg-gray-200 rounded"})]}),[...Array(5)].map((e,n)=>c.jsxs("div",{className:"grid grid-cols-4 gap-4 py-4 border-b border-gray-100 animate-pulse",children:[c.jsx("div",{className:"h-6 bg-gray-200 rounded w-32"}),c.jsx("div",{className:"h-6 bg-gray-200 rounded w-40"}),c.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"}),c.jsx("div",{className:"h-6 bg-gray-200 rounded w-24"})]},n)),c.jsxs("div",{className:"flex justify-between items-center mt-6",children:[c.jsx("div",{className:"h-6 w-40 bg-gray-200 rounded animate-pulse"}),c.jsxs("div",{className:"flex gap-4",children:[c.jsx("div",{className:"h-10 w-32 bg-gray-200 rounded animate-pulse"}),c.jsx("div",{className:"h-10 w-32 bg-gray-200 rounded animate-pulse"})]})]})]}),fk=()=>{const[e,n]=E.useState([]),[a,r]=E.useState(!0),[o,u]=E.useState(null);return E.useEffect(()=>{(async()=>{try{r(!0);const m=await Ki.getSubmissionsHistory();n(m.data.data||[]),r(!1)}catch(m){console.error("Error fetching verification history:",m),u("Failed to fetch verification history"),r(!1)}})()},[]),a?c.jsx("div",{className:"py-10 px-6 flex justify-center",children:c.jsxs("div",{className:"w-full",children:[c.jsx("h1",{className:"text-3xl font-bold text-black text-center mb-6",children:"Riwayat Verifikasi"}),c.jsx(dk,{})]})}):o?c.jsxs("div",{className:"py-10 px-6",children:[c.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Riwayat Verifikasi"}),c.jsx("div",{className:"py-10 px-6 flex justify-center",children:c.jsx("p",{className:"text-lg text-red-500",children:o})})]}):c.jsxs("div",{className:"py-10 px-6",children:[c.jsx("h1",{className:"text-3xl font-bold text-black text-center",children:"Riwayat Verifikasi"}),c.jsx("div",{className:"px-6 flex justify-center",children:e.length===0?c.jsxs("div",{className:"w-full flex flex-col items-center py-10",children:[c.jsx("img",{src:"/empty-state.svg",alt:"Empty",className:"w-40 h-40 mb-4 opacity-70",style:{objectFit:"contain"},onError:f=>f.target.style.display="none"}),c.jsx("p",{className:"text-lg text-gray-500",children:"Belum ada riwayat verifikasi."})]}):c.jsx(L2,{data:e})})]})},hk="/assets/errorPage-c4bJcYnY.jpeg",Zh=()=>{const e=tb(),n=dn();console.error(e);const a=()=>{n("/",{replace:!0})};return c.jsxs("div",{className:"h-screen flex flex-col items-center justify-center text-center p-4",children:[c.jsx("img",{src:hk,alt:"error",className:"w-[30rem] mb-2"}),c.jsx("p",{className:"text-lg font-bold",children:"Something went wrong."}),c.jsx("pre",{className:"bg-gray-100 p-4 mt-4 rounded text-sm text-red-700 max-w-md overflow-x-auto",children:(e==null?void 0:e.statusText)||(e==null?void 0:e.message)||"Unexpected error"}),c.jsx("button",{onClick:a,className:"mt-6 bg-blue-600 text-white px-6 py-2 rounded-full hover:bg-blue-700 transition",children:"Kembali ke halaman utama"})]})},mk=()=>{var k;const{id:e}=Hc(),{user:n}=Wi(),a=dn(),[r,o]=E.useState(""),[u,f]=E.useState(null),{data:m,isLoading:p,isError:g}=el({queryKey:["submission",e],queryFn:()=>Mn.getDetectionsById(e),enabled:!!e}),y=((k=m==null?void 0:m.data)==null?void 0:k.data)||[];if(p)return c.jsx("div",{className:"mt-10",children:c.jsx(sd,{})});if(g||!y)return c.jsx("div",{className:"w-full h-96 flex items-center justify-center font-semibold",children:"Gagal memuat data..."});const v=y,b=async z=>{if(!r||!z||!(v!=null&&v.id)){Tn.fire("Error","Keluhan dan dokter wajib diisi","error");return}const _={doctorId:z.id,complaint:r};try{const Z=await Mn.updateDetection(v.id,_,n.token);console.log("data submit:",Z),Tn.fire("Berhasil","Pengajuan berhasil dikirim ke dokter","success"),o(""),f(null)}catch(Z){console.error(Z),Tn.fire("Gagal","Terjadi kesalahan saat mengirim data","error")}},x=async z=>{(await Tn.fire({title:`Pilih Dokter ${z.name}?`,text:"Apakah Anda yakin ingin mengajukan verifikasi ke dokter ini?",icon:"question",showCancelButton:!0,confirmButtonText:"Ya, pilih dokter ini",cancelButtonText:"Batal"})).isConfirmed&&(f(z),b(z))},j=parseFloat(v.diagnosisAi)>=50?"text-red-600":"text-green-600",C=v.status==="rejected"?"text-red-600":v.status==="pending"?"text-yellow-600":"text-green-600";return c.jsx("div",{className:"py-20 lg:py-32 w-full px-4 lg:px-32",children:c.jsxs("div",{className:"w-full rounded-lg shadow-xl bg-white p-6 lg:p-10",children:[c.jsxs("button",{onClick:()=>a("/deteksi"),className:"flex justify-between gap-x-2 items-center px-4 py-2 text-white font-bold rounded-xl bg-sky-800 cursor-pointer",children:[c.jsx(Vc,{className:"text-lg text-white"}),"kembali"]}),c.jsxs("div",{className:"text-center flex flex-col items-center",children:[c.jsxs("div",{className:"my-5 leading-10",children:[c.jsx("h1",{className:"text-2xl font-semibold",children:"Detail Hasil Deteksi"}),c.jsx("p",{className:"text-sm text-ellipsis",children:v.isSubmitted==="Sudah"?"Hasil deteksi sudah diverifikasi dokter":"Hasil deteksi belum diverifikasi dokter"})]}),c.jsx("img",{className:"rounded-3xl w-full lg:w-1/2 object-cover",src:v.imageUrl,alt:"Hasil Deteksi Kulit"}),c.jsxs("p",{className:"w-full lg:w-1/2 my-5 text-left font-bold text-md",children:["ID Deteksi: ",v.id]}),c.jsx("a",{href:v.imageUrl,download:!0,className:"w-full lg:w-1/2 px-4 py-2 text-white font-bold rounded-full bg-sky-800 hover:bg-sky-900 cursor-pointer text-center",children:"Unduh Gambar"}),c.jsxs("div",{className:"w-full flex flex-wrap md:flex-nowrap justify-center gap-5 py-4",children:[c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:zo,alt:"Diagnosis",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Diagnosis"}),c.jsx("p",{children:v.diagnosis||"Tidak diketahui"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:Bo,alt:"Keakuratan",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Keakuratan"}),c.jsx("p",{className:j,children:v.diagnosisAi||"Tidak tersedia"})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:M2,alt:"Pengajuan Verifikasi",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Pengajuan Verifikasi"}),c.jsx("p",{className:`font-semibold ${v.isSubmitted==="Sudah"?"text-green-500":"text-red-500"}`,children:v.isSubmitted})]}),c.jsxs("div",{className:"w-full shadow-md rounded-lg bg-white flex flex-col items-center gap-y-2 px-4 py-4",children:[c.jsx("img",{src:ld,alt:"Status",className:"w-16 h-16"}),c.jsx("h4",{className:"text-black font-semibold",children:"Status"}),c.jsx("p",{className:`font-semibold ${C}`,children:v.status})]})]}),c.jsx("p",{className:"text-sm font-normal text-gray-400",children:"*Hasil deteksi belum dipastikan benar karena web hanya memberikan indikasi awal, silahkan ajukan hasil verifikasi ke dokter."}),c.jsxs("div",{className:"w-full mt-6",children:[c.jsx("h1",{className:"text-2xl font-bold text-center text-black",children:"Pengajuan Verifikasi"}),c.jsx("p",{className:"text-gray-500 text-center mt-2",children:"Ajukan keluhan dan pilih dokter Anda disini"}),c.jsxs("div",{className:"text-left w-full",children:[c.jsx("p",{children:"Keluhan:"}),c.jsx("textarea",{value:r,onChange:z=>o(z.target.value),className:"w-full h-32 border border-gray-400 rounded-lg p-2 mt-2",placeholder:"Masukkan keluhan Anda disini",required:!0}),c.jsx(Sg,{handleDoctorSelect:x}),u&&c.jsxs("div",{className:"mt-4 text-sm text-green-700",children:["Dokter terpilih: ",c.jsxs("strong",{children:["dr. ",u.name]})]})]})]})]})]})})},gk=PC([{element:c.jsx(tE,{}),errorElement:c.jsx(Zh,{}),children:[{element:c.jsx(dc,{type:"default"}),errorElement:c.jsx(Zh,{}),children:[{path:"/",element:c.jsx(ST,{})},{path:"faq",element:c.jsx(eR,{})}]},{element:c.jsx(Bm,{children:c.jsx(dc,{type:"default"})}),errorElement:c.jsx(Zh,{}),children:[{path:"deteksi",element:c.jsx(W3,{})},{path:"pengajuan",element:c.jsx(ck,{})},{path:"deteksi/:id",element:c.jsx(AT,{})},{path:"pengajuan/info/:id",element:c.jsx(RT,{})},{path:"pengajuan/ulang/:id",element:c.jsx(mk,{})}]},{path:"dokter",element:c.jsx(Bm,{children:c.jsx(dc,{type:"doctor"})}),children:[{path:"",element:c.jsx(r3,{})},{path:"daftar-pasien",element:c.jsx(n3,{})},{path:"daftar-pengajuan",element:c.jsx(i3,{})},{path:"riwayat-verifikasi",element:c.jsx(fk,{})},{path:"riwayat-verifikasi/informasi-penyakit/:id",element:c.jsx(uk,{})}]}]}]),pk=new A3;ZS.createRoot(document.getElementById("root")).render(c.jsx($i.StrictMode,{children:c.jsx(N3,{client:pk,children:c.jsx(Ub,{children:c.jsx(eE,{router:gk})})})}));
