mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-06 07:28:53 -05:00
204 lines
404 KiB
JavaScript
204 lines
404 KiB
JavaScript
(function(){"use strict";var dm={exports:{}},Kc={exports:{}},il={exports:{}};il.exports;var vm;function z0(){return vm||(vm=1,function(w,k){/**
|
|
* @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 se="18.3.1",me=Symbol.for("react.element"),le=Symbol.for("react.portal"),xe=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),ge=Symbol.for("react.provider"),re=Symbol.for("react.context"),yt=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),z=Symbol.for("react.suspense_list"),ne=Symbol.for("react.memo"),Le=Symbol.for("react.lazy"),zt=Symbol.for("react.offscreen"),Gt=Symbol.iterator,gt="@@iterator";function Pe(s){if(s===null||typeof s!="object")return null;var m=Gt&&s[Gt]||s[gt];return typeof m=="function"?m:null}var De={current:null},rt={transition:null},M={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},ie={current:null},we={},$t=null;function Ae(s){$t=s}we.setExtraStackFrame=function(s){$t=s},we.getCurrentStack=null,we.getStackAddendum=function(){var s="";$t&&(s+=$t);var m=we.getCurrentStack;return m&&(s+=m()||""),s};var he=!1,nt=!1,ce=!1,Me=!1,Je=!1,fe={ReactCurrentDispatcher:De,ReactCurrentBatchConfig:rt,ReactCurrentOwner:ie};fe.ReactDebugCurrentFrame=we,fe.ReactCurrentActQueue=M;function I(s){{for(var m=arguments.length,L=new Array(m>1?m-1:0),A=1;A<m;A++)L[A-1]=arguments[A];Ye("warn",s,L)}}function q(s){{for(var m=arguments.length,L=new Array(m>1?m-1:0),A=1;A<m;A++)L[A-1]=arguments[A];Ye("error",s,L)}}function Ye(s,m,L){{var A=fe.ReactDebugCurrentFrame,Z=A.getStackAddendum();Z!==""&&(m+="%s",L=L.concat([Z]));var Ne=L.map(function(Se){return String(Se)});Ne.unshift("Warning: "+m),Function.prototype.apply.call(console[s],console,Ne)}}var Fe={};function at(s,m){{var L=s.constructor,A=L&&(L.displayName||L.name)||"ReactClass",Z=A+"."+m;if(Fe[Z])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.",m,A),Fe[Z]=!0}}var ut={isMounted:function(s){return!1},enqueueForceUpdate:function(s,m,L){at(s,"forceUpdate")},enqueueReplaceState:function(s,m,L,A){at(s,"replaceState")},enqueueSetState:function(s,m,L,A){at(s,"setState")}},Ie=Object.assign,Ve={};Object.freeze(Ve);function Ue(s,m,L){this.props=s,this.context=m,this.refs=Ve,this.updater=L||ut}Ue.prototype.isReactComponent={},Ue.prototype.setState=function(s,m){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,m,"setState")},Ue.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var un={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)."]},Ze=function(s,m){Object.defineProperty(Ue.prototype,s,{get:function(){I("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var Ut in un)un.hasOwnProperty(Ut)&&Ze(Ut,un[Ut])}function pt(){}pt.prototype=Ue.prototype;function Qe(s,m,L){this.props=s,this.context=m,this.refs=Ve,this.updater=L||ut}var Xt=Qe.prototype=new pt;Xt.constructor=Qe,Ie(Xt,Ue.prototype),Xt.isPureReactComponent=!0;function en(){var s={current:null};return Object.seal(s),s}var En=Array.isArray;function V(s){return En(s)}function K(s){{var m=typeof Symbol=="function"&&Symbol.toStringTag,L=m&&s[Symbol.toStringTag]||s.constructor.name||"Object";return L}}function Ee(s){try{return Te(s),!1}catch{return!0}}function Te(s){return""+s}function He(s){if(Ee(s))return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",K(s)),Te(s)}function Tt(s,m,L){var A=s.displayName;if(A)return A;var Z=m.displayName||m.name||"";return Z!==""?L+"("+Z+")":L}function Et(s){return s.displayName||"Context"}function Ge(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 xe:return"Fragment";case le:return"Portal";case X:return"Profiler";case f:return"StrictMode";case W:return"Suspense";case z:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case re:var m=s;return Et(m)+".Consumer";case ge:var L=s;return Et(L._context)+".Provider";case yt:return Tt(s,s.render,"ForwardRef");case ne:var A=s.displayName||null;return A!==null?A:Ge(s.type)||"Memo";case Le:{var Z=s,Ne=Z._payload,Se=Z._init;try{return Ge(Se(Ne))}catch{return null}}}return null}var vt=Object.prototype.hasOwnProperty,Ct={key:!0,ref:!0,__self:!0,__source:!0},Kt,sn,Lt;Lt={};function Mt(s){if(vt.call(s,"ref")){var m=Object.getOwnPropertyDescriptor(s,"ref").get;if(m&&m.isReactWarning)return!1}return s.ref!==void 0}function Cn(s){if(vt.call(s,"key")){var m=Object.getOwnPropertyDescriptor(s,"key").get;if(m&&m.isReactWarning)return!1}return s.key!==void 0}function Xn(s,m){var L=function(){Kt||(Kt=!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)",m))};L.isReactWarning=!0,Object.defineProperty(s,"key",{get:L,configurable:!0})}function Ba(s,m){var L=function(){sn||(sn=!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)",m))};L.isReactWarning=!0,Object.defineProperty(s,"ref",{get:L,configurable:!0})}function G(s){if(typeof s.ref=="string"&&ie.current&&s.__self&&ie.current.stateNode!==s.__self){var m=Ge(ie.current.type);Lt[m]||(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',m,s.ref),Lt[m]=!0)}}var _e=function(s,m,L,A,Z,Ne,Se){var We={$$typeof:me,type:s,key:m,ref:L,props:Se,_owner:Ne};return We._store={},Object.defineProperty(We._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(We,"_self",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.defineProperty(We,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Z}),Object.freeze&&(Object.freeze(We.props),Object.freeze(We)),We};function Ke(s,m,L){var A,Z={},Ne=null,Se=null,We=null,st=null;if(m!=null){Mt(m)&&(Se=m.ref,G(m)),Cn(m)&&(He(m.key),Ne=""+m.key),We=m.__self===void 0?null:m.__self,st=m.__source===void 0?null:m.__source;for(A in m)vt.call(m,A)&&!Ct.hasOwnProperty(A)&&(Z[A]=m[A])}var Ot=arguments.length-2;if(Ot===1)Z.children=L;else if(Ot>1){for(var It=Array(Ot),Wt=0;Wt<Ot;Wt++)It[Wt]=arguments[Wt+2];Object.freeze&&Object.freeze(It),Z.children=It}if(s&&s.defaultProps){var ot=s.defaultProps;for(A in ot)Z[A]===void 0&&(Z[A]=ot[A])}if(Ne||Se){var Zt=typeof s=="function"?s.displayName||s.name||"Unknown":s;Ne&&Xn(Z,Zt),Se&&Ba(Z,Zt)}return _e(s,Ne,Se,We,st,ie.current,Z)}function Rt(s,m){var L=_e(s.type,m,s.ref,s._self,s._source,s._owner,s.props);return L}function mt(s,m,L){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var A,Z=Ie({},s.props),Ne=s.key,Se=s.ref,We=s._self,st=s._source,Ot=s._owner;if(m!=null){Mt(m)&&(Se=m.ref,Ot=ie.current),Cn(m)&&(He(m.key),Ne=""+m.key);var It;s.type&&s.type.defaultProps&&(It=s.type.defaultProps);for(A in m)vt.call(m,A)&&!Ct.hasOwnProperty(A)&&(m[A]===void 0&&It!==void 0?Z[A]=It[A]:Z[A]=m[A])}var Wt=arguments.length-2;if(Wt===1)Z.children=L;else if(Wt>1){for(var ot=Array(Wt),Zt=0;Zt<Wt;Zt++)ot[Zt]=arguments[Zt+2];Z.children=ot}return _e(s.type,Ne,Se,We,st,Ot,Z)}function Ht(s){return typeof s=="object"&&s!==null&&s.$$typeof===me}var Pt=".",cn=":";function Ft(s){var m=/[=:]/g,L={"=":"=0",":":"=2"},A=s.replace(m,function(Z){return L[Z]});return"$"+A}var Dt=!1,Vt=/\/+/g;function ar(s){return s.replace(Vt,"$&/")}function ha(s,m){return typeof s=="object"&&s!==null&&s.key!=null?(He(s.key),Ft(""+s.key)):m.toString(36)}function ya(s,m,L,A,Z){var Ne=typeof s;(Ne==="undefined"||Ne==="boolean")&&(s=null);var Se=!1;if(s===null)Se=!0;else switch(Ne){case"string":case"number":Se=!0;break;case"object":switch(s.$$typeof){case me:case le:Se=!0}}if(Se){var We=s,st=Z(We),Ot=A===""?Pt+ha(We,0):A;if(V(st)){var It="";Ot!=null&&(It=ar(Ot)+"/"),ya(st,m,It,"",function(cf){return cf})}else st!=null&&(Ht(st)&&(st.key&&(!We||We.key!==st.key)&&He(st.key),st=Rt(st,L+(st.key&&(!We||We.key!==st.key)?ar(""+st.key)+"/":"")+Ot)),m.push(st));return 1}var Wt,ot,Zt=0,fn=A===""?Pt:A+cn;if(V(s))for(var Di=0;Di<s.length;Di++)Wt=s[Di],ot=fn+ha(Wt,Di),Zt+=ya(Wt,m,L,ot,Z);else{var ml=Pe(s);if(typeof ml=="function"){var Rr=s;ml===Rr.entries&&(Dt||I("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Dt=!0);for(var hl=ml.call(Rr),yl,sf=0;!(yl=hl.next()).done;)Wt=yl.value,ot=fn+ha(Wt,sf++),Zt+=ya(Wt,m,L,ot,Z)}else if(Ne==="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 Zt}function rr(s,m,L){if(s==null)return s;var A=[],Z=0;return ya(s,A,"","",function(Ne){return m.call(L,Ne,Z++)}),A}function Wr(s){var m=0;return rr(s,function(){m++}),m}function qr(s,m,L){rr(s,function(){m.apply(this,arguments)},L)}function Qn(s){return rr(s,function(m){return m})||[]}function _a(s){if(!Ht(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function Gr(s){var m={$$typeof:re,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};m.Provider={$$typeof:ge,_context:m};var L=!1,A=!1,Z=!1;{var Ne={$$typeof:re,_context:m};Object.defineProperties(Ne,{Provider:{get:function(){return A||(A=!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?")),m.Provider},set:function(Se){m.Provider=Se}},_currentValue:{get:function(){return m._currentValue},set:function(Se){m._currentValue=Se}},_currentValue2:{get:function(){return m._currentValue2},set:function(Se){m._currentValue2=Se}},_threadCount:{get:function(){return m._threadCount},set:function(Se){m._threadCount=Se}},Consumer:{get:function(){return L||(L=!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?")),m.Consumer}},displayName:{get:function(){return m.displayName},set:function(Se){Z||(I("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Se),Z=!0)}}}),m.Consumer=Ne}return m._currentRenderer=null,m._currentRenderer2=null,m}var $n=-1,Kn=0,Jn=1,ka=2;function Tr(s){if(s._status===$n){var m=s._result,L=m();if(L.then(function(Ne){if(s._status===Kn||s._status===$n){var Se=s;Se._status=Jn,Se._result=Ne}},function(Ne){if(s._status===Kn||s._status===$n){var Se=s;Se._status=ka,Se._result=Ne}}),s._status===$n){var A=s;A._status=Kn,A._result=L}}if(s._status===Jn){var Z=s._result;return Z===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?`,Z),"default"in Z||q(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
|
|
Your code should look like:
|
|
const MyComponent = lazy(() => import('./MyComponent'))`,Z),Z.default}else throw s._result}function Ma(s){var m={_status:$n,_result:s},L={$$typeof:Le,_payload:m,_init:Tr};{var A,Z;Object.defineProperties(L,{defaultProps:{configurable:!0,get:function(){return A},set:function(Ne){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."),A=Ne,Object.defineProperty(L,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Z},set:function(Ne){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."),Z=Ne,Object.defineProperty(L,"propTypes",{enumerable:!0})}}})}return L}function La(s){s!=null&&s.$$typeof===ne?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 m={$$typeof:yt,render:s};{var L;Object.defineProperty(m,"displayName",{enumerable:!1,configurable:!0,get:function(){return L},set:function(A){L=A,!s.name&&!s.displayName&&(s.displayName=A)}})}return m}var h;h=Symbol.for("react.module.reference");function $(s){return!!(typeof s=="string"||typeof s=="function"||s===xe||s===X||Je||s===f||s===W||s===z||Me||s===zt||he||nt||ce||typeof s=="object"&&s!==null&&(s.$$typeof===Le||s.$$typeof===ne||s.$$typeof===ge||s.$$typeof===re||s.$$typeof===yt||s.$$typeof===h||s.getModuleId!==void 0))}function v(s,m){$(s)||q("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var L={$$typeof:ne,type:s,compare:m===void 0?null:m};{var A;Object.defineProperty(L,"displayName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(Z){A=Z,!s.name&&!s.displayName&&(s.displayName=Z)}})}return L}function x(){var s=De.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 m=x();if(s._context!==void 0){var L=s._context;L.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?"):L.Provider===s&&q("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(s)}function y(s){var m=x();return m.useState(s)}function b(s,m,L){var A=x();return A.useReducer(s,m,L)}function C(s){var m=x();return m.useRef(s)}function g(s,m){var L=x();return L.useEffect(s,m)}function U(s,m){var L=x();return L.useInsertionEffect(s,m)}function H(s,m){var L=x();return L.useLayoutEffect(s,m)}function J(s,m){var L=x();return L.useCallback(s,m)}function et(s,m){var L=x();return L.useMemo(s,m)}function te(s,m,L){var A=x();return A.useImperativeHandle(s,m,L)}function Re(s,m){{var L=x();return L.useDebugValue(s,m)}}function ye(){var s=x();return s.useTransition()}function it(s){var m=x();return m.useDeferredValue(s)}function on(){var s=x();return s.useId()}function Xr(s,m,L){var A=x();return A.useSyncExternalStore(s,m,L)}var Zn=0,xn,ir,wn,Bt,sa,Er,ll;function Cr(){}Cr.__reactDisabledLog=!0;function ga(){{if(Zn===0){xn=console.log,ir=console.info,wn=console.warn,Bt=console.error,sa=console.group,Er=console.groupCollapsed,ll=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Cr,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Zn++}}function Rn(){{if(Zn--,Zn===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ie({},s,{value:xn}),info:Ie({},s,{value:ir}),warn:Ie({},s,{value:wn}),error:Ie({},s,{value:Bt}),group:Ie({},s,{value:sa}),groupCollapsed:Ie({},s,{value:Er}),groupEnd:Ie({},s,{value:ll})})}Zn<0&&q("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var or=fe.ReactCurrentDispatcher,lr;function nn(s,m,L){{if(lr===void 0)try{throw Error()}catch(Z){var A=Z.stack.trim().match(/\n( *(at )?)/);lr=A&&A[1]||""}return`
|
|
`+lr+s}}var ht=!1,ba;{var Sa=typeof WeakMap=="function"?WeakMap:Map;ba=new Sa}function Qr(s,m){if(!s||ht)return"";{var L=ba.get(s);if(L!==void 0)return L}var A;ht=!0;var Z=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ne;Ne=or.current,or.current=null,ga();try{if(m){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(fn){A=fn}Reflect.construct(s,[],Se)}else{try{Se.call()}catch(fn){A=fn}s.call(Se.prototype)}}else{try{throw Error()}catch(fn){A=fn}s()}}catch(fn){if(fn&&A&&typeof fn.stack=="string"){for(var We=fn.stack.split(`
|
|
`),st=A.stack.split(`
|
|
`),Ot=We.length-1,It=st.length-1;Ot>=1&&It>=0&&We[Ot]!==st[It];)It--;for(;Ot>=1&&It>=0;Ot--,It--)if(We[Ot]!==st[It]){if(Ot!==1||It!==1)do if(Ot--,It--,It<0||We[Ot]!==st[It]){var Wt=`
|
|
`+We[Ot].replace(" at new "," at ");return s.displayName&&Wt.includes("<anonymous>")&&(Wt=Wt.replace("<anonymous>",s.displayName)),typeof s=="function"&&ba.set(s,Wt),Wt}while(Ot>=1&&It>=0);break}}}finally{ht=!1,or.current=Ne,Rn(),Error.prepareStackTrace=Z}var ot=s?s.displayName||s.name:"",Zt=ot?nn(ot):"";return typeof s=="function"&&ba.set(s,Zt),Zt}function ul(s,m,L){return Qr(s,!1)}function af(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function xi(s,m,L){if(s==null)return"";if(typeof s=="function")return Qr(s,af(s));if(typeof s=="string")return nn(s);switch(s){case W:return nn("Suspense");case z:return nn("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case yt:return ul(s.render);case ne:return xi(s.type,m,L);case Le:{var A=s,Z=A._payload,Ne=A._init;try{return xi(Ne(Z),m,L)}catch{}}}return""}var Iu={},sl=fe.ReactDebugCurrentFrame;function xt(s){if(s){var m=s._owner,L=xi(s.type,s._source,m?m.type:null);sl.setExtraStackFrame(L)}else sl.setExtraStackFrame(null)}function rf(s,m,L,A,Z){{var Ne=Function.call.bind(vt);for(var Se in s)if(Ne(s,Se)){var We=void 0;try{if(typeof s[Se]!="function"){var st=Error((A||"React class")+": "+L+" type `"+Se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[Se]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw st.name="Invariant Violation",st}We=s[Se](m,Se,A,L,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ot){We=Ot}We&&!(We instanceof Error)&&(xt(Z),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).",A||"React class",L,Se,typeof We),xt(null)),We instanceof Error&&!(We.message in Iu)&&(Iu[We.message]=!0,xt(Z),q("Failed %s type: %s",L,We.message),xt(null))}}}function xr(s){if(s){var m=s._owner,L=xi(s.type,s._source,m?m.type:null);Ae(L)}else Ae(null)}var Xe;Xe=!1;function cl(){if(ie.current){var s=Ge(ie.current.type);if(s)return`
|
|
|
|
Check the render method of \``+s+"`."}return""}function ea(s){if(s!==void 0){var m=s.fileName.replace(/^.*[\\\/]/,""),L=s.lineNumber;return`
|
|
|
|
Check your code at `+m+":"+L+"."}return""}function wi(s){return s!=null?ea(s.__source):""}var Kr={};function of(s){var m=cl();if(!m){var L=typeof s=="string"?s:s.displayName||s.name;L&&(m=`
|
|
|
|
Check the top-level render call using <`+L+">.")}return m}function Dn(s,m){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var L=of(m);if(!Kr[L]){Kr[L]=!0;var A="";s&&s._owner&&s._owner!==ie.current&&(A=" It was passed a child from "+Ge(s._owner.type)+"."),xr(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.',L,A),xr(null)}}}function Jt(s,m){if(typeof s=="object"){if(V(s))for(var L=0;L<s.length;L++){var A=s[L];Ht(A)&&Dn(A,m)}else if(Ht(s))s._store&&(s._store.validated=!0);else if(s){var Z=Pe(s);if(typeof Z=="function"&&Z!==s.entries)for(var Ne=Z.call(s),Se;!(Se=Ne.next()).done;)Ht(Se.value)&&Dn(Se.value,m)}}}function Wu(s){{var m=s.type;if(m==null||typeof m=="string")return;var L;if(typeof m=="function")L=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===yt||m.$$typeof===ne))L=m.propTypes;else return;if(L){var A=Ge(m);rf(L,s.props,"prop",A,s)}else if(m.PropTypes!==void 0&&!Xe){Xe=!0;var Z=Ge(m);q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Z||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Oa(s){{for(var m=Object.keys(s.props),L=0;L<m.length;L++){var A=m[L];if(A!=="children"&&A!=="key"){xr(s),q("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),xr(null);break}}s.ref!==null&&(xr(s),q("Invalid attribute `ref` supplied to `React.Fragment`."),xr(null))}}function ta(s,m,L){var A=$(s);if(!A){var Z="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).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 Ne=wi(m);Ne?Z+=Ne:Z+=cl();var Se;s===null?Se="null":V(s)?Se="array":s!==void 0&&s.$$typeof===me?(Se="<"+(Ge(s.type)||"Unknown")+" />",Z=" Did you accidentally export a JSX literal instead of a component?"):Se=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",Se,Z)}var We=Ke.apply(this,arguments);if(We==null)return We;if(A)for(var st=2;st<arguments.length;st++)Jt(arguments[st],s);return s===xe?Oa(We):Wu(We),We}var $a=!1;function lf(s){var m=ta.bind(null,s);return m.type=s,$a||($a=!0,I("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(m,"type",{enumerable:!1,get:function(){return I("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),m}function fl(s,m,L){for(var A=mt.apply(this,arguments),Z=2;Z<arguments.length;Z++)Jt(arguments[Z],A.type);return Wu(A),A}function qu(s,m){var L=rt.transition;rt.transition={};var A=rt.transition;rt.transition._updatedFibers=new Set;try{s()}finally{if(rt.transition=L,L===null&&A._updatedFibers){var Z=A._updatedFibers.size;Z>10&&I("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),A._updatedFibers.clear()}}}var dl=!1,oo=null;function uf(s){if(oo===null)try{var m=("require"+Math.random()).slice(0,7),L=w&&w[m];oo=L.call(w,"timers").setImmediate}catch{oo=function(Z){dl===!1&&(dl=!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 Ne=new MessageChannel;Ne.port1.onmessage=Z,Ne.port2.postMessage(void 0)}}return oo(s)}var Jr=0,Ri=!1;function vl(s){{var m=Jr;Jr++,M.current===null&&(M.current=[]);var L=M.isBatchingLegacy,A;try{if(M.isBatchingLegacy=!0,A=s(),!L&&M.didScheduleLegacyUpdate){var Z=M.current;Z!==null&&(M.didScheduleLegacyUpdate=!1,so(Z))}}catch(ot){throw wr(m),ot}finally{M.isBatchingLegacy=L}if(A!==null&&typeof A=="object"&&typeof A.then=="function"){var Ne=A,Se=!1,We={then:function(ot,Zt){Se=!0,Ne.then(function(fn){wr(m),Jr===0?lo(fn,ot,Zt):ot(fn)},function(fn){wr(m),Zt(fn)})}};return!Ri&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Se||(Ri=!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 () => ...);"))}),We}else{var st=A;if(wr(m),Jr===0){var Ot=M.current;Ot!==null&&(so(Ot),M.current=null);var It={then:function(ot,Zt){M.current===null?(M.current=[],lo(st,ot,Zt)):ot(st)}};return It}else{var Wt={then:function(ot,Zt){ot(st)}};return Wt}}}}function wr(s){s!==Jr-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. "),Jr=s}function lo(s,m,L){{var A=M.current;if(A!==null)try{so(A),uf(function(){A.length===0?(M.current=null,m(s)):lo(s,m,L)})}catch(Z){L(Z)}else m(s)}}var uo=!1;function so(s){if(!uo){uo=!0;var m=0;try{for(;m<s.length;m++){var L=s[m];do L=L(!0);while(L!==null)}s.length=0}catch(A){throw s=s.slice(m+1),A}finally{uo=!1}}}var Gu=ta,Xu=fl,pl=lf,Qu={map:rr,forEach:qr,count:Wr,toArray:Qn,only:_a};k.Children=Qu,k.Component=Ue,k.Fragment=xe,k.Profiler=X,k.PureComponent=Qe,k.StrictMode=f,k.Suspense=W,k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fe,k.act=vl,k.cloneElement=Xu,k.createContext=Gr,k.createElement=Gu,k.createFactory=pl,k.createRef=en,k.forwardRef=La,k.isValidElement=Ht,k.lazy=Ma,k.memo=v,k.startTransition=qu,k.unstable_act=vl,k.useCallback=J,k.useContext=T,k.useDebugValue=Re,k.useDeferredValue=it,k.useEffect=g,k.useId=on,k.useImperativeHandle=te,k.useInsertionEffect=U,k.useLayoutEffect=H,k.useMemo=et,k.useReducer=b,k.useRef=C,k.useState=y,k.useSyncExternalStore=Xr,k.useTransition=ye,k.version=se,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(il,il.exports)),il.exports}var pm;function Jc(){return pm||(pm=1,Kc.exports=z0()),Kc.exports}var ol={},mm;function F0(){if(mm)return ol;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 w=Jc(),k=Symbol.for("react.element"),se=Symbol.for("react.portal"),me=Symbol.for("react.fragment"),le=Symbol.for("react.strict_mode"),xe=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),X=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),yt=Symbol.for("react.suspense_list"),W=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),ne=Symbol.for("react.offscreen"),Le=Symbol.iterator,zt="@@iterator";function Gt(h){if(h===null||typeof h!="object")return null;var $=Le&&h[Le]||h[zt];return typeof $=="function"?$:null}var gt=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Pe(h){{for(var $=arguments.length,v=new Array($>1?$-1:0),x=1;x<$;x++)v[x-1]=arguments[x];De("error",h,v)}}function De(h,$,v){{var x=gt.ReactDebugCurrentFrame,T=x.getStackAddendum();T!==""&&($+="%s",v=v.concat([T]));var y=v.map(function(b){return String(b)});y.unshift("Warning: "+$),Function.prototype.apply.call(console[h],console,y)}}var rt=!1,M=!1,ie=!1,we=!1,$t=!1,Ae;Ae=Symbol.for("react.module.reference");function he(h){return!!(typeof h=="string"||typeof h=="function"||h===me||h===xe||$t||h===le||h===re||h===yt||we||h===ne||rt||M||ie||typeof h=="object"&&h!==null&&(h.$$typeof===z||h.$$typeof===W||h.$$typeof===f||h.$$typeof===X||h.$$typeof===ge||h.$$typeof===Ae||h.getModuleId!==void 0))}function nt(h,$,v){var x=h.displayName;if(x)return x;var T=$.displayName||$.name||"";return T!==""?v+"("+T+")":v}function ce(h){return h.displayName||"Context"}function Me(h){if(h==null)return null;if(typeof h.tag=="number"&&Pe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case me:return"Fragment";case se:return"Portal";case xe:return"Profiler";case le:return"StrictMode";case re:return"Suspense";case yt:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case X:var $=h;return ce($)+".Consumer";case f:var v=h;return ce(v._context)+".Provider";case ge:return nt(h,h.render,"ForwardRef");case W:var x=h.displayName||null;return x!==null?x:Me(h.type)||"Memo";case z:{var T=h,y=T._payload,b=T._init;try{return Me(b(y))}catch{return null}}}return null}var Je=Object.assign,fe=0,I,q,Ye,Fe,at,ut,Ie;function Ve(){}Ve.__reactDisabledLog=!0;function Ue(){{if(fe===0){I=console.log,q=console.info,Ye=console.warn,Fe=console.error,at=console.group,ut=console.groupCollapsed,Ie=console.groupEnd;var h={configurable:!0,enumerable:!0,value:Ve,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}fe++}}function un(){{if(fe--,fe===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Je({},h,{value:I}),info:Je({},h,{value:q}),warn:Je({},h,{value:Ye}),error:Je({},h,{value:Fe}),group:Je({},h,{value:at}),groupCollapsed:Je({},h,{value:ut}),groupEnd:Je({},h,{value:Ie})})}fe<0&&Pe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ze=gt.ReactCurrentDispatcher,Ut;function pt(h,$,v){{if(Ut===void 0)try{throw Error()}catch(T){var x=T.stack.trim().match(/\n( *(at )?)/);Ut=x&&x[1]||""}return`
|
|
`+Ut+h}}var Qe=!1,Xt;{var en=typeof WeakMap=="function"?WeakMap:Map;Xt=new en}function En(h,$){if(!h||Qe)return"";{var v=Xt.get(h);if(v!==void 0)return v}var x;Qe=!0;var T=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var y;y=Ze.current,Ze.current=null,Ue();try{if($){var b=function(){throw Error()};if(Object.defineProperty(b.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(b,[])}catch(Re){x=Re}Reflect.construct(h,[],b)}else{try{b.call()}catch(Re){x=Re}h.call(b.prototype)}}else{try{throw Error()}catch(Re){x=Re}h()}}catch(Re){if(Re&&x&&typeof Re.stack=="string"){for(var C=Re.stack.split(`
|
|
`),g=x.stack.split(`
|
|
`),U=C.length-1,H=g.length-1;U>=1&&H>=0&&C[U]!==g[H];)H--;for(;U>=1&&H>=0;U--,H--)if(C[U]!==g[H]){if(U!==1||H!==1)do if(U--,H--,H<0||C[U]!==g[H]){var J=`
|
|
`+C[U].replace(" at new "," at ");return h.displayName&&J.includes("<anonymous>")&&(J=J.replace("<anonymous>",h.displayName)),typeof h=="function"&&Xt.set(h,J),J}while(U>=1&&H>=0);break}}}finally{Qe=!1,Ze.current=y,un(),Error.prepareStackTrace=T}var et=h?h.displayName||h.name:"",te=et?pt(et):"";return typeof h=="function"&&Xt.set(h,te),te}function V(h,$,v){return En(h,!1)}function K(h){var $=h.prototype;return!!($&&$.isReactComponent)}function Ee(h,$,v){if(h==null)return"";if(typeof h=="function")return En(h,K(h));if(typeof h=="string")return pt(h);switch(h){case re:return pt("Suspense");case yt:return pt("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case ge:return V(h.render);case W:return Ee(h.type,$,v);case z:{var x=h,T=x._payload,y=x._init;try{return Ee(y(T),$,v)}catch{}}}return""}var Te=Object.prototype.hasOwnProperty,He={},Tt=gt.ReactDebugCurrentFrame;function Et(h){if(h){var $=h._owner,v=Ee(h.type,h._source,$?$.type:null);Tt.setExtraStackFrame(v)}else Tt.setExtraStackFrame(null)}function Ge(h,$,v,x,T){{var y=Function.call.bind(Te);for(var b in h)if(y(h,b)){var C=void 0;try{if(typeof h[b]!="function"){var g=Error((x||"React class")+": "+v+" type `"+b+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[b]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}C=h[b]($,b,x,v,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(U){C=U}C&&!(C instanceof Error)&&(Et(T),Pe("%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).",x||"React class",v,b,typeof C),Et(null)),C instanceof Error&&!(C.message in He)&&(He[C.message]=!0,Et(T),Pe("Failed %s type: %s",v,C.message),Et(null))}}}var vt=Array.isArray;function Ct(h){return vt(h)}function Kt(h){{var $=typeof Symbol=="function"&&Symbol.toStringTag,v=$&&h[Symbol.toStringTag]||h.constructor.name||"Object";return v}}function sn(h){try{return Lt(h),!1}catch{return!0}}function Lt(h){return""+h}function Mt(h){if(sn(h))return Pe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Kt(h)),Lt(h)}var Cn=gt.ReactCurrentOwner,Xn={key:!0,ref:!0,__self:!0,__source:!0},Ba,G;function _e(h){if(Te.call(h,"ref")){var $=Object.getOwnPropertyDescriptor(h,"ref").get;if($&&$.isReactWarning)return!1}return h.ref!==void 0}function Ke(h){if(Te.call(h,"key")){var $=Object.getOwnPropertyDescriptor(h,"key").get;if($&&$.isReactWarning)return!1}return h.key!==void 0}function Rt(h,$){typeof h.ref=="string"&&Cn.current}function mt(h,$){{var v=function(){Ba||(Ba=!0,Pe("%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)",$))};v.isReactWarning=!0,Object.defineProperty(h,"key",{get:v,configurable:!0})}}function Ht(h,$){{var v=function(){G||(G=!0,Pe("%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)",$))};v.isReactWarning=!0,Object.defineProperty(h,"ref",{get:v,configurable:!0})}}var Pt=function(h,$,v,x,T,y,b){var C={$$typeof:k,type:h,key:$,ref:v,props:b,_owner:y};return C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(C,"_self",{configurable:!1,enumerable:!1,writable:!1,value:x}),Object.defineProperty(C,"_source",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C};function cn(h,$,v,x,T){{var y,b={},C=null,g=null;v!==void 0&&(Mt(v),C=""+v),Ke($)&&(Mt($.key),C=""+$.key),_e($)&&(g=$.ref,Rt($,T));for(y in $)Te.call($,y)&&!Xn.hasOwnProperty(y)&&(b[y]=$[y]);if(h&&h.defaultProps){var U=h.defaultProps;for(y in U)b[y]===void 0&&(b[y]=U[y])}if(C||g){var H=typeof h=="function"?h.displayName||h.name||"Unknown":h;C&&mt(b,H),g&&Ht(b,H)}return Pt(h,C,g,T,x,Cn.current,b)}}var Ft=gt.ReactCurrentOwner,Dt=gt.ReactDebugCurrentFrame;function Vt(h){if(h){var $=h._owner,v=Ee(h.type,h._source,$?$.type:null);Dt.setExtraStackFrame(v)}else Dt.setExtraStackFrame(null)}var ar;ar=!1;function ha(h){return typeof h=="object"&&h!==null&&h.$$typeof===k}function ya(){{if(Ft.current){var h=Me(Ft.current.type);if(h)return`
|
|
|
|
Check the render method of \``+h+"`."}return""}}function rr(h){return""}var Wr={};function qr(h){{var $=ya();if(!$){var v=typeof h=="string"?h:h.displayName||h.name;v&&($=`
|
|
|
|
Check the top-level render call using <`+v+">.")}return $}}function Qn(h,$){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var v=qr($);if(Wr[v])return;Wr[v]=!0;var x="";h&&h._owner&&h._owner!==Ft.current&&(x=" It was passed a child from "+Me(h._owner.type)+"."),Vt(h),Pe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',v,x),Vt(null)}}function _a(h,$){{if(typeof h!="object")return;if(Ct(h))for(var v=0;v<h.length;v++){var x=h[v];ha(x)&&Qn(x,$)}else if(ha(h))h._store&&(h._store.validated=!0);else if(h){var T=Gt(h);if(typeof T=="function"&&T!==h.entries)for(var y=T.call(h),b;!(b=y.next()).done;)ha(b.value)&&Qn(b.value,$)}}}function Gr(h){{var $=h.type;if($==null||typeof $=="string")return;var v;if(typeof $=="function")v=$.propTypes;else if(typeof $=="object"&&($.$$typeof===ge||$.$$typeof===W))v=$.propTypes;else return;if(v){var x=Me($);Ge(v,h.props,"prop",x,h)}else if($.PropTypes!==void 0&&!ar){ar=!0;var T=Me($);Pe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T||"Unknown")}typeof $.getDefaultProps=="function"&&!$.getDefaultProps.isReactClassApproved&&Pe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function $n(h){{for(var $=Object.keys(h.props),v=0;v<$.length;v++){var x=$[v];if(x!=="children"&&x!=="key"){Vt(h),Pe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",x),Vt(null);break}}h.ref!==null&&(Vt(h),Pe("Invalid attribute `ref` supplied to `React.Fragment`."),Vt(null))}}var Kn={};function Jn(h,$,v,x,T,y){{var b=he(h);if(!b){var C="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(C+=" 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 g=rr();g?C+=g:C+=ya();var U;h===null?U="null":Ct(h)?U="array":h!==void 0&&h.$$typeof===k?(U="<"+(Me(h.type)||"Unknown")+" />",C=" Did you accidentally export a JSX literal instead of a component?"):U=typeof h,Pe("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",U,C)}var H=cn(h,$,v,T,y);if(H==null)return H;if(b){var J=$.children;if(J!==void 0)if(x)if(Ct(J)){for(var et=0;et<J.length;et++)_a(J[et],h);Object.freeze&&Object.freeze(J)}else Pe("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 _a(J,h)}if(Te.call($,"key")){var te=Me(h),Re=Object.keys($).filter(function(on){return on!=="key"}),ye=Re.length>0?"{key: someKey, "+Re.join(": ..., ")+": ...}":"{key: someKey}";if(!Kn[te+ye]){var it=Re.length>0?"{"+Re.join(": ..., ")+": ...}":"{}";Pe(`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} />`,ye,te,it,te),Kn[te+ye]=!0}}return h===me?$n(H):Gr(H),H}}function ka(h,$,v){return Jn(h,$,v,!0)}function Tr(h,$,v){return Jn(h,$,v,!1)}var Ma=Tr,La=ka;ol.Fragment=me,ol.jsx=Ma,ol.jsxs=La}(),ol}dm.exports=F0();var p=dm.exports,hm={exports:{}},Zc={exports:{}},ef={},ym;function V0(){return ym||(ym=1,function(w){/**
|
|
* @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 k=!1,se=5;function me(G,_e){var Ke=G.length;G.push(_e),f(G,_e,Ke)}function le(G){return G.length===0?null:G[0]}function xe(G){if(G.length===0)return null;var _e=G[0],Ke=G.pop();return Ke!==_e&&(G[0]=Ke,X(G,Ke,0)),_e}function f(G,_e,Ke){for(var Rt=Ke;Rt>0;){var mt=Rt-1>>>1,Ht=G[mt];if(ge(Ht,_e)>0)G[mt]=_e,G[Rt]=Ht,Rt=mt;else return}}function X(G,_e,Ke){for(var Rt=Ke,mt=G.length,Ht=mt>>>1;Rt<Ht;){var Pt=(Rt+1)*2-1,cn=G[Pt],Ft=Pt+1,Dt=G[Ft];if(ge(cn,_e)<0)Ft<mt&&ge(Dt,cn)<0?(G[Rt]=Dt,G[Ft]=_e,Rt=Ft):(G[Rt]=cn,G[Pt]=_e,Rt=Pt);else if(Ft<mt&&ge(Dt,_e)<0)G[Rt]=Dt,G[Ft]=_e,Rt=Ft;else return}}function ge(G,_e){var Ke=G.sortIndex-_e.sortIndex;return Ke!==0?Ke:G.id-_e.id}var re=1,yt=2,W=3,z=4,ne=5;function Le(G,_e){}var zt=typeof performance=="object"&&typeof performance.now=="function";if(zt){var Gt=performance;w.unstable_now=function(){return Gt.now()}}else{var gt=Date,Pe=gt.now();w.unstable_now=function(){return gt.now()-Pe}}var De=1073741823,rt=-1,M=250,ie=5e3,we=1e4,$t=De,Ae=[],he=[],nt=1,ce=null,Me=W,Je=!1,fe=!1,I=!1,q=typeof setTimeout=="function"?setTimeout:null,Ye=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 at(G){for(var _e=le(he);_e!==null;){if(_e.callback===null)xe(he);else if(_e.startTime<=G)xe(he),_e.sortIndex=_e.expirationTime,me(Ae,_e);else return;_e=le(he)}}function ut(G){if(I=!1,at(G),!fe)if(le(Ae)!==null)fe=!0,Lt(Ie);else{var _e=le(he);_e!==null&&Mt(ut,_e.startTime-G)}}function Ie(G,_e){fe=!1,I&&(I=!1,Cn()),Je=!0;var Ke=Me;try{var Rt;if(!k)return Ve(G,_e)}finally{ce=null,Me=Ke,Je=!1}}function Ve(G,_e){var Ke=_e;for(at(Ke),ce=le(Ae);ce!==null&&!(ce.expirationTime>Ke&&(!G||Tt()));){var Rt=ce.callback;if(typeof Rt=="function"){ce.callback=null,Me=ce.priorityLevel;var mt=ce.expirationTime<=Ke,Ht=Rt(mt);Ke=w.unstable_now(),typeof Ht=="function"?ce.callback=Ht:ce===le(Ae)&&xe(Ae),at(Ke)}else xe(Ae);ce=le(Ae)}if(ce!==null)return!0;var Pt=le(he);return Pt!==null&&Mt(ut,Pt.startTime-Ke),!1}function Ue(G,_e){switch(G){case re:case yt:case W:case z:case ne:break;default:G=W}var Ke=Me;Me=G;try{return _e()}finally{Me=Ke}}function un(G){var _e;switch(Me){case re:case yt:case W:_e=W;break;default:_e=Me;break}var Ke=Me;Me=_e;try{return G()}finally{Me=Ke}}function Ze(G){var _e=Me;return function(){var Ke=Me;Me=_e;try{return G.apply(this,arguments)}finally{Me=Ke}}}function Ut(G,_e,Ke){var Rt=w.unstable_now(),mt;if(typeof Ke=="object"&&Ke!==null){var Ht=Ke.delay;typeof Ht=="number"&&Ht>0?mt=Rt+Ht:mt=Rt}else mt=Rt;var Pt;switch(G){case re:Pt=rt;break;case yt:Pt=M;break;case ne:Pt=$t;break;case z:Pt=we;break;case W:default:Pt=ie;break}var cn=mt+Pt,Ft={id:nt++,callback:_e,priorityLevel:G,startTime:mt,expirationTime:cn,sortIndex:-1};return mt>Rt?(Ft.sortIndex=mt,me(he,Ft),le(Ae)===null&&Ft===le(he)&&(I?Cn():I=!0,Mt(ut,mt-Rt))):(Ft.sortIndex=cn,me(Ae,Ft),!fe&&!Je&&(fe=!0,Lt(Ie))),Ft}function pt(){}function Qe(){!fe&&!Je&&(fe=!0,Lt(Ie))}function Xt(){return le(Ae)}function en(G){G.callback=null}function En(){return Me}var V=!1,K=null,Ee=-1,Te=se,He=-1;function Tt(){var G=w.unstable_now()-He;return!(G<Te)}function Et(){}function Ge(G){if(G<0||G>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}G>0?Te=Math.floor(1e3/G):Te=se}var vt=function(){if(K!==null){var G=w.unstable_now();He=G;var _e=!0,Ke=!0;try{Ke=K(_e,G)}finally{Ke?Ct():(V=!1,K=null)}}else V=!1},Ct;if(typeof Fe=="function")Ct=function(){Fe(vt)};else if(typeof MessageChannel<"u"){var Kt=new MessageChannel,sn=Kt.port2;Kt.port1.onmessage=vt,Ct=function(){sn.postMessage(null)}}else Ct=function(){q(vt,0)};function Lt(G){K=G,V||(V=!0,Ct())}function Mt(G,_e){Ee=q(function(){G(w.unstable_now())},_e)}function Cn(){Ye(Ee),Ee=-1}var Xn=Et,Ba=null;w.unstable_IdlePriority=ne,w.unstable_ImmediatePriority=re,w.unstable_LowPriority=z,w.unstable_NormalPriority=W,w.unstable_Profiling=Ba,w.unstable_UserBlockingPriority=yt,w.unstable_cancelCallback=en,w.unstable_continueExecution=Qe,w.unstable_forceFrameRate=Ge,w.unstable_getCurrentPriorityLevel=En,w.unstable_getFirstCallbackNode=Xt,w.unstable_next=un,w.unstable_pauseExecution=pt,w.unstable_requestPaint=Xn,w.unstable_runWithPriority=Ue,w.unstable_scheduleCallback=Ut,w.unstable_shouldYield=Tt,w.unstable_wrapCallback=Ze,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 B0(){return gm||(gm=1,Zc.exports=V0()),Zc.exports}var ua={},bm;function $0(){if(bm)return ua;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 w=Jc(),k=B0(),se=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,me=!1;function le(e){me=e}function xe(e){if(!me){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];X("warn",e,n)}}function f(e){if(!me){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];X("error",e,n)}}function X(e,t,n){{var a=se.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 ge=0,re=1,yt=2,W=3,z=4,ne=5,Le=6,zt=7,Gt=8,gt=9,Pe=10,De=11,rt=12,M=13,ie=14,we=15,$t=16,Ae=17,he=18,nt=19,ce=21,Me=22,Je=23,fe=24,I=25,q=!0,Ye=!1,Fe=!1,at=!1,ut=!1,Ie=!0,Ve=!0,Ue=!0,un=!0,Ze=new Set,Ut={},pt={};function Qe(e,t){Xt(e,t),Xt(e+"Capture",t)}function Xt(e,t){Ut[e]&&f("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ut[e]=t;{var n=e.toLowerCase();pt[n]=e,e==="onDoubleClick"&&(pt.ondblclick=e)}for(var a=0;a<t.length;a++)Ze.add(t[a])}var en=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",En=Object.prototype.hasOwnProperty;function V(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function K(e){try{return Ee(e),!1}catch{return!0}}function Ee(e){return""+e}function Te(e,t){if(K(e))return f("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,V(e)),Ee(e)}function He(e){if(K(e))return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",V(e)),Ee(e)}function Tt(e,t){if(K(e))return f("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,V(e)),Ee(e)}function Et(e,t){if(K(e))return f("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,V(e)),Ee(e)}function Ge(e){if(K(e))return f("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",V(e)),Ee(e)}function vt(e){if(K(e))return f("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.",V(e)),Ee(e)}var Ct=0,Kt=1,sn=2,Lt=3,Mt=4,Cn=5,Xn=6,Ba=":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",G=Ba+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",_e=new RegExp("^["+Ba+"]["+G+"]*$"),Ke={},Rt={};function mt(e){return En.call(Rt,e)?!0:En.call(Ke,e)?!1:_e.test(e)?(Rt[e]=!0,!0):(Ke[e]=!0,f("Invalid attribute name: `%s`",e),!1)}function Ht(e,t,n){return t!==null?t.type===Ct:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Pt(e,t,n,a){if(n!==null&&n.type===Ct)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 cn(e,t,n,a){if(t===null||typeof t>"u"||Pt(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case Lt:return!t;case Mt:return t===!1;case Cn:return isNaN(t);case Xn:return isNaN(t)||t<1}return!1}function Ft(e){return Vt.hasOwnProperty(e)?Vt[e]:null}function Dt(e,t,n,a,r,i,o){this.acceptsBooleans=t===sn||t===Lt||t===Mt,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Vt={},ar=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];ar.forEach(function(e){Vt[e]=new Dt(e,Ct,!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];Vt[t]=new Dt(t,Kt,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Vt[e]=new Dt(e,sn,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Vt[e]=new Dt(e,sn,!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){Vt[e]=new Dt(e,Lt,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Vt[e]=new Dt(e,Lt,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Vt[e]=new Dt(e,Mt,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Vt[e]=new Dt(e,Xn,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Vt[e]=new Dt(e,Cn,!1,e.toLowerCase(),null,!1,!1)});var ha=/[\-\:]([a-z])/g,ya=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(ha,ya);Vt[t]=new Dt(t,Kt,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(ha,ya);Vt[t]=new Dt(t,Kt,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(ha,ya);Vt[t]=new Dt(t,Kt,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Vt[e]=new Dt(e,Kt,!1,e.toLowerCase(),null,!1,!1)});var rr="xlinkHref";Vt[rr]=new Dt("xlinkHref",Kt,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Vt[e]=new Dt(e,Kt,!1,e.toLowerCase(),null,!0,!0)});var Wr=/^[\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,qr=!1;function Qn(e){!qr&&Wr.test(e)&&(qr=!0,f("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 _a(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{Te(n,t),a.sanitizeURL&&Qn(""+n);var i=a.attributeName,o=null;if(a.type===Mt){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:cn(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(cn(t,n,a,!1))return e.getAttribute(i);if(a.type===Lt)return n;o=e.getAttribute(i)}return cn(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function Gr(e,t,n,a){{if(!mt(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return Te(n,t),r===""+n?n:r}}function $n(e,t,n,a){var r=Ft(t);if(!Ht(t,r,a)){if(cn(t,n,r,a)&&(n=null),a||r===null){if(mt(t)){var i=t;n===null?e.removeAttribute(i):(Te(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===Lt?!1:""}else e[l]=n;return}var c=r.attributeName,d=r.attributeNamespace;if(n===null)e.removeAttribute(c);else{var E=r.type,S;E===Lt||E===Mt&&n===!0?S="":(Te(n,c),S=""+n,r.sanitizeURL&&Qn(S.toString())),d?e.setAttributeNS(d,c,S):e.setAttribute(c,S)}}}var Kn=Symbol.for("react.element"),Jn=Symbol.for("react.portal"),ka=Symbol.for("react.fragment"),Tr=Symbol.for("react.strict_mode"),Ma=Symbol.for("react.profiler"),La=Symbol.for("react.provider"),h=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),b=Symbol.for("react.scope"),C=Symbol.for("react.debug_trace_mode"),g=Symbol.for("react.offscreen"),U=Symbol.for("react.legacy_hidden"),H=Symbol.for("react.cache"),J=Symbol.for("react.tracing_marker"),et=Symbol.iterator,te="@@iterator";function Re(e){if(e===null||typeof e!="object")return null;var t=et&&e[et]||e[te];return typeof t=="function"?t:null}var ye=Object.assign,it=0,on,Xr,Zn,xn,ir,wn,Bt;function sa(){}sa.__reactDisabledLog=!0;function Er(){{if(it===0){on=console.log,Xr=console.info,Zn=console.warn,xn=console.error,ir=console.group,wn=console.groupCollapsed,Bt=console.groupEnd;var e={configurable:!0,enumerable:!0,value:sa,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}it++}}function ll(){{if(it--,it===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ye({},e,{value:on}),info:ye({},e,{value:Xr}),warn:ye({},e,{value:Zn}),error:ye({},e,{value:xn}),group:ye({},e,{value:ir}),groupCollapsed:ye({},e,{value:wn}),groupEnd:ye({},e,{value:Bt})})}it<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Cr=se.ReactCurrentDispatcher,ga;function Rn(e,t,n){{if(ga===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);ga=a&&a[1]||""}return`
|
|
`+ga+e}}var or=!1,lr;{var nn=typeof WeakMap=="function"?WeakMap:Map;lr=new nn}function ht(e,t){if(!e||or)return"";{var n=lr.get(e);if(n!==void 0)return n}var a;or=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=Cr.current,Cr.current=null,Er();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(O){a=O}Reflect.construct(e,[],o)}else{try{o.call()}catch(O){a=O}e.call(o.prototype)}}else{try{throw Error()}catch(O){a=O}e()}}catch(O){if(O&&a&&typeof O.stack=="string"){for(var l=O.stack.split(`
|
|
`),u=a.stack.split(`
|
|
`),c=l.length-1,d=u.length-1;c>=1&&d>=0&&l[c]!==u[d];)d--;for(;c>=1&&d>=0;c--,d--)if(l[c]!==u[d]){if(c!==1||d!==1)do if(c--,d--,d<0||l[c]!==u[d]){var E=`
|
|
`+l[c].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e=="function"&&lr.set(e,E),E}while(c>=1&&d>=0);break}}}finally{or=!1,Cr.current=i,ll(),Error.prepareStackTrace=r}var S=e?e.displayName||e.name:"",_=S?Rn(S):"";return typeof e=="function"&&lr.set(e,_),_}function ba(e,t,n){return ht(e,!0)}function Sa(e,t,n){return ht(e,!1)}function Qr(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ul(e,t,n){if(e==null)return"";if(typeof e=="function")return ht(e,Qr(e));if(typeof e=="string")return Rn(e);switch(e){case v:return Rn("Suspense");case x:return Rn("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case $:return Sa(e.render);case T:return ul(e.type,t,n);case y:{var a=e,r=a._payload,i=a._init;try{return ul(i(r),t,n)}catch{}}}return""}function af(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case ne:return Rn(e.type);case $t:return Rn("Lazy");case M:return Rn("Suspense");case nt:return Rn("SuspenseList");case ge:case yt:case we:return Sa(e.type);case De:return Sa(e.type.render);case re:return ba(e.type);default:return""}}function xi(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 Iu(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function sl(e){return e.displayName||"Context"}function xt(e){if(e==null)return null;if(typeof e.tag=="number"&&f("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 ka:return"Fragment";case Jn:return"Portal";case Ma:return"Profiler";case Tr:return"StrictMode";case v:return"Suspense";case x:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var t=e;return sl(t)+".Consumer";case La:var n=e;return sl(n._context)+".Provider";case $:return Iu(e,e.render,"ForwardRef");case T:var a=e.displayName||null;return a!==null?a:xt(e.type)||"Memo";case y:{var r=e,i=r._payload,o=r._init;try{return xt(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 xr(e){return e.displayName||"Context"}function Xe(e){var t=e.tag,n=e.type;switch(t){case fe:return"Cache";case gt:var a=n;return xr(a)+".Consumer";case Pe:var r=n;return xr(r._context)+".Provider";case he:return"DehydratedFragment";case De:return rf(n,n.render,"ForwardRef");case zt:return"Fragment";case ne:return n;case z:return"Portal";case W:return"Root";case Le:return"Text";case $t:return xt(n);case Gt:return n===Tr?"StrictMode":"Mode";case Me:return"Offscreen";case rt:return"Profiler";case ce:return"Scope";case M:return"Suspense";case nt:return"SuspenseList";case I:return"TracingMarker";case re:case ge:case Ae:case yt:case ie:case we:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var cl=se.ReactDebugCurrentFrame,ea=null,wi=!1;function Kr(){{if(ea===null)return null;var e=ea._debugOwner;if(e!==null&&typeof e<"u")return Xe(e)}return null}function of(){return ea===null?"":xi(ea)}function Dn(){cl.getCurrentStack=null,ea=null,wi=!1}function Jt(e){cl.getCurrentStack=e===null?null:of,ea=e,wi=!1}function Wu(){return ea}function Oa(e){wi=e}function ta(e){return""+e}function $a(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return vt(e),e;default:return""}}var lf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function fl(e,t){lf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||f("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||f("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 dl(e){return e._valueTracker}function oo(e){e._valueTracker=null}function uf(e){var t="";return e&&(qu(e)?t=e.checked?"true":"false":t=e.value),t}function Jr(e){var t=qu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);vt(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){vt(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){vt(l),a=""+l},stopTracking:function(){oo(e),delete e[t]}};return o}}function Ri(e){dl(e)||(e._valueTracker=Jr(e))}function vl(e){if(!e)return!1;var t=dl(e);if(!t)return!0;var n=t.getValue(),a=uf(e);return a!==n?(t.setValue(a),!0):!1}function wr(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 lo=!1,uo=!1,so=!1,Gu=!1;function Xu(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function pl(e,t){var n=e,a=t.checked,r=ye({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked});return r}function Qu(e,t){fl("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!uo&&(f("%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",Kr()||"A component",t.type),uo=!0),t.value!==void 0&&t.defaultValue!==void 0&&!lo&&(f("%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",Kr()||"A component",t.type),lo=!0);var n=e,a=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:$a(t.value!=null?t.value:a),controlled:Xu(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&$n(n,"checked",a,!1)}function m(e,t){var n=e;{var a=Xu(t);!n._wrapperState.controlled&&a&&!Gu&&(f("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&&!so&&(f("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"),so=!0)}s(e,t);var r=$a(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=ta(r)):n.value!==ta(r)&&(n.value=ta(r));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Ne(n,t.type,r):t.hasOwnProperty("defaultValue")&&Ne(n,t.type,$a(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function L(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=ta(a._wrapperState.initialValue);n||o!==a.value&&(a.value=o),a.defaultValue=o}var l=a.name;l!==""&&(a.name=""),a.defaultChecked=!a.defaultChecked,a.defaultChecked=!!a._wrapperState.initialChecked,l!==""&&(a.name=l)}function A(e,t){var n=e;m(n,t),Z(n,t)}function Z(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var a=e;a.parentNode;)a=a.parentNode;Te(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.");vl(o),m(o,l)}}}}function Ne(e,t,n){(t!=="number"||wr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=ta(e._wrapperState.initialValue):e.defaultValue!==ta(n)&&(e.defaultValue=ta(n)))}var Se=!1,We=!1,st=!1;function Ot(e,t){t.value==null&&(typeof t.children=="object"&&t.children!==null?w.Children.forEach(t.children,function(n){n!=null&&(typeof n=="string"||typeof n=="number"||We||(We=!0,f("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(st||(st=!0,f("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!Se&&(f("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Se=!0)}function It(e,t){t.value!=null&&e.setAttribute("value",ta($a(t.value)))}var Wt=Array.isArray;function ot(e){return Wt(e)}var Zt;Zt=!1;function fn(){var e=Kr();return e?`
|
|
|
|
Check the render method of \``+e+"`.":""}var Di=["value","defaultValue"];function ml(e){{fl("select",e);for(var t=0;t<Di.length;t++){var n=Di[t];if(e[n]!=null){var a=ot(e[n]);e.multiple&&!a?f("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,fn()):!e.multiple&&a&&f("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,fn())}}}}function Rr(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 c=o.hasOwnProperty("$"+r[u].value);r[u].selected!==c&&(r[u].selected=c),c&&a&&(r[u].defaultSelected=!0)}}else{for(var d=ta($a(n)),E=null,S=0;S<r.length;S++){if(r[S].value===d){r[S].selected=!0,a&&(r[S].defaultSelected=!0);return}E===null&&!r[S].disabled&&(E=r[S])}E!==null&&(E.selected=!0)}}function hl(e,t){return ye({},t,{value:void 0})}function yl(e,t){var n=e;ml(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!Zt&&(f("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"),Zt=!0)}function sf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?Rr(n,!!t.multiple,a,!1):t.defaultValue!=null&&Rr(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?Rr(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?Rr(n,!!t.multiple,t.defaultValue,!0):Rr(n,!!t.multiple,t.multiple?[]:"",!1))}function cf(e,t){var n=e,a=t.value;a!=null&&Rr(n,!!t.multiple,a,!1)}var Mm=!1;function ff(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var a=ye({},t,{value:void 0,defaultValue:void 0,children:ta(n._wrapperState.initialValue)});return a}function Lm(e,t){var n=e;fl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!Mm&&(f("%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",Kr()||"A component"),Mm=!0);var a=t.value;if(a==null){var r=t.children,i=t.defaultValue;if(r!=null){f("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(ot(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:$a(a)}}function Om(e,t){var n=e,a=$a(t.value),r=$a(t.defaultValue);if(a!=null){var i=ta(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=ta(r))}function Am(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function rS(e,t){Om(e,t)}var Dr="http://www.w3.org/1999/xhtml",iS="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 iS;default:return Dr}}function pf(e,t){return e==null||e===Dr?vf(t):e===df&&t==="foreignObject"?Dr:e}var oS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},Ju,Nm=oS(function(e,t){if(e.namespaceURI===df&&!("innerHTML"in e)){Ju=Ju||document.createElement("div"),Ju.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Ju.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),ca=1,_r=3,dn=8,kr=9,mf=11,Zu=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===_r){n.nodeValue=t;return}}e.textContent=t},lS={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},gl={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function uS(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var sS=["Webkit","ms","Moz","O"];Object.keys(gl).forEach(function(e){sS.forEach(function(t){gl[uS(t,e)]=gl[e]})});function hf(e,t,n){var a=t==null||typeof t=="boolean"||t==="";return a?"":!n&&typeof t=="number"&&t!==0&&!(gl.hasOwnProperty(e)&&gl[e])?t+"px":(Et(t,e),(""+t).trim())}var cS=/([A-Z])/g,fS=/^ms-/;function dS(e){return e.replace(cS,"-$1").toLowerCase().replace(fS,"-ms-")}var jm=function(){};{var vS=/^(?:webkit|moz|o)[A-Z]/,pS=/^-ms-/,mS=/-(.)/g,Um=/;\s*$/,co={},yf={},Hm=!1,zm=!1,hS=function(e){return e.replace(mS,function(t,n){return n.toUpperCase()})},yS=function(e){co.hasOwnProperty(e)&&co[e]||(co[e]=!0,f("Unsupported style property %s. Did you mean %s?",e,hS(e.replace(pS,"ms-"))))},gS=function(e){co.hasOwnProperty(e)&&co[e]||(co[e]=!0,f("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},bS=function(e,t){yf.hasOwnProperty(t)&&yf[t]||(yf[t]=!0,f(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Um,"")))},SS=function(e,t){Hm||(Hm=!0,f("`NaN` is an invalid value for the `%s` css style property.",e))},TS=function(e,t){zm||(zm=!0,f("`Infinity` is an invalid value for the `%s` css style property.",e))};jm=function(e,t){e.indexOf("-")>-1?yS(e):vS.test(e)?gS(e):Um.test(t)&&bS(e,t),typeof t=="number"&&(isNaN(t)?SS(e,t):isFinite(t)||TS(e,t))}}var ES=jm;function CS(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:dS(a))+":",t+=hf(a,r,i),n=";"}}return t||null}}function Fm(e,t){var n=e.style;for(var a in t)if(t.hasOwnProperty(a)){var r=a.indexOf("--")===0;r||ES(a,t[a]);var i=hf(a,t[a],r);a==="float"&&(a="cssFloat"),r?n.setProperty(a,i):n[a]=i}}function xS(e){return e==null||typeof e=="boolean"||e===""}function Vm(e){var t={};for(var n in e)for(var a=lS[n]||[n],r=0;r<a.length;r++)t[a[r]]=n;return t}function wS(e,t){{if(!t)return;var n=Vm(e),a=Vm(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,f("%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.",xS(e[o])?"Removing":"Updating",o,l)}}}}var RS={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},DS=ye({menuitem:!0},RS),_S="__html";function gf(e,t){if(t){if(DS[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"||!(_S 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&&f("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 _i(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"},Bm={"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},fo={},kS=new RegExp("^(aria)-["+G+"]*$"),MS=new RegExp("^(aria)[A-Z]["+G+"]*$");function LS(e,t){{if(En.call(fo,t)&&fo[t])return!0;if(MS.test(t)){var n="aria-"+t.slice(4).toLowerCase(),a=Bm.hasOwnProperty(n)?n:null;if(a==null)return f("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),fo[t]=!0,!0;if(t!==a)return f("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,a),fo[t]=!0,!0}if(kS.test(t)){var r=t.toLowerCase(),i=Bm.hasOwnProperty(r)?r:null;if(i==null)return fo[t]=!0,!1;if(t!==i)return f("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),fo[t]=!0,!0}}return!0}function OS(e,t){{var n=[];for(var a in t){var r=LS(e,a);r||n.push(a)}var i=n.map(function(o){return"`"+o+"`"}).join(", ");n.length===1?f("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e):n.length>1&&f("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e)}}function AS(e,t){_i(e,t)||OS(e,t)}var $m=!1;function NS(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!$m&&($m=!0,e==="select"&&t.multiple?f("`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):f("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var Pm=function(){};{var na={},Ym=/^on./,jS=/^on[^A-Z]/,US=new RegExp("^(aria)-["+G+"]*$"),HS=new RegExp("^(aria)[A-Z]["+G+"]*$");Pm=function(e,t,n,a){if(En.call(na,t)&&na[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return f("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."),na[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 f("Invalid event handler property `%s`. Did you mean `%s`?",t,l),na[t]=!0,!0;if(Ym.test(t))return f("Unknown event handler property `%s`. It will be ignored.",t),na[t]=!0,!0}else if(Ym.test(t))return jS.test(t)&&f("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),na[t]=!0,!0;if(US.test(t)||HS.test(t))return!0;if(r==="innerhtml")return f("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),na[t]=!0,!0;if(r==="aria")return f("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),na[t]=!0,!0;if(r==="is"&&n!==null&&n!==void 0&&typeof n!="string")return f("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),na[t]=!0,!0;if(typeof n=="number"&&isNaN(n))return f("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),na[t]=!0,!0;var u=Ft(t),c=u!==null&&u.type===Ct;if(es.hasOwnProperty(r)){var d=es[r];if(d!==t)return f("Invalid DOM property `%s`. Did you mean `%s`?",t,d),na[t]=!0,!0}else if(!c&&t!==r)return f("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),na[t]=!0,!0;return typeof n=="boolean"&&Pt(t,n,u,!1)?(n?f('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):f('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),na[t]=!0,!0):c?!0:Pt(t,n,u,!1)?(na[t]=!0,!1):((n==="false"||n==="true")&&u!==null&&u.type===Lt&&(f("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),na[t]=!0),!0)}}var zS=function(e,t,n){{var a=[];for(var r in t){var i=Pm(e,r,t[r],n);i||a.push(r)}var o=a.map(function(l){return"`"+l+"`"}).join(", ");a.length===1?f("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&&f("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 FS(e,t,n){_i(e,t)||zS(e,t,n)}var Im=1,bf=2,bl=4,VS=Im|bf|bl,Sl=null;function BS(e){Sl!==null&&f("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Sl=e}function $S(){Sl===null&&f("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Sl=null}function PS(e){return e===Sl}function Sf(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===_r?t.parentNode:t}var Tf=null,vo=null,po=null;function Wm(e){var t=li(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 YS(e){Tf=e}function qm(e){vo?po?po.push(e):po=[e]:vo=e}function IS(){return vo!==null||po!==null}function Gm(){if(vo){var e=vo,t=po;if(vo=null,po=null,Wm(e),t)for(var n=0;n<t.length;n++)Wm(t[n])}}var Xm=function(e,t){return e(t)},Qm=function(){},Ef=!1;function WS(){var e=IS();e&&(Qm(),Gm())}function Km(e,t,n){if(Ef)return e(t,n);Ef=!0;try{return Xm(e,t,n)}finally{Ef=!1,WS()}}function qS(e,t,n){Xm=e,Qm=n}function GS(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function XS(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&&GS(t));default:return!1}}function Tl(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(XS(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(en)try{var El={};Object.defineProperty(El,"passive",{get:function(){Cf=!0}}),window.addEventListener("test",El,El),window.removeEventListener("test",El,El)}catch{Cf=!1}function Jm(e,t,n,a,r,i,o,l,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(d){this.onError(d)}}var Zm=Jm;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var xf=document.createElement("react");Zm=function(t,n,a,r,i,o,l,u,c){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var d=document.createEvent("Event"),E=!1,S=!0,_=window.event,O=Object.getOwnPropertyDescriptor(window,"event");function N(){xf.removeEventListener(j,ke,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=_)}var oe=Array.prototype.slice.call(arguments,3);function ke(){E=!0,N(),n.apply(a,oe),S=!1}var Ce,dt=!1,lt=!1;function R(D){if(Ce=D.error,dt=!0,Ce===null&&D.colno===0&&D.lineno===0&&(lt=!0),D.defaultPrevented&&Ce!=null&&typeof Ce=="object")try{Ce._suppressLogging=!0}catch{}}var j="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",R),xf.addEventListener(j,ke,!1),d.initEvent(j,!1,!1),xf.dispatchEvent(d),O&&Object.defineProperty(window,"event",O),E&&S&&(dt?lt&&(Ce=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.")):Ce=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(Ce)),window.removeEventListener("error",R),!E)return N(),Jm.apply(this,arguments)}}var QS=Zm,mo=!1,ts=null,ns=!1,wf=null,KS={onError:function(e){mo=!0,ts=e}};function Rf(e,t,n,a,r,i,o,l,u){mo=!1,ts=null,QS.apply(KS,arguments)}function JS(e,t,n,a,r,i,o,l,u){if(Rf.apply(this,arguments),mo){var c=Df();ns||(ns=!0,wf=c)}}function ZS(){if(ns){var e=wf;throw ns=!1,wf=null,e}}function eT(){return mo}function Df(){if(mo){var e=ts;return mo=!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 ho(e){return e._reactInternals}function tT(e){return e._reactInternals!==void 0}function nT(e,t){e._reactInternals=t}var je=0,yo=1,_n=2,wt=4,ki=16,as=32,eh=64,_t=128,Mi=256,Li=512,go=1024,Zr=2048,Oi=4096,Ai=8192,_f=16384,aT=32767,rs=32768,Pa=65536,kf=131072,th=1048576,Mf=2097152,Ni=4194304,Lf=8388608,ei=16777216,Of=33554432,Af=wt|go|0,Nf=_n|wt|ki|as|Li|Oi|Ai,Cl=wt|eh|Li|Ai,bo=Zr|ki,Mr=Ni|Lf|Mf,rT=se.ReactCurrentOwner;function ji(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|Oi))!==je&&(n=t.return),a=t.return;while(a)}return t.tag===W?n:null}function nh(e){if(e.tag===M){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 ah(e){return e.tag===W?e.stateNode.containerInfo:null}function iT(e){return ji(e)===e}function oT(e){{var t=rT.current;if(t!==null&&t.tag===re){var n=t,a=n.stateNode;a._warnedAboutRefsInRender||f("%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=ho(e);return r?ji(r)===r:!1}function rh(e){if(ji(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function ih(e){var t=e.alternate;if(!t){var n=ji(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 rh(i),e;if(u===r)return rh(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 c=!1,d=i.child;d;){if(d===a){c=!0,a=i,r=o;break}if(d===r){c=!0,r=i,a=o;break}d=d.sibling}if(!c){for(d=o.child;d;){if(d===a){c=!0,a=o,r=i;break}if(d===r){c=!0,r=o,a=i;break}d=d.sibling}if(!c)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!==W)throw new Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function oh(e){var t=ih(e);return t!==null?lh(t):null}function lh(e){if(e.tag===ne||e.tag===Le)return e;for(var t=e.child;t!==null;){var n=lh(t);if(n!==null)return n;t=t.sibling}return null}function lT(e){var t=ih(e);return t!==null?uh(t):null}function uh(e){if(e.tag===ne||e.tag===Le)return e;for(var t=e.child;t!==null;){if(t.tag!==z){var n=uh(t);if(n!==null)return n}t=t.sibling}return null}var sh=k.unstable_scheduleCallback,uT=k.unstable_cancelCallback,sT=k.unstable_shouldYield,cT=k.unstable_requestPaint,kn=k.unstable_now,fT=k.unstable_getCurrentPriorityLevel,is=k.unstable_ImmediatePriority,jf=k.unstable_UserBlockingPriority,Ui=k.unstable_NormalPriority,dT=k.unstable_LowPriority,Uf=k.unstable_IdlePriority,vT=k.unstable_yieldValue,pT=k.unstable_setDisableYieldValue,So=null,Pn=null,de=null,ur=!1,Ya=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function mT(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 f("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{Ve&&(e=ye({},e,{getLaneLabelMap:TT,injectProfilingHooks:ST})),So=t.inject(e),Pn=t}catch(n){f("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function hT(e,t){if(Pn&&typeof Pn.onScheduleFiberRoot=="function")try{Pn.onScheduleFiberRoot(So,e,t)}catch(n){ur||(ur=!0,f("React instrumentation encountered an error: %s",n))}}function yT(e,t){if(Pn&&typeof Pn.onCommitFiberRoot=="function")try{var n=(e.current.flags&_t)===_t;if(Ue){var a;switch(t){case Ea:a=is;break;case Or:a=jf;break;case Ar:a=Ui;break;case ds:a=Uf;break;default:a=Ui;break}Pn.onCommitFiberRoot(So,e,a,n)}}catch(r){ur||(ur=!0,f("React instrumentation encountered an error: %s",r))}}function gT(e){if(Pn&&typeof Pn.onPostCommitFiberRoot=="function")try{Pn.onPostCommitFiberRoot(So,e)}catch(t){ur||(ur=!0,f("React instrumentation encountered an error: %s",t))}}function bT(e){if(Pn&&typeof Pn.onCommitFiberUnmount=="function")try{Pn.onCommitFiberUnmount(So,e)}catch(t){ur||(ur=!0,f("React instrumentation encountered an error: %s",t))}}function Mn(e){if(typeof vT=="function"&&(pT(e),le(e)),Pn&&typeof Pn.setStrictMode=="function")try{Pn.setStrictMode(So,e)}catch(t){ur||(ur=!0,f("React instrumentation encountered an error: %s",t))}}function ST(e){de=e}function TT(){{for(var e=new Map,t=1,n=0;n<zf;n++){var a=BT(t);e.set(t,a),t*=2}return e}}function ET(e){de!==null&&typeof de.markCommitStarted=="function"&&de.markCommitStarted(e)}function ch(){de!==null&&typeof de.markCommitStopped=="function"&&de.markCommitStopped()}function xl(e){de!==null&&typeof de.markComponentRenderStarted=="function"&&de.markComponentRenderStarted(e)}function To(){de!==null&&typeof de.markComponentRenderStopped=="function"&&de.markComponentRenderStopped()}function CT(e){de!==null&&typeof de.markComponentPassiveEffectMountStarted=="function"&&de.markComponentPassiveEffectMountStarted(e)}function xT(){de!==null&&typeof de.markComponentPassiveEffectMountStopped=="function"&&de.markComponentPassiveEffectMountStopped()}function wT(e){de!==null&&typeof de.markComponentPassiveEffectUnmountStarted=="function"&&de.markComponentPassiveEffectUnmountStarted(e)}function RT(){de!==null&&typeof de.markComponentPassiveEffectUnmountStopped=="function"&&de.markComponentPassiveEffectUnmountStopped()}function DT(e){de!==null&&typeof de.markComponentLayoutEffectMountStarted=="function"&&de.markComponentLayoutEffectMountStarted(e)}function _T(){de!==null&&typeof de.markComponentLayoutEffectMountStopped=="function"&&de.markComponentLayoutEffectMountStopped()}function fh(e){de!==null&&typeof de.markComponentLayoutEffectUnmountStarted=="function"&&de.markComponentLayoutEffectUnmountStarted(e)}function dh(){de!==null&&typeof de.markComponentLayoutEffectUnmountStopped=="function"&&de.markComponentLayoutEffectUnmountStopped()}function kT(e,t,n){de!==null&&typeof de.markComponentErrored=="function"&&de.markComponentErrored(e,t,n)}function MT(e,t,n){de!==null&&typeof de.markComponentSuspended=="function"&&de.markComponentSuspended(e,t,n)}function LT(e){de!==null&&typeof de.markLayoutEffectsStarted=="function"&&de.markLayoutEffectsStarted(e)}function OT(){de!==null&&typeof de.markLayoutEffectsStopped=="function"&&de.markLayoutEffectsStopped()}function AT(e){de!==null&&typeof de.markPassiveEffectsStarted=="function"&&de.markPassiveEffectsStarted(e)}function NT(){de!==null&&typeof de.markPassiveEffectsStopped=="function"&&de.markPassiveEffectsStopped()}function vh(e){de!==null&&typeof de.markRenderStarted=="function"&&de.markRenderStarted(e)}function jT(){de!==null&&typeof de.markRenderYielded=="function"&&de.markRenderYielded()}function ph(){de!==null&&typeof de.markRenderStopped=="function"&&de.markRenderStopped()}function UT(e){de!==null&&typeof de.markRenderScheduled=="function"&&de.markRenderScheduled(e)}function HT(e,t){de!==null&&typeof de.markForceUpdateScheduled=="function"&&de.markForceUpdateScheduled(e,t)}function Hf(e,t){de!==null&&typeof de.markStateUpdateScheduled=="function"&&de.markStateUpdateScheduled(e,t)}var Oe=0,ct=1,At=2,an=8,sr=16,mh=Math.clz32?Math.clz32:VT,zT=Math.log,FT=Math.LN2;function VT(e){var t=e>>>0;return t===0?32:31-(zT(t)/FT|0)|0}var zf=31,P=0,Ln=0,Be=1,Eo=2,Lr=4,Hi=8,cr=16,wl=32,Co=4194240,Rl=64,Ff=128,Vf=256,Bf=512,$f=1024,Pf=2048,Yf=4096,If=8192,Wf=16384,qf=32768,Gf=65536,Xf=131072,Qf=262144,Kf=524288,Jf=1048576,Zf=2097152,os=130023424,xo=4194304,ed=8388608,td=16777216,nd=33554432,ad=67108864,hh=xo,Dl=134217728,yh=268435455,_l=268435456,zi=536870912,Aa=1073741824;function BT(e){{if(e&Be)return"Sync";if(e&Eo)return"InputContinuousHydration";if(e&Lr)return"InputContinuous";if(e&Hi)return"DefaultHydration";if(e&cr)return"Default";if(e&wl)return"TransitionHydration";if(e&Co)return"Transition";if(e&os)return"Retry";if(e&Dl)return"SelectiveHydration";if(e&_l)return"IdleHydration";if(e&zi)return"Idle";if(e&Aa)return"Offscreen"}}var qt=-1,ls=Rl,us=xo;function kl(e){switch(Fi(e)){case Be:return Be;case Eo:return Eo;case Lr:return Lr;case Hi:return Hi;case cr:return cr;case wl:return wl;case Rl:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Jf:case Zf:return e&Co;case xo:case ed:case td:case nd:case ad:return e&os;case Dl:return Dl;case _l:return _l;case zi:return zi;case Aa:return Aa;default:return f("Should have found matching lanes. This is a bug in React."),e}}function ss(e,t){var n=e.pendingLanes;if(n===P)return P;var a=P,r=e.suspendedLanes,i=e.pingedLanes,o=n&yh;if(o!==P){var l=o&~r;if(l!==P)a=kl(l);else{var u=o&i;u!==P&&(a=kl(u))}}else{var c=n&~r;c!==P?a=kl(c):i!==P&&(a=kl(i))}if(a===P)return P;if(t!==P&&t!==a&&(t&r)===P){var d=Fi(a),E=Fi(t);if(d>=E||d===cr&&(E&Co)!==P)return t}(a&Lr)!==P&&(a|=n&cr);var S=e.entangledLanes;if(S!==P)for(var _=e.entanglements,O=a&S;O>0;){var N=Vi(O),oe=1<<N;a|=_[N],O&=~oe}return a}function $T(e,t){for(var n=e.eventTimes,a=qt;t>0;){var r=Vi(t),i=1<<r,o=n[r];o>a&&(a=o),t&=~i}return a}function PT(e,t){switch(e){case Be:case Eo:case Lr:return t+250;case Hi:case cr:case wl:case Rl:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Jf:case Zf:return t+5e3;case xo:case ed:case td:case nd:case ad:return qt;case Dl:case _l:case zi:case Aa:return qt;default:return f("Should have found matching lanes. This is a bug in React."),qt}}function YT(e,t){for(var n=e.pendingLanes,a=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=n;o>0;){var l=Vi(o),u=1<<l,c=i[l];c===qt?((u&a)===P||(u&r)!==P)&&(i[l]=PT(u,t)):c<=t&&(e.expiredLanes|=u),o&=~u}}function IT(e){return kl(e.pendingLanes)}function rd(e){var t=e.pendingLanes&-1073741825;return t!==P?t:t&Aa?Aa:P}function WT(e){return(e&Be)!==P}function id(e){return(e&yh)!==P}function gh(e){return(e&os)===e}function qT(e){var t=Be|Lr|cr;return(e&t)===P}function GT(e){return(e&Co)===e}function cs(e,t){var n=Eo|Lr|Hi|cr;return(t&n)!==P}function XT(e,t){return(t&e.expiredLanes)!==P}function bh(e){return(e&Co)!==P}function Sh(){var e=ls;return ls<<=1,(ls&Co)===P&&(ls=Rl),e}function QT(){var e=us;return us<<=1,(us&os)===P&&(us=xo),e}function Fi(e){return e&-e}function Ml(e){return Fi(e)}function Vi(e){return 31-mh(e)}function od(e){return Vi(e)}function Ta(e,t){return(e&t)!==P}function wo(e,t){return(e&t)===t}function tt(e,t){return e|t}function fs(e,t){return e&~t}function Th(e,t){return e&t}function y_(e){return e}function KT(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 Ll(e,t,n){e.pendingLanes|=t,t!==zi&&(e.suspendedLanes=P,e.pingedLanes=P);var a=e.eventTimes,r=od(t);a[r]=n}function JT(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,a=t;a>0;){var r=Vi(a),i=1<<r;n[r]=qt,a&=~i}}function Eh(e,t,n){e.pingedLanes|=e.suspendedLanes&t}function ZT(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=P,e.pingedLanes=P,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=Vi(o),u=1<<l;a[l]=P,r[l]=qt,i[l]=qt,o&=~u}}function ud(e,t){for(var n=e.entangledLanes|=t,a=e.entanglements,r=n;r;){var i=Vi(r),o=1<<i;o&t|a[i]&t&&(a[i]|=t),r&=~o}}function eE(e,t){var n=Fi(t),a;switch(n){case Lr:a=Eo;break;case cr:a=Hi;break;case Rl:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case If:case Wf:case qf:case Gf:case Xf:case Qf:case Kf:case Jf:case Zf:case xo:case ed:case td:case nd:case ad:a=wl;break;case zi:a=_l;break;default:a=Ln;break}return(a&(e.suspendedLanes|t))!==Ln?Ln:a}function Ch(e,t,n){if(Ya)for(var a=e.pendingUpdatersLaneMap;n>0;){var r=od(n),i=1<<r,o=a[r];o.add(t),n&=~i}}function xh(e,t){if(Ya)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 wh(e,t){return null}var Ea=Be,Or=Lr,Ar=cr,ds=zi,Ol=Ln;function Ia(){return Ol}function On(e){Ol=e}function tE(e,t){var n=Ol;try{return Ol=e,t()}finally{Ol=n}}function nE(e,t){return e!==0&&e<t?e:t}function aE(e,t){return e>t?e:t}function sd(e,t){return e!==0&&e<t}function Rh(e){var t=Fi(e);return sd(Ea,t)?sd(Or,t)?id(t)?Ar:ds:Or:Ea}function vs(e){var t=e.current.memoizedState;return t.isDehydrated}var Dh;function rE(e){Dh=e}function iE(e){Dh(e)}var cd;function oE(e){cd=e}var _h;function lE(e){_h=e}var kh;function uE(e){kh=e}var Mh;function sE(e){Mh=e}var fd=!1,ps=[],ti=null,ni=null,ai=null,Al=new Map,Nl=new Map,ri=[],cE=["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 fE(e){return cE.indexOf(e)>-1}function dE(e,t,n,a,r){return{blockedOn:e,domEventName:t,eventSystemFlags:n,nativeEvent:r,targetContainers:[a]}}function Lh(e,t){switch(e){case"focusin":case"focusout":ti=null;break;case"dragenter":case"dragleave":ni=null;break;case"mouseover":case"mouseout":ai=null;break;case"pointerover":case"pointerout":{var n=t.pointerId;Al.delete(n);break}case"gotpointercapture":case"lostpointercapture":{var a=t.pointerId;Nl.delete(a);break}}}function jl(e,t,n,a,r,i){if(e===null||e.nativeEvent!==i){var o=dE(t,n,a,r,i);if(t!==null){var l=li(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 vE(e,t,n,a,r){switch(t){case"focusin":{var i=r;return ti=jl(ti,e,t,n,a,i),!0}case"dragenter":{var o=r;return ni=jl(ni,e,t,n,a,o),!0}case"mouseover":{var l=r;return ai=jl(ai,e,t,n,a,l),!0}case"pointerover":{var u=r,c=u.pointerId;return Al.set(c,jl(Al.get(c)||null,e,t,n,a,u)),!0}case"gotpointercapture":{var d=r,E=d.pointerId;return Nl.set(E,jl(Nl.get(E)||null,e,t,n,a,d)),!0}}return!1}function Oh(e){var t=Pi(e.target);if(t!==null){var n=ji(t);if(n!==null){var a=n.tag;if(a===M){var r=nh(n);if(r!==null){e.blockedOn=r,Mh(e.priority,function(){_h(n)});return}}else if(a===W){var i=n.stateNode;if(vs(i)){e.blockedOn=ah(n);return}}}}e.blockedOn=null}function pE(e){for(var t=kh(),n={blockedOn:null,target:e,priority:t},a=0;a<ri.length&&sd(t,ri[a].priority);a++);ri.splice(a,0,n),a===0&&Oh(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);BS(i),r.target.dispatchEvent(i),$S()}else{var o=li(a);return o!==null&&cd(o),e.blockedOn=a,!1}t.shift()}return!0}function Ah(e,t,n){ms(e)&&n.delete(t)}function mE(){fd=!1,ti!==null&&ms(ti)&&(ti=null),ni!==null&&ms(ni)&&(ni=null),ai!==null&&ms(ai)&&(ai=null),Al.forEach(Ah),Nl.forEach(Ah)}function Ul(e,t){e.blockedOn===t&&(e.blockedOn=null,fd||(fd=!0,k.unstable_scheduleCallback(k.unstable_NormalPriority,mE)))}function Hl(e){if(ps.length>0){Ul(ps[0],e);for(var t=1;t<ps.length;t++){var n=ps[t];n.blockedOn===e&&(n.blockedOn=null)}}ti!==null&&Ul(ti,e),ni!==null&&Ul(ni,e),ai!==null&&Ul(ai,e);var a=function(l){return Ul(l,e)};Al.forEach(a),Nl.forEach(a);for(var r=0;r<ri.length;r++){var i=ri[r];i.blockedOn===e&&(i.blockedOn=null)}for(;ri.length>0;){var o=ri[0];if(o.blockedOn!==null)break;Oh(o),o.blockedOn===null&&ri.shift()}}var Ro=se.ReactCurrentBatchConfig,dd=!0;function Nh(e){dd=!!e}function hE(){return dd}function yE(e,t,n){var a=jh(t),r;switch(a){case Ea:r=gE;break;case Or:r=bE;break;case Ar:default:r=vd;break}return r.bind(null,t,n,e)}function gE(e,t,n,a){var r=Ia(),i=Ro.transition;Ro.transition=null;try{On(Ea),vd(e,t,n,a)}finally{On(r),Ro.transition=i}}function bE(e,t,n,a){var r=Ia(),i=Ro.transition;Ro.transition=null;try{On(Or),vd(e,t,n,a)}finally{On(r),Ro.transition=i}}function vd(e,t,n,a){dd&&SE(e,t,n,a)}function SE(e,t,n,a){var r=pd(e,t,n,a);if(r===null){_d(e,t,a,hs,n),Lh(e,a);return}if(vE(r,e,t,n,a)){a.stopPropagation();return}if(Lh(e,a),t&bl&&fE(e)){for(;r!==null;){var i=li(r);i!==null&&iE(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=Pi(r);if(i!==null){var o=ji(i);if(o===null)i=null;else{var l=o.tag;if(l===M){var u=nh(o);if(u!==null)return u;i=null}else if(l===W){var c=o.stateNode;if(vs(c))return ah(o);i=null}else o!==i&&(i=null)}}return hs=i,null}function jh(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 Ea;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 Or;case"message":{var t=fT();switch(t){case is:return Ea;case jf:return Or;case Ui:case dT:return Ar;case Uf:return ds;default:return Ar}}default:return Ar}}function TE(e,t,n){return e.addEventListener(t,n,!1),n}function EE(e,t,n){return e.addEventListener(t,n,!0),n}function CE(e,t,n,a){return e.addEventListener(t,n,{capture:!0,passive:a}),n}function xE(e,t,n,a){return e.addEventListener(t,n,{passive:a}),n}var zl=null,md=null,Fl=null;function wE(e){return zl=e,md=Hh(),!0}function RE(){zl=null,md=null,Fl=null}function Uh(){if(Fl)return Fl;var e,t=md,n=t.length,a,r=Hh(),i=r.length;for(e=0;e<n&&t[e]===r[e];e++);var o=n-e;for(a=1;a<=o&&t[n-a]===r[i-a];a++);var l=a>1?1-a:void 0;return Fl=r.slice(e,l),Fl}function Hh(){return"value"in zl?zl.value:zl.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 zh(){return!1}function Ca(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 c=i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1;return c?this.isDefaultPrevented=gs:this.isDefaultPrevented=zh,this.isPropagationStopped=zh,this}return ye(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 Do={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hd=Ca(Do),Vl=ye({},Do,{view:0,detail:0}),DE=Ca(Vl),yd,gd,Bl;function _E(e){e!==Bl&&(Bl&&e.type==="mousemove"?(yd=e.screenX-Bl.screenX,gd=e.screenY-Bl.screenY):(yd=0,gd=0),Bl=e)}var bs=ye({},Vl,{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:(_E(e),yd)},movementY:function(e){return"movementY"in e?e.movementY:gd}}),Fh=Ca(bs),kE=ye({},bs,{dataTransfer:0}),ME=Ca(kE),LE=ye({},Vl,{relatedTarget:0}),bd=Ca(LE),OE=ye({},Do,{animationName:0,elapsedTime:0,pseudoElement:0}),AE=Ca(OE),NE=ye({},Do,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),jE=Ca(NE),UE=ye({},Do,{data:0}),Vh=Ca(UE),HE=Vh,zE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FE={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 VE(e){if(e.key){var t=zE[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"?FE[e.keyCode]||"Unidentified":""}var BE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function $E(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var a=BE[e];return a?!!n[a]:!1}function Sd(e){return $E}var PE=ye({},Vl,{key:VE,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}}),YE=Ca(PE),IE=ye({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bh=Ca(IE),WE=ye({},Vl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sd}),qE=Ca(WE),GE=ye({},Do,{propertyName:0,elapsedTime:0,pseudoElement:0}),XE=Ca(GE),QE=ye({},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}),KE=Ca(QE),JE=[9,13,27,32],$h=229,Td=en&&"CompositionEvent"in window,$l=null;en&&"documentMode"in document&&($l=document.documentMode);var ZE=en&&"TextEvent"in window&&!$l,Ph=en&&(!Td||$l&&$l>8&&$l<=11),Yh=32,Ih=String.fromCharCode(Yh);function eC(){Qe("onBeforeInput",["compositionend","keypress","textInput","paste"]),Qe("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),Qe("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),Qe("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var Wh=!1;function tC(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function nC(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function aC(e,t){return e==="keydown"&&t.keyCode===$h}function qh(e,t){switch(e){case"keyup":return JE.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==$h;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gh(e){var t=e.detail;return typeof t=="object"&&"data"in t?t.data:null}function Xh(e){return e.locale==="ko"}var _o=!1;function rC(e,t,n,a,r){var i,o;if(Td?i=nC(t):_o?qh(t,a)&&(i="onCompositionEnd"):aC(t,a)&&(i="onCompositionStart"),!i)return null;Ph&&!Xh(a)&&(!_o&&i==="onCompositionStart"?_o=wE(r):i==="onCompositionEnd"&&_o&&(o=Uh()));var l=xs(n,i);if(l.length>0){var u=new Vh(i,t,null,a,r);if(e.push({event:u,listeners:l}),o)u.data=o;else{var c=Gh(a);c!==null&&(u.data=c)}}}function iC(e,t){switch(e){case"compositionend":return Gh(t);case"keypress":var n=t.which;return n!==Yh?null:(Wh=!0,Ih);case"textInput":var a=t.data;return a===Ih&&Wh?null:a;default:return null}}function oC(e,t){if(_o){if(e==="compositionend"||!Td&&qh(e,t)){var n=Uh();return RE(),_o=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!tC(t)){if(t.char&&t.char.length>1)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Ph&&!Xh(t)?null:t.data;default:return null}}function lC(e,t,n,a,r){var i;if(ZE?i=iC(t,a):i=oC(t,a),!i)return null;var o=xs(n,"onBeforeInput");if(o.length>0){var l=new HE("onBeforeInput","beforeinput",null,a,r);e.push({event:l,listeners:o}),l.data=i}}function uC(e,t,n,a,r,i,o){rC(e,t,n,a,r),lC(e,t,n,a,r)}var sC={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 Qh(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!sC[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 cC(e){if(!en)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 fC(){Qe("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function Kh(e,t,n,a){qm(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 Pl=null,Yl=null;function dC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function vC(e){var t=[];Kh(t,Yl,e,Sf(e)),Km(pC,t)}function pC(e){my(e,0)}function Ss(e){var t=No(e);if(vl(t))return e}function mC(e,t){if(e==="change")return t}var Jh=!1;en&&(Jh=cC("input")&&(!document.documentMode||document.documentMode>9));function hC(e,t){Pl=e,Yl=t,Pl.attachEvent("onpropertychange",ey)}function Zh(){Pl&&(Pl.detachEvent("onpropertychange",ey),Pl=null,Yl=null)}function ey(e){e.propertyName==="value"&&Ss(Yl)&&vC(e)}function yC(e,t,n){e==="focusin"?(Zh(),hC(t,n)):e==="focusout"&&Zh()}function gC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ss(Yl)}function bC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function SC(e,t){if(e==="click")return Ss(t)}function TC(e,t){if(e==="input"||e==="change")return Ss(t)}function EC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Ne(e,"number",e.value)}function CC(e,t,n,a,r,i,o){var l=n?No(n):window,u,c;if(dC(l)?u=mC:Qh(l)?Jh?u=TC:(u=gC,c=yC):bC(l)&&(u=SC),u){var d=u(t,n);if(d){Kh(e,d,a,r);return}}c&&c(t,l,n),t==="focusout"&&EC(l)}function xC(){Xt("onMouseEnter",["mouseout","mouseover"]),Xt("onMouseLeave",["mouseout","mouseover"]),Xt("onPointerEnter",["pointerout","pointerover"]),Xt("onPointerLeave",["pointerout","pointerover"])}function wC(e,t,n,a,r,i,o){var l=t==="mouseover"||t==="pointerover",u=t==="mouseout"||t==="pointerout";if(l&&!PS(a)){var c=a.relatedTarget||a.fromElement;if(c&&(Pi(c)||iu(c)))return}if(!(!u&&!l)){var d;if(r.window===r)d=r;else{var E=r.ownerDocument;E?d=E.defaultView||E.parentWindow:d=window}var S,_;if(u){var O=a.relatedTarget||a.toElement;if(S=n,_=O?Pi(O):null,_!==null){var N=ji(_);(_!==N||_.tag!==ne&&_.tag!==Le)&&(_=null)}}else S=null,_=n;if(S!==_){var oe=Fh,ke="onMouseLeave",Ce="onMouseEnter",dt="mouse";(t==="pointerout"||t==="pointerover")&&(oe=Bh,ke="onPointerLeave",Ce="onPointerEnter",dt="pointer");var lt=S==null?d:No(S),R=_==null?d:No(_),j=new oe(ke,dt+"leave",S,a,r);j.target=lt,j.relatedTarget=R;var D=null,Y=Pi(r);if(Y===n){var pe=new oe(Ce,dt+"enter",_,a,r);pe.target=R,pe.relatedTarget=lt,D=pe}XC(e,j,D,S,_)}}}function RC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var xa=typeof Object.is=="function"?Object.is:RC;function Il(e,t){if(xa(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(!En.call(t,i)||!xa(e[i],t[i]))return!1}return!0}function ty(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function DC(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function ny(e,t){for(var n=ty(e),a=0,r=0;n;){if(n.nodeType===_r){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=ty(DC(n))}}function _C(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 kC(e,r,i,o,l)}function kC(e,t,n,a,r){var i=0,o=-1,l=-1,u=0,c=0,d=e,E=null;e:for(;;){for(var S=null;d===t&&(n===0||d.nodeType===_r)&&(o=i+n),d===a&&(r===0||d.nodeType===_r)&&(l=i+r),d.nodeType===_r&&(i+=d.nodeValue.length),(S=d.firstChild)!==null;)E=d,d=S;for(;;){if(d===e)break e;if(E===t&&++u===n&&(o=i),E===a&&++c===r&&(l=i),(S=d.nextSibling)!==null)break;d=E,E=d.parentNode}d=S}return o===-1||l===-1?null:{start:o,end:l}}function MC(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 c=ny(e,o),d=ny(e,l);if(c&&d){if(r.rangeCount===1&&r.anchorNode===c.node&&r.anchorOffset===c.offset&&r.focusNode===d.node&&r.focusOffset===d.offset)return;var E=n.createRange();E.setStart(c.node,c.offset),r.removeAllRanges(),o>l?(r.addRange(E),r.extend(d.node,d.offset)):(E.setEnd(d.node,d.offset),r.addRange(E))}}}function ay(e){return e&&e.nodeType===_r}function ry(e,t){return!e||!t?!1:e===t?!0:ay(e)?!1:ay(t)?ry(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1}function LC(e){return e&&e.ownerDocument&&ry(e.ownerDocument.documentElement,e)}function OC(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function iy(){for(var e=window,t=wr();t instanceof e.HTMLIFrameElement;){if(OC(t))e=t.contentWindow;else return t;t=wr(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 AC(){var e=iy();return{focusedElem:e,selectionRange:Ed(e)?jC(e):null}}function NC(e){var t=iy(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&LC(n)){a!==null&&Ed(n)&&UC(n,a);for(var r=[],i=n;i=i.parentNode;)i.nodeType===ca&&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 jC(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=_C(e),t||{start:0,end:0}}function UC(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)):MC(e,t)}var HC=en&&"documentMode"in document&&document.documentMode<=11;function zC(){Qe("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var ko=null,Cd=null,Wl=null,xd=!1;function FC(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 VC(e){return e.window===e?e.document:e.nodeType===kr?e:e.ownerDocument}function oy(e,t,n){var a=VC(n);if(!(xd||ko==null||ko!==wr(a))){var r=FC(ko);if(!Wl||!Il(Wl,r)){Wl=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=ko}}}}function BC(e,t,n,a,r,i,o){var l=n?No(n):window;switch(t){case"focusin":(Qh(l)||l.contentEditable==="true")&&(ko=l,Cd=n,Wl=null);break;case"focusout":ko=null,Cd=null,Wl=null;break;case"mousedown":xd=!0;break;case"contextmenu":case"mouseup":case"dragend":xd=!1,oy(e,a,r);break;case"selectionchange":if(HC)break;case"keydown":case"keyup":oy(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 Mo={animationend:Ts("Animation","AnimationEnd"),animationiteration:Ts("Animation","AnimationIteration"),animationstart:Ts("Animation","AnimationStart"),transitionend:Ts("Transition","TransitionEnd")},wd={},ly={};en&&(ly=document.createElement("div").style,"AnimationEvent"in window||(delete Mo.animationend.animation,delete Mo.animationiteration.animation,delete Mo.animationstart.animation),"TransitionEvent"in window||delete Mo.transitionend.transition);function Es(e){if(wd[e])return wd[e];if(!Mo[e])return e;var t=Mo[e];for(var n in t)if(t.hasOwnProperty(n)&&n in ly)return wd[e]=t[n];return e}var uy=Es("animationend"),sy=Es("animationiteration"),cy=Es("animationstart"),fy=Es("transitionend"),dy=new Map,vy=["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 ii(e,t){dy.set(e,t),Qe(t,[e])}function $C(){for(var e=0;e<vy.length;e++){var t=vy[e],n=t.toLowerCase(),a=t[0].toUpperCase()+t.slice(1);ii(n,"on"+a)}ii(uy,"onAnimationEnd"),ii(sy,"onAnimationIteration"),ii(cy,"onAnimationStart"),ii("dblclick","onDoubleClick"),ii("focusin","onFocus"),ii("focusout","onBlur"),ii(fy,"onTransitionEnd")}function PC(e,t,n,a,r,i,o){var l=dy.get(t);if(l!==void 0){var u=hd,c=t;switch(t){case"keypress":if(ys(a)===0)return;case"keydown":case"keyup":u=YE;break;case"focusin":c="focus",u=bd;break;case"focusout":c="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=Fh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=ME;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=qE;break;case uy:case sy:case cy:u=AE;break;case fy:u=XE;break;case"scroll":u=DE;break;case"wheel":u=KE;break;case"copy":case"cut":case"paste":u=jE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Bh;break}var d=(i&bl)!==0;{var E=!d&&t==="scroll",S=qC(n,l,a.type,d,E);if(S.length>0){var _=new u(l,c,null,a,r);e.push({event:_,listeners:S})}}}}$C(),xC(),fC(),zC(),eC();function YC(e,t,n,a,r,i,o){PC(e,t,n,a,r,i);var l=(i&VS)===0;l&&(wC(e,t,n,a,r),CC(e,t,n,a,r),BC(e,t,n,a,r),uC(e,t,n,a,r))}var ql=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Rd=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(ql));function py(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,JS(a,t,void 0,e),e.currentTarget=null}function IC(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;py(e,u,l),a=o}else for(var c=0;c<t.length;c++){var d=t[c],E=d.instance,S=d.currentTarget,_=d.listener;if(E!==a&&e.isPropagationStopped())return;py(e,_,S),a=E}}function my(e,t){for(var n=(t&bl)!==0,a=0;a<e.length;a++){var r=e[a],i=r.event,o=r.listeners;IC(i,o,n)}ZS()}function WC(e,t,n,a,r){var i=Sf(n),o=[];YC(o,e,a,n,i,t),my(o,t)}function Qt(e,t){Rd.has(e)||f('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=!1,a=E1(t),r=QC(e);a.has(r)||(hy(t,e,bf,n),a.add(r))}function Dd(e,t,n){Rd.has(e)&&!t&&f('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var a=0;t&&(a|=bl),hy(n,e,a,t)}var Cs="_reactListening"+Math.random().toString(36).slice(2);function Gl(e){if(!e[Cs]){e[Cs]=!0,Ze.forEach(function(n){n!=="selectionchange"&&(Rd.has(n)||Dd(n,!1,e),Dd(n,!0,e))});var t=e.nodeType===kr?e:e.ownerDocument;t!==null&&(t[Cs]||(t[Cs]=!0,Dd("selectionchange",!1,t)))}}function hy(e,t,n,a,r){var i=yE(e,t,n),o=void 0;Cf&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o=!0),e=e,a?o!==void 0?CE(e,t,i,o):EE(e,t,i):o!==void 0?xE(e,t,i,o):TE(e,t,i)}function yy(e,t){return e===t||e.nodeType===dn&&e.parentNode===t}function _d(e,t,n,a,r){var i=a;if(!(t&Im)&&!(t&bf)){var o=r;if(a!==null){var l=a;e:for(;;){if(l===null)return;var u=l.tag;if(u===W||u===z){var c=l.stateNode.containerInfo;if(yy(c,o))break;if(u===z)for(var d=l.return;d!==null;){var E=d.tag;if(E===W||E===z){var S=d.stateNode.containerInfo;if(yy(S,o))return}d=d.return}for(;c!==null;){var _=Pi(c);if(_===null)return;var O=_.tag;if(O===ne||O===Le){l=i=_;continue e}c=c.parentNode}}l=l.return}}}Km(function(){return WC(e,t,n,i)})}function Xl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function qC(e,t,n,a,r,i){for(var o=t!==null?t+"Capture":null,l=a?o:t,u=[],c=e,d=null;c!==null;){var E=c,S=E.stateNode,_=E.tag;if(_===ne&&S!==null&&(d=S,l!==null)){var O=Tl(c,l);O!=null&&u.push(Xl(c,O,d))}if(r)break;c=c.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===ne&&o!==null){var u=o,c=Tl(r,n);c!=null&&a.unshift(Xl(r,c,u));var d=Tl(r,t);d!=null&&a.push(Xl(r,d,u))}r=r.return}return a}function Lo(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==ne);return e||null}function GC(e,t){for(var n=e,a=t,r=0,i=n;i;i=Lo(i))r++;for(var o=0,l=a;l;l=Lo(l))o++;for(;r-o>0;)n=Lo(n),r--;for(;o-r>0;)a=Lo(a),o--;for(var u=r;u--;){if(n===a||a!==null&&n===a.alternate)return n;n=Lo(n),a=Lo(a)}return null}function gy(e,t,n,a,r){for(var i=t._reactName,o=[],l=n;l!==null&&l!==a;){var u=l,c=u.alternate,d=u.stateNode,E=u.tag;if(c!==null&&c===a)break;if(E===ne&&d!==null){var S=d;if(r){var _=Tl(l,i);_!=null&&o.unshift(Xl(l,_,S))}else if(!r){var O=Tl(l,i);O!=null&&o.push(Xl(l,O,S))}}l=l.return}o.length!==0&&e.push({event:t,listeners:o})}function XC(e,t,n,a,r){var i=a&&r?GC(a,r):null;a!==null&&gy(e,t,a,i,!1),r!==null&&n!==null&&gy(e,n,r,i,!0)}function QC(e,t){return e+"__bubble"}var fa=!1,Ql="dangerouslySetInnerHTML",ws="suppressContentEditableWarning",oi="suppressHydrationWarning",by="autoFocus",Bi="children",$i="style",Rs="__html",kd,Ds,Kl,Sy,_s,Ty,Ey;kd={dialog:!0,webview:!0},Ds=function(e,t){AS(e,t),NS(e,t),FS(e,t,{registrationNameDependencies:Ut,possibleRegistrationNames:pt})},Ty=en&&!document.documentMode,Kl=function(e,t,n){if(!fa){var a=ks(n),r=ks(t);r!==a&&(fa=!0,f("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},Sy=function(e){if(!fa){fa=!0;var t=[];e.forEach(function(n){t.push(n)}),f("Extra attributes from the server: %s",t)}},_s=function(e,t){t===!1?f("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):f("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},Ey=function(e,t){var n=e.namespaceURI===Dr?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var KC=/\r\n?/g,JC=/\u0000|\uFFFD/g;function ks(e){Ge(e);var t=typeof e=="string"?e:""+e;return t.replace(KC,`
|
|
`).replace(JC,"")}function Ms(e,t,n,a){var r=ks(t),i=ks(e);if(i!==r&&(a&&(fa||(fa=!0,f('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 Cy(e){return e.nodeType===kr?e:e.ownerDocument}function ZC(){}function Ls(e){e.onclick=ZC}function ex(e,t,n,a,r){for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(i===$i)o&&Object.freeze(o),Fm(t,o);else if(i===Ql){var l=o?o[Rs]:void 0;l!=null&&Nm(t,l)}else if(i===Bi)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&Zu(t,o)}else typeof o=="number"&&Zu(t,""+o);else i===ws||i===oi||i===by||(Ut.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&_s(i,o),i==="onScroll"&&Qt("scroll",t)):o!=null&&$n(t,i,o,r))}}function tx(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===$i?Fm(e,o):i===Ql?Nm(e,o):i===Bi?Zu(e,o):$n(e,i,o,a)}}function nx(e,t,n,a){var r,i=Cy(n),o,l=a;if(l===Dr&&(l=vf(e)),l===Dr){if(r=_i(e,t),!r&&e!==e.toLowerCase()&&f("<%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 c=u.firstChild;o=u.removeChild(c)}else if(typeof t.is=="string")o=i.createElement(e,{is:t.is});else if(o=i.createElement(e),e==="select"){var d=o;t.multiple?d.multiple=!0:t.size&&(d.size=t.size)}}else o=i.createElementNS(l,e);return l===Dr&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!En.call(kd,e)&&(kd[e]=!0,f("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 ax(e,t){return Cy(t).createTextNode(e)}function rx(e,t,n,a){var r=_i(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<ql.length;o++)Qt(ql[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=pl(e,n),Qt("invalid",e);break;case"option":Ot(e,n),i=n;break;case"select":yl(e,n),i=hl(e,n),Qt("invalid",e);break;case"textarea":Lm(e,n),i=ff(e,n),Qt("invalid",e);break;default:i=n}switch(gf(t,i),ex(t,e,a,i,r),t){case"input":Ri(e),L(e,n,!1);break;case"textarea":Ri(e),Am(e);break;case"option":It(e,n);break;case"select":sf(e,n);break;default:typeof i.onClick=="function"&&Ls(e);break}}function ix(e,t,n,a,r){Ds(t,a);var i=null,o,l;switch(t){case"input":o=pl(e,n),l=pl(e,a),i=[];break;case"select":o=hl(e,n),l=hl(e,a),i=[];break;case"textarea":o=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,c,d=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===$i){var E=o[u];for(c in E)E.hasOwnProperty(c)&&(d||(d={}),d[c]="")}else u===Ql||u===Bi||u===ws||u===oi||u===by||(Ut.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var S=l[u],_=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||S===_||S==null&&_==null))if(u===$i)if(S&&Object.freeze(S),_){for(c in _)_.hasOwnProperty(c)&&(!S||!S.hasOwnProperty(c))&&(d||(d={}),d[c]="");for(c in S)S.hasOwnProperty(c)&&_[c]!==S[c]&&(d||(d={}),d[c]=S[c])}else d||(i||(i=[]),i.push(u,d)),d=S;else if(u===Ql){var O=S?S[Rs]:void 0,N=_?_[Rs]:void 0;O!=null&&N!==O&&(i=i||[]).push(u,O)}else u===Bi?(typeof S=="string"||typeof S=="number")&&(i=i||[]).push(u,""+S):u===ws||u===oi||(Ut.hasOwnProperty(u)?(S!=null&&(typeof S!="function"&&_s(u,S),u==="onScroll"&&Qt("scroll",e)),!i&&_!==S&&(i=[])):(i=i||[]).push(u,S))}return d&&(wS(d,l[$i]),(i=i||[]).push($i,d)),i}function ox(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=_i(n,a),o=_i(n,r);switch(tx(e,t,i,o),n){case"input":m(e,r);break;case"textarea":Om(e,r);break;case"select":Ku(e,r);break}}function lx(e){{var t=e.toLowerCase();return es.hasOwnProperty(t)&&es[t]||null}}function ux(e,t,n,a,r,i,o){var l,u;switch(l=_i(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 c=0;c<ql.length;c++)Qt(ql[c],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":Ot(e,n);break;case"select":yl(e,n),Qt("invalid",e);break;case"textarea":Lm(e,n),Qt("invalid",e);break}gf(t,n);{u=new Set;for(var d=e.attributes,E=0;E<d.length;E++){var S=d[E].name.toLowerCase();switch(S){case"value":break;case"checked":break;case"selected":break;default:u.add(d[E].name)}}}var _=null;for(var O in n)if(n.hasOwnProperty(O)){var N=n[O];if(O===Bi)typeof N=="string"?e.textContent!==N&&(n[oi]!==!0&&Ms(e.textContent,N,i,o),_=[Bi,N]):typeof N=="number"&&e.textContent!==""+N&&(n[oi]!==!0&&Ms(e.textContent,N,i,o),_=[Bi,""+N]);else if(Ut.hasOwnProperty(O))N!=null&&(typeof N!="function"&&_s(O,N),O==="onScroll"&&Qt("scroll",e));else if(o&&typeof l=="boolean"){var oe=void 0,ke=Ft(O);if(n[oi]!==!0){if(!(O===ws||O===oi||O==="value"||O==="checked"||O==="selected")){if(O===Ql){var Ce=e.innerHTML,dt=N?N[Rs]:void 0;if(dt!=null){var lt=Ey(e,dt);lt!==Ce&&Kl(O,Ce,lt)}}else if(O===$i){if(u.delete(O),Ty){var R=CS(N);oe=e.getAttribute("style"),R!==oe&&Kl(O,oe,R)}}else if(l)u.delete(O.toLowerCase()),oe=Gr(e,O,N),N!==oe&&Kl(O,oe,N);else if(!Ht(O,ke,l)&&!cn(O,N,ke,l)){var j=!1;if(ke!==null)u.delete(ke.attributeName),oe=_a(e,O,N,ke);else{var D=a;if(D===Dr&&(D=vf(t)),D===Dr)u.delete(O.toLowerCase());else{var Y=lx(O);Y!==null&&Y!==O&&(j=!0,u.delete(Y)),u.delete(O)}oe=Gr(e,O,N)}var pe=ut;!pe&&N!==oe&&!j&&Kl(O,oe,N)}}}}}switch(o&&u.size>0&&n[oi]!==!0&&Sy(u),t){case"input":Ri(e),L(e,n,!0);break;case"textarea":Ri(e),Am(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&Ls(e);break}return _}function sx(e,t,n){var a=e.nodeValue!==t;return a}function Md(e,t){{if(fa)return;fa=!0,f("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function Ld(e,t){{if(fa)return;fa=!0,f('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function Od(e,t,n){{if(fa)return;fa=!0,f("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Ad(e,t){{if(t===""||fa)return;fa=!0,f('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function cx(e,t,n){switch(t){case"input":A(e,n);return;case"textarea":rS(e,n);return;case"select":cf(e,n);return}}var Jl=function(){},Zl=function(){};{var fx=["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"],xy=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],dx=xy.concat(["button"]),vx=["dd","dt","li","option","optgroup","p","rp","rt"],wy={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};Zl=function(e,t){var n=ye({},e||wy),a={tag:t};return xy.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),dx.indexOf(t)!==-1&&(n.pTagInButtonScope=null),fx.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 px=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 vx.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},mx=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},Ry={};Jl=function(e,t,n){n=n||wy;var a=n.current,r=a&&a.tag;t!=null&&(e!=null&&f("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var i=px(e,r)?null:a,o=i?null:mx(e,n),l=i||o;if(l){var u=l.tag,c=!!i+"|"+e+"|"+u;if(!Ry[c]){Ry[c]=!0;var d=e,E="";if(e==="#text"?/\S/.test(t)?d="Text nodes":(d="Whitespace text nodes",E=" Make sure you don't have any extra whitespace between tags on each line of your source code."):d="<"+e+">",i){var S="";u==="table"&&e==="tr"&&(S+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),f("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",d,u,E,S)}else f("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",d,u)}}}}var Os="suppressHydrationWarning",As="$",Ns="/$",eu="$?",tu="$!",hx="style",Nd=null,jd=null;function yx(e){var t,n,a=e.nodeType;switch(a){case kr:case mf:{t=a===kr?"#document":"#fragment";var r=e.documentElement;n=r?r.namespaceURI:pf(null,"");break}default:{var i=a===dn?e.parentNode:e,o=i.namespaceURI||null;t=i.tagName,n=pf(o,t);break}}{var l=t.toLowerCase(),u=Zl(null,l);return{namespace:n,ancestorInfo:u}}}function gx(e,t,n){{var a=e,r=pf(a.namespace,t),i=Zl(a.ancestorInfo,t);return{namespace:r,ancestorInfo:i}}}function g_(e){return e}function bx(e){Nd=hE(),jd=AC();var t=null;return Nh(!1),t}function Sx(e){NC(jd),Nh(Nd),Nd=null,jd=null}function Tx(e,t,n,a,r){var i;{var o=a;if(Jl(e,null,o.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var l=""+t.children,u=Zl(o.ancestorInfo,e);Jl(null,l,u)}i=o.namespace}var c=nx(e,t,n,i);return ru(r,c),Pd(c,t),c}function Ex(e,t){e.appendChild(t)}function Cx(e,t,n,a,r){switch(rx(e,t,n,a),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}function xx(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=Zl(o.ancestorInfo,t);Jl(null,l,u)}}return ix(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 wx(e,t,n,a){{var r=n;Jl(null,e,r.ancestorInfo)}var i=ax(e,t);return ru(a,i),i}function Rx(){var e=window.event;return e===void 0?Ar:jh(e.type)}var Hd=typeof setTimeout=="function"?setTimeout:void 0,Dx=typeof clearTimeout=="function"?clearTimeout:void 0,zd=-1,Dy=typeof Promise=="function"?Promise:void 0,_x=typeof queueMicrotask=="function"?queueMicrotask:typeof Dy<"u"?function(e){return Dy.resolve(null).then(e).catch(kx)}:Hd;function kx(e){setTimeout(function(){throw e})}function Mx(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 Lx(e,t,n,a,r,i){ox(e,t,n,a,r),Pd(e,r)}function _y(e){Zu(e,"")}function Ox(e,t,n){e.nodeValue=n}function Ax(e,t){e.appendChild(t)}function Nx(e,t){var n;e.nodeType===dn?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var a=e._reactRootContainer;a==null&&n.onclick===null&&Ls(n)}function jx(e,t,n){e.insertBefore(t,n)}function Ux(e,t,n){e.nodeType===dn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function Hx(e,t){e.removeChild(t)}function zx(e,t){e.nodeType===dn?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===dn){var i=r.data;if(i===Ns)if(a===0){e.removeChild(r),Hl(t);return}else a--;else(i===As||i===eu||i===tu)&&a++}n=r}while(n);Hl(t)}function Fx(e,t){e.nodeType===dn?Fd(e.parentNode,t):e.nodeType===ca&&Fd(e,t),Hl(e)}function Vx(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function Bx(e){e.nodeValue=""}function $x(e,t){e=e;var n=t[hx],a=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=hf("display",a)}function Px(e,t){e.nodeValue=t}function Yx(e){e.nodeType===ca?e.textContent="":e.nodeType===kr&&e.documentElement&&e.removeChild(e.documentElement)}function Ix(e,t,n){return e.nodeType!==ca||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Wx(e,t){return t===""||e.nodeType!==_r?null:e}function qx(e){return e.nodeType!==dn?null:e}function ky(e){return e.data===eu}function Vd(e){return e.data===tu}function Gx(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 Xx(e,t){e._reactRetry=t}function js(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===ca||t===_r)break;if(t===dn){var n=e.data;if(n===As||n===tu||n===eu)break;if(n===Ns)return null}}return e}function nu(e){return js(e.nextSibling)}function Qx(e){return js(e.firstChild)}function Kx(e){return js(e.firstChild)}function Jx(e){return js(e.nextSibling)}function Zx(e,t,n,a,r,i,o){ru(i,e),Pd(e,n);var l;{var u=r;l=u.namespace}var c=(i.mode&ct)!==Oe;return ux(e,t,n,l,a,c,o)}function e1(e,t,n,a){return ru(n,e),n.mode&ct,sx(e,t)}function t1(e,t){ru(t,e)}function n1(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===dn){var a=t.data;if(a===Ns){if(n===0)return nu(t);n--}else(a===As||a===tu||a===eu)&&n++}t=t.nextSibling}return null}function My(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===dn){var a=t.data;if(a===As||a===tu||a===eu){if(n===0)return t;n--}else a===Ns&&n++}t=t.previousSibling}return null}function a1(e){Hl(e)}function r1(e){Hl(e)}function i1(e){return e!=="head"&&e!=="body"}function o1(e,t,n,a){var r=!0;Ms(t.nodeValue,n,a,r)}function l1(e,t,n,a,r,i){if(t[Os]!==!0){var o=!0;Ms(a.nodeValue,r,i,o)}}function u1(e,t){t.nodeType===ca?Md(e,t):t.nodeType===dn||Ld(e,t)}function s1(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===ca?Md(n,t):t.nodeType===dn||Ld(n,t))}}function c1(e,t,n,a,r){(r||t[Os]!==!0)&&(a.nodeType===ca?Md(n,a):a.nodeType===dn||Ld(n,a))}function f1(e,t,n){Od(e,t)}function d1(e,t){Ad(e,t)}function v1(e,t,n){{var a=e.parentNode;a!==null&&Od(a,t)}}function p1(e,t){{var n=e.parentNode;n!==null&&Ad(n,t)}}function m1(e,t,n,a,r,i){(i||t[Os]!==!0)&&Od(n,a)}function h1(e,t,n,a,r){(r||t[Os]!==!0)&&Ad(n,a)}function y1(e){f("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function g1(e){Gl(e)}var Oo=Math.random().toString(36).slice(2),Ao="__reactFiber$"+Oo,Bd="__reactProps$"+Oo,au="__reactContainer$"+Oo,$d="__reactEvents$"+Oo,b1="__reactListeners$"+Oo,S1="__reactHandles$"+Oo;function T1(e){delete e[Ao],delete e[Bd],delete e[$d],delete e[b1],delete e[S1]}function ru(e,t){t[Ao]=e}function Us(e,t){t[au]=e}function Ly(e){e[au]=null}function iu(e){return!!e[au]}function Pi(e){var t=e[Ao];if(t)return t;for(var n=e.parentNode;n;){if(t=n[au]||n[Ao],t){var a=t.alternate;if(t.child!==null||a!==null&&a.child!==null)for(var r=My(e);r!==null;){var i=r[Ao];if(i)return i;r=My(r)}return t}e=n,n=e.parentNode}return null}function li(e){var t=e[Ao]||e[au];return t&&(t.tag===ne||t.tag===Le||t.tag===M||t.tag===W)?t:null}function No(e){if(e.tag===ne||e.tag===Le)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Hs(e){return e[Bd]||null}function Pd(e,t){e[Bd]=t}function E1(e){var t=e[$d];return t===void 0&&(t=e[$d]=new Set),t}var Oy={},Ay=se.ReactDebugCurrentFrame;function zs(e){if(e){var t=e._owner,n=ul(e.type,e._source,t?t.type:null);Ay.setExtraStackFrame(n)}else Ay.setExtraStackFrame(null)}function Wa(e,t,n,a,r){{var i=Function.call.bind(En);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(c){l=c}l&&!(l instanceof Error)&&(zs(r),f("%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 Oy)&&(Oy[l.message]=!0,zs(r),f("Failed %s type: %s",n,l.message),zs(null))}}}var Yd=[],Fs;Fs=[];var Nr=-1;function ui(e){return{current:e}}function Yn(e,t){if(Nr<0){f("Unexpected pop.");return}t!==Fs[Nr]&&f("Unexpected Fiber popped."),e.current=Yd[Nr],Yd[Nr]=null,Fs[Nr]=null,Nr--}function In(e,t,n){Nr++,Yd[Nr]=e.current,Fs[Nr]=n,e.current=t}var Id;Id={};var wa={};Object.freeze(wa);var jr=ui(wa),fr=ui(!1),Wd=wa;function jo(e,t,n){return n&&dr(t)?Wd:jr.current}function Ny(e,t,n){{var a=e.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=t,a.__reactInternalMemoizedMaskedChildContext=n}}function Uo(e,t){{var n=e.type,a=n.contextTypes;if(!a)return wa;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";Wa(a,i,"context",l)}return r&&Ny(e,t,i),i}}function Vs(){return fr.current}function dr(e){{var t=e.childContextTypes;return t!=null}}function Bs(e){Yn(fr,e),Yn(jr,e)}function qd(e){Yn(fr,e),Yn(jr,e)}function jy(e,t,n){{if(jr.current!==wa)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");In(jr,t,e),In(fr,n,e)}}function Uy(e,t,n){{var a=e.stateNode,r=t.childContextTypes;if(typeof a.getChildContext!="function"){{var i=Xe(e)||"Unknown";Id[i]||(Id[i]=!0,f("%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";Wa(r,o,"child context",u)}return ye({},n,o)}}function $s(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||wa;return Wd=jr.current,In(jr,n,e),In(fr,fr.current,e),!0}}function Hy(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=Uy(e,t,Wd);a.__reactInternalMemoizedMergedChildContext=r,Yn(fr,e),Yn(jr,e),In(jr,r,e),In(fr,n,e)}else Yn(fr,e),In(fr,n,e)}}function C1(e){{if(!iT(e)||e.tag!==re)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 W:return t.stateNode.context;case re:{var n=t.type;if(dr(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 si=0,Ps=1,Ur=null,Gd=!1,Xd=!1;function zy(e){Ur===null?Ur=[e]:Ur.push(e)}function x1(e){Gd=!0,zy(e)}function Fy(){Gd&&ci()}function ci(){if(!Xd&&Ur!==null){Xd=!0;var e=0,t=Ia();try{var n=!0,a=Ur;for(On(Ea);e<a.length;e++){var r=a[e];do r=r(n);while(r!==null)}Ur=null,Gd=!1}catch(i){throw Ur!==null&&(Ur=Ur.slice(e+1)),sh(is,ci),i}finally{On(t),Xd=!1}}return null}var Ho=[],zo=0,Ys=null,Is=0,Na=[],ja=0,Yi=null,Hr=1,zr="";function w1(e){return Wi(),(e.flags&th)!==je}function R1(e){return Wi(),Is}function D1(){var e=zr,t=Hr,n=t&~_1(t);return n.toString(32)+e}function Ii(e,t){Wi(),Ho[zo++]=Is,Ho[zo++]=Ys,Ys=e,Is=t}function Vy(e,t,n){Wi(),Na[ja++]=Hr,Na[ja++]=zr,Na[ja++]=Yi,Yi=e;var a=Hr,r=zr,i=Ws(a)-1,o=a&~(1<<i),l=n+1,u=Ws(t)+i;if(u>30){var c=i-i%5,d=(1<<c)-1,E=(o&d).toString(32),S=o>>c,_=i-c,O=Ws(t)+_,N=l<<_,oe=N|S,ke=E+r;Hr=1<<O|oe,zr=ke}else{var Ce=l<<i,dt=Ce|o,lt=r;Hr=1<<u|dt,zr=lt}}function Qd(e){Wi();var t=e.return;if(t!==null){var n=1,a=0;Ii(e,n),Vy(e,n,a)}}function Ws(e){return 32-mh(e)}function _1(e){return 1<<Ws(e)-1}function Kd(e){for(;e===Ys;)Ys=Ho[--zo],Ho[zo]=null,Is=Ho[--zo],Ho[zo]=null;for(;e===Yi;)Yi=Na[--ja],Na[ja]=null,zr=Na[--ja],Na[ja]=null,Hr=Na[--ja],Na[ja]=null}function k1(){return Wi(),Yi!==null?{id:Hr,overflow:zr}:null}function M1(e,t){Wi(),Na[ja++]=Hr,Na[ja++]=zr,Na[ja++]=Yi,Hr=t.id,zr=t.overflow,Yi=e}function Wi(){Nn()||f("Expected to be hydrating. This is a bug in React. Please file an issue.")}var An=null,Ua=null,qa=!1,qi=!1,fi=null;function L1(){qa&&f("We should not be hydrating here. This is a bug in React. Please file a bug.")}function By(){qi=!0}function O1(){return qi}function A1(e){var t=e.stateNode.containerInfo;return Ua=Kx(t),An=e,qa=!0,fi=null,qi=!1,!0}function N1(e,t,n){return Ua=Jx(t),An=e,qa=!0,fi=null,qi=!1,n!==null&&M1(e,n),!0}function $y(e,t){switch(e.tag){case W:{u1(e.stateNode.containerInfo,t);break}case ne:{var n=(e.mode&ct)!==Oe;c1(e.type,e.memoizedProps,e.stateNode,t,n);break}case M:{var a=e.memoizedState;a.dehydrated!==null&&s1(a.dehydrated,t);break}}}function Py(e,t){$y(e,t);var n=zD();n.stateNode=t,n.return=e;var a=e.deletions;a===null?(e.deletions=[n],e.flags|=ki):a.push(n)}function Jd(e,t){{if(qi)return;switch(e.tag){case W:{var n=e.stateNode.containerInfo;switch(t.tag){case ne:var a=t.type;t.pendingProps,f1(n,a);break;case Le:var r=t.pendingProps;d1(n,r);break}break}case ne:{var i=e.type,o=e.memoizedProps,l=e.stateNode;switch(t.tag){case ne:{var u=t.type,c=t.pendingProps,d=(e.mode&ct)!==Oe;m1(i,o,l,u,c,d);break}case Le:{var E=t.pendingProps,S=(e.mode&ct)!==Oe;h1(i,o,l,E,S);break}}break}case M:{var _=e.memoizedState,O=_.dehydrated;if(O!==null)switch(t.tag){case ne:var N=t.type;t.pendingProps,v1(O,N);break;case Le:var oe=t.pendingProps;p1(O,oe);break}break}default:return}}}function Yy(e,t){t.flags=t.flags&-4097|_n,Jd(e,t)}function Iy(e,t){switch(e.tag){case ne:{var n=e.type;e.pendingProps;var a=Ix(t,n);return a!==null?(e.stateNode=a,An=e,Ua=Qx(a),!0):!1}case Le:{var r=e.pendingProps,i=Wx(t,r);return i!==null?(e.stateNode=i,An=e,Ua=null,!0):!1}case M:{var o=qx(t);if(o!==null){var l={dehydrated:o,treeContext:k1(),retryLane:Aa};e.memoizedState=l;var u=FD(o);return u.return=e,e.child=u,An=e,Ua=null,!0}return!1}default:return!1}}function Zd(e){return(e.mode&ct)!==Oe&&(e.flags&_t)===je}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(qa){var t=Ua;if(!t){Zd(e)&&(Jd(An,e),ev()),Yy(An,e),qa=!1,An=e;return}var n=t;if(!Iy(e,t)){Zd(e)&&(Jd(An,e),ev()),t=nu(n);var a=An;if(!t||!Iy(e,t)){Yy(An,e),qa=!1,An=e;return}Py(a,n)}}}function j1(e,t,n){var a=e.stateNode,r=!qi,i=Zx(a,e.type,e.memoizedProps,t,n,e,r);return e.updateQueue=i,i!==null}function U1(e){var t=e.stateNode,n=e.memoizedProps,a=e1(t,n,e);if(a){var r=An;if(r!==null)switch(r.tag){case W:{var i=r.stateNode.containerInfo,o=(r.mode&ct)!==Oe;o1(i,t,n,o);break}case ne:{var l=r.type,u=r.memoizedProps,c=r.stateNode,d=(r.mode&ct)!==Oe;l1(l,u,c,t,n,d);break}}}return a}function H1(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.");t1(n,e)}function z1(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 n1(n)}function Wy(e){for(var t=e.return;t!==null&&t.tag!==ne&&t.tag!==W&&t.tag!==M;)t=t.return;An=t}function qs(e){if(e!==An)return!1;if(!qa)return Wy(e),qa=!0,!1;if(e.tag!==W&&(e.tag!==ne||i1(e.type)&&!Ud(e.type,e.memoizedProps))){var t=Ua;if(t)if(Zd(e))qy(e),ev();else for(;t;)Py(e,t),t=nu(t)}return Wy(e),e.tag===M?Ua=z1(e):Ua=An?nu(e.stateNode):null,!0}function F1(){return qa&&Ua!==null}function qy(e){for(var t=Ua;t;)$y(e,t),t=nu(t)}function Fo(){An=null,Ua=null,qa=!1,qi=!1}function Gy(){fi!==null&&(Bb(fi),fi=null)}function Nn(){return qa}function nv(e){fi===null?fi=[e]:fi.push(e)}var V1=se.ReactCurrentBatchConfig,B1=null;function $1(){return V1.transition}var Ga={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var P1=function(e){for(var t=null,n=e;n!==null;)n.mode&an&&(t=n),n=n.return;return t},Gi=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},ou=[],lu=[],uu=[],su=[],cu=[],fu=[],Xi=new Set;Ga.recordUnsafeLifecycleWarnings=function(e,t){Xi.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&ou.push(e),e.mode&an&&typeof t.UNSAFE_componentWillMount=="function"&&lu.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&uu.push(e),e.mode&an&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&su.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&cu.push(e),e.mode&an&&typeof t.UNSAFE_componentWillUpdate=="function"&&fu.push(e))},Ga.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;ou.length>0&&(ou.forEach(function(S){e.add(Xe(S)||"Component"),Xi.add(S.type)}),ou=[]);var t=new Set;lu.length>0&&(lu.forEach(function(S){t.add(Xe(S)||"Component"),Xi.add(S.type)}),lu=[]);var n=new Set;uu.length>0&&(uu.forEach(function(S){n.add(Xe(S)||"Component"),Xi.add(S.type)}),uu=[]);var a=new Set;su.length>0&&(su.forEach(function(S){a.add(Xe(S)||"Component"),Xi.add(S.type)}),su=[]);var r=new Set;cu.length>0&&(cu.forEach(function(S){r.add(Xe(S)||"Component"),Xi.add(S.type)}),cu=[]);var i=new Set;if(fu.length>0&&(fu.forEach(function(S){i.add(Xe(S)||"Component"),Xi.add(S.type)}),fu=[]),t.size>0){var o=Gi(t);f(`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=Gi(a);f(`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=Gi(i);f(`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 c=Gi(e);xe(`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`,c)}if(n.size>0){var d=Gi(n);xe(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
|
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
|
|
Please update the following components: %s`,d)}if(r.size>0){var E=Gi(r);xe(`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`,E)}};var Gs=new Map,Xy=new Set;Ga.recordLegacyContextWarning=function(e,t){var n=P1(e);if(n===null){f("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(!Xy.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))}},Ga.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"),Xy.add(i.type)});var r=Gi(a);try{Jt(n),f(`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()}}})},Ga.discardPendingWarnings=function(){ou=[],lu=[],uu=[],su=[],cu=[],fu=[],Gs=new Map}}var av,rv,iv,ov,lv,Qy=function(e,t){};av=!1,rv=!1,iv={},ov={},lv={},Qy=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,f('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function Y1(e){return e.prototype&&e.prototype.isReactComponent}function du(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&an||Ie)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==re)&&!(typeof n.type=="function"&&!Y1(n.type))&&n._owner){var r=Xe(e)||"Component";iv[r]||(f('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!==re)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;Tt(a,"ref");var c=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===c)return t.ref;var d=function(E){var S=u.refs;E===null?delete S[c]:S[c]=E};return d._stringRef=c,d}else{if(typeof a!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+a+`) but no owner was set. This could happen for one of the following reasons:
|
|
1. You may be adding a ref to a function component
|
|
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
3. You have multiple copies of React loaded
|
|
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return a}function 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,f("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 Ky(e){var t=e._payload,n=e._init;return n(t)}function Jy(e){function t(R,j){if(e){var D=R.deletions;D===null?(R.deletions=[j],R.flags|=ki):D.push(j)}}function n(R,j){if(!e)return null;for(var D=j;D!==null;)t(R,D),D=D.sibling;return null}function a(R,j){for(var D=new Map,Y=j;Y!==null;)Y.key!==null?D.set(Y.key,Y):D.set(Y.index,Y),Y=Y.sibling;return D}function r(R,j){var D=ro(R,j);return D.index=0,D.sibling=null,D}function i(R,j,D){if(R.index=D,!e)return R.flags|=th,j;var Y=R.alternate;if(Y!==null){var pe=Y.index;return pe<j?(R.flags|=_n,j):pe}else return R.flags|=_n,j}function o(R){return e&&R.alternate===null&&(R.flags|=_n),R}function l(R,j,D,Y){if(j===null||j.tag!==Le){var pe=nm(D,R.mode,Y);return pe.return=R,pe}else{var ue=r(j,D);return ue.return=R,ue}}function u(R,j,D,Y){var pe=D.type;if(pe===ka)return d(R,j,D.props.children,Y,D.key);if(j!==null&&(j.elementType===pe||a0(j,D)||typeof pe=="object"&&pe!==null&&pe.$$typeof===y&&Ky(pe)===j.type)){var ue=r(j,D.props);return ue.ref=du(R,j,D),ue.return=R,ue._debugSource=D._source,ue._debugOwner=D._owner,ue}var ze=tm(D,R.mode,Y);return ze.ref=du(R,j,D),ze.return=R,ze}function c(R,j,D,Y){if(j===null||j.tag!==z||j.stateNode.containerInfo!==D.containerInfo||j.stateNode.implementation!==D.implementation){var pe=am(D,R.mode,Y);return pe.return=R,pe}else{var ue=r(j,D.children||[]);return ue.return=R,ue}}function d(R,j,D,Y,pe){if(j===null||j.tag!==zt){var ue=Ei(D,R.mode,Y,pe);return ue.return=R,ue}else{var ze=r(j,D);return ze.return=R,ze}}function E(R,j,D){if(typeof j=="string"&&j!==""||typeof j=="number"){var Y=nm(""+j,R.mode,D);return Y.return=R,Y}if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Kn:{var pe=tm(j,R.mode,D);return pe.ref=du(R,null,j),pe.return=R,pe}case Jn:{var ue=am(j,R.mode,D);return ue.return=R,ue}case y:{var ze=j._payload,qe=j._init;return E(R,qe(ze),D)}}if(ot(j)||Re(j)){var jt=Ei(j,R.mode,D,null);return jt.return=R,jt}Xs(R,j)}return typeof j=="function"&&Qs(R),null}function S(R,j,D,Y){var pe=j!==null?j.key:null;if(typeof D=="string"&&D!==""||typeof D=="number")return pe!==null?null:l(R,j,""+D,Y);if(typeof D=="object"&&D!==null){switch(D.$$typeof){case Kn:return D.key===pe?u(R,j,D,Y):null;case Jn:return D.key===pe?c(R,j,D,Y):null;case y:{var ue=D._payload,ze=D._init;return S(R,j,ze(ue),Y)}}if(ot(D)||Re(D))return pe!==null?null:d(R,j,D,Y,null);Xs(R,D)}return typeof D=="function"&&Qs(R),null}function _(R,j,D,Y,pe){if(typeof Y=="string"&&Y!==""||typeof Y=="number"){var ue=R.get(D)||null;return l(j,ue,""+Y,pe)}if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case Kn:{var ze=R.get(Y.key===null?D:Y.key)||null;return u(j,ze,Y,pe)}case Jn:{var qe=R.get(Y.key===null?D:Y.key)||null;return c(j,qe,Y,pe)}case y:var jt=Y._payload,bt=Y._init;return _(R,j,D,bt(jt),pe)}if(ot(Y)||Re(Y)){var ln=R.get(D)||null;return d(j,ln,Y,pe,null)}Xs(j,Y)}return typeof Y=="function"&&Qs(j),null}function O(R,j,D){{if(typeof R!="object"||R===null)return j;switch(R.$$typeof){case Kn:case Jn:Qy(R,D);var Y=R.key;if(typeof Y!="string")break;if(j===null){j=new Set,j.add(Y);break}if(!j.has(Y)){j.add(Y);break}f("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.",Y);break;case y:var pe=R._payload,ue=R._init;O(ue(pe),j,D);break}}return j}function N(R,j,D,Y){for(var pe=null,ue=0;ue<D.length;ue++){var ze=D[ue];pe=O(ze,pe,R)}for(var qe=null,jt=null,bt=j,ln=0,St=0,rn=null;bt!==null&&St<D.length;St++){bt.index>St?(rn=bt,bt=null):rn=bt.sibling;var qn=S(R,bt,D[St],Y);if(qn===null){bt===null&&(bt=rn);break}e&&bt&&qn.alternate===null&&t(R,bt),ln=i(qn,ln,St),jt===null?qe=qn:jt.sibling=qn,jt=qn,bt=rn}if(St===D.length){if(n(R,bt),Nn()){var Bn=St;Ii(R,Bn)}return qe}if(bt===null){for(;St<D.length;St++){var Da=E(R,D[St],Y);Da!==null&&(ln=i(Da,ln,St),jt===null?qe=Da:jt.sibling=Da,jt=Da)}if(Nn()){var oa=St;Ii(R,oa)}return qe}for(var la=a(R,bt);St<D.length;St++){var Gn=_(la,R,St,D[St],Y);Gn!==null&&(e&&Gn.alternate!==null&&la.delete(Gn.key===null?St:Gn.key),ln=i(Gn,ln,St),jt===null?qe=Gn:jt.sibling=Gn,jt=Gn)}if(e&&la.forEach(function(rl){return t(R,rl)}),Nn()){var Ir=St;Ii(R,Ir)}return qe}function oe(R,j,D,Y){var pe=Re(D);if(typeof pe!="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"&&D[Symbol.toStringTag]==="Generator"&&(rv||f("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),D.entries===pe&&(av||f("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),av=!0);var ue=pe.call(D);if(ue)for(var ze=null,qe=ue.next();!qe.done;qe=ue.next()){var jt=qe.value;ze=O(jt,ze,R)}}var bt=pe.call(D);if(bt==null)throw new Error("An iterable object provided no iterator.");for(var ln=null,St=null,rn=j,qn=0,Bn=0,Da=null,oa=bt.next();rn!==null&&!oa.done;Bn++,oa=bt.next()){rn.index>Bn?(Da=rn,rn=null):Da=rn.sibling;var la=S(R,rn,oa.value,Y);if(la===null){rn===null&&(rn=Da);break}e&&rn&&la.alternate===null&&t(R,rn),qn=i(la,qn,Bn),St===null?ln=la:St.sibling=la,St=la,rn=Da}if(oa.done){if(n(R,rn),Nn()){var Gn=Bn;Ii(R,Gn)}return ln}if(rn===null){for(;!oa.done;Bn++,oa=bt.next()){var Ir=E(R,oa.value,Y);Ir!==null&&(qn=i(Ir,qn,Bn),St===null?ln=Ir:St.sibling=Ir,St=Ir)}if(Nn()){var rl=Bn;Ii(R,rl)}return ln}for(var Yu=a(R,rn);!oa.done;Bn++,oa=bt.next()){var Sr=_(Yu,R,Bn,oa.value,Y);Sr!==null&&(e&&Sr.alternate!==null&&Yu.delete(Sr.key===null?Bn:Sr.key),qn=i(Sr,qn,Bn),St===null?ln=Sr:St.sibling=Sr,St=Sr)}if(e&&Yu.forEach(function(h_){return t(R,h_)}),Nn()){var m_=Bn;Ii(R,m_)}return ln}function ke(R,j,D,Y){if(j!==null&&j.tag===Le){n(R,j.sibling);var pe=r(j,D);return pe.return=R,pe}n(R,j);var ue=nm(D,R.mode,Y);return ue.return=R,ue}function Ce(R,j,D,Y){for(var pe=D.key,ue=j;ue!==null;){if(ue.key===pe){var ze=D.type;if(ze===ka){if(ue.tag===zt){n(R,ue.sibling);var qe=r(ue,D.props.children);return qe.return=R,qe._debugSource=D._source,qe._debugOwner=D._owner,qe}}else if(ue.elementType===ze||a0(ue,D)||typeof ze=="object"&&ze!==null&&ze.$$typeof===y&&Ky(ze)===ue.type){n(R,ue.sibling);var jt=r(ue,D.props);return jt.ref=du(R,ue,D),jt.return=R,jt._debugSource=D._source,jt._debugOwner=D._owner,jt}n(R,ue);break}else t(R,ue);ue=ue.sibling}if(D.type===ka){var bt=Ei(D.props.children,R.mode,Y,D.key);return bt.return=R,bt}else{var ln=tm(D,R.mode,Y);return ln.ref=du(R,j,D),ln.return=R,ln}}function dt(R,j,D,Y){for(var pe=D.key,ue=j;ue!==null;){if(ue.key===pe)if(ue.tag===z&&ue.stateNode.containerInfo===D.containerInfo&&ue.stateNode.implementation===D.implementation){n(R,ue.sibling);var ze=r(ue,D.children||[]);return ze.return=R,ze}else{n(R,ue);break}else t(R,ue);ue=ue.sibling}var qe=am(D,R.mode,Y);return qe.return=R,qe}function lt(R,j,D,Y){var pe=typeof D=="object"&&D!==null&&D.type===ka&&D.key===null;if(pe&&(D=D.props.children),typeof D=="object"&&D!==null){switch(D.$$typeof){case Kn:return o(Ce(R,j,D,Y));case Jn:return o(dt(R,j,D,Y));case y:var ue=D._payload,ze=D._init;return lt(R,j,ze(ue),Y)}if(ot(D))return N(R,j,D,Y);if(Re(D))return oe(R,j,D,Y);Xs(R,D)}return typeof D=="string"&&D!==""||typeof D=="number"?o(ke(R,j,""+D,Y)):(typeof D=="function"&&Qs(R),n(R,j))}return lt}var Vo=Jy(!0),Zy=Jy(!1);function I1(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=ro(n,n.pendingProps);for(t.child=a,a.return=t;n.sibling!==null;)n=n.sibling,a=a.sibling=ro(n,n.pendingProps),a.return=t;a.sibling=null}}function W1(e,t){for(var n=e.child;n!==null;)AD(n,t),n=n.sibling}var uv=ui(null),sv;sv={};var Ks=null,Bo=null,cv=null,Js=!1;function Zs(){Ks=null,Bo=null,cv=null,Js=!1}function eg(){Js=!0}function tg(){Js=!1}function ng(e,t,n){In(uv,t._currentValue,e),t._currentValue=n,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==sv&&f("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=sv}function fv(e,t){var n=uv.current;Yn(uv,t),e._currentValue=n}function dv(e,t,n){for(var a=e;a!==null;){var r=a.alternate;if(wo(a.childLanes,t)?r!==null&&!wo(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&&f("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 q1(e,t,n){G1(e,t,n)}function G1(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===re){var l=Ml(n),u=Fr(qt,l);u.tag=tc;var c=a.updateQueue;if(c!==null){var d=c.shared,E=d.pending;E===null?u.next=u:(u.next=E.next,E.next=u),d.pending=u}}a.lanes=tt(a.lanes,n);var S=a.alternate;S!==null&&(S.lanes=tt(S.lanes,n)),dv(a.return,n,e),i.lanes=tt(i.lanes,n);break}o=o.next}}else if(a.tag===Pe)r=a.type===e.type?null:a.child;else if(a.tag===he){var _=a.return;if(_===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");_.lanes=tt(_.lanes,n);var O=_.alternate;O!==null&&(O.lanes=tt(O.lanes,n)),dv(_,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 $o(e,t){Ks=e,Bo=null,cv=null;var n=e.dependencies;if(n!==null){var a=n.firstContext;a!==null&&(Ta(n.lanes,t)&&Du(),n.firstContext=null)}}function vn(e){Js&&f("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(Bo===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().");Bo=n,Ks.dependencies={lanes:P,firstContext:n}}else Bo=Bo.next=n}return t}var Qi=null;function vv(e){Qi===null?Qi=[e]:Qi.push(e)}function X1(){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 ag(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 K1(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 da(e,t){return ec(e,t)}var J1=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|Oi))!==je&&Zb(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|Oi))!==je&&Zb(e),a=r,r=r.return;if(a.tag===W){var i=a.stateNode;return i}else return null}var rg=0,ig=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:P},effects:null};e.updateQueue=t}function og(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 Fr(e,t){var n={eventTime:e,lane:t,tag:rg,payload:null,callback:null,next:null};return n}function di(e,t,n){var a=e.updateQueue;if(a===null)return null;var r=a.shared;if(ac===r&&!mv&&(f("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),QR()){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,J1(e,n)}else return K1(e,r,t,n)}function rc(e,t,n){var a=t.updateQueue;if(a!==null){var r=a.shared;if(bh(n)){var i=r.lanes;i=Th(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 c={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};o===null?i=o=c:(o.next=c,o=c),u=u.next}while(u!==null);o===null?i=o=t:(o.next=t,o=t)}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}}var d=n.lastBaseUpdate;d===null?n.firstBaseUpdate=t:d.next=t,n.lastBaseUpdate=t}function Z1(e,t,n,a,r,i){switch(n.tag){case ig:{var o=n.payload;if(typeof o=="function"){eg();var l=o.call(i,a,r);{if(e.mode&an){Mn(!0);try{o.call(i,a,r)}finally{Mn(!1)}}tg()}return l}return o}case pv:e.flags=e.flags&-65537|_t;case rg:{var u=n.payload,c;if(typeof u=="function"){eg(),c=u.call(i,a,r);{if(e.mode&an){Mn(!0);try{u.call(i,a,r)}finally{Mn(!1)}}tg()}}else c=u;return c==null?a:ye({},a,c)}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,c=u.next;u.next=null,o===null?i=c:o.next=c,o=u;var d=e.alternate;if(d!==null){var E=d.updateQueue,S=E.lastBaseUpdate;S!==o&&(S===null?E.firstBaseUpdate=c:S.next=c,E.lastBaseUpdate=u)}}if(i!==null){var _=r.baseState,O=P,N=null,oe=null,ke=null,Ce=i;do{var dt=Ce.lane,lt=Ce.eventTime;if(wo(a,dt)){if(ke!==null){var j={eventTime:lt,lane:Ln,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null};ke=ke.next=j}_=Z1(e,r,Ce,_,t,n);var D=Ce.callback;if(D!==null&&Ce.lane!==Ln){e.flags|=eh;var Y=r.effects;Y===null?r.effects=[Ce]:Y.push(Ce)}}else{var R={eventTime:lt,lane:dt,tag:Ce.tag,payload:Ce.payload,callback:Ce.callback,next:null};ke===null?(oe=ke=R,N=_):ke=ke.next=R,O=tt(O,dt)}if(Ce=Ce.next,Ce===null){if(l=r.shared.pending,l===null)break;var pe=l,ue=pe.next;pe.next=null,Ce=ue,r.lastBaseUpdate=pe,r.shared.pending=null}}while(!0);ke===null&&(N=_),r.baseState=N,r.firstBaseUpdate=oe,r.lastBaseUpdate=ke;var ze=r.shared.interleaved;if(ze!==null){var qe=ze;do O=tt(O,qe.lane),qe=qe.next;while(qe!==ze)}else i===null&&(r.shared.lanes=P);Fu(O),e.lanes=O,e.memoizedState=_}ac=null}function ew(e,t){if(typeof e!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+e));e.call(t)}function lg(){nc=!1}function oc(){return nc}function ug(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,ew(o,n))}}var vu={},vi=ui(vu),pu=ui(vu),lc=ui(vu);function uc(e){if(e===vu)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 sg(){var e=uc(lc.current);return e}function gv(e,t){In(lc,t,e),In(pu,e,e),In(vi,vu,e);var n=yx(t);Yn(vi,e),In(vi,n,e)}function Po(e){Yn(vi,e),Yn(pu,e),Yn(lc,e)}function bv(){var e=uc(vi.current);return e}function cg(e){uc(lc.current);var t=uc(vi.current),n=gx(t,e.type);t!==n&&(In(pu,e,e),In(vi,n,e))}function Sv(e){pu.current===e&&(Yn(vi,e),Yn(pu,e))}var tw=0,fg=1,dg=1,mu=2,Xa=ui(tw);function Tv(e,t){return(e&t)!==0}function Yo(e){return e&fg}function Ev(e,t){return e&fg|t}function nw(e,t){return e|t}function pi(e,t){In(Xa,t,e)}function Io(e){Yn(Xa,e)}function aw(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===M){var n=t.memoizedState;if(n!==null){var a=n.dehydrated;if(a===null||ky(a)||Vd(a))return t}}else if(t.tag===nt&&t.memoizedProps.revealOrder!==void 0){var r=(t.flags&_t)!==je;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 va=0,pn=1,vr=2,mn=4,jn=8,Cv=[];function xv(){for(var e=0;e<Cv.length;e++){var t=Cv[e];t._workInProgressVersionPrimary=null}Cv.length=0}function rw(e,t){var n=t._getVersion,a=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)}var ve=se.ReactCurrentDispatcher,hu=se.ReactCurrentBatchConfig,wv,Wo;wv=new Set;var Ki=P,Nt=null,hn=null,yn=null,cc=!1,yu=!1,gu=0,iw=0,ow=25,F=null,Ha=null,mi=-1,Rv=!1;function kt(){{var e=F;Ha===null?Ha=[e]:Ha.push(e)}}function ae(){{var e=F;Ha!==null&&(mi++,Ha[mi]!==e&&lw(e))}}function qo(e){e!=null&&!ot(e)&&f("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",F,typeof e)}function lw(e){{var t=Xe(Nt);if(!wv.has(t)&&(wv.add(t),Ha!==null)){for(var n="",a=30,r=0;r<=mi;r++){for(var i=Ha[r],o=r===mi?e:i,l=r+1+". "+i;l.length<a;)l+=" ";l+=o+`
|
|
`,n+=l}f(`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 Wn(){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(Rv)return!1;if(t===null)return f("%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.",F),!1;e.length!==t.length&&f(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
|
|
Previous: %s
|
|
Incoming: %s`,F,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!xa(e[n],t[n]))return!1;return!0}function Go(e,t,n,a,r,i){Ki=i,Nt=t,Ha=e!==null?e._debugHookTypes:null,mi=-1,Rv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=P,e!==null&&e.memoizedState!==null?ve.current=Ng:Ha!==null?ve.current=Ag:ve.current=Og;var o=n(a,r);if(yu){var l=0;do{if(yu=!1,gu=0,l>=ow)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,Rv=!1,hn=null,yn=null,t.updateQueue=null,mi=-1,ve.current=jg,o=n(a,r)}while(yu)}ve.current=Cc,t._debugHookTypes=Ha;var u=hn!==null&&hn.next!==null;if(Ki=P,Nt=null,hn=null,yn=null,F=null,Ha=null,mi=-1,e!==null&&(e.flags&Mr)!==(t.flags&Mr)&&(e.mode&ct)!==Oe&&f("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 Xo(){var e=gu!==0;return gu=0,e}function vg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&sr)!==Oe?t.flags&=-50333701:t.flags&=-2053,e.lanes=fs(e.lanes,n)}function pg(){if(ve.current=Cc,cc){for(var e=Nt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cc=!1}Ki=P,Nt=null,hn=null,yn=null,Ha=null,mi=-1,F=null,Dg=!1,yu=!1,gu=0}function pr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return yn===null?Nt.memoizedState=yn=e:yn=yn.next=e,yn}function za(){var e;if(hn===null){var t=Nt.alternate;t!==null?e=t.memoizedState:e=null}else e=hn.next;var n;if(yn===null?n=Nt.memoizedState:n=yn.next,n!==null)yn=n,n=yn.next,hn=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");hn=e;var a={memoizedState:hn.memoizedState,baseState:hn.baseState,baseQueue:hn.baseQueue,queue:hn.queue,next:null};yn===null?Nt.memoizedState=yn=a:yn=yn.next=a}return yn}function mg(){return{lastEffect:null,stores:null}}function _v(e,t){return typeof t=="function"?t(e):t}function kv(e,t,n){var a=pr(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:P,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=fw.bind(null,Nt,i);return[a.memoizedState,o]}function Mv(e,t,n){var a=za(),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=hn,o=i.baseQueue,l=r.pending;if(l!==null){if(o!==null){var u=o.next,c=l.next;o.next=c,l.next=u}i.baseQueue!==o&&f("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=o=l,r.pending=null}if(o!==null){var d=o.next,E=i.baseState,S=null,_=null,O=null,N=d;do{var oe=N.lane;if(wo(Ki,oe)){if(O!==null){var Ce={lane:Ln,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};O=O.next=Ce}if(N.hasEagerState)E=N.eagerState;else{var dt=N.action;E=e(E,dt)}}else{var ke={lane:oe,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};O===null?(_=O=ke,S=E):O=O.next=ke,Nt.lanes=tt(Nt.lanes,oe),Fu(oe)}N=N.next}while(N!==null&&N!==d);O===null?S=E:O.next=_,xa(E,a.memoizedState)||Du(),a.memoizedState=E,a.baseState=S,a.baseQueue=O,r.lastRenderedState=E}var lt=r.interleaved;if(lt!==null){var R=lt;do{var j=R.lane;Nt.lanes=tt(Nt.lanes,j),Fu(j),R=R.next}while(R!==lt)}else o===null&&(r.lanes=P);var D=r.dispatch;return[a.memoizedState,D]}function Lv(e,t,n){var a=za(),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,c=u;do{var d=c.action;l=e(l,d),c=c.next}while(c!==u);xa(l,a.memoizedState)||Du(),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),r.lastRenderedState=l}return[l,i]}function b_(e,t,n){}function S_(e,t,n){}function Ov(e,t,n){var a=Nt,r=pr(),i,o=Nn();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(),Wo||i!==n()&&(f("The result of getServerSnapshot should be cached to avoid an infinite loop"),Wo=!0)}else{if(i=t(),!Wo){var l=t();xa(i,l)||(f("The result of getSnapshot should be cached to avoid an infinite loop"),Wo=!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,Ki)||hg(a,t,i)}r.memoizedState=i;var c={value:i,getSnapshot:t};return r.queue=c,mc(gg.bind(null,a,c,e),[e]),a.flags|=Zr,bu(pn|jn,yg.bind(null,a,c,i,t),void 0,null),i}function fc(e,t,n){var a=Nt,r=za(),i=t();if(!Wo){var o=t();xa(i,o)||(f("The result of getSnapshot should be cached to avoid an infinite loop"),Wo=!0)}var l=r.memoizedState,u=!xa(l,i);u&&(r.memoizedState=i,Du());var c=r.queue;if(Tu(gg.bind(null,a,c,e),[e]),c.getSnapshot!==t||u||yn!==null&&yn.memoizedState.tag&pn){a.flags|=Zr,bu(pn|jn,yg.bind(null,a,c,i,t),void 0,null);var d=$c();if(d===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(d,Ki)||hg(a,t,i)}return i}function hg(e,t,n){e.flags|=_f;var a={getSnapshot:t,value:n},r=Nt.updateQueue;if(r===null)r=mg(),Nt.updateQueue=r,r.stores=[a];else{var i=r.stores;i===null?r.stores=[a]:i.push(a)}}function yg(e,t,n,a){t.value=n,t.getSnapshot=a,bg(t)&&Sg(e)}function gg(e,t,n){var a=function(){bg(t)&&Sg(e)};return n(a)}function bg(e){var t=e.getSnapshot,n=e.value;try{var a=t();return!xa(n,a)}catch{return!0}}function Sg(e){var t=da(e,Be);t!==null&&Tn(t,e,Be,qt)}function dc(e){var t=pr();typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e;var n={pending:null,interleaved:null,lanes:P,dispatch:null,lastRenderedReducer:_v,lastRenderedState:e};t.queue=n;var a=n.dispatch=dw.bind(null,Nt,n);return[t.memoizedState,a]}function Av(e){return Mv(_v)}function Nv(e){return Lv(_v)}function bu(e,t,n,a){var r={tag:e,create:t,destroy:n,deps:a,next:null},i=Nt.updateQueue;if(i===null)i=mg(),Nt.updateQueue=i,i.lastEffect=r.next=r;else{var o=i.lastEffect;if(o===null)i.lastEffect=r.next=r;else{var l=o.next;o.next=r,r.next=l,i.lastEffect=r}}return r}function jv(e){var t=pr();{var n={current:e};return t.memoizedState=n,n}}function vc(e){var t=za();return t.memoizedState}function Su(e,t,n,a){var r=pr(),i=a===void 0?null:a;Nt.flags|=e,r.memoizedState=bu(pn|t,n,void 0,i)}function pc(e,t,n,a){var r=za(),i=a===void 0?null:a,o=void 0;if(hn!==null){var l=hn.memoizedState;if(o=l.destroy,i!==null){var u=l.deps;if(Dv(i,u)){r.memoizedState=bu(t,n,o,i);return}}}Nt.flags|=e,r.memoizedState=bu(pn|t,n,o,i)}function mc(e,t){return(Nt.mode&sr)!==Oe?Su(Of|Zr|Lf,jn,e,t):Su(Zr|Lf,jn,e,t)}function Tu(e,t){return pc(Zr,jn,e,t)}function Uv(e,t){return Su(wt,vr,e,t)}function hc(e,t){return pc(wt,vr,e,t)}function Hv(e,t){var n=wt;return n|=Ni,(Nt.mode&sr)!==Oe&&(n|=ei),Su(n,mn,e,t)}function yc(e,t){return pc(wt,mn,e,t)}function Tg(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")||f("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"&&f("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|=Ni,(Nt.mode&sr)!==Oe&&(r|=ei),Su(r,mn,Tg.bind(null,t,e),a)}function gc(e,t,n){typeof t!="function"&&f("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,mn,Tg.bind(null,t,e),a)}function uw(e,t){}var bc=uw;function Fv(e,t){var n=pr(),a=t===void 0?null:t;return n.memoizedState=[e,a],e}function Sc(e,t){var n=za(),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=pr(),a=t===void 0?null:t,r=e();return n.memoizedState=[r,a],r}function Tc(e,t){var n=za(),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=pr();return t.memoizedState=e,e}function Eg(e){var t=za(),n=hn,a=n.memoizedState;return xg(t,a,e)}function Cg(e){var t=za();if(hn===null)return t.memoizedState=e,e;var n=hn.memoizedState;return xg(t,n,e)}function xg(e,t,n){var a=!qT(Ki);if(a){if(!xa(n,t)){var r=Sh();Nt.lanes=tt(Nt.lanes,r),Fu(r),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,Du()),e.memoizedState=n,n}function sw(e,t,n){var a=Ia();On(nE(a,Or)),e(!0);var r=hu.transition;hu.transition={};var i=hu.transition;hu.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(On(a),hu.transition=r,r===null&&i._updatedFibers){var o=i._updatedFibers.size;o>10&&xe("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=sw.bind(null,n),r=pr();return r.memoizedState=a,[t,a]}function wg(){var e=Av(),t=e[0],n=za(),a=n.memoizedState;return[t,a]}function Rg(){var e=Nv(),t=e[0],n=za(),a=n.memoizedState;return[t,a]}var Dg=!1;function cw(){return Dg}function Pv(){var e=pr(),t=$c(),n=t.identifierPrefix,a;if(Nn()){var r=D1();a=":"+n+"R"+r;var i=gu++;i>0&&(a+="H"+i.toString(32)),a+=":"}else{var o=iw++;a=":"+n+"r"+o.toString(32)+":"}return e.memoizedState=a,a}function Ec(){var e=za(),t=e.memoizedState;return t}function fw(e,t,n){typeof arguments[3]=="function"&&f("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=Si(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(_g(e))kg(t,r);else{var i=ag(e,t,r,a);if(i!==null){var o=ia();Tn(i,e,a,o),Mg(i,t,a)}}Lg(e,a)}function dw(e,t,n){typeof arguments[3]=="function"&&f("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=Si(e),r={lane:a,action:n,hasEagerState:!1,eagerState:null,next:null};if(_g(e))kg(t,r);else{var i=e.alternate;if(e.lanes===P&&(i===null||i.lanes===P)){var o=t.lastRenderedReducer;if(o!==null){var l;l=ve.current,ve.current=Qa;try{var u=t.lastRenderedState,c=o(u,n);if(r.hasEagerState=!0,r.eagerState=c,xa(c,u)){Q1(e,t,r,a);return}}catch{}finally{ve.current=l}}}var d=ag(e,t,r,a);if(d!==null){var E=ia();Tn(d,e,a,E),Mg(d,t,a)}}Lg(e,a)}function _g(e){var t=e.alternate;return e===Nt||t!==null&&t===Nt}function kg(e,t){yu=cc=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Mg(e,t,n){if(bh(n)){var a=t.lanes;a=Th(a,e.pendingLanes);var r=tt(a,n);t.lanes=r,ud(e,r)}}function Lg(e,t,n){Hf(e,t)}var Cc={readContext:vn,useCallback:Wn,useContext:Wn,useEffect:Wn,useImperativeHandle:Wn,useInsertionEffect:Wn,useLayoutEffect:Wn,useMemo:Wn,useReducer:Wn,useRef:Wn,useState:Wn,useDebugValue:Wn,useDeferredValue:Wn,useTransition:Wn,useMutableSource:Wn,useSyncExternalStore:Wn,useId:Wn,unstable_isNewReconciler:Ye},Og=null,Ag=null,Ng=null,jg=null,mr=null,Qa=null,xc=null;{var Yv=function(){f("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().")},$e=function(){f("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")};Og={readContext:function(e){return vn(e)},useCallback:function(e,t){return F="useCallback",kt(),qo(t),Fv(e,t)},useContext:function(e){return F="useContext",kt(),vn(e)},useEffect:function(e,t){return F="useEffect",kt(),qo(t),mc(e,t)},useImperativeHandle:function(e,t,n){return F="useImperativeHandle",kt(),qo(n),zv(e,t,n)},useInsertionEffect:function(e,t){return F="useInsertionEffect",kt(),qo(t),Uv(e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",kt(),qo(t),Hv(e,t)},useMemo:function(e,t){F="useMemo",kt(),qo(t);var n=ve.current;ve.current=mr;try{return Vv(e,t)}finally{ve.current=n}},useReducer:function(e,t,n){F="useReducer",kt();var a=ve.current;ve.current=mr;try{return kv(e,t,n)}finally{ve.current=a}},useRef:function(e){return F="useRef",kt(),jv(e)},useState:function(e){F="useState",kt();var t=ve.current;ve.current=mr;try{return dc(e)}finally{ve.current=t}},useDebugValue:function(e,t){return F="useDebugValue",kt(),void 0},useDeferredValue:function(e){return F="useDeferredValue",kt(),Bv(e)},useTransition:function(){return F="useTransition",kt(),$v()},useMutableSource:function(e,t,n){return F="useMutableSource",kt(),void 0},useSyncExternalStore:function(e,t,n){return F="useSyncExternalStore",kt(),Ov(e,t,n)},useId:function(){return F="useId",kt(),Pv()},unstable_isNewReconciler:Ye},Ag={readContext:function(e){return vn(e)},useCallback:function(e,t){return F="useCallback",ae(),Fv(e,t)},useContext:function(e){return F="useContext",ae(),vn(e)},useEffect:function(e,t){return F="useEffect",ae(),mc(e,t)},useImperativeHandle:function(e,t,n){return F="useImperativeHandle",ae(),zv(e,t,n)},useInsertionEffect:function(e,t){return F="useInsertionEffect",ae(),Uv(e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",ae(),Hv(e,t)},useMemo:function(e,t){F="useMemo",ae();var n=ve.current;ve.current=mr;try{return Vv(e,t)}finally{ve.current=n}},useReducer:function(e,t,n){F="useReducer",ae();var a=ve.current;ve.current=mr;try{return kv(e,t,n)}finally{ve.current=a}},useRef:function(e){return F="useRef",ae(),jv(e)},useState:function(e){F="useState",ae();var t=ve.current;ve.current=mr;try{return dc(e)}finally{ve.current=t}},useDebugValue:function(e,t){return F="useDebugValue",ae(),void 0},useDeferredValue:function(e){return F="useDeferredValue",ae(),Bv(e)},useTransition:function(){return F="useTransition",ae(),$v()},useMutableSource:function(e,t,n){return F="useMutableSource",ae(),void 0},useSyncExternalStore:function(e,t,n){return F="useSyncExternalStore",ae(),Ov(e,t,n)},useId:function(){return F="useId",ae(),Pv()},unstable_isNewReconciler:Ye},Ng={readContext:function(e){return vn(e)},useCallback:function(e,t){return F="useCallback",ae(),Sc(e,t)},useContext:function(e){return F="useContext",ae(),vn(e)},useEffect:function(e,t){return F="useEffect",ae(),Tu(e,t)},useImperativeHandle:function(e,t,n){return F="useImperativeHandle",ae(),gc(e,t,n)},useInsertionEffect:function(e,t){return F="useInsertionEffect",ae(),hc(e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",ae(),yc(e,t)},useMemo:function(e,t){F="useMemo",ae();var n=ve.current;ve.current=Qa;try{return Tc(e,t)}finally{ve.current=n}},useReducer:function(e,t,n){F="useReducer",ae();var a=ve.current;ve.current=Qa;try{return Mv(e,t,n)}finally{ve.current=a}},useRef:function(e){return F="useRef",ae(),vc()},useState:function(e){F="useState",ae();var t=ve.current;ve.current=Qa;try{return Av(e)}finally{ve.current=t}},useDebugValue:function(e,t){return F="useDebugValue",ae(),bc()},useDeferredValue:function(e){return F="useDeferredValue",ae(),Eg(e)},useTransition:function(){return F="useTransition",ae(),wg()},useMutableSource:function(e,t,n){return F="useMutableSource",ae(),void 0},useSyncExternalStore:function(e,t,n){return F="useSyncExternalStore",ae(),fc(e,t)},useId:function(){return F="useId",ae(),Ec()},unstable_isNewReconciler:Ye},jg={readContext:function(e){return vn(e)},useCallback:function(e,t){return F="useCallback",ae(),Sc(e,t)},useContext:function(e){return F="useContext",ae(),vn(e)},useEffect:function(e,t){return F="useEffect",ae(),Tu(e,t)},useImperativeHandle:function(e,t,n){return F="useImperativeHandle",ae(),gc(e,t,n)},useInsertionEffect:function(e,t){return F="useInsertionEffect",ae(),hc(e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",ae(),yc(e,t)},useMemo:function(e,t){F="useMemo",ae();var n=ve.current;ve.current=xc;try{return Tc(e,t)}finally{ve.current=n}},useReducer:function(e,t,n){F="useReducer",ae();var a=ve.current;ve.current=xc;try{return Lv(e,t,n)}finally{ve.current=a}},useRef:function(e){return F="useRef",ae(),vc()},useState:function(e){F="useState",ae();var t=ve.current;ve.current=xc;try{return Nv(e)}finally{ve.current=t}},useDebugValue:function(e,t){return F="useDebugValue",ae(),bc()},useDeferredValue:function(e){return F="useDeferredValue",ae(),Cg(e)},useTransition:function(){return F="useTransition",ae(),Rg()},useMutableSource:function(e,t,n){return F="useMutableSource",ae(),void 0},useSyncExternalStore:function(e,t,n){return F="useSyncExternalStore",ae(),fc(e,t)},useId:function(){return F="useId",ae(),Ec()},unstable_isNewReconciler:Ye},mr={readContext:function(e){return Yv(),vn(e)},useCallback:function(e,t){return F="useCallback",$e(),kt(),Fv(e,t)},useContext:function(e){return F="useContext",$e(),kt(),vn(e)},useEffect:function(e,t){return F="useEffect",$e(),kt(),mc(e,t)},useImperativeHandle:function(e,t,n){return F="useImperativeHandle",$e(),kt(),zv(e,t,n)},useInsertionEffect:function(e,t){return F="useInsertionEffect",$e(),kt(),Uv(e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",$e(),kt(),Hv(e,t)},useMemo:function(e,t){F="useMemo",$e(),kt();var n=ve.current;ve.current=mr;try{return Vv(e,t)}finally{ve.current=n}},useReducer:function(e,t,n){F="useReducer",$e(),kt();var a=ve.current;ve.current=mr;try{return kv(e,t,n)}finally{ve.current=a}},useRef:function(e){return F="useRef",$e(),kt(),jv(e)},useState:function(e){F="useState",$e(),kt();var t=ve.current;ve.current=mr;try{return dc(e)}finally{ve.current=t}},useDebugValue:function(e,t){return F="useDebugValue",$e(),kt(),void 0},useDeferredValue:function(e){return F="useDeferredValue",$e(),kt(),Bv(e)},useTransition:function(){return F="useTransition",$e(),kt(),$v()},useMutableSource:function(e,t,n){return F="useMutableSource",$e(),kt(),void 0},useSyncExternalStore:function(e,t,n){return F="useSyncExternalStore",$e(),kt(),Ov(e,t,n)},useId:function(){return F="useId",$e(),kt(),Pv()},unstable_isNewReconciler:Ye},Qa={readContext:function(e){return Yv(),vn(e)},useCallback:function(e,t){return F="useCallback",$e(),ae(),Sc(e,t)},useContext:function(e){return F="useContext",$e(),ae(),vn(e)},useEffect:function(e,t){return F="useEffect",$e(),ae(),Tu(e,t)},useImperativeHandle:function(e,t,n){return F="useImperativeHandle",$e(),ae(),gc(e,t,n)},useInsertionEffect:function(e,t){return F="useInsertionEffect",$e(),ae(),hc(e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",$e(),ae(),yc(e,t)},useMemo:function(e,t){F="useMemo",$e(),ae();var n=ve.current;ve.current=Qa;try{return Tc(e,t)}finally{ve.current=n}},useReducer:function(e,t,n){F="useReducer",$e(),ae();var a=ve.current;ve.current=Qa;try{return Mv(e,t,n)}finally{ve.current=a}},useRef:function(e){return F="useRef",$e(),ae(),vc()},useState:function(e){F="useState",$e(),ae();var t=ve.current;ve.current=Qa;try{return Av(e)}finally{ve.current=t}},useDebugValue:function(e,t){return F="useDebugValue",$e(),ae(),bc()},useDeferredValue:function(e){return F="useDeferredValue",$e(),ae(),Eg(e)},useTransition:function(){return F="useTransition",$e(),ae(),wg()},useMutableSource:function(e,t,n){return F="useMutableSource",$e(),ae(),void 0},useSyncExternalStore:function(e,t,n){return F="useSyncExternalStore",$e(),ae(),fc(e,t)},useId:function(){return F="useId",$e(),ae(),Ec()},unstable_isNewReconciler:Ye},xc={readContext:function(e){return Yv(),vn(e)},useCallback:function(e,t){return F="useCallback",$e(),ae(),Sc(e,t)},useContext:function(e){return F="useContext",$e(),ae(),vn(e)},useEffect:function(e,t){return F="useEffect",$e(),ae(),Tu(e,t)},useImperativeHandle:function(e,t,n){return F="useImperativeHandle",$e(),ae(),gc(e,t,n)},useInsertionEffect:function(e,t){return F="useInsertionEffect",$e(),ae(),hc(e,t)},useLayoutEffect:function(e,t){return F="useLayoutEffect",$e(),ae(),yc(e,t)},useMemo:function(e,t){F="useMemo",$e(),ae();var n=ve.current;ve.current=Qa;try{return Tc(e,t)}finally{ve.current=n}},useReducer:function(e,t,n){F="useReducer",$e(),ae();var a=ve.current;ve.current=Qa;try{return Lv(e,t,n)}finally{ve.current=a}},useRef:function(e){return F="useRef",$e(),ae(),vc()},useState:function(e){F="useState",$e(),ae();var t=ve.current;ve.current=Qa;try{return Nv(e)}finally{ve.current=t}},useDebugValue:function(e,t){return F="useDebugValue",$e(),ae(),bc()},useDeferredValue:function(e){return F="useDeferredValue",$e(),ae(),Cg(e)},useTransition:function(){return F="useTransition",$e(),ae(),Rg()},useMutableSource:function(e,t,n){return F="useMutableSource",$e(),ae(),void 0},useSyncExternalStore:function(e,t,n){return F="useSyncExternalStore",$e(),ae(),fc(e,t)},useId:function(){return F="useId",$e(),ae(),Ec()},unstable_isNewReconciler:Ye}}var hi=k.unstable_now,Ug=0,wc=-1,Eu=-1,Rc=-1,Iv=!1,Dc=!1;function Hg(){return Iv}function vw(){Dc=!0}function pw(){Iv=!1,Dc=!1}function mw(){Iv=Dc,Dc=!1}function zg(){return Ug}function Fg(){Ug=hi()}function Wv(e){Eu=hi(),e.actualStartTime<0&&(e.actualStartTime=hi())}function Vg(e){Eu=-1}function _c(e,t){if(Eu>=0){var n=hi()-Eu;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Eu=-1}}function hr(e){if(wc>=0){var t=hi()-wc;wc=-1;for(var n=e.return;n!==null;){switch(n.tag){case W:var a=n.stateNode;a.effectDuration+=t;return;case rt:var r=n.stateNode;r.effectDuration+=t;return}n=n.return}}}function qv(e){if(Rc>=0){var t=hi()-Rc;Rc=-1;for(var n=e.return;n!==null;){switch(n.tag){case W:var a=n.stateNode;a!==null&&(a.passiveEffectDuration+=t);return;case rt:var r=n.stateNode;r!==null&&(r.passiveEffectDuration+=t);return}n=n.return}}}function yr(){wc=hi()}function Gv(){Rc=hi()}function Xv(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Ka(e,t){if(e&&e.defaultProps){var n=ye({},t),a=e.defaultProps;for(var r in a)n[r]===void 0&&(n[r]=a[r]);return n}return t}var Qv={},Kv,Jv,Zv,ep,tp,Bg,kc,np,ap,rp,Cu;{Kv=new Set,Jv=new Set,Zv=new Set,ep=new Set,np=new Set,tp=new Set,ap=new Set,rp=new Set,Cu=new Set;var $g=new Set;kc=function(e,t){if(!(e===null||typeof e=="function")){var n=t+"_"+e;$g.has(n)||($g.add(n),f("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e))}},Bg=function(e,t){if(t===void 0){var n=xt(e)||"Component";tp.has(n)||(tp.add(n),f("%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&an){Mn(!0);try{i=n(a,r)}finally{Mn(!1)}}Bg(t,i)}var o=i==null?r:ye({},r,i);if(e.memoizedState=o,e.lanes===P){var l=e.updateQueue;l.baseState=o}}var op={isMounted:oT,enqueueSetState:function(e,t,n){var a=ho(e),r=ia(),i=Si(a),o=Fr(r,i);o.payload=t,n!=null&&(kc(n,"setState"),o.callback=n);var l=di(a,o,i);l!==null&&(Tn(l,a,i,r),rc(l,a,i)),Hf(a,i)},enqueueReplaceState:function(e,t,n){var a=ho(e),r=ia(),i=Si(a),o=Fr(r,i);o.tag=ig,o.payload=t,n!=null&&(kc(n,"replaceState"),o.callback=n);var l=di(a,o,i);l!==null&&(Tn(l,a,i,r),rc(l,a,i)),Hf(a,i)},enqueueForceUpdate:function(e,t){var n=ho(e),a=ia(),r=Si(n),i=Fr(a,r);i.tag=tc,t!=null&&(kc(t,"forceUpdate"),i.callback=t);var o=di(n,i,r);o!==null&&(Tn(o,n,r,a),rc(o,n,r)),HT(n,r)}};function Pg(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&an){Mn(!0);try{u=l.shouldComponentUpdate(a,i,o)}finally{Mn(!1)}}u===void 0&&f("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",xt(t)||"Component")}return u}return t.prototype&&t.prototype.isPureReactComponent?!Il(n,a)||!Il(r,i):!0}function hw(e,t,n){var a=e.stateNode;{var r=xt(t)||"Component",i=a.render;i||(t.prototype&&typeof t.prototype.render=="function"?f("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",r):f("%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&&f("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&&f("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&&f("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",r),a.contextType&&f("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",r),t.childContextTypes&&!Cu.has(t)&&(e.mode&an)===Oe&&(Cu.add(t),f(`%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&&!Cu.has(t)&&(e.mode&an)===Oe&&(Cu.add(t),f(`%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&&f("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),f("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",r)),typeof a.componentShouldUpdate=="function"&&f("%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"&&f("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",xt(t)||"A pure component"),typeof a.componentDidUnmount=="function"&&f("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",r),typeof a.componentDidReceiveProps=="function"&&f("%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"&&f("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",r),typeof a.UNSAFE_componentWillRecieveProps=="function"&&f("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",r);var o=a.props!==n;a.props!==void 0&&o&&f("%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&&f("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"&&!Zv.has(t)&&(Zv.add(t),f("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",xt(t))),typeof a.getDerivedStateFromProps=="function"&&f("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof a.getDerivedStateFromError=="function"&&f("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof t.getSnapshotBeforeUpdate=="function"&&f("%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"||ot(l))&&f("%s.state: must be set to an object or null",r),typeof a.getChildContext=="function"&&typeof t.childContextTypes!="object"&&f("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",r)}}function Yg(e,t){t.updater=op,e.stateNode=t,nT(t,e),t._reactInternalInstance=Qv}function Ig(e,t,n){var a=!1,r=wa,i=wa,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===h&&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===La?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(", ")+"}.",f("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",xt(t)||"Component",u)}}if(typeof o=="object"&&o!==null)i=vn(o);else{r=jo(e,t,!0);var c=t.contextTypes;a=c!=null,i=a?Uo(e,r):wa}var d=new t(n,i);if(e.mode&an){Mn(!0);try{d=new t(n,i)}finally{Mn(!1)}}var E=e.memoizedState=d.state!==null&&d.state!==void 0?d.state:null;Yg(e,d);{if(typeof t.getDerivedStateFromProps=="function"&&E===null){var S=xt(t)||"Component";Jv.has(S)||(Jv.add(S),f("`%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.",S,d.state===null?"null":"undefined",S))}if(typeof t.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"){var _=null,O=null,N=null;if(typeof d.componentWillMount=="function"&&d.componentWillMount.__suppressDeprecationWarning!==!0?_="componentWillMount":typeof d.UNSAFE_componentWillMount=="function"&&(_="UNSAFE_componentWillMount"),typeof d.componentWillReceiveProps=="function"&&d.componentWillReceiveProps.__suppressDeprecationWarning!==!0?O="componentWillReceiveProps":typeof d.UNSAFE_componentWillReceiveProps=="function"&&(O="UNSAFE_componentWillReceiveProps"),typeof d.componentWillUpdate=="function"&&d.componentWillUpdate.__suppressDeprecationWarning!==!0?N="componentWillUpdate":typeof d.UNSAFE_componentWillUpdate=="function"&&(N="UNSAFE_componentWillUpdate"),_!==null||O!==null||N!==null){var oe=xt(t)||"Component",ke=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ep.has(oe)||(ep.add(oe),f(`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`,oe,ke,_!==null?`
|
|
`+_:"",O!==null?`
|
|
`+O:"",N!==null?`
|
|
`+N:""))}}}return a&&Ny(e,r,i),d}function yw(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(f("%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 Wg(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),f("%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){hw(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=vn(i);else{var o=jo(e,t,!0);r.context=Uo(e,o)}{if(r.state===n){var l=xt(t)||"Component";np.has(l)||(np.add(l),f("%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&an&&Ga.recordLegacyContextWarning(e,r),Ga.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")&&(yw(e,r),ic(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var c=wt;c|=Ni,(e.mode&sr)!==Oe&&(c|=ei),e.flags|=c}}function gw(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=wa;if(typeof l=="object"&&l!==null)u=vn(l);else{var c=jo(e,t,!0);u=Uo(e,c)}var d=t.getDerivedStateFromProps,E=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function";!E&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&Wg(e,r,n,u),lg();var S=e.memoizedState,_=r.state=S;if(ic(e,n,r,a),_=e.memoizedState,i===n&&S===_&&!Vs()&&!oc()){if(typeof r.componentDidMount=="function"){var O=wt;O|=Ni,(e.mode&sr)!==Oe&&(O|=ei),e.flags|=O}return!1}typeof d=="function"&&(ip(e,t,d,n),_=e.memoizedState);var N=oc()||Pg(e,t,i,n,S,_,u);if(N){if(!E&&(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 oe=wt;oe|=Ni,(e.mode&sr)!==Oe&&(oe|=ei),e.flags|=oe}}else{if(typeof r.componentDidMount=="function"){var ke=wt;ke|=Ni,(e.mode&sr)!==Oe&&(ke|=ei),e.flags|=ke}e.memoizedProps=n,e.memoizedState=_}return r.props=n,r.state=_,r.context=u,N}function bw(e,t,n,a,r){var i=t.stateNode;og(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:Ka(t.type,o);i.props=l;var u=t.pendingProps,c=i.context,d=n.contextType,E=wa;if(typeof d=="object"&&d!==null)E=vn(d);else{var S=jo(t,n,!0);E=Uo(t,S)}var _=n.getDerivedStateFromProps,O=typeof _=="function"||typeof i.getSnapshotBeforeUpdate=="function";!O&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||c!==E)&&Wg(t,i,a,E),lg();var N=t.memoizedState,oe=i.state=N;if(ic(t,a,i,r),oe=t.memoizedState,o===u&&N===oe&&!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|=go),!1;typeof _=="function"&&(ip(t,n,_,a),oe=t.memoizedState);var ke=oc()||Pg(t,n,l,a,N,oe,E)||Fe;return ke?(!O&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,oe,E),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,oe,E)),typeof i.componentDidUpdate=="function"&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=go)):(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|=go),t.memoizedProps=a,t.memoizedState=oe),i.props=a,i.state=oe,i.context=E,ke}function Ji(e,t){return{value:e,source:t,stack:xi(t),digest:null}}function up(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Sw(e,t){return!0}function sp(e,t){try{var n=Sw(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===re)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:",c;if(e.tag===W)c=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var d=Xe(e)||"Anonymous";c="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+d+".")}var E=u+`
|
|
`+o+`
|
|
|
|
`+(""+c);console.error(E)}catch(S){setTimeout(function(){throw S})}}var Tw=typeof WeakMap=="function"?WeakMap:Map;function qg(e,t,n){var a=Fr(qt,n);a.tag=pv,a.payload={element:null};var r=t.value;return a.callback=function(){vD(r),sp(e,t)},a}function cp(e,t,n){var a=Fr(qt,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(){r0(e),sp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(a.callback=function(){r0(e),sp(e,t),typeof r!="function"&&fD(this);var u=t.value,c=t.stack;this.componentDidCatch(u,{componentStack:c!==null?c:""}),typeof r!="function"&&(Ta(e.lanes,Be)||f("%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 Gg(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new Tw,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=pD.bind(null,e,t,n);Ya&&Vu(e,n),t.then(i,i)}}function Ew(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 Cw(e,t){var n=e.tag;if((e.mode&ct)===Oe&&(n===ge||n===De||n===we)){var a=e.alternate;a?(e.updateQueue=a.updateQueue,e.memoizedState=a.memoizedState,e.lanes=a.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Xg(e){var t=e;do{if(t.tag===M&&aw(t))return t;t=t.return}while(t!==null);return null}function Qg(e,t,n,a,r){if((e.mode&ct)===Oe){if(e===t)e.flags|=Pa;else{if(e.flags|=_t,n.flags|=kf,n.flags&=-52805,n.tag===re){var i=n.alternate;if(i===null)n.tag=Ae;else{var o=Fr(qt,Be);o.tag=tc,di(n,o,Be)}}n.lanes=tt(n.lanes,Be)}return e}return e.flags|=Pa,e.lanes=r,e}function xw(e,t,n,a,r){if(n.flags|=rs,Ya&&Vu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;Cw(n),Nn()&&n.mode&ct&&By();var o=Xg(t);if(o!==null){o.flags&=-257,Qg(o,t,n,e,r),o.mode&ct&&Gg(e,i,r),Ew(o,e,i);return}else{if(!WT(r)){Gg(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(Nn()&&n.mode&ct){By();var u=Xg(t);if(u!==null){(u.flags&Pa)===je&&(u.flags|=Mi),Qg(u,t,n,e,r),nv(Ji(a,n));return}}a=Ji(a,n),aD(a);var c=t;do{switch(c.tag){case W:{var d=a;c.flags|=Pa;var E=Ml(r);c.lanes=tt(c.lanes,E);var S=qg(c,d,E);yv(c,S);return}case re:var _=a,O=c.type,N=c.stateNode;if((c.flags&_t)===je&&(typeof O.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&!Xb(N))){c.flags|=Pa;var oe=Ml(r);c.lanes=tt(c.lanes,oe);var ke=cp(c,_,oe);yv(c,ke);return}break}c=c.return}while(c!==null)}function ww(){return null}var xu=se.ReactCurrentOwner,Ja=!1,fp,wu,dp,vp,pp,Zi,mp,Mc,Ru;fp={},wu={},dp={},vp={},pp={},Zi=!1,mp={},Mc={},Ru={};function aa(e,t,n,a){e===null?t.child=Zy(t,null,n,a):t.child=Vo(t,e.child,n,a)}function Rw(e,t,n,a){t.child=Vo(t,e.child,null,a),t.child=Vo(t,null,n,a)}function Kg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Wa(i,a,"prop",xt(n))}var o=n.render,l=t.ref,u,c;$o(t,r),xl(t);{if(xu.current=t,Oa(!0),u=Go(e,t,o,a,l,r),c=Xo(),t.mode&an){Mn(!0);try{u=Go(e,t,o,a,l,r),c=Xo()}finally{Mn(!1)}}Oa(!1)}return To(),e!==null&&!Ja?(vg(e,t,r),Vr(e,t,r)):(Nn()&&c&&Qd(t),t.flags|=yo,aa(e,t,u,r),t.child)}function Jg(e,t,n,a,r){if(e===null){var i=n.type;if(LD(i)&&n.compare===null&&n.defaultProps===void 0){var o=i;return o=al(i),t.tag=we,t.type=o,gp(t,i),Zg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Wa(l,a,"prop",xt(i)),n.defaultProps!==void 0){var u=xt(i)||"Unknown";Ru[u]||(f("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),Ru[u]=!0)}}var c=em(n.type,null,a,t,t.mode,r);return c.ref=t.ref,c.return=t,t.child=c,c}{var d=n.type,E=d.propTypes;E&&Wa(E,a,"prop",xt(d))}var S=e.child,_=xp(e,r);if(!_){var O=S.memoizedProps,N=n.compare;if(N=N!==null?N:Il,N(O,a)&&e.ref===t.ref)return Vr(e,t,r)}t.flags|=yo;var oe=ro(S,a);return oe.ref=t.ref,oe.return=t,t.child=oe,oe}function Zg(e,t,n,a,r){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===y){var o=i,l=o._payload,u=o._init;try{i=u(l)}catch{i=null}var c=i&&i.propTypes;c&&Wa(c,a,"prop",xt(i))}}if(e!==null){var d=e.memoizedProps;if(Il(d,a)&&e.ref===t.ref&&t.type===e.type)if(Ja=!1,t.pendingProps=a=d,xp(e,r))(e.flags&kf)!==je&&(Ja=!0);else return t.lanes=e.lanes,Vr(e,t,r)}return hp(e,t,n,a,r)}function eb(e,t,n){var a=t.pendingProps,r=a.children,i=e!==null?e.memoizedState:null;if(a.mode==="hidden"||at)if((t.mode&ct)===Oe){var o={baseLanes:P,cachePool:null,transitions:null};t.memoizedState=o,Pc(t,n)}else if(Ta(n,Aa)){var E={baseLanes:P,cachePool:null,transitions:null};t.memoizedState=E;var S=i!==null?i.baseLanes:n;Pc(t,S)}else{var l=null,u;if(i!==null){var c=i.baseLanes;u=tt(c,n)}else u=n;t.lanes=t.childLanes=Aa;var d={baseLanes:u,cachePool:l,transitions:null};return t.memoizedState=d,t.updateQueue=null,Pc(t,u),null}else{var _;i!==null?(_=tt(i.baseLanes,n),t.memoizedState=null):_=n,Pc(t,_)}return aa(e,t,r,n),t.child}function Dw(e,t,n){var a=t.pendingProps;return aa(e,t,a,n),t.child}function _w(e,t,n){var a=t.pendingProps.children;return aa(e,t,a,n),t.child}function kw(e,t,n){{t.flags|=wt;{var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0}}var r=t.pendingProps,i=r.children;return aa(e,t,i,n),t.child}function tb(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=Li,t.flags|=Mf)}function hp(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Wa(i,a,"prop",xt(n))}var o;{var l=jo(t,n,!0);o=Uo(t,l)}var u,c;$o(t,r),xl(t);{if(xu.current=t,Oa(!0),u=Go(e,t,n,a,o,r),c=Xo(),t.mode&an){Mn(!0);try{u=Go(e,t,n,a,o,r),c=Xo()}finally{Mn(!1)}}Oa(!1)}return To(),e!==null&&!Ja?(vg(e,t,r),Vr(e,t,r)):(Nn()&&c&&Qd(t),t.flags|=yo,aa(e,t,u,r),t.child)}function nb(e,t,n,a,r){{switch(WD(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|=Pa;var c=new Error("Simulated error coming from DevTools"),d=Ml(r);t.lanes=tt(t.lanes,d);var E=cp(t,Ji(c,t),d);yv(t,E);break}}if(t.type!==t.elementType){var S=n.propTypes;S&&Wa(S,a,"prop",xt(n))}}var _;dr(n)?(_=!0,$s(t)):_=!1,$o(t,r);var O=t.stateNode,N;O===null?(Oc(e,t),Ig(t,n,a),lp(t,n,a,r),N=!0):e===null?N=gw(t,n,a,r):N=bw(e,t,n,a,r);var oe=yp(e,t,n,N,_,r);{var ke=t.stateNode;N&&ke.props!==a&&(Zi||f("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"),Zi=!0)}return oe}function yp(e,t,n,a,r,i){tb(e,t);var o=(t.flags&_t)!==je;if(!a&&!o)return r&&Hy(t,n,!1),Vr(e,t,i);var l=t.stateNode;xu.current=t;var u;if(o&&typeof n.getDerivedStateFromError!="function")u=null,Vg();else{xl(t);{if(Oa(!0),u=l.render(),t.mode&an){Mn(!0);try{l.render()}finally{Mn(!1)}}Oa(!1)}To()}return t.flags|=yo,e!==null&&o?Rw(e,t,u,i):aa(e,t,u,i),t.memoizedState=l.state,r&&Hy(t,n,!0),t.child}function ab(e){var t=e.stateNode;t.pendingContext?jy(e,t.pendingContext,t.pendingContext!==t.context):t.context&&jy(e,t.context,!1),gv(e,t.containerInfo)}function Mw(e,t,n){if(ab(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;og(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},c=t.updateQueue;if(c.baseState=u,t.memoizedState=u,t.flags&Mi){var d=Ji(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 rb(e,t,l,n,d)}else if(l!==i){var E=Ji(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t);return rb(e,t,l,n,E)}else{A1(t);var S=Zy(t,null,l,n);t.child=S;for(var _=S;_;)_.flags=_.flags&-3|Oi,_=_.sibling}}else{if(Fo(),l===i)return Vr(e,t,n);aa(e,t,l,n)}return t.child}function rb(e,t,n,a,r){return Fo(),nv(r),t.flags|=Mi,aa(e,t,n,a),t.child}function Lw(e,t,n){cg(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),tb(e,t),aa(e,t,o,n),t.child}function Ow(e,t){return e===null&&tv(t),null}function Aw(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 c=t.tag=OD(u),d=Ka(u,r),E;switch(c){case ge:return gp(t,u),t.type=u=al(u),E=hp(null,t,u,d,a),E;case re:return t.type=u=Gp(u),E=nb(null,t,u,d,a),E;case De:return t.type=u=Xp(u),E=Kg(null,t,u,d,a),E;case ie:{if(t.type!==t.elementType){var S=u.propTypes;S&&Wa(S,d,"prop",xt(u))}return E=Jg(null,t,u,Ka(u.type,d),a),E}}var _="";throw u!==null&&typeof u=="object"&&u.$$typeof===y&&(_=" 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."+_))}function Nw(e,t,n,a,r){Oc(e,t),t.tag=re;var i;return dr(n)?(i=!0,$s(t)):i=!1,$o(t,r),Ig(t,n,a),lp(t,n,a,r),yp(null,t,n,!0,i,r)}function jw(e,t,n,a){Oc(e,t);var r=t.pendingProps,i;{var o=jo(t,n,!1);i=Uo(t,o)}$o(t,a);var l,u;xl(t);{if(n.prototype&&typeof n.prototype.render=="function"){var c=xt(n)||"Unknown";fp[c]||(f("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.",c,c),fp[c]=!0)}t.mode&an&&Ga.recordLegacyContextWarning(t,null),Oa(!0),xu.current=t,l=Go(null,t,n,r,i,a),u=Xo(),Oa(!1)}if(To(),t.flags|=yo,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var d=xt(n)||"Unknown";wu[d]||(f("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",d,d,d),wu[d]=!0)}if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){{var E=xt(n)||"Unknown";wu[E]||(f("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.",E,E,E),wu[E]=!0)}t.tag=re,t.memoizedState=null,t.updateQueue=null;var S=!1;return dr(n)?(S=!0,$s(t)):S=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,hv(t),Yg(t,l),lp(t,n,r,a),yp(null,t,n,!0,S,a)}else{if(t.tag=ge,t.mode&an){Mn(!0);try{l=Go(null,t,n,r,i,a),u=Xo()}finally{Mn(!1)}}return Nn()&&u&&Qd(t),aa(null,t,l,a),gp(t,n),t.child}}function gp(e,t){{if(t&&t.childContextTypes&&f("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var n="",a=Kr();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,f("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=xt(t)||"Unknown";Ru[o]||(f("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),Ru[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=xt(t)||"Unknown";vp[l]||(f("%s: Function components do not support getDerivedStateFromProps.",l),vp[l]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=xt(t)||"Unknown";dp[u]||(f("%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:ww(),transitions:null}}function Uw(e,t){var n=null;return{baseLanes:tt(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function Hw(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return Tv(e,mu)}function zw(e,t){return fs(e.childLanes,t)}function ib(e,t,n){var a=t.pendingProps;qD(t)&&(t.flags|=_t);var r=Xa.current,i=!1,o=(t.flags&_t)!==je;if(o||Hw(r,e)?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r=nw(r,dg)),r=Yo(r),pi(t,r),e===null){tv(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return Pw(t,u)}var c=a.children,d=a.fallback;if(i){var E=Fw(t,c,d,n),S=t.child;return S.memoizedState=Sp(n),t.memoizedState=bp,E}else return Tp(t,c)}else{var _=e.memoizedState;if(_!==null){var O=_.dehydrated;if(O!==null)return Yw(e,t,o,a,O,_,n)}if(i){var N=a.fallback,oe=a.children,ke=Bw(e,t,oe,N,n),Ce=t.child,dt=e.child.memoizedState;return Ce.memoizedState=dt===null?Sp(n):Uw(dt,n),Ce.childLanes=zw(e,n),t.memoizedState=bp,ke}else{var lt=a.children,R=Vw(e,t,lt,n);return t.memoizedState=null,R}}}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 Fw(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&ct)===Oe&&i!==null?(l=i,l.childLanes=P,l.pendingProps=o,e.mode&At&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=Ei(n,r,a,null)):(l=Ep(o,r),u=Ei(n,r,a,null)),l.return=e,u.return=e,l.sibling=u,e.child=l,u}function Ep(e,t,n){return o0(e,t,P,null)}function ob(e,t){return ro(e,t)}function Vw(e,t,n,a){var r=e.child,i=r.sibling,o=ob(r,{mode:"visible",children:n});if((t.mode&ct)===Oe&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=ki):l.push(i)}return t.child=o,o}function Bw(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},c;if((i&ct)===Oe&&t.child!==o){var d=t.child;c=d,c.childLanes=P,c.pendingProps=u,t.mode&At&&(c.actualDuration=0,c.actualStartTime=-1,c.selfBaseDuration=o.selfBaseDuration,c.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else c=ob(o,u),c.subtreeFlags=o.subtreeFlags&Mr;var E;return l!==null?E=ro(l,a):(E=Ei(a,i,r,null),E.flags|=_n),E.return=t,c.return=t,c.sibling=E,t.child=c,E}function Lc(e,t,n,a){a!==null&&nv(a),Vo(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 $w(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Ep(o,i),u=Ei(a,i,r,null);return u.flags|=_n,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&ct)!==Oe&&Vo(t,e.child,null,r),u}function Pw(e,t,n){return(e.mode&ct)===Oe?(f("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=Be):Vd(t)?e.lanes=Hi:e.lanes=Aa,null}function Yw(e,t,n,a,r,i,o){if(n)if(t.flags&Mi){t.flags&=-257;var R=up(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Lc(e,t,o,R)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=_t,null;var j=a.children,D=a.fallback,Y=$w(e,t,j,D,o),pe=t.child;return pe.memoizedState=Sp(o),t.memoizedState=bp,Y}else{if(L1(),(t.mode&ct)===Oe)return Lc(e,t,o,null);if(Vd(r)){var l,u,c;{var d=Gx(r);l=d.digest,u=d.message,c=d.stack}var E;u?E=new Error(u):E=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var S=up(E,l,c);return Lc(e,t,o,S)}var _=Ta(o,e.childLanes);if(Ja||_){var O=$c();if(O!==null){var N=eE(O,o);if(N!==Ln&&N!==i.retryLane){i.retryLane=N;var oe=qt;da(e,N),Tn(O,e,N,oe)}}Pp();var ke=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,ke)}else if(ky(r)){t.flags|=_t,t.child=e.child;var Ce=mD.bind(null,e);return Xx(r,Ce),null}else{N1(t,r,i.treeContext);var dt=a.children,lt=Tp(t,dt);return lt.flags|=Oi,lt}}}function lb(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 Iw(e,t,n){for(var a=t;a!==null;){if(a.tag===M){var r=a.memoizedState;r!==null&&lb(a,n,e)}else if(a.tag===nt)lb(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 Ww(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 qw(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":{f('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{f('"%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:f('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else f('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function Gw(e,t){e!==void 0&&!Mc[e]&&(e!=="collapsed"&&e!=="hidden"?(Mc[e]=!0,f('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Mc[e]=!0,f('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function ub(e,t){{var n=ot(e),a=!n&&typeof Re(e)=="function";if(n||a){var r=n?"array":"iterable";return f("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 Xw(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(ot(e)){for(var n=0;n<e.length;n++)if(!ub(e[n],n))return}else{var a=Re(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(!ub(i.value,o))return;o++}}else f('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 sb(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail,o=a.children;qw(r),Gw(i,r),Xw(o,r),aa(e,t,o,n);var l=Xa.current,u=Tv(l,mu);if(u)l=Ev(l,mu),t.flags|=_t;else{var c=e!==null&&(e.flags&_t)!==je;c&&Iw(t,t.child,n),l=Yo(l)}if(pi(t,l),(t.mode&ct)===Oe)t.memoizedState=null;else switch(r){case"forwards":{var d=Ww(t.child),E;d===null?(E=t.child,t.child=null):(E=d.sibling,d.sibling=null),Cp(t,!1,E,d,i);break}case"backwards":{var S=null,_=t.child;for(t.child=null;_!==null;){var O=_.alternate;if(O!==null&&sc(O)===null){t.child=_;break}var N=_.sibling;_.sibling=S,S=_,_=N}Cp(t,!0,S,null,i);break}case"together":{Cp(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function Qw(e,t,n){gv(t,t.stateNode.containerInfo);var a=t.pendingProps;return e===null?t.child=Vo(t,null,a,n):aa(e,t,a,n),t.child}var cb=!1;function Kw(e,t,n){var a=t.type,r=a._context,i=t.pendingProps,o=t.memoizedProps,l=i.value;{"value"in i||cb||(cb=!0,f("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var u=t.type.propTypes;u&&Wa(u,i,"prop","Context.Provider")}if(ng(t,r,l),o!==null){var c=o.value;if(xa(c,l)){if(o.children===i.children&&!Vs())return Vr(e,t,n)}else q1(t,r,n)}var d=i.children;return aa(e,t,d,n),t.child}var fb=!1;function Jw(e,t,n){var a=t.type;a._context===void 0?a!==a.Consumer&&(fb||(fb=!0,f("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"&&f("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."),$o(t,n);var o=vn(a);xl(t);var l;return xu.current=t,Oa(!0),l=i(o),Oa(!1),To(),t.flags|=yo,aa(e,t,l,n),t.child}function Du(){Ja=!0}function Oc(e,t){(t.mode&ct)===Oe&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=_n)}function Vr(e,t,n){return e!==null&&(t.dependencies=e.dependencies),Vg(),Fu(t.lanes),Ta(n,t.childLanes)?(I1(e,t),t.child):null}function Zw(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|=ki):i.push(e),n.flags|=_n,n}}function xp(e,t){var n=e.lanes;return!!Ta(n,t)}function eR(e,t,n){switch(t.tag){case W:ab(t),t.stateNode,Fo();break;case ne:cg(t);break;case re:{var a=t.type;dr(a)&&$s(t);break}case z:gv(t,t.stateNode.containerInfo);break;case Pe:{var r=t.memoizedProps.value,i=t.type._context;ng(t,i,r);break}case rt:{var o=Ta(n,t.childLanes);o&&(t.flags|=wt);{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}break;case M:{var u=t.memoizedState;if(u!==null){if(u.dehydrated!==null)return pi(t,Yo(Xa.current)),t.flags|=_t,null;var c=t.child,d=c.childLanes;if(Ta(n,d))return ib(e,t,n);pi(t,Yo(Xa.current));var E=Vr(e,t,n);return E!==null?E.sibling:null}else pi(t,Yo(Xa.current));break}case nt:{var S=(e.flags&_t)!==je,_=Ta(n,t.childLanes);if(S){if(_)return sb(e,t,n);t.flags|=_t}var O=t.memoizedState;if(O!==null&&(O.rendering=null,O.tail=null,O.lastEffect=null),pi(t,Xa.current),_)break;return null}case Me:case Je:return t.lanes=P,eb(e,t,n)}return Vr(e,t,n)}function db(e,t,n){if(t._debugNeedsRemount&&e!==null)return Zw(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)Ja=!0;else{var i=xp(e,n);if(!i&&(t.flags&_t)===je)return Ja=!1,eR(e,t,n);(e.flags&kf)!==je?Ja=!0:Ja=!1}}else if(Ja=!1,Nn()&&w1(t)){var o=t.index,l=R1();Vy(t,l,o)}switch(t.lanes=P,t.tag){case yt:return jw(e,t,t.type,n);case $t:{var u=t.elementType;return Aw(e,t,u,n)}case ge:{var c=t.type,d=t.pendingProps,E=t.elementType===c?d:Ka(c,d);return hp(e,t,c,E,n)}case re:{var S=t.type,_=t.pendingProps,O=t.elementType===S?_:Ka(S,_);return nb(e,t,S,O,n)}case W:return Mw(e,t,n);case ne:return Lw(e,t,n);case Le:return Ow(e,t);case M:return ib(e,t,n);case z:return Qw(e,t,n);case De:{var N=t.type,oe=t.pendingProps,ke=t.elementType===N?oe:Ka(N,oe);return Kg(e,t,N,ke,n)}case zt:return Dw(e,t,n);case Gt:return _w(e,t,n);case rt:return kw(e,t,n);case Pe:return Kw(e,t,n);case gt:return Jw(e,t,n);case ie:{var Ce=t.type,dt=t.pendingProps,lt=Ka(Ce,dt);if(t.type!==t.elementType){var R=Ce.propTypes;R&&Wa(R,lt,"prop",xt(Ce))}return lt=Ka(Ce.type,lt),Jg(e,t,Ce,lt,n)}case we:return Zg(e,t,t.type,t.pendingProps,n);case Ae:{var j=t.type,D=t.pendingProps,Y=t.elementType===j?D:Ka(j,D);return Nw(e,t,j,Y,n)}case nt:return sb(e,t,n);case ce:break;case Me:return eb(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 Qo(e){e.flags|=wt}function vb(e){e.flags|=Li,e.flags|=Mf}var pb,wp,mb,hb;pb=function(e,t,n,a){for(var r=t.child;r!==null;){if(r.tag===ne||r.tag===Le)Ex(e,r.stateNode);else if(r.tag!==z){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}},wp=function(e,t){},mb=function(e,t,n,a,r){var i=e.memoizedProps;if(i!==a){var o=t.stateNode,l=bv(),u=xx(o,n,i,a,r,l);t.updateQueue=u,u&&Qo(t)}},hb=function(e,t,n,a){n!==a&&Qo(t)};function _u(e,t){if(!Nn())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 Un(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=P,a=je;if(t){if((e.mode&At)!==Oe){for(var u=e.selfBaseDuration,c=e.child;c!==null;)n=tt(n,tt(c.lanes,c.childLanes)),a|=c.subtreeFlags&Mr,a|=c.flags&Mr,u+=c.treeBaseDuration,c=c.sibling;e.treeBaseDuration=u}else for(var d=e.child;d!==null;)n=tt(n,tt(d.lanes,d.childLanes)),a|=d.subtreeFlags&Mr,a|=d.flags&Mr,d.return=e,d=d.sibling;e.subtreeFlags|=a}else{if((e.mode&At)!==Oe){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 tR(e,t,n){if(F1()&&(t.mode&ct)!==Oe&&(t.flags&_t)===je)return qy(t),Fo(),t.flags|=Mi|rs|Pa,!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(H1(t),Un(t),(t.mode&At)!==Oe){var r=n!==null;if(r){var i=t.child;i!==null&&(t.treeBaseDuration-=i.treeBaseDuration)}}return!1}else{if(Fo(),(t.flags&_t)===je&&(t.memoizedState=null),t.flags|=wt,Un(t),(t.mode&At)!==Oe){var o=n!==null;if(o){var l=t.child;l!==null&&(t.treeBaseDuration-=l.treeBaseDuration)}}return!1}else return Gy(),!0}function yb(e,t,n){var a=t.pendingProps;switch(Kd(t),t.tag){case yt:case $t:case we:case ge:case De:case zt:case Gt:case rt:case gt:case ie:return Un(t),null;case re:{var r=t.type;return dr(r)&&Bs(t),Un(t),null}case W:{var i=t.stateNode;if(Po(t),qd(t),xv(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e===null||e.child===null){var o=qs(t);if(o)Qo(t);else if(e!==null){var l=e.memoizedState;(!l.isDehydrated||(t.flags&Mi)!==je)&&(t.flags|=go,Gy())}}return wp(e,t),Un(t),null}case ne:{Sv(t);var u=sg(),c=t.type;if(e!==null&&t.stateNode!=null)mb(e,t,c,a,u),e.ref!==t.ref&&vb(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 Un(t),null}var d=bv(),E=qs(t);if(E)j1(t,u,d)&&Qo(t);else{var S=Tx(c,a,u,d,t);pb(S,t,!1,!1),t.stateNode=S,Cx(S,c,a,u)&&Qo(t)}t.ref!==null&&vb(t)}return Un(t),null}case Le:{var _=a;if(e&&t.stateNode!=null){var O=e.memoizedProps;hb(e,t,O,_)}else{if(typeof _!="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=sg(),oe=bv(),ke=qs(t);ke?U1(t)&&Qo(t):t.stateNode=wx(_,N,oe,t)}return Un(t),null}case M:{Io(t);var Ce=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var dt=tR(e,t,Ce);if(!dt)return t.flags&Pa?t:null}if((t.flags&_t)!==je)return t.lanes=n,(t.mode&At)!==Oe&&Xv(t),t;var lt=Ce!==null,R=e!==null&&e.memoizedState!==null;if(lt!==R&<){var j=t.child;if(j.flags|=Ai,(t.mode&ct)!==Oe){var D=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);D||Tv(Xa.current,dg)?nD():Pp()}}var Y=t.updateQueue;if(Y!==null&&(t.flags|=wt),Un(t),(t.mode&At)!==Oe&<){var pe=t.child;pe!==null&&(t.treeBaseDuration-=pe.treeBaseDuration)}return null}case z:return Po(t),wp(e,t),e===null&&g1(t.stateNode.containerInfo),Un(t),null;case Pe:var ue=t.type._context;return fv(ue,t),Un(t),null;case Ae:{var ze=t.type;return dr(ze)&&Bs(t),Un(t),null}case nt:{Io(t);var qe=t.memoizedState;if(qe===null)return Un(t),null;var jt=(t.flags&_t)!==je,bt=qe.rendering;if(bt===null)if(jt)_u(qe,!1);else{var ln=rD()&&(e===null||(e.flags&_t)===je);if(!ln)for(var St=t.child;St!==null;){var rn=sc(St);if(rn!==null){jt=!0,t.flags|=_t,_u(qe,!1);var qn=rn.updateQueue;return qn!==null&&(t.updateQueue=qn,t.flags|=wt),t.subtreeFlags=je,W1(t,n),pi(t,Ev(Xa.current,mu)),t.child}St=St.sibling}qe.tail!==null&&kn()>zb()&&(t.flags|=_t,jt=!0,_u(qe,!1),t.lanes=hh)}else{if(!jt){var Bn=sc(bt);if(Bn!==null){t.flags|=_t,jt=!0;var Da=Bn.updateQueue;if(Da!==null&&(t.updateQueue=Da,t.flags|=wt),_u(qe,!0),qe.tail===null&&qe.tailMode==="hidden"&&!bt.alternate&&!Nn())return Un(t),null}else kn()*2-qe.renderingStartTime>zb()&&n!==Aa&&(t.flags|=_t,jt=!0,_u(qe,!1),t.lanes=hh)}if(qe.isBackwards)bt.sibling=t.child,t.child=bt;else{var oa=qe.last;oa!==null?oa.sibling=bt:t.child=bt,qe.last=bt}}if(qe.tail!==null){var la=qe.tail;qe.rendering=la,qe.tail=la.sibling,qe.renderingStartTime=kn(),la.sibling=null;var Gn=Xa.current;return jt?Gn=Ev(Gn,mu):Gn=Yo(Gn),pi(t,Gn),la}return Un(t),null}case ce:break;case Me:case Je:{$p(t);var Ir=t.memoizedState,rl=Ir!==null;if(e!==null){var Yu=e.memoizedState,Sr=Yu!==null;Sr!==rl&&(t.flags|=Ai)}return!rl||(t.mode&ct)===Oe?Un(t):Ta(br,Aa)&&(Un(t),t.subtreeFlags&(_n|wt)&&(t.flags|=Ai)),null}case fe:return null;case I: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 nR(e,t,n){switch(Kd(t),t.tag){case re:{var a=t.type;dr(a)&&Bs(t);var r=t.flags;return r&Pa?(t.flags=r&-65537|_t,(t.mode&At)!==Oe&&Xv(t),t):null}case W:{t.stateNode,Po(t),qd(t),xv();var i=t.flags;return(i&Pa)!==je&&(i&_t)===je?(t.flags=i&-65537|_t,t):null}case ne:return Sv(t),null;case M:{Io(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.");Fo()}var l=t.flags;return l&Pa?(t.flags=l&-65537|_t,(t.mode&At)!==Oe&&Xv(t),t):null}case nt:return Io(t),null;case z:return Po(t),null;case Pe:var u=t.type._context;return fv(u,t),null;case Me:case Je:return $p(t),null;case fe:return null;default:return null}}function gb(e,t,n){switch(Kd(t),t.tag){case re:{var a=t.type.childContextTypes;a!=null&&Bs(t);break}case W:{t.stateNode,Po(t),qd(t),xv();break}case ne:{Sv(t);break}case z:Po(t);break;case M:Io(t);break;case nt:Io(t);break;case Pe:var r=t.type._context;fv(r,t);break;case Me:case Je:$p(t);break}}var bb=null;bb=new Set;var Ac=!1,Hn=!1,aR=typeof WeakSet=="function"?WeakSet:Set,be=null,Ko=null,Jo=null;function rR(e){Rf(null,function(){throw e}),Df()}var iR=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&At)try{yr(),t.componentWillUnmount()}finally{hr(e)}else t.componentWillUnmount()};function Sb(e,t){try{yi(mn,e)}catch(n){Yt(e,t,n)}}function Rp(e,t,n){try{iR(e,n)}catch(a){Yt(e,t,a)}}function oR(e,t,n){try{n.componentDidMount()}catch(a){Yt(e,t,a)}}function Tb(e,t){try{Cb(e)}catch(n){Yt(e,t,n)}}function Zo(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var a;try{if(Ue&&un&&e.mode&At)try{yr(),a=n(null)}finally{hr(e)}else a=n(null)}catch(r){Yt(e,t,r)}typeof a=="function"&&f("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){Yt(e,t,a)}}var Eb=!1;function lR(e,t){bx(e.containerInfo),be=t,uR();var n=Eb;return Eb=!1,n}function uR(){for(;be!==null;){var e=be,t=e.child;(e.subtreeFlags&Af)!==je&&t!==null?(t.return=e,be=t):sR()}}function sR(){for(;be!==null;){var e=be;Jt(e);try{cR(e)}catch(n){Yt(e,e.return,n)}Dn();var t=e.sibling;if(t!==null){t.return=e.return,be=t;return}be=e.return}}function cR(e){var t=e.alternate,n=e.flags;if((n&go)!==je){switch(Jt(e),e.tag){case ge:case De:case we:break;case re:{if(t!==null){var a=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type===e.elementType&&!Zi&&(i.props!==e.memoizedProps&&f("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&&f("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:Ka(e.type,a),r);{var l=bb;o===void 0&&!l.has(e.type)&&(l.add(e.type),f("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Xe(e)))}i.__reactInternalSnapshotBeforeUpdate=o}break}case W:{{var u=e.stateNode;Yx(u.containerInfo)}break}case ne:case Le:case z:case Ae: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 Za(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&jn)!==va?wT(t):(e&mn)!==va&&fh(t),(e&vr)!==va&&Bu(!0),Nc(t,n,l),(e&vr)!==va&&Bu(!1),(e&jn)!==va?RT():(e&mn)!==va&&dh())}o=o.next}while(o!==i)}}function yi(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&jn)!==va?CT(t):(e&mn)!==va&&DT(t);var o=i.create;(e&vr)!==va&&Bu(!0),i.destroy=o(),(e&vr)!==va&&Bu(!1),(e&jn)!==va?xT():(e&mn)!==va&&_T();{var l=i.destroy;if(l!==void 0&&typeof l!="function"){var u=void 0;(i.tag&mn)!==je?u="useLayoutEffect":(i.tag&vr)!==je?u="useInsertionEffect":u="useEffect";var c=void 0;l===null?c=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof l.then=="function"?c=`
|
|
|
|
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`:c=" You returned: "+l,f("%s must not return anything besides a function, which is used for clean-up.%s",u,c)}}}i=i.next}while(i!==r)}}function fR(e,t){if((t.flags&wt)!==je)switch(t.tag){case rt:{var n=t.stateNode.passiveEffectDuration,a=t.memoizedProps,r=a.id,i=a.onPostCommit,o=zg(),l=t.alternate===null?"mount":"update";Hg()&&(l="nested-update"),typeof i=="function"&&i(r,l,n,o);var u=t.return;e:for(;u!==null;){switch(u.tag){case W:var c=u.stateNode;c.passiveEffectDuration+=n;break e;case rt:var d=u.stateNode;d.passiveEffectDuration+=n;break e}u=u.return}break}}}function dR(e,t,n,a){if((n.flags&Cl)!==je)switch(n.tag){case ge:case De:case we:{if(!Hn)if(n.mode&At)try{yr(),yi(mn|pn,n)}finally{hr(n)}else yi(mn|pn,n);break}case re:{var r=n.stateNode;if(n.flags&wt&&!Hn)if(t===null)if(n.type===n.elementType&&!Zi&&(r.props!==n.memoizedProps&&f("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&&f("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&At)try{yr(),r.componentDidMount()}finally{hr(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Ka(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!Zi&&(r.props!==n.memoizedProps&&f("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&&f("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&At)try{yr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{hr(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!Zi&&(r.props!==n.memoizedProps&&f("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&&f("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")),ug(n,l,r));break}case W:{var u=n.updateQueue;if(u!==null){var c=null;if(n.child!==null)switch(n.child.tag){case ne:c=n.child.stateNode;break;case re:c=n.child.stateNode;break}ug(n,u,c)}break}case ne:{var d=n.stateNode;if(t===null&&n.flags&wt){var E=n.type,S=n.memoizedProps;Mx(d,E,S)}break}case Le:break;case z:break;case rt:{{var _=n.memoizedProps,O=_.onCommit,N=_.onRender,oe=n.stateNode.effectDuration,ke=zg(),Ce=t===null?"mount":"update";Hg()&&(Ce="nested-update"),typeof N=="function"&&N(n.memoizedProps.id,Ce,n.actualDuration,n.treeBaseDuration,n.actualStartTime,ke);{typeof O=="function"&&O(n.memoizedProps.id,Ce,oe,ke),sD(n);var dt=n.return;e:for(;dt!==null;){switch(dt.tag){case W:var lt=dt.stateNode;lt.effectDuration+=oe;break e;case rt:var R=dt.stateNode;R.effectDuration+=oe;break e}dt=dt.return}}}break}case M:{SR(e,n);break}case nt:case Ae:case ce:case Me:case Je:case I: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.")}Hn||n.flags&Li&&Cb(n)}function vR(e){switch(e.tag){case ge:case De:case we:{if(e.mode&At)try{yr(),Sb(e,e.return)}finally{hr(e)}else Sb(e,e.return);break}case re:{var t=e.stateNode;typeof t.componentDidMount=="function"&&oR(e,e.return,t),Tb(e,e.return);break}case ne:{Tb(e,e.return);break}}}function pR(e,t){for(var n=null,a=e;;){if(a.tag===ne){if(n===null){n=a;try{var r=a.stateNode;t?Vx(r):$x(a.stateNode,a.memoizedProps)}catch(o){Yt(e,e.return,o)}}}else if(a.tag===Le){if(n===null)try{var i=a.stateNode;t?Bx(i):Px(i,a.memoizedProps)}catch(o){Yt(e,e.return,o)}}else if(!((a.tag===Me||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 Cb(e){var t=e.ref;if(t!==null){var n=e.stateNode,a;switch(e.tag){case ne:a=n;break;default:a=n}if(typeof t=="function"){var r;if(e.mode&At)try{yr(),r=t(a)}finally{hr(e)}else r=t(a);typeof r=="function"&&f("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Xe(e))}else t.hasOwnProperty("current")||f("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Xe(e)),t.current=a}}function mR(e){var t=e.alternate;t!==null&&(t.return=null),e.return=null}function xb(e){var t=e.alternate;t!==null&&(e.alternate=null,xb(t));{if(e.child=null,e.deletions=null,e.sibling=null,e.tag===ne){var n=e.stateNode;n!==null&&T1(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 hR(e){for(var t=e.return;t!==null;){if(wb(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 wb(e){return e.tag===ne||e.tag===W||e.tag===z}function Rb(e){var t=e;e:for(;;){for(;t.sibling===null;){if(t.return===null||wb(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==ne&&t.tag!==Le&&t.tag!==he;){if(t.flags&_n||t.child===null||t.tag===z)continue e;t.child.return=t,t=t.child}if(!(t.flags&_n))return t.stateNode}}function yR(e){var t=hR(e);switch(t.tag){case ne:{var n=t.stateNode;t.flags&as&&(_y(n),t.flags&=-33);var a=Rb(e);_p(e,a,n);break}case W:case z:{var r=t.stateNode.containerInfo,i=Rb(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===ne||a===Le;if(r){var i=e.stateNode;t?Ux(n,i,t):Nx(n,i)}else if(a!==z){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===ne||a===Le;if(r){var i=e.stateNode;t?jx(n,i,t):Ax(n,i)}else if(a!==z){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 zn=null,er=!1;function gR(e,t,n){{var a=t;e:for(;a!==null;){switch(a.tag){case ne:{zn=a.stateNode,er=!1;break e}case W:{zn=a.stateNode.containerInfo,er=!0;break e}case z:{zn=a.stateNode.containerInfo,er=!0;break e}}a=a.return}if(zn===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");Db(e,t,n),zn=null,er=!1}mR(n)}function gi(e,t,n){for(var a=n.child;a!==null;)Db(e,t,a),a=a.sibling}function Db(e,t,n){switch(bT(n),n.tag){case ne:Hn||Zo(n,t);case Le:{{var a=zn,r=er;zn=null,gi(e,t,n),zn=a,er=r,zn!==null&&(er?zx(zn,n.stateNode):Hx(zn,n.stateNode))}return}case he:{zn!==null&&(er?Fx(zn,n.stateNode):Fd(zn,n.stateNode));return}case z:{{var i=zn,o=er;zn=n.stateNode.containerInfo,er=!0,gi(e,t,n),zn=i,er=o}return}case ge:case De:case ie:case we:{if(!Hn){var l=n.updateQueue;if(l!==null){var u=l.lastEffect;if(u!==null){var c=u.next,d=c;do{var E=d,S=E.destroy,_=E.tag;S!==void 0&&((_&vr)!==va?Nc(n,t,S):(_&mn)!==va&&(fh(n),n.mode&At?(yr(),Nc(n,t,S),hr(n)):Nc(n,t,S),dh())),d=d.next}while(d!==c)}}}gi(e,t,n);return}case re:{if(!Hn){Zo(n,t);var O=n.stateNode;typeof O.componentWillUnmount=="function"&&Rp(n,t,O)}gi(e,t,n);return}case ce:{gi(e,t,n);return}case Me:{if(n.mode&ct){var N=Hn;Hn=N||n.memoizedState!==null,gi(e,t,n),Hn=N}else gi(e,t,n);break}default:{gi(e,t,n);return}}}function bR(e){e.memoizedState}function SR(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&&r1(i)}}}}function _b(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new aR),t.forEach(function(a){var r=hD.bind(null,e,a);if(!n.has(a)){if(n.add(a),Ya)if(Ko!==null&&Jo!==null)Vu(Jo,Ko);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");a.then(r,r)}})}}function TR(e,t,n){Ko=n,Jo=e,Jt(t),kb(t,e),Jt(t),Ko=null,Jo=null}function tr(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r];try{gR(e,t,i)}catch(u){Yt(i,t,u)}}var o=Wu();if(t.subtreeFlags&Nf)for(var l=t.child;l!==null;)Jt(l),kb(l,e),l=l.sibling;Jt(o)}function kb(e,t,n){var a=e.alternate,r=e.flags;switch(e.tag){case ge:case De:case ie:case we:{if(tr(t,e),gr(e),r&wt){try{Za(vr|pn,e,e.return),yi(vr|pn,e)}catch(ze){Yt(e,e.return,ze)}if(e.mode&At){try{yr(),Za(mn|pn,e,e.return)}catch(ze){Yt(e,e.return,ze)}hr(e)}else try{Za(mn|pn,e,e.return)}catch(ze){Yt(e,e.return,ze)}}return}case re:{tr(t,e),gr(e),r&Li&&a!==null&&Zo(a,a.return);return}case ne:{tr(t,e),gr(e),r&Li&&a!==null&&Zo(a,a.return);{if(e.flags&as){var i=e.stateNode;try{_y(i)}catch(ze){Yt(e,e.return,ze)}}if(r&wt){var o=e.stateNode;if(o!=null){var l=e.memoizedProps,u=a!==null?a.memoizedProps:l,c=e.type,d=e.updateQueue;if(e.updateQueue=null,d!==null)try{Lx(o,d,c,u,l,e)}catch(ze){Yt(e,e.return,ze)}}}}return}case Le:{if(tr(t,e),gr(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 E=e.stateNode,S=e.memoizedProps,_=a!==null?a.memoizedProps:S;try{Ox(E,_,S)}catch(ze){Yt(e,e.return,ze)}}return}case W:{if(tr(t,e),gr(e),r&wt&&a!==null){var O=a.memoizedState;if(O.isDehydrated)try{a1(t.containerInfo)}catch(ze){Yt(e,e.return,ze)}}return}case z:{tr(t,e),gr(e);return}case M:{tr(t,e),gr(e);var N=e.child;if(N.flags&Ai){var oe=N.stateNode,ke=N.memoizedState,Ce=ke!==null;if(oe.isHidden=Ce,Ce){var dt=N.alternate!==null&&N.alternate.memoizedState!==null;dt||tD()}}if(r&wt){try{bR(e)}catch(ze){Yt(e,e.return,ze)}_b(e)}return}case Me:{var lt=a!==null&&a.memoizedState!==null;if(e.mode&ct){var R=Hn;Hn=R||lt,tr(t,e),Hn=R}else tr(t,e);if(gr(e),r&Ai){var j=e.stateNode,D=e.memoizedState,Y=D!==null,pe=e;if(j.isHidden=Y,Y&&!lt&&(pe.mode&ct)!==Oe){be=pe;for(var ue=pe.child;ue!==null;)be=ue,CR(ue),ue=ue.sibling}pR(pe,Y)}return}case nt:{tr(t,e),gr(e),r&wt&&_b(e);return}case ce:return;default:{tr(t,e),gr(e);return}}}function gr(e){var t=e.flags;if(t&_n){try{yR(e)}catch(n){Yt(e,e.return,n)}e.flags&=-3}t&Oi&&(e.flags&=-4097)}function ER(e,t,n){Ko=n,Jo=t,be=e,Mb(e,t,n),Ko=null,Jo=null}function Mb(e,t,n){for(var a=(e.mode&ct)!==Oe;be!==null;){var r=be,i=r.child;if(r.tag===Me&&a){var o=r.memoizedState!==null,l=o||Ac;if(l){kp(e,t,n);continue}else{var u=r.alternate,c=u!==null&&u.memoizedState!==null,d=c||Hn,E=Ac,S=Hn;Ac=l,Hn=d,Hn&&!S&&(be=r,xR(r));for(var _=i;_!==null;)be=_,Mb(_,t,n),_=_.sibling;be=r,Ac=E,Hn=S,kp(e,t,n);continue}}(r.subtreeFlags&Cl)!==je&&i!==null?(i.return=r,be=i):kp(e,t,n)}}function kp(e,t,n){for(;be!==null;){var a=be;if((a.flags&Cl)!==je){var r=a.alternate;Jt(a);try{dR(t,r,a,n)}catch(o){Yt(a,a.return,o)}Dn()}if(a===e){be=null;return}var i=a.sibling;if(i!==null){i.return=a.return,be=i;return}be=a.return}}function CR(e){for(;be!==null;){var t=be,n=t.child;switch(t.tag){case ge:case De:case ie:case we:{if(t.mode&At)try{yr(),Za(mn,t,t.return)}finally{hr(t)}else Za(mn,t,t.return);break}case re:{Zo(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Rp(t,t.return,a);break}case ne:{Zo(t,t.return);break}case Me:{var r=t.memoizedState!==null;if(r){Lb(e);continue}break}}n!==null?(n.return=t,be=n):Lb(e)}}function Lb(e){for(;be!==null;){var t=be;if(t===e){be=null;return}var n=t.sibling;if(n!==null){n.return=t.return,be=n;return}be=t.return}}function xR(e){for(;be!==null;){var t=be,n=t.child;if(t.tag===Me){var a=t.memoizedState!==null;if(a){Ob(e);continue}}n!==null?(n.return=t,be=n):Ob(e)}}function Ob(e){for(;be!==null;){var t=be;Jt(t);try{vR(t)}catch(a){Yt(t,t.return,a)}if(Dn(),t===e){be=null;return}var n=t.sibling;if(n!==null){n.return=t.return,be=n;return}be=t.return}}function wR(e,t,n,a){be=t,RR(t,e,n,a)}function RR(e,t,n,a){for(;be!==null;){var r=be,i=r.child;(r.subtreeFlags&bo)!==je&&i!==null?(i.return=r,be=i):DR(e,t,n,a)}}function DR(e,t,n,a){for(;be!==null;){var r=be;if((r.flags&Zr)!==je){Jt(r);try{_R(t,r,n,a)}catch(o){Yt(r,r.return,o)}Dn()}if(r===e){be=null;return}var i=r.sibling;if(i!==null){i.return=r.return,be=i;return}be=r.return}}function _R(e,t,n,a){switch(t.tag){case ge:case De:case we:{if(t.mode&At){Gv();try{yi(jn|pn,t)}finally{qv(t)}}else yi(jn|pn,t);break}}}function kR(e){be=e,MR()}function MR(){for(;be!==null;){var e=be,t=e.child;if((be.flags&ki)!==je){var n=e.deletions;if(n!==null){for(var a=0;a<n.length;a++){var r=n[a];be=r,AR(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)}}}be=e}}(e.subtreeFlags&bo)!==je&&t!==null?(t.return=e,be=t):LR()}}function LR(){for(;be!==null;){var e=be;(e.flags&Zr)!==je&&(Jt(e),OR(e),Dn());var t=e.sibling;if(t!==null){t.return=e.return,be=t;return}be=e.return}}function OR(e){switch(e.tag){case ge:case De:case we:{e.mode&At?(Gv(),Za(jn|pn,e,e.return),qv(e)):Za(jn|pn,e,e.return);break}}}function AR(e,t){for(;be!==null;){var n=be;Jt(n),jR(n,t),Dn();var a=n.child;a!==null?(a.return=n,be=a):NR(e)}}function NR(e){for(;be!==null;){var t=be,n=t.sibling,a=t.return;if(xb(t),t===e){be=null;return}if(n!==null){n.return=a,be=n;return}be=a}}function jR(e,t){switch(e.tag){case ge:case De:case we:{e.mode&At?(Gv(),Za(jn,e,t),qv(e)):Za(jn,e,t);break}}}function UR(e){switch(e.tag){case ge:case De:case we:{try{yi(mn|pn,e)}catch(n){Yt(e,e.return,n)}break}case re:{var t=e.stateNode;try{t.componentDidMount()}catch(n){Yt(e,e.return,n)}break}}}function HR(e){switch(e.tag){case ge:case De:case we:{try{yi(jn|pn,e)}catch(t){Yt(e,e.return,t)}break}}}function zR(e){switch(e.tag){case ge:case De:case we:{try{Za(mn|pn,e,e.return)}catch(n){Yt(e,e.return,n)}break}case re:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&Rp(e,e.return,t);break}}}function FR(e){switch(e.tag){case ge:case De:case we:try{Za(jn|pn,e,e.return)}catch(t){Yt(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var ku=Symbol.for;ku("selector.component"),ku("selector.has_pseudo_class"),ku("selector.role"),ku("selector.test_id"),ku("selector.text")}var VR=[];function BR(){VR.forEach(function(e){return e()})}var $R=se.ReactCurrentActQueue;function PR(e){{var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,n=typeof jest<"u";return n&&t!==!1}}function Ab(){{var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!e&&$R.current!==null&&f("The current testing environment is not configured to support act(...)"),e}}var YR=Math.ceil,Mp=se.ReactCurrentDispatcher,Lp=se.ReactCurrentOwner,Fn=se.ReactCurrentBatchConfig,nr=se.ReactCurrentActQueue,gn=0,Nb=1,Vn=2,Fa=4,Br=0,Mu=1,eo=2,jc=3,Lu=4,jb=5,Op=6,ft=gn,ra=null,tn=null,bn=P,br=P,Ap=ui(P),Sn=Br,Ou=null,Uc=P,Au=P,Hc=P,Nu=null,pa=null,Np=0,Ub=500,Hb=1/0,IR=500,$r=null;function ju(){Hb=kn()+IR}function zb(){return Hb}var zc=!1,jp=null,el=null,to=!1,bi=null,Uu=P,Up=[],Hp=null,WR=50,Hu=0,zp=null,Fp=!1,Fc=!1,qR=50,tl=0,Vc=null,zu=qt,Bc=P,Fb=!1;function $c(){return ra}function ia(){return(ft&(Vn|Fa))!==gn?kn():(zu!==qt||(zu=kn()),zu)}function Si(e){var t=e.mode;if((t&ct)===Oe)return Be;if((ft&Vn)!==gn&&bn!==P)return Ml(bn);var n=$1()!==B1;if(n){if(Fn.transition!==null){var a=Fn.transition;a._updatedFibers||(a._updatedFibers=new Set),a._updatedFibers.add(e)}return Bc===Ln&&(Bc=Sh()),Bc}var r=Ia();if(r!==Ln)return r;var i=Rx();return i}function GR(e){var t=e.mode;return(t&ct)===Oe?Be:QT()}function Tn(e,t,n,a){gD(),Fb&&f("useInsertionEffect must not schedule updates."),Fp&&(Fc=!0),Ll(e,n,a),(ft&Vn)!==P&&e===ra?TD(t):(Ya&&Ch(e,t,n),ED(t),e===ra&&((ft&Vn)===gn&&(Au=tt(Au,n)),Sn===Lu&&Ti(e,bn)),ma(e,a),n===Be&&ft===gn&&(t.mode&ct)===Oe&&!nr.isBatchingLegacy&&(ju(),Fy()))}function XR(e,t,n){var a=e.current;a.lanes=t,Ll(e,t,n),ma(e,n)}function QR(e){return(ft&Vn)!==gn}function ma(e,t){var n=e.callbackNode;YT(e,t);var a=ss(e,e===ra?bn:P);if(a===P){n!==null&&t0(n),e.callbackNode=null,e.callbackPriority=Ln;return}var r=Fi(a),i=e.callbackPriority;if(i===r&&!(nr.current!==null&&n!==Wp)){n==null&&i!==Be&&f("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}n!=null&&t0(n);var o;if(r===Be)e.tag===si?(nr.isBatchingLegacy!==null&&(nr.didScheduleLegacyUpdate=!0),x1($b.bind(null,e))):zy($b.bind(null,e)),nr.current!==null?nr.current.push(ci):_x(function(){(ft&(Vn|Fa))===gn&&ci()}),o=null;else{var l;switch(Rh(a)){case Ea:l=is;break;case Or:l=jf;break;case Ar:l=Ui;break;case ds:l=Uf;break;default:l=Ui;break}o=qp(l,Vb.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}function Vb(e,t){if(pw(),zu=qt,Bc=P,(ft&(Vn|Fa))!==gn)throw new Error("Should not already be working.");var n=e.callbackNode,a=Yr();if(a&&e.callbackNode!==n)return null;var r=ss(e,e===ra?bn:P);if(r===P)return null;var i=!cs(e,r)&&!XT(e,r)&&!t,o=i?oD(e,r):Yc(e,r);if(o!==Br){if(o===eo){var l=rd(e);l!==P&&(r=l,o=Vp(e,l))}if(o===Mu){var u=Ou;throw no(e,P),Ti(e,r),ma(e,kn()),u}if(o===Op)Ti(e,r);else{var c=!cs(e,r),d=e.current.alternate;if(c&&!JR(d)){if(o=Yc(e,r),o===eo){var E=rd(e);E!==P&&(r=E,o=Vp(e,E))}if(o===Mu){var S=Ou;throw no(e,P),Ti(e,r),ma(e,kn()),S}}e.finishedWork=d,e.finishedLanes=r,KR(e,o,r)}}return ma(e,kn()),e.callbackNode===n?Vb.bind(null,e):null}function Vp(e,t){var n=Nu;if(vs(e)){var a=no(e,t);a.flags|=Mi,y1(e.containerInfo)}var r=Yc(e,t);if(r!==eo){var i=pa;pa=n,i!==null&&Bb(i)}return r}function Bb(e){pa===null?pa=e:pa.push.apply(pa,e)}function KR(e,t,n){switch(t){case Br:case Mu:throw new Error("Root did not complete. This is a bug in React.");case eo:{ao(e,pa,$r);break}case jc:{if(Ti(e,n),gh(n)&&!n0()){var a=Np+Ub-kn();if(a>10){var r=ss(e,P);if(r!==P)break;var i=e.suspendedLanes;if(!wo(i,n)){ia(),Eh(e,i);break}e.timeoutHandle=Hd(ao.bind(null,e,pa,$r),a);break}}ao(e,pa,$r);break}case Lu:{if(Ti(e,n),GT(n))break;if(!n0()){var o=$T(e,n),l=o,u=kn()-l,c=yD(u)-u;if(c>10){e.timeoutHandle=Hd(ao.bind(null,e,pa,$r),c);break}}ao(e,pa,$r);break}case jb:{ao(e,pa,$r);break}default:throw new Error("Unknown root exit status.")}}function JR(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(!xa(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 Ti(e,t){t=fs(t,Hc),t=fs(t,Au),JT(e,t)}function $b(e){if(mw(),(ft&(Vn|Fa))!==gn)throw new Error("Should not already be working.");Yr();var t=ss(e,P);if(!Ta(t,Be))return ma(e,kn()),null;var n=Yc(e,t);if(e.tag!==si&&n===eo){var a=rd(e);a!==P&&(t=a,n=Vp(e,a))}if(n===Mu){var r=Ou;throw no(e,P),Ti(e,t),ma(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,ao(e,pa,$r),ma(e,kn()),null}function ZR(e,t){t!==P&&(ud(e,tt(t,Be)),ma(e,kn()),(ft&(Vn|Fa))===gn&&(ju(),ci()))}function Bp(e,t){var n=ft;ft|=Nb;try{return e(t)}finally{ft=n,ft===gn&&!nr.isBatchingLegacy&&(ju(),Fy())}}function eD(e,t,n,a,r){var i=Ia(),o=Fn.transition;try{return Fn.transition=null,On(Ea),e(t,n,a,r)}finally{On(i),Fn.transition=o,ft===gn&&ju()}}function Pr(e){bi!==null&&bi.tag===si&&(ft&(Vn|Fa))===gn&&Yr();var t=ft;ft|=Nb;var n=Fn.transition,a=Ia();try{return Fn.transition=null,On(Ea),e?e():void 0}finally{On(a),Fn.transition=n,ft=t,(ft&(Vn|Fa))===gn&&ci()}}function Pb(){return(ft&(Vn|Fa))!==gn}function Pc(e,t){In(Ap,br,e),br=tt(br,t)}function $p(e){br=Ap.current,Yn(Ap,e)}function no(e,t){e.finishedWork=null,e.finishedLanes=P;var n=e.timeoutHandle;if(n!==zd&&(e.timeoutHandle=zd,Dx(n)),tn!==null)for(var a=tn.return;a!==null;){var r=a.alternate;gb(r,a),a=a.return}ra=e;var i=ro(e.current,null);return tn=i,bn=br=t,Sn=Br,Ou=null,Uc=P,Au=P,Hc=P,Nu=null,pa=null,X1(),Ga.discardPendingWarnings(),i}function Yb(e,t){do{var n=tn;try{if(Zs(),pg(),Dn(),Lp.current=null,n===null||n.return===null){Sn=Mu,Ou=t,tn=null;return}if(Ue&&n.mode&At&&_c(n,!0),Ve)if(To(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var a=t;MT(n,a,bn)}else kT(n,t,bn);xw(e,n.return,n,t,bn),Gb(n)}catch(r){t=r,tn===n&&n!==null?(n=n.return,tn=n):n=tn;continue}return}while(!0)}function Ib(){var e=Mp.current;return Mp.current=Cc,e===null?Cc:e}function Wb(e){Mp.current=e}function tD(){Np=kn()}function Fu(e){Uc=tt(e,Uc)}function nD(){Sn===Br&&(Sn=jc)}function Pp(){(Sn===Br||Sn===jc||Sn===eo)&&(Sn=Lu),ra!==null&&(id(Uc)||id(Au))&&Ti(ra,bn)}function aD(e){Sn!==Lu&&(Sn=eo),Nu===null?Nu=[e]:Nu.push(e)}function rD(){return Sn===Br}function Yc(e,t){var n=ft;ft|=Vn;var a=Ib();if(ra!==e||bn!==t){if(Ya){var r=e.memoizedUpdaters;r.size>0&&(Vu(e,bn),r.clear()),xh(e,t)}$r=wh(),no(e,t)}vh(t);do try{iD();break}catch(i){Yb(e,i)}while(!0);if(Zs(),ft=n,Wb(a),tn!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return ph(),ra=null,bn=P,Sn}function iD(){for(;tn!==null;)qb(tn)}function oD(e,t){var n=ft;ft|=Vn;var a=Ib();if(ra!==e||bn!==t){if(Ya){var r=e.memoizedUpdaters;r.size>0&&(Vu(e,bn),r.clear()),xh(e,t)}$r=wh(),ju(),no(e,t)}vh(t);do try{lD();break}catch(i){Yb(e,i)}while(!0);return Zs(),Wb(a),ft=n,tn!==null?(jT(),Br):(ph(),ra=null,bn=P,Sn)}function lD(){for(;tn!==null&&!sT();)qb(tn)}function qb(e){var t=e.alternate;Jt(e);var n;(e.mode&At)!==Oe?(Wv(e),n=Yp(t,e,br),_c(e,!0)):n=Yp(t,e,br),Dn(),e.memoizedProps=e.pendingProps,n===null?Gb(e):tn=n,Lp.current=null}function Gb(e){var t=e;do{var n=t.alternate,a=t.return;if((t.flags&rs)===je){Jt(t);var r=void 0;if((t.mode&At)===Oe?r=yb(n,t,br):(Wv(t),r=yb(n,t,br),_c(t,!1)),Dn(),r!==null){tn=r;return}}else{var i=nR(n,t);if(i!==null){i.flags&=aT,tn=i;return}if((t.mode&At)!==Oe){_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=je,a.deletions=null;else{Sn=Op,tn=null;return}}var u=t.sibling;if(u!==null){tn=u;return}t=a,tn=t}while(t!==null);Sn===Br&&(Sn=jb)}function ao(e,t,n){var a=Ia(),r=Fn.transition;try{Fn.transition=null,On(Ea),uD(e,t,n,a)}finally{Fn.transition=r,On(a)}return null}function uD(e,t,n,a){do Yr();while(bi!==null);if(bD(),(ft&(Vn|Fa))!==gn)throw new Error("Should not already be working.");var r=e.finishedWork,i=e.finishedLanes;if(ET(i),r===null)return ch(),null;if(i===P&&f("root.finishedLanes should not be empty during a commit. This is a bug in React."),e.finishedWork=null,e.finishedLanes=P,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);ZT(e,o),e===ra&&(ra=null,tn=null,bn=P),((r.subtreeFlags&bo)!==je||(r.flags&bo)!==je)&&(to||(to=!0,Hp=n,qp(Ui,function(){return Yr(),null})));var l=(r.subtreeFlags&(Af|Nf|Cl|bo))!==je,u=(r.flags&(Af|Nf|Cl|bo))!==je;if(l||u){var c=Fn.transition;Fn.transition=null;var d=Ia();On(Ea);var E=ft;ft|=Fa,Lp.current=null,lR(e,r),Fg(),TR(e,r,i),Sx(e.containerInfo),e.current=r,LT(i),ER(r,e,i),OT(),cT(),ft=E,On(d),Fn.transition=c}else e.current=r,Fg();var S=to;if(to?(to=!1,bi=e,Uu=i):(tl=0,Vc=null),o=e.pendingLanes,o===P&&(el=null),S||Jb(e.current,!1),yT(r.stateNode,a),Ya&&e.memoizedUpdaters.clear(),BR(),ma(e,kn()),t!==null)for(var _=e.onRecoverableError,O=0;O<t.length;O++){var N=t[O],oe=N.stack,ke=N.digest;_(N.value,{componentStack:oe,digest:ke})}if(zc){zc=!1;var Ce=jp;throw jp=null,Ce}return Ta(Uu,Be)&&e.tag!==si&&Yr(),o=e.pendingLanes,Ta(o,Be)?(vw(),e===zp?Hu++:(Hu=0,zp=e)):Hu=0,ci(),ch(),null}function Yr(){if(bi!==null){var e=Rh(Uu),t=aE(Ar,e),n=Fn.transition,a=Ia();try{return Fn.transition=null,On(t),cD()}finally{On(a),Fn.transition=n}}return!1}function sD(e){Up.push(e),to||(to=!0,qp(Ui,function(){return Yr(),null}))}function cD(){if(bi===null)return!1;var e=Hp;Hp=null;var t=bi,n=Uu;if(bi=null,Uu=P,(ft&(Vn|Fa))!==gn)throw new Error("Cannot flush passive effects while already rendering.");Fp=!0,Fc=!1,AT(n);var a=ft;ft|=Fa,kR(t.current),wR(t,t.current,n,e);{var r=Up;Up=[];for(var i=0;i<r.length;i++){var o=r[i];fR(t,o)}}NT(),Jb(t.current,!0),ft=a,ci(),Fc?t===Vc?tl++:(tl=0,Vc=t):tl=0,Fp=!1,Fc=!1,gT(t);{var l=t.current.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}return!0}function Xb(e){return el!==null&&el.has(e)}function fD(e){el===null?el=new Set([e]):el.add(e)}function dD(e){zc||(zc=!0,jp=e)}var vD=dD;function Qb(e,t,n){var a=Ji(n,t),r=qg(e,a,Be),i=di(e,r,Be),o=ia();i!==null&&(Ll(i,Be,o),ma(i,o))}function Yt(e,t,n){if(rR(n),Bu(!1),e.tag===W){Qb(e,e,n);return}var a=null;for(a=t;a!==null;){if(a.tag===W){Qb(a,e,n);return}else if(a.tag===re){var r=a.type,i=a.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&!Xb(i)){var o=Ji(n,e),l=cp(a,o,Be),u=di(a,l,Be),c=ia();u!==null&&(Ll(u,Be,c),ma(u,c));return}}a=a.return}f(`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 pD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=ia();Eh(e,n),CD(e),ra===e&&wo(bn,n)&&(Sn===Lu||Sn===jc&&gh(bn)&&kn()-Np<Ub?no(e,P):Hc=tt(Hc,n)),ma(e,r)}function Kb(e,t){t===Ln&&(t=GR(e));var n=ia(),a=da(e,t);a!==null&&(Ll(a,t,n),ma(a,n))}function mD(e){var t=e.memoizedState,n=Ln;t!==null&&(n=t.retryLane),Kb(e,n)}function hD(e,t){var n=Ln,a;switch(e.tag){case M:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case nt: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),Kb(e,n)}function yD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:YR(e/1960)*1960}function gD(){if(Hu>WR)throw Hu=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.");tl>qR&&(tl=0,Vc=null,f("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 bD(){Ga.flushLegacyContextWarning(),Ga.flushPendingUnsafeLifecycleWarnings()}function Jb(e,t){Jt(e),Ic(e,ei,zR),t&&Ic(e,Of,FR),Ic(e,ei,UR),t&&Ic(e,Of,HR),Dn()}function Ic(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==je?a=a.child:((a.flags&t)!==je&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var Wc=null;function Zb(e){{if((ft&Vn)!==gn||!(e.mode&ct))return;var t=e.tag;if(t!==yt&&t!==W&&t!==re&&t!==ge&&t!==De&&t!==ie&&t!==we)return;var n=Xe(e)||"ReactComponent";if(Wc!==null){if(Wc.has(n))return;Wc.add(n)}else Wc=new Set([n]);var a=ea;try{Jt(e),f("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 SD=null;Yp=function(e,t,n){var a=l0(SD,t);try{return db(e,t,n)}catch(i){if(O1()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(Zs(),pg(),gb(e,t),l0(t,a),t.mode&At&&Wv(t),Rf(null,db,null,e,t,n),eT()){var r=Df();typeof r=="object"&&r!==null&&r._suppressLogging&&typeof i=="object"&&i!==null&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}}}var e0=!1,Ip;Ip=new Set;function TD(e){if(wi&&!cw())switch(e.tag){case ge:case De:case we:{var t=tn&&Xe(tn)||"Unknown",n=t;if(!Ip.has(n)){Ip.add(n);var a=Xe(e)||"Unknown";f("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 re:{e0||(f("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),e0=!0);break}}}function Vu(e,t){if(Ya){var n=e.memoizedUpdaters;n.forEach(function(a){Ch(e,a,t)})}}var Wp={};function qp(e,t){{var n=nr.current;return n!==null?(n.push(t),Wp):sh(e,t)}}function t0(e){if(e!==Wp)return uT(e)}function n0(){return nr.current!==null}function ED(e){{if(e.mode&ct){if(!Ab())return}else if(!PR()||ft!==gn||e.tag!==ge&&e.tag!==De&&e.tag!==we)return;if(nr.current===null){var t=ea;try{Jt(e),f(`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 CD(e){e.tag!==si&&Ab()&&nr.current===null&&f(`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 Bu(e){Fb=e}var Va=null,nl=null,xD=function(e){Va=e};function al(e){{if(Va===null)return e;var t=Va(e);return t===void 0?e:t.current}}function Gp(e){return al(e)}function Xp(e){{if(Va===null)return e;var t=Va(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=al(e.render);if(e.render!==n){var a={$$typeof:$,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function a0(e,t){{if(Va===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 re:{typeof a=="function"&&(r=!0);break}case ge:{(typeof a=="function"||i===y)&&(r=!0);break}case De:{(i===$||i===y)&&(r=!0);break}case ie:case we:{(i===T||i===y)&&(r=!0);break}default:return!1}if(r){var o=Va(n);if(o!==void 0&&o===Va(a))return!0}return!1}}function r0(e){{if(Va===null||typeof WeakSet!="function")return;nl===null&&(nl=new WeakSet),nl.add(e)}}var wD=function(e,t){{if(Va===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Yr(),Pr(function(){Qp(e.current,a,n)})}},RD=function(e,t){{if(e.context!==wa)return;Yr(),Pr(function(){$u(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 ge:case we:case re:u=l;break;case De:u=l.render;break}if(Va===null)throw new Error("Expected resolveFamily to be set during hot reload.");var c=!1,d=!1;if(u!==null){var E=Va(u);E!==void 0&&(n.has(E)?d=!0:t.has(E)&&(o===re?d=!0:c=!0))}if(nl!==null&&(nl.has(e)||a!==null&&nl.has(a))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||c){var S=da(e,Be);S!==null&&Tn(S,e,Be,qt)}r!==null&&!d&&Qp(r,t,n),i!==null&&Qp(i,t,n)}}var DD=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 ge:case we:case re:l=o;break;case De:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?_D(e,n):a!==null&&Kp(a,t,n),r!==null&&Kp(r,t,n)}}function _D(e,t){{var n=kD(e,t);if(n)return;for(var a=e;;){switch(a.tag){case ne:t.add(a.stateNode);return;case z:t.add(a.stateNode.containerInfo);return;case W:t.add(a.stateNode.containerInfo);return}if(a.return===null)throw new Error("Expected to reach root first.");a=a.return}}}function kD(e,t){for(var n=e,a=!1;;){if(n.tag===ne)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 Jp;{Jp=!1;try{var i0=Object.preventExtensions({})}catch{Jp=!0}}function MD(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=je,this.subtreeFlags=je,this.deletions=null,this.lanes=P,this.childLanes=P,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,!Jp&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Ra=function(e,t,n,a){return new MD(e,t,n,a)};function Zp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function LD(e){return typeof e=="function"&&!Zp(e)&&e.defaultProps===void 0}function OD(e){if(typeof e=="function")return Zp(e)?re:ge;if(e!=null){var t=e.$$typeof;if(t===$)return De;if(t===T)return ie}return yt}function ro(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=je,n.subtreeFlags=je,n.deletions=null,n.actualDuration=0,n.actualStartTime=-1),n.flags=e.flags&Mr,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 yt:case ge:case we:n.type=al(e.type);break;case re:n.type=Gp(e.type);break;case De:n.type=Xp(e.type);break}return n}function AD(e,t){e.flags&=Mr|_n;var n=e.alternate;if(n===null)e.childLanes=P,e.lanes=t,e.child=null,e.subtreeFlags=je,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=je,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 ND(e,t,n){var a;return e===Ps?(a=ct,t===!0&&(a|=an,a|=sr)):a=Oe,Ya&&(a|=At),Ra(W,null,null,a)}function em(e,t,n,a,r,i){var o=yt,l=e;if(typeof e=="function")Zp(e)?(o=re,l=Gp(l)):l=al(l);else if(typeof e=="string")o=ne;else e:switch(e){case ka:return Ei(n.children,r,i,t);case Tr:o=Gt,r|=an,(r&ct)!==Oe&&(r|=sr);break;case Ma:return jD(n,r,i,t);case v:return UD(n,r,i,t);case x:return HD(n,r,i,t);case g:return o0(n,r,i,t);case U:case b:case H:case J:case C:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case La:o=Pe;break e;case h:o=gt;break e;case $:o=De,l=Xp(l);break e;case T:o=ie;break e;case y:o=$t,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 c=a?Xe(a):null;c&&(u+=`
|
|
|
|
Check the render method of \``+c+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+u))}}var d=Ra(o,n,t,r);return d.elementType=e,d.type=l,d.lanes=i,d._debugOwner=a,d}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 Ei(e,t,n,a){var r=Ra(zt,e,a,t);return r.lanes=n,r}function jD(e,t,n,a){typeof e.id!="string"&&f('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var r=Ra(rt,e,a,t|At);return r.elementType=Ma,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function UD(e,t,n,a){var r=Ra(M,e,a,t);return r.elementType=v,r.lanes=n,r}function HD(e,t,n,a){var r=Ra(nt,e,a,t);return r.elementType=x,r.lanes=n,r}function o0(e,t,n,a){var r=Ra(Me,e,a,t);r.elementType=g,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function nm(e,t,n){var a=Ra(Le,e,null,t);return a.lanes=n,a}function zD(){var e=Ra(ne,null,null,Oe);return e.elementType="DELETED",e}function FD(e){var t=Ra(he,null,null,Oe);return t.stateNode=e,t}function am(e,t,n){var a=e.children!==null?e.children:[],r=Ra(z,a,e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function l0(e,t){return e===null&&(e=Ra(yt,null,null,Oe)),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 VD(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(P),this.expirationTimes=ld(qt),this.pendingLanes=P,this.suspendedLanes=P,this.pingedLanes=P,this.expiredLanes=P,this.mutableReadLanes=P,this.finishedLanes=P,this.entangledLanes=P,this.entanglements=ld(P),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 si:this._debugRootType=n?"hydrate()":"render()";break}}function u0(e,t,n,a,r,i,o,l,u,c){var d=new VD(e,t,n,l,u),E=ND(t,i);d.current=E,E.stateNode=d;{var S={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};E.memoizedState=S}return hv(E),d}var rm="18.3.1";function BD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return He(a),{$$typeof:Jn,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var im,om;im=!1,om={};function s0(e){if(!e)return wa;var t=ho(e),n=C1(t);if(t.tag===re){var a=t.type;if(dr(a))return Uy(t,a,n)}return n}function $D(e,t){{var n=ho(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=oh(n);if(r===null)return null;if(r.mode&an){var i=Xe(n)||"Component";if(!om[i]){om[i]=!0;var o=ea;try{Jt(r),n.mode&an?f("%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):f("%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 c0(e,t,n,a,r,i,o,l){var u=!1,c=null;return u0(e,t,u,c,n,a,r,i,o)}function f0(e,t,n,a,r,i,o,l,u,c){var d=!0,E=u0(n,a,d,e,r,i,o,l,u);E.context=s0(null);var S=E.current,_=ia(),O=Si(S),N=Fr(_,O);return N.callback=t??null,di(S,N,O),XR(E,O,_),E}function $u(e,t,n,a){hT(t,e);var r=t.current,i=ia(),o=Si(r);UT(o);var l=s0(n);t.context===null?t.context=l:t.pendingContext=l,wi&&ea!==null&&!im&&(im=!0,f(`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(ea)||"Unknown"));var u=Fr(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&f("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var c=di(r,u,o);return c!==null&&(Tn(c,r,o,i),rc(c,r,o)),o}function qc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case ne:return t.child.stateNode;default:return t.child.stateNode}}function PD(e){switch(e.tag){case W:{var t=e.stateNode;if(vs(t)){var n=IT(t);ZR(t,n)}break}case M:{Pr(function(){var r=da(e,Be);if(r!==null){var i=ia();Tn(r,e,Be,i)}});var a=Be;lm(e,a);break}}}function d0(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=KT(n.retryLane,t))}function lm(e,t){d0(e,t);var n=e.alternate;n&&d0(n,t)}function YD(e){if(e.tag===M){var t=Dl,n=da(e,t);if(n!==null){var a=ia();Tn(n,e,t,a)}lm(e,t)}}function ID(e){if(e.tag===M){var t=Si(e),n=da(e,t);if(n!==null){var a=ia();Tn(n,e,t,a)}lm(e,t)}}function v0(e){var t=lT(e);return t===null?null:t.stateNode}var p0=function(e){return null};function WD(e){return p0(e)}var m0=function(e){return!1};function qD(e){return m0(e)}var h0=null,y0=null,g0=null,b0=null,S0=null,T0=null,E0=null,C0=null,x0=null;{var w0=function(e,t,n){var a=t[n],r=ot(e)?e.slice():ye({},e);return n+1===t.length?(ot(r)?r.splice(a,1):delete r[a],r):(r[a]=w0(e[a],t,n+1),r)},R0=function(e,t){return w0(e,t,0)},D0=function(e,t,n,a){var r=t[a],i=ot(e)?e.slice():ye({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],ot(i)?i.splice(r,1):delete i[r]}else i[r]=D0(e[r],t,n,a+1);return i},_0=function(e,t,n){if(t.length!==n.length){xe("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){xe("copyWithRename() expects paths to be the same except for the deepest key");return}return D0(e,t,n,0)},k0=function(e,t,n,a){if(n>=t.length)return a;var r=t[n],i=ot(e)?e.slice():ye({},e);return i[r]=k0(e[r],t,n+1,a),i},M0=function(e,t,n){return k0(e,t,0,n)},um=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};h0=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=M0(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=ye({},e.memoizedProps);var o=da(e,Be);o!==null&&Tn(o,e,Be,qt)}},y0=function(e,t,n){var a=um(e,t);if(a!==null){var r=R0(a.memoizedState,n);a.memoizedState=r,a.baseState=r,e.memoizedProps=ye({},e.memoizedProps);var i=da(e,Be);i!==null&&Tn(i,e,Be,qt)}},g0=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=ye({},e.memoizedProps);var o=da(e,Be);o!==null&&Tn(o,e,Be,qt)}},b0=function(e,t,n){e.pendingProps=M0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=da(e,Be);a!==null&&Tn(a,e,Be,qt)},S0=function(e,t){e.pendingProps=R0(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=da(e,Be);n!==null&&Tn(n,e,Be,qt)},T0=function(e,t,n){e.pendingProps=_0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=da(e,Be);a!==null&&Tn(a,e,Be,qt)},E0=function(e){var t=da(e,Be);t!==null&&Tn(t,e,Be,qt)},C0=function(e){p0=e},x0=function(e){m0=e}}function GD(e){var t=oh(e);return t===null?null:t.stateNode}function XD(e){return null}function QD(){return ea}function KD(e){var t=e.findFiberByHostInstance,n=se.ReactCurrentDispatcher;return mT({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:h0,overrideHookStateDeletePath:y0,overrideHookStateRenamePath:g0,overrideProps:b0,overridePropsDeletePath:S0,overridePropsRenamePath:T0,setErrorHandler:C0,setSuspenseHandler:x0,scheduleUpdate:E0,currentDispatcherRef:n,findHostInstanceByFiber:GD,findFiberByHostInstance:t||XD,findHostInstancesForRefresh:DD,scheduleRefresh:wD,scheduleRoot:RD,setRefreshHandler:xD,getCurrentFiber:QD,reconcilerVersion:rm})}var L0=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"?f("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])?f("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"&&f("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(n.nodeType!==dn){var a=v0(t.current);a&&a.parentNode!==n&&f("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.")}}$u(e,t,null,null)},Gc.prototype.unmount=sm.prototype.unmount=function(){typeof arguments[0]=="function"&&f("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;Pb()&&f("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."),Pr(function(){$u(null,e,null,null)}),Ly(t)}};function JD(e,t){if(!Xc(e))throw new Error("createRoot(...): Target container is not a DOM element.");O0(e);var n=!1,a=!1,r="",i=L0;t!=null&&(t.hydrate?xe("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===Kn&&f(`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=c0(e,Ps,null,n,a,r,i);Us(o.current,e);var l=e.nodeType===dn?e.parentNode:e;return Gl(l),new sm(o)}function Gc(e){this._internalRoot=e}function ZD(e){e&&pE(e)}Gc.prototype.unstable_scheduleHydration=ZD;function e_(e,t,n){if(!Xc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");O0(e),t===void 0&&f("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=L0;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var c=f0(t,null,e,Ps,a,i,o,l,u);if(Us(c.current,e),Gl(e),r)for(var d=0;d<r.length;d++){var E=r[d];rw(c,E)}return new Gc(c)}function Xc(e){return!!(e&&(e.nodeType===ca||e.nodeType===kr||e.nodeType===mf))}function Pu(e){return!!(e&&(e.nodeType===ca||e.nodeType===kr||e.nodeType===mf||e.nodeType===dn&&e.nodeValue===" react-mount-point-unstable "))}function O0(e){e.nodeType===ca&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&f("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."),iu(e)&&(e._reactRootContainer?f("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):f("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 t_=se.ReactCurrentOwner,A0;A0=function(e){if(e._reactRootContainer&&e.nodeType!==dn){var t=v0(e._reactRootContainer.current);t&&t.parentNode!==e&&f("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&&li(a));r&&!n&&f("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===ca&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&f("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===kr?e.documentElement:e.firstChild:null}function N0(){}function n_(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var S=qc(o);i.call(S)}}var o=f0(t,a,e,si,null,!1,!1,"",N0);e._reactRootContainer=o,Us(o.current,e);var l=e.nodeType===dn?e.parentNode:e;return Gl(l),Pr(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var c=a;a=function(){var S=qc(d);c.call(S)}}var d=c0(e,si,null,!1,!1,"",N0);e._reactRootContainer=d,Us(d.current,e);var E=e.nodeType===dn?e.parentNode:e;return Gl(E),Pr(function(){$u(t,d,n,a)}),d}}function a_(e,t){e!==null&&typeof e!="function"&&f("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Qc(e,t,n,a,r){A0(n),a_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=n_(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=qc(o);l.call(u)}}$u(t,o,e,r)}return qc(o)}var j0=!1;function r_(e){{j0||(j0=!0,f("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=t_.current;if(t!==null&&t.stateNode!==null){var n=t.stateNode._warnedAboutRefsInRender;n||f("%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.",xt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===ca?e:$D(e,"findDOMNode")}function i_(e,t,n){if(f("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"),!Pu(t))throw new Error("Target container is not a DOM element.");{var a=iu(t)&&t._reactRootContainer===void 0;a&&f("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 o_(e,t,n){if(f("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"),!Pu(t))throw new Error("Target container is not a DOM element.");{var a=iu(t)&&t._reactRootContainer===void 0;a&&f("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 l_(e,t,n,a){if(f("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"),!Pu(n))throw new Error("Target container is not a DOM element.");if(e==null||!tT(e))throw new Error("parentComponent must be a valid React Component");return Qc(e,t,n,!1,a)}var U0=!1;function u_(e){if(U0||(U0=!0,f("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")),!Pu(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=iu(e)&&e._reactRootContainer===void 0;t&&f("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&&!li(n);a&&f("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Pr(function(){Qc(null,null,e,!1,function(){e._reactRootContainer=null,Ly(e)})}),!0}else{{var r=cm(e),i=!!(r&&li(r)),o=e.nodeType===ca&&Pu(e.parentNode)&&!!e.parentNode._reactRootContainer;i&&f("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}}rE(PD),oE(YD),lE(ID),uE(Ia),sE(tE),(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")&&f("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"),YS(cx),qS(Bp,eD,Pr);function s_(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 BD(e,t,null,n)}function c_(e,t,n,a){return l_(e,t,n,a)}var fm={usingClientEntryPoint:!1,Events:[li,No,Hs,qm,Gm,Bp]};function f_(e,t){return fm.usingClientEntryPoint||f('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),JD(e,t)}function d_(e,t,n){return fm.usingClientEntryPoint||f('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),e_(e,t,n)}function v_(e){return Pb()&&f("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."),Pr(e)}var p_=KD({findFiberByHostInstance:Pi,bundleType:1,version:rm,rendererPackageName:"react-dom"});if(!p_&&en&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var H0=window.location.protocol;/^(https?|file):$/.test(H0)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(H0==="file:"?`
|
|
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}ua.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fm,ua.createPortal=s_,ua.createRoot=f_,ua.findDOMNode=r_,ua.flushSync=v_,ua.hydrate=i_,ua.hydrateRoot=d_,ua.render=o_,ua.unmountComponentAtNode=u_,ua.unstable_batchedUpdates=Bp,ua.unstable_renderSubtreeIntoContainer=c_,ua.version=rm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),ua}hm.exports=$0();var P0=hm.exports,Sm,Tm=P0;{var Em=Tm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Sm=function(w,k){Em.usingClientEntryPoint=!0;try{return Tm.createRoot(w,k)}finally{Em.usingClientEntryPoint=!1}}}const B=w=>{if(isNaN(w))return"00:00:00.000";const k=Math.floor(w/3600),se=Math.floor(w%3600/60),me=Math.floor(w%60),le=Math.round(w%1*1e3),xe=String(k).padStart(2,"0"),f=String(se).padStart(2,"0"),X=String(me).padStart(2,"0"),ge=String(le).padStart(3,"0");return`${xe}:${f}:${X}.${ge}`},Ci=w=>B(w),Y0=w=>B(w),ee={debug:(...w)=>{},error:(...w)=>console.error(...w),warn:(...w)=>console.warn(...w),info:(...w)=>console.info(...w)};var Q=Jc();const I0=({videoRef:w,currentTime:k,duration:se,isPlaying:me,isMuted:le=!1,onPlayPause:xe,onSeek:f,onToggleMute:X})=>{var fe;const ge=Q.useRef(null),[re,yt]=Q.useState(!1),[W,z]=Q.useState(!1),[ne,Le]=Q.useState(null),[zt,Gt]=Q.useState(!1),gt=Q.useRef(!1),[Pe,De]=Q.useState({x:0}),[rt,M]=Q.useState(0),ie=typeof window<"u"&&((fe=window.MEDIA_DATA)==null?void 0:fe.videoUrl)||"/videos/sample-video.mp4";Q.useEffect(()=>{if(yt((()=>{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";z(q)}},[]),Q.useEffect(()=>{me&&!W&&(z(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[me,W]),Q.useEffect(()=>{const I=w.current;if(!I)return;I.setAttribute("playsinline","true"),I.setAttribute("webkit-playsinline","true"),I.setAttribute("x-webkit-airplay","allow");const q=()=>{gt.current||(Le(I.currentTime),typeof window<"u"&&(window.lastSeekedPosition=I.currentTime))},Ye=()=>{re&&(z(!0),localStorage.setItem("video_initialized","true"))},Fe=()=>{};return I.addEventListener("timeupdate",q),I.addEventListener("play",Ye),I.addEventListener("pause",Fe),()=>{I.removeEventListener("timeupdate",q),I.removeEventListener("play",Ye),I.removeEventListener("pause",Fe)}},[w,re,gt]),Q.useEffect(()=>{Le(k)},[k]);const we=se>0?k/se*100:0,$t=I=>{I.preventDefault(),Gt(!0),gt.current=!0,Ae(I);const q=Fe=>{gt.current&&Ae(Fe)},Ye=()=>{Gt(!1),gt.current=!1,document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",Ye)};document.addEventListener("mousemove",q),document.addEventListener("mouseup",Ye)},Ae=I=>{if(!ge.current)return;const q=ge.current.getBoundingClientRect(),Ye=Math.max(0,Math.min(1,(I.clientX-q.left)/q.width)),Fe=se*Ye;De({x:I.clientX}),M(Fe),Le(Fe),typeof window<"u"&&(window.lastSeekedPosition=Fe),f(Fe)},he=I=>{if(!ge.current||!I.touches[0])return;I.preventDefault(),Gt(!0),gt.current=!0,nt(I);const q=Fe=>{gt.current&&nt(Fe)},Ye=()=>{Gt(!1),gt.current=!1,document.removeEventListener("touchmove",q),document.removeEventListener("touchend",Ye),document.removeEventListener("touchcancel",Ye)};document.addEventListener("touchmove",q,{passive:!1}),document.addEventListener("touchend",Ye),document.addEventListener("touchcancel",Ye)},nt=I=>{if(!ge.current)return;const q="touches"in I?I.touches[0]:null;if(!q)return;I.preventDefault();const Ye=ge.current.getBoundingClientRect(),Fe=Math.max(0,Math.min(1,(q.clientX-Ye.left)/Ye.width)),at=se*Fe;De({x:q.clientX}),M(at),Le(at),typeof window<"u"&&(window.lastSeekedPosition=at),f(at)},ce=I=>{if(!zt&&ge.current){const q=ge.current.getBoundingClientRect(),Ye=(I.clientX-q.left)/q.width,Fe=se*Ye;Le(Fe),typeof window<"u"&&(window.lastSeekedPosition=Fe),f(Fe)}},Me=()=>{w.current&&(document.fullscreenElement?document.exitFullscreen():w.current.requestFullscreen())},Je=()=>{const I=w.current;I&&(I.paused?re&&ne!==null&&ne>0?(I.currentTime=ne,setTimeout(()=>{w.current&&w.current.play().then(()=>{var q;ee.debug("iOS: Play started successfully at position:",(q=w.current)==null?void 0:q.currentTime),xe()}).catch(q=>{console.error("iOS: Error playing video:",q)})},50)):I.play().then(()=>{xe()}).catch(q=>{console.error("Error playing video:",q)}):(I.pause(),xe()))};return p.jsxs("div",{className:"video-player-container",children:[p.jsxs("video",{ref:w,preload:"auto",crossOrigin:"anonymous",onClick:Je,playsInline:!0,"webkit-playsinline":"true","x-webkit-airplay":"allow",controls:!1,muted:le,children:[p.jsx("source",{src:ie,type:"video/mp4"}),p.jsx("p",{children:"Your browser doesn't support HTML5 video."})]}),re&&!W&&!me&&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 ${me?"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:Ci(k)}),p.jsxs("span",{className:"video-duration",children:["/ ",Ci(se)]})]}),p.jsxs("div",{ref:ge,className:`video-progress ${zt?"dragging":""}`,onClick:ce,onMouseDown:$t,onTouchStart:he,children:[p.jsx("div",{className:"video-progress-fill",style:{width:`${we}%`}}),p.jsx("div",{className:"video-scrubber",style:{left:`${we}%`}}),zt&&p.jsx("div",{className:"video-time-tooltip",style:{left:`${Pe.x}px`,transform:"translateX(-50%)"},children:B(rt)})]}),p.jsxs("div",{className:"video-controls-buttons",children:[X&&p.jsx("button",{className:"mute-button","aria-label":le?"Unmute":"Mute",onClick:X,"data-tooltip":le?"Unmute":"Mute",children:le?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:Me,"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=(w,k)=>{const se=Math.min(Math.max(w/(k||1),0),1),me=210,le=40+Math.floor(se*20),xe=85+Math.floor(se*8);return`hsl(${me}, ${le}%, ${xe}%)`},Cm=async(w,k)=>new Promise(se=>{const me=document.createElement("canvas");me.width=10,me.height=10;const le=me.getContext("2d");if(le){const f=tf(k,w.duration);le.fillStyle=f,le.fillRect(0,0,me.width,me.height)}const xe=me.toDataURL("image/png",.5);se(xe)}),io=({isOpen:w,onClose:k,title:se,children:me,actions:le})=>{if(Q.useEffect(()=>{const f=X=>{X.key==="Escape"&&w&&k()};return document.addEventListener("keydown",f),w&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",f),document.body.style.overflow=""}},[w,k]),!w)return null;const xe=f=>{f.target===f.currentTarget&&k()};return p.jsx("div",{className:"modal-overlay",onClick:xe,children:p.jsxs("div",{className:"modal-container",onClick:f=>f.stopPropagation(),children:[p.jsxs("div",{className:"modal-header",children:[p.jsx("h2",{className:"modal-title",children:se}),p.jsx("button",{className:"modal-close-button",onClick:k,"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:me}),le&&p.jsx("div",{className:"modal-actions",children:le})]})})},xm=w=>new Promise(k=>setTimeout(k,w)),W0=async(w,k)=>{try{const se=await fetch(`/api/v1/media/${w}/save_trim`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(k)});if(ee.debug("response",se),!se.ok){if(se.status===404)return{success:!0,timestamp:new Date().toISOString()};try{const le=await se.json();return{success:!1,timestamp:new Date().toISOString(),error:le.error||"Auto-save failed"}}catch{return{success:!1,timestamp:new Date().toISOString(),error:"Auto-save failed"}}}const me=await se.json();return me.status==="success"?{success:!0,timestamp:me.updated_at||new Date().toISOString(),...me}:{success:!1,timestamp:new Date().toISOString(),error:me.error||"Auto-save failed"}}catch{return{success:!0,timestamp:new Date().toISOString()}}},nf=async(w,k)=>{try{const se=await fetch(`/api/v1/media/${w}/trim_video`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(k)});if(!se.ok)if(se.status===400)try{return{status:400,error:(await se.json()).error||"An error occurred during processing",msg:"Video Processing Error",url_redirect:""}}catch{return{status:400,error:"An error occurred during video processing",msg:"Video Processing Error",url_redirect:""}}else if(se.status!==404)try{const le=await se.json();return{status:se.status,error:le.error||"An error occurred during processing",msg:"Video Processing Error",url_redirect:""}}catch{return{status:se.status,error:"An error occurred during video processing",msg:"Video Processing Error",url_redirect:""}}else return await xm(1500),{status:200,msg:"Video Processed Successfully",url_redirect:`./view?m=${w}`};const me=await se.json();return{status:200,msg:"Video Processed Successfully",url_redirect:me.url_redirect||`./view?m=${w}`,...me}}catch{return await xm(1500),{status:200,msg:"Video Processed Successfully",url_redirect:`./view?m=${w}`}}},wm="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",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='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",Dm="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",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="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",X0="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",K0={color:"#007bff",textDecoration:"none",fontWeight:"bold","&:hover":{textDecoration:"underline",color:"#0056b3"}},_m=w=>{let xe,f;if(w<=25)if(w<=0)xe="0%",f="none";else{const ge=-50*((w-0)/25);xe=`${w}%`,f=`translateX(${ge}%)`}else if(w>=75)if(w>=100)xe="100%",f="translateX(-100%)";else{const ge=-50-50*((w-75)/25);xe=`${w}%`,f=`translateX(${ge}%)`}else xe=`${w}%`,f="translateX(-50%)";return{left:xe,transform:f}},J0=({currentTime:w,duration:k,thumbnails:se,trimStart:me,trimEnd:le,splitPoints:xe,zoomLevel:f,clipSegments:X,onTrimStartChange:ge,onTrimEndChange:re,onZoomChange:yt,onSeek:W,videoRef:z,onSave:ne,onSaveACopy:Le,onSaveSegments:zt,hasUnsavedChanges:Gt=!1,isIOSUninitialized:gt=!1,isPlaying:Pe,setIsPlaying:De,onPlayPause:rt,isPlayingSegments:M=!1})=>{const ie=Q.useRef(null),we=Q.useRef(null),$t=Q.useRef(null),[Ae,he]=Q.useState(null),[nt,ce]=Q.useState(!1),[Me,Je]=Q.useState({x:0,y:0}),[fe,I]=Q.useState(0),[q,Ye]=Q.useState(!1),[Fe,at]=Q.useState(30),[ut,Ie]=Q.useState(!1),[Ve,Ue]=Q.useState(null),[un,Ze]=Q.useState(0),[Ut,pt]=Q.useState(!1),Qe=Q.useRef(null),[Xt,en]=Q.useState(""),[En,V]=Q.useState(!1),K=Q.useRef(null),Ee=Q.useRef(X);Q.useEffect(()=>{Ee.current=X},[X]);const Te=Q.useCallback(async()=>{var v;try{V(!0);const x=Ee.current.map(C=>({startTime:B(C.startTime),endTime:B(C.endTime),name:C.name}));ee.debug("segments",x);const y=typeof window<"u"&&((v=window.MEDIA_DATA)==null?void 0:v.mediaId)||null||"1234";if(ee.debug("mediaId",y),!y||x.length===0){ee.debug("No mediaId or segments, skipping auto-save"),V(!1);return}ee.debug("Auto-saving segments:",{mediaId:y,segments:x});const b=await W0(y,{segments:x});if(b.success){ee.debug("Auto-save successful");const g=new Date(b.timestamp).toLocaleString("en-GB",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).replace(",","");en(g),ee.debug("Auto-save successful:",g)}else ee.error("Auto-save failed:",b.error)}catch(x){ee.error("Auto-save error:",x)}finally{V(!1)}},[]),He=Q.useCallback(()=>{K.current&&clearTimeout(K.current);const v=setTimeout(()=>{Te()},1e3);K.current=v},[Te]),Tt=v=>{const x=v;let T=null,y=null,b=fe;const C=()=>{const g=x<0?Math.max(0,b+x):Math.min(k,b+x);b=g;const U=ut;if(W(g),I(g),Ze(g),ie.current){const H=ie.current.getBoundingClientRect(),J=g/k*100,et=H.left+H.width*(J/100);Je({x:et,y:H.top-10});const te=X.find(Re=>g>=Re.startTime&&g<=Re.endTime);if(te)he(te.id),ce(!1);else{he(null);const Re=Qn(g);at(Re),ce(!0)}}U&&z.current&&(z.current.play(),Ie(!0))};return{onMouseDown:g=>{g.stopPropagation(),g.preventDefault(),b=fe,C(),T=setTimeout(()=>{y=setInterval(C,200)},750);const U=()=>{T&&(clearTimeout(T),T=null),y&&(clearInterval(y),y=null),document.removeEventListener("mouseup",U),document.removeEventListener("mouseleave",U)};document.addEventListener("mouseup",U),document.addEventListener("mouseleave",U)},onTouchStart:g=>{g.stopPropagation(),g.preventDefault(),b=fe,C(),T=setTimeout(()=>{y=setInterval(C,200)},750);const U=()=>{T&&(clearTimeout(T),T=null),y&&(clearInterval(y),y=null),document.removeEventListener("touchend",U),document.removeEventListener("touchcancel",U)};document.addEventListener("touchend",U),document.addEventListener("touchcancel",U)},onClick:g=>{g.stopPropagation()}}},[Et,Ge]=Q.useState(!1),[vt,Ct]=Q.useState(!1),[Kt,sn]=Q.useState(!1),[Lt,Mt]=Q.useState(!1),[Cn,Xn]=Q.useState(!1),[Ba,G]=Q.useState(!1),[_e,Ke]=Q.useState(""),[Rt,mt]=Q.useState(""),[Ht,Pt]=Q.useState(""),[cn,Ft]=Q.useState("save"),Dt=k>0?w/k*100:0,Vt=k>0?me/k*100:0,ar=k>0?le/k*100:0,ha=async()=>{var v,x;Ge(!1),Mt(!0),Ft("save");try{const T=X.map(g=>({startTime:B(g.startTime),endTime:B(g.endTime)})),y=typeof window<"u"&&((v=window.MEDIA_DATA)==null?void 0:v.mediaId)||null,b=typeof window<"u"&&((x=window.MEDIA_DATA)==null?void 0:x.redirectURL)||null;ee.debug("Save request:",{mediaId:y,segments:T,saveAsCopy:!1,redirectURL:b});const C=await nf(y,{segments:T,saveAsCopy:!1});if(ee.debug("Save response:",C),Mt(!1),C.status===200){const g=b||C.url_redirect;ee.debug("Using redirect URL:",g),Pt(g),Ke("Video saved successfully!"),Xn(!0)}else if(C.status===400){const g=C.error||"An error occurred during processing";ee.debug("Save error (400):",g),mt(g),G(!0)}else ee.debug("Save error (unknown status):",C),mt("An unexpected error occurred"),G(!0)}catch(T){ee.error("Error processing video:",T),Mt(!1);const y=T instanceof Error?T.message:"An error occurred during processing";mt(y),G(!0)}},ya=async()=>{var v,x;Ct(!1),Mt(!0),Ft("copy");try{const T=X.map(g=>({startTime:B(g.startTime),endTime:B(g.endTime)})),y=typeof window<"u"&&((v=window.MEDIA_DATA)==null?void 0:v.mediaId)||null,b=typeof window<"u"&&((x=window.MEDIA_DATA)==null?void 0:x.redirectUserMediaURL)||null;ee.debug("Save as copy request:",{mediaId:y,segments:T,saveAsCopy:!0,redirectUserMediaURL:b});const C=await nf(y,{segments:T,saveAsCopy:!0});if(ee.debug("Save as copy response:",C),Mt(!1),C.status===200){const g=b||C.url_redirect;ee.debug("Using redirect user media URL:",g),Pt(g),Ke("Video saved as a new copy!"),Xn(!0)}else if(C.status===400){const g=C.error||"An error occurred during processing";ee.debug("Save as copy error (400):",g),mt(g),G(!0)}else ee.debug("Save as copy error (unknown status):",C),mt("An unexpected error occurred"),G(!0)}catch(T){ee.error("Error processing video:",T),Mt(!1);const y=T instanceof Error?T.message:"An error occurred during processing";mt(y),G(!0)}},rr=async()=>{var v,x;sn(!1),Mt(!0),Ft("segments");try{const T=X.map(g=>({startTime:B(g.startTime),endTime:B(g.endTime),name:g.name})),y=typeof window<"u"&&((v=window.MEDIA_DATA)==null?void 0:v.mediaId)||null,b=typeof window<"u"&&((x=window.MEDIA_DATA)==null?void 0:x.redirectUserMediaURL)||null;ee.debug("Save segments request:",{mediaId:y,segments:T,saveAsCopy:!0,saveIndividualSegments:!0,redirectUserMediaURL:b});const C=await nf(y,{segments:T,saveAsCopy:!0,saveIndividualSegments:!0});if(ee.debug("Save segments response:",C),Mt(!1),C.status===200){const g=b||C.url_redirect;ee.debug("Using redirect user media URL for segments:",g),Pt(g),Ke(`${T.length} segments saved successfully!`),Xn(!0)}else if(C.status===400){const g=C.error||"An error occurred during processing";ee.debug("Save segments error (400):",g),mt(g),G(!0)}else ee.debug("Save segments error (unknown status):",C),mt("An unexpected error occurred"),G(!0)}catch(T){ee.error("Error processing video segments:",T),Mt(!1);const y=T instanceof Error?T.message:"An error occurred during processing";mt(y),G(!0)}};Q.useEffect(()=>{if(Qe.current&&ie.current&&f>1){const v=Qe.current.clientWidth,x=ie.current.clientWidth,T=w/k*x,y=Math.max(0,T-v/2);Qe.current.scrollTo({left:y,behavior:"smooth"});const b=ie.current.getBoundingClientRect();Qe.current.getBoundingClientRect();const g=b.left-Qe.current.scrollLeft+Dt/100*b.width;(Ae!==null||nt)&&(Je({x:g,y:b.top-10}),I(w))}},[w,f,k,Ae,nt,Dt]),Q.useEffect(()=>{const v=z.current;if(!v||!Ve||!ut||M)return;ee.debug("Segment boundary check ACTIVATED for segment:",Ve.id,"Start:",B(Ve.startTime),"End:",B(Ve.endTime));const x=()=>{const T=Ve.endTime-v.currentTime;if(Math.round(T*10)%10===0&&ee.debug("Segment playback - time remaining:",B(T),"Current:",B(v.currentTime),"End:",B(Ve.endTime),"ContinuePastBoundary:",Ut),v.currentTime>Ve.endTime){v.pause(),v.currentTime=Ve.endTime,Ie(!1),pt(!1),ee.debug("Passed segment end - setting back to exact boundary:",B(Ve.endTime));return}if(Ve.endTime-v.currentTime<.05)if(Ut)ee.debug("Continuing past segment boundary:",B(Ve.endTime)),v.currentTime>Ve.endTime&&(pt(!1),Ue(null),sessionStorage.removeItem("continuingPastSegment"));else{v.pause(),v.currentTime=Ve.endTime,Ie(!1),ee.debug("Paused at segment end boundary:",B(Ve.endTime));const b=[...X].sort((C,g)=>C.startTime-g.startTime).find(C=>C.startTime>Ve.endTime);b&&Math.abs(b.startTime-Ve.endTime)<.1&&(ee.debug("Found adjacent next segment:",b.id),he(b.id),Ue(b),Ze(b.startTime),I(b.startTime),v.currentTime=b.startTime)}};return v.addEventListener("timeupdate",x),()=>{v.removeEventListener("timeupdate",x)}},[Ve,ut,Ut,X]),Q.useEffect(()=>{if(z.current)if(z.current.paused)z.current.paused&&ut&&(Ze(w),I(w),Ie(!1),ee.debug("Video paused at:",B(w)));else{Ze(w),I(w),Ae!==null&&Ie(!0);const v=X.find(y=>w>=y.startTime&&w<=y.endTime),x=w/k*100;if(ie.current){const y=ie.current.offsetWidth,b=x/100*y;Je({x:b,y:ie.current.getBoundingClientRect().top-10})}const T=sessionStorage.getItem("continuingPastSegment")==="true";if(v){const y=z.current,b=Ve&&Ve.id<0&&ut;if((Ve==null?void 0:Ve.id)!==v.id&&!b&&!T&&!Ut&&(ee.debug(`Entered a new segment during playback: ${v.id}, setting as active`),Ue(v),he(v.id),ce(!1),pt(!1),sessionStorage.removeItem("continuingPastSegment")),b&&y&&v){ee.debug(`CUTAWAY BOUNDARY REACHED: Current position ${B(y.currentTime)} at segment ${v.id} - STOPPING at boundary ${B(v.startTime)}`),y.pause(),setTimeout(()=>{if(z.current){z.current.currentTime=v.startTime,W(v.startTime),Ze(v.startTime),I(v.startTime),pt(!1),he(v.id),ce(!1);const g=()=>{z.current&&(z.current.currentTime=v.startTime,W(v.startTime),Ze(v.startTime),I(v.startTime),ee.debug(`Position corrected to exact segment boundary: ${B(z.current.currentTime)} (target: ${B(v.startTime)})`))};setTimeout(g,10),setTimeout(g,20),setTimeout(g,50),setTimeout(g,100),setTimeout(g,200),z.current.addEventListener("seeked",g),z.current.addEventListener("canplay",g),z.current.addEventListener("waiting",g),setTimeout(()=>{z.current&&(z.current.removeEventListener("seeked",g),z.current.removeEventListener("canplay",g),z.current.removeEventListener("waiting",g))},300)}},10),Ie(!1),Ue(null);return}Ve===null&&ut===!0||T||b?(Ae!==v.id||nt)&&(ee.debug("Tooltip updated for segment during continued playback:",v.id,b?"(cutaway playback - keeping virtual segment)":""),he(v.id),ce(!1),!b&&sessionStorage.getItem("lastSegmentId")!==v.id.toString()&&sessionStorage.removeItem("continuingPastSegment")):((Ve==null?void 0:Ve.id)!==v.id||nt)&&(ee.debug("Playback moved into segment:",v.id),he(v.id),Ue(v),ce(!1),sessionStorage.setItem("lastSegmentId",v.id.toString()))}else if(Ve!==null||!nt){he(null),Ue(null);const y=Qn(w);at(y),y>=.5?ce(!0):ce(!1)}}},[w,ut,Ve,Ae,X]),Q.useEffect(()=>{const v=x=>{const T=x.target;q&&!T.closest(".zoom-dropdown-container")&&Ye(!1)};return document.addEventListener("mousedown",v),()=>{document.removeEventListener("mousedown",v)}},[q]),Q.useEffect(()=>{const v=y=>{const{recordHistory:b,fromAutoSave:C}=y.detail;b&&!C&&He()},x=()=>{He()},T=y=>{const{recordHistory:b}=y.detail;b&&He()};return document.addEventListener("update-segments",v),document.addEventListener("segment-drag-end",x),document.addEventListener("update-trim",T),document.addEventListener("delete-segment",He),document.addEventListener("split-segment",He),()=>{document.removeEventListener("update-segments",v),document.removeEventListener("segment-drag-end",x),document.removeEventListener("update-trim",T),document.removeEventListener("delete-segment",He),document.removeEventListener("split-segment",He),K.current&&(ee.debug("Clearing auto-save timer in cleanup:",K.current),clearTimeout(K.current))}},[He]),Q.useEffect(()=>{X.length>0&&!Xt&&setTimeout(()=>{Te()},500)},[Xt,Te]),Q.useEffect(()=>{const v=()=>{var y;let T=typeof window<"u"&&((y=window.MEDIA_DATA)==null?void 0:y.savedSegments)||null;T||(T={segments:[{startTime:"00:00:01.130",endTime:"00:00:05.442",name:"segment"},{startTime:"00:00:06.152",endTime:"00:00:10.518",name:"segment"},{startTime:"00:00:11.518",endTime:"00:00:15.121",name:"segment"},{startTime:"00:00:16.757",endTime:"00:00:20.769",name:"segment"},{startTime:"00:00:21.158",endTime:"00:00:25.870",name:"segment"},{startTime:"00:00:26.430",endTime:"00:00:29.798",name:"segment"}],updated_at:"2025-06-24 14:59:14"});try{if(T&&T.segments&&T.segments.length>0){ee.debug("Found saved segments:",T);const b=T.segments.map((g,U)=>({id:Date.now()+U,name:g.name||`Segment ${U+1}`,startTime:x(g.startTime),endTime:x(g.endTime),thumbnail:""}));console.log("convertedSegments",b);const C=new CustomEvent("update-segments",{detail:{segments:b,recordHistory:!1,fromAutoSave:!0}});if(document.dispatchEvent(C),T.updated_at){const U=new Date(T.updated_at).toLocaleString("en-GB",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",hour12:!1}).replace(",","");en(U)}}else ee.debug("No saved segments found")}catch(b){console.error("Error loading saved segments:",b)}},x=T=>{const y=T.split(":");if(y.length!==3)return 0;const b=parseInt(y[0])||0,C=parseInt(y[1])||0,g=y[2].split("."),U=parseInt(g[0])||0,H=parseInt(g[1])||0;return b*3600+C*60+U+H/1e3};setTimeout(v,100)},[]),Q.useEffect(()=>()=>{},[Ae,nt,ut]),Q.useEffect(()=>{const v=we.current,x=$t.current,T=ie.current;if(!v||!x||!T)return;const y=b=>C=>{C.preventDefault();const g=T.getBoundingClientRect();let U=!0,H=b?me:le;const J=Re=>new CustomEvent("trim-handle-event",{detail:{type:Re,isStart:b}});document.dispatchEvent(J("drag-start"));const et=Re=>{if(!U)return;const ye=g.width,on=Math.max(0,Math.min(1,(Re.clientX-g.left)/ye))*k;typeof window<"u"&&(window.lastSeekedPosition=on),b?on<le&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:on,isStart:!0,recordHistory:!1}})),H=on):on>me&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:on,isStart:!1,recordHistory:!1}})),H=on)},te=()=>{U=!1,document.removeEventListener("mousemove",et),document.removeEventListener("mouseup",te),b?document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:H,isStart:!0,recordHistory:!0,action:"adjust_trim_start"}})):document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:H,isStart:!1,recordHistory:!0,action:"adjust_trim_end"}})),document.dispatchEvent(J("drag-end"))};document.addEventListener("mousemove",et),document.addEventListener("mouseup",te)};return v.addEventListener("mousedown",y(!0)),x.addEventListener("mousedown",y(!1)),()=>{v.removeEventListener("mousedown",y(!0)),x.removeEventListener("mousedown",y(!1))}},[k,me,le,ge,re]);const Wr=()=>{const v=se.length||10;return Array.from({length:v}).map((x,T)=>{const y=k/v,b=T*y,C=b+y,g=(b+C)/2,U=tf(g,k);return p.jsx("div",{className:"timeline-thumbnail",style:{width:`${100/v}%`,backgroundColor:U}},T)})},qr=()=>xe.map((v,x)=>{const T=v/k*100;return p.jsx("div",{className:"split-point",style:{left:`${T}%`}},x)}),Qn=v=>{const T=[...X].sort((g,U)=>g.startTime-U.startTime),y=T.find(g=>g.startTime>v),b=[...T].reverse().find(g=>g.endTime<v);let C;return y?C=y.startTime-v:C=k-v,ee.debug("Space calculation:",{position:B(v),nextSegment:y?B(y.startTime):"none",prevSegment:b?B(b.endTime):"none",availableSpace:B(Math.max(.1,C))}),Math.max(.1,C)},_a=v=>{if(!ie.current)return;const x=X.find(H=>{const J=v>=H.startTime&&v<=H.endTime,et=Math.abs(v-H.startTime)<.001,te=Math.abs(v-H.endTime)<.001;return J||et||te}),T=[...X].sort((H,J)=>H.startTime-J.startTime),y=T.find(H=>H.startTime>v),b=[...T].reverse().find(H=>H.endTime<v);if(x)he(x.id),ce(!1);else{const H=Qn(v);at(H),he(null),ce(!0),ee.debug("Cutaway position:",{current:B(v),prevSegmentEnd:b?B(b.endTime):"none",nextSegmentStart:y?B(y.startTime):"none",availableSpace:B(H)})}const C=ie.current.getBoundingClientRect(),g=v/k*100;let U;f>1&&Qe.current?U=C.left-Qe.current.scrollLeft+C.width*(g/100):U=C.left+C.width*(g/100),Je({x:U,y:C.top-10})},Gr=v=>{if(!ie.current||!Qe.current||gt)return;const x=z.current&&!z.current.paused;pt(!1);const T=ie.current.getBoundingClientRect();let y;if(f>1){const g=Qe.current.scrollLeft,U=ie.current.clientWidth;y=(v.clientX-T.left+g)/U}else y=(v.clientX-T.left)/T.width;const b=y*k;ee.debug("Timeline clicked at:",B(b),"distance from end:",B(k-b)),typeof window<"u"&&(window.lastSeekedPosition=b),W(b),I(b),Ze(b);const C=X.find(g=>{const U=b>=g.startTime&&b<=g.endTime,H=Math.abs(b-g.startTime)<.01,J=Math.abs(b-g.endTime)<.01;return U||H||J});if(C&&Ue(C),z.current)if(M&&x){if(C){const U=[...X].sort((H,J)=>H.startTime-J.startTime).findIndex(H=>H.id===C.id);if(U!==-1){const H=new CustomEvent("update-segment-index",{detail:{segmentIndex:U}});document.dispatchEvent(H),ee.debug(`Segments playback mode: updating segment index to ${U} for timeline click in segment ${C.id}`)}}z.current.play().then(()=>{Ie(!0)}).catch(g=>{console.error("Error resuming segments playback:",g),Ie(!1)})}else x&&!M&&z.current.play().then(()=>{Ie(!0)}).catch(g=>{console.error("Error resuming playback:",g),Ie(!1)});if(v.target===ie.current||v.target.classList.contains("timeline-thumbnail"))if(C)he(C.id),ce(!1);else{he(null);const g=Qn(b);at(g);let U;if(f>1){const te=T.left-Qe.current.scrollLeft,Re=b/k;U=te+Re*T.width}else U=v.clientX;Je({x:U,y:T.top-10}),ce(!0);const H=[...X].sort((te,Re)=>te.startTime-Re.startTime),J=[...H].reverse().find(te=>te.endTime<b),et=H.find(te=>te.startTime>b);ee.debug("Clicked in cutaway area:",{position:B(b),availableSpace:B(g),prevSegmentEnd:J?B(J.endTime):"none",nextSegmentStart:et?B(et.startTime):"none"})}},$n=(v,x)=>T=>{if(T.preventDefault(),T.stopPropagation(),!ie.current)return;ie.current.getBoundingClientRect().width;const b=X.find(xn=>xn.id===v);if(!b)return;const C=b.startTime,g=b.endTime,U={...b};document.body.style.cursor="ew-resize";const H=document.createElement("div");H.style.position="fixed",H.style.top="0",H.style.left="0",H.style.width="100vw",H.style.height="100vh",H.style.zIndex="1000",H.style.cursor="ew-resize",document.body.appendChild(H);let J=!0,et=C,te=g;document.dispatchEvent(new CustomEvent("segment-drag-start",{detail:{segmentId:v}}));const Re=xn=>{if(!J||!ie.current)return;const ir=ie.current.getBoundingClientRect(),Bt=Math.max(0,Math.min(1,(xn-ir.left)/ir.width))*k,sa=x?Bt:C,Er=x?g:Bt;if(w>=sa&&w<=Er)he(v),ce(!1);else{he(null);const nn=Qn(w);at(nn),ce(!0)}const Cr=X.filter(nn=>nn.id!==v);let ga=C,Rn=g;if(x){ga=Math.min(Bt,g-.5);const ht=Cr.filter(Sa=>Sa.endTime<=C).sort((Sa,Qr)=>Qr.endTime-Sa.endTime)[0];ht&&ga<ht.endTime&&(ga=ht.endTime),ht&&Math.abs(ga-ht.endTime)<.3&&(ga=ht.endTime),et=ga}else{Rn=Math.max(Bt,C+.5);const ht=Cr.filter(Sa=>Sa.startTime>=g).sort((Sa,Qr)=>Sa.startTime-Qr.startTime)[0];ht&&Rn>ht.startTime&&(Rn=ht.startTime),ht&&Math.abs(Rn-ht.startTime)<.3&&(Rn=ht.startTime),te=Rn}const or=X.map(nn=>nn.id===v?{...nn,startTime:ga,endTime:Rn}:nn),lr=new CustomEvent("update-segments",{detail:{segments:or,recordHistory:!1}});if(document.dispatchEvent(lr),Ae===v&&z.current){const nn=z.current.currentTime,ht=or.find(ba=>ba.id===v);if(ht){const ba=nn>=ht.startTime&&nn<=ht.endTime;ee.debug(`During drag - playhead at ${B(nn)} is ${ba?"inside":"outside"} segment (${B(ht.startTime)} - ${B(ht.endTime)})`),!ba&&ut&&(z.current.pause(),Ie(!1),Ue(null)),nn<ht.startTime?(ee.debug(`Adjusting display time to segment start: ${B(ht.startTime)}`),Ze(ht.startTime),I(ht.startTime)):nn>ht.endTime&&(ee.debug(`Adjusting display time to segment end: ${B(ht.endTime)}`),Ze(ht.endTime),I(ht.endTime))}}},ye=()=>{if(!J)return;J=!1,document.removeEventListener("mousemove",it),document.removeEventListener("mouseup",on),document.removeEventListener("touchmove",Xr),document.removeEventListener("touchend",Zn),document.removeEventListener("touchcancel",Zn),document.body.style.cursor="",document.body.contains(H)&&document.body.removeChild(H);const xn=X.map(wn=>wn.id===v?{...wn,startTime:et,endTime:te}:wn),ir=x?"adjust_segment_start":"adjust_segment_end";if(document.dispatchEvent(new CustomEvent("update-segments",{detail:{segments:xn,recordHistory:!0,action:ir}})),Ae===v&&z.current){const wn=z.current.currentTime,Bt=xn.find(sa=>sa.id===v);if(Bt){const sa=wn>=Bt.startTime&&wn<=Bt.endTime;ee.debug(`Drag complete - playhead at ${B(wn)} is ${sa?"inside":"outside"} segment (${B(Bt.startTime)} - ${B(Bt.endTime)})`);const Er=wn>=U.startTime&&wn<=U.endTime;sa?(!Er&&sa||Er&&sa&&(Bt.startTime!==U.startTime||Bt.endTime!==U.endTime))&&Ue(Bt):(ut&&(z.current.pause(),Ie(!1),Ue(null),pt(!1)),wn<Bt.startTime?(ee.debug(`Final adjustment - setting display time to segment start: ${B(Bt.startTime)}`),Ze(Bt.startTime),I(Bt.startTime)):wn>Bt.endTime&&(ee.debug(`Final adjustment - setting display time to segment end: ${B(Bt.endTime)}`),Ze(Bt.endTime),I(Bt.endTime)))}}},it=xn=>{Re(xn.clientX)},on=()=>{ye()},Xr=xn=>{xn.touches.length>0&&(xn.preventDefault(),Re(xn.touches[0].clientX))},Zn=()=>{ye()};document.addEventListener("mousemove",it,{passive:!1}),document.addEventListener("mouseup",on),document.addEventListener("touchmove",Xr,{passive:!1}),document.addEventListener("touchend",Zn),document.addEventListener("touchcancel",Zn)},Kn=v=>x=>{if(x.target.classList.contains("clip-segment-handle"))return;x.preventDefault(),x.stopPropagation(),pt(!1);const T=z.current&&!z.current.paused;he(v);const y=X.find(te=>te.id===v);if(!y)return;const C=x.currentTarget.getBoundingClientRect(),g=(x.clientX-C.left)/C.width,U=y.startTime+g*(y.endTime-y.startTime),H=Math.max(y.startTime,Math.min(y.endTime,U));if(I(H),Ze(H),z.current){const te=z.current.currentTime,Re=te>=y.startTime&&te<=y.endTime;ee.debug(`Segment click - playhead at ${B(te)} is ${Re?"inside":"outside"} segment (${B(y.startTime)} - ${B(y.endTime)})`),Re||(Math.abs(te-y.startTime)<Math.abs(te-y.endTime)?(ee.debug(`Playhead outside segment - adjusting to segment start: ${B(y.startTime)}`),Ze(y.startTime)):(ee.debug(`Playhead outside segment - adjusting to segment end: ${B(y.endTime)}`),Ze(y.endTime)))}if(W(H),z.current)if(M&&T){const Re=[...X].sort((ye,it)=>ye.startTime-it.startTime).findIndex(ye=>ye.id===v);if(Re!==-1){const ye=new CustomEvent("update-segment-index",{detail:{segmentIndex:Re}});document.dispatchEvent(ye)}z.current.play().then(()=>{Ie(!0)}).catch(ye=>{console.error("Error continuing segments playback after segment click:",ye)})}else T&&!M&&(Ue(y),pt(!1),z.current.play().then(()=>{Ie(!0)}).catch(te=>{console.error("Error resuming playback after segment click:",te)}));const J=x.clientX,et=C.top-10;if(Je({x:J,y:et}),f>1&&ie.current&&Qe.current){ie.current.getBoundingClientRect();const te=ie.current.clientWidth,Re=Qe.current.clientWidth,ye=H/k*te,it=Math.max(0,ye-Re/2);Qe.current.scrollTo({left:it,behavior:"smooth"}),setTimeout(()=>{if(ie.current&&Qe.current){const on=ie.current.getBoundingClientRect(),Zn=H/k*te-Qe.current.scrollLeft+on.left;Je({x:Zn,y:et})}},300)}},Jn=()=>X.map((v,x)=>{const T=v.startTime/k*100,y=(v.endTime-v.startTime)/k*100,b=tf((v.startTime+v.endTime)/2,k);return p.jsxs("div",{className:`clip-segment ${Ae===v.id?"selected":""}`,style:{left:`${T}%`,width:`${y}%`,backgroundColor:b,borderWidth:"2px",borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.5)"},onClick:Kn(v.id),children:[p.jsxs("div",{className:"clip-segment-info",children:[p.jsxs("div",{className:"clip-segment-name",children:["Segment ",x+1]}),p.jsxs("div",{className:"clip-segment-time",children:[Ci(v.startTime)," - ",Ci(v.endTime)]}),p.jsxs("div",{className:"clip-segment-duration",children:["Duration: ",Ci(v.endTime-v.startTime)]})]}),M?null:p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"clip-segment-handle left",title:"Resize segment start",onMouseDown:C=>{C.stopPropagation(),$n(v.id,!0)(C)},onTouchStart:C=>{C.stopPropagation(),$n(v.id,!0)(C)}}),p.jsx("div",{className:"clip-segment-handle right",title:"Resize segment end",onMouseDown:C=>{C.stopPropagation(),$n(v.id,!1)(C)},onTouchStart:C=>{C.stopPropagation(),$n(v.id,!1)(C)}})]})]},v.id)});Q.useEffect(()=>{const v=x=>{const{segmentId:T}=x.detail;if(X.filter(b=>b.id!==T).length===0){const b={id:Date.now(),name:"Full Video",startTime:0,endTime:k,thumbnail:""},C=new CustomEvent("update-segments",{detail:{segments:[b],recordHistory:!0,action:"create_full_video_segment"}});if(document.dispatchEvent(C),he(b.id),ce(!1),I(w),Ze(w),Ue(b),ie.current){const g=ie.current.getBoundingClientRect(),U=w/k*100,H=g.left+g.width*(U/100);Je({x:H,y:g.top-10}),ee.debug("Created full video segment:",{id:b.id,duration:B(k),currentPosition:B(w)})}}else if(Ae===T){if(!X.find(g=>g.id===T))return;const C=Qn(w);if(he(null),ce(!0),at(C),ie.current){const g=ie.current.getBoundingClientRect(),U=w/k*100,H=g.left+g.width*(U/100);Je({x:H,y:g.top-10}),ee.debug("Segment deleted, showing cutaway tooltip:",{position:B(w),availableSpace:B(C)})}}};return document.addEventListener("delete-segment",v),()=>{document.removeEventListener("delete-segment",v)}},[Ae,X,w,k,ie]),Q.useEffect(()=>{const v=z.current;if(!v)return;const x=()=>{if(!z.current)return;const y=z.current,b=y.currentTime;pt(!1);let C=k,g=null,U=null;g=X.find(J=>{const et=b>=J.startTime&&b<=J.endTime,te=Math.abs(b-J.startTime)<.001,Re=Math.abs(b-J.endTime)<.001;return et||te||Re}),U=X.filter(J=>{const et=J.startTime>b,te=Math.abs(J.startTime-b)>.001;return et&&te}).sort((J,et)=>J.startTime-et.startTime)[0],g?(C=g.endTime,Ue(g)):U&&(C=U.startTime);const H=()=>{if(!y)return;const J=y.currentTime;if(C-J<=.001||J>=C){y.pause();const te=()=>{y&&(y.currentTime=C,W(C),Ze(C),I(C),ee.debug("Position verification:",{target:B(C),actual:B(y.currentTime),difference:Math.abs(y.currentTime-C).toFixed(3)}))};te(),setTimeout(te,10),setTimeout(te,20),setTimeout(te,50),g?(he(g.id),ce(!1)):U?(he(U.id),ce(!1),Ue(U)):(he(null),ce(!0),Ue(null)),y.removeEventListener("timeupdate",H),De(!1),Ie(!1),pt(!1);return}};y.addEventListener("timeupdate",H),y.play().then(()=>{De(!0),Ie(!0),ee.debug("Playback started:",{from:B(b),to:B(C),currentSegment:g?`Segment ${g.id}`:"None",nextSegment:U?`Segment ${U.id}`:"None"})}).catch(J=>{console.error("Error playing video:",J)})},T=()=>{Ie(!1)};return v.addEventListener("play",x),v.addEventListener("pause",T),()=>{v.removeEventListener("play",x),v.removeEventListener("pause",T)}},[X,k,W]);const ka=v=>{if(!ie.current)return;const x=ie.current.getBoundingClientRect(),y=(v.clientX-x.left)/x.width*k,b=Math.max(0,Math.min(k,y));typeof window<"u"&&(window.lastSeekedPosition=b)},[Tr,Ma]=Q.useState(!1),La=Q.useRef(!1),h=v=>{if(gt)return;v.stopPropagation(),v.preventDefault(),Ma(!0),La.current=!0,_a(w);const x=y=>{if(!ie.current||!Qe.current)return;const b=ie.current.getBoundingClientRect();let C;if(f>1){const U=Qe.current.scrollLeft,H=ie.current.clientWidth;C=(y.clientX-b.left+U)/H}else C=(y.clientX-b.left)/b.width;C=Math.max(0,Math.min(1,C));const g=C*k;I(g),Ze(g),_a(g),typeof window<"u"&&(window.lastSeekedPosition=g),W(g)},T=()=>{Ma(!1),La.current=!1,document.removeEventListener("mousemove",x),document.removeEventListener("mouseup",T)};document.addEventListener("mousemove",x),document.addEventListener("mouseup",T)},$=v=>{if(gt)return;v.stopPropagation(),v.preventDefault(),Ma(!0),La.current=!0,_a(w);const x=y=>{if(!ie.current||!Qe.current||!y.touches[0])return;const b=ie.current.getBoundingClientRect();let C;if(f>1){const U=Qe.current.scrollLeft,H=ie.current.clientWidth;C=(y.touches[0].clientX-b.left+U)/H}else C=(y.touches[0].clientX-b.left)/b.width;C=Math.max(0,Math.min(1,C));const g=C*k;I(g),Ze(g),_a(g),typeof window<"u"&&(window.lastSeekedPosition=g),W(g)},T=()=>{Ma(!1),La.current=!1,document.removeEventListener("touchmove",x),document.removeEventListener("touchend",T),document.removeEventListener("touchcancel",T)};document.addEventListener("touchmove",x,{passive:!1}),document.addEventListener("touchend",T),document.addEventListener("touchcancel",T)};return Q.useEffect(()=>{},[Ht,cn,Cn]),Q.useEffect(()=>{let v,x;if(Cn&&Ht){let T=10;v=setInterval(()=>{T--;const y=document.querySelector(".countdown");y&&(y.textContent=T.toString()),T<=0&&clearInterval(v)},1e3),x=setTimeout(()=>{ne&&ne(),window.location.href=Ht},1e4)}return()=>{v&&clearInterval(v),x&&clearTimeout(x)}},[Cn,Ht,ne]),p.jsxs("div",{className:`timeline-container-card ${M?"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:B(X.reduce((v,x)=>v+(x.endTime-x.startTime),0))})]})]}),p.jsx("div",{ref:Qe,className:`timeline-scroll-container ${M?"segments-playback-mode":""}`,style:{overflow:f>1?"auto":"hidden"},children:p.jsxs("div",{ref:ie,className:"timeline-container",onClick:Gr,onMouseMove:ka,style:{width:`${f*100}%`,cursor:"pointer"},children:[p.jsxs("div",{className:"timeline-marker",style:{left:`${Dt}%`},children:[p.jsx("div",{className:"timeline-marker-head",onClick:v=>{if(v.stopPropagation(),X.find(x=>w>=x.startTime&&w<=x.endTime),Ae||nt){he(null),ce(!1);return}else _a(w),ee.debug("Opening tooltip at:",B(w))},children:p.jsx("span",{className:"timeline-marker-head-icon",children:Ae||nt?"-":"+"})}),M?null:p.jsx("div",{className:`timeline-marker-drag ${Tr?"dragging":""}`,onMouseDown:h,onTouchStart:$,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:we,className:"trim-handle left"})}),p.jsx("div",{className:"trim-line-marker",style:{left:`${ar}%`},children:p.jsx("div",{ref:$t,className:"trim-handle right"})})]}),Jn(),qr(),Wr(),Ae!==null&&p.jsxs("div",{className:`segment-tooltip two-row-tooltip ${M?"segments-playback-mode":""}`,style:{position:"absolute",..._m(Dt)},onClick:v=>{M&&(v.stopPropagation(),v.preventDefault())},children:[p.jsxs("div",{className:"tooltip-row",children:[p.jsx("button",{className:`tooltip-time-btn ${M?"disabled":""}`,"data-tooltip":M?"Disabled during preview":"Seek -50ms (click or hold)",disabled:M,...M?{}:Tt(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),p.jsx("div",{className:`tooltip-time-display ${M?"disabled":""}`,style:{pointerEvents:M?"none":"auto",cursor:M?"not-allowed":"default",opacity:M?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:v=>{M&&(v.stopPropagation(),v.preventDefault())},children:B(un)}),p.jsx("button",{className:`tooltip-time-btn ${M?"disabled":""}`,"data-tooltip":M?"Disabled during preview":"Seek +50ms (click or hold)",disabled:M,...M?{}:Tt(.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"+50ms"})]}),p.jsxs("div",{className:"tooltip-row tooltip-actions",children:[p.jsx("button",{className:`tooltip-action-btn delete ${M?"disabled":""}`,"data-tooltip":M?"Disabled during preview":"Delete segment",disabled:M,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},onClick:v=>{v.stopPropagation();const x=new CustomEvent("delete-segment",{detail:{segmentId:Ae}});document.dispatchEvent(x)},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 ${M?"disabled":""}`,"data-tooltip":M?"Disabled during preview":"Split segment at current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:M,onClick:v=>{v.stopPropagation();const x=new CustomEvent("split-segment",{detail:{segmentId:Ae,time:fe}});document.dispatchEvent(x)},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 ${M?"disabled":""}`,"data-tooltip":M?"Disabled during preview":"Play segment from beginning",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:M,onClick:v=>{v.stopPropagation();const x=X.find(T=>T.id===Ae);if(x&&z.current){if(pt(!0),Math.abs(z.current.currentTime-x.endTime)<.05){ee.debug(`Already at end boundary (${B(z.current.currentTime)}), nudging position back slightly`);const T=Math.max(x.startTime,x.endTime-.1);z.current.currentTime=T,W(T),I(T),ee.debug(`Position adjusted to ${B(T)}`)}else W(x.startTime),I(x.startTime);Ue(x),z.current.play().then(()=>{Ie(!0)}).catch(T=>{console.error("Error playing from beginning:",T)})}},children:p.jsx("img",{src:Dm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn ${Pe?"pause":"play"} ${M?"disabled":""}`,"data-tooltip":M?"Disabled during preview":Pe?"Pause playback":"Play from current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:M,onClick:v=>{v.stopPropagation(),Pe?z.current&&(z.current.pause(),Ie(!1),pt(!1)):rt()},children:Pe?p.jsx("img",{src:Rm,alt:"Pause",style:{width:"24px",height:"24px"}}):p.jsx("img",{src:wm,alt:"Play",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn set-in ${M?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":M?"Disabled during preview":"Set start point at current position",disabled:M,onClick:v=>{if(v.stopPropagation(),X.find(T=>T.id===Ae)){const T=X.map(b=>b.id===Ae?{...b,startTime:fe<b.endTime-.5?fe:b.endTime-.5}:b),y=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"adjust_start_time"}});document.dispatchEvent(y)}},children:p.jsx("img",{src:G0,alt:"Set start point",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn set-out ${M?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":M?"Disabled during preview":"Set end point at current position",disabled:M,onClick:v=>{if(v.stopPropagation(),X.find(T=>T.id===Ae)){const T=X.map(b=>b.id===Ae?{...b,endTime:fe>b.startTime+.5?fe:b.startTime+.5}:b),y=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"adjust_end_time"}});document.dispatchEvent(y)}},children:p.jsx("img",{src:q0,alt:"Set end point",style:{width:"24px",height:"24px"}})})]})]}),nt&&Ae===null&&p.jsxs("div",{className:`empty-space-tooltip two-row-tooltip ${M?"segments-playback-mode":""}`,style:{position:"absolute",..._m(Dt)},onClick:v=>{M&&(v.stopPropagation(),v.preventDefault())},children:[p.jsxs("div",{className:"tooltip-row",children:[p.jsx("button",{className:`tooltip-time-btn ${M?"disabled":""}`,"data-tooltip":M?"Disabled during preview":"Seek -50ms (click or hold)",disabled:M,...M?{}:Tt(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),p.jsx("div",{className:`tooltip-time-display ${M?"disabled":""}`,style:{pointerEvents:M?"none":"auto",cursor:M?"not-allowed":"default",opacity:M?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:v=>{M&&(v.stopPropagation(),v.preventDefault())},children:B(fe)}),p.jsx("button",{className:`tooltip-time-btn ${M?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":M?"Disabled during preview":"Seek +50ms (click or hold)",disabled:M,...M?{}:Tt(.05),children:"+50ms"})]}),p.jsxs("div",{className:"tooltip-row tooltip-actions",children:[p.jsxs("button",{className:`tooltip-action-btn new-segment ${Fe<.5||M?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":M?"Disabled during preview":Fe<.5?"Not enough space for new segment":"Create new segment",disabled:Fe<.5||M,onClick:async v=>{if(v.stopPropagation(),Fe<.5)return;const x=fe,T=x+Fe,y={id:Date.now(),name:"segment",startTime:x,endTime:T,thumbnail:""},b=[...X,y],C=new CustomEvent("update-segments",{detail:{segments:b,recordHistory:!0,action:"create_segment"}});document.dispatchEvent(C),ce(!1),setTimeout(()=>{const g=b[b.length-1];g&&(he(g.id),ee.debug("Created and selected new segment:",g.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 ${M?"disabled":""}`,"data-tooltip":M?"Disabled during preview":"Play from beginning of cutaway",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:M,onClick:v=>{if(v.stopPropagation(),z.current){const x=fe;pt(!0);const T=[...X].sort((J,et)=>J.startTime-et.startTime),y=[...T].reverse().find(J=>J.endTime<x),b=y?y.endTime+.025:0,C=T.find(J=>J.startTime>x),g=C?C.startTime:k,U={id:-999,name:"Cutaway",startTime:b,endTime:g,thumbnail:""};W(b),I(b),Ie(!1),setTimeout(()=>{Ue(U)},0);const H=()=>{if(!z.current)return;const J=z.current.currentTime,et=[...X].sort((it,on)=>it.startTime-on.startTime),te=et.find(it=>it.startTime>J-.3),Re=te&&J>=te.startTime-.25&&J<=te.startTime+.1&&!Ut;te&&J>=te.startTime-.25&&J<=te.startTime+.1&&ee.debug(`Approaching boundary at ${B(te.startTime)}, continuePastBoundary=${Ut}, willStop=${Re}`);const ye=et.find(it=>J>=it.startTime&&J<=it.endTime);if(ye&&(Ve==null?void 0:Ve.id)!==ye.id){ee.debug(`Entered segment ${ye.id} during cutaway playback`),Ue(ye),he(ye.id),ce(!1),z.current.removeEventListener("timeupdate",H),pt(!1),sessionStorage.removeItem("continuingPastSegment");return}if(Re&&te){ee.debug(`CUTAWAY MANUAL BOUNDARY CHECK: Current position ${B(J)} approaching segment at ${B(te.startTime)} (distance: ${Math.abs(J-te.startTime).toFixed(3)}s) - STOPPING`),z.current.pause(),setTimeout(()=>{if(z.current){z.current.currentTime=te.startTime,W(te.startTime),Ze(te.startTime),I(te.startTime),pt(!1),he(te.id),ce(!1),Ue(te);const it=()=>{z.current&&(z.current.currentTime=te.startTime,W(te.startTime),Ze(te.startTime),I(te.startTime),ee.debug(`Position corrected to exact segment boundary: ${B(z.current.currentTime)} (target: ${B(te.startTime)})`))};setTimeout(it,10),setTimeout(it,20),setTimeout(it,50),setTimeout(it,100),setTimeout(it,200),z.current.addEventListener("seeked",it),z.current.addEventListener("canplay",it),z.current.addEventListener("waiting",it),setTimeout(()=>{z.current&&(z.current.removeEventListener("seeked",it),z.current.removeEventListener("canplay",it),z.current.removeEventListener("waiting",it))},300)}},10),Ie(!1),Ue(null),z.current.removeEventListener("timeupdate",H);return}};z.current.addEventListener("timeupdate",H),setTimeout(()=>{z.current&&z.current.play().then(()=>{Ie(!0),ee.debug("CUTAWAY PLAYBACK STARTED:",B(b),"to",B(g),y?`(after segment ${y.id}, offset +25ms from ${B(y.endTime)})`:"(from video start)",C?`(will stop at segment ${C.id})`:"(will play to end)")}).catch(J=>{console.error("Error playing cutaway:",J)})},50)}},children:p.jsx("img",{src:Dm,alt:"Play from beginning",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn ${Pe?"pause":"play"} ${M?"disabled":""}`,"data-tooltip":M?"Disabled during preview":Pe?"Pause playback":"Play from here until next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:M,onClick:v=>{v.stopPropagation(),Pe?z.current&&(z.current.pause(),Ie(!1),pt(!1)):rt()},children:Pe?p.jsx("img",{src:Rm,alt:"Pause",style:{width:"24px",height:"24px"}}):p.jsx("img",{src:wm,alt:"Play",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn segment-end ${M?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":M?"Disabled during preview":"Adjust end of previous segment",disabled:M,onClick:v=>{v.stopPropagation();const T=[...X].sort((y,b)=>y.startTime-b.startTime).filter(y=>y.endTime<=fe).sort((y,b)=>b.endTime-y.endTime)[0];if(T){const y=X.map(C=>C.id===T.id?{...C,endTime:fe}:C),b=new CustomEvent("update-segments",{detail:{segments:y,recordHistory:!0,action:"adjust_previous_end_time"}});document.dispatchEvent(b),ee.debug("Adjusted end of previous segment to:",B(fe)),he(T.id),ce(!1)}else if(X.length>0){const y=[...X].sort((g,U)=>g.startTime-U.startTime);let b=!1,C=0;for(let g=0;g<y.length-1;g++){const U=y[g].endTime,H=y[g+1].startTime;if(fe>U&&fe<H){b=!0,C=U;break}}if(b){const g={id:Date.now(),name:"segment",startTime:C,endTime:fe,thumbnail:""},U=[...X,g],H=new CustomEvent("update-segments",{detail:{segments:U,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(H),ee.debug("Created new segment in gap from",B(C),"to",B(fe)),he(g.id),ce(!1)}else if(fe<y[0].startTime){const g={id:Date.now(),name:"segment",startTime:0,endTime:fe,thumbnail:""},U=[...X,g],H=new CustomEvent("update-segments",{detail:{segments:U,recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(H),ee.debug("Created new segment from start to:",B(fe)),he(g.id),ce(!1)}else{const g=[...X].sort((U,H)=>H.endTime-U.endTime)[0];if(g&&g.endTime<k){const U=X.map(J=>J.id===g.id?{...J,endTime:k}:J),H=new CustomEvent("update-segments",{detail:{segments:U,recordHistory:!0,action:"extend_last_segment"}});document.dispatchEvent(H),he(g.id),ce(!1)}}}else if(fe>0){const y={id:Date.now(),name:"segment",startTime:0,endTime:fe,thumbnail:""},b=new CustomEvent("update-segments",{detail:{segments:[y],recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(b),ee.debug("Created new segment from start to:",B(fe)),he(y.id),ce(!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 ${M?"disabled":""}`,"data-tooltip":M?"Disabled during preview":"Adjust start of next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:M?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:M,onClick:v=>{v.stopPropagation();const T=[...X].sort((y,b)=>y.startTime-b.startTime).filter(y=>y.startTime>=fe).sort((y,b)=>y.startTime-b.startTime)[0];if(T){const y=X.map(C=>C.id===T.id?{...C,startTime:fe}:C),b=new CustomEvent("update-segments",{detail:{segments:y,recordHistory:!0,action:"adjust_next_start_time"}});document.dispatchEvent(b),ee.debug("Adjusted start of next segment to:",B(fe)),he(T.id),ce(!1)}else if(X.length>0){const y=[...X].sort((g,U)=>g.startTime-U.startTime);let b=!1,C=0;for(let g=0;g<y.length-1;g++){const U=y[g].endTime,H=y[g+1].startTime;if(fe>U&&fe<H){b=!0,C=H;break}}if(b){const g={id:Date.now(),name:"segment",startTime:fe,endTime:C,thumbnail:""},U=[...X,g],H=new CustomEvent("update-segments",{detail:{segments:U,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(H),ee.debug("Created new segment in gap from",B(fe),"to",B(C)),he(g.id),ce(!1)}else if(fe<y[0].startTime){const g={id:Date.now(),name:"segment",startTime:fe,endTime:y[0].startTime,thumbnail:""},U=[...X,g],H=new CustomEvent("update-segments",{detail:{segments:U,recordHistory:!0,action:"create_segment_before_first"}});document.dispatchEvent(H),ee.debug("Created new segment from",B(fe),"to first segment"),he(g.id),ce(!1)}else if(fe>y[y.length-1].endTime){const g={id:Date.now(),name:"segment",startTime:fe,endTime:k,thumbnail:""},U=[...X,g],H=new CustomEvent("update-segments",{detail:{segments:U,recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(H),ee.debug("Created new segment from",B(fe),"to end"),he(g.id),ce(!1)}else{const g=y[0];if(g&&g.startTime>0){const U=X.map(J=>J.id===g.id?{...J,startTime:0}:J),H=new CustomEvent("update-segments",{detail:{segments:U,recordHistory:!0,action:"extend_first_segment"}});document.dispatchEvent(H),he(g.id),ce(!1)}}}else if(fe<k){const y={id:Date.now(),name:"segment",startTime:fe,endTime:k,thumbnail:""},b=new CustomEvent("update-segments",{detail:{segments:[y],recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(b),ee.debug("Created new segment from",B(fe),"to end"),he(y.id),ce(!1)}},children:p.jsx("img",{src:X0,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:v=>{if(v.key==="Enter"){const x=v.currentTarget.value;try{const T=x.split(":");let y=0,b=0,C=0,g=0;if(T.length===3){y=parseInt(T[0]),b=parseInt(T[1]);const H=T[2].split(".");C=parseInt(H[0]),H.length>1&&(g=parseInt(H[1].padEnd(3,"0").substring(0,3)))}else if(T.length===2){b=parseInt(T[0]);const H=T[1].split(".");C=parseInt(H[0]),H.length>1&&(g=parseInt(H[1].padEnd(3,"0").substring(0,3)))}const U=y*3600+b*60+C+g/1e3;if(!isNaN(U)&&U>=0&&U<=k){W(U);const H=J=>{const et=X.find(te=>{const Re=J>=te.startTime&&J<=te.endTime,ye=Math.abs(J-te.startTime)<.001,it=Math.abs(J-te.endTime)<.001;return Re||ye||it});if(ie.current&&Qe.current){const te=ie.current.getBoundingClientRect();let Re;if(f>1)Re=te.left-Qe.current.scrollLeft+J/k*te.width;else{const ye=J/k;Re=te.left+te.width*ye}Je({x:Re,y:te.top-10}),I(J),et?(he(et.id),ce(!1)):(he(null),ce(!0))}};setTimeout(()=>H(U),10)}}catch(T){console.error("Invalid time format:",T)}}}}),p.jsx("div",{className:"time-button-group",children:(()=>{const v=()=>{const x=X.find(T=>{const y=w>=T.startTime&&w<=T.endTime,b=Math.abs(w-T.startTime)<.001,C=Math.abs(w-T.endTime)<.001;return y||b||C});if(ie.current&&Qe.current){const T=ie.current.getBoundingClientRect();let y;if(f>1)y=T.left-Qe.current.scrollLeft+w/k*T.width;else{const b=w/k;y=T.left+T.width*b}if(Je({x:y,y:T.top-10}),I(w),x)he(x.id),ce(!1);else{const b=Qn(w);at(b),b>=.5?(he(null),ce(!0)):(he(null),ce(!1))}}};return p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"time-button",onClick:()=>{W(w-.01),setTimeout(v,10)},"data-tooltip":"Move back 10ms",children:"-10ms"}),p.jsx("button",{className:"time-button",onClick:()=>{W(w-.001),setTimeout(v,10)},"data-tooltip":"Move back 1ms",children:"-1ms"}),p.jsx("button",{className:"time-button",onClick:()=>{W(w+.001),setTimeout(v,10)},"data-tooltip":"Move forward 1ms",children:"+1ms"}),p.jsx("button",{className:"time-button",onClick:()=>{W(w+.01),setTimeout(v,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:()=>Ye(!q),children:["Zoom ",f,"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"})})]}),q&&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(v=>p.jsxs("div",{className:`zoom-option ${f===v?"selected":""}`,onClick:()=>{yt(v),Ye(!1)},children:[f===v&&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 ",v,"x"]},v))})]}),p.jsx("div",{className:"auto-saved-time",style:{color:En?"#1976d2":"gray",fontSize:"12px",marginLeft:"10px",display:"flex",alignItems:"center",gap:"5px"},children:En?p.jsxs(p.Fragment,{children:[p.jsx("span",{className:"auto-save-spinner",style:{display:"inline-block",width:"12px",height:"12px",border:"2px solid #f3f3f3",borderTop:"2px solid #1976d2",borderRadius:"50%",animation:"spin 1s linear infinite"}}),"Auto saving..."]}):Xt?`Auto saved: ${Xt}`:"Not saved yet"}),p.jsxs("div",{className:"save-buttons-row",children:[ne&&p.jsx("button",{onClick:()=>Ge(!0),className:"save-button","data-tooltip":"Save changes",children:"Save"}),Le&&p.jsx("button",{onClick:()=>Ct(!0),className:"save-copy-button","data-tooltip":"Save as a new copy",children:"Save as Copy"}),zt&&p.jsx("button",{onClick:()=>sn(!0),className:"save-segments-button","data-tooltip":"Save segments as separate files",children:"Save Segments"})]}),p.jsx(io,{isOpen:Et,onClose:()=>Ge(!1),title:"Save Changes",actions:p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>Ge(!1),children:"Cancel"}),p.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{ne&&ne(),ha()},children:"Confirm Save"})]}),children:p.jsx("p",{className:"modal-message",children:"You're about to replace the original video with this trimmed version. This can't be undone."})}),p.jsx(io,{isOpen:vt,onClose:()=>Ct(!1),title:"Save As New Copy",actions:p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>Ct(!1),children:"Cancel"}),p.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{Le&&Le(),ya()},children:"Confirm Save As Copy"})]}),children:p.jsx("p",{className:"modal-message",children:"You're about to save a new copy with your edits. The original video will stay the same. Find the new file in your My Media folder - named after the original file."})}),p.jsxs(io,{isOpen:Lt,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(io,{isOpen:Kt,onClose:()=>sn(!1),title:"Save Segments",actions:p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>sn(!1),children:"Cancel"}),p.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{zt&&zt(),rr()},children:"Save Segments"})]}),children:p.jsx("p",{className:"modal-message",children:"You're about to save each segment as a separate video. Find the new files in your My Media folder - named after the original file."})}),p.jsx(io,{isOpen:Cn,onClose:()=>Xn(!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:Ht,className:"media-page-link",style:K0,children:"media page"})," in ",p.jsx("span",{className:"countdown",children:"10"})," seconds."," ",cn==="segments"?"The new video(s) will soon be there.":"Changes to the video might take a few minutes to be applied."]})})}),p.jsxs(io,{isOpen:Ba,onClose:()=>G(!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:Rt})]}),p.jsx("div",{className:"modal-choices",children:p.jsxs("button",{onClick:()=>G(!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"]})})]})]})]}),gt&&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"})]})})]})},Z0=({onSplit:w,onReset:k,onUndo:se,onRedo:me,onPlaySegments:le,onPlay:xe,canUndo:f,canRedo:X,isPlaying:ge=!1,isPlayingSegments:re=!1})=>{const[yt,W]=Q.useState(!1);Q.useEffect(()=>{const ne=()=>{W(window.innerWidth<=640)};return ne(),window.addEventListener("resize",ne),()=>window.removeEventListener("resize",ne)},[]);const z=()=>{xe()};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:le,"data-tooltip":re?"Stop segments playback":"Play segments in one continuous flow",style:{fontSize:"0.875rem"},children:re?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"})]})}),(!re||!yt)&&p.jsx("button",{className:`button play-button ${re?"greyed-out":""}`,onClick:z,"data-tooltip":ge?"Pause video":"Play full video",style:{fontSize:"0.875rem"},disabled:re,children:ge&&!re?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":re?"Disabled during preview":"Undo last action",disabled:!f||re,onClick:se,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":re?"Disabled during preview":"Redo last undone action",disabled:!X||re,onClick:me,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:k,"data-tooltip":re?"Disabled during preview":"Reset to full video",disabled:re,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"})]})]})]})})},eS=({segments:w})=>{const k=[...w].sort((le,xe)=>le.startTime-xe.startTime),se=le=>{const xe=new CustomEvent("delete-segment",{detail:{segmentId:le}});document.dispatchEvent(xe)},me=le=>`segment-default-color segment-color-${le%8+1}`;return p.jsxs("div",{className:"clip-segments-container",children:[p.jsx("h3",{className:"clip-segments-title",children:"Clip Segments"}),k.map((le,xe)=>p.jsxs("div",{className:`segment-item ${me(xe)}`,children:[p.jsxs("div",{className:"segment-content",children:[p.jsx("div",{className:"segment-thumbnail",style:{backgroundImage:`url(${le.thumbnail})`}}),p.jsxs("div",{className:"segment-info",children:[p.jsxs("div",{className:"segment-title",children:["Segment ",xe+1]}),p.jsxs("div",{className:"segment-time",children:[Ci(le.startTime)," - ",Ci(le.endTime)]}),p.jsxs("div",{className:"segment-duration",children:["Duration: ",Y0(le.endTime-le.startTime)]})]})]}),p.jsx("div",{className:"segment-actions",children:p.jsx("button",{className:"delete-button","aria-label":"Delete Segment","data-tooltip":"Delete this segment",onClick:()=>se(le.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"})})})})]},le.id)),k.length===0&&p.jsx("div",{className:"empty-message",children:"No segments created yet. Use the split button to create segments."})]})},tS=({videoRef:w,onPlay:k})=>{const[se,me]=Q.useState(!1);Q.useEffect(()=>{const f=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent);me(f)},[]),Q.useEffect(()=>{const xe=w.current;if(!xe)return;const f=()=>{me(!1)};return xe.addEventListener("play",f),()=>{xe.removeEventListener("play",f)}},[w]);const le=()=>{k()};return se?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:le,children:"Click to start editing..."})})}):null},nS=()=>{const w=Q.useRef(null),[k,se]=Q.useState(0),[me,le]=Q.useState(0),[xe,f]=Q.useState(!1),[X,ge]=Q.useState(!1),[re,yt]=Q.useState([]),[W,z]=Q.useState(0),[ne,Le]=Q.useState(0),[zt,Gt]=Q.useState([]),[gt,Pe]=Q.useState(1),[De,rt]=Q.useState([]),[M,ie]=Q.useState([]),[we,$t]=Q.useState(-1),[Ae,he]=Q.useState(!1),[nt,ce]=Q.useState(!1),[Me,Je]=Q.useState(0);Q.useEffect(()=>{var V;if(M.length>0){const K=((V=M[we])==null?void 0:V.action)||"";K!=="save"&&K!=="save_copy"&&K!=="save_segments"&&he(!0)}},[M,we]),Q.useEffect(()=>{const V=w.current;if(!V)return;const K=()=>{le(V.duration),Le(V.duration),(async()=>{const Ge=await Cm(V,V.duration/2),vt={id:1,name:"segment",startTime:0,endTime:V.duration,thumbnail:Ge},Ct={trimStart:0,trimEnd:V.duration,splitPoints:[],clipSegments:[vt]};ie([Ct]),$t(0),rt([vt]);const Kt=6,sn=V.duration/Kt,Lt=[];for(let Mt=0;Mt<Kt;Mt++){const Cn=sn*Mt+sn/2,Xn=await Cm(V,Cn);Lt.push(Xn)}yt(Lt)})()},Ee=()=>{se(V.currentTime)},Te=()=>{f(!0),en(!0)},He=()=>{f(!1)},Tt=()=>{f(!1),V.currentTime=W};return V.addEventListener("loadedmetadata",K),V.addEventListener("timeupdate",Ee),V.addEventListener("play",Te),V.addEventListener("pause",He),V.addEventListener("ended",Tt),()=>{V.removeEventListener("loadedmetadata",K),V.removeEventListener("timeupdate",Ee),V.removeEventListener("play",Te),V.removeEventListener("pause",He),V.removeEventListener("ended",Tt)}},[]);const fe=V=>{const K=w.current;if(!K)return;const Ee=!K.paused;K.currentTime=V,se(V),typeof window<"u"&&(window.lastSeekedPosition=V),Ee&&K.play().then(()=>{f(!0)}).catch(Te=>{console.error("Error resuming playback:",Te),f(!1)})},I=V=>{const K={trimStart:W,trimEnd:ne,splitPoints:[...zt],clipSegments:JSON.parse(JSON.stringify(De)),action:V||"manual_save"},Ee=M[we],Te=()=>{if(!Ee||Ee.clipSegments.length!==K.clipSegments.length)return!0;for(let Et=0;Et<K.clipSegments.length;Et++){const Ge=Ee.clipSegments[Et],vt=K.clipSegments[Et];if(!Ge||!vt||Math.abs(Ge.startTime-vt.startTime)>.001||Math.abs(Ge.endTime-vt.endTime)>.001)return!0}return!1},He=!Ee||Ee.trimStart!==K.trimStart||Ee.trimEnd!==K.trimEnd||Ee.splitPoints.length!==K.splitPoints.length||Te(),Tt=K.action!==void 0;if(He||Tt){const Et=we;ie(Ge=>Et<Ge.length-1?[...Ge.slice(0,Et+1),K]:[...Ge,K]),$t(Ge=>Ge+1)}};Q.useEffect(()=>{const V=K=>{if(K.detail){const{time:Ee,isStart:Te,recordHistory:He,action:Tt}=K.detail;Te?z(Ee):Le(Ee),He&&setTimeout(()=>{I(Tt||(Te?"adjust_trim_start":"adjust_trim_end"))},10)}};return document.addEventListener("update-trim",V),()=>{document.removeEventListener("update-trim",V)}},[]),Q.useEffect(()=>{const V=Te=>{if(Te.detail&&Te.detail.segments){const He=Te.detail.recordHistory!==!1,Tt=Te.detail.action||"update_segments";rt(Te.detail.segments),He&&setTimeout(()=>{const Et=JSON.parse(JSON.stringify(Te.detail.segments)),Ge={trimStart:W,trimEnd:ne,splitPoints:[...zt],clipSegments:Et,action:Tt},vt=we;ie(Ct=>vt<Ct.length-1?[...Ct.slice(0,vt+1),Ge]:[...Ct,Ge]),$t(Ct=>Ct+1)},20)}},K=async Te=>{const He=Te;if(He.detail&&typeof He.detail.time=="number"&&typeof He.detail.segmentId=="number"){const Tt=He.detail.time,Et=He.detail.segmentId;fe(Tt);const Ge=De.find(Lt=>Lt.id===Et);if(!Ge||Tt<=Ge.startTime||Tt>=Ge.endTime)return;const vt=[...De],Ct=vt.findIndex(Lt=>Lt.id===Et);if(Ct===-1)return;vt.splice(Ct,1);const Kt={id:Date.now(),name:`${Ge.name}-A`,startTime:Ge.startTime,endTime:Tt,thumbnail:""},sn={id:Date.now()+1,name:`${Ge.name}-B`,startTime:Tt,endTime:Ge.endTime,thumbnail:""};vt.push(Kt,sn),vt.sort((Lt,Mt)=>Lt.startTime-Mt.startTime),rt(vt),I("split_segment")}},Ee=async Te=>{const He=Te;if(He.detail&&typeof He.detail.segmentId=="number"){const Tt=He.detail.segmentId,Et=De.filter(Ge=>Ge.id!==Tt);if(Et.length!==De.length){if(Et.length===0&&w.current){const Ge={id:Date.now(),name:"segment",startTime:0,endTime:w.current.duration,thumbnail:""};z(0),Le(w.current.duration),Gt([]),rt([Ge])}else rt(Et);I("delete_segment")}}};return document.addEventListener("update-segments",V),document.addEventListener("split-segment",K),document.addEventListener("delete-segment",Ee),()=>{document.removeEventListener("update-segments",V),document.removeEventListener("split-segment",K),document.removeEventListener("delete-segment",Ee)}},[De,me]);const q=V=>{z(V),I("adjust_trim_start")},Ye=V=>{Le(V),I("adjust_trim_end")},Fe=async()=>{if(w.current&&!zt.includes(k)){const V=[...zt,k].sort((Te,He)=>Te-He);Gt(V);const K=[];let Ee=0;for(let Te=0;Te<=V.length;Te++){const He=Te<V.length?V[Te]:me;Ee<He&&(K.push({id:Date.now()+Te,name:`Segment ${Te+1}`,startTime:Ee,endTime:He,thumbnail:""}),Ee=He)}rt(K),I("create_split_points")}},at=async()=>{if(z(0),Le(me),Gt([]),!w.current)return;const V={id:Date.now(),name:"segment",startTime:0,endTime:me,thumbnail:""};rt([V]),I("reset_all")},ut=()=>{if(we>0){const V=M[we-1];ee.debug(`** UNDO ** to position ${we-1}, action: ${V.action}, segments: ${V.clipSegments.length}`),ee.debug("Segment details after undo:",V.clipSegments.map(K=>`ID: ${K.id}, Time: ${B(K.startTime)} - ${B(K.endTime)}`)),z(V.trimStart),Le(V.trimEnd),Gt([...V.splitPoints]),rt(JSON.parse(JSON.stringify(V.clipSegments))),$t(we-1)}},Ie=()=>{if(we<M.length-1){const V=M[we+1];ee.debug(`** REDO ** to position ${we+1}, action: ${V.action}, segments: ${V.clipSegments.length}`),ee.debug("Segment details after redo:",V.clipSegments.map(K=>`ID: ${K.id}, Time: ${B(K.startTime)} - ${B(K.endTime)}`)),z(V.trimStart),Le(V.trimEnd),Gt([...V.splitPoints]),rt(JSON.parse(JSON.stringify(V.clipSegments))),$t(we+1)}},Ve=V=>{Pe(V)},Ue=()=>{const V=w.current;V&&(V.muted=!V.muted,ge(!X))},un=()=>{[...De].sort((K,Ee)=>K.startTime-Ee.startTime).map(K=>({startTime:B(K.startTime),endTime:B(K.endTime)})),he(!1),I("save")},Ze=()=>{[...De].sort((K,Ee)=>K.startTime-Ee.startTime).map(K=>({startTime:B(K.startTime),endTime:B(K.endTime)})),he(!1),I("save_copy")},Ut=()=>{[...De].sort((K,Ee)=>K.startTime-Ee.startTime).map(K=>({name:K.name,startTime:B(K.startTime),endTime:B(K.endTime)})),he(!1),I("save_segments")},pt=V=>{(!Qe||Xt)&&fe(V)},Qe=typeof window<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent),[Xt,en]=Q.useState(!1);return Q.useEffect(()=>{if(!nt||!w.current)return;const V=w.current,K=[...De].sort((Te,He)=>Te.startTime-He.startTime),Ee=()=>{const Te=K[Me];if(!Te)return;const He=V.currentTime;if(He<Te.startTime){V.currentTime=Te.startTime;return}if(He>=Te.endTime-.01)if(Me<K.length-1){const Tt=K[Me+1];V.currentTime=Tt.startTime,Je(Me+1),V.paused&&V.play().catch(Et=>{console.error("Error continuing segment playback:",Et)})}else V.pause(),ce(!1),Je(0),V.removeEventListener("timeupdate",Ee)};return V.addEventListener("timeupdate",Ee),V.paused&&K.length>0&&(V.currentTime=K[0].startTime,V.play().catch(console.error)),()=>{V.removeEventListener("timeupdate",Ee)}},[nt,Me,De]),Q.useEffect(()=>{const V=K=>{const{segmentIndex:Ee}=K.detail;nt&&Ee!==Me&&Je(Ee)};return document.addEventListener("update-segment-index",V),()=>{document.removeEventListener("update-segment-index",V)}},[nt,Me]),{videoRef:w,currentTime:k,duration:me,isPlaying:xe,setIsPlaying:f,isMuted:X,isPlayingSegments:nt,thumbnails:re,trimStart:W,trimEnd:ne,splitPoints:zt,zoomLevel:gt,clipSegments:De,hasUnsavedChanges:Ae,historyPosition:we,history:M,handleTrimStartChange:q,handleTrimEndChange:Ye,handleZoomChange:Ve,handleMobileSafeSeek:pt,handleSplit:Fe,handleReset:at,handleUndo:ut,handleRedo:Ie,handlePlaySegments:()=>{const V=w.current;if(!(!V||De.length===0))if(nt)V.pause(),ce(!1),Je(0);else{ce(!0),Je(0);const K=[...De].sort((Ee,Te)=>Ee.startTime-Te.startTime);V.currentTime=K[0].startTime,V.play().catch(Ee=>{console.error("Error starting segments playback:",Ee),ce(!1)})}},toggleMute:Ue,handleSave:un,handleSaveACopy:Ze,handleSaveSegments:Ut,isMobile:Qe,videoInitialized:Xt,setVideoInitialized:en}},aS=()=>{const{videoRef:w,currentTime:k,duration:se,isPlaying:me,setIsPlaying:le,isMuted:xe,thumbnails:f,trimStart:X,trimEnd:ge,splitPoints:re,zoomLevel:yt,clipSegments:W,hasUnsavedChanges:z,historyPosition:ne,history:Le,handleTrimStartChange:zt,handleTrimEndChange:Gt,handleZoomChange:gt,handleMobileSafeSeek:Pe,handleSplit:De,handleReset:rt,handleUndo:M,handleRedo:ie,toggleMute:we,handleSave:$t,handleSaveACopy:Ae,handleSaveSegments:he,isMobile:nt,videoInitialized:ce,setVideoInitialized:Me,isPlayingSegments:Je,handlePlaySegments:fe}=nS(),I=()=>{if(!w.current)return;const q=w.current;if(me){q.pause(),le(!1);return}const Ye=Number(q.currentTime.toFixed(6));let Fe=se,at=null,ut=null;const Ie=[...W].sort((Ue,un)=>Ue.startTime-un.startTime);at=Ie.find(Ue=>{const un=Number(Ue.startTime.toFixed(6)),Ze=Number(Ue.endTime.toFixed(6));return Ye>un&&Ye<Ze||Ye===un}),at||(ut=Ie.find(Ue=>Number(Ue.startTime.toFixed(6))>Ye)),at?Fe=Number(at.endTime.toFixed(6)):ut&&(Fe=Number(ut.startTime.toFixed(6)));const Ve=()=>{if(!q)return;const Ue=Number(q.currentTime.toFixed(6));if(Number((Fe-Ue).toFixed(6))<=0||Ue>=Fe){q.pause();const Ze=()=>{if(!q)return;q.currentTime=Fe,Pe(Fe);const Ut=Number(q.currentTime.toFixed(6)),pt=Number(Math.abs(Ut-Fe).toFixed(6));ee.debug("Position verification:",{target:B(Fe),actual:B(Ut),difference:pt}),pt>0&&(q.currentTime=Fe,Pe(Fe))};Ze(),setTimeout(Ze,5),setTimeout(Ze,10),setTimeout(Ze,20),setTimeout(Ze,50),q.removeEventListener("timeupdate",Ve),le(!1),ee.debug("Stopped at position:",{target:B(Fe),actual:B(q.currentTime),type:at?"segment end":ut?"next segment start":"end of video",segment:at?{id:at.id,start:B(at.startTime),end:B(at.endTime)}:null,nextSegment:ut?{id:ut.id,start:B(ut.startTime),end:B(ut.endTime)}:null});return}};q.addEventListener("timeupdate",Ve),q.play().then(()=>{le(!0),Me(!0),ee.debug("Playback started:",{from:B(Ye),to:B(Fe),currentSegment:at?{id:at.id,start:B(at.startTime),end:B(at.endTime)}:"None",nextSegment:ut?{id:ut.id,start:B(ut.startTime),end:B(ut.endTime)}:"None"})}).catch(Ue=>{console.error("Error playing video:",Ue)})};return p.jsxs("div",{className:"bg-background min-h-screen",children:[p.jsx(tS,{videoRef:w,onPlay:I}),p.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-6xl",children:[p.jsx(I0,{videoRef:w,currentTime:k,duration:se,isPlaying:me,isMuted:xe,onPlayPause:I,onSeek:Pe,onToggleMute:we}),p.jsx(Z0,{onSplit:De,onReset:rt,onUndo:M,onRedo:ie,onPlaySegments:fe,onPlay:I,isPlaying:me,isPlayingSegments:Je,canUndo:ne>0,canRedo:ne<Le.length-1}),p.jsx(J0,{currentTime:k,duration:se,thumbnails:f,trimStart:X,trimEnd:ge,splitPoints:re,zoomLevel:yt,clipSegments:W,onTrimStartChange:zt,onTrimEndChange:Gt,onZoomChange:gt,onSeek:Pe,videoRef:w,onSave:$t,onSaveACopy:Ae,onSaveSegments:he,hasUnsavedChanges:z,isIOSUninitialized:nt&&!ce,isPlaying:me,setIsPlaying:le,onPlayPause:I,isPlayingSegments:Je}),p.jsx(eS,{segments:W})]})]})};typeof window<"u"&&(window.MEDIA_DATA={videoUrl:"",mediaId:""},window.lastSeekedPosition=0);const km=()=>{const w=document.getElementById("video-editor-trim-root");w&&Sm(w).render(p.jsx(aS,{}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",km):km()})();
|
|
//# sourceMappingURL=video-editor.js.map
|