@frehilm/ordna-web 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/routes.d.ts +11 -1
- package/dist/server/routes.d.ts.map +1 -1
- package/dist/server/routes.js +44 -14
- package/dist/server/routes.js.map +1 -1
- package/dist/server/start.d.ts +9 -1
- package/dist/server/start.d.ts.map +1 -1
- package/dist/server/start.js +194 -21
- package/dist/server/start.js.map +1 -1
- package/dist/shared/types.d.ts +14 -0
- package/dist/shared/types.d.ts.map +1 -1
- package/dist/shared/types.js.map +1 -1
- package/dist-client/assets/index-Bx13MxjS.js +46 -0
- package/dist-client/assets/{index-DvlkoHQd.css → index-Ukabq_e8.css} +1 -1
- package/dist-client/index.html +2 -2
- package/package.json +2 -2
- package/dist-client/assets/index-BVc4jYil.js +0 -46
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
(function(){const s=document.createElement("link").relList;if(s&&s.supports&&s.supports("modulepreload"))return;for(const f of document.querySelectorAll('link[rel="modulepreload"]'))c(f);new MutationObserver(f=>{for(const h of f)if(h.type==="childList")for(const y of h.addedNodes)y.tagName==="LINK"&&y.rel==="modulepreload"&&c(y)}).observe(document,{childList:!0,subtree:!0});function u(f){const h={};return f.integrity&&(h.integrity=f.integrity),f.referrerPolicy&&(h.referrerPolicy=f.referrerPolicy),f.crossOrigin==="use-credentials"?h.credentials="include":f.crossOrigin==="anonymous"?h.credentials="omit":h.credentials="same-origin",h}function c(f){if(f.ep)return;f.ep=!0;const h=u(f);fetch(f.href,h)}})();function Mp(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var Os={exports:{}},vl={},zs={exports:{}},ve={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Lc;function Lp(){if(Lc)return ve;Lc=1;var l=Symbol.for("react.element"),s=Symbol.for("react.portal"),u=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),h=Symbol.for("react.provider"),y=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),w=Symbol.for("react.suspense"),N=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),R=Symbol.iterator;function U(x){return x===null||typeof x!="object"?null:(x=R&&x[R]||x["@@iterator"],typeof x=="function"?x:null)}var D={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},I=Object.assign,T={};function F(x,_,ie){this.props=x,this.context=_,this.refs=T,this.updater=ie||D}F.prototype.isReactComponent={},F.prototype.setState=function(x,_){if(typeof x!="object"&&typeof x!="function"&&x!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,x,_,"setState")},F.prototype.forceUpdate=function(x){this.updater.enqueueForceUpdate(this,x,"forceUpdate")};function V(){}V.prototype=F.prototype;function Y(x,_,ie){this.props=x,this.context=_,this.refs=T,this.updater=ie||D}var re=Y.prototype=new V;re.constructor=Y,I(re,F.prototype),re.isPureReactComponent=!0;var G=Array.isArray,ue=Object.prototype.hasOwnProperty,le={current:null},Z={key:!0,ref:!0,__self:!0,__source:!0};function te(x,_,ie){var ae,de={},oe=null,ke=null;if(_!=null)for(ae in _.ref!==void 0&&(ke=_.ref),_.key!==void 0&&(oe=""+_.key),_)ue.call(_,ae)&&!Z.hasOwnProperty(ae)&&(de[ae]=_[ae]);var he=arguments.length-2;if(he===1)de.children=ie;else if(1<he){for(var Ne=Array(he),Re=0;Re<he;Re++)Ne[Re]=arguments[Re+2];de.children=Ne}if(x&&x.defaultProps)for(ae in he=x.defaultProps,he)de[ae]===void 0&&(de[ae]=he[ae]);return{$$typeof:l,type:x,key:oe,ref:ke,props:de,_owner:le.current}}function me(x,_){return{$$typeof:l,type:x.type,key:_,ref:x.ref,props:x.props,_owner:x._owner}}function ye(x){return typeof x=="object"&&x!==null&&x.$$typeof===l}function z(x){var _={"=":"=0",":":"=2"};return"$"+x.replace(/[=:]/g,function(ie){return _[ie]})}var ne=/\/+/g;function ge(x,_){return typeof x=="object"&&x!==null&&x.key!=null?z(""+x.key):_.toString(36)}function Ce(x,_,ie,ae,de){var oe=typeof x;(oe==="undefined"||oe==="boolean")&&(x=null);var ke=!1;if(x===null)ke=!0;else switch(oe){case"string":case"number":ke=!0;break;case"object":switch(x.$$typeof){case l:case s:ke=!0}}if(ke)return ke=x,de=de(ke),x=ae===""?"."+ge(ke,0):ae,G(de)?(ie="",x!=null&&(ie=x.replace(ne,"$&/")+"/"),Ce(de,_,ie,"",function(Re){return Re})):de!=null&&(ye(de)&&(de=me(de,ie+(!de.key||ke&&ke.key===de.key?"":(""+de.key).replace(ne,"$&/")+"/")+x)),_.push(de)),1;if(ke=0,ae=ae===""?".":ae+":",G(x))for(var he=0;he<x.length;he++){oe=x[he];var Ne=ae+ge(oe,he);ke+=Ce(oe,_,ie,Ne,de)}else if(Ne=U(x),typeof Ne=="function")for(x=Ne.call(x),he=0;!(oe=x.next()).done;)oe=oe.value,Ne=ae+ge(oe,he++),ke+=Ce(oe,_,ie,Ne,de);else if(oe==="object")throw _=String(x),Error("Objects are not valid as a React child (found: "+(_==="[object Object]"?"object with keys {"+Object.keys(x).join(", ")+"}":_)+"). If you meant to render a collection of children, use an array instead.");return ke}function Le(x,_,ie){if(x==null)return x;var ae=[],de=0;return Ce(x,ae,"","",function(oe){return _.call(ie,oe,de++)}),ae}function fe(x){if(x._status===-1){var _=x._result;_=_(),_.then(function(ie){(x._status===0||x._status===-1)&&(x._status=1,x._result=ie)},function(ie){(x._status===0||x._status===-1)&&(x._status=2,x._result=ie)}),x._status===-1&&(x._status=0,x._result=_)}if(x._status===1)return x._result.default;throw x._result}var pe={current:null},$={transition:null},J={ReactCurrentDispatcher:pe,ReactCurrentBatchConfig:$,ReactCurrentOwner:le};function W(){throw Error("act(...) is not supported in production builds of React.")}return ve.Children={map:Le,forEach:function(x,_,ie){Le(x,function(){_.apply(this,arguments)},ie)},count:function(x){var _=0;return Le(x,function(){_++}),_},toArray:function(x){return Le(x,function(_){return _})||[]},only:function(x){if(!ye(x))throw Error("React.Children.only expected to receive a single React element child.");return x}},ve.Component=F,ve.Fragment=u,ve.Profiler=f,ve.PureComponent=Y,ve.StrictMode=c,ve.Suspense=w,ve.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J,ve.act=W,ve.cloneElement=function(x,_,ie){if(x==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+x+".");var ae=I({},x.props),de=x.key,oe=x.ref,ke=x._owner;if(_!=null){if(_.ref!==void 0&&(oe=_.ref,ke=le.current),_.key!==void 0&&(de=""+_.key),x.type&&x.type.defaultProps)var he=x.type.defaultProps;for(Ne in _)ue.call(_,Ne)&&!Z.hasOwnProperty(Ne)&&(ae[Ne]=_[Ne]===void 0&&he!==void 0?he[Ne]:_[Ne])}var Ne=arguments.length-2;if(Ne===1)ae.children=ie;else if(1<Ne){he=Array(Ne);for(var Re=0;Re<Ne;Re++)he[Re]=arguments[Re+2];ae.children=he}return{$$typeof:l,type:x.type,key:de,ref:oe,props:ae,_owner:ke}},ve.createContext=function(x){return x={$$typeof:y,_currentValue:x,_currentValue2:x,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},x.Provider={$$typeof:h,_context:x},x.Consumer=x},ve.createElement=te,ve.createFactory=function(x){var _=te.bind(null,x);return _.type=x,_},ve.createRef=function(){return{current:null}},ve.forwardRef=function(x){return{$$typeof:v,render:x}},ve.isValidElement=ye,ve.lazy=function(x){return{$$typeof:j,_payload:{_status:-1,_result:x},_init:fe}},ve.memo=function(x,_){return{$$typeof:N,type:x,compare:_===void 0?null:_}},ve.startTransition=function(x){var _=$.transition;$.transition={};try{x()}finally{$.transition=_}},ve.unstable_act=W,ve.useCallback=function(x,_){return pe.current.useCallback(x,_)},ve.useContext=function(x){return pe.current.useContext(x)},ve.useDebugValue=function(){},ve.useDeferredValue=function(x){return pe.current.useDeferredValue(x)},ve.useEffect=function(x,_){return pe.current.useEffect(x,_)},ve.useId=function(){return pe.current.useId()},ve.useImperativeHandle=function(x,_,ie){return pe.current.useImperativeHandle(x,_,ie)},ve.useInsertionEffect=function(x,_){return pe.current.useInsertionEffect(x,_)},ve.useLayoutEffect=function(x,_){return pe.current.useLayoutEffect(x,_)},ve.useMemo=function(x,_){return pe.current.useMemo(x,_)},ve.useReducer=function(x,_,ie){return pe.current.useReducer(x,_,ie)},ve.useRef=function(x){return pe.current.useRef(x)},ve.useState=function(x){return pe.current.useState(x)},ve.useSyncExternalStore=function(x,_,ie){return pe.current.useSyncExternalStore(x,_,ie)},ve.useTransition=function(){return pe.current.useTransition()},ve.version="18.3.1",ve}var Oc;function Ks(){return Oc||(Oc=1,zs.exports=Lp()),zs.exports}/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var zc;function Op(){if(zc)return vl;zc=1;var l=Ks(),s=Symbol.for("react.element"),u=Symbol.for("react.fragment"),c=Object.prototype.hasOwnProperty,f=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,h={key:!0,ref:!0,__self:!0,__source:!0};function y(v,w,N){var j,R={},U=null,D=null;N!==void 0&&(U=""+N),w.key!==void 0&&(U=""+w.key),w.ref!==void 0&&(D=w.ref);for(j in w)c.call(w,j)&&!h.hasOwnProperty(j)&&(R[j]=w[j]);if(v&&v.defaultProps)for(j in w=v.defaultProps,w)R[j]===void 0&&(R[j]=w[j]);return{$$typeof:s,type:v,key:U,ref:D,props:R,_owner:f.current}}return vl.Fragment=u,vl.jsx=y,vl.jsxs=y,vl}var Ic;function zp(){return Ic||(Ic=1,Os.exports=Op()),Os.exports}var d=zp(),S=Ks();const We=Mp(S);var Ai={},Is={exports:{}},kt={},As={exports:{}},Fs={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Ac;function Ip(){return Ac||(Ac=1,(function(l){function s($,J){var W=$.length;$.push(J);e:for(;0<W;){var x=W-1>>>1,_=$[x];if(0<f(_,J))$[x]=J,$[W]=_,W=x;else break e}}function u($){return $.length===0?null:$[0]}function c($){if($.length===0)return null;var J=$[0],W=$.pop();if(W!==J){$[0]=W;e:for(var x=0,_=$.length,ie=_>>>1;x<ie;){var ae=2*(x+1)-1,de=$[ae],oe=ae+1,ke=$[oe];if(0>f(de,W))oe<_&&0>f(ke,de)?($[x]=ke,$[oe]=W,x=oe):($[x]=de,$[ae]=W,x=ae);else if(oe<_&&0>f(ke,W))$[x]=ke,$[oe]=W,x=oe;else break e}}return J}function f($,J){var W=$.sortIndex-J.sortIndex;return W!==0?W:$.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var h=performance;l.unstable_now=function(){return h.now()}}else{var y=Date,v=y.now();l.unstable_now=function(){return y.now()-v}}var w=[],N=[],j=1,R=null,U=3,D=!1,I=!1,T=!1,F=typeof setTimeout=="function"?setTimeout:null,V=typeof clearTimeout=="function"?clearTimeout:null,Y=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function re($){for(var J=u(N);J!==null;){if(J.callback===null)c(N);else if(J.startTime<=$)c(N),J.sortIndex=J.expirationTime,s(w,J);else break;J=u(N)}}function G($){if(T=!1,re($),!I)if(u(w)!==null)I=!0,fe(ue);else{var J=u(N);J!==null&&pe(G,J.startTime-$)}}function ue($,J){I=!1,T&&(T=!1,V(te),te=-1),D=!0;var W=U;try{for(re(J),R=u(w);R!==null&&(!(R.expirationTime>J)||$&&!z());){var x=R.callback;if(typeof x=="function"){R.callback=null,U=R.priorityLevel;var _=x(R.expirationTime<=J);J=l.unstable_now(),typeof _=="function"?R.callback=_:R===u(w)&&c(w),re(J)}else c(w);R=u(w)}if(R!==null)var ie=!0;else{var ae=u(N);ae!==null&&pe(G,ae.startTime-J),ie=!1}return ie}finally{R=null,U=W,D=!1}}var le=!1,Z=null,te=-1,me=5,ye=-1;function z(){return!(l.unstable_now()-ye<me)}function ne(){if(Z!==null){var $=l.unstable_now();ye=$;var J=!0;try{J=Z(!0,$)}finally{J?ge():(le=!1,Z=null)}}else le=!1}var ge;if(typeof Y=="function")ge=function(){Y(ne)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,Le=Ce.port2;Ce.port1.onmessage=ne,ge=function(){Le.postMessage(null)}}else ge=function(){F(ne,0)};function fe($){Z=$,le||(le=!0,ge())}function pe($,J){te=F(function(){$(l.unstable_now())},J)}l.unstable_IdlePriority=5,l.unstable_ImmediatePriority=1,l.unstable_LowPriority=4,l.unstable_NormalPriority=3,l.unstable_Profiling=null,l.unstable_UserBlockingPriority=2,l.unstable_cancelCallback=function($){$.callback=null},l.unstable_continueExecution=function(){I||D||(I=!0,fe(ue))},l.unstable_forceFrameRate=function($){0>$||125<$?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):me=0<$?Math.floor(1e3/$):5},l.unstable_getCurrentPriorityLevel=function(){return U},l.unstable_getFirstCallbackNode=function(){return u(w)},l.unstable_next=function($){switch(U){case 1:case 2:case 3:var J=3;break;default:J=U}var W=U;U=J;try{return $()}finally{U=W}},l.unstable_pauseExecution=function(){},l.unstable_requestPaint=function(){},l.unstable_runWithPriority=function($,J){switch($){case 1:case 2:case 3:case 4:case 5:break;default:$=3}var W=U;U=$;try{return J()}finally{U=W}},l.unstable_scheduleCallback=function($,J,W){var x=l.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?x+W:x):W=x,$){case 1:var _=-1;break;case 2:_=250;break;case 5:_=1073741823;break;case 4:_=1e4;break;default:_=5e3}return _=W+_,$={id:j++,callback:J,priorityLevel:$,startTime:W,expirationTime:_,sortIndex:-1},W>x?($.sortIndex=W,s(N,$),u(w)===null&&$===u(N)&&(T?(V(te),te=-1):T=!0,pe(G,W-x))):($.sortIndex=_,s(w,$),I||D||(I=!0,fe(ue))),$},l.unstable_shouldYield=z,l.unstable_wrapCallback=function($){var J=U;return function(){var W=U;U=J;try{return $.apply(this,arguments)}finally{U=W}}}})(Fs)),Fs}var Fc;function Ap(){return Fc||(Fc=1,As.exports=Ip()),As.exports}/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var Uc;function Fp(){if(Uc)return kt;Uc=1;var l=Ks(),s=Ap();function u(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var c=new Set,f={};function h(e,t){y(e,t),y(e+"Capture",t)}function y(e,t){for(f[e]=t,e=0;e<t.length;e++)c.add(t[e])}var v=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),w=Object.prototype.hasOwnProperty,N=/^[: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]*$/,j={},R={};function U(e){return w.call(R,e)?!0:w.call(j,e)?!1:N.test(e)?R[e]=!0:(j[e]=!0,!1)}function D(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function I(e,t,n,r){if(t===null||typeof t>"u"||D(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function T(e,t,n,r,i,o,a){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var F={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){F[e]=new T(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];F[t]=new T(t,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){F[e]=new T(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){F[e]=new T(e,2,!1,e,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){F[e]=new T(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){F[e]=new T(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){F[e]=new T(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){F[e]=new T(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){F[e]=new T(e,5,!1,e.toLowerCase(),null,!1,!1)});var V=/[\-:]([a-z])/g;function Y(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(V,Y);F[t]=new T(t,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(V,Y);F[t]=new T(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(V,Y);F[t]=new T(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){F[e]=new T(e,1,!1,e.toLowerCase(),null,!1,!1)}),F.xlinkHref=new T("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){F[e]=new T(e,1,!1,e.toLowerCase(),null,!0,!0)});function re(e,t,n,r){var i=F.hasOwnProperty(t)?F[t]:null;(i!==null?i.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(I(t,n,i,r)&&(n=null),r||i===null?U(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var G=l.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ue=Symbol.for("react.element"),le=Symbol.for("react.portal"),Z=Symbol.for("react.fragment"),te=Symbol.for("react.strict_mode"),me=Symbol.for("react.profiler"),ye=Symbol.for("react.provider"),z=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),ge=Symbol.for("react.suspense"),Ce=Symbol.for("react.suspense_list"),Le=Symbol.for("react.memo"),fe=Symbol.for("react.lazy"),pe=Symbol.for("react.offscreen"),$=Symbol.iterator;function J(e){return e===null||typeof e!="object"?null:(e=$&&e[$]||e["@@iterator"],typeof e=="function"?e:null)}var W=Object.assign,x;function _(e){if(x===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);x=t&&t[1]||""}return`
|
|
34
|
+
`+x+e}var ie=!1;function ae(e,t){if(!e||ie)return"";ie=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(E){var r=E}Reflect.construct(e,[],t)}else{try{t.call()}catch(E){r=E}e.call(t.prototype)}else{try{throw Error()}catch(E){r=E}e()}}catch(E){if(E&&r&&typeof E.stack=="string"){for(var i=E.stack.split(`
|
|
35
|
+
`),o=r.stack.split(`
|
|
36
|
+
`),a=i.length-1,p=o.length-1;1<=a&&0<=p&&i[a]!==o[p];)p--;for(;1<=a&&0<=p;a--,p--)if(i[a]!==o[p]){if(a!==1||p!==1)do if(a--,p--,0>p||i[a]!==o[p]){var m=`
|
|
37
|
+
`+i[a].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),m}while(1<=a&&0<=p);break}}}finally{ie=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?_(e):""}function de(e){switch(e.tag){case 5:return _(e.type);case 16:return _("Lazy");case 13:return _("Suspense");case 19:return _("SuspenseList");case 0:case 2:case 15:return e=ae(e.type,!1),e;case 11:return e=ae(e.type.render,!1),e;case 1:return e=ae(e.type,!0),e;default:return""}}function oe(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Z:return"Fragment";case le:return"Portal";case me:return"Profiler";case te:return"StrictMode";case ge:return"Suspense";case Ce:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case z:return(e.displayName||"Context")+".Consumer";case ye:return(e._context.displayName||"Context")+".Provider";case ne:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Le:return t=e.displayName||null,t!==null?t:oe(e.type)||"Memo";case fe:t=e._payload,e=e._init;try{return oe(e(t))}catch{}}return null}function ke(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return oe(t);case 8:return t===te?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function he(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Ne(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Re(e){var t=Ne(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(a){r=""+a,o.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function bt(e){e._valueTracker||(e._valueTracker=Re(e))}function Ct(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Ne(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Gt(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function O(e,t){var n=t.checked;return W({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function B(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=he(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function ce(e,t){t=t.checked,t!=null&&re(e,"checked",t,!1)}function we(e,t){ce(e,t);var n=he(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Be(e,t.type,n):t.hasOwnProperty("defaultValue")&&Be(e,t.type,he(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function ct(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Be(e,t,n){(t!=="number"||Gt(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ee=Array.isArray;function Fe(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+he(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function gn(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(u(91));return W({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function _r(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(u(92));if(Ee(n)){if(1<n.length)throw Error(u(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:he(n)}}function Tr(e,t){var n=he(t.value),r=he(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=""+r)}function Rl(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Dl(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Jt(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Dl(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var At,yn=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e})(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(At=At||document.createElement("div"),At.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=At.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function wn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var vt={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},_l=["Webkit","ms","Moz","O"];Object.keys(vt).forEach(function(e){_l.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),vt[t]=vt[e]})});function Tl(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||vt.hasOwnProperty(e)&&vt[e]?(""+t).trim():t+"px"}function Pl(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Tl(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Pr=W({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function tr(e,t){if(t){if(Pr[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(u(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(u(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(u(61))}if(t.style!=null&&typeof t.style!="object")throw Error(u(62))}}function Mr(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";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 nr=null;function Lr(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Or=null,xn=null,Oe=null;function nt(e){if(e=el(e)){if(typeof Or!="function")throw Error(u(280));var t=e.stateNode;t&&(t=Zl(t),Or(e.stateNode,e.type,t))}}function rt(e){xn?Oe?Oe.push(e):Oe=[e]:xn=e}function Ft(){if(xn){var e=xn,t=Oe;if(Oe=xn=null,nt(e),t)for(e=0;e<t.length;e++)nt(t[e])}}function dt(e,t){return e(t)}function lt(){}var mt=!1;function on(e,t,n){if(mt)return e(t,n);mt=!0;try{return dt(e,t,n)}finally{mt=!1,(xn!==null||Oe!==null)&&(lt(),Ft())}}function ze(e,t){var n=e.stateNode;if(n===null)return null;var r=Zl(n);if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(u(231,t,typeof n));return n}var _t=!1;if(v)try{var it={};Object.defineProperty(it,"passive",{get:function(){_t=!0}}),window.addEventListener("test",it,it),window.removeEventListener("test",it,it)}catch{_t=!1}function Ut(e,t,n,r,i,o,a,p,m){var E=Array.prototype.slice.call(arguments,3);try{t.apply(n,E)}catch(M){this.onError(M)}}var Bt=!1,Zt=null,Et=!1,sn=null,zr={onError:function(e){Bt=!0,Zt=e}};function Ud(e,t,n,r,i,o,a,p,m){Bt=!1,Zt=null,Ut.apply(zr,arguments)}function Bd(e,t,n,r,i,o,a,p,m){if(Ud.apply(this,arguments),Bt){if(Bt){var E=Zt;Bt=!1,Zt=null}else throw Error(u(198));Et||(Et=!0,sn=E)}}function $n(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function nu(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function ru(e){if($n(e)!==e)throw Error(u(188))}function $d(e){var t=e.alternate;if(!t){if(t=$n(e),t===null)throw Error(u(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return ru(i),e;if(o===r)return ru(i),t;o=o.sibling}throw Error(u(188))}if(n.return!==r.return)n=i,r=o;else{for(var a=!1,p=i.child;p;){if(p===n){a=!0,n=i,r=o;break}if(p===r){a=!0,r=i,n=o;break}p=p.sibling}if(!a){for(p=o.child;p;){if(p===n){a=!0,n=o,r=i;break}if(p===r){a=!0,r=o,n=i;break}p=p.sibling}if(!a)throw Error(u(189))}}if(n.alternate!==r)throw Error(u(190))}if(n.tag!==3)throw Error(u(188));return n.stateNode.current===n?e:t}function lu(e){return e=$d(e),e!==null?iu(e):null}function iu(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=iu(e);if(t!==null)return t;e=e.sibling}return null}var ou=s.unstable_scheduleCallback,su=s.unstable_cancelCallback,Vd=s.unstable_shouldYield,Wd=s.unstable_requestPaint,$e=s.unstable_now,Hd=s.unstable_getCurrentPriorityLevel,qi=s.unstable_ImmediatePriority,uu=s.unstable_UserBlockingPriority,Ml=s.unstable_NormalPriority,Qd=s.unstable_LowPriority,au=s.unstable_IdlePriority,Ll=null,qt=null;function Kd(e){if(qt&&typeof qt.onCommitFiberRoot=="function")try{qt.onCommitFiberRoot(Ll,e,void 0,(e.current.flags&128)===128)}catch{}}var $t=Math.clz32?Math.clz32:bd,Xd=Math.log,Yd=Math.LN2;function bd(e){return e>>>=0,e===0?32:31-(Xd(e)/Yd|0)|0}var Ol=64,zl=4194304;function Ir(e){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:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Il(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=n&268435455;if(a!==0){var p=a&~i;p!==0?r=Ir(p):(o&=a,o!==0&&(r=Ir(o)))}else a=n&~i,a!==0?r=Ir(a):o!==0&&(r=Ir(o));if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if((r&4)!==0&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-$t(t),i=1<<n,r|=e[n],t&=~i;return r}function Gd(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Jd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-$t(o),p=1<<a,m=i[a];m===-1?((p&n)===0||(p&r)!==0)&&(i[a]=Gd(p,t)):m<=t&&(e.expiredLanes|=p),o&=~p}}function eo(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function cu(){var e=Ol;return Ol<<=1,(Ol&4194240)===0&&(Ol=64),e}function to(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ar(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-$t(t),e[t]=n}function Zd(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-$t(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}function no(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-$t(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var je=0;function du(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var fu,ro,pu,hu,vu,lo=!1,Al=[],Sn=null,kn=null,Cn=null,Fr=new Map,Ur=new Map,En=[],qd="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 submit".split(" ");function mu(e,t){switch(e){case"focusin":case"focusout":Sn=null;break;case"dragenter":case"dragleave":kn=null;break;case"mouseover":case"mouseout":Cn=null;break;case"pointerover":case"pointerout":Fr.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ur.delete(t.pointerId)}}function Br(e,t,n,r,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},t!==null&&(t=el(t),t!==null&&ro(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function ef(e,t,n,r,i){switch(t){case"focusin":return Sn=Br(Sn,e,t,n,r,i),!0;case"dragenter":return kn=Br(kn,e,t,n,r,i),!0;case"mouseover":return Cn=Br(Cn,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Fr.set(o,Br(Fr.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Ur.set(o,Br(Ur.get(o)||null,e,t,n,r,i)),!0}return!1}function gu(e){var t=Vn(e.target);if(t!==null){var n=$n(t);if(n!==null){if(t=n.tag,t===13){if(t=nu(n),t!==null){e.blockedOn=t,vu(e.priority,function(){pu(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fl(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=oo(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);nr=r,n.target.dispatchEvent(r),nr=null}else return t=el(n),t!==null&&ro(t),e.blockedOn=n,!1;t.shift()}return!0}function yu(e,t,n){Fl(e)&&n.delete(t)}function tf(){lo=!1,Sn!==null&&Fl(Sn)&&(Sn=null),kn!==null&&Fl(kn)&&(kn=null),Cn!==null&&Fl(Cn)&&(Cn=null),Fr.forEach(yu),Ur.forEach(yu)}function $r(e,t){e.blockedOn===t&&(e.blockedOn=null,lo||(lo=!0,s.unstable_scheduleCallback(s.unstable_NormalPriority,tf)))}function Vr(e){function t(i){return $r(i,e)}if(0<Al.length){$r(Al[0],e);for(var n=1;n<Al.length;n++){var r=Al[n];r.blockedOn===e&&(r.blockedOn=null)}}for(Sn!==null&&$r(Sn,e),kn!==null&&$r(kn,e),Cn!==null&&$r(Cn,e),Fr.forEach(t),Ur.forEach(t),n=0;n<En.length;n++)r=En[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<En.length&&(n=En[0],n.blockedOn===null);)gu(n),n.blockedOn===null&&En.shift()}var rr=G.ReactCurrentBatchConfig,Ul=!0;function nf(e,t,n,r){var i=je,o=rr.transition;rr.transition=null;try{je=1,io(e,t,n,r)}finally{je=i,rr.transition=o}}function rf(e,t,n,r){var i=je,o=rr.transition;rr.transition=null;try{je=4,io(e,t,n,r)}finally{je=i,rr.transition=o}}function io(e,t,n,r){if(Ul){var i=oo(e,t,n,r);if(i===null)Eo(e,t,r,Bl,n),mu(e,r);else if(ef(i,e,t,n,r))r.stopPropagation();else if(mu(e,r),t&4&&-1<qd.indexOf(e)){for(;i!==null;){var o=el(i);if(o!==null&&fu(o),o=oo(e,t,n,r),o===null&&Eo(e,t,r,Bl,n),o===i)break;i=o}i!==null&&r.stopPropagation()}else Eo(e,t,r,null,n)}}var Bl=null;function oo(e,t,n,r){if(Bl=null,e=Lr(r),e=Vn(e),e!==null)if(t=$n(e),t===null)e=null;else if(n=t.tag,n===13){if(e=nu(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Bl=e,null}function wu(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(Hd()){case qi:return 1;case uu:return 4;case Ml:case Qd:return 16;case au:return 536870912;default:return 16}default:return 16}}var Nn=null,so=null,$l=null;function xu(){if($l)return $l;var e,t=so,n=t.length,r,i="value"in Nn?Nn.value:Nn.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===i[o-r];r++);return $l=i.slice(e,1<r?1-r:void 0)}function Vl(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Wl(){return!0}function Su(){return!1}function Nt(e){function t(n,r,i,o,a){this._reactName=n,this._targetInst=i,this.type=r,this.nativeEvent=o,this.target=a,this.currentTarget=null;for(var p in e)e.hasOwnProperty(p)&&(n=e[p],this[p]=n?n(o):o[p]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Wl:Su,this.isPropagationStopped=Su,this}return W(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Wl)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Wl)},persist:function(){},isPersistent:Wl}),t}var lr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},uo=Nt(lr),Wr=W({},lr,{view:0,detail:0}),lf=Nt(Wr),ao,co,Hr,Hl=W({},Wr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:po,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!==Hr&&(Hr&&e.type==="mousemove"?(ao=e.screenX-Hr.screenX,co=e.screenY-Hr.screenY):co=ao=0,Hr=e),ao)},movementY:function(e){return"movementY"in e?e.movementY:co}}),ku=Nt(Hl),of=W({},Hl,{dataTransfer:0}),sf=Nt(of),uf=W({},Wr,{relatedTarget:0}),fo=Nt(uf),af=W({},lr,{animationName:0,elapsedTime:0,pseudoElement:0}),cf=Nt(af),df=W({},lr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ff=Nt(df),pf=W({},lr,{data:0}),Cu=Nt(pf),hf={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vf={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"},mf={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function gf(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=mf[e])?!!t[e]:!1}function po(){return gf}var yf=W({},Wr,{key:function(e){if(e.key){var t=hf[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Vl(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?vf[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:po,charCode:function(e){return e.type==="keypress"?Vl(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Vl(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),wf=Nt(yf),xf=W({},Hl,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Eu=Nt(xf),Sf=W({},Wr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:po}),kf=Nt(Sf),Cf=W({},lr,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ef=Nt(Cf),Nf=W({},Hl,{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}),jf=Nt(Nf),Rf=[9,13,27,32],ho=v&&"CompositionEvent"in window,Qr=null;v&&"documentMode"in document&&(Qr=document.documentMode);var Df=v&&"TextEvent"in window&&!Qr,Nu=v&&(!ho||Qr&&8<Qr&&11>=Qr),ju=" ",Ru=!1;function Du(e,t){switch(e){case"keyup":return Rf.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _u(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ir=!1;function _f(e,t){switch(e){case"compositionend":return _u(t);case"keypress":return t.which!==32?null:(Ru=!0,ju);case"textInput":return e=t.data,e===ju&&Ru?null:e;default:return null}}function Tf(e,t){if(ir)return e==="compositionend"||!ho&&Du(e,t)?(e=xu(),$l=so=Nn=null,ir=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Nu&&t.locale!=="ko"?null:t.data;default:return null}}var Pf={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 Tu(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Pf[e.type]:t==="textarea"}function Pu(e,t,n,r){rt(r),t=bl(t,"onChange"),0<t.length&&(n=new uo("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Kr=null,Xr=null;function Mf(e){bu(e,0)}function Ql(e){var t=cr(e);if(Ct(t))return e}function Lf(e,t){if(e==="change")return t}var Mu=!1;if(v){var vo;if(v){var mo="oninput"in document;if(!mo){var Lu=document.createElement("div");Lu.setAttribute("oninput","return;"),mo=typeof Lu.oninput=="function"}vo=mo}else vo=!1;Mu=vo&&(!document.documentMode||9<document.documentMode)}function Ou(){Kr&&(Kr.detachEvent("onpropertychange",zu),Xr=Kr=null)}function zu(e){if(e.propertyName==="value"&&Ql(Xr)){var t=[];Pu(t,Xr,e,Lr(e)),on(Mf,t)}}function Of(e,t,n){e==="focusin"?(Ou(),Kr=t,Xr=n,Kr.attachEvent("onpropertychange",zu)):e==="focusout"&&Ou()}function zf(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ql(Xr)}function If(e,t){if(e==="click")return Ql(t)}function Af(e,t){if(e==="input"||e==="change")return Ql(t)}function Ff(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Vt=typeof Object.is=="function"?Object.is:Ff;function Yr(e,t){if(Vt(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!w.call(t,i)||!Vt(e[i],t[i]))return!1}return!0}function Iu(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Au(e,t){var n=Iu(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Iu(n)}}function Fu(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Fu(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Uu(){for(var e=window,t=Gt();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Gt(e.document)}return t}function go(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Uf(e){var t=Uu(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Fu(n.ownerDocument.documentElement,n)){if(r!==null&&go(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=Au(n,o);var a=Au(n,r);i&&a&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Bf=v&&"documentMode"in document&&11>=document.documentMode,or=null,yo=null,br=null,wo=!1;function Bu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;wo||or==null||or!==Gt(r)||(r=or,"selectionStart"in r&&go(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),br&&Yr(br,r)||(br=r,r=bl(yo,"onSelect"),0<r.length&&(t=new uo("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=or)))}function Kl(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var sr={animationend:Kl("Animation","AnimationEnd"),animationiteration:Kl("Animation","AnimationIteration"),animationstart:Kl("Animation","AnimationStart"),transitionend:Kl("Transition","TransitionEnd")},xo={},$u={};v&&($u=document.createElement("div").style,"AnimationEvent"in window||(delete sr.animationend.animation,delete sr.animationiteration.animation,delete sr.animationstart.animation),"TransitionEvent"in window||delete sr.transitionend.transition);function Xl(e){if(xo[e])return xo[e];if(!sr[e])return e;var t=sr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $u)return xo[e]=t[n];return e}var Vu=Xl("animationend"),Wu=Xl("animationiteration"),Hu=Xl("animationstart"),Qu=Xl("transitionend"),Ku=new Map,Xu="abort auxClick 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(" ");function jn(e,t){Ku.set(e,t),h(t,[e])}for(var So=0;So<Xu.length;So++){var ko=Xu[So],$f=ko.toLowerCase(),Vf=ko[0].toUpperCase()+ko.slice(1);jn($f,"on"+Vf)}jn(Vu,"onAnimationEnd"),jn(Wu,"onAnimationIteration"),jn(Hu,"onAnimationStart"),jn("dblclick","onDoubleClick"),jn("focusin","onFocus"),jn("focusout","onBlur"),jn(Qu,"onTransitionEnd"),y("onMouseEnter",["mouseout","mouseover"]),y("onMouseLeave",["mouseout","mouseover"]),y("onPointerEnter",["pointerout","pointerover"]),y("onPointerLeave",["pointerout","pointerover"]),h("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),h("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),h("onBeforeInput",["compositionend","keypress","textInput","paste"]),h("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),h("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Gr="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(" "),Wf=new Set("cancel close invalid load scroll toggle".split(" ").concat(Gr));function Yu(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,Bd(r,t,void 0,e),e.currentTarget=null}function bu(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var p=r[a],m=p.instance,E=p.currentTarget;if(p=p.listener,m!==o&&i.isPropagationStopped())break e;Yu(i,p,E),o=m}else for(a=0;a<r.length;a++){if(p=r[a],m=p.instance,E=p.currentTarget,p=p.listener,m!==o&&i.isPropagationStopped())break e;Yu(i,p,E),o=m}}}if(Et)throw e=sn,Et=!1,sn=null,e}function Te(e,t){var n=t[To];n===void 0&&(n=t[To]=new Set);var r=e+"__bubble";n.has(r)||(Gu(t,e,2,!1),n.add(r))}function Co(e,t,n){var r=0;t&&(r|=4),Gu(n,e,r,t)}var Yl="_reactListening"+Math.random().toString(36).slice(2);function Jr(e){if(!e[Yl]){e[Yl]=!0,c.forEach(function(n){n!=="selectionchange"&&(Wf.has(n)||Co(n,!1,e),Co(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yl]||(t[Yl]=!0,Co("selectionchange",!1,t))}}function Gu(e,t,n,r){switch(wu(t)){case 1:var i=nf;break;case 4:i=rf;break;default:i=io}n=i.bind(null,t,n,e),i=void 0,!_t||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),r?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Eo(e,t,n,r,i){var o=r;if((t&1)===0&&(t&2)===0&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var p=r.stateNode.containerInfo;if(p===i||p.nodeType===8&&p.parentNode===i)break;if(a===4)for(a=r.return;a!==null;){var m=a.tag;if((m===3||m===4)&&(m=a.stateNode.containerInfo,m===i||m.nodeType===8&&m.parentNode===i))return;a=a.return}for(;p!==null;){if(a=Vn(p),a===null)return;if(m=a.tag,m===5||m===6){r=o=a;continue e}p=p.parentNode}}r=r.return}on(function(){var E=o,M=Lr(n),L=[];e:{var P=Ku.get(e);if(P!==void 0){var H=uo,K=e;switch(e){case"keypress":if(Vl(n)===0)break e;case"keydown":case"keyup":H=wf;break;case"focusin":K="focus",H=fo;break;case"focusout":K="blur",H=fo;break;case"beforeblur":case"afterblur":H=fo;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":H=ku;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":H=sf;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":H=kf;break;case Vu:case Wu:case Hu:H=cf;break;case Qu:H=Ef;break;case"scroll":H=lf;break;case"wheel":H=jf;break;case"copy":case"cut":case"paste":H=ff;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":H=Eu}var X=(t&4)!==0,Ve=!X&&e==="scroll",k=X?P!==null?P+"Capture":null:P;X=[];for(var g=E,C;g!==null;){C=g;var A=C.stateNode;if(C.tag===5&&A!==null&&(C=A,k!==null&&(A=ze(g,k),A!=null&&X.push(Zr(g,A,C)))),Ve)break;g=g.return}0<X.length&&(P=new H(P,K,null,n,M),L.push({event:P,listeners:X}))}}if((t&7)===0){e:{if(P=e==="mouseover"||e==="pointerover",H=e==="mouseout"||e==="pointerout",P&&n!==nr&&(K=n.relatedTarget||n.fromElement)&&(Vn(K)||K[un]))break e;if((H||P)&&(P=M.window===M?M:(P=M.ownerDocument)?P.defaultView||P.parentWindow:window,H?(K=n.relatedTarget||n.toElement,H=E,K=K?Vn(K):null,K!==null&&(Ve=$n(K),K!==Ve||K.tag!==5&&K.tag!==6)&&(K=null)):(H=null,K=E),H!==K)){if(X=ku,A="onMouseLeave",k="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(X=Eu,A="onPointerLeave",k="onPointerEnter",g="pointer"),Ve=H==null?P:cr(H),C=K==null?P:cr(K),P=new X(A,g+"leave",H,n,M),P.target=Ve,P.relatedTarget=C,A=null,Vn(M)===E&&(X=new X(k,g+"enter",K,n,M),X.target=C,X.relatedTarget=Ve,A=X),Ve=A,H&&K)t:{for(X=H,k=K,g=0,C=X;C;C=ur(C))g++;for(C=0,A=k;A;A=ur(A))C++;for(;0<g-C;)X=ur(X),g--;for(;0<C-g;)k=ur(k),C--;for(;g--;){if(X===k||k!==null&&X===k.alternate)break t;X=ur(X),k=ur(k)}X=null}else X=null;H!==null&&Ju(L,P,H,X,!1),K!==null&&Ve!==null&&Ju(L,Ve,K,X,!0)}}e:{if(P=E?cr(E):window,H=P.nodeName&&P.nodeName.toLowerCase(),H==="select"||H==="input"&&P.type==="file")var b=Lf;else if(Tu(P))if(Mu)b=Af;else{b=zf;var q=Of}else(H=P.nodeName)&&H.toLowerCase()==="input"&&(P.type==="checkbox"||P.type==="radio")&&(b=If);if(b&&(b=b(e,E))){Pu(L,b,n,M);break e}q&&q(e,P,E),e==="focusout"&&(q=P._wrapperState)&&q.controlled&&P.type==="number"&&Be(P,"number",P.value)}switch(q=E?cr(E):window,e){case"focusin":(Tu(q)||q.contentEditable==="true")&&(or=q,yo=E,br=null);break;case"focusout":br=yo=or=null;break;case"mousedown":wo=!0;break;case"contextmenu":case"mouseup":case"dragend":wo=!1,Bu(L,n,M);break;case"selectionchange":if(Bf)break;case"keydown":case"keyup":Bu(L,n,M)}var ee;if(ho)e:{switch(e){case"compositionstart":var se="onCompositionStart";break e;case"compositionend":se="onCompositionEnd";break e;case"compositionupdate":se="onCompositionUpdate";break e}se=void 0}else ir?Du(e,n)&&(se="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(se="onCompositionStart");se&&(Nu&&n.locale!=="ko"&&(ir||se!=="onCompositionStart"?se==="onCompositionEnd"&&ir&&(ee=xu()):(Nn=M,so="value"in Nn?Nn.value:Nn.textContent,ir=!0)),q=bl(E,se),0<q.length&&(se=new Cu(se,e,null,n,M),L.push({event:se,listeners:q}),ee?se.data=ee:(ee=_u(n),ee!==null&&(se.data=ee)))),(ee=Df?_f(e,n):Tf(e,n))&&(E=bl(E,"onBeforeInput"),0<E.length&&(M=new Cu("onBeforeInput","beforeinput",null,n,M),L.push({event:M,listeners:E}),M.data=ee))}bu(L,t)})}function Zr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function bl(e,t){for(var n=t+"Capture",r=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=ze(e,n),o!=null&&r.unshift(Zr(e,o,i)),o=ze(e,t),o!=null&&r.push(Zr(e,o,i))),e=e.return}return r}function ur(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ju(e,t,n,r,i){for(var o=t._reactName,a=[];n!==null&&n!==r;){var p=n,m=p.alternate,E=p.stateNode;if(m!==null&&m===r)break;p.tag===5&&E!==null&&(p=E,i?(m=ze(n,o),m!=null&&a.unshift(Zr(n,m,p))):i||(m=ze(n,o),m!=null&&a.push(Zr(n,m,p)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var Hf=/\r\n?/g,Qf=/\u0000|\uFFFD/g;function Zu(e){return(typeof e=="string"?e:""+e).replace(Hf,`
|
|
38
|
+
`).replace(Qf,"")}function Gl(e,t,n){if(t=Zu(t),Zu(e)!==t&&n)throw Error(u(425))}function Jl(){}var No=null,jo=null;function Ro(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Do=typeof setTimeout=="function"?setTimeout:void 0,Kf=typeof clearTimeout=="function"?clearTimeout:void 0,qu=typeof Promise=="function"?Promise:void 0,Xf=typeof queueMicrotask=="function"?queueMicrotask:typeof qu<"u"?function(e){return qu.resolve(null).then(e).catch(Yf)}:Do;function Yf(e){setTimeout(function(){throw e})}function _o(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(r===0){e.removeChild(i),Vr(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=i}while(n);Vr(t)}function Rn(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function ea(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var ar=Math.random().toString(36).slice(2),en="__reactFiber$"+ar,qr="__reactProps$"+ar,un="__reactContainer$"+ar,To="__reactEvents$"+ar,bf="__reactListeners$"+ar,Gf="__reactHandles$"+ar;function Vn(e){var t=e[en];if(t)return t;for(var n=e.parentNode;n;){if(t=n[un]||n[en]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=ea(e);e!==null;){if(n=e[en])return n;e=ea(e)}return t}e=n,n=e.parentNode}return null}function el(e){return e=e[en]||e[un],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function cr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(u(33))}function Zl(e){return e[qr]||null}var Po=[],dr=-1;function Dn(e){return{current:e}}function Pe(e){0>dr||(e.current=Po[dr],Po[dr]=null,dr--)}function _e(e,t){dr++,Po[dr]=e.current,e.current=t}var _n={},ot=Dn(_n),gt=Dn(!1),Wn=_n;function fr(e,t){var n=e.type.contextTypes;if(!n)return _n;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function yt(e){return e=e.childContextTypes,e!=null}function ql(){Pe(gt),Pe(ot)}function ta(e,t,n){if(ot.current!==_n)throw Error(u(168));_e(ot,t),_e(gt,n)}function na(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(u(108,ke(e)||"Unknown",i));return W({},n,r)}function ei(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_n,Wn=ot.current,_e(ot,e),_e(gt,gt.current),!0}function ra(e,t,n){var r=e.stateNode;if(!r)throw Error(u(169));n?(e=na(e,t,Wn),r.__reactInternalMemoizedMergedChildContext=e,Pe(gt),Pe(ot),_e(ot,e)):Pe(gt),_e(gt,n)}var an=null,ti=!1,Mo=!1;function la(e){an===null?an=[e]:an.push(e)}function Jf(e){ti=!0,la(e)}function Tn(){if(!Mo&&an!==null){Mo=!0;var e=0,t=je;try{var n=an;for(je=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}an=null,ti=!1}catch(i){throw an!==null&&(an=an.slice(e+1)),ou(qi,Tn),i}finally{je=t,Mo=!1}}return null}var pr=[],hr=0,ni=null,ri=0,Tt=[],Pt=0,Hn=null,cn=1,dn="";function Qn(e,t){pr[hr++]=ri,pr[hr++]=ni,ni=e,ri=t}function ia(e,t,n){Tt[Pt++]=cn,Tt[Pt++]=dn,Tt[Pt++]=Hn,Hn=e;var r=cn;e=dn;var i=32-$t(r)-1;r&=~(1<<i),n+=1;var o=32-$t(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,cn=1<<32-$t(t)+i|n<<i|r,dn=o+e}else cn=1<<o|n<<i|r,dn=e}function Lo(e){e.return!==null&&(Qn(e,1),ia(e,1,0))}function Oo(e){for(;e===ni;)ni=pr[--hr],pr[hr]=null,ri=pr[--hr],pr[hr]=null;for(;e===Hn;)Hn=Tt[--Pt],Tt[Pt]=null,dn=Tt[--Pt],Tt[Pt]=null,cn=Tt[--Pt],Tt[Pt]=null}var jt=null,Rt=null,Me=!1,Wt=null;function oa(e,t){var n=zt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function sa(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,jt=e,Rt=Rn(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,jt=e,Rt=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=Hn!==null?{id:cn,overflow:dn}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=zt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,jt=e,Rt=null,!0):!1;default:return!1}}function zo(e){return(e.mode&1)!==0&&(e.flags&128)===0}function Io(e){if(Me){var t=Rt;if(t){var n=t;if(!sa(e,t)){if(zo(e))throw Error(u(418));t=Rn(n.nextSibling);var r=jt;t&&sa(e,t)?oa(r,n):(e.flags=e.flags&-4097|2,Me=!1,jt=e)}}else{if(zo(e))throw Error(u(418));e.flags=e.flags&-4097|2,Me=!1,jt=e}}}function ua(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;jt=e}function li(e){if(e!==jt)return!1;if(!Me)return ua(e),Me=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ro(e.type,e.memoizedProps)),t&&(t=Rt)){if(zo(e))throw aa(),Error(u(418));for(;t;)oa(e,t),t=Rn(t.nextSibling)}if(ua(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(u(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Rt=Rn(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Rt=null}}else Rt=jt?Rn(e.stateNode.nextSibling):null;return!0}function aa(){for(var e=Rt;e;)e=Rn(e.nextSibling)}function vr(){Rt=jt=null,Me=!1}function Ao(e){Wt===null?Wt=[e]:Wt.push(e)}var Zf=G.ReactCurrentBatchConfig;function tl(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(u(309));var r=n.stateNode}if(!r)throw Error(u(147,e));var i=r,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(a){var p=i.refs;a===null?delete p[o]:p[o]=a},t._stringRef=o,t)}if(typeof e!="string")throw Error(u(284));if(!n._owner)throw Error(u(290,e))}return e}function ii(e,t){throw e=Object.prototype.toString.call(t),Error(u(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function ca(e){var t=e._init;return t(e._payload)}function da(e){function t(k,g){if(e){var C=k.deletions;C===null?(k.deletions=[g],k.flags|=16):C.push(g)}}function n(k,g){if(!e)return null;for(;g!==null;)t(k,g),g=g.sibling;return null}function r(k,g){for(k=new Map;g!==null;)g.key!==null?k.set(g.key,g):k.set(g.index,g),g=g.sibling;return k}function i(k,g){return k=Fn(k,g),k.index=0,k.sibling=null,k}function o(k,g,C){return k.index=C,e?(C=k.alternate,C!==null?(C=C.index,C<g?(k.flags|=2,g):C):(k.flags|=2,g)):(k.flags|=1048576,g)}function a(k){return e&&k.alternate===null&&(k.flags|=2),k}function p(k,g,C,A){return g===null||g.tag!==6?(g=Ds(C,k.mode,A),g.return=k,g):(g=i(g,C),g.return=k,g)}function m(k,g,C,A){var b=C.type;return b===Z?M(k,g,C.props.children,A,C.key):g!==null&&(g.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===fe&&ca(b)===g.type)?(A=i(g,C.props),A.ref=tl(k,g,C),A.return=k,A):(A=_i(C.type,C.key,C.props,null,k.mode,A),A.ref=tl(k,g,C),A.return=k,A)}function E(k,g,C,A){return g===null||g.tag!==4||g.stateNode.containerInfo!==C.containerInfo||g.stateNode.implementation!==C.implementation?(g=_s(C,k.mode,A),g.return=k,g):(g=i(g,C.children||[]),g.return=k,g)}function M(k,g,C,A,b){return g===null||g.tag!==7?(g=qn(C,k.mode,A,b),g.return=k,g):(g=i(g,C),g.return=k,g)}function L(k,g,C){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Ds(""+g,k.mode,C),g.return=k,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case ue:return C=_i(g.type,g.key,g.props,null,k.mode,C),C.ref=tl(k,null,g),C.return=k,C;case le:return g=_s(g,k.mode,C),g.return=k,g;case fe:var A=g._init;return L(k,A(g._payload),C)}if(Ee(g)||J(g))return g=qn(g,k.mode,C,null),g.return=k,g;ii(k,g)}return null}function P(k,g,C,A){var b=g!==null?g.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return b!==null?null:p(k,g,""+C,A);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case ue:return C.key===b?m(k,g,C,A):null;case le:return C.key===b?E(k,g,C,A):null;case fe:return b=C._init,P(k,g,b(C._payload),A)}if(Ee(C)||J(C))return b!==null?null:M(k,g,C,A,null);ii(k,C)}return null}function H(k,g,C,A,b){if(typeof A=="string"&&A!==""||typeof A=="number")return k=k.get(C)||null,p(g,k,""+A,b);if(typeof A=="object"&&A!==null){switch(A.$$typeof){case ue:return k=k.get(A.key===null?C:A.key)||null,m(g,k,A,b);case le:return k=k.get(A.key===null?C:A.key)||null,E(g,k,A,b);case fe:var q=A._init;return H(k,g,C,q(A._payload),b)}if(Ee(A)||J(A))return k=k.get(C)||null,M(g,k,A,b,null);ii(g,A)}return null}function K(k,g,C,A){for(var b=null,q=null,ee=g,se=g=0,Je=null;ee!==null&&se<C.length;se++){ee.index>se?(Je=ee,ee=null):Je=ee.sibling;var Se=P(k,ee,C[se],A);if(Se===null){ee===null&&(ee=Je);break}e&&ee&&Se.alternate===null&&t(k,ee),g=o(Se,g,se),q===null?b=Se:q.sibling=Se,q=Se,ee=Je}if(se===C.length)return n(k,ee),Me&&Qn(k,se),b;if(ee===null){for(;se<C.length;se++)ee=L(k,C[se],A),ee!==null&&(g=o(ee,g,se),q===null?b=ee:q.sibling=ee,q=ee);return Me&&Qn(k,se),b}for(ee=r(k,ee);se<C.length;se++)Je=H(ee,k,se,C[se],A),Je!==null&&(e&&Je.alternate!==null&&ee.delete(Je.key===null?se:Je.key),g=o(Je,g,se),q===null?b=Je:q.sibling=Je,q=Je);return e&&ee.forEach(function(Un){return t(k,Un)}),Me&&Qn(k,se),b}function X(k,g,C,A){var b=J(C);if(typeof b!="function")throw Error(u(150));if(C=b.call(C),C==null)throw Error(u(151));for(var q=b=null,ee=g,se=g=0,Je=null,Se=C.next();ee!==null&&!Se.done;se++,Se=C.next()){ee.index>se?(Je=ee,ee=null):Je=ee.sibling;var Un=P(k,ee,Se.value,A);if(Un===null){ee===null&&(ee=Je);break}e&&ee&&Un.alternate===null&&t(k,ee),g=o(Un,g,se),q===null?b=Un:q.sibling=Un,q=Un,ee=Je}if(Se.done)return n(k,ee),Me&&Qn(k,se),b;if(ee===null){for(;!Se.done;se++,Se=C.next())Se=L(k,Se.value,A),Se!==null&&(g=o(Se,g,se),q===null?b=Se:q.sibling=Se,q=Se);return Me&&Qn(k,se),b}for(ee=r(k,ee);!Se.done;se++,Se=C.next())Se=H(ee,k,se,Se.value,A),Se!==null&&(e&&Se.alternate!==null&&ee.delete(Se.key===null?se:Se.key),g=o(Se,g,se),q===null?b=Se:q.sibling=Se,q=Se);return e&&ee.forEach(function(Pp){return t(k,Pp)}),Me&&Qn(k,se),b}function Ve(k,g,C,A){if(typeof C=="object"&&C!==null&&C.type===Z&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case ue:e:{for(var b=C.key,q=g;q!==null;){if(q.key===b){if(b=C.type,b===Z){if(q.tag===7){n(k,q.sibling),g=i(q,C.props.children),g.return=k,k=g;break e}}else if(q.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===fe&&ca(b)===q.type){n(k,q.sibling),g=i(q,C.props),g.ref=tl(k,q,C),g.return=k,k=g;break e}n(k,q);break}else t(k,q);q=q.sibling}C.type===Z?(g=qn(C.props.children,k.mode,A,C.key),g.return=k,k=g):(A=_i(C.type,C.key,C.props,null,k.mode,A),A.ref=tl(k,g,C),A.return=k,k=A)}return a(k);case le:e:{for(q=C.key;g!==null;){if(g.key===q)if(g.tag===4&&g.stateNode.containerInfo===C.containerInfo&&g.stateNode.implementation===C.implementation){n(k,g.sibling),g=i(g,C.children||[]),g.return=k,k=g;break e}else{n(k,g);break}else t(k,g);g=g.sibling}g=_s(C,k.mode,A),g.return=k,k=g}return a(k);case fe:return q=C._init,Ve(k,g,q(C._payload),A)}if(Ee(C))return K(k,g,C,A);if(J(C))return X(k,g,C,A);ii(k,C)}return typeof C=="string"&&C!==""||typeof C=="number"?(C=""+C,g!==null&&g.tag===6?(n(k,g.sibling),g=i(g,C),g.return=k,k=g):(n(k,g),g=Ds(C,k.mode,A),g.return=k,k=g),a(k)):n(k,g)}return Ve}var mr=da(!0),fa=da(!1),oi=Dn(null),si=null,gr=null,Fo=null;function Uo(){Fo=gr=si=null}function Bo(e){var t=oi.current;Pe(oi),e._currentValue=t}function $o(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function yr(e,t){si=e,Fo=gr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(wt=!0),e.firstContext=null)}function Mt(e){var t=e._currentValue;if(Fo!==e)if(e={context:e,memoizedValue:t,next:null},gr===null){if(si===null)throw Error(u(308));gr=e,si.dependencies={lanes:0,firstContext:e}}else gr=gr.next=e;return t}var Kn=null;function Vo(e){Kn===null?Kn=[e]:Kn.push(e)}function pa(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Vo(t)):(n.next=i.next,i.next=n),t.interleaved=n,fn(e,r)}function fn(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Pn=!1;function Wo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ha(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function pn(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Mn(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,(xe&2)!==0){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,fn(e,n)}return i=r.interleaved,i===null?(t.next=t,Vo(r)):(t.next=i.next,i.next=t),r.interleaved=t,fn(e,n)}function ui(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,no(e,n)}}function va(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=a:o=o.next=a,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ai(e,t,n,r){var i=e.updateQueue;Pn=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,p=i.shared.pending;if(p!==null){i.shared.pending=null;var m=p,E=m.next;m.next=null,a===null?o=E:a.next=E,a=m;var M=e.alternate;M!==null&&(M=M.updateQueue,p=M.lastBaseUpdate,p!==a&&(p===null?M.firstBaseUpdate=E:p.next=E,M.lastBaseUpdate=m))}if(o!==null){var L=i.baseState;a=0,M=E=m=null,p=o;do{var P=p.lane,H=p.eventTime;if((r&P)===P){M!==null&&(M=M.next={eventTime:H,lane:0,tag:p.tag,payload:p.payload,callback:p.callback,next:null});e:{var K=e,X=p;switch(P=t,H=n,X.tag){case 1:if(K=X.payload,typeof K=="function"){L=K.call(H,L,P);break e}L=K;break e;case 3:K.flags=K.flags&-65537|128;case 0:if(K=X.payload,P=typeof K=="function"?K.call(H,L,P):K,P==null)break e;L=W({},L,P);break e;case 2:Pn=!0}}p.callback!==null&&p.lane!==0&&(e.flags|=64,P=i.effects,P===null?i.effects=[p]:P.push(p))}else H={eventTime:H,lane:P,tag:p.tag,payload:p.payload,callback:p.callback,next:null},M===null?(E=M=H,m=L):M=M.next=H,a|=P;if(p=p.next,p===null){if(p=i.shared.pending,p===null)break;P=p,p=P.next,P.next=null,i.lastBaseUpdate=P,i.shared.pending=null}}while(!0);if(M===null&&(m=L),i.baseState=m,i.firstBaseUpdate=E,i.lastBaseUpdate=M,t=i.shared.interleaved,t!==null){i=t;do a|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);bn|=a,e.lanes=a,e.memoizedState=L}}function ma(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(i!==null){if(r.callback=null,r=n,typeof i!="function")throw Error(u(191,i));i.call(r)}}}var nl={},tn=Dn(nl),rl=Dn(nl),ll=Dn(nl);function Xn(e){if(e===nl)throw Error(u(174));return e}function Ho(e,t){switch(_e(ll,t),_e(rl,e),_e(tn,nl),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Jt(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Jt(t,e)}Pe(tn),_e(tn,t)}function wr(){Pe(tn),Pe(rl),Pe(ll)}function ga(e){Xn(ll.current);var t=Xn(tn.current),n=Jt(t,e.type);t!==n&&(_e(rl,e),_e(tn,n))}function Qo(e){rl.current===e&&(Pe(tn),Pe(rl))}var Ie=Dn(0);function ci(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ko=[];function Xo(){for(var e=0;e<Ko.length;e++)Ko[e]._workInProgressVersionPrimary=null;Ko.length=0}var di=G.ReactCurrentDispatcher,Yo=G.ReactCurrentBatchConfig,Yn=0,Ae=null,Qe=null,be=null,fi=!1,il=!1,ol=0,qf=0;function st(){throw Error(u(321))}function bo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Vt(e[n],t[n]))return!1;return!0}function Go(e,t,n,r,i,o){if(Yn=o,Ae=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,di.current=e===null||e.memoizedState===null?rp:lp,e=n(r,i),il){o=0;do{if(il=!1,ol=0,25<=o)throw Error(u(301));o+=1,be=Qe=null,t.updateQueue=null,di.current=ip,e=n(r,i)}while(il)}if(di.current=vi,t=Qe!==null&&Qe.next!==null,Yn=0,be=Qe=Ae=null,fi=!1,t)throw Error(u(300));return e}function Jo(){var e=ol!==0;return ol=0,e}function nn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return be===null?Ae.memoizedState=be=e:be=be.next=e,be}function Lt(){if(Qe===null){var e=Ae.alternate;e=e!==null?e.memoizedState:null}else e=Qe.next;var t=be===null?Ae.memoizedState:be.next;if(t!==null)be=t,Qe=e;else{if(e===null)throw Error(u(310));Qe=e,e={memoizedState:Qe.memoizedState,baseState:Qe.baseState,baseQueue:Qe.baseQueue,queue:Qe.queue,next:null},be===null?Ae.memoizedState=be=e:be=be.next=e}return be}function sl(e,t){return typeof t=="function"?t(e):t}function Zo(e){var t=Lt(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var r=Qe,i=r.baseQueue,o=n.pending;if(o!==null){if(i!==null){var a=i.next;i.next=o.next,o.next=a}r.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,r=r.baseState;var p=a=null,m=null,E=o;do{var M=E.lane;if((Yn&M)===M)m!==null&&(m=m.next={lane:0,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null}),r=E.hasEagerState?E.eagerState:e(r,E.action);else{var L={lane:M,action:E.action,hasEagerState:E.hasEagerState,eagerState:E.eagerState,next:null};m===null?(p=m=L,a=r):m=m.next=L,Ae.lanes|=M,bn|=M}E=E.next}while(E!==null&&E!==o);m===null?a=r:m.next=p,Vt(r,t.memoizedState)||(wt=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=m,n.lastRenderedState=r}if(e=n.interleaved,e!==null){i=e;do o=i.lane,Ae.lanes|=o,bn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function qo(e){var t=Lt(),n=t.queue;if(n===null)throw Error(u(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var a=i=i.next;do o=e(o,a.action),a=a.next;while(a!==i);Vt(o,t.memoizedState)||(wt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ya(){}function wa(e,t){var n=Ae,r=Lt(),i=t(),o=!Vt(r.memoizedState,i);if(o&&(r.memoizedState=i,wt=!0),r=r.queue,es(ka.bind(null,n,r,e),[e]),r.getSnapshot!==t||o||be!==null&&be.memoizedState.tag&1){if(n.flags|=2048,ul(9,Sa.bind(null,n,r,i,t),void 0,null),Ge===null)throw Error(u(349));(Yn&30)!==0||xa(n,t,i)}return i}function xa(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ae.updateQueue,t===null?(t={lastEffect:null,stores:null},Ae.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sa(e,t,n,r){t.value=n,t.getSnapshot=r,Ca(t)&&Ea(e)}function ka(e,t,n){return n(function(){Ca(t)&&Ea(e)})}function Ca(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Vt(e,n)}catch{return!0}}function Ea(e){var t=fn(e,1);t!==null&&Xt(t,e,1,-1)}function Na(e){var t=nn();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:sl,lastRenderedState:e},t.queue=e,e=e.dispatch=np.bind(null,Ae,e),[t.memoizedState,e]}function ul(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ae.updateQueue,t===null?(t={lastEffect:null,stores:null},Ae.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function ja(){return Lt().memoizedState}function pi(e,t,n,r){var i=nn();Ae.flags|=e,i.memoizedState=ul(1|t,n,void 0,r===void 0?null:r)}function hi(e,t,n,r){var i=Lt();r=r===void 0?null:r;var o=void 0;if(Qe!==null){var a=Qe.memoizedState;if(o=a.destroy,r!==null&&bo(r,a.deps)){i.memoizedState=ul(t,n,o,r);return}}Ae.flags|=e,i.memoizedState=ul(1|t,n,o,r)}function Ra(e,t){return pi(8390656,8,e,t)}function es(e,t){return hi(2048,8,e,t)}function Da(e,t){return hi(4,2,e,t)}function _a(e,t){return hi(4,4,e,t)}function Ta(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Pa(e,t,n){return n=n!=null?n.concat([e]):null,hi(4,4,Ta.bind(null,t,e),n)}function ts(){}function Ma(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function La(e,t){var n=Lt();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&bo(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function Oa(e,t,n){return(Yn&21)===0?(e.baseState&&(e.baseState=!1,wt=!0),e.memoizedState=n):(Vt(n,t)||(n=cu(),Ae.lanes|=n,bn|=n,e.baseState=!0),t)}function ep(e,t){var n=je;je=n!==0&&4>n?n:4,e(!0);var r=Yo.transition;Yo.transition={};try{e(!1),t()}finally{je=n,Yo.transition=r}}function za(){return Lt().memoizedState}function tp(e,t,n){var r=In(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Ia(e))Aa(t,n);else if(n=pa(e,t,n,r),n!==null){var i=pt();Xt(n,e,r,i),Fa(n,t,r)}}function np(e,t,n){var r=In(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ia(e))Aa(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var a=t.lastRenderedState,p=o(a,n);if(i.hasEagerState=!0,i.eagerState=p,Vt(p,a)){var m=t.interleaved;m===null?(i.next=i,Vo(t)):(i.next=m.next,m.next=i),t.interleaved=i;return}}catch{}finally{}n=pa(e,t,i,r),n!==null&&(i=pt(),Xt(n,e,r,i),Fa(n,t,r))}}function Ia(e){var t=e.alternate;return e===Ae||t!==null&&t===Ae}function Aa(e,t){il=fi=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fa(e,t,n){if((n&4194240)!==0){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,no(e,n)}}var vi={readContext:Mt,useCallback:st,useContext:st,useEffect:st,useImperativeHandle:st,useInsertionEffect:st,useLayoutEffect:st,useMemo:st,useReducer:st,useRef:st,useState:st,useDebugValue:st,useDeferredValue:st,useTransition:st,useMutableSource:st,useSyncExternalStore:st,useId:st,unstable_isNewReconciler:!1},rp={readContext:Mt,useCallback:function(e,t){return nn().memoizedState=[e,t===void 0?null:t],e},useContext:Mt,useEffect:Ra,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,pi(4194308,4,Ta.bind(null,t,e),n)},useLayoutEffect:function(e,t){return pi(4194308,4,e,t)},useInsertionEffect:function(e,t){return pi(4,2,e,t)},useMemo:function(e,t){var n=nn();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=nn();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=tp.bind(null,Ae,e),[r.memoizedState,e]},useRef:function(e){var t=nn();return e={current:e},t.memoizedState=e},useState:Na,useDebugValue:ts,useDeferredValue:function(e){return nn().memoizedState=e},useTransition:function(){var e=Na(!1),t=e[0];return e=ep.bind(null,e[1]),nn().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ae,i=nn();if(Me){if(n===void 0)throw Error(u(407));n=n()}else{if(n=t(),Ge===null)throw Error(u(349));(Yn&30)!==0||xa(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,Ra(ka.bind(null,r,o,e),[e]),r.flags|=2048,ul(9,Sa.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=nn(),t=Ge.identifierPrefix;if(Me){var n=dn,r=cn;n=(r&~(1<<32-$t(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ol++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=qf++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},lp={readContext:Mt,useCallback:Ma,useContext:Mt,useEffect:es,useImperativeHandle:Pa,useInsertionEffect:Da,useLayoutEffect:_a,useMemo:La,useReducer:Zo,useRef:ja,useState:function(){return Zo(sl)},useDebugValue:ts,useDeferredValue:function(e){var t=Lt();return Oa(t,Qe.memoizedState,e)},useTransition:function(){var e=Zo(sl)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:ya,useSyncExternalStore:wa,useId:za,unstable_isNewReconciler:!1},ip={readContext:Mt,useCallback:Ma,useContext:Mt,useEffect:es,useImperativeHandle:Pa,useInsertionEffect:Da,useLayoutEffect:_a,useMemo:La,useReducer:qo,useRef:ja,useState:function(){return qo(sl)},useDebugValue:ts,useDeferredValue:function(e){var t=Lt();return Qe===null?t.memoizedState=e:Oa(t,Qe.memoizedState,e)},useTransition:function(){var e=qo(sl)[0],t=Lt().memoizedState;return[e,t]},useMutableSource:ya,useSyncExternalStore:wa,useId:za,unstable_isNewReconciler:!1};function Ht(e,t){if(e&&e.defaultProps){t=W({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function ns(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:W({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var mi={isMounted:function(e){return(e=e._reactInternals)?$n(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pt(),i=In(e),o=pn(r,i);o.payload=t,n!=null&&(o.callback=n),t=Mn(e,o,i),t!==null&&(Xt(t,e,i,r),ui(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pt(),i=In(e),o=pn(r,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=Mn(e,o,i),t!==null&&(Xt(t,e,i,r),ui(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pt(),r=In(e),i=pn(n,r);i.tag=2,t!=null&&(i.callback=t),t=Mn(e,i,r),t!==null&&(Xt(t,e,r,n),ui(t,e,r))}};function Ua(e,t,n,r,i,o,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,o,a):t.prototype&&t.prototype.isPureReactComponent?!Yr(n,r)||!Yr(i,o):!0}function Ba(e,t,n){var r=!1,i=_n,o=t.contextType;return typeof o=="object"&&o!==null?o=Mt(o):(i=yt(t)?Wn:ot.current,r=t.contextTypes,o=(r=r!=null)?fr(e,i):_n),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=mi,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function $a(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&mi.enqueueReplaceState(t,t.state,null)}function rs(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Wo(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=Mt(o):(o=yt(t)?Wn:ot.current,i.context=fr(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(ns(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&mi.enqueueReplaceState(i,i.state,null),ai(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function xr(e,t){try{var n="",r=t;do n+=de(r),r=r.return;while(r);var i=n}catch(o){i=`
|
|
39
|
+
Error generating stack: `+o.message+`
|
|
40
|
+
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function ls(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function is(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var op=typeof WeakMap=="function"?WeakMap:Map;function Va(e,t,n){n=pn(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Ci||(Ci=!0,xs=r),is(e,t)},n}function Wa(e,t,n){n=pn(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){is(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){is(e,t),typeof r!="function"&&(On===null?On=new Set([this]):On.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function Ha(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new op;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=xp.bind(null,e,t,n),t.then(e,e))}function Qa(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function Ka(e,t,n,r,i){return(e.mode&1)===0?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=pn(-1,1),t.tag=2,Mn(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var sp=G.ReactCurrentOwner,wt=!1;function ft(e,t,n,r){t.child=e===null?fa(t,null,n,r):mr(t,e.child,n,r)}function Xa(e,t,n,r,i){n=n.render;var o=t.ref;return yr(t,i),r=Go(e,t,n,r,o,i),n=Jo(),e!==null&&!wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,hn(e,t,i)):(Me&&n&&Lo(t),t.flags|=1,ft(e,t,r,i),t.child)}function Ya(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!Rs(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,ba(e,t,o,r,i)):(e=_i(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,(e.lanes&i)===0){var a=o.memoizedProps;if(n=n.compare,n=n!==null?n:Yr,n(a,r)&&e.ref===t.ref)return hn(e,t,i)}return t.flags|=1,e=Fn(o,r),e.ref=t.ref,e.return=t,t.child=e}function ba(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(Yr(o,r)&&e.ref===t.ref)if(wt=!1,t.pendingProps=r=o,(e.lanes&i)!==0)(e.flags&131072)!==0&&(wt=!0);else return t.lanes=e.lanes,hn(e,t,i)}return os(e,t,n,r,i)}function Ga(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if((t.mode&1)===0)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(kr,Dt),Dt|=n;else{if((n&1073741824)===0)return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_e(kr,Dt),Dt|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,_e(kr,Dt),Dt|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,_e(kr,Dt),Dt|=r;return ft(e,t,i,n),t.child}function Ja(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function os(e,t,n,r,i){var o=yt(n)?Wn:ot.current;return o=fr(t,o),yr(t,i),n=Go(e,t,n,r,o,i),r=Jo(),e!==null&&!wt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,hn(e,t,i)):(Me&&r&&Lo(t),t.flags|=1,ft(e,t,n,i),t.child)}function Za(e,t,n,r,i){if(yt(n)){var o=!0;ei(t)}else o=!1;if(yr(t,i),t.stateNode===null)yi(e,t),Ba(t,n,r),rs(t,n,r,i),r=!0;else if(e===null){var a=t.stateNode,p=t.memoizedProps;a.props=p;var m=a.context,E=n.contextType;typeof E=="object"&&E!==null?E=Mt(E):(E=yt(n)?Wn:ot.current,E=fr(t,E));var M=n.getDerivedStateFromProps,L=typeof M=="function"||typeof a.getSnapshotBeforeUpdate=="function";L||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(p!==r||m!==E)&&$a(t,a,r,E),Pn=!1;var P=t.memoizedState;a.state=P,ai(t,r,a,i),m=t.memoizedState,p!==r||P!==m||gt.current||Pn?(typeof M=="function"&&(ns(t,n,M,r),m=t.memoizedState),(p=Pn||Ua(t,n,p,r,P,m,E))?(L||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=E,r=p):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ha(e,t),p=t.memoizedProps,E=t.type===t.elementType?p:Ht(t.type,p),a.props=E,L=t.pendingProps,P=a.context,m=n.contextType,typeof m=="object"&&m!==null?m=Mt(m):(m=yt(n)?Wn:ot.current,m=fr(t,m));var H=n.getDerivedStateFromProps;(M=typeof H=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(p!==L||P!==m)&&$a(t,a,r,m),Pn=!1,P=t.memoizedState,a.state=P,ai(t,r,a,i);var K=t.memoizedState;p!==L||P!==K||gt.current||Pn?(typeof H=="function"&&(ns(t,n,H,r),K=t.memoizedState),(E=Pn||Ua(t,n,E,r,P,K,m)||!1)?(M||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,K,m),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,K,m)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||p===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=K),a.props=r,a.state=K,a.context=m,r=E):(typeof a.componentDidUpdate!="function"||p===e.memoizedProps&&P===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||p===e.memoizedProps&&P===e.memoizedState||(t.flags|=1024),r=!1)}return ss(e,t,n,r,o,i)}function ss(e,t,n,r,i,o){Ja(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return i&&ra(t,n,!1),hn(e,t,o);r=t.stateNode,sp.current=t;var p=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=mr(t,e.child,null,o),t.child=mr(t,null,p,o)):ft(e,t,p,o),t.memoizedState=r.state,i&&ra(t,n,!0),t.child}function qa(e){var t=e.stateNode;t.pendingContext?ta(e,t.pendingContext,t.pendingContext!==t.context):t.context&&ta(e,t.context,!1),Ho(e,t.containerInfo)}function ec(e,t,n,r,i){return vr(),Ao(i),t.flags|=256,ft(e,t,n,r),t.child}var us={dehydrated:null,treeContext:null,retryLane:0};function as(e){return{baseLanes:e,cachePool:null,transitions:null}}function tc(e,t,n){var r=t.pendingProps,i=Ie.current,o=!1,a=(t.flags&128)!==0,p;if((p=a)||(p=e!==null&&e.memoizedState===null?!1:(i&2)!==0),p?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),_e(Ie,i&1),e===null)return Io(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((t.mode&1)===0?t.lanes=1:e.data==="$!"?t.lanes=8:t.lanes=1073741824,null):(a=r.children,e=r.fallback,o?(r=t.mode,o=t.child,a={mode:"hidden",children:a},(r&1)===0&&o!==null?(o.childLanes=0,o.pendingProps=a):o=Ti(a,r,0,null),e=qn(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=as(n),t.memoizedState=us,e):cs(t,a));if(i=e.memoizedState,i!==null&&(p=i.dehydrated,p!==null))return up(e,t,a,r,p,i,n);if(o){o=r.fallback,a=t.mode,i=e.child,p=i.sibling;var m={mode:"hidden",children:r.children};return(a&1)===0&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=m,t.deletions=null):(r=Fn(i,m),r.subtreeFlags=i.subtreeFlags&14680064),p!==null?o=Fn(p,o):(o=qn(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,a=e.child.memoizedState,a=a===null?as(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},o.memoizedState=a,o.childLanes=e.childLanes&~n,t.memoizedState=us,r}return o=e.child,e=o.sibling,r=Fn(o,{mode:"visible",children:r.children}),(t.mode&1)===0&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function cs(e,t){return t=Ti({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function gi(e,t,n,r){return r!==null&&Ao(r),mr(t,e.child,null,n),e=cs(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function up(e,t,n,r,i,o,a){if(n)return t.flags&256?(t.flags&=-257,r=ls(Error(u(422))),gi(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ti({mode:"visible",children:r.children},i,0,null),o=qn(o,i,a,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,(t.mode&1)!==0&&mr(t,e.child,null,a),t.child.memoizedState=as(a),t.memoizedState=us,o);if((t.mode&1)===0)return gi(e,t,a,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var p=r.dgst;return r=p,o=Error(u(419)),r=ls(o,r,void 0),gi(e,t,a,r)}if(p=(a&e.childLanes)!==0,wt||p){if(r=Ge,r!==null){switch(a&-a){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=(i&(r.suspendedLanes|a))!==0?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,fn(e,i),Xt(r,e,i,-1))}return js(),r=ls(Error(u(421))),gi(e,t,a,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=Sp.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Rt=Rn(i.nextSibling),jt=t,Me=!0,Wt=null,e!==null&&(Tt[Pt++]=cn,Tt[Pt++]=dn,Tt[Pt++]=Hn,cn=e.id,dn=e.overflow,Hn=t),t=cs(t,r.children),t.flags|=4096,t)}function nc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),$o(e.return,t,n)}function ds(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function rc(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(ft(e,t,r.children,n),r=Ie.current,(r&2)!==0)r=r&1|2,t.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nc(e,n,t);else if(e.tag===19)nc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_e(Ie,r),(t.mode&1)===0)t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ci(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ds(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ci(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ds(t,!0,n,null,o);break;case"together":ds(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function yi(e,t){(t.mode&1)===0&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function hn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),bn|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(u(153));if(t.child!==null){for(e=t.child,n=Fn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Fn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function ap(e,t,n){switch(t.tag){case 3:qa(t),vr();break;case 5:ga(t);break;case 1:yt(t.type)&&ei(t);break;case 4:Ho(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;_e(oi,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(_e(Ie,Ie.current&1),t.flags|=128,null):(n&t.child.childLanes)!==0?tc(e,t,n):(_e(Ie,Ie.current&1),e=hn(e,t,n),e!==null?e.sibling:null);_e(Ie,Ie.current&1);break;case 19:if(r=(n&t.childLanes)!==0,(e.flags&128)!==0){if(r)return rc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),_e(Ie,Ie.current),r)break;return null;case 22:case 23:return t.lanes=0,Ga(e,t,n)}return hn(e,t,n)}var lc,fs,ic,oc;lc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},fs=function(){},ic=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,Xn(tn.current);var o=null;switch(n){case"input":i=O(e,i),r=O(e,r),o=[];break;case"select":i=W({},i,{value:void 0}),r=W({},r,{value:void 0}),o=[];break;case"textarea":i=gn(e,i),r=gn(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Jl)}tr(n,r);var a;n=null;for(E in i)if(!r.hasOwnProperty(E)&&i.hasOwnProperty(E)&&i[E]!=null)if(E==="style"){var p=i[E];for(a in p)p.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else E!=="dangerouslySetInnerHTML"&&E!=="children"&&E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&E!=="autoFocus"&&(f.hasOwnProperty(E)?o||(o=[]):(o=o||[]).push(E,null));for(E in r){var m=r[E];if(p=i!=null?i[E]:void 0,r.hasOwnProperty(E)&&m!==p&&(m!=null||p!=null))if(E==="style")if(p){for(a in p)!p.hasOwnProperty(a)||m&&m.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in m)m.hasOwnProperty(a)&&p[a]!==m[a]&&(n||(n={}),n[a]=m[a])}else n||(o||(o=[]),o.push(E,n)),n=m;else E==="dangerouslySetInnerHTML"?(m=m?m.__html:void 0,p=p?p.__html:void 0,m!=null&&p!==m&&(o=o||[]).push(E,m)):E==="children"?typeof m!="string"&&typeof m!="number"||(o=o||[]).push(E,""+m):E!=="suppressContentEditableWarning"&&E!=="suppressHydrationWarning"&&(f.hasOwnProperty(E)?(m!=null&&E==="onScroll"&&Te("scroll",e),o||p===m||(o=[])):(o=o||[]).push(E,m))}n&&(o=o||[]).push("style",n);var E=o;(t.updateQueue=E)&&(t.flags|=4)}},oc=function(e,t,n,r){n!==r&&(t.flags|=4)};function al(e,t){if(!Me)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ut(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function cp(e,t,n){var r=t.pendingProps;switch(Oo(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ut(t),null;case 1:return yt(t.type)&&ql(),ut(t),null;case 3:return r=t.stateNode,wr(),Pe(gt),Pe(ot),Xo(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(li(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,Wt!==null&&(Cs(Wt),Wt=null))),fs(e,t),ut(t),null;case 5:Qo(t);var i=Xn(ll.current);if(n=t.type,e!==null&&t.stateNode!=null)ic(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(u(166));return ut(t),null}if(e=Xn(tn.current),li(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[en]=t,r[qr]=o,e=(t.mode&1)!==0,n){case"dialog":Te("cancel",r),Te("close",r);break;case"iframe":case"object":case"embed":Te("load",r);break;case"video":case"audio":for(i=0;i<Gr.length;i++)Te(Gr[i],r);break;case"source":Te("error",r);break;case"img":case"image":case"link":Te("error",r),Te("load",r);break;case"details":Te("toggle",r);break;case"input":B(r,o),Te("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!o.multiple},Te("invalid",r);break;case"textarea":_r(r,o),Te("invalid",r)}tr(n,o),i=null;for(var a in o)if(o.hasOwnProperty(a)){var p=o[a];a==="children"?typeof p=="string"?r.textContent!==p&&(o.suppressHydrationWarning!==!0&&Gl(r.textContent,p,e),i=["children",p]):typeof p=="number"&&r.textContent!==""+p&&(o.suppressHydrationWarning!==!0&&Gl(r.textContent,p,e),i=["children",""+p]):f.hasOwnProperty(a)&&p!=null&&a==="onScroll"&&Te("scroll",r)}switch(n){case"input":bt(r),ct(r,o,!0);break;case"textarea":bt(r),Rl(r);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(r.onclick=Jl)}r=i,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Dl(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[en]=t,e[qr]=r,lc(e,t,!1,!1),t.stateNode=e;e:{switch(a=Mr(n,r),n){case"dialog":Te("cancel",e),Te("close",e),i=r;break;case"iframe":case"object":case"embed":Te("load",e),i=r;break;case"video":case"audio":for(i=0;i<Gr.length;i++)Te(Gr[i],e);i=r;break;case"source":Te("error",e),i=r;break;case"img":case"image":case"link":Te("error",e),Te("load",e),i=r;break;case"details":Te("toggle",e),i=r;break;case"input":B(e,r),i=O(e,r),Te("invalid",e);break;case"option":i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=W({},r,{value:void 0}),Te("invalid",e);break;case"textarea":_r(e,r),i=gn(e,r),Te("invalid",e);break;default:i=r}tr(n,i),p=i;for(o in p)if(p.hasOwnProperty(o)){var m=p[o];o==="style"?Pl(e,m):o==="dangerouslySetInnerHTML"?(m=m?m.__html:void 0,m!=null&&yn(e,m)):o==="children"?typeof m=="string"?(n!=="textarea"||m!=="")&&wn(e,m):typeof m=="number"&&wn(e,""+m):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(f.hasOwnProperty(o)?m!=null&&o==="onScroll"&&Te("scroll",e):m!=null&&re(e,o,m,a))}switch(n){case"input":bt(e),ct(e,r,!1);break;case"textarea":bt(e),Rl(e);break;case"option":r.value!=null&&e.setAttribute("value",""+he(r.value));break;case"select":e.multiple=!!r.multiple,o=r.value,o!=null?Fe(e,!!r.multiple,o,!1):r.defaultValue!=null&&Fe(e,!!r.multiple,r.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=Jl)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return ut(t),null;case 6:if(e&&t.stateNode!=null)oc(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error(u(166));if(n=Xn(ll.current),Xn(tn.current),li(t)){if(r=t.stateNode,n=t.memoizedProps,r[en]=t,(o=r.nodeValue!==n)&&(e=jt,e!==null))switch(e.tag){case 3:Gl(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Gl(r.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[en]=t,t.stateNode=r}return ut(t),null;case 13:if(Pe(Ie),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Me&&Rt!==null&&(t.mode&1)!==0&&(t.flags&128)===0)aa(),vr(),t.flags|=98560,o=!1;else if(o=li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!o)throw Error(u(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(u(317));o[en]=t}else vr(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;ut(t),o=!1}else Wt!==null&&(Cs(Wt),Wt=null),o=!0;if(!o)return t.flags&65536?t:null}return(t.flags&128)!==0?(t.lanes=n,t):(r=r!==null,r!==(e!==null&&e.memoizedState!==null)&&r&&(t.child.flags|=8192,(t.mode&1)!==0&&(e===null||(Ie.current&1)!==0?Ke===0&&(Ke=3):js())),t.updateQueue!==null&&(t.flags|=4),ut(t),null);case 4:return wr(),fs(e,t),e===null&&Jr(t.stateNode.containerInfo),ut(t),null;case 10:return Bo(t.type._context),ut(t),null;case 17:return yt(t.type)&&ql(),ut(t),null;case 19:if(Pe(Ie),o=t.memoizedState,o===null)return ut(t),null;if(r=(t.flags&128)!==0,a=o.rendering,a===null)if(r)al(o,!1);else{if(Ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(a=ci(e),a!==null){for(t.flags|=128,al(o,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)o=n,e=r,o.flags&=14680066,a=o.alternate,a===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=a.childLanes,o.lanes=a.lanes,o.child=a.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=a.memoizedProps,o.memoizedState=a.memoizedState,o.updateQueue=a.updateQueue,o.type=a.type,e=a.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _e(Ie,Ie.current&1|2),t.child}e=e.sibling}o.tail!==null&&$e()>Cr&&(t.flags|=128,r=!0,al(o,!1),t.lanes=4194304)}else{if(!r)if(e=ci(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),al(o,!0),o.tail===null&&o.tailMode==="hidden"&&!a.alternate&&!Me)return ut(t),null}else 2*$e()-o.renderingStartTime>Cr&&n!==1073741824&&(t.flags|=128,r=!0,al(o,!1),t.lanes=4194304);o.isBackwards?(a.sibling=t.child,t.child=a):(n=o.last,n!==null?n.sibling=a:t.child=a,o.last=a)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=$e(),t.sibling=null,n=Ie.current,_e(Ie,r?n&1|2:n&1),t):(ut(t),null);case 22:case 23:return Ns(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&(t.mode&1)!==0?(Dt&1073741824)!==0&&(ut(t),t.subtreeFlags&6&&(t.flags|=8192)):ut(t),null;case 24:return null;case 25:return null}throw Error(u(156,t.tag))}function dp(e,t){switch(Oo(t),t.tag){case 1:return yt(t.type)&&ql(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return wr(),Pe(gt),Pe(ot),Xo(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 5:return Qo(t),null;case 13:if(Pe(Ie),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(u(340));vr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Pe(Ie),null;case 4:return wr(),null;case 10:return Bo(t.type._context),null;case 22:case 23:return Ns(),null;case 24:return null;default:return null}}var wi=!1,at=!1,fp=typeof WeakSet=="function"?WeakSet:Set,Q=null;function Sr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ue(e,t,r)}else n.current=null}function ps(e,t,n){try{n()}catch(r){Ue(e,t,r)}}var sc=!1;function pp(e,t){if(No=Ul,e=Uu(),go(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var a=0,p=-1,m=-1,E=0,M=0,L=e,P=null;t:for(;;){for(var H;L!==n||i!==0&&L.nodeType!==3||(p=a+i),L!==o||r!==0&&L.nodeType!==3||(m=a+r),L.nodeType===3&&(a+=L.nodeValue.length),(H=L.firstChild)!==null;)P=L,L=H;for(;;){if(L===e)break t;if(P===n&&++E===i&&(p=a),P===o&&++M===r&&(m=a),(H=L.nextSibling)!==null)break;L=P,P=L.parentNode}L=H}n=p===-1||m===-1?null:{start:p,end:m}}else n=null}n=n||{start:0,end:0}}else n=null;for(jo={focusedElem:e,selectionRange:n},Ul=!1,Q=t;Q!==null;)if(t=Q,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Q=e;else for(;Q!==null;){t=Q;try{var K=t.alternate;if((t.flags&1024)!==0)switch(t.tag){case 0:case 11:case 15:break;case 1:if(K!==null){var X=K.memoizedProps,Ve=K.memoizedState,k=t.stateNode,g=k.getSnapshotBeforeUpdate(t.elementType===t.type?X:Ht(t.type,X),Ve);k.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var C=t.stateNode.containerInfo;C.nodeType===1?C.textContent="":C.nodeType===9&&C.documentElement&&C.removeChild(C.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(u(163))}}catch(A){Ue(t,t.return,A)}if(e=t.sibling,e!==null){e.return=t.return,Q=e;break}Q=t.return}return K=sc,sc=!1,K}function cl(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&ps(t,n,o)}i=i.next}while(i!==r)}}function xi(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function hs(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function uc(e){var t=e.alternate;t!==null&&(e.alternate=null,uc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[en],delete t[qr],delete t[To],delete t[bf],delete t[Gf])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function ac(e){return e.tag===5||e.tag===3||e.tag===4}function cc(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||ac(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.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 vs(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Jl));else if(r!==4&&(e=e.child,e!==null))for(vs(e,t,n),e=e.sibling;e!==null;)vs(e,t,n),e=e.sibling}function ms(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(ms(e,t,n),e=e.sibling;e!==null;)ms(e,t,n),e=e.sibling}var qe=null,Qt=!1;function Ln(e,t,n){for(n=n.child;n!==null;)dc(e,t,n),n=n.sibling}function dc(e,t,n){if(qt&&typeof qt.onCommitFiberUnmount=="function")try{qt.onCommitFiberUnmount(Ll,n)}catch{}switch(n.tag){case 5:at||Sr(n,t);case 6:var r=qe,i=Qt;qe=null,Ln(e,t,n),qe=r,Qt=i,qe!==null&&(Qt?(e=qe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qe.removeChild(n.stateNode));break;case 18:qe!==null&&(Qt?(e=qe,n=n.stateNode,e.nodeType===8?_o(e.parentNode,n):e.nodeType===1&&_o(e,n),Vr(e)):_o(qe,n.stateNode));break;case 4:r=qe,i=Qt,qe=n.stateNode.containerInfo,Qt=!0,Ln(e,t,n),qe=r,Qt=i;break;case 0:case 11:case 14:case 15:if(!at&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,a!==void 0&&((o&2)!==0||(o&4)!==0)&&ps(n,t,a),i=i.next}while(i!==r)}Ln(e,t,n);break;case 1:if(!at&&(Sr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(p){Ue(n,t,p)}Ln(e,t,n);break;case 21:Ln(e,t,n);break;case 22:n.mode&1?(at=(r=at)||n.memoizedState!==null,Ln(e,t,n),at=r):Ln(e,t,n);break;default:Ln(e,t,n)}}function fc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new fp),t.forEach(function(r){var i=kp.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Kt(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];try{var o=e,a=t,p=a;e:for(;p!==null;){switch(p.tag){case 5:qe=p.stateNode,Qt=!1;break e;case 3:qe=p.stateNode.containerInfo,Qt=!0;break e;case 4:qe=p.stateNode.containerInfo,Qt=!0;break e}p=p.return}if(qe===null)throw Error(u(160));dc(o,a,i),qe=null,Qt=!1;var m=i.alternate;m!==null&&(m.return=null),i.return=null}catch(E){Ue(i,t,E)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)pc(t,e),t=t.sibling}function pc(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Kt(t,e),rn(e),r&4){try{cl(3,e,e.return),xi(3,e)}catch(X){Ue(e,e.return,X)}try{cl(5,e,e.return)}catch(X){Ue(e,e.return,X)}}break;case 1:Kt(t,e),rn(e),r&512&&n!==null&&Sr(n,n.return);break;case 5:if(Kt(t,e),rn(e),r&512&&n!==null&&Sr(n,n.return),e.flags&32){var i=e.stateNode;try{wn(i,"")}catch(X){Ue(e,e.return,X)}}if(r&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,a=n!==null?n.memoizedProps:o,p=e.type,m=e.updateQueue;if(e.updateQueue=null,m!==null)try{p==="input"&&o.type==="radio"&&o.name!=null&&ce(i,o),Mr(p,a);var E=Mr(p,o);for(a=0;a<m.length;a+=2){var M=m[a],L=m[a+1];M==="style"?Pl(i,L):M==="dangerouslySetInnerHTML"?yn(i,L):M==="children"?wn(i,L):re(i,M,L,E)}switch(p){case"input":we(i,o);break;case"textarea":Tr(i,o);break;case"select":var P=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var H=o.value;H!=null?Fe(i,!!o.multiple,H,!1):P!==!!o.multiple&&(o.defaultValue!=null?Fe(i,!!o.multiple,o.defaultValue,!0):Fe(i,!!o.multiple,o.multiple?[]:"",!1))}i[qr]=o}catch(X){Ue(e,e.return,X)}}break;case 6:if(Kt(t,e),rn(e),r&4){if(e.stateNode===null)throw Error(u(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(X){Ue(e,e.return,X)}}break;case 3:if(Kt(t,e),rn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vr(t.containerInfo)}catch(X){Ue(e,e.return,X)}break;case 4:Kt(t,e),rn(e);break;case 13:Kt(t,e),rn(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(ws=$e())),r&4&&fc(e);break;case 22:if(M=n!==null&&n.memoizedState!==null,e.mode&1?(at=(E=at)||M,Kt(t,e),at=E):Kt(t,e),rn(e),r&8192){if(E=e.memoizedState!==null,(e.stateNode.isHidden=E)&&!M&&(e.mode&1)!==0)for(Q=e,M=e.child;M!==null;){for(L=Q=M;Q!==null;){switch(P=Q,H=P.child,P.tag){case 0:case 11:case 14:case 15:cl(4,P,P.return);break;case 1:Sr(P,P.return);var K=P.stateNode;if(typeof K.componentWillUnmount=="function"){r=P,n=P.return;try{t=r,K.props=t.memoizedProps,K.state=t.memoizedState,K.componentWillUnmount()}catch(X){Ue(r,n,X)}}break;case 5:Sr(P,P.return);break;case 22:if(P.memoizedState!==null){mc(L);continue}}H!==null?(H.return=P,Q=H):mc(L)}M=M.sibling}e:for(M=null,L=e;;){if(L.tag===5){if(M===null){M=L;try{i=L.stateNode,E?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(p=L.stateNode,m=L.memoizedProps.style,a=m!=null&&m.hasOwnProperty("display")?m.display:null,p.style.display=Tl("display",a))}catch(X){Ue(e,e.return,X)}}}else if(L.tag===6){if(M===null)try{L.stateNode.nodeValue=E?"":L.memoizedProps}catch(X){Ue(e,e.return,X)}}else if((L.tag!==22&&L.tag!==23||L.memoizedState===null||L===e)&&L.child!==null){L.child.return=L,L=L.child;continue}if(L===e)break e;for(;L.sibling===null;){if(L.return===null||L.return===e)break e;M===L&&(M=null),L=L.return}M===L&&(M=null),L.sibling.return=L.return,L=L.sibling}}break;case 19:Kt(t,e),rn(e),r&4&&fc(e);break;case 21:break;default:Kt(t,e),rn(e)}}function rn(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(ac(n)){var r=n;break e}n=n.return}throw Error(u(160))}switch(r.tag){case 5:var i=r.stateNode;r.flags&32&&(wn(i,""),r.flags&=-33);var o=cc(e);ms(e,o,i);break;case 3:case 4:var a=r.stateNode.containerInfo,p=cc(e);vs(e,p,a);break;default:throw Error(u(161))}}catch(m){Ue(e,e.return,m)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function hp(e,t,n){Q=e,hc(e)}function hc(e,t,n){for(var r=(e.mode&1)!==0;Q!==null;){var i=Q,o=i.child;if(i.tag===22&&r){var a=i.memoizedState!==null||wi;if(!a){var p=i.alternate,m=p!==null&&p.memoizedState!==null||at;p=wi;var E=at;if(wi=a,(at=m)&&!E)for(Q=i;Q!==null;)a=Q,m=a.child,a.tag===22&&a.memoizedState!==null?gc(i):m!==null?(m.return=a,Q=m):gc(i);for(;o!==null;)Q=o,hc(o),o=o.sibling;Q=i,wi=p,at=E}vc(e)}else(i.subtreeFlags&8772)!==0&&o!==null?(o.return=i,Q=o):vc(e)}}function vc(e){for(;Q!==null;){var t=Q;if((t.flags&8772)!==0){var n=t.alternate;try{if((t.flags&8772)!==0)switch(t.tag){case 0:case 11:case 15:at||xi(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!at)if(n===null)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:Ht(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&ma(t,o,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}ma(t,a,n)}break;case 5:var p=t.stateNode;if(n===null&&t.flags&4){n=p;var m=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":m.autoFocus&&n.focus();break;case"img":m.src&&(n.src=m.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var E=t.alternate;if(E!==null){var M=E.memoizedState;if(M!==null){var L=M.dehydrated;L!==null&&Vr(L)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(u(163))}at||t.flags&512&&hs(t)}catch(P){Ue(t,t.return,P)}}if(t===e){Q=null;break}if(n=t.sibling,n!==null){n.return=t.return,Q=n;break}Q=t.return}}function mc(e){for(;Q!==null;){var t=Q;if(t===e){Q=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Q=n;break}Q=t.return}}function gc(e){for(;Q!==null;){var t=Q;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{xi(4,t)}catch(m){Ue(t,n,m)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var i=t.return;try{r.componentDidMount()}catch(m){Ue(t,i,m)}}var o=t.return;try{hs(t)}catch(m){Ue(t,o,m)}break;case 5:var a=t.return;try{hs(t)}catch(m){Ue(t,a,m)}}}catch(m){Ue(t,t.return,m)}if(t===e){Q=null;break}var p=t.sibling;if(p!==null){p.return=t.return,Q=p;break}Q=t.return}}var vp=Math.ceil,Si=G.ReactCurrentDispatcher,gs=G.ReactCurrentOwner,Ot=G.ReactCurrentBatchConfig,xe=0,Ge=null,He=null,et=0,Dt=0,kr=Dn(0),Ke=0,dl=null,bn=0,ki=0,ys=0,fl=null,xt=null,ws=0,Cr=1/0,vn=null,Ci=!1,xs=null,On=null,Ei=!1,zn=null,Ni=0,pl=0,Ss=null,ji=-1,Ri=0;function pt(){return(xe&6)!==0?$e():ji!==-1?ji:ji=$e()}function In(e){return(e.mode&1)===0?1:(xe&2)!==0&&et!==0?et&-et:Zf.transition!==null?(Ri===0&&(Ri=cu()),Ri):(e=je,e!==0||(e=window.event,e=e===void 0?16:wu(e.type)),e)}function Xt(e,t,n,r){if(50<pl)throw pl=0,Ss=null,Error(u(185));Ar(e,n,r),((xe&2)===0||e!==Ge)&&(e===Ge&&((xe&2)===0&&(ki|=n),Ke===4&&An(e,et)),St(e,r),n===1&&xe===0&&(t.mode&1)===0&&(Cr=$e()+500,ti&&Tn()))}function St(e,t){var n=e.callbackNode;Jd(e,t);var r=Il(e,e===Ge?et:0);if(r===0)n!==null&&su(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&su(n),t===1)e.tag===0?Jf(wc.bind(null,e)):la(wc.bind(null,e)),Xf(function(){(xe&6)===0&&Tn()}),n=null;else{switch(du(r)){case 1:n=qi;break;case 4:n=uu;break;case 16:n=Ml;break;case 536870912:n=au;break;default:n=Ml}n=Rc(n,yc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function yc(e,t){if(ji=-1,Ri=0,(xe&6)!==0)throw Error(u(327));var n=e.callbackNode;if(Er()&&e.callbackNode!==n)return null;var r=Il(e,e===Ge?et:0);if(r===0)return null;if((r&30)!==0||(r&e.expiredLanes)!==0||t)t=Di(e,r);else{t=r;var i=xe;xe|=2;var o=Sc();(Ge!==e||et!==t)&&(vn=null,Cr=$e()+500,Jn(e,t));do try{yp();break}catch(p){xc(e,p)}while(!0);Uo(),Si.current=o,xe=i,He!==null?t=0:(Ge=null,et=0,t=Ke)}if(t!==0){if(t===2&&(i=eo(e),i!==0&&(r=i,t=ks(e,i))),t===1)throw n=dl,Jn(e,0),An(e,r),St(e,$e()),n;if(t===6)An(e,r);else{if(i=e.current.alternate,(r&30)===0&&!mp(i)&&(t=Di(e,r),t===2&&(o=eo(e),o!==0&&(r=o,t=ks(e,o))),t===1))throw n=dl,Jn(e,0),An(e,r),St(e,$e()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(u(345));case 2:Zn(e,xt,vn);break;case 3:if(An(e,r),(r&130023424)===r&&(t=ws+500-$e(),10<t)){if(Il(e,0)!==0)break;if(i=e.suspendedLanes,(i&r)!==r){pt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Do(Zn.bind(null,e,xt,vn),t);break}Zn(e,xt,vn);break;case 4:if(An(e,r),(r&4194240)===r)break;for(t=e.eventTimes,i=-1;0<r;){var a=31-$t(r);o=1<<a,a=t[a],a>i&&(i=a),r&=~o}if(r=i,r=$e()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*vp(r/1960))-r,10<r){e.timeoutHandle=Do(Zn.bind(null,e,xt,vn),r);break}Zn(e,xt,vn);break;case 5:Zn(e,xt,vn);break;default:throw Error(u(329))}}}return St(e,$e()),e.callbackNode===n?yc.bind(null,e):null}function ks(e,t){var n=fl;return e.current.memoizedState.isDehydrated&&(Jn(e,t).flags|=256),e=Di(e,t),e!==2&&(t=xt,xt=n,t!==null&&Cs(t)),e}function Cs(e){xt===null?xt=e:xt.push.apply(xt,e)}function mp(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!Vt(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function An(e,t){for(t&=~ys,t&=~ki,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-$t(t),r=1<<n;e[n]=-1,t&=~r}}function wc(e){if((xe&6)!==0)throw Error(u(327));Er();var t=Il(e,0);if((t&1)===0)return St(e,$e()),null;var n=Di(e,t);if(e.tag!==0&&n===2){var r=eo(e);r!==0&&(t=r,n=ks(e,r))}if(n===1)throw n=dl,Jn(e,0),An(e,t),St(e,$e()),n;if(n===6)throw Error(u(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Zn(e,xt,vn),St(e,$e()),null}function Es(e,t){var n=xe;xe|=1;try{return e(t)}finally{xe=n,xe===0&&(Cr=$e()+500,ti&&Tn())}}function Gn(e){zn!==null&&zn.tag===0&&(xe&6)===0&&Er();var t=xe;xe|=1;var n=Ot.transition,r=je;try{if(Ot.transition=null,je=1,e)return e()}finally{je=r,Ot.transition=n,xe=t,(xe&6)===0&&Tn()}}function Ns(){Dt=kr.current,Pe(kr)}function Jn(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,Kf(n)),He!==null)for(n=He.return;n!==null;){var r=n;switch(Oo(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ql();break;case 3:wr(),Pe(gt),Pe(ot),Xo();break;case 5:Qo(r);break;case 4:wr();break;case 13:Pe(Ie);break;case 19:Pe(Ie);break;case 10:Bo(r.type._context);break;case 22:case 23:Ns()}n=n.return}if(Ge=e,He=e=Fn(e.current,null),et=Dt=t,Ke=0,dl=null,ys=ki=bn=0,xt=fl=null,Kn!==null){for(t=0;t<Kn.length;t++)if(n=Kn[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,o=n.pending;if(o!==null){var a=o.next;o.next=i,r.next=a}n.pending=r}Kn=null}return e}function xc(e,t){do{var n=He;try{if(Uo(),di.current=vi,fi){for(var r=Ae.memoizedState;r!==null;){var i=r.queue;i!==null&&(i.pending=null),r=r.next}fi=!1}if(Yn=0,be=Qe=Ae=null,il=!1,ol=0,gs.current=null,n===null||n.return===null){Ke=1,dl=t,He=null;break}e:{var o=e,a=n.return,p=n,m=t;if(t=et,p.flags|=32768,m!==null&&typeof m=="object"&&typeof m.then=="function"){var E=m,M=p,L=M.tag;if((M.mode&1)===0&&(L===0||L===11||L===15)){var P=M.alternate;P?(M.updateQueue=P.updateQueue,M.memoizedState=P.memoizedState,M.lanes=P.lanes):(M.updateQueue=null,M.memoizedState=null)}var H=Qa(a);if(H!==null){H.flags&=-257,Ka(H,a,p,o,t),H.mode&1&&Ha(o,E,t),t=H,m=E;var K=t.updateQueue;if(K===null){var X=new Set;X.add(m),t.updateQueue=X}else K.add(m);break e}else{if((t&1)===0){Ha(o,E,t),js();break e}m=Error(u(426))}}else if(Me&&p.mode&1){var Ve=Qa(a);if(Ve!==null){(Ve.flags&65536)===0&&(Ve.flags|=256),Ka(Ve,a,p,o,t),Ao(xr(m,p));break e}}o=m=xr(m,p),Ke!==4&&(Ke=2),fl===null?fl=[o]:fl.push(o),o=a;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var k=Va(o,m,t);va(o,k);break e;case 1:p=m;var g=o.type,C=o.stateNode;if((o.flags&128)===0&&(typeof g.getDerivedStateFromError=="function"||C!==null&&typeof C.componentDidCatch=="function"&&(On===null||!On.has(C)))){o.flags|=65536,t&=-t,o.lanes|=t;var A=Wa(o,p,t);va(o,A);break e}}o=o.return}while(o!==null)}Cc(n)}catch(b){t=b,He===n&&n!==null&&(He=n=n.return);continue}break}while(!0)}function Sc(){var e=Si.current;return Si.current=vi,e===null?vi:e}function js(){(Ke===0||Ke===3||Ke===2)&&(Ke=4),Ge===null||(bn&268435455)===0&&(ki&268435455)===0||An(Ge,et)}function Di(e,t){var n=xe;xe|=2;var r=Sc();(Ge!==e||et!==t)&&(vn=null,Jn(e,t));do try{gp();break}catch(i){xc(e,i)}while(!0);if(Uo(),xe=n,Si.current=r,He!==null)throw Error(u(261));return Ge=null,et=0,Ke}function gp(){for(;He!==null;)kc(He)}function yp(){for(;He!==null&&!Vd();)kc(He)}function kc(e){var t=jc(e.alternate,e,Dt);e.memoizedProps=e.pendingProps,t===null?Cc(e):He=t,gs.current=null}function Cc(e){var t=e;do{var n=t.alternate;if(e=t.return,(t.flags&32768)===0){if(n=cp(n,t,Dt),n!==null){He=n;return}}else{if(n=dp(n,t),n!==null){n.flags&=32767,He=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ke=6,He=null;return}}if(t=t.sibling,t!==null){He=t;return}He=t=e}while(t!==null);Ke===0&&(Ke=5)}function Zn(e,t,n){var r=je,i=Ot.transition;try{Ot.transition=null,je=1,wp(e,t,n,r)}finally{Ot.transition=i,je=r}return null}function wp(e,t,n,r){do Er();while(zn!==null);if((xe&6)!==0)throw Error(u(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(u(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Zd(e,o),e===Ge&&(He=Ge=null,et=0),(n.subtreeFlags&2064)===0&&(n.flags&2064)===0||Ei||(Ei=!0,Rc(Ml,function(){return Er(),null})),o=(n.flags&15990)!==0,(n.subtreeFlags&15990)!==0||o){o=Ot.transition,Ot.transition=null;var a=je;je=1;var p=xe;xe|=4,gs.current=null,pp(e,n),pc(n,e),Uf(jo),Ul=!!No,jo=No=null,e.current=n,hp(n),Wd(),xe=p,je=a,Ot.transition=o}else e.current=n;if(Ei&&(Ei=!1,zn=e,Ni=i),o=e.pendingLanes,o===0&&(On=null),Kd(n.stateNode),St(e,$e()),t!==null)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Ci)throw Ci=!1,e=xs,xs=null,e;return(Ni&1)!==0&&e.tag!==0&&Er(),o=e.pendingLanes,(o&1)!==0?e===Ss?pl++:(pl=0,Ss=e):pl=0,Tn(),null}function Er(){if(zn!==null){var e=du(Ni),t=Ot.transition,n=je;try{if(Ot.transition=null,je=16>e?16:e,zn===null)var r=!1;else{if(e=zn,zn=null,Ni=0,(xe&6)!==0)throw Error(u(331));var i=xe;for(xe|=4,Q=e.current;Q!==null;){var o=Q,a=o.child;if((Q.flags&16)!==0){var p=o.deletions;if(p!==null){for(var m=0;m<p.length;m++){var E=p[m];for(Q=E;Q!==null;){var M=Q;switch(M.tag){case 0:case 11:case 15:cl(8,M,o)}var L=M.child;if(L!==null)L.return=M,Q=L;else for(;Q!==null;){M=Q;var P=M.sibling,H=M.return;if(uc(M),M===E){Q=null;break}if(P!==null){P.return=H,Q=P;break}Q=H}}}var K=o.alternate;if(K!==null){var X=K.child;if(X!==null){K.child=null;do{var Ve=X.sibling;X.sibling=null,X=Ve}while(X!==null)}}Q=o}}if((o.subtreeFlags&2064)!==0&&a!==null)a.return=o,Q=a;else e:for(;Q!==null;){if(o=Q,(o.flags&2048)!==0)switch(o.tag){case 0:case 11:case 15:cl(9,o,o.return)}var k=o.sibling;if(k!==null){k.return=o.return,Q=k;break e}Q=o.return}}var g=e.current;for(Q=g;Q!==null;){a=Q;var C=a.child;if((a.subtreeFlags&2064)!==0&&C!==null)C.return=a,Q=C;else e:for(a=g;Q!==null;){if(p=Q,(p.flags&2048)!==0)try{switch(p.tag){case 0:case 11:case 15:xi(9,p)}}catch(b){Ue(p,p.return,b)}if(p===a){Q=null;break e}var A=p.sibling;if(A!==null){A.return=p.return,Q=A;break e}Q=p.return}}if(xe=i,Tn(),qt&&typeof qt.onPostCommitFiberRoot=="function")try{qt.onPostCommitFiberRoot(Ll,e)}catch{}r=!0}return r}finally{je=n,Ot.transition=t}}return!1}function Ec(e,t,n){t=xr(n,t),t=Va(e,t,1),e=Mn(e,t,1),t=pt(),e!==null&&(Ar(e,1,t),St(e,t))}function Ue(e,t,n){if(e.tag===3)Ec(e,e,n);else for(;t!==null;){if(t.tag===3){Ec(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(On===null||!On.has(r))){e=xr(n,e),e=Wa(t,e,1),t=Mn(t,e,1),e=pt(),t!==null&&(Ar(t,1,e),St(t,e));break}}t=t.return}}function xp(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=pt(),e.pingedLanes|=e.suspendedLanes&n,Ge===e&&(et&n)===n&&(Ke===4||Ke===3&&(et&130023424)===et&&500>$e()-ws?Jn(e,0):ys|=n),St(e,t)}function Nc(e,t){t===0&&((e.mode&1)===0?t=1:(t=zl,zl<<=1,(zl&130023424)===0&&(zl=4194304)));var n=pt();e=fn(e,t),e!==null&&(Ar(e,t,n),St(e,n))}function Sp(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Nc(e,n)}function kp(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(u(314))}r!==null&&r.delete(t),Nc(e,n)}var jc;jc=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||gt.current)wt=!0;else{if((e.lanes&n)===0&&(t.flags&128)===0)return wt=!1,ap(e,t,n);wt=(e.flags&131072)!==0}else wt=!1,Me&&(t.flags&1048576)!==0&&ia(t,ri,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;yi(e,t),e=t.pendingProps;var i=fr(t,ot.current);yr(t,n),i=Go(null,t,r,e,i,n);var o=Jo();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,yt(r)?(o=!0,ei(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Wo(t),i.updater=mi,t.stateNode=i,i._reactInternals=t,rs(t,r,e,n),t=ss(null,t,r,!0,o,n)):(t.tag=0,Me&&o&&Lo(t),ft(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(yi(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ep(r),e=Ht(r,e),i){case 0:t=os(null,t,r,e,n);break e;case 1:t=Za(null,t,r,e,n);break e;case 11:t=Xa(null,t,r,e,n);break e;case 14:t=Ya(null,t,r,Ht(r.type,e),n);break e}throw Error(u(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ht(r,i),os(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ht(r,i),Za(e,t,r,i,n);case 3:e:{if(qa(t),e===null)throw Error(u(387));r=t.pendingProps,o=t.memoizedState,i=o.element,ha(e,t),ai(t,r,null,n);var a=t.memoizedState;if(r=a.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=xr(Error(u(423)),t),t=ec(e,t,r,n,i);break e}else if(r!==i){i=xr(Error(u(424)),t),t=ec(e,t,r,n,i);break e}else for(Rt=Rn(t.stateNode.containerInfo.firstChild),jt=t,Me=!0,Wt=null,n=fa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vr(),r===i){t=hn(e,t,n);break e}ft(e,t,r,n)}t=t.child}return t;case 5:return ga(t),e===null&&Io(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,a=i.children,Ro(r,i)?a=null:o!==null&&Ro(r,o)&&(t.flags|=32),Ja(e,t),ft(e,t,a,n),t.child;case 6:return e===null&&Io(t),null;case 13:return tc(e,t,n);case 4:return Ho(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=mr(t,null,r,n):ft(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ht(r,i),Xa(e,t,r,i,n);case 7:return ft(e,t,t.pendingProps,n),t.child;case 8:return ft(e,t,t.pendingProps.children,n),t.child;case 12:return ft(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=i.value,_e(oi,r._currentValue),r._currentValue=a,o!==null)if(Vt(o.value,a)){if(o.children===i.children&&!gt.current){t=hn(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var p=o.dependencies;if(p!==null){a=o.child;for(var m=p.firstContext;m!==null;){if(m.context===r){if(o.tag===1){m=pn(-1,n&-n),m.tag=2;var E=o.updateQueue;if(E!==null){E=E.shared;var M=E.pending;M===null?m.next=m:(m.next=M.next,M.next=m),E.pending=m}}o.lanes|=n,m=o.alternate,m!==null&&(m.lanes|=n),$o(o.return,n,t),p.lanes|=n;break}m=m.next}}else if(o.tag===10)a=o.type===t.type?null:o.child;else if(o.tag===18){if(a=o.return,a===null)throw Error(u(341));a.lanes|=n,p=a.alternate,p!==null&&(p.lanes|=n),$o(a,n,t),a=o.sibling}else a=o.child;if(a!==null)a.return=o;else for(a=o;a!==null;){if(a===t){a=null;break}if(o=a.sibling,o!==null){o.return=a.return,a=o;break}a=a.return}o=a}ft(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,yr(t,n),i=Mt(i),r=r(i),t.flags|=1,ft(e,t,r,n),t.child;case 14:return r=t.type,i=Ht(r,t.pendingProps),i=Ht(r.type,i),Ya(e,t,r,i,n);case 15:return ba(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:Ht(r,i),yi(e,t),t.tag=1,yt(r)?(e=!0,ei(t)):e=!1,yr(t,n),Ba(t,r,i),rs(t,r,i,n),ss(null,t,r,!0,e,n);case 19:return rc(e,t,n);case 22:return Ga(e,t,n)}throw Error(u(156,t.tag))};function Rc(e,t){return ou(e,t)}function Cp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zt(e,t,n,r){return new Cp(e,t,n,r)}function Rs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ep(e){if(typeof e=="function")return Rs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ne)return 11;if(e===Le)return 14}return 2}function Fn(e,t){var n=e.alternate;return n===null?(n=zt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function _i(e,t,n,r,i,o){var a=2;if(r=e,typeof e=="function")Rs(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Z:return qn(n.children,i,o,t);case te:a=8,i|=8;break;case me:return e=zt(12,n,t,i|2),e.elementType=me,e.lanes=o,e;case ge:return e=zt(13,n,t,i),e.elementType=ge,e.lanes=o,e;case Ce:return e=zt(19,n,t,i),e.elementType=Ce,e.lanes=o,e;case pe:return Ti(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ye:a=10;break e;case z:a=9;break e;case ne:a=11;break e;case Le:a=14;break e;case fe:a=16,r=null;break e}throw Error(u(130,e==null?e:typeof e,""))}return t=zt(a,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function qn(e,t,n,r){return e=zt(7,e,r,t),e.lanes=n,e}function Ti(e,t,n,r){return e=zt(22,e,r,t),e.elementType=pe,e.lanes=n,e.stateNode={isHidden:!1},e}function Ds(e,t,n){return e=zt(6,e,null,t),e.lanes=n,e}function _s(e,t,n){return t=zt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Np(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=to(0),this.expirationTimes=to(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=to(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Ts(e,t,n,r,i,o,a,p,m){return e=new Np(e,t,n,p,m),t===1?(t=1,o===!0&&(t|=8)):t=0,o=zt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Wo(o),e}function jp(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:le,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function Dc(e){if(!e)return _n;e=e._reactInternals;e:{if($n(e)!==e||e.tag!==1)throw Error(u(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(yt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error(u(171))}if(e.tag===1){var n=e.type;if(yt(n))return na(e,n,t)}return t}function _c(e,t,n,r,i,o,a,p,m){return e=Ts(n,r,!0,e,i,o,a,p,m),e.context=Dc(null),n=e.current,r=pt(),i=In(n),o=pn(r,i),o.callback=t??null,Mn(n,o,i),e.current.lanes=i,Ar(e,i,r),St(e,r),e}function Pi(e,t,n,r){var i=t.current,o=pt(),a=In(i);return n=Dc(n),t.context===null?t.context=n:t.pendingContext=n,t=pn(o,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=Mn(i,t,a),e!==null&&(Xt(e,i,a,o),ui(e,i,a)),a}function Mi(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function Tc(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ps(e,t){Tc(e,t),(e=e.alternate)&&Tc(e,t)}function Rp(){return null}var Pc=typeof reportError=="function"?reportError:function(e){console.error(e)};function Ms(e){this._internalRoot=e}Li.prototype.render=Ms.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(u(409));Pi(e,t,null,null)},Li.prototype.unmount=Ms.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Gn(function(){Pi(null,e,null,null)}),t[un]=null}};function Li(e){this._internalRoot=e}Li.prototype.unstable_scheduleHydration=function(e){if(e){var t=hu();e={blockedOn:null,target:e,priority:t};for(var n=0;n<En.length&&t!==0&&t<En[n].priority;n++);En.splice(n,0,e),n===0&&gu(e)}};function Ls(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Oi(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Mc(){}function Dp(e,t,n,r,i){if(i){if(typeof r=="function"){var o=r;r=function(){var E=Mi(a);o.call(E)}}var a=_c(t,r,e,0,null,!1,!1,"",Mc);return e._reactRootContainer=a,e[un]=a.current,Jr(e.nodeType===8?e.parentNode:e),Gn(),a}for(;i=e.lastChild;)e.removeChild(i);if(typeof r=="function"){var p=r;r=function(){var E=Mi(m);p.call(E)}}var m=Ts(e,0,!1,null,null,!1,!1,"",Mc);return e._reactRootContainer=m,e[un]=m.current,Jr(e.nodeType===8?e.parentNode:e),Gn(function(){Pi(t,m,n,r)}),m}function zi(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if(typeof i=="function"){var p=i;i=function(){var m=Mi(a);p.call(m)}}Pi(t,a,e,i)}else a=Dp(n,t,e,i,r);return Mi(a)}fu=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Ir(t.pendingLanes);n!==0&&(no(t,n|1),St(t,$e()),(xe&6)===0&&(Cr=$e()+500,Tn()))}break;case 13:Gn(function(){var r=fn(e,1);if(r!==null){var i=pt();Xt(r,e,1,i)}}),Ps(e,1)}},ro=function(e){if(e.tag===13){var t=fn(e,134217728);if(t!==null){var n=pt();Xt(t,e,134217728,n)}Ps(e,134217728)}},pu=function(e){if(e.tag===13){var t=In(e),n=fn(e,t);if(n!==null){var r=pt();Xt(n,e,t,r)}Ps(e,t)}},hu=function(){return je},vu=function(e,t){var n=je;try{return je=e,t()}finally{je=n}},Or=function(e,t,n){switch(t){case"input":if(we(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=Zl(r);if(!i)throw Error(u(90));Ct(r),we(r,i)}}}break;case"textarea":Tr(e,n);break;case"select":t=n.value,t!=null&&Fe(e,!!n.multiple,t,!1)}},dt=Es,lt=Gn;var _p={usingClientEntryPoint:!1,Events:[el,cr,Zl,rt,Ft,Es]},hl={findFiberByHostInstance:Vn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Tp={bundleType:hl.bundleType,version:hl.version,rendererPackageName:hl.rendererPackageName,rendererConfig:hl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:G.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=lu(e),e===null?null:e.stateNode},findFiberByHostInstance:hl.findFiberByHostInstance||Rp,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ii=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ii.isDisabled&&Ii.supportsFiber)try{Ll=Ii.inject(Tp),qt=Ii}catch{}}return kt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_p,kt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Ls(t))throw Error(u(200));return jp(e,t,null,n)},kt.createRoot=function(e,t){if(!Ls(e))throw Error(u(299));var n=!1,r="",i=Pc;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Ts(e,1,!1,null,null,n,!1,r,i),e[un]=t.current,Jr(e.nodeType===8?e.parentNode:e),new Ms(t)},kt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(u(188)):(e=Object.keys(e).join(","),Error(u(268,e)));return e=lu(t),e=e===null?null:e.stateNode,e},kt.flushSync=function(e){return Gn(e)},kt.hydrate=function(e,t,n){if(!Oi(t))throw Error(u(200));return zi(null,e,t,!0,n)},kt.hydrateRoot=function(e,t,n){if(!Ls(e))throw Error(u(405));var r=n!=null&&n.hydratedSources||null,i=!1,o="",a=Pc;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=_c(t,null,e,1,n??null,i,!1,o,a),e[un]=t.current,Jr(e),r)for(e=0;e<r.length;e++)n=r[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Li(t)},kt.render=function(e,t,n){if(!Oi(t))throw Error(u(200));return zi(null,e,t,!1,n)},kt.unmountComponentAtNode=function(e){if(!Oi(e))throw Error(u(40));return e._reactRootContainer?(Gn(function(){zi(null,null,e,!1,function(){e._reactRootContainer=null,e[un]=null})}),!0):!1},kt.unstable_batchedUpdates=Es,kt.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!Oi(n))throw Error(u(200));if(e==null||e._reactInternals===void 0)throw Error(u(38));return zi(e,t,n,!1,r)},kt.version="18.3.1-next-f1338f8080-20240426",kt}var Bc;function cd(){if(Bc)return Is.exports;Bc=1;function l(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(l)}catch(s){console.error(s)}}return l(),Is.exports=Fp(),Is.exports}var $c;function Up(){if($c)return Ai;$c=1;var l=cd();return Ai.createRoot=l.createRoot,Ai.hydrateRoot=l.hydrateRoot,Ai}var Bp=Up(),ml=cd();const Yi=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function Rr(l){const s=Object.prototype.toString.call(l);return s==="[object Window]"||s==="[object global]"}function Xs(l){return"nodeType"in l}function ht(l){var s,u;return l?Rr(l)?l:Xs(l)&&(s=(u=l.ownerDocument)==null?void 0:u.defaultView)!=null?s:window:window}function Ys(l){const{Document:s}=ht(l);return l instanceof s}function Cl(l){return Rr(l)?!1:l instanceof ht(l).HTMLElement}function dd(l){return l instanceof ht(l).SVGElement}function Dr(l){return l?Rr(l)?l.document:Xs(l)?Ys(l)?l:Cl(l)||dd(l)?l.ownerDocument:document:document:document}const mn=Yi?S.useLayoutEffect:S.useEffect;function bi(l){const s=S.useRef(l);return mn(()=>{s.current=l}),S.useCallback(function(){for(var u=arguments.length,c=new Array(u),f=0;f<u;f++)c[f]=arguments[f];return s.current==null?void 0:s.current(...c)},[])}function $p(){const l=S.useRef(null),s=S.useCallback((c,f)=>{l.current=setInterval(c,f)},[]),u=S.useCallback(()=>{l.current!==null&&(clearInterval(l.current),l.current=null)},[]);return[s,u]}function Sl(l,s){s===void 0&&(s=[l]);const u=S.useRef(l);return mn(()=>{u.current!==l&&(u.current=l)},s),u}function El(l,s){const u=S.useRef();return S.useMemo(()=>{const c=l(u.current);return u.current=c,c},[...s])}function $i(l){const s=bi(l),u=S.useRef(null),c=S.useCallback(f=>{f!==u.current&&(s==null||s(f,u.current)),u.current=f},[]);return[u,c]}function Vi(l){const s=S.useRef();return S.useEffect(()=>{s.current=l},[l]),s.current}let Us={};function Gi(l,s){return S.useMemo(()=>{if(s)return s;const u=Us[l]==null?0:Us[l]+1;return Us[l]=u,l+"-"+u},[l,s])}function fd(l){return function(s){for(var u=arguments.length,c=new Array(u>1?u-1:0),f=1;f<u;f++)c[f-1]=arguments[f];return c.reduce((h,y)=>{const v=Object.entries(y);for(const[w,N]of v){const j=h[w];j!=null&&(h[w]=j+l*N)}return h},{...s})}}const Nr=fd(1),Wi=fd(-1);function Vp(l){return"clientX"in l&&"clientY"in l}function bs(l){if(!l)return!1;const{KeyboardEvent:s}=ht(l.target);return s&&l instanceof s}function Wp(l){if(!l)return!1;const{TouchEvent:s}=ht(l.target);return s&&l instanceof s}function Hi(l){if(Wp(l)){if(l.touches&&l.touches.length){const{clientX:s,clientY:u}=l.touches[0];return{x:s,y:u}}else if(l.changedTouches&&l.changedTouches.length){const{clientX:s,clientY:u}=l.changedTouches[0];return{x:s,y:u}}}return Vp(l)?{x:l.clientX,y:l.clientY}:null}const jr=Object.freeze({Translate:{toString(l){if(!l)return;const{x:s,y:u}=l;return"translate3d("+(s?Math.round(s):0)+"px, "+(u?Math.round(u):0)+"px, 0)"}},Scale:{toString(l){if(!l)return;const{scaleX:s,scaleY:u}=l;return"scaleX("+s+") scaleY("+u+")"}},Transform:{toString(l){if(l)return[jr.Translate.toString(l),jr.Scale.toString(l)].join(" ")}},Transition:{toString(l){let{property:s,duration:u,easing:c}=l;return s+" "+u+"ms "+c}}}),Vc="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function Hp(l){return l.matches(Vc)?l:l.querySelector(Vc)}const Qp={display:"none"};function Kp(l){let{id:s,value:u}=l;return We.createElement("div",{id:s,style:Qp},u)}function Xp(l){let{id:s,announcement:u,ariaLiveType:c="assertive"}=l;const f={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return We.createElement("div",{id:s,style:f,role:"status","aria-live":c,"aria-atomic":!0},u)}function Yp(){const[l,s]=S.useState("");return{announce:S.useCallback(c=>{c!=null&&s(c)},[]),announcement:l}}const pd=S.createContext(null);function bp(l){const s=S.useContext(pd);S.useEffect(()=>{if(!s)throw new Error("useDndMonitor must be used within a children of <DndContext>");return s(l)},[l,s])}function Gp(){const[l]=S.useState(()=>new Set),s=S.useCallback(c=>(l.add(c),()=>l.delete(c)),[l]);return[S.useCallback(c=>{let{type:f,event:h}=c;l.forEach(y=>{var v;return(v=y[f])==null?void 0:v.call(y,h)})},[l]),s]}const Jp={draggable:`
|
|
41
|
+
To pick up a draggable item, press the space bar.
|
|
42
|
+
While dragging, use the arrow keys to move the item.
|
|
43
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
44
|
+
`},Zp={onDragStart(l){let{active:s}=l;return"Picked up draggable item "+s.id+"."},onDragOver(l){let{active:s,over:u}=l;return u?"Draggable item "+s.id+" was moved over droppable area "+u.id+".":"Draggable item "+s.id+" is no longer over a droppable area."},onDragEnd(l){let{active:s,over:u}=l;return u?"Draggable item "+s.id+" was dropped over droppable area "+u.id:"Draggable item "+s.id+" was dropped."},onDragCancel(l){let{active:s}=l;return"Dragging was cancelled. Draggable item "+s.id+" was dropped."}};function qp(l){let{announcements:s=Zp,container:u,hiddenTextDescribedById:c,screenReaderInstructions:f=Jp}=l;const{announce:h,announcement:y}=Yp(),v=Gi("DndLiveRegion"),[w,N]=S.useState(!1);if(S.useEffect(()=>{N(!0)},[]),bp(S.useMemo(()=>({onDragStart(R){let{active:U}=R;h(s.onDragStart({active:U}))},onDragMove(R){let{active:U,over:D}=R;s.onDragMove&&h(s.onDragMove({active:U,over:D}))},onDragOver(R){let{active:U,over:D}=R;h(s.onDragOver({active:U,over:D}))},onDragEnd(R){let{active:U,over:D}=R;h(s.onDragEnd({active:U,over:D}))},onDragCancel(R){let{active:U,over:D}=R;h(s.onDragCancel({active:U,over:D}))}}),[h,s])),!w)return null;const j=We.createElement(We.Fragment,null,We.createElement(Kp,{id:c,value:f.draggable}),We.createElement(Xp,{id:v,announcement:y}));return u?ml.createPortal(j,u):j}var Ye;(function(l){l.DragStart="dragStart",l.DragMove="dragMove",l.DragEnd="dragEnd",l.DragCancel="dragCancel",l.DragOver="dragOver",l.RegisterDroppable="registerDroppable",l.SetDroppableDisabled="setDroppableDisabled",l.UnregisterDroppable="unregisterDroppable"})(Ye||(Ye={}));function Qi(){}function Wc(l,s){return S.useMemo(()=>({sensor:l,options:s??{}}),[l,s])}function eh(){for(var l=arguments.length,s=new Array(l),u=0;u<l;u++)s[u]=arguments[u];return S.useMemo(()=>[...s].filter(c=>c!=null),[...s])}const Yt=Object.freeze({x:0,y:0});function th(l,s){const u=Hi(l);if(!u)return"0 0";const c={x:(u.x-s.left)/s.width*100,y:(u.y-s.top)/s.height*100};return c.x+"% "+c.y+"%"}function nh(l,s){let{data:{value:u}}=l,{data:{value:c}}=s;return c-u}function rh(l,s){if(!l||l.length===0)return null;const[u]=l;return u[s]}function lh(l,s){const u=Math.max(s.top,l.top),c=Math.max(s.left,l.left),f=Math.min(s.left+s.width,l.left+l.width),h=Math.min(s.top+s.height,l.top+l.height),y=f-c,v=h-u;if(c<f&&u<h){const w=s.width*s.height,N=l.width*l.height,j=y*v,R=j/(w+N-j);return Number(R.toFixed(4))}return 0}const ih=l=>{let{collisionRect:s,droppableRects:u,droppableContainers:c}=l;const f=[];for(const h of c){const{id:y}=h,v=u.get(y);if(v){const w=lh(v,s);w>0&&f.push({id:y,data:{droppableContainer:h,value:w}})}}return f.sort(nh)};function oh(l,s,u){return{...l,scaleX:s&&u?s.width/u.width:1,scaleY:s&&u?s.height/u.height:1}}function hd(l,s){return l&&s?{x:l.left-s.left,y:l.top-s.top}:Yt}function sh(l){return function(u){for(var c=arguments.length,f=new Array(c>1?c-1:0),h=1;h<c;h++)f[h-1]=arguments[h];return f.reduce((y,v)=>({...y,top:y.top+l*v.y,bottom:y.bottom+l*v.y,left:y.left+l*v.x,right:y.right+l*v.x}),{...u})}}const uh=sh(1);function vd(l){if(l.startsWith("matrix3d(")){const s=l.slice(9,-1).split(/, /);return{x:+s[12],y:+s[13],scaleX:+s[0],scaleY:+s[5]}}else if(l.startsWith("matrix(")){const s=l.slice(7,-1).split(/, /);return{x:+s[4],y:+s[5],scaleX:+s[0],scaleY:+s[3]}}return null}function ah(l,s,u){const c=vd(s);if(!c)return l;const{scaleX:f,scaleY:h,x:y,y:v}=c,w=l.left-y-(1-f)*parseFloat(u),N=l.top-v-(1-h)*parseFloat(u.slice(u.indexOf(" ")+1)),j=f?l.width/f:l.width,R=h?l.height/h:l.height;return{width:j,height:R,top:N,right:w+j,bottom:N+R,left:w}}const ch={ignoreTransform:!1};function Nl(l,s){s===void 0&&(s=ch);let u=l.getBoundingClientRect();if(s.ignoreTransform){const{transform:N,transformOrigin:j}=ht(l).getComputedStyle(l);N&&(u=ah(u,N,j))}const{top:c,left:f,width:h,height:y,bottom:v,right:w}=u;return{top:c,left:f,width:h,height:y,bottom:v,right:w}}function Hc(l){return Nl(l,{ignoreTransform:!0})}function dh(l){const s=l.innerWidth,u=l.innerHeight;return{top:0,left:0,right:s,bottom:u,width:s,height:u}}function fh(l,s){return s===void 0&&(s=ht(l).getComputedStyle(l)),s.position==="fixed"}function ph(l,s){s===void 0&&(s=ht(l).getComputedStyle(l));const u=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(f=>{const h=s[f];return typeof h=="string"?u.test(h):!1})}function Gs(l,s){const u=[];function c(f){if(s!=null&&u.length>=s||!f)return u;if(Ys(f)&&f.scrollingElement!=null&&!u.includes(f.scrollingElement))return u.push(f.scrollingElement),u;if(!Cl(f)||dd(f)||u.includes(f))return u;const h=ht(l).getComputedStyle(f);return f!==l&&ph(f,h)&&u.push(f),fh(f,h)?u:c(f.parentNode)}return l?c(l):u}function md(l){const[s]=Gs(l,1);return s??null}function Bs(l){return!Yi||!l?null:Rr(l)?l:Xs(l)?Ys(l)||l===Dr(l).scrollingElement?window:Cl(l)?l:null:null}function gd(l){return Rr(l)?l.scrollX:l.scrollLeft}function yd(l){return Rr(l)?l.scrollY:l.scrollTop}function Ws(l){return{x:gd(l),y:yd(l)}}var Ze;(function(l){l[l.Forward=1]="Forward",l[l.Backward=-1]="Backward"})(Ze||(Ze={}));function wd(l){return!Yi||!l?!1:l===document.scrollingElement}function xd(l){const s={x:0,y:0},u=wd(l)?{height:window.innerHeight,width:window.innerWidth}:{height:l.clientHeight,width:l.clientWidth},c={x:l.scrollWidth-u.width,y:l.scrollHeight-u.height},f=l.scrollTop<=s.y,h=l.scrollLeft<=s.x,y=l.scrollTop>=c.y,v=l.scrollLeft>=c.x;return{isTop:f,isLeft:h,isBottom:y,isRight:v,maxScroll:c,minScroll:s}}const hh={x:.2,y:.2};function vh(l,s,u,c,f){let{top:h,left:y,right:v,bottom:w}=u;c===void 0&&(c=10),f===void 0&&(f=hh);const{isTop:N,isBottom:j,isLeft:R,isRight:U}=xd(l),D={x:0,y:0},I={x:0,y:0},T={height:s.height*f.y,width:s.width*f.x};return!N&&h<=s.top+T.height?(D.y=Ze.Backward,I.y=c*Math.abs((s.top+T.height-h)/T.height)):!j&&w>=s.bottom-T.height&&(D.y=Ze.Forward,I.y=c*Math.abs((s.bottom-T.height-w)/T.height)),!U&&v>=s.right-T.width?(D.x=Ze.Forward,I.x=c*Math.abs((s.right-T.width-v)/T.width)):!R&&y<=s.left+T.width&&(D.x=Ze.Backward,I.x=c*Math.abs((s.left+T.width-y)/T.width)),{direction:D,speed:I}}function mh(l){if(l===document.scrollingElement){const{innerWidth:h,innerHeight:y}=window;return{top:0,left:0,right:h,bottom:y,width:h,height:y}}const{top:s,left:u,right:c,bottom:f}=l.getBoundingClientRect();return{top:s,left:u,right:c,bottom:f,width:l.clientWidth,height:l.clientHeight}}function Sd(l){return l.reduce((s,u)=>Nr(s,Ws(u)),Yt)}function gh(l){return l.reduce((s,u)=>s+gd(u),0)}function yh(l){return l.reduce((s,u)=>s+yd(u),0)}function kd(l,s){if(s===void 0&&(s=Nl),!l)return;const{top:u,left:c,bottom:f,right:h}=s(l);md(l)&&(f<=0||h<=0||u>=window.innerHeight||c>=window.innerWidth)&&l.scrollIntoView({block:"center",inline:"center"})}const wh=[["x",["left","right"],gh],["y",["top","bottom"],yh]];class Js{constructor(s,u){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const c=Gs(u),f=Sd(c);this.rect={...s},this.width=s.width,this.height=s.height;for(const[h,y,v]of wh)for(const w of y)Object.defineProperty(this,w,{get:()=>{const N=v(c),j=f[h]-N;return this.rect[w]+j},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class yl{constructor(s){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(u=>{var c;return(c=this.target)==null?void 0:c.removeEventListener(...u)})},this.target=s}add(s,u,c){var f;(f=this.target)==null||f.addEventListener(s,u,c),this.listeners.push([s,u,c])}}function xh(l){const{EventTarget:s}=ht(l);return l instanceof s?l:Dr(l)}function $s(l,s){const u=Math.abs(l.x),c=Math.abs(l.y);return typeof s=="number"?Math.sqrt(u**2+c**2)>s:"x"in s&&"y"in s?u>s.x&&c>s.y:"x"in s?u>s.x:"y"in s?c>s.y:!1}var It;(function(l){l.Click="click",l.DragStart="dragstart",l.Keydown="keydown",l.ContextMenu="contextmenu",l.Resize="resize",l.SelectionChange="selectionchange",l.VisibilityChange="visibilitychange"})(It||(It={}));function Qc(l){l.preventDefault()}function Sh(l){l.stopPropagation()}var De;(function(l){l.Space="Space",l.Down="ArrowDown",l.Right="ArrowRight",l.Left="ArrowLeft",l.Up="ArrowUp",l.Esc="Escape",l.Enter="Enter",l.Tab="Tab"})(De||(De={}));const Cd={start:[De.Space,De.Enter],cancel:[De.Esc],end:[De.Space,De.Enter,De.Tab]},kh=(l,s)=>{let{currentCoordinates:u}=s;switch(l.code){case De.Right:return{...u,x:u.x+25};case De.Left:return{...u,x:u.x-25};case De.Down:return{...u,y:u.y+25};case De.Up:return{...u,y:u.y-25}}};class Zs{constructor(s){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=s;const{event:{target:u}}=s;this.props=s,this.listeners=new yl(Dr(u)),this.windowListeners=new yl(ht(u)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(It.Resize,this.handleCancel),this.windowListeners.add(It.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(It.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:s,onStart:u}=this.props,c=s.node.current;c&&kd(c),u(Yt)}handleKeyDown(s){if(bs(s)){const{active:u,context:c,options:f}=this.props,{keyboardCodes:h=Cd,coordinateGetter:y=kh,scrollBehavior:v="smooth"}=f,{code:w}=s;if(h.end.includes(w)){this.handleEnd(s);return}if(h.cancel.includes(w)){this.handleCancel(s);return}const{collisionRect:N}=c.current,j=N?{x:N.left,y:N.top}:Yt;this.referenceCoordinates||(this.referenceCoordinates=j);const R=y(s,{active:u,context:c.current,currentCoordinates:j});if(R){const U=Wi(R,j),D={x:0,y:0},{scrollableAncestors:I}=c.current;for(const T of I){const F=s.code,{isTop:V,isRight:Y,isLeft:re,isBottom:G,maxScroll:ue,minScroll:le}=xd(T),Z=mh(T),te={x:Math.min(F===De.Right?Z.right-Z.width/2:Z.right,Math.max(F===De.Right?Z.left:Z.left+Z.width/2,R.x)),y:Math.min(F===De.Down?Z.bottom-Z.height/2:Z.bottom,Math.max(F===De.Down?Z.top:Z.top+Z.height/2,R.y))},me=F===De.Right&&!Y||F===De.Left&&!re,ye=F===De.Down&&!G||F===De.Up&&!V;if(me&&te.x!==R.x){const z=T.scrollLeft+U.x,ne=F===De.Right&&z<=ue.x||F===De.Left&&z>=le.x;if(ne&&!U.y){T.scrollTo({left:z,behavior:v});return}ne?D.x=T.scrollLeft-z:D.x=F===De.Right?T.scrollLeft-ue.x:T.scrollLeft-le.x,D.x&&T.scrollBy({left:-D.x,behavior:v});break}else if(ye&&te.y!==R.y){const z=T.scrollTop+U.y,ne=F===De.Down&&z<=ue.y||F===De.Up&&z>=le.y;if(ne&&!U.x){T.scrollTo({top:z,behavior:v});return}ne?D.y=T.scrollTop-z:D.y=F===De.Down?T.scrollTop-ue.y:T.scrollTop-le.y,D.y&&T.scrollBy({top:-D.y,behavior:v});break}}this.handleMove(s,Nr(Wi(R,this.referenceCoordinates),D))}}}handleMove(s,u){const{onMove:c}=this.props;s.preventDefault(),c(u)}handleEnd(s){const{onEnd:u}=this.props;s.preventDefault(),this.detach(),u()}handleCancel(s){const{onCancel:u}=this.props;s.preventDefault(),this.detach(),u()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}Zs.activators=[{eventName:"onKeyDown",handler:(l,s,u)=>{let{keyboardCodes:c=Cd,onActivation:f}=s,{active:h}=u;const{code:y}=l.nativeEvent;if(c.start.includes(y)){const v=h.activatorNode.current;return v&&l.target!==v?!1:(l.preventDefault(),f==null||f({event:l.nativeEvent}),!0)}return!1}}];function Kc(l){return!!(l&&"distance"in l)}function Xc(l){return!!(l&&"delay"in l)}class qs{constructor(s,u,c){var f;c===void 0&&(c=xh(s.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=s,this.events=u;const{event:h}=s,{target:y}=h;this.props=s,this.events=u,this.document=Dr(y),this.documentListeners=new yl(this.document),this.listeners=new yl(c),this.windowListeners=new yl(ht(y)),this.initialCoordinates=(f=Hi(h))!=null?f:Yt,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:s,props:{options:{activationConstraint:u,bypassActivationConstraint:c}}}=this;if(this.listeners.add(s.move.name,this.handleMove,{passive:!1}),this.listeners.add(s.end.name,this.handleEnd),s.cancel&&this.listeners.add(s.cancel.name,this.handleCancel),this.windowListeners.add(It.Resize,this.handleCancel),this.windowListeners.add(It.DragStart,Qc),this.windowListeners.add(It.VisibilityChange,this.handleCancel),this.windowListeners.add(It.ContextMenu,Qc),this.documentListeners.add(It.Keydown,this.handleKeydown),u){if(c!=null&&c({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Xc(u)){this.timeoutId=setTimeout(this.handleStart,u.delay),this.handlePending(u);return}if(Kc(u)){this.handlePending(u);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(s,u){const{active:c,onPending:f}=this.props;f(c,s,this.initialCoordinates,u)}handleStart(){const{initialCoordinates:s}=this,{onStart:u}=this.props;s&&(this.activated=!0,this.documentListeners.add(It.Click,Sh,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(It.SelectionChange,this.removeTextSelection),u(s))}handleMove(s){var u;const{activated:c,initialCoordinates:f,props:h}=this,{onMove:y,options:{activationConstraint:v}}=h;if(!f)return;const w=(u=Hi(s))!=null?u:Yt,N=Wi(f,w);if(!c&&v){if(Kc(v)){if(v.tolerance!=null&&$s(N,v.tolerance))return this.handleCancel();if($s(N,v.distance))return this.handleStart()}if(Xc(v)&&$s(N,v.tolerance))return this.handleCancel();this.handlePending(v,N);return}s.cancelable&&s.preventDefault(),y(w)}handleEnd(){const{onAbort:s,onEnd:u}=this.props;this.detach(),this.activated||s(this.props.active),u()}handleCancel(){const{onAbort:s,onCancel:u}=this.props;this.detach(),this.activated||s(this.props.active),u()}handleKeydown(s){s.code===De.Esc&&this.handleCancel()}removeTextSelection(){var s;(s=this.document.getSelection())==null||s.removeAllRanges()}}const Ch={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class eu extends qs{constructor(s){const{event:u}=s,c=Dr(u.target);super(s,Ch,c)}}eu.activators=[{eventName:"onPointerDown",handler:(l,s)=>{let{nativeEvent:u}=l,{onActivation:c}=s;return!u.isPrimary||u.button!==0?!1:(c==null||c({event:u}),!0)}}];const Eh={move:{name:"mousemove"},end:{name:"mouseup"}};var Hs;(function(l){l[l.RightClick=2]="RightClick"})(Hs||(Hs={}));class Nh extends qs{constructor(s){super(s,Eh,Dr(s.event.target))}}Nh.activators=[{eventName:"onMouseDown",handler:(l,s)=>{let{nativeEvent:u}=l,{onActivation:c}=s;return u.button===Hs.RightClick?!1:(c==null||c({event:u}),!0)}}];const Vs={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class jh extends qs{constructor(s){super(s,Vs)}static setup(){return window.addEventListener(Vs.move.name,s,{capture:!1,passive:!1}),function(){window.removeEventListener(Vs.move.name,s)};function s(){}}}jh.activators=[{eventName:"onTouchStart",handler:(l,s)=>{let{nativeEvent:u}=l,{onActivation:c}=s;const{touches:f}=u;return f.length>1?!1:(c==null||c({event:u}),!0)}}];var wl;(function(l){l[l.Pointer=0]="Pointer",l[l.DraggableRect=1]="DraggableRect"})(wl||(wl={}));var Ki;(function(l){l[l.TreeOrder=0]="TreeOrder",l[l.ReversedTreeOrder=1]="ReversedTreeOrder"})(Ki||(Ki={}));function Rh(l){let{acceleration:s,activator:u=wl.Pointer,canScroll:c,draggingRect:f,enabled:h,interval:y=5,order:v=Ki.TreeOrder,pointerCoordinates:w,scrollableAncestors:N,scrollableAncestorRects:j,delta:R,threshold:U}=l;const D=_h({delta:R,disabled:!h}),[I,T]=$p(),F=S.useRef({x:0,y:0}),V=S.useRef({x:0,y:0}),Y=S.useMemo(()=>{switch(u){case wl.Pointer:return w?{top:w.y,bottom:w.y,left:w.x,right:w.x}:null;case wl.DraggableRect:return f}},[u,f,w]),re=S.useRef(null),G=S.useCallback(()=>{const le=re.current;if(!le)return;const Z=F.current.x*V.current.x,te=F.current.y*V.current.y;le.scrollBy(Z,te)},[]),ue=S.useMemo(()=>v===Ki.TreeOrder?[...N].reverse():N,[v,N]);S.useEffect(()=>{if(!h||!N.length||!Y){T();return}for(const le of ue){if((c==null?void 0:c(le))===!1)continue;const Z=N.indexOf(le),te=j[Z];if(!te)continue;const{direction:me,speed:ye}=vh(le,te,Y,s,U);for(const z of["x","y"])D[z][me[z]]||(ye[z]=0,me[z]=0);if(ye.x>0||ye.y>0){T(),re.current=le,I(G,y),F.current=ye,V.current=me;return}}F.current={x:0,y:0},V.current={x:0,y:0},T()},[s,G,c,T,h,y,JSON.stringify(Y),JSON.stringify(D),I,N,ue,j,JSON.stringify(U)])}const Dh={x:{[Ze.Backward]:!1,[Ze.Forward]:!1},y:{[Ze.Backward]:!1,[Ze.Forward]:!1}};function _h(l){let{delta:s,disabled:u}=l;const c=Vi(s);return El(f=>{if(u||!c||!f)return Dh;const h={x:Math.sign(s.x-c.x),y:Math.sign(s.y-c.y)};return{x:{[Ze.Backward]:f.x[Ze.Backward]||h.x===-1,[Ze.Forward]:f.x[Ze.Forward]||h.x===1},y:{[Ze.Backward]:f.y[Ze.Backward]||h.y===-1,[Ze.Forward]:f.y[Ze.Forward]||h.y===1}}},[u,s,c])}function Th(l,s){const u=s!=null?l.get(s):void 0,c=u?u.node.current:null;return El(f=>{var h;return s==null?null:(h=c??f)!=null?h:null},[c,s])}function Ph(l,s){return S.useMemo(()=>l.reduce((u,c)=>{const{sensor:f}=c,h=f.activators.map(y=>({eventName:y.eventName,handler:s(y.handler,c)}));return[...u,...h]},[]),[l,s])}var kl;(function(l){l[l.Always=0]="Always",l[l.BeforeDragging=1]="BeforeDragging",l[l.WhileDragging=2]="WhileDragging"})(kl||(kl={}));var Qs;(function(l){l.Optimized="optimized"})(Qs||(Qs={}));const Yc=new Map;function Mh(l,s){let{dragging:u,dependencies:c,config:f}=s;const[h,y]=S.useState(null),{frequency:v,measure:w,strategy:N}=f,j=S.useRef(l),R=F(),U=Sl(R),D=S.useCallback(function(V){V===void 0&&(V=[]),!U.current&&y(Y=>Y===null?V:Y.concat(V.filter(re=>!Y.includes(re))))},[U]),I=S.useRef(null),T=El(V=>{if(R&&!u)return Yc;if(!V||V===Yc||j.current!==l||h!=null){const Y=new Map;for(let re of l){if(!re)continue;if(h&&h.length>0&&!h.includes(re.id)&&re.rect.current){Y.set(re.id,re.rect.current);continue}const G=re.node.current,ue=G?new Js(w(G),G):null;re.rect.current=ue,ue&&Y.set(re.id,ue)}return Y}return V},[l,h,u,R,w]);return S.useEffect(()=>{j.current=l},[l]),S.useEffect(()=>{R||D()},[u,R]),S.useEffect(()=>{h&&h.length>0&&y(null)},[JSON.stringify(h)]),S.useEffect(()=>{R||typeof v!="number"||I.current!==null||(I.current=setTimeout(()=>{D(),I.current=null},v))},[v,R,D,...c]),{droppableRects:T,measureDroppableContainers:D,measuringScheduled:h!=null};function F(){switch(N){case kl.Always:return!1;case kl.BeforeDragging:return u;default:return!u}}}function tu(l,s){return El(u=>l?u||(typeof s=="function"?s(l):l):null,[s,l])}function Lh(l,s){return tu(l,s)}function Oh(l){let{callback:s,disabled:u}=l;const c=bi(s),f=S.useMemo(()=>{if(u||typeof window>"u"||typeof window.MutationObserver>"u")return;const{MutationObserver:h}=window;return new h(c)},[c,u]);return S.useEffect(()=>()=>f==null?void 0:f.disconnect(),[f]),f}function Ji(l){let{callback:s,disabled:u}=l;const c=bi(s),f=S.useMemo(()=>{if(u||typeof window>"u"||typeof window.ResizeObserver>"u")return;const{ResizeObserver:h}=window;return new h(c)},[u]);return S.useEffect(()=>()=>f==null?void 0:f.disconnect(),[f]),f}function zh(l){return new Js(Nl(l),l)}function bc(l,s,u){s===void 0&&(s=zh);const[c,f]=S.useState(null);function h(){f(w=>{if(!l)return null;if(l.isConnected===!1){var N;return(N=w??u)!=null?N:null}const j=s(l);return JSON.stringify(w)===JSON.stringify(j)?w:j})}const y=Oh({callback(w){if(l)for(const N of w){const{type:j,target:R}=N;if(j==="childList"&&R instanceof HTMLElement&&R.contains(l)){h();break}}}}),v=Ji({callback:h});return mn(()=>{h(),l?(v==null||v.observe(l),y==null||y.observe(document.body,{childList:!0,subtree:!0})):(v==null||v.disconnect(),y==null||y.disconnect())},[l]),c}function Ih(l){const s=tu(l);return hd(l,s)}const Gc=[];function Ah(l){const s=S.useRef(l),u=El(c=>l?c&&c!==Gc&&l&&s.current&&l.parentNode===s.current.parentNode?c:Gs(l):Gc,[l]);return S.useEffect(()=>{s.current=l},[l]),u}function Fh(l){const[s,u]=S.useState(null),c=S.useRef(l),f=S.useCallback(h=>{const y=Bs(h.target);y&&u(v=>v?(v.set(y,Ws(y)),new Map(v)):null)},[]);return S.useEffect(()=>{const h=c.current;if(l!==h){y(h);const v=l.map(w=>{const N=Bs(w);return N?(N.addEventListener("scroll",f,{passive:!0}),[N,Ws(N)]):null}).filter(w=>w!=null);u(v.length?new Map(v):null),c.current=l}return()=>{y(l),y(h)};function y(v){v.forEach(w=>{const N=Bs(w);N==null||N.removeEventListener("scroll",f)})}},[f,l]),S.useMemo(()=>l.length?s?Array.from(s.values()).reduce((h,y)=>Nr(h,y),Yt):Sd(l):Yt,[l,s])}function Jc(l,s){s===void 0&&(s=[]);const u=S.useRef(null);return S.useEffect(()=>{u.current=null},s),S.useEffect(()=>{const c=l!==Yt;c&&!u.current&&(u.current=l),!c&&u.current&&(u.current=null)},[l]),u.current?Wi(l,u.current):Yt}function Uh(l){S.useEffect(()=>{if(!Yi)return;const s=l.map(u=>{let{sensor:c}=u;return c.setup==null?void 0:c.setup()});return()=>{for(const u of s)u==null||u()}},l.map(s=>{let{sensor:u}=s;return u}))}function Bh(l,s){return S.useMemo(()=>l.reduce((u,c)=>{let{eventName:f,handler:h}=c;return u[f]=y=>{h(y,s)},u},{}),[l,s])}function Ed(l){return S.useMemo(()=>l?dh(l):null,[l])}const Zc=[];function $h(l,s){s===void 0&&(s=Nl);const[u]=l,c=Ed(u?ht(u):null),[f,h]=S.useState(Zc);function y(){h(()=>l.length?l.map(w=>wd(w)?c:new Js(s(w),w)):Zc)}const v=Ji({callback:y});return mn(()=>{v==null||v.disconnect(),y(),l.forEach(w=>v==null?void 0:v.observe(w))},[l]),f}function Nd(l){if(!l)return null;if(l.children.length>1)return l;const s=l.children[0];return Cl(s)?s:l}function Vh(l){let{measure:s}=l;const[u,c]=S.useState(null),f=S.useCallback(N=>{for(const{target:j}of N)if(Cl(j)){c(R=>{const U=s(j);return R?{...R,width:U.width,height:U.height}:U});break}},[s]),h=Ji({callback:f}),y=S.useCallback(N=>{const j=Nd(N);h==null||h.disconnect(),j&&(h==null||h.observe(j)),c(j?s(j):null)},[s,h]),[v,w]=$i(y);return S.useMemo(()=>({nodeRef:v,rect:u,setRef:w}),[u,v,w])}const Wh=[{sensor:eu,options:{}},{sensor:Zs,options:{}}],Hh={current:{}},Bi={draggable:{measure:Hc},droppable:{measure:Hc,strategy:kl.WhileDragging,frequency:Qs.Optimized},dragOverlay:{measure:Nl}};class xl extends Map{get(s){var u;return s!=null&&(u=super.get(s))!=null?u:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(s=>{let{disabled:u}=s;return!u})}getNodeFor(s){var u,c;return(u=(c=this.get(s))==null?void 0:c.node.current)!=null?u:void 0}}const Qh={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new xl,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Qi},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Bi,measureDroppableContainers:Qi,windowRect:null,measuringScheduled:!1},jd={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:Qi,draggableNodes:new Map,over:null,measureDroppableContainers:Qi},jl=S.createContext(jd),Rd=S.createContext(Qh);function Kh(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new xl}}}function Xh(l,s){switch(s.type){case Ye.DragStart:return{...l,draggable:{...l.draggable,initialCoordinates:s.initialCoordinates,active:s.active}};case Ye.DragMove:return l.draggable.active==null?l:{...l,draggable:{...l.draggable,translate:{x:s.coordinates.x-l.draggable.initialCoordinates.x,y:s.coordinates.y-l.draggable.initialCoordinates.y}}};case Ye.DragEnd:case Ye.DragCancel:return{...l,draggable:{...l.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ye.RegisterDroppable:{const{element:u}=s,{id:c}=u,f=new xl(l.droppable.containers);return f.set(c,u),{...l,droppable:{...l.droppable,containers:f}}}case Ye.SetDroppableDisabled:{const{id:u,key:c,disabled:f}=s,h=l.droppable.containers.get(u);if(!h||c!==h.key)return l;const y=new xl(l.droppable.containers);return y.set(u,{...h,disabled:f}),{...l,droppable:{...l.droppable,containers:y}}}case Ye.UnregisterDroppable:{const{id:u,key:c}=s,f=l.droppable.containers.get(u);if(!f||c!==f.key)return l;const h=new xl(l.droppable.containers);return h.delete(u),{...l,droppable:{...l.droppable,containers:h}}}default:return l}}function Yh(l){let{disabled:s}=l;const{active:u,activatorEvent:c,draggableNodes:f}=S.useContext(jl),h=Vi(c),y=Vi(u==null?void 0:u.id);return S.useEffect(()=>{if(!s&&!c&&h&&y!=null){if(!bs(h)||document.activeElement===h.target)return;const v=f.get(y);if(!v)return;const{activatorNode:w,node:N}=v;if(!w.current&&!N.current)return;requestAnimationFrame(()=>{for(const j of[w.current,N.current]){if(!j)continue;const R=Hp(j);if(R){R.focus();break}}})}},[c,s,f,y,h]),null}function Dd(l,s){let{transform:u,...c}=s;return l!=null&&l.length?l.reduce((f,h)=>h({transform:f,...c}),u):u}function bh(l){return S.useMemo(()=>({draggable:{...Bi.draggable,...l==null?void 0:l.draggable},droppable:{...Bi.droppable,...l==null?void 0:l.droppable},dragOverlay:{...Bi.dragOverlay,...l==null?void 0:l.dragOverlay}}),[l==null?void 0:l.draggable,l==null?void 0:l.droppable,l==null?void 0:l.dragOverlay])}function Gh(l){let{activeNode:s,measure:u,initialRect:c,config:f=!0}=l;const h=S.useRef(!1),{x:y,y:v}=typeof f=="boolean"?{x:f,y:f}:f;mn(()=>{if(!y&&!v||!s){h.current=!1;return}if(h.current||!c)return;const N=s==null?void 0:s.node.current;if(!N||N.isConnected===!1)return;const j=u(N),R=hd(j,c);if(y||(R.x=0),v||(R.y=0),h.current=!0,Math.abs(R.x)>0||Math.abs(R.y)>0){const U=md(N);U&&U.scrollBy({top:R.y,left:R.x})}},[s,y,v,c,u])}const Zi=S.createContext({...Yt,scaleX:1,scaleY:1});var Bn;(function(l){l[l.Uninitialized=0]="Uninitialized",l[l.Initializing=1]="Initializing",l[l.Initialized=2]="Initialized"})(Bn||(Bn={}));const Jh=S.memo(function(s){var u,c,f,h;let{id:y,accessibility:v,autoScroll:w=!0,children:N,sensors:j=Wh,collisionDetection:R=ih,measuring:U,modifiers:D,...I}=s;const T=S.useReducer(Xh,void 0,Kh),[F,V]=T,[Y,re]=Gp(),[G,ue]=S.useState(Bn.Uninitialized),le=G===Bn.Initialized,{draggable:{active:Z,nodes:te,translate:me},droppable:{containers:ye}}=F,z=Z!=null?te.get(Z):null,ne=S.useRef({initial:null,translated:null}),ge=S.useMemo(()=>{var Oe;return Z!=null?{id:Z,data:(Oe=z==null?void 0:z.data)!=null?Oe:Hh,rect:ne}:null},[Z,z]),Ce=S.useRef(null),[Le,fe]=S.useState(null),[pe,$]=S.useState(null),J=Sl(I,Object.values(I)),W=Gi("DndDescribedBy",y),x=S.useMemo(()=>ye.getEnabled(),[ye]),_=bh(U),{droppableRects:ie,measureDroppableContainers:ae,measuringScheduled:de}=Mh(x,{dragging:le,dependencies:[me.x,me.y],config:_.droppable}),oe=Th(te,Z),ke=S.useMemo(()=>pe?Hi(pe):null,[pe]),he=xn(),Ne=Lh(oe,_.draggable.measure);Gh({activeNode:Z!=null?te.get(Z):null,config:he.layoutShiftCompensation,initialRect:Ne,measure:_.draggable.measure});const Re=bc(oe,_.draggable.measure,Ne),bt=bc(oe?oe.parentElement:null),Ct=S.useRef({activatorEvent:null,active:null,activeNode:oe,collisionRect:null,collisions:null,droppableRects:ie,draggableNodes:te,draggingNode:null,draggingNodeRect:null,droppableContainers:ye,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),Gt=ye.getNodeFor((u=Ct.current.over)==null?void 0:u.id),O=Vh({measure:_.dragOverlay.measure}),B=(c=O.nodeRef.current)!=null?c:oe,ce=le?(f=O.rect)!=null?f:Re:null,we=!!(O.nodeRef.current&&O.rect),ct=Ih(we?null:Re),Be=Ed(B?ht(B):null),Ee=Ah(le?Gt??oe:null),Fe=$h(Ee),gn=Dd(D,{transform:{x:me.x-ct.x,y:me.y-ct.y,scaleX:1,scaleY:1},activatorEvent:pe,active:ge,activeNodeRect:Re,containerNodeRect:bt,draggingNodeRect:ce,over:Ct.current.over,overlayNodeRect:O.rect,scrollableAncestors:Ee,scrollableAncestorRects:Fe,windowRect:Be}),_r=ke?Nr(ke,me):null,Tr=Fh(Ee),Rl=Jc(Tr),Dl=Jc(Tr,[Re]),Jt=Nr(gn,Rl),At=ce?uh(ce,gn):null,yn=ge&&At?R({active:ge,collisionRect:At,droppableRects:ie,droppableContainers:x,pointerCoordinates:_r}):null,wn=rh(yn,"id"),[vt,_l]=S.useState(null),Tl=we?gn:Nr(gn,Dl),Pl=oh(Tl,(h=vt==null?void 0:vt.rect)!=null?h:null,Re),Pr=S.useRef(null),tr=S.useCallback((Oe,nt)=>{let{sensor:rt,options:Ft}=nt;if(Ce.current==null)return;const dt=te.get(Ce.current);if(!dt)return;const lt=Oe.nativeEvent,mt=new rt({active:Ce.current,activeNode:dt,event:lt,options:Ft,context:Ct,onAbort(ze){if(!te.get(ze))return;const{onDragAbort:it}=J.current,Ut={id:ze};it==null||it(Ut),Y({type:"onDragAbort",event:Ut})},onPending(ze,_t,it,Ut){if(!te.get(ze))return;const{onDragPending:Zt}=J.current,Et={id:ze,constraint:_t,initialCoordinates:it,offset:Ut};Zt==null||Zt(Et),Y({type:"onDragPending",event:Et})},onStart(ze){const _t=Ce.current;if(_t==null)return;const it=te.get(_t);if(!it)return;const{onDragStart:Ut}=J.current,Bt={activatorEvent:lt,active:{id:_t,data:it.data,rect:ne}};ml.unstable_batchedUpdates(()=>{Ut==null||Ut(Bt),ue(Bn.Initializing),V({type:Ye.DragStart,initialCoordinates:ze,active:_t}),Y({type:"onDragStart",event:Bt}),fe(Pr.current),$(lt)})},onMove(ze){V({type:Ye.DragMove,coordinates:ze})},onEnd:on(Ye.DragEnd),onCancel:on(Ye.DragCancel)});Pr.current=mt;function on(ze){return async function(){const{active:it,collisions:Ut,over:Bt,scrollAdjustedTranslate:Zt}=Ct.current;let Et=null;if(it&&Zt){const{cancelDrop:sn}=J.current;Et={activatorEvent:lt,active:it,collisions:Ut,delta:Zt,over:Bt},ze===Ye.DragEnd&&typeof sn=="function"&&await Promise.resolve(sn(Et))&&(ze=Ye.DragCancel)}Ce.current=null,ml.unstable_batchedUpdates(()=>{V({type:ze}),ue(Bn.Uninitialized),_l(null),fe(null),$(null),Pr.current=null;const sn=ze===Ye.DragEnd?"onDragEnd":"onDragCancel";if(Et){const zr=J.current[sn];zr==null||zr(Et),Y({type:sn,event:Et})}})}}},[te]),Mr=S.useCallback((Oe,nt)=>(rt,Ft)=>{const dt=rt.nativeEvent,lt=te.get(Ft);if(Ce.current!==null||!lt||dt.dndKit||dt.defaultPrevented)return;const mt={active:lt};Oe(rt,nt.options,mt)===!0&&(dt.dndKit={capturedBy:nt.sensor},Ce.current=Ft,tr(rt,nt))},[te,tr]),nr=Ph(j,Mr);Uh(j),mn(()=>{Re&&G===Bn.Initializing&&ue(Bn.Initialized)},[Re,G]),S.useEffect(()=>{const{onDragMove:Oe}=J.current,{active:nt,activatorEvent:rt,collisions:Ft,over:dt}=Ct.current;if(!nt||!rt)return;const lt={active:nt,activatorEvent:rt,collisions:Ft,delta:{x:Jt.x,y:Jt.y},over:dt};ml.unstable_batchedUpdates(()=>{Oe==null||Oe(lt),Y({type:"onDragMove",event:lt})})},[Jt.x,Jt.y]),S.useEffect(()=>{const{active:Oe,activatorEvent:nt,collisions:rt,droppableContainers:Ft,scrollAdjustedTranslate:dt}=Ct.current;if(!Oe||Ce.current==null||!nt||!dt)return;const{onDragOver:lt}=J.current,mt=Ft.get(wn),on=mt&&mt.rect.current?{id:mt.id,rect:mt.rect.current,data:mt.data,disabled:mt.disabled}:null,ze={active:Oe,activatorEvent:nt,collisions:rt,delta:{x:dt.x,y:dt.y},over:on};ml.unstable_batchedUpdates(()=>{_l(on),lt==null||lt(ze),Y({type:"onDragOver",event:ze})})},[wn]),mn(()=>{Ct.current={activatorEvent:pe,active:ge,activeNode:oe,collisionRect:At,collisions:yn,droppableRects:ie,draggableNodes:te,draggingNode:B,draggingNodeRect:ce,droppableContainers:ye,over:vt,scrollableAncestors:Ee,scrollAdjustedTranslate:Jt},ne.current={initial:ce,translated:At}},[ge,oe,yn,At,te,B,ce,ie,ye,vt,Ee,Jt]),Rh({...he,delta:me,draggingRect:At,pointerCoordinates:_r,scrollableAncestors:Ee,scrollableAncestorRects:Fe});const Lr=S.useMemo(()=>({active:ge,activeNode:oe,activeNodeRect:Re,activatorEvent:pe,collisions:yn,containerNodeRect:bt,dragOverlay:O,draggableNodes:te,droppableContainers:ye,droppableRects:ie,over:vt,measureDroppableContainers:ae,scrollableAncestors:Ee,scrollableAncestorRects:Fe,measuringConfiguration:_,measuringScheduled:de,windowRect:Be}),[ge,oe,Re,pe,yn,bt,O,te,ye,ie,vt,ae,Ee,Fe,_,de,Be]),Or=S.useMemo(()=>({activatorEvent:pe,activators:nr,active:ge,activeNodeRect:Re,ariaDescribedById:{draggable:W},dispatch:V,draggableNodes:te,over:vt,measureDroppableContainers:ae}),[pe,nr,ge,Re,V,W,te,vt,ae]);return We.createElement(pd.Provider,{value:re},We.createElement(jl.Provider,{value:Or},We.createElement(Rd.Provider,{value:Lr},We.createElement(Zi.Provider,{value:Pl},N)),We.createElement(Yh,{disabled:(v==null?void 0:v.restoreFocus)===!1})),We.createElement(qp,{...v,hiddenTextDescribedById:W}));function xn(){const Oe=(Le==null?void 0:Le.autoScrollEnabled)===!1,nt=typeof w=="object"?w.enabled===!1:w===!1,rt=le&&!Oe&&!nt;return typeof w=="object"?{...w,enabled:rt}:{enabled:rt}}}),Zh=S.createContext(null),qc="button",qh="Draggable";function ev(l){let{id:s,data:u,disabled:c=!1,attributes:f}=l;const h=Gi(qh),{activators:y,activatorEvent:v,active:w,activeNodeRect:N,ariaDescribedById:j,draggableNodes:R,over:U}=S.useContext(jl),{role:D=qc,roleDescription:I="draggable",tabIndex:T=0}=f??{},F=(w==null?void 0:w.id)===s,V=S.useContext(F?Zi:Zh),[Y,re]=$i(),[G,ue]=$i(),le=Bh(y,s),Z=Sl(u);mn(()=>(R.set(s,{id:s,key:h,node:Y,activatorNode:G,data:Z}),()=>{const me=R.get(s);me&&me.key===h&&R.delete(s)}),[R,s]);const te=S.useMemo(()=>({role:D,tabIndex:T,"aria-disabled":c,"aria-pressed":F&&D===qc?!0:void 0,"aria-roledescription":I,"aria-describedby":j.draggable}),[c,D,T,F,I,j.draggable]);return{active:w,activatorEvent:v,activeNodeRect:N,attributes:te,isDragging:F,listeners:c?void 0:le,node:Y,over:U,setNodeRef:re,setActivatorNodeRef:ue,transform:V}}function tv(){return S.useContext(Rd)}const nv="Droppable",rv={timeout:25};function lv(l){let{data:s,disabled:u=!1,id:c,resizeObserverConfig:f}=l;const h=Gi(nv),{active:y,dispatch:v,over:w,measureDroppableContainers:N}=S.useContext(jl),j=S.useRef({disabled:u}),R=S.useRef(!1),U=S.useRef(null),D=S.useRef(null),{disabled:I,updateMeasurementsFor:T,timeout:F}={...rv,...f},V=Sl(T??c),Y=S.useCallback(()=>{if(!R.current){R.current=!0;return}D.current!=null&&clearTimeout(D.current),D.current=setTimeout(()=>{N(Array.isArray(V.current)?V.current:[V.current]),D.current=null},F)},[F]),re=Ji({callback:Y,disabled:I||!y}),G=S.useCallback((te,me)=>{re&&(me&&(re.unobserve(me),R.current=!1),te&&re.observe(te))},[re]),[ue,le]=$i(G),Z=Sl(s);return S.useEffect(()=>{!re||!ue.current||(re.disconnect(),R.current=!1,re.observe(ue.current))},[ue,re]),S.useEffect(()=>(v({type:Ye.RegisterDroppable,element:{id:c,key:h,disabled:u,node:ue,rect:U,data:Z}}),()=>v({type:Ye.UnregisterDroppable,key:h,id:c})),[c]),S.useEffect(()=>{u!==j.current.disabled&&(v({type:Ye.SetDroppableDisabled,id:c,key:h,disabled:u}),j.current.disabled=u)},[c,h,u,v]),{active:y,rect:U,isOver:(w==null?void 0:w.id)===c,node:ue,over:w,setNodeRef:le}}function iv(l){let{animation:s,children:u}=l;const[c,f]=S.useState(null),[h,y]=S.useState(null),v=Vi(u);return!u&&!c&&v&&f(v),mn(()=>{if(!h)return;const w=c==null?void 0:c.key,N=c==null?void 0:c.props.id;if(w==null||N==null){f(null);return}Promise.resolve(s(N,h)).then(()=>{f(null)})},[s,c,h]),We.createElement(We.Fragment,null,u,c?S.cloneElement(c,{ref:y}):null)}const ov={x:0,y:0,scaleX:1,scaleY:1};function sv(l){let{children:s}=l;return We.createElement(jl.Provider,{value:jd},We.createElement(Zi.Provider,{value:ov},s))}const uv={position:"fixed",touchAction:"none"},av=l=>bs(l)?"transform 250ms ease":void 0,cv=S.forwardRef((l,s)=>{let{as:u,activatorEvent:c,adjustScale:f,children:h,className:y,rect:v,style:w,transform:N,transition:j=av}=l;if(!v)return null;const R=f?N:{...N,scaleX:1,scaleY:1},U={...uv,width:v.width,height:v.height,top:v.top,left:v.left,transform:jr.Transform.toString(R),transformOrigin:f&&c?th(c,v):void 0,transition:typeof j=="function"?j(c):j,...w};return We.createElement(u,{className:y,style:U,ref:s},h)}),dv=l=>s=>{let{active:u,dragOverlay:c}=s;const f={},{styles:h,className:y}=l;if(h!=null&&h.active)for(const[v,w]of Object.entries(h.active))w!==void 0&&(f[v]=u.node.style.getPropertyValue(v),u.node.style.setProperty(v,w));if(h!=null&&h.dragOverlay)for(const[v,w]of Object.entries(h.dragOverlay))w!==void 0&&c.node.style.setProperty(v,w);return y!=null&&y.active&&u.node.classList.add(y.active),y!=null&&y.dragOverlay&&c.node.classList.add(y.dragOverlay),function(){for(const[w,N]of Object.entries(f))u.node.style.setProperty(w,N);y!=null&&y.active&&u.node.classList.remove(y.active)}},fv=l=>{let{transform:{initial:s,final:u}}=l;return[{transform:jr.Transform.toString(s)},{transform:jr.Transform.toString(u)}]},pv={duration:250,easing:"ease",keyframes:fv,sideEffects:dv({styles:{active:{opacity:"0"}}})};function hv(l){let{config:s,draggableNodes:u,droppableContainers:c,measuringConfiguration:f}=l;return bi((h,y)=>{if(s===null)return;const v=u.get(h);if(!v)return;const w=v.node.current;if(!w)return;const N=Nd(y);if(!N)return;const{transform:j}=ht(y).getComputedStyle(y),R=vd(j);if(!R)return;const U=typeof s=="function"?s:vv(s);return kd(w,f.draggable.measure),U({active:{id:h,data:v.data,node:w,rect:f.draggable.measure(w)},draggableNodes:u,dragOverlay:{node:y,rect:f.dragOverlay.measure(N)},droppableContainers:c,measuringConfiguration:f,transform:R})})}function vv(l){const{duration:s,easing:u,sideEffects:c,keyframes:f}={...pv,...l};return h=>{let{active:y,dragOverlay:v,transform:w,...N}=h;if(!s)return;const j={x:v.rect.left-y.rect.left,y:v.rect.top-y.rect.top},R={scaleX:w.scaleX!==1?y.rect.width*w.scaleX/v.rect.width:1,scaleY:w.scaleY!==1?y.rect.height*w.scaleY/v.rect.height:1},U={x:w.x-j.x,y:w.y-j.y,...R},D=f({...N,active:y,dragOverlay:v,transform:{initial:w,final:U}}),[I]=D,T=D[D.length-1];if(JSON.stringify(I)===JSON.stringify(T))return;const F=c==null?void 0:c({active:y,dragOverlay:v,...N}),V=v.node.animate(D,{duration:s,easing:u,fill:"forwards"});return new Promise(Y=>{V.onfinish=()=>{F==null||F(),Y()}})}}let ed=0;function mv(l){return S.useMemo(()=>{if(l!=null)return ed++,ed},[l])}const gv=We.memo(l=>{let{adjustScale:s=!1,children:u,dropAnimation:c,style:f,transition:h,modifiers:y,wrapperElement:v="div",className:w,zIndex:N=999}=l;const{activatorEvent:j,active:R,activeNodeRect:U,containerNodeRect:D,draggableNodes:I,droppableContainers:T,dragOverlay:F,over:V,measuringConfiguration:Y,scrollableAncestors:re,scrollableAncestorRects:G,windowRect:ue}=tv(),le=S.useContext(Zi),Z=mv(R==null?void 0:R.id),te=Dd(y,{activatorEvent:j,active:R,activeNodeRect:U,containerNodeRect:D,draggingNodeRect:F.rect,over:V,overlayNodeRect:F.rect,scrollableAncestors:re,scrollableAncestorRects:G,transform:le,windowRect:ue}),me=tu(U),ye=hv({config:c,draggableNodes:I,droppableContainers:T,measuringConfiguration:Y}),z=me?F.setRef:void 0;return We.createElement(sv,null,We.createElement(iv,{animation:ye},R&&Z?We.createElement(cv,{key:Z,id:R.id,ref:z,as:v,activatorEvent:j,adjustScale:s,className:w,transition:h,rect:me,style:{zIndex:N,...f},transform:te},u):null))});async function er(l){if(!l.ok){const s=await l.text();let u=s;try{const c=JSON.parse(s);u=c.error??c.message??s}catch{}throw new Error(u||`${l.status} ${l.statusText}`)}return await l.json()}const ln={config:()=>fetch("/api/config").then(l=>er(l)),list:()=>fetch("/api/tasks").then(l=>er(l)),create:l=>fetch("/api/tasks",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(l)}).then(s=>er(s)),move:(l,s)=>fetch(`/api/tasks/${encodeURIComponent(l)}/move`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({status:s})}).then(u=>er(u)),update:(l,s)=>fetch(`/api/tasks/${encodeURIComponent(l)}`,{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify(s)}).then(u=>er(u)),remove:l=>fetch(`/api/tasks/${encodeURIComponent(l)}`,{method:"DELETE"}).then(s=>{if(!s.ok)throw new Error(s.statusText)}),agent:l=>fetch(`/api/tasks/${encodeURIComponent(l)}/agent`,{method:"POST"}).then(s=>er(s)),fetchRemote:()=>fetch("/api/fetch",{method:"POST"}).then(l=>er(l))},yv=/^\s*-\s+\[( |x|X)\]\s+(.*)$/;let td=0;function _d(){return td+=1,`ac-${Date.now()}-${td}`}function Xi(l){if(!l)return[];const s=[];for(const u of l.split(`
|
|
45
|
+
`)){const c=u.match(yv);c&&s.push({id:_d(),checked:c[1]!==" ",text:(c[2]??"").trim()})}return s}function Td(l){return l.length===0?"":l.map(s=>`- [${s.checked?"x":" "}] ${s.text}`).join(`
|
|
46
|
+
`)}function nd(l=""){return{id:_d(),text:l,checked:!1}}const Pd=/^acceptance criteria$/i,tt={fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},Xe={Search:l=>d.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",...tt,...l,children:[d.jsx("circle",{cx:"11",cy:"11",r:"7"}),d.jsx("path",{d:"m21 21-4.3-4.3"})]}),Plus:l=>d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",...tt,...l,children:d.jsx("path",{d:"M12 5v14M5 12h14"})}),Check:l=>d.jsx("svg",{width:"11",height:"11",viewBox:"0 0 24 24",...tt,strokeWidth:3,...l,children:d.jsx("path",{d:"M20 6 9 17l-5-5"})}),X:l=>d.jsx("svg",{width:"14",height:"14",viewBox:"0 0 24 24",...tt,...l,children:d.jsx("path",{d:"M18 6 6 18M6 6l12 12"})}),Link:l=>d.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",...tt,...l,children:[d.jsx("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),d.jsx("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})]}),Sun:l=>d.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",...tt,...l,children:[d.jsx("circle",{cx:"12",cy:"12",r:"4"}),d.jsx("path",{d:"M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41"})]}),Moon:l=>d.jsx("svg",{width:"15",height:"15",viewBox:"0 0 24 24",...tt,...l,children:d.jsx("path",{d:"M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"})}),Board:l=>d.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",...tt,...l,children:[d.jsx("rect",{x:"3",y:"3",width:"7",height:"18",rx:"1"}),d.jsx("rect",{x:"14",y:"3",width:"7",height:"11",rx:"1"})]}),List:l=>d.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",...tt,...l,children:[d.jsx("line",{x1:"8",y1:"6",x2:"21",y2:"6"}),d.jsx("line",{x1:"8",y1:"12",x2:"21",y2:"12"}),d.jsx("line",{x1:"8",y1:"18",x2:"21",y2:"18"}),d.jsx("circle",{cx:"4",cy:"6",r:"1"}),d.jsx("circle",{cx:"4",cy:"12",r:"1"}),d.jsx("circle",{cx:"4",cy:"18",r:"1"})]}),Edit:l=>d.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",...tt,...l,children:[d.jsx("path",{d:"M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"}),d.jsx("path",{d:"M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"})]}),Trash:l=>d.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",...tt,...l,children:[d.jsx("polyline",{points:"3 6 5 6 21 6"}),d.jsx("path",{d:"M19 6l-2 14a2 2 0 0 1-2 2H9a2 2 0 0 1-2-2L5 6"}),d.jsx("path",{d:"M10 11v6M14 11v6"})]}),Inbox:l=>d.jsxs("svg",{width:"15",height:"15",viewBox:"0 0 24 24",...tt,...l,children:[d.jsx("polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12"}),d.jsx("path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z"})]}),Hash:l=>d.jsxs("svg",{width:"14",height:"14",viewBox:"0 0 24 24",...tt,...l,children:[d.jsx("line",{x1:"4",y1:"9",x2:"20",y2:"9"}),d.jsx("line",{x1:"4",y1:"15",x2:"20",y2:"15"}),d.jsx("line",{x1:"10",y1:"3",x2:"8",y2:"21"}),d.jsx("line",{x1:"16",y1:"3",x2:"14",y2:"21"})]}),Command:l=>d.jsx("svg",{width:"12",height:"12",viewBox:"0 0 24 24",...tt,...l,children:d.jsx("path",{d:"M18 3a3 3 0 0 0-3 3v12a3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3H6a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3V6a3 3 0 0 0-3-3 3 3 0 0 0-3 3 3 3 0 0 0 3 3h12a3 3 0 0 0 3-3 3 3 0 0 0-3-3z"})}),Flag:l=>d.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 24 24",...tt,...l,children:[d.jsx("path",{d:"M4 15s1-1 4-1 5 2 8 2 4-1 4-1V3s-1 1-4 1-5-2-8-2-4 1-4 1z"}),d.jsx("line",{x1:"4",y1:"22",x2:"4",y2:"15"})]}),User:l=>d.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",...tt,...l,children:[d.jsx("path",{d:"M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"}),d.jsx("circle",{cx:"12",cy:"7",r:"4"})]}),Refresh:l=>d.jsxs("svg",{width:"13",height:"13",viewBox:"0 0 24 24",...tt,...l,children:[d.jsx("polyline",{points:"23 4 23 10 17 10"}),d.jsx("polyline",{points:"1 20 1 14 7 14"}),d.jsx("path",{d:"M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15"})]})},wv={fredrik:210,mira:320,jules:150,alex:40,sam:270};function Md({name:l,size:s=18}){if(!l)return d.jsx("span",{className:"avatar",style:{width:s,height:s,background:"var(--line-strong)",color:"var(--text-3)",fontSize:Math.round(s*.48)},children:"?"});const u=l.toLowerCase(),c=wv[u]??[...l].reduce((f,h)=>f+h.charCodeAt(0),0)*11%360;return d.jsx("span",{className:"avatar",style:{width:s,height:s,fontSize:Math.round(s*.48),background:`oklch(0.68 0.13 ${c})`},children:l[0]})}const rd=["violet","blue","amber","green"];function Ld(l){const s=[...l].reduce((u,c)=>u+c.charCodeAt(0),0);return rd[s%rd.length]}const ld=5;function Od({task:l,overlay:s,onSelect:u,onEdit:c,onDelete:f,agentHook:h,onAgent:y}){return s?d.jsx(zd,{task:l,className:"card overlay"}):d.jsx(xv,{task:l,onSelect:u,onEdit:c,onDelete:f,agentHook:h,onAgent:y})}function xv({task:l,onSelect:s,onEdit:u,onDelete:c,agentHook:f,onAgent:h}){const{attributes:y,listeners:v,setNodeRef:w,transform:N,isDragging:j}=ev({id:l.id}),R=S.useRef(null),U={transform:jr.Translate.toString(N),opacity:j?0:1},D=I=>{I.stopPropagation()};return d.jsxs("div",{ref:w,style:U,className:"card-wrap",...y,...v,onPointerDownCapture:I=>{R.current={x:I.clientX,y:I.clientY}},onPointerUp:I=>{const T=R.current;if(R.current=null,!s||!T||j)return;const F=Math.abs(I.clientX-T.x),V=Math.abs(I.clientY-T.y);F<ld&&V<ld&&s(l.id)},children:[d.jsx(zd,{task:l,className:`card ${j?"dragging":""}`}),d.jsxs("div",{className:"card-actions",onPointerDown:D,onPointerUp:D,onMouseDown:D,children:[f!=null&&f.enabled?d.jsx("button",{type:"button",className:"card-action agent",title:`Send to ${f.label}`,"aria-label":`Send to ${f.label}`,onClick:I=>{D(I),h==null||h(l.id)},children:f.label}):null,d.jsx("button",{type:"button",className:"card-action",title:"Edit","aria-label":"Edit task",onClick:I=>{D(I),u==null||u(l.id)},children:"Edit"}),d.jsx("button",{type:"button",className:"card-action danger",title:"Delete","aria-label":"Delete task",onClick:I=>{D(I),c==null||c(l.id)},children:"Delete"})]})]})}function zd({task:l,className:s}){const u=S.useMemo(()=>{const f=l.sections.find(v=>Pd.test(v.heading.trim()));if(!f)return null;const h=Xi(f.content);return h.length===0?null:{done:h.filter(v=>v.checked).length,total:h.length}},[l]),c=!!(l.assignee||u);return d.jsxs("div",{className:s,children:[d.jsxs("div",{className:"card-row",children:[d.jsx("span",{className:"card-id",children:l.id}),l.priority?d.jsx("span",{className:`prio-badge ${l.priority}`,children:l.priority}):null,l.depends_on.length>0?d.jsxs("span",{className:"card-deps",children:[d.jsx(Xe.Link,{})," ",l.depends_on.length]}):null]}),d.jsx("div",{className:"card-title",children:l.title}),l.tags.length>0?d.jsx("div",{className:"card-tags",children:l.tags.slice(0,4).map(f=>d.jsxs("span",{className:`chip ${Ld(f)}`,children:["#",f]},f))}):null,c?d.jsxs("div",{className:"card-bottom",children:[l.assignee?d.jsxs("span",{className:"card-bottom-item",children:[d.jsx(Md,{name:l.assignee,size:16}),d.jsxs("span",{style:{color:"var(--text-3)"},children:["@",l.assignee]})]}):null,u?d.jsxs("span",{className:"card-bottom-item card-bottom-end",style:{gap:6},children:[d.jsx("div",{className:"progress-track",style:{width:60},children:d.jsx("div",{className:"progress-fill",style:{width:`${u.done/u.total*100}%`}})}),d.jsxs("span",{style:{fontVariantNumeric:"tabular-nums"},children:[u.done,"/",u.total]})]}):null]}):null]})}const Sv=[{label:"Command palette",keys:["⌘","K"]},{label:"New task",keys:["N"]},{label:"Focus search",keys:["/"]},{label:"Toggle theme",keys:["T"]},{label:"Shortcuts",keys:["?"]},{label:"Open task",keys:["Enter"]},{label:"Close / cancel",keys:["Esc"]}];function kv({onClose:l}){return S.useEffect(()=>{const s=u=>{(u.key==="Escape"||u.key==="?")&&l()};return window.addEventListener("keydown",s),()=>window.removeEventListener("keydown",s)},[l]),d.jsxs("div",{className:"cheat",children:[d.jsx("div",{className:"cheat-title",children:"Shortcuts"}),Sv.map(s=>d.jsxs("div",{className:"cheat-row",children:[d.jsx("span",{children:s.label}),d.jsx("span",{className:"kbd-row",children:s.keys.map(u=>d.jsx("span",{className:"kbd",children:u},u))})]},s.label))]})}const id=["slate","blue","amber","violet","emerald"],Cv={todo:"slate",backlog:"slate","in progress":"amber",doing:"amber",review:"violet",done:"emerald",blocked:"blue"};function od(l,s){const u=l.toLowerCase();return Cv[u]??id[s%id.length]}function Ev({status:l,color:s,tasks:u,onSelect:c,onEdit:f,onDelete:h,agentHook:y,onAgent:v}){const{setNodeRef:w,isOver:N}=lv({id:`column:${l}`});return d.jsxs("div",{className:"col",children:[d.jsxs("div",{className:"col-head",children:[d.jsx("span",{className:`col-dot ${s}`}),d.jsx("span",{className:"col-title",children:l}),d.jsx("span",{className:"col-count",children:u.length})]}),d.jsxs("div",{ref:w,className:`col-body ${N?"drop-active":""}`,children:[u.length===0?d.jsx("div",{className:"col-empty",children:"Drop tasks here"}):null,u.map(j=>d.jsx(Od,{task:j,onSelect:c,onEdit:f,onDelete:h,agentHook:y,onAgent:v},j.id))]})]})}function Nv({tasks:l,actions:s,onOpenTask:u,onClose:c}){const[f,h]=S.useState(""),[y,v]=S.useState(0),w=S.useRef(null);S.useEffect(()=>{var D;(D=w.current)==null||D.focus()},[]);const N=S.useMemo(()=>{const D=f.trim().toLowerCase(),I=s.map(V=>({kind:"action",id:V.id,label:V.label,hint:V.hint,icon:V.icon,run:V.run})),T=l.map(V=>({kind:"task",id:V.id,label:V.title,hint:V.id,run:()=>u(V.id)})),F=[...I,...T];return D?F.filter(V=>V.label.toLowerCase().includes(D)||(V.hint??"").toLowerCase().includes(D)).slice(0,40):F.slice(0,40)},[s,l,f,u]);S.useEffect(()=>{v(0)},[]),S.useEffect(()=>{y>=N.length&&v(Math.max(0,N.length-1))},[N.length,y]);const j=D=>{if(D.key==="ArrowDown")D.preventDefault(),v(I=>Math.min(N.length-1,I+1));else if(D.key==="ArrowUp")D.preventDefault(),v(I=>Math.max(0,I-1));else if(D.key==="Enter"){D.preventDefault();const I=N[y];I&&(I.run(),c())}else D.key==="Escape"&&(D.preventDefault(),c())},R=N.filter(D=>D.kind==="action"),U=N.filter(D=>D.kind==="task");return d.jsx("div",{className:"palette-scrim",onClick:c,children:d.jsxs("div",{className:"palette",onClick:D=>D.stopPropagation(),children:[d.jsxs("div",{className:"palette-input-row",children:[d.jsx(Xe.Search,{}),d.jsx("input",{ref:w,className:"palette-input",value:f,onChange:D=>h(D.target.value),onKeyDown:j,placeholder:"Type a command or search tasks…"}),d.jsx("span",{className:"kbd",children:"esc"})]}),d.jsxs("div",{className:"palette-list",children:[R.length>0?d.jsx("div",{className:"palette-group",children:"Actions"}):null,R.map((D,I)=>d.jsx(sd,{entry:D,active:N.indexOf(D)===y,onHover:()=>v(N.indexOf(D)),onPick:()=>{D.run(),c()}},D.id)),U.length>0?d.jsx("div",{className:"palette-group",children:"Tasks"}):null,U.map(D=>d.jsx(sd,{entry:D,active:N.indexOf(D)===y,onHover:()=>v(N.indexOf(D)),onPick:()=>{D.run(),c()}},D.id)),N.length===0?d.jsx("div",{className:"palette-group",style:{padding:"18px 12px",textTransform:"none"},children:"No results"}):null]})]})})}function sd({entry:l,active:s,onHover:u,onPick:c}){const f=l.icon?Xe[l.icon]:Xe.Hash;return d.jsxs("button",{type:"button",className:`palette-item ${s?"active":""}`,onMouseEnter:u,onClick:c,children:[d.jsx("span",{className:"palette-item-icon",children:d.jsx(f,{})}),d.jsx("span",{children:l.label}),l.hint?d.jsx("span",{className:"palette-item-sub",children:l.hint}):null]})}function Id({title:l,message:s,confirmLabel:u="Confirm",cancelLabel:c="Cancel",secondaryLabel:f,danger:h,onConfirm:y,onCancel:v,onSecondary:w}){const N=S.useRef(null);return S.useEffect(()=>{var R;(R=N.current)==null||R.focus();const j=U=>{U.key==="Escape"?v():U.key==="Enter"&&y()};return window.addEventListener("keydown",j),()=>window.removeEventListener("keydown",j)},[v,y]),d.jsx("div",{className:"scrim",onClick:v,children:d.jsxs("div",{className:"modal confirm-dialog",onClick:j=>j.stopPropagation(),children:[d.jsx("h2",{children:l}),d.jsx("p",{children:s}),d.jsxs("div",{className:"row",children:[d.jsx("button",{type:"button",onClick:v,children:c}),f&&w?d.jsx("button",{type:"button",onClick:w,children:f}):null,d.jsx("button",{ref:N,type:"button",className:h?"danger":"primary",onClick:y,children:u})]})]})})}function jv({onSubmit:l,onCancel:s}){const[u,c]=S.useState(""),f=S.useRef(null);return S.useEffect(()=>{var y;(y=f.current)==null||y.focus();const h=v=>{v.key==="Escape"&&s()};return window.addEventListener("keydown",h),()=>window.removeEventListener("keydown",h)},[s]),d.jsx("div",{className:"scrim",onClick:s,children:d.jsxs("div",{className:"modal",style:{maxWidth:520},onClick:h=>h.stopPropagation(),children:[d.jsxs("div",{className:"modal-head",children:[d.jsx("span",{className:"section-label",style:{margin:0},children:"New task"}),d.jsx("div",{className:"modal-actions",children:d.jsx("button",{type:"button",className:"btn-icon",onClick:s,title:"Close",children:d.jsx(Xe.X,{})})})]}),d.jsxs("div",{style:{padding:"18px 20px 20px"},children:[d.jsx("input",{ref:f,className:"input",value:u,onChange:h=>c(h.target.value),placeholder:"Task title",onKeyDown:h=>{h.key==="Enter"&&u.trim().length>0&&l(u.trim())}}),d.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,marginTop:14},children:[d.jsx("button",{type:"button",className:"btn",onClick:s,children:"Cancel"}),d.jsx("button",{type:"button",className:"btn btn-primary",disabled:u.trim().length===0,onClick:()=>l(u.trim()),children:"Create"})]})]})]})})}function Rv({items:l,onChange:s}){const u=S.useRef(null),c=l.filter(w=>w.checked).length,f=l.length,h=(w,N)=>{s(l.map(j=>j.id===w?{...j,...N}:j))},y=w=>{s(l.filter(N=>N.id!==w))},v=()=>{const w=nd();u.current=w.id,s([...l,w])};return d.jsxs("div",{className:"criteria-block",children:[d.jsxs("div",{className:"crit-head",children:[d.jsx("span",{className:"section-label",style:{margin:0},children:"Acceptance Criteria"}),d.jsx("span",{className:"crit-count",children:f===0?"—":`${c} / ${f}`})]}),d.jsx("div",{children:l.map((w,N)=>d.jsx(Dv,{item:w,autoFocus:u.current===w.id,onToggle:j=>h(w.id,{checked:j}),onChangeText:j=>h(w.id,{text:j}),onRemove:()=>y(w.id),onEnter:()=>{const j=nd();u.current=j.id;const R=l.slice();R.splice(N+1,0,j),s(R)}},w.id))}),d.jsx("button",{type:"button",className:"crit-add",onClick:v,children:"+ Add criterion"})]})}function Dv({item:l,autoFocus:s,onToggle:u,onChangeText:c,onRemove:f,onEnter:h}){const y=S.useRef(null);return S.useEffect(()=>{var v;s&&((v=y.current)==null||v.focus())},[s]),d.jsxs("div",{className:`crit ${l.checked?"done":""}`,children:[d.jsx("button",{type:"button",role:"checkbox","aria-checked":l.checked,className:`check ${l.checked?"on":""}`,"aria-label":l.checked?"Mark incomplete":"Mark complete",onClick:()=>u(!l.checked),children:l.checked?d.jsx(Xe.Check,{}):null}),d.jsx("input",{ref:y,type:"text",className:"crit-input",value:l.text,placeholder:"Describe the criterion…",onChange:v=>c(v.target.value),onKeyDown:v=>{v.key==="Enter"?(v.preventDefault(),h()):v.key==="Backspace"&&l.text===""&&(v.preventDefault(),f())}}),d.jsx("button",{type:"button",className:"crit-remove","aria-label":"Remove criterion",title:"Remove",onClick:f,children:"×"})]})}function _v({items:l,onToggle:s}){const u=l.filter(c=>c.checked).length;return d.jsxs("div",{className:"criteria-block",children:[d.jsxs("div",{className:"crit-head",children:[d.jsx("span",{className:"section-label",style:{margin:0},children:"Acceptance Criteria"}),d.jsx("span",{className:"crit-count",children:l.length===0?"—":`${u} / ${l.length}`})]}),l.length===0?d.jsx("div",{className:"crit",style:{color:"var(--text-4)",fontStyle:"italic"},children:"No criteria yet."}):d.jsx("div",{children:l.map(c=>d.jsxs("div",{className:`crit ${c.checked?"done":""}`,children:[d.jsx("button",{type:"button",role:"checkbox","aria-checked":c.checked,className:`check ${c.checked?"on":""}`,"aria-label":c.checked?"Mark incomplete":"Mark complete",disabled:!s,onClick:()=>s==null?void 0:s(c.id,!c.checked),children:c.checked?d.jsx(Xe.Check,{}):null}),d.jsx("span",{children:c.text})]},c.id))})]})}function ud({id:l,values:s,onChange:u,placeholder:c,allowSpaces:f,chipClassName:h="chip tag"}){const[y,v]=S.useState(""),w=S.useRef(null),N=I=>{const T=I.trim();if(T.length!==0){if(s.includes(T)){v("");return}u([...s,T]),v("")}},j=I=>{u(s.filter((T,F)=>F!==I))},R=I=>{const T=I.key;if(T==="Enter"||T===","||T===";"){I.preventDefault(),N(y);return}if(T===" "&&!f){I.preventDefault(),N(y);return}if(T==="Backspace"&&y.length===0&&s.length>0){I.preventDefault(),j(s.length-1);return}},U=I=>{const T=I.clipboardData.getData("text");if(!T)return;const F=T.split(/[,;\s]+/).map(Y=>Y.trim()).filter(Boolean);if(F.length<=1)return;I.preventDefault();const V=[...s];for(const Y of F)V.includes(Y)||V.push(Y);u(V),v("")},D=()=>{y.trim().length>0&&N(y)};return d.jsxs("div",{className:"tag-input",onClick:()=>{var I;return(I=w.current)==null?void 0:I.focus()},onKeyDown:I=>{var T;I.target===I.currentTarget&&I.key==="Enter"&&((T=w.current)==null||T.focus())},children:[s.map((I,T)=>d.jsxs("span",{className:`${h} removable`,children:[I,d.jsx("button",{type:"button",className:"chip-remove","aria-label":`Remove ${I}`,onClick:F=>{F.stopPropagation(),j(T)},children:"×"})]},`${I}-${T}`)),d.jsx("input",{id:l,ref:w,type:"text",className:"tag-input-field",value:y,onChange:I=>v(I.target.value),onKeyDown:R,onPaste:U,onBlur:D,placeholder:s.length===0?c:""})]})}function gl(l){return Pd.test(l.trim())}function Fi(l){var f;const s=l.sections.map(h=>({...h})),u=s.findIndex(h=>gl(h.heading)),c=u>=0?Xi(((f=s[u])==null?void 0:f.content)??""):[];return{title:l.title,status:l.status,assignee:l.assignee??"",priority:l.priority??"",tags:[...l.tags],depends_on:[...l.depends_on],sections:s,acceptance:c,acceptanceSectionIdx:u>=0?u:null}}function Ad(l){return l.acceptanceSectionIdx===null?l.sections:l.sections.map((s,u)=>u===l.acceptanceSectionIdx?{...s,content:Td(l.acceptance)}:s)}function ad(l,s){if(l.length!==s.length)return!1;for(let u=0;u<l.length;u+=1)if(l[u]!==s[u])return!1;return!0}function Tv(l,s){if(s.title.trim()!==l.title||s.status!==l.status||(s.assignee.trim()===""?null:s.assignee.trim())!==(l.assignee??null)||(s.priority===""?null:s.priority)!==(l.priority??null)||!ad(s.tags,l.tags)||!ad(s.depends_on,l.depends_on))return!0;const f=Ad(s);if(f.length!==l.sections.length)return!0;for(let h=0;h<f.length;h+=1){const y=f[h],v=l.sections[h];if(!y||!v||y.heading!==v.heading||y.level!==v.level||y.content!==v.content)return!0}return!1}function Pv({task:l,config:s,startInEdit:u,onClose:c,onSaved:f,onDelete:h,agentHook:y,onAgent:v}){const[w,N]=S.useState(!!u),[j,R]=S.useState(()=>Fi(l)),[U,D]=S.useState(!1),[I,T]=S.useState(null),[F,V]=S.useState(null),Y=S.useRef(!!u),re=w&&Tv(l,j),G=()=>{w&&re?V("close"):c()},ue=()=>{w&&(re?V("exit-edit"):Y.current?c():N(!1))};S.useEffect(()=>{const z=ne=>{ne.key==="Escape"&&F===null&&(w&&re?V("close"):c())};return window.addEventListener("keydown",z),()=>window.removeEventListener("keydown",z)},[w,re,F,c]),S.useEffect(()=>{R(Fi(l))},[l]),S.useEffect(()=>{u&&(N(!0),Y.current=!0)},[u,l.id]);const le=S.useMemo(()=>{const z=l.sections.find(ne=>gl(ne.heading));return z?Xi(z.content):[]},[l]),Z=async()=>{D(!0),T(null);try{const z=await ln.update(l.id,{title:j.title.trim(),status:j.status,assignee:j.assignee.trim()===""?null:j.assignee.trim(),priority:j.priority===""?null:j.priority,tags:j.tags,depends_on:j.depends_on,sections:Ad(j)});f(z),Y.current?c():N(!1)}catch(z){T(z.message)}finally{D(!1)}},te=async(z,ne)=>{const ge=l.sections.find(fe=>gl(fe.heading));if(!ge)return;const Ce=Xi(ge.content).map(fe=>fe.id===z?{...fe,checked:ne}:fe),Le=l.sections.map(fe=>gl(fe.heading)?{...fe,content:Td(Ce)}:fe);try{const fe=await ln.update(l.id,{sections:Le});f(fe)}catch(fe){T(fe.message)}},me=l.sections.filter(z=>!gl(z.heading)&&z.heading!==""),ye=j.sections.filter((z,ne)=>ne!==j.acceptanceSectionIdx&&z.heading!=="");return d.jsxs("div",{className:"scrim",onClick:G,children:[d.jsxs("div",{className:"modal",onClick:z=>z.stopPropagation(),children:[d.jsxs("div",{className:"modal-head",children:[d.jsx("span",{className:"modal-id",children:l.id}),d.jsxs("span",{className:"modal-sublabel",children:["in ",d.jsx("strong",{children:l.status})]}),d.jsxs("div",{className:"modal-actions",children:[y!=null&&y.enabled?d.jsx("button",{type:"button",className:"btn btn-agent",title:`Send task to ${y.label}`,onClick:()=>v==null?void 0:v(l.id),children:y.label}):null,d.jsx("button",{type:"button",className:"btn-icon",title:w?"Exit edit":"Edit",onClick:()=>{w?ue():N(!0)},children:d.jsx(Xe.Edit,{})}),d.jsx("button",{type:"button",className:"btn-icon btn-danger",title:"Delete",onClick:()=>h(l.id),children:d.jsx(Xe.Trash,{})}),d.jsx("button",{type:"button",className:"btn-icon",title:"Close",onClick:G,children:d.jsx(Xe.X,{})})]})]}),w?d.jsx("input",{className:"modal-title",value:j.title,onChange:z=>R(ne=>({...ne,title:z.target.value})),autoFocus:!0}):d.jsx("h1",{className:"modal-title",children:l.title}),d.jsxs("div",{className:"modal-sub",children:["Created ",l.created_at," · updated ",l.updated_at]}),l.renamed_from?d.jsxs("div",{className:"modal-rename-banner",children:["Previously known as ",d.jsx("code",{children:l.renamed_from}),d.jsxs("span",{className:"modal-rename-hint",children:[" ","— another writer landed this id first; Ordna auto-renumbered yours."]})]}):null,I?d.jsx("div",{style:{padding:"0 24px 12px"},children:d.jsx("div",{className:"form-error",children:I})}):null,d.jsxs("div",{className:"modal-grid",children:[d.jsxs("div",{children:[d.jsxs("div",{className:"section",children:[d.jsx("span",{className:"section-label",children:"Tags"}),w?d.jsx(ud,{id:"tf-tags",values:j.tags,onChange:z=>R(ne=>({...ne,tags:z})),placeholder:"Type and press space, comma, or enter"}):l.tags.length>0?d.jsx("div",{className:"tags-view",children:l.tags.map(z=>d.jsxs("span",{className:`chip ${Ld(z)}`,children:["#",z]},z))}):d.jsx("div",{className:"section-empty",children:"No tags"})]}),d.jsx("div",{className:"section",children:w?j.acceptanceSectionIdx!==null?d.jsx(Rv,{items:j.acceptance,onChange:z=>R(ne=>({...ne,acceptance:z}))}):d.jsx("div",{className:"section-empty",children:"No Acceptance Criteria section in this task."}):d.jsx(_v,{items:le,onToggle:te})}),w?ye.map(z=>{const ne=j.sections.findIndex(ge=>ge.heading===z.heading&&ge.level===z.level);return d.jsxs("div",{className:"section",children:[d.jsx("span",{className:"section-label",children:z.heading}),d.jsx("textarea",{className:"textarea",value:z.content,onChange:ge=>{const Ce=ge.target.value;R(Le=>({...Le,sections:Le.sections.map((fe,pe)=>pe===ne?{...fe,content:Ce}:fe)}))}})]},`${z.heading}-${ne}`)}):me.map((z,ne)=>d.jsxs("div",{className:"section",children:[d.jsx("span",{className:"section-label",children:z.heading}),z.content?d.jsx("p",{className:"section-body",children:z.content}):d.jsx("div",{className:"section-empty",children:"—"})]},`${z.heading}-${ne}`))]}),d.jsxs("div",{className:"side-panel",children:[d.jsxs("div",{children:[d.jsx("span",{className:"side-field-label",children:"Status"}),w?d.jsx("div",{className:"select-wrap",children:d.jsxs("select",{className:"select",value:j.status,onChange:z=>R(ne=>({...ne,status:z.target.value})),children:[s.statuses.map(z=>d.jsx("option",{value:z,children:z},z)),d.jsx("option",{value:"archived",children:"archived"})]})}):d.jsx("div",{className:"pill-value",children:l.status})]}),d.jsxs("div",{children:[d.jsx("span",{className:"side-field-label",children:"Priority"}),w?d.jsx("div",{className:"select-wrap",children:d.jsxs("select",{className:"select",value:j.priority,onChange:z=>R(ne=>({...ne,priority:z.target.value})),children:[d.jsx("option",{value:"",children:"—"}),d.jsx("option",{value:"high",children:"High"}),d.jsx("option",{value:"medium",children:"Medium"}),d.jsx("option",{value:"low",children:"Low"})]})}):l.priority?d.jsxs("div",{className:"pill-value",children:[d.jsx("span",{className:"prio-dot",style:{width:8,height:8,borderRadius:"50%",background:l.priority==="high"?"var(--prio-high)":l.priority==="medium"?"var(--prio-med)":"var(--prio-low)"}}),l.priority]}):d.jsx("div",{className:"pill-value",style:{color:"var(--text-4)"},children:"—"})]}),d.jsxs("div",{children:[d.jsx("span",{className:"side-field-label",children:"Assignee"}),w?d.jsx("input",{className:"input",value:j.assignee,onChange:z=>R(ne=>({...ne,assignee:z.target.value})),placeholder:"unassigned"}):d.jsxs("div",{className:"pill-value",children:[d.jsx(Md,{name:l.assignee,size:18}),d.jsx("span",{children:l.assignee?`@${l.assignee}`:d.jsx("span",{style:{color:"var(--text-4)"},children:"unassigned"})})]})]}),d.jsxs("div",{children:[d.jsx("span",{className:"side-field-label",children:"Depends on"}),w?d.jsx(ud,{id:"tf-depends-on",values:j.depends_on,onChange:z=>R(ne=>({...ne,depends_on:z})),placeholder:"e.g. T-001",chipClassName:"chip dep"}):l.depends_on.length===0?d.jsx("div",{style:{color:"var(--text-4)",fontSize:12},children:"—"}):l.depends_on.map(z=>d.jsxs("div",{className:"dep-pill",title:z,children:[d.jsx("span",{className:"dot",style:{background:"var(--accent)"}}),d.jsx("span",{className:"dep-id",children:z})]},z))]})]})]}),w?d.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:8,padding:"0 24px 20px"},children:[d.jsx("button",{type:"button",className:"btn",onClick:()=>{R(Fi(l)),T(null),Y.current?c():N(!1)},children:"Cancel"}),d.jsx("button",{type:"button",className:"btn btn-primary",onClick:()=>void Z(),disabled:U,children:U?"Saving…":"Save"})]}):null]}),F!==null?d.jsx(Id,{title:"Unsaved changes",message:"You have unsaved changes to this task. Save them, discard them, or keep editing?",confirmLabel:"Save",secondaryLabel:"Don't save",cancelLabel:"Cancel",onCancel:()=>V(null),onSecondary:()=>{const z=F;V(null),R(Fi(l)),T(null),z==="close"||Y.current?c():N(!1)},onConfirm:()=>{const z=F;V(null),z==="close"&&(Y.current=!0),Z()}}):null]})}const Ui="archived";function Mv(l,s){var c;const u={};for(const f of s)u[f]=[];for(const f of l)(u[c=f.status]??(u[c]=[])).push(f);return u}function Lv(){const l=window.localStorage.getItem("ordna-theme");return l==="light"||l==="dark"?l:"dark"}function Ov(){var Ct,Gt;const[l,s]=S.useState(null),[u,c]=S.useState([]),[f,h]=S.useState(""),[y,v]=S.useState(null),[w,N]=S.useState(!1),[j,R]=S.useState(null),[U,D]=S.useState(null),[I,T]=S.useState(!1),[F,V]=S.useState(null),[Y,re]=S.useState(Lv),[G,ue]=S.useState({kind:"all"}),[le,Z]=S.useState(null),[te,me]=S.useState(!1),[ye,z]=S.useState(!1),[ne,ge]=S.useState(!1);S.useEffect(()=>{document.documentElement.setAttribute("data-theme",Y),window.localStorage.setItem("ordna-theme",Y)},[Y]),S.useEffect(()=>{(async()=>{const[O,B]=await Promise.all([ln.config(),ln.list()]);s(O),c(B)})()},[]),S.useEffect(()=>{const O=window.location.protocol==="https:"?"wss:":"ws:",B=new WebSocket(`${O}//${window.location.host}/ws`);return B.onmessage=ce=>{const we=JSON.parse(ce.data);if(c(ct=>{if(we.type==="removed")return ct.filter(Ee=>Ee.id!==we.id);if(we.type==="renamed"){const Ee=ct.filter(Fe=>Fe.id!==we.oldId&&Fe.id!==we.newId);return Ee.push(we.task),Ee}const Be=ct.filter(Ee=>Ee.id!==we.task.id);return Be.push(we.task),Be}),we.type==="renamed"){D(Be=>Be===we.oldId?we.newId:Be),R(Be=>Be===we.oldId?we.newId:Be);const ct=`Renamed ${we.oldId} → ${we.newId}`;v({message:ct,kind:"info"}),window.setTimeout(()=>v(null),3500)}},()=>B.close()},[]);const Ce=(l==null?void 0:l.statuses)??["todo","doing","done"],Le=S.useCallback(()=>{re(O=>O==="dark"?"light":"dark")},[]);S.useCallback(async O=>{if(!O){N(!0);return}try{const B=await ln.create({title:"New task"});c(ce=>[...ce,B]),D(B.id),T(!0)}catch(B){v({message:B.message,kind:"error"}),window.setTimeout(()=>v(null),4e3)}},[]);const fe=S.useCallback(async()=>{if(!ne){ge(!0);try{const O=await ln.fetchRemote(),B=O.refsUpdated,ce=B===0?`Up to date · ${O.durationMs}ms`:`Fetched ${B} ref${B===1?"":"s"} · ${O.durationMs}ms`;v({message:ce,kind:"info"}),window.setTimeout(()=>v(null),2500)}catch(O){v({message:O.message,kind:"error"}),window.setTimeout(()=>v(null),4e3)}finally{ge(!1)}}},[ne]);S.useEffect(()=>{const O=B=>{var Be,Ee;const ce=B.target,we=ce&&(ce.tagName==="INPUT"||ce.tagName==="TEXTAREA"||ce.tagName==="SELECT"||ce.isContentEditable);if((B.metaKey||B.ctrlKey)&&B.key.toLowerCase()==="k"){B.preventDefault(),me(Fe=>!Fe);return}we||(B.key==="/"?(B.preventDefault(),(Be=document.getElementById("topbar-search"))==null||Be.focus()):B.key==="n"?(B.preventDefault(),N(!0)):B.key==="t"?(B.preventDefault(),Le()):B.key==="?"?(B.preventDefault(),z(Fe=>!Fe)):B.key==="r"&&((Ee=l==null?void 0:l.capabilities)!=null&&Ee.fetch)?(B.preventDefault(),fe()):B.key==="Escape"&&(te?me(!1):ye&&z(!1)))};return window.addEventListener("keydown",O),()=>window.removeEventListener("keydown",O)},[te,ye,Le,(Ct=l==null?void 0:l.capabilities)==null?void 0:Ct.fetch,fe]);const pe=S.useMemo(()=>{const O=f.trim().toLowerCase();return u.filter(B=>{const ce=B.status===Ui;if(G.kind==="archived"){if(!ce)return!1}else if(ce||G.kind==="status"&&B.status!==G.status||G.kind==="tag"&&!B.tags.includes(G.tag))return!1;return le&&B.priority!==le?!1:O?B.title.toLowerCase().includes(O)||B.id.toLowerCase().includes(O)||B.tags.some(we=>we.toLowerCase().includes(O)):!0})},[u,G,le,f]),$=G.kind==="archived"?[Ui]:Ce,J=S.useMemo(()=>Mv(pe,$),[pe,$]),W=S.useMemo(()=>{const O=new Map;for(const B of u)for(const ce of B.tags)O.set(ce,(O.get(ce)??0)+1);return[...O.entries()].sort((B,ce)=>ce[1]-B[1]).slice(0,12)},[u]),x=eh(Wc(eu,{activationConstraint:{distance:4}}),Wc(Zs)),_=O=>{R(String(O.active.id))},ie=async O=>{R(null);const B=O.over;if(!B)return;const ce=String(B.id).replace(/^column:/,""),we=String(O.active.id),ct=u.find(Ee=>Ee.id===we);if(!ct||ct.status===ce)return;const Be=u;c(Ee=>Ee.map(Fe=>Fe.id===we?{...Fe,status:ce}:Fe));try{await ln.move(we,ce)}catch(Ee){c(Be),v({message:Ee.message,kind:"error"}),window.setTimeout(()=>v(null),4e3)}},ae=j?u.find(O=>O.id===j)??null:null,de=(l==null?void 0:l.agentHook)??null,oe=S.useCallback(async O=>{if(de!=null&&de.enabled){try{await ln.agent(O),v({message:`Sent ${O} to ${de.label}`,kind:"info"})}catch(B){v({message:B.message,kind:"error"})}window.setTimeout(()=>v(null),3e3)}},[de]),ke=async O=>{try{const B=await ln.create({title:O});c(ce=>[...ce,B]),v({message:`Created ${B.id}`,kind:"info"})}catch(B){v({message:B.message,kind:"error"})}N(!1),window.setTimeout(()=>v(null),2500)},he=S.useMemo(()=>u.filter(O=>O.status!==Ui),[u]),Ne=u.length-he.length,Re=S.useMemo(()=>{const O={};for(const B of Ce)O[B]=0;for(const B of he)O[B.status]=(O[B.status]??0)+1;return O},[he,Ce]),bt=[{id:"new",label:"New task",hint:"N",icon:"Plus",run:()=>N(!0)},{id:"theme",label:Y==="dark"?"Switch to light theme":"Switch to dark theme",hint:"T",icon:Y==="dark"?"Sun":"Moon",run:Le},{id:"shortcuts",label:"Show shortcuts",hint:"?",icon:"Command",run:()=>z(!0)},{id:"all",label:"View all tasks",icon:"Inbox",run:()=>ue({kind:"all"})}];return d.jsxs("div",{className:"app",children:[d.jsxs("div",{className:"topbar",children:[d.jsxs("div",{className:"brand",children:[d.jsx("span",{className:"brand-logo",children:"O"}),d.jsx("span",{children:"Ordna"})]}),l?d.jsxs("div",{className:"crumbs",children:[d.jsx("span",{className:"sep",children:"/"}),d.jsx("span",{className:"active",children:l.tasksDir})]}):null,d.jsx("div",{className:"topbar-spacer"}),d.jsxs("div",{className:"search",style:{width:320,height:34},children:[d.jsx(Xe.Search,{}),d.jsx("input",{id:"topbar-search",placeholder:"Search…",value:f,onChange:O=>h(O.target.value)}),d.jsx("span",{className:"kbd",children:"/"})]}),d.jsx("button",{type:"button",className:"btn-icon",title:"Shortcuts (?)",onClick:()=>z(O=>!O),children:d.jsx(Xe.Command,{})}),d.jsx("button",{type:"button",className:"btn-icon",title:Y==="dark"?"Switch to light (T)":"Switch to dark (T)",onClick:Le,children:Y==="dark"?d.jsx(Xe.Sun,{}):d.jsx(Xe.Moon,{})}),(Gt=l==null?void 0:l.capabilities)!=null&&Gt.fetch?d.jsx("button",{type:"button",className:"btn-icon",title:"Fetch updates from remote (R)",disabled:ne,onClick:fe,children:d.jsx(Xe.Refresh,{})}):null,d.jsxs("button",{type:"button",className:"btn btn-primary",onClick:()=>N(!0),children:[d.jsx(Xe.Plus,{})," New task ",d.jsx("span",{className:"kbd",children:"N"})]})]}),d.jsxs("div",{className:"main",children:[d.jsxs("div",{className:"sidebar",children:[d.jsx("div",{className:"side-head",children:"Views"}),d.jsxs("button",{type:"button",className:`side-item ${G.kind==="all"?"active":""}`,onClick:()=>ue({kind:"all"}),children:[d.jsx(Xe.Inbox,{})," All tasks",d.jsx("span",{className:"count",children:he.length})]}),Ce.map((O,B)=>d.jsxs("button",{type:"button",className:`side-item ${G.kind==="status"&&G.status===O?"active":""}`,onClick:()=>ue({kind:"status",status:O}),children:[d.jsx("span",{className:`side-dot col-dot ${od(O,B)}`}),O,d.jsx("span",{className:"count",children:Re[O]??0})]},O)),d.jsxs("button",{type:"button",className:`side-item ${G.kind==="archived"?"active":""}`,onClick:()=>ue({kind:"archived"}),children:[d.jsx("span",{className:"side-dot col-dot",style:{background:"var(--text-4)"}}),"archived",d.jsx("span",{className:"count",children:Ne})]}),d.jsx("div",{className:"side-divider"}),d.jsx("div",{className:"side-head",children:"Priority"}),["high","medium","low"].map(O=>d.jsxs("button",{type:"button",className:`side-item ${le===O?"active":""}`,onClick:()=>Z(B=>B===O?null:O),children:[d.jsx("span",{className:"side-dot col-dot",style:{background:`var(--prio-${O==="medium"?"med":O})`}}),O,d.jsx("span",{className:"count",children:u.filter(B=>B.priority===O).length})]},O)),W.length>0?d.jsxs(d.Fragment,{children:[d.jsx("div",{className:"side-divider"}),d.jsx("div",{className:"side-head",children:"Tags"}),W.map(([O,B])=>d.jsxs("button",{type:"button",className:`side-item ${G.kind==="tag"&&G.tag===O?"active":""}`,onClick:()=>ue({kind:"tag",tag:O}),children:[d.jsx(Xe.Hash,{}),O,d.jsx("span",{className:"count",children:B})]},O))]}):null]}),d.jsxs("div",{className:"boardwrap",children:[d.jsxs("div",{className:"subbar",children:[d.jsx("h1",{children:G.kind==="all"?"All tasks":G.kind==="archived"?"Archived":G.kind==="status"?G.status:`#${G.tag}`}),d.jsxs("span",{className:"meta",children:["· ",pe.length," visible · ",he.length," total"]}),d.jsx("div",{className:"subbar-spacer"}),le?d.jsxs("button",{type:"button",className:"pill active",onClick:()=>Z(null),children:[d.jsx("span",{className:`prio-dot ${le}`})," ",le,d.jsx(Xe.X,{})]}):null]}),d.jsxs(Jh,{sensors:x,onDragStart:_,onDragEnd:ie,children:[d.jsx("div",{className:"board",children:(G.kind==="archived"?[Ui]:Ce).map((O,B)=>d.jsx(Ev,{status:O,color:G.kind==="archived"?"slate":od(O,B),tasks:J[O]??[],onSelect:ce=>{D(ce),T(!1)},onEdit:ce=>{D(ce),T(!0)},onDelete:ce=>V(ce),agentHook:de,onAgent:oe},O))}),d.jsx(gv,{dropAnimation:null,children:ae?d.jsx(Od,{task:ae,overlay:!0}):null})]})]})]}),w?d.jsx(jv,{onSubmit:ke,onCancel:()=>N(!1)}):null,U&&l?(()=>{const O=u.find(B=>B.id===U);return O?d.jsx(Pv,{task:O,config:l,startInEdit:I,onClose:()=>{D(null),T(!1)},onSaved:B=>{c(ce=>ce.map(we=>we.id===B.id?B:we))},onDelete:B=>{D(null),T(!1),V(B)},agentHook:de,onAgent:oe}):null})():null,F?d.jsx(Id,{title:"Delete task?",message:`This will remove ${F} from disk. Make a commit first if you want to keep a record.`,confirmLabel:"Delete",danger:!0,onCancel:()=>V(null),onConfirm:async()=>{const O=F;V(null);try{await ln.remove(O),c(B=>B.filter(ce=>ce.id!==O)),v({message:`Deleted ${O}`,kind:"info"}),window.setTimeout(()=>v(null),2500)}catch(B){v({message:B.message,kind:"error"}),window.setTimeout(()=>v(null),4e3)}}}):null,te?d.jsx(Nv,{tasks:u,actions:bt,onOpenTask:O=>{D(O),T(!1)},onClose:()=>me(!1)}):null,ye?d.jsx(kv,{onClose:()=>z(!1)}):null,y?d.jsx("div",{className:`toast ${y.kind==="error"?"error":""}`,children:y.message}):null]})}const Fd=document.getElementById("root");if(!Fd)throw new Error("Missing #root");Bp.createRoot(Fd).render(d.jsx(S.StrictMode,{children:d.jsx(Ov,{})}));
|