mediacms/static/chapters_editor/chapters-editor.js
2025-10-03 11:24:25 +03:00

204 lines
398 KiB
JavaScript

(function(){"use strict";var dm={exports:{}},Kc={exports:{}},al={exports:{}};al.exports;var vm;function U0(){return vm||(vm=1,function(k,R){/**
* @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 Ee="18.3.1",we=Symbol.for("react.element"),xe=Symbol.for("react.portal"),ce=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),ve=Symbol.for("react.provider"),ne=Symbol.for("react.context"),gt=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),Le=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),Fe=Symbol.for("react.lazy"),Ge=Symbol.for("react.offscreen"),W=Symbol.iterator,Tt="@@iterator";function it(s){if(s===null||typeof s!="object")return null;var h=W&&s[W]||s[Tt];return typeof h=="function"?h:null}var _e={current:null},Qe={transition:null},ye={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},U={current:null},K={},At=null;function bt(s){At=s}K.setExtraStackFrame=function(s){At=s},K.getCurrentStack=null,K.getStackAddendum=function(){var s="";At&&(s+=At);var h=K.getCurrentStack;return h&&(s+=h()||""),s};var ot=!1,Dt=!1,Te=!1,I=!1,Je=!1,ie={ReactCurrentDispatcher:_e,ReactCurrentBatchConfig:Qe,ReactCurrentOwner:U};ie.ReactDebugCurrentFrame=K,ie.ReactCurrentActQueue=ye;function pe(s){{for(var h=arguments.length,D=new Array(h>1?h-1:0),O=1;O<h;O++)D[O-1]=arguments[O];G("warn",s,D)}}function q(s){{for(var h=arguments.length,D=new Array(h>1?h-1:0),O=1;O<h;O++)D[O-1]=arguments[O];G("error",s,D)}}function G(s,h,D){{var O=ie.ReactDebugCurrentFrame,Q=O.getStackAddendum();Q!==""&&(h+="%s",D=D.concat([Q]));var Oe=D.map(function(ge){return String(ge)});Oe.unshift("Warning: "+h),Function.prototype.apply.call(console[s],console,Oe)}}var fe={};function dt(s,h){{var D=s.constructor,O=D&&(D.displayName||D.name)||"ReactClass",Q=O+"."+h;if(fe[Q])return;q("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.",h,O),fe[Q]=!0}}var Mt={isMounted:function(s){return!1},enqueueForceUpdate:function(s,h,D){dt(s,"forceUpdate")},enqueueReplaceState:function(s,h,D,O){dt(s,"replaceState")},enqueueSetState:function(s,h,D,O){dt(s,"setState")}},lt=Object.assign,Kt={};Object.freeze(Kt);function Lt(s,h,D){this.props=s,this.context=h,this.refs=Kt,this.updater=D||Mt}Lt.prototype.isReactComponent={},Lt.prototype.setState=function(s,h){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,h,"setState")},Lt.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var Ye={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)."]},Ne=function(s,h){Object.defineProperty(Lt.prototype,s,{get:function(){pe("%s(...) is deprecated in plain JavaScript React classes. %s",h[0],h[1])}})};for(var ze in Ye)Ye.hasOwnProperty(ze)&&Ne(ze,Ye[ze])}function dn(){}dn.prototype=Lt.prototype;function Ze(s,h,D){this.props=s,this.context=h,this.refs=Kt,this.updater=D||Mt}var Yt=Ze.prototype=new dn;Yt.constructor=Ze,lt(Yt,Lt.prototype),Yt.isPureReactComponent=!0;function yt(){var s={current:null};return Object.seal(s),s}var nt=Array.isArray;function an(s){return nt(s)}function un(s){{var h=typeof Symbol=="function"&&Symbol.toStringTag,D=h&&s[Symbol.toStringTag]||s.constructor.name||"Object";return D}}function sn(s){try{return tn(s),!1}catch{return!0}}function tn(s){return""+s}function Pn(s){if(sn(s))return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",un(s)),tn(s)}function Yn(s,h,D){var O=s.displayName;if(O)return O;var Q=h.displayName||h.name||"";return Q!==""?D+"("+Q+")":D}function la(s){return s.displayName||"Context"}function A(s){if(s==null)return null;if(typeof s.tag=="number"&&q("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 ce:return"Fragment";case xe:return"Portal";case X:return"Profiler";case d:return"StrictMode";case ue:return"Suspense";case Le:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case ne:var h=s;return la(h)+".Consumer";case ve:var D=s;return la(D._context)+".Provider";case gt:return Yn(s,s.render,"ForwardRef");case ee:var O=s.displayName||null;return O!==null?O:A(s.type)||"Memo";case Fe:{var Q=s,Oe=Q._payload,ge=Q._init;try{return A(ge(Oe))}catch{return null}}}return null}var Y=Object.prototype.hasOwnProperty,ae={key:!0,ref:!0,__self:!0,__source:!0},me,je,Be;Be={};function at(s){if(Y.call(s,"ref")){var h=Object.getOwnPropertyDescriptor(s,"ref").get;if(h&&h.isReactWarning)return!1}return s.ref!==void 0}function We(s){if(Y.call(s,"key")){var h=Object.getOwnPropertyDescriptor(s,"key").get;if(h&&h.isReactWarning)return!1}return s.key!==void 0}function St(s,h){var D=function(){me||(me=!0,q("%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)",h))};D.isReactWarning=!0,Object.defineProperty(s,"key",{get:D,configurable:!0})}function Zt(s,h){var D=function(){je||(je=!0,q("%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)",h))};D.isReactWarning=!0,Object.defineProperty(s,"ref",{get:D,configurable:!0})}function Z(s){if(typeof s.ref=="string"&&U.current&&s.__self&&U.current.stateNode!==s.__self){var h=A(U.current.type);Be[h]||(q('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',h,s.ref),Be[h]=!0)}}var be=function(s,h,D,O,Q,Oe,ge){var Ie={$$typeof:we,type:s,key:h,ref:D,props:ge,_owner:Oe};return Ie._store={},Object.defineProperty(Ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:O}),Object.defineProperty(Ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Q}),Object.freeze&&(Object.freeze(Ie.props),Object.freeze(Ie)),Ie};function ke(s,h,D){var O,Q={},Oe=null,ge=null,Ie=null,vt=null;if(h!=null){at(h)&&(ge=h.ref,Z(h)),We(h)&&(Pn(h.key),Oe=""+h.key),Ie=h.__self===void 0?null:h.__self,vt=h.__source===void 0?null:h.__source;for(O in h)Y.call(h,O)&&!ae.hasOwnProperty(O)&&(Q[O]=h[O])}var Ut=arguments.length-2;if(Ut===1)Q.children=D;else if(Ut>1){for(var It=Array(Ut),qt=0;qt<Ut;qt++)It[qt]=arguments[qt+2];Object.freeze&&Object.freeze(It),Q.children=It}if(s&&s.defaultProps){var st=s.defaultProps;for(O in st)Q[O]===void 0&&(Q[O]=st[O])}if(Oe||ge){var en=typeof s=="function"?s.displayName||s.name||"Unknown":s;Oe&&St(Q,en),ge&&Zt(Q,en)}return be(s,Oe,ge,Ie,vt,U.current,Q)}function Ke(s,h){var D=be(s.type,h,s.ref,s._self,s._source,s._owner,s.props);return D}function ut(s,h,D){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var O,Q=lt({},s.props),Oe=s.key,ge=s.ref,Ie=s._self,vt=s._source,Ut=s._owner;if(h!=null){at(h)&&(ge=h.ref,Ut=U.current),We(h)&&(Pn(h.key),Oe=""+h.key);var It;s.type&&s.type.defaultProps&&(It=s.type.defaultProps);for(O in h)Y.call(h,O)&&!ae.hasOwnProperty(O)&&(h[O]===void 0&&It!==void 0?Q[O]=It[O]:Q[O]=h[O])}var qt=arguments.length-2;if(qt===1)Q.children=D;else if(qt>1){for(var st=Array(qt),en=0;en<qt;en++)st[en]=arguments[en+2];Q.children=st}return be(s.type,Oe,ge,Ie,vt,Ut,Q)}function xt(s){return typeof s=="object"&&s!==null&&s.$$typeof===we}var Nt=".",Xt=":";function Vt(s){var h=/[=:]/g,D={"=":"=0",":":"=2"},O=s.replace(h,function(Q){return D[Q]});return"$"+O}var jt=!1,Bt=/\/+/g;function tr(s){return s.replace(Bt,"$&/")}function ya(s,h){return typeof s=="object"&&s!==null&&s.key!=null?(Pn(s.key),Vt(""+s.key)):h.toString(36)}function hn(s,h,D,O,Q){var Oe=typeof s;(Oe==="undefined"||Oe==="boolean")&&(s=null);var ge=!1;if(s===null)ge=!0;else switch(Oe){case"string":case"number":ge=!0;break;case"object":switch(s.$$typeof){case we:case xe:ge=!0}}if(ge){var Ie=s,vt=Q(Ie),Ut=O===""?Nt+ya(Ie,0):O;if(an(vt)){var It="";Ut!=null&&(It=tr(Ut)+"/"),hn(vt,h,It,"",function(cf){return cf})}else vt!=null&&(xt(vt)&&(vt.key&&(!Ie||Ie.key!==vt.key)&&Pn(vt.key),vt=Ke(vt,D+(vt.key&&(!Ie||Ie.key!==vt.key)?tr(""+vt.key)+"/":"")+Ut)),h.push(vt));return 1}var qt,st,en=0,vn=O===""?Nt:O+Xt;if(an(s))for(var xi=0;xi<s.length;xi++)qt=s[xi],st=vn+ya(qt,xi),en+=hn(qt,h,D,st,Q);else{var vl=it(s);if(typeof vl=="function"){var Tr=s;vl===Tr.entries&&(jt||pe("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),jt=!0);for(var pl=vl.call(Tr),ml,sf=0;!(ml=pl.next()).done;)qt=ml.value,st=vn+ya(qt,sf++),en+=hn(qt,h,D,st,Q)}else if(Oe==="object"){var Ku=String(s);throw new Error("Objects are not valid as a React child (found: "+(Ku==="[object Object]"?"object with keys {"+Object.keys(s).join(", ")+"}":Ku)+"). If you meant to render a collection of children, use an array instead.")}}return en}function ua(s,h,D){if(s==null)return s;var O=[],Q=0;return hn(s,O,"","",function(Oe){return h.call(D,Oe,Q++)}),O}function Br(s){var h=0;return ua(s,function(){h++}),h}function za(s,h,D){ua(s,function(){h.apply(this,arguments)},D)}function yr(s){return ua(s,function(h){return h})||[]}function $r(s){if(!xt(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function Pr(s){var h={$$typeof:ne,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};h.Provider={$$typeof:ve,_context:h};var D=!1,O=!1,Q=!1;{var Oe={$$typeof:ne,_context:h};Object.defineProperties(Oe,{Provider:{get:function(){return O||(O=!0,q("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),h.Provider},set:function(ge){h.Provider=ge}},_currentValue:{get:function(){return h._currentValue},set:function(ge){h._currentValue=ge}},_currentValue2:{get:function(){return h._currentValue2},set:function(ge){h._currentValue2=ge}},_threadCount:{get:function(){return h._threadCount},set:function(ge){h._threadCount=ge}},Consumer:{get:function(){return D||(D=!0,q("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),h.Consumer}},displayName:{get:function(){return h.displayName},set:function(ge){Q||(pe("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",ge),Q=!0)}}}),h.Consumer=Oe}return h._currentRenderer=null,h._currentRenderer2=null,h}var ga=-1,Rn=0,wn=1,Da=2;function gr(s){if(s._status===ga){var h=s._result,D=h();if(D.then(function(Oe){if(s._status===Rn||s._status===ga){var ge=s;ge._status=wn,ge._result=Oe}},function(Oe){if(s._status===Rn||s._status===ga){var ge=s;ge._status=Da,ge._result=Oe}}),s._status===ga){var O=s;O._status=Rn,O._result=D}}if(s._status===wn){var Q=s._result;return Q===void 0&&q(`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?`,Q),"default"in Q||q(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))`,Q),Q.default}else throw s._result}function y(s){var h={_status:ga,_result:s},D={$$typeof:Fe,_payload:h,_init:gr};{var O,Q;Object.defineProperties(D,{defaultProps:{configurable:!0,get:function(){return O},set:function(Oe){q("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."),O=Oe,Object.defineProperty(D,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Q},set:function(Oe){q("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."),Q=Oe,Object.defineProperty(D,"propTypes",{enumerable:!0})}}})}return D}function F(s){s!=null&&s.$$typeof===ee?q("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?q("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&q("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)&&q("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var h={$$typeof:gt,render:s};{var D;Object.defineProperty(h,"displayName",{enumerable:!1,configurable:!0,get:function(){return D},set:function(O){D=O,!s.name&&!s.displayName&&(s.displayName=O)}})}return h}var c;c=Symbol.for("react.module.reference");function m(s){return!!(typeof s=="string"||typeof s=="function"||s===ce||s===X||Je||s===d||s===ue||s===Le||I||s===Ge||ot||Dt||Te||typeof s=="object"&&s!==null&&(s.$$typeof===Fe||s.$$typeof===ee||s.$$typeof===ve||s.$$typeof===ne||s.$$typeof===gt||s.$$typeof===c||s.getModuleId!==void 0))}function g(s,h){m(s)||q("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var D={$$typeof:ee,type:s,compare:h===void 0?null:h};{var O;Object.defineProperty(D,"displayName",{enumerable:!1,configurable:!0,get:function(){return O},set:function(Q){O=Q,!s.name&&!s.displayName&&(s.displayName=Q)}})}return D}function E(){var s=_e.current;return s===null&&q(`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 T(s){var h=E();if(s._context!==void 0){var D=s._context;D.Consumer===s?q("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&&q("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return h.useContext(s)}function M(s){var h=E();return h.useState(s)}function L(s,h,D){var O=E();return O.useReducer(s,h,D)}function z(s){var h=E();return h.useRef(s)}function Ue(s,h){var D=E();return D.useEffect(s,h)}function $(s,h){var D=E();return D.useInsertionEffect(s,h)}function Ce(s,h){var D=E();return D.useLayoutEffect(s,h)}function et(s,h){var D=E();return D.useCallback(s,h)}function rt(s,h){var D=E();return D.useMemo(s,h)}function Wt(s,h,D){var O=E();return O.useImperativeHandle(s,h,D)}function $t(s,h){{var D=E();return D.useDebugValue(s,h)}}function Ve(){var s=E();return s.useTransition()}function rn(s){var h=E();return h.useDeferredValue(s)}function Fa(){var s=E();return s.useId()}function An(s,h,D){var O=E();return O.useSyncExternalStore(s,h,D)}var Ot=0,sa,nr,no,Yr,ba,_a,bi;function Wr(){}Wr.__reactDisabledLog=!0;function cn(){{if(Ot===0){sa=console.log,nr=console.info,no=console.warn,Yr=console.error,ba=console.group,_a=console.groupCollapsed,bi=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Wr,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Ot++}}function ft(){{if(Ot--,Ot===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:lt({},s,{value:sa}),info:lt({},s,{value:nr}),warn:lt({},s,{value:no}),error:lt({},s,{value:Yr}),group:lt({},s,{value:ba}),groupCollapsed:lt({},s,{value:_a}),groupEnd:lt({},s,{value:bi})})}Ot<0&&q("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ca=ie.ReactCurrentDispatcher,Wn;function ar(s,h,D){{if(Wn===void 0)try{throw Error()}catch(Q){var O=Q.stack.trim().match(/\n( *(at )?)/);Wn=O&&O[1]||""}return`
`+Wn+s}}var Si=!1,ao;{var il=typeof WeakMap=="function"?WeakMap:Map;ao=new il}function Yu(s,h){if(!s||Si)return"";{var D=ao.get(s);if(D!==void 0)return D}var O;Si=!0;var Q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Oe;Oe=ca.current,ca.current=null,cn();try{if(h){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(vn){O=vn}Reflect.construct(s,[],ge)}else{try{ge.call()}catch(vn){O=vn}s.call(ge.prototype)}}else{try{throw Error()}catch(vn){O=vn}s()}}catch(vn){if(vn&&O&&typeof vn.stack=="string"){for(var Ie=vn.stack.split(`
`),vt=O.stack.split(`
`),Ut=Ie.length-1,It=vt.length-1;Ut>=1&&It>=0&&Ie[Ut]!==vt[It];)It--;for(;Ut>=1&&It>=0;Ut--,It--)if(Ie[Ut]!==vt[It]){if(Ut!==1||It!==1)do if(Ut--,It--,It<0||Ie[Ut]!==vt[It]){var qt=`
`+Ie[Ut].replace(" at new "," at ");return s.displayName&&qt.includes("<anonymous>")&&(qt=qt.replace("<anonymous>",s.displayName)),typeof s=="function"&&ao.set(s,qt),qt}while(Ut>=1&&It>=0);break}}}finally{Si=!1,ca.current=Oe,ft(),Error.prepareStackTrace=Q}var st=s?s.displayName||s.name:"",en=st?ar(st):"";return typeof s=="function"&&ao.set(s,en),en}function ol(s,h,D){return Yu(s,!1)}function af(s){var h=s.prototype;return!!(h&&h.isReactComponent)}function Ti(s,h,D){if(s==null)return"";if(typeof s=="function")return Yu(s,af(s));if(typeof s=="string")return ar(s);switch(s){case ue:return ar("Suspense");case Le:return ar("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case gt:return ol(s.render);case ee:return Ti(s.type,h,D);case Fe:{var O=s,Q=O._payload,Oe=O._init;try{return Ti(Oe(Q),h,D)}catch{}}}return""}var Wu={},ll=ie.ReactDebugCurrentFrame;function Rt(s){if(s){var h=s._owner,D=Ti(s.type,s._source,h?h.type:null);ll.setExtraStackFrame(D)}else ll.setExtraStackFrame(null)}function rf(s,h,D,O,Q){{var Oe=Function.call.bind(Y);for(var ge in s)if(Oe(s,ge)){var Ie=void 0;try{if(typeof s[ge]!="function"){var vt=Error((O||"React class")+": "+D+" type `"+ge+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[ge]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw vt.name="Invariant Violation",vt}Ie=s[ge](h,ge,O,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ut){Ie=Ut}Ie&&!(Ie instanceof Error)&&(Rt(Q),q("%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).",O||"React class",D,ge,typeof Ie),Rt(null)),Ie instanceof Error&&!(Ie.message in Wu)&&(Wu[Ie.message]=!0,Rt(Q),q("Failed %s type: %s",D,Ie.message),Rt(null))}}}function br(s){if(s){var h=s._owner,D=Ti(s.type,s._source,h?h.type:null);bt(D)}else bt(null)}var Xe;Xe=!1;function ul(){if(U.current){var s=A(U.current.type);if(s)return`
Check the render method of \``+s+"`."}return""}function Zn(s){if(s!==void 0){var h=s.fileName.replace(/^.*[\\\/]/,""),D=s.lineNumber;return`
Check your code at `+h+":"+D+"."}return""}function Ei(s){return s!=null?Zn(s.__source):""}var Ir={};function of(s){var h=ul();if(!h){var D=typeof s=="string"?s:s.displayName||s.name;D&&(h=`
Check the top-level render call using <`+D+">.")}return h}function Dn(s,h){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var D=of(h);if(!Ir[D]){Ir[D]=!0;var O="";s&&s._owner&&s._owner!==U.current&&(O=" It was passed a child from "+A(s._owner.type)+"."),br(s),q('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',D,O),br(null)}}}function Jt(s,h){if(typeof s=="object"){if(an(s))for(var D=0;D<s.length;D++){var O=s[D];xt(O)&&Dn(O,h)}else if(xt(s))s._store&&(s._store.validated=!0);else if(s){var Q=it(s);if(typeof Q=="function"&&Q!==s.entries)for(var Oe=Q.call(s),ge;!(ge=Oe.next()).done;)xt(ge.value)&&Dn(ge.value,h)}}}function Iu(s){{var h=s.type;if(h==null||typeof h=="string")return;var D;if(typeof h=="function")D=h.propTypes;else if(typeof h=="object"&&(h.$$typeof===gt||h.$$typeof===ee))D=h.propTypes;else return;if(D){var O=A(h);rf(D,s.props,"prop",O,s)}else if(h.PropTypes!==void 0&&!Xe){Xe=!0;var Q=A(h);q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Q||"Unknown")}typeof h.getDefaultProps=="function"&&!h.getDefaultProps.isReactClassApproved&&q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ka(s){{for(var h=Object.keys(s.props),D=0;D<h.length;D++){var O=h[D];if(O!=="children"&&O!=="key"){br(s),q("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",O),br(null);break}}s.ref!==null&&(br(s),q("Invalid attribute `ref` supplied to `React.Fragment`."),br(null))}}function Jn(s,h,D){var O=m(s);if(!O){var Q="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(Q+=" 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 Oe=Ei(h);Oe?Q+=Oe:Q+=ul();var ge;s===null?ge="null":an(s)?ge="array":s!==void 0&&s.$$typeof===we?(ge="<"+(A(s.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof s,q("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,Q)}var Ie=ke.apply(this,arguments);if(Ie==null)return Ie;if(O)for(var vt=2;vt<arguments.length;vt++)Jt(arguments[vt],s);return s===ce?ka(Ie):Iu(Ie),Ie}var Va=!1;function lf(s){var h=Jn.bind(null,s);return h.type=s,Va||(Va=!0,pe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(h,"type",{enumerable:!1,get:function(){return pe("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),h}function sl(s,h,D){for(var O=ut.apply(this,arguments),Q=2;Q<arguments.length;Q++)Jt(arguments[Q],O.type);return Iu(O),O}function qu(s,h){var D=Qe.transition;Qe.transition={};var O=Qe.transition;Qe.transition._updatedFibers=new Set;try{s()}finally{if(Qe.transition=D,D===null&&O._updatedFibers){var Q=O._updatedFibers.size;Q>10&&pe("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."),O._updatedFibers.clear()}}}var cl=!1,ro=null;function uf(s){if(ro===null)try{var h=("require"+Math.random()).slice(0,7),D=k&&k[h];ro=D.call(k,"timers").setImmediate}catch{ro=function(Q){cl===!1&&(cl=!0,typeof MessageChannel>"u"&&q("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 Oe=new MessageChannel;Oe.port1.onmessage=Q,Oe.port2.postMessage(void 0)}}return ro(s)}var qr=0,Ci=!1;function fl(s){{var h=qr;qr++,ye.current===null&&(ye.current=[]);var D=ye.isBatchingLegacy,O;try{if(ye.isBatchingLegacy=!0,O=s(),!D&&ye.didScheduleLegacyUpdate){var Q=ye.current;Q!==null&&(ye.didScheduleLegacyUpdate=!1,lo(Q))}}catch(st){throw Sr(h),st}finally{ye.isBatchingLegacy=D}if(O!==null&&typeof O=="object"&&typeof O.then=="function"){var Oe=O,ge=!1,Ie={then:function(st,en){ge=!0,Oe.then(function(vn){Sr(h),qr===0?io(vn,st,en):st(vn)},function(vn){Sr(h),en(vn)})}};return!Ci&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){ge||(Ci=!0,q("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 () => ...);"))}),Ie}else{var vt=O;if(Sr(h),qr===0){var Ut=ye.current;Ut!==null&&(lo(Ut),ye.current=null);var It={then:function(st,en){ye.current===null?(ye.current=[],io(vt,st,en)):st(vt)}};return It}else{var qt={then:function(st,en){st(vt)}};return qt}}}}function Sr(s){s!==qr-1&&q("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),qr=s}function io(s,h,D){{var O=ye.current;if(O!==null)try{lo(O),uf(function(){O.length===0?(ye.current=null,h(s)):io(s,h,D)})}catch(Q){D(Q)}else h(s)}}var oo=!1;function lo(s){if(!oo){oo=!0;var h=0;try{for(;h<s.length;h++){var D=s[h];do D=D(!0);while(D!==null)}s.length=0}catch(O){throw s=s.slice(h+1),O}finally{oo=!1}}}var Gu=Jn,Xu=sl,dl=lf,Qu={map:ua,forEach:za,count:Br,toArray:yr,only:$r};R.Children=Qu,R.Component=Lt,R.Fragment=ce,R.Profiler=X,R.PureComponent=Ze,R.StrictMode=d,R.Suspense=ue,R.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ie,R.act=fl,R.cloneElement=Xu,R.createContext=Pr,R.createElement=Gu,R.createFactory=dl,R.createRef=yt,R.forwardRef=F,R.isValidElement=xt,R.lazy=y,R.memo=g,R.startTransition=qu,R.unstable_act=fl,R.useCallback=et,R.useContext=T,R.useDebugValue=$t,R.useDeferredValue=rn,R.useEffect=Ue,R.useId=Fa,R.useImperativeHandle=Wt,R.useInsertionEffect=$,R.useLayoutEffect=Ce,R.useMemo=rt,R.useReducer=L,R.useRef=z,R.useState=M,R.useSyncExternalStore=An,R.useTransition=Ve,R.version=Ee,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(al,al.exports)),al.exports}var pm;function Zc(){return pm||(pm=1,Kc.exports=U0()),Kc.exports}var rl={},mm;function H0(){if(mm)return rl;mm=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(),R=Symbol.for("react.element"),Ee=Symbol.for("react.portal"),we=Symbol.for("react.fragment"),xe=Symbol.for("react.strict_mode"),ce=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),X=Symbol.for("react.context"),ve=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),gt=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),Le=Symbol.for("react.lazy"),ee=Symbol.for("react.offscreen"),Fe=Symbol.iterator,Ge="@@iterator";function W(c){if(c===null||typeof c!="object")return null;var m=Fe&&c[Fe]||c[Ge];return typeof m=="function"?m:null}var Tt=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function it(c){{for(var m=arguments.length,g=new Array(m>1?m-1:0),E=1;E<m;E++)g[E-1]=arguments[E];_e("error",c,g)}}function _e(c,m,g){{var E=Tt.ReactDebugCurrentFrame,T=E.getStackAddendum();T!==""&&(m+="%s",g=g.concat([T]));var M=g.map(function(L){return String(L)});M.unshift("Warning: "+m),Function.prototype.apply.call(console[c],console,M)}}var Qe=!1,ye=!1,U=!1,K=!1,At=!1,bt;bt=Symbol.for("react.module.reference");function ot(c){return!!(typeof c=="string"||typeof c=="function"||c===we||c===ce||At||c===xe||c===ne||c===gt||K||c===ee||Qe||ye||U||typeof c=="object"&&c!==null&&(c.$$typeof===Le||c.$$typeof===ue||c.$$typeof===d||c.$$typeof===X||c.$$typeof===ve||c.$$typeof===bt||c.getModuleId!==void 0))}function Dt(c,m,g){var E=c.displayName;if(E)return E;var T=m.displayName||m.name||"";return T!==""?g+"("+T+")":g}function Te(c){return c.displayName||"Context"}function I(c){if(c==null)return null;if(typeof c.tag=="number"&&it("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case we:return"Fragment";case Ee:return"Portal";case ce:return"Profiler";case xe:return"StrictMode";case ne:return"Suspense";case gt:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case X:var m=c;return Te(m)+".Consumer";case d:var g=c;return Te(g._context)+".Provider";case ve:return Dt(c,c.render,"ForwardRef");case ue:var E=c.displayName||null;return E!==null?E:I(c.type)||"Memo";case Le:{var T=c,M=T._payload,L=T._init;try{return I(L(M))}catch{return null}}}return null}var Je=Object.assign,ie=0,pe,q,G,fe,dt,Mt,lt;function Kt(){}Kt.__reactDisabledLog=!0;function Lt(){{if(ie===0){pe=console.log,q=console.info,G=console.warn,fe=console.error,dt=console.group,Mt=console.groupCollapsed,lt=console.groupEnd;var c={configurable:!0,enumerable:!0,value:Kt,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}ie++}}function Ye(){{if(ie--,ie===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Je({},c,{value:pe}),info:Je({},c,{value:q}),warn:Je({},c,{value:G}),error:Je({},c,{value:fe}),group:Je({},c,{value:dt}),groupCollapsed:Je({},c,{value:Mt}),groupEnd:Je({},c,{value:lt})})}ie<0&&it("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ne=Tt.ReactCurrentDispatcher,ze;function dn(c,m,g){{if(ze===void 0)try{throw Error()}catch(T){var E=T.stack.trim().match(/\n( *(at )?)/);ze=E&&E[1]||""}return`
`+ze+c}}var Ze=!1,Yt;{var yt=typeof WeakMap=="function"?WeakMap:Map;Yt=new yt}function nt(c,m){if(!c||Ze)return"";{var g=Yt.get(c);if(g!==void 0)return g}var E;Ze=!0;var T=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var M;M=Ne.current,Ne.current=null,Lt();try{if(m){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch($t){E=$t}Reflect.construct(c,[],L)}else{try{L.call()}catch($t){E=$t}c.call(L.prototype)}}else{try{throw Error()}catch($t){E=$t}c()}}catch($t){if($t&&E&&typeof $t.stack=="string"){for(var z=$t.stack.split(`
`),Ue=E.stack.split(`
`),$=z.length-1,Ce=Ue.length-1;$>=1&&Ce>=0&&z[$]!==Ue[Ce];)Ce--;for(;$>=1&&Ce>=0;$--,Ce--)if(z[$]!==Ue[Ce]){if($!==1||Ce!==1)do if($--,Ce--,Ce<0||z[$]!==Ue[Ce]){var et=`
`+z[$].replace(" at new "," at ");return c.displayName&&et.includes("<anonymous>")&&(et=et.replace("<anonymous>",c.displayName)),typeof c=="function"&&Yt.set(c,et),et}while($>=1&&Ce>=0);break}}}finally{Ze=!1,Ne.current=M,Ye(),Error.prepareStackTrace=T}var rt=c?c.displayName||c.name:"",Wt=rt?dn(rt):"";return typeof c=="function"&&Yt.set(c,Wt),Wt}function an(c,m,g){return nt(c,!1)}function un(c){var m=c.prototype;return!!(m&&m.isReactComponent)}function sn(c,m,g){if(c==null)return"";if(typeof c=="function")return nt(c,un(c));if(typeof c=="string")return dn(c);switch(c){case ne:return dn("Suspense");case gt:return dn("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case ve:return an(c.render);case ue:return sn(c.type,m,g);case Le:{var E=c,T=E._payload,M=E._init;try{return sn(M(T),m,g)}catch{}}}return""}var tn=Object.prototype.hasOwnProperty,Pn={},Yn=Tt.ReactDebugCurrentFrame;function la(c){if(c){var m=c._owner,g=sn(c.type,c._source,m?m.type:null);Yn.setExtraStackFrame(g)}else Yn.setExtraStackFrame(null)}function A(c,m,g,E,T){{var M=Function.call.bind(tn);for(var L in c)if(M(c,L)){var z=void 0;try{if(typeof c[L]!="function"){var Ue=Error((E||"React class")+": "+g+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ue.name="Invariant Violation",Ue}z=c[L](m,L,E,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($){z=$}z&&!(z instanceof Error)&&(la(T),it("%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).",E||"React class",g,L,typeof z),la(null)),z instanceof Error&&!(z.message in Pn)&&(Pn[z.message]=!0,la(T),it("Failed %s type: %s",g,z.message),la(null))}}}var Y=Array.isArray;function ae(c){return Y(c)}function me(c){{var m=typeof Symbol=="function"&&Symbol.toStringTag,g=m&&c[Symbol.toStringTag]||c.constructor.name||"Object";return g}}function je(c){try{return Be(c),!1}catch{return!0}}function Be(c){return""+c}function at(c){if(je(c))return it("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",me(c)),Be(c)}var We=Tt.ReactCurrentOwner,St={key:!0,ref:!0,__self:!0,__source:!0},Zt,Z;function be(c){if(tn.call(c,"ref")){var m=Object.getOwnPropertyDescriptor(c,"ref").get;if(m&&m.isReactWarning)return!1}return c.ref!==void 0}function ke(c){if(tn.call(c,"key")){var m=Object.getOwnPropertyDescriptor(c,"key").get;if(m&&m.isReactWarning)return!1}return c.key!==void 0}function Ke(c,m){typeof c.ref=="string"&&We.current}function ut(c,m){{var g=function(){Zt||(Zt=!0,it("%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))};g.isReactWarning=!0,Object.defineProperty(c,"key",{get:g,configurable:!0})}}function xt(c,m){{var g=function(){Z||(Z=!0,it("%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))};g.isReactWarning=!0,Object.defineProperty(c,"ref",{get:g,configurable:!0})}}var Nt=function(c,m,g,E,T,M,L){var z={$$typeof:R,type:c,key:m,ref:g,props:L,_owner:M};return z._store={},Object.defineProperty(z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(z,"_self",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.defineProperty(z,"_source",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.freeze&&(Object.freeze(z.props),Object.freeze(z)),z};function Xt(c,m,g,E,T){{var M,L={},z=null,Ue=null;g!==void 0&&(at(g),z=""+g),ke(m)&&(at(m.key),z=""+m.key),be(m)&&(Ue=m.ref,Ke(m,T));for(M in m)tn.call(m,M)&&!St.hasOwnProperty(M)&&(L[M]=m[M]);if(c&&c.defaultProps){var $=c.defaultProps;for(M in $)L[M]===void 0&&(L[M]=$[M])}if(z||Ue){var Ce=typeof c=="function"?c.displayName||c.name||"Unknown":c;z&&ut(L,Ce),Ue&&xt(L,Ce)}return Nt(c,z,Ue,T,E,We.current,L)}}var Vt=Tt.ReactCurrentOwner,jt=Tt.ReactDebugCurrentFrame;function Bt(c){if(c){var m=c._owner,g=sn(c.type,c._source,m?m.type:null);jt.setExtraStackFrame(g)}else jt.setExtraStackFrame(null)}var tr;tr=!1;function ya(c){return typeof c=="object"&&c!==null&&c.$$typeof===R}function hn(){{if(Vt.current){var c=I(Vt.current.type);if(c)return`
Check the render method of \``+c+"`."}return""}}function ua(c){return""}var Br={};function za(c){{var m=hn();if(!m){var g=typeof c=="string"?c:c.displayName||c.name;g&&(m=`
Check the top-level render call using <`+g+">.")}return m}}function yr(c,m){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var g=za(m);if(Br[g])return;Br[g]=!0;var E="";c&&c._owner&&c._owner!==Vt.current&&(E=" It was passed a child from "+I(c._owner.type)+"."),Bt(c),it('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',g,E),Bt(null)}}function $r(c,m){{if(typeof c!="object")return;if(ae(c))for(var g=0;g<c.length;g++){var E=c[g];ya(E)&&yr(E,m)}else if(ya(c))c._store&&(c._store.validated=!0);else if(c){var T=W(c);if(typeof T=="function"&&T!==c.entries)for(var M=T.call(c),L;!(L=M.next()).done;)ya(L.value)&&yr(L.value,m)}}}function Pr(c){{var m=c.type;if(m==null||typeof m=="string")return;var g;if(typeof m=="function")g=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===ve||m.$$typeof===ue))g=m.propTypes;else return;if(g){var E=I(m);A(g,c.props,"prop",E,c)}else if(m.PropTypes!==void 0&&!tr){tr=!0;var T=I(m);it("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&it("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ga(c){{for(var m=Object.keys(c.props),g=0;g<m.length;g++){var E=m[g];if(E!=="children"&&E!=="key"){Bt(c),it("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E),Bt(null);break}}c.ref!==null&&(Bt(c),it("Invalid attribute `ref` supplied to `React.Fragment`."),Bt(null))}}var Rn={};function wn(c,m,g,E,T,M){{var L=ot(c);if(!L){var z="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(z+=" 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 Ue=ua();Ue?z+=Ue:z+=hn();var $;c===null?$="null":ae(c)?$="array":c!==void 0&&c.$$typeof===R?($="<"+(I(c.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):$=typeof c,it("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$,z)}var Ce=Xt(c,m,g,T,M);if(Ce==null)return Ce;if(L){var et=m.children;if(et!==void 0)if(E)if(ae(et)){for(var rt=0;rt<et.length;rt++)$r(et[rt],c);Object.freeze&&Object.freeze(et)}else it("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 $r(et,c)}if(tn.call(m,"key")){var Wt=I(c),$t=Object.keys(m).filter(function(Fa){return Fa!=="key"}),Ve=$t.length>0?"{key: someKey, "+$t.join(": ..., ")+": ...}":"{key: someKey}";if(!Rn[Wt+Ve]){var rn=$t.length>0?"{"+$t.join(": ..., ")+": ...}":"{}";it(`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} />`,Ve,Wt,rn,Wt),Rn[Wt+Ve]=!0}}return c===we?ga(Ce):Pr(Ce),Ce}}function Da(c,m,g){return wn(c,m,g,!0)}function gr(c,m,g){return wn(c,m,g,!1)}var y=gr,F=Da;rl.Fragment=we,rl.jsx=y,rl.jsxs=F}(),rl}dm.exports=H0();var p=dm.exports,hm={exports:{}},Jc={exports:{}},ef={},ym;function z0(){return ym||(ym=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 R=!1,Ee=5;function we(Z,be){var ke=Z.length;Z.push(be),d(Z,be,ke)}function xe(Z){return Z.length===0?null:Z[0]}function ce(Z){if(Z.length===0)return null;var be=Z[0],ke=Z.pop();return ke!==be&&(Z[0]=ke,X(Z,ke,0)),be}function d(Z,be,ke){for(var Ke=ke;Ke>0;){var ut=Ke-1>>>1,xt=Z[ut];if(ve(xt,be)>0)Z[ut]=be,Z[Ke]=xt,Ke=ut;else return}}function X(Z,be,ke){for(var Ke=ke,ut=Z.length,xt=ut>>>1;Ke<xt;){var Nt=(Ke+1)*2-1,Xt=Z[Nt],Vt=Nt+1,jt=Z[Vt];if(ve(Xt,be)<0)Vt<ut&&ve(jt,Xt)<0?(Z[Ke]=jt,Z[Vt]=be,Ke=Vt):(Z[Ke]=Xt,Z[Nt]=be,Ke=Nt);else if(Vt<ut&&ve(jt,be)<0)Z[Ke]=jt,Z[Vt]=be,Ke=Vt;else return}}function ve(Z,be){var ke=Z.sortIndex-be.sortIndex;return ke!==0?ke:Z.id-be.id}var ne=1,gt=2,ue=3,Le=4,ee=5;function Fe(Z,be){}var Ge=typeof performance=="object"&&typeof performance.now=="function";if(Ge){var W=performance;k.unstable_now=function(){return W.now()}}else{var Tt=Date,it=Tt.now();k.unstable_now=function(){return Tt.now()-it}}var _e=1073741823,Qe=-1,ye=250,U=5e3,K=1e4,At=_e,bt=[],ot=[],Dt=1,Te=null,I=ue,Je=!1,ie=!1,pe=!1,q=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,fe=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function dt(Z){for(var be=xe(ot);be!==null;){if(be.callback===null)ce(ot);else if(be.startTime<=Z)ce(ot),be.sortIndex=be.expirationTime,we(bt,be);else return;be=xe(ot)}}function Mt(Z){if(pe=!1,dt(Z),!ie)if(xe(bt)!==null)ie=!0,Be(lt);else{var be=xe(ot);be!==null&&at(Mt,be.startTime-Z)}}function lt(Z,be){ie=!1,pe&&(pe=!1,We()),Je=!0;var ke=I;try{var Ke;if(!R)return Kt(Z,be)}finally{Te=null,I=ke,Je=!1}}function Kt(Z,be){var ke=be;for(dt(ke),Te=xe(bt);Te!==null&&!(Te.expirationTime>ke&&(!Z||Yn()));){var Ke=Te.callback;if(typeof Ke=="function"){Te.callback=null,I=Te.priorityLevel;var ut=Te.expirationTime<=ke,xt=Ke(ut);ke=k.unstable_now(),typeof xt=="function"?Te.callback=xt:Te===xe(bt)&&ce(bt),dt(ke)}else ce(bt);Te=xe(bt)}if(Te!==null)return!0;var Nt=xe(ot);return Nt!==null&&at(Mt,Nt.startTime-ke),!1}function Lt(Z,be){switch(Z){case ne:case gt:case ue:case Le:case ee:break;default:Z=ue}var ke=I;I=Z;try{return be()}finally{I=ke}}function Ye(Z){var be;switch(I){case ne:case gt:case ue:be=ue;break;default:be=I;break}var ke=I;I=be;try{return Z()}finally{I=ke}}function Ne(Z){var be=I;return function(){var ke=I;I=be;try{return Z.apply(this,arguments)}finally{I=ke}}}function ze(Z,be,ke){var Ke=k.unstable_now(),ut;if(typeof ke=="object"&&ke!==null){var xt=ke.delay;typeof xt=="number"&&xt>0?ut=Ke+xt:ut=Ke}else ut=Ke;var Nt;switch(Z){case ne:Nt=Qe;break;case gt:Nt=ye;break;case ee:Nt=At;break;case Le:Nt=K;break;case ue:default:Nt=U;break}var Xt=ut+Nt,Vt={id:Dt++,callback:be,priorityLevel:Z,startTime:ut,expirationTime:Xt,sortIndex:-1};return ut>Ke?(Vt.sortIndex=ut,we(ot,Vt),xe(bt)===null&&Vt===xe(ot)&&(pe?We():pe=!0,at(Mt,ut-Ke))):(Vt.sortIndex=Xt,we(bt,Vt),!ie&&!Je&&(ie=!0,Be(lt))),Vt}function dn(){}function Ze(){!ie&&!Je&&(ie=!0,Be(lt))}function Yt(){return xe(bt)}function yt(Z){Z.callback=null}function nt(){return I}var an=!1,un=null,sn=-1,tn=Ee,Pn=-1;function Yn(){var Z=k.unstable_now()-Pn;return!(Z<tn)}function la(){}function A(Z){if(Z<0||Z>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Z>0?tn=Math.floor(1e3/Z):tn=Ee}var Y=function(){if(un!==null){var Z=k.unstable_now();Pn=Z;var be=!0,ke=!0;try{ke=un(be,Z)}finally{ke?ae():(an=!1,un=null)}}else an=!1},ae;if(typeof fe=="function")ae=function(){fe(Y)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,je=me.port2;me.port1.onmessage=Y,ae=function(){je.postMessage(null)}}else ae=function(){q(Y,0)};function Be(Z){un=Z,an||(an=!0,ae())}function at(Z,be){sn=q(function(){Z(k.unstable_now())},be)}function We(){G(sn),sn=-1}var St=la,Zt=null;k.unstable_IdlePriority=ee,k.unstable_ImmediatePriority=ne,k.unstable_LowPriority=Le,k.unstable_NormalPriority=ue,k.unstable_Profiling=Zt,k.unstable_UserBlockingPriority=gt,k.unstable_cancelCallback=yt,k.unstable_continueExecution=Ze,k.unstable_forceFrameRate=A,k.unstable_getCurrentPriorityLevel=nt,k.unstable_getFirstCallbackNode=Yt,k.unstable_next=Ye,k.unstable_pauseExecution=dn,k.unstable_requestPaint=St,k.unstable_runWithPriority=Lt,k.unstable_scheduleCallback=ze,k.unstable_shouldYield=Yn,k.unstable_wrapCallback=Ne,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(ef)),ef}var gm;function F0(){return gm||(gm=1,Jc.exports=z0()),Jc.exports}var oa={},bm;function V0(){if(bm)return oa;bm=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(),R=F0(),Ee=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,we=!1;function xe(e){we=e}function ce(e){if(!we){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];X("warn",e,n)}}function d(e){if(!we){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];X("error",e,n)}}function X(e,t,n){{var a=Ee.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 ve=0,ne=1,gt=2,ue=3,Le=4,ee=5,Fe=6,Ge=7,W=8,Tt=9,it=10,_e=11,Qe=12,ye=13,U=14,K=15,At=16,bt=17,ot=18,Dt=19,Te=21,I=22,Je=23,ie=24,pe=25,q=!0,G=!1,fe=!1,dt=!1,Mt=!1,lt=!0,Kt=!0,Lt=!0,Ye=!0,Ne=new Set,ze={},dn={};function Ze(e,t){Yt(e,t),Yt(e+"Capture",t)}function Yt(e,t){ze[e]&&d("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),ze[e]=t;{var n=e.toLowerCase();dn[n]=e,e==="onDoubleClick"&&(dn.ondblclick=e)}for(var a=0;a<t.length;a++)Ne.add(t[a])}var yt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nt=Object.prototype.hasOwnProperty;function an(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function un(e){try{return sn(e),!1}catch{return!0}}function sn(e){return""+e}function tn(e,t){if(un(e))return d("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,an(e)),sn(e)}function Pn(e){if(un(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",an(e)),sn(e)}function Yn(e,t){if(un(e))return d("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,an(e)),sn(e)}function la(e,t){if(un(e))return d("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,an(e)),sn(e)}function A(e){if(un(e))return d("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",an(e)),sn(e)}function Y(e){if(un(e))return d("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.",an(e)),sn(e)}var ae=0,me=1,je=2,Be=3,at=4,We=5,St=6,Zt=":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",Z=Zt+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",be=new RegExp("^["+Zt+"]["+Z+"]*$"),ke={},Ke={};function ut(e){return nt.call(Ke,e)?!0:nt.call(ke,e)?!1:be.test(e)?(Ke[e]=!0,!0):(ke[e]=!0,d("Invalid attribute name: `%s`",e),!1)}function xt(e,t,n){return t!==null?t.type===ae:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Nt(e,t,n,a){if(n!==null&&n.type===ae)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 Xt(e,t,n,a){if(t===null||typeof t>"u"||Nt(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case Be:return!t;case at:return t===!1;case We:return isNaN(t);case St:return isNaN(t)||t<1}return!1}function Vt(e){return Bt.hasOwnProperty(e)?Bt[e]:null}function jt(e,t,n,a,r,i,o){this.acceptsBooleans=t===je||t===Be||t===at,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Bt={},tr=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];tr.forEach(function(e){Bt[e]=new jt(e,ae,!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];Bt[t]=new jt(t,me,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Bt[e]=new jt(e,je,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Bt[e]=new jt(e,je,!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){Bt[e]=new jt(e,Be,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Bt[e]=new jt(e,Be,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Bt[e]=new jt(e,at,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Bt[e]=new jt(e,St,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Bt[e]=new jt(e,We,!1,e.toLowerCase(),null,!1,!1)});var ya=/[\-\:]([a-z])/g,hn=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(ya,hn);Bt[t]=new jt(t,me,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(ya,hn);Bt[t]=new jt(t,me,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ya,hn);Bt[t]=new jt(t,me,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Bt[e]=new jt(e,me,!1,e.toLowerCase(),null,!1,!1)});var ua="xlinkHref";Bt[ua]=new jt("xlinkHref",me,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Bt[e]=new jt(e,me,!1,e.toLowerCase(),null,!0,!0)});var Br=/^[\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,za=!1;function yr(e){!za&&Br.test(e)&&(za=!0,d("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 $r(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{tn(n,t),a.sanitizeURL&&yr(""+n);var i=a.attributeName,o=null;if(a.type===at){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:Xt(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(Xt(t,n,a,!1))return e.getAttribute(i);if(a.type===Be)return n;o=e.getAttribute(i)}return Xt(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function Pr(e,t,n,a){{if(!ut(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 ga(e,t,n,a){var r=Vt(t);if(!xt(t,r,a)){if(Xt(t,n,r,a)&&(n=null),a||r===null){if(ut(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===Be?!1:""}else e[l]=n;return}var f=r.attributeName,v=r.attributeNamespace;if(n===null)e.removeAttribute(f);else{var S=r.type,b;S===Be||S===at&&n===!0?b="":(tn(n,f),b=""+n,r.sanitizeURL&&yr(b.toString())),v?e.setAttributeNS(v,f,b):e.setAttribute(f,b)}}}var Rn=Symbol.for("react.element"),wn=Symbol.for("react.portal"),Da=Symbol.for("react.fragment"),gr=Symbol.for("react.strict_mode"),y=Symbol.for("react.profiler"),F=Symbol.for("react.provider"),c=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),L=Symbol.for("react.scope"),z=Symbol.for("react.debug_trace_mode"),Ue=Symbol.for("react.offscreen"),$=Symbol.for("react.legacy_hidden"),Ce=Symbol.for("react.cache"),et=Symbol.for("react.tracing_marker"),rt=Symbol.iterator,Wt="@@iterator";function $t(e){if(e===null||typeof e!="object")return null;var t=rt&&e[rt]||e[Wt];return typeof t=="function"?t:null}var Ve=Object.assign,rn=0,Fa,An,Ot,sa,nr,no,Yr;function ba(){}ba.__reactDisabledLog=!0;function _a(){{if(rn===0){Fa=console.log,An=console.info,Ot=console.warn,sa=console.error,nr=console.group,no=console.groupCollapsed,Yr=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ba,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}rn++}}function bi(){{if(rn--,rn===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ve({},e,{value:Fa}),info:Ve({},e,{value:An}),warn:Ve({},e,{value:Ot}),error:Ve({},e,{value:sa}),group:Ve({},e,{value:nr}),groupCollapsed:Ve({},e,{value:no}),groupEnd:Ve({},e,{value:Yr})})}rn<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Wr=Ee.ReactCurrentDispatcher,cn;function ft(e,t,n){{if(cn===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);cn=a&&a[1]||""}return`
`+cn+e}}var ca=!1,Wn;{var ar=typeof WeakMap=="function"?WeakMap:Map;Wn=new ar}function Si(e,t){if(!e||ca)return"";{var n=Wn.get(e);if(n!==void 0)return n}var a;ca=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=Wr.current,Wr.current=null,_a();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,v=u.length-1;f>=1&&v>=0&&l[f]!==u[v];)v--;for(;f>=1&&v>=0;f--,v--)if(l[f]!==u[v]){if(f!==1||v!==1)do if(f--,v--,v<0||l[f]!==u[v]){var S=`
`+l[f].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&Wn.set(e,S),S}while(f>=1&&v>=0);break}}}finally{ca=!1,Wr.current=i,bi(),Error.prepareStackTrace=r}var b=e?e.displayName||e.name:"",w=b?ft(b):"";return typeof e=="function"&&Wn.set(e,w),w}function ao(e,t,n){return Si(e,!0)}function il(e,t,n){return Si(e,!1)}function Yu(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ol(e,t,n){if(e==null)return"";if(typeof e=="function")return Si(e,Yu(e));if(typeof e=="string")return ft(e);switch(e){case g:return ft("Suspense");case E:return ft("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return il(e.render);case T:return ol(e.type,t,n);case M:{var a=e,r=a._payload,i=a._init;try{return ol(i(r),t,n)}catch{}}}return""}function af(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case ee:return ft(e.type);case At:return ft("Lazy");case ye:return ft("Suspense");case Dt:return ft("SuspenseList");case ve:case gt:case K:return il(e.type);case _e:return il(e.type.render);case ne:return ao(e.type);default:return""}}function Ti(e){try{var t="",n=e;do t+=af(n),n=n.return;while(n);return t}catch(a){return`
Error generating stack: `+a.message+`
`+a.stack}}function Wu(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function ll(e){return e.displayName||"Context"}function Rt(e){if(e==null)return null;if(typeof e.tag=="number"&&d("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 Da:return"Fragment";case wn:return"Portal";case y:return"Profiler";case gr:return"StrictMode";case g:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var t=e;return ll(t)+".Consumer";case F:var n=e;return ll(n._context)+".Provider";case m:return Wu(e,e.render,"ForwardRef");case T:var a=e.displayName||null;return a!==null?a:Rt(e.type)||"Memo";case M:{var r=e,i=r._payload,o=r._init;try{return Rt(o(i))}catch{return null}}}return null}function rf(e,t,n){var a=t.displayName||t.name||"";return e.displayName||(a!==""?n+"("+a+")":n)}function br(e){return e.displayName||"Context"}function Xe(e){var t=e.tag,n=e.type;switch(t){case ie:return"Cache";case Tt:var a=n;return br(a)+".Consumer";case it:var r=n;return br(r._context)+".Provider";case ot:return"DehydratedFragment";case _e:return rf(n,n.render,"ForwardRef");case Ge:return"Fragment";case ee:return n;case Le:return"Portal";case ue:return"Root";case Fe:return"Text";case At:return Rt(n);case W:return n===gr?"StrictMode":"Mode";case I:return"Offscreen";case Qe:return"Profiler";case Te:return"Scope";case ye:return"Suspense";case Dt:return"SuspenseList";case pe:return"TracingMarker";case ne:case ve:case bt:case gt:case U:case K:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var ul=Ee.ReactDebugCurrentFrame,Zn=null,Ei=!1;function Ir(){{if(Zn===null)return null;var e=Zn._debugOwner;if(e!==null&&typeof e<"u")return Xe(e)}return null}function of(){return Zn===null?"":Ti(Zn)}function Dn(){ul.getCurrentStack=null,Zn=null,Ei=!1}function Jt(e){ul.getCurrentStack=e===null?null:of,Zn=e,Ei=!1}function Iu(){return Zn}function ka(e){Ei=e}function Jn(e){return""+e}function Va(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return Y(e),e;default:return""}}var lf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function sl(e,t){lf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||d("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||d("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 qu(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cl(e){return e._valueTracker}function ro(e){e._valueTracker=null}function uf(e){var t="";return e&&(qu(e)?t=e.checked?"true":"false":t=e.value),t}function qr(e){var t=qu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);Y(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){Y(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){Y(l),a=""+l},stopTracking:function(){ro(e),delete e[t]}};return o}}function Ci(e){cl(e)||(e._valueTracker=qr(e))}function fl(e){if(!e)return!1;var t=cl(e);if(!t)return!0;var n=t.getValue(),a=uf(e);return a!==n?(t.setValue(a),!0):!1}function Sr(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 io=!1,oo=!1,lo=!1,Gu=!1;function Xu(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function dl(e,t){var n=e,a=t.checked,r=Ve({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked});return r}function Qu(e,t){sl("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!oo&&(d("%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",Ir()||"A component",t.type),oo=!0),t.value!==void 0&&t.defaultValue!==void 0&&!io&&(d("%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",Ir()||"A component",t.type),io=!0);var n=e,a=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:Va(t.value!=null?t.value:a),controlled:Xu(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&ga(n,"checked",a,!1)}function h(e,t){var n=e;{var a=Xu(t);!n._wrapperState.controlled&&a&&!Gu&&(d("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"),Gu=!0),n._wrapperState.controlled&&!a&&!lo&&(d("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"),lo=!0)}s(e,t);var r=Va(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=Jn(r)):n.value!==Jn(r)&&(n.value=Jn(r));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Oe(n,t.type,r):t.hasOwnProperty("defaultValue")&&Oe(n,t.type,Va(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=Jn(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 O(e,t){var n=e;h(n,t),Q(n,t)}function Q(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=Hs(o);if(!l)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");fl(o),h(o,l)}}}}function Oe(e,t,n){(t!=="number"||Sr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=Jn(e._wrapperState.initialValue):e.defaultValue!==Jn(n)&&(e.defaultValue=Jn(n)))}var ge=!1,Ie=!1,vt=!1;function Ut(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"||Ie||(Ie=!0,d("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(vt||(vt=!0,d("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!ge&&(d("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),ge=!0)}function It(e,t){t.value!=null&&e.setAttribute("value",Jn(Va(t.value)))}var qt=Array.isArray;function st(e){return qt(e)}var en;en=!1;function vn(){var e=Ir();return e?`
Check the render method of \``+e+"`.":""}var xi=["value","defaultValue"];function vl(e){{sl("select",e);for(var t=0;t<xi.length;t++){var n=xi[t];if(e[n]!=null){var a=st(e[n]);e.multiple&&!a?d("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,vn()):!e.multiple&&a&&d("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,vn())}}}}function Tr(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 v=Jn(Va(n)),S=null,b=0;b<r.length;b++){if(r[b].value===v){r[b].selected=!0,a&&(r[b].defaultSelected=!0);return}S===null&&!r[b].disabled&&(S=r[b])}S!==null&&(S.selected=!0)}}function pl(e,t){return Ve({},t,{value:void 0})}function ml(e,t){var n=e;vl(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!en&&(d("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 sf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?Tr(n,!!t.multiple,a,!1):t.defaultValue!=null&&Tr(n,!!t.multiple,t.defaultValue,!0)}function Ku(e,t){var n=e,a=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var r=t.value;r!=null?Tr(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?Tr(n,!!t.multiple,t.defaultValue,!0):Tr(n,!!t.multiple,t.multiple?[]:"",!1))}function cf(e,t){var n=e,a=t.value;a!=null&&Tr(n,!!t.multiple,a,!1)}var _m=!1;function ff(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var a=Ve({},t,{value:void 0,defaultValue:void 0,children:Jn(n._wrapperState.initialValue)});return a}function km(e,t){var n=e;sl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!_m&&(d("%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",Ir()||"A component"),_m=!0);var a=t.value;if(a==null){var r=t.children,i=t.defaultValue;if(r!=null){d("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(st(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:Va(a)}}function Mm(e,t){var n=e,a=Va(t.value),r=Va(t.defaultValue);if(a!=null){var i=Jn(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=Jn(r))}function Lm(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function tS(e,t){Mm(e,t)}var Er="http://www.w3.org/1999/xhtml",nS="http://www.w3.org/1998/Math/MathML",df="http://www.w3.org/2000/svg";function vf(e){switch(e){case"svg":return df;case"math":return nS;default:return Er}}function pf(e,t){return e==null||e===Er?vf(t):e===df&&t==="foreignObject"?Er:e}var aS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},Zu,Om=aS(function(e,t){if(e.namespaceURI===df&&!("innerHTML"in e)){Zu=Zu||document.createElement("div"),Zu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Zu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),fa=1,Cr=3,pn=8,xr=9,mf=11,Ju=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Cr){n.nodeValue=t;return}}e.textContent=t},rS={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"]},hl={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 iS(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var oS=["Webkit","ms","Moz","O"];Object.keys(hl).forEach(function(e){oS.forEach(function(t){hl[iS(t,e)]=hl[e]})});function hf(e,t,n){var a=t==null||typeof t=="boolean"||t==="";return a?"":!n&&typeof t=="number"&&t!==0&&!(hl.hasOwnProperty(e)&&hl[e])?t+"px":(la(t,e),(""+t).trim())}var lS=/([A-Z])/g,uS=/^ms-/;function sS(e){return e.replace(lS,"-$1").toLowerCase().replace(uS,"-ms-")}var Am=function(){};{var cS=/^(?:webkit|moz|o)[A-Z]/,fS=/^-ms-/,dS=/-(.)/g,Nm=/;\s*$/,uo={},yf={},jm=!1,Um=!1,vS=function(e){return e.replace(dS,function(t,n){return n.toUpperCase()})},pS=function(e){uo.hasOwnProperty(e)&&uo[e]||(uo[e]=!0,d("Unsupported style property %s. Did you mean %s?",e,vS(e.replace(fS,"ms-"))))},mS=function(e){uo.hasOwnProperty(e)&&uo[e]||(uo[e]=!0,d("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},hS=function(e,t){yf.hasOwnProperty(t)&&yf[t]||(yf[t]=!0,d(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Nm,"")))},yS=function(e,t){jm||(jm=!0,d("`NaN` is an invalid value for the `%s` css style property.",e))},gS=function(e,t){Um||(Um=!0,d("`Infinity` is an invalid value for the `%s` css style property.",e))};Am=function(e,t){e.indexOf("-")>-1?pS(e):cS.test(e)?mS(e):Nm.test(t)&&hS(e,t),typeof t=="number"&&(isNaN(t)?yS(e,t):isFinite(t)||gS(e,t))}}var bS=Am;function SS(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:sS(a))+":",t+=hf(a,r,i),n=";"}}return t||null}}function Hm(e,t){var n=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0;r||bS(a,t[a]);var i=hf(a,t[a],r);a==="float"&&(a="cssFloat"),r?n.setProperty(a,i):n[a]=i}}function TS(e){return e==null||typeof e=="boolean"||e===""}function zm(e){var t={};for(var n in e)for(var a=rS[n]||[n],r=0;r<a.length;r++)t[a[r]]=n;return t}function ES(e,t){{if(!t)return;var n=zm(e),a=zm(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,d("%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.",TS(e[o])?"Removing":"Updating",o,l)}}}}var CS={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},xS=Ve({menuitem:!0},CS),RS="__html";function gf(e,t){if(t){if(xS[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"||!(RS 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&&d("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 Ri(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 es={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"},Fm={"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},so={},wS=new RegExp("^(aria)-["+Z+"]*$"),DS=new RegExp("^(aria)[A-Z]["+Z+"]*$");function _S(e,t){{if(nt.call(so,t)&&so[t])return!0;if(DS.test(t)){var n="aria-"+t.slice(4).toLowerCase(),a=Fm.hasOwnProperty(n)?n:null;if(a==null)return d("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),so[t]=!0,!0;if(t!==a)return d("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,a),so[t]=!0,!0}if(wS.test(t)){var r=t.toLowerCase(),i=Fm.hasOwnProperty(r)?r:null;if(i==null)return so[t]=!0,!1;if(t!==i)return d("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),so[t]=!0,!0}}return!0}function kS(e,t){{var n=[];for(var a in t){var r=_S(e,a);r||n.push(a)}var i=n.map(function(o){return"`"+o+"`"}).join(", ");n.length===1?d("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e):n.length>1&&d("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e)}}function MS(e,t){Ri(e,t)||kS(e,t)}var Vm=!1;function LS(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!Vm&&(Vm=!0,e==="select"&&t.multiple?d("`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):d("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var Bm=function(){};{var ea={},$m=/^on./,OS=/^on[^A-Z]/,AS=new RegExp("^(aria)-["+Z+"]*$"),NS=new RegExp("^(aria)[A-Z]["+Z+"]*$");Bm=function(e,t,n,a){if(nt.call(ea,t)&&ea[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return d("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."),ea[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 d("Invalid event handler property `%s`. Did you mean `%s`?",t,l),ea[t]=!0,!0;if($m.test(t))return d("Unknown event handler property `%s`. It will be ignored.",t),ea[t]=!0,!0}else if($m.test(t))return OS.test(t)&&d("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),ea[t]=!0,!0;if(AS.test(t)||NS.test(t))return!0;if(r==="innerhtml")return d("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),ea[t]=!0,!0;if(r==="aria")return d("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),ea[t]=!0,!0;if(r==="is"&&n!==null&&n!==void 0&&typeof n!="string")return d("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),ea[t]=!0,!0;if(typeof n=="number"&&isNaN(n))return d("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),ea[t]=!0,!0;var u=Vt(t),f=u!==null&&u.type===ae;if(es.hasOwnProperty(r)){var v=es[r];if(v!==t)return d("Invalid DOM property `%s`. Did you mean `%s`?",t,v),ea[t]=!0,!0}else if(!f&&t!==r)return d("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),ea[t]=!0,!0;return typeof n=="boolean"&&Nt(t,n,u,!1)?(n?d('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):d('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),ea[t]=!0,!0):f?!0:Nt(t,n,u,!1)?(ea[t]=!0,!1):((n==="false"||n==="true")&&u!==null&&u.type===Be&&(d("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),ea[t]=!0),!0)}}var jS=function(e,t,n){{var a=[];for(var r in t){var i=Bm(e,r,t[r],n);i||a.push(r)}var o=a.map(function(l){return"`"+l+"`"}).join(", ");a.length===1?d("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&&d("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 US(e,t,n){Ri(e,t)||jS(e,t,n)}var Pm=1,bf=2,yl=4,HS=Pm|bf|yl,gl=null;function zS(e){gl!==null&&d("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),gl=e}function FS(){gl===null&&d("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),gl=null}function VS(e){return e===gl}function Sf(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Cr?t.parentNode:t}var Tf=null,co=null,fo=null;function Ym(e){var t=ni(e);if(t){if(typeof Tf!="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=Hs(n);Tf(t.stateNode,t.type,a)}}}function BS(e){Tf=e}function Wm(e){co?fo?fo.push(e):fo=[e]:co=e}function $S(){return co!==null||fo!==null}function Im(){if(co){var e=co,t=fo;if(co=null,fo=null,Ym(e),t)for(var n=0;n<t.length;n++)Ym(t[n])}}var qm=function(e,t){return e(t)},Gm=function(){},Ef=!1;function PS(){var e=$S();e&&(Gm(),Im())}function Xm(e,t,n){if(Ef)return e(t,n);Ef=!0;try{return qm(e,t,n)}finally{Ef=!1,PS()}}function YS(e,t,n){qm=e,Gm=n}function WS(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function IS(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&&WS(t));default:return!1}}function bl(e,t){var n=e.stateNode;if(n===null)return null;var a=Hs(n);if(a===null)return null;var r=a[t];if(IS(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 Cf=!1;if(yt)try{var Sl={};Object.defineProperty(Sl,"passive",{get:function(){Cf=!0}}),window.addEventListener("test",Sl,Sl),window.removeEventListener("test",Sl,Sl)}catch{Cf=!1}function Qm(e,t,n,a,r,i,o,l,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(v){this.onError(v)}}var Km=Qm;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var xf=document.createElement("react");Km=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 v=document.createEvent("Event"),S=!1,b=!0,w=window.event,_=Object.getOwnPropertyDescriptor(window,"event");function N(){xf.removeEventListener(j,De,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=w)}var re=Array.prototype.slice.call(arguments,3);function De(){S=!0,N(),n.apply(a,re),b=!1}var Se,ht=!1,ct=!1;function C(x){if(Se=x.error,ht=!0,Se===null&&x.colno===0&&x.lineno===0&&(ct=!0),x.defaultPrevented&&Se!=null&&typeof Se=="object")try{Se._suppressLogging=!0}catch{}}var j="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",C),xf.addEventListener(j,De,!1),v.initEvent(j,!1,!1),xf.dispatchEvent(v),_&&Object.defineProperty(window,"event",_),S&&b&&(ht?ct&&(Se=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.")):Se=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(Se)),window.removeEventListener("error",C),!S)return N(),Qm.apply(this,arguments)}}var qS=Km,vo=!1,ts=null,ns=!1,Rf=null,GS={onError:function(e){vo=!0,ts=e}};function wf(e,t,n,a,r,i,o,l,u){vo=!1,ts=null,qS.apply(GS,arguments)}function XS(e,t,n,a,r,i,o,l,u){if(wf.apply(this,arguments),vo){var f=Df();ns||(ns=!0,Rf=f)}}function QS(){if(ns){var e=Rf;throw ns=!1,Rf=null,e}}function KS(){return vo}function Df(){if(vo){var e=ts;return vo=!1,ts=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 po(e){return e._reactInternals}function ZS(e){return e._reactInternals!==void 0}function JS(e,t){e._reactInternals=t}var Ae=0,mo=1,_n=2,wt=4,wi=16,as=32,Zm=64,_t=128,Di=256,_i=512,ho=1024,Gr=2048,ki=4096,Mi=8192,_f=16384,eT=32767,rs=32768,Ba=65536,kf=131072,Jm=1048576,Mf=2097152,Li=4194304,Lf=8388608,Xr=16777216,Of=33554432,Af=wt|ho|0,Nf=_n|wt|wi|as|_i|ki|Mi,Tl=wt|Zm|_i|Mi,yo=Gr|wi,Rr=Li|Lf|Mf,tT=Ee.ReactCurrentOwner;function Oi(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{var a=t;do t=a,(t.flags&(_n|ki))!==Ae&&(n=t.return),a=t.return;while(a)}return t.tag===ue?n:null}function eh(e){if(e.tag===ye){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 th(e){return e.tag===ue?e.stateNode.containerInfo:null}function nT(e){return Oi(e)===e}function aT(e){{var t=tT.current;if(t!==null&&t.tag===ne){var n=t,a=n.stateNode;a._warnedAboutRefsInRender||d("%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.",Xe(n)||"A component"),a._warnedAboutRefsInRender=!0}}var r=po(e);return r?Oi(r)===r:!1}function nh(e){if(Oi(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function ah(e){var t=e.alternate;if(!t){var n=Oi(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 nh(i),e;if(u===r)return nh(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,v=i.child;v;){if(v===a){f=!0,a=i,r=o;break}if(v===r){f=!0,r=i,a=o;break}v=v.sibling}if(!f){for(v=o.child;v;){if(v===a){f=!0,a=o,r=i;break}if(v===r){f=!0,r=o,a=i;break}v=v.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!==ue)throw new Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function rh(e){var t=ah(e);return t!==null?ih(t):null}function ih(e){if(e.tag===ee||e.tag===Fe)return e;for(var t=e.child;t!==null;){var n=ih(t);if(n!==null)return n;t=t.sibling}return null}function rT(e){var t=ah(e);return t!==null?oh(t):null}function oh(e){if(e.tag===ee||e.tag===Fe)return e;for(var t=e.child;t!==null;){if(t.tag!==Le){var n=oh(t);if(n!==null)return n}t=t.sibling}return null}var lh=R.unstable_scheduleCallback,iT=R.unstable_cancelCallback,oT=R.unstable_shouldYield,lT=R.unstable_requestPaint,kn=R.unstable_now,uT=R.unstable_getCurrentPriorityLevel,is=R.unstable_ImmediatePriority,jf=R.unstable_UserBlockingPriority,Ai=R.unstable_NormalPriority,sT=R.unstable_LowPriority,Uf=R.unstable_IdlePriority,cT=R.unstable_yieldValue,fT=R.unstable_setDisableYieldValue,go=null,In=null,le=null,rr=!1,$a=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 d("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{Kt&&(e=Ve({},e,{getLaneLabelMap:gT,injectProfilingHooks:yT})),go=t.inject(e),In=t}catch(n){d("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function vT(e,t){if(In&&typeof In.onScheduleFiberRoot=="function")try{In.onScheduleFiberRoot(go,e,t)}catch(n){rr||(rr=!0,d("React instrumentation encountered an error: %s",n))}}function pT(e,t){if(In&&typeof In.onCommitFiberRoot=="function")try{var n=(e.current.flags&_t)===_t;if(Lt){var a;switch(t){case Ta:a=is;break;case Dr:a=jf;break;case _r:a=Ai;break;case ds:a=Uf;break;default:a=Ai;break}In.onCommitFiberRoot(go,e,a,n)}}catch(r){rr||(rr=!0,d("React instrumentation encountered an error: %s",r))}}function mT(e){if(In&&typeof In.onPostCommitFiberRoot=="function")try{In.onPostCommitFiberRoot(go,e)}catch(t){rr||(rr=!0,d("React instrumentation encountered an error: %s",t))}}function hT(e){if(In&&typeof In.onCommitFiberUnmount=="function")try{In.onCommitFiberUnmount(go,e)}catch(t){rr||(rr=!0,d("React instrumentation encountered an error: %s",t))}}function Mn(e){if(typeof cT=="function"&&(fT(e),xe(e)),In&&typeof In.setStrictMode=="function")try{In.setStrictMode(go,e)}catch(t){rr||(rr=!0,d("React instrumentation encountered an error: %s",t))}}function yT(e){le=e}function gT(){{for(var e=new Map,t=1,n=0;n<zf;n++){var a=zT(t);e.set(t,a),t*=2}return e}}function bT(e){le!==null&&typeof le.markCommitStarted=="function"&&le.markCommitStarted(e)}function uh(){le!==null&&typeof le.markCommitStopped=="function"&&le.markCommitStopped()}function El(e){le!==null&&typeof le.markComponentRenderStarted=="function"&&le.markComponentRenderStarted(e)}function bo(){le!==null&&typeof le.markComponentRenderStopped=="function"&&le.markComponentRenderStopped()}function ST(e){le!==null&&typeof le.markComponentPassiveEffectMountStarted=="function"&&le.markComponentPassiveEffectMountStarted(e)}function TT(){le!==null&&typeof le.markComponentPassiveEffectMountStopped=="function"&&le.markComponentPassiveEffectMountStopped()}function ET(e){le!==null&&typeof le.markComponentPassiveEffectUnmountStarted=="function"&&le.markComponentPassiveEffectUnmountStarted(e)}function CT(){le!==null&&typeof le.markComponentPassiveEffectUnmountStopped=="function"&&le.markComponentPassiveEffectUnmountStopped()}function xT(e){le!==null&&typeof le.markComponentLayoutEffectMountStarted=="function"&&le.markComponentLayoutEffectMountStarted(e)}function RT(){le!==null&&typeof le.markComponentLayoutEffectMountStopped=="function"&&le.markComponentLayoutEffectMountStopped()}function sh(e){le!==null&&typeof le.markComponentLayoutEffectUnmountStarted=="function"&&le.markComponentLayoutEffectUnmountStarted(e)}function ch(){le!==null&&typeof le.markComponentLayoutEffectUnmountStopped=="function"&&le.markComponentLayoutEffectUnmountStopped()}function wT(e,t,n){le!==null&&typeof le.markComponentErrored=="function"&&le.markComponentErrored(e,t,n)}function DT(e,t,n){le!==null&&typeof le.markComponentSuspended=="function"&&le.markComponentSuspended(e,t,n)}function _T(e){le!==null&&typeof le.markLayoutEffectsStarted=="function"&&le.markLayoutEffectsStarted(e)}function kT(){le!==null&&typeof le.markLayoutEffectsStopped=="function"&&le.markLayoutEffectsStopped()}function MT(e){le!==null&&typeof le.markPassiveEffectsStarted=="function"&&le.markPassiveEffectsStarted(e)}function LT(){le!==null&&typeof le.markPassiveEffectsStopped=="function"&&le.markPassiveEffectsStopped()}function fh(e){le!==null&&typeof le.markRenderStarted=="function"&&le.markRenderStarted(e)}function OT(){le!==null&&typeof le.markRenderYielded=="function"&&le.markRenderYielded()}function dh(){le!==null&&typeof le.markRenderStopped=="function"&&le.markRenderStopped()}function AT(e){le!==null&&typeof le.markRenderScheduled=="function"&&le.markRenderScheduled(e)}function NT(e,t){le!==null&&typeof le.markForceUpdateScheduled=="function"&&le.markForceUpdateScheduled(e,t)}function Hf(e,t){le!==null&&typeof le.markStateUpdateScheduled=="function"&&le.markStateUpdateScheduled(e,t)}var Me=0,pt=1,Ht=2,on=8,ir=16,vh=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 zf=31,B=0,Ln=0,$e=1,So=2,wr=4,Ni=8,or=16,Cl=32,To=4194240,xl=64,Ff=128,Vf=256,Bf=512,$f=1024,Pf=2048,Yf=4096,Wf=8192,If=16384,qf=32768,Gf=65536,Xf=131072,Qf=262144,Kf=524288,Zf=1048576,Jf=2097152,os=130023424,Eo=4194304,ed=8388608,td=16777216,nd=33554432,ad=67108864,ph=Eo,Rl=134217728,mh=268435455,wl=268435456,ji=536870912,Ma=1073741824;function zT(e){{if(e&$e)return"Sync";if(e&So)return"InputContinuousHydration";if(e&wr)return"InputContinuous";if(e&Ni)return"DefaultHydration";if(e&or)return"Default";if(e&Cl)return"TransitionHydration";if(e&To)return"Transition";if(e&os)return"Retry";if(e&Rl)return"SelectiveHydration";if(e&wl)return"IdleHydration";if(e&ji)return"Idle";if(e&Ma)return"Offscreen"}}var Gt=-1,ls=xl,us=Eo;function Dl(e){switch(Ui(e)){case $e:return $e;case So:return So;case wr:return wr;case Ni:return Ni;case or:return or;case Cl:return Cl;case xl:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case Wf:case If:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:return e&To;case Eo:case ed:case td:case nd:case ad:return e&os;case Rl:return Rl;case wl:return wl;case ji:return ji;case Ma:return Ma;default:return d("Should have found matching lanes. This is a bug in React."),e}}function ss(e,t){var n=e.pendingLanes;if(n===B)return B;var a=B,r=e.suspendedLanes,i=e.pingedLanes,o=n&mh;if(o!==B){var l=o&~r;if(l!==B)a=Dl(l);else{var u=o&i;u!==B&&(a=Dl(u))}}else{var f=n&~r;f!==B?a=Dl(f):i!==B&&(a=Dl(i))}if(a===B)return B;if(t!==B&&t!==a&&(t&r)===B){var v=Ui(a),S=Ui(t);if(v>=S||v===or&&(S&To)!==B)return t}(a&wr)!==B&&(a|=n&or);var b=e.entangledLanes;if(b!==B)for(var w=e.entanglements,_=a&b;_>0;){var N=Hi(_),re=1<<N;a|=w[N],_&=~re}return a}function FT(e,t){for(var n=e.eventTimes,a=Gt;t>0;){var r=Hi(t),i=1<<r,o=n[r];o>a&&(a=o),t&=~i}return a}function VT(e,t){switch(e){case $e:case So:case wr:return t+250;case Ni:case or:case Cl:case xl:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case Wf:case If:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:return t+5e3;case Eo:case ed:case td:case nd:case ad:return Gt;case Rl:case wl:case ji:case Ma:return Gt;default:return d("Should have found matching lanes. This is a bug in React."),Gt}}function BT(e,t){for(var n=e.pendingLanes,a=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=n;o>0;){var l=Hi(o),u=1<<l,f=i[l];f===Gt?((u&a)===B||(u&r)!==B)&&(i[l]=VT(u,t)):f<=t&&(e.expiredLanes|=u),o&=~u}}function $T(e){return Dl(e.pendingLanes)}function rd(e){var t=e.pendingLanes&-1073741825;return t!==B?t:t&Ma?Ma:B}function PT(e){return(e&$e)!==B}function id(e){return(e&mh)!==B}function hh(e){return(e&os)===e}function YT(e){var t=$e|wr|or;return(e&t)===B}function WT(e){return(e&To)===e}function cs(e,t){var n=So|wr|Ni|or;return(t&n)!==B}function IT(e,t){return(t&e.expiredLanes)!==B}function yh(e){return(e&To)!==B}function gh(){var e=ls;return ls<<=1,(ls&To)===B&&(ls=xl),e}function qT(){var e=us;return us<<=1,(us&os)===B&&(us=Eo),e}function Ui(e){return e&-e}function _l(e){return Ui(e)}function Hi(e){return 31-vh(e)}function od(e){return Hi(e)}function Sa(e,t){return(e&t)!==B}function Co(e,t){return(e&t)===t}function tt(e,t){return e|t}function fs(e,t){return e&~t}function bh(e,t){return e&t}function p_(e){return e}function GT(e,t){return e!==Ln&&e<t?e:t}function ld(e){for(var t=[],n=0;n<zf;n++)t.push(e);return t}function kl(e,t,n){e.pendingLanes|=t,t!==ji&&(e.suspendedLanes=B,e.pingedLanes=B);var a=e.eventTimes,r=od(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=Hi(a),i=1<<r;n[r]=Gt,a&=~i}}function Sh(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function QT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=B,e.pingedLanes=B,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=Hi(o),u=1<<l;a[l]=B,r[l]=Gt,i[l]=Gt,o&=~u}}function ud(e,t){for(var n=e.entangledLanes|=t,a=e.entanglements,r=n;r;){var i=Hi(r),o=1<<i;o&t|a[i]&t&&(a[i]|=t),r&=~o}}function KT(e,t){var n=Ui(t),a;switch(n){case wr:a=So;break;case or:a=Ni;break;case xl:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case Wf:case If:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:case Eo:case ed:case td:case nd:case ad:a=Cl;break;case ji:a=wl;break;default:a=Ln;break}return(a&(e.suspendedLanes|t))!==Ln?Ln:a}function Th(e,t,n){if($a)for(var a=e.pendingUpdatersLaneMap;n>0;){var r=od(n),i=1<<r,o=a[r];o.add(t),n&=~i}}function Eh(e,t){if($a)for(var n=e.pendingUpdatersLaneMap,a=e.memoizedUpdaters;t>0;){var r=od(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 Ch(e,t){return null}var Ta=$e,Dr=wr,_r=or,ds=ji,Ml=Ln;function Pa(){return Ml}function On(e){Ml=e}function ZT(e,t){var n=Ml;try{return Ml=e,t()}finally{Ml=n}}function JT(e,t){return e!==0&&e<t?e:t}function eE(e,t){return e>t?e:t}function sd(e,t){return e!==0&&e<t}function xh(e){var t=Ui(e);return sd(Ta,t)?sd(Dr,t)?id(t)?_r:ds:Dr:Ta}function vs(e){var t=e.current.memoizedState;return t.isDehydrated}var Rh;function tE(e){Rh=e}function nE(e){Rh(e)}var cd;function aE(e){cd=e}var wh;function rE(e){wh=e}var Dh;function iE(e){Dh=e}var _h;function oE(e){_h=e}var fd=!1,ps=[],Qr=null,Kr=null,Zr=null,Ll=new Map,Ol=new Map,Jr=[],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 kh(e,t){switch(e){case"focusin":case"focusout":Qr=null;break;case"dragenter":case"dragleave":Kr=null;break;case"mouseover":case"mouseout":Zr=null;break;case"pointerover":case"pointerout":{var n=t.pointerId;Ll.delete(n);break}case"gotpointercapture":case"lostpointercapture":{var a=t.pointerId;Ol.delete(a);break}}}function Al(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=ni(t);l!==null&&cd(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 Qr=Al(Qr,e,t,n,a,i),!0}case"dragenter":{var o=r;return Kr=Al(Kr,e,t,n,a,o),!0}case"mouseover":{var l=r;return Zr=Al(Zr,e,t,n,a,l),!0}case"pointerover":{var u=r,f=u.pointerId;return Ll.set(f,Al(Ll.get(f)||null,e,t,n,a,u)),!0}case"gotpointercapture":{var v=r,S=v.pointerId;return Ol.set(S,Al(Ol.get(S)||null,e,t,n,a,v)),!0}}return!1}function Mh(e){var t=Vi(e.target);if(t!==null){var n=Oi(t);if(n!==null){var a=n.tag;if(a===ye){var r=eh(n);if(r!==null){e.blockedOn=r,_h(e.priority,function(){wh(n)});return}}else if(a===ue){var i=n.stateNode;if(vs(i)){e.blockedOn=th(n);return}}}}e.blockedOn=null}function fE(e){for(var t=Dh(),n={blockedOn:null,target:e,priority:t},a=0;a<Jr.length&&sd(t,Jr[a].priority);a++);Jr.splice(a,0,n),a===0&&Mh(n)}function ms(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;t.length>0;){var n=t[0],a=pd(e.domEventName,e.eventSystemFlags,n,e.nativeEvent);if(a===null){var r=e.nativeEvent,i=new r.constructor(r.type,r);zS(i),r.target.dispatchEvent(i),FS()}else{var o=ni(a);return o!==null&&cd(o),e.blockedOn=a,!1}t.shift()}return!0}function Lh(e,t,n){ms(e)&&n.delete(t)}function dE(){fd=!1,Qr!==null&&ms(Qr)&&(Qr=null),Kr!==null&&ms(Kr)&&(Kr=null),Zr!==null&&ms(Zr)&&(Zr=null),Ll.forEach(Lh),Ol.forEach(Lh)}function Nl(e,t){e.blockedOn===t&&(e.blockedOn=null,fd||(fd=!0,R.unstable_scheduleCallback(R.unstable_NormalPriority,dE)))}function jl(e){if(ps.length>0){Nl(ps[0],e);for(var t=1;t<ps.length;t++){var n=ps[t];n.blockedOn===e&&(n.blockedOn=null)}}Qr!==null&&Nl(Qr,e),Kr!==null&&Nl(Kr,e),Zr!==null&&Nl(Zr,e);var a=function(l){return Nl(l,e)};Ll.forEach(a),Ol.forEach(a);for(var r=0;r<Jr.length;r++){var i=Jr[r];i.blockedOn===e&&(i.blockedOn=null)}for(;Jr.length>0;){var o=Jr[0];if(o.blockedOn!==null)break;Mh(o),o.blockedOn===null&&Jr.shift()}}var xo=Ee.ReactCurrentBatchConfig,dd=!0;function Oh(e){dd=!!e}function vE(){return dd}function pE(e,t,n){var a=Ah(t),r;switch(a){case Ta:r=mE;break;case Dr:r=hE;break;case _r:default:r=vd;break}return r.bind(null,t,n,e)}function mE(e,t,n,a){var r=Pa(),i=xo.transition;xo.transition=null;try{On(Ta),vd(e,t,n,a)}finally{On(r),xo.transition=i}}function hE(e,t,n,a){var r=Pa(),i=xo.transition;xo.transition=null;try{On(Dr),vd(e,t,n,a)}finally{On(r),xo.transition=i}}function vd(e,t,n,a){dd&&yE(e,t,n,a)}function yE(e,t,n,a){var r=pd(e,t,n,a);if(r===null){_d(e,t,a,hs,n),kh(e,a);return}if(cE(r,e,t,n,a)){a.stopPropagation();return}if(kh(e,a),t&yl&&uE(e)){for(;r!==null;){var i=ni(r);i!==null&&nE(i);var o=pd(e,t,n,a);if(o===null&&_d(e,t,a,hs,n),o===r)break;r=o}r!==null&&a.stopPropagation();return}_d(e,t,a,null,n)}var hs=null;function pd(e,t,n,a){hs=null;var r=Sf(a),i=Vi(r);if(i!==null){var o=Oi(i);if(o===null)i=null;else{var l=o.tag;if(l===ye){var u=eh(o);if(u!==null)return u;i=null}else if(l===ue){var f=o.stateNode;if(vs(f))return th(o);i=null}else o!==i&&(i=null)}}return hs=i,null}function Ah(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 Ta;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 Dr;case"message":{var t=uT();switch(t){case is:return Ta;case jf:return Dr;case Ai:case sT:return _r;case Uf:return ds;default:return _r}}default:return _r}}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 Ul=null,md=null,Hl=null;function EE(e){return Ul=e,md=jh(),!0}function CE(){Ul=null,md=null,Hl=null}function Nh(){if(Hl)return Hl;var e,t=md,n=t.length,a,r=jh(),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 Hl=r.slice(e,l),Hl}function jh(){return"value"in Ul?Ul.value:Ul.textContent}function ys(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 gs(){return!0}function Uh(){return!1}function Ea(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=gs:this.isDefaultPrevented=Uh,this.isPropagationStopped=Uh,this}return Ve(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=gs)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=gs)},persist:function(){},isPersistent:gs}),t}var Ro={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hd=Ea(Ro),zl=Ve({},Ro,{view:0,detail:0}),xE=Ea(zl),yd,gd,Fl;function RE(e){e!==Fl&&(Fl&&e.type==="mousemove"?(yd=e.screenX-Fl.screenX,gd=e.screenY-Fl.screenY):(yd=0,gd=0),Fl=e)}var bs=Ve({},zl,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Sd,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),yd)},movementY:function(e){return"movementY"in e?e.movementY:gd}}),Hh=Ea(bs),wE=Ve({},bs,{dataTransfer:0}),DE=Ea(wE),_E=Ve({},zl,{relatedTarget:0}),bd=Ea(_E),kE=Ve({},Ro,{animationName:0,elapsedTime:0,pseudoElement:0}),ME=Ea(kE),LE=Ve({},Ro,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),OE=Ea(LE),AE=Ve({},Ro,{data:0}),zh=Ea(AE),NE=zh,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=ys(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 FE(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var a=zE[e];return a?!!n[a]:!1}function Sd(e){return FE}var VE=Ve({},zl,{key:HE,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Sd,charCode:function(e){return e.type==="keypress"?ys(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ys(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),BE=Ea(VE),$E=Ve({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Fh=Ea($E),PE=Ve({},zl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sd}),YE=Ea(PE),WE=Ve({},Ro,{propertyName:0,elapsedTime:0,pseudoElement:0}),IE=Ea(WE),qE=Ve({},bs,{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=Ea(qE),XE=[9,13,27,32],Vh=229,Td=yt&&"CompositionEvent"in window,Vl=null;yt&&"documentMode"in document&&(Vl=document.documentMode);var QE=yt&&"TextEvent"in window&&!Vl,Bh=yt&&(!Td||Vl&&Vl>8&&Vl<=11),$h=32,Ph=String.fromCharCode($h);function KE(){Ze("onBeforeInput",["compositionend","keypress","textInput","paste"]),Ze("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Ze("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Ze("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Yh=!1;function ZE(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function JE(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function eC(e,t){return e==="keydown"&&t.keyCode===Vh}function Wh(e,t){switch(e){case"keyup":return XE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==Vh;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Ih(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function qh(e){return e.locale==="ko"}var wo=!1;function tC(e,t,n,a,r){var i,o;if(Td?i=JE(t):wo?Wh(t,a)&&(i="onCompositionEnd"):eC(t,a)&&(i="onCompositionStart"),!i)return null;Bh&&!qh(a)&&(!wo&&i==="onCompositionStart"?wo=EE(r):i==="onCompositionEnd"&&wo&&(o=Nh()));var l=xs(n,i);if(l.length>0){var u=new zh(i,t,null,a,r);if(e.push({event:u,listeners:l}),o)u.data=o;else{var f=Ih(a);f!==null&&(u.data=f)}}}function nC(e,t){switch(e){case"compositionend":return Ih(t);case"keypress":var n=t.which;return n!==$h?null:(Yh=!0,Ph);case"textInput":var a=t.data;return a===Ph&&Yh?null:a;default:return null}}function aC(e,t){if(wo){if(e==="compositionend"||!Td&&Wh(e,t)){var n=Nh();return CE(),wo=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!ZE(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Bh&&!qh(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=xs(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 Gh(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(!yt)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(){Ze("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function Xh(e,t,n,a){Wm(a);var r=xs(t,"onChange");if(r.length>0){var i=new hd("onChange","change",null,n,a);e.push({event:i,listeners:r})}}var Bl=null,$l=null;function sC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function cC(e){var t=[];Xh(t,$l,e,Sf(e)),Xm(fC,t)}function fC(e){vy(e,0)}function Ss(e){var t=Oo(e);if(fl(t))return e}function dC(e,t){if(e==="change")return t}var Qh=!1;yt&&(Qh=lC("input")&&(!document.documentMode||document.documentMode>9));function vC(e,t){Bl=e,$l=t,Bl.attachEvent("onpropertychange",Zh)}function Kh(){Bl&&(Bl.detachEvent("onpropertychange",Zh),Bl=null,$l=null)}function Zh(e){e.propertyName==="value"&&Ss($l)&&cC(e)}function pC(e,t,n){e==="focusin"?(Kh(),vC(t,n)):e==="focusout"&&Kh()}function mC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ss($l)}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 Ss(t)}function gC(e,t){if(e==="input"||e==="change")return Ss(t)}function bC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Oe(e,"number",e.value)}function SC(e,t,n,a,r,i,o){var l=n?Oo(n):window,u,f;if(sC(l)?u=dC:Gh(l)?Qh?u=gC:(u=mC,f=pC):hC(l)&&(u=yC),u){var v=u(t,n);if(v){Xh(e,v,a,r);return}}f&&f(t,l,n),t==="focusout"&&bC(l)}function TC(){Yt("onMouseEnter",["mouseout","mouseover"]),Yt("onMouseLeave",["mouseout","mouseover"]),Yt("onPointerEnter",["pointerout","pointerover"]),Yt("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&&!VS(a)){var f=a.relatedTarget||a.fromElement;if(f&&(Vi(f)||au(f)))return}if(!(!u&&!l)){var v;if(r.window===r)v=r;else{var S=r.ownerDocument;S?v=S.defaultView||S.parentWindow:v=window}var b,w;if(u){var _=a.relatedTarget||a.toElement;if(b=n,w=_?Vi(_):null,w!==null){var N=Oi(w);(w!==N||w.tag!==ee&&w.tag!==Fe)&&(w=null)}}else b=null,w=n;if(b!==w){var re=Hh,De="onMouseLeave",Se="onMouseEnter",ht="mouse";(t==="pointerout"||t==="pointerover")&&(re=Fh,De="onPointerLeave",Se="onPointerEnter",ht="pointer");var ct=b==null?v:Oo(b),C=w==null?v:Oo(w),j=new re(De,ht+"leave",b,a,r);j.target=ct,j.relatedTarget=C;var x=null,P=Vi(r);if(P===n){var de=new re(Se,ht+"enter",w,a,r);de.target=C,de.relatedTarget=ct,x=de}IC(e,j,x,b,w)}}}function CC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ca=typeof Object.is=="function"?Object.is:CC;function Pl(e,t){if(Ca(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(!nt.call(t,i)||!Ca(e[i],t[i]))return!1}return!0}function Jh(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 ey(e,t){for(var n=Jh(e),a=0,r=0;n;){if(n.nodeType===Cr){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=Jh(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,v=e,S=null;e:for(;;){for(var b=null;v===t&&(n===0||v.nodeType===Cr)&&(o=i+n),v===a&&(r===0||v.nodeType===Cr)&&(l=i+r),v.nodeType===Cr&&(i+=v.nodeValue.length),(b=v.firstChild)!==null;)S=v,v=b;for(;;){if(v===e)break e;if(S===t&&++u===n&&(o=i),S===a&&++f===r&&(l=i),(b=v.nextSibling)!==null)break;v=S,S=v.parentNode}v=b}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=ey(e,o),v=ey(e,l);if(f&&v){if(r.rangeCount===1&&r.anchorNode===f.node&&r.anchorOffset===f.offset&&r.focusNode===v.node&&r.focusOffset===v.offset)return;var S=n.createRange();S.setStart(f.node,f.offset),r.removeAllRanges(),o>l?(r.addRange(S),r.extend(v.node,v.offset)):(S.setEnd(v.node,v.offset),r.addRange(S))}}}function ty(e){return e&&e.nodeType===Cr}function ny(e,t){return!e||!t?!1:e===t?!0:ty(e)?!1:ty(t)?ny(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function _C(e){return e&&e.ownerDocument&&ny(e.ownerDocument.documentElement,e)}function kC(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function ay(){for(var e=window,t=Sr();t instanceof e.HTMLIFrameElement;){if(kC(t))e=t.contentWindow;else return t;t=Sr(e.document)}return t}function Ed(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=ay();return{focusedElem:e,selectionRange:Ed(e)?OC(e):null}}function LC(e){var t=ay(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&_C(n)){a!==null&&Ed(n)&&AC(n,a);for(var r=[],i=n;i=i.parentNode;)i.nodeType===fa&&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=yt&&"documentMode"in document&&document.documentMode<=11;function jC(){Ze("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Do=null,Cd=null,Yl=null,xd=!1;function UC(e){if("selectionStart"in e&&Ed(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===xr?e:e.ownerDocument}function ry(e,t,n){var a=HC(n);if(!(xd||Do==null||Do!==Sr(a))){var r=UC(Do);if(!Yl||!Pl(Yl,r)){Yl=r;var i=xs(Cd,"onSelect");if(i.length>0){var o=new hd("onSelect","select",null,t,n);e.push({event:o,listeners:i}),o.target=Do}}}}function zC(e,t,n,a,r,i,o){var l=n?Oo(n):window;switch(t){case"focusin":(Gh(l)||l.contentEditable==="true")&&(Do=l,Cd=n,Yl=null);break;case"focusout":Do=null,Cd=null,Yl=null;break;case"mousedown":xd=!0;break;case"contextmenu":case"mouseup":case"dragend":xd=!1,ry(e,a,r);break;case"selectionchange":if(NC)break;case"keydown":case"keyup":ry(e,a,r)}}function Ts(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var _o={animationend:Ts("Animation","AnimationEnd"),animationiteration:Ts("Animation","AnimationIteration"),animationstart:Ts("Animation","AnimationStart"),transitionend:Ts("Transition","TransitionEnd")},Rd={},iy={};yt&&(iy=document.createElement("div").style,"AnimationEvent"in window||(delete _o.animationend.animation,delete _o.animationiteration.animation,delete _o.animationstart.animation),"TransitionEvent"in window||delete _o.transitionend.transition);function Es(e){if(Rd[e])return Rd[e];if(!_o[e])return e;var t=_o[e];for(var n in t)if(t.hasOwnProperty(n)&&n in iy)return Rd[e]=t[n];return e}var oy=Es("animationend"),ly=Es("animationiteration"),uy=Es("animationstart"),sy=Es("transitionend"),cy=new Map,fy=["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 ei(e,t){cy.set(e,t),Ze(t,[e])}function FC(){for(var e=0;e<fy.length;e++){var t=fy[e],n=t.toLowerCase(),a=t[0].toUpperCase()+t.slice(1);ei(n,"on"+a)}ei(oy,"onAnimationEnd"),ei(ly,"onAnimationIteration"),ei(uy,"onAnimationStart"),ei("dblclick","onDoubleClick"),ei("focusin","onFocus"),ei("focusout","onBlur"),ei(sy,"onTransitionEnd")}function VC(e,t,n,a,r,i,o){var l=cy.get(t);if(l!==void 0){var u=hd,f=t;switch(t){case"keypress":if(ys(a)===0)return;case"keydown":case"keyup":u=BE;break;case"focusin":f="focus",u=bd;break;case"focusout":f="blur",u=bd;break;case"beforeblur":case"afterblur":u=bd;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=Hh;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 oy:case ly:case uy:u=ME;break;case sy:u=IE;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=Fh;break}var v=(i&yl)!==0;{var S=!v&&t==="scroll",b=YC(n,l,a.type,v,S);if(b.length>0){var w=new u(l,f,null,a,r);e.push({event:w,listeners:b})}}}}FC(),TC(),uC(),jC(),KE();function BC(e,t,n,a,r,i,o){VC(e,t,n,a,r,i);var l=(i&HS)===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 Wl=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],wd=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(Wl));function dy(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,XS(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;dy(e,u,l),a=o}else for(var f=0;f<t.length;f++){var v=t[f],S=v.instance,b=v.currentTarget,w=v.listener;if(S!==a&&e.isPropagationStopped())return;dy(e,w,b),a=S}}function vy(e,t){for(var n=(t&yl)!==0,a=0;a<e.length;a++){var r=e[a],i=r.event,o=r.listeners;$C(i,o,n)}QS()}function PC(e,t,n,a,r){var i=Sf(n),o=[];BC(o,e,a,n,i,t),vy(o,t)}function Qt(e,t){wd.has(e)||d('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=!1,a=b1(t),r=qC(e);a.has(r)||(py(t,e,bf,n),a.add(r))}function Dd(e,t,n){wd.has(e)&&!t&&d('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|=yl),py(n,e,a,t)}var Cs="_reactListening"+Math.random().toString(36).slice(2);function Il(e){if(!e[Cs]){e[Cs]=!0,Ne.forEach(function(n){n!=="selectionchange"&&(wd.has(n)||Dd(n,!1,e),Dd(n,!0,e))});var t=e.nodeType===xr?e:e.ownerDocument;t!==null&&(t[Cs]||(t[Cs]=!0,Dd("selectionchange",!1,t)))}}function py(e,t,n,a,r){var i=pE(e,t,n),o=void 0;Cf&&(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 my(e,t){return e===t||e.nodeType===pn&&e.parentNode===t}function _d(e,t,n,a,r){var i=a;if(!(t&Pm)&&!(t&bf)){var o=r;if(a!==null){var l=a;e:for(;;){if(l===null)return;var u=l.tag;if(u===ue||u===Le){var f=l.stateNode.containerInfo;if(my(f,o))break;if(u===Le)for(var v=l.return;v!==null;){var S=v.tag;if(S===ue||S===Le){var b=v.stateNode.containerInfo;if(my(b,o))return}v=v.return}for(;f!==null;){var w=Vi(f);if(w===null)return;var _=w.tag;if(_===ee||_===Fe){l=i=w;continue e}f=f.parentNode}}l=l.return}}}Xm(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,v=null;f!==null;){var S=f,b=S.stateNode,w=S.tag;if(w===ee&&b!==null&&(v=b,l!==null)){var _=bl(f,l);_!=null&&u.push(ql(f,_,v))}if(r)break;f=f.return}return u}function xs(e,t){for(var n=t+"Capture",a=[],r=e;r!==null;){var i=r,o=i.stateNode,l=i.tag;if(l===ee&&o!==null){var u=o,f=bl(r,n);f!=null&&a.unshift(ql(r,f,u));var v=bl(r,t);v!=null&&a.push(ql(r,v,u))}r=r.return}return a}function ko(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==ee);return e||null}function WC(e,t){for(var n=e,a=t,r=0,i=n;i;i=ko(i))r++;for(var o=0,l=a;l;l=ko(l))o++;for(;r-o>0;)n=ko(n),r--;for(;o-r>0;)a=ko(a),o--;for(var u=r;u--;){if(n===a||a!==null&&n===a.alternate)return n;n=ko(n),a=ko(a)}return null}function hy(e,t,n,a,r){for(var i=t._reactName,o=[],l=n;l!==null&&l!==a;){var u=l,f=u.alternate,v=u.stateNode,S=u.tag;if(f!==null&&f===a)break;if(S===ee&&v!==null){var b=v;if(r){var w=bl(l,i);w!=null&&o.unshift(ql(l,w,b))}else if(!r){var _=bl(l,i);_!=null&&o.push(ql(l,_,b))}}l=l.return}o.length!==0&&e.push({event:t,listeners:o})}function IC(e,t,n,a,r){var i=a&&r?WC(a,r):null;a!==null&&hy(e,t,a,i,!1),r!==null&&n!==null&&hy(e,n,r,i,!0)}function qC(e,t){return e+"__bubble"}var da=!1,Gl="dangerouslySetInnerHTML",Rs="suppressContentEditableWarning",ti="suppressHydrationWarning",yy="autoFocus",zi="children",Fi="style",ws="__html",kd,Ds,Xl,gy,_s,by,Sy;kd={dialog:!0,webview:!0},Ds=function(e,t){MS(e,t),LS(e,t),US(e,t,{registrationNameDependencies:ze,possibleRegistrationNames:dn})},by=yt&&!document.documentMode,Xl=function(e,t,n){if(!da){var a=ks(n),r=ks(t);r!==a&&(da=!0,d("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},gy=function(e){if(!da){da=!0;var t=[];e.forEach(function(n){t.push(n)}),d("Extra attributes from the server: %s",t)}},_s=function(e,t){t===!1?d("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):d("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},Sy=function(e,t){var n=e.namespaceURI===Er?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 ks(e){A(e);var t=typeof e=="string"?e:""+e;return t.replace(GC,`
`).replace(XC,"")}function Ms(e,t,n,a){var r=ks(t),i=ks(e);if(i!==r&&(a&&(da||(da=!0,d('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&q))throw new Error("Text content does not match server-rendered HTML.")}function Ty(e){return e.nodeType===xr?e:e.ownerDocument}function QC(){}function Ls(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===Fi)o&&Object.freeze(o),Hm(t,o);else if(i===Gl){var l=o?o[ws]:void 0;l!=null&&Om(t,l)}else if(i===zi)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&Ju(t,o)}else typeof o=="number"&&Ju(t,""+o);else i===Rs||i===ti||i===yy||(ze.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&_s(i,o),i==="onScroll"&&Qt("scroll",t)):o!=null&&ga(t,i,o,r))}}function ZC(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===Fi?Hm(e,o):i===Gl?Om(e,o):i===zi?Ju(e,o):ga(e,i,o,a)}}function JC(e,t,n,a){var r,i=Ty(n),o,l=a;if(l===Er&&(l=vf(e)),l===Er){if(r=Ri(e,t),!r&&e!==e.toLowerCase()&&d("<%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 v=o;t.multiple?v.multiple=!0:t.size&&(v.size=t.size)}}else o=i.createElementNS(l,e);return l===Er&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!nt.call(kd,e)&&(kd[e]=!0,d("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 Ty(t).createTextNode(e)}function tx(e,t,n,a){var r=Ri(t,n);Ds(t,n);var i;switch(t){case"dialog":Qt("cancel",e),Qt("close",e),i=n;break;case"iframe":case"object":case"embed":Qt("load",e),i=n;break;case"video":case"audio":for(var o=0;o<Wl.length;o++)Qt(Wl[o],e);i=n;break;case"source":Qt("error",e),i=n;break;case"img":case"image":case"link":Qt("error",e),Qt("load",e),i=n;break;case"details":Qt("toggle",e),i=n;break;case"input":Qu(e,n),i=dl(e,n),Qt("invalid",e);break;case"option":Ut(e,n),i=n;break;case"select":ml(e,n),i=pl(e,n),Qt("invalid",e);break;case"textarea":km(e,n),i=ff(e,n),Qt("invalid",e);break;default:i=n}switch(gf(t,i),KC(t,e,a,i,r),t){case"input":Ci(e),D(e,n,!1);break;case"textarea":Ci(e),Lm(e);break;case"option":It(e,n);break;case"select":sf(e,n);break;default:typeof i.onClick=="function"&&Ls(e);break}}function nx(e,t,n,a,r){Ds(t,a);var i=null,o,l;switch(t){case"input":o=dl(e,n),l=dl(e,a),i=[];break;case"select":o=pl(e,n),l=pl(e,a),i=[];break;case"textarea":o=ff(e,n),l=ff(e,a),i=[];break;default:o=n,l=a,typeof o.onClick!="function"&&typeof l.onClick=="function"&&Ls(e);break}gf(t,l);var u,f,v=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===Fi){var S=o[u];for(f in S)S.hasOwnProperty(f)&&(v||(v={}),v[f]="")}else u===Gl||u===zi||u===Rs||u===ti||u===yy||(ze.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var b=l[u],w=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||b===w||b==null&&w==null))if(u===Fi)if(b&&Object.freeze(b),w){for(f in w)w.hasOwnProperty(f)&&(!b||!b.hasOwnProperty(f))&&(v||(v={}),v[f]="");for(f in b)b.hasOwnProperty(f)&&w[f]!==b[f]&&(v||(v={}),v[f]=b[f])}else v||(i||(i=[]),i.push(u,v)),v=b;else if(u===Gl){var _=b?b[ws]:void 0,N=w?w[ws]:void 0;_!=null&&N!==_&&(i=i||[]).push(u,_)}else u===zi?(typeof b=="string"||typeof b=="number")&&(i=i||[]).push(u,""+b):u===Rs||u===ti||(ze.hasOwnProperty(u)?(b!=null&&(typeof b!="function"&&_s(u,b),u==="onScroll"&&Qt("scroll",e)),!i&&w!==b&&(i=[])):(i=i||[]).push(u,b))}return v&&(ES(v,l[Fi]),(i=i||[]).push(Fi,v)),i}function ax(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=Ri(n,a),o=Ri(n,r);switch(ZC(e,t,i,o),n){case"input":h(e,r);break;case"textarea":Mm(e,r);break;case"select":Ku(e,r);break}}function rx(e){{var t=e.toLowerCase();return es.hasOwnProperty(t)&&es[t]||null}}function ix(e,t,n,a,r,i,o){var l,u;switch(l=Ri(t,n),Ds(t,n),t){case"dialog":Qt("cancel",e),Qt("close",e);break;case"iframe":case"object":case"embed":Qt("load",e);break;case"video":case"audio":for(var f=0;f<Wl.length;f++)Qt(Wl[f],e);break;case"source":Qt("error",e);break;case"img":case"image":case"link":Qt("error",e),Qt("load",e);break;case"details":Qt("toggle",e);break;case"input":Qu(e,n),Qt("invalid",e);break;case"option":Ut(e,n);break;case"select":ml(e,n),Qt("invalid",e);break;case"textarea":km(e,n),Qt("invalid",e);break}gf(t,n);{u=new Set;for(var v=e.attributes,S=0;S<v.length;S++){var b=v[S].name.toLowerCase();switch(b){case"value":break;case"checked":break;case"selected":break;default:u.add(v[S].name)}}}var w=null;for(var _ in n)if(n.hasOwnProperty(_)){var N=n[_];if(_===zi)typeof N=="string"?e.textContent!==N&&(n[ti]!==!0&&Ms(e.textContent,N,i,o),w=[zi,N]):typeof N=="number"&&e.textContent!==""+N&&(n[ti]!==!0&&Ms(e.textContent,N,i,o),w=[zi,""+N]);else if(ze.hasOwnProperty(_))N!=null&&(typeof N!="function"&&_s(_,N),_==="onScroll"&&Qt("scroll",e));else if(o&&typeof l=="boolean"){var re=void 0,De=Vt(_);if(n[ti]!==!0){if(!(_===Rs||_===ti||_==="value"||_==="checked"||_==="selected")){if(_===Gl){var Se=e.innerHTML,ht=N?N[ws]:void 0;if(ht!=null){var ct=Sy(e,ht);ct!==Se&&Xl(_,Se,ct)}}else if(_===Fi){if(u.delete(_),by){var C=SS(N);re=e.getAttribute("style"),C!==re&&Xl(_,re,C)}}else if(l)u.delete(_.toLowerCase()),re=Pr(e,_,N),N!==re&&Xl(_,re,N);else if(!xt(_,De,l)&&!Xt(_,N,De,l)){var j=!1;if(De!==null)u.delete(De.attributeName),re=$r(e,_,N,De);else{var x=a;if(x===Er&&(x=vf(t)),x===Er)u.delete(_.toLowerCase());else{var P=rx(_);P!==null&&P!==_&&(j=!0,u.delete(P)),u.delete(_)}re=Pr(e,_,N)}var de=Mt;!de&&N!==re&&!j&&Xl(_,re,N)}}}}}switch(o&&u.size>0&&n[ti]!==!0&&gy(u),t){case"input":Ci(e),D(e,n,!0);break;case"textarea":Ci(e),Lm(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&Ls(e);break}return w}function ox(e,t,n){var a=e.nodeValue!==t;return a}function Md(e,t){{if(da)return;da=!0,d("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function Ld(e,t){{if(da)return;da=!0,d('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function Od(e,t,n){{if(da)return;da=!0,d("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Ad(e,t){{if(t===""||da)return;da=!0,d('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":O(e,n);return;case"textarea":tS(e,n);return;case"select":cf(e,n);return}}var Ql=function(){},Kl=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"],Ey=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],sx=Ey.concat(["button"]),cx=["dd","dt","li","option","optgroup","p","rp","rt"],Cy={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Kl=function(e,t){var n=Ve({},e||Cy),a={tag:t};return Ey.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},xy={};Ql=function(e,t,n){n=n||Cy;var a=n.current,r=a&&a.tag;t!=null&&(e!=null&&d("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(!xy[f]){xy[f]=!0;var v=e,S="";if(e==="#text"?/\S/.test(t)?v="Text nodes":(v="Whitespace text nodes",S=" Make sure you don't have any extra whitespace between tags on each line of your source code."):v="<"+e+">",i){var b="";u==="table"&&e==="tr"&&(b+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),d("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",v,u,S,b)}else d("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",v,u)}}}}var Os="suppressHydrationWarning",As="$",Ns="/$",Zl="$?",Jl="$!",vx="style",Nd=null,jd=null;function px(e){var t,n,a=e.nodeType;switch(a){case xr:case mf:{t=a===xr?"#document":"#fragment";var r=e.documentElement;n=r?r.namespaceURI:pf(null,"");break}default:{var i=a===pn?e.parentNode:e,o=i.namespaceURI||null;t=i.tagName,n=pf(o,t);break}}{var l=t.toLowerCase(),u=Kl(null,l);return{namespace:n,ancestorInfo:u}}}function mx(e,t,n){{var a=e,r=pf(a.namespace,t),i=Kl(a.ancestorInfo,t);return{namespace:r,ancestorInfo:i}}}function m_(e){return e}function hx(e){Nd=vE(),jd=MC();var t=null;return Oh(!1),t}function yx(e){LC(jd),Oh(Nd),Nd=null,jd=null}function gx(e,t,n,a,r){var i;{var o=a;if(Ql(e,null,o.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var l=""+t.children,u=Kl(o.ancestorInfo,e);Ql(null,l,u)}i=o.namespace}var f=JC(e,t,n,i);return nu(r,f),Pd(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=Kl(o.ancestorInfo,t);Ql(null,l,u)}}return nx(e,t,n,a)}function Ud(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;Ql(null,e,r.ancestorInfo)}var i=ex(e,t);return nu(a,i),i}function Cx(){var e=window.event;return e===void 0?_r:Ah(e.type)}var Hd=typeof setTimeout=="function"?setTimeout:void 0,xx=typeof clearTimeout=="function"?clearTimeout:void 0,zd=-1,Ry=typeof Promise=="function"?Promise:void 0,Rx=typeof queueMicrotask=="function"?queueMicrotask:typeof Ry<"u"?function(e){return Ry.resolve(null).then(e).catch(wx)}:Hd;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),Pd(e,r)}function wy(e){Ju(e,"")}function kx(e,t,n){e.nodeValue=n}function Mx(e,t){e.appendChild(t)}function Lx(e,t){var n;e.nodeType===pn?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var a=e._reactRootContainer;a==null&&n.onclick===null&&Ls(n)}function Ox(e,t,n){e.insertBefore(t,n)}function Ax(e,t,n){e.nodeType===pn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function Nx(e,t){e.removeChild(t)}function jx(e,t){e.nodeType===pn?e.parentNode.removeChild(t):e.removeChild(t)}function Fd(e,t){var n=t,a=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===pn){var i=r.data;if(i===Ns)if(a===0){e.removeChild(r),jl(t);return}else a--;else(i===As||i===Zl||i===Jl)&&a++}n=r}while(n);jl(t)}function Ux(e,t){e.nodeType===pn?Fd(e.parentNode,t):e.nodeType===fa&&Fd(e,t),jl(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 Fx(e,t){e=e;var n=t[vx],a=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=hf("display",a)}function Vx(e,t){e.nodeValue=t}function Bx(e){e.nodeType===fa?e.textContent="":e.nodeType===xr&&e.documentElement&&e.removeChild(e.documentElement)}function $x(e,t,n){return e.nodeType!==fa||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Px(e,t){return t===""||e.nodeType!==Cr?null:e}function Yx(e){return e.nodeType!==pn?null:e}function Dy(e){return e.data===Zl}function Vd(e){return e.data===Jl}function Wx(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 Ix(e,t){e._reactRetry=t}function js(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===fa||t===Cr)break;if(t===pn){var n=e.data;if(n===As||n===Jl||n===Zl)break;if(n===Ns)return null}}return e}function eu(e){return js(e.nextSibling)}function qx(e){return js(e.firstChild)}function Gx(e){return js(e.firstChild)}function Xx(e){return js(e.nextSibling)}function Qx(e,t,n,a,r,i,o){nu(i,e),Pd(e,n);var l;{var u=r;l=u.namespace}var f=(i.mode&pt)!==Me;return ix(e,t,n,l,a,f,o)}function Kx(e,t,n,a){return nu(n,e),n.mode&pt,ox(e,t)}function Zx(e,t){nu(t,e)}function Jx(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===pn){var a=t.data;if(a===Ns){if(n===0)return eu(t);n--}else(a===As||a===Jl||a===Zl)&&n++}t=t.nextSibling}return null}function _y(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===pn){var a=t.data;if(a===As||a===Jl||a===Zl){if(n===0)return t;n--}else a===Ns&&n++}t=t.previousSibling}return null}function e1(e){jl(e)}function t1(e){jl(e)}function n1(e){return e!=="head"&&e!=="body"}function a1(e,t,n,a){var r=!0;Ms(t.nodeValue,n,a,r)}function r1(e,t,n,a,r,i){if(t[Os]!==!0){var o=!0;Ms(a.nodeValue,r,i,o)}}function i1(e,t){t.nodeType===fa?Md(e,t):t.nodeType===pn||Ld(e,t)}function o1(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===fa?Md(n,t):t.nodeType===pn||Ld(n,t))}}function l1(e,t,n,a,r){(r||t[Os]!==!0)&&(a.nodeType===fa?Md(n,a):a.nodeType===pn||Ld(n,a))}function u1(e,t,n){Od(e,t)}function s1(e,t){Ad(e,t)}function c1(e,t,n){{var a=e.parentNode;a!==null&&Od(a,t)}}function f1(e,t){{var n=e.parentNode;n!==null&&Ad(n,t)}}function d1(e,t,n,a,r,i){(i||t[Os]!==!0)&&Od(n,a)}function v1(e,t,n,a,r){(r||t[Os]!==!0)&&Ad(n,a)}function p1(e){d("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function m1(e){Il(e)}var Mo=Math.random().toString(36).slice(2),Lo="__reactFiber$"+Mo,Bd="__reactProps$"+Mo,tu="__reactContainer$"+Mo,$d="__reactEvents$"+Mo,h1="__reactListeners$"+Mo,y1="__reactHandles$"+Mo;function g1(e){delete e[Lo],delete e[Bd],delete e[$d],delete e[h1],delete e[y1]}function nu(e,t){t[Lo]=e}function Us(e,t){t[tu]=e}function ky(e){e[tu]=null}function au(e){return!!e[tu]}function Vi(e){var t=e[Lo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[tu]||n[Lo],t){var a=t.alternate;if(t.child!==null||a!==null&&a.child!==null)for(var r=_y(e);r!==null;){var i=r[Lo];if(i)return i;r=_y(r)}return t}e=n,n=e.parentNode}return null}function ni(e){var t=e[Lo]||e[tu];return t&&(t.tag===ee||t.tag===Fe||t.tag===ye||t.tag===ue)?t:null}function Oo(e){if(e.tag===ee||e.tag===Fe)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Hs(e){return e[Bd]||null}function Pd(e,t){e[Bd]=t}function b1(e){var t=e[$d];return t===void 0&&(t=e[$d]=new Set),t}var My={},Ly=Ee.ReactDebugCurrentFrame;function zs(e){if(e){var t=e._owner,n=ol(e.type,e._source,t?t.type:null);Ly.setExtraStackFrame(n)}else Ly.setExtraStackFrame(null)}function Ya(e,t,n,a,r){{var i=Function.call.bind(nt);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)&&(zs(r),d("%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),zs(null)),l instanceof Error&&!(l.message in My)&&(My[l.message]=!0,zs(r),d("Failed %s type: %s",n,l.message),zs(null))}}}var Yd=[],Fs;Fs=[];var kr=-1;function ai(e){return{current:e}}function qn(e,t){if(kr<0){d("Unexpected pop.");return}t!==Fs[kr]&&d("Unexpected Fiber popped."),e.current=Yd[kr],Yd[kr]=null,Fs[kr]=null,kr--}function Gn(e,t,n){kr++,Yd[kr]=e.current,Fs[kr]=n,e.current=t}var Wd;Wd={};var xa={};Object.freeze(xa);var Mr=ai(xa),lr=ai(!1),Id=xa;function Ao(e,t,n){return n&&ur(t)?Id:Mr.current}function Oy(e,t,n){{var a=e.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=t,a.__reactInternalMemoizedMaskedChildContext=n}}function No(e,t){{var n=e.type,a=n.contextTypes;if(!a)return xa;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=Xe(e)||"Unknown";Ya(a,i,"context",l)}return r&&Oy(e,t,i),i}}function Vs(){return lr.current}function ur(e){{var t=e.childContextTypes;return t!=null}}function Bs(e){qn(lr,e),qn(Mr,e)}function qd(e){qn(lr,e),qn(Mr,e)}function Ay(e,t,n){{if(Mr.current!==xa)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");Gn(Mr,t,e),Gn(lr,n,e)}}function Ny(e,t,n){{var a=e.stateNode,r=t.childContextTypes;if(typeof a.getChildContext!="function"){{var i=Xe(e)||"Unknown";Wd[i]||(Wd[i]=!0,d("%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((Xe(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');{var u=Xe(e)||"Unknown";Ya(r,o,"child context",u)}return Ve({},n,o)}}function $s(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||xa;return Id=Mr.current,Gn(Mr,n,e),Gn(lr,lr.current,e),!0}}function jy(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=Ny(e,t,Id);a.__reactInternalMemoizedMergedChildContext=r,qn(lr,e),qn(Mr,e),Gn(Mr,r,e),Gn(lr,n,e)}else qn(lr,e),Gn(lr,n,e)}}function S1(e){{if(!nT(e)||e.tag!==ne)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 ue:return t.stateNode.context;case ne:{var n=t.type;if(ur(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 ri=0,Ps=1,Lr=null,Gd=!1,Xd=!1;function Uy(e){Lr===null?Lr=[e]:Lr.push(e)}function T1(e){Gd=!0,Uy(e)}function Hy(){Gd&&ii()}function ii(){if(!Xd&&Lr!==null){Xd=!0;var e=0,t=Pa();try{var n=!0,a=Lr;for(On(Ta);e<a.length;e++){var r=a[e];do r=r(n);while(r!==null)}Lr=null,Gd=!1}catch(i){throw Lr!==null&&(Lr=Lr.slice(e+1)),lh(is,ii),i}finally{On(t),Xd=!1}}return null}var jo=[],Uo=0,Ys=null,Ws=0,La=[],Oa=0,Bi=null,Or=1,Ar="";function E1(e){return Pi(),(e.flags&Jm)!==Ae}function C1(e){return Pi(),Ws}function x1(){var e=Ar,t=Or,n=t&~R1(t);return n.toString(32)+e}function $i(e,t){Pi(),jo[Uo++]=Ws,jo[Uo++]=Ys,Ys=e,Ws=t}function zy(e,t,n){Pi(),La[Oa++]=Or,La[Oa++]=Ar,La[Oa++]=Bi,Bi=e;var a=Or,r=Ar,i=Is(a)-1,o=a&~(1<<i),l=n+1,u=Is(t)+i;if(u>30){var f=i-i%5,v=(1<<f)-1,S=(o&v).toString(32),b=o>>f,w=i-f,_=Is(t)+w,N=l<<w,re=N|b,De=S+r;Or=1<<_|re,Ar=De}else{var Se=l<<i,ht=Se|o,ct=r;Or=1<<u|ht,Ar=ct}}function Qd(e){Pi();var t=e.return;if(t!==null){var n=1,a=0;$i(e,n),zy(e,n,a)}}function Is(e){return 32-vh(e)}function R1(e){return 1<<Is(e)-1}function Kd(e){for(;e===Ys;)Ys=jo[--Uo],jo[Uo]=null,Ws=jo[--Uo],jo[Uo]=null;for(;e===Bi;)Bi=La[--Oa],La[Oa]=null,Ar=La[--Oa],La[Oa]=null,Or=La[--Oa],La[Oa]=null}function w1(){return Pi(),Bi!==null?{id:Or,overflow:Ar}:null}function D1(e,t){Pi(),La[Oa++]=Or,La[Oa++]=Ar,La[Oa++]=Bi,Or=t.id,Ar=t.overflow,Bi=e}function Pi(){jn()||d("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Nn=null,Aa=null,Wa=!1,Yi=!1,oi=null;function _1(){Wa&&d("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Fy(){Yi=!0}function k1(){return Yi}function M1(e){var t=e.stateNode.containerInfo;return Aa=Gx(t),Nn=e,Wa=!0,oi=null,Yi=!1,!0}function L1(e,t,n){return Aa=Xx(t),Nn=e,Wa=!0,oi=null,Yi=!1,n!==null&&D1(e,n),!0}function Vy(e,t){switch(e.tag){case ue:{i1(e.stateNode.containerInfo,t);break}case ee:{var n=(e.mode&pt)!==Me;l1(e.type,e.memoizedProps,e.stateNode,t,n);break}case ye:{var a=e.memoizedState;a.dehydrated!==null&&o1(a.dehydrated,t);break}}}function By(e,t){Vy(e,t);var n=jD();n.stateNode=t,n.return=e;var a=e.deletions;a===null?(e.deletions=[n],e.flags|=wi):a.push(n)}function Zd(e,t){{if(Yi)return;switch(e.tag){case ue:{var n=e.stateNode.containerInfo;switch(t.tag){case ee:var a=t.type;t.pendingProps,u1(n,a);break;case Fe:var r=t.pendingProps;s1(n,r);break}break}case ee:{var i=e.type,o=e.memoizedProps,l=e.stateNode;switch(t.tag){case ee:{var u=t.type,f=t.pendingProps,v=(e.mode&pt)!==Me;d1(i,o,l,u,f,v);break}case Fe:{var S=t.pendingProps,b=(e.mode&pt)!==Me;v1(i,o,l,S,b);break}}break}case ye:{var w=e.memoizedState,_=w.dehydrated;if(_!==null)switch(t.tag){case ee:var N=t.type;t.pendingProps,c1(_,N);break;case Fe:var re=t.pendingProps;f1(_,re);break}break}default:return}}}function $y(e,t){t.flags=t.flags&-4097|_n,Zd(e,t)}function Py(e,t){switch(e.tag){case ee:{var n=e.type;e.pendingProps;var a=$x(t,n);return a!==null?(e.stateNode=a,Nn=e,Aa=qx(a),!0):!1}case Fe:{var r=e.pendingProps,i=Px(t,r);return i!==null?(e.stateNode=i,Nn=e,Aa=null,!0):!1}case ye:{var o=Yx(t);if(o!==null){var l={dehydrated:o,treeContext:w1(),retryLane:Ma};e.memoizedState=l;var u=UD(o);return u.return=e,e.child=u,Nn=e,Aa=null,!0}return!1}default:return!1}}function Jd(e){return(e.mode&pt)!==Me&&(e.flags&_t)===Ae}function ev(e){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function tv(e){if(Wa){var t=Aa;if(!t){Jd(e)&&(Zd(Nn,e),ev()),$y(Nn,e),Wa=!1,Nn=e;return}var n=t;if(!Py(e,t)){Jd(e)&&(Zd(Nn,e),ev()),t=eu(n);var a=Nn;if(!t||!Py(e,t)){$y(Nn,e),Wa=!1,Nn=e;return}By(a,n)}}}function O1(e,t,n){var a=e.stateNode,r=!Yi,i=Qx(a,e.type,e.memoizedProps,t,n,e,r);return e.updateQueue=i,i!==null}function A1(e){var t=e.stateNode,n=e.memoizedProps,a=Kx(t,n,e);if(a){var r=Nn;if(r!==null)switch(r.tag){case ue:{var i=r.stateNode.containerInfo,o=(r.mode&pt)!==Me;a1(i,t,n,o);break}case ee:{var l=r.type,u=r.memoizedProps,f=r.stateNode,v=(r.mode&pt)!==Me;r1(l,u,f,t,n,v);break}}}return a}function N1(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.");Zx(n,e)}function j1(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 Jx(n)}function Yy(e){for(var t=e.return;t!==null&&t.tag!==ee&&t.tag!==ue&&t.tag!==ye;)t=t.return;Nn=t}function qs(e){if(e!==Nn)return!1;if(!Wa)return Yy(e),Wa=!0,!1;if(e.tag!==ue&&(e.tag!==ee||n1(e.type)&&!Ud(e.type,e.memoizedProps))){var t=Aa;if(t)if(Jd(e))Wy(e),ev();else for(;t;)By(e,t),t=eu(t)}return Yy(e),e.tag===ye?Aa=j1(e):Aa=Nn?eu(e.stateNode):null,!0}function U1(){return Wa&&Aa!==null}function Wy(e){for(var t=Aa;t;)Vy(e,t),t=eu(t)}function Ho(){Nn=null,Aa=null,Wa=!1,Yi=!1}function Iy(){oi!==null&&(Fb(oi),oi=null)}function jn(){return Wa}function nv(e){oi===null?oi=[e]:oi.push(e)}var H1=Ee.ReactCurrentBatchConfig,z1=null;function F1(){return H1.transition}var Ia={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var V1=function(e){for(var t=null,n=e;n!==null;)n.mode&on&&(t=n),n=n.return;return t},Wi=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},ru=[],iu=[],ou=[],lu=[],uu=[],su=[],Ii=new Set;Ia.recordUnsafeLifecycleWarnings=function(e,t){Ii.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&ru.push(e),e.mode&on&&typeof t.UNSAFE_componentWillMount=="function"&&iu.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&ou.push(e),e.mode&on&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&lu.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&uu.push(e),e.mode&on&&typeof t.UNSAFE_componentWillUpdate=="function"&&su.push(e))},Ia.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;ru.length>0&&(ru.forEach(function(b){e.add(Xe(b)||"Component"),Ii.add(b.type)}),ru=[]);var t=new Set;iu.length>0&&(iu.forEach(function(b){t.add(Xe(b)||"Component"),Ii.add(b.type)}),iu=[]);var n=new Set;ou.length>0&&(ou.forEach(function(b){n.add(Xe(b)||"Component"),Ii.add(b.type)}),ou=[]);var a=new Set;lu.length>0&&(lu.forEach(function(b){a.add(Xe(b)||"Component"),Ii.add(b.type)}),lu=[]);var r=new Set;uu.length>0&&(uu.forEach(function(b){r.add(Xe(b)||"Component"),Ii.add(b.type)}),uu=[]);var i=new Set;if(su.length>0&&(su.forEach(function(b){i.add(Xe(b)||"Component"),Ii.add(b.type)}),su=[]),t.size>0){var o=Wi(t);d(`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=Wi(a);d(`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=Wi(i);d(`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=Wi(e);ce(`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 v=Wi(n);ce(`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`,v)}if(r.size>0){var S=Wi(r);ce(`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`,S)}};var Gs=new Map,qy=new Set;Ia.recordLegacyContextWarning=function(e,t){var n=V1(e);if(n===null){d("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(!qy.has(e.type)){var a=Gs.get(n);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],Gs.set(n,a)),a.push(e))}},Ia.flushLegacyContextWarning=function(){Gs.forEach(function(e,t){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(i){a.add(Xe(i)||"Component"),qy.add(i.type)});var r=Wi(a);try{Jt(n),d(`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{Dn()}}})},Ia.discardPendingWarnings=function(){ru=[],iu=[],ou=[],lu=[],uu=[],su=[],Gs=new Map}}var av,rv,iv,ov,lv,Gy=function(e,t){};av=!1,rv=!1,iv={},ov={},lv={},Gy=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=Xe(t)||"Component";ov[n]||(ov[n]=!0,d('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function B1(e){return e.prototype&&e.prototype.isReactComponent}function cu(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&on||lt)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==ne)&&!(typeof n.type=="function"&&!B1(n.type))&&n._owner){var r=Xe(e)||"Component";iv[r]||(d('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),iv[r]=!0)}if(n._owner){var i=n._owner,o;if(i){var l=i;if(l.tag!==ne)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;Yn(a,"ref");var f=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f)return t.ref;var v=function(S){var b=u.refs;S===null?delete b[f]:b[f]=S};return v._stringRef=f,v}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 Xs(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 Qs(e){{var t=Xe(e)||"Component";if(lv[t])return;lv[t]=!0,d("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 Xy(e){var t=e._payload,n=e._init;return n(t)}function Qy(e){function t(C,j){if(e){var x=C.deletions;x===null?(C.deletions=[j],C.flags|=wi):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,P=j;P!==null;)P.key!==null?x.set(P.key,P):x.set(P.index,P),P=P.sibling;return x}function r(C,j){var x=to(C,j);return x.index=0,x.sibling=null,x}function i(C,j,x){if(C.index=x,!e)return C.flags|=Jm,j;var P=C.alternate;if(P!==null){var de=P.index;return de<j?(C.flags|=_n,j):de}else return C.flags|=_n,j}function o(C){return e&&C.alternate===null&&(C.flags|=_n),C}function l(C,j,x,P){if(j===null||j.tag!==Fe){var de=nm(x,C.mode,P);return de.return=C,de}else{var oe=r(j,x);return oe.return=C,oe}}function u(C,j,x,P){var de=x.type;if(de===Da)return v(C,j,x.props.children,P,x.key);if(j!==null&&(j.elementType===de||t0(j,x)||typeof de=="object"&&de!==null&&de.$$typeof===M&&Xy(de)===j.type)){var oe=r(j,x.props);return oe.ref=cu(C,j,x),oe.return=C,oe._debugSource=x._source,oe._debugOwner=x._owner,oe}var He=tm(x,C.mode,P);return He.ref=cu(C,j,x),He.return=C,He}function f(C,j,x,P){if(j===null||j.tag!==Le||j.stateNode.containerInfo!==x.containerInfo||j.stateNode.implementation!==x.implementation){var de=am(x,C.mode,P);return de.return=C,de}else{var oe=r(j,x.children||[]);return oe.return=C,oe}}function v(C,j,x,P,de){if(j===null||j.tag!==Ge){var oe=yi(x,C.mode,P,de);return oe.return=C,oe}else{var He=r(j,x);return He.return=C,He}}function S(C,j,x){if(typeof j=="string"&&j!==""||typeof j=="number"){var P=nm(""+j,C.mode,x);return P.return=C,P}if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Rn:{var de=tm(j,C.mode,x);return de.ref=cu(C,null,j),de.return=C,de}case wn:{var oe=am(j,C.mode,x);return oe.return=C,oe}case M:{var He=j._payload,qe=j._init;return S(C,qe(He),x)}}if(st(j)||$t(j)){var Ft=yi(j,C.mode,x,null);return Ft.return=C,Ft}Xs(C,j)}return typeof j=="function"&&Qs(C),null}function b(C,j,x,P){var de=j!==null?j.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return de!==null?null:l(C,j,""+x,P);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Rn:return x.key===de?u(C,j,x,P):null;case wn:return x.key===de?f(C,j,x,P):null;case M:{var oe=x._payload,He=x._init;return b(C,j,He(oe),P)}}if(st(x)||$t(x))return de!==null?null:v(C,j,x,P,null);Xs(C,x)}return typeof x=="function"&&Qs(C),null}function w(C,j,x,P,de){if(typeof P=="string"&&P!==""||typeof P=="number"){var oe=C.get(x)||null;return l(j,oe,""+P,de)}if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Rn:{var He=C.get(P.key===null?x:P.key)||null;return u(j,He,P,de)}case wn:{var qe=C.get(P.key===null?x:P.key)||null;return f(j,qe,P,de)}case M:var Ft=P._payload,Et=P._init;return w(C,j,x,Et(Ft),de)}if(st(P)||$t(P)){var fn=C.get(x)||null;return v(j,fn,P,de,null)}Xs(j,P)}return typeof P=="function"&&Qs(j),null}function _(C,j,x){{if(typeof C!="object"||C===null)return j;switch(C.$$typeof){case Rn:case wn:Gy(C,x);var P=C.key;if(typeof P!="string")break;if(j===null){j=new Set,j.add(P);break}if(!j.has(P)){j.add(P);break}d("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.",P);break;case M:var de=C._payload,oe=C._init;_(oe(de),j,x);break}}return j}function N(C,j,x,P){for(var de=null,oe=0;oe<x.length;oe++){var He=x[oe];de=_(He,de,C)}for(var qe=null,Ft=null,Et=j,fn=0,Ct=0,ln=null;Et!==null&&Ct<x.length;Ct++){Et.index>Ct?(ln=Et,Et=null):ln=Et.sibling;var Qn=b(C,Et,x[Ct],P);if(Qn===null){Et===null&&(Et=ln);break}e&&Et&&Qn.alternate===null&&t(C,Et),fn=i(Qn,fn,Ct),Ft===null?qe=Qn:Ft.sibling=Qn,Ft=Qn,Et=ln}if(Ct===x.length){if(n(C,Et),jn()){var $n=Ct;$i(C,$n)}return qe}if(Et===null){for(;Ct<x.length;Ct++){var wa=S(C,x[Ct],P);wa!==null&&(fn=i(wa,fn,Ct),Ft===null?qe=wa:Ft.sibling=wa,Ft=wa)}if(jn()){var ra=Ct;$i(C,ra)}return qe}for(var ia=a(C,Et);Ct<x.length;Ct++){var Kn=w(ia,C,Ct,x[Ct],P);Kn!==null&&(e&&Kn.alternate!==null&&ia.delete(Kn.key===null?Ct:Kn.key),fn=i(Kn,fn,Ct),Ft===null?qe=Kn:Ft.sibling=Kn,Ft=Kn)}if(e&&ia.forEach(function(nl){return t(C,nl)}),jn()){var Vr=Ct;$i(C,Vr)}return qe}function re(C,j,x,P){var de=$t(x);if(typeof de!="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"&&(rv||d("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."),rv=!0),x.entries===de&&(av||d("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),av=!0);var oe=de.call(x);if(oe)for(var He=null,qe=oe.next();!qe.done;qe=oe.next()){var Ft=qe.value;He=_(Ft,He,C)}}var Et=de.call(x);if(Et==null)throw new Error("An iterable object provided no iterator.");for(var fn=null,Ct=null,ln=j,Qn=0,$n=0,wa=null,ra=Et.next();ln!==null&&!ra.done;$n++,ra=Et.next()){ln.index>$n?(wa=ln,ln=null):wa=ln.sibling;var ia=b(C,ln,ra.value,P);if(ia===null){ln===null&&(ln=wa);break}e&&ln&&ia.alternate===null&&t(C,ln),Qn=i(ia,Qn,$n),Ct===null?fn=ia:Ct.sibling=ia,Ct=ia,ln=wa}if(ra.done){if(n(C,ln),jn()){var Kn=$n;$i(C,Kn)}return fn}if(ln===null){for(;!ra.done;$n++,ra=Et.next()){var Vr=S(C,ra.value,P);Vr!==null&&(Qn=i(Vr,Qn,$n),Ct===null?fn=Vr:Ct.sibling=Vr,Ct=Vr)}if(jn()){var nl=$n;$i(C,nl)}return fn}for(var $u=a(C,ln);!ra.done;$n++,ra=Et.next()){var hr=w($u,C,$n,ra.value,P);hr!==null&&(e&&hr.alternate!==null&&$u.delete(hr.key===null?$n:hr.key),Qn=i(hr,Qn,$n),Ct===null?fn=hr:Ct.sibling=hr,Ct=hr)}if(e&&$u.forEach(function(v_){return t(C,v_)}),jn()){var d_=$n;$i(C,d_)}return fn}function De(C,j,x,P){if(j!==null&&j.tag===Fe){n(C,j.sibling);var de=r(j,x);return de.return=C,de}n(C,j);var oe=nm(x,C.mode,P);return oe.return=C,oe}function Se(C,j,x,P){for(var de=x.key,oe=j;oe!==null;){if(oe.key===de){var He=x.type;if(He===Da){if(oe.tag===Ge){n(C,oe.sibling);var qe=r(oe,x.props.children);return qe.return=C,qe._debugSource=x._source,qe._debugOwner=x._owner,qe}}else if(oe.elementType===He||t0(oe,x)||typeof He=="object"&&He!==null&&He.$$typeof===M&&Xy(He)===oe.type){n(C,oe.sibling);var Ft=r(oe,x.props);return Ft.ref=cu(C,oe,x),Ft.return=C,Ft._debugSource=x._source,Ft._debugOwner=x._owner,Ft}n(C,oe);break}else t(C,oe);oe=oe.sibling}if(x.type===Da){var Et=yi(x.props.children,C.mode,P,x.key);return Et.return=C,Et}else{var fn=tm(x,C.mode,P);return fn.ref=cu(C,j,x),fn.return=C,fn}}function ht(C,j,x,P){for(var de=x.key,oe=j;oe!==null;){if(oe.key===de)if(oe.tag===Le&&oe.stateNode.containerInfo===x.containerInfo&&oe.stateNode.implementation===x.implementation){n(C,oe.sibling);var He=r(oe,x.children||[]);return He.return=C,He}else{n(C,oe);break}else t(C,oe);oe=oe.sibling}var qe=am(x,C.mode,P);return qe.return=C,qe}function ct(C,j,x,P){var de=typeof x=="object"&&x!==null&&x.type===Da&&x.key===null;if(de&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Rn:return o(Se(C,j,x,P));case wn:return o(ht(C,j,x,P));case M:var oe=x._payload,He=x._init;return ct(C,j,He(oe),P)}if(st(x))return N(C,j,x,P);if($t(x))return re(C,j,x,P);Xs(C,x)}return typeof x=="string"&&x!==""||typeof x=="number"?o(De(C,j,""+x,P)):(typeof x=="function"&&Qs(C),n(C,j))}return ct}var zo=Qy(!0),Ky=Qy(!1);function $1(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=to(n,n.pendingProps);for(t.child=a,a.return=t;n.sibling!==null;)n=n.sibling,a=a.sibling=to(n,n.pendingProps),a.return=t;a.sibling=null}}function P1(e,t){for(var n=e.child;n!==null;)MD(n,t),n=n.sibling}var uv=ai(null),sv;sv={};var Ks=null,Fo=null,cv=null,Zs=!1;function Js(){Ks=null,Fo=null,cv=null,Zs=!1}function Zy(){Zs=!0}function Jy(){Zs=!1}function eg(e,t,n){Gn(uv,t._currentValue,e),t._currentValue=n,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==sv&&d("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=sv}function fv(e,t){var n=uv.current;qn(uv,t),e._currentValue=n}function dv(e,t,n){for(var a=e;a!==null;){var r=a.alternate;if(Co(a.childLanes,t)?r!==null&&!Co(r.childLanes,t)&&(r.childLanes=tt(r.childLanes,t)):(a.childLanes=tt(a.childLanes,t),r!==null&&(r.childLanes=tt(r.childLanes,t))),a===n)break;a=a.return}a!==n&&d("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 Y1(e,t,n){W1(e,t,n)}function W1(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===ne){var l=_l(n),u=Nr(Gt,l);u.tag=tc;var f=a.updateQueue;if(f!==null){var v=f.shared,S=v.pending;S===null?u.next=u:(u.next=S.next,S.next=u),v.pending=u}}a.lanes=tt(a.lanes,n);var b=a.alternate;b!==null&&(b.lanes=tt(b.lanes,n)),dv(a.return,n,e),i.lanes=tt(i.lanes,n);break}o=o.next}}else if(a.tag===it)r=a.type===e.type?null:a.child;else if(a.tag===ot){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=tt(w.lanes,n);var _=w.alternate;_!==null&&(_.lanes=tt(_.lanes,n)),dv(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 Vo(e,t){Ks=e,Fo=null,cv=null;var n=e.dependencies;if(n!==null){var a=n.firstContext;a!==null&&(Sa(n.lanes,t)&&Ru(),n.firstContext=null)}}function mn(e){Zs&&d("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(cv!==e){var n={context:e,memoizedValue:t,next:null};if(Fo===null){if(Ks===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().");Fo=n,Ks.dependencies={lanes:B,firstContext:n}}else Fo=Fo.next=n}return t}var qi=null;function vv(e){qi===null?qi=[e]:qi.push(e)}function I1(){if(qi!==null){for(var e=0;e<qi.length;e++){var t=qi[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}}qi=null}}function tg(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n,ec(e,a)}function q1(e,t,n,a){var r=t.interleaved;r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n}function G1(e,t,n,a){var r=t.interleaved;return r===null?(n.next=n,vv(t)):(n.next=r.next,r.next=n),t.interleaved=n,ec(e,a)}function va(e,t){return ec(e,t)}var X1=ec;function ec(e,t){e.lanes=tt(e.lanes,t);var n=e.alternate;n!==null&&(n.lanes=tt(n.lanes,t)),n===null&&(e.flags&(_n|ki))!==Ae&&Kb(e);for(var a=e,r=e.return;r!==null;)r.childLanes=tt(r.childLanes,t),n=r.alternate,n!==null?n.childLanes=tt(n.childLanes,t):(r.flags&(_n|ki))!==Ae&&Kb(e),a=r,r=r.return;if(a.tag===ue){var i=a.stateNode;return i}else return null}var ng=0,ag=1,tc=2,pv=3,nc=!1,mv,ac;mv=!1,ac=null;function hv(e){var t={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:B},effects:null};e.updateQueue=t}function rg(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 Nr(e,t){var n={eventTime:e,lane:t,tag:ng,payload:null,callback:null,next:null};return n}function li(e,t,n){var a=e.updateQueue;if(a===null)return null;var r=a.shared;if(ac===r&&!mv&&(d("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."),mv=!0),qw()){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,X1(e,n)}else return G1(e,r,t,n)}function rc(e,t,n){var a=t.updateQueue;if(a!==null){var r=a.shared;if(yh(n)){var i=r.lanes;i=bh(i,e.pendingLanes);var o=tt(i,n);r.lanes=o,ud(e,o)}}}function yv(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 v=n.lastBaseUpdate;v===null?n.firstBaseUpdate=t:v.next=t,n.lastBaseUpdate=t}function Q1(e,t,n,a,r,i){switch(n.tag){case ag:{var o=n.payload;if(typeof o=="function"){Zy();var l=o.call(i,a,r);{if(e.mode&on){Mn(!0);try{o.call(i,a,r)}finally{Mn(!1)}}Jy()}return l}return o}case pv:e.flags=e.flags&-65537|_t;case ng:{var u=n.payload,f;if(typeof u=="function"){Zy(),f=u.call(i,a,r);{if(e.mode&on){Mn(!0);try{u.call(i,a,r)}finally{Mn(!1)}}Jy()}}else f=u;return f==null?a:Ve({},a,f)}case tc:return nc=!0,a}return a}function ic(e,t,n,a){var r=e.updateQueue;nc=!1,ac=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 v=e.alternate;if(v!==null){var S=v.updateQueue,b=S.lastBaseUpdate;b!==o&&(b===null?S.firstBaseUpdate=f:b.next=f,S.lastBaseUpdate=u)}}if(i!==null){var w=r.baseState,_=B,N=null,re=null,De=null,Se=i;do{var ht=Se.lane,ct=Se.eventTime;if(Co(a,ht)){if(De!==null){var j={eventTime:ct,lane:Ln,tag:Se.tag,payload:Se.payload,callback:Se.callback,next:null};De=De.next=j}w=Q1(e,r,Se,w,t,n);var x=Se.callback;if(x!==null&&Se.lane!==Ln){e.flags|=Zm;var P=r.effects;P===null?r.effects=[Se]:P.push(Se)}}else{var C={eventTime:ct,lane:ht,tag:Se.tag,payload:Se.payload,callback:Se.callback,next:null};De===null?(re=De=C,N=w):De=De.next=C,_=tt(_,ht)}if(Se=Se.next,Se===null){if(l=r.shared.pending,l===null)break;var de=l,oe=de.next;de.next=null,Se=oe,r.lastBaseUpdate=de,r.shared.pending=null}}while(!0);De===null&&(N=w),r.baseState=N,r.firstBaseUpdate=re,r.lastBaseUpdate=De;var He=r.shared.interleaved;if(He!==null){var qe=He;do _=tt(_,qe.lane),qe=qe.next;while(qe!==He)}else i===null&&(r.shared.lanes=B);Hu(_),e.lanes=_,e.memoizedState=w}ac=null}function K1(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function ig(){nc=!1}function oc(){return nc}function og(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,K1(o,n))}}var fu={},ui=ai(fu),du=ai(fu),lc=ai(fu);function uc(e){if(e===fu)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 lg(){var e=uc(lc.current);return e}function gv(e,t){Gn(lc,t,e),Gn(du,e,e),Gn(ui,fu,e);var n=px(t);qn(ui,e),Gn(ui,n,e)}function Bo(e){qn(ui,e),qn(du,e),qn(lc,e)}function bv(){var e=uc(ui.current);return e}function ug(e){uc(lc.current);var t=uc(ui.current),n=mx(t,e.type);t!==n&&(Gn(du,e,e),Gn(ui,n,e))}function Sv(e){du.current===e&&(qn(ui,e),qn(du,e))}var Z1=0,sg=1,cg=1,vu=2,qa=ai(Z1);function Tv(e,t){return(e&t)!==0}function $o(e){return e&sg}function Ev(e,t){return e&sg|t}function J1(e,t){return e|t}function si(e,t){Gn(qa,t,e)}function Po(e){qn(qa,e)}function eR(e,t){var n=e.memoizedState;return n!==null?n.dehydrated!==null:(e.memoizedProps,!0)}function sc(e){for(var t=e;t!==null;){if(t.tag===ye){var n=t.memoizedState;if(n!==null){var a=n.dehydrated;if(a===null||Dy(a)||Vd(a))return t}}else if(t.tag===Dt&&t.memoizedProps.revealOrder!==void 0){var r=(t.flags&_t)!==Ae;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 pa=0,yn=1,sr=2,gn=4,Un=8,Cv=[];function xv(){for(var e=0;e<Cv.length;e++){var t=Cv[e];t._workInProgressVersionPrimary=null}Cv.length=0}function tR(e,t){var n=t._getVersion,a=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)}var se=Ee.ReactCurrentDispatcher,pu=Ee.ReactCurrentBatchConfig,Rv,Yo;Rv=new Set;var Gi=B,zt=null,bn=null,Sn=null,cc=!1,mu=!1,hu=0,nR=0,aR=25,H=null,Na=null,ci=-1,wv=!1;function kt(){{var e=H;Na===null?Na=[e]:Na.push(e)}}function te(){{var e=H;Na!==null&&(ci++,Na[ci]!==e&&rR(e))}}function Wo(e){e!=null&&!st(e)&&d("%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 rR(e){{var t=Xe(zt);if(!Rv.has(t)&&(Rv.add(t),Na!==null)){for(var n="",a=30,r=0;r<=ci;r++){for(var i=Na[r],o=r===ci?e:i,l=r+1+". "+i;l.length<a;)l+=" ";l+=o+`
`,n+=l}d(`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 Xn(){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 Dv(e,t){if(wv)return!1;if(t===null)return d("%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&&d(`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(!Ca(e[n],t[n]))return!1;return!0}function Io(e,t,n,a,r,i){Gi=i,zt=t,Na=e!==null?e._debugHookTypes:null,ci=-1,wv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=B,e!==null&&e.memoizedState!==null?se.current=Og:Na!==null?se.current=Lg:se.current=Mg;var o=n(a,r);if(mu){var l=0;do{if(mu=!1,hu=0,l>=aR)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,wv=!1,bn=null,Sn=null,t.updateQueue=null,ci=-1,se.current=Ag,o=n(a,r)}while(mu)}se.current=Cc,t._debugHookTypes=Na;var u=bn!==null&&bn.next!==null;if(Gi=B,zt=null,bn=null,Sn=null,H=null,Na=null,ci=-1,e!==null&&(e.flags&Rr)!==(t.flags&Rr)&&(e.mode&pt)!==Me&&d("Internal React error: Expected static flag was missing. Please notify the React team."),cc=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o}function qo(){var e=hu!==0;return hu=0,e}function fg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&ir)!==Me?t.flags&=-50333701:t.flags&=-2053,e.lanes=fs(e.lanes,n)}function dg(){if(se.current=Cc,cc){for(var e=zt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cc=!1}Gi=B,zt=null,bn=null,Sn=null,Na=null,ci=-1,H=null,Rg=!1,mu=!1,hu=0}function cr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sn===null?zt.memoizedState=Sn=e:Sn=Sn.next=e,Sn}function ja(){var e;if(bn===null){var t=zt.alternate;t!==null?e=t.memoizedState:e=null}else e=bn.next;var n;if(Sn===null?n=zt.memoizedState:n=Sn.next,n!==null)Sn=n,n=Sn.next,bn=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");bn=e;var a={memoizedState:bn.memoizedState,baseState:bn.baseState,baseQueue:bn.baseQueue,queue:bn.queue,next:null};Sn===null?zt.memoizedState=Sn=a:Sn=Sn.next=a}return Sn}function vg(){return{lastEffect:null,stores:null}}function _v(e,t){return typeof t=="function"?t(e):t}function kv(e,t,n){var a=cr(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:B,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=uR.bind(null,zt,i);return[a.memoizedState,o]}function Mv(e,t,n){var a=ja(),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=bn,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&&d("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 v=o.next,S=i.baseState,b=null,w=null,_=null,N=v;do{var re=N.lane;if(Co(Gi,re)){if(_!==null){var Se={lane:Ln,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};_=_.next=Se}if(N.hasEagerState)S=N.eagerState;else{var ht=N.action;S=e(S,ht)}}else{var De={lane:re,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};_===null?(w=_=De,b=S):_=_.next=De,zt.lanes=tt(zt.lanes,re),Hu(re)}N=N.next}while(N!==null&&N!==v);_===null?b=S:_.next=w,Ca(S,a.memoizedState)||Ru(),a.memoizedState=S,a.baseState=b,a.baseQueue=_,r.lastRenderedState=S}var ct=r.interleaved;if(ct!==null){var C=ct;do{var j=C.lane;zt.lanes=tt(zt.lanes,j),Hu(j),C=C.next}while(C!==ct)}else o===null&&(r.lanes=B);var x=r.dispatch;return[a.memoizedState,x]}function Lv(e,t,n){var a=ja(),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 v=f.action;l=e(l,v),f=f.next}while(f!==u);Ca(l,a.memoizedState)||Ru(),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 Ov(e,t,n){var a=zt,r=cr(),i,o=jn();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(),Yo||i!==n()&&(d("The result of getServerSnapshot should be cached to avoid an infinite loop"),Yo=!0)}else{if(i=t(),!Yo){var l=t();Ca(i,l)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),Yo=!0)}var u=$c();if(u===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(u,Gi)||pg(a,t,i)}r.memoizedState=i;var f={value:i,getSnapshot:t};return r.queue=f,mc(hg.bind(null,a,f,e),[e]),a.flags|=Gr,yu(yn|Un,mg.bind(null,a,f,i,t),void 0,null),i}function fc(e,t,n){var a=zt,r=ja(),i=t();if(!Yo){var o=t();Ca(i,o)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),Yo=!0)}var l=r.memoizedState,u=!Ca(l,i);u&&(r.memoizedState=i,Ru());var f=r.queue;if(bu(hg.bind(null,a,f,e),[e]),f.getSnapshot!==t||u||Sn!==null&&Sn.memoizedState.tag&yn){a.flags|=Gr,yu(yn|Un,mg.bind(null,a,f,i,t),void 0,null);var v=$c();if(v===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(v,Gi)||pg(a,t,i)}return i}function pg(e,t,n){e.flags|=_f;var a={getSnapshot:t,value:n},r=zt.updateQueue;if(r===null)r=vg(),zt.updateQueue=r,r.stores=[a];else{var i=r.stores;i===null?r.stores=[a]:i.push(a)}}function mg(e,t,n,a){t.value=n,t.getSnapshot=a,yg(t)&&gg(e)}function hg(e,t,n){var a=function(){yg(t)&&gg(e)};return n(a)}function yg(e){var t=e.getSnapshot,n=e.value;try{var a=t();return!Ca(n,a)}catch{return!0}}function gg(e){var t=va(e,$e);t!==null&&xn(t,e,$e,Gt)}function dc(e){var t=cr();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:B,dispatch:null,lastRenderedReducer:_v,lastRenderedState:e};t.queue=n;var a=n.dispatch=sR.bind(null,zt,n);return[t.memoizedState,a]}function Av(e){return Mv(_v)}function Nv(e){return Lv(_v)}function yu(e,t,n,a){var r={tag:e,create:t,destroy:n,deps:a,next:null},i=zt.updateQueue;if(i===null)i=vg(),zt.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 jv(e){var t=cr();{var n={current:e};return t.memoizedState=n,n}}function vc(e){var t=ja();return t.memoizedState}function gu(e,t,n,a){var r=cr(),i=a===void 0?null:a;zt.flags|=e,r.memoizedState=yu(yn|t,n,void 0,i)}function pc(e,t,n,a){var r=ja(),i=a===void 0?null:a,o=void 0;if(bn!==null){var l=bn.memoizedState;if(o=l.destroy,i!==null){var u=l.deps;if(Dv(i,u)){r.memoizedState=yu(t,n,o,i);return}}}zt.flags|=e,r.memoizedState=yu(yn|t,n,o,i)}function mc(e,t){return(zt.mode&ir)!==Me?gu(Of|Gr|Lf,Un,e,t):gu(Gr|Lf,Un,e,t)}function bu(e,t){return pc(Gr,Un,e,t)}function Uv(e,t){return gu(wt,sr,e,t)}function hc(e,t){return pc(wt,sr,e,t)}function Hv(e,t){var n=wt;return n|=Li,(zt.mode&ir)!==Me&&(n|=Xr),gu(n,gn,e,t)}function yc(e,t){return pc(wt,gn,e,t)}function bg(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")||d("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 zv(e,t,n){typeof t!="function"&&d("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=wt;return r|=Li,(zt.mode&ir)!==Me&&(r|=Xr),gu(r,gn,bg.bind(null,t,e),a)}function gc(e,t,n){typeof t!="function"&&d("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 pc(wt,gn,bg.bind(null,t,e),a)}function iR(e,t){}var bc=iR;function Fv(e,t){var n=cr(),a=t===void 0?null:t;return n.memoizedState=[e,a],e}function Sc(e,t){var n=ja(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Dv(a,i))return r[0]}return n.memoizedState=[e,a],e}function Vv(e,t){var n=cr(),a=t===void 0?null:t,r=e();return n.memoizedState=[r,a],r}function Tc(e,t){var n=ja(),a=t===void 0?null:t,r=n.memoizedState;if(r!==null&&a!==null){var i=r[1];if(Dv(a,i))return r[0]}var o=e();return n.memoizedState=[o,a],o}function Bv(e){var t=cr();return t.memoizedState=e,e}function Sg(e){var t=ja(),n=bn,a=n.memoizedState;return Eg(t,a,e)}function Tg(e){var t=ja();if(bn===null)return t.memoizedState=e,e;var n=bn.memoizedState;return Eg(t,n,e)}function Eg(e,t,n){var a=!YT(Gi);if(a){if(!Ca(n,t)){var r=gh();zt.lanes=tt(zt.lanes,r),Hu(r),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,Ru()),e.memoizedState=n,n}function oR(e,t,n){var a=Pa();On(JT(a,Dr)),e(!0);var r=pu.transition;pu.transition={};var i=pu.transition;pu.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(On(a),pu.transition=r,r===null&&i._updatedFibers){var o=i._updatedFibers.size;o>10&&ce("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 $v(){var e=dc(!1),t=e[0],n=e[1],a=oR.bind(null,n),r=cr();return r.memoizedState=a,[t,a]}function Cg(){var e=Av(),t=e[0],n=ja(),a=n.memoizedState;return[t,a]}function xg(){var e=Nv(),t=e[0],n=ja(),a=n.memoizedState;return[t,a]}var Rg=!1;function lR(){return Rg}function Pv(){var e=cr(),t=$c(),n=t.identifierPrefix,a;if(jn()){var r=x1();a=":"+n+"R"+r;var i=hu++;i>0&&(a+="H"+i.toString(32)),a+=":"}else{var o=nR++;a=":"+n+"r"+o.toString(32)+":"}return e.memoizedState=a,a}function Ec(){var e=ja(),t=e.memoizedState;return t}function uR(e,t,n){typeof arguments[3]=="function"&&d("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=mi(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(wg(e))Dg(t,r);else{var i=tg(e,t,r,a);if(i!==null){var o=aa();xn(i,e,a,o),_g(i,t,a)}}kg(e,a)}function sR(e,t,n){typeof arguments[3]=="function"&&d("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=mi(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(wg(e))Dg(t,r);else{var i=e.alternate;if(e.lanes===B&&(i===null||i.lanes===B)){var o=t.lastRenderedReducer;if(o!==null){var l;l=se.current,se.current=Ga;try{var u=t.lastRenderedState,f=o(u,n);if(r.hasEagerState=!0,r.eagerState=f,Ca(f,u)){q1(e,t,r,a);return}}catch{}finally{se.current=l}}}var v=tg(e,t,r,a);if(v!==null){var S=aa();xn(v,e,a,S),_g(v,t,a)}}kg(e,a)}function wg(e){var t=e.alternate;return e===zt||t!==null&&t===zt}function Dg(e,t){mu=cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _g(e,t,n){if(yh(n)){var a=t.lanes;a=bh(a,e.pendingLanes);var r=tt(a,n);t.lanes=r,ud(e,r)}}function kg(e,t,n){Hf(e,t)}var Cc={readContext:mn,useCallback:Xn,useContext:Xn,useEffect:Xn,useImperativeHandle:Xn,useInsertionEffect:Xn,useLayoutEffect:Xn,useMemo:Xn,useReducer:Xn,useRef:Xn,useState:Xn,useDebugValue:Xn,useDeferredValue:Xn,useTransition:Xn,useMutableSource:Xn,useSyncExternalStore:Xn,useId:Xn,unstable_isNewReconciler:G},Mg=null,Lg=null,Og=null,Ag=null,fr=null,Ga=null,xc=null;{var Yv=function(){d("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(){d("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")};Mg={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",kt(),Wo(t),Fv(e,t)},useContext:function(e){return H="useContext",kt(),mn(e)},useEffect:function(e,t){return H="useEffect",kt(),Wo(t),mc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",kt(),Wo(n),zv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",kt(),Wo(t),Uv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",kt(),Wo(t),Hv(e,t)},useMemo:function(e,t){H="useMemo",kt(),Wo(t);var n=se.current;se.current=fr;try{return Vv(e,t)}finally{se.current=n}},useReducer:function(e,t,n){H="useReducer",kt();var a=se.current;se.current=fr;try{return kv(e,t,n)}finally{se.current=a}},useRef:function(e){return H="useRef",kt(),jv(e)},useState:function(e){H="useState",kt();var t=se.current;se.current=fr;try{return dc(e)}finally{se.current=t}},useDebugValue:function(e,t){return H="useDebugValue",kt(),void 0},useDeferredValue:function(e){return H="useDeferredValue",kt(),Bv(e)},useTransition:function(){return H="useTransition",kt(),$v()},useMutableSource:function(e,t,n){return H="useMutableSource",kt(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",kt(),Ov(e,t,n)},useId:function(){return H="useId",kt(),Pv()},unstable_isNewReconciler:G},Lg={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",te(),Fv(e,t)},useContext:function(e){return H="useContext",te(),mn(e)},useEffect:function(e,t){return H="useEffect",te(),mc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",te(),zv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",te(),Uv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",te(),Hv(e,t)},useMemo:function(e,t){H="useMemo",te();var n=se.current;se.current=fr;try{return Vv(e,t)}finally{se.current=n}},useReducer:function(e,t,n){H="useReducer",te();var a=se.current;se.current=fr;try{return kv(e,t,n)}finally{se.current=a}},useRef:function(e){return H="useRef",te(),jv(e)},useState:function(e){H="useState",te();var t=se.current;se.current=fr;try{return dc(e)}finally{se.current=t}},useDebugValue:function(e,t){return H="useDebugValue",te(),void 0},useDeferredValue:function(e){return H="useDeferredValue",te(),Bv(e)},useTransition:function(){return H="useTransition",te(),$v()},useMutableSource:function(e,t,n){return H="useMutableSource",te(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",te(),Ov(e,t,n)},useId:function(){return H="useId",te(),Pv()},unstable_isNewReconciler:G},Og={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",te(),Sc(e,t)},useContext:function(e){return H="useContext",te(),mn(e)},useEffect:function(e,t){return H="useEffect",te(),bu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",te(),gc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",te(),hc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",te(),yc(e,t)},useMemo:function(e,t){H="useMemo",te();var n=se.current;se.current=Ga;try{return Tc(e,t)}finally{se.current=n}},useReducer:function(e,t,n){H="useReducer",te();var a=se.current;se.current=Ga;try{return Mv(e,t,n)}finally{se.current=a}},useRef:function(e){return H="useRef",te(),vc()},useState:function(e){H="useState",te();var t=se.current;se.current=Ga;try{return Av(e)}finally{se.current=t}},useDebugValue:function(e,t){return H="useDebugValue",te(),bc()},useDeferredValue:function(e){return H="useDeferredValue",te(),Sg(e)},useTransition:function(){return H="useTransition",te(),Cg()},useMutableSource:function(e,t,n){return H="useMutableSource",te(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",te(),fc(e,t)},useId:function(){return H="useId",te(),Ec()},unstable_isNewReconciler:G},Ag={readContext:function(e){return mn(e)},useCallback:function(e,t){return H="useCallback",te(),Sc(e,t)},useContext:function(e){return H="useContext",te(),mn(e)},useEffect:function(e,t){return H="useEffect",te(),bu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",te(),gc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",te(),hc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",te(),yc(e,t)},useMemo:function(e,t){H="useMemo",te();var n=se.current;se.current=xc;try{return Tc(e,t)}finally{se.current=n}},useReducer:function(e,t,n){H="useReducer",te();var a=se.current;se.current=xc;try{return Lv(e,t,n)}finally{se.current=a}},useRef:function(e){return H="useRef",te(),vc()},useState:function(e){H="useState",te();var t=se.current;se.current=xc;try{return Nv(e)}finally{se.current=t}},useDebugValue:function(e,t){return H="useDebugValue",te(),bc()},useDeferredValue:function(e){return H="useDeferredValue",te(),Tg(e)},useTransition:function(){return H="useTransition",te(),xg()},useMutableSource:function(e,t,n){return H="useMutableSource",te(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",te(),fc(e,t)},useId:function(){return H="useId",te(),Ec()},unstable_isNewReconciler:G},fr={readContext:function(e){return Yv(),mn(e)},useCallback:function(e,t){return H="useCallback",Pe(),kt(),Fv(e,t)},useContext:function(e){return H="useContext",Pe(),kt(),mn(e)},useEffect:function(e,t){return H="useEffect",Pe(),kt(),mc(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),kt(),zv(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),kt(),Uv(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),kt(),Hv(e,t)},useMemo:function(e,t){H="useMemo",Pe(),kt();var n=se.current;se.current=fr;try{return Vv(e,t)}finally{se.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),kt();var a=se.current;se.current=fr;try{return kv(e,t,n)}finally{se.current=a}},useRef:function(e){return H="useRef",Pe(),kt(),jv(e)},useState:function(e){H="useState",Pe(),kt();var t=se.current;se.current=fr;try{return dc(e)}finally{se.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),kt(),void 0},useDeferredValue:function(e){return H="useDeferredValue",Pe(),kt(),Bv(e)},useTransition:function(){return H="useTransition",Pe(),kt(),$v()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),kt(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),kt(),Ov(e,t,n)},useId:function(){return H="useId",Pe(),kt(),Pv()},unstable_isNewReconciler:G},Ga={readContext:function(e){return Yv(),mn(e)},useCallback:function(e,t){return H="useCallback",Pe(),te(),Sc(e,t)},useContext:function(e){return H="useContext",Pe(),te(),mn(e)},useEffect:function(e,t){return H="useEffect",Pe(),te(),bu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),te(),gc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),te(),hc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),te(),yc(e,t)},useMemo:function(e,t){H="useMemo",Pe(),te();var n=se.current;se.current=Ga;try{return Tc(e,t)}finally{se.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),te();var a=se.current;se.current=Ga;try{return Mv(e,t,n)}finally{se.current=a}},useRef:function(e){return H="useRef",Pe(),te(),vc()},useState:function(e){H="useState",Pe(),te();var t=se.current;se.current=Ga;try{return Av(e)}finally{se.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),te(),bc()},useDeferredValue:function(e){return H="useDeferredValue",Pe(),te(),Sg(e)},useTransition:function(){return H="useTransition",Pe(),te(),Cg()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),te(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),te(),fc(e,t)},useId:function(){return H="useId",Pe(),te(),Ec()},unstable_isNewReconciler:G},xc={readContext:function(e){return Yv(),mn(e)},useCallback:function(e,t){return H="useCallback",Pe(),te(),Sc(e,t)},useContext:function(e){return H="useContext",Pe(),te(),mn(e)},useEffect:function(e,t){return H="useEffect",Pe(),te(),bu(e,t)},useImperativeHandle:function(e,t,n){return H="useImperativeHandle",Pe(),te(),gc(e,t,n)},useInsertionEffect:function(e,t){return H="useInsertionEffect",Pe(),te(),hc(e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",Pe(),te(),yc(e,t)},useMemo:function(e,t){H="useMemo",Pe(),te();var n=se.current;se.current=Ga;try{return Tc(e,t)}finally{se.current=n}},useReducer:function(e,t,n){H="useReducer",Pe(),te();var a=se.current;se.current=Ga;try{return Lv(e,t,n)}finally{se.current=a}},useRef:function(e){return H="useRef",Pe(),te(),vc()},useState:function(e){H="useState",Pe(),te();var t=se.current;se.current=Ga;try{return Nv(e)}finally{se.current=t}},useDebugValue:function(e,t){return H="useDebugValue",Pe(),te(),bc()},useDeferredValue:function(e){return H="useDeferredValue",Pe(),te(),Tg(e)},useTransition:function(){return H="useTransition",Pe(),te(),xg()},useMutableSource:function(e,t,n){return H="useMutableSource",Pe(),te(),void 0},useSyncExternalStore:function(e,t,n){return H="useSyncExternalStore",Pe(),te(),fc(e,t)},useId:function(){return H="useId",Pe(),te(),Ec()},unstable_isNewReconciler:G}}var fi=R.unstable_now,Ng=0,Rc=-1,Su=-1,wc=-1,Wv=!1,Dc=!1;function jg(){return Wv}function cR(){Dc=!0}function fR(){Wv=!1,Dc=!1}function dR(){Wv=Dc,Dc=!1}function Ug(){return Ng}function Hg(){Ng=fi()}function Iv(e){Su=fi(),e.actualStartTime<0&&(e.actualStartTime=fi())}function zg(e){Su=-1}function _c(e,t){if(Su>=0){var n=fi()-Su;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Su=-1}}function dr(e){if(Rc>=0){var t=fi()-Rc;Rc=-1;for(var n=e.return;n!==null;){switch(n.tag){case ue:var a=n.stateNode;a.effectDuration+=t;return;case Qe:var r=n.stateNode;r.effectDuration+=t;return}n=n.return}}}function qv(e){if(wc>=0){var t=fi()-wc;wc=-1;for(var n=e.return;n!==null;){switch(n.tag){case ue:var a=n.stateNode;a!==null&&(a.passiveEffectDuration+=t);return;case Qe:var r=n.stateNode;r!==null&&(r.passiveEffectDuration+=t);return}n=n.return}}}function vr(){Rc=fi()}function Gv(){wc=fi()}function Xv(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Xa(e,t){if(e&&e.defaultProps){var n=Ve({},t),a=e.defaultProps;for(var r in a)n[r]===void 0&&(n[r]=a[r]);return n}return t}var Qv={},Kv,Zv,Jv,ep,tp,Fg,kc,np,ap,rp,Tu;{Kv=new Set,Zv=new Set,Jv=new Set,ep=new Set,np=new Set,tp=new Set,ap=new Set,rp=new Set,Tu=new Set;var Vg=new Set;kc=function(e,t){if(!(e===null||typeof e=="function")){var n=t+"_"+e;Vg.has(n)||(Vg.add(n),d("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},Fg=function(e,t){if(t===void 0){var n=Rt(e)||"Component";tp.has(n)||(tp.add(n),d("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(Qv,"_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(Qv)}function ip(e,t,n,a){var r=e.memoizedState,i=n(a,r);{if(e.mode&on){Mn(!0);try{i=n(a,r)}finally{Mn(!1)}}Fg(t,i)}var o=i==null?r:Ve({},r,i);if(e.memoizedState=o,e.lanes===B){var l=e.updateQueue;l.baseState=o}}var op={isMounted:aT,enqueueSetState:function(e,t,n){var a=po(e),r=aa(),i=mi(a),o=Nr(r,i);o.payload=t,n!=null&&(kc(n,"setState"),o.callback=n);var l=li(a,o,i);l!==null&&(xn(l,a,i,r),rc(l,a,i)),Hf(a,i)},enqueueReplaceState:function(e,t,n){var a=po(e),r=aa(),i=mi(a),o=Nr(r,i);o.tag=ag,o.payload=t,n!=null&&(kc(n,"replaceState"),o.callback=n);var l=li(a,o,i);l!==null&&(xn(l,a,i,r),rc(l,a,i)),Hf(a,i)},enqueueForceUpdate:function(e,t){var n=po(e),a=aa(),r=mi(n),i=Nr(a,r);i.tag=tc,t!=null&&(kc(t,"forceUpdate"),i.callback=t);var o=li(n,i,r);o!==null&&(xn(o,n,r,a),rc(o,n,r)),NT(n,r)}};function Bg(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&on){Mn(!0);try{u=l.shouldComponentUpdate(a,i,o)}finally{Mn(!1)}}u===void 0&&d("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Rt(t)||"Component")}return u}return t.prototype&&t.prototype.isPureReactComponent?!Pl(n,a)||!Pl(r,i):!0}function vR(e,t,n){var a=e.stateNode;{var r=Rt(t)||"Component",i=a.render;i||(t.prototype&&typeof t.prototype.render=="function"?d("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",r):d("%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&&d("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&&d("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&&d("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",r),a.contextType&&d("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",r),t.childContextTypes&&!Tu.has(t)&&(e.mode&on)===Me&&(Tu.add(t),d(`%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&&!Tu.has(t)&&(e.mode&on)===Me&&(Tu.add(t),d(`%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&&d("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",r),t.contextType&&t.contextTypes&&!ap.has(t)&&(ap.add(t),d("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",r)),typeof a.componentShouldUpdate=="function"&&d("%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"&&d("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Rt(t)||"A pure component"),typeof a.componentDidUnmount=="function"&&d("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",r),typeof a.componentDidReceiveProps=="function"&&d("%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"&&d("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",r),typeof a.UNSAFE_componentWillRecieveProps=="function"&&d("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",r);var o=a.props!==n;a.props!==void 0&&o&&d("%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&&d("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"&&!Jv.has(t)&&(Jv.add(t),d("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Rt(t))),typeof a.getDerivedStateFromProps=="function"&&d("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof a.getDerivedStateFromError=="function"&&d("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof t.getSnapshotBeforeUpdate=="function"&&d("%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"||st(l))&&d("%s.state: must be set to an object or null",r),typeof a.getChildContext=="function"&&typeof t.childContextTypes!="object"&&d("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",r)}}function $g(e,t){t.updater=op,e.stateNode=t,JS(t,e),t._reactInternalInstance=Qv}function Pg(e,t,n){var a=!1,r=xa,i=xa,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===c&&o._context===void 0;if(!l&&!rp.has(t)){rp.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===F?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(", ")+"}.",d("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Rt(t)||"Component",u)}}if(typeof o=="object"&&o!==null)i=mn(o);else{r=Ao(e,t,!0);var f=t.contextTypes;a=f!=null,i=a?No(e,r):xa}var v=new t(n,i);if(e.mode&on){Mn(!0);try{v=new t(n,i)}finally{Mn(!1)}}var S=e.memoizedState=v.state!==null&&v.state!==void 0?v.state:null;$g(e,v);{if(typeof t.getDerivedStateFromProps=="function"&&S===null){var b=Rt(t)||"Component";Zv.has(b)||(Zv.add(b),d("`%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.",b,v.state===null?"null":"undefined",b))}if(typeof t.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"){var w=null,_=null,N=null;if(typeof v.componentWillMount=="function"&&v.componentWillMount.__suppressDeprecationWarning!==!0?w="componentWillMount":typeof v.UNSAFE_componentWillMount=="function"&&(w="UNSAFE_componentWillMount"),typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps.__suppressDeprecationWarning!==!0?_="componentWillReceiveProps":typeof v.UNSAFE_componentWillReceiveProps=="function"&&(_="UNSAFE_componentWillReceiveProps"),typeof v.componentWillUpdate=="function"&&v.componentWillUpdate.__suppressDeprecationWarning!==!0?N="componentWillUpdate":typeof v.UNSAFE_componentWillUpdate=="function"&&(N="UNSAFE_componentWillUpdate"),w!==null||_!==null||N!==null){var re=Rt(t)||"Component",De=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ep.has(re)||(ep.add(re),d(`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`,re,De,w!==null?`
`+w:"",_!==null?`
`+_:"",N!==null?`
`+N:""))}}}return a&&Oy(e,r,i),v}function pR(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(d("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Xe(e)||"Component"),op.enqueueReplaceState(t,t.state,null))}function Yg(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=Xe(e)||"Component";Kv.has(i)||(Kv.add(i),d("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i))}op.enqueueReplaceState(t,t.state,null)}}function lp(e,t,n,a){vR(e,t,n);var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},hv(e);var i=t.contextType;if(typeof i=="object"&&i!==null)r.context=mn(i);else{var o=Ao(e,t,!0);r.context=No(e,o)}{if(r.state===n){var l=Rt(t)||"Component";np.has(l)||(np.add(l),d("%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&on&&Ia.recordLegacyContextWarning(e,r),Ia.recordUnsafeLifecycleWarnings(e,r)}r.state=e.memoizedState;var u=t.getDerivedStateFromProps;if(typeof u=="function"&&(ip(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")&&(pR(e,r),ic(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var f=wt;f|=Li,(e.mode&ir)!==Me&&(f|=Xr),e.flags|=f}}function mR(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=xa;if(typeof l=="object"&&l!==null)u=mn(l);else{var f=Ao(e,t,!0);u=No(e,f)}var v=t.getDerivedStateFromProps,S=typeof v=="function"||typeof r.getSnapshotBeforeUpdate=="function";!S&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&Yg(e,r,n,u),ig();var b=e.memoizedState,w=r.state=b;if(ic(e,n,r,a),w=e.memoizedState,i===n&&b===w&&!Vs()&&!oc()){if(typeof r.componentDidMount=="function"){var _=wt;_|=Li,(e.mode&ir)!==Me&&(_|=Xr),e.flags|=_}return!1}typeof v=="function"&&(ip(e,t,v,n),w=e.memoizedState);var N=oc()||Bg(e,t,i,n,b,w,u);if(N){if(!S&&(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 re=wt;re|=Li,(e.mode&ir)!==Me&&(re|=Xr),e.flags|=re}}else{if(typeof r.componentDidMount=="function"){var De=wt;De|=Li,(e.mode&ir)!==Me&&(De|=Xr),e.flags|=De}e.memoizedProps=n,e.memoizedState=w}return r.props=n,r.state=w,r.context=u,N}function hR(e,t,n,a,r){var i=t.stateNode;rg(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:Xa(t.type,o);i.props=l;var u=t.pendingProps,f=i.context,v=n.contextType,S=xa;if(typeof v=="object"&&v!==null)S=mn(v);else{var b=Ao(t,n,!0);S=No(t,b)}var w=n.getDerivedStateFromProps,_=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function";!_&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||f!==S)&&Yg(t,i,a,S),ig();var N=t.memoizedState,re=i.state=N;if(ic(t,a,i,r),re=t.memoizedState,o===u&&N===re&&!Vs()&&!oc())return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=ho),!1;typeof w=="function"&&(ip(t,n,w,a),re=t.memoizedState);var De=oc()||Bg(t,n,l,a,N,re,S)||fe;return De?(!_&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,re,S),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,re,S)),typeof i.componentDidUpdate=="function"&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=ho)):(typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=ho),t.memoizedProps=a,t.memoizedState=re),i.props=a,i.state=re,i.context=S,De}function Xi(e,t){return{value:e,source:t,stack:Ti(t),digest:null}}function up(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function yR(e,t){return!0}function sp(e,t){try{var n=yR(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===ne)return;console.error(a)}var l=r?Xe(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===ue)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 v=Xe(e)||"Anonymous";f="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+v+".")}var S=u+`
`+o+`
`+(""+f);console.error(S)}catch(b){setTimeout(function(){throw b})}}var gR=typeof WeakMap=="function"?WeakMap:Map;function Wg(e,t,n){var a=Nr(Gt,n);a.tag=pv,a.payload={element:null};var r=t.value;return a.callback=function(){cD(r),sp(e,t)},a}function cp(e,t,n){var a=Nr(Gt,n);a.tag=pv;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;a.payload=function(){return r(i)},a.callback=function(){n0(e),sp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(a.callback=function(){n0(e),sp(e,t),typeof r!="function"&&uD(this);var u=t.value,f=t.stack;this.componentDidCatch(u,{componentStack:f!==null?f:""}),typeof r!="function"&&(Sa(e.lanes,$e)||d("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Xe(e)||"Unknown"))}),a}function Ig(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new gR,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);$a&&zu(e,n),t.then(i,i)}}function bR(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 SR(e,t){var n=e.tag;if((e.mode&pt)===Me&&(n===ve||n===_e||n===K)){var a=e.alternate;a?(e.updateQueue=a.updateQueue,e.memoizedState=a.memoizedState,e.lanes=a.lanes):(e.updateQueue=null,e.memoizedState=null)}}function qg(e){var t=e;do{if(t.tag===ye&&eR(t))return t;t=t.return}while(t!==null);return null}function Gg(e,t,n,a,r){if((e.mode&pt)===Me){if(e===t)e.flags|=Ba;else{if(e.flags|=_t,n.flags|=kf,n.flags&=-52805,n.tag===ne){var i=n.alternate;if(i===null)n.tag=bt;else{var o=Nr(Gt,$e);o.tag=tc,li(n,o,$e)}}n.lanes=tt(n.lanes,$e)}return e}return e.flags|=Ba,e.lanes=r,e}function TR(e,t,n,a,r){if(n.flags|=rs,$a&&zu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;SR(n),jn()&&n.mode&pt&&Fy();var o=qg(t);if(o!==null){o.flags&=-257,Gg(o,t,n,e,r),o.mode&pt&&Ig(e,i,r),bR(o,e,i);return}else{if(!PT(r)){Ig(e,i,r),Pp();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(jn()&&n.mode&pt){Fy();var u=qg(t);if(u!==null){(u.flags&Ba)===Ae&&(u.flags|=Di),Gg(u,t,n,e,r),nv(Xi(a,n));return}}a=Xi(a,n),eD(a);var f=t;do{switch(f.tag){case ue:{var v=a;f.flags|=Ba;var S=_l(r);f.lanes=tt(f.lanes,S);var b=Wg(f,v,S);yv(f,b);return}case ne:var w=a,_=f.type,N=f.stateNode;if((f.flags&_t)===Ae&&(typeof _.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&!qb(N))){f.flags|=Ba;var re=_l(r);f.lanes=tt(f.lanes,re);var De=cp(f,w,re);yv(f,De);return}break}f=f.return}while(f!==null)}function ER(){return null}var Eu=Ee.ReactCurrentOwner,Qa=!1,fp,Cu,dp,vp,pp,Qi,mp,Mc,xu;fp={},Cu={},dp={},vp={},pp={},Qi=!1,mp={},Mc={},xu={};function ta(e,t,n,a){e===null?t.child=Ky(t,null,n,a):t.child=zo(t,e.child,n,a)}function CR(e,t,n,a){t.child=zo(t,e.child,null,a),t.child=zo(t,null,n,a)}function Xg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Ya(i,a,"prop",Rt(n))}var o=n.render,l=t.ref,u,f;Vo(t,r),El(t);{if(Eu.current=t,ka(!0),u=Io(e,t,o,a,l,r),f=qo(),t.mode&on){Mn(!0);try{u=Io(e,t,o,a,l,r),f=qo()}finally{Mn(!1)}}ka(!1)}return bo(),e!==null&&!Qa?(fg(e,t,r),jr(e,t,r)):(jn()&&f&&Qd(t),t.flags|=mo,ta(e,t,u,r),t.child)}function Qg(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=tl(i),t.tag=K,t.type=o,gp(t,i),Kg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Ya(l,a,"prop",Rt(i)),n.defaultProps!==void 0){var u=Rt(i)||"Unknown";xu[u]||(d("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),xu[u]=!0)}}var f=em(n.type,null,a,t,t.mode,r);return f.ref=t.ref,f.return=t,t.child=f,f}{var v=n.type,S=v.propTypes;S&&Ya(S,a,"prop",Rt(v))}var b=e.child,w=xp(e,r);if(!w){var _=b.memoizedProps,N=n.compare;if(N=N!==null?N:Pl,N(_,a)&&e.ref===t.ref)return jr(e,t,r)}t.flags|=mo;var re=to(b,a);return re.ref=t.ref,re.return=t,t.child=re,re}function Kg(e,t,n,a,r){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===M){var o=i,l=o._payload,u=o._init;try{i=u(l)}catch{i=null}var f=i&&i.propTypes;f&&Ya(f,a,"prop",Rt(i))}}if(e!==null){var v=e.memoizedProps;if(Pl(v,a)&&e.ref===t.ref&&t.type===e.type)if(Qa=!1,t.pendingProps=a=v,xp(e,r))(e.flags&kf)!==Ae&&(Qa=!0);else return t.lanes=e.lanes,jr(e,t,r)}return hp(e,t,n,a,r)}function Zg(e,t,n){var a=t.pendingProps,r=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"||dt)if((t.mode&pt)===Me){var o={baseLanes:B,cachePool:null,transitions:null};t.memoizedState=o,Pc(t,n)}else if(Sa(n,Ma)){var S={baseLanes:B,cachePool:null,transitions:null};t.memoizedState=S;var b=i!==null?i.baseLanes:n;Pc(t,b)}else{var l=null,u;if(i!==null){var f=i.baseLanes;u=tt(f,n)}else u=n;t.lanes=t.childLanes=Ma;var v={baseLanes:u,cachePool:l,transitions:null};return t.memoizedState=v,t.updateQueue=null,Pc(t,u),null}else{var w;i!==null?(w=tt(i.baseLanes,n),t.memoizedState=null):w=n,Pc(t,w)}return ta(e,t,r,n),t.child}function xR(e,t,n){var a=t.pendingProps;return ta(e,t,a,n),t.child}function RR(e,t,n){var a=t.pendingProps.children;return ta(e,t,a,n),t.child}function wR(e,t,n){{t.flags|=wt;{var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0}}var r=t.pendingProps,i=r.children;return ta(e,t,i,n),t.child}function Jg(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=_i,t.flags|=Mf)}function hp(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Ya(i,a,"prop",Rt(n))}var o;{var l=Ao(t,n,!0);o=No(t,l)}var u,f;Vo(t,r),El(t);{if(Eu.current=t,ka(!0),u=Io(e,t,n,a,o,r),f=qo(),t.mode&on){Mn(!0);try{u=Io(e,t,n,a,o,r),f=qo()}finally{Mn(!1)}}ka(!1)}return bo(),e!==null&&!Qa?(fg(e,t,r),jr(e,t,r)):(jn()&&f&&Qd(t),t.flags|=mo,ta(e,t,u,r),t.child)}function eb(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|=_t,t.flags|=Ba;var f=new Error("Simulated error coming from DevTools"),v=_l(r);t.lanes=tt(t.lanes,v);var S=cp(t,Xi(f,t),v);yv(t,S);break}}if(t.type!==t.elementType){var b=n.propTypes;b&&Ya(b,a,"prop",Rt(n))}}var w;ur(n)?(w=!0,$s(t)):w=!1,Vo(t,r);var _=t.stateNode,N;_===null?(Oc(e,t),Pg(t,n,a),lp(t,n,a,r),N=!0):e===null?N=mR(t,n,a,r):N=hR(e,t,n,a,r);var re=yp(e,t,n,N,w,r);{var De=t.stateNode;N&&De.props!==a&&(Qi||d("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Xe(t)||"a component"),Qi=!0)}return re}function yp(e,t,n,a,r,i){Jg(e,t);var o=(t.flags&_t)!==Ae;if(!a&&!o)return r&&jy(t,n,!1),jr(e,t,i);var l=t.stateNode;Eu.current=t;var u;if(o&&typeof n.getDerivedStateFromError!="function")u=null,zg();else{El(t);{if(ka(!0),u=l.render(),t.mode&on){Mn(!0);try{l.render()}finally{Mn(!1)}}ka(!1)}bo()}return t.flags|=mo,e!==null&&o?CR(e,t,u,i):ta(e,t,u,i),t.memoizedState=l.state,r&&jy(t,n,!0),t.child}function tb(e){var t=e.stateNode;t.pendingContext?Ay(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Ay(e,t.context,!1),gv(e,t.containerInfo)}function DR(e,t,n){if(tb(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;rg(e,t),ic(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&Di){var v=Xi(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 nb(e,t,l,n,v)}else if(l!==i){var S=Xi(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return nb(e,t,l,n,S)}else{M1(t);var b=Ky(t,null,l,n);t.child=b;for(var w=b;w;)w.flags=w.flags&-3|ki,w=w.sibling}}else{if(Ho(),l===i)return jr(e,t,n);ta(e,t,l,n)}return t.child}function nb(e,t,n,a,r){return Ho(),nv(r),t.flags|=Di,ta(e,t,n,a),t.child}function _R(e,t,n){ug(t),e===null&&tv(t);var a=t.type,r=t.pendingProps,i=e!==null?e.memoizedProps:null,o=r.children,l=Ud(a,r);return l?o=null:i!==null&&Ud(a,i)&&(t.flags|=as),Jg(e,t),ta(e,t,o,n),t.child}function kR(e,t){return e===null&&tv(t),null}function MR(e,t,n,a){Oc(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),v=Xa(u,r),S;switch(f){case ve:return gp(t,u),t.type=u=tl(u),S=hp(null,t,u,v,a),S;case ne:return t.type=u=Gp(u),S=eb(null,t,u,v,a),S;case _e:return t.type=u=Xp(u),S=Xg(null,t,u,v,a),S;case U:{if(t.type!==t.elementType){var b=u.propTypes;b&&Ya(b,v,"prop",Rt(u))}return S=Qg(null,t,u,Xa(u.type,v),a),S}}var w="";throw u!==null&&typeof u=="object"&&u.$$typeof===M&&(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 LR(e,t,n,a,r){Oc(e,t),t.tag=ne;var i;return ur(n)?(i=!0,$s(t)):i=!1,Vo(t,r),Pg(t,n,a),lp(t,n,a,r),yp(null,t,n,!0,i,r)}function OR(e,t,n,a){Oc(e,t);var r=t.pendingProps,i;{var o=Ao(t,n,!1);i=No(t,o)}Vo(t,a);var l,u;El(t);{if(n.prototype&&typeof n.prototype.render=="function"){var f=Rt(n)||"Unknown";fp[f]||(d("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),fp[f]=!0)}t.mode&on&&Ia.recordLegacyContextWarning(t,null),ka(!0),Eu.current=t,l=Io(null,t,n,r,i,a),u=qo(),ka(!1)}if(bo(),t.flags|=mo,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var v=Rt(n)||"Unknown";Cu[v]||(d("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.",v,v,v),Cu[v]=!0)}if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){{var S=Rt(n)||"Unknown";Cu[S]||(d("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.",S,S,S),Cu[S]=!0)}t.tag=ne,t.memoizedState=null,t.updateQueue=null;var b=!1;return ur(n)?(b=!0,$s(t)):b=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,hv(t),$g(t,l),lp(t,n,r,a),yp(null,t,n,!0,b,a)}else{if(t.tag=ve,t.mode&on){Mn(!0);try{l=Io(null,t,n,r,i,a),u=qo()}finally{Mn(!1)}}return jn()&&u&&Qd(t),ta(null,t,l,a),gp(t,n),t.child}}function gp(e,t){{if(t&&t.childContextTypes&&d("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var n="",a=Ir();a&&(n+=`
Check the render method of \``+a+"`.");var r=a||"",i=e._debugSource;i&&(r=i.fileName+":"+i.lineNumber),pp[r]||(pp[r]=!0,d("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=Rt(t)||"Unknown";xu[o]||(d("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),xu[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=Rt(t)||"Unknown";vp[l]||(d("%s: Function components do not support getDerivedStateFromProps.",l),vp[l]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=Rt(t)||"Unknown";dp[u]||(d("%s: Function components do not support contextType.",u),dp[u]=!0)}}}var bp={dehydrated:null,treeContext:null,retryLane:Ln};function Sp(e){return{baseLanes:e,cachePool:ER(),transitions:null}}function AR(e,t){var n=null;return{baseLanes:tt(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function NR(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return Tv(e,vu)}function jR(e,t){return fs(e.childLanes,t)}function ab(e,t,n){var a=t.pendingProps;YD(t)&&(t.flags|=_t);var r=qa.current,i=!1,o=(t.flags&_t)!==Ae;if(o||NR(r,e)?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r=J1(r,cg)),r=$o(r),si(t,r),e===null){tv(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return VR(t,u)}var f=a.children,v=a.fallback;if(i){var S=UR(t,f,v,n),b=t.child;return b.memoizedState=Sp(n),t.memoizedState=bp,S}else return Tp(t,f)}else{var w=e.memoizedState;if(w!==null){var _=w.dehydrated;if(_!==null)return BR(e,t,o,a,_,w,n)}if(i){var N=a.fallback,re=a.children,De=zR(e,t,re,N,n),Se=t.child,ht=e.child.memoizedState;return Se.memoizedState=ht===null?Sp(n):AR(ht,n),Se.childLanes=jR(e,n),t.memoizedState=bp,De}else{var ct=a.children,C=HR(e,t,ct,n);return t.memoizedState=null,C}}}function Tp(e,t,n){var a=e.mode,r={mode:"visible",children:t},i=Ep(r,a);return i.return=e,e.child=i,i}function UR(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&pt)===Me&&i!==null?(l=i,l.childLanes=B,l.pendingProps=o,e.mode&Ht&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=yi(n,r,a,null)):(l=Ep(o,r),u=yi(n,r,a,null)),l.return=e,u.return=e,l.sibling=u,e.child=l,u}function Ep(e,t,n){return r0(e,t,B,null)}function rb(e,t){return to(e,t)}function HR(e,t,n,a){var r=e.child,i=r.sibling,o=rb(r,{mode:"visible",children:n});if((t.mode&pt)===Me&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=wi):l.push(i)}return t.child=o,o}function zR(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},f;if((i&pt)===Me&&t.child!==o){var v=t.child;f=v,f.childLanes=B,f.pendingProps=u,t.mode&Ht&&(f.actualDuration=0,f.actualStartTime=-1,f.selfBaseDuration=o.selfBaseDuration,f.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else f=rb(o,u),f.subtreeFlags=o.subtreeFlags&Rr;var S;return l!==null?S=to(l,a):(S=yi(a,i,r,null),S.flags|=_n),S.return=t,f.return=t,f.sibling=S,t.child=f,S}function Lc(e,t,n,a){a!==null&&nv(a),zo(t,e.child,null,n);var r=t.pendingProps,i=r.children,o=Tp(t,i);return o.flags|=_n,t.memoizedState=null,o}function FR(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Ep(o,i),u=yi(a,i,r,null);return u.flags|=_n,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&pt)!==Me&&zo(t,e.child,null,r),u}function VR(e,t,n){return(e.mode&pt)===Me?(d("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):Vd(t)?e.lanes=Ni:e.lanes=Ma,null}function BR(e,t,n,a,r,i,o){if(n)if(t.flags&Di){t.flags&=-257;var C=up(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Lc(e,t,o,C)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=_t,null;var j=a.children,x=a.fallback,P=FR(e,t,j,x,o),de=t.child;return de.memoizedState=Sp(o),t.memoizedState=bp,P}else{if(_1(),(t.mode&pt)===Me)return Lc(e,t,o,null);if(Vd(r)){var l,u,f;{var v=Wx(r);l=v.digest,u=v.message,f=v.stack}var S;u?S=new Error(u):S=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var b=up(S,l,f);return Lc(e,t,o,b)}var w=Sa(o,e.childLanes);if(Qa||w){var _=$c();if(_!==null){var N=KT(_,o);if(N!==Ln&&N!==i.retryLane){i.retryLane=N;var re=Gt;va(e,N),xn(_,e,N,re)}}Pp();var De=up(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 Lc(e,t,o,De)}else if(Dy(r)){t.flags|=_t,t.child=e.child;var Se=dD.bind(null,e);return Ix(r,Se),null}else{L1(t,r,i.treeContext);var ht=a.children,ct=Tp(t,ht);return ct.flags|=ki,ct}}}function ib(e,t,n){e.lanes=tt(e.lanes,t);var a=e.alternate;a!==null&&(a.lanes=tt(a.lanes,t)),dv(e.return,t,n)}function $R(e,t,n){for(var a=t;a!==null;){if(a.tag===ye){var r=a.memoizedState;r!==null&&ib(a,n,e)}else if(a.tag===Dt)ib(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 PR(e){for(var t=e,n=null;t!==null;){var a=t.alternate;a!==null&&sc(a)===null&&(n=t),t=t.sibling}return n}function YR(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!mp[e])if(mp[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{d('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{d('"%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:d('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else d('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function WR(e,t){e!==void 0&&!Mc[e]&&(e!=="collapsed"&&e!=="hidden"?(Mc[e]=!0,d('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Mc[e]=!0,d('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function ob(e,t){{var n=st(e),a=!n&&typeof $t(e)=="function";if(n||a){var r=n?"array":"iterable";return d("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 IR(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(st(e)){for(var n=0;n<e.length;n++)if(!ob(e[n],n))return}else{var a=$t(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(!ob(i.value,o))return;o++}}else d('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 Cp(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 lb(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail,o=a.children;YR(r),WR(i,r),IR(o,r),ta(e,t,o,n);var l=qa.current,u=Tv(l,vu);if(u)l=Ev(l,vu),t.flags|=_t;else{var f=e!==null&&(e.flags&_t)!==Ae;f&&$R(t,t.child,n),l=$o(l)}if(si(t,l),(t.mode&pt)===Me)t.memoizedState=null;else switch(r){case"forwards":{var v=PR(t.child),S;v===null?(S=t.child,t.child=null):(S=v.sibling,v.sibling=null),Cp(t,!1,S,v,i);break}case"backwards":{var b=null,w=t.child;for(t.child=null;w!==null;){var _=w.alternate;if(_!==null&&sc(_)===null){t.child=w;break}var N=w.sibling;w.sibling=b,b=w,w=N}Cp(t,!0,b,null,i);break}case"together":{Cp(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function qR(e,t,n){gv(t,t.stateNode.containerInfo);var a=t.pendingProps;return e===null?t.child=zo(t,null,a,n):ta(e,t,a,n),t.child}var ub=!1;function GR(e,t,n){var a=t.type,r=a._context,i=t.pendingProps,o=t.memoizedProps,l=i.value;{"value"in i||ub||(ub=!0,d("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var u=t.type.propTypes;u&&Ya(u,i,"prop","Context.Provider")}if(eg(t,r,l),o!==null){var f=o.value;if(Ca(f,l)){if(o.children===i.children&&!Vs())return jr(e,t,n)}else Y1(t,r,n)}var v=i.children;return ta(e,t,v,n),t.child}var sb=!1;function XR(e,t,n){var a=t.type;a._context===void 0?a!==a.Consumer&&(sb||(sb=!0,d("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"&&d("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."),Vo(t,n);var o=mn(a);El(t);var l;return Eu.current=t,ka(!0),l=i(o),ka(!1),bo(),t.flags|=mo,ta(e,t,l,n),t.child}function Ru(){Qa=!0}function Oc(e,t){(t.mode&pt)===Me&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=_n)}function jr(e,t,n){return e!==null&&(t.dependencies=e.dependencies),zg(),Hu(t.lanes),Sa(n,t.childLanes)?($1(e,t),t.child):null}function QR(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|=wi):i.push(e),n.flags|=_n,n}}function xp(e,t){var n=e.lanes;return!!Sa(n,t)}function KR(e,t,n){switch(t.tag){case ue:tb(t),t.stateNode,Ho();break;case ee:ug(t);break;case ne:{var a=t.type;ur(a)&&$s(t);break}case Le:gv(t,t.stateNode.containerInfo);break;case it:{var r=t.memoizedProps.value,i=t.type._context;eg(t,i,r);break}case Qe:{var o=Sa(n,t.childLanes);o&&(t.flags|=wt);{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}break;case ye:{var u=t.memoizedState;if(u!==null){if(u.dehydrated!==null)return si(t,$o(qa.current)),t.flags|=_t,null;var f=t.child,v=f.childLanes;if(Sa(n,v))return ab(e,t,n);si(t,$o(qa.current));var S=jr(e,t,n);return S!==null?S.sibling:null}else si(t,$o(qa.current));break}case Dt:{var b=(e.flags&_t)!==Ae,w=Sa(n,t.childLanes);if(b){if(w)return lb(e,t,n);t.flags|=_t}var _=t.memoizedState;if(_!==null&&(_.rendering=null,_.tail=null,_.lastEffect=null),si(t,qa.current),w)break;return null}case I:case Je:return t.lanes=B,Zg(e,t,n)}return jr(e,t,n)}function cb(e,t,n){if(t._debugNeedsRemount&&e!==null)return QR(e,t,em(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||Vs()||t.type!==e.type)Qa=!0;else{var i=xp(e,n);if(!i&&(t.flags&_t)===Ae)return Qa=!1,KR(e,t,n);(e.flags&kf)!==Ae?Qa=!0:Qa=!1}}else if(Qa=!1,jn()&&E1(t)){var o=t.index,l=C1();zy(t,l,o)}switch(t.lanes=B,t.tag){case gt:return OR(e,t,t.type,n);case At:{var u=t.elementType;return MR(e,t,u,n)}case ve:{var f=t.type,v=t.pendingProps,S=t.elementType===f?v:Xa(f,v);return hp(e,t,f,S,n)}case ne:{var b=t.type,w=t.pendingProps,_=t.elementType===b?w:Xa(b,w);return eb(e,t,b,_,n)}case ue:return DR(e,t,n);case ee:return _R(e,t,n);case Fe:return kR(e,t);case ye:return ab(e,t,n);case Le:return qR(e,t,n);case _e:{var N=t.type,re=t.pendingProps,De=t.elementType===N?re:Xa(N,re);return Xg(e,t,N,De,n)}case Ge:return xR(e,t,n);case W:return RR(e,t,n);case Qe:return wR(e,t,n);case it:return GR(e,t,n);case Tt:return XR(e,t,n);case U:{var Se=t.type,ht=t.pendingProps,ct=Xa(Se,ht);if(t.type!==t.elementType){var C=Se.propTypes;C&&Ya(C,ct,"prop",Rt(Se))}return ct=Xa(Se.type,ct),Qg(e,t,Se,ct,n)}case K:return Kg(e,t,t.type,t.pendingProps,n);case bt:{var j=t.type,x=t.pendingProps,P=t.elementType===j?x:Xa(j,x);return LR(e,t,j,P,n)}case Dt:return lb(e,t,n);case Te:break;case I:return Zg(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 Go(e){e.flags|=wt}function fb(e){e.flags|=_i,e.flags|=Mf}var db,Rp,vb,pb;db=function(e,t,n,a){for(var r=t.child;r!==null;){if(r.tag===ee||r.tag===Fe)bx(e,r.stateNode);else if(r.tag!==Le){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}},Rp=function(e,t){},vb=function(e,t,n,a,r){var i=e.memoizedProps;if(i!==a){var o=t.stateNode,l=bv(),u=Tx(o,n,i,a,r,l);t.updateQueue=u,u&&Go(t)}},pb=function(e,t,n,a){n!==a&&Go(t)};function wu(e,t){if(!jn())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 Hn(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=B,a=Ae;if(t){if((e.mode&Ht)!==Me){for(var u=e.selfBaseDuration,f=e.child;f!==null;)n=tt(n,tt(f.lanes,f.childLanes)),a|=f.subtreeFlags&Rr,a|=f.flags&Rr,u+=f.treeBaseDuration,f=f.sibling;e.treeBaseDuration=u}else for(var v=e.child;v!==null;)n=tt(n,tt(v.lanes,v.childLanes)),a|=v.subtreeFlags&Rr,a|=v.flags&Rr,v.return=e,v=v.sibling;e.subtreeFlags|=a}else{if((e.mode&Ht)!==Me){for(var r=e.actualDuration,i=e.selfBaseDuration,o=e.child;o!==null;)n=tt(n,tt(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=tt(n,tt(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 ZR(e,t,n){if(U1()&&(t.mode&pt)!==Me&&(t.flags&_t)===Ae)return Wy(t),Ho(),t.flags|=Di|rs|Ba,!1;var a=qs(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(N1(t),Hn(t),(t.mode&Ht)!==Me){var r=n!==null;if(r){var i=t.child;i!==null&&(t.treeBaseDuration-=i.treeBaseDuration)}}return!1}else{if(Ho(),(t.flags&_t)===Ae&&(t.memoizedState=null),t.flags|=wt,Hn(t),(t.mode&Ht)!==Me){var o=n!==null;if(o){var l=t.child;l!==null&&(t.treeBaseDuration-=l.treeBaseDuration)}}return!1}else return Iy(),!0}function mb(e,t,n){var a=t.pendingProps;switch(Kd(t),t.tag){case gt:case At:case K:case ve:case _e:case Ge:case W:case Qe:case Tt:case U:return Hn(t),null;case ne:{var r=t.type;return ur(r)&&Bs(t),Hn(t),null}case ue:{var i=t.stateNode;if(Bo(t),qd(t),xv(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e===null||e.child===null){var o=qs(t);if(o)Go(t);else if(e!==null){var l=e.memoizedState;(!l.isDehydrated||(t.flags&Di)!==Ae)&&(t.flags|=ho,Iy())}}return Rp(e,t),Hn(t),null}case ee:{Sv(t);var u=lg(),f=t.type;if(e!==null&&t.stateNode!=null)vb(e,t,f,a,u),e.ref!==t.ref&&fb(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 Hn(t),null}var v=bv(),S=qs(t);if(S)O1(t,u,v)&&Go(t);else{var b=gx(f,a,u,v,t);db(b,t,!1,!1),t.stateNode=b,Sx(b,f,a,u)&&Go(t)}t.ref!==null&&fb(t)}return Hn(t),null}case Fe:{var w=a;if(e&&t.stateNode!=null){var _=e.memoizedProps;pb(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=lg(),re=bv(),De=qs(t);De?A1(t)&&Go(t):t.stateNode=Ex(w,N,re,t)}return Hn(t),null}case ye:{Po(t);var Se=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var ht=ZR(e,t,Se);if(!ht)return t.flags&Ba?t:null}if((t.flags&_t)!==Ae)return t.lanes=n,(t.mode&Ht)!==Me&&Xv(t),t;var ct=Se!==null,C=e!==null&&e.memoizedState!==null;if(ct!==C&&ct){var j=t.child;if(j.flags|=Mi,(t.mode&pt)!==Me){var x=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);x||Tv(qa.current,cg)?Jw():Pp()}}var P=t.updateQueue;if(P!==null&&(t.flags|=wt),Hn(t),(t.mode&Ht)!==Me&&ct){var de=t.child;de!==null&&(t.treeBaseDuration-=de.treeBaseDuration)}return null}case Le:return Bo(t),Rp(e,t),e===null&&m1(t.stateNode.containerInfo),Hn(t),null;case it:var oe=t.type._context;return fv(oe,t),Hn(t),null;case bt:{var He=t.type;return ur(He)&&Bs(t),Hn(t),null}case Dt:{Po(t);var qe=t.memoizedState;if(qe===null)return Hn(t),null;var Ft=(t.flags&_t)!==Ae,Et=qe.rendering;if(Et===null)if(Ft)wu(qe,!1);else{var fn=tD()&&(e===null||(e.flags&_t)===Ae);if(!fn)for(var Ct=t.child;Ct!==null;){var ln=sc(Ct);if(ln!==null){Ft=!0,t.flags|=_t,wu(qe,!1);var Qn=ln.updateQueue;return Qn!==null&&(t.updateQueue=Qn,t.flags|=wt),t.subtreeFlags=Ae,P1(t,n),si(t,Ev(qa.current,vu)),t.child}Ct=Ct.sibling}qe.tail!==null&&kn()>Ub()&&(t.flags|=_t,Ft=!0,wu(qe,!1),t.lanes=ph)}else{if(!Ft){var $n=sc(Et);if($n!==null){t.flags|=_t,Ft=!0;var wa=$n.updateQueue;if(wa!==null&&(t.updateQueue=wa,t.flags|=wt),wu(qe,!0),qe.tail===null&&qe.tailMode==="hidden"&&!Et.alternate&&!jn())return Hn(t),null}else kn()*2-qe.renderingStartTime>Ub()&&n!==Ma&&(t.flags|=_t,Ft=!0,wu(qe,!1),t.lanes=ph)}if(qe.isBackwards)Et.sibling=t.child,t.child=Et;else{var ra=qe.last;ra!==null?ra.sibling=Et:t.child=Et,qe.last=Et}}if(qe.tail!==null){var ia=qe.tail;qe.rendering=ia,qe.tail=ia.sibling,qe.renderingStartTime=kn(),ia.sibling=null;var Kn=qa.current;return Ft?Kn=Ev(Kn,vu):Kn=$o(Kn),si(t,Kn),ia}return Hn(t),null}case Te:break;case I:case Je:{$p(t);var Vr=t.memoizedState,nl=Vr!==null;if(e!==null){var $u=e.memoizedState,hr=$u!==null;hr!==nl&&(t.flags|=Mi)}return!nl||(t.mode&pt)===Me?Hn(t):Sa(mr,Ma)&&(Hn(t),t.subtreeFlags&(_n|wt)&&(t.flags|=Mi)),null}case ie:return null;case pe: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 JR(e,t,n){switch(Kd(t),t.tag){case ne:{var a=t.type;ur(a)&&Bs(t);var r=t.flags;return r&Ba?(t.flags=r&-65537|_t,(t.mode&Ht)!==Me&&Xv(t),t):null}case ue:{t.stateNode,Bo(t),qd(t),xv();var i=t.flags;return(i&Ba)!==Ae&&(i&_t)===Ae?(t.flags=i&-65537|_t,t):null}case ee:return Sv(t),null;case ye:{Po(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.");Ho()}var l=t.flags;return l&Ba?(t.flags=l&-65537|_t,(t.mode&Ht)!==Me&&Xv(t),t):null}case Dt:return Po(t),null;case Le:return Bo(t),null;case it:var u=t.type._context;return fv(u,t),null;case I:case Je:return $p(t),null;case ie:return null;default:return null}}function hb(e,t,n){switch(Kd(t),t.tag){case ne:{var a=t.type.childContextTypes;a!=null&&Bs(t);break}case ue:{t.stateNode,Bo(t),qd(t),xv();break}case ee:{Sv(t);break}case Le:Bo(t);break;case ye:Po(t);break;case Dt:Po(t);break;case it:var r=t.type._context;fv(r,t);break;case I:case Je:$p(t);break}}var yb=null;yb=new Set;var Ac=!1,zn=!1,ew=typeof WeakSet=="function"?WeakSet:Set,he=null,Xo=null,Qo=null;function tw(e){wf(null,function(){throw e}),Df()}var nw=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Ht)try{vr(),t.componentWillUnmount()}finally{dr(e)}else t.componentWillUnmount()};function gb(e,t){try{di(gn,e)}catch(n){Pt(e,t,n)}}function wp(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 bb(e,t){try{Tb(e)}catch(n){Pt(e,t,n)}}function Ko(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var a;try{if(Lt&&Ye&&e.mode&Ht)try{vr(),a=n(null)}finally{dr(e)}else a=n(null)}catch(r){Pt(e,t,r)}typeof a=="function"&&d("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Xe(e))}else n.current=null}function Nc(e,t,n){try{n()}catch(a){Pt(e,t,a)}}var Sb=!1;function rw(e,t){hx(e.containerInfo),he=t,iw();var n=Sb;return Sb=!1,n}function iw(){for(;he!==null;){var e=he,t=e.child;(e.subtreeFlags&Af)!==Ae&&t!==null?(t.return=e,he=t):ow()}}function ow(){for(;he!==null;){var e=he;Jt(e);try{lw(e)}catch(n){Pt(e,e.return,n)}Dn();var t=e.sibling;if(t!==null){t.return=e.return,he=t;return}he=e.return}}function lw(e){var t=e.alternate,n=e.flags;if((n&ho)!==Ae){switch(Jt(e),e.tag){case ve:case _e:case K:break;case ne:{if(t!==null){var a=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type===e.elementType&&!Qi&&(i.props!==e.memoizedProps&&d("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.",Xe(e)||"instance"),i.state!==e.memoizedState&&d("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.",Xe(e)||"instance"));var o=i.getSnapshotBeforeUpdate(e.elementType===e.type?a:Xa(e.type,a),r);{var l=yb;o===void 0&&!l.has(e.type)&&(l.add(e.type),d("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Xe(e)))}i.__reactInternalSnapshotBeforeUpdate=o}break}case ue:{{var u=e.stateNode;Bx(u.containerInfo)}break}case ee:case Fe:case Le:case bt: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.")}Dn()}}function Ka(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&Un)!==pa?ET(t):(e&gn)!==pa&&sh(t),(e&sr)!==pa&&Fu(!0),Nc(t,n,l),(e&sr)!==pa&&Fu(!1),(e&Un)!==pa?CT():(e&gn)!==pa&&ch())}o=o.next}while(o!==i)}}function di(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&Un)!==pa?ST(t):(e&gn)!==pa&&xT(t);var o=i.create;(e&sr)!==pa&&Fu(!0),i.destroy=o(),(e&sr)!==pa&&Fu(!1),(e&Un)!==pa?TT():(e&gn)!==pa&&RT();{var l=i.destroy;if(l!==void 0&&typeof l!="function"){var u=void 0;(i.tag&gn)!==Ae?u="useLayoutEffect":(i.tag&sr)!==Ae?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,d("%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&wt)!==Ae)switch(t.tag){case Qe:{var n=t.stateNode.passiveEffectDuration,a=t.memoizedProps,r=a.id,i=a.onPostCommit,o=Ug(),l=t.alternate===null?"mount":"update";jg()&&(l="nested-update"),typeof i=="function"&&i(r,l,n,o);var u=t.return;e:for(;u!==null;){switch(u.tag){case ue:var f=u.stateNode;f.passiveEffectDuration+=n;break e;case Qe:var v=u.stateNode;v.passiveEffectDuration+=n;break e}u=u.return}break}}}function sw(e,t,n,a){if((n.flags&Tl)!==Ae)switch(n.tag){case ve:case _e:case K:{if(!zn)if(n.mode&Ht)try{vr(),di(gn|yn,n)}finally{dr(n)}else di(gn|yn,n);break}case ne:{var r=n.stateNode;if(n.flags&wt&&!zn)if(t===null)if(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("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.",Xe(n)||"instance"),r.state!==n.memoizedState&&d("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.",Xe(n)||"instance")),n.mode&Ht)try{vr(),r.componentDidMount()}finally{dr(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Xa(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("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.",Xe(n)||"instance"),r.state!==n.memoizedState&&d("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.",Xe(n)||"instance")),n.mode&Ht)try{vr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{dr(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("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.",Xe(n)||"instance"),r.state!==n.memoizedState&&d("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.",Xe(n)||"instance")),og(n,l,r));break}case ue:{var u=n.updateQueue;if(u!==null){var f=null;if(n.child!==null)switch(n.child.tag){case ee:f=n.child.stateNode;break;case ne:f=n.child.stateNode;break}og(n,u,f)}break}case ee:{var v=n.stateNode;if(t===null&&n.flags&wt){var S=n.type,b=n.memoizedProps;Dx(v,S,b)}break}case Fe:break;case Le:break;case Qe:{{var w=n.memoizedProps,_=w.onCommit,N=w.onRender,re=n.stateNode.effectDuration,De=Ug(),Se=t===null?"mount":"update";jg()&&(Se="nested-update"),typeof N=="function"&&N(n.memoizedProps.id,Se,n.actualDuration,n.treeBaseDuration,n.actualStartTime,De);{typeof _=="function"&&_(n.memoizedProps.id,Se,re,De),oD(n);var ht=n.return;e:for(;ht!==null;){switch(ht.tag){case ue:var ct=ht.stateNode;ct.effectDuration+=re;break e;case Qe:var C=ht.stateNode;C.effectDuration+=re;break e}ht=ht.return}}}break}case ye:{yw(e,n);break}case Dt:case bt:case Te:case I:case Je:case pe: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.")}zn||n.flags&_i&&Tb(n)}function cw(e){switch(e.tag){case ve:case _e:case K:{if(e.mode&Ht)try{vr(),gb(e,e.return)}finally{dr(e)}else gb(e,e.return);break}case ne:{var t=e.stateNode;typeof t.componentDidMount=="function"&&aw(e,e.return,t),bb(e,e.return);break}case ee:{bb(e,e.return);break}}}function fw(e,t){for(var n=null,a=e;;){if(a.tag===ee){if(n===null){n=a;try{var r=a.stateNode;t?Hx(r):Fx(a.stateNode,a.memoizedProps)}catch(o){Pt(e,e.return,o)}}}else if(a.tag===Fe){if(n===null)try{var i=a.stateNode;t?zx(i):Vx(i,a.memoizedProps)}catch(o){Pt(e,e.return,o)}}else if(!((a.tag===I||a.tag===Je)&&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 Tb(e){var t=e.ref;if(t!==null){var n=e.stateNode,a;switch(e.tag){case ee:a=n;break;default:a=n}if(typeof t=="function"){var r;if(e.mode&Ht)try{vr(),r=t(a)}finally{dr(e)}else r=t(a);typeof r=="function"&&d("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Xe(e))}else t.hasOwnProperty("current")||d("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Xe(e)),t.current=a}}function dw(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function Eb(e){var t=e.alternate;t!==null&&(e.alternate=null,Eb(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===ee){var n=e.stateNode;n!==null&&g1(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(Cb(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 Cb(e){return e.tag===ee||e.tag===ue||e.tag===Le}function xb(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||Cb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==ee&&t.tag!==Fe&&t.tag!==ot;){if(t.flags&_n||t.child===null||t.tag===Le)continue e;t.child.return=t,t=t.child}if(!(t.flags&_n))return t.stateNode}}function pw(e){var t=vw(e);switch(t.tag){case ee:{var n=t.stateNode;t.flags&as&&(wy(n),t.flags&=-33);var a=xb(e);_p(e,a,n);break}case ue:case Le:{var r=t.stateNode.containerInfo,i=xb(e);Dp(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 Dp(e,t,n){var a=e.tag,r=a===ee||a===Fe;if(r){var i=e.stateNode;t?Ax(n,i,t):Lx(n,i)}else if(a!==Le){var o=e.child;if(o!==null){Dp(o,t,n);for(var l=o.sibling;l!==null;)Dp(l,t,n),l=l.sibling}}}function _p(e,t,n){var a=e.tag,r=a===ee||a===Fe;if(r){var i=e.stateNode;t?Ox(n,i,t):Mx(n,i)}else if(a!==Le){var o=e.child;if(o!==null){_p(o,t,n);for(var l=o.sibling;l!==null;)_p(l,t,n),l=l.sibling}}}var Fn=null,Za=!1;function mw(e,t,n){{var a=t;e:for(;a!==null;){switch(a.tag){case ee:{Fn=a.stateNode,Za=!1;break e}case ue:{Fn=a.stateNode.containerInfo,Za=!0;break e}case Le:{Fn=a.stateNode.containerInfo,Za=!0;break e}}a=a.return}if(Fn===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Rb(e,t,n),Fn=null,Za=!1}dw(n)}function vi(e,t,n){for(var a=n.child;a!==null;)Rb(e,t,a),a=a.sibling}function Rb(e,t,n){switch(hT(n),n.tag){case ee:zn||Ko(n,t);case Fe:{{var a=Fn,r=Za;Fn=null,vi(e,t,n),Fn=a,Za=r,Fn!==null&&(Za?jx(Fn,n.stateNode):Nx(Fn,n.stateNode))}return}case ot:{Fn!==null&&(Za?Ux(Fn,n.stateNode):Fd(Fn,n.stateNode));return}case Le:{{var i=Fn,o=Za;Fn=n.stateNode.containerInfo,Za=!0,vi(e,t,n),Fn=i,Za=o}return}case ve:case _e:case U:case K:{if(!zn){var l=n.updateQueue;if(l!==null){var u=l.lastEffect;if(u!==null){var f=u.next,v=f;do{var S=v,b=S.destroy,w=S.tag;b!==void 0&&((w&sr)!==pa?Nc(n,t,b):(w&gn)!==pa&&(sh(n),n.mode&Ht?(vr(),Nc(n,t,b),dr(n)):Nc(n,t,b),ch())),v=v.next}while(v!==f)}}}vi(e,t,n);return}case ne:{if(!zn){Ko(n,t);var _=n.stateNode;typeof _.componentWillUnmount=="function"&&wp(n,t,_)}vi(e,t,n);return}case Te:{vi(e,t,n);return}case I:{if(n.mode&pt){var N=zn;zn=N||n.memoizedState!==null,vi(e,t,n),zn=N}else vi(e,t,n);break}default:{vi(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&&t1(i)}}}}function wb(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),$a)if(Xo!==null&&Qo!==null)zu(Qo,Xo);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){Xo=n,Qo=e,Jt(t),Db(t,e),Jt(t),Xo=null,Qo=null}function Ja(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=Iu();if(t.subtreeFlags&Nf)for(var l=t.child;l!==null;)Jt(l),Db(l,e),l=l.sibling;Jt(o)}function Db(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case ve:case _e:case U:case K:{if(Ja(t,e),pr(e),r&wt){try{Ka(sr|yn,e,e.return),di(sr|yn,e)}catch(He){Pt(e,e.return,He)}if(e.mode&Ht){try{vr(),Ka(gn|yn,e,e.return)}catch(He){Pt(e,e.return,He)}dr(e)}else try{Ka(gn|yn,e,e.return)}catch(He){Pt(e,e.return,He)}}return}case ne:{Ja(t,e),pr(e),r&_i&&a!==null&&Ko(a,a.return);return}case ee:{Ja(t,e),pr(e),r&_i&&a!==null&&Ko(a,a.return);{if(e.flags&as){var i=e.stateNode;try{wy(i)}catch(He){Pt(e,e.return,He)}}if(r&wt){var o=e.stateNode;if(o!=null){var l=e.memoizedProps,u=a!==null?a.memoizedProps:l,f=e.type,v=e.updateQueue;if(e.updateQueue=null,v!==null)try{_x(o,v,f,u,l,e)}catch(He){Pt(e,e.return,He)}}}}return}case Fe:{if(Ja(t,e),pr(e),r&wt){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 S=e.stateNode,b=e.memoizedProps,w=a!==null?a.memoizedProps:b;try{kx(S,w,b)}catch(He){Pt(e,e.return,He)}}return}case ue:{if(Ja(t,e),pr(e),r&wt&&a!==null){var _=a.memoizedState;if(_.isDehydrated)try{e1(t.containerInfo)}catch(He){Pt(e,e.return,He)}}return}case Le:{Ja(t,e),pr(e);return}case ye:{Ja(t,e),pr(e);var N=e.child;if(N.flags&Mi){var re=N.stateNode,De=N.memoizedState,Se=De!==null;if(re.isHidden=Se,Se){var ht=N.alternate!==null&&N.alternate.memoizedState!==null;ht||Zw()}}if(r&wt){try{hw(e)}catch(He){Pt(e,e.return,He)}wb(e)}return}case I:{var ct=a!==null&&a.memoizedState!==null;if(e.mode&pt){var C=zn;zn=C||ct,Ja(t,e),zn=C}else Ja(t,e);if(pr(e),r&Mi){var j=e.stateNode,x=e.memoizedState,P=x!==null,de=e;if(j.isHidden=P,P&&!ct&&(de.mode&pt)!==Me){he=de;for(var oe=de.child;oe!==null;)he=oe,Sw(oe),oe=oe.sibling}fw(de,P)}return}case Dt:{Ja(t,e),pr(e),r&wt&&wb(e);return}case Te:return;default:{Ja(t,e),pr(e);return}}}function pr(e){var t=e.flags;if(t&_n){try{pw(e)}catch(n){Pt(e,e.return,n)}e.flags&=-3}t&ki&&(e.flags&=-4097)}function bw(e,t,n){Xo=n,Qo=t,he=e,_b(e,t,n),Xo=null,Qo=null}function _b(e,t,n){for(var a=(e.mode&pt)!==Me;he!==null;){var r=he,i=r.child;if(r.tag===I&&a){var o=r.memoizedState!==null,l=o||Ac;if(l){kp(e,t,n);continue}else{var u=r.alternate,f=u!==null&&u.memoizedState!==null,v=f||zn,S=Ac,b=zn;Ac=l,zn=v,zn&&!b&&(he=r,Tw(r));for(var w=i;w!==null;)he=w,_b(w,t,n),w=w.sibling;he=r,Ac=S,zn=b,kp(e,t,n);continue}}(r.subtreeFlags&Tl)!==Ae&&i!==null?(i.return=r,he=i):kp(e,t,n)}}function kp(e,t,n){for(;he!==null;){var a=he;if((a.flags&Tl)!==Ae){var r=a.alternate;Jt(a);try{sw(t,r,a,n)}catch(o){Pt(a,a.return,o)}Dn()}if(a===e){he=null;return}var i=a.sibling;if(i!==null){i.return=a.return,he=i;return}he=a.return}}function Sw(e){for(;he!==null;){var t=he,n=t.child;switch(t.tag){case ve:case _e:case U:case K:{if(t.mode&Ht)try{vr(),Ka(gn,t,t.return)}finally{dr(t)}else Ka(gn,t,t.return);break}case ne:{Ko(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&wp(t,t.return,a);break}case ee:{Ko(t,t.return);break}case I:{var r=t.memoizedState!==null;if(r){kb(e);continue}break}}n!==null?(n.return=t,he=n):kb(e)}}function kb(e){for(;he!==null;){var t=he;if(t===e){he=null;return}var n=t.sibling;if(n!==null){n.return=t.return,he=n;return}he=t.return}}function Tw(e){for(;he!==null;){var t=he,n=t.child;if(t.tag===I){var a=t.memoizedState!==null;if(a){Mb(e);continue}}n!==null?(n.return=t,he=n):Mb(e)}}function Mb(e){for(;he!==null;){var t=he;Jt(t);try{cw(t)}catch(a){Pt(t,t.return,a)}if(Dn(),t===e){he=null;return}var n=t.sibling;if(n!==null){n.return=t.return,he=n;return}he=t.return}}function Ew(e,t,n,a){he=t,Cw(t,e,n,a)}function Cw(e,t,n,a){for(;he!==null;){var r=he,i=r.child;(r.subtreeFlags&yo)!==Ae&&i!==null?(i.return=r,he=i):xw(e,t,n,a)}}function xw(e,t,n,a){for(;he!==null;){var r=he;if((r.flags&Gr)!==Ae){Jt(r);try{Rw(t,r,n,a)}catch(o){Pt(r,r.return,o)}Dn()}if(r===e){he=null;return}var i=r.sibling;if(i!==null){i.return=r.return,he=i;return}he=r.return}}function Rw(e,t,n,a){switch(t.tag){case ve:case _e:case K:{if(t.mode&Ht){Gv();try{di(Un|yn,t)}finally{qv(t)}}else di(Un|yn,t);break}}}function ww(e){he=e,Dw()}function Dw(){for(;he!==null;){var e=he,t=e.child;if((he.flags&wi)!==Ae){var n=e.deletions;if(n!==null){for(var a=0;a<n.length;a++){var r=n[a];he=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)}}}he=e}}(e.subtreeFlags&yo)!==Ae&&t!==null?(t.return=e,he=t):_w()}}function _w(){for(;he!==null;){var e=he;(e.flags&Gr)!==Ae&&(Jt(e),kw(e),Dn());var t=e.sibling;if(t!==null){t.return=e.return,he=t;return}he=e.return}}function kw(e){switch(e.tag){case ve:case _e:case K:{e.mode&Ht?(Gv(),Ka(Un|yn,e,e.return),qv(e)):Ka(Un|yn,e,e.return);break}}}function Mw(e,t){for(;he!==null;){var n=he;Jt(n),Ow(n,t),Dn();var a=n.child;a!==null?(a.return=n,he=a):Lw(e)}}function Lw(e){for(;he!==null;){var t=he,n=t.sibling,a=t.return;if(Eb(t),t===e){he=null;return}if(n!==null){n.return=a,he=n;return}he=a}}function Ow(e,t){switch(e.tag){case ve:case _e:case K:{e.mode&Ht?(Gv(),Ka(Un,e,t),qv(e)):Ka(Un,e,t);break}}}function Aw(e){switch(e.tag){case ve:case _e:case K:{try{di(gn|yn,e)}catch(n){Pt(e,e.return,n)}break}case ne:{var t=e.stateNode;try{t.componentDidMount()}catch(n){Pt(e,e.return,n)}break}}}function Nw(e){switch(e.tag){case ve:case _e:case K:{try{di(Un|yn,e)}catch(t){Pt(e,e.return,t)}break}}}function jw(e){switch(e.tag){case ve:case _e:case K:{try{Ka(gn|yn,e,e.return)}catch(n){Pt(e,e.return,n)}break}case ne:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&wp(e,e.return,t);break}}}function Uw(e){switch(e.tag){case ve:case _e:case K:try{Ka(Un|yn,e,e.return)}catch(t){Pt(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var Du=Symbol.for;Du("selector.component"),Du("selector.has_pseudo_class"),Du("selector.role"),Du("selector.test_id"),Du("selector.text")}var Hw=[];function zw(){Hw.forEach(function(e){return e()})}var Fw=Ee.ReactCurrentActQueue;function Vw(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,n=typeof jest<"u";return n&&t!==!1}}function Lb(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&Fw.current!==null&&d("The current testing environment is not configured to support act(...)"),e}}var Bw=Math.ceil,Mp=Ee.ReactCurrentDispatcher,Lp=Ee.ReactCurrentOwner,Vn=Ee.ReactCurrentBatchConfig,er=Ee.ReactCurrentActQueue,Tn=0,Ob=1,Bn=2,Ua=4,Ur=0,_u=1,Ki=2,jc=3,ku=4,Ab=5,Op=6,mt=Tn,na=null,nn=null,En=B,mr=B,Ap=ai(B),Cn=Ur,Mu=null,Uc=B,Lu=B,Hc=B,Ou=null,ma=null,Np=0,Nb=500,jb=1/0,$w=500,Hr=null;function Au(){jb=kn()+$w}function Ub(){return jb}var zc=!1,jp=null,Zo=null,Zi=!1,pi=null,Nu=B,Up=[],Hp=null,Pw=50,ju=0,zp=null,Fp=!1,Fc=!1,Yw=50,Jo=0,Vc=null,Uu=Gt,Bc=B,Hb=!1;function $c(){return na}function aa(){return(mt&(Bn|Ua))!==Tn?kn():(Uu!==Gt||(Uu=kn()),Uu)}function mi(e){var t=e.mode;if((t&pt)===Me)return $e;if((mt&Bn)!==Tn&&En!==B)return _l(En);var n=F1()!==z1;if(n){if(Vn.transition!==null){var a=Vn.transition;a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(e)}return Bc===Ln&&(Bc=gh()),Bc}var r=Pa();if(r!==Ln)return r;var i=Cx();return i}function Ww(e){var t=e.mode;return(t&pt)===Me?$e:qT()}function xn(e,t,n,a){mD(),Hb&&d("useInsertionEffect must not schedule updates."),Fp&&(Fc=!0),kl(e,n,a),(mt&Bn)!==B&&e===na?gD(t):($a&&Th(e,t,n),bD(t),e===na&&((mt&Bn)===Tn&&(Lu=tt(Lu,n)),Cn===ku&&hi(e,En)),ha(e,a),n===$e&&mt===Tn&&(t.mode&pt)===Me&&!er.isBatchingLegacy&&(Au(),Hy()))}function Iw(e,t,n){var a=e.current;a.lanes=t,kl(e,t,n),ha(e,n)}function qw(e){return(mt&Bn)!==Tn}function ha(e,t){var n=e.callbackNode;BT(e,t);var a=ss(e,e===na?En:B);if(a===B){n!==null&&Jb(n),e.callbackNode=null,e.callbackPriority=Ln;return}var r=Ui(a),i=e.callbackPriority;if(i===r&&!(er.current!==null&&n!==Ip)){n==null&&i!==$e&&d("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}n!=null&&Jb(n);var o;if(r===$e)e.tag===ri?(er.isBatchingLegacy!==null&&(er.didScheduleLegacyUpdate=!0),T1(Vb.bind(null,e))):Uy(Vb.bind(null,e)),er.current!==null?er.current.push(ii):Rx(function(){(mt&(Bn|Ua))===Tn&&ii()}),o=null;else{var l;switch(xh(a)){case Ta:l=is;break;case Dr:l=jf;break;case _r:l=Ai;break;case ds:l=Uf;break;default:l=Ai;break}o=qp(l,zb.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}function zb(e,t){if(fR(),Uu=Gt,Bc=B,(mt&(Bn|Ua))!==Tn)throw new Error("Should not already be working.");var n=e.callbackNode,a=Fr();if(a&&e.callbackNode!==n)return null;var r=ss(e,e===na?En:B);if(r===B)return null;var i=!cs(e,r)&&!IT(e,r)&&!t,o=i?aD(e,r):Yc(e,r);if(o!==Ur){if(o===Ki){var l=rd(e);l!==B&&(r=l,o=Vp(e,l))}if(o===_u){var u=Mu;throw Ji(e,B),hi(e,r),ha(e,kn()),u}if(o===Op)hi(e,r);else{var f=!cs(e,r),v=e.current.alternate;if(f&&!Xw(v)){if(o=Yc(e,r),o===Ki){var S=rd(e);S!==B&&(r=S,o=Vp(e,S))}if(o===_u){var b=Mu;throw Ji(e,B),hi(e,r),ha(e,kn()),b}}e.finishedWork=v,e.finishedLanes=r,Gw(e,o,r)}}return ha(e,kn()),e.callbackNode===n?zb.bind(null,e):null}function Vp(e,t){var n=Ou;if(vs(e)){var a=Ji(e,t);a.flags|=Di,p1(e.containerInfo)}var r=Yc(e,t);if(r!==Ki){var i=ma;ma=n,i!==null&&Fb(i)}return r}function Fb(e){ma===null?ma=e:ma.push.apply(ma,e)}function Gw(e,t,n){switch(t){case Ur:case _u:throw new Error("Root did not complete. This is a bug in React.");case Ki:{eo(e,ma,Hr);break}case jc:{if(hi(e,n),hh(n)&&!e0()){var a=Np+Nb-kn();if(a>10){var r=ss(e,B);if(r!==B)break;var i=e.suspendedLanes;if(!Co(i,n)){aa(),Sh(e,i);break}e.timeoutHandle=Hd(eo.bind(null,e,ma,Hr),a);break}}eo(e,ma,Hr);break}case ku:{if(hi(e,n),WT(n))break;if(!e0()){var o=FT(e,n),l=o,u=kn()-l,f=pD(u)-u;if(f>10){e.timeoutHandle=Hd(eo.bind(null,e,ma,Hr),f);break}}eo(e,ma,Hr);break}case Ab:{eo(e,ma,Hr);break}default:throw new Error("Unknown root exit status.")}}function Xw(e){for(var t=e;;){if(t.flags&_f){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(!Ca(o(),l))return!1}catch{return!1}}}}var u=t.child;if(t.subtreeFlags&_f&&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 hi(e,t){t=fs(t,Hc),t=fs(t,Lu),XT(e,t)}function Vb(e){if(dR(),(mt&(Bn|Ua))!==Tn)throw new Error("Should not already be working.");Fr();var t=ss(e,B);if(!Sa(t,$e))return ha(e,kn()),null;var n=Yc(e,t);if(e.tag!==ri&&n===Ki){var a=rd(e);a!==B&&(t=a,n=Vp(e,a))}if(n===_u){var r=Mu;throw Ji(e,B),hi(e,t),ha(e,kn()),r}if(n===Op)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,eo(e,ma,Hr),ha(e,kn()),null}function Qw(e,t){t!==B&&(ud(e,tt(t,$e)),ha(e,kn()),(mt&(Bn|Ua))===Tn&&(Au(),ii()))}function Bp(e,t){var n=mt;mt|=Ob;try{return e(t)}finally{mt=n,mt===Tn&&!er.isBatchingLegacy&&(Au(),Hy())}}function Kw(e,t,n,a,r){var i=Pa(),o=Vn.transition;try{return Vn.transition=null,On(Ta),e(t,n,a,r)}finally{On(i),Vn.transition=o,mt===Tn&&Au()}}function zr(e){pi!==null&&pi.tag===ri&&(mt&(Bn|Ua))===Tn&&Fr();var t=mt;mt|=Ob;var n=Vn.transition,a=Pa();try{return Vn.transition=null,On(Ta),e?e():void 0}finally{On(a),Vn.transition=n,mt=t,(mt&(Bn|Ua))===Tn&&ii()}}function Bb(){return(mt&(Bn|Ua))!==Tn}function Pc(e,t){Gn(Ap,mr,e),mr=tt(mr,t)}function $p(e){mr=Ap.current,qn(Ap,e)}function Ji(e,t){e.finishedWork=null,e.finishedLanes=B;var n=e.timeoutHandle;if(n!==zd&&(e.timeoutHandle=zd,xx(n)),nn!==null)for(var a=nn.return;a!==null;){var r=a.alternate;hb(r,a),a=a.return}na=e;var i=to(e.current,null);return nn=i,En=mr=t,Cn=Ur,Mu=null,Uc=B,Lu=B,Hc=B,Ou=null,ma=null,I1(),Ia.discardPendingWarnings(),i}function $b(e,t){do{var n=nn;try{if(Js(),dg(),Dn(),Lp.current=null,n===null||n.return===null){Cn=_u,Mu=t,nn=null;return}if(Lt&&n.mode&Ht&&_c(n,!0),Kt)if(bo(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var a=t;DT(n,a,En)}else wT(n,t,En);TR(e,n.return,n,t,En),Ib(n)}catch(r){t=r,nn===n&&n!==null?(n=n.return,nn=n):n=nn;continue}return}while(!0)}function Pb(){var e=Mp.current;return Mp.current=Cc,e===null?Cc:e}function Yb(e){Mp.current=e}function Zw(){Np=kn()}function Hu(e){Uc=tt(e,Uc)}function Jw(){Cn===Ur&&(Cn=jc)}function Pp(){(Cn===Ur||Cn===jc||Cn===Ki)&&(Cn=ku),na!==null&&(id(Uc)||id(Lu))&&hi(na,En)}function eD(e){Cn!==ku&&(Cn=Ki),Ou===null?Ou=[e]:Ou.push(e)}function tD(){return Cn===Ur}function Yc(e,t){var n=mt;mt|=Bn;var a=Pb();if(na!==e||En!==t){if($a){var r=e.memoizedUpdaters;r.size>0&&(zu(e,En),r.clear()),Eh(e,t)}Hr=Ch(),Ji(e,t)}fh(t);do try{nD();break}catch(i){$b(e,i)}while(!0);if(Js(),mt=n,Yb(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 dh(),na=null,En=B,Cn}function nD(){for(;nn!==null;)Wb(nn)}function aD(e,t){var n=mt;mt|=Bn;var a=Pb();if(na!==e||En!==t){if($a){var r=e.memoizedUpdaters;r.size>0&&(zu(e,En),r.clear()),Eh(e,t)}Hr=Ch(),Au(),Ji(e,t)}fh(t);do try{rD();break}catch(i){$b(e,i)}while(!0);return Js(),Yb(a),mt=n,nn!==null?(OT(),Ur):(dh(),na=null,En=B,Cn)}function rD(){for(;nn!==null&&!oT();)Wb(nn)}function Wb(e){var t=e.alternate;Jt(e);var n;(e.mode&Ht)!==Me?(Iv(e),n=Yp(t,e,mr),_c(e,!0)):n=Yp(t,e,mr),Dn(),e.memoizedProps=e.pendingProps,n===null?Ib(e):nn=n,Lp.current=null}function Ib(e){var t=e;do{var n=t.alternate,a=t.return;if((t.flags&rs)===Ae){Jt(t);var r=void 0;if((t.mode&Ht)===Me?r=mb(n,t,mr):(Iv(t),r=mb(n,t,mr),_c(t,!1)),Dn(),r!==null){nn=r;return}}else{var i=JR(n,t);if(i!==null){i.flags&=eT,nn=i;return}if((t.mode&Ht)!==Me){_c(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|=rs,a.subtreeFlags=Ae,a.deletions=null;else{Cn=Op,nn=null;return}}var u=t.sibling;if(u!==null){nn=u;return}t=a,nn=t}while(t!==null);Cn===Ur&&(Cn=Ab)}function eo(e,t,n){var a=Pa(),r=Vn.transition;try{Vn.transition=null,On(Ta),iD(e,t,n,a)}finally{Vn.transition=r,On(a)}return null}function iD(e,t,n,a){do Fr();while(pi!==null);if(hD(),(mt&(Bn|Ua))!==Tn)throw new Error("Should not already be working.");var r=e.finishedWork,i=e.finishedLanes;if(bT(i),r===null)return uh(),null;if(i===B&&d("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=B,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=Ln;var o=tt(r.lanes,r.childLanes);QT(e,o),e===na&&(na=null,nn=null,En=B),((r.subtreeFlags&yo)!==Ae||(r.flags&yo)!==Ae)&&(Zi||(Zi=!0,Hp=n,qp(Ai,function(){return Fr(),null})));var l=(r.subtreeFlags&(Af|Nf|Tl|yo))!==Ae,u=(r.flags&(Af|Nf|Tl|yo))!==Ae;if(l||u){var f=Vn.transition;Vn.transition=null;var v=Pa();On(Ta);var S=mt;mt|=Ua,Lp.current=null,rw(e,r),Hg(),gw(e,r,i),yx(e.containerInfo),e.current=r,_T(i),bw(r,e,i),kT(),lT(),mt=S,On(v),Vn.transition=f}else e.current=r,Hg();var b=Zi;if(Zi?(Zi=!1,pi=e,Nu=i):(Jo=0,Vc=null),o=e.pendingLanes,o===B&&(Zo=null),b||Qb(e.current,!1),pT(r.stateNode,a),$a&&e.memoizedUpdaters.clear(),zw(),ha(e,kn()),t!==null)for(var w=e.onRecoverableError,_=0;_<t.length;_++){var N=t[_],re=N.stack,De=N.digest;w(N.value,{componentStack:re,digest:De})}if(zc){zc=!1;var Se=jp;throw jp=null,Se}return Sa(Nu,$e)&&e.tag!==ri&&Fr(),o=e.pendingLanes,Sa(o,$e)?(cR(),e===zp?ju++:(ju=0,zp=e)):ju=0,ii(),uh(),null}function Fr(){if(pi!==null){var e=xh(Nu),t=eE(_r,e),n=Vn.transition,a=Pa();try{return Vn.transition=null,On(t),lD()}finally{On(a),Vn.transition=n}}return!1}function oD(e){Up.push(e),Zi||(Zi=!0,qp(Ai,function(){return Fr(),null}))}function lD(){if(pi===null)return!1;var e=Hp;Hp=null;var t=pi,n=Nu;if(pi=null,Nu=B,(mt&(Bn|Ua))!==Tn)throw new Error("Cannot flush passive effects while already rendering.");Fp=!0,Fc=!1,MT(n);var a=mt;mt|=Ua,ww(t.current),Ew(t,t.current,n,e);{var r=Up;Up=[];for(var i=0;i<r.length;i++){var o=r[i];uw(t,o)}}LT(),Qb(t.current,!0),mt=a,ii(),Fc?t===Vc?Jo++:(Jo=0,Vc=t):Jo=0,Fp=!1,Fc=!1,mT(t);{var l=t.current.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}return!0}function qb(e){return Zo!==null&&Zo.has(e)}function uD(e){Zo===null?Zo=new Set([e]):Zo.add(e)}function sD(e){zc||(zc=!0,jp=e)}var cD=sD;function Gb(e,t,n){var a=Xi(n,t),r=Wg(e,a,$e),i=li(e,r,$e),o=aa();i!==null&&(kl(i,$e,o),ha(i,o))}function Pt(e,t,n){if(tw(n),Fu(!1),e.tag===ue){Gb(e,e,n);return}var a=null;for(a=t;a!==null;){if(a.tag===ue){Gb(a,e,n);return}else if(a.tag===ne){var r=a.type,i=a.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&!qb(i)){var o=Xi(n,e),l=cp(a,o,$e),u=li(a,l,$e),f=aa();u!==null&&(kl(u,$e,f),ha(u,f));return}}a=a.return}d(`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=aa();Sh(e,n),SD(e),na===e&&Co(En,n)&&(Cn===ku||Cn===jc&&hh(En)&&kn()-Np<Nb?Ji(e,B):Hc=tt(Hc,n)),ha(e,r)}function Xb(e,t){t===Ln&&(t=Ww(e));var n=aa(),a=va(e,t);a!==null&&(kl(a,t,n),ha(a,n))}function dD(e){var t=e.memoizedState,n=Ln;t!==null&&(n=t.retryLane),Xb(e,n)}function vD(e,t){var n=Ln,a;switch(e.tag){case ye:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case Dt: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),Xb(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(ju>Pw)throw ju=0,zp=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.");Jo>Yw&&(Jo=0,Vc=null,d("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(){Ia.flushLegacyContextWarning(),Ia.flushPendingUnsafeLifecycleWarnings()}function Qb(e,t){Jt(e),Wc(e,Xr,jw),t&&Wc(e,Of,Uw),Wc(e,Xr,Aw),t&&Wc(e,Of,Nw),Dn()}function Wc(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==Ae?a=a.child:((a.flags&t)!==Ae&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var Ic=null;function Kb(e){{if((mt&Bn)!==Tn||!(e.mode&pt))return;var t=e.tag;if(t!==gt&&t!==ue&&t!==ne&&t!==ve&&t!==_e&&t!==U&&t!==K)return;var n=Xe(e)||"ReactComponent";if(Ic!==null){if(Ic.has(n))return;Ic.add(n)}else Ic=new Set([n]);var a=Zn;try{Jt(e),d("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?Jt(e):Dn()}}}var Yp;{var yD=null;Yp=function(e,t,n){var a=i0(yD,t);try{return cb(e,t,n)}catch(i){if(k1()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(Js(),dg(),hb(e,t),i0(t,a),t.mode&Ht&&Iv(t),wf(null,cb,null,e,t,n),KS()){var r=Df();typeof r=="object"&&r!==null&&r._suppressLogging&&typeof i=="object"&&i!==null&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}}}var Zb=!1,Wp;Wp=new Set;function gD(e){if(Ei&&!lR())switch(e.tag){case ve:case _e:case K:{var t=nn&&Xe(nn)||"Unknown",n=t;if(!Wp.has(n)){Wp.add(n);var a=Xe(e)||"Unknown";d("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 ne:{Zb||(d("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Zb=!0);break}}}function zu(e,t){if($a){var n=e.memoizedUpdaters;n.forEach(function(a){Th(e,a,t)})}}var Ip={};function qp(e,t){{var n=er.current;return n!==null?(n.push(t),Ip):lh(e,t)}}function Jb(e){if(e!==Ip)return iT(e)}function e0(){return er.current!==null}function bD(e){{if(e.mode&pt){if(!Lb())return}else if(!Vw()||mt!==Tn||e.tag!==ve&&e.tag!==_e&&e.tag!==K)return;if(er.current===null){var t=Zn;try{Jt(e),d(`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`,Xe(e))}finally{t?Jt(e):Dn()}}}}function SD(e){e.tag!==ri&&Lb()&&er.current===null&&d(`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 Fu(e){Hb=e}var Ha=null,el=null,TD=function(e){Ha=e};function tl(e){{if(Ha===null)return e;var t=Ha(e);return t===void 0?e:t.current}}function Gp(e){return tl(e)}function Xp(e){{if(Ha===null)return e;var t=Ha(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=tl(e.render);if(e.render!==n){var a={$$typeof:m,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function t0(e,t){{if(Ha===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 ne:{typeof a=="function"&&(r=!0);break}case ve:{(typeof a=="function"||i===M)&&(r=!0);break}case _e:{(i===m||i===M)&&(r=!0);break}case U:case K:{(i===T||i===M)&&(r=!0);break}default:return!1}if(r){var o=Ha(n);if(o!==void 0&&o===Ha(a))return!0}return!1}}function n0(e){{if(Ha===null||typeof WeakSet!="function")return;el===null&&(el=new WeakSet),el.add(e)}}var ED=function(e,t){{if(Ha===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Fr(),zr(function(){Qp(e.current,a,n)})}},CD=function(e,t){{if(e.context!==xa)return;Fr(),zr(function(){Vu(t,e,null,null)})}};function Qp(e,t,n){{var a=e.alternate,r=e.child,i=e.sibling,o=e.tag,l=e.type,u=null;switch(o){case ve:case K:case ne:u=l;break;case _e:u=l.render;break}if(Ha===null)throw new Error("Expected resolveFamily to be set during hot reload.");var f=!1,v=!1;if(u!==null){var S=Ha(u);S!==void 0&&(n.has(S)?v=!0:t.has(S)&&(o===ne?v=!0:f=!0))}if(el!==null&&(el.has(e)||a!==null&&el.has(a))&&(v=!0),v&&(e._debugNeedsRemount=!0),v||f){var b=va(e,$e);b!==null&&xn(b,e,$e,Gt)}r!==null&&!v&&Qp(r,t,n),i!==null&&Qp(i,t,n)}}var xD=function(e,t){{var n=new Set,a=new Set(t.map(function(r){return r.current}));return Kp(e.current,a,n),n}};function Kp(e,t,n){{var a=e.child,r=e.sibling,i=e.tag,o=e.type,l=null;switch(i){case ve:case K:case ne:l=o;break;case _e:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?RD(e,n):a!==null&&Kp(a,t,n),r!==null&&Kp(r,t,n)}}function RD(e,t){{var n=wD(e,t);if(n)return;for(var a=e;;){switch(a.tag){case ee:t.add(a.stateNode);return;case Le:t.add(a.stateNode.containerInfo);return;case ue: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===ee)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 Zp;{Zp=!1;try{var a0=Object.preventExtensions({})}catch{Zp=!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=Ae,this.subtreeFlags=Ae,this.deletions=null,this.lanes=B,this.childLanes=B,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,!Zp&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Ra=function(e,t,n,a){return new DD(e,t,n,a)};function Jp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function _D(e){return typeof e=="function"&&!Jp(e)&&e.defaultProps===void 0}function kD(e){if(typeof e=="function")return Jp(e)?ne:ve;if(e!=null){var t=e.$$typeof;if(t===m)return _e;if(t===T)return U}return gt}function to(e,t){var n=e.alternate;n===null?(n=Ra(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=Ae,n.subtreeFlags=Ae,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&Rr,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 gt:case ve:case K:n.type=tl(e.type);break;case ne:n.type=Gp(e.type);break;case _e:n.type=Xp(e.type);break}return n}function MD(e,t){e.flags&=Rr|_n;var n=e.alternate;if(n===null)e.childLanes=B,e.lanes=t,e.child=null,e.subtreeFlags=Ae,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=Ae,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===Ps?(a=pt,t===!0&&(a|=on,a|=ir)):a=Me,$a&&(a|=Ht),Ra(ue,null,null,a)}function em(e,t,n,a,r,i){var o=gt,l=e;if(typeof e=="function")Jp(e)?(o=ne,l=Gp(l)):l=tl(l);else if(typeof e=="string")o=ee;else e:switch(e){case Da:return yi(n.children,r,i,t);case gr:o=W,r|=on,(r&pt)!==Me&&(r|=ir);break;case y:return OD(n,r,i,t);case g:return AD(n,r,i,t);case E:return ND(n,r,i,t);case Ue:return r0(n,r,i,t);case $:case L:case Ce:case et:case z:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case F:o=it;break e;case c:o=Tt;break e;case m:o=_e,l=Xp(l);break e;case T:o=U;break e;case M:o=At,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?Xe(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 v=Ra(o,n,t,r);return v.elementType=e,v.type=l,v.lanes=i,v._debugOwner=a,v}function tm(e,t,n){var a=null;a=e._owner;var r=e.type,i=e.key,o=e.props,l=em(r,i,o,a,t,n);return l._debugSource=e._source,l._debugOwner=e._owner,l}function yi(e,t,n,a){var r=Ra(Ge,e,a,t);return r.lanes=n,r}function OD(e,t,n,a){typeof e.id!="string"&&d('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var r=Ra(Qe,e,a,t|Ht);return r.elementType=y,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function AD(e,t,n,a){var r=Ra(ye,e,a,t);return r.elementType=g,r.lanes=n,r}function ND(e,t,n,a){var r=Ra(Dt,e,a,t);return r.elementType=E,r.lanes=n,r}function r0(e,t,n,a){var r=Ra(I,e,a,t);r.elementType=Ue,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function nm(e,t,n){var a=Ra(Fe,e,null,t);return a.lanes=n,a}function jD(){var e=Ra(ee,null,null,Me);return e.elementType="DELETED",e}function UD(e){var t=Ra(ot,null,null,Me);return t.stateNode=e,t}function am(e,t,n){var a=e.children!==null?e.children:[],r=Ra(Le,a,e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function i0(e,t){return e===null&&(e=Ra(gt,null,null,Me)),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=zd,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Ln,this.eventTimes=ld(B),this.expirationTimes=ld(Gt),this.pendingLanes=B,this.suspendedLanes=B,this.pingedLanes=B,this.expiredLanes=B,this.mutableReadLanes=B,this.finishedLanes=B,this.entangledLanes=B,this.entanglements=ld(B),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<zf;o++)i.push(new Set)}switch(t){case Ps:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case ri:this._debugRootType=n?"hydrate()":"render()";break}}function o0(e,t,n,a,r,i,o,l,u,f){var v=new HD(e,t,n,l,u),S=LD(t,i);v.current=S,S.stateNode=v;{var b={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};S.memoizedState=b}return hv(S),v}var rm="18.3.1";function zD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Pn(a),{$$typeof:wn,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var im,om;im=!1,om={};function l0(e){if(!e)return xa;var t=po(e),n=S1(t);if(t.tag===ne){var a=t.type;if(ur(a))return Ny(t,a,n)}return n}function FD(e,t){{var n=po(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=rh(n);if(r===null)return null;if(r.mode&on){var i=Xe(n)||"Component";if(!om[i]){om[i]=!0;var o=Zn;try{Jt(r),n.mode&on?d("%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):d("%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?Jt(o):Dn()}}}return r.stateNode}}function u0(e,t,n,a,r,i,o,l){var u=!1,f=null;return o0(e,t,u,f,n,a,r,i,o)}function s0(e,t,n,a,r,i,o,l,u,f){var v=!0,S=o0(n,a,v,e,r,i,o,l,u);S.context=l0(null);var b=S.current,w=aa(),_=mi(b),N=Nr(w,_);return N.callback=t??null,li(b,N,_),Iw(S,_,w),S}function Vu(e,t,n,a){vT(t,e);var r=t.current,i=aa(),o=mi(r);AT(o);var l=l0(n);t.context===null?t.context=l:t.pendingContext=l,Ei&&Zn!==null&&!im&&(im=!0,d(`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.`,Xe(Zn)||"Unknown"));var u=Nr(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&d("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var f=li(r,u,o);return f!==null&&(xn(f,r,o,i),rc(f,r,o)),o}function qc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case ee:return t.child.stateNode;default:return t.child.stateNode}}function VD(e){switch(e.tag){case ue:{var t=e.stateNode;if(vs(t)){var n=$T(t);Qw(t,n)}break}case ye:{zr(function(){var r=va(e,$e);if(r!==null){var i=aa();xn(r,e,$e,i)}});var a=$e;lm(e,a);break}}}function c0(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=GT(n.retryLane,t))}function lm(e,t){c0(e,t);var n=e.alternate;n&&c0(n,t)}function BD(e){if(e.tag===ye){var t=Rl,n=va(e,t);if(n!==null){var a=aa();xn(n,e,t,a)}lm(e,t)}}function $D(e){if(e.tag===ye){var t=mi(e),n=va(e,t);if(n!==null){var a=aa();xn(n,e,t,a)}lm(e,t)}}function f0(e){var t=rT(e);return t===null?null:t.stateNode}var d0=function(e){return null};function PD(e){return d0(e)}var v0=function(e){return!1};function YD(e){return v0(e)}var p0=null,m0=null,h0=null,y0=null,g0=null,b0=null,S0=null,T0=null,E0=null;{var C0=function(e,t,n){var a=t[n],r=st(e)?e.slice():Ve({},e);return n+1===t.length?(st(r)?r.splice(a,1):delete r[a],r):(r[a]=C0(e[a],t,n+1),r)},x0=function(e,t){return C0(e,t,0)},R0=function(e,t,n,a){var r=t[a],i=st(e)?e.slice():Ve({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],st(i)?i.splice(r,1):delete i[r]}else i[r]=R0(e[r],t,n,a+1);return i},w0=function(e,t,n){if(t.length!==n.length){ce("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){ce("copyWithRename() expects paths to be the same except for the deepest key");return}return R0(e,t,n,0)},D0=function(e,t,n,a){if(n>=t.length)return a;var r=t[n],i=st(e)?e.slice():Ve({},e);return i[r]=D0(e[r],t,n+1,a),i},_0=function(e,t,n){return D0(e,t,0,n)},um=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};p0=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=_0(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Ve({},e.memoizedProps);var o=va(e,$e);o!==null&&xn(o,e,$e,Gt)}},m0=function(e,t,n){var a=um(e,t);if(a!==null){var r=x0(a.memoizedState,n);a.memoizedState=r,a.baseState=r,e.memoizedProps=Ve({},e.memoizedProps);var i=va(e,$e);i!==null&&xn(i,e,$e,Gt)}},h0=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=w0(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Ve({},e.memoizedProps);var o=va(e,$e);o!==null&&xn(o,e,$e,Gt)}},y0=function(e,t,n){e.pendingProps=_0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=va(e,$e);a!==null&&xn(a,e,$e,Gt)},g0=function(e,t){e.pendingProps=x0(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=va(e,$e);n!==null&&xn(n,e,$e,Gt)},b0=function(e,t,n){e.pendingProps=w0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=va(e,$e);a!==null&&xn(a,e,$e,Gt)},S0=function(e){var t=va(e,$e);t!==null&&xn(t,e,$e,Gt)},T0=function(e){d0=e},E0=function(e){v0=e}}function WD(e){var t=rh(e);return t===null?null:t.stateNode}function ID(e){return null}function qD(){return Zn}function GD(e){var t=e.findFiberByHostInstance,n=Ee.ReactCurrentDispatcher;return dT({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:p0,overrideHookStateDeletePath:m0,overrideHookStateRenamePath:h0,overrideProps:y0,overridePropsDeletePath:g0,overridePropsRenamePath:b0,setErrorHandler:T0,setSuspenseHandler:E0,scheduleUpdate:S0,currentDispatcherRef:n,findHostInstanceByFiber:WD,findFiberByHostInstance:t||ID,findHostInstancesForRefresh:xD,scheduleRefresh:ED,scheduleRoot:CD,setRefreshHandler:TD,getCurrentFiber:qD,reconcilerVersion:rm})}var k0=typeof reportError=="function"?reportError:function(e){console.error(e)};function sm(e){this._internalRoot=e}Gc.prototype.render=sm.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?d("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Xc(arguments[1])?d("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"&&d("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(n.nodeType!==pn){var a=f0(t.current);a&&a.parentNode!==n&&d("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.")}}Vu(e,t,null,null)},Gc.prototype.unmount=sm.prototype.unmount=function(){typeof arguments[0]=="function"&&d("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;Bb()&&d("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."),zr(function(){Vu(null,e,null,null)}),ky(t)}};function XD(e,t){if(!Xc(e))throw new Error("createRoot(...): Target container is not a DOM element.");M0(e);var n=!1,a=!1,r="",i=k0;t!=null&&(t.hydrate?ce("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Rn&&d(`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=u0(e,Ps,null,n,a,r,i);Us(o.current,e);var l=e.nodeType===pn?e.parentNode:e;return Il(l),new sm(o)}function Gc(e){this._internalRoot=e}function QD(e){e&&fE(e)}Gc.prototype.unstable_scheduleHydration=QD;function KD(e,t,n){if(!Xc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");M0(e),t===void 0&&d("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=k0;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var f=s0(t,null,e,Ps,a,i,o,l,u);if(Us(f.current,e),Il(e),r)for(var v=0;v<r.length;v++){var S=r[v];tR(f,S)}return new Gc(f)}function Xc(e){return!!(e&&(e.nodeType===fa||e.nodeType===xr||e.nodeType===mf))}function Bu(e){return!!(e&&(e.nodeType===fa||e.nodeType===xr||e.nodeType===mf||e.nodeType===pn&&e.nodeValue===" react-mount-point-unstable "))}function M0(e){e.nodeType===fa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&d("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."),au(e)&&(e._reactRootContainer?d("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):d("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 ZD=Ee.ReactCurrentOwner,L0;L0=function(e){if(e._reactRootContainer&&e.nodeType!==pn){var t=f0(e._reactRootContainer.current);t&&t.parentNode!==e&&d("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=cm(e),r=!!(a&&ni(a));r&&!n&&d("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===fa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&d("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 cm(e){return e?e.nodeType===xr?e.documentElement:e.firstChild:null}function O0(){}function JD(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var b=qc(o);i.call(b)}}var o=s0(t,a,e,ri,null,!1,!1,"",O0);e._reactRootContainer=o,Us(o.current,e);var l=e.nodeType===pn?e.parentNode:e;return Il(l),zr(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var f=a;a=function(){var b=qc(v);f.call(b)}}var v=u0(e,ri,null,!1,!1,"",O0);e._reactRootContainer=v,Us(v.current,e);var S=e.nodeType===pn?e.parentNode:e;return Il(S),zr(function(){Vu(t,v,n,a)}),v}}function e_(e,t){e!==null&&typeof e!="function"&&d("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Qc(e,t,n,a,r){L0(n),e_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=JD(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=qc(o);l.call(u)}}Vu(t,o,e,r)}return qc(o)}var A0=!1;function t_(e){{A0||(A0=!0,d("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=ZD.current;if(t!==null&&t.stateNode!==null){var n=t.stateNode._warnedAboutRefsInRender;n||d("%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.",Rt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===fa?e:FD(e,"findDOMNode")}function n_(e,t,n){if(d("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"),!Bu(t))throw new Error("Target container is not a DOM element.");{var a=au(t)&&t._reactRootContainer===void 0;a&&d("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 Qc(null,e,t,!0,n)}function a_(e,t,n){if(d("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"),!Bu(t))throw new Error("Target container is not a DOM element.");{var a=au(t)&&t._reactRootContainer===void 0;a&&d("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 Qc(null,e,t,!1,n)}function r_(e,t,n,a){if(d("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"),!Bu(n))throw new Error("Target container is not a DOM element.");if(e==null||!ZS(e))throw new Error("parentComponent must be a valid React Component");return Qc(e,t,n,!1,a)}var N0=!1;function i_(e){if(N0||(N0=!0,d("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")),!Bu(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=au(e)&&e._reactRootContainer===void 0;t&&d("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=cm(e),a=n&&!ni(n);a&&d("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return zr(function(){Qc(null,null,e,!1,function(){e._reactRootContainer=null,ky(e)})}),!0}else{{var r=cm(e),i=!!(r&&ni(r)),o=e.nodeType===fa&&Bu(e.parentNode)&&!!e.parentNode._reactRootContainer;i&&d("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(VD),aE(BD),rE($D),iE(Pa),oE(ZT),(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")&&d("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"),BS(lx),YS(Bp,Kw,zr);function o_(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!Xc(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 fm={usingClientEntryPoint:!1,Events:[ni,Oo,Hs,Wm,Im,Bp]};function u_(e,t){return fm.usingClientEntryPoint||d('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 fm.usingClientEntryPoint||d('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 Bb()&&d("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."),zr(e)}var f_=GD({findFiberByHostInstance:Vi,bundleType:1,version:rm,rendererPackageName:"react-dom"});if(!f_&&yt&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var j0=window.location.protocol;/^(https?|file):$/.test(j0)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(j0==="file:"?`
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}oa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fm,oa.createPortal=o_,oa.createRoot=u_,oa.findDOMNode=t_,oa.flushSync=c_,oa.hydrate=n_,oa.hydrateRoot=s_,oa.render=a_,oa.unmountComponentAtNode=i_,oa.unstable_batchedUpdates=Bp,oa.unstable_renderSubtreeIntoContainer=l_,oa.version=rm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),oa}hm.exports=V0();var B0=hm.exports,Sm,Tm=B0;{var Em=Tm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Sm=function(k,R){Em.usingClientEntryPoint=!0;try{return Tm.createRoot(k,R)}finally{Em.usingClientEntryPoint=!1}}}const V=k=>{if(isNaN(k))return"00:00:00.000";const R=Math.floor(k/3600),Ee=Math.floor(k%3600/60),we=Math.floor(k%60),xe=Math.round(k%1*1e3),ce=String(R).padStart(2,"0"),d=String(Ee).padStart(2,"0"),X=String(we).padStart(2,"0"),ve=String(xe).padStart(3,"0");return`${ce}:${d}:${X}.${ve}`},gi=k=>V(k),$0=k=>V(k),Re={debug:(...k)=>{},error:(...k)=>console.error(...k),warn:(...k)=>console.warn(...k),info:(...k)=>console.info(...k)};var J=Zc();const P0=({videoRef:k,currentTime:R,duration:Ee,isPlaying:we,isMuted:xe=!1,onPlayPause:ce,onSeek:d,onToggleMute:X})=>{var ie;const ve=J.useRef(null),[ne,gt]=J.useState(!1),[ue,Le]=J.useState(!1),[ee,Fe]=J.useState(null),[Ge,W]=J.useState(!1),Tt=J.useRef(!1),[it,_e]=J.useState({x:0}),[Qe,ye]=J.useState(0),U=typeof window<"u"&&((ie=window.MEDIA_DATA)==null?void 0:ie.videoUrl)||"/videos/sample-video.mp4";J.useEffect(()=>{if(gt((()=>{const q=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test(q)&&!window.MSStream})()),typeof window<"u"){const q=localStorage.getItem("video_initialized")==="true";Le(q)}},[]),J.useEffect(()=>{we&&!ue&&(Le(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[we,ue]),J.useEffect(()=>{const pe=k.current;if(!pe)return;pe.setAttribute("playsinline","true"),pe.setAttribute("webkit-playsinline","true"),pe.setAttribute("x-webkit-airplay","allow");const q=()=>{Tt.current||(Fe(pe.currentTime),typeof window<"u"&&(window.lastSeekedPosition=pe.currentTime))},G=()=>{ne&&(Le(!0),localStorage.setItem("video_initialized","true"))},fe=()=>{};return pe.addEventListener("timeupdate",q),pe.addEventListener("play",G),pe.addEventListener("pause",fe),()=>{pe.removeEventListener("timeupdate",q),pe.removeEventListener("play",G),pe.removeEventListener("pause",fe)}},[k,ne,Tt]),J.useEffect(()=>{Fe(R)},[R]);const K=Ee>0?R/Ee*100:0,At=pe=>{pe.preventDefault(),W(!0),Tt.current=!0,bt(pe);const q=fe=>{Tt.current&&bt(fe)},G=()=>{W(!1),Tt.current=!1,document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",G)};document.addEventListener("mousemove",q),document.addEventListener("mouseup",G)},bt=pe=>{if(!ve.current)return;const q=ve.current.getBoundingClientRect(),G=Math.max(0,Math.min(1,(pe.clientX-q.left)/q.width)),fe=Ee*G;_e({x:pe.clientX}),ye(fe),Fe(fe),typeof window<"u"&&(window.lastSeekedPosition=fe),d(fe)},ot=pe=>{if(!ve.current||!pe.touches[0])return;pe.preventDefault(),W(!0),Tt.current=!0,Dt(pe);const q=fe=>{Tt.current&&Dt(fe)},G=()=>{W(!1),Tt.current=!1,document.removeEventListener("touchmove",q),document.removeEventListener("touchend",G),document.removeEventListener("touchcancel",G)};document.addEventListener("touchmove",q,{passive:!1}),document.addEventListener("touchend",G),document.addEventListener("touchcancel",G)},Dt=pe=>{if(!ve.current)return;const q="touches"in pe?pe.touches[0]:null;if(!q)return;pe.preventDefault();const G=ve.current.getBoundingClientRect(),fe=Math.max(0,Math.min(1,(q.clientX-G.left)/G.width)),dt=Ee*fe;_e({x:q.clientX}),ye(dt),Fe(dt),typeof window<"u"&&(window.lastSeekedPosition=dt),d(dt)},Te=pe=>{if(!Ge&&ve.current){const q=ve.current.getBoundingClientRect(),G=(pe.clientX-q.left)/q.width,fe=Ee*G;Fe(fe),typeof window<"u"&&(window.lastSeekedPosition=fe),d(fe)}},I=()=>{k.current&&(document.fullscreenElement?document.exitFullscreen():k.current.requestFullscreen())},Je=()=>{const pe=k.current;pe&&(pe.paused?ne&&ee!==null&&ee>0?(pe.currentTime=ee,setTimeout(()=>{k.current&&k.current.play().then(()=>{var q;Re.debug("iOS: Play started successfully at position:",(q=k.current)==null?void 0:q.currentTime),ce()}).catch(q=>{console.error("iOS: Error playing video:",q)})},50)):pe.play().then(()=>{ce()}).catch(q=>{console.error("Error playing video:",q)}):(pe.pause(),ce()))};return p.jsxs("div",{className:"video-player-container",children:[p.jsxs("video",{ref:k,preload:"auto",crossOrigin:"anonymous",onClick:Je,playsInline:!0,"webkit-playsinline":"true","x-webkit-airplay":"allow",controls:!1,muted:xe,children:[p.jsx("source",{src:U,type:"video/mp4"}),p.jsx("p",{children:"Your browser doesn't support HTML5 video."})]}),ne&&!ue&&!we&&p.jsx("div",{className:"ios-first-play-indicator",children:p.jsx("div",{className:"ios-play-message",children:"Tap Play to initialize video controls"})}),p.jsx("div",{className:`play-pause-indicator ${we?"pause-icon":"play-icon"}`}),p.jsxs("div",{className:"video-controls",children:[p.jsxs("div",{className:"video-time-display",children:[p.jsx("span",{className:"video-current-time",children:gi(R)}),p.jsxs("span",{className:"video-duration",children:["/ ",gi(Ee)]})]}),p.jsxs("div",{ref:ve,className:`video-progress ${Ge?"dragging":""}`,onClick:Te,onMouseDown:At,onTouchStart:ot,children:[p.jsx("div",{className:"video-progress-fill",style:{width:`${K}%`}}),p.jsx("div",{className:"video-scrubber",style:{left:`${K}%`}}),Ge&&p.jsx("div",{className:"video-time-tooltip",style:{left:`${it.x}px`,transform:"translateX(-50%)"},children:V(Qe)})]}),p.jsxs("div",{className:"video-controls-buttons",children:[X&&p.jsx("button",{className:"mute-button","aria-label":xe?"Unmute":"Mute",onClick:X,"data-tooltip":xe?"Unmute":"Mute",children:xe?p.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:[p.jsx("line",{x1:"1",y1:"1",x2:"23",y2:"23"}),p.jsx("path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12M15 9.34V4a3 3 0 0 0-5.94-.6"}),p.jsx("path",{d:"M17 16.95A7 7 0 0 1 5 12v-2m14 0v2a7 7 0 0 1-.11 1.23"}),p.jsx("line",{x1:"12",y1:"19",x2:"12",y2:"23"}),p.jsx("line",{x1:"8",y1:"23",x2:"16",y2:"23"})]}):p.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:[p.jsx("polygon",{points:"11 5 6 9 2 9 2 15 6 15 11 19 11 5"}),p.jsx("path",{d:"M19.07 4.93a10 10 0 0 1 0 14.14M15.54 8.46a5 5 0 0 1 0 7.07"})]})}),p.jsx("button",{className:"fullscreen-button","aria-label":"Fullscreen",onClick:I,"data-tooltip":"Toggle fullscreen",children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:p.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"})})})]})]})]})},tf=(k,R)=>{const Ee=Math.min(Math.max(k/(R||1),0),1),we=210,xe=40+Math.floor(Ee*20),ce=85+Math.floor(Ee*8);return`hsl(${we}, ${xe}%, ${ce}%)`},nf=async(k,R)=>new Promise(Ee=>{const we=document.createElement("canvas");we.width=10,we.height=10;const xe=we.getContext("2d");if(xe){const d=tf(R,k.duration);xe.fillStyle=d,xe.fillRect(0,0,we.width,we.height)}const ce=we.toDataURL("image/png",.5);Ee(ce)}),Pu=({isOpen:k,onClose:R,title:Ee,children:we,actions:xe})=>{if(J.useEffect(()=>{const d=X=>{X.key==="Escape"&&k&&R()};return document.addEventListener("keydown",d),k&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",d),document.body.style.overflow=""}},[k,R]),!k)return null;const ce=d=>{d.target===d.currentTarget&&R()};return p.jsx("div",{className:"modal-overlay",onClick:ce,children:p.jsxs("div",{className:"modal-container",onClick:d=>d.stopPropagation(),children:[p.jsxs("div",{className:"modal-header",children:[p.jsx("h2",{className:"modal-title",children:Ee}),p.jsx("button",{className:"modal-close-button",onClick:R,"aria-label":"Close modal",children:p.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:[p.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})})]}),p.jsx("div",{className:"modal-content",children:we}),xe&&p.jsx("div",{className:"modal-actions",children:xe})]})})},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%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",xm="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",Rm="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",Y0="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",W0="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",I0="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",q0="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",G0={color:"#007bff",textDecoration:"none",fontWeight:"bold","&:hover":{textDecoration:"underline",color:"#0056b3"}},wm=k=>{let ce,d;if(k<=25)if(k<=0)ce="0%",d="none";else{const ve=-50*((k-0)/25);ce=`${k}%`,d=`translateX(${ve}%)`}else if(k>=75)if(k>=100)ce="100%",d="translateX(-100%)";else{const ve=-50-50*((k-75)/25);ce=`${k}%`,d=`translateX(${ve}%)`}else ce=`${k}%`,d="translateX(-50%)";return{left:ce,transform:d}},X0=({currentTime:k,duration:R,thumbnails:Ee,trimStart:we,trimEnd:xe,splitPoints:ce,zoomLevel:d,clipSegments:X,selectedSegmentId:ve,onSelectedSegmentChange:ne,onSegmentUpdate:gt,onChapterSave:ue,onTrimStartChange:Le,onTrimEndChange:ee,onZoomChange:Fe,onSeek:Ge,videoRef:W,hasUnsavedChanges:Tt=!1,isIOSUninitialized:it=!1,isPlaying:_e,setIsPlaying:Qe,onPlayPause:ye,isPlayingSegments:U=!1})=>{const K=J.useRef(null),At=J.useRef(null),bt=J.useRef(null),[ot,Dt]=J.useState(null),Te=ve!==void 0?ve:ot,I=y=>{ne?ne(y):Dt(y)},[Je,ie]=J.useState(!1),[pe,q]=J.useState({x:0,y:0}),[G,fe]=J.useState(0),[dt,Mt]=J.useState(!1),[lt,Kt]=J.useState(30),[Lt,Ye]=J.useState(!1),[Ne,ze]=J.useState(null),[dn,Ze]=J.useState(0),[Yt,yt]=J.useState(!1),nt=J.useRef(null),[an,un]=J.useState(""),[sn,tn]=J.useState(!1),Yn=[...X].sort((y,F)=>y.startTime-F.startTime).find(y=>y.id===Te);J.useEffect(()=>{un(Yn&&Yn.chapterTitle||"")},[Te,Yn]);const la=y=>{un(y),tn(!0),Te&&gt&&gt(Te,{chapterTitle:y})},A=y=>{const F=y;let c=null,m=null,g=G;const E=()=>{const T=F<0?Math.max(0,g+F):Math.min(R,g+F);g=T;const M=Lt;if(Ge(T),fe(T),Ze(T),K.current){const L=K.current.getBoundingClientRect(),z=T/R*100,Ue=L.left+L.width*(z/100);q({x:Ue,y:L.top-10});const $=X.find(Ce=>T>=Ce.startTime&&T<=Ce.endTime);if($)I($.id),ie(!1);else{I(null);const Ce=hn(T);Kt(Ce),ie(!0)}}M&&W.current&&(W.current.play(),Ye(!0))};return{onMouseDown:T=>{T.stopPropagation(),T.preventDefault(),g=G,E(),c=setTimeout(()=>{m=setInterval(E,200)},750);const M=()=>{c&&(clearTimeout(c),c=null),m&&(clearInterval(m),m=null),document.removeEventListener("mouseup",M),document.removeEventListener("mouseleave",M)};document.addEventListener("mouseup",M),document.addEventListener("mouseleave",M)},onTouchStart:T=>{T.stopPropagation(),T.preventDefault(),g=G,E(),c=setTimeout(()=>{m=setInterval(E,200)},750);const M=()=>{c&&(clearTimeout(c),c=null),m&&(clearInterval(m),m=null),document.removeEventListener("touchend",M),document.removeEventListener("touchcancel",M)};document.addEventListener("touchend",M),document.addEventListener("touchcancel",M)},onClick:T=>{T.stopPropagation()}}},[Y,ae]=J.useState(!1),[me,je]=J.useState(!1),[Be,at]=J.useState(!1),[We,St]=J.useState(!1),[Zt,Z]=J.useState(""),[be,ke]=J.useState(""),[Ke,ut]=J.useState(""),[xt,Nt]=J.useState("chapters"),Xt=R>0?k/R*100:0,Vt=R>0?we/R*100:0,jt=R>0?xe/R*100:0,Bt=async()=>{var y;ae(!1),je(!0),Nt("chapters");try{const F=X.filter(c=>c.chapterTitle&&c.chapterTitle.trim()).map(c=>({name:c.chapterTitle||`Chapter ${c.id}`,from:V(c.startTime),to:V(c.endTime)}));if(F.length===0){ke("No chapters with titles found"),St(!0),je(!1);return}if(ue){await ue(F),je(!1),Z("Chapters saved successfully!");const c=typeof window<"u"&&((y=window.MEDIA_DATA)==null?void 0:y.mediaId)||null;c&&ut(`/view?m=${c}`),at(!0)}else ke("Chapter save function not available"),St(!0),je(!1)}catch(F){Re.error("Error saving chapters:",F),je(!1);const c=F instanceof Error?F.message:"An error occurred while saving chapters";ke(c),St(!0)}};J.useEffect(()=>{if(nt.current&&K.current&&d>1){const y=nt.current.clientWidth,F=K.current.clientWidth,c=k/R*F,m=Math.max(0,c-y/2);nt.current.scrollTo({left:m,behavior:"smooth"});const g=K.current.getBoundingClientRect();nt.current.getBoundingClientRect();const T=g.left-nt.current.scrollLeft+Xt/100*g.width;(Te!==null||Je)&&(q({x:T,y:g.top-10}),fe(k))}},[k,d,R,Te,Je,Xt]),J.useEffect(()=>{const y=W.current;if(!y||!Ne||!Lt||U)return;Re.debug("Segment boundary check ACTIVATED for segment:",Ne.id,"Start:",V(Ne.startTime),"End:",V(Ne.endTime));const F=()=>{const c=Ne.endTime-y.currentTime;if(Math.round(c*10)%10===0&&Re.debug("Segment playback - time remaining:",V(c),"Current:",V(y.currentTime),"End:",V(Ne.endTime),"ContinuePastBoundary:",Yt),y.currentTime>Ne.endTime){y.pause(),y.currentTime=Ne.endTime,Ye(!1),yt(!1),Re.debug("Passed segment end - setting back to exact boundary:",V(Ne.endTime));return}if(Ne.endTime-y.currentTime<.05)if(Yt)Re.debug("Continuing past segment boundary:",V(Ne.endTime)),y.currentTime>Ne.endTime&&(yt(!1),ze(null),sessionStorage.removeItem("continuingPastSegment"));else{y.pause(),y.currentTime=Ne.endTime,Ye(!1),Re.debug("Paused at segment end boundary:",V(Ne.endTime));const g=[...X].sort((E,T)=>E.startTime-T.startTime).find(E=>E.startTime>Ne.endTime);g&&Math.abs(g.startTime-Ne.endTime)<.1&&(Re.debug("Found adjacent next segment:",g.id),I(g.id),ze(g),Ze(g.startTime),fe(g.startTime),y.currentTime=g.startTime)}};return y.addEventListener("timeupdate",F),()=>{y.removeEventListener("timeupdate",F)}},[Ne,Lt,Yt,X]),J.useEffect(()=>{if(W.current)if(W.current.paused)W.current.paused&&Lt&&(Ze(k),fe(k),Ye(!1),Re.debug("Video paused at:",V(k)));else{Ze(k),fe(k),Te!==null&&Ye(!0);const y=X.find(m=>k>=m.startTime&&k<=m.endTime),F=k/R*100;if(K.current){const m=K.current.offsetWidth,g=F/100*m;q({x:g,y:K.current.getBoundingClientRect().top-10})}const c=sessionStorage.getItem("continuingPastSegment")==="true";if(y){const m=W.current,g=Ne&&Ne.id<0&&Lt;if((Ne==null?void 0:Ne.id)!==y.id&&!g&&!c&&!Yt&&(Re.debug(`Entered a new segment during playback: ${y.id}, setting as active`),ze(y),I(y.id),ie(!1),yt(!1),sessionStorage.removeItem("continuingPastSegment")),g&&m&&y){Re.debug(`CUTAWAY BOUNDARY REACHED: Current position ${V(m.currentTime)} at segment ${y.id} - STOPPING at boundary ${V(y.startTime)}`),m.pause(),setTimeout(()=>{if(W.current){W.current.currentTime=y.startTime,Ge(y.startTime),Ze(y.startTime),fe(y.startTime),yt(!1),I(y.id),ie(!1);const T=()=>{W.current&&(W.current.currentTime=y.startTime,Ge(y.startTime),Ze(y.startTime),fe(y.startTime),Re.debug(`Position corrected to exact segment boundary: ${V(W.current.currentTime)} (target: ${V(y.startTime)})`))};setTimeout(T,10),setTimeout(T,20),setTimeout(T,50),setTimeout(T,100),setTimeout(T,200),W.current.addEventListener("seeked",T),W.current.addEventListener("canplay",T),W.current.addEventListener("waiting",T),setTimeout(()=>{W.current&&(W.current.removeEventListener("seeked",T),W.current.removeEventListener("canplay",T),W.current.removeEventListener("waiting",T))},300)}},10),Ye(!1),ze(null);return}Ne===null&&Lt===!0||c||g?(Te!==y.id||Je)&&(Re.debug("Tooltip updated for segment during continued playback:",y.id,g?"(cutaway playback - keeping virtual segment)":""),I(y.id),ie(!1),!g&&sessionStorage.getItem("lastSegmentId")!==y.id.toString()&&sessionStorage.removeItem("continuingPastSegment")):((Ne==null?void 0:Ne.id)!==y.id||Je)&&(Re.debug("Playback moved into segment:",y.id),I(y.id),ze(y),ie(!1),sessionStorage.setItem("lastSegmentId",y.id.toString()))}else if(Ne!==null||!Je){I(null),ze(null);const m=hn(k);Kt(m),m>=.5?ie(!0):ie(!1)}}},[k,Lt,Ne,Te,X]),J.useEffect(()=>{const y=F=>{const c=F.target;dt&&!c.closest(".zoom-dropdown-container")&&Mt(!1)};return document.addEventListener("mousedown",y),()=>{document.removeEventListener("mousedown",y)}},[dt]),J.useEffect(()=>()=>{},[Te,Je,Lt]),J.useEffect(()=>{const y=At.current,F=bt.current,c=K.current;if(!y||!F||!c)return;const m=g=>E=>{E.preventDefault();const T=c.getBoundingClientRect();let M=!0,L=g?we:xe;const z=Ce=>new CustomEvent("trim-handle-event",{detail:{type:Ce,isStart:g}});document.dispatchEvent(z("drag-start"));const Ue=Ce=>{if(!M)return;const et=T.width,Wt=Math.max(0,Math.min(1,(Ce.clientX-T.left)/et))*R;typeof window<"u"&&(window.lastSeekedPosition=Wt),g?Wt<xe&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:Wt,isStart:!0,recordHistory:!1}})),L=Wt):Wt>we&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:Wt,isStart:!1,recordHistory:!1}})),L=Wt)},$=()=>{M=!1,document.removeEventListener("mousemove",Ue),document.removeEventListener("mouseup",$),g?document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:L,isStart:!0,recordHistory:!0,action:"adjust_trim_start"}})):document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:L,isStart:!1,recordHistory:!0,action:"adjust_trim_end"}})),document.dispatchEvent(z("drag-end"))};document.addEventListener("mousemove",Ue),document.addEventListener("mouseup",$)};return y.addEventListener("mousedown",m(!0)),F.addEventListener("mousedown",m(!1)),()=>{y.removeEventListener("mousedown",m(!0)),F.removeEventListener("mousedown",m(!1))}},[R,we,xe,Le,ee]);const tr=()=>{const y=Ee.length||10;return Array.from({length:y}).map((F,c)=>{const m=R/y,g=c*m,E=g+m,T=(g+E)/2,M=tf(T,R);return p.jsx("div",{className:"timeline-thumbnail",style:{width:`${100/y}%`,backgroundColor:M}},c)})},ya=()=>ce.map((y,F)=>{const c=y/R*100;return p.jsx("div",{className:"split-point",style:{left:`${c}%`}},F)}),hn=y=>{const c=[...X].sort((T,M)=>T.startTime-M.startTime),m=c.find(T=>T.startTime>y),g=[...c].reverse().find(T=>T.endTime<y);let E;return m?E=m.startTime-y:E=R-y,Re.debug("Space calculation:",{position:V(y),nextSegment:m?V(m.startTime):"none",prevSegment:g?V(g.endTime):"none",availableSpace:V(Math.max(.1,E))}),Math.max(.1,E)},ua=y=>{if(!K.current)return;const F=X.find(L=>{const z=y>=L.startTime&&y<=L.endTime,Ue=Math.abs(y-L.startTime)<.001,$=Math.abs(y-L.endTime)<.001;return z||Ue||$}),c=[...X].sort((L,z)=>L.startTime-z.startTime),m=c.find(L=>L.startTime>y),g=[...c].reverse().find(L=>L.endTime<y);if(F)I(F.id),ie(!1);else{const L=hn(y);Kt(L),I(null),ie(!0),Re.debug("Cutaway position:",{current:V(y),prevSegmentEnd:g?V(g.endTime):"none",nextSegmentStart:m?V(m.startTime):"none",availableSpace:V(L)})}const E=K.current.getBoundingClientRect(),T=y/R*100;let M;d>1&&nt.current?M=E.left-nt.current.scrollLeft+E.width*(T/100):M=E.left+E.width*(T/100),q({x:M,y:E.top-10})},Br=y=>{if(!K.current||!nt.current||it)return;const F=W.current&&!W.current.paused;yt(!1);const c=K.current.getBoundingClientRect();let m;if(d>1){const T=nt.current.scrollLeft,M=K.current.clientWidth;m=(y.clientX-c.left+T)/M}else m=(y.clientX-c.left)/c.width;const g=m*R;Re.debug("Timeline clicked at:",V(g),"distance from end:",V(R-g)),typeof window<"u"&&(window.lastSeekedPosition=g),Ge(g),fe(g),Ze(g);const E=X.find(T=>{const M=g>=T.startTime&&g<=T.endTime,L=Math.abs(g-T.startTime)<.01,z=Math.abs(g-T.endTime)<.01;return M||L||z});if(E&&ze(E),W.current)if(U&&F){if(E){const M=[...X].sort((L,z)=>L.startTime-z.startTime).findIndex(L=>L.id===E.id);if(M!==-1){const L=new CustomEvent("update-segment-index",{detail:{segmentIndex:M}});document.dispatchEvent(L),Re.debug(`Segments playback mode: updating segment index to ${M} for timeline click in segment ${E.id}`)}}W.current.play().then(()=>{Ye(!0)}).catch(T=>{console.error("Error resuming segments playback:",T),Ye(!1)})}else F&&!U&&W.current.play().then(()=>{Ye(!0)}).catch(T=>{console.error("Error resuming playback:",T),Ye(!1)});if(y.target===K.current||y.target.classList.contains("timeline-thumbnail"))if(E)I(E.id),ie(!1);else{I(null);const T=hn(g);Kt(T);let M;if(d>1){const $=c.left-nt.current.scrollLeft,Ce=g/R;M=$+Ce*c.width}else M=y.clientX;q({x:M,y:c.top-10}),ie(!0);const L=[...X].sort(($,Ce)=>$.startTime-Ce.startTime),z=[...L].reverse().find($=>$.endTime<g),Ue=L.find($=>$.startTime>g);Re.debug("Clicked in cutaway area:",{position:V(g),availableSpace:V(T),prevSegmentEnd:z?V(z.endTime):"none",nextSegmentStart:Ue?V(Ue.startTime):"none"})}},za=(y,F)=>c=>{if(c.preventDefault(),c.stopPropagation(),!K.current)return;K.current.getBoundingClientRect().width;const g=X.find(rn=>rn.id===y);if(!g)return;const E=g.startTime,T=g.endTime,M={...g};document.body.style.cursor="ew-resize";const L=document.createElement("div");L.style.position="fixed",L.style.top="0",L.style.left="0",L.style.width="100vw",L.style.height="100vh",L.style.zIndex="1000",L.style.cursor="ew-resize",document.body.appendChild(L);let z=!0,Ue=E,$=T;document.dispatchEvent(new CustomEvent("segment-drag-start",{detail:{segmentId:y}}));const Ce=rn=>{if(!z||!K.current)return;const Fa=K.current.getBoundingClientRect(),Ot=Math.max(0,Math.min(1,(rn-Fa.left)/Fa.width))*R,sa=F?Ot:E,nr=F?T:Ot;if(k>=sa&&k<=nr)I(y),ie(!1);else{I(null);const cn=hn(k);Kt(cn),ie(!0)}const Yr=X.filter(cn=>cn.id!==y);let ba=E,_a=T;if(F){ba=Math.min(Ot,T-.5);const ft=Yr.filter(Wn=>Wn.endTime<=E).sort((Wn,ar)=>ar.endTime-Wn.endTime)[0];ft&&ba<ft.endTime&&(ba=ft.endTime),ft&&Math.abs(ba-ft.endTime)<.3&&(ba=ft.endTime),Ue=ba}else{_a=Math.max(Ot,E+.5);const ft=Yr.filter(Wn=>Wn.startTime>=T).sort((Wn,ar)=>Wn.startTime-ar.startTime)[0];ft&&_a>ft.startTime&&(_a=ft.startTime),ft&&Math.abs(_a-ft.startTime)<.3&&(_a=ft.startTime),$=_a}const bi=X.map(cn=>cn.id===y?{...cn,startTime:ba,endTime:_a}:cn),Wr=new CustomEvent("update-segments",{detail:{segments:bi,recordHistory:!1}});if(document.dispatchEvent(Wr),Te===y&&W.current){const cn=W.current.currentTime,ft=bi.find(ca=>ca.id===y);if(ft){const ca=cn>=ft.startTime&&cn<=ft.endTime;Re.debug(`During drag - playhead at ${V(cn)} is ${ca?"inside":"outside"} segment (${V(ft.startTime)} - ${V(ft.endTime)})`),!ca&&Lt&&(W.current.pause(),Ye(!1),ze(null)),cn<ft.startTime?(Re.debug(`Adjusting display time to segment start: ${V(ft.startTime)}`),Ze(ft.startTime),fe(ft.startTime)):cn>ft.endTime&&(Re.debug(`Adjusting display time to segment end: ${V(ft.endTime)}`),Ze(ft.endTime),fe(ft.endTime))}}},et=()=>{if(!z)return;z=!1,document.removeEventListener("mousemove",rt),document.removeEventListener("mouseup",Wt),document.removeEventListener("touchmove",$t),document.removeEventListener("touchend",Ve),document.removeEventListener("touchcancel",Ve),document.body.style.cursor="",document.body.contains(L)&&document.body.removeChild(L);const rn=X.map(An=>An.id===y?{...An,startTime:Ue,endTime:$}:An),Fa=F?"adjust_segment_start":"adjust_segment_end";if(document.dispatchEvent(new CustomEvent("update-segments",{detail:{segments:rn,recordHistory:!0,action:Fa}})),Te===y&&W.current){const An=W.current.currentTime,Ot=rn.find(sa=>sa.id===y);if(Ot){const sa=An>=Ot.startTime&&An<=Ot.endTime;Re.debug(`Drag complete - playhead at ${V(An)} is ${sa?"inside":"outside"} segment (${V(Ot.startTime)} - ${V(Ot.endTime)})`);const nr=An>=M.startTime&&An<=M.endTime;sa?(!nr&&sa||nr&&sa&&(Ot.startTime!==M.startTime||Ot.endTime!==M.endTime))&&ze(Ot):(Lt&&(W.current.pause(),Ye(!1),ze(null),yt(!1)),An<Ot.startTime?(Re.debug(`Final adjustment - setting display time to segment start: ${V(Ot.startTime)}`),Ze(Ot.startTime),fe(Ot.startTime)):An>Ot.endTime&&(Re.debug(`Final adjustment - setting display time to segment end: ${V(Ot.endTime)}`),Ze(Ot.endTime),fe(Ot.endTime)))}}},rt=rn=>{Ce(rn.clientX)},Wt=()=>{et()},$t=rn=>{rn.touches.length>0&&(rn.preventDefault(),Ce(rn.touches[0].clientX))},Ve=()=>{et()};document.addEventListener("mousemove",rt,{passive:!1}),document.addEventListener("mouseup",Wt),document.addEventListener("touchmove",$t,{passive:!1}),document.addEventListener("touchend",Ve),document.addEventListener("touchcancel",Ve)},yr=y=>F=>{if(F.target.classList.contains("clip-segment-handle"))return;F.preventDefault(),F.stopPropagation(),yt(!1);const c=W.current&&!W.current.paused;I(y);const m=X.find($=>$.id===y);if(!m)return;const E=F.currentTarget.getBoundingClientRect(),T=(F.clientX-E.left)/E.width,M=m.startTime+T*(m.endTime-m.startTime),L=Math.max(m.startTime,Math.min(m.endTime,M));if(fe(L),Ze(L),W.current){const $=W.current.currentTime,Ce=$>=m.startTime&&$<=m.endTime;Re.debug(`Segment click - playhead at ${V($)} is ${Ce?"inside":"outside"} segment (${V(m.startTime)} - ${V(m.endTime)})`),Ce||(Math.abs($-m.startTime)<Math.abs($-m.endTime)?(Re.debug(`Playhead outside segment - adjusting to segment start: ${V(m.startTime)}`),Ze(m.startTime)):(Re.debug(`Playhead outside segment - adjusting to segment end: ${V(m.endTime)}`),Ze(m.endTime)))}if(Ge(L),W.current)if(U&&c){const Ce=[...X].sort((et,rt)=>et.startTime-rt.startTime).findIndex(et=>et.id===y);if(Ce!==-1){const et=new CustomEvent("update-segment-index",{detail:{segmentIndex:Ce}});document.dispatchEvent(et)}W.current.play().then(()=>{Ye(!0)}).catch(et=>{console.error("Error continuing segments playback after segment click:",et)})}else c&&!U&&(ze(m),yt(!1),W.current.play().then(()=>{Ye(!0)}).catch($=>{console.error("Error resuming playback after segment click:",$)}));const z=F.clientX,Ue=E.top-10;if(q({x:z,y:Ue}),d>1&&K.current&&nt.current){K.current.getBoundingClientRect();const $=K.current.clientWidth,Ce=nt.current.clientWidth,et=L/R*$,rt=Math.max(0,et-Ce/2);nt.current.scrollTo({left:rt,behavior:"smooth"}),setTimeout(()=>{if(K.current&&nt.current){const Wt=K.current.getBoundingClientRect(),Ve=L/R*$-nt.current.scrollLeft+Wt.left;q({x:Ve,y:Ue})}},300)}},$r=()=>X.map((y,F)=>{const c=y.startTime/R*100,m=(y.endTime-y.startTime)/R*100,g=tf((y.startTime+y.endTime)/2,R);return p.jsxs("div",{className:`clip-segment ${Te===y.id?"selected":""}`,style:{left:`${c}%`,width:`${m}%`,backgroundColor:g,borderWidth:"2px",borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.5)"},onClick:yr(y.id),children:[p.jsxs("div",{className:"clip-segment-info",children:[p.jsxs("div",{className:"clip-segment-name",children:["Segment ",F+1]}),p.jsxs("div",{className:"clip-segment-time",children:[gi(y.startTime)," - ",gi(y.endTime)]}),p.jsxs("div",{className:"clip-segment-duration",children:["Duration: ",gi(y.endTime-y.startTime)]})]}),U?null:p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"clip-segment-handle left",title:"Resize segment start",onMouseDown:E=>{E.stopPropagation(),za(y.id,!0)(E)},onTouchStart:E=>{E.stopPropagation(),za(y.id,!0)(E)}}),p.jsx("div",{className:"clip-segment-handle right",title:"Resize segment end",onMouseDown:E=>{E.stopPropagation(),za(y.id,!1)(E)},onTouchStart:E=>{E.stopPropagation(),za(y.id,!1)(E)}})]})]},y.id)});J.useEffect(()=>{const y=F=>{const{segmentId:c}=F.detail;if(X.filter(g=>g.id!==c).length===0){const g={id:Date.now(),name:"Full Video",startTime:0,endTime:R,thumbnail:""},E=new CustomEvent("update-segments",{detail:{segments:[g],recordHistory:!0,action:"create_full_video_segment"}});if(document.dispatchEvent(E),I(g.id),ie(!1),fe(k),Ze(k),ze(g),K.current){const T=K.current.getBoundingClientRect(),M=k/R*100,L=T.left+T.width*(M/100);q({x:L,y:T.top-10}),Re.debug("Created full video segment:",{id:g.id,duration:V(R),currentPosition:V(k)})}}else if(Te===c){if(!X.find(T=>T.id===c))return;const E=hn(k);if(I(null),ie(!0),Kt(E),K.current){const T=K.current.getBoundingClientRect(),M=k/R*100,L=T.left+T.width*(M/100);q({x:L,y:T.top-10}),Re.debug("Segment deleted, showing cutaway tooltip:",{position:V(k),availableSpace:V(E)})}}};return document.addEventListener("delete-segment",y),()=>{document.removeEventListener("delete-segment",y)}},[Te,X,k,R,K]),J.useEffect(()=>{const y=W.current;if(!y)return;const F=()=>{if(!W.current)return;const m=W.current,g=m.currentTime;yt(!1);let E=R,T=null,M=null;T=X.find(z=>{const Ue=g>=z.startTime&&g<=z.endTime,$=Math.abs(g-z.startTime)<.001,Ce=Math.abs(g-z.endTime)<.001;return Ue||$||Ce}),M=X.filter(z=>{const Ue=z.startTime>g,$=Math.abs(z.startTime-g)>.001;return Ue&&$}).sort((z,Ue)=>z.startTime-Ue.startTime)[0],T?(E=T.endTime,ze(T)):M&&(E=M.startTime);const L=()=>{if(!m)return;const z=m.currentTime;if(E-z<=.001||z>=E){m.pause();const $=()=>{m&&(m.currentTime=E,Ge(E),Ze(E),fe(E),Re.debug("Position verification:",{target:V(E),actual:V(m.currentTime),difference:Math.abs(m.currentTime-E).toFixed(3)}))};$(),setTimeout($,10),setTimeout($,20),setTimeout($,50),T?(I(T.id),ie(!1)):M?(I(M.id),ie(!1),ze(M)):(I(null),ie(!0),ze(null)),m.removeEventListener("timeupdate",L),Qe(!1),Ye(!1),yt(!1);return}};m.addEventListener("timeupdate",L),m.play().then(()=>{Qe(!0),Ye(!0),Re.debug("Playback started:",{from:V(g),to:V(E),currentSegment:T?`Segment ${T.id}`:"None",nextSegment:M?`Segment ${M.id}`:"None"})}).catch(z=>{console.error("Error playing video:",z)})},c=()=>{Ye(!1)};return y.addEventListener("play",F),y.addEventListener("pause",c),()=>{y.removeEventListener("play",F),y.removeEventListener("pause",c)}},[X,R,Ge]);const Pr=y=>{if(!K.current)return;const F=K.current.getBoundingClientRect(),m=(y.clientX-F.left)/F.width*R,g=Math.max(0,Math.min(R,m));typeof window<"u"&&(window.lastSeekedPosition=g)},[ga,Rn]=J.useState(!1),wn=J.useRef(!1),Da=y=>{if(it)return;y.stopPropagation(),y.preventDefault(),Rn(!0),wn.current=!0,ua(k);const F=m=>{if(!K.current||!nt.current)return;const g=K.current.getBoundingClientRect();let E;if(d>1){const M=nt.current.scrollLeft,L=K.current.clientWidth;E=(m.clientX-g.left+M)/L}else E=(m.clientX-g.left)/g.width;E=Math.max(0,Math.min(1,E));const T=E*R;fe(T),Ze(T),ua(T),typeof window<"u"&&(window.lastSeekedPosition=T),Ge(T)},c=()=>{Rn(!1),wn.current=!1,document.removeEventListener("mousemove",F),document.removeEventListener("mouseup",c)};document.addEventListener("mousemove",F),document.addEventListener("mouseup",c)},gr=y=>{if(it)return;y.stopPropagation(),y.preventDefault(),Rn(!0),wn.current=!0,ua(k);const F=m=>{if(!K.current||!nt.current||!m.touches[0])return;const g=K.current.getBoundingClientRect();let E;if(d>1){const M=nt.current.scrollLeft,L=K.current.clientWidth;E=(m.touches[0].clientX-g.left+M)/L}else E=(m.touches[0].clientX-g.left)/g.width;E=Math.max(0,Math.min(1,E));const T=E*R;fe(T),Ze(T),ua(T),typeof window<"u"&&(window.lastSeekedPosition=T),Ge(T)},c=()=>{Rn(!1),wn.current=!1,document.removeEventListener("touchmove",F),document.removeEventListener("touchend",c),document.removeEventListener("touchcancel",c)};document.addEventListener("touchmove",F,{passive:!1}),document.addEventListener("touchend",c),document.addEventListener("touchcancel",c)};return J.useEffect(()=>{},[Ke,xt,Be]),J.useEffect(()=>{let y,F;if(Be&&Ke){let c=10;y=setInterval(()=>{c--;const m=document.querySelector(".countdown");m&&(m.textContent=c.toString()),c<=0&&clearInterval(y)},1e3),F=setTimeout(()=>{window.location.href=Ke},1e4)}return()=>{y&&clearInterval(y),F&&clearTimeout(F)}},[Be,Ke]),J.useEffect(()=>{!Be&&Ke&&(window.location.href=Ke)},[Ke,xt,Be]),p.jsxs("div",{className:`timeline-container-card ${U?"segments-playback-mode":""}`,children:[p.jsxs("div",{className:"timeline-header",children:[p.jsx("div",{className:"timeline-title",children:p.jsx("span",{className:"timeline-title-text",children:"Timeline"})}),p.jsxs("div",{className:"duration-time",children:["Total Segments:"," ",p.jsx("span",{children:V(X.reduce((y,F)=>y+(F.endTime-F.startTime),0))})]})]}),p.jsx("div",{ref:nt,className:`timeline-scroll-container ${U?"segments-playback-mode":""}`,style:{overflow:d>1?"auto":"hidden"},children:p.jsxs("div",{ref:K,className:"timeline-container",onClick:Br,onMouseMove:Pr,style:{width:`${d*100}%`,cursor:"pointer"},children:[p.jsxs("div",{className:"timeline-marker",style:{left:`${Xt}%`},children:[p.jsx("div",{className:"timeline-marker-head",onClick:y=>{if(y.stopPropagation(),X.find(F=>k>=F.startTime&&k<=F.endTime),Te||Je){I(null),ie(!1);return}else ua(k),Re.debug("Opening tooltip at:",V(k))},children:p.jsx("span",{className:"timeline-marker-head-icon",children:Te||Je?"-":"+"})}),U?null:p.jsx("div",{className:`timeline-marker-drag ${ga?"dragging":""}`,onMouseDown:Da,onTouchStart:gr,children:p.jsx("span",{className:"timeline-marker-drag-icon",children:"⋮"})})]}),X.length===0&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"trim-line-marker",style:{left:`${Vt}%`},children:p.jsx("div",{ref:At,className:"trim-handle left"})}),p.jsx("div",{className:"trim-line-marker",style:{left:`${jt}%`},children:p.jsx("div",{ref:bt,className:"trim-handle right"})})]}),$r(),ya(),tr(),Te!==null&&p.jsxs("div",{className:`segment-tooltip two-row-tooltip ${U?"segments-playback-mode":""}`,style:{position:"absolute",...wm(Xt)},onClick:y=>{U&&(y.stopPropagation(),y.preventDefault())},children:[Te&&p.jsx("div",{className:"tooltip-chapter-editor",children:p.jsx("textarea",{className:"tooltip-chapter-input",placeholder:"Chapter Title",value:an,onChange:y=>la(y.target.value),rows:2,maxLength:200,onClick:y=>y.stopPropagation(),onMouseDown:y=>y.stopPropagation(),onMouseUp:y=>y.stopPropagation()})}),p.jsxs("div",{className:"tooltip-row",children:[p.jsx("button",{className:`tooltip-time-btn ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Seek -50ms (click or hold)",disabled:U,...U?{}:A(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),p.jsx("div",{className:`tooltip-time-display ${U?"disabled":""}`,style:{pointerEvents:U?"none":"auto",cursor:U?"not-allowed":"default",opacity:U?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:y=>{U&&(y.stopPropagation(),y.preventDefault())},children:V(dn)}),p.jsx("button",{className:`tooltip-time-btn ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Seek +50ms (click or hold)",disabled:U,...U?{}:A(.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"+50ms"})]}),p.jsxs("div",{className:"tooltip-row tooltip-actions",children:[p.jsx("button",{className:`tooltip-action-btn delete ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Delete segment",disabled:U,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},onClick:y=>{y.stopPropagation();const F=new CustomEvent("delete-segment",{detail:{segmentId:Te}});document.dispatchEvent(F)},children:p.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:[p.jsx("path",{d:"M3 6h18"}),p.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"}),p.jsx("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),p.jsx("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})}),p.jsx("button",{className:`tooltip-action-btn scissors ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Split segment at current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:U,onClick:y=>{y.stopPropagation();const F=new CustomEvent("split-segment",{detail:{segmentId:Te,time:G}});document.dispatchEvent(F)},children:p.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:[p.jsx("circle",{cx:"6",cy:"6",r:"3"}),p.jsx("circle",{cx:"6",cy:"18",r:"3"}),p.jsx("line",{x1:"20",y1:"4",x2:"8.12",y2:"15.88"}),p.jsx("line",{x1:"14.47",y1:"14.48",x2:"20",y2:"20"}),p.jsx("line",{x1:"8.12",y1:"8.12",x2:"12",y2:"12"})]})}),p.jsx("button",{className:`tooltip-action-btn play-from-start ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Play segment from beginning",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:U,onClick:y=>{y.stopPropagation();const F=X.find(c=>c.id===Te);if(F&&W.current){if(yt(!0),Math.abs(W.current.currentTime-F.endTime)<.05){Re.debug(`Already at end boundary (${V(W.current.currentTime)}), nudging position back slightly`);const c=Math.max(F.startTime,F.endTime-.1);W.current.currentTime=c,Ge(c),fe(c),Re.debug(`Position adjusted to ${V(c)}`)}else Ge(F.startTime),fe(F.startTime);ze(F),W.current.play().then(()=>{Ye(!0)}).catch(c=>{console.error("Error playing from beginning:",c)})}},children:p.jsx("img",{src:Rm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn ${_e?"pause":"play"} ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":_e?"Pause playback":"Play from current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:U,onClick:y=>{y.stopPropagation(),_e?W.current&&(W.current.pause(),Ye(!1),yt(!1)):ye()},children:_e?p.jsx("img",{src:xm,alt:"Pause",style:{width:"24px",height:"24px"}}):p.jsx("img",{src:Cm,alt:"Play",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn set-in ${U?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":U?"Disabled during preview":"Set start point at current position",disabled:U,onClick:y=>{if(y.stopPropagation(),X.find(c=>c.id===Te)){const c=X.map(g=>g.id===Te?{...g,startTime:G<g.endTime-.5?G:g.endTime-.5}:g),m=new CustomEvent("update-segments",{detail:{segments:c,recordHistory:!0,action:"adjust_start_time"}});document.dispatchEvent(m)}},children:p.jsx("img",{src:W0,alt:"Set start point",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn set-out ${U?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":U?"Disabled during preview":"Set end point at current position",disabled:U,onClick:y=>{if(y.stopPropagation(),X.find(c=>c.id===Te)){const c=X.map(g=>g.id===Te?{...g,endTime:G>g.startTime+.5?G:g.startTime+.5}:g),m=new CustomEvent("update-segments",{detail:{segments:c,recordHistory:!0,action:"adjust_end_time"}});document.dispatchEvent(m)}},children:p.jsx("img",{src:Y0,alt:"Set end point",style:{width:"24px",height:"24px"}})})]})]}),Je&&Te===null&&p.jsxs("div",{className:`empty-space-tooltip two-row-tooltip ${U?"segments-playback-mode":""}`,style:{position:"absolute",...wm(Xt)},onClick:y=>{U&&(y.stopPropagation(),y.preventDefault())},children:[p.jsxs("div",{className:"tooltip-row",children:[p.jsx("button",{className:`tooltip-time-btn ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Seek -50ms (click or hold)",disabled:U,...U?{}:A(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),p.jsx("div",{className:`tooltip-time-display ${U?"disabled":""}`,style:{pointerEvents:U?"none":"auto",cursor:U?"not-allowed":"default",opacity:U?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:y=>{U&&(y.stopPropagation(),y.preventDefault())},children:V(G)}),p.jsx("button",{className:`tooltip-time-btn ${U?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":U?"Disabled during preview":"Seek +50ms (click or hold)",disabled:U,...U?{}:A(.05),children:"+50ms"})]}),p.jsxs("div",{className:"tooltip-row tooltip-actions",children:[p.jsxs("button",{className:`tooltip-action-btn new-segment ${lt<.5||U?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":U?"Disabled during preview":lt<.5?"Not enough space for new segment":"Create new segment",disabled:lt<.5||U,onClick:async y=>{if(y.stopPropagation(),lt<.5)return;const F=G,c=F+lt,m={id:Date.now(),name:"segment",startTime:F,endTime:c,thumbnail:""},g=[...X,m],E=new CustomEvent("update-segments",{detail:{segments:g,recordHistory:!0,action:"create_segment"}});document.dispatchEvent(E),ie(!1),setTimeout(()=>{const T=g[g.length-1];T&&(I(T.id),Re.debug("Created and selected new segment:",T.id))},100)},children:[p.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:[p.jsx("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2"}),p.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"16"}),p.jsx("line",{x1:"8",y1:"12",x2:"16",y2:"12"})]}),p.jsx("span",{className:"tooltip-btn-text",children:"New"})]}),p.jsx("button",{className:`tooltip-action-btn play-from-start ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Play from beginning of cutaway",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:U,onClick:y=>{if(y.stopPropagation(),W.current){const F=G;yt(!0);const c=[...X].sort((z,Ue)=>z.startTime-Ue.startTime),m=[...c].reverse().find(z=>z.endTime<F),g=m?m.endTime+.025:0,E=c.find(z=>z.startTime>F),T=E?E.startTime:R,M={id:-999,name:"Cutaway",startTime:g,endTime:T,thumbnail:""};Ge(g),fe(g),Ye(!1),setTimeout(()=>{ze(M)},0);const L=()=>{if(!W.current)return;const z=W.current.currentTime,Ue=[...X].sort((rt,Wt)=>rt.startTime-Wt.startTime),$=Ue.find(rt=>rt.startTime>z-.3),Ce=$&&z>=$.startTime-.25&&z<=$.startTime+.1&&!Yt;$&&z>=$.startTime-.25&&z<=$.startTime+.1&&Re.debug(`Approaching boundary at ${V($.startTime)}, continuePastBoundary=${Yt}, willStop=${Ce}`);const et=Ue.find(rt=>z>=rt.startTime&&z<=rt.endTime);if(et&&(Ne==null?void 0:Ne.id)!==et.id){Re.debug(`Entered segment ${et.id} during cutaway playback`),ze(et),I(et.id),ie(!1),W.current.removeEventListener("timeupdate",L),yt(!1),sessionStorage.removeItem("continuingPastSegment");return}if(Ce&&$){Re.debug(`CUTAWAY MANUAL BOUNDARY CHECK: Current position ${V(z)} approaching segment at ${V($.startTime)} (distance: ${Math.abs(z-$.startTime).toFixed(3)}s) - STOPPING`),W.current.pause(),setTimeout(()=>{if(W.current){W.current.currentTime=$.startTime,Ge($.startTime),Ze($.startTime),fe($.startTime),yt(!1),I($.id),ie(!1),ze($);const rt=()=>{W.current&&(W.current.currentTime=$.startTime,Ge($.startTime),Ze($.startTime),fe($.startTime),Re.debug(`Position corrected to exact segment boundary: ${V(W.current.currentTime)} (target: ${V($.startTime)})`))};setTimeout(rt,10),setTimeout(rt,20),setTimeout(rt,50),setTimeout(rt,100),setTimeout(rt,200),W.current.addEventListener("seeked",rt),W.current.addEventListener("canplay",rt),W.current.addEventListener("waiting",rt),setTimeout(()=>{W.current&&(W.current.removeEventListener("seeked",rt),W.current.removeEventListener("canplay",rt),W.current.removeEventListener("waiting",rt))},300)}},10),Ye(!1),ze(null),W.current.removeEventListener("timeupdate",L);return}};W.current.addEventListener("timeupdate",L),setTimeout(()=>{W.current&&W.current.play().then(()=>{Ye(!0),Re.debug("CUTAWAY PLAYBACK STARTED:",V(g),"to",V(T),m?`(after segment ${m.id}, offset +25ms from ${V(m.endTime)})`:"(from video start)",E?`(will stop at segment ${E.id})`:"(will play to end)")}).catch(z=>{console.error("Error playing cutaway:",z)})},50)}},children:p.jsx("img",{src:Rm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn ${_e?"pause":"play"} ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":_e?"Pause playback":"Play from here until next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:U,onClick:y=>{y.stopPropagation(),_e?W.current&&(W.current.pause(),Ye(!1),yt(!1)):ye()},children:_e?p.jsx("img",{src:xm,alt:"Pause",style:{width:"24px",height:"24px"}}):p.jsx("img",{src:Cm,alt:"Play",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn segment-end ${U?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":U?"Disabled during preview":"Adjust end of previous segment",disabled:U,onClick:y=>{y.stopPropagation();const c=[...X].sort((m,g)=>m.startTime-g.startTime).filter(m=>m.endTime<=G).sort((m,g)=>g.endTime-m.endTime)[0];if(c){const m=X.map(E=>E.id===c.id?{...E,endTime:G}:E),g=new CustomEvent("update-segments",{detail:{segments:m,recordHistory:!0,action:"adjust_previous_end_time"}});document.dispatchEvent(g),Re.debug("Adjusted end of previous segment to:",V(G)),I(c.id),ie(!1)}else if(X.length>0){const m=[...X].sort((T,M)=>T.startTime-M.startTime);let g=!1,E=0;for(let T=0;T<m.length-1;T++){const M=m[T].endTime,L=m[T+1].startTime;if(G>M&&G<L){g=!0,E=M;break}}if(g){const T={id:Date.now(),name:"segment",startTime:E,endTime:G,thumbnail:""},M=[...X,T],L=new CustomEvent("update-segments",{detail:{segments:M,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(L),Re.debug("Created new segment in gap from",V(E),"to",V(G)),I(T.id),ie(!1)}else if(G<m[0].startTime){const T={id:Date.now(),name:"segment",startTime:0,endTime:G,thumbnail:""},M=[...X,T],L=new CustomEvent("update-segments",{detail:{segments:M,recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(L),Re.debug("Created new segment from start to:",V(G)),I(T.id),ie(!1)}else{const T=[...X].sort((M,L)=>L.endTime-M.endTime)[0];if(T&&T.endTime<R){const M=X.map(z=>z.id===T.id?{...z,endTime:R}:z),L=new CustomEvent("update-segments",{detail:{segments:M,recordHistory:!0,action:"extend_last_segment"}});document.dispatchEvent(L),I(T.id),ie(!1)}}}else if(G>0){const m={id:Date.now(),name:"segment",startTime:0,endTime:G,thumbnail:""},g=new CustomEvent("update-segments",{detail:{segments:[m],recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(g),Re.debug("Created new segment from start to:",V(G)),I(m.id),ie(!1)}},children:p.jsx("img",{src:q0,alt:"Set end point",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn segment-start ${U?"disabled":""}`,"data-tooltip":U?"Disabled during preview":"Adjust start of next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:U?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:U,onClick:y=>{y.stopPropagation();const c=[...X].sort((m,g)=>m.startTime-g.startTime).filter(m=>m.startTime>=G).sort((m,g)=>m.startTime-g.startTime)[0];if(c){const m=X.map(E=>E.id===c.id?{...E,startTime:G}:E),g=new CustomEvent("update-segments",{detail:{segments:m,recordHistory:!0,action:"adjust_next_start_time"}});document.dispatchEvent(g),Re.debug("Adjusted start of next segment to:",V(G)),I(c.id),ie(!1)}else if(X.length>0){const m=[...X].sort((T,M)=>T.startTime-M.startTime);let g=!1,E=0;for(let T=0;T<m.length-1;T++){const M=m[T].endTime,L=m[T+1].startTime;if(G>M&&G<L){g=!0,E=L;break}}if(g){const T={id:Date.now(),name:"segment",startTime:G,endTime:E,thumbnail:""},M=[...X,T],L=new CustomEvent("update-segments",{detail:{segments:M,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(L),Re.debug("Created new segment in gap from",V(G),"to",V(E)),I(T.id),ie(!1)}else if(G<m[0].startTime){const T={id:Date.now(),name:"segment",startTime:G,endTime:m[0].startTime,thumbnail:""},M=[...X,T],L=new CustomEvent("update-segments",{detail:{segments:M,recordHistory:!0,action:"create_segment_before_first"}});document.dispatchEvent(L),Re.debug("Created new segment from",V(G),"to first segment"),I(T.id),ie(!1)}else if(G>m[m.length-1].endTime){const T={id:Date.now(),name:"segment",startTime:G,endTime:R,thumbnail:""},M=[...X,T],L=new CustomEvent("update-segments",{detail:{segments:M,recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(L),Re.debug("Created new segment from",V(G),"to end"),I(T.id),ie(!1)}else{const T=m[0];if(T&&T.startTime>0){const M=X.map(z=>z.id===T.id?{...z,startTime:0}:z),L=new CustomEvent("update-segments",{detail:{segments:M,recordHistory:!0,action:"extend_first_segment"}});document.dispatchEvent(L),I(T.id),ie(!1)}}}else if(G<R){const m={id:Date.now(),name:"segment",startTime:G,endTime:R,thumbnail:""},g=new CustomEvent("update-segments",{detail:{segments:[m],recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(g),Re.debug("Created new segment from",V(G),"to end"),I(m.id),ie(!1)}},children:p.jsx("img",{src:I0,alt:"Set start point",style:{width:"24px",height:"24px"}})})]})]})]})}),p.jsxs("div",{className:"timeline-controls",children:[p.jsxs("div",{className:"time-navigation",children:[p.jsx("div",{className:"time-nav-label",children:"Go to Time:"}),p.jsx("input",{type:"text",className:"time-input",placeholder:"00:00:00.000","data-tooltip":"Enter time in format: hh:mm:ss.ms",onKeyDown:y=>{if(y.key==="Enter"){const F=y.currentTarget.value;try{const c=F.split(":");let m=0,g=0,E=0,T=0;if(c.length===3){m=parseInt(c[0]),g=parseInt(c[1]);const L=c[2].split(".");E=parseInt(L[0]),L.length>1&&(T=parseInt(L[1].padEnd(3,"0").substring(0,3)))}else if(c.length===2){g=parseInt(c[0]);const L=c[1].split(".");E=parseInt(L[0]),L.length>1&&(T=parseInt(L[1].padEnd(3,"0").substring(0,3)))}const M=m*3600+g*60+E+T/1e3;if(!isNaN(M)&&M>=0&&M<=R){Ge(M);const L=z=>{const Ue=X.find($=>{const Ce=z>=$.startTime&&z<=$.endTime,et=Math.abs(z-$.startTime)<.001,rt=Math.abs(z-$.endTime)<.001;return Ce||et||rt});if(K.current&&nt.current){const $=K.current.getBoundingClientRect();let Ce;if(d>1)Ce=$.left-nt.current.scrollLeft+z/R*$.width;else{const et=z/R;Ce=$.left+$.width*et}q({x:Ce,y:$.top-10}),fe(z),Ue?(I(Ue.id),ie(!1)):(I(null),ie(!0))}};setTimeout(()=>L(M),10)}}catch(c){console.error("Invalid time format:",c)}}}}),p.jsx("div",{className:"time-button-group",children:(()=>{const y=()=>{const F=X.find(c=>{const m=k>=c.startTime&&k<=c.endTime,g=Math.abs(k-c.startTime)<.001,E=Math.abs(k-c.endTime)<.001;return m||g||E});if(K.current&&nt.current){const c=K.current.getBoundingClientRect();let m;if(d>1)m=c.left-nt.current.scrollLeft+k/R*c.width;else{const g=k/R;m=c.left+c.width*g}if(q({x:m,y:c.top-10}),fe(k),F)I(F.id),ie(!1);else{const g=hn(k);Kt(g),g>=.5?(I(null),ie(!0)):(I(null),ie(!1))}}};return p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"time-button",onClick:()=>{Ge(k-.01),setTimeout(y,10)},"data-tooltip":"Move back 10ms",children:"-10ms"}),p.jsx("button",{className:"time-button",onClick:()=>{Ge(k-.001),setTimeout(y,10)},"data-tooltip":"Move back 1ms",children:"-1ms"}),p.jsx("button",{className:"time-button",onClick:()=>{Ge(k+.001),setTimeout(y,10)},"data-tooltip":"Move forward 1ms",children:"+1ms"}),p.jsx("button",{className:"time-button",onClick:()=>{Ge(k+.01),setTimeout(y,10)},"data-tooltip":"Move forward 10ms",children:"+10ms"})]})})()})]}),p.jsxs("div",{className:"controls-right",children:[p.jsxs("div",{className:"zoom-dropdown-container",children:[p.jsxs("button",{className:"zoom-button","data-tooltip":"Select zoom level",onClick:()=>Mt(!dt),children:["Zoom ",d,"x",p.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:p.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),dt&&p.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(y=>p.jsxs("div",{className:`zoom-option ${d===y?"selected":""}`,onClick:()=>{Fe(y),Mt(!1)},children:[d===y&&p.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:p.jsx("polyline",{points:"20 6 9 17 4 12"})}),"Zoom ",y,"x"]},y))})]}),p.jsx("div",{className:"save-buttons-row",children:p.jsx("button",{onClick:()=>ae(!0),className:"save-chapters-button","data-tooltip":"Save chapters",disabled:X.filter(y=>y.chapterTitle&&y.chapterTitle.trim()).length===0,children:"Save Chapters"})}),p.jsx(Pu,{isOpen:Y,onClose:()=>ae(!1),title:"Save Chapters",actions:p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>ae(!1),children:"Cancel"}),p.jsx("button",{className:"modal-button modal-button-primary",onClick:Bt,children:"Save Chapters"})]}),children:p.jsxs("p",{className:"modal-message",children:["Are you sure you want to save the chapters? This will save"," ",X.filter(y=>y.chapterTitle&&y.chapterTitle.trim()).length," chapters to the database."]})}),p.jsxs(Pu,{isOpen:me,onClose:()=>{},title:"Processing Video",children:[p.jsx("div",{className:"modal-spinner",children:p.jsx("div",{className:"spinner"})}),p.jsx("p",{className:"modal-message text-center",children:"Please wait while your video is being processed..."})]}),p.jsx(Pu,{isOpen:Be,onClose:()=>at(!1),title:"Video Edited Successfully",children:p.jsx("div",{className:"modal-success-content",children:p.jsxs("p",{className:"modal-message text-center redirect-message",children:["You will be redirected to your"," ",p.jsx("a",{href:Ke,className:"media-page-link",style:G0,children:"media page"})," in ",p.jsx("span",{className:"countdown",children:"10"})," seconds. Your chapters have been saved successfully."]})})}),p.jsxs(Pu,{isOpen:We,onClose:()=>St(!1),title:"Video Processing Error",children:[p.jsxs("div",{className:"modal-error-content",children:[p.jsx("div",{className:"modal-error-icon",children:p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),p.jsx("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})]})}),p.jsx("p",{className:"modal-message text-center error-message",children:be})]}),p.jsx("div",{className:"modal-choices",children:p.jsxs("button",{onClick:()=>St(!1),className:"modal-choice-button centered-choice",children:[p.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:[p.jsx("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),p.jsx("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]}),"Close"]})})]})]})]}),it&&p.jsx("div",{className:"mobile-timeline-overlay",children:p.jsxs("div",{className:"mobile-timeline-message",children:[p.jsx("p",{children:"Please play the video first to enable timeline controls"}),p.jsx("div",{className:"mobile-play-icon"})]})})]})},Q0=({onSplit:k,onReset:R,onUndo:Ee,onRedo:we,onPlaySegments:xe,onPlay:ce,canUndo:d,canRedo:X,isPlaying:ve=!1,isPlayingSegments:ne=!1})=>{const[gt,ue]=J.useState(!1);J.useEffect(()=>{const ee=()=>{ue(window.innerWidth<=640)};return ee(),window.addEventListener("resize",ee),()=>window.removeEventListener("resize",ee)},[]);const Le=()=>{typeof window<"u"&&console.log("Play button clicked, current lastSeekedPosition:",window.lastSeekedPosition),ce()};return p.jsx("div",{className:"editing-tools-container",children:p.jsxs("div",{className:"flex-container single-row",children:[p.jsxs("div",{className:"button-group play-buttons-group",children:[p.jsx("button",{className:"button segments-button",onClick:xe,"data-tooltip":ne?"Stop segments playback":"Play segments in one continuous flow",style:{fontSize:"0.875rem"},children:ne?p.jsxs(p.Fragment,{children:[p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),p.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),p.jsx("span",{className:"full-text",children:"Stop Preview"}),p.jsx("span",{className:"short-text",children:"Stop Preview"})]}):p.jsxs(p.Fragment,{children:[p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),p.jsx("span",{className:"full-text",children:"Play Preview"}),p.jsx("span",{className:"short-text",children:"Play Preview"})]})}),(!ne||!gt)&&p.jsx("button",{className:`button play-button ${ne?"greyed-out":""}`,onClick:Le,"data-tooltip":ve?"Pause video":"Play full video",style:{fontSize:"0.875rem"},disabled:ne,children:ve&&!ne?p.jsxs(p.Fragment,{children:[p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("line",{x1:"10",y1:"15",x2:"10",y2:"9"}),p.jsx("line",{x1:"14",y1:"15",x2:"14",y2:"9"})]}),p.jsx("span",{className:"full-text",children:"Pause"}),p.jsx("span",{className:"short-text",children:"Pause"})]}):p.jsxs(p.Fragment,{children:[p.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:[p.jsx("circle",{cx:"12",cy:"12",r:"10"}),p.jsx("polygon",{points:"10 8 16 12 10 16 10 8"})]}),p.jsx("span",{className:"full-text",children:"Play"}),p.jsx("span",{className:"short-text",children:"Play"})]})})]}),p.jsxs("div",{className:"button-group secondary",children:[p.jsxs("button",{className:"button","aria-label":"Undo","data-tooltip":ne?"Disabled during preview":"Undo last action",disabled:!d||ne,onClick:Ee,children:[p.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:[p.jsx("path",{d:"M9 14 4 9l5-5"}),p.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"})]}),p.jsx("span",{className:"button-text",children:"Undo"})]}),p.jsxs("button",{className:"button","aria-label":"Redo","data-tooltip":ne?"Disabled during preview":"Redo last undone action",disabled:!X||ne,onClick:we,children:[p.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:[p.jsx("path",{d:"m15 14 5-5-5-5"}),p.jsx("path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5v0A5.5 5.5 0 0 0 9.5 20H13"})]}),p.jsx("span",{className:"button-text",children:"Redo"})]}),p.jsx("div",{className:"divider"}),p.jsxs("button",{className:"button",onClick:R,"data-tooltip":ne?"Disabled during preview":"Reset to full video",disabled:ne,children:[p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:p.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"})}),p.jsx("span",{className:"reset-text",children:"Reset"})]})]})]})})},K0=({segments:k,selectedSegmentId:R})=>{const Ee=[...k].sort((ce,d)=>ce.startTime-d.startTime),we=ce=>{const d=new CustomEvent("delete-segment",{detail:{segmentId:ce}});document.dispatchEvent(d)},xe=ce=>`segment-default-color segment-color-${ce%8+1}`;return Ee.find(ce=>ce.id===R),p.jsxs("div",{className:"clip-segments-container",children:[p.jsx("h3",{className:"clip-segments-title",children:"Chapters"}),Ee.map((ce,d)=>p.jsxs("div",{className:`segment-item ${xe(d)} ${R===ce.id?"selected":""}`,children:[p.jsxs("div",{className:"segment-content",children:[p.jsx("div",{className:"segment-thumbnail",style:{backgroundImage:`url(${ce.thumbnail})`}}),p.jsxs("div",{className:"segment-info",children:[p.jsx("div",{className:"segment-title",children:ce.chapterTitle?p.jsx("span",{className:"chapter-title",children:ce.chapterTitle}):p.jsxs("span",{className:"default-title",children:["Chapter ",d+1]})}),p.jsxs("div",{className:"segment-time",children:[gi(ce.startTime)," - ",gi(ce.endTime)]}),p.jsxs("div",{className:"segment-duration",children:["Duration: ",$0(ce.endTime-ce.startTime)]})]})]}),p.jsx("div",{className:"segment-actions",children:p.jsx("button",{className:"delete-button","aria-label":"Delete Segment","data-tooltip":"Delete this segment",onClick:()=>we(ce.id),children:p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:p.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"})})})})]},ce.id)),Ee.length===0&&p.jsx("div",{className:"empty-message",children:"No chapters created yet. Use the split button to create chapter segments."})]})},Z0=({videoRef:k,onPlay:R})=>{const[Ee,we]=J.useState(!1);J.useEffect(()=>{const d=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent);we(d)},[]),J.useEffect(()=>{const ce=k.current;if(!ce)return;const d=()=>{we(!1)};return ce.addEventListener("play",d),()=>{ce.removeEventListener("play",d)}},[k]);const xe=()=>{R()};return Ee?p.jsx("div",{className:"mobile-play-prompt-overlay",children:p.jsx("div",{className:"mobile-play-prompt",children:p.jsx("button",{className:"mobile-play-button",onClick:xe,children:"Click to start editing..."})})}):null},J0=()=>{const k=A=>{const Y=A.split(":");if(Y.length!==3)return 0;const ae=parseInt(Y[0],10)||0,me=parseInt(Y[1],10)||0,je=parseFloat(Y[2])||0;return ae*3600+me*60+je},R=J.useRef(null),[Ee,we]=J.useState(0),[xe,ce]=J.useState(0),[d,X]=J.useState(!1),[ve,ne]=J.useState(!1),[gt,ue]=J.useState([]),[Le,ee]=J.useState(0),[Fe,Ge]=J.useState(0),[W,Tt]=J.useState([]),[it,_e]=J.useState(1),[Qe,ye]=J.useState([]),[U,K]=J.useState(null),[At,bt]=J.useState([]),[ot,Dt]=J.useState(-1),[Te,I]=J.useState(!1),[Je,ie]=J.useState(!1),[pe,q]=J.useState(0);J.useEffect(()=>{var A;if(At.length>0){const Y=((A=At[ot])==null?void 0:A.action)||"";Y!=="save"&&Y!=="save_copy"&&Y!=="save_segments"&&I(!0)}},[At,ot]),J.useEffect(()=>{const A=Y=>{if(Te){const ae="Your edits will get lost if you leave the page. Do you want to continue?";return Y.preventDefault(),Y.returnValue=ae,ae}};return window.addEventListener("beforeunload",A),()=>{window.removeEventListener("beforeunload",A)}},[Te]),J.useEffect(()=>{const A=R.current;if(!A)return;const Y=()=>{ce(A.duration),Ge(A.duration),(async()=>{var Ke;let We=[];const St=typeof window<"u"&&((Ke=window.MEDIA_DATA)==null?void 0:Ke.chapters)||[{name:"Chapter 1",from:"00:00:00",to:"00:00:03"},{name:"Chapter 2",from:"00:00:03",to:"00:00:06"},{name:"Chapter 3",from:"00:00:09",to:"00:00:12"},{name:"Chapter 4",from:"00:00:15",to:"00:00:18"},{name:"Chapter 5",from:"00:00:21",to:"00:00:24"}];if(St.length>0)for(let ut=0;ut<St.length;ut++){const xt=St[ut],Nt=k(xt.from),Xt=k(xt.to),Vt=await nf(A,(Nt+Xt)/2),jt={id:ut+1,name:`segment-${ut+1}`,startTime:Nt,endTime:Xt,thumbnail:Vt,chapterTitle:xt.name};We.push(jt)}else{const ut=await nf(A,A.duration/2);We=[{id:1,name:"segment",startTime:0,endTime:A.duration,thumbnail:ut}]}const Zt={trimStart:0,trimEnd:A.duration,splitPoints:[],clipSegments:We};bt([Zt]),Dt(0),ye(We);const Z=6,be=A.duration/Z,ke=[];for(let ut=0;ut<Z;ut++){const xt=be*ut+be/2,Nt=await nf(A,xt);ke.push(Nt)}ue(ke)})()},ae=()=>{we(A.currentTime)},me=()=>{X(!0),Yn(!0)},je=()=>{X(!1)},Be=()=>{X(!1),A.currentTime=Le};return A.addEventListener("loadedmetadata",Y),A.addEventListener("timeupdate",ae),A.addEventListener("play",me),A.addEventListener("pause",je),A.addEventListener("ended",Be),()=>{A.removeEventListener("loadedmetadata",Y),A.removeEventListener("timeupdate",ae),A.removeEventListener("play",me),A.removeEventListener("pause",je),A.removeEventListener("ended",Be)}},[]);const G=A=>{const Y=R.current;if(!Y)return;const ae=!Y.paused;Y.currentTime=A,we(A),typeof window<"u"&&(window.lastSeekedPosition=A),ae&&Y.play().then(()=>{X(!0)}).catch(me=>{console.error("Error resuming playback:",me),X(!1)})},fe=A=>{const Y={trimStart:Le,trimEnd:Fe,splitPoints:[...W],clipSegments:JSON.parse(JSON.stringify(Qe)),action:A||"manual_save"},ae=At[ot],me=()=>{if(!ae||ae.clipSegments.length!==Y.clipSegments.length)return!0;for(let at=0;at<Y.clipSegments.length;at++){const We=ae.clipSegments[at],St=Y.clipSegments[at];if(!We||!St||Math.abs(We.startTime-St.startTime)>.001||Math.abs(We.endTime-St.endTime)>.001)return!0}return!1},je=!ae||ae.trimStart!==Y.trimStart||ae.trimEnd!==Y.trimEnd||ae.splitPoints.length!==Y.splitPoints.length||me(),Be=Y.action!==void 0;if(je||Be){const at=ot;bt(We=>at<We.length-1?[...We.slice(0,at+1),Y]:[...We,Y]),Dt(We=>We+1)}};J.useEffect(()=>{const A=Y=>{if(Y.detail){const{time:ae,isStart:me,recordHistory:je,action:Be}=Y.detail;me?ee(ae):Ge(ae),je&&setTimeout(()=>{fe(Be||(me?"adjust_trim_start":"adjust_trim_end"))},10)}};return document.addEventListener("update-trim",A),()=>{document.removeEventListener("update-trim",A)}},[]),J.useEffect(()=>{const A=me=>{if(me.detail&&me.detail.segments){const je=me.detail.recordHistory!==!1,Be=me.detail.action||"update_segments";ye(me.detail.segments),je&&setTimeout(()=>{const at=JSON.parse(JSON.stringify(me.detail.segments)),We={trimStart:Le,trimEnd:Fe,splitPoints:[...W],clipSegments:at,action:Be},St=ot;bt(Zt=>St<Zt.length-1?[...Zt.slice(0,St+1),We]:[...Zt,We]),Dt(Zt=>Zt+1)},20)}},Y=async me=>{const je=me;if(je.detail&&typeof je.detail.time=="number"&&typeof je.detail.segmentId=="number"){const Be=je.detail.time,at=je.detail.segmentId;G(Be);const We=Qe.find(ke=>ke.id===at);if(!We||Be<=We.startTime||Be>=We.endTime)return;const St=[...Qe],Zt=St.findIndex(ke=>ke.id===at);if(Zt===-1)return;St.splice(Zt,1);const Z={id:Date.now(),name:`${We.name}-A`,startTime:We.startTime,endTime:Be,thumbnail:""},be={id:Date.now()+1,name:`${We.name}-B`,startTime:Be,endTime:We.endTime,thumbnail:""};St.push(Z,be),St.sort((ke,Ke)=>ke.startTime-Ke.startTime),ye(St),fe("split_segment")}},ae=async me=>{const je=me;if(je.detail&&typeof je.detail.segmentId=="number"){const Be=je.detail.segmentId,at=Qe.filter(We=>We.id!==Be);if(at.length!==Qe.length){if(at.length===0&&R.current){const We={id:Date.now(),name:"segment",startTime:0,endTime:R.current.duration,thumbnail:""};ee(0),Ge(R.current.duration),Tt([]),ye([We])}else ye(at);fe("delete_segment")}}};return document.addEventListener("update-segments",A),document.addEventListener("split-segment",Y),document.addEventListener("delete-segment",ae),()=>{document.removeEventListener("update-segments",A),document.removeEventListener("split-segment",Y),document.removeEventListener("delete-segment",ae)}},[Qe,xe]);const dt=A=>{ee(A),fe("adjust_trim_start")},Mt=A=>{Ge(A),fe("adjust_trim_end")},lt=async()=>{if(R.current&&!W.includes(Ee)){const A=[...W,Ee].sort((me,je)=>me-je);Tt(A);const Y=[];let ae=0;for(let me=0;me<=A.length;me++){const je=me<A.length?A[me]:xe;ae<je&&(Y.push({id:Date.now()+me,name:`Segment ${me+1}`,startTime:ae,endTime:je,thumbnail:""}),ae=je)}ye(Y),fe("create_split_points")}},Kt=async()=>{if(ee(0),Ge(xe),Tt([]),!R.current)return;const A={id:Date.now(),name:"segment",startTime:0,endTime:xe,thumbnail:""};ye([A]),fe("reset_all")},Lt=()=>{if(ot>0){const A=At[ot-1];Re.debug(`** UNDO ** to position ${ot-1}, action: ${A.action}, segments: ${A.clipSegments.length}`),Re.debug("Segment details after undo:",A.clipSegments.map(Y=>`ID: ${Y.id}, Time: ${V(Y.startTime)} - ${V(Y.endTime)}`)),ee(A.trimStart),Ge(A.trimEnd),Tt([...A.splitPoints]),ye(JSON.parse(JSON.stringify(A.clipSegments))),Dt(ot-1)}},Ye=()=>{if(ot<At.length-1){const A=At[ot+1];Re.debug(`** REDO ** to position ${ot+1}, action: ${A.action}, segments: ${A.clipSegments.length}`),Re.debug("Segment details after redo:",A.clipSegments.map(Y=>`ID: ${Y.id}, Time: ${V(Y.startTime)} - ${V(Y.endTime)}`)),ee(A.trimStart),Ge(A.trimEnd),Tt([...A.splitPoints]),ye(JSON.parse(JSON.stringify(A.clipSegments))),Dt(ot+1)}},Ne=A=>{_e(A)},ze=()=>{const A=R.current;A&&(A.muted=!A.muted,ne(!ve))},dn=()=>{[...Qe].sort((Y,ae)=>Y.startTime-ae.startTime).map(Y=>({startTime:V(Y.startTime),endTime:V(Y.endTime)})),I(!1),fe("save")},Ze=()=>{[...Qe].sort((Y,ae)=>Y.startTime-ae.startTime).map(Y=>({startTime:V(Y.startTime),endTime:V(Y.endTime)})),I(!1),fe("save_copy")},Yt=()=>{[...Qe].sort((Y,ae)=>Y.startTime-ae.startTime).map(Y=>({name:Y.name,startTime:V(Y.startTime),endTime:V(Y.endTime)})),I(!1),fe("save_segments")},yt=(A,Y)=>{ye(ae=>ae.map(me=>me.id===A?{...me,...Y}:me)),I(!0)},nt=async A=>{var Y;try{const ae=(Y=window.MEDIA_DATA)==null?void 0:Y.mediaId;if(!ae){console.error("No media ID found");return}const je={chapters:A.map(Zt=>({start:Zt.from,title:Zt.name}))};console.log("Saving chapters:",je);const Be=an(),at={"Content-Type":"application/json"};Be&&(at["X-CSRFToken"]=Be);const We=await fetch(`/api/v1/media/${ae}/chapters`,{method:"POST",headers:at,body:JSON.stringify(je)});if(!We.ok)throw new Error(`Failed to save chapters: ${We.status}`);const St=await We.json();console.log("Chapters saved successfully:",St),I(!1)}catch(ae){console.error("Error saving chapters:",ae)}},an=()=>{var me;const ae=`; ${document.cookie}`.split("; csrftoken=");return ae.length===2&&((me=ae.pop())==null?void 0:me.split(";").shift())||""},un=A=>{K(A)},sn=A=>{(!tn||Pn)&&G(A)},tn=typeof window<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent),[Pn,Yn]=J.useState(!1);return J.useEffect(()=>{if(!Je||!R.current)return;const A=R.current,Y=[...Qe].sort((me,je)=>me.startTime-je.startTime),ae=()=>{const me=Y[pe];if(!me)return;const je=A.currentTime;if(je<me.startTime){A.currentTime=me.startTime;return}if(je>=me.endTime-.01)if(pe<Y.length-1){const Be=Y[pe+1];A.currentTime=Be.startTime,q(pe+1),A.paused&&A.play().catch(at=>{console.error("Error continuing segment playback:",at)})}else A.pause(),ie(!1),q(0),A.removeEventListener("timeupdate",ae)};return A.addEventListener("timeupdate",ae),A.paused&&Y.length>0&&(A.currentTime=Y[0].startTime,A.play().catch(console.error)),()=>{A.removeEventListener("timeupdate",ae)}},[Je,pe,Qe]),J.useEffect(()=>{const A=Y=>{const{segmentIndex:ae}=Y.detail;Je&&ae!==pe&&q(ae)};return document.addEventListener("update-segment-index",A),()=>{document.removeEventListener("update-segment-index",A)}},[Je,pe]),{videoRef:R,currentTime:Ee,duration:xe,isPlaying:d,setIsPlaying:X,isMuted:ve,isPlayingSegments:Je,thumbnails:gt,trimStart:Le,trimEnd:Fe,splitPoints:W,zoomLevel:it,clipSegments:Qe,selectedSegmentId:U,hasUnsavedChanges:Te,historyPosition:ot,history:At,handleTrimStartChange:dt,handleTrimEndChange:Mt,handleZoomChange:Ne,handleMobileSafeSeek:sn,handleSplit:lt,handleReset:Kt,handleUndo:Lt,handleRedo:Ye,handlePlaySegments:()=>{const A=R.current;if(!(!A||Qe.length===0))if(Je)A.pause(),ie(!1),q(0);else{ie(!0),q(0);const Y=[...Qe].sort((ae,me)=>ae.startTime-me.startTime);A.currentTime=Y[0].startTime,A.play().catch(ae=>{console.error("Error starting segments playback:",ae),ie(!1)})}},toggleMute:ze,handleSave:dn,handleSaveACopy:Ze,handleSaveSegments:Yt,handleSegmentUpdate:yt,handleChapterSave:nt,handleSelectedSegmentChange:un,isMobile:tn,videoInitialized:Pn,setVideoInitialized:Yn}},eS=()=>{const{videoRef:k,currentTime:R,duration:Ee,isPlaying:we,setIsPlaying:xe,isMuted:ce,thumbnails:d,trimStart:X,trimEnd:ve,splitPoints:ne,zoomLevel:gt,clipSegments:ue,selectedSegmentId:Le,hasUnsavedChanges:ee,historyPosition:Fe,history:Ge,handleTrimStartChange:W,handleTrimEndChange:Tt,handleZoomChange:it,handleMobileSafeSeek:_e,handleSplit:Qe,handleReset:ye,handleUndo:U,handleRedo:K,toggleMute:At,handleSegmentUpdate:bt,handleChapterSave:ot,handleSelectedSegmentChange:Dt,isMobile:Te,videoInitialized:I,setVideoInitialized:Je,isPlayingSegments:ie,handlePlaySegments:pe}=J0(),q=()=>{if(!k.current)return;const G=k.current;if(we){G.pause(),xe(!1);return}const fe=Number(G.currentTime.toFixed(6));let dt=Ee,Mt=null,lt=null;const Kt=[...ue].sort((Ye,Ne)=>Ye.startTime-Ne.startTime);Mt=Kt.find(Ye=>{const Ne=Number(Ye.startTime.toFixed(6)),ze=Number(Ye.endTime.toFixed(6));return fe>Ne&&fe<ze||fe===Ne}),Mt||(lt=Kt.find(Ye=>Number(Ye.startTime.toFixed(6))>fe)),Mt?dt=Number(Mt.endTime.toFixed(6)):lt&&(dt=Number(lt.startTime.toFixed(6)));const Lt=()=>{if(!G)return;const Ye=Number(G.currentTime.toFixed(6));if(Number((dt-Ye).toFixed(6))<=0||Ye>=dt){G.pause();const ze=()=>{if(!G)return;G.currentTime=dt,_e(dt);const dn=Number(G.currentTime.toFixed(6)),Ze=Number(Math.abs(dn-dt).toFixed(6));Re.debug("Position verification:",{target:V(dt),actual:V(dn),difference:Ze}),Ze>0&&(G.currentTime=dt,_e(dt))};ze(),setTimeout(ze,5),setTimeout(ze,10),setTimeout(ze,20),setTimeout(ze,50),G.removeEventListener("timeupdate",Lt),xe(!1),Re.debug("Stopped at position:",{target:V(dt),actual:V(G.currentTime),type:Mt?"segment end":lt?"next segment start":"end of video",segment:Mt?{id:Mt.id,start:V(Mt.startTime),end:V(Mt.endTime)}:null,nextSegment:lt?{id:lt.id,start:V(lt.startTime),end:V(lt.endTime)}:null});return}};G.addEventListener("timeupdate",Lt),G.play().then(()=>{xe(!0),Je(!0),Re.debug("Playback started:",{from:V(fe),to:V(dt),currentSegment:Mt?{id:Mt.id,start:V(Mt.startTime),end:V(Mt.endTime)}:"None",nextSegment:lt?{id:lt.id,start:V(lt.startTime),end:V(lt.endTime)}:"None"})}).catch(Ye=>{console.error("Error playing video:",Ye)})};return p.jsxs("div",{className:"bg-background min-h-screen",children:[p.jsx(Z0,{videoRef:k,onPlay:q}),p.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-6xl",children:[p.jsx(P0,{videoRef:k,currentTime:R,duration:Ee,isPlaying:we,isMuted:ce,onPlayPause:q,onSeek:_e,onToggleMute:At}),p.jsx(Q0,{onSplit:Qe,onReset:ye,onUndo:U,onRedo:K,onPlaySegments:pe,onPlay:q,isPlaying:we,isPlayingSegments:ie,canUndo:Fe>0,canRedo:Fe<Ge.length-1}),p.jsx(X0,{currentTime:R,duration:Ee,thumbnails:d,trimStart:X,trimEnd:ve,splitPoints:ne,zoomLevel:gt,clipSegments:ue,selectedSegmentId:Le,onSelectedSegmentChange:Dt,onSegmentUpdate:bt,onChapterSave:ot,onTrimStartChange:W,onTrimEndChange:Tt,onZoomChange:it,onSeek:_e,videoRef:k,hasUnsavedChanges:ee,isIOSUninitialized:Te&&!I,isPlaying:we,setIsPlaying:xe,onPlayPause:q,isPlayingSegments:ie}),p.jsx(K0,{segments:ue,selectedSegmentId:Le})]})]})};typeof window<"u"&&(window.MEDIA_DATA={videoUrl:"",mediaId:""},window.lastSeekedPosition=0);const Dm=()=>{const k=document.getElementById("chapters-editor-root");k&&Sm(k).render(p.jsx(eS,{}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",Dm):Dm()})();
//# sourceMappingURL=chapters-editor.js.map