Files
StudyDiary-20251025/.obsidian/plugins/daily-note-calendar/main.js
T

153 lines
283 KiB
JavaScript

/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var dS=Object.create;var no=Object.defineProperty;var fS=Object.getOwnPropertyDescriptor;var cS=Object.getOwnPropertyNames;var mS=Object.getPrototypeOf,pS=Object.prototype.hasOwnProperty;var hS=(e,t,a)=>t in e?no(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var St=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),gS=(e,t)=>{for(var a in t)no(e,a,{get:t[a],enumerable:!0})},nc=(e,t,a,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of cS(t))!pS.call(e,o)&&o!==a&&no(e,o,{get:()=>t[o],enumerable:!(l=fS(t,o))||l.enumerable});return e};var q=(e,t,a)=>(a=e!=null?dS(mS(e)):{},nc(t||!e||!e.__esModule?no(a,"default",{value:e,enumerable:!0}):a,e)),yS=e=>nc(no({},"__esModule",{value:!0}),e);var x=(e,t,a)=>hS(e,typeof t!="symbol"?t+"":t,a);var sm=St(Q=>{"use strict";function Ds(e,t){var a=e.length;e.push(t);e:for(;0<a;){var l=a-1>>>1,o=e[l];if(0<Ci(o,t))e[l]=t,e[a]=o,a=l;else break e}}function ct(e){return e.length===0?null:e[0]}function wi(e){if(e.length===0)return null;var t=e[0],a=e.pop();if(a!==t){e[0]=a;e:for(var l=0,o=e.length,r=o>>>1;l<r;){var u=2*(l+1)-1,i=e[u],n=u+1,s=e[n];if(0>Ci(i,a))n<o&&0>Ci(s,i)?(e[l]=s,e[n]=a,l=n):(e[l]=i,e[u]=a,l=u);else if(n<o&&0>Ci(s,a))e[l]=s,e[n]=a,l=n;else break e}}return t}function Ci(e,t){var a=e.sortIndex-t.sortIndex;return a!==0?a:e.id-t.id}Q.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(em=performance,Q.unstable_now=function(){return em.now()}):(Is=Date,tm=Is.now(),Q.unstable_now=function(){return Is.now()-tm});var em,Is,tm,xt=[],ea=[],Lx=1,je=null,De=3,Ii=!1,Aa=!1,po=!1,om=typeof setTimeout=="function"?setTimeout:null,rm=typeof clearTimeout=="function"?clearTimeout:null,am=typeof setImmediate!="undefined"?setImmediate:null;function vi(e){for(var t=ct(ea);t!==null;){if(t.callback===null)wi(ea);else if(t.startTime<=e)wi(ea),t.sortIndex=t.expirationTime,Ds(xt,t);else break;t=ct(ea)}}function Ts(e){if(po=!1,vi(e),!Aa)if(ct(xt)!==null)Aa=!0,Ps();else{var t=ct(ea);t!==null&&Ns(Ts,t.startTime-e)}}var bi=!1,ho=-1,um=5,im=-1;function nm(){return!(Q.unstable_now()-im<um)}function bs(){if(bi){var e=Q.unstable_now();im=e;var t=!0;try{e:{Aa=!1,po&&(po=!1,rm(ho),ho=-1),Ii=!0;var a=De;try{t:{for(vi(e),je=ct(xt);je!==null&&!(je.expirationTime>e&&nm());){var l=je.callback;if(typeof l=="function"){je.callback=null,De=je.priorityLevel;var o=l(je.expirationTime<=e);if(e=Q.unstable_now(),typeof o=="function"){je.callback=o,vi(e),t=!0;break t}je===ct(xt)&&wi(xt),vi(e)}else wi(xt);je=ct(xt)}if(je!==null)t=!0;else{var r=ct(ea);r!==null&&Ns(Ts,r.startTime-e),t=!1}}break e}finally{je=null,De=a,Ii=!1}t=void 0}}finally{t?mo():bi=!1}}}var mo;typeof am=="function"?mo=function(){am(bs)}:typeof MessageChannel!="undefined"?(Ms=new MessageChannel,lm=Ms.port2,Ms.port1.onmessage=bs,mo=function(){lm.postMessage(null)}):mo=function(){om(bs,0)};var Ms,lm;function Ps(){bi||(bi=!0,mo())}function Ns(e,t){ho=om(function(){e(Q.unstable_now())},t)}Q.unstable_IdlePriority=5;Q.unstable_ImmediatePriority=1;Q.unstable_LowPriority=4;Q.unstable_NormalPriority=3;Q.unstable_Profiling=null;Q.unstable_UserBlockingPriority=2;Q.unstable_cancelCallback=function(e){e.callback=null};Q.unstable_continueExecution=function(){Aa||Ii||(Aa=!0,Ps())};Q.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):um=0<e?Math.floor(1e3/e):5};Q.unstable_getCurrentPriorityLevel=function(){return De};Q.unstable_getFirstCallbackNode=function(){return ct(xt)};Q.unstable_next=function(e){switch(De){case 1:case 2:case 3:var t=3;break;default:t=De}var a=De;De=t;try{return e()}finally{De=a}};Q.unstable_pauseExecution=function(){};Q.unstable_requestPaint=function(){};Q.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var a=De;De=e;try{return t()}finally{De=a}};Q.unstable_scheduleCallback=function(e,t,a){var l=Q.unstable_now();switch(typeof a=="object"&&a!==null?(a=a.delay,a=typeof a=="number"&&0<a?l+a:l):a=l,e){case 1:var o=-1;break;case 2:o=250;break;case 5:o=1073741823;break;case 4:o=1e4;break;default:o=5e3}return o=a+o,e={id:Lx++,callback:t,priorityLevel:e,startTime:a,expirationTime:o,sortIndex:-1},a>l?(e.sortIndex=a,Ds(ea,e),ct(xt)===null&&e===ct(ea)&&(po?(rm(ho),ho=-1):po=!0,Ns(Ts,a-l))):(e.sortIndex=o,Ds(xt,e),Aa||Ii||(Aa=!0,Ps())),e};Q.unstable_shouldYield=nm;Q.unstable_wrapCallback=function(e){var t=De;return function(){var a=De;De=t;try{return e.apply(this,arguments)}finally{De=a}}}});var fm=St((YN,dm)=>{"use strict";dm.exports=sm()});var wm=St(k=>{"use strict";var ks=Symbol.for("react.transitional.element"),Cx=Symbol.for("react.portal"),vx=Symbol.for("react.fragment"),wx=Symbol.for("react.strict_mode"),Ix=Symbol.for("react.profiler"),bx=Symbol.for("react.consumer"),Mx=Symbol.for("react.context"),Dx=Symbol.for("react.forward_ref"),Tx=Symbol.for("react.suspense"),Px=Symbol.for("react.memo"),ym=Symbol.for("react.lazy"),cm=Symbol.iterator;function Nx(e){return e===null||typeof e!="object"?null:(e=cm&&e[cm]||e["@@iterator"],typeof e=="function"?e:null)}var Sm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},xm=Object.assign,Lm={};function Ll(e,t,a){this.props=e,this.context=t,this.refs=Lm,this.updater=a||Sm}Ll.prototype.isReactComponent={};Ll.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};Ll.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Cm(){}Cm.prototype=Ll.prototype;function Rs(e,t,a){this.props=e,this.context=t,this.refs=Lm,this.updater=a||Sm}var Os=Rs.prototype=new Cm;Os.constructor=Rs;xm(Os,Ll.prototype);Os.isPureReactComponent=!0;var mm=Array.isArray,le={H:null,A:null,T:null,S:null},vm=Object.prototype.hasOwnProperty;function Fs(e,t,a,l,o,r){return a=r.ref,{$$typeof:ks,type:e,key:t,ref:a!==void 0?a:null,props:r}}function Ax(e,t){return Fs(e.type,t,void 0,void 0,void 0,e.props)}function Es(e){return typeof e=="object"&&e!==null&&e.$$typeof===ks}function kx(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(a){return t[a]})}var pm=/\/+/g;function As(e,t){return typeof e=="object"&&e!==null&&e.key!=null?kx(""+e.key):t.toString(36)}function hm(){}function Rx(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(hm,hm):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function xl(e,t,a,l,o){var r=typeof e;(r==="undefined"||r==="boolean")&&(e=null);var u=!1;if(e===null)u=!0;else switch(r){case"bigint":case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case ks:case Cx:u=!0;break;case ym:return u=e._init,xl(u(e._payload),t,a,l,o)}}if(u)return o=o(e),u=l===""?"."+As(e,0):l,mm(o)?(a="",u!=null&&(a=u.replace(pm,"$&/")+"/"),xl(o,t,a,"",function(s){return s})):o!=null&&(Es(o)&&(o=Ax(o,a+(o.key==null||e&&e.key===o.key?"":(""+o.key).replace(pm,"$&/")+"/")+u)),t.push(o)),1;u=0;var i=l===""?".":l+":";if(mm(e))for(var n=0;n<e.length;n++)l=e[n],r=i+As(l,n),u+=xl(l,t,a,r,o);else if(n=Nx(e),typeof n=="function")for(e=n.call(e),n=0;!(l=e.next()).done;)l=l.value,r=i+As(l,n++),u+=xl(l,t,a,r,o);else if(r==="object"){if(typeof e.then=="function")return xl(Rx(e),t,a,l,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return u}function Mi(e,t,a){if(e==null)return e;var l=[],o=0;return xl(e,l,"","",function(r){return t.call(a,r,o++)}),l}function Ox(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(a){(e._status===0||e._status===-1)&&(e._status=1,e._result=a)},function(a){(e._status===0||e._status===-1)&&(e._status=2,e._result=a)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var gm=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Fx(){}k.Children={map:Mi,forEach:function(e,t,a){Mi(e,function(){t.apply(this,arguments)},a)},count:function(e){var t=0;return Mi(e,function(){t++}),t},toArray:function(e){return Mi(e,function(t){return t})||[]},only:function(e){if(!Es(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};k.Component=Ll;k.Fragment=vx;k.Profiler=Ix;k.PureComponent=Rs;k.StrictMode=wx;k.Suspense=Tx;k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=le;k.act=function(){throw Error("act(...) is not supported in production builds of React.")};k.cache=function(e){return function(){return e.apply(null,arguments)}};k.cloneElement=function(e,t,a){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var l=xm({},e.props),o=e.key,r=void 0;if(t!=null)for(u in t.ref!==void 0&&(r=void 0),t.key!==void 0&&(o=""+t.key),t)!vm.call(t,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&t.ref===void 0||(l[u]=t[u]);var u=arguments.length-2;if(u===1)l.children=a;else if(1<u){for(var i=Array(u),n=0;n<u;n++)i[n]=arguments[n+2];l.children=i}return Fs(e.type,o,void 0,void 0,r,l)};k.createContext=function(e){return e={$$typeof:Mx,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:bx,_context:e},e};k.createElement=function(e,t,a){var l,o={},r=null;if(t!=null)for(l in t.key!==void 0&&(r=""+t.key),t)vm.call(t,l)&&l!=="key"&&l!=="__self"&&l!=="__source"&&(o[l]=t[l]);var u=arguments.length-2;if(u===1)o.children=a;else if(1<u){for(var i=Array(u),n=0;n<u;n++)i[n]=arguments[n+2];o.children=i}if(e&&e.defaultProps)for(l in u=e.defaultProps,u)o[l]===void 0&&(o[l]=u[l]);return Fs(e,r,void 0,void 0,null,o)};k.createRef=function(){return{current:null}};k.forwardRef=function(e){return{$$typeof:Dx,render:e}};k.isValidElement=Es;k.lazy=function(e){return{$$typeof:ym,_payload:{_status:-1,_result:e},_init:Ox}};k.memo=function(e,t){return{$$typeof:Px,type:e,compare:t===void 0?null:t}};k.startTransition=function(e){var t=le.T,a={};le.T=a;try{var l=e(),o=le.S;o!==null&&o(a,l),typeof l=="object"&&l!==null&&typeof l.then=="function"&&l.then(Fx,gm)}catch(r){gm(r)}finally{le.T=t}};k.unstable_useCacheRefresh=function(){return le.H.useCacheRefresh()};k.use=function(e){return le.H.use(e)};k.useActionState=function(e,t,a){return le.H.useActionState(e,t,a)};k.useCallback=function(e,t){return le.H.useCallback(e,t)};k.useContext=function(e){return le.H.useContext(e)};k.useDebugValue=function(){};k.useDeferredValue=function(e,t){return le.H.useDeferredValue(e,t)};k.useEffect=function(e,t){return le.H.useEffect(e,t)};k.useId=function(){return le.H.useId()};k.useImperativeHandle=function(e,t,a){return le.H.useImperativeHandle(e,t,a)};k.useInsertionEffect=function(e,t){return le.H.useInsertionEffect(e,t)};k.useLayoutEffect=function(e,t){return le.H.useLayoutEffect(e,t)};k.useMemo=function(e,t){return le.H.useMemo(e,t)};k.useOptimistic=function(e,t){return le.H.useOptimistic(e,t)};k.useReducer=function(e,t,a){return le.H.useReducer(e,t,a)};k.useRef=function(e){return le.H.useRef(e)};k.useState=function(e){return le.H.useState(e)};k.useSyncExternalStore=function(e,t,a){return le.H.useSyncExternalStore(e,t,a)};k.useTransition=function(){return le.H.useTransition()};k.version="19.0.0"});var Ne=St((QN,Im)=>{"use strict";Im.exports=wm()});var Mm=St(ke=>{"use strict";var Ex=Ne();function bm(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function ta(){}var Ae={d:{f:ta,r:function(){throw Error(bm(522))},D:ta,C:ta,L:ta,m:ta,X:ta,S:ta,M:ta},p:0,findDOMNode:null},Bx=Symbol.for("react.portal");function Hx(e,t,a){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bx,key:l==null?null:""+l,children:e,containerInfo:t,implementation:a}}var go=Ex.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Di(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}ke.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ae;ke.createPortal=function(e,t){var a=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(bm(299));return Hx(e,t,null,a)};ke.flushSync=function(e){var t=go.T,a=Ae.p;try{if(go.T=null,Ae.p=2,e)return e()}finally{go.T=t,Ae.p=a,Ae.d.f()}};ke.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,Ae.d.C(e,t))};ke.prefetchDNS=function(e){typeof e=="string"&&Ae.d.D(e)};ke.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var a=t.as,l=Di(a,t.crossOrigin),o=typeof t.integrity=="string"?t.integrity:void 0,r=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;a==="style"?Ae.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:l,integrity:o,fetchPriority:r}):a==="script"&&Ae.d.X(e,{crossOrigin:l,integrity:o,fetchPriority:r,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};ke.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var a=Di(t.as,t.crossOrigin);Ae.d.M(e,{crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&Ae.d.M(e)};ke.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var a=t.as,l=Di(a,t.crossOrigin);Ae.d.L(e,a,{crossOrigin:l,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};ke.preloadModule=function(e,t){if(typeof e=="string")if(t){var a=Di(t.as,t.crossOrigin);Ae.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:a,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else Ae.d.m(e)};ke.requestFormReset=function(e){Ae.d.r(e)};ke.unstable_batchedUpdates=function(e,t){return e(t)};ke.useFormState=function(e,t,a){return go.H.useFormState(e,t,a)};ke.useFormStatus=function(){return go.H.useHostTransitionStatus()};ke.version="19.0.0"});var Pm=St((KN,Tm)=>{"use strict";function Dm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Dm)}catch(e){console.error(e)}}Dm(),Tm.exports=Mm()});var Iy=St(Xn=>{"use strict";var ge=fm(),Qp=Ne(),Ux=Pm();function S(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var a=2;a<arguments.length;a++)t+="&args[]="+encodeURIComponent(arguments[a])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function Zp(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}var qx=Symbol.for("react.element"),Ti=Symbol.for("react.transitional.element"),bo=Symbol.for("react.portal"),Dl=Symbol.for("react.fragment"),Kp=Symbol.for("react.strict_mode"),pd=Symbol.for("react.profiler"),Vx=Symbol.for("react.provider"),jp=Symbol.for("react.consumer"),qt=Symbol.for("react.context"),nf=Symbol.for("react.forward_ref"),hd=Symbol.for("react.suspense"),gd=Symbol.for("react.suspense_list"),sf=Symbol.for("react.memo"),oa=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var Jp=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var zx=Symbol.for("react.memo_cache_sentinel"),Nm=Symbol.iterator;function yo(e){return e===null||typeof e!="object"?null:(e=Nm&&e[Nm]||e["@@iterator"],typeof e=="function"?e:null)}var _x=Symbol.for("react.client.reference");function yd(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===_x?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Dl:return"Fragment";case bo:return"Portal";case pd:return"Profiler";case Kp:return"StrictMode";case hd:return"Suspense";case gd:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case qt:return(e.displayName||"Context")+".Provider";case jp:return(e._context.displayName||"Context")+".Consumer";case nf:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sf:return t=e.displayName||null,t!==null?t:yd(e.type)||"Memo";case oa:t=e._payload,e=e._init;try{return yd(e(t))}catch(a){}}return null}var P=Qp.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,te=Object.assign,Bs,Am;function Mo(e){if(Bs===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Bs=t&&t[1]||"",Am=-1<a.stack.indexOf(`
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Bs+e+Am}var Hs=!1;function Us(e,t){if(!e||Hs)return"";Hs=!0;var a=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var l={DetermineComponentFrameRoot:function(){try{if(t){var g=function(){throw Error()};if(Object.defineProperty(g.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(g,[])}catch(h){var f=h}Reflect.construct(e,[],g)}else{try{g.call()}catch(h){f=h}e.call(g.prototype)}}else{try{throw Error()}catch(h){f=h}(g=e())&&typeof g.catch=="function"&&g.catch(function(){})}}catch(h){if(h&&f&&typeof h.stack=="string")return[h.stack,f.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var o=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");o&&o.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=l.DetermineComponentFrameRoot(),u=r[0],i=r[1];if(u&&i){var n=u.split(`
`),s=i.split(`
`);for(o=l=0;l<n.length&&!n[l].includes("DetermineComponentFrameRoot");)l++;for(;o<s.length&&!s[o].includes("DetermineComponentFrameRoot");)o++;if(l===n.length||o===s.length)for(l=n.length-1,o=s.length-1;1<=l&&0<=o&&n[l]!==s[o];)o--;for(;1<=l&&0<=o;l--,o--)if(n[l]!==s[o]){if(l!==1||o!==1)do if(l--,o--,0>o||n[l]!==s[o]){var p=`
`+n[l].replace(" at new "," at ");return e.displayName&&p.includes("<anonymous>")&&(p=p.replace("<anonymous>",e.displayName)),p}while(1<=l&&0<=o);break}}}finally{Hs=!1,Error.prepareStackTrace=a}return(a=e?e.displayName||e.name:"")?Mo(a):""}function Gx(e){switch(e.tag){case 26:case 27:case 5:return Mo(e.type);case 16:return Mo("Lazy");case 13:return Mo("Suspense");case 19:return Mo("SuspenseList");case 0:case 15:return e=Us(e.type,!1),e;case 11:return e=Us(e.type.render,!1),e;case 1:return e=Us(e.type,!0),e;default:return""}}function km(e){try{var t="";do t+=Gx(e),e=e.return;while(e);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function to(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function $p(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Rm(e){if(to(e)!==e)throw Error(S(188))}function Wx(e){var t=e.alternate;if(!t){if(t=to(e),t===null)throw Error(S(188));return t!==e?null:e}for(var a=e,l=t;;){var o=a.return;if(o===null)break;var r=o.alternate;if(r===null){if(l=o.return,l!==null){a=l;continue}break}if(o.child===r.child){for(r=o.child;r;){if(r===a)return Rm(o),e;if(r===l)return Rm(o),t;r=r.sibling}throw Error(S(188))}if(a.return!==l.return)a=o,l=r;else{for(var u=!1,i=o.child;i;){if(i===a){u=!0,a=o,l=r;break}if(i===l){u=!0,l=o,a=r;break}i=i.sibling}if(!u){for(i=r.child;i;){if(i===a){u=!0,a=r,l=o;break}if(i===l){u=!0,l=r,a=o;break}i=i.sibling}if(!u)throw Error(S(189))}}if(a.alternate!==l)throw Error(S(190))}if(a.tag!==3)throw Error(S(188));return a.stateNode.current===a?e:t}function eh(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=eh(e),t!==null)return t;e=e.sibling}return null}var Do=Array.isArray,ee=Ux.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ha={pending:!1,data:null,method:null,action:null},Sd=[],Tl=-1;function Mt(e){return{current:e}}function Ce(e){0>Tl||(e.current=Sd[Tl],Sd[Tl]=null,Tl--)}function ae(e,t){Tl++,Sd[Tl]=e.current,e.current=t}var vt=Mt(null),Wo=Mt(null),ca=Mt(null),on=Mt(null);function rn(e,t){switch(ae(ca,t),ae(Wo,e),ae(vt,null),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)&&(t=t.namespaceURI)?Fp(t):0;break;default:if(e=e===8?t.parentNode:t,t=e.tagName,e=e.namespaceURI)e=Fp(e),t=cy(e,t);else switch(t){case"svg":t=1;break;case"math":t=2;break;default:t=0}}Ce(vt),ae(vt,t)}function Yl(){Ce(vt),Ce(Wo),Ce(ca)}function xd(e){e.memoizedState!==null&&ae(on,e);var t=vt.current,a=cy(t,e.type);t!==a&&(ae(Wo,e),ae(vt,a))}function un(e){Wo.current===e&&(Ce(vt),Ce(Wo)),on.current===e&&(Ce(on),ar._currentValue=Ha)}var Ld=Object.prototype.hasOwnProperty,df=ge.unstable_scheduleCallback,qs=ge.unstable_cancelCallback,Yx=ge.unstable_shouldYield,Xx=ge.unstable_requestPaint,wt=ge.unstable_now,Qx=ge.unstable_getCurrentPriorityLevel,th=ge.unstable_ImmediatePriority,ah=ge.unstable_UserBlockingPriority,nn=ge.unstable_NormalPriority,Zx=ge.unstable_LowPriority,lh=ge.unstable_IdlePriority,Kx=ge.log,jx=ge.unstable_setDisableYieldValue,ur=null,_e=null;function Jx(e){if(_e&&typeof _e.onCommitFiberRoot=="function")try{_e.onCommitFiberRoot(ur,e,void 0,(e.current.flags&128)===128)}catch(t){}}function da(e){if(typeof Kx=="function"&&jx(e),_e&&typeof _e.setStrictMode=="function")try{_e.setStrictMode(ur,e)}catch(t){}}var Ge=Math.clz32?Math.clz32:tL,$x=Math.log,eL=Math.LN2;function tL(e){return e>>>=0,e===0?32:31-($x(e)/eL|0)|0}var Pi=128,Ni=4194304;function Ra(e){var t=e&42;if(t!==0)return t;switch(e&-e){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 e&4194176;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Rn(e,t){var a=e.pendingLanes;if(a===0)return 0;var l=0,o=e.suspendedLanes,r=e.pingedLanes,u=e.warmLanes;e=e.finishedLanes!==0;var i=a&134217727;return i!==0?(a=i&~o,a!==0?l=Ra(a):(r&=i,r!==0?l=Ra(r):e||(u=i&~u,u!==0&&(l=Ra(u))))):(i=a&~o,i!==0?l=Ra(i):r!==0?l=Ra(r):e||(u=a&~u,u!==0&&(l=Ra(u)))),l===0?0:t!==0&&t!==l&&(t&o)===0&&(o=l&-l,u=t&-t,o>=u||o===32&&(u&4194176)!==0)?t:l}function ir(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function aL(e,t){switch(e){case 1:case 2:case 4:case 8:return t+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 t+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 oh(){var e=Pi;return Pi<<=1,(Pi&4194176)===0&&(Pi=128),e}function rh(){var e=Ni;return Ni<<=1,(Ni&62914560)===0&&(Ni=4194304),e}function Vs(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function nr(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function lL(e,t,a,l,o,r){var u=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var i=e.entanglements,n=e.expirationTimes,s=e.hiddenUpdates;for(a=u&~a;0<a;){var p=31-Ge(a),g=1<<p;i[p]=0,n[p]=-1;var f=s[p];if(f!==null)for(s[p]=null,p=0;p<f.length;p++){var h=f[p];h!==null&&(h.lane&=-536870913)}a&=~g}l!==0&&uh(e,l,0),r!==0&&o===0&&e.tag!==0&&(e.suspendedLanes|=r&~(u&~t))}function uh(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var l=31-Ge(t);e.entangledLanes|=t,e.entanglements[l]=e.entanglements[l]|1073741824|a&4194218}function ih(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var l=31-Ge(a),o=1<<l;o&t|e[l]&t&&(e[l]|=t),a&=~o}}function nh(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function sh(){var e=ee.p;return e!==0?e:(e=window.event,e===void 0?32:vy(e.type))}function oL(e,t){var a=ee.p;try{return ee.p=e,t()}finally{ee.p=a}}var Ia=Math.random().toString(36).slice(2),Te="__reactFiber$"+Ia,He="__reactProps$"+Ia,ao="__reactContainer$"+Ia,Cd="__reactEvents$"+Ia,rL="__reactListeners$"+Ia,uL="__reactHandles$"+Ia,Om="__reactResources$"+Ia,Yo="__reactMarker$"+Ia;function ff(e){delete e[Te],delete e[He],delete e[Cd],delete e[rL],delete e[uL]}function Ea(e){var t=e[Te];if(t)return t;for(var a=e.parentNode;a;){if(t=a[ao]||a[Te]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Bp(e);e!==null;){if(a=e[Te])return a;e=Bp(e)}return t}e=a,a=e.parentNode}return null}function lo(e){if(e=e[Te]||e[ao]){var t=e.tag;if(t===5||t===6||t===13||t===26||t===27||t===3)return e}return null}function To(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(S(33))}function Hl(e){var t=e[Om];return t||(t=e[Om]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function xe(e){e[Yo]=!0}var dh=new Set,fh={};function Za(e,t){Xl(e,t),Xl(e+"Capture",t)}function Xl(e,t){for(fh[e]=t,e=0;e<t.length;e++)dh.add(t[e])}var Yt=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),iL=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]*$"),Fm={},Em={};function nL(e){return Ld.call(Em,e)?!0:Ld.call(Fm,e)?!1:iL.test(e)?Em[e]=!0:(Fm[e]=!0,!1)}function Yi(e,t,a){if(nL(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var l=t.toLowerCase().slice(0,5);if(l!=="data-"&&l!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+a)}}function Ai(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+a)}}function Rt(e,t,a,l){if(l===null)e.removeAttribute(a);else{switch(typeof l){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttributeNS(t,a,""+l)}}function tt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ch(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function sL(e){var t=ch(e)?"checked":"value",a=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),l=""+e[t];if(!e.hasOwnProperty(t)&&typeof a!="undefined"&&typeof a.get=="function"&&typeof a.set=="function"){var o=a.get,r=a.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(u){l=""+u,r.call(this,u)}}),Object.defineProperty(e,t,{enumerable:a.enumerable}),{getValue:function(){return l},setValue:function(u){l=""+u},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function sn(e){e._valueTracker||(e._valueTracker=sL(e))}function mh(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),l="";return e&&(l=ch(e)?e.checked?"true":"false":e.value),e=l,e!==a?(t.setValue(e),!0):!1}function dn(e){if(e=e||(typeof document!="undefined"?document:void 0),typeof e=="undefined")return null;try{return e.activeElement||e.body}catch(t){return e.body}}var dL=/[\n"\\]/g;function ot(e){return e.replace(dL,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function vd(e,t,a,l,o,r,u,i){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),t!=null?u==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+tt(t)):e.value!==""+tt(t)&&(e.value=""+tt(t)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),t!=null?wd(e,u,tt(t)):a!=null?wd(e,u,tt(a)):l!=null&&e.removeAttribute("value"),o==null&&r!=null&&(e.defaultChecked=!!r),o!=null&&(e.checked=o&&typeof o!="function"&&typeof o!="symbol"),i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.name=""+tt(i):e.removeAttribute("name")}function ph(e,t,a,l,o,r,u,i){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),t!=null||a!=null){if(!(r!=="submit"&&r!=="reset"||t!=null))return;a=a!=null?""+tt(a):"",t=t!=null?""+tt(t):a,i||t===e.value||(e.value=t),e.defaultValue=t}l=l!=null?l:o,l=typeof l!="function"&&typeof l!="symbol"&&!!l,e.checked=i?e.checked:!!l,e.defaultChecked=!!l,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u)}function wd(e,t,a){t==="number"&&dn(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Ul(e,t,a,l){if(e=e.options,t){t={};for(var o=0;o<a.length;o++)t["$"+a[o]]=!0;for(a=0;a<e.length;a++)o=t.hasOwnProperty("$"+e[a].value),e[a].selected!==o&&(e[a].selected=o),o&&l&&(e[a].defaultSelected=!0)}else{for(a=""+tt(a),t=null,o=0;o<e.length;o++){if(e[o].value===a){e[o].selected=!0,l&&(e[o].defaultSelected=!0);return}t!==null||e[o].disabled||(t=e[o])}t!==null&&(t.selected=!0)}}function hh(e,t,a){if(t!=null&&(t=""+tt(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+tt(a):""}function gh(e,t,a,l){if(t==null){if(l!=null){if(a!=null)throw Error(S(92));if(Do(l)){if(1<l.length)throw Error(S(93));l=l[0]}a=l}a==null&&(a=""),t=a}a=tt(t),e.defaultValue=a,l=e.textContent,l===a&&l!==""&&l!==null&&(e.value=l)}function Ql(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}var fL=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 Bm(e,t,a){var l=t.indexOf("--")===0;a==null||typeof a=="boolean"||a===""?l?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":l?e.setProperty(t,a):typeof a!="number"||a===0||fL.has(t)?t==="float"?e.cssFloat=a:e[t]=(""+a).trim():e[t]=a+"px"}function yh(e,t,a){if(t!=null&&typeof t!="object")throw Error(S(62));if(e=e.style,a!=null){for(var l in a)!a.hasOwnProperty(l)||t!=null&&t.hasOwnProperty(l)||(l.indexOf("--")===0?e.setProperty(l,""):l==="float"?e.cssFloat="":e[l]="");for(var o in t)l=t[o],t.hasOwnProperty(o)&&a[o]!==l&&Bm(e,o,l)}else for(var r in t)t.hasOwnProperty(r)&&Bm(e,r,t[r])}function cf(e){if(e.indexOf("-")===-1)return!1;switch(e){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 cL=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"]]),mL=/^[\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 Xi(e){return mL.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Id=null;function mf(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Pl=null,ql=null;function Hm(e){var t=lo(e);if(t&&(e=t.stateNode)){var a=e[He]||null;e:switch(e=t.stateNode,t.type){case"input":if(vd(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;for(a=a.querySelectorAll('input[name="'+ot(""+t)+'"][type="radio"]'),t=0;t<a.length;t++){var l=a[t];if(l!==e&&l.form===e.form){var o=l[He]||null;if(!o)throw Error(S(90));vd(l,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name)}}for(t=0;t<a.length;t++)l=a[t],l.form===e.form&&mh(l)}break e;case"textarea":hh(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&Ul(e,!!a.multiple,t,!1)}}}var zs=!1;function Sh(e,t,a){if(zs)return e(t,a);zs=!0;try{var l=e(t);return l}finally{if(zs=!1,(Pl!==null||ql!==null)&&(_n(),Pl&&(t=Pl,e=ql,ql=Pl=null,Hm(t),e)))for(t=0;t<e.length;t++)Hm(e[t])}}function Xo(e,t){var a=e.stateNode;if(a===null)return null;var l=a[He]||null;if(l===null)return null;a=l[t];e:switch(t){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)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(a&&typeof a!="function")throw Error(S(231,t,typeof a));return a}var bd=!1;if(Yt)try{Cl={},Object.defineProperty(Cl,"passive",{get:function(){bd=!0}}),window.addEventListener("test",Cl,Cl),window.removeEventListener("test",Cl,Cl)}catch(e){bd=!1}var Cl,fa=null,pf=null,Qi=null;function xh(){if(Qi)return Qi;var e,t=pf,a=t.length,l,o="value"in fa?fa.value:fa.textContent,r=o.length;for(e=0;e<a&&t[e]===o[e];e++);var u=a-e;for(l=1;l<=u&&t[a-l]===o[r-l];l++);return Qi=o.slice(e,1<l?1-l:void 0)}function Zi(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function ki(){return!0}function Um(){return!1}function Ue(e){function t(a,l,o,r,u){this._reactName=a,this._targetInst=o,this.type=l,this.nativeEvent=r,this.target=u,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(a=e[i],this[i]=a?a(r):r[i]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?ki:Um,this.isPropagationStopped=Um,this}return te(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=ki)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=ki)},persist:function(){},isPersistent:ki}),t}var Ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},On=Ue(Ka),sr=te({},Ka,{view:0,detail:0}),pL=Ue(sr),_s,Gs,So,Fn=te({},sr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hf,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==So&&(So&&e.type==="mousemove"?(_s=e.screenX-So.screenX,Gs=e.screenY-So.screenY):Gs=_s=0,So=e),_s)},movementY:function(e){return"movementY"in e?e.movementY:Gs}}),qm=Ue(Fn),hL=te({},Fn,{dataTransfer:0}),gL=Ue(hL),yL=te({},sr,{relatedTarget:0}),Ws=Ue(yL),SL=te({},Ka,{animationName:0,elapsedTime:0,pseudoElement:0}),xL=Ue(SL),LL=te({},Ka,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),CL=Ue(LL),vL=te({},Ka,{data:0}),Vm=Ue(vL),wL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},IL={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"},bL={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ML(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=bL[e])?!!t[e]:!1}function hf(){return ML}var DL=te({},sr,{key:function(e){if(e.key){var t=wL[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Zi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?IL[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hf,charCode:function(e){return e.type==="keypress"?Zi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Zi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),TL=Ue(DL),PL=te({},Fn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),zm=Ue(PL),NL=te({},sr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hf}),AL=Ue(NL),kL=te({},Ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),RL=Ue(kL),OL=te({},Fn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),FL=Ue(OL),EL=te({},Ka,{newState:0,oldState:0}),BL=Ue(EL),HL=[9,13,27,32],gf=Yt&&"CompositionEvent"in window,No=null;Yt&&"documentMode"in document&&(No=document.documentMode);var UL=Yt&&"TextEvent"in window&&!No,Lh=Yt&&(!gf||No&&8<No&&11>=No),_m=" ",Gm=!1;function Ch(e,t){switch(e){case"keyup":return HL.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function vh(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nl=!1;function qL(e,t){switch(e){case"compositionend":return vh(t);case"keypress":return t.which!==32?null:(Gm=!0,_m);case"textInput":return e=t.data,e===_m&&Gm?null:e;default:return null}}function VL(e,t){if(Nl)return e==="compositionend"||!gf&&Ch(e,t)?(e=xh(),Qi=pf=fa=null,Nl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Lh&&t.locale!=="ko"?null:t.data;default:return null}}var zL={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 Wm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!zL[e.type]:t==="textarea"}function wh(e,t,a,l){Pl?ql?ql.push(l):ql=[l]:Pl=l,t=Mn(t,"onChange"),0<t.length&&(a=new On("onChange","change",null,a,l),e.push({event:a,listeners:t}))}var Ao=null,Qo=null;function _L(e){sy(e,0)}function En(e){var t=To(e);if(mh(t))return e}function Ym(e,t){if(e==="change")return t}var Ih=!1;Yt&&(Yt?(Oi="oninput"in document,Oi||(Ys=document.createElement("div"),Ys.setAttribute("oninput","return;"),Oi=typeof Ys.oninput=="function"),Ri=Oi):Ri=!1,Ih=Ri&&(!document.documentMode||9<document.documentMode));var Ri,Oi,Ys;function Xm(){Ao&&(Ao.detachEvent("onpropertychange",bh),Qo=Ao=null)}function bh(e){if(e.propertyName==="value"&&En(Qo)){var t=[];wh(t,Qo,e,mf(e)),Sh(_L,t)}}function GL(e,t,a){e==="focusin"?(Xm(),Ao=t,Qo=a,Ao.attachEvent("onpropertychange",bh)):e==="focusout"&&Xm()}function WL(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return En(Qo)}function YL(e,t){if(e==="click")return En(t)}function XL(e,t){if(e==="input"||e==="change")return En(t)}function QL(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ye=typeof Object.is=="function"?Object.is:QL;function Zo(e,t){if(Ye(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var a=Object.keys(e),l=Object.keys(t);if(a.length!==l.length)return!1;for(l=0;l<a.length;l++){var o=a[l];if(!Ld.call(t,o)||!Ye(e[o],t[o]))return!1}return!0}function Qm(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Zm(e,t){var a=Qm(e);e=0;for(var l;a;){if(a.nodeType===3){if(l=e+a.textContent.length,e<=t&&l>=t)return{node:a,offset:t-e};e=l}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=Qm(a)}}function Mh(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Mh(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Dh(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=dn(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href=="string"}catch(l){a=!1}if(a)e=t.contentWindow;else break;t=dn(e.document)}return t}function yf(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function ZL(e,t){var a=Dh(t);t=e.focusedElem;var l=e.selectionRange;if(a!==t&&t&&t.ownerDocument&&Mh(t.ownerDocument.documentElement,t)){if(l!==null&&yf(t)){if(e=l.start,a=l.end,a===void 0&&(a=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(a,t.value.length);else if(a=(e=t.ownerDocument||document)&&e.defaultView||window,a.getSelection){a=a.getSelection();var o=t.textContent.length,r=Math.min(l.start,o);l=l.end===void 0?r:Math.min(l.end,o),!a.extend&&r>l&&(o=l,l=r,r=o),o=Zm(t,r);var u=Zm(t,l);o&&u&&(a.rangeCount!==1||a.anchorNode!==o.node||a.anchorOffset!==o.offset||a.focusNode!==u.node||a.focusOffset!==u.offset)&&(e=e.createRange(),e.setStart(o.node,o.offset),a.removeAllRanges(),r>l?(a.addRange(e),a.extend(u.node,u.offset)):(e.setEnd(u.node,u.offset),a.addRange(e)))}}for(e=[],a=t;a=a.parentNode;)a.nodeType===1&&e.push({element:a,left:a.scrollLeft,top:a.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)a=e[t],a.element.scrollLeft=a.left,a.element.scrollTop=a.top}}var KL=Yt&&"documentMode"in document&&11>=document.documentMode,Al=null,Md=null,ko=null,Dd=!1;function Km(e,t,a){var l=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;Dd||Al==null||Al!==dn(l)||(l=Al,"selectionStart"in l&&yf(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}),ko&&Zo(ko,l)||(ko=l,l=Mn(Md,"onSelect"),0<l.length&&(t=new On("onSelect","select",null,t,a),e.push({event:t,listeners:l}),t.target=Al)))}function ka(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}var kl={animationend:ka("Animation","AnimationEnd"),animationiteration:ka("Animation","AnimationIteration"),animationstart:ka("Animation","AnimationStart"),transitionrun:ka("Transition","TransitionRun"),transitionstart:ka("Transition","TransitionStart"),transitioncancel:ka("Transition","TransitionCancel"),transitionend:ka("Transition","TransitionEnd")},Xs={},Th={};Yt&&(Th=document.createElement("div").style,"AnimationEvent"in window||(delete kl.animationend.animation,delete kl.animationiteration.animation,delete kl.animationstart.animation),"TransitionEvent"in window||delete kl.transitionend.transition);function ja(e){if(Xs[e])return Xs[e];if(!kl[e])return e;var t=kl[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in Th)return Xs[e]=t[a];return e}var Ph=ja("animationend"),Nh=ja("animationiteration"),Ah=ja("animationstart"),jL=ja("transitionrun"),JL=ja("transitionstart"),$L=ja("transitioncancel"),kh=ja("transitionend"),Rh=new Map,jm="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 gt(e,t){Rh.set(e,t),Za(t,[e])}var et=[],Rl=0,Sf=0;function Bn(){for(var e=Rl,t=Sf=Rl=0;t<e;){var a=et[t];et[t++]=null;var l=et[t];et[t++]=null;var o=et[t];et[t++]=null;var r=et[t];if(et[t++]=null,l!==null&&o!==null){var u=l.pending;u===null?o.next=o:(o.next=u.next,u.next=o),l.pending=o}r!==0&&Oh(a,o,r)}}function Hn(e,t,a,l){et[Rl++]=e,et[Rl++]=t,et[Rl++]=a,et[Rl++]=l,Sf|=l,e.lanes|=l,e=e.alternate,e!==null&&(e.lanes|=l)}function xf(e,t,a,l){return Hn(e,t,a,l),fn(e)}function La(e,t){return Hn(e,null,null,t),fn(e)}function Oh(e,t,a){e.lanes|=a;var l=e.alternate;l!==null&&(l.lanes|=a);for(var o=!1,r=e.return;r!==null;)r.childLanes|=a,l=r.alternate,l!==null&&(l.childLanes|=a),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(o=!0)),e=r,r=r.return;o&&t!==null&&e.tag===3&&(r=e.stateNode,o=31-Ge(a),r=r.hiddenUpdates,e=r[o],e===null?r[o]=[t]:e.push(t),t.lane=a|536870912)}function fn(e){if(50<Go)throw Go=0,Zd=null,Error(S(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Ol={},Jm=new WeakMap;function rt(e,t){if(typeof e=="object"&&e!==null){var a=Jm.get(e);return a!==void 0?a:(t={value:e,source:t,stack:km(t)},Jm.set(e,t),t)}return{value:e,source:t,stack:km(t)}}var Fl=[],El=0,cn=null,mn=0,at=[],lt=0,Ua=null,Vt=1,zt="";function Oa(e,t){Fl[El++]=mn,Fl[El++]=cn,cn=e,mn=t}function Fh(e,t,a){at[lt++]=Vt,at[lt++]=zt,at[lt++]=Ua,Ua=e;var l=Vt;e=zt;var o=32-Ge(l)-1;l&=~(1<<o),a+=1;var r=32-Ge(t)+o;if(30<r){var u=o-o%5;r=(l&(1<<u)-1).toString(32),l>>=u,o-=u,Vt=1<<32-Ge(t)+o|a<<o|l,zt=r+e}else Vt=1<<r|a<<o|l,zt=e}function Lf(e){e.return!==null&&(Oa(e,1),Fh(e,1,0))}function Cf(e){for(;e===cn;)cn=Fl[--El],Fl[El]=null,mn=Fl[--El],Fl[El]=null;for(;e===Ua;)Ua=at[--lt],at[lt]=null,zt=at[--lt],at[lt]=null,Vt=at[--lt],at[lt]=null}var Re=null,be=null,z=!1,pt=null,Lt=!1,Td=Error(S(519));function Ga(e){var t=Error(S(418,""));throw Ko(rt(t,e)),Td}function $m(e){var t=e.stateNode,a=e.type,l=e.memoizedProps;switch(t[Te]=e,t[He]=l,a){case"dialog":B("cancel",t),B("close",t);break;case"iframe":case"object":case"embed":B("load",t);break;case"video":case"audio":for(a=0;a<$o.length;a++)B($o[a],t);break;case"source":B("error",t);break;case"img":case"image":case"link":B("error",t),B("load",t);break;case"details":B("toggle",t);break;case"input":B("invalid",t),ph(t,l.value,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name,!0),sn(t);break;case"select":B("invalid",t);break;case"textarea":B("invalid",t),gh(t,l.value,l.defaultValue,l.children),sn(t)}a=l.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||t.textContent===""+a||l.suppressHydrationWarning===!0||fy(t.textContent,a)?(l.popover!=null&&(B("beforetoggle",t),B("toggle",t)),l.onScroll!=null&&B("scroll",t),l.onScrollEnd!=null&&B("scrollend",t),l.onClick!=null&&(t.onclick=Wn),t=!0):t=!1,t||Ga(e)}function ep(e){for(Re=e.return;Re;)switch(Re.tag){case 3:case 27:Lt=!0;return;case 5:case 13:Lt=!1;return;default:Re=Re.return}}function xo(e){if(e!==Re)return!1;if(!z)return ep(e),z=!0,!1;var t=!1,a;if((a=e.tag!==3&&e.tag!==27)&&((a=e.tag===5)&&(a=e.type,a=!(a!=="form"&&a!=="button")||af(e.type,e.memoizedProps)),a=!a),a&&(t=!0),t&&be&&Ga(e),ep(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(S(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8)if(a=e.data,a==="/$"){if(t===0){be=ht(e.nextSibling);break e}t--}else a!=="$"&&a!=="$!"&&a!=="$?"||t++;e=e.nextSibling}be=null}}else be=Re?ht(e.stateNode.nextSibling):null;return!0}function dr(){be=Re=null,z=!1}function Ko(e){pt===null?pt=[e]:pt.push(e)}var Ro=Error(S(460)),Eh=Error(S(474)),Pd={then:function(){}};function tp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Fi(){}function Bh(e,t,a){switch(a=e[a],a===void 0?e.push(t):a!==t&&(t.then(Fi,Fi),t=a),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Ro?Error(S(483)):e;default:if(typeof t.status=="string")t.then(Fi,Fi);else{if(e=$,e!==null&&100<e.shellSuspendCounter)throw Error(S(482));e=t,e.status="pending",e.then(function(l){if(t.status==="pending"){var o=t;o.status="fulfilled",o.value=l}},function(l){if(t.status==="pending"){var o=t;o.status="rejected",o.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,e===Ro?Error(S(483)):e}throw Oo=t,Ro}}var Oo=null;function ap(){if(Oo===null)throw Error(S(459));var e=Oo;return Oo=null,e}var Vl=null,jo=0;function Ei(e){var t=jo;return jo+=1,Vl===null&&(Vl=[]),Bh(Vl,e,t)}function Lo(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Bi(e,t){throw t.$$typeof===qx?Error(S(525)):(e=Object.prototype.toString.call(t),Error(S(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function lp(e){var t=e._init;return t(e._payload)}function Hh(e){function t(c,d){if(e){var m=c.deletions;m===null?(c.deletions=[d],c.flags|=16):m.push(d)}}function a(c,d){if(!e)return null;for(;d!==null;)t(c,d),d=d.sibling;return null}function l(c){for(var d=new Map;c!==null;)c.key!==null?d.set(c.key,c):d.set(c.index,c),c=c.sibling;return d}function o(c,d){return c=ha(c,d),c.index=0,c.sibling=null,c}function r(c,d,m){return c.index=m,e?(m=c.alternate,m!==null?(m=m.index,m<d?(c.flags|=33554434,d):m):(c.flags|=33554434,d)):(c.flags|=1048576,d)}function u(c){return e&&c.alternate===null&&(c.flags|=33554434),c}function i(c,d,m,y){return d===null||d.tag!==6?(d=rd(m,c.mode,y),d.return=c,d):(d=o(d,m),d.return=c,d)}function n(c,d,m,y){var C=m.type;return C===Dl?p(c,d,m.props.children,y,m.key):d!==null&&(d.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===oa&&lp(C)===d.type)?(d=o(d,m.props),Lo(d,m),d.return=c,d):(d=en(m.type,m.key,m.props,null,c.mode,y),Lo(d,m),d.return=c,d)}function s(c,d,m,y){return d===null||d.tag!==4||d.stateNode.containerInfo!==m.containerInfo||d.stateNode.implementation!==m.implementation?(d=ud(m,c.mode,y),d.return=c,d):(d=o(d,m.children||[]),d.return=c,d)}function p(c,d,m,y,C){return d===null||d.tag!==7?(d=Va(m,c.mode,y,C),d.return=c,d):(d=o(d,m),d.return=c,d)}function g(c,d,m){if(typeof d=="string"&&d!==""||typeof d=="number"||typeof d=="bigint")return d=rd(""+d,c.mode,m),d.return=c,d;if(typeof d=="object"&&d!==null){switch(d.$$typeof){case Ti:return m=en(d.type,d.key,d.props,null,c.mode,m),Lo(m,d),m.return=c,m;case bo:return d=ud(d,c.mode,m),d.return=c,d;case oa:var y=d._init;return d=y(d._payload),g(c,d,m)}if(Do(d)||yo(d))return d=Va(d,c.mode,m,null),d.return=c,d;if(typeof d.then=="function")return g(c,Ei(d),m);if(d.$$typeof===qt)return g(c,Hi(c,d),m);Bi(c,d)}return null}function f(c,d,m,y){var C=d!==null?d.key:null;if(typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint")return C!==null?null:i(c,d,""+m,y);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Ti:return m.key===C?n(c,d,m,y):null;case bo:return m.key===C?s(c,d,m,y):null;case oa:return C=m._init,m=C(m._payload),f(c,d,m,y)}if(Do(m)||yo(m))return C!==null?null:p(c,d,m,y,null);if(typeof m.then=="function")return f(c,d,Ei(m),y);if(m.$$typeof===qt)return f(c,d,Hi(c,m),y);Bi(c,m)}return null}function h(c,d,m,y,C){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return c=c.get(m)||null,i(d,c,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ti:return c=c.get(y.key===null?m:y.key)||null,n(d,c,y,C);case bo:return c=c.get(y.key===null?m:y.key)||null,s(d,c,y,C);case oa:var D=y._init;return y=D(y._payload),h(c,d,m,y,C)}if(Do(y)||yo(y))return c=c.get(m)||null,p(d,c,y,C,null);if(typeof y.then=="function")return h(c,d,m,Ei(y),C);if(y.$$typeof===qt)return h(c,d,m,Hi(d,y),C);Bi(d,y)}return null}function L(c,d,m,y){for(var C=null,D=null,v=d,b=d=0,j=null;v!==null&&b<m.length;b++){v.index>b?(j=v,v=null):j=v.sibling;var A=f(c,v,m[b],y);if(A===null){v===null&&(v=j);break}e&&v&&A.alternate===null&&t(c,v),d=r(A,d,b),D===null?C=A:D.sibling=A,D=A,v=j}if(b===m.length)return a(c,v),z&&Oa(c,b),C;if(v===null){for(;b<m.length;b++)v=g(c,m[b],y),v!==null&&(d=r(v,d,b),D===null?C=v:D.sibling=v,D=v);return z&&Oa(c,b),C}for(v=l(v);b<m.length;b++)j=h(v,c,b,m[b],y),j!==null&&(e&&j.alternate!==null&&v.delete(j.key===null?b:j.key),d=r(j,d,b),D===null?C=j:D.sibling=j,D=j);return e&&v.forEach(function(Fe){return t(c,Fe)}),z&&Oa(c,b),C}function I(c,d,m,y){if(m==null)throw Error(S(151));for(var C=null,D=null,v=d,b=d=0,j=null,A=m.next();v!==null&&!A.done;b++,A=m.next()){v.index>b?(j=v,v=null):j=v.sibling;var Fe=f(c,v,A.value,y);if(Fe===null){v===null&&(v=j);break}e&&v&&Fe.alternate===null&&t(c,v),d=r(Fe,d,b),D===null?C=Fe:D.sibling=Fe,D=Fe,v=j}if(A.done)return a(c,v),z&&Oa(c,b),C;if(v===null){for(;!A.done;b++,A=m.next())A=g(c,A.value,y),A!==null&&(d=r(A,d,b),D===null?C=A:D.sibling=A,D=A);return z&&Oa(c,b),C}for(v=l(v);!A.done;b++,A=m.next())A=h(v,c,b,A.value,y),A!==null&&(e&&A.alternate!==null&&v.delete(A.key===null?b:A.key),d=r(A,d,b),D===null?C=A:D.sibling=A,D=A);return e&&v.forEach(function(ye){return t(c,ye)}),z&&Oa(c,b),C}function N(c,d,m,y){if(typeof m=="object"&&m!==null&&m.type===Dl&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case Ti:e:{for(var C=m.key;d!==null;){if(d.key===C){if(C=m.type,C===Dl){if(d.tag===7){a(c,d.sibling),y=o(d,m.props.children),y.return=c,c=y;break e}}else if(d.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===oa&&lp(C)===d.type){a(c,d.sibling),y=o(d,m.props),Lo(y,m),y.return=c,c=y;break e}a(c,d);break}else t(c,d);d=d.sibling}m.type===Dl?(y=Va(m.props.children,c.mode,y,m.key),y.return=c,c=y):(y=en(m.type,m.key,m.props,null,c.mode,y),Lo(y,m),y.return=c,c=y)}return u(c);case bo:e:{for(C=m.key;d!==null;){if(d.key===C)if(d.tag===4&&d.stateNode.containerInfo===m.containerInfo&&d.stateNode.implementation===m.implementation){a(c,d.sibling),y=o(d,m.children||[]),y.return=c,c=y;break e}else{a(c,d);break}else t(c,d);d=d.sibling}y=ud(m,c.mode,y),y.return=c,c=y}return u(c);case oa:return C=m._init,m=C(m._payload),N(c,d,m,y)}if(Do(m))return L(c,d,m,y);if(yo(m)){if(C=yo(m),typeof C!="function")throw Error(S(150));return m=C.call(m),I(c,d,m,y)}if(typeof m.then=="function")return N(c,d,Ei(m),y);if(m.$$typeof===qt)return N(c,d,Hi(c,m),y);Bi(c,m)}return typeof m=="string"&&m!==""||typeof m=="number"||typeof m=="bigint"?(m=""+m,d!==null&&d.tag===6?(a(c,d.sibling),y=o(d,m),y.return=c,c=y):(a(c,d),y=rd(m,c.mode,y),y.return=c,c=y),u(c)):a(c,d)}return function(c,d,m,y){try{jo=0;var C=N(c,d,m,y);return Vl=null,C}catch(v){if(v===Ro)throw v;var D=ut(29,v,null,c.mode);return D.lanes=y,D.return=c,D}finally{}}}var Wa=Hh(!0),Uh=Hh(!1),Zl=Mt(null),pn=Mt(0);function op(e,t){e=Zt,ae(pn,e),ae(Zl,t),Zt=e|t.baseLanes}function Nd(){ae(pn,Zt),ae(Zl,Zl.current)}function vf(){Zt=pn.current,Ce(Zl),Ce(pn)}var nt=Mt(null),It=null;function ua(e){var t=e.alternate;ae(he,he.current&1),ae(nt,e),It===null&&(t===null||Zl.current!==null||t.memoizedState!==null)&&(It=e)}function qh(e){if(e.tag===22){if(ae(he,he.current),ae(nt,e),It===null){var t=e.alternate;t!==null&&t.memoizedState!==null&&(It=e)}}else ia(e)}function ia(){ae(he,he.current),ae(nt,nt.current)}function _t(e){Ce(nt),It===e&&(It=null),Ce(he)}var he=Mt(0);function hn(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||a.data==="$?"||a.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var eC=typeof AbortController!="undefined"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,l){e.push(l)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},tC=ge.unstable_scheduleCallback,aC=ge.unstable_NormalPriority,pe={$$typeof:qt,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function wf(){return{controller:new eC,data:new Map,refCount:0}}function fr(e){e.refCount--,e.refCount===0&&tC(aC,function(){e.controller.abort()})}var Fo=null,Ad=0,Kl=0,zl=null;function lC(e,t){if(Fo===null){var a=Fo=[];Ad=0,Kl=Yf(),zl={status:"pending",value:void 0,then:function(l){a.push(l)}}}return Ad++,t.then(rp,rp),t}function rp(){if(--Ad===0&&Fo!==null){zl!==null&&(zl.status="fulfilled");var e=Fo;Fo=null,Kl=0,zl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function oC(e,t){var a=[],l={status:"pending",value:null,reason:null,then:function(o){a.push(o)}};return e.then(function(){l.status="fulfilled",l.value=t;for(var o=0;o<a.length;o++)(0,a[o])(t)},function(o){for(l.status="rejected",l.reason=o,o=0;o<a.length;o++)(0,a[o])(void 0)}),l}var up=P.S;P.S=function(e,t){typeof t=="object"&&t!==null&&typeof t.then=="function"&&lC(e,t),up!==null&&up(e,t)};var qa=Mt(null);function If(){var e=qa.current;return e!==null?e:$.pooledCache}function Ki(e,t){t===null?ae(qa,qa.current):ae(qa,t.pool)}function Vh(){var e=If();return e===null?null:{parent:pe._currentValue,pool:e}}var Ca=0,R=null,X=null,ce=null,gn=!1,_l=!1,Ya=!1,yn=0,Jo=0,Gl=null,rC=0;function se(){throw Error(S(321))}function bf(e,t){if(t===null)return!1;for(var a=0;a<t.length&&a<e.length;a++)if(!Ye(e[a],t[a]))return!1;return!0}function Mf(e,t,a,l,o,r){return Ca=r,R=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,P.H=e===null||e.memoizedState===null?Ja:ba,Ya=!1,r=a(l,o),Ya=!1,_l&&(r=_h(t,a,l,o)),zh(e),r}function zh(e){P.H=bt;var t=X!==null&&X.next!==null;if(Ca=0,ce=X=R=null,gn=!1,Jo=0,Gl=null,t)throw Error(S(300));e===null||Le||(e=e.dependencies,e!==null&&Ln(e)&&(Le=!0))}function _h(e,t,a,l){R=e;var o=0;do{if(_l&&(Gl=null),Jo=0,_l=!1,25<=o)throw Error(S(301));if(o+=1,ce=X=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}P.H=$a,r=t(a,l)}while(_l);return r}function uC(){var e=P.H,t=e.useState()[0];return t=typeof t.then=="function"?cr(t):t,e=e.useState()[0],(X!==null?X.memoizedState:null)!==e&&(R.flags|=1024),t}function Df(){var e=yn!==0;return yn=0,e}function Tf(e,t,a){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~a}function Pf(e){if(gn){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gn=!1}Ca=0,ce=X=R=null,_l=!1,Jo=yn=0,Gl=null}function Be(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ce===null?R.memoizedState=ce=e:ce=ce.next=e,ce}function me(){if(X===null){var e=R.alternate;e=e!==null?e.memoizedState:null}else e=X.next;var t=ce===null?R.memoizedState:ce.next;if(t!==null)ce=t,X=e;else{if(e===null)throw R.alternate===null?Error(S(467)):Error(S(310));X=e,e={memoizedState:X.memoizedState,baseState:X.baseState,baseQueue:X.baseQueue,queue:X.queue,next:null},ce===null?R.memoizedState=ce=e:ce=ce.next=e}return ce}var Un;Un=function(){return{lastEffect:null,events:null,stores:null,memoCache:null}};function cr(e){var t=Jo;return Jo+=1,Gl===null&&(Gl=[]),e=Bh(Gl,e,t),t=R,(ce===null?t.memoizedState:ce.next)===null&&(t=t.alternate,P.H=t===null||t.memoizedState===null?Ja:ba),e}function qn(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return cr(e);if(e.$$typeof===qt)return Pe(e)}throw Error(S(438,String(e)))}function Nf(e){var t=null,a=R.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var l=R.alternate;l!==null&&(l=l.updateQueue,l!==null&&(l=l.memoCache,l!=null&&(t={data:l.data.map(function(o){return o.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Un(),R.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0)for(a=t.data[t.index]=Array(e),l=0;l<e;l++)a[l]=zx;return t.index++,a}function Xt(e,t){return typeof t=="function"?t(e):t}function ji(e){var t=me();return Af(t,X,e)}function Af(e,t,a){var l=e.queue;if(l===null)throw Error(S(311));l.lastRenderedReducer=a;var o=e.baseQueue,r=l.pending;if(r!==null){if(o!==null){var u=o.next;o.next=r.next,r.next=u}t.baseQueue=o=r,l.pending=null}if(r=e.baseState,o===null)e.memoizedState=r;else{t=o.next;var i=u=null,n=null,s=t,p=!1;do{var g=s.lane&-536870913;if(g!==s.lane?(U&g)===g:(Ca&g)===g){var f=s.revertLane;if(f===0)n!==null&&(n=n.next={lane:0,revertLane:0,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null}),g===Kl&&(p=!0);else if((Ca&f)===f){s=s.next,f===Kl&&(p=!0);continue}else g={lane:0,revertLane:s.revertLane,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},n===null?(i=n=g,u=r):n=n.next=g,R.lanes|=f,wa|=f;g=s.action,Ya&&a(r,g),r=s.hasEagerState?s.eagerState:a(r,g)}else f={lane:g,revertLane:s.revertLane,action:s.action,hasEagerState:s.hasEagerState,eagerState:s.eagerState,next:null},n===null?(i=n=f,u=r):n=n.next=f,R.lanes|=g,wa|=g;s=s.next}while(s!==null&&s!==t);if(n===null?u=r:n.next=i,!Ye(r,e.memoizedState)&&(Le=!0,p&&(a=zl,a!==null)))throw a;e.memoizedState=r,e.baseState=u,e.baseQueue=n,l.lastRenderedState=r}return o===null&&(l.lanes=0),[e.memoizedState,l.dispatch]}function Qs(e){var t=me(),a=t.queue;if(a===null)throw Error(S(311));a.lastRenderedReducer=e;var l=a.dispatch,o=a.pending,r=t.memoizedState;if(o!==null){a.pending=null;var u=o=o.next;do r=e(r,u.action),u=u.next;while(u!==o);Ye(r,t.memoizedState)||(Le=!0),t.memoizedState=r,t.baseQueue===null&&(t.baseState=r),a.lastRenderedState=r}return[r,l]}function Gh(e,t,a){var l=R,o=me(),r=z;if(r){if(a===void 0)throw Error(S(407));a=a()}else a=t();var u=!Ye((X||o).memoizedState,a);if(u&&(o.memoizedState=a,Le=!0),o=o.queue,kf(Xh.bind(null,l,o,e),[e]),o.getSnapshot!==t||u||ce!==null&&ce.memoizedState.tag&1){if(l.flags|=2048,jl(9,Yh.bind(null,l,o,a,t),{destroy:void 0},null),$===null)throw Error(S(349));r||(Ca&60)!==0||Wh(l,t,a)}return a}function Wh(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=R.updateQueue,t===null?(t=Un(),R.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function Yh(e,t,a,l){t.value=a,t.getSnapshot=l,Qh(t)&&Zh(e)}function Xh(e,t,a){return a(function(){Qh(t)&&Zh(e)})}function Qh(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!Ye(e,a)}catch(l){return!0}}function Zh(e){var t=La(e,2);t!==null&&Oe(t,e,2)}function kd(e){var t=Be();if(typeof e=="function"){var a=e;if(e=a(),Ya){da(!0);try{a()}finally{da(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:e},t}function Kh(e,t,a,l){return e.baseState=a,Af(e,X,typeof l=="function"?l:Xt)}function iC(e,t,a,l,o){if(zn(e))throw Error(S(485));if(e=t.action,e!==null){var r={payload:o,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){r.listeners.push(u)}};P.T!==null?a(!0):r.isTransition=!1,l(r),a=t.pending,a===null?(r.next=t.pending=r,jh(t,r)):(r.next=a.next,t.pending=a.next=r)}}function jh(e,t){var a=t.action,l=t.payload,o=e.state;if(t.isTransition){var r=P.T,u={};P.T=u;try{var i=a(o,l),n=P.S;n!==null&&n(u,i),ip(e,t,i)}catch(s){Rd(e,t,s)}finally{P.T=r}}else try{r=a(o,l),ip(e,t,r)}catch(s){Rd(e,t,s)}}function ip(e,t,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?a.then(function(l){np(e,t,l)},function(l){return Rd(e,t,l)}):np(e,t,a)}function np(e,t,a){t.status="fulfilled",t.value=a,Jh(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,jh(e,a)))}function Rd(e,t,a){var l=e.pending;if(e.pending=null,l!==null){l=l.next;do t.status="rejected",t.reason=a,Jh(t),t=t.next;while(t!==l)}e.action=null}function Jh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function $h(e,t){return t}function eg(e,t){if(z){var a=$.formState;if(a!==null){e:{var l=R;if(z){if(be){t:{for(var o=be,r=Lt;o.nodeType!==8;){if(!r){o=null;break t}if(o=ht(o.nextSibling),o===null){o=null;break t}}r=o.data,o=r==="F!"||r==="F"?o:null}if(o){be=ht(o.nextSibling),l=o.data==="F!";break e}}Ga(l)}l=!1}l&&(t=a[0])}}return a=Be(),a.memoizedState=a.baseState=t,l={pending:null,lanes:0,dispatch:null,lastRenderedReducer:$h,lastRenderedState:t},a.queue=l,a=yg.bind(null,R,l),l.dispatch=a,l=kd(!1),r=Ef.bind(null,R,!1,l.queue),l=Be(),o={state:t,dispatch:null,action:e,pending:null},l.queue=o,a=iC.bind(null,R,o,r,a),o.dispatch=a,l.memoizedState=e,[t,a,!1]}function tg(e){var t=me();return ag(t,X,e)}function ag(e,t,a){t=Af(e,t,$h)[0],e=ji(Xt)[0],t=typeof t=="object"&&t!==null&&typeof t.then=="function"?cr(t):t;var l=me(),o=l.queue,r=o.dispatch;return a!==l.memoizedState&&(R.flags|=2048,jl(9,nC.bind(null,o,a),{destroy:void 0},null)),[t,r,e]}function nC(e,t){e.action=t}function lg(e){var t=me(),a=X;if(a!==null)return ag(t,a,e);me(),t=t.memoizedState,a=me();var l=a.queue.dispatch;return a.memoizedState=e,[t,l,!1]}function jl(e,t,a,l){return e={tag:e,create:t,inst:a,deps:l,next:null},t=R.updateQueue,t===null&&(t=Un(),R.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(l=a.next,a.next=e,e.next=l,t.lastEffect=e),e}function og(){return me().memoizedState}function Ji(e,t,a,l){var o=Be();R.flags|=e,o.memoizedState=jl(1|t,a,{destroy:void 0},l===void 0?null:l)}function Vn(e,t,a,l){var o=me();l=l===void 0?null:l;var r=o.memoizedState.inst;X!==null&&l!==null&&bf(l,X.memoizedState.deps)?o.memoizedState=jl(t,a,r,l):(R.flags|=e,o.memoizedState=jl(1|t,a,r,l))}function sp(e,t){Ji(8390656,8,e,t)}function kf(e,t){Vn(2048,8,e,t)}function rg(e,t){return Vn(4,2,e,t)}function ug(e,t){return Vn(4,4,e,t)}function ig(e,t){if(typeof t=="function"){e=e();var a=t(e);return function(){typeof a=="function"?a():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ng(e,t,a){a=a!=null?a.concat([e]):null,Vn(4,4,ig.bind(null,t,e),a)}function Rf(){}function sg(e,t){var a=me();t=t===void 0?null:t;var l=a.memoizedState;return t!==null&&bf(t,l[1])?l[0]:(a.memoizedState=[e,t],e)}function dg(e,t){var a=me();t=t===void 0?null:t;var l=a.memoizedState;if(t!==null&&bf(t,l[1]))return l[0];if(l=e(),Ya){da(!0);try{e()}finally{da(!1)}}return a.memoizedState=[l,t],l}function Of(e,t,a){return a===void 0||(Ca&1073741824)!==0?e.memoizedState=t:(e.memoizedState=a,e=Jg(),R.lanes|=e,wa|=e,a)}function fg(e,t,a,l){return Ye(a,t)?a:Zl.current!==null?(e=Of(e,a,l),Ye(e,t)||(Le=!0),e):(Ca&42)===0?(Le=!0,e.memoizedState=a):(e=Jg(),R.lanes|=e,wa|=e,t)}function cg(e,t,a,l,o){var r=ee.p;ee.p=r!==0&&8>r?r:8;var u=P.T,i={};P.T=i,Ef(e,!1,t,a);try{var n=o(),s=P.S;if(s!==null&&s(i,n),n!==null&&typeof n=="object"&&typeof n.then=="function"){var p=oC(n,l);Eo(e,t,p,We(e))}else Eo(e,t,l,We(e))}catch(g){Eo(e,t,{then:function(){},status:"rejected",reason:g},We())}finally{ee.p=r,P.T=u}}function sC(){}function Od(e,t,a,l){if(e.tag!==5)throw Error(S(476));var o=mg(e).queue;cg(e,o,t,Ha,a===null?sC:function(){return pg(e),a(l)})}function mg(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ha,baseState:Ha,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:Ha},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xt,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function pg(e){var t=mg(e).next.queue;Eo(e,t,{},We())}function Ff(){return Pe(ar)}function hg(){return me().memoizedState}function gg(){return me().memoizedState}function dC(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var a=We();e=ma(a);var l=pa(t,e,a);l!==null&&(Oe(l,t,a),Ho(l,t,a)),t={cache:wf()},e.payload=t;return}t=t.return}}function fC(e,t,a){var l=We();a={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null},zn(e)?Sg(t,a):(a=xf(e,t,a,l),a!==null&&(Oe(a,e,l),xg(a,t,l)))}function yg(e,t,a){var l=We();Eo(e,t,a,l)}function Eo(e,t,a,l){var o={lane:l,revertLane:0,action:a,hasEagerState:!1,eagerState:null,next:null};if(zn(e))Sg(t,o);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=t.lastRenderedReducer,r!==null))try{var u=t.lastRenderedState,i=r(u,a);if(o.hasEagerState=!0,o.eagerState=i,Ye(i,u))return Hn(e,t,o,0),$===null&&Bn(),!1}catch(n){}finally{}if(a=xf(e,t,o,l),a!==null)return Oe(a,e,l),xg(a,t,l),!0}return!1}function Ef(e,t,a,l){if(l={lane:2,revertLane:Yf(),action:l,hasEagerState:!1,eagerState:null,next:null},zn(e)){if(t)throw Error(S(479))}else t=xf(e,a,l,2),t!==null&&Oe(t,e,2)}function zn(e){var t=e.alternate;return e===R||t!==null&&t===R}function Sg(e,t){_l=gn=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function xg(e,t,a){if((a&4194176)!==0){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,ih(e,a)}}var bt={readContext:Pe,use:qn,useCallback:se,useContext:se,useEffect:se,useImperativeHandle:se,useLayoutEffect:se,useInsertionEffect:se,useMemo:se,useReducer:se,useRef:se,useState:se,useDebugValue:se,useDeferredValue:se,useTransition:se,useSyncExternalStore:se,useId:se};bt.useCacheRefresh=se;bt.useMemoCache=se;bt.useHostTransitionStatus=se;bt.useFormState=se;bt.useActionState=se;bt.useOptimistic=se;var Ja={readContext:Pe,use:qn,useCallback:function(e,t){return Be().memoizedState=[e,t===void 0?null:t],e},useContext:Pe,useEffect:sp,useImperativeHandle:function(e,t,a){a=a!=null?a.concat([e]):null,Ji(4194308,4,ig.bind(null,t,e),a)},useLayoutEffect:function(e,t){return Ji(4194308,4,e,t)},useInsertionEffect:function(e,t){Ji(4,2,e,t)},useMemo:function(e,t){var a=Be();t=t===void 0?null:t;var l=e();if(Ya){da(!0);try{e()}finally{da(!1)}}return a.memoizedState=[l,t],l},useReducer:function(e,t,a){var l=Be();if(a!==void 0){var o=a(t);if(Ya){da(!0);try{a(t)}finally{da(!1)}}}else o=t;return l.memoizedState=l.baseState=o,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:o},l.queue=e,e=e.dispatch=fC.bind(null,R,e),[l.memoizedState,e]},useRef:function(e){var t=Be();return e={current:e},t.memoizedState=e},useState:function(e){e=kd(e);var t=e.queue,a=yg.bind(null,R,t);return t.dispatch=a,[e.memoizedState,a]},useDebugValue:Rf,useDeferredValue:function(e,t){var a=Be();return Of(a,e,t)},useTransition:function(){var e=kd(!1);return e=cg.bind(null,R,e.queue,!0,!1),Be().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,a){var l=R,o=Be();if(z){if(a===void 0)throw Error(S(407));a=a()}else{if(a=t(),$===null)throw Error(S(349));(U&60)!==0||Wh(l,t,a)}o.memoizedState=a;var r={value:a,getSnapshot:t};return o.queue=r,sp(Xh.bind(null,l,r,e),[e]),l.flags|=2048,jl(9,Yh.bind(null,l,r,a,t),{destroy:void 0},null),a},useId:function(){var e=Be(),t=$.identifierPrefix;if(z){var a=zt,l=Vt;a=(l&~(1<<32-Ge(l)-1)).toString(32)+a,t=":"+t+"R"+a,a=yn++,0<a&&(t+="H"+a.toString(32)),t+=":"}else a=rC++,t=":"+t+"r"+a.toString(32)+":";return e.memoizedState=t},useCacheRefresh:function(){return Be().memoizedState=dC.bind(null,R)}};Ja.useMemoCache=Nf;Ja.useHostTransitionStatus=Ff;Ja.useFormState=eg;Ja.useActionState=eg;Ja.useOptimistic=function(e){var t=Be();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Ef.bind(null,R,!0,a),a.dispatch=t,[e,t]};var ba={readContext:Pe,use:qn,useCallback:sg,useContext:Pe,useEffect:kf,useImperativeHandle:ng,useInsertionEffect:rg,useLayoutEffect:ug,useMemo:dg,useReducer:ji,useRef:og,useState:function(){return ji(Xt)},useDebugValue:Rf,useDeferredValue:function(e,t){var a=me();return fg(a,X.memoizedState,e,t)},useTransition:function(){var e=ji(Xt)[0],t=me().memoizedState;return[typeof e=="boolean"?e:cr(e),t]},useSyncExternalStore:Gh,useId:hg};ba.useCacheRefresh=gg;ba.useMemoCache=Nf;ba.useHostTransitionStatus=Ff;ba.useFormState=tg;ba.useActionState=tg;ba.useOptimistic=function(e,t){var a=me();return Kh(a,X,e,t)};var $a={readContext:Pe,use:qn,useCallback:sg,useContext:Pe,useEffect:kf,useImperativeHandle:ng,useInsertionEffect:rg,useLayoutEffect:ug,useMemo:dg,useReducer:Qs,useRef:og,useState:function(){return Qs(Xt)},useDebugValue:Rf,useDeferredValue:function(e,t){var a=me();return X===null?Of(a,e,t):fg(a,X.memoizedState,e,t)},useTransition:function(){var e=Qs(Xt)[0],t=me().memoizedState;return[typeof e=="boolean"?e:cr(e),t]},useSyncExternalStore:Gh,useId:hg};$a.useCacheRefresh=gg;$a.useMemoCache=Nf;$a.useHostTransitionStatus=Ff;$a.useFormState=lg;$a.useActionState=lg;$a.useOptimistic=function(e,t){var a=me();return X!==null?Kh(a,X,e,t):(a.baseState=e,[e,a.queue.dispatch])};function Zs(e,t,a,l){t=e.memoizedState,a=a(l,t),a=a==null?t:te({},t,a),e.memoizedState=a,e.lanes===0&&(e.updateQueue.baseState=a)}var Fd={isMounted:function(e){return(e=e._reactInternals)?to(e)===e:!1},enqueueSetState:function(e,t,a){e=e._reactInternals;var l=We(),o=ma(l);o.payload=t,a!=null&&(o.callback=a),t=pa(e,o,l),t!==null&&(Oe(t,e,l),Ho(t,e,l))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var l=We(),o=ma(l);o.tag=1,o.payload=t,a!=null&&(o.callback=a),t=pa(e,o,l),t!==null&&(Oe(t,e,l),Ho(t,e,l))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=We(),l=ma(a);l.tag=2,t!=null&&(l.callback=t),t=pa(e,l,a),t!==null&&(Oe(t,e,a),Ho(t,e,a))}};function dp(e,t,a,l,o,r,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,r,u):t.prototype&&t.prototype.isPureReactComponent?!Zo(a,l)||!Zo(o,r):!0}function fp(e,t,a,l){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(a,l),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(a,l),t.state!==e&&Fd.enqueueReplaceState(t,t.state,null)}function Xa(e,t){var a=t;if("ref"in t){a={};for(var l in t)l!=="ref"&&(a[l]=t[l])}if(e=e.defaultProps){a===t&&(a=te({},a));for(var o in e)a[o]===void 0&&(a[o]=e[o])}return a}var Sn=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Lg(e){Sn(e)}function Cg(e){console.error(e)}function vg(e){Sn(e)}function xn(e,t){try{var a=e.onUncaughtError;a(t.value,{componentStack:t.stack})}catch(l){setTimeout(function(){throw l})}}function cp(e,t,a){try{var l=e.onCaughtError;l(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(o){setTimeout(function(){throw o})}}function Ed(e,t,a){return a=ma(a),a.tag=3,a.payload={element:null},a.callback=function(){xn(e,t)},a}function wg(e){return e=ma(e),e.tag=3,e}function Ig(e,t,a,l){var o=a.type.getDerivedStateFromError;if(typeof o=="function"){var r=l.value;e.payload=function(){return o(r)},e.callback=function(){cp(t,a,l)}}var u=a.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){cp(t,a,l),typeof o!="function"&&(ga===null?ga=new Set([this]):ga.add(this));var i=l.stack;this.componentDidCatch(l.value,{componentStack:i!==null?i:""})})}function cC(e,t,a,l,o){if(a.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){if(t=a.alternate,t!==null&&mr(t,a,o,!0),a=nt.current,a!==null){switch(a.tag){case 13:return It===null?jd():a.alternate===null&&ne===0&&(ne=3),a.flags&=-257,a.flags|=65536,a.lanes=o,l===Pd?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([l]):t.add(l),nd(e,l,o)),!1;case 22:return a.flags|=65536,l===Pd?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([l])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([l]):a.add(l)),nd(e,l,o)),!1}throw Error(S(435,a.tag))}return nd(e,l,o),jd(),!1}if(z)return t=nt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=o,l!==Td&&(e=Error(S(422),{cause:l}),Ko(rt(e,a)))):(l!==Td&&(t=Error(S(423),{cause:l}),Ko(rt(t,a))),e=e.current.alternate,e.flags|=65536,o&=-o,e.lanes|=o,l=rt(l,a),o=Ed(e.stateNode,l,o),td(e,o),ne!==4&&(ne=2)),!1;var r=Error(S(520),{cause:l});if(r=rt(r,a),zo===null?zo=[r]:zo.push(r),ne!==4&&(ne=2),t===null)return!0;l=rt(l,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=o&-o,a.lanes|=e,e=Ed(a.stateNode,l,e),td(a,e),!1;case 1:if(t=a.type,r=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(ga===null||!ga.has(r))))return a.flags|=65536,o&=-o,a.lanes|=o,o=wg(o),Ig(o,e,a,l),td(a,o),!1}a=a.return}while(a!==null);return!1}var bg=Error(S(461)),Le=!1;function Ie(e,t,a,l){t.child=e===null?Uh(t,null,a,l):Wa(t,e.child,a,l)}function mp(e,t,a,l,o){a=a.render;var r=t.ref;if("ref"in l){var u={};for(var i in l)i!=="ref"&&(u[i]=l[i])}else u=l;return Qa(t),l=Mf(e,t,a,u,r,o),i=Df(),e!==null&&!Le?(Tf(e,t,o),Qt(e,t,o)):(z&&i&&Lf(t),t.flags|=1,Ie(e,t,l,o),t.child)}function pp(e,t,a,l,o){if(e===null){var r=a.type;return typeof r=="function"&&!Vf(r)&&r.defaultProps===void 0&&a.compare===null?(t.tag=15,t.type=r,Mg(e,t,r,l,o)):(e=en(a.type,null,l,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(r=e.child,!Bf(e,o)){var u=r.memoizedProps;if(a=a.compare,a=a!==null?a:Zo,a(u,l)&&e.ref===t.ref)return Qt(e,t,o)}return t.flags|=1,e=ha(r,l),e.ref=t.ref,e.return=t,t.child=e}function Mg(e,t,a,l,o){if(e!==null){var r=e.memoizedProps;if(Zo(r,l)&&e.ref===t.ref)if(Le=!1,t.pendingProps=l=r,Bf(e,o))(e.flags&131072)!==0&&(Le=!0);else return t.lanes=e.lanes,Qt(e,t,o)}return Bd(e,t,a,l,o)}function Dg(e,t,a){var l=t.pendingProps,o=l.children,r=(t.stateNode._pendingVisibility&2)!==0,u=e!==null?e.memoizedState:null;if(Bo(e,t),l.mode==="hidden"||r){if((t.flags&128)!==0){if(l=u!==null?u.baseLanes|a:a,e!==null){for(o=t.child=e.child,r=0;o!==null;)r=r|o.lanes|o.childLanes,o=o.sibling;t.childLanes=r&~l}else t.childLanes=0,t.child=null;return hp(e,t,l,a)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ki(t,u!==null?u.cachePool:null),u!==null?op(t,u):Nd(),qh(t);else return t.lanes=t.childLanes=536870912,hp(e,t,u!==null?u.baseLanes|a:a,a)}else u!==null?(Ki(t,u.cachePool),op(t,u),ia(t),t.memoizedState=null):(e!==null&&Ki(t,null),Nd(),ia(t));return Ie(e,t,o,a),t.child}function hp(e,t,a,l){var o=If();return o=o===null?null:{parent:pe._currentValue,pool:o},t.memoizedState={baseLanes:a,cachePool:o},e!==null&&Ki(t,null),Nd(),qh(t),e!==null&&mr(e,t,l,!0),null}function Bo(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=2097664);else{if(typeof a!="function"&&typeof a!="object")throw Error(S(284));(e===null||e.ref!==a)&&(t.flags|=2097664)}}function Bd(e,t,a,l,o){return Qa(t),a=Mf(e,t,a,l,void 0,o),l=Df(),e!==null&&!Le?(Tf(e,t,o),Qt(e,t,o)):(z&&l&&Lf(t),t.flags|=1,Ie(e,t,a,o),t.child)}function gp(e,t,a,l,o,r){return Qa(t),t.updateQueue=null,a=_h(t,l,a,o),zh(e),l=Df(),e!==null&&!Le?(Tf(e,t,r),Qt(e,t,r)):(z&&l&&Lf(t),t.flags|=1,Ie(e,t,a,r),t.child)}function yp(e,t,a,l,o){if(Qa(t),t.stateNode===null){var r=Ol,u=a.contextType;typeof u=="object"&&u!==null&&(r=Pe(u)),r=new a(l,r),t.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Fd,t.stateNode=r,r._reactInternals=t,r=t.stateNode,r.props=l,r.state=t.memoizedState,r.refs={},Hf(t),u=a.contextType,r.context=typeof u=="object"&&u!==null?Pe(u):Ol,r.state=t.memoizedState,u=a.getDerivedStateFromProps,typeof u=="function"&&(Zs(t,a,u,l),r.state=t.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof r.getSnapshotBeforeUpdate=="function"||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(u=r.state,typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount(),u!==r.state&&Fd.enqueueReplaceState(r,r.state,null),qo(t,l,r,o),Uo(),r.state=t.memoizedState),typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!0}else if(e===null){r=t.stateNode;var i=t.memoizedProps,n=Xa(a,i);r.props=n;var s=r.context,p=a.contextType;u=Ol,typeof p=="object"&&p!==null&&(u=Pe(p));var g=a.getDerivedStateFromProps;p=typeof g=="function"||typeof r.getSnapshotBeforeUpdate=="function",i=t.pendingProps!==i,p||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(i||s!==u)&&fp(t,r,l,u),ra=!1;var f=t.memoizedState;r.state=f,qo(t,l,r,o),Uo(),s=t.memoizedState,i||f!==s||ra?(typeof g=="function"&&(Zs(t,a,g,l),s=t.memoizedState),(n=ra||dp(t,a,n,l,f,s,u))?(p||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=l,t.memoizedState=s),r.props=l,r.state=s,r.context=u,l=n):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),l=!1)}else{r=t.stateNode,_d(e,t),u=t.memoizedProps,p=Xa(a,u),r.props=p,g=t.pendingProps,f=r.context,s=a.contextType,n=Ol,typeof s=="object"&&s!==null&&(n=Pe(s)),i=a.getDerivedStateFromProps,(s=typeof i=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(u!==g||f!==n)&&fp(t,r,l,n),ra=!1,f=t.memoizedState,r.state=f,qo(t,l,r,o),Uo();var h=t.memoizedState;u!==g||f!==h||ra||e!==null&&e.dependencies!==null&&Ln(e.dependencies)?(typeof i=="function"&&(Zs(t,a,i,l),h=t.memoizedState),(p=ra||dp(t,a,p,l,f,h,n)||e!==null&&e.dependencies!==null&&Ln(e.dependencies))?(s||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(l,h,n),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(l,h,n)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=l,t.memoizedState=h),r.props=l,r.state=h,r.context=n,l=p):(typeof r.componentDidUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),l=!1)}return r=l,Bo(e,t),l=(t.flags&128)!==0,r||l?(r=t.stateNode,a=l&&typeof a.getDerivedStateFromError!="function"?null:r.render(),t.flags|=1,e!==null&&l?(t.child=Wa(t,e.child,null,o),t.child=Wa(t,null,a,o)):Ie(e,t,a,o),t.memoizedState=r.state,e=t.child):e=Qt(e,t,o),e}function Sp(e,t,a,l){return dr(),t.flags|=256,Ie(e,t,a,l),t.child}var Ks={dehydrated:null,treeContext:null,retryLane:0};function js(e){return{baseLanes:e,cachePool:Vh()}}function Js(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=it),e}function Tg(e,t,a){var l=t.pendingProps,o=!1,r=(t.flags&128)!==0,u;if((u=r)||(u=e!==null&&e.memoizedState===null?!1:(he.current&2)!==0),u&&(o=!0,t.flags&=-129),u=(t.flags&32)!==0,t.flags&=-33,e===null){if(z){if(o?ua(t):ia(t),z){var i=be,n;if(n=i){e:{for(n=i,i=Lt;n.nodeType!==8;){if(!i){i=null;break e}if(n=ht(n.nextSibling),n===null){i=null;break e}}i=n}i!==null?(t.memoizedState={dehydrated:i,treeContext:Ua!==null?{id:Vt,overflow:zt}:null,retryLane:536870912},n=ut(18,null,null,0),n.stateNode=i,n.return=t,t.child=n,Re=t,be=null,n=!0):n=!1}n||Ga(t)}if(i=t.memoizedState,i!==null&&(i=i.dehydrated,i!==null))return i.data==="$!"?t.lanes=16:t.lanes=536870912,null;_t(t)}return i=l.children,l=l.fallback,o?(ia(t),o=t.mode,i=Ud({mode:"hidden",children:i},o),l=Va(l,o,a,null),i.return=t,l.return=t,i.sibling=l,t.child=i,o=t.child,o.memoizedState=js(a),o.childLanes=Js(e,u,a),t.memoizedState=Ks,l):(ua(t),Hd(t,i))}if(n=e.memoizedState,n!==null&&(i=n.dehydrated,i!==null)){if(r)t.flags&256?(ua(t),t.flags&=-257,t=$s(e,t,a)):t.memoizedState!==null?(ia(t),t.child=e.child,t.flags|=128,t=null):(ia(t),o=l.fallback,i=t.mode,l=Ud({mode:"visible",children:l.children},i),o=Va(o,i,a,null),o.flags|=2,l.return=t,o.return=t,l.sibling=o,t.child=l,Wa(t,e.child,null,a),l=t.child,l.memoizedState=js(a),l.childLanes=Js(e,u,a),t.memoizedState=Ks,t=o);else if(ua(t),i.data==="$!"){if(u=i.nextSibling&&i.nextSibling.dataset,u)var s=u.dgst;u=s,l=Error(S(419)),l.stack="",l.digest=u,Ko({value:l,source:null,stack:null}),t=$s(e,t,a)}else if(Le||mr(e,t,a,!1),u=(a&e.childLanes)!==0,Le||u){if(u=$,u!==null){if(l=a&-a,(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&(u.suspendedLanes|a))!==0?0:l,l!==0&&l!==n.retryLane)throw n.retryLane=l,La(e,l),Oe(u,e,l),bg}i.data==="$?"||jd(),t=$s(e,t,a)}else i.data==="$?"?(t.flags|=128,t.child=e.child,t=DC.bind(null,e),i._reactRetry=t,t=null):(e=n.treeContext,be=ht(i.nextSibling),Re=t,z=!0,pt=null,Lt=!1,e!==null&&(at[lt++]=Vt,at[lt++]=zt,at[lt++]=Ua,Vt=e.id,zt=e.overflow,Ua=t),t=Hd(t,l.children),t.flags|=4096);return t}return o?(ia(t),o=l.fallback,i=t.mode,n=e.child,s=n.sibling,l=ha(n,{mode:"hidden",children:l.children}),l.subtreeFlags=n.subtreeFlags&31457280,s!==null?o=ha(s,o):(o=Va(o,i,a,null),o.flags|=2),o.return=t,l.return=t,l.sibling=o,t.child=l,l=o,o=t.child,i=e.child.memoizedState,i===null?i=js(a):(n=i.cachePool,n!==null?(s=pe._currentValue,n=n.parent!==s?{parent:s,pool:s}:n):n=Vh(),i={baseLanes:i.baseLanes|a,cachePool:n}),o.memoizedState=i,o.childLanes=Js(e,u,a),t.memoizedState=Ks,l):(ua(t),a=e.child,e=a.sibling,a=ha(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(u=t.deletions,u===null?(t.deletions=[e],t.flags|=16):u.push(e)),t.child=a,t.memoizedState=null,a)}function Hd(e,t){return t=Ud({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Ud(e,t){return Kg(e,t,0,null)}function $s(e,t,a){return Wa(t,e.child,null,a),e=Hd(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function xp(e,t,a){e.lanes|=t;var l=e.alternate;l!==null&&(l.lanes|=t),Vd(e.return,t,a)}function ed(e,t,a,l,o){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:l,tail:a,tailMode:o}:(r.isBackwards=t,r.rendering=null,r.renderingStartTime=0,r.last=l,r.tail=a,r.tailMode=o)}function Pg(e,t,a){var l=t.pendingProps,o=l.revealOrder,r=l.tail;if(Ie(e,t,l.children,a),l=he.current,(l&2)!==0)l=l&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&xp(e,a,t);else if(e.tag===19)xp(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}switch(ae(he,l),o){case"forwards":for(a=t.child,o=null;a!==null;)e=a.alternate,e!==null&&hn(e)===null&&(o=a),a=a.sibling;a=o,a===null?(o=t.child,t.child=null):(o=a.sibling,a.sibling=null),ed(t,!1,o,a,r);break;case"backwards":for(a=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&hn(e)===null){t.child=o;break}e=o.sibling,o.sibling=a,a=o,o=e}ed(t,!0,a,null,r);break;case"together":ed(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Qt(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),wa|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(mr(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(S(153));if(t.child!==null){for(e=t.child,a=ha(e,e.pendingProps),t.child=a,a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=ha(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function Bf(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&Ln(e)))}function mC(e,t,a){switch(t.tag){case 3:rn(t,t.stateNode.containerInfo),na(t,pe,e.memoizedState.cache),dr();break;case 27:case 5:xd(t);break;case 4:rn(t,t.stateNode.containerInfo);break;case 10:na(t,t.type,t.memoizedProps.value);break;case 13:var l=t.memoizedState;if(l!==null)return l.dehydrated!==null?(ua(t),t.flags|=128,null):(a&t.child.childLanes)!==0?Tg(e,t,a):(ua(t),e=Qt(e,t,a),e!==null?e.sibling:null);ua(t);break;case 19:var o=(e.flags&128)!==0;if(l=(a&t.childLanes)!==0,l||(mr(e,t,a,!1),l=(a&t.childLanes)!==0),o){if(l)return Pg(e,t,a);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ae(he,he.current),l)break;return null;case 22:case 23:return t.lanes=0,Dg(e,t,a);case 24:na(t,pe,e.memoizedState.cache)}return Qt(e,t,a)}function Ng(e,t,a){if(e!==null)if(e.memoizedProps!==t.pendingProps)Le=!0;else{if(!Bf(e,a)&&(t.flags&128)===0)return Le=!1,mC(e,t,a);Le=(e.flags&131072)!==0}else Le=!1,z&&(t.flags&1048576)!==0&&Fh(t,mn,t.index);switch(t.lanes=0,t.tag){case 16:e:{e=t.pendingProps;var l=t.elementType,o=l._init;if(l=o(l._payload),t.type=l,typeof l=="function")Vf(l)?(e=Xa(l,e),t.tag=1,t=yp(null,t,l,e,a)):(t.tag=0,t=Bd(null,t,l,e,a));else{if(l!=null){if(o=l.$$typeof,o===nf){t.tag=11,t=mp(null,t,l,e,a);break e}else if(o===sf){t.tag=14,t=pp(null,t,l,e,a);break e}}throw t=yd(l)||l,Error(S(306,t,""))}}return t;case 0:return Bd(e,t,t.type,t.pendingProps,a);case 1:return l=t.type,o=Xa(l,t.pendingProps),yp(e,t,l,o,a);case 3:e:{if(rn(t,t.stateNode.containerInfo),e===null)throw Error(S(387));var r=t.pendingProps;o=t.memoizedState,l=o.element,_d(e,t),qo(t,r,null,a);var u=t.memoizedState;if(r=u.cache,na(t,pe,r),r!==o.cache&&zd(t,[pe],a,!0),Uo(),r=u.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:u.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Sp(e,t,r,a);break e}else if(r!==l){l=rt(Error(S(424)),t),Ko(l),t=Sp(e,t,r,a);break e}else for(be=ht(t.stateNode.containerInfo.firstChild),Re=t,z=!0,pt=null,Lt=!0,a=Uh(t,null,r,a),t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling;else{if(dr(),r===l){t=Qt(e,t,a);break e}Ie(e,t,r,a)}t=t.child}return t;case 26:return Bo(e,t),e===null?(a=Up(t.type,null,t.pendingProps,null))?t.memoizedState=a:z||(a=t.type,e=t.pendingProps,l=Dn(ca.current).createElement(a),l[Te]=t,l[He]=e,Me(l,a,e),xe(l),t.stateNode=l):t.memoizedState=Up(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xd(t),e===null&&z&&(l=t.stateNode=py(t.type,t.pendingProps,ca.current),Re=t,Lt=!0,be=ht(l.firstChild)),l=t.pendingProps.children,e!==null||z?Ie(e,t,l,a):t.child=Wa(t,null,l,a),Bo(e,t),t.child;case 5:return e===null&&z&&((o=l=be)&&(l=VC(l,t.type,t.pendingProps,Lt),l!==null?(t.stateNode=l,Re=t,be=ht(l.firstChild),Lt=!1,o=!0):o=!1),o||Ga(t)),xd(t),o=t.type,r=t.pendingProps,u=e!==null?e.memoizedProps:null,l=r.children,af(o,r)?l=null:u!==null&&af(o,u)&&(t.flags|=32),t.memoizedState!==null&&(o=Mf(e,t,uC,null,null,a),ar._currentValue=o),Bo(e,t),Ie(e,t,l,a),t.child;case 6:return e===null&&z&&((e=a=be)&&(a=zC(a,t.pendingProps,Lt),a!==null?(t.stateNode=a,Re=t,be=null,e=!0):e=!1),e||Ga(t)),null;case 13:return Tg(e,t,a);case 4:return rn(t,t.stateNode.containerInfo),l=t.pendingProps,e===null?t.child=Wa(t,null,l,a):Ie(e,t,l,a),t.child;case 11:return mp(e,t,t.type,t.pendingProps,a);case 7:return Ie(e,t,t.pendingProps,a),t.child;case 8:return Ie(e,t,t.pendingProps.children,a),t.child;case 12:return Ie(e,t,t.pendingProps.children,a),t.child;case 10:return l=t.pendingProps,na(t,t.type,l.value),Ie(e,t,l.children,a),t.child;case 9:return o=t.type._context,l=t.pendingProps.children,Qa(t),o=Pe(o),l=l(o),t.flags|=1,Ie(e,t,l,a),t.child;case 14:return pp(e,t,t.type,t.pendingProps,a);case 15:return Mg(e,t,t.type,t.pendingProps,a);case 19:return Pg(e,t,a);case 22:return Dg(e,t,a);case 24:return Qa(t),l=Pe(pe),e===null?(o=If(),o===null&&(o=$,r=wf(),o.pooledCache=r,r.refCount++,r!==null&&(o.pooledCacheLanes|=a),o=r),t.memoizedState={parent:l,cache:o},Hf(t),na(t,pe,o)):((e.lanes&a)!==0&&(_d(e,t),qo(t,null,null,a),Uo()),o=e.memoizedState,r=t.memoizedState,o.parent!==l?(o={parent:l,cache:l},t.memoizedState=o,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=o),na(t,pe,l)):(l=r.cache,na(t,pe,l),l!==o.cache&&zd(t,[pe],a,!0))),Ie(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error(S(156,t.tag))}var qd=Mt(null),el=null,Gt=null;function na(e,t,a){ae(qd,t._currentValue),t._currentValue=a}function Wt(e){e._currentValue=qd.current,Ce(qd)}function Vd(e,t,a){for(;e!==null;){var l=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,l!==null&&(l.childLanes|=t)):l!==null&&(l.childLanes&t)!==t&&(l.childLanes|=t),e===a)break;e=e.return}}function zd(e,t,a,l){var o=e.child;for(o!==null&&(o.return=e);o!==null;){var r=o.dependencies;if(r!==null){var u=o.child;r=r.firstContext;e:for(;r!==null;){var i=r;r=o;for(var n=0;n<t.length;n++)if(i.context===t[n]){r.lanes|=a,i=r.alternate,i!==null&&(i.lanes|=a),Vd(r.return,a,e),l||(u=null);break e}r=i.next}}else if(o.tag===18){if(u=o.return,u===null)throw Error(S(341));u.lanes|=a,r=u.alternate,r!==null&&(r.lanes|=a),Vd(u,a,e),u=null}else u=o.child;if(u!==null)u.return=o;else for(u=o;u!==null;){if(u===e){u=null;break}if(o=u.sibling,o!==null){o.return=u.return,u=o;break}u=u.return}o=u}}function mr(e,t,a,l){e=null;for(var o=t,r=!1;o!==null;){if(!r){if((o.flags&524288)!==0)r=!0;else if((o.flags&262144)!==0)break}if(o.tag===10){var u=o.alternate;if(u===null)throw Error(S(387));if(u=u.memoizedProps,u!==null){var i=o.type;Ye(o.pendingProps.value,u.value)||(e!==null?e.push(i):e=[i])}}else if(o===on.current){if(u=o.alternate,u===null)throw Error(S(387));u.memoizedState.memoizedState!==o.memoizedState.memoizedState&&(e!==null?e.push(ar):e=[ar])}o=o.return}e!==null&&zd(t,e,a,l),t.flags|=262144}function Ln(e){for(e=e.firstContext;e!==null;){if(!Ye(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Qa(e){el=e,Gt=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Pe(e){return Ag(el,e)}function Hi(e,t){return el===null&&Qa(e),Ag(e,t)}function Ag(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Gt===null){if(e===null)throw Error(S(308));Gt=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Gt=Gt.next=t;return a}var ra=!1;function Hf(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function _d(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ma(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pa(e,t,a){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(re&2)!==0){var o=l.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),l.pending=t,t=fn(e),Oh(e,null,a),t}return Hn(e,l,t,a),fn(e)}function Ho(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194176)!==0)){var l=t.lanes;l&=e.pendingLanes,a|=l,t.lanes=a,ih(e,a)}}function td(e,t){var a=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,a===l)){var o=null,r=null;if(a=a.firstBaseUpdate,a!==null){do{var u={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};r===null?o=r=u:r=r.next=u,a=a.next}while(a!==null);r===null?o=r=t:r=r.next=t}else o=r=t;a={baseState:l.baseState,firstBaseUpdate:o,lastBaseUpdate:r,shared:l.shared,callbacks:l.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}var Gd=!1;function Uo(){if(Gd){var e=zl;if(e!==null)throw e}}function qo(e,t,a,l){Gd=!1;var o=e.updateQueue;ra=!1;var r=o.firstBaseUpdate,u=o.lastBaseUpdate,i=o.shared.pending;if(i!==null){o.shared.pending=null;var n=i,s=n.next;n.next=null,u===null?r=s:u.next=s,u=n;var p=e.alternate;p!==null&&(p=p.updateQueue,i=p.lastBaseUpdate,i!==u&&(i===null?p.firstBaseUpdate=s:i.next=s,p.lastBaseUpdate=n))}if(r!==null){var g=o.baseState;u=0,p=s=n=null,i=r;do{var f=i.lane&-536870913,h=f!==i.lane;if(h?(U&f)===f:(l&f)===f){f!==0&&f===Kl&&(Gd=!0),p!==null&&(p=p.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{var L=e,I=i;f=t;var N=a;switch(I.tag){case 1:if(L=I.payload,typeof L=="function"){g=L.call(N,g,f);break e}g=L;break e;case 3:L.flags=L.flags&-65537|128;case 0:if(L=I.payload,f=typeof L=="function"?L.call(N,g,f):L,f==null)break e;g=te({},g,f);break e;case 2:ra=!0}}f=i.callback,f!==null&&(e.flags|=64,h&&(e.flags|=8192),h=o.callbacks,h===null?o.callbacks=[f]:h.push(f))}else h={lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},p===null?(s=p=h,n=g):p=p.next=h,u|=f;if(i=i.next,i===null){if(i=o.shared.pending,i===null)break;h=i,i=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(!0);p===null&&(n=g),o.baseState=n,o.firstBaseUpdate=s,o.lastBaseUpdate=p,r===null&&(o.shared.lanes=0),wa|=u,e.lanes=u,e.memoizedState=g}}function kg(e,t){if(typeof e!="function")throw Error(S(191,e));e.call(t)}function Rg(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)kg(a[e],t)}function pr(e,t){try{var a=t.updateQueue,l=a!==null?a.lastEffect:null;if(l!==null){var o=l.next;a=o;do{if((a.tag&e)===e){l=void 0;var r=a.create,u=a.inst;l=r(),u.destroy=l}a=a.next}while(a!==o)}}catch(i){Z(t,t.return,i)}}function va(e,t,a){try{var l=t.updateQueue,o=l!==null?l.lastEffect:null;if(o!==null){var r=o.next;l=r;do{if((l.tag&e)===e){var u=l.inst,i=u.destroy;if(i!==void 0){u.destroy=void 0,o=t;var n=a;try{i()}catch(s){Z(o,n,s)}}}l=l.next}while(l!==r)}}catch(s){Z(t,t.return,s)}}function Og(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;try{Rg(t,a)}catch(l){Z(e,e.return,l)}}}function Fg(e,t,a){a.props=Xa(e.type,e.memoizedProps),a.state=e.memoizedState;try{a.componentWillUnmount()}catch(l){Z(e,t,l)}}function Ba(e,t){try{var a=e.ref;if(a!==null){var l=e.stateNode;switch(e.tag){case 26:case 27:case 5:var o=l;break;default:o=l}typeof a=="function"?e.refCleanup=a(o):a.current=o}}catch(r){Z(e,t,r)}}function ze(e,t){var a=e.ref,l=e.refCleanup;if(a!==null)if(typeof l=="function")try{l()}catch(o){Z(e,t,o)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a=="function")try{a(null)}catch(o){Z(e,t,o)}else a.current=null}function Eg(e){var t=e.type,a=e.memoizedProps,l=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&l.focus();break e;case"img":a.src?l.src=a.src:a.srcSet&&(l.srcset=a.srcSet)}}catch(o){Z(e,e.return,o)}}function Lp(e,t,a){try{var l=e.stateNode;EC(l,e.type,a,t),l[He]=t}catch(o){Z(e,e.return,o)}}function Bg(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27||e.tag===4}function ad(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Bg(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==27&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Wd(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.nodeType===8?a.parentNode.insertBefore(e,t):a.insertBefore(e,t):(a.nodeType===8?(t=a.parentNode,t.insertBefore(e,a)):(t=a,t.appendChild(e)),a=a._reactRootContainer,a!=null||t.onclick!==null||(t.onclick=Wn));else if(l!==4&&l!==27&&(e=e.child,e!==null))for(Wd(e,t,a),e=e.sibling;e!==null;)Wd(e,t,a),e=e.sibling}function Cn(e,t,a){var l=e.tag;if(l===5||l===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(l!==4&&l!==27&&(e=e.child,e!==null))for(Cn(e,t,a),e=e.sibling;e!==null;)Cn(e,t,a),e=e.sibling}var Bt=!1,ie=!1,ld=!1,Cp=typeof WeakSet=="function"?WeakSet:Set,Se=null,vp=!1;function pC(e,t){if(e=e.containerInfo,ef=An,e=Dh(e),yf(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var l=a.getSelection&&a.getSelection();if(l&&l.rangeCount!==0){a=l.anchorNode;var o=l.anchorOffset,r=l.focusNode;l=l.focusOffset;try{a.nodeType,r.nodeType}catch(I){a=null;break e}var u=0,i=-1,n=-1,s=0,p=0,g=e,f=null;t:for(;;){for(var h;g!==a||o!==0&&g.nodeType!==3||(i=u+o),g!==r||l!==0&&g.nodeType!==3||(n=u+l),g.nodeType===3&&(u+=g.nodeValue.length),(h=g.firstChild)!==null;)f=g,g=h;for(;;){if(g===e)break t;if(f===a&&++s===o&&(i=u),f===r&&++p===l&&(n=u),(h=g.nextSibling)!==null)break;g=f,f=g.parentNode}g=h}a=i===-1||n===-1?null:{start:i,end:n}}else a=null}a=a||{start:0,end:0}}else a=null;for(tf={focusedElem:e,selectionRange:a},An=!1,Se=t;Se!==null;)if(t=Se,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Se=e;else for(;Se!==null;){switch(t=Se,r=t.alternate,e=t.flags,t.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,a=t,o=r.memoizedProps,r=r.memoizedState,l=a.stateNode;try{var L=Xa(a.type,o,a.elementType===a.type);e=l.getSnapshotBeforeUpdate(L,r),l.__reactInternalSnapshotBeforeUpdate=e}catch(I){Z(a,a.return,I)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,a=e.nodeType,a===9)lf(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":lf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(S(163))}if(e=t.sibling,e!==null){e.return=t.return,Se=e;break}Se=t.return}return L=vp,vp=!1,L}function Hg(e,t,a){var l=a.flags;switch(a.tag){case 0:case 11:case 15:Ft(e,a),l&4&&pr(5,a);break;case 1:if(Ft(e,a),l&4)if(e=a.stateNode,t===null)try{e.componentDidMount()}catch(i){Z(a,a.return,i)}else{var o=Xa(a.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(o,t,e.__reactInternalSnapshotBeforeUpdate)}catch(i){Z(a,a.return,i)}}l&64&&Og(a),l&512&&Ba(a,a.return);break;case 3:if(Ft(e,a),l&64&&(l=a.updateQueue,l!==null)){if(e=null,a.child!==null)switch(a.child.tag){case 27:case 5:e=a.child.stateNode;break;case 1:e=a.child.stateNode}try{Rg(l,e)}catch(i){Z(a,a.return,i)}}break;case 26:Ft(e,a),l&512&&Ba(a,a.return);break;case 27:case 5:Ft(e,a),t===null&&l&4&&Eg(a),l&512&&Ba(a,a.return);break;case 12:Ft(e,a);break;case 13:Ft(e,a),l&4&&Vg(e,a);break;case 22:if(o=a.memoizedState!==null||Bt,!o){t=t!==null&&t.memoizedState!==null||ie;var r=Bt,u=ie;Bt=o,(ie=t)&&!u?la(e,a,(a.subtreeFlags&8772)!==0):Ft(e,a),Bt=r,ie=u}l&512&&(a.memoizedProps.mode==="manual"?Ba(a,a.return):ze(a,a.return));break;default:Ft(e,a)}}function Ug(e){var t=e.alternate;t!==null&&(e.alternate=null,Ug(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ff(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var fe=null,qe=!1;function Ot(e,t,a){for(a=a.child;a!==null;)qg(e,t,a),a=a.sibling}function qg(e,t,a){if(_e&&typeof _e.onCommitFiberUnmount=="function")try{_e.onCommitFiberUnmount(ur,a)}catch(u){}switch(a.tag){case 26:ie||ze(a,t),Ot(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(a=a.stateNode,a.parentNode.removeChild(a));break;case 27:ie||ze(a,t);var l=fe,o=qe;for(fe=a.stateNode,Ot(e,t,a),a=a.stateNode,t=a.attributes;t.length;)a.removeAttributeNode(t[0]);ff(a),fe=l,qe=o;break;case 5:ie||ze(a,t);case 6:o=fe;var r=qe;if(fe=null,Ot(e,t,a),fe=o,qe=r,fe!==null)if(qe)try{e=fe,l=a.stateNode,e.nodeType===8?e.parentNode.removeChild(l):e.removeChild(l)}catch(u){Z(a,t,u)}else try{fe.removeChild(a.stateNode)}catch(u){Z(a,t,u)}break;case 18:fe!==null&&(qe?(t=fe,a=a.stateNode,t.nodeType===8?md(t.parentNode,a):t.nodeType===1&&md(t,a),rr(t)):md(fe,a.stateNode));break;case 4:l=fe,o=qe,fe=a.stateNode.containerInfo,qe=!0,Ot(e,t,a),fe=l,qe=o;break;case 0:case 11:case 14:case 15:ie||va(2,a,t),ie||va(4,a,t),Ot(e,t,a);break;case 1:ie||(ze(a,t),l=a.stateNode,typeof l.componentWillUnmount=="function"&&Fg(a,t,l)),Ot(e,t,a);break;case 21:Ot(e,t,a);break;case 22:ie||ze(a,t),ie=(l=ie)||a.memoizedState!==null,Ot(e,t,a),ie=l;break;default:Ot(e,t,a)}}function Vg(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{rr(e)}catch(a){Z(t,t.return,a)}}function hC(e){switch(e.tag){case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Cp),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Cp),t;default:throw Error(S(435,e.tag))}}function od(e,t){var a=hC(e);t.forEach(function(l){var o=TC.bind(null,e,l);a.has(l)||(a.add(l),l.then(o,o))})}function Je(e,t){var a=t.deletions;if(a!==null)for(var l=0;l<a.length;l++){var o=a[l],r=e,u=t,i=u;e:for(;i!==null;){switch(i.tag){case 27:case 5:fe=i.stateNode,qe=!1;break e;case 3:fe=i.stateNode.containerInfo,qe=!0;break e;case 4:fe=i.stateNode.containerInfo,qe=!0;break e}i=i.return}if(fe===null)throw Error(S(160));qg(r,u,o),fe=null,qe=!1,r=o.alternate,r!==null&&(r.return=null),o.return=null}if(t.subtreeFlags&13878)for(t=t.child;t!==null;)zg(t,e),t=t.sibling}var mt=null;function zg(e,t){var a=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Je(t,e),$e(e),l&4&&(va(3,e,e.return),pr(3,e),va(5,e,e.return));break;case 1:Je(t,e),$e(e),l&512&&(ie||a===null||ze(a,a.return)),l&64&&Bt&&(e=e.updateQueue,e!==null&&(l=e.callbacks,l!==null&&(a=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=a===null?l:a.concat(l))));break;case 26:var o=mt;if(Je(t,e),$e(e),l&512&&(ie||a===null||ze(a,a.return)),l&4){var r=a!==null?a.memoizedState:null;if(l=e.memoizedState,a===null)if(l===null)if(e.stateNode===null){e:{l=e.type,a=e.memoizedProps,o=o.ownerDocument||o;t:switch(l){case"title":r=o.getElementsByTagName("title")[0],(!r||r[Yo]||r[Te]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=o.createElement(l),o.head.insertBefore(r,o.querySelector("head > title"))),Me(r,l,a),r[Te]=e,xe(r),l=r;break e;case"link":var u=Vp("link","href",o).get(l+(a.href||""));if(u){for(var i=0;i<u.length;i++)if(r=u[i],r.getAttribute("href")===(a.href==null?null:a.href)&&r.getAttribute("rel")===(a.rel==null?null:a.rel)&&r.getAttribute("title")===(a.title==null?null:a.title)&&r.getAttribute("crossorigin")===(a.crossOrigin==null?null:a.crossOrigin)){u.splice(i,1);break t}}r=o.createElement(l),Me(r,l,a),o.head.appendChild(r);break;case"meta":if(u=Vp("meta","content",o).get(l+(a.content||""))){for(i=0;i<u.length;i++)if(r=u[i],r.getAttribute("content")===(a.content==null?null:""+a.content)&&r.getAttribute("name")===(a.name==null?null:a.name)&&r.getAttribute("property")===(a.property==null?null:a.property)&&r.getAttribute("http-equiv")===(a.httpEquiv==null?null:a.httpEquiv)&&r.getAttribute("charset")===(a.charSet==null?null:a.charSet)){u.splice(i,1);break t}}r=o.createElement(l),Me(r,l,a),o.head.appendChild(r);break;default:throw Error(S(468,l))}r[Te]=e,xe(r),l=r}e.stateNode=l}else zp(o,e.type,e.stateNode);else e.stateNode=qp(o,l,e.memoizedProps);else r!==l?(r===null?a.stateNode!==null&&(a=a.stateNode,a.parentNode.removeChild(a)):r.count--,l===null?zp(o,e.type,e.stateNode):qp(o,l,e.memoizedProps)):l===null&&e.stateNode!==null&&Lp(e,e.memoizedProps,a.memoizedProps)}break;case 27:if(l&4&&e.alternate===null){o=e.stateNode,r=e.memoizedProps;try{for(var n=o.firstChild;n;){var s=n.nextSibling,p=n.nodeName;n[Yo]||p==="HEAD"||p==="BODY"||p==="SCRIPT"||p==="STYLE"||p==="LINK"&&n.rel.toLowerCase()==="stylesheet"||o.removeChild(n),n=s}for(var g=e.type,f=o.attributes;f.length;)o.removeAttributeNode(f[0]);Me(o,g,r),o[Te]=e,o[He]=r}catch(L){Z(e,e.return,L)}}case 5:if(Je(t,e),$e(e),l&512&&(ie||a===null||ze(a,a.return)),e.flags&32){o=e.stateNode;try{Ql(o,"")}catch(L){Z(e,e.return,L)}}l&4&&e.stateNode!=null&&(o=e.memoizedProps,Lp(e,o,a!==null?a.memoizedProps:o)),l&1024&&(ld=!0);break;case 6:if(Je(t,e),$e(e),l&4){if(e.stateNode===null)throw Error(S(162));l=e.memoizedProps,a=e.stateNode;try{a.nodeValue=l}catch(L){Z(e,e.return,L)}}break;case 3:if(an=null,o=mt,mt=Tn(t.containerInfo),Je(t,e),mt=o,$e(e),l&4&&a!==null&&a.memoizedState.isDehydrated)try{rr(t.containerInfo)}catch(L){Z(e,e.return,L)}ld&&(ld=!1,_g(e));break;case 4:l=mt,mt=Tn(e.stateNode.containerInfo),Je(t,e),$e(e),mt=l;break;case 12:Je(t,e),$e(e);break;case 13:Je(t,e),$e(e),e.child.flags&8192&&e.memoizedState!==null!=(a!==null&&a.memoizedState!==null)&&(Gf=wt()),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,od(e,l)));break;case 22:if(l&512&&(ie||a===null||ze(a,a.return)),n=e.memoizedState!==null,s=a!==null&&a.memoizedState!==null,p=Bt,g=ie,Bt=p||n,ie=g||s,Je(t,e),ie=g,Bt=p,$e(e),t=e.stateNode,t._current=e,t._visibility&=-3,t._visibility|=t._pendingVisibility&2,l&8192&&(t._visibility=n?t._visibility&-2:t._visibility|1,n&&(t=Bt||ie,a===null||s||t||Il(e)),e.memoizedProps===null||e.memoizedProps.mode!=="manual"))e:for(a=null,t=e;;){if(t.tag===5||t.tag===26||t.tag===27){if(a===null){s=a=t;try{if(o=s.stateNode,n)r=o.style,typeof r.setProperty=="function"?r.setProperty("display","none","important"):r.display="none";else{u=s.stateNode,i=s.memoizedProps.style;var h=i!=null&&i.hasOwnProperty("display")?i.display:null;u.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(L){Z(s,s.return,L)}}}else if(t.tag===6){if(a===null){s=t;try{s.stateNode.nodeValue=n?"":s.memoizedProps}catch(L){Z(s,s.return,L)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;a===t&&(a=null),t=t.return}a===t&&(a=null),t.sibling.return=t.return,t=t.sibling}l&4&&(l=e.updateQueue,l!==null&&(a=l.retryQueue,a!==null&&(l.retryQueue=null,od(e,a))));break;case 19:Je(t,e),$e(e),l&4&&(l=e.updateQueue,l!==null&&(e.updateQueue=null,od(e,l)));break;case 21:break;default:Je(t,e),$e(e)}}function $e(e){var t=e.flags;if(t&2){try{if(e.tag!==27){e:{for(var a=e.return;a!==null;){if(Bg(a)){var l=a;break e}a=a.return}throw Error(S(160))}switch(l.tag){case 27:var o=l.stateNode,r=ad(e);Cn(e,r,o);break;case 5:var u=l.stateNode;l.flags&32&&(Ql(u,""),l.flags&=-33);var i=ad(e);Cn(e,i,u);break;case 3:case 4:var n=l.stateNode.containerInfo,s=ad(e);Wd(e,s,n);break;default:throw Error(S(161))}}}catch(p){Z(e,e.return,p)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function _g(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;_g(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Ft(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Hg(e,t.alternate,t),t=t.sibling}function Il(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:va(4,t,t.return),Il(t);break;case 1:ze(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Fg(t,t.return,a),Il(t);break;case 26:case 27:case 5:ze(t,t.return),Il(t);break;case 22:ze(t,t.return),t.memoizedState===null&&Il(t);break;default:Il(t)}e=e.sibling}}function la(e,t,a){for(a=a&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var l=t.alternate,o=e,r=t,u=r.flags;switch(r.tag){case 0:case 11:case 15:la(o,r,a),pr(4,r);break;case 1:if(la(o,r,a),l=r,o=l.stateNode,typeof o.componentDidMount=="function")try{o.componentDidMount()}catch(s){Z(l,l.return,s)}if(l=r,o=l.updateQueue,o!==null){var i=l.stateNode;try{var n=o.shared.hiddenCallbacks;if(n!==null)for(o.shared.hiddenCallbacks=null,o=0;o<n.length;o++)kg(n[o],i)}catch(s){Z(l,l.return,s)}}a&&u&64&&Og(r),Ba(r,r.return);break;case 26:case 27:case 5:la(o,r,a),a&&l===null&&u&4&&Eg(r),Ba(r,r.return);break;case 12:la(o,r,a);break;case 13:la(o,r,a),a&&u&4&&Vg(o,r);break;case 22:r.memoizedState===null&&la(o,r,a),Ba(r,r.return);break;default:la(o,r,a)}t=t.sibling}}function Uf(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&e.refCount++,a!=null&&fr(a))}function qf(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fr(e))}function aa(e,t,a,l){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Gg(e,t,a,l),t=t.sibling}function Gg(e,t,a,l){var o=t.flags;switch(t.tag){case 0:case 11:case 15:aa(e,t,a,l),o&2048&&pr(9,t);break;case 3:aa(e,t,a,l),o&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&fr(e)));break;case 12:if(o&2048){aa(e,t,a,l),e=t.stateNode;try{var r=t.memoizedProps,u=r.id,i=r.onPostCommit;typeof i=="function"&&i(u,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(n){Z(t,t.return,n)}}else aa(e,t,a,l);break;case 23:break;case 22:r=t.stateNode,t.memoizedState!==null?r._visibility&4?aa(e,t,a,l):Vo(e,t):r._visibility&4?aa(e,t,a,l):(r._visibility|=4,bl(e,t,a,l,(t.subtreeFlags&10256)!==0)),o&2048&&Uf(t.alternate,t);break;case 24:aa(e,t,a,l),o&2048&&qf(t.alternate,t);break;default:aa(e,t,a,l)}}function bl(e,t,a,l,o){for(o=o&&(t.subtreeFlags&10256)!==0,t=t.child;t!==null;){var r=e,u=t,i=a,n=l,s=u.flags;switch(u.tag){case 0:case 11:case 15:bl(r,u,i,n,o),pr(8,u);break;case 23:break;case 22:var p=u.stateNode;u.memoizedState!==null?p._visibility&4?bl(r,u,i,n,o):Vo(r,u):(p._visibility|=4,bl(r,u,i,n,o)),o&&s&2048&&Uf(u.alternate,u);break;case 24:bl(r,u,i,n,o),o&&s&2048&&qf(u.alternate,u);break;default:bl(r,u,i,n,o)}t=t.sibling}}function Vo(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var a=e,l=t,o=l.flags;switch(l.tag){case 22:Vo(a,l),o&2048&&Uf(l.alternate,l);break;case 24:Vo(a,l),o&2048&&qf(l.alternate,l);break;default:Vo(a,l)}t=t.sibling}}var Po=8192;function vl(e){if(e.subtreeFlags&Po)for(e=e.child;e!==null;)Wg(e),e=e.sibling}function Wg(e){switch(e.tag){case 26:vl(e),e.flags&Po&&e.memoizedState!==null&&tv(mt,e.memoizedState,e.memoizedProps);break;case 5:vl(e);break;case 3:case 4:var t=mt;mt=Tn(e.stateNode.containerInfo),vl(e),mt=t;break;case 22:e.memoizedState===null&&(t=e.alternate,t!==null&&t.memoizedState!==null?(t=Po,Po=16777216,vl(e),Po=t):vl(e));break;default:vl(e)}}function Yg(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Co(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Se=l,Qg(l,e)}Yg(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xg(e),e=e.sibling}function Xg(e){switch(e.tag){case 0:case 11:case 15:Co(e),e.flags&2048&&va(9,e,e.return);break;case 3:Co(e);break;case 12:Co(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&4&&(e.return===null||e.return.tag!==13)?(t._visibility&=-5,$i(e)):Co(e);break;default:Co(e)}}function $i(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var l=t[a];Se=l,Qg(l,e)}Yg(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:va(8,t,t.return),$i(t);break;case 22:a=t.stateNode,a._visibility&4&&(a._visibility&=-5,$i(t));break;default:$i(t)}e=e.sibling}}function Qg(e,t){for(;Se!==null;){var a=Se;switch(a.tag){case 0:case 11:case 15:va(8,a,t);break;case 23:case 22:if(a.memoizedState!==null&&a.memoizedState.cachePool!==null){var l=a.memoizedState.cachePool.pool;l!=null&&l.refCount++}break;case 24:fr(a.memoizedState.cache)}if(l=a.child,l!==null)l.return=a,Se=l;else e:for(a=e;Se!==null;){l=Se;var o=l.sibling,r=l.return;if(Ug(l),l===a){Se=null;break e}if(o!==null){o.return=r,Se=o;break e}Se=r}}}function gC(e,t,a,l){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,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 ut(e,t,a,l){return new gC(e,t,a,l)}function Vf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ha(e,t){var a=e.alternate;return a===null?(a=ut(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null),a.flags=e.flags&31457280,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a}function Zg(e,t){e.flags&=31457282;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function en(e,t,a,l,o,r){var u=0;if(l=e,typeof e=="function")Vf(e)&&(u=1);else if(typeof e=="string")u=$C(e,a,vt.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Dl:return Va(a.children,o,r,t);case Kp:u=8,o|=24;break;case pd:return e=ut(12,a,t,o|2),e.elementType=pd,e.lanes=r,e;case hd:return e=ut(13,a,t,o),e.elementType=hd,e.lanes=r,e;case gd:return e=ut(19,a,t,o),e.elementType=gd,e.lanes=r,e;case Jp:return Kg(a,o,r,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Vx:case qt:u=10;break e;case jp:u=9;break e;case nf:u=11;break e;case sf:u=14;break e;case oa:u=16,l=null;break e}u=29,a=Error(S(130,e===null?"null":typeof e,"")),l=null}return t=ut(u,a,t,o),t.elementType=e,t.type=l,t.lanes=r,t}function Va(e,t,a,l){return e=ut(7,e,l,t),e.lanes=a,e}function Kg(e,t,a,l){e=ut(22,e,l,t),e.elementType=Jp,e.lanes=a;var o={_visibility:1,_pendingVisibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null,_current:null,detach:function(){var r=o._current;if(r===null)throw Error(S(456));if((o._pendingVisibility&2)===0){var u=La(r,2);u!==null&&(o._pendingVisibility|=2,Oe(u,r,2))}},attach:function(){var r=o._current;if(r===null)throw Error(S(456));if((o._pendingVisibility&2)!==0){var u=La(r,2);u!==null&&(o._pendingVisibility&=-3,Oe(u,r,2))}}};return e.stateNode=o,e}function rd(e,t,a){return e=ut(6,e,null,t),e.lanes=a,e}function ud(e,t,a){return t=ut(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Et(e){e.flags|=4}function wp(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!yy(t)){if(t=nt.current,t!==null&&((U&4194176)===U?It!==null:(U&62914560)!==U&&(U&536870912)===0||t!==It))throw Oo=Pd,Eh;e.flags|=8192}}function Ui(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?rh():536870912,e.lanes|=t,Jl|=t)}function vo(e,t){if(!z)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var l=null;a!==null;)a.alternate!==null&&(l=a),a=a.sibling;l===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function oe(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,l=0;if(t)for(var o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags&31457280,l|=o.flags&31457280,o.return=e,o=o.sibling;else for(o=e.child;o!==null;)a|=o.lanes|o.childLanes,l|=o.subtreeFlags,l|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=l,e.childLanes=a,t}function yC(e,t,a){var l=t.pendingProps;switch(Cf(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return oe(t),null;case 1:return oe(t),null;case 3:return a=t.stateNode,l=null,e!==null&&(l=e.memoizedState.cache),t.memoizedState.cache!==l&&(t.flags|=2048),Wt(pe),Yl(),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(e===null||e.child===null)&&(xo(t)?Et(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,pt!==null&&(Kd(pt),pt=null))),oe(t),null;case 26:return a=t.memoizedState,e===null?(Et(t),a!==null?(oe(t),wp(t,a)):(oe(t),t.flags&=-16777217)):a?a!==e.memoizedState?(Et(t),oe(t),wp(t,a)):(oe(t),t.flags&=-16777217):(e.memoizedProps!==l&&Et(t),oe(t),t.flags&=-16777217),null;case 27:un(t),a=ca.current;var o=t.type;if(e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Et(t);else{if(!l){if(t.stateNode===null)throw Error(S(166));return oe(t),null}e=vt.current,xo(t)?$m(t,e):(e=py(o,l,a),t.stateNode=e,Et(t))}return oe(t),null;case 5:if(un(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==l&&Et(t);else{if(!l){if(t.stateNode===null)throw Error(S(166));return oe(t),null}if(e=vt.current,xo(t))$m(t,e);else{switch(o=Dn(ca.current),e){case 1:e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":e=o.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":e=o.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":e=o.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof l.is=="string"?o.createElement("select",{is:l.is}):o.createElement("select"),l.multiple?e.multiple=!0:l.size&&(e.size=l.size);break;default:e=typeof l.is=="string"?o.createElement(a,{is:l.is}):o.createElement(a)}}e[Te]=t,e[He]=l;e:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break e;for(;o.sibling===null;){if(o.return===null||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=e;e:switch(Me(e,a,l),a){case"button":case"input":case"select":case"textarea":e=!!l.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Et(t)}}return oe(t),t.flags&=-16777217,null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==l&&Et(t);else{if(typeof l!="string"&&t.stateNode===null)throw Error(S(166));if(e=ca.current,xo(t)){if(e=t.stateNode,a=t.memoizedProps,l=null,o=Re,o!==null)switch(o.tag){case 27:case 5:l=o.memoizedProps}e[Te]=t,e=!!(e.nodeValue===a||l!==null&&l.suppressHydrationWarning===!0||fy(e.nodeValue,a)),e||Ga(t)}else e=Dn(e).createTextNode(l),e[Te]=t,t.stateNode=e}return oe(t),null;case 13:if(l=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(o=xo(t),l!==null&&l.dehydrated!==null){if(e===null){if(!o)throw Error(S(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(S(317));o[Te]=t}else dr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;oe(t),o=!1}else pt!==null&&(Kd(pt),pt=null),o=!0;if(!o)return t.flags&256?(_t(t),t):(_t(t),null)}if(_t(t),(t.flags&128)!==0)return t.lanes=a,t;if(a=l!==null,e=e!==null&&e.memoizedState!==null,a){l=t.child,o=null,l.alternate!==null&&l.alternate.memoizedState!==null&&l.alternate.memoizedState.cachePool!==null&&(o=l.alternate.memoizedState.cachePool.pool);var r=null;l.memoizedState!==null&&l.memoizedState.cachePool!==null&&(r=l.memoizedState.cachePool.pool),r!==o&&(l.flags|=2048)}return a!==e&&a&&(t.child.flags|=8192),Ui(t,t.updateQueue),oe(t),null;case 4:return Yl(),e===null&&Xf(t.stateNode.containerInfo),oe(t),null;case 10:return Wt(t.type),oe(t),null;case 19:if(Ce(he),o=t.memoizedState,o===null)return oe(t),null;if(l=(t.flags&128)!==0,r=o.rendering,r===null)if(l)vo(o,!1);else{if(ne!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(r=hn(e),r!==null){for(t.flags|=128,vo(o,!1),e=r.updateQueue,t.updateQueue=e,Ui(t,e),t.subtreeFlags=0,e=a,a=t.child;a!==null;)Zg(a,e),a=a.sibling;return ae(he,he.current&1|2),t.child}e=e.sibling}o.tail!==null&&wt()>vn&&(t.flags|=128,l=!0,vo(o,!1),t.lanes=4194304)}else{if(!l)if(e=hn(r),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Ui(t,e),vo(o,!0),o.tail===null&&o.tailMode==="hidden"&&!r.alternate&&!z)return oe(t),null}else 2*wt()-o.renderingStartTime>vn&&a!==536870912&&(t.flags|=128,l=!0,vo(o,!1),t.lanes=4194304);o.isBackwards?(r.sibling=t.child,t.child=r):(e=o.last,e!==null?e.sibling=r:t.child=r,o.last=r)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=wt(),t.sibling=null,e=he.current,ae(he,l?e&1|2:e&1),t):(oe(t),null);case 22:case 23:return _t(t),vf(),l=t.memoizedState!==null,e!==null?e.memoizedState!==null!==l&&(t.flags|=8192):l&&(t.flags|=8192),l?(a&536870912)!==0&&(t.flags&128)===0&&(oe(t),t.subtreeFlags&6&&(t.flags|=8192)):oe(t),a=t.updateQueue,a!==null&&Ui(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),l=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(l=t.memoizedState.cachePool.pool),l!==a&&(t.flags|=2048),e!==null&&Ce(qa),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Wt(pe),oe(t),null;case 25:return null}throw Error(S(156,t.tag))}function SC(e,t){switch(Cf(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wt(pe),Yl(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return un(t),null;case 13:if(_t(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(S(340));dr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ce(he),null;case 4:return Yl(),null;case 10:return Wt(t.type),null;case 22:case 23:return _t(t),vf(),e!==null&&Ce(qa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Wt(pe),null;case 25:return null;default:return null}}function jg(e,t){switch(Cf(t),t.tag){case 3:Wt(pe),Yl();break;case 26:case 27:case 5:un(t);break;case 4:Yl();break;case 13:_t(t);break;case 19:Ce(he);break;case 10:Wt(t.type);break;case 22:case 23:_t(t),vf(),e!==null&&Ce(qa);break;case 24:Wt(pe)}}var xC={getCacheForType:function(e){var t=Pe(pe),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a}},LC=typeof WeakMap=="function"?WeakMap:Map,re=0,$=null,F=null,U=0,J=0,Ve=null,Ht=!1,oo=!1,zf=!1,Zt=0,ne=0,wa=0,za=0,_f=0,it=0,Jl=0,zo=null,Ct=null,Yd=!1,Gf=0,vn=1/0,wn=null,ga=null,qi=!1,Fa=null,_o=0,Xd=0,Qd=null,Go=0,Zd=null;function We(){if((re&2)!==0&&U!==0)return U&-U;if(P.T!==null){var e=Kl;return e!==0?e:Yf()}return sh()}function Jg(){it===0&&(it=(U&536870912)===0||z?oh():536870912);var e=nt.current;return e!==null&&(e.flags|=32),it}function Oe(e,t,a){(e===$&&J===2||e.cancelPendingCommit!==null)&&($l(e,0),Ut(e,U,it,!1)),nr(e,a),((re&2)===0||e!==$)&&(e===$&&((re&2)===0&&(za|=a),ne===4&&Ut(e,U,it,!1)),Dt(e))}function $g(e,t,a){if((re&6)!==0)throw Error(S(327));var l=!a&&(t&60)===0&&(t&e.expiredLanes)===0||ir(e,t),o=l?wC(e,t):id(e,t,!0),r=l;do{if(o===0){oo&&!l&&Ut(e,t,0,!1);break}else if(o===6)Ut(e,t,0,!Ht);else{if(a=e.current.alternate,r&&!CC(a)){o=id(e,t,!1),r=!1;continue}if(o===2){if(r=t,e.errorRecoveryDisabledLanes&r)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){t=u;e:{var i=e;o=zo;var n=i.current.memoizedState.isDehydrated;if(n&&($l(i,u).flags|=256),u=id(i,u,!1),u!==2){if(zf&&!n){i.errorRecoveryDisabledLanes|=r,za|=r,o=4;break e}r=Ct,Ct=o,r!==null&&Kd(r)}o=u}if(r=!1,o!==2)continue}}if(o===1){$l(e,0),Ut(e,t,0,!0);break}e:{switch(l=e,o){case 0:case 1:throw Error(S(345));case 4:if((t&4194176)===t){Ut(l,t,it,!Ht);break e}break;case 2:Ct=null;break;case 3:case 5:break;default:throw Error(S(329))}if(l.finishedWork=a,l.finishedLanes=t,(t&62914560)===t&&(r=Gf+300-wt(),10<r)){if(Ut(l,t,it,!Ht),Rn(l,0)!==0)break e;l.timeoutHandle=my(Ip.bind(null,l,a,Ct,wn,Yd,t,it,za,Jl,Ht,2,-0,0),r);break e}Ip(l,a,Ct,wn,Yd,t,it,za,Jl,Ht,0,-0,0)}}break}while(!0);Dt(e)}function Kd(e){Ct===null?Ct=e:Ct.push.apply(Ct,e)}function Ip(e,t,a,l,o,r,u,i,n,s,p,g,f){var h=t.subtreeFlags;if((h&8192||(h&16785408)===16785408)&&(tr={stylesheets:null,count:0,unsuspend:ev},Wg(t),t=av(),t!==null)){e.cancelPendingCommit=t(Mp.bind(null,e,a,l,o,u,i,n,1,g,f)),Ut(e,r,u,!s);return}Mp(e,a,l,o,u,i,n,p,g,f)}function CC(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var l=0;l<a.length;l++){var o=a[l],r=o.getSnapshot;o=o.value;try{if(!Ye(r(),o))return!1}catch(u){return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ut(e,t,a,l){t&=~_f,t&=~za,e.suspendedLanes|=t,e.pingedLanes&=~t,l&&(e.warmLanes|=t),l=e.expirationTimes;for(var o=t;0<o;){var r=31-Ge(o),u=1<<r;l[r]=-1,o&=~u}a!==0&&uh(e,a,t)}function _n(){return(re&6)===0?(hr(0,!1),!1):!0}function Wf(){if(F!==null){if(J===0)var e=F.return;else e=F,Gt=el=null,Pf(e),Vl=null,jo=0,e=F;for(;e!==null;)jg(e.alternate,e),e=e.return;F=null}}function $l(e,t){e.finishedWork=null,e.finishedLanes=0;var a=e.timeoutHandle;a!==-1&&(e.timeoutHandle=-1,HC(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),Wf(),$=e,F=a=ha(e.current,null),U=t,J=0,Ve=null,Ht=!1,oo=ir(e,t),zf=!1,Jl=it=_f=za=wa=ne=0,Ct=zo=null,Yd=!1,(t&8)!==0&&(t|=t&32);var l=e.entangledLanes;if(l!==0)for(e=e.entanglements,l&=t;0<l;){var o=31-Ge(l),r=1<<o;t|=e[o],l&=~r}return Zt=t,Bn(),a}function ey(e,t){R=null,P.H=bt,t===Ro?(t=ap(),J=3):t===Eh?(t=ap(),J=4):J=t===bg?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ve=t,F===null&&(ne=1,xn(e,rt(t,e.current)))}function ty(){var e=P.H;return P.H=bt,e===null?bt:e}function ay(){var e=P.A;return P.A=xC,e}function jd(){ne=4,Ht||(U&4194176)!==U&&nt.current!==null||(oo=!0),(wa&134217727)===0&&(za&134217727)===0||$===null||Ut($,U,it,!1)}function id(e,t,a){var l=re;re|=2;var o=ty(),r=ay();($!==e||U!==t)&&(wn=null,$l(e,t)),t=!1;var u=ne;e:do try{if(J!==0&&F!==null){var i=F,n=Ve;switch(J){case 8:Wf(),u=6;break e;case 3:case 2:case 6:nt.current===null&&(t=!0);var s=J;if(J=0,Ve=null,Bl(e,i,n,s),a&&oo){u=0;break e}break;default:s=J,J=0,Ve=null,Bl(e,i,n,s)}}vC(),u=ne;break}catch(p){ey(e,p)}while(!0);return t&&e.shellSuspendCounter++,Gt=el=null,re=l,P.H=o,P.A=r,F===null&&($=null,U=0,Bn()),u}function vC(){for(;F!==null;)ly(F)}function wC(e,t){var a=re;re|=2;var l=ty(),o=ay();$!==e||U!==t?(wn=null,vn=wt()+500,$l(e,t)):oo=ir(e,t);e:do try{if(J!==0&&F!==null){t=F;var r=Ve;t:switch(J){case 1:J=0,Ve=null,Bl(e,t,r,1);break;case 2:if(tp(r)){J=0,Ve=null,bp(t);break}t=function(){J===2&&$===e&&(J=7),Dt(e)},r.then(t,t);break e;case 3:J=7;break e;case 4:J=5;break e;case 7:tp(r)?(J=0,Ve=null,bp(t)):(J=0,Ve=null,Bl(e,t,r,7));break;case 5:var u=null;switch(F.tag){case 26:u=F.memoizedState;case 5:case 27:var i=F;if(!u||yy(u)){J=0,Ve=null;var n=i.sibling;if(n!==null)F=n;else{var s=i.return;s!==null?(F=s,Gn(s)):F=null}break t}}J=0,Ve=null,Bl(e,t,r,5);break;case 6:J=0,Ve=null,Bl(e,t,r,6);break;case 8:Wf(),ne=6;break e;default:throw Error(S(462))}}IC();break}catch(p){ey(e,p)}while(!0);return Gt=el=null,P.H=l,P.A=o,re=a,F!==null?0:($=null,U=0,Bn(),ne)}function IC(){for(;F!==null&&!Yx();)ly(F)}function ly(e){var t=Ng(e.alternate,e,Zt);e.memoizedProps=e.pendingProps,t===null?Gn(e):F=t}function bp(e){var t=e,a=t.alternate;switch(t.tag){case 15:case 0:t=gp(a,t,t.pendingProps,t.type,void 0,U);break;case 11:t=gp(a,t,t.pendingProps,t.type.render,t.ref,U);break;case 5:Pf(t);default:jg(a,t),t=F=Zg(t,Zt),t=Ng(a,t,Zt)}e.memoizedProps=e.pendingProps,t===null?Gn(e):F=t}function Bl(e,t,a,l){Gt=el=null,Pf(t),Vl=null,jo=0;var o=t.return;try{if(cC(e,o,t,a,U)){ne=1,xn(e,rt(a,e.current)),F=null;return}}catch(r){if(o!==null)throw F=o,r;ne=1,xn(e,rt(a,e.current)),F=null;return}t.flags&32768?(z||l===1?e=!0:oo||(U&536870912)!==0?e=!1:(Ht=e=!0,(l===2||l===3||l===6)&&(l=nt.current,l!==null&&l.tag===13&&(l.flags|=16384))),oy(t,e)):Gn(t)}function Gn(e){var t=e;do{if((t.flags&32768)!==0){oy(t,Ht);return}e=t.return;var a=yC(t.alternate,t,Zt);if(a!==null){F=a;return}if(t=t.sibling,t!==null){F=t;return}F=t=e}while(t!==null);ne===0&&(ne=5)}function oy(e,t){do{var a=SC(e.alternate,e);if(a!==null){a.flags&=32767,F=a;return}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){F=e;return}F=e=a}while(e!==null);ne=6,F=null}function Mp(e,t,a,l,o,r,u,i,n,s){var p=P.T,g=ee.p;try{ee.p=2,P.T=null,bC(e,t,a,l,g,o,r,u,i,n,s)}finally{P.T=p,ee.p=g}}function bC(e,t,a,l,o,r,u,i){do Wl();while(Fa!==null);if((re&6)!==0)throw Error(S(327));var n=e.finishedWork;if(l=e.finishedLanes,n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(S(177));e.callbackNode=null,e.callbackPriority=0,e.cancelPendingCommit=null;var s=n.lanes|n.childLanes;if(s|=Sf,lL(e,l,s,r,u,i),e===$&&(F=$=null,U=0),(n.subtreeFlags&10256)===0&&(n.flags&10256)===0||qi||(qi=!0,Xd=s,Qd=a,PC(nn,function(){return Wl(!0),null})),a=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||a?(a=P.T,P.T=null,r=ee.p,ee.p=2,u=re,re|=4,pC(e,n),zg(n,e),ZL(tf,e.containerInfo),An=!!ef,tf=ef=null,e.current=n,Hg(e,n.alternate,n),Xx(),re=u,ee.p=r,P.T=a):e.current=n,qi?(qi=!1,Fa=e,_o=l):ry(e,s),s=e.pendingLanes,s===0&&(ga=null),Jx(n.stateNode,o),Dt(e),t!==null)for(o=e.onRecoverableError,n=0;n<t.length;n++)s=t[n],o(s.value,{componentStack:s.stack});return(_o&3)!==0&&Wl(),s=e.pendingLanes,(l&4194218)!==0&&(s&42)!==0?e===Zd?Go++:(Go=0,Zd=e):Go=0,hr(0,!1),null}function ry(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,fr(t)))}function Wl(){if(Fa!==null){var e=Fa,t=Xd;Xd=0;var a=nh(_o),l=P.T,o=ee.p;try{if(ee.p=32>a?32:a,P.T=null,Fa===null)var r=!1;else{a=Qd,Qd=null;var u=Fa,i=_o;if(Fa=null,_o=0,(re&6)!==0)throw Error(S(331));var n=re;if(re|=4,Xg(u.current),Gg(u,u.current,i,a),re=n,hr(0,!1),_e&&typeof _e.onPostCommitFiberRoot=="function")try{_e.onPostCommitFiberRoot(ur,u)}catch(s){}r=!0}return r}finally{ee.p=o,P.T=l,ry(e,t)}}return!1}function Dp(e,t,a){t=rt(a,t),t=Ed(e.stateNode,t,2),e=pa(e,t,2),e!==null&&(nr(e,2),Dt(e))}function Z(e,t,a){if(e.tag===3)Dp(e,e,a);else for(;t!==null;){if(t.tag===3){Dp(t,e,a);break}else if(t.tag===1){var l=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(ga===null||!ga.has(l))){e=rt(a,e),a=wg(2),l=pa(t,a,2),l!==null&&(Ig(a,l,t,e),nr(l,2),Dt(l));break}}t=t.return}}function nd(e,t,a){var l=e.pingCache;if(l===null){l=e.pingCache=new LC;var o=new Set;l.set(t,o)}else o=l.get(t),o===void 0&&(o=new Set,l.set(t,o));o.has(a)||(zf=!0,o.add(a),e=MC.bind(null,e,t,a),t.then(e,e))}function MC(e,t,a){var l=e.pingCache;l!==null&&l.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,$===e&&(U&a)===a&&(ne===4||ne===3&&(U&62914560)===U&&300>wt()-Gf?(re&2)===0&&$l(e,0):_f|=a,Jl===U&&(Jl=0)),Dt(e)}function uy(e,t){t===0&&(t=rh()),e=La(e,t),e!==null&&(nr(e,t),Dt(e))}function DC(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),uy(e,a)}function TC(e,t){var a=0;switch(e.tag){case 13:var l=e.stateNode,o=e.memoizedState;o!==null&&(a=o.retryLane);break;case 19:l=e.stateNode;break;case 22:l=e.stateNode._retryCache;break;default:throw Error(S(314))}l!==null&&l.delete(t),uy(e,a)}function PC(e,t){return df(e,t)}var In=null,Ml=null,Jd=!1,bn=!1,sd=!1,_a=0;function Dt(e){e!==Ml&&e.next===null&&(Ml===null?In=Ml=e:Ml=Ml.next=e),bn=!0,Jd||(Jd=!0,AC(NC))}function hr(e,t){if(!sd&&bn){sd=!0;do for(var a=!1,l=In;l!==null;){if(!t)if(e!==0){var o=l.pendingLanes;if(o===0)var r=0;else{var u=l.suspendedLanes,i=l.pingedLanes;r=(1<<31-Ge(42|e)+1)-1,r&=o&~(u&~i),r=r&201326677?r&201326677|1:r?r|2:0}r!==0&&(a=!0,Tp(l,r))}else r=U,r=Rn(l,l===$?r:0),(r&3)===0||ir(l,r)||(a=!0,Tp(l,r));l=l.next}while(a);sd=!1}}function NC(){bn=Jd=!1;var e=0;_a!==0&&(BC()&&(e=_a),_a=0);for(var t=wt(),a=null,l=In;l!==null;){var o=l.next,r=iy(l,t);r===0?(l.next=null,a===null?In=o:a.next=o,o===null&&(Ml=a)):(a=l,(e!==0||(r&3)!==0)&&(bn=!0)),l=o}hr(e,!1)}function iy(e,t){for(var a=e.suspendedLanes,l=e.pingedLanes,o=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var u=31-Ge(r),i=1<<u,n=o[u];n===-1?((i&a)===0||(i&l)!==0)&&(o[u]=aL(i,t)):n<=t&&(e.expiredLanes|=i),r&=~i}if(t=$,a=U,a=Rn(e,e===t?a:0),l=e.callbackNode,a===0||e===t&&J===2||e.cancelPendingCommit!==null)return l!==null&&l!==null&&qs(l),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||ir(e,a)){if(t=a&-a,t===e.callbackPriority)return t;switch(l!==null&&qs(l),nh(a)){case 2:case 8:a=ah;break;case 32:a=nn;break;case 268435456:a=lh;break;default:a=nn}return l=ny.bind(null,e),a=df(a,l),e.callbackPriority=t,e.callbackNode=a,t}return l!==null&&l!==null&&qs(l),e.callbackPriority=2,e.callbackNode=null,2}function ny(e,t){var a=e.callbackNode;if(Wl()&&e.callbackNode!==a)return null;var l=U;return l=Rn(e,e===$?l:0),l===0?null:($g(e,l,t),iy(e,wt()),e.callbackNode!=null&&e.callbackNode===a?ny.bind(null,e):null)}function Tp(e,t){if(Wl())return null;$g(e,t,!0)}function AC(e){UC(function(){(re&6)!==0?df(th,e):e()})}function Yf(){return _a===0&&(_a=oh()),_a}function Pp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xi(""+e)}function Np(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function kC(e,t,a,l,o){if(t==="submit"&&a&&a.stateNode===o){var r=Pp((o[He]||null).action),u=l.submitter;u&&(t=(t=u[He]||null)?Pp(t.formAction):u.getAttribute("formAction"),t!==null&&(r=t,u=null));var i=new On("action","action",null,l,o);e.push({event:i,listeners:[{instance:null,listener:function(){if(l.defaultPrevented){if(_a!==0){var n=u?Np(o,u):new FormData(o);Od(a,{pending:!0,data:n,method:o.method,action:r},null,n)}}else typeof r=="function"&&(i.preventDefault(),n=u?Np(o,u):new FormData(o),Od(a,{pending:!0,data:n,method:o.method,action:r},r,n))},currentTarget:o}]})}}for(Vi=0;Vi<jm.length;Vi++)zi=jm[Vi],Ap=zi.toLowerCase(),kp=zi[0].toUpperCase()+zi.slice(1),gt(Ap,"on"+kp);var zi,Ap,kp,Vi;gt(Ph,"onAnimationEnd");gt(Nh,"onAnimationIteration");gt(Ah,"onAnimationStart");gt("dblclick","onDoubleClick");gt("focusin","onFocus");gt("focusout","onBlur");gt(jL,"onTransitionRun");gt(JL,"onTransitionStart");gt($L,"onTransitionCancel");gt(kh,"onTransitionEnd");Xl("onMouseEnter",["mouseout","mouseover"]);Xl("onMouseLeave",["mouseout","mouseover"]);Xl("onPointerEnter",["pointerout","pointerover"]);Xl("onPointerLeave",["pointerout","pointerover"]);Za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Za("onBeforeInput",["compositionend","keypress","textInput","paste"]);Za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $o="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(" "),RC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($o));function sy(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var l=e[a],o=l.event;l=l.listeners;e:{var r=void 0;if(t)for(var u=l.length-1;0<=u;u--){var i=l[u],n=i.instance,s=i.currentTarget;if(i=i.listener,n!==r&&o.isPropagationStopped())break e;r=i,o.currentTarget=s;try{r(o)}catch(p){Sn(p)}o.currentTarget=null,r=n}else for(u=0;u<l.length;u++){if(i=l[u],n=i.instance,s=i.currentTarget,i=i.listener,n!==r&&o.isPropagationStopped())break e;r=i,o.currentTarget=s;try{r(o)}catch(p){Sn(p)}o.currentTarget=null,r=n}}}}function B(e,t){var a=t[Cd];a===void 0&&(a=t[Cd]=new Set);var l=e+"__bubble";a.has(l)||(dy(t,e,2,!1),a.add(l))}function dd(e,t,a){var l=0;t&&(l|=4),dy(a,e,l,t)}var _i="_reactListening"+Math.random().toString(36).slice(2);function Xf(e){if(!e[_i]){e[_i]=!0,dh.forEach(function(a){a!=="selectionchange"&&(RC.has(a)||dd(a,!1,e),dd(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[_i]||(t[_i]=!0,dd("selectionchange",!1,t))}}function dy(e,t,a,l){switch(vy(t)){case 2:var o=rv;break;case 8:o=uv;break;default:o=jf}a=o.bind(null,t,a,e),o=void 0,!bd||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(o=!0),l?o!==void 0?e.addEventListener(t,a,{capture:!0,passive:o}):e.addEventListener(t,a,!0):o!==void 0?e.addEventListener(t,a,{passive:o}):e.addEventListener(t,a,!1)}function fd(e,t,a,l,o){var r=l;if((t&1)===0&&(t&2)===0&&l!==null)e:for(;;){if(l===null)return;var u=l.tag;if(u===3||u===4){var i=l.stateNode.containerInfo;if(i===o||i.nodeType===8&&i.parentNode===o)break;if(u===4)for(u=l.return;u!==null;){var n=u.tag;if((n===3||n===4)&&(n=u.stateNode.containerInfo,n===o||n.nodeType===8&&n.parentNode===o))return;u=u.return}for(;i!==null;){if(u=Ea(i),u===null)return;if(n=u.tag,n===5||n===6||n===26||n===27){l=r=u;continue e}i=i.parentNode}}l=l.return}Sh(function(){var s=r,p=mf(a),g=[];e:{var f=Rh.get(e);if(f!==void 0){var h=On,L=e;switch(e){case"keypress":if(Zi(a)===0)break e;case"keydown":case"keyup":h=TL;break;case"focusin":L="focus",h=Ws;break;case"focusout":L="blur",h=Ws;break;case"beforeblur":case"afterblur":h=Ws;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":h=qm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=gL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=AL;break;case Ph:case Nh:case Ah:h=xL;break;case kh:h=RL;break;case"scroll":case"scrollend":h=pL;break;case"wheel":h=FL;break;case"copy":case"cut":case"paste":h=CL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=zm;break;case"toggle":case"beforetoggle":h=BL}var I=(t&4)!==0,N=!I&&(e==="scroll"||e==="scrollend"),c=I?f!==null?f+"Capture":null:f;I=[];for(var d=s,m;d!==null;){var y=d;if(m=y.stateNode,y=y.tag,y!==5&&y!==26&&y!==27||m===null||c===null||(y=Xo(d,c),y!=null&&I.push(er(d,y,m))),N)break;d=d.return}0<I.length&&(f=new h(f,L,null,a,p),g.push({event:f,listeners:I}))}}if((t&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",f&&a!==Id&&(L=a.relatedTarget||a.fromElement)&&(Ea(L)||L[ao]))break e;if((h||f)&&(f=p.window===p?p:(f=p.ownerDocument)?f.defaultView||f.parentWindow:window,h?(L=a.relatedTarget||a.toElement,h=s,L=L?Ea(L):null,L!==null&&(N=to(L),I=L.tag,L!==N||I!==5&&I!==27&&I!==6)&&(L=null)):(h=null,L=s),h!==L)){if(I=qm,y="onMouseLeave",c="onMouseEnter",d="mouse",(e==="pointerout"||e==="pointerover")&&(I=zm,y="onPointerLeave",c="onPointerEnter",d="pointer"),N=h==null?f:To(h),m=L==null?f:To(L),f=new I(y,d+"leave",h,a,p),f.target=N,f.relatedTarget=m,y=null,Ea(p)===s&&(I=new I(c,d+"enter",L,a,p),I.target=m,I.relatedTarget=N,y=I),N=y,h&&L)t:{for(I=h,c=L,d=0,m=I;m;m=wl(m))d++;for(m=0,y=c;y;y=wl(y))m++;for(;0<d-m;)I=wl(I),d--;for(;0<m-d;)c=wl(c),m--;for(;d--;){if(I===c||c!==null&&I===c.alternate)break t;I=wl(I),c=wl(c)}I=null}else I=null;h!==null&&Rp(g,f,h,I,!1),L!==null&&N!==null&&Rp(g,N,L,I,!0)}}e:{if(f=s?To(s):window,h=f.nodeName&&f.nodeName.toLowerCase(),h==="select"||h==="input"&&f.type==="file")var C=Ym;else if(Wm(f))if(Ih)C=XL;else{C=WL;var D=GL}else h=f.nodeName,!h||h.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?s&&cf(s.elementType)&&(C=Ym):C=YL;if(C&&(C=C(e,s))){wh(g,C,a,p);break e}D&&D(e,f,s),e==="focusout"&&s&&f.type==="number"&&s.memoizedProps.value!=null&&wd(f,"number",f.value)}switch(D=s?To(s):window,e){case"focusin":(Wm(D)||D.contentEditable==="true")&&(Al=D,Md=s,ko=null);break;case"focusout":ko=Md=Al=null;break;case"mousedown":Dd=!0;break;case"contextmenu":case"mouseup":case"dragend":Dd=!1,Km(g,a,p);break;case"selectionchange":if(KL)break;case"keydown":case"keyup":Km(g,a,p)}var v;if(gf)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Nl?Ch(e,a)&&(b="onCompositionEnd"):e==="keydown"&&a.keyCode===229&&(b="onCompositionStart");b&&(Lh&&a.locale!=="ko"&&(Nl||b!=="onCompositionStart"?b==="onCompositionEnd"&&Nl&&(v=xh()):(fa=p,pf="value"in fa?fa.value:fa.textContent,Nl=!0)),D=Mn(s,b),0<D.length&&(b=new Vm(b,e,null,a,p),g.push({event:b,listeners:D}),v?b.data=v:(v=vh(a),v!==null&&(b.data=v)))),(v=UL?qL(e,a):VL(e,a))&&(b=Mn(s,"onBeforeInput"),0<b.length&&(D=new Vm("onBeforeInput","beforeinput",null,a,p),g.push({event:D,listeners:b}),D.data=v)),kC(g,e,s,a,p)}sy(g,t)})}function er(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Mn(e,t){for(var a=t+"Capture",l=[];e!==null;){var o=e,r=o.stateNode;o=o.tag,o!==5&&o!==26&&o!==27||r===null||(o=Xo(e,a),o!=null&&l.unshift(er(e,o,r)),o=Xo(e,t),o!=null&&l.push(er(e,o,r))),e=e.return}return l}function wl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Rp(e,t,a,l,o){for(var r=t._reactName,u=[];a!==null&&a!==l;){var i=a,n=i.alternate,s=i.stateNode;if(i=i.tag,n!==null&&n===l)break;i!==5&&i!==26&&i!==27||s===null||(n=s,o?(s=Xo(a,r),s!=null&&u.unshift(er(a,s,n))):o||(s=Xo(a,r),s!=null&&u.push(er(a,s,n)))),a=a.return}u.length!==0&&e.push({event:t,listeners:u})}var OC=/\r\n?/g,FC=/\u0000|\uFFFD/g;function Op(e){return(typeof e=="string"?e:""+e).replace(OC,`
`).replace(FC,"")}function fy(e,t){return t=Op(t),Op(e)===t}function Wn(){}function Y(e,t,a,l,o,r){switch(a){case"children":typeof l=="string"?t==="body"||t==="textarea"&&l===""||Ql(e,l):(typeof l=="number"||typeof l=="bigint")&&t!=="body"&&Ql(e,""+l);break;case"className":Ai(e,"class",l);break;case"tabIndex":Ai(e,"tabindex",l);break;case"dir":case"role":case"viewBox":case"width":case"height":Ai(e,a,l);break;case"style":yh(e,l,r);break;case"data":if(t!=="object"){Ai(e,"data",l);break}case"src":case"href":if(l===""&&(t!=="a"||a!=="href")){e.removeAttribute(a);break}if(l==null||typeof l=="function"||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Xi(""+l),e.setAttribute(a,l);break;case"action":case"formAction":if(typeof l=="function"){e.setAttribute(a,"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 r=="function"&&(a==="formAction"?(t!=="input"&&Y(e,t,"name",o.name,o,null),Y(e,t,"formEncType",o.formEncType,o,null),Y(e,t,"formMethod",o.formMethod,o,null),Y(e,t,"formTarget",o.formTarget,o,null)):(Y(e,t,"encType",o.encType,o,null),Y(e,t,"method",o.method,o,null),Y(e,t,"target",o.target,o,null)));if(l==null||typeof l=="symbol"||typeof l=="boolean"){e.removeAttribute(a);break}l=Xi(""+l),e.setAttribute(a,l);break;case"onClick":l!=null&&(e.onclick=Wn);break;case"onScroll":l!=null&&B("scroll",e);break;case"onScrollEnd":l!=null&&B("scrollend",e);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(S(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(S(60));e.innerHTML=a}}break;case"multiple":e.multiple=l&&typeof l!="function"&&typeof l!="symbol";break;case"muted":e.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"){e.removeAttribute("xlink:href");break}a=Xi(""+l),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a);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"?e.setAttribute(a,""+l):e.removeAttribute(a);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"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":l===!0?e.setAttribute(a,""):l!==!1&&l!=null&&typeof l!="function"&&typeof l!="symbol"?e.setAttribute(a,l):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":l!=null&&typeof l!="function"&&typeof l!="symbol"&&!isNaN(l)&&1<=l?e.setAttribute(a,l):e.removeAttribute(a);break;case"rowSpan":case"start":l==null||typeof l=="function"||typeof l=="symbol"||isNaN(l)?e.removeAttribute(a):e.setAttribute(a,l);break;case"popover":B("beforetoggle",e),B("toggle",e),Yi(e,"popover",l);break;case"xlinkActuate":Rt(e,"http://www.w3.org/1999/xlink","xlink:actuate",l);break;case"xlinkArcrole":Rt(e,"http://www.w3.org/1999/xlink","xlink:arcrole",l);break;case"xlinkRole":Rt(e,"http://www.w3.org/1999/xlink","xlink:role",l);break;case"xlinkShow":Rt(e,"http://www.w3.org/1999/xlink","xlink:show",l);break;case"xlinkTitle":Rt(e,"http://www.w3.org/1999/xlink","xlink:title",l);break;case"xlinkType":Rt(e,"http://www.w3.org/1999/xlink","xlink:type",l);break;case"xmlBase":Rt(e,"http://www.w3.org/XML/1998/namespace","xml:base",l);break;case"xmlLang":Rt(e,"http://www.w3.org/XML/1998/namespace","xml:lang",l);break;case"xmlSpace":Rt(e,"http://www.w3.org/XML/1998/namespace","xml:space",l);break;case"is":Yi(e,"is",l);break;case"innerText":case"textContent":break;default:(!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N")&&(a=cL.get(a)||a,Yi(e,a,l))}}function $d(e,t,a,l,o,r){switch(a){case"style":yh(e,l,r);break;case"dangerouslySetInnerHTML":if(l!=null){if(typeof l!="object"||!("__html"in l))throw Error(S(61));if(a=l.__html,a!=null){if(o.children!=null)throw Error(S(60));e.innerHTML=a}}break;case"children":typeof l=="string"?Ql(e,l):(typeof l=="number"||typeof l=="bigint")&&Ql(e,""+l);break;case"onScroll":l!=null&&B("scroll",e);break;case"onScrollEnd":l!=null&&B("scrollend",e);break;case"onClick":l!=null&&(e.onclick=Wn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!fh.hasOwnProperty(a))e:{if(a[0]==="o"&&a[1]==="n"&&(o=a.endsWith("Capture"),t=a.slice(2,o?a.length-7:void 0),r=e[He]||null,r=r!=null?r[a]:null,typeof r=="function"&&e.removeEventListener(t,r,o),typeof l=="function")){typeof r!="function"&&r!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,l,o);break e}a in e?e[a]=l:l===!0?e.setAttribute(a,""):Yi(e,a,l)}}}function Me(e,t,a){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":B("error",e),B("load",e);var l=!1,o=!1,r;for(r in a)if(a.hasOwnProperty(r)){var u=a[r];if(u!=null)switch(r){case"src":l=!0;break;case"srcSet":o=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(S(137,t));default:Y(e,t,r,u,a,null)}}o&&Y(e,t,"srcSet",a.srcSet,a,null),l&&Y(e,t,"src",a.src,a,null);return;case"input":B("invalid",e);var i=r=u=o=null,n=null,s=null;for(l in a)if(a.hasOwnProperty(l)){var p=a[l];if(p!=null)switch(l){case"name":o=p;break;case"type":u=p;break;case"checked":n=p;break;case"defaultChecked":s=p;break;case"value":r=p;break;case"defaultValue":i=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(S(137,t));break;default:Y(e,t,l,p,a,null)}}ph(e,r,i,n,s,u,o,!1),sn(e);return;case"select":B("invalid",e),l=u=r=null;for(o in a)if(a.hasOwnProperty(o)&&(i=a[o],i!=null))switch(o){case"value":r=i;break;case"defaultValue":u=i;break;case"multiple":l=i;default:Y(e,t,o,i,a,null)}t=r,a=u,e.multiple=!!l,t!=null?Ul(e,!!l,t,!1):a!=null&&Ul(e,!!l,a,!0);return;case"textarea":B("invalid",e),r=o=l=null;for(u in a)if(a.hasOwnProperty(u)&&(i=a[u],i!=null))switch(u){case"value":l=i;break;case"defaultValue":o=i;break;case"children":r=i;break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(S(91));break;default:Y(e,t,u,i,a,null)}gh(e,l,o,r),sn(e);return;case"option":for(n in a)if(a.hasOwnProperty(n)&&(l=a[n],l!=null))switch(n){case"selected":e.selected=l&&typeof l!="function"&&typeof l!="symbol";break;default:Y(e,t,n,l,a,null)}return;case"dialog":B("cancel",e),B("close",e);break;case"iframe":case"object":B("load",e);break;case"video":case"audio":for(l=0;l<$o.length;l++)B($o[l],e);break;case"image":B("error",e),B("load",e);break;case"details":B("toggle",e);break;case"embed":case"source":case"link":B("error",e),B("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(s in a)if(a.hasOwnProperty(s)&&(l=a[s],l!=null))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(S(137,t));default:Y(e,t,s,l,a,null)}return;default:if(cf(t)){for(p in a)a.hasOwnProperty(p)&&(l=a[p],l!==void 0&&$d(e,t,p,l,a,void 0));return}}for(i in a)a.hasOwnProperty(i)&&(l=a[i],l!=null&&Y(e,t,i,l,a,null))}function EC(e,t,a,l){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var o=null,r=null,u=null,i=null,n=null,s=null,p=null;for(h in a){var g=a[h];if(a.hasOwnProperty(h)&&g!=null)switch(h){case"checked":break;case"value":break;case"defaultValue":n=g;default:l.hasOwnProperty(h)||Y(e,t,h,null,l,g)}}for(var f in l){var h=l[f];if(g=a[f],l.hasOwnProperty(f)&&(h!=null||g!=null))switch(f){case"type":r=h;break;case"name":o=h;break;case"checked":s=h;break;case"defaultChecked":p=h;break;case"value":u=h;break;case"defaultValue":i=h;break;case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(S(137,t));break;default:h!==g&&Y(e,t,f,h,l,g)}}vd(e,u,i,n,s,p,r,o);return;case"select":h=u=i=f=null;for(r in a)if(n=a[r],a.hasOwnProperty(r)&&n!=null)switch(r){case"value":break;case"multiple":h=n;default:l.hasOwnProperty(r)||Y(e,t,r,null,l,n)}for(o in l)if(r=l[o],n=a[o],l.hasOwnProperty(o)&&(r!=null||n!=null))switch(o){case"value":f=r;break;case"defaultValue":i=r;break;case"multiple":u=r;default:r!==n&&Y(e,t,o,r,l,n)}t=i,a=u,l=h,f!=null?Ul(e,!!a,f,!1):!!l!=!!a&&(t!=null?Ul(e,!!a,t,!0):Ul(e,!!a,a?[]:"",!1));return;case"textarea":h=f=null;for(i in a)if(o=a[i],a.hasOwnProperty(i)&&o!=null&&!l.hasOwnProperty(i))switch(i){case"value":break;case"children":break;default:Y(e,t,i,null,l,o)}for(u in l)if(o=l[u],r=a[u],l.hasOwnProperty(u)&&(o!=null||r!=null))switch(u){case"value":f=o;break;case"defaultValue":h=o;break;case"children":break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(S(91));break;default:o!==r&&Y(e,t,u,o,l,r)}hh(e,f,h);return;case"option":for(var L in a)if(f=a[L],a.hasOwnProperty(L)&&f!=null&&!l.hasOwnProperty(L))switch(L){case"selected":e.selected=!1;break;default:Y(e,t,L,null,l,f)}for(n in l)if(f=l[n],h=a[n],l.hasOwnProperty(n)&&f!==h&&(f!=null||h!=null))switch(n){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:Y(e,t,n,f,l,h)}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 I in a)f=a[I],a.hasOwnProperty(I)&&f!=null&&!l.hasOwnProperty(I)&&Y(e,t,I,null,l,f);for(s in l)if(f=l[s],h=a[s],l.hasOwnProperty(s)&&f!==h&&(f!=null||h!=null))switch(s){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(S(137,t));break;default:Y(e,t,s,f,l,h)}return;default:if(cf(t)){for(var N in a)f=a[N],a.hasOwnProperty(N)&&f!==void 0&&!l.hasOwnProperty(N)&&$d(e,t,N,void 0,l,f);for(p in l)f=l[p],h=a[p],!l.hasOwnProperty(p)||f===h||f===void 0&&h===void 0||$d(e,t,p,f,l,h);return}}for(var c in a)f=a[c],a.hasOwnProperty(c)&&f!=null&&!l.hasOwnProperty(c)&&Y(e,t,c,null,l,f);for(g in l)f=l[g],h=a[g],!l.hasOwnProperty(g)||f===h||f==null&&h==null||Y(e,t,g,f,l,h)}var ef=null,tf=null;function Dn(e){return e.nodeType===9?e:e.ownerDocument}function Fp(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function cy(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function af(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var cd=null;function BC(){var e=window.event;return e&&e.type==="popstate"?e===cd?!1:(cd=e,!0):(cd=null,!1)}var my=typeof setTimeout=="function"?setTimeout:void 0,HC=typeof clearTimeout=="function"?clearTimeout:void 0,Ep=typeof Promise=="function"?Promise:void 0,UC=typeof queueMicrotask=="function"?queueMicrotask:typeof Ep!="undefined"?function(e){return Ep.resolve(null).then(e).catch(qC)}:my;function qC(e){setTimeout(function(){throw e})}function md(e,t){var a=t,l=0;do{var o=a.nextSibling;if(e.removeChild(a),o&&o.nodeType===8)if(a=o.data,a==="/$"){if(l===0){e.removeChild(o),rr(t);return}l--}else a!=="$"&&a!=="$?"&&a!=="$!"||l++;a=o}while(a);rr(t)}function lf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":lf(a),ff(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function VC(e,t,a,l){for(;e.nodeType===1;){var o=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!l&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(l){if(!e[Yo])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(r=e.getAttribute("rel"),r==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(r!==o.rel||e.getAttribute("href")!==(o.href==null?null:o.href)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin)||e.getAttribute("title")!==(o.title==null?null:o.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(o.src==null?null:o.src)||e.getAttribute("type")!==(o.type==null?null:o.type)||e.getAttribute("crossorigin")!==(o.crossOrigin==null?null:o.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var r=o.name==null?null:""+o.name;if(o.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=ht(e.nextSibling),e===null)break}return null}function zC(e,t,a){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a||(e=ht(e.nextSibling),e===null))return null;return e}function ht(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="F!"||t==="F")break;if(t==="/$")return null}}return e}function Bp(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a==="$"||a==="$!"||a==="$?"){if(t===0)return e;t--}else a==="/$"&&t++}e=e.previousSibling}return null}function py(e,t,a){switch(t=Dn(a),e){case"html":if(e=t.documentElement,!e)throw Error(S(452));return e;case"head":if(e=t.head,!e)throw Error(S(453));return e;case"body":if(e=t.body,!e)throw Error(S(454));return e;default:throw Error(S(451))}}var st=new Map,Hp=new Set;function Tn(e){return typeof e.getRootNode=="function"?e.getRootNode():e.ownerDocument}var Kt=ee.d;ee.d={f:_C,r:GC,D:WC,C:YC,L:XC,m:QC,X:KC,S:ZC,M:jC};function _C(){var e=Kt.f(),t=_n();return e||t}function GC(e){var t=lo(e);t!==null&&t.tag===5&&t.type==="form"?pg(t):Kt.r(e)}var ro=typeof document=="undefined"?null:document;function hy(e,t,a){var l=ro;if(l&&typeof t=="string"&&t){var o=ot(t);o='link[rel="'+e+'"][href="'+o+'"]',typeof a=="string"&&(o+='[crossorigin="'+a+'"]'),Hp.has(o)||(Hp.add(o),e={rel:e,crossOrigin:a,href:t},l.querySelector(o)===null&&(t=l.createElement("link"),Me(t,"link",e),xe(t),l.head.appendChild(t)))}}function WC(e){Kt.D(e),hy("dns-prefetch",e,null)}function YC(e,t){Kt.C(e,t),hy("preconnect",e,t)}function XC(e,t,a){Kt.L(e,t,a);var l=ro;if(l&&e&&t){var o='link[rel="preload"][as="'+ot(t)+'"]';t==="image"&&a&&a.imageSrcSet?(o+='[imagesrcset="'+ot(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(o+='[imagesizes="'+ot(a.imageSizes)+'"]')):o+='[href="'+ot(e)+'"]';var r=o;switch(t){case"style":r=eo(e);break;case"script":r=uo(e)}st.has(r)||(e=te({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),st.set(r,e),l.querySelector(o)!==null||t==="style"&&l.querySelector(gr(r))||t==="script"&&l.querySelector(yr(r))||(t=l.createElement("link"),Me(t,"link",e),xe(t),l.head.appendChild(t)))}}function QC(e,t){Kt.m(e,t);var a=ro;if(a&&e){var l=t&&typeof t.as=="string"?t.as:"script",o='link[rel="modulepreload"][as="'+ot(l)+'"][href="'+ot(e)+'"]',r=o;switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=uo(e)}if(!st.has(r)&&(e=te({rel:"modulepreload",href:e},t),st.set(r,e),a.querySelector(o)===null)){switch(l){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(yr(r)))return}l=a.createElement("link"),Me(l,"link",e),xe(l),a.head.appendChild(l)}}}function ZC(e,t,a){Kt.S(e,t,a);var l=ro;if(l&&e){var o=Hl(l).hoistableStyles,r=eo(e);t=t||"default";var u=o.get(r);if(!u){var i={loading:0,preload:null};if(u=l.querySelector(gr(r)))i.loading=5;else{e=te({rel:"stylesheet",href:e,"data-precedence":t},a),(a=st.get(r))&&Qf(e,a);var n=u=l.createElement("link");xe(n),Me(n,"link",e),n._p=new Promise(function(s,p){n.onload=s,n.onerror=p}),n.addEventListener("load",function(){i.loading|=1}),n.addEventListener("error",function(){i.loading|=2}),i.loading|=4,tn(u,t,l)}u={type:"stylesheet",instance:u,count:1,state:i},o.set(r,u)}}}function KC(e,t){Kt.X(e,t);var a=ro;if(a&&e){var l=Hl(a).hoistableScripts,o=uo(e),r=l.get(o);r||(r=a.querySelector(yr(o)),r||(e=te({src:e,async:!0},t),(t=st.get(o))&&Zf(e,t),r=a.createElement("script"),xe(r),Me(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(o,r))}}function jC(e,t){Kt.M(e,t);var a=ro;if(a&&e){var l=Hl(a).hoistableScripts,o=uo(e),r=l.get(o);r||(r=a.querySelector(yr(o)),r||(e=te({src:e,async:!0,type:"module"},t),(t=st.get(o))&&Zf(e,t),r=a.createElement("script"),xe(r),Me(r,"link",e),a.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},l.set(o,r))}}function Up(e,t,a,l){var o=(o=ca.current)?Tn(o):null;if(!o)throw Error(S(446));switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(t=eo(a.href),a=Hl(o).hoistableStyles,l=a.get(t),l||(l={type:"style",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){e=eo(a.href);var r=Hl(o).hoistableStyles,u=r.get(e);if(u||(o=o.ownerDocument||o,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,u),(r=o.querySelector(gr(e)))&&!r._p&&(u.instance=r,u.state.loading=5),st.has(e)||(a={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy},st.set(e,a),r||JC(o,e,a,u.state))),t&&l===null)throw Error(S(528,""));return u}if(t&&l!==null)throw Error(S(529,""));return null;case"script":return t=a.async,a=a.src,typeof a=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=uo(a),a=Hl(o).hoistableScripts,l=a.get(t),l||(l={type:"script",instance:null,count:0,state:null},a.set(t,l)),l):{type:"void",instance:null,count:0,state:null};default:throw Error(S(444,e))}}function eo(e){return'href="'+ot(e)+'"'}function gr(e){return'link[rel="stylesheet"]['+e+"]"}function gy(e){return te({},e,{"data-precedence":e.precedence,precedence:null})}function JC(e,t,a,l){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?l.loading=1:(t=e.createElement("link"),l.preload=t,t.addEventListener("load",function(){return l.loading|=1}),t.addEventListener("error",function(){return l.loading|=2}),Me(t,"link",a),xe(t),e.head.appendChild(t))}function uo(e){return'[src="'+ot(e)+'"]'}function yr(e){return"script[async]"+e}function qp(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var l=e.querySelector('style[data-href~="'+ot(a.href)+'"]');if(l)return t.instance=l,xe(l),l;var o=te({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return l=(e.ownerDocument||e).createElement("style"),xe(l),Me(l,"style",o),tn(l,a.precedence,e),t.instance=l;case"stylesheet":o=eo(a.href);var r=e.querySelector(gr(o));if(r)return t.state.loading|=4,t.instance=r,xe(r),r;l=gy(a),(o=st.get(o))&&Qf(l,o),r=(e.ownerDocument||e).createElement("link"),xe(r);var u=r;return u._p=new Promise(function(i,n){u.onload=i,u.onerror=n}),Me(r,"link",l),t.state.loading|=4,tn(r,a.precedence,e),t.instance=r;case"script":return r=uo(a.src),(o=e.querySelector(yr(r)))?(t.instance=o,xe(o),o):(l=a,(o=st.get(r))&&(l=te({},a),Zf(l,o)),e=e.ownerDocument||e,o=e.createElement("script"),xe(o),Me(o,"link",l),e.head.appendChild(o),t.instance=o);case"void":return null;default:throw Error(S(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(l=t.instance,t.state.loading|=4,tn(l,a.precedence,e));return t.instance}function tn(e,t,a){for(var l=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),o=l.length?l[l.length-1]:null,r=o,u=0;u<l.length;u++){var i=l[u];if(i.dataset.precedence===t)r=i;else if(r!==o)break}r?r.parentNode.insertBefore(e,r.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Qf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Zf(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var an=null;function Vp(e,t,a){if(an===null){var l=new Map,o=an=new Map;o.set(a,l)}else o=an,l=o.get(a),l||(l=new Map,o.set(a,l));if(l.has(e))return l;for(l.set(e,null),a=a.getElementsByTagName(e),o=0;o<a.length;o++){var r=a[o];if(!(r[Yo]||r[Te]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var u=r.getAttribute(t)||"";u=e+u;var i=l.get(u);i?i.push(r):l.set(u,[r])}}return l}function zp(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function $C(e,t,a){if(a===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function yy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var tr=null;function ev(){}function tv(e,t,a){if(tr===null)throw Error(S(475));var l=tr;if(t.type==="stylesheet"&&(typeof a.media!="string"||matchMedia(a.media).matches!==!1)&&(t.state.loading&4)===0){if(t.instance===null){var o=eo(a.href),r=e.querySelector(gr(o));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(l.count++,l=Pn.bind(l),e.then(l,l)),t.state.loading|=4,t.instance=r,xe(r);return}r=e.ownerDocument||e,a=gy(a),(o=st.get(o))&&Qf(a,o),r=r.createElement("link"),xe(r);var u=r;u._p=new Promise(function(i,n){u.onload=i,u.onerror=n}),Me(r,"link",a),t.instance=r}l.stylesheets===null&&(l.stylesheets=new Map),l.stylesheets.set(t,e),(e=t.state.preload)&&(t.state.loading&3)===0&&(l.count++,t=Pn.bind(l),e.addEventListener("load",t),e.addEventListener("error",t))}}function av(){if(tr===null)throw Error(S(475));var e=tr;return e.stylesheets&&e.count===0&&of(e,e.stylesheets),0<e.count?function(t){var a=setTimeout(function(){if(e.stylesheets&&of(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},6e4);return e.unsuspend=t,function(){e.unsuspend=null,clearTimeout(a)}}:null}function Pn(){if(this.count--,this.count===0){if(this.stylesheets)of(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Nn=null;function of(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Nn=new Map,t.forEach(lv,e),Nn=null,Pn.call(e))}function lv(e,t){if(!(t.state.loading&4)){var a=Nn.get(e);if(a)var l=a.get(null);else{a=new Map,Nn.set(e,a);for(var o=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<o.length;r++){var u=o[r];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(a.set(u.dataset.precedence,u),l=u)}l&&a.set(null,l)}o=t.instance,u=o.getAttribute("data-precedence"),r=a.get(u)||l,r===l&&a.set(null,o),a.set(u,o),this.count++,l=Pn.bind(this),o.addEventListener("load",l),o.addEventListener("error",l),r?r.parentNode.insertBefore(o,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(o,e.firstChild)),t.state.loading|=4}}var ar={$$typeof:qt,Provider:null,Consumer:null,_currentValue:Ha,_currentValue2:Ha,_threadCount:0};function ov(e,t,a,l,o,r,u,i){this.tag=1,this.containerInfo=e,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=Vs(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.finishedLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Vs(0),this.hiddenUpdates=Vs(null),this.identifierPrefix=l,this.onUncaughtError=o,this.onCaughtError=r,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=i,this.incompleteTransitions=new Map}function Sy(e,t,a,l,o,r,u,i,n,s,p,g){return e=new ov(e,t,a,u,i,n,s,g),t=1,r===!0&&(t|=24),r=ut(3,null,null,t),e.current=r,r.stateNode=e,t=wf(),t.refCount++,e.pooledCache=t,t.refCount++,r.memoizedState={element:l,isDehydrated:a,cache:t},Hf(r),e}function xy(e){return e?(e=Ol,e):Ol}function Ly(e,t,a,l,o,r){o=xy(o),l.context===null?l.context=o:l.pendingContext=o,l=ma(t),l.payload={element:a},r=r===void 0?null:r,r!==null&&(l.callback=r),a=pa(e,l,t),a!==null&&(Oe(a,e,t),Ho(a,e,t))}function _p(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Kf(e,t){_p(e,t),(e=e.alternate)&&_p(e,t)}function Cy(e){if(e.tag===13){var t=La(e,67108864);t!==null&&Oe(t,e,67108864),Kf(e,67108864)}}var An=!0;function rv(e,t,a,l){var o=P.T;P.T=null;var r=ee.p;try{ee.p=2,jf(e,t,a,l)}finally{ee.p=r,P.T=o}}function uv(e,t,a,l){var o=P.T;P.T=null;var r=ee.p;try{ee.p=8,jf(e,t,a,l)}finally{ee.p=r,P.T=o}}function jf(e,t,a,l){if(An){var o=rf(l);if(o===null)fd(e,t,l,kn,a),Gp(e,l);else if(nv(o,e,t,a,l))l.stopPropagation();else if(Gp(e,l),t&4&&-1<iv.indexOf(e)){for(;o!==null;){var r=lo(o);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var u=Ra(r.pendingLanes);if(u!==0){var i=r;for(i.pendingLanes|=2,i.entangledLanes|=2;u;){var n=1<<31-Ge(u);i.entanglements[1]|=n,u&=~n}Dt(r),(re&6)===0&&(vn=wt()+500,hr(0,!1))}}break;case 13:i=La(r,2),i!==null&&Oe(i,r,2),_n(),Kf(r,2)}if(r=rf(l),r===null&&fd(e,t,l,kn,a),r===o)break;o=r}o!==null&&l.stopPropagation()}else fd(e,t,l,null,a)}}function rf(e){return e=mf(e),Jf(e)}var kn=null;function Jf(e){if(kn=null,e=Ea(e),e!==null){var t=to(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=$p(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return kn=e,null}function vy(e){switch(e){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(Qx()){case th:return 2;case ah:return 8;case nn:case Zx:return 32;case lh:return 268435456;default:return 32}default:return 32}}var uf=!1,ya=null,Sa=null,xa=null,lr=new Map,or=new Map,sa=[],iv="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 Gp(e,t){switch(e){case"focusin":case"focusout":ya=null;break;case"dragenter":case"dragleave":Sa=null;break;case"mouseover":case"mouseout":xa=null;break;case"pointerover":case"pointerout":lr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":or.delete(t.pointerId)}}function wo(e,t,a,l,o,r){return e===null||e.nativeEvent!==r?(e={blockedOn:t,domEventName:a,eventSystemFlags:l,nativeEvent:r,targetContainers:[o]},t!==null&&(t=lo(t),t!==null&&Cy(t)),e):(e.eventSystemFlags|=l,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function nv(e,t,a,l,o){switch(t){case"focusin":return ya=wo(ya,e,t,a,l,o),!0;case"dragenter":return Sa=wo(Sa,e,t,a,l,o),!0;case"mouseover":return xa=wo(xa,e,t,a,l,o),!0;case"pointerover":var r=o.pointerId;return lr.set(r,wo(lr.get(r)||null,e,t,a,l,o)),!0;case"gotpointercapture":return r=o.pointerId,or.set(r,wo(or.get(r)||null,e,t,a,l,o)),!0}return!1}function wy(e){var t=Ea(e.target);if(t!==null){var a=to(t);if(a!==null){if(t=a.tag,t===13){if(t=$p(a),t!==null){e.blockedOn=t,oL(e.priority,function(){if(a.tag===13){var l=We(),o=La(a,l);o!==null&&Oe(o,a,l),Kf(a,l)}});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function ln(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=rf(e.nativeEvent);if(a===null){a=e.nativeEvent;var l=new a.constructor(a.type,a);Id=l,a.target.dispatchEvent(l),Id=null}else return t=lo(a),t!==null&&Cy(t),e.blockedOn=a,!1;t.shift()}return!0}function Wp(e,t,a){ln(e)&&a.delete(t)}function sv(){uf=!1,ya!==null&&ln(ya)&&(ya=null),Sa!==null&&ln(Sa)&&(Sa=null),xa!==null&&ln(xa)&&(xa=null),lr.forEach(Wp),or.forEach(Wp)}function Gi(e,t){e.blockedOn===t&&(e.blockedOn=null,uf||(uf=!0,ge.unstable_scheduleCallback(ge.unstable_NormalPriority,sv)))}var Wi=null;function Yp(e){Wi!==e&&(Wi=e,ge.unstable_scheduleCallback(ge.unstable_NormalPriority,function(){Wi===e&&(Wi=null);for(var t=0;t<e.length;t+=3){var a=e[t],l=e[t+1],o=e[t+2];if(typeof l!="function"){if(Jf(l||a)===null)continue;break}var r=lo(a);r!==null&&(e.splice(t,3),t-=3,Od(r,{pending:!0,data:o,method:a.method,action:l},l,o))}}))}function rr(e){function t(n){return Gi(n,e)}ya!==null&&Gi(ya,e),Sa!==null&&Gi(Sa,e),xa!==null&&Gi(xa,e),lr.forEach(t),or.forEach(t);for(var a=0;a<sa.length;a++){var l=sa[a];l.blockedOn===e&&(l.blockedOn=null)}for(;0<sa.length&&(a=sa[0],a.blockedOn===null);)wy(a),a.blockedOn===null&&sa.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(l=0;l<a.length;l+=3){var o=a[l],r=a[l+1],u=o[He]||null;if(typeof r=="function")u||Yp(a);else if(u){var i=null;if(r&&r.hasAttribute("formAction")){if(o=r,u=r[He]||null)i=u.formAction;else if(Jf(o)!==null)continue}else i=u.action;typeof i=="function"?a[l+1]=i:(a.splice(l,3),l-=3),Yp(a)}}}function $f(e){this._internalRoot=e}Yn.prototype.render=$f.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(S(409));var a=t.current,l=We();Ly(a,l,e,t,null,null)};Yn.prototype.unmount=$f.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;e.tag===0&&Wl(),Ly(e.current,2,null,e,null,null),_n(),t[ao]=null}};function Yn(e){this._internalRoot=e}Yn.prototype.unstable_scheduleHydration=function(e){if(e){var t=sh();e={blockedOn:null,target:e,priority:t};for(var a=0;a<sa.length&&t!==0&&t<sa[a].priority;a++);sa.splice(a,0,e),a===0&&wy(e)}};var Xp=Qp.version;if(Xp!=="19.0.0")throw Error(S(527,Xp,"19.0.0"));ee.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(S(188)):(e=Object.keys(e).join(","),Error(S(268,e)));return e=Wx(t),e=e!==null?eh(e):null,e=e===null?null:e.stateNode,e};var dv={bundleType:0,version:"19.0.0",rendererPackageName:"react-dom",currentDispatcherRef:P,findFiberByHostInstance:Ea,reconcilerVersion:"19.0.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&(Io=__REACT_DEVTOOLS_GLOBAL_HOOK__,!Io.isDisabled&&Io.supportsFiber))try{ur=Io.inject(dv),_e=Io}catch(e){}var Io;Xn.createRoot=function(e,t){if(!Zp(e))throw Error(S(299));var a=!1,l="",o=Lg,r=Cg,u=vg,i=null;return t!=null&&(t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(r=t.onCaughtError),t.onRecoverableError!==void 0&&(u=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(i=t.unstable_transitionCallbacks)),t=Sy(e,1,!1,null,null,a,l,o,r,u,i,null),e[ao]=t.current,Xf(e.nodeType===8?e.parentNode:e),new $f(t)};Xn.hydrateRoot=function(e,t,a){if(!Zp(e))throw Error(S(299));var l=!1,o="",r=Lg,u=Cg,i=vg,n=null,s=null;return a!=null&&(a.unstable_strictMode===!0&&(l=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(r=a.onUncaughtError),a.onCaughtError!==void 0&&(u=a.onCaughtError),a.onRecoverableError!==void 0&&(i=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(n=a.unstable_transitionCallbacks),a.formState!==void 0&&(s=a.formState)),t=Sy(e,1,!0,t,a!=null?a:null,l,o,r,u,i,n,s),t.context=xy(null),a=t.current,l=We(),o=ma(l),o.callback=null,pa(a,o,l),t.current.lanes=l,nr(t,l),Dt(t),e[ao]=t.current,Xf(e),new Yn(t)};Xn.version="19.0.0"});var Dy=St((JN,My)=>{"use strict";function by(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(by)}catch(e){console.error(e)}}by(),My.exports=Iy()});var Uy=St(Jn=>{"use strict";var fv=Symbol.for("react.transitional.element"),cv=Symbol.for("react.fragment");function Hy(e,t,a){var l=null;if(a!==void 0&&(l=""+a),t.key!==void 0&&(l=""+t.key),"key"in t){a={};for(var o in t)o!=="key"&&(a[o]=t[o])}else a=t;return t=a.ref,{$$typeof:fv,type:e,key:l,ref:t!==void 0?t:null,props:a}}Jn.Fragment=cv;Jn.jsx=Hy;Jn.jsxs=Hy});var de=St((MA,qy)=>{"use strict";qy.exports=Uy()});var mv={};gS(mv,{default:()=>Ss});module.exports=yS(mv);var sS=require("obsidian");var br=class{constructor(t){this.plugin=t}async getSettings(t){let a=await this.plugin.loadData();return{...t,...a}}async storeSettings(t){await this.plugin.saveData(t)}};var Mr={displayDateTemplate:"HH:mm",useCreatedOnDateFromProperties:!1,createdOnDatePropertyName:"created_on",createdOnPropertyFormat:"yyyy/MM/dd HH:mm",sortNotes:"ascending"};var Dr={displayNotesCreatedOnDate:!1,displayNoteIndicator:!0,useModifierKeyToCreateNote:!1,firstDayOfWeek:1,weekNumberStandard:0};var ol={nameTemplate:"yyyy-MM-dd",folder:"Daily notes",templateFile:"Templates/Daily note"},rl={nameTemplate:"yyyy-ww",folder:"Weekly notes",templateFile:"Templates/Weekly note"},ul={nameTemplate:"yyyy-MM",folder:"Monthly notes",templateFile:"Templates/Monthly note"},il={nameTemplate:"yyyy-qqq",folder:"Quarterly notes",templateFile:"Templates/Quarterly note"},nl={nameTemplate:"yyyy",folder:"Yearly notes",templateFile:"Templates/Yearly note"};var _={generalSettings:Dr,notesSettings:Mr,dailyNotes:ol,weeklyNotes:rl,monthlyNotes:ul,quarterlyNotes:il,yearlyNotes:nl};var Tr=class{constructor(t){this.adapter=t}async store(t){let l={...await this.adapter.getSettings(_),dailyNotes:t};await this.adapter.storeSettings(l)}async get(){let t=await this.adapter.getSettings(_);return{...ol,...t.dailyNotes}}};var Pr=class{constructor(t){this.adapter=t}async store(t){await this.adapter.storeSettings(t)}async get(){return await this.adapter.getSettings(_)}};var Nr=class{constructor(t){this.adapter=t}async store(t){let l={...await this.adapter.getSettings(_),generalSettings:t};await this.adapter.storeSettings(l)}async get(){let t=await this.adapter.getSettings(_);return{...Dr,...t.generalSettings}}};var Ar=class{constructor(t){this.adapter=t}async store(t){let l={...await this.adapter.getSettings(_),weeklyNotes:t};await this.adapter.storeSettings(l)}async get(){let t=await this.adapter.getSettings(_);return{...rl,...t.weeklyNotes}}};var kr=class{constructor(t){this.adapter=t}async store(t){let l={...await this.adapter.getSettings(_),monthlyNotes:t};await this.adapter.storeSettings(l)}async get(){let t=await this.adapter.getSettings(_);return{...ul,...t.monthlyNotes}}};var Rr=class{constructor(t){this.adapter=t}async store(t){let l={...await this.adapter.getSettings(_),quarterlyNotes:t};await this.adapter.storeSettings(l)}async get(){let t=await this.adapter.getSettings(_);return{...il,...t.quarterlyNotes}}};var Or=class{constructor(t){this.adapter=t}async store(t){let l={...await this.adapter.getSettings(_),yearlyNotes:t};await this.adapter.storeSettings(l)}async get(){let t=await this.adapter.getSettings(_);return{...nl,...t.yearlyNotes}}};var Fr=class{constructor(t){this.adapter=t}async store(t){let l={...await this.adapter.getSettings(_),notesSettings:t};await this.adapter.storeSettings(l)}async get(){let t=await this.adapter.getSettings(_);return{...Mr,...t.notesSettings}}};var Er=class{constructor(t){this.adapter=t}getRepository(t){switch(t){case"plugin":return new Pr(this.adapter);case"displayNotes":return new Fr(this.adapter);case"general":return new Nr(this.adapter);case"dailyNote":return new Tr(this.adapter);case"weeklyNote":return new Ar(this.adapter);case"monthlyNote":return new kr(this.adapter);case"quarterlyNote":return new Rr(this.adapter);case"yearlyNote":return new Or(this.adapter)}}};String.prototype.appendMarkdownExtension=function(){let e=".md";return this.endsWith(e)?this:this+e};String.prototype.removeMarkdownExtension=function(){let e=".md";return this.endsWith(e)?this.replace(e,""):this};Date.prototype.isSameMonth=function(e){return e?this.getMonth()===e.date.getMonth()&&this.getFullYear()===e.date.getFullYear():!1};Date.prototype.calculate=function(e){if(!e)return this;let t=new Date(this);switch(e.operator){case"+":switch(e.unit){case"d":t.setDate(t.getDate()+e.value);break;case"w":t.setDate(t.getDate()+e.value*7);break;case"m":t.setMonth(t.getMonth()+e.value);break;case"y":t.setFullYear(t.getFullYear()+e.value);break}break;case"-":switch(e.unit){case"d":t.setDate(t.getDate()-e.value);break;case"w":t.setDate(t.getDate()-e.value*7);break;case"m":t.setMonth(t.getMonth()-e.value);break;case"y":t.setFullYear(t.getFullYear()-e.value);break}break}return t};var Br=class{constructor(t){this.dateParser=t.getParser()}withPath(t){return this.pathTemplate=t,this}withName(t){return this.nameTemplate=t,this}withValue(t){return this.period=t,this}build(){var l;if(this.period){if(!this.nameTemplate)throw Error("Name template is required!")}else throw Error("Period is required!");let t=this.dateParser.fromDate(this.period.date,(l=this.pathTemplate)!=null?l:""),a=this.dateParser.fromDate(this.period.date,this.nameTemplate).appendMarkdownExtension();return t.length===0?a:[t,a].join("/")}};var Hr=class{constructor(t){this.dateParserFactory=t}getNameBuilder(t){switch(t){case"periodicNote":return new Br(this.dateParserFactory)}}};var qr=class qr{parseVariables(t,a){return t.replace(qr.variablePattern,a)}};qr.variablePattern=/{{title}}/g;var Ur=qr;var zr=class zr{constructor(t,a){this.variableFactory=t;this.dateParserFactory=a}parseVariables(t,a){let l=this.dateParserFactory.getParser();return t.replace(zr.variablePattern,(o,r)=>{let u=this.variableFactory.getVariable(o);return l.fromDate(a.date.calculate(u.calculus),u.template)})}};zr.variablePattern=/{{date.*?}}/g;var Vr=zr;var Gr=class Gr{constructor(t,a){this.variableFactory=t;this.dateParserFactory=a}parseVariables(t,a){let l=this.dateParserFactory.getParser();return t.replace(Gr.variablePattern,(o,r)=>{let u=this.variableFactory.getVariable(o);return l.fromDate(a.calculate(u.calculus),u.template)})}};Gr.variablePattern=/{{today.*?}}/g;var _r=Gr;var Wr=class{constructor(t,a){this.variableFactory=t;this.dateParserFactory=a}getVariableParser(t){switch(t){case 2:return new Ur;case 0:return new Vr(this.variableFactory,this.dateParserFactory);case 1:return new _r(this.variableFactory,this.dateParserFactory)}}};var CS=Math.pow(10,8)*24*60*60*1e3,Uw=-CS,Yr=6048e5,cc=864e5,mc=6e4,pc=36e5,hc=1e3;var vS=3600;var gc=vS*24,qw=gc*7,wS=gc*365.2425,IS=wS/12,Vw=IS*3,Ls=Symbol.for("constructDateFrom");function O(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&Ls in e?e[Ls](t):e instanceof Date?new e.constructor(t):new Date(t)}function M(e,t){return O(t||e,e)}function sl(e,t,a){let l=M(e,a==null?void 0:a.in);return isNaN(t)?O((a==null?void 0:a.in)||e,NaN):(t&&l.setDate(l.getDate()+t),l)}function Xr(e,t,a){let l=M(e,a==null?void 0:a.in);if(isNaN(t))return O((a==null?void 0:a.in)||e,NaN);if(!t)return l;let o=l.getDate(),r=O((a==null?void 0:a.in)||e,l.getTime());r.setMonth(l.getMonth()+t+1,0);let u=r.getDate();return o>=u?r:(l.setFullYear(r.getFullYear(),r.getMonth(),o),l)}var bS={};function Ee(){return bS}function we(e,t){var i,n,s,p,g,f,h,L;let a=Ee(),l=(L=(h=(p=(s=t==null?void 0:t.weekStartsOn)!=null?s:(n=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:n.weekStartsOn)!=null?p:a.weekStartsOn)!=null?h:(f=(g=a.locale)==null?void 0:g.options)==null?void 0:f.weekStartsOn)!=null?L:0,o=M(e,t==null?void 0:t.in),r=o.getDay(),u=(r<l?7:0)+r-l;return o.setDate(o.getDate()-u),o.setHours(0,0,0,0),o}function ft(e,t){return we(e,{...t,weekStartsOn:1})}function Qr(e,t){let a=M(e,t==null?void 0:t.in),l=a.getFullYear(),o=O(a,0);o.setFullYear(l+1,0,4),o.setHours(0,0,0,0);let r=ft(o),u=O(a,0);u.setFullYear(l,0,4),u.setHours(0,0,0,0);let i=ft(u);return a.getTime()>=r.getTime()?l+1:a.getTime()>=i.getTime()?l:l-1}function Pa(e){let t=M(e),a=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return a.setUTCFullYear(t.getFullYear()),+e-+a}function Zr(e,...t){let a=O.bind(null,e||t.find(l=>typeof l=="object"));return t.map(a)}function Cs(e,t){let a=M(e,t==null?void 0:t.in);return a.setHours(0,0,0,0),a}function yc(e,t,a){let[l,o]=Zr(a==null?void 0:a.in,e,t),r=Cs(l),u=Cs(o),i=+r-Pa(r),n=+u-Pa(u);return Math.round((i-n)/cc)}function Sc(e,t){let a=Qr(e,t),l=O((t==null?void 0:t.in)||e,0);return l.setFullYear(a,0,4),l.setHours(0,0,0,0),ft(l)}function Kr(e,t,a){return sl(e,t*7,a)}function xc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Lc(e){return!(!xc(e)&&typeof e!="number"||isNaN(+M(e)))}function Cc(e,t){let a=M(e,t==null?void 0:t.in);return Math.trunc(a.getMonth()/3)+1}function vc(e,t){let[a,l]=Zr(e,t.start,t.end);return{start:a,end:l}}function wc(e,t){var s;let{start:a,end:l}=vc(t==null?void 0:t.in,e),o=+a>+l,r=o?+a:+l,u=o?l:a;u.setHours(0,0,0,0);let i=(s=t==null?void 0:t.step)!=null?s:1;if(!i)return[];i<0&&(i=-i,o=!o);let n=[];for(;+u<=r;)n.push(O(a,u)),u.setDate(u.getDate()+i),u.setHours(0,0,0,0);return o?n.reverse():n}function Ic(e,t){let a=M(e,t==null?void 0:t.in),l=a.getMonth(),o=l-l%3;return a.setMonth(o,1),a.setHours(0,0,0,0),a}function vs(e,t){let a=M(e,t==null?void 0:t.in);return a.setDate(1),a.setHours(0,0,0,0),a}function bc(e,t){let a=M(e,t==null?void 0:t.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}function Mc(e,t){var i,n,s,p,g,f,h,L;let a=Ee(),l=(L=(h=(p=(s=t==null?void 0:t.weekStartsOn)!=null?s:(n=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:n.weekStartsOn)!=null?p:a.weekStartsOn)!=null?h:(f=(g=a.locale)==null?void 0:g.options)==null?void 0:f.weekStartsOn)!=null?L:0,o=M(e,t==null?void 0:t.in),r=o.getDay(),u=(r<l?-7:0)+6-(r-l);return o.setDate(o.getDate()+u),o.setHours(23,59,59,999),o}var MS={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Dc=(e,t,a)=>{let l,o=MS[e];return typeof o=="string"?l=o:t===1?l=o.one:l=o.other.replace("{{count}}",t.toString()),a!=null&&a.addSuffix?a.comparison&&a.comparison>0?"in "+l:l+" ago":l};function jr(e){return(t={})=>{let a=t.width?String(t.width):e.defaultWidth;return e.formats[a]||e.formats[e.defaultWidth]}}var DS={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},TS={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},PS={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Tc={date:jr({formats:DS,defaultWidth:"full"}),time:jr({formats:TS,defaultWidth:"full"}),dateTime:jr({formats:PS,defaultWidth:"full"})};var NS={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Pc=(e,t,a,l)=>NS[e];function dl(e){return(t,a)=>{let l=a!=null&&a.context?String(a.context):"standalone",o;if(l==="formatting"&&e.formattingValues){let u=e.defaultFormattingWidth||e.defaultWidth,i=a!=null&&a.width?String(a.width):u;o=e.formattingValues[i]||e.formattingValues[u]}else{let u=e.defaultWidth,i=a!=null&&a.width?String(a.width):e.defaultWidth;o=e.values[i]||e.values[u]}let r=e.argumentCallback?e.argumentCallback(t):t;return o[r]}}var AS={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},kS={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},RS={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},OS={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},FS={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},ES={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},BS=(e,t)=>{let a=Number(e),l=a%100;if(l>20||l<10)switch(l%10){case 1:return a+"st";case 2:return a+"nd";case 3:return a+"rd"}return a+"th"},Nc={ordinalNumber:BS,era:dl({values:AS,defaultWidth:"wide"}),quarter:dl({values:kS,defaultWidth:"wide",argumentCallback:e=>e-1}),month:dl({values:RS,defaultWidth:"wide"}),day:dl({values:OS,defaultWidth:"wide"}),dayPeriod:dl({values:FS,defaultWidth:"wide",formattingValues:ES,defaultFormattingWidth:"wide"})};function fl(e){return(t,a={})=>{let l=a.width,o=l&&e.matchPatterns[l]||e.matchPatterns[e.defaultMatchWidth],r=t.match(o);if(!r)return null;let u=r[0],i=l&&e.parsePatterns[l]||e.parsePatterns[e.defaultParseWidth],n=Array.isArray(i)?US(i,g=>g.test(u)):HS(i,g=>g.test(u)),s;s=e.valueCallback?e.valueCallback(n):n,s=a.valueCallback?a.valueCallback(s):s;let p=t.slice(u.length);return{value:s,rest:p}}}function HS(e,t){for(let a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&t(e[a]))return a}function US(e,t){for(let a=0;a<e.length;a++)if(t(e[a]))return a}function Ac(e){return(t,a={})=>{let l=t.match(e.matchPattern);if(!l)return null;let o=l[0],r=t.match(e.parsePattern);if(!r)return null;let u=e.valueCallback?e.valueCallback(r[0]):r[0];u=a.valueCallback?a.valueCallback(u):u;let i=t.slice(o.length);return{value:u,rest:i}}}var qS=/^(\d+)(th|st|nd|rd)?/i,VS=/\d+/i,zS={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},_S={any:[/^b/i,/^(a|c)/i]},GS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},WS={any:[/1/i,/2/i,/3/i,/4/i]},YS={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},XS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},QS={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ZS={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},KS={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},jS={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},kc={ordinalNumber:Ac({matchPattern:qS,parsePattern:VS,valueCallback:e=>parseInt(e,10)}),era:fl({matchPatterns:zS,defaultMatchWidth:"wide",parsePatterns:_S,defaultParseWidth:"any"}),quarter:fl({matchPatterns:GS,defaultMatchWidth:"wide",parsePatterns:WS,defaultParseWidth:"any",valueCallback:e=>e+1}),month:fl({matchPatterns:YS,defaultMatchWidth:"wide",parsePatterns:XS,defaultParseWidth:"any"}),day:fl({matchPatterns:QS,defaultMatchWidth:"wide",parsePatterns:ZS,defaultParseWidth:"any"}),dayPeriod:fl({matchPatterns:KS,defaultMatchWidth:"any",parsePatterns:jS,defaultParseWidth:"any"})};var so={code:"en-US",formatDistance:Dc,formatLong:Tc,formatRelative:Pc,localize:Nc,match:kc,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Rc(e,t){let a=M(e,t==null?void 0:t.in);return yc(a,bc(a))+1}function cl(e,t){let a=M(e,t==null?void 0:t.in),l=+ft(a)-+Sc(a);return Math.round(l/Yr)+1}function ml(e,t){var p,g,f,h,L,I,N,c;let a=M(e,t==null?void 0:t.in),l=a.getFullYear(),o=Ee(),r=(c=(N=(h=(f=t==null?void 0:t.firstWeekContainsDate)!=null?f:(g=(p=t==null?void 0:t.locale)==null?void 0:p.options)==null?void 0:g.firstWeekContainsDate)!=null?h:o.firstWeekContainsDate)!=null?N:(I=(L=o.locale)==null?void 0:L.options)==null?void 0:I.firstWeekContainsDate)!=null?c:1,u=O((t==null?void 0:t.in)||e,0);u.setFullYear(l+1,0,r),u.setHours(0,0,0,0);let i=we(u,t),n=O((t==null?void 0:t.in)||e,0);n.setFullYear(l,0,r),n.setHours(0,0,0,0);let s=we(n,t);return+a>=+i?l+1:+a>=+s?l:l-1}function Oc(e,t){var i,n,s,p,g,f,h,L;let a=Ee(),l=(L=(h=(p=(s=t==null?void 0:t.firstWeekContainsDate)!=null?s:(n=(i=t==null?void 0:t.locale)==null?void 0:i.options)==null?void 0:n.firstWeekContainsDate)!=null?p:a.firstWeekContainsDate)!=null?h:(f=(g=a.locale)==null?void 0:g.options)==null?void 0:f.firstWeekContainsDate)!=null?L:1,o=ml(e,t),r=O((t==null?void 0:t.in)||e,0);return r.setFullYear(o,0,l),r.setHours(0,0,0,0),we(r,t)}function pl(e,t){let a=M(e,t==null?void 0:t.in),l=+we(a,t)-+Oc(a,t);return Math.round(l/Yr)+1}function G(e,t){let a=e<0?"-":"",l=Math.abs(e).toString().padStart(t,"0");return a+l}var At={y(e,t){let a=e.getFullYear(),l=a>0?a:1-a;return G(t==="yy"?l%100:l,t.length)},M(e,t){let a=e.getMonth();return t==="M"?String(a+1):G(a+1,2)},d(e,t){return G(e.getDate(),t.length)},a(e,t){let a=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.toUpperCase();case"aaa":return a;case"aaaaa":return a[0];case"aaaa":default:return a==="am"?"a.m.":"p.m."}},h(e,t){return G(e.getHours()%12||12,t.length)},H(e,t){return G(e.getHours(),t.length)},m(e,t){return G(e.getMinutes(),t.length)},s(e,t){return G(e.getSeconds(),t.length)},S(e,t){let a=t.length,l=e.getMilliseconds(),o=Math.trunc(l*Math.pow(10,a-3));return G(o,t.length)}};var hl={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},ws={G:function(e,t,a){let l=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return a.era(l,{width:"abbreviated"});case"GGGGG":return a.era(l,{width:"narrow"});case"GGGG":default:return a.era(l,{width:"wide"})}},y:function(e,t,a){if(t==="yo"){let l=e.getFullYear(),o=l>0?l:1-l;return a.ordinalNumber(o,{unit:"year"})}return At.y(e,t)},Y:function(e,t,a,l){let o=ml(e,l),r=o>0?o:1-o;if(t==="YY"){let u=r%100;return G(u,2)}return t==="Yo"?a.ordinalNumber(r,{unit:"year"}):G(r,t.length)},R:function(e,t){let a=Qr(e);return G(a,t.length)},u:function(e,t){let a=e.getFullYear();return G(a,t.length)},Q:function(e,t,a){let l=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(l);case"QQ":return G(l,2);case"Qo":return a.ordinalNumber(l,{unit:"quarter"});case"QQQ":return a.quarter(l,{width:"abbreviated",context:"formatting"});case"QQQQQ":return a.quarter(l,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(l,{width:"wide",context:"formatting"})}},q:function(e,t,a){let l=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(l);case"qq":return G(l,2);case"qo":return a.ordinalNumber(l,{unit:"quarter"});case"qqq":return a.quarter(l,{width:"abbreviated",context:"standalone"});case"qqqqq":return a.quarter(l,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(l,{width:"wide",context:"standalone"})}},M:function(e,t,a){let l=e.getMonth();switch(t){case"M":case"MM":return At.M(e,t);case"Mo":return a.ordinalNumber(l+1,{unit:"month"});case"MMM":return a.month(l,{width:"abbreviated",context:"formatting"});case"MMMMM":return a.month(l,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(l,{width:"wide",context:"formatting"})}},L:function(e,t,a){let l=e.getMonth();switch(t){case"L":return String(l+1);case"LL":return G(l+1,2);case"Lo":return a.ordinalNumber(l+1,{unit:"month"});case"LLL":return a.month(l,{width:"abbreviated",context:"standalone"});case"LLLLL":return a.month(l,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(l,{width:"wide",context:"standalone"})}},w:function(e,t,a,l){let o=pl(e,l);return t==="wo"?a.ordinalNumber(o,{unit:"week"}):G(o,t.length)},I:function(e,t,a){let l=cl(e);return t==="Io"?a.ordinalNumber(l,{unit:"week"}):G(l,t.length)},d:function(e,t,a){return t==="do"?a.ordinalNumber(e.getDate(),{unit:"date"}):At.d(e,t)},D:function(e,t,a){let l=Rc(e);return t==="Do"?a.ordinalNumber(l,{unit:"dayOfYear"}):G(l,t.length)},E:function(e,t,a){let l=e.getDay();switch(t){case"E":case"EE":case"EEE":return a.day(l,{width:"abbreviated",context:"formatting"});case"EEEEE":return a.day(l,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(l,{width:"short",context:"formatting"});case"EEEE":default:return a.day(l,{width:"wide",context:"formatting"})}},e:function(e,t,a,l){let o=e.getDay(),r=(o-l.weekStartsOn+8)%7||7;switch(t){case"e":return String(r);case"ee":return G(r,2);case"eo":return a.ordinalNumber(r,{unit:"day"});case"eee":return a.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return a.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(o,{width:"short",context:"formatting"});case"eeee":default:return a.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,a,l){let o=e.getDay(),r=(o-l.weekStartsOn+8)%7||7;switch(t){case"c":return String(r);case"cc":return G(r,t.length);case"co":return a.ordinalNumber(r,{unit:"day"});case"ccc":return a.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return a.day(o,{width:"narrow",context:"standalone"});case"cccccc":return a.day(o,{width:"short",context:"standalone"});case"cccc":default:return a.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,a){let l=e.getDay(),o=l===0?7:l;switch(t){case"i":return String(o);case"ii":return G(o,t.length);case"io":return a.ordinalNumber(o,{unit:"day"});case"iii":return a.day(l,{width:"abbreviated",context:"formatting"});case"iiiii":return a.day(l,{width:"narrow",context:"formatting"});case"iiiiii":return a.day(l,{width:"short",context:"formatting"});case"iiii":default:return a.day(l,{width:"wide",context:"formatting"})}},a:function(e,t,a){let o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,a){let l=e.getHours(),o;switch(l===12?o=hl.noon:l===0?o=hl.midnight:o=l/12>=1?"pm":"am",t){case"b":case"bb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,a){let l=e.getHours(),o;switch(l>=17?o=hl.evening:l>=12?o=hl.afternoon:l>=4?o=hl.morning:o=hl.night,t){case"B":case"BB":case"BBB":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,a){if(t==="ho"){let l=e.getHours()%12;return l===0&&(l=12),a.ordinalNumber(l,{unit:"hour"})}return At.h(e,t)},H:function(e,t,a){return t==="Ho"?a.ordinalNumber(e.getHours(),{unit:"hour"}):At.H(e,t)},K:function(e,t,a){let l=e.getHours()%12;return t==="Ko"?a.ordinalNumber(l,{unit:"hour"}):G(l,t.length)},k:function(e,t,a){let l=e.getHours();return l===0&&(l=24),t==="ko"?a.ordinalNumber(l,{unit:"hour"}):G(l,t.length)},m:function(e,t,a){return t==="mo"?a.ordinalNumber(e.getMinutes(),{unit:"minute"}):At.m(e,t)},s:function(e,t,a){return t==="so"?a.ordinalNumber(e.getSeconds(),{unit:"second"}):At.s(e,t)},S:function(e,t){return At.S(e,t)},X:function(e,t,a){let l=e.getTimezoneOffset();if(l===0)return"Z";switch(t){case"X":return Ec(l);case"XXXX":case"XX":return Na(l);case"XXXXX":case"XXX":default:return Na(l,":")}},x:function(e,t,a){let l=e.getTimezoneOffset();switch(t){case"x":return Ec(l);case"xxxx":case"xx":return Na(l);case"xxxxx":case"xxx":default:return Na(l,":")}},O:function(e,t,a){let l=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Fc(l,":");case"OOOO":default:return"GMT"+Na(l,":")}},z:function(e,t,a){let l=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Fc(l,":");case"zzzz":default:return"GMT"+Na(l,":")}},t:function(e,t,a){let l=Math.trunc(+e/1e3);return G(l,t.length)},T:function(e,t,a){return G(+e,t.length)}};function Fc(e,t=""){let a=e>0?"-":"+",l=Math.abs(e),o=Math.trunc(l/60),r=l%60;return r===0?a+String(o):a+String(o)+t+G(r,2)}function Ec(e,t){return e%60===0?(e>0?"-":"+")+G(Math.abs(e)/60,2):Na(e,t)}function Na(e,t=""){let a=e>0?"-":"+",l=Math.abs(e),o=G(Math.trunc(l/60),2),r=G(l%60,2);return a+o+t+r}var Bc=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Hc=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},JS=(e,t)=>{let a=e.match(/(P+)(p+)?/)||[],l=a[1],o=a[2];if(!o)return Bc(e,t);let r;switch(l){case"P":r=t.dateTime({width:"short"});break;case"PP":r=t.dateTime({width:"medium"});break;case"PPP":r=t.dateTime({width:"long"});break;case"PPPP":default:r=t.dateTime({width:"full"});break}return r.replace("{{date}}",Bc(l,t)).replace("{{time}}",Hc(o,t))},fo={p:Hc,P:JS};var $S=/^D+$/,ex=/^Y+$/,tx=["D","DD","YY","YYYY"];function Jr(e){return $S.test(e)}function $r(e){return ex.test(e)}function co(e,t,a){let l=ax(e,t,a);if(console.warn(l),tx.includes(e))throw new RangeError(l)}function ax(e,t,a){let l=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${l} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var lx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ox=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,rx=/^'([^]*?)'?$/,ux=/''/g,ix=/[a-zA-Z]/;function Uc(e,t,a){var p,g,f,h,L,I,N,c,d,m,y,C,D,v,b,j,A,Fe;let l=Ee(),o=(g=(p=a==null?void 0:a.locale)!=null?p:l.locale)!=null?g:so,r=(m=(d=(I=(L=a==null?void 0:a.firstWeekContainsDate)!=null?L:(h=(f=a==null?void 0:a.locale)==null?void 0:f.options)==null?void 0:h.firstWeekContainsDate)!=null?I:l.firstWeekContainsDate)!=null?d:(c=(N=l.locale)==null?void 0:N.options)==null?void 0:c.firstWeekContainsDate)!=null?m:1,u=(Fe=(A=(v=(D=a==null?void 0:a.weekStartsOn)!=null?D:(C=(y=a==null?void 0:a.locale)==null?void 0:y.options)==null?void 0:C.weekStartsOn)!=null?v:l.weekStartsOn)!=null?A:(j=(b=l.locale)==null?void 0:b.options)==null?void 0:j.weekStartsOn)!=null?Fe:0,i=M(e,a==null?void 0:a.in);if(!Lc(i))throw new RangeError("Invalid time value");let n=t.match(ox).map(ye=>{let ve=ye[0];if(ve==="p"||ve==="P"){let ll=fo[ve];return ll(ye,o.formatLong)}return ye}).join("").match(lx).map(ye=>{if(ye==="''")return{isToken:!1,value:"'"};let ve=ye[0];if(ve==="'")return{isToken:!1,value:nx(ye)};if(ws[ve])return{isToken:!0,value:ye};if(ve.match(ix))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ve+"`");return{isToken:!1,value:ye}});o.localize.preprocessor&&(n=o.localize.preprocessor(i,n));let s={firstWeekContainsDate:r,weekStartsOn:u,locale:o};return n.map(ye=>{if(!ye.isToken)return ye.value;let ve=ye.value;(!(a!=null&&a.useAdditionalWeekYearTokens)&&$r(ve)||!(a!=null&&a.useAdditionalDayOfYearTokens)&&Jr(ve))&&co(ve,t,String(e));let ll=ws[ve[0]];return ll(i,ve,o.localize,s)}).join("")}function nx(e){let t=e.match(rx);return t?t[1].replace(ux,"'"):e}function qc(){return Object.assign({},Ee())}function Vc(e,t){let a=M(e,t==null?void 0:t.in).getDay();return a===0?7:a}function zc(e,t){let a=sx(t)?new t(0):O(t,0);return a.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),a.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),a}function sx(e){var t;return typeof e=="function"&&((t=e.prototype)==null?void 0:t.constructor)===e}var dx=10,eu=class{constructor(){x(this,"subPriority",0)}validate(t,a){return!0}},tu=class extends eu{constructor(t,a,l,o,r){super(),this.value=t,this.validateValue=a,this.setValue=l,this.priority=o,r&&(this.subPriority=r)}validate(t,a){return this.validateValue(t,this.value,a)}set(t,a,l){return this.setValue(t,a,this.value,l)}},au=class extends eu{constructor(a,l){super();x(this,"priority",dx);x(this,"subPriority",-1);this.context=a||(o=>O(l,o))}set(a,l){return l.timestampIsSet?a:O(a,zc(a,this.context))}};var w=class{run(t,a,l,o){let r=this.parse(t,a,l,o);return r?{setter:new tu(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(t,a,l){return!0}};var lu=class extends w{constructor(){super(...arguments);x(this,"priority",140);x(this,"incompatibleTokens",["R","u","t","T"])}parse(a,l,o){switch(l){case"G":case"GG":case"GGG":return o.era(a,{width:"abbreviated"})||o.era(a,{width:"narrow"});case"GGGGG":return o.era(a,{width:"narrow"});case"GGGG":default:return o.era(a,{width:"wide"})||o.era(a,{width:"abbreviated"})||o.era(a,{width:"narrow"})}}set(a,l,o){return l.era=o,a.setFullYear(o,0,1),a.setHours(0,0,0,0),a}};var H={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Qe={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function W(e,t){return e&&{value:t(e.value),rest:e.rest}}function E(e,t){let a=t.match(e);return a?{value:parseInt(a[0],10),rest:t.slice(a[0].length)}:null}function Ze(e,t){let a=t.match(e);if(!a)return null;if(a[0]==="Z")return{value:0,rest:t.slice(1)};let l=a[1]==="+"?1:-1,o=a[2]?parseInt(a[2],10):0,r=a[3]?parseInt(a[3],10):0,u=a[5]?parseInt(a[5],10):0;return{value:l*(o*pc+r*mc+u*hc),rest:t.slice(a[0].length)}}function ou(e){return E(H.anyDigitsSigned,e)}function T(e,t){switch(e){case 1:return E(H.singleDigit,t);case 2:return E(H.twoDigits,t);case 3:return E(H.threeDigits,t);case 4:return E(H.fourDigits,t);default:return E(new RegExp("^\\d{1,"+e+"}"),t)}}function gl(e,t){switch(e){case 1:return E(H.singleDigitSigned,t);case 2:return E(H.twoDigitsSigned,t);case 3:return E(H.threeDigitsSigned,t);case 4:return E(H.fourDigitsSigned,t);default:return E(new RegExp("^-?\\d{1,"+e+"}"),t)}}function yl(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ru(e,t){let a=t>0,l=a?t:1-t,o;if(l<=50)o=e||100;else{let r=l+50,u=Math.trunc(r/100)*100,i=e>=r%100;o=e+u-(i?100:0)}return a?o:1-o}function uu(e){return e%400===0||e%4===0&&e%100!==0}var iu=class extends w{constructor(){super(...arguments);x(this,"priority",130);x(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(a,l,o){let r=u=>({year:u,isTwoDigitYear:l==="yy"});switch(l){case"y":return W(T(4,a),r);case"yo":return W(o.ordinalNumber(a,{unit:"year"}),r);default:return W(T(l.length,a),r)}}validate(a,l){return l.isTwoDigitYear||l.year>0}set(a,l,o){let r=a.getFullYear();if(o.isTwoDigitYear){let i=ru(o.year,r);return a.setFullYear(i,0,1),a.setHours(0,0,0,0),a}let u=!("era"in l)||l.era===1?o.year:1-o.year;return a.setFullYear(u,0,1),a.setHours(0,0,0,0),a}};var nu=class extends w{constructor(){super(...arguments);x(this,"priority",130);x(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(a,l,o){let r=u=>({year:u,isTwoDigitYear:l==="YY"});switch(l){case"Y":return W(T(4,a),r);case"Yo":return W(o.ordinalNumber(a,{unit:"year"}),r);default:return W(T(l.length,a),r)}}validate(a,l){return l.isTwoDigitYear||l.year>0}set(a,l,o,r){let u=ml(a,r);if(o.isTwoDigitYear){let n=ru(o.year,u);return a.setFullYear(n,0,r.firstWeekContainsDate),a.setHours(0,0,0,0),we(a,r)}let i=!("era"in l)||l.era===1?o.year:1-o.year;return a.setFullYear(i,0,r.firstWeekContainsDate),a.setHours(0,0,0,0),we(a,r)}};var su=class extends w{constructor(){super(...arguments);x(this,"priority",130);x(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(a,l){return l==="R"?gl(4,a):gl(l.length,a)}set(a,l,o){let r=O(a,0);return r.setFullYear(o,0,4),r.setHours(0,0,0,0),ft(r)}};var du=class extends w{constructor(){super(...arguments);x(this,"priority",130);x(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(a,l){return l==="u"?gl(4,a):gl(l.length,a)}set(a,l,o){return a.setFullYear(o,0,1),a.setHours(0,0,0,0),a}};var fu=class extends w{constructor(){super(...arguments);x(this,"priority",120);x(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(a,l,o){switch(l){case"Q":case"QQ":return T(l.length,a);case"Qo":return o.ordinalNumber(a,{unit:"quarter"});case"QQQ":return o.quarter(a,{width:"abbreviated",context:"formatting"})||o.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(a,{width:"wide",context:"formatting"})||o.quarter(a,{width:"abbreviated",context:"formatting"})||o.quarter(a,{width:"narrow",context:"formatting"})}}validate(a,l){return l>=1&&l<=4}set(a,l,o){return a.setMonth((o-1)*3,1),a.setHours(0,0,0,0),a}};var cu=class extends w{constructor(){super(...arguments);x(this,"priority",120);x(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(a,l,o){switch(l){case"q":case"qq":return T(l.length,a);case"qo":return o.ordinalNumber(a,{unit:"quarter"});case"qqq":return o.quarter(a,{width:"abbreviated",context:"standalone"})||o.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(a,{width:"wide",context:"standalone"})||o.quarter(a,{width:"abbreviated",context:"standalone"})||o.quarter(a,{width:"narrow",context:"standalone"})}}validate(a,l){return l>=1&&l<=4}set(a,l,o){return a.setMonth((o-1)*3,1),a.setHours(0,0,0,0),a}};var mu=class extends w{constructor(){super(...arguments);x(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);x(this,"priority",110)}parse(a,l,o){let r=u=>u-1;switch(l){case"M":return W(E(H.month,a),r);case"MM":return W(T(2,a),r);case"Mo":return W(o.ordinalNumber(a,{unit:"month"}),r);case"MMM":return o.month(a,{width:"abbreviated",context:"formatting"})||o.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(a,{width:"wide",context:"formatting"})||o.month(a,{width:"abbreviated",context:"formatting"})||o.month(a,{width:"narrow",context:"formatting"})}}validate(a,l){return l>=0&&l<=11}set(a,l,o){return a.setMonth(o,1),a.setHours(0,0,0,0),a}};var pu=class extends w{constructor(){super(...arguments);x(this,"priority",110);x(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(a,l,o){let r=u=>u-1;switch(l){case"L":return W(E(H.month,a),r);case"LL":return W(T(2,a),r);case"Lo":return W(o.ordinalNumber(a,{unit:"month"}),r);case"LLL":return o.month(a,{width:"abbreviated",context:"standalone"})||o.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(a,{width:"wide",context:"standalone"})||o.month(a,{width:"abbreviated",context:"standalone"})||o.month(a,{width:"narrow",context:"standalone"})}}validate(a,l){return l>=0&&l<=11}set(a,l,o){return a.setMonth(o,1),a.setHours(0,0,0,0),a}};function _c(e,t,a){let l=M(e,a==null?void 0:a.in),o=pl(l,a)-t;return l.setDate(l.getDate()-o*7),M(l,a==null?void 0:a.in)}var hu=class extends w{constructor(){super(...arguments);x(this,"priority",100);x(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(a,l,o){switch(l){case"w":return E(H.week,a);case"wo":return o.ordinalNumber(a,{unit:"week"});default:return T(l.length,a)}}validate(a,l){return l>=1&&l<=53}set(a,l,o,r){return we(_c(a,o,r),r)}};function Gc(e,t,a){let l=M(e,a==null?void 0:a.in),o=cl(l,a)-t;return l.setDate(l.getDate()-o*7),l}var gu=class extends w{constructor(){super(...arguments);x(this,"priority",100);x(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(a,l,o){switch(l){case"I":return E(H.week,a);case"Io":return o.ordinalNumber(a,{unit:"week"});default:return T(l.length,a)}}validate(a,l){return l>=1&&l<=53}set(a,l,o){return ft(Gc(a,o))}};var fx=[31,28,31,30,31,30,31,31,30,31,30,31],cx=[31,29,31,30,31,30,31,31,30,31,30,31],yu=class extends w{constructor(){super(...arguments);x(this,"priority",90);x(this,"subPriority",1);x(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(a,l,o){switch(l){case"d":return E(H.date,a);case"do":return o.ordinalNumber(a,{unit:"date"});default:return T(l.length,a)}}validate(a,l){let o=a.getFullYear(),r=uu(o),u=a.getMonth();return r?l>=1&&l<=cx[u]:l>=1&&l<=fx[u]}set(a,l,o){return a.setDate(o),a.setHours(0,0,0,0),a}};var Su=class extends w{constructor(){super(...arguments);x(this,"priority",90);x(this,"subpriority",1);x(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(a,l,o){switch(l){case"D":case"DD":return E(H.dayOfYear,a);case"Do":return o.ordinalNumber(a,{unit:"date"});default:return T(l.length,a)}}validate(a,l){let o=a.getFullYear();return uu(o)?l>=1&&l<=366:l>=1&&l<=365}set(a,l,o){return a.setMonth(0,o),a.setHours(0,0,0,0),a}};function Sl(e,t,a){var g,f,h,L,I,N,c,d;let l=Ee(),o=(d=(c=(L=(h=a==null?void 0:a.weekStartsOn)!=null?h:(f=(g=a==null?void 0:a.locale)==null?void 0:g.options)==null?void 0:f.weekStartsOn)!=null?L:l.weekStartsOn)!=null?c:(N=(I=l.locale)==null?void 0:I.options)==null?void 0:N.weekStartsOn)!=null?d:0,r=M(e,a==null?void 0:a.in),u=r.getDay(),n=(t%7+7)%7,s=7-o,p=t<0||t>6?t-(u+s)%7:(n+s)%7-(u+s)%7;return sl(r,p,a)}var xu=class extends w{constructor(){super(...arguments);x(this,"priority",90);x(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(a,l,o){switch(l){case"E":case"EE":case"EEE":return o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"})}}validate(a,l){return l>=0&&l<=6}set(a,l,o,r){return a=Sl(a,o,r),a.setHours(0,0,0,0),a}};var Lu=class extends w{constructor(){super(...arguments);x(this,"priority",90);x(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(a,l,o,r){let u=i=>{let n=Math.floor((i-1)/7)*7;return(i+r.weekStartsOn+6)%7+n};switch(l){case"e":case"ee":return W(T(l.length,a),u);case"eo":return W(o.ordinalNumber(a,{unit:"day"}),u);case"eee":return o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"eeeee":return o.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"})}}validate(a,l){return l>=0&&l<=6}set(a,l,o,r){return a=Sl(a,o,r),a.setHours(0,0,0,0),a}};var Cu=class extends w{constructor(){super(...arguments);x(this,"priority",90);x(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(a,l,o,r){let u=i=>{let n=Math.floor((i-1)/7)*7;return(i+r.weekStartsOn+6)%7+n};switch(l){case"c":case"cc":return W(T(l.length,a),u);case"co":return W(o.ordinalNumber(a,{unit:"day"}),u);case"ccc":return o.day(a,{width:"abbreviated",context:"standalone"})||o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"});case"ccccc":return o.day(a,{width:"narrow",context:"standalone"});case"cccccc":return o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(a,{width:"wide",context:"standalone"})||o.day(a,{width:"abbreviated",context:"standalone"})||o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"})}}validate(a,l){return l>=0&&l<=6}set(a,l,o,r){return a=Sl(a,o,r),a.setHours(0,0,0,0),a}};function Wc(e,t,a){let l=M(e,a==null?void 0:a.in),o=Vc(l,a),r=t-o;return sl(l,r,a)}var vu=class extends w{constructor(){super(...arguments);x(this,"priority",90);x(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(a,l,o){let r=u=>u===0?7:u;switch(l){case"i":case"ii":return T(l.length,a);case"io":return o.ordinalNumber(a,{unit:"day"});case"iii":return W(o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),r);case"iiiii":return W(o.day(a,{width:"narrow",context:"formatting"}),r);case"iiiiii":return W(o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),r);case"iiii":default:return W(o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),r)}}validate(a,l){return l>=1&&l<=7}set(a,l,o){return a=Wc(a,o),a.setHours(0,0,0,0),a}};var wu=class extends w{constructor(){super(...arguments);x(this,"priority",80);x(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(a,l,o){switch(l){case"a":case"aa":case"aaa":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,l,o){return a.setHours(yl(o),0,0,0),a}};var Iu=class extends w{constructor(){super(...arguments);x(this,"priority",80);x(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(a,l,o){switch(l){case"b":case"bb":case"bbb":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,l,o){return a.setHours(yl(o),0,0,0),a}};var bu=class extends w{constructor(){super(...arguments);x(this,"priority",80);x(this,"incompatibleTokens",["a","b","t","T"])}parse(a,l,o){switch(l){case"B":case"BB":case"BBB":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,l,o){return a.setHours(yl(o),0,0,0),a}};var Mu=class extends w{constructor(){super(...arguments);x(this,"priority",70);x(this,"incompatibleTokens",["H","K","k","t","T"])}parse(a,l,o){switch(l){case"h":return E(H.hour12h,a);case"ho":return o.ordinalNumber(a,{unit:"hour"});default:return T(l.length,a)}}validate(a,l){return l>=1&&l<=12}set(a,l,o){let r=a.getHours()>=12;return r&&o<12?a.setHours(o+12,0,0,0):!r&&o===12?a.setHours(0,0,0,0):a.setHours(o,0,0,0),a}};var Du=class extends w{constructor(){super(...arguments);x(this,"priority",70);x(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(a,l,o){switch(l){case"H":return E(H.hour23h,a);case"Ho":return o.ordinalNumber(a,{unit:"hour"});default:return T(l.length,a)}}validate(a,l){return l>=0&&l<=23}set(a,l,o){return a.setHours(o,0,0,0),a}};var Tu=class extends w{constructor(){super(...arguments);x(this,"priority",70);x(this,"incompatibleTokens",["h","H","k","t","T"])}parse(a,l,o){switch(l){case"K":return E(H.hour11h,a);case"Ko":return o.ordinalNumber(a,{unit:"hour"});default:return T(l.length,a)}}validate(a,l){return l>=0&&l<=11}set(a,l,o){return a.getHours()>=12&&o<12?a.setHours(o+12,0,0,0):a.setHours(o,0,0,0),a}};var Pu=class extends w{constructor(){super(...arguments);x(this,"priority",70);x(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(a,l,o){switch(l){case"k":return E(H.hour24h,a);case"ko":return o.ordinalNumber(a,{unit:"hour"});default:return T(l.length,a)}}validate(a,l){return l>=1&&l<=24}set(a,l,o){let r=o<=24?o%24:o;return a.setHours(r,0,0,0),a}};var Nu=class extends w{constructor(){super(...arguments);x(this,"priority",60);x(this,"incompatibleTokens",["t","T"])}parse(a,l,o){switch(l){case"m":return E(H.minute,a);case"mo":return o.ordinalNumber(a,{unit:"minute"});default:return T(l.length,a)}}validate(a,l){return l>=0&&l<=59}set(a,l,o){return a.setMinutes(o,0,0),a}};var Au=class extends w{constructor(){super(...arguments);x(this,"priority",50);x(this,"incompatibleTokens",["t","T"])}parse(a,l,o){switch(l){case"s":return E(H.second,a);case"so":return o.ordinalNumber(a,{unit:"second"});default:return T(l.length,a)}}validate(a,l){return l>=0&&l<=59}set(a,l,o){return a.setSeconds(o,0),a}};var ku=class extends w{constructor(){super(...arguments);x(this,"priority",30);x(this,"incompatibleTokens",["t","T"])}parse(a,l){let o=r=>Math.trunc(r*Math.pow(10,-l.length+3));return W(T(l.length,a),o)}set(a,l,o){return a.setMilliseconds(o),a}};var Ru=class extends w{constructor(){super(...arguments);x(this,"priority",10);x(this,"incompatibleTokens",["t","T","x"])}parse(a,l){switch(l){case"X":return Ze(Qe.basicOptionalMinutes,a);case"XX":return Ze(Qe.basic,a);case"XXXX":return Ze(Qe.basicOptionalSeconds,a);case"XXXXX":return Ze(Qe.extendedOptionalSeconds,a);case"XXX":default:return Ze(Qe.extended,a)}}set(a,l,o){return l.timestampIsSet?a:O(a,a.getTime()-Pa(a)-o)}};var Ou=class extends w{constructor(){super(...arguments);x(this,"priority",10);x(this,"incompatibleTokens",["t","T","X"])}parse(a,l){switch(l){case"x":return Ze(Qe.basicOptionalMinutes,a);case"xx":return Ze(Qe.basic,a);case"xxxx":return Ze(Qe.basicOptionalSeconds,a);case"xxxxx":return Ze(Qe.extendedOptionalSeconds,a);case"xxx":default:return Ze(Qe.extended,a)}}set(a,l,o){return l.timestampIsSet?a:O(a,a.getTime()-Pa(a)-o)}};var Fu=class extends w{constructor(){super(...arguments);x(this,"priority",40);x(this,"incompatibleTokens","*")}parse(a){return ou(a)}set(a,l,o){return[O(a,o*1e3),{timestampIsSet:!0}]}};var Eu=class extends w{constructor(){super(...arguments);x(this,"priority",20);x(this,"incompatibleTokens","*")}parse(a){return ou(a)}set(a,l,o){return[O(a,o),{timestampIsSet:!0}]}};var Yc={G:new lu,y:new iu,Y:new nu,R:new su,u:new du,Q:new fu,q:new cu,M:new mu,L:new pu,w:new hu,I:new gu,d:new yu,D:new Su,E:new xu,e:new Lu,c:new Cu,i:new vu,a:new wu,b:new Iu,B:new bu,h:new Mu,H:new Du,K:new Tu,k:new Pu,m:new Nu,s:new Au,S:new ku,X:new Ru,x:new Ou,t:new Fu,T:new Eu};var mx=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,px=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hx=/^'([^]*?)'?$/,gx=/''/g,yx=/\S/,Sx=/[a-zA-Z]/;function Xc(e,t,a,l){var N,c,d,m,y,C,D,v,b,j,A,Fe,ye,ve,ll,ac,lc,oc;let o=()=>O((l==null?void 0:l.in)||a,NaN),r=qc(),u=(c=(N=l==null?void 0:l.locale)!=null?N:r.locale)!=null?c:so,i=(j=(b=(C=(y=l==null?void 0:l.firstWeekContainsDate)!=null?y:(m=(d=l==null?void 0:l.locale)==null?void 0:d.options)==null?void 0:m.firstWeekContainsDate)!=null?C:r.firstWeekContainsDate)!=null?b:(v=(D=r.locale)==null?void 0:D.options)==null?void 0:v.firstWeekContainsDate)!=null?j:1,n=(oc=(lc=(ve=(ye=l==null?void 0:l.weekStartsOn)!=null?ye:(Fe=(A=l==null?void 0:l.locale)==null?void 0:A.options)==null?void 0:Fe.weekStartsOn)!=null?ve:r.weekStartsOn)!=null?lc:(ac=(ll=r.locale)==null?void 0:ll.options)==null?void 0:ac.weekStartsOn)!=null?oc:0;if(!t)return e?o():M(a,l==null?void 0:l.in);let s={firstWeekContainsDate:i,weekStartsOn:n,locale:u},p=[new au(l==null?void 0:l.in,a)],g=t.match(px).map(V=>{let ue=V[0];if(ue in fo){let yt=fo[ue];return yt(V,u.formatLong)}return V}).join("").match(mx),f=[];for(let V of g){!(l!=null&&l.useAdditionalWeekYearTokens)&&$r(V)&&co(V,t,e),!(l!=null&&l.useAdditionalDayOfYearTokens)&&Jr(V)&&co(V,t,e);let ue=V[0],yt=Yc[ue];if(yt){let{incompatibleTokens:rc}=yt;if(Array.isArray(rc)){let uc=f.find(ic=>rc.includes(ic.token)||ic.token===ue);if(uc)throw new RangeError(`The format string mustn't contain \`${uc.fullToken}\` and \`${V}\` at the same time`)}else if(yt.incompatibleTokens==="*"&&f.length>0)throw new RangeError(`The format string mustn't contain \`${V}\` and any other token at the same time`);f.push({token:ue,fullToken:V});let xs=yt.run(e,V,u.match,s);if(!xs)return o();p.push(xs.setter),e=xs.rest}else{if(ue.match(Sx))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ue+"`");if(V==="''"?V="'":ue==="'"&&(V=xx(V)),e.indexOf(V)===0)e=e.slice(V.length);else return o()}}if(e.length>0&&yx.test(e))return o();let h=p.map(V=>V.priority).sort((V,ue)=>ue-V).filter((V,ue,yt)=>yt.indexOf(V)===ue).map(V=>p.filter(ue=>ue.priority===V).sort((ue,yt)=>yt.subPriority-ue.subPriority)).map(V=>V[0]),L=M(a,l==null?void 0:l.in);if(isNaN(+L))return o();let I={};for(let V of h){if(!V.validate(L,s))return o();let ue=V.set(L,I,s);Array.isArray(ue)?(L=ue[0],Object.assign(I,ue[1])):L=ue}return L}function xx(e){return e.match(hx)[1].replace(gx,"'")}function Qc(e,t,a){return Xr(e,-t,a)}function Zc(e,t,a){return Kr(e,-t,a)}var Bu=class{fromDate(t,a){try{return Uc(t,a)}catch(l){return a}}fromString(t,a){try{let l=Xc(t,a,new Date);return isNaN(l.getDate())?null:l}catch(l){return null}}};var Hu=class{getParser(){return new Bu}};var Jt=require("obsidian"),Uu=class{constructor(t){this.plugin=t}async exists(t){let a=this.normalizePath(t);return this.plugin.app.vault.getAbstractFileByPath(a)instanceof Jt.TFile}async createFileFromTemplate(t,a){let l=this.normalizePath(t),o=this.normalizePath(a!=null?a:""),r=await this.readContents(o);return(await this.plugin.app.vault.create(l,r)).path}async createFile(t){let a=this.normalizePath(t);return(await this.plugin.app.vault.create(a,"")).path}async createFolder(t){let a=this.plugin.app.vault.getAbstractFileByPath(t);a&&a instanceof Jt.TFolder||await this.plugin.app.vault.createFolder(t)}async readContents(t){let a=this.normalizePath(t),l=this.plugin.app.vault.getAbstractFileByPath(a);return l instanceof Jt.TFile?await this.plugin.app.vault.cachedRead(l):""}async writeContents(t,a){let l=this.normalizePath(t);await this.plugin.app.vault.adapter.write(l,a)}async openInCurrentTab(t){let a=this.getFile(t);await this.plugin.app.workspace.getLeaf().openFile(a,{active:!0})}async openInHorizontalSplitView(t){let a=this.getFile(t);await this.plugin.app.workspace.getLeaf("split","horizontal").openFile(a,{active:!0})}async openInVerticalSplitView(t){let a=this.getFile(t);await this.plugin.app.workspace.getLeaf("split","vertical").openFile(a,{active:!0})}async delete(t){let a=this.normalizePath(t),l=this.plugin.app.vault.getAbstractFileByPath(a);l instanceof Jt.TFile&&this.plugin.app.fileManager.promptForFileDeletion(l)}getFile(t){let a=this.normalizePath(t),l=this.plugin.app.vault.getFileByPath(a);if(!l)throw new Error(`File does not exist: ${a}.`);return l}normalizePath(t){return(0,Jt.normalizePath)(t).appendMarkdownExtension().toString()}};var qu=class{constructor(){this.typesThatRequireTemplate=[0,1];this.typesThatSupportCalculus=[0,1];this.types=new Map().set("date",0).set("today",1).set("title",2)}getVariable(t){let a=/{{([a-z]+)([+-][0-9].)?:?(.*)?}}/,[l,o,r,u]=a.exec(t)||[],i=this.types.get(o.toLowerCase()),n=null;if(i===void 0)throw Error("Could not create a variable because the type is unknown");if(this.typesThatRequireTemplate.includes(i)&&!u)throw Error("Could not create a variable because the template is unknown");return this.typesThatSupportCalculus.includes(i)&&(n=this.getCalculusFromRegex(r)),{template:u!=null?u:null,calculus:n!=null?n:null,type:i}}getCalculusFromRegex(t){let a=/([+-])([0-9]+)([a-z])/,[l,o,r,u]=a.exec(t)||[],i=parseInt(r);if(!o||!r||!u||isNaN(i))return null;let n="+";return o==="-".valueOf()&&(n="-"),{unit:u,operator:n,value:i}}};var Vu=class{constructor(t,a){this.plugin=t;this.dateRepositoryFactory=a}async getActiveNote(){let t=this.plugin.app.workspace.getActiveFile();return t?await this.asNote(t):null}async getNotes(){return await Promise.all(this.plugin.app.vault.getMarkdownFiles().map(t=>this.asNote(t)))}async asNote(t){let a=this.dateRepositoryFactory.getRepository().getDayFromDate(new Date(t.stat.ctime)),l=this.readFrontMatter(t);return{path:t.path,name:t.name.removeMarkdownExtension(),createdOn:a,properties:l}}readFrontMatter(t){var l;let a=new Map;try{let o=(l=this.plugin.app.metadataCache.getFileCache(t))==null?void 0:l.frontmatter;o&&(a=new Map(Object.entries(o)))}catch(o){console.error(`Error processing front matter for file: ${t.path}. Error: ${o}`)}return a}};var zu=class{constructor(t){this.calendarService=t;this.settings=_;this.today=null}initialize(t,a){this.settings=t,this.today=a,this.calendarService.initialize(t)}initializeCallbacks(t,a,l,o,r,u){this.setSelectedPeriod=t,this.navigateToNextWeek=a,this.navigateToPreviousWeek=l,this.navigateToCurrentWeek=o,this.navigateToNextMonth=r,this.navigateToPreviousMonth=u}getCurrentWeek(){let t=this.calendarService.getCurrentWeek();return this.buildCalendar(t)}getPreviousWeek(t){let a=this.calendarService.getPreviousWeek(t.weeks);return this.buildCalendar(a)}getNextWeek(t){let a=this.calendarService.getNextWeek(t.weeks);return this.buildCalendar(a)}getPreviousMonth(t){let a=this.calendarService.getPreviousMonth(t.weeks);return this.buildCalendar(a)}getNextMonth(t){let a=this.calendarService.getNextMonth(t.weeks);return this.buildCalendar(a)}buildCalendar(t){let a=this.buildWeekDays(this.settings.generalSettings.firstDayOfWeek),l=this.calendarService.getMonthForWeeks(t),o=this.calendarService.getQuarterForWeeks(t),r=this.calendarService.getYearForWeeks(t);return{weekDays:a,month:l,quarter:o,year:r,weeks:t,today:this.today}}buildWeekDays(t){let a=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],l=(t-1+7)%7;return[...a.slice(l),...a.slice(0,l)]}};var _u=class{constructor(t){this.dateManagerFactory=t;this.settings=_;this.dateManager=this.dateManagerFactory.getManager()}initialize(t){this.settings=t}getCurrentWeek(){let t=this.settings.generalSettings.firstDayOfWeek,a=this.settings.generalSettings.weekNumberStandard,l=this.dateManager.getCurrentWeek(t,a);return this.loadWeeks(l,2,3)}getPreviousWeek(t){let a=this.getMiddleWeek(t);return this.loadWeeks(a,4,1)}getNextWeek(t){let a=this.getMiddleWeek(t);return this.loadWeeks(a,2,3)}getPreviousMonth(t){let a=this.getMiddleWeek(t),l=this.settings.generalSettings.firstDayOfWeek,o=this.settings.generalSettings.weekNumberStandard,r=this.dateManager.getPreviousMonth(a,l,o);return this.sortWeeks(r)}getNextMonth(t){let a=this.getMiddleWeek(t),l=this.settings.generalSettings.firstDayOfWeek,o=this.settings.generalSettings.weekNumberStandard,r=this.dateManager.getNextMonth(a,l,o);return this.sortWeeks(r)}getMonthForWeeks(t){return this.getMiddleWeek(t).month}getQuarterForWeeks(t){return this.getMiddleWeek(t).quarter}getYearForWeeks(t){return this.getMiddleWeek(t).year}getMiddleWeek(t){return t[Math.floor(t.length/2)]}loadWeeks(t,a,l){let o=this.settings.generalSettings.firstDayOfWeek,r=this.settings.generalSettings.weekNumberStandard,u=this.dateManager.getPreviousWeeks(t,o,r,a),i=this.dateManager.getNextWeeks(t,o,r,l),n=[...u,t,...i];return this.sortWeeks(n)}sortWeeks(t){return t.sort((a,l)=>a.date.getTime()-l.date.getTime())}};var Gu=class{constructor(t,a,l,o){this.nameBuilderFactory=t;this.variableParserFactory=a;this.fileRepositoryFactory=l;this.noteRepositoryFactory=o}async doesNoteExist(t,a){let l=this.fileRepositoryFactory.getRepository(),o=this.getFilePath(a,t);return await l.exists(o)}async createNote(t,a){let l=this.fileRepositoryFactory.getRepository(),o=this.getFilePath(a,t);if(!await this.doesNoteExist(t,a)){let u=await l.create(o,t.templateFile),i=await l.readContents(u),n=await this.parseVariables(i,a);await l.writeContents(u,n)}}async openNote(t,a){let l=this.fileRepositoryFactory.getRepository(),o=this.getFilePath(a,t);if(!await this.doesNoteExist(t,a))throw new Error("File does not exist");await l.openInCurrentTab(o)}async openNoteInHorizontalSplitView(t,a){let l=this.fileRepositoryFactory.getRepository(),o=this.getFilePath(a,t);if(!await this.doesNoteExist(t,a))throw new Error("File does not exist");await l.openInHorizontalSplitView(o)}async openNoteInVerticalSplitView(t,a){let l=this.fileRepositoryFactory.getRepository(),o=this.getFilePath(a,t);if(!await this.doesNoteExist(t,a))throw new Error("File does not exist");await l.openInVerticalSplitView(o)}async deleteNote(t,a){let l=this.fileRepositoryFactory.getRepository(),o=this.getFilePath(a,t);if(!await this.doesNoteExist(t,a))throw new Error("File does not exist");await l.delete(o)}getFilePath(t,a){return this.nameBuilderFactory.getNameBuilder("periodicNote").withPath(a.folder).withName(a.nameTemplate).withValue(t).build()}async parseVariables(t,a){let l=await this.noteRepositoryFactory.getRepository().getActiveNote(),o=this.variableParserFactory.getVariableParser(2),r=this.variableParserFactory.getVariableParser(0),u=this.variableParserFactory.getVariableParser(1),i=t;return i=o.parseVariables(i,l==null?void 0:l.name),i=r.parseVariables(i,a),i=u.parseVariables(i,new Date),i}};function $t(e,t){if(!e||!t)return!1;let a=e.date.toDateString()===t.date.toDateString(),l=e.type===t.type;return a&&l}var Wu=class{constructor(t){this.dateParserFactory=t;this.monthFormat="long";this.dayFormat="2-digit";this.yearFormat="numeric"}getDayFromDate(t){return{name:new Intl.DateTimeFormat(void 0,{day:this.dayFormat}).format(t),date:t,type:0}}getDayFromDateString(t,a){let l=this.dateParserFactory.getParser().fromString(t,a);return l?this.getDayFromDate(l):null}getWeekFromDate(t,a,l){let o=we(l,{weekStartsOn:t}),r=cl(o);a===1&&(r=pl(o,{weekStartsOn:t}));let u=this.getMonth(o.getFullYear(),o.getMonth()),i=this.getQuarter(u),n=this.getYear(o.getFullYear()),s=this.getDaysOfWeek(t,o);return{date:o,name:r.toString().padStart(2,"0"),weekNumber:r,year:n,quarter:i,month:u,days:s,type:1}}getNextWeek(t,a,l){let o=Kr(l.date,1);return this.getWeekFromDate(t,a,o)}getPreviousWeek(t,a,l){let o=Zc(l.date,1);return this.getWeekFromDate(t,a,o)}getMonthFromDate(t){return this.getMonth(t.getFullYear(),t.getMonth())}getNextMonth(t){let a=vs(t.date),l=Xr(a,1);return this.getMonthFromDate(l)}getPreviousMonth(t){let a=vs(t.date),l=Qc(a,1);return this.getMonthFromDate(l)}getQuarter(t){let a=Ic(t.date);return{name:`Q${Cc(a)}`,date:a,type:3}}getYear(t){let a=new Intl.DateTimeFormat(void 0,{year:this.yearFormat}),l=new Date(t,0);return{name:a.format(l),date:l,type:4}}getMonth(t,a){let l=new Intl.DateTimeFormat(void 0,{month:this.monthFormat}),o=new Date(t,a);return{name:l.format(o),date:o,type:2}}getDaysOfWeek(t,a){let l=we(a,{weekStartsOn:t}),o=Mc(a,{weekStartsOn:t});return wc({start:l,end:o}).map(u=>this.getDayFromDate(u))}};var Yu=class{constructor(t){this.dateParserFactory=t}getRepository(){return new Wu(this.dateParserFactory)}};var Xu=class{constructor(t){this.adapter=t}async exists(t){return await this.adapter.exists(t)}async create(t,a){let l=t.split("/").slice(0,-1).join("/"),o=a?await this.adapter.exists(a):!1;await this.adapter.createFolder(l);let r="";return o&&a?r=await this.adapter.createFileFromTemplate(t,a):r=await this.adapter.createFile(t),r}async readContents(t){return await this.exists(t)?await this.adapter.readContents(t):""}async writeContents(t,a){await this.exists(t)&&await this.adapter.writeContents(t,a)}async openInCurrentTab(t){await this.exists(t)&&await this.adapter.openInCurrentTab(t)}async openInHorizontalSplitView(t){await this.exists(t)&&await this.adapter.openInHorizontalSplitView(t)}async openInVerticalSplitView(t){await this.exists(t)&&await this.adapter.openInVerticalSplitView(t)}async delete(t){await this.exists(t)&&await this.adapter.delete(t)}};var Qu=class{constructor(t){this.adapter=t}getRepository(){return new Xu(this.adapter)}};var Zu=class{constructor(t,a,l,o){this.adapter=t;this.dateRepositoryFactory=a;this.dateParserFactory=l;this.settingsRepositoryFactory=o}async getActiveNote(){let t=await this.settingsRepositoryFactory.getRepository("displayNotes").get(),a=await this.adapter.getActiveNote();return a?this.setDateProperty(a,t):null}async getNotes(t){let a=await this.adapter.getNotes();return(await this.setDateProperties(a)).filter(t)}async setDateProperties(t){let a=await this.settingsRepositoryFactory.getRepository("displayNotes").get();return t.map(l=>this.setDateProperty(l,a))}setDateProperty(t,a){let l=this.setCreatedOnProperty(t,a),o=l.createdOn.date;return l.createdOnProperty&&a.useCreatedOnDateFromProperties&&(o=l.createdOnProperty.date),{...l,displayDate:this.dateParserFactory.getParser().fromDate(o,a.displayDateTemplate)}}setCreatedOnProperty(t,a){let l=t.properties.get(a.createdOnDatePropertyName);if(!l)return t;let o=this.dateRepositoryFactory.getRepository().getDayFromDateString(l,a.createdOnPropertyFormat);return o&&o.date.getHours()===0&&o.date.getMinutes()===0&&o.date.setHours(t.createdOn.date.getHours(),t.createdOn.date.getMinutes(),t.createdOn.date.getSeconds(),t.createdOn.date.getMilliseconds()),{...t,createdOnProperty:o}}};var Ku=class{constructor(t,a,l,o){this.adapter=t;this.dateRepositoryFactory=a;this.dateParserFactory=l;this.settingsRepositoryFactory=o}getRepository(){return new Zu(this.adapter,this.dateRepositoryFactory,this.dateParserFactory,this.settingsRepositoryFactory)}};var ju=class{constructor(t){this.dateRepositoryFactory=t;this.today=new Date}getCurrentDay(){return this.dateRepositoryFactory.getRepository().getDayFromDate(this.today)}getTomorrow(){let t=this.today;return t.setDate(t.getDate()+1),this.dateRepositoryFactory.getRepository().getDayFromDate(t)}getYesterday(){let t=this.today;return t.setDate(t.getDate()-1),this.dateRepositoryFactory.getRepository().getDayFromDate(t)}getCurrentWeek(t,a){return this.dateRepositoryFactory.getRepository().getWeekFromDate(t,a,this.today)}getWeek(t,a,l){return this.dateRepositoryFactory.getRepository().getWeekFromDate(a,l,t.date)}getPreviousWeeks(t,a,l,o){return this.getWeeks(t,o,r=>this.dateRepositoryFactory.getRepository().getPreviousWeek(a,l,r))}getNextWeeks(t,a,l,o){return this.getWeeks(t,o,r=>this.dateRepositoryFactory.getRepository().getNextWeek(a,l,r))}getPreviousMonth(t,a,l){let o=this.dateRepositoryFactory.getRepository().getPreviousMonth(t);return this.getWeeksForMonth(o,a,l)}getNextMonth(t,a,l){let o=this.dateRepositoryFactory.getRepository().getNextMonth(t);return this.getWeeksForMonth(o,a,l)}getQuarter(t){return this.dateRepositoryFactory.getRepository().getQuarter(t)}getWeeksForMonth(t,a,l){let o=new Date(t.date.getFullYear(),t.date.getMonth(),1),r=new Date(t.date.getFullYear(),t.date.getMonth()+1,0),u=new Date((o.getTime()+r.getTime())/2),i=this.dateRepositoryFactory.getRepository().getWeekFromDate(a,l,u),n=this.getPreviousWeeks(i,a,l,2),s=this.getNextWeeks(i,a,l,3);return this.sortWeeks([...n,i,...s])}getWeeks(t,a,l){let o=t,r=[];for(let u=0;u<a;u++)o=l(o),r.push(o);return this.sortWeeks(r)}sortWeeks(t){return t.sort((a,l)=>a.date.getTime()-l.date.getTime())}};var Ju=class{constructor(t){this.dateRepositoryFactory=t}getManager(){return new ju(this.dateRepositoryFactory)}};var $u=class{constructor(t,a,l){this.noteManagerFactory=t;this.settingssRepositoryFactory=a;this.viewModel=l}async execute(){var l,o;let t=await this.noteManagerFactory.getManager().getActiveNote(),a=await this.settingssRepositoryFactory.getRepository("displayNotes").get();t&&(a.useCreatedOnDateFromProperties&&t.createdOnProperty?(l=this.viewModel.setSelectedPeriod)==null||l.call(this,t.createdOnProperty):a.useCreatedOnDateFromProperties||(o=this.viewModel.setSelectedPeriod)==null||o.call(this,t.createdOn))}};var ei=class{constructor(t){this.viewModel=t}async execute(){var t;(t=this.viewModel.navigateToCurrentWeek)==null||t.call(this)}};var ti=class{constructor(t){this.viewModel=t}async execute(){var t;(t=this.viewModel.navigateToPreviousWeek)==null||t.call(this)}};var ai=class{constructor(t){this.viewModel=t}async execute(){var t;(t=this.viewModel.navigateToNextWeek)==null||t.call(this)}};function Kc(e){return e===1||e===3}function jc(e){return e===2}var li=class{constructor(t,a,l){this.dateManagerFactory=t;this.viewModel=a;this.calendarViewModel=l}async execute(){var a;let t=this.dateManagerFactory.getManager().getYesterday();(a=this.calendarViewModel.setSelectedPeriod)==null||a.call(this,t),await this.viewModel.openNote(0,t)}};var ri=class{constructor(t,a,l){this.dateManagerFactory=t;this.viewModel=a;this.calendarViewModel=l}async execute(){var a;let t=this.dateManagerFactory.getManager().getTomorrow();(a=this.calendarViewModel.setSelectedPeriod)==null||a.call(this,t),await this.viewModel.openNote(0,t)}};var ui=class{constructor(t,a,l,o){this.dateManagerFactory=t;this.settingsRepositoryFactory=a;this.viewModel=l;this.calendarViewModel=o}async execute(){var o;let t=await this.settingsRepositoryFactory.getRepository("general").get(),a=this.dateManagerFactory.getManager().getCurrentDay(),l=this.dateManagerFactory.getManager().getWeek(a,t.firstDayOfWeek,t.weekNumberStandard);(o=this.calendarViewModel.setSelectedPeriod)==null||o.call(this,l),await this.viewModel.openNote(0,l)}};var ii=class{constructor(t){this.viewModel=t}async execute(){var t;(t=this.viewModel.navigateToPreviousMonth)==null||t.call(this)}};var ni=class{constructor(t){this.viewModel=t}async execute(){var t;(t=this.viewModel.navigateToNextMonth)==null||t.call(this)}};var si=class{constructor(t,a,l,o,r,u){this.noteManagerFactory=t;this.settingsRepositoryFactory=a;this.dateManagerFactory=l;this.calendarViewModel=o;this.weekNoteViewModel=r;this.dayNoteViewModel=u}getHandler(t){switch(t){case 0:return new $u(this.noteManagerFactory,this.settingsRepositoryFactory,this.calendarViewModel);case 1:return new ei(this.calendarViewModel);case 3:return new ti(this.calendarViewModel);case 2:return new ai(this.calendarViewModel);case 5:return new ii(this.calendarViewModel);case 4:return new ni(this.calendarViewModel);case 6:return new li(this.dateManagerFactory,this.dayNoteViewModel,this.calendarViewModel);case 7:return new ri(this.dateManagerFactory,this.dayNoteViewModel,this.calendarViewModel);case 8:return new ui(this.dateManagerFactory,this.settingsRepositoryFactory,this.weekNoteViewModel,this.calendarViewModel)}}};var di=class{constructor(t,a,l){this.fileRepositoryFactory=t;this.noteRepositoryFactory=a;this.settingsRepositoryFactory=l}async openNote(t){await this.fileRepositoryFactory.getRepository().exists(t.path)&&await this.fileRepositoryFactory.getRepository().openInCurrentTab(t.path)}async openNoteInHorizontalSplitView(t){await this.fileRepositoryFactory.getRepository().exists(t.path)&&await this.fileRepositoryFactory.getRepository().openInHorizontalSplitView(t.path)}async openNoteInVerticalSplitView(t){await this.fileRepositoryFactory.getRepository().exists(t.path)&&await this.fileRepositoryFactory.getRepository().openInVerticalSplitView(t.path)}async getNotesForPeriod(t){if(!(await this.settingsRepositoryFactory.getRepository("general").get()).displayNotesCreatedOnDate)return[];let l=await this.settingsRepositoryFactory.getRepository("displayNotes").get(),r=await this.noteRepositoryFactory.getRepository().getNotes(u=>l.useCreatedOnDateFromProperties?$t(u.createdOnProperty,t):$t(u.createdOn,t));return l.sortNotes==="ascending"?r.sort((u,i)=>l.useCreatedOnDateFromProperties&&u.createdOnProperty&&i.createdOnProperty?u.createdOnProperty.date.getTime()-i.createdOnProperty.date.getTime():u.createdOn.date.getTime()-i.createdOn.date.getTime()):r.sort((u,i)=>l.useCreatedOnDateFromProperties&&u.createdOnProperty&&i.createdOnProperty?i.createdOnProperty.date.getTime()-u.createdOnProperty.date.getTime():i.createdOn.date.getTime()-u.createdOn.date.getTime())}async deleteNote(t){await this.fileRepositoryFactory.getRepository().exists(t.path)&&await this.fileRepositoryFactory.getRepository().delete(t.path)}async getActiveNote(){return await this.noteRepositoryFactory.getRepository().getActiveNote()}};var fi=class{constructor(t,a,l){this.fileRepositoryFactory=t;this.noteRepositoryFactory=a;this.settingsRepositoryFactory=l}getManager(){return new di(this.fileRepositoryFactory,this.noteRepositoryFactory,this.settingsRepositoryFactory)}};var ci=class{constructor(t){this.noteService=t}initializeCallbacks(t){this.updateNotes=t}async loadNotes(t){return await this.noteService.getNotesForPeriod(t)}async openNoteInHorizontalSplitView(t){await this.noteService.openNoteInHorizontalSplitView(t)}async openNoteInVerticalSplitView(t){await this.noteService.openNoteInVerticalSplitView(t)}async openNote(t){await this.noteService.openNote(t)}async deleteNote(t){await this.noteService.deleteNote(t)}};var Jc=require("obsidian"),mi=class{show(t,a,l){this.contextMenu=new Jc.Menu,this.addOpenInHorizontalSplitViewMenuItem(this.contextMenu,l.openInHorizontalSplitView).addOpenInVerticalSplitViewMenuItem(this.contextMenu,l.openInVerticalSplitView).addDeleteNoteMenuItem(this.contextMenu,l.onDelete).build(this.contextMenu).showAtPosition({x:t,y:a})}hide(){var t;(t=this.contextMenu)==null||t.hide(),delete this.contextMenu}addOpenInHorizontalSplitViewMenuItem(t,a){return t.addItem(l=>l.setIcon("rows-2").setTitle("Open in horizontal split view").onClick(a)),this}addOpenInVerticalSplitViewMenuItem(t,a){return t.addItem(l=>l.setIcon("columns-2").setTitle("Open in vertical split view").onClick(a)),this}addDeleteNoteMenuItem(t,a){return t.addItem(l=>l.setIcon("trash").setTitle("Delete").onClick(a)),this}build(t){return t}};var pi=class{constructor(t){this.periodicNoteManager=t;this.settings=_}async initialize(t){this.settings=t}async openNoteInCurrentTab(t,a,l){await this.openNote(t,a,l,async(o,r)=>this.periodicNoteManager.openNote(o,r))}async openNoteInHorizontalSplitView(t,a,l){await this.openNote(t,a,l,async(o,r)=>this.periodicNoteManager.openNoteInHorizontalSplitView(o,r))}async openNoteInVerticalSplitView(t,a,l){await this.openNote(t,a,l,async(o,r)=>this.periodicNoteManager.openNoteInVerticalSplitView(o,r))}async deleteNote(t,a){await this.periodicNoteManager.deleteNote(a,t)}async hasPeriodicNote(t,a){return await this.periodicNoteManager.doesNoteExist(a,t)}async openNote(t,a,l,o){let r=this.settings.generalSettings.useModifierKeyToCreateNote,u=r&&Kc(t);!r||u?(await this.periodicNoteManager.createNote(l,a),await o(l,a)):await o(l,a)}};var Ke=class{constructor(t,a){this.periodService=a;this.pluginSettings=_;this.settings=t}updateSettings(t){this.pluginSettings=t,this.periodService.initialize(t)}async hasPeriodicNote(t){let a=this.pluginSettings.generalSettings.displayNoteIndicator,l=await this.periodService.hasPeriodicNote(t,this.settings);return a&&l}async openNote(t,a){t===4?await this.periodService.openNoteInHorizontalSplitView(t,a,this.settings):await this.periodService.openNoteInCurrentTab(t,a,this.settings)}async openNoteInHorizontalSplitView(t,a){await this.periodService.openNoteInHorizontalSplitView(t,a,this.settings)}async openNoteInVerticalSplitView(t,a){await this.periodService.openNoteInVerticalSplitView(t,a,this.settings)}async deleteNote(t){await this.periodService.deleteNote(t,this.settings)}};var hi=class extends Ke{constructor(t){super(ol,t)}updateSettings(t){super.updateSettings(t),this.settings=t.dailyNotes}};var gi=class extends Ke{constructor(t){super(rl,t)}updateSettings(t){super.updateSettings(t),this.settings=t.weeklyNotes}};var yi=class extends Ke{constructor(t){super(ul,t)}updateSettings(t){super.updateSettings(t),this.settings=t.monthlyNotes}};var Si=class extends Ke{constructor(t){super(il,t)}updateSettings(t){super.updateSettings(t),this.settings=t.quarterlyNotes}};var xi=class extends Ke{constructor(t){super(nl,t)}updateSettings(t){super.updateSettings(t),this.settings=t.yearlyNotes}};var Li=class{constructor(t){this.noteManagerFactory=t}async getNotesForPeriod(t){return await this.noteManagerFactory.getManager().getNotesForPeriod(t)}async openNote(t){await this.noteManagerFactory.getManager().openNote(t)}async openNoteInHorizontalSplitView(t){await this.noteManagerFactory.getManager().openNoteInHorizontalSplitView(t)}async openNoteInVerticalSplitView(t){await this.noteManagerFactory.getManager().openNoteInVerticalSplitView(t)}async deleteNote(t){await this.noteManagerFactory.getManager().deleteNote(t)}};function $c(e){let t=new Hu,a=new Yu(t),l=new br(e),o=new Uu(e),r=new Vu(e,a),u=new Er(l),i=new Qu(o),n=new Ku(r,a,t,u),s=new Hr(t),p=new qu,g=new Wr(p,t),f=new Ju(a),h=new fi(i,n,u),L=new Gu(s,g,i,n),I=new _u(f),N=new pi(L),c=new Li(h),d=new zu(I),m=new hi(N),y=new gi(N),C=new yi(N),D=new Si(N),v=new xi(N),b=new ci(c),j=new si(h,u,f,d,y,m),A=new mi;return{calendarViewModel:d,dailyNoteViewModel:m,weeklyNoteViewModel:y,monthlyNoteViewModel:C,quarterlyNoteViewModel:D,yearlyNoteViewModel:v,notesViewModel:b,dateManagerFactory:f,dateParserFactory:t,settingsRepositoryFactory:u,commandHandlerFactory:j,contextMenuAdapter:A}}var rS=require("obsidian"),uS=q(Dy()),iS=q(Ne());var es=q(Ne());var Zn=q(Ne());var Ty=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Qn=(...e)=>e.filter((t,a,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===a).join(" ").trim();var Sr=q(Ne());var Py={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Ny=(0,Sr.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:a=2,absoluteStrokeWidth:l,className:o="",children:r,iconNode:u,...i},n)=>(0,Sr.createElement)("svg",{ref:n,...Py,width:t,height:t,stroke:e,strokeWidth:l?Number(a)*24/Number(t):a,className:Qn("lucide",o),...i},[...u.map(([s,p])=>(0,Sr.createElement)(s,p)),...Array.isArray(r)?r:[r]]));var Tt=(e,t)=>{let a=(0,Zn.forwardRef)(({className:l,...o},r)=>(0,Zn.createElement)(Ny,{ref:r,iconNode:t,className:Qn(`lucide-${Ty(e)}`,l),...o}));return a.displayName=`${e}`,a};var xr=Tt("CalendarHeart",[["path",{d:"M3 10h18V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h7",key:"136lmk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M21.29 14.7a2.43 2.43 0 0 0-2.65-.52c-.3.12-.57.3-.8.53l-.34.34-.35-.34a2.43 2.43 0 0 0-2.65-.53c-.3.12-.56.3-.79.53-.95.94-1 2.53.2 3.74L17.5 22l3.6-3.55c1.2-1.21 1.14-2.8.19-3.74Z",key:"1t7hil"}]]);var Lr=Tt("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);var Cr=Tt("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);var vr=Tt("ChevronsLeft",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]);var wr=Tt("ChevronsRight",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]);var Pt=q(Ne()),jt=(0,Pt.createContext)(null),Ay=()=>{var e,t;return(t=(e=(0,Pt.useContext)(jt))==null?void 0:e.calendarViewModel)!=null?t:null},ky=()=>{var e,t;return(t=(e=(0,Pt.useContext)(jt))==null?void 0:e.dailyNoteViewModel)!=null?t:null},Ry=()=>{var e,t;return(t=(e=(0,Pt.useContext)(jt))==null?void 0:e.weeklyNoteViewModel)!=null?t:null},Oy=()=>{var e,t;return(t=(e=(0,Pt.useContext)(jt))==null?void 0:e.monthlyNoteViewModel)!=null?t:null},Fy=()=>{var e,t;return(t=(e=(0,Pt.useContext)(jt))==null?void 0:e.quarterlyNoteViewModel)!=null?t:null},Ey=()=>{var e,t;return(t=(e=(0,Pt.useContext)(jt))==null?void 0:e.yearlyNoteViewModel)!=null?t:null},By=()=>{var e,t;return(t=(e=(0,Pt.useContext)(jt))==null?void 0:e.notesViewModel)!=null?t:null};var tc=q(Ne());var Kn=q(Ne()),ec=(0,Kn.createContext)(null),jn=()=>(0,Kn.useContext)(ec);var Ma=q(de()),Vy=e=>{let t=jn(),a={openInHorizontalSplitView:()=>e.onOpenInHorizontalSplitView(e.note),openInVerticalSplitView:()=>e.onOpenInVerticalSplitView(e.note),onDelete:()=>e.onDelete(e.note)};return(0,Ma.jsxs)("li",{onContextMenu:l=>{t==null||t.show(l.clientX,l.clientY,a),l.preventDefault()},onClick:l=>{e.onClick(e.note),l.preventDefault()},children:[(0,Ma.jsx)("span",{className:"note-title",children:e.note.name}),(0,Ma.jsx)("br",{}),(0,Ma.jsxs)("span",{className:"note-date",children:["Created at ",e.note.displayDate]}),(0,Ma.jsx)("br",{}),(0,Ma.jsx)("span",{className:"note-path",children:e.note.path})]},e.note.path)};var $n=q(de()),zy=e=>{let t=By(),[a,l]=tc.default.useState([]),o=()=>{e.period&&(t==null||t.loadNotes(e.period).then(l))};return tc.default.useEffect(()=>{o()},[t,l,e.period]),t==null||t.initializeCallbacks(o),(0,$n.jsx)("div",{className:"dnc",children:(0,$n.jsx)("ul",{children:a.map(r=>(0,$n.jsx)(Vy,{note:r,onOpenInHorizontalSplitView:u=>t==null?void 0:t.openNoteInHorizontalSplitView(u),onOpenInVerticalSplitView:u=>t==null?void 0:t.openNoteInVerticalSplitView(u),onClick:u=>t==null?void 0:t.openNote(u),onDelete:u=>t==null?void 0:t.deleteNote(u)},r.path))})})};var Gy=q(Ne());var _y=q(de()),Nt=e=>{var r;let t=jn(),a=u=>({openInHorizontalSplitView:()=>e.onOpenInHorizontalSplitViewClick(u),openInVerticalSplitView:()=>e.onOpenInVerticalSplitViewClick(u),onDelete:()=>e.onDelete()}),l=u=>(u.metaKey||u.ctrlKey)&&u.altKey?4:u.metaKey?3:u.altKey?1:u.shiftKey?2:0,o=(r=e.classNames)!=null?r:[];return e.isSelected&&o.push("selected-day"),e.hasPeriodNote&&o.push("has-note"),(0,_y.jsx)("div",{id:e.isToday?"today":"",className:o.join(" "),onContextMenu:u=>{let i=a(l(u));t==null||t.show(u.clientX,u.clientY,i),u.preventDefault()},onClick:u=>{e.onClick(l(u)),u.preventDefault()},children:e.name})};var Yy=q(de()),Wy=e=>{let t=Oy(),[a,l]=Gy.default.useState(!1);return t==null||t.hasPeriodicNote(e.month).then(l.bind(void 0)),(0,Yy.jsx)(Nt,{name:e.month.name,isSelected:!1,isToday:!1,hasPeriodNote:a,onClick:o=>t==null?void 0:t.openNote(o,e.month),onOpenInHorizontalSplitViewClick:o=>t==null?void 0:t.openNoteInHorizontalSplitView(o,e.month),onOpenInVerticalSplitViewClick:o=>t==null?void 0:t.openNoteInVerticalSplitView(o,e.month),onDelete:()=>t==null?void 0:t.deleteNote(e.month)})};var Xy=q(Ne());var Zy=q(de()),Qy=e=>{let t=Fy(),[a,l]=Xy.default.useState(!1);return t==null||t.hasPeriodicNote(e.quarter).then(l.bind(void 0)),(0,Zy.jsx)(Nt,{name:e.quarter.name,isSelected:!1,isToday:!1,hasPeriodNote:a,onClick:o=>t==null?void 0:t.openNote(o,e.quarter),onOpenInHorizontalSplitViewClick:o=>t==null?void 0:t.openNoteInHorizontalSplitView(o,e.quarter),onOpenInVerticalSplitViewClick:o=>t==null?void 0:t.openNoteInVerticalSplitView(o,e.quarter),onDelete:()=>t==null?void 0:t.deleteNote(e.quarter)})};var Ky=q(Ne());var Jy=q(de()),jy=e=>{let t=Ey(),[a,l]=Ky.default.useState(!1);return t==null||t.hasPeriodicNote(e.year).then(l.bind(void 0)),(0,Jy.jsx)(Nt,{name:e.year.name,isSelected:!1,isToday:!1,hasPeriodNote:a,onClick:o=>t==null?void 0:t.openNote(o,e.year),onOpenInHorizontalSplitViewClick:o=>t==null?void 0:t.openNoteInHorizontalSplitView(o,e.year),onOpenInVerticalSplitViewClick:o=>t==null?void 0:t.openNoteInVerticalSplitView(o,e.year),onDelete:()=>t==null?void 0:t.deleteNote(e.year)})};var aS=q(Ne());var $y=q(Ne());var tS=q(de()),eS=e=>{let t=ky(),[a,l]=$y.default.useState(!1),o=$t(e.day,e.selectedPeriod),r=$t(e.day,e.today);return t==null||t.hasPeriodicNote(e.day).then(l.bind(void 0)),(0,tS.jsx)(Nt,{name:e.day.name,classNames:e.isSameMonth?[]:["other-month"],isSelected:o,isToday:r,hasPeriodNote:a,onClick:u=>{e.onSelect(e.day),jc(u)||t==null||t.openNote(u,e.day)},onOpenInHorizontalSplitViewClick:u=>{e.onSelect(e.day),t==null||t.openNoteInHorizontalSplitView(u,e.day)},onOpenInVerticalSplitViewClick:u=>{e.onSelect(e.day),t==null||t.openNoteInVerticalSplitView(u,e.day)},onDelete:()=>t==null?void 0:t.deleteNote(e.day)})};var tl=q(de()),lS=e=>{let t=Ry(),[a,l]=aS.default.useState(!1),o=$t(e.selectedPeriod,e.week);return t==null||t.hasPeriodicNote(e.week).then(l.bind(void 0)),(0,tl.jsxs)("tr",{children:[(0,tl.jsx)("td",{height:"35",className:"weekNumber",children:(0,tl.jsx)(Nt,{name:e.week.name,isSelected:o,isToday:!1,hasPeriodNote:a,onClick:r=>{e.onSelect(e.week),t==null||t.openNote(r,e.week)},onOpenInHorizontalSplitViewClick:r=>{e.onSelect(e.week),t==null||t.openNoteInHorizontalSplitView(r,e.week)},onOpenInVerticalSplitViewClick:r=>{e.onSelect(e.week),t==null||t.openNoteInVerticalSplitView(r,e.week)},onDelete:()=>t==null?void 0:t.deleteNote(e.week)})}),e.days.map((r,u)=>(0,tl.jsx)("td",{height:"35",children:(0,tl.jsx)(eS,{day:r,selectedPeriod:e.selectedPeriod,today:e.today,isSameMonth:r.date.isSameMonth(e.currentMonth),onSelect:()=>e.onSelect(r)})},u))]})};var K=q(de()),oS=e=>{var g;let t=Ay(),[a,l]=es.default.useState((g=e.initialCalendar)!=null?g:null),[o,r]=es.default.useState(null);if(es.default.useEffect(()=>{var f;l((f=t==null?void 0:t.getCurrentWeek())!=null?f:null)},[t,l]),!a)return(0,K.jsx)(K.Fragment,{});let u=()=>{var f;return l((f=t==null?void 0:t.getNextWeek(a))!=null?f:null)},i=()=>{var f;return l((f=t==null?void 0:t.getPreviousWeek(a))!=null?f:null)},n=()=>{var f;return l((f=t==null?void 0:t.getCurrentWeek())!=null?f:null)},s=()=>{var f;return l((f=t==null?void 0:t.getNextMonth(a))!=null?f:null)},p=()=>{var f;return l((f=t==null?void 0:t.getPreviousMonth(a))!=null?f:null)};return t==null||t.initializeCallbacks(r,u,i,n,s,p),(0,K.jsxs)("div",{className:"dnc",children:[(0,K.jsxs)("div",{className:"header",children:[(0,K.jsxs)("span",{className:"title",children:[(0,K.jsx)("h1",{children:(0,K.jsx)(Wy,{month:a.month})}),(0,K.jsx)("h1",{children:(0,K.jsx)(jy,{year:a.year})})]}),(0,K.jsxs)("div",{className:"buttons",children:[(0,K.jsx)(vr,{size:18,strokeWidth:1,onClick:()=>p()}),(0,K.jsx)(Lr,{size:18,strokeWidth:1,onClick:()=>i()}),(0,K.jsx)(xr,{size:18,strokeWidth:1,onClick:()=>n()}),(0,K.jsx)(Cr,{size:18,strokeWidth:1,onClick:()=>u()}),(0,K.jsx)(wr,{size:18,strokeWidth:1,onClick:()=>s()})]})]}),(0,K.jsxs)("table",{children:[(0,K.jsx)("thead",{children:(0,K.jsxs)("tr",{children:[(0,K.jsx)("th",{className:"quarter",children:(0,K.jsx)(Qy,{quarter:a.quarter})}),a.weekDays.map((f,h)=>(0,K.jsx)("th",{children:f},h))]})}),(0,K.jsx)("tbody",{children:a.weeks.map((f,h)=>(0,K.jsx)(lS,{week:f,days:f.days,selectedPeriod:o,today:a.today,currentMonth:a.month,onSelect:r},h))})]}),(0,K.jsx)(zy,{period:o})]})};var Ir=q(de()),Da=class Da extends rS.ItemView{constructor(a,l,o,r,u,i,n,s,p){super(a);this.contextMenuAdapter=l;this.calendarViewModel=o;this.dailyNoteViewModel=r;this.weeklyNoteViewModel=u;this.monthlyNoteViewModel=i;this.quarterlyNoteViewModel=n;this.yearlyNoteViewModel=s;this.notesViewModel=p}getViewType(){return Da.VIEW_TYPE}getDisplayText(){return Da.DISPLAY_TEXT}getIcon(){return Da.ICON_NAME}async onOpen(){let a={calendarViewModel:this.calendarViewModel,dailyNoteViewModel:this.dailyNoteViewModel,weeklyNoteViewModel:this.weeklyNoteViewModel,monthlyNoteViewModel:this.monthlyNoteViewModel,quarterlyNoteViewModel:this.quarterlyNoteViewModel,yearlyNoteViewModel:this.yearlyNoteViewModel,notesViewModel:this.notesViewModel};(0,uS.createRoot)(this.containerEl.children[1]).render((0,Ir.jsx)(iS.StrictMode,{children:(0,Ir.jsx)(ec.Provider,{value:this.contextMenuAdapter,children:(0,Ir.jsx)(jt,{value:a,children:(0,Ir.jsx)(oS,{})})})}))}};Da.VIEW_TYPE="daily-note-calendar",Da.DISPLAY_TEXT="Daily note calendar",Da.ICON_NAME="calendar";var al=Da;var ts=class{constructor(t){this.id="dnc-display-in-calendar";this.name="Display the current note in the calendar";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=t.getHandler(0)}};var as=class{constructor(t){this.id="dnc-navigate-to-current-week";this.name="Navigate to current week";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=t.getHandler(1)}};var ls=class{constructor(t){this.id="dnc-navigate-to-next-week";this.name="Navigate to the next week";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=t.getHandler(2)}};var os=class{constructor(t){this.id="dnc-navigate-to-previous-week";this.name="Navigate to the previous week";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=t.getHandler(3)}};var rs=class{constructor(t){this.id="dnc-open-yesterdays-note";this.name="Open yesterday's note";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=t.getHandler(6)}};var us=class{constructor(t){this.id="dnc-open-tomorrows-note";this.name="Open Tomorrow's note";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=t.getHandler(7)}};var is=class{constructor(t){this.id="dnc-open-weekly-note";this.name="Open weekly note";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=t.getHandler(8)}};var ns=class{constructor(t){this.id="dnc-navigate-to-next-month";this.name="Navigate to the next month";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=t.getHandler(4)}};var ss=class{constructor(t){this.id="dnc-navigate-to-previous-month";this.name="Navigate to the previous month";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=t.getHandler(5)}};var nS=require("obsidian");var io=require("obsidian"),Ta=class{constructor(t,a){this.settingsTab=t;this.onSettingsChange=a;this.today=new Date}async displaySettings(){this.addHeading(this.title,this.description),await this.addSettings()}addHeading(t,a){new io.Setting(this.settingsTab.containerEl).setHeading().setName(t).setDesc(a)}addBooleanSetting(t,a){new io.Setting(this.settingsTab.containerEl).setName(t.name).setDesc(t.description).addToggle(l=>l.setValue(t.value).onChange(o=>a(o).then(this.onSettingsChange)))}addTextSetting(t,a){new io.Setting(this.settingsTab.containerEl).setName(t.name).setDesc(t.description).addText(l=>l.setPlaceholder(t.placeholder).setValue(t.value).onChange(o=>a(o).then(this.onSettingsChange)))}addDropdownSetting(t,a,l,o,r){new io.Setting(this.settingsTab.containerEl).setName(t).setDesc(a).addDropdown(u=>u.addOptions(Object.fromEntries(l)).setValue(o).onChange(i=>r(i).then(this.onSettingsChange)))}addDateParseSetting(t,a,l){let o=document.createElement("span");o.className="dnc-setting-example",o.setText(a.fromDate(this.today,t.value));let r=new DocumentFragment;r.appendText(t.description),r.append(new DocumentFragment().createEl("br")),r.append("Format example: "),r.append(o),new io.Setting(this.settingsTab.containerEl).setName(t.name).setDesc(r).addText(u=>u.setPlaceholder(t.placeholder).setValue(t.value).onChange(async i=>{o.setText(a.fromDate(this.today,i)),l(i).then(this.onSettingsChange)}))}};var dt=class extends Ta{constructor(a,l,o,r){super(a,l);this.settingsRepository=o;this.dateParser=r}async addSettings(){let a=await this.settingsRepository.get();this.addDateParseSetting(this.getNameTemplateSetting(a.nameTemplate),this.dateParser,async l=>{a.nameTemplate=l,await this.settingsRepository.store(a)}),this.addDateParseSetting(this.getFolderSetting(a.folder),this.dateParser,async l=>{a.folder=l,await this.settingsRepository.store(a)}),this.addTextSetting(this.getTemplateFileSetting(a.templateFile),async l=>{a.templateFile=l,await this.settingsRepository.store(a)})}};var ds=class extends dt{constructor(a,l,o,r){let u=r.getRepository("dailyNote");super(a,l,u,o.getParser());this.title="Daily notes";this.description="Daily notes are created or opened by clicking on any date in the calendar."}getNameTemplateSetting(a){return{name:"Daily note name template",description:"The template used to create the daily note name.",placeholder:"yyyy-MM-dd - eeee",value:a}}getFolderSetting(a){return{name:"Daily notes folder",description:"The folder where you store your daily notes.",placeholder:"yyyy-'Daily notes'",value:a}}getTemplateFileSetting(a){return{name:"Daily note template",description:"The template used to create the daily note.",placeholder:"Templates/daily-note",value:a}}};var fs=class extends dt{constructor(a,l,o,r){let u=r.getRepository("weeklyNote");super(a,l,u,o.getParser());this.title="Weekly notes";this.description="Weekly notes are created or opened by clicking on the week number in the calendar."}getNameTemplateSetting(a){return{name:"Weekly note name template",description:"The template used to create the weekly note name.",placeholder:"yyyy - ww",value:a}}getFolderSetting(a){return{name:"Weekly notes folder",description:"The folder where you store your weekly notes.",placeholder:"Weekly notes",value:a}}getTemplateFileSetting(a){return{name:"Weekly note template",description:"The template used to create the weekly note.",placeholder:"Templates/weekly-note",value:a}}};var cs=class extends dt{constructor(a,l,o,r){let u=r.getRepository("monthlyNote");super(a,l,u,o.getParser());this.title="Monthly notes";this.description="Monthly notes are created or opened by clicking on any month name in the calendar."}getNameTemplateSetting(a){return{name:"Monthly note name template",description:"The template used to create the monthly note name.",placeholder:"yyyy - MM",value:a}}getFolderSetting(a){return{name:"Monthly notes folder",description:"The folder where you store your monthly notes.",placeholder:"Monthly notes",value:a}}getTemplateFileSetting(a){return{name:"Monthly note template",description:"The template used to create the monthly note.",placeholder:"Templates/monthly-note",value:a}}};var ms=class extends dt{constructor(a,l,o,r){let u=r.getRepository("quarterlyNote");super(a,l,u,o.getParser());this.title="Quarterly notes";this.description="Quarterly notes are created or opened by clicking on a quarter in the upper-left corner of the calendar."}getNameTemplateSetting(a){return{name:"Quarterly note name template",description:"The template used to create the quarterly note name.",placeholder:"yyyy - qqq",value:a}}getFolderSetting(a){return{name:"Quarterly notes folder",description:"The folder where you store your quarterly notes.",placeholder:"Quarterly notes",value:a}}getTemplateFileSetting(a){return{name:"Quarterly note template",description:"The template used to create the quarterly note.",placeholder:"Templates/quarterly-note",value:a}}};var ps=class extends dt{constructor(a,l,o,r){let u=r.getRepository("yearlyNote");super(a,l,u,o.getParser());this.title="Yearly notes";this.description="Yearly notes are created or opened by clicking on the week number in the calendar."}getNameTemplateSetting(a){return{name:"Yearly note name template",description:"The template used to create the yearly note name.",placeholder:"yyyy",value:a}}getFolderSetting(a){return{name:"Yearly notes folder",description:"The folder where you store your yearly notes.",placeholder:"Yearly notes",value:a}}getTemplateFileSetting(a){return{name:"Yearly note template",description:"The template used to create the yearly note.",placeholder:"Templates/yearly-note",value:a}}};var hs=class extends Ta{constructor(a,l,o,r){super(a,l);this.dateParserFactory=o;this.settingsRepositoryFactory=r;this.title="Notes settings";this.description="Settings for the notes that are displayed below the calendar."}async addSettings(){let a=this.dateParserFactory.getParser(),l=this.settingsRepositoryFactory.getRepository("displayNotes"),o=await l.get();this.addSortOrderSetting(o.sortNotes,async r=>{o.sortNotes=r,await l.store(o)}),this.addDateParseSetting(this.getDisplayDateTemplateSetting(o.displayDateTemplate),a,async r=>{o.displayDateTemplate=r,await l.store(o)}),this.addBooleanSetting(this.getUseCreatedOnDateFromPropertiesSetting(o.useCreatedOnDateFromProperties),async r=>{o.useCreatedOnDateFromProperties=r,await l.store(o)}),this.addTextSetting(this.getCreatedOnDatePropertyNameSetting(o.createdOnDatePropertyName),async r=>{o.createdOnDatePropertyName=r,await l.store(o)}),this.addDateParseSetting(this.getCreatedOnPropertyFormatSetting(o.createdOnPropertyFormat),a,async r=>{o.createdOnPropertyFormat=r,await l.store(o)})}getDisplayDateTemplateSetting(a){return{name:"Display date template",description:"The template to use when displaying the date of the note.",placeholder:"HH:mm",value:a}}getUseCreatedOnDateFromPropertiesSetting(a){return{name:"Use property for the created date of a note",description:"Use the property to determine the created date of the note.",placeholder:"",value:a}}getCreatedOnDatePropertyNameSetting(a){return{name:"Property name for created date",description:'The property to use to determine the created date of the note. This is only applicable if the "Use property for created date" setting is enabled.',placeholder:"",value:a}}getCreatedOnPropertyFormatSetting(a){return{name:"Created date format",description:"The format to use when parsing the created date from the property.",placeholder:"yyyy/MM/dd HH:mm",value:a}}addSortOrderSetting(a,l){let o=new Map;o.set("ascending","Ascending"),o.set("descending","Descending"),this.addDropdownSetting("Display order for the notes","The order in which the notes will be ordered based on the created date.",o,a.toLowerCase(),async r=>r.toLowerCase()==="ascending"?await l("ascending"):await l("descending"))}};var gs=class extends Ta{constructor(a,l,o){super(a,l);this.settingsTab=a;this.settingsRepositoryFactory=o;this.title="General";this.description="General settings for the Daily Note Calendar plugin."}async addSettings(){let a=this.settingsRepositoryFactory.getRepository("general"),l=await a.get();this.addBooleanSetting(this.getNotesCreatedOnDateSetting(l.displayNotesCreatedOnDate),async o=>{l.displayNotesCreatedOnDate=o,await a.store(l)}),this.addBooleanSetting(this.getDisplayNoteIndicatorSetting(l.displayNoteIndicator),async o=>{l.displayNoteIndicator=o,await a.store(l)}),this.addStartDayOfWeekSetting(l.firstDayOfWeek,async o=>{l.firstDayOfWeek=o,await a.store(l)}),this.addWeekNumberStandardSetting(l.weekNumberStandard,async o=>{l.weekNumberStandard=o,await a.store(l)}),this.addBooleanSetting(this.getUseModifierKeyToCreateNoteSetting(l.useModifierKeyToCreateNote),async o=>{l.useModifierKeyToCreateNote=o,await a.store(l)})}getNotesCreatedOnDateSetting(a){return{name:"Display notes created on selected date",description:"When selecting a specific date in the calender, display all the notes created on that date below the calendar.",placeholder:"",value:a}}getDisplayNoteIndicatorSetting(a){return{name:"Display an indicator on each date that has a note",description:"Display an indicator below the date or week number if the date has a note.",placeholder:"",value:a}}addStartDayOfWeekSetting(a,l){let o=new Map;o.set("monday",this.dayOfWeekName(1)),o.set("tuesday",this.dayOfWeekName(2)),o.set("wednesday",this.dayOfWeekName(3)),o.set("thursday",this.dayOfWeekName(4)),o.set("friday",this.dayOfWeekName(5)),o.set("saturday",this.dayOfWeekName(6)),o.set("sunday",this.dayOfWeekName(0)),this.addDropdownSetting("First day of the week","Set the first day of the week for the calendar.",o,this.dayOfWeekName(a).toLowerCase(),async r=>await l(this.dayOfWeek(r)))}addWeekNumberStandardSetting(a,l){let o=new Map;o.set("iso",this.weekNumberStandardName(0)),o.set("us",this.weekNumberStandardName(1));let r=o.keys().next(this.weekNumberStandardName(a)).value;this.addDropdownSetting("Week number standard","Set the week number standard for the calendar.",o,r,async u=>u.toLowerCase()==="iso"?await l(0):await l(1))}getUseModifierKeyToCreateNoteSetting(a){return{name:"Use modifier key to create a note",description:"Use a modifier key to create a note instead of clicking on the date.",placeholder:"",value:a}}dayOfWeekName(a){switch(a){case 1:return"Monday";case 2:return"Tuesday";case 3:return"Wednesday";case 4:return"Thursday";case 5:return"Friday";case 6:return"Saturday";case 0:return"Sunday"}}dayOfWeek(a){switch(a.toLowerCase()){case"monday":return 1;case"tuesday":return 2;case"wednesday":return 3;case"thursday":return 4;case"friday":return 5;case"saturday":return 6;default:return 0}}weekNumberStandardName(a){switch(a){case 0:return"ISO 8601";case 1:return"US"}}};var ys=class extends nS.PluginSettingTab{constructor(a,l,o,r){super(a.app,a);this.settings=[];this.settings.push(new gs(this,r,o)),this.settings.push(new hs(this,r,l,o)),this.settings.push(new ds(this,r,l,o)),this.settings.push(new fs(this,r,l,o)),this.settings.push(new cs(this,r,l,o)),this.settings.push(new ms(this,r,l,o)),this.settings.push(new ps(this,r,l,o))}async display(){this.containerEl.empty();for(let a=0;a<this.settings.length;a++)await this.settings[a].displaySettings(),a<this.settings.length-1&&this.displaySeparator()}displaySeparator(){this.containerEl.createEl("hr")}};var Ss=class extends sS.Plugin{constructor(){super(...arguments);this.dependencies=$c(this)}async onload(){let a=l=>new al(l,this.dependencies.contextMenuAdapter,this.dependencies.calendarViewModel,this.dependencies.dailyNoteViewModel,this.dependencies.weeklyNoteViewModel,this.dependencies.monthlyNoteViewModel,this.dependencies.quarterlyNoteViewModel,this.dependencies.yearlyNoteViewModel,this.dependencies.notesViewModel);await this.initializePlugin(),this.registerView(al.VIEW_TYPE,l=>a(l)),this.registerSettings(),this.registerCommands(),this.app.workspace.onLayoutReady(this.onLayoutReady.bind(this))}async initializePlugin(){let a=this.dependencies.dateManagerFactory.getManager().getCurrentDay(),l=await this.dependencies.settingsRepositoryFactory.getRepository("plugin").get();this.dependencies.calendarViewModel.initialize(l,a),this.dependencies.dailyNoteViewModel.updateSettings(l),this.dependencies.weeklyNoteViewModel.updateSettings(l),this.dependencies.monthlyNoteViewModel.updateSettings(l),this.dependencies.quarterlyNoteViewModel.updateSettings(l),this.dependencies.yearlyNoteViewModel.updateSettings(l)}onLayoutReady(){this.registerPlugin(),this.app.vault.on("create",()=>{var a;return(a=this.dependencies.notesViewModel.updateNotes)==null?void 0:a.call(this)}),this.app.vault.on("delete",()=>{var a;return(a=this.dependencies.notesViewModel.updateNotes)==null?void 0:a.call(this)}),this.app.vault.on("rename",()=>{var a;return(a=this.dependencies.notesViewModel.updateNotes)==null?void 0:a.call(this)})}registerPlugin(){var a;this.app.workspace.getLeavesOfType(al.VIEW_TYPE).length<=0&&((a=this.app.workspace.getRightLeaf(!1))==null||a.setViewState({type:al.VIEW_TYPE}))}registerSettings(){let a=new ys(this,this.dependencies.dateParserFactory,this.dependencies.settingsRepositoryFactory,()=>{});this.addSettingTab(a)}registerCommands(){this.addCommand(new ts(this.dependencies.commandHandlerFactory)),this.addCommand(new as(this.dependencies.commandHandlerFactory)),this.addCommand(new ls(this.dependencies.commandHandlerFactory)),this.addCommand(new os(this.dependencies.commandHandlerFactory)),this.addCommand(new ns(this.dependencies.commandHandlerFactory)),this.addCommand(new ss(this.dependencies.commandHandlerFactory)),this.addCommand(new rs(this.dependencies.commandHandlerFactory)),this.addCommand(new us(this.dependencies.commandHandlerFactory)),this.addCommand(new is(this.dependencies.commandHandlerFactory))}};
/*! Bundled license information:
scheduler/cjs/scheduler.production.js:
(**
* @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.
*)
react/cjs/react.production.js:
(**
* @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.
*)
react-dom/cjs/react-dom.production.js:
(**
* @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.
*)
react-dom/cjs/react-dom-client.production.js:
(**
* @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.
*)
react/cjs/react-jsx-runtime.production.js:
(**
* @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.
*)
lucide-react/dist/esm/shared/src/utils.js:
(**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/defaultAttributes.js:
(**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/Icon.js:
(**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/createLucideIcon.js:
(**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/calendar-heart.js:
(**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/chevron-left.js:
(**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/chevron-right.js:
(**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/chevrons-left.js:
(**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/icons/chevrons-right.js:
(**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
lucide-react/dist/esm/lucide-react.js:
(**
* @license lucide-react v0.469.0 - ISC
*
* This source code is licensed under the ISC license.
* See the LICENSE file in the root directory of this source tree.
*)
*/
/* nosourcemap */