90 lines
284 KiB
JavaScript
90 lines
284 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 Px=Object.create;var nl=Object.defineProperty;var Nx=Object.getOwnPropertyDescriptor;var Ax=Object.getOwnPropertyNames;var kx=Object.getPrototypeOf,Rx=Object.prototype.hasOwnProperty;var Ox=(e,a,t)=>a in e?nl(e,a,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[a]=t;var ya=(e,a)=>()=>(a||e((a={exports:{}}).exports,a),a.exports),Fx=(e,a)=>{for(var t in a)nl(e,t,{get:a[t],enumerable:!0})},xc=(e,a,t,o)=>{if(a&&typeof a=="object"||typeof a=="function")for(let l of Ax(a))!Rx.call(e,l)&&l!==t&&nl(e,l,{get:()=>a[l],enumerable:!(o=Nx(a,l))||o.enumerable});return e};var U=(e,a,t)=>(t=e!=null?Px(kx(e)):{},xc(a||!e||!e.__esModule?nl(t,"default",{value:e,enumerable:!0}):t,e)),Ex=e=>xc(nl({},"__esModule",{value:!0}),e);var S=(e,a,t)=>Ox(e,typeof a!="symbol"?a+"":a,t);var Lm=ya(te=>{"use strict";function As(e,a){var t=e.length;e.push(a);e:for(;0<t;){var o=t-1>>>1,l=e[o];if(0<vi(l,a))e[o]=a,e[t]=l,t=o;else break e}}function Sa(e){return e.length===0?null:e[0]}function Mi(e){if(e.length===0)return null;var a=e[0],t=e.pop();if(t!==a){e[0]=t;e:for(var o=0,l=e.length,r=l>>>1;o<r;){var u=2*(o+1)-1,i=e[u],n=u+1,d=e[n];if(0>vi(i,t))n<l&&0>vi(d,i)?(e[o]=d,e[n]=t,o=n):(e[o]=i,e[u]=t,o=u);else if(n<l&&0>vi(d,t))e[o]=d,e[n]=t,o=n;else break e}}return a}function vi(e,a){var t=e.sortIndex-a.sortIndex;return t!==0?t:e.id-a.id}te.unstable_now=void 0;typeof performance=="object"&&typeof performance.now=="function"?(fm=performance,te.unstable_now=function(){return fm.now()}):(Ts=Date,cm=Ts.now(),te.unstable_now=function(){return Ts.now()-cm});var fm,Ts,cm,ka=[],Ja=[],qS=1,aa=null,Pe=3,ks=!1,ml=!1,pl=!1,Rs=!1,gm=typeof setTimeout=="function"?setTimeout:null,hm=typeof clearTimeout=="function"?clearTimeout:null,mm=typeof setImmediate!="undefined"?setImmediate:null;function wi(e){for(var a=Sa(Ja);a!==null;){if(a.callback===null)Mi(Ja);else if(a.startTime<=e)Mi(Ja),a.sortIndex=a.expirationTime,As(ka,a);else break;a=Sa(Ja)}}function Os(e){if(pl=!1,wi(e),!ml)if(Sa(ka)!==null)ml=!0,go||(go=!0,po());else{var a=Sa(Ja);a!==null&&Fs(Os,a.startTime-e)}}var go=!1,gl=-1,ym=5,xm=-1;function Sm(){return Rs?!0:!(te.unstable_now()-xm<ym)}function Ps(){if(Rs=!1,go){var e=te.unstable_now();xm=e;var a=!0;try{e:{ml=!1,pl&&(pl=!1,hm(gl),gl=-1),ks=!0;var t=Pe;try{a:{for(wi(e),aa=Sa(ka);aa!==null&&!(aa.expirationTime>e&&Sm());){var o=aa.callback;if(typeof o=="function"){aa.callback=null,Pe=aa.priorityLevel;var l=o(aa.expirationTime<=e);if(e=te.unstable_now(),typeof l=="function"){aa.callback=l,wi(e),a=!0;break a}aa===Sa(ka)&&Mi(ka),wi(e)}else Mi(ka);aa=Sa(ka)}if(aa!==null)a=!0;else{var r=Sa(Ja);r!==null&&Fs(Os,r.startTime-e),a=!1}}break e}finally{aa=null,Pe=t,ks=!1}a=void 0}}finally{a?po():go=!1}}}var po;typeof mm=="function"?po=function(){mm(Ps)}:typeof MessageChannel!="undefined"?(Ns=new MessageChannel,pm=Ns.port2,Ns.port1.onmessage=Ps,po=function(){pm.postMessage(null)}):po=function(){gm(Ps,0)};var Ns,pm;function Fs(e,a){gl=gm(function(){e(te.unstable_now())},a)}te.unstable_IdlePriority=5;te.unstable_ImmediatePriority=1;te.unstable_LowPriority=4;te.unstable_NormalPriority=3;te.unstable_Profiling=null;te.unstable_UserBlockingPriority=2;te.unstable_cancelCallback=function(e){e.callback=null};te.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"):ym=0<e?Math.floor(1e3/e):5};te.unstable_getCurrentPriorityLevel=function(){return Pe};te.unstable_next=function(e){switch(Pe){case 1:case 2:case 3:var a=3;break;default:a=Pe}var t=Pe;Pe=a;try{return e()}finally{Pe=t}};te.unstable_requestPaint=function(){Rs=!0};te.unstable_runWithPriority=function(e,a){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var t=Pe;Pe=e;try{return a()}finally{Pe=t}};te.unstable_scheduleCallback=function(e,a,t){var o=te.unstable_now();switch(typeof t=="object"&&t!==null?(t=t.delay,t=typeof t=="number"&&0<t?o+t:o):t=o,e){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return l=t+l,e={id:qS++,callback:a,priorityLevel:e,startTime:t,expirationTime:l,sortIndex:-1},t>o?(e.sortIndex=t,As(Ja,e),Sa(ka)===null&&e===Sa(Ja)&&(pl?(hm(gl),gl=-1):pl=!0,Fs(Os,t-o))):(e.sortIndex=l,As(ka,e),ml||ks||(ml=!0,go||(go=!0,po()))),e};te.unstable_shouldYield=Sm;te.unstable_wrapCallback=function(e){var a=Pe;return function(){var t=Pe;Pe=a;try{return e.apply(this,arguments)}finally{Pe=t}}}});var Im=ya((CA,Cm)=>{"use strict";Cm.exports=Lm()});var Om=ya(k=>{"use strict";var Bs=Symbol.for("react.transitional.element"),US=Symbol.for("react.portal"),VS=Symbol.for("react.fragment"),zS=Symbol.for("react.strict_mode"),_S=Symbol.for("react.profiler"),GS=Symbol.for("react.consumer"),WS=Symbol.for("react.context"),YS=Symbol.for("react.forward_ref"),XS=Symbol.for("react.suspense"),QS=Symbol.for("react.memo"),Tm=Symbol.for("react.lazy"),vm=Symbol.iterator;function KS(e){return e===null||typeof e!="object"?null:(e=vm&&e[vm]||e["@@iterator"],typeof e=="function"?e:null)}var Pm={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Nm=Object.assign,Am={};function yo(e,a,t){this.props=e,this.context=a,this.refs=Am,this.updater=t||Pm}yo.prototype.isReactComponent={};yo.prototype.setState=function(e,a){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,a,"setState")};yo.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function km(){}km.prototype=yo.prototype;function Hs(e,a,t){this.props=e,this.context=a,this.refs=Am,this.updater=t||Pm}var qs=Hs.prototype=new km;qs.constructor=Hs;Nm(qs,yo.prototype);qs.isPureReactComponent=!0;var wm=Array.isArray,oe={H:null,A:null,T:null,S:null,V:null},Rm=Object.prototype.hasOwnProperty;function Us(e,a,t,o,l,r){return t=r.ref,{$$typeof:Bs,type:e,key:a,ref:t!==void 0?t:null,props:r}}function ZS(e,a){return Us(e.type,a,void 0,void 0,void 0,e.props)}function Vs(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bs}function jS(e){var a={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(t){return a[t]})}var Mm=/\/+/g;function Es(e,a){return typeof e=="object"&&e!==null&&e.key!=null?jS(""+e.key):a.toString(36)}function bm(){}function JS(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(bm,bm):(e.status="pending",e.then(function(a){e.status==="pending"&&(e.status="fulfilled",e.value=a)},function(a){e.status==="pending"&&(e.status="rejected",e.reason=a)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function ho(e,a,t,o,l){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 Bs:case US:u=!0;break;case Tm:return u=e._init,ho(u(e._payload),a,t,o,l)}}if(u)return l=l(e),u=o===""?"."+Es(e,0):o,wm(l)?(t="",u!=null&&(t=u.replace(Mm,"$&/")+"/"),ho(l,a,t,"",function(d){return d})):l!=null&&(Vs(l)&&(l=ZS(l,t+(l.key==null||e&&e.key===l.key?"":(""+l.key).replace(Mm,"$&/")+"/")+u)),a.push(l)),1;u=0;var i=o===""?".":o+":";if(wm(e))for(var n=0;n<e.length;n++)o=e[n],r=i+Es(o,n),u+=ho(o,a,t,r,l);else if(n=KS(e),typeof n=="function")for(e=n.call(e),n=0;!(o=e.next()).done;)o=o.value,r=i+Es(o,n++),u+=ho(o,a,t,r,l);else if(r==="object"){if(typeof e.then=="function")return ho(JS(e),a,t,o,l);throw a=String(e),Error("Objects are not valid as a React child (found: "+(a==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":a)+"). If you meant to render a collection of children, use an array instead.")}return u}function bi(e,a,t){if(e==null)return e;var o=[],l=0;return ho(e,o,"","",function(r){return a.call(t,r,l++)}),o}function $S(e){if(e._status===-1){var a=e._result;a=a(),a.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=a)}if(e._status===1)return e._result.default;throw e._result}var Dm=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function eL(){}k.Children={map:bi,forEach:function(e,a,t){bi(e,function(){a.apply(this,arguments)},t)},count:function(e){var a=0;return bi(e,function(){a++}),a},toArray:function(e){return bi(e,function(a){return a})||[]},only:function(e){if(!Vs(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};k.Component=yo;k.Fragment=VS;k.Profiler=_S;k.PureComponent=Hs;k.StrictMode=zS;k.Suspense=XS;k.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=oe;k.__COMPILER_RUNTIME={__proto__:null,c:function(e){return oe.H.useMemoCache(e)}};k.cache=function(e){return function(){return e.apply(null,arguments)}};k.cloneElement=function(e,a,t){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var o=Nm({},e.props),l=e.key,r=void 0;if(a!=null)for(u in a.ref!==void 0&&(r=void 0),a.key!==void 0&&(l=""+a.key),a)!Rm.call(a,u)||u==="key"||u==="__self"||u==="__source"||u==="ref"&&a.ref===void 0||(o[u]=a[u]);var u=arguments.length-2;if(u===1)o.children=t;else if(1<u){for(var i=Array(u),n=0;n<u;n++)i[n]=arguments[n+2];o.children=i}return Us(e.type,l,void 0,void 0,r,o)};k.createContext=function(e){return e={$$typeof:WS,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:GS,_context:e},e};k.createElement=function(e,a,t){var o,l={},r=null;if(a!=null)for(o in a.key!==void 0&&(r=""+a.key),a)Rm.call(a,o)&&o!=="key"&&o!=="__self"&&o!=="__source"&&(l[o]=a[o]);var u=arguments.length-2;if(u===1)l.children=t;else if(1<u){for(var i=Array(u),n=0;n<u;n++)i[n]=arguments[n+2];l.children=i}if(e&&e.defaultProps)for(o in u=e.defaultProps,u)l[o]===void 0&&(l[o]=u[o]);return Us(e,r,void 0,void 0,null,l)};k.createRef=function(){return{current:null}};k.forwardRef=function(e){return{$$typeof:YS,render:e}};k.isValidElement=Vs;k.lazy=function(e){return{$$typeof:Tm,_payload:{_status:-1,_result:e},_init:$S}};k.memo=function(e,a){return{$$typeof:QS,type:e,compare:a===void 0?null:a}};k.startTransition=function(e){var a=oe.T,t={};oe.T=t;try{var o=e(),l=oe.S;l!==null&&l(t,o),typeof o=="object"&&o!==null&&typeof o.then=="function"&&o.then(eL,Dm)}catch(r){Dm(r)}finally{oe.T=a}};k.unstable_useCacheRefresh=function(){return oe.H.useCacheRefresh()};k.use=function(e){return oe.H.use(e)};k.useActionState=function(e,a,t){return oe.H.useActionState(e,a,t)};k.useCallback=function(e,a){return oe.H.useCallback(e,a)};k.useContext=function(e){return oe.H.useContext(e)};k.useDebugValue=function(){};k.useDeferredValue=function(e,a){return oe.H.useDeferredValue(e,a)};k.useEffect=function(e,a,t){var o=oe.H;if(typeof t=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return o.useEffect(e,a)};k.useId=function(){return oe.H.useId()};k.useImperativeHandle=function(e,a,t){return oe.H.useImperativeHandle(e,a,t)};k.useInsertionEffect=function(e,a){return oe.H.useInsertionEffect(e,a)};k.useLayoutEffect=function(e,a){return oe.H.useLayoutEffect(e,a)};k.useMemo=function(e,a){return oe.H.useMemo(e,a)};k.useOptimistic=function(e,a){return oe.H.useOptimistic(e,a)};k.useReducer=function(e,a,t){return oe.H.useReducer(e,a,t)};k.useRef=function(e){return oe.H.useRef(e)};k.useState=function(e){return oe.H.useState(e)};k.useSyncExternalStore=function(e,a,t){return oe.H.useSyncExternalStore(e,a,t)};k.useTransition=function(){return oe.H.useTransition()};k.version="19.1.1"});var ke=ya((vA,Fm)=>{"use strict";Fm.exports=Om()});var Bm=ya(Oe=>{"use strict";var aL=ke();function Em(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)a+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function $a(){}var Re={d:{f:$a,r:function(){throw Error(Em(522))},D:$a,C:$a,L:$a,m:$a,X:$a,S:$a,M:$a},p:0,findDOMNode:null},tL=Symbol.for("react.portal");function oL(e,a,t){var o=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:tL,key:o==null?null:""+o,children:e,containerInfo:a,implementation:t}}var hl=aL.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function Di(e,a){if(e==="font")return"";if(typeof a=="string")return a==="use-credentials"?a:""}Oe.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Re;Oe.createPortal=function(e,a){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!a||a.nodeType!==1&&a.nodeType!==9&&a.nodeType!==11)throw Error(Em(299));return oL(e,a,null,t)};Oe.flushSync=function(e){var a=hl.T,t=Re.p;try{if(hl.T=null,Re.p=2,e)return e()}finally{hl.T=a,Re.p=t,Re.d.f()}};Oe.preconnect=function(e,a){typeof e=="string"&&(a?(a=a.crossOrigin,a=typeof a=="string"?a==="use-credentials"?a:"":void 0):a=null,Re.d.C(e,a))};Oe.prefetchDNS=function(e){typeof e=="string"&&Re.d.D(e)};Oe.preinit=function(e,a){if(typeof e=="string"&&a&&typeof a.as=="string"){var t=a.as,o=Di(t,a.crossOrigin),l=typeof a.integrity=="string"?a.integrity:void 0,r=typeof a.fetchPriority=="string"?a.fetchPriority:void 0;t==="style"?Re.d.S(e,typeof a.precedence=="string"?a.precedence:void 0,{crossOrigin:o,integrity:l,fetchPriority:r}):t==="script"&&Re.d.X(e,{crossOrigin:o,integrity:l,fetchPriority:r,nonce:typeof a.nonce=="string"?a.nonce:void 0})}};Oe.preinitModule=function(e,a){if(typeof e=="string")if(typeof a=="object"&&a!==null){if(a.as==null||a.as==="script"){var t=Di(a.as,a.crossOrigin);Re.d.M(e,{crossOrigin:t,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0})}}else a==null&&Re.d.M(e)};Oe.preload=function(e,a){if(typeof e=="string"&&typeof a=="object"&&a!==null&&typeof a.as=="string"){var t=a.as,o=Di(t,a.crossOrigin);Re.d.L(e,t,{crossOrigin:o,integrity:typeof a.integrity=="string"?a.integrity:void 0,nonce:typeof a.nonce=="string"?a.nonce:void 0,type:typeof a.type=="string"?a.type:void 0,fetchPriority:typeof a.fetchPriority=="string"?a.fetchPriority:void 0,referrerPolicy:typeof a.referrerPolicy=="string"?a.referrerPolicy:void 0,imageSrcSet:typeof a.imageSrcSet=="string"?a.imageSrcSet:void 0,imageSizes:typeof a.imageSizes=="string"?a.imageSizes:void 0,media:typeof a.media=="string"?a.media:void 0})}};Oe.preloadModule=function(e,a){if(typeof e=="string")if(a){var t=Di(a.as,a.crossOrigin);Re.d.m(e,{as:typeof a.as=="string"&&a.as!=="script"?a.as:void 0,crossOrigin:t,integrity:typeof a.integrity=="string"?a.integrity:void 0})}else Re.d.m(e)};Oe.requestFormReset=function(e){Re.d.r(e)};Oe.unstable_batchedUpdates=function(e,a){return e(a)};Oe.useFormState=function(e,a,t){return hl.H.useFormState(e,a,t)};Oe.useFormStatus=function(){return hl.H.useHostTransitionStatus()};Oe.version="19.1.1"});var Um=ya((MA,qm)=>{"use strict";function Hm(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Hm)}catch(e){console.error(e)}}Hm(),qm.exports=Bm()});var zy=ya(Zn=>{"use strict";var ye=Im(),ng=ke(),lL=Um();function x(e){var a="https://react.dev/errors/"+e;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)a+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+e+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function sg(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function or(e){var a=e,t=e;if(e.alternate)for(;a.return;)a=a.return;else{e=a;do a=e,(a.flags&4098)!==0&&(t=a.return),e=a.return;while(e)}return a.tag===3?t:null}function dg(e){if(e.tag===13){var a=e.memoizedState;if(a===null&&(e=e.alternate,e!==null&&(a=e.memoizedState)),a!==null)return a.dehydrated}return null}function Vm(e){if(or(e)!==e)throw Error(x(188))}function rL(e){var a=e.alternate;if(!a){if(a=or(e),a===null)throw Error(x(188));return a!==e?null:e}for(var t=e,o=a;;){var l=t.return;if(l===null)break;var r=l.alternate;if(r===null){if(o=l.return,o!==null){t=o;continue}break}if(l.child===r.child){for(r=l.child;r;){if(r===t)return Vm(l),e;if(r===o)return Vm(l),a;r=r.sibling}throw Error(x(188))}if(t.return!==o.return)t=l,o=r;else{for(var u=!1,i=l.child;i;){if(i===t){u=!0,t=l,o=r;break}if(i===o){u=!0,o=l,t=r;break}i=i.sibling}if(!u){for(i=r.child;i;){if(i===t){u=!0,t=r,o=l;break}if(i===o){u=!0,o=r,t=l;break}i=i.sibling}if(!u)throw Error(x(189))}}if(t.alternate!==o)throw Error(x(190))}if(t.tag!==3)throw Error(x(188));return t.stateNode.current===t?e:a}function fg(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e;for(e=e.child;e!==null;){if(a=fg(e),a!==null)return a;e=e.sibling}return null}var ae=Object.assign,uL=Symbol.for("react.element"),Ti=Symbol.for("react.transitional.element"),Ml=Symbol.for("react.portal"),wo=Symbol.for("react.fragment"),cg=Symbol.for("react.strict_mode"),Sd=Symbol.for("react.profiler"),iL=Symbol.for("react.provider"),mg=Symbol.for("react.consumer"),Ba=Symbol.for("react.context"),gf=Symbol.for("react.forward_ref"),Ld=Symbol.for("react.suspense"),Cd=Symbol.for("react.suspense_list"),hf=Symbol.for("react.memo"),tt=Symbol.for("react.lazy");Symbol.for("react.scope");var Id=Symbol.for("react.activity");Symbol.for("react.legacy_hidden");Symbol.for("react.tracing_marker");var nL=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var zm=Symbol.iterator;function yl(e){return e===null||typeof e!="object"?null:(e=zm&&e[zm]||e["@@iterator"],typeof e=="function"?e:null)}var sL=Symbol.for("react.client.reference");function vd(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===sL?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case wo:return"Fragment";case Sd:return"Profiler";case cg:return"StrictMode";case Ld:return"Suspense";case Cd:return"SuspenseList";case Id:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case Ml:return"Portal";case Ba:return(e.displayName||"Context")+".Provider";case mg:return(e._context.displayName||"Context")+".Consumer";case gf:var a=e.render;return e=e.displayName,e||(e=a.displayName||a.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case hf:return a=e.displayName||null,a!==null?a:vd(e.type)||"Memo";case tt:a=e._payload,e=e._init;try{return vd(e(a))}catch(t){}}return null}var bl=Array.isArray,D=ng.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W=lL.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ot={pending:!1,data:null,method:null,action:null},wd=[],Mo=-1;function ba(e){return{current:e}}function Ie(e){0>Mo||(e.current=wd[Mo],wd[Mo]=null,Mo--)}function re(e,a){Mo++,wd[Mo]=e.current,e.current=a}var va=ba(null),_l=ba(null),ct=ba(null),ln=ba(null);function rn(e,a){switch(re(ct,a),re(_l,e),re(va,null),a.nodeType){case 9:case 11:e=(e=a.documentElement)&&(e=e.namespaceURI)?Qp(e):0;break;default:if(e=a.tagName,a=a.namespaceURI)a=Qp(a),e=Ny(a,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ie(va),re(va,e)}function Go(){Ie(va),Ie(_l),Ie(ct)}function Md(e){e.memoizedState!==null&&re(ln,e);var a=va.current,t=Ny(a,e.type);a!==t&&(re(_l,e),re(va,t))}function un(e){_l.current===e&&(Ie(va),Ie(_l)),ln.current===e&&(Ie(ln),$l._currentValue=Ot)}var bd=Object.prototype.hasOwnProperty,yf=ye.unstable_scheduleCallback,zs=ye.unstable_cancelCallback,dL=ye.unstable_shouldYield,fL=ye.unstable_requestPaint,wa=ye.unstable_now,cL=ye.unstable_getCurrentPriorityLevel,pg=ye.unstable_ImmediatePriority,gg=ye.unstable_UserBlockingPriority,nn=ye.unstable_NormalPriority,mL=ye.unstable_LowPriority,hg=ye.unstable_IdlePriority,pL=ye.log,gL=ye.unstable_setDisableYieldValue,lr=null,Ye=null;function nt(e){if(typeof pL=="function"&&gL(e),Ye&&typeof Ye.setStrictMode=="function")try{Ye.setStrictMode(lr,e)}catch(a){}}var Xe=Math.clz32?Math.clz32:xL,hL=Math.log,yL=Math.LN2;function xL(e){return e>>>=0,e===0?32:31-(hL(e)/yL|0)|0}var Pi=256,Ni=4194304;function At(e){var a=e&42;if(a!==0)return a;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:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;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 Fn(e,a,t){var o=e.pendingLanes;if(o===0)return 0;var l=0,r=e.suspendedLanes,u=e.pingedLanes;e=e.warmLanes;var i=o&134217727;return i!==0?(o=i&~r,o!==0?l=At(o):(u&=i,u!==0?l=At(u):t||(t=i&~e,t!==0&&(l=At(t))))):(i=o&~r,i!==0?l=At(i):u!==0?l=At(u):t||(t=o&~e,t!==0&&(l=At(t)))),l===0?0:a!==0&&a!==l&&(a&r)===0&&(r=l&-l,t=a&-a,r>=t||r===32&&(t&4194048)!==0)?a:l}function rr(e,a){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&a)===0}function SL(e,a){switch(e){case 1:case 2:case 4:case 8:case 64:return a+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return a+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 yg(){var e=Pi;return Pi<<=1,(Pi&4194048)===0&&(Pi=256),e}function xg(){var e=Ni;return Ni<<=1,(Ni&62914560)===0&&(Ni=4194304),e}function _s(e){for(var a=[],t=0;31>t;t++)a.push(e);return a}function ur(e,a){e.pendingLanes|=a,a!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function LL(e,a,t,o,l,r){var u=e.pendingLanes;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=t,e.entangledLanes&=t,e.errorRecoveryDisabledLanes&=t,e.shellSuspendCounter=0;var i=e.entanglements,n=e.expirationTimes,d=e.hiddenUpdates;for(t=u&~t;0<t;){var g=31-Xe(t),h=1<<g;i[g]=0,n[g]=-1;var f=d[g];if(f!==null)for(d[g]=null,g=0;g<f.length;g++){var m=f[g];m!==null&&(m.lane&=-536870913)}t&=~h}o!==0&&Sg(e,o,0),r!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=r&~(u&~a))}function Sg(e,a,t){e.pendingLanes|=a,e.suspendedLanes&=~a;var o=31-Xe(a);e.entangledLanes|=a,e.entanglements[o]=e.entanglements[o]|1073741824|t&4194090}function Lg(e,a){var t=e.entangledLanes|=a;for(e=e.entanglements;t;){var o=31-Xe(t),l=1<<o;l&a|e[o]&a&&(e[o]|=a),t&=~l}}function xf(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Sf(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function Cg(){var e=W.p;return e!==0?e:(e=window.event,e===void 0?32:Uy(e.type))}function CL(e,a){var t=W.p;try{return W.p=e,a()}finally{W.p=t}}var vt=Math.random().toString(36).slice(2),Ne="__reactFiber$"+vt,Ue="__reactProps$"+vt,al="__reactContainer$"+vt,Dd="__reactEvents$"+vt,IL="__reactListeners$"+vt,vL="__reactHandles$"+vt,_m="__reactResources$"+vt,ir="__reactMarker$"+vt;function Lf(e){delete e[Ne],delete e[Ue],delete e[Dd],delete e[IL],delete e[vL]}function bo(e){var a=e[Ne];if(a)return a;for(var t=e.parentNode;t;){if(a=t[al]||t[Ne]){if(t=a.alternate,a.child!==null||t!==null&&t.child!==null)for(e=jp(e);e!==null;){if(t=e[Ne])return t;e=jp(e)}return a}e=t,t=e.parentNode}return null}function tl(e){if(e=e[Ne]||e[al]){var a=e.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return e}return null}function Dl(e){var a=e.tag;if(a===5||a===26||a===27||a===6)return e.stateNode;throw Error(x(33))}function Eo(e){var a=e[_m];return a||(a=e[_m]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function Le(e){e[ir]=!0}var Ig=new Set,vg={};function Wt(e,a){Wo(e,a),Wo(e+"Capture",a)}function Wo(e,a){for(vg[e]=a,e=0;e<a.length;e++)Ig.add(a[e])}var wL=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]*$"),Gm={},Wm={};function ML(e){return bd.call(Wm,e)?!0:bd.call(Gm,e)?!1:wL.test(e)?Wm[e]=!0:(Gm[e]=!0,!1)}function Wi(e,a,t){if(ML(a))if(t===null)e.removeAttribute(a);else{switch(typeof t){case"undefined":case"function":case"symbol":e.removeAttribute(a);return;case"boolean":var o=a.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(a);return}}e.setAttribute(a,""+t)}}function Ai(e,a,t){if(t===null)e.removeAttribute(a);else{switch(typeof t){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}e.setAttribute(a,""+t)}}function Ra(e,a,t,o){if(o===null)e.removeAttribute(t);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttributeNS(a,t,""+o)}}var Gs,Ym;function Co(e){if(Gs===void 0)try{throw Error()}catch(t){var a=t.stack.trim().match(/\n( *(at )?)/);Gs=a&&a[1]||"",Ym=-1<t.stack.indexOf(`
|
|
at`)?" (<anonymous>)":-1<t.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
`+Gs+e+Ym}var Ws=!1;function Ys(e,a){if(!e||Ws)return"";Ws=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(a){var h=function(){throw Error()};if(Object.defineProperty(h.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(h,[])}catch(m){var f=m}Reflect.construct(e,[],h)}else{try{h.call()}catch(m){f=m}e.call(h.prototype)}}else{try{throw Error()}catch(m){f=m}(h=e())&&typeof h.catch=="function"&&h.catch(function(){})}}catch(m){if(m&&f&&typeof m.stack=="string")return[m.stack,f.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var r=o.DetermineComponentFrameRoot(),u=r[0],i=r[1];if(u&&i){var n=u.split(`
|
|
`),d=i.split(`
|
|
`);for(l=o=0;o<n.length&&!n[o].includes("DetermineComponentFrameRoot");)o++;for(;l<d.length&&!d[l].includes("DetermineComponentFrameRoot");)l++;if(o===n.length||l===d.length)for(o=n.length-1,l=d.length-1;1<=o&&0<=l&&n[o]!==d[l];)l--;for(;1<=o&&0<=l;o--,l--)if(n[o]!==d[l]){if(o!==1||l!==1)do if(o--,l--,0>l||n[o]!==d[l]){var g=`
|
|
`+n[o].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),g}while(1<=o&&0<=l);break}}}finally{Ws=!1,Error.prepareStackTrace=t}return(t=e?e.displayName||e.name:"")?Co(t):""}function bL(e){switch(e.tag){case 26:case 27:case 5:return Co(e.type);case 16:return Co("Lazy");case 13:return Co("Suspense");case 19:return Co("SuspenseList");case 0:case 15:return Ys(e.type,!1);case 11:return Ys(e.type.render,!1);case 1:return Ys(e.type,!0);case 31:return Co("Activity");default:return""}}function Xm(e){try{var a="";do a+=bL(e),e=e.return;while(e);return a}catch(t){return`
|
|
Error generating stack: `+t.message+`
|
|
`+t.stack}}function oa(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function wg(e){var a=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function DL(e){var a=wg(e)?"checked":"value",t=Object.getOwnPropertyDescriptor(e.constructor.prototype,a),o=""+e[a];if(!e.hasOwnProperty(a)&&typeof t!="undefined"&&typeof t.get=="function"&&typeof t.set=="function"){var l=t.get,r=t.set;return Object.defineProperty(e,a,{configurable:!0,get:function(){return l.call(this)},set:function(u){o=""+u,r.call(this,u)}}),Object.defineProperty(e,a,{enumerable:t.enumerable}),{getValue:function(){return o},setValue:function(u){o=""+u},stopTracking:function(){e._valueTracker=null,delete e[a]}}}}function sn(e){e._valueTracker||(e._valueTracker=DL(e))}function Mg(e){if(!e)return!1;var a=e._valueTracker;if(!a)return!0;var t=a.getValue(),o="";return e&&(o=wg(e)?e.checked?"true":"false":e.value),e=o,e!==t?(a.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(a){return e.body}}var TL=/[\n"\\]/g;function ua(e){return e.replace(TL,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function Td(e,a,t,o,l,r,u,i){e.name="",u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"?e.type=u:e.removeAttribute("type"),a!=null?u==="number"?(a===0&&e.value===""||e.value!=a)&&(e.value=""+oa(a)):e.value!==""+oa(a)&&(e.value=""+oa(a)):u!=="submit"&&u!=="reset"||e.removeAttribute("value"),a!=null?Pd(e,u,oa(a)):t!=null?Pd(e,u,oa(t)):o!=null&&e.removeAttribute("value"),l==null&&r!=null&&(e.defaultChecked=!!r),l!=null&&(e.checked=l&&typeof l!="function"&&typeof l!="symbol"),i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"?e.name=""+oa(i):e.removeAttribute("name")}function bg(e,a,t,o,l,r,u,i){if(r!=null&&typeof r!="function"&&typeof r!="symbol"&&typeof r!="boolean"&&(e.type=r),a!=null||t!=null){if(!(r!=="submit"&&r!=="reset"||a!=null))return;t=t!=null?""+oa(t):"",a=a!=null?""+oa(a):t,i||a===e.value||(e.value=a),e.defaultValue=a}o=o!=null?o:l,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=i?e.checked:!!o,e.defaultChecked=!!o,u!=null&&typeof u!="function"&&typeof u!="symbol"&&typeof u!="boolean"&&(e.name=u)}function Pd(e,a,t){a==="number"&&dn(e.ownerDocument)===e||e.defaultValue===""+t||(e.defaultValue=""+t)}function Bo(e,a,t,o){if(e=e.options,a){a={};for(var l=0;l<t.length;l++)a["$"+t[l]]=!0;for(t=0;t<e.length;t++)l=a.hasOwnProperty("$"+e[t].value),e[t].selected!==l&&(e[t].selected=l),l&&o&&(e[t].defaultSelected=!0)}else{for(t=""+oa(t),a=null,l=0;l<e.length;l++){if(e[l].value===t){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}a!==null||e[l].disabled||(a=e[l])}a!==null&&(a.selected=!0)}}function Dg(e,a,t){if(a!=null&&(a=""+oa(a),a!==e.value&&(e.value=a),t==null)){e.defaultValue!==a&&(e.defaultValue=a);return}e.defaultValue=t!=null?""+oa(t):""}function Tg(e,a,t,o){if(a==null){if(o!=null){if(t!=null)throw Error(x(92));if(bl(o)){if(1<o.length)throw Error(x(93));o=o[0]}t=o}t==null&&(t=""),a=t}t=oa(a),e.defaultValue=t,o=e.textContent,o===t&&o!==""&&o!==null&&(e.value=o)}function Yo(e,a){if(a){var t=e.firstChild;if(t&&t===e.lastChild&&t.nodeType===3){t.nodeValue=a;return}}e.textContent=a}var PL=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 Qm(e,a,t){var o=a.indexOf("--")===0;t==null||typeof t=="boolean"||t===""?o?e.setProperty(a,""):a==="float"?e.cssFloat="":e[a]="":o?e.setProperty(a,t):typeof t!="number"||t===0||PL.has(a)?a==="float"?e.cssFloat=t:e[a]=(""+t).trim():e[a]=t+"px"}function Pg(e,a,t){if(a!=null&&typeof a!="object")throw Error(x(62));if(e=e.style,t!=null){for(var o in t)!t.hasOwnProperty(o)||a!=null&&a.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var l in a)o=a[l],a.hasOwnProperty(l)&&t[l]!==o&&Qm(e,l,o)}else for(var r in a)a.hasOwnProperty(r)&&Qm(e,r,a[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 NL=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"]]),AL=/^[\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 Yi(e){return AL.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Nd=null;function If(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Do=null,Ho=null;function Km(e){var a=tl(e);if(a&&(e=a.stateNode)){var t=e[Ue]||null;e:switch(e=a.stateNode,a.type){case"input":if(Td(e,t.value,t.defaultValue,t.defaultValue,t.checked,t.defaultChecked,t.type,t.name),a=t.name,t.type==="radio"&&a!=null){for(t=e;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll('input[name="'+ua(""+a)+'"][type="radio"]'),a=0;a<t.length;a++){var o=t[a];if(o!==e&&o.form===e.form){var l=o[Ue]||null;if(!l)throw Error(x(90));Td(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(a=0;a<t.length;a++)o=t[a],o.form===e.form&&Mg(o)}break e;case"textarea":Dg(e,t.value,t.defaultValue);break e;case"select":a=t.value,a!=null&&Bo(e,!!t.multiple,a,!1)}}}var Xs=!1;function Ng(e,a,t){if(Xs)return e(a,t);Xs=!0;try{var o=e(a);return o}finally{if(Xs=!1,(Do!==null||Ho!==null)&&(Wn(),Do&&(a=Do,e=Ho,Ho=Do=null,Km(a),e)))for(a=0;a<e.length;a++)Km(e[a])}}function Gl(e,a){var t=e.stateNode;if(t===null)return null;var o=t[Ue]||null;if(o===null)return null;t=o[a];e:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(t&&typeof t!="function")throw Error(x(231,a,typeof t));return t}var Ga=!(typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"),Ad=!1;if(Ga)try{xo={},Object.defineProperty(xo,"passive",{get:function(){Ad=!0}}),window.addEventListener("test",xo,xo),window.removeEventListener("test",xo,xo)}catch(e){Ad=!1}var xo,st=null,vf=null,Xi=null;function Ag(){if(Xi)return Xi;var e,a=vf,t=a.length,o,l="value"in st?st.value:st.textContent,r=l.length;for(e=0;e<t&&a[e]===l[e];e++);var u=t-e;for(o=1;o<=u&&a[t-o]===l[r-o];o++);return Xi=l.slice(e,1<o?1-o:void 0)}function Qi(e){var a=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&a===13&&(e=13)):e=a,e===10&&(e=13),32<=e||e===13?e:0}function ki(){return!0}function Zm(){return!1}function Ve(e){function a(t,o,l,r,u){this._reactName=t,this._targetInst=l,this.type=o,this.nativeEvent=r,this.target=u,this.currentTarget=null;for(var i in e)e.hasOwnProperty(i)&&(t=e[i],this[i]=t?t(r):r[i]);return this.isDefaultPrevented=(r.defaultPrevented!=null?r.defaultPrevented:r.returnValue===!1)?ki:Zm,this.isPropagationStopped=Zm,this}return ae(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=ki)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=ki)},persist:function(){},isPersistent:ki}),a}var Yt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},En=Ve(Yt),nr=ae({},Yt,{view:0,detail:0}),kL=Ve(nr),Qs,Ks,xl,Bn=ae({},nr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:wf,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!==xl&&(xl&&e.type==="mousemove"?(Qs=e.screenX-xl.screenX,Ks=e.screenY-xl.screenY):Ks=Qs=0,xl=e),Qs)},movementY:function(e){return"movementY"in e?e.movementY:Ks}}),jm=Ve(Bn),RL=ae({},Bn,{dataTransfer:0}),OL=Ve(RL),FL=ae({},nr,{relatedTarget:0}),Zs=Ve(FL),EL=ae({},Yt,{animationName:0,elapsedTime:0,pseudoElement:0}),BL=Ve(EL),HL=ae({},Yt,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qL=Ve(HL),UL=ae({},Yt,{data:0}),Jm=Ve(UL),VL={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zL={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"},_L={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function GL(e){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(e):(e=_L[e])?!!a[e]:!1}function wf(){return GL}var WL=ae({},nr,{key:function(e){if(e.key){var a=VL[e.key]||e.key;if(a!=="Unidentified")return a}return e.type==="keypress"?(e=Qi(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?zL[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:wf,charCode:function(e){return e.type==="keypress"?Qi(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Qi(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),YL=Ve(WL),XL=ae({},Bn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),$m=Ve(XL),QL=ae({},nr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:wf}),KL=Ve(QL),ZL=ae({},Yt,{propertyName:0,elapsedTime:0,pseudoElement:0}),jL=Ve(ZL),JL=ae({},Bn,{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}),$L=Ve(JL),eC=ae({},Yt,{newState:0,oldState:0}),aC=Ve(eC),tC=[9,13,27,32],Mf=Ga&&"CompositionEvent"in window,Pl=null;Ga&&"documentMode"in document&&(Pl=document.documentMode);var oC=Ga&&"TextEvent"in window&&!Pl,kg=Ga&&(!Mf||Pl&&8<Pl&&11>=Pl),ep=" ",ap=!1;function Rg(e,a){switch(e){case"keyup":return tC.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Og(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var To=!1;function lC(e,a){switch(e){case"compositionend":return Og(a);case"keypress":return a.which!==32?null:(ap=!0,ep);case"textInput":return e=a.data,e===ep&&ap?null:e;default:return null}}function rC(e,a){if(To)return e==="compositionend"||!Mf&&Rg(e,a)?(e=Ag(),Xi=vf=st=null,To=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return kg&&a.locale!=="ko"?null:a.data;default:return null}}var uC={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 tp(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a==="input"?!!uC[e.type]:a==="textarea"}function Fg(e,a,t,o){Do?Ho?Ho.push(o):Ho=[o]:Do=o,a=Tn(a,"onChange"),0<a.length&&(t=new En("onChange","change",null,t,o),e.push({event:t,listeners:a}))}var Nl=null,Wl=null;function iC(e){Dy(e,0)}function Hn(e){var a=Dl(e);if(Mg(a))return e}function op(e,a){if(e==="change")return a}var Eg=!1;Ga&&(Ga?(Oi="oninput"in document,Oi||(js=document.createElement("div"),js.setAttribute("oninput","return;"),Oi=typeof js.oninput=="function"),Ri=Oi):Ri=!1,Eg=Ri&&(!document.documentMode||9<document.documentMode));var Ri,Oi,js;function lp(){Nl&&(Nl.detachEvent("onpropertychange",Bg),Wl=Nl=null)}function Bg(e){if(e.propertyName==="value"&&Hn(Wl)){var a=[];Fg(a,Wl,e,If(e)),Ng(iC,a)}}function nC(e,a,t){e==="focusin"?(lp(),Nl=a,Wl=t,Nl.attachEvent("onpropertychange",Bg)):e==="focusout"&&lp()}function sC(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Hn(Wl)}function dC(e,a){if(e==="click")return Hn(a)}function fC(e,a){if(e==="input"||e==="change")return Hn(a)}function cC(e,a){return e===a&&(e!==0||1/e===1/a)||e!==e&&a!==a}var Ze=typeof Object.is=="function"?Object.is:cC;function Yl(e,a){if(Ze(e,a))return!0;if(typeof e!="object"||e===null||typeof a!="object"||a===null)return!1;var t=Object.keys(e),o=Object.keys(a);if(t.length!==o.length)return!1;for(o=0;o<t.length;o++){var l=t[o];if(!bd.call(a,l)||!Ze(e[l],a[l]))return!1}return!0}function rp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function up(e,a){var t=rp(e);e=0;for(var o;t;){if(t.nodeType===3){if(o=e+t.textContent.length,e<=a&&o>=a)return{node:t,offset:a-e};e=o}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=rp(t)}}function Hg(e,a){return e&&a?e===a?!0:e&&e.nodeType===3?!1:a&&a.nodeType===3?Hg(e,a.parentNode):"contains"in e?e.contains(a):e.compareDocumentPosition?!!(e.compareDocumentPosition(a)&16):!1:!1}function qg(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var a=dn(e.document);a instanceof e.HTMLIFrameElement;){try{var t=typeof a.contentWindow.location.href=="string"}catch(o){t=!1}if(t)e=a.contentWindow;else break;a=dn(e.document)}return a}function bf(e){var a=e&&e.nodeName&&e.nodeName.toLowerCase();return a&&(a==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||a==="textarea"||e.contentEditable==="true")}var mC=Ga&&"documentMode"in document&&11>=document.documentMode,Po=null,kd=null,Al=null,Rd=!1;function ip(e,a,t){var o=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;Rd||Po==null||Po!==dn(o)||(o=Po,"selectionStart"in o&&bf(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Al&&Yl(Al,o)||(Al=o,o=Tn(kd,"onSelect"),0<o.length&&(a=new En("onSelect","select",null,a,t),e.push({event:a,listeners:o}),a.target=Po)))}function Nt(e,a){var t={};return t[e.toLowerCase()]=a.toLowerCase(),t["Webkit"+e]="webkit"+a,t["Moz"+e]="moz"+a,t}var No={animationend:Nt("Animation","AnimationEnd"),animationiteration:Nt("Animation","AnimationIteration"),animationstart:Nt("Animation","AnimationStart"),transitionrun:Nt("Transition","TransitionRun"),transitionstart:Nt("Transition","TransitionStart"),transitioncancel:Nt("Transition","TransitionCancel"),transitionend:Nt("Transition","TransitionEnd")},Js={},Ug={};Ga&&(Ug=document.createElement("div").style,"AnimationEvent"in window||(delete No.animationend.animation,delete No.animationiteration.animation,delete No.animationstart.animation),"TransitionEvent"in window||delete No.transitionend.transition);function Xt(e){if(Js[e])return Js[e];if(!No[e])return e;var a=No[e],t;for(t in a)if(a.hasOwnProperty(t)&&t in Ug)return Js[e]=a[t];return e}var Vg=Xt("animationend"),zg=Xt("animationiteration"),_g=Xt("animationstart"),pC=Xt("transitionrun"),gC=Xt("transitionstart"),hC=Xt("transitioncancel"),Gg=Xt("transitionend"),Wg=new Map,Od="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");Od.push("scrollEnd");function ga(e,a){Wg.set(e,a),Wt(a,[e])}var np=new WeakMap;function ia(e,a){if(typeof e=="object"&&e!==null){var t=np.get(e);return t!==void 0?t:(a={value:e,source:a,stack:Xm(a)},np.set(e,a),a)}return{value:e,source:a,stack:Xm(a)}}var ta=[],Ao=0,Df=0;function qn(){for(var e=Ao,a=Df=Ao=0;a<e;){var t=ta[a];ta[a++]=null;var o=ta[a];ta[a++]=null;var l=ta[a];ta[a++]=null;var r=ta[a];if(ta[a++]=null,o!==null&&l!==null){var u=o.pending;u===null?l.next=l:(l.next=u.next,u.next=l),o.pending=l}r!==0&&Yg(t,l,r)}}function Un(e,a,t,o){ta[Ao++]=e,ta[Ao++]=a,ta[Ao++]=t,ta[Ao++]=o,Df|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Tf(e,a,t,o){return Un(e,a,t,o),fn(e)}function ol(e,a){return Un(e,null,null,a),fn(e)}function Yg(e,a,t){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t);for(var l=!1,r=e.return;r!==null;)r.childLanes|=t,o=r.alternate,o!==null&&(o.childLanes|=t),r.tag===22&&(e=r.stateNode,e===null||e._visibility&1||(l=!0)),e=r,r=r.return;return e.tag===3?(r=e.stateNode,l&&a!==null&&(l=31-Xe(t),e=r.hiddenUpdates,o=e[l],o===null?e[l]=[a]:o.push(a),a.lane=t|536870912),r):null}function fn(e){if(50<Vl)throw Vl=0,af=null,Error(x(185));for(var a=e.return;a!==null;)e=a,a=e.return;return e.tag===3?e.stateNode:null}var ko={};function yC(e,a,t,o){this.tag=e,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function We(e,a,t,o){return new yC(e,a,t,o)}function Pf(e){return e=e.prototype,!(!e||!e.isReactComponent)}function za(e,a){var t=e.alternate;return t===null?(t=We(e.tag,a,e.key,e.mode),t.elementType=e.elementType,t.type=e.type,t.stateNode=e.stateNode,t.alternate=e,e.alternate=t):(t.pendingProps=a,t.type=e.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=e.flags&65011712,t.childLanes=e.childLanes,t.lanes=e.lanes,t.child=e.child,t.memoizedProps=e.memoizedProps,t.memoizedState=e.memoizedState,t.updateQueue=e.updateQueue,a=e.dependencies,t.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},t.sibling=e.sibling,t.index=e.index,t.ref=e.ref,t.refCleanup=e.refCleanup,t}function Xg(e,a){e.flags&=65011714;var t=e.alternate;return t===null?(e.childLanes=0,e.lanes=a,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=t.childLanes,e.lanes=t.lanes,e.child=t.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=t.memoizedProps,e.memoizedState=t.memoizedState,e.updateQueue=t.updateQueue,e.type=t.type,a=t.dependencies,e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),e}function Ki(e,a,t,o,l,r){var u=0;if(o=e,typeof e=="function")Pf(e)&&(u=1);else if(typeof e=="string")u=yI(e,t,va.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Id:return e=We(31,t,a,l),e.elementType=Id,e.lanes=r,e;case wo:return Ft(t.children,l,r,a);case cg:u=8,l|=24;break;case Sd:return e=We(12,t,a,l|2),e.elementType=Sd,e.lanes=r,e;case Ld:return e=We(13,t,a,l),e.elementType=Ld,e.lanes=r,e;case Cd:return e=We(19,t,a,l),e.elementType=Cd,e.lanes=r,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case iL:case Ba:u=10;break e;case mg:u=9;break e;case gf:u=11;break e;case hf:u=14;break e;case tt:u=16,o=null;break e}u=29,t=Error(x(130,e===null?"null":typeof e,"")),o=null}return a=We(u,t,a,l),a.elementType=e,a.type=o,a.lanes=r,a}function Ft(e,a,t,o){return e=We(7,e,o,a),e.lanes=t,e}function $s(e,a,t){return e=We(6,e,null,a),e.lanes=t,e}function ed(e,a,t){return a=We(4,e.children!==null?e.children:[],e.key,a),a.lanes=t,a.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},a}var Ro=[],Oo=0,cn=null,mn=0,la=[],ra=0,Et=null,Ha=1,qa="";function kt(e,a){Ro[Oo++]=mn,Ro[Oo++]=cn,cn=e,mn=a}function Qg(e,a,t){la[ra++]=Ha,la[ra++]=qa,la[ra++]=Et,Et=e;var o=Ha;e=qa;var l=32-Xe(o)-1;o&=~(1<<l),t+=1;var r=32-Xe(a)+l;if(30<r){var u=l-l%5;r=(o&(1<<u)-1).toString(32),o>>=u,l-=u,Ha=1<<32-Xe(a)+l|t<<l|o,qa=r+e}else Ha=1<<r|t<<l|o,qa=e}function Nf(e){e.return!==null&&(kt(e,1),Qg(e,1,0))}function Af(e){for(;e===cn;)cn=Ro[--Oo],Ro[Oo]=null,mn=Ro[--Oo],Ro[Oo]=null;for(;e===Et;)Et=la[--ra],la[ra]=null,qa=la[--ra],la[ra]=null,Ha=la[--ra],la[ra]=null}var Fe=null,ne=null,G=!1,Bt=null,Ca=!1,Fd=Error(x(519));function Vt(e){var a=Error(x(418,""));throw Xl(ia(a,e)),Fd}function sp(e){var a=e.stateNode,t=e.type,o=e.memoizedProps;switch(a[Ne]=e,a[Ue]=o,t){case"dialog":F("cancel",a),F("close",a);break;case"iframe":case"object":case"embed":F("load",a);break;case"video":case"audio":for(t=0;t<Zl.length;t++)F(Zl[t],a);break;case"source":F("error",a);break;case"img":case"image":case"link":F("error",a),F("load",a);break;case"details":F("toggle",a);break;case"input":F("invalid",a),bg(a,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),sn(a);break;case"select":F("invalid",a);break;case"textarea":F("invalid",a),Tg(a,o.value,o.defaultValue,o.children),sn(a)}t=o.children,typeof t!="string"&&typeof t!="number"&&typeof t!="bigint"||a.textContent===""+t||o.suppressHydrationWarning===!0||Py(a.textContent,t)?(o.popover!=null&&(F("beforetoggle",a),F("toggle",a)),o.onScroll!=null&&F("scroll",a),o.onScrollEnd!=null&&F("scrollend",a),o.onClick!=null&&(a.onclick=Qn),a=!0):a=!1,a||Vt(e)}function dp(e){for(Fe=e.return;Fe;)switch(Fe.tag){case 5:case 13:Ca=!1;return;case 27:case 3:Ca=!0;return;default:Fe=Fe.return}}function Sl(e){if(e!==Fe)return!1;if(!G)return dp(e),G=!0,!1;var a=e.tag,t;if((t=a!==3&&a!==27)&&((t=a===5)&&(t=e.type,t=!(t!=="form"&&t!=="button")||nf(e.type,e.memoizedProps)),t=!t),t&&ne&&Vt(e),dp(e),a===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(x(317));e:{for(e=e.nextSibling,a=0;e;){if(e.nodeType===8)if(t=e.data,t==="/$"){if(a===0){ne=pa(e.nextSibling);break e}a--}else t!=="$"&&t!=="$!"&&t!=="$?"||a++;e=e.nextSibling}ne=null}}else a===27?(a=ne,wt(e.type)?(e=ff,ff=null,ne=e):ne=a):ne=Fe?pa(e.stateNode.nextSibling):null;return!0}function sr(){ne=Fe=null,G=!1}function fp(){var e=Bt;return e!==null&&(qe===null?qe=e:qe.push.apply(qe,e),Bt=null),e}function Xl(e){Bt===null?Bt=[e]:Bt.push(e)}var Ed=ba(null),Qt=null,Ua=null;function lt(e,a,t){re(Ed,a._currentValue),a._currentValue=t}function _a(e){e._currentValue=Ed.current,Ie(Ed)}function Bd(e,a,t){for(;e!==null;){var o=e.alternate;if((e.childLanes&a)!==a?(e.childLanes|=a,o!==null&&(o.childLanes|=a)):o!==null&&(o.childLanes&a)!==a&&(o.childLanes|=a),e===t)break;e=e.return}}function Hd(e,a,t,o){var l=e.child;for(l!==null&&(l.return=e);l!==null;){var r=l.dependencies;if(r!==null){var u=l.child;r=r.firstContext;e:for(;r!==null;){var i=r;r=l;for(var n=0;n<a.length;n++)if(i.context===a[n]){r.lanes|=t,i=r.alternate,i!==null&&(i.lanes|=t),Bd(r.return,t,e),o||(u=null);break e}r=i.next}}else if(l.tag===18){if(u=l.return,u===null)throw Error(x(341));u.lanes|=t,r=u.alternate,r!==null&&(r.lanes|=t),Bd(u,t,e),u=null}else u=l.child;if(u!==null)u.return=l;else for(u=l;u!==null;){if(u===e){u=null;break}if(l=u.sibling,l!==null){l.return=u.return,u=l;break}u=u.return}l=u}}function dr(e,a,t,o){e=null;for(var l=a,r=!1;l!==null;){if(!r){if((l.flags&524288)!==0)r=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var u=l.alternate;if(u===null)throw Error(x(387));if(u=u.memoizedProps,u!==null){var i=l.type;Ze(l.pendingProps.value,u.value)||(e!==null?e.push(i):e=[i])}}else if(l===ln.current){if(u=l.alternate,u===null)throw Error(x(387));u.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push($l):e=[$l])}l=l.return}e!==null&&Hd(a,e,t,o),a.flags|=262144}function pn(e){for(e=e.firstContext;e!==null;){if(!Ze(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function zt(e){Qt=e,Ua=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ae(e){return Kg(Qt,e)}function Fi(e,a){return Qt===null&&zt(e),Kg(e,a)}function Kg(e,a){var t=a._currentValue;if(a={context:a,memoizedValue:t,next:null},Ua===null){if(e===null)throw Error(x(308));Ua=a,e.dependencies={lanes:0,firstContext:a},e.flags|=524288}else Ua=Ua.next=a;return t}var xC=typeof AbortController!="undefined"?AbortController:function(){var e=[],a=this.signal={aborted:!1,addEventListener:function(t,o){e.push(o)}};this.abort=function(){a.aborted=!0,e.forEach(function(t){return t()})}},SC=ye.unstable_scheduleCallback,LC=ye.unstable_NormalPriority,ge={$$typeof:Ba,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function kf(){return{controller:new xC,data:new Map,refCount:0}}function fr(e){e.refCount--,e.refCount===0&&SC(LC,function(){e.controller.abort()})}var kl=null,qd=0,Xo=0,qo=null;function CC(e,a){if(kl===null){var t=kl=[];qd=0,Xo=ac(),qo={status:"pending",value:void 0,then:function(o){t.push(o)}}}return qd++,a.then(cp,cp),a}function cp(){if(--qd===0&&kl!==null){qo!==null&&(qo.status="fulfilled");var e=kl;kl=null,Xo=0,qo=null;for(var a=0;a<e.length;a++)(0,e[a])()}}function IC(e,a){var t=[],o={status:"pending",value:null,reason:null,then:function(l){t.push(l)}};return e.then(function(){o.status="fulfilled",o.value=a;for(var l=0;l<t.length;l++)(0,t[l])(a)},function(l){for(o.status="rejected",o.reason=l,l=0;l<t.length;l++)(0,t[l])(void 0)}),o}var mp=D.S;D.S=function(e,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&CC(e,a),mp!==null&&mp(e,a)};var Ht=ba(null);function Rf(){var e=Ht.current;return e!==null?e:ee.pooledCache}function Zi(e,a){a===null?re(Ht,Ht.current):re(Ht,a.pool)}function Zg(){var e=Rf();return e===null?null:{parent:ge._currentValue,pool:e}}var cr=Error(x(460)),jg=Error(x(474)),Vn=Error(x(542)),Ud={then:function(){}};function pp(e){return e=e.status,e==="fulfilled"||e==="rejected"}function Ei(){}function Jg(e,a,t){switch(t=e[t],t===void 0?e.push(a):t!==a&&(a.then(Ei,Ei),a=t),a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,hp(e),e;default:if(typeof a.status=="string")a.then(Ei,Ei);else{if(e=ee,e!==null&&100<e.shellSuspendCounter)throw Error(x(482));e=a,e.status="pending",e.then(function(o){if(a.status==="pending"){var l=a;l.status="fulfilled",l.value=o}},function(o){if(a.status==="pending"){var l=a;l.status="rejected",l.reason=o}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw e=a.reason,hp(e),e}throw Rl=a,cr}}var Rl=null;function gp(){if(Rl===null)throw Error(x(459));var e=Rl;return Rl=null,e}function hp(e){if(e===cr||e===Vn)throw Error(x(483))}var ot=!1;function Of(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Vd(e,a){e=e.updateQueue,a.updateQueue===e&&(a.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function mt(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function pt(e,a,t){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(Q&2)!==0){var l=o.pending;return l===null?a.next=a:(a.next=l.next,l.next=a),o.pending=a,a=fn(e),Yg(e,null,t),a}return Un(e,o,a,t),fn(e)}function Ol(e,a,t){if(a=a.updateQueue,a!==null&&(a=a.shared,(t&4194048)!==0)){var o=a.lanes;o&=e.pendingLanes,t|=o,a.lanes=t,Lg(e,t)}}function ad(e,a){var t=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,t===o)){var l=null,r=null;if(t=t.firstBaseUpdate,t!==null){do{var u={lane:t.lane,tag:t.tag,payload:t.payload,callback:null,next:null};r===null?l=r=u:r=r.next=u,t=t.next}while(t!==null);r===null?l=r=a:r=r.next=a}else l=r=a;t={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:r,shared:o.shared,callbacks:o.callbacks},e.updateQueue=t;return}e=t.lastBaseUpdate,e===null?t.firstBaseUpdate=a:e.next=a,t.lastBaseUpdate=a}var zd=!1;function Fl(){if(zd){var e=qo;if(e!==null)throw e}}function El(e,a,t,o){zd=!1;var l=e.updateQueue;ot=!1;var r=l.firstBaseUpdate,u=l.lastBaseUpdate,i=l.shared.pending;if(i!==null){l.shared.pending=null;var n=i,d=n.next;n.next=null,u===null?r=d:u.next=d,u=n;var g=e.alternate;g!==null&&(g=g.updateQueue,i=g.lastBaseUpdate,i!==u&&(i===null?g.firstBaseUpdate=d:i.next=d,g.lastBaseUpdate=n))}if(r!==null){var h=l.baseState;u=0,g=d=n=null,i=r;do{var f=i.lane&-536870913,m=f!==i.lane;if(m?(q&f)===f:(o&f)===f){f!==0&&f===Xo&&(zd=!0),g!==null&&(g=g.next={lane:0,tag:i.tag,payload:i.payload,callback:null,next:null});e:{var L=e,I=i;f=a;var T=t;switch(I.tag){case 1:if(L=I.payload,typeof L=="function"){h=L.call(T,h,f);break e}h=L;break e;case 3:L.flags=L.flags&-65537|128;case 0:if(L=I.payload,f=typeof L=="function"?L.call(T,h,f):L,f==null)break e;h=ae({},h,f);break e;case 2:ot=!0}}f=i.callback,f!==null&&(e.flags|=64,m&&(e.flags|=8192),m=l.callbacks,m===null?l.callbacks=[f]:m.push(f))}else m={lane:f,tag:i.tag,payload:i.payload,callback:i.callback,next:null},g===null?(d=g=m,n=h):g=g.next=m,u|=f;if(i=i.next,i===null){if(i=l.shared.pending,i===null)break;m=i,i=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);g===null&&(n=h),l.baseState=n,l.firstBaseUpdate=d,l.lastBaseUpdate=g,r===null&&(l.shared.lanes=0),It|=u,e.lanes=u,e.memoizedState=h}}function $g(e,a){if(typeof e!="function")throw Error(x(191,e));e.call(a)}function eh(e,a){var t=e.callbacks;if(t!==null)for(e.callbacks=null,e=0;e<t.length;e++)$g(t[e],a)}var Qo=ba(null),gn=ba(0);function yp(e,a){e=Xa,re(gn,e),re(Qo,a),Xa=e|a.baseLanes}function _d(){re(gn,Xa),re(Qo,Qo.current)}function Ff(){Xa=gn.current,Ie(Qo),Ie(gn)}var Lt=0,R=null,Z=null,me=null,hn=!1,Uo=!1,_t=!1,yn=0,Ql=0,Vo=null,vC=0;function de(){throw Error(x(321))}function Ef(e,a){if(a===null)return!1;for(var t=0;t<a.length&&t<e.length;t++)if(!Ze(e[t],a[t]))return!1;return!0}function Bf(e,a,t,o,l,r){return Lt=r,R=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,D.H=e===null||e.memoizedState===null?Ah:kh,_t=!1,r=t(o,l),_t=!1,Uo&&(r=th(a,t,o,l)),ah(e),r}function ah(e){D.H=xn;var a=Z!==null&&Z.next!==null;if(Lt=0,me=Z=R=null,hn=!1,Ql=0,Vo=null,a)throw Error(x(300));e===null||Ce||(e=e.dependencies,e!==null&&pn(e)&&(Ce=!0))}function th(e,a,t,o){R=e;var l=0;do{if(Uo&&(Vo=null),Ql=0,Uo=!1,25<=l)throw Error(x(301));if(l+=1,me=Z=null,e.updateQueue!=null){var r=e.updateQueue;r.lastEffect=null,r.events=null,r.stores=null,r.memoCache!=null&&(r.memoCache.index=0)}D.H=NC,r=a(t,o)}while(Uo);return r}function wC(){var e=D.H,a=e.useState()[0];return a=typeof a.then=="function"?mr(a):a,e=e.useState()[0],(Z!==null?Z.memoizedState:null)!==e&&(R.flags|=1024),a}function Hf(){var e=yn!==0;return yn=0,e}function qf(e,a,t){a.updateQueue=e.updateQueue,a.flags&=-2053,e.lanes&=~t}function Uf(e){if(hn){for(e=e.memoizedState;e!==null;){var a=e.queue;a!==null&&(a.pending=null),e=e.next}hn=!1}Lt=0,me=Z=R=null,Uo=!1,Ql=yn=0,Vo=null}function Be(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return me===null?R.memoizedState=me=e:me=me.next=e,me}function pe(){if(Z===null){var e=R.alternate;e=e!==null?e.memoizedState:null}else e=Z.next;var a=me===null?R.memoizedState:me.next;if(a!==null)me=a,Z=e;else{if(e===null)throw R.alternate===null?Error(x(467)):Error(x(310));Z=e,e={memoizedState:Z.memoizedState,baseState:Z.baseState,baseQueue:Z.baseQueue,queue:Z.queue,next:null},me===null?R.memoizedState=me=e:me=me.next=e}return me}function Vf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function mr(e){var a=Ql;return Ql+=1,Vo===null&&(Vo=[]),e=Jg(Vo,e,a),a=R,(me===null?a.memoizedState:me.next)===null&&(a=a.alternate,D.H=a===null||a.memoizedState===null?Ah:kh),e}function zn(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return mr(e);if(e.$$typeof===Ba)return Ae(e)}throw Error(x(438,String(e)))}function zf(e){var a=null,t=R.updateQueue;if(t!==null&&(a=t.memoCache),a==null){var o=R.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(a={data:o.data.map(function(l){return l.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),t===null&&(t=Vf(),R.updateQueue=t),t.memoCache=a,t=a.data[a.index],t===void 0)for(t=a.data[a.index]=Array(e),o=0;o<e;o++)t[o]=nL;return a.index++,t}function Wa(e,a){return typeof a=="function"?a(e):a}function ji(e){var a=pe();return _f(a,Z,e)}function _f(e,a,t){var o=e.queue;if(o===null)throw Error(x(311));o.lastRenderedReducer=t;var l=e.baseQueue,r=o.pending;if(r!==null){if(l!==null){var u=l.next;l.next=r.next,r.next=u}a.baseQueue=l=r,o.pending=null}if(r=e.baseState,l===null)e.memoizedState=r;else{a=l.next;var i=u=null,n=null,d=a,g=!1;do{var h=d.lane&-536870913;if(h!==d.lane?(q&h)===h:(Lt&h)===h){var f=d.revertLane;if(f===0)n!==null&&(n=n.next={lane:0,revertLane:0,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null}),h===Xo&&(g=!0);else if((Lt&f)===f){d=d.next,f===Xo&&(g=!0);continue}else h={lane:0,revertLane:d.revertLane,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},n===null?(i=n=h,u=r):n=n.next=h,R.lanes|=f,It|=f;h=d.action,_t&&t(r,h),r=d.hasEagerState?d.eagerState:t(r,h)}else f={lane:h,revertLane:d.revertLane,action:d.action,hasEagerState:d.hasEagerState,eagerState:d.eagerState,next:null},n===null?(i=n=f,u=r):n=n.next=f,R.lanes|=h,It|=h;d=d.next}while(d!==null&&d!==a);if(n===null?u=r:n.next=i,!Ze(r,e.memoizedState)&&(Ce=!0,g&&(t=qo,t!==null)))throw t;e.memoizedState=r,e.baseState=u,e.baseQueue=n,o.lastRenderedState=r}return l===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function td(e){var a=pe(),t=a.queue;if(t===null)throw Error(x(311));t.lastRenderedReducer=e;var o=t.dispatch,l=t.pending,r=a.memoizedState;if(l!==null){t.pending=null;var u=l=l.next;do r=e(r,u.action),u=u.next;while(u!==l);Ze(r,a.memoizedState)||(Ce=!0),a.memoizedState=r,a.baseQueue===null&&(a.baseState=r),t.lastRenderedState=r}return[r,o]}function oh(e,a,t){var o=R,l=pe(),r=G;if(r){if(t===void 0)throw Error(x(407));t=t()}else t=a();var u=!Ze((Z||l).memoizedState,t);u&&(l.memoizedState=t,Ce=!0),l=l.queue;var i=uh.bind(null,o,l,e);if(pr(2048,8,i,[e]),l.getSnapshot!==a||u||me!==null&&me.memoizedState.tag&1){if(o.flags|=2048,Ko(9,_n(),rh.bind(null,o,l,t,a),null),ee===null)throw Error(x(349));r||(Lt&124)!==0||lh(o,a,t)}return t}function lh(e,a,t){e.flags|=16384,e={getSnapshot:a,value:t},a=R.updateQueue,a===null?(a=Vf(),R.updateQueue=a,a.stores=[e]):(t=a.stores,t===null?a.stores=[e]:t.push(e))}function rh(e,a,t,o){a.value=t,a.getSnapshot=o,ih(a)&&nh(e)}function uh(e,a,t){return t(function(){ih(a)&&nh(e)})}function ih(e){var a=e.getSnapshot;e=e.value;try{var t=a();return!Ze(e,t)}catch(o){return!0}}function nh(e){var a=ol(e,2);a!==null&&Ke(a,e,2)}function Gd(e){var a=Be();if(typeof e=="function"){var t=e;if(e=t(),_t){nt(!0);try{t()}finally{nt(!1)}}}return a.memoizedState=a.baseState=e,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:e},a}function sh(e,a,t,o){return e.baseState=t,_f(e,Z,typeof o=="function"?o:Wa)}function MC(e,a,t,o,l){if(Gn(e))throw Error(x(485));if(e=a.action,e!==null){var r={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(u){r.listeners.push(u)}};D.T!==null?t(!0):r.isTransition=!1,o(r),t=a.pending,t===null?(r.next=a.pending=r,dh(a,r)):(r.next=t.next,a.pending=t.next=r)}}function dh(e,a){var t=a.action,o=a.payload,l=e.state;if(a.isTransition){var r=D.T,u={};D.T=u;try{var i=t(l,o),n=D.S;n!==null&&n(u,i),xp(e,a,i)}catch(d){Wd(e,a,d)}finally{D.T=r}}else try{r=t(l,o),xp(e,a,r)}catch(d){Wd(e,a,d)}}function xp(e,a,t){t!==null&&typeof t=="object"&&typeof t.then=="function"?t.then(function(o){Sp(e,a,o)},function(o){return Wd(e,a,o)}):Sp(e,a,t)}function Sp(e,a,t){a.status="fulfilled",a.value=t,fh(a),e.state=t,a=e.pending,a!==null&&(t=a.next,t===a?e.pending=null:(t=t.next,a.next=t,dh(e,t)))}function Wd(e,a,t){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do a.status="rejected",a.reason=t,fh(a),a=a.next;while(a!==o)}e.action=null}function fh(e){e=e.listeners;for(var a=0;a<e.length;a++)(0,e[a])()}function ch(e,a){return a}function Lp(e,a){if(G){var t=ee.formState;if(t!==null){e:{var o=R;if(G){if(ne){a:{for(var l=ne,r=Ca;l.nodeType!==8;){if(!r){l=null;break a}if(l=pa(l.nextSibling),l===null){l=null;break a}}r=l.data,l=r==="F!"||r==="F"?l:null}if(l){ne=pa(l.nextSibling),o=l.data==="F!";break e}}Vt(o)}o=!1}o&&(a=t[0])}}return t=Be(),t.memoizedState=t.baseState=a,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ch,lastRenderedState:a},t.queue=o,t=Th.bind(null,R,o),o.dispatch=t,o=Gd(!1),r=Xf.bind(null,R,!1,o.queue),o=Be(),l={state:a,dispatch:null,action:e,pending:null},o.queue=l,t=MC.bind(null,R,l,r,t),l.dispatch=t,o.memoizedState=e,[a,t,!1]}function Cp(e){var a=pe();return mh(a,Z,e)}function mh(e,a,t){if(a=_f(e,a,ch)[0],e=ji(Wa)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var o=mr(a)}catch(u){throw u===cr?Vn:u}else o=a;a=pe();var l=a.queue,r=l.dispatch;return t!==a.memoizedState&&(R.flags|=2048,Ko(9,_n(),bC.bind(null,l,t),null)),[o,r,e]}function bC(e,a){e.action=a}function Ip(e){var a=pe(),t=Z;if(t!==null)return mh(a,t,e);pe(),a=a.memoizedState,t=pe();var o=t.queue.dispatch;return t.memoizedState=e,[a,o,!1]}function Ko(e,a,t,o){return e={tag:e,create:t,deps:o,inst:a,next:null},a=R.updateQueue,a===null&&(a=Vf(),R.updateQueue=a),t=a.lastEffect,t===null?a.lastEffect=e.next=e:(o=t.next,t.next=e,e.next=o,a.lastEffect=e),e}function _n(){return{destroy:void 0,resource:void 0}}function ph(){return pe().memoizedState}function Ji(e,a,t,o){var l=Be();o=o===void 0?null:o,R.flags|=e,l.memoizedState=Ko(1|a,_n(),t,o)}function pr(e,a,t,o){var l=pe();o=o===void 0?null:o;var r=l.memoizedState.inst;Z!==null&&o!==null&&Ef(o,Z.memoizedState.deps)?l.memoizedState=Ko(a,r,t,o):(R.flags|=e,l.memoizedState=Ko(1|a,r,t,o))}function vp(e,a){Ji(8390656,8,e,a)}function gh(e,a){pr(2048,8,e,a)}function hh(e,a){return pr(4,2,e,a)}function yh(e,a){return pr(4,4,e,a)}function xh(e,a){if(typeof a=="function"){e=e();var t=a(e);return function(){typeof t=="function"?t():a(null)}}if(a!=null)return e=e(),a.current=e,function(){a.current=null}}function Sh(e,a,t){t=t!=null?t.concat([e]):null,pr(4,4,xh.bind(null,a,e),t)}function Gf(){}function Lh(e,a){var t=pe();a=a===void 0?null:a;var o=t.memoizedState;return a!==null&&Ef(a,o[1])?o[0]:(t.memoizedState=[e,a],e)}function Ch(e,a){var t=pe();a=a===void 0?null:a;var o=t.memoizedState;if(a!==null&&Ef(a,o[1]))return o[0];if(o=e(),_t){nt(!0);try{e()}finally{nt(!1)}}return t.memoizedState=[o,a],o}function Wf(e,a,t){return t===void 0||(Lt&1073741824)!==0?e.memoizedState=a:(e.memoizedState=t,e=fy(),R.lanes|=e,It|=e,t)}function Ih(e,a,t,o){return Ze(t,a)?t:Qo.current!==null?(e=Wf(e,t,o),Ze(e,a)||(Ce=!0),e):(Lt&42)===0?(Ce=!0,e.memoizedState=t):(e=fy(),R.lanes|=e,It|=e,a)}function vh(e,a,t,o,l){var r=W.p;W.p=r!==0&&8>r?r:8;var u=D.T,i={};D.T=i,Xf(e,!1,a,t);try{var n=l(),d=D.S;if(d!==null&&d(i,n),n!==null&&typeof n=="object"&&typeof n.then=="function"){var g=IC(n,o);Bl(e,a,g,Qe(e))}else Bl(e,a,o,Qe(e))}catch(h){Bl(e,a,{then:function(){},status:"rejected",reason:h},Qe())}finally{W.p=r,D.T=u}}function DC(){}function Yd(e,a,t,o){if(e.tag!==5)throw Error(x(476));var l=wh(e).queue;vh(e,l,a,Ot,t===null?DC:function(){return Mh(e),t(o)})}function wh(e){var a=e.memoizedState;if(a!==null)return a;a={memoizedState:Ot,baseState:Ot,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:Ot},next:null};var t={};return a.next={memoizedState:t,baseState:t,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Wa,lastRenderedState:t},next:null},e.memoizedState=a,e=e.alternate,e!==null&&(e.memoizedState=a),a}function Mh(e){var a=wh(e).next.queue;Bl(e,a,{},Qe())}function Yf(){return Ae($l)}function bh(){return pe().memoizedState}function Dh(){return pe().memoizedState}function TC(e){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var t=Qe();e=mt(t);var o=pt(a,e,t);o!==null&&(Ke(o,a,t),Ol(o,a,t)),a={cache:kf()},e.payload=a;return}a=a.return}}function PC(e,a,t){var o=Qe();t={lane:o,revertLane:0,action:t,hasEagerState:!1,eagerState:null,next:null},Gn(e)?Ph(a,t):(t=Tf(e,a,t,o),t!==null&&(Ke(t,e,o),Nh(t,a,o)))}function Th(e,a,t){var o=Qe();Bl(e,a,t,o)}function Bl(e,a,t,o){var l={lane:o,revertLane:0,action:t,hasEagerState:!1,eagerState:null,next:null};if(Gn(e))Ph(a,l);else{var r=e.alternate;if(e.lanes===0&&(r===null||r.lanes===0)&&(r=a.lastRenderedReducer,r!==null))try{var u=a.lastRenderedState,i=r(u,t);if(l.hasEagerState=!0,l.eagerState=i,Ze(i,u))return Un(e,a,l,0),ee===null&&qn(),!1}catch(n){}finally{}if(t=Tf(e,a,l,o),t!==null)return Ke(t,e,o),Nh(t,a,o),!0}return!1}function Xf(e,a,t,o){if(o={lane:2,revertLane:ac(),action:o,hasEagerState:!1,eagerState:null,next:null},Gn(e)){if(a)throw Error(x(479))}else a=Tf(e,t,o,2),a!==null&&Ke(a,e,2)}function Gn(e){var a=e.alternate;return e===R||a!==null&&a===R}function Ph(e,a){Uo=hn=!0;var t=e.pending;t===null?a.next=a:(a.next=t.next,t.next=a),e.pending=a}function Nh(e,a,t){if((t&4194048)!==0){var o=a.lanes;o&=e.pendingLanes,t|=o,a.lanes=t,Lg(e,t)}}var xn={readContext:Ae,use:zn,useCallback:de,useContext:de,useEffect:de,useImperativeHandle:de,useLayoutEffect:de,useInsertionEffect:de,useMemo:de,useReducer:de,useRef:de,useState:de,useDebugValue:de,useDeferredValue:de,useTransition:de,useSyncExternalStore:de,useId:de,useHostTransitionStatus:de,useFormState:de,useActionState:de,useOptimistic:de,useMemoCache:de,useCacheRefresh:de},Ah={readContext:Ae,use:zn,useCallback:function(e,a){return Be().memoizedState=[e,a===void 0?null:a],e},useContext:Ae,useEffect:vp,useImperativeHandle:function(e,a,t){t=t!=null?t.concat([e]):null,Ji(4194308,4,xh.bind(null,a,e),t)},useLayoutEffect:function(e,a){return Ji(4194308,4,e,a)},useInsertionEffect:function(e,a){Ji(4,2,e,a)},useMemo:function(e,a){var t=Be();a=a===void 0?null:a;var o=e();if(_t){nt(!0);try{e()}finally{nt(!1)}}return t.memoizedState=[o,a],o},useReducer:function(e,a,t){var o=Be();if(t!==void 0){var l=t(a);if(_t){nt(!0);try{t(a)}finally{nt(!1)}}}else l=a;return o.memoizedState=o.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},o.queue=e,e=e.dispatch=PC.bind(null,R,e),[o.memoizedState,e]},useRef:function(e){var a=Be();return e={current:e},a.memoizedState=e},useState:function(e){e=Gd(e);var a=e.queue,t=Th.bind(null,R,a);return a.dispatch=t,[e.memoizedState,t]},useDebugValue:Gf,useDeferredValue:function(e,a){var t=Be();return Wf(t,e,a)},useTransition:function(){var e=Gd(!1);return e=vh.bind(null,R,e.queue,!0,!1),Be().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,a,t){var o=R,l=Be();if(G){if(t===void 0)throw Error(x(407));t=t()}else{if(t=a(),ee===null)throw Error(x(349));(q&124)!==0||lh(o,a,t)}l.memoizedState=t;var r={value:t,getSnapshot:a};return l.queue=r,vp(uh.bind(null,o,r,e),[e]),o.flags|=2048,Ko(9,_n(),rh.bind(null,o,r,t,a),null),t},useId:function(){var e=Be(),a=ee.identifierPrefix;if(G){var t=qa,o=Ha;t=(o&~(1<<32-Xe(o)-1)).toString(32)+t,a="\xAB"+a+"R"+t,t=yn++,0<t&&(a+="H"+t.toString(32)),a+="\xBB"}else t=vC++,a="\xAB"+a+"r"+t.toString(32)+"\xBB";return e.memoizedState=a},useHostTransitionStatus:Yf,useFormState:Lp,useActionState:Lp,useOptimistic:function(e){var a=Be();a.memoizedState=a.baseState=e;var t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=t,a=Xf.bind(null,R,!0,t),t.dispatch=a,[e,a]},useMemoCache:zf,useCacheRefresh:function(){return Be().memoizedState=TC.bind(null,R)}},kh={readContext:Ae,use:zn,useCallback:Lh,useContext:Ae,useEffect:gh,useImperativeHandle:Sh,useInsertionEffect:hh,useLayoutEffect:yh,useMemo:Ch,useReducer:ji,useRef:ph,useState:function(){return ji(Wa)},useDebugValue:Gf,useDeferredValue:function(e,a){var t=pe();return Ih(t,Z.memoizedState,e,a)},useTransition:function(){var e=ji(Wa)[0],a=pe().memoizedState;return[typeof e=="boolean"?e:mr(e),a]},useSyncExternalStore:oh,useId:bh,useHostTransitionStatus:Yf,useFormState:Cp,useActionState:Cp,useOptimistic:function(e,a){var t=pe();return sh(t,Z,e,a)},useMemoCache:zf,useCacheRefresh:Dh},NC={readContext:Ae,use:zn,useCallback:Lh,useContext:Ae,useEffect:gh,useImperativeHandle:Sh,useInsertionEffect:hh,useLayoutEffect:yh,useMemo:Ch,useReducer:td,useRef:ph,useState:function(){return td(Wa)},useDebugValue:Gf,useDeferredValue:function(e,a){var t=pe();return Z===null?Wf(t,e,a):Ih(t,Z.memoizedState,e,a)},useTransition:function(){var e=td(Wa)[0],a=pe().memoizedState;return[typeof e=="boolean"?e:mr(e),a]},useSyncExternalStore:oh,useId:bh,useHostTransitionStatus:Yf,useFormState:Ip,useActionState:Ip,useOptimistic:function(e,a){var t=pe();return Z!==null?sh(t,Z,e,a):(t.baseState=e,[e,t.queue.dispatch])},useMemoCache:zf,useCacheRefresh:Dh},zo=null,Kl=0;function Bi(e){var a=Kl;return Kl+=1,zo===null&&(zo=[]),Jg(zo,e,a)}function Ll(e,a){a=a.props.ref,e.ref=a!==void 0?a:null}function Hi(e,a){throw a.$$typeof===uL?Error(x(525)):(e=Object.prototype.toString.call(a),Error(x(31,e==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":e)))}function wp(e){var a=e._init;return a(e._payload)}function Rh(e){function a(c,s){if(e){var p=c.deletions;p===null?(c.deletions=[s],c.flags|=16):p.push(s)}}function t(c,s){if(!e)return null;for(;s!==null;)a(c,s),s=s.sibling;return null}function o(c){for(var s=new Map;c!==null;)c.key!==null?s.set(c.key,c):s.set(c.index,c),c=c.sibling;return s}function l(c,s){return c=za(c,s),c.index=0,c.sibling=null,c}function r(c,s,p){return c.index=p,e?(p=c.alternate,p!==null?(p=p.index,p<s?(c.flags|=67108866,s):p):(c.flags|=67108866,s)):(c.flags|=1048576,s)}function u(c){return e&&c.alternate===null&&(c.flags|=67108866),c}function i(c,s,p,y){return s===null||s.tag!==6?(s=$s(p,c.mode,y),s.return=c,s):(s=l(s,p),s.return=c,s)}function n(c,s,p,y){var C=p.type;return C===wo?g(c,s,p.props.children,y,p.key):s!==null&&(s.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===tt&&wp(C)===s.type)?(s=l(s,p.props),Ll(s,p),s.return=c,s):(s=Ki(p.type,p.key,p.props,null,c.mode,y),Ll(s,p),s.return=c,s)}function d(c,s,p,y){return s===null||s.tag!==4||s.stateNode.containerInfo!==p.containerInfo||s.stateNode.implementation!==p.implementation?(s=ed(p,c.mode,y),s.return=c,s):(s=l(s,p.children||[]),s.return=c,s)}function g(c,s,p,y,C){return s===null||s.tag!==7?(s=Ft(p,c.mode,y,C),s.return=c,s):(s=l(s,p),s.return=c,s)}function h(c,s,p){if(typeof s=="string"&&s!==""||typeof s=="number"||typeof s=="bigint")return s=$s(""+s,c.mode,p),s.return=c,s;if(typeof s=="object"&&s!==null){switch(s.$$typeof){case Ti:return p=Ki(s.type,s.key,s.props,null,c.mode,p),Ll(p,s),p.return=c,p;case Ml:return s=ed(s,c.mode,p),s.return=c,s;case tt:var y=s._init;return s=y(s._payload),h(c,s,p)}if(bl(s)||yl(s))return s=Ft(s,c.mode,p,null),s.return=c,s;if(typeof s.then=="function")return h(c,Bi(s),p);if(s.$$typeof===Ba)return h(c,Fi(c,s),p);Hi(c,s)}return null}function f(c,s,p,y){var C=s!==null?s.key:null;if(typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint")return C!==null?null:i(c,s,""+p,y);if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Ti:return p.key===C?n(c,s,p,y):null;case Ml:return p.key===C?d(c,s,p,y):null;case tt:return C=p._init,p=C(p._payload),f(c,s,p,y)}if(bl(p)||yl(p))return C!==null?null:g(c,s,p,y,null);if(typeof p.then=="function")return f(c,s,Bi(p),y);if(p.$$typeof===Ba)return f(c,s,Fi(c,p),y);Hi(c,p)}return null}function m(c,s,p,y,C){if(typeof y=="string"&&y!==""||typeof y=="number"||typeof y=="bigint")return c=c.get(p)||null,i(s,c,""+y,C);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Ti:return c=c.get(y.key===null?p:y.key)||null,n(s,c,y,C);case Ml:return c=c.get(y.key===null?p:y.key)||null,d(s,c,y,C);case tt:var P=y._init;return y=P(y._payload),m(c,s,p,y,C)}if(bl(y)||yl(y))return c=c.get(p)||null,g(s,c,y,C,null);if(typeof y.then=="function")return m(c,s,p,Bi(y),C);if(y.$$typeof===Ba)return m(c,s,p,Fi(s,y),C);Hi(s,y)}return null}function L(c,s,p,y){for(var C=null,P=null,v=s,M=s=0,$=null;v!==null&&M<p.length;M++){v.index>M?($=v,v=null):$=v.sibling;var A=f(c,v,p[M],y);if(A===null){v===null&&(v=$);break}e&&v&&A.alternate===null&&a(c,v),s=r(A,s,M),P===null?C=A:P.sibling=A,P=A,v=$}if(M===p.length)return t(c,v),G&&kt(c,M),C;if(v===null){for(;M<p.length;M++)v=h(c,p[M],y),v!==null&&(s=r(v,s,M),P===null?C=v:P.sibling=v,P=v);return G&&kt(c,M),C}for(v=o(v);M<p.length;M++)$=m(v,c,M,p[M],y),$!==null&&(e&&$.alternate!==null&&v.delete($.key===null?M:$.key),s=r($,s,M),P===null?C=$:P.sibling=$,P=$);return e&&v.forEach(function(Te){return a(c,Te)}),G&&kt(c,M),C}function I(c,s,p,y){if(p==null)throw Error(x(151));for(var C=null,P=null,v=s,M=s=0,$=null,A=p.next();v!==null&&!A.done;M++,A=p.next()){v.index>M?($=v,v=null):$=v.sibling;var Te=f(c,v,A.value,y);if(Te===null){v===null&&(v=$);break}e&&v&&Te.alternate===null&&a(c,v),s=r(Te,s,M),P===null?C=Te:P.sibling=Te,P=Te,v=$}if(A.done)return t(c,v),G&&kt(c,M),C;if(v===null){for(;!A.done;M++,A=p.next())A=h(c,A.value,y),A!==null&&(s=r(A,s,M),P===null?C=A:P.sibling=A,P=A);return G&&kt(c,M),C}for(v=o(v);!A.done;M++,A=p.next())A=m(v,c,M,A.value,y),A!==null&&(e&&A.alternate!==null&&v.delete(A.key===null?M:A.key),s=r(A,s,M),P===null?C=A:P.sibling=A,P=A);return e&&v.forEach(function(xe){return a(c,xe)}),G&&kt(c,M),C}function T(c,s,p,y){if(typeof p=="object"&&p!==null&&p.type===wo&&p.key===null&&(p=p.props.children),typeof p=="object"&&p!==null){switch(p.$$typeof){case Ti:e:{for(var C=p.key;s!==null;){if(s.key===C){if(C=p.type,C===wo){if(s.tag===7){t(c,s.sibling),y=l(s,p.props.children),y.return=c,c=y;break e}}else if(s.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===tt&&wp(C)===s.type){t(c,s.sibling),y=l(s,p.props),Ll(y,p),y.return=c,c=y;break e}t(c,s);break}else a(c,s);s=s.sibling}p.type===wo?(y=Ft(p.props.children,c.mode,y,p.key),y.return=c,c=y):(y=Ki(p.type,p.key,p.props,null,c.mode,y),Ll(y,p),y.return=c,c=y)}return u(c);case Ml:e:{for(C=p.key;s!==null;){if(s.key===C)if(s.tag===4&&s.stateNode.containerInfo===p.containerInfo&&s.stateNode.implementation===p.implementation){t(c,s.sibling),y=l(s,p.children||[]),y.return=c,c=y;break e}else{t(c,s);break}else a(c,s);s=s.sibling}y=ed(p,c.mode,y),y.return=c,c=y}return u(c);case tt:return C=p._init,p=C(p._payload),T(c,s,p,y)}if(bl(p))return L(c,s,p,y);if(yl(p)){if(C=yl(p),typeof C!="function")throw Error(x(150));return p=C.call(p),I(c,s,p,y)}if(typeof p.then=="function")return T(c,s,Bi(p),y);if(p.$$typeof===Ba)return T(c,s,Fi(c,p),y);Hi(c,p)}return typeof p=="string"&&p!==""||typeof p=="number"||typeof p=="bigint"?(p=""+p,s!==null&&s.tag===6?(t(c,s.sibling),y=l(s,p),y.return=c,c=y):(t(c,s),y=$s(p,c.mode,y),y.return=c,c=y),u(c)):t(c,s)}return function(c,s,p,y){try{Kl=0;var C=T(c,s,p,y);return zo=null,C}catch(v){if(v===cr||v===Vn)throw v;var P=We(29,v,null,c.mode);return P.lanes=y,P.return=c,P}finally{}}}var Zo=Rh(!0),Oh=Rh(!1),sa=ba(null),Ma=null;function rt(e){var a=e.alternate;re(he,he.current&1),re(sa,e),Ma===null&&(a===null||Qo.current!==null||a.memoizedState!==null)&&(Ma=e)}function Fh(e){if(e.tag===22){if(re(he,he.current),re(sa,e),Ma===null){var a=e.alternate;a!==null&&a.memoizedState!==null&&(Ma=e)}}else ut(e)}function ut(){re(he,he.current),re(sa,sa.current)}function Va(e){Ie(sa),Ma===e&&(Ma=null),Ie(he)}var he=ba(0);function Sn(e){for(var a=e;a!==null;){if(a.tag===13){var t=a.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||df(t)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function od(e,a,t,o){a=e.memoizedState,t=t(o,a),t=t==null?a:ae({},a,t),e.memoizedState=t,e.lanes===0&&(e.updateQueue.baseState=t)}var Xd={enqueueSetState:function(e,a,t){e=e._reactInternals;var o=Qe(),l=mt(o);l.payload=a,t!=null&&(l.callback=t),a=pt(e,l,o),a!==null&&(Ke(a,e,o),Ol(a,e,o))},enqueueReplaceState:function(e,a,t){e=e._reactInternals;var o=Qe(),l=mt(o);l.tag=1,l.payload=a,t!=null&&(l.callback=t),a=pt(e,l,o),a!==null&&(Ke(a,e,o),Ol(a,e,o))},enqueueForceUpdate:function(e,a){e=e._reactInternals;var t=Qe(),o=mt(t);o.tag=2,a!=null&&(o.callback=a),a=pt(e,o,t),a!==null&&(Ke(a,e,t),Ol(a,e,t))}};function Mp(e,a,t,o,l,r,u){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,r,u):a.prototype&&a.prototype.isPureReactComponent?!Yl(t,o)||!Yl(l,r):!0}function bp(e,a,t,o){e=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(t,o),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(t,o),a.state!==e&&Xd.enqueueReplaceState(a,a.state,null)}function Gt(e,a){var t=a;if("ref"in a){t={};for(var o in a)o!=="ref"&&(t[o]=a[o])}if(e=e.defaultProps){t===a&&(t=ae({},t));for(var l in e)t[l]===void 0&&(t[l]=e[l])}return t}var Ln=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=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(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Eh(e){Ln(e)}function Bh(e){console.error(e)}function Hh(e){Ln(e)}function Cn(e,a){try{var t=e.onUncaughtError;t(a.value,{componentStack:a.stack})}catch(o){setTimeout(function(){throw o})}}function Dp(e,a,t){try{var o=e.onCaughtError;o(t.value,{componentStack:t.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Qd(e,a,t){return t=mt(t),t.tag=3,t.payload={element:null},t.callback=function(){Cn(e,a)},t}function qh(e){return e=mt(e),e.tag=3,e}function Uh(e,a,t,o){var l=t.type.getDerivedStateFromError;if(typeof l=="function"){var r=o.value;e.payload=function(){return l(r)},e.callback=function(){Dp(a,t,o)}}var u=t.stateNode;u!==null&&typeof u.componentDidCatch=="function"&&(e.callback=function(){Dp(a,t,o),typeof l!="function"&&(gt===null?gt=new Set([this]):gt.add(this));var i=o.stack;this.componentDidCatch(o.value,{componentStack:i!==null?i:""})})}function AC(e,a,t,o,l){if(t.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(a=t.alternate,a!==null&&dr(a,t,l,!0),t=sa.current,t!==null){switch(t.tag){case 13:return Ma===null?tf():t.alternate===null&&se===0&&(se=3),t.flags&=-257,t.flags|=65536,t.lanes=l,o===Ud?t.flags|=16384:(a=t.updateQueue,a===null?t.updateQueue=new Set([o]):a.add(o),pd(e,o,l)),!1;case 22:return t.flags|=65536,o===Ud?t.flags|=16384:(a=t.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([o])},t.updateQueue=a):(t=a.retryQueue,t===null?a.retryQueue=new Set([o]):t.add(o)),pd(e,o,l)),!1}throw Error(x(435,t.tag))}return pd(e,o,l),tf(),!1}if(G)return a=sa.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=l,o!==Fd&&(e=Error(x(422),{cause:o}),Xl(ia(e,t)))):(o!==Fd&&(a=Error(x(423),{cause:o}),Xl(ia(a,t))),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,o=ia(o,t),l=Qd(e.stateNode,o,l),ad(e,l),se!==4&&(se=2)),!1;var r=Error(x(520),{cause:o});if(r=ia(r,t),Ul===null?Ul=[r]:Ul.push(r),se!==4&&(se=2),a===null)return!0;o=ia(o,t),t=a;do{switch(t.tag){case 3:return t.flags|=65536,e=l&-l,t.lanes|=e,e=Qd(t.stateNode,o,e),ad(t,e),!1;case 1:if(a=t.type,r=t.stateNode,(t.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||r!==null&&typeof r.componentDidCatch=="function"&&(gt===null||!gt.has(r))))return t.flags|=65536,l&=-l,t.lanes|=l,l=qh(l),Uh(l,e,t,o),ad(t,l),!1}t=t.return}while(t!==null);return!1}var Vh=Error(x(461)),Ce=!1;function Me(e,a,t,o){a.child=e===null?Oh(a,null,t,o):Zo(a,e.child,t,o)}function Tp(e,a,t,o,l){t=t.render;var r=a.ref;if("ref"in o){var u={};for(var i in o)i!=="ref"&&(u[i]=o[i])}else u=o;return zt(a),o=Bf(e,a,t,u,r,l),i=Hf(),e!==null&&!Ce?(qf(e,a,l),Ya(e,a,l)):(G&&i&&Nf(a),a.flags|=1,Me(e,a,o,l),a.child)}function Pp(e,a,t,o,l){if(e===null){var r=t.type;return typeof r=="function"&&!Pf(r)&&r.defaultProps===void 0&&t.compare===null?(a.tag=15,a.type=r,zh(e,a,r,o,l)):(e=Ki(t.type,null,o,a,a.mode,l),e.ref=a.ref,e.return=a,a.child=e)}if(r=e.child,!Qf(e,l)){var u=r.memoizedProps;if(t=t.compare,t=t!==null?t:Yl,t(u,o)&&e.ref===a.ref)return Ya(e,a,l)}return a.flags|=1,e=za(r,o),e.ref=a.ref,e.return=a,a.child=e}function zh(e,a,t,o,l){if(e!==null){var r=e.memoizedProps;if(Yl(r,o)&&e.ref===a.ref)if(Ce=!1,a.pendingProps=o=r,Qf(e,l))(e.flags&131072)!==0&&(Ce=!0);else return a.lanes=e.lanes,Ya(e,a,l)}return Kd(e,a,t,o,l)}function _h(e,a,t){var o=a.pendingProps,l=o.children,r=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((a.flags&128)!==0){if(o=r!==null?r.baseLanes|t:t,e!==null){for(l=a.child=e.child,r=0;l!==null;)r=r|l.lanes|l.childLanes,l=l.sibling;a.childLanes=r&~o}else a.childLanes=0,a.child=null;return Np(e,a,o,t)}if((t&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},e!==null&&Zi(a,r!==null?r.cachePool:null),r!==null?yp(a,r):_d(),Fh(a);else return a.lanes=a.childLanes=536870912,Np(e,a,r!==null?r.baseLanes|t:t,t)}else r!==null?(Zi(a,r.cachePool),yp(a,r),ut(a),a.memoizedState=null):(e!==null&&Zi(a,null),_d(),ut(a));return Me(e,a,l,t),a.child}function Np(e,a,t,o){var l=Rf();return l=l===null?null:{parent:ge._currentValue,pool:l},a.memoizedState={baseLanes:t,cachePool:l},e!==null&&Zi(a,null),_d(),Fh(a),e!==null&&dr(e,a,o,!0),null}function $i(e,a){var t=a.ref;if(t===null)e!==null&&e.ref!==null&&(a.flags|=4194816);else{if(typeof t!="function"&&typeof t!="object")throw Error(x(284));(e===null||e.ref!==t)&&(a.flags|=4194816)}}function Kd(e,a,t,o,l){return zt(a),t=Bf(e,a,t,o,void 0,l),o=Hf(),e!==null&&!Ce?(qf(e,a,l),Ya(e,a,l)):(G&&o&&Nf(a),a.flags|=1,Me(e,a,t,l),a.child)}function Ap(e,a,t,o,l,r){return zt(a),a.updateQueue=null,t=th(a,o,t,l),ah(e),o=Hf(),e!==null&&!Ce?(qf(e,a,r),Ya(e,a,r)):(G&&o&&Nf(a),a.flags|=1,Me(e,a,t,r),a.child)}function kp(e,a,t,o,l){if(zt(a),a.stateNode===null){var r=ko,u=t.contextType;typeof u=="object"&&u!==null&&(r=Ae(u)),r=new t(o,r),a.memoizedState=r.state!==null&&r.state!==void 0?r.state:null,r.updater=Xd,a.stateNode=r,r._reactInternals=a,r=a.stateNode,r.props=o,r.state=a.memoizedState,r.refs={},Of(a),u=t.contextType,r.context=typeof u=="object"&&u!==null?Ae(u):ko,r.state=a.memoizedState,u=t.getDerivedStateFromProps,typeof u=="function"&&(od(a,t,u,o),r.state=a.memoizedState),typeof t.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&&Xd.enqueueReplaceState(r,r.state,null),El(a,o,r,l),Fl(),r.state=a.memoizedState),typeof r.componentDidMount=="function"&&(a.flags|=4194308),o=!0}else if(e===null){r=a.stateNode;var i=a.memoizedProps,n=Gt(t,i);r.props=n;var d=r.context,g=t.contextType;u=ko,typeof g=="object"&&g!==null&&(u=Ae(g));var h=t.getDerivedStateFromProps;g=typeof h=="function"||typeof r.getSnapshotBeforeUpdate=="function",i=a.pendingProps!==i,g||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(i||d!==u)&&bp(a,r,o,u),ot=!1;var f=a.memoizedState;r.state=f,El(a,o,r,l),Fl(),d=a.memoizedState,i||f!==d||ot?(typeof h=="function"&&(od(a,t,h,o),d=a.memoizedState),(n=ot||Mp(a,t,n,o,f,d,u))?(g||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"&&(a.flags|=4194308)):(typeof r.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=o,a.memoizedState=d),r.props=o,r.state=d,r.context=u,o=n):(typeof r.componentDidMount=="function"&&(a.flags|=4194308),o=!1)}else{r=a.stateNode,Vd(e,a),u=a.memoizedProps,g=Gt(t,u),r.props=g,h=a.pendingProps,f=r.context,d=t.contextType,n=ko,typeof d=="object"&&d!==null&&(n=Ae(d)),i=t.getDerivedStateFromProps,(d=typeof i=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(u!==h||f!==n)&&bp(a,r,o,n),ot=!1,f=a.memoizedState,r.state=f,El(a,o,r,l),Fl();var m=a.memoizedState;u!==h||f!==m||ot||e!==null&&e.dependencies!==null&&pn(e.dependencies)?(typeof i=="function"&&(od(a,t,i,o),m=a.memoizedState),(g=ot||Mp(a,t,g,o,f,m,n)||e!==null&&e.dependencies!==null&&pn(e.dependencies))?(d||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(o,m,n),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(o,m,n)),typeof r.componentDidUpdate=="function"&&(a.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof r.componentDidUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(a.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(a.flags|=1024),a.memoizedProps=o,a.memoizedState=m),r.props=o,r.state=m,r.context=n,o=g):(typeof r.componentDidUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(a.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||u===e.memoizedProps&&f===e.memoizedState||(a.flags|=1024),o=!1)}return r=o,$i(e,a),o=(a.flags&128)!==0,r||o?(r=a.stateNode,t=o&&typeof t.getDerivedStateFromError!="function"?null:r.render(),a.flags|=1,e!==null&&o?(a.child=Zo(a,e.child,null,l),a.child=Zo(a,null,t,l)):Me(e,a,t,l),a.memoizedState=r.state,e=a.child):e=Ya(e,a,l),e}function Rp(e,a,t,o){return sr(),a.flags|=256,Me(e,a,t,o),a.child}var ld={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function rd(e){return{baseLanes:e,cachePool:Zg()}}function ud(e,a,t){return e=e!==null?e.childLanes&~t:0,a&&(e|=na),e}function Gh(e,a,t){var o=a.pendingProps,l=!1,r=(a.flags&128)!==0,u;if((u=r)||(u=e!==null&&e.memoizedState===null?!1:(he.current&2)!==0),u&&(l=!0,a.flags&=-129),u=(a.flags&32)!==0,a.flags&=-33,e===null){if(G){if(l?rt(a):ut(a),G){var i=ne,n;if(n=i){e:{for(n=i,i=Ca;n.nodeType!==8;){if(!i){i=null;break e}if(n=pa(n.nextSibling),n===null){i=null;break e}}i=n}i!==null?(a.memoizedState={dehydrated:i,treeContext:Et!==null?{id:Ha,overflow:qa}:null,retryLane:536870912,hydrationErrors:null},n=We(18,null,null,0),n.stateNode=i,n.return=a,a.child=n,Fe=a,ne=null,n=!0):n=!1}n||Vt(a)}if(i=a.memoizedState,i!==null&&(i=i.dehydrated,i!==null))return df(i)?a.lanes=32:a.lanes=536870912,null;Va(a)}return i=o.children,o=o.fallback,l?(ut(a),l=a.mode,i=In({mode:"hidden",children:i},l),o=Ft(o,l,t,null),i.return=a,o.return=a,i.sibling=o,a.child=i,l=a.child,l.memoizedState=rd(t),l.childLanes=ud(e,u,t),a.memoizedState=ld,o):(rt(a),Zd(a,i))}if(n=e.memoizedState,n!==null&&(i=n.dehydrated,i!==null)){if(r)a.flags&256?(rt(a),a.flags&=-257,a=id(e,a,t)):a.memoizedState!==null?(ut(a),a.child=e.child,a.flags|=128,a=null):(ut(a),l=o.fallback,i=a.mode,o=In({mode:"visible",children:o.children},i),l=Ft(l,i,t,null),l.flags|=2,o.return=a,l.return=a,o.sibling=l,a.child=o,Zo(a,e.child,null,t),o=a.child,o.memoizedState=rd(t),o.childLanes=ud(e,u,t),a.memoizedState=ld,a=l);else if(rt(a),df(i)){if(u=i.nextSibling&&i.nextSibling.dataset,u)var d=u.dgst;u=d,o=Error(x(419)),o.stack="",o.digest=u,Xl({value:o,source:null,stack:null}),a=id(e,a,t)}else if(Ce||dr(e,a,t,!1),u=(t&e.childLanes)!==0,Ce||u){if(u=ee,u!==null&&(o=t&-t,o=(o&42)!==0?1:xf(o),o=(o&(u.suspendedLanes|t))!==0?0:o,o!==0&&o!==n.retryLane))throw n.retryLane=o,ol(e,o),Ke(u,e,o),Vh;i.data==="$?"||tf(),a=id(e,a,t)}else i.data==="$?"?(a.flags|=192,a.child=e.child,a=null):(e=n.treeContext,ne=pa(i.nextSibling),Fe=a,G=!0,Bt=null,Ca=!1,e!==null&&(la[ra++]=Ha,la[ra++]=qa,la[ra++]=Et,Ha=e.id,qa=e.overflow,Et=a),a=Zd(a,o.children),a.flags|=4096);return a}return l?(ut(a),l=o.fallback,i=a.mode,n=e.child,d=n.sibling,o=za(n,{mode:"hidden",children:o.children}),o.subtreeFlags=n.subtreeFlags&65011712,d!==null?l=za(d,l):(l=Ft(l,i,t,null),l.flags|=2),l.return=a,o.return=a,o.sibling=l,a.child=o,o=l,l=a.child,i=e.child.memoizedState,i===null?i=rd(t):(n=i.cachePool,n!==null?(d=ge._currentValue,n=n.parent!==d?{parent:d,pool:d}:n):n=Zg(),i={baseLanes:i.baseLanes|t,cachePool:n}),l.memoizedState=i,l.childLanes=ud(e,u,t),a.memoizedState=ld,o):(rt(a),t=e.child,e=t.sibling,t=za(t,{mode:"visible",children:o.children}),t.return=a,t.sibling=null,e!==null&&(u=a.deletions,u===null?(a.deletions=[e],a.flags|=16):u.push(e)),a.child=t,a.memoizedState=null,t)}function Zd(e,a){return a=In({mode:"visible",children:a},e.mode),a.return=e,e.child=a}function In(e,a){return e=We(22,e,null,a),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function id(e,a,t){return Zo(a,e.child,null,t),e=Zd(a,a.pendingProps.children),e.flags|=2,a.memoizedState=null,e}function Op(e,a,t){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a),Bd(e.return,a,t)}function nd(e,a,t,o,l){var r=e.memoizedState;r===null?e.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:o,tail:t,tailMode:l}:(r.isBackwards=a,r.rendering=null,r.renderingStartTime=0,r.last=o,r.tail=t,r.tailMode=l)}function Wh(e,a,t){var o=a.pendingProps,l=o.revealOrder,r=o.tail;if(Me(e,a,o.children,t),o=he.current,(o&2)!==0)o=o&1|2,a.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=a.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Op(e,t,a);else if(e.tag===19)Op(e,t,a);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===a)break e;for(;e.sibling===null;){if(e.return===null||e.return===a)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(re(he,o),l){case"forwards":for(t=a.child,l=null;t!==null;)e=t.alternate,e!==null&&Sn(e)===null&&(l=t),t=t.sibling;t=l,t===null?(l=a.child,a.child=null):(l=t.sibling,t.sibling=null),nd(a,!1,l,t,r);break;case"backwards":for(t=null,l=a.child,a.child=null;l!==null;){if(e=l.alternate,e!==null&&Sn(e)===null){a.child=l;break}e=l.sibling,l.sibling=t,t=l,l=e}nd(a,!0,t,null,r);break;case"together":nd(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Ya(e,a,t){if(e!==null&&(a.dependencies=e.dependencies),It|=a.lanes,(t&a.childLanes)===0)if(e!==null){if(dr(e,a,t,!1),(t&a.childLanes)===0)return null}else return null;if(e!==null&&a.child!==e.child)throw Error(x(153));if(a.child!==null){for(e=a.child,t=za(e,e.pendingProps),a.child=t,t.return=a;e.sibling!==null;)e=e.sibling,t=t.sibling=za(e,e.pendingProps),t.return=a;t.sibling=null}return a.child}function Qf(e,a){return(e.lanes&a)!==0?!0:(e=e.dependencies,!!(e!==null&&pn(e)))}function kC(e,a,t){switch(a.tag){case 3:rn(a,a.stateNode.containerInfo),lt(a,ge,e.memoizedState.cache),sr();break;case 27:case 5:Md(a);break;case 4:rn(a,a.stateNode.containerInfo);break;case 10:lt(a,a.type,a.memoizedProps.value);break;case 13:var o=a.memoizedState;if(o!==null)return o.dehydrated!==null?(rt(a),a.flags|=128,null):(t&a.child.childLanes)!==0?Gh(e,a,t):(rt(a),e=Ya(e,a,t),e!==null?e.sibling:null);rt(a);break;case 19:var l=(e.flags&128)!==0;if(o=(t&a.childLanes)!==0,o||(dr(e,a,t,!1),o=(t&a.childLanes)!==0),l){if(o)return Wh(e,a,t);a.flags|=128}if(l=a.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),re(he,he.current),o)break;return null;case 22:case 23:return a.lanes=0,_h(e,a,t);case 24:lt(a,ge,e.memoizedState.cache)}return Ya(e,a,t)}function Yh(e,a,t){if(e!==null)if(e.memoizedProps!==a.pendingProps)Ce=!0;else{if(!Qf(e,t)&&(a.flags&128)===0)return Ce=!1,kC(e,a,t);Ce=(e.flags&131072)!==0}else Ce=!1,G&&(a.flags&1048576)!==0&&Qg(a,mn,a.index);switch(a.lanes=0,a.tag){case 16:e:{e=a.pendingProps;var o=a.elementType,l=o._init;if(o=l(o._payload),a.type=o,typeof o=="function")Pf(o)?(e=Gt(o,e),a.tag=1,a=kp(null,a,o,e,t)):(a.tag=0,a=Kd(null,a,o,e,t));else{if(o!=null){if(l=o.$$typeof,l===gf){a.tag=11,a=Tp(null,a,o,e,t);break e}else if(l===hf){a.tag=14,a=Pp(null,a,o,e,t);break e}}throw a=vd(o)||o,Error(x(306,a,""))}}return a;case 0:return Kd(e,a,a.type,a.pendingProps,t);case 1:return o=a.type,l=Gt(o,a.pendingProps),kp(e,a,o,l,t);case 3:e:{if(rn(a,a.stateNode.containerInfo),e===null)throw Error(x(387));o=a.pendingProps;var r=a.memoizedState;l=r.element,Vd(e,a),El(a,o,null,t);var u=a.memoizedState;if(o=u.cache,lt(a,ge,o),o!==r.cache&&Hd(a,[ge],t,!0),Fl(),o=u.element,r.isDehydrated)if(r={element:o,isDehydrated:!1,cache:u.cache},a.updateQueue.baseState=r,a.memoizedState=r,a.flags&256){a=Rp(e,a,o,t);break e}else if(o!==l){l=ia(Error(x(424)),a),Xl(l),a=Rp(e,a,o,t);break e}else{switch(e=a.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(ne=pa(e.firstChild),Fe=a,G=!0,Bt=null,Ca=!0,t=Oh(a,null,o,t),a.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling}else{if(sr(),o===l){a=Ya(e,a,t);break e}Me(e,a,o,t)}a=a.child}return a;case 26:return $i(e,a),e===null?(t=$p(a.type,null,a.pendingProps,null))?a.memoizedState=t:G||(t=a.type,e=a.pendingProps,o=Pn(ct.current).createElement(t),o[Ne]=a,o[Ue]=e,De(o,t,e),Le(o),a.stateNode=o):a.memoizedState=$p(a.type,e.memoizedProps,a.pendingProps,e.memoizedState),null;case 27:return Md(a),e===null&&G&&(o=a.stateNode=ky(a.type,a.pendingProps,ct.current),Fe=a,Ca=!0,l=ne,wt(a.type)?(ff=l,ne=pa(o.firstChild)):ne=l),Me(e,a,a.pendingProps.children,t),$i(e,a),e===null&&(a.flags|=4194304),a.child;case 5:return e===null&&G&&((l=o=ne)&&(o=lI(o,a.type,a.pendingProps,Ca),o!==null?(a.stateNode=o,Fe=a,ne=pa(o.firstChild),Ca=!1,l=!0):l=!1),l||Vt(a)),Md(a),l=a.type,r=a.pendingProps,u=e!==null?e.memoizedProps:null,o=r.children,nf(l,r)?o=null:u!==null&&nf(l,u)&&(a.flags|=32),a.memoizedState!==null&&(l=Bf(e,a,wC,null,null,t),$l._currentValue=l),$i(e,a),Me(e,a,o,t),a.child;case 6:return e===null&&G&&((e=t=ne)&&(t=rI(t,a.pendingProps,Ca),t!==null?(a.stateNode=t,Fe=a,ne=null,e=!0):e=!1),e||Vt(a)),null;case 13:return Gh(e,a,t);case 4:return rn(a,a.stateNode.containerInfo),o=a.pendingProps,e===null?a.child=Zo(a,null,o,t):Me(e,a,o,t),a.child;case 11:return Tp(e,a,a.type,a.pendingProps,t);case 7:return Me(e,a,a.pendingProps,t),a.child;case 8:return Me(e,a,a.pendingProps.children,t),a.child;case 12:return Me(e,a,a.pendingProps.children,t),a.child;case 10:return o=a.pendingProps,lt(a,a.type,o.value),Me(e,a,o.children,t),a.child;case 9:return l=a.type._context,o=a.pendingProps.children,zt(a),l=Ae(l),o=o(l),a.flags|=1,Me(e,a,o,t),a.child;case 14:return Pp(e,a,a.type,a.pendingProps,t);case 15:return zh(e,a,a.type,a.pendingProps,t);case 19:return Wh(e,a,t);case 31:return o=a.pendingProps,t=a.mode,o={mode:o.mode,children:o.children},e===null?(t=In(o,t),t.ref=a.ref,a.child=t,t.return=a,a=t):(t=za(e.child,o),t.ref=a.ref,a.child=t,t.return=a,a=t),a;case 22:return _h(e,a,t);case 24:return zt(a),o=Ae(ge),e===null?(l=Rf(),l===null&&(l=ee,r=kf(),l.pooledCache=r,r.refCount++,r!==null&&(l.pooledCacheLanes|=t),l=r),a.memoizedState={parent:o,cache:l},Of(a),lt(a,ge,l)):((e.lanes&t)!==0&&(Vd(e,a),El(a,null,null,t),Fl()),l=e.memoizedState,r=a.memoizedState,l.parent!==o?(l={parent:o,cache:o},a.memoizedState=l,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=l),lt(a,ge,o)):(o=r.cache,lt(a,ge,o),o!==l.cache&&Hd(a,[ge],t,!0))),Me(e,a,a.pendingProps.children,t),a.child;case 29:throw a.pendingProps}throw Error(x(156,a.tag))}function Oa(e){e.flags|=4}function Fp(e,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Fy(a)){if(a=sa.current,a!==null&&((q&4194048)===q?Ma!==null:(q&62914560)!==q&&(q&536870912)===0||a!==Ma))throw Rl=Ud,jg;e.flags|=8192}}function qi(e,a){a!==null&&(e.flags|=4),e.flags&16384&&(a=e.tag!==22?xg():536870912,e.lanes|=a,jo|=a)}function Cl(e,a){if(!G)switch(e.tailMode){case"hidden":a=e.tail;for(var t=null;a!==null;)a.alternate!==null&&(t=a),a=a.sibling;t===null?e.tail=null:t.sibling=null;break;case"collapsed":t=e.tail;for(var o=null;t!==null;)t.alternate!==null&&(o=t),t=t.sibling;o===null?a||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function ue(e){var a=e.alternate!==null&&e.alternate.child===e.child,t=0,o=0;if(a)for(var l=e.child;l!==null;)t|=l.lanes|l.childLanes,o|=l.subtreeFlags&65011712,o|=l.flags&65011712,l.return=e,l=l.sibling;else for(l=e.child;l!==null;)t|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=t,a}function RC(e,a,t){var o=a.pendingProps;switch(Af(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ue(a),null;case 1:return ue(a),null;case 3:return t=a.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),_a(ge),Go(),t.pendingContext&&(t.context=t.pendingContext,t.pendingContext=null),(e===null||e.child===null)&&(Sl(a)?Oa(a):e===null||e.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,fp())),ue(a),null;case 26:return t=a.memoizedState,e===null?(Oa(a),t!==null?(ue(a),Fp(a,t)):(ue(a),a.flags&=-16777217)):t?t!==e.memoizedState?(Oa(a),ue(a),Fp(a,t)):(ue(a),a.flags&=-16777217):(e.memoizedProps!==o&&Oa(a),ue(a),a.flags&=-16777217),null;case 27:un(a),t=ct.current;var l=a.type;if(e!==null&&a.stateNode!=null)e.memoizedProps!==o&&Oa(a);else{if(!o){if(a.stateNode===null)throw Error(x(166));return ue(a),null}e=va.current,Sl(a)?sp(a,e):(e=ky(l,o,t),a.stateNode=e,Oa(a))}return ue(a),null;case 5:if(un(a),t=a.type,e!==null&&a.stateNode!=null)e.memoizedProps!==o&&Oa(a);else{if(!o){if(a.stateNode===null)throw Error(x(166));return ue(a),null}if(e=va.current,Sl(a))sp(a,e);else{switch(l=Pn(ct.current),e){case 1:e=l.createElementNS("http://www.w3.org/2000/svg",t);break;case 2:e=l.createElementNS("http://www.w3.org/1998/Math/MathML",t);break;default:switch(t){case"svg":e=l.createElementNS("http://www.w3.org/2000/svg",t);break;case"math":e=l.createElementNS("http://www.w3.org/1998/Math/MathML",t);break;case"script":e=l.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?l.createElement("select",{is:o.is}):l.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?l.createElement(t,{is:o.is}):l.createElement(t)}}e[Ne]=a,e[Ue]=o;e:for(l=a.child;l!==null;){if(l.tag===5||l.tag===6)e.appendChild(l.stateNode);else if(l.tag!==4&&l.tag!==27&&l.child!==null){l.child.return=l,l=l.child;continue}if(l===a)break e;for(;l.sibling===null;){if(l.return===null||l.return===a)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}a.stateNode=e;e:switch(De(e,t,o),t){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Oa(a)}}return ue(a),a.flags&=-16777217,null;case 6:if(e&&a.stateNode!=null)e.memoizedProps!==o&&Oa(a);else{if(typeof o!="string"&&a.stateNode===null)throw Error(x(166));if(e=ct.current,Sl(a)){if(e=a.stateNode,t=a.memoizedProps,o=null,l=Fe,l!==null)switch(l.tag){case 27:case 5:o=l.memoizedProps}e[Ne]=a,e=!!(e.nodeValue===t||o!==null&&o.suppressHydrationWarning===!0||Py(e.nodeValue,t)),e||Vt(a)}else e=Pn(e).createTextNode(o),e[Ne]=a,a.stateNode=e}return ue(a),null;case 13:if(o=a.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=Sl(a),o!==null&&o.dehydrated!==null){if(e===null){if(!l)throw Error(x(318));if(l=a.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(x(317));l[Ne]=a}else sr(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;ue(a),l=!1}else l=fp(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l)return a.flags&256?(Va(a),a):(Va(a),null)}if(Va(a),(a.flags&128)!==0)return a.lanes=t,a;if(t=o!==null,e=e!==null&&e.memoizedState!==null,t){o=a.child,l=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(l=o.alternate.memoizedState.cachePool.pool);var r=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(r=o.memoizedState.cachePool.pool),r!==l&&(o.flags|=2048)}return t!==e&&t&&(a.child.flags|=8192),qi(a,a.updateQueue),ue(a),null;case 4:return Go(),e===null&&tc(a.stateNode.containerInfo),ue(a),null;case 10:return _a(a.type),ue(a),null;case 19:if(Ie(he),l=a.memoizedState,l===null)return ue(a),null;if(o=(a.flags&128)!==0,r=l.rendering,r===null)if(o)Cl(l,!1);else{if(se!==0||e!==null&&(e.flags&128)!==0)for(e=a.child;e!==null;){if(r=Sn(e),r!==null){for(a.flags|=128,Cl(l,!1),e=r.updateQueue,a.updateQueue=e,qi(a,e),a.subtreeFlags=0,e=t,t=a.child;t!==null;)Xg(t,e),t=t.sibling;return re(he,he.current&1|2),a.child}e=e.sibling}l.tail!==null&&wa()>wn&&(a.flags|=128,o=!0,Cl(l,!1),a.lanes=4194304)}else{if(!o)if(e=Sn(r),e!==null){if(a.flags|=128,o=!0,e=e.updateQueue,a.updateQueue=e,qi(a,e),Cl(l,!0),l.tail===null&&l.tailMode==="hidden"&&!r.alternate&&!G)return ue(a),null}else 2*wa()-l.renderingStartTime>wn&&t!==536870912&&(a.flags|=128,o=!0,Cl(l,!1),a.lanes=4194304);l.isBackwards?(r.sibling=a.child,a.child=r):(e=l.last,e!==null?e.sibling=r:a.child=r,l.last=r)}return l.tail!==null?(a=l.tail,l.rendering=a,l.tail=a.sibling,l.renderingStartTime=wa(),a.sibling=null,e=he.current,re(he,o?e&1|2:e&1),a):(ue(a),null);case 22:case 23:return Va(a),Ff(),o=a.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(a.flags|=8192):o&&(a.flags|=8192),o?(t&536870912)!==0&&(a.flags&128)===0&&(ue(a),a.subtreeFlags&6&&(a.flags|=8192)):ue(a),t=a.updateQueue,t!==null&&qi(a,t.retryQueue),t=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),o=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(o=a.memoizedState.cachePool.pool),o!==t&&(a.flags|=2048),e!==null&&Ie(Ht),null;case 24:return t=null,e!==null&&(t=e.memoizedState.cache),a.memoizedState.cache!==t&&(a.flags|=2048),_a(ge),ue(a),null;case 25:return null;case 30:return null}throw Error(x(156,a.tag))}function OC(e,a){switch(Af(a),a.tag){case 1:return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 3:return _a(ge),Go(),e=a.flags,(e&65536)!==0&&(e&128)===0?(a.flags=e&-65537|128,a):null;case 26:case 27:case 5:return un(a),null;case 13:if(Va(a),e=a.memoizedState,e!==null&&e.dehydrated!==null){if(a.alternate===null)throw Error(x(340));sr()}return e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 19:return Ie(he),null;case 4:return Go(),null;case 10:return _a(a.type),null;case 22:case 23:return Va(a),Ff(),e!==null&&Ie(Ht),e=a.flags,e&65536?(a.flags=e&-65537|128,a):null;case 24:return _a(ge),null;case 25:return null;default:return null}}function Xh(e,a){switch(Af(a),a.tag){case 3:_a(ge),Go();break;case 26:case 27:case 5:un(a);break;case 4:Go();break;case 13:Va(a);break;case 19:Ie(he);break;case 10:_a(a.type);break;case 22:case 23:Va(a),Ff(),e!==null&&Ie(Ht);break;case 24:_a(ge)}}function gr(e,a){try{var t=a.updateQueue,o=t!==null?t.lastEffect:null;if(o!==null){var l=o.next;t=l;do{if((t.tag&e)===e){o=void 0;var r=t.create,u=t.inst;o=r(),u.destroy=o}t=t.next}while(t!==l)}}catch(i){j(a,a.return,i)}}function Ct(e,a,t){try{var o=a.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var r=l.next;o=r;do{if((o.tag&e)===e){var u=o.inst,i=u.destroy;if(i!==void 0){u.destroy=void 0,l=a;var n=t,d=i;try{d()}catch(g){j(l,n,g)}}}o=o.next}while(o!==r)}}catch(g){j(a,a.return,g)}}function Qh(e){var a=e.updateQueue;if(a!==null){var t=e.stateNode;try{eh(a,t)}catch(o){j(e,e.return,o)}}}function Kh(e,a,t){t.props=Gt(e.type,e.memoizedProps),t.state=e.memoizedState;try{t.componentWillUnmount()}catch(o){j(e,a,o)}}function Hl(e,a){try{var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof t=="function"?e.refCleanup=t(o):t.current=o}}catch(l){j(e,a,l)}}function Ia(e,a){var t=e.ref,o=e.refCleanup;if(t!==null)if(typeof o=="function")try{o()}catch(l){j(e,a,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof t=="function")try{t(null)}catch(l){j(e,a,l)}else t.current=null}function Zh(e){var a=e.type,t=e.memoizedProps,o=e.stateNode;try{e:switch(a){case"button":case"input":case"select":case"textarea":t.autoFocus&&o.focus();break e;case"img":t.src?o.src=t.src:t.srcSet&&(o.srcset=t.srcSet)}}catch(l){j(e,e.return,l)}}function sd(e,a,t){try{var o=e.stateNode;$C(o,e.type,t,a),o[Ue]=a}catch(l){j(e,e.return,l)}}function jh(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&wt(e.type)||e.tag===4}function dd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||jh(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&wt(e.type)||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 jd(e,a,t){var o=e.tag;if(o===5||o===6)e=e.stateNode,a?(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).insertBefore(e,a):(a=t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.appendChild(e),t=t._reactRootContainer,t!=null||a.onclick!==null||(a.onclick=Qn));else if(o!==4&&(o===27&&wt(e.type)&&(t=e.stateNode,a=null),e=e.child,e!==null))for(jd(e,a,t),e=e.sibling;e!==null;)jd(e,a,t),e=e.sibling}function vn(e,a,t){var o=e.tag;if(o===5||o===6)e=e.stateNode,a?t.insertBefore(e,a):t.appendChild(e);else if(o!==4&&(o===27&&wt(e.type)&&(t=e.stateNode),e=e.child,e!==null))for(vn(e,a,t),e=e.sibling;e!==null;)vn(e,a,t),e=e.sibling}function Jh(e){var a=e.stateNode,t=e.memoizedProps;try{for(var o=e.type,l=a.attributes;l.length;)a.removeAttributeNode(l[0]);De(a,o,t),a[Ne]=e,a[Ue]=t}catch(r){j(e,e.return,r)}}var Ea=!1,fe=!1,fd=!1,Ep=typeof WeakSet=="function"?WeakSet:Set,Se=null;function FC(e,a){if(e=e.containerInfo,rf=Rn,e=qg(e),bf(e)){if("selectionStart"in e)var t={start:e.selectionStart,end:e.selectionEnd};else e:{t=(t=e.ownerDocument)&&t.defaultView||window;var o=t.getSelection&&t.getSelection();if(o&&o.rangeCount!==0){t=o.anchorNode;var l=o.anchorOffset,r=o.focusNode;o=o.focusOffset;try{t.nodeType,r.nodeType}catch(I){t=null;break e}var u=0,i=-1,n=-1,d=0,g=0,h=e,f=null;a:for(;;){for(var m;h!==t||l!==0&&h.nodeType!==3||(i=u+l),h!==r||o!==0&&h.nodeType!==3||(n=u+o),h.nodeType===3&&(u+=h.nodeValue.length),(m=h.firstChild)!==null;)f=h,h=m;for(;;){if(h===e)break a;if(f===t&&++d===l&&(i=u),f===r&&++g===o&&(n=u),(m=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=m}t=i===-1||n===-1?null:{start:i,end:n}}else t=null}t=t||{start:0,end:0}}else t=null;for(uf={focusedElem:e,selectionRange:t},Rn=!1,Se=a;Se!==null;)if(a=Se,e=a.child,(a.subtreeFlags&1024)!==0&&e!==null)e.return=a,Se=e;else for(;Se!==null;){switch(a=Se,r=a.alternate,e=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&r!==null){e=void 0,t=a,l=r.memoizedProps,r=r.memoizedState,o=t.stateNode;try{var L=Gt(t.type,l,t.elementType===t.type);e=o.getSnapshotBeforeUpdate(L,r),o.__reactInternalSnapshotBeforeUpdate=e}catch(I){j(t,t.return,I)}}break;case 3:if((e&1024)!==0){if(e=a.stateNode.containerInfo,t=e.nodeType,t===9)sf(e);else if(t===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":sf(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(x(163))}if(e=a.sibling,e!==null){e.return=a.return,Se=e;break}Se=a.return}}function $h(e,a,t){var o=t.flags;switch(t.tag){case 0:case 11:case 15:et(e,t),o&4&&gr(5,t);break;case 1:if(et(e,t),o&4)if(e=t.stateNode,a===null)try{e.componentDidMount()}catch(u){j(t,t.return,u)}else{var l=Gt(t.type,a.memoizedProps);a=a.memoizedState;try{e.componentDidUpdate(l,a,e.__reactInternalSnapshotBeforeUpdate)}catch(u){j(t,t.return,u)}}o&64&&Qh(t),o&512&&Hl(t,t.return);break;case 3:if(et(e,t),o&64&&(e=t.updateQueue,e!==null)){if(a=null,t.child!==null)switch(t.child.tag){case 27:case 5:a=t.child.stateNode;break;case 1:a=t.child.stateNode}try{eh(e,a)}catch(u){j(t,t.return,u)}}break;case 27:a===null&&o&4&&Jh(t);case 26:case 5:et(e,t),a===null&&o&4&&Zh(t),o&512&&Hl(t,t.return);break;case 12:et(e,t);break;case 13:et(e,t),o&4&&ty(e,t),o&64&&(e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(t=GC.bind(null,t),uI(e,t))));break;case 22:if(o=t.memoizedState!==null||Ea,!o){a=a!==null&&a.memoizedState!==null||fe,l=Ea;var r=fe;Ea=o,(fe=a)&&!r?at(e,t,(t.subtreeFlags&8772)!==0):et(e,t),Ea=l,fe=r}break;case 30:break;default:et(e,t)}}function ey(e){var a=e.alternate;a!==null&&(e.alternate=null,ey(a)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(a=e.stateNode,a!==null&&Lf(a)),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 le=null,He=!1;function Fa(e,a,t){for(t=t.child;t!==null;)ay(e,a,t),t=t.sibling}function ay(e,a,t){if(Ye&&typeof Ye.onCommitFiberUnmount=="function")try{Ye.onCommitFiberUnmount(lr,t)}catch(r){}switch(t.tag){case 26:fe||Ia(t,a),Fa(e,a,t),t.memoizedState?t.memoizedState.count--:t.stateNode&&(t=t.stateNode,t.parentNode.removeChild(t));break;case 27:fe||Ia(t,a);var o=le,l=He;wt(t.type)&&(le=t.stateNode,He=!1),Fa(e,a,t),zl(t.stateNode),le=o,He=l;break;case 5:fe||Ia(t,a);case 6:if(o=le,l=He,le=null,Fa(e,a,t),le=o,He=l,le!==null)if(He)try{(le.nodeType===9?le.body:le.nodeName==="HTML"?le.ownerDocument.body:le).removeChild(t.stateNode)}catch(r){j(t,a,r)}else try{le.removeChild(t.stateNode)}catch(r){j(t,a,r)}break;case 18:le!==null&&(He?(e=le,Zp(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,t.stateNode),tr(e)):Zp(le,t.stateNode));break;case 4:o=le,l=He,le=t.stateNode.containerInfo,He=!0,Fa(e,a,t),le=o,He=l;break;case 0:case 11:case 14:case 15:fe||Ct(2,t,a),fe||Ct(4,t,a),Fa(e,a,t);break;case 1:fe||(Ia(t,a),o=t.stateNode,typeof o.componentWillUnmount=="function"&&Kh(t,a,o)),Fa(e,a,t);break;case 21:Fa(e,a,t);break;case 22:fe=(o=fe)||t.memoizedState!==null,Fa(e,a,t),fe=o;break;default:Fa(e,a,t)}}function ty(e,a){if(a.memoizedState===null&&(e=a.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{tr(e)}catch(t){j(a,a.return,t)}}function EC(e){switch(e.tag){case 13:case 19:var a=e.stateNode;return a===null&&(a=e.stateNode=new Ep),a;case 22:return e=e.stateNode,a=e._retryCache,a===null&&(a=e._retryCache=new Ep),a;default:throw Error(x(435,e.tag))}}function cd(e,a){var t=EC(e);a.forEach(function(o){var l=WC.bind(null,e,o);t.has(o)||(t.add(o),o.then(l,l))})}function ze(e,a){var t=a.deletions;if(t!==null)for(var o=0;o<t.length;o++){var l=t[o],r=e,u=a,i=u;e:for(;i!==null;){switch(i.tag){case 27:if(wt(i.type)){le=i.stateNode,He=!1;break e}break;case 5:le=i.stateNode,He=!1;break e;case 3:case 4:le=i.stateNode.containerInfo,He=!0;break e}i=i.return}if(le===null)throw Error(x(160));ay(r,u,l),le=null,He=!1,r=l.alternate,r!==null&&(r.return=null),l.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)oy(a,e),a=a.sibling}var ma=null;function oy(e,a){var t=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ze(a,e),_e(e),o&4&&(Ct(3,e,e.return),gr(3,e),Ct(5,e,e.return));break;case 1:ze(a,e),_e(e),o&512&&(fe||t===null||Ia(t,t.return)),o&64&&Ea&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(t=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=t===null?o:t.concat(o))));break;case 26:var l=ma;if(ze(a,e),_e(e),o&512&&(fe||t===null||Ia(t,t.return)),o&4){var r=t!==null?t.memoizedState:null;if(o=e.memoizedState,t===null)if(o===null)if(e.stateNode===null){e:{o=e.type,t=e.memoizedProps,l=l.ownerDocument||l;a:switch(o){case"title":r=l.getElementsByTagName("title")[0],(!r||r[ir]||r[Ne]||r.namespaceURI==="http://www.w3.org/2000/svg"||r.hasAttribute("itemprop"))&&(r=l.createElement(o),l.head.insertBefore(r,l.querySelector("head > title"))),De(r,o,t),r[Ne]=e,Le(r),o=r;break e;case"link":var u=ag("link","href",l).get(o+(t.href||""));if(u){for(var i=0;i<u.length;i++)if(r=u[i],r.getAttribute("href")===(t.href==null||t.href===""?null:t.href)&&r.getAttribute("rel")===(t.rel==null?null:t.rel)&&r.getAttribute("title")===(t.title==null?null:t.title)&&r.getAttribute("crossorigin")===(t.crossOrigin==null?null:t.crossOrigin)){u.splice(i,1);break a}}r=l.createElement(o),De(r,o,t),l.head.appendChild(r);break;case"meta":if(u=ag("meta","content",l).get(o+(t.content||""))){for(i=0;i<u.length;i++)if(r=u[i],r.getAttribute("content")===(t.content==null?null:""+t.content)&&r.getAttribute("name")===(t.name==null?null:t.name)&&r.getAttribute("property")===(t.property==null?null:t.property)&&r.getAttribute("http-equiv")===(t.httpEquiv==null?null:t.httpEquiv)&&r.getAttribute("charset")===(t.charSet==null?null:t.charSet)){u.splice(i,1);break a}}r=l.createElement(o),De(r,o,t),l.head.appendChild(r);break;default:throw Error(x(468,o))}r[Ne]=e,Le(r),o=r}e.stateNode=o}else tg(l,e.type,e.stateNode);else e.stateNode=eg(l,o,e.memoizedProps);else r!==o?(r===null?t.stateNode!==null&&(t=t.stateNode,t.parentNode.removeChild(t)):r.count--,o===null?tg(l,e.type,e.stateNode):eg(l,o,e.memoizedProps)):o===null&&e.stateNode!==null&&sd(e,e.memoizedProps,t.memoizedProps)}break;case 27:ze(a,e),_e(e),o&512&&(fe||t===null||Ia(t,t.return)),t!==null&&o&4&&sd(e,e.memoizedProps,t.memoizedProps);break;case 5:if(ze(a,e),_e(e),o&512&&(fe||t===null||Ia(t,t.return)),e.flags&32){l=e.stateNode;try{Yo(l,"")}catch(m){j(e,e.return,m)}}o&4&&e.stateNode!=null&&(l=e.memoizedProps,sd(e,l,t!==null?t.memoizedProps:l)),o&1024&&(fd=!0);break;case 6:if(ze(a,e),_e(e),o&4){if(e.stateNode===null)throw Error(x(162));o=e.memoizedProps,t=e.stateNode;try{t.nodeValue=o}catch(m){j(e,e.return,m)}}break;case 3:if(tn=null,l=ma,ma=Nn(a.containerInfo),ze(a,e),ma=l,_e(e),o&4&&t!==null&&t.memoizedState.isDehydrated)try{tr(a.containerInfo)}catch(m){j(e,e.return,m)}fd&&(fd=!1,ly(e));break;case 4:o=ma,ma=Nn(e.stateNode.containerInfo),ze(a,e),_e(e),ma=o;break;case 12:ze(a,e),_e(e);break;case 13:ze(a,e),_e(e),e.child.flags&8192&&e.memoizedState!==null!=(t!==null&&t.memoizedState!==null)&&($f=wa()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,cd(e,o)));break;case 22:l=e.memoizedState!==null;var n=t!==null&&t.memoizedState!==null,d=Ea,g=fe;if(Ea=d||l,fe=g||n,ze(a,e),fe=g,Ea=d,_e(e),o&8192)e:for(a=e.stateNode,a._visibility=l?a._visibility&-2:a._visibility|1,l&&(t===null||n||Ea||fe||Rt(e)),t=null,a=e;;){if(a.tag===5||a.tag===26){if(t===null){n=t=a;try{if(r=n.stateNode,l)u=r.style,typeof u.setProperty=="function"?u.setProperty("display","none","important"):u.display="none";else{i=n.stateNode;var h=n.memoizedProps.style,f=h!=null&&h.hasOwnProperty("display")?h.display:null;i.style.display=f==null||typeof f=="boolean"?"":(""+f).trim()}}catch(m){j(n,n.return,m)}}}else if(a.tag===6){if(t===null){n=a;try{n.stateNode.nodeValue=l?"":n.memoizedProps}catch(m){j(n,n.return,m)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===e)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)break e;for(;a.sibling===null;){if(a.return===null||a.return===e)break e;t===a&&(t=null),a=a.return}t===a&&(t=null),a.sibling.return=a.return,a=a.sibling}o&4&&(o=e.updateQueue,o!==null&&(t=o.retryQueue,t!==null&&(o.retryQueue=null,cd(e,t))));break;case 19:ze(a,e),_e(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,cd(e,o)));break;case 30:break;case 21:break;default:ze(a,e),_e(e)}}function _e(e){var a=e.flags;if(a&2){try{for(var t,o=e.return;o!==null;){if(jh(o)){t=o;break}o=o.return}if(t==null)throw Error(x(160));switch(t.tag){case 27:var l=t.stateNode,r=dd(e);vn(e,r,l);break;case 5:var u=t.stateNode;t.flags&32&&(Yo(u,""),t.flags&=-33);var i=dd(e);vn(e,i,u);break;case 3:case 4:var n=t.stateNode.containerInfo,d=dd(e);jd(e,d,n);break;default:throw Error(x(161))}}catch(g){j(e,e.return,g)}e.flags&=-3}a&4096&&(e.flags&=-4097)}function ly(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var a=e;ly(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),e=e.sibling}}function et(e,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)$h(e,a.alternate,a),a=a.sibling}function Rt(e){for(e=e.child;e!==null;){var a=e;switch(a.tag){case 0:case 11:case 14:case 15:Ct(4,a,a.return),Rt(a);break;case 1:Ia(a,a.return);var t=a.stateNode;typeof t.componentWillUnmount=="function"&&Kh(a,a.return,t),Rt(a);break;case 27:zl(a.stateNode);case 26:case 5:Ia(a,a.return),Rt(a);break;case 22:a.memoizedState===null&&Rt(a);break;case 30:Rt(a);break;default:Rt(a)}e=e.sibling}}function at(e,a,t){for(t=t&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var o=a.alternate,l=e,r=a,u=r.flags;switch(r.tag){case 0:case 11:case 15:at(l,r,t),gr(4,r);break;case 1:if(at(l,r,t),o=r,l=o.stateNode,typeof l.componentDidMount=="function")try{l.componentDidMount()}catch(d){j(o,o.return,d)}if(o=r,l=o.updateQueue,l!==null){var i=o.stateNode;try{var n=l.shared.hiddenCallbacks;if(n!==null)for(l.shared.hiddenCallbacks=null,l=0;l<n.length;l++)$g(n[l],i)}catch(d){j(o,o.return,d)}}t&&u&64&&Qh(r),Hl(r,r.return);break;case 27:Jh(r);case 26:case 5:at(l,r,t),t&&o===null&&u&4&&Zh(r),Hl(r,r.return);break;case 12:at(l,r,t);break;case 13:at(l,r,t),t&&u&4&&ty(l,r);break;case 22:r.memoizedState===null&&at(l,r,t),Hl(r,r.return);break;case 30:break;default:at(l,r,t)}a=a.sibling}}function Kf(e,a){var t=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(t=e.memoizedState.cachePool.pool),e=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(e=a.memoizedState.cachePool.pool),e!==t&&(e!=null&&e.refCount++,t!=null&&fr(t))}function Zf(e,a){e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&fr(e))}function La(e,a,t,o){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)ry(e,a,t,o),a=a.sibling}function ry(e,a,t,o){var l=a.flags;switch(a.tag){case 0:case 11:case 15:La(e,a,t,o),l&2048&&gr(9,a);break;case 1:La(e,a,t,o);break;case 3:La(e,a,t,o),l&2048&&(e=null,a.alternate!==null&&(e=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==e&&(a.refCount++,e!=null&&fr(e)));break;case 12:if(l&2048){La(e,a,t,o),e=a.stateNode;try{var r=a.memoizedProps,u=r.id,i=r.onPostCommit;typeof i=="function"&&i(u,a.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(n){j(a,a.return,n)}}else La(e,a,t,o);break;case 13:La(e,a,t,o);break;case 23:break;case 22:r=a.stateNode,u=a.alternate,a.memoizedState!==null?r._visibility&2?La(e,a,t,o):ql(e,a):r._visibility&2?La(e,a,t,o):(r._visibility|=2,Io(e,a,t,o,(a.subtreeFlags&10256)!==0)),l&2048&&Kf(u,a);break;case 24:La(e,a,t,o),l&2048&&Zf(a.alternate,a);break;default:La(e,a,t,o)}}function Io(e,a,t,o,l){for(l=l&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var r=e,u=a,i=t,n=o,d=u.flags;switch(u.tag){case 0:case 11:case 15:Io(r,u,i,n,l),gr(8,u);break;case 23:break;case 22:var g=u.stateNode;u.memoizedState!==null?g._visibility&2?Io(r,u,i,n,l):ql(r,u):(g._visibility|=2,Io(r,u,i,n,l)),l&&d&2048&&Kf(u.alternate,u);break;case 24:Io(r,u,i,n,l),l&&d&2048&&Zf(u.alternate,u);break;default:Io(r,u,i,n,l)}a=a.sibling}}function ql(e,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var t=e,o=a,l=o.flags;switch(o.tag){case 22:ql(t,o),l&2048&&Kf(o.alternate,o);break;case 24:ql(t,o),l&2048&&Zf(o.alternate,o);break;default:ql(t,o)}a=a.sibling}}var Tl=8192;function So(e){if(e.subtreeFlags&Tl)for(e=e.child;e!==null;)uy(e),e=e.sibling}function uy(e){switch(e.tag){case 26:So(e),e.flags&Tl&&e.memoizedState!==null&&SI(ma,e.memoizedState,e.memoizedProps);break;case 5:So(e);break;case 3:case 4:var a=ma;ma=Nn(e.stateNode.containerInfo),So(e),ma=a;break;case 22:e.memoizedState===null&&(a=e.alternate,a!==null&&a.memoizedState!==null?(a=Tl,Tl=16777216,So(e),Tl=a):So(e));break;default:So(e)}}function iy(e){var a=e.alternate;if(a!==null&&(e=a.child,e!==null)){a.child=null;do a=e.sibling,e.sibling=null,e=a;while(e!==null)}}function Il(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var t=0;t<a.length;t++){var o=a[t];Se=o,sy(o,e)}iy(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)ny(e),e=e.sibling}function ny(e){switch(e.tag){case 0:case 11:case 15:Il(e),e.flags&2048&&Ct(9,e,e.return);break;case 3:Il(e);break;case 12:Il(e);break;case 22:var a=e.stateNode;e.memoizedState!==null&&a._visibility&2&&(e.return===null||e.return.tag!==13)?(a._visibility&=-3,en(e)):Il(e);break;default:Il(e)}}function en(e){var a=e.deletions;if((e.flags&16)!==0){if(a!==null)for(var t=0;t<a.length;t++){var o=a[t];Se=o,sy(o,e)}iy(e)}for(e=e.child;e!==null;){switch(a=e,a.tag){case 0:case 11:case 15:Ct(8,a,a.return),en(a);break;case 22:t=a.stateNode,t._visibility&2&&(t._visibility&=-3,en(a));break;default:en(a)}e=e.sibling}}function sy(e,a){for(;Se!==null;){var t=Se;switch(t.tag){case 0:case 11:case 15:Ct(8,t,a);break;case 23:case 22:if(t.memoizedState!==null&&t.memoizedState.cachePool!==null){var o=t.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:fr(t.memoizedState.cache)}if(o=t.child,o!==null)o.return=t,Se=o;else e:for(t=e;Se!==null;){o=Se;var l=o.sibling,r=o.return;if(ey(o),o===t){Se=null;break e}if(l!==null){l.return=r,Se=l;break e}Se=r}}}var BC={getCacheForType:function(e){var a=Ae(ge),t=a.data.get(e);return t===void 0&&(t=e(),a.data.set(e,t)),t}},HC=typeof WeakMap=="function"?WeakMap:Map,Q=0,ee=null,E=null,q=0,X=0,Ge=null,dt=!1,ll=!1,jf=!1,Xa=0,se=0,It=0,qt=0,Jf=0,na=0,jo=0,Ul=null,qe=null,Jd=!1,$f=0,wn=1/0,Mn=null,gt=null,be=0,ht=null,Jo=null,_o=0,$d=0,ef=null,dy=null,Vl=0,af=null;function Qe(){if((Q&2)!==0&&q!==0)return q&-q;if(D.T!==null){var e=Xo;return e!==0?e:ac()}return Cg()}function fy(){na===0&&(na=(q&536870912)===0||G?yg():536870912);var e=sa.current;return e!==null&&(e.flags|=32),na}function Ke(e,a,t){(e===ee&&(X===2||X===9)||e.cancelPendingCommit!==null)&&($o(e,0),ft(e,q,na,!1)),ur(e,t),((Q&2)===0||e!==ee)&&(e===ee&&((Q&2)===0&&(qt|=t),se===4&&ft(e,q,na,!1)),Da(e))}function cy(e,a,t){if((Q&6)!==0)throw Error(x(327));var o=!t&&(a&124)===0&&(a&e.expiredLanes)===0||rr(e,a),l=o?VC(e,a):md(e,a,!0),r=o;do{if(l===0){ll&&!o&&ft(e,a,0,!1);break}else{if(t=e.current.alternate,r&&!qC(t)){l=md(e,a,!1),r=!1;continue}if(l===2){if(r=a,e.errorRecoveryDisabledLanes&r)var u=0;else u=e.pendingLanes&-536870913,u=u!==0?u:u&536870912?536870912:0;if(u!==0){a=u;e:{var i=e;l=Ul;var n=i.current.memoizedState.isDehydrated;if(n&&($o(i,u).flags|=256),u=md(i,u,!1),u!==2){if(jf&&!n){i.errorRecoveryDisabledLanes|=r,qt|=r,l=4;break e}r=qe,qe=l,r!==null&&(qe===null?qe=r:qe.push.apply(qe,r))}l=u}if(r=!1,l!==2)continue}}if(l===1){$o(e,0),ft(e,a,0,!0);break}e:{switch(o=e,r=l,r){case 0:case 1:throw Error(x(345));case 4:if((a&4194048)!==a)break;case 6:ft(o,a,na,!dt);break e;case 2:qe=null;break;case 3:case 5:break;default:throw Error(x(329))}if((a&62914560)===a&&(l=$f+300-wa(),10<l)){if(ft(o,a,na,!dt),Fn(o,0,!0)!==0)break e;o.timeoutHandle=Ay(Bp.bind(null,o,t,qe,Mn,Jd,a,na,qt,jo,dt,r,2,-0,0),l);break e}Bp(o,t,qe,Mn,Jd,a,na,qt,jo,dt,r,0,-0,0)}}break}while(!0);Da(e)}function Bp(e,a,t,o,l,r,u,i,n,d,g,h,f,m){if(e.timeoutHandle=-1,h=a.subtreeFlags,(h&8192||(h&16785408)===16785408)&&(Jl={stylesheets:null,count:0,unsuspend:xI},uy(a),h=LI(),h!==null)){e.cancelPendingCommit=h(qp.bind(null,e,a,r,t,o,l,u,i,n,g,1,f,m)),ft(e,r,u,!d);return}qp(e,a,r,t,o,l,u,i,n)}function qC(e){for(var a=e;;){var t=a.tag;if((t===0||t===11||t===15)&&a.flags&16384&&(t=a.updateQueue,t!==null&&(t=t.stores,t!==null)))for(var o=0;o<t.length;o++){var l=t[o],r=l.getSnapshot;l=l.value;try{if(!Ze(r(),l))return!1}catch(u){return!1}}if(t=a.child,a.subtreeFlags&16384&&t!==null)t.return=a,a=t;else{if(a===e)break;for(;a.sibling===null;){if(a.return===null||a.return===e)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function ft(e,a,t,o){a&=~Jf,a&=~qt,e.suspendedLanes|=a,e.pingedLanes&=~a,o&&(e.warmLanes|=a),o=e.expirationTimes;for(var l=a;0<l;){var r=31-Xe(l),u=1<<r;o[r]=-1,l&=~u}t!==0&&Sg(e,t,a)}function Wn(){return(Q&6)===0?(hr(0,!1),!1):!0}function ec(){if(E!==null){if(X===0)var e=E.return;else e=E,Ua=Qt=null,Uf(e),zo=null,Kl=0,e=E;for(;e!==null;)Xh(e.alternate,e),e=e.return;E=null}}function $o(e,a){var t=e.timeoutHandle;t!==-1&&(e.timeoutHandle=-1,aI(t)),t=e.cancelPendingCommit,t!==null&&(e.cancelPendingCommit=null,t()),ec(),ee=e,E=t=za(e.current,null),q=a,X=0,Ge=null,dt=!1,ll=rr(e,a),jf=!1,jo=na=Jf=qt=It=se=0,qe=Ul=null,Jd=!1,(a&8)!==0&&(a|=a&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=a;0<o;){var l=31-Xe(o),r=1<<l;a|=e[l],o&=~r}return Xa=a,qn(),t}function my(e,a){R=null,D.H=xn,a===cr||a===Vn?(a=gp(),X=3):a===jg?(a=gp(),X=4):X=a===Vh?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Ge=a,E===null&&(se=1,Cn(e,ia(a,e.current)))}function py(){var e=D.H;return D.H=xn,e===null?xn:e}function gy(){var e=D.A;return D.A=BC,e}function tf(){se=4,dt||(q&4194048)!==q&&sa.current!==null||(ll=!0),(It&134217727)===0&&(qt&134217727)===0||ee===null||ft(ee,q,na,!1)}function md(e,a,t){var o=Q;Q|=2;var l=py(),r=gy();(ee!==e||q!==a)&&(Mn=null,$o(e,a)),a=!1;var u=se;e:do try{if(X!==0&&E!==null){var i=E,n=Ge;switch(X){case 8:ec(),u=6;break e;case 3:case 2:case 9:case 6:sa.current===null&&(a=!0);var d=X;if(X=0,Ge=null,Fo(e,i,n,d),t&&ll){u=0;break e}break;default:d=X,X=0,Ge=null,Fo(e,i,n,d)}}UC(),u=se;break}catch(g){my(e,g)}while(!0);return a&&e.shellSuspendCounter++,Ua=Qt=null,Q=o,D.H=l,D.A=r,E===null&&(ee=null,q=0,qn()),u}function UC(){for(;E!==null;)hy(E)}function VC(e,a){var t=Q;Q|=2;var o=py(),l=gy();ee!==e||q!==a?(Mn=null,wn=wa()+500,$o(e,a)):ll=rr(e,a);e:do try{if(X!==0&&E!==null){a=E;var r=Ge;a:switch(X){case 1:X=0,Ge=null,Fo(e,a,r,1);break;case 2:case 9:if(pp(r)){X=0,Ge=null,Hp(a);break}a=function(){X!==2&&X!==9||ee!==e||(X=7),Da(e)},r.then(a,a);break e;case 3:X=7;break e;case 4:X=5;break e;case 7:pp(r)?(X=0,Ge=null,Hp(a)):(X=0,Ge=null,Fo(e,a,r,7));break;case 5:var u=null;switch(E.tag){case 26:u=E.memoizedState;case 5:case 27:var i=E;if(!u||Fy(u)){X=0,Ge=null;var n=i.sibling;if(n!==null)E=n;else{var d=i.return;d!==null?(E=d,Yn(d)):E=null}break a}}X=0,Ge=null,Fo(e,a,r,5);break;case 6:X=0,Ge=null,Fo(e,a,r,6);break;case 8:ec(),se=6;break e;default:throw Error(x(462))}}zC();break}catch(g){my(e,g)}while(!0);return Ua=Qt=null,D.H=o,D.A=l,Q=t,E!==null?0:(ee=null,q=0,qn(),se)}function zC(){for(;E!==null&&!dL();)hy(E)}function hy(e){var a=Yh(e.alternate,e,Xa);e.memoizedProps=e.pendingProps,a===null?Yn(e):E=a}function Hp(e){var a=e,t=a.alternate;switch(a.tag){case 15:case 0:a=Ap(t,a,a.pendingProps,a.type,void 0,q);break;case 11:a=Ap(t,a,a.pendingProps,a.type.render,a.ref,q);break;case 5:Uf(a);default:Xh(t,a),a=E=Xg(a,Xa),a=Yh(t,a,Xa)}e.memoizedProps=e.pendingProps,a===null?Yn(e):E=a}function Fo(e,a,t,o){Ua=Qt=null,Uf(a),zo=null,Kl=0;var l=a.return;try{if(AC(e,l,a,t,q)){se=1,Cn(e,ia(t,e.current)),E=null;return}}catch(r){if(l!==null)throw E=l,r;se=1,Cn(e,ia(t,e.current)),E=null;return}a.flags&32768?(G||o===1?e=!0:ll||(q&536870912)!==0?e=!1:(dt=e=!0,(o===2||o===9||o===3||o===6)&&(o=sa.current,o!==null&&o.tag===13&&(o.flags|=16384))),yy(a,e)):Yn(a)}function Yn(e){var a=e;do{if((a.flags&32768)!==0){yy(a,dt);return}e=a.return;var t=RC(a.alternate,a,Xa);if(t!==null){E=t;return}if(a=a.sibling,a!==null){E=a;return}E=a=e}while(a!==null);se===0&&(se=5)}function yy(e,a){do{var t=OC(e.alternate,e);if(t!==null){t.flags&=32767,E=t;return}if(t=e.return,t!==null&&(t.flags|=32768,t.subtreeFlags=0,t.deletions=null),!a&&(e=e.sibling,e!==null)){E=e;return}E=e=t}while(e!==null);se=6,E=null}function qp(e,a,t,o,l,r,u,i,n){e.cancelPendingCommit=null;do Xn();while(be!==0);if((Q&6)!==0)throw Error(x(327));if(a!==null){if(a===e.current)throw Error(x(177));if(r=a.lanes|a.childLanes,r|=Df,LL(e,t,r,u,i,n),e===ee&&(E=ee=null,q=0),Jo=a,ht=e,_o=t,$d=r,ef=l,dy=o,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,YC(nn,function(){return Iy(!0),null})):(e.callbackNode=null,e.callbackPriority=0),o=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||o){o=D.T,D.T=null,l=W.p,W.p=2,u=Q,Q|=4;try{FC(e,a,t)}finally{Q=u,W.p=l,D.T=o}}be=1,xy(),Sy(),Ly()}}function xy(){if(be===1){be=0;var e=ht,a=Jo,t=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||t){t=D.T,D.T=null;var o=W.p;W.p=2;var l=Q;Q|=4;try{oy(a,e);var r=uf,u=qg(e.containerInfo),i=r.focusedElem,n=r.selectionRange;if(u!==i&&i&&i.ownerDocument&&Hg(i.ownerDocument.documentElement,i)){if(n!==null&&bf(i)){var d=n.start,g=n.end;if(g===void 0&&(g=d),"selectionStart"in i)i.selectionStart=d,i.selectionEnd=Math.min(g,i.value.length);else{var h=i.ownerDocument||document,f=h&&h.defaultView||window;if(f.getSelection){var m=f.getSelection(),L=i.textContent.length,I=Math.min(n.start,L),T=n.end===void 0?I:Math.min(n.end,L);!m.extend&&I>T&&(u=T,T=I,I=u);var c=up(i,I),s=up(i,T);if(c&&s&&(m.rangeCount!==1||m.anchorNode!==c.node||m.anchorOffset!==c.offset||m.focusNode!==s.node||m.focusOffset!==s.offset)){var p=h.createRange();p.setStart(c.node,c.offset),m.removeAllRanges(),I>T?(m.addRange(p),m.extend(s.node,s.offset)):(p.setEnd(s.node,s.offset),m.addRange(p))}}}}for(h=[],m=i;m=m.parentNode;)m.nodeType===1&&h.push({element:m,left:m.scrollLeft,top:m.scrollTop});for(typeof i.focus=="function"&&i.focus(),i=0;i<h.length;i++){var y=h[i];y.element.scrollLeft=y.left,y.element.scrollTop=y.top}}Rn=!!rf,uf=rf=null}finally{Q=l,W.p=o,D.T=t}}e.current=a,be=2}}function Sy(){if(be===2){be=0;var e=ht,a=Jo,t=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||t){t=D.T,D.T=null;var o=W.p;W.p=2;var l=Q;Q|=4;try{$h(e,a.alternate,a)}finally{Q=l,W.p=o,D.T=t}}be=3}}function Ly(){if(be===4||be===3){be=0,fL();var e=ht,a=Jo,t=_o,o=dy;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?be=5:(be=0,Jo=ht=null,Cy(e,e.pendingLanes));var l=e.pendingLanes;if(l===0&&(gt=null),Sf(t),a=a.stateNode,Ye&&typeof Ye.onCommitFiberRoot=="function")try{Ye.onCommitFiberRoot(lr,a,void 0,(a.current.flags&128)===128)}catch(n){}if(o!==null){a=D.T,l=W.p,W.p=2,D.T=null;try{for(var r=e.onRecoverableError,u=0;u<o.length;u++){var i=o[u];r(i.value,{componentStack:i.stack})}}finally{D.T=a,W.p=l}}(_o&3)!==0&&Xn(),Da(e),l=e.pendingLanes,(t&4194090)!==0&&(l&42)!==0?e===af?Vl++:(Vl=0,af=e):Vl=0,hr(0,!1)}}function Cy(e,a){(e.pooledCacheLanes&=a)===0&&(a=e.pooledCache,a!=null&&(e.pooledCache=null,fr(a)))}function Xn(e){return xy(),Sy(),Ly(),Iy(e)}function Iy(){if(be!==5)return!1;var e=ht,a=$d;$d=0;var t=Sf(_o),o=D.T,l=W.p;try{W.p=32>t?32:t,D.T=null,t=ef,ef=null;var r=ht,u=_o;if(be=0,Jo=ht=null,_o=0,(Q&6)!==0)throw Error(x(331));var i=Q;if(Q|=4,ny(r.current),ry(r,r.current,u,t),Q=i,hr(0,!1),Ye&&typeof Ye.onPostCommitFiberRoot=="function")try{Ye.onPostCommitFiberRoot(lr,r)}catch(n){}return!0}finally{W.p=l,D.T=o,Cy(e,a)}}function Up(e,a,t){a=ia(t,a),a=Qd(e.stateNode,a,2),e=pt(e,a,2),e!==null&&(ur(e,2),Da(e))}function j(e,a,t){if(e.tag===3)Up(e,e,t);else for(;a!==null;){if(a.tag===3){Up(a,e,t);break}else if(a.tag===1){var o=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(gt===null||!gt.has(o))){e=ia(t,e),t=qh(2),o=pt(a,t,2),o!==null&&(Uh(t,o,a,e),ur(o,2),Da(o));break}}a=a.return}}function pd(e,a,t){var o=e.pingCache;if(o===null){o=e.pingCache=new HC;var l=new Set;o.set(a,l)}else l=o.get(a),l===void 0&&(l=new Set,o.set(a,l));l.has(t)||(jf=!0,l.add(t),e=_C.bind(null,e,a,t),a.then(e,e))}function _C(e,a,t){var o=e.pingCache;o!==null&&o.delete(a),e.pingedLanes|=e.suspendedLanes&t,e.warmLanes&=~t,ee===e&&(q&t)===t&&(se===4||se===3&&(q&62914560)===q&&300>wa()-$f?(Q&2)===0&&$o(e,0):Jf|=t,jo===q&&(jo=0)),Da(e)}function vy(e,a){a===0&&(a=xg()),e=ol(e,a),e!==null&&(ur(e,a),Da(e))}function GC(e){var a=e.memoizedState,t=0;a!==null&&(t=a.retryLane),vy(e,t)}function WC(e,a){var t=0;switch(e.tag){case 13:var o=e.stateNode,l=e.memoizedState;l!==null&&(t=l.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(x(314))}o!==null&&o.delete(a),vy(e,t)}function YC(e,a){return yf(e,a)}var bn=null,vo=null,of=!1,Dn=!1,gd=!1,Ut=0;function Da(e){e!==vo&&e.next===null&&(vo===null?bn=vo=e:vo=vo.next=e),Dn=!0,of||(of=!0,QC())}function hr(e,a){if(!gd&&Dn){gd=!0;do for(var t=!1,o=bn;o!==null;){if(!a)if(e!==0){var l=o.pendingLanes;if(l===0)var r=0;else{var u=o.suspendedLanes,i=o.pingedLanes;r=(1<<31-Xe(42|e)+1)-1,r&=l&~(u&~i),r=r&201326741?r&201326741|1:r?r|2:0}r!==0&&(t=!0,Vp(o,r))}else r=q,r=Fn(o,o===ee?r:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(r&3)===0||rr(o,r)||(t=!0,Vp(o,r));o=o.next}while(t);gd=!1}}function XC(){wy()}function wy(){Dn=of=!1;var e=0;Ut!==0&&(eI()&&(e=Ut),Ut=0);for(var a=wa(),t=null,o=bn;o!==null;){var l=o.next,r=My(o,a);r===0?(o.next=null,t===null?bn=l:t.next=l,l===null&&(vo=t)):(t=o,(e!==0||(r&3)!==0)&&(Dn=!0)),o=l}hr(e,!1)}function My(e,a){for(var t=e.suspendedLanes,o=e.pingedLanes,l=e.expirationTimes,r=e.pendingLanes&-62914561;0<r;){var u=31-Xe(r),i=1<<u,n=l[u];n===-1?((i&t)===0||(i&o)!==0)&&(l[u]=SL(i,a)):n<=a&&(e.expiredLanes|=i),r&=~i}if(a=ee,t=q,t=Fn(e,e===a?t:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,t===0||e===a&&(X===2||X===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&zs(o),e.callbackNode=null,e.callbackPriority=0;if((t&3)===0||rr(e,t)){if(a=t&-t,a===e.callbackPriority)return a;switch(o!==null&&zs(o),Sf(t)){case 2:case 8:t=gg;break;case 32:t=nn;break;case 268435456:t=hg;break;default:t=nn}return o=by.bind(null,e),t=yf(t,o),e.callbackPriority=a,e.callbackNode=t,a}return o!==null&&o!==null&&zs(o),e.callbackPriority=2,e.callbackNode=null,2}function by(e,a){if(be!==0&&be!==5)return e.callbackNode=null,e.callbackPriority=0,null;var t=e.callbackNode;if(Xn(!0)&&e.callbackNode!==t)return null;var o=q;return o=Fn(e,e===ee?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(cy(e,o,a),My(e,wa()),e.callbackNode!=null&&e.callbackNode===t?by.bind(null,e):null)}function Vp(e,a){if(Xn())return null;cy(e,a,!0)}function QC(){tI(function(){(Q&6)!==0?yf(pg,XC):wy()})}function ac(){return Ut===0&&(Ut=yg()),Ut}function zp(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Yi(""+e)}function _p(e,a){var t=a.ownerDocument.createElement("input");return t.name=a.name,t.value=a.value,e.id&&t.setAttribute("form",e.id),a.parentNode.insertBefore(t,a),e=new FormData(e),t.parentNode.removeChild(t),e}function KC(e,a,t,o,l){if(a==="submit"&&t&&t.stateNode===l){var r=zp((l[Ue]||null).action),u=o.submitter;u&&(a=(a=u[Ue]||null)?zp(a.formAction):u.getAttribute("formAction"),a!==null&&(r=a,u=null));var i=new En("action","action",null,o,l);e.push({event:i,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Ut!==0){var n=u?_p(l,u):new FormData(l);Yd(t,{pending:!0,data:n,method:l.method,action:r},null,n)}}else typeof r=="function"&&(i.preventDefault(),n=u?_p(l,u):new FormData(l),Yd(t,{pending:!0,data:n,method:l.method,action:r},r,n))},currentTarget:l}]})}}for(Ui=0;Ui<Od.length;Ui++)Vi=Od[Ui],Gp=Vi.toLowerCase(),Wp=Vi[0].toUpperCase()+Vi.slice(1),ga(Gp,"on"+Wp);var Vi,Gp,Wp,Ui;ga(Vg,"onAnimationEnd");ga(zg,"onAnimationIteration");ga(_g,"onAnimationStart");ga("dblclick","onDoubleClick");ga("focusin","onFocus");ga("focusout","onBlur");ga(pC,"onTransitionRun");ga(gC,"onTransitionStart");ga(hC,"onTransitionCancel");ga(Gg,"onTransitionEnd");Wo("onMouseEnter",["mouseout","mouseover"]);Wo("onMouseLeave",["mouseout","mouseover"]);Wo("onPointerEnter",["pointerout","pointerover"]);Wo("onPointerLeave",["pointerout","pointerover"]);Wt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Wt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Wt("onBeforeInput",["compositionend","keypress","textInput","paste"]);Wt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Wt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Wt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Zl="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(" "),ZC=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Zl));function Dy(e,a){a=(a&4)!==0;for(var t=0;t<e.length;t++){var o=e[t],l=o.event;o=o.listeners;e:{var r=void 0;if(a)for(var u=o.length-1;0<=u;u--){var i=o[u],n=i.instance,d=i.currentTarget;if(i=i.listener,n!==r&&l.isPropagationStopped())break e;r=i,l.currentTarget=d;try{r(l)}catch(g){Ln(g)}l.currentTarget=null,r=n}else for(u=0;u<o.length;u++){if(i=o[u],n=i.instance,d=i.currentTarget,i=i.listener,n!==r&&l.isPropagationStopped())break e;r=i,l.currentTarget=d;try{r(l)}catch(g){Ln(g)}l.currentTarget=null,r=n}}}}function F(e,a){var t=a[Dd];t===void 0&&(t=a[Dd]=new Set);var o=e+"__bubble";t.has(o)||(Ty(a,e,2,!1),t.add(o))}function hd(e,a,t){var o=0;a&&(o|=4),Ty(t,e,o,a)}var zi="_reactListening"+Math.random().toString(36).slice(2);function tc(e){if(!e[zi]){e[zi]=!0,Ig.forEach(function(t){t!=="selectionchange"&&(ZC.has(t)||hd(t,!1,e),hd(t,!0,e))});var a=e.nodeType===9?e:e.ownerDocument;a===null||a[zi]||(a[zi]=!0,hd("selectionchange",!1,a))}}function Ty(e,a,t,o){switch(Uy(a)){case 2:var l=vI;break;case 8:l=wI;break;default:l=uc}t=l.bind(null,a,t,e),l=void 0,!Ad||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(a,t,{capture:!0,passive:l}):e.addEventListener(a,t,!0):l!==void 0?e.addEventListener(a,t,{passive:l}):e.addEventListener(a,t,!1)}function yd(e,a,t,o,l){var r=o;if((a&1)===0&&(a&2)===0&&o!==null)e:for(;;){if(o===null)return;var u=o.tag;if(u===3||u===4){var i=o.stateNode.containerInfo;if(i===l)break;if(u===4)for(u=o.return;u!==null;){var n=u.tag;if((n===3||n===4)&&u.stateNode.containerInfo===l)return;u=u.return}for(;i!==null;){if(u=bo(i),u===null)return;if(n=u.tag,n===5||n===6||n===26||n===27){o=r=u;continue e}i=i.parentNode}}o=o.return}Ng(function(){var d=r,g=If(t),h=[];e:{var f=Wg.get(e);if(f!==void 0){var m=En,L=e;switch(e){case"keypress":if(Qi(t)===0)break e;case"keydown":case"keyup":m=YL;break;case"focusin":L="focus",m=Zs;break;case"focusout":L="blur",m=Zs;break;case"beforeblur":case"afterblur":m=Zs;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":m=jm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":m=OL;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":m=KL;break;case Vg:case zg:case _g:m=BL;break;case Gg:m=jL;break;case"scroll":case"scrollend":m=kL;break;case"wheel":m=$L;break;case"copy":case"cut":case"paste":m=qL;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":m=$m;break;case"toggle":case"beforetoggle":m=aC}var I=(a&4)!==0,T=!I&&(e==="scroll"||e==="scrollend"),c=I?f!==null?f+"Capture":null:f;I=[];for(var s=d,p;s!==null;){var y=s;if(p=y.stateNode,y=y.tag,y!==5&&y!==26&&y!==27||p===null||c===null||(y=Gl(s,c),y!=null&&I.push(jl(s,y,p))),T)break;s=s.return}0<I.length&&(f=new m(f,L,null,t,g),h.push({event:f,listeners:I}))}}if((a&7)===0){e:{if(f=e==="mouseover"||e==="pointerover",m=e==="mouseout"||e==="pointerout",f&&t!==Nd&&(L=t.relatedTarget||t.fromElement)&&(bo(L)||L[al]))break e;if((m||f)&&(f=g.window===g?g:(f=g.ownerDocument)?f.defaultView||f.parentWindow:window,m?(L=t.relatedTarget||t.toElement,m=d,L=L?bo(L):null,L!==null&&(T=or(L),I=L.tag,L!==T||I!==5&&I!==27&&I!==6)&&(L=null)):(m=null,L=d),m!==L)){if(I=jm,y="onMouseLeave",c="onMouseEnter",s="mouse",(e==="pointerout"||e==="pointerover")&&(I=$m,y="onPointerLeave",c="onPointerEnter",s="pointer"),T=m==null?f:Dl(m),p=L==null?f:Dl(L),f=new I(y,s+"leave",m,t,g),f.target=T,f.relatedTarget=p,y=null,bo(g)===d&&(I=new I(c,s+"enter",L,t,g),I.target=p,I.relatedTarget=T,y=I),T=y,m&&L)a:{for(I=m,c=L,s=0,p=I;p;p=Lo(p))s++;for(p=0,y=c;y;y=Lo(y))p++;for(;0<s-p;)I=Lo(I),s--;for(;0<p-s;)c=Lo(c),p--;for(;s--;){if(I===c||c!==null&&I===c.alternate)break a;I=Lo(I),c=Lo(c)}I=null}else I=null;m!==null&&Yp(h,f,m,I,!1),L!==null&&T!==null&&Yp(h,T,L,I,!0)}}e:{if(f=d?Dl(d):window,m=f.nodeName&&f.nodeName.toLowerCase(),m==="select"||m==="input"&&f.type==="file")var C=op;else if(tp(f))if(Eg)C=fC;else{C=sC;var P=nC}else m=f.nodeName,!m||m.toLowerCase()!=="input"||f.type!=="checkbox"&&f.type!=="radio"?d&&Cf(d.elementType)&&(C=op):C=dC;if(C&&(C=C(e,d))){Fg(h,C,t,g);break e}P&&P(e,f,d),e==="focusout"&&d&&f.type==="number"&&d.memoizedProps.value!=null&&Pd(f,"number",f.value)}switch(P=d?Dl(d):window,e){case"focusin":(tp(P)||P.contentEditable==="true")&&(Po=P,kd=d,Al=null);break;case"focusout":Al=kd=Po=null;break;case"mousedown":Rd=!0;break;case"contextmenu":case"mouseup":case"dragend":Rd=!1,ip(h,t,g);break;case"selectionchange":if(mC)break;case"keydown":case"keyup":ip(h,t,g)}var v;if(Mf)e:{switch(e){case"compositionstart":var M="onCompositionStart";break e;case"compositionend":M="onCompositionEnd";break e;case"compositionupdate":M="onCompositionUpdate";break e}M=void 0}else To?Rg(e,t)&&(M="onCompositionEnd"):e==="keydown"&&t.keyCode===229&&(M="onCompositionStart");M&&(kg&&t.locale!=="ko"&&(To||M!=="onCompositionStart"?M==="onCompositionEnd"&&To&&(v=Ag()):(st=g,vf="value"in st?st.value:st.textContent,To=!0)),P=Tn(d,M),0<P.length&&(M=new Jm(M,e,null,t,g),h.push({event:M,listeners:P}),v?M.data=v:(v=Og(t),v!==null&&(M.data=v)))),(v=oC?lC(e,t):rC(e,t))&&(M=Tn(d,"onBeforeInput"),0<M.length&&(P=new Jm("onBeforeInput","beforeinput",null,t,g),h.push({event:P,listeners:M}),P.data=v)),KC(h,e,d,t,g)}Dy(h,a)})}function jl(e,a,t){return{instance:e,listener:a,currentTarget:t}}function Tn(e,a){for(var t=a+"Capture",o=[];e!==null;){var l=e,r=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||r===null||(l=Gl(e,t),l!=null&&o.unshift(jl(e,l,r)),l=Gl(e,a),l!=null&&o.push(jl(e,l,r))),e.tag===3)return o;e=e.return}return[]}function Lo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Yp(e,a,t,o,l){for(var r=a._reactName,u=[];t!==null&&t!==o;){var i=t,n=i.alternate,d=i.stateNode;if(i=i.tag,n!==null&&n===o)break;i!==5&&i!==26&&i!==27||d===null||(n=d,l?(d=Gl(t,r),d!=null&&u.unshift(jl(t,d,n))):l||(d=Gl(t,r),d!=null&&u.push(jl(t,d,n)))),t=t.return}u.length!==0&&e.push({event:a,listeners:u})}var jC=/\r\n?/g,JC=/\u0000|\uFFFD/g;function Xp(e){return(typeof e=="string"?e:""+e).replace(jC,`
|
|
`).replace(JC,"")}function Py(e,a){return a=Xp(a),Xp(e)===a}function Qn(){}function K(e,a,t,o,l,r){switch(t){case"children":typeof o=="string"?a==="body"||a==="textarea"&&o===""||Yo(e,o):(typeof o=="number"||typeof o=="bigint")&&a!=="body"&&Yo(e,""+o);break;case"className":Ai(e,"class",o);break;case"tabIndex":Ai(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Ai(e,t,o);break;case"style":Pg(e,o,r);break;case"data":if(a!=="object"){Ai(e,"data",o);break}case"src":case"href":if(o===""&&(a!=="a"||t!=="href")){e.removeAttribute(t);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(t);break}o=Yi(""+o),e.setAttribute(t,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(t,"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"&&(t==="formAction"?(a!=="input"&&K(e,a,"name",l.name,l,null),K(e,a,"formEncType",l.formEncType,l,null),K(e,a,"formMethod",l.formMethod,l,null),K(e,a,"formTarget",l.formTarget,l,null)):(K(e,a,"encType",l.encType,l,null),K(e,a,"method",l.method,l,null),K(e,a,"target",l.target,l,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(t);break}o=Yi(""+o),e.setAttribute(t,o);break;case"onClick":o!=null&&(e.onclick=Qn);break;case"onScroll":o!=null&&F("scroll",e);break;case"onScrollEnd":o!=null&&F("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(x(61));if(t=o.__html,t!=null){if(l.children!=null)throw Error(x(60));e.innerHTML=t}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}t=Yi(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",t);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(t,""+o):e.removeAttribute(t);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":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(t,""):e.removeAttribute(t);break;case"capture":case"download":o===!0?e.setAttribute(t,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(t,o):e.removeAttribute(t);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(t,o):e.removeAttribute(t);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(t):e.setAttribute(t,o);break;case"popover":F("beforetoggle",e),F("toggle",e),Wi(e,"popover",o);break;case"xlinkActuate":Ra(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Ra(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Ra(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Ra(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Ra(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Ra(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Ra(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Ra(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Ra(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":Wi(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(t=NL.get(t)||t,Wi(e,t,o))}}function lf(e,a,t,o,l,r){switch(t){case"style":Pg(e,o,r);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(x(61));if(t=o.__html,t!=null){if(l.children!=null)throw Error(x(60));e.innerHTML=t}}break;case"children":typeof o=="string"?Yo(e,o):(typeof o=="number"||typeof o=="bigint")&&Yo(e,""+o);break;case"onScroll":o!=null&&F("scroll",e);break;case"onScrollEnd":o!=null&&F("scrollend",e);break;case"onClick":o!=null&&(e.onclick=Qn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!vg.hasOwnProperty(t))e:{if(t[0]==="o"&&t[1]==="n"&&(l=t.endsWith("Capture"),a=t.slice(2,l?t.length-7:void 0),r=e[Ue]||null,r=r!=null?r[t]:null,typeof r=="function"&&e.removeEventListener(a,r,l),typeof o=="function")){typeof r!="function"&&r!==null&&(t in e?e[t]=null:e.hasAttribute(t)&&e.removeAttribute(t)),e.addEventListener(a,o,l);break e}t in e?e[t]=o:o===!0?e.setAttribute(t,""):Wi(e,t,o)}}}function De(e,a,t){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":F("error",e),F("load",e);var o=!1,l=!1,r;for(r in t)if(t.hasOwnProperty(r)){var u=t[r];if(u!=null)switch(r){case"src":o=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(x(137,a));default:K(e,a,r,u,t,null)}}l&&K(e,a,"srcSet",t.srcSet,t,null),o&&K(e,a,"src",t.src,t,null);return;case"input":F("invalid",e);var i=r=u=l=null,n=null,d=null;for(o in t)if(t.hasOwnProperty(o)){var g=t[o];if(g!=null)switch(o){case"name":l=g;break;case"type":u=g;break;case"checked":n=g;break;case"defaultChecked":d=g;break;case"value":r=g;break;case"defaultValue":i=g;break;case"children":case"dangerouslySetInnerHTML":if(g!=null)throw Error(x(137,a));break;default:K(e,a,o,g,t,null)}}bg(e,r,i,n,d,u,l,!1),sn(e);return;case"select":F("invalid",e),o=u=r=null;for(l in t)if(t.hasOwnProperty(l)&&(i=t[l],i!=null))switch(l){case"value":r=i;break;case"defaultValue":u=i;break;case"multiple":o=i;default:K(e,a,l,i,t,null)}a=r,t=u,e.multiple=!!o,a!=null?Bo(e,!!o,a,!1):t!=null&&Bo(e,!!o,t,!0);return;case"textarea":F("invalid",e),r=l=o=null;for(u in t)if(t.hasOwnProperty(u)&&(i=t[u],i!=null))switch(u){case"value":o=i;break;case"defaultValue":l=i;break;case"children":r=i;break;case"dangerouslySetInnerHTML":if(i!=null)throw Error(x(91));break;default:K(e,a,u,i,t,null)}Tg(e,o,l,r),sn(e);return;case"option":for(n in t)if(t.hasOwnProperty(n)&&(o=t[n],o!=null))switch(n){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:K(e,a,n,o,t,null)}return;case"dialog":F("beforetoggle",e),F("toggle",e),F("cancel",e),F("close",e);break;case"iframe":case"object":F("load",e);break;case"video":case"audio":for(o=0;o<Zl.length;o++)F(Zl[o],e);break;case"image":F("error",e),F("load",e);break;case"details":F("toggle",e);break;case"embed":case"source":case"link":F("error",e),F("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(d in t)if(t.hasOwnProperty(d)&&(o=t[d],o!=null))switch(d){case"children":case"dangerouslySetInnerHTML":throw Error(x(137,a));default:K(e,a,d,o,t,null)}return;default:if(Cf(a)){for(g in t)t.hasOwnProperty(g)&&(o=t[g],o!==void 0&&lf(e,a,g,o,t,void 0));return}}for(i in t)t.hasOwnProperty(i)&&(o=t[i],o!=null&&K(e,a,i,o,t,null))}function $C(e,a,t,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,r=null,u=null,i=null,n=null,d=null,g=null;for(m in t){var h=t[m];if(t.hasOwnProperty(m)&&h!=null)switch(m){case"checked":break;case"value":break;case"defaultValue":n=h;default:o.hasOwnProperty(m)||K(e,a,m,null,o,h)}}for(var f in o){var m=o[f];if(h=t[f],o.hasOwnProperty(f)&&(m!=null||h!=null))switch(f){case"type":r=m;break;case"name":l=m;break;case"checked":d=m;break;case"defaultChecked":g=m;break;case"value":u=m;break;case"defaultValue":i=m;break;case"children":case"dangerouslySetInnerHTML":if(m!=null)throw Error(x(137,a));break;default:m!==h&&K(e,a,f,m,o,h)}}Td(e,u,i,n,d,g,r,l);return;case"select":m=u=i=f=null;for(r in t)if(n=t[r],t.hasOwnProperty(r)&&n!=null)switch(r){case"value":break;case"multiple":m=n;default:o.hasOwnProperty(r)||K(e,a,r,null,o,n)}for(l in o)if(r=o[l],n=t[l],o.hasOwnProperty(l)&&(r!=null||n!=null))switch(l){case"value":f=r;break;case"defaultValue":i=r;break;case"multiple":u=r;default:r!==n&&K(e,a,l,r,o,n)}a=i,t=u,o=m,f!=null?Bo(e,!!t,f,!1):!!o!=!!t&&(a!=null?Bo(e,!!t,a,!0):Bo(e,!!t,t?[]:"",!1));return;case"textarea":m=f=null;for(i in t)if(l=t[i],t.hasOwnProperty(i)&&l!=null&&!o.hasOwnProperty(i))switch(i){case"value":break;case"children":break;default:K(e,a,i,null,o,l)}for(u in o)if(l=o[u],r=t[u],o.hasOwnProperty(u)&&(l!=null||r!=null))switch(u){case"value":f=l;break;case"defaultValue":m=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error(x(91));break;default:l!==r&&K(e,a,u,l,o,r)}Dg(e,f,m);return;case"option":for(var L in t)if(f=t[L],t.hasOwnProperty(L)&&f!=null&&!o.hasOwnProperty(L))switch(L){case"selected":e.selected=!1;break;default:K(e,a,L,null,o,f)}for(n in o)if(f=o[n],m=t[n],o.hasOwnProperty(n)&&f!==m&&(f!=null||m!=null))switch(n){case"selected":e.selected=f&&typeof f!="function"&&typeof f!="symbol";break;default:K(e,a,n,f,o,m)}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 t)f=t[I],t.hasOwnProperty(I)&&f!=null&&!o.hasOwnProperty(I)&&K(e,a,I,null,o,f);for(d in o)if(f=o[d],m=t[d],o.hasOwnProperty(d)&&f!==m&&(f!=null||m!=null))switch(d){case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(x(137,a));break;default:K(e,a,d,f,o,m)}return;default:if(Cf(a)){for(var T in t)f=t[T],t.hasOwnProperty(T)&&f!==void 0&&!o.hasOwnProperty(T)&&lf(e,a,T,void 0,o,f);for(g in o)f=o[g],m=t[g],!o.hasOwnProperty(g)||f===m||f===void 0&&m===void 0||lf(e,a,g,f,o,m);return}}for(var c in t)f=t[c],t.hasOwnProperty(c)&&f!=null&&!o.hasOwnProperty(c)&&K(e,a,c,null,o,f);for(h in o)f=o[h],m=t[h],!o.hasOwnProperty(h)||f===m||f==null&&m==null||K(e,a,h,f,o,m)}var rf=null,uf=null;function Pn(e){return e.nodeType===9?e:e.ownerDocument}function Qp(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 Ny(e,a){if(e===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&a==="foreignObject"?0:e}function nf(e,a){return e==="textarea"||e==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var xd=null;function eI(){var e=window.event;return e&&e.type==="popstate"?e===xd?!1:(xd=e,!0):(xd=null,!1)}var Ay=typeof setTimeout=="function"?setTimeout:void 0,aI=typeof clearTimeout=="function"?clearTimeout:void 0,Kp=typeof Promise=="function"?Promise:void 0,tI=typeof queueMicrotask=="function"?queueMicrotask:typeof Kp!="undefined"?function(e){return Kp.resolve(null).then(e).catch(oI)}:Ay;function oI(e){setTimeout(function(){throw e})}function wt(e){return e==="head"}function Zp(e,a){var t=a,o=0,l=0;do{var r=t.nextSibling;if(e.removeChild(t),r&&r.nodeType===8)if(t=r.data,t==="/$"){if(0<o&&8>o){t=o;var u=e.ownerDocument;if(t&1&&zl(u.documentElement),t&2&&zl(u.body),t&4)for(t=u.head,zl(t),u=t.firstChild;u;){var i=u.nextSibling,n=u.nodeName;u[ir]||n==="SCRIPT"||n==="STYLE"||n==="LINK"&&u.rel.toLowerCase()==="stylesheet"||t.removeChild(u),u=i}}if(l===0){e.removeChild(r),tr(a);return}l--}else t==="$"||t==="$?"||t==="$!"?l++:o=t.charCodeAt(0)-48;else o=0;t=r}while(t);tr(a)}function sf(e){var a=e.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var t=a;switch(a=a.nextSibling,t.nodeName){case"HTML":case"HEAD":case"BODY":sf(t),Lf(t);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(t.rel.toLowerCase()==="stylesheet")continue}e.removeChild(t)}}function lI(e,a,t,o){for(;e.nodeType===1;){var l=t;if(e.nodeName.toLowerCase()!==a.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[ir])switch(a){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!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(r=e.getAttribute("src"),(r!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&r&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(a==="input"&&e.type==="hidden"){var r=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===r)return e}else return e;if(e=pa(e.nextSibling),e===null)break}return null}function rI(e,a,t){if(a==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=pa(e.nextSibling),e===null))return null;return e}function df(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function uI(e,a){var t=e.ownerDocument;if(e.data!=="$?"||t.readyState==="complete")a();else{var o=function(){a(),t.removeEventListener("DOMContentLoaded",o)};t.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function pa(e){for(;e!=null;e=e.nextSibling){var a=e.nodeType;if(a===1||a===3)break;if(a===8){if(a=e.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return e}var ff=null;function jp(e){e=e.previousSibling;for(var a=0;e;){if(e.nodeType===8){var t=e.data;if(t==="$"||t==="$!"||t==="$?"){if(a===0)return e;a--}else t==="/$"&&a++}e=e.previousSibling}return null}function ky(e,a,t){switch(a=Pn(t),e){case"html":if(e=a.documentElement,!e)throw Error(x(452));return e;case"head":if(e=a.head,!e)throw Error(x(453));return e;case"body":if(e=a.body,!e)throw Error(x(454));return e;default:throw Error(x(451))}}function zl(e){for(var a=e.attributes;a.length;)e.removeAttributeNode(a[0]);Lf(e)}var da=new Map,Jp=new Set;function Nn(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Qa=W.d;W.d={f:iI,r:nI,D:sI,C:dI,L:fI,m:cI,X:pI,S:mI,M:gI};function iI(){var e=Qa.f(),a=Wn();return e||a}function nI(e){var a=tl(e);a!==null&&a.tag===5&&a.type==="form"?Mh(a):Qa.r(e)}var rl=typeof document=="undefined"?null:document;function Ry(e,a,t){var o=rl;if(o&&typeof a=="string"&&a){var l=ua(a);l='link[rel="'+e+'"][href="'+l+'"]',typeof t=="string"&&(l+='[crossorigin="'+t+'"]'),Jp.has(l)||(Jp.add(l),e={rel:e,crossOrigin:t,href:a},o.querySelector(l)===null&&(a=o.createElement("link"),De(a,"link",e),Le(a),o.head.appendChild(a)))}}function sI(e){Qa.D(e),Ry("dns-prefetch",e,null)}function dI(e,a){Qa.C(e,a),Ry("preconnect",e,a)}function fI(e,a,t){Qa.L(e,a,t);var o=rl;if(o&&e&&a){var l='link[rel="preload"][as="'+ua(a)+'"]';a==="image"&&t&&t.imageSrcSet?(l+='[imagesrcset="'+ua(t.imageSrcSet)+'"]',typeof t.imageSizes=="string"&&(l+='[imagesizes="'+ua(t.imageSizes)+'"]')):l+='[href="'+ua(e)+'"]';var r=l;switch(a){case"style":r=el(e);break;case"script":r=ul(e)}da.has(r)||(e=ae({rel:"preload",href:a==="image"&&t&&t.imageSrcSet?void 0:e,as:a},t),da.set(r,e),o.querySelector(l)!==null||a==="style"&&o.querySelector(yr(r))||a==="script"&&o.querySelector(xr(r))||(a=o.createElement("link"),De(a,"link",e),Le(a),o.head.appendChild(a)))}}function cI(e,a){Qa.m(e,a);var t=rl;if(t&&e){var o=a&&typeof a.as=="string"?a.as:"script",l='link[rel="modulepreload"][as="'+ua(o)+'"][href="'+ua(e)+'"]',r=l;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":r=ul(e)}if(!da.has(r)&&(e=ae({rel:"modulepreload",href:e},a),da.set(r,e),t.querySelector(l)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(t.querySelector(xr(r)))return}o=t.createElement("link"),De(o,"link",e),Le(o),t.head.appendChild(o)}}}function mI(e,a,t){Qa.S(e,a,t);var o=rl;if(o&&e){var l=Eo(o).hoistableStyles,r=el(e);a=a||"default";var u=l.get(r);if(!u){var i={loading:0,preload:null};if(u=o.querySelector(yr(r)))i.loading=5;else{e=ae({rel:"stylesheet",href:e,"data-precedence":a},t),(t=da.get(r))&&oc(e,t);var n=u=o.createElement("link");Le(n),De(n,"link",e),n._p=new Promise(function(d,g){n.onload=d,n.onerror=g}),n.addEventListener("load",function(){i.loading|=1}),n.addEventListener("error",function(){i.loading|=2}),i.loading|=4,an(u,a,o)}u={type:"stylesheet",instance:u,count:1,state:i},l.set(r,u)}}}function pI(e,a){Qa.X(e,a);var t=rl;if(t&&e){var o=Eo(t).hoistableScripts,l=ul(e),r=o.get(l);r||(r=t.querySelector(xr(l)),r||(e=ae({src:e,async:!0},a),(a=da.get(l))&&lc(e,a),r=t.createElement("script"),Le(r),De(r,"link",e),t.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},o.set(l,r))}}function gI(e,a){Qa.M(e,a);var t=rl;if(t&&e){var o=Eo(t).hoistableScripts,l=ul(e),r=o.get(l);r||(r=t.querySelector(xr(l)),r||(e=ae({src:e,async:!0,type:"module"},a),(a=da.get(l))&&lc(e,a),r=t.createElement("script"),Le(r),De(r,"link",e),t.head.appendChild(r)),r={type:"script",instance:r,count:1,state:null},o.set(l,r))}}function $p(e,a,t,o){var l=(l=ct.current)?Nn(l):null;if(!l)throw Error(x(446));switch(e){case"meta":case"title":return null;case"style":return typeof t.precedence=="string"&&typeof t.href=="string"?(a=el(t.href),t=Eo(l).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(t.rel==="stylesheet"&&typeof t.href=="string"&&typeof t.precedence=="string"){e=el(t.href);var r=Eo(l).hoistableStyles,u=r.get(e);if(u||(l=l.ownerDocument||l,u={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},r.set(e,u),(r=l.querySelector(yr(e)))&&!r._p&&(u.instance=r,u.state.loading=5),da.has(e)||(t={rel:"preload",as:"style",href:t.href,crossOrigin:t.crossOrigin,integrity:t.integrity,media:t.media,hrefLang:t.hrefLang,referrerPolicy:t.referrerPolicy},da.set(e,t),r||hI(l,e,t,u.state))),a&&o===null)throw Error(x(528,""));return u}if(a&&o!==null)throw Error(x(529,""));return null;case"script":return a=t.async,t=t.src,typeof t=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=ul(t),t=Eo(l).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(x(444,e))}}function el(e){return'href="'+ua(e)+'"'}function yr(e){return'link[rel="stylesheet"]['+e+"]"}function Oy(e){return ae({},e,{"data-precedence":e.precedence,precedence:null})}function hI(e,a,t,o){e.querySelector('link[rel="preload"][as="style"]['+a+"]")?o.loading=1:(a=e.createElement("link"),o.preload=a,a.addEventListener("load",function(){return o.loading|=1}),a.addEventListener("error",function(){return o.loading|=2}),De(a,"link",t),Le(a),e.head.appendChild(a))}function ul(e){return'[src="'+ua(e)+'"]'}function xr(e){return"script[async]"+e}function eg(e,a,t){if(a.count++,a.instance===null)switch(a.type){case"style":var o=e.querySelector('style[data-href~="'+ua(t.href)+'"]');if(o)return a.instance=o,Le(o),o;var l=ae({},t,{"data-href":t.href,"data-precedence":t.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Le(o),De(o,"style",l),an(o,t.precedence,e),a.instance=o;case"stylesheet":l=el(t.href);var r=e.querySelector(yr(l));if(r)return a.state.loading|=4,a.instance=r,Le(r),r;o=Oy(t),(l=da.get(l))&&oc(o,l),r=(e.ownerDocument||e).createElement("link"),Le(r);var u=r;return u._p=new Promise(function(i,n){u.onload=i,u.onerror=n}),De(r,"link",o),a.state.loading|=4,an(r,t.precedence,e),a.instance=r;case"script":return r=ul(t.src),(l=e.querySelector(xr(r)))?(a.instance=l,Le(l),l):(o=t,(l=da.get(r))&&(o=ae({},t),lc(o,l)),e=e.ownerDocument||e,l=e.createElement("script"),Le(l),De(l,"link",o),e.head.appendChild(l),a.instance=l);case"void":return null;default:throw Error(x(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(o=a.instance,a.state.loading|=4,an(o,t.precedence,e));return a.instance}function an(e,a,t){for(var o=t.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=o.length?o[o.length-1]:null,r=l,u=0;u<o.length;u++){var i=o[u];if(i.dataset.precedence===a)r=i;else if(r!==l)break}r?r.parentNode.insertBefore(e,r.nextSibling):(a=t.nodeType===9?t.head:t,a.insertBefore(e,a.firstChild))}function oc(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.title==null&&(e.title=a.title)}function lc(e,a){e.crossOrigin==null&&(e.crossOrigin=a.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=a.referrerPolicy),e.integrity==null&&(e.integrity=a.integrity)}var tn=null;function ag(e,a,t){if(tn===null){var o=new Map,l=tn=new Map;l.set(t,o)}else l=tn,o=l.get(t),o||(o=new Map,l.set(t,o));if(o.has(e))return o;for(o.set(e,null),t=t.getElementsByTagName(e),l=0;l<t.length;l++){var r=t[l];if(!(r[ir]||r[Ne]||e==="link"&&r.getAttribute("rel")==="stylesheet")&&r.namespaceURI!=="http://www.w3.org/2000/svg"){var u=r.getAttribute(a)||"";u=e+u;var i=o.get(u);i?i.push(r):o.set(u,[r])}}return o}function tg(e,a,t){e=e.ownerDocument||e,e.head.insertBefore(t,a==="title"?e.querySelector("head > title"):null)}function yI(e,a,t){if(t===1||a.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return e=a.disabled,typeof a.precedence=="string"&&e==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function Fy(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Jl=null;function xI(){}function SI(e,a,t){if(Jl===null)throw Error(x(475));var o=Jl;if(a.type==="stylesheet"&&(typeof t.media!="string"||matchMedia(t.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var l=el(t.href),r=e.querySelector(yr(l));if(r){e=r._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=An.bind(o),e.then(o,o)),a.state.loading|=4,a.instance=r,Le(r);return}r=e.ownerDocument||e,t=Oy(t),(l=da.get(l))&&oc(t,l),r=r.createElement("link"),Le(r);var u=r;u._p=new Promise(function(i,n){u.onload=i,u.onerror=n}),De(r,"link",t),a.instance=r}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(a,e),(e=a.state.preload)&&(a.state.loading&3)===0&&(o.count++,a=An.bind(o),e.addEventListener("load",a),e.addEventListener("error",a))}}function LI(){if(Jl===null)throw Error(x(475));var e=Jl;return e.stylesheets&&e.count===0&&cf(e,e.stylesheets),0<e.count?function(a){var t=setTimeout(function(){if(e.stylesheets&&cf(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(t)}}:null}function An(){if(this.count--,this.count===0){if(this.stylesheets)cf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var kn=null;function cf(e,a){e.stylesheets=null,e.unsuspend!==null&&(e.count++,kn=new Map,a.forEach(CI,e),kn=null,An.call(e))}function CI(e,a){if(!(a.state.loading&4)){var t=kn.get(e);if(t)var o=t.get(null);else{t=new Map,kn.set(e,t);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),r=0;r<l.length;r++){var u=l[r];(u.nodeName==="LINK"||u.getAttribute("media")!=="not all")&&(t.set(u.dataset.precedence,u),o=u)}o&&t.set(null,o)}l=a.instance,u=l.getAttribute("data-precedence"),r=t.get(u)||o,r===o&&t.set(null,l),t.set(u,l),this.count++,o=An.bind(this),l.addEventListener("load",o),l.addEventListener("error",o),r?r.parentNode.insertBefore(l,r.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),a.state.loading|=4}}var $l={$$typeof:Ba,Provider:null,Consumer:null,_currentValue:Ot,_currentValue2:Ot,_threadCount:0};function II(e,a,t,o,l,r,u,i){this.tag=1,this.containerInfo=e,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=_s(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=_s(0),this.hiddenUpdates=_s(null),this.identifierPrefix=o,this.onUncaughtError=l,this.onCaughtError=r,this.onRecoverableError=u,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=i,this.incompleteTransitions=new Map}function Ey(e,a,t,o,l,r,u,i,n,d,g,h){return e=new II(e,a,t,u,i,n,d,h),a=1,r===!0&&(a|=24),r=We(3,null,null,a),e.current=r,r.stateNode=e,a=kf(),a.refCount++,e.pooledCache=a,a.refCount++,r.memoizedState={element:o,isDehydrated:t,cache:a},Of(r),e}function By(e){return e?(e=ko,e):ko}function Hy(e,a,t,o,l,r){l=By(l),o.context===null?o.context=l:o.pendingContext=l,o=mt(a),o.payload={element:t},r=r===void 0?null:r,r!==null&&(o.callback=r),t=pt(e,o,a),t!==null&&(Ke(t,e,a),Ol(t,e,a))}function og(e,a){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var t=e.retryLane;e.retryLane=t!==0&&t<a?t:a}}function rc(e,a){og(e,a),(e=e.alternate)&&og(e,a)}function qy(e){if(e.tag===13){var a=ol(e,67108864);a!==null&&Ke(a,e,67108864),rc(e,67108864)}}var Rn=!0;function vI(e,a,t,o){var l=D.T;D.T=null;var r=W.p;try{W.p=2,uc(e,a,t,o)}finally{W.p=r,D.T=l}}function wI(e,a,t,o){var l=D.T;D.T=null;var r=W.p;try{W.p=8,uc(e,a,t,o)}finally{W.p=r,D.T=l}}function uc(e,a,t,o){if(Rn){var l=mf(o);if(l===null)yd(e,a,o,On,t),lg(e,o);else if(bI(l,e,a,t,o))o.stopPropagation();else if(lg(e,o),a&4&&-1<MI.indexOf(e)){for(;l!==null;){var r=tl(l);if(r!==null)switch(r.tag){case 3:if(r=r.stateNode,r.current.memoizedState.isDehydrated){var u=At(r.pendingLanes);if(u!==0){var i=r;for(i.pendingLanes|=2,i.entangledLanes|=2;u;){var n=1<<31-Xe(u);i.entanglements[1]|=n,u&=~n}Da(r),(Q&6)===0&&(wn=wa()+500,hr(0,!1))}}break;case 13:i=ol(r,2),i!==null&&Ke(i,r,2),Wn(),rc(r,2)}if(r=mf(o),r===null&&yd(e,a,o,On,t),r===l)break;l=r}l!==null&&o.stopPropagation()}else yd(e,a,o,null,t)}}function mf(e){return e=If(e),ic(e)}var On=null;function ic(e){if(On=null,e=bo(e),e!==null){var a=or(e);if(a===null)e=null;else{var t=a.tag;if(t===13){if(e=dg(a),e!==null)return e;e=null}else if(t===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;e=null}else a!==e&&(e=null)}}return On=e,null}function Uy(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(cL()){case pg:return 2;case gg:return 8;case nn:case mL:return 32;case hg:return 268435456;default:return 32}default:return 32}}var pf=!1,yt=null,xt=null,St=null,er=new Map,ar=new Map,it=[],MI="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 lg(e,a){switch(e){case"focusin":case"focusout":yt=null;break;case"dragenter":case"dragleave":xt=null;break;case"mouseover":case"mouseout":St=null;break;case"pointerover":case"pointerout":er.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":ar.delete(a.pointerId)}}function vl(e,a,t,o,l,r){return e===null||e.nativeEvent!==r?(e={blockedOn:a,domEventName:t,eventSystemFlags:o,nativeEvent:r,targetContainers:[l]},a!==null&&(a=tl(a),a!==null&&qy(a)),e):(e.eventSystemFlags|=o,a=e.targetContainers,l!==null&&a.indexOf(l)===-1&&a.push(l),e)}function bI(e,a,t,o,l){switch(a){case"focusin":return yt=vl(yt,e,a,t,o,l),!0;case"dragenter":return xt=vl(xt,e,a,t,o,l),!0;case"mouseover":return St=vl(St,e,a,t,o,l),!0;case"pointerover":var r=l.pointerId;return er.set(r,vl(er.get(r)||null,e,a,t,o,l)),!0;case"gotpointercapture":return r=l.pointerId,ar.set(r,vl(ar.get(r)||null,e,a,t,o,l)),!0}return!1}function Vy(e){var a=bo(e.target);if(a!==null){var t=or(a);if(t!==null){if(a=t.tag,a===13){if(a=dg(t),a!==null){e.blockedOn=a,CL(e.priority,function(){if(t.tag===13){var o=Qe();o=xf(o);var l=ol(t,o);l!==null&&Ke(l,t,o),rc(t,o)}});return}}else if(a===3&&t.stateNode.current.memoizedState.isDehydrated){e.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}e.blockedOn=null}function on(e){if(e.blockedOn!==null)return!1;for(var a=e.targetContainers;0<a.length;){var t=mf(e.nativeEvent);if(t===null){t=e.nativeEvent;var o=new t.constructor(t.type,t);Nd=o,t.target.dispatchEvent(o),Nd=null}else return a=tl(t),a!==null&&qy(a),e.blockedOn=t,!1;a.shift()}return!0}function rg(e,a,t){on(e)&&t.delete(a)}function DI(){pf=!1,yt!==null&&on(yt)&&(yt=null),xt!==null&&on(xt)&&(xt=null),St!==null&&on(St)&&(St=null),er.forEach(rg),ar.forEach(rg)}function _i(e,a){e.blockedOn===a&&(e.blockedOn=null,pf||(pf=!0,ye.unstable_scheduleCallback(ye.unstable_NormalPriority,DI)))}var Gi=null;function ug(e){Gi!==e&&(Gi=e,ye.unstable_scheduleCallback(ye.unstable_NormalPriority,function(){Gi===e&&(Gi=null);for(var a=0;a<e.length;a+=3){var t=e[a],o=e[a+1],l=e[a+2];if(typeof o!="function"){if(ic(o||t)===null)continue;break}var r=tl(t);r!==null&&(e.splice(a,3),a-=3,Yd(r,{pending:!0,data:l,method:t.method,action:o},o,l))}}))}function tr(e){function a(n){return _i(n,e)}yt!==null&&_i(yt,e),xt!==null&&_i(xt,e),St!==null&&_i(St,e),er.forEach(a),ar.forEach(a);for(var t=0;t<it.length;t++){var o=it[t];o.blockedOn===e&&(o.blockedOn=null)}for(;0<it.length&&(t=it[0],t.blockedOn===null);)Vy(t),t.blockedOn===null&&it.shift();if(t=(e.ownerDocument||e).$$reactFormReplay,t!=null)for(o=0;o<t.length;o+=3){var l=t[o],r=t[o+1],u=l[Ue]||null;if(typeof r=="function")u||ug(t);else if(u){var i=null;if(r&&r.hasAttribute("formAction")){if(l=r,u=r[Ue]||null)i=u.formAction;else if(ic(l)!==null)continue}else i=u.action;typeof i=="function"?t[o+1]=i:(t.splice(o,3),o-=3),ug(t)}}}function nc(e){this._internalRoot=e}Kn.prototype.render=nc.prototype.render=function(e){var a=this._internalRoot;if(a===null)throw Error(x(409));var t=a.current,o=Qe();Hy(t,o,e,a,null,null)};Kn.prototype.unmount=nc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var a=e.containerInfo;Hy(e.current,2,null,e,null,null),Wn(),a[al]=null}};function Kn(e){this._internalRoot=e}Kn.prototype.unstable_scheduleHydration=function(e){if(e){var a=Cg();e={blockedOn:null,target:e,priority:a};for(var t=0;t<it.length&&a!==0&&a<it[t].priority;t++);it.splice(t,0,e),t===0&&Vy(e)}};var ig=ng.version;if(ig!=="19.1.1")throw Error(x(527,ig,"19.1.1"));W.findDOMNode=function(e){var a=e._reactInternals;if(a===void 0)throw typeof e.render=="function"?Error(x(188)):(e=Object.keys(e).join(","),Error(x(268,e)));return e=rL(a),e=e!==null?fg(e):null,e=e===null?null:e.stateNode,e};var TI={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:D,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&(wl=__REACT_DEVTOOLS_GLOBAL_HOOK__,!wl.isDisabled&&wl.supportsFiber))try{lr=wl.inject(TI),Ye=wl}catch(e){}var wl;Zn.createRoot=function(e,a){if(!sg(e))throw Error(x(299));var t=!1,o="",l=Eh,r=Bh,u=Hh,i=null;return a!=null&&(a.unstable_strictMode===!0&&(t=!0),a.identifierPrefix!==void 0&&(o=a.identifierPrefix),a.onUncaughtError!==void 0&&(l=a.onUncaughtError),a.onCaughtError!==void 0&&(r=a.onCaughtError),a.onRecoverableError!==void 0&&(u=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(i=a.unstable_transitionCallbacks)),a=Ey(e,1,!1,null,null,t,o,l,r,u,i,null),e[al]=a.current,tc(e),new nc(a)};Zn.hydrateRoot=function(e,a,t){if(!sg(e))throw Error(x(299));var o=!1,l="",r=Eh,u=Bh,i=Hh,n=null,d=null;return t!=null&&(t.unstable_strictMode===!0&&(o=!0),t.identifierPrefix!==void 0&&(l=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(u=t.onCaughtError),t.onRecoverableError!==void 0&&(i=t.onRecoverableError),t.unstable_transitionCallbacks!==void 0&&(n=t.unstable_transitionCallbacks),t.formState!==void 0&&(d=t.formState)),a=Ey(e,1,!0,a,t!=null?t:null,o,l,r,u,i,n,d),a.context=By(null),t=a.current,o=Qe(),o=xf(o),l=mt(o),l.callback=null,pt(t,l,o),t=o,a.current.lanes=t,ur(a,t),Da(a),e[al]=a.current,tc(e),new Kn(a)};Zn.version="19.1.1"});var Wy=ya((DA,Gy)=>{"use strict";function _y(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__=="undefined"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(_y)}catch(e){console.error(e)}}_y(),Gy.exports=zy()});var lx=ya(as=>{"use strict";var FI=Symbol.for("react.transitional.element"),EI=Symbol.for("react.fragment");function ox(e,a,t){var o=null;if(t!==void 0&&(o=""+t),a.key!==void 0&&(o=""+a.key),"key"in a){t={};for(var l in a)l!=="key"&&(t[l]=a[l])}else t=a;return a=t.ref,{$$typeof:FI,type:e,key:o,ref:a!==void 0?a:null,props:t}}as.Fragment=EI;as.jsx=ox;as.jsxs=ox});var ce=ya((ak,rx)=>{"use strict";rx.exports=lx()});var BI={};Fx(BI,{default:()=>Is});module.exports=Ex(BI);var Tx=require("obsidian");var br=class{constructor(a){this.plugin=a}async getSettings(a){let t=await this.plugin.loadData();return{...a,...t}}async storeSettings(a){await this.plugin.saveData(a)}};var Dr={displayDateTemplate:"HH:mm",useCreatedOnDateFromProperties:!1,createdOnDatePropertyName:"created_on",createdOnPropertyFormat:"yyyy/MM/dd HH:mm",sortNotes:"ascending"};var Tr={displayNotesCreatedOnDate:!1,displayNoteIndicator:!0,useModifierKeyToCreateNote:!1,firstDayOfWeek:1,weekNumberStandard:0};var Jt={nameTemplate:"yyyy-MM-dd",folder:"Daily notes",templateFile:"Templates/Daily note"},$t={nameTemplate:"yyyy-ww",folder:"Weekly notes",templateFile:"Templates/Weekly note"},eo={nameTemplate:"yyyy-MM",folder:"Monthly notes",templateFile:"Templates/Monthly note"},ao={nameTemplate:"yyyy-qqq",folder:"Quarterly notes",templateFile:"Templates/Quarterly note"},to={nameTemplate:"yyyy",folder:"Yearly notes",templateFile:"Templates/Yearly note"};var z={generalSettings:Tr,notesSettings:Dr,dailyNotes:Jt,weeklyNotes:$t,monthlyNotes:eo,quarterlyNotes:ao,yearlyNotes:to};var Pr=class{constructor(a){this.adapter=a}async store(a){let o={...await this.adapter.getSettings(z),dailyNotes:a};await this.adapter.storeSettings(o)}async get(){let a=await this.adapter.getSettings(z);return{...Jt,...a.dailyNotes}}};var Nr=class{constructor(a){this.adapter=a}async store(a){await this.adapter.storeSettings(a)}async get(){return await this.adapter.getSettings(z)}};var Ar=class{constructor(a){this.adapter=a}async store(a){let o={...await this.adapter.getSettings(z),generalSettings:a};await this.adapter.storeSettings(o)}async get(){let a=await this.adapter.getSettings(z);return{...Tr,...a.generalSettings}}};var kr=class{constructor(a){this.adapter=a}async store(a){let o={...await this.adapter.getSettings(z),weeklyNotes:a};await this.adapter.storeSettings(o)}async get(){let a=await this.adapter.getSettings(z);return{...$t,...a.weeklyNotes}}};var Rr=class{constructor(a){this.adapter=a}async store(a){let o={...await this.adapter.getSettings(z),monthlyNotes:a};await this.adapter.storeSettings(o)}async get(){let a=await this.adapter.getSettings(z);return{...eo,...a.monthlyNotes}}};var Or=class{constructor(a){this.adapter=a}async store(a){let o={...await this.adapter.getSettings(z),quarterlyNotes:a};await this.adapter.storeSettings(o)}async get(){let a=await this.adapter.getSettings(z);return{...ao,...a.quarterlyNotes}}};var Fr=class{constructor(a){this.adapter=a}async store(a){let o={...await this.adapter.getSettings(z),yearlyNotes:a};await this.adapter.storeSettings(o)}async get(){let a=await this.adapter.getSettings(z);return{...to,...a.yearlyNotes}}};var Er=class{constructor(a){this.adapter=a}async store(a){let o={...await this.adapter.getSettings(z),notesSettings:a};await this.adapter.storeSettings(o)}async get(){let a=await this.adapter.getSettings(z);return{...Dr,...a.notesSettings}}};var Br=class{constructor(a){this.adapter=a}getRepository(a){switch(a){case"plugin":return new Nr(this.adapter);case"displayNotes":return new Er(this.adapter);case"general":return new Ar(this.adapter);case"dailyNote":return new Pr(this.adapter);case"weeklyNote":return new kr(this.adapter);case"monthlyNote":return new Rr(this.adapter);case"quarterlyNote":return new Or(this.adapter);case"yearlyNote":return new Fr(this.adapter)}}};String.prototype.appendMarkdownExtension=function(){return this.endsWith(".md")?this:this+".md"};String.prototype.removeMarkdownExtension=function(){return this.endsWith(".md")?this.replace(".md",""):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 a=new Date(this);switch(e.operator){case"+":switch(e.unit){case"d":a.setDate(a.getDate()+e.value);break;case"w":a.setDate(a.getDate()+e.value*7);break;case"m":a.setMonth(a.getMonth()+e.value);break;case"y":a.setFullYear(a.getFullYear()+e.value);break}break;case"-":switch(e.unit){case"d":a.setDate(a.getDate()-e.value);break;case"w":a.setDate(a.getDate()-e.value*7);break;case"m":a.setMonth(a.getMonth()-e.value);break;case"y":a.setFullYear(a.getFullYear()-e.value);break}break}return a};var Hr=class{constructor(a){this.dateParser=a.getParser()}withPath(a){return this.pathTemplate=a,this}withName(a){return this.nameTemplate=a,this}withValue(a){return this.period=a,this}build(){var o;if(this.period){if(!this.nameTemplate)throw Error("Could not create the note name: Name template is required!")}else throw Error("Could not create the note name: Period is required!");let a=this.dateParser.fromDate(this.period.date,(o=this.pathTemplate)!=null?o:""),t=this.dateParser.fromDate(this.period.date,this.nameTemplate).appendMarkdownExtension();return a.length===0?t:[a,t].join("/")}};var qr=class{constructor(a){this.dateParserFactory=a}getNameBuilder(a){switch(a){case"periodicNote":return new Hr(this.dateParserFactory)}}};var Vr=class Vr{parseVariables(a,t){return a.replace(Vr.variablePattern,t)}};Vr.variablePattern=/{{title}}/g;var Ur=Vr;var _r=class _r{constructor(a,t){this.variableFactory=a;this.dateParserFactory=t}parseVariables(a,t){let o=this.dateParserFactory.getParser();return a.replace(_r.variablePattern,(l,r)=>{let u=this.variableFactory.getVariable(l);return o.fromDate(t.date.calculate(u.calculus),u.template)})}};_r.variablePattern=/{{date.*?}}/g;var zr=_r;var Wr=class Wr{constructor(a,t){this.variableFactory=a;this.dateParserFactory=t}parseVariables(a,t){let o=this.dateParserFactory.getParser();return a.replace(Wr.variablePattern,(l,r)=>{let u=this.variableFactory.getVariable(l);return o.fromDate(t.calculate(u.calculus),u.template)})}};Wr.variablePattern=/{{today.*?}}/g;var Gr=Wr;var Yr=class{constructor(a,t){this.variableFactory=a;this.dateParserFactory=t}getVariableParser(a){switch(a){case 2:return new Ur;case 0:return new zr(this.variableFactory,this.dateParserFactory);case 1:return new Gr(this.variableFactory,this.dateParserFactory)}}};var Ux=Math.pow(10,8)*24*60*60*1e3,sw=-Ux,Xr=6048e5,Ic=864e5,vc=6e4,wc=36e5,Mc=1e3;var Vx=3600;var bc=Vx*24,dw=bc*7,zx=bc*365.2425,_x=zx/12,fw=_x*3,ws=Symbol.for("constructDateFrom");function O(e,a){return typeof e=="function"?e(a):e&&typeof e=="object"&&ws in e?e[ws](a):e instanceof Date?new e.constructor(a):new Date(a)}function b(e,a){return O(a||e,e)}function oo(e,a,t){let o=b(e,t==null?void 0:t.in);return isNaN(a)?O((t==null?void 0:t.in)||e,NaN):(a&&o.setDate(o.getDate()+a),o)}function Qr(e,a,t){let o=b(e,t==null?void 0:t.in);if(isNaN(a))return O((t==null?void 0:t.in)||e,NaN);if(!a)return o;let l=o.getDate(),r=O((t==null?void 0:t.in)||e,o.getTime());r.setMonth(o.getMonth()+a+1,0);let u=r.getDate();return l>=u?r:(o.setFullYear(r.getFullYear(),r.getMonth(),l),o)}var Gx={};function Ee(){return Gx}function we(e,a){var i,n,d,g,h,f,m,L;let t=Ee(),o=(L=(m=(g=(d=a==null?void 0:a.weekStartsOn)!=null?d:(n=(i=a==null?void 0:a.locale)==null?void 0:i.options)==null?void 0:n.weekStartsOn)!=null?g:t.weekStartsOn)!=null?m:(f=(h=t.locale)==null?void 0:h.options)==null?void 0:f.weekStartsOn)!=null?L:0,l=b(e,a==null?void 0:a.in),r=l.getDay(),u=(r<o?7:0)+r-o;return l.setDate(l.getDate()-u),l.setHours(0,0,0,0),l}function ca(e,a){return we(e,{...a,weekStartsOn:1})}function Kr(e,a){let t=b(e,a==null?void 0:a.in),o=t.getFullYear(),l=O(t,0);l.setFullYear(o+1,0,4),l.setHours(0,0,0,0);let r=ca(l),u=O(t,0);u.setFullYear(o,0,4),u.setHours(0,0,0,0);let i=ca(u);return t.getTime()>=r.getTime()?o+1:t.getTime()>=i.getTime()?o:o-1}function Tt(e){let a=b(e),t=new Date(Date.UTC(a.getFullYear(),a.getMonth(),a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds(),a.getMilliseconds()));return t.setUTCFullYear(a.getFullYear()),+e-+t}function Zr(e,...a){let t=O.bind(null,e||a.find(o=>typeof o=="object"));return a.map(t)}function Ms(e,a){let t=b(e,a==null?void 0:a.in);return t.setHours(0,0,0,0),t}function Dc(e,a,t){let[o,l]=Zr(t==null?void 0:t.in,e,a),r=Ms(o),u=Ms(l),i=+r-Tt(r),n=+u-Tt(u);return Math.round((i-n)/Ic)}function Tc(e,a){let t=Kr(e,a),o=O((a==null?void 0:a.in)||e,0);return o.setFullYear(t,0,4),o.setHours(0,0,0,0),ca(o)}function jr(e,a,t){return oo(e,a*7,t)}function Pc(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Nc(e){return!(!Pc(e)&&typeof e!="number"||isNaN(+b(e)))}function Ac(e,a){let t=b(e,a==null?void 0:a.in);return Math.trunc(t.getMonth()/3)+1}function kc(e,a){let[t,o]=Zr(e,a.start,a.end);return{start:t,end:o}}function Rc(e,a){var d;let{start:t,end:o}=kc(a==null?void 0:a.in,e),l=+t>+o,r=l?+t:+o,u=l?o:t;u.setHours(0,0,0,0);let i=(d=a==null?void 0:a.step)!=null?d:1;if(!i)return[];i<0&&(i=-i,l=!l);let n=[];for(;+u<=r;)n.push(O(t,u)),u.setDate(u.getDate()+i),u.setHours(0,0,0,0);return l?n.reverse():n}function Oc(e,a){let t=b(e,a==null?void 0:a.in),o=t.getMonth(),l=o-o%3;return t.setMonth(l,1),t.setHours(0,0,0,0),t}function bs(e,a){let t=b(e,a==null?void 0:a.in);return t.setDate(1),t.setHours(0,0,0,0),t}function Fc(e,a){let t=b(e,a==null?void 0:a.in);return t.setFullYear(t.getFullYear(),0,1),t.setHours(0,0,0,0),t}function Ec(e,a){var i,n,d,g,h,f,m,L;let t=Ee(),o=(L=(m=(g=(d=a==null?void 0:a.weekStartsOn)!=null?d:(n=(i=a==null?void 0:a.locale)==null?void 0:i.options)==null?void 0:n.weekStartsOn)!=null?g:t.weekStartsOn)!=null?m:(f=(h=t.locale)==null?void 0:h.options)==null?void 0:f.weekStartsOn)!=null?L:0,l=b(e,a==null?void 0:a.in),r=l.getDay(),u=(r<o?-7:0)+6-(r-o);return l.setDate(l.getDate()+u),l.setHours(23,59,59,999),l}var Wx={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"}},Bc=(e,a,t)=>{let o,l=Wx[e];return typeof l=="string"?o=l:a===1?o=l.one:o=l.other.replace("{{count}}",a.toString()),t!=null&&t.addSuffix?t.comparison&&t.comparison>0?"in "+o:o+" ago":o};function Jr(e){return(a={})=>{let t=a.width?String(a.width):e.defaultWidth;return e.formats[t]||e.formats[e.defaultWidth]}}var Yx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Xx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Qx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Hc={date:Jr({formats:Yx,defaultWidth:"full"}),time:Jr({formats:Xx,defaultWidth:"full"}),dateTime:Jr({formats:Qx,defaultWidth:"full"})};var Kx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},qc=(e,a,t,o)=>Kx[e];function lo(e){return(a,t)=>{let o=t!=null&&t.context?String(t.context):"standalone",l;if(o==="formatting"&&e.formattingValues){let u=e.defaultFormattingWidth||e.defaultWidth,i=t!=null&&t.width?String(t.width):u;l=e.formattingValues[i]||e.formattingValues[u]}else{let u=e.defaultWidth,i=t!=null&&t.width?String(t.width):e.defaultWidth;l=e.values[i]||e.values[u]}let r=e.argumentCallback?e.argumentCallback(a):a;return l[r]}}var Zx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},jx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Jx={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"]},$x={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"]},eS={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"}},aS={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"}},tS=(e,a)=>{let t=Number(e),o=t%100;if(o>20||o<10)switch(o%10){case 1:return t+"st";case 2:return t+"nd";case 3:return t+"rd"}return t+"th"},Uc={ordinalNumber:tS,era:lo({values:Zx,defaultWidth:"wide"}),quarter:lo({values:jx,defaultWidth:"wide",argumentCallback:e=>e-1}),month:lo({values:Jx,defaultWidth:"wide"}),day:lo({values:$x,defaultWidth:"wide"}),dayPeriod:lo({values:eS,defaultWidth:"wide",formattingValues:aS,defaultFormattingWidth:"wide"})};function ro(e){return(a,t={})=>{let o=t.width,l=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],r=a.match(l);if(!r)return null;let u=r[0],i=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],n=Array.isArray(i)?lS(i,h=>h.test(u)):oS(i,h=>h.test(u)),d;d=e.valueCallback?e.valueCallback(n):n,d=t.valueCallback?t.valueCallback(d):d;let g=a.slice(u.length);return{value:d,rest:g}}}function oS(e,a){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&a(e[t]))return t}function lS(e,a){for(let t=0;t<e.length;t++)if(a(e[t]))return t}function Vc(e){return(a,t={})=>{let o=a.match(e.matchPattern);if(!o)return null;let l=o[0],r=a.match(e.parsePattern);if(!r)return null;let u=e.valueCallback?e.valueCallback(r[0]):r[0];u=t.valueCallback?t.valueCallback(u):u;let i=a.slice(l.length);return{value:u,rest:i}}}var rS=/^(\d+)(th|st|nd|rd)?/i,uS=/\d+/i,iS={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},nS={any:[/^b/i,/^(a|c)/i]},sS={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},dS={any:[/1/i,/2/i,/3/i,/4/i]},fS={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},cS={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]},mS={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},pS={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]},gS={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},hS={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}},zc={ordinalNumber:Vc({matchPattern:rS,parsePattern:uS,valueCallback:e=>parseInt(e,10)}),era:ro({matchPatterns:iS,defaultMatchWidth:"wide",parsePatterns:nS,defaultParseWidth:"any"}),quarter:ro({matchPatterns:sS,defaultMatchWidth:"wide",parsePatterns:dS,defaultParseWidth:"any",valueCallback:e=>e+1}),month:ro({matchPatterns:fS,defaultMatchWidth:"wide",parsePatterns:cS,defaultParseWidth:"any"}),day:ro({matchPatterns:mS,defaultMatchWidth:"wide",parsePatterns:pS,defaultParseWidth:"any"}),dayPeriod:ro({matchPatterns:gS,defaultMatchWidth:"any",parsePatterns:hS,defaultParseWidth:"any"})};var sl={code:"en-US",formatDistance:Bc,formatLong:Hc,formatRelative:qc,localize:Uc,match:zc,options:{weekStartsOn:0,firstWeekContainsDate:1}};function _c(e,a){let t=b(e,a==null?void 0:a.in);return Dc(t,Fc(t))+1}function uo(e,a){let t=b(e,a==null?void 0:a.in),o=+ca(t)-+Tc(t);return Math.round(o/Xr)+1}function io(e,a){var g,h,f,m,L,I,T,c;let t=b(e,a==null?void 0:a.in),o=t.getFullYear(),l=Ee(),r=(c=(T=(m=(f=a==null?void 0:a.firstWeekContainsDate)!=null?f:(h=(g=a==null?void 0:a.locale)==null?void 0:g.options)==null?void 0:h.firstWeekContainsDate)!=null?m:l.firstWeekContainsDate)!=null?T:(I=(L=l.locale)==null?void 0:L.options)==null?void 0:I.firstWeekContainsDate)!=null?c:1,u=O((a==null?void 0:a.in)||e,0);u.setFullYear(o+1,0,r),u.setHours(0,0,0,0);let i=we(u,a),n=O((a==null?void 0:a.in)||e,0);n.setFullYear(o,0,r),n.setHours(0,0,0,0);let d=we(n,a);return+t>=+i?o+1:+t>=+d?o:o-1}function Gc(e,a){var i,n,d,g,h,f,m,L;let t=Ee(),o=(L=(m=(g=(d=a==null?void 0:a.firstWeekContainsDate)!=null?d:(n=(i=a==null?void 0:a.locale)==null?void 0:i.options)==null?void 0:n.firstWeekContainsDate)!=null?g:t.firstWeekContainsDate)!=null?m:(f=(h=t.locale)==null?void 0:h.options)==null?void 0:f.firstWeekContainsDate)!=null?L:1,l=io(e,a),r=O((a==null?void 0:a.in)||e,0);return r.setFullYear(l,0,o),r.setHours(0,0,0,0),we(r,a)}function no(e,a){let t=b(e,a==null?void 0:a.in),o=+we(t,a)-+Gc(t,a);return Math.round(o/Xr)+1}function _(e,a){let t=e<0?"-":"",o=Math.abs(e).toString().padStart(a,"0");return t+o}var Aa={y(e,a){let t=e.getFullYear(),o=t>0?t:1-t;return _(a==="yy"?o%100:o,a.length)},M(e,a){let t=e.getMonth();return a==="M"?String(t+1):_(t+1,2)},d(e,a){return _(e.getDate(),a.length)},a(e,a){let t=e.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return t.toUpperCase();case"aaa":return t;case"aaaaa":return t[0];case"aaaa":default:return t==="am"?"a.m.":"p.m."}},h(e,a){return _(e.getHours()%12||12,a.length)},H(e,a){return _(e.getHours(),a.length)},m(e,a){return _(e.getMinutes(),a.length)},s(e,a){return _(e.getSeconds(),a.length)},S(e,a){let t=a.length,o=e.getMilliseconds(),l=Math.trunc(o*Math.pow(10,t-3));return _(l,a.length)}};var so={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Ds={G:function(e,a,t){let o=e.getFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return t.era(o,{width:"abbreviated"});case"GGGGG":return t.era(o,{width:"narrow"});case"GGGG":default:return t.era(o,{width:"wide"})}},y:function(e,a,t){if(a==="yo"){let o=e.getFullYear(),l=o>0?o:1-o;return t.ordinalNumber(l,{unit:"year"})}return Aa.y(e,a)},Y:function(e,a,t,o){let l=io(e,o),r=l>0?l:1-l;if(a==="YY"){let u=r%100;return _(u,2)}return a==="Yo"?t.ordinalNumber(r,{unit:"year"}):_(r,a.length)},R:function(e,a){let t=Kr(e);return _(t,a.length)},u:function(e,a){let t=e.getFullYear();return _(t,a.length)},Q:function(e,a,t){let o=Math.ceil((e.getMonth()+1)/3);switch(a){case"Q":return String(o);case"QQ":return _(o,2);case"Qo":return t.ordinalNumber(o,{unit:"quarter"});case"QQQ":return t.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return t.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return t.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,a,t){let o=Math.ceil((e.getMonth()+1)/3);switch(a){case"q":return String(o);case"qq":return _(o,2);case"qo":return t.ordinalNumber(o,{unit:"quarter"});case"qqq":return t.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return t.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return t.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,a,t){let o=e.getMonth();switch(a){case"M":case"MM":return Aa.M(e,a);case"Mo":return t.ordinalNumber(o+1,{unit:"month"});case"MMM":return t.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return t.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return t.month(o,{width:"wide",context:"formatting"})}},L:function(e,a,t){let o=e.getMonth();switch(a){case"L":return String(o+1);case"LL":return _(o+1,2);case"Lo":return t.ordinalNumber(o+1,{unit:"month"});case"LLL":return t.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return t.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return t.month(o,{width:"wide",context:"standalone"})}},w:function(e,a,t,o){let l=no(e,o);return a==="wo"?t.ordinalNumber(l,{unit:"week"}):_(l,a.length)},I:function(e,a,t){let o=uo(e);return a==="Io"?t.ordinalNumber(o,{unit:"week"}):_(o,a.length)},d:function(e,a,t){return a==="do"?t.ordinalNumber(e.getDate(),{unit:"date"}):Aa.d(e,a)},D:function(e,a,t){let o=_c(e);return a==="Do"?t.ordinalNumber(o,{unit:"dayOfYear"}):_(o,a.length)},E:function(e,a,t){let o=e.getDay();switch(a){case"E":case"EE":case"EEE":return t.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return t.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return t.day(o,{width:"short",context:"formatting"});case"EEEE":default:return t.day(o,{width:"wide",context:"formatting"})}},e:function(e,a,t,o){let l=e.getDay(),r=(l-o.weekStartsOn+8)%7||7;switch(a){case"e":return String(r);case"ee":return _(r,2);case"eo":return t.ordinalNumber(r,{unit:"day"});case"eee":return t.day(l,{width:"abbreviated",context:"formatting"});case"eeeee":return t.day(l,{width:"narrow",context:"formatting"});case"eeeeee":return t.day(l,{width:"short",context:"formatting"});case"eeee":default:return t.day(l,{width:"wide",context:"formatting"})}},c:function(e,a,t,o){let l=e.getDay(),r=(l-o.weekStartsOn+8)%7||7;switch(a){case"c":return String(r);case"cc":return _(r,a.length);case"co":return t.ordinalNumber(r,{unit:"day"});case"ccc":return t.day(l,{width:"abbreviated",context:"standalone"});case"ccccc":return t.day(l,{width:"narrow",context:"standalone"});case"cccccc":return t.day(l,{width:"short",context:"standalone"});case"cccc":default:return t.day(l,{width:"wide",context:"standalone"})}},i:function(e,a,t){let o=e.getDay(),l=o===0?7:o;switch(a){case"i":return String(l);case"ii":return _(l,a.length);case"io":return t.ordinalNumber(l,{unit:"day"});case"iii":return t.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return t.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return t.day(o,{width:"short",context:"formatting"});case"iiii":default:return t.day(o,{width:"wide",context:"formatting"})}},a:function(e,a,t){let l=e.getHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return t.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"aaa":return t.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return t.dayPeriod(l,{width:"narrow",context:"formatting"});case"aaaa":default:return t.dayPeriod(l,{width:"wide",context:"formatting"})}},b:function(e,a,t){let o=e.getHours(),l;switch(o===12?l=so.noon:o===0?l=so.midnight:l=o/12>=1?"pm":"am",a){case"b":case"bb":return t.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"bbb":return t.dayPeriod(l,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return t.dayPeriod(l,{width:"narrow",context:"formatting"});case"bbbb":default:return t.dayPeriod(l,{width:"wide",context:"formatting"})}},B:function(e,a,t){let o=e.getHours(),l;switch(o>=17?l=so.evening:o>=12?l=so.afternoon:o>=4?l=so.morning:l=so.night,a){case"B":case"BB":case"BBB":return t.dayPeriod(l,{width:"abbreviated",context:"formatting"});case"BBBBB":return t.dayPeriod(l,{width:"narrow",context:"formatting"});case"BBBB":default:return t.dayPeriod(l,{width:"wide",context:"formatting"})}},h:function(e,a,t){if(a==="ho"){let o=e.getHours()%12;return o===0&&(o=12),t.ordinalNumber(o,{unit:"hour"})}return Aa.h(e,a)},H:function(e,a,t){return a==="Ho"?t.ordinalNumber(e.getHours(),{unit:"hour"}):Aa.H(e,a)},K:function(e,a,t){let o=e.getHours()%12;return a==="Ko"?t.ordinalNumber(o,{unit:"hour"}):_(o,a.length)},k:function(e,a,t){let o=e.getHours();return o===0&&(o=24),a==="ko"?t.ordinalNumber(o,{unit:"hour"}):_(o,a.length)},m:function(e,a,t){return a==="mo"?t.ordinalNumber(e.getMinutes(),{unit:"minute"}):Aa.m(e,a)},s:function(e,a,t){return a==="so"?t.ordinalNumber(e.getSeconds(),{unit:"second"}):Aa.s(e,a)},S:function(e,a){return Aa.S(e,a)},X:function(e,a,t){let o=e.getTimezoneOffset();if(o===0)return"Z";switch(a){case"X":return Yc(o);case"XXXX":case"XX":return Pt(o);case"XXXXX":case"XXX":default:return Pt(o,":")}},x:function(e,a,t){let o=e.getTimezoneOffset();switch(a){case"x":return Yc(o);case"xxxx":case"xx":return Pt(o);case"xxxxx":case"xxx":default:return Pt(o,":")}},O:function(e,a,t){let o=e.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+Wc(o,":");case"OOOO":default:return"GMT"+Pt(o,":")}},z:function(e,a,t){let o=e.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+Wc(o,":");case"zzzz":default:return"GMT"+Pt(o,":")}},t:function(e,a,t){let o=Math.trunc(+e/1e3);return _(o,a.length)},T:function(e,a,t){return _(+e,a.length)}};function Wc(e,a=""){let t=e>0?"-":"+",o=Math.abs(e),l=Math.trunc(o/60),r=o%60;return r===0?t+String(l):t+String(l)+a+_(r,2)}function Yc(e,a){return e%60===0?(e>0?"-":"+")+_(Math.abs(e)/60,2):Pt(e,a)}function Pt(e,a=""){let t=e>0?"-":"+",o=Math.abs(e),l=_(Math.trunc(o/60),2),r=_(o%60,2);return t+l+a+r}var Xc=(e,a)=>{switch(e){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},Qc=(e,a)=>{switch(e){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},yS=(e,a)=>{let t=e.match(/(P+)(p+)?/)||[],o=t[1],l=t[2];if(!l)return Xc(e,a);let r;switch(o){case"P":r=a.dateTime({width:"short"});break;case"PP":r=a.dateTime({width:"medium"});break;case"PPP":r=a.dateTime({width:"long"});break;case"PPPP":default:r=a.dateTime({width:"full"});break}return r.replace("{{date}}",Xc(o,a)).replace("{{time}}",Qc(l,a))},dl={p:Qc,P:yS};var xS=/^D+$/,SS=/^Y+$/,LS=["D","DD","YY","YYYY"];function $r(e){return xS.test(e)}function eu(e){return SS.test(e)}function fl(e,a,t){let o=CS(e,a,t);if(console.warn(o),LS.includes(e))throw new RangeError(o)}function CS(e,a,t){let o=e[0]==="Y"?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${a}\`) for formatting ${o} to the input \`${t}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var IS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,vS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,wS=/^'([^]*?)'?$/,MS=/''/g,bS=/[a-zA-Z]/;function Kc(e,a,t){var g,h,f,m,L,I,T,c,s,p,y,C,P,v,M,$,A,Te;let o=Ee(),l=(h=(g=t==null?void 0:t.locale)!=null?g:o.locale)!=null?h:sl,r=(p=(s=(I=(L=t==null?void 0:t.firstWeekContainsDate)!=null?L:(m=(f=t==null?void 0:t.locale)==null?void 0:f.options)==null?void 0:m.firstWeekContainsDate)!=null?I:o.firstWeekContainsDate)!=null?s:(c=(T=o.locale)==null?void 0:T.options)==null?void 0:c.firstWeekContainsDate)!=null?p:1,u=(Te=(A=(v=(P=t==null?void 0:t.weekStartsOn)!=null?P:(C=(y=t==null?void 0:t.locale)==null?void 0:y.options)==null?void 0:C.weekStartsOn)!=null?v:o.weekStartsOn)!=null?A:($=(M=o.locale)==null?void 0:M.options)==null?void 0:$.weekStartsOn)!=null?Te:0,i=b(e,t==null?void 0:t.in);if(!Nc(i))throw new RangeError("Invalid time value");let n=a.match(vS).map(xe=>{let ve=xe[0];if(ve==="p"||ve==="P"){let jt=dl[ve];return jt(xe,l.formatLong)}return xe}).join("").match(IS).map(xe=>{if(xe==="''")return{isToken:!1,value:"'"};let ve=xe[0];if(ve==="'")return{isToken:!1,value:DS(xe)};if(Ds[ve])return{isToken:!0,value:xe};if(ve.match(bS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ve+"`");return{isToken:!1,value:xe}});l.localize.preprocessor&&(n=l.localize.preprocessor(i,n));let d={firstWeekContainsDate:r,weekStartsOn:u,locale:l};return n.map(xe=>{if(!xe.isToken)return xe.value;let ve=xe.value;(!(t!=null&&t.useAdditionalWeekYearTokens)&&eu(ve)||!(t!=null&&t.useAdditionalDayOfYearTokens)&&$r(ve))&&fl(ve,a,String(e));let jt=Ds[ve[0]];return jt(i,ve,l.localize,d)}).join("")}function DS(e){let a=e.match(wS);return a?a[1].replace(MS,"'"):e}function Zc(){return Object.assign({},Ee())}function jc(e,a){let t=b(e,a==null?void 0:a.in).getDay();return t===0?7:t}function Jc(e,a){let t=TS(a)?new a(0):O(a,0);return t.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),t.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),t}function TS(e){var a;return typeof e=="function"&&((a=e.prototype)==null?void 0:a.constructor)===e}var PS=10,au=class{constructor(){S(this,"subPriority",0)}validate(a,t){return!0}},tu=class extends au{constructor(a,t,o,l,r){super(),this.value=a,this.validateValue=t,this.setValue=o,this.priority=l,r&&(this.subPriority=r)}validate(a,t){return this.validateValue(a,this.value,t)}set(a,t,o){return this.setValue(a,t,this.value,o)}},ou=class extends au{constructor(t,o){super();S(this,"priority",PS);S(this,"subPriority",-1);this.context=t||(l=>O(o,l))}set(t,o){return o.timestampIsSet?t:O(t,Jc(t,this.context))}};var w=class{run(a,t,o,l){let r=this.parse(a,t,o,l);return r?{setter:new tu(r.value,this.validate,this.set,this.priority,this.subPriority),rest:r.rest}:null}validate(a,t,o){return!0}};var lu=class extends w{constructor(){super(...arguments);S(this,"priority",140);S(this,"incompatibleTokens",["R","u","t","T"])}parse(t,o,l){switch(o){case"G":case"GG":case"GGG":return l.era(t,{width:"abbreviated"})||l.era(t,{width:"narrow"});case"GGGGG":return l.era(t,{width:"narrow"});case"GGGG":default:return l.era(t,{width:"wide"})||l.era(t,{width:"abbreviated"})||l.era(t,{width:"narrow"})}}set(t,o,l){return o.era=l,t.setFullYear(l,0,1),t.setHours(0,0,0,0),t}};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}/},Je={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 Y(e,a){return e&&{value:a(e.value),rest:e.rest}}function B(e,a){let t=a.match(e);return t?{value:parseInt(t[0],10),rest:a.slice(t[0].length)}:null}function $e(e,a){let t=a.match(e);if(!t)return null;if(t[0]==="Z")return{value:0,rest:a.slice(1)};let o=t[1]==="+"?1:-1,l=t[2]?parseInt(t[2],10):0,r=t[3]?parseInt(t[3],10):0,u=t[5]?parseInt(t[5],10):0;return{value:o*(l*wc+r*vc+u*Mc),rest:a.slice(t[0].length)}}function ru(e){return B(H.anyDigitsSigned,e)}function N(e,a){switch(e){case 1:return B(H.singleDigit,a);case 2:return B(H.twoDigits,a);case 3:return B(H.threeDigits,a);case 4:return B(H.fourDigits,a);default:return B(new RegExp("^\\d{1,"+e+"}"),a)}}function fo(e,a){switch(e){case 1:return B(H.singleDigitSigned,a);case 2:return B(H.twoDigitsSigned,a);case 3:return B(H.threeDigitsSigned,a);case 4:return B(H.fourDigitsSigned,a);default:return B(new RegExp("^-?\\d{1,"+e+"}"),a)}}function co(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 uu(e,a){let t=a>0,o=t?a:1-a,l;if(o<=50)l=e||100;else{let r=o+50,u=Math.trunc(r/100)*100,i=e>=r%100;l=e+u-(i?100:0)}return t?l:1-l}function iu(e){return e%400===0||e%4===0&&e%100!==0}var nu=class extends w{constructor(){super(...arguments);S(this,"priority",130);S(this,"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"])}parse(t,o,l){let r=u=>({year:u,isTwoDigitYear:o==="yy"});switch(o){case"y":return Y(N(4,t),r);case"yo":return Y(l.ordinalNumber(t,{unit:"year"}),r);default:return Y(N(o.length,t),r)}}validate(t,o){return o.isTwoDigitYear||o.year>0}set(t,o,l){let r=t.getFullYear();if(l.isTwoDigitYear){let i=uu(l.year,r);return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}let u=!("era"in o)||o.era===1?l.year:1-l.year;return t.setFullYear(u,0,1),t.setHours(0,0,0,0),t}};var su=class extends w{constructor(){super(...arguments);S(this,"priority",130);S(this,"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"])}parse(t,o,l){let r=u=>({year:u,isTwoDigitYear:o==="YY"});switch(o){case"Y":return Y(N(4,t),r);case"Yo":return Y(l.ordinalNumber(t,{unit:"year"}),r);default:return Y(N(o.length,t),r)}}validate(t,o){return o.isTwoDigitYear||o.year>0}set(t,o,l,r){let u=io(t,r);if(l.isTwoDigitYear){let n=uu(l.year,u);return t.setFullYear(n,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),we(t,r)}let i=!("era"in o)||o.era===1?l.year:1-l.year;return t.setFullYear(i,0,r.firstWeekContainsDate),t.setHours(0,0,0,0),we(t,r)}};var du=class extends w{constructor(){super(...arguments);S(this,"priority",130);S(this,"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"])}parse(t,o){return o==="R"?fo(4,t):fo(o.length,t)}set(t,o,l){let r=O(t,0);return r.setFullYear(l,0,4),r.setHours(0,0,0,0),ca(r)}};var fu=class extends w{constructor(){super(...arguments);S(this,"priority",130);S(this,"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"])}parse(t,o){return o==="u"?fo(4,t):fo(o.length,t)}set(t,o,l){return t.setFullYear(l,0,1),t.setHours(0,0,0,0),t}};var cu=class extends w{constructor(){super(...arguments);S(this,"priority",120);S(this,"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,o,l){switch(o){case"Q":case"QQ":return N(o.length,t);case"Qo":return l.ordinalNumber(t,{unit:"quarter"});case"QQQ":return l.quarter(t,{width:"abbreviated",context:"formatting"})||l.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return l.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return l.quarter(t,{width:"wide",context:"formatting"})||l.quarter(t,{width:"abbreviated",context:"formatting"})||l.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=1&&o<=4}set(t,o,l){return t.setMonth((l-1)*3,1),t.setHours(0,0,0,0),t}};var mu=class extends w{constructor(){super(...arguments);S(this,"priority",120);S(this,"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"])}parse(t,o,l){switch(o){case"q":case"qq":return N(o.length,t);case"qo":return l.ordinalNumber(t,{unit:"quarter"});case"qqq":return l.quarter(t,{width:"abbreviated",context:"standalone"})||l.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return l.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return l.quarter(t,{width:"wide",context:"standalone"})||l.quarter(t,{width:"abbreviated",context:"standalone"})||l.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,o){return o>=1&&o<=4}set(t,o,l){return t.setMonth((l-1)*3,1),t.setHours(0,0,0,0),t}};var pu=class extends w{constructor(){super(...arguments);S(this,"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]);S(this,"priority",110)}parse(t,o,l){let r=u=>u-1;switch(o){case"M":return Y(B(H.month,t),r);case"MM":return Y(N(2,t),r);case"Mo":return Y(l.ordinalNumber(t,{unit:"month"}),r);case"MMM":return l.month(t,{width:"abbreviated",context:"formatting"})||l.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return l.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return l.month(t,{width:"wide",context:"formatting"})||l.month(t,{width:"abbreviated",context:"formatting"})||l.month(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=0&&o<=11}set(t,o,l){return t.setMonth(l,1),t.setHours(0,0,0,0),t}};var gu=class extends w{constructor(){super(...arguments);S(this,"priority",110);S(this,"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"])}parse(t,o,l){let r=u=>u-1;switch(o){case"L":return Y(B(H.month,t),r);case"LL":return Y(N(2,t),r);case"Lo":return Y(l.ordinalNumber(t,{unit:"month"}),r);case"LLL":return l.month(t,{width:"abbreviated",context:"standalone"})||l.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return l.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return l.month(t,{width:"wide",context:"standalone"})||l.month(t,{width:"abbreviated",context:"standalone"})||l.month(t,{width:"narrow",context:"standalone"})}}validate(t,o){return o>=0&&o<=11}set(t,o,l){return t.setMonth(l,1),t.setHours(0,0,0,0),t}};function $c(e,a,t){let o=b(e,t==null?void 0:t.in),l=no(o,t)-a;return o.setDate(o.getDate()-l*7),b(o,t==null?void 0:t.in)}var hu=class extends w{constructor(){super(...arguments);S(this,"priority",100);S(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"])}parse(t,o,l){switch(o){case"w":return B(H.week,t);case"wo":return l.ordinalNumber(t,{unit:"week"});default:return N(o.length,t)}}validate(t,o){return o>=1&&o<=53}set(t,o,l,r){return we($c(t,l,r),r)}};function em(e,a,t){let o=b(e,t==null?void 0:t.in),l=uo(o,t)-a;return o.setDate(o.getDate()-l*7),o}var yu=class extends w{constructor(){super(...arguments);S(this,"priority",100);S(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"])}parse(t,o,l){switch(o){case"I":return B(H.week,t);case"Io":return l.ordinalNumber(t,{unit:"week"});default:return N(o.length,t)}}validate(t,o){return o>=1&&o<=53}set(t,o,l){return ca(em(t,l))}};var NS=[31,28,31,30,31,30,31,31,30,31,30,31],AS=[31,29,31,30,31,30,31,31,30,31,30,31],xu=class extends w{constructor(){super(...arguments);S(this,"priority",90);S(this,"subPriority",1);S(this,"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"])}parse(t,o,l){switch(o){case"d":return B(H.date,t);case"do":return l.ordinalNumber(t,{unit:"date"});default:return N(o.length,t)}}validate(t,o){let l=t.getFullYear(),r=iu(l),u=t.getMonth();return r?o>=1&&o<=AS[u]:o>=1&&o<=NS[u]}set(t,o,l){return t.setDate(l),t.setHours(0,0,0,0),t}};var Su=class extends w{constructor(){super(...arguments);S(this,"priority",90);S(this,"subpriority",1);S(this,"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"])}parse(t,o,l){switch(o){case"D":case"DD":return B(H.dayOfYear,t);case"Do":return l.ordinalNumber(t,{unit:"date"});default:return N(o.length,t)}}validate(t,o){let l=t.getFullYear();return iu(l)?o>=1&&o<=366:o>=1&&o<=365}set(t,o,l){return t.setMonth(0,l),t.setHours(0,0,0,0),t}};function mo(e,a,t){var h,f,m,L,I,T,c,s;let o=Ee(),l=(s=(c=(L=(m=t==null?void 0:t.weekStartsOn)!=null?m:(f=(h=t==null?void 0:t.locale)==null?void 0:h.options)==null?void 0:f.weekStartsOn)!=null?L:o.weekStartsOn)!=null?c:(T=(I=o.locale)==null?void 0:I.options)==null?void 0:T.weekStartsOn)!=null?s:0,r=b(e,t==null?void 0:t.in),u=r.getDay(),n=(a%7+7)%7,d=7-l,g=a<0||a>6?a-(u+d)%7:(n+d)%7-(u+d)%7;return oo(r,g,t)}var Lu=class extends w{constructor(){super(...arguments);S(this,"priority",90);S(this,"incompatibleTokens",["D","i","e","c","t","T"])}parse(t,o,l){switch(o){case"E":case"EE":case"EEE":return l.day(t,{width:"abbreviated",context:"formatting"})||l.day(t,{width:"short",context:"formatting"})||l.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return l.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return l.day(t,{width:"short",context:"formatting"})||l.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return l.day(t,{width:"wide",context:"formatting"})||l.day(t,{width:"abbreviated",context:"formatting"})||l.day(t,{width:"short",context:"formatting"})||l.day(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=0&&o<=6}set(t,o,l,r){return t=mo(t,l,r),t.setHours(0,0,0,0),t}};var Cu=class extends w{constructor(){super(...arguments);S(this,"priority",90);S(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"])}parse(t,o,l,r){let u=i=>{let n=Math.floor((i-1)/7)*7;return(i+r.weekStartsOn+6)%7+n};switch(o){case"e":case"ee":return Y(N(o.length,t),u);case"eo":return Y(l.ordinalNumber(t,{unit:"day"}),u);case"eee":return l.day(t,{width:"abbreviated",context:"formatting"})||l.day(t,{width:"short",context:"formatting"})||l.day(t,{width:"narrow",context:"formatting"});case"eeeee":return l.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return l.day(t,{width:"short",context:"formatting"})||l.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return l.day(t,{width:"wide",context:"formatting"})||l.day(t,{width:"abbreviated",context:"formatting"})||l.day(t,{width:"short",context:"formatting"})||l.day(t,{width:"narrow",context:"formatting"})}}validate(t,o){return o>=0&&o<=6}set(t,o,l,r){return t=mo(t,l,r),t.setHours(0,0,0,0),t}};var Iu=class extends w{constructor(){super(...arguments);S(this,"priority",90);S(this,"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"])}parse(t,o,l,r){let u=i=>{let n=Math.floor((i-1)/7)*7;return(i+r.weekStartsOn+6)%7+n};switch(o){case"c":case"cc":return Y(N(o.length,t),u);case"co":return Y(l.ordinalNumber(t,{unit:"day"}),u);case"ccc":return l.day(t,{width:"abbreviated",context:"standalone"})||l.day(t,{width:"short",context:"standalone"})||l.day(t,{width:"narrow",context:"standalone"});case"ccccc":return l.day(t,{width:"narrow",context:"standalone"});case"cccccc":return l.day(t,{width:"short",context:"standalone"})||l.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return l.day(t,{width:"wide",context:"standalone"})||l.day(t,{width:"abbreviated",context:"standalone"})||l.day(t,{width:"short",context:"standalone"})||l.day(t,{width:"narrow",context:"standalone"})}}validate(t,o){return o>=0&&o<=6}set(t,o,l,r){return t=mo(t,l,r),t.setHours(0,0,0,0),t}};function am(e,a,t){let o=b(e,t==null?void 0:t.in),l=jc(o,t),r=a-l;return oo(o,r,t)}var vu=class extends w{constructor(){super(...arguments);S(this,"priority",90);S(this,"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"])}parse(t,o,l){let r=u=>u===0?7:u;switch(o){case"i":case"ii":return N(o.length,t);case"io":return l.ordinalNumber(t,{unit:"day"});case"iii":return Y(l.day(t,{width:"abbreviated",context:"formatting"})||l.day(t,{width:"short",context:"formatting"})||l.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return Y(l.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Y(l.day(t,{width:"short",context:"formatting"})||l.day(t,{width:"narrow",context:"formatting"}),r);case"iiii":default:return Y(l.day(t,{width:"wide",context:"formatting"})||l.day(t,{width:"abbreviated",context:"formatting"})||l.day(t,{width:"short",context:"formatting"})||l.day(t,{width:"narrow",context:"formatting"}),r)}}validate(t,o){return o>=1&&o<=7}set(t,o,l){return t=am(t,l),t.setHours(0,0,0,0),t}};var wu=class extends w{constructor(){super(...arguments);S(this,"priority",80);S(this,"incompatibleTokens",["b","B","H","k","t","T"])}parse(t,o,l){switch(o){case"a":case"aa":case"aaa":return l.dayPeriod(t,{width:"abbreviated",context:"formatting"})||l.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return l.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return l.dayPeriod(t,{width:"wide",context:"formatting"})||l.dayPeriod(t,{width:"abbreviated",context:"formatting"})||l.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,o,l){return t.setHours(co(l),0,0,0),t}};var Mu=class extends w{constructor(){super(...arguments);S(this,"priority",80);S(this,"incompatibleTokens",["a","B","H","k","t","T"])}parse(t,o,l){switch(o){case"b":case"bb":case"bbb":return l.dayPeriod(t,{width:"abbreviated",context:"formatting"})||l.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return l.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return l.dayPeriod(t,{width:"wide",context:"formatting"})||l.dayPeriod(t,{width:"abbreviated",context:"formatting"})||l.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,o,l){return t.setHours(co(l),0,0,0),t}};var bu=class extends w{constructor(){super(...arguments);S(this,"priority",80);S(this,"incompatibleTokens",["a","b","t","T"])}parse(t,o,l){switch(o){case"B":case"BB":case"BBB":return l.dayPeriod(t,{width:"abbreviated",context:"formatting"})||l.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return l.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return l.dayPeriod(t,{width:"wide",context:"formatting"})||l.dayPeriod(t,{width:"abbreviated",context:"formatting"})||l.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,o,l){return t.setHours(co(l),0,0,0),t}};var Du=class extends w{constructor(){super(...arguments);S(this,"priority",70);S(this,"incompatibleTokens",["H","K","k","t","T"])}parse(t,o,l){switch(o){case"h":return B(H.hour12h,t);case"ho":return l.ordinalNumber(t,{unit:"hour"});default:return N(o.length,t)}}validate(t,o){return o>=1&&o<=12}set(t,o,l){let r=t.getHours()>=12;return r&&l<12?t.setHours(l+12,0,0,0):!r&&l===12?t.setHours(0,0,0,0):t.setHours(l,0,0,0),t}};var Tu=class extends w{constructor(){super(...arguments);S(this,"priority",70);S(this,"incompatibleTokens",["a","b","h","K","k","t","T"])}parse(t,o,l){switch(o){case"H":return B(H.hour23h,t);case"Ho":return l.ordinalNumber(t,{unit:"hour"});default:return N(o.length,t)}}validate(t,o){return o>=0&&o<=23}set(t,o,l){return t.setHours(l,0,0,0),t}};var Pu=class extends w{constructor(){super(...arguments);S(this,"priority",70);S(this,"incompatibleTokens",["h","H","k","t","T"])}parse(t,o,l){switch(o){case"K":return B(H.hour11h,t);case"Ko":return l.ordinalNumber(t,{unit:"hour"});default:return N(o.length,t)}}validate(t,o){return o>=0&&o<=11}set(t,o,l){return t.getHours()>=12&&l<12?t.setHours(l+12,0,0,0):t.setHours(l,0,0,0),t}};var Nu=class extends w{constructor(){super(...arguments);S(this,"priority",70);S(this,"incompatibleTokens",["a","b","h","H","K","t","T"])}parse(t,o,l){switch(o){case"k":return B(H.hour24h,t);case"ko":return l.ordinalNumber(t,{unit:"hour"});default:return N(o.length,t)}}validate(t,o){return o>=1&&o<=24}set(t,o,l){let r=l<=24?l%24:l;return t.setHours(r,0,0,0),t}};var Au=class extends w{constructor(){super(...arguments);S(this,"priority",60);S(this,"incompatibleTokens",["t","T"])}parse(t,o,l){switch(o){case"m":return B(H.minute,t);case"mo":return l.ordinalNumber(t,{unit:"minute"});default:return N(o.length,t)}}validate(t,o){return o>=0&&o<=59}set(t,o,l){return t.setMinutes(l,0,0),t}};var ku=class extends w{constructor(){super(...arguments);S(this,"priority",50);S(this,"incompatibleTokens",["t","T"])}parse(t,o,l){switch(o){case"s":return B(H.second,t);case"so":return l.ordinalNumber(t,{unit:"second"});default:return N(o.length,t)}}validate(t,o){return o>=0&&o<=59}set(t,o,l){return t.setSeconds(l,0),t}};var Ru=class extends w{constructor(){super(...arguments);S(this,"priority",30);S(this,"incompatibleTokens",["t","T"])}parse(t,o){let l=r=>Math.trunc(r*Math.pow(10,-o.length+3));return Y(N(o.length,t),l)}set(t,o,l){return t.setMilliseconds(l),t}};var Ou=class extends w{constructor(){super(...arguments);S(this,"priority",10);S(this,"incompatibleTokens",["t","T","x"])}parse(t,o){switch(o){case"X":return $e(Je.basicOptionalMinutes,t);case"XX":return $e(Je.basic,t);case"XXXX":return $e(Je.basicOptionalSeconds,t);case"XXXXX":return $e(Je.extendedOptionalSeconds,t);case"XXX":default:return $e(Je.extended,t)}}set(t,o,l){return o.timestampIsSet?t:O(t,t.getTime()-Tt(t)-l)}};var Fu=class extends w{constructor(){super(...arguments);S(this,"priority",10);S(this,"incompatibleTokens",["t","T","X"])}parse(t,o){switch(o){case"x":return $e(Je.basicOptionalMinutes,t);case"xx":return $e(Je.basic,t);case"xxxx":return $e(Je.basicOptionalSeconds,t);case"xxxxx":return $e(Je.extendedOptionalSeconds,t);case"xxx":default:return $e(Je.extended,t)}}set(t,o,l){return o.timestampIsSet?t:O(t,t.getTime()-Tt(t)-l)}};var Eu=class extends w{constructor(){super(...arguments);S(this,"priority",40);S(this,"incompatibleTokens","*")}parse(t){return ru(t)}set(t,o,l){return[O(t,l*1e3),{timestampIsSet:!0}]}};var Bu=class extends w{constructor(){super(...arguments);S(this,"priority",20);S(this,"incompatibleTokens","*")}parse(t){return ru(t)}set(t,o,l){return[O(t,l),{timestampIsSet:!0}]}};var tm={G:new lu,y:new nu,Y:new su,R:new du,u:new fu,Q:new cu,q:new mu,M:new pu,L:new gu,w:new hu,I:new yu,d:new xu,D:new Su,E:new Lu,e:new Cu,c:new Iu,i:new vu,a:new wu,b:new Mu,B:new bu,h:new Du,H:new Tu,K:new Pu,k:new Nu,m:new Au,s:new ku,S:new Ru,X:new Ou,x:new Fu,t:new Eu,T:new Bu};var kS=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,RS=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,OS=/^'([^]*?)'?$/,FS=/''/g,ES=/\S/,BS=/[a-zA-Z]/;function om(e,a,t,o){var T,c,s,p,y,C,P,v,M,$,A,Te,xe,ve,jt,cc,mc,pc;let l=()=>O((o==null?void 0:o.in)||t,NaN),r=Zc(),u=(c=(T=o==null?void 0:o.locale)!=null?T:r.locale)!=null?c:sl,i=($=(M=(C=(y=o==null?void 0:o.firstWeekContainsDate)!=null?y:(p=(s=o==null?void 0:o.locale)==null?void 0:s.options)==null?void 0:p.firstWeekContainsDate)!=null?C:r.firstWeekContainsDate)!=null?M:(v=(P=r.locale)==null?void 0:P.options)==null?void 0:v.firstWeekContainsDate)!=null?$:1,n=(pc=(mc=(ve=(xe=o==null?void 0:o.weekStartsOn)!=null?xe:(Te=(A=o==null?void 0:o.locale)==null?void 0:A.options)==null?void 0:Te.weekStartsOn)!=null?ve:r.weekStartsOn)!=null?mc:(cc=(jt=r.locale)==null?void 0:jt.options)==null?void 0:cc.weekStartsOn)!=null?pc:0;if(!a)return e?l():b(t,o==null?void 0:o.in);let d={firstWeekContainsDate:i,weekStartsOn:n,locale:u},g=[new ou(o==null?void 0:o.in,t)],h=a.match(RS).map(V=>{let ie=V[0];if(ie in dl){let ha=dl[ie];return ha(V,u.formatLong)}return V}).join("").match(kS),f=[];for(let V of h){!(o!=null&&o.useAdditionalWeekYearTokens)&&eu(V)&&fl(V,a,e),!(o!=null&&o.useAdditionalDayOfYearTokens)&&$r(V)&&fl(V,a,e);let ie=V[0],ha=tm[ie];if(ha){let{incompatibleTokens:gc}=ha;if(Array.isArray(gc)){let hc=f.find(yc=>gc.includes(yc.token)||yc.token===ie);if(hc)throw new RangeError(`The format string mustn't contain \`${hc.fullToken}\` and \`${V}\` at the same time`)}else if(ha.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:ie,fullToken:V});let vs=ha.run(e,V,u.match,d);if(!vs)return l();g.push(vs.setter),e=vs.rest}else{if(ie.match(BS))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");if(V==="''"?V="'":ie==="'"&&(V=HS(V)),e.indexOf(V)===0)e=e.slice(V.length);else return l()}}if(e.length>0&&ES.test(e))return l();let m=g.map(V=>V.priority).sort((V,ie)=>ie-V).filter((V,ie,ha)=>ha.indexOf(V)===ie).map(V=>g.filter(ie=>ie.priority===V).sort((ie,ha)=>ha.subPriority-ie.subPriority)).map(V=>V[0]),L=b(t,o==null?void 0:o.in);if(isNaN(+L))return l();let I={};for(let V of m){if(!V.validate(L,d))return l();let ie=V.set(L,I,d);Array.isArray(ie)?(L=ie[0],Object.assign(I,ie[1])):L=ie}return L}function HS(e){return e.match(OS)[1].replace(FS,"'")}function lm(e,a,t){return Qr(e,-a,t)}function rm(e,a,t){return jr(e,-a,t)}var Hu=class{fromDate(a,t){try{return Kc(a,t)}catch(o){return t}}fromString(a,t){try{let o=om(a,t,new Date);return isNaN(o.getDate())?null:o}catch(o){return null}}};var qu=class{getParser(){return new Hu}};var Za=require("obsidian"),Uu=class{constructor(a){this.plugin=a}async exists(a){let t=this.normalizePath(a);return this.plugin.app.vault.getAbstractFileByPath(t)instanceof Za.TFile}async createFile(a,t=null){let o=this.normalizePath(a);return(await this.plugin.app.vault.create(o,t!=null?t:"")).path}async createFolder(a){let t=this.plugin.app.vault.getAbstractFileByPath(a);t&&t instanceof Za.TFolder||await this.plugin.app.vault.createFolder(a)}async readContents(a){let t=this.normalizePath(a),o=this.plugin.app.vault.getAbstractFileByPath(t);return o instanceof Za.TFile?await this.plugin.app.vault.cachedRead(o):""}async openInCurrentTab(a){let t=this.getFile(a);await this.plugin.app.workspace.getLeaf().openFile(t,{active:!0})}async openInHorizontalSplitView(a){let t=this.getFile(a);await this.plugin.app.workspace.getLeaf("split","horizontal").openFile(t,{active:!0})}async openInVerticalSplitView(a){let t=this.getFile(a);await this.plugin.app.workspace.getLeaf("split","vertical").openFile(t,{active:!0})}async delete(a){let t=this.normalizePath(a),o=this.plugin.app.vault.getAbstractFileByPath(t);o instanceof Za.TFile&&this.plugin.app.fileManager.promptForFileDeletion(o)}getFile(a){let t=this.normalizePath(a),o=this.plugin.app.vault.getFileByPath(t);if(!o)throw new Error(`Could not open the file: File does not exist: ${t}.`);return o}normalizePath(a){return(0,Za.normalizePath)(a).appendMarkdownExtension().toString()}};var Vu=class{constructor(){this.typesThatRequireTemplate=[0,1];this.typesThatSupportCalculus=[0,1];this.types=new Map().set("date",0).set("today",1).set("title",2)}getVariable(a){let t=/{{([a-z]+)([+-][0-9].)?:?(.*)?}}/,[o,l,r,u]=t.exec(a)||[],i=this.types.get(l.toLowerCase()),n=null;if(i===void 0)throw Error(`Could not parse all variables: The variable "{{${l}}}" is not supported.`);if(this.typesThatRequireTemplate.includes(i)&&!u)throw Error(`Could not parse all variables: The variable "{{${l}}}" requires a template, but none was provided.`);return this.typesThatSupportCalculus.includes(i)&&(n=this.getCalculusFromRegex(r)),{template:u!=null?u:null,calculus:n!=null?n:null,type:i}}getCalculusFromRegex(a){let t=/([+-])([0-9]+)([a-z])/,[o,l,r,u]=t.exec(a)||[],i=parseInt(r);if(!l||!r||!u||isNaN(i))return null;let n="+";return l==="-".valueOf()&&(n="-"),{unit:u,operator:n,value:i}}};var zu=class{constructor(a,t){this.plugin=a;this.dateRepositoryFactory=t}async getActiveNote(){let a=this.plugin.app.workspace.getActiveFile();return a?await this.asNote(a):null}async getNotes(){return await Promise.all(this.plugin.app.vault.getMarkdownFiles().map(a=>this.asNote(a)))}async asNote(a){let t=this.dateRepositoryFactory.getRepository().getDayFromDate(new Date(a.stat.ctime)),o=this.readFrontMatter(a);return{path:a.path,name:a.name.removeMarkdownExtension(),createdOn:t,properties:o}}readFrontMatter(a){var o;let t=new Map;try{let l=(o=this.plugin.app.metadataCache.getFileCache(a))==null?void 0:o.frontmatter;l&&(t=new Map(Object.entries(l)))}catch(l){console.error(`Error processing front matter for file: ${a.path}. Error: ${l}`)}return t}};var _u=class{constructor(a){this.calendarService=a;this.settings=z;this.today=null}initialize(a,t){this.settings=a,this.today=t,this.calendarService.initialize(a)}initializeCallbacks(a,t,o,l,r,u){this.setSelectedPeriod=a,this.navigateToNextWeek=t,this.navigateToPreviousWeek=o,this.navigateToCurrentWeek=l,this.navigateToNextMonth=r,this.navigateToPreviousMonth=u}getCurrentWeek(){let a=this.calendarService.getCurrentWeek();return this.buildCalendar(a)}getPreviousWeek(a){let t=this.calendarService.getPreviousWeek(a.weeks);return this.buildCalendar(t)}getNextWeek(a){let t=this.calendarService.getNextWeek(a.weeks);return this.buildCalendar(t)}getPreviousMonth(a){let t=this.calendarService.getPreviousMonth(a.weeks);return this.buildCalendar(t)}getNextMonth(a){let t=this.calendarService.getNextMonth(a.weeks);return this.buildCalendar(t)}buildCalendar(a){let t=this.buildWeekDays(this.settings.generalSettings.firstDayOfWeek),o=this.calendarService.getMonthForWeeks(a),l=this.calendarService.getQuarterForWeeks(a),r=this.calendarService.getYearForWeeks(a);return{weekDays:t,month:o,quarter:l,year:r,weeks:a,today:this.today}}buildWeekDays(a){let t=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],o=(a-1+7)%7;return[...t.slice(o),...t.slice(0,o)]}};var Gu=class{constructor(a){this.dateManagerFactory=a;this.settings=z;this.dateManager=this.dateManagerFactory.getManager()}initialize(a){this.settings=a}getCurrentWeek(){let a=this.settings.generalSettings.firstDayOfWeek,t=this.settings.generalSettings.weekNumberStandard,o=this.dateManager.getCurrentWeek(a,t);return this.loadWeeks(o,2,3)}getPreviousWeek(a){let t=this.getMiddleWeek(a);return this.loadWeeks(t,4,1)}getNextWeek(a){let t=this.getMiddleWeek(a);return this.loadWeeks(t,2,3)}getPreviousMonth(a){let t=this.getMiddleWeek(a),o=this.settings.generalSettings.firstDayOfWeek,l=this.settings.generalSettings.weekNumberStandard,r=this.dateManager.getPreviousMonth(t,o,l);return this.sortWeeks(r)}getNextMonth(a){let t=this.getMiddleWeek(a),o=this.settings.generalSettings.firstDayOfWeek,l=this.settings.generalSettings.weekNumberStandard,r=this.dateManager.getNextMonth(t,o,l);return this.sortWeeks(r)}getMonthForWeeks(a){return this.getMiddleWeek(a).month}getQuarterForWeeks(a){return this.getMiddleWeek(a).quarter}getYearForWeeks(a){return this.getMiddleWeek(a).year}getMiddleWeek(a){return a[Math.floor(a.length/2)]}loadWeeks(a,t,o){let l=this.settings.generalSettings.firstDayOfWeek,r=this.settings.generalSettings.weekNumberStandard,u=this.dateManager.getPreviousWeeks(a,l,r,t),i=this.dateManager.getNextWeeks(a,l,r,o),n=[...u,a,...i];return this.sortWeeks(n)}sortWeeks(a){return a.sort((t,o)=>t.date.getTime()-o.date.getTime())}};var Wu=class{constructor(a,t,o,l){this.nameBuilderFactory=a;this.variableParserFactory=t;this.fileRepositoryFactory=o;this.noteRepositoryFactory=l}async doesNoteExist(a,t){let o=this.fileRepositoryFactory.getRepository(),l=this.getFilePath(t,a);return await o.exists(l)}async createNote(a,t){let o=this.fileRepositoryFactory.getRepository(),l=this.getFilePath(t,a),r=await this.doesNoteExist(a,t),u=await o.exists(a.templateFile);if(!r&&u){let i=await o.readContents(a.templateFile),n=await this.parseVariables(i,t);await o.create(l,n)}}async openNote(a,t){let o=this.fileRepositoryFactory.getRepository(),l=this.getFilePath(t,a);if(!await this.doesNoteExist(a,t))throw new Error(`Could not open the note: File "${l}" does not exist`);await o.openInCurrentTab(l)}async openNoteInHorizontalSplitView(a,t){let o=this.fileRepositoryFactory.getRepository(),l=this.getFilePath(t,a);if(!await this.doesNoteExist(a,t))throw new Error(`Could not open the note: File "${l}" does not exist`);await o.openInHorizontalSplitView(l)}async openNoteInVerticalSplitView(a,t){let o=this.fileRepositoryFactory.getRepository(),l=this.getFilePath(t,a);if(!await this.doesNoteExist(a,t))throw new Error(`Could not open the note: File "${l}" does not exist`);await o.openInVerticalSplitView(l)}async deleteNote(a,t){let o=this.fileRepositoryFactory.getRepository(),l=this.getFilePath(t,a);if(!await this.doesNoteExist(a,t))throw new Error(`Could not delete the note: File "${l}" does not exist`);await o.delete(l)}getFilePath(a,t){return this.nameBuilderFactory.getNameBuilder("periodicNote").withPath(t.folder).withName(t.nameTemplate).withValue(a).build()}async parseVariables(a,t){let o=await this.noteRepositoryFactory.getRepository().getActiveNote(),l=this.variableParserFactory.getVariableParser(2),r=this.variableParserFactory.getVariableParser(0),u=this.variableParserFactory.getVariableParser(1),i=a;return i=l.parseVariables(i,o==null?void 0:o.name),i=r.parseVariables(i,t),i=u.parseVariables(i,new Date),i}};function ja(e,a){if(!e||!a)return!1;let t=e.date.toDateString()===a.date.toDateString(),o=e.type===a.type;return t&&o}var Yu=class{constructor(a){this.dateParserFactory=a;this.monthFormat="long";this.dayFormat="2-digit";this.yearFormat="numeric"}getDayFromDate(a){return{name:new Intl.DateTimeFormat(void 0,{day:this.dayFormat}).format(a),date:a,type:0}}getDayFromDateString(a,t){let o=this.dateParserFactory.getParser().fromString(a,t);return o?this.getDayFromDate(o):null}getWeekFromDate(a,t,o){let l=we(o,{weekStartsOn:a}),r=uo(l);t===1&&(r=no(l,{weekStartsOn:a}));let u=this.getMonth(l.getFullYear(),l.getMonth()),i=this.getQuarter(u),n=this.getYear(l.getFullYear()),d=this.getDaysOfWeek(a,l);return{date:l,name:r.toString().padStart(2,"0"),weekNumber:r,year:n,quarter:i,month:u,days:d,type:1}}getNextWeek(a,t,o){let l=jr(o.date,1);return this.getWeekFromDate(a,t,l)}getPreviousWeek(a,t,o){let l=rm(o.date,1);return this.getWeekFromDate(a,t,l)}getMonthFromDate(a){return this.getMonth(a.getFullYear(),a.getMonth())}getNextMonth(a){let t=bs(a.date),o=Qr(t,1);return this.getMonthFromDate(o)}getPreviousMonth(a){let t=bs(a.date),o=lm(t,1);return this.getMonthFromDate(o)}getQuarter(a){let t=Oc(a.date);return{name:`Q${Ac(t)}`,date:t,type:3}}getYear(a){let t=new Intl.DateTimeFormat(void 0,{year:this.yearFormat}),o=new Date(a,0);return{name:t.format(o),date:o,type:4}}getMonth(a,t){let o=new Intl.DateTimeFormat(void 0,{month:this.monthFormat}),l=new Date(a,t);return{name:o.format(l),date:l,type:2}}getDaysOfWeek(a,t){let o=we(t,{weekStartsOn:a}),l=Ec(t,{weekStartsOn:a});return Rc({start:o,end:l}).map(u=>this.getDayFromDate(u))}};var Xu=class{constructor(a){this.dateParserFactory=a}getRepository(){return new Yu(this.dateParserFactory)}};var Qu=class{constructor(a){this.adapter=a}async exists(a){return await this.adapter.exists(a)}async create(a,t){let o=a.split("/").slice(0,-1).join("/");return await this.adapter.createFolder(o),await this.adapter.createFile(a,t)}async readContents(a){return await this.exists(a)?await this.adapter.readContents(a):""}async openInCurrentTab(a){await this.exists(a)&&await this.adapter.openInCurrentTab(a)}async openInHorizontalSplitView(a){await this.exists(a)&&await this.adapter.openInHorizontalSplitView(a)}async openInVerticalSplitView(a){await this.exists(a)&&await this.adapter.openInVerticalSplitView(a)}async delete(a){await this.exists(a)&&await this.adapter.delete(a)}};var Ku=class{constructor(a){this.adapter=a}getRepository(){return new Qu(this.adapter)}};var Zu=class{constructor(a,t,o,l){this.adapter=a;this.dateRepositoryFactory=t;this.dateParserFactory=o;this.settingsRepositoryFactory=l}async getActiveNote(){let a=await this.settingsRepositoryFactory.getRepository("displayNotes").get(),t=await this.adapter.getActiveNote();return t?this.setDateProperty(t,a):null}async getNotes(a){let t=await this.adapter.getNotes();return(await this.setDateProperties(t)).filter(a)}async setDateProperties(a){let t=await this.settingsRepositoryFactory.getRepository("displayNotes").get();return a.map(o=>this.setDateProperty(o,t))}setDateProperty(a,t){let o=this.setCreatedOnProperty(a,t),l=o.createdOn.date;return o.createdOnProperty&&t.useCreatedOnDateFromProperties&&(l=o.createdOnProperty.date),{...o,displayDate:this.dateParserFactory.getParser().fromDate(l,t.displayDateTemplate)}}setCreatedOnProperty(a,t){let o=a.properties.get(t.createdOnDatePropertyName);if(!o)return a;let l=this.dateRepositoryFactory.getRepository().getDayFromDateString(o,t.createdOnPropertyFormat);return l&&l.date.getHours()===0&&l.date.getMinutes()===0&&l.date.setHours(a.createdOn.date.getHours(),a.createdOn.date.getMinutes(),a.createdOn.date.getSeconds(),a.createdOn.date.getMilliseconds()),{...a,createdOnProperty:l}}};var ju=class{constructor(a,t,o,l){this.adapter=a;this.dateRepositoryFactory=t;this.dateParserFactory=o;this.settingsRepositoryFactory=l}getRepository(){return new Zu(this.adapter,this.dateRepositoryFactory,this.dateParserFactory,this.settingsRepositoryFactory)}};var Ju=class{constructor(a){this.dateRepositoryFactory=a;this.today=new Date}getCurrentDay(){return this.dateRepositoryFactory.getRepository().getDayFromDate(this.today)}getTomorrow(){let a=this.today;return a.setDate(a.getDate()+1),this.dateRepositoryFactory.getRepository().getDayFromDate(a)}getYesterday(){let a=this.today;return a.setDate(a.getDate()-1),this.dateRepositoryFactory.getRepository().getDayFromDate(a)}getCurrentWeek(a,t){return this.dateRepositoryFactory.getRepository().getWeekFromDate(a,t,this.today)}getWeek(a,t,o){return this.dateRepositoryFactory.getRepository().getWeekFromDate(t,o,a.date)}getPreviousWeeks(a,t,o,l){return this.getWeeks(a,l,r=>this.dateRepositoryFactory.getRepository().getPreviousWeek(t,o,r))}getNextWeeks(a,t,o,l){return this.getWeeks(a,l,r=>this.dateRepositoryFactory.getRepository().getNextWeek(t,o,r))}getPreviousMonth(a,t,o){let l=this.dateRepositoryFactory.getRepository().getPreviousMonth(a);return this.getWeeksForMonth(l,t,o)}getNextMonth(a,t,o){let l=this.dateRepositoryFactory.getRepository().getNextMonth(a);return this.getWeeksForMonth(l,t,o)}getQuarter(a){return this.dateRepositoryFactory.getRepository().getQuarter(a)}getWeeksForMonth(a,t,o){let l=new Date(a.date.getFullYear(),a.date.getMonth(),1),r=new Date(a.date.getFullYear(),a.date.getMonth()+1,0),u=new Date((l.getTime()+r.getTime())/2),i=this.dateRepositoryFactory.getRepository().getWeekFromDate(t,o,u),n=this.getPreviousWeeks(i,t,o,2),d=this.getNextWeeks(i,t,o,3);return this.sortWeeks([...n,i,...d])}getWeeks(a,t,o){let l=a,r=[];for(let u=0;u<t;u++)l=o(l),r.push(l);return this.sortWeeks(r)}sortWeeks(a){return a.sort((t,o)=>t.date.getTime()-o.date.getTime())}};var $u=class{constructor(a){this.dateRepositoryFactory=a}getManager(){return new Ju(this.dateRepositoryFactory)}};var ei=class{constructor(a,t,o){this.noteManagerFactory=a;this.settingssRepositoryFactory=t;this.viewModel=o}async execute(){var o,l;let a=await this.noteManagerFactory.getManager().getActiveNote(),t=await this.settingssRepositoryFactory.getRepository("displayNotes").get();a&&(t.useCreatedOnDateFromProperties&&a.createdOnProperty?(o=this.viewModel.setSelectedPeriod)==null||o.call(this,a.createdOnProperty):t.useCreatedOnDateFromProperties||(l=this.viewModel.setSelectedPeriod)==null||l.call(this,a.createdOn))}};var ai=class{constructor(a){this.viewModel=a}async execute(){var a;(a=this.viewModel.navigateToCurrentWeek)==null||a.call(this)}};var ti=class{constructor(a){this.viewModel=a}async execute(){var a;(a=this.viewModel.navigateToPreviousWeek)==null||a.call(this)}};var oi=class{constructor(a){this.viewModel=a}async execute(){var a;(a=this.viewModel.navigateToNextWeek)==null||a.call(this)}};function um(e){return e===1||e===3}function im(e){return e===2}var li=class{constructor(a,t,o){this.dateManagerFactory=a;this.viewModel=t;this.calendarViewModel=o}async execute(){var t;let a=this.dateManagerFactory.getManager().getYesterday();(t=this.calendarViewModel.setSelectedPeriod)==null||t.call(this,a),await this.viewModel.openNote(0,a)}};var ri=class{constructor(a,t,o){this.dateManagerFactory=a;this.viewModel=t;this.calendarViewModel=o}async execute(){var t;let a=this.dateManagerFactory.getManager().getTomorrow();(t=this.calendarViewModel.setSelectedPeriod)==null||t.call(this,a),await this.viewModel.openNote(0,a)}};var ui=class{constructor(a,t,o,l){this.dateManagerFactory=a;this.settingsRepositoryFactory=t;this.viewModel=o;this.calendarViewModel=l}async execute(){var l;let a=await this.settingsRepositoryFactory.getRepository("general").get(),t=this.dateManagerFactory.getManager().getCurrentDay(),o=this.dateManagerFactory.getManager().getWeek(t,a.firstDayOfWeek,a.weekNumberStandard);(l=this.calendarViewModel.setSelectedPeriod)==null||l.call(this,o),await this.viewModel.openNote(0,o)}};var ii=class{constructor(a){this.viewModel=a}async execute(){var a;(a=this.viewModel.navigateToPreviousMonth)==null||a.call(this)}};var ni=class{constructor(a){this.viewModel=a}async execute(){var a;(a=this.viewModel.navigateToNextMonth)==null||a.call(this)}};var si=class{constructor(a,t,o){this.dateManagerFactory=a;this.viewModel=t;this.calendarViewModel=o}async execute(){var t;let a=this.dateManagerFactory.getManager().getCurrentDay();(t=this.calendarViewModel.setSelectedPeriod)==null||t.call(this,a),await this.viewModel.openNote(0,a)}};var di=class{constructor(a,t,o,l,r,u){this.noteManagerFactory=a;this.settingsRepositoryFactory=t;this.dateManagerFactory=o;this.calendarViewModel=l;this.weekNoteViewModel=r;this.dayNoteViewModel=u}getHandler(a){switch(a){case 0:return new ei(this.noteManagerFactory,this.settingsRepositoryFactory,this.calendarViewModel);case 1:return new ai(this.calendarViewModel);case 3:return new ti(this.calendarViewModel);case 2:return new oi(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 si(this.dateManagerFactory,this.dayNoteViewModel,this.calendarViewModel);case 8:return new ri(this.dateManagerFactory,this.dayNoteViewModel,this.calendarViewModel);case 9:return new ui(this.dateManagerFactory,this.settingsRepositoryFactory,this.weekNoteViewModel,this.calendarViewModel)}}};var fi=class{constructor(a,t,o){this.fileRepositoryFactory=a;this.noteRepositoryFactory=t;this.settingsRepositoryFactory=o}async openNote(a){await this.fileRepositoryFactory.getRepository().exists(a.path)&&await this.fileRepositoryFactory.getRepository().openInCurrentTab(a.path)}async openNoteInHorizontalSplitView(a){await this.fileRepositoryFactory.getRepository().exists(a.path)&&await this.fileRepositoryFactory.getRepository().openInHorizontalSplitView(a.path)}async openNoteInVerticalSplitView(a){await this.fileRepositoryFactory.getRepository().exists(a.path)&&await this.fileRepositoryFactory.getRepository().openInVerticalSplitView(a.path)}async getNotesForPeriod(a){if(!(await this.settingsRepositoryFactory.getRepository("general").get()).displayNotesCreatedOnDate)return[];let o=await this.settingsRepositoryFactory.getRepository("displayNotes").get(),r=await this.noteRepositoryFactory.getRepository().getNotes(u=>o.useCreatedOnDateFromProperties?ja(u.createdOnProperty,a):ja(u.createdOn,a));return o.sortNotes==="ascending"?r.sort((u,i)=>o.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)=>o.useCreatedOnDateFromProperties&&u.createdOnProperty&&i.createdOnProperty?i.createdOnProperty.date.getTime()-u.createdOnProperty.date.getTime():i.createdOn.date.getTime()-u.createdOn.date.getTime())}async deleteNote(a){await this.fileRepositoryFactory.getRepository().exists(a.path)&&await this.fileRepositoryFactory.getRepository().delete(a.path)}async getActiveNote(){return await this.noteRepositoryFactory.getRepository().getActiveNote()}};var ci=class{constructor(a,t,o){this.fileRepositoryFactory=a;this.noteRepositoryFactory=t;this.settingsRepositoryFactory=o}getManager(){return new fi(this.fileRepositoryFactory,this.noteRepositoryFactory,this.settingsRepositoryFactory)}};var mi=class{constructor(a){this.noteService=a}initializeCallbacks(a){this.updateNotes=a}async loadNotes(a){return await this.noteService.getNotesForPeriod(a)}async openNoteInHorizontalSplitView(a){await this.noteService.openNoteInHorizontalSplitView(a)}async openNoteInVerticalSplitView(a){await this.noteService.openNoteInVerticalSplitView(a)}async openNote(a){await this.noteService.openNote(a)}async deleteNote(a){await this.noteService.deleteNote(a)}};var nm=require("obsidian"),pi=class{show(a,t,o){this.contextMenu=new nm.Menu,this.addOpenInHorizontalSplitViewMenuItem(this.contextMenu,o.openInHorizontalSplitView).addOpenInVerticalSplitViewMenuItem(this.contextMenu,o.openInVerticalSplitView).addDeleteNoteMenuItem(this.contextMenu,o.onDelete).build(this.contextMenu).showAtPosition({x:a,y:t})}hide(){var a;(a=this.contextMenu)==null||a.hide(),delete this.contextMenu}addOpenInHorizontalSplitViewMenuItem(a,t){return a.addItem(o=>o.setIcon("rows-2").setTitle("Open in horizontal split view").onClick(t)),this}addOpenInVerticalSplitViewMenuItem(a,t){return a.addItem(o=>o.setIcon("columns-2").setTitle("Open in vertical split view").onClick(t)),this}addDeleteNoteMenuItem(a,t){return a.addItem(o=>o.setIcon("trash").setTitle("Delete").onClick(t)),this}build(a){return a}};var gi=class{constructor(a){this.periodicNoteManager=a;this.settings=z}async initialize(a){this.settings=a}async openNoteInCurrentTab(a,t,o){await this.openNote(a,t,o,async(l,r)=>this.periodicNoteManager.openNote(l,r))}async openNoteInHorizontalSplitView(a,t,o){await this.openNote(a,t,o,async(l,r)=>this.periodicNoteManager.openNoteInHorizontalSplitView(l,r))}async openNoteInVerticalSplitView(a,t,o){await this.openNote(a,t,o,async(l,r)=>this.periodicNoteManager.openNoteInVerticalSplitView(l,r))}async deleteNote(a,t){await this.periodicNoteManager.deleteNote(t,a)}async hasPeriodicNote(a,t){return await this.periodicNoteManager.doesNoteExist(t,a)}async openNote(a,t,o,l){let r=this.settings.generalSettings.useModifierKeyToCreateNote,u=r&&um(a);if(!r||u){await this.periodicNoteManager.createNote(o,t),await l(o,t);return}await this.periodicNoteManager.doesNoteExist(o,t)&&await l(o,t)}};var ea=class{constructor(a,t,o){this.periodService=t;this.messageAdapter=o;this.pluginSettings=z;this.settings=a}updateSettings(a){this.pluginSettings=a,this.periodService.initialize(a)}async hasPeriodicNote(a){let t=this.pluginSettings.generalSettings.displayNoteIndicator,o=await this.periodService.hasPeriodicNote(a,this.settings);return t&&o}async openNote(a,t){let o=async(l,r)=>{l===4?await this.periodService.openNoteInHorizontalSplitView(l,r,this.settings):await this.periodService.openNoteInCurrentTab(l,r,this.settings)};await this.tryOpenNote(a,t,o)}async openNoteInHorizontalSplitView(a,t){await this.tryOpenNote(a,t,async(o,l)=>await this.periodService.openNoteInHorizontalSplitView(o,l,this.settings))}async openNoteInVerticalSplitView(a,t){await this.tryOpenNote(a,t,async(o,l)=>await this.periodService.openNoteInVerticalSplitView(o,l,this.settings))}async deleteNote(a){await this.periodService.deleteNote(a,this.settings)}async tryOpenNote(a,t,o){try{await o(a,t)}catch(l){l instanceof Error?this.messageAdapter.show(l.message):this.messageAdapter.show(String(l))}}};var hi=class extends ea{constructor(a,t){super(Jt,a,t)}updateSettings(a){super.updateSettings(a),this.settings=a.dailyNotes}};var yi=class extends ea{constructor(a,t){super($t,a,t)}updateSettings(a){super.updateSettings(a),this.settings=a.weeklyNotes}};var xi=class extends ea{constructor(a,t){super(eo,a,t)}updateSettings(a){super.updateSettings(a),this.settings=a.monthlyNotes}};var Si=class extends ea{constructor(a,t){super(ao,a,t)}updateSettings(a){super.updateSettings(a),this.settings=a.quarterlyNotes}};var Li=class extends ea{constructor(a,t){super(to,a,t)}updateSettings(a){super.updateSettings(a),this.settings=a.yearlyNotes}};var Ci=class{constructor(a){this.noteManagerFactory=a}async getNotesForPeriod(a){return await this.noteManagerFactory.getManager().getNotesForPeriod(a)}async openNote(a){await this.noteManagerFactory.getManager().openNote(a)}async openNoteInHorizontalSplitView(a){await this.noteManagerFactory.getManager().openNoteInHorizontalSplitView(a)}async openNoteInVerticalSplitView(a){await this.noteManagerFactory.getManager().openNoteInVerticalSplitView(a)}async deleteNote(a){await this.noteManagerFactory.getManager().deleteNote(a)}};var sm=require("obsidian"),Ii=class{constructor(){this.duration=5e3}show(a){new sm.Notice(a,this.duration)}};function dm(e){let a=new qu,t=new Xu(a),o=new br(e),l=new Uu(e),r=new zu(e,t),u=new Br(o),i=new Ku(l),n=new ju(r,t,a,u),d=new qr(a),g=new Vu,h=new Yr(g,a),f=new $u(t),m=new ci(i,n,u),L=new Wu(d,h,i,n),I=new Gu(f),T=new gi(L),c=new Ci(m),s=new Ii,p=new _u(I),y=new hi(T,s),C=new yi(T,s),P=new xi(T,s),v=new Si(T,s),M=new Li(T,s),$=new mi(c),A=new di(m,u,f,p,C,y),Te=new pi;return{calendarViewModel:p,dailyNoteViewModel:y,weeklyNoteViewModel:C,monthlyNoteViewModel:P,quarterlyNoteViewModel:v,yearlyNoteViewModel:M,notesViewModel:$,dateManagerFactory:f,dateParserFactory:a,settingsRepositoryFactory:u,commandHandlerFactory:A,contextMenuAdapter:Te}}var wx=require("obsidian"),Mx=U(Wy()),bx=U(ke());var os=U(ke());var Jn=U(ke());var Yy=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),PI=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,o)=>o?o.toUpperCase():t.toLowerCase()),sc=e=>{let a=PI(e);return a.charAt(0).toUpperCase()+a.slice(1)},jn=(...e)=>e.filter((a,t,o)=>!!a&&a.trim()!==""&&o.indexOf(a)===t).join(" ").trim(),Xy=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var Sr=U(ke());var Qy={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 Ky=(0,Sr.forwardRef)(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:o,className:l="",children:r,iconNode:u,...i},n)=>(0,Sr.createElement)("svg",{ref:n,...Qy,width:a,height:a,stroke:e,strokeWidth:o?Number(t)*24/Number(a):t,className:jn("lucide",l),...!r&&!Xy(i)&&{"aria-hidden":"true"},...i},[...u.map(([d,g])=>(0,Sr.createElement)(d,g)),...Array.isArray(r)?r:[r]]));var Ta=(e,a)=>{let t=(0,Jn.forwardRef)(({className:o,...l},r)=>(0,Jn.createElement)(Ky,{ref:r,iconNode:a,className:jn(`lucide-${Yy(sc(e))}`,`lucide-${e}`,o),...l}));return t.displayName=sc(e),t};var NI=[["path",{d:"M12.127 22H5a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2v5.125",key:"vxdnp4"}],["path",{d:"M14.62 18.8A2.25 2.25 0 1 1 18 15.836a2.25 2.25 0 1 1 3.38 2.966l-2.626 2.856a.998.998 0 0 1-1.507 0z",key:"15cy7q"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 2v4",key:"1cmpym"}]],Lr=Ta("calendar-heart",NI);var AI=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Cr=Ta("chevron-left",AI);var kI=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],Ir=Ta("chevron-right",kI);var RI=[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]],vr=Ta("chevrons-left",RI);var OI=[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]],wr=Ta("chevrons-right",OI);var Pa=U(ke()),Ka=(0,Pa.createContext)(null),Zy=()=>{var e,a;return(a=(e=(0,Pa.useContext)(Ka))==null?void 0:e.calendarViewModel)!=null?a:null},jy=()=>{var e,a;return(a=(e=(0,Pa.useContext)(Ka))==null?void 0:e.dailyNoteViewModel)!=null?a:null},Jy=()=>{var e,a;return(a=(e=(0,Pa.useContext)(Ka))==null?void 0:e.weeklyNoteViewModel)!=null?a:null},$y=()=>{var e,a;return(a=(e=(0,Pa.useContext)(Ka))==null?void 0:e.monthlyNoteViewModel)!=null?a:null},ex=()=>{var e,a;return(a=(e=(0,Pa.useContext)(Ka))==null?void 0:e.quarterlyNoteViewModel)!=null?a:null},ax=()=>{var e,a;return(a=(e=(0,Pa.useContext)(Ka))==null?void 0:e.yearlyNoteViewModel)!=null?a:null},tx=()=>{var e,a;return(a=(e=(0,Pa.useContext)(Ka))==null?void 0:e.notesViewModel)!=null?a:null};var fc=U(ke());var $n=U(ke()),dc=(0,$n.createContext)(null),es=()=>(0,$n.useContext)(dc);var Mt=U(ce()),ux=e=>{let a=es(),t={openInHorizontalSplitView:()=>e.onOpenInHorizontalSplitView(e.note),openInVerticalSplitView:()=>e.onOpenInVerticalSplitView(e.note),onDelete:()=>e.onDelete(e.note)};return(0,Mt.jsxs)("li",{onContextMenu:o=>{a==null||a.show(o.clientX,o.clientY,t),o.preventDefault()},onClick:o=>{e.onClick(e.note),o.preventDefault()},children:[(0,Mt.jsx)("span",{className:"note-title",children:e.note.name}),(0,Mt.jsx)("br",{}),(0,Mt.jsxs)("span",{className:"note-date",children:["Created at ",e.note.displayDate]}),(0,Mt.jsx)("br",{}),(0,Mt.jsx)("span",{className:"note-path",children:e.note.path})]},e.note.path)};var ts=U(ce()),ix=e=>{let a=tx(),[t,o]=fc.default.useState([]),l=()=>{e.period&&(a==null||a.loadNotes(e.period).then(o))};return fc.default.useEffect(()=>{l()},[a,o,e.period]),a==null||a.initializeCallbacks(l),(0,ts.jsx)("div",{className:"dnc",children:(0,ts.jsx)("ul",{children:t.map(r=>(0,ts.jsx)(ux,{note:r,onOpenInHorizontalSplitView:u=>a==null?void 0:a.openNoteInHorizontalSplitView(u),onOpenInVerticalSplitView:u=>a==null?void 0:a.openNoteInVerticalSplitView(u),onClick:u=>a==null?void 0:a.openNote(u),onDelete:u=>a==null?void 0:a.deleteNote(u)},r.path))})})};var sx=U(ke());var nx=U(ce()),Na=e=>{var r;let a=es(),t=u=>({openInHorizontalSplitView:()=>e.onOpenInHorizontalSplitViewClick(u),openInVerticalSplitView:()=>e.onOpenInVerticalSplitViewClick(u),onDelete:()=>e.onDelete()}),o=u=>(u.metaKey||u.ctrlKey)&&u.altKey?4:u.metaKey?3:u.altKey?1:u.shiftKey?2:0,l=(r=e.classNames)!=null?r:[];return e.isSelected&&l.push("selected-day"),e.hasPeriodNote&&l.push("has-note"),(0,nx.jsx)("div",{id:e.isToday?"today":"",className:l.join(" "),onContextMenu:u=>{let i=t(o(u));a==null||a.show(u.clientX,u.clientY,i),u.preventDefault()},onClick:u=>{e.onClick(o(u)),u.preventDefault()},children:e.name})};var fx=U(ce()),dx=e=>{let a=$y(),[t,o]=sx.default.useState(!1);return a==null||a.hasPeriodicNote(e.month).then(o.bind(void 0)),(0,fx.jsx)(Na,{name:e.month.name,isSelected:!1,isToday:!1,hasPeriodNote:t,onClick:l=>a==null?void 0:a.openNote(l,e.month),onOpenInHorizontalSplitViewClick:l=>a==null?void 0:a.openNoteInHorizontalSplitView(l,e.month),onOpenInVerticalSplitViewClick:l=>a==null?void 0:a.openNoteInVerticalSplitView(l,e.month),onDelete:()=>a==null?void 0:a.deleteNote(e.month)})};var cx=U(ke());var px=U(ce()),mx=e=>{let a=ex(),[t,o]=cx.default.useState(!1);return a==null||a.hasPeriodicNote(e.quarter).then(o.bind(void 0)),(0,px.jsx)(Na,{name:e.quarter.name,isSelected:!1,isToday:!1,hasPeriodNote:t,onClick:l=>a==null?void 0:a.openNote(l,e.quarter),onOpenInHorizontalSplitViewClick:l=>a==null?void 0:a.openNoteInHorizontalSplitView(l,e.quarter),onOpenInVerticalSplitViewClick:l=>a==null?void 0:a.openNoteInVerticalSplitView(l,e.quarter),onDelete:()=>a==null?void 0:a.deleteNote(e.quarter)})};var gx=U(ke());var yx=U(ce()),hx=e=>{let a=ax(),[t,o]=gx.default.useState(!1);return a==null||a.hasPeriodicNote(e.year).then(o.bind(void 0)),(0,yx.jsx)(Na,{name:e.year.name,isSelected:!1,isToday:!1,hasPeriodNote:t,onClick:l=>a==null?void 0:a.openNote(l,e.year),onOpenInHorizontalSplitViewClick:l=>a==null?void 0:a.openNoteInHorizontalSplitView(l,e.year),onOpenInVerticalSplitViewClick:l=>a==null?void 0:a.openNoteInVerticalSplitView(l,e.year),onDelete:()=>a==null?void 0:a.deleteNote(e.year)})};var Cx=U(ke());var xx=U(ke());var Lx=U(ce()),Sx=e=>{let a=jy(),[t,o]=xx.default.useState(!1),l=ja(e.day,e.selectedPeriod),r=ja(e.day,e.today);return a==null||a.hasPeriodicNote(e.day).then(o.bind(void 0)),(0,Lx.jsx)(Na,{name:e.day.name,classNames:e.isSameMonth?[]:["other-month"],isSelected:l,isToday:r,hasPeriodNote:t,onClick:u=>{e.onSelect(e.day),im(u)||a==null||a.openNote(u,e.day)},onOpenInHorizontalSplitViewClick:u=>{e.onSelect(e.day),a==null||a.openNoteInHorizontalSplitView(u,e.day)},onOpenInVerticalSplitViewClick:u=>{e.onSelect(e.day),a==null||a.openNoteInVerticalSplitView(u,e.day)},onDelete:()=>a==null?void 0:a.deleteNote(e.day)})};var Kt=U(ce()),Ix=e=>{let a=Jy(),[t,o]=Cx.default.useState(!1),l=ja(e.selectedPeriod,e.week);return a==null||a.hasPeriodicNote(e.week).then(o.bind(void 0)),(0,Kt.jsxs)("tr",{children:[(0,Kt.jsx)("td",{height:"35",className:"weekNumber",children:(0,Kt.jsx)(Na,{name:e.week.name,isSelected:l,isToday:!1,hasPeriodNote:t,onClick:r=>{e.onSelect(e.week),a==null||a.openNote(r,e.week)},onOpenInHorizontalSplitViewClick:r=>{e.onSelect(e.week),a==null||a.openNoteInHorizontalSplitView(r,e.week)},onOpenInVerticalSplitViewClick:r=>{e.onSelect(e.week),a==null||a.openNoteInVerticalSplitView(r,e.week)},onDelete:()=>a==null?void 0:a.deleteNote(e.week)})}),e.days.map((r,u)=>(0,Kt.jsx)("td",{height:"35",children:(0,Kt.jsx)(Sx,{day:r,selectedPeriod:e.selectedPeriod,today:e.today,isSameMonth:r.date.isSameMonth(e.currentMonth),onSelect:()=>e.onSelect(r)})},u))]})};var J=U(ce()),vx=e=>{var h;let a=Zy(),[t,o]=os.default.useState((h=e.initialCalendar)!=null?h:null),[l,r]=os.default.useState(null);if(os.default.useEffect(()=>{var f;o((f=a==null?void 0:a.getCurrentWeek())!=null?f:null)},[a,o]),!t)return(0,J.jsx)(J.Fragment,{});let u=()=>{var f;return o((f=a==null?void 0:a.getNextWeek(t))!=null?f:null)},i=()=>{var f;return o((f=a==null?void 0:a.getPreviousWeek(t))!=null?f:null)},n=()=>{var f;return o((f=a==null?void 0:a.getCurrentWeek())!=null?f:null)},d=()=>{var f;return o((f=a==null?void 0:a.getNextMonth(t))!=null?f:null)},g=()=>{var f;return o((f=a==null?void 0:a.getPreviousMonth(t))!=null?f:null)};return a==null||a.initializeCallbacks(r,u,i,n,d,g),(0,J.jsxs)("div",{className:"dnc",children:[(0,J.jsxs)("div",{className:"header",children:[(0,J.jsxs)("span",{className:"title",children:[(0,J.jsx)("h1",{children:(0,J.jsx)(dx,{month:t.month})}),(0,J.jsx)("h1",{children:(0,J.jsx)(hx,{year:t.year})})]}),(0,J.jsxs)("div",{className:"buttons",children:[(0,J.jsx)(vr,{size:18,strokeWidth:1,onClick:()=>g()}),(0,J.jsx)(Cr,{size:18,strokeWidth:1,onClick:()=>i()}),(0,J.jsx)(Lr,{size:18,strokeWidth:1,onClick:()=>n()}),(0,J.jsx)(Ir,{size:18,strokeWidth:1,onClick:()=>u()}),(0,J.jsx)(wr,{size:18,strokeWidth:1,onClick:()=>d()})]})]}),(0,J.jsxs)("table",{children:[(0,J.jsx)("thead",{children:(0,J.jsxs)("tr",{children:[(0,J.jsx)("th",{className:"quarter",children:(0,J.jsx)(mx,{quarter:t.quarter})}),t.weekDays.map((f,m)=>(0,J.jsx)("th",{children:f},m))]})}),(0,J.jsx)("tbody",{children:t.weeks.map((f,m)=>(0,J.jsx)(Ix,{week:f,days:f.days,selectedPeriod:l,today:t.today,currentMonth:t.month,onSelect:r},m))})]}),(0,J.jsx)(ix,{period:l})]})};var Mr=U(ce()),bt=class bt extends wx.ItemView{constructor(t,o,l,r,u,i,n,d,g){super(t);this.contextMenuAdapter=o;this.calendarViewModel=l;this.dailyNoteViewModel=r;this.weeklyNoteViewModel=u;this.monthlyNoteViewModel=i;this.quarterlyNoteViewModel=n;this.yearlyNoteViewModel=d;this.notesViewModel=g}getViewType(){return bt.VIEW_TYPE}getDisplayText(){return bt.DISPLAY_TEXT}getIcon(){return bt.ICON_NAME}async onOpen(){let t={calendarViewModel:this.calendarViewModel,dailyNoteViewModel:this.dailyNoteViewModel,weeklyNoteViewModel:this.weeklyNoteViewModel,monthlyNoteViewModel:this.monthlyNoteViewModel,quarterlyNoteViewModel:this.quarterlyNoteViewModel,yearlyNoteViewModel:this.yearlyNoteViewModel,notesViewModel:this.notesViewModel};(0,Mx.createRoot)(this.containerEl.children[1]).render((0,Mr.jsx)(bx.StrictMode,{children:(0,Mr.jsx)(dc.Provider,{value:this.contextMenuAdapter,children:(0,Mr.jsx)(Ka,{value:t,children:(0,Mr.jsx)(vx,{})})})}))}};bt.VIEW_TYPE="daily-note-calendar",bt.DISPLAY_TEXT="Daily note calendar",bt.ICON_NAME="calendar";var Zt=bt;var ls=class{constructor(a){this.id="dnc-display-in-calendar";this.name="Display the current note in the calendar";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=a.getHandler(0)}};var rs=class{constructor(a){this.id="dnc-navigate-to-current-week";this.name="Navigate to current week";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=a.getHandler(1)}};var us=class{constructor(a){this.id="dnc-navigate-to-next-week";this.name="Navigate to the next week";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=a.getHandler(2)}};var is=class{constructor(a){this.id="dnc-navigate-to-previous-week";this.name="Navigate to the previous week";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=a.getHandler(3)}};var ns=class{constructor(a){this.id="dnc-open-yesterdays-note";this.name="Open yesterday's note";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=a.getHandler(6)}};var ss=class{constructor(a){this.id="dnc-open-tomorrows-note";this.name="Open Tomorrow's note";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=a.getHandler(8)}};var ds=class{constructor(a){this.id="dnc-open-weekly-note";this.name="Open weekly note";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=a.getHandler(9)}};var fs=class{constructor(a){this.id="dnc-navigate-to-next-month";this.name="Navigate to the next month";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=a.getHandler(4)}};var cs=class{constructor(a){this.id="dnc-navigate-to-previous-month";this.name="Navigate to the previous month";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=a.getHandler(5)}};var Dx=require("obsidian");var il=require("obsidian"),Dt=class{constructor(a,t){this.settingsTab=a;this.onSettingsChange=t;this.today=new Date}async displaySettings(){this.addHeading(this.title,this.description),await this.addSettings()}addHeading(a,t){new il.Setting(this.settingsTab.containerEl).setHeading().setName(a).setDesc(t)}addBooleanSetting(a,t){new il.Setting(this.settingsTab.containerEl).setName(a.name).setDesc(a.description).addToggle(o=>o.setValue(a.value).onChange(l=>t(l).then(this.onSettingsChange)))}addTextSetting(a,t){new il.Setting(this.settingsTab.containerEl).setName(a.name).setDesc(a.description).addText(o=>o.setPlaceholder(a.placeholder).setValue(a.value).onChange(l=>t(l).then(this.onSettingsChange)))}addDropdownSetting(a,t,o,l,r){new il.Setting(this.settingsTab.containerEl).setName(a).setDesc(t).addDropdown(u=>u.addOptions(Object.fromEntries(o)).setValue(l).onChange(i=>r(i).then(this.onSettingsChange)))}addDateParseSetting(a,t,o){let l=document.createElement("span");l.className="dnc-setting-example",l.setText(t.fromDate(this.today,a.value));let r=new DocumentFragment;r.appendText(a.description),r.append(new DocumentFragment().createEl("br")),r.append("Format example: "),r.append(l),new il.Setting(this.settingsTab.containerEl).setName(a.name).setDesc(r).addText(u=>u.setPlaceholder(a.placeholder).setValue(a.value).onChange(async i=>{l.setText(t.fromDate(this.today,i)),o(i).then(this.onSettingsChange)}))}};var fa=class extends Dt{constructor(t,o,l,r){super(t,o);this.settingsRepository=l;this.dateParser=r}async addSettings(){let t=await this.settingsRepository.get();this.addDateParseSetting(this.getNameTemplateSetting(t.nameTemplate),this.dateParser,async o=>{t.nameTemplate=o,await this.settingsRepository.store(t)}),this.addDateParseSetting(this.getFolderSetting(t.folder),this.dateParser,async o=>{t.folder=o,await this.settingsRepository.store(t)}),this.addTextSetting(this.getTemplateFileSetting(t.templateFile),async o=>{t.templateFile=o,await this.settingsRepository.store(t)})}};var ms=class extends fa{constructor(t,o,l,r){let u=r.getRepository("dailyNote");super(t,o,u,l.getParser());this.title="Daily notes";this.description="Daily notes are created or opened by clicking on any date in the calendar."}getNameTemplateSetting(t){return{name:"Daily note name template",description:"The template used to create the daily note name.",placeholder:"yyyy-MM-dd - eeee",value:t}}getFolderSetting(t){return{name:"Daily notes folder",description:"The folder where you store your daily notes.",placeholder:"yyyy-'Daily notes'",value:t}}getTemplateFileSetting(t){return{name:"Daily note template",description:"The template used to create the daily note.",placeholder:"Templates/daily-note",value:t}}};var ps=class extends fa{constructor(t,o,l,r){let u=r.getRepository("weeklyNote");super(t,o,u,l.getParser());this.title="Weekly notes";this.description="Weekly notes are created or opened by clicking on the week number in the calendar."}getNameTemplateSetting(t){return{name:"Weekly note name template",description:"The template used to create the weekly note name.",placeholder:"yyyy - ww",value:t}}getFolderSetting(t){return{name:"Weekly notes folder",description:"The folder where you store your weekly notes.",placeholder:"Weekly notes",value:t}}getTemplateFileSetting(t){return{name:"Weekly note template",description:"The template used to create the weekly note.",placeholder:"Templates/weekly-note",value:t}}};var gs=class extends fa{constructor(t,o,l,r){let u=r.getRepository("monthlyNote");super(t,o,u,l.getParser());this.title="Monthly notes";this.description="Monthly notes are created or opened by clicking on any month name in the calendar."}getNameTemplateSetting(t){return{name:"Monthly note name template",description:"The template used to create the monthly note name.",placeholder:"yyyy - MM",value:t}}getFolderSetting(t){return{name:"Monthly notes folder",description:"The folder where you store your monthly notes.",placeholder:"Monthly notes",value:t}}getTemplateFileSetting(t){return{name:"Monthly note template",description:"The template used to create the monthly note.",placeholder:"Templates/monthly-note",value:t}}};var hs=class extends fa{constructor(t,o,l,r){let u=r.getRepository("quarterlyNote");super(t,o,u,l.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(t){return{name:"Quarterly note name template",description:"The template used to create the quarterly note name.",placeholder:"yyyy - qqq",value:t}}getFolderSetting(t){return{name:"Quarterly notes folder",description:"The folder where you store your quarterly notes.",placeholder:"Quarterly notes",value:t}}getTemplateFileSetting(t){return{name:"Quarterly note template",description:"The template used to create the quarterly note.",placeholder:"Templates/quarterly-note",value:t}}};var ys=class extends fa{constructor(t,o,l,r){let u=r.getRepository("yearlyNote");super(t,o,u,l.getParser());this.title="Yearly notes";this.description="Yearly notes are created or opened by clicking on the week number in the calendar."}getNameTemplateSetting(t){return{name:"Yearly note name template",description:"The template used to create the yearly note name.",placeholder:"yyyy",value:t}}getFolderSetting(t){return{name:"Yearly notes folder",description:"The folder where you store your yearly notes.",placeholder:"Yearly notes",value:t}}getTemplateFileSetting(t){return{name:"Yearly note template",description:"The template used to create the yearly note.",placeholder:"Templates/yearly-note",value:t}}};var xs=class extends Dt{constructor(t,o,l,r){super(t,o);this.dateParserFactory=l;this.settingsRepositoryFactory=r;this.title="Notes settings";this.description="Settings for the notes that are displayed below the calendar."}async addSettings(){let t=this.dateParserFactory.getParser(),o=this.settingsRepositoryFactory.getRepository("displayNotes"),l=await o.get();this.addSortOrderSetting(l.sortNotes,async r=>{l.sortNotes=r,await o.store(l)}),this.addDateParseSetting(this.getDisplayDateTemplateSetting(l.displayDateTemplate),t,async r=>{l.displayDateTemplate=r,await o.store(l)}),this.addBooleanSetting(this.getUseCreatedOnDateFromPropertiesSetting(l.useCreatedOnDateFromProperties),async r=>{l.useCreatedOnDateFromProperties=r,await o.store(l)}),this.addTextSetting(this.getCreatedOnDatePropertyNameSetting(l.createdOnDatePropertyName),async r=>{l.createdOnDatePropertyName=r,await o.store(l)}),this.addDateParseSetting(this.getCreatedOnPropertyFormatSetting(l.createdOnPropertyFormat),t,async r=>{l.createdOnPropertyFormat=r,await o.store(l)})}getDisplayDateTemplateSetting(t){return{name:"Display date template",description:"The template to use when displaying the date of the note.",placeholder:"HH:mm",value:t}}getUseCreatedOnDateFromPropertiesSetting(t){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:t}}getCreatedOnDatePropertyNameSetting(t){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:t}}getCreatedOnPropertyFormatSetting(t){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:t}}addSortOrderSetting(t,o){let l=new Map;l.set("ascending","Ascending"),l.set("descending","Descending"),this.addDropdownSetting("Display order for the notes","The order in which the notes will be ordered based on the created date.",l,t.toLowerCase(),async r=>r.toLowerCase()==="ascending"?await o("ascending"):await o("descending"))}};var Ss=class extends Dt{constructor(t,o,l){super(t,o);this.settingsTab=t;this.settingsRepositoryFactory=l;this.title="General";this.description="General settings for the Daily Note Calendar plugin."}async addSettings(){let t=this.settingsRepositoryFactory.getRepository("general"),o=await t.get();this.addBooleanSetting(this.getNotesCreatedOnDateSetting(o.displayNotesCreatedOnDate),async l=>{o.displayNotesCreatedOnDate=l,await t.store(o)}),this.addBooleanSetting(this.getDisplayNoteIndicatorSetting(o.displayNoteIndicator),async l=>{o.displayNoteIndicator=l,await t.store(o)}),this.addStartDayOfWeekSetting(o.firstDayOfWeek,async l=>{o.firstDayOfWeek=l,await t.store(o)}),this.addWeekNumberStandardSetting(o.weekNumberStandard,async l=>{o.weekNumberStandard=l,await t.store(o)}),this.addBooleanSetting(this.getUseModifierKeyToCreateNoteSetting(o.useModifierKeyToCreateNote),async l=>{o.useModifierKeyToCreateNote=l,await t.store(o)})}getNotesCreatedOnDateSetting(t){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:t}}getDisplayNoteIndicatorSetting(t){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:t}}addStartDayOfWeekSetting(t,o){let l=new Map;l.set("monday",this.dayOfWeekName(1)),l.set("tuesday",this.dayOfWeekName(2)),l.set("wednesday",this.dayOfWeekName(3)),l.set("thursday",this.dayOfWeekName(4)),l.set("friday",this.dayOfWeekName(5)),l.set("saturday",this.dayOfWeekName(6)),l.set("sunday",this.dayOfWeekName(0)),this.addDropdownSetting("First day of the week","Set the first day of the week for the calendar.",l,this.dayOfWeekName(t).toLowerCase(),async r=>await o(this.dayOfWeek(r)))}addWeekNumberStandardSetting(t,o){let l=new Map;l.set(0 .toString(),this.weekNumberStandardName(0)),l.set(1 .toString(),this.weekNumberStandardName(1)),this.addDropdownSetting("Week number standard","Set the week number standard for the calendar.",l,t.toString(),async r=>await o(this.weekNumberStandard(r)))}getUseModifierKeyToCreateNoteSetting(t){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:t}}dayOfWeekName(t){switch(t){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(t){switch(t.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}}weekNumberStandard(t){return t.toLowerCase()===1 .toString()?1:0}weekNumberStandardName(t){return t===1?"US":"ISO 8601"}};var Ls=class extends Dx.PluginSettingTab{constructor(t,o,l,r){super(t.app,t);this.settings=[];this.settings.push(new Ss(this,r,l)),this.settings.push(new xs(this,r,o,l)),this.settings.push(new ms(this,r,o,l)),this.settings.push(new ps(this,r,o,l)),this.settings.push(new gs(this,r,o,l)),this.settings.push(new hs(this,r,o,l)),this.settings.push(new ys(this,r,o,l))}async display(){this.containerEl.empty();for(let t=0;t<this.settings.length;t++)await this.settings[t].displaySettings(),t<this.settings.length-1&&this.displaySeparator()}displaySeparator(){this.containerEl.createEl("hr")}};var Cs=class{constructor(a){this.id="dnc-open-todays-note";this.name="Open Today's note";this.callback=()=>{this.commandHandler.execute().catch()};this.commandHandler=a.getHandler(7)}};var Is=class extends Tx.Plugin{constructor(){super(...arguments);this.dependencies=dm(this)}async onload(){let t=o=>new Zt(o,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(Zt.VIEW_TYPE,o=>t(o)),this.registerSettings(),this.registerCommands(),this.app.workspace.onLayoutReady(this.onLayoutReady.bind(this))}async initializePlugin(){let t=this.dependencies.dateManagerFactory.getManager().getCurrentDay(),o=await this.dependencies.settingsRepositoryFactory.getRepository("plugin").get();this.dependencies.calendarViewModel.initialize(o,t),this.dependencies.dailyNoteViewModel.updateSettings(o),this.dependencies.weeklyNoteViewModel.updateSettings(o),this.dependencies.monthlyNoteViewModel.updateSettings(o),this.dependencies.quarterlyNoteViewModel.updateSettings(o),this.dependencies.yearlyNoteViewModel.updateSettings(o)}onLayoutReady(){this.registerPlugin(),this.app.vault.on("create",()=>{var t;return(t=this.dependencies.notesViewModel.updateNotes)==null?void 0:t.call(this)}),this.app.vault.on("delete",()=>{var t;return(t=this.dependencies.notesViewModel.updateNotes)==null?void 0:t.call(this)}),this.app.vault.on("rename",()=>{var t;return(t=this.dependencies.notesViewModel.updateNotes)==null?void 0:t.call(this)})}registerPlugin(){var t;this.app.workspace.getLeavesOfType(Zt.VIEW_TYPE).length<=0&&((t=this.app.workspace.getRightLeaf(!1))==null||t.setViewState({type:Zt.VIEW_TYPE}))}registerSettings(){let t=new Ls(this,this.dependencies.dateParserFactory,this.dependencies.settingsRepositoryFactory,()=>{});this.addSettingTab(t)}registerCommands(){this.addCommand(new ls(this.dependencies.commandHandlerFactory)),this.addCommand(new rs(this.dependencies.commandHandlerFactory)),this.addCommand(new us(this.dependencies.commandHandlerFactory)),this.addCommand(new is(this.dependencies.commandHandlerFactory)),this.addCommand(new fs(this.dependencies.commandHandlerFactory)),this.addCommand(new cs(this.dependencies.commandHandlerFactory)),this.addCommand(new ns(this.dependencies.commandHandlerFactory)),this.addCommand(new Cs(this.dependencies.commandHandlerFactory)),this.addCommand(new ss(this.dependencies.commandHandlerFactory)),this.addCommand(new ds(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:
|
|
lucide-react/dist/esm/defaultAttributes.js:
|
|
lucide-react/dist/esm/Icon.js:
|
|
lucide-react/dist/esm/createLucideIcon.js:
|
|
lucide-react/dist/esm/icons/calendar-heart.js:
|
|
lucide-react/dist/esm/icons/chevron-left.js:
|
|
lucide-react/dist/esm/icons/chevron-right.js:
|
|
lucide-react/dist/esm/icons/chevrons-left.js:
|
|
lucide-react/dist/esm/icons/chevrons-right.js:
|
|
lucide-react/dist/esm/lucide-react.js:
|
|
(**
|
|
* @license lucide-react v0.540.0 - ISC
|
|
*
|
|
* This source code is licensed under the ISC license.
|
|
* See the LICENSE file in the root directory of this source tree.
|
|
*)
|
|
*/
|
|
|
|
/* nosourcemap */ |