mediacms/static/chapters_editor/chapters-editor.js
Yiannis Christodoulou 54e2f1d7e4 Add audio poster support for audio files in video players
Introduces an audio-poster.jpg image and updates both chapters and video editor React video player components to display a poster image for audio files when no poster is provided. Also adds a posterUrl field to MEDIA_DATA and ensures fallback logic for poster images is consistent across iOS and standard video players.
2025-10-19 13:56:17 +03:00

204 lines
396 KiB
JavaScript

(function(){"use strict";var cm={exports:{}},Jc={exports:{}},ll={exports:{}};ll.exports;var fm;function NS(){return fm||(fm=1,function(k,M){/**
* @license React
* react.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var J="18.3.1",Me=Symbol.for("react.element"),Ne=Symbol.for("react.portal"),P=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),kt=Symbol.for("react.profiler"),de=Symbol.for("react.provider"),pe=Symbol.for("react.context"),dt=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),me=Symbol.for("react.lazy"),re=Symbol.for("react.offscreen"),qt=Symbol.iterator,yt="@@iterator";function Fe(s){if(s===null||typeof s!="object")return null;var m=qt&&s[qt]||s[yt];return typeof m=="function"?m:null}var De={current:null},Ze={transition:null},O={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},Qe={current:null},I={},Gt=null;function Xe(s){Gt=s}I.setExtraStackFrame=function(s){Gt=s},I.getCurrentStack=null,I.getStackAddendum=function(){var s="";Gt&&(s+=Gt);var m=I.getCurrentStack;return m&&(s+=m()||""),s};var xt=!1,Vt=!1,Ce=!1,G=!1,et=!1,Z={ReactCurrentDispatcher:De,ReactCurrentBatchConfig:Ze,ReactCurrentOwner:Qe};Z.ReactDebugCurrentFrame=I,Z.ReactCurrentActQueue=O;function pt(s){{for(var m=arguments.length,D=new Array(m>1?m-1:0),A=1;A<m;A++)D[A-1]=arguments[A];se("warn",s,D)}}function he(s){{for(var m=arguments.length,D=new Array(m>1?m-1:0),A=1;A<m;A++)D[A-1]=arguments[A];se("error",s,D)}}function se(s,m,D){{var A=Z.ReactDebugCurrentFrame,X=A.getStackAddendum();X!==""&&(m+="%s",D=D.concat([X]));var Ae=D.map(function(be){return String(be)});Ae.unshift("Warning: "+m),Function.prototype.apply.call(console[s],console,Ae)}}var Ke={};function Te(s,m){{var D=s.constructor,A=D&&(D.displayName||D.name)||"ReactClass",X=A+"."+m;if(Ke[X])return;he("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",m,A),Ke[X]=!0}}var We={isMounted:function(s){return!1},enqueueForceUpdate:function(s,m,D){Te(s,"forceUpdate")},enqueueReplaceState:function(s,m,D,A){Te(s,"replaceState")},enqueueSetState:function(s,m,D,A){Te(s,"setState")}},Ue=Object.assign,at={};Object.freeze(at);function Rt(s,m,D){this.props=s,this.context=m,this.refs=at,this.updater=D||We}Rt.prototype.isReactComponent={},Rt.prototype.setState=function(s,m){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,m,"setState")},Rt.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var _t={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Xt=function(s,m){Object.defineProperty(Rt.prototype,s,{get:function(){pt("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var St in _t)_t.hasOwnProperty(St)&&Xt(St,_t[St])}function jn(){}jn.prototype=Rt.prototype;function mt(s,m,D){this.props=s,this.context=m,this.refs=at,this.updater=D||We}var an=mt.prototype=new jn;an.constructor=mt,Ue(an,Rt.prototype),an.isPureReactComponent=!0;function Mt(){var s={current:null};return Object.seal(s),s}var tt=Array.isArray;function rn(s){return tt(s)}function on(s){{var m=typeof Symbol=="function"&&Symbol.toStringTag,D=m&&s[Symbol.toStringTag]||s.constructor.name||"Object";return D}}function ln(s){try{return tn(s),!1}catch{return!0}}function tn(s){return""+s}function va(s){if(ln(s))return he("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",on(s)),tn(s)}function L(s,m,D){var A=s.displayName;if(A)return A;var X=m.displayName||m.name||"";return X!==""?D+"("+X+")":D}function Y(s){return s.displayName||"Context"}function le(s){if(s==null)return null;if(typeof s.tag=="number"&&he("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof s=="function")return s.displayName||s.name||null;if(typeof s=="string")return s;switch(s){case P:return"Fragment";case Ne:return"Portal";case kt:return"Profiler";case c:return"StrictMode";case ne:return"Suspense";case je:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case pe:var m=s;return Y(m)+".Consumer";case de:var D=s;return Y(D._context)+".Provider";case dt:return L(s,s.render,"ForwardRef");case ae:var A=s.displayName||null;return A!==null?A:le(s.type)||"Memo";case me:{var X=s,Ae=X._payload,be=X._init;try{return le(be(Ae))}catch{return null}}}return null}var ee=Object.prototype.hasOwnProperty,we={key:!0,ref:!0,__self:!0,__source:!0},qe,ot,_e;_e={};function Be(s){if(ee.call(s,"ref")){var m=Object.getOwnPropertyDescriptor(s,"ref").get;if(m&&m.isReactWarning)return!1}return s.ref!==void 0}function lt(s){if(ee.call(s,"key")){var m=Object.getOwnPropertyDescriptor(s,"key").get;if(m&&m.isReactWarning)return!1}return s.key!==void 0}function Qt(s,m){var D=function(){qe||(qe=!0,he("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};D.isReactWarning=!0,Object.defineProperty(s,"key",{get:D,configurable:!0})}function hn(s,m){var D=function(){ot||(ot=!0,he("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};D.isReactWarning=!0,Object.defineProperty(s,"ref",{get:D,configurable:!0})}function W(s){if(typeof s.ref=="string"&&Qe.current&&s.__self&&Qe.current.stateNode!==s.__self){var m=le(Qe.current.type);_e[m]||(he('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',m,s.ref),_e[m]=!0)}}var ye=function(s,m,D,A,X,Ae,be){var Ye={$$typeof:Me,type:s,key:m,ref:D,props:be,_owner:Ae};return Ye._store={},Object.defineProperty(Ye._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ye,"_self",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.defineProperty(Ye,"_source",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.freeze&&(Object.freeze(Ye.props),Object.freeze(Ye)),Ye};function Ve(s,m,D){var A,X={},Ae=null,be=null,Ye=null,ut=null;if(m!=null){Be(m)&&(be=m.ref,W(m)),lt(m)&&(va(m.key),Ae=""+m.key),Ye=m.__self===void 0?null:m.__self,ut=m.__source===void 0?null:m.__source;for(A in m)ee.call(m,A)&&!we.hasOwnProperty(A)&&(X[A]=m[A])}var Ot=arguments.length-2;if(Ot===1)X.children=D;else if(Ot>1){for(var Yt=Array(Ot),It=0;It<Ot;It++)Yt[It]=arguments[It+2];Object.freeze&&Object.freeze(Yt),X.children=Yt}if(s&&s.defaultProps){var rt=s.defaultProps;for(A in rt)X[A]===void 0&&(X[A]=rt[A])}if(Ae||be){var en=typeof s=="function"?s.displayName||s.name||"Unknown":s;Ae&&Qt(X,en),be&&hn(X,en)}return ye(s,Ae,be,Ye,ut,Qe.current,X)}function ht(s,m){var D=ye(s.type,m,s.ref,s._self,s._source,s._owner,s.props);return D}function Lt(s,m,D){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var A,X=Ue({},s.props),Ae=s.key,be=s.ref,Ye=s._self,ut=s._source,Ot=s._owner;if(m!=null){Be(m)&&(be=m.ref,Ot=Qe.current),lt(m)&&(va(m.key),Ae=""+m.key);var Yt;s.type&&s.type.defaultProps&&(Yt=s.type.defaultProps);for(A in m)ee.call(m,A)&&!we.hasOwnProperty(A)&&(m[A]===void 0&&Yt!==void 0?X[A]=Yt[A]:X[A]=m[A])}var It=arguments.length-2;if(It===1)X.children=D;else if(It>1){for(var rt=Array(It),en=0;en<It;en++)rt[en]=arguments[en+2];X.children=rt}return ye(s.type,Ae,be,Ye,ut,Ot,X)}function Ft(s){return typeof s=="object"&&s!==null&&s.$$typeof===Me}var Ht=".",Un=":";function Bt(s){var m=/[=:]/g,D={"=":"=0",":":"=2"},A=s.replace(m,function(X){return D[X]});return"$"+A}var zt=!1,Ut=/\/+/g;function $a(s){return s.replace(Ut,"$&/")}function Ta(s,m){return typeof s=="object"&&s!==null&&s.key!=null?(va(s.key),Bt(""+s.key)):m.toString(36)}function Ea(s,m,D,A,X){var Ae=typeof s;(Ae==="undefined"||Ae==="boolean")&&(s=null);var be=!1;if(s===null)be=!0;else switch(Ae){case"string":case"number":be=!0;break;case"object":switch(s.$$typeof){case Me:case Ne:be=!0}}if(be){var Ye=s,ut=X(Ye),Ot=A===""?Ht+Ta(Ye,0):A;if(rn(ut)){var Yt="";Ot!=null&&(Yt=$a(Ot)+"/"),Ea(ut,m,Yt,"",function(uf){return uf})}else ut!=null&&(Ft(ut)&&(ut.key&&(!Ye||Ye.key!==ut.key)&&va(ut.key),ut=ht(ut,D+(ut.key&&(!Ye||Ye.key!==ut.key)?$a(""+ut.key)+"/":"")+Ot)),m.push(ut));return 1}var It,rt,en=0,dn=A===""?Ht:A+Un;if(rn(s))for(var Oi=0;Oi<s.length;Oi++)It=s[Oi],rt=dn+Ta(It,Oi),en+=Ea(It,m,D,rt,X);else{var ml=Fe(s);if(typeof ml=="function"){var Lr=s;ml===Lr.entries&&(zt||pt("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),zt=!0);for(var hl=ml.call(Lr),yl,lf=0;!(yl=hl.next()).done;)It=yl.value,rt=dn+Ta(It,lf++),en+=Ea(It,m,D,rt,X)}else if(Ae==="object"){var Zu=String(s);throw new Error("Objects are not valid as a React child (found: "+(Zu==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Zu)+"). If you meant to render a collection of children, use an array instead.")}}return en}function or(s,m,D){if(s==null)return s;var A=[],X=0;return Ea(s,A,"","",function(Ae){return m.call(D,Ae,X++)}),A}function La(s){var m=0;return or(s,function(){m++}),m}function Zr(s,m,D){or(s,function(){m.apply(this,arguments)},D)}function xr(s){return or(s,function(m){return m})||[]}function ei(s){if(!Ft(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function ti(s){var m={$$typeof:pe,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};m.Provider={$$typeof:de,_context:m};var D=!1,A=!1,X=!1;{var Ae={$$typeof:pe,_context:m};Object.defineProperties(Ae,{Provider:{get:function(){return A||(A=!0,he("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),m.Provider},set:function(be){m.Provider=be}},_currentValue:{get:function(){return m._currentValue},set:function(be){m._currentValue=be}},_currentValue2:{get:function(){return m._currentValue2},set:function(be){m._currentValue2=be}},_threadCount:{get:function(){return m._threadCount},set:function(be){m._threadCount=be}},Consumer:{get:function(){return D||(D=!0,he("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),m.Consumer}},displayName:{get:function(){return m.displayName},set:function(be){X||(pt("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",be),X=!0)}}}),m.Consumer=Ae}return m._currentRenderer=null,m._currentRenderer2=null,m}var yn=-1,gn=0,ea=1,ta=2;function Rr(s){if(s._status===yn){var m=s._result,D=m();if(D.then(function(Ae){if(s._status===gn||s._status===yn){var be=s;be._status=ea,be._result=Ae}},function(Ae){if(s._status===gn||s._status===yn){var be=s;be._status=ta,be._result=Ae}}),s._status===yn){var A=s;A._status=gn,A._result=D}}if(s._status===ea){var X=s._result;return X===void 0&&he(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
Did you accidentally put curly braces around the import?`,X),"default"in X||he(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,X),X.default}else throw s._result}function wr(s){var m={_status:yn,_result:s},D={$$typeof:me,_payload:m,_init:Rr};{var A,X;Object.defineProperties(D,{defaultProps:{configurable:!0,get:function(){return A},set:function(Ae){he("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),A=Ae,Object.defineProperty(D,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return X},set:function(Ae){he("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),X=Ae,Object.defineProperty(D,"propTypes",{enumerable:!0})}}})}return D}function Dr(s){s!=null&&s.$$typeof===ae?he("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?he("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&he("forwardRef render functions accept exactly two parameters: props and ref. %s",s.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),s!=null&&(s.defaultProps!=null||s.propTypes!=null)&&he("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var m={$$typeof:dt,render:s};{var D;Object.defineProperty(m,"displayName",{enumerable:!1,configurable:!0,get:function(){return D},set:function(A){D=A,!s.name&&!s.displayName&&(s.displayName=A)}})}return m}var h;h=Symbol.for("react.module.reference");function z(s){return!!(typeof s=="string"||typeof s=="function"||s===P||s===kt||et||s===c||s===ne||s===je||G||s===re||xt||Vt||Ce||typeof s=="object"&&s!==null&&(s.$$typeof===me||s.$$typeof===ae||s.$$typeof===de||s.$$typeof===pe||s.$$typeof===dt||s.$$typeof===h||s.getModuleId!==void 0))}function Q(s,m){z(s)||he("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var D={$$typeof:ae,type:s,compare:m===void 0?null:m};{var A;Object.defineProperty(D,"displayName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(X){A=X,!s.name&&!s.displayName&&(s.displayName=X)}})}return D}function ve(){var s=De.current;return s===null&&he(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),s}function nt(s){var m=ve();if(s._context!==void 0){var D=s._context;D.Consumer===s?he("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):D.Provider===s&&he("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(s)}function p(s){var m=ve();return m.useState(s)}function E(s,m,D){var A=ve();return A.useReducer(s,m,D)}function b(s){var m=ve();return m.useRef(s)}function T(s,m){var D=ve();return D.useEffect(s,m)}function R(s,m){var D=ve();return D.useInsertionEffect(s,m)}function U(s,m){var D=ve();return D.useLayoutEffect(s,m)}function S(s,m){var D=ve();return D.useCallback(s,m)}function $(s,m){var D=ve();return D.useMemo(s,m)}function V(s,m,D){var A=ve();return A.useImperativeHandle(s,m,D)}function Se(s,m){{var D=ve();return D.useDebugValue(s,m)}}function xe(){var s=ve();return s.useTransition()}function Oe(s){var m=ve();return m.useDeferredValue(s)}function vt(){var s=ve();return s.useId()}function Jt(s,m,D){var A=ve();return A.useSyncExternalStore(s,m,D)}var bn=0,_n,_r,Oa,kn,lr,Hn,$t;function na(){}na.__reactDisabledLog=!0;function ur(){{if(bn===0){_n=console.log,_r=console.info,Oa=console.warn,kn=console.error,lr=console.group,Hn=console.groupCollapsed,$t=console.groupEnd;var s={configurable:!0,enumerable:!0,value:na,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}bn++}}function Pa(){{if(bn--,bn===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ue({},s,{value:_n}),info:Ue({},s,{value:_r}),warn:Ue({},s,{value:Oa}),error:Ue({},s,{value:kn}),group:Ue({},s,{value:lr}),groupCollapsed:Ue({},s,{value:Hn}),groupEnd:Ue({},s,{value:$t})})}bn<0&&he("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var sr=Z.ReactCurrentDispatcher,qn;function pa(s,m,D){{if(qn===void 0)try{throw Error()}catch(X){var A=X.stack.trim().match(/\n( *(at )?)/);qn=A&&A[1]||""}return`
`+qn+s}}var cr=!1,ni;{var cn=typeof WeakMap=="function"?WeakMap:Map;ni=new cn}function wt(s,m){if(!s||cr)return"";{var D=ni.get(s);if(D!==void 0)return D}var A;cr=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ae;Ae=sr.current,sr.current=null,ur();try{if(m){var be=function(){throw Error()};if(Object.defineProperty(be.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(be,[])}catch(dn){A=dn}Reflect.construct(s,[],be)}else{try{be.call()}catch(dn){A=dn}s.call(be.prototype)}}else{try{throw Error()}catch(dn){A=dn}s()}}catch(dn){if(dn&&A&&typeof dn.stack=="string"){for(var Ye=dn.stack.split(`
`),ut=A.stack.split(`
`),Ot=Ye.length-1,Yt=ut.length-1;Ot>=1&&Yt>=0&&Ye[Ot]!==ut[Yt];)Yt--;for(;Ot>=1&&Yt>=0;Ot--,Yt--)if(Ye[Ot]!==ut[Yt]){if(Ot!==1||Yt!==1)do if(Ot--,Yt--,Yt<0||Ye[Ot]!==ut[Yt]){var It=`
`+Ye[Ot].replace(" at new "," at ");return s.displayName&&It.includes("<anonymous>")&&(It=It.replace("<anonymous>",s.displayName)),typeof s=="function"&&ni.set(s,It),It}while(Ot>=1&&Yt>=0);break}}}finally{cr=!1,sr.current=Ae,Pa(),Error.prepareStackTrace=X}var rt=s?s.displayName||s.name:"",en=rt?pa(rt):"";return typeof s=="function"&&ni.set(s,en),en}function Aa(s,m,D){return wt(s,!1)}function Ya(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function Ia(s,m,D){if(s==null)return"";if(typeof s=="function")return wt(s,Ya(s));if(typeof s=="string")return pa(s);switch(s){case ne:return pa("Suspense");case je:return pa("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case dt:return Aa(s.render);case ae:return Ia(s.type,m,D);case me:{var A=s,X=A._payload,Ae=A._init;try{return Ia(Ae(X),m,D)}catch{}}}return""}var qu={},sl=Z.ReactDebugCurrentFrame;function Tt(s){if(s){var m=s._owner,D=Ia(s.type,s._source,m?m.type:null);sl.setExtraStackFrame(D)}else sl.setExtraStackFrame(null)}function nf(s,m,D,A,X){{var Ae=Function.call.bind(ee);for(var be in s)if(Ae(s,be)){var Ye=void 0;try{if(typeof s[be]!="function"){var ut=Error((A||"React class")+": "+D+" type `"+be+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[be]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ut.name="Invariant Violation",ut}Ye=s[be](m,be,A,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ot){Ye=Ot}Ye&&!(Ye instanceof Error)&&(Tt(X),he("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",A||"React class",D,be,typeof Ye),Tt(null)),Ye instanceof Error&&!(Ye.message in qu)&&(qu[Ye.message]=!0,Tt(X),he("Failed %s type: %s",D,Ye.message),Tt(null))}}}function kr(s){if(s){var m=s._owner,D=Ia(s.type,s._source,m?m.type:null);Xe(D)}else Xe(null)}var Ge;Ge=!1;function cl(){if(Qe.current){var s=le(Qe.current.type);if(s)return`
Check the render method of \``+s+"`."}return""}function aa(s){if(s!==void 0){var m=s.fileName.replace(/^.*[\\\/]/,""),D=s.lineNumber;return`
Check your code at `+m+":"+D+"."}return""}function Mi(s){return s!=null?aa(s.__source):""}var ai={};function af(s){var m=cl();if(!m){var D=typeof s=="string"?s:s.displayName||s.name;D&&(m=`
Check the top-level render call using <`+D+">.")}return m}function Mn(s,m){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var D=af(m);if(!ai[D]){ai[D]=!0;var A="";s&&s._owner&&s._owner!==Qe.current&&(A=" It was passed a child from "+le(s._owner.type)+"."),kr(s),he('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',D,A),kr(null)}}}function Zt(s,m){if(typeof s=="object"){if(rn(s))for(var D=0;D<s.length;D++){var A=s[D];Ft(A)&&Mn(A,m)}else if(Ft(s))s._store&&(s._store.validated=!0);else if(s){var X=Fe(s);if(typeof X=="function"&&X!==s.entries)for(var Ae=X.call(s),be;!(be=Ae.next()).done;)Ft(be.value)&&Mn(be.value,m)}}}function Gu(s){{var m=s.type;if(m==null||typeof m=="string")return;var D;if(typeof m=="function")D=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===dt||m.$$typeof===ae))D=m.propTypes;else return;if(D){var A=le(m);nf(D,s.props,"prop",A,s)}else if(m.PropTypes!==void 0&&!Ge){Ge=!0;var X=le(m);he("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&he("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Na(s){{for(var m=Object.keys(s.props),D=0;D<m.length;D++){var A=m[D];if(A!=="children"&&A!=="key"){kr(s),he("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),kr(null);break}}s.ref!==null&&(kr(s),he("Invalid attribute `ref` supplied to `React.Fragment`."),kr(null))}}function ra(s,m,D){var A=z(s);if(!A){var X="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(X+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ae=Mi(m);Ae?X+=Ae:X+=cl();var be;s===null?be="null":rn(s)?be="array":s!==void 0&&s.$$typeof===Me?(be="<"+(le(s.type)||"Unknown")+" />",X=" Did you accidentally export a JSX literal instead of a component?"):be=typeof s,he("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,X)}var Ye=Ve.apply(this,arguments);if(Ye==null)return Ye;if(A)for(var ut=2;ut<arguments.length;ut++)Zt(arguments[ut],s);return s===P?Na(Ye):Gu(Ye),Ye}var Wa=!1;function rf(s){var m=ra.bind(null,s);return m.type=s,Wa||(Wa=!0,pt("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(m,"type",{enumerable:!1,get:function(){return pt("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),m}function fl(s,m,D){for(var A=Lt.apply(this,arguments),X=2;X<arguments.length;X++)Zt(arguments[X],A.type);return Gu(A),A}function Xu(s,m){var D=Ze.transition;Ze.transition={};var A=Ze.transition;Ze.transition._updatedFibers=new Set;try{s()}finally{if(Ze.transition=D,D===null&&A._updatedFibers){var X=A._updatedFibers.size;X>10&&pt("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),A._updatedFibers.clear()}}}var dl=!1,uo=null;function of(s){if(uo===null)try{var m=("require"+Math.random()).slice(0,7),D=k&&k[m];uo=D.call(k,"timers").setImmediate}catch{uo=function(X){dl===!1&&(dl=!0,typeof MessageChannel>"u"&&he("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Ae=new MessageChannel;Ae.port1.onmessage=X,Ae.port2.postMessage(void 0)}}return uo(s)}var ri=0,Li=!1;function vl(s){{var m=ri;ri++,O.current===null&&(O.current=[]);var D=O.isBatchingLegacy,A;try{if(O.isBatchingLegacy=!0,A=s(),!D&&O.didScheduleLegacyUpdate){var X=O.current;X!==null&&(O.didScheduleLegacyUpdate=!1,fo(X))}}catch(rt){throw Mr(m),rt}finally{O.isBatchingLegacy=D}if(A!==null&&typeof A=="object"&&typeof A.then=="function"){var Ae=A,be=!1,Ye={then:function(rt,en){be=!0,Ae.then(function(dn){Mr(m),ri===0?so(dn,rt,en):rt(dn)},function(dn){Mr(m),en(dn)})}};return!Li&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){be||(Li=!0,he("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Ye}else{var ut=A;if(Mr(m),ri===0){var Ot=O.current;Ot!==null&&(fo(Ot),O.current=null);var Yt={then:function(rt,en){O.current===null?(O.current=[],so(ut,rt,en)):rt(ut)}};return Yt}else{var It={then:function(rt,en){rt(ut)}};return It}}}}function Mr(s){s!==ri-1&&he("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ri=s}function so(s,m,D){{var A=O.current;if(A!==null)try{fo(A),of(function(){A.length===0?(O.current=null,m(s)):so(s,m,D)})}catch(X){D(X)}else m(s)}}var co=!1;function fo(s){if(!co){co=!0;var m=0;try{for(;m<s.length;m++){var D=s[m];do D=D(!0);while(D!==null)}s.length=0}catch(A){throw s=s.slice(m+1),A}finally{co=!1}}}var Qu=ra,Ku=fl,pl=rf,Ju={map:or,forEach:Zr,count:La,toArray:xr,only:ei};M.Children=Ju,M.Component=Rt,M.Fragment=P,M.Profiler=kt,M.PureComponent=mt,M.StrictMode=c,M.Suspense=ne,M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z,M.act=vl,M.cloneElement=Ku,M.createContext=ti,M.createElement=Qu,M.createFactory=pl,M.createRef=Mt,M.forwardRef=Dr,M.isValidElement=Ft,M.lazy=wr,M.memo=Q,M.startTransition=Xu,M.unstable_act=vl,M.useCallback=S,M.useContext=nt,M.useDebugValue=Se,M.useDeferredValue=Oe,M.useEffect=T,M.useId=vt,M.useImperativeHandle=V,M.useInsertionEffect=R,M.useLayoutEffect=U,M.useMemo=$,M.useReducer=E,M.useRef=b,M.useState=p,M.useSyncExternalStore=Jt,M.useTransition=xe,M.version=J,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(ll,ll.exports)),ll.exports}var dm;function Zc(){return dm||(dm=1,Jc.exports=NS()),Jc.exports}var ul={},vm;function jS(){if(vm)return ul;vm=1;/**
* @license React
* react-jsx-runtime.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return function(){var k=Zc(),M=Symbol.for("react.element"),J=Symbol.for("react.portal"),Me=Symbol.for("react.fragment"),Ne=Symbol.for("react.strict_mode"),P=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),kt=Symbol.for("react.context"),de=Symbol.for("react.forward_ref"),pe=Symbol.for("react.suspense"),dt=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),je=Symbol.for("react.lazy"),ae=Symbol.for("react.offscreen"),me=Symbol.iterator,re="@@iterator";function qt(h){if(h===null||typeof h!="object")return null;var z=me&&h[me]||h[re];return typeof z=="function"?z:null}var yt=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Fe(h){{for(var z=arguments.length,Q=new Array(z>1?z-1:0),ve=1;ve<z;ve++)Q[ve-1]=arguments[ve];De("error",h,Q)}}function De(h,z,Q){{var ve=yt.ReactDebugCurrentFrame,nt=ve.getStackAddendum();nt!==""&&(z+="%s",Q=Q.concat([nt]));var p=Q.map(function(E){return String(E)});p.unshift("Warning: "+z),Function.prototype.apply.call(console[h],console,p)}}var Ze=!1,O=!1,Qe=!1,I=!1,Gt=!1,Xe;Xe=Symbol.for("react.module.reference");function xt(h){return!!(typeof h=="string"||typeof h=="function"||h===Me||h===P||Gt||h===Ne||h===pe||h===dt||I||h===ae||Ze||O||Qe||typeof h=="object"&&h!==null&&(h.$$typeof===je||h.$$typeof===ne||h.$$typeof===c||h.$$typeof===kt||h.$$typeof===de||h.$$typeof===Xe||h.getModuleId!==void 0))}function Vt(h,z,Q){var ve=h.displayName;if(ve)return ve;var nt=z.displayName||z.name||"";return nt!==""?Q+"("+nt+")":Q}function Ce(h){return h.displayName||"Context"}function G(h){if(h==null)return null;if(typeof h.tag=="number"&&Fe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case Me:return"Fragment";case J:return"Portal";case P:return"Profiler";case Ne:return"StrictMode";case pe:return"Suspense";case dt:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case kt:var z=h;return Ce(z)+".Consumer";case c:var Q=h;return Ce(Q._context)+".Provider";case de:return Vt(h,h.render,"ForwardRef");case ne:var ve=h.displayName||null;return ve!==null?ve:G(h.type)||"Memo";case je:{var nt=h,p=nt._payload,E=nt._init;try{return G(E(p))}catch{return null}}}return null}var et=Object.assign,Z=0,pt,he,se,Ke,Te,We,Ue;function at(){}at.__reactDisabledLog=!0;function Rt(){{if(Z===0){pt=console.log,he=console.info,se=console.warn,Ke=console.error,Te=console.group,We=console.groupCollapsed,Ue=console.groupEnd;var h={configurable:!0,enumerable:!0,value:at,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}Z++}}function _t(){{if(Z--,Z===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:et({},h,{value:pt}),info:et({},h,{value:he}),warn:et({},h,{value:se}),error:et({},h,{value:Ke}),group:et({},h,{value:Te}),groupCollapsed:et({},h,{value:We}),groupEnd:et({},h,{value:Ue})})}Z<0&&Fe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Xt=yt.ReactCurrentDispatcher,St;function jn(h,z,Q){{if(St===void 0)try{throw Error()}catch(nt){var ve=nt.stack.trim().match(/\n( *(at )?)/);St=ve&&ve[1]||""}return`
`+St+h}}var mt=!1,an;{var Mt=typeof WeakMap=="function"?WeakMap:Map;an=new Mt}function tt(h,z){if(!h||mt)return"";{var Q=an.get(h);if(Q!==void 0)return Q}var ve;mt=!0;var nt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var p;p=Xt.current,Xt.current=null,Rt();try{if(z){var E=function(){throw Error()};if(Object.defineProperty(E.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(E,[])}catch(Se){ve=Se}Reflect.construct(h,[],E)}else{try{E.call()}catch(Se){ve=Se}h.call(E.prototype)}}else{try{throw Error()}catch(Se){ve=Se}h()}}catch(Se){if(Se&&ve&&typeof Se.stack=="string"){for(var b=Se.stack.split(`
`),T=ve.stack.split(`
`),R=b.length-1,U=T.length-1;R>=1&&U>=0&&b[R]!==T[U];)U--;for(;R>=1&&U>=0;R--,U--)if(b[R]!==T[U]){if(R!==1||U!==1)do if(R--,U--,U<0||b[R]!==T[U]){var S=`
`+b[R].replace(" at new "," at ");return h.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",h.displayName)),typeof h=="function"&&an.set(h,S),S}while(R>=1&&U>=0);break}}}finally{mt=!1,Xt.current=p,_t(),Error.prepareStackTrace=nt}var $=h?h.displayName||h.name:"",V=$?jn($):"";return typeof h=="function"&&an.set(h,V),V}function rn(h,z,Q){return tt(h,!1)}function on(h){var z=h.prototype;return!!(z&&z.isReactComponent)}function ln(h,z,Q){if(h==null)return"";if(typeof h=="function")return tt(h,on(h));if(typeof h=="string")return jn(h);switch(h){case pe:return jn("Suspense");case dt:return jn("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case de:return rn(h.render);case ne:return ln(h.type,z,Q);case je:{var ve=h,nt=ve._payload,p=ve._init;try{return ln(p(nt),z,Q)}catch{}}}return""}var tn=Object.prototype.hasOwnProperty,va={},L=yt.ReactDebugCurrentFrame;function Y(h){if(h){var z=h._owner,Q=ln(h.type,h._source,z?z.type:null);L.setExtraStackFrame(Q)}else L.setExtraStackFrame(null)}function le(h,z,Q,ve,nt){{var p=Function.call.bind(tn);for(var E in h)if(p(h,E)){var b=void 0;try{if(typeof h[E]!="function"){var T=Error((ve||"React class")+": "+Q+" type `"+E+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[E]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw T.name="Invariant Violation",T}b=h[E](z,E,ve,Q,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(R){b=R}b&&!(b instanceof Error)&&(Y(nt),Fe("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",ve||"React class",Q,E,typeof b),Y(null)),b instanceof Error&&!(b.message in va)&&(va[b.message]=!0,Y(nt),Fe("Failed %s type: %s",Q,b.message),Y(null))}}}var ee=Array.isArray;function we(h){return ee(h)}function qe(h){{var z=typeof Symbol=="function"&&Symbol.toStringTag,Q=z&&h[Symbol.toStringTag]||h.constructor.name||"Object";return Q}}function ot(h){try{return _e(h),!1}catch{return!0}}function _e(h){return""+h}function Be(h){if(ot(h))return Fe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",qe(h)),_e(h)}var lt=yt.ReactCurrentOwner,Qt={key:!0,ref:!0,__self:!0,__source:!0},hn,W;function ye(h){if(tn.call(h,"ref")){var z=Object.getOwnPropertyDescriptor(h,"ref").get;if(z&&z.isReactWarning)return!1}return h.ref!==void 0}function Ve(h){if(tn.call(h,"key")){var z=Object.getOwnPropertyDescriptor(h,"key").get;if(z&&z.isReactWarning)return!1}return h.key!==void 0}function ht(h,z){typeof h.ref=="string"&&lt.current}function Lt(h,z){{var Q=function(){hn||(hn=!0,Fe("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};Q.isReactWarning=!0,Object.defineProperty(h,"key",{get:Q,configurable:!0})}}function Ft(h,z){{var Q=function(){W||(W=!0,Fe("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};Q.isReactWarning=!0,Object.defineProperty(h,"ref",{get:Q,configurable:!0})}}var Ht=function(h,z,Q,ve,nt,p,E){var b={$$typeof:M,type:h,key:z,ref:Q,props:E,_owner:p};return b._store={},Object.defineProperty(b._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(b,"_self",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.defineProperty(b,"_source",{configurable:!1,enumerable:!1,writable:!1,value:nt}),Object.freeze&&(Object.freeze(b.props),Object.freeze(b)),b};function Un(h,z,Q,ve,nt){{var p,E={},b=null,T=null;Q!==void 0&&(Be(Q),b=""+Q),Ve(z)&&(Be(z.key),b=""+z.key),ye(z)&&(T=z.ref,ht(z,nt));for(p in z)tn.call(z,p)&&!Qt.hasOwnProperty(p)&&(E[p]=z[p]);if(h&&h.defaultProps){var R=h.defaultProps;for(p in R)E[p]===void 0&&(E[p]=R[p])}if(b||T){var U=typeof h=="function"?h.displayName||h.name||"Unknown":h;b&&Lt(E,U),T&&Ft(E,U)}return Ht(h,b,T,nt,ve,lt.current,E)}}var Bt=yt.ReactCurrentOwner,zt=yt.ReactDebugCurrentFrame;function Ut(h){if(h){var z=h._owner,Q=ln(h.type,h._source,z?z.type:null);zt.setExtraStackFrame(Q)}else zt.setExtraStackFrame(null)}var $a;$a=!1;function Ta(h){return typeof h=="object"&&h!==null&&h.$$typeof===M}function Ea(){{if(Bt.current){var h=G(Bt.current.type);if(h)return`
Check the render method of \``+h+"`."}return""}}function or(h){return""}var La={};function Zr(h){{var z=Ea();if(!z){var Q=typeof h=="string"?h:h.displayName||h.name;Q&&(z=`
Check the top-level render call using <`+Q+">.")}return z}}function xr(h,z){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var Q=Zr(z);if(La[Q])return;La[Q]=!0;var ve="";h&&h._owner&&h._owner!==Bt.current&&(ve=" It was passed a child from "+G(h._owner.type)+"."),Ut(h),Fe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',Q,ve),Ut(null)}}function ei(h,z){{if(typeof h!="object")return;if(we(h))for(var Q=0;Q<h.length;Q++){var ve=h[Q];Ta(ve)&&xr(ve,z)}else if(Ta(h))h._store&&(h._store.validated=!0);else if(h){var nt=qt(h);if(typeof nt=="function"&&nt!==h.entries)for(var p=nt.call(h),E;!(E=p.next()).done;)Ta(E.value)&&xr(E.value,z)}}}function ti(h){{var z=h.type;if(z==null||typeof z=="string")return;var Q;if(typeof z=="function")Q=z.propTypes;else if(typeof z=="object"&&(z.$$typeof===de||z.$$typeof===ne))Q=z.propTypes;else return;if(Q){var ve=G(z);le(Q,h.props,"prop",ve,h)}else if(z.PropTypes!==void 0&&!$a){$a=!0;var nt=G(z);Fe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",nt||"Unknown")}typeof z.getDefaultProps=="function"&&!z.getDefaultProps.isReactClassApproved&&Fe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function yn(h){{for(var z=Object.keys(h.props),Q=0;Q<z.length;Q++){var ve=z[Q];if(ve!=="children"&&ve!=="key"){Ut(h),Fe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",ve),Ut(null);break}}h.ref!==null&&(Ut(h),Fe("Invalid attribute `ref` supplied to `React.Fragment`."),Ut(null))}}var gn={};function ea(h,z,Q,ve,nt,p){{var E=xt(h);if(!E){var b="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(b+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var T=or();T?b+=T:b+=Ea();var R;h===null?R="null":we(h)?R="array":h!==void 0&&h.$$typeof===M?(R="<"+(G(h.type)||"Unknown")+" />",b=" Did you accidentally export a JSX literal instead of a component?"):R=typeof h,Fe("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",R,b)}var U=Un(h,z,Q,nt,p);if(U==null)return U;if(E){var S=z.children;if(S!==void 0)if(ve)if(we(S)){for(var $=0;$<S.length;$++)ei(S[$],h);Object.freeze&&Object.freeze(S)}else Fe("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ei(S,h)}if(tn.call(z,"key")){var V=G(h),Se=Object.keys(z).filter(function(vt){return vt!=="key"}),xe=Se.length>0?"{key: someKey, "+Se.join(": ..., ")+": ...}":"{key: someKey}";if(!gn[V+xe]){var Oe=Se.length>0?"{"+Se.join(": ..., ")+": ...}":"{}";Fe(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
<%s key={someKey} {...props} />`,xe,V,Oe,V),gn[V+xe]=!0}}return h===Me?yn(U):ti(U),U}}function ta(h,z,Q){return ea(h,z,Q,!0)}function Rr(h,z,Q){return ea(h,z,Q,!1)}var wr=Rr,Dr=ta;ul.Fragment=Me,ul.jsx=wr,ul.jsxs=Dr}(),ul}cm.exports=jS();var v=cm.exports,pm={exports:{}},ef={exports:{}},tf={},mm;function US(){return mm||(mm=1,function(k){/**
* @license React
* scheduler.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var M=!1,J=5;function Me(W,ye){var Ve=W.length;W.push(ye),c(W,ye,Ve)}function Ne(W){return W.length===0?null:W[0]}function P(W){if(W.length===0)return null;var ye=W[0],Ve=W.pop();return Ve!==ye&&(W[0]=Ve,kt(W,Ve,0)),ye}function c(W,ye,Ve){for(var ht=Ve;ht>0;){var Lt=ht-1>>>1,Ft=W[Lt];if(de(Ft,ye)>0)W[Lt]=ye,W[ht]=Ft,ht=Lt;else return}}function kt(W,ye,Ve){for(var ht=Ve,Lt=W.length,Ft=Lt>>>1;ht<Ft;){var Ht=(ht+1)*2-1,Un=W[Ht],Bt=Ht+1,zt=W[Bt];if(de(Un,ye)<0)Bt<Lt&&de(zt,Un)<0?(W[ht]=zt,W[Bt]=ye,ht=Bt):(W[ht]=Un,W[Ht]=ye,ht=Ht);else if(Bt<Lt&&de(zt,ye)<0)W[ht]=zt,W[Bt]=ye,ht=Bt;else return}}function de(W,ye){var Ve=W.sortIndex-ye.sortIndex;return Ve!==0?Ve:W.id-ye.id}var pe=1,dt=2,ne=3,je=4,ae=5;function me(W,ye){}var re=typeof performance=="object"&&typeof performance.now=="function";if(re){var qt=performance;k.unstable_now=function(){return qt.now()}}else{var yt=Date,Fe=yt.now();k.unstable_now=function(){return yt.now()-Fe}}var De=1073741823,Ze=-1,O=250,Qe=5e3,I=1e4,Gt=De,Xe=[],xt=[],Vt=1,Ce=null,G=ne,et=!1,Z=!1,pt=!1,he=typeof setTimeout=="function"?setTimeout:null,se=typeof clearTimeout=="function"?clearTimeout:null,Ke=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Te(W){for(var ye=Ne(xt);ye!==null;){if(ye.callback===null)P(xt);else if(ye.startTime<=W)P(xt),ye.sortIndex=ye.expirationTime,Me(Xe,ye);else return;ye=Ne(xt)}}function We(W){if(pt=!1,Te(W),!Z)if(Ne(Xe)!==null)Z=!0,_e(Ue);else{var ye=Ne(xt);ye!==null&&Be(We,ye.startTime-W)}}function Ue(W,ye){Z=!1,pt&&(pt=!1,lt()),et=!0;var Ve=G;try{var ht;if(!M)return at(W,ye)}finally{Ce=null,G=Ve,et=!1}}function at(W,ye){var Ve=ye;for(Te(Ve),Ce=Ne(Xe);Ce!==null&&!(Ce.expirationTime>Ve&&(!W||L()));){var ht=Ce.callback;if(typeof ht=="function"){Ce.callback=null,G=Ce.priorityLevel;var Lt=Ce.expirationTime<=Ve,Ft=ht(Lt);Ve=k.unstable_now(),typeof Ft=="function"?Ce.callback=Ft:Ce===Ne(Xe)&&P(Xe),Te(Ve)}else P(Xe);Ce=Ne(Xe)}if(Ce!==null)return!0;var Ht=Ne(xt);return Ht!==null&&Be(We,Ht.startTime-Ve),!1}function Rt(W,ye){switch(W){case pe:case dt:case ne:case je:case ae:break;default:W=ne}var Ve=G;G=W;try{return ye()}finally{G=Ve}}function _t(W){var ye;switch(G){case pe:case dt:case ne:ye=ne;break;default:ye=G;break}var Ve=G;G=ye;try{return W()}finally{G=Ve}}function Xt(W){var ye=G;return function(){var Ve=G;G=ye;try{return W.apply(this,arguments)}finally{G=Ve}}}function St(W,ye,Ve){var ht=k.unstable_now(),Lt;if(typeof Ve=="object"&&Ve!==null){var Ft=Ve.delay;typeof Ft=="number"&&Ft>0?Lt=ht+Ft:Lt=ht}else Lt=ht;var Ht;switch(W){case pe:Ht=Ze;break;case dt:Ht=O;break;case ae:Ht=Gt;break;case je:Ht=I;break;case ne:default:Ht=Qe;break}var Un=Lt+Ht,Bt={id:Vt++,callback:ye,priorityLevel:W,startTime:Lt,expirationTime:Un,sortIndex:-1};return Lt>ht?(Bt.sortIndex=Lt,Me(xt,Bt),Ne(Xe)===null&&Bt===Ne(xt)&&(pt?lt():pt=!0,Be(We,Lt-ht))):(Bt.sortIndex=Un,Me(Xe,Bt),!Z&&!et&&(Z=!0,_e(Ue))),Bt}function jn(){}function mt(){!Z&&!et&&(Z=!0,_e(Ue))}function an(){return Ne(Xe)}function Mt(W){W.callback=null}function tt(){return G}var rn=!1,on=null,ln=-1,tn=J,va=-1;function L(){var W=k.unstable_now()-va;return!(W<tn)}function Y(){}function le(W){if(W<0||W>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}W>0?tn=Math.floor(1e3/W):tn=J}var ee=function(){if(on!==null){var W=k.unstable_now();va=W;var ye=!0,Ve=!0;try{Ve=on(ye,W)}finally{Ve?we():(rn=!1,on=null)}}else rn=!1},we;if(typeof Ke=="function")we=function(){Ke(ee)};else if(typeof MessageChannel<"u"){var qe=new MessageChannel,ot=qe.port2;qe.port1.onmessage=ee,we=function(){ot.postMessage(null)}}else we=function(){he(ee,0)};function _e(W){on=W,rn||(rn=!0,we())}function Be(W,ye){ln=he(function(){W(k.unstable_now())},ye)}function lt(){se(ln),ln=-1}var Qt=Y,hn=null;k.unstable_IdlePriority=ae,k.unstable_ImmediatePriority=pe,k.unstable_LowPriority=je,k.unstable_NormalPriority=ne,k.unstable_Profiling=hn,k.unstable_UserBlockingPriority=dt,k.unstable_cancelCallback=Mt,k.unstable_continueExecution=mt,k.unstable_forceFrameRate=le,k.unstable_getCurrentPriorityLevel=tt,k.unstable_getFirstCallbackNode=an,k.unstable_next=_t,k.unstable_pauseExecution=jn,k.unstable_requestPaint=Qt,k.unstable_runWithPriority=Rt,k.unstable_scheduleCallback=St,k.unstable_shouldYield=L,k.unstable_wrapCallback=Xt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(tf)),tf}var hm;function HS(){return hm||(hm=1,ef.exports=US()),ef.exports}var da={},ym;function zS(){if(ym)return da;ym=1;/**
* @license React
* react-dom.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/return function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var k=Zc(),M=HS(),J=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Me=!1;function Ne(e){Me=e}function P(e){if(!Me){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];kt("warn",e,n)}}function c(e){if(!Me){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];kt("error",e,n)}}function kt(e,t,n){{var a=J.ReactDebugCurrentFrame,r=a.getStackAddendum();r!==""&&(t+="%s",n=n.concat([r]));var i=n.map(function(o){return String(o)});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}}var de=0,pe=1,dt=2,ne=3,je=4,ae=5,me=6,re=7,qt=8,yt=9,Fe=10,De=11,Ze=12,O=13,Qe=14,I=15,Gt=16,Xe=17,xt=18,Vt=19,Ce=21,G=22,et=23,Z=24,pt=25,he=!0,se=!1,Ke=!1,Te=!1,We=!1,Ue=!0,at=!0,Rt=!0,_t=!0,Xt=new Set,St={},jn={};function mt(e,t){an(e,t),an(e+"Capture",t)}function an(e,t){St[e]&&c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),St[e]=t;{var n=e.toLowerCase();jn[n]=e,e==="onDoubleClick"&&(jn.ondblclick=e)}for(var a=0;a<t.length;a++)Xt.add(t[a])}var Mt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",tt=Object.prototype.hasOwnProperty;function rn(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function on(e){try{return ln(e),!1}catch{return!0}}function ln(e){return""+e}function tn(e,t){if(on(e))return c("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,rn(e)),ln(e)}function va(e){if(on(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",rn(e)),ln(e)}function L(e,t){if(on(e))return c("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,rn(e)),ln(e)}function Y(e,t){if(on(e))return c("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,rn(e)),ln(e)}function le(e){if(on(e))return c("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",rn(e)),ln(e)}function ee(e){if(on(e))return c("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",rn(e)),ln(e)}var we=0,qe=1,ot=2,_e=3,Be=4,lt=5,Qt=6,hn=":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",W=hn+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ye=new RegExp("^["+hn+"]["+W+"]*$"),Ve={},ht={};function Lt(e){return tt.call(ht,e)?!0:tt.call(Ve,e)?!1:ye.test(e)?(ht[e]=!0,!0):(Ve[e]=!0,c("Invalid attribute name: `%s`",e),!1)}function Ft(e,t,n){return t!==null?t.type===we:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Ht(e,t,n,a){if(n!==null&&n.type===we)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(a)return!1;if(n!==null)return!n.acceptsBooleans;var r=e.toLowerCase().slice(0,5);return r!=="data-"&&r!=="aria-"}default:return!1}}function Un(e,t,n,a){if(t===null||typeof t>"u"||Ht(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case _e:return!t;case Be:return t===!1;case lt:return isNaN(t);case Qt:return isNaN(t)||t<1}return!1}function Bt(e){return Ut.hasOwnProperty(e)?Ut[e]:null}function zt(e,t,n,a,r,i,o){this.acceptsBooleans=t===ot||t===_e||t===Be,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ut={},$a=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];$a.forEach(function(e){Ut[e]=new zt(e,we,!1,e,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0],n=e[1];Ut[t]=new zt(t,qe,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ut[e]=new zt(e,ot,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ut[e]=new zt(e,ot,!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"].forEach(function(e){Ut[e]=new zt(e,_e,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Ut[e]=new zt(e,_e,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Ut[e]=new zt(e,Be,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Ut[e]=new zt(e,Qt,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Ut[e]=new zt(e,lt,!1,e.toLowerCase(),null,!1,!1)});var Ta=/[\-\:]([a-z])/g,Ea=function(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"].forEach(function(e){var t=e.replace(Ta,Ea);Ut[t]=new zt(t,qe,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(Ta,Ea);Ut[t]=new zt(t,qe,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ta,Ea);Ut[t]=new zt(t,qe,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Ut[e]=new zt(e,qe,!1,e.toLowerCase(),null,!1,!1)});var or="xlinkHref";Ut[or]=new zt("xlinkHref",qe,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Ut[e]=new zt(e,qe,!1,e.toLowerCase(),null,!0,!0)});var La=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,Zr=!1;function xr(e){!Zr&&La.test(e)&&(Zr=!0,c("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function ei(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{tn(n,t),a.sanitizeURL&&xr(""+n);var i=a.attributeName,o=null;if(a.type===Be){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:Un(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(Un(t,n,a,!1))return e.getAttribute(i);if(a.type===_e)return n;o=e.getAttribute(i)}return Un(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function ti(e,t,n,a){{if(!Lt(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return tn(n,t),r===""+n?n:r}}function yn(e,t,n,a){var r=Bt(t);if(!Ft(t,r,a)){if(Un(t,n,r,a)&&(n=null),a||r===null){if(Lt(t)){var i=t;n===null?e.removeAttribute(i):(tn(n,t),e.setAttribute(i,""+n))}return}var o=r.mustUseProperty;if(o){var l=r.propertyName;if(n===null){var u=r.type;e[l]=u===_e?!1:""}else e[l]=n;return}var f=r.attributeName,d=r.attributeNamespace;if(n===null)e.removeAttribute(f);else{var g=r.type,y;g===_e||g===Be&&n===!0?y="":(tn(n,f),y=""+n,r.sanitizeURL&&xr(y.toString())),d?e.setAttributeNS(d,f,y):e.setAttribute(f,y)}}}var gn=Symbol.for("react.element"),ea=Symbol.for("react.portal"),ta=Symbol.for("react.fragment"),Rr=Symbol.for("react.strict_mode"),wr=Symbol.for("react.profiler"),Dr=Symbol.for("react.provider"),h=Symbol.for("react.context"),z=Symbol.for("react.forward_ref"),Q=Symbol.for("react.suspense"),ve=Symbol.for("react.suspense_list"),nt=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),E=Symbol.for("react.scope"),b=Symbol.for("react.debug_trace_mode"),T=Symbol.for("react.offscreen"),R=Symbol.for("react.legacy_hidden"),U=Symbol.for("react.cache"),S=Symbol.for("react.tracing_marker"),$=Symbol.iterator,V="@@iterator";function Se(e){if(e===null||typeof e!="object")return null;var t=$&&e[$]||e[V];return typeof t=="function"?t:null}var xe=Object.assign,Oe=0,vt,Jt,bn,_n,_r,Oa,kn;function lr(){}lr.__reactDisabledLog=!0;function Hn(){{if(Oe===0){vt=console.log,Jt=console.info,bn=console.warn,_n=console.error,_r=console.group,Oa=console.groupCollapsed,kn=console.groupEnd;var e={configurable:!0,enumerable:!0,value:lr,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Oe++}}function $t(){{if(Oe--,Oe===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:xe({},e,{value:vt}),info:xe({},e,{value:Jt}),warn:xe({},e,{value:bn}),error:xe({},e,{value:_n}),group:xe({},e,{value:_r}),groupCollapsed:xe({},e,{value:Oa}),groupEnd:xe({},e,{value:kn})})}Oe<0&&c("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var na=J.ReactCurrentDispatcher,ur;function Pa(e,t,n){{if(ur===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);ur=a&&a[1]||""}return`
`+ur+e}}var sr=!1,qn;{var pa=typeof WeakMap=="function"?WeakMap:Map;qn=new pa}function cr(e,t){if(!e||sr)return"";{var n=qn.get(e);if(n!==void 0)return n}var a;sr=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=na.current,na.current=null,Hn();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(_){a=_}Reflect.construct(e,[],o)}else{try{o.call()}catch(_){a=_}e.call(o.prototype)}}else{try{throw Error()}catch(_){a=_}e()}}catch(_){if(_&&a&&typeof _.stack=="string"){for(var l=_.stack.split(`
`),u=a.stack.split(`
`),f=l.length-1,d=u.length-1;f>=1&&d>=0&&l[f]!==u[d];)d--;for(;f>=1&&d>=0;f--,d--)if(l[f]!==u[d]){if(f!==1||d!==1)do if(f--,d--,d<0||l[f]!==u[d]){var g=`
`+l[f].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&qn.set(e,g),g}while(f>=1&&d>=0);break}}}finally{sr=!1,na.current=i,$t(),Error.prepareStackTrace=r}var y=e?e.displayName||e.name:"",w=y?Pa(y):"";return typeof e=="function"&&qn.set(e,w),w}function ni(e,t,n){return cr(e,!0)}function cn(e,t,n){return cr(e,!1)}function wt(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function Aa(e,t,n){if(e==null)return"";if(typeof e=="function")return cr(e,wt(e));if(typeof e=="string")return Pa(e);switch(e){case Q:return Pa("Suspense");case ve:return Pa("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case z:return cn(e.render);case nt:return Aa(e.type,t,n);case p:{var a=e,r=a._payload,i=a._init;try{return Aa(i(r),t,n)}catch{}}}return""}function Ya(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case ae:return Pa(e.type);case Gt:return Pa("Lazy");case O:return Pa("Suspense");case Vt:return Pa("SuspenseList");case de:case dt:case I:return cn(e.type);case De:return cn(e.type.render);case pe:return ni(e.type);default:return""}}function Ia(e){try{var t="",n=e;do t+=Ya(n),n=n.return;while(n);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function qu(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function sl(e){return e.displayName||"Context"}function Tt(e){if(e==null)return null;if(typeof e.tag=="number"&&c("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ta:return"Fragment";case ea:return"Portal";case wr:return"Profiler";case Rr:return"StrictMode";case Q:return"Suspense";case ve:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var t=e;return sl(t)+".Consumer";case Dr:var n=e;return sl(n._context)+".Provider";case z:return qu(e,e.render,"ForwardRef");case nt:var a=e.displayName||null;return a!==null?a:Tt(e.type)||"Memo";case p:{var r=e,i=r._payload,o=r._init;try{return Tt(o(i))}catch{return null}}}return null}function nf(e,t,n){var a=t.displayName||t.name||"";return e.displayName||(a!==""?n+"("+a+")":n)}function kr(e){return e.displayName||"Context"}function Ge(e){var t=e.tag,n=e.type;switch(t){case Z:return"Cache";case yt:var a=n;return kr(a)+".Consumer";case Fe:var r=n;return kr(r._context)+".Provider";case xt:return"DehydratedFragment";case De:return nf(n,n.render,"ForwardRef");case re:return"Fragment";case ae:return n;case je:return"Portal";case ne:return"Root";case me:return"Text";case Gt:return Tt(n);case qt:return n===Rr?"StrictMode":"Mode";case G:return"Offscreen";case Ze:return"Profiler";case Ce:return"Scope";case O:return"Suspense";case Vt:return"SuspenseList";case pt:return"TracingMarker";case pe:case de:case Xe:case dt:case Qe:case I:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var cl=J.ReactDebugCurrentFrame,aa=null,Mi=!1;function ai(){{if(aa===null)return null;var e=aa._debugOwner;if(e!==null&&typeof e<"u")return Ge(e)}return null}function af(){return aa===null?"":Ia(aa)}function Mn(){cl.getCurrentStack=null,aa=null,Mi=!1}function Zt(e){cl.getCurrentStack=e===null?null:af,aa=e,Mi=!1}function Gu(){return aa}function Na(e){Mi=e}function ra(e){return""+e}function Wa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return ee(e),e;default:return""}}var rf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function fl(e,t){rf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||c("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||c("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Xu(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dl(e){return e._valueTracker}function uo(e){e._valueTracker=null}function of(e){var t="";return e&&(Xu(e)?t=e.checked?"true":"false":t=e.value),t}function ri(e){var t=Xu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);ee(e[t]);var a=""+e[t];if(!(e.hasOwnProperty(t)||typeof n>"u"||typeof n.get!="function"||typeof n.set!="function")){var r=n.get,i=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(l){ee(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){ee(l),a=""+l},stopTracking:function(){uo(e),delete e[t]}};return o}}function Li(e){dl(e)||(e._valueTracker=ri(e))}function vl(e){if(!e)return!1;var t=dl(e);if(!t)return!0;var n=t.getValue(),a=of(e);return a!==n?(t.setValue(a),!0):!1}function Mr(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}}var so=!1,co=!1,fo=!1,Qu=!1;function Ku(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function pl(e,t){var n=e,a=t.checked,r=xe({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked});return r}function Ju(e,t){fl("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!co&&(c("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ai()||"A component",t.type),co=!0),t.value!==void 0&&t.defaultValue!==void 0&&!so&&(c("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ai()||"A component",t.type),so=!0);var n=e,a=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:Wa(t.value!=null?t.value:a),controlled:Ku(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&yn(n,"checked",a,!1)}function m(e,t){var n=e;{var a=Ku(t);!n._wrapperState.controlled&&a&&!Qu&&(c("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Qu=!0),n._wrapperState.controlled&&!a&&!fo&&(c("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),fo=!0)}s(e,t);var r=Wa(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=ra(r)):n.value!==ra(r)&&(n.value=ra(r));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Ae(n,t.type,r):t.hasOwnProperty("defaultValue")&&Ae(n,t.type,Wa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function D(e,t,n){var a=e;if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type,i=r==="submit"||r==="reset";if(i&&(t.value===void 0||t.value===null))return;var o=ra(a._wrapperState.initialValue);n||o!==a.value&&(a.value=o),a.defaultValue=o}var l=a.name;l!==""&&(a.name=""),a.defaultChecked=!a.defaultChecked,a.defaultChecked=!!a._wrapperState.initialChecked,l!==""&&(a.name=l)}function A(e,t){var n=e;m(n,t),X(n,t)}function X(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var a=e;a.parentNode;)a=a.parentNode;tn(n,"name");for(var r=a.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),i=0;i<r.length;i++){var o=r[i];if(!(o===e||o.form!==e.form)){var l=zs(o);if(!l)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");vl(o),m(o,l)}}}}function Ae(e,t,n){(t!=="number"||Mr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=ra(e._wrapperState.initialValue):e.defaultValue!==ra(n)&&(e.defaultValue=ra(n)))}var be=!1,Ye=!1,ut=!1;function Ot(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?k.Children.forEach(t.children,function(n){n!=null&&(typeof n=="string"||typeof n=="number"||Ye||(Ye=!0,c("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(ut||(ut=!0,c("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!be&&(c("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),be=!0)}function Yt(e,t){t.value!=null&&e.setAttribute("value",ra(Wa(t.value)))}var It=Array.isArray;function rt(e){return It(e)}var en;en=!1;function dn(){var e=ai();return e?`
Check the render method of \``+e+"`.":""}var Oi=["value","defaultValue"];function ml(e){{fl("select",e);for(var t=0;t<Oi.length;t++){var n=Oi[t];if(e[n]!=null){var a=rt(e[n]);e.multiple&&!a?c("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,dn()):!e.multiple&&a&&c("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,dn())}}}}function Lr(e,t,n,a){var r=e.options;if(t){for(var i=n,o={},l=0;l<i.length;l++)o["$"+i[l]]=!0;for(var u=0;u<r.length;u++){var f=o.hasOwnProperty("$"+r[u].value);r[u].selected!==f&&(r[u].selected=f),f&&a&&(r[u].defaultSelected=!0)}}else{for(var d=ra(Wa(n)),g=null,y=0;y<r.length;y++){if(r[y].value===d){r[y].selected=!0,a&&(r[y].defaultSelected=!0);return}g===null&&!r[y].disabled&&(g=r[y])}g!==null&&(g.selected=!0)}}function hl(e,t){return xe({},t,{value:void 0})}function yl(e,t){var n=e;ml(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!en&&(c("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),en=!0)}function lf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?Lr(n,!!t.multiple,a,!1):t.defaultValue!=null&&Lr(n,!!t.multiple,t.defaultValue,!0)}function Zu(e,t){var n=e,a=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var r=t.value;r!=null?Lr(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?Lr(n,!!t.multiple,t.defaultValue,!0):Lr(n,!!t.multiple,t.multiple?[]:"",!1))}function uf(e,t){var n=e,a=t.value;a!=null&&Lr(n,!!t.multiple,a,!1)}var wm=!1;function sf(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var a=xe({},t,{value:void 0,defaultValue:void 0,children:ra(n._wrapperState.initialValue)});return a}function Dm(e,t){var n=e;fl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!wm&&(c("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",ai()||"A component"),wm=!0);var a=t.value;if(a==null){var r=t.children,i=t.defaultValue;if(r!=null){c("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(i!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(rt(r)){if(r.length>1)throw new Error("<textarea> can only have at most one child.");r=r[0]}i=r}}i==null&&(i=""),a=i}n._wrapperState={initialValue:Wa(a)}}function _m(e,t){var n=e,a=Wa(t.value),r=Wa(t.defaultValue);if(a!=null){var i=ra(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=ra(r))}function km(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function t0(e,t){_m(e,t)}var Or="http://www.w3.org/1999/xhtml",n0="http://www.w3.org/1998/Math/MathML",cf="http://www.w3.org/2000/svg";function ff(e){switch(e){case"svg":return cf;case"math":return n0;default:return Or}}function df(e,t){return e==null||e===Or?ff(t):e===cf&&t==="foreignObject"?Or:e}var a0=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},es,Mm=a0(function(e,t){if(e.namespaceURI===cf&&!("innerHTML"in e)){es=es||document.createElement("div"),es.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=es.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),ma=1,Ar=3,vn=8,Nr=9,vf=11,ts=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Ar){n.nodeValue=t;return}}e.textContent=t},r0={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},gl={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};function i0(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var o0=["Webkit","ms","Moz","O"];Object.keys(gl).forEach(function(e){o0.forEach(function(t){gl[i0(t,e)]=gl[e]})});function pf(e,t,n){var a=t==null||typeof t=="boolean"||t==="";return a?"":!n&&typeof t=="number"&&t!==0&&!(gl.hasOwnProperty(e)&&gl[e])?t+"px":(Y(t,e),(""+t).trim())}var l0=/([A-Z])/g,u0=/^ms-/;function s0(e){return e.replace(l0,"-$1").toLowerCase().replace(u0,"-ms-")}var Lm=function(){};{var c0=/^(?:webkit|moz|o)[A-Z]/,f0=/^-ms-/,d0=/-(.)/g,Om=/;\s*$/,vo={},mf={},Am=!1,Nm=!1,v0=function(e){return e.replace(d0,function(t,n){return n.toUpperCase()})},p0=function(e){vo.hasOwnProperty(e)&&vo[e]||(vo[e]=!0,c("Unsupported style property %s. Did you mean %s?",e,v0(e.replace(f0,"ms-"))))},m0=function(e){vo.hasOwnProperty(e)&&vo[e]||(vo[e]=!0,c("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},h0=function(e,t){mf.hasOwnProperty(t)&&mf[t]||(mf[t]=!0,c(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Om,"")))},y0=function(e,t){Am||(Am=!0,c("`NaN` is an invalid value for the `%s` css style property.",e))},g0=function(e,t){Nm||(Nm=!0,c("`Infinity` is an invalid value for the `%s` css style property.",e))};Lm=function(e,t){e.indexOf("-")>-1?p0(e):c0.test(e)?m0(e):Om.test(t)&&h0(e,t),typeof t=="number"&&(isNaN(t)?y0(e,t):isFinite(t)||g0(e,t))}}var b0=Lm;function S0(e){{var t="",n="";for(var a in e)if(e.hasOwnProperty(a)){var r=e[a];if(r!=null){var i=a.indexOf("--")===0;t+=n+(i?a:s0(a))+":",t+=pf(a,r,i),n=";"}}return t||null}}function jm(e,t){var n=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0;r||b0(a,t[a]);var i=pf(a,t[a],r);a==="float"&&(a="cssFloat"),r?n.setProperty(a,i):n[a]=i}}function T0(e){return e==null||typeof e=="boolean"||e===""}function Um(e){var t={};for(var n in e)for(var a=r0[n]||[n],r=0;r<a.length;r++)t[a[r]]=n;return t}function E0(e,t){{if(!t)return;var n=Um(e),a=Um(t),r={};for(var i in n){var o=n[i],l=a[i];if(l&&o!==l){var u=o+","+l;if(r[u])continue;r[u]=!0,c("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",T0(e[o])?"Removing":"Updating",o,l)}}}}var C0={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},x0=xe({menuitem:!0},C0),R0="__html";function hf(e,t){if(t){if(x0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw new Error(e+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof t.dangerouslySetInnerHTML!="object"||!(R0 in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&c("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),t.style!=null&&typeof t.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Ai(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ns={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},Hm={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},po={},w0=new RegExp("^(aria)-["+W+"]*$"),D0=new RegExp("^(aria)[A-Z]["+W+"]*$");function _0(e,t){{if(tt.call(po,t)&&po[t])return!0;if(D0.test(t)){var n="aria-"+t.slice(4).toLowerCase(),a=Hm.hasOwnProperty(n)?n:null;if(a==null)return c("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),po[t]=!0,!0;if(t!==a)return c("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,a),po[t]=!0,!0}if(w0.test(t)){var r=t.toLowerCase(),i=Hm.hasOwnProperty(r)?r:null;if(i==null)return po[t]=!0,!1;if(t!==i)return c("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),po[t]=!0,!0}}return!0}function k0(e,t){{var n=[];for(var a in t){var r=_0(e,a);r||n.push(a)}var i=n.map(function(o){return"`"+o+"`"}).join(", ");n.length===1?c("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e):n.length>1&&c("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e)}}function M0(e,t){Ai(e,t)||k0(e,t)}var zm=!1;function L0(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!zm&&(zm=!0,e==="select"&&t.multiple?c("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):c("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var Vm=function(){};{var ia={},Fm=/^on./,O0=/^on[^A-Z]/,A0=new RegExp("^(aria)-["+W+"]*$"),N0=new RegExp("^(aria)[A-Z]["+W+"]*$");Vm=function(e,t,n,a){if(tt.call(ia,t)&&ia[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return c("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),ia[t]=!0,!0;if(a!=null){var i=a.registrationNameDependencies,o=a.possibleRegistrationNames;if(i.hasOwnProperty(t))return!0;var l=o.hasOwnProperty(r)?o[r]:null;if(l!=null)return c("Invalid event handler property `%s`. Did you mean `%s`?",t,l),ia[t]=!0,!0;if(Fm.test(t))return c("Unknown event handler property `%s`. It will be ignored.",t),ia[t]=!0,!0}else if(Fm.test(t))return O0.test(t)&&c("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),ia[t]=!0,!0;if(A0.test(t)||N0.test(t))return!0;if(r==="innerhtml")return c("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ia[t]=!0,!0;if(r==="aria")return c("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ia[t]=!0,!0;if(r==="is"&&n!==null&&n!==void 0&&typeof n!="string")return c("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),ia[t]=!0,!0;if(typeof n=="number"&&isNaN(n))return c("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),ia[t]=!0,!0;var u=Bt(t),f=u!==null&&u.type===we;if(ns.hasOwnProperty(r)){var d=ns[r];if(d!==t)return c("Invalid DOM property `%s`. Did you mean `%s`?",t,d),ia[t]=!0,!0}else if(!f&&t!==r)return c("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),ia[t]=!0,!0;return typeof n=="boolean"&&Ht(t,n,u,!1)?(n?c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):c('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),ia[t]=!0,!0):f?!0:Ht(t,n,u,!1)?(ia[t]=!0,!1):((n==="false"||n==="true")&&u!==null&&u.type===_e&&(c("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),ia[t]=!0),!0)}}var j0=function(e,t,n){{var a=[];for(var r in t){var i=Vm(e,r,t[r],n);i||a.push(r)}var o=a.map(function(l){return"`"+l+"`"}).join(", ");a.length===1?c("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",o,e):a.length>1&&c("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",o,e)}};function U0(e,t,n){Ai(e,t)||j0(e,t,n)}var Bm=1,yf=2,bl=4,H0=Bm|yf|bl,Sl=null;function z0(e){Sl!==null&&c("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Sl=e}function V0(){Sl===null&&c("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Sl=null}function F0(e){return e===Sl}function gf(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Ar?t.parentNode:t}var bf=null,mo=null,ho=null;function $m(e){var t=vi(e);if(t){if(typeof bf!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var n=t.stateNode;if(n){var a=zs(n);bf(t.stateNode,t.type,a)}}}function B0(e){bf=e}function Pm(e){mo?ho?ho.push(e):ho=[e]:mo=e}function $0(){return mo!==null||ho!==null}function Ym(){if(mo){var e=mo,t=ho;if(mo=null,ho=null,$m(e),t)for(var n=0;n<t.length;n++)$m(t[n])}}var Im=function(e,t){return e(t)},Wm=function(){},Sf=!1;function P0(){var e=$0();e&&(Wm(),Ym())}function qm(e,t,n){if(Sf)return e(t,n);Sf=!0;try{return Im(e,t,n)}finally{Sf=!1,P0()}}function Y0(e,t,n){Im=e,Wm=n}function I0(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function W0(e,t,n){switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(n.disabled&&I0(t));default:return!1}}function Tl(e,t){var n=e.stateNode;if(n===null)return null;var a=zs(n);if(a===null)return null;var r=a[t];if(W0(t,e.type,a))return null;if(r&&typeof r!="function")throw new Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof r+"` type.");return r}var Tf=!1;if(Mt)try{var El={};Object.defineProperty(El,"passive",{get:function(){Tf=!0}}),window.addEventListener("test",El,El),window.removeEventListener("test",El,El)}catch{Tf=!1}function Gm(e,t,n,a,r,i,o,l,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(d){this.onError(d)}}var Xm=Gm;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var Ef=document.createElement("react");Xm=function(t,n,a,r,i,o,l,u,f){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var d=document.createEvent("Event"),g=!1,y=!0,w=window.event,_=Object.getOwnPropertyDescriptor(window,"event");function N(){Ef.removeEventListener(j,ke,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=w)}var te=Array.prototype.slice.call(arguments,3);function ke(){g=!0,N(),n.apply(a,te),y=!1}var Re,ft=!1,it=!1;function C(x){if(Re=x.error,ft=!0,Re===null&&x.colno===0&&x.lineno===0&&(it=!0),x.defaultPrevented&&Re!=null&&typeof Re=="object")try{Re._suppressLogging=!0}catch{}}var j="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",C),Ef.addEventListener(j,ke,!1),d.initEvent(j,!1,!1),Ef.dispatchEvent(d),_&&Object.defineProperty(window,"event",_),g&&y&&(ft?it&&(Re=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):Re=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(Re)),window.removeEventListener("error",C),!g)return N(),Gm.apply(this,arguments)}}var q0=Xm,yo=!1,as=null,rs=!1,Cf=null,G0={onError:function(e){yo=!0,as=e}};function xf(e,t,n,a,r,i,o,l,u){yo=!1,as=null,q0.apply(G0,arguments)}function X0(e,t,n,a,r,i,o,l,u){if(xf.apply(this,arguments),yo){var f=Rf();rs||(rs=!0,Cf=f)}}function Q0(){if(rs){var e=Cf;throw rs=!1,Cf=null,e}}function K0(){return yo}function Rf(){if(yo){var e=as;return yo=!1,as=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function go(e){return e._reactInternals}function J0(e){return e._reactInternals!==void 0}function Z0(e,t){e._reactInternals=t}var He=0,bo=1,pn=2,Et=4,Ni=16,Cl=32,Qm=64,Ct=128,jr=256,ji=512,So=1024,ii=2048,Ur=4096,Ui=8192,wf=16384,eT=32767,is=32768,oa=65536,Df=131072,Km=1048576,_f=2097152,Hi=4194304,kf=8388608,oi=16777216,Mf=33554432,Lf=Et|So|0,Of=pn|Et|Ni|Cl|ji|Ur|Ui,xl=Et|Qm|ji|Ui,To=ii|Ni,Hr=Hi|kf|_f,tT=J.ReactCurrentOwner;function zi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var a=t;do t=a,(t.flags&(pn|Ur))!==He&&(n=t.return),a=t.return;while(a)}return t.tag===ne?n:null}function Jm(e){if(e.tag===O){var t=e.memoizedState;if(t===null){var n=e.alternate;n!==null&&(t=n.memoizedState)}if(t!==null)return t.dehydrated}return null}function Zm(e){return e.tag===ne?e.stateNode.containerInfo:null}function nT(e){return zi(e)===e}function aT(e){{var t=tT.current;if(t!==null&&t.tag===pe){var n=t,a=n.stateNode;a._warnedAboutRefsInRender||c("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Ge(n)||"A component"),a._warnedAboutRefsInRender=!0}}var r=go(e);return r?zi(r)===r:!1}function eh(e){if(zi(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function th(e){var t=e.alternate;if(!t){var n=zi(e);if(n===null)throw new Error("Unable to find node on an unmounted component.");return n!==e?null:e}for(var a=e,r=t;;){var i=a.return;if(i===null)break;var o=i.alternate;if(o===null){var l=i.return;if(l!==null){a=r=l;continue}break}if(i.child===o.child){for(var u=i.child;u;){if(u===a)return eh(i),e;if(u===r)return eh(i),t;u=u.sibling}throw new Error("Unable to find node on an unmounted component.")}if(a.return!==r.return)a=i,r=o;else{for(var f=!1,d=i.child;d;){if(d===a){f=!0,a=i,r=o;break}if(d===r){f=!0,r=i,a=o;break}d=d.sibling}if(!f){for(d=o.child;d;){if(d===a){f=!0,a=o,r=i;break}if(d===r){f=!0,r=o,a=i;break}d=d.sibling}if(!f)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==r)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==ne)throw new Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function nh(e){var t=th(e);return t!==null?ah(t):null}function ah(e){if(e.tag===ae||e.tag===me)return e;for(var t=e.child;t!==null;){var n=ah(t);if(n!==null)return n;t=t.sibling}return null}function rT(e){var t=th(e);return t!==null?rh(t):null}function rh(e){if(e.tag===ae||e.tag===me)return e;for(var t=e.child;t!==null;){if(t.tag!==je){var n=rh(t);if(n!==null)return n}t=t.sibling}return null}var ih=M.unstable_scheduleCallback,iT=M.unstable_cancelCallback,oT=M.unstable_shouldYield,lT=M.unstable_requestPaint,Ln=M.unstable_now,uT=M.unstable_getCurrentPriorityLevel,os=M.unstable_ImmediatePriority,Af=M.unstable_UserBlockingPriority,Vi=M.unstable_NormalPriority,sT=M.unstable_LowPriority,Nf=M.unstable_IdlePriority,cT=M.unstable_yieldValue,fT=M.unstable_setDisableYieldValue,Eo=null,Gn=null,oe=null,fr=!1,qa=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function dT(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return c("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{at&&(e=xe({},e,{getLaneLabelMap:gT,injectProfilingHooks:yT})),Eo=t.inject(e),Gn=t}catch(n){c("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function vT(e,t){if(Gn&&typeof Gn.onScheduleFiberRoot=="function")try{Gn.onScheduleFiberRoot(Eo,e,t)}catch(n){fr||(fr=!0,c("React instrumentation encountered an error: %s",n))}}function pT(e,t){if(Gn&&typeof Gn.onCommitFiberRoot=="function")try{var n=(e.current.flags&Ct)===Ct;if(Rt){var a;switch(t){case Ra:a=os;break;case Vr:a=Af;break;case Fr:a=Vi;break;case vs:a=Nf;break;default:a=Vi;break}Gn.onCommitFiberRoot(Eo,e,a,n)}}catch(r){fr||(fr=!0,c("React instrumentation encountered an error: %s",r))}}function mT(e){if(Gn&&typeof Gn.onPostCommitFiberRoot=="function")try{Gn.onPostCommitFiberRoot(Eo,e)}catch(t){fr||(fr=!0,c("React instrumentation encountered an error: %s",t))}}function hT(e){if(Gn&&typeof Gn.onCommitFiberUnmount=="function")try{Gn.onCommitFiberUnmount(Eo,e)}catch(t){fr||(fr=!0,c("React instrumentation encountered an error: %s",t))}}function On(e){if(typeof cT=="function"&&(fT(e),Ne(e)),Gn&&typeof Gn.setStrictMode=="function")try{Gn.setStrictMode(Eo,e)}catch(t){fr||(fr=!0,c("React instrumentation encountered an error: %s",t))}}function yT(e){oe=e}function gT(){{for(var e=new Map,t=1,n=0;n<Uf;n++){var a=zT(t);e.set(t,a),t*=2}return e}}function bT(e){oe!==null&&typeof oe.markCommitStarted=="function"&&oe.markCommitStarted(e)}function oh(){oe!==null&&typeof oe.markCommitStopped=="function"&&oe.markCommitStopped()}function Rl(e){oe!==null&&typeof oe.markComponentRenderStarted=="function"&&oe.markComponentRenderStarted(e)}function Co(){oe!==null&&typeof oe.markComponentRenderStopped=="function"&&oe.markComponentRenderStopped()}function ST(e){oe!==null&&typeof oe.markComponentPassiveEffectMountStarted=="function"&&oe.markComponentPassiveEffectMountStarted(e)}function TT(){oe!==null&&typeof oe.markComponentPassiveEffectMountStopped=="function"&&oe.markComponentPassiveEffectMountStopped()}function ET(e){oe!==null&&typeof oe.markComponentPassiveEffectUnmountStarted=="function"&&oe.markComponentPassiveEffectUnmountStarted(e)}function CT(){oe!==null&&typeof oe.markComponentPassiveEffectUnmountStopped=="function"&&oe.markComponentPassiveEffectUnmountStopped()}function xT(e){oe!==null&&typeof oe.markComponentLayoutEffectMountStarted=="function"&&oe.markComponentLayoutEffectMountStarted(e)}function RT(){oe!==null&&typeof oe.markComponentLayoutEffectMountStopped=="function"&&oe.markComponentLayoutEffectMountStopped()}function lh(e){oe!==null&&typeof oe.markComponentLayoutEffectUnmountStarted=="function"&&oe.markComponentLayoutEffectUnmountStarted(e)}function uh(){oe!==null&&typeof oe.markComponentLayoutEffectUnmountStopped=="function"&&oe.markComponentLayoutEffectUnmountStopped()}function wT(e,t,n){oe!==null&&typeof oe.markComponentErrored=="function"&&oe.markComponentErrored(e,t,n)}function DT(e,t,n){oe!==null&&typeof oe.markComponentSuspended=="function"&&oe.markComponentSuspended(e,t,n)}function _T(e){oe!==null&&typeof oe.markLayoutEffectsStarted=="function"&&oe.markLayoutEffectsStarted(e)}function kT(){oe!==null&&typeof oe.markLayoutEffectsStopped=="function"&&oe.markLayoutEffectsStopped()}function MT(e){oe!==null&&typeof oe.markPassiveEffectsStarted=="function"&&oe.markPassiveEffectsStarted(e)}function LT(){oe!==null&&typeof oe.markPassiveEffectsStopped=="function"&&oe.markPassiveEffectsStopped()}function sh(e){oe!==null&&typeof oe.markRenderStarted=="function"&&oe.markRenderStarted(e)}function OT(){oe!==null&&typeof oe.markRenderYielded=="function"&&oe.markRenderYielded()}function ch(){oe!==null&&typeof oe.markRenderStopped=="function"&&oe.markRenderStopped()}function AT(e){oe!==null&&typeof oe.markRenderScheduled=="function"&&oe.markRenderScheduled(e)}function NT(e,t){oe!==null&&typeof oe.markForceUpdateScheduled=="function"&&oe.markForceUpdateScheduled(e,t)}function jf(e,t){oe!==null&&typeof oe.markStateUpdateScheduled=="function"&&oe.markStateUpdateScheduled(e,t)}var Le=0,st=1,At=2,un=8,dr=16,fh=Math.clz32?Math.clz32:HT,jT=Math.log,UT=Math.LN2;function HT(e){var t=e>>>0;return t===0?32:31-(jT(t)/UT|0)|0}var Uf=31,F=0,An=0,$e=1,xo=2,zr=4,Fi=8,vr=16,wl=32,Ro=4194240,Dl=64,Hf=128,zf=256,Vf=512,Ff=1024,Bf=2048,$f=4096,Pf=8192,Yf=16384,If=32768,Wf=65536,qf=131072,Gf=262144,Xf=524288,Qf=1048576,Kf=2097152,ls=130023424,wo=4194304,Jf=8388608,Zf=16777216,ed=33554432,td=67108864,dh=wo,_l=134217728,vh=268435455,kl=268435456,Bi=536870912,Ca=1073741824;function zT(e){{if(e&$e)return"Sync";if(e&xo)return"InputContinuousHydration";if(e&zr)return"InputContinuous";if(e&Fi)return"DefaultHydration";if(e&vr)return"Default";if(e&wl)return"TransitionHydration";if(e&Ro)return"Transition";if(e&ls)return"Retry";if(e&_l)return"SelectiveHydration";if(e&kl)return"IdleHydration";if(e&Bi)return"Idle";if(e&Ca)return"Offscreen"}}var Wt=-1,us=Dl,ss=wo;function Ml(e){switch($i(e)){case $e:return $e;case xo:return xo;case zr:return zr;case Fi:return Fi;case vr:return vr;case wl:return wl;case Dl:case Hf:case zf:case Vf:case Ff:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:return e&Ro;case wo:case Jf:case Zf:case ed:case td:return e&ls;case _l:return _l;case kl:return kl;case Bi:return Bi;case Ca:return Ca;default:return c("Should have found matching lanes. This is a bug in React."),e}}function cs(e,t){var n=e.pendingLanes;if(n===F)return F;var a=F,r=e.suspendedLanes,i=e.pingedLanes,o=n&vh;if(o!==F){var l=o&~r;if(l!==F)a=Ml(l);else{var u=o&i;u!==F&&(a=Ml(u))}}else{var f=n&~r;f!==F?a=Ml(f):i!==F&&(a=Ml(i))}if(a===F)return F;if(t!==F&&t!==a&&(t&r)===F){var d=$i(a),g=$i(t);if(d>=g||d===vr&&(g&Ro)!==F)return t}(a&zr)!==F&&(a|=n&vr);var y=e.entangledLanes;if(y!==F)for(var w=e.entanglements,_=a&y;_>0;){var N=Pi(_),te=1<<N;a|=w[N],_&=~te}return a}function VT(e,t){for(var n=e.eventTimes,a=Wt;t>0;){var r=Pi(t),i=1<<r,o=n[r];o>a&&(a=o),t&=~i}return a}function FT(e,t){switch(e){case $e:case xo:case zr:return t+250;case Fi:case vr:case wl:case Dl:case Hf:case zf:case Vf:case Ff:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:return t+5e3;case wo:case Jf:case Zf:case ed:case td:return Wt;case _l:case kl:case Bi:case Ca:return Wt;default:return c("Should have found matching lanes. This is a bug in React."),Wt}}function BT(e,t){for(var n=e.pendingLanes,a=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=n;o>0;){var l=Pi(o),u=1<<l,f=i[l];f===Wt?((u&a)===F||(u&r)!==F)&&(i[l]=FT(u,t)):f<=t&&(e.expiredLanes|=u),o&=~u}}function $T(e){return Ml(e.pendingLanes)}function nd(e){var t=e.pendingLanes&~Ca;return t!==F?t:t&Ca?Ca:F}function PT(e){return(e&$e)!==F}function ad(e){return(e&vh)!==F}function ph(e){return(e&ls)===e}function YT(e){var t=$e|zr|vr;return(e&t)===F}function IT(e){return(e&Ro)===e}function fs(e,t){var n=xo|zr|Fi|vr;return(t&n)!==F}function WT(e,t){return(t&e.expiredLanes)!==F}function mh(e){return(e&Ro)!==F}function hh(){var e=us;return us<<=1,(us&Ro)===F&&(us=Dl),e}function qT(){var e=ss;return ss<<=1,(ss&ls)===F&&(ss=wo),e}function $i(e){return e&-e}function Ll(e){return $i(e)}function Pi(e){return 31-fh(e)}function rd(e){return Pi(e)}function xa(e,t){return(e&t)!==F}function Do(e,t){return(e&t)===t}function Je(e,t){return e|t}function ds(e,t){return e&~t}function yh(e,t){return e&t}function p_(e){return e}function GT(e,t){return e!==An&&e<t?e:t}function id(e){for(var t=[],n=0;n<Uf;n++)t.push(e);return t}function Ol(e,t,n){e.pendingLanes|=t,t!==Bi&&(e.suspendedLanes=F,e.pingedLanes=F);var a=e.eventTimes,r=rd(t);a[r]=n}function XT(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,a=t;a>0;){var r=Pi(a),i=1<<r;n[r]=Wt,a&=~i}}function gh(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function QT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=F,e.pingedLanes=F,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t;for(var a=e.entanglements,r=e.eventTimes,i=e.expirationTimes,o=n;o>0;){var l=Pi(o),u=1<<l;a[l]=F,r[l]=Wt,i[l]=Wt,o&=~u}}function od(e,t){for(var n=e.entangledLanes|=t,a=e.entanglements,r=n;r;){var i=Pi(r),o=1<<i;o&t|a[i]&t&&(a[i]|=t),r&=~o}}function KT(e,t){var n=$i(t),a;switch(n){case zr:a=xo;break;case vr:a=Fi;break;case Dl:case Hf:case zf:case Vf:case Ff:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case wo:case Jf:case Zf:case ed:case td:a=wl;break;case Bi:a=kl;break;default:a=An;break}return(a&(e.suspendedLanes|t))!==An?An:a}function bh(e,t,n){if(qa)for(var a=e.pendingUpdatersLaneMap;n>0;){var r=rd(n),i=1<<r,o=a[r];o.add(t),n&=~i}}function Sh(e,t){if(qa)for(var n=e.pendingUpdatersLaneMap,a=e.memoizedUpdaters;t>0;){var r=rd(t),i=1<<r,o=n[r];o.size>0&&(o.forEach(function(l){var u=l.alternate;(u===null||!a.has(u))&&a.add(l)}),o.clear()),t&=~i}}function Th(e,t){return null}var Ra=$e,Vr=zr,Fr=vr,vs=Bi,Al=An;function Ga(){return Al}function Nn(e){Al=e}function JT(e,t){var n=Al;try{return Al=e,t()}finally{Al=n}}function ZT(e,t){return e!==0&&e<t?e:t}function eE(e,t){return e>t?e:t}function ld(e,t){return e!==0&&e<t}function Eh(e){var t=$i(e);return ld(Ra,t)?ld(Vr,t)?ad(t)?Fr:vs:Vr:Ra}function ps(e){var t=e.current.memoizedState;return t.isDehydrated}var Ch;function tE(e){Ch=e}function nE(e){Ch(e)}var ud;function aE(e){ud=e}var xh;function rE(e){xh=e}var Rh;function iE(e){Rh=e}var wh;function oE(e){wh=e}var sd=!1,ms=[],li=null,ui=null,si=null,Nl=new Map,jl=new Map,ci=[],lE=["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"];function uE(e){return lE.indexOf(e)>-1}function sE(e,t,n,a,r){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:r,targetContainers:[a]}}function Dh(e,t){switch(e){case"focusin":case"focusout":li=null;break;case"dragenter":case"dragleave":ui=null;break;case"mouseover":case"mouseout":si=null;break;case"pointerover":case"pointerout":{var n=t.pointerId;Nl.delete(n);break}case"gotpointercapture":case"lostpointercapture":{var a=t.pointerId;jl.delete(a);break}}}function Ul(e,t,n,a,r,i){if(e===null||e.nativeEvent!==i){var o=sE(t,n,a,r,i);if(t!==null){var l=vi(t);l!==null&&ud(l)}return o}e.eventSystemFlags|=a;var u=e.targetContainers;return r!==null&&u.indexOf(r)===-1&&u.push(r),e}function cE(e,t,n,a,r){switch(t){case"focusin":{var i=r;return li=Ul(li,e,t,n,a,i),!0}case"dragenter":{var o=r;return ui=Ul(ui,e,t,n,a,o),!0}case"mouseover":{var l=r;return si=Ul(si,e,t,n,a,l),!0}case"pointerover":{var u=r,f=u.pointerId;return Nl.set(f,Ul(Nl.get(f)||null,e,t,n,a,u)),!0}case"gotpointercapture":{var d=r,g=d.pointerId;return jl.set(g,Ul(jl.get(g)||null,e,t,n,a,d)),!0}}return!1}function _h(e){var t=Wi(e.target);if(t!==null){var n=zi(t);if(n!==null){var a=n.tag;if(a===O){var r=Jm(n);if(r!==null){e.blockedOn=r,wh(e.priority,function(){xh(n)});return}}else if(a===ne){var i=n.stateNode;if(ps(i)){e.blockedOn=Zm(n);return}}}}e.blockedOn=null}function fE(e){for(var t=Rh(),n={blockedOn:null,target:e,priority:t},a=0;a<ci.length&&ld(t,ci[a].priority);a++);ci.splice(a,0,n),a===0&&_h(n)}function hs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var n=t[0],a=dd(e.domEventName,e.eventSystemFlags,n,e.nativeEvent);if(a===null){var r=e.nativeEvent,i=new r.constructor(r.type,r);z0(i),r.target.dispatchEvent(i),V0()}else{var o=vi(a);return o!==null&&ud(o),e.blockedOn=a,!1}t.shift()}return!0}function kh(e,t,n){hs(e)&&n.delete(t)}function dE(){sd=!1,li!==null&&hs(li)&&(li=null),ui!==null&&hs(ui)&&(ui=null),si!==null&&hs(si)&&(si=null),Nl.forEach(kh),jl.forEach(kh)}function Hl(e,t){e.blockedOn===t&&(e.blockedOn=null,sd||(sd=!0,M.unstable_scheduleCallback(M.unstable_NormalPriority,dE)))}function zl(e){if(ms.length>0){Hl(ms[0],e);for(var t=1;t<ms.length;t++){var n=ms[t];n.blockedOn===e&&(n.blockedOn=null)}}li!==null&&Hl(li,e),ui!==null&&Hl(ui,e),si!==null&&Hl(si,e);var a=function(l){return Hl(l,e)};Nl.forEach(a),jl.forEach(a);for(var r=0;r<ci.length;r++){var i=ci[r];i.blockedOn===e&&(i.blockedOn=null)}for(;ci.length>0;){var o=ci[0];if(o.blockedOn!==null)break;_h(o),o.blockedOn===null&&ci.shift()}}var _o=J.ReactCurrentBatchConfig,cd=!0;function Mh(e){cd=!!e}function vE(){return cd}function pE(e,t,n){var a=Lh(t),r;switch(a){case Ra:r=mE;break;case Vr:r=hE;break;case Fr:default:r=fd;break}return r.bind(null,t,n,e)}function mE(e,t,n,a){var r=Ga(),i=_o.transition;_o.transition=null;try{Nn(Ra),fd(e,t,n,a)}finally{Nn(r),_o.transition=i}}function hE(e,t,n,a){var r=Ga(),i=_o.transition;_o.transition=null;try{Nn(Vr),fd(e,t,n,a)}finally{Nn(r),_o.transition=i}}function fd(e,t,n,a){cd&&yE(e,t,n,a)}function yE(e,t,n,a){var r=dd(e,t,n,a);if(r===null){wd(e,t,a,ys,n),Dh(e,a);return}if(cE(r,e,t,n,a)){a.stopPropagation();return}if(Dh(e,a),t&bl&&uE(e)){for(;r!==null;){var i=vi(r);i!==null&&nE(i);var o=dd(e,t,n,a);if(o===null&&wd(e,t,a,ys,n),o===r)break;r=o}r!==null&&a.stopPropagation();return}wd(e,t,a,null,n)}var ys=null;function dd(e,t,n,a){ys=null;var r=gf(a),i=Wi(r);if(i!==null){var o=zi(i);if(o===null)i=null;else{var l=o.tag;if(l===O){var u=Jm(o);if(u!==null)return u;i=null}else if(l===ne){var f=o.stateNode;if(ps(f))return Zm(o);i=null}else o!==i&&(i=null)}}return ys=i,null}function Lh(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 Ra;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 Vr;case"message":{var t=uT();switch(t){case os:return Ra;case Af:return Vr;case Vi:case sT:return Fr;case Nf:return vs;default:return Fr}}default:return Fr}}function gE(e,t,n){return e.addEventListener(t,n,!1),n}function bE(e,t,n){return e.addEventListener(t,n,!0),n}function SE(e,t,n,a){return e.addEventListener(t,n,{capture:!0,passive:a}),n}function TE(e,t,n,a){return e.addEventListener(t,n,{passive:a}),n}var Vl=null,vd=null,Fl=null;function EE(e){return Vl=e,vd=Ah(),!0}function CE(){Vl=null,vd=null,Fl=null}function Oh(){if(Fl)return Fl;var e,t=vd,n=t.length,a,r=Ah(),i=r.length;for(e=0;e<n&&t[e]===r[e];e++);var o=n-e;for(a=1;a<=o&&t[n-a]===r[i-a];a++);var l=a>1?1-a:void 0;return Fl=r.slice(e,l),Fl}function Ah(){return"value"in Vl?Vl.value:Vl.textContent}function gs(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),t>=32||t===13?t:0}function bs(){return!0}function Nh(){return!1}function wa(e){function t(n,a,r,i,o){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)if(e.hasOwnProperty(l)){var u=e[l];u?this[l]=u(i):this[l]=i[l]}var f=i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1;return f?this.isDefaultPrevented=bs:this.isDefaultPrevented=Nh,this.isPropagationStopped=Nh,this}return xe(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=bs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=bs)},persist:function(){},isPersistent:bs}),t}var ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pd=wa(ko),Bl=xe({},ko,{view:0,detail:0}),xE=wa(Bl),md,hd,$l;function RE(e){e!==$l&&($l&&e.type==="mousemove"?(md=e.screenX-$l.screenX,hd=e.screenY-$l.screenY):(md=0,hd=0),$l=e)}var Ss=xe({},Bl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gd,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:(RE(e),md)},movementY:function(e){return"movementY"in e?e.movementY:hd}}),jh=wa(Ss),wE=xe({},Ss,{dataTransfer:0}),DE=wa(wE),_E=xe({},Bl,{relatedTarget:0}),yd=wa(_E),kE=xe({},ko,{animationName:0,elapsedTime:0,pseudoElement:0}),ME=wa(kE),LE=xe({},ko,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OE=wa(LE),AE=xe({},ko,{data:0}),Uh=wa(AE),NE=Uh,jE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},UE={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"};function HE(e){if(e.key){var t=jE[e.key]||e.key;if(t!=="Unidentified")return t}if(e.type==="keypress"){var n=gs(e);return n===13?"Enter":String.fromCharCode(n)}return e.type==="keydown"||e.type==="keyup"?UE[e.keyCode]||"Unidentified":""}var zE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function VE(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var a=zE[e];return a?!!n[a]:!1}function gd(e){return VE}var FE=xe({},Bl,{key:HE,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gd,charCode:function(e){return e.type==="keypress"?gs(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?gs(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),BE=wa(FE),$E=xe({},Ss,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Hh=wa($E),PE=xe({},Bl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gd}),YE=wa(PE),IE=xe({},ko,{propertyName:0,elapsedTime:0,pseudoElement:0}),WE=wa(IE),qE=xe({},Ss,{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}),GE=wa(qE),XE=[9,13,27,32],zh=229,bd=Mt&&"CompositionEvent"in window,Pl=null;Mt&&"documentMode"in document&&(Pl=document.documentMode);var QE=Mt&&"TextEvent"in window&&!Pl,Vh=Mt&&(!bd||Pl&&Pl>8&&Pl<=11),Fh=32,Bh=String.fromCharCode(Fh);function KE(){mt("onBeforeInput",["compositionend","keypress","textInput","paste"]),mt("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),mt("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),mt("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var $h=!1;function JE(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function ZE(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function eC(e,t){return e==="keydown"&&t.keyCode===zh}function Ph(e,t){switch(e){case"keyup":return XE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==zh;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yh(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function Ih(e){return e.locale==="ko"}var Mo=!1;function tC(e,t,n,a,r){var i,o;if(bd?i=ZE(t):Mo?Ph(t,a)&&(i="onCompositionEnd"):eC(t,a)&&(i="onCompositionStart"),!i)return null;Vh&&!Ih(a)&&(!Mo&&i==="onCompositionStart"?Mo=EE(r):i==="onCompositionEnd"&&Mo&&(o=Oh()));var l=Rs(n,i);if(l.length>0){var u=new Uh(i,t,null,a,r);if(e.push({event:u,listeners:l}),o)u.data=o;else{var f=Yh(a);f!==null&&(u.data=f)}}}function nC(e,t){switch(e){case"compositionend":return Yh(t);case"keypress":var n=t.which;return n!==Fh?null:($h=!0,Bh);case"textInput":var a=t.data;return a===Bh&&$h?null:a;default:return null}}function aC(e,t){if(Mo){if(e==="compositionend"||!bd&&Ph(e,t)){var n=Oh();return CE(),Mo=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!JE(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Vh&&!Ih(t)?null:t.data;default:return null}}function rC(e,t,n,a,r){var i;if(QE?i=nC(t,a):i=aC(t,a),!i)return null;var o=Rs(n,"onBeforeInput");if(o.length>0){var l=new NE("onBeforeInput","beforeinput",null,a,r);e.push({event:l,listeners:o}),l.data=i}}function iC(e,t,n,a,r,i,o){tC(e,t,n,a,r),rC(e,t,n,a,r)}var oC={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 Wh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oC[e.type]:t==="textarea"}/**
* Checks if an event is supported in the current execution environment.
*
* NOTE: This will not work correctly for non-generic events such as `change`,
* `reset`, `load`, `error`, and `select`.
*
* Borrows from Modernizr.
*
* @param {string} eventNameSuffix Event name, e.g. "click".
* @return {boolean} True if the event is supported.
* @internal
* @license Modernizr 3.0.0pre (Custom Build) | MIT
*/function lC(e){if(!Mt)return!1;var t="on"+e,n=t in document;if(!n){var a=document.createElement("div");a.setAttribute(t,"return;"),n=typeof a[t]=="function"}return n}function uC(){mt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function qh(e,t,n,a){Pm(a);var r=Rs(t,"onChange");if(r.length>0){var i=new pd("onChange","change",null,n,a);e.push({event:i,listeners:r})}}var Yl=null,Il=null;function sC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function cC(e){var t=[];qh(t,Il,e,gf(e)),qm(fC,t)}function fC(e){fy(e,0)}function Ts(e){var t=Uo(e);if(vl(t))return e}function dC(e,t){if(e==="change")return t}var Gh=!1;Mt&&(Gh=lC("input")&&(!document.documentMode||document.documentMode>9));function vC(e,t){Yl=e,Il=t,Yl.attachEvent("onpropertychange",Qh)}function Xh(){Yl&&(Yl.detachEvent("onpropertychange",Qh),Yl=null,Il=null)}function Qh(e){e.propertyName==="value"&&Ts(Il)&&cC(e)}function pC(e,t,n){e==="focusin"?(Xh(),vC(t,n)):e==="focusout"&&Xh()}function mC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(Il)}function hC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function yC(e,t){if(e==="click")return Ts(t)}function gC(e,t){if(e==="input"||e==="change")return Ts(t)}function bC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Ae(e,"number",e.value)}function SC(e,t,n,a,r,i,o){var l=n?Uo(n):window,u,f;if(sC(l)?u=dC:Wh(l)?Gh?u=gC:(u=mC,f=pC):hC(l)&&(u=yC),u){var d=u(t,n);if(d){qh(e,d,a,r);return}}f&&f(t,l,n),t==="focusout"&&bC(l)}function TC(){an("onMouseEnter",["mouseout","mouseover"]),an("onMouseLeave",["mouseout","mouseover"]),an("onPointerEnter",["pointerout","pointerover"]),an("onPointerLeave",["pointerout","pointerover"])}function EC(e,t,n,a,r,i,o){var l=t==="mouseover"||t==="pointerover",u=t==="mouseout"||t==="pointerout";if(l&&!F0(a)){var f=a.relatedTarget||a.fromElement;if(f&&(Wi(f)||ou(f)))return}if(!(!u&&!l)){var d;if(r.window===r)d=r;else{var g=r.ownerDocument;g?d=g.defaultView||g.parentWindow:d=window}var y,w;if(u){var _=a.relatedTarget||a.toElement;if(y=n,w=_?Wi(_):null,w!==null){var N=zi(w);(w!==N||w.tag!==ae&&w.tag!==me)&&(w=null)}}else y=null,w=n;if(y!==w){var te=jh,ke="onMouseLeave",Re="onMouseEnter",ft="mouse";(t==="pointerout"||t==="pointerover")&&(te=Hh,ke="onPointerLeave",Re="onPointerEnter",ft="pointer");var it=y==null?d:Uo(y),C=w==null?d:Uo(w),j=new te(ke,ft+"leave",y,a,r);j.target=it,j.relatedTarget=C;var x=null,B=Wi(r);if(B===n){var ce=new te(Re,ft+"enter",w,a,r);ce.target=C,ce.relatedTarget=it,x=ce}WC(e,j,x,y,w)}}}function CC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Da=typeof Object.is=="function"?Object.is:CC;function Wl(e,t){if(Da(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(!tt.call(t,i)||!Da(e[i],t[i]))return!1}return!0}function Kh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xC(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function Jh(e,t){for(var n=Kh(e),a=0,r=0;n;){if(n.nodeType===Ar){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=Kh(xC(n))}}function RC(e){var t=e.ownerDocument,n=t&&t.defaultView||window,a=n.getSelection&&n.getSelection();if(!a||a.rangeCount===0)return null;var r=a.anchorNode,i=a.anchorOffset,o=a.focusNode,l=a.focusOffset;try{r.nodeType,o.nodeType}catch{return null}return wC(e,r,i,o,l)}function wC(e,t,n,a,r){var i=0,o=-1,l=-1,u=0,f=0,d=e,g=null;e:for(;;){for(var y=null;d===t&&(n===0||d.nodeType===Ar)&&(o=i+n),d===a&&(r===0||d.nodeType===Ar)&&(l=i+r),d.nodeType===Ar&&(i+=d.nodeValue.length),(y=d.firstChild)!==null;)g=d,d=y;for(;;){if(d===e)break e;if(g===t&&++u===n&&(o=i),g===a&&++f===r&&(l=i),(y=d.nextSibling)!==null)break;d=g,g=d.parentNode}d=y}return o===-1||l===-1?null:{start:o,end:l}}function DC(e,t){var n=e.ownerDocument||document,a=n&&n.defaultView||window;if(a.getSelection){var r=a.getSelection(),i=e.textContent.length,o=Math.min(t.start,i),l=t.end===void 0?o:Math.min(t.end,i);if(!r.extend&&o>l){var u=l;l=o,o=u}var f=Jh(e,o),d=Jh(e,l);if(f&&d){if(r.rangeCount===1&&r.anchorNode===f.node&&r.anchorOffset===f.offset&&r.focusNode===d.node&&r.focusOffset===d.offset)return;var g=n.createRange();g.setStart(f.node,f.offset),r.removeAllRanges(),o>l?(r.addRange(g),r.extend(d.node,d.offset)):(g.setEnd(d.node,d.offset),r.addRange(g))}}}function Zh(e){return e&&e.nodeType===Ar}function ey(e,t){return!e||!t?!1:e===t?!0:Zh(e)?!1:Zh(t)?ey(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function _C(e){return e&&e.ownerDocument&&ey(e.ownerDocument.documentElement,e)}function kC(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function ty(){for(var e=window,t=Mr();t instanceof e.HTMLIFrameElement;){if(kC(t))e=t.contentWindow;else return t;t=Mr(e.document)}return t}function Sd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function MC(){var e=ty();return{focusedElem:e,selectionRange:Sd(e)?OC(e):null}}function LC(e){var t=ty(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&_C(n)){a!==null&&Sd(n)&&AC(n,a);for(var r=[],i=n;i=i.parentNode;)i.nodeType===ma&&r.push({element:i,left:i.scrollLeft,top:i.scrollTop});typeof n.focus=="function"&&n.focus();for(var o=0;o<r.length;o++){var l=r[o];l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}}function OC(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=RC(e),t||{start:0,end:0}}function AC(e,t){var n=t.start,a=t.end;a===void 0&&(a=n),"selectionStart"in e?(e.selectionStart=n,e.selectionEnd=Math.min(a,e.value.length)):DC(e,t)}var NC=Mt&&"documentMode"in document&&document.documentMode<=11;function jC(){mt("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Lo=null,Td=null,ql=null,Ed=!1;function UC(e){if("selectionStart"in e&&Sd(e))return{start:e.selectionStart,end:e.selectionEnd};var t=e.ownerDocument&&e.ownerDocument.defaultView||window,n=t.getSelection();return{anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}function HC(e){return e.window===e?e.document:e.nodeType===Nr?e:e.ownerDocument}function ny(e,t,n){var a=HC(n);if(!(Ed||Lo==null||Lo!==Mr(a))){var r=UC(Lo);if(!ql||!Wl(ql,r)){ql=r;var i=Rs(Td,"onSelect");if(i.length>0){var o=new pd("onSelect","select",null,t,n);e.push({event:o,listeners:i}),o.target=Lo}}}}function zC(e,t,n,a,r,i,o){var l=n?Uo(n):window;switch(t){case"focusin":(Wh(l)||l.contentEditable==="true")&&(Lo=l,Td=n,ql=null);break;case"focusout":Lo=null,Td=null,ql=null;break;case"mousedown":Ed=!0;break;case"contextmenu":case"mouseup":case"dragend":Ed=!1,ny(e,a,r);break;case"selectionchange":if(NC)break;case"keydown":case"keyup":ny(e,a,r)}}function Es(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Oo={animationend:Es("Animation","AnimationEnd"),animationiteration:Es("Animation","AnimationIteration"),animationstart:Es("Animation","AnimationStart"),transitionend:Es("Transition","TransitionEnd")},Cd={},ay={};Mt&&(ay=document.createElement("div").style,"AnimationEvent"in window||(delete Oo.animationend.animation,delete Oo.animationiteration.animation,delete Oo.animationstart.animation),"TransitionEvent"in window||delete Oo.transitionend.transition);function Cs(e){if(Cd[e])return Cd[e];if(!Oo[e])return e;var t=Oo[e];for(var n in t)if(t.hasOwnProperty(n)&&n in ay)return Cd[e]=t[n];return e}var ry=Cs("animationend"),iy=Cs("animationiteration"),oy=Cs("animationstart"),ly=Cs("transitionend"),uy=new Map,sy=["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"];function fi(e,t){uy.set(e,t),mt(t,[e])}function VC(){for(var e=0;e<sy.length;e++){var t=sy[e],n=t.toLowerCase(),a=t[0].toUpperCase()+t.slice(1);fi(n,"on"+a)}fi(ry,"onAnimationEnd"),fi(iy,"onAnimationIteration"),fi(oy,"onAnimationStart"),fi("dblclick","onDoubleClick"),fi("focusin","onFocus"),fi("focusout","onBlur"),fi(ly,"onTransitionEnd")}function FC(e,t,n,a,r,i,o){var l=uy.get(t);if(l!==void 0){var u=pd,f=t;switch(t){case"keypress":if(gs(a)===0)return;case"keydown":case"keyup":u=BE;break;case"focusin":f="focus",u=yd;break;case"focusout":f="blur",u=yd;break;case"beforeblur":case"afterblur":u=yd;break;case"click":if(a.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=jh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=DE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=YE;break;case ry:case iy:case oy:u=ME;break;case ly:u=WE;break;case"scroll":u=xE;break;case"wheel":u=GE;break;case"copy":case"cut":case"paste":u=OE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Hh;break}var d=(i&bl)!==0;{var g=!d&&t==="scroll",y=YC(n,l,a.type,d,g);if(y.length>0){var w=new u(l,f,null,a,r);e.push({event:w,listeners:y})}}}}VC(),TC(),uC(),jC(),KE();function BC(e,t,n,a,r,i,o){FC(e,t,n,a,r,i);var l=(i&H0)===0;l&&(EC(e,t,n,a,r),SC(e,t,n,a,r),zC(e,t,n,a,r),iC(e,t,n,a,r))}var Gl=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],xd=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Gl));function cy(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,X0(a,t,void 0,e),e.currentTarget=null}function $C(e,t,n){var a;if(n)for(var r=t.length-1;r>=0;r--){var i=t[r],o=i.instance,l=i.currentTarget,u=i.listener;if(o!==a&&e.isPropagationStopped())return;cy(e,u,l),a=o}else for(var f=0;f<t.length;f++){var d=t[f],g=d.instance,y=d.currentTarget,w=d.listener;if(g!==a&&e.isPropagationStopped())return;cy(e,w,y),a=g}}function fy(e,t){for(var n=(t&bl)!==0,a=0;a<e.length;a++){var r=e[a],i=r.event,o=r.listeners;$C(i,o,n)}Q0()}function PC(e,t,n,a,r){var i=gf(n),o=[];BC(o,e,a,n,i,t),fy(o,t)}function Kt(e,t){xd.has(e)||c('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=!1,a=bR(t),r=qC(e);a.has(r)||(dy(t,e,yf,n),a.add(r))}function Rd(e,t,n){xd.has(e)&&!t&&c('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var a=0;t&&(a|=bl),dy(n,e,a,t)}var xs="_reactListening"+Math.random().toString(36).slice(2);function Xl(e){if(!e[xs]){e[xs]=!0,Xt.forEach(function(n){n!=="selectionchange"&&(xd.has(n)||Rd(n,!1,e),Rd(n,!0,e))});var t=e.nodeType===Nr?e:e.ownerDocument;t!==null&&(t[xs]||(t[xs]=!0,Rd("selectionchange",!1,t)))}}function dy(e,t,n,a,r){var i=pE(e,t,n),o=void 0;Tf&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o=!0),e=e,a?o!==void 0?SE(e,t,i,o):bE(e,t,i):o!==void 0?TE(e,t,i,o):gE(e,t,i)}function vy(e,t){return e===t||e.nodeType===vn&&e.parentNode===t}function wd(e,t,n,a,r){var i=a;if(!(t&Bm)&&!(t&yf)){var o=r;if(a!==null){var l=a;e:for(;;){if(l===null)return;var u=l.tag;if(u===ne||u===je){var f=l.stateNode.containerInfo;if(vy(f,o))break;if(u===je)for(var d=l.return;d!==null;){var g=d.tag;if(g===ne||g===je){var y=d.stateNode.containerInfo;if(vy(y,o))return}d=d.return}for(;f!==null;){var w=Wi(f);if(w===null)return;var _=w.tag;if(_===ae||_===me){l=i=w;continue e}f=f.parentNode}}l=l.return}}}qm(function(){return PC(e,t,n,i)})}function Ql(e,t,n){return{instance:e,listener:t,currentTarget:n}}function YC(e,t,n,a,r,i){for(var o=t!==null?t+"Capture":null,l=a?o:t,u=[],f=e,d=null;f!==null;){var g=f,y=g.stateNode,w=g.tag;if(w===ae&&y!==null&&(d=y,l!==null)){var _=Tl(f,l);_!=null&&u.push(Ql(f,_,d))}if(r)break;f=f.return}return u}function Rs(e,t){for(var n=t+"Capture",a=[],r=e;r!==null;){var i=r,o=i.stateNode,l=i.tag;if(l===ae&&o!==null){var u=o,f=Tl(r,n);f!=null&&a.unshift(Ql(r,f,u));var d=Tl(r,t);d!=null&&a.push(Ql(r,d,u))}r=r.return}return a}function Ao(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==ae);return e||null}function IC(e,t){for(var n=e,a=t,r=0,i=n;i;i=Ao(i))r++;for(var o=0,l=a;l;l=Ao(l))o++;for(;r-o>0;)n=Ao(n),r--;for(;o-r>0;)a=Ao(a),o--;for(var u=r;u--;){if(n===a||a!==null&&n===a.alternate)return n;n=Ao(n),a=Ao(a)}return null}function py(e,t,n,a,r){for(var i=t._reactName,o=[],l=n;l!==null&&l!==a;){var u=l,f=u.alternate,d=u.stateNode,g=u.tag;if(f!==null&&f===a)break;if(g===ae&&d!==null){var y=d;if(r){var w=Tl(l,i);w!=null&&o.unshift(Ql(l,w,y))}else if(!r){var _=Tl(l,i);_!=null&&o.push(Ql(l,_,y))}}l=l.return}o.length!==0&&e.push({event:t,listeners:o})}function WC(e,t,n,a,r){var i=a&&r?IC(a,r):null;a!==null&&py(e,t,a,i,!1),r!==null&&n!==null&&py(e,n,r,i,!0)}function qC(e,t){return e+"__bubble"}var ha=!1,Kl="dangerouslySetInnerHTML",ws="suppressContentEditableWarning",di="suppressHydrationWarning",my="autoFocus",Yi="children",Ii="style",Ds="__html",Dd,_s,Jl,hy,ks,yy,gy;Dd={dialog:!0,webview:!0},_s=function(e,t){M0(e,t),L0(e,t),U0(e,t,{registrationNameDependencies:St,possibleRegistrationNames:jn})},yy=Mt&&!document.documentMode,Jl=function(e,t,n){if(!ha){var a=Ms(n),r=Ms(t);r!==a&&(ha=!0,c("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},hy=function(e){if(!ha){ha=!0;var t=[];e.forEach(function(n){t.push(n)}),c("Extra attributes from the server: %s",t)}},ks=function(e,t){t===!1?c("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):c("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},gy=function(e,t){var n=e.namespaceURI===Or?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var GC=/\r\n?/g,XC=/\u0000|\uFFFD/g;function Ms(e){le(e);var t=typeof e=="string"?e:""+e;return t.replace(GC,`
`).replace(XC,"")}function Ls(e,t,n,a){var r=Ms(t),i=Ms(e);if(i!==r&&(a&&(ha||(ha=!0,c('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&he))throw new Error("Text content does not match server-rendered HTML.")}function by(e){return e.nodeType===Nr?e:e.ownerDocument}function QC(){}function Os(e){e.onclick=QC}function KC(e,t,n,a,r){for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(i===Ii)o&&Object.freeze(o),jm(t,o);else if(i===Kl){var l=o?o[Ds]:void 0;l!=null&&Mm(t,l)}else if(i===Yi)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&ts(t,o)}else typeof o=="number"&&ts(t,""+o);else i===ws||i===di||i===my||(St.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&ks(i,o),i==="onScroll"&&Kt("scroll",t)):o!=null&&yn(t,i,o,r))}}function JC(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===Ii?jm(e,o):i===Kl?Mm(e,o):i===Yi?ts(e,o):yn(e,i,o,a)}}function ZC(e,t,n,a){var r,i=by(n),o,l=a;if(l===Or&&(l=ff(e)),l===Or){if(r=Ai(e,t),!r&&e!==e.toLowerCase()&&c("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var u=i.createElement("div");u.innerHTML="<script><\/script>";var f=u.firstChild;o=u.removeChild(f)}else if(typeof t.is=="string")o=i.createElement(e,{is:t.is});else if(o=i.createElement(e),e==="select"){var d=o;t.multiple?d.multiple=!0:t.size&&(d.size=t.size)}}else o=i.createElementNS(l,e);return l===Or&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!tt.call(Dd,e)&&(Dd[e]=!0,c("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),o}function ex(e,t){return by(t).createTextNode(e)}function tx(e,t,n,a){var r=Ai(t,n);_s(t,n);var i;switch(t){case"dialog":Kt("cancel",e),Kt("close",e),i=n;break;case"iframe":case"object":case"embed":Kt("load",e),i=n;break;case"video":case"audio":for(var o=0;o<Gl.length;o++)Kt(Gl[o],e);i=n;break;case"source":Kt("error",e),i=n;break;case"img":case"image":case"link":Kt("error",e),Kt("load",e),i=n;break;case"details":Kt("toggle",e),i=n;break;case"input":Ju(e,n),i=pl(e,n),Kt("invalid",e);break;case"option":Ot(e,n),i=n;break;case"select":yl(e,n),i=hl(e,n),Kt("invalid",e);break;case"textarea":Dm(e,n),i=sf(e,n),Kt("invalid",e);break;default:i=n}switch(hf(t,i),KC(t,e,a,i,r),t){case"input":Li(e),D(e,n,!1);break;case"textarea":Li(e),km(e);break;case"option":Yt(e,n);break;case"select":lf(e,n);break;default:typeof i.onClick=="function"&&Os(e);break}}function nx(e,t,n,a,r){_s(t,a);var i=null,o,l;switch(t){case"input":o=pl(e,n),l=pl(e,a),i=[];break;case"select":o=hl(e,n),l=hl(e,a),i=[];break;case"textarea":o=sf(e,n),l=sf(e,a),i=[];break;default:o=n,l=a,typeof o.onClick!="function"&&typeof l.onClick=="function"&&Os(e);break}hf(t,l);var u,f,d=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===Ii){var g=o[u];for(f in g)g.hasOwnProperty(f)&&(d||(d={}),d[f]="")}else u===Kl||u===Yi||u===ws||u===di||u===my||(St.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var y=l[u],w=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||y===w||y==null&&w==null))if(u===Ii)if(y&&Object.freeze(y),w){for(f in w)w.hasOwnProperty(f)&&(!y||!y.hasOwnProperty(f))&&(d||(d={}),d[f]="");for(f in y)y.hasOwnProperty(f)&&w[f]!==y[f]&&(d||(d={}),d[f]=y[f])}else d||(i||(i=[]),i.push(u,d)),d=y;else if(u===Kl){var _=y?y[Ds]:void 0,N=w?w[Ds]:void 0;_!=null&&N!==_&&(i=i||[]).push(u,_)}else u===Yi?(typeof y=="string"||typeof y=="number")&&(i=i||[]).push(u,""+y):u===ws||u===di||(St.hasOwnProperty(u)?(y!=null&&(typeof y!="function"&&ks(u,y),u==="onScroll"&&Kt("scroll",e)),!i&&w!==y&&(i=[])):(i=i||[]).push(u,y))}return d&&(E0(d,l[Ii]),(i=i||[]).push(Ii,d)),i}function ax(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=Ai(n,a),o=Ai(n,r);switch(JC(e,t,i,o),n){case"input":m(e,r);break;case"textarea":_m(e,r);break;case"select":Zu(e,r);break}}function rx(e){{var t=e.toLowerCase();return ns.hasOwnProperty(t)&&ns[t]||null}}function ix(e,t,n,a,r,i,o){var l,u;switch(l=Ai(t,n),_s(t,n),t){case"dialog":Kt("cancel",e),Kt("close",e);break;case"iframe":case"object":case"embed":Kt("load",e);break;case"video":case"audio":for(var f=0;f<Gl.length;f++)Kt(Gl[f],e);break;case"source":Kt("error",e);break;case"img":case"image":case"link":Kt("error",e),Kt("load",e);break;case"details":Kt("toggle",e);break;case"input":Ju(e,n),Kt("invalid",e);break;case"option":Ot(e,n);break;case"select":yl(e,n),Kt("invalid",e);break;case"textarea":Dm(e,n),Kt("invalid",e);break}hf(t,n);{u=new Set;for(var d=e.attributes,g=0;g<d.length;g++){var y=d[g].name.toLowerCase();switch(y){case"value":break;case"checked":break;case"selected":break;default:u.add(d[g].name)}}}var w=null;for(var _ in n)if(n.hasOwnProperty(_)){var N=n[_];if(_===Yi)typeof N=="string"?e.textContent!==N&&(n[di]!==!0&&Ls(e.textContent,N,i,o),w=[Yi,N]):typeof N=="number"&&e.textContent!==""+N&&(n[di]!==!0&&Ls(e.textContent,N,i,o),w=[Yi,""+N]);else if(St.hasOwnProperty(_))N!=null&&(typeof N!="function"&&ks(_,N),_==="onScroll"&&Kt("scroll",e));else if(o&&typeof l=="boolean"){var te=void 0,ke=Bt(_);if(n[di]!==!0){if(!(_===ws||_===di||_==="value"||_==="checked"||_==="selected")){if(_===Kl){var Re=e.innerHTML,ft=N?N[Ds]:void 0;if(ft!=null){var it=gy(e,ft);it!==Re&&Jl(_,Re,it)}}else if(_===Ii){if(u.delete(_),yy){var C=S0(N);te=e.getAttribute("style"),C!==te&&Jl(_,te,C)}}else if(l&&!We)u.delete(_.toLowerCase()),te=ti(e,_,N),N!==te&&Jl(_,te,N);else if(!Ft(_,ke,l)&&!Un(_,N,ke,l)){var j=!1;if(ke!==null)u.delete(ke.attributeName),te=ei(e,_,N,ke);else{var x=a;if(x===Or&&(x=ff(t)),x===Or)u.delete(_.toLowerCase());else{var B=rx(_);B!==null&&B!==_&&(j=!0,u.delete(B)),u.delete(_)}te=ti(e,_,N)}var ce=We;!ce&&N!==te&&!j&&Jl(_,te,N)}}}}}switch(o&&u.size>0&&n[di]!==!0&&hy(u),t){case"input":Li(e),D(e,n,!0);break;case"textarea":Li(e),km(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&Os(e);break}return w}function ox(e,t,n){var a=e.nodeValue!==t;return a}function _d(e,t){{if(ha)return;ha=!0,c("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function kd(e,t){{if(ha)return;ha=!0,c('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function Md(e,t,n){{if(ha)return;ha=!0,c("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Ld(e,t){{if(t===""||ha)return;ha=!0,c('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function lx(e,t,n){switch(t){case"input":A(e,n);return;case"textarea":t0(e,n);return;case"select":uf(e,n);return}}var Zl=function(){},eu=function(){};{var ux=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],Sy=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],sx=Sy.concat(["button"]),cx=["dd","dt","li","option","optgroup","p","rp","rt"],Ty={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};eu=function(e,t){var n=xe({},e||Ty),a={tag:t};return Sy.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),sx.indexOf(t)!==-1&&(n.pTagInButtonScope=null),ux.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=a,t==="form"&&(n.formTag=a),t==="a"&&(n.aTagInScope=a),t==="button"&&(n.buttonTagInScope=a),t==="nobr"&&(n.nobrTagInScope=a),t==="p"&&(n.pTagInButtonScope=a),t==="li"&&(n.listItemTagAutoclosing=a),(t==="dd"||t==="dt")&&(n.dlItemTagAutoclosing=a),n};var fx=function(e,t){switch(t){case"select":return e==="option"||e==="optgroup"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return cx.indexOf(t)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null}return!0},dx=function(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null},Ey={};Zl=function(e,t,n){n=n||Ty;var a=n.current,r=a&&a.tag;t!=null&&(e!=null&&c("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var i=fx(e,r)?null:a,o=i?null:dx(e,n),l=i||o;if(l){var u=l.tag,f=!!i+"|"+e+"|"+u;if(!Ey[f]){Ey[f]=!0;var d=e,g="";if(e==="#text"?/\S/.test(t)?d="Text nodes":(d="Whitespace text nodes",g=" Make sure you don't have any extra whitespace between tags on each line of your source code."):d="<"+e+">",i){var y="";u==="table"&&e==="tr"&&(y+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),c("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",d,u,g,y)}else c("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,u)}}}}var As="suppressHydrationWarning",Ns="$",js="/$",tu="$?",nu="$!",vx="style",Od=null,Ad=null;function px(e){var t,n,a=e.nodeType;switch(a){case Nr:case vf:{t=a===Nr?"#document":"#fragment";var r=e.documentElement;n=r?r.namespaceURI:df(null,"");break}default:{var i=a===vn?e.parentNode:e,o=i.namespaceURI||null;t=i.tagName,n=df(o,t);break}}{var l=t.toLowerCase(),u=eu(null,l);return{namespace:n,ancestorInfo:u}}}function mx(e,t,n){{var a=e,r=df(a.namespace,t),i=eu(a.ancestorInfo,t);return{namespace:r,ancestorInfo:i}}}function m_(e){return e}function hx(e){Od=vE(),Ad=MC();var t=null;return Mh(!1),t}function yx(e){LC(Ad),Mh(Od),Od=null,Ad=null}function gx(e,t,n,a,r){var i;{var o=a;if(Zl(e,null,o.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var l=""+t.children,u=eu(o.ancestorInfo,e);Zl(null,l,u)}i=o.namespace}var f=ZC(e,t,n,i);return iu(r,f),Bd(f,t),f}function bx(e,t){e.appendChild(t)}function Sx(e,t,n,a,r){switch(tx(e,t,n,a),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}function Tx(e,t,n,a,r,i){{var o=i;if(typeof a.children!=typeof n.children&&(typeof a.children=="string"||typeof a.children=="number")){var l=""+a.children,u=eu(o.ancestorInfo,t);Zl(null,l,u)}}return nx(e,t,n,a)}function Nd(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function Ex(e,t,n,a){{var r=n;Zl(null,e,r.ancestorInfo)}var i=ex(e,t);return iu(a,i),i}function Cx(){var e=window.event;return e===void 0?Fr:Lh(e.type)}var jd=typeof setTimeout=="function"?setTimeout:void 0,xx=typeof clearTimeout=="function"?clearTimeout:void 0,Ud=-1,Cy=typeof Promise=="function"?Promise:void 0,Rx=typeof queueMicrotask=="function"?queueMicrotask:typeof Cy<"u"?function(e){return Cy.resolve(null).then(e).catch(wx)}:jd;function wx(e){setTimeout(function(){throw e})}function Dx(e,t,n,a){switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&e.focus();return;case"img":{n.src&&(e.src=n.src);return}}}function _x(e,t,n,a,r,i){ax(e,t,n,a,r),Bd(e,r)}function xy(e){ts(e,"")}function kx(e,t,n){e.nodeValue=n}function Mx(e,t){e.appendChild(t)}function Lx(e,t){var n;e.nodeType===vn?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var a=e._reactRootContainer;a==null&&n.onclick===null&&Os(n)}function Ox(e,t,n){e.insertBefore(t,n)}function Ax(e,t,n){e.nodeType===vn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function Nx(e,t){e.removeChild(t)}function jx(e,t){e.nodeType===vn?e.parentNode.removeChild(t):e.removeChild(t)}function Hd(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===vn){var i=r.data;if(i===js)if(a===0){e.removeChild(r),zl(t);return}else a--;else(i===Ns||i===tu||i===nu)&&a++}n=r}while(n);zl(t)}function Ux(e,t){e.nodeType===vn?Hd(e.parentNode,t):e.nodeType===ma&&Hd(e,t),zl(e)}function Hx(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function zx(e){e.nodeValue=""}function Vx(e,t){e=e;var n=t[vx],a=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=pf("display",a)}function Fx(e,t){e.nodeValue=t}function Bx(e){e.nodeType===ma?e.textContent="":e.nodeType===Nr&&e.documentElement&&e.removeChild(e.documentElement)}function $x(e,t,n){return e.nodeType!==ma||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Px(e,t){return t===""||e.nodeType!==Ar?null:e}function Yx(e){return e.nodeType!==vn?null:e}function Ry(e){return e.data===tu}function zd(e){return e.data===nu}function Ix(e){var t=e.nextSibling&&e.nextSibling.dataset,n,a,r;return t&&(n=t.dgst,a=t.msg,r=t.stck),{message:a,digest:n,stack:r}}function Wx(e,t){e._reactRetry=t}function Us(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===ma||t===Ar)break;if(t===vn){var n=e.data;if(n===Ns||n===nu||n===tu)break;if(n===js)return null}}return e}function au(e){return Us(e.nextSibling)}function qx(e){return Us(e.firstChild)}function Gx(e){return Us(e.firstChild)}function Xx(e){return Us(e.nextSibling)}function Qx(e,t,n,a,r,i,o){iu(i,e),Bd(e,n);var l;{var u=r;l=u.namespace}var f=(i.mode&st)!==Le;return ix(e,t,n,l,a,f,o)}function Kx(e,t,n,a){return iu(n,e),n.mode&st,ox(e,t)}function Jx(e,t){iu(t,e)}function Zx(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===vn){var a=t.data;if(a===js){if(n===0)return au(t);n--}else(a===Ns||a===nu||a===tu)&&n++}t=t.nextSibling}return null}function wy(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===vn){var a=t.data;if(a===Ns||a===nu||a===tu){if(n===0)return t;n--}else a===js&&n++}t=t.previousSibling}return null}function eR(e){zl(e)}function tR(e){zl(e)}function nR(e){return e!=="head"&&e!=="body"}function aR(e,t,n,a){var r=!0;Ls(t.nodeValue,n,a,r)}function rR(e,t,n,a,r,i){if(t[As]!==!0){var o=!0;Ls(a.nodeValue,r,i,o)}}function iR(e,t){t.nodeType===ma?_d(e,t):t.nodeType===vn||kd(e,t)}function oR(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===ma?_d(n,t):t.nodeType===vn||kd(n,t))}}function lR(e,t,n,a,r){(r||t[As]!==!0)&&(a.nodeType===ma?_d(n,a):a.nodeType===vn||kd(n,a))}function uR(e,t,n){Md(e,t)}function sR(e,t){Ld(e,t)}function cR(e,t,n){{var a=e.parentNode;a!==null&&Md(a,t)}}function fR(e,t){{var n=e.parentNode;n!==null&&Ld(n,t)}}function dR(e,t,n,a,r,i){(i||t[As]!==!0)&&Md(n,a)}function vR(e,t,n,a,r){(r||t[As]!==!0)&&Ld(n,a)}function pR(e){c("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function mR(e){Xl(e)}var No=Math.random().toString(36).slice(2),jo="__reactFiber$"+No,Vd="__reactProps$"+No,ru="__reactContainer$"+No,Fd="__reactEvents$"+No,hR="__reactListeners$"+No,yR="__reactHandles$"+No;function gR(e){delete e[jo],delete e[Vd],delete e[Fd],delete e[hR],delete e[yR]}function iu(e,t){t[jo]=e}function Hs(e,t){t[ru]=e}function Dy(e){e[ru]=null}function ou(e){return!!e[ru]}function Wi(e){var t=e[jo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[ru]||n[jo],t){var a=t.alternate;if(t.child!==null||a!==null&&a.child!==null)for(var r=wy(e);r!==null;){var i=r[jo];if(i)return i;r=wy(r)}return t}e=n,n=e.parentNode}return null}function vi(e){var t=e[jo]||e[ru];return t&&(t.tag===ae||t.tag===me||t.tag===O||t.tag===ne)?t:null}function Uo(e){if(e.tag===ae||e.tag===me)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function zs(e){return e[Vd]||null}function Bd(e,t){e[Vd]=t}function bR(e){var t=e[Fd];return t===void 0&&(t=e[Fd]=new Set),t}var _y={},ky=J.ReactDebugCurrentFrame;function Vs(e){if(e){var t=e._owner,n=Aa(e.type,e._source,t?t.type:null);ky.setExtraStackFrame(n)}else ky.setExtraStackFrame(null)}function Xa(e,t,n,a,r){{var i=Function.call.bind(tt);for(var o in e)if(i(e,o)){var l=void 0;try{if(typeof e[o]!="function"){var u=Error((a||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=e[o](t,o,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){l=f}l&&!(l instanceof Error)&&(Vs(r),c("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",n,o,typeof l),Vs(null)),l instanceof Error&&!(l.message in _y)&&(_y[l.message]=!0,Vs(r),c("Failed %s type: %s",n,l.message),Vs(null))}}}var $d=[],Fs;Fs=[];var Br=-1;function pi(e){return{current:e}}function Xn(e,t){if(Br<0){c("Unexpected pop.");return}t!==Fs[Br]&&c("Unexpected Fiber popped."),e.current=$d[Br],$d[Br]=null,Fs[Br]=null,Br--}function Qn(e,t,n){Br++,$d[Br]=e.current,Fs[Br]=n,e.current=t}var Pd;Pd={};var _a={};Object.freeze(_a);var $r=pi(_a),pr=pi(!1),Yd=_a;function Ho(e,t,n){return n&&mr(t)?Yd:$r.current}function My(e,t,n){{var a=e.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=t,a.__reactInternalMemoizedMaskedChildContext=n}}function zo(e,t){{var n=e.type,a=n.contextTypes;if(!a)return _a;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={};for(var o in a)i[o]=t[o];{var l=Ge(e)||"Unknown";Xa(a,i,"context",l)}return r&&My(e,t,i),i}}function Bs(){return pr.current}function mr(e){{var t=e.childContextTypes;return t!=null}}function $s(e){Xn(pr,e),Xn($r,e)}function Id(e){Xn(pr,e),Xn($r,e)}function Ly(e,t,n){{if($r.current!==_a)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Qn($r,t,e),Qn(pr,n,e)}}function Oy(e,t,n){{var a=e.stateNode,r=t.childContextTypes;if(typeof a.getChildContext!="function"){{var i=Ge(e)||"Unknown";Pd[i]||(Pd[i]=!0,c("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",i,i))}return n}var o=a.getChildContext();for(var l in o)if(!(l in r))throw new Error((Ge(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');{var u=Ge(e)||"Unknown";Xa(r,o,"child context",u)}return xe({},n,o)}}function Ps(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||_a;return Yd=$r.current,Qn($r,n,e),Qn(pr,pr.current,e),!0}}function Ay(e,t,n){{var a=e.stateNode;if(!a)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(n){var r=Oy(e,t,Yd);a.__reactInternalMemoizedMergedChildContext=r,Xn(pr,e),Xn($r,e),Qn($r,r,e),Qn(pr,n,e)}else Xn(pr,e),Qn(pr,n,e)}}function SR(e){{if(!nT(e)||e.tag!==pe)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var t=e;do{switch(t.tag){case ne:return t.stateNode.context;case pe:{var n=t.type;if(mr(n))return t.stateNode.__reactInternalMemoizedMergedChildContext;break}}t=t.return}while(t!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var mi=0,Ys=1,Pr=null,Wd=!1,qd=!1;function Ny(e){Pr===null?Pr=[e]:Pr.push(e)}function TR(e){Wd=!0,Ny(e)}function jy(){Wd&&hi()}function hi(){if(!qd&&Pr!==null){qd=!0;var e=0,t=Ga();try{var n=!0,a=Pr;for(Nn(Ra);e<a.length;e++){var r=a[e];do r=r(n);while(r!==null)}Pr=null,Wd=!1}catch(i){throw Pr!==null&&(Pr=Pr.slice(e+1)),ih(os,hi),i}finally{Nn(t),qd=!1}}return null}var Vo=[],Fo=0,Is=null,Ws=0,ja=[],Ua=0,qi=null,Yr=1,Ir="";function ER(e){return Xi(),(e.flags&Km)!==He}function CR(e){return Xi(),Ws}function xR(){var e=Ir,t=Yr,n=t&~RR(t);return n.toString(32)+e}function Gi(e,t){Xi(),Vo[Fo++]=Ws,Vo[Fo++]=Is,Is=e,Ws=t}function Uy(e,t,n){Xi(),ja[Ua++]=Yr,ja[Ua++]=Ir,ja[Ua++]=qi,qi=e;var a=Yr,r=Ir,i=qs(a)-1,o=a&~(1<<i),l=n+1,u=qs(t)+i;if(u>30){var f=i-i%5,d=(1<<f)-1,g=(o&d).toString(32),y=o>>f,w=i-f,_=qs(t)+w,N=l<<w,te=N|y,ke=g+r;Yr=1<<_|te,Ir=ke}else{var Re=l<<i,ft=Re|o,it=r;Yr=1<<u|ft,Ir=it}}function Gd(e){Xi();var t=e.return;if(t!==null){var n=1,a=0;Gi(e,n),Uy(e,n,a)}}function qs(e){return 32-fh(e)}function RR(e){return 1<<qs(e)-1}function Xd(e){for(;e===Is;)Is=Vo[--Fo],Vo[Fo]=null,Ws=Vo[--Fo],Vo[Fo]=null;for(;e===qi;)qi=ja[--Ua],ja[Ua]=null,Ir=ja[--Ua],ja[Ua]=null,Yr=ja[--Ua],ja[Ua]=null}function wR(){return Xi(),qi!==null?{id:Yr,overflow:Ir}:null}function DR(e,t){Xi(),ja[Ua++]=Yr,ja[Ua++]=Ir,ja[Ua++]=qi,Yr=t.id,Ir=t.overflow,qi=e}function Xi(){Vn()||c("Expected to be hydrating. This is a bug in React. Please file an issue.")}var zn=null,Ha=null,Qa=!1,Qi=!1,yi=null;function _R(){Qa&&c("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Hy(){Qi=!0}function kR(){return Qi}function MR(e){var t=e.stateNode.containerInfo;return Ha=Gx(t),zn=e,Qa=!0,yi=null,Qi=!1,!0}function LR(e,t,n){return Ha=Xx(t),zn=e,Qa=!0,yi=null,Qi=!1,n!==null&&DR(e,n),!0}function zy(e,t){switch(e.tag){case ne:{iR(e.stateNode.containerInfo,t);break}case ae:{var n=(e.mode&st)!==Le;lR(e.type,e.memoizedProps,e.stateNode,t,n);break}case O:{var a=e.memoizedState;a.dehydrated!==null&&oR(a.dehydrated,t);break}}}function Vy(e,t){zy(e,t);var n=jD();n.stateNode=t,n.return=e;var a=e.deletions;a===null?(e.deletions=[n],e.flags|=Ni):a.push(n)}function Qd(e,t){{if(Qi)return;switch(e.tag){case ne:{var n=e.stateNode.containerInfo;switch(t.tag){case ae:var a=t.type;t.pendingProps,uR(n,a);break;case me:var r=t.pendingProps;sR(n,r);break}break}case ae:{var i=e.type,o=e.memoizedProps,l=e.stateNode;switch(t.tag){case ae:{var u=t.type,f=t.pendingProps,d=(e.mode&st)!==Le;dR(i,o,l,u,f,d);break}case me:{var g=t.pendingProps,y=(e.mode&st)!==Le;vR(i,o,l,g,y);break}}break}case O:{var w=e.memoizedState,_=w.dehydrated;if(_!==null)switch(t.tag){case ae:var N=t.type;t.pendingProps,cR(_,N);break;case me:var te=t.pendingProps;fR(_,te);break}break}default:return}}}function Fy(e,t){t.flags=t.flags&~Ur|pn,Qd(e,t)}function By(e,t){switch(e.tag){case ae:{var n=e.type;e.pendingProps;var a=$x(t,n);return a!==null?(e.stateNode=a,zn=e,Ha=qx(a),!0):!1}case me:{var r=e.pendingProps,i=Px(t,r);return i!==null?(e.stateNode=i,zn=e,Ha=null,!0):!1}case O:{var o=Yx(t);if(o!==null){var l={dehydrated:o,treeContext:wR(),retryLane:Ca};e.memoizedState=l;var u=UD(o);return u.return=e,e.child=u,zn=e,Ha=null,!0}return!1}default:return!1}}function Kd(e){return(e.mode&st)!==Le&&(e.flags&Ct)===He}function Jd(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function Zd(e){if(Qa){var t=Ha;if(!t){Kd(e)&&(Qd(zn,e),Jd()),Fy(zn,e),Qa=!1,zn=e;return}var n=t;if(!By(e,t)){Kd(e)&&(Qd(zn,e),Jd()),t=au(n);var a=zn;if(!t||!By(e,t)){Fy(zn,e),Qa=!1,zn=e;return}Vy(a,n)}}}function OR(e,t,n){var a=e.stateNode,r=!Qi,i=Qx(a,e.type,e.memoizedProps,t,n,e,r);return e.updateQueue=i,i!==null}function AR(e){var t=e.stateNode,n=e.memoizedProps,a=Kx(t,n,e);if(a){var r=zn;if(r!==null)switch(r.tag){case ne:{var i=r.stateNode.containerInfo,o=(r.mode&st)!==Le;aR(i,t,n,o);break}case ae:{var l=r.type,u=r.memoizedProps,f=r.stateNode,d=(r.mode&st)!==Le;rR(l,u,f,t,n,d);break}}}return a}function NR(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Jx(n,e)}function jR(e){var t=e.memoizedState,n=t!==null?t.dehydrated:null;if(!n)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return Zx(n)}function $y(e){for(var t=e.return;t!==null&&t.tag!==ae&&t.tag!==ne&&t.tag!==O;)t=t.return;zn=t}function Gs(e){if(e!==zn)return!1;if(!Qa)return $y(e),Qa=!0,!1;if(e.tag!==ne&&(e.tag!==ae||nR(e.type)&&!Nd(e.type,e.memoizedProps))){var t=Ha;if(t)if(Kd(e))Py(e),Jd();else for(;t;)Vy(e,t),t=au(t)}return $y(e),e.tag===O?Ha=jR(e):Ha=zn?au(e.stateNode):null,!0}function UR(){return Qa&&Ha!==null}function Py(e){for(var t=Ha;t;)zy(e,t),t=au(t)}function Bo(){zn=null,Ha=null,Qa=!1,Qi=!1}function Yy(){yi!==null&&(Hb(yi),yi=null)}function Vn(){return Qa}function ev(e){yi===null?yi=[e]:yi.push(e)}var HR=J.ReactCurrentBatchConfig,zR=null;function VR(){return HR.transition}var Ka={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var FR=function(e){for(var t=null,n=e;n!==null;)n.mode&un&&(t=n),n=n.return;return t},Ki=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},lu=[],uu=[],su=[],cu=[],fu=[],du=[],Ji=new Set;Ka.recordUnsafeLifecycleWarnings=function(e,t){Ji.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&lu.push(e),e.mode&un&&typeof t.UNSAFE_componentWillMount=="function"&&uu.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&su.push(e),e.mode&un&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&cu.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&fu.push(e),e.mode&un&&typeof t.UNSAFE_componentWillUpdate=="function"&&du.push(e))},Ka.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;lu.length>0&&(lu.forEach(function(y){e.add(Ge(y)||"Component"),Ji.add(y.type)}),lu=[]);var t=new Set;uu.length>0&&(uu.forEach(function(y){t.add(Ge(y)||"Component"),Ji.add(y.type)}),uu=[]);var n=new Set;su.length>0&&(su.forEach(function(y){n.add(Ge(y)||"Component"),Ji.add(y.type)}),su=[]);var a=new Set;cu.length>0&&(cu.forEach(function(y){a.add(Ge(y)||"Component"),Ji.add(y.type)}),cu=[]);var r=new Set;fu.length>0&&(fu.forEach(function(y){r.add(Ge(y)||"Component"),Ji.add(y.type)}),fu=[]);var i=new Set;if(du.length>0&&(du.forEach(function(y){i.add(Ge(y)||"Component"),Ji.add(y.type)}),du=[]),t.size>0){var o=Ki(t);c(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
Please update the following components: %s`,o)}if(a.size>0){var l=Ki(a);c(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
Please update the following components: %s`,l)}if(i.size>0){var u=Ki(i);c(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
Please update the following components: %s`,u)}if(e.size>0){var f=Ki(e);P(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,f)}if(n.size>0){var d=Ki(n);P(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,d)}if(r.size>0){var g=Ki(r);P(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
Please update the following components: %s`,g)}};var Xs=new Map,Iy=new Set;Ka.recordLegacyContextWarning=function(e,t){var n=FR(e);if(n===null){c("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!Iy.has(e.type)){var a=Xs.get(n);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],Xs.set(n,a)),a.push(e))}},Ka.flushLegacyContextWarning=function(){Xs.forEach(function(e,t){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(i){a.add(Ge(i)||"Component"),Iy.add(i.type)});var r=Ki(a);try{Zt(n),c(`Legacy context API has been detected within a strict-mode tree.
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
Please update the following components: %s
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)}finally{Mn()}}})},Ka.discardPendingWarnings=function(){lu=[],uu=[],su=[],cu=[],fu=[],du=[],Xs=new Map}}var tv,nv,av,rv,iv,Wy=function(e,t){};tv=!1,nv=!1,av={},rv={},iv={},Wy=function(e,t){if(!(e===null||typeof e!="object")&&!(!e._store||e._store.validated||e.key!=null)){if(typeof e._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=Ge(t)||"Component";rv[n]||(rv[n]=!0,c('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function BR(e){return e.prototype&&e.prototype.isReactComponent}function vu(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&un||Ue)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==pe)&&!(typeof n.type=="function"&&!BR(n.type))&&n._owner){var r=Ge(e)||"Component";av[r]||(c('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r,a),av[r]=!0)}if(n._owner){var i=n._owner,o;if(i){var l=i;if(l.tag!==pe)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");o=l.stateNode}if(!o)throw new Error("Missing owner for string ref "+a+". This error is likely caused by a bug in React. Please file an issue.");var u=o;L(a,"ref");var f=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f)return t.ref;var d=function(g){var y=u.refs;g===null?delete y[f]:y[f]=g};return d._stringRef=f,d}else{if(typeof a!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+a+`) but no owner was set. This could happen for one of the following reasons:
1. You may be adding a ref to a function component
2. You may be adding a ref to a component that was not created inside a component's render method
3. You have multiple copies of React loaded
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return a}function Qs(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Ks(e){{var t=Ge(e)||"Component";if(iv[t])return;iv[t]=!0,c("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function qy(e){var t=e._payload,n=e._init;return n(t)}function Gy(e){function t(C,j){if(e){var x=C.deletions;x===null?(C.deletions=[j],C.flags|=Ni):x.push(j)}}function n(C,j){if(!e)return null;for(var x=j;x!==null;)t(C,x),x=x.sibling;return null}function a(C,j){for(var x=new Map,B=j;B!==null;)B.key!==null?x.set(B.key,B):x.set(B.index,B),B=B.sibling;return x}function r(C,j){var x=lo(C,j);return x.index=0,x.sibling=null,x}function i(C,j,x){if(C.index=x,!e)return C.flags|=Km,j;var B=C.alternate;if(B!==null){var ce=B.index;return ce<j?(C.flags|=pn,j):ce}else return C.flags|=pn,j}function o(C){return e&&C.alternate===null&&(C.flags|=pn),C}function l(C,j,x,B){if(j===null||j.tag!==me){var ce=em(x,C.mode,B);return ce.return=C,ce}else{var ie=r(j,x);return ie.return=C,ie}}function u(C,j,x,B){var ce=x.type;if(ce===ta)return d(C,j,x.props.children,B,x.key);if(j!==null&&(j.elementType===ce||Zb(j,x)||typeof ce=="object"&&ce!==null&&ce.$$typeof===p&&qy(ce)===j.type)){var ie=r(j,x.props);return ie.ref=vu(C,j,x),ie.return=C,ie._debugSource=x._source,ie._debugOwner=x._owner,ie}var ze=Zp(x,C.mode,B);return ze.ref=vu(C,j,x),ze.return=C,ze}function f(C,j,x,B){if(j===null||j.tag!==je||j.stateNode.containerInfo!==x.containerInfo||j.stateNode.implementation!==x.implementation){var ce=tm(x,C.mode,B);return ce.return=C,ce}else{var ie=r(j,x.children||[]);return ie.return=C,ie}}function d(C,j,x,B,ce){if(j===null||j.tag!==re){var ie=_i(x,C.mode,B,ce);return ie.return=C,ie}else{var ze=r(j,x);return ze.return=C,ze}}function g(C,j,x){if(typeof j=="string"&&j!==""||typeof j=="number"){var B=em(""+j,C.mode,x);return B.return=C,B}if(typeof j=="object"&&j!==null){switch(j.$$typeof){case gn:{var ce=Zp(j,C.mode,x);return ce.ref=vu(C,null,j),ce.return=C,ce}case ea:{var ie=tm(j,C.mode,x);return ie.return=C,ie}case p:{var ze=j._payload,Ie=j._init;return g(C,Ie(ze),x)}}if(rt(j)||Se(j)){var jt=_i(j,C.mode,x,null);return jt.return=C,jt}Qs(C,j)}return typeof j=="function"&&Ks(C),null}function y(C,j,x,B){var ce=j!==null?j.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return ce!==null?null:l(C,j,""+x,B);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case gn:return x.key===ce?u(C,j,x,B):null;case ea:return x.key===ce?f(C,j,x,B):null;case p:{var ie=x._payload,ze=x._init;return y(C,j,ze(ie),B)}}if(rt(x)||Se(x))return ce!==null?null:d(C,j,x,B,null);Qs(C,x)}return typeof x=="function"&&Ks(C),null}function w(C,j,x,B,ce){if(typeof B=="string"&&B!==""||typeof B=="number"){var ie=C.get(x)||null;return l(j,ie,""+B,ce)}if(typeof B=="object"&&B!==null){switch(B.$$typeof){case gn:{var ze=C.get(B.key===null?x:B.key)||null;return u(j,ze,B,ce)}case ea:{var Ie=C.get(B.key===null?x:B.key)||null;return f(j,Ie,B,ce)}case p:var jt=B._payload,gt=B._init;return w(C,j,x,gt(jt),ce)}if(rt(B)||Se(B)){var fn=C.get(x)||null;return d(j,fn,B,ce,null)}Qs(j,B)}return typeof B=="function"&&Ks(j),null}function _(C,j,x){{if(typeof C!="object"||C===null)return j;switch(C.$$typeof){case gn:case ea:Wy(C,x);var B=C.key;if(typeof B!="string")break;if(j===null){j=new Set,j.add(B);break}if(!j.has(B)){j.add(B);break}c("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",B);break;case p:var ce=C._payload,ie=C._init;_(ie(ce),j,x);break}}return j}function N(C,j,x,B){for(var ce=null,ie=0;ie<x.length;ie++){var ze=x[ie];ce=_(ze,ce,C)}for(var Ie=null,jt=null,gt=j,fn=0,bt=0,sn=null;gt!==null&&bt<x.length;bt++){gt.index>bt?(sn=gt,gt=null):sn=gt.sibling;var Jn=y(C,gt,x[bt],B);if(Jn===null){gt===null&&(gt=sn);break}e&&gt&&Jn.alternate===null&&t(C,gt),fn=i(Jn,fn,bt),jt===null?Ie=Jn:jt.sibling=Jn,jt=Jn,gt=sn}if(bt===x.length){if(n(C,gt),Vn()){var Wn=bt;Gi(C,Wn)}return Ie}if(gt===null){for(;bt<x.length;bt++){var Ma=g(C,x[bt],B);Ma!==null&&(fn=i(Ma,fn,bt),jt===null?Ie=Ma:jt.sibling=Ma,jt=Ma)}if(Vn()){var ca=bt;Gi(C,ca)}return Ie}for(var fa=a(C,gt);bt<x.length;bt++){var Zn=w(fa,C,bt,x[bt],B);Zn!==null&&(e&&Zn.alternate!==null&&fa.delete(Zn.key===null?bt:Zn.key),fn=i(Zn,fn,bt),jt===null?Ie=Zn:jt.sibling=Zn,jt=Zn)}if(e&&fa.forEach(function(ol){return t(C,ol)}),Vn()){var Jr=bt;Gi(C,Jr)}return Ie}function te(C,j,x,B){var ce=Se(x);if(typeof ce!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&x[Symbol.toStringTag]==="Generator"&&(nv||c("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),nv=!0),x.entries===ce&&(tv||c("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),tv=!0);var ie=ce.call(x);if(ie)for(var ze=null,Ie=ie.next();!Ie.done;Ie=ie.next()){var jt=Ie.value;ze=_(jt,ze,C)}}var gt=ce.call(x);if(gt==null)throw new Error("An iterable object provided no iterator.");for(var fn=null,bt=null,sn=j,Jn=0,Wn=0,Ma=null,ca=gt.next();sn!==null&&!ca.done;Wn++,ca=gt.next()){sn.index>Wn?(Ma=sn,sn=null):Ma=sn.sibling;var fa=y(C,sn,ca.value,B);if(fa===null){sn===null&&(sn=Ma);break}e&&sn&&fa.alternate===null&&t(C,sn),Jn=i(fa,Jn,Wn),bt===null?fn=fa:bt.sibling=fa,bt=fa,sn=Ma}if(ca.done){if(n(C,sn),Vn()){var Zn=Wn;Gi(C,Zn)}return fn}if(sn===null){for(;!ca.done;Wn++,ca=gt.next()){var Jr=g(C,ca.value,B);Jr!==null&&(Jn=i(Jr,Jn,Wn),bt===null?fn=Jr:bt.sibling=Jr,bt=Jr)}if(Vn()){var ol=Wn;Gi(C,ol)}return fn}for(var Iu=a(C,sn);!ca.done;Wn++,ca=gt.next()){var Cr=w(Iu,C,Wn,ca.value,B);Cr!==null&&(e&&Cr.alternate!==null&&Iu.delete(Cr.key===null?Wn:Cr.key),Jn=i(Cr,Jn,Wn),bt===null?fn=Cr:bt.sibling=Cr,bt=Cr)}if(e&&Iu.forEach(function(v_){return t(C,v_)}),Vn()){var d_=Wn;Gi(C,d_)}return fn}function ke(C,j,x,B){if(j!==null&&j.tag===me){n(C,j.sibling);var ce=r(j,x);return ce.return=C,ce}n(C,j);var ie=em(x,C.mode,B);return ie.return=C,ie}function Re(C,j,x,B){for(var ce=x.key,ie=j;ie!==null;){if(ie.key===ce){var ze=x.type;if(ze===ta){if(ie.tag===re){n(C,ie.sibling);var Ie=r(ie,x.props.children);return Ie.return=C,Ie._debugSource=x._source,Ie._debugOwner=x._owner,Ie}}else if(ie.elementType===ze||Zb(ie,x)||typeof ze=="object"&&ze!==null&&ze.$$typeof===p&&qy(ze)===ie.type){n(C,ie.sibling);var jt=r(ie,x.props);return jt.ref=vu(C,ie,x),jt.return=C,jt._debugSource=x._source,jt._debugOwner=x._owner,jt}n(C,ie);break}else t(C,ie);ie=ie.sibling}if(x.type===ta){var gt=_i(x.props.children,C.mode,B,x.key);return gt.return=C,gt}else{var fn=Zp(x,C.mode,B);return fn.ref=vu(C,j,x),fn.return=C,fn}}function ft(C,j,x,B){for(var ce=x.key,ie=j;ie!==null;){if(ie.key===ce)if(ie.tag===je&&ie.stateNode.containerInfo===x.containerInfo&&ie.stateNode.implementation===x.implementation){n(C,ie.sibling);var ze=r(ie,x.children||[]);return ze.return=C,ze}else{n(C,ie);break}else t(C,ie);ie=ie.sibling}var Ie=tm(x,C.mode,B);return Ie.return=C,Ie}function it(C,j,x,B){var ce=typeof x=="object"&&x!==null&&x.type===ta&&x.key===null;if(ce&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case gn:return o(Re(C,j,x,B));case ea:return o(ft(C,j,x,B));case p:var ie=x._payload,ze=x._init;return it(C,j,ze(ie),B)}if(rt(x))return N(C,j,x,B);if(Se(x))return te(C,j,x,B);Qs(C,x)}return typeof x=="string"&&x!==""||typeof x=="number"?o(ke(C,j,""+x,B)):(typeof x=="function"&&Ks(C),n(C,j))}return it}var $o=Gy(!0),Xy=Gy(!1);function $R(e,t){if(e!==null&&t.child!==e.child)throw new Error("Resuming work not yet implemented.");if(t.child!==null){var n=t.child,a=lo(n,n.pendingProps);for(t.child=a,a.return=t;n.sibling!==null;)n=n.sibling,a=a.sibling=lo(n,n.pendingProps),a.return=t;a.sibling=null}}function PR(e,t){for(var n=e.child;n!==null;)MD(n,t),n=n.sibling}var ov=pi(null),lv;lv={};var Js=null,Po=null,uv=null,Zs=!1;function ec(){Js=null,Po=null,uv=null,Zs=!1}function Qy(){Zs=!0}function Ky(){Zs=!1}function Jy(e,t,n){Qn(ov,t._currentValue,e),t._currentValue=n,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==lv&&c("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=lv}function sv(e,t){var n=ov.current;Xn(ov,t),e._currentValue=n}function cv(e,t,n){for(var a=e;a!==null;){var r=a.alternate;if(Do(a.childLanes,t)?r!==null&&!Do(r.childLanes,t)&&(r.childLanes=Je(r.childLanes,t)):(a.childLanes=Je(a.childLanes,t),r!==null&&(r.childLanes=Je(r.childLanes,t))),a===n)break;a=a.return}a!==n&&c("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function YR(e,t,n){IR(e,t,n)}function IR(e,t,n){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var r=void 0,i=a.dependencies;if(i!==null){r=a.child;for(var o=i.firstContext;o!==null;){if(o.context===t){if(a.tag===pe){var l=Ll(n),u=Wr(Wt,l);u.tag=nc;var f=a.updateQueue;if(f!==null){var d=f.shared,g=d.pending;g===null?u.next=u:(u.next=g.next,g.next=u),d.pending=u}}a.lanes=Je(a.lanes,n);var y=a.alternate;y!==null&&(y.lanes=Je(y.lanes,n)),cv(a.return,n,e),i.lanes=Je(i.lanes,n);break}o=o.next}}else if(a.tag===Fe)r=a.type===e.type?null:a.child;else if(a.tag===xt){var w=a.return;if(w===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");w.lanes=Je(w.lanes,n);var _=w.alternate;_!==null&&(_.lanes=Je(_.lanes,n)),cv(w,n,e),r=a.sibling}else r=a.child;if(r!==null)r.return=a;else for(r=a;r!==null;){if(r===e){r=null;break}var N=r.sibling;if(N!==null){N.return=r.return,r=N;break}r=r.return}a=r}}function Yo(e,t){Js=e,Po=null,uv=null;var n=e.dependencies;if(n!==null){var a=n.firstContext;a!==null&&(xa(n.lanes,t)&&_u(),n.firstContext=null)}}function mn(e){Zs&&c("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(uv!==e){var n={context:e,memoizedValue:t,next:null};if(Po===null){if(Js===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Po=n,Js.dependencies={lanes:F,firstContext:n}}else Po=Po.next=n}return t}var Zi=null;function fv(e){Zi===null?Zi=[e]:Zi.push(e)}function WR(){if(Zi!==null){for(var e=0;e<Zi.length;e++){var t=Zi[e],n=t.interleaved;if(n!==null){t.interleaved=null;var a=n.next,r=t.pending;if(r!==null){var i=r.next;r.next=a,n.next=i}t.pending=n}}Zi=null}}function Zy(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,fv(t)):(n.next=r.next,r.next=n),t.interleaved=n,tc(e,a)}function qR(e,t,n,a){var r=t.interleaved;r===null?(n.next=n,fv(t)):(n.next=r.next,r.next=n),t.interleaved=n}function GR(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,fv(t)):(n.next=r.next,r.next=n),t.interleaved=n,tc(e,a)}function ya(e,t){return tc(e,t)}var XR=tc;function tc(e,t){e.lanes=Je(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=Je(n.lanes,t)),n===null&&(e.flags&(pn|Ur))!==He&&Xb(e);for(var a=e,r=e.return;r!==null;)r.childLanes=Je(r.childLanes,t),n=r.alternate,n!==null?n.childLanes=Je(n.childLanes,t):(r.flags&(pn|Ur))!==He&&Xb(e),a=r,r=r.return;if(a.tag===ne){var i=a.stateNode;return i}else return null}var eg=0,tg=1,nc=2,dv=3,ac=!1,vv,rc;vv=!1,rc=null;function pv(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:F},effects:null};e.updateQueue=t}function ng(e,t){var n=t.updateQueue,a=e.updateQueue;if(n===a){var r={baseState:a.baseState,firstBaseUpdate:a.firstBaseUpdate,lastBaseUpdate:a.lastBaseUpdate,shared:a.shared,effects:a.effects};t.updateQueue=r}}function Wr(e,t){var n={eventTime:e,lane:t,tag:eg,payload:null,callback:null,next:null};return n}function gi(e,t,n){var a=e.updateQueue;if(a===null)return null;var r=a.shared;if(rc===r&&!vv&&(c("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),vv=!0),qw()){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,XR(e,n)}else return GR(e,r,t,n)}function ic(e,t,n){var a=t.updateQueue;if(a!==null){var r=a.shared;if(mh(n)){var i=r.lanes;i=yh(i,e.pendingLanes);var o=Je(i,n);r.lanes=o,od(e,o)}}}function mv(e,t){var n=e.updateQueue,a=e.alternate;if(a!==null){var r=a.updateQueue;if(n===r){var i=null,o=null,l=n.firstBaseUpdate;if(l!==null){var u=l;do{var f={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};o===null?i=o=f:(o.next=f,o=f),u=u.next}while(u!==null);o===null?i=o=t:(o.next=t,o=t)}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}}var d=n.lastBaseUpdate;d===null?n.firstBaseUpdate=t:d.next=t,n.lastBaseUpdate=t}function QR(e,t,n,a,r,i){switch(n.tag){case tg:{var o=n.payload;if(typeof o=="function"){Qy();var l=o.call(i,a,r);{if(e.mode&un){On(!0);try{o.call(i,a,r)}finally{On(!1)}}Ky()}return l}return o}case dv:e.flags=e.flags&~oa|Ct;case eg:{var u=n.payload,f;if(typeof u=="function"){Qy(),f=u.call(i,a,r);{if(e.mode&un){On(!0);try{u.call(i,a,r)}finally{On(!1)}}Ky()}}else f=u;return f==null?a:xe({},a,f)}case nc:return ac=!0,a}return a}function oc(e,t,n,a){var r=e.updateQueue;ac=!1,rc=r.shared;var i=r.firstBaseUpdate,o=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var u=l,f=u.next;u.next=null,o===null?i=f:o.next=f,o=u;var d=e.alternate;if(d!==null){var g=d.updateQueue,y=g.lastBaseUpdate;y!==o&&(y===null?g.firstBaseUpdate=f:y.next=f,g.lastBaseUpdate=u)}}if(i!==null){var w=r.baseState,_=F,N=null,te=null,ke=null,Re=i;do{var ft=Re.lane,it=Re.eventTime;if(Do(a,ft)){if(ke!==null){var j={eventTime:it,lane:An,tag:Re.tag,payload:Re.payload,callback:Re.callback,next:null};ke=ke.next=j}w=QR(e,r,Re,w,t,n);var x=Re.callback;if(x!==null&&Re.lane!==An){e.flags|=Qm;var B=r.effects;B===null?r.effects=[Re]:B.push(Re)}}else{var C={eventTime:it,lane:ft,tag:Re.tag,payload:Re.payload,callback:Re.callback,next:null};ke===null?(te=ke=C,N=w):ke=ke.next=C,_=Je(_,ft)}if(Re=Re.next,Re===null){if(l=r.shared.pending,l===null)break;var ce=l,ie=ce.next;ce.next=null,Re=ie,r.lastBaseUpdate=ce,r.shared.pending=null}}while(!0);ke===null&&(N=w),r.baseState=N,r.firstBaseUpdate=te,r.lastBaseUpdate=ke;var ze=r.shared.interleaved;if(ze!==null){var Ie=ze;do _=Je(_,Ie.lane),Ie=Ie.next;while(Ie!==ze)}else i===null&&(r.shared.lanes=F);Fu(_),e.lanes=_,e.memoizedState=w}rc=null}function KR(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function ag(){ac=!1}function lc(){return ac}function rg(e,t,n){var a=t.effects;if(t.effects=null,a!==null)for(var r=0;r<a.length;r++){var i=a[r],o=i.callback;o!==null&&(i.callback=null,KR(o,n))}}var pu={},bi=pi(pu),mu=pi(pu),uc=pi(pu);function sc(e){if(e===pu)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return e}function ig(){var e=sc(uc.current);return e}function hv(e,t){Qn(uc,t,e),Qn(mu,e,e),Qn(bi,pu,e);var n=px(t);Xn(bi,e),Qn(bi,n,e)}function Io(e){Xn(bi,e),Xn(mu,e),Xn(uc,e)}function yv(){var e=sc(bi.current);return e}function og(e){sc(uc.current);var t=sc(bi.current),n=mx(t,e.type);t!==n&&(Qn(mu,e,e),Qn(bi,n,e))}function gv(e){mu.current===e&&(Xn(bi,e),Xn(mu,e))}var JR=0,lg=1,ug=1,hu=2,Ja=pi(JR);function bv(e,t){return(e&t)!==0}function Wo(e){return e&lg}function Sv(e,t){return e&lg|t}function ZR(e,t){return e|t}function Si(e,t){Qn(Ja,t,e)}function qo(e){Xn(Ja,e)}function e1(e,t){var n=e.memoizedState;return n!==null?n.dehydrated!==null:(e.memoizedProps,!0)}function cc(e){for(var t=e;t!==null;){if(t.tag===O){var n=t.memoizedState;if(n!==null){var a=n.dehydrated;if(a===null||Ry(a)||zd(a))return t}}else if(t.tag===Vt&&t.memoizedProps.revealOrder!==void 0){var r=(t.flags&Ct)!==He;if(r)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)return null;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ga=0,Sn=1,hr=2,Tn=4,Fn=8,Tv=[];function Ev(){for(var e=0;e<Tv.length;e++){var t=Tv[e];t._workInProgressVersionPrimary=null}Tv.length=0}function t1(e,t){var n=t._getVersion,a=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)}var ue=J.ReactCurrentDispatcher,yu=J.ReactCurrentBatchConfig,Cv,Go;Cv=new Set;var eo=F,Nt=null,En=null,Cn=null,fc=!1,gu=!1,bu=0,n1=0,a1=25,H=null,za=null,Ti=-1,xv=!1;function Dt(){{var e=H;za===null?za=[e]:za.push(e)}}function K(){{var e=H;za!==null&&(Ti++,za[Ti]!==e&&r1(e))}}function Xo(e){e!=null&&!rt(e)&&c("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",H,typeof e)}function r1(e){{var t=Ge(Nt);if(!Cv.has(t)&&(Cv.add(t),za!==null)){for(var n="",a=30,r=0;r<=Ti;r++){for(var i=za[r],o=r===Ti?e:i,l=r+1+". "+i;l.length<a;)l+=" ";l+=o+`
`,n+=l}c(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
Previous render Next render
------------------------------------------------------
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
`,t,n)}}}function Kn(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Rv(e,t){if(xv)return!1;if(t===null)return c("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",H),!1;e.length!==t.length&&c(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
Incoming: %s`,H,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Da(e[n],t[n]))return!1;return!0}function Qo(e,t,n,a,r,i){eo=i,Nt=t,za=e!==null?e._debugHookTypes:null,Ti=-1,xv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=F,e!==null&&e.memoizedState!==null?ue.current=Mg:za!==null?ue.current=kg:ue.current=_g;var o=n(a,r);if(gu){var l=0;do{if(gu=!1,bu=0,l>=a1)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,xv=!1,En=null,Cn=null,t.updateQueue=null,Ti=-1,ue.current=Lg,o=n(a,r)}while(gu)}ue.current=xc,t._debugHookTypes=za;var u=En!==null&&En.next!==null;if(eo=F,Nt=null,En=null,Cn=null,H=null,za=null,Ti=-1,e!==null&&(e.flags&Hr)!==(t.flags&Hr)&&(e.mode&st)!==Le&&c("Internal React error: Expected static flag was missing. Please notify the React team."),fc=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o}function Ko(){var e=bu!==0;return bu=0,e}function sg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&dr)!==Le?t.flags&=-50333701:t.flags&=-2053,e.lanes=ds(e.lanes,n)}function cg(){if(ue.current=xc,fc){for(var e=Nt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fc=!1}eo=F,Nt=null,En=null,Cn=null,za=null,Ti=-1,H=null,Cg=!1,gu=!1,bu=0}function yr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Cn===null?Nt.memoizedState=Cn=e:Cn=Cn.next=e,Cn}function Va(){var e;if(En===null){var t=Nt.alternate;t!==null?e=t.memoizedState:e=null}else e=En.next;var n;if(Cn===null?n=Nt.memoizedState:n=Cn.next,n!==null)Cn=n,n=Cn.next,En=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");En=e;var a={memoizedState:En.memoizedState,baseState:En.baseState,baseQueue:En.baseQueue,queue:En.queue,next:null};Cn===null?Nt.memoizedState=Cn=a:Cn=Cn.next=a}return Cn}function fg(){return{lastEffect:null,stores:null}}function wv(e,t){return typeof t=="function"?t(e):t}function Dv(e,t,n){var a=yr(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:F,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=u1.bind(null,Nt,i);return[a.memoizedState,o]}function _v(e,t,n){var a=Va(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=En,o=i.baseQueue,l=r.pending;if(l!==null){if(o!==null){var u=o.next,f=l.next;o.next=f,l.next=u}i.baseQueue!==o&&c("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=o=l,r.pending=null}if(o!==null){var d=o.next,g=i.baseState,y=null,w=null,_=null,N=d;do{var te=N.lane;if(Do(eo,te)){if(_!==null){var Re={lane:An,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};_=_.next=Re}if(N.hasEagerState)g=N.eagerState;else{var ft=N.action;g=e(g,ft)}}else{var ke={lane:te,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};_===null?(w=_=ke,y=g):_=_.next=ke,Nt.lanes=Je(Nt.lanes,te),Fu(te)}N=N.next}while(N!==null&&N!==d);_===null?y=g:_.next=w,Da(g,a.memoizedState)||_u(),a.memoizedState=g,a.baseState=y,a.baseQueue=_,r.lastRenderedState=g}var it=r.interleaved;if(it!==null){var C=it;do{var j=C.lane;Nt.lanes=Je(Nt.lanes,j),Fu(j),C=C.next}while(C!==it)}else o===null&&(r.lanes=F);var x=r.dispatch;return[a.memoizedState,x]}function kv(e,t,n){var a=Va(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,l=a.memoizedState;if(o!==null){r.pending=null;var u=o.next,f=u;do{var d=f.action;l=e(l,d),f=f.next}while(f!==u);Da(l,a.memoizedState)||_u(),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),r.lastRenderedState=l}return[l,i]}function h_(e,t,n){}function y_(e,t,n){}function Mv(e,t,n){var a=Nt,r=yr(),i,o=Vn();if(o){if(n===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");i=n(),Go||i!==n()&&(c("The result of getServerSnapshot should be cached to avoid an infinite loop"),Go=!0)}else{if(i=t(),!Go){var l=t();Da(i,l)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Go=!0)}var u=Pc();if(u===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");fs(u,eo)||dg(a,t,i)}r.memoizedState=i;var f={value:i,getSnapshot:t};return r.queue=f,hc(pg.bind(null,a,f,e),[e]),a.flags|=ii,Su(Sn|Fn,vg.bind(null,a,f,i,t),void 0,null),i}function dc(e,t,n){var a=Nt,r=Va(),i=t();if(!Go){var o=t();Da(i,o)||(c("The result of getSnapshot should be cached to avoid an infinite loop"),Go=!0)}var l=r.memoizedState,u=!Da(l,i);u&&(r.memoizedState=i,_u());var f=r.queue;if(Eu(pg.bind(null,a,f,e),[e]),f.getSnapshot!==t||u||Cn!==null&&Cn.memoizedState.tag&Sn){a.flags|=ii,Su(Sn|Fn,vg.bind(null,a,f,i,t),void 0,null);var d=Pc();if(d===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");fs(d,eo)||dg(a,t,i)}return i}function dg(e,t,n){e.flags|=wf;var a={getSnapshot:t,value:n},r=Nt.updateQueue;if(r===null)r=fg(),Nt.updateQueue=r,r.stores=[a];else{var i=r.stores;i===null?r.stores=[a]:i.push(a)}}function vg(e,t,n,a){t.value=n,t.getSnapshot=a,mg(t)&&hg(e)}function pg(e,t,n){var a=function(){mg(t)&&hg(e)};return n(a)}function mg(e){var t=e.getSnapshot,n=e.value;try{var a=t();return!Da(n,a)}catch{return!0}}function hg(e){var t=ya(e,$e);t!==null&&Dn(t,e,$e,Wt)}function vc(e){var t=yr();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:F,dispatch:null,lastRenderedReducer:wv,lastRenderedState:e};t.queue=n;var a=n.dispatch=s1.bind(null,Nt,n);return[t.memoizedState,a]}function Lv(e){return _v(wv)}function Ov(e){return kv(wv)}function Su(e,t,n,a){var r={tag:e,create:t,destroy:n,deps:a,next:null},i=Nt.updateQueue;if(i===null)i=fg(),Nt.updateQueue=i,i.lastEffect=r.next=r;else{var o=i.lastEffect;if(o===null)i.lastEffect=r.next=r;else{var l=o.next;o.next=r,r.next=l,i.lastEffect=r}}return r}function Av(e){var t=yr();{var n={current:e};return t.memoizedState=n,n}}function pc(e){var t=Va();return t.memoizedState}function Tu(e,t,n,a){var r=yr(),i=a===void 0?null:a;Nt.flags|=e,r.memoizedState=Su(Sn|t,n,void 0,i)}function mc(e,t,n,a){var r=Va(),i=a===void 0?null:a,o=void 0;if(En!==null){var l=En.memoizedState;if(o=l.destroy,i!==null){var u=l.deps;if(Rv(i,u)){r.memoizedState=Su(t,n,o,i);return}}}Nt.flags|=e,r.memoizedState=Su(Sn|t,n,o,i)}function hc(e,t){return(Nt.mode&dr)!==Le?Tu(Mf|ii|kf,Fn,e,t):Tu(ii|kf,Fn,e,t)}function Eu(e,t){return mc(ii,Fn,e,t)}function Nv(e,t){return Tu(Et,hr,e,t)}function yc(e,t){return mc(Et,hr,e,t)}function jv(e,t){var n=Et;return n|=Hi,(Nt.mode&dr)!==Le&&(n|=oi),Tu(n,Tn,e,t)}function gc(e,t){return mc(Et,Tn,e,t)}function yg(e,t){if(typeof t=="function"){var n=t,a=e();return n(a),function(){n(null)}}else if(t!=null){var r=t;r.hasOwnProperty("current")||c("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(r).join(", ")+"}");var i=e();return r.current=i,function(){r.current=null}}}function Uv(e,t,n){typeof t!="function"&&c("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var a=n!=null?n.concat([e]):null,r=Et;return r|=Hi,(Nt.mode&dr)!==Le&&(r|=oi),Tu(r,Tn,yg.bind(null,t,e),a)}function bc(e,t,n){typeof t!="function"&&c("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var a=n!=null?n.concat([e]):null;return mc(Et,Tn,yg.bind(null,t,e),a)}function i1(e,t){}var Sc=i1;function Hv(e,t){var n=yr(),a=t===void 0?null:t;return n.memoizedState=[e,a],e}function Tc(e,t){var n=Va(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Rv(a,i))return r[0]}return n.memoizedState=[e,a],e}function zv(e,t){var n=yr(),a=t===void 0?null:t,r=e();return n.memoizedState=[r,a],r}function Ec(e,t){var n=Va(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Rv(a,i))return r[0]}var o=e();return n.memoizedState=[o,a],o}function Vv(e){var t=yr();return t.memoizedState=e,e}function gg(e){var t=Va(),n=En,a=n.memoizedState;return Sg(t,a,e)}function bg(e){var t=Va();if(En===null)return t.memoizedState=e,e;var n=En.memoizedState;return Sg(t,n,e)}function Sg(e,t,n){var a=!YT(eo);if(a){if(!Da(n,t)){var r=hh();Nt.lanes=Je(Nt.lanes,r),Fu(r),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,_u()),e.memoizedState=n,n}function o1(e,t,n){var a=Ga();Nn(ZT(a,Vr)),e(!0);var r=yu.transition;yu.transition={};var i=yu.transition;yu.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(Nn(a),yu.transition=r,r===null&&i._updatedFibers){var o=i._updatedFibers.size;o>10&&P("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),i._updatedFibers.clear()}}}function Fv(){var e=vc(!1),t=e[0],n=e[1],a=o1.bind(null,n),r=yr();return r.memoizedState=a,[t,a]}function Tg(){var e=Lv(),t=e[0],n=Va(),a=n.memoizedState;return[t,a]}function Eg(){var e=Ov(),t=e[0],n=Va(),a=n.memoizedState;return[t,a]}var Cg=!1;function l1(){return Cg}function Bv(){var e=yr(),t=Pc(),n=t.identifierPrefix,a;if(Vn()){var r=xR();a=":"+n+"R"+r;var i=bu++;i>0&&(a+="H"+i.toString(32)),a+=":"}else{var o=n1++;a=":"+n+"r"+o.toString(32)+":"}return e.memoizedState=a,a}function Cc(){var e=Va(),t=e.memoizedState;return t}function u1(e,t,n){typeof arguments[3]=="function"&&c("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var a=wi(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(xg(e))Rg(t,r);else{var i=Zy(e,t,r,a);if(i!==null){var o=sa();Dn(i,e,a,o),wg(i,t,a)}}Dg(e,a)}function s1(e,t,n){typeof arguments[3]=="function"&&c("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var a=wi(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(xg(e))Rg(t,r);else{var i=e.alternate;if(e.lanes===F&&(i===null||i.lanes===F)){var o=t.lastRenderedReducer;if(o!==null){var l;l=ue.current,ue.current=Za;try{var u=t.lastRenderedState,f=o(u,n);if(r.hasEagerState=!0,r.eagerState=f,Da(f,u)){qR(e,t,r,a);return}}catch{}finally{ue.current=l}}}var d=Zy(e,t,r,a);if(d!==null){var g=sa();Dn(d,e,a,g),wg(d,t,a)}}Dg(e,a)}function xg(e){var t=e.alternate;return e===Nt||t!==null&&t===Nt}function Rg(e,t){gu=fc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function wg(e,t,n){if(mh(n)){var a=t.lanes;a=yh(a,e.pendingLanes);var r=Je(a,n);t.lanes=r,od(e,r)}}function Dg(e,t,n){jf(e,t)}var xc={readContext:mn,useCallback:Kn,useContext:Kn,useEffect:Kn,useImperativeHandle:Kn,useInsertionEffect:Kn,useLayoutEffect:Kn,useMemo:Kn,useReducer:Kn,useRef:Kn,useState:Kn,useDebugValue:Kn,useDeferredValue:Kn,useTransition:Kn,useMutableSource:Kn,useSyncExternalStore:Kn,useId:Kn,unstable_isNewReconciler:se},_g=null,kg=null,Mg=null,Lg=null,gr=null,Za=null,Rc=null;{var $v=function(){c("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Pe=function(){c("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};_g={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",Dt(),Xo(t),Hv(e,t)},useContext:function(e){return H="useContext",Dt(),mn(e)},useEffect:function(e,t){return H="useEffect",Dt(),Xo(t),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Dt(),Xo(n),Uv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Dt(),Xo(t),Nv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Dt(),Xo(t),jv(e,t)},useMemo:function(e,t){H="useMemo",Dt(),Xo(t);var n=ue.current;ue.current=gr;try{return zv(e,t)}finally{ue.current=n}},useReducer:function(e,t,n){H="useReducer",Dt();var a=ue.current;ue.current=gr;try{return Dv(e,t,n)}finally{ue.current=a}},useRef:function(e){return H="useRef",Dt(),Av(e)},useState:function(e){H="useState",Dt();var t=ue.current;ue.current=gr;try{return vc(e)}finally{ue.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Dt(),void 0},useDeferredValue:function(e){return H="useDeferredValue",Dt(),Vv(e)},useTransition:function(){return H="useTransition",Dt(),Fv()},useMutableSource:function(e,t,n){return H="useMutableSource",Dt(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Dt(),Mv(e,t,n)},useId:function(){return H="useId",Dt(),Bv()},unstable_isNewReconciler:se},kg={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",K(),Hv(e,t)},useContext:function(e){return H="useContext",K(),mn(e)},useEffect:function(e,t){return H="useEffect",K(),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",K(),Uv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",K(),Nv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",K(),jv(e,t)},useMemo:function(e,t){H="useMemo",K();var n=ue.current;ue.current=gr;try{return zv(e,t)}finally{ue.current=n}},useReducer:function(e,t,n){H="useReducer",K();var a=ue.current;ue.current=gr;try{return Dv(e,t,n)}finally{ue.current=a}},useRef:function(e){return H="useRef",K(),Av(e)},useState:function(e){H="useState",K();var t=ue.current;ue.current=gr;try{return vc(e)}finally{ue.current=t}},useDebugValue:function(e,t){return H="useDebugValue",K(),void 0},useDeferredValue:function(e){return H="useDeferredValue",K(),Vv(e)},useTransition:function(){return H="useTransition",K(),Fv()},useMutableSource:function(e,t,n){return H="useMutableSource",K(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",K(),Mv(e,t,n)},useId:function(){return H="useId",K(),Bv()},unstable_isNewReconciler:se},Mg={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",K(),Tc(e,t)},useContext:function(e){return H="useContext",K(),mn(e)},useEffect:function(e,t){return H="useEffect",K(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",K(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",K(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",K(),gc(e,t)},useMemo:function(e,t){H="useMemo",K();var n=ue.current;ue.current=Za;try{return Ec(e,t)}finally{ue.current=n}},useReducer:function(e,t,n){H="useReducer",K();var a=ue.current;ue.current=Za;try{return _v(e,t,n)}finally{ue.current=a}},useRef:function(e){return H="useRef",K(),pc()},useState:function(e){H="useState",K();var t=ue.current;ue.current=Za;try{return Lv(e)}finally{ue.current=t}},useDebugValue:function(e,t){return H="useDebugValue",K(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",K(),gg(e)},useTransition:function(){return H="useTransition",K(),Tg()},useMutableSource:function(e,t,n){return H="useMutableSource",K(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",K(),dc(e,t)},useId:function(){return H="useId",K(),Cc()},unstable_isNewReconciler:se},Lg={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",K(),Tc(e,t)},useContext:function(e){return H="useContext",K(),mn(e)},useEffect:function(e,t){return H="useEffect",K(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",K(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",K(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",K(),gc(e,t)},useMemo:function(e,t){H="useMemo",K();var n=ue.current;ue.current=Rc;try{return Ec(e,t)}finally{ue.current=n}},useReducer:function(e,t,n){H="useReducer",K();var a=ue.current;ue.current=Rc;try{return kv(e,t,n)}finally{ue.current=a}},useRef:function(e){return H="useRef",K(),pc()},useState:function(e){H="useState",K();var t=ue.current;ue.current=Rc;try{return Ov(e)}finally{ue.current=t}},useDebugValue:function(e,t){return H="useDebugValue",K(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",K(),bg(e)},useTransition:function(){return H="useTransition",K(),Eg()},useMutableSource:function(e,t,n){return H="useMutableSource",K(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",K(),dc(e,t)},useId:function(){return H="useId",K(),Cc()},unstable_isNewReconciler:se},gr={readContext:function(e){return $v(),mn(e)},useCallback:function(e,t){return H="useCallback",Pe(),Dt(),Hv(e,t)},useContext:function(e){return H="useContext",Pe(),Dt(),mn(e)},useEffect:function(e,t){return H="useEffect",Pe(),Dt(),hc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),Dt(),Uv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),Dt(),Nv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),Dt(),jv(e,t)},useMemo:function(e,t){H="useMemo",Pe(),Dt();var n=ue.current;ue.current=gr;try{return zv(e,t)}finally{ue.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),Dt();var a=ue.current;ue.current=gr;try{return Dv(e,t,n)}finally{ue.current=a}},useRef:function(e){return H="useRef",Pe(),Dt(),Av(e)},useState:function(e){H="useState",Pe(),Dt();var t=ue.current;ue.current=gr;try{return vc(e)}finally{ue.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),Dt(),void 0},useDeferredValue:function(e){return H="useDeferredValue",Pe(),Dt(),Vv(e)},useTransition:function(){return H="useTransition",Pe(),Dt(),Fv()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),Dt(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),Dt(),Mv(e,t,n)},useId:function(){return H="useId",Pe(),Dt(),Bv()},unstable_isNewReconciler:se},Za={readContext:function(e){return $v(),mn(e)},useCallback:function(e,t){return H="useCallback",Pe(),K(),Tc(e,t)},useContext:function(e){return H="useContext",Pe(),K(),mn(e)},useEffect:function(e,t){return H="useEffect",Pe(),K(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),K(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),K(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),K(),gc(e,t)},useMemo:function(e,t){H="useMemo",Pe(),K();var n=ue.current;ue.current=Za;try{return Ec(e,t)}finally{ue.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),K();var a=ue.current;ue.current=Za;try{return _v(e,t,n)}finally{ue.current=a}},useRef:function(e){return H="useRef",Pe(),K(),pc()},useState:function(e){H="useState",Pe(),K();var t=ue.current;ue.current=Za;try{return Lv(e)}finally{ue.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),K(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",Pe(),K(),gg(e)},useTransition:function(){return H="useTransition",Pe(),K(),Tg()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),K(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),K(),dc(e,t)},useId:function(){return H="useId",Pe(),K(),Cc()},unstable_isNewReconciler:se},Rc={readContext:function(e){return $v(),mn(e)},useCallback:function(e,t){return H="useCallback",Pe(),K(),Tc(e,t)},useContext:function(e){return H="useContext",Pe(),K(),mn(e)},useEffect:function(e,t){return H="useEffect",Pe(),K(),Eu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),K(),bc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),K(),yc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),K(),gc(e,t)},useMemo:function(e,t){H="useMemo",Pe(),K();var n=ue.current;ue.current=Za;try{return Ec(e,t)}finally{ue.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),K();var a=ue.current;ue.current=Za;try{return kv(e,t,n)}finally{ue.current=a}},useRef:function(e){return H="useRef",Pe(),K(),pc()},useState:function(e){H="useState",Pe(),K();var t=ue.current;ue.current=Za;try{return Ov(e)}finally{ue.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),K(),Sc()},useDeferredValue:function(e){return H="useDeferredValue",Pe(),K(),bg(e)},useTransition:function(){return H="useTransition",Pe(),K(),Eg()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),K(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),K(),dc(e,t)},useId:function(){return H="useId",Pe(),K(),Cc()},unstable_isNewReconciler:se}}var Ei=M.unstable_now,Og=0,wc=-1,Cu=-1,Dc=-1,Pv=!1,_c=!1;function Ag(){return Pv}function c1(){_c=!0}function f1(){Pv=!1,_c=!1}function d1(){Pv=_c,_c=!1}function Ng(){return Og}function jg(){Og=Ei()}function Yv(e){Cu=Ei(),e.actualStartTime<0&&(e.actualStartTime=Ei())}function Ug(e){Cu=-1}function kc(e,t){if(Cu>=0){var n=Ei()-Cu;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Cu=-1}}function br(e){if(wc>=0){var t=Ei()-wc;wc=-1;for(var n=e.return;n!==null;){switch(n.tag){case ne:var a=n.stateNode;a.effectDuration+=t;return;case Ze:var r=n.stateNode;r.effectDuration+=t;return}n=n.return}}}function Iv(e){if(Dc>=0){var t=Ei()-Dc;Dc=-1;for(var n=e.return;n!==null;){switch(n.tag){case ne:var a=n.stateNode;a!==null&&(a.passiveEffectDuration+=t);return;case Ze:var r=n.stateNode;r!==null&&(r.passiveEffectDuration+=t);return}n=n.return}}}function Sr(){wc=Ei()}function Wv(){Dc=Ei()}function qv(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function er(e,t){if(e&&e.defaultProps){var n=xe({},t),a=e.defaultProps;for(var r in a)n[r]===void 0&&(n[r]=a[r]);return n}return t}var Gv={},Xv,Qv,Kv,Jv,Zv,Hg,Mc,ep,tp,np,xu;{Xv=new Set,Qv=new Set,Kv=new Set,Jv=new Set,ep=new Set,Zv=new Set,tp=new Set,np=new Set,xu=new Set;var zg=new Set;Mc=function(e,t){if(!(e===null||typeof e=="function")){var n=t+"_"+e;zg.has(n)||(zg.add(n),c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},Hg=function(e,t){if(t===void 0){var n=Tt(e)||"Component";Zv.has(n)||(Zv.add(n),c("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(Gv,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Gv)}function ap(e,t,n,a){var r=e.memoizedState,i=n(a,r);{if(e.mode&un){On(!0);try{i=n(a,r)}finally{On(!1)}}Hg(t,i)}var o=i==null?r:xe({},r,i);if(e.memoizedState=o,e.lanes===F){var l=e.updateQueue;l.baseState=o}}var rp={isMounted:aT,enqueueSetState:function(e,t,n){var a=go(e),r=sa(),i=wi(a),o=Wr(r,i);o.payload=t,n!=null&&(Mc(n,"setState"),o.callback=n);var l=gi(a,o,i);l!==null&&(Dn(l,a,i,r),ic(l,a,i)),jf(a,i)},enqueueReplaceState:function(e,t,n){var a=go(e),r=sa(),i=wi(a),o=Wr(r,i);o.tag=tg,o.payload=t,n!=null&&(Mc(n,"replaceState"),o.callback=n);var l=gi(a,o,i);l!==null&&(Dn(l,a,i,r),ic(l,a,i)),jf(a,i)},enqueueForceUpdate:function(e,t){var n=go(e),a=sa(),r=wi(n),i=Wr(a,r);i.tag=nc,t!=null&&(Mc(t,"forceUpdate"),i.callback=t);var o=gi(n,i,r);o!==null&&(Dn(o,n,r,a),ic(o,n,r)),NT(n,r)}};function Vg(e,t,n,a,r,i,o){var l=e.stateNode;if(typeof l.shouldComponentUpdate=="function"){var u=l.shouldComponentUpdate(a,i,o);{if(e.mode&un){On(!0);try{u=l.shouldComponentUpdate(a,i,o)}finally{On(!1)}}u===void 0&&c("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Tt(t)||"Component")}return u}return t.prototype&&t.prototype.isPureReactComponent?!Wl(n,a)||!Wl(r,i):!0}function v1(e,t,n){var a=e.stateNode;{var r=Tt(t)||"Component",i=a.render;i||(t.prototype&&typeof t.prototype.render=="function"?c("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",r):c("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",r)),a.getInitialState&&!a.getInitialState.isReactClassApproved&&!a.state&&c("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",r),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&c("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",r),a.propTypes&&c("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",r),a.contextType&&c("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",r),t.childContextTypes&&!xu.has(t)&&(e.mode&un)===Le&&(xu.add(t),c(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),t.contextTypes&&!xu.has(t)&&(e.mode&un)===Le&&(xu.add(t),c(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),a.contextTypes&&c("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",r),t.contextType&&t.contextTypes&&!tp.has(t)&&(tp.add(t),c("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",r)),typeof a.componentShouldUpdate=="function"&&c("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",r),t.prototype&&t.prototype.isPureReactComponent&&typeof a.shouldComponentUpdate<"u"&&c("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Tt(t)||"A pure component"),typeof a.componentDidUnmount=="function"&&c("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",r),typeof a.componentDidReceiveProps=="function"&&c("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",r),typeof a.componentWillRecieveProps=="function"&&c("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",r),typeof a.UNSAFE_componentWillRecieveProps=="function"&&c("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",r);var o=a.props!==n;a.props!==void 0&&o&&c("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",r,r),a.defaultProps&&c("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",r,r),typeof a.getSnapshotBeforeUpdate=="function"&&typeof a.componentDidUpdate!="function"&&!Kv.has(t)&&(Kv.add(t),c("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Tt(t))),typeof a.getDerivedStateFromProps=="function"&&c("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof a.getDerivedStateFromError=="function"&&c("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof t.getSnapshotBeforeUpdate=="function"&&c("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",r);var l=a.state;l&&(typeof l!="object"||rt(l))&&c("%s.state: must be set to an object or null",r),typeof a.getChildContext=="function"&&typeof t.childContextTypes!="object"&&c("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",r)}}function Fg(e,t){t.updater=rp,e.stateNode=t,Z0(t,e),t._reactInternalInstance=Gv}function Bg(e,t,n){var a=!1,r=_a,i=_a,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===h&&o._context===void 0;if(!l&&!np.has(t)){np.add(t);var u="";o===void 0?u=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof o!="object"?u=" However, it is set to a "+typeof o+".":o.$$typeof===Dr?u=" Did you accidentally pass the Context.Provider instead?":o._context!==void 0?u=" Did you accidentally pass the Context.Consumer instead?":u=" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",c("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Tt(t)||"Component",u)}}if(typeof o=="object"&&o!==null)i=mn(o);else{r=Ho(e,t,!0);var f=t.contextTypes;a=f!=null,i=a?zo(e,r):_a}var d=new t(n,i);if(e.mode&un){On(!0);try{d=new t(n,i)}finally{On(!1)}}var g=e.memoizedState=d.state!==null&&d.state!==void 0?d.state:null;Fg(e,d);{if(typeof t.getDerivedStateFromProps=="function"&&g===null){var y=Tt(t)||"Component";Qv.has(y)||(Qv.add(y),c("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",y,d.state===null?"null":"undefined",y))}if(typeof t.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"){var w=null,_=null,N=null;if(typeof d.componentWillMount=="function"&&d.componentWillMount.__suppressDeprecationWarning!==!0?w="componentWillMount":typeof d.UNSAFE_componentWillMount=="function"&&(w="UNSAFE_componentWillMount"),typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps.__suppressDeprecationWarning!==!0?_="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps=="function"&&(_="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate=="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?N="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate=="function"&&(N="UNSAFE_componentWillUpdate"),w!==null||_!==null||N!==null){var te=Tt(t)||"Component",ke=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";Jv.has(te)||(Jv.add(te),c(`Unsafe legacy lifecycles will not be called for components using new component APIs.
%s uses %s but also contains the following legacy lifecycles:%s%s%s
The above lifecycles should be removed. Learn more about this warning here:
https://reactjs.org/link/unsafe-component-lifecycles`,te,ke,w!==null?`
`+w:"",_!==null?`
`+_:"",N!==null?`
`+N:""))}}}return a&&My(e,r,i),d}function p1(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(c("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Ge(e)||"Component"),rp.enqueueReplaceState(t,t.state,null))}function $g(e,t,n,a){var r=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==r){{var i=Ge(e)||"Component";Xv.has(i)||(Xv.add(i),c("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i))}rp.enqueueReplaceState(t,t.state,null)}}function ip(e,t,n,a){v1(e,t,n);var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},pv(e);var i=t.contextType;if(typeof i=="object"&&i!==null)r.context=mn(i);else{var o=Ho(e,t,!0);r.context=zo(e,o)}{if(r.state===n){var l=Tt(t)||"Component";ep.has(l)||(ep.add(l),c("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",l))}e.mode&un&&Ka.recordLegacyContextWarning(e,r),Ka.recordUnsafeLifecycleWarnings(e,r)}r.state=e.memoizedState;var u=t.getDerivedStateFromProps;if(typeof u=="function"&&(ap(e,t,u,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof r.getSnapshotBeforeUpdate!="function"&&(typeof r.UNSAFE_componentWillMount=="function"||typeof r.componentWillMount=="function")&&(p1(e,r),oc(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var f=Et;f|=Hi,(e.mode&dr)!==Le&&(f|=oi),e.flags|=f}}function m1(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=_a;if(typeof l=="object"&&l!==null)u=mn(l);else{var f=Ho(e,t,!0);u=zo(e,f)}var d=t.getDerivedStateFromProps,g=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function";!g&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&$g(e,r,n,u),ag();var y=e.memoizedState,w=r.state=y;if(oc(e,n,r,a),w=e.memoizedState,i===n&&y===w&&!Bs()&&!lc()){if(typeof r.componentDidMount=="function"){var _=Et;_|=Hi,(e.mode&dr)!==Le&&(_|=oi),e.flags|=_}return!1}typeof d=="function"&&(ap(e,t,d,n),w=e.memoizedState);var N=lc()||Vg(e,t,i,n,y,w,u);if(N){if(!g&&(typeof r.UNSAFE_componentWillMount=="function"||typeof r.componentWillMount=="function")&&(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"){var te=Et;te|=Hi,(e.mode&dr)!==Le&&(te|=oi),e.flags|=te}}else{if(typeof r.componentDidMount=="function"){var ke=Et;ke|=Hi,(e.mode&dr)!==Le&&(ke|=oi),e.flags|=ke}e.memoizedProps=n,e.memoizedState=w}return r.props=n,r.state=w,r.context=u,N}function h1(e,t,n,a,r){var i=t.stateNode;ng(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:er(t.type,o);i.props=l;var u=t.pendingProps,f=i.context,d=n.contextType,g=_a;if(typeof d=="object"&&d!==null)g=mn(d);else{var y=Ho(t,n,!0);g=zo(t,y)}var w=n.getDerivedStateFromProps,_=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function";!_&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||f!==g)&&$g(t,i,a,g),ag();var N=t.memoizedState,te=i.state=N;if(oc(t,a,i,r),te=t.memoizedState,o===u&&N===te&&!Bs()&&!lc()&&!Ke)return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=Et),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=So),!1;typeof w=="function"&&(ap(t,n,w,a),te=t.memoizedState);var ke=lc()||Vg(t,n,l,a,N,te,g)||Ke;return ke?(!_&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,te,g),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,te,g)),typeof i.componentDidUpdate=="function"&&(t.flags|=Et),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=So)):(typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=Et),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=So),t.memoizedProps=a,t.memoizedState=te),i.props=a,i.state=te,i.context=g,ke}function to(e,t){return{value:e,source:t,stack:Ia(t),digest:null}}function op(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function y1(e,t){return!0}function lp(e,t){try{var n=y1(e,t);if(n===!1)return;var a=t.value,r=t.source,i=t.stack,o=i!==null?i:"";if(a!=null&&a._suppressLogging){if(e.tag===pe)return;console.error(a)}var l=r?Ge(r):null,u=l?"The above error occurred in the <"+l+"> component:":"The above error occurred in one of your React components:",f;if(e.tag===ne)f=`Consider adding an error boundary to your tree to customize error handling behavior.
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var d=Ge(e)||"Anonymous";f="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+d+".")}var g=u+`
`+o+`
`+(""+f);console.error(g)}catch(y){setTimeout(function(){throw y})}}var g1=typeof WeakMap=="function"?WeakMap:Map;function Pg(e,t,n){var a=Wr(Wt,n);a.tag=dv,a.payload={element:null};var r=t.value;return a.callback=function(){cD(r),lp(e,t)},a}function up(e,t,n){var a=Wr(Wt,n);a.tag=dv;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;a.payload=function(){return r(i)},a.callback=function(){eS(e),lp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(a.callback=function(){eS(e),lp(e,t),typeof r!="function"&&uD(this);var u=t.value,f=t.stack;this.componentDidCatch(u,{componentStack:f!==null?f:""}),typeof r!="function"&&(xa(e.lanes,$e)||c("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Ge(e)||"Unknown"))}),a}function Yg(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new g1,r=new Set,a.set(t,r)):(r=a.get(t),r===void 0&&(r=new Set,a.set(t,r))),!r.has(n)){r.add(n);var i=fD.bind(null,e,t,n);qa&&Bu(e,n),t.then(i,i)}}function b1(e,t,n,a){var r=e.updateQueue;if(r===null){var i=new Set;i.add(n),e.updateQueue=i}else r.add(n)}function S1(e,t){var n=e.tag;if((e.mode&st)===Le&&(n===de||n===De||n===I)){var a=e.alternate;a?(e.updateQueue=a.updateQueue,e.memoizedState=a.memoizedState,e.lanes=a.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Ig(e){var t=e;do{if(t.tag===O&&e1(t))return t;t=t.return}while(t!==null);return null}function Wg(e,t,n,a,r){if((e.mode&st)===Le){if(e===t)e.flags|=oa;else{if(e.flags|=Ct,n.flags|=Df,n.flags&=-52805,n.tag===pe){var i=n.alternate;if(i===null)n.tag=Xe;else{var o=Wr(Wt,$e);o.tag=nc,gi(n,o,$e)}}n.lanes=Je(n.lanes,$e)}return e}return e.flags|=oa,e.lanes=r,e}function T1(e,t,n,a,r){if(n.flags|=is,qa&&Bu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;S1(n),Vn()&&n.mode&st&&Hy();var o=Ig(t);if(o!==null){o.flags&=~jr,Wg(o,t,n,e,r),o.mode&st&&Yg(e,i,r),b1(o,e,i);return}else{if(!PT(r)){Yg(e,i,r),Bp();return}var l=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");a=l}}else if(Vn()&&n.mode&st){Hy();var u=Ig(t);if(u!==null){(u.flags&oa)===He&&(u.flags|=jr),Wg(u,t,n,e,r),ev(to(a,n));return}}a=to(a,n),eD(a);var f=t;do{switch(f.tag){case ne:{var d=a;f.flags|=oa;var g=Ll(r);f.lanes=Je(f.lanes,g);var y=Pg(f,d,g);mv(f,y);return}case pe:var w=a,_=f.type,N=f.stateNode;if((f.flags&Ct)===He&&(typeof _.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&!Ib(N))){f.flags|=oa;var te=Ll(r);f.lanes=Je(f.lanes,te);var ke=up(f,w,te);mv(f,ke);return}break}f=f.return}while(f!==null)}function E1(){return null}var Ru=J.ReactCurrentOwner,tr=!1,sp,wu,cp,fp,dp,no,vp,Lc,Du;sp={},wu={},cp={},fp={},dp={},no=!1,vp={},Lc={},Du={};function la(e,t,n,a){e===null?t.child=Xy(t,null,n,a):t.child=$o(t,e.child,n,a)}function C1(e,t,n,a){t.child=$o(t,e.child,null,a),t.child=$o(t,null,n,a)}function qg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Xa(i,a,"prop",Tt(n))}var o=n.render,l=t.ref,u,f;Yo(t,r),Rl(t);{if(Ru.current=t,Na(!0),u=Qo(e,t,o,a,l,r),f=Ko(),t.mode&un){On(!0);try{u=Qo(e,t,o,a,l,r),f=Ko()}finally{On(!1)}}Na(!1)}return Co(),e!==null&&!tr?(sg(e,t,r),qr(e,t,r)):(Vn()&&f&&Gd(t),t.flags|=bo,la(e,t,u,r),t.child)}function Gg(e,t,n,a,r){if(e===null){var i=n.type;if(_D(i)&&n.compare===null&&n.defaultProps===void 0){var o=i;return o=il(i),t.tag=I,t.type=o,hp(t,i),Xg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Xa(l,a,"prop",Tt(i)),n.defaultProps!==void 0){var u=Tt(i)||"Unknown";Du[u]||(c("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),Du[u]=!0)}}var f=Jp(n.type,null,a,t,t.mode,r);return f.ref=t.ref,f.return=t,t.child=f,f}{var d=n.type,g=d.propTypes;g&&Xa(g,a,"prop",Tt(d))}var y=e.child,w=Ep(e,r);if(!w){var _=y.memoizedProps,N=n.compare;if(N=N!==null?N:Wl,N(_,a)&&e.ref===t.ref)return qr(e,t,r)}t.flags|=bo;var te=lo(y,a);return te.ref=t.ref,te.return=t,t.child=te,te}function Xg(e,t,n,a,r){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===p){var o=i,l=o._payload,u=o._init;try{i=u(l)}catch{i=null}var f=i&&i.propTypes;f&&Xa(f,a,"prop",Tt(i))}}if(e!==null){var d=e.memoizedProps;if(Wl(d,a)&&e.ref===t.ref&&t.type===e.type)if(tr=!1,t.pendingProps=a=d,Ep(e,r))(e.flags&Df)!==He&&(tr=!0);else return t.lanes=e.lanes,qr(e,t,r)}return pp(e,t,n,a,r)}function Qg(e,t,n){var a=t.pendingProps,r=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"||Te)if((t.mode&st)===Le){var o={baseLanes:F,cachePool:null,transitions:null};t.memoizedState=o,Yc(t,n)}else if(xa(n,Ca)){var g={baseLanes:F,cachePool:null,transitions:null};t.memoizedState=g;var y=i!==null?i.baseLanes:n;Yc(t,y)}else{var l=null,u;if(i!==null){var f=i.baseLanes;u=Je(f,n)}else u=n;t.lanes=t.childLanes=Ca;var d={baseLanes:u,cachePool:l,transitions:null};return t.memoizedState=d,t.updateQueue=null,Yc(t,u),null}else{var w;i!==null?(w=Je(i.baseLanes,n),t.memoizedState=null):w=n,Yc(t,w)}return la(e,t,r,n),t.child}function x1(e,t,n){var a=t.pendingProps;return la(e,t,a,n),t.child}function R1(e,t,n){var a=t.pendingProps.children;return la(e,t,a,n),t.child}function w1(e,t,n){{t.flags|=Et;{var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0}}var r=t.pendingProps,i=r.children;return la(e,t,i,n),t.child}function Kg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=ji,t.flags|=_f)}function pp(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Xa(i,a,"prop",Tt(n))}var o;{var l=Ho(t,n,!0);o=zo(t,l)}var u,f;Yo(t,r),Rl(t);{if(Ru.current=t,Na(!0),u=Qo(e,t,n,a,o,r),f=Ko(),t.mode&un){On(!0);try{u=Qo(e,t,n,a,o,r),f=Ko()}finally{On(!1)}}Na(!1)}return Co(),e!==null&&!tr?(sg(e,t,r),qr(e,t,r)):(Vn()&&f&&Gd(t),t.flags|=bo,la(e,t,u,r),t.child)}function Jg(e,t,n,a,r){{switch(PD(t)){case!1:{var i=t.stateNode,o=t.type,l=new o(t.memoizedProps,i.context),u=l.state;i.updater.enqueueSetState(i,u,null);break}case!0:{t.flags|=Ct,t.flags|=oa;var f=new Error("Simulated error coming from DevTools"),d=Ll(r);t.lanes=Je(t.lanes,d);var g=up(t,to(f,t),d);mv(t,g);break}}if(t.type!==t.elementType){var y=n.propTypes;y&&Xa(y,a,"prop",Tt(n))}}var w;mr(n)?(w=!0,Ps(t)):w=!1,Yo(t,r);var _=t.stateNode,N;_===null?(Ac(e,t),Bg(t,n,a),ip(t,n,a,r),N=!0):e===null?N=m1(t,n,a,r):N=h1(e,t,n,a,r);var te=mp(e,t,n,N,w,r);{var ke=t.stateNode;N&&ke.props!==a&&(no||c("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Ge(t)||"a component"),no=!0)}return te}function mp(e,t,n,a,r,i){Kg(e,t);var o=(t.flags&Ct)!==He;if(!a&&!o)return r&&Ay(t,n,!1),qr(e,t,i);var l=t.stateNode;Ru.current=t;var u;if(o&&typeof n.getDerivedStateFromError!="function")u=null,Ug();else{Rl(t);{if(Na(!0),u=l.render(),t.mode&un){On(!0);try{l.render()}finally{On(!1)}}Na(!1)}Co()}return t.flags|=bo,e!==null&&o?C1(e,t,u,i):la(e,t,u,i),t.memoizedState=l.state,r&&Ay(t,n,!0),t.child}function Zg(e){var t=e.stateNode;t.pendingContext?Ly(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ly(e,t.context,!1),hv(e,t.containerInfo)}function D1(e,t,n){if(Zg(t),e===null)throw new Error("Should have a current fiber. This is a bug in React.");var a=t.pendingProps,r=t.memoizedState,i=r.element;ng(e,t),oc(t,a,null,n);var o=t.memoizedState;t.stateNode;var l=o.element;if(r.isDehydrated){var u={element:l,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},f=t.updateQueue;if(f.baseState=u,t.memoizedState=u,t.flags&jr){var d=to(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),t);return eb(e,t,l,n,d)}else if(l!==i){var g=to(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return eb(e,t,l,n,g)}else{MR(t);var y=Xy(t,null,l,n);t.child=y;for(var w=y;w;)w.flags=w.flags&~pn|Ur,w=w.sibling}}else{if(Bo(),l===i)return qr(e,t,n);la(e,t,l,n)}return t.child}function eb(e,t,n,a,r){return Bo(),ev(r),t.flags|=jr,la(e,t,n,a),t.child}function _1(e,t,n){og(t),e===null&&Zd(t);var a=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,o=r.children,l=Nd(a,r);return l?o=null:i!==null&&Nd(a,i)&&(t.flags|=Cl),Kg(e,t),la(e,t,o,n),t.child}function k1(e,t){return e===null&&Zd(t),null}function M1(e,t,n,a){Ac(e,t);var r=t.pendingProps,i=n,o=i._payload,l=i._init,u=l(o);t.type=u;var f=t.tag=kD(u),d=er(u,r),g;switch(f){case de:return hp(t,u),t.type=u=il(u),g=pp(null,t,u,d,a),g;case pe:return t.type=u=Wp(u),g=Jg(null,t,u,d,a),g;case De:return t.type=u=qp(u),g=qg(null,t,u,d,a),g;case Qe:{if(t.type!==t.elementType){var y=u.propTypes;y&&Xa(y,d,"prop",Tt(u))}return g=Gg(null,t,u,er(u.type,d),a),g}}var w="";throw u!==null&&typeof u=="object"&&u.$$typeof===p&&(w=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+u+". "+("Lazy element type must resolve to a class or function."+w))}function L1(e,t,n,a,r){Ac(e,t),t.tag=pe;var i;return mr(n)?(i=!0,Ps(t)):i=!1,Yo(t,r),Bg(t,n,a),ip(t,n,a,r),mp(null,t,n,!0,i,r)}function O1(e,t,n,a){Ac(e,t);var r=t.pendingProps,i;{var o=Ho(t,n,!1);i=zo(t,o)}Yo(t,a);var l,u;Rl(t);{if(n.prototype&&typeof n.prototype.render=="function"){var f=Tt(n)||"Unknown";sp[f]||(c("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",f,f),sp[f]=!0)}t.mode&un&&Ka.recordLegacyContextWarning(t,null),Na(!0),Ru.current=t,l=Qo(null,t,n,r,i,a),u=Ko(),Na(!1)}if(Co(),t.flags|=bo,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var d=Tt(n)||"Unknown";wu[d]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",d,d,d),wu[d]=!0)}if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){{var g=Tt(n)||"Unknown";wu[g]||(c("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",g,g,g),wu[g]=!0)}t.tag=pe,t.memoizedState=null,t.updateQueue=null;var y=!1;return mr(n)?(y=!0,Ps(t)):y=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,pv(t),Fg(t,l),ip(t,n,r,a),mp(null,t,n,!0,y,a)}else{if(t.tag=de,t.mode&un){On(!0);try{l=Qo(null,t,n,r,i,a),u=Ko()}finally{On(!1)}}return Vn()&&u&&Gd(t),la(null,t,l,a),hp(t,n),t.child}}function hp(e,t){{if(t&&t.childContextTypes&&c("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var n="",a=ai();a&&(n+=`
Check the render method of \``+a+"`.");var r=a||"",i=e._debugSource;i&&(r=i.fileName+":"+i.lineNumber),dp[r]||(dp[r]=!0,c("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(t.defaultProps!==void 0){var o=Tt(t)||"Unknown";Du[o]||(c("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),Du[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=Tt(t)||"Unknown";fp[l]||(c("%s: Function components do not support getDerivedStateFromProps.",l),fp[l]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=Tt(t)||"Unknown";cp[u]||(c("%s: Function components do not support contextType.",u),cp[u]=!0)}}}var yp={dehydrated:null,treeContext:null,retryLane:An};function gp(e){return{baseLanes:e,cachePool:E1(),transitions:null}}function A1(e,t){var n=null;return{baseLanes:Je(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function N1(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return bv(e,hu)}function j1(e,t){return ds(e.childLanes,t)}function tb(e,t,n){var a=t.pendingProps;YD(t)&&(t.flags|=Ct);var r=Ja.current,i=!1,o=(t.flags&Ct)!==He;if(o||N1(r,e)?(i=!0,t.flags&=~Ct):(e===null||e.memoizedState!==null)&&(r=ZR(r,ug)),r=Wo(r),Si(t,r),e===null){Zd(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return F1(t,u)}var f=a.children,d=a.fallback;if(i){var g=U1(t,f,d,n),y=t.child;return y.memoizedState=gp(n),t.memoizedState=yp,g}else return bp(t,f)}else{var w=e.memoizedState;if(w!==null){var _=w.dehydrated;if(_!==null)return B1(e,t,o,a,_,w,n)}if(i){var N=a.fallback,te=a.children,ke=z1(e,t,te,N,n),Re=t.child,ft=e.child.memoizedState;return Re.memoizedState=ft===null?gp(n):A1(ft,n),Re.childLanes=j1(e,n),t.memoizedState=yp,ke}else{var it=a.children,C=H1(e,t,it,n);return t.memoizedState=null,C}}}function bp(e,t,n){var a=e.mode,r={mode:"visible",children:t},i=Sp(r,a);return i.return=e,e.child=i,i}function U1(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&st)===Le&&i!==null?(l=i,l.childLanes=F,l.pendingProps=o,e.mode&At&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=_i(n,r,a,null)):(l=Sp(o,r),u=_i(n,r,a,null)),l.return=e,u.return=e,l.sibling=u,e.child=l,u}function Sp(e,t,n){return nS(e,t,F,null)}function nb(e,t){return lo(e,t)}function H1(e,t,n,a){var r=e.child,i=r.sibling,o=nb(r,{mode:"visible",children:n});if((t.mode&st)===Le&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=Ni):l.push(i)}return t.child=o,o}function z1(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},f;if((i&st)===Le&&t.child!==o){var d=t.child;f=d,f.childLanes=F,f.pendingProps=u,t.mode&At&&(f.actualDuration=0,f.actualStartTime=-1,f.selfBaseDuration=o.selfBaseDuration,f.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else f=nb(o,u),f.subtreeFlags=o.subtreeFlags&Hr;var g;return l!==null?g=lo(l,a):(g=_i(a,i,r,null),g.flags|=pn),g.return=t,f.return=t,f.sibling=g,t.child=f,g}function Oc(e,t,n,a){a!==null&&ev(a),$o(t,e.child,null,n);var r=t.pendingProps,i=r.children,o=bp(t,i);return o.flags|=pn,t.memoizedState=null,o}function V1(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Sp(o,i),u=_i(a,i,r,null);return u.flags|=pn,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&st)!==Le&&$o(t,e.child,null,r),u}function F1(e,t,n){return(e.mode&st)===Le?(c("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=$e):zd(t)?e.lanes=Fi:e.lanes=Ca,null}function B1(e,t,n,a,r,i,o){if(n)if(t.flags&jr){t.flags&=~jr;var C=op(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Oc(e,t,o,C)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=Ct,null;var j=a.children,x=a.fallback,B=V1(e,t,j,x,o),ce=t.child;return ce.memoizedState=gp(o),t.memoizedState=yp,B}else{if(_R(),(t.mode&st)===Le)return Oc(e,t,o,null);if(zd(r)){var l,u,f;{var d=Ix(r);l=d.digest,u=d.message,f=d.stack}var g;u?g=new Error(u):g=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var y=op(g,l,f);return Oc(e,t,o,y)}var w=xa(o,e.childLanes);if(tr||w){var _=Pc();if(_!==null){var N=KT(_,o);if(N!==An&&N!==i.retryLane){i.retryLane=N;var te=Wt;ya(e,N),Dn(_,e,N,te)}}Bp();var ke=op(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return Oc(e,t,o,ke)}else if(Ry(r)){t.flags|=Ct,t.child=e.child;var Re=dD.bind(null,e);return Wx(r,Re),null}else{LR(t,r,i.treeContext);var ft=a.children,it=bp(t,ft);return it.flags|=Ur,it}}}function ab(e,t,n){e.lanes=Je(e.lanes,t);var a=e.alternate;a!==null&&(a.lanes=Je(a.lanes,t)),cv(e.return,t,n)}function $1(e,t,n){for(var a=t;a!==null;){if(a.tag===O){var r=a.memoizedState;r!==null&&ab(a,n,e)}else if(a.tag===Vt)ab(a,n,e);else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===e)return;for(;a.sibling===null;){if(a.return===null||a.return===e)return;a=a.return}a.sibling.return=a.return,a=a.sibling}}function P1(e){for(var t=e,n=null;t!==null;){var a=t.alternate;a!==null&&cc(a)===null&&(n=t),t=t.sibling}return n}function Y1(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!vp[e])if(vp[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{c('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:c('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else c('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function I1(e,t){e!==void 0&&!Lc[e]&&(e!=="collapsed"&&e!=="hidden"?(Lc[e]=!0,c('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Lc[e]=!0,c('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function rb(e,t){{var n=rt(e),a=!n&&typeof Se(e)=="function";if(n||a){var r=n?"array":"iterable";return c("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",r,t,r),!1}}return!0}function W1(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(rt(e)){for(var n=0;n<e.length;n++)if(!rb(e[n],n))return}else{var a=Se(e);if(typeof a=="function"){var r=a.call(e);if(r)for(var i=r.next(),o=0;!i.done;i=r.next()){if(!rb(i.value,o))return;o++}}else c('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function Tp(e,t,n,a,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=r)}function ib(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail,o=a.children;Y1(r),I1(i,r),W1(o,r),la(e,t,o,n);var l=Ja.current,u=bv(l,hu);if(u)l=Sv(l,hu),t.flags|=Ct;else{var f=e!==null&&(e.flags&Ct)!==He;f&&$1(t,t.child,n),l=Wo(l)}if(Si(t,l),(t.mode&st)===Le)t.memoizedState=null;else switch(r){case"forwards":{var d=P1(t.child),g;d===null?(g=t.child,t.child=null):(g=d.sibling,d.sibling=null),Tp(t,!1,g,d,i);break}case"backwards":{var y=null,w=t.child;for(t.child=null;w!==null;){var _=w.alternate;if(_!==null&&cc(_)===null){t.child=w;break}var N=w.sibling;w.sibling=y,y=w,w=N}Tp(t,!0,y,null,i);break}case"together":{Tp(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function q1(e,t,n){hv(t,t.stateNode.containerInfo);var a=t.pendingProps;return e===null?t.child=$o(t,null,a,n):la(e,t,a,n),t.child}var ob=!1;function G1(e,t,n){var a=t.type,r=a._context,i=t.pendingProps,o=t.memoizedProps,l=i.value;{"value"in i||ob||(ob=!0,c("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var u=t.type.propTypes;u&&Xa(u,i,"prop","Context.Provider")}if(Jy(t,r,l),o!==null){var f=o.value;if(Da(f,l)){if(o.children===i.children&&!Bs())return qr(e,t,n)}else YR(t,r,n)}var d=i.children;return la(e,t,d,n),t.child}var lb=!1;function X1(e,t,n){var a=t.type;a._context===void 0?a!==a.Consumer&&(lb||(lb=!0,c("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):a=a._context;var r=t.pendingProps,i=r.children;typeof i!="function"&&c("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Yo(t,n);var o=mn(a);Rl(t);var l;return Ru.current=t,Na(!0),l=i(o),Na(!1),Co(),t.flags|=bo,la(e,t,l,n),t.child}function _u(){tr=!0}function Ac(e,t){(t.mode&st)===Le&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=pn)}function qr(e,t,n){return e!==null&&(t.dependencies=e.dependencies),Ug(),Fu(t.lanes),xa(n,t.childLanes)?($R(e,t),t.child):null}function Q1(e,t,n){{var a=t.return;if(a===null)throw new Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,t===a.child)a.child=n;else{var r=a.child;if(r===null)throw new Error("Expected parent to have a child.");for(;r.sibling!==t;)if(r=r.sibling,r===null)throw new Error("Expected to find the previous sibling.");r.sibling=n}var i=a.deletions;return i===null?(a.deletions=[e],a.flags|=Ni):i.push(e),n.flags|=pn,n}}function Ep(e,t){var n=e.lanes;return!!xa(n,t)}function K1(e,t,n){switch(t.tag){case ne:Zg(t),t.stateNode,Bo();break;case ae:og(t);break;case pe:{var a=t.type;mr(a)&&Ps(t);break}case je:hv(t,t.stateNode.containerInfo);break;case Fe:{var r=t.memoizedProps.value,i=t.type._context;Jy(t,i,r);break}case Ze:{var o=xa(n,t.childLanes);o&&(t.flags|=Et);{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}break;case O:{var u=t.memoizedState;if(u!==null){if(u.dehydrated!==null)return Si(t,Wo(Ja.current)),t.flags|=Ct,null;var f=t.child,d=f.childLanes;if(xa(n,d))return tb(e,t,n);Si(t,Wo(Ja.current));var g=qr(e,t,n);return g!==null?g.sibling:null}else Si(t,Wo(Ja.current));break}case Vt:{var y=(e.flags&Ct)!==He,w=xa(n,t.childLanes);if(y){if(w)return ib(e,t,n);t.flags|=Ct}var _=t.memoizedState;if(_!==null&&(_.rendering=null,_.tail=null,_.lastEffect=null),Si(t,Ja.current),w)break;return null}case G:case et:return t.lanes=F,Qg(e,t,n)}return qr(e,t,n)}function ub(e,t,n){if(t._debugNeedsRemount&&e!==null)return Q1(e,t,Jp(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes));if(e!==null){var a=e.memoizedProps,r=t.pendingProps;if(a!==r||Bs()||t.type!==e.type)tr=!0;else{var i=Ep(e,n);if(!i&&(t.flags&Ct)===He)return tr=!1,K1(e,t,n);(e.flags&Df)!==He?tr=!0:tr=!1}}else if(tr=!1,Vn()&&ER(t)){var o=t.index,l=CR();Uy(t,l,o)}switch(t.lanes=F,t.tag){case dt:return O1(e,t,t.type,n);case Gt:{var u=t.elementType;return M1(e,t,u,n)}case de:{var f=t.type,d=t.pendingProps,g=t.elementType===f?d:er(f,d);return pp(e,t,f,g,n)}case pe:{var y=t.type,w=t.pendingProps,_=t.elementType===y?w:er(y,w);return Jg(e,t,y,_,n)}case ne:return D1(e,t,n);case ae:return _1(e,t,n);case me:return k1(e,t);case O:return tb(e,t,n);case je:return q1(e,t,n);case De:{var N=t.type,te=t.pendingProps,ke=t.elementType===N?te:er(N,te);return qg(e,t,N,ke,n)}case re:return x1(e,t,n);case qt:return R1(e,t,n);case Ze:return w1(e,t,n);case Fe:return G1(e,t,n);case yt:return X1(e,t,n);case Qe:{var Re=t.type,ft=t.pendingProps,it=er(Re,ft);if(t.type!==t.elementType){var C=Re.propTypes;C&&Xa(C,it,"prop",Tt(Re))}return it=er(Re.type,it),Gg(e,t,Re,it,n)}case I:return Xg(e,t,t.type,t.pendingProps,n);case Xe:{var j=t.type,x=t.pendingProps,B=t.elementType===j?x:er(j,x);return L1(e,t,j,B,n)}case Vt:return ib(e,t,n);case Ce:break;case G:return Qg(e,t,n)}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Jo(e){e.flags|=Et}function sb(e){e.flags|=ji,e.flags|=_f}var cb,Cp,fb,db;cb=function(e,t,n,a){for(var r=t.child;r!==null;){if(r.tag===ae||r.tag===me)bx(e,r.stateNode);else if(r.tag!==je){if(r.child!==null){r.child.return=r,r=r.child;continue}}if(r===t)return;for(;r.sibling===null;){if(r.return===null||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Cp=function(e,t){},fb=function(e,t,n,a,r){var i=e.memoizedProps;if(i!==a){var o=t.stateNode,l=yv(),u=Tx(o,n,i,a,r,l);t.updateQueue=u,u&&Jo(t)}},db=function(e,t,n,a){n!==a&&Jo(t)};function ku(e,t){if(!Vn())switch(e.tailMode){case"hidden":{for(var n=e.tail,a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?e.tail=null:a.sibling=null;break}case"collapsed":{for(var r=e.tail,i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?!t&&e.tail!==null?e.tail.sibling=null:e.tail=null:i.sibling=null;break}}}function Bn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=F,a=He;if(t){if((e.mode&At)!==Le){for(var u=e.selfBaseDuration,f=e.child;f!==null;)n=Je(n,Je(f.lanes,f.childLanes)),a|=f.subtreeFlags&Hr,a|=f.flags&Hr,u+=f.treeBaseDuration,f=f.sibling;e.treeBaseDuration=u}else for(var d=e.child;d!==null;)n=Je(n,Je(d.lanes,d.childLanes)),a|=d.subtreeFlags&Hr,a|=d.flags&Hr,d.return=e,d=d.sibling;e.subtreeFlags|=a}else{if((e.mode&At)!==Le){for(var r=e.actualDuration,i=e.selfBaseDuration,o=e.child;o!==null;)n=Je(n,Je(o.lanes,o.childLanes)),a|=o.subtreeFlags,a|=o.flags,r+=o.actualDuration,i+=o.treeBaseDuration,o=o.sibling;e.actualDuration=r,e.treeBaseDuration=i}else for(var l=e.child;l!==null;)n=Je(n,Je(l.lanes,l.childLanes)),a|=l.subtreeFlags,a|=l.flags,l.return=e,l=l.sibling;e.subtreeFlags|=a}return e.childLanes=n,t}function J1(e,t,n){if(UR()&&(t.mode&st)!==Le&&(t.flags&Ct)===He)return Py(t),Bo(),t.flags|=jr|is|oa,!1;var a=Gs(t);if(n!==null&&n.dehydrated!==null)if(e===null){if(!a)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(NR(t),Bn(t),(t.mode&At)!==Le){var r=n!==null;if(r){var i=t.child;i!==null&&(t.treeBaseDuration-=i.treeBaseDuration)}}return!1}else{if(Bo(),(t.flags&Ct)===He&&(t.memoizedState=null),t.flags|=Et,Bn(t),(t.mode&At)!==Le){var o=n!==null;if(o){var l=t.child;l!==null&&(t.treeBaseDuration-=l.treeBaseDuration)}}return!1}else return Yy(),!0}function vb(e,t,n){var a=t.pendingProps;switch(Xd(t),t.tag){case dt:case Gt:case I:case de:case De:case re:case qt:case Ze:case yt:case Qe:return Bn(t),null;case pe:{var r=t.type;return mr(r)&&$s(t),Bn(t),null}case ne:{var i=t.stateNode;if(Io(t),Id(t),Ev(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e===null||e.child===null){var o=Gs(t);if(o)Jo(t);else if(e!==null){var l=e.memoizedState;(!l.isDehydrated||(t.flags&jr)!==He)&&(t.flags|=So,Yy())}}return Cp(e,t),Bn(t),null}case ae:{gv(t);var u=ig(),f=t.type;if(e!==null&&t.stateNode!=null)fb(e,t,f,a,u),e.ref!==t.ref&&sb(t);else{if(!a){if(t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Bn(t),null}var d=yv(),g=Gs(t);if(g)OR(t,u,d)&&Jo(t);else{var y=gx(f,a,u,d,t);cb(y,t,!1,!1),t.stateNode=y,Sx(y,f,a,u)&&Jo(t)}t.ref!==null&&sb(t)}return Bn(t),null}case me:{var w=a;if(e&&t.stateNode!=null){var _=e.memoizedProps;db(e,t,_,w)}else{if(typeof w!="string"&&t.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var N=ig(),te=yv(),ke=Gs(t);ke?AR(t)&&Jo(t):t.stateNode=Ex(w,N,te,t)}return Bn(t),null}case O:{qo(t);var Re=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var ft=J1(e,t,Re);if(!ft)return t.flags&oa?t:null}if((t.flags&Ct)!==He)return t.lanes=n,(t.mode&At)!==Le&&qv(t),t;var it=Re!==null,C=e!==null&&e.memoizedState!==null;if(it!==C&&it){var j=t.child;if(j.flags|=Ui,(t.mode&st)!==Le){var x=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);x||bv(Ja.current,ug)?Zw():Bp()}}var B=t.updateQueue;if(B!==null&&(t.flags|=Et),Bn(t),(t.mode&At)!==Le&&it){var ce=t.child;ce!==null&&(t.treeBaseDuration-=ce.treeBaseDuration)}return null}case je:return Io(t),Cp(e,t),e===null&&mR(t.stateNode.containerInfo),Bn(t),null;case Fe:var ie=t.type._context;return sv(ie,t),Bn(t),null;case Xe:{var ze=t.type;return mr(ze)&&$s(t),Bn(t),null}case Vt:{qo(t);var Ie=t.memoizedState;if(Ie===null)return Bn(t),null;var jt=(t.flags&Ct)!==He,gt=Ie.rendering;if(gt===null)if(jt)ku(Ie,!1);else{var fn=tD()&&(e===null||(e.flags&Ct)===He);if(!fn)for(var bt=t.child;bt!==null;){var sn=cc(bt);if(sn!==null){jt=!0,t.flags|=Ct,ku(Ie,!1);var Jn=sn.updateQueue;return Jn!==null&&(t.updateQueue=Jn,t.flags|=Et),t.subtreeFlags=He,PR(t,n),Si(t,Sv(Ja.current,hu)),t.child}bt=bt.sibling}Ie.tail!==null&&Ln()>Nb()&&(t.flags|=Ct,jt=!0,ku(Ie,!1),t.lanes=dh)}else{if(!jt){var Wn=cc(gt);if(Wn!==null){t.flags|=Ct,jt=!0;var Ma=Wn.updateQueue;if(Ma!==null&&(t.updateQueue=Ma,t.flags|=Et),ku(Ie,!0),Ie.tail===null&&Ie.tailMode==="hidden"&&!gt.alternate&&!Vn())return Bn(t),null}else Ln()*2-Ie.renderingStartTime>Nb()&&n!==Ca&&(t.flags|=Ct,jt=!0,ku(Ie,!1),t.lanes=dh)}if(Ie.isBackwards)gt.sibling=t.child,t.child=gt;else{var ca=Ie.last;ca!==null?ca.sibling=gt:t.child=gt,Ie.last=gt}}if(Ie.tail!==null){var fa=Ie.tail;Ie.rendering=fa,Ie.tail=fa.sibling,Ie.renderingStartTime=Ln(),fa.sibling=null;var Zn=Ja.current;return jt?Zn=Sv(Zn,hu):Zn=Wo(Zn),Si(t,Zn),fa}return Bn(t),null}case Ce:break;case G:case et:{Fp(t);var Jr=t.memoizedState,ol=Jr!==null;if(e!==null){var Iu=e.memoizedState,Cr=Iu!==null;Cr!==ol&&!Te&&(t.flags|=Ui)}return!ol||(t.mode&st)===Le?Bn(t):xa(Er,Ca)&&(Bn(t),t.subtreeFlags&(pn|Et)&&(t.flags|=Ui)),null}case Z:return null;case pt:return null}throw new Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Z1(e,t,n){switch(Xd(t),t.tag){case pe:{var a=t.type;mr(a)&&$s(t);var r=t.flags;return r&oa?(t.flags=r&~oa|Ct,(t.mode&At)!==Le&&qv(t),t):null}case ne:{t.stateNode,Io(t),Id(t),Ev();var i=t.flags;return(i&oa)!==He&&(i&Ct)===He?(t.flags=i&~oa|Ct,t):null}case ae:return gv(t),null;case O:{qo(t);var o=t.memoizedState;if(o!==null&&o.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Bo()}var l=t.flags;return l&oa?(t.flags=l&~oa|Ct,(t.mode&At)!==Le&&qv(t),t):null}case Vt:return qo(t),null;case je:return Io(t),null;case Fe:var u=t.type._context;return sv(u,t),null;case G:case et:return Fp(t),null;case Z:return null;default:return null}}function pb(e,t,n){switch(Xd(t),t.tag){case pe:{var a=t.type.childContextTypes;a!=null&&$s(t);break}case ne:{t.stateNode,Io(t),Id(t),Ev();break}case ae:{gv(t);break}case je:Io(t);break;case O:qo(t);break;case Vt:qo(t);break;case Fe:var r=t.type._context;sv(r,t);break;case G:case et:Fp(t);break}}var mb=null;mb=new Set;var Nc=!1,$n=!1,ew=typeof WeakSet=="function"?WeakSet:Set,ge=null,Zo=null,el=null;function tw(e){xf(null,function(){throw e}),Rf()}var nw=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&At)try{Sr(),t.componentWillUnmount()}finally{br(e)}else t.componentWillUnmount()};function hb(e,t){try{Ci(Tn,e)}catch(n){Pt(e,t,n)}}function xp(e,t,n){try{nw(e,n)}catch(a){Pt(e,t,a)}}function aw(e,t,n){try{n.componentDidMount()}catch(a){Pt(e,t,a)}}function yb(e,t){try{bb(e)}catch(n){Pt(e,t,n)}}function tl(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var a;try{if(Rt&&_t&&e.mode&At)try{Sr(),a=n(null)}finally{br(e)}else a=n(null)}catch(r){Pt(e,t,r)}typeof a=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ge(e))}else n.current=null}function jc(e,t,n){try{n()}catch(a){Pt(e,t,a)}}var gb=!1;function rw(e,t){hx(e.containerInfo),ge=t,iw();var n=gb;return gb=!1,n}function iw(){for(;ge!==null;){var e=ge,t=e.child;(e.subtreeFlags&Lf)!==He&&t!==null?(t.return=e,ge=t):ow()}}function ow(){for(;ge!==null;){var e=ge;Zt(e);try{lw(e)}catch(n){Pt(e,e.return,n)}Mn();var t=e.sibling;if(t!==null){t.return=e.return,ge=t;return}ge=e.return}}function lw(e){var t=e.alternate,n=e.flags;if((n&So)!==He){switch(Zt(e),e.tag){case de:case De:case I:break;case pe:{if(t!==null){var a=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type===e.elementType&&!no&&(i.props!==e.memoizedProps&&c("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ge(e)||"instance"),i.state!==e.memoizedState&&c("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ge(e)||"instance"));var o=i.getSnapshotBeforeUpdate(e.elementType===e.type?a:er(e.type,a),r);{var l=mb;o===void 0&&!l.has(e.type)&&(l.add(e.type),c("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Ge(e)))}i.__reactInternalSnapshotBeforeUpdate=o}break}case ne:{{var u=e.stateNode;Bx(u.containerInfo)}break}case ae:case me:case je:case Xe:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Mn()}}function nr(e,t,n){var a=t.updateQueue,r=a!==null?a.lastEffect:null;if(r!==null){var i=r.next,o=i;do{if((o.tag&e)===e){var l=o.destroy;o.destroy=void 0,l!==void 0&&((e&Fn)!==ga?ET(t):(e&Tn)!==ga&&lh(t),(e&hr)!==ga&&$u(!0),jc(t,n,l),(e&hr)!==ga&&$u(!1),(e&Fn)!==ga?CT():(e&Tn)!==ga&&uh())}o=o.next}while(o!==i)}}function Ci(e,t){var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next,i=r;do{if((i.tag&e)===e){(e&Fn)!==ga?ST(t):(e&Tn)!==ga&&xT(t);var o=i.create;(e&hr)!==ga&&$u(!0),i.destroy=o(),(e&hr)!==ga&&$u(!1),(e&Fn)!==ga?TT():(e&Tn)!==ga&&RT();{var l=i.destroy;if(l!==void 0&&typeof l!="function"){var u=void 0;(i.tag&Tn)!==He?u="useLayoutEffect":(i.tag&hr)!==He?u="useInsertionEffect":u="useEffect";var f=void 0;l===null?f=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof l.then=="function"?f=`
It looks like you wrote `+u+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
`+u+`(() => {
async function fetchData() {
// You can await here
const response = await MyAPI.getData(someId);
// ...
}
fetchData();
}, [someId]); // Or [] if effect doesn't need props or state
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:f=" You returned: "+l,c("%s must not return anything besides a function, which is used for clean-up.%s",u,f)}}}i=i.next}while(i!==r)}}function uw(e,t){if((t.flags&Et)!==He)switch(t.tag){case Ze:{var n=t.stateNode.passiveEffectDuration,a=t.memoizedProps,r=a.id,i=a.onPostCommit,o=Ng(),l=t.alternate===null?"mount":"update";Ag()&&(l="nested-update"),typeof i=="function"&&i(r,l,n,o);var u=t.return;e:for(;u!==null;){switch(u.tag){case ne:var f=u.stateNode;f.passiveEffectDuration+=n;break e;case Ze:var d=u.stateNode;d.passiveEffectDuration+=n;break e}u=u.return}break}}}function sw(e,t,n,a){if((n.flags&xl)!==He)switch(n.tag){case de:case De:case I:{if(!$n)if(n.mode&At)try{Sr(),Ci(Tn|Sn,n)}finally{br(n)}else Ci(Tn|Sn,n);break}case pe:{var r=n.stateNode;if(n.flags&Et&&!$n)if(t===null)if(n.type===n.elementType&&!no&&(r.props!==n.memoizedProps&&c("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ge(n)||"instance"),r.state!==n.memoizedState&&c("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ge(n)||"instance")),n.mode&At)try{Sr(),r.componentDidMount()}finally{br(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:er(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!no&&(r.props!==n.memoizedProps&&c("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ge(n)||"instance"),r.state!==n.memoizedState&&c("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ge(n)||"instance")),n.mode&At)try{Sr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{br(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!no&&(r.props!==n.memoizedProps&&c("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Ge(n)||"instance"),r.state!==n.memoizedState&&c("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Ge(n)||"instance")),rg(n,l,r));break}case ne:{var u=n.updateQueue;if(u!==null){var f=null;if(n.child!==null)switch(n.child.tag){case ae:f=n.child.stateNode;break;case pe:f=n.child.stateNode;break}rg(n,u,f)}break}case ae:{var d=n.stateNode;if(t===null&&n.flags&Et){var g=n.type,y=n.memoizedProps;Dx(d,g,y)}break}case me:break;case je:break;case Ze:{{var w=n.memoizedProps,_=w.onCommit,N=w.onRender,te=n.stateNode.effectDuration,ke=Ng(),Re=t===null?"mount":"update";Ag()&&(Re="nested-update"),typeof N=="function"&&N(n.memoizedProps.id,Re,n.actualDuration,n.treeBaseDuration,n.actualStartTime,ke);{typeof _=="function"&&_(n.memoizedProps.id,Re,te,ke),oD(n);var ft=n.return;e:for(;ft!==null;){switch(ft.tag){case ne:var it=ft.stateNode;it.effectDuration+=te;break e;case Ze:var C=ft.stateNode;C.effectDuration+=te;break e}ft=ft.return}}}break}case O:{yw(e,n);break}case Vt:case Xe:case Ce:case G:case et:case pt:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}$n||n.flags&ji&&bb(n)}function cw(e){switch(e.tag){case de:case De:case I:{if(e.mode&At)try{Sr(),hb(e,e.return)}finally{br(e)}else hb(e,e.return);break}case pe:{var t=e.stateNode;typeof t.componentDidMount=="function"&&aw(e,e.return,t),yb(e,e.return);break}case ae:{yb(e,e.return);break}}}function fw(e,t){for(var n=null,a=e;;){if(a.tag===ae){if(n===null){n=a;try{var r=a.stateNode;t?Hx(r):Vx(a.stateNode,a.memoizedProps)}catch(o){Pt(e,e.return,o)}}}else if(a.tag===me){if(n===null)try{var i=a.stateNode;t?zx(i):Fx(i,a.memoizedProps)}catch(o){Pt(e,e.return,o)}}else if(!((a.tag===G||a.tag===et)&&a.memoizedState!==null&&a!==e)){if(a.child!==null){a.child.return=a,a=a.child;continue}}if(a===e)return;for(;a.sibling===null;){if(a.return===null||a.return===e)return;n===a&&(n=null),a=a.return}n===a&&(n=null),a.sibling.return=a.return,a=a.sibling}}function bb(e){var t=e.ref;if(t!==null){var n=e.stateNode,a;switch(e.tag){case ae:a=n;break;default:a=n}if(typeof t=="function"){var r;if(e.mode&At)try{Sr(),r=t(a)}finally{br(e)}else r=t(a);typeof r=="function"&&c("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Ge(e))}else t.hasOwnProperty("current")||c("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Ge(e)),t.current=a}}function dw(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function Sb(e){var t=e.alternate;t!==null&&(e.alternate=null,Sb(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===ae){var n=e.stateNode;n!==null&&gR(n)}e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}}function vw(e){for(var t=e.return;t!==null;){if(Tb(t))return t;t=t.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function Tb(e){return e.tag===ae||e.tag===ne||e.tag===je}function Eb(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||Tb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==ae&&t.tag!==me&&t.tag!==xt;){if(t.flags&pn||t.child===null||t.tag===je)continue e;t.child.return=t,t=t.child}if(!(t.flags&pn))return t.stateNode}}function pw(e){var t=vw(e);switch(t.tag){case ae:{var n=t.stateNode;t.flags&Cl&&(xy(n),t.flags&=~Cl);var a=Eb(e);wp(e,a,n);break}case ne:case je:{var r=t.stateNode.containerInfo,i=Eb(e);Rp(e,i,r);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function Rp(e,t,n){var a=e.tag,r=a===ae||a===me;if(r){var i=e.stateNode;t?Ax(n,i,t):Lx(n,i)}else if(a!==je){var o=e.child;if(o!==null){Rp(o,t,n);for(var l=o.sibling;l!==null;)Rp(l,t,n),l=l.sibling}}}function wp(e,t,n){var a=e.tag,r=a===ae||a===me;if(r){var i=e.stateNode;t?Ox(n,i,t):Mx(n,i)}else if(a!==je){var o=e.child;if(o!==null){wp(o,t,n);for(var l=o.sibling;l!==null;)wp(l,t,n),l=l.sibling}}}var Pn=null,ar=!1;function mw(e,t,n){{var a=t;e:for(;a!==null;){switch(a.tag){case ae:{Pn=a.stateNode,ar=!1;break e}case ne:{Pn=a.stateNode.containerInfo,ar=!0;break e}case je:{Pn=a.stateNode.containerInfo,ar=!0;break e}}a=a.return}if(Pn===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Cb(e,t,n),Pn=null,ar=!1}dw(n)}function xi(e,t,n){for(var a=n.child;a!==null;)Cb(e,t,a),a=a.sibling}function Cb(e,t,n){switch(hT(n),n.tag){case ae:$n||tl(n,t);case me:{{var a=Pn,r=ar;Pn=null,xi(e,t,n),Pn=a,ar=r,Pn!==null&&(ar?jx(Pn,n.stateNode):Nx(Pn,n.stateNode))}return}case xt:{Pn!==null&&(ar?Ux(Pn,n.stateNode):Hd(Pn,n.stateNode));return}case je:{{var i=Pn,o=ar;Pn=n.stateNode.containerInfo,ar=!0,xi(e,t,n),Pn=i,ar=o}return}case de:case De:case Qe:case I:{if(!$n){var l=n.updateQueue;if(l!==null){var u=l.lastEffect;if(u!==null){var f=u.next,d=f;do{var g=d,y=g.destroy,w=g.tag;y!==void 0&&((w&hr)!==ga?jc(n,t,y):(w&Tn)!==ga&&(lh(n),n.mode&At?(Sr(),jc(n,t,y),br(n)):jc(n,t,y),uh())),d=d.next}while(d!==f)}}}xi(e,t,n);return}case pe:{if(!$n){tl(n,t);var _=n.stateNode;typeof _.componentWillUnmount=="function"&&xp(n,t,_)}xi(e,t,n);return}case Ce:{xi(e,t,n);return}case G:{if(n.mode&st){var N=$n;$n=N||n.memoizedState!==null,xi(e,t,n),$n=N}else xi(e,t,n);break}default:{xi(e,t,n);return}}}function hw(e){e.memoizedState}function yw(e,t){var n=t.memoizedState;if(n===null){var a=t.alternate;if(a!==null){var r=a.memoizedState;if(r!==null){var i=r.dehydrated;i!==null&&tR(i)}}}}function xb(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ew),t.forEach(function(a){var r=vD.bind(null,e,a);if(!n.has(a)){if(n.add(a),qa)if(Zo!==null&&el!==null)Bu(el,Zo);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");a.then(r,r)}})}}function gw(e,t,n){Zo=n,el=e,Zt(t),Rb(t,e),Zt(t),Zo=null,el=null}function rr(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r];try{mw(e,t,i)}catch(u){Pt(i,t,u)}}var o=Gu();if(t.subtreeFlags&Of)for(var l=t.child;l!==null;)Zt(l),Rb(l,e),l=l.sibling;Zt(o)}function Rb(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case de:case De:case Qe:case I:{if(rr(t,e),Tr(e),r&Et){try{nr(hr|Sn,e,e.return),Ci(hr|Sn,e)}catch(ze){Pt(e,e.return,ze)}if(e.mode&At){try{Sr(),nr(Tn|Sn,e,e.return)}catch(ze){Pt(e,e.return,ze)}br(e)}else try{nr(Tn|Sn,e,e.return)}catch(ze){Pt(e,e.return,ze)}}return}case pe:{rr(t,e),Tr(e),r&ji&&a!==null&&tl(a,a.return);return}case ae:{rr(t,e),Tr(e),r&ji&&a!==null&&tl(a,a.return);{if(e.flags&Cl){var i=e.stateNode;try{xy(i)}catch(ze){Pt(e,e.return,ze)}}if(r&Et){var o=e.stateNode;if(o!=null){var l=e.memoizedProps,u=a!==null?a.memoizedProps:l,f=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{_x(o,d,f,u,l,e)}catch(ze){Pt(e,e.return,ze)}}}}return}case me:{if(rr(t,e),Tr(e),r&Et){if(e.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var g=e.stateNode,y=e.memoizedProps,w=a!==null?a.memoizedProps:y;try{kx(g,w,y)}catch(ze){Pt(e,e.return,ze)}}return}case ne:{if(rr(t,e),Tr(e),r&Et&&a!==null){var _=a.memoizedState;if(_.isDehydrated)try{eR(t.containerInfo)}catch(ze){Pt(e,e.return,ze)}}return}case je:{rr(t,e),Tr(e);return}case O:{rr(t,e),Tr(e);var N=e.child;if(N.flags&Ui){var te=N.stateNode,ke=N.memoizedState,Re=ke!==null;if(te.isHidden=Re,Re){var ft=N.alternate!==null&&N.alternate.memoizedState!==null;ft||Jw()}}if(r&Et){try{hw(e)}catch(ze){Pt(e,e.return,ze)}xb(e)}return}case G:{var it=a!==null&&a.memoizedState!==null;if(e.mode&st){var C=$n;$n=C||it,rr(t,e),$n=C}else rr(t,e);if(Tr(e),r&Ui){var j=e.stateNode,x=e.memoizedState,B=x!==null,ce=e;if(j.isHidden=B,B&&!it&&(ce.mode&st)!==Le){ge=ce;for(var ie=ce.child;ie!==null;)ge=ie,Sw(ie),ie=ie.sibling}fw(ce,B)}return}case Vt:{rr(t,e),Tr(e),r&Et&&xb(e);return}case Ce:return;default:{rr(t,e),Tr(e);return}}}function Tr(e){var t=e.flags;if(t&pn){try{pw(e)}catch(n){Pt(e,e.return,n)}e.flags&=~pn}t&Ur&&(e.flags&=~Ur)}function bw(e,t,n){Zo=n,el=t,ge=e,wb(e,t,n),Zo=null,el=null}function wb(e,t,n){for(var a=(e.mode&st)!==Le;ge!==null;){var r=ge,i=r.child;if(r.tag===G&&a){var o=r.memoizedState!==null,l=o||Nc;if(l){Dp(e,t,n);continue}else{var u=r.alternate,f=u!==null&&u.memoizedState!==null,d=f||$n,g=Nc,y=$n;Nc=l,$n=d,$n&&!y&&(ge=r,Tw(r));for(var w=i;w!==null;)ge=w,wb(w,t,n),w=w.sibling;ge=r,Nc=g,$n=y,Dp(e,t,n);continue}}(r.subtreeFlags&xl)!==He&&i!==null?(i.return=r,ge=i):Dp(e,t,n)}}function Dp(e,t,n){for(;ge!==null;){var a=ge;if((a.flags&xl)!==He){var r=a.alternate;Zt(a);try{sw(t,r,a,n)}catch(o){Pt(a,a.return,o)}Mn()}if(a===e){ge=null;return}var i=a.sibling;if(i!==null){i.return=a.return,ge=i;return}ge=a.return}}function Sw(e){for(;ge!==null;){var t=ge,n=t.child;switch(t.tag){case de:case De:case Qe:case I:{if(t.mode&At)try{Sr(),nr(Tn,t,t.return)}finally{br(t)}else nr(Tn,t,t.return);break}case pe:{tl(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&xp(t,t.return,a);break}case ae:{tl(t,t.return);break}case G:{var r=t.memoizedState!==null;if(r){Db(e);continue}break}}n!==null?(n.return=t,ge=n):Db(e)}}function Db(e){for(;ge!==null;){var t=ge;if(t===e){ge=null;return}var n=t.sibling;if(n!==null){n.return=t.return,ge=n;return}ge=t.return}}function Tw(e){for(;ge!==null;){var t=ge,n=t.child;if(t.tag===G){var a=t.memoizedState!==null;if(a){_b(e);continue}}n!==null?(n.return=t,ge=n):_b(e)}}function _b(e){for(;ge!==null;){var t=ge;Zt(t);try{cw(t)}catch(a){Pt(t,t.return,a)}if(Mn(),t===e){ge=null;return}var n=t.sibling;if(n!==null){n.return=t.return,ge=n;return}ge=t.return}}function Ew(e,t,n,a){ge=t,Cw(t,e,n,a)}function Cw(e,t,n,a){for(;ge!==null;){var r=ge,i=r.child;(r.subtreeFlags&To)!==He&&i!==null?(i.return=r,ge=i):xw(e,t,n,a)}}function xw(e,t,n,a){for(;ge!==null;){var r=ge;if((r.flags&ii)!==He){Zt(r);try{Rw(t,r,n,a)}catch(o){Pt(r,r.return,o)}Mn()}if(r===e){ge=null;return}var i=r.sibling;if(i!==null){i.return=r.return,ge=i;return}ge=r.return}}function Rw(e,t,n,a){switch(t.tag){case de:case De:case I:{if(t.mode&At){Wv();try{Ci(Fn|Sn,t)}finally{Iv(t)}}else Ci(Fn|Sn,t);break}}}function ww(e){ge=e,Dw()}function Dw(){for(;ge!==null;){var e=ge,t=e.child;if((ge.flags&Ni)!==He){var n=e.deletions;if(n!==null){for(var a=0;a<n.length;a++){var r=n[a];ge=r,Mw(r,e)}{var i=e.alternate;if(i!==null){var o=i.child;if(o!==null){i.child=null;do{var l=o.sibling;o.sibling=null,o=l}while(o!==null)}}}ge=e}}(e.subtreeFlags&To)!==He&&t!==null?(t.return=e,ge=t):_w()}}function _w(){for(;ge!==null;){var e=ge;(e.flags&ii)!==He&&(Zt(e),kw(e),Mn());var t=e.sibling;if(t!==null){t.return=e.return,ge=t;return}ge=e.return}}function kw(e){switch(e.tag){case de:case De:case I:{e.mode&At?(Wv(),nr(Fn|Sn,e,e.return),Iv(e)):nr(Fn|Sn,e,e.return);break}}}function Mw(e,t){for(;ge!==null;){var n=ge;Zt(n),Ow(n,t),Mn();var a=n.child;a!==null?(a.return=n,ge=a):Lw(e)}}function Lw(e){for(;ge!==null;){var t=ge,n=t.sibling,a=t.return;if(Sb(t),t===e){ge=null;return}if(n!==null){n.return=a,ge=n;return}ge=a}}function Ow(e,t){switch(e.tag){case de:case De:case I:{e.mode&At?(Wv(),nr(Fn,e,t),Iv(e)):nr(Fn,e,t);break}}}function Aw(e){switch(e.tag){case de:case De:case I:{try{Ci(Tn|Sn,e)}catch(n){Pt(e,e.return,n)}break}case pe:{var t=e.stateNode;try{t.componentDidMount()}catch(n){Pt(e,e.return,n)}break}}}function Nw(e){switch(e.tag){case de:case De:case I:{try{Ci(Fn|Sn,e)}catch(t){Pt(e,e.return,t)}break}}}function jw(e){switch(e.tag){case de:case De:case I:{try{nr(Tn|Sn,e,e.return)}catch(n){Pt(e,e.return,n)}break}case pe:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&xp(e,e.return,t);break}}}function Uw(e){switch(e.tag){case de:case De:case I:try{nr(Fn|Sn,e,e.return)}catch(t){Pt(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var Mu=Symbol.for;Mu("selector.component"),Mu("selector.has_pseudo_class"),Mu("selector.role"),Mu("selector.test_id"),Mu("selector.text")}var Hw=[];function zw(){Hw.forEach(function(e){return e()})}var Vw=J.ReactCurrentActQueue;function Fw(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,n=typeof jest<"u";return n&&t!==!1}}function kb(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&Vw.current!==null&&c("The current testing environment is not configured to support act(...)"),e}}var Bw=Math.ceil,_p=J.ReactCurrentDispatcher,kp=J.ReactCurrentOwner,Yn=J.ReactCurrentBatchConfig,ir=J.ReactCurrentActQueue,xn=0,Mb=1,In=2,Fa=4,Gr=0,Lu=1,ao=2,Uc=3,Ou=4,Lb=5,Mp=6,ct=xn,ua=null,nn=null,Rn=F,Er=F,Lp=pi(F),wn=Gr,Au=null,Hc=F,Nu=F,zc=F,ju=null,ba=null,Op=0,Ob=500,Ab=1/0,$w=500,Xr=null;function Uu(){Ab=Ln()+$w}function Nb(){return Ab}var Vc=!1,Ap=null,nl=null,ro=!1,Ri=null,Hu=F,Np=[],jp=null,Pw=50,zu=0,Up=null,Hp=!1,Fc=!1,Yw=50,al=0,Bc=null,Vu=Wt,$c=F,jb=!1;function Pc(){return ua}function sa(){return(ct&(In|Fa))!==xn?Ln():(Vu!==Wt||(Vu=Ln()),Vu)}function wi(e){var t=e.mode;if((t&st)===Le)return $e;if((ct&In)!==xn&&Rn!==F)return Ll(Rn);var n=VR()!==zR;if(n){if(Yn.transition!==null){var a=Yn.transition;a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(e)}return $c===An&&($c=hh()),$c}var r=Ga();if(r!==An)return r;var i=Cx();return i}function Iw(e){var t=e.mode;return(t&st)===Le?$e:qT()}function Dn(e,t,n,a){mD(),jb&&c("useInsertionEffect must not schedule updates."),Hp&&(Fc=!0),Ol(e,n,a),(ct&In)!==F&&e===ua?gD(t):(qa&&bh(e,t,n),bD(t),e===ua&&((ct&In)===xn&&(Nu=Je(Nu,n)),wn===Ou&&Di(e,Rn)),Sa(e,a),n===$e&&ct===xn&&(t.mode&st)===Le&&!ir.isBatchingLegacy&&(Uu(),jy()))}function Ww(e,t,n){var a=e.current;a.lanes=t,Ol(e,t,n),Sa(e,n)}function qw(e){return(ct&In)!==xn}function Sa(e,t){var n=e.callbackNode;BT(e,t);var a=cs(e,e===ua?Rn:F);if(a===F){n!==null&&Kb(n),e.callbackNode=null,e.callbackPriority=An;return}var r=$i(a),i=e.callbackPriority;if(i===r&&!(ir.current!==null&&n!==Yp)){n==null&&i!==$e&&c("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}n!=null&&Kb(n);var o;if(r===$e)e.tag===mi?(ir.isBatchingLegacy!==null&&(ir.didScheduleLegacyUpdate=!0),TR(zb.bind(null,e))):Ny(zb.bind(null,e)),ir.current!==null?ir.current.push(hi):Rx(function(){(ct&(In|Fa))===xn&&hi()}),o=null;else{var l;switch(Eh(a)){case Ra:l=os;break;case Vr:l=Af;break;case Fr:l=Vi;break;case vs:l=Nf;break;default:l=Vi;break}o=Ip(l,Ub.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}function Ub(e,t){if(f1(),Vu=Wt,$c=F,(ct&(In|Fa))!==xn)throw new Error("Should not already be working.");var n=e.callbackNode,a=Kr();if(a&&e.callbackNode!==n)return null;var r=cs(e,e===ua?Rn:F);if(r===F)return null;var i=!fs(e,r)&&!WT(e,r)&&!t,o=i?aD(e,r):Ic(e,r);if(o!==Gr){if(o===ao){var l=nd(e);l!==F&&(r=l,o=zp(e,l))}if(o===Lu){var u=Au;throw io(e,F),Di(e,r),Sa(e,Ln()),u}if(o===Mp)Di(e,r);else{var f=!fs(e,r),d=e.current.alternate;if(f&&!Xw(d)){if(o=Ic(e,r),o===ao){var g=nd(e);g!==F&&(r=g,o=zp(e,g))}if(o===Lu){var y=Au;throw io(e,F),Di(e,r),Sa(e,Ln()),y}}e.finishedWork=d,e.finishedLanes=r,Gw(e,o,r)}}return Sa(e,Ln()),e.callbackNode===n?Ub.bind(null,e):null}function zp(e,t){var n=ju;if(ps(e)){var a=io(e,t);a.flags|=jr,pR(e.containerInfo)}var r=Ic(e,t);if(r!==ao){var i=ba;ba=n,i!==null&&Hb(i)}return r}function Hb(e){ba===null?ba=e:ba.push.apply(ba,e)}function Gw(e,t,n){switch(t){case Gr:case Lu:throw new Error("Root did not complete. This is a bug in React.");case ao:{oo(e,ba,Xr);break}case Uc:{if(Di(e,n),ph(n)&&!Jb()){var a=Op+Ob-Ln();if(a>10){var r=cs(e,F);if(r!==F)break;var i=e.suspendedLanes;if(!Do(i,n)){sa(),gh(e,i);break}e.timeoutHandle=jd(oo.bind(null,e,ba,Xr),a);break}}oo(e,ba,Xr);break}case Ou:{if(Di(e,n),IT(n))break;if(!Jb()){var o=VT(e,n),l=o,u=Ln()-l,f=pD(u)-u;if(f>10){e.timeoutHandle=jd(oo.bind(null,e,ba,Xr),f);break}}oo(e,ba,Xr);break}case Lb:{oo(e,ba,Xr);break}default:throw new Error("Unknown root exit status.")}}function Xw(e){for(var t=e;;){if(t.flags&wf){var n=t.updateQueue;if(n!==null){var a=n.stores;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r],o=i.getSnapshot,l=i.value;try{if(!Da(o(),l))return!1}catch{return!1}}}}var u=t.child;if(t.subtreeFlags&wf&&u!==null){u.return=t,t=u;continue}if(t===e)return!0;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}return!0}function Di(e,t){t=ds(t,zc),t=ds(t,Nu),XT(e,t)}function zb(e){if(d1(),(ct&(In|Fa))!==xn)throw new Error("Should not already be working.");Kr();var t=cs(e,F);if(!xa(t,$e))return Sa(e,Ln()),null;var n=Ic(e,t);if(e.tag!==mi&&n===ao){var a=nd(e);a!==F&&(t=a,n=zp(e,a))}if(n===Lu){var r=Au;throw io(e,F),Di(e,t),Sa(e,Ln()),r}if(n===Mp)throw new Error("Root did not complete. This is a bug in React.");var i=e.current.alternate;return e.finishedWork=i,e.finishedLanes=t,oo(e,ba,Xr),Sa(e,Ln()),null}function Qw(e,t){t!==F&&(od(e,Je(t,$e)),Sa(e,Ln()),(ct&(In|Fa))===xn&&(Uu(),hi()))}function Vp(e,t){var n=ct;ct|=Mb;try{return e(t)}finally{ct=n,ct===xn&&!ir.isBatchingLegacy&&(Uu(),jy())}}function Kw(e,t,n,a,r){var i=Ga(),o=Yn.transition;try{return Yn.transition=null,Nn(Ra),e(t,n,a,r)}finally{Nn(i),Yn.transition=o,ct===xn&&Uu()}}function Qr(e){Ri!==null&&Ri.tag===mi&&(ct&(In|Fa))===xn&&Kr();var t=ct;ct|=Mb;var n=Yn.transition,a=Ga();try{return Yn.transition=null,Nn(Ra),e?e():void 0}finally{Nn(a),Yn.transition=n,ct=t,(ct&(In|Fa))===xn&&hi()}}function Vb(){return(ct&(In|Fa))!==xn}function Yc(e,t){Qn(Lp,Er,e),Er=Je(Er,t)}function Fp(e){Er=Lp.current,Xn(Lp,e)}function io(e,t){e.finishedWork=null,e.finishedLanes=F;var n=e.timeoutHandle;if(n!==Ud&&(e.timeoutHandle=Ud,xx(n)),nn!==null)for(var a=nn.return;a!==null;){var r=a.alternate;pb(r,a),a=a.return}ua=e;var i=lo(e.current,null);return nn=i,Rn=Er=t,wn=Gr,Au=null,Hc=F,Nu=F,zc=F,ju=null,ba=null,WR(),Ka.discardPendingWarnings(),i}function Fb(e,t){do{var n=nn;try{if(ec(),cg(),Mn(),kp.current=null,n===null||n.return===null){wn=Lu,Au=t,nn=null;return}if(Rt&&n.mode&At&&kc(n,!0),at)if(Co(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var a=t;DT(n,a,Rn)}else wT(n,t,Rn);T1(e,n.return,n,t,Rn),Yb(n)}catch(r){t=r,nn===n&&n!==null?(n=n.return,nn=n):n=nn;continue}return}while(!0)}function Bb(){var e=_p.current;return _p.current=xc,e===null?xc:e}function $b(e){_p.current=e}function Jw(){Op=Ln()}function Fu(e){Hc=Je(e,Hc)}function Zw(){wn===Gr&&(wn=Uc)}function Bp(){(wn===Gr||wn===Uc||wn===ao)&&(wn=Ou),ua!==null&&(ad(Hc)||ad(Nu))&&Di(ua,Rn)}function eD(e){wn!==Ou&&(wn=ao),ju===null?ju=[e]:ju.push(e)}function tD(){return wn===Gr}function Ic(e,t){var n=ct;ct|=In;var a=Bb();if(ua!==e||Rn!==t){if(qa){var r=e.memoizedUpdaters;r.size>0&&(Bu(e,Rn),r.clear()),Sh(e,t)}Xr=Th(),io(e,t)}sh(t);do try{nD();break}catch(i){Fb(e,i)}while(!0);if(ec(),ct=n,$b(a),nn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return ch(),ua=null,Rn=F,wn}function nD(){for(;nn!==null;)Pb(nn)}function aD(e,t){var n=ct;ct|=In;var a=Bb();if(ua!==e||Rn!==t){if(qa){var r=e.memoizedUpdaters;r.size>0&&(Bu(e,Rn),r.clear()),Sh(e,t)}Xr=Th(),Uu(),io(e,t)}sh(t);do try{rD();break}catch(i){Fb(e,i)}while(!0);return ec(),$b(a),ct=n,nn!==null?(OT(),Gr):(ch(),ua=null,Rn=F,wn)}function rD(){for(;nn!==null&&!oT();)Pb(nn)}function Pb(e){var t=e.alternate;Zt(e);var n;(e.mode&At)!==Le?(Yv(e),n=$p(t,e,Er),kc(e,!0)):n=$p(t,e,Er),Mn(),e.memoizedProps=e.pendingProps,n===null?Yb(e):nn=n,kp.current=null}function Yb(e){var t=e;do{var n=t.alternate,a=t.return;if((t.flags&is)===He){Zt(t);var r=void 0;if((t.mode&At)===Le?r=vb(n,t,Er):(Yv(t),r=vb(n,t,Er),kc(t,!1)),Mn(),r!==null){nn=r;return}}else{var i=Z1(n,t);if(i!==null){i.flags&=eT,nn=i;return}if((t.mode&At)!==Le){kc(t,!1);for(var o=t.actualDuration,l=t.child;l!==null;)o+=l.actualDuration,l=l.sibling;t.actualDuration=o}if(a!==null)a.flags|=is,a.subtreeFlags=He,a.deletions=null;else{wn=Mp,nn=null;return}}var u=t.sibling;if(u!==null){nn=u;return}t=a,nn=t}while(t!==null);wn===Gr&&(wn=Lb)}function oo(e,t,n){var a=Ga(),r=Yn.transition;try{Yn.transition=null,Nn(Ra),iD(e,t,n,a)}finally{Yn.transition=r,Nn(a)}return null}function iD(e,t,n,a){do Kr();while(Ri!==null);if(hD(),(ct&(In|Fa))!==xn)throw new Error("Should not already be working.");var r=e.finishedWork,i=e.finishedLanes;if(bT(i),r===null)return oh(),null;if(i===F&&c("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=F,r===e.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");e.callbackNode=null,e.callbackPriority=An;var o=Je(r.lanes,r.childLanes);QT(e,o),e===ua&&(ua=null,nn=null,Rn=F),((r.subtreeFlags&To)!==He||(r.flags&To)!==He)&&(ro||(ro=!0,jp=n,Ip(Vi,function(){return Kr(),null})));var l=(r.subtreeFlags&(Lf|Of|xl|To))!==He,u=(r.flags&(Lf|Of|xl|To))!==He;if(l||u){var f=Yn.transition;Yn.transition=null;var d=Ga();Nn(Ra);var g=ct;ct|=Fa,kp.current=null,rw(e,r),jg(),gw(e,r,i),yx(e.containerInfo),e.current=r,_T(i),bw(r,e,i),kT(),lT(),ct=g,Nn(d),Yn.transition=f}else e.current=r,jg();var y=ro;if(ro?(ro=!1,Ri=e,Hu=i):(al=0,Bc=null),o=e.pendingLanes,o===F&&(nl=null),y||Gb(e.current,!1),pT(r.stateNode,a),qa&&e.memoizedUpdaters.clear(),zw(),Sa(e,Ln()),t!==null)for(var w=e.onRecoverableError,_=0;_<t.length;_++){var N=t[_],te=N.stack,ke=N.digest;w(N.value,{componentStack:te,digest:ke})}if(Vc){Vc=!1;var Re=Ap;throw Ap=null,Re}return xa(Hu,$e)&&e.tag!==mi&&Kr(),o=e.pendingLanes,xa(o,$e)?(c1(),e===Up?zu++:(zu=0,Up=e)):zu=0,hi(),oh(),null}function Kr(){if(Ri!==null){var e=Eh(Hu),t=eE(Fr,e),n=Yn.transition,a=Ga();try{return Yn.transition=null,Nn(t),lD()}finally{Nn(a),Yn.transition=n}}return!1}function oD(e){Np.push(e),ro||(ro=!0,Ip(Vi,function(){return Kr(),null}))}function lD(){if(Ri===null)return!1;var e=jp;jp=null;var t=Ri,n=Hu;if(Ri=null,Hu=F,(ct&(In|Fa))!==xn)throw new Error("Cannot flush passive effects while already rendering.");Hp=!0,Fc=!1,MT(n);var a=ct;ct|=Fa,ww(t.current),Ew(t,t.current,n,e);{var r=Np;Np=[];for(var i=0;i<r.length;i++){var o=r[i];uw(t,o)}}LT(),Gb(t.current,!0),ct=a,hi(),Fc?t===Bc?al++:(al=0,Bc=t):al=0,Hp=!1,Fc=!1,mT(t);{var l=t.current.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}return!0}function Ib(e){return nl!==null&&nl.has(e)}function uD(e){nl===null?nl=new Set([e]):nl.add(e)}function sD(e){Vc||(Vc=!0,Ap=e)}var cD=sD;function Wb(e,t,n){var a=to(n,t),r=Pg(e,a,$e),i=gi(e,r,$e),o=sa();i!==null&&(Ol(i,$e,o),Sa(i,o))}function Pt(e,t,n){if(tw(n),$u(!1),e.tag===ne){Wb(e,e,n);return}var a=null;for(a=t;a!==null;){if(a.tag===ne){Wb(a,e,n);return}else if(a.tag===pe){var r=a.type,i=a.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&!Ib(i)){var o=to(n,e),l=up(a,o,$e),u=gi(a,l,$e),f=sa();u!==null&&(Ol(u,$e,f),Sa(u,f));return}}a=a.return}c(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
Error message:
%s`,n)}function fD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=sa();gh(e,n),SD(e),ua===e&&Do(Rn,n)&&(wn===Ou||wn===Uc&&ph(Rn)&&Ln()-Op<Ob?io(e,F):zc=Je(zc,n)),Sa(e,r)}function qb(e,t){t===An&&(t=Iw(e));var n=sa(),a=ya(e,t);a!==null&&(Ol(a,t,n),Sa(a,n))}function dD(e){var t=e.memoizedState,n=An;t!==null&&(n=t.retryLane),qb(e,n)}function vD(e,t){var n=An,a;switch(e.tag){case O:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case Vt:a=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}a!==null&&a.delete(t),qb(e,n)}function pD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:Bw(e/1960)*1960}function mD(){if(zu>Pw)throw zu=0,Up=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");al>Yw&&(al=0,Bc=null,c("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function hD(){Ka.flushLegacyContextWarning(),Ka.flushPendingUnsafeLifecycleWarnings()}function Gb(e,t){Zt(e),Wc(e,oi,jw),t&&Wc(e,Mf,Uw),Wc(e,oi,Aw),t&&Wc(e,Mf,Nw),Mn()}function Wc(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==He?a=a.child:((a.flags&t)!==He&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var qc=null;function Xb(e){{if((ct&In)!==xn||!(e.mode&st))return;var t=e.tag;if(t!==dt&&t!==ne&&t!==pe&&t!==de&&t!==De&&t!==Qe&&t!==I)return;var n=Ge(e)||"ReactComponent";if(qc!==null){if(qc.has(n))return;qc.add(n)}else qc=new Set([n]);var a=aa;try{Zt(e),c("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{a?Zt(e):Mn()}}}var $p;{var yD=null;$p=function(e,t,n){var a=aS(yD,t);try{return ub(e,t,n)}catch(i){if(kR()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(ec(),cg(),pb(e,t),aS(t,a),t.mode&At&&Yv(t),xf(null,ub,null,e,t,n),K0()){var r=Rf();typeof r=="object"&&r!==null&&r._suppressLogging&&typeof i=="object"&&i!==null&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}}}var Qb=!1,Pp;Pp=new Set;function gD(e){if(Mi&&!l1())switch(e.tag){case de:case De:case I:{var t=nn&&Ge(nn)||"Unknown",n=t;if(!Pp.has(n)){Pp.add(n);var a=Ge(e)||"Unknown";c("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",a,t,t)}break}case pe:{Qb||(c("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Qb=!0);break}}}function Bu(e,t){if(qa){var n=e.memoizedUpdaters;n.forEach(function(a){bh(e,a,t)})}}var Yp={};function Ip(e,t){{var n=ir.current;return n!==null?(n.push(t),Yp):ih(e,t)}}function Kb(e){if(e!==Yp)return iT(e)}function Jb(){return ir.current!==null}function bD(e){{if(e.mode&st){if(!kb())return}else if(!Fw()||ct!==xn||e.tag!==de&&e.tag!==De&&e.tag!==I)return;if(ir.current===null){var t=aa;try{Zt(e),c(`An update to %s inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Ge(e))}finally{t?Zt(e):Mn()}}}}function SD(e){e.tag!==mi&&kb()&&ir.current===null&&c(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
When testing, code that resolves suspended data should be wrapped into act(...):
act(() => {
/* finish loading suspended data */
});
/* assert on the output */
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function $u(e){jb=e}var Ba=null,rl=null,TD=function(e){Ba=e};function il(e){{if(Ba===null)return e;var t=Ba(e);return t===void 0?e:t.current}}function Wp(e){return il(e)}function qp(e){{if(Ba===null)return e;var t=Ba(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=il(e.render);if(e.render!==n){var a={$$typeof:z,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function Zb(e,t){{if(Ba===null)return!1;var n=e.elementType,a=t.type,r=!1,i=typeof a=="object"&&a!==null?a.$$typeof:null;switch(e.tag){case pe:{typeof a=="function"&&(r=!0);break}case de:{(typeof a=="function"||i===p)&&(r=!0);break}case De:{(i===z||i===p)&&(r=!0);break}case Qe:case I:{(i===nt||i===p)&&(r=!0);break}default:return!1}if(r){var o=Ba(n);if(o!==void 0&&o===Ba(a))return!0}return!1}}function eS(e){{if(Ba===null||typeof WeakSet!="function")return;rl===null&&(rl=new WeakSet),rl.add(e)}}var ED=function(e,t){{if(Ba===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Kr(),Qr(function(){Gp(e.current,a,n)})}},CD=function(e,t){{if(e.context!==_a)return;Kr(),Qr(function(){Pu(t,e,null,null)})}};function Gp(e,t,n){{var a=e.alternate,r=e.child,i=e.sibling,o=e.tag,l=e.type,u=null;switch(o){case de:case I:case pe:u=l;break;case De:u=l.render;break}if(Ba===null)throw new Error("Expected resolveFamily to be set during hot reload.");var f=!1,d=!1;if(u!==null){var g=Ba(u);g!==void 0&&(n.has(g)?d=!0:t.has(g)&&(o===pe?d=!0:f=!0))}if(rl!==null&&(rl.has(e)||a!==null&&rl.has(a))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||f){var y=ya(e,$e);y!==null&&Dn(y,e,$e,Wt)}r!==null&&!d&&Gp(r,t,n),i!==null&&Gp(i,t,n)}}var xD=function(e,t){{var n=new Set,a=new Set(t.map(function(r){return r.current}));return Xp(e.current,a,n),n}};function Xp(e,t,n){{var a=e.child,r=e.sibling,i=e.tag,o=e.type,l=null;switch(i){case de:case I:case pe:l=o;break;case De:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?RD(e,n):a!==null&&Xp(a,t,n),r!==null&&Xp(r,t,n)}}function RD(e,t){{var n=wD(e,t);if(n)return;for(var a=e;;){switch(a.tag){case ae:t.add(a.stateNode);return;case je:t.add(a.stateNode.containerInfo);return;case ne:t.add(a.stateNode.containerInfo);return}if(a.return===null)throw new Error("Expected to reach root first.");a=a.return}}}function wD(e,t){for(var n=e,a=!1;;){if(n.tag===ae)a=!0,t.add(n.stateNode);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)return a;for(;n.sibling===null;){if(n.return===null||n.return===e)return a;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}var Qp;{Qp=!1;try{var tS=Object.preventExtensions({})}catch{Qp=!0}}function DD(e,t,n,a){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=a,this.flags=He,this.subtreeFlags=He,this.deletions=null,this.lanes=F,this.childLanes=F,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!Qp&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var ka=function(e,t,n,a){return new DD(e,t,n,a)};function Kp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function _D(e){return typeof e=="function"&&!Kp(e)&&e.defaultProps===void 0}function kD(e){if(typeof e=="function")return Kp(e)?pe:de;if(e!=null){var t=e.$$typeof;if(t===z)return De;if(t===nt)return Qe}return dt}function lo(e,t){var n=e.alternate;n===null?(n=ka(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=He,n.subtreeFlags=He,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&Hr,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue;var a=e.dependencies;switch(n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case dt:case de:case I:n.type=il(e.type);break;case pe:n.type=Wp(e.type);break;case De:n.type=qp(e.type);break}return n}function MD(e,t){e.flags&=Hr|pn;var n=e.alternate;if(n===null)e.childLanes=F,e.lanes=t,e.child=null,e.subtreeFlags=He,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0;else{e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=He,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type;var a=n.dependencies;e.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration}return e}function LD(e,t,n){var a;return e===Ys?(a=st,t===!0&&(a|=un,a|=dr)):a=Le,qa&&(a|=At),ka(ne,null,null,a)}function Jp(e,t,n,a,r,i){var o=dt,l=e;if(typeof e=="function")Kp(e)?(o=pe,l=Wp(l)):l=il(l);else if(typeof e=="string")o=ae;else e:switch(e){case ta:return _i(n.children,r,i,t);case Rr:o=qt,r|=un,(r&st)!==Le&&(r|=dr);break;case wr:return OD(n,r,i,t);case Q:return AD(n,r,i,t);case ve:return ND(n,r,i,t);case T:return nS(n,r,i,t);case R:case E:case U:case S:case b:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Dr:o=Fe;break e;case h:o=yt;break e;case z:o=De,l=qp(l);break e;case nt:o=Qe;break e;case p:o=Gt,l=null;break e}var u="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var f=a?Ge(a):null;f&&(u+=`
Check the render method of \``+f+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+u))}}var d=ka(o,n,t,r);return d.elementType=e,d.type=l,d.lanes=i,d._debugOwner=a,d}function Zp(e,t,n){var a=null;a=e._owner;var r=e.type,i=e.key,o=e.props,l=Jp(r,i,o,a,t,n);return l._debugSource=e._source,l._debugOwner=e._owner,l}function _i(e,t,n,a){var r=ka(re,e,a,t);return r.lanes=n,r}function OD(e,t,n,a){typeof e.id!="string"&&c('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var r=ka(Ze,e,a,t|At);return r.elementType=wr,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function AD(e,t,n,a){var r=ka(O,e,a,t);return r.elementType=Q,r.lanes=n,r}function ND(e,t,n,a){var r=ka(Vt,e,a,t);return r.elementType=ve,r.lanes=n,r}function nS(e,t,n,a){var r=ka(G,e,a,t);r.elementType=T,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function em(e,t,n){var a=ka(me,e,null,t);return a.lanes=n,a}function jD(){var e=ka(ae,null,null,Le);return e.elementType="DELETED",e}function UD(e){var t=ka(xt,null,null,Le);return t.stateNode=e,t}function tm(e,t,n){var a=e.children!==null?e.children:[],r=ka(je,a,e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function aS(e,t){return e===null&&(e=ka(dt,null,null,Le)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function HD(e,t,n,a,r){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=Ud,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=An,this.eventTimes=id(F),this.expirationTimes=id(Wt),this.pendingLanes=F,this.suspendedLanes=F,this.pingedLanes=F,this.expiredLanes=F,this.mutableReadLanes=F,this.finishedLanes=F,this.entangledLanes=F,this.entanglements=id(F),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var i=this.pendingUpdatersLaneMap=[],o=0;o<Uf;o++)i.push(new Set)}switch(t){case Ys:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case mi:this._debugRootType=n?"hydrate()":"render()";break}}function rS(e,t,n,a,r,i,o,l,u,f){var d=new HD(e,t,n,l,u),g=LD(t,i);d.current=g,g.stateNode=d;{var y={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};g.memoizedState=y}return pv(g),d}var nm="18.3.1";function zD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return va(a),{$$typeof:ea,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var am,rm;am=!1,rm={};function iS(e){if(!e)return _a;var t=go(e),n=SR(t);if(t.tag===pe){var a=t.type;if(mr(a))return Oy(t,a,n)}return n}function VD(e,t){{var n=go(e);if(n===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var a=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+a)}var r=nh(n);if(r===null)return null;if(r.mode&un){var i=Ge(n)||"Component";if(!rm[i]){rm[i]=!0;var o=aa;try{Zt(r),n.mode&un?c("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i):c("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i)}finally{o?Zt(o):Mn()}}}return r.stateNode}}function oS(e,t,n,a,r,i,o,l){var u=!1,f=null;return rS(e,t,u,f,n,a,r,i,o)}function lS(e,t,n,a,r,i,o,l,u,f){var d=!0,g=rS(n,a,d,e,r,i,o,l,u);g.context=iS(null);var y=g.current,w=sa(),_=wi(y),N=Wr(w,_);return N.callback=t??null,gi(y,N,_),Ww(g,_,w),g}function Pu(e,t,n,a){vT(t,e);var r=t.current,i=sa(),o=wi(r);AT(o);var l=iS(n);t.context===null?t.context=l:t.pendingContext=l,Mi&&aa!==null&&!am&&(am=!0,c(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
Check the render method of %s.`,Ge(aa)||"Unknown"));var u=Wr(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&c("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var f=gi(r,u,o);return f!==null&&(Dn(f,r,o,i),ic(f,r,o)),o}function Gc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case ae:return t.child.stateNode;default:return t.child.stateNode}}function FD(e){switch(e.tag){case ne:{var t=e.stateNode;if(ps(t)){var n=$T(t);Qw(t,n)}break}case O:{Qr(function(){var r=ya(e,$e);if(r!==null){var i=sa();Dn(r,e,$e,i)}});var a=$e;im(e,a);break}}}function uS(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=GT(n.retryLane,t))}function im(e,t){uS(e,t);var n=e.alternate;n&&uS(n,t)}function BD(e){if(e.tag===O){var t=_l,n=ya(e,t);if(n!==null){var a=sa();Dn(n,e,t,a)}im(e,t)}}function $D(e){if(e.tag===O){var t=wi(e),n=ya(e,t);if(n!==null){var a=sa();Dn(n,e,t,a)}im(e,t)}}function sS(e){var t=rT(e);return t===null?null:t.stateNode}var cS=function(e){return null};function PD(e){return cS(e)}var fS=function(e){return!1};function YD(e){return fS(e)}var dS=null,vS=null,pS=null,mS=null,hS=null,yS=null,gS=null,bS=null,SS=null;{var TS=function(e,t,n){var a=t[n],r=rt(e)?e.slice():xe({},e);return n+1===t.length?(rt(r)?r.splice(a,1):delete r[a],r):(r[a]=TS(e[a],t,n+1),r)},ES=function(e,t){return TS(e,t,0)},CS=function(e,t,n,a){var r=t[a],i=rt(e)?e.slice():xe({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],rt(i)?i.splice(r,1):delete i[r]}else i[r]=CS(e[r],t,n,a+1);return i},xS=function(e,t,n){if(t.length!==n.length){P("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){P("copyWithRename() expects paths to be the same except for the deepest key");return}return CS(e,t,n,0)},RS=function(e,t,n,a){if(n>=t.length)return a;var r=t[n],i=rt(e)?e.slice():xe({},e);return i[r]=RS(e[r],t,n+1,a),i},wS=function(e,t,n){return RS(e,t,0,n)},om=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};dS=function(e,t,n,a){var r=om(e,t);if(r!==null){var i=wS(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=xe({},e.memoizedProps);var o=ya(e,$e);o!==null&&Dn(o,e,$e,Wt)}},vS=function(e,t,n){var a=om(e,t);if(a!==null){var r=ES(a.memoizedState,n);a.memoizedState=r,a.baseState=r,e.memoizedProps=xe({},e.memoizedProps);var i=ya(e,$e);i!==null&&Dn(i,e,$e,Wt)}},pS=function(e,t,n,a){var r=om(e,t);if(r!==null){var i=xS(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=xe({},e.memoizedProps);var o=ya(e,$e);o!==null&&Dn(o,e,$e,Wt)}},mS=function(e,t,n){e.pendingProps=wS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=ya(e,$e);a!==null&&Dn(a,e,$e,Wt)},hS=function(e,t){e.pendingProps=ES(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=ya(e,$e);n!==null&&Dn(n,e,$e,Wt)},yS=function(e,t,n){e.pendingProps=xS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=ya(e,$e);a!==null&&Dn(a,e,$e,Wt)},gS=function(e){var t=ya(e,$e);t!==null&&Dn(t,e,$e,Wt)},bS=function(e){cS=e},SS=function(e){fS=e}}function ID(e){var t=nh(e);return t===null?null:t.stateNode}function WD(e){return null}function qD(){return aa}function GD(e){var t=e.findFiberByHostInstance,n=J.ReactCurrentDispatcher;return dT({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:dS,overrideHookStateDeletePath:vS,overrideHookStateRenamePath:pS,overrideProps:mS,overridePropsDeletePath:hS,overridePropsRenamePath:yS,setErrorHandler:bS,setSuspenseHandler:SS,scheduleUpdate:gS,currentDispatcherRef:n,findHostInstanceByFiber:ID,findFiberByHostInstance:t||WD,findHostInstancesForRefresh:xD,scheduleRefresh:ED,scheduleRoot:CD,setRefreshHandler:TD,getCurrentFiber:qD,reconcilerVersion:nm})}var DS=typeof reportError=="function"?reportError:function(e){console.error(e)};function lm(e){this._internalRoot=e}Xc.prototype.render=lm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?c("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Qc(arguments[1])?c("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&c("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(n.nodeType!==vn){var a=sS(t.current);a&&a.parentNode!==n&&c("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}Pu(e,t,null,null)},Xc.prototype.unmount=lm.prototype.unmount=function(){typeof arguments[0]=="function"&&c("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vb()&&c("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Qr(function(){Pu(null,e,null,null)}),Dy(t)}};function XD(e,t){if(!Qc(e))throw new Error("createRoot(...): Target container is not a DOM element.");_S(e);var n=!1,a=!1,r="",i=DS;t!=null&&(t.hydrate?P("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===gn&&c(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
let root = createRoot(domContainer);
root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var o=oS(e,Ys,null,n,a,r,i);Hs(o.current,e);var l=e.nodeType===vn?e.parentNode:e;return Xl(l),new lm(o)}function Xc(e){this._internalRoot=e}function QD(e){e&&fE(e)}Xc.prototype.unstable_scheduleHydration=QD;function KD(e,t,n){if(!Qc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");_S(e),t===void 0&&c("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var a=n??null,r=n!=null&&n.hydratedSources||null,i=!1,o=!1,l="",u=DS;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var f=lS(t,null,e,Ys,a,i,o,l,u);if(Hs(f.current,e),Xl(e),r)for(var d=0;d<r.length;d++){var g=r[d];t1(f,g)}return new Xc(f)}function Qc(e){return!!(e&&(e.nodeType===ma||e.nodeType===Nr||e.nodeType===vf))}function Yu(e){return!!(e&&(e.nodeType===ma||e.nodeType===Nr||e.nodeType===vf||e.nodeType===vn&&e.nodeValue===" react-mount-point-unstable "))}function _S(e){e.nodeType===ma&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&c("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),ou(e)&&(e._reactRootContainer?c("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):c("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var JD=J.ReactCurrentOwner,kS;kS=function(e){if(e._reactRootContainer&&e.nodeType!==vn){var t=sS(e._reactRootContainer.current);t&&t.parentNode!==e&&c("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,a=um(e),r=!!(a&&vi(a));r&&!n&&c("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===ma&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&c("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function um(e){return e?e.nodeType===Nr?e.documentElement:e.firstChild:null}function MS(){}function ZD(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var y=Gc(o);i.call(y)}}var o=lS(t,a,e,mi,null,!1,!1,"",MS);e._reactRootContainer=o,Hs(o.current,e);var l=e.nodeType===vn?e.parentNode:e;return Xl(l),Qr(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var f=a;a=function(){var y=Gc(d);f.call(y)}}var d=oS(e,mi,null,!1,!1,"",MS);e._reactRootContainer=d,Hs(d.current,e);var g=e.nodeType===vn?e.parentNode:e;return Xl(g),Qr(function(){Pu(t,d,n,a)}),d}}function e_(e,t){e!==null&&typeof e!="function"&&c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Kc(e,t,n,a,r){kS(n),e_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=ZD(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=Gc(o);l.call(u)}}Pu(t,o,e,r)}return Gc(o)}var LS=!1;function t_(e){{LS||(LS=!0,c("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=JD.current;if(t!==null&&t.stateNode!==null){var n=t.stateNode._warnedAboutRefsInRender;n||c("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Tt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===ma?e:VD(e,"findDOMNode")}function n_(e,t,n){if(c("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Yu(t))throw new Error("Target container is not a DOM element.");{var a=ou(t)&&t._reactRootContainer===void 0;a&&c("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Kc(null,e,t,!0,n)}function a_(e,t,n){if(c("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Yu(t))throw new Error("Target container is not a DOM element.");{var a=ou(t)&&t._reactRootContainer===void 0;a&&c("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Kc(null,e,t,!1,n)}function r_(e,t,n,a){if(c("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!Yu(n))throw new Error("Target container is not a DOM element.");if(e==null||!J0(e))throw new Error("parentComponent must be a valid React Component");return Kc(e,t,n,!1,a)}var OS=!1;function i_(e){if(OS||(OS=!0,c("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!Yu(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=ou(e)&&e._reactRootContainer===void 0;t&&c("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var n=um(e),a=n&&!vi(n);a&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Qr(function(){Kc(null,null,e,!1,function(){e._reactRootContainer=null,Dy(e)})}),!0}else{{var r=um(e),i=!!(r&&vi(r)),o=e.nodeType===ma&&Yu(e.parentNode)&&!!e.parentNode._reactRootContainer;i&&c("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",o?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}tE(FD),aE(BD),rE($D),iE(Ga),oE(JT),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&c("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),B0(lx),Y0(Vp,Kw,Qr);function o_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Qc(t))throw new Error("Target container is not a DOM element.");return zD(e,t,null,n)}function l_(e,t,n,a){return r_(e,t,n,a)}var sm={usingClientEntryPoint:!1,Events:[vi,Uo,zs,Pm,Ym,Vp]};function u_(e,t){return sm.usingClientEntryPoint||c('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),XD(e,t)}function s_(e,t,n){return sm.usingClientEntryPoint||c('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),KD(e,t,n)}function c_(e){return Vb()&&c("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Qr(e)}var f_=GD({findFiberByHostInstance:Wi,bundleType:1,version:nm,rendererPackageName:"react-dom"});if(!f_&&Mt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var AS=window.location.protocol;/^(https?|file):$/.test(AS)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(AS==="file:"?`
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}da.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sm,da.createPortal=o_,da.createRoot=u_,da.findDOMNode=t_,da.flushSync=c_,da.hydrate=n_,da.hydrateRoot=s_,da.render=a_,da.unmountComponentAtNode=i_,da.unstable_batchedUpdates=Vp,da.unstable_renderSubtreeIntoContainer=l_,da.version=nm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),da}pm.exports=zS();var VS=pm.exports,gm,bm=VS;{var Sm=bm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;gm=function(k,M){Sm.usingClientEntryPoint=!0;try{return bm.createRoot(k,M)}finally{Sm.usingClientEntryPoint=!1}}}const fe=k=>{if(isNaN(k))return"00:00:00.000";const M=Math.floor(k/3600),J=Math.floor(k%3600/60),Me=Math.floor(k%60),Ne=Math.round(k%1*1e3),P=String(M).padStart(2,"0"),c=String(J).padStart(2,"0"),kt=String(Me).padStart(2,"0"),de=String(Ne).padStart(3,"0");return`${P}:${c}:${kt}.${de}`},ki=k=>fe(k),FS=k=>fe(k),Ee={debug:(...k)=>{},error:(...k)=>console.error(...k),warn:(...k)=>console.warn(...k),info:(...k)=>console.info(...k)};var q=Zc();const BS=({videoRef:k,currentTime:M,duration:J,isPlaying:Me,isMuted:Ne=!1,onPlayPause:P,onSeek:c,onToggleMute:kt})=>{var se,Ke;const de=q.useRef(null),[pe,dt]=q.useState(!1),[ne,je]=q.useState(!1),[ae,me]=q.useState(null),[re,qt]=q.useState(!1),yt=q.useRef(!1),[Fe,De]=q.useState({x:0}),[Ze,O]=q.useState(0),Qe=typeof window<"u"&&((se=window.MEDIA_DATA)==null?void 0:se.videoUrl)||"/videos/sample-video.mp4",I=Qe.match(/\.(mp3|wav|ogg|m4a|aac|flac)$/i)!==null,Xe=typeof window<"u"&&((Ke=window.MEDIA_DATA)==null?void 0:Ke.posterUrl)||""||(I?"/audio-poster.jpg":void 0);q.useEffect(()=>{const Te=()=>{const Ue=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test(Ue)&&!window.MSStream},We=()=>{const Ue=navigator.userAgent||navigator.vendor||window.opera;return/Safari/.test(Ue)&&!/Chrome/.test(Ue)&&!/Chromium/.test(Ue)};if(dt(Te()),typeof window<"u"&&(window.isSafari=We()),typeof window<"u"){const Ue=localStorage.getItem("video_initialized")==="true";je(Ue)}},[]),q.useEffect(()=>{Me&&!ne&&(je(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[Me,ne]),q.useEffect(()=>{const Te=k.current;if(!Te)return;Te.setAttribute("playsinline","true"),Te.setAttribute("webkit-playsinline","true"),Te.setAttribute("x-webkit-airplay","allow");const We=()=>{yt.current||(me(Te.currentTime),typeof window<"u"&&(window.lastSeekedPosition=Te.currentTime))},Ue=()=>{pe&&(je(!0),localStorage.setItem("video_initialized","true"))},at=()=>{};return Te.addEventListener("timeupdate",We),Te.addEventListener("play",Ue),Te.addEventListener("pause",at),()=>{Te.removeEventListener("timeupdate",We),Te.removeEventListener("play",Ue),Te.removeEventListener("pause",at)}},[k,pe,yt]),q.useEffect(()=>{me(M)},[M]);const xt=J>0?M/J*100:0,Vt=Te=>{Te.preventDefault(),qt(!0),yt.current=!0,Ce(Te);const We=at=>{yt.current&&Ce(at)},Ue=()=>{qt(!1),yt.current=!1,document.removeEventListener("mousemove",We),document.removeEventListener("mouseup",Ue)};document.addEventListener("mousemove",We),document.addEventListener("mouseup",Ue)},Ce=Te=>{if(!de.current)return;const We=de.current.getBoundingClientRect(),Ue=Math.max(0,Math.min(1,(Te.clientX-We.left)/We.width)),at=J*Ue;De({x:Te.clientX}),O(at),me(at),typeof window<"u"&&(window.lastSeekedPosition=at),c(at)},G=Te=>{if(!de.current||!Te.touches[0])return;Te.preventDefault(),qt(!0),yt.current=!0,et(Te);const We=at=>{yt.current&&et(at)},Ue=()=>{qt(!1),yt.current=!1,document.removeEventListener("touchmove",We),document.removeEventListener("touchend",Ue),document.removeEventListener("touchcancel",Ue)};document.addEventListener("touchmove",We,{passive:!1}),document.addEventListener("touchend",Ue),document.addEventListener("touchcancel",Ue)},et=Te=>{if(!de.current)return;const We="touches"in Te?Te.touches[0]:null;if(!We)return;Te.preventDefault();const Ue=de.current.getBoundingClientRect(),at=Math.max(0,Math.min(1,(We.clientX-Ue.left)/Ue.width)),Rt=J*at;De({x:We.clientX}),O(Rt),me(Rt),typeof window<"u"&&(window.lastSeekedPosition=Rt),c(Rt)},Z=Te=>{if(!re&&de.current){const We=de.current.getBoundingClientRect(),Ue=(Te.clientX-We.left)/We.width,at=J*Ue;me(at),typeof window<"u"&&(window.lastSeekedPosition=at),c(at)}},pt=()=>{k.current&&(document.fullscreenElement?document.exitFullscreen():k.current.requestFullscreen())},he=()=>{const Te=k.current;Te&&(Te.paused?pe&&ae!==null&&ae>0?(Te.currentTime=ae,setTimeout(()=>{k.current&&k.current.play().then(()=>{var We;Ee.debug("iOS: Play started successfully at position:",(We=k.current)==null?void 0:We.currentTime),P()}).catch(We=>{console.error("iOS: Error playing video:",We)})},50)):Te.play().then(()=>{P()}).catch(We=>{console.error("Error playing video:",We)}):(Te.pause(),P()))};return v.jsxs("div",{className:"video-player-container",children:[v.jsxs("video",{ref:k,preload:"metadata",crossOrigin:"anonymous",onClick:he,playsInline:!0,"webkit-playsinline":"true","x-webkit-airplay":"allow",controls:!1,muted:Ne,poster:Xe,children:[v.jsx("source",{src:Qe,type:"video/mp4"}),v.jsx("source",{src:Qe,type:"audio/mp4"}),v.jsx("source",{src:Qe,type:"audio/mpeg"}),v.jsx("p",{children:"Your browser doesn't support HTML5 video or audio."})]}),pe&&!ne&&!Me&&v.jsx("div",{className:"ios-first-play-indicator",children:v.jsx("div",{className:"ios-play-message",children:"Tap Play to initialize video controls"})}),v.jsx("div",{className:`play-pause-indicator ${Me?"pause-icon":"play-icon"}`}),v.jsxs("div",{className:"video-controls",children:[v.jsxs("div",{className:"video-time-display",children:[v.jsx("span",{className:"video-current-time",children:ki(M)}),v.jsxs("span",{className:"video-duration",children:["/ ",ki(J)]})]}),v.jsxs("div",{ref:de,className:`video-progress ${re?"dragging":""}`,onClick:Z,onMouseDown:Vt,onTouchStart:G,children:[v.jsx("div",{className:"video-progress-fill",style:{width:`${xt}%`}}),v.jsx("div",{className:"video-scrubber",style:{left:`${xt}%`}}),re&&v.jsx("div",{className:"video-time-tooltip",style:{left:`${Fe.x}px`,transform:"translateX(-50%)"},children:fe(Ze)})]}),v.jsxs("div",{className:"video-controls-buttons",children:[kt&&v.jsx("button",{className:"mute-button","aria-label":Ne?"Unmute":"Mute",onClick:kt,"data-tooltip":Ne?"Unmute":"Mute",children:Ne?v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),v.jsx("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}),v.jsx("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}),v.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),v.jsx("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]}):v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),v.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"})]})}),v.jsx("button",{className:"fullscreen-button","aria-label":"Fullscreen",onClick:pt,"data-tooltip":"Toggle fullscreen",children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.jsx("path",{fillRule:"evenodd",d:"M3 4a1 1 0 011-1h4a1 1 0 010 2H6.414l2.293 2.293a1 1 0 01-1.414 1.414L5 6.414V8a1 1 0 01-2 0V4zm9 1a1 1 0 010-2h4a1 1 0 011 1v4a1 1 0 01-2 0V6.414l-2.293 2.293a1 1 0 11-1.414-1.414L13.586 5H12zm-9 7a1 1 0 012 0v1.586l2.293-2.293a1 1 0 011.414 1.414L6.414 15H8a1 1 0 010 2H4a1 1 0 01-1-1v-4zm13-1a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 010-2h1.586l-2.293-2.293a1 1 0 011.414-1.414L15 13.586V12a1 1 0 011-1z",clipRule:"evenodd"})})})]})]})]})},$S=(k,M)=>{const J=Math.min(Math.max(k/(M||1),0),1),Me=210,Ne=40+Math.floor(J*20),P=85+Math.floor(J*8);return`hsl(${Me}, ${Ne}%, ${P}%)`},Wu=({isOpen:k,onClose:M,title:J,children:Me,actions:Ne})=>{if(q.useEffect(()=>{const c=kt=>{kt.key==="Escape"&&k&&M()};return document.addEventListener("keydown",c),k&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",c),document.body.style.overflow=""}},[k,M]),!k)return null;const P=c=>{c.target===c.currentTarget&&M()};return v.jsx("div",{className:"modal-overlay",onClick:P,children:v.jsxs("div",{className:"modal-container",onClick:c=>c.stopPropagation(),children:[v.jsxs("div",{className:"modal-header",children:[v.jsx("h2",{className:"modal-title",children:J}),v.jsx("button",{className:"modal-close-button",onClick:M,"aria-label":"Close modal",style:{minWidth:"24px",minHeight:"24px"},children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),v.jsx("div",{className:"modal-content",children:Me}),Ne&&v.jsx("div",{className:"modal-actions",children:Ne})]})})},PS=async(k,M)=>{try{const J=await fetch(`/api/v1/media/${k}/chapters`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)});if(Ee.debug("response",J),!J.ok){if(J.status===404)return{success:!0,timestamp:new Date().toISOString()};try{const Ne=await J.json();return{success:!1,timestamp:new Date().toISOString(),error:Ne.error||"Auto-save failed (videoApi.ts)"}}catch{return{success:!1,timestamp:new Date().toISOString(),error:"Auto-save failed (videoApi.ts)"}}}const Me=await J.json();return{success:!0,timestamp:Me.updated_at||new Date().toISOString(),...Me}}catch{return{success:!0,timestamp:new Date().toISOString()}}},Tm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:%23333333;}%20.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%20%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cpath%20class='st0'%20d='M350.45,277.5l-164.08,94.73c-16.55,9.56-37.24-2.39-37.24-21.5V161.27c0-19.11,20.69-31.06,37.24-21.5%20l164.08,94.73C367,244.06,367,267.94,350.45,277.5z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Em="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e.st0{fill:%23333333;}.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cg%3e%3cpath%20class='st0'%20d='M208.15,380.19h-91.19c-5.7,0-10.32-4.62-10.32-10.32V142.13c0-5.7,4.62-10.32,10.32-10.32h91.19%20c5.7,0,10.32,4.62,10.32,10.32v227.74C218.47,375.57,213.85,380.19,208.15,380.19z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st0'%20d='M395.04,380.19h-91.19c-5.7,0-10.32-4.62-10.32-10.32V142.13c0-5.7,4.62-10.32,10.32-10.32h91.19%20c5.7,0,10.32,4.62,10.32,10.32v227.74C405.36,375.57,400.74,380.19,395.04,380.19z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Cm="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20style='enable-background:new%200%200%20512%20512;'%20version='1.1'%20viewBox='0%200%20512%20512'%20xml:space='preserve'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cstyle%20type='text/css'%3e.st0{fill:%23333333;}.st1{fill:none;stroke:%23333333;stroke-width:32;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;}%3c/style%3e%3cg%20id='Layer_1'/%3e%3cg%20id='Layer_2'%3e%3cg%3e%3cg%3e%3cpath%20class='st0'%20d='M85.26,277.5l164.08,94.73c16.55,9.56,37.24-2.39,37.24-21.5V161.27c0-19.11-20.69-31.06-37.24-21.5%20L85.26,234.5C68.71,244.06,68.71,267.94,85.26,277.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20class='st0'%20d='M377.47,375.59h41.42c11.19,0,20.26-9.07,20.26-20.26V156.67c0-11.19-9.07-20.26-20.26-20.26h-41.42%20c-11.19,0-20.26,9.07-20.26,20.26v198.67C357.21,366.52,366.28,375.59,377.47,375.59z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e",YS="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle/%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M27,3V29a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V27H7v1H25V4H7V7H5V3A1,1,0,0,1,6,2H26A1,1,0,0,1,27,3Z'/%3e%3cg%20transform='translate(2,%200)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'%20id='logout_account_exit_door'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",IS="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M5,3V29a1,1,0,0,0,1,1H26a1,1,0,0,0,1-1V25H25v3H7V4H25V7h2V3a1,1,0,0,0-1-1H6A1,1,0,0,0,5,3Z'/%3e%3cg%20transform='translate(28,%200)%20scale(-1,%201)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",WS="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M5,3V29a1,1,0,0,0,1,1H26a1,1,0,0,0,1-1V25H25v3H7V4H25V7h2V3a1,1,0,0,0-1-1H6A1,1,0,0,0,5,3Z'/%3e%3cg%20transform='translate(30,%200)%20scale(-1,%201)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",qS="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%3ctitle/%3e%3cg%20data-name='1'%20id='_1'%3e%3cpath%20d='M27,3V29a1,1,0,0,1-1,1H6a1,1,0,0,1-1-1V27H7v1H25V4H7V7H5V3A1,1,0,0,1,6,2H26A1,1,0,0,1,27,3Z'/%3e%3cg%20transform='translate(2,%200)'%3e%3cpath%20d='M10.71,20.29,7.41,17H18V15H7.41l3.3-3.29L9.29,10.29l-5,5a1,1,0,0,0,0,1.42l5,5Z'%20id='logout_account_exit_door'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",GS={color:"#007bff",textDecoration:"none",fontWeight:"bold","&:hover":{textDecoration:"underline",color:"#0056b3"}},xm=k=>{let P,c;if(k<=15)if(k<=0)P="0%",c="none";else{const de=-50*((k-0)/15);P=`${k}%`,c=`translateX(${de}%)`}else if(k>=75)if(k>=100)P="100%",c="translateX(-100%)";else{const de=-50-50*((k-75)/25);P=`${k}%`,c=`translateX(${de}%)`}else P=`${k}%`,c="translateX(-50%)";return{left:P,transform:c}},XS=({currentTime:k,duration:M,trimStart:J,trimEnd:Me,splitPoints:Ne,zoomLevel:P,clipSegments:c,selectedSegmentId:kt,onSelectedSegmentChange:de,onSegmentUpdate:pe,onChapterSave:dt,onTrimStartChange:ne,onTrimEndChange:je,onZoomChange:ae,onSeek:me,videoRef:re,hasUnsavedChanges:qt=!1,isIOSUninitialized:yt=!1,isPlaying:Fe,setIsPlaying:De,onPlayPause:Ze,isPlayingSegments:O=!1})=>{const Qe=(p,E)=>`Chapter ${[...E,{startTime:p}].sort((U,S)=>U.startTime-S.startTime).findIndex(U=>U.startTime===p)+1}`,I=q.useRef(null),Gt=q.useRef(null),Xe=q.useRef(null),[xt,Vt]=q.useState(null),Ce=kt!==void 0?kt:xt,G=p=>{de?de(p):Vt(p)},[et,Z]=q.useState(!1),[pt,he]=q.useState({x:0,y:0}),[se,Ke]=q.useState(0),[Te,We]=q.useState(!1),[Ue,at]=q.useState(30),[Rt,_t]=q.useState(!1),[Xt,St]=q.useState(null),[jn,mt]=q.useState(0),[an,Mt]=q.useState(!1),tt=q.useRef(null),[rn,on]=q.useState(""),[ln,tn]=q.useState(!1),L=[...c].sort((p,E)=>p.startTime-E.startTime).find(p=>p.id===Ce),[Y,le]=q.useState(""),[ee,we]=q.useState(!1),qe=q.useRef(null),ot=q.useRef(c);q.useEffect(()=>{ot.current=c},[c]);const _e=q.useCallback(async()=>{var p;try{we(!0);const E=ot.current.sort((U,S)=>U.startTime-S.startTime).map(U=>({startTime:fe(U.startTime),endTime:fe(U.endTime),chapterTitle:U.chapterTitle}));Ee.debug("chapters",E);const T=typeof window<"u"&&((p=window.MEDIA_DATA)==null?void 0:p.mediaId)||null||"1234";if(Ee.debug("mediaId",T),!T||E.length===0){Ee.debug("No mediaId or segments, skipping auto-save"),we(!1);return}Ee.debug("Auto-saving segments:",{mediaId:T,chapters:E});const R=await PS(T,{chapters:E});if(R.success===!0){Ee.debug("Auto-save successful");const S=new Date(R.updated_at||new Date().toISOString()).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).replace(",","");le(S),Ee.debug("Auto-save successful:",S)}else Ee.error("Auto-save failed: (TimelineControls.tsx)")}catch(E){Ee.error("Auto-save error: (TimelineControls.tsx)",E)}finally{we(!1)}},[]),Be=q.useCallback(()=>{qe.current&&clearTimeout(qe.current);const p=setTimeout(()=>{_e()},1e3);qe.current=p},[_e]);q.useEffect(()=>{if(L){const p=L.chapterTitle&&/^Chapter \d+$/.test(L.chapterTitle);on(p?"":L.chapterTitle||"")}else on("")},[Ce,L]);const lt=p=>{on(p),tn(!0),Ce&&pe&&pe(Ce,{chapterTitle:p})},Qt=p=>{const E=p;let b=null,T=null,R=se;const U=()=>{const S=E<0?Math.max(0,R+E):Math.min(M,R+E);R=S;const $=Rt;if(me(S),Ke(S),mt(S),I.current){const V=I.current.getBoundingClientRect(),Se=S/M*100,xe=V.left+V.width*(Se/100);he({x:xe,y:V.top-10});const Oe=c.find(vt=>S>=vt.startTime&&S<=vt.endTime);if(Oe)G(Oe.id),Z(!1);else{G(null);const vt=yn(S);at(vt),Z(!0)}}$&&re.current&&(re.current.play(),_t(!0))};return{onMouseDown:S=>{S.stopPropagation(),S.preventDefault(),R=se,U(),b=setTimeout(()=>{T=setInterval(U,200)},750);const $=()=>{b&&(clearTimeout(b),b=null),T&&(clearInterval(T),T=null),document.removeEventListener("mouseup",$),document.removeEventListener("mouseleave",$)};document.addEventListener("mouseup",$),document.addEventListener("mouseleave",$)},onTouchStart:S=>{S.stopPropagation(),S.preventDefault(),R=se,U(),b=setTimeout(()=>{T=setInterval(U,200)},750);const $=()=>{b&&(clearTimeout(b),b=null),T&&(clearInterval(T),T=null),document.removeEventListener("touchend",$),document.removeEventListener("touchcancel",$)};document.addEventListener("touchend",$),document.addEventListener("touchcancel",$)},onClick:S=>{S.stopPropagation()}}},[hn,W]=q.useState(!1),[ye,Ve]=q.useState(!1),[ht,Lt]=q.useState(!1),[Ft,Ht]=q.useState(!1),[Un,Bt]=q.useState(""),[zt,Ut]=q.useState(""),[$a,Ta]=q.useState(""),[Ea,or]=q.useState("chapters"),La=M>0?k/M*100:0,Zr=M>0?J/M*100:0,xr=M>0?Me/M*100:0,ei=async()=>{var p;W(!1),Ve(!0),or("chapters");try{const E=c.filter(b=>b.chapterTitle&&b.chapterTitle.trim()).sort((b,T)=>b.startTime-T.startTime).map(b=>({chapterTitle:b.chapterTitle||`Chapter ${b.id}`,from:fe(b.startTime),to:fe(b.endTime)}));if(dt){await dt(E),Ve(!1),E.length===0?Bt("All chapters cleared successfully!"):Bt("Chapters saved successfully!");const b=typeof window<"u"&&((p=window.MEDIA_DATA)==null?void 0:p.mediaId)||null;b&&Ta(`/view?m=${b}`),Lt(!0)}else Ut("Chapter save function not available"),Ht(!0),Ve(!1)}catch(E){Ee.error("Error saving chapters:",E),Ve(!1);const b=E instanceof Error?E.message:"An error occurred while saving chapters";Ut(b),Ht(!0)}};q.useEffect(()=>{if(tt.current&&I.current&&P>1){const p=tt.current.clientWidth,E=I.current.clientWidth,b=k/M*E,T=Math.max(0,b-p/2);tt.current.scrollTo({left:T,behavior:"smooth"});const R=I.current.getBoundingClientRect();tt.current.getBoundingClientRect();const S=R.left-tt.current.scrollLeft+La/100*R.width;(Ce!==null||et)&&(he({x:S,y:R.top-10}),Ke(k))}},[k,P,M,Ce,et,La]),q.useEffect(()=>{},[Xt,Rt,an,c]),q.useEffect(()=>{if(re.current)if(re.current.paused)re.current.paused&&Rt&&(mt(k),Ke(k),_t(!1),Ee.debug("Video paused at:",fe(k)));else{mt(k),Ke(k),Ce!==null&&_t(!0);const p=c.find(T=>k>=T.startTime&&k<=T.endTime),E=k/M*100;if(I.current){const T=I.current.offsetWidth,R=E/100*T;he({x:R,y:I.current.getBoundingClientRect().top-10})}const b=sessionStorage.getItem("continuingPastSegment")==="true";if(p){const T=re.current,R=Xt&&Xt.id<0&&Rt;if((Xt==null?void 0:Xt.id)!==p.id&&!R&&!b&&!an&&(Ee.debug(`Entered a new segment during playback: ${p.id}, setting as active`),St(p),G(p.id),Z(!1),Mt(!1),sessionStorage.removeItem("continuingPastSegment")),R&&T&&p){Ee.debug(`CUTAWAY BOUNDARY REACHED: Current position ${fe(T.currentTime)} at segment ${p.id} - STOPPING at boundary ${fe(p.startTime)}`),T.pause(),setTimeout(()=>{if(re.current){re.current.currentTime=p.startTime,me(p.startTime),mt(p.startTime),Ke(p.startTime),Mt(!1),G(p.id),Z(!1);const S=()=>{re.current&&(re.current.currentTime=p.startTime,me(p.startTime),mt(p.startTime),Ke(p.startTime),Ee.debug(`Position corrected to exact segment boundary: ${fe(re.current.currentTime)} (target: ${fe(p.startTime)})`))};setTimeout(S,10),setTimeout(S,20),setTimeout(S,50),setTimeout(S,100),setTimeout(S,200),re.current.addEventListener("seeked",S),re.current.addEventListener("canplay",S),re.current.addEventListener("waiting",S),setTimeout(()=>{re.current&&(re.current.removeEventListener("seeked",S),re.current.removeEventListener("canplay",S),re.current.removeEventListener("waiting",S))},300)}},10),_t(!1),St(null);return}Xt===null&&Rt===!0||b||R?(Ce!==p.id||et)&&(Ee.debug("Tooltip updated for segment during continued playback:",p.id,R?"(cutaway playback - keeping virtual segment)":""),G(p.id),Z(!1),!R&&sessionStorage.getItem("lastSegmentId")!==p.id.toString()&&sessionStorage.removeItem("continuingPastSegment")):((Xt==null?void 0:Xt.id)!==p.id||et)&&(Ee.debug("Playback moved into segment:",p.id),G(p.id),St(p),Z(!1),sessionStorage.setItem("lastSegmentId",p.id.toString()))}else if(Xt!==null||!et){G(null),St(null);const T=yn(k);at(T),T>=.5?Z(!0):Z(!1)}}},[k,Rt,Xt,Ce,c]),q.useEffect(()=>{const p=E=>{const b=E.target;Te&&!b.closest(".zoom-dropdown-container")&&We(!1)};return document.addEventListener("mousedown",p),()=>{document.removeEventListener("mousedown",p)}},[Te]),q.useEffect(()=>{const p=T=>{const{recordHistory:R,fromAutoSave:U}=T.detail;R&&!U&&Be()},E=()=>{Be()},b=T=>{const{recordHistory:R}=T.detail;R&&Be()};return document.addEventListener("update-segments",p),document.addEventListener("segment-drag-end",E),document.addEventListener("update-trim",b),document.addEventListener("delete-segment",Be),document.addEventListener("split-segment",Be),document.addEventListener("undo-redo-autosave",Be),()=>{document.removeEventListener("update-segments",p),document.removeEventListener("segment-drag-end",E),document.removeEventListener("update-trim",b),document.removeEventListener("delete-segment",Be),document.removeEventListener("split-segment",Be),document.removeEventListener("undo-redo-autosave",Be),qe.current&&(Ee.debug("Clearing auto-save timer in cleanup:",qe.current),clearTimeout(qe.current))}},[Be]),q.useEffect(()=>{c.length>0&&!Y&&setTimeout(()=>{_e()},500)},[Y,_e]),q.useEffect(()=>{const p=()=>{var T;let b=typeof window<"u"&&((T=window.MEDIA_DATA)==null?void 0:T.chapters)||null;try{if(b&&b.chapters&&b.chapters.length>0){Ee.debug("Found saved segments:",b);const R=b.chapters.map((S,$)=>({id:Date.now()+$,chapterTitle:S.chapterTitle||`Chapter ${$+1}`,startTime:E(S.startTime),endTime:E(S.endTime)})),U=new CustomEvent("update-segments",{detail:{segments:R,recordHistory:!1,fromAutoSave:!0}});if(document.dispatchEvent(U),b.updated_at){const $=new Date(b.updated_at).toLocaleString("en-US",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).replace(",","");le($)}}else Ee.debug("No saved segments found")}catch(R){console.error("Error loading saved segments:",R)}},E=b=>{const T=b.split(":");if(T.length!==3)return 0;const R=parseInt(T[0])||0,U=parseInt(T[1])||0,S=T[2].split("."),$=parseInt(S[0])||0,V=parseInt(S[1])||0;return R*3600+U*60+$+V/1e3};setTimeout(p,100)},[]),q.useEffect(()=>()=>{},[Ce,et,Rt]),q.useEffect(()=>{const p=Gt.current,E=Xe.current,b=I.current;if(!p||!E||!b)return;const T=R=>U=>{U.preventDefault();const S=b.getBoundingClientRect();let $=!0,V=R?J:Me;const Se=vt=>new CustomEvent("trim-handle-event",{detail:{type:vt,isStart:R}});document.dispatchEvent(Se("drag-start"));const xe=vt=>{if(!$)return;const Jt=S.width,_n=Math.max(0,Math.min(1,(vt.clientX-S.left)/Jt))*M;typeof window<"u"&&(window.lastSeekedPosition=_n),R?_n<Me&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:_n,isStart:!0,recordHistory:!1}})),V=_n):_n>J&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:_n,isStart:!1,recordHistory:!1}})),V=_n)},Oe=()=>{$=!1,document.removeEventListener("mousemove",xe),document.removeEventListener("mouseup",Oe),R?document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:V,isStart:!0,recordHistory:!0,action:"adjust_trim_start"}})):document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:V,isStart:!1,recordHistory:!0,action:"adjust_trim_end"}})),document.dispatchEvent(Se("drag-end"))};document.addEventListener("mousemove",xe),document.addEventListener("mouseup",Oe)};return p.addEventListener("mousedown",T(!0)),E.addEventListener("mousedown",T(!1)),()=>{p.removeEventListener("mousedown",T(!0)),E.removeEventListener("mousedown",T(!1))}},[M,J,Me,ne,je]);const ti=()=>Ne.map((p,E)=>{const b=p/M*100;return v.jsx("div",{className:"split-point",style:{left:`${b}%`}},E)}),yn=p=>{const b=[...c].sort((S,$)=>S.startTime-$.startTime),T=b.find(S=>S.startTime>p),R=[...b].reverse().find(S=>S.endTime<p);let U;return T?U=T.startTime-p:U=M-p,Ee.debug("Space calculation:",{position:fe(p),nextSegment:T?fe(T.startTime):"none",prevSegment:R?fe(R.endTime):"none",availableSpace:fe(Math.max(.1,U))}),Math.max(.1,U)},gn=p=>{if(!I.current)return;const E=c.find(V=>{const Se=p>=V.startTime&&p<=V.endTime,xe=Math.abs(p-V.startTime)<.001,Oe=Math.abs(p-V.endTime)<.001;return Se||xe||Oe}),b=[...c].sort((V,Se)=>V.startTime-Se.startTime),T=b.find(V=>V.startTime>p),R=[...b].reverse().find(V=>V.endTime<p);if(E)G(E.id),Z(!1);else{const V=yn(p);at(V),G(null),Z(!0),Ee.debug("Cutaway position:",{current:fe(p),prevSegmentEnd:R?fe(R.endTime):"none",nextSegmentStart:T?fe(T.startTime):"none",availableSpace:fe(V)})}const U=I.current.getBoundingClientRect(),S=p/M*100;let $;P>1&&tt.current?$=U.left-tt.current.scrollLeft+U.width*(S/100):$=U.left+U.width*(S/100),he({x:$,y:U.top-10})},ea=p=>{if(!I.current||!tt.current||yt)return;const E=re.current&&!re.current.paused;Mt(!1);const b=I.current.getBoundingClientRect();let T;if(P>1){const S=tt.current.scrollLeft,$=I.current.clientWidth;T=(p.clientX-b.left+S)/$}else T=(p.clientX-b.left)/b.width;const R=T*M;Ee.debug("Timeline clicked at:",fe(R),"distance from end:",fe(M-R)),typeof window<"u"&&(window.lastSeekedPosition=R),me(R),Ke(R),mt(R);const U=c.find(S=>{const $=R>=S.startTime&&R<=S.endTime,V=Math.abs(R-S.startTime)<.01,Se=Math.abs(R-S.endTime)<.01;return $||V||Se});if(U&&St(U),re.current)if(O&&E){if(U){const $=[...c].sort((V,Se)=>V.startTime-Se.startTime).findIndex(V=>V.id===U.id);if($!==-1){const V=new CustomEvent("update-segment-index",{detail:{segmentIndex:$}});document.dispatchEvent(V),Ee.debug(`Segments playback mode: updating segment index to ${$} for timeline click in segment ${U.id}`)}}re.current.play().then(()=>{_t(!0)}).catch(S=>{console.error("Error resuming segments playback:",S),_t(!1)})}else E&&!O&&re.current.play().then(()=>{_t(!0)}).catch(S=>{console.error("Error resuming playback:",S),_t(!1)});if(p.target===I.current)if(U)G(U.id),Z(!1);else{G(null);const S=yn(R);at(S);let $;if(P>1){const Oe=b.left-tt.current.scrollLeft,vt=R/M;$=Oe+vt*b.width}else $=p.clientX;he({x:$,y:b.top-10}),Z(!0);const V=[...c].sort((Oe,vt)=>Oe.startTime-vt.startTime),Se=[...V].reverse().find(Oe=>Oe.endTime<R),xe=V.find(Oe=>Oe.startTime>R);Ee.debug("Clicked in cutaway area:",{position:fe(R),availableSpace:fe(S),prevSegmentEnd:Se?fe(Se.endTime):"none",nextSegmentStart:xe?fe(xe.startTime):"none"})}},ta=(p,E)=>b=>{if(b.preventDefault(),b.stopPropagation(),!I.current)return;I.current.getBoundingClientRect().width;const R=c.find(kn=>kn.id===p);if(!R)return;const U=R.startTime,S=R.endTime,$={...R};document.body.style.cursor="ew-resize";const V=document.createElement("div");V.style.position="fixed",V.style.top="0",V.style.left="0",V.style.width="100vw",V.style.height="100vh",V.style.zIndex="1000",V.style.cursor="ew-resize",document.body.appendChild(V);let Se=!0,xe=U,Oe=S;document.dispatchEvent(new CustomEvent("segment-drag-start",{detail:{segmentId:p}}));const vt=kn=>{if(!Se||!I.current)return;const lr=I.current.getBoundingClientRect(),$t=Math.max(0,Math.min(1,(kn-lr.left)/lr.width))*M,na=E?$t:U,ur=E?S:$t;if(k>=na&&k<=ur)G(p),Z(!1);else{G(null);const cn=yn(k);at(cn),Z(!0)}const sr=c.filter(cn=>cn.id!==p);let qn=U,pa=S;if(E){qn=Math.min($t,S-.5);const wt=sr.filter(Ya=>Ya.endTime<=U).sort((Ya,Ia)=>Ia.endTime-Ya.endTime)[0];wt&&qn<wt.endTime&&(qn=wt.endTime),wt&&Math.abs(qn-wt.endTime)<.3&&(qn=wt.endTime),xe=qn}else{pa=Math.max($t,U+.5);const wt=sr.filter(Ya=>Ya.startTime>=S).sort((Ya,Ia)=>Ya.startTime-Ia.startTime)[0];wt&&pa>wt.startTime&&(pa=wt.startTime),wt&&Math.abs(pa-wt.startTime)<.3&&(pa=wt.startTime),Oe=pa}const cr=c.map(cn=>cn.id===p?{...cn,startTime:qn,endTime:pa}:cn),ni=new CustomEvent("update-segments",{detail:{segments:cr,recordHistory:!1}});if(document.dispatchEvent(ni),Ce===p&&re.current){const cn=re.current.currentTime,wt=cr.find(Aa=>Aa.id===p);if(wt){const Aa=cn>=wt.startTime&&cn<=wt.endTime;Ee.debug(`During drag - playhead at ${fe(cn)} is ${Aa?"inside":"outside"} segment (${fe(wt.startTime)} - ${fe(wt.endTime)})`),!Aa&&Rt&&(re.current.pause(),_t(!1),St(null)),cn<wt.startTime?(Ee.debug(`Adjusting display time to segment start: ${fe(wt.startTime)}`),mt(wt.startTime),Ke(wt.startTime)):cn>wt.endTime&&(Ee.debug(`Adjusting display time to segment end: ${fe(wt.endTime)}`),mt(wt.endTime),Ke(wt.endTime))}}},Jt=()=>{if(!Se)return;Se=!1,document.removeEventListener("mousemove",bn),document.removeEventListener("mouseup",_n),document.removeEventListener("touchmove",_r),document.removeEventListener("touchend",Oa),document.removeEventListener("touchcancel",Oa),document.body.style.cursor="",document.body.contains(V)&&document.body.removeChild(V);const kn=c.map(Hn=>Hn.id===p?{...Hn,startTime:xe,endTime:Oe}:Hn),lr=E?"adjust_segment_start":"adjust_segment_end";if(document.dispatchEvent(new CustomEvent("update-segments",{detail:{segments:kn,recordHistory:!0,action:lr}})),Ce===p&&re.current){const Hn=re.current.currentTime,$t=kn.find(na=>na.id===p);if($t){const na=Hn>=$t.startTime&&Hn<=$t.endTime;Ee.debug(`Drag complete - playhead at ${fe(Hn)} is ${na?"inside":"outside"} segment (${fe($t.startTime)} - ${fe($t.endTime)})`);const ur=Hn>=$.startTime&&Hn<=$.endTime;na?(!ur&&na||ur&&na&&($t.startTime!==$.startTime||$t.endTime!==$.endTime))&&St($t):(Rt&&(re.current.pause(),_t(!1),St(null),Mt(!1)),Hn<$t.startTime?(Ee.debug(`Final adjustment - setting display time to segment start: ${fe($t.startTime)}`),mt($t.startTime),Ke($t.startTime)):Hn>$t.endTime&&(Ee.debug(`Final adjustment - setting display time to segment end: ${fe($t.endTime)}`),mt($t.endTime),Ke($t.endTime)))}}},bn=kn=>{vt(kn.clientX)},_n=()=>{Jt()},_r=kn=>{kn.touches.length>0&&(kn.preventDefault(),vt(kn.touches[0].clientX))},Oa=()=>{Jt()};document.addEventListener("mousemove",bn,{passive:!1}),document.addEventListener("mouseup",_n),document.addEventListener("touchmove",_r,{passive:!1}),document.addEventListener("touchend",Oa),document.addEventListener("touchcancel",Oa)},Rr=p=>E=>{if(E.target.classList.contains("clip-segment-handle"))return;E.preventDefault(),E.stopPropagation(),Mt(!1);const b=re.current&&!re.current.paused;G(p);const T=c.find(Oe=>Oe.id===p);if(!T)return;const U=E.currentTarget.getBoundingClientRect(),S=(E.clientX-U.left)/U.width,$=T.startTime+S*(T.endTime-T.startTime),V=Math.max(T.startTime,Math.min(T.endTime,$));if(Ke(V),mt(V),re.current){const Oe=re.current.currentTime,vt=Oe>=T.startTime&&Oe<=T.endTime;Ee.debug(`Segment click - playhead at ${fe(Oe)} is ${vt?"inside":"outside"} segment (${fe(T.startTime)} - ${fe(T.endTime)})`),vt||(Math.abs(Oe-T.startTime)<Math.abs(Oe-T.endTime)?(Ee.debug(`Playhead outside segment - adjusting to segment start: ${fe(T.startTime)}`),mt(T.startTime)):(Ee.debug(`Playhead outside segment - adjusting to segment end: ${fe(T.endTime)}`),mt(T.endTime)))}if(me(V),re.current)if(O&&b){const vt=[...c].sort((Jt,bn)=>Jt.startTime-bn.startTime).findIndex(Jt=>Jt.id===p);if(vt!==-1){const Jt=new CustomEvent("update-segment-index",{detail:{segmentIndex:vt}});document.dispatchEvent(Jt)}re.current.play().then(()=>{_t(!0)}).catch(Jt=>{console.error("Error continuing segments playback after segment click:",Jt)})}else b&&!O&&(St(T),Mt(!1),re.current.play().then(()=>{_t(!0)}).catch(Oe=>{console.error("Error resuming playback after segment click:",Oe)}));const Se=E.clientX,xe=U.top-10;if(he({x:Se,y:xe}),P>1&&I.current&&tt.current){I.current.getBoundingClientRect();const Oe=I.current.clientWidth,vt=tt.current.clientWidth,Jt=V/M*Oe,bn=Math.max(0,Jt-vt/2);tt.current.scrollTo({left:bn,behavior:"smooth"}),setTimeout(()=>{if(I.current&&tt.current){const _n=I.current.getBoundingClientRect(),Oa=V/M*Oe-tt.current.scrollLeft+_n.left;he({x:Oa,y:xe})}},300)}},wr=()=>[...c].sort((E,b)=>E.startTime-b.startTime).map((E,b)=>{const T=E.startTime/M*100,R=(E.endTime-E.startTime)/M*100,U=$S((E.startTime+E.endTime)/2,M);return v.jsxs("div",{className:`clip-segment ${Ce===E.id?"selected":""}`,style:{left:`${T}%`,width:`${R}%`,backgroundColor:U,borderWidth:"2px",borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.5)"},onClick:Rr(E.id),children:[v.jsxs("div",{className:"clip-segment-info",children:[v.jsxs("div",{className:"clip-segment-name",children:["Chapter ",b+1]}),v.jsxs("div",{className:"clip-segment-time",children:[ki(E.startTime)," - ",ki(E.endTime)]}),v.jsxs("div",{className:"clip-segment-duration",children:["Duration: ",ki(E.endTime-E.startTime)]})]}),O?null:v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"clip-segment-handle left",title:"Resize segment start",onMouseDown:S=>{S.stopPropagation(),ta(E.id,!0)(S)},onTouchStart:S=>{S.stopPropagation(),ta(E.id,!0)(S)}}),v.jsx("div",{className:"clip-segment-handle right",title:"Resize segment end",onMouseDown:S=>{S.stopPropagation(),ta(E.id,!1)(S)},onTouchStart:S=>{S.stopPropagation(),ta(E.id,!1)(S)}})]})]},E.id)});q.useEffect(()=>{const p=E=>{const{segmentId:b}=E.detail;if(c.filter(R=>R.id!==b).length===0)G(null),Z(!1),St(null);else if(Ce===b){if(!c.find(S=>S.id===b))return;const U=yn(k);if(G(null),Z(!0),at(U),I.current){const S=I.current.getBoundingClientRect(),$=k/M*100,V=S.left+S.width*($/100);he({x:V,y:S.top-10}),Ee.debug("Segment deleted, showing cutaway tooltip:",{position:fe(k),availableSpace:fe(U)})}}};return document.addEventListener("delete-segment",p),()=>{document.removeEventListener("delete-segment",p)}},[Ce,c,k,M,I]),q.useEffect(()=>{const p=re.current;if(!p)return;const E=()=>{De(!0),_t(!0)},b=()=>{De(!1),_t(!1)};return p.addEventListener("play",E),p.addEventListener("pause",b),()=>{p.removeEventListener("play",E),p.removeEventListener("pause",b)}},[]);const Dr=p=>{if(!I.current)return;const E=I.current.getBoundingClientRect(),T=(p.clientX-E.left)/E.width*M,R=Math.max(0,Math.min(M,T));typeof window<"u"&&(window.lastSeekedPosition=R)},[h,z]=q.useState(!1),Q=q.useRef(!1),ve=p=>{if(yt)return;p.stopPropagation(),p.preventDefault(),z(!0),Q.current=!0,gn(k);const E=T=>{if(!I.current||!tt.current)return;const R=I.current.getBoundingClientRect();let U;if(P>1){const $=tt.current.scrollLeft,V=I.current.clientWidth;U=(T.clientX-R.left+$)/V}else U=(T.clientX-R.left)/R.width;U=Math.max(0,Math.min(1,U));const S=U*M;Ke(S),mt(S),gn(S),typeof window<"u"&&(window.lastSeekedPosition=S),me(S)},b=()=>{z(!1),Q.current=!1,document.removeEventListener("mousemove",E),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",E),document.addEventListener("mouseup",b)},nt=p=>{if(yt)return;p.stopPropagation(),p.preventDefault(),z(!0),Q.current=!0,gn(k);const E=T=>{if(!I.current||!tt.current||!T.touches[0])return;const R=I.current.getBoundingClientRect();let U;if(P>1){const $=tt.current.scrollLeft,V=I.current.clientWidth;U=(T.touches[0].clientX-R.left+$)/V}else U=(T.touches[0].clientX-R.left)/R.width;U=Math.max(0,Math.min(1,U));const S=U*M;Ke(S),mt(S),gn(S),typeof window<"u"&&(window.lastSeekedPosition=S),me(S)},b=()=>{z(!1),Q.current=!1,document.removeEventListener("touchmove",E),document.removeEventListener("touchend",b),document.removeEventListener("touchcancel",b)};document.addEventListener("touchmove",E,{passive:!1}),document.addEventListener("touchend",b),document.addEventListener("touchcancel",b)};return q.useEffect(()=>{},[$a,Ea,ht]),v.jsxs("div",{className:`timeline-container-card ${O?"segments-playback-mode":""}`,children:[v.jsxs("div",{className:"timeline-header",children:[v.jsx("div",{className:"timeline-title",children:v.jsx("span",{className:"timeline-title-text",children:"Timeline"})}),v.jsxs("div",{className:"duration-time",children:["Total Chapters:"," ",v.jsx("span",{children:fe(c.reduce((p,E)=>p+(E.endTime-E.startTime),0))})]})]}),v.jsx("div",{ref:tt,className:`timeline-scroll-container ${O?"segments-playback-mode":""}`,style:{overflow:P>1?"auto":"hidden"},children:v.jsxs("div",{ref:I,className:"timeline-container",onClick:ea,onMouseMove:Dr,style:{width:`${P*100}%`,cursor:"pointer"},children:[v.jsxs("div",{className:"timeline-marker",style:{left:`${La}%`},children:[v.jsx("div",{className:"timeline-marker-head",onClick:p=>{if(p.stopPropagation(),c.find(E=>k>=E.startTime&&k<=E.endTime),Ce||et){G(null),Z(!1);return}else gn(k),Ee.debug("Opening tooltip at:",fe(k))},children:v.jsx("span",{className:"timeline-marker-head-icon",children:Ce||et?"-":"+"})}),O?null:v.jsx("div",{className:`timeline-marker-drag ${h?"dragging":""}`,onMouseDown:ve,onTouchStart:nt,children:v.jsx("span",{className:"timeline-marker-drag-icon",children:"⋮"})})]}),c.length===0&&v.jsxs(v.Fragment,{children:[v.jsx("div",{className:"trim-line-marker",style:{left:`${Zr}%`},children:v.jsx("div",{ref:Gt,className:"trim-handle left"})}),v.jsx("div",{className:"trim-line-marker",style:{left:`${xr}%`},children:v.jsx("div",{ref:Xe,className:"trim-handle right"})})]}),wr(),ti(),Ce!==null&&v.jsxs("div",{className:`segment-tooltip two-row-tooltip ${O?"segments-playback-mode":""}`,style:{position:"absolute",...xm(La)},onClick:p=>{O&&(p.stopPropagation(),p.preventDefault())},children:[Ce&&v.jsx("div",{className:"tooltip-chapter-editor",children:v.jsx("textarea",{className:"tooltip-chapter-input",placeholder:"Add Chapter Text",value:rn,onChange:p=>lt(p.target.value),onBlur:_e,onMouseLeave:_e,rows:2,maxLength:200,onClick:p=>p.stopPropagation(),onMouseDown:p=>p.stopPropagation(),onMouseUp:p=>p.stopPropagation()})}),v.jsxs("div",{className:"tooltip-row",children:[v.jsx("button",{className:`tooltip-time-btn ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Seek -50ms (click or hold)",disabled:O,...O?{}:Qt(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),v.jsx("div",{className:`tooltip-time-display ${O?"disabled":""}`,style:{pointerEvents:O?"none":"auto",cursor:O?"not-allowed":"default",opacity:O?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:p=>{O&&(p.stopPropagation(),p.preventDefault())},children:fe(jn)}),v.jsx("button",{className:`tooltip-time-btn ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Seek +50ms (click or hold)",disabled:O,...O?{}:Qt(.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"+50ms"})]}),v.jsxs("div",{className:"tooltip-row tooltip-actions",children:[v.jsx("button",{className:`tooltip-action-btn delete ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Delete segment",disabled:O,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},onClick:p=>{p.stopPropagation();const E=new CustomEvent("delete-segment",{detail:{segmentId:Ce}});document.dispatchEvent(E)},children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"M3 6h18"}),v.jsx("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),v.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),v.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}),v.jsx("button",{className:`tooltip-action-btn scissors ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Split segment at current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation();const E=new CustomEvent("split-segment",{detail:{segmentId:Ce,time:se}});document.dispatchEvent(E)},children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"6",cy:"6",r:"3"}),v.jsx("circle",{cx:"6",cy:"18",r:"3"}),v.jsx("line",{x1:"20",y1:"4",x2:"8.12",y2:"15.88"}),v.jsx("line",{x1:"14.47",y1:"14.48",x2:"20",y2:"20"}),v.jsx("line",{x1:"8.12",y1:"8.12",x2:"12",y2:"12"})]})}),v.jsx("button",{className:`tooltip-action-btn play-from-start ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Play segment from beginning",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation();const E=c.find(b=>b.id===Ce);if(E&&re.current){if(Mt(!0),Math.abs(re.current.currentTime-E.endTime)<.05){Ee.debug(`Already at end boundary (${fe(re.current.currentTime)}), nudging position back slightly`);const b=Math.max(E.startTime,E.endTime-.1);re.current.currentTime=b,me(b),Ke(b),Ee.debug(`Position adjusted to ${fe(b)}`)}else me(E.startTime),Ke(E.startTime);St(E),re.current.play().then(()=>{_t(!0)}).catch(b=>{console.error("Error playing from beginning:",b)})}},children:v.jsx("img",{src:Cm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn ${Fe?"pause":"play"} ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":Fe?"Pause playback":"Play from current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation(),Fe?re.current&&(re.current.pause(),_t(!1),Mt(!1)):Ze()},children:Fe?v.jsx("img",{src:Em,alt:"Pause",style:{width:"24px",height:"24px"}}):v.jsx("img",{src:Tm,alt:"Play",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn set-in ${O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":"Set start point at current position",disabled:O,onClick:p=>{if(p.stopPropagation(),c.find(b=>b.id===Ce)){const b=c.map(R=>R.id===Ce?{...R,startTime:se<R.endTime-.5?se:R.endTime-.5}:R),T=new CustomEvent("update-segments",{detail:{segments:b,recordHistory:!0,action:"adjust_start_time"}});document.dispatchEvent(T)}},children:v.jsx("img",{src:IS,alt:"Set start point",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn set-out ${O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":"Set end point at current position",disabled:O,onClick:p=>{if(p.stopPropagation(),c.find(b=>b.id===Ce)){const b=c.map(R=>R.id===Ce?{...R,endTime:se>R.startTime+.5?se:R.startTime+.5}:R),T=new CustomEvent("update-segments",{detail:{segments:b,recordHistory:!0,action:"adjust_end_time"}});document.dispatchEvent(T)}},children:v.jsx("img",{src:YS,alt:"Set end point",style:{width:"24px",height:"24px"}})})]})]}),et&&Ce===null&&v.jsxs("div",{className:`empty-space-tooltip two-row-tooltip ${O?"segments-playback-mode":""}`,style:{position:"absolute",...xm(La)},onClick:p=>{O&&(p.stopPropagation(),p.preventDefault())},children:[v.jsxs("div",{className:"tooltip-row",children:[v.jsx("button",{className:`tooltip-time-btn ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Seek -50ms (click or hold)",disabled:O,...O?{}:Qt(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),v.jsx("div",{className:`tooltip-time-display ${O?"disabled":""}`,style:{pointerEvents:O?"none":"auto",cursor:O?"not-allowed":"default",opacity:O?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:p=>{O&&(p.stopPropagation(),p.preventDefault())},children:fe(se)}),v.jsx("button",{className:`tooltip-time-btn ${O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":"Seek +50ms (click or hold)",disabled:O,...O?{}:Qt(.05),children:"+50ms"})]}),v.jsxs("div",{className:"tooltip-row tooltip-actions",children:[v.jsxs("button",{className:`tooltip-action-btn new-segment ${Ue<.5||O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":Ue<.5?"Not enough space for new segment":"Create new segment",disabled:Ue<.5||O,onClick:async p=>{if(p.stopPropagation(),Ue<.5)return;const E=se,b=E+Ue,T={id:Date.now(),chapterTitle:Qe(E,c),startTime:E,endTime:b},R=[...c,T],U=new CustomEvent("update-segments",{detail:{segments:R,recordHistory:!0,action:"create_segment"}});document.dispatchEvent(U),Z(!1),setTimeout(()=>{const S=R[R.length-1];S&&(G(S.id),Ee.debug("Created and selected new segment:",S.id))},100)},children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),v.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),v.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]}),v.jsx("span",{className:"tooltip-btn-text",children:"New"})]}),v.jsx("button",{className:`tooltip-action-btn play-from-start ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Play from beginning of cutaway",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{if(p.stopPropagation(),re.current){const E=se;Mt(!0);const b=[...c].sort((V,Se)=>V.startTime-Se.startTime),T=[...b].reverse().find(V=>V.endTime<E),R=T?T.endTime+.025:0,U=b.find(V=>V.startTime>E),S=U?U.startTime:M,$={id:-999,chapterTitle:"Cutaway",startTime:R,endTime:S};me(R),Ke(R),_t(!1),setTimeout(()=>{St($)},0),setTimeout(()=>{re.current&&re.current.play().then(()=>{_t(!0),Ee.debug("CUTAWAY PLAYBACK STARTED:",fe(R),"to",fe(S),T?`(after segment ${T.id}, offset +25ms from ${fe(T.endTime)})`:"(from video start)",U?`(will stop at segment ${U.id})`:"(will play to end)")}).catch(V=>{console.error("Error playing cutaway:",V)})},50)}},children:v.jsx("img",{src:Cm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn ${Fe?"pause":"play"} ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":Fe?"Pause playback":"Play from here until next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation(),Fe?re.current&&(re.current.pause(),_t(!1),Mt(!1)):Ze()},children:Fe?v.jsx("img",{src:Em,alt:"Pause",style:{width:"24px",height:"24px"}}):v.jsx("img",{src:Tm,alt:"Play",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn segment-end ${O?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":O?"Disabled during preview":"Adjust end of previous segment",disabled:O,onClick:p=>{p.stopPropagation();const b=[...c].sort((T,R)=>T.startTime-R.startTime).filter(T=>T.endTime<=se).sort((T,R)=>R.endTime-T.endTime)[0];if(b){const T=c.map(U=>U.id===b.id?{...U,endTime:se}:U),R=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"adjust_previous_end_time"}});document.dispatchEvent(R),Ee.debug("Adjusted end of previous segment to:",fe(se)),G(b.id),Z(!1)}else if(c.length>0){const T=[...c].sort((S,$)=>S.startTime-$.startTime);let R=!1,U=0;for(let S=0;S<T.length-1;S++){const $=T[S].endTime,V=T[S+1].startTime;if(se>$&&se<V){R=!0,U=$;break}}if(R){const S={id:Date.now(),chapterTitle:Qe(U,c),startTime:U,endTime:se},$=[...c,S],V=new CustomEvent("update-segments",{detail:{segments:$,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(V),Ee.debug("Created new segment in gap from",fe(U),"to",fe(se)),G(S.id),Z(!1)}else if(se<T[0].startTime){const S={id:Date.now(),chapterTitle:Qe(0,c),startTime:0,endTime:se},$=[...c,S],V=new CustomEvent("update-segments",{detail:{segments:$,recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(V),Ee.debug("Created new segment from start to:",fe(se)),G(S.id),Z(!1)}else{const S=[...c].sort(($,V)=>V.endTime-$.endTime)[0];if(S&&S.endTime<M){const $=c.map(Se=>Se.id===S.id?{...Se,endTime:M}:Se),V=new CustomEvent("update-segments",{detail:{segments:$,recordHistory:!0,action:"extend_last_segment"}});document.dispatchEvent(V),G(S.id),Z(!1)}}}else if(se>0){const T={id:Date.now(),chapterTitle:Qe(0,c),startTime:0,endTime:se},R=new CustomEvent("update-segments",{detail:{segments:[T],recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(R),Ee.debug("Created new segment from start to:",fe(se)),G(T.id),Z(!1)}},children:v.jsx("img",{src:qS,alt:"Set end point",style:{width:"24px",height:"24px"}})}),v.jsx("button",{className:`tooltip-action-btn segment-start ${O?"disabled":""}`,"data-tooltip":O?"Disabled during preview":"Adjust start of next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:O?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:O,onClick:p=>{p.stopPropagation();const b=[...c].sort((T,R)=>T.startTime-R.startTime).filter(T=>T.startTime>=se).sort((T,R)=>T.startTime-R.startTime)[0];if(b){const T=c.map(U=>U.id===b.id?{...U,startTime:se}:U),R=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"adjust_next_start_time"}});document.dispatchEvent(R),Ee.debug("Adjusted start of next segment to:",fe(se)),G(b.id),Z(!1)}else if(c.length>0){const T=[...c].sort((S,$)=>S.startTime-$.startTime);let R=!1,U=0;for(let S=0;S<T.length-1;S++){const $=T[S].endTime,V=T[S+1].startTime;if(se>$&&se<V){R=!0,U=V;break}}if(R){const S={id:Date.now(),chapterTitle:Qe(se,c),startTime:se,endTime:U},$=[...c,S],V=new CustomEvent("update-segments",{detail:{segments:$,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(V),Ee.debug("Created new segment in gap from",fe(se),"to",fe(U)),G(S.id),Z(!1)}else if(se<T[0].startTime){const S={id:Date.now(),chapterTitle:Qe(se,c),startTime:se,endTime:T[0].startTime},$=[...c,S],V=new CustomEvent("update-segments",{detail:{segments:$,recordHistory:!0,action:"create_segment_before_first"}});document.dispatchEvent(V),Ee.debug("Created new segment from",fe(se),"to first segment"),G(S.id),Z(!1)}else if(se>T[T.length-1].endTime){const S={id:Date.now(),chapterTitle:Qe(se,c),startTime:se,endTime:M},$=[...c,S],V=new CustomEvent("update-segments",{detail:{segments:$,recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(V),Ee.debug("Created new segment from",fe(se),"to end"),G(S.id),Z(!1)}else{const S=T[0];if(S&&S.startTime>0){const $=c.map(Se=>Se.id===S.id?{...Se,startTime:0}:Se),V=new CustomEvent("update-segments",{detail:{segments:$,recordHistory:!0,action:"extend_first_segment"}});document.dispatchEvent(V),G(S.id),Z(!1)}}}else if(se<M){const T={id:Date.now(),chapterTitle:Qe(se,c),startTime:se,endTime:M},R=new CustomEvent("update-segments",{detail:{segments:[T],recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(R),Ee.debug("Created new segment from",fe(se),"to end"),G(T.id),Z(!1)}},children:v.jsx("img",{src:WS,alt:"Set start point",style:{width:"24px",height:"24px"}})})]})]})]})}),v.jsxs("div",{className:"timeline-controls",children:[v.jsxs("div",{className:"time-navigation",children:[v.jsx("div",{className:"time-nav-label",children:"Go to Time:"}),v.jsx("input",{type:"text",className:"time-input",placeholder:"00:00:00.000","data-tooltip":"Enter time in format: hh:mm:ss.ms",onKeyDown:p=>{if(p.key==="Enter"){const E=p.currentTarget.value;try{const b=E.split(":");let T=0,R=0,U=0,S=0;if(b.length===3){T=parseInt(b[0]),R=parseInt(b[1]);const V=b[2].split(".");U=parseInt(V[0]),V.length>1&&(S=parseInt(V[1].padEnd(3,"0").substring(0,3)))}else if(b.length===2){R=parseInt(b[0]);const V=b[1].split(".");U=parseInt(V[0]),V.length>1&&(S=parseInt(V[1].padEnd(3,"0").substring(0,3)))}const $=T*3600+R*60+U+S/1e3;if(!isNaN($)&&$>=0&&$<=M){me($);const V=Se=>{const xe=c.find(Oe=>{const vt=Se>=Oe.startTime&&Se<=Oe.endTime,Jt=Math.abs(Se-Oe.startTime)<.001,bn=Math.abs(Se-Oe.endTime)<.001;return vt||Jt||bn});if(I.current&&tt.current){const Oe=I.current.getBoundingClientRect();let vt;if(P>1)vt=Oe.left-tt.current.scrollLeft+Se/M*Oe.width;else{const Jt=Se/M;vt=Oe.left+Oe.width*Jt}he({x:vt,y:Oe.top-10}),Ke(Se),xe?(G(xe.id),Z(!1)):(G(null),Z(!0))}};setTimeout(()=>V($),10)}}catch(b){console.error("Invalid time format:",b)}}}}),v.jsx("div",{className:"time-button-group",children:(()=>{const p=()=>{const E=c.find(b=>{const T=k>=b.startTime&&k<=b.endTime,R=Math.abs(k-b.startTime)<.001,U=Math.abs(k-b.endTime)<.001;return T||R||U});if(I.current&&tt.current){const b=I.current.getBoundingClientRect();let T;if(P>1)T=b.left-tt.current.scrollLeft+k/M*b.width;else{const R=k/M;T=b.left+b.width*R}if(he({x:T,y:b.top-10}),Ke(k),E)G(E.id),Z(!1);else{const R=yn(k);at(R),R>=.5?(G(null),Z(!0)):(G(null),Z(!1))}}};return v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"time-button",onClick:()=>{me(k-.01),setTimeout(p,10)},"data-tooltip":"Move back 10ms",children:"-10ms"}),v.jsx("button",{className:"time-button",onClick:()=>{me(k-.001),setTimeout(p,10)},"data-tooltip":"Move back 1ms",children:"-1ms"}),v.jsx("button",{className:"time-button",onClick:()=>{me(k+.001),setTimeout(p,10)},"data-tooltip":"Move forward 1ms",children:"+1ms"}),v.jsx("button",{className:"time-button",onClick:()=>{me(k+.01),setTimeout(p,10)},"data-tooltip":"Move forward 10ms",children:"+10ms"})]})})()})]}),v.jsxs("div",{className:"controls-right",children:[v.jsxs("div",{className:"zoom-dropdown-container",children:[v.jsxs("button",{className:"zoom-button","data-tooltip":"Select zoom level",onClick:()=>We(!Te),children:["Zoom ",P,"x",v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:v.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),Te&&v.jsx("div",{className:"zoom-dropdown",style:{position:"absolute",top:"100%",left:0,zIndex:1e3},children:[1,2,4,8,16,32,64,128,256,512,1024,2048,4096].map(p=>v.jsxs("div",{className:`zoom-option ${P===p?"selected":""}`,onClick:()=>{ae(p),We(!1)},children:[P===p&&v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:v.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Zoom ",p,"x"]},p))})]}),v.jsx("div",{className:"auto-saved-time",style:{color:ee?"#1976d2":"gray",fontSize:"12px",marginLeft:"10px",display:"flex",alignItems:"center",gap:"5px"},children:ee?v.jsxs(v.Fragment,{children:[v.jsx("span",{className:"auto-save-spinner",style:{display:"inline-block",width:"12px",height:"12px",border:"2px solid #f3f3f3",borderTop:"2px solid #1976d2",borderRadius:"50%",animation:"spin 1s linear infinite"}}),"Auto saving..."]}):Y?`Auto saved: ${Y}`:"Not saved yet"}),v.jsx("div",{className:"save-buttons-row",children:v.jsx("button",{onClick:()=>W(!0),className:"save-chapters-button","data-tooltip":c.filter(p=>p.chapterTitle&&p.chapterTitle.trim()).length===0?"Clear all chapters":"Save chapters",children:c.filter(p=>p.chapterTitle&&p.chapterTitle.trim()).length===0?"Clear Chapters":"Save Chapters"})}),v.jsx(Wu,{isOpen:hn,onClose:()=>W(!1),title:"Save Chapters",actions:v.jsxs(v.Fragment,{children:[v.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>W(!1),children:"Cancel"}),v.jsx("button",{className:"modal-button modal-button-primary",onClick:ei,children:c.filter(p=>p.chapterTitle&&p.chapterTitle.trim()).length===0?"Clear Chapters":"Save Chapters"})]}),children:v.jsx("p",{className:"modal-message",children:(()=>{const p=c.filter(E=>E.chapterTitle&&E.chapterTitle.trim()).length;return p===0?"Are you sure you want to clear all chapters? This will remove all existing chapters from the database.":`Are you sure you want to save the chapters? This will save ${p} chapters to the database.`})()})}),v.jsxs(Wu,{isOpen:ye,onClose:()=>{},title:"Processing Video",children:[v.jsx("div",{className:"modal-spinner",children:v.jsx("div",{className:"spinner"})}),v.jsx("p",{className:"modal-message text-center",children:"Please wait while your video is being processed..."})]}),v.jsx(Wu,{isOpen:ht,onClose:()=>{Lt(!1)},title:"Video Edited Successfully",children:v.jsx("div",{className:"modal-success-content",children:v.jsxs("p",{className:"modal-message text-center redirect-message",children:[v.jsx("span",{style:{fontWeight:"bold"},children:"Your chapters have been saved successfully!"}),v.jsx("br",{}),v.jsx("a",{href:$a,className:"media-page-link",style:GS,children:"Click here to navigate to the media page"})," ","or close this window to continue editing the chapters."]})})}),v.jsxs(Wu,{isOpen:Ft,onClose:()=>Ht(!1),title:"Video Processing Error",children:[v.jsxs("div",{className:"modal-error-content",children:[v.jsx("div",{className:"modal-error-icon",children:v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"#F44336",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),v.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),v.jsx("p",{className:"modal-message text-center error-message",children:zt})]}),v.jsx("div",{className:"modal-choices",children:v.jsxs("button",{onClick:()=>Ht(!1),className:"modal-choice-button centered-choice",children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),v.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),"Close"]})})]})]})]}),yt&&v.jsx("div",{className:"mobile-timeline-overlay",children:v.jsxs("div",{className:"mobile-timeline-message",children:[v.jsx("p",{children:"Please play the video first to enable timeline controls"}),v.jsx("div",{className:"mobile-play-icon"})]})})]})},QS=({onSplit:k,onReset:M,onUndo:J,onRedo:Me,onPlay:Ne,canUndo:P,canRedo:c,isPlaying:kt=!1})=>{const[de,pe]=q.useState(!1);q.useEffect(()=>{const ne=()=>{pe(window.innerWidth<=640)};return ne(),window.addEventListener("resize",ne),()=>window.removeEventListener("resize",ne)},[]);const dt=()=>{Ne()};return v.jsx("div",{className:"editing-tools-container",children:v.jsxs("div",{className:"flex-container single-row",children:[v.jsx("div",{className:"button-group play-buttons-group",children:v.jsx("button",{className:"button play-button",onClick:dt,"data-tooltip":kt?"Pause video":"Play full video",style:{fontSize:"0.875rem"},children:kt?v.jsxs(v.Fragment,{children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),v.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),v.jsx("span",{className:"full-text",children:"Pause"}),v.jsx("span",{className:"short-text",children:"Pause"})]}):v.jsxs(v.Fragment,{children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("circle",{cx:"12",cy:"12",r:"10"}),v.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),v.jsx("span",{className:"full-text",children:"Play"}),v.jsx("span",{className:"short-text",children:"Play"})]})})}),v.jsxs("div",{className:"button-group secondary",children:[v.jsxs("button",{className:"button","aria-label":"Undo","data-tooltip":"Undo last action",disabled:!P,onClick:J,children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"M9 14 4 9l5-5"}),v.jsx("path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5v0a5.5 5.5 0 0 1-5.5 5.5H11"})]}),v.jsx("span",{className:"button-text",children:"Undo"})]}),v.jsxs("button",{className:"button","aria-label":"Redo","data-tooltip":"Redo last undone action",disabled:!c,onClick:Me,children:[v.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[v.jsx("path",{d:"m15 14 5-5-5-5"}),v.jsx("path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13"})]}),v.jsx("span",{className:"button-text",children:"Redo"})]}),v.jsx("div",{className:"divider"}),v.jsxs("button",{className:"button",onClick:M,"data-tooltip":"Reset to full video",children:[v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.jsx("path",{fillRule:"evenodd",d:"M4 2a1 1 0 011 1v2.101a7.002 7.002 0 0111.601 2.566 1 1 0 11-1.885.666A5.002 5.002 0 005.999 7H9a1 1 0 010 2H4a1 1 0 01-1-1V3a1 1 0 011-1zm.008 9.057a1 1 0 011.276.61A5.002 5.002 0 0014.001 13H11a1 1 0 110-2h5a1 1 0 011 1v5a1 1 0 11-2 0v-2.101a7.002 7.002 0 01-11.601-2.566 1 1 0 01.61-1.276z",clipRule:"evenodd"})}),v.jsx("span",{className:"reset-text",children:"Reset"})]})]})]})})},KS=({segments:k,selectedSegmentId:M})=>{const J=[...k].sort((P,c)=>P.startTime-c.startTime),Me=P=>{const c=new CustomEvent("delete-segment",{detail:{segmentId:P}});document.dispatchEvent(c)},Ne=P=>`segment-default-color segment-color-${P%8+1}`;return J.find(P=>P.id===M),v.jsxs("div",{className:"clip-segments-container",children:[v.jsx("h3",{className:"clip-segments-title",children:"Chapters"}),J.map((P,c)=>v.jsxs("div",{className:`segment-item ${Ne(c)} ${M===P.id?"selected":""}`,children:[v.jsx("div",{className:"segment-content",children:v.jsxs("div",{className:"segment-info",children:[v.jsx("div",{className:"segment-title",children:P.chapterTitle?v.jsx("span",{className:"chapter-title",children:P.chapterTitle}):v.jsxs("span",{className:"default-title",children:["Chapter ",c+1]})}),v.jsxs("div",{className:"segment-time",children:[ki(P.startTime)," - ",ki(P.endTime)]}),v.jsxs("div",{className:"segment-duration",children:["Duration: ",FS(P.endTime-P.startTime)]})]})}),v.jsx("div",{className:"segment-actions",children:v.jsx("button",{className:"delete-button","aria-label":"Delete Segment","data-tooltip":"Delete this segment",onClick:()=>Me(P.id),children:v.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:v.jsx("path",{fillRule:"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"})})})})]},P.id)),J.length===0&&v.jsx("div",{className:"empty-message",children:"No chapters created yet. Use the split button to create chapter segments."})]})},JS=({videoRef:k,onPlay:M})=>{const[J,Me]=q.useState(!1);q.useEffect(()=>{const c=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent);Me(c)},[]),q.useEffect(()=>{const P=k.current;if(!P)return;const c=()=>{Me(!1)};return P.addEventListener("play",c),()=>{P.removeEventListener("play",c)}},[k]);const Ne=()=>{M()};return J?v.jsx("div",{className:"mobile-play-prompt-overlay",children:v.jsx("div",{className:"mobile-play-prompt",children:v.jsx("button",{className:"mobile-play-button",onClick:Ne,children:"Click to start editing..."})})}):null},ZS=()=>{const k=L=>[...L].sort((le,ee)=>le.startTime-ee.startTime).map((le,ee)=>({...le,chapterTitle:`Chapter ${ee+1}`})),M=L=>{const Y=L.split(":");if(Y.length!==3)return 0;const le=parseInt(Y[0],10)||0,ee=parseInt(Y[1],10)||0,we=parseFloat(Y[2])||0;return le*3600+ee*60+we},J=q.useRef(null),[Me,Ne]=q.useState(0),[P,c]=q.useState(0),[kt,de]=q.useState(!1),[pe,dt]=q.useState(!1),[ne,je]=q.useState(0),[ae,me]=q.useState(0),[re,qt]=q.useState([]),[yt,Fe]=q.useState(1),[De,Ze]=q.useState([]),[O,Qe]=q.useState(null),[I,Gt]=q.useState([]),[Xe,xt]=q.useState(-1),[Vt,Ce]=q.useState(!1),[G,et]=q.useState(!1),[Z,pt]=q.useState(0);q.useEffect(()=>{var L;if(I.length>0){const Y=((L=I[Xe])==null?void 0:L.action)||"";Y!=="save"&&Y!=="save_copy"&&Y!=="save_segments"&&Ce(!0)}},[I,Xe]);const he=()=>{const L=navigator.userAgent||navigator.vendor||window.opera;return/Safari/.test(L)&&!/Chrome/.test(L)&&!/Chromium/.test(L)};q.useEffect(()=>{const L=J.current;if(!L)return;const Y=()=>{Ee.debug("Video loadedmetadata event fired, duration:",L.duration),c(L.duration),me(L.duration),(async()=>{var W;let lt=[];const Qt=typeof window<"u"&&((W=window.MEDIA_DATA)==null?void 0:W.chapters)||[];if(Qt.length>0)for(let ye=0;ye<Qt.length;ye++){const Ve=Qt[ye],ht=M(Ve.startTime),Lt=M(Ve.endTime),Ft={id:ye+1,chapterTitle:Ve.chapterTitle,startTime:ht,endTime:Lt};lt.push(Ft)}else lt=[];const hn={trimStart:0,trimEnd:L.duration,splitPoints:[],clipSegments:lt};Gt([hn]),xt(0),Ze(lt),Ee.debug("Editor initialized with segments:",lt.length)})()},le=()=>{L.duration&&P===0&&Y()},ee=()=>{L.duration&&P===0&&Y()},we=()=>{Ne(L.currentTime)},qe=()=>{de(!0),tn(!0)},ot=()=>{de(!1)},_e=()=>{de(!1),L.currentTime=ne};if(L.addEventListener("loadedmetadata",Y),L.addEventListener("timeupdate",we),L.addEventListener("play",qe),L.addEventListener("pause",ot),L.addEventListener("ended",_e),he()){L.addEventListener("canplay",le),L.addEventListener("loadeddata",ee);const Be=setTimeout(()=>{L.duration&&P===0&&Y()},1e3);return()=>{L.removeEventListener("loadedmetadata",Y),L.removeEventListener("timeupdate",we),L.removeEventListener("play",qe),L.removeEventListener("pause",ot),L.removeEventListener("ended",_e),L.removeEventListener("canplay",le),L.removeEventListener("loadeddata",ee),clearTimeout(Be)}}return()=>{L.removeEventListener("loadedmetadata",Y),L.removeEventListener("timeupdate",we),L.removeEventListener("play",qe),L.removeEventListener("pause",ot),L.removeEventListener("ended",_e)}},[]),q.useEffect(()=>{if(he()&&J.current){const L=J.current,Y=()=>{(async()=>{try{if(Ee.debug("Safari: Attempting auto-initialization on user interaction"),await L.play(),L.pause(),L.duration>0&&De.length===0){Ee.debug("Safari: Successfully initialized metadata with empty state"),c(L.duration),me(L.duration),Ze([]);const we={trimStart:0,trimEnd:L.duration,splitPoints:[],clipSegments:[]};Gt([we]),xt(0)}}catch{}})()},le=()=>{De.length===0&&L.duration===0&&Y()};return document.addEventListener("click",le),document.addEventListener("keydown",le),()=>{document.removeEventListener("click",le),document.removeEventListener("keydown",le)}}},[De.length]);const se=async()=>{if(he()&&J.current&&P===0){const L=J.current;try{return Ee.debug("Safari: Initializing on user interaction"),await L.play(),L.pause(),!0}catch{return!1}}return!1},Ke=L=>{const Y=J.current;if(!Y)return;if(he()&&P===0){se().then(()=>{setTimeout(()=>{Y&&(Y.currentTime=L,Ne(L))},100)});return}const le=!Y.paused;Y.currentTime=L,Ne(L),typeof window<"u"&&(window.lastSeekedPosition=L),le&&Y.play().then(()=>{de(!0)}).catch(ee=>{console.error("Error resuming playback:",ee),de(!1)})},Te=L=>{const Y={trimStart:ne,trimEnd:ae,splitPoints:[...re],clipSegments:JSON.parse(JSON.stringify(De)),action:L||"manual_save"},le=I[Xe],ee=()=>{if(!le||le.clipSegments.length!==Y.clipSegments.length)return!0;for(let ot=0;ot<Y.clipSegments.length;ot++){const _e=le.clipSegments[ot],Be=Y.clipSegments[ot];if(!_e||!Be||Math.abs(_e.startTime-Be.startTime)>.001||Math.abs(_e.endTime-Be.endTime)>.001)return!0}return!1},we=!le||le.trimStart!==Y.trimStart||le.trimEnd!==Y.trimEnd||le.splitPoints.length!==Y.splitPoints.length||ee(),qe=Y.action!==void 0;if(we||qe){const ot=Xe;Gt(_e=>ot<_e.length-1?[..._e.slice(0,ot+1),Y]:[..._e,Y]),xt(_e=>_e+1)}};q.useEffect(()=>{const L=Y=>{if(Y.detail){const{time:le,isStart:ee,recordHistory:we,action:qe}=Y.detail;ee?je(le):me(le),we&&setTimeout(()=>{Te(qe||(ee?"adjust_trim_start":"adjust_trim_end"))},10)}};return document.addEventListener("update-trim",L),()=>{document.removeEventListener("update-trim",L)}},[]),q.useEffect(()=>{const L=ee=>{if(ee.detail&&ee.detail.segments){const we=ee.detail.recordHistory!==!1,qe=ee.detail.action||"update_segments";Ze(ee.detail.segments),we&&setTimeout(()=>{const ot=JSON.parse(JSON.stringify(ee.detail.segments)),_e={trimStart:ne,trimEnd:ae,splitPoints:[...re],clipSegments:ot,action:qe},Be=Xe;Gt(lt=>Be<lt.length-1?[...lt.slice(0,Be+1),_e]:[...lt,_e]),xt(lt=>lt+1)},20)}},Y=async ee=>{const we=ee;if(we.detail&&typeof we.detail.time=="number"&&typeof we.detail.segmentId=="number"){const qe=we.detail.time,ot=we.detail.segmentId;Ke(qe);const _e=De.find(ye=>ye.id===ot);if(!_e||qe<=_e.startTime||qe>=_e.endTime)return;const Be=[...De],lt=Be.findIndex(ye=>ye.id===ot);if(lt===-1)return;Be.splice(lt,1);const Qt={id:Date.now(),chapterTitle:"",startTime:_e.startTime,endTime:qe},hn={id:Date.now()+1,chapterTitle:"",startTime:qe,endTime:_e.endTime};Be.push(Qt,hn);const W=k(Be);Ze(W),Te("split_segment")}},le=async ee=>{var qe;const we=ee;if(we.detail&&typeof we.detail.segmentId=="number"){const ot=we.detail.segmentId,_e=De.filter(Be=>Be.id!==ot);if(_e.length!==De.length){if(_e.length===0)Ze([]),je(0),me(((qe=J.current)==null?void 0:qe.duration)||0),qt([]);else{const Be=k(_e);Ze(Be)}Te("delete_segment")}}};return document.addEventListener("update-segments",L),document.addEventListener("split-segment",Y),document.addEventListener("delete-segment",le),()=>{document.removeEventListener("update-segments",L),document.removeEventListener("split-segment",Y),document.removeEventListener("delete-segment",le)}},[De,P]);const We=L=>{je(L),Te("adjust_trim_start")},Ue=L=>{me(L),Te("adjust_trim_end")},at=async()=>{if(J.current&&!re.includes(Me)){const L=[...re,Me].sort((ee,we)=>ee-we);qt(L);const Y=[];let le=0;for(let ee=0;ee<=L.length;ee++){const we=ee<L.length?L[ee]:P;le<we&&(Y.push({id:Date.now()+ee,chapterTitle:`Chapter ${ee+1}`,startTime:le,endTime:we}),le=we)}Ze(Y),Te("create_split_points")}},Rt=async()=>{je(0),me(P),qt([]),Ze([]),Te("reset_all")},_t=()=>{if(Xe>0){const L=I[Xe-1];Ee.debug(`** UNDO ** to position ${Xe-1}, action: ${L.action}, segments: ${L.clipSegments.length}`),Ee.debug("Segment details after undo:",L.clipSegments.map(Y=>`ID: ${Y.id}, Time: ${fe(Y.startTime)} - ${fe(Y.endTime)}`)),je(L.trimStart),me(L.trimEnd),qt([...L.splitPoints]),Ze(JSON.parse(JSON.stringify(L.clipSegments))),xt(Xe-1),setTimeout(()=>{const Y=new CustomEvent("undo-redo-autosave");document.dispatchEvent(Y)},10)}},Xt=()=>{if(Xe<I.length-1){const L=I[Xe+1];Ee.debug(`** REDO ** to position ${Xe+1}, action: ${L.action}, segments: ${L.clipSegments.length}`),Ee.debug("Segment details after redo:",L.clipSegments.map(Y=>`ID: ${Y.id}, Time: ${fe(Y.startTime)} - ${fe(Y.endTime)}`)),je(L.trimStart),me(L.trimEnd),qt([...L.splitPoints]),Ze(JSON.parse(JSON.stringify(L.clipSegments))),xt(Xe+1),setTimeout(()=>{const Y=new CustomEvent("undo-redo-autosave");document.dispatchEvent(Y)},10)}},St=L=>{Fe(L)},jn=()=>{const L=J.current;L&&(L.muted=!L.muted,dt(!pe))},mt=(L,Y)=>{Ze(le=>le.map(ee=>ee.id===L?{...ee,...Y}:ee)),Ce(!0)},an=async L=>{var Y;try{const le=(Y=window.MEDIA_DATA)==null?void 0:Y.mediaId;if(!le){console.error("No media ID found");return}let ee=L.map(lt=>({startTime:lt.from,endTime:lt.to,chapterTitle:lt.chapterTitle})).sort((lt,Qt)=>{const hn=M(lt.startTime),W=M(Qt.startTime);return hn-W});if(ee.length===1){const lt=ee[0],Qt=M(lt.startTime),hn=M(lt.endTime);Qt<=.1&&Math.abs(hn-P)<=.1&&(Ee.debug("Manual save: Single chapter spans full video - sending empty array"),ee=[])}const we={chapters:ee},qe=Mt(),ot={"Content-Type":"application/json"};qe&&(ot["X-CSRFToken"]=qe);const _e=await fetch(`/api/v1/media/${le}/chapters`,{method:"POST",headers:ot,body:JSON.stringify(we)});if(!_e.ok)throw new Error(`Failed to save chapters: ${_e.status}`);const Be=await _e.json();Ce(!1)}catch(le){console.error("Error saving chapters:",le)}},Mt=()=>{var ee;const le=`; ${document.cookie}`.split("; csrftoken=");return le.length===2&&((ee=le.pop())==null?void 0:ee.split(";").shift())||""},tt=L=>{Qe(L)},rn=L=>{(!on||ln)&&Ke(L)},on=typeof window<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent),[ln,tn]=q.useState(!1);return q.useEffect(()=>{if(!G||!J.current)return;const L=J.current,Y=[...De].sort((ee,we)=>ee.startTime-we.startTime),le=()=>{const ee=Y[Z];if(!ee)return;const we=L.currentTime;if(we<ee.startTime){L.currentTime=ee.startTime;return}if(we>=ee.endTime-.01)if(Z<Y.length-1){const qe=Y[Z+1];L.currentTime=qe.startTime,pt(Z+1),L.paused&&L.play().catch(ot=>{console.error("Error continuing segment playback:",ot)})}else L.pause(),et(!1),pt(0),L.removeEventListener("timeupdate",le)};return L.addEventListener("timeupdate",le),L.paused&&Y.length>0&&(L.currentTime=Y[0].startTime,L.play().catch(console.error)),()=>{L.removeEventListener("timeupdate",le)}},[G,Z,De]),q.useEffect(()=>{const L=Y=>{const{segmentIndex:le}=Y.detail;G&&le!==Z&&pt(le)};return document.addEventListener("update-segment-index",L),()=>{document.removeEventListener("update-segment-index",L)}},[G,Z]),{videoRef:J,currentTime:Me,duration:P,isPlaying:kt,setIsPlaying:de,isMuted:pe,isPlayingSegments:G,trimStart:ne,trimEnd:ae,splitPoints:re,zoomLevel:yt,clipSegments:De,selectedSegmentId:O,hasUnsavedChanges:Vt,historyPosition:Xe,history:I,handleTrimStartChange:We,handleTrimEndChange:Ue,handleZoomChange:St,handleMobileSafeSeek:rn,handleSplit:at,handleReset:Rt,handleUndo:_t,handleRedo:Xt,handlePlaySegments:()=>{const L=J.current;if(!(!L||De.length===0))if(G)L.pause(),et(!1),pt(0);else{et(!0),pt(0);const Y=[...De].sort((le,ee)=>le.startTime-ee.startTime);L.currentTime=Y[0].startTime,L.play().catch(le=>{console.error("Error starting segments playback:",le),et(!1)})}},toggleMute:jn,handleSegmentUpdate:mt,handleChapterSave:an,handleSelectedSegmentChange:tt,isMobile:on,videoInitialized:ln,setVideoInitialized:tn,initializeSafariIfNeeded:se}},e0=()=>{const{videoRef:k,currentTime:M,duration:J,isPlaying:Me,setIsPlaying:Ne,isMuted:P,trimStart:c,trimEnd:kt,splitPoints:de,zoomLevel:pe,clipSegments:dt,selectedSegmentId:ne,hasUnsavedChanges:je,historyPosition:ae,history:me,handleTrimStartChange:re,handleTrimEndChange:qt,handleZoomChange:yt,handleMobileSafeSeek:Fe,handleSplit:De,handleReset:Ze,handleUndo:O,handleRedo:Qe,toggleMute:I,handleSegmentUpdate:Gt,handleChapterSave:Xe,handleSelectedSegmentChange:xt,isMobile:Vt,videoInitialized:Ce,setVideoInitialized:G,initializeSafariIfNeeded:et}=ZS(),Z=async()=>{if(!k.current)return;const pt=k.current;if(Me){pt.pause(),Ne(!1);return}if(J===0&&await et()){setTimeout(()=>Z(),200);return}pt.play().then(()=>{Ne(!0),G(!0),Ee.debug("Continuous playback started from:",fe(pt.currentTime))}).catch(he=>{console.error("Error playing video:",he)})};return q.useEffect(()=>{const pt=he=>{const se=he.target;if(!(se.tagName==="INPUT"||se.tagName==="TEXTAREA"||se.isContentEditable))switch(he.code){case"Space":he.preventDefault(),Z();break;case"ArrowLeft":if(he.preventDefault(),k.current){const Ke=Math.max(M-10,0);Fe(Ke),Ee.debug("Jumped backward 10 seconds to:",fe(Ke))}break;case"ArrowRight":if(he.preventDefault(),k.current){const Ke=Math.min(M+10,J);Fe(Ke),Ee.debug("Jumped forward 10 seconds to:",fe(Ke))}break}};return document.addEventListener("keydown",pt),()=>{document.removeEventListener("keydown",pt)}},[Z,Fe,M,J,k]),v.jsxs("div",{className:"bg-background min-h-screen",children:[v.jsx(JS,{videoRef:k,onPlay:Z}),v.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-6xl",children:[v.jsx(BS,{videoRef:k,currentTime:M,duration:J,isPlaying:Me,isMuted:P,onPlayPause:Z,onSeek:Fe,onToggleMute:I}),v.jsx(QS,{onSplit:De,onReset:Ze,onUndo:O,onRedo:Qe,onPlay:Z,isPlaying:Me,canUndo:ae>0,canRedo:ae<me.length-1}),v.jsx(XS,{currentTime:M,duration:J,thumbnails:[],trimStart:c,trimEnd:kt,splitPoints:de,zoomLevel:pe,clipSegments:dt,selectedSegmentId:ne,onSelectedSegmentChange:xt,onSegmentUpdate:Gt,onChapterSave:Xe,onTrimStartChange:re,onTrimEndChange:qt,onZoomChange:yt,onSeek:Fe,videoRef:k,hasUnsavedChanges:je,isIOSUninitialized:Vt&&!Ce,isPlaying:Me,setIsPlaying:Ne,onPlayPause:Z}),v.jsx(KS,{segments:dt,selectedSegmentId:ne})]})]})};typeof window<"u"&&(window.MEDIA_DATA={videoUrl:"",mediaId:"",posterUrl:""},window.lastSeekedPosition=0);const Rm=()=>{const k=document.getElementById("chapters-editor-root");k&&gm(k).render(v.jsx(e0,{}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Rm):Rm()})();
//# sourceMappingURL=chapters-editor.js.map