@reposkein/mcp 0.2.2 → 0.2.4

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.
@@ -0,0 +1,77 @@
1
+ function hg(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Jl={exports:{}},go={},Zl={exports:{}},de={};/**
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 Df;function pg(){if(Df)return de;Df=1;var t=Symbol.for("react.element"),i=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),d=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),m=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),v=Symbol.iterator;function w(E){return E===null||typeof E!="object"?null:(E=v&&E[v]||E["@@iterator"],typeof E=="function"?E:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},C=Object.assign,_={};function x(E,D,ce){this.props=E,this.context=D,this.refs=_,this.updater=ce||S}x.prototype.isReactComponent={},x.prototype.setState=function(E,D){if(typeof E!="object"&&typeof E!="function"&&E!=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,E,D,"setState")},x.prototype.forceUpdate=function(E){this.updater.enqueueForceUpdate(this,E,"forceUpdate")};function M(){}M.prototype=x.prototype;function F(E,D,ce){this.props=E,this.context=D,this.refs=_,this.updater=ce||S}var O=F.prototype=new M;O.constructor=F,C(O,x.prototype),O.isPureReactComponent=!0;var z=Array.isArray,j=Object.prototype.hasOwnProperty,U={current:null},A={key:!0,ref:!0,__self:!0,__source:!0};function B(E,D,ce){var fe,se={},pe=null,Se=null;if(D!=null)for(fe in D.ref!==void 0&&(Se=D.ref),D.key!==void 0&&(pe=""+D.key),D)j.call(D,fe)&&!A.hasOwnProperty(fe)&&(se[fe]=D[fe]);var ge=arguments.length-2;if(ge===1)se.children=ce;else if(1<ge){for(var ye=Array(ge),He=0;He<ge;He++)ye[He]=arguments[He+2];se.children=ye}if(E&&E.defaultProps)for(fe in ge=E.defaultProps,ge)se[fe]===void 0&&(se[fe]=ge[fe]);return{$$typeof:t,type:E,key:pe,ref:Se,props:se,_owner:U.current}}function W(E,D){return{$$typeof:t,type:E.type,key:D,ref:E.ref,props:E.props,_owner:E._owner}}function re(E){return typeof E=="object"&&E!==null&&E.$$typeof===t}function oe(E){var D={"=":"=0",":":"=2"};return"$"+E.replace(/[=:]/g,function(ce){return D[ce]})}var ie=/\/+/g;function ke(E,D){return typeof E=="object"&&E!==null&&E.key!=null?oe(""+E.key):D.toString(36)}function Re(E,D,ce,fe,se){var pe=typeof E;(pe==="undefined"||pe==="boolean")&&(E=null);var Se=!1;if(E===null)Se=!0;else switch(pe){case"string":case"number":Se=!0;break;case"object":switch(E.$$typeof){case t:case i:Se=!0}}if(Se)return Se=E,se=se(Se),E=fe===""?"."+ke(Se,0):fe,z(se)?(ce="",E!=null&&(ce=E.replace(ie,"$&/")+"/"),Re(se,D,ce,"",function(He){return He})):se!=null&&(re(se)&&(se=W(se,ce+(!se.key||Se&&Se.key===se.key?"":(""+se.key).replace(ie,"$&/")+"/")+E)),D.push(se)),1;if(Se=0,fe=fe===""?".":fe+":",z(E))for(var ge=0;ge<E.length;ge++){pe=E[ge];var ye=fe+ke(pe,ge);Se+=Re(pe,D,ce,ye,se)}else if(ye=w(E),typeof ye=="function")for(E=ye.call(E),ge=0;!(pe=E.next()).done;)pe=pe.value,ye=fe+ke(pe,ge++),Se+=Re(pe,D,ce,ye,se);else if(pe==="object")throw D=String(E),Error("Objects are not valid as a React child (found: "+(D==="[object Object]"?"object with keys {"+Object.keys(E).join(", ")+"}":D)+"). If you meant to render a collection of children, use an array instead.");return Se}function De(E,D,ce){if(E==null)return E;var fe=[],se=0;return Re(E,fe,"","",function(pe){return D.call(ce,pe,se++)}),fe}function Ne(E){if(E._status===-1){var D=E._result;D=D(),D.then(function(ce){(E._status===0||E._status===-1)&&(E._status=1,E._result=ce)},function(ce){(E._status===0||E._status===-1)&&(E._status=2,E._result=ce)}),E._status===-1&&(E._status=0,E._result=D)}if(E._status===1)return E._result.default;throw E._result}var he={current:null},G={transition:null},b={ReactCurrentDispatcher:he,ReactCurrentBatchConfig:G,ReactCurrentOwner:U};function K(){throw Error("act(...) is not supported in production builds of React.")}return de.Children={map:De,forEach:function(E,D,ce){De(E,function(){D.apply(this,arguments)},ce)},count:function(E){var D=0;return De(E,function(){D++}),D},toArray:function(E){return De(E,function(D){return D})||[]},only:function(E){if(!re(E))throw Error("React.Children.only expected to receive a single React element child.");return E}},de.Component=x,de.Fragment=r,de.Profiler=u,de.PureComponent=F,de.StrictMode=s,de.Suspense=h,de.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=b,de.act=K,de.cloneElement=function(E,D,ce){if(E==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+E+".");var fe=C({},E.props),se=E.key,pe=E.ref,Se=E._owner;if(D!=null){if(D.ref!==void 0&&(pe=D.ref,Se=U.current),D.key!==void 0&&(se=""+D.key),E.type&&E.type.defaultProps)var ge=E.type.defaultProps;for(ye in D)j.call(D,ye)&&!A.hasOwnProperty(ye)&&(fe[ye]=D[ye]===void 0&&ge!==void 0?ge[ye]:D[ye])}var ye=arguments.length-2;if(ye===1)fe.children=ce;else if(1<ye){ge=Array(ye);for(var He=0;He<ye;He++)ge[He]=arguments[He+2];fe.children=ge}return{$$typeof:t,type:E.type,key:se,ref:pe,props:fe,_owner:Se}},de.createContext=function(E){return E={$$typeof:d,_currentValue:E,_currentValue2:E,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},E.Provider={$$typeof:c,_context:E},E.Consumer=E},de.createElement=B,de.createFactory=function(E){var D=B.bind(null,E);return D.type=E,D},de.createRef=function(){return{current:null}},de.forwardRef=function(E){return{$$typeof:p,render:E}},de.isValidElement=re,de.lazy=function(E){return{$$typeof:y,_payload:{_status:-1,_result:E},_init:Ne}},de.memo=function(E,D){return{$$typeof:m,type:E,compare:D===void 0?null:D}},de.startTransition=function(E){var D=G.transition;G.transition={};try{E()}finally{G.transition=D}},de.unstable_act=K,de.useCallback=function(E,D){return he.current.useCallback(E,D)},de.useContext=function(E){return he.current.useContext(E)},de.useDebugValue=function(){},de.useDeferredValue=function(E){return he.current.useDeferredValue(E)},de.useEffect=function(E,D){return he.current.useEffect(E,D)},de.useId=function(){return he.current.useId()},de.useImperativeHandle=function(E,D,ce){return he.current.useImperativeHandle(E,D,ce)},de.useInsertionEffect=function(E,D){return he.current.useInsertionEffect(E,D)},de.useLayoutEffect=function(E,D){return he.current.useLayoutEffect(E,D)},de.useMemo=function(E,D){return he.current.useMemo(E,D)},de.useReducer=function(E,D,ce){return he.current.useReducer(E,D,ce)},de.useRef=function(E){return he.current.useRef(E)},de.useState=function(E){return he.current.useState(E)},de.useSyncExternalStore=function(E,D,ce){return he.current.useSyncExternalStore(E,D,ce)},de.useTransition=function(){return he.current.useTransition()},de.version="18.3.1",de}var zf;function Io(){return zf||(zf=1,Zl.exports=pg()),Zl.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 Nf;function gg(){if(Nf)return go;Nf=1;var t=Io(),i=Symbol.for("react.element"),r=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,u=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,c={key:!0,ref:!0,__self:!0,__source:!0};function d(p,h,m){var y,v={},w=null,S=null;m!==void 0&&(w=""+m),h.key!==void 0&&(w=""+h.key),h.ref!==void 0&&(S=h.ref);for(y in h)s.call(h,y)&&!c.hasOwnProperty(y)&&(v[y]=h[y]);if(p&&p.defaultProps)for(y in h=p.defaultProps,h)v[y]===void 0&&(v[y]=h[y]);return{$$typeof:i,type:p,key:w,ref:S,props:v,_owner:u.current}}return go.Fragment=r,go.jsx=d,go.jsxs=d,go}var $f;function mg(){return $f||($f=1,Jl.exports=gg()),Jl.exports}var ne=mg(),Z=Io();const Ro=hg(Z);var bl={exports:{}},st={},eu={exports:{}},tu={};/**
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 Af;function vg(){return Af||(Af=1,(function(t){function i(G,b){var K=G.length;G.push(b);e:for(;0<K;){var E=K-1>>>1,D=G[E];if(0<u(D,b))G[E]=b,G[K]=D,K=E;else break e}}function r(G){return G.length===0?null:G[0]}function s(G){if(G.length===0)return null;var b=G[0],K=G.pop();if(K!==b){G[0]=K;e:for(var E=0,D=G.length,ce=D>>>1;E<ce;){var fe=2*(E+1)-1,se=G[fe],pe=fe+1,Se=G[pe];if(0>u(se,K))pe<D&&0>u(Se,se)?(G[E]=Se,G[pe]=K,E=pe):(G[E]=se,G[fe]=K,E=fe);else if(pe<D&&0>u(Se,K))G[E]=Se,G[pe]=K,E=pe;else break e}}return b}function u(G,b){var K=G.sortIndex-b.sortIndex;return K!==0?K:G.id-b.id}if(typeof performance=="object"&&typeof performance.now=="function"){var c=performance;t.unstable_now=function(){return c.now()}}else{var d=Date,p=d.now();t.unstable_now=function(){return d.now()-p}}var h=[],m=[],y=1,v=null,w=3,S=!1,C=!1,_=!1,x=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,F=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function O(G){for(var b=r(m);b!==null;){if(b.callback===null)s(m);else if(b.startTime<=G)s(m),b.sortIndex=b.expirationTime,i(h,b);else break;b=r(m)}}function z(G){if(_=!1,O(G),!C)if(r(h)!==null)C=!0,Ne(j);else{var b=r(m);b!==null&&he(z,b.startTime-G)}}function j(G,b){C=!1,_&&(_=!1,M(B),B=-1),S=!0;var K=w;try{for(O(b),v=r(h);v!==null&&(!(v.expirationTime>b)||G&&!oe());){var E=v.callback;if(typeof E=="function"){v.callback=null,w=v.priorityLevel;var D=E(v.expirationTime<=b);b=t.unstable_now(),typeof D=="function"?v.callback=D:v===r(h)&&s(h),O(b)}else s(h);v=r(h)}if(v!==null)var ce=!0;else{var fe=r(m);fe!==null&&he(z,fe.startTime-b),ce=!1}return ce}finally{v=null,w=K,S=!1}}var U=!1,A=null,B=-1,W=5,re=-1;function oe(){return!(t.unstable_now()-re<W)}function ie(){if(A!==null){var G=t.unstable_now();re=G;var b=!0;try{b=A(!0,G)}finally{b?ke():(U=!1,A=null)}}else U=!1}var ke;if(typeof F=="function")ke=function(){F(ie)};else if(typeof MessageChannel<"u"){var Re=new MessageChannel,De=Re.port2;Re.port1.onmessage=ie,ke=function(){De.postMessage(null)}}else ke=function(){x(ie,0)};function Ne(G){A=G,U||(U=!0,ke())}function he(G,b){B=x(function(){G(t.unstable_now())},b)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(G){G.callback=null},t.unstable_continueExecution=function(){C||S||(C=!0,Ne(j))},t.unstable_forceFrameRate=function(G){0>G||125<G?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):W=0<G?Math.floor(1e3/G):5},t.unstable_getCurrentPriorityLevel=function(){return w},t.unstable_getFirstCallbackNode=function(){return r(h)},t.unstable_next=function(G){switch(w){case 1:case 2:case 3:var b=3;break;default:b=w}var K=w;w=b;try{return G()}finally{w=K}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(G,b){switch(G){case 1:case 2:case 3:case 4:case 5:break;default:G=3}var K=w;w=G;try{return b()}finally{w=K}},t.unstable_scheduleCallback=function(G,b,K){var E=t.unstable_now();switch(typeof K=="object"&&K!==null?(K=K.delay,K=typeof K=="number"&&0<K?E+K:E):K=E,G){case 1:var D=-1;break;case 2:D=250;break;case 5:D=1073741823;break;case 4:D=1e4;break;default:D=5e3}return D=K+D,G={id:y++,callback:b,priorityLevel:G,startTime:K,expirationTime:D,sortIndex:-1},K>E?(G.sortIndex=K,i(m,G),r(h)===null&&G===r(m)&&(_?(M(B),B=-1):_=!0,he(z,K-E))):(G.sortIndex=D,i(h,G),C||S||(C=!0,Ne(j))),G},t.unstable_shouldYield=oe,t.unstable_wrapCallback=function(G){var b=w;return function(){var K=w;w=b;try{return G.apply(this,arguments)}finally{w=K}}}})(tu)),tu}var Vf;function yg(){return Vf||(Vf=1,eu.exports=vg()),eu.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 jf;function Sg(){if(jf)return st;jf=1;var t=Io(),i=yg();function r(e){for(var n="https://reactjs.org/docs/error-decoder.html?invariant="+e,o=1;o<arguments.length;o++)n+="&args[]="+encodeURIComponent(arguments[o]);return"Minified React error #"+e+"; visit "+n+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var s=new Set,u={};function c(e,n){d(e,n),d(e+"Capture",n)}function d(e,n){for(u[e]=n,e=0;e<n.length;e++)s.add(n[e])}var p=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),h=Object.prototype.hasOwnProperty,m=/^[: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]*$/,y={},v={};function w(e){return h.call(v,e)?!0:h.call(y,e)?!1:m.test(e)?v[e]=!0:(y[e]=!0,!1)}function S(e,n,o,l){if(o!==null&&o.type===0)return!1;switch(typeof n){case"function":case"symbol":return!0;case"boolean":return l?!1:o!==null?!o.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function C(e,n,o,l){if(n===null||typeof n>"u"||S(e,n,o,l))return!0;if(l)return!1;if(o!==null)switch(o.type){case 3:return!n;case 4:return n===!1;case 5:return isNaN(n);case 6:return isNaN(n)||1>n}return!1}function _(e,n,o,l,a,f,g){this.acceptsBooleans=n===2||n===3||n===4,this.attributeName=l,this.attributeNamespace=a,this.mustUseProperty=o,this.propertyName=e,this.type=n,this.sanitizeURL=f,this.removeEmptyString=g}var x={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){x[e]=new _(e,0,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var n=e[0];x[n]=new _(n,1,!1,e[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){x[e]=new _(e,2,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){x[e]=new _(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){x[e]=new _(e,3,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){x[e]=new _(e,3,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){x[e]=new _(e,4,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){x[e]=new _(e,6,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){x[e]=new _(e,5,!1,e.toLowerCase(),null,!1,!1)});var M=/[\-:]([a-z])/g;function F(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 n=e.replace(M,F);x[n]=new _(n,1,!1,e,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var n=e.replace(M,F);x[n]=new _(n,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var n=e.replace(M,F);x[n]=new _(n,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){x[e]=new _(e,1,!1,e.toLowerCase(),null,!1,!1)}),x.xlinkHref=new _("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){x[e]=new _(e,1,!1,e.toLowerCase(),null,!0,!0)});function O(e,n,o,l){var a=x.hasOwnProperty(n)?x[n]:null;(a!==null?a.type!==0:l||!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(C(n,o,a,l)&&(o=null),l||a===null?w(n)&&(o===null?e.removeAttribute(n):e.setAttribute(n,""+o)):a.mustUseProperty?e[a.propertyName]=o===null?a.type===3?!1:"":o:(n=a.attributeName,l=a.attributeNamespace,o===null?e.removeAttribute(n):(a=a.type,o=a===3||a===4&&o===!0?"":""+o,l?e.setAttributeNS(l,n,o):e.setAttribute(n,o))))}var z=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,j=Symbol.for("react.element"),U=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),B=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),re=Symbol.for("react.provider"),oe=Symbol.for("react.context"),ie=Symbol.for("react.forward_ref"),ke=Symbol.for("react.suspense"),Re=Symbol.for("react.suspense_list"),De=Symbol.for("react.memo"),Ne=Symbol.for("react.lazy"),he=Symbol.for("react.offscreen"),G=Symbol.iterator;function b(e){return e===null||typeof e!="object"?null:(e=G&&e[G]||e["@@iterator"],typeof e=="function"?e:null)}var K=Object.assign,E;function D(e){if(E===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);E=n&&n[1]||""}return`
34
+ `+E+e}var ce=!1;function fe(e,n){if(!e||ce)return"";ce=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(n)if(n=function(){throw Error()},Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(n,[])}catch(T){var l=T}Reflect.construct(e,[],n)}else{try{n.call()}catch(T){l=T}e.call(n.prototype)}else{try{throw Error()}catch(T){l=T}e()}}catch(T){if(T&&l&&typeof T.stack=="string"){for(var a=T.stack.split(`
35
+ `),f=l.stack.split(`
36
+ `),g=a.length-1,R=f.length-1;1<=g&&0<=R&&a[g]!==f[R];)R--;for(;1<=g&&0<=R;g--,R--)if(a[g]!==f[R]){if(g!==1||R!==1)do if(g--,R--,0>R||a[g]!==f[R]){var P=`
37
+ `+a[g].replace(" at new "," at ");return e.displayName&&P.includes("<anonymous>")&&(P=P.replace("<anonymous>",e.displayName)),P}while(1<=g&&0<=R);break}}}finally{ce=!1,Error.prepareStackTrace=o}return(e=e?e.displayName||e.name:"")?D(e):""}function se(e){switch(e.tag){case 5:return D(e.type);case 16:return D("Lazy");case 13:return D("Suspense");case 19:return D("SuspenseList");case 0:case 2:case 15:return e=fe(e.type,!1),e;case 11:return e=fe(e.type.render,!1),e;case 1:return e=fe(e.type,!0),e;default:return""}}function pe(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 A:return"Fragment";case U:return"Portal";case W:return"Profiler";case B:return"StrictMode";case ke:return"Suspense";case Re:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case oe:return(e.displayName||"Context")+".Consumer";case re:return(e._context.displayName||"Context")+".Provider";case ie:var n=e.render;return e=e.displayName,e||(e=n.displayName||n.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case De:return n=e.displayName||null,n!==null?n:pe(e.type)||"Memo";case Ne:n=e._payload,e=e._init;try{return pe(e(n))}catch{}}return null}function Se(e){var n=e.type;switch(e.tag){case 24:return"Cache";case 9:return(n.displayName||"Context")+".Consumer";case 10:return(n._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=n.render,e=e.displayName||e.name||"",n.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return pe(n);case 8:return n===B?"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 n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n}return null}function ge(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function ye(e){var n=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function He(e){var n=ye(e)?"checked":"value",o=Object.getOwnPropertyDescriptor(e.constructor.prototype,n),l=""+e[n];if(!e.hasOwnProperty(n)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var a=o.get,f=o.set;return Object.defineProperty(e,n,{configurable:!0,get:function(){return a.call(this)},set:function(g){l=""+g,f.call(this,g)}}),Object.defineProperty(e,n,{enumerable:o.enumerable}),{getValue:function(){return l},setValue:function(g){l=""+g},stopTracking:function(){e._valueTracker=null,delete e[n]}}}}function At(e){e._valueTracker||(e._valueTracker=He(e))}function Pn(e){if(!e)return!1;var n=e._valueTracker;if(!n)return!0;var o=n.getValue(),l="";return e&&(l=ye(e)?e.checked?"true":"false":e.value),e=l,e!==o?(n.setValue(e),!0):!1}function xn(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 qn(e,n){var o=n.checked;return K({},n,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:o??e._wrapperState.initialChecked})}function Fo(e,n){var o=n.defaultValue==null?"":n.defaultValue,l=n.checked!=null?n.checked:n.defaultChecked;o=ge(n.value!=null?n.value:o),e._wrapperState={initialChecked:l,initialValue:o,controlled:n.type==="checkbox"||n.type==="radio"?n.checked!=null:n.value!=null}}function Mr(e,n){n=n.checked,n!=null&&O(e,"checked",n,!1)}function Xn(e,n){Mr(e,n);var o=ge(n.value),l=n.type;if(o!=null)l==="number"?(o===0&&e.value===""||e.value!=o)&&(e.value=""+o):e.value!==""+o&&(e.value=""+o);else if(l==="submit"||l==="reset"){e.removeAttribute("value");return}n.hasOwnProperty("value")?kn(e,n.type,o):n.hasOwnProperty("defaultValue")&&kn(e,n.type,ge(n.defaultValue)),n.checked==null&&n.defaultChecked!=null&&(e.defaultChecked=!!n.defaultChecked)}function Vt(e,n,o){if(n.hasOwnProperty("value")||n.hasOwnProperty("defaultValue")){var l=n.type;if(!(l!=="submit"&&l!=="reset"||n.value!==void 0&&n.value!==null))return;n=""+e._wrapperState.initialValue,o||n===e.value||(e.value=n),e.defaultValue=n}o=e.name,o!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,o!==""&&(e.name=o)}function kn(e,n,o){(n!=="number"||xn(e.ownerDocument)!==e)&&(o==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+o&&(e.defaultValue=""+o))}var ut=Array.isArray;function Jt(e,n,o,l){if(e=e.options,n){n={};for(var a=0;a<o.length;a++)n["$"+o[a]]=!0;for(o=0;o<e.length;o++)a=n.hasOwnProperty("$"+e[o].value),e[o].selected!==a&&(e[o].selected=a),a&&l&&(e[o].defaultSelected=!0)}else{for(o=""+ge(o),n=null,a=0;a<e.length;a++){if(e[a].value===o){e[a].selected=!0,l&&(e[a].defaultSelected=!0);return}n!==null||e[a].disabled||(n=e[a])}n!==null&&(n.selected=!0)}}function Yn(e,n){if(n.dangerouslySetInnerHTML!=null)throw Error(r(91));return K({},n,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function To(e,n){var o=n.value;if(o==null){if(o=n.children,n=n.defaultValue,o!=null){if(n!=null)throw Error(r(92));if(ut(o)){if(1<o.length)throw Error(r(93));o=o[0]}n=o}n==null&&(n=""),o=n}e._wrapperState={initialValue:ge(o)}}function Lr(e,n){var o=ge(n.value),l=ge(n.defaultValue);o!=null&&(o=""+o,o!==e.value&&(e.value=o),n.defaultValue==null&&e.defaultValue!==o&&(e.defaultValue=o)),l!=null&&(e.defaultValue=""+l)}function Ce(e){var n=e.textContent;n===e._wrapperState.initialValue&&n!==""&&n!==null&&(e.value=n)}function Ue(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 Rt(e,n){return e==null||e==="http://www.w3.org/1999/xhtml"?Ue(n):e==="http://www.w3.org/2000/svg"&&n==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var Jn,Ku=(function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(n,o,l,a){MSApp.execUnsafeLocalFunction(function(){return e(n,o,l,a)})}:e})(function(e,n){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=n;else{for(Jn=Jn||document.createElement("div"),Jn.innerHTML="<svg>"+n.valueOf().toString()+"</svg>",n=Jn.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild)}});function Ir(e,n){if(n){var o=e.firstChild;if(o&&o===e.lastChild&&o.nodeType===3){o.nodeValue=n;return}}e.textContent=n}var Fr={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},vh=["Webkit","ms","Moz","O"];Object.keys(Fr).forEach(function(e){vh.forEach(function(n){n=n+e.charAt(0).toUpperCase()+e.substring(1),Fr[n]=Fr[e]})});function qu(e,n,o){return n==null||typeof n=="boolean"||n===""?"":o||typeof n!="number"||n===0||Fr.hasOwnProperty(e)&&Fr[e]?(""+n).trim():n+"px"}function Xu(e,n){e=e.style;for(var o in n)if(n.hasOwnProperty(o)){var l=o.indexOf("--")===0,a=qu(o,n[o],l);o==="float"&&(o="cssFloat"),l?e.setProperty(o,a):e[o]=a}}var yh=K({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 as(e,n){if(n){if(yh[e]&&(n.children!=null||n.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(n.dangerouslySetInnerHTML!=null){if(n.children!=null)throw Error(r(60));if(typeof n.dangerouslySetInnerHTML!="object"||!("__html"in n.dangerouslySetInnerHTML))throw Error(r(61))}if(n.style!=null&&typeof n.style!="object")throw Error(r(62))}}function cs(e,n){if(e.indexOf("-")===-1)return typeof n.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 fs=null;function ds(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var hs=null,Zn=null,bn=null;function Yu(e){if(e=br(e)){if(typeof hs!="function")throw Error(r(280));var n=e.stateNode;n&&(n=ti(n),hs(e.stateNode,e.type,n))}}function Ju(e){Zn?bn?bn.push(e):bn=[e]:Zn=e}function Zu(){if(Zn){var e=Zn,n=bn;if(bn=Zn=null,Yu(e),n)for(e=0;e<n.length;e++)Yu(n[e])}}function bu(e,n){return e(n)}function ea(){}var ps=!1;function ta(e,n,o){if(ps)return e(n,o);ps=!0;try{return bu(e,n,o)}finally{ps=!1,(Zn!==null||bn!==null)&&(ea(),Zu())}}function Tr(e,n){var o=e.stateNode;if(o===null)return null;var l=ti(o);if(l===null)return null;o=l[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(l=!l.disabled)||(e=e.type,l=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!l;break e;default:e=!1}if(e)return null;if(o&&typeof o!="function")throw Error(r(231,n,typeof o));return o}var gs=!1;if(p)try{var Or={};Object.defineProperty(Or,"passive",{get:function(){gs=!0}}),window.addEventListener("test",Or,Or),window.removeEventListener("test",Or,Or)}catch{gs=!1}function Sh(e,n,o,l,a,f,g,R,P){var T=Array.prototype.slice.call(arguments,3);try{n.apply(o,T)}catch($){this.onError($)}}var Dr=!1,Oo=null,Do=!1,ms=null,wh={onError:function(e){Dr=!0,Oo=e}};function Ch(e,n,o,l,a,f,g,R,P){Dr=!1,Oo=null,Sh.apply(wh,arguments)}function Rh(e,n,o,l,a,f,g,R,P){if(Ch.apply(this,arguments),Dr){if(Dr){var T=Oo;Dr=!1,Oo=null}else throw Error(r(198));Do||(Do=!0,ms=T)}}function En(e){var n=e,o=e;if(e.alternate)for(;n.return;)n=n.return;else{e=n;do n=e,(n.flags&4098)!==0&&(o=n.return),e=n.return;while(e)}return n.tag===3?o:null}function na(e){if(e.tag===13){var n=e.memoizedState;if(n===null&&(e=e.alternate,e!==null&&(n=e.memoizedState)),n!==null)return n.dehydrated}return null}function ra(e){if(En(e)!==e)throw Error(r(188))}function _h(e){var n=e.alternate;if(!n){if(n=En(e),n===null)throw Error(r(188));return n!==e?null:e}for(var o=e,l=n;;){var a=o.return;if(a===null)break;var f=a.alternate;if(f===null){if(l=a.return,l!==null){o=l;continue}break}if(a.child===f.child){for(f=a.child;f;){if(f===o)return ra(a),e;if(f===l)return ra(a),n;f=f.sibling}throw Error(r(188))}if(o.return!==l.return)o=a,l=f;else{for(var g=!1,R=a.child;R;){if(R===o){g=!0,o=a,l=f;break}if(R===l){g=!0,l=a,o=f;break}R=R.sibling}if(!g){for(R=f.child;R;){if(R===o){g=!0,o=f,l=a;break}if(R===l){g=!0,l=f,o=a;break}R=R.sibling}if(!g)throw Error(r(189))}}if(o.alternate!==l)throw Error(r(190))}if(o.tag!==3)throw Error(r(188));return o.stateNode.current===o?e:n}function oa(e){return e=_h(e),e!==null?ia(e):null}function ia(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var n=ia(e);if(n!==null)return n;e=e.sibling}return null}var sa=i.unstable_scheduleCallback,la=i.unstable_cancelCallback,Ph=i.unstable_shouldYield,xh=i.unstable_requestPaint,Te=i.unstable_now,kh=i.unstable_getCurrentPriorityLevel,vs=i.unstable_ImmediatePriority,ua=i.unstable_UserBlockingPriority,zo=i.unstable_NormalPriority,Eh=i.unstable_LowPriority,aa=i.unstable_IdlePriority,No=null,Tt=null;function Mh(e){if(Tt&&typeof Tt.onCommitFiberRoot=="function")try{Tt.onCommitFiberRoot(No,e,void 0,(e.current.flags&128)===128)}catch{}}var _t=Math.clz32?Math.clz32:Fh,Lh=Math.log,Ih=Math.LN2;function Fh(e){return e>>>=0,e===0?32:31-(Lh(e)/Ih|0)|0}var $o=64,Ao=4194304;function zr(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 Vo(e,n){var o=e.pendingLanes;if(o===0)return 0;var l=0,a=e.suspendedLanes,f=e.pingedLanes,g=o&268435455;if(g!==0){var R=g&~a;R!==0?l=zr(R):(f&=g,f!==0&&(l=zr(f)))}else g=o&~a,g!==0?l=zr(g):f!==0&&(l=zr(f));if(l===0)return 0;if(n!==0&&n!==l&&(n&a)===0&&(a=l&-l,f=n&-n,a>=f||a===16&&(f&4194240)!==0))return n;if((l&4)!==0&&(l|=o&16),n=e.entangledLanes,n!==0)for(e=e.entanglements,n&=l;0<n;)o=31-_t(n),a=1<<o,l|=e[o],n&=~a;return l}function Th(e,n){switch(e){case 1:case 2:case 4:return n+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 n+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 Oh(e,n){for(var o=e.suspendedLanes,l=e.pingedLanes,a=e.expirationTimes,f=e.pendingLanes;0<f;){var g=31-_t(f),R=1<<g,P=a[g];P===-1?((R&o)===0||(R&l)!==0)&&(a[g]=Th(R,n)):P<=n&&(e.expiredLanes|=R),f&=~R}}function ys(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function ca(){var e=$o;return $o<<=1,($o&4194240)===0&&($o=64),e}function Ss(e){for(var n=[],o=0;31>o;o++)n.push(e);return n}function Nr(e,n,o){e.pendingLanes|=n,n!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,n=31-_t(n),e[n]=o}function Dh(e,n){var o=e.pendingLanes&~n;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=n,e.mutableReadLanes&=n,e.entangledLanes&=n,n=e.entanglements;var l=e.eventTimes;for(e=e.expirationTimes;0<o;){var a=31-_t(o),f=1<<a;n[a]=0,l[a]=-1,e[a]=-1,o&=~f}}function ws(e,n){var o=e.entangledLanes|=n;for(e=e.entanglements;o;){var l=31-_t(o),a=1<<l;a&n|e[l]&n&&(e[l]|=n),o&=~a}}var we=0;function fa(e){return e&=-e,1<e?4<e?(e&268435455)!==0?16:536870912:4:1}var da,Cs,ha,pa,ga,Rs=!1,jo=[],Zt=null,bt=null,en=null,$r=new Map,Ar=new Map,tn=[],zh="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 ma(e,n){switch(e){case"focusin":case"focusout":Zt=null;break;case"dragenter":case"dragleave":bt=null;break;case"mouseover":case"mouseout":en=null;break;case"pointerover":case"pointerout":$r.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ar.delete(n.pointerId)}}function Vr(e,n,o,l,a,f){return e===null||e.nativeEvent!==f?(e={blockedOn:n,domEventName:o,eventSystemFlags:l,nativeEvent:f,targetContainers:[a]},n!==null&&(n=br(n),n!==null&&Cs(n)),e):(e.eventSystemFlags|=l,n=e.targetContainers,a!==null&&n.indexOf(a)===-1&&n.push(a),e)}function Nh(e,n,o,l,a){switch(n){case"focusin":return Zt=Vr(Zt,e,n,o,l,a),!0;case"dragenter":return bt=Vr(bt,e,n,o,l,a),!0;case"mouseover":return en=Vr(en,e,n,o,l,a),!0;case"pointerover":var f=a.pointerId;return $r.set(f,Vr($r.get(f)||null,e,n,o,l,a)),!0;case"gotpointercapture":return f=a.pointerId,Ar.set(f,Vr(Ar.get(f)||null,e,n,o,l,a)),!0}return!1}function va(e){var n=Mn(e.target);if(n!==null){var o=En(n);if(o!==null){if(n=o.tag,n===13){if(n=na(o),n!==null){e.blockedOn=n,ga(e.priority,function(){ha(o)});return}}else if(n===3&&o.stateNode.current.memoizedState.isDehydrated){e.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Bo(e){if(e.blockedOn!==null)return!1;for(var n=e.targetContainers;0<n.length;){var o=Ps(e.domEventName,e.eventSystemFlags,n[0],e.nativeEvent);if(o===null){o=e.nativeEvent;var l=new o.constructor(o.type,o);fs=l,o.target.dispatchEvent(l),fs=null}else return n=br(o),n!==null&&Cs(n),e.blockedOn=o,!1;n.shift()}return!0}function ya(e,n,o){Bo(e)&&o.delete(n)}function $h(){Rs=!1,Zt!==null&&Bo(Zt)&&(Zt=null),bt!==null&&Bo(bt)&&(bt=null),en!==null&&Bo(en)&&(en=null),$r.forEach(ya),Ar.forEach(ya)}function jr(e,n){e.blockedOn===n&&(e.blockedOn=null,Rs||(Rs=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,$h)))}function Br(e){function n(a){return jr(a,e)}if(0<jo.length){jr(jo[0],e);for(var o=1;o<jo.length;o++){var l=jo[o];l.blockedOn===e&&(l.blockedOn=null)}}for(Zt!==null&&jr(Zt,e),bt!==null&&jr(bt,e),en!==null&&jr(en,e),$r.forEach(n),Ar.forEach(n),o=0;o<tn.length;o++)l=tn[o],l.blockedOn===e&&(l.blockedOn=null);for(;0<tn.length&&(o=tn[0],o.blockedOn===null);)va(o),o.blockedOn===null&&tn.shift()}var er=z.ReactCurrentBatchConfig,Ho=!0;function Ah(e,n,o,l){var a=we,f=er.transition;er.transition=null;try{we=1,_s(e,n,o,l)}finally{we=a,er.transition=f}}function Vh(e,n,o,l){var a=we,f=er.transition;er.transition=null;try{we=4,_s(e,n,o,l)}finally{we=a,er.transition=f}}function _s(e,n,o,l){if(Ho){var a=Ps(e,n,o,l);if(a===null)Bs(e,n,l,Uo,o),ma(e,l);else if(Nh(a,e,n,o,l))l.stopPropagation();else if(ma(e,l),n&4&&-1<zh.indexOf(e)){for(;a!==null;){var f=br(a);if(f!==null&&da(f),f=Ps(e,n,o,l),f===null&&Bs(e,n,l,Uo,o),f===a)break;a=f}a!==null&&l.stopPropagation()}else Bs(e,n,l,null,o)}}var Uo=null;function Ps(e,n,o,l){if(Uo=null,e=ds(l),e=Mn(e),e!==null)if(n=En(e),n===null)e=null;else if(o=n.tag,o===13){if(e=na(n),e!==null)return e;e=null}else if(o===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;e=null}else n!==e&&(e=null);return Uo=e,null}function Sa(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(kh()){case vs:return 1;case ua:return 4;case zo:case Eh:return 16;case aa:return 536870912;default:return 16}default:return 16}}var nn=null,xs=null,Go=null;function wa(){if(Go)return Go;var e,n=xs,o=n.length,l,a="value"in nn?nn.value:nn.textContent,f=a.length;for(e=0;e<o&&n[e]===a[e];e++);var g=o-e;for(l=1;l<=g&&n[o-l]===a[f-l];l++);return Go=a.slice(e,1<l?1-l:void 0)}function Wo(e){var n=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&n===13&&(e=13)):e=n,e===10&&(e=13),32<=e||e===13?e:0}function Qo(){return!0}function Ca(){return!1}function at(e){function n(o,l,a,f,g){this._reactName=o,this._targetInst=a,this.type=l,this.nativeEvent=f,this.target=g,this.currentTarget=null;for(var R in e)e.hasOwnProperty(R)&&(o=e[R],this[R]=o?o(f):f[R]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Qo:Ca,this.isPropagationStopped=Ca,this}return K(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Qo)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Qo)},persist:function(){},isPersistent:Qo}),n}var tr={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ks=at(tr),Hr=K({},tr,{view:0,detail:0}),jh=at(Hr),Es,Ms,Ur,Ko=K({},Hr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Is,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!==Ur&&(Ur&&e.type==="mousemove"?(Es=e.screenX-Ur.screenX,Ms=e.screenY-Ur.screenY):Ms=Es=0,Ur=e),Es)},movementY:function(e){return"movementY"in e?e.movementY:Ms}}),Ra=at(Ko),Bh=K({},Ko,{dataTransfer:0}),Hh=at(Bh),Uh=K({},Hr,{relatedTarget:0}),Ls=at(Uh),Gh=K({},tr,{animationName:0,elapsedTime:0,pseudoElement:0}),Wh=at(Gh),Qh=K({},tr,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Kh=at(Qh),qh=K({},tr,{data:0}),_a=at(qh),Xh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Yh={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"},Jh={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zh(e){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(e):(e=Jh[e])?!!n[e]:!1}function Is(){return Zh}var bh=K({},Hr,{key:function(e){if(e.key){var n=Xh[e.key]||e.key;if(n!=="Unidentified")return n}return e.type==="keypress"?(e=Wo(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Yh[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Is,charCode:function(e){return e.type==="keypress"?Wo(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wo(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),ep=at(bh),tp=K({},Ko,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Pa=at(tp),np=K({},Hr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Is}),rp=at(np),op=K({},tr,{propertyName:0,elapsedTime:0,pseudoElement:0}),ip=at(op),sp=K({},Ko,{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}),lp=at(sp),up=[9,13,27,32],Fs=p&&"CompositionEvent"in window,Gr=null;p&&"documentMode"in document&&(Gr=document.documentMode);var ap=p&&"TextEvent"in window&&!Gr,xa=p&&(!Fs||Gr&&8<Gr&&11>=Gr),ka=" ",Ea=!1;function Ma(e,n){switch(e){case"keyup":return up.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function La(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var nr=!1;function cp(e,n){switch(e){case"compositionend":return La(n);case"keypress":return n.which!==32?null:(Ea=!0,ka);case"textInput":return e=n.data,e===ka&&Ea?null:e;default:return null}}function fp(e,n){if(nr)return e==="compositionend"||!Fs&&Ma(e,n)?(e=wa(),Go=xs=nn=null,nr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return xa&&n.locale!=="ko"?null:n.data;default:return null}}var dp={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 Ia(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n==="input"?!!dp[e.type]:n==="textarea"}function Fa(e,n,o,l){Ju(l),n=Zo(n,"onChange"),0<n.length&&(o=new ks("onChange","change",null,o,l),e.push({event:o,listeners:n}))}var Wr=null,Qr=null;function hp(e){Xa(e,0)}function qo(e){var n=lr(e);if(Pn(n))return e}function pp(e,n){if(e==="change")return n}var Ta=!1;if(p){var Ts;if(p){var Os="oninput"in document;if(!Os){var Oa=document.createElement("div");Oa.setAttribute("oninput","return;"),Os=typeof Oa.oninput=="function"}Ts=Os}else Ts=!1;Ta=Ts&&(!document.documentMode||9<document.documentMode)}function Da(){Wr&&(Wr.detachEvent("onpropertychange",za),Qr=Wr=null)}function za(e){if(e.propertyName==="value"&&qo(Qr)){var n=[];Fa(n,Qr,e,ds(e)),ta(hp,n)}}function gp(e,n,o){e==="focusin"?(Da(),Wr=n,Qr=o,Wr.attachEvent("onpropertychange",za)):e==="focusout"&&Da()}function mp(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return qo(Qr)}function vp(e,n){if(e==="click")return qo(n)}function yp(e,n){if(e==="input"||e==="change")return qo(n)}function Sp(e,n){return e===n&&(e!==0||1/e===1/n)||e!==e&&n!==n}var Pt=typeof Object.is=="function"?Object.is:Sp;function Kr(e,n){if(Pt(e,n))return!0;if(typeof e!="object"||e===null||typeof n!="object"||n===null)return!1;var o=Object.keys(e),l=Object.keys(n);if(o.length!==l.length)return!1;for(l=0;l<o.length;l++){var a=o[l];if(!h.call(n,a)||!Pt(e[a],n[a]))return!1}return!0}function Na(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function $a(e,n){var o=Na(e);e=0;for(var l;o;){if(o.nodeType===3){if(l=e+o.textContent.length,e<=n&&l>=n)return{node:o,offset:n-e};e=l}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Na(o)}}function Aa(e,n){return e&&n?e===n?!0:e&&e.nodeType===3?!1:n&&n.nodeType===3?Aa(e,n.parentNode):"contains"in e?e.contains(n):e.compareDocumentPosition?!!(e.compareDocumentPosition(n)&16):!1:!1}function Va(){for(var e=window,n=xn();n instanceof e.HTMLIFrameElement;){try{var o=typeof n.contentWindow.location.href=="string"}catch{o=!1}if(o)e=n.contentWindow;else break;n=xn(e.document)}return n}function Ds(e){var n=e&&e.nodeName&&e.nodeName.toLowerCase();return n&&(n==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||n==="textarea"||e.contentEditable==="true")}function wp(e){var n=Va(),o=e.focusedElem,l=e.selectionRange;if(n!==o&&o&&o.ownerDocument&&Aa(o.ownerDocument.documentElement,o)){if(l!==null&&Ds(o)){if(n=l.start,e=l.end,e===void 0&&(e=n),"selectionStart"in o)o.selectionStart=n,o.selectionEnd=Math.min(e,o.value.length);else if(e=(n=o.ownerDocument||document)&&n.defaultView||window,e.getSelection){e=e.getSelection();var a=o.textContent.length,f=Math.min(l.start,a);l=l.end===void 0?f:Math.min(l.end,a),!e.extend&&f>l&&(a=l,l=f,f=a),a=$a(o,f);var g=$a(o,l);a&&g&&(e.rangeCount!==1||e.anchorNode!==a.node||e.anchorOffset!==a.offset||e.focusNode!==g.node||e.focusOffset!==g.offset)&&(n=n.createRange(),n.setStart(a.node,a.offset),e.removeAllRanges(),f>l?(e.addRange(n),e.extend(g.node,g.offset)):(n.setEnd(g.node,g.offset),e.addRange(n)))}}for(n=[],e=o;e=e.parentNode;)e.nodeType===1&&n.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<n.length;o++)e=n[o],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Cp=p&&"documentMode"in document&&11>=document.documentMode,rr=null,zs=null,qr=null,Ns=!1;function ja(e,n,o){var l=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Ns||rr==null||rr!==xn(l)||(l=rr,"selectionStart"in l&&Ds(l)?l={start:l.selectionStart,end:l.selectionEnd}:(l=(l.ownerDocument&&l.ownerDocument.defaultView||window).getSelection(),l={anchorNode:l.anchorNode,anchorOffset:l.anchorOffset,focusNode:l.focusNode,focusOffset:l.focusOffset}),qr&&Kr(qr,l)||(qr=l,l=Zo(zs,"onSelect"),0<l.length&&(n=new ks("onSelect","select",null,n,o),e.push({event:n,listeners:l}),n.target=rr)))}function Xo(e,n){var o={};return o[e.toLowerCase()]=n.toLowerCase(),o["Webkit"+e]="webkit"+n,o["Moz"+e]="moz"+n,o}var or={animationend:Xo("Animation","AnimationEnd"),animationiteration:Xo("Animation","AnimationIteration"),animationstart:Xo("Animation","AnimationStart"),transitionend:Xo("Transition","TransitionEnd")},$s={},Ba={};p&&(Ba=document.createElement("div").style,"AnimationEvent"in window||(delete or.animationend.animation,delete or.animationiteration.animation,delete or.animationstart.animation),"TransitionEvent"in window||delete or.transitionend.transition);function Yo(e){if($s[e])return $s[e];if(!or[e])return e;var n=or[e],o;for(o in n)if(n.hasOwnProperty(o)&&o in Ba)return $s[e]=n[o];return e}var Ha=Yo("animationend"),Ua=Yo("animationiteration"),Ga=Yo("animationstart"),Wa=Yo("transitionend"),Qa=new Map,Ka="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 rn(e,n){Qa.set(e,n),c(n,[e])}for(var As=0;As<Ka.length;As++){var Vs=Ka[As],Rp=Vs.toLowerCase(),_p=Vs[0].toUpperCase()+Vs.slice(1);rn(Rp,"on"+_p)}rn(Ha,"onAnimationEnd"),rn(Ua,"onAnimationIteration"),rn(Ga,"onAnimationStart"),rn("dblclick","onDoubleClick"),rn("focusin","onFocus"),rn("focusout","onBlur"),rn(Wa,"onTransitionEnd"),d("onMouseEnter",["mouseout","mouseover"]),d("onMouseLeave",["mouseout","mouseover"]),d("onPointerEnter",["pointerout","pointerover"]),d("onPointerLeave",["pointerout","pointerover"]),c("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),c("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),c("onBeforeInput",["compositionend","keypress","textInput","paste"]),c("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),c("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xr="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(" "),Pp=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xr));function qa(e,n,o){var l=e.type||"unknown-event";e.currentTarget=o,Rh(l,n,void 0,e),e.currentTarget=null}function Xa(e,n){n=(n&4)!==0;for(var o=0;o<e.length;o++){var l=e[o],a=l.event;l=l.listeners;e:{var f=void 0;if(n)for(var g=l.length-1;0<=g;g--){var R=l[g],P=R.instance,T=R.currentTarget;if(R=R.listener,P!==f&&a.isPropagationStopped())break e;qa(a,R,T),f=P}else for(g=0;g<l.length;g++){if(R=l[g],P=R.instance,T=R.currentTarget,R=R.listener,P!==f&&a.isPropagationStopped())break e;qa(a,R,T),f=P}}}if(Do)throw e=ms,Do=!1,ms=null,e}function Pe(e,n){var o=n[Ks];o===void 0&&(o=n[Ks]=new Set);var l=e+"__bubble";o.has(l)||(Ya(n,e,2,!1),o.add(l))}function js(e,n,o){var l=0;n&&(l|=4),Ya(o,e,l,n)}var Jo="_reactListening"+Math.random().toString(36).slice(2);function Yr(e){if(!e[Jo]){e[Jo]=!0,s.forEach(function(o){o!=="selectionchange"&&(Pp.has(o)||js(o,!1,e),js(o,!0,e))});var n=e.nodeType===9?e:e.ownerDocument;n===null||n[Jo]||(n[Jo]=!0,js("selectionchange",!1,n))}}function Ya(e,n,o,l){switch(Sa(n)){case 1:var a=Ah;break;case 4:a=Vh;break;default:a=_s}o=a.bind(null,n,o,e),a=void 0,!gs||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(a=!0),l?a!==void 0?e.addEventListener(n,o,{capture:!0,passive:a}):e.addEventListener(n,o,!0):a!==void 0?e.addEventListener(n,o,{passive:a}):e.addEventListener(n,o,!1)}function Bs(e,n,o,l,a){var f=l;if((n&1)===0&&(n&2)===0&&l!==null)e:for(;;){if(l===null)return;var g=l.tag;if(g===3||g===4){var R=l.stateNode.containerInfo;if(R===a||R.nodeType===8&&R.parentNode===a)break;if(g===4)for(g=l.return;g!==null;){var P=g.tag;if((P===3||P===4)&&(P=g.stateNode.containerInfo,P===a||P.nodeType===8&&P.parentNode===a))return;g=g.return}for(;R!==null;){if(g=Mn(R),g===null)return;if(P=g.tag,P===5||P===6){l=f=g;continue e}R=R.parentNode}}l=l.return}ta(function(){var T=f,$=ds(o),V=[];e:{var N=Qa.get(e);if(N!==void 0){var Q=ks,X=e;switch(e){case"keypress":if(Wo(o)===0)break e;case"keydown":case"keyup":Q=ep;break;case"focusin":X="focus",Q=Ls;break;case"focusout":X="blur",Q=Ls;break;case"beforeblur":case"afterblur":Q=Ls;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":Q=Ra;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":Q=Hh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":Q=rp;break;case Ha:case Ua:case Ga:Q=Wh;break;case Wa:Q=ip;break;case"scroll":Q=jh;break;case"wheel":Q=lp;break;case"copy":case"cut":case"paste":Q=Kh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":Q=Pa}var Y=(n&4)!==0,Oe=!Y&&e==="scroll",L=Y?N!==null?N+"Capture":null:N;Y=[];for(var k=T,I;k!==null;){I=k;var H=I.stateNode;if(I.tag===5&&H!==null&&(I=H,L!==null&&(H=Tr(k,L),H!=null&&Y.push(Jr(k,H,I)))),Oe)break;k=k.return}0<Y.length&&(N=new Q(N,X,null,o,$),V.push({event:N,listeners:Y}))}}if((n&7)===0){e:{if(N=e==="mouseover"||e==="pointerover",Q=e==="mouseout"||e==="pointerout",N&&o!==fs&&(X=o.relatedTarget||o.fromElement)&&(Mn(X)||X[jt]))break e;if((Q||N)&&(N=$.window===$?$:(N=$.ownerDocument)?N.defaultView||N.parentWindow:window,Q?(X=o.relatedTarget||o.toElement,Q=T,X=X?Mn(X):null,X!==null&&(Oe=En(X),X!==Oe||X.tag!==5&&X.tag!==6)&&(X=null)):(Q=null,X=T),Q!==X)){if(Y=Ra,H="onMouseLeave",L="onMouseEnter",k="mouse",(e==="pointerout"||e==="pointerover")&&(Y=Pa,H="onPointerLeave",L="onPointerEnter",k="pointer"),Oe=Q==null?N:lr(Q),I=X==null?N:lr(X),N=new Y(H,k+"leave",Q,o,$),N.target=Oe,N.relatedTarget=I,H=null,Mn($)===T&&(Y=new Y(L,k+"enter",X,o,$),Y.target=I,Y.relatedTarget=Oe,H=Y),Oe=H,Q&&X)t:{for(Y=Q,L=X,k=0,I=Y;I;I=ir(I))k++;for(I=0,H=L;H;H=ir(H))I++;for(;0<k-I;)Y=ir(Y),k--;for(;0<I-k;)L=ir(L),I--;for(;k--;){if(Y===L||L!==null&&Y===L.alternate)break t;Y=ir(Y),L=ir(L)}Y=null}else Y=null;Q!==null&&Ja(V,N,Q,Y,!1),X!==null&&Oe!==null&&Ja(V,Oe,X,Y,!0)}}e:{if(N=T?lr(T):window,Q=N.nodeName&&N.nodeName.toLowerCase(),Q==="select"||Q==="input"&&N.type==="file")var J=pp;else if(Ia(N))if(Ta)J=yp;else{J=mp;var ee=gp}else(Q=N.nodeName)&&Q.toLowerCase()==="input"&&(N.type==="checkbox"||N.type==="radio")&&(J=vp);if(J&&(J=J(e,T))){Fa(V,J,o,$);break e}ee&&ee(e,N,T),e==="focusout"&&(ee=N._wrapperState)&&ee.controlled&&N.type==="number"&&kn(N,"number",N.value)}switch(ee=T?lr(T):window,e){case"focusin":(Ia(ee)||ee.contentEditable==="true")&&(rr=ee,zs=T,qr=null);break;case"focusout":qr=zs=rr=null;break;case"mousedown":Ns=!0;break;case"contextmenu":case"mouseup":case"dragend":Ns=!1,ja(V,o,$);break;case"selectionchange":if(Cp)break;case"keydown":case"keyup":ja(V,o,$)}var te;if(Fs)e:{switch(e){case"compositionstart":var ae="onCompositionStart";break e;case"compositionend":ae="onCompositionEnd";break e;case"compositionupdate":ae="onCompositionUpdate";break e}ae=void 0}else nr?Ma(e,o)&&(ae="onCompositionEnd"):e==="keydown"&&o.keyCode===229&&(ae="onCompositionStart");ae&&(xa&&o.locale!=="ko"&&(nr||ae!=="onCompositionStart"?ae==="onCompositionEnd"&&nr&&(te=wa()):(nn=$,xs="value"in nn?nn.value:nn.textContent,nr=!0)),ee=Zo(T,ae),0<ee.length&&(ae=new _a(ae,e,null,o,$),V.push({event:ae,listeners:ee}),te?ae.data=te:(te=La(o),te!==null&&(ae.data=te)))),(te=ap?cp(e,o):fp(e,o))&&(T=Zo(T,"onBeforeInput"),0<T.length&&($=new _a("onBeforeInput","beforeinput",null,o,$),V.push({event:$,listeners:T}),$.data=te))}Xa(V,n)})}function Jr(e,n,o){return{instance:e,listener:n,currentTarget:o}}function Zo(e,n){for(var o=n+"Capture",l=[];e!==null;){var a=e,f=a.stateNode;a.tag===5&&f!==null&&(a=f,f=Tr(e,o),f!=null&&l.unshift(Jr(e,f,a)),f=Tr(e,n),f!=null&&l.push(Jr(e,f,a))),e=e.return}return l}function ir(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Ja(e,n,o,l,a){for(var f=n._reactName,g=[];o!==null&&o!==l;){var R=o,P=R.alternate,T=R.stateNode;if(P!==null&&P===l)break;R.tag===5&&T!==null&&(R=T,a?(P=Tr(o,f),P!=null&&g.unshift(Jr(o,P,R))):a||(P=Tr(o,f),P!=null&&g.push(Jr(o,P,R)))),o=o.return}g.length!==0&&e.push({event:n,listeners:g})}var xp=/\r\n?/g,kp=/\u0000|\uFFFD/g;function Za(e){return(typeof e=="string"?e:""+e).replace(xp,`
38
+ `).replace(kp,"")}function bo(e,n,o){if(n=Za(n),Za(e)!==n&&o)throw Error(r(425))}function ei(){}var Hs=null,Us=null;function Gs(e,n){return e==="textarea"||e==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}var Ws=typeof setTimeout=="function"?setTimeout:void 0,Ep=typeof clearTimeout=="function"?clearTimeout:void 0,ba=typeof Promise=="function"?Promise:void 0,Mp=typeof queueMicrotask=="function"?queueMicrotask:typeof ba<"u"?function(e){return ba.resolve(null).then(e).catch(Lp)}:Ws;function Lp(e){setTimeout(function(){throw e})}function Qs(e,n){var o=n,l=0;do{var a=o.nextSibling;if(e.removeChild(o),a&&a.nodeType===8)if(o=a.data,o==="/$"){if(l===0){e.removeChild(a),Br(n);return}l--}else o!=="$"&&o!=="$?"&&o!=="$!"||l++;o=a}while(o);Br(n)}function on(e){for(;e!=null;e=e.nextSibling){var n=e.nodeType;if(n===1||n===3)break;if(n===8){if(n=e.data,n==="$"||n==="$!"||n==="$?")break;if(n==="/$")return null}}return e}function ec(e){e=e.previousSibling;for(var n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="$"||o==="$!"||o==="$?"){if(n===0)return e;n--}else o==="/$"&&n++}e=e.previousSibling}return null}var sr=Math.random().toString(36).slice(2),Ot="__reactFiber$"+sr,Zr="__reactProps$"+sr,jt="__reactContainer$"+sr,Ks="__reactEvents$"+sr,Ip="__reactListeners$"+sr,Fp="__reactHandles$"+sr;function Mn(e){var n=e[Ot];if(n)return n;for(var o=e.parentNode;o;){if(n=o[jt]||o[Ot]){if(o=n.alternate,n.child!==null||o!==null&&o.child!==null)for(e=ec(e);e!==null;){if(o=e[Ot])return o;e=ec(e)}return n}e=o,o=e.parentNode}return null}function br(e){return e=e[Ot]||e[jt],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function lr(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function ti(e){return e[Zr]||null}var qs=[],ur=-1;function sn(e){return{current:e}}function xe(e){0>ur||(e.current=qs[ur],qs[ur]=null,ur--)}function _e(e,n){ur++,qs[ur]=e.current,e.current=n}var ln={},Qe=sn(ln),tt=sn(!1),Ln=ln;function ar(e,n){var o=e.type.contextTypes;if(!o)return ln;var l=e.stateNode;if(l&&l.__reactInternalMemoizedUnmaskedChildContext===n)return l.__reactInternalMemoizedMaskedChildContext;var a={},f;for(f in o)a[f]=n[f];return l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=n,e.__reactInternalMemoizedMaskedChildContext=a),a}function nt(e){return e=e.childContextTypes,e!=null}function ni(){xe(tt),xe(Qe)}function tc(e,n,o){if(Qe.current!==ln)throw Error(r(168));_e(Qe,n),_e(tt,o)}function nc(e,n,o){var l=e.stateNode;if(n=n.childContextTypes,typeof l.getChildContext!="function")return o;l=l.getChildContext();for(var a in l)if(!(a in n))throw Error(r(108,Se(e)||"Unknown",a));return K({},o,l)}function ri(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ln,Ln=Qe.current,_e(Qe,e),_e(tt,tt.current),!0}function rc(e,n,o){var l=e.stateNode;if(!l)throw Error(r(169));o?(e=nc(e,n,Ln),l.__reactInternalMemoizedMergedChildContext=e,xe(tt),xe(Qe),_e(Qe,e)):xe(tt),_e(tt,o)}var Bt=null,oi=!1,Xs=!1;function oc(e){Bt===null?Bt=[e]:Bt.push(e)}function Tp(e){oi=!0,oc(e)}function un(){if(!Xs&&Bt!==null){Xs=!0;var e=0,n=we;try{var o=Bt;for(we=1;e<o.length;e++){var l=o[e];do l=l(!0);while(l!==null)}Bt=null,oi=!1}catch(a){throw Bt!==null&&(Bt=Bt.slice(e+1)),sa(vs,un),a}finally{we=n,Xs=!1}}return null}var cr=[],fr=0,ii=null,si=0,gt=[],mt=0,In=null,Ht=1,Ut="";function Fn(e,n){cr[fr++]=si,cr[fr++]=ii,ii=e,si=n}function ic(e,n,o){gt[mt++]=Ht,gt[mt++]=Ut,gt[mt++]=In,In=e;var l=Ht;e=Ut;var a=32-_t(l)-1;l&=~(1<<a),o+=1;var f=32-_t(n)+a;if(30<f){var g=a-a%5;f=(l&(1<<g)-1).toString(32),l>>=g,a-=g,Ht=1<<32-_t(n)+a|o<<a|l,Ut=f+e}else Ht=1<<f|o<<a|l,Ut=e}function Ys(e){e.return!==null&&(Fn(e,1),ic(e,1,0))}function Js(e){for(;e===ii;)ii=cr[--fr],cr[fr]=null,si=cr[--fr],cr[fr]=null;for(;e===In;)In=gt[--mt],gt[mt]=null,Ut=gt[--mt],gt[mt]=null,Ht=gt[--mt],gt[mt]=null}var ct=null,ft=null,Ee=!1,xt=null;function sc(e,n){var o=wt(5,null,null,0);o.elementType="DELETED",o.stateNode=n,o.return=e,n=e.deletions,n===null?(e.deletions=[o],e.flags|=16):n.push(o)}function lc(e,n){switch(e.tag){case 5:var o=e.type;return n=n.nodeType!==1||o.toLowerCase()!==n.nodeName.toLowerCase()?null:n,n!==null?(e.stateNode=n,ct=e,ft=on(n.firstChild),!0):!1;case 6:return n=e.pendingProps===""||n.nodeType!==3?null:n,n!==null?(e.stateNode=n,ct=e,ft=null,!0):!1;case 13:return n=n.nodeType!==8?null:n,n!==null?(o=In!==null?{id:Ht,overflow:Ut}:null,e.memoizedState={dehydrated:n,treeContext:o,retryLane:1073741824},o=wt(18,null,null,0),o.stateNode=n,o.return=e,e.child=o,ct=e,ft=null,!0):!1;default:return!1}}function Zs(e){return(e.mode&1)!==0&&(e.flags&128)===0}function bs(e){if(Ee){var n=ft;if(n){var o=n;if(!lc(e,n)){if(Zs(e))throw Error(r(418));n=on(o.nextSibling);var l=ct;n&&lc(e,n)?sc(l,o):(e.flags=e.flags&-4097|2,Ee=!1,ct=e)}}else{if(Zs(e))throw Error(r(418));e.flags=e.flags&-4097|2,Ee=!1,ct=e}}}function uc(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;ct=e}function li(e){if(e!==ct)return!1;if(!Ee)return uc(e),Ee=!0,!1;var n;if((n=e.tag!==3)&&!(n=e.tag!==5)&&(n=e.type,n=n!=="head"&&n!=="body"&&!Gs(e.type,e.memoizedProps)),n&&(n=ft)){if(Zs(e))throw ac(),Error(r(418));for(;n;)sc(e,n),n=on(n.nextSibling)}if(uc(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(r(317));e:{for(e=e.nextSibling,n=0;e;){if(e.nodeType===8){var o=e.data;if(o==="/$"){if(n===0){ft=on(e.nextSibling);break e}n--}else o!=="$"&&o!=="$!"&&o!=="$?"||n++}e=e.nextSibling}ft=null}}else ft=ct?on(e.stateNode.nextSibling):null;return!0}function ac(){for(var e=ft;e;)e=on(e.nextSibling)}function dr(){ft=ct=null,Ee=!1}function el(e){xt===null?xt=[e]:xt.push(e)}var Op=z.ReactCurrentBatchConfig;function eo(e,n,o){if(e=o.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(o._owner){if(o=o._owner,o){if(o.tag!==1)throw Error(r(309));var l=o.stateNode}if(!l)throw Error(r(147,e));var a=l,f=""+e;return n!==null&&n.ref!==null&&typeof n.ref=="function"&&n.ref._stringRef===f?n.ref:(n=function(g){var R=a.refs;g===null?delete R[f]:R[f]=g},n._stringRef=f,n)}if(typeof e!="string")throw Error(r(284));if(!o._owner)throw Error(r(290,e))}return e}function ui(e,n){throw e=Object.prototype.toString.call(n),Error(r(31,e==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":e))}function cc(e){var n=e._init;return n(e._payload)}function fc(e){function n(L,k){if(e){var I=L.deletions;I===null?(L.deletions=[k],L.flags|=16):I.push(k)}}function o(L,k){if(!e)return null;for(;k!==null;)n(L,k),k=k.sibling;return null}function l(L,k){for(L=new Map;k!==null;)k.key!==null?L.set(k.key,k):L.set(k.index,k),k=k.sibling;return L}function a(L,k){return L=mn(L,k),L.index=0,L.sibling=null,L}function f(L,k,I){return L.index=I,e?(I=L.alternate,I!==null?(I=I.index,I<k?(L.flags|=2,k):I):(L.flags|=2,k)):(L.flags|=1048576,k)}function g(L){return e&&L.alternate===null&&(L.flags|=2),L}function R(L,k,I,H){return k===null||k.tag!==6?(k=Wl(I,L.mode,H),k.return=L,k):(k=a(k,I),k.return=L,k)}function P(L,k,I,H){var J=I.type;return J===A?$(L,k,I.props.children,H,I.key):k!==null&&(k.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Ne&&cc(J)===k.type)?(H=a(k,I.props),H.ref=eo(L,k,I),H.return=L,H):(H=Ti(I.type,I.key,I.props,null,L.mode,H),H.ref=eo(L,k,I),H.return=L,H)}function T(L,k,I,H){return k===null||k.tag!==4||k.stateNode.containerInfo!==I.containerInfo||k.stateNode.implementation!==I.implementation?(k=Ql(I,L.mode,H),k.return=L,k):(k=a(k,I.children||[]),k.return=L,k)}function $(L,k,I,H,J){return k===null||k.tag!==7?(k=Vn(I,L.mode,H,J),k.return=L,k):(k=a(k,I),k.return=L,k)}function V(L,k,I){if(typeof k=="string"&&k!==""||typeof k=="number")return k=Wl(""+k,L.mode,I),k.return=L,k;if(typeof k=="object"&&k!==null){switch(k.$$typeof){case j:return I=Ti(k.type,k.key,k.props,null,L.mode,I),I.ref=eo(L,null,k),I.return=L,I;case U:return k=Ql(k,L.mode,I),k.return=L,k;case Ne:var H=k._init;return V(L,H(k._payload),I)}if(ut(k)||b(k))return k=Vn(k,L.mode,I,null),k.return=L,k;ui(L,k)}return null}function N(L,k,I,H){var J=k!==null?k.key:null;if(typeof I=="string"&&I!==""||typeof I=="number")return J!==null?null:R(L,k,""+I,H);if(typeof I=="object"&&I!==null){switch(I.$$typeof){case j:return I.key===J?P(L,k,I,H):null;case U:return I.key===J?T(L,k,I,H):null;case Ne:return J=I._init,N(L,k,J(I._payload),H)}if(ut(I)||b(I))return J!==null?null:$(L,k,I,H,null);ui(L,I)}return null}function Q(L,k,I,H,J){if(typeof H=="string"&&H!==""||typeof H=="number")return L=L.get(I)||null,R(k,L,""+H,J);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case j:return L=L.get(H.key===null?I:H.key)||null,P(k,L,H,J);case U:return L=L.get(H.key===null?I:H.key)||null,T(k,L,H,J);case Ne:var ee=H._init;return Q(L,k,I,ee(H._payload),J)}if(ut(H)||b(H))return L=L.get(I)||null,$(k,L,H,J,null);ui(k,H)}return null}function X(L,k,I,H){for(var J=null,ee=null,te=k,ae=k=0,Be=null;te!==null&&ae<I.length;ae++){te.index>ae?(Be=te,te=null):Be=te.sibling;var ve=N(L,te,I[ae],H);if(ve===null){te===null&&(te=Be);break}e&&te&&ve.alternate===null&&n(L,te),k=f(ve,k,ae),ee===null?J=ve:ee.sibling=ve,ee=ve,te=Be}if(ae===I.length)return o(L,te),Ee&&Fn(L,ae),J;if(te===null){for(;ae<I.length;ae++)te=V(L,I[ae],H),te!==null&&(k=f(te,k,ae),ee===null?J=te:ee.sibling=te,ee=te);return Ee&&Fn(L,ae),J}for(te=l(L,te);ae<I.length;ae++)Be=Q(te,L,ae,I[ae],H),Be!==null&&(e&&Be.alternate!==null&&te.delete(Be.key===null?ae:Be.key),k=f(Be,k,ae),ee===null?J=Be:ee.sibling=Be,ee=Be);return e&&te.forEach(function(vn){return n(L,vn)}),Ee&&Fn(L,ae),J}function Y(L,k,I,H){var J=b(I);if(typeof J!="function")throw Error(r(150));if(I=J.call(I),I==null)throw Error(r(151));for(var ee=J=null,te=k,ae=k=0,Be=null,ve=I.next();te!==null&&!ve.done;ae++,ve=I.next()){te.index>ae?(Be=te,te=null):Be=te.sibling;var vn=N(L,te,ve.value,H);if(vn===null){te===null&&(te=Be);break}e&&te&&vn.alternate===null&&n(L,te),k=f(vn,k,ae),ee===null?J=vn:ee.sibling=vn,ee=vn,te=Be}if(ve.done)return o(L,te),Ee&&Fn(L,ae),J;if(te===null){for(;!ve.done;ae++,ve=I.next())ve=V(L,ve.value,H),ve!==null&&(k=f(ve,k,ae),ee===null?J=ve:ee.sibling=ve,ee=ve);return Ee&&Fn(L,ae),J}for(te=l(L,te);!ve.done;ae++,ve=I.next())ve=Q(te,L,ae,ve.value,H),ve!==null&&(e&&ve.alternate!==null&&te.delete(ve.key===null?ae:ve.key),k=f(ve,k,ae),ee===null?J=ve:ee.sibling=ve,ee=ve);return e&&te.forEach(function(dg){return n(L,dg)}),Ee&&Fn(L,ae),J}function Oe(L,k,I,H){if(typeof I=="object"&&I!==null&&I.type===A&&I.key===null&&(I=I.props.children),typeof I=="object"&&I!==null){switch(I.$$typeof){case j:e:{for(var J=I.key,ee=k;ee!==null;){if(ee.key===J){if(J=I.type,J===A){if(ee.tag===7){o(L,ee.sibling),k=a(ee,I.props.children),k.return=L,L=k;break e}}else if(ee.elementType===J||typeof J=="object"&&J!==null&&J.$$typeof===Ne&&cc(J)===ee.type){o(L,ee.sibling),k=a(ee,I.props),k.ref=eo(L,ee,I),k.return=L,L=k;break e}o(L,ee);break}else n(L,ee);ee=ee.sibling}I.type===A?(k=Vn(I.props.children,L.mode,H,I.key),k.return=L,L=k):(H=Ti(I.type,I.key,I.props,null,L.mode,H),H.ref=eo(L,k,I),H.return=L,L=H)}return g(L);case U:e:{for(ee=I.key;k!==null;){if(k.key===ee)if(k.tag===4&&k.stateNode.containerInfo===I.containerInfo&&k.stateNode.implementation===I.implementation){o(L,k.sibling),k=a(k,I.children||[]),k.return=L,L=k;break e}else{o(L,k);break}else n(L,k);k=k.sibling}k=Ql(I,L.mode,H),k.return=L,L=k}return g(L);case Ne:return ee=I._init,Oe(L,k,ee(I._payload),H)}if(ut(I))return X(L,k,I,H);if(b(I))return Y(L,k,I,H);ui(L,I)}return typeof I=="string"&&I!==""||typeof I=="number"?(I=""+I,k!==null&&k.tag===6?(o(L,k.sibling),k=a(k,I),k.return=L,L=k):(o(L,k),k=Wl(I,L.mode,H),k.return=L,L=k),g(L)):o(L,k)}return Oe}var hr=fc(!0),dc=fc(!1),ai=sn(null),ci=null,pr=null,tl=null;function nl(){tl=pr=ci=null}function rl(e){var n=ai.current;xe(ai),e._currentValue=n}function ol(e,n,o){for(;e!==null;){var l=e.alternate;if((e.childLanes&n)!==n?(e.childLanes|=n,l!==null&&(l.childLanes|=n)):l!==null&&(l.childLanes&n)!==n&&(l.childLanes|=n),e===o)break;e=e.return}}function gr(e,n){ci=e,tl=pr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&n)!==0&&(rt=!0),e.firstContext=null)}function vt(e){var n=e._currentValue;if(tl!==e)if(e={context:e,memoizedValue:n,next:null},pr===null){if(ci===null)throw Error(r(308));pr=e,ci.dependencies={lanes:0,firstContext:e}}else pr=pr.next=e;return n}var Tn=null;function il(e){Tn===null?Tn=[e]:Tn.push(e)}function hc(e,n,o,l){var a=n.interleaved;return a===null?(o.next=o,il(n)):(o.next=a.next,a.next=o),n.interleaved=o,Gt(e,l)}function Gt(e,n){e.lanes|=n;var o=e.alternate;for(o!==null&&(o.lanes|=n),o=e,e=e.return;e!==null;)e.childLanes|=n,o=e.alternate,o!==null&&(o.childLanes|=n),o=e,e=e.return;return o.tag===3?o.stateNode:null}var an=!1;function sl(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pc(e,n){e=e.updateQueue,n.updateQueue===e&&(n.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Wt(e,n){return{eventTime:e,lane:n,tag:0,payload:null,callback:null,next:null}}function cn(e,n,o){var l=e.updateQueue;if(l===null)return null;if(l=l.shared,(me&2)!==0){var a=l.pending;return a===null?n.next=n:(n.next=a.next,a.next=n),l.pending=n,Gt(e,o)}return a=l.interleaved,a===null?(n.next=n,il(l)):(n.next=a.next,a.next=n),l.interleaved=n,Gt(e,o)}function fi(e,n,o){if(n=n.updateQueue,n!==null&&(n=n.shared,(o&4194240)!==0)){var l=n.lanes;l&=e.pendingLanes,o|=l,n.lanes=o,ws(e,o)}}function gc(e,n){var o=e.updateQueue,l=e.alternate;if(l!==null&&(l=l.updateQueue,o===l)){var a=null,f=null;if(o=o.firstBaseUpdate,o!==null){do{var g={eventTime:o.eventTime,lane:o.lane,tag:o.tag,payload:o.payload,callback:o.callback,next:null};f===null?a=f=g:f=f.next=g,o=o.next}while(o!==null);f===null?a=f=n:f=f.next=n}else a=f=n;o={baseState:l.baseState,firstBaseUpdate:a,lastBaseUpdate:f,shared:l.shared,effects:l.effects},e.updateQueue=o;return}e=o.lastBaseUpdate,e===null?o.firstBaseUpdate=n:e.next=n,o.lastBaseUpdate=n}function di(e,n,o,l){var a=e.updateQueue;an=!1;var f=a.firstBaseUpdate,g=a.lastBaseUpdate,R=a.shared.pending;if(R!==null){a.shared.pending=null;var P=R,T=P.next;P.next=null,g===null?f=T:g.next=T,g=P;var $=e.alternate;$!==null&&($=$.updateQueue,R=$.lastBaseUpdate,R!==g&&(R===null?$.firstBaseUpdate=T:R.next=T,$.lastBaseUpdate=P))}if(f!==null){var V=a.baseState;g=0,$=T=P=null,R=f;do{var N=R.lane,Q=R.eventTime;if((l&N)===N){$!==null&&($=$.next={eventTime:Q,lane:0,tag:R.tag,payload:R.payload,callback:R.callback,next:null});e:{var X=e,Y=R;switch(N=n,Q=o,Y.tag){case 1:if(X=Y.payload,typeof X=="function"){V=X.call(Q,V,N);break e}V=X;break e;case 3:X.flags=X.flags&-65537|128;case 0:if(X=Y.payload,N=typeof X=="function"?X.call(Q,V,N):X,N==null)break e;V=K({},V,N);break e;case 2:an=!0}}R.callback!==null&&R.lane!==0&&(e.flags|=64,N=a.effects,N===null?a.effects=[R]:N.push(R))}else Q={eventTime:Q,lane:N,tag:R.tag,payload:R.payload,callback:R.callback,next:null},$===null?(T=$=Q,P=V):$=$.next=Q,g|=N;if(R=R.next,R===null){if(R=a.shared.pending,R===null)break;N=R,R=N.next,N.next=null,a.lastBaseUpdate=N,a.shared.pending=null}}while(!0);if($===null&&(P=V),a.baseState=P,a.firstBaseUpdate=T,a.lastBaseUpdate=$,n=a.shared.interleaved,n!==null){a=n;do g|=a.lane,a=a.next;while(a!==n)}else f===null&&(a.shared.lanes=0);zn|=g,e.lanes=g,e.memoizedState=V}}function mc(e,n,o){if(e=n.effects,n.effects=null,e!==null)for(n=0;n<e.length;n++){var l=e[n],a=l.callback;if(a!==null){if(l.callback=null,l=o,typeof a!="function")throw Error(r(191,a));a.call(l)}}}var to={},Dt=sn(to),no=sn(to),ro=sn(to);function On(e){if(e===to)throw Error(r(174));return e}function ll(e,n){switch(_e(ro,n),_e(no,e),_e(Dt,to),e=n.nodeType,e){case 9:case 11:n=(n=n.documentElement)?n.namespaceURI:Rt(null,"");break;default:e=e===8?n.parentNode:n,n=e.namespaceURI||null,e=e.tagName,n=Rt(n,e)}xe(Dt),_e(Dt,n)}function mr(){xe(Dt),xe(no),xe(ro)}function vc(e){On(ro.current);var n=On(Dt.current),o=Rt(n,e.type);n!==o&&(_e(no,e),_e(Dt,o))}function ul(e){no.current===e&&(xe(Dt),xe(no))}var Le=sn(0);function hi(e){for(var n=e;n!==null;){if(n.tag===13){var o=n.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||o.data==="$!"))return n}else if(n.tag===19&&n.memoizedProps.revealOrder!==void 0){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}var al=[];function cl(){for(var e=0;e<al.length;e++)al[e]._workInProgressVersionPrimary=null;al.length=0}var pi=z.ReactCurrentDispatcher,fl=z.ReactCurrentBatchConfig,Dn=0,Ie=null,$e=null,Ve=null,gi=!1,oo=!1,io=0,Dp=0;function Ke(){throw Error(r(321))}function dl(e,n){if(n===null)return!1;for(var o=0;o<n.length&&o<e.length;o++)if(!Pt(e[o],n[o]))return!1;return!0}function hl(e,n,o,l,a,f){if(Dn=f,Ie=n,n.memoizedState=null,n.updateQueue=null,n.lanes=0,pi.current=e===null||e.memoizedState===null?Ap:Vp,e=o(l,a),oo){f=0;do{if(oo=!1,io=0,25<=f)throw Error(r(301));f+=1,Ve=$e=null,n.updateQueue=null,pi.current=jp,e=o(l,a)}while(oo)}if(pi.current=yi,n=$e!==null&&$e.next!==null,Dn=0,Ve=$e=Ie=null,gi=!1,n)throw Error(r(300));return e}function pl(){var e=io!==0;return io=0,e}function zt(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ve===null?Ie.memoizedState=Ve=e:Ve=Ve.next=e,Ve}function yt(){if($e===null){var e=Ie.alternate;e=e!==null?e.memoizedState:null}else e=$e.next;var n=Ve===null?Ie.memoizedState:Ve.next;if(n!==null)Ve=n,$e=e;else{if(e===null)throw Error(r(310));$e=e,e={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},Ve===null?Ie.memoizedState=Ve=e:Ve=Ve.next=e}return Ve}function so(e,n){return typeof n=="function"?n(e):n}function gl(e){var n=yt(),o=n.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=e;var l=$e,a=l.baseQueue,f=o.pending;if(f!==null){if(a!==null){var g=a.next;a.next=f.next,f.next=g}l.baseQueue=a=f,o.pending=null}if(a!==null){f=a.next,l=l.baseState;var R=g=null,P=null,T=f;do{var $=T.lane;if((Dn&$)===$)P!==null&&(P=P.next={lane:0,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null}),l=T.hasEagerState?T.eagerState:e(l,T.action);else{var V={lane:$,action:T.action,hasEagerState:T.hasEagerState,eagerState:T.eagerState,next:null};P===null?(R=P=V,g=l):P=P.next=V,Ie.lanes|=$,zn|=$}T=T.next}while(T!==null&&T!==f);P===null?g=l:P.next=R,Pt(l,n.memoizedState)||(rt=!0),n.memoizedState=l,n.baseState=g,n.baseQueue=P,o.lastRenderedState=l}if(e=o.interleaved,e!==null){a=e;do f=a.lane,Ie.lanes|=f,zn|=f,a=a.next;while(a!==e)}else a===null&&(o.lanes=0);return[n.memoizedState,o.dispatch]}function ml(e){var n=yt(),o=n.queue;if(o===null)throw Error(r(311));o.lastRenderedReducer=e;var l=o.dispatch,a=o.pending,f=n.memoizedState;if(a!==null){o.pending=null;var g=a=a.next;do f=e(f,g.action),g=g.next;while(g!==a);Pt(f,n.memoizedState)||(rt=!0),n.memoizedState=f,n.baseQueue===null&&(n.baseState=f),o.lastRenderedState=f}return[f,l]}function yc(){}function Sc(e,n){var o=Ie,l=yt(),a=n(),f=!Pt(l.memoizedState,a);if(f&&(l.memoizedState=a,rt=!0),l=l.queue,vl(Rc.bind(null,o,l,e),[e]),l.getSnapshot!==n||f||Ve!==null&&Ve.memoizedState.tag&1){if(o.flags|=2048,lo(9,Cc.bind(null,o,l,a,n),void 0,null),je===null)throw Error(r(349));(Dn&30)!==0||wc(o,n,a)}return a}function wc(e,n,o){e.flags|=16384,e={getSnapshot:n,value:o},n=Ie.updateQueue,n===null?(n={lastEffect:null,stores:null},Ie.updateQueue=n,n.stores=[e]):(o=n.stores,o===null?n.stores=[e]:o.push(e))}function Cc(e,n,o,l){n.value=o,n.getSnapshot=l,_c(n)&&Pc(e)}function Rc(e,n,o){return o(function(){_c(n)&&Pc(e)})}function _c(e){var n=e.getSnapshot;e=e.value;try{var o=n();return!Pt(e,o)}catch{return!0}}function Pc(e){var n=Gt(e,1);n!==null&&Lt(n,e,1,-1)}function xc(e){var n=zt();return typeof e=="function"&&(e=e()),n.memoizedState=n.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:so,lastRenderedState:e},n.queue=e,e=e.dispatch=$p.bind(null,Ie,e),[n.memoizedState,e]}function lo(e,n,o,l){return e={tag:e,create:n,destroy:o,deps:l,next:null},n=Ie.updateQueue,n===null?(n={lastEffect:null,stores:null},Ie.updateQueue=n,n.lastEffect=e.next=e):(o=n.lastEffect,o===null?n.lastEffect=e.next=e:(l=o.next,o.next=e,e.next=l,n.lastEffect=e)),e}function kc(){return yt().memoizedState}function mi(e,n,o,l){var a=zt();Ie.flags|=e,a.memoizedState=lo(1|n,o,void 0,l===void 0?null:l)}function vi(e,n,o,l){var a=yt();l=l===void 0?null:l;var f=void 0;if($e!==null){var g=$e.memoizedState;if(f=g.destroy,l!==null&&dl(l,g.deps)){a.memoizedState=lo(n,o,f,l);return}}Ie.flags|=e,a.memoizedState=lo(1|n,o,f,l)}function Ec(e,n){return mi(8390656,8,e,n)}function vl(e,n){return vi(2048,8,e,n)}function Mc(e,n){return vi(4,2,e,n)}function Lc(e,n){return vi(4,4,e,n)}function Ic(e,n){if(typeof n=="function")return e=e(),n(e),function(){n(null)};if(n!=null)return e=e(),n.current=e,function(){n.current=null}}function Fc(e,n,o){return o=o!=null?o.concat([e]):null,vi(4,4,Ic.bind(null,n,e),o)}function yl(){}function Tc(e,n){var o=yt();n=n===void 0?null:n;var l=o.memoizedState;return l!==null&&n!==null&&dl(n,l[1])?l[0]:(o.memoizedState=[e,n],e)}function Oc(e,n){var o=yt();n=n===void 0?null:n;var l=o.memoizedState;return l!==null&&n!==null&&dl(n,l[1])?l[0]:(e=e(),o.memoizedState=[e,n],e)}function Dc(e,n,o){return(Dn&21)===0?(e.baseState&&(e.baseState=!1,rt=!0),e.memoizedState=o):(Pt(o,n)||(o=ca(),Ie.lanes|=o,zn|=o,e.baseState=!0),n)}function zp(e,n){var o=we;we=o!==0&&4>o?o:4,e(!0);var l=fl.transition;fl.transition={};try{e(!1),n()}finally{we=o,fl.transition=l}}function zc(){return yt().memoizedState}function Np(e,n,o){var l=pn(e);if(o={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null},Nc(e))$c(n,o);else if(o=hc(e,n,o,l),o!==null){var a=be();Lt(o,e,l,a),Ac(o,n,l)}}function $p(e,n,o){var l=pn(e),a={lane:l,action:o,hasEagerState:!1,eagerState:null,next:null};if(Nc(e))$c(n,a);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=n.lastRenderedReducer,f!==null))try{var g=n.lastRenderedState,R=f(g,o);if(a.hasEagerState=!0,a.eagerState=R,Pt(R,g)){var P=n.interleaved;P===null?(a.next=a,il(n)):(a.next=P.next,P.next=a),n.interleaved=a;return}}catch{}finally{}o=hc(e,n,a,l),o!==null&&(a=be(),Lt(o,e,l,a),Ac(o,n,l))}}function Nc(e){var n=e.alternate;return e===Ie||n!==null&&n===Ie}function $c(e,n){oo=gi=!0;var o=e.pending;o===null?n.next=n:(n.next=o.next,o.next=n),e.pending=n}function Ac(e,n,o){if((o&4194240)!==0){var l=n.lanes;l&=e.pendingLanes,o|=l,n.lanes=o,ws(e,o)}}var yi={readContext:vt,useCallback:Ke,useContext:Ke,useEffect:Ke,useImperativeHandle:Ke,useInsertionEffect:Ke,useLayoutEffect:Ke,useMemo:Ke,useReducer:Ke,useRef:Ke,useState:Ke,useDebugValue:Ke,useDeferredValue:Ke,useTransition:Ke,useMutableSource:Ke,useSyncExternalStore:Ke,useId:Ke,unstable_isNewReconciler:!1},Ap={readContext:vt,useCallback:function(e,n){return zt().memoizedState=[e,n===void 0?null:n],e},useContext:vt,useEffect:Ec,useImperativeHandle:function(e,n,o){return o=o!=null?o.concat([e]):null,mi(4194308,4,Ic.bind(null,n,e),o)},useLayoutEffect:function(e,n){return mi(4194308,4,e,n)},useInsertionEffect:function(e,n){return mi(4,2,e,n)},useMemo:function(e,n){var o=zt();return n=n===void 0?null:n,e=e(),o.memoizedState=[e,n],e},useReducer:function(e,n,o){var l=zt();return n=o!==void 0?o(n):n,l.memoizedState=l.baseState=n,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},l.queue=e,e=e.dispatch=Np.bind(null,Ie,e),[l.memoizedState,e]},useRef:function(e){var n=zt();return e={current:e},n.memoizedState=e},useState:xc,useDebugValue:yl,useDeferredValue:function(e){return zt().memoizedState=e},useTransition:function(){var e=xc(!1),n=e[0];return e=zp.bind(null,e[1]),zt().memoizedState=e,[n,e]},useMutableSource:function(){},useSyncExternalStore:function(e,n,o){var l=Ie,a=zt();if(Ee){if(o===void 0)throw Error(r(407));o=o()}else{if(o=n(),je===null)throw Error(r(349));(Dn&30)!==0||wc(l,n,o)}a.memoizedState=o;var f={value:o,getSnapshot:n};return a.queue=f,Ec(Rc.bind(null,l,f,e),[e]),l.flags|=2048,lo(9,Cc.bind(null,l,f,o,n),void 0,null),o},useId:function(){var e=zt(),n=je.identifierPrefix;if(Ee){var o=Ut,l=Ht;o=(l&~(1<<32-_t(l)-1)).toString(32)+o,n=":"+n+"R"+o,o=io++,0<o&&(n+="H"+o.toString(32)),n+=":"}else o=Dp++,n=":"+n+"r"+o.toString(32)+":";return e.memoizedState=n},unstable_isNewReconciler:!1},Vp={readContext:vt,useCallback:Tc,useContext:vt,useEffect:vl,useImperativeHandle:Fc,useInsertionEffect:Mc,useLayoutEffect:Lc,useMemo:Oc,useReducer:gl,useRef:kc,useState:function(){return gl(so)},useDebugValue:yl,useDeferredValue:function(e){var n=yt();return Dc(n,$e.memoizedState,e)},useTransition:function(){var e=gl(so)[0],n=yt().memoizedState;return[e,n]},useMutableSource:yc,useSyncExternalStore:Sc,useId:zc,unstable_isNewReconciler:!1},jp={readContext:vt,useCallback:Tc,useContext:vt,useEffect:vl,useImperativeHandle:Fc,useInsertionEffect:Mc,useLayoutEffect:Lc,useMemo:Oc,useReducer:ml,useRef:kc,useState:function(){return ml(so)},useDebugValue:yl,useDeferredValue:function(e){var n=yt();return $e===null?n.memoizedState=e:Dc(n,$e.memoizedState,e)},useTransition:function(){var e=ml(so)[0],n=yt().memoizedState;return[e,n]},useMutableSource:yc,useSyncExternalStore:Sc,useId:zc,unstable_isNewReconciler:!1};function kt(e,n){if(e&&e.defaultProps){n=K({},n),e=e.defaultProps;for(var o in e)n[o]===void 0&&(n[o]=e[o]);return n}return n}function Sl(e,n,o,l){n=e.memoizedState,o=o(l,n),o=o==null?n:K({},n,o),e.memoizedState=o,e.lanes===0&&(e.updateQueue.baseState=o)}var Si={isMounted:function(e){return(e=e._reactInternals)?En(e)===e:!1},enqueueSetState:function(e,n,o){e=e._reactInternals;var l=be(),a=pn(e),f=Wt(l,a);f.payload=n,o!=null&&(f.callback=o),n=cn(e,f,a),n!==null&&(Lt(n,e,a,l),fi(n,e,a))},enqueueReplaceState:function(e,n,o){e=e._reactInternals;var l=be(),a=pn(e),f=Wt(l,a);f.tag=1,f.payload=n,o!=null&&(f.callback=o),n=cn(e,f,a),n!==null&&(Lt(n,e,a,l),fi(n,e,a))},enqueueForceUpdate:function(e,n){e=e._reactInternals;var o=be(),l=pn(e),a=Wt(o,l);a.tag=2,n!=null&&(a.callback=n),n=cn(e,a,l),n!==null&&(Lt(n,e,l,o),fi(n,e,l))}};function Vc(e,n,o,l,a,f,g){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(l,f,g):n.prototype&&n.prototype.isPureReactComponent?!Kr(o,l)||!Kr(a,f):!0}function jc(e,n,o){var l=!1,a=ln,f=n.contextType;return typeof f=="object"&&f!==null?f=vt(f):(a=nt(n)?Ln:Qe.current,l=n.contextTypes,f=(l=l!=null)?ar(e,a):ln),n=new n(o,f),e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Si,e.stateNode=n,n._reactInternals=e,l&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=a,e.__reactInternalMemoizedMaskedChildContext=f),n}function Bc(e,n,o,l){e=n.state,typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(o,l),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(o,l),n.state!==e&&Si.enqueueReplaceState(n,n.state,null)}function wl(e,n,o,l){var a=e.stateNode;a.props=o,a.state=e.memoizedState,a.refs={},sl(e);var f=n.contextType;typeof f=="object"&&f!==null?a.context=vt(f):(f=nt(n)?Ln:Qe.current,a.context=ar(e,f)),a.state=e.memoizedState,f=n.getDerivedStateFromProps,typeof f=="function"&&(Sl(e,n,f,o),a.state=e.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof a.getSnapshotBeforeUpdate=="function"||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(n=a.state,typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),n!==a.state&&Si.enqueueReplaceState(a,a.state,null),di(e,o,a,l),a.state=e.memoizedState),typeof a.componentDidMount=="function"&&(e.flags|=4194308)}function vr(e,n){try{var o="",l=n;do o+=se(l),l=l.return;while(l);var a=o}catch(f){a=`
39
+ Error generating stack: `+f.message+`
40
+ `+f.stack}return{value:e,source:n,stack:a,digest:null}}function Cl(e,n,o){return{value:e,source:null,stack:o??null,digest:n??null}}function Rl(e,n){try{console.error(n.value)}catch(o){setTimeout(function(){throw o})}}var Bp=typeof WeakMap=="function"?WeakMap:Map;function Hc(e,n,o){o=Wt(-1,o),o.tag=3,o.payload={element:null};var l=n.value;return o.callback=function(){ki||(ki=!0,$l=l),Rl(e,n)},o}function Uc(e,n,o){o=Wt(-1,o),o.tag=3;var l=e.type.getDerivedStateFromError;if(typeof l=="function"){var a=n.value;o.payload=function(){return l(a)},o.callback=function(){Rl(e,n)}}var f=e.stateNode;return f!==null&&typeof f.componentDidCatch=="function"&&(o.callback=function(){Rl(e,n),typeof l!="function"&&(dn===null?dn=new Set([this]):dn.add(this));var g=n.stack;this.componentDidCatch(n.value,{componentStack:g!==null?g:""})}),o}function Gc(e,n,o){var l=e.pingCache;if(l===null){l=e.pingCache=new Bp;var a=new Set;l.set(n,a)}else a=l.get(n),a===void 0&&(a=new Set,l.set(n,a));a.has(o)||(a.add(o),e=tg.bind(null,e,n,o),n.then(e,e))}function Wc(e){do{var n;if((n=e.tag===13)&&(n=e.memoizedState,n=n!==null?n.dehydrated!==null:!0),n)return e;e=e.return}while(e!==null);return null}function Qc(e,n,o,l,a){return(e.mode&1)===0?(e===n?e.flags|=65536:(e.flags|=128,o.flags|=131072,o.flags&=-52805,o.tag===1&&(o.alternate===null?o.tag=17:(n=Wt(-1,1),n.tag=2,cn(o,n,1))),o.lanes|=1),e):(e.flags|=65536,e.lanes=a,e)}var Hp=z.ReactCurrentOwner,rt=!1;function Ze(e,n,o,l){n.child=e===null?dc(n,null,o,l):hr(n,e.child,o,l)}function Kc(e,n,o,l,a){o=o.render;var f=n.ref;return gr(n,a),l=hl(e,n,o,l,f,a),o=pl(),e!==null&&!rt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a,Qt(e,n,a)):(Ee&&o&&Ys(n),n.flags|=1,Ze(e,n,l,a),n.child)}function qc(e,n,o,l,a){if(e===null){var f=o.type;return typeof f=="function"&&!Gl(f)&&f.defaultProps===void 0&&o.compare===null&&o.defaultProps===void 0?(n.tag=15,n.type=f,Xc(e,n,f,l,a)):(e=Ti(o.type,null,l,n,n.mode,a),e.ref=n.ref,e.return=n,n.child=e)}if(f=e.child,(e.lanes&a)===0){var g=f.memoizedProps;if(o=o.compare,o=o!==null?o:Kr,o(g,l)&&e.ref===n.ref)return Qt(e,n,a)}return n.flags|=1,e=mn(f,l),e.ref=n.ref,e.return=n,n.child=e}function Xc(e,n,o,l,a){if(e!==null){var f=e.memoizedProps;if(Kr(f,l)&&e.ref===n.ref)if(rt=!1,n.pendingProps=l=f,(e.lanes&a)!==0)(e.flags&131072)!==0&&(rt=!0);else return n.lanes=e.lanes,Qt(e,n,a)}return _l(e,n,o,l,a)}function Yc(e,n,o){var l=n.pendingProps,a=l.children,f=e!==null?e.memoizedState:null;if(l.mode==="hidden")if((n.mode&1)===0)n.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(Sr,dt),dt|=o;else{if((o&1073741824)===0)return e=f!==null?f.baseLanes|o:o,n.lanes=n.childLanes=1073741824,n.memoizedState={baseLanes:e,cachePool:null,transitions:null},n.updateQueue=null,_e(Sr,dt),dt|=e,null;n.memoizedState={baseLanes:0,cachePool:null,transitions:null},l=f!==null?f.baseLanes:o,_e(Sr,dt),dt|=l}else f!==null?(l=f.baseLanes|o,n.memoizedState=null):l=o,_e(Sr,dt),dt|=l;return Ze(e,n,a,o),n.child}function Jc(e,n){var o=n.ref;(e===null&&o!==null||e!==null&&e.ref!==o)&&(n.flags|=512,n.flags|=2097152)}function _l(e,n,o,l,a){var f=nt(o)?Ln:Qe.current;return f=ar(n,f),gr(n,a),o=hl(e,n,o,l,f,a),l=pl(),e!==null&&!rt?(n.updateQueue=e.updateQueue,n.flags&=-2053,e.lanes&=~a,Qt(e,n,a)):(Ee&&l&&Ys(n),n.flags|=1,Ze(e,n,o,a),n.child)}function Zc(e,n,o,l,a){if(nt(o)){var f=!0;ri(n)}else f=!1;if(gr(n,a),n.stateNode===null)Ci(e,n),jc(n,o,l),wl(n,o,l,a),l=!0;else if(e===null){var g=n.stateNode,R=n.memoizedProps;g.props=R;var P=g.context,T=o.contextType;typeof T=="object"&&T!==null?T=vt(T):(T=nt(o)?Ln:Qe.current,T=ar(n,T));var $=o.getDerivedStateFromProps,V=typeof $=="function"||typeof g.getSnapshotBeforeUpdate=="function";V||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(R!==l||P!==T)&&Bc(n,g,l,T),an=!1;var N=n.memoizedState;g.state=N,di(n,l,g,a),P=n.memoizedState,R!==l||N!==P||tt.current||an?(typeof $=="function"&&(Sl(n,o,$,l),P=n.memoizedState),(R=an||Vc(n,o,R,l,N,P,T))?(V||typeof g.UNSAFE_componentWillMount!="function"&&typeof g.componentWillMount!="function"||(typeof g.componentWillMount=="function"&&g.componentWillMount(),typeof g.UNSAFE_componentWillMount=="function"&&g.UNSAFE_componentWillMount()),typeof g.componentDidMount=="function"&&(n.flags|=4194308)):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),n.memoizedProps=l,n.memoizedState=P),g.props=l,g.state=P,g.context=T,l=R):(typeof g.componentDidMount=="function"&&(n.flags|=4194308),l=!1)}else{g=n.stateNode,pc(e,n),R=n.memoizedProps,T=n.type===n.elementType?R:kt(n.type,R),g.props=T,V=n.pendingProps,N=g.context,P=o.contextType,typeof P=="object"&&P!==null?P=vt(P):(P=nt(o)?Ln:Qe.current,P=ar(n,P));var Q=o.getDerivedStateFromProps;($=typeof Q=="function"||typeof g.getSnapshotBeforeUpdate=="function")||typeof g.UNSAFE_componentWillReceiveProps!="function"&&typeof g.componentWillReceiveProps!="function"||(R!==V||N!==P)&&Bc(n,g,l,P),an=!1,N=n.memoizedState,g.state=N,di(n,l,g,a);var X=n.memoizedState;R!==V||N!==X||tt.current||an?(typeof Q=="function"&&(Sl(n,o,Q,l),X=n.memoizedState),(T=an||Vc(n,o,T,l,N,X,P)||!1)?($||typeof g.UNSAFE_componentWillUpdate!="function"&&typeof g.componentWillUpdate!="function"||(typeof g.componentWillUpdate=="function"&&g.componentWillUpdate(l,X,P),typeof g.UNSAFE_componentWillUpdate=="function"&&g.UNSAFE_componentWillUpdate(l,X,P)),typeof g.componentDidUpdate=="function"&&(n.flags|=4),typeof g.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof g.componentDidUpdate!="function"||R===e.memoizedProps&&N===e.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||R===e.memoizedProps&&N===e.memoizedState||(n.flags|=1024),n.memoizedProps=l,n.memoizedState=X),g.props=l,g.state=X,g.context=P,l=T):(typeof g.componentDidUpdate!="function"||R===e.memoizedProps&&N===e.memoizedState||(n.flags|=4),typeof g.getSnapshotBeforeUpdate!="function"||R===e.memoizedProps&&N===e.memoizedState||(n.flags|=1024),l=!1)}return Pl(e,n,o,l,f,a)}function Pl(e,n,o,l,a,f){Jc(e,n);var g=(n.flags&128)!==0;if(!l&&!g)return a&&rc(n,o,!1),Qt(e,n,f);l=n.stateNode,Hp.current=n;var R=g&&typeof o.getDerivedStateFromError!="function"?null:l.render();return n.flags|=1,e!==null&&g?(n.child=hr(n,e.child,null,f),n.child=hr(n,null,R,f)):Ze(e,n,R,f),n.memoizedState=l.state,a&&rc(n,o,!0),n.child}function bc(e){var n=e.stateNode;n.pendingContext?tc(e,n.pendingContext,n.pendingContext!==n.context):n.context&&tc(e,n.context,!1),ll(e,n.containerInfo)}function ef(e,n,o,l,a){return dr(),el(a),n.flags|=256,Ze(e,n,o,l),n.child}var xl={dehydrated:null,treeContext:null,retryLane:0};function kl(e){return{baseLanes:e,cachePool:null,transitions:null}}function tf(e,n,o){var l=n.pendingProps,a=Le.current,f=!1,g=(n.flags&128)!==0,R;if((R=g)||(R=e!==null&&e.memoizedState===null?!1:(a&2)!==0),R?(f=!0,n.flags&=-129):(e===null||e.memoizedState!==null)&&(a|=1),_e(Le,a&1),e===null)return bs(n),e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?((n.mode&1)===0?n.lanes=1:e.data==="$!"?n.lanes=8:n.lanes=1073741824,null):(g=l.children,e=l.fallback,f?(l=n.mode,f=n.child,g={mode:"hidden",children:g},(l&1)===0&&f!==null?(f.childLanes=0,f.pendingProps=g):f=Oi(g,l,0,null),e=Vn(e,l,o,null),f.return=n,e.return=n,f.sibling=e,n.child=f,n.child.memoizedState=kl(o),n.memoizedState=xl,e):El(n,g));if(a=e.memoizedState,a!==null&&(R=a.dehydrated,R!==null))return Up(e,n,g,l,R,a,o);if(f){f=l.fallback,g=n.mode,a=e.child,R=a.sibling;var P={mode:"hidden",children:l.children};return(g&1)===0&&n.child!==a?(l=n.child,l.childLanes=0,l.pendingProps=P,n.deletions=null):(l=mn(a,P),l.subtreeFlags=a.subtreeFlags&14680064),R!==null?f=mn(R,f):(f=Vn(f,g,o,null),f.flags|=2),f.return=n,l.return=n,l.sibling=f,n.child=l,l=f,f=n.child,g=e.child.memoizedState,g=g===null?kl(o):{baseLanes:g.baseLanes|o,cachePool:null,transitions:g.transitions},f.memoizedState=g,f.childLanes=e.childLanes&~o,n.memoizedState=xl,l}return f=e.child,e=f.sibling,l=mn(f,{mode:"visible",children:l.children}),(n.mode&1)===0&&(l.lanes=o),l.return=n,l.sibling=null,e!==null&&(o=n.deletions,o===null?(n.deletions=[e],n.flags|=16):o.push(e)),n.child=l,n.memoizedState=null,l}function El(e,n){return n=Oi({mode:"visible",children:n},e.mode,0,null),n.return=e,e.child=n}function wi(e,n,o,l){return l!==null&&el(l),hr(n,e.child,null,o),e=El(n,n.pendingProps.children),e.flags|=2,n.memoizedState=null,e}function Up(e,n,o,l,a,f,g){if(o)return n.flags&256?(n.flags&=-257,l=Cl(Error(r(422))),wi(e,n,g,l)):n.memoizedState!==null?(n.child=e.child,n.flags|=128,null):(f=l.fallback,a=n.mode,l=Oi({mode:"visible",children:l.children},a,0,null),f=Vn(f,a,g,null),f.flags|=2,l.return=n,f.return=n,l.sibling=f,n.child=l,(n.mode&1)!==0&&hr(n,e.child,null,g),n.child.memoizedState=kl(g),n.memoizedState=xl,f);if((n.mode&1)===0)return wi(e,n,g,null);if(a.data==="$!"){if(l=a.nextSibling&&a.nextSibling.dataset,l)var R=l.dgst;return l=R,f=Error(r(419)),l=Cl(f,l,void 0),wi(e,n,g,l)}if(R=(g&e.childLanes)!==0,rt||R){if(l=je,l!==null){switch(g&-g){case 4:a=2;break;case 16:a=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:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(l.suspendedLanes|g))!==0?0:a,a!==0&&a!==f.retryLane&&(f.retryLane=a,Gt(e,a),Lt(l,e,a,-1))}return Ul(),l=Cl(Error(r(421))),wi(e,n,g,l)}return a.data==="$?"?(n.flags|=128,n.child=e.child,n=ng.bind(null,e),a._reactRetry=n,null):(e=f.treeContext,ft=on(a.nextSibling),ct=n,Ee=!0,xt=null,e!==null&&(gt[mt++]=Ht,gt[mt++]=Ut,gt[mt++]=In,Ht=e.id,Ut=e.overflow,In=n),n=El(n,l.children),n.flags|=4096,n)}function nf(e,n,o){e.lanes|=n;var l=e.alternate;l!==null&&(l.lanes|=n),ol(e.return,n,o)}function Ml(e,n,o,l,a){var f=e.memoizedState;f===null?e.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:l,tail:o,tailMode:a}:(f.isBackwards=n,f.rendering=null,f.renderingStartTime=0,f.last=l,f.tail=o,f.tailMode=a)}function rf(e,n,o){var l=n.pendingProps,a=l.revealOrder,f=l.tail;if(Ze(e,n,l.children,o),l=Le.current,(l&2)!==0)l=l&1|2,n.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=n.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&nf(e,o,n);else if(e.tag===19)nf(e,o,n);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===n)break e;for(;e.sibling===null;){if(e.return===null||e.return===n)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}l&=1}if(_e(Le,l),(n.mode&1)===0)n.memoizedState=null;else switch(a){case"forwards":for(o=n.child,a=null;o!==null;)e=o.alternate,e!==null&&hi(e)===null&&(a=o),o=o.sibling;o=a,o===null?(a=n.child,n.child=null):(a=o.sibling,o.sibling=null),Ml(n,!1,a,o,f);break;case"backwards":for(o=null,a=n.child,n.child=null;a!==null;){if(e=a.alternate,e!==null&&hi(e)===null){n.child=a;break}e=a.sibling,a.sibling=o,o=a,a=e}Ml(n,!0,o,null,f);break;case"together":Ml(n,!1,null,null,void 0);break;default:n.memoizedState=null}return n.child}function Ci(e,n){(n.mode&1)===0&&e!==null&&(e.alternate=null,n.alternate=null,n.flags|=2)}function Qt(e,n,o){if(e!==null&&(n.dependencies=e.dependencies),zn|=n.lanes,(o&n.childLanes)===0)return null;if(e!==null&&n.child!==e.child)throw Error(r(153));if(n.child!==null){for(e=n.child,o=mn(e,e.pendingProps),n.child=o,o.return=n;e.sibling!==null;)e=e.sibling,o=o.sibling=mn(e,e.pendingProps),o.return=n;o.sibling=null}return n.child}function Gp(e,n,o){switch(n.tag){case 3:bc(n),dr();break;case 5:vc(n);break;case 1:nt(n.type)&&ri(n);break;case 4:ll(n,n.stateNode.containerInfo);break;case 10:var l=n.type._context,a=n.memoizedProps.value;_e(ai,l._currentValue),l._currentValue=a;break;case 13:if(l=n.memoizedState,l!==null)return l.dehydrated!==null?(_e(Le,Le.current&1),n.flags|=128,null):(o&n.child.childLanes)!==0?tf(e,n,o):(_e(Le,Le.current&1),e=Qt(e,n,o),e!==null?e.sibling:null);_e(Le,Le.current&1);break;case 19:if(l=(o&n.childLanes)!==0,(e.flags&128)!==0){if(l)return rf(e,n,o);n.flags|=128}if(a=n.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),_e(Le,Le.current),l)break;return null;case 22:case 23:return n.lanes=0,Yc(e,n,o)}return Qt(e,n,o)}var of,Ll,sf,lf;of=function(e,n){for(var o=n.child;o!==null;){if(o.tag===5||o.tag===6)e.appendChild(o.stateNode);else if(o.tag!==4&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===n)break;for(;o.sibling===null;){if(o.return===null||o.return===n)return;o=o.return}o.sibling.return=o.return,o=o.sibling}},Ll=function(){},sf=function(e,n,o,l){var a=e.memoizedProps;if(a!==l){e=n.stateNode,On(Dt.current);var f=null;switch(o){case"input":a=qn(e,a),l=qn(e,l),f=[];break;case"select":a=K({},a,{value:void 0}),l=K({},l,{value:void 0}),f=[];break;case"textarea":a=Yn(e,a),l=Yn(e,l),f=[];break;default:typeof a.onClick!="function"&&typeof l.onClick=="function"&&(e.onclick=ei)}as(o,l);var g;o=null;for(T in a)if(!l.hasOwnProperty(T)&&a.hasOwnProperty(T)&&a[T]!=null)if(T==="style"){var R=a[T];for(g in R)R.hasOwnProperty(g)&&(o||(o={}),o[g]="")}else T!=="dangerouslySetInnerHTML"&&T!=="children"&&T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&T!=="autoFocus"&&(u.hasOwnProperty(T)?f||(f=[]):(f=f||[]).push(T,null));for(T in l){var P=l[T];if(R=a?.[T],l.hasOwnProperty(T)&&P!==R&&(P!=null||R!=null))if(T==="style")if(R){for(g in R)!R.hasOwnProperty(g)||P&&P.hasOwnProperty(g)||(o||(o={}),o[g]="");for(g in P)P.hasOwnProperty(g)&&R[g]!==P[g]&&(o||(o={}),o[g]=P[g])}else o||(f||(f=[]),f.push(T,o)),o=P;else T==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,R=R?R.__html:void 0,P!=null&&R!==P&&(f=f||[]).push(T,P)):T==="children"?typeof P!="string"&&typeof P!="number"||(f=f||[]).push(T,""+P):T!=="suppressContentEditableWarning"&&T!=="suppressHydrationWarning"&&(u.hasOwnProperty(T)?(P!=null&&T==="onScroll"&&Pe("scroll",e),f||R===P||(f=[])):(f=f||[]).push(T,P))}o&&(f=f||[]).push("style",o);var T=f;(n.updateQueue=T)&&(n.flags|=4)}},lf=function(e,n,o,l){o!==l&&(n.flags|=4)};function uo(e,n){if(!Ee)switch(e.tailMode){case"hidden":n=e.tail;for(var o=null;n!==null;)n.alternate!==null&&(o=n),n=n.sibling;o===null?e.tail=null:o.sibling=null;break;case"collapsed":o=e.tail;for(var l=null;o!==null;)o.alternate!==null&&(l=o),o=o.sibling;l===null?n||e.tail===null?e.tail=null:e.tail.sibling=null:l.sibling=null}}function qe(e){var n=e.alternate!==null&&e.alternate.child===e.child,o=0,l=0;if(n)for(var a=e.child;a!==null;)o|=a.lanes|a.childLanes,l|=a.subtreeFlags&14680064,l|=a.flags&14680064,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)o|=a.lanes|a.childLanes,l|=a.subtreeFlags,l|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=l,e.childLanes=o,n}function Wp(e,n,o){var l=n.pendingProps;switch(Js(n),n.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return qe(n),null;case 1:return nt(n.type)&&ni(),qe(n),null;case 3:return l=n.stateNode,mr(),xe(tt),xe(Qe),cl(),l.pendingContext&&(l.context=l.pendingContext,l.pendingContext=null),(e===null||e.child===null)&&(li(n)?n.flags|=4:e===null||e.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,xt!==null&&(jl(xt),xt=null))),Ll(e,n),qe(n),null;case 5:ul(n);var a=On(ro.current);if(o=n.type,e!==null&&n.stateNode!=null)sf(e,n,o,l,a),e.ref!==n.ref&&(n.flags|=512,n.flags|=2097152);else{if(!l){if(n.stateNode===null)throw Error(r(166));return qe(n),null}if(e=On(Dt.current),li(n)){l=n.stateNode,o=n.type;var f=n.memoizedProps;switch(l[Ot]=n,l[Zr]=f,e=(n.mode&1)!==0,o){case"dialog":Pe("cancel",l),Pe("close",l);break;case"iframe":case"object":case"embed":Pe("load",l);break;case"video":case"audio":for(a=0;a<Xr.length;a++)Pe(Xr[a],l);break;case"source":Pe("error",l);break;case"img":case"image":case"link":Pe("error",l),Pe("load",l);break;case"details":Pe("toggle",l);break;case"input":Fo(l,f),Pe("invalid",l);break;case"select":l._wrapperState={wasMultiple:!!f.multiple},Pe("invalid",l);break;case"textarea":To(l,f),Pe("invalid",l)}as(o,f),a=null;for(var g in f)if(f.hasOwnProperty(g)){var R=f[g];g==="children"?typeof R=="string"?l.textContent!==R&&(f.suppressHydrationWarning!==!0&&bo(l.textContent,R,e),a=["children",R]):typeof R=="number"&&l.textContent!==""+R&&(f.suppressHydrationWarning!==!0&&bo(l.textContent,R,e),a=["children",""+R]):u.hasOwnProperty(g)&&R!=null&&g==="onScroll"&&Pe("scroll",l)}switch(o){case"input":At(l),Vt(l,f,!0);break;case"textarea":At(l),Ce(l);break;case"select":case"option":break;default:typeof f.onClick=="function"&&(l.onclick=ei)}l=a,n.updateQueue=l,l!==null&&(n.flags|=4)}else{g=a.nodeType===9?a:a.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Ue(o)),e==="http://www.w3.org/1999/xhtml"?o==="script"?(e=g.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof l.is=="string"?e=g.createElement(o,{is:l.is}):(e=g.createElement(o),o==="select"&&(g=e,l.multiple?g.multiple=!0:l.size&&(g.size=l.size))):e=g.createElementNS(e,o),e[Ot]=n,e[Zr]=l,of(e,n,!1,!1),n.stateNode=e;e:{switch(g=cs(o,l),o){case"dialog":Pe("cancel",e),Pe("close",e),a=l;break;case"iframe":case"object":case"embed":Pe("load",e),a=l;break;case"video":case"audio":for(a=0;a<Xr.length;a++)Pe(Xr[a],e);a=l;break;case"source":Pe("error",e),a=l;break;case"img":case"image":case"link":Pe("error",e),Pe("load",e),a=l;break;case"details":Pe("toggle",e),a=l;break;case"input":Fo(e,l),a=qn(e,l),Pe("invalid",e);break;case"option":a=l;break;case"select":e._wrapperState={wasMultiple:!!l.multiple},a=K({},l,{value:void 0}),Pe("invalid",e);break;case"textarea":To(e,l),a=Yn(e,l),Pe("invalid",e);break;default:a=l}as(o,a),R=a;for(f in R)if(R.hasOwnProperty(f)){var P=R[f];f==="style"?Xu(e,P):f==="dangerouslySetInnerHTML"?(P=P?P.__html:void 0,P!=null&&Ku(e,P)):f==="children"?typeof P=="string"?(o!=="textarea"||P!=="")&&Ir(e,P):typeof P=="number"&&Ir(e,""+P):f!=="suppressContentEditableWarning"&&f!=="suppressHydrationWarning"&&f!=="autoFocus"&&(u.hasOwnProperty(f)?P!=null&&f==="onScroll"&&Pe("scroll",e):P!=null&&O(e,f,P,g))}switch(o){case"input":At(e),Vt(e,l,!1);break;case"textarea":At(e),Ce(e);break;case"option":l.value!=null&&e.setAttribute("value",""+ge(l.value));break;case"select":e.multiple=!!l.multiple,f=l.value,f!=null?Jt(e,!!l.multiple,f,!1):l.defaultValue!=null&&Jt(e,!!l.multiple,l.defaultValue,!0);break;default:typeof a.onClick=="function"&&(e.onclick=ei)}switch(o){case"button":case"input":case"select":case"textarea":l=!!l.autoFocus;break e;case"img":l=!0;break e;default:l=!1}}l&&(n.flags|=4)}n.ref!==null&&(n.flags|=512,n.flags|=2097152)}return qe(n),null;case 6:if(e&&n.stateNode!=null)lf(e,n,e.memoizedProps,l);else{if(typeof l!="string"&&n.stateNode===null)throw Error(r(166));if(o=On(ro.current),On(Dt.current),li(n)){if(l=n.stateNode,o=n.memoizedProps,l[Ot]=n,(f=l.nodeValue!==o)&&(e=ct,e!==null))switch(e.tag){case 3:bo(l.nodeValue,o,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&bo(l.nodeValue,o,(e.mode&1)!==0)}f&&(n.flags|=4)}else l=(o.nodeType===9?o:o.ownerDocument).createTextNode(l),l[Ot]=n,n.stateNode=l}return qe(n),null;case 13:if(xe(Le),l=n.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Ee&&ft!==null&&(n.mode&1)!==0&&(n.flags&128)===0)ac(),dr(),n.flags|=98560,f=!1;else if(f=li(n),l!==null&&l.dehydrated!==null){if(e===null){if(!f)throw Error(r(318));if(f=n.memoizedState,f=f!==null?f.dehydrated:null,!f)throw Error(r(317));f[Ot]=n}else dr(),(n.flags&128)===0&&(n.memoizedState=null),n.flags|=4;qe(n),f=!1}else xt!==null&&(jl(xt),xt=null),f=!0;if(!f)return n.flags&65536?n:null}return(n.flags&128)!==0?(n.lanes=o,n):(l=l!==null,l!==(e!==null&&e.memoizedState!==null)&&l&&(n.child.flags|=8192,(n.mode&1)!==0&&(e===null||(Le.current&1)!==0?Ae===0&&(Ae=3):Ul())),n.updateQueue!==null&&(n.flags|=4),qe(n),null);case 4:return mr(),Ll(e,n),e===null&&Yr(n.stateNode.containerInfo),qe(n),null;case 10:return rl(n.type._context),qe(n),null;case 17:return nt(n.type)&&ni(),qe(n),null;case 19:if(xe(Le),f=n.memoizedState,f===null)return qe(n),null;if(l=(n.flags&128)!==0,g=f.rendering,g===null)if(l)uo(f,!1);else{if(Ae!==0||e!==null&&(e.flags&128)!==0)for(e=n.child;e!==null;){if(g=hi(e),g!==null){for(n.flags|=128,uo(f,!1),l=g.updateQueue,l!==null&&(n.updateQueue=l,n.flags|=4),n.subtreeFlags=0,l=o,o=n.child;o!==null;)f=o,e=l,f.flags&=14680066,g=f.alternate,g===null?(f.childLanes=0,f.lanes=e,f.child=null,f.subtreeFlags=0,f.memoizedProps=null,f.memoizedState=null,f.updateQueue=null,f.dependencies=null,f.stateNode=null):(f.childLanes=g.childLanes,f.lanes=g.lanes,f.child=g.child,f.subtreeFlags=0,f.deletions=null,f.memoizedProps=g.memoizedProps,f.memoizedState=g.memoizedState,f.updateQueue=g.updateQueue,f.type=g.type,e=g.dependencies,f.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),o=o.sibling;return _e(Le,Le.current&1|2),n.child}e=e.sibling}f.tail!==null&&Te()>wr&&(n.flags|=128,l=!0,uo(f,!1),n.lanes=4194304)}else{if(!l)if(e=hi(g),e!==null){if(n.flags|=128,l=!0,o=e.updateQueue,o!==null&&(n.updateQueue=o,n.flags|=4),uo(f,!0),f.tail===null&&f.tailMode==="hidden"&&!g.alternate&&!Ee)return qe(n),null}else 2*Te()-f.renderingStartTime>wr&&o!==1073741824&&(n.flags|=128,l=!0,uo(f,!1),n.lanes=4194304);f.isBackwards?(g.sibling=n.child,n.child=g):(o=f.last,o!==null?o.sibling=g:n.child=g,f.last=g)}return f.tail!==null?(n=f.tail,f.rendering=n,f.tail=n.sibling,f.renderingStartTime=Te(),n.sibling=null,o=Le.current,_e(Le,l?o&1|2:o&1),n):(qe(n),null);case 22:case 23:return Hl(),l=n.memoizedState!==null,e!==null&&e.memoizedState!==null!==l&&(n.flags|=8192),l&&(n.mode&1)!==0?(dt&1073741824)!==0&&(qe(n),n.subtreeFlags&6&&(n.flags|=8192)):qe(n),null;case 24:return null;case 25:return null}throw Error(r(156,n.tag))}function Qp(e,n){switch(Js(n),n.tag){case 1:return nt(n.type)&&ni(),e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 3:return mr(),xe(tt),xe(Qe),cl(),e=n.flags,(e&65536)!==0&&(e&128)===0?(n.flags=e&-65537|128,n):null;case 5:return ul(n),null;case 13:if(xe(Le),e=n.memoizedState,e!==null&&e.dehydrated!==null){if(n.alternate===null)throw Error(r(340));dr()}return e=n.flags,e&65536?(n.flags=e&-65537|128,n):null;case 19:return xe(Le),null;case 4:return mr(),null;case 10:return rl(n.type._context),null;case 22:case 23:return Hl(),null;case 24:return null;default:return null}}var Ri=!1,Xe=!1,Kp=typeof WeakSet=="function"?WeakSet:Set,q=null;function yr(e,n){var o=e.ref;if(o!==null)if(typeof o=="function")try{o(null)}catch(l){Fe(e,n,l)}else o.current=null}function Il(e,n,o){try{o()}catch(l){Fe(e,n,l)}}var uf=!1;function qp(e,n){if(Hs=Ho,e=Va(),Ds(e)){if("selectionStart"in e)var o={start:e.selectionStart,end:e.selectionEnd};else e:{o=(o=e.ownerDocument)&&o.defaultView||window;var l=o.getSelection&&o.getSelection();if(l&&l.rangeCount!==0){o=l.anchorNode;var a=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{o.nodeType,f.nodeType}catch{o=null;break e}var g=0,R=-1,P=-1,T=0,$=0,V=e,N=null;t:for(;;){for(var Q;V!==o||a!==0&&V.nodeType!==3||(R=g+a),V!==f||l!==0&&V.nodeType!==3||(P=g+l),V.nodeType===3&&(g+=V.nodeValue.length),(Q=V.firstChild)!==null;)N=V,V=Q;for(;;){if(V===e)break t;if(N===o&&++T===a&&(R=g),N===f&&++$===l&&(P=g),(Q=V.nextSibling)!==null)break;V=N,N=V.parentNode}V=Q}o=R===-1||P===-1?null:{start:R,end:P}}else o=null}o=o||{start:0,end:0}}else o=null;for(Us={focusedElem:e,selectionRange:o},Ho=!1,q=n;q!==null;)if(n=q,e=n.child,(n.subtreeFlags&1028)!==0&&e!==null)e.return=n,q=e;else for(;q!==null;){n=q;try{var X=n.alternate;if((n.flags&1024)!==0)switch(n.tag){case 0:case 11:case 15:break;case 1:if(X!==null){var Y=X.memoizedProps,Oe=X.memoizedState,L=n.stateNode,k=L.getSnapshotBeforeUpdate(n.elementType===n.type?Y:kt(n.type,Y),Oe);L.__reactInternalSnapshotBeforeUpdate=k}break;case 3:var I=n.stateNode.containerInfo;I.nodeType===1?I.textContent="":I.nodeType===9&&I.documentElement&&I.removeChild(I.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(H){Fe(n,n.return,H)}if(e=n.sibling,e!==null){e.return=n.return,q=e;break}q=n.return}return X=uf,uf=!1,X}function ao(e,n,o){var l=n.updateQueue;if(l=l!==null?l.lastEffect:null,l!==null){var a=l=l.next;do{if((a.tag&e)===e){var f=a.destroy;a.destroy=void 0,f!==void 0&&Il(n,o,f)}a=a.next}while(a!==l)}}function _i(e,n){if(n=n.updateQueue,n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&e)===e){var l=o.create;o.destroy=l()}o=o.next}while(o!==n)}}function Fl(e){var n=e.ref;if(n!==null){var o=e.stateNode;switch(e.tag){case 5:e=o;break;default:e=o}typeof n=="function"?n(e):n.current=e}}function af(e){var n=e.alternate;n!==null&&(e.alternate=null,af(n)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(n=e.stateNode,n!==null&&(delete n[Ot],delete n[Zr],delete n[Ks],delete n[Ip],delete n[Fp])),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 cf(e){return e.tag===5||e.tag===3||e.tag===4}function ff(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cf(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 Tl(e,n,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?o.nodeType===8?o.parentNode.insertBefore(e,n):o.insertBefore(e,n):(o.nodeType===8?(n=o.parentNode,n.insertBefore(e,o)):(n=o,n.appendChild(e)),o=o._reactRootContainer,o!=null||n.onclick!==null||(n.onclick=ei));else if(l!==4&&(e=e.child,e!==null))for(Tl(e,n,o),e=e.sibling;e!==null;)Tl(e,n,o),e=e.sibling}function Ol(e,n,o){var l=e.tag;if(l===5||l===6)e=e.stateNode,n?o.insertBefore(e,n):o.appendChild(e);else if(l!==4&&(e=e.child,e!==null))for(Ol(e,n,o),e=e.sibling;e!==null;)Ol(e,n,o),e=e.sibling}var Ge=null,Et=!1;function fn(e,n,o){for(o=o.child;o!==null;)df(e,n,o),o=o.sibling}function df(e,n,o){if(Tt&&typeof Tt.onCommitFiberUnmount=="function")try{Tt.onCommitFiberUnmount(No,o)}catch{}switch(o.tag){case 5:Xe||yr(o,n);case 6:var l=Ge,a=Et;Ge=null,fn(e,n,o),Ge=l,Et=a,Ge!==null&&(Et?(e=Ge,o=o.stateNode,e.nodeType===8?e.parentNode.removeChild(o):e.removeChild(o)):Ge.removeChild(o.stateNode));break;case 18:Ge!==null&&(Et?(e=Ge,o=o.stateNode,e.nodeType===8?Qs(e.parentNode,o):e.nodeType===1&&Qs(e,o),Br(e)):Qs(Ge,o.stateNode));break;case 4:l=Ge,a=Et,Ge=o.stateNode.containerInfo,Et=!0,fn(e,n,o),Ge=l,Et=a;break;case 0:case 11:case 14:case 15:if(!Xe&&(l=o.updateQueue,l!==null&&(l=l.lastEffect,l!==null))){a=l=l.next;do{var f=a,g=f.destroy;f=f.tag,g!==void 0&&((f&2)!==0||(f&4)!==0)&&Il(o,n,g),a=a.next}while(a!==l)}fn(e,n,o);break;case 1:if(!Xe&&(yr(o,n),l=o.stateNode,typeof l.componentWillUnmount=="function"))try{l.props=o.memoizedProps,l.state=o.memoizedState,l.componentWillUnmount()}catch(R){Fe(o,n,R)}fn(e,n,o);break;case 21:fn(e,n,o);break;case 22:o.mode&1?(Xe=(l=Xe)||o.memoizedState!==null,fn(e,n,o),Xe=l):fn(e,n,o);break;default:fn(e,n,o)}}function hf(e){var n=e.updateQueue;if(n!==null){e.updateQueue=null;var o=e.stateNode;o===null&&(o=e.stateNode=new Kp),n.forEach(function(l){var a=rg.bind(null,e,l);o.has(l)||(o.add(l),l.then(a,a))})}}function Mt(e,n){var o=n.deletions;if(o!==null)for(var l=0;l<o.length;l++){var a=o[l];try{var f=e,g=n,R=g;e:for(;R!==null;){switch(R.tag){case 5:Ge=R.stateNode,Et=!1;break e;case 3:Ge=R.stateNode.containerInfo,Et=!0;break e;case 4:Ge=R.stateNode.containerInfo,Et=!0;break e}R=R.return}if(Ge===null)throw Error(r(160));df(f,g,a),Ge=null,Et=!1;var P=a.alternate;P!==null&&(P.return=null),a.return=null}catch(T){Fe(a,n,T)}}if(n.subtreeFlags&12854)for(n=n.child;n!==null;)pf(n,e),n=n.sibling}function pf(e,n){var o=e.alternate,l=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Mt(n,e),Nt(e),l&4){try{ao(3,e,e.return),_i(3,e)}catch(Y){Fe(e,e.return,Y)}try{ao(5,e,e.return)}catch(Y){Fe(e,e.return,Y)}}break;case 1:Mt(n,e),Nt(e),l&512&&o!==null&&yr(o,o.return);break;case 5:if(Mt(n,e),Nt(e),l&512&&o!==null&&yr(o,o.return),e.flags&32){var a=e.stateNode;try{Ir(a,"")}catch(Y){Fe(e,e.return,Y)}}if(l&4&&(a=e.stateNode,a!=null)){var f=e.memoizedProps,g=o!==null?o.memoizedProps:f,R=e.type,P=e.updateQueue;if(e.updateQueue=null,P!==null)try{R==="input"&&f.type==="radio"&&f.name!=null&&Mr(a,f),cs(R,g);var T=cs(R,f);for(g=0;g<P.length;g+=2){var $=P[g],V=P[g+1];$==="style"?Xu(a,V):$==="dangerouslySetInnerHTML"?Ku(a,V):$==="children"?Ir(a,V):O(a,$,V,T)}switch(R){case"input":Xn(a,f);break;case"textarea":Lr(a,f);break;case"select":var N=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!f.multiple;var Q=f.value;Q!=null?Jt(a,!!f.multiple,Q,!1):N!==!!f.multiple&&(f.defaultValue!=null?Jt(a,!!f.multiple,f.defaultValue,!0):Jt(a,!!f.multiple,f.multiple?[]:"",!1))}a[Zr]=f}catch(Y){Fe(e,e.return,Y)}}break;case 6:if(Mt(n,e),Nt(e),l&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,f=e.memoizedProps;try{a.nodeValue=f}catch(Y){Fe(e,e.return,Y)}}break;case 3:if(Mt(n,e),Nt(e),l&4&&o!==null&&o.memoizedState.isDehydrated)try{Br(n.containerInfo)}catch(Y){Fe(e,e.return,Y)}break;case 4:Mt(n,e),Nt(e);break;case 13:Mt(n,e),Nt(e),a=e.child,a.flags&8192&&(f=a.memoizedState!==null,a.stateNode.isHidden=f,!f||a.alternate!==null&&a.alternate.memoizedState!==null||(Nl=Te())),l&4&&hf(e);break;case 22:if($=o!==null&&o.memoizedState!==null,e.mode&1?(Xe=(T=Xe)||$,Mt(n,e),Xe=T):Mt(n,e),Nt(e),l&8192){if(T=e.memoizedState!==null,(e.stateNode.isHidden=T)&&!$&&(e.mode&1)!==0)for(q=e,$=e.child;$!==null;){for(V=q=$;q!==null;){switch(N=q,Q=N.child,N.tag){case 0:case 11:case 14:case 15:ao(4,N,N.return);break;case 1:yr(N,N.return);var X=N.stateNode;if(typeof X.componentWillUnmount=="function"){l=N,o=N.return;try{n=l,X.props=n.memoizedProps,X.state=n.memoizedState,X.componentWillUnmount()}catch(Y){Fe(l,o,Y)}}break;case 5:yr(N,N.return);break;case 22:if(N.memoizedState!==null){vf(V);continue}}Q!==null?(Q.return=N,q=Q):vf(V)}$=$.sibling}e:for($=null,V=e;;){if(V.tag===5){if($===null){$=V;try{a=V.stateNode,T?(f=a.style,typeof f.setProperty=="function"?f.setProperty("display","none","important"):f.display="none"):(R=V.stateNode,P=V.memoizedProps.style,g=P!=null&&P.hasOwnProperty("display")?P.display:null,R.style.display=qu("display",g))}catch(Y){Fe(e,e.return,Y)}}}else if(V.tag===6){if($===null)try{V.stateNode.nodeValue=T?"":V.memoizedProps}catch(Y){Fe(e,e.return,Y)}}else if((V.tag!==22&&V.tag!==23||V.memoizedState===null||V===e)&&V.child!==null){V.child.return=V,V=V.child;continue}if(V===e)break e;for(;V.sibling===null;){if(V.return===null||V.return===e)break e;$===V&&($=null),V=V.return}$===V&&($=null),V.sibling.return=V.return,V=V.sibling}}break;case 19:Mt(n,e),Nt(e),l&4&&hf(e);break;case 21:break;default:Mt(n,e),Nt(e)}}function Nt(e){var n=e.flags;if(n&2){try{e:{for(var o=e.return;o!==null;){if(cf(o)){var l=o;break e}o=o.return}throw Error(r(160))}switch(l.tag){case 5:var a=l.stateNode;l.flags&32&&(Ir(a,""),l.flags&=-33);var f=ff(e);Ol(e,f,a);break;case 3:case 4:var g=l.stateNode.containerInfo,R=ff(e);Tl(e,R,g);break;default:throw Error(r(161))}}catch(P){Fe(e,e.return,P)}e.flags&=-3}n&4096&&(e.flags&=-4097)}function Xp(e,n,o){q=e,gf(e)}function gf(e,n,o){for(var l=(e.mode&1)!==0;q!==null;){var a=q,f=a.child;if(a.tag===22&&l){var g=a.memoizedState!==null||Ri;if(!g){var R=a.alternate,P=R!==null&&R.memoizedState!==null||Xe;R=Ri;var T=Xe;if(Ri=g,(Xe=P)&&!T)for(q=a;q!==null;)g=q,P=g.child,g.tag===22&&g.memoizedState!==null?yf(a):P!==null?(P.return=g,q=P):yf(a);for(;f!==null;)q=f,gf(f),f=f.sibling;q=a,Ri=R,Xe=T}mf(e)}else(a.subtreeFlags&8772)!==0&&f!==null?(f.return=a,q=f):mf(e)}}function mf(e){for(;q!==null;){var n=q;if((n.flags&8772)!==0){var o=n.alternate;try{if((n.flags&8772)!==0)switch(n.tag){case 0:case 11:case 15:Xe||_i(5,n);break;case 1:var l=n.stateNode;if(n.flags&4&&!Xe)if(o===null)l.componentDidMount();else{var a=n.elementType===n.type?o.memoizedProps:kt(n.type,o.memoizedProps);l.componentDidUpdate(a,o.memoizedState,l.__reactInternalSnapshotBeforeUpdate)}var f=n.updateQueue;f!==null&&mc(n,f,l);break;case 3:var g=n.updateQueue;if(g!==null){if(o=null,n.child!==null)switch(n.child.tag){case 5:o=n.child.stateNode;break;case 1:o=n.child.stateNode}mc(n,g,o)}break;case 5:var R=n.stateNode;if(o===null&&n.flags&4){o=R;var P=n.memoizedProps;switch(n.type){case"button":case"input":case"select":case"textarea":P.autoFocus&&o.focus();break;case"img":P.src&&(o.src=P.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(n.memoizedState===null){var T=n.alternate;if(T!==null){var $=T.memoizedState;if($!==null){var V=$.dehydrated;V!==null&&Br(V)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Xe||n.flags&512&&Fl(n)}catch(N){Fe(n,n.return,N)}}if(n===e){q=null;break}if(o=n.sibling,o!==null){o.return=n.return,q=o;break}q=n.return}}function vf(e){for(;q!==null;){var n=q;if(n===e){q=null;break}var o=n.sibling;if(o!==null){o.return=n.return,q=o;break}q=n.return}}function yf(e){for(;q!==null;){var n=q;try{switch(n.tag){case 0:case 11:case 15:var o=n.return;try{_i(4,n)}catch(P){Fe(n,o,P)}break;case 1:var l=n.stateNode;if(typeof l.componentDidMount=="function"){var a=n.return;try{l.componentDidMount()}catch(P){Fe(n,a,P)}}var f=n.return;try{Fl(n)}catch(P){Fe(n,f,P)}break;case 5:var g=n.return;try{Fl(n)}catch(P){Fe(n,g,P)}}}catch(P){Fe(n,n.return,P)}if(n===e){q=null;break}var R=n.sibling;if(R!==null){R.return=n.return,q=R;break}q=n.return}}var Yp=Math.ceil,Pi=z.ReactCurrentDispatcher,Dl=z.ReactCurrentOwner,St=z.ReactCurrentBatchConfig,me=0,je=null,ze=null,We=0,dt=0,Sr=sn(0),Ae=0,co=null,zn=0,xi=0,zl=0,fo=null,ot=null,Nl=0,wr=1/0,Kt=null,ki=!1,$l=null,dn=null,Ei=!1,hn=null,Mi=0,ho=0,Al=null,Li=-1,Ii=0;function be(){return(me&6)!==0?Te():Li!==-1?Li:Li=Te()}function pn(e){return(e.mode&1)===0?1:(me&2)!==0&&We!==0?We&-We:Op.transition!==null?(Ii===0&&(Ii=ca()),Ii):(e=we,e!==0||(e=window.event,e=e===void 0?16:Sa(e.type)),e)}function Lt(e,n,o,l){if(50<ho)throw ho=0,Al=null,Error(r(185));Nr(e,o,l),((me&2)===0||e!==je)&&(e===je&&((me&2)===0&&(xi|=o),Ae===4&&gn(e,We)),it(e,l),o===1&&me===0&&(n.mode&1)===0&&(wr=Te()+500,oi&&un()))}function it(e,n){var o=e.callbackNode;Oh(e,n);var l=Vo(e,e===je?We:0);if(l===0)o!==null&&la(o),e.callbackNode=null,e.callbackPriority=0;else if(n=l&-l,e.callbackPriority!==n){if(o!=null&&la(o),n===1)e.tag===0?Tp(wf.bind(null,e)):oc(wf.bind(null,e)),Mp(function(){(me&6)===0&&un()}),o=null;else{switch(fa(l)){case 1:o=vs;break;case 4:o=ua;break;case 16:o=zo;break;case 536870912:o=aa;break;default:o=zo}o=Mf(o,Sf.bind(null,e))}e.callbackPriority=n,e.callbackNode=o}}function Sf(e,n){if(Li=-1,Ii=0,(me&6)!==0)throw Error(r(327));var o=e.callbackNode;if(Cr()&&e.callbackNode!==o)return null;var l=Vo(e,e===je?We:0);if(l===0)return null;if((l&30)!==0||(l&e.expiredLanes)!==0||n)n=Fi(e,l);else{n=l;var a=me;me|=2;var f=Rf();(je!==e||We!==n)&&(Kt=null,wr=Te()+500,$n(e,n));do try{bp();break}catch(R){Cf(e,R)}while(!0);nl(),Pi.current=f,me=a,ze!==null?n=0:(je=null,We=0,n=Ae)}if(n!==0){if(n===2&&(a=ys(e),a!==0&&(l=a,n=Vl(e,a))),n===1)throw o=co,$n(e,0),gn(e,l),it(e,Te()),o;if(n===6)gn(e,l);else{if(a=e.current.alternate,(l&30)===0&&!Jp(a)&&(n=Fi(e,l),n===2&&(f=ys(e),f!==0&&(l=f,n=Vl(e,f))),n===1))throw o=co,$n(e,0),gn(e,l),it(e,Te()),o;switch(e.finishedWork=a,e.finishedLanes=l,n){case 0:case 1:throw Error(r(345));case 2:An(e,ot,Kt);break;case 3:if(gn(e,l),(l&130023424)===l&&(n=Nl+500-Te(),10<n)){if(Vo(e,0)!==0)break;if(a=e.suspendedLanes,(a&l)!==l){be(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Ws(An.bind(null,e,ot,Kt),n);break}An(e,ot,Kt);break;case 4:if(gn(e,l),(l&4194240)===l)break;for(n=e.eventTimes,a=-1;0<l;){var g=31-_t(l);f=1<<g,g=n[g],g>a&&(a=g),l&=~f}if(l=a,l=Te()-l,l=(120>l?120:480>l?480:1080>l?1080:1920>l?1920:3e3>l?3e3:4320>l?4320:1960*Yp(l/1960))-l,10<l){e.timeoutHandle=Ws(An.bind(null,e,ot,Kt),l);break}An(e,ot,Kt);break;case 5:An(e,ot,Kt);break;default:throw Error(r(329))}}}return it(e,Te()),e.callbackNode===o?Sf.bind(null,e):null}function Vl(e,n){var o=fo;return e.current.memoizedState.isDehydrated&&($n(e,n).flags|=256),e=Fi(e,n),e!==2&&(n=ot,ot=o,n!==null&&jl(n)),e}function jl(e){ot===null?ot=e:ot.push.apply(ot,e)}function Jp(e){for(var n=e;;){if(n.flags&16384){var o=n.updateQueue;if(o!==null&&(o=o.stores,o!==null))for(var l=0;l<o.length;l++){var a=o[l],f=a.getSnapshot;a=a.value;try{if(!Pt(f(),a))return!1}catch{return!1}}}if(o=n.child,n.subtreeFlags&16384&&o!==null)o.return=n,n=o;else{if(n===e)break;for(;n.sibling===null;){if(n.return===null||n.return===e)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function gn(e,n){for(n&=~zl,n&=~xi,e.suspendedLanes|=n,e.pingedLanes&=~n,e=e.expirationTimes;0<n;){var o=31-_t(n),l=1<<o;e[o]=-1,n&=~l}}function wf(e){if((me&6)!==0)throw Error(r(327));Cr();var n=Vo(e,0);if((n&1)===0)return it(e,Te()),null;var o=Fi(e,n);if(e.tag!==0&&o===2){var l=ys(e);l!==0&&(n=l,o=Vl(e,l))}if(o===1)throw o=co,$n(e,0),gn(e,n),it(e,Te()),o;if(o===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=n,An(e,ot,Kt),it(e,Te()),null}function Bl(e,n){var o=me;me|=1;try{return e(n)}finally{me=o,me===0&&(wr=Te()+500,oi&&un())}}function Nn(e){hn!==null&&hn.tag===0&&(me&6)===0&&Cr();var n=me;me|=1;var o=St.transition,l=we;try{if(St.transition=null,we=1,e)return e()}finally{we=l,St.transition=o,me=n,(me&6)===0&&un()}}function Hl(){dt=Sr.current,xe(Sr)}function $n(e,n){e.finishedWork=null,e.finishedLanes=0;var o=e.timeoutHandle;if(o!==-1&&(e.timeoutHandle=-1,Ep(o)),ze!==null)for(o=ze.return;o!==null;){var l=o;switch(Js(l),l.tag){case 1:l=l.type.childContextTypes,l!=null&&ni();break;case 3:mr(),xe(tt),xe(Qe),cl();break;case 5:ul(l);break;case 4:mr();break;case 13:xe(Le);break;case 19:xe(Le);break;case 10:rl(l.type._context);break;case 22:case 23:Hl()}o=o.return}if(je=e,ze=e=mn(e.current,null),We=dt=n,Ae=0,co=null,zl=xi=zn=0,ot=fo=null,Tn!==null){for(n=0;n<Tn.length;n++)if(o=Tn[n],l=o.interleaved,l!==null){o.interleaved=null;var a=l.next,f=o.pending;if(f!==null){var g=f.next;f.next=a,l.next=g}o.pending=l}Tn=null}return e}function Cf(e,n){do{var o=ze;try{if(nl(),pi.current=yi,gi){for(var l=Ie.memoizedState;l!==null;){var a=l.queue;a!==null&&(a.pending=null),l=l.next}gi=!1}if(Dn=0,Ve=$e=Ie=null,oo=!1,io=0,Dl.current=null,o===null||o.return===null){Ae=1,co=n,ze=null;break}e:{var f=e,g=o.return,R=o,P=n;if(n=We,R.flags|=32768,P!==null&&typeof P=="object"&&typeof P.then=="function"){var T=P,$=R,V=$.tag;if(($.mode&1)===0&&(V===0||V===11||V===15)){var N=$.alternate;N?($.updateQueue=N.updateQueue,$.memoizedState=N.memoizedState,$.lanes=N.lanes):($.updateQueue=null,$.memoizedState=null)}var Q=Wc(g);if(Q!==null){Q.flags&=-257,Qc(Q,g,R,f,n),Q.mode&1&&Gc(f,T,n),n=Q,P=T;var X=n.updateQueue;if(X===null){var Y=new Set;Y.add(P),n.updateQueue=Y}else X.add(P);break e}else{if((n&1)===0){Gc(f,T,n),Ul();break e}P=Error(r(426))}}else if(Ee&&R.mode&1){var Oe=Wc(g);if(Oe!==null){(Oe.flags&65536)===0&&(Oe.flags|=256),Qc(Oe,g,R,f,n),el(vr(P,R));break e}}f=P=vr(P,R),Ae!==4&&(Ae=2),fo===null?fo=[f]:fo.push(f),f=g;do{switch(f.tag){case 3:f.flags|=65536,n&=-n,f.lanes|=n;var L=Hc(f,P,n);gc(f,L);break e;case 1:R=P;var k=f.type,I=f.stateNode;if((f.flags&128)===0&&(typeof k.getDerivedStateFromError=="function"||I!==null&&typeof I.componentDidCatch=="function"&&(dn===null||!dn.has(I)))){f.flags|=65536,n&=-n,f.lanes|=n;var H=Uc(f,R,n);gc(f,H);break e}}f=f.return}while(f!==null)}Pf(o)}catch(J){n=J,ze===o&&o!==null&&(ze=o=o.return);continue}break}while(!0)}function Rf(){var e=Pi.current;return Pi.current=yi,e===null?yi:e}function Ul(){(Ae===0||Ae===3||Ae===2)&&(Ae=4),je===null||(zn&268435455)===0&&(xi&268435455)===0||gn(je,We)}function Fi(e,n){var o=me;me|=2;var l=Rf();(je!==e||We!==n)&&(Kt=null,$n(e,n));do try{Zp();break}catch(a){Cf(e,a)}while(!0);if(nl(),me=o,Pi.current=l,ze!==null)throw Error(r(261));return je=null,We=0,Ae}function Zp(){for(;ze!==null;)_f(ze)}function bp(){for(;ze!==null&&!Ph();)_f(ze)}function _f(e){var n=Ef(e.alternate,e,dt);e.memoizedProps=e.pendingProps,n===null?Pf(e):ze=n,Dl.current=null}function Pf(e){var n=e;do{var o=n.alternate;if(e=n.return,(n.flags&32768)===0){if(o=Wp(o,n,dt),o!==null){ze=o;return}}else{if(o=Qp(o,n),o!==null){o.flags&=32767,ze=o;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{Ae=6,ze=null;return}}if(n=n.sibling,n!==null){ze=n;return}ze=n=e}while(n!==null);Ae===0&&(Ae=5)}function An(e,n,o){var l=we,a=St.transition;try{St.transition=null,we=1,eg(e,n,o,l)}finally{St.transition=a,we=l}return null}function eg(e,n,o,l){do Cr();while(hn!==null);if((me&6)!==0)throw Error(r(327));o=e.finishedWork;var a=e.finishedLanes;if(o===null)return null;if(e.finishedWork=null,e.finishedLanes=0,o===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var f=o.lanes|o.childLanes;if(Dh(e,f),e===je&&(ze=je=null,We=0),(o.subtreeFlags&2064)===0&&(o.flags&2064)===0||Ei||(Ei=!0,Mf(zo,function(){return Cr(),null})),f=(o.flags&15990)!==0,(o.subtreeFlags&15990)!==0||f){f=St.transition,St.transition=null;var g=we;we=1;var R=me;me|=4,Dl.current=null,qp(e,o),pf(o,e),wp(Us),Ho=!!Hs,Us=Hs=null,e.current=o,Xp(o),xh(),me=R,we=g,St.transition=f}else e.current=o;if(Ei&&(Ei=!1,hn=e,Mi=a),f=e.pendingLanes,f===0&&(dn=null),Mh(o.stateNode),it(e,Te()),n!==null)for(l=e.onRecoverableError,o=0;o<n.length;o++)a=n[o],l(a.value,{componentStack:a.stack,digest:a.digest});if(ki)throw ki=!1,e=$l,$l=null,e;return(Mi&1)!==0&&e.tag!==0&&Cr(),f=e.pendingLanes,(f&1)!==0?e===Al?ho++:(ho=0,Al=e):ho=0,un(),null}function Cr(){if(hn!==null){var e=fa(Mi),n=St.transition,o=we;try{if(St.transition=null,we=16>e?16:e,hn===null)var l=!1;else{if(e=hn,hn=null,Mi=0,(me&6)!==0)throw Error(r(331));var a=me;for(me|=4,q=e.current;q!==null;){var f=q,g=f.child;if((q.flags&16)!==0){var R=f.deletions;if(R!==null){for(var P=0;P<R.length;P++){var T=R[P];for(q=T;q!==null;){var $=q;switch($.tag){case 0:case 11:case 15:ao(8,$,f)}var V=$.child;if(V!==null)V.return=$,q=V;else for(;q!==null;){$=q;var N=$.sibling,Q=$.return;if(af($),$===T){q=null;break}if(N!==null){N.return=Q,q=N;break}q=Q}}}var X=f.alternate;if(X!==null){var Y=X.child;if(Y!==null){X.child=null;do{var Oe=Y.sibling;Y.sibling=null,Y=Oe}while(Y!==null)}}q=f}}if((f.subtreeFlags&2064)!==0&&g!==null)g.return=f,q=g;else e:for(;q!==null;){if(f=q,(f.flags&2048)!==0)switch(f.tag){case 0:case 11:case 15:ao(9,f,f.return)}var L=f.sibling;if(L!==null){L.return=f.return,q=L;break e}q=f.return}}var k=e.current;for(q=k;q!==null;){g=q;var I=g.child;if((g.subtreeFlags&2064)!==0&&I!==null)I.return=g,q=I;else e:for(g=k;q!==null;){if(R=q,(R.flags&2048)!==0)try{switch(R.tag){case 0:case 11:case 15:_i(9,R)}}catch(J){Fe(R,R.return,J)}if(R===g){q=null;break e}var H=R.sibling;if(H!==null){H.return=R.return,q=H;break e}q=R.return}}if(me=a,un(),Tt&&typeof Tt.onPostCommitFiberRoot=="function")try{Tt.onPostCommitFiberRoot(No,e)}catch{}l=!0}return l}finally{we=o,St.transition=n}}return!1}function xf(e,n,o){n=vr(o,n),n=Hc(e,n,1),e=cn(e,n,1),n=be(),e!==null&&(Nr(e,1,n),it(e,n))}function Fe(e,n,o){if(e.tag===3)xf(e,e,o);else for(;n!==null;){if(n.tag===3){xf(n,e,o);break}else if(n.tag===1){var l=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof l.componentDidCatch=="function"&&(dn===null||!dn.has(l))){e=vr(o,e),e=Uc(n,e,1),n=cn(n,e,1),e=be(),n!==null&&(Nr(n,1,e),it(n,e));break}}n=n.return}}function tg(e,n,o){var l=e.pingCache;l!==null&&l.delete(n),n=be(),e.pingedLanes|=e.suspendedLanes&o,je===e&&(We&o)===o&&(Ae===4||Ae===3&&(We&130023424)===We&&500>Te()-Nl?$n(e,0):zl|=o),it(e,n)}function kf(e,n){n===0&&((e.mode&1)===0?n=1:(n=Ao,Ao<<=1,(Ao&130023424)===0&&(Ao=4194304)));var o=be();e=Gt(e,n),e!==null&&(Nr(e,n,o),it(e,o))}function ng(e){var n=e.memoizedState,o=0;n!==null&&(o=n.retryLane),kf(e,o)}function rg(e,n){var o=0;switch(e.tag){case 13:var l=e.stateNode,a=e.memoizedState;a!==null&&(o=a.retryLane);break;case 19:l=e.stateNode;break;default:throw Error(r(314))}l!==null&&l.delete(n),kf(e,o)}var Ef;Ef=function(e,n,o){if(e!==null)if(e.memoizedProps!==n.pendingProps||tt.current)rt=!0;else{if((e.lanes&o)===0&&(n.flags&128)===0)return rt=!1,Gp(e,n,o);rt=(e.flags&131072)!==0}else rt=!1,Ee&&(n.flags&1048576)!==0&&ic(n,si,n.index);switch(n.lanes=0,n.tag){case 2:var l=n.type;Ci(e,n),e=n.pendingProps;var a=ar(n,Qe.current);gr(n,o),a=hl(null,n,l,e,a,o);var f=pl();return n.flags|=1,typeof a=="object"&&a!==null&&typeof a.render=="function"&&a.$$typeof===void 0?(n.tag=1,n.memoizedState=null,n.updateQueue=null,nt(l)?(f=!0,ri(n)):f=!1,n.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,sl(n),a.updater=Si,n.stateNode=a,a._reactInternals=n,wl(n,l,e,o),n=Pl(null,n,l,!0,f,o)):(n.tag=0,Ee&&f&&Ys(n),Ze(null,n,a,o),n=n.child),n;case 16:l=n.elementType;e:{switch(Ci(e,n),e=n.pendingProps,a=l._init,l=a(l._payload),n.type=l,a=n.tag=ig(l),e=kt(l,e),a){case 0:n=_l(null,n,l,e,o);break e;case 1:n=Zc(null,n,l,e,o);break e;case 11:n=Kc(null,n,l,e,o);break e;case 14:n=qc(null,n,l,kt(l.type,e),o);break e}throw Error(r(306,l,""))}return n;case 0:return l=n.type,a=n.pendingProps,a=n.elementType===l?a:kt(l,a),_l(e,n,l,a,o);case 1:return l=n.type,a=n.pendingProps,a=n.elementType===l?a:kt(l,a),Zc(e,n,l,a,o);case 3:e:{if(bc(n),e===null)throw Error(r(387));l=n.pendingProps,f=n.memoizedState,a=f.element,pc(e,n),di(n,l,null,o);var g=n.memoizedState;if(l=g.element,f.isDehydrated)if(f={element:l,isDehydrated:!1,cache:g.cache,pendingSuspenseBoundaries:g.pendingSuspenseBoundaries,transitions:g.transitions},n.updateQueue.baseState=f,n.memoizedState=f,n.flags&256){a=vr(Error(r(423)),n),n=ef(e,n,l,o,a);break e}else if(l!==a){a=vr(Error(r(424)),n),n=ef(e,n,l,o,a);break e}else for(ft=on(n.stateNode.containerInfo.firstChild),ct=n,Ee=!0,xt=null,o=dc(n,null,l,o),n.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling;else{if(dr(),l===a){n=Qt(e,n,o);break e}Ze(e,n,l,o)}n=n.child}return n;case 5:return vc(n),e===null&&bs(n),l=n.type,a=n.pendingProps,f=e!==null?e.memoizedProps:null,g=a.children,Gs(l,a)?g=null:f!==null&&Gs(l,f)&&(n.flags|=32),Jc(e,n),Ze(e,n,g,o),n.child;case 6:return e===null&&bs(n),null;case 13:return tf(e,n,o);case 4:return ll(n,n.stateNode.containerInfo),l=n.pendingProps,e===null?n.child=hr(n,null,l,o):Ze(e,n,l,o),n.child;case 11:return l=n.type,a=n.pendingProps,a=n.elementType===l?a:kt(l,a),Kc(e,n,l,a,o);case 7:return Ze(e,n,n.pendingProps,o),n.child;case 8:return Ze(e,n,n.pendingProps.children,o),n.child;case 12:return Ze(e,n,n.pendingProps.children,o),n.child;case 10:e:{if(l=n.type._context,a=n.pendingProps,f=n.memoizedProps,g=a.value,_e(ai,l._currentValue),l._currentValue=g,f!==null)if(Pt(f.value,g)){if(f.children===a.children&&!tt.current){n=Qt(e,n,o);break e}}else for(f=n.child,f!==null&&(f.return=n);f!==null;){var R=f.dependencies;if(R!==null){g=f.child;for(var P=R.firstContext;P!==null;){if(P.context===l){if(f.tag===1){P=Wt(-1,o&-o),P.tag=2;var T=f.updateQueue;if(T!==null){T=T.shared;var $=T.pending;$===null?P.next=P:(P.next=$.next,$.next=P),T.pending=P}}f.lanes|=o,P=f.alternate,P!==null&&(P.lanes|=o),ol(f.return,o,n),R.lanes|=o;break}P=P.next}}else if(f.tag===10)g=f.type===n.type?null:f.child;else if(f.tag===18){if(g=f.return,g===null)throw Error(r(341));g.lanes|=o,R=g.alternate,R!==null&&(R.lanes|=o),ol(g,o,n),g=f.sibling}else g=f.child;if(g!==null)g.return=f;else for(g=f;g!==null;){if(g===n){g=null;break}if(f=g.sibling,f!==null){f.return=g.return,g=f;break}g=g.return}f=g}Ze(e,n,a.children,o),n=n.child}return n;case 9:return a=n.type,l=n.pendingProps.children,gr(n,o),a=vt(a),l=l(a),n.flags|=1,Ze(e,n,l,o),n.child;case 14:return l=n.type,a=kt(l,n.pendingProps),a=kt(l.type,a),qc(e,n,l,a,o);case 15:return Xc(e,n,n.type,n.pendingProps,o);case 17:return l=n.type,a=n.pendingProps,a=n.elementType===l?a:kt(l,a),Ci(e,n),n.tag=1,nt(l)?(e=!0,ri(n)):e=!1,gr(n,o),jc(n,l,a),wl(n,l,a,o),Pl(null,n,l,!0,e,o);case 19:return rf(e,n,o);case 22:return Yc(e,n,o)}throw Error(r(156,n.tag))};function Mf(e,n){return sa(e,n)}function og(e,n,o,l){this.tag=e,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=l,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function wt(e,n,o,l){return new og(e,n,o,l)}function Gl(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ig(e){if(typeof e=="function")return Gl(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ie)return 11;if(e===De)return 14}return 2}function mn(e,n){var o=e.alternate;return o===null?(o=wt(e.tag,n,e.key,e.mode),o.elementType=e.elementType,o.type=e.type,o.stateNode=e.stateNode,o.alternate=e,e.alternate=o):(o.pendingProps=n,o.type=e.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=e.flags&14680064,o.childLanes=e.childLanes,o.lanes=e.lanes,o.child=e.child,o.memoizedProps=e.memoizedProps,o.memoizedState=e.memoizedState,o.updateQueue=e.updateQueue,n=e.dependencies,o.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext},o.sibling=e.sibling,o.index=e.index,o.ref=e.ref,o}function Ti(e,n,o,l,a,f){var g=2;if(l=e,typeof e=="function")Gl(e)&&(g=1);else if(typeof e=="string")g=5;else e:switch(e){case A:return Vn(o.children,a,f,n);case B:g=8,a|=8;break;case W:return e=wt(12,o,n,a|2),e.elementType=W,e.lanes=f,e;case ke:return e=wt(13,o,n,a),e.elementType=ke,e.lanes=f,e;case Re:return e=wt(19,o,n,a),e.elementType=Re,e.lanes=f,e;case he:return Oi(o,a,f,n);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case re:g=10;break e;case oe:g=9;break e;case ie:g=11;break e;case De:g=14;break e;case Ne:g=16,l=null;break e}throw Error(r(130,e==null?e:typeof e,""))}return n=wt(g,o,n,a),n.elementType=e,n.type=l,n.lanes=f,n}function Vn(e,n,o,l){return e=wt(7,e,l,n),e.lanes=o,e}function Oi(e,n,o,l){return e=wt(22,e,l,n),e.elementType=he,e.lanes=o,e.stateNode={isHidden:!1},e}function Wl(e,n,o){return e=wt(6,e,null,n),e.lanes=o,e}function Ql(e,n,o){return n=wt(4,e.children!==null?e.children:[],e.key,n),n.lanes=o,n.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},n}function sg(e,n,o,l,a){this.tag=n,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=Ss(0),this.expirationTimes=Ss(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ss(0),this.identifierPrefix=l,this.onRecoverableError=a,this.mutableSourceEagerHydrationData=null}function Kl(e,n,o,l,a,f,g,R,P){return e=new sg(e,n,o,R,P),n===1?(n=1,f===!0&&(n|=8)):n=0,f=wt(3,null,null,n),e.current=f,f.stateNode=e,f.memoizedState={element:l,isDehydrated:o,cache:null,transitions:null,pendingSuspenseBoundaries:null},sl(f),e}function lg(e,n,o){var l=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:U,key:l==null?null:""+l,children:e,containerInfo:n,implementation:o}}function Lf(e){if(!e)return ln;e=e._reactInternals;e:{if(En(e)!==e||e.tag!==1)throw Error(r(170));var n=e;do{switch(n.tag){case 3:n=n.stateNode.context;break e;case 1:if(nt(n.type)){n=n.stateNode.__reactInternalMemoizedMergedChildContext;break e}}n=n.return}while(n!==null);throw Error(r(171))}if(e.tag===1){var o=e.type;if(nt(o))return nc(e,o,n)}return n}function If(e,n,o,l,a,f,g,R,P){return e=Kl(o,l,!0,e,a,f,g,R,P),e.context=Lf(null),o=e.current,l=be(),a=pn(o),f=Wt(l,a),f.callback=n??null,cn(o,f,a),e.current.lanes=a,Nr(e,a,l),it(e,l),e}function Di(e,n,o,l){var a=n.current,f=be(),g=pn(a);return o=Lf(o),n.context===null?n.context=o:n.pendingContext=o,n=Wt(f,g),n.payload={element:e},l=l===void 0?null:l,l!==null&&(n.callback=l),e=cn(a,n,g),e!==null&&(Lt(e,a,g,f),fi(e,a,g)),g}function zi(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 Ff(e,n){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var o=e.retryLane;e.retryLane=o!==0&&o<n?o:n}}function ql(e,n){Ff(e,n),(e=e.alternate)&&Ff(e,n)}function ug(){return null}var Tf=typeof reportError=="function"?reportError:function(e){console.error(e)};function Xl(e){this._internalRoot=e}Ni.prototype.render=Xl.prototype.render=function(e){var n=this._internalRoot;if(n===null)throw Error(r(409));Di(e,n,null,null)},Ni.prototype.unmount=Xl.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var n=e.containerInfo;Nn(function(){Di(null,e,null,null)}),n[jt]=null}};function Ni(e){this._internalRoot=e}Ni.prototype.unstable_scheduleHydration=function(e){if(e){var n=pa();e={blockedOn:null,target:e,priority:n};for(var o=0;o<tn.length&&n!==0&&n<tn[o].priority;o++);tn.splice(o,0,e),o===0&&va(e)}};function Yl(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function $i(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Of(){}function ag(e,n,o,l,a){if(a){if(typeof l=="function"){var f=l;l=function(){var T=zi(g);f.call(T)}}var g=If(n,l,e,0,null,!1,!1,"",Of);return e._reactRootContainer=g,e[jt]=g.current,Yr(e.nodeType===8?e.parentNode:e),Nn(),g}for(;a=e.lastChild;)e.removeChild(a);if(typeof l=="function"){var R=l;l=function(){var T=zi(P);R.call(T)}}var P=Kl(e,0,!1,null,null,!1,!1,"",Of);return e._reactRootContainer=P,e[jt]=P.current,Yr(e.nodeType===8?e.parentNode:e),Nn(function(){Di(n,P,o,l)}),P}function Ai(e,n,o,l,a){var f=o._reactRootContainer;if(f){var g=f;if(typeof a=="function"){var R=a;a=function(){var P=zi(g);R.call(P)}}Di(n,g,e,a)}else g=ag(o,n,e,a,l);return zi(g)}da=function(e){switch(e.tag){case 3:var n=e.stateNode;if(n.current.memoizedState.isDehydrated){var o=zr(n.pendingLanes);o!==0&&(ws(n,o|1),it(n,Te()),(me&6)===0&&(wr=Te()+500,un()))}break;case 13:Nn(function(){var l=Gt(e,1);if(l!==null){var a=be();Lt(l,e,1,a)}}),ql(e,1)}},Cs=function(e){if(e.tag===13){var n=Gt(e,134217728);if(n!==null){var o=be();Lt(n,e,134217728,o)}ql(e,134217728)}},ha=function(e){if(e.tag===13){var n=pn(e),o=Gt(e,n);if(o!==null){var l=be();Lt(o,e,n,l)}ql(e,n)}},pa=function(){return we},ga=function(e,n){var o=we;try{return we=e,n()}finally{we=o}},hs=function(e,n,o){switch(n){case"input":if(Xn(e,o),n=o.name,o.type==="radio"&&n!=null){for(o=e;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),n=0;n<o.length;n++){var l=o[n];if(l!==e&&l.form===e.form){var a=ti(l);if(!a)throw Error(r(90));Pn(l),Xn(l,a)}}}break;case"textarea":Lr(e,o);break;case"select":n=o.value,n!=null&&Jt(e,!!o.multiple,n,!1)}},bu=Bl,ea=Nn;var cg={usingClientEntryPoint:!1,Events:[br,lr,ti,Ju,Zu,Bl]},po={findFiberByHostInstance:Mn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},fg={bundleType:po.bundleType,version:po.version,rendererPackageName:po.rendererPackageName,rendererConfig:po.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:z.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=oa(e),e===null?null:e.stateNode},findFiberByHostInstance:po.findFiberByHostInstance||ug,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 Vi=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Vi.isDisabled&&Vi.supportsFiber)try{No=Vi.inject(fg),Tt=Vi}catch{}}return st.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cg,st.createPortal=function(e,n){var o=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Yl(n))throw Error(r(200));return lg(e,n,null,o)},st.createRoot=function(e,n){if(!Yl(e))throw Error(r(299));var o=!1,l="",a=Tf;return n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),n=Kl(e,1,!1,null,null,o,!1,l,a),e[jt]=n.current,Yr(e.nodeType===8?e.parentNode:e),new Xl(n)},st.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var n=e._reactInternals;if(n===void 0)throw typeof e.render=="function"?Error(r(188)):(e=Object.keys(e).join(","),Error(r(268,e)));return e=oa(n),e=e===null?null:e.stateNode,e},st.flushSync=function(e){return Nn(e)},st.hydrate=function(e,n,o){if(!$i(n))throw Error(r(200));return Ai(null,e,n,!0,o)},st.hydrateRoot=function(e,n,o){if(!Yl(e))throw Error(r(405));var l=o!=null&&o.hydratedSources||null,a=!1,f="",g=Tf;if(o!=null&&(o.unstable_strictMode===!0&&(a=!0),o.identifierPrefix!==void 0&&(f=o.identifierPrefix),o.onRecoverableError!==void 0&&(g=o.onRecoverableError)),n=If(n,null,e,1,o??null,a,!1,f,g),e[jt]=n.current,Yr(e),l)for(e=0;e<l.length;e++)o=l[e],a=o._getVersion,a=a(o._source),n.mutableSourceEagerHydrationData==null?n.mutableSourceEagerHydrationData=[o,a]:n.mutableSourceEagerHydrationData.push(o,a);return new Ni(n)},st.render=function(e,n,o){if(!$i(n))throw Error(r(200));return Ai(null,e,n,!1,o)},st.unmountComponentAtNode=function(e){if(!$i(e))throw Error(r(40));return e._reactRootContainer?(Nn(function(){Ai(null,null,e,!1,function(){e._reactRootContainer=null,e[jt]=null})}),!0):!1},st.unstable_batchedUpdates=Bl,st.unstable_renderSubtreeIntoContainer=function(e,n,o,l){if(!$i(o))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Ai(e,n,o,!1,l)},st.version="18.3.1-next-f1338f8080-20240426",st}var Bf;function wg(){if(Bf)return bl.exports;Bf=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(i){console.error(i)}}return t(),bl.exports=Sg(),bl.exports}var os=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){return this.listeners.add(t),this.onSubscribe(),()=>{this.listeners.delete(t),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Cg=class extends os{#e;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const i=()=>t();return window.addEventListener("visibilitychange",i,!1),()=>{window.removeEventListener("visibilitychange",i)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(i=>{typeof i=="boolean"?this.setFocused(i):this.onFocus()})}setFocused(t){this.#e!==t&&(this.#e=t,this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(i=>{i(t)})}isFocused(){return typeof this.#e=="boolean"?this.#e:globalThis.document?.visibilityState!=="hidden"}},Pd=new Cg,Rg={setTimeout:(t,i)=>setTimeout(t,i),clearTimeout:t=>clearTimeout(t),setInterval:(t,i)=>setInterval(t,i),clearInterval:t=>clearInterval(t)},_g=class{#e=Rg;#t=!1;setTimeoutProvider(t){this.#e=t}setTimeout(t,i){return this.#e.setTimeout(t,i)}clearTimeout(t){this.#e.clearTimeout(t)}setInterval(t,i){return this.#e.setInterval(t,i)}clearInterval(t){this.#e.clearInterval(t)}},Cu=new _g;function Pg(t){setTimeout(t,0)}var xg=typeof window>"u"||"Deno"in globalThis;function It(){}function kg(t,i){return typeof t=="function"?t(i):t}function Eg(t){return typeof t=="number"&&t>=0&&t!==1/0}function Mg(t,i){return Math.max(t+(i||0)-Date.now(),0)}function Ru(t,i){return typeof t=="function"?t(i):t}function Lg(t,i){return typeof t=="function"?t(i):t}function Hf(t,i){const{type:r="all",exact:s,fetchStatus:u,predicate:c,queryKey:d,stale:p}=t;if(d){if(s){if(i.queryHash!==$u(d,i.options))return!1}else if(!Po(i.queryKey,d))return!1}if(r!=="all"){const h=i.isActive();if(r==="active"&&!h||r==="inactive"&&h)return!1}return!(typeof p=="boolean"&&i.isStale()!==p||u&&u!==i.state.fetchStatus||c&&!c(i))}function Uf(t,i){const{exact:r,status:s,predicate:u,mutationKey:c}=t;if(c){if(!i.options.mutationKey)return!1;if(r){if(_o(i.options.mutationKey)!==_o(c))return!1}else if(!Po(i.options.mutationKey,c))return!1}return!(s&&i.state.status!==s||u&&!u(i))}function $u(t,i){return(i?.queryKeyHashFn||_o)(t)}function _o(t){return JSON.stringify(t,(i,r)=>_u(r)?Object.keys(r).sort().reduce((s,u)=>(s[u]=r[u],s),{}):r)}function Po(t,i){return t===i?!0:typeof t!=typeof i?!1:t&&i&&typeof t=="object"&&typeof i=="object"?Object.keys(i).every(r=>Po(t[r],i[r])):!1}var Ig=Object.prototype.hasOwnProperty;function xd(t,i,r=0){if(t===i)return t;if(r>500)return i;const s=Gf(t)&&Gf(i);if(!s&&!(_u(t)&&_u(i)))return i;const c=(s?t:Object.keys(t)).length,d=s?i:Object.keys(i),p=d.length,h=s?new Array(p):{};let m=0;for(let y=0;y<p;y++){const v=s?y:d[y],w=t[v],S=i[v];if(w===S){h[v]=w,(s?y<c:Ig.call(t,v))&&m++;continue}if(w===null||S===null||typeof w!="object"||typeof S!="object"){h[v]=S;continue}const C=xd(w,S,r+1);h[v]=C,C===w&&m++}return c===p&&m===c?t:h}function Gf(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function _u(t){if(!Wf(t))return!1;const i=t.constructor;if(i===void 0)return!0;const r=i.prototype;return!(!Wf(r)||!r.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(t)!==Object.prototype)}function Wf(t){return Object.prototype.toString.call(t)==="[object Object]"}function Fg(t){return new Promise(i=>{Cu.setTimeout(i,t)})}function Tg(t,i,r){return typeof r.structuralSharing=="function"?r.structuralSharing(t,i):r.structuralSharing!==!1?xd(t,i):i}function Og(t,i,r=0){const s=[...t,i];return r&&s.length>r?s.slice(1):s}function Dg(t,i,r=0){const s=[i,...t];return r&&s.length>r?s.slice(0,-1):s}var Au=Symbol();function kd(t,i){return!t.queryFn&&i?.initialPromise?()=>i.initialPromise:!t.queryFn||t.queryFn===Au?()=>Promise.reject(new Error(`Missing queryFn: '${t.queryHash}'`)):t.queryFn}function zg(t,i,r){let s=!1,u;return Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(u??=i(),s||(s=!0,u.aborted?r():u.addEventListener("abort",r,{once:!0})),u)}),t}var Ed=(()=>{let t=()=>xg;return{isServer(){return t()},setIsServer(i){t=i}}})();function Ng(){let t,i;const r=new Promise((u,c)=>{t=u,i=c});r.status="pending",r.catch(()=>{});function s(u){Object.assign(r,u),delete r.resolve,delete r.reject}return r.resolve=u=>{s({status:"fulfilled",value:u}),t(u)},r.reject=u=>{s({status:"rejected",reason:u}),i(u)},r}var $g=Pg;function Ag(){let t=[],i=0,r=p=>{p()},s=p=>{p()},u=$g;const c=p=>{i?t.push(p):u(()=>{r(p)})},d=()=>{const p=t;t=[],p.length&&u(()=>{s(()=>{p.forEach(h=>{r(h)})})})};return{batch:p=>{let h;i++;try{h=p()}finally{i--,i||d()}return h},batchCalls:p=>(...h)=>{c(()=>{p(...h)})},schedule:c,setNotifyFunction:p=>{r=p},setBatchNotifyFunction:p=>{s=p},setScheduler:p=>{u=p}}}var et=Ag(),Vg=class extends os{#e=!0;#t;#n;constructor(){super(),this.#n=t=>{if(typeof window<"u"&&window.addEventListener){const i=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",i,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",i),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(t){this.#n=t,this.#t?.(),this.#t=t(this.setOnline.bind(this))}setOnline(t){this.#e!==t&&(this.#e=t,this.listeners.forEach(r=>{r(t)}))}isOnline(){return this.#e}},Zi=new Vg;function jg(t){return Math.min(1e3*2**t,3e4)}function Md(t){return(t??"online")==="online"?Zi.isOnline():!0}var Pu=class extends Error{constructor(t){super("CancelledError"),this.revert=t?.revert,this.silent=t?.silent}};function Ld(t){let i=!1,r=0,s;const u=Ng(),c=()=>u.status!=="pending",d=_=>{if(!c()){const x=new Pu(_);w(x),t.onCancel?.(x)}},p=()=>{i=!0},h=()=>{i=!1},m=()=>Pd.isFocused()&&(t.networkMode==="always"||Zi.isOnline())&&t.canRun(),y=()=>Md(t.networkMode)&&t.canRun(),v=_=>{c()||(s?.(),u.resolve(_))},w=_=>{c()||(s?.(),u.reject(_))},S=()=>new Promise(_=>{s=x=>{(c()||m())&&_(x)},t.onPause?.()}).then(()=>{s=void 0,c()||t.onContinue?.()}),C=()=>{if(c())return;let _;const x=r===0?t.initialPromise:void 0;try{_=x??t.fn()}catch(M){_=Promise.reject(M)}Promise.resolve(_).then(v).catch(M=>{if(c())return;const F=t.retry??(Ed.isServer()?0:3),O=t.retryDelay??jg,z=typeof O=="function"?O(r,M):O,j=F===!0||typeof F=="number"&&r<F||typeof F=="function"&&F(r,M);if(i||!j){w(M);return}r++,t.onFail?.(r,M),Fg(z).then(()=>m()?void 0:S()).then(()=>{i?w(M):C()})})};return{promise:u,status:()=>u.status,cancel:d,continue:()=>(s?.(),u),cancelRetry:p,continueRetry:h,canStart:y,start:()=>(y()?C():S().then(C),u)}}var Id=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Eg(this.gcTime)&&(this.#e=Cu.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(t){this.gcTime=Math.max(this.gcTime||0,t??(Ed.isServer()?1/0:300*1e3))}clearGcTimeout(){this.#e!==void 0&&(Cu.clearTimeout(this.#e),this.#e=void 0)}};function Bg(t){return{onFetch:(i,r)=>{const s=i.options,u=i.fetchOptions?.meta?.fetchMore?.direction,c=i.state.data?.pages||[],d=i.state.data?.pageParams||[];let p={pages:[],pageParams:[]},h=0;const m=async()=>{let y=!1;const v=C=>{zg(C,()=>i.signal,()=>y=!0)},w=kd(i.options,i.fetchOptions),S=async(C,_,x)=>{if(y)return Promise.reject(i.signal.reason);if(_==null&&C.pages.length)return Promise.resolve(C);const F=(()=>{const U={client:i.client,queryKey:i.queryKey,pageParam:_,direction:x?"backward":"forward",meta:i.options.meta};return v(U),U})(),O=await w(F),{maxPages:z}=i.options,j=x?Dg:Og;return{pages:j(C.pages,O,z),pageParams:j(C.pageParams,_,z)}};if(u&&c.length){const C=u==="backward",_=C?Hg:Qf,x={pages:c,pageParams:d},M=_(s,x);p=await S(x,M,C)}else{const C=t??c.length;do{const _=h===0?d[0]??s.initialPageParam:Qf(s,p);if(h>0&&_==null)break;p=await S(p,_),h++}while(h<C)}return p};i.options.persister?i.fetchFn=()=>i.options.persister?.(m,{client:i.client,queryKey:i.queryKey,meta:i.options.meta,signal:i.signal},r):i.fetchFn=m}}}function Qf(t,{pages:i,pageParams:r}){const s=i.length-1;return i.length>0?t.getNextPageParam(i[s],i,r[s],r):void 0}function Hg(t,{pages:i,pageParams:r}){return i.length>0?t.getPreviousPageParam?.(i[0],i,r[0],r):void 0}var Ug=class extends Id{#e;#t;#n;#o;#i;#r;#u;#s;constructor(t){super(),this.#s=!1,this.#u=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.#i=t.client,this.#o=this.#i.getQueryCache(),this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.#t=qf(this.options),this.state=t.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#r?.promise}setOptions(t){if(this.options={...this.#u,...t},t?._type&&(this.#e=t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const i=qf(this.options);i.data!==void 0&&(this.setState(Kf(i.data,i.dataUpdatedAt)),this.#t=i)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.#o.remove(this)}setData(t,i){const r=Tg(this.state.data,t,this.options);return this.#l({data:r,type:"success",dataUpdatedAt:i?.updatedAt,manual:i?.manual}),r}setState(t){this.#l({type:"setState",state:t})}cancel(t){const i=this.#r?.promise;return this.#r?.cancel(t),i?i.then(It).catch(It):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Lg(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===Au||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ru(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!Mg(this.state.dataUpdatedAt,t)}onFocus(){this.observers.find(i=>i.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#r?.continue()}onOnline(){this.observers.find(i=>i.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#r?.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.#o.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(i=>i!==t),this.observers.length||(this.#r&&(this.#s||this.#a()?this.#r.cancel({revert:!0}):this.#r.cancelRetry()),this.scheduleGc()),this.#o.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}#a(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"}invalidate(){this.state.isInvalidated||this.#l({type:"invalidate"})}async fetch(t,i){if(this.state.fetchStatus!=="idle"&&this.#r?.status()!=="rejected"){if(this.state.data!==void 0&&i?.cancelRefetch)this.cancel({silent:!0});else if(this.#r)return this.#r.continueRetry(),this.#r.promise}if(t&&this.setOptions(t),!this.options.queryFn){const h=this.observers.find(m=>m.options.queryFn);h&&this.setOptions(h.options)}const r=new AbortController,s=h=>{Object.defineProperty(h,"signal",{enumerable:!0,get:()=>(this.#s=!0,r.signal)})},u=()=>{const h=kd(this.options,i),y=(()=>{const v={client:this.#i,queryKey:this.queryKey,meta:this.meta};return s(v),v})();return this.#s=!1,this.options.persister?this.options.persister(h,y,this):h(y)},d=(()=>{const h={fetchOptions:i,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:u};return s(h),h})();(this.#e==="infinite"?Bg(this.options.pages):this.options.behavior)?.onFetch(d,this),this.#n=this.state,(this.state.fetchStatus==="idle"||this.state.fetchMeta!==d.fetchOptions?.meta)&&this.#l({type:"fetch",meta:d.fetchOptions?.meta}),this.#r=Ld({initialPromise:i?.initialPromise,fn:d.fetchFn,onCancel:h=>{h instanceof Pu&&h.revert&&this.setState({...this.#n,fetchStatus:"idle"}),r.abort()},onFail:(h,m)=>{this.#l({type:"failed",failureCount:h,error:m})},onPause:()=>{this.#l({type:"pause"})},onContinue:()=>{this.#l({type:"continue"})},retry:d.options.retry,retryDelay:d.options.retryDelay,networkMode:d.options.networkMode,canRun:()=>!0});try{const h=await this.#r.start();if(h===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(h),this.#o.config.onSuccess?.(h,this),this.#o.config.onSettled?.(h,this.state.error,this),h}catch(h){if(h instanceof Pu){if(h.silent)return this.#r.promise;if(h.revert){if(this.state.data===void 0)throw h;return this.state.data}}throw this.#l({type:"error",error:h}),this.#o.config.onError?.(h,this),this.#o.config.onSettled?.(this.state.data,h,this),h}finally{this.scheduleGc()}}#l(t){const i=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...Gg(r.data,this.options),fetchMeta:t.meta??null};case"success":const s={...r,...Kf(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return this.#n=t.manual?s:void 0,s;case"error":const u=t.error;return{...r,error:u,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:u,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=i(this.state),et.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),this.#o.notify({query:this,type:"updated",action:t})})}};function Gg(t,i){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:Md(i.networkMode)?"fetching":"paused",...t===void 0&&{error:null,status:"pending"}}}function Kf(t,i){return{data:t,dataUpdatedAt:i??Date.now(),error:null,isInvalidated:!1,status:"success"}}function qf(t){const i=typeof t.initialData=="function"?t.initialData():t.initialData,r=i!==void 0,s=r?typeof t.initialDataUpdatedAt=="function"?t.initialDataUpdatedAt():t.initialDataUpdatedAt:0;return{data:i,dataUpdateCount:0,dataUpdatedAt:r?s??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}var Wg=class extends Id{#e;#t;#n;#o;constructor(t){super(),this.#e=t.client,this.mutationId=t.mutationId,this.#n=t.mutationCache,this.#t=[],this.state=t.state||Qg(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){this.#t.includes(t)||(this.#t.push(t),this.clearGcTimeout(),this.#n.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.#t=this.#t.filter(i=>i!==t),this.scheduleGc(),this.#n.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.#t.length||(this.state.status==="pending"?this.scheduleGc():this.#n.remove(this))}continue(){return this.#o?.continue()??this.execute(this.state.variables)}async execute(t){const i=()=>{this.#i({type:"continue"})},r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#o=Ld({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(c,d)=>{this.#i({type:"failed",failureCount:c,error:d})},onPause:()=>{this.#i({type:"pause"})},onContinue:i,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});const s=this.state.status==="pending",u=!this.#o.canStart();try{if(s)i();else{this.#i({type:"pending",variables:t,isPaused:u}),this.#n.config.onMutate&&await this.#n.config.onMutate(t,this,r);const d=await this.options.onMutate?.(t,r);d!==this.state.context&&this.#i({type:"pending",context:d,variables:t,isPaused:u})}const c=await this.#o.start();return await this.#n.config.onSuccess?.(c,t,this.state.context,this,r),await this.options.onSuccess?.(c,t,this.state.context,r),await this.#n.config.onSettled?.(c,null,this.state.variables,this.state.context,this,r),await this.options.onSettled?.(c,null,t,this.state.context,r),this.#i({type:"success",data:c}),c}catch(c){try{await this.#n.config.onError?.(c,t,this.state.context,this,r)}catch(d){Promise.reject(d)}try{await this.options.onError?.(c,t,this.state.context,r)}catch(d){Promise.reject(d)}try{await this.#n.config.onSettled?.(void 0,c,this.state.variables,this.state.context,this,r)}catch(d){Promise.reject(d)}try{await this.options.onSettled?.(void 0,c,t,this.state.context,r)}catch(d){Promise.reject(d)}throw this.#i({type:"error",error:c}),c}finally{this.#n.runNext(this)}}#i(t){const i=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=i(this.state),et.batch(()=>{this.#t.forEach(r=>{r.onMutationUpdate(t)}),this.#n.notify({mutation:this,type:"updated",action:t})})}};function Qg(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Kg=class extends os{constructor(t={}){super(),this.config=t,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(t,i,r){const s=new Wg({client:t,mutationCache:this,mutationId:++this.#n,options:t.defaultMutationOptions(i),state:r});return this.add(s),s}add(t){this.#e.add(t);const i=ji(t);if(typeof i=="string"){const r=this.#t.get(i);r?r.push(t):this.#t.set(i,[t])}this.notify({type:"added",mutation:t})}remove(t){if(this.#e.delete(t)){const i=ji(t);if(typeof i=="string"){const r=this.#t.get(i);if(r)if(r.length>1){const s=r.indexOf(t);s!==-1&&r.splice(s,1)}else r[0]===t&&this.#t.delete(i)}}this.notify({type:"removed",mutation:t})}canRun(t){const i=ji(t);if(typeof i=="string"){const s=this.#t.get(i)?.find(u=>u.state.status==="pending");return!s||s===t}else return!0}runNext(t){const i=ji(t);return typeof i=="string"?this.#t.get(i)?.find(s=>s!==t&&s.state.isPaused)?.continue()??Promise.resolve():Promise.resolve()}clear(){et.batch(()=>{this.#e.forEach(t=>{this.notify({type:"removed",mutation:t})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(t){const i={exact:!0,...t};return this.getAll().find(r=>Uf(i,r))}findAll(t={}){return this.getAll().filter(i=>Uf(t,i))}notify(t){et.batch(()=>{this.listeners.forEach(i=>{i(t)})})}resumePausedMutations(){const t=this.getAll().filter(i=>i.state.isPaused);return et.batch(()=>Promise.all(t.map(i=>i.continue().catch(It))))}};function ji(t){return t.options.scope?.id}var qg=class extends os{constructor(t={}){super(),this.config=t,this.#e=new Map}#e;build(t,i,r){const s=i.queryKey,u=i.queryHash??$u(s,i);let c=this.get(u);return c||(c=new Ug({client:t,queryKey:s,queryHash:u,options:t.defaultQueryOptions(i),state:r,defaultOptions:t.getQueryDefaults(s)}),this.add(c)),c}add(t){this.#e.has(t.queryHash)||(this.#e.set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const i=this.#e.get(t.queryHash);i&&(t.destroy(),i===t&&this.#e.delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){et.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return this.#e.get(t)}getAll(){return[...this.#e.values()]}find(t){const i={exact:!0,...t};return this.getAll().find(r=>Hf(i,r))}findAll(t={}){const i=this.getAll();return Object.keys(t).length>0?i.filter(r=>Hf(t,r)):i}notify(t){et.batch(()=>{this.listeners.forEach(i=>{i(t)})})}onFocus(){et.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){et.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Ey=class{#e;#t;#n;#o;#i;#r;#u;#s;constructor(t={}){this.#e=t.queryCache||new qg,this.#t=t.mutationCache||new Kg,this.#n=t.defaultOptions||{},this.#o=new Map,this.#i=new Map,this.#r=0}mount(){this.#r++,this.#r===1&&(this.#u=Pd.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=Zi.subscribe(async t=>{t&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#r--,this.#r===0&&(this.#u?.(),this.#u=void 0,this.#s?.(),this.#s=void 0)}isFetching(t){return this.#e.findAll({...t,fetchStatus:"fetching"}).length}isMutating(t){return this.#t.findAll({...t,status:"pending"}).length}getQueryData(t){const i=this.defaultQueryOptions({queryKey:t});return this.#e.get(i.queryHash)?.state.data}ensureQueryData(t){const i=this.defaultQueryOptions(t),r=this.#e.build(this,i),s=r.state.data;return s===void 0?this.fetchQuery(t):(t.revalidateIfStale&&r.isStaleByTime(Ru(i.staleTime,r))&&this.prefetchQuery(i),Promise.resolve(s))}getQueriesData(t){return this.#e.findAll(t).map(({queryKey:i,state:r})=>{const s=r.data;return[i,s]})}setQueryData(t,i,r){const s=this.defaultQueryOptions({queryKey:t}),c=this.#e.get(s.queryHash)?.state.data,d=kg(i,c);if(d!==void 0)return this.#e.build(this,s).setData(d,{...r,manual:!0})}setQueriesData(t,i,r){return et.batch(()=>this.#e.findAll(t).map(({queryKey:s})=>[s,this.setQueryData(s,i,r)]))}getQueryState(t){const i=this.defaultQueryOptions({queryKey:t});return this.#e.get(i.queryHash)?.state}removeQueries(t){const i=this.#e;et.batch(()=>{i.findAll(t).forEach(r=>{i.remove(r)})})}resetQueries(t,i){const r=this.#e;return et.batch(()=>(r.findAll(t).forEach(s=>{s.reset()}),this.refetchQueries({type:"active",...t},i)))}cancelQueries(t,i={}){const r={revert:!0,...i},s=et.batch(()=>this.#e.findAll(t).map(u=>u.cancel(r)));return Promise.all(s).then(It).catch(It)}invalidateQueries(t,i={}){return et.batch(()=>(this.#e.findAll(t).forEach(r=>{r.invalidate()}),t?.refetchType==="none"?Promise.resolve():this.refetchQueries({...t,type:t?.refetchType??t?.type??"active"},i)))}refetchQueries(t,i={}){const r={...i,cancelRefetch:i.cancelRefetch??!0},s=et.batch(()=>this.#e.findAll(t).filter(u=>!u.isDisabled()&&!u.isStatic()).map(u=>{let c=u.fetch(void 0,r);return r.throwOnError||(c=c.catch(It)),u.state.fetchStatus==="paused"?Promise.resolve():c}));return Promise.all(s).then(It)}fetchQuery(t){const i=this.defaultQueryOptions(t);i.retry===void 0&&(i.retry=!1);const r=this.#e.build(this,i);return r.isStaleByTime(Ru(i.staleTime,r))?r.fetch(i):Promise.resolve(r.state.data)}prefetchQuery(t){return this.fetchQuery(t).then(It).catch(It)}fetchInfiniteQuery(t){return t._type="infinite",this.fetchQuery(t)}prefetchInfiniteQuery(t){return this.fetchInfiniteQuery(t).then(It).catch(It)}ensureInfiniteQueryData(t){return t._type="infinite",this.ensureQueryData(t)}resumePausedMutations(){return Zi.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(t){this.#n=t}setQueryDefaults(t,i){this.#o.set(_o(t),{queryKey:t,defaultOptions:i})}getQueryDefaults(t){const i=[...this.#o.values()],r={};return i.forEach(s=>{Po(t,s.queryKey)&&Object.assign(r,s.defaultOptions)}),r}setMutationDefaults(t,i){this.#i.set(_o(t),{mutationKey:t,defaultOptions:i})}getMutationDefaults(t){const i=[...this.#i.values()],r={};return i.forEach(s=>{Po(t,s.mutationKey)&&Object.assign(r,s.defaultOptions)}),r}defaultQueryOptions(t){if(t._defaulted)return t;const i={...this.#n.queries,...this.getQueryDefaults(t.queryKey),...t,_defaulted:!0};return i.queryHash||(i.queryHash=$u(i.queryKey,i)),i.refetchOnReconnect===void 0&&(i.refetchOnReconnect=i.networkMode!=="always"),i.throwOnError===void 0&&(i.throwOnError=!!i.suspense),!i.networkMode&&i.persister&&(i.networkMode="offlineFirst"),i.queryFn===Au&&(i.enabled=!1),i}defaultMutationOptions(t){return t?._defaulted?t:{...this.#n.mutations,...t?.mutationKey&&this.getMutationDefaults(t.mutationKey),...t,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Xg=Z.createContext(void 0),My=({client:t,children:i})=>(Z.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),ne.jsx(Xg.Provider,{value:t,children:i})),wo=typeof window<"u"?Z.useLayoutEffect:Z.useEffect;function nu(t){const i=Z.useRef({value:t,prev:null}),r=i.current.value;return t!==r&&(i.current={value:t,prev:r}),i.current.prev}function Yg(t,i,r={},s={}){Z.useEffect(()=>{if(!t.current||s.disabled||typeof IntersectionObserver!="function")return;const u=new IntersectionObserver(([c])=>{i(c)},r);return u.observe(t.current),()=>{u.disconnect()}},[i,r,s.disabled,t])}function Jg(t){const i=Z.useRef(null);return Z.useImperativeHandle(t,()=>i.current,[]),i}const Fd=!1;function xo(t){return t[t.length-1]}function Zg(t){return typeof t=="function"}function Bn(t,i){return Zg(t)?t(i):t}const Td=Object.prototype.hasOwnProperty,Xf=Object.prototype.propertyIsEnumerable;function Od(t){for(const i in t)if(Td.call(t,i))return!0;return!1}const bg=()=>Object.create(null),jn=(t,i)=>Hn(t,i,bg);function Hn(t,i,r=()=>({}),s=0){if(t===i)return t;if(s>500)return i;const u=i,c=Zf(t)&&Zf(u);if(!c&&!(bi(t)&&bi(u)))return u;const d=c?t:Yf(t);if(!d)return u;const p=c?u:Yf(u);if(!p)return u;const h=d.length,m=p.length,y=c?new Array(m):r();let v=0;for(let w=0;w<m;w++){const S=c?w:p[w],C=t[S],_=u[S];if(C===_){y[S]=C,(c?w<h:Td.call(t,S))&&v++;continue}if(C===null||_===null||typeof C!="object"||typeof _!="object"){y[S]=_;continue}const x=Hn(C,_,r,s+1);y[S]=x,x===C&&v++}return h===m&&v===h?t:y}function Yf(t){const i=Object.getOwnPropertyNames(t);for(const u of i)if(!Xf.call(t,u))return!1;const r=Object.getOwnPropertySymbols(t);if(r.length===0)return i;const s=i;for(const u of r){if(!Xf.call(t,u))return!1;s.push(u)}return s}function bi(t){if(!Jf(t))return!1;const i=t.constructor;if(typeof i>"u")return!0;const r=i.prototype;return!(!Jf(r)||!r.hasOwnProperty("isPrototypeOf"))}function Jf(t){return Object.prototype.toString.call(t)==="[object Object]"}function Zf(t){return Array.isArray(t)&&t.length===Object.keys(t).length}function Gn(t,i,r){if(t===i)return!0;if(typeof t!=typeof i)return!1;if(Array.isArray(t)&&Array.isArray(i)){if(t.length!==i.length)return!1;for(let s=0,u=t.length;s<u;s++)if(!Gn(t[s],i[s],r))return!1;return!0}if(bi(t)&&bi(i)){const s=r?.ignoreUndefined??!0;if(r?.partial){for(const d in i)if((!s||i[d]!==void 0)&&!Gn(t[d],i[d],r))return!1;return!0}let u=0;if(!s)u=Object.keys(t).length;else for(const d in t)t[d]!==void 0&&u++;let c=0;for(const d in i)if((!s||i[d]!==void 0)&&(c++,c>u||!Gn(t[d],i[d],r)))return!1;return u===c}return!1}function Er(t){let i,r;const s=new Promise((u,c)=>{i=u,r=c});return s.status="pending",s.resolve=u=>{s.status="resolved",s.value=u,i(u),t?.(u)},s.reject=u=>{s.status="rejected",r(u)},s}function ko(t){return!!(t&&typeof t=="object"&&typeof t.then=="function")}function em(t){return t.replace(/[\x00-\x1f\x7f]/g,"")}function bf(t){let i;try{i=decodeURI(t)}catch{i=t.replaceAll(/%[0-9A-F]{2}/gi,r=>{try{return decodeURI(r)}catch{return r}})}return em(i)}const tm=["http:","https:","mailto:","tel:"];function es(t,i){if(!t)return!1;try{const r=new URL(t);return!i.has(r.protocol)}catch{return!1}}function mo(t){if(!t)return{path:t,handledProtocolRelativeURL:!1};if(!/[%\\\x00-\x1f\x7f]/.test(t)&&!t.startsWith("//"))return{path:t,handledProtocolRelativeURL:!1};const i=/%25|%5C/gi;let r=0,s="",u;for(;(u=i.exec(t))!==null;)s+=bf(t.slice(r,u.index))+u[0],r=i.lastIndex;s=s+bf(r?t.slice(r):t);let c=!1;return s.startsWith("//")&&(c=!0,s="/"+s.replace(/^\/+/,"")),{path:s,handledProtocolRelativeURL:c}}function nm(t){return/\s|[^\u0000-\u007F]/.test(t)?t.replace(/\s|[^\u0000-\u007F]/gu,encodeURIComponent):t}function rm(t,i){if(t===i)return!0;if(t.length!==i.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==i[r])return!1;return!0}function Yt(){throw new Error("Invariant failed")}function Eo(t){const i=new Map;let r,s;const u=c=>{c.next&&(c.prev?(c.prev.next=c.next,c.next.prev=c.prev,c.next=void 0,s&&(s.next=c,c.prev=s)):(c.next.prev=void 0,r=c.next,c.next=void 0,s&&(c.prev=s,s.next=c)),s=c)};return{get(c){const d=i.get(c);if(d)return u(d),d.value},set(c,d){if(i.size>=t&&r){const h=r;i.delete(h.key),h.next&&(r=h.next,h.next.prev=void 0),h===s&&(s=void 0)}const p=i.get(c);if(p)p.value=d,u(p);else{const h={key:c,value:d,prev:s};s&&(s.next=h),s=h,r||(r=h),i.set(c,h)}},clear(){i.clear(),r=void 0,s=void 0}}}const Sn=4,Dd=5;function om(t){const i=t.indexOf("{");if(i===-1)return null;const r=t.indexOf("}",i);return r===-1||i+1>=t.length?null:[i,r]}function zd(t,i,r=new Uint16Array(6)){const s=t.indexOf("/",i),u=s===-1?t.length:s,c=t.substring(i,u);if(!c||!c.includes("$"))return r[0]=0,r[1]=i,r[2]=i,r[3]=u,r[4]=u,r[5]=u,r;if(c==="$"){const p=t.length;return r[0]=2,r[1]=i,r[2]=i,r[3]=p,r[4]=p,r[5]=p,r}if(c.charCodeAt(0)===36)return r[0]=1,r[1]=i,r[2]=i+1,r[3]=u,r[4]=u,r[5]=u,r;const d=om(c);if(d){const[p,h]=d,m=c.charCodeAt(p+1);if(m===45){if(p+2<c.length&&c.charCodeAt(p+2)===36){const y=p+3,v=h;if(y<v)return r[0]=3,r[1]=i+p,r[2]=i+y,r[3]=i+v,r[4]=i+h+1,r[5]=u,r}}else if(m===36){const y=p+1,v=p+2;return v===h?(r[0]=2,r[1]=i+p,r[2]=i+y,r[3]=i+v,r[4]=i+h+1,r[5]=t.length,r):(r[0]=1,r[1]=i+p,r[2]=i+v,r[3]=i+h,r[4]=i+h+1,r[5]=u,r)}}return r[0]=0,r[1]=i,r[2]=i,r[3]=u,r[4]=u,r[5]=u,r}function is(t,i,r,s,u,c,d){d?.(r);let p=s;{const h=r.fullPath??r.from,m=h.length,y=r.options?.caseSensitive??t,v=r.options?.params?.parse??r.options?.parseParams;for(;p<m;){const S=zd(h,p,i);let C;const _=p,x=S[5];switch(p=x+1,c++,S[0]){case 0:{const M=h.substring(S[2],S[3]);if(y){const F=u.static?.get(M);if(F)C=F;else{u.static??=new Map;const O=Un(r.fullPath??r.from);O.parent=u,O.depth=c,C=O,u.static.set(M,O)}}else{const F=M.toLowerCase(),O=u.staticInsensitive?.get(F);if(O)C=O;else{u.staticInsensitive??=new Map;const z=Un(r.fullPath??r.from);z.parent=u,z.depth=c,C=z,u.staticInsensitive.set(F,z)}}break}case 1:{const M=h.substring(_,S[1]),F=h.substring(S[4],x),O=y&&!!(M||F),z=M?O?M:M.toLowerCase():void 0,j=F?O?F:F.toLowerCase():void 0,U=!v&&u.dynamic?.find(A=>!A.parse&&A.caseSensitive===O&&A.prefix===z&&A.suffix===j);if(U)C=U;else{const A=ou(1,r.fullPath??r.from,O,z,j);C=A,A.depth=c,A.parent=u,u.dynamic??=[],u.dynamic.push(A)}break}case 3:{const M=h.substring(_,S[1]),F=h.substring(S[4],x),O=y&&!!(M||F),z=M?O?M:M.toLowerCase():void 0,j=F?O?F:F.toLowerCase():void 0,U=!v&&u.optional?.find(A=>!A.parse&&A.caseSensitive===O&&A.prefix===z&&A.suffix===j);if(U)C=U;else{const A=ou(3,r.fullPath??r.from,O,z,j);C=A,A.parent=u,A.depth=c,u.optional??=[],u.optional.push(A)}break}case 2:{const M=h.substring(_,S[1]),F=h.substring(S[4],x),O=y&&!!(M||F),z=M?O?M:M.toLowerCase():void 0,j=F?O?F:F.toLowerCase():void 0,U=ou(2,r.fullPath??r.from,O,z,j);C=U,U.parent=u,U.depth=c,u.wildcard??=[],u.wildcard.push(U)}}u=C}if(v&&r.children&&!r.isRoot&&r.id&&r.id.charCodeAt(r.id.lastIndexOf("/")+1)===95){const S=Un(r.fullPath??r.from);S.kind=Dd,S.parent=u,c++,S.depth=c,u.pathless??=[],u.pathless.push(S),u=S}const w=(r.path||!r.children)&&!r.isRoot;if(w&&h.endsWith("/")){const S=Un(r.fullPath??r.from);S.kind=Sn,S.parent=u,c++,S.depth=c,u.index=S,u=S}u.parse=v??null,u.priority=r.options?.params?.priority??0,w&&!u.route&&(u.route=r,u.fullPath=r.fullPath??r.from)}if(r.children)for(const h of r.children)is(t,i,h,p,u,c,d)}function ru(t,i){if(t.parse&&!i.parse)return-1;if(!t.parse&&i.parse)return 1;if(t.parse&&i.parse&&(t.priority||i.priority))return i.priority-t.priority;if(t.prefix&&i.prefix&&t.prefix!==i.prefix){if(t.prefix.startsWith(i.prefix))return-1;if(i.prefix.startsWith(t.prefix))return 1}if(t.suffix&&i.suffix&&t.suffix!==i.suffix){if(t.suffix.endsWith(i.suffix))return-1;if(i.suffix.endsWith(t.suffix))return 1}return t.prefix&&!i.prefix?-1:!t.prefix&&i.prefix?1:t.suffix&&!i.suffix?-1:!t.suffix&&i.suffix?1:t.caseSensitive&&!i.caseSensitive?-1:!t.caseSensitive&&i.caseSensitive?1:0}function yn(t){if(t.pathless)for(const i of t.pathless)yn(i);if(t.static)for(const i of t.static.values())yn(i);if(t.staticInsensitive)for(const i of t.staticInsensitive.values())yn(i);if(t.dynamic?.length){t.dynamic.sort(ru);for(const i of t.dynamic)yn(i)}if(t.optional?.length){t.optional.sort(ru);for(const i of t.optional)yn(i)}if(t.wildcard?.length){t.wildcard.sort(ru);for(const i of t.wildcard)yn(i)}}function Un(t){return{kind:0,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:t,parent:null,parse:null,priority:0}}function ou(t,i,r,s,u){return{kind:t,depth:0,pathless:null,index:null,static:null,staticInsensitive:null,dynamic:null,optional:null,wildcard:null,route:null,fullPath:i,parent:null,parse:null,priority:0,caseSensitive:r,prefix:s,suffix:u}}function im(t,i){const r=Un("/"),s=new Uint16Array(6);for(const u of t)is(!1,s,u,1,r,0);yn(r),i.masksTree=r,i.flatCache=Eo(1e3)}function sm(t,i){t||="/";const r=i.flatCache.get(t);if(r)return r;const s=Vu(t,i.masksTree);return i.flatCache.set(t,s),s}function lm(t,i,r,s,u){t||="/",s||="/";const c=i?`case\0${t}`:t;let d=u.singleCache.get(c);return d||(d=Un("/"),is(i,new Uint16Array(6),{from:t},1,d,0),u.singleCache.set(c,d)),Vu(s,d,r)}function um(t,i,r=!1){const s=r?t:`nofuzz\0${t}`,u=i.matchCache.get(s);if(u!==void 0)return u;t||="/";let c;try{c=Vu(t,i.segmentTree,r)}catch(d){if(d instanceof URIError)c=null;else throw d}return c&&(c.branch=$d(c.route)),i.matchCache.set(s,c),c}function am(t){return t==="/"?t:t.replace(/\/{1,}$/,"")}function cm(t,i=!1,r){const s=Un(t.fullPath),u=new Uint16Array(6),c={},d={};let p=0;return is(i,u,t,1,s,0,h=>{if(r?.(h,p),h.id in c&&Yt(),c[h.id]=h,p!==0&&h.path){const m=am(h.fullPath);(!d[m]||h.fullPath.endsWith("/"))&&(d[m]=h)}p++}),yn(s),{processedTree:{segmentTree:s,singleCache:Eo(1e3),matchCache:Eo(1e3),flatCache:null,masksTree:null},routesById:c,routesByPath:d}}function Vu(t,i,r=!1){const s=t.split("/"),u=dm(t,s,i,r);if(!u)return null;const[c]=Nd(t,s,u);return{route:u.node.route,rawParams:c}}function Nd(t,i,r){const s=fm(r.node);let u=null;const c=Object.create(null);let d=r.extract?.part??0,p=r.extract?.node??0,h=r.extract?.path??0,m=r.extract?.segment??0;for(;p<s.length;d++,p++,h++,m++){const y=s[p];if(y.kind===Sn)break;if(y.kind===Dd){m--,d--,h--;continue}const v=i[d],w=h;if(v&&(h+=v.length),y.kind===1){u??=r.node.fullPath.split("/");const S=u[m],C=y.prefix?.length??0;if(S.charCodeAt(C)===123){const _=y.suffix?.length??0,x=S.substring(C+2,S.length-_-1),M=v.substring(C,v.length-_);c[x]=decodeURIComponent(M)}else{const _=S.substring(1);c[_]=decodeURIComponent(v)}}else if(y.kind===3){if(r.skipped&1<<p){d--,h=w-1;continue}u??=r.node.fullPath.split("/");const S=u[m],C=y.prefix?.length??0,_=y.suffix?.length??0,x=S.substring(C+3,S.length-_-1),M=y.suffix||y.prefix?v.substring(C,v.length-_):v;M&&(c[x]=decodeURIComponent(M))}else if(y.kind===2){const S=y,C=t.substring(w+(S.prefix?.length??0),t.length-(S.suffix?.length??0)),_=decodeURIComponent(C);c["*"]=_,c._splat=_;break}}return r.rawParams&&Object.assign(c,r.rawParams),[c,{part:d,node:p,path:h,segment:m}]}function $d(t){const i=[t];for(;t.parentRoute;)t=t.parentRoute,i.push(t);return i.reverse(),i}function fm(t){const i=Array(t.depth+1);do i[t.depth]=t,t=t.parent;while(t);return i}function dm(t,i,r,s){if(t==="/"&&r.index)return{node:r.index,skipped:0};const u=!xo(i),c=u&&t!=="/",d=i.length-(u?1:0),p=[{node:r,index:1,skipped:0,depth:1,statics:0,dynamics:0,optionals:0}];let h=null,m=null;for(;p.length;){const y=p.pop(),{node:v,index:w,skipped:S,depth:C,statics:_,dynamics:x,optionals:M}=y;let{extract:F,rawParams:O}=y;if(v.kind===2&&v.route&&!Hi(m,y))continue;if(v.parse){if(!ed(t,i,y))continue;O=y.rawParams,F=y.extract}s&&v.route&&v.kind!==Sn&&Hi(h,y)&&(h=y);const z=w===d;if(z&&(v.route&&(!c||v.kind===Sn||v.kind===2)&&Hi(m,y)&&(m=y),!v.optional&&!v.wildcard&&!v.index&&!v.pathless))continue;const j=z?void 0:i[w];let U;if(z&&v.index){const A={node:v.index,index:w,skipped:S,depth:C+1,statics:_,dynamics:x,optionals:M,extract:F,rawParams:O};let B=!0;if(v.index.parse&&(ed(t,i,A)||(B=!1)),B){if(!x&&!M&&!S&&hm(_,d))return A;Hi(m,A)&&(m=A)}}if(v.wildcard)for(let A=v.wildcard.length-1;A>=0;A--){const B=v.wildcard[A],{prefix:W,suffix:re}=B;if(!(W&&(z||!(B.caseSensitive?j:U??=j.toLowerCase()).startsWith(W)))){if(re){if(z)continue;const oe=i.slice(w).join("/").slice(-re.length);if((B.caseSensitive?oe:oe.toLowerCase())!==re)continue}p.push({node:B,index:d,skipped:S,depth:C+1,statics:_,dynamics:x,optionals:M,extract:F,rawParams:O})}}if(v.optional){const A=S|1<<C,B=C+1;for(let W=v.optional.length-1;W>=0;W--){const re=v.optional[W];p.push({node:re,index:w,skipped:A,depth:B,statics:_,dynamics:x,optionals:M,extract:F,rawParams:O})}if(!z)for(let W=v.optional.length-1;W>=0;W--){const re=v.optional[W],{prefix:oe,suffix:ie}=re;if(oe||ie){const ke=re.caseSensitive?j:U??=j.toLowerCase();if(oe&&!ke.startsWith(oe)||ie&&!ke.endsWith(ie))continue}p.push({node:re,index:w+1,skipped:S,depth:B,statics:_,dynamics:x,optionals:M+Bi(d,w),extract:F,rawParams:O})}}if(!z&&v.dynamic&&j)for(let A=v.dynamic.length-1;A>=0;A--){const B=v.dynamic[A],{prefix:W,suffix:re}=B;if(W||re){const oe=B.caseSensitive?j:U??=j.toLowerCase();if(W&&!oe.startsWith(W)||re&&!oe.endsWith(re))continue}p.push({node:B,index:w+1,skipped:S,depth:C+1,statics:_,dynamics:x+Bi(d,w),optionals:M,extract:F,rawParams:O})}if(!z&&v.staticInsensitive){const A=v.staticInsensitive.get(U??=j.toLowerCase());A&&p.push({node:A,index:w+1,skipped:S,depth:C+1,statics:_+Bi(d,w),dynamics:x,optionals:M,extract:F,rawParams:O})}if(!z&&v.static){const A=v.static.get(j);A&&p.push({node:A,index:w+1,skipped:S,depth:C+1,statics:_+Bi(d,w),dynamics:x,optionals:M,extract:F,rawParams:O})}if(v.pathless){const A=C+1;for(let B=v.pathless.length-1;B>=0;B--){const W=v.pathless[B];p.push({node:W,index:w,skipped:S,depth:A,statics:_,dynamics:x,optionals:M,extract:F,rawParams:O})}}}if(m)return m;if(s&&h){let y=h.index;for(let w=0;w<h.index;w++)y+=i[w].length;const v=y===t.length?"/":t.slice(y);return h.rawParams??=Object.create(null),h.rawParams["**"]=decodeURIComponent(v),h}return null}function Bi(t,i){return 2**(t-i-1)}function hm(t,i){return t===2**(i-1)-1}function ed(t,i,r){let s,u;try{[s,u]=Nd(t,i,r)}catch{return null}if(r.rawParams=s,r.extract=u,!r.node.parse)return!0;try{if(r.node.parse(s)===!1)return null}catch{}return!0}function Hi(t,i){return t?i.statics>t.statics||i.statics===t.statics&&(i.dynamics>t.dynamics||i.dynamics===t.dynamics&&(i.optionals>t.optionals||i.optionals===t.optionals&&((i.node.kind===Sn)>(t.node.kind===Sn)||i.node.kind===Sn==(t.node.kind===Sn)&&i.depth>t.depth))):!0}function qi(t){return ju(t.filter(i=>i!==void 0).join("/"))}function ju(t){return t.replace(/\/{2,}/g,"/")}function Ad(t){return t==="/"?t:t.replace(/^\/{1,}/,"")}function Xt(t){const i=t.length;return i>1&&t[i-1]==="/"?t.replace(/\/{1,}$/,""):t}function Vd(t){return Xt(Ad(t))}function ts(t,i){return t?.endsWith("/")&&t!=="/"&&t!==`${i}/`?t.slice(0,-1):t}function pm(t,i,r){return ts(t,r)===ts(i,r)}function gm({base:t,to:i,trailingSlash:r="never",cache:s}){const u=i.startsWith("/"),c=!u&&i===".";let d;if(s){d=u?i:c?t:t+"\0"+i;const m=s.get(d);if(m)return m}let p;if(c)p=t.split("/");else if(u)p=i.split("/");else{for(p=t.split("/");p.length>1&&xo(p)==="";)p.pop();const m=i.split("/");for(let y=0,v=m.length;y<v;y++){const w=m[y];w===""?y?y===v-1&&p.push(w):p=[w]:w===".."?p.pop():w==="."||p.push(w)}}p.length>1&&(xo(p)===""?r==="never"&&p.pop():r==="always"&&p.push(""));const h=ju(p.join("/"))||"/";return d&&s&&s.set(d,h),h}function mm(t){const i=new Map(t.map(u=>[encodeURIComponent(u),u])),r=Array.from(i.keys()).map(u=>u.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),s=new RegExp(r,"g");return u=>u.replace(s,c=>i.get(c)??c)}function iu(t,i,r){const s=i[t];return typeof s!="string"?s:t==="_splat"?/^[a-zA-Z0-9\-._~!/]*$/.test(s)?s:s.split("/").map(u=>nd(u,r)).join("/"):nd(s,r)}function td({path:t,params:i,decoder:r,...s}){let u=!1;const c=Object.create(null);if(!t||t==="/")return{interpolatedPath:"/",usedParams:c,isMissingParams:u};if(!t.includes("$"))return{interpolatedPath:t,usedParams:c,isMissingParams:u};const d=t.length;let p=0,h,m="";for(;p<d;){const y=p;h=zd(t,y,h);const v=h[5];if(p=v+1,y===v)continue;const w=h[0];if(w===0){m+="/"+t.substring(y,v);continue}if(w===2){const S=i._splat;c._splat=S,c["*"]=S;const C=t.substring(y,h[1]),_=t.substring(h[4],v);if(!S){u=!0,(C||_)&&(m+="/"+C+_);continue}const x=iu("_splat",i,r);m+="/"+C+x+_;continue}if(w===1){const S=t.substring(h[2],h[3]);!u&&!(S in i)&&(u=!0),c[S]=i[S];const C=t.substring(y,h[1]),_=t.substring(h[4],v),x=iu(S,i,r)??"undefined";m+="/"+C+x+_;continue}if(w===3){const S=t.substring(h[2],h[3]),C=i[S];if(C==null)continue;c[S]=C;const _=t.substring(y,h[1]),x=t.substring(h[4],v),M=iu(S,i,r)??"";m+="/"+_+M+x;continue}}return t.endsWith("/")&&(m+="/"),{usedParams:c,interpolatedPath:m||"/",isMissingParams:u}}function nd(t,i){const r=encodeURIComponent(t);return i?.(r)??r}function Je(t){return t?.isNotFound===!0}function vm(t,i=String){const r=new URLSearchParams;for(const s in t){const u=t[s];u!==void 0&&r.set(s,i(u))}return r.toString()}function su(t){return t?t==="false"?!1:t==="true"?!0:+t*0===0&&+t+""===t?+t:t:""}function ym(t){const i=new URLSearchParams(t),r=Object.create(null);for(const[s,u]of i.entries()){const c=r[s];c==null?r[s]=su(u):Array.isArray(c)?c.push(su(u)):r[s]=[c,su(u)]}return r}const Sm=Cm(JSON.parse),wm=Rm(JSON.stringify,JSON.parse);function Cm(t){return i=>{i[0]==="?"&&(i=i.substring(1));const r=ym(i);for(const s in r){const u=r[s];if(typeof u=="string")try{r[s]=t(u)}catch{}}return r}}function Rm(t,i){const r=typeof i=="function";function s(u){if(typeof u=="object"&&u!==null)try{return t(u)}catch{}else if(r&&typeof u=="string")try{return i(u),t(u)}catch{}return u}return u=>{const c=vm(u,s);return c?`?${c}`:""}}const Wn="__root__";function _m(t){if(t.statusCode=t.statusCode||t.code||307,!t._builtLocation&&!t.reloadDocument&&typeof t.href=="string")try{new URL(t.href),t.reloadDocument=!0}catch{}const i=new Headers(t.headers);t.href&&i.get("Location")===null&&i.set("Location",t.href);const r=new Response(null,{status:t.statusCode,headers:i});if(r.options=t,t.throw)throw r;return r}function lt(t){return t instanceof Response&&!!t.options}const xu=t=>{if(!t.rendered)return t.rendered=!0,t.onReady?.()},Pm=t=>t.stores.matchesId.get().some(i=>t.stores.matchStores.get(i)?.get()._forcePending),ss=(t,i)=>!!(t.preload&&!t.router.stores.matchStores.has(i)),Qn=(t,i,r=!0)=>{const s={...t.router.options.context??{}},u=r?i:i-1;for(let c=0;c<=u;c++){const d=t.matches[c];if(!d)continue;const p=t.router.getMatch(d.id);p&&Object.assign(s,p.__routeContext,p.__beforeLoadContext)}return s},rd=(t,i)=>{if(!t.matches.length)return;const r=i.routeId,s=t.matches.findIndex(d=>d.routeId===t.router.routeTree.id),u=s>=0?s:0;let c=r?t.matches.findIndex(d=>d.routeId===r):t.firstBadMatchIndex??t.matches.length-1;c<0&&(c=u);for(let d=c;d>=0;d--){const p=t.matches[d];if(t.router.looseRoutesById[p.routeId].options.notFoundComponent)return d}return r?c:u},wn=(t,i,r)=>{if(!(!lt(r)&&!Je(r)))throw lt(r)&&r.redirectHandled&&!r.options.reloadDocument||(i&&(i._nonReactive.beforeLoadPromise?.resolve(),i._nonReactive.loaderPromise?.resolve(),i._nonReactive.beforeLoadPromise=void 0,i._nonReactive.loaderPromise=void 0,i._nonReactive.error=r,t.updateMatch(i.id,s=>({...s,status:lt(r)?"redirected":Je(r)?"notFound":s.status==="pending"?"success":s.status,context:Qn(t,i.index),isFetching:!1,error:r})),Je(r)&&!r.routeId&&(r.routeId=i.routeId),i._nonReactive.loadPromise?.resolve()),lt(r)&&(t.rendered=!0,r.options._fromLocation=t.location,r.redirectHandled=!0,r=t.router.resolveRedirect(r))),r},jd=(t,i)=>{const r=t.router.getMatch(i);return!!(!r||r._nonReactive.dehydrated)},od=(t,i,r)=>{const s=Qn(t,r);t.updateMatch(i,u=>({...u,context:s}))},vo=(t,i,r)=>{const{id:s,routeId:u}=t.matches[i],c=t.router.looseRoutesById[u];if(r instanceof Promise)throw r;t.firstBadMatchIndex??=i,wn(t,t.router.getMatch(s),r);try{c.options.onError?.(r)}catch(d){r=d,wn(t,t.router.getMatch(s),r)}t.updateMatch(s,d=>(d._nonReactive.beforeLoadPromise?.resolve(),d._nonReactive.beforeLoadPromise=void 0,d._nonReactive.loadPromise?.resolve(),{...d,error:r,status:"error",isFetching:!1,updatedAt:Date.now(),abortController:new AbortController})),!t.preload&&!lt(r)&&!Je(r)&&(t.serialError??=r)},Bd=(t,i,r,s)=>{if(s._nonReactive.pendingTimeout!==void 0)return;const u=r.options.pendingMs??t.router.options.defaultPendingMs;if(t.onReady&&!ss(t,i)&&(r.options.loader||r.options.beforeLoad||Ud(r))&&typeof u=="number"&&u!==1/0&&(r.options.pendingComponent??t.router.options?.defaultPendingComponent)){const c=setTimeout(()=>{xu(t)},u);s._nonReactive.pendingTimeout=c}},xm=(t,i,r)=>{const s=t.router.getMatch(i);if(!s._nonReactive.beforeLoadPromise&&!s._nonReactive.loaderPromise)return;Bd(t,i,r,s);const u=()=>{const c=t.router.getMatch(i);c.preload&&(c.status==="redirected"||c.status==="notFound")&&wn(t,c,c.error)};return s._nonReactive.beforeLoadPromise?s._nonReactive.beforeLoadPromise.then(u):u()},km=(t,i,r,s)=>{const u=t.router.getMatch(i);let c=u._nonReactive.loadPromise;u._nonReactive.loadPromise=Er(()=>{c?.resolve(),c=void 0});const{paramsError:d,searchError:p}=u;d&&vo(t,r,d),p&&vo(t,r,p),Bd(t,i,s,u);const h=new AbortController;let m=!1;const y=()=>{m||(m=!0,t.updateMatch(i,z=>({...z,isFetching:"beforeLoad",fetchCount:z.fetchCount+1,abortController:h})))},v=()=>{u._nonReactive.beforeLoadPromise?.resolve(),u._nonReactive.beforeLoadPromise=void 0,t.updateMatch(i,z=>({...z,isFetching:!1}))};if(!s.options.beforeLoad){t.router.batch(()=>{y(),v()});return}u._nonReactive.beforeLoadPromise=Er();const w={...Qn(t,r,!1),...u.__routeContext},{search:S,params:C,cause:_}=u,x=ss(t,i),M={search:S,abortController:h,params:C,preload:x,context:w,location:t.location,navigate:z=>t.router.navigate({...z,_fromLocation:t.location}),buildLocation:t.router.buildLocation,cause:x?"preload":_,matches:t.matches,routeId:s.id,...t.router.options.additionalContext},F=z=>{if(z===void 0){t.router.batch(()=>{y(),v()});return}(lt(z)||Je(z))&&(y(),vo(t,r,z)),t.router.batch(()=>{y(),t.updateMatch(i,j=>({...j,__beforeLoadContext:z})),v()})};let O;try{if(O=s.options.beforeLoad(M),ko(O))return y(),O.catch(z=>{vo(t,r,z)}).then(F)}catch(z){y(),vo(t,r,z)}F(O)},Em=(t,i)=>{const{id:r,routeId:s}=t.matches[i],u=t.router.looseRoutesById[s],c=()=>p(),d=()=>km(t,r,i,u),p=()=>{if(jd(t,r))return;const h=xm(t,r,u);return ko(h)?h.then(d):d()};return c()},Mm=(t,i,r)=>{const s=t.router.getMatch(i);if(!s||!r.options.head&&!r.options.scripts&&!r.options.headers)return;const u={ssr:t.router.options.ssr,matches:t.matches,match:s,params:s.params,loaderData:s.loaderData};return Promise.all([r.options.head?.(u),r.options.scripts?.(u),r.options.headers?.(u)]).then(([c,d,p])=>({meta:c?.meta,links:c?.links,headScripts:c?.scripts,headers:p,scripts:d,styles:c?.styles}))},Hd=(t,i,r,s,u)=>{const c=i[s-1],{params:d,loaderDeps:p,abortController:h,cause:m}=t.router.getMatch(r),y=Qn(t,s),v=ss(t,r);return{params:d,deps:p,preload:!!v,parentMatchPromise:c,abortController:h,context:y,location:t.location,navigate:w=>t.router.navigate({...w,_fromLocation:t.location}),cause:v?"preload":m,route:u,...t.router.options.additionalContext}},id=async(t,i,r,s,u)=>{try{const c=t.router.getMatch(r);try{(!(Fd??t.router.isServer)||c.ssr===!0)&&Mo(u);const d=u.options.loader,p=typeof d=="function"?d:d?.handler,h=p?.(Hd(t,i,r,s,u)),m=!!p&&ko(h);if((m||u._lazyPromise||u._componentsPromise||u.options.head||u.options.scripts||u.options.headers||c._nonReactive.minPendingPromise)&&t.updateMatch(r,v=>({...v,isFetching:"loader"})),p){const v=m?await h:h;wn(t,t.router.getMatch(r),v),v!==void 0&&t.updateMatch(r,w=>({...w,loaderData:v}))}u._lazyPromise&&await u._lazyPromise;const y=c._nonReactive.minPendingPromise;y&&await y,u._componentsPromise&&await u._componentsPromise,t.updateMatch(r,v=>({...v,error:void 0,context:Qn(t,s),status:"success",isFetching:!1,updatedAt:Date.now()}))}catch(d){let p=d;if(p?.name==="AbortError"){if(c.abortController.signal.aborted){c._nonReactive.loaderPromise?.resolve(),c._nonReactive.loaderPromise=void 0;return}t.updateMatch(r,m=>({...m,status:m.status==="pending"?"success":m.status,isFetching:!1,context:Qn(t,s)}));return}const h=c._nonReactive.minPendingPromise;h&&await h,Je(d)&&await u.options.notFoundComponent?.preload?.(),wn(t,t.router.getMatch(r),d);try{u.options.onError?.(d)}catch(m){p=m,wn(t,t.router.getMatch(r),m)}!lt(p)&&!Je(p)&&await Mo(u,["errorComponent"]),t.updateMatch(r,m=>({...m,error:p,context:Qn(t,s),status:"error",isFetching:!1}))}}catch(c){const d=t.router.getMatch(r);d&&(d._nonReactive.loaderPromise=void 0),wn(t,d,c)}},Lm=async(t,i,r)=>{async function s(S,C,_,x,M){const F=Date.now()-C.updatedAt,O=S?M.options.preloadStaleTime??t.router.options.defaultPreloadStaleTime??3e4:M.options.staleTime??t.router.options.defaultStaleTime??0,z=M.options.shouldReload,j=typeof z=="function"?z(Hd(t,i,u,r,M)):z,{status:U,invalid:A}=x,B=F>=O&&(!!t.forceStaleReload||x.cause==="enter"||_!==void 0&&_!==x.id);d=U==="success"&&(A||(j??B)),S&&M.options.preload===!1||(d&&!t.sync&&y?(p=!0,(async()=>{try{await id(t,i,u,r,M);const W=t.router.getMatch(u);W._nonReactive.loaderPromise?.resolve(),W._nonReactive.loadPromise?.resolve(),W._nonReactive.loaderPromise=void 0,W._nonReactive.loadPromise=void 0}catch(W){lt(W)&&await t.router.navigate(W.options)}})()):U!=="success"||d?await id(t,i,u,r,M):od(t,u,r))}const{id:u,routeId:c}=t.matches[r];let d=!1,p=!1;const h=t.router.looseRoutesById[c],m=h.options.loader,y=((typeof m=="function"?void 0:m?.staleReloadMode)??t.router.options.defaultStaleReloadMode)!=="blocking";if(jd(t,u)){if(!t.router.getMatch(u))return t.matches[r];od(t,u,r)}else{const S=t.router.getMatch(u),C=t.router.stores.matchesId.get()[r],_=(C&&t.router.stores.matchStores.get(C)||null)?.routeId===c?C:t.router.stores.matches.get().find(M=>M.routeId===c)?.id,x=ss(t,u);if(S._nonReactive.loaderPromise){if(S.status==="success"&&!t.sync&&!S.preload&&y)return S;await S._nonReactive.loaderPromise;const M=t.router.getMatch(u),F=M._nonReactive.error||M.error;F&&wn(t,M,F),M.status==="pending"&&await s(x,S,_,M,h)}else{const M=x&&!t.router.stores.matchStores.has(u),F=t.router.getMatch(u);F._nonReactive.loaderPromise=Er(),M!==F.preload&&t.updateMatch(u,O=>({...O,preload:M})),await s(x,S,_,F,h)}}const v=t.router.getMatch(u);p||(v._nonReactive.loaderPromise?.resolve(),v._nonReactive.loadPromise?.resolve(),v._nonReactive.loadPromise=void 0),clearTimeout(v._nonReactive.pendingTimeout),v._nonReactive.pendingTimeout=void 0,p||(v._nonReactive.loaderPromise=void 0),v._nonReactive.dehydrated=void 0;const w=p?v.isFetching:!1;return w!==v.isFetching||v.invalid!==!1?(t.updateMatch(u,S=>({...S,isFetching:w,invalid:!1})),t.router.getMatch(u)):v};async function sd(t){const i=t,r=[];Pm(i.router)&&xu(i);let s;for(let w=0;w<i.matches.length;w++){try{const S=Em(i,w);ko(S)&&await S}catch(S){if(lt(S))throw S;if(Je(S))s=S;else if(!i.preload)throw S;break}if(i.serialError||i.firstBadMatchIndex!=null)break}const u=i.firstBadMatchIndex??i.matches.length,c=s&&!i.preload?rd(i,s):void 0,d=s&&i.preload?0:c!==void 0?Math.min(c+1,u):u;let p,h;for(let w=0;w<d;w++)r.push(Lm(i,r,w));try{await Promise.all(r)}catch{const w=await Promise.allSettled(r);for(const S of w){if(S.status!=="rejected")continue;const C=S.reason;if(lt(C))throw C;Je(C)?p??=C:h??=C}if(h!==void 0)throw h}const m=p??(s&&!i.preload?s:void 0);let y=i.firstBadMatchIndex!==void 0?i.firstBadMatchIndex:i.matches.length-1;if(!m&&s&&i.preload)return i.matches;if(m){const w=rd(i,m);w===void 0&&Yt();const S=i.matches[w],C=i.router.looseRoutesById[S.routeId],_=i.router.options?.defaultNotFoundComponent;!C.options.notFoundComponent&&_&&(C.options.notFoundComponent=_),m.routeId=S.routeId;const x=S.routeId===i.router.routeTree.id;i.updateMatch(S.id,M=>({...M,...x?{status:"success",globalNotFound:!0,error:void 0}:{status:"notFound",error:m},isFetching:!1})),y=w,await Mo(C,["notFoundComponent"])}else if(!i.preload){const w=i.matches[0];w.globalNotFound||i.router.getMatch(w.id)?.globalNotFound&&i.updateMatch(w.id,S=>({...S,globalNotFound:!1,error:void 0}))}if(i.serialError&&i.firstBadMatchIndex!==void 0){const w=i.router.looseRoutesById[i.matches[i.firstBadMatchIndex].routeId];await Mo(w,["errorComponent"])}for(let w=0;w<=y;w++){const{id:S,routeId:C}=i.matches[w],_=i.router.looseRoutesById[C];try{const x=Mm(i,S,_);if(x){const M=await x;i.updateMatch(S,F=>({...F,...M}))}}catch(x){console.error(`Error executing head for route ${C}:`,x)}}const v=xu(i);if(ko(v)&&await v,m)throw m;if(i.serialError&&!i.preload&&!i.onReady)throw i.serialError;return i.matches}function ld(t,i){const r=i.map(s=>t.options[s]?.preload?.()).filter(Boolean);if(r.length!==0)return Promise.all(r)}function Mo(t,i=Xi){!t._lazyLoaded&&t._lazyPromise===void 0&&(t.lazyFn?t._lazyPromise=t.lazyFn().then(s=>{const{id:u,...c}=s.options;Object.assign(t.options,c),t._lazyLoaded=!0,t._lazyPromise=void 0}):t._lazyLoaded=!0);const r=()=>t._componentsLoaded?void 0:i===Xi?(()=>{if(t._componentsPromise===void 0){const s=ld(t,Xi);s?t._componentsPromise=s.then(()=>{t._componentsLoaded=!0,t._componentsPromise=void 0}):t._componentsLoaded=!0}return t._componentsPromise})():ld(t,i);return t._lazyPromise?t._lazyPromise.then(r):r()}function Ud(t){for(const i of Xi)if(t.options[i]?.preload)return!0;return!1}const Xi=["component","errorComponent","pendingComponent","notFoundComponent"];function Im(t){return{input:({url:i})=>{for(const r of t)i=ku(r,i);return i},output:({url:i})=>{for(let r=t.length-1;r>=0;r--)i=Gd(t[r],i);return i}}}function Fm(t){const i=Vd(t.basepath),r=`/${i}`,s=t.caseSensitive?r:r.toLowerCase(),u=`${s}/`;return{input:({url:c})=>{const d=t.caseSensitive?c.pathname:c.pathname.toLowerCase();return d===s?c.pathname="/":d.startsWith(u)&&(c.pathname=c.pathname.slice(r.length)),c},output:({url:c})=>(c.pathname=qi(["/",i,c.pathname]),c)}}function ku(t,i){const r=t?.input?.({url:i});if(r){if(typeof r=="string")return new URL(r);if(r instanceof URL)return r}return i}function Gd(t,i){const r=t?.output?.({url:i});if(r){if(typeof r=="string")return new URL(r);if(r instanceof URL)return r}return i}function Tm(t,i){const{createMutableStore:r,createReadonlyStore:s,batch:u,init:c}=i,d=new Map,p=new Map,h=new Map,m=r(t.status),y=r(t.loadedAt),v=r(t.isLoading),w=r(t.isTransitioning),S=r(t.location),C=r(t.resolvedLocation),_=r(t.statusCode),x=r(t.redirect),M=r([]),F=r([]),O=r([]),z=s(()=>lu(d,M.get())),j=s(()=>lu(p,F.get())),U=s(()=>lu(h,O.get())),A=s(()=>M.get()[0]),B=s(()=>M.get().some(he=>d.get(he)?.get().status==="pending")),W=s(()=>({locationHref:S.get().href,resolvedLocationHref:C.get()?.href,status:m.get()})),re=s(()=>({status:m.get(),loadedAt:y.get(),isLoading:v.get(),isTransitioning:w.get(),matches:z.get(),location:S.get(),resolvedLocation:C.get(),statusCode:_.get(),redirect:x.get()})),oe=Eo(64);function ie(he){let G=oe.get(he);return G||(G=s(()=>{const b=M.get();for(const K of b){const E=d.get(K);if(E&&E.routeId===he)return E.get()}}),oe.set(he,G)),G}const ke={status:m,loadedAt:y,isLoading:v,isTransitioning:w,location:S,resolvedLocation:C,statusCode:_,redirect:x,matchesId:M,pendingIds:F,cachedIds:O,matches:z,pendingMatches:j,cachedMatches:U,firstId:A,hasPending:B,matchRouteDeps:W,matchStores:d,pendingMatchStores:p,cachedMatchStores:h,__store:re,getRouteMatchStore:ie,setMatches:Re,setPending:De,setCached:Ne};Re(t.matches),c?.(ke);function Re(he){uu(he,d,M,r,u)}function De(he){uu(he,p,F,r,u)}function Ne(he){uu(he,h,O,r,u)}return ke}function lu(t,i){const r=[];for(const s of i){const u=t.get(s);u&&r.push(u.get())}return r}function uu(t,i,r,s,u){const c=t.map(p=>p.id),d=new Set(c);u(()=>{for(const p of i.keys())d.has(p)||i.delete(p);for(const p of t){const h=i.get(p.id);if(!h){const m=s(p);m.routeId=p.routeId,i.set(p.id,m);continue}h.routeId=p.routeId,h.get()!==p&&h.set(p)}rm(r.get(),c)||r.set(c)})}var Rn="__TSR_index",ud="popstate",ad="beforeunload";function Om(t){let i=t.getLocation();const r=new Set,s=d=>{i=t.getLocation(),r.forEach(p=>p({location:i,action:d}))},u=d=>{t.notifyOnIndexChange??!0?s(d):i=t.getLocation()},c=async({task:d,navigateOpts:p,...h})=>{if(p?.ignoreBlocker??!1){d();return}const m=t.getBlockers?.()??[],y=h.type==="PUSH"||h.type==="REPLACE";if(typeof document<"u"&&m.length&&y)for(const v of m){const w=Lo(h.path,h.state);if(await v.blockerFn({currentLocation:i,nextLocation:w,action:h.type})){t.onBlocked?.();return}}d()};return{get location(){return i},get length(){return t.getLength()},subscribers:r,subscribe:d=>(r.add(d),()=>{r.delete(d)}),push:(d,p,h)=>{const m=i.state[Rn];p=cd(m+1,p),c({task:()=>{t.pushState(d,p),s({type:"PUSH"})},navigateOpts:h,type:"PUSH",path:d,state:p})},replace:(d,p,h)=>{const m=i.state[Rn];p=cd(m,p),c({task:()=>{t.replaceState(d,p),s({type:"REPLACE"})},navigateOpts:h,type:"REPLACE",path:d,state:p})},go:(d,p)=>{c({task:()=>{t.go(d),u({type:"GO",index:d})},navigateOpts:p,type:"GO"})},back:d=>{c({task:()=>{t.back(d?.ignoreBlocker??!1),u({type:"BACK"})},navigateOpts:d,type:"BACK"})},forward:d=>{c({task:()=>{t.forward(d?.ignoreBlocker??!1),u({type:"FORWARD"})},navigateOpts:d,type:"FORWARD"})},canGoBack:()=>i.state[Rn]!==0,createHref:d=>t.createHref(d),block:d=>{if(!t.setBlockers)return()=>{};const p=t.getBlockers?.()??[];return t.setBlockers([...p,d]),()=>{const h=t.getBlockers?.()??[];t.setBlockers?.(h.filter(m=>m!==d))}},flush:()=>t.flush?.(),destroy:()=>t.destroy?.(),notify:s}}function cd(t,i){i||(i={});const r=Bu();return{...i,key:r,__TSR_key:r,[Rn]:t}}function Wd(t){const i=t?.window??(typeof document<"u"?window:void 0),r=i.history.pushState,s=i.history.replaceState;let u=[];const c=()=>u,d=B=>u=B,p=t?.createHref??(B=>B),h=t?.parseLocation??(()=>Lo(`${i.location.pathname}${i.location.search}${i.location.hash}`,i.history.state));if(!i.history.state?.__TSR_key&&!i.history.state?.key){const B=Bu();i.history.replaceState({[Rn]:0,key:B,__TSR_key:B},"")}let m=h(),y,v=!1,w=!1,S=!1,C=!1;const _=()=>m;let x,M;const F=()=>{x&&(A._ignoreSubscribers=!0,(x.isPush?i.history.pushState:i.history.replaceState)(x.state,"",x.href),A._ignoreSubscribers=!1,x=void 0,M=void 0,y=void 0)},O=(B,W,re)=>{const oe=p(W);M||(y=m),m=Lo(W,re),x={href:oe,state:re,isPush:x?.isPush||B==="push"},M||(M=Promise.resolve().then(()=>F()))},z=B=>{m=h(),A.notify({type:B})},j=async()=>{if(w){w=!1;return}const B=h(),W=B.state[Rn]-m.state[Rn],re=W===1,oe=W===-1,ie=!re&&!oe||v;v=!1;const ke=ie?"GO":oe?"BACK":"FORWARD",Re=ie?{type:"GO",index:W}:{type:oe?"BACK":"FORWARD"};if(S)S=!1;else{const De=c();if(typeof document<"u"&&De.length){for(const Ne of De)if(await Ne.blockerFn({currentLocation:m,nextLocation:B,action:ke})){w=!0,i.history.go(1),A.notify(Re);return}}}m=h(),A.notify(Re)},U=B=>{if(C){C=!1;return}let W=!1;const re=c();if(typeof document<"u"&&re.length)for(const oe of re){const ie=oe.enableBeforeUnload??!0;if(ie===!0){W=!0;break}if(typeof ie=="function"&&ie()===!0){W=!0;break}}if(W)return B.preventDefault(),B.returnValue=""},A=Om({getLocation:_,getLength:()=>i.history.length,pushState:(B,W)=>O("push",B,W),replaceState:(B,W)=>O("replace",B,W),back:B=>(B&&(S=!0),C=!0,i.history.back()),forward:B=>{B&&(S=!0),C=!0,i.history.forward()},go:B=>{v=!0,i.history.go(B)},createHref:B=>p(B),flush:F,destroy:()=>{i.history.pushState=r,i.history.replaceState=s,i.removeEventListener(ad,U,{capture:!0}),i.removeEventListener(ud,j)},onBlocked:()=>{y&&m!==y&&(m=y)},getBlockers:c,setBlockers:d,notifyOnIndexChange:!1});return i.addEventListener(ad,U,{capture:!0}),i.addEventListener(ud,j),i.history.pushState=function(...B){const W=r.apply(i.history,B);return A._ignoreSubscribers||z("PUSH"),W},i.history.replaceState=function(...B){const W=s.apply(i.history,B);return A._ignoreSubscribers||z("REPLACE"),W},A}function Ly(t){const i=typeof document<"u"?window:void 0;return Wd({window:i,parseLocation:()=>{const r=i.location.hash.split("#").slice(1),s=r[0]??"/",u=i.location.search,c=r.slice(1);return Lo(`${s}${u}${c.length===0?"":`#${c.join("#")}`}`,i.history.state)},createHref:r=>`${i.location.pathname}${i.location.search}#${r}`})}function Dm(t){let i=t.replace(/[\x00-\x1f\x7f]/g,"");return i.startsWith("//")&&(i="/"+i.replace(/^\/+/,"")),i}function Lo(t,i){const r=Dm(t),s=r.indexOf("#"),u=r.indexOf("?"),c=Bu();return{href:r,pathname:r.substring(0,s>0?u>0?Math.min(s,u):s:u>0?u:r.length),hash:s>-1?r.substring(s):"",search:u>-1?r.slice(u,s===-1?void 0:s):"",state:i||{[Rn]:0,key:c,__TSR_key:c}}}function Bu(){return(Math.random()+1).toString(36).substring(7)}function kr(t,i){const r=i,s=t;return{fromLocation:r,toLocation:s,pathChanged:r?.pathname!==s.pathname,hrefChanged:r?.href!==s.href,hashChanged:r?.hash!==s.hash}}const Eu=new WeakMap;var zm=class{constructor(t,i){this.tempLocationKey=`${Math.round(Math.random()*1e7)}`,this._scroll={next:!0},this.shouldViewTransition=void 0,this.isViewTransitionTypesSupported=void 0,this.subscribers=new Set,this.routeBranchCache=new WeakMap,this.startTransition=r=>r(),this.update=r=>{const s=this.options,u=this.basepath??s?.basepath??"/",c=this.basepath===void 0,d=s?.rewrite;if(this.options={...s,...r},this.isServer=this.options.isServer??typeof document>"u",this.protocolAllowlist=new Set(this.options.protocolAllowlist),this.options.pathParamsAllowedCharacters&&(this.pathParamsDecoder=mm(this.options.pathParamsAllowedCharacters)),(!this.history||this.options.history&&this.options.history!==this.history)&&(this.options.history?this.history=this.options.history:this.history=Wd()),this.origin=this.options.origin,this.origin||(window?.origin&&window.origin!=="null"?this.origin=window.origin:this.origin="http://localhost"),this.history&&this.updateLatestLocation(),this.options.routeTree!==this.routeTree){this.routeTree=this.options.routeTree;let y;this.resolvePathCache=Eo(1e3),y=this.buildRouteTree(),this.setRoutes(y)}if(!this.stores&&this.latestLocation){const y=this.getStoreConfig(this);this.batch=y.batch,this.stores=Tm($m(this.latestLocation),y),qm(this)}let p=!1;const h=this.options.basepath??"/",m=this.options.rewrite;if(c||u!==h||d!==m){this.basepath=h;const y=[],v=Vd(h);v&&v!=="/"&&y.push(Fm({basepath:h})),m&&y.push(m),this.rewrite=y.length===0?void 0:y.length===1?y[0]:Im(y),this.history&&this.updateLatestLocation(),p=!0}p&&this.stores&&this.stores.location.set(this.latestLocation),typeof window<"u"&&"CSS"in window&&typeof window.CSS?.supports=="function"&&(this.isViewTransitionTypesSupported=window.CSS.supports("selector(:active-view-transition-type(a))"))},this.updateLatestLocation=()=>{this.latestLocation=this.parseLocation(this.history.location,this.latestLocation)},this.buildRouteTree=()=>{const r=cm(this.routeTree,this.options.caseSensitive,(s,u)=>{s.init({originalIndex:u})});return this.options.routeMasks&&im(this.options.routeMasks,r.processedTree),r},this.subscribe=(r,s)=>{const u={eventType:r,fn:s};return this.subscribers.add(u),()=>{this.subscribers.delete(u)}},this.emit=r=>{this.subscribers.forEach(s=>{s.eventType===r.type&&s.fn(r)})},this.parseLocation=(r,s)=>{const u=({pathname:h,search:m,hash:y,href:v,state:w})=>{if(!this.rewrite&&!/[ \x00-\x1f\x7f\u0080-\uffff]/.test(h)){const M=this.options.parseSearch(m),F=this.options.stringifySearch(M);return{href:h+F+y,publicHref:h+F+y,pathname:mo(h).path,external:!1,searchStr:F,search:jn(s?.search,M),hash:mo(y.slice(1)).path,state:Hn(s?.state,w)}}const S=new URL(v,this.origin),C=ku(this.rewrite,S),_=this.options.parseSearch(C.search),x=this.options.stringifySearch(_);return C.search=x,{href:C.href.replace(C.origin,""),publicHref:v,pathname:mo(C.pathname).path,external:!!this.rewrite&&C.origin!==this.origin,searchStr:x,search:jn(s?.search,_),hash:mo(C.hash.slice(1)).path,state:Hn(s?.state,w)}},c=u(r),{__tempLocation:d,__tempKey:p}=c.state;if(d&&(!p||p===this.tempLocationKey)){const h=u(d);return h.state.key=c.state.key,h.state.__TSR_key=c.state.__TSR_key,delete h.state.__tempLocation,{...h,maskedLocation:c}}return c},this.resolvePathWithBase=(r,s)=>gm({base:r,to:s.includes("//")?ju(s):s,trailingSlash:this.options.trailingSlash,cache:this.resolvePathCache}),this.matchRoutes=(r,s,u)=>typeof r=="string"?this.matchRoutesInternal({pathname:r,search:s},u):this.matchRoutesInternal(r,s),this.getMatchedRoutes=r=>Am({pathname:r,routesById:this.routesById,processedTree:this.processedTree}),this.cancelMatch=r=>{const s=this.getMatch(r);s&&(s.abortController.abort(),clearTimeout(s._nonReactive.pendingTimeout),s._nonReactive.pendingTimeout=void 0)},this.cancelMatches=()=>{this.stores.pendingIds.get().forEach(r=>{this.cancelMatch(r)}),this.stores.matchesId.get().forEach(r=>{if(this.stores.pendingMatchStores.has(r))return;const s=this.stores.matchStores.get(r)?.get();s&&(s.status==="pending"||s.isFetching==="loader")&&this.cancelMatch(r)})},this.buildLocation=r=>{const s=(c={})=>{const d=c._fromLocation||this.pendingBuiltLocation||this.latestLocation,p=this.matchRoutesLightweight(d);c.from;const h=c.unsafeRelative==="path"?d.pathname:c.from??p.fullPath,m=c.to?`${c.to}`:void 0,y=p.search,v=Object.assign(Object.create(null),p.params),w=m?.charCodeAt(0)===47?"/":this.resolvePathWithBase(h,"."),S=m?this.resolvePathWithBase(w,m):w,C=c.params===!1||c.params===null?Object.create(null):(c.params??!0)===!0?v:Object.assign(v,Bn(c.params,v)),_=this.routesByPath[Xt(S)];let x;if(_)x=this.getRouteBranch(_);else if(S.includes("$"))x=[];else{const oe=this.getMatchedRoutes(S);x=oe.matchedRoutes,this.options.notFoundRoute&&(!oe.foundRoute||oe.foundRoute.path!=="/"&&oe.routeParams["**"])&&(x=[...x,this.options.notFoundRoute])}if(x.length&&Od(C))for(const oe of x){const ie=oe.options.params?.stringify??oe.options.stringifyParams;if(ie)try{Object.assign(C,ie(C))}catch{}}const M=r.leaveParams?S:mo(td({path:S,params:C,decoder:this.pathParamsDecoder,server:this.isServer}).interpolatedPath).path;let F=y;if(r._includeValidateSearch&&this.options.search?.strict){const oe={};x.forEach(ie=>{if(ie.options.validateSearch)try{Object.assign(oe,Yi(ie.options.validateSearch,{...oe,...F}))}catch{}}),F=oe}F=Vm({search:F,dest:c,destRoutes:x,_includeValidateSearch:r._includeValidateSearch}),F=jn(y,F);const O=this.options.stringifySearch(F),z=c.hash===!0?d.hash:c.hash?Bn(c.hash,d.hash):void 0,j=z?`#${z}`:"";let U=c.state===!0?d.state:c.state?Bn(c.state,d.state):{};U=Hn(d.state,U);const A=`${M}${O}${j}`;let B,W,re=!1;if(this.rewrite){const oe=new URL(A,this.origin),ie=Gd(this.rewrite,oe);B=oe.href.replace(oe.origin,""),ie.origin!==this.origin?(W=ie.href,re=!0):W=ie.pathname+ie.search+ie.hash}else B=nm(A),W=B;return{publicHref:W,href:B,pathname:M,search:F,searchStr:O,state:U,hash:z??"",external:re,unmaskOnReload:c.unmaskOnReload}},u=(c={},d)=>{const p=s(c);let h=d?s(d):void 0;if(!h){const m=Object.create(null);if(this.options.routeMasks){const y=sm(p.pathname,this.processedTree);if(y){Object.assign(m,y.rawParams);const{from:v,params:w,...S}=y.route,C=w===!1||w===null?Object.create(null):(w??!0)===!0?m:Object.assign(m,Bn(w,m));d={from:r.from,...S,params:C},h=s(d)}}}return h&&(p.maskedLocation=h),p};return r.mask?u(r,{from:r.from,...r.mask}):u(r)},this.commitLocation=async({viewTransition:r,ignoreBlocker:s,...u})=>{let c;const d=()=>{const m=["key","__TSR_key","__TSR_index","__hashScrollIntoViewOptions"];m.forEach(v=>{u.state[v]=this.latestLocation.state[v]});const y=Gn(u.state,this.latestLocation.state);return m.forEach(v=>{delete u.state[v]}),y},p=Xt(this.latestLocation.href)===Xt(u.href);let h=this.commitLocationPromise;if(this.commitLocationPromise=Er(()=>{h?.resolve(),h=void 0}),p&&d())this.load();else{let{maskedLocation:m,hashScrollIntoView:y,...v}=u;m&&(v={...m,state:{...m.state,__tempKey:void 0,__tempLocation:{...v,search:v.searchStr,state:{...v.state,__tempKey:void 0,__tempLocation:void 0,__TSR_key:void 0,key:void 0}}}},(v.unmaskOnReload??this.options.unmaskOnReload??!1)&&(v.state.__tempKey=this.tempLocationKey)),v.state.__hashScrollIntoViewOptions=y??this.options.defaultHashScrollIntoView??!0,this.shouldViewTransition=r,c=u.replace?"REPLACE":"PUSH",this.history[c==="REPLACE"?"replace":"push"](v.publicHref,v.state,{ignoreBlocker:s})}return this._scroll.next=u.resetScroll??!0,this.history.subscribers.size||this.load(c?{action:{type:c}}:void 0),this.commitLocationPromise},this.buildAndCommitLocation=({replace:r,resetScroll:s,hashScrollIntoView:u,viewTransition:c,ignoreBlocker:d,href:p,...h}={})=>{if(p){const v=this.history.location.state.__TSR_index,w=Lo(p,{__TSR_index:r?v:v+1}),S=new URL(w.pathname,this.origin);h.to=ku(this.rewrite,S).pathname,h.search=this.options.parseSearch(w.search),h.hash=w.hash.slice(1)}const m=this.buildLocation({...h,_includeValidateSearch:!0});this.pendingBuiltLocation=m;const y=this.commitLocation({...m,viewTransition:c,replace:r,resetScroll:s,hashScrollIntoView:u,ignoreBlocker:d});return Promise.resolve().then(()=>{this.pendingBuiltLocation===m&&(this.pendingBuiltLocation=void 0)}),y},this.navigate=async({to:r,reloadDocument:s,href:u,publicHref:c,...d})=>{let p=!1;if(u)try{new URL(`${u}`),p=!0}catch{}if(p&&!s&&(s=!0),s){if(r!==void 0||!u){const m=this.buildLocation({to:r,...d});u=u??m.publicHref,c=c??m.publicHref}const h=!p&&c?c:u;if(es(h,this.protocolAllowlist))return Promise.resolve();if(!d.ignoreBlocker){const m=this.history.getBlockers?.()??[];for(const y of m)if(y?.blockerFn&&await y.blockerFn({currentLocation:this.latestLocation,nextLocation:this.latestLocation,action:"PUSH"}))return Promise.resolve()}return d.replace?window.location.replace(h):window.location.href=h,Promise.resolve()}return this.buildAndCommitLocation({...d,href:u,to:r,_isNavigate:!0})},this.beforeLoad=()=>{this.cancelMatches(),this.updateLatestLocation();const r=this.matchRoutes(this.latestLocation),s=this.stores.cachedMatches.get().filter(u=>!r.some(c=>c.id===u.id));this.batch(()=>{this.stores.status.set("pending"),this.stores.statusCode.set(200),this.stores.isLoading.set(!0),this.stores.location.set(this.latestLocation),this.stores.setPending(r),this.stores.setCached(s)})},this.load=async r=>{const s=r?.action?.type;let u,c,d;const p=this.stores.resolvedLocation.get()??this.stores.location.get();for(d=new Promise(m=>{this.startTransition(async()=>{try{this.beforeLoad(),s?Eu.set(this.latestLocation,s):Eu.delete(this.latestLocation);const y=this.latestLocation,v=kr(y,this.stores.resolvedLocation.get());this.stores.redirect.get()||this.emit({type:"onBeforeNavigate",...v}),this.emit({type:"onBeforeLoad",...v}),await sd({router:this,sync:r?.sync,forceStaleReload:p.href===y.href,matches:this.stores.pendingMatches.get(),location:y,updateMatch:this.updateMatch,onReady:async()=>{this.startTransition(()=>{this.startViewTransition(async()=>{let w=null,S=null,C=null,_=null;this.batch(()=>{const x=this.stores.pendingMatches.get(),M=x.length,F=this.stores.matches.get();w=M?F.filter(j=>!this.stores.pendingMatchStores.has(j.id)):null;const O=new Set;for(const j of this.stores.pendingMatchStores.values())j.routeId&&O.add(j.routeId);const z=new Set;for(const j of this.stores.matchStores.values())j.routeId&&z.add(j.routeId);S=M?F.filter(j=>!O.has(j.routeId)):null,C=M?x.filter(j=>!z.has(j.routeId)):null,_=M?x.filter(j=>z.has(j.routeId)):F,this.stores.isLoading.set(!1),this.stores.loadedAt.set(Date.now()),M&&(this.stores.setMatches(x),this.stores.setPending([]),this.stores.setCached([...this.stores.cachedMatches.get(),...w.filter(j=>j.status!=="error"&&j.status!=="notFound"&&j.status!=="redirected")]),this.clearExpiredCache())});for(const[x,M]of[[S,"onLeave"],[C,"onEnter"],[_,"onStay"]])if(x)for(const F of x)this.looseRoutesById[F.routeId].options[M]?.(F)})})}})}catch(y){lt(y)?(u=y,this.navigate({...u.options,replace:!0,ignoreBlocker:!0})):Je(y)&&(c=y);const v=u?u.status:c?404:this.stores.matches.get().some(w=>w.status==="error")?500:200;this.batch(()=>{this.stores.statusCode.set(v),this.stores.redirect.set(u)})}this.latestLoadPromise===d&&(this.commitLocationPromise?.resolve(),this.latestLoadPromise=void 0,this.commitLocationPromise=void 0),m()})}),this.latestLoadPromise=d,await d;this.latestLoadPromise&&d!==this.latestLoadPromise;)await this.latestLoadPromise;let h;this.hasNotFoundMatch()?h=404:this.stores.matches.get().some(m=>m.status==="error")&&(h=500),h!==void 0&&this.stores.statusCode.set(h)},this.startViewTransition=r=>{const s=this.shouldViewTransition??this.options.defaultViewTransition;if(this.shouldViewTransition=void 0,s&&typeof document<"u"&&"startViewTransition"in document&&typeof document.startViewTransition=="function"){let u;if(typeof s=="object"&&this.isViewTransitionTypesSupported){const c=this.latestLocation,d=this.stores.resolvedLocation.get(),p=typeof s.types=="function"?s.types(kr(c,d)):s.types;if(p===!1){r();return}u={update:r,types:p}}else u=r;document.startViewTransition(u)}else r()},this.updateMatch=(r,s)=>{this.startTransition(()=>{const u=this.stores.pendingMatchStores.get(r);if(u){u.set(s);return}const c=this.stores.matchStores.get(r);if(c){c.set(s);return}const d=this.stores.cachedMatchStores.get(r);if(d){const p=s(d.get());p.status==="redirected"?this.stores.cachedMatchStores.delete(r)&&this.stores.cachedIds.set(h=>h.filter(m=>m!==r)):d.set(p)}})},this.getMatch=r=>this.stores.cachedMatchStores.get(r)?.get()??this.stores.pendingMatchStores.get(r)?.get()??this.stores.matchStores.get(r)?.get(),this.invalidate=r=>{const s=u=>r?.filter?.(u)??!0?{...u,invalid:!0,...r?.forcePending||u.status==="error"||u.status==="notFound"?{status:"pending",error:void 0}:void 0}:u;return this.batch(()=>{this.stores.setMatches(this.stores.matches.get().map(s)),this.stores.setCached(this.stores.cachedMatches.get().map(s)),this.stores.setPending(this.stores.pendingMatches.get().map(s))}),this.shouldViewTransition=!1,this.load({sync:r?.sync})},this.getParsedLocationHref=r=>r.publicHref||"/",this.resolveRedirect=r=>{const s=r.headers.get("Location");if(!r.options.href||r.options._builtLocation){const u=r.options._builtLocation??this.buildLocation(r.options),c=this.getParsedLocationHref(u);r.options.href=c,r.headers.set("Location",c)}else if(s)try{const u=new URL(s);if(this.origin&&u.origin===this.origin){const c=u.pathname+u.search+u.hash;r.options.href=c,r.headers.set("Location",c)}}catch{}if(r.options.href&&!r.options._builtLocation&&es(r.options.href,this.protocolAllowlist))throw new Error("Redirect blocked: unsafe protocol");return r.headers.get("Location")||r.headers.set("Location",r.options.href),r},this.clearCache=r=>{const s=r?.filter;s!==void 0?this.stores.setCached(this.stores.cachedMatches.get().filter(u=>!s(u))):this.stores.setCached([])},this.clearExpiredCache=()=>{const r=Date.now(),s=u=>{const c=this.looseRoutesById[u.routeId];if(!c.options.loader)return!0;const d=(u.preload?c.options.preloadGcTime??this.options.defaultPreloadGcTime:c.options.gcTime??this.options.defaultGcTime)??300*1e3;return u.status==="error"?!0:r-u.updatedAt>=d};this.clearCache({filter:s})},this.loadRouteChunk=Mo,this.preloadRoute=async r=>{const s=r._builtLocation??this.buildLocation(r);let u=this.matchRoutes(s,{throwOnError:!0,preload:!0,dest:r});const c=new Set([...this.stores.matchesId.get(),...this.stores.pendingIds.get()]),d=new Set([...c,...this.stores.cachedIds.get()]),p=u.filter(h=>!d.has(h.id));if(p.length){const h=this.stores.cachedMatches.get();this.stores.setCached([...h,...p])}try{return u=await sd({router:this,matches:u,location:s,preload:!0,updateMatch:(h,m)=>{c.has(h)?u=u.map(y=>y.id===h?m(y):y):this.updateMatch(h,m)}}),u}catch(h){if(lt(h))return h.options.reloadDocument?void 0:await this.preloadRoute({...h.options,_fromLocation:s});Je(h)||console.error(h);return}},this.matchRoute=(r,s)=>{const u={...r,to:r.to?this.resolvePathWithBase(r.from||"",r.to):void 0,params:r.params||{},leaveParams:!0},c=this.buildLocation(u);if(s?.pending&&this.stores.status.get()!=="pending")return!1;const d=(s?.pending===void 0?!this.stores.isLoading.get():s.pending)?this.latestLocation:this.stores.resolvedLocation.get()||this.stores.location.get(),p=lm(c.pathname,s?.caseSensitive??!1,s?.fuzzy??!1,d.pathname,this.processedTree);return!p||r.params&&!Gn(p.rawParams,r.params,{partial:!0})?!1:s?.includeSearch??!0?Gn(d.search,c.search,{partial:!0})?p.rawParams:!1:p.rawParams},this.hasNotFoundMatch=()=>this.stores.matches.get().some(r=>r.status==="notFound"||r.globalNotFound),this.getStoreConfig=i,this.update({defaultPreloadDelay:50,defaultPendingMs:1e3,defaultPendingMinMs:500,context:void 0,...t,caseSensitive:t.caseSensitive??!1,notFoundMode:t.notFoundMode??"fuzzy",stringifySearch:t.stringifySearch??wm,parseSearch:t.parseSearch??Sm,protocolAllowlist:t.protocolAllowlist??tm}),typeof document<"u"&&(self.__TSR_ROUTER__=this)}isShell(){return!!this.options.isShell}isPrerendering(){return!!this.options.isPrerendering}get state(){return this.stores.__store.get()}setRoutes({routesById:t,routesByPath:i,processedTree:r}){this.routesById=t,this.routesByPath=i,this.processedTree=r;const s=this.options.notFoundRoute;s&&(s.init({originalIndex:99999999999}),this.routesById[s.id]=s)}getRouteBranch(t){let i=this.routeBranchCache.get(t);return i||(i=$d(t),this.routeBranchCache.set(t,i)),i}get looseRoutesById(){return this.routesById}getParentContext(t){return t?.id?t.context??this.options.context??void 0:this.options.context??void 0}matchRoutesInternal(t,i){const r=this.getMatchedRoutes(t.pathname),{foundRoute:s,routeParams:u}=r;let{matchedRoutes:c}=r,d=!1;(s?s.path!=="/"&&u["**"]:Xt(t.pathname))&&(this.options.notFoundRoute?c=[...c,this.options.notFoundRoute]:d=!0);const p=d?Bm(this.options.notFoundMode,c):void 0,h=new Array(c.length),m=new Map;for(const y of this.stores.matchStores.values())y.routeId&&m.set(y.routeId,y.get());for(let y=0;y<c.length;y++){const v=c[y],w=h[y-1];let S,C,_;{const ie=w?.search??t.search,ke=w?._strictSearch??void 0;try{const Re=Yi(v.options.validateSearch,{...ie})??void 0;S={...ie,...Re},C={...ke,...Re},_=void 0}catch(Re){let De=Re;if(Re instanceof ns||(De=new ns(Re.message,{cause:Re})),i?.throwOnError)throw De;S=ie,C={},_=De}}const x=v.options.loaderDeps?.({search:S})??"",M=x?JSON.stringify(x):"",{interpolatedPath:F,usedParams:O}=td({path:v.fullPath,params:u,decoder:this.pathParamsDecoder,server:this.isServer}),z=v.id+F+M,j=this.getMatch(z),U=m.get(v.id),A=j?._strictParams??O;let B;if(!j)try{fd(v,A)}catch(ie){if(Je(ie)||lt(ie)?B=ie:B=new Nm(ie.message,{cause:ie}),i?.throwOnError)throw B}Object.assign(u,A);const W=U?"stay":"enter";let re;if(j)re={...j,cause:W,params:U?.params??u,_strictParams:A,search:jn(U?U.search:j.search,S),_strictSearch:C};else{const ie=v.options.loader||v.options.beforeLoad||v.lazyFn||Ud(v)?"pending":"success";re={id:z,ssr:v.options.ssr,index:y,routeId:v.id,params:U?.params??u,_strictParams:A,pathname:F,updatedAt:Date.now(),search:U?jn(U.search,S):S,_strictSearch:C,searchError:void 0,status:ie,isFetching:!1,error:void 0,paramsError:B,__routeContext:void 0,_nonReactive:{loadPromise:Er()},__beforeLoadContext:void 0,context:{},abortController:new AbortController,fetchCount:0,cause:W,loaderDeps:U?Hn(U.loaderDeps,x):x,invalid:!1,preload:!1,links:void 0,scripts:void 0,headScripts:void 0,meta:void 0,staticData:v.options.staticData||{},fullPath:v.fullPath}}i?.preload||(re.globalNotFound=p===v.id),re.searchError=_;const oe=this.getParentContext(w);re.context={...oe,...re.__routeContext,...re.__beforeLoadContext},h[y]=re}for(let y=0;y<h.length;y++){const v=h[y],w=this.looseRoutesById[v.routeId],S=this.getMatch(v.id),C=m.get(v.routeId);if(v.params=C?jn(C.params,u):u,!S){const _=h[y-1],x=this.getParentContext(_);if(w.options.context){const M={deps:v.loaderDeps,params:v.params,context:x??{},location:t,navigate:F=>this.navigate({...F,_fromLocation:t}),buildLocation:this.buildLocation,cause:v.cause,abortController:v.abortController,preload:!!v.preload,matches:h,routeId:w.id};v.__routeContext=w.options.context(M)??void 0}v.context={...x,...v.__routeContext,...v.__beforeLoadContext}}}return h}matchRoutesLightweight(t){const{matchedRoutes:i,routeParams:r}=this.getMatchedRoutes(t.pathname),s=xo(i),u={...t.search};for(const m of i)try{Object.assign(u,Yi(m.options.validateSearch,u))}catch{}const c=xo(this.stores.matchesId.get()),d=c&&this.stores.matchStores.get(c)?.get(),p=d&&d.routeId===s.id&&d.pathname===t.pathname;let h;if(p)h=d.params;else{const m=Object.assign(Object.create(null),r);for(const y of i)try{fd(y,m)}catch{}h=m}return{matchedRoutes:i,fullPath:s.fullPath,search:u,params:h}}},ns=class extends Error{},Nm=class extends Error{};function $m(t){return{loadedAt:0,isLoading:!1,isTransitioning:!1,status:"idle",resolvedLocation:void 0,location:t,matches:[],statusCode:200}}function Yi(t,i){if(t==null)return{};if("~standard"in t){const r=t["~standard"].validate(i);if(r instanceof Promise)throw new ns("Async validation not supported");if(r.issues)throw new ns(JSON.stringify(r.issues,void 0,2),{cause:r});return r.value}return"parse"in t?t.parse(i):typeof t=="function"?t(i):{}}function Am({pathname:t,routesById:i,processedTree:r}){const s=Object.create(null),u=Xt(t);let c;const d=um(u,r,!0);return d&&(c=d.route,Object.assign(s,d.rawParams)),{matchedRoutes:d?.branch||[i.__root__],routeParams:s,foundRoute:c}}function Vm({search:t,dest:i,destRoutes:r,_includeValidateSearch:s}){return jm(r)(t,i,s??!1)}function jm(t){let i,r;const s=[];for(const c of t){const d=c.options;if("search"in d)d.search?.middlewares&&s.push(...d.search.middlewares);else if(d.preSearchFilters||d.postSearchFilters){const h=({search:m,next:y})=>{const v=y(d.preSearchFilters?d.preSearchFilters.reduce((w,S)=>S(w),m):m);return d.postSearchFilters?d.postSearchFilters.reduce((w,S)=>S(w),v):v};s.push(h)}const p=d.validateSearch;if(p){const h=({search:m,next:y,meta:v})=>{const w=y(m);if(r)try{const S=Yi(p,w);if(v&&S)for(const C in S)C in w||(v.defaulted||=new Map).set(C,S[C]);return{...w,...S}}catch{}return w};s.push(h)}}const u=(c,d,p)=>{if(c>=s.length){if(!i.search)return{};if(i.search===!0)return d;const m=Bn(i.search,d);return p&&(p.explicit=m),m}const h=(m,y)=>{if(y){const v=p||{};return{search:u(c+1,m,v),meta:v}}return u(c+1,m,p)};return s[c]({search:d,next:h,meta:p})};return function(d,p,h){return i=p,r=h,u(0,d)}}function Bm(t,i){if(t!=="root")for(let r=i.length-1;r>=0;r--){const s=i[r];if(s.children)return s.id}return Wn}function fd(t,i){const r=t.options.params?.parse??t.options.parseParams;if(r){const s=r(i);if(s===!1)throw new Error("Route params.parse returned false for a matched route");Object.assign(i,s)}}function Hm(){try{return sessionStorage}catch{return}}const Um="tsr-scroll-restoration-v1_3",Qd=Hm();function Gm(){try{return JSON.parse(Qd?.getItem("tsr-scroll-restoration-v1_3")||"{}")}catch{return{}}}function Wm(){try{Qd?.setItem(Um,JSON.stringify(_r))}catch{}}const _r=Gm(),dd="data-scroll-restoration-id",Qm=t=>t.state.__TSR_key||t.href;function Km(t){const i=t.getAttribute(dd);if(i)return`[${dd}="${i}"]`;let r="",s=t,u;for(;u=s.parentNode;){let c=1,d=s;for(;d=d.previousElementSibling;)c++;const p=`${s.localName}:nth-child(${c})`;r=r?`${p} > ${r}`:p,s=u}return r}let Ui=!1;const Pr="window";function Mu(t){try{return typeof t=="function"?t():document.querySelector(t)}catch{}}function hd(t){const i=[];for(const r of t){if(r===Pr)continue;const s=Mu(r);s&&i.push(s)}return i}function qm(t,i){const r=t.options.scrollRestoration,s=t._scroll;r&&(s.restoring=!0);const u=t.options.getScrollRestorationKey||Qm,c=new Map,d=(m,y,v)=>{const w=c.get(m)||{};w.scrollX=y,w.scrollY=v,c.set(m,w)},p=m=>{if(!(Ui||!s.restoring))if(m.target===document)d(Pr,scrollX,scrollY);else{const y=m.target;d(y,y.scrollLeft,y.scrollTop)}},h=m=>{if(!s.restoring)return;const y=_r[m]||={};for(const[v,w]of c)v===Pr?y[Pr]=w:v.isConnected&&(y[Km(v)]=w)};r&&!s.restoration&&(s.restoration=!0,Ui=!1,history.scrollRestoration="manual",document.addEventListener("scroll",p,!0),t.subscribe("onBeforeLoad",m=>{m.fromLocation&&h(u(m.fromLocation)),c.clear()}),addEventListener("pagehide",()=>{h(u(t.stores.resolvedLocation.get()??t.stores.location.get())),Wm()})),!s.reset&&(s.reset=!0,t.subscribe("onRendered",m=>{const y=t.options.scrollRestorationBehavior,v=t.options.scrollToTopSelectors,w=s.next;let S;if(c.clear(),w||(s.next=!0),typeof t.options.scrollRestoration=="function"&&!t.options.scrollRestoration({location:t.latestLocation}))return;const C=u(m.toLocation),_=m.fromLocation&&u(m.fromLocation);if(s.restoring&&_&&_!==C){const x=_r[_];if(x){let M=_r[C];for(const F in x){if(F===Pr){if(w)continue}else{const O=Mu(F);if(!O||w&&v&&(S??=hd(v),S.includes(O)))continue}M||(M=_r[C]={}),M[F]??=x[F]}}}Ui=!0;try{const x=m.toLocation.hash,M=m.toLocation.state.__hashScrollIntoViewOptions??!0;let F=!1;if(w){const O=Eu.get(m.toLocation),z=x&&M&&(O==="PUSH"||O==="REPLACE"),j=s.restoring?_r[C]:void 0;if(j)for(const U in j){const{scrollX:A,scrollY:B}=j[U];if(U===Pr){if(z)continue;scrollTo({top:B,left:A,behavior:y}),F=!0}else{const W=Mu(U);W&&(W.scrollLeft=A,W.scrollTop=B)}}if(!F&&!x){const U={top:0,left:0,behavior:y};if(scrollTo(U),v){S??=hd(v);for(const A of S)A.scrollTo(U)}}}!F&&x&&M&&document.getElementById(x)?.scrollIntoView(M)}finally{Ui=!1}}))}const Xm="Error preloading route! ☝️";var Kd=class{get to(){return this._to}get id(){return this._id}get path(){return this._path}get fullPath(){return this._fullPath}constructor(t){if(this.init=i=>{this.originalIndex=i.originalIndex;const r=this.options,s=!r?.path&&!r?.id;this.parentRoute=this.options.getParentRoute?.(),s?this._path=Wn:this.parentRoute||Yt();let u=s?Wn:r?.path;u&&u!=="/"&&(u=Ad(u));const c=r?.id||u;let d=s?Wn:qi([this.parentRoute.id==="__root__"?"":this.parentRoute.id,c]);u==="__root__"&&(u="/"),d!=="__root__"&&(d=qi(["/",d]));const p=d==="__root__"?"/":qi([this.parentRoute.fullPath,u]);this._path=u,this._id=d,this._fullPath=p,this._to=Xt(p)},this.addChildren=i=>this._addFileChildren(i),this._addFileChildren=i=>(Array.isArray(i)&&(this.children=i),typeof i=="object"&&i!==null&&(this.children=Object.values(i)),this),this._addFileTypes=()=>this,this.updateLoader=i=>(Object.assign(this.options,i),this),this.update=i=>(Object.assign(this.options,i),this),this.lazy=i=>(this.lazyFn=i,this),this.redirect=i=>_m({from:this.fullPath,...i}),this.options=t||{},this.isRoot=!t?.getParentRoute,t?.id&&t?.path)throw new Error("Route cannot have both an 'id' and a 'path' option.")}},Ym=class extends Kd{constructor(t){super(t)}};function Hu(t){const i=t.errorComponent??Uu;return ne.jsx(Jm,{getResetKey:t.getResetKey,onCatch:t.onCatch,children:({error:r,reset:s})=>r?Z.createElement(i,{error:r,reset:s}):t.children})}var Jm=class extends Z.Component{constructor(...t){super(...t),this.state={error:null}}static getDerivedStateFromProps(t,i){const r=t.getResetKey();return i.error&&i.resetKey!==r?{resetKey:r,error:null}:{resetKey:r}}static getDerivedStateFromError(t){return{error:t}}reset(){this.setState({error:null})}componentDidCatch(t,i){this.props.onCatch&&this.props.onCatch(t,i)}render(){return this.props.children({error:this.state.error,reset:()=>{this.reset()}})}};function Uu({error:t}){const[i,r]=Z.useState(!1);return ne.jsxs("div",{style:{padding:".5rem",maxWidth:"100%"},children:[ne.jsxs("div",{style:{display:"flex",alignItems:"center",gap:".5rem"},children:[ne.jsx("strong",{style:{fontSize:"1rem"},children:"Something went wrong!"}),ne.jsx("button",{style:{appearance:"none",fontSize:".6em",border:"1px solid currentColor",padding:".1rem .2rem",fontWeight:"bold",borderRadius:".25rem"},onClick:()=>r(s=>!s),children:i?"Hide Error":"Show Error"})]}),ne.jsx("div",{style:{height:".25rem"}}),i?ne.jsx("div",{children:ne.jsx("pre",{style:{fontSize:".7em",border:"1px solid red",borderRadius:".25rem",padding:".3rem",color:"red",overflow:"auto"},children:t.message?ne.jsx("code",{children:t.message}):null})}):null]})}function Zm({children:t,fallback:i=null}){return qd()?ne.jsx(Ro.Fragment,{children:t}):ne.jsx(Ro.Fragment,{children:i})}function qd(){return Ro.useSyncExternalStore(bm,()=>!0,()=>!1)}function bm(){return()=>{}}var Xd=Z.createContext(null);function Ct(t){return Z.useContext(Xd)}var ls=Z.createContext(void 0),ev=Z.createContext(void 0),Me=(t=>(t[t.None=0]="None",t[t.Mutable=1]="Mutable",t[t.Watching=2]="Watching",t[t.RecursedCheck=4]="RecursedCheck",t[t.Recursed=8]="Recursed",t[t.Dirty=16]="Dirty",t[t.Pending=32]="Pending",t))(Me||{});function tv({update:t,notify:i,unwatched:r}){return{link:s,unlink:u,propagate:c,checkDirty:d,shallowPropagate:p};function s(m,y,v){const w=y.depsTail;if(w!==void 0&&w.dep===m)return;const S=w!==void 0?w.nextDep:y.deps;if(S!==void 0&&S.dep===m){S.version=v,y.depsTail=S;return}const C=m.subsTail;if(C!==void 0&&C.version===v&&C.sub===y)return;const _=y.depsTail=m.subsTail={version:v,dep:m,sub:y,prevDep:w,nextDep:S,prevSub:C,nextSub:void 0};S!==void 0&&(S.prevDep=_),w!==void 0?w.nextDep=_:y.deps=_,C!==void 0?C.nextSub=_:m.subs=_}function u(m,y=m.sub){const v=m.dep,w=m.prevDep,S=m.nextDep,C=m.nextSub,_=m.prevSub;return S!==void 0?S.prevDep=w:y.depsTail=w,w!==void 0?w.nextDep=S:y.deps=S,C!==void 0?C.prevSub=_:v.subsTail=_,_!==void 0?_.nextSub=C:(v.subs=C)===void 0&&r(v),S}function c(m){let y=m.nextSub,v;e:do{const w=m.sub;let S=w.flags;if(S&60?S&12?S&4?!(S&48)&&h(m,w)?(w.flags=S|40,S&=1):S=0:w.flags=S&-9|32:S=0:w.flags=S|32,S&2&&i(w),S&1){const C=w.subs;if(C!==void 0){const _=(m=C).nextSub;_!==void 0&&(v={value:y,prev:v},y=_);continue}}if((m=y)!==void 0){y=m.nextSub;continue}for(;v!==void 0;)if(m=v.value,v=v.prev,m!==void 0){y=m.nextSub;continue e}break}while(!0)}function d(m,y){let v,w=0,S=!1;e:do{const C=m.dep,_=C.flags;if(y.flags&16)S=!0;else if((_&17)===17){if(t(C)){const x=C.subs;x.nextSub!==void 0&&p(x),S=!0}}else if((_&33)===33){(m.nextSub!==void 0||m.prevSub!==void 0)&&(v={value:m,prev:v}),m=C.deps,y=C,++w;continue}if(!S){const x=m.nextDep;if(x!==void 0){m=x;continue}}for(;w--;){const x=y.subs,M=x.nextSub!==void 0;if(M?(m=v.value,v=v.prev):m=x,S){if(t(y)){M&&p(x),y=m.sub;continue}S=!1}else y.flags&=-33;y=m.sub;const F=m.nextDep;if(F!==void 0){m=F;continue e}}return S}while(!0)}function p(m){do{const y=m.sub,v=y.flags;(v&48)===32&&(y.flags=v|16,(v&6)===2&&i(y))}while((m=m.nextSub)!==void 0)}function h(m,y){let v=y.depsTail;for(;v!==void 0;){if(v===m)return!0;v=v.prevDep}return!1}}function nv(t,i,r){const s=typeof t=="object",u=s?t:void 0;return{next:(s?t.next:t)?.bind(u),error:(s?t.error:i)?.bind(u),complete:(s?t.complete:r)?.bind(u)}}const Lu=[];let Ji=0;const{link:pd,unlink:rv,propagate:ov,checkDirty:Yd,shallowPropagate:gd}=tv({update(t){return t._update()},notify(t){Lu[Iu++]=t,t.flags&=~Me.Watching},unwatched(t){t.depsTail!==void 0&&(t.depsTail=void 0,t.flags=Me.Mutable|Me.Dirty,rs(t))}});let Gi=0,Iu=0,$t,Fu=0;function Jd(t){try{++Fu,t()}finally{--Fu||Zd()}}function rs(t){const i=t.depsTail;let r=i!==void 0?i.nextDep:t.deps;for(;r!==void 0;)r=rv(r,t)}function Zd(){if(!(Fu>0)){for(;Gi<Iu;){const t=Lu[Gi];Lu[Gi++]=void 0,t.notify()}Gi=0,Iu=0}}function md(t,i){const r=typeof t=="function",s=t,u={_snapshot:r?void 0:t,subs:void 0,subsTail:void 0,deps:void 0,depsTail:void 0,flags:r?Me.None:Me.Mutable,get(){return $t!==void 0&&pd(u,$t,Ji),u._snapshot},subscribe(c){const d=nv(c),p={current:!1},h=iv(()=>{u.get(),p.current?d.next?.(u._snapshot):p.current=!0});return{unsubscribe:()=>{h.stop()}}},_update(c){const d=$t,p=i?.compare??Object.is;if(r)$t=u,++Ji,u.depsTail=void 0;else if(c===void 0)return!1;r&&(u.flags=Me.Mutable|Me.RecursedCheck);try{const h=u._snapshot,m=typeof c=="function"?c(h):c===void 0&&r?s(h):c;return h===void 0||!p(h,m)?(u._snapshot=m,!0):!1}finally{$t=d,r&&(u.flags&=~Me.RecursedCheck),rs(u)}}};return r?(u.flags=Me.Mutable|Me.Dirty,u.get=function(){const c=u.flags;if(c&Me.Dirty||c&Me.Pending&&Yd(u.deps,u)){if(u._update()){const d=u.subs;d!==void 0&&gd(d)}}else c&Me.Pending&&(u.flags=c&~Me.Pending);return $t!==void 0&&pd(u,$t,Ji),u._snapshot}):u.set=function(c){if(u._update(c)){const d=u.subs;d!==void 0&&(ov(d),gd(d),Zd())}},u}function iv(t){const i=()=>{const s=$t;$t=r,++Ji,r.depsTail=void 0,r.flags=Me.Watching|Me.RecursedCheck;try{return t()}finally{$t=s,r.flags&=~Me.RecursedCheck,rs(r)}},r={deps:void 0,depsTail:void 0,subs:void 0,subsTail:void 0,flags:Me.Watching|Me.RecursedCheck,notify(){const s=this.flags;s&Me.Dirty||s&Me.Pending&&Yd(this.deps,this)?i():this.flags=Me.Watching},stop(){this.flags=Me.None,this.depsTail=void 0,rs(this)}};return i(),r}var au={exports:{}},cu={},fu={exports:{}},du={};/**
41
+ * @license React
42
+ * use-sync-external-store-shim.production.js
43
+ *
44
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
45
+ *
46
+ * This source code is licensed under the MIT license found in the
47
+ * LICENSE file in the root directory of this source tree.
48
+ */var vd;function sv(){if(vd)return du;vd=1;var t=Io();function i(v,w){return v===w&&(v!==0||1/v===1/w)||v!==v&&w!==w}var r=typeof Object.is=="function"?Object.is:i,s=t.useState,u=t.useEffect,c=t.useLayoutEffect,d=t.useDebugValue;function p(v,w){var S=w(),C=s({inst:{value:S,getSnapshot:w}}),_=C[0].inst,x=C[1];return c(function(){_.value=S,_.getSnapshot=w,h(_)&&x({inst:_})},[v,S,w]),u(function(){return h(_)&&x({inst:_}),v(function(){h(_)&&x({inst:_})})},[v]),d(S),S}function h(v){var w=v.getSnapshot;v=v.value;try{var S=w();return!r(v,S)}catch{return!0}}function m(v,w){return w()}var y=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?m:p;return du.useSyncExternalStore=t.useSyncExternalStore!==void 0?t.useSyncExternalStore:y,du}var yd;function lv(){return yd||(yd=1,fu.exports=sv()),fu.exports}/**
49
+ * @license React
50
+ * use-sync-external-store-shim/with-selector.production.js
51
+ *
52
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE file in the root directory of this source tree.
56
+ */var Sd;function uv(){if(Sd)return cu;Sd=1;var t=Io(),i=lv();function r(m,y){return m===y&&(m!==0||1/m===1/y)||m!==m&&y!==y}var s=typeof Object.is=="function"?Object.is:r,u=i.useSyncExternalStore,c=t.useRef,d=t.useEffect,p=t.useMemo,h=t.useDebugValue;return cu.useSyncExternalStoreWithSelector=function(m,y,v,w,S){var C=c(null);if(C.current===null){var _={hasValue:!1,value:null};C.current=_}else _=C.current;C=p(function(){function M(U){if(!F){if(F=!0,O=U,U=w(U),S!==void 0&&_.hasValue){var A=_.value;if(S(A,U))return z=A}return z=U}if(A=z,s(O,U))return A;var B=w(U);return S!==void 0&&S(A,B)?(O=U,A):(O=U,z=B)}var F=!1,O,z,j=v===void 0?null:v;return[function(){return M(y())},j===null?void 0:function(){return M(j())}]},[y,v,w,S]);var x=u(m,C[0],C[1]);return d(function(){_.hasValue=!0,_.value=x},[x]),h(x),x},cu}var wd;function av(){return wd||(wd=1,au.exports=uv()),au.exports}var cv=av();function fv(t,i){return t===i}function ht(t,i,r=fv){const s=Z.useCallback(d=>{if(!t)return()=>{};const{unsubscribe:p}=t.subscribe(d);return p},[t]),u=Z.useCallback(()=>t?.get(),[t]);return cv.useSyncExternalStoreWithSelector(s,u,u,i,r)}var dv={get:()=>{},subscribe:()=>({unsubscribe:()=>{}})};function Kn(t){const i=Ct(),r=Z.useContext(t.from?ev:ls),s=t.from??r,u=s?t.from?i.stores.getRouteMatchStore(s):i.stores.matchStores.get(s):void 0,c=Z.useRef(void 0);return ht(u??dv,d=>{if((t.shouldThrow??!0)&&!d&&Yt(),d===void 0)return;const p=t.select?t.select(d):d;if(t.structuralSharing??i.options.defaultStructuralSharing){const h=Hn(c.current,p);return c.current=h,h}return p})}function bd(t){return Kn({from:t.from,strict:t.strict,structuralSharing:t.structuralSharing,select:i=>t.select?t.select(i.loaderData):i.loaderData})}function eh(t){const{select:i,...r}=t;return Kn({...r,select:s=>i?i(s.loaderDeps):s.loaderDeps})}function th(t){return Kn({from:t.from,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,strict:t.strict,select:i=>{const r=t.strict===!1?i.params:i._strictParams;return t.select?t.select(r):r}})}function nh(t){return Kn({from:t.from,strict:t.strict,shouldThrow:t.shouldThrow,structuralSharing:t.structuralSharing,select:i=>t.select?t.select(i.search):i.search})}function rh(t){const i=Ct();return Z.useCallback(r=>i.navigate({...r,from:r.from??t?.from}),[t?.from,i])}function oh(t){return Kn({...t,select:i=>t.select?t.select(i.context):i.context})}var hv=wg();function pv(t,i){const r=Ct(),s=Jg(i),{activeProps:u,inactiveProps:c,activeOptions:d,to:p,preload:h,preloadDelay:m,preloadIntentProximity:y,hashScrollIntoView:v,replace:w,startTransition:S,resetScroll:C,viewTransition:_,children:x,target:M,disabled:F,style:O,className:z,onClick:j,onBlur:U,onFocus:A,onMouseEnter:B,onMouseLeave:W,onTouchStart:re,ignoreBlocker:oe,params:ie,search:ke,hash:Re,state:De,mask:Ne,reloadDocument:he,unsafeRelative:G,from:b,_fromLocation:K,...E}=t,D=qd(),ce=Z.useMemo(()=>t,[r,t.from,t._fromLocation,t.hash,t.to,t.search,t.params,t.state,t.mask,t.unsafeRelative]),fe=ht(r.stores.location,Ce=>Ce,(Ce,Ue)=>Ce.href===Ue.href),se=Z.useMemo(()=>{const Ce={_fromLocation:fe,...ce};return r.buildLocation(Ce)},[r,fe,ce]),pe=se.maskedLocation?se.maskedLocation.publicHref:se.publicHref,Se=se.maskedLocation?se.maskedLocation.external:se.external,ge=Z.useMemo(()=>wv(pe,Se,r.history,F),[F,Se,pe,r.history]),ye=Z.useMemo(()=>{if(ge?.external)return es(ge.href,r.protocolAllowlist)?void 0:ge.href;if(!Cv(p)&&!(typeof p!="string"||p.indexOf(":")===-1))try{return new URL(p),es(p,r.protocolAllowlist)?void 0:p}catch{}},[p,ge,r.protocolAllowlist]),He=Z.useMemo(()=>{if(ye)return!1;if(d?.exact){if(!pm(fe.pathname,se.pathname,r.basepath))return!1}else{const Ce=ts(fe.pathname,r.basepath),Ue=ts(se.pathname,r.basepath);if(!(Ce.startsWith(Ue)&&(Ce.length===Ue.length||Ce[Ue.length]==="/")))return!1}return(d?.includeSearch??!0)&&!Gn(fe.search,se.search,{partial:!d?.exact,ignoreUndefined:!d?.explicitUndefined})?!1:d?.includeHash?D&&fe.hash===se.hash:!0},[d?.exact,d?.explicitUndefined,d?.includeHash,d?.includeSearch,fe,ye,D,se.hash,se.pathname,se.search,r.basepath]),At=He?Bn(u,{})??gv:hu,Pn=He?hu:Bn(c,{})??hu,xn=[z,At.className,Pn.className].filter(Boolean).join(" "),qn=(O||At.style||Pn.style)&&{...O,...At.style,...Pn.style},[Fo,Mr]=Z.useState(!1),Xn=Z.useRef(!1),Vt=t.reloadDocument||ye?!1:h??r.options.defaultPreload,kn=m??r.options.defaultPreloadDelay??0,ut=Z.useCallback(()=>{r.preloadRoute({...ce,_builtLocation:se}).catch(Ce=>{console.warn(Ce),console.warn(Xm)})},[r,ce,se]);Yg(s,Z.useCallback(Ce=>{Ce?.isIntersecting&&ut()},[ut]),Sv,{disabled:!!F||Vt!=="viewport"}),Z.useEffect(()=>{Xn.current||!F&&Vt==="render"&&(ut(),Xn.current=!0)},[F,ut,Vt]);const Jt=Ce=>{const Ue=Ce.currentTarget.getAttribute("target"),Rt=M!==void 0?M:Ue;if(!F&&!Rv(Ce)&&!Ce.defaultPrevented&&(!Rt||Rt==="_self")&&Ce.button===0){Ce.preventDefault(),hv.flushSync(()=>{Mr(!0)});const Jn=r.subscribe("onResolved",()=>{Jn(),Mr(!1)});r.navigate({...ce,replace:w,resetScroll:C,hashScrollIntoView:v,startTransition:S,viewTransition:_,ignoreBlocker:oe})}};if(ye)return{...E,ref:s,href:ye,...x&&{children:x},...M&&{target:M},...F&&{disabled:F},...O&&{style:O},...z&&{className:z},...j&&{onClick:j},...U&&{onBlur:U},...A&&{onFocus:A},...B&&{onMouseEnter:B},...W&&{onMouseLeave:W},...re&&{onTouchStart:re}};const Yn=Ce=>{if(F||Vt!=="intent")return;if(!kn){ut();return}const Ue=Ce.currentTarget;if(yo.has(Ue))return;const Rt=setTimeout(()=>{yo.delete(Ue),ut()},kn);yo.set(Ue,Rt)},To=Ce=>{F||Vt!=="intent"||ut()},Lr=Ce=>{if(F||!Vt||!kn)return;const Ue=Ce.currentTarget,Rt=yo.get(Ue);Rt&&(clearTimeout(Rt),yo.delete(Ue))};return{...E,...At,...Pn,href:ge?.href,ref:s,onClick:Rr([j,Jt]),onBlur:Rr([U,Lr]),onFocus:Rr([A,Yn]),onMouseEnter:Rr([B,Yn]),onMouseLeave:Rr([W,Lr]),onTouchStart:Rr([re,To]),disabled:!!F,target:M,...qn&&{style:qn},...xn&&{className:xn},...F&&mv,...He&&vv,...D&&Fo&&yv}}var hu={},gv={className:"active"},mv={role:"link","aria-disabled":!0},vv={"data-status":"active","aria-current":"page"},yv={"data-transitioning":"transitioning"},yo=new WeakMap,Sv={rootMargin:"100px"},Rr=t=>i=>{for(const r of t)if(r){if(i.defaultPrevented)return;r(i)}};function wv(t,i,r,s){if(!s)return i?{href:t,external:!0}:{href:r.createHref(t)||"/",external:!1}}function Cv(t){if(typeof t!="string")return!1;const i=t.charCodeAt(0);return i===47?t.charCodeAt(1)!==47:i===46}var ih=Z.forwardRef((t,i)=>{const{_asChild:r,...s}=t,{type:u,...c}=pv(s,i),d=typeof s.children=="function"?s.children({isActive:c["data-status"]==="active"}):s.children;if(!r){const{disabled:p,...h}=c;return Z.createElement("a",h,d)}return Z.createElement(r,c,d)});function Rv(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}var _v=class extends Kd{constructor(t){super(t),this.useMatch=i=>Kn({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>oh({...i,from:this.id}),this.useSearch=i=>nh({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>th({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>eh({...i,from:this.id}),this.useLoaderData=i=>bd({...i,from:this.id}),this.useNavigate=()=>rh({from:this.fullPath}),this.Link=Ro.forwardRef((i,r)=>ne.jsx(ih,{ref:r,from:this.fullPath,...i}))}};function Iy(t){return new _v(t)}var Pv=class extends Ym{constructor(t){super(t),this.useMatch=i=>Kn({select:i?.select,from:this.id,structuralSharing:i?.structuralSharing}),this.useRouteContext=i=>oh({...i,from:this.id}),this.useSearch=i=>nh({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useParams=i=>th({select:i?.select,structuralSharing:i?.structuralSharing,from:this.id}),this.useLoaderDeps=i=>eh({...i,from:this.id}),this.useLoaderData=i=>bd({...i,from:this.id}),this.useNavigate=()=>rh({from:this.fullPath}),this.Link=Ro.forwardRef((i,r)=>ne.jsx(ih,{ref:r,from:this.fullPath,...i}))}};function Fy(t){return new Pv(t)}function xv(t){const i=Ct(),r=`not-found-${ht(i.stores.location,s=>s.pathname)}-${ht(i.stores.status,s=>s)}`;return ne.jsx(Hu,{getResetKey:()=>r,onCatch:(s,u)=>{if(Je(s))t.onCatch?.(s,u);else throw s},errorComponent:({error:s})=>{if(Je(s))return t.fallback?.(s);throw s},children:t.children})}function kv(){return ne.jsx("p",{children:"Not Found"})}function xr(t){return ne.jsx(ne.Fragment,{children:t.children})}function sh(t,i,r){return i.options.notFoundComponent?ne.jsx(i.options.notFoundComponent,{...r}):t.options.defaultNotFoundComponent?ne.jsx(t.options.defaultNotFoundComponent,{...r}):ne.jsx(kv,{})}function Ev(t){return null}function Mv(){return Ev(Ct()),null}var lh=Z.memo(function({matchId:i}){const r=Ct(),s=r.stores.matchStores.get(i);s||Yt();const u=ht(r.stores.loadedAt,d=>d),c=ht(s,d=>d);return ne.jsx(Lv,{router:r,matchId:i,resetKey:u,matchState:Z.useMemo(()=>{const d=c.routeId,p=r.routesById[d].parentRoute?.id;return{routeId:d,ssr:c.ssr,_displayPending:c._displayPending,parentRouteId:p}},[c._displayPending,c.routeId,c.ssr,r.routesById])})});function Lv({router:t,matchId:i,resetKey:r,matchState:s}){const u=t.routesById[s.routeId],c=u.options.pendingComponent??t.options.defaultPendingComponent,d=c?ne.jsx(c,{}):null,p=u.options.errorComponent??t.options.defaultErrorComponent,h=u.options.onCatch??t.options.defaultOnCatch,m=u.isRoot?u.options.notFoundComponent??t.options.notFoundRoute?.options.component:u.options.notFoundComponent,y=s.ssr===!1||s.ssr==="data-only",v=(!u.isRoot||u.options.wrapInSuspense||y)&&(u.options.wrapInSuspense??c??(u.options.errorComponent?.preload||y))?Z.Suspense:xr,w=p?Hu:xr,S=m?xv:xr;return ne.jsxs(u.isRoot?u.options.shellComponent??xr:xr,{children:[ne.jsx(ls.Provider,{value:i,children:ne.jsx(v,{fallback:d,children:ne.jsx(w,{getResetKey:()=>r,errorComponent:p||Uu,onCatch:(C,_)=>{if(Je(C))throw C.routeId??=s.routeId,C;h?.(C,_)},children:ne.jsx(S,{fallback:C=>{if(C.routeId??=s.routeId,!m||C.routeId&&C.routeId!==s.routeId||!C.routeId&&!u.isRoot)throw C;return Z.createElement(m,C)},children:y||s._displayPending?ne.jsx(Zm,{fallback:d,children:ne.jsx(Cd,{matchId:i})}):ne.jsx(Cd,{matchId:i})})})})}),s.parentRouteId===Wn?ne.jsxs(ne.Fragment,{children:[ne.jsx(Iv,{resetKey:r}),t.options.scrollRestoration&&Fd?ne.jsx(Mv,{}):null]}):null]})}function Iv({resetKey:t}){const i=Ct(),r=Z.useRef(void 0);return wo(()=>{const s=i.latestLocation.href;(r.current===void 0||r.current!==s)&&(i.emit({type:"onRendered",...kr(i.stores.location.get(),i.stores.resolvedLocation.get())}),r.current=s)},[i.latestLocation.state.__TSR_key,t,i]),null}var Cd=Z.memo(function({matchId:i}){const r=Ct(),s=(y,v)=>r.getMatch(y.id)?._nonReactive[v]??y._nonReactive[v],u=r.stores.matchStores.get(i);u||Yt();const c=ht(u,y=>y),d=c.routeId,p=r.routesById[d],h=Z.useMemo(()=>{const y=(r.routesById[d].options.remountDeps??r.options.defaultRemountDeps)?.({routeId:d,loaderDeps:c.loaderDeps,params:c._strictParams,search:c._strictSearch});return y?JSON.stringify(y):void 0},[d,c.loaderDeps,c._strictParams,c._strictSearch,r.options.defaultRemountDeps,r.routesById]),m=Z.useMemo(()=>{const y=p.options.component??r.options.defaultComponent;return y?ne.jsx(y,{},h):ne.jsx(Fv,{})},[h,p.options.component,r.options.defaultComponent]);if(c._displayPending)throw s(c,"displayPendingPromise");if(c._forcePending)throw s(c,"minPendingPromise");if(c.status==="pending"){const y=p.options.pendingMinMs??r.options.defaultPendingMinMs;if(y){const v=r.getMatch(c.id);if(v&&!v._nonReactive.minPendingPromise){const w=Er();v._nonReactive.minPendingPromise=w,setTimeout(()=>{w.resolve(),v._nonReactive.minPendingPromise=void 0},y)}}throw s(c,"loadPromise")}if(c.status==="notFound")return Je(c.error)||Yt(),sh(r,p,c.error);if(c.status==="redirected")throw lt(c.error)||Yt(),s(c,"loadPromise");if(c.status==="error")throw c.error;return m}),Fv=Z.memo(function(){const i=Ct(),r=Z.useContext(ls);let s,u=!1,c;{const m=r?i.stores.matchStores.get(r):void 0;[s,u]=ht(m,y=>[y?.routeId,y?.globalNotFound??!1]),c=ht(i.stores.matchesId,y=>y[y.findIndex(v=>v===r)+1])}const d=s?i.routesById[s]:void 0,p=i.options.defaultPendingComponent?ne.jsx(i.options.defaultPendingComponent,{}):null;if(u)return d||Yt(),sh(i,d,void 0);if(!c)return null;const h=ne.jsx(lh,{matchId:c});return s===Wn?ne.jsx(Z.Suspense,{fallback:p,children:h}):h});function Tv(){const t=Ct(),i=Z.useRef({router:t,mounted:!1}),[r,s]=Z.useState(!1),u=ht(t.stores.isLoading,v=>v),c=ht(t.stores.hasPending,v=>v),d=nu(u),p=u||r||c,h=nu(p),m=u||c,y=nu(m);return t.startTransition=v=>{s(!0),Z.startTransition(()=>{v(),s(!1)})},Z.useEffect(()=>{const v=t.history.subscribe(t.load),w=t.buildLocation({to:t.latestLocation.pathname,search:!0,params:!0,hash:!0,state:!0,_includeValidateSearch:!0});return Xt(t.latestLocation.publicHref)!==Xt(w.publicHref)&&t.commitLocation({...w,replace:!0}),()=>{v()}},[t,t.history]),wo(()=>{if(typeof window<"u"&&t.ssr||i.current.router===t&&i.current.mounted)return;i.current={router:t,mounted:!0},(async()=>{try{await t.load()}catch(w){console.error(w)}})()},[t]),wo(()=>{d&&!u&&t.emit({type:"onLoad",...kr(t.stores.location.get(),t.stores.resolvedLocation.get())})},[d,t,u]),wo(()=>{y&&!m&&t.emit({type:"onBeforeRouteMount",...kr(t.stores.location.get(),t.stores.resolvedLocation.get())})},[m,y,t]),wo(()=>{if(h&&!p){const v=kr(t.stores.location.get(),t.stores.resolvedLocation.get());t.emit({type:"onResolved",...v}),Jd(()=>{t.stores.status.set("idle"),t.stores.resolvedLocation.set(t.stores.location.get())})}},[p,h,t]),null}function Ov(){const t=Ct(),i=t.routesById[Wn].options.pendingComponent??t.options.defaultPendingComponent,r=i?ne.jsx(i,{}):null,s=ne.jsxs(typeof document<"u"&&t.ssr?xr:Z.Suspense,{fallback:r,children:[ne.jsx(Tv,{}),ne.jsx(Dv,{})]});return t.options.InnerWrap?ne.jsx(t.options.InnerWrap,{children:s}):s}function Dv(){const t=Ct(),i=ht(t.stores.firstId,u=>u),r=ht(t.stores.loadedAt,u=>u),s=i?ne.jsx(lh,{matchId:i}):null;return ne.jsx(ls.Provider,{value:i,children:t.options.disableGlobalCatchBoundary?s:ne.jsx(Hu,{getResetKey:()=>r,errorComponent:Uu,onCatch:void 0,children:s})})}var zv=t=>({createMutableStore:md,createReadonlyStore:md,batch:Jd}),Ty=t=>new Nv(t),Nv=class extends zm{constructor(t){super(t,zv)}};function $v({router:t,children:i,...r}){Od(r)&&t.update({...t.options,...r,context:{...t.options.context,...r.context}});const s=ne.jsx(Xd.Provider,{value:t,children:i});return t.options.Wrap?ne.jsx(t.options.Wrap,{children:s}):s}function Oy({router:t,...i}){return ne.jsx($v,{router:t,...i,children:ne.jsx(Ov,{})})}/**
57
+ * table-core
58
+ *
59
+ * Copyright (c) TanStack
60
+ *
61
+ * This source code is licensed under the MIT license found in the
62
+ * LICENSE.md file in the root directory of this source tree.
63
+ *
64
+ * @license MIT
65
+ */function Dy(){return{accessor:(t,i)=>typeof t=="function"?{...i,accessorFn:t}:{...i,accessorKey:t},display:t=>t,group:t=>t}}function Cn(t,i){return typeof t=="function"?t(i):t}function pt(t,i){return r=>{i.setState(s=>({...s,[t]:Cn(r,s[t])}))}}function us(t){return t instanceof Function}function Av(t){return Array.isArray(t)&&t.every(i=>typeof i=="number")}function Vv(t,i){const r=[],s=u=>{u.forEach(c=>{r.push(c);const d=i(c);d!=null&&d.length&&s(d)})};return s(t),r}function le(t,i,r){let s=[],u;return c=>{let d;r.key&&r.debug&&(d=Date.now());const p=t(c);if(!(p.length!==s.length||p.some((y,v)=>s[v]!==y)))return u;s=p;let m;if(r.key&&r.debug&&(m=Date.now()),u=i(...p),r==null||r.onChange==null||r.onChange(u),r.key&&r.debug&&r!=null&&r.debug()){const y=Math.round((Date.now()-d)*100)/100,v=Math.round((Date.now()-m)*100)/100,w=v/16,S=(C,_)=>{for(C=String(C);C.length<_;)C=" "+C;return C};console.info(`%c⏱ ${S(v,5)} /${S(y,5)} ms`,`
66
+ font-size: .6rem;
67
+ font-weight: bold;
68
+ color: hsl(${Math.max(0,Math.min(120-120*w,120))}deg 100% 31%);`,r?.key)}return u}}function ue(t,i,r,s){return{debug:()=>{var u;return(u=t?.debugAll)!=null?u:t[i]},key:!1,onChange:s}}function jv(t,i,r,s){const u=()=>{var d;return(d=c.getValue())!=null?d:t.options.renderFallbackValue},c={id:`${i.id}_${r.id}`,row:i,column:r,getValue:()=>i.getValue(s),renderValue:u,getContext:le(()=>[t,r,i,c],(d,p,h,m)=>({table:d,column:p,row:h,cell:m,getValue:m.getValue,renderValue:m.renderValue}),ue(t.options,"debugCells"))};return t._features.forEach(d=>{d.createCell==null||d.createCell(c,r,i,t)},{}),c}function Bv(t,i,r,s){var u,c;const p={...t._getDefaultColumnDef(),...i},h=p.accessorKey;let m=(u=(c=p.id)!=null?c:h?typeof String.prototype.replaceAll=="function"?h.replaceAll(".","_"):h.replace(/\./g,"_"):void 0)!=null?u:typeof p.header=="string"?p.header:void 0,y;if(p.accessorFn?y=p.accessorFn:h&&(h.includes(".")?y=w=>{let S=w;for(const _ of h.split(".")){var C;S=(C=S)==null?void 0:C[_]}return S}:y=w=>w[p.accessorKey]),!m)throw new Error;let v={id:`${String(m)}`,accessorFn:y,parent:s,depth:r,columnDef:p,columns:[],getFlatColumns:le(()=>[!0],()=>{var w;return[v,...(w=v.columns)==null?void 0:w.flatMap(S=>S.getFlatColumns())]},ue(t.options,"debugColumns")),getLeafColumns:le(()=>[t._getOrderColumnsFn()],w=>{var S;if((S=v.columns)!=null&&S.length){let C=v.columns.flatMap(_=>_.getLeafColumns());return w(C)}return[v]},ue(t.options,"debugColumns"))};for(const w of t._features)w.createColumn==null||w.createColumn(v,t);return v}const Ye="debugHeaders";function Rd(t,i,r){var s;let c={id:(s=r.id)!=null?s:i.id,column:i,index:r.index,isPlaceholder:!!r.isPlaceholder,placeholderId:r.placeholderId,depth:r.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{const d=[],p=h=>{h.subHeaders&&h.subHeaders.length&&h.subHeaders.map(p),d.push(h)};return p(c),d},getContext:()=>({table:t,header:c,column:i})};return t._features.forEach(d=>{d.createHeader==null||d.createHeader(c,t)}),c}const Hv={createTable:t=>{t.getHeaderGroups=le(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(i,r,s,u)=>{var c,d;const p=(c=s?.map(v=>r.find(w=>w.id===v)).filter(Boolean))!=null?c:[],h=(d=u?.map(v=>r.find(w=>w.id===v)).filter(Boolean))!=null?d:[],m=r.filter(v=>!(s!=null&&s.includes(v.id))&&!(u!=null&&u.includes(v.id)));return Wi(i,[...p,...m,...h],t)},ue(t.options,Ye)),t.getCenterHeaderGroups=le(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(i,r,s,u)=>(r=r.filter(c=>!(s!=null&&s.includes(c.id))&&!(u!=null&&u.includes(c.id))),Wi(i,r,t,"center")),ue(t.options,Ye)),t.getLeftHeaderGroups=le(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.left],(i,r,s)=>{var u;const c=(u=s?.map(d=>r.find(p=>p.id===d)).filter(Boolean))!=null?u:[];return Wi(i,c,t,"left")},ue(t.options,Ye)),t.getRightHeaderGroups=le(()=>[t.getAllColumns(),t.getVisibleLeafColumns(),t.getState().columnPinning.right],(i,r,s)=>{var u;const c=(u=s?.map(d=>r.find(p=>p.id===d)).filter(Boolean))!=null?u:[];return Wi(i,c,t,"right")},ue(t.options,Ye)),t.getFooterGroups=le(()=>[t.getHeaderGroups()],i=>[...i].reverse(),ue(t.options,Ye)),t.getLeftFooterGroups=le(()=>[t.getLeftHeaderGroups()],i=>[...i].reverse(),ue(t.options,Ye)),t.getCenterFooterGroups=le(()=>[t.getCenterHeaderGroups()],i=>[...i].reverse(),ue(t.options,Ye)),t.getRightFooterGroups=le(()=>[t.getRightHeaderGroups()],i=>[...i].reverse(),ue(t.options,Ye)),t.getFlatHeaders=le(()=>[t.getHeaderGroups()],i=>i.map(r=>r.headers).flat(),ue(t.options,Ye)),t.getLeftFlatHeaders=le(()=>[t.getLeftHeaderGroups()],i=>i.map(r=>r.headers).flat(),ue(t.options,Ye)),t.getCenterFlatHeaders=le(()=>[t.getCenterHeaderGroups()],i=>i.map(r=>r.headers).flat(),ue(t.options,Ye)),t.getRightFlatHeaders=le(()=>[t.getRightHeaderGroups()],i=>i.map(r=>r.headers).flat(),ue(t.options,Ye)),t.getCenterLeafHeaders=le(()=>[t.getCenterFlatHeaders()],i=>i.filter(r=>{var s;return!((s=r.subHeaders)!=null&&s.length)}),ue(t.options,Ye)),t.getLeftLeafHeaders=le(()=>[t.getLeftFlatHeaders()],i=>i.filter(r=>{var s;return!((s=r.subHeaders)!=null&&s.length)}),ue(t.options,Ye)),t.getRightLeafHeaders=le(()=>[t.getRightFlatHeaders()],i=>i.filter(r=>{var s;return!((s=r.subHeaders)!=null&&s.length)}),ue(t.options,Ye)),t.getLeafHeaders=le(()=>[t.getLeftHeaderGroups(),t.getCenterHeaderGroups(),t.getRightHeaderGroups()],(i,r,s)=>{var u,c,d,p,h,m;return[...(u=(c=i[0])==null?void 0:c.headers)!=null?u:[],...(d=(p=r[0])==null?void 0:p.headers)!=null?d:[],...(h=(m=s[0])==null?void 0:m.headers)!=null?h:[]].map(y=>y.getLeafHeaders()).flat()},ue(t.options,Ye))}};function Wi(t,i,r,s){var u,c;let d=0;const p=function(w,S){S===void 0&&(S=1),d=Math.max(d,S),w.filter(C=>C.getIsVisible()).forEach(C=>{var _;(_=C.columns)!=null&&_.length&&p(C.columns,S+1)},0)};p(t);let h=[];const m=(w,S)=>{const C={depth:S,id:[s,`${S}`].filter(Boolean).join("_"),headers:[]},_=[];w.forEach(x=>{const M=[..._].reverse()[0],F=x.column.depth===C.depth;let O,z=!1;if(F&&x.column.parent?O=x.column.parent:(O=x.column,z=!0),M&&M?.column===O)M.subHeaders.push(x);else{const j=Rd(r,O,{id:[s,S,O.id,x?.id].filter(Boolean).join("_"),isPlaceholder:z,placeholderId:z?`${_.filter(U=>U.column===O).length}`:void 0,depth:S,index:_.length});j.subHeaders.push(x),_.push(j)}C.headers.push(x),x.headerGroup=C}),h.push(C),S>0&&m(_,S-1)},y=i.map((w,S)=>Rd(r,w,{depth:d,index:S}));m(y,d-1),h.reverse();const v=w=>w.filter(C=>C.column.getIsVisible()).map(C=>{let _=0,x=0,M=[0];C.subHeaders&&C.subHeaders.length?(M=[],v(C.subHeaders).forEach(O=>{let{colSpan:z,rowSpan:j}=O;_+=z,M.push(j)})):_=1;const F=Math.min(...M);return x=x+F,C.colSpan=_,C.rowSpan=x,{colSpan:_,rowSpan:x}});return v((u=(c=h[0])==null?void 0:c.headers)!=null?u:[]),h}const Uv=(t,i,r,s,u,c,d)=>{let p={id:i,index:s,original:r,depth:u,parentId:d,_valuesCache:{},_uniqueValuesCache:{},getValue:h=>{if(p._valuesCache.hasOwnProperty(h))return p._valuesCache[h];const m=t.getColumn(h);if(m!=null&&m.accessorFn)return p._valuesCache[h]=m.accessorFn(p.original,s),p._valuesCache[h]},getUniqueValues:h=>{if(p._uniqueValuesCache.hasOwnProperty(h))return p._uniqueValuesCache[h];const m=t.getColumn(h);if(m!=null&&m.accessorFn)return m.columnDef.getUniqueValues?(p._uniqueValuesCache[h]=m.columnDef.getUniqueValues(p.original,s),p._uniqueValuesCache[h]):(p._uniqueValuesCache[h]=[p.getValue(h)],p._uniqueValuesCache[h])},renderValue:h=>{var m;return(m=p.getValue(h))!=null?m:t.options.renderFallbackValue},subRows:[],getLeafRows:()=>Vv(p.subRows,h=>h.subRows),getParentRow:()=>p.parentId?t.getRow(p.parentId,!0):void 0,getParentRows:()=>{let h=[],m=p;for(;;){const y=m.getParentRow();if(!y)break;h.push(y),m=y}return h.reverse()},getAllCells:le(()=>[t.getAllLeafColumns()],h=>h.map(m=>jv(t,p,m,m.id)),ue(t.options,"debugRows")),_getAllCellsByColumnId:le(()=>[p.getAllCells()],h=>h.reduce((m,y)=>(m[y.column.id]=y,m),{}),ue(t.options,"debugRows"))};for(let h=0;h<t._features.length;h++){const m=t._features[h];m==null||m.createRow==null||m.createRow(p,t)}return p},Gv={createColumn:(t,i)=>{t._getFacetedRowModel=i.options.getFacetedRowModel&&i.options.getFacetedRowModel(i,t.id),t.getFacetedRowModel=()=>t._getFacetedRowModel?t._getFacetedRowModel():i.getPreFilteredRowModel(),t._getFacetedUniqueValues=i.options.getFacetedUniqueValues&&i.options.getFacetedUniqueValues(i,t.id),t.getFacetedUniqueValues=()=>t._getFacetedUniqueValues?t._getFacetedUniqueValues():new Map,t._getFacetedMinMaxValues=i.options.getFacetedMinMaxValues&&i.options.getFacetedMinMaxValues(i,t.id),t.getFacetedMinMaxValues=()=>{if(t._getFacetedMinMaxValues)return t._getFacetedMinMaxValues()}}},uh=(t,i,r)=>{var s,u;const c=r==null||(s=r.toString())==null?void 0:s.toLowerCase();return!!(!((u=t.getValue(i))==null||(u=u.toString())==null||(u=u.toLowerCase())==null)&&u.includes(c))};uh.autoRemove=t=>Ft(t);const ah=(t,i,r)=>{var s;return!!(!((s=t.getValue(i))==null||(s=s.toString())==null)&&s.includes(r))};ah.autoRemove=t=>Ft(t);const ch=(t,i,r)=>{var s;return((s=t.getValue(i))==null||(s=s.toString())==null?void 0:s.toLowerCase())===r?.toLowerCase()};ch.autoRemove=t=>Ft(t);const fh=(t,i,r)=>{var s;return(s=t.getValue(i))==null?void 0:s.includes(r)};fh.autoRemove=t=>Ft(t);const dh=(t,i,r)=>!r.some(s=>{var u;return!((u=t.getValue(i))!=null&&u.includes(s))});dh.autoRemove=t=>Ft(t)||!(t!=null&&t.length);const hh=(t,i,r)=>r.some(s=>{var u;return(u=t.getValue(i))==null?void 0:u.includes(s)});hh.autoRemove=t=>Ft(t)||!(t!=null&&t.length);const ph=(t,i,r)=>t.getValue(i)===r;ph.autoRemove=t=>Ft(t);const gh=(t,i,r)=>t.getValue(i)==r;gh.autoRemove=t=>Ft(t);const Gu=(t,i,r)=>{let[s,u]=r;const c=t.getValue(i);return c>=s&&c<=u};Gu.resolveFilterValue=t=>{let[i,r]=t,s=typeof i!="number"?parseFloat(i):i,u=typeof r!="number"?parseFloat(r):r,c=i===null||Number.isNaN(s)?-1/0:s,d=r===null||Number.isNaN(u)?1/0:u;if(c>d){const p=c;c=d,d=p}return[c,d]};Gu.autoRemove=t=>Ft(t)||Ft(t[0])&&Ft(t[1]);const qt={includesString:uh,includesStringSensitive:ah,equalsString:ch,arrIncludes:fh,arrIncludesAll:dh,arrIncludesSome:hh,equals:ph,weakEquals:gh,inNumberRange:Gu};function Ft(t){return t==null||t===""}const Wv={getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:t=>({columnFilters:[],...t}),getDefaultOptions:t=>({onColumnFiltersChange:pt("columnFilters",t),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(t,i)=>{t.getAutoFilterFn=()=>{const r=i.getCoreRowModel().flatRows[0],s=r?.getValue(t.id);return typeof s=="string"?qt.includesString:typeof s=="number"?qt.inNumberRange:typeof s=="boolean"||s!==null&&typeof s=="object"?qt.equals:Array.isArray(s)?qt.arrIncludes:qt.weakEquals},t.getFilterFn=()=>{var r,s;return us(t.columnDef.filterFn)?t.columnDef.filterFn:t.columnDef.filterFn==="auto"?t.getAutoFilterFn():(r=(s=i.options.filterFns)==null?void 0:s[t.columnDef.filterFn])!=null?r:qt[t.columnDef.filterFn]},t.getCanFilter=()=>{var r,s,u;return((r=t.columnDef.enableColumnFilter)!=null?r:!0)&&((s=i.options.enableColumnFilters)!=null?s:!0)&&((u=i.options.enableFilters)!=null?u:!0)&&!!t.accessorFn},t.getIsFiltered=()=>t.getFilterIndex()>-1,t.getFilterValue=()=>{var r;return(r=i.getState().columnFilters)==null||(r=r.find(s=>s.id===t.id))==null?void 0:r.value},t.getFilterIndex=()=>{var r,s;return(r=(s=i.getState().columnFilters)==null?void 0:s.findIndex(u=>u.id===t.id))!=null?r:-1},t.setFilterValue=r=>{i.setColumnFilters(s=>{const u=t.getFilterFn(),c=s?.find(y=>y.id===t.id),d=Cn(r,c?c.value:void 0);if(_d(u,d,t)){var p;return(p=s?.filter(y=>y.id!==t.id))!=null?p:[]}const h={id:t.id,value:d};if(c){var m;return(m=s?.map(y=>y.id===t.id?h:y))!=null?m:[]}return s!=null&&s.length?[...s,h]:[h]})}},createRow:(t,i)=>{t.columnFilters={},t.columnFiltersMeta={}},createTable:t=>{t.setColumnFilters=i=>{const r=t.getAllLeafColumns(),s=u=>{var c;return(c=Cn(i,u))==null?void 0:c.filter(d=>{const p=r.find(h=>h.id===d.id);if(p){const h=p.getFilterFn();if(_d(h,d.value,p))return!1}return!0})};t.options.onColumnFiltersChange==null||t.options.onColumnFiltersChange(s)},t.resetColumnFilters=i=>{var r,s;t.setColumnFilters(i?[]:(r=(s=t.initialState)==null?void 0:s.columnFilters)!=null?r:[])},t.getPreFilteredRowModel=()=>t.getCoreRowModel(),t.getFilteredRowModel=()=>(!t._getFilteredRowModel&&t.options.getFilteredRowModel&&(t._getFilteredRowModel=t.options.getFilteredRowModel(t)),t.options.manualFiltering||!t._getFilteredRowModel?t.getPreFilteredRowModel():t._getFilteredRowModel())}};function _d(t,i,r){return(t&&t.autoRemove?t.autoRemove(i,r):!1)||typeof i>"u"||typeof i=="string"&&!i}const Qv=(t,i,r)=>r.reduce((s,u)=>{const c=u.getValue(t);return s+(typeof c=="number"?c:0)},0),Kv=(t,i,r)=>{let s;return r.forEach(u=>{const c=u.getValue(t);c!=null&&(s>c||s===void 0&&c>=c)&&(s=c)}),s},qv=(t,i,r)=>{let s;return r.forEach(u=>{const c=u.getValue(t);c!=null&&(s<c||s===void 0&&c>=c)&&(s=c)}),s},Xv=(t,i,r)=>{let s,u;return r.forEach(c=>{const d=c.getValue(t);d!=null&&(s===void 0?d>=d&&(s=u=d):(s>d&&(s=d),u<d&&(u=d)))}),[s,u]},Yv=(t,i)=>{let r=0,s=0;if(i.forEach(u=>{let c=u.getValue(t);c!=null&&(c=+c)>=c&&(++r,s+=c)}),r)return s/r},Jv=(t,i)=>{if(!i.length)return;const r=i.map(c=>c.getValue(t));if(!Av(r))return;if(r.length===1)return r[0];const s=Math.floor(r.length/2),u=r.sort((c,d)=>c-d);return r.length%2!==0?u[s]:(u[s-1]+u[s])/2},Zv=(t,i)=>Array.from(new Set(i.map(r=>r.getValue(t))).values()),bv=(t,i)=>new Set(i.map(r=>r.getValue(t))).size,ey=(t,i)=>i.length,pu={sum:Qv,min:Kv,max:qv,extent:Xv,mean:Yv,median:Jv,unique:Zv,uniqueCount:bv,count:ey},ty={getDefaultColumnDef:()=>({aggregatedCell:t=>{var i,r;return(i=(r=t.getValue())==null||r.toString==null?void 0:r.toString())!=null?i:null},aggregationFn:"auto"}),getInitialState:t=>({grouping:[],...t}),getDefaultOptions:t=>({onGroupingChange:pt("grouping",t),groupedColumnMode:"reorder"}),createColumn:(t,i)=>{t.toggleGrouping=()=>{i.setGrouping(r=>r!=null&&r.includes(t.id)?r.filter(s=>s!==t.id):[...r??[],t.id])},t.getCanGroup=()=>{var r,s;return((r=t.columnDef.enableGrouping)!=null?r:!0)&&((s=i.options.enableGrouping)!=null?s:!0)&&(!!t.accessorFn||!!t.columnDef.getGroupingValue)},t.getIsGrouped=()=>{var r;return(r=i.getState().grouping)==null?void 0:r.includes(t.id)},t.getGroupedIndex=()=>{var r;return(r=i.getState().grouping)==null?void 0:r.indexOf(t.id)},t.getToggleGroupingHandler=()=>{const r=t.getCanGroup();return()=>{r&&t.toggleGrouping()}},t.getAutoAggregationFn=()=>{const r=i.getCoreRowModel().flatRows[0],s=r?.getValue(t.id);if(typeof s=="number")return pu.sum;if(Object.prototype.toString.call(s)==="[object Date]")return pu.extent},t.getAggregationFn=()=>{var r,s;if(!t)throw new Error;return us(t.columnDef.aggregationFn)?t.columnDef.aggregationFn:t.columnDef.aggregationFn==="auto"?t.getAutoAggregationFn():(r=(s=i.options.aggregationFns)==null?void 0:s[t.columnDef.aggregationFn])!=null?r:pu[t.columnDef.aggregationFn]}},createTable:t=>{t.setGrouping=i=>t.options.onGroupingChange==null?void 0:t.options.onGroupingChange(i),t.resetGrouping=i=>{var r,s;t.setGrouping(i?[]:(r=(s=t.initialState)==null?void 0:s.grouping)!=null?r:[])},t.getPreGroupedRowModel=()=>t.getFilteredRowModel(),t.getGroupedRowModel=()=>(!t._getGroupedRowModel&&t.options.getGroupedRowModel&&(t._getGroupedRowModel=t.options.getGroupedRowModel(t)),t.options.manualGrouping||!t._getGroupedRowModel?t.getPreGroupedRowModel():t._getGroupedRowModel())},createRow:(t,i)=>{t.getIsGrouped=()=>!!t.groupingColumnId,t.getGroupingValue=r=>{if(t._groupingValuesCache.hasOwnProperty(r))return t._groupingValuesCache[r];const s=i.getColumn(r);return s!=null&&s.columnDef.getGroupingValue?(t._groupingValuesCache[r]=s.columnDef.getGroupingValue(t.original),t._groupingValuesCache[r]):t.getValue(r)},t._groupingValuesCache={}},createCell:(t,i,r,s)=>{t.getIsGrouped=()=>i.getIsGrouped()&&i.id===r.groupingColumnId,t.getIsPlaceholder=()=>!t.getIsGrouped()&&i.getIsGrouped(),t.getIsAggregated=()=>{var u;return!t.getIsGrouped()&&!t.getIsPlaceholder()&&!!((u=r.subRows)!=null&&u.length)}}};function ny(t,i,r){if(!(i!=null&&i.length)||!r)return t;const s=t.filter(c=>!i.includes(c.id));return r==="remove"?s:[...i.map(c=>t.find(d=>d.id===c)).filter(Boolean),...s]}const ry={getInitialState:t=>({columnOrder:[],...t}),getDefaultOptions:t=>({onColumnOrderChange:pt("columnOrder",t)}),createColumn:(t,i)=>{t.getIndex=le(r=>[Co(i,r)],r=>r.findIndex(s=>s.id===t.id),ue(i.options,"debugColumns")),t.getIsFirstColumn=r=>{var s;return((s=Co(i,r)[0])==null?void 0:s.id)===t.id},t.getIsLastColumn=r=>{var s;const u=Co(i,r);return((s=u[u.length-1])==null?void 0:s.id)===t.id}},createTable:t=>{t.setColumnOrder=i=>t.options.onColumnOrderChange==null?void 0:t.options.onColumnOrderChange(i),t.resetColumnOrder=i=>{var r;t.setColumnOrder(i?[]:(r=t.initialState.columnOrder)!=null?r:[])},t._getOrderColumnsFn=le(()=>[t.getState().columnOrder,t.getState().grouping,t.options.groupedColumnMode],(i,r,s)=>u=>{let c=[];if(!(i!=null&&i.length))c=u;else{const d=[...i],p=[...u];for(;p.length&&d.length;){const h=d.shift(),m=p.findIndex(y=>y.id===h);m>-1&&c.push(p.splice(m,1)[0])}c=[...c,...p]}return ny(c,r,s)},ue(t.options,"debugTable"))}},gu=()=>({left:[],right:[]}),oy={getInitialState:t=>({columnPinning:gu(),...t}),getDefaultOptions:t=>({onColumnPinningChange:pt("columnPinning",t)}),createColumn:(t,i)=>{t.pin=r=>{const s=t.getLeafColumns().map(u=>u.id).filter(Boolean);i.setColumnPinning(u=>{var c,d;if(r==="right"){var p,h;return{left:((p=u?.left)!=null?p:[]).filter(v=>!(s!=null&&s.includes(v))),right:[...((h=u?.right)!=null?h:[]).filter(v=>!(s!=null&&s.includes(v))),...s]}}if(r==="left"){var m,y;return{left:[...((m=u?.left)!=null?m:[]).filter(v=>!(s!=null&&s.includes(v))),...s],right:((y=u?.right)!=null?y:[]).filter(v=>!(s!=null&&s.includes(v)))}}return{left:((c=u?.left)!=null?c:[]).filter(v=>!(s!=null&&s.includes(v))),right:((d=u?.right)!=null?d:[]).filter(v=>!(s!=null&&s.includes(v)))}})},t.getCanPin=()=>t.getLeafColumns().some(s=>{var u,c,d;return((u=s.columnDef.enablePinning)!=null?u:!0)&&((c=(d=i.options.enableColumnPinning)!=null?d:i.options.enablePinning)!=null?c:!0)}),t.getIsPinned=()=>{const r=t.getLeafColumns().map(p=>p.id),{left:s,right:u}=i.getState().columnPinning,c=r.some(p=>s?.includes(p)),d=r.some(p=>u?.includes(p));return c?"left":d?"right":!1},t.getPinnedIndex=()=>{var r,s;const u=t.getIsPinned();return u?(r=(s=i.getState().columnPinning)==null||(s=s[u])==null?void 0:s.indexOf(t.id))!=null?r:-1:0}},createRow:(t,i)=>{t.getCenterVisibleCells=le(()=>[t._getAllVisibleCells(),i.getState().columnPinning.left,i.getState().columnPinning.right],(r,s,u)=>{const c=[...s??[],...u??[]];return r.filter(d=>!c.includes(d.column.id))},ue(i.options,"debugRows")),t.getLeftVisibleCells=le(()=>[t._getAllVisibleCells(),i.getState().columnPinning.left],(r,s)=>(s??[]).map(c=>r.find(d=>d.column.id===c)).filter(Boolean).map(c=>({...c,position:"left"})),ue(i.options,"debugRows")),t.getRightVisibleCells=le(()=>[t._getAllVisibleCells(),i.getState().columnPinning.right],(r,s)=>(s??[]).map(c=>r.find(d=>d.column.id===c)).filter(Boolean).map(c=>({...c,position:"right"})),ue(i.options,"debugRows"))},createTable:t=>{t.setColumnPinning=i=>t.options.onColumnPinningChange==null?void 0:t.options.onColumnPinningChange(i),t.resetColumnPinning=i=>{var r,s;return t.setColumnPinning(i?gu():(r=(s=t.initialState)==null?void 0:s.columnPinning)!=null?r:gu())},t.getIsSomeColumnsPinned=i=>{var r;const s=t.getState().columnPinning;if(!i){var u,c;return!!((u=s.left)!=null&&u.length||(c=s.right)!=null&&c.length)}return!!((r=s[i])!=null&&r.length)},t.getLeftLeafColumns=le(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left],(i,r)=>(r??[]).map(s=>i.find(u=>u.id===s)).filter(Boolean),ue(t.options,"debugColumns")),t.getRightLeafColumns=le(()=>[t.getAllLeafColumns(),t.getState().columnPinning.right],(i,r)=>(r??[]).map(s=>i.find(u=>u.id===s)).filter(Boolean),ue(t.options,"debugColumns")),t.getCenterLeafColumns=le(()=>[t.getAllLeafColumns(),t.getState().columnPinning.left,t.getState().columnPinning.right],(i,r,s)=>{const u=[...r??[],...s??[]];return i.filter(c=>!u.includes(c.id))},ue(t.options,"debugColumns"))}};function iy(t){return t||(typeof document<"u"?document:null)}const Qi={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},mu=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),sy={getDefaultColumnDef:()=>Qi,getInitialState:t=>({columnSizing:{},columnSizingInfo:mu(),...t}),getDefaultOptions:t=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:pt("columnSizing",t),onColumnSizingInfoChange:pt("columnSizingInfo",t)}),createColumn:(t,i)=>{t.getSize=()=>{var r,s,u;const c=i.getState().columnSizing[t.id];return Math.min(Math.max((r=t.columnDef.minSize)!=null?r:Qi.minSize,(s=c??t.columnDef.size)!=null?s:Qi.size),(u=t.columnDef.maxSize)!=null?u:Qi.maxSize)},t.getStart=le(r=>[r,Co(i,r),i.getState().columnSizing],(r,s)=>s.slice(0,t.getIndex(r)).reduce((u,c)=>u+c.getSize(),0),ue(i.options,"debugColumns")),t.getAfter=le(r=>[r,Co(i,r),i.getState().columnSizing],(r,s)=>s.slice(t.getIndex(r)+1).reduce((u,c)=>u+c.getSize(),0),ue(i.options,"debugColumns")),t.resetSize=()=>{i.setColumnSizing(r=>{let{[t.id]:s,...u}=r;return u})},t.getCanResize=()=>{var r,s;return((r=t.columnDef.enableResizing)!=null?r:!0)&&((s=i.options.enableColumnResizing)!=null?s:!0)},t.getIsResizing=()=>i.getState().columnSizingInfo.isResizingColumn===t.id},createHeader:(t,i)=>{t.getSize=()=>{let r=0;const s=u=>{if(u.subHeaders.length)u.subHeaders.forEach(s);else{var c;r+=(c=u.column.getSize())!=null?c:0}};return s(t),r},t.getStart=()=>{if(t.index>0){const r=t.headerGroup.headers[t.index-1];return r.getStart()+r.getSize()}return 0},t.getResizeHandler=r=>{const s=i.getColumn(t.column.id),u=s?.getCanResize();return c=>{if(!s||!u||(c.persist==null||c.persist(),vu(c)&&c.touches&&c.touches.length>1))return;const d=t.getSize(),p=t?t.getLeafHeaders().map(M=>[M.column.id,M.column.getSize()]):[[s.id,s.getSize()]],h=vu(c)?Math.round(c.touches[0].clientX):c.clientX,m={},y=(M,F)=>{typeof F=="number"&&(i.setColumnSizingInfo(O=>{var z,j;const U=i.options.columnResizeDirection==="rtl"?-1:1,A=(F-((z=O?.startOffset)!=null?z:0))*U,B=Math.max(A/((j=O?.startSize)!=null?j:0),-.999999);return O.columnSizingStart.forEach(W=>{let[re,oe]=W;m[re]=Math.round(Math.max(oe+oe*B,0)*100)/100}),{...O,deltaOffset:A,deltaPercentage:B}}),(i.options.columnResizeMode==="onChange"||M==="end")&&i.setColumnSizing(O=>({...O,...m})))},v=M=>y("move",M),w=M=>{y("end",M),i.setColumnSizingInfo(F=>({...F,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},S=iy(r),C={moveHandler:M=>v(M.clientX),upHandler:M=>{S?.removeEventListener("mousemove",C.moveHandler),S?.removeEventListener("mouseup",C.upHandler),w(M.clientX)}},_={moveHandler:M=>(M.cancelable&&(M.preventDefault(),M.stopPropagation()),v(M.touches[0].clientX),!1),upHandler:M=>{var F;S?.removeEventListener("touchmove",_.moveHandler),S?.removeEventListener("touchend",_.upHandler),M.cancelable&&(M.preventDefault(),M.stopPropagation()),w((F=M.touches[0])==null?void 0:F.clientX)}},x=ly()?{passive:!1}:!1;vu(c)?(S?.addEventListener("touchmove",_.moveHandler,x),S?.addEventListener("touchend",_.upHandler,x)):(S?.addEventListener("mousemove",C.moveHandler,x),S?.addEventListener("mouseup",C.upHandler,x)),i.setColumnSizingInfo(M=>({...M,startOffset:h,startSize:d,deltaOffset:0,deltaPercentage:0,columnSizingStart:p,isResizingColumn:s.id}))}}},createTable:t=>{t.setColumnSizing=i=>t.options.onColumnSizingChange==null?void 0:t.options.onColumnSizingChange(i),t.setColumnSizingInfo=i=>t.options.onColumnSizingInfoChange==null?void 0:t.options.onColumnSizingInfoChange(i),t.resetColumnSizing=i=>{var r;t.setColumnSizing(i?{}:(r=t.initialState.columnSizing)!=null?r:{})},t.resetHeaderSizeInfo=i=>{var r;t.setColumnSizingInfo(i?mu():(r=t.initialState.columnSizingInfo)!=null?r:mu())},t.getTotalSize=()=>{var i,r;return(i=(r=t.getHeaderGroups()[0])==null?void 0:r.headers.reduce((s,u)=>s+u.getSize(),0))!=null?i:0},t.getLeftTotalSize=()=>{var i,r;return(i=(r=t.getLeftHeaderGroups()[0])==null?void 0:r.headers.reduce((s,u)=>s+u.getSize(),0))!=null?i:0},t.getCenterTotalSize=()=>{var i,r;return(i=(r=t.getCenterHeaderGroups()[0])==null?void 0:r.headers.reduce((s,u)=>s+u.getSize(),0))!=null?i:0},t.getRightTotalSize=()=>{var i,r;return(i=(r=t.getRightHeaderGroups()[0])==null?void 0:r.headers.reduce((s,u)=>s+u.getSize(),0))!=null?i:0}}};let Ki=null;function ly(){if(typeof Ki=="boolean")return Ki;let t=!1;try{const i={get passive(){return t=!0,!1}},r=()=>{};window.addEventListener("test",r,i),window.removeEventListener("test",r)}catch{t=!1}return Ki=t,Ki}function vu(t){return t.type==="touchstart"}const uy={getInitialState:t=>({columnVisibility:{},...t}),getDefaultOptions:t=>({onColumnVisibilityChange:pt("columnVisibility",t)}),createColumn:(t,i)=>{t.toggleVisibility=r=>{t.getCanHide()&&i.setColumnVisibility(s=>({...s,[t.id]:r??!t.getIsVisible()}))},t.getIsVisible=()=>{var r,s;const u=t.columns;return(r=u.length?u.some(c=>c.getIsVisible()):(s=i.getState().columnVisibility)==null?void 0:s[t.id])!=null?r:!0},t.getCanHide=()=>{var r,s;return((r=t.columnDef.enableHiding)!=null?r:!0)&&((s=i.options.enableHiding)!=null?s:!0)},t.getToggleVisibilityHandler=()=>r=>{t.toggleVisibility==null||t.toggleVisibility(r.target.checked)}},createRow:(t,i)=>{t._getAllVisibleCells=le(()=>[t.getAllCells(),i.getState().columnVisibility],r=>r.filter(s=>s.column.getIsVisible()),ue(i.options,"debugRows")),t.getVisibleCells=le(()=>[t.getLeftVisibleCells(),t.getCenterVisibleCells(),t.getRightVisibleCells()],(r,s,u)=>[...r,...s,...u],ue(i.options,"debugRows"))},createTable:t=>{const i=(r,s)=>le(()=>[s(),s().filter(u=>u.getIsVisible()).map(u=>u.id).join("_")],u=>u.filter(c=>c.getIsVisible==null?void 0:c.getIsVisible()),ue(t.options,"debugColumns"));t.getVisibleFlatColumns=i("getVisibleFlatColumns",()=>t.getAllFlatColumns()),t.getVisibleLeafColumns=i("getVisibleLeafColumns",()=>t.getAllLeafColumns()),t.getLeftVisibleLeafColumns=i("getLeftVisibleLeafColumns",()=>t.getLeftLeafColumns()),t.getRightVisibleLeafColumns=i("getRightVisibleLeafColumns",()=>t.getRightLeafColumns()),t.getCenterVisibleLeafColumns=i("getCenterVisibleLeafColumns",()=>t.getCenterLeafColumns()),t.setColumnVisibility=r=>t.options.onColumnVisibilityChange==null?void 0:t.options.onColumnVisibilityChange(r),t.resetColumnVisibility=r=>{var s;t.setColumnVisibility(r?{}:(s=t.initialState.columnVisibility)!=null?s:{})},t.toggleAllColumnsVisible=r=>{var s;r=(s=r)!=null?s:!t.getIsAllColumnsVisible(),t.setColumnVisibility(t.getAllLeafColumns().reduce((u,c)=>({...u,[c.id]:r||!(c.getCanHide!=null&&c.getCanHide())}),{}))},t.getIsAllColumnsVisible=()=>!t.getAllLeafColumns().some(r=>!(r.getIsVisible!=null&&r.getIsVisible())),t.getIsSomeColumnsVisible=()=>t.getAllLeafColumns().some(r=>r.getIsVisible==null?void 0:r.getIsVisible()),t.getToggleAllColumnsVisibilityHandler=()=>r=>{var s;t.toggleAllColumnsVisible((s=r.target)==null?void 0:s.checked)}}};function Co(t,i){return i?i==="center"?t.getCenterVisibleLeafColumns():i==="left"?t.getLeftVisibleLeafColumns():t.getRightVisibleLeafColumns():t.getVisibleLeafColumns()}const ay={createTable:t=>{t._getGlobalFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,"__global__"),t.getGlobalFacetedRowModel=()=>t.options.manualFiltering||!t._getGlobalFacetedRowModel?t.getPreFilteredRowModel():t._getGlobalFacetedRowModel(),t._getGlobalFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,"__global__"),t.getGlobalFacetedUniqueValues=()=>t._getGlobalFacetedUniqueValues?t._getGlobalFacetedUniqueValues():new Map,t._getGlobalFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,"__global__"),t.getGlobalFacetedMinMaxValues=()=>{if(t._getGlobalFacetedMinMaxValues)return t._getGlobalFacetedMinMaxValues()}}},cy={getInitialState:t=>({globalFilter:void 0,...t}),getDefaultOptions:t=>({onGlobalFilterChange:pt("globalFilter",t),globalFilterFn:"auto",getColumnCanGlobalFilter:i=>{var r;const s=(r=t.getCoreRowModel().flatRows[0])==null||(r=r._getAllCellsByColumnId()[i.id])==null?void 0:r.getValue();return typeof s=="string"||typeof s=="number"}}),createColumn:(t,i)=>{t.getCanGlobalFilter=()=>{var r,s,u,c;return((r=t.columnDef.enableGlobalFilter)!=null?r:!0)&&((s=i.options.enableGlobalFilter)!=null?s:!0)&&((u=i.options.enableFilters)!=null?u:!0)&&((c=i.options.getColumnCanGlobalFilter==null?void 0:i.options.getColumnCanGlobalFilter(t))!=null?c:!0)&&!!t.accessorFn}},createTable:t=>{t.getGlobalAutoFilterFn=()=>qt.includesString,t.getGlobalFilterFn=()=>{var i,r;const{globalFilterFn:s}=t.options;return us(s)?s:s==="auto"?t.getGlobalAutoFilterFn():(i=(r=t.options.filterFns)==null?void 0:r[s])!=null?i:qt[s]},t.setGlobalFilter=i=>{t.options.onGlobalFilterChange==null||t.options.onGlobalFilterChange(i)},t.resetGlobalFilter=i=>{t.setGlobalFilter(i?void 0:t.initialState.globalFilter)}}},fy={getInitialState:t=>({expanded:{},...t}),getDefaultOptions:t=>({onExpandedChange:pt("expanded",t),paginateExpandedRows:!0}),createTable:t=>{let i=!1,r=!1;t._autoResetExpanded=()=>{var s,u;if(!i){t._queue(()=>{i=!0});return}if((s=(u=t.options.autoResetAll)!=null?u:t.options.autoResetExpanded)!=null?s:!t.options.manualExpanding){if(r)return;r=!0,t._queue(()=>{t.resetExpanded(),r=!1})}},t.setExpanded=s=>t.options.onExpandedChange==null?void 0:t.options.onExpandedChange(s),t.toggleAllRowsExpanded=s=>{s??!t.getIsAllRowsExpanded()?t.setExpanded(!0):t.setExpanded({})},t.resetExpanded=s=>{var u,c;t.setExpanded(s?{}:(u=(c=t.initialState)==null?void 0:c.expanded)!=null?u:{})},t.getCanSomeRowsExpand=()=>t.getPrePaginationRowModel().flatRows.some(s=>s.getCanExpand()),t.getToggleAllRowsExpandedHandler=()=>s=>{s.persist==null||s.persist(),t.toggleAllRowsExpanded()},t.getIsSomeRowsExpanded=()=>{const s=t.getState().expanded;return s===!0||Object.values(s).some(Boolean)},t.getIsAllRowsExpanded=()=>{const s=t.getState().expanded;return typeof s=="boolean"?s===!0:!(!Object.keys(s).length||t.getRowModel().flatRows.some(u=>!u.getIsExpanded()))},t.getExpandedDepth=()=>{let s=0;return(t.getState().expanded===!0?Object.keys(t.getRowModel().rowsById):Object.keys(t.getState().expanded)).forEach(c=>{const d=c.split(".");s=Math.max(s,d.length)}),s},t.getPreExpandedRowModel=()=>t.getSortedRowModel(),t.getExpandedRowModel=()=>(!t._getExpandedRowModel&&t.options.getExpandedRowModel&&(t._getExpandedRowModel=t.options.getExpandedRowModel(t)),t.options.manualExpanding||!t._getExpandedRowModel?t.getPreExpandedRowModel():t._getExpandedRowModel())},createRow:(t,i)=>{t.toggleExpanded=r=>{i.setExpanded(s=>{var u;const c=s===!0?!0:!!(s!=null&&s[t.id]);let d={};if(s===!0?Object.keys(i.getRowModel().rowsById).forEach(p=>{d[p]=!0}):d=s,r=(u=r)!=null?u:!c,!c&&r)return{...d,[t.id]:!0};if(c&&!r){const{[t.id]:p,...h}=d;return h}return s})},t.getIsExpanded=()=>{var r;const s=i.getState().expanded;return!!((r=i.options.getIsRowExpanded==null?void 0:i.options.getIsRowExpanded(t))!=null?r:s===!0||s?.[t.id])},t.getCanExpand=()=>{var r,s,u;return(r=i.options.getRowCanExpand==null?void 0:i.options.getRowCanExpand(t))!=null?r:((s=i.options.enableExpanding)!=null?s:!0)&&!!((u=t.subRows)!=null&&u.length)},t.getIsAllParentsExpanded=()=>{let r=!0,s=t;for(;r&&s.parentId;)s=i.getRow(s.parentId,!0),r=s.getIsExpanded();return r},t.getToggleExpandedHandler=()=>{const r=t.getCanExpand();return()=>{r&&t.toggleExpanded()}}}},Tu=0,Ou=10,yu=()=>({pageIndex:Tu,pageSize:Ou}),dy={getInitialState:t=>({...t,pagination:{...yu(),...t?.pagination}}),getDefaultOptions:t=>({onPaginationChange:pt("pagination",t)}),createTable:t=>{let i=!1,r=!1;t._autoResetPageIndex=()=>{var s,u;if(!i){t._queue(()=>{i=!0});return}if((s=(u=t.options.autoResetAll)!=null?u:t.options.autoResetPageIndex)!=null?s:!t.options.manualPagination){if(r)return;r=!0,t._queue(()=>{t.resetPageIndex(),r=!1})}},t.setPagination=s=>{const u=c=>Cn(s,c);return t.options.onPaginationChange==null?void 0:t.options.onPaginationChange(u)},t.resetPagination=s=>{var u;t.setPagination(s?yu():(u=t.initialState.pagination)!=null?u:yu())},t.setPageIndex=s=>{t.setPagination(u=>{let c=Cn(s,u.pageIndex);const d=typeof t.options.pageCount>"u"||t.options.pageCount===-1?Number.MAX_SAFE_INTEGER:t.options.pageCount-1;return c=Math.max(0,Math.min(c,d)),{...u,pageIndex:c}})},t.resetPageIndex=s=>{var u,c;t.setPageIndex(s?Tu:(u=(c=t.initialState)==null||(c=c.pagination)==null?void 0:c.pageIndex)!=null?u:Tu)},t.resetPageSize=s=>{var u,c;t.setPageSize(s?Ou:(u=(c=t.initialState)==null||(c=c.pagination)==null?void 0:c.pageSize)!=null?u:Ou)},t.setPageSize=s=>{t.setPagination(u=>{const c=Math.max(1,Cn(s,u.pageSize)),d=u.pageSize*u.pageIndex,p=Math.floor(d/c);return{...u,pageIndex:p,pageSize:c}})},t.setPageCount=s=>t.setPagination(u=>{var c;let d=Cn(s,(c=t.options.pageCount)!=null?c:-1);return typeof d=="number"&&(d=Math.max(-1,d)),{...u,pageCount:d}}),t.getPageOptions=le(()=>[t.getPageCount()],s=>{let u=[];return s&&s>0&&(u=[...new Array(s)].fill(null).map((c,d)=>d)),u},ue(t.options,"debugTable")),t.getCanPreviousPage=()=>t.getState().pagination.pageIndex>0,t.getCanNextPage=()=>{const{pageIndex:s}=t.getState().pagination,u=t.getPageCount();return u===-1?!0:u===0?!1:s<u-1},t.previousPage=()=>t.setPageIndex(s=>s-1),t.nextPage=()=>t.setPageIndex(s=>s+1),t.firstPage=()=>t.setPageIndex(0),t.lastPage=()=>t.setPageIndex(t.getPageCount()-1),t.getPrePaginationRowModel=()=>t.getExpandedRowModel(),t.getPaginationRowModel=()=>(!t._getPaginationRowModel&&t.options.getPaginationRowModel&&(t._getPaginationRowModel=t.options.getPaginationRowModel(t)),t.options.manualPagination||!t._getPaginationRowModel?t.getPrePaginationRowModel():t._getPaginationRowModel()),t.getPageCount=()=>{var s;return(s=t.options.pageCount)!=null?s:Math.ceil(t.getRowCount()/t.getState().pagination.pageSize)},t.getRowCount=()=>{var s;return(s=t.options.rowCount)!=null?s:t.getPrePaginationRowModel().rows.length}}},Su=()=>({top:[],bottom:[]}),hy={getInitialState:t=>({rowPinning:Su(),...t}),getDefaultOptions:t=>({onRowPinningChange:pt("rowPinning",t)}),createRow:(t,i)=>{t.pin=(r,s,u)=>{const c=s?t.getLeafRows().map(h=>{let{id:m}=h;return m}):[],d=u?t.getParentRows().map(h=>{let{id:m}=h;return m}):[],p=new Set([...d,t.id,...c]);i.setRowPinning(h=>{var m,y;if(r==="bottom"){var v,w;return{top:((v=h?.top)!=null?v:[]).filter(_=>!(p!=null&&p.has(_))),bottom:[...((w=h?.bottom)!=null?w:[]).filter(_=>!(p!=null&&p.has(_))),...Array.from(p)]}}if(r==="top"){var S,C;return{top:[...((S=h?.top)!=null?S:[]).filter(_=>!(p!=null&&p.has(_))),...Array.from(p)],bottom:((C=h?.bottom)!=null?C:[]).filter(_=>!(p!=null&&p.has(_)))}}return{top:((m=h?.top)!=null?m:[]).filter(_=>!(p!=null&&p.has(_))),bottom:((y=h?.bottom)!=null?y:[]).filter(_=>!(p!=null&&p.has(_)))}})},t.getCanPin=()=>{var r;const{enableRowPinning:s,enablePinning:u}=i.options;return typeof s=="function"?s(t):(r=s??u)!=null?r:!0},t.getIsPinned=()=>{const r=[t.id],{top:s,bottom:u}=i.getState().rowPinning,c=r.some(p=>s?.includes(p)),d=r.some(p=>u?.includes(p));return c?"top":d?"bottom":!1},t.getPinnedIndex=()=>{var r,s;const u=t.getIsPinned();if(!u)return-1;const c=(r=u==="top"?i.getTopRows():i.getBottomRows())==null?void 0:r.map(d=>{let{id:p}=d;return p});return(s=c?.indexOf(t.id))!=null?s:-1}},createTable:t=>{t.setRowPinning=i=>t.options.onRowPinningChange==null?void 0:t.options.onRowPinningChange(i),t.resetRowPinning=i=>{var r,s;return t.setRowPinning(i?Su():(r=(s=t.initialState)==null?void 0:s.rowPinning)!=null?r:Su())},t.getIsSomeRowsPinned=i=>{var r;const s=t.getState().rowPinning;if(!i){var u,c;return!!((u=s.top)!=null&&u.length||(c=s.bottom)!=null&&c.length)}return!!((r=s[i])!=null&&r.length)},t._getPinnedRows=(i,r,s)=>{var u;return((u=t.options.keepPinnedRows)==null||u?(r??[]).map(d=>{const p=t.getRow(d,!0);return p.getIsAllParentsExpanded()?p:null}):(r??[]).map(d=>i.find(p=>p.id===d))).filter(Boolean).map(d=>({...d,position:s}))},t.getTopRows=le(()=>[t.getRowModel().rows,t.getState().rowPinning.top],(i,r)=>t._getPinnedRows(i,r,"top"),ue(t.options,"debugRows")),t.getBottomRows=le(()=>[t.getRowModel().rows,t.getState().rowPinning.bottom],(i,r)=>t._getPinnedRows(i,r,"bottom"),ue(t.options,"debugRows")),t.getCenterRows=le(()=>[t.getRowModel().rows,t.getState().rowPinning.top,t.getState().rowPinning.bottom],(i,r,s)=>{const u=new Set([...r??[],...s??[]]);return i.filter(c=>!u.has(c.id))},ue(t.options,"debugRows"))}},py={getInitialState:t=>({rowSelection:{},...t}),getDefaultOptions:t=>({onRowSelectionChange:pt("rowSelection",t),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:t=>{t.setRowSelection=i=>t.options.onRowSelectionChange==null?void 0:t.options.onRowSelectionChange(i),t.resetRowSelection=i=>{var r;return t.setRowSelection(i?{}:(r=t.initialState.rowSelection)!=null?r:{})},t.toggleAllRowsSelected=i=>{t.setRowSelection(r=>{i=typeof i<"u"?i:!t.getIsAllRowsSelected();const s={...r},u=t.getPreGroupedRowModel().flatRows;return i?u.forEach(c=>{c.getCanSelect()&&(s[c.id]=!0)}):u.forEach(c=>{delete s[c.id]}),s})},t.toggleAllPageRowsSelected=i=>t.setRowSelection(r=>{const s=typeof i<"u"?i:!t.getIsAllPageRowsSelected(),u={...r};return t.getRowModel().rows.forEach(c=>{Du(u,c.id,s,!0,t)}),u}),t.getPreSelectedRowModel=()=>t.getCoreRowModel(),t.getSelectedRowModel=le(()=>[t.getState().rowSelection,t.getCoreRowModel()],(i,r)=>Object.keys(i).length?wu(t,r):{rows:[],flatRows:[],rowsById:{}},ue(t.options,"debugTable")),t.getFilteredSelectedRowModel=le(()=>[t.getState().rowSelection,t.getFilteredRowModel()],(i,r)=>Object.keys(i).length?wu(t,r):{rows:[],flatRows:[],rowsById:{}},ue(t.options,"debugTable")),t.getGroupedSelectedRowModel=le(()=>[t.getState().rowSelection,t.getSortedRowModel()],(i,r)=>Object.keys(i).length?wu(t,r):{rows:[],flatRows:[],rowsById:{}},ue(t.options,"debugTable")),t.getIsAllRowsSelected=()=>{const i=t.getFilteredRowModel().flatRows,{rowSelection:r}=t.getState();let s=!!(i.length&&Object.keys(r).length);return s&&i.some(u=>u.getCanSelect()&&!r[u.id])&&(s=!1),s},t.getIsAllPageRowsSelected=()=>{const i=t.getPaginationRowModel().flatRows.filter(u=>u.getCanSelect()),{rowSelection:r}=t.getState();let s=!!i.length;return s&&i.some(u=>!r[u.id])&&(s=!1),s},t.getIsSomeRowsSelected=()=>{var i;const r=Object.keys((i=t.getState().rowSelection)!=null?i:{}).length;return r>0&&r<t.getFilteredRowModel().flatRows.length},t.getIsSomePageRowsSelected=()=>{const i=t.getPaginationRowModel().flatRows;return t.getIsAllPageRowsSelected()?!1:i.filter(r=>r.getCanSelect()).some(r=>r.getIsSelected()||r.getIsSomeSelected())},t.getToggleAllRowsSelectedHandler=()=>i=>{t.toggleAllRowsSelected(i.target.checked)},t.getToggleAllPageRowsSelectedHandler=()=>i=>{t.toggleAllPageRowsSelected(i.target.checked)}},createRow:(t,i)=>{t.toggleSelected=(r,s)=>{const u=t.getIsSelected();i.setRowSelection(c=>{var d;if(r=typeof r<"u"?r:!u,t.getCanSelect()&&u===r)return c;const p={...c};return Du(p,t.id,r,(d=s?.selectChildren)!=null?d:!0,i),p})},t.getIsSelected=()=>{const{rowSelection:r}=i.getState();return Wu(t,r)},t.getIsSomeSelected=()=>{const{rowSelection:r}=i.getState();return zu(t,r)==="some"},t.getIsAllSubRowsSelected=()=>{const{rowSelection:r}=i.getState();return zu(t,r)==="all"},t.getCanSelect=()=>{var r;return typeof i.options.enableRowSelection=="function"?i.options.enableRowSelection(t):(r=i.options.enableRowSelection)!=null?r:!0},t.getCanSelectSubRows=()=>{var r;return typeof i.options.enableSubRowSelection=="function"?i.options.enableSubRowSelection(t):(r=i.options.enableSubRowSelection)!=null?r:!0},t.getCanMultiSelect=()=>{var r;return typeof i.options.enableMultiRowSelection=="function"?i.options.enableMultiRowSelection(t):(r=i.options.enableMultiRowSelection)!=null?r:!0},t.getToggleSelectedHandler=()=>{const r=t.getCanSelect();return s=>{var u;r&&t.toggleSelected((u=s.target)==null?void 0:u.checked)}}}},Du=(t,i,r,s,u)=>{var c;const d=u.getRow(i,!0);r?(d.getCanMultiSelect()||Object.keys(t).forEach(p=>delete t[p]),d.getCanSelect()&&(t[i]=!0)):delete t[i],s&&(c=d.subRows)!=null&&c.length&&d.getCanSelectSubRows()&&d.subRows.forEach(p=>Du(t,p.id,r,s,u))};function wu(t,i){const r=t.getState().rowSelection,s=[],u={},c=function(d,p){return d.map(h=>{var m;const y=Wu(h,r);if(y&&(s.push(h),u[h.id]=h),(m=h.subRows)!=null&&m.length&&(h={...h,subRows:c(h.subRows)}),y)return h}).filter(Boolean)};return{rows:c(i.rows),flatRows:s,rowsById:u}}function Wu(t,i){var r;return(r=i[t.id])!=null?r:!1}function zu(t,i,r){var s;if(!((s=t.subRows)!=null&&s.length))return!1;let u=!0,c=!1;return t.subRows.forEach(d=>{if(!(c&&!u)&&(d.getCanSelect()&&(Wu(d,i)?c=!0:u=!1),d.subRows&&d.subRows.length)){const p=zu(d,i);p==="all"?c=!0:(p==="some"&&(c=!0),u=!1)}}),u?"all":c?"some":!1}const Nu=/([0-9]+)/gm,gy=(t,i,r)=>mh(_n(t.getValue(r)).toLowerCase(),_n(i.getValue(r)).toLowerCase()),my=(t,i,r)=>mh(_n(t.getValue(r)),_n(i.getValue(r))),vy=(t,i,r)=>Qu(_n(t.getValue(r)).toLowerCase(),_n(i.getValue(r)).toLowerCase()),yy=(t,i,r)=>Qu(_n(t.getValue(r)),_n(i.getValue(r))),Sy=(t,i,r)=>{const s=t.getValue(r),u=i.getValue(r);return s>u?1:s<u?-1:0},wy=(t,i,r)=>Qu(t.getValue(r),i.getValue(r));function Qu(t,i){return t===i?0:t>i?1:-1}function _n(t){return typeof t=="number"?isNaN(t)||t===1/0||t===-1/0?"":String(t):typeof t=="string"?t:""}function mh(t,i){const r=t.split(Nu).filter(Boolean),s=i.split(Nu).filter(Boolean);for(;r.length&&s.length;){const u=r.shift(),c=s.shift(),d=parseInt(u,10),p=parseInt(c,10),h=[d,p].sort();if(isNaN(h[0])){if(u>c)return 1;if(c>u)return-1;continue}if(isNaN(h[1]))return isNaN(d)?-1:1;if(d>p)return 1;if(p>d)return-1}return r.length-s.length}const So={alphanumeric:gy,alphanumericCaseSensitive:my,text:vy,textCaseSensitive:yy,datetime:Sy,basic:wy},Cy={getInitialState:t=>({sorting:[],...t}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:t=>({onSortingChange:pt("sorting",t),isMultiSortEvent:i=>i.shiftKey}),createColumn:(t,i)=>{t.getAutoSortingFn=()=>{const r=i.getFilteredRowModel().flatRows.slice(10);let s=!1;for(const u of r){const c=u?.getValue(t.id);if(Object.prototype.toString.call(c)==="[object Date]")return So.datetime;if(typeof c=="string"&&(s=!0,c.split(Nu).length>1))return So.alphanumeric}return s?So.text:So.basic},t.getAutoSortDir=()=>{const r=i.getFilteredRowModel().flatRows[0];return typeof r?.getValue(t.id)=="string"?"asc":"desc"},t.getSortingFn=()=>{var r,s;if(!t)throw new Error;return us(t.columnDef.sortingFn)?t.columnDef.sortingFn:t.columnDef.sortingFn==="auto"?t.getAutoSortingFn():(r=(s=i.options.sortingFns)==null?void 0:s[t.columnDef.sortingFn])!=null?r:So[t.columnDef.sortingFn]},t.toggleSorting=(r,s)=>{const u=t.getNextSortingOrder(),c=typeof r<"u"&&r!==null;i.setSorting(d=>{const p=d?.find(S=>S.id===t.id),h=d?.findIndex(S=>S.id===t.id);let m=[],y,v=c?r:u==="desc";if(d!=null&&d.length&&t.getCanMultiSort()&&s?p?y="toggle":y="add":d!=null&&d.length&&h!==d.length-1?y="replace":p?y="toggle":y="replace",y==="toggle"&&(c||u||(y="remove")),y==="add"){var w;m=[...d,{id:t.id,desc:v}],m.splice(0,m.length-((w=i.options.maxMultiSortColCount)!=null?w:Number.MAX_SAFE_INTEGER))}else y==="toggle"?m=d.map(S=>S.id===t.id?{...S,desc:v}:S):y==="remove"?m=d.filter(S=>S.id!==t.id):m=[{id:t.id,desc:v}];return m})},t.getFirstSortDir=()=>{var r,s;return((r=(s=t.columnDef.sortDescFirst)!=null?s:i.options.sortDescFirst)!=null?r:t.getAutoSortDir()==="desc")?"desc":"asc"},t.getNextSortingOrder=r=>{var s,u;const c=t.getFirstSortDir(),d=t.getIsSorted();return d?d!==c&&((s=i.options.enableSortingRemoval)==null||s)&&(!(r&&(u=i.options.enableMultiRemove)!=null)||u)?!1:d==="desc"?"asc":"desc":c},t.getCanSort=()=>{var r,s;return((r=t.columnDef.enableSorting)!=null?r:!0)&&((s=i.options.enableSorting)!=null?s:!0)&&!!t.accessorFn},t.getCanMultiSort=()=>{var r,s;return(r=(s=t.columnDef.enableMultiSort)!=null?s:i.options.enableMultiSort)!=null?r:!!t.accessorFn},t.getIsSorted=()=>{var r;const s=(r=i.getState().sorting)==null?void 0:r.find(u=>u.id===t.id);return s?s.desc?"desc":"asc":!1},t.getSortIndex=()=>{var r,s;return(r=(s=i.getState().sorting)==null?void 0:s.findIndex(u=>u.id===t.id))!=null?r:-1},t.clearSorting=()=>{i.setSorting(r=>r!=null&&r.length?r.filter(s=>s.id!==t.id):[])},t.getToggleSortingHandler=()=>{const r=t.getCanSort();return s=>{r&&(s.persist==null||s.persist(),t.toggleSorting==null||t.toggleSorting(void 0,t.getCanMultiSort()?i.options.isMultiSortEvent==null?void 0:i.options.isMultiSortEvent(s):!1))}}},createTable:t=>{t.setSorting=i=>t.options.onSortingChange==null?void 0:t.options.onSortingChange(i),t.resetSorting=i=>{var r,s;t.setSorting(i?[]:(r=(s=t.initialState)==null?void 0:s.sorting)!=null?r:[])},t.getPreSortedRowModel=()=>t.getGroupedRowModel(),t.getSortedRowModel=()=>(!t._getSortedRowModel&&t.options.getSortedRowModel&&(t._getSortedRowModel=t.options.getSortedRowModel(t)),t.options.manualSorting||!t._getSortedRowModel?t.getPreSortedRowModel():t._getSortedRowModel())}},Ry=[Hv,uy,ry,oy,Gv,Wv,ay,cy,Cy,ty,fy,dy,hy,py,sy];function _y(t){var i,r;const s=[...Ry,...(i=t._features)!=null?i:[]];let u={_features:s};const c=u._features.reduce((w,S)=>Object.assign(w,S.getDefaultOptions==null?void 0:S.getDefaultOptions(u)),{}),d=w=>u.options.mergeOptions?u.options.mergeOptions(c,w):{...c,...w};let h={...{},...(r=t.initialState)!=null?r:{}};u._features.forEach(w=>{var S;h=(S=w.getInitialState==null?void 0:w.getInitialState(h))!=null?S:h});const m=[];let y=!1;const v={_features:s,options:{...c,...t},initialState:h,_queue:w=>{m.push(w),y||(y=!0,Promise.resolve().then(()=>{for(;m.length;)m.shift()();y=!1}).catch(S=>setTimeout(()=>{throw S})))},reset:()=>{u.setState(u.initialState)},setOptions:w=>{const S=Cn(w,u.options);u.options=d(S)},getState:()=>u.options.state,setState:w=>{u.options.onStateChange==null||u.options.onStateChange(w)},_getRowId:(w,S,C)=>{var _;return(_=u.options.getRowId==null?void 0:u.options.getRowId(w,S,C))!=null?_:`${C?[C.id,S].join("."):S}`},getCoreRowModel:()=>(u._getCoreRowModel||(u._getCoreRowModel=u.options.getCoreRowModel(u)),u._getCoreRowModel()),getRowModel:()=>u.getPaginationRowModel(),getRow:(w,S)=>{let C=(S?u.getPrePaginationRowModel():u.getRowModel()).rowsById[w];if(!C&&(C=u.getCoreRowModel().rowsById[w],!C))throw new Error;return C},_getDefaultColumnDef:le(()=>[u.options.defaultColumn],w=>{var S;return w=(S=w)!=null?S:{},{header:C=>{const _=C.header.column.columnDef;return _.accessorKey?_.accessorKey:_.accessorFn?_.id:null},cell:C=>{var _,x;return(_=(x=C.renderValue())==null||x.toString==null?void 0:x.toString())!=null?_:null},...u._features.reduce((C,_)=>Object.assign(C,_.getDefaultColumnDef==null?void 0:_.getDefaultColumnDef()),{}),...w}},ue(t,"debugColumns")),_getColumnDefs:()=>u.options.columns,getAllColumns:le(()=>[u._getColumnDefs()],w=>{const S=function(C,_,x){return x===void 0&&(x=0),C.map(M=>{const F=Bv(u,M,x,_),O=M;return F.columns=O.columns?S(O.columns,F,x+1):[],F})};return S(w)},ue(t,"debugColumns")),getAllFlatColumns:le(()=>[u.getAllColumns()],w=>w.flatMap(S=>S.getFlatColumns()),ue(t,"debugColumns")),_getAllFlatColumnsById:le(()=>[u.getAllFlatColumns()],w=>w.reduce((S,C)=>(S[C.id]=C,S),{}),ue(t,"debugColumns")),getAllLeafColumns:le(()=>[u.getAllColumns(),u._getOrderColumnsFn()],(w,S)=>{let C=w.flatMap(_=>_.getLeafColumns());return S(C)},ue(t,"debugColumns")),getColumn:w=>u._getAllFlatColumnsById()[w]};Object.assign(u,v);for(let w=0;w<u._features.length;w++){const S=u._features[w];S==null||S.createTable==null||S.createTable(u)}return u}function zy(){return t=>le(()=>[t.options.data],i=>{const r={rows:[],flatRows:[],rowsById:{}},s=function(u,c,d){c===void 0&&(c=0);const p=[];for(let m=0;m<u.length;m++){const y=Uv(t,t._getRowId(u[m],m,d),u[m],m,c,void 0,d?.id);if(r.flatRows.push(y),r.rowsById[y.id]=y,p.push(y),t.options.getSubRows){var h;y.originalSubRows=t.options.getSubRows(u[m],m),(h=y.originalSubRows)!=null&&h.length&&(y.subRows=s(y.originalSubRows,c+1,y))}}return p};return r.rows=s(i),r},ue(t.options,"debugTable","getRowModel",()=>t._autoResetPageIndex()))}function Ny(){return t=>le(()=>[t.getState().sorting,t.getPreSortedRowModel()],(i,r)=>{if(!r.rows.length||!(i!=null&&i.length))return r;const s=t.getState().sorting,u=[],c=s.filter(h=>{var m;return(m=t.getColumn(h.id))==null?void 0:m.getCanSort()}),d={};c.forEach(h=>{const m=t.getColumn(h.id);m&&(d[h.id]={sortUndefined:m.columnDef.sortUndefined,invertSorting:m.columnDef.invertSorting,sortingFn:m.getSortingFn()})});const p=h=>{const m=h.map(y=>({...y}));return m.sort((y,v)=>{for(let S=0;S<c.length;S+=1){var w;const C=c[S],_=d[C.id],x=_.sortUndefined,M=(w=C?.desc)!=null?w:!1;let F=0;if(x){const O=y.getValue(C.id),z=v.getValue(C.id),j=O===void 0,U=z===void 0;if(j||U){if(x==="first")return j?-1:1;if(x==="last")return j?1:-1;F=j&&U?0:j?x:-x}}if(F===0&&(F=_.sortingFn(y,v,C.id)),F!==0)return M&&(F*=-1),_.invertSorting&&(F*=-1),F}return y.index-v.index}),m.forEach(y=>{var v;u.push(y),(v=y.subRows)!=null&&v.length&&(y.subRows=p(y.subRows))}),m};return{rows:p(r.rows),flatRows:u,rowsById:r.rowsById}},ue(t.options,"debugTable","getSortedRowModel",()=>t._autoResetPageIndex()))}/**
69
+ * react-table
70
+ *
71
+ * Copyright (c) TanStack
72
+ *
73
+ * This source code is licensed under the MIT license found in the
74
+ * LICENSE.md file in the root directory of this source tree.
75
+ *
76
+ * @license MIT
77
+ */function $y(t,i){return t?Py(t)?Z.createElement(t,i):t:null}function Py(t){return xy(t)||typeof t=="function"||ky(t)}function xy(t){return typeof t=="function"&&(()=>{const i=Object.getPrototypeOf(t);return i.prototype&&i.prototype.isReactComponent})()}function ky(t){return typeof t=="object"&&typeof t.$$typeof=="symbol"&&["react.memo","react.forward_ref"].includes(t.$$typeof.description)}function Ay(t){const i={state:{},onStateChange:()=>{},renderFallbackValue:null,...t},[r]=Z.useState(()=>({current:_y(i)})),[s,u]=Z.useState(()=>r.current.initialState);return r.current.setOptions(c=>({...c,...t,state:{...s,...t.state},onStateChange:d=>{u(d),t.onStateChange==null||t.onStateChange(d)}})),r.current}export{Fv as O,Ey as Q,Ro as R,Z as a,Io as b,Dy as c,Ny as d,zy as e,$y as f,hg as g,nh as h,rh as i,ne as j,Fy as k,Iy as l,Ty as m,Ly as n,My as o,Oy as p,wg as r,Ay as u};