mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-05 23:18:53 -05:00
* fix: Disable Segment Tools and Reset Preview State During Playback * chore: remove some unnecessary comments * chore: build assets * fix: do not display the handles (left/right) on preview mode * fix: Disable all tools on preview mode (undo, redo, reset, etc.) * Update README.md * feat: Prettier configuration for video editor * Update README.md * Update .prettierrc * style: Format entire codebase (video-editor) with Prettier * fix: During segments playback mode, disable button interactions but keep hover working * feat: Add yarn format * prettier format * Update package.json * feat: Install prettier and improve formatting * build assets * Update version.py 6.2.0
204 lines
400 KiB
JavaScript
204 lines
400 KiB
JavaScript
(function(){"use strict";var dm={exports:{}},Kc={exports:{}},al={exports:{}};al.exports;var vm;function z0(){return vm||(vm=1,function(w,L){/**
|
|
* @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 me="18.3.1",Ee=Symbol.for("react.element"),fe=Symbol.for("react.portal"),Re=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),Q=Symbol.for("react.profiler"),he=Symbol.for("react.provider"),te=Symbol.for("react.context"),bt=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),H=Symbol.for("react.suspense_list"),K=Symbol.for("react.memo"),Oe=Symbol.for("react.lazy"),zt=Symbol.for("react.offscreen"),qt=Symbol.iterator,St="@@iterator";function Pe(s){if(s===null||typeof s!="object")return null;var m=qt&&s[qt]||s[St];return typeof m=="function"?m:null}var _e={current:null},ot={transition:null},_={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},ne={current:null},De={},Vt=null;function Me(s){Vt=s}De.setExtraStackFrame=function(s){Vt=s},De.getCurrentStack=null,De.getStackAddendum=function(){var s="";Vt&&(s+=Vt);var m=De.getCurrentStack;return m&&(s+=m()||""),s};var pe=!1,nt=!1,oe=!1,Le=!1,Ke=!1,le={ReactCurrentDispatcher:_e,ReactCurrentBatchConfig:ot,ReactCurrentOwner:ne};le.ReactDebugCurrentFrame=De,le.ReactCurrentActQueue=_;function W(s){{for(var m=arguments.length,k=new Array(m>1?m-1:0),N=1;N<m;N++)k[N-1]=arguments[N];Ye("warn",s,k)}}function q(s){{for(var m=arguments.length,k=new Array(m>1?m-1:0),N=1;N<m;N++)k[N-1]=arguments[N];Ye("error",s,k)}}function Ye(s,m,k){{var N=le.ReactDebugCurrentFrame,X=N.getStackAddendum();X!==""&&(m+="%s",k=k.concat([X]));var Ne=k.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 k=s.constructor,N=k&&(k.displayName||k.name)||"ReactClass",X=N+"."+m;if(Fe[X])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,N),Fe[X]=!0}}var ct={isMounted:function(s){return!1},enqueueForceUpdate:function(s,m,k){at(s,"forceUpdate")},enqueueReplaceState:function(s,m,k,N){at(s,"replaceState")},enqueueSetState:function(s,m,k,N){at(s,"setState")}},We=Object.assign,Ve={};Object.freeze(Ve);function Ue(s,m,k){this.props=s,this.context=m,this.refs=Ve,this.updater=k||ct}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 cn={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)."]},et=function(s,m){Object.defineProperty(Ue.prototype,s,{get:function(){W("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var Ht in cn)cn.hasOwnProperty(Ht)&&et(Ht,cn[Ht])}function gt(){}gt.prototype=Ue.prototype;function Qe(s,m,k){this.props=s,this.context=m,this.refs=Ve,this.updater=k||ct}var Gt=Qe.prototype=new gt;Gt.constructor=Qe,We(Gt,Ue.prototype),Gt.isPureReactComponent=!0;function rn(){var s={current:null};return Object.seal(s),s}var fn=Array.isArray;function F(s){return fn(s)}function G(s){{var m=typeof Symbol=="function"&&Symbol.toStringTag,k=m&&s[Symbol.toStringTag]||s.constructor.name||"Object";return k}}function Te(s){try{return Ce(s),!1}catch{return!0}}function Ce(s){return""+s}function Ze(s){if(Te(s))return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",G(s)),Ce(s)}function st(s,m,k){var N=s.displayName;if(N)return N;var X=m.displayName||m.name||"";return X!==""?k+"("+X+")":k}function ht(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 Re:return"Fragment";case fe:return"Portal";case Q:return"Profiler";case d:return"StrictMode";case I:return"Suspense";case H:return"SuspenseList"}if(typeof s=="object")switch(s.$$typeof){case te:var m=s;return ht(m)+".Consumer";case he:var k=s;return ht(k._context)+".Provider";case bt:return st(s,s.render,"ForwardRef");case K:var N=s.displayName||null;return N!==null?N:Ge(s.type)||"Memo";case Oe:{var X=s,Ne=X._payload,Se=X._init;try{return Ge(Se(Ne))}catch{return null}}}return null}var yt=Object.prototype.hasOwnProperty,rt={key:!0,ref:!0,__self:!0,__source:!0},tn,mn,Ot;Ot={};function Lt(s){if(yt.call(s,"ref")){var m=Object.getOwnPropertyDescriptor(s,"ref").get;if(m&&m.isReactWarning)return!1}return s.ref!==void 0}function hn(s){if(yt.call(s,"key")){var m=Object.getOwnPropertyDescriptor(s,"key").get;if(m&&m.isReactWarning)return!1}return s.key!==void 0}function ia(s,m){var k=function(){tn||(tn=!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))};k.isReactWarning=!0,Object.defineProperty(s,"key",{get:k,configurable:!0})}function va(s,m){var k=function(){mn||(mn=!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))};k.isReactWarning=!0,Object.defineProperty(s,"ref",{get:k,configurable:!0})}function Z(s){if(typeof s.ref=="string"&&ne.current&&s.__self&&ne.current.stateNode!==s.__self){var m=Ge(ne.current.type);Ot[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),Ot[m]=!0)}}var xe=function(s,m,k,N,X,Ne,Se){var Ie={$$typeof:Ee,type:s,key:m,ref:k,props:Se,_owner:Ne};return Ie._store={},Object.defineProperty(Ie._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Ie,"_self",{configurable:!1,enumerable:!1,writable:!1,value:N}),Object.defineProperty(Ie,"_source",{configurable:!1,enumerable:!1,writable:!1,value:X}),Object.freeze&&(Object.freeze(Ie.props),Object.freeze(Ie)),Ie};function Je(s,m,k){var N,X={},Ne=null,Se=null,Ie=null,dt=null;if(m!=null){Lt(m)&&(Se=m.ref,Z(m)),hn(m)&&(Ze(m.key),Ne=""+m.key),Ie=m.__self===void 0?null:m.__self,dt=m.__source===void 0?null:m.__source;for(N in m)yt.call(m,N)&&!rt.hasOwnProperty(N)&&(X[N]=m[N])}var At=arguments.length-2;if(At===1)X.children=k;else if(At>1){for(var Yt=Array(At),Wt=0;Wt<At;Wt++)Yt[Wt]=arguments[Wt+2];Object.freeze&&Object.freeze(Yt),X.children=Yt}if(s&&s.defaultProps){var lt=s.defaultProps;for(N in lt)X[N]===void 0&&(X[N]=lt[N])}if(Ne||Se){var en=typeof s=="function"?s.displayName||s.name||"Unknown":s;Ne&&ia(X,en),Se&&va(X,en)}return xe(s,Ne,Se,Ie,dt,ne.current,X)}function Rt(s,m){var k=xe(s.type,m,s.ref,s._self,s._source,s._owner,s.props);return k}function Bt(s,m,k){if(s==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+s+".");var N,X=We({},s.props),Ne=s.key,Se=s.ref,Ie=s._self,dt=s._source,At=s._owner;if(m!=null){Lt(m)&&(Se=m.ref,At=ne.current),hn(m)&&(Ze(m.key),Ne=""+m.key);var Yt;s.type&&s.type.defaultProps&&(Yt=s.type.defaultProps);for(N in m)yt.call(m,N)&&!rt.hasOwnProperty(N)&&(m[N]===void 0&&Yt!==void 0?X[N]=Yt[N]:X[N]=m[N])}var Wt=arguments.length-2;if(Wt===1)X.children=k;else if(Wt>1){for(var lt=Array(Wt),en=0;en<Wt;en++)lt[en]=arguments[en+2];X.children=lt}return xe(s.type,Ne,Se,Ie,dt,At,X)}function Xt(s){return typeof s=="object"&&s!==null&&s.$$typeof===Ee}var Qt=".",wn=":";function Pt(s){var m=/[=:]/g,k={"=":"=0",":":"=2"},N=s.replace(m,function(X){return k[X]});return"$"+N}var Tt=!1,Dt=/\/+/g;function er(s){return s.replace(Dt,"$&/")}function $n(s,m){return typeof s=="object"&&s!==null&&s.key!=null?(Ze(s.key),Pt(""+s.key)):m.toString(36)}function pa(s,m,k,N,X){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 Ee:case fe:Se=!0}}if(Se){var Ie=s,dt=X(Ie),At=N===""?Qt+$n(Ie,0):N;if(F(dt)){var Yt="";At!=null&&(Yt=er(At)+"/"),pa(dt,m,Yt,"",function(cf){return cf})}else dt!=null&&(Xt(dt)&&(dt.key&&(!Ie||Ie.key!==dt.key)&&Ze(dt.key),dt=Rt(dt,k+(dt.key&&(!Ie||Ie.key!==dt.key)?er(""+dt.key)+"/":"")+At)),m.push(dt));return 1}var Wt,lt,en=0,dn=N===""?Qt:N+wn;if(F(s))for(var Ci=0;Ci<s.length;Ci++)Wt=s[Ci],lt=dn+$n(Wt,Ci),en+=pa(Wt,m,k,lt,X);else{var pl=Pe(s);if(typeof pl=="function"){var br=s;pl===br.entries&&(Tt||W("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Tt=!0);for(var ml=pl.call(br),hl,sf=0;!(hl=ml.next()).done;)Wt=hl.value,lt=dn+$n(Wt,sf++),en+=pa(Wt,m,k,lt,X)}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 en}function tr(s,m,k){if(s==null)return s;var N=[],X=0;return pa(s,N,"","",function(Ne){return m.call(k,Ne,X++)}),N}function Fr(s){var m=0;return tr(s,function(){m++}),m}function Vr(s,m,k){tr(s,function(){m.apply(this,arguments)},k)}function wa(s){return tr(s,function(m){return m})||[]}function ja(s){if(!Xt(s))throw new Error("React.Children.only expected to receive a single React element child.");return s}function Br(s){var m={$$typeof:te,_currentValue:s,_currentValue2:s,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};m.Provider={$$typeof:he,_context:m};var k=!1,N=!1,X=!1;{var Ne={$$typeof:te,_context:m};Object.defineProperties(Ne,{Provider:{get:function(){return N||(N=!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 k||(k=!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){X||(W("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",Se),X=!0)}}}),m.Consumer=Ne}return m._currentRenderer=null,m._currentRenderer2=null,m}var ma=-1,h=0,B=1,D=2;function T(s){if(s._status===ma){var m=s._result,k=m();if(k.then(function(Ne){if(s._status===h||s._status===ma){var Se=s;Se._status=B,Se._result=Ne}},function(Ne){if(s._status===h||s._status===ma){var Se=s;Se._status=D,Se._result=Ne}}),s._status===ma){var N=s;N._status=h,N._result=k}}if(s._status===B){var X=s._result;return X===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?`,X),"default"in X||q(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
|
|
Your code should look like:
|
|
const MyComponent = lazy(() => import('./MyComponent'))`,X),X.default}else throw s._result}function x(s){var m={_status:ma,_result:s},k={$$typeof:Oe,_payload:m,_init:T};{var N,X;Object.defineProperties(k,{defaultProps:{configurable:!0,get:function(){return N},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."),N=Ne,Object.defineProperty(k,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return X},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."),X=Ne,Object.defineProperty(k,"propTypes",{enumerable:!0})}}})}return k}function O(s){s!=null&&s.$$typeof===K?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:bt,render:s};{var k;Object.defineProperty(m,"displayName",{enumerable:!1,configurable:!0,get:function(){return k},set:function(N){k=N,!s.name&&!s.displayName&&(s.displayName=N)}})}return m}var c;c=Symbol.for("react.module.reference");function y(s){return!!(typeof s=="string"||typeof s=="function"||s===Re||s===Q||Ke||s===d||s===I||s===H||Le||s===zt||pe||nt||oe||typeof s=="object"&&s!==null&&(s.$$typeof===Oe||s.$$typeof===K||s.$$typeof===he||s.$$typeof===te||s.$$typeof===bt||s.$$typeof===c||s.getModuleId!==void 0))}function S(s,m){y(s)||q("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var k={$$typeof:K,type:s,compare:m===void 0?null:m};{var N;Object.defineProperty(k,"displayName",{enumerable:!1,configurable:!0,get:function(){return N},set:function(X){N=X,!s.name&&!s.displayName&&(s.displayName=X)}})}return k}function A(){var s=_e.current;return s===null&&q(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
|
|
1. You might have mismatching versions of React and the renderer (such as React DOM)
|
|
2. You might be breaking the Rules of Hooks
|
|
3. You might have more than one copy of React in the same app
|
|
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),s}function ve(s){var m=A();if(s._context!==void 0){var k=s._context;k.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?"):k.Provider===s&&q("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(s)}function z(s){var m=A();return m.useState(s)}function ue(s,m,k){var N=A();return N.useReducer(s,m,k)}function ye(s){var m=A();return m.useRef(s)}function ze(s,m){var k=A();return k.useEffect(s,m)}function it(s,m){var k=A();return k.useInsertionEffect(s,m)}function Ft(s,m){var k=A();return k.useLayoutEffect(s,m)}function nn(s,m){var k=A();return k.useCallback(s,m)}function Zt(s,m){var k=A();return k.useMemo(s,m)}function Pn(s,m,k){var N=A();return N.useImperativeHandle(s,m,k)}function ft(s,m){{var k=A();return k.useDebugValue(s,m)}}function be(){var s=A();return s.useTransition()}function Rn(s){var m=A();return m.useDeferredValue(s)}function Ua(){var s=A();return s.useId()}function il(s,m,k){var N=A();return N.useSyncExternalStore(s,m,k)}var Ha=0,ha,ya,$r,yi,un,_t,za;function oa(){}oa.__reactDisabledLog=!0;function hr(){{if(Ha===0){ha=console.log,ya=console.info,$r=console.warn,yi=console.error,un=console.group,_t=console.groupCollapsed,za=console.groupEnd;var s={configurable:!0,enumerable:!0,value:oa,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Ha++}}function nr(){{if(Ha--,Ha===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:We({},s,{value:ha}),info:We({},s,{value:ya}),warn:We({},s,{value:$r}),error:We({},s,{value:yi}),group:We({},s,{value:un}),groupCollapsed:We({},s,{value:_t}),groupEnd:We({},s,{value:za})})}Ha<0&&q("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var gi=le.ReactCurrentDispatcher,Pr;function no(s,m,k){{if(Pr===void 0)try{throw Error()}catch(X){var N=X.stack.trim().match(/\n( *(at )?)/);Pr=N&&N[1]||""}return`
|
|
`+Pr+s}}var bi=!1,ao;{var ol=typeof WeakMap=="function"?WeakMap:Map;ao=new ol}function Yu(s,m){if(!s||bi)return"";{var k=ao.get(s);if(k!==void 0)return k}var N;bi=!0;var X=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ne;Ne=gi.current,gi.current=null,hr();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(dn){N=dn}Reflect.construct(s,[],Se)}else{try{Se.call()}catch(dn){N=dn}s.call(Se.prototype)}}else{try{throw Error()}catch(dn){N=dn}s()}}catch(dn){if(dn&&N&&typeof dn.stack=="string"){for(var Ie=dn.stack.split(`
|
|
`),dt=N.stack.split(`
|
|
`),At=Ie.length-1,Yt=dt.length-1;At>=1&&Yt>=0&&Ie[At]!==dt[Yt];)Yt--;for(;At>=1&&Yt>=0;At--,Yt--)if(Ie[At]!==dt[Yt]){if(At!==1||Yt!==1)do if(At--,Yt--,Yt<0||Ie[At]!==dt[Yt]){var Wt=`
|
|
`+Ie[At].replace(" at new "," at ");return s.displayName&&Wt.includes("<anonymous>")&&(Wt=Wt.replace("<anonymous>",s.displayName)),typeof s=="function"&&ao.set(s,Wt),Wt}while(At>=1&&Yt>=0);break}}}finally{bi=!1,gi.current=Ne,nr(),Error.prepareStackTrace=X}var lt=s?s.displayName||s.name:"",en=lt?no(lt):"";return typeof s=="function"&&ao.set(s,en),en}function ll(s,m,k){return Yu(s,!1)}function af(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function Si(s,m,k){if(s==null)return"";if(typeof s=="function")return Yu(s,af(s));if(typeof s=="string")return no(s);switch(s){case I:return no("Suspense");case H:return no("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case bt:return ll(s.render);case K:return Si(s.type,m,k);case Oe:{var N=s,X=N._payload,Ne=N._init;try{return Si(Ne(X),m,k)}catch{}}}return""}var Wu={},ul=le.ReactDebugCurrentFrame;function xt(s){if(s){var m=s._owner,k=Si(s.type,s._source,m?m.type:null);ul.setExtraStackFrame(k)}else ul.setExtraStackFrame(null)}function rf(s,m,k,N,X){{var Ne=Function.call.bind(yt);for(var Se in s)if(Ne(s,Se)){var Ie=void 0;try{if(typeof s[Se]!="function"){var dt=Error((N||"React class")+": "+k+" 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 dt.name="Invariant Violation",dt}Ie=s[Se](m,Se,N,k,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(At){Ie=At}Ie&&!(Ie instanceof Error)&&(xt(X),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).",N||"React class",k,Se,typeof Ie),xt(null)),Ie instanceof Error&&!(Ie.message in Wu)&&(Wu[Ie.message]=!0,xt(X),q("Failed %s type: %s",k,Ie.message),xt(null))}}}function yr(s){if(s){var m=s._owner,k=Si(s.type,s._source,m?m.type:null);Me(k)}else Me(null)}var Xe;Xe=!1;function sl(){if(ne.current){var s=Ge(ne.current.type);if(s)return`
|
|
|
|
Check the render method of \``+s+"`."}return""}function Qn(s){if(s!==void 0){var m=s.fileName.replace(/^.*[\\\/]/,""),k=s.lineNumber;return`
|
|
|
|
Check your code at `+m+":"+k+"."}return""}function Ti(s){return s!=null?Qn(s.__source):""}var Yr={};function of(s){var m=sl();if(!m){var k=typeof s=="string"?s:s.displayName||s.name;k&&(m=`
|
|
|
|
Check the top-level render call using <`+k+">.")}return m}function Dn(s,m){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var k=of(m);if(!Yr[k]){Yr[k]=!0;var N="";s&&s._owner&&s._owner!==ne.current&&(N=" It was passed a child from "+Ge(s._owner.type)+"."),yr(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.',k,N),yr(null)}}}function Jt(s,m){if(typeof s=="object"){if(F(s))for(var k=0;k<s.length;k++){var N=s[k];Xt(N)&&Dn(N,m)}else if(Xt(s))s._store&&(s._store.validated=!0);else if(s){var X=Pe(s);if(typeof X=="function"&&X!==s.entries)for(var Ne=X.call(s),Se;!(Se=Ne.next()).done;)Xt(Se.value)&&Dn(Se.value,m)}}}function Iu(s){{var m=s.type;if(m==null||typeof m=="string")return;var k;if(typeof m=="function")k=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===bt||m.$$typeof===K))k=m.propTypes;else return;if(k){var N=Ge(m);rf(k,s.props,"prop",N,s)}else if(m.PropTypes!==void 0&&!Xe){Xe=!0;var X=Ge(m);q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",X||"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 Ra(s){{for(var m=Object.keys(s.props),k=0;k<m.length;k++){var N=m[k];if(N!=="children"&&N!=="key"){yr(s),q("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",N),yr(null);break}}s.ref!==null&&(yr(s),q("Invalid attribute `ref` supplied to `React.Fragment`."),yr(null))}}function Kn(s,m,k){var N=y(s);if(!N){var X="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(X+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ne=Ti(m);Ne?X+=Ne:X+=sl();var Se;s===null?Se="null":F(s)?Se="array":s!==void 0&&s.$$typeof===Ee?(Se="<"+(Ge(s.type)||"Unknown")+" />",X=" 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,X)}var Ie=Je.apply(this,arguments);if(Ie==null)return Ie;if(N)for(var dt=2;dt<arguments.length;dt++)Jt(arguments[dt],s);return s===Re?Ra(Ie):Iu(Ie),Ie}var Fa=!1;function lf(s){var m=Kn.bind(null,s);return m.type=s,Fa||(Fa=!0,W("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 W("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),m}function cl(s,m,k){for(var N=Bt.apply(this,arguments),X=2;X<arguments.length;X++)Jt(arguments[X],N.type);return Iu(N),N}function qu(s,m){var k=ot.transition;ot.transition={};var N=ot.transition;ot.transition._updatedFibers=new Set;try{s()}finally{if(ot.transition=k,k===null&&N._updatedFibers){var X=N._updatedFibers.size;X>10&&W("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."),N._updatedFibers.clear()}}}var fl=!1,ro=null;function uf(s){if(ro===null)try{var m=("require"+Math.random()).slice(0,7),k=w&&w[m];ro=k.call(w,"timers").setImmediate}catch{ro=function(X){fl===!1&&(fl=!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=X,Ne.port2.postMessage(void 0)}}return ro(s)}var Wr=0,Ei=!1;function dl(s){{var m=Wr;Wr++,_.current===null&&(_.current=[]);var k=_.isBatchingLegacy,N;try{if(_.isBatchingLegacy=!0,N=s(),!k&&_.didScheduleLegacyUpdate){var X=_.current;X!==null&&(_.didScheduleLegacyUpdate=!1,lo(X))}}catch(lt){throw gr(m),lt}finally{_.isBatchingLegacy=k}if(N!==null&&typeof N=="object"&&typeof N.then=="function"){var Ne=N,Se=!1,Ie={then:function(lt,en){Se=!0,Ne.then(function(dn){gr(m),Wr===0?io(dn,lt,en):lt(dn)},function(dn){gr(m),en(dn)})}};return!Ei&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){Se||(Ei=!0,q("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Ie}else{var dt=N;if(gr(m),Wr===0){var At=_.current;At!==null&&(lo(At),_.current=null);var Yt={then:function(lt,en){_.current===null?(_.current=[],io(dt,lt,en)):lt(dt)}};return Yt}else{var Wt={then:function(lt,en){lt(dt)}};return Wt}}}}function gr(s){s!==Wr-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. "),Wr=s}function io(s,m,k){{var N=_.current;if(N!==null)try{lo(N),uf(function(){N.length===0?(_.current=null,m(s)):io(s,m,k)})}catch(X){k(X)}else m(s)}}var oo=!1;function lo(s){if(!oo){oo=!0;var m=0;try{for(;m<s.length;m++){var k=s[m];do k=k(!0);while(k!==null)}s.length=0}catch(N){throw s=s.slice(m+1),N}finally{oo=!1}}}var Gu=Kn,Xu=cl,vl=lf,Qu={map:tr,forEach:Vr,count:Fr,toArray:wa,only:ja};L.Children=Qu,L.Component=Ue,L.Fragment=Re,L.Profiler=Q,L.PureComponent=Qe,L.StrictMode=d,L.Suspense=I,L.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=le,L.act=dl,L.cloneElement=Xu,L.createContext=Br,L.createElement=Gu,L.createFactory=vl,L.createRef=rn,L.forwardRef=O,L.isValidElement=Xt,L.lazy=x,L.memo=S,L.startTransition=qu,L.unstable_act=dl,L.useCallback=nn,L.useContext=ve,L.useDebugValue=ft,L.useDeferredValue=Rn,L.useEffect=ze,L.useId=Ua,L.useImperativeHandle=Pn,L.useInsertionEffect=it,L.useLayoutEffect=Ft,L.useMemo=Zt,L.useReducer=ue,L.useRef=ye,L.useState=z,L.useSyncExternalStore=il,L.useTransition=be,L.version=me,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(al,al.exports)),al.exports}var pm;function Zc(){return pm||(pm=1,Kc.exports=z0()),Kc.exports}var rl={},mm;function F0(){if(mm)return rl;mm=1;/**
|
|
* @license React
|
|
* react-jsx-runtime.development.js
|
|
*
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*/return function(){var w=Zc(),L=Symbol.for("react.element"),me=Symbol.for("react.portal"),Ee=Symbol.for("react.fragment"),fe=Symbol.for("react.strict_mode"),Re=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),Q=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),bt=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),K=Symbol.for("react.offscreen"),Oe=Symbol.iterator,zt="@@iterator";function qt(c){if(c===null||typeof c!="object")return null;var y=Oe&&c[Oe]||c[zt];return typeof y=="function"?y:null}var St=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function Pe(c){{for(var y=arguments.length,S=new Array(y>1?y-1:0),A=1;A<y;A++)S[A-1]=arguments[A];_e("error",c,S)}}function _e(c,y,S){{var A=St.ReactDebugCurrentFrame,ve=A.getStackAddendum();ve!==""&&(y+="%s",S=S.concat([ve]));var z=S.map(function(ue){return String(ue)});z.unshift("Warning: "+y),Function.prototype.apply.call(console[c],console,z)}}var ot=!1,_=!1,ne=!1,De=!1,Vt=!1,Me;Me=Symbol.for("react.module.reference");function pe(c){return!!(typeof c=="string"||typeof c=="function"||c===Ee||c===Re||Vt||c===fe||c===te||c===bt||De||c===K||ot||_||ne||typeof c=="object"&&c!==null&&(c.$$typeof===H||c.$$typeof===I||c.$$typeof===d||c.$$typeof===Q||c.$$typeof===he||c.$$typeof===Me||c.getModuleId!==void 0))}function nt(c,y,S){var A=c.displayName;if(A)return A;var ve=y.displayName||y.name||"";return ve!==""?S+"("+ve+")":S}function oe(c){return c.displayName||"Context"}function Le(c){if(c==null)return null;if(typeof c.tag=="number"&&Pe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case Ee:return"Fragment";case me:return"Portal";case Re:return"Profiler";case fe:return"StrictMode";case te:return"Suspense";case bt:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case Q:var y=c;return oe(y)+".Consumer";case d:var S=c;return oe(S._context)+".Provider";case he:return nt(c,c.render,"ForwardRef");case I:var A=c.displayName||null;return A!==null?A:Le(c.type)||"Memo";case H:{var ve=c,z=ve._payload,ue=ve._init;try{return Le(ue(z))}catch{return null}}}return null}var Ke=Object.assign,le=0,W,q,Ye,Fe,at,ct,We;function Ve(){}Ve.__reactDisabledLog=!0;function Ue(){{if(le===0){W=console.log,q=console.info,Ye=console.warn,Fe=console.error,at=console.group,ct=console.groupCollapsed,We=console.groupEnd;var c={configurable:!0,enumerable:!0,value:Ve,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}le++}}function cn(){{if(le--,le===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ke({},c,{value:W}),info:Ke({},c,{value:q}),warn:Ke({},c,{value:Ye}),error:Ke({},c,{value:Fe}),group:Ke({},c,{value:at}),groupCollapsed:Ke({},c,{value:ct}),groupEnd:Ke({},c,{value:We})})}le<0&&Pe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var et=St.ReactCurrentDispatcher,Ht;function gt(c,y,S){{if(Ht===void 0)try{throw Error()}catch(ve){var A=ve.stack.trim().match(/\n( *(at )?)/);Ht=A&&A[1]||""}return`
|
|
`+Ht+c}}var Qe=!1,Gt;{var rn=typeof WeakMap=="function"?WeakMap:Map;Gt=new rn}function fn(c,y){if(!c||Qe)return"";{var S=Gt.get(c);if(S!==void 0)return S}var A;Qe=!0;var ve=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var z;z=et.current,et.current=null,Ue();try{if(y){var ue=function(){throw Error()};if(Object.defineProperty(ue.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ue,[])}catch(ft){A=ft}Reflect.construct(c,[],ue)}else{try{ue.call()}catch(ft){A=ft}c.call(ue.prototype)}}else{try{throw Error()}catch(ft){A=ft}c()}}catch(ft){if(ft&&A&&typeof ft.stack=="string"){for(var ye=ft.stack.split(`
|
|
`),ze=A.stack.split(`
|
|
`),it=ye.length-1,Ft=ze.length-1;it>=1&&Ft>=0&&ye[it]!==ze[Ft];)Ft--;for(;it>=1&&Ft>=0;it--,Ft--)if(ye[it]!==ze[Ft]){if(it!==1||Ft!==1)do if(it--,Ft--,Ft<0||ye[it]!==ze[Ft]){var nn=`
|
|
`+ye[it].replace(" at new "," at ");return c.displayName&&nn.includes("<anonymous>")&&(nn=nn.replace("<anonymous>",c.displayName)),typeof c=="function"&&Gt.set(c,nn),nn}while(it>=1&&Ft>=0);break}}}finally{Qe=!1,et.current=z,cn(),Error.prepareStackTrace=ve}var Zt=c?c.displayName||c.name:"",Pn=Zt?gt(Zt):"";return typeof c=="function"&&Gt.set(c,Pn),Pn}function F(c,y,S){return fn(c,!1)}function G(c){var y=c.prototype;return!!(y&&y.isReactComponent)}function Te(c,y,S){if(c==null)return"";if(typeof c=="function")return fn(c,G(c));if(typeof c=="string")return gt(c);switch(c){case te:return gt("Suspense");case bt:return gt("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case he:return F(c.render);case I:return Te(c.type,y,S);case H:{var A=c,ve=A._payload,z=A._init;try{return Te(z(ve),y,S)}catch{}}}return""}var Ce=Object.prototype.hasOwnProperty,Ze={},st=St.ReactDebugCurrentFrame;function ht(c){if(c){var y=c._owner,S=Te(c.type,c._source,y?y.type:null);st.setExtraStackFrame(S)}else st.setExtraStackFrame(null)}function Ge(c,y,S,A,ve){{var z=Function.call.bind(Ce);for(var ue in c)if(z(c,ue)){var ye=void 0;try{if(typeof c[ue]!="function"){var ze=Error((A||"React class")+": "+S+" type `"+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[ue]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ze.name="Invariant Violation",ze}ye=c[ue](y,ue,A,S,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(it){ye=it}ye&&!(ye instanceof Error)&&(ht(ve),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).",A||"React class",S,ue,typeof ye),ht(null)),ye instanceof Error&&!(ye.message in Ze)&&(Ze[ye.message]=!0,ht(ve),Pe("Failed %s type: %s",S,ye.message),ht(null))}}}var yt=Array.isArray;function rt(c){return yt(c)}function tn(c){{var y=typeof Symbol=="function"&&Symbol.toStringTag,S=y&&c[Symbol.toStringTag]||c.constructor.name||"Object";return S}}function mn(c){try{return Ot(c),!1}catch{return!0}}function Ot(c){return""+c}function Lt(c){if(mn(c))return Pe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",tn(c)),Ot(c)}var hn=St.ReactCurrentOwner,ia={key:!0,ref:!0,__self:!0,__source:!0},va,Z;function xe(c){if(Ce.call(c,"ref")){var y=Object.getOwnPropertyDescriptor(c,"ref").get;if(y&&y.isReactWarning)return!1}return c.ref!==void 0}function Je(c){if(Ce.call(c,"key")){var y=Object.getOwnPropertyDescriptor(c,"key").get;if(y&&y.isReactWarning)return!1}return c.key!==void 0}function Rt(c,y){typeof c.ref=="string"&&hn.current}function Bt(c,y){{var S=function(){va||(va=!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)",y))};S.isReactWarning=!0,Object.defineProperty(c,"key",{get:S,configurable:!0})}}function Xt(c,y){{var S=function(){Z||(Z=!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)",y))};S.isReactWarning=!0,Object.defineProperty(c,"ref",{get:S,configurable:!0})}}var Qt=function(c,y,S,A,ve,z,ue){var ye={$$typeof:L,type:c,key:y,ref:S,props:ue,_owner:z};return ye._store={},Object.defineProperty(ye._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(ye,"_self",{configurable:!1,enumerable:!1,writable:!1,value:A}),Object.defineProperty(ye,"_source",{configurable:!1,enumerable:!1,writable:!1,value:ve}),Object.freeze&&(Object.freeze(ye.props),Object.freeze(ye)),ye};function wn(c,y,S,A,ve){{var z,ue={},ye=null,ze=null;S!==void 0&&(Lt(S),ye=""+S),Je(y)&&(Lt(y.key),ye=""+y.key),xe(y)&&(ze=y.ref,Rt(y,ve));for(z in y)Ce.call(y,z)&&!ia.hasOwnProperty(z)&&(ue[z]=y[z]);if(c&&c.defaultProps){var it=c.defaultProps;for(z in it)ue[z]===void 0&&(ue[z]=it[z])}if(ye||ze){var Ft=typeof c=="function"?c.displayName||c.name||"Unknown":c;ye&&Bt(ue,Ft),ze&&Xt(ue,Ft)}return Qt(c,ye,ze,ve,A,hn.current,ue)}}var Pt=St.ReactCurrentOwner,Tt=St.ReactDebugCurrentFrame;function Dt(c){if(c){var y=c._owner,S=Te(c.type,c._source,y?y.type:null);Tt.setExtraStackFrame(S)}else Tt.setExtraStackFrame(null)}var er;er=!1;function $n(c){return typeof c=="object"&&c!==null&&c.$$typeof===L}function pa(){{if(Pt.current){var c=Le(Pt.current.type);if(c)return`
|
|
|
|
Check the render method of \``+c+"`."}return""}}function tr(c){return""}var Fr={};function Vr(c){{var y=pa();if(!y){var S=typeof c=="string"?c:c.displayName||c.name;S&&(y=`
|
|
|
|
Check the top-level render call using <`+S+">.")}return y}}function wa(c,y){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var S=Vr(y);if(Fr[S])return;Fr[S]=!0;var A="";c&&c._owner&&c._owner!==Pt.current&&(A=" It was passed a child from "+Le(c._owner.type)+"."),Dt(c),Pe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',S,A),Dt(null)}}function ja(c,y){{if(typeof c!="object")return;if(rt(c))for(var S=0;S<c.length;S++){var A=c[S];$n(A)&&wa(A,y)}else if($n(c))c._store&&(c._store.validated=!0);else if(c){var ve=qt(c);if(typeof ve=="function"&&ve!==c.entries)for(var z=ve.call(c),ue;!(ue=z.next()).done;)$n(ue.value)&&wa(ue.value,y)}}}function Br(c){{var y=c.type;if(y==null||typeof y=="string")return;var S;if(typeof y=="function")S=y.propTypes;else if(typeof y=="object"&&(y.$$typeof===he||y.$$typeof===I))S=y.propTypes;else return;if(S){var A=Le(y);Ge(S,c.props,"prop",A,c)}else if(y.PropTypes!==void 0&&!er){er=!0;var ve=Le(y);Pe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",ve||"Unknown")}typeof y.getDefaultProps=="function"&&!y.getDefaultProps.isReactClassApproved&&Pe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ma(c){{for(var y=Object.keys(c.props),S=0;S<y.length;S++){var A=y[S];if(A!=="children"&&A!=="key"){Dt(c),Pe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",A),Dt(null);break}}c.ref!==null&&(Dt(c),Pe("Invalid attribute `ref` supplied to `React.Fragment`."),Dt(null))}}var h={};function B(c,y,S,A,ve,z){{var ue=pe(c);if(!ue){var ye="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(ye+=" 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 ze=tr();ze?ye+=ze:ye+=pa();var it;c===null?it="null":rt(c)?it="array":c!==void 0&&c.$$typeof===L?(it="<"+(Le(c.type)||"Unknown")+" />",ye=" Did you accidentally export a JSX literal instead of a component?"):it=typeof c,Pe("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",it,ye)}var Ft=wn(c,y,S,ve,z);if(Ft==null)return Ft;if(ue){var nn=y.children;if(nn!==void 0)if(A)if(rt(nn)){for(var Zt=0;Zt<nn.length;Zt++)ja(nn[Zt],c);Object.freeze&&Object.freeze(nn)}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 ja(nn,c)}if(Ce.call(y,"key")){var Pn=Le(c),ft=Object.keys(y).filter(function(Ua){return Ua!=="key"}),be=ft.length>0?"{key: someKey, "+ft.join(": ..., ")+": ...}":"{key: someKey}";if(!h[Pn+be]){var Rn=ft.length>0?"{"+ft.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} />`,be,Pn,Rn,Pn),h[Pn+be]=!0}}return c===Ee?ma(Ft):Br(Ft),Ft}}function D(c,y,S){return B(c,y,S,!0)}function T(c,y,S){return B(c,y,S,!1)}var x=T,O=D;rl.Fragment=Ee,rl.jsx=x,rl.jsxs=O}(),rl}dm.exports=F0();var p=dm.exports,hm={exports:{}},Jc={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 L=!1,me=5;function Ee(Z,xe){var Je=Z.length;Z.push(xe),d(Z,xe,Je)}function fe(Z){return Z.length===0?null:Z[0]}function Re(Z){if(Z.length===0)return null;var xe=Z[0],Je=Z.pop();return Je!==xe&&(Z[0]=Je,Q(Z,Je,0)),xe}function d(Z,xe,Je){for(var Rt=Je;Rt>0;){var Bt=Rt-1>>>1,Xt=Z[Bt];if(he(Xt,xe)>0)Z[Bt]=xe,Z[Rt]=Xt,Rt=Bt;else return}}function Q(Z,xe,Je){for(var Rt=Je,Bt=Z.length,Xt=Bt>>>1;Rt<Xt;){var Qt=(Rt+1)*2-1,wn=Z[Qt],Pt=Qt+1,Tt=Z[Pt];if(he(wn,xe)<0)Pt<Bt&&he(Tt,wn)<0?(Z[Rt]=Tt,Z[Pt]=xe,Rt=Pt):(Z[Rt]=wn,Z[Qt]=xe,Rt=Qt);else if(Pt<Bt&&he(Tt,xe)<0)Z[Rt]=Tt,Z[Pt]=xe,Rt=Pt;else return}}function he(Z,xe){var Je=Z.sortIndex-xe.sortIndex;return Je!==0?Je:Z.id-xe.id}var te=1,bt=2,I=3,H=4,K=5;function Oe(Z,xe){}var zt=typeof performance=="object"&&typeof performance.now=="function";if(zt){var qt=performance;w.unstable_now=function(){return qt.now()}}else{var St=Date,Pe=St.now();w.unstable_now=function(){return St.now()-Pe}}var _e=1073741823,ot=-1,_=250,ne=5e3,De=1e4,Vt=_e,Me=[],pe=[],nt=1,oe=null,Le=I,Ke=!1,le=!1,W=!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(Z){for(var xe=fe(pe);xe!==null;){if(xe.callback===null)Re(pe);else if(xe.startTime<=Z)Re(pe),xe.sortIndex=xe.expirationTime,Ee(Me,xe);else return;xe=fe(pe)}}function ct(Z){if(W=!1,at(Z),!le)if(fe(Me)!==null)le=!0,Ot(We);else{var xe=fe(pe);xe!==null&&Lt(ct,xe.startTime-Z)}}function We(Z,xe){le=!1,W&&(W=!1,hn()),Ke=!0;var Je=Le;try{var Rt;if(!L)return Ve(Z,xe)}finally{oe=null,Le=Je,Ke=!1}}function Ve(Z,xe){var Je=xe;for(at(Je),oe=fe(Me);oe!==null&&!(oe.expirationTime>Je&&(!Z||st()));){var Rt=oe.callback;if(typeof Rt=="function"){oe.callback=null,Le=oe.priorityLevel;var Bt=oe.expirationTime<=Je,Xt=Rt(Bt);Je=w.unstable_now(),typeof Xt=="function"?oe.callback=Xt:oe===fe(Me)&&Re(Me),at(Je)}else Re(Me);oe=fe(Me)}if(oe!==null)return!0;var Qt=fe(pe);return Qt!==null&&Lt(ct,Qt.startTime-Je),!1}function Ue(Z,xe){switch(Z){case te:case bt:case I:case H:case K:break;default:Z=I}var Je=Le;Le=Z;try{return xe()}finally{Le=Je}}function cn(Z){var xe;switch(Le){case te:case bt:case I:xe=I;break;default:xe=Le;break}var Je=Le;Le=xe;try{return Z()}finally{Le=Je}}function et(Z){var xe=Le;return function(){var Je=Le;Le=xe;try{return Z.apply(this,arguments)}finally{Le=Je}}}function Ht(Z,xe,Je){var Rt=w.unstable_now(),Bt;if(typeof Je=="object"&&Je!==null){var Xt=Je.delay;typeof Xt=="number"&&Xt>0?Bt=Rt+Xt:Bt=Rt}else Bt=Rt;var Qt;switch(Z){case te:Qt=ot;break;case bt:Qt=_;break;case K:Qt=Vt;break;case H:Qt=De;break;case I:default:Qt=ne;break}var wn=Bt+Qt,Pt={id:nt++,callback:xe,priorityLevel:Z,startTime:Bt,expirationTime:wn,sortIndex:-1};return Bt>Rt?(Pt.sortIndex=Bt,Ee(pe,Pt),fe(Me)===null&&Pt===fe(pe)&&(W?hn():W=!0,Lt(ct,Bt-Rt))):(Pt.sortIndex=wn,Ee(Me,Pt),!le&&!Ke&&(le=!0,Ot(We))),Pt}function gt(){}function Qe(){!le&&!Ke&&(le=!0,Ot(We))}function Gt(){return fe(Me)}function rn(Z){Z.callback=null}function fn(){return Le}var F=!1,G=null,Te=-1,Ce=me,Ze=-1;function st(){var Z=w.unstable_now()-Ze;return!(Z<Ce)}function ht(){}function Ge(Z){if(Z<0||Z>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Z>0?Ce=Math.floor(1e3/Z):Ce=me}var yt=function(){if(G!==null){var Z=w.unstable_now();Ze=Z;var xe=!0,Je=!0;try{Je=G(xe,Z)}finally{Je?rt():(F=!1,G=null)}}else F=!1},rt;if(typeof Fe=="function")rt=function(){Fe(yt)};else if(typeof MessageChannel<"u"){var tn=new MessageChannel,mn=tn.port2;tn.port1.onmessage=yt,rt=function(){mn.postMessage(null)}}else rt=function(){q(yt,0)};function Ot(Z){G=Z,F||(F=!0,rt())}function Lt(Z,xe){Te=q(function(){Z(w.unstable_now())},xe)}function hn(){Ye(Te),Te=-1}var ia=ht,va=null;w.unstable_IdlePriority=K,w.unstable_ImmediatePriority=te,w.unstable_LowPriority=H,w.unstable_NormalPriority=I,w.unstable_Profiling=va,w.unstable_UserBlockingPriority=bt,w.unstable_cancelCallback=rn,w.unstable_continueExecution=Qe,w.unstable_forceFrameRate=Ge,w.unstable_getCurrentPriorityLevel=fn,w.unstable_getFirstCallbackNode=Gt,w.unstable_next=cn,w.unstable_pauseExecution=gt,w.unstable_requestPaint=ia,w.unstable_runWithPriority=Ue,w.unstable_scheduleCallback=Ht,w.unstable_shouldYield=st,w.unstable_wrapCallback=et,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,Jc.exports=V0()),Jc.exports}var ra={},bm;function $0(){if(bm)return ra;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=Zc(),L=B0(),me=w.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Ee=!1;function fe(e){Ee=e}function Re(e){if(!Ee){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];Q("warn",e,n)}}function d(e){if(!Ee){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];Q("error",e,n)}}function Q(e,t,n){{var a=me.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 he=0,te=1,bt=2,I=3,H=4,K=5,Oe=6,zt=7,qt=8,St=9,Pe=10,_e=11,ot=12,_=13,ne=14,De=15,Vt=16,Me=17,pe=18,nt=19,oe=21,Le=22,Ke=23,le=24,W=25,q=!0,Ye=!1,Fe=!1,at=!1,ct=!1,We=!0,Ve=!0,Ue=!0,cn=!0,et=new Set,Ht={},gt={};function Qe(e,t){Gt(e,t),Gt(e+"Capture",t)}function Gt(e,t){Ht[e]&&d("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ht[e]=t;{var n=e.toLowerCase();gt[n]=e,e==="onDoubleClick"&&(gt.ondblclick=e)}for(var a=0;a<t.length;a++)et.add(t[a])}var rn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",fn=Object.prototype.hasOwnProperty;function F(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function G(e){try{return Te(e),!1}catch{return!0}}function Te(e){return""+e}function Ce(e,t){if(G(e))return d("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,F(e)),Te(e)}function Ze(e){if(G(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",F(e)),Te(e)}function st(e,t){if(G(e))return d("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,F(e)),Te(e)}function ht(e,t){if(G(e))return d("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,F(e)),Te(e)}function Ge(e){if(G(e))return d("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",F(e)),Te(e)}function yt(e){if(G(e))return d("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",F(e)),Te(e)}var rt=0,tn=1,mn=2,Ot=3,Lt=4,hn=5,ia=6,va=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Z=va+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",xe=new RegExp("^["+va+"]["+Z+"]*$"),Je={},Rt={};function Bt(e){return fn.call(Rt,e)?!0:fn.call(Je,e)?!1:xe.test(e)?(Rt[e]=!0,!0):(Je[e]=!0,d("Invalid attribute name: `%s`",e),!1)}function Xt(e,t,n){return t!==null?t.type===rt:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Qt(e,t,n,a){if(n!==null&&n.type===rt)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 wn(e,t,n,a){if(t===null||typeof t>"u"||Qt(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case Ot:return!t;case Lt:return t===!1;case hn:return isNaN(t);case ia:return isNaN(t)||t<1}return!1}function Pt(e){return Dt.hasOwnProperty(e)?Dt[e]:null}function Tt(e,t,n,a,r,i,o){this.acceptsBooleans=t===mn||t===Ot||t===Lt,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Dt={},er=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];er.forEach(function(e){Dt[e]=new Tt(e,rt,!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];Dt[t]=new Tt(t,tn,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Dt[e]=new Tt(e,mn,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Dt[e]=new Tt(e,mn,!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){Dt[e]=new Tt(e,Ot,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Dt[e]=new Tt(e,Ot,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Dt[e]=new Tt(e,Lt,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Dt[e]=new Tt(e,ia,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Dt[e]=new Tt(e,hn,!1,e.toLowerCase(),null,!1,!1)});var $n=/[\-\:]([a-z])/g,pa=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($n,pa);Dt[t]=new Tt(t,tn,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace($n,pa);Dt[t]=new Tt(t,tn,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace($n,pa);Dt[t]=new Tt(t,tn,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Dt[e]=new Tt(e,tn,!1,e.toLowerCase(),null,!1,!1)});var tr="xlinkHref";Dt[tr]=new Tt("xlinkHref",tn,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Dt[e]=new Tt(e,tn,!1,e.toLowerCase(),null,!0,!0)});var Fr=/^[\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,Vr=!1;function wa(e){!Vr&&Fr.test(e)&&(Vr=!0,d("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function ja(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{Ce(n,t),a.sanitizeURL&&wa(""+n);var i=a.attributeName,o=null;if(a.type===Lt){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:wn(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(wn(t,n,a,!1))return e.getAttribute(i);if(a.type===Ot)return n;o=e.getAttribute(i)}return wn(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function Br(e,t,n,a){{if(!Bt(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return Ce(n,t),r===""+n?n:r}}function ma(e,t,n,a){var r=Pt(t);if(!Xt(t,r,a)){if(wn(t,n,r,a)&&(n=null),a||r===null){if(Bt(t)){var i=t;n===null?e.removeAttribute(i):(Ce(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===Ot?!1:""}else e[l]=n;return}var f=r.attributeName,v=r.attributeNamespace;if(n===null)e.removeAttribute(f);else{var b=r.type,g;b===Ot||b===Lt&&n===!0?g="":(Ce(n,f),g=""+n,r.sanitizeURL&&wa(g.toString())),v?e.setAttributeNS(v,f,g):e.setAttribute(f,g)}}}var h=Symbol.for("react.element"),B=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),T=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),O=Symbol.for("react.provider"),c=Symbol.for("react.context"),y=Symbol.for("react.forward_ref"),S=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),ve=Symbol.for("react.memo"),z=Symbol.for("react.lazy"),ue=Symbol.for("react.scope"),ye=Symbol.for("react.debug_trace_mode"),ze=Symbol.for("react.offscreen"),it=Symbol.for("react.legacy_hidden"),Ft=Symbol.for("react.cache"),nn=Symbol.for("react.tracing_marker"),Zt=Symbol.iterator,Pn="@@iterator";function ft(e){if(e===null||typeof e!="object")return null;var t=Zt&&e[Zt]||e[Pn];return typeof t=="function"?t:null}var be=Object.assign,Rn=0,Ua,il,Ha,ha,ya,$r,yi;function un(){}un.__reactDisabledLog=!0;function _t(){{if(Rn===0){Ua=console.log,il=console.info,Ha=console.warn,ha=console.error,ya=console.group,$r=console.groupCollapsed,yi=console.groupEnd;var e={configurable:!0,enumerable:!0,value:un,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}Rn++}}function za(){{if(Rn--,Rn===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:be({},e,{value:Ua}),info:be({},e,{value:il}),warn:be({},e,{value:Ha}),error:be({},e,{value:ha}),group:be({},e,{value:ya}),groupCollapsed:be({},e,{value:$r}),groupEnd:be({},e,{value:yi})})}Rn<0&&d("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var oa=me.ReactCurrentDispatcher,hr;function nr(e,t,n){{if(hr===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);hr=a&&a[1]||""}return`
|
|
`+hr+e}}var gi=!1,Pr;{var no=typeof WeakMap=="function"?WeakMap:Map;Pr=new no}function bi(e,t){if(!e||gi)return"";{var n=Pr.get(e);if(n!==void 0)return n}var a;gi=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=oa.current,oa.current=null,_t();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(M){a=M}Reflect.construct(e,[],o)}else{try{o.call()}catch(M){a=M}e.call(o.prototype)}}else{try{throw Error()}catch(M){a=M}e()}}catch(M){if(M&&a&&typeof M.stack=="string"){for(var l=M.stack.split(`
|
|
`),u=a.stack.split(`
|
|
`),f=l.length-1,v=u.length-1;f>=1&&v>=0&&l[f]!==u[v];)v--;for(;f>=1&&v>=0;f--,v--)if(l[f]!==u[v]){if(f!==1||v!==1)do if(f--,v--,v<0||l[f]!==u[v]){var b=`
|
|
`+l[f].replace(" at new "," at ");return e.displayName&&b.includes("<anonymous>")&&(b=b.replace("<anonymous>",e.displayName)),typeof e=="function"&&Pr.set(e,b),b}while(f>=1&&v>=0);break}}}finally{gi=!1,oa.current=i,za(),Error.prepareStackTrace=r}var g=e?e.displayName||e.name:"",R=g?nr(g):"";return typeof e=="function"&&Pr.set(e,R),R}function ao(e,t,n){return bi(e,!0)}function ol(e,t,n){return bi(e,!1)}function Yu(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ll(e,t,n){if(e==null)return"";if(typeof e=="function")return bi(e,Yu(e));if(typeof e=="string")return nr(e);switch(e){case S:return nr("Suspense");case A:return nr("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case y:return ol(e.render);case ve:return ll(e.type,t,n);case z:{var a=e,r=a._payload,i=a._init;try{return ll(i(r),t,n)}catch{}}}return""}function af(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case K:return nr(e.type);case Vt:return nr("Lazy");case _:return nr("Suspense");case nt:return nr("SuspenseList");case he:case bt:case De:return ol(e.type);case _e:return ol(e.type.render);case te:return ao(e.type);default:return""}}function Si(e){try{var t="",n=e;do t+=af(n),n=n.return;while(n);return t}catch(a){return`
|
|
Error generating stack: `+a.message+`
|
|
`+a.stack}}function Wu(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function ul(e){return e.displayName||"Context"}function xt(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case D:return"Fragment";case B:return"Portal";case x:return"Profiler";case T:return"StrictMode";case S:return"Suspense";case A:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var t=e;return ul(t)+".Consumer";case O:var n=e;return ul(n._context)+".Provider";case y:return Wu(e,e.render,"ForwardRef");case ve:var a=e.displayName||null;return a!==null?a:xt(e.type)||"Memo";case z:{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 yr(e){return e.displayName||"Context"}function Xe(e){var t=e.tag,n=e.type;switch(t){case le:return"Cache";case St:var a=n;return yr(a)+".Consumer";case Pe:var r=n;return yr(r._context)+".Provider";case pe:return"DehydratedFragment";case _e:return rf(n,n.render,"ForwardRef");case zt:return"Fragment";case K:return n;case H:return"Portal";case I:return"Root";case Oe:return"Text";case Vt:return xt(n);case qt:return n===T?"StrictMode":"Mode";case Le:return"Offscreen";case ot:return"Profiler";case oe:return"Scope";case _:return"Suspense";case nt:return"SuspenseList";case W:return"TracingMarker";case te:case he:case Me:case bt:case ne:case De:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var sl=me.ReactDebugCurrentFrame,Qn=null,Ti=!1;function Yr(){{if(Qn===null)return null;var e=Qn._debugOwner;if(e!==null&&typeof e<"u")return Xe(e)}return null}function of(){return Qn===null?"":Si(Qn)}function Dn(){sl.getCurrentStack=null,Qn=null,Ti=!1}function Jt(e){sl.getCurrentStack=e===null?null:of,Qn=e,Ti=!1}function Iu(){return Qn}function Ra(e){Ti=e}function Kn(e){return""+e}function Fa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return yt(e),e;default:return""}}var lf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function cl(e,t){lf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||d("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||d("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function qu(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fl(e){return e._valueTracker}function ro(e){e._valueTracker=null}function uf(e){var t="";return e&&(qu(e)?t=e.checked?"true":"false":t=e.value),t}function Wr(e){var t=qu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);yt(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){yt(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){yt(l),a=""+l},stopTracking:function(){ro(e),delete e[t]}};return o}}function Ei(e){fl(e)||(e._valueTracker=Wr(e))}function dl(e){if(!e)return!1;var t=fl(e);if(!t)return!0;var n=t.getValue(),a=uf(e);return a!==n?(t.setValue(a),!0):!1}function gr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var io=!1,oo=!1,lo=!1,Gu=!1;function Xu(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function vl(e,t){var n=e,a=t.checked,r=be({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked});return r}function Qu(e,t){cl("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!oo&&(d("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Yr()||"A component",t.type),oo=!0),t.value!==void 0&&t.defaultValue!==void 0&&!io&&(d("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Yr()||"A component",t.type),io=!0);var n=e,a=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:Fa(t.value!=null?t.value:a),controlled:Xu(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&ma(n,"checked",a,!1)}function m(e,t){var n=e;{var a=Xu(t);!n._wrapperState.controlled&&a&&!Gu&&(d("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Gu=!0),n._wrapperState.controlled&&!a&&!lo&&(d("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),lo=!0)}s(e,t);var r=Fa(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=Kn(r)):n.value!==Kn(r)&&(n.value=Kn(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,Fa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function k(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=Kn(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 N(e,t){var n=e;m(n,t),X(n,t)}function X(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var a=e;a.parentNode;)a=a.parentNode;Ce(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.");dl(o),m(o,l)}}}}function Ne(e,t,n){(t!=="number"||gr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=Kn(e._wrapperState.initialValue):e.defaultValue!==Kn(n)&&(e.defaultValue=Kn(n)))}var Se=!1,Ie=!1,dt=!1;function At(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"||Ie||(Ie=!0,d("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):t.dangerouslySetInnerHTML!=null&&(dt||(dt=!0,d("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!Se&&(d("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Se=!0)}function Yt(e,t){t.value!=null&&e.setAttribute("value",Kn(Fa(t.value)))}var Wt=Array.isArray;function lt(e){return Wt(e)}var en;en=!1;function dn(){var e=Yr();return e?`
|
|
|
|
Check the render method of \``+e+"`.":""}var Ci=["value","defaultValue"];function pl(e){{cl("select",e);for(var t=0;t<Ci.length;t++){var n=Ci[t];if(e[n]!=null){var a=lt(e[n]);e.multiple&&!a?d("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,dn()):!e.multiple&&a&&d("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,dn())}}}}function br(e,t,n,a){var r=e.options;if(t){for(var i=n,o={},l=0;l<i.length;l++)o["$"+i[l]]=!0;for(var u=0;u<r.length;u++){var f=o.hasOwnProperty("$"+r[u].value);r[u].selected!==f&&(r[u].selected=f),f&&a&&(r[u].defaultSelected=!0)}}else{for(var v=Kn(Fa(n)),b=null,g=0;g<r.length;g++){if(r[g].value===v){r[g].selected=!0,a&&(r[g].defaultSelected=!0);return}b===null&&!r[g].disabled&&(b=r[g])}b!==null&&(b.selected=!0)}}function ml(e,t){return be({},t,{value:void 0})}function hl(e,t){var n=e;pl(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!en&&(d("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),en=!0)}function sf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?br(n,!!t.multiple,a,!1):t.defaultValue!=null&&br(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?br(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?br(n,!!t.multiple,t.defaultValue,!0):br(n,!!t.multiple,t.multiple?[]:"",!1))}function cf(e,t){var n=e,a=t.value;a!=null&&br(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=be({},t,{value:void 0,defaultValue:void 0,children:Kn(n._wrapperState.initialValue)});return a}function Lm(e,t){var n=e;cl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!Mm&&(d("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Yr()||"A component"),Mm=!0);var a=t.value;if(a==null){var r=t.children,i=t.defaultValue;if(r!=null){d("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(i!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(lt(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:Fa(a)}}function Om(e,t){var n=e,a=Fa(t.value),r=Fa(t.defaultValue);if(a!=null){var i=Kn(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=Kn(r))}function Am(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function aS(e,t){Om(e,t)}var Sr="http://www.w3.org/1999/xhtml",rS="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 rS;default:return Sr}}function pf(e,t){return e==null||e===Sr?vf(t):e===df&&t==="foreignObject"?Sr:e}var iS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},Zu,Nm=iS(function(e,t){if(e.namespaceURI===df&&!("innerHTML"in e)){Zu=Zu||document.createElement("div"),Zu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Zu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),la=1,Tr=3,vn=8,Er=9,mf=11,Ju=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Tr){n.nodeValue=t;return}}e.textContent=t},oS={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"]},yl={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 lS(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var uS=["Webkit","ms","Moz","O"];Object.keys(yl).forEach(function(e){uS.forEach(function(t){yl[lS(t,e)]=yl[e]})});function hf(e,t,n){var a=t==null||typeof t=="boolean"||t==="";return a?"":!n&&typeof t=="number"&&t!==0&&!(yl.hasOwnProperty(e)&&yl[e])?t+"px":(ht(t,e),(""+t).trim())}var sS=/([A-Z])/g,cS=/^ms-/;function fS(e){return e.replace(sS,"-$1").toLowerCase().replace(cS,"-ms-")}var jm=function(){};{var dS=/^(?:webkit|moz|o)[A-Z]/,vS=/^-ms-/,pS=/-(.)/g,Um=/;\s*$/,uo={},yf={},Hm=!1,zm=!1,mS=function(e){return e.replace(pS,function(t,n){return n.toUpperCase()})},hS=function(e){uo.hasOwnProperty(e)&&uo[e]||(uo[e]=!0,d("Unsupported style property %s. Did you mean %s?",e,mS(e.replace(vS,"ms-"))))},yS=function(e){uo.hasOwnProperty(e)&&uo[e]||(uo[e]=!0,d("Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},gS=function(e,t){yf.hasOwnProperty(t)&&yf[t]||(yf[t]=!0,d(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,e,t.replace(Um,"")))},bS=function(e,t){Hm||(Hm=!0,d("`NaN` is an invalid value for the `%s` css style property.",e))},SS=function(e,t){zm||(zm=!0,d("`Infinity` is an invalid value for the `%s` css style property.",e))};jm=function(e,t){e.indexOf("-")>-1?hS(e):dS.test(e)?yS(e):Um.test(t)&&gS(e,t),typeof t=="number"&&(isNaN(t)?bS(e,t):isFinite(t)||SS(e,t))}}var TS=jm;function ES(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:fS(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||TS(a,t[a]);var i=hf(a,t[a],r);a==="float"&&(a="cssFloat"),r?n.setProperty(a,i):n[a]=i}}function CS(e){return e==null||typeof e=="boolean"||e===""}function Vm(e){var t={};for(var n in e)for(var a=oS[n]||[n],r=0;r<a.length;r++)t[a[r]]=n;return t}function xS(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,d("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",CS(e[o])?"Removing":"Updating",o,l)}}}}var wS={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},RS=be({menuitem:!0},wS),DS="__html";function gf(e,t){if(t){if(RS[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"||!(DS in t.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!t.suppressContentEditableWarning&&t.contentEditable&&t.children!=null&&d("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),t.style!=null&&typeof t.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function xi(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},so={},_S=new RegExp("^(aria)-["+Z+"]*$"),kS=new RegExp("^(aria)[A-Z]["+Z+"]*$");function MS(e,t){{if(fn.call(so,t)&&so[t])return!0;if(kS.test(t)){var n="aria-"+t.slice(4).toLowerCase(),a=Bm.hasOwnProperty(n)?n:null;if(a==null)return d("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),so[t]=!0,!0;if(t!==a)return d("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,a),so[t]=!0,!0}if(_S.test(t)){var r=t.toLowerCase(),i=Bm.hasOwnProperty(r)?r:null;if(i==null)return so[t]=!0,!1;if(t!==i)return d("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,i),so[t]=!0,!0}}return!0}function LS(e,t){{var n=[];for(var a in t){var r=MS(e,a);r||n.push(a)}var i=n.map(function(o){return"`"+o+"`"}).join(", ");n.length===1?d("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e):n.length>1&&d("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",i,e)}}function OS(e,t){xi(e,t)||LS(e,t)}var $m=!1;function AS(e,t){{if(e!=="input"&&e!=="textarea"&&e!=="select")return;t!=null&&t.value===null&&!$m&&($m=!0,e==="select"&&t.multiple?d("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):d("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e))}}var Pm=function(){};{var Zn={},Ym=/^on./,NS=/^on[^A-Z]/,jS=new RegExp("^(aria)-["+Z+"]*$"),US=new RegExp("^(aria)[A-Z]["+Z+"]*$");Pm=function(e,t,n,a){if(fn.call(Zn,t)&&Zn[t])return!0;var r=t.toLowerCase();if(r==="onfocusin"||r==="onfocusout")return d("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Zn[t]=!0,!0;if(a!=null){var i=a.registrationNameDependencies,o=a.possibleRegistrationNames;if(i.hasOwnProperty(t))return!0;var l=o.hasOwnProperty(r)?o[r]:null;if(l!=null)return d("Invalid event handler property `%s`. Did you mean `%s`?",t,l),Zn[t]=!0,!0;if(Ym.test(t))return d("Unknown event handler property `%s`. It will be ignored.",t),Zn[t]=!0,!0}else if(Ym.test(t))return NS.test(t)&&d("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Zn[t]=!0,!0;if(jS.test(t)||US.test(t))return!0;if(r==="innerhtml")return d("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Zn[t]=!0,!0;if(r==="aria")return d("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Zn[t]=!0,!0;if(r==="is"&&n!==null&&n!==void 0&&typeof n!="string")return d("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Zn[t]=!0,!0;if(typeof n=="number"&&isNaN(n))return d("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Zn[t]=!0,!0;var u=Pt(t),f=u!==null&&u.type===rt;if(es.hasOwnProperty(r)){var v=es[r];if(v!==t)return d("Invalid DOM property `%s`. Did you mean `%s`?",t,v),Zn[t]=!0,!0}else if(!f&&t!==r)return d("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,r),Zn[t]=!0,!0;return typeof n=="boolean"&&Qt(t,n,u,!1)?(n?d('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):d('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',n,t,t,n,t,t,t),Zn[t]=!0,!0):f?!0:Qt(t,n,u,!1)?(Zn[t]=!0,!1):((n==="false"||n==="true")&&u!==null&&u.type===Ot&&(d("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,n),Zn[t]=!0),!0)}}var HS=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?d("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",o,e):a.length>1&&d("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",o,e)}};function zS(e,t,n){xi(e,t)||HS(e,t,n)}var Wm=1,bf=2,gl=4,FS=Wm|bf|gl,bl=null;function VS(e){bl!==null&&d("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),bl=e}function BS(){bl===null&&d("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),bl=null}function $S(e){return e===bl}function Sf(e){var t=e.target||e.srcElement||window;return t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===Tr?t.parentNode:t}var Tf=null,co=null,fo=null;function Im(e){var t=ei(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 PS(e){Tf=e}function qm(e){co?fo?fo.push(e):fo=[e]:co=e}function YS(){return co!==null||fo!==null}function Gm(){if(co){var e=co,t=fo;if(co=null,fo=null,Im(e),t)for(var n=0;n<t.length;n++)Im(t[n])}}var Xm=function(e,t){return e(t)},Qm=function(){},Ef=!1;function WS(){var e=YS();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 IS(e,t,n){Xm=e,Qm=n}function qS(e){return e==="button"||e==="input"||e==="select"||e==="textarea"}function GS(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&&qS(t));default:return!1}}function Sl(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(GS(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(rn)try{var Tl={};Object.defineProperty(Tl,"passive",{get:function(){Cf=!0}}),window.addEventListener("test",Tl,Tl),window.removeEventListener("test",Tl,Tl)}catch{Cf=!1}function Zm(e,t,n,a,r,i,o,l,u){var f=Array.prototype.slice.call(arguments,3);try{t.apply(n,f)}catch(v){this.onError(v)}}var Jm=Zm;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var xf=document.createElement("react");Jm=function(t,n,a,r,i,o,l,u,f){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var v=document.createEvent("Event"),b=!1,g=!0,R=window.event,M=Object.getOwnPropertyDescriptor(window,"event");function j(){xf.removeEventListener(U,ke,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=R)}var ae=Array.prototype.slice.call(arguments,3);function ke(){b=!0,j(),n.apply(a,ae),g=!1}var we,mt=!1,ut=!1;function E(C){if(we=C.error,mt=!0,we===null&&C.colno===0&&C.lineno===0&&(ut=!0),C.defaultPrevented&&we!=null&&typeof we=="object")try{we._suppressLogging=!0}catch{}}var U="react-"+(t||"invokeguardedcallback");if(window.addEventListener("error",E),xf.addEventListener(U,ke,!1),v.initEvent(U,!1,!1),xf.dispatchEvent(v),M&&Object.defineProperty(window,"event",M),b&&g&&(mt?ut&&(we=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.")):we=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(we)),window.removeEventListener("error",E),!b)return j(),Zm.apply(this,arguments)}}var XS=Jm,vo=!1,ts=null,ns=!1,wf=null,QS={onError:function(e){vo=!0,ts=e}};function Rf(e,t,n,a,r,i,o,l,u){vo=!1,ts=null,XS.apply(QS,arguments)}function KS(e,t,n,a,r,i,o,l,u){if(Rf.apply(this,arguments),vo){var f=Df();ns||(ns=!0,wf=f)}}function ZS(){if(ns){var e=wf;throw ns=!1,wf=null,e}}function JS(){return vo}function Df(){if(vo){var e=ts;return vo=!1,ts=null,e}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function po(e){return e._reactInternals}function eT(e){return e._reactInternals!==void 0}function tT(e,t){e._reactInternals=t}var je=0,mo=1,_n=2,wt=4,wi=16,as=32,eh=64,kt=128,Ri=256,Di=512,ho=1024,Ir=2048,_i=4096,ki=8192,_f=16384,nT=32767,rs=32768,Va=65536,kf=131072,th=1048576,Mf=2097152,Mi=4194304,Lf=8388608,qr=16777216,Of=33554432,Af=wt|ho|0,Nf=_n|wt|wi|as|Di|_i|ki,El=wt|eh|Di|ki,yo=Ir|wi,Cr=Mi|Lf|Mf,aT=me.ReactCurrentOwner;function Li(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|_i))!==je&&(n=t.return),a=t.return;while(a)}return t.tag===I?n:null}function nh(e){if(e.tag===_){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===I?e.stateNode.containerInfo:null}function rT(e){return Li(e)===e}function iT(e){{var t=aT.current;if(t!==null&&t.tag===te){var n=t,a=n.stateNode;a._warnedAboutRefsInRender||d("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Xe(n)||"A component"),a._warnedAboutRefsInRender=!0}}var r=po(e);return r?Li(r)===r:!1}function rh(e){if(Li(e)!==e)throw new Error("Unable to find node on an unmounted component.")}function ih(e){var t=e.alternate;if(!t){var n=Li(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 f=!1,v=i.child;v;){if(v===a){f=!0,a=i,r=o;break}if(v===r){f=!0,r=i,a=o;break}v=v.sibling}if(!f){for(v=o.child;v;){if(v===a){f=!0,a=o,r=i;break}if(v===r){f=!0,r=o,a=i;break}v=v.sibling}if(!f)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==r)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==I)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===K||e.tag===Oe)return e;for(var t=e.child;t!==null;){var n=lh(t);if(n!==null)return n;t=t.sibling}return null}function oT(e){var t=ih(e);return t!==null?uh(t):null}function uh(e){if(e.tag===K||e.tag===Oe)return e;for(var t=e.child;t!==null;){if(t.tag!==H){var n=uh(t);if(n!==null)return n}t=t.sibling}return null}var sh=L.unstable_scheduleCallback,lT=L.unstable_cancelCallback,uT=L.unstable_shouldYield,sT=L.unstable_requestPaint,kn=L.unstable_now,cT=L.unstable_getCurrentPriorityLevel,is=L.unstable_ImmediatePriority,jf=L.unstable_UserBlockingPriority,Oi=L.unstable_NormalPriority,fT=L.unstable_LowPriority,Uf=L.unstable_IdlePriority,dT=L.unstable_yieldValue,vT=L.unstable_setDisableYieldValue,go=null,Yn=null,se=null,ar=!1,Ba=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function pT(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return d("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{Ve&&(e=be({},e,{getLaneLabelMap:ST,injectProfilingHooks:bT})),go=t.inject(e),Yn=t}catch(n){d("React instrumentation encountered an error: %s.",n)}return!!t.checkDCE}function mT(e,t){if(Yn&&typeof Yn.onScheduleFiberRoot=="function")try{Yn.onScheduleFiberRoot(go,e,t)}catch(n){ar||(ar=!0,d("React instrumentation encountered an error: %s",n))}}function hT(e,t){if(Yn&&typeof Yn.onCommitFiberRoot=="function")try{var n=(e.current.flags&kt)===kt;if(Ue){var a;switch(t){case ba:a=is;break;case wr:a=jf;break;case Rr:a=Oi;break;case ds:a=Uf;break;default:a=Oi;break}Yn.onCommitFiberRoot(go,e,a,n)}}catch(r){ar||(ar=!0,d("React instrumentation encountered an error: %s",r))}}function yT(e){if(Yn&&typeof Yn.onPostCommitFiberRoot=="function")try{Yn.onPostCommitFiberRoot(go,e)}catch(t){ar||(ar=!0,d("React instrumentation encountered an error: %s",t))}}function gT(e){if(Yn&&typeof Yn.onCommitFiberUnmount=="function")try{Yn.onCommitFiberUnmount(go,e)}catch(t){ar||(ar=!0,d("React instrumentation encountered an error: %s",t))}}function Mn(e){if(typeof dT=="function"&&(vT(e),fe(e)),Yn&&typeof Yn.setStrictMode=="function")try{Yn.setStrictMode(go,e)}catch(t){ar||(ar=!0,d("React instrumentation encountered an error: %s",t))}}function bT(e){se=e}function ST(){{for(var e=new Map,t=1,n=0;n<zf;n++){var a=VT(t);e.set(t,a),t*=2}return e}}function TT(e){se!==null&&typeof se.markCommitStarted=="function"&&se.markCommitStarted(e)}function ch(){se!==null&&typeof se.markCommitStopped=="function"&&se.markCommitStopped()}function Cl(e){se!==null&&typeof se.markComponentRenderStarted=="function"&&se.markComponentRenderStarted(e)}function bo(){se!==null&&typeof se.markComponentRenderStopped=="function"&&se.markComponentRenderStopped()}function ET(e){se!==null&&typeof se.markComponentPassiveEffectMountStarted=="function"&&se.markComponentPassiveEffectMountStarted(e)}function CT(){se!==null&&typeof se.markComponentPassiveEffectMountStopped=="function"&&se.markComponentPassiveEffectMountStopped()}function xT(e){se!==null&&typeof se.markComponentPassiveEffectUnmountStarted=="function"&&se.markComponentPassiveEffectUnmountStarted(e)}function wT(){se!==null&&typeof se.markComponentPassiveEffectUnmountStopped=="function"&&se.markComponentPassiveEffectUnmountStopped()}function RT(e){se!==null&&typeof se.markComponentLayoutEffectMountStarted=="function"&&se.markComponentLayoutEffectMountStarted(e)}function DT(){se!==null&&typeof se.markComponentLayoutEffectMountStopped=="function"&&se.markComponentLayoutEffectMountStopped()}function fh(e){se!==null&&typeof se.markComponentLayoutEffectUnmountStarted=="function"&&se.markComponentLayoutEffectUnmountStarted(e)}function dh(){se!==null&&typeof se.markComponentLayoutEffectUnmountStopped=="function"&&se.markComponentLayoutEffectUnmountStopped()}function _T(e,t,n){se!==null&&typeof se.markComponentErrored=="function"&&se.markComponentErrored(e,t,n)}function kT(e,t,n){se!==null&&typeof se.markComponentSuspended=="function"&&se.markComponentSuspended(e,t,n)}function MT(e){se!==null&&typeof se.markLayoutEffectsStarted=="function"&&se.markLayoutEffectsStarted(e)}function LT(){se!==null&&typeof se.markLayoutEffectsStopped=="function"&&se.markLayoutEffectsStopped()}function OT(e){se!==null&&typeof se.markPassiveEffectsStarted=="function"&&se.markPassiveEffectsStarted(e)}function AT(){se!==null&&typeof se.markPassiveEffectsStopped=="function"&&se.markPassiveEffectsStopped()}function vh(e){se!==null&&typeof se.markRenderStarted=="function"&&se.markRenderStarted(e)}function NT(){se!==null&&typeof se.markRenderYielded=="function"&&se.markRenderYielded()}function ph(){se!==null&&typeof se.markRenderStopped=="function"&&se.markRenderStopped()}function jT(e){se!==null&&typeof se.markRenderScheduled=="function"&&se.markRenderScheduled(e)}function UT(e,t){se!==null&&typeof se.markForceUpdateScheduled=="function"&&se.markForceUpdateScheduled(e,t)}function Hf(e,t){se!==null&&typeof se.markStateUpdateScheduled=="function"&&se.markStateUpdateScheduled(e,t)}var Ae=0,vt=1,Nt=2,on=8,rr=16,mh=Math.clz32?Math.clz32:FT,HT=Math.log,zT=Math.LN2;function FT(e){var t=e>>>0;return t===0?32:31-(HT(t)/zT|0)|0}var zf=31,P=0,Ln=0,Be=1,So=2,xr=4,Ai=8,ir=16,xl=32,To=4194240,wl=64,Ff=128,Vf=256,Bf=512,$f=1024,Pf=2048,Yf=4096,Wf=8192,If=16384,qf=32768,Gf=65536,Xf=131072,Qf=262144,Kf=524288,Zf=1048576,Jf=2097152,os=130023424,Eo=4194304,ed=8388608,td=16777216,nd=33554432,ad=67108864,hh=Eo,Rl=134217728,yh=268435455,Dl=268435456,Ni=536870912,Da=1073741824;function VT(e){{if(e&Be)return"Sync";if(e&So)return"InputContinuousHydration";if(e&xr)return"InputContinuous";if(e&Ai)return"DefaultHydration";if(e&ir)return"Default";if(e&xl)return"TransitionHydration";if(e&To)return"Transition";if(e&os)return"Retry";if(e&Rl)return"SelectiveHydration";if(e&Dl)return"IdleHydration";if(e&Ni)return"Idle";if(e&Da)return"Offscreen"}}var It=-1,ls=wl,us=Eo;function _l(e){switch(ji(e)){case Be:return Be;case So:return So;case xr:return xr;case Ai:return Ai;case ir:return ir;case xl:return xl;case wl:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case Wf:case If:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:return e&To;case Eo:case ed:case td:case nd:case ad:return e&os;case Rl:return Rl;case Dl:return Dl;case Ni:return Ni;case Da:return Da;default:return d("Should have found matching lanes. This is a bug in React."),e}}function ss(e,t){var n=e.pendingLanes;if(n===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=_l(l);else{var u=o&i;u!==P&&(a=_l(u))}}else{var f=n&~r;f!==P?a=_l(f):i!==P&&(a=_l(i))}if(a===P)return P;if(t!==P&&t!==a&&(t&r)===P){var v=ji(a),b=ji(t);if(v>=b||v===ir&&(b&To)!==P)return t}(a&xr)!==P&&(a|=n&ir);var g=e.entangledLanes;if(g!==P)for(var R=e.entanglements,M=a&g;M>0;){var j=Ui(M),ae=1<<j;a|=R[j],M&=~ae}return a}function BT(e,t){for(var n=e.eventTimes,a=It;t>0;){var r=Ui(t),i=1<<r,o=n[r];o>a&&(a=o),t&=~i}return a}function $T(e,t){switch(e){case Be:case So:case xr:return t+250;case Ai:case ir:case xl:case wl:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case Wf:case If:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:return t+5e3;case Eo:case ed:case td:case nd:case ad:return It;case Rl:case Dl:case Ni:case Da:return It;default:return d("Should have found matching lanes. This is a bug in React."),It}}function PT(e,t){for(var n=e.pendingLanes,a=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=n;o>0;){var l=Ui(o),u=1<<l,f=i[l];f===It?((u&a)===P||(u&r)!==P)&&(i[l]=$T(u,t)):f<=t&&(e.expiredLanes|=u),o&=~u}}function YT(e){return _l(e.pendingLanes)}function rd(e){var t=e.pendingLanes&-1073741825;return t!==P?t:t&Da?Da:P}function WT(e){return(e&Be)!==P}function id(e){return(e&yh)!==P}function gh(e){return(e&os)===e}function IT(e){var t=Be|xr|ir;return(e&t)===P}function qT(e){return(e&To)===e}function cs(e,t){var n=So|xr|Ai|ir;return(t&n)!==P}function GT(e,t){return(t&e.expiredLanes)!==P}function bh(e){return(e&To)!==P}function Sh(){var e=ls;return ls<<=1,(ls&To)===P&&(ls=wl),e}function XT(){var e=us;return us<<=1,(us&os)===P&&(us=Eo),e}function ji(e){return e&-e}function kl(e){return ji(e)}function Ui(e){return 31-mh(e)}function od(e){return Ui(e)}function ga(e,t){return(e&t)!==P}function Co(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 h_(e){return e}function QT(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 Ml(e,t,n){e.pendingLanes|=t,t!==Ni&&(e.suspendedLanes=P,e.pingedLanes=P);var a=e.eventTimes,r=od(t);a[r]=n}function KT(e,t){e.suspendedLanes|=t,e.pingedLanes&=~t;for(var n=e.expirationTimes,a=t;a>0;){var r=Ui(a),i=1<<r;n[r]=It,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=Ui(o),u=1<<l;a[l]=P,r[l]=It,i[l]=It,o&=~u}}function ud(e,t){for(var n=e.entangledLanes|=t,a=e.entanglements,r=n;r;){var i=Ui(r),o=1<<i;o&t|a[i]&t&&(a[i]|=t),r&=~o}}function JT(e,t){var n=ji(t),a;switch(n){case xr:a=So;break;case ir:a=Ai;break;case wl:case Ff:case Vf:case Bf:case $f:case Pf:case Yf:case Wf:case If:case qf:case Gf:case Xf:case Qf:case Kf:case Zf:case Jf:case Eo:case ed:case td:case nd:case ad:a=xl;break;case Ni:a=Dl;break;default:a=Ln;break}return(a&(e.suspendedLanes|t))!==Ln?Ln:a}function Ch(e,t,n){if(Ba)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(Ba)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 ba=Be,wr=xr,Rr=ir,ds=Ni,Ll=Ln;function $a(){return Ll}function On(e){Ll=e}function eE(e,t){var n=Ll;try{return Ll=e,t()}finally{Ll=n}}function tE(e,t){return e!==0&&e<t?e:t}function nE(e,t){return e>t?e:t}function sd(e,t){return e!==0&&e<t}function Rh(e){var t=ji(e);return sd(ba,t)?sd(wr,t)?id(t)?Rr:ds:wr:ba}function vs(e){var t=e.current.memoizedState;return t.isDehydrated}var Dh;function aE(e){Dh=e}function rE(e){Dh(e)}var cd;function iE(e){cd=e}var _h;function oE(e){_h=e}var kh;function lE(e){kh=e}var Mh;function uE(e){Mh=e}var fd=!1,ps=[],Gr=null,Xr=null,Qr=null,Ol=new Map,Al=new Map,Kr=[],sE=["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 cE(e){return sE.indexOf(e)>-1}function fE(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":Gr=null;break;case"dragenter":case"dragleave":Xr=null;break;case"mouseover":case"mouseout":Qr=null;break;case"pointerover":case"pointerout":{var n=t.pointerId;Ol.delete(n);break}case"gotpointercapture":case"lostpointercapture":{var a=t.pointerId;Al.delete(a);break}}}function Nl(e,t,n,a,r,i){if(e===null||e.nativeEvent!==i){var o=fE(t,n,a,r,i);if(t!==null){var l=ei(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 dE(e,t,n,a,r){switch(t){case"focusin":{var i=r;return Gr=Nl(Gr,e,t,n,a,i),!0}case"dragenter":{var o=r;return Xr=Nl(Xr,e,t,n,a,o),!0}case"mouseover":{var l=r;return Qr=Nl(Qr,e,t,n,a,l),!0}case"pointerover":{var u=r,f=u.pointerId;return Ol.set(f,Nl(Ol.get(f)||null,e,t,n,a,u)),!0}case"gotpointercapture":{var v=r,b=v.pointerId;return Al.set(b,Nl(Al.get(b)||null,e,t,n,a,v)),!0}}return!1}function Oh(e){var t=Fi(e.target);if(t!==null){var n=Li(t);if(n!==null){var a=n.tag;if(a===_){var r=nh(n);if(r!==null){e.blockedOn=r,Mh(e.priority,function(){_h(n)});return}}else if(a===I){var i=n.stateNode;if(vs(i)){e.blockedOn=ah(n);return}}}}e.blockedOn=null}function vE(e){for(var t=kh(),n={blockedOn:null,target:e,priority:t},a=0;a<Kr.length&&sd(t,Kr[a].priority);a++);Kr.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);VS(i),r.target.dispatchEvent(i),BS()}else{var o=ei(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 pE(){fd=!1,Gr!==null&&ms(Gr)&&(Gr=null),Xr!==null&&ms(Xr)&&(Xr=null),Qr!==null&&ms(Qr)&&(Qr=null),Ol.forEach(Ah),Al.forEach(Ah)}function jl(e,t){e.blockedOn===t&&(e.blockedOn=null,fd||(fd=!0,L.unstable_scheduleCallback(L.unstable_NormalPriority,pE)))}function Ul(e){if(ps.length>0){jl(ps[0],e);for(var t=1;t<ps.length;t++){var n=ps[t];n.blockedOn===e&&(n.blockedOn=null)}}Gr!==null&&jl(Gr,e),Xr!==null&&jl(Xr,e),Qr!==null&&jl(Qr,e);var a=function(l){return jl(l,e)};Ol.forEach(a),Al.forEach(a);for(var r=0;r<Kr.length;r++){var i=Kr[r];i.blockedOn===e&&(i.blockedOn=null)}for(;Kr.length>0;){var o=Kr[0];if(o.blockedOn!==null)break;Oh(o),o.blockedOn===null&&Kr.shift()}}var xo=me.ReactCurrentBatchConfig,dd=!0;function Nh(e){dd=!!e}function mE(){return dd}function hE(e,t,n){var a=jh(t),r;switch(a){case ba:r=yE;break;case wr:r=gE;break;case Rr:default:r=vd;break}return r.bind(null,t,n,e)}function yE(e,t,n,a){var r=$a(),i=xo.transition;xo.transition=null;try{On(ba),vd(e,t,n,a)}finally{On(r),xo.transition=i}}function gE(e,t,n,a){var r=$a(),i=xo.transition;xo.transition=null;try{On(wr),vd(e,t,n,a)}finally{On(r),xo.transition=i}}function vd(e,t,n,a){dd&&bE(e,t,n,a)}function bE(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(dE(r,e,t,n,a)){a.stopPropagation();return}if(Lh(e,a),t&gl&&cE(e)){for(;r!==null;){var i=ei(r);i!==null&&rE(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=Fi(r);if(i!==null){var o=Li(i);if(o===null)i=null;else{var l=o.tag;if(l===_){var u=nh(o);if(u!==null)return u;i=null}else if(l===I){var f=o.stateNode;if(vs(f))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 ba;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 wr;case"message":{var t=cT();switch(t){case is:return ba;case jf:return wr;case Oi:case fT:return Rr;case Uf:return ds;default:return Rr}}default:return Rr}}function SE(e,t,n){return e.addEventListener(t,n,!1),n}function TE(e,t,n){return e.addEventListener(t,n,!0),n}function EE(e,t,n,a){return e.addEventListener(t,n,{capture:!0,passive:a}),n}function CE(e,t,n,a){return e.addEventListener(t,n,{passive:a}),n}var Hl=null,md=null,zl=null;function xE(e){return Hl=e,md=Hh(),!0}function wE(){Hl=null,md=null,zl=null}function Uh(){if(zl)return zl;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 zl=r.slice(e,l),zl}function Hh(){return"value"in Hl?Hl.value:Hl.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 Sa(e){function t(n,a,r,i,o){this._reactName=n,this._targetInst=r,this.type=a,this.nativeEvent=i,this.target=o,this.currentTarget=null;for(var l in e)if(e.hasOwnProperty(l)){var u=e[l];u?this[l]=u(i):this[l]=i[l]}var f=i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1;return f?this.isDefaultPrevented=gs:this.isDefaultPrevented=zh,this.isPropagationStopped=zh,this}return be(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 wo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hd=Sa(wo),Fl=be({},wo,{view:0,detail:0}),RE=Sa(Fl),yd,gd,Vl;function DE(e){e!==Vl&&(Vl&&e.type==="mousemove"?(yd=e.screenX-Vl.screenX,gd=e.screenY-Vl.screenY):(yd=0,gd=0),Vl=e)}var bs=be({},Fl,{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:(DE(e),yd)},movementY:function(e){return"movementY"in e?e.movementY:gd}}),Fh=Sa(bs),_E=be({},bs,{dataTransfer:0}),kE=Sa(_E),ME=be({},Fl,{relatedTarget:0}),bd=Sa(ME),LE=be({},wo,{animationName:0,elapsedTime:0,pseudoElement:0}),OE=Sa(LE),AE=be({},wo,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),NE=Sa(AE),jE=be({},wo,{data:0}),Vh=Sa(jE),UE=Vh,HE={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},zE={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 FE(e){if(e.key){var t=HE[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"?zE[e.keyCode]||"Unidentified":""}var VE={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function BE(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var a=VE[e];return a?!!n[a]:!1}function Sd(e){return BE}var $E=be({},Fl,{key:FE,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}}),PE=Sa($E),YE=be({},bs,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Bh=Sa(YE),WE=be({},Fl,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Sd}),IE=Sa(WE),qE=be({},wo,{propertyName:0,elapsedTime:0,pseudoElement:0}),GE=Sa(qE),XE=be({},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}),QE=Sa(XE),KE=[9,13,27,32],$h=229,Td=rn&&"CompositionEvent"in window,Bl=null;rn&&"documentMode"in document&&(Bl=document.documentMode);var ZE=rn&&"TextEvent"in window&&!Bl,Ph=rn&&(!Td||Bl&&Bl>8&&Bl<=11),Yh=32,Wh=String.fromCharCode(Yh);function JE(){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 Ih=!1;function eC(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function tC(e){switch(e){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function nC(e,t){return e==="keydown"&&t.keyCode===$h}function qh(e,t){switch(e){case"keyup":return KE.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 Ro=!1;function aC(e,t,n,a,r){var i,o;if(Td?i=tC(t):Ro?qh(t,a)&&(i="onCompositionEnd"):nC(t,a)&&(i="onCompositionStart"),!i)return null;Ph&&!Xh(a)&&(!Ro&&i==="onCompositionStart"?Ro=xE(r):i==="onCompositionEnd"&&Ro&&(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 f=Gh(a);f!==null&&(u.data=f)}}}function rC(e,t){switch(e){case"compositionend":return Gh(t);case"keypress":var n=t.which;return n!==Yh?null:(Ih=!0,Wh);case"textInput":var a=t.data;return a===Wh&&Ih?null:a;default:return null}}function iC(e,t){if(Ro){if(e==="compositionend"||!Td&&qh(e,t)){var n=Uh();return wE(),Ro=!1,n}return null}switch(e){case"paste":return null;case"keypress":if(!eC(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 oC(e,t,n,a,r){var i;if(ZE?i=rC(t,a):i=iC(t,a),!i)return null;var o=xs(n,"onBeforeInput");if(o.length>0){var l=new UE("onBeforeInput","beforeinput",null,a,r);e.push({event:l,listeners:o}),l.data=i}}function lC(e,t,n,a,r,i,o){aC(e,t,n,a,r),oC(e,t,n,a,r)}var uC={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"?!!uC[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 sC(e){if(!rn)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 cC(){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 $l=null,Pl=null;function fC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function dC(e){var t=[];Kh(t,Pl,e,Sf(e)),Km(vC,t)}function vC(e){my(e,0)}function Ss(e){var t=Oo(e);if(dl(t))return e}function pC(e,t){if(e==="change")return t}var Zh=!1;rn&&(Zh=sC("input")&&(!document.documentMode||document.documentMode>9));function mC(e,t){$l=e,Pl=t,$l.attachEvent("onpropertychange",ey)}function Jh(){$l&&($l.detachEvent("onpropertychange",ey),$l=null,Pl=null)}function ey(e){e.propertyName==="value"&&Ss(Pl)&&dC(e)}function hC(e,t,n){e==="focusin"?(Jh(),mC(t,n)):e==="focusout"&&Jh()}function yC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ss(Pl)}function gC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function bC(e,t){if(e==="click")return Ss(t)}function SC(e,t){if(e==="input"||e==="change")return Ss(t)}function TC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Ne(e,"number",e.value)}function EC(e,t,n,a,r,i,o){var l=n?Oo(n):window,u,f;if(fC(l)?u=pC:Qh(l)?Zh?u=SC:(u=yC,f=hC):gC(l)&&(u=bC),u){var v=u(t,n);if(v){Kh(e,v,a,r);return}}f&&f(t,l,n),t==="focusout"&&TC(l)}function CC(){Gt("onMouseEnter",["mouseout","mouseover"]),Gt("onMouseLeave",["mouseout","mouseover"]),Gt("onPointerEnter",["pointerout","pointerover"]),Gt("onPointerLeave",["pointerout","pointerover"])}function xC(e,t,n,a,r,i,o){var l=t==="mouseover"||t==="pointerover",u=t==="mouseout"||t==="pointerout";if(l&&!$S(a)){var f=a.relatedTarget||a.fromElement;if(f&&(Fi(f)||ru(f)))return}if(!(!u&&!l)){var v;if(r.window===r)v=r;else{var b=r.ownerDocument;b?v=b.defaultView||b.parentWindow:v=window}var g,R;if(u){var M=a.relatedTarget||a.toElement;if(g=n,R=M?Fi(M):null,R!==null){var j=Li(R);(R!==j||R.tag!==K&&R.tag!==Oe)&&(R=null)}}else g=null,R=n;if(g!==R){var ae=Fh,ke="onMouseLeave",we="onMouseEnter",mt="mouse";(t==="pointerout"||t==="pointerover")&&(ae=Bh,ke="onPointerLeave",we="onPointerEnter",mt="pointer");var ut=g==null?v:Oo(g),E=R==null?v:Oo(R),U=new ae(ke,mt+"leave",g,a,r);U.target=ut,U.relatedTarget=E;var C=null,Y=Fi(r);if(Y===n){var de=new ae(we,mt+"enter",R,a,r);de.target=E,de.relatedTarget=ut,C=de}GC(e,U,C,g,R)}}}function wC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ta=typeof Object.is=="function"?Object.is:wC;function Yl(e,t){if(Ta(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(!fn.call(t,i)||!Ta(e[i],t[i]))return!1}return!0}function ty(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function RC(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===Tr){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=ty(RC(n))}}function DC(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 _C(e,r,i,o,l)}function _C(e,t,n,a,r){var i=0,o=-1,l=-1,u=0,f=0,v=e,b=null;e:for(;;){for(var g=null;v===t&&(n===0||v.nodeType===Tr)&&(o=i+n),v===a&&(r===0||v.nodeType===Tr)&&(l=i+r),v.nodeType===Tr&&(i+=v.nodeValue.length),(g=v.firstChild)!==null;)b=v,v=g;for(;;){if(v===e)break e;if(b===t&&++u===n&&(o=i),b===a&&++f===r&&(l=i),(g=v.nextSibling)!==null)break;v=b,b=v.parentNode}v=g}return o===-1||l===-1?null:{start:o,end:l}}function kC(e,t){var n=e.ownerDocument||document,a=n&&n.defaultView||window;if(a.getSelection){var r=a.getSelection(),i=e.textContent.length,o=Math.min(t.start,i),l=t.end===void 0?o:Math.min(t.end,i);if(!r.extend&&o>l){var u=l;l=o,o=u}var f=ny(e,o),v=ny(e,l);if(f&&v){if(r.rangeCount===1&&r.anchorNode===f.node&&r.anchorOffset===f.offset&&r.focusNode===v.node&&r.focusOffset===v.offset)return;var b=n.createRange();b.setStart(f.node,f.offset),r.removeAllRanges(),o>l?(r.addRange(b),r.extend(v.node,v.offset)):(b.setEnd(v.node,v.offset),r.addRange(b))}}}function ay(e){return e&&e.nodeType===Tr}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 MC(e){return e&&e.ownerDocument&&ry(e.ownerDocument.documentElement,e)}function LC(e){try{return typeof e.contentWindow.location.href=="string"}catch{return!1}}function iy(){for(var e=window,t=gr();t instanceof e.HTMLIFrameElement;){if(LC(t))e=t.contentWindow;else return t;t=gr(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 OC(){var e=iy();return{focusedElem:e,selectionRange:Ed(e)?NC(e):null}}function AC(e){var t=iy(),n=e.focusedElem,a=e.selectionRange;if(t!==n&&MC(n)){a!==null&&Ed(n)&&jC(n,a);for(var r=[],i=n;i=i.parentNode;)i.nodeType===la&&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 NC(e){var t;return"selectionStart"in e?t={start:e.selectionStart,end:e.selectionEnd}:t=DC(e),t||{start:0,end:0}}function jC(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)):kC(e,t)}var UC=rn&&"documentMode"in document&&document.documentMode<=11;function HC(){Qe("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var Do=null,Cd=null,Wl=null,xd=!1;function zC(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 FC(e){return e.window===e?e.document:e.nodeType===Er?e:e.ownerDocument}function oy(e,t,n){var a=FC(n);if(!(xd||Do==null||Do!==gr(a))){var r=zC(Do);if(!Wl||!Yl(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=Do}}}}function VC(e,t,n,a,r,i,o){var l=n?Oo(n):window;switch(t){case"focusin":(Qh(l)||l.contentEditable==="true")&&(Do=l,Cd=n,Wl=null);break;case"focusout":Do=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(UC)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 _o={animationend:Ts("Animation","AnimationEnd"),animationiteration:Ts("Animation","AnimationIteration"),animationstart:Ts("Animation","AnimationStart"),transitionend:Ts("Transition","TransitionEnd")},wd={},ly={};rn&&(ly=document.createElement("div").style,"AnimationEvent"in window||(delete _o.animationend.animation,delete _o.animationiteration.animation,delete _o.animationstart.animation),"TransitionEvent"in window||delete _o.transitionend.transition);function Es(e){if(wd[e])return wd[e];if(!_o[e])return e;var t=_o[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 Zr(e,t){dy.set(e,t),Qe(t,[e])}function BC(){for(var e=0;e<vy.length;e++){var t=vy[e],n=t.toLowerCase(),a=t[0].toUpperCase()+t.slice(1);Zr(n,"on"+a)}Zr(uy,"onAnimationEnd"),Zr(sy,"onAnimationIteration"),Zr(cy,"onAnimationStart"),Zr("dblclick","onDoubleClick"),Zr("focusin","onFocus"),Zr("focusout","onBlur"),Zr(fy,"onTransitionEnd")}function $C(e,t,n,a,r,i,o){var l=dy.get(t);if(l!==void 0){var u=hd,f=t;switch(t){case"keypress":if(ys(a)===0)return;case"keydown":case"keyup":u=PE;break;case"focusin":f="focus",u=bd;break;case"focusout":f="blur",u=bd;break;case"beforeblur":case"afterblur":u=bd;break;case"click":if(a.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=Fh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=kE;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=IE;break;case uy:case sy:case cy:u=OE;break;case fy:u=GE;break;case"scroll":u=RE;break;case"wheel":u=QE;break;case"copy":case"cut":case"paste":u=NE;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Bh;break}var v=(i&gl)!==0;{var b=!v&&t==="scroll",g=IC(n,l,a.type,v,b);if(g.length>0){var R=new u(l,f,null,a,r);e.push({event:R,listeners:g})}}}}BC(),CC(),cC(),HC(),JE();function PC(e,t,n,a,r,i,o){$C(e,t,n,a,r,i);var l=(i&FS)===0;l&&(xC(e,t,n,a,r),EC(e,t,n,a,r),VC(e,t,n,a,r),lC(e,t,n,a,r))}var Il=["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(Il));function py(e,t,n){var a=e.type||"unknown-event";e.currentTarget=n,KS(a,t,void 0,e),e.currentTarget=null}function YC(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 f=0;f<t.length;f++){var v=t[f],b=v.instance,g=v.currentTarget,R=v.listener;if(b!==a&&e.isPropagationStopped())return;py(e,R,g),a=b}}function my(e,t){for(var n=(t&gl)!==0,a=0;a<e.length;a++){var r=e[a],i=r.event,o=r.listeners;YC(i,o,n)}ZS()}function WC(e,t,n,a,r){var i=Sf(n),o=[];PC(o,e,a,n,i,t),my(o,t)}function Kt(e,t){Rd.has(e)||d('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var n=!1,a=T1(t),r=XC(e);a.has(r)||(hy(t,e,bf,n),a.add(r))}function Dd(e,t,n){Rd.has(e)&&!t&&d('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var a=0;t&&(a|=gl),hy(n,e,a,t)}var Cs="_reactListening"+Math.random().toString(36).slice(2);function ql(e){if(!e[Cs]){e[Cs]=!0,et.forEach(function(n){n!=="selectionchange"&&(Rd.has(n)||Dd(n,!1,e),Dd(n,!0,e))});var t=e.nodeType===Er?e:e.ownerDocument;t!==null&&(t[Cs]||(t[Cs]=!0,Dd("selectionchange",!1,t)))}}function hy(e,t,n,a,r){var i=hE(e,t,n),o=void 0;Cf&&(t==="touchstart"||t==="touchmove"||t==="wheel")&&(o=!0),e=e,a?o!==void 0?EE(e,t,i,o):TE(e,t,i):o!==void 0?CE(e,t,i,o):SE(e,t,i)}function yy(e,t){return e===t||e.nodeType===vn&&e.parentNode===t}function _d(e,t,n,a,r){var i=a;if(!(t&Wm)&&!(t&bf)){var o=r;if(a!==null){var l=a;e:for(;;){if(l===null)return;var u=l.tag;if(u===I||u===H){var f=l.stateNode.containerInfo;if(yy(f,o))break;if(u===H)for(var v=l.return;v!==null;){var b=v.tag;if(b===I||b===H){var g=v.stateNode.containerInfo;if(yy(g,o))return}v=v.return}for(;f!==null;){var R=Fi(f);if(R===null)return;var M=R.tag;if(M===K||M===Oe){l=i=R;continue e}f=f.parentNode}}l=l.return}}}Km(function(){return WC(e,t,n,i)})}function Gl(e,t,n){return{instance:e,listener:t,currentTarget:n}}function IC(e,t,n,a,r,i){for(var o=t!==null?t+"Capture":null,l=a?o:t,u=[],f=e,v=null;f!==null;){var b=f,g=b.stateNode,R=b.tag;if(R===K&&g!==null&&(v=g,l!==null)){var M=Sl(f,l);M!=null&&u.push(Gl(f,M,v))}if(r)break;f=f.return}return u}function xs(e,t){for(var n=t+"Capture",a=[],r=e;r!==null;){var i=r,o=i.stateNode,l=i.tag;if(l===K&&o!==null){var u=o,f=Sl(r,n);f!=null&&a.unshift(Gl(r,f,u));var v=Sl(r,t);v!=null&&a.push(Gl(r,v,u))}r=r.return}return a}function ko(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==K);return e||null}function qC(e,t){for(var n=e,a=t,r=0,i=n;i;i=ko(i))r++;for(var o=0,l=a;l;l=ko(l))o++;for(;r-o>0;)n=ko(n),r--;for(;o-r>0;)a=ko(a),o--;for(var u=r;u--;){if(n===a||a!==null&&n===a.alternate)return n;n=ko(n),a=ko(a)}return null}function gy(e,t,n,a,r){for(var i=t._reactName,o=[],l=n;l!==null&&l!==a;){var u=l,f=u.alternate,v=u.stateNode,b=u.tag;if(f!==null&&f===a)break;if(b===K&&v!==null){var g=v;if(r){var R=Sl(l,i);R!=null&&o.unshift(Gl(l,R,g))}else if(!r){var M=Sl(l,i);M!=null&&o.push(Gl(l,M,g))}}l=l.return}o.length!==0&&e.push({event:t,listeners:o})}function GC(e,t,n,a,r){var i=a&&r?qC(a,r):null;a!==null&&gy(e,t,a,i,!1),r!==null&&n!==null&&gy(e,n,r,i,!0)}function XC(e,t){return e+"__bubble"}var ua=!1,Xl="dangerouslySetInnerHTML",ws="suppressContentEditableWarning",Jr="suppressHydrationWarning",by="autoFocus",Hi="children",zi="style",Rs="__html",kd,Ds,Ql,Sy,_s,Ty,Ey;kd={dialog:!0,webview:!0},Ds=function(e,t){OS(e,t),AS(e,t),zS(e,t,{registrationNameDependencies:Ht,possibleRegistrationNames:gt})},Ty=rn&&!document.documentMode,Ql=function(e,t,n){if(!ua){var a=ks(n),r=ks(t);r!==a&&(ua=!0,d("Prop `%s` did not match. Server: %s Client: %s",e,JSON.stringify(r),JSON.stringify(a)))}},Sy=function(e){if(!ua){ua=!0;var t=[];e.forEach(function(n){t.push(n)}),d("Extra attributes from the server: %s",t)}},_s=function(e,t){t===!1?d("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):d("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)},Ey=function(e,t){var n=e.namespaceURI===Sr?e.ownerDocument.createElement(e.tagName):e.ownerDocument.createElementNS(e.namespaceURI,e.tagName);return n.innerHTML=t,n.innerHTML};var QC=/\r\n?/g,KC=/\u0000|\uFFFD/g;function ks(e){Ge(e);var t=typeof e=="string"?e:""+e;return t.replace(QC,`
|
|
`).replace(KC,"")}function Ms(e,t,n,a){var r=ks(t),i=ks(e);if(i!==r&&(a&&(ua||(ua=!0,d('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&q))throw new Error("Text content does not match server-rendered HTML.")}function Cy(e){return e.nodeType===Er?e:e.ownerDocument}function ZC(){}function Ls(e){e.onclick=ZC}function JC(e,t,n,a,r){for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(i===zi)o&&Object.freeze(o),Fm(t,o);else if(i===Xl){var l=o?o[Rs]:void 0;l!=null&&Nm(t,l)}else if(i===Hi)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&Ju(t,o)}else typeof o=="number"&&Ju(t,""+o);else i===ws||i===Jr||i===by||(Ht.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&_s(i,o),i==="onScroll"&&Kt("scroll",t)):o!=null&&ma(t,i,o,r))}}function ex(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===zi?Fm(e,o):i===Xl?Nm(e,o):i===Hi?Ju(e,o):ma(e,i,o,a)}}function tx(e,t,n,a){var r,i=Cy(n),o,l=a;if(l===Sr&&(l=vf(e)),l===Sr){if(r=xi(e,t),!r&&e!==e.toLowerCase()&&d("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var u=i.createElement("div");u.innerHTML="<script><\/script>";var f=u.firstChild;o=u.removeChild(f)}else if(typeof t.is=="string")o=i.createElement(e,{is:t.is});else if(o=i.createElement(e),e==="select"){var v=o;t.multiple?v.multiple=!0:t.size&&(v.size=t.size)}}else o=i.createElementNS(l,e);return l===Sr&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!fn.call(kd,e)&&(kd[e]=!0,d("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),o}function nx(e,t){return Cy(t).createTextNode(e)}function ax(e,t,n,a){var r=xi(t,n);Ds(t,n);var i;switch(t){case"dialog":Kt("cancel",e),Kt("close",e),i=n;break;case"iframe":case"object":case"embed":Kt("load",e),i=n;break;case"video":case"audio":for(var o=0;o<Il.length;o++)Kt(Il[o],e);i=n;break;case"source":Kt("error",e),i=n;break;case"img":case"image":case"link":Kt("error",e),Kt("load",e),i=n;break;case"details":Kt("toggle",e),i=n;break;case"input":Qu(e,n),i=vl(e,n),Kt("invalid",e);break;case"option":At(e,n),i=n;break;case"select":hl(e,n),i=ml(e,n),Kt("invalid",e);break;case"textarea":Lm(e,n),i=ff(e,n),Kt("invalid",e);break;default:i=n}switch(gf(t,i),JC(t,e,a,i,r),t){case"input":Ei(e),k(e,n,!1);break;case"textarea":Ei(e),Am(e);break;case"option":Yt(e,n);break;case"select":sf(e,n);break;default:typeof i.onClick=="function"&&Ls(e);break}}function rx(e,t,n,a,r){Ds(t,a);var i=null,o,l;switch(t){case"input":o=vl(e,n),l=vl(e,a),i=[];break;case"select":o=ml(e,n),l=ml(e,a),i=[];break;case"textarea":o=ff(e,n),l=ff(e,a),i=[];break;default:o=n,l=a,typeof o.onClick!="function"&&typeof l.onClick=="function"&&Ls(e);break}gf(t,l);var u,f,v=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===zi){var b=o[u];for(f in b)b.hasOwnProperty(f)&&(v||(v={}),v[f]="")}else u===Xl||u===Hi||u===ws||u===Jr||u===by||(Ht.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var g=l[u],R=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||g===R||g==null&&R==null))if(u===zi)if(g&&Object.freeze(g),R){for(f in R)R.hasOwnProperty(f)&&(!g||!g.hasOwnProperty(f))&&(v||(v={}),v[f]="");for(f in g)g.hasOwnProperty(f)&&R[f]!==g[f]&&(v||(v={}),v[f]=g[f])}else v||(i||(i=[]),i.push(u,v)),v=g;else if(u===Xl){var M=g?g[Rs]:void 0,j=R?R[Rs]:void 0;M!=null&&j!==M&&(i=i||[]).push(u,M)}else u===Hi?(typeof g=="string"||typeof g=="number")&&(i=i||[]).push(u,""+g):u===ws||u===Jr||(Ht.hasOwnProperty(u)?(g!=null&&(typeof g!="function"&&_s(u,g),u==="onScroll"&&Kt("scroll",e)),!i&&R!==g&&(i=[])):(i=i||[]).push(u,g))}return v&&(xS(v,l[zi]),(i=i||[]).push(zi,v)),i}function ix(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=xi(n,a),o=xi(n,r);switch(ex(e,t,i,o),n){case"input":m(e,r);break;case"textarea":Om(e,r);break;case"select":Ku(e,r);break}}function ox(e){{var t=e.toLowerCase();return es.hasOwnProperty(t)&&es[t]||null}}function lx(e,t,n,a,r,i,o){var l,u;switch(l=xi(t,n),Ds(t,n),t){case"dialog":Kt("cancel",e),Kt("close",e);break;case"iframe":case"object":case"embed":Kt("load",e);break;case"video":case"audio":for(var f=0;f<Il.length;f++)Kt(Il[f],e);break;case"source":Kt("error",e);break;case"img":case"image":case"link":Kt("error",e),Kt("load",e);break;case"details":Kt("toggle",e);break;case"input":Qu(e,n),Kt("invalid",e);break;case"option":At(e,n);break;case"select":hl(e,n),Kt("invalid",e);break;case"textarea":Lm(e,n),Kt("invalid",e);break}gf(t,n);{u=new Set;for(var v=e.attributes,b=0;b<v.length;b++){var g=v[b].name.toLowerCase();switch(g){case"value":break;case"checked":break;case"selected":break;default:u.add(v[b].name)}}}var R=null;for(var M in n)if(n.hasOwnProperty(M)){var j=n[M];if(M===Hi)typeof j=="string"?e.textContent!==j&&(n[Jr]!==!0&&Ms(e.textContent,j,i,o),R=[Hi,j]):typeof j=="number"&&e.textContent!==""+j&&(n[Jr]!==!0&&Ms(e.textContent,j,i,o),R=[Hi,""+j]);else if(Ht.hasOwnProperty(M))j!=null&&(typeof j!="function"&&_s(M,j),M==="onScroll"&&Kt("scroll",e));else if(o&&typeof l=="boolean"){var ae=void 0,ke=Pt(M);if(n[Jr]!==!0){if(!(M===ws||M===Jr||M==="value"||M==="checked"||M==="selected")){if(M===Xl){var we=e.innerHTML,mt=j?j[Rs]:void 0;if(mt!=null){var ut=Ey(e,mt);ut!==we&&Ql(M,we,ut)}}else if(M===zi){if(u.delete(M),Ty){var E=ES(j);ae=e.getAttribute("style"),E!==ae&&Ql(M,ae,E)}}else if(l)u.delete(M.toLowerCase()),ae=Br(e,M,j),j!==ae&&Ql(M,ae,j);else if(!Xt(M,ke,l)&&!wn(M,j,ke,l)){var U=!1;if(ke!==null)u.delete(ke.attributeName),ae=ja(e,M,j,ke);else{var C=a;if(C===Sr&&(C=vf(t)),C===Sr)u.delete(M.toLowerCase());else{var Y=ox(M);Y!==null&&Y!==M&&(U=!0,u.delete(Y)),u.delete(M)}ae=Br(e,M,j)}var de=ct;!de&&j!==ae&&!U&&Ql(M,ae,j)}}}}}switch(o&&u.size>0&&n[Jr]!==!0&&Sy(u),t){case"input":Ei(e),k(e,n,!0);break;case"textarea":Ei(e),Am(e);break;case"select":case"option":break;default:typeof n.onClick=="function"&&Ls(e);break}return R}function ux(e,t,n){var a=e.nodeValue!==t;return a}function Md(e,t){{if(ua)return;ua=!0,d("Did not expect server HTML to contain a <%s> in <%s>.",t.nodeName.toLowerCase(),e.nodeName.toLowerCase())}}function Ld(e,t){{if(ua)return;ua=!0,d('Did not expect server HTML to contain the text node "%s" in <%s>.',t.nodeValue,e.nodeName.toLowerCase())}}function Od(e,t,n){{if(ua)return;ua=!0,d("Expected server HTML to contain a matching <%s> in <%s>.",t,e.nodeName.toLowerCase())}}function Ad(e,t){{if(t===""||ua)return;ua=!0,d('Expected server HTML to contain a matching text node for "%s" in <%s>.',t,e.nodeName.toLowerCase())}}function sx(e,t,n){switch(t){case"input":N(e,n);return;case"textarea":aS(e,n);return;case"select":cf(e,n);return}}var Kl=function(){},Zl=function(){};{var cx=["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"],fx=xy.concat(["button"]),dx=["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=be({},e||wy),a={tag:t};return xy.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),fx.indexOf(t)!==-1&&(n.pTagInButtonScope=null),cx.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 vx=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 dx.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},px=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={};Kl=function(e,t,n){n=n||wy;var a=n.current,r=a&&a.tag;t!=null&&(e!=null&&d("validateDOMNesting: when childText is passed, childTag should be null"),e="#text");var i=vx(e,r)?null:a,o=i?null:px(e,n),l=i||o;if(l){var u=l.tag,f=!!i+"|"+e+"|"+u;if(!Ry[f]){Ry[f]=!0;var v=e,b="";if(e==="#text"?/\S/.test(t)?v="Text nodes":(v="Whitespace text nodes",b=" Make sure you don't have any extra whitespace between tags on each line of your source code."):v="<"+e+">",i){var g="";u==="table"&&e==="tr"&&(g+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),d("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",v,u,b,g)}else d("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",v,u)}}}}var Os="suppressHydrationWarning",As="$",Ns="/$",Jl="$?",eu="$!",mx="style",Nd=null,jd=null;function hx(e){var t,n,a=e.nodeType;switch(a){case Er:case mf:{t=a===Er?"#document":"#fragment";var r=e.documentElement;n=r?r.namespaceURI:pf(null,"");break}default:{var i=a===vn?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 yx(e,t,n){{var a=e,r=pf(a.namespace,t),i=Zl(a.ancestorInfo,t);return{namespace:r,ancestorInfo:i}}}function y_(e){return e}function gx(e){Nd=mE(),jd=OC();var t=null;return Nh(!1),t}function bx(e){AC(jd),Nh(Nd),Nd=null,jd=null}function Sx(e,t,n,a,r){var i;{var o=a;if(Kl(e,null,o.ancestorInfo),typeof t.children=="string"||typeof t.children=="number"){var l=""+t.children,u=Zl(o.ancestorInfo,e);Kl(null,l,u)}i=o.namespace}var f=tx(e,t,n,i);return au(r,f),Pd(f,t),f}function Tx(e,t){e.appendChild(t)}function Ex(e,t,n,a,r){switch(ax(e,t,n,a),t){case"button":case"input":case"select":case"textarea":return!!n.autoFocus;case"img":return!0;default:return!1}}function Cx(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);Kl(null,l,u)}}return rx(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 xx(e,t,n,a){{var r=n;Kl(null,e,r.ancestorInfo)}var i=nx(e,t);return au(a,i),i}function wx(){var e=window.event;return e===void 0?Rr:jh(e.type)}var Hd=typeof setTimeout=="function"?setTimeout:void 0,Rx=typeof clearTimeout=="function"?clearTimeout:void 0,zd=-1,Dy=typeof Promise=="function"?Promise:void 0,Dx=typeof queueMicrotask=="function"?queueMicrotask:typeof Dy<"u"?function(e){return Dy.resolve(null).then(e).catch(_x)}:Hd;function _x(e){setTimeout(function(){throw e})}function kx(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 Mx(e,t,n,a,r,i){ix(e,t,n,a,r),Pd(e,r)}function _y(e){Ju(e,"")}function Lx(e,t,n){e.nodeValue=n}function Ox(e,t){e.appendChild(t)}function Ax(e,t){var n;e.nodeType===vn?(n=e.parentNode,n.insertBefore(t,e)):(n=e,n.appendChild(t));var a=e._reactRootContainer;a==null&&n.onclick===null&&Ls(n)}function Nx(e,t,n){e.insertBefore(t,n)}function jx(e,t,n){e.nodeType===vn?e.parentNode.insertBefore(t,n):e.insertBefore(t,n)}function Ux(e,t){e.removeChild(t)}function Hx(e,t){e.nodeType===vn?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===vn){var i=r.data;if(i===Ns)if(a===0){e.removeChild(r),Ul(t);return}else a--;else(i===As||i===Jl||i===eu)&&a++}n=r}while(n);Ul(t)}function zx(e,t){e.nodeType===vn?Fd(e.parentNode,t):e.nodeType===la&&Fd(e,t),Ul(e)}function Fx(e){e=e;var t=e.style;typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function Vx(e){e.nodeValue=""}function Bx(e,t){e=e;var n=t[mx],a=n!=null&&n.hasOwnProperty("display")?n.display:null;e.style.display=hf("display",a)}function $x(e,t){e.nodeValue=t}function Px(e){e.nodeType===la?e.textContent="":e.nodeType===Er&&e.documentElement&&e.removeChild(e.documentElement)}function Yx(e,t,n){return e.nodeType!==la||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e}function Wx(e,t){return t===""||e.nodeType!==Tr?null:e}function Ix(e){return e.nodeType!==vn?null:e}function ky(e){return e.data===Jl}function Vd(e){return e.data===eu}function qx(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 Gx(e,t){e._reactRetry=t}function js(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===la||t===Tr)break;if(t===vn){var n=e.data;if(n===As||n===eu||n===Jl)break;if(n===Ns)return null}}return e}function tu(e){return js(e.nextSibling)}function Xx(e){return js(e.firstChild)}function Qx(e){return js(e.firstChild)}function Kx(e){return js(e.nextSibling)}function Zx(e,t,n,a,r,i,o){au(i,e),Pd(e,n);var l;{var u=r;l=u.namespace}var f=(i.mode&vt)!==Ae;return lx(e,t,n,l,a,f,o)}function Jx(e,t,n,a){return au(n,e),n.mode&vt,ux(e,t)}function e1(e,t){au(t,e)}function t1(e){for(var t=e.nextSibling,n=0;t;){if(t.nodeType===vn){var a=t.data;if(a===Ns){if(n===0)return tu(t);n--}else(a===As||a===eu||a===Jl)&&n++}t=t.nextSibling}return null}function My(e){for(var t=e.previousSibling,n=0;t;){if(t.nodeType===vn){var a=t.data;if(a===As||a===eu||a===Jl){if(n===0)return t;n--}else a===Ns&&n++}t=t.previousSibling}return null}function n1(e){Ul(e)}function a1(e){Ul(e)}function r1(e){return e!=="head"&&e!=="body"}function i1(e,t,n,a){var r=!0;Ms(t.nodeValue,n,a,r)}function o1(e,t,n,a,r,i){if(t[Os]!==!0){var o=!0;Ms(a.nodeValue,r,i,o)}}function l1(e,t){t.nodeType===la?Md(e,t):t.nodeType===vn||Ld(e,t)}function u1(e,t){{var n=e.parentNode;n!==null&&(t.nodeType===la?Md(n,t):t.nodeType===vn||Ld(n,t))}}function s1(e,t,n,a,r){(r||t[Os]!==!0)&&(a.nodeType===la?Md(n,a):a.nodeType===vn||Ld(n,a))}function c1(e,t,n){Od(e,t)}function f1(e,t){Ad(e,t)}function d1(e,t,n){{var a=e.parentNode;a!==null&&Od(a,t)}}function v1(e,t){{var n=e.parentNode;n!==null&&Ad(n,t)}}function p1(e,t,n,a,r,i){(i||t[Os]!==!0)&&Od(n,a)}function m1(e,t,n,a,r){(r||t[Os]!==!0)&&Ad(n,a)}function h1(e){d("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",e.nodeName.toLowerCase())}function y1(e){ql(e)}var Mo=Math.random().toString(36).slice(2),Lo="__reactFiber$"+Mo,Bd="__reactProps$"+Mo,nu="__reactContainer$"+Mo,$d="__reactEvents$"+Mo,g1="__reactListeners$"+Mo,b1="__reactHandles$"+Mo;function S1(e){delete e[Lo],delete e[Bd],delete e[$d],delete e[g1],delete e[b1]}function au(e,t){t[Lo]=e}function Us(e,t){t[nu]=e}function Ly(e){e[nu]=null}function ru(e){return!!e[nu]}function Fi(e){var t=e[Lo];if(t)return t;for(var n=e.parentNode;n;){if(t=n[nu]||n[Lo],t){var a=t.alternate;if(t.child!==null||a!==null&&a.child!==null)for(var r=My(e);r!==null;){var i=r[Lo];if(i)return i;r=My(r)}return t}e=n,n=e.parentNode}return null}function ei(e){var t=e[Lo]||e[nu];return t&&(t.tag===K||t.tag===Oe||t.tag===_||t.tag===I)?t:null}function Oo(e){if(e.tag===K||e.tag===Oe)return e.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function Hs(e){return e[Bd]||null}function Pd(e,t){e[Bd]=t}function T1(e){var t=e[$d];return t===void 0&&(t=e[$d]=new Set),t}var Oy={},Ay=me.ReactDebugCurrentFrame;function zs(e){if(e){var t=e._owner,n=ll(e.type,e._source,t?t.type:null);Ay.setExtraStackFrame(n)}else Ay.setExtraStackFrame(null)}function Pa(e,t,n,a,r){{var i=Function.call.bind(fn);for(var o in e)if(i(e,o)){var l=void 0;try{if(typeof e[o]!="function"){var u=Error((a||"React class")+": "+n+" type `"+o+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[o]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw u.name="Invariant Violation",u}l=e[o](t,o,a,n,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(f){l=f}l&&!(l instanceof Error)&&(zs(r),d("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",a||"React class",n,o,typeof l),zs(null)),l instanceof Error&&!(l.message in Oy)&&(Oy[l.message]=!0,zs(r),d("Failed %s type: %s",n,l.message),zs(null))}}}var Yd=[],Fs;Fs=[];var Dr=-1;function ti(e){return{current:e}}function Wn(e,t){if(Dr<0){d("Unexpected pop.");return}t!==Fs[Dr]&&d("Unexpected Fiber popped."),e.current=Yd[Dr],Yd[Dr]=null,Fs[Dr]=null,Dr--}function In(e,t,n){Dr++,Yd[Dr]=e.current,Fs[Dr]=n,e.current=t}var Wd;Wd={};var Ea={};Object.freeze(Ea);var _r=ti(Ea),or=ti(!1),Id=Ea;function Ao(e,t,n){return n&&lr(t)?Id:_r.current}function Ny(e,t,n){{var a=e.stateNode;a.__reactInternalMemoizedUnmaskedChildContext=t,a.__reactInternalMemoizedMaskedChildContext=n}}function No(e,t){{var n=e.type,a=n.contextTypes;if(!a)return Ea;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";Pa(a,i,"context",l)}return r&&Ny(e,t,i),i}}function Vs(){return or.current}function lr(e){{var t=e.childContextTypes;return t!=null}}function Bs(e){Wn(or,e),Wn(_r,e)}function qd(e){Wn(or,e),Wn(_r,e)}function jy(e,t,n){{if(_r.current!==Ea)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");In(_r,t,e),In(or,n,e)}}function Uy(e,t,n){{var a=e.stateNode,r=t.childContextTypes;if(typeof a.getChildContext!="function"){{var i=Xe(e)||"Unknown";Wd[i]||(Wd[i]=!0,d("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",i,i))}return n}var o=a.getChildContext();for(var l in o)if(!(l in r))throw new Error((Xe(e)||"Unknown")+'.getChildContext(): key "'+l+'" is not defined in childContextTypes.');{var u=Xe(e)||"Unknown";Pa(r,o,"child context",u)}return be({},n,o)}}function $s(e){{var t=e.stateNode,n=t&&t.__reactInternalMemoizedMergedChildContext||Ea;return Id=_r.current,In(_r,n,e),In(or,or.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,Id);a.__reactInternalMemoizedMergedChildContext=r,Wn(or,e),Wn(_r,e),In(_r,r,e),In(or,n,e)}else Wn(or,e),In(or,n,e)}}function E1(e){{if(!rT(e)||e.tag!==te)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 I:return t.stateNode.context;case te:{var n=t.type;if(lr(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 ni=0,Ps=1,kr=null,Gd=!1,Xd=!1;function zy(e){kr===null?kr=[e]:kr.push(e)}function C1(e){Gd=!0,zy(e)}function Fy(){Gd&&ai()}function ai(){if(!Xd&&kr!==null){Xd=!0;var e=0,t=$a();try{var n=!0,a=kr;for(On(ba);e<a.length;e++){var r=a[e];do r=r(n);while(r!==null)}kr=null,Gd=!1}catch(i){throw kr!==null&&(kr=kr.slice(e+1)),sh(is,ai),i}finally{On(t),Xd=!1}}return null}var jo=[],Uo=0,Ys=null,Ws=0,_a=[],ka=0,Vi=null,Mr=1,Lr="";function x1(e){return $i(),(e.flags&th)!==je}function w1(e){return $i(),Ws}function R1(){var e=Lr,t=Mr,n=t&~D1(t);return n.toString(32)+e}function Bi(e,t){$i(),jo[Uo++]=Ws,jo[Uo++]=Ys,Ys=e,Ws=t}function Vy(e,t,n){$i(),_a[ka++]=Mr,_a[ka++]=Lr,_a[ka++]=Vi,Vi=e;var a=Mr,r=Lr,i=Is(a)-1,o=a&~(1<<i),l=n+1,u=Is(t)+i;if(u>30){var f=i-i%5,v=(1<<f)-1,b=(o&v).toString(32),g=o>>f,R=i-f,M=Is(t)+R,j=l<<R,ae=j|g,ke=b+r;Mr=1<<M|ae,Lr=ke}else{var we=l<<i,mt=we|o,ut=r;Mr=1<<u|mt,Lr=ut}}function Qd(e){$i();var t=e.return;if(t!==null){var n=1,a=0;Bi(e,n),Vy(e,n,a)}}function Is(e){return 32-mh(e)}function D1(e){return 1<<Is(e)-1}function Kd(e){for(;e===Ys;)Ys=jo[--Uo],jo[Uo]=null,Ws=jo[--Uo],jo[Uo]=null;for(;e===Vi;)Vi=_a[--ka],_a[ka]=null,Lr=_a[--ka],_a[ka]=null,Mr=_a[--ka],_a[ka]=null}function _1(){return $i(),Vi!==null?{id:Mr,overflow:Lr}:null}function k1(e,t){$i(),_a[ka++]=Mr,_a[ka++]=Lr,_a[ka++]=Vi,Mr=t.id,Lr=t.overflow,Vi=e}function $i(){Nn()||d("Expected to be hydrating. This is a bug in React. Please file an issue.")}var An=null,Ma=null,Ya=!1,Pi=!1,ri=null;function M1(){Ya&&d("We should not be hydrating here. This is a bug in React. Please file a bug.")}function By(){Pi=!0}function L1(){return Pi}function O1(e){var t=e.stateNode.containerInfo;return Ma=Qx(t),An=e,Ya=!0,ri=null,Pi=!1,!0}function A1(e,t,n){return Ma=Kx(t),An=e,Ya=!0,ri=null,Pi=!1,n!==null&&k1(e,n),!0}function $y(e,t){switch(e.tag){case I:{l1(e.stateNode.containerInfo,t);break}case K:{var n=(e.mode&vt)!==Ae;s1(e.type,e.memoizedProps,e.stateNode,t,n);break}case _:{var a=e.memoizedState;a.dehydrated!==null&&u1(a.dehydrated,t);break}}}function Py(e,t){$y(e,t);var n=HD();n.stateNode=t,n.return=e;var a=e.deletions;a===null?(e.deletions=[n],e.flags|=wi):a.push(n)}function Zd(e,t){{if(Pi)return;switch(e.tag){case I:{var n=e.stateNode.containerInfo;switch(t.tag){case K:var a=t.type;t.pendingProps,c1(n,a);break;case Oe:var r=t.pendingProps;f1(n,r);break}break}case K:{var i=e.type,o=e.memoizedProps,l=e.stateNode;switch(t.tag){case K:{var u=t.type,f=t.pendingProps,v=(e.mode&vt)!==Ae;p1(i,o,l,u,f,v);break}case Oe:{var b=t.pendingProps,g=(e.mode&vt)!==Ae;m1(i,o,l,b,g);break}}break}case _:{var R=e.memoizedState,M=R.dehydrated;if(M!==null)switch(t.tag){case K:var j=t.type;t.pendingProps,d1(M,j);break;case Oe:var ae=t.pendingProps;v1(M,ae);break}break}default:return}}}function Yy(e,t){t.flags=t.flags&-4097|_n,Zd(e,t)}function Wy(e,t){switch(e.tag){case K:{var n=e.type;e.pendingProps;var a=Yx(t,n);return a!==null?(e.stateNode=a,An=e,Ma=Xx(a),!0):!1}case Oe:{var r=e.pendingProps,i=Wx(t,r);return i!==null?(e.stateNode=i,An=e,Ma=null,!0):!1}case _:{var o=Ix(t);if(o!==null){var l={dehydrated:o,treeContext:_1(),retryLane:Da};e.memoizedState=l;var u=zD(o);return u.return=e,e.child=u,An=e,Ma=null,!0}return!1}default:return!1}}function Jd(e){return(e.mode&vt)!==Ae&&(e.flags&kt)===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(Ya){var t=Ma;if(!t){Jd(e)&&(Zd(An,e),ev()),Yy(An,e),Ya=!1,An=e;return}var n=t;if(!Wy(e,t)){Jd(e)&&(Zd(An,e),ev()),t=tu(n);var a=An;if(!t||!Wy(e,t)){Yy(An,e),Ya=!1,An=e;return}Py(a,n)}}}function N1(e,t,n){var a=e.stateNode,r=!Pi,i=Zx(a,e.type,e.memoizedProps,t,n,e,r);return e.updateQueue=i,i!==null}function j1(e){var t=e.stateNode,n=e.memoizedProps,a=Jx(t,n,e);if(a){var r=An;if(r!==null)switch(r.tag){case I:{var i=r.stateNode.containerInfo,o=(r.mode&vt)!==Ae;i1(i,t,n,o);break}case K:{var l=r.type,u=r.memoizedProps,f=r.stateNode,v=(r.mode&vt)!==Ae;o1(l,u,f,t,n,v);break}}}return a}function U1(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.");e1(n,e)}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.");return t1(n)}function Iy(e){for(var t=e.return;t!==null&&t.tag!==K&&t.tag!==I&&t.tag!==_;)t=t.return;An=t}function qs(e){if(e!==An)return!1;if(!Ya)return Iy(e),Ya=!0,!1;if(e.tag!==I&&(e.tag!==K||r1(e.type)&&!Ud(e.type,e.memoizedProps))){var t=Ma;if(t)if(Jd(e))qy(e),ev();else for(;t;)Py(e,t),t=tu(t)}return Iy(e),e.tag===_?Ma=H1(e):Ma=An?tu(e.stateNode):null,!0}function z1(){return Ya&&Ma!==null}function qy(e){for(var t=Ma;t;)$y(e,t),t=tu(t)}function Ho(){An=null,Ma=null,Ya=!1,Pi=!1}function Gy(){ri!==null&&(Bb(ri),ri=null)}function Nn(){return Ya}function nv(e){ri===null?ri=[e]:ri.push(e)}var F1=me.ReactCurrentBatchConfig,V1=null;function B1(){return F1.transition}var Wa={recordUnsafeLifecycleWarnings:function(e,t){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(e,t){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var $1=function(e){for(var t=null,n=e;n!==null;)n.mode&on&&(t=n),n=n.return;return t},Yi=function(e){var t=[];return e.forEach(function(n){t.push(n)}),t.sort().join(", ")},iu=[],ou=[],lu=[],uu=[],su=[],cu=[],Wi=new Set;Wa.recordUnsafeLifecycleWarnings=function(e,t){Wi.has(e.type)||(typeof t.componentWillMount=="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&iu.push(e),e.mode&on&&typeof t.UNSAFE_componentWillMount=="function"&&ou.push(e),typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&lu.push(e),e.mode&on&&typeof t.UNSAFE_componentWillReceiveProps=="function"&&uu.push(e),typeof t.componentWillUpdate=="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&su.push(e),e.mode&on&&typeof t.UNSAFE_componentWillUpdate=="function"&&cu.push(e))},Wa.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;iu.length>0&&(iu.forEach(function(g){e.add(Xe(g)||"Component"),Wi.add(g.type)}),iu=[]);var t=new Set;ou.length>0&&(ou.forEach(function(g){t.add(Xe(g)||"Component"),Wi.add(g.type)}),ou=[]);var n=new Set;lu.length>0&&(lu.forEach(function(g){n.add(Xe(g)||"Component"),Wi.add(g.type)}),lu=[]);var a=new Set;uu.length>0&&(uu.forEach(function(g){a.add(Xe(g)||"Component"),Wi.add(g.type)}),uu=[]);var r=new Set;su.length>0&&(su.forEach(function(g){r.add(Xe(g)||"Component"),Wi.add(g.type)}),su=[]);var i=new Set;if(cu.length>0&&(cu.forEach(function(g){i.add(Xe(g)||"Component"),Wi.add(g.type)}),cu=[]),t.size>0){var o=Yi(t);d(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
|
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
|
|
Please update the following components: %s`,o)}if(a.size>0){var l=Yi(a);d(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
|
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
|
|
Please update the following components: %s`,l)}if(i.size>0){var u=Yi(i);d(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
|
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
|
|
Please update the following components: %s`,u)}if(e.size>0){var f=Yi(e);Re(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
|
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
|
|
Please update the following components: %s`,f)}if(n.size>0){var v=Yi(n);Re(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
|
|
|
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
|
|
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
|
|
|
|
Please update the following components: %s`,v)}if(r.size>0){var b=Yi(r);Re(`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`,b)}};var Gs=new Map,Xy=new Set;Wa.recordLegacyContextWarning=function(e,t){var n=$1(e);if(n===null){d("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!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))}},Wa.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=Yi(a);try{Jt(n),d(`Legacy context API has been detected within a strict-mode tree.
|
|
|
|
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
|
|
|
|
Please update the following components: %s
|
|
|
|
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)}finally{Dn()}}})},Wa.discardPendingWarnings=function(){iu=[],ou=[],lu=[],uu=[],su=[],cu=[],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,d('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function P1(e){return e.prototype&&e.prototype.isReactComponent}function fu(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&on||We)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==te)&&!(typeof n.type=="function"&&!P1(n.type))&&n._owner){var r=Xe(e)||"Component";iv[r]||(d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r,a),iv[r]=!0)}if(n._owner){var i=n._owner,o;if(i){var l=i;if(l.tag!==te)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;st(a,"ref");var f=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f)return t.ref;var v=function(b){var g=u.refs;b===null?delete g[f]:g[f]=b};return v._stringRef=f,v}else{if(typeof a!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+a+`) but no owner was set. This could happen for one of the following reasons:
|
|
1. You may be adding a ref to a function component
|
|
2. You may be adding a ref to a component that was not created inside a component's render method
|
|
3. You have multiple copies of React loaded
|
|
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return a}function Xs(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Qs(e){{var t=Xe(e)||"Component";if(lv[t])return;lv[t]=!0,d("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function Ky(e){var t=e._payload,n=e._init;return n(t)}function Zy(e){function t(E,U){if(e){var C=E.deletions;C===null?(E.deletions=[U],E.flags|=wi):C.push(U)}}function n(E,U){if(!e)return null;for(var C=U;C!==null;)t(E,C),C=C.sibling;return null}function a(E,U){for(var C=new Map,Y=U;Y!==null;)Y.key!==null?C.set(Y.key,Y):C.set(Y.index,Y),Y=Y.sibling;return C}function r(E,U){var C=eo(E,U);return C.index=0,C.sibling=null,C}function i(E,U,C){if(E.index=C,!e)return E.flags|=th,U;var Y=E.alternate;if(Y!==null){var de=Y.index;return de<U?(E.flags|=_n,U):de}else return E.flags|=_n,U}function o(E){return e&&E.alternate===null&&(E.flags|=_n),E}function l(E,U,C,Y){if(U===null||U.tag!==Oe){var de=nm(C,E.mode,Y);return de.return=E,de}else{var ie=r(U,C);return ie.return=E,ie}}function u(E,U,C,Y){var de=C.type;if(de===D)return v(E,U,C.props.children,Y,C.key);if(U!==null&&(U.elementType===de||a0(U,C)||typeof de=="object"&&de!==null&&de.$$typeof===z&&Ky(de)===U.type)){var ie=r(U,C.props);return ie.ref=fu(E,U,C),ie.return=E,ie._debugSource=C._source,ie._debugOwner=C._owner,ie}var He=tm(C,E.mode,Y);return He.ref=fu(E,U,C),He.return=E,He}function f(E,U,C,Y){if(U===null||U.tag!==H||U.stateNode.containerInfo!==C.containerInfo||U.stateNode.implementation!==C.implementation){var de=am(C,E.mode,Y);return de.return=E,de}else{var ie=r(U,C.children||[]);return ie.return=E,ie}}function v(E,U,C,Y,de){if(U===null||U.tag!==zt){var ie=mi(C,E.mode,Y,de);return ie.return=E,ie}else{var He=r(U,C);return He.return=E,He}}function b(E,U,C){if(typeof U=="string"&&U!==""||typeof U=="number"){var Y=nm(""+U,E.mode,C);return Y.return=E,Y}if(typeof U=="object"&&U!==null){switch(U.$$typeof){case h:{var de=tm(U,E.mode,C);return de.ref=fu(E,null,U),de.return=E,de}case B:{var ie=am(U,E.mode,C);return ie.return=E,ie}case z:{var He=U._payload,qe=U._init;return b(E,qe(He),C)}}if(lt(U)||ft(U)){var Ut=mi(U,E.mode,C,null);return Ut.return=E,Ut}Xs(E,U)}return typeof U=="function"&&Qs(E),null}function g(E,U,C,Y){var de=U!==null?U.key:null;if(typeof C=="string"&&C!==""||typeof C=="number")return de!==null?null:l(E,U,""+C,Y);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case h:return C.key===de?u(E,U,C,Y):null;case B:return C.key===de?f(E,U,C,Y):null;case z:{var ie=C._payload,He=C._init;return g(E,U,He(ie),Y)}}if(lt(C)||ft(C))return de!==null?null:v(E,U,C,Y,null);Xs(E,C)}return typeof C=="function"&&Qs(E),null}function R(E,U,C,Y,de){if(typeof Y=="string"&&Y!==""||typeof Y=="number"){var ie=E.get(C)||null;return l(U,ie,""+Y,de)}if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case h:{var He=E.get(Y.key===null?C:Y.key)||null;return u(U,He,Y,de)}case B:{var qe=E.get(Y.key===null?C:Y.key)||null;return f(U,qe,Y,de)}case z:var Ut=Y._payload,Et=Y._init;return R(E,U,C,Et(Ut),de)}if(lt(Y)||ft(Y)){var sn=E.get(C)||null;return v(U,sn,Y,de,null)}Xs(U,Y)}return typeof Y=="function"&&Qs(U),null}function M(E,U,C){{if(typeof E!="object"||E===null)return U;switch(E.$$typeof){case h:case B:Qy(E,C);var Y=E.key;if(typeof Y!="string")break;if(U===null){U=new Set,U.add(Y);break}if(!U.has(Y)){U.add(Y);break}d("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Y);break;case z:var de=E._payload,ie=E._init;M(ie(de),U,C);break}}return U}function j(E,U,C,Y){for(var de=null,ie=0;ie<C.length;ie++){var He=C[ie];de=M(He,de,E)}for(var qe=null,Ut=null,Et=U,sn=0,Ct=0,ln=null;Et!==null&&Ct<C.length;Ct++){Et.index>Ct?(ln=Et,Et=null):ln=Et.sibling;var Gn=g(E,Et,C[Ct],Y);if(Gn===null){Et===null&&(Et=ln);break}e&&Et&&Gn.alternate===null&&t(E,Et),sn=i(Gn,sn,Ct),Ut===null?qe=Gn:Ut.sibling=Gn,Ut=Gn,Et=ln}if(Ct===C.length){if(n(E,Et),Nn()){var Bn=Ct;Bi(E,Bn)}return qe}if(Et===null){for(;Ct<C.length;Ct++){var xa=b(E,C[Ct],Y);xa!==null&&(sn=i(xa,sn,Ct),Ut===null?qe=xa:Ut.sibling=xa,Ut=xa)}if(Nn()){var na=Ct;Bi(E,na)}return qe}for(var aa=a(E,Et);Ct<C.length;Ct++){var Xn=R(aa,E,Ct,C[Ct],Y);Xn!==null&&(e&&Xn.alternate!==null&&aa.delete(Xn.key===null?Ct:Xn.key),sn=i(Xn,sn,Ct),Ut===null?qe=Xn:Ut.sibling=Xn,Ut=Xn)}if(e&&aa.forEach(function(nl){return t(E,nl)}),Nn()){var zr=Ct;Bi(E,zr)}return qe}function ae(E,U,C,Y){var de=ft(C);if(typeof de!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&C[Symbol.toStringTag]==="Generator"&&(rv||d("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),rv=!0),C.entries===de&&(av||d("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),av=!0);var ie=de.call(C);if(ie)for(var He=null,qe=ie.next();!qe.done;qe=ie.next()){var Ut=qe.value;He=M(Ut,He,E)}}var Et=de.call(C);if(Et==null)throw new Error("An iterable object provided no iterator.");for(var sn=null,Ct=null,ln=U,Gn=0,Bn=0,xa=null,na=Et.next();ln!==null&&!na.done;Bn++,na=Et.next()){ln.index>Bn?(xa=ln,ln=null):xa=ln.sibling;var aa=g(E,ln,na.value,Y);if(aa===null){ln===null&&(ln=xa);break}e&&ln&&aa.alternate===null&&t(E,ln),Gn=i(aa,Gn,Bn),Ct===null?sn=aa:Ct.sibling=aa,Ct=aa,ln=xa}if(na.done){if(n(E,ln),Nn()){var Xn=Bn;Bi(E,Xn)}return sn}if(ln===null){for(;!na.done;Bn++,na=Et.next()){var zr=b(E,na.value,Y);zr!==null&&(Gn=i(zr,Gn,Bn),Ct===null?sn=zr:Ct.sibling=zr,Ct=zr)}if(Nn()){var nl=Bn;Bi(E,nl)}return sn}for(var Pu=a(E,ln);!na.done;Bn++,na=Et.next()){var mr=R(Pu,E,Bn,na.value,Y);mr!==null&&(e&&mr.alternate!==null&&Pu.delete(mr.key===null?Bn:mr.key),Gn=i(mr,Gn,Bn),Ct===null?sn=mr:Ct.sibling=mr,Ct=mr)}if(e&&Pu.forEach(function(m_){return t(E,m_)}),Nn()){var p_=Bn;Bi(E,p_)}return sn}function ke(E,U,C,Y){if(U!==null&&U.tag===Oe){n(E,U.sibling);var de=r(U,C);return de.return=E,de}n(E,U);var ie=nm(C,E.mode,Y);return ie.return=E,ie}function we(E,U,C,Y){for(var de=C.key,ie=U;ie!==null;){if(ie.key===de){var He=C.type;if(He===D){if(ie.tag===zt){n(E,ie.sibling);var qe=r(ie,C.props.children);return qe.return=E,qe._debugSource=C._source,qe._debugOwner=C._owner,qe}}else if(ie.elementType===He||a0(ie,C)||typeof He=="object"&&He!==null&&He.$$typeof===z&&Ky(He)===ie.type){n(E,ie.sibling);var Ut=r(ie,C.props);return Ut.ref=fu(E,ie,C),Ut.return=E,Ut._debugSource=C._source,Ut._debugOwner=C._owner,Ut}n(E,ie);break}else t(E,ie);ie=ie.sibling}if(C.type===D){var Et=mi(C.props.children,E.mode,Y,C.key);return Et.return=E,Et}else{var sn=tm(C,E.mode,Y);return sn.ref=fu(E,U,C),sn.return=E,sn}}function mt(E,U,C,Y){for(var de=C.key,ie=U;ie!==null;){if(ie.key===de)if(ie.tag===H&&ie.stateNode.containerInfo===C.containerInfo&&ie.stateNode.implementation===C.implementation){n(E,ie.sibling);var He=r(ie,C.children||[]);return He.return=E,He}else{n(E,ie);break}else t(E,ie);ie=ie.sibling}var qe=am(C,E.mode,Y);return qe.return=E,qe}function ut(E,U,C,Y){var de=typeof C=="object"&&C!==null&&C.type===D&&C.key===null;if(de&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case h:return o(we(E,U,C,Y));case B:return o(mt(E,U,C,Y));case z:var ie=C._payload,He=C._init;return ut(E,U,He(ie),Y)}if(lt(C))return j(E,U,C,Y);if(ft(C))return ae(E,U,C,Y);Xs(E,C)}return typeof C=="string"&&C!==""||typeof C=="number"?o(ke(E,U,""+C,Y)):(typeof C=="function"&&Qs(E),n(E,U))}return ut}var zo=Zy(!0),Jy=Zy(!1);function Y1(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=eo(n,n.pendingProps);for(t.child=a,a.return=t;n.sibling!==null;)n=n.sibling,a=a.sibling=eo(n,n.pendingProps),a.return=t;a.sibling=null}}function W1(e,t){for(var n=e.child;n!==null;)OD(n,t),n=n.sibling}var uv=ti(null),sv;sv={};var Ks=null,Fo=null,cv=null,Zs=!1;function Js(){Ks=null,Fo=null,cv=null,Zs=!1}function eg(){Zs=!0}function tg(){Zs=!1}function ng(e,t,n){In(uv,t._currentValue,e),t._currentValue=n,t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==sv&&d("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=sv}function fv(e,t){var n=uv.current;Wn(uv,t),e._currentValue=n}function dv(e,t,n){for(var a=e;a!==null;){var r=a.alternate;if(Co(a.childLanes,t)?r!==null&&!Co(r.childLanes,t)&&(r.childLanes=tt(r.childLanes,t)):(a.childLanes=tt(a.childLanes,t),r!==null&&(r.childLanes=tt(r.childLanes,t))),a===n)break;a=a.return}a!==n&&d("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function I1(e,t,n){q1(e,t,n)}function q1(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===te){var l=kl(n),u=Or(It,l);u.tag=tc;var f=a.updateQueue;if(f!==null){var v=f.shared,b=v.pending;b===null?u.next=u:(u.next=b.next,b.next=u),v.pending=u}}a.lanes=tt(a.lanes,n);var g=a.alternate;g!==null&&(g.lanes=tt(g.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===pe){var R=a.return;if(R===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");R.lanes=tt(R.lanes,n);var M=R.alternate;M!==null&&(M.lanes=tt(M.lanes,n)),dv(R,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 j=r.sibling;if(j!==null){j.return=r.return,r=j;break}r=r.return}a=r}}function Vo(e,t){Ks=e,Fo=null,cv=null;var n=e.dependencies;if(n!==null){var a=n.firstContext;a!==null&&(ga(n.lanes,t)&&Ru(),n.firstContext=null)}}function pn(e){Zs&&d("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var t=e._currentValue;if(cv!==e){var n={context:e,memoizedValue:t,next:null};if(Fo===null){if(Ks===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Fo=n,Ks.dependencies={lanes:P,firstContext:n}}else Fo=Fo.next=n}return t}var Ii=null;function vv(e){Ii===null?Ii=[e]:Ii.push(e)}function G1(){if(Ii!==null){for(var e=0;e<Ii.length;e++){var t=Ii[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}}Ii=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 X1(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 Q1(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 sa(e,t){return ec(e,t)}var K1=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|_i))!==je&&Jb(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|_i))!==je&&Jb(e),a=r,r=r.return;if(a.tag===I){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 Or(e,t){var n={eventTime:e,lane:t,tag:rg,payload:null,callback:null,next:null};return n}function ii(e,t,n){var a=e.updateQueue;if(a===null)return null;var r=a.shared;if(ac===r&&!mv&&(d("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),mv=!0),XR()){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,K1(e,n)}else return Q1(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 f={eventTime:u.eventTime,lane:u.lane,tag:u.tag,payload:u.payload,callback:u.callback,next:null};o===null?i=o=f:(o.next=f,o=f),u=u.next}while(u!==null);o===null?i=o=t:(o.next=t,o=t)}else i=o=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}}var v=n.lastBaseUpdate;v===null?n.firstBaseUpdate=t:v.next=t,n.lastBaseUpdate=t}function 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&on){Mn(!0);try{o.call(i,a,r)}finally{Mn(!1)}}tg()}return l}return o}case pv:e.flags=e.flags&-65537|kt;case rg:{var u=n.payload,f;if(typeof u=="function"){eg(),f=u.call(i,a,r);{if(e.mode&on){Mn(!0);try{u.call(i,a,r)}finally{Mn(!1)}}tg()}}else f=u;return f==null?a:be({},a,f)}case tc:return nc=!0,a}return a}function ic(e,t,n,a){var r=e.updateQueue;nc=!1,ac=r.shared;var i=r.firstBaseUpdate,o=r.lastBaseUpdate,l=r.shared.pending;if(l!==null){r.shared.pending=null;var u=l,f=u.next;u.next=null,o===null?i=f:o.next=f,o=u;var v=e.alternate;if(v!==null){var b=v.updateQueue,g=b.lastBaseUpdate;g!==o&&(g===null?b.firstBaseUpdate=f:g.next=f,b.lastBaseUpdate=u)}}if(i!==null){var R=r.baseState,M=P,j=null,ae=null,ke=null,we=i;do{var mt=we.lane,ut=we.eventTime;if(Co(a,mt)){if(ke!==null){var U={eventTime:ut,lane:Ln,tag:we.tag,payload:we.payload,callback:we.callback,next:null};ke=ke.next=U}R=Z1(e,r,we,R,t,n);var C=we.callback;if(C!==null&&we.lane!==Ln){e.flags|=eh;var Y=r.effects;Y===null?r.effects=[we]:Y.push(we)}}else{var E={eventTime:ut,lane:mt,tag:we.tag,payload:we.payload,callback:we.callback,next:null};ke===null?(ae=ke=E,j=R):ke=ke.next=E,M=tt(M,mt)}if(we=we.next,we===null){if(l=r.shared.pending,l===null)break;var de=l,ie=de.next;de.next=null,we=ie,r.lastBaseUpdate=de,r.shared.pending=null}}while(!0);ke===null&&(j=R),r.baseState=j,r.firstBaseUpdate=ae,r.lastBaseUpdate=ke;var He=r.shared.interleaved;if(He!==null){var qe=He;do M=tt(M,qe.lane),qe=qe.next;while(qe!==He)}else i===null&&(r.shared.lanes=P);zu(M),e.lanes=M,e.memoizedState=R}ac=null}function J1(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,J1(o,n))}}var du={},oi=ti(du),vu=ti(du),lc=ti(du);function uc(e){if(e===du)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(vu,e,e),In(oi,du,e);var n=hx(t);Wn(oi,e),In(oi,n,e)}function Bo(e){Wn(oi,e),Wn(vu,e),Wn(lc,e)}function bv(){var e=uc(oi.current);return e}function cg(e){uc(lc.current);var t=uc(oi.current),n=yx(t,e.type);t!==n&&(In(vu,e,e),In(oi,n,e))}function Sv(e){vu.current===e&&(Wn(oi,e),Wn(vu,e))}var ew=0,fg=1,dg=1,pu=2,Ia=ti(ew);function Tv(e,t){return(e&t)!==0}function $o(e){return e&fg}function Ev(e,t){return e&fg|t}function tw(e,t){return e|t}function li(e,t){In(Ia,t,e)}function Po(e){Wn(Ia,e)}function nw(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===_){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&kt)!==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 ca=0,yn=1,ur=2,gn=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 aw(e,t){var n=t._getVersion,a=n(t._source);e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,a]:e.mutableSourceEagerHydrationData.push(t,a)}var ce=me.ReactCurrentDispatcher,mu=me.ReactCurrentBatchConfig,wv,Yo;wv=new Set;var qi=P,jt=null,bn=null,Sn=null,cc=!1,hu=!1,yu=0,rw=0,iw=25,V=null,La=null,ui=-1,Rv=!1;function Mt(){{var e=V;La===null?La=[e]:La.push(e)}}function J(){{var e=V;La!==null&&(ui++,La[ui]!==e&&ow(e))}}function Wo(e){e!=null&&!lt(e)&&d("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",V,typeof e)}function ow(e){{var t=Xe(jt);if(!wv.has(t)&&(wv.add(t),La!==null)){for(var n="",a=30,r=0;r<=ui;r++){for(var i=La[r],o=r===ui?e:i,l=r+1+". "+i;l.length<a;)l+=" ";l+=o+`
|
|
`,n+=l}d(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
|
|
|
|
Previous render Next render
|
|
------------------------------------------------------
|
|
%s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
`,t,n)}}}function qn(){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 d("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",V),!1;e.length!==t.length&&d(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
|
|
|
|
Previous: %s
|
|
Incoming: %s`,V,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Ta(e[n],t[n]))return!1;return!0}function Io(e,t,n,a,r,i){qi=i,jt=t,La=e!==null?e._debugHookTypes:null,ui=-1,Rv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=P,e!==null&&e.memoizedState!==null?ce.current=Ng:La!==null?ce.current=Ag:ce.current=Og;var o=n(a,r);if(hu){var l=0;do{if(hu=!1,yu=0,l>=iw)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,Rv=!1,bn=null,Sn=null,t.updateQueue=null,ui=-1,ce.current=jg,o=n(a,r)}while(hu)}ce.current=Cc,t._debugHookTypes=La;var u=bn!==null&&bn.next!==null;if(qi=P,jt=null,bn=null,Sn=null,V=null,La=null,ui=-1,e!==null&&(e.flags&Cr)!==(t.flags&Cr)&&(e.mode&vt)!==Ae&&d("Internal React error: Expected static flag was missing. Please notify the React team."),cc=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o}function qo(){var e=yu!==0;return yu=0,e}function vg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&rr)!==Ae?t.flags&=-50333701:t.flags&=-2053,e.lanes=fs(e.lanes,n)}function pg(){if(ce.current=Cc,cc){for(var e=jt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cc=!1}qi=P,jt=null,bn=null,Sn=null,La=null,ui=-1,V=null,Dg=!1,hu=!1,yu=0}function sr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sn===null?jt.memoizedState=Sn=e:Sn=Sn.next=e,Sn}function Oa(){var e;if(bn===null){var t=jt.alternate;t!==null?e=t.memoizedState:e=null}else e=bn.next;var n;if(Sn===null?n=jt.memoizedState:n=Sn.next,n!==null)Sn=n,n=Sn.next,bn=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");bn=e;var a={memoizedState:bn.memoizedState,baseState:bn.baseState,baseQueue:bn.baseQueue,queue:bn.queue,next:null};Sn===null?jt.memoizedState=Sn=a:Sn=Sn.next=a}return Sn}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=sr(),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=cw.bind(null,jt,i);return[a.memoizedState,o]}function Mv(e,t,n){var a=Oa(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=bn,o=i.baseQueue,l=r.pending;if(l!==null){if(o!==null){var u=o.next,f=l.next;o.next=f,l.next=u}i.baseQueue!==o&&d("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=o=l,r.pending=null}if(o!==null){var v=o.next,b=i.baseState,g=null,R=null,M=null,j=v;do{var ae=j.lane;if(Co(qi,ae)){if(M!==null){var we={lane:Ln,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};M=M.next=we}if(j.hasEagerState)b=j.eagerState;else{var mt=j.action;b=e(b,mt)}}else{var ke={lane:ae,action:j.action,hasEagerState:j.hasEagerState,eagerState:j.eagerState,next:null};M===null?(R=M=ke,g=b):M=M.next=ke,jt.lanes=tt(jt.lanes,ae),zu(ae)}j=j.next}while(j!==null&&j!==v);M===null?g=b:M.next=R,Ta(b,a.memoizedState)||Ru(),a.memoizedState=b,a.baseState=g,a.baseQueue=M,r.lastRenderedState=b}var ut=r.interleaved;if(ut!==null){var E=ut;do{var U=E.lane;jt.lanes=tt(jt.lanes,U),zu(U),E=E.next}while(E!==ut)}else o===null&&(r.lanes=P);var C=r.dispatch;return[a.memoizedState,C]}function Lv(e,t,n){var a=Oa(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,l=a.memoizedState;if(o!==null){r.pending=null;var u=o.next,f=u;do{var v=f.action;l=e(l,v),f=f.next}while(f!==u);Ta(l,a.memoizedState)||Ru(),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),r.lastRenderedState=l}return[l,i]}function g_(e,t,n){}function b_(e,t,n){}function Ov(e,t,n){var a=jt,r=sr(),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(),Yo||i!==n()&&(d("The result of getServerSnapshot should be cached to avoid an infinite loop"),Yo=!0)}else{if(i=t(),!Yo){var l=t();Ta(i,l)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),Yo=!0)}var u=$c();if(u===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(u,qi)||hg(a,t,i)}r.memoizedState=i;var f={value:i,getSnapshot:t};return r.queue=f,mc(gg.bind(null,a,f,e),[e]),a.flags|=Ir,gu(yn|jn,yg.bind(null,a,f,i,t),void 0,null),i}function fc(e,t,n){var a=jt,r=Oa(),i=t();if(!Yo){var o=t();Ta(i,o)||(d("The result of getSnapshot should be cached to avoid an infinite loop"),Yo=!0)}var l=r.memoizedState,u=!Ta(l,i);u&&(r.memoizedState=i,Ru());var f=r.queue;if(Su(gg.bind(null,a,f,e),[e]),f.getSnapshot!==t||u||Sn!==null&&Sn.memoizedState.tag&yn){a.flags|=Ir,gu(yn|jn,yg.bind(null,a,f,i,t),void 0,null);var v=$c();if(v===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");cs(v,qi)||hg(a,t,i)}return i}function hg(e,t,n){e.flags|=_f;var a={getSnapshot:t,value:n},r=jt.updateQueue;if(r===null)r=mg(),jt.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!Ta(n,a)}catch{return!0}}function Sg(e){var t=sa(e,Be);t!==null&&xn(t,e,Be,It)}function dc(e){var t=sr();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=fw.bind(null,jt,n);return[t.memoizedState,a]}function Av(e){return Mv(_v)}function Nv(e){return Lv(_v)}function gu(e,t,n,a){var r={tag:e,create:t,destroy:n,deps:a,next:null},i=jt.updateQueue;if(i===null)i=mg(),jt.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=sr();{var n={current:e};return t.memoizedState=n,n}}function vc(e){var t=Oa();return t.memoizedState}function bu(e,t,n,a){var r=sr(),i=a===void 0?null:a;jt.flags|=e,r.memoizedState=gu(yn|t,n,void 0,i)}function pc(e,t,n,a){var r=Oa(),i=a===void 0?null:a,o=void 0;if(bn!==null){var l=bn.memoizedState;if(o=l.destroy,i!==null){var u=l.deps;if(Dv(i,u)){r.memoizedState=gu(t,n,o,i);return}}}jt.flags|=e,r.memoizedState=gu(yn|t,n,o,i)}function mc(e,t){return(jt.mode&rr)!==Ae?bu(Of|Ir|Lf,jn,e,t):bu(Ir|Lf,jn,e,t)}function Su(e,t){return pc(Ir,jn,e,t)}function Uv(e,t){return bu(wt,ur,e,t)}function hc(e,t){return pc(wt,ur,e,t)}function Hv(e,t){var n=wt;return n|=Mi,(jt.mode&rr)!==Ae&&(n|=qr),bu(n,gn,e,t)}function yc(e,t){return pc(wt,gn,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")||d("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(r).join(", ")+"}");var i=e();return r.current=i,function(){r.current=null}}}function zv(e,t,n){typeof t!="function"&&d("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var a=n!=null?n.concat([e]):null,r=wt;return r|=Mi,(jt.mode&rr)!==Ae&&(r|=qr),bu(r,gn,Tg.bind(null,t,e),a)}function gc(e,t,n){typeof t!="function"&&d("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null");var a=n!=null?n.concat([e]):null;return pc(wt,gn,Tg.bind(null,t,e),a)}function lw(e,t){}var bc=lw;function Fv(e,t){var n=sr(),a=t===void 0?null:t;return n.memoizedState=[e,a],e}function Sc(e,t){var n=Oa(),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=sr(),a=t===void 0?null:t,r=e();return n.memoizedState=[r,a],r}function Tc(e,t){var n=Oa(),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=sr();return t.memoizedState=e,e}function Eg(e){var t=Oa(),n=bn,a=n.memoizedState;return xg(t,a,e)}function Cg(e){var t=Oa();if(bn===null)return t.memoizedState=e,e;var n=bn.memoizedState;return xg(t,n,e)}function xg(e,t,n){var a=!IT(qi);if(a){if(!Ta(n,t)){var r=Sh();jt.lanes=tt(jt.lanes,r),zu(r),e.baseState=!0}return t}else return e.baseState&&(e.baseState=!1,Ru()),e.memoizedState=n,n}function uw(e,t,n){var a=$a();On(tE(a,wr)),e(!0);var r=mu.transition;mu.transition={};var i=mu.transition;mu.transition._updatedFibers=new Set;try{e(!1),t()}finally{if(On(a),mu.transition=r,r===null&&i._updatedFibers){var o=i._updatedFibers.size;o>10&&Re("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=uw.bind(null,n),r=sr();return r.memoizedState=a,[t,a]}function wg(){var e=Av(),t=e[0],n=Oa(),a=n.memoizedState;return[t,a]}function Rg(){var e=Nv(),t=e[0],n=Oa(),a=n.memoizedState;return[t,a]}var Dg=!1;function sw(){return Dg}function Pv(){var e=sr(),t=$c(),n=t.identifierPrefix,a;if(Nn()){var r=R1();a=":"+n+"R"+r;var i=yu++;i>0&&(a+="H"+i.toString(32)),a+=":"}else{var o=rw++;a=":"+n+"r"+o.toString(32)+":"}return e.memoizedState=a,a}function Ec(){var e=Oa(),t=e.memoizedState;return t}function cw(e,t,n){typeof arguments[3]=="function"&&d("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var a=vi(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=ta();xn(i,e,a,o),Mg(i,t,a)}}Lg(e,a)}function fw(e,t,n){typeof arguments[3]=="function"&&d("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var a=vi(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=ce.current,ce.current=qa;try{var u=t.lastRenderedState,f=o(u,n);if(r.hasEagerState=!0,r.eagerState=f,Ta(f,u)){X1(e,t,r,a);return}}catch{}finally{ce.current=l}}}var v=ag(e,t,r,a);if(v!==null){var b=ta();xn(v,e,a,b),Mg(v,t,a)}}Lg(e,a)}function _g(e){var t=e.alternate;return e===jt||t!==null&&t===jt}function kg(e,t){hu=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:pn,useCallback:qn,useContext:qn,useEffect:qn,useImperativeHandle:qn,useInsertionEffect:qn,useLayoutEffect:qn,useMemo:qn,useReducer:qn,useRef:qn,useState:qn,useDebugValue:qn,useDeferredValue:qn,useTransition:qn,useMutableSource:qn,useSyncExternalStore:qn,useId:qn,unstable_isNewReconciler:Ye},Og=null,Ag=null,Ng=null,jg=null,cr=null,qa=null,xc=null;{var Yv=function(){d("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},$e=function(){d("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};Og={readContext:function(e){return pn(e)},useCallback:function(e,t){return V="useCallback",Mt(),Wo(t),Fv(e,t)},useContext:function(e){return V="useContext",Mt(),pn(e)},useEffect:function(e,t){return V="useEffect",Mt(),Wo(t),mc(e,t)},useImperativeHandle:function(e,t,n){return V="useImperativeHandle",Mt(),Wo(n),zv(e,t,n)},useInsertionEffect:function(e,t){return V="useInsertionEffect",Mt(),Wo(t),Uv(e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",Mt(),Wo(t),Hv(e,t)},useMemo:function(e,t){V="useMemo",Mt(),Wo(t);var n=ce.current;ce.current=cr;try{return Vv(e,t)}finally{ce.current=n}},useReducer:function(e,t,n){V="useReducer",Mt();var a=ce.current;ce.current=cr;try{return kv(e,t,n)}finally{ce.current=a}},useRef:function(e){return V="useRef",Mt(),jv(e)},useState:function(e){V="useState",Mt();var t=ce.current;ce.current=cr;try{return dc(e)}finally{ce.current=t}},useDebugValue:function(e,t){return V="useDebugValue",Mt(),void 0},useDeferredValue:function(e){return V="useDeferredValue",Mt(),Bv(e)},useTransition:function(){return V="useTransition",Mt(),$v()},useMutableSource:function(e,t,n){return V="useMutableSource",Mt(),void 0},useSyncExternalStore:function(e,t,n){return V="useSyncExternalStore",Mt(),Ov(e,t,n)},useId:function(){return V="useId",Mt(),Pv()},unstable_isNewReconciler:Ye},Ag={readContext:function(e){return pn(e)},useCallback:function(e,t){return V="useCallback",J(),Fv(e,t)},useContext:function(e){return V="useContext",J(),pn(e)},useEffect:function(e,t){return V="useEffect",J(),mc(e,t)},useImperativeHandle:function(e,t,n){return V="useImperativeHandle",J(),zv(e,t,n)},useInsertionEffect:function(e,t){return V="useInsertionEffect",J(),Uv(e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",J(),Hv(e,t)},useMemo:function(e,t){V="useMemo",J();var n=ce.current;ce.current=cr;try{return Vv(e,t)}finally{ce.current=n}},useReducer:function(e,t,n){V="useReducer",J();var a=ce.current;ce.current=cr;try{return kv(e,t,n)}finally{ce.current=a}},useRef:function(e){return V="useRef",J(),jv(e)},useState:function(e){V="useState",J();var t=ce.current;ce.current=cr;try{return dc(e)}finally{ce.current=t}},useDebugValue:function(e,t){return V="useDebugValue",J(),void 0},useDeferredValue:function(e){return V="useDeferredValue",J(),Bv(e)},useTransition:function(){return V="useTransition",J(),$v()},useMutableSource:function(e,t,n){return V="useMutableSource",J(),void 0},useSyncExternalStore:function(e,t,n){return V="useSyncExternalStore",J(),Ov(e,t,n)},useId:function(){return V="useId",J(),Pv()},unstable_isNewReconciler:Ye},Ng={readContext:function(e){return pn(e)},useCallback:function(e,t){return V="useCallback",J(),Sc(e,t)},useContext:function(e){return V="useContext",J(),pn(e)},useEffect:function(e,t){return V="useEffect",J(),Su(e,t)},useImperativeHandle:function(e,t,n){return V="useImperativeHandle",J(),gc(e,t,n)},useInsertionEffect:function(e,t){return V="useInsertionEffect",J(),hc(e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",J(),yc(e,t)},useMemo:function(e,t){V="useMemo",J();var n=ce.current;ce.current=qa;try{return Tc(e,t)}finally{ce.current=n}},useReducer:function(e,t,n){V="useReducer",J();var a=ce.current;ce.current=qa;try{return Mv(e,t,n)}finally{ce.current=a}},useRef:function(e){return V="useRef",J(),vc()},useState:function(e){V="useState",J();var t=ce.current;ce.current=qa;try{return Av(e)}finally{ce.current=t}},useDebugValue:function(e,t){return V="useDebugValue",J(),bc()},useDeferredValue:function(e){return V="useDeferredValue",J(),Eg(e)},useTransition:function(){return V="useTransition",J(),wg()},useMutableSource:function(e,t,n){return V="useMutableSource",J(),void 0},useSyncExternalStore:function(e,t,n){return V="useSyncExternalStore",J(),fc(e,t)},useId:function(){return V="useId",J(),Ec()},unstable_isNewReconciler:Ye},jg={readContext:function(e){return pn(e)},useCallback:function(e,t){return V="useCallback",J(),Sc(e,t)},useContext:function(e){return V="useContext",J(),pn(e)},useEffect:function(e,t){return V="useEffect",J(),Su(e,t)},useImperativeHandle:function(e,t,n){return V="useImperativeHandle",J(),gc(e,t,n)},useInsertionEffect:function(e,t){return V="useInsertionEffect",J(),hc(e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",J(),yc(e,t)},useMemo:function(e,t){V="useMemo",J();var n=ce.current;ce.current=xc;try{return Tc(e,t)}finally{ce.current=n}},useReducer:function(e,t,n){V="useReducer",J();var a=ce.current;ce.current=xc;try{return Lv(e,t,n)}finally{ce.current=a}},useRef:function(e){return V="useRef",J(),vc()},useState:function(e){V="useState",J();var t=ce.current;ce.current=xc;try{return Nv(e)}finally{ce.current=t}},useDebugValue:function(e,t){return V="useDebugValue",J(),bc()},useDeferredValue:function(e){return V="useDeferredValue",J(),Cg(e)},useTransition:function(){return V="useTransition",J(),Rg()},useMutableSource:function(e,t,n){return V="useMutableSource",J(),void 0},useSyncExternalStore:function(e,t,n){return V="useSyncExternalStore",J(),fc(e,t)},useId:function(){return V="useId",J(),Ec()},unstable_isNewReconciler:Ye},cr={readContext:function(e){return Yv(),pn(e)},useCallback:function(e,t){return V="useCallback",$e(),Mt(),Fv(e,t)},useContext:function(e){return V="useContext",$e(),Mt(),pn(e)},useEffect:function(e,t){return V="useEffect",$e(),Mt(),mc(e,t)},useImperativeHandle:function(e,t,n){return V="useImperativeHandle",$e(),Mt(),zv(e,t,n)},useInsertionEffect:function(e,t){return V="useInsertionEffect",$e(),Mt(),Uv(e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",$e(),Mt(),Hv(e,t)},useMemo:function(e,t){V="useMemo",$e(),Mt();var n=ce.current;ce.current=cr;try{return Vv(e,t)}finally{ce.current=n}},useReducer:function(e,t,n){V="useReducer",$e(),Mt();var a=ce.current;ce.current=cr;try{return kv(e,t,n)}finally{ce.current=a}},useRef:function(e){return V="useRef",$e(),Mt(),jv(e)},useState:function(e){V="useState",$e(),Mt();var t=ce.current;ce.current=cr;try{return dc(e)}finally{ce.current=t}},useDebugValue:function(e,t){return V="useDebugValue",$e(),Mt(),void 0},useDeferredValue:function(e){return V="useDeferredValue",$e(),Mt(),Bv(e)},useTransition:function(){return V="useTransition",$e(),Mt(),$v()},useMutableSource:function(e,t,n){return V="useMutableSource",$e(),Mt(),void 0},useSyncExternalStore:function(e,t,n){return V="useSyncExternalStore",$e(),Mt(),Ov(e,t,n)},useId:function(){return V="useId",$e(),Mt(),Pv()},unstable_isNewReconciler:Ye},qa={readContext:function(e){return Yv(),pn(e)},useCallback:function(e,t){return V="useCallback",$e(),J(),Sc(e,t)},useContext:function(e){return V="useContext",$e(),J(),pn(e)},useEffect:function(e,t){return V="useEffect",$e(),J(),Su(e,t)},useImperativeHandle:function(e,t,n){return V="useImperativeHandle",$e(),J(),gc(e,t,n)},useInsertionEffect:function(e,t){return V="useInsertionEffect",$e(),J(),hc(e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",$e(),J(),yc(e,t)},useMemo:function(e,t){V="useMemo",$e(),J();var n=ce.current;ce.current=qa;try{return Tc(e,t)}finally{ce.current=n}},useReducer:function(e,t,n){V="useReducer",$e(),J();var a=ce.current;ce.current=qa;try{return Mv(e,t,n)}finally{ce.current=a}},useRef:function(e){return V="useRef",$e(),J(),vc()},useState:function(e){V="useState",$e(),J();var t=ce.current;ce.current=qa;try{return Av(e)}finally{ce.current=t}},useDebugValue:function(e,t){return V="useDebugValue",$e(),J(),bc()},useDeferredValue:function(e){return V="useDeferredValue",$e(),J(),Eg(e)},useTransition:function(){return V="useTransition",$e(),J(),wg()},useMutableSource:function(e,t,n){return V="useMutableSource",$e(),J(),void 0},useSyncExternalStore:function(e,t,n){return V="useSyncExternalStore",$e(),J(),fc(e,t)},useId:function(){return V="useId",$e(),J(),Ec()},unstable_isNewReconciler:Ye},xc={readContext:function(e){return Yv(),pn(e)},useCallback:function(e,t){return V="useCallback",$e(),J(),Sc(e,t)},useContext:function(e){return V="useContext",$e(),J(),pn(e)},useEffect:function(e,t){return V="useEffect",$e(),J(),Su(e,t)},useImperativeHandle:function(e,t,n){return V="useImperativeHandle",$e(),J(),gc(e,t,n)},useInsertionEffect:function(e,t){return V="useInsertionEffect",$e(),J(),hc(e,t)},useLayoutEffect:function(e,t){return V="useLayoutEffect",$e(),J(),yc(e,t)},useMemo:function(e,t){V="useMemo",$e(),J();var n=ce.current;ce.current=qa;try{return Tc(e,t)}finally{ce.current=n}},useReducer:function(e,t,n){V="useReducer",$e(),J();var a=ce.current;ce.current=qa;try{return Lv(e,t,n)}finally{ce.current=a}},useRef:function(e){return V="useRef",$e(),J(),vc()},useState:function(e){V="useState",$e(),J();var t=ce.current;ce.current=qa;try{return Nv(e)}finally{ce.current=t}},useDebugValue:function(e,t){return V="useDebugValue",$e(),J(),bc()},useDeferredValue:function(e){return V="useDeferredValue",$e(),J(),Cg(e)},useTransition:function(){return V="useTransition",$e(),J(),Rg()},useMutableSource:function(e,t,n){return V="useMutableSource",$e(),J(),void 0},useSyncExternalStore:function(e,t,n){return V="useSyncExternalStore",$e(),J(),fc(e,t)},useId:function(){return V="useId",$e(),J(),Ec()},unstable_isNewReconciler:Ye}}var si=L.unstable_now,Ug=0,wc=-1,Tu=-1,Rc=-1,Wv=!1,Dc=!1;function Hg(){return Wv}function dw(){Dc=!0}function vw(){Wv=!1,Dc=!1}function pw(){Wv=Dc,Dc=!1}function zg(){return Ug}function Fg(){Ug=si()}function Iv(e){Tu=si(),e.actualStartTime<0&&(e.actualStartTime=si())}function Vg(e){Tu=-1}function _c(e,t){if(Tu>=0){var n=si()-Tu;e.actualDuration+=n,t&&(e.selfBaseDuration=n),Tu=-1}}function fr(e){if(wc>=0){var t=si()-wc;wc=-1;for(var n=e.return;n!==null;){switch(n.tag){case I:var a=n.stateNode;a.effectDuration+=t;return;case ot:var r=n.stateNode;r.effectDuration+=t;return}n=n.return}}}function qv(e){if(Rc>=0){var t=si()-Rc;Rc=-1;for(var n=e.return;n!==null;){switch(n.tag){case I:var a=n.stateNode;a!==null&&(a.passiveEffectDuration+=t);return;case ot:var r=n.stateNode;r!==null&&(r.passiveEffectDuration+=t);return}n=n.return}}}function dr(){wc=si()}function Gv(){Rc=si()}function Xv(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Ga(e,t){if(e&&e.defaultProps){var n=be({},t),a=e.defaultProps;for(var r in a)n[r]===void 0&&(n[r]=a[r]);return n}return t}var Qv={},Kv,Zv,Jv,ep,tp,Bg,kc,np,ap,rp,Eu;{Kv=new Set,Zv=new Set,Jv=new Set,ep=new Set,np=new Set,tp=new Set,ap=new Set,rp=new Set,Eu=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),d("%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),d("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))}},Object.defineProperty(Qv,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(Qv)}function ip(e,t,n,a){var r=e.memoizedState,i=n(a,r);{if(e.mode&on){Mn(!0);try{i=n(a,r)}finally{Mn(!1)}}Bg(t,i)}var o=i==null?r:be({},r,i);if(e.memoizedState=o,e.lanes===P){var l=e.updateQueue;l.baseState=o}}var op={isMounted:iT,enqueueSetState:function(e,t,n){var a=po(e),r=ta(),i=vi(a),o=Or(r,i);o.payload=t,n!=null&&(kc(n,"setState"),o.callback=n);var l=ii(a,o,i);l!==null&&(xn(l,a,i,r),rc(l,a,i)),Hf(a,i)},enqueueReplaceState:function(e,t,n){var a=po(e),r=ta(),i=vi(a),o=Or(r,i);o.tag=ig,o.payload=t,n!=null&&(kc(n,"replaceState"),o.callback=n);var l=ii(a,o,i);l!==null&&(xn(l,a,i,r),rc(l,a,i)),Hf(a,i)},enqueueForceUpdate:function(e,t){var n=po(e),a=ta(),r=vi(n),i=Or(a,r);i.tag=tc,t!=null&&(kc(t,"forceUpdate"),i.callback=t);var o=ii(n,i,r);o!==null&&(xn(o,n,r,a),rc(o,n,r)),UT(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&on){Mn(!0);try{u=l.shouldComponentUpdate(a,i,o)}finally{Mn(!1)}}u===void 0&&d("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",xt(t)||"Component")}return u}return t.prototype&&t.prototype.isPureReactComponent?!Yl(n,a)||!Yl(r,i):!0}function mw(e,t,n){var a=e.stateNode;{var r=xt(t)||"Component",i=a.render;i||(t.prototype&&typeof t.prototype.render=="function"?d("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",r):d("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",r)),a.getInitialState&&!a.getInitialState.isReactClassApproved&&!a.state&&d("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",r),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&d("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",r),a.propTypes&&d("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",r),a.contextType&&d("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",r),t.childContextTypes&&!Eu.has(t)&&(e.mode&on)===Ae&&(Eu.add(t),d(`%s uses the legacy childContextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() instead
|
|
|
|
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),t.contextTypes&&!Eu.has(t)&&(e.mode&on)===Ae&&(Eu.add(t),d(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
|
|
|
|
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),a.contextTypes&&d("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",r),t.contextType&&t.contextTypes&&!ap.has(t)&&(ap.add(t),d("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",r)),typeof a.componentShouldUpdate=="function"&&d("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",r),t.prototype&&t.prototype.isPureReactComponent&&typeof a.shouldComponentUpdate<"u"&&d("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",xt(t)||"A pure component"),typeof a.componentDidUnmount=="function"&&d("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",r),typeof a.componentDidReceiveProps=="function"&&d("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",r),typeof a.componentWillRecieveProps=="function"&&d("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",r),typeof a.UNSAFE_componentWillRecieveProps=="function"&&d("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",r);var o=a.props!==n;a.props!==void 0&&o&&d("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",r,r),a.defaultProps&&d("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",r,r),typeof a.getSnapshotBeforeUpdate=="function"&&typeof a.componentDidUpdate!="function"&&!Jv.has(t)&&(Jv.add(t),d("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",xt(t))),typeof a.getDerivedStateFromProps=="function"&&d("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof a.getDerivedStateFromError=="function"&&d("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof t.getSnapshotBeforeUpdate=="function"&&d("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",r);var l=a.state;l&&(typeof l!="object"||lt(l))&&d("%s.state: must be set to an object or null",r),typeof a.getChildContext=="function"&&typeof t.childContextTypes!="object"&&d("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",r)}}function Yg(e,t){t.updater=op,e.stateNode=t,tT(t,e),t._reactInternalInstance=Qv}function Wg(e,t,n){var a=!1,r=Ea,i=Ea,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===c&&o._context===void 0;if(!l&&!rp.has(t)){rp.add(t);var u="";o===void 0?u=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof o!="object"?u=" However, it is set to a "+typeof o+".":o.$$typeof===O?u=" Did you accidentally pass the Context.Provider instead?":o._context!==void 0?u=" Did you accidentally pass the Context.Consumer instead?":u=" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",d("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",xt(t)||"Component",u)}}if(typeof o=="object"&&o!==null)i=pn(o);else{r=Ao(e,t,!0);var f=t.contextTypes;a=f!=null,i=a?No(e,r):Ea}var v=new t(n,i);if(e.mode&on){Mn(!0);try{v=new t(n,i)}finally{Mn(!1)}}var b=e.memoizedState=v.state!==null&&v.state!==void 0?v.state:null;Yg(e,v);{if(typeof t.getDerivedStateFromProps=="function"&&b===null){var g=xt(t)||"Component";Zv.has(g)||(Zv.add(g),d("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",g,v.state===null?"null":"undefined",g))}if(typeof t.getDerivedStateFromProps=="function"||typeof v.getSnapshotBeforeUpdate=="function"){var R=null,M=null,j=null;if(typeof v.componentWillMount=="function"&&v.componentWillMount.__suppressDeprecationWarning!==!0?R="componentWillMount":typeof v.UNSAFE_componentWillMount=="function"&&(R="UNSAFE_componentWillMount"),typeof v.componentWillReceiveProps=="function"&&v.componentWillReceiveProps.__suppressDeprecationWarning!==!0?M="componentWillReceiveProps":typeof v.UNSAFE_componentWillReceiveProps=="function"&&(M="UNSAFE_componentWillReceiveProps"),typeof v.componentWillUpdate=="function"&&v.componentWillUpdate.__suppressDeprecationWarning!==!0?j="componentWillUpdate":typeof v.UNSAFE_componentWillUpdate=="function"&&(j="UNSAFE_componentWillUpdate"),R!==null||M!==null||j!==null){var ae=xt(t)||"Component",ke=typeof t.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";ep.has(ae)||(ep.add(ae),d(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
|
|
%s uses %s but also contains the following legacy lifecycles:%s%s%s
|
|
|
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
https://reactjs.org/link/unsafe-component-lifecycles`,ae,ke,R!==null?`
|
|
`+R:"",M!==null?`
|
|
`+M:"",j!==null?`
|
|
`+j:""))}}}return a&&Ny(e,r,i),v}function hw(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(d("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Xe(e)||"Component"),op.enqueueReplaceState(t,t.state,null))}function Ig(e,t,n,a){var r=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==r){{var i=Xe(e)||"Component";Kv.has(i)||(Kv.add(i),d("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i))}op.enqueueReplaceState(t,t.state,null)}}function lp(e,t,n,a){mw(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=pn(i);else{var o=Ao(e,t,!0);r.context=No(e,o)}{if(r.state===n){var l=xt(t)||"Component";np.has(l)||(np.add(l),d("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",l))}e.mode&on&&Wa.recordLegacyContextWarning(e,r),Wa.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")&&(hw(e,r),ic(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var f=wt;f|=Mi,(e.mode&rr)!==Ae&&(f|=qr),e.flags|=f}}function yw(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=Ea;if(typeof l=="object"&&l!==null)u=pn(l);else{var f=Ao(e,t,!0);u=No(e,f)}var v=t.getDerivedStateFromProps,b=typeof v=="function"||typeof r.getSnapshotBeforeUpdate=="function";!b&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&Ig(e,r,n,u),lg();var g=e.memoizedState,R=r.state=g;if(ic(e,n,r,a),R=e.memoizedState,i===n&&g===R&&!Vs()&&!oc()){if(typeof r.componentDidMount=="function"){var M=wt;M|=Mi,(e.mode&rr)!==Ae&&(M|=qr),e.flags|=M}return!1}typeof v=="function"&&(ip(e,t,v,n),R=e.memoizedState);var j=oc()||Pg(e,t,i,n,g,R,u);if(j){if(!b&&(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 ae=wt;ae|=Mi,(e.mode&rr)!==Ae&&(ae|=qr),e.flags|=ae}}else{if(typeof r.componentDidMount=="function"){var ke=wt;ke|=Mi,(e.mode&rr)!==Ae&&(ke|=qr),e.flags|=ke}e.memoizedProps=n,e.memoizedState=R}return r.props=n,r.state=R,r.context=u,j}function gw(e,t,n,a,r){var i=t.stateNode;og(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:Ga(t.type,o);i.props=l;var u=t.pendingProps,f=i.context,v=n.contextType,b=Ea;if(typeof v=="object"&&v!==null)b=pn(v);else{var g=Ao(t,n,!0);b=No(t,g)}var R=n.getDerivedStateFromProps,M=typeof R=="function"||typeof i.getSnapshotBeforeUpdate=="function";!M&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||f!==b)&&Ig(t,i,a,b),lg();var j=t.memoizedState,ae=i.state=j;if(ic(t,a,i,r),ae=t.memoizedState,o===u&&j===ae&&!Vs()&&!oc())return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||j!==e.memoizedState)&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||j!==e.memoizedState)&&(t.flags|=ho),!1;typeof R=="function"&&(ip(t,n,R,a),ae=t.memoizedState);var ke=oc()||Pg(t,n,l,a,j,ae,b)||Fe;return ke?(!M&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(a,ae,b),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(a,ae,b)),typeof i.componentDidUpdate=="function"&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=ho)):(typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||j!==e.memoizedState)&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||j!==e.memoizedState)&&(t.flags|=ho),t.memoizedProps=a,t.memoizedState=ae),i.props=a,i.state=ae,i.context=b,ke}function Gi(e,t){return{value:e,source:t,stack:Si(t),digest:null}}function up(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function bw(e,t){return!0}function sp(e,t){try{var n=bw(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===te)return;console.error(a)}var l=r?Xe(r):null,u=l?"The above error occurred in the <"+l+"> component:":"The above error occurred in one of your React components:",f;if(e.tag===I)f=`Consider adding an error boundary to your tree to customize error handling behavior.
|
|
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var v=Xe(e)||"Anonymous";f="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+v+".")}var b=u+`
|
|
`+o+`
|
|
|
|
`+(""+f);console.error(b)}catch(g){setTimeout(function(){throw g})}}var Sw=typeof WeakMap=="function"?WeakMap:Map;function qg(e,t,n){var a=Or(It,n);a.tag=pv,a.payload={element:null};var r=t.value;return a.callback=function(){dD(r),sp(e,t)},a}function cp(e,t,n){var a=Or(It,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"&&cD(this);var u=t.value,f=t.stack;this.componentDidCatch(u,{componentStack:f!==null?f:""}),typeof r!="function"&&(ga(e.lanes,Be)||d("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Xe(e)||"Unknown"))}),a}function Gg(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new Sw,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=vD.bind(null,e,t,n);Ba&&Fu(e,n),t.then(i,i)}}function Tw(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 Ew(e,t){var n=e.tag;if((e.mode&vt)===Ae&&(n===he||n===_e||n===De)){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===_&&nw(t))return t;t=t.return}while(t!==null);return null}function Qg(e,t,n,a,r){if((e.mode&vt)===Ae){if(e===t)e.flags|=Va;else{if(e.flags|=kt,n.flags|=kf,n.flags&=-52805,n.tag===te){var i=n.alternate;if(i===null)n.tag=Me;else{var o=Or(It,Be);o.tag=tc,ii(n,o,Be)}}n.lanes=tt(n.lanes,Be)}return e}return e.flags|=Va,e.lanes=r,e}function Cw(e,t,n,a,r){if(n.flags|=rs,Ba&&Fu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;Ew(n),Nn()&&n.mode&vt&&By();var o=Xg(t);if(o!==null){o.flags&=-257,Qg(o,t,n,e,r),o.mode&vt&&Gg(e,i,r),Tw(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&vt){By();var u=Xg(t);if(u!==null){(u.flags&Va)===je&&(u.flags|=Ri),Qg(u,t,n,e,r),nv(Gi(a,n));return}}a=Gi(a,n),nD(a);var f=t;do{switch(f.tag){case I:{var v=a;f.flags|=Va;var b=kl(r);f.lanes=tt(f.lanes,b);var g=qg(f,v,b);yv(f,g);return}case te:var R=a,M=f.type,j=f.stateNode;if((f.flags&kt)===je&&(typeof M.getDerivedStateFromError=="function"||j!==null&&typeof j.componentDidCatch=="function"&&!Xb(j))){f.flags|=Va;var ae=kl(r);f.lanes=tt(f.lanes,ae);var ke=cp(f,R,ae);yv(f,ke);return}break}f=f.return}while(f!==null)}function xw(){return null}var Cu=me.ReactCurrentOwner,Xa=!1,fp,xu,dp,vp,pp,Xi,mp,Mc,wu;fp={},xu={},dp={},vp={},pp={},Xi=!1,mp={},Mc={},wu={};function Jn(e,t,n,a){e===null?t.child=Jy(t,null,n,a):t.child=zo(t,e.child,n,a)}function ww(e,t,n,a){t.child=zo(t,e.child,null,a),t.child=zo(t,null,n,a)}function Kg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Pa(i,a,"prop",xt(n))}var o=n.render,l=t.ref,u,f;Vo(t,r),Cl(t);{if(Cu.current=t,Ra(!0),u=Io(e,t,o,a,l,r),f=qo(),t.mode&on){Mn(!0);try{u=Io(e,t,o,a,l,r),f=qo()}finally{Mn(!1)}}Ra(!1)}return bo(),e!==null&&!Xa?(vg(e,t,r),Ar(e,t,r)):(Nn()&&f&&Qd(t),t.flags|=mo,Jn(e,t,u,r),t.child)}function Zg(e,t,n,a,r){if(e===null){var i=n.type;if(MD(i)&&n.compare===null&&n.defaultProps===void 0){var o=i;return o=tl(i),t.tag=De,t.type=o,gp(t,i),Jg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Pa(l,a,"prop",xt(i)),n.defaultProps!==void 0){var u=xt(i)||"Unknown";wu[u]||(d("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),wu[u]=!0)}}var f=em(n.type,null,a,t,t.mode,r);return f.ref=t.ref,f.return=t,t.child=f,f}{var v=n.type,b=v.propTypes;b&&Pa(b,a,"prop",xt(v))}var g=e.child,R=xp(e,r);if(!R){var M=g.memoizedProps,j=n.compare;if(j=j!==null?j:Yl,j(M,a)&&e.ref===t.ref)return Ar(e,t,r)}t.flags|=mo;var ae=eo(g,a);return ae.ref=t.ref,ae.return=t,t.child=ae,ae}function Jg(e,t,n,a,r){if(t.type!==t.elementType){var i=t.elementType;if(i.$$typeof===z){var o=i,l=o._payload,u=o._init;try{i=u(l)}catch{i=null}var f=i&&i.propTypes;f&&Pa(f,a,"prop",xt(i))}}if(e!==null){var v=e.memoizedProps;if(Yl(v,a)&&e.ref===t.ref&&t.type===e.type)if(Xa=!1,t.pendingProps=a=v,xp(e,r))(e.flags&kf)!==je&&(Xa=!0);else return t.lanes=e.lanes,Ar(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&vt)===Ae){var o={baseLanes:P,cachePool:null,transitions:null};t.memoizedState=o,Pc(t,n)}else if(ga(n,Da)){var b={baseLanes:P,cachePool:null,transitions:null};t.memoizedState=b;var g=i!==null?i.baseLanes:n;Pc(t,g)}else{var l=null,u;if(i!==null){var f=i.baseLanes;u=tt(f,n)}else u=n;t.lanes=t.childLanes=Da;var v={baseLanes:u,cachePool:l,transitions:null};return t.memoizedState=v,t.updateQueue=null,Pc(t,u),null}else{var R;i!==null?(R=tt(i.baseLanes,n),t.memoizedState=null):R=n,Pc(t,R)}return Jn(e,t,r,n),t.child}function Rw(e,t,n){var a=t.pendingProps;return Jn(e,t,a,n),t.child}function Dw(e,t,n){var a=t.pendingProps.children;return Jn(e,t,a,n),t.child}function _w(e,t,n){{t.flags|=wt;{var a=t.stateNode;a.effectDuration=0,a.passiveEffectDuration=0}}var r=t.pendingProps,i=r.children;return Jn(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|=Di,t.flags|=Mf)}function hp(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Pa(i,a,"prop",xt(n))}var o;{var l=Ao(t,n,!0);o=No(t,l)}var u,f;Vo(t,r),Cl(t);{if(Cu.current=t,Ra(!0),u=Io(e,t,n,a,o,r),f=qo(),t.mode&on){Mn(!0);try{u=Io(e,t,n,a,o,r),f=qo()}finally{Mn(!1)}}Ra(!1)}return bo(),e!==null&&!Xa?(vg(e,t,r),Ar(e,t,r)):(Nn()&&f&&Qd(t),t.flags|=mo,Jn(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|=kt,t.flags|=Va;var f=new Error("Simulated error coming from DevTools"),v=kl(r);t.lanes=tt(t.lanes,v);var b=cp(t,Gi(f,t),v);yv(t,b);break}}if(t.type!==t.elementType){var g=n.propTypes;g&&Pa(g,a,"prop",xt(n))}}var R;lr(n)?(R=!0,$s(t)):R=!1,Vo(t,r);var M=t.stateNode,j;M===null?(Oc(e,t),Wg(t,n,a),lp(t,n,a,r),j=!0):e===null?j=yw(t,n,a,r):j=gw(e,t,n,a,r);var ae=yp(e,t,n,j,R,r);{var ke=t.stateNode;j&&ke.props!==a&&(Xi||d("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Xe(t)||"a component"),Xi=!0)}return ae}function yp(e,t,n,a,r,i){tb(e,t);var o=(t.flags&kt)!==je;if(!a&&!o)return r&&Hy(t,n,!1),Ar(e,t,i);var l=t.stateNode;Cu.current=t;var u;if(o&&typeof n.getDerivedStateFromError!="function")u=null,Vg();else{Cl(t);{if(Ra(!0),u=l.render(),t.mode&on){Mn(!0);try{l.render()}finally{Mn(!1)}}Ra(!1)}bo()}return t.flags|=mo,e!==null&&o?ww(e,t,u,i):Jn(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 kw(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},f=t.updateQueue;if(f.baseState=u,t.memoizedState=u,t.flags&Ri){var v=Gi(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,v)}else if(l!==i){var b=Gi(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,b)}else{O1(t);var g=Jy(t,null,l,n);t.child=g;for(var R=g;R;)R.flags=R.flags&-3|_i,R=R.sibling}}else{if(Ho(),l===i)return Ar(e,t,n);Jn(e,t,l,n)}return t.child}function rb(e,t,n,a,r){return Ho(),nv(r),t.flags|=Ri,Jn(e,t,n,a),t.child}function Mw(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),Jn(e,t,o,n),t.child}function Lw(e,t){return e===null&&tv(t),null}function Ow(e,t,n,a){Oc(e,t);var r=t.pendingProps,i=n,o=i._payload,l=i._init,u=l(o);t.type=u;var f=t.tag=LD(u),v=Ga(u,r),b;switch(f){case he:return gp(t,u),t.type=u=tl(u),b=hp(null,t,u,v,a),b;case te:return t.type=u=Gp(u),b=nb(null,t,u,v,a),b;case _e:return t.type=u=Xp(u),b=Kg(null,t,u,v,a),b;case ne:{if(t.type!==t.elementType){var g=u.propTypes;g&&Pa(g,v,"prop",xt(u))}return b=Zg(null,t,u,Ga(u.type,v),a),b}}var R="";throw u!==null&&typeof u=="object"&&u.$$typeof===z&&(R=" 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."+R))}function Aw(e,t,n,a,r){Oc(e,t),t.tag=te;var i;return lr(n)?(i=!0,$s(t)):i=!1,Vo(t,r),Wg(t,n,a),lp(t,n,a,r),yp(null,t,n,!0,i,r)}function Nw(e,t,n,a){Oc(e,t);var r=t.pendingProps,i;{var o=Ao(t,n,!1);i=No(t,o)}Vo(t,a);var l,u;Cl(t);{if(n.prototype&&typeof n.prototype.render=="function"){var f=xt(n)||"Unknown";fp[f]||(d("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",f,f),fp[f]=!0)}t.mode&on&&Wa.recordLegacyContextWarning(t,null),Ra(!0),Cu.current=t,l=Io(null,t,n,r,i,a),u=qo(),Ra(!1)}if(bo(),t.flags|=mo,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){var v=xt(n)||"Unknown";xu[v]||(d("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",v,v,v),xu[v]=!0)}if(typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0){{var b=xt(n)||"Unknown";xu[b]||(d("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",b,b,b),xu[b]=!0)}t.tag=te,t.memoizedState=null,t.updateQueue=null;var g=!1;return lr(n)?(g=!0,$s(t)):g=!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,g,a)}else{if(t.tag=he,t.mode&on){Mn(!0);try{l=Io(null,t,n,r,i,a),u=qo()}finally{Mn(!1)}}return Nn()&&u&&Qd(t),Jn(null,t,l,a),gp(t,n),t.child}}function gp(e,t){{if(t&&t.childContextTypes&&d("%s(...): childContextTypes cannot be defined on a function component.",t.displayName||t.name||"Component"),e.ref!==null){var n="",a=Yr();a&&(n+=`
|
|
|
|
Check the render method of \``+a+"`.");var r=a||"",i=e._debugSource;i&&(r=i.fileName+":"+i.lineNumber),pp[r]||(pp[r]=!0,d("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(t.defaultProps!==void 0){var o=xt(t)||"Unknown";wu[o]||(d("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),wu[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=xt(t)||"Unknown";vp[l]||(d("%s: Function components do not support getDerivedStateFromProps.",l),vp[l]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=xt(t)||"Unknown";dp[u]||(d("%s: Function components do not support contextType.",u),dp[u]=!0)}}}var bp={dehydrated:null,treeContext:null,retryLane:Ln};function Sp(e){return{baseLanes:e,cachePool:xw(),transitions:null}}function jw(e,t){var n=null;return{baseLanes:tt(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function Uw(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return Tv(e,pu)}function Hw(e,t){return fs(e.childLanes,t)}function ib(e,t,n){var a=t.pendingProps;ID(t)&&(t.flags|=kt);var r=Ia.current,i=!1,o=(t.flags&kt)!==je;if(o||Uw(r,e)?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r=tw(r,dg)),r=$o(r),li(t,r),e===null){tv(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return $w(t,u)}var f=a.children,v=a.fallback;if(i){var b=zw(t,f,v,n),g=t.child;return g.memoizedState=Sp(n),t.memoizedState=bp,b}else return Tp(t,f)}else{var R=e.memoizedState;if(R!==null){var M=R.dehydrated;if(M!==null)return Pw(e,t,o,a,M,R,n)}if(i){var j=a.fallback,ae=a.children,ke=Vw(e,t,ae,j,n),we=t.child,mt=e.child.memoizedState;return we.memoizedState=mt===null?Sp(n):jw(mt,n),we.childLanes=Hw(e,n),t.memoizedState=bp,ke}else{var ut=a.children,E=Fw(e,t,ut,n);return t.memoizedState=null,E}}}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 zw(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&vt)===Ae&&i!==null?(l=i,l.childLanes=P,l.pendingProps=o,e.mode&Nt&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=mi(n,r,a,null)):(l=Ep(o,r),u=mi(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 eo(e,t)}function Fw(e,t,n,a){var r=e.child,i=r.sibling,o=ob(r,{mode:"visible",children:n});if((t.mode&vt)===Ae&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=wi):l.push(i)}return t.child=o,o}function Vw(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},f;if((i&vt)===Ae&&t.child!==o){var v=t.child;f=v,f.childLanes=P,f.pendingProps=u,t.mode&Nt&&(f.actualDuration=0,f.actualStartTime=-1,f.selfBaseDuration=o.selfBaseDuration,f.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else f=ob(o,u),f.subtreeFlags=o.subtreeFlags&Cr;var b;return l!==null?b=eo(l,a):(b=mi(a,i,r,null),b.flags|=_n),b.return=t,f.return=t,f.sibling=b,t.child=f,b}function Lc(e,t,n,a){a!==null&&nv(a),zo(t,e.child,null,n);var r=t.pendingProps,i=r.children,o=Tp(t,i);return o.flags|=_n,t.memoizedState=null,o}function Bw(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Ep(o,i),u=mi(a,i,r,null);return u.flags|=_n,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&vt)!==Ae&&zo(t,e.child,null,r),u}function $w(e,t,n){return(e.mode&vt)===Ae?(d("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=Be):Vd(t)?e.lanes=Ai:e.lanes=Da,null}function Pw(e,t,n,a,r,i,o){if(n)if(t.flags&Ri){t.flags&=-257;var E=up(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Lc(e,t,o,E)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=kt,null;var U=a.children,C=a.fallback,Y=Bw(e,t,U,C,o),de=t.child;return de.memoizedState=Sp(o),t.memoizedState=bp,Y}else{if(M1(),(t.mode&vt)===Ae)return Lc(e,t,o,null);if(Vd(r)){var l,u,f;{var v=qx(r);l=v.digest,u=v.message,f=v.stack}var b;u?b=new Error(u):b=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var g=up(b,l,f);return Lc(e,t,o,g)}var R=ga(o,e.childLanes);if(Xa||R){var M=$c();if(M!==null){var j=JT(M,o);if(j!==Ln&&j!==i.retryLane){i.retryLane=j;var ae=It;sa(e,j),xn(M,e,j,ae)}}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|=kt,t.child=e.child;var we=pD.bind(null,e);return Gx(r,we),null}else{A1(t,r,i.treeContext);var mt=a.children,ut=Tp(t,mt);return ut.flags|=_i,ut}}}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 Yw(e,t,n){for(var a=t;a!==null;){if(a.tag===_){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 Iw(e){if(e!==void 0&&e!=="forwards"&&e!=="backwards"&&e!=="together"&&!mp[e])if(mp[e]=!0,typeof e=="string")switch(e.toLowerCase()){case"together":case"forwards":case"backwards":{d('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',e,e.toLowerCase());break}case"forward":case"backward":{d('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',e,e.toLowerCase());break}default:d('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e);break}else d('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',e)}function qw(e,t){e!==void 0&&!Mc[e]&&(e!=="collapsed"&&e!=="hidden"?(Mc[e]=!0,d('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',e)):t!=="forwards"&&t!=="backwards"&&(Mc[e]=!0,d('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',e)))}function ub(e,t){{var n=lt(e),a=!n&&typeof ft(e)=="function";if(n||a){var r=n?"array":"iterable";return d("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",r,t,r),!1}}return!0}function Gw(e,t){if((t==="forwards"||t==="backwards")&&e!==void 0&&e!==null&&e!==!1)if(lt(e)){for(var n=0;n<e.length;n++)if(!ub(e[n],n))return}else{var a=ft(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 d('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',t)}}function Cp(e,t,n,a,r){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:a,tail:n,tailMode:r}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=a,i.tail=n,i.tailMode=r)}function sb(e,t,n){var a=t.pendingProps,r=a.revealOrder,i=a.tail,o=a.children;Iw(r),qw(i,r),Gw(o,r),Jn(e,t,o,n);var l=Ia.current,u=Tv(l,pu);if(u)l=Ev(l,pu),t.flags|=kt;else{var f=e!==null&&(e.flags&kt)!==je;f&&Yw(t,t.child,n),l=$o(l)}if(li(t,l),(t.mode&vt)===Ae)t.memoizedState=null;else switch(r){case"forwards":{var v=Ww(t.child),b;v===null?(b=t.child,t.child=null):(b=v.sibling,v.sibling=null),Cp(t,!1,b,v,i);break}case"backwards":{var g=null,R=t.child;for(t.child=null;R!==null;){var M=R.alternate;if(M!==null&&sc(M)===null){t.child=R;break}var j=R.sibling;R.sibling=g,g=R,R=j}Cp(t,!0,g,null,i);break}case"together":{Cp(t,!1,null,null,void 0);break}default:t.memoizedState=null}return t.child}function Xw(e,t,n){gv(t,t.stateNode.containerInfo);var a=t.pendingProps;return e===null?t.child=zo(t,null,a,n):Jn(e,t,a,n),t.child}var cb=!1;function Qw(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,d("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var u=t.type.propTypes;u&&Pa(u,i,"prop","Context.Provider")}if(ng(t,r,l),o!==null){var f=o.value;if(Ta(f,l)){if(o.children===i.children&&!Vs())return Ar(e,t,n)}else I1(t,r,n)}var v=i.children;return Jn(e,t,v,n),t.child}var fb=!1;function Kw(e,t,n){var a=t.type;a._context===void 0?a!==a.Consumer&&(fb||(fb=!0,d("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):a=a._context;var r=t.pendingProps,i=r.children;typeof i!="function"&&d("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Vo(t,n);var o=pn(a);Cl(t);var l;return Cu.current=t,Ra(!0),l=i(o),Ra(!1),bo(),t.flags|=mo,Jn(e,t,l,n),t.child}function Ru(){Xa=!0}function Oc(e,t){(t.mode&vt)===Ae&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=_n)}function Ar(e,t,n){return e!==null&&(t.dependencies=e.dependencies),Vg(),zu(t.lanes),ga(n,t.childLanes)?(Y1(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|=wi):i.push(e),n.flags|=_n,n}}function xp(e,t){var n=e.lanes;return!!ga(n,t)}function Jw(e,t,n){switch(t.tag){case I:ab(t),t.stateNode,Ho();break;case K:cg(t);break;case te:{var a=t.type;lr(a)&&$s(t);break}case H:gv(t,t.stateNode.containerInfo);break;case Pe:{var r=t.memoizedProps.value,i=t.type._context;ng(t,i,r);break}case ot:{var o=ga(n,t.childLanes);o&&(t.flags|=wt);{var l=t.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}}break;case _:{var u=t.memoizedState;if(u!==null){if(u.dehydrated!==null)return li(t,$o(Ia.current)),t.flags|=kt,null;var f=t.child,v=f.childLanes;if(ga(n,v))return ib(e,t,n);li(t,$o(Ia.current));var b=Ar(e,t,n);return b!==null?b.sibling:null}else li(t,$o(Ia.current));break}case nt:{var g=(e.flags&kt)!==je,R=ga(n,t.childLanes);if(g){if(R)return sb(e,t,n);t.flags|=kt}var M=t.memoizedState;if(M!==null&&(M.rendering=null,M.tail=null,M.lastEffect=null),li(t,Ia.current),R)break;return null}case Le:case Ke:return t.lanes=P,eb(e,t,n)}return Ar(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)Xa=!0;else{var i=xp(e,n);if(!i&&(t.flags&kt)===je)return Xa=!1,Jw(e,t,n);(e.flags&kf)!==je?Xa=!0:Xa=!1}}else if(Xa=!1,Nn()&&x1(t)){var o=t.index,l=w1();Vy(t,l,o)}switch(t.lanes=P,t.tag){case bt:return Nw(e,t,t.type,n);case Vt:{var u=t.elementType;return Ow(e,t,u,n)}case he:{var f=t.type,v=t.pendingProps,b=t.elementType===f?v:Ga(f,v);return hp(e,t,f,b,n)}case te:{var g=t.type,R=t.pendingProps,M=t.elementType===g?R:Ga(g,R);return nb(e,t,g,M,n)}case I:return kw(e,t,n);case K:return Mw(e,t,n);case Oe:return Lw(e,t);case _:return ib(e,t,n);case H:return Xw(e,t,n);case _e:{var j=t.type,ae=t.pendingProps,ke=t.elementType===j?ae:Ga(j,ae);return Kg(e,t,j,ke,n)}case zt:return Rw(e,t,n);case qt:return Dw(e,t,n);case ot:return _w(e,t,n);case Pe:return Qw(e,t,n);case St:return Kw(e,t,n);case ne:{var we=t.type,mt=t.pendingProps,ut=Ga(we,mt);if(t.type!==t.elementType){var E=we.propTypes;E&&Pa(E,ut,"prop",xt(we))}return ut=Ga(we.type,ut),Zg(e,t,we,ut,n)}case De:return Jg(e,t,t.type,t.pendingProps,n);case Me:{var U=t.type,C=t.pendingProps,Y=t.elementType===U?C:Ga(U,C);return Aw(e,t,U,Y,n)}case nt:return sb(e,t,n);case oe:break;case Le: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 Go(e){e.flags|=wt}function vb(e){e.flags|=Di,e.flags|=Mf}var pb,wp,mb,hb;pb=function(e,t,n,a){for(var r=t.child;r!==null;){if(r.tag===K||r.tag===Oe)Tx(e,r.stateNode);else if(r.tag!==H){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=Cx(o,n,i,a,r,l);t.updateQueue=u,u&&Go(t)}},hb=function(e,t,n,a){n!==a&&Go(t)};function Du(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&Nt)!==Ae){for(var u=e.selfBaseDuration,f=e.child;f!==null;)n=tt(n,tt(f.lanes,f.childLanes)),a|=f.subtreeFlags&Cr,a|=f.flags&Cr,u+=f.treeBaseDuration,f=f.sibling;e.treeBaseDuration=u}else for(var v=e.child;v!==null;)n=tt(n,tt(v.lanes,v.childLanes)),a|=v.subtreeFlags&Cr,a|=v.flags&Cr,v.return=e,v=v.sibling;e.subtreeFlags|=a}else{if((e.mode&Nt)!==Ae){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 eR(e,t,n){if(z1()&&(t.mode&vt)!==Ae&&(t.flags&kt)===je)return qy(t),Ho(),t.flags|=Ri|rs|Va,!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(U1(t),Un(t),(t.mode&Nt)!==Ae){var r=n!==null;if(r){var i=t.child;i!==null&&(t.treeBaseDuration-=i.treeBaseDuration)}}return!1}else{if(Ho(),(t.flags&kt)===je&&(t.memoizedState=null),t.flags|=wt,Un(t),(t.mode&Nt)!==Ae){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 bt:case Vt:case De:case he:case _e:case zt:case qt:case ot:case St:case ne:return Un(t),null;case te:{var r=t.type;return lr(r)&&Bs(t),Un(t),null}case I:{var i=t.stateNode;if(Bo(t),qd(t),xv(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),e===null||e.child===null){var o=qs(t);if(o)Go(t);else if(e!==null){var l=e.memoizedState;(!l.isDehydrated||(t.flags&Ri)!==je)&&(t.flags|=ho,Gy())}}return wp(e,t),Un(t),null}case K:{Sv(t);var u=sg(),f=t.type;if(e!==null&&t.stateNode!=null)mb(e,t,f,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 v=bv(),b=qs(t);if(b)N1(t,u,v)&&Go(t);else{var g=Sx(f,a,u,v,t);pb(g,t,!1,!1),t.stateNode=g,Ex(g,f,a,u)&&Go(t)}t.ref!==null&&vb(t)}return Un(t),null}case Oe:{var R=a;if(e&&t.stateNode!=null){var M=e.memoizedProps;hb(e,t,M,R)}else{if(typeof R!="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 j=sg(),ae=bv(),ke=qs(t);ke?j1(t)&&Go(t):t.stateNode=xx(R,j,ae,t)}return Un(t),null}case _:{Po(t);var we=t.memoizedState;if(e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){var mt=eR(e,t,we);if(!mt)return t.flags&Va?t:null}if((t.flags&kt)!==je)return t.lanes=n,(t.mode&Nt)!==Ae&&Xv(t),t;var ut=we!==null,E=e!==null&&e.memoizedState!==null;if(ut!==E&&ut){var U=t.child;if(U.flags|=ki,(t.mode&vt)!==Ae){var C=e===null&&(t.memoizedProps.unstable_avoidThisFallback!==!0||!0);C||Tv(Ia.current,dg)?tD():Pp()}}var Y=t.updateQueue;if(Y!==null&&(t.flags|=wt),Un(t),(t.mode&Nt)!==Ae&&ut){var de=t.child;de!==null&&(t.treeBaseDuration-=de.treeBaseDuration)}return null}case H:return Bo(t),wp(e,t),e===null&&y1(t.stateNode.containerInfo),Un(t),null;case Pe:var ie=t.type._context;return fv(ie,t),Un(t),null;case Me:{var He=t.type;return lr(He)&&Bs(t),Un(t),null}case nt:{Po(t);var qe=t.memoizedState;if(qe===null)return Un(t),null;var Ut=(t.flags&kt)!==je,Et=qe.rendering;if(Et===null)if(Ut)Du(qe,!1);else{var sn=aD()&&(e===null||(e.flags&kt)===je);if(!sn)for(var Ct=t.child;Ct!==null;){var ln=sc(Ct);if(ln!==null){Ut=!0,t.flags|=kt,Du(qe,!1);var Gn=ln.updateQueue;return Gn!==null&&(t.updateQueue=Gn,t.flags|=wt),t.subtreeFlags=je,W1(t,n),li(t,Ev(Ia.current,pu)),t.child}Ct=Ct.sibling}qe.tail!==null&&kn()>zb()&&(t.flags|=kt,Ut=!0,Du(qe,!1),t.lanes=hh)}else{if(!Ut){var Bn=sc(Et);if(Bn!==null){t.flags|=kt,Ut=!0;var xa=Bn.updateQueue;if(xa!==null&&(t.updateQueue=xa,t.flags|=wt),Du(qe,!0),qe.tail===null&&qe.tailMode==="hidden"&&!Et.alternate&&!Nn())return Un(t),null}else kn()*2-qe.renderingStartTime>zb()&&n!==Da&&(t.flags|=kt,Ut=!0,Du(qe,!1),t.lanes=hh)}if(qe.isBackwards)Et.sibling=t.child,t.child=Et;else{var na=qe.last;na!==null?na.sibling=Et:t.child=Et,qe.last=Et}}if(qe.tail!==null){var aa=qe.tail;qe.rendering=aa,qe.tail=aa.sibling,qe.renderingStartTime=kn(),aa.sibling=null;var Xn=Ia.current;return Ut?Xn=Ev(Xn,pu):Xn=$o(Xn),li(t,Xn),aa}return Un(t),null}case oe:break;case Le:case Ke:{$p(t);var zr=t.memoizedState,nl=zr!==null;if(e!==null){var Pu=e.memoizedState,mr=Pu!==null;mr!==nl&&(t.flags|=ki)}return!nl||(t.mode&vt)===Ae?Un(t):ga(pr,Da)&&(Un(t),t.subtreeFlags&(_n|wt)&&(t.flags|=ki)),null}case le:return null;case W: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 tR(e,t,n){switch(Kd(t),t.tag){case te:{var a=t.type;lr(a)&&Bs(t);var r=t.flags;return r&Va?(t.flags=r&-65537|kt,(t.mode&Nt)!==Ae&&Xv(t),t):null}case I:{t.stateNode,Bo(t),qd(t),xv();var i=t.flags;return(i&Va)!==je&&(i&kt)===je?(t.flags=i&-65537|kt,t):null}case K:return Sv(t),null;case _:{Po(t);var o=t.memoizedState;if(o!==null&&o.dehydrated!==null){if(t.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Ho()}var l=t.flags;return l&Va?(t.flags=l&-65537|kt,(t.mode&Nt)!==Ae&&Xv(t),t):null}case nt:return Po(t),null;case H:return Bo(t),null;case Pe:var u=t.type._context;return fv(u,t),null;case Le:case Ke:return $p(t),null;case le:return null;default:return null}}function gb(e,t,n){switch(Kd(t),t.tag){case te:{var a=t.type.childContextTypes;a!=null&&Bs(t);break}case I:{t.stateNode,Bo(t),qd(t),xv();break}case K:{Sv(t);break}case H:Bo(t);break;case _:Po(t);break;case nt:Po(t);break;case Pe:var r=t.type._context;fv(r,t);break;case Le:case Ke:$p(t);break}}var bb=null;bb=new Set;var Ac=!1,Hn=!1,nR=typeof WeakSet=="function"?WeakSet:Set,ge=null,Xo=null,Qo=null;function aR(e){Rf(null,function(){throw e}),Df()}var rR=function(e,t){if(t.props=e.memoizedProps,t.state=e.memoizedState,e.mode&Nt)try{dr(),t.componentWillUnmount()}finally{fr(e)}else t.componentWillUnmount()};function Sb(e,t){try{ci(gn,e)}catch(n){$t(e,t,n)}}function Rp(e,t,n){try{rR(e,n)}catch(a){$t(e,t,a)}}function iR(e,t,n){try{n.componentDidMount()}catch(a){$t(e,t,a)}}function Tb(e,t){try{Cb(e)}catch(n){$t(e,t,n)}}function Ko(e,t){var n=e.ref;if(n!==null)if(typeof n=="function"){var a;try{if(Ue&&cn&&e.mode&Nt)try{dr(),a=n(null)}finally{fr(e)}else a=n(null)}catch(r){$t(e,t,r)}typeof a=="function"&&d("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Xe(e))}else n.current=null}function Nc(e,t,n){try{n()}catch(a){$t(e,t,a)}}var Eb=!1;function oR(e,t){gx(e.containerInfo),ge=t,lR();var n=Eb;return Eb=!1,n}function lR(){for(;ge!==null;){var e=ge,t=e.child;(e.subtreeFlags&Af)!==je&&t!==null?(t.return=e,ge=t):uR()}}function uR(){for(;ge!==null;){var e=ge;Jt(e);try{sR(e)}catch(n){$t(e,e.return,n)}Dn();var t=e.sibling;if(t!==null){t.return=e.return,ge=t;return}ge=e.return}}function sR(e){var t=e.alternate,n=e.flags;if((n&ho)!==je){switch(Jt(e),e.tag){case he:case _e:case De:break;case te:{if(t!==null){var a=t.memoizedProps,r=t.memoizedState,i=e.stateNode;e.type===e.elementType&&!Xi&&(i.props!==e.memoizedProps&&d("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xe(e)||"instance"),i.state!==e.memoizedState&&d("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Xe(e)||"instance"));var o=i.getSnapshotBeforeUpdate(e.elementType===e.type?a:Ga(e.type,a),r);{var l=bb;o===void 0&&!l.has(e.type)&&(l.add(e.type),d("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Xe(e)))}i.__reactInternalSnapshotBeforeUpdate=o}break}case I:{{var u=e.stateNode;Px(u.containerInfo)}break}case K:case Oe:case H:case Me: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 Qa(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)!==ca?xT(t):(e&gn)!==ca&&fh(t),(e&ur)!==ca&&Vu(!0),Nc(t,n,l),(e&ur)!==ca&&Vu(!1),(e&jn)!==ca?wT():(e&gn)!==ca&&dh())}o=o.next}while(o!==i)}}function ci(e,t){var n=t.updateQueue,a=n!==null?n.lastEffect:null;if(a!==null){var r=a.next,i=r;do{if((i.tag&e)===e){(e&jn)!==ca?ET(t):(e&gn)!==ca&&RT(t);var o=i.create;(e&ur)!==ca&&Vu(!0),i.destroy=o(),(e&ur)!==ca&&Vu(!1),(e&jn)!==ca?CT():(e&gn)!==ca&&DT();{var l=i.destroy;if(l!==void 0&&typeof l!="function"){var u=void 0;(i.tag&gn)!==je?u="useLayoutEffect":(i.tag&ur)!==je?u="useInsertionEffect":u="useEffect";var f=void 0;l===null?f=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof l.then=="function"?f=`
|
|
|
|
It looks like you wrote `+u+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
|
|
`+u+`(() => {
|
|
async function fetchData() {
|
|
// You can await here
|
|
const response = await MyAPI.getData(someId);
|
|
// ...
|
|
}
|
|
fetchData();
|
|
}, [someId]); // Or [] if effect doesn't need props or state
|
|
|
|
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:f=" You returned: "+l,d("%s must not return anything besides a function, which is used for clean-up.%s",u,f)}}}i=i.next}while(i!==r)}}function cR(e,t){if((t.flags&wt)!==je)switch(t.tag){case ot:{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 I:var f=u.stateNode;f.passiveEffectDuration+=n;break e;case ot:var v=u.stateNode;v.passiveEffectDuration+=n;break e}u=u.return}break}}}function fR(e,t,n,a){if((n.flags&El)!==je)switch(n.tag){case he:case _e:case De:{if(!Hn)if(n.mode&Nt)try{dr(),ci(gn|yn,n)}finally{fr(n)}else ci(gn|yn,n);break}case te:{var r=n.stateNode;if(n.flags&wt&&!Hn)if(t===null)if(n.type===n.elementType&&!Xi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xe(n)||"instance"),r.state!==n.memoizedState&&d("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Xe(n)||"instance")),n.mode&Nt)try{dr(),r.componentDidMount()}finally{fr(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Ga(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!Xi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xe(n)||"instance"),r.state!==n.memoizedState&&d("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Xe(n)||"instance")),n.mode&Nt)try{dr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{fr(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!Xi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xe(n)||"instance"),r.state!==n.memoizedState&&d("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Xe(n)||"instance")),ug(n,l,r));break}case I:{var u=n.updateQueue;if(u!==null){var f=null;if(n.child!==null)switch(n.child.tag){case K:f=n.child.stateNode;break;case te:f=n.child.stateNode;break}ug(n,u,f)}break}case K:{var v=n.stateNode;if(t===null&&n.flags&wt){var b=n.type,g=n.memoizedProps;kx(v,b,g)}break}case Oe:break;case H:break;case ot:{{var R=n.memoizedProps,M=R.onCommit,j=R.onRender,ae=n.stateNode.effectDuration,ke=zg(),we=t===null?"mount":"update";Hg()&&(we="nested-update"),typeof j=="function"&&j(n.memoizedProps.id,we,n.actualDuration,n.treeBaseDuration,n.actualStartTime,ke);{typeof M=="function"&&M(n.memoizedProps.id,we,ae,ke),uD(n);var mt=n.return;e:for(;mt!==null;){switch(mt.tag){case I:var ut=mt.stateNode;ut.effectDuration+=ae;break e;case ot:var E=mt.stateNode;E.effectDuration+=ae;break e}mt=mt.return}}}break}case _:{bR(e,n);break}case nt:case Me:case oe:case Le:case Ke:case W: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&Di&&Cb(n)}function dR(e){switch(e.tag){case he:case _e:case De:{if(e.mode&Nt)try{dr(),Sb(e,e.return)}finally{fr(e)}else Sb(e,e.return);break}case te:{var t=e.stateNode;typeof t.componentDidMount=="function"&&iR(e,e.return,t),Tb(e,e.return);break}case K:{Tb(e,e.return);break}}}function vR(e,t){for(var n=null,a=e;;){if(a.tag===K){if(n===null){n=a;try{var r=a.stateNode;t?Fx(r):Bx(a.stateNode,a.memoizedProps)}catch(o){$t(e,e.return,o)}}}else if(a.tag===Oe){if(n===null)try{var i=a.stateNode;t?Vx(i):$x(i,a.memoizedProps)}catch(o){$t(e,e.return,o)}}else if(!((a.tag===Le||a.tag===Ke)&&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 K:a=n;break;default:a=n}if(typeof t=="function"){var r;if(e.mode&Nt)try{dr(),r=t(a)}finally{fr(e)}else r=t(a);typeof r=="function"&&d("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Xe(e))}else t.hasOwnProperty("current")||d("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Xe(e)),t.current=a}}function pR(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===K){var n=e.stateNode;n!==null&&S1(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 mR(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===K||e.tag===I||e.tag===H}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!==K&&t.tag!==Oe&&t.tag!==pe;){if(t.flags&_n||t.child===null||t.tag===H)continue e;t.child.return=t,t=t.child}if(!(t.flags&_n))return t.stateNode}}function hR(e){var t=mR(e);switch(t.tag){case K:{var n=t.stateNode;t.flags&as&&(_y(n),t.flags&=-33);var a=Rb(e);_p(e,a,n);break}case I:case H:{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===K||a===Oe;if(r){var i=e.stateNode;t?jx(n,i,t):Ax(n,i)}else if(a!==H){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===K||a===Oe;if(r){var i=e.stateNode;t?Nx(n,i,t):Ox(n,i)}else if(a!==H){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,Ka=!1;function yR(e,t,n){{var a=t;e:for(;a!==null;){switch(a.tag){case K:{zn=a.stateNode,Ka=!1;break e}case I:{zn=a.stateNode.containerInfo,Ka=!0;break e}case H:{zn=a.stateNode.containerInfo,Ka=!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,Ka=!1}pR(n)}function fi(e,t,n){for(var a=n.child;a!==null;)Db(e,t,a),a=a.sibling}function Db(e,t,n){switch(gT(n),n.tag){case K:Hn||Ko(n,t);case Oe:{{var a=zn,r=Ka;zn=null,fi(e,t,n),zn=a,Ka=r,zn!==null&&(Ka?Hx(zn,n.stateNode):Ux(zn,n.stateNode))}return}case pe:{zn!==null&&(Ka?zx(zn,n.stateNode):Fd(zn,n.stateNode));return}case H:{{var i=zn,o=Ka;zn=n.stateNode.containerInfo,Ka=!0,fi(e,t,n),zn=i,Ka=o}return}case he:case _e:case ne:case De:{if(!Hn){var l=n.updateQueue;if(l!==null){var u=l.lastEffect;if(u!==null){var f=u.next,v=f;do{var b=v,g=b.destroy,R=b.tag;g!==void 0&&((R&ur)!==ca?Nc(n,t,g):(R&gn)!==ca&&(fh(n),n.mode&Nt?(dr(),Nc(n,t,g),fr(n)):Nc(n,t,g),dh())),v=v.next}while(v!==f)}}}fi(e,t,n);return}case te:{if(!Hn){Ko(n,t);var M=n.stateNode;typeof M.componentWillUnmount=="function"&&Rp(n,t,M)}fi(e,t,n);return}case oe:{fi(e,t,n);return}case Le:{if(n.mode&vt){var j=Hn;Hn=j||n.memoizedState!==null,fi(e,t,n),Hn=j}else fi(e,t,n);break}default:{fi(e,t,n);return}}}function gR(e){e.memoizedState}function bR(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&&a1(i)}}}}function _b(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new nR),t.forEach(function(a){var r=mD.bind(null,e,a);if(!n.has(a)){if(n.add(a),Ba)if(Xo!==null&&Qo!==null)Fu(Qo,Xo);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");a.then(r,r)}})}}function SR(e,t,n){Xo=n,Qo=e,Jt(t),kb(t,e),Jt(t),Xo=null,Qo=null}function Za(e,t,n){var a=t.deletions;if(a!==null)for(var r=0;r<a.length;r++){var i=a[r];try{yR(e,t,i)}catch(u){$t(i,t,u)}}var o=Iu();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 he:case _e:case ne:case De:{if(Za(t,e),vr(e),r&wt){try{Qa(ur|yn,e,e.return),ci(ur|yn,e)}catch(He){$t(e,e.return,He)}if(e.mode&Nt){try{dr(),Qa(gn|yn,e,e.return)}catch(He){$t(e,e.return,He)}fr(e)}else try{Qa(gn|yn,e,e.return)}catch(He){$t(e,e.return,He)}}return}case te:{Za(t,e),vr(e),r&Di&&a!==null&&Ko(a,a.return);return}case K:{Za(t,e),vr(e),r&Di&&a!==null&&Ko(a,a.return);{if(e.flags&as){var i=e.stateNode;try{_y(i)}catch(He){$t(e,e.return,He)}}if(r&wt){var o=e.stateNode;if(o!=null){var l=e.memoizedProps,u=a!==null?a.memoizedProps:l,f=e.type,v=e.updateQueue;if(e.updateQueue=null,v!==null)try{Mx(o,v,f,u,l,e)}catch(He){$t(e,e.return,He)}}}}return}case Oe:{if(Za(t,e),vr(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 b=e.stateNode,g=e.memoizedProps,R=a!==null?a.memoizedProps:g;try{Lx(b,R,g)}catch(He){$t(e,e.return,He)}}return}case I:{if(Za(t,e),vr(e),r&wt&&a!==null){var M=a.memoizedState;if(M.isDehydrated)try{n1(t.containerInfo)}catch(He){$t(e,e.return,He)}}return}case H:{Za(t,e),vr(e);return}case _:{Za(t,e),vr(e);var j=e.child;if(j.flags&ki){var ae=j.stateNode,ke=j.memoizedState,we=ke!==null;if(ae.isHidden=we,we){var mt=j.alternate!==null&&j.alternate.memoizedState!==null;mt||eD()}}if(r&wt){try{gR(e)}catch(He){$t(e,e.return,He)}_b(e)}return}case Le:{var ut=a!==null&&a.memoizedState!==null;if(e.mode&vt){var E=Hn;Hn=E||ut,Za(t,e),Hn=E}else Za(t,e);if(vr(e),r&ki){var U=e.stateNode,C=e.memoizedState,Y=C!==null,de=e;if(U.isHidden=Y,Y&&!ut&&(de.mode&vt)!==Ae){ge=de;for(var ie=de.child;ie!==null;)ge=ie,ER(ie),ie=ie.sibling}vR(de,Y)}return}case nt:{Za(t,e),vr(e),r&wt&&_b(e);return}case oe:return;default:{Za(t,e),vr(e);return}}}function vr(e){var t=e.flags;if(t&_n){try{hR(e)}catch(n){$t(e,e.return,n)}e.flags&=-3}t&_i&&(e.flags&=-4097)}function TR(e,t,n){Xo=n,Qo=t,ge=e,Mb(e,t,n),Xo=null,Qo=null}function Mb(e,t,n){for(var a=(e.mode&vt)!==Ae;ge!==null;){var r=ge,i=r.child;if(r.tag===Le&&a){var o=r.memoizedState!==null,l=o||Ac;if(l){kp(e,t,n);continue}else{var u=r.alternate,f=u!==null&&u.memoizedState!==null,v=f||Hn,b=Ac,g=Hn;Ac=l,Hn=v,Hn&&!g&&(ge=r,CR(r));for(var R=i;R!==null;)ge=R,Mb(R,t,n),R=R.sibling;ge=r,Ac=b,Hn=g,kp(e,t,n);continue}}(r.subtreeFlags&El)!==je&&i!==null?(i.return=r,ge=i):kp(e,t,n)}}function kp(e,t,n){for(;ge!==null;){var a=ge;if((a.flags&El)!==je){var r=a.alternate;Jt(a);try{fR(t,r,a,n)}catch(o){$t(a,a.return,o)}Dn()}if(a===e){ge=null;return}var i=a.sibling;if(i!==null){i.return=a.return,ge=i;return}ge=a.return}}function ER(e){for(;ge!==null;){var t=ge,n=t.child;switch(t.tag){case he:case _e:case ne:case De:{if(t.mode&Nt)try{dr(),Qa(gn,t,t.return)}finally{fr(t)}else Qa(gn,t,t.return);break}case te:{Ko(t,t.return);var a=t.stateNode;typeof a.componentWillUnmount=="function"&&Rp(t,t.return,a);break}case K:{Ko(t,t.return);break}case Le:{var r=t.memoizedState!==null;if(r){Lb(e);continue}break}}n!==null?(n.return=t,ge=n):Lb(e)}}function Lb(e){for(;ge!==null;){var t=ge;if(t===e){ge=null;return}var n=t.sibling;if(n!==null){n.return=t.return,ge=n;return}ge=t.return}}function CR(e){for(;ge!==null;){var t=ge,n=t.child;if(t.tag===Le){var a=t.memoizedState!==null;if(a){Ob(e);continue}}n!==null?(n.return=t,ge=n):Ob(e)}}function Ob(e){for(;ge!==null;){var t=ge;Jt(t);try{dR(t)}catch(a){$t(t,t.return,a)}if(Dn(),t===e){ge=null;return}var n=t.sibling;if(n!==null){n.return=t.return,ge=n;return}ge=t.return}}function xR(e,t,n,a){ge=t,wR(t,e,n,a)}function wR(e,t,n,a){for(;ge!==null;){var r=ge,i=r.child;(r.subtreeFlags&yo)!==je&&i!==null?(i.return=r,ge=i):RR(e,t,n,a)}}function RR(e,t,n,a){for(;ge!==null;){var r=ge;if((r.flags&Ir)!==je){Jt(r);try{DR(t,r,n,a)}catch(o){$t(r,r.return,o)}Dn()}if(r===e){ge=null;return}var i=r.sibling;if(i!==null){i.return=r.return,ge=i;return}ge=r.return}}function DR(e,t,n,a){switch(t.tag){case he:case _e:case De:{if(t.mode&Nt){Gv();try{ci(jn|yn,t)}finally{qv(t)}}else ci(jn|yn,t);break}}}function _R(e){ge=e,kR()}function kR(){for(;ge!==null;){var e=ge,t=e.child;if((ge.flags&wi)!==je){var n=e.deletions;if(n!==null){for(var a=0;a<n.length;a++){var r=n[a];ge=r,OR(r,e)}{var i=e.alternate;if(i!==null){var o=i.child;if(o!==null){i.child=null;do{var l=o.sibling;o.sibling=null,o=l}while(o!==null)}}}ge=e}}(e.subtreeFlags&yo)!==je&&t!==null?(t.return=e,ge=t):MR()}}function MR(){for(;ge!==null;){var e=ge;(e.flags&Ir)!==je&&(Jt(e),LR(e),Dn());var t=e.sibling;if(t!==null){t.return=e.return,ge=t;return}ge=e.return}}function LR(e){switch(e.tag){case he:case _e:case De:{e.mode&Nt?(Gv(),Qa(jn|yn,e,e.return),qv(e)):Qa(jn|yn,e,e.return);break}}}function OR(e,t){for(;ge!==null;){var n=ge;Jt(n),NR(n,t),Dn();var a=n.child;a!==null?(a.return=n,ge=a):AR(e)}}function AR(e){for(;ge!==null;){var t=ge,n=t.sibling,a=t.return;if(xb(t),t===e){ge=null;return}if(n!==null){n.return=a,ge=n;return}ge=a}}function NR(e,t){switch(e.tag){case he:case _e:case De:{e.mode&Nt?(Gv(),Qa(jn,e,t),qv(e)):Qa(jn,e,t);break}}}function jR(e){switch(e.tag){case he:case _e:case De:{try{ci(gn|yn,e)}catch(n){$t(e,e.return,n)}break}case te:{var t=e.stateNode;try{t.componentDidMount()}catch(n){$t(e,e.return,n)}break}}}function UR(e){switch(e.tag){case he:case _e:case De:{try{ci(jn|yn,e)}catch(t){$t(e,e.return,t)}break}}}function HR(e){switch(e.tag){case he:case _e:case De:{try{Qa(gn|yn,e,e.return)}catch(n){$t(e,e.return,n)}break}case te:{var t=e.stateNode;typeof t.componentWillUnmount=="function"&&Rp(e,e.return,t);break}}}function zR(e){switch(e.tag){case he:case _e:case De:try{Qa(jn|yn,e,e.return)}catch(t){$t(e,e.return,t)}}}if(typeof Symbol=="function"&&Symbol.for){var _u=Symbol.for;_u("selector.component"),_u("selector.has_pseudo_class"),_u("selector.role"),_u("selector.test_id"),_u("selector.text")}var FR=[];function VR(){FR.forEach(function(e){return e()})}var BR=me.ReactCurrentActQueue;function $R(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&&BR.current!==null&&d("The current testing environment is not configured to support act(...)"),e}}var PR=Math.ceil,Mp=me.ReactCurrentDispatcher,Lp=me.ReactCurrentOwner,Fn=me.ReactCurrentBatchConfig,Ja=me.ReactCurrentActQueue,Tn=0,Nb=1,Vn=2,Aa=4,Nr=0,ku=1,Qi=2,jc=3,Mu=4,jb=5,Op=6,pt=Tn,ea=null,an=null,En=P,pr=P,Ap=ti(P),Cn=Nr,Lu=null,Uc=P,Ou=P,Hc=P,Au=null,fa=null,Np=0,Ub=500,Hb=1/0,YR=500,jr=null;function Nu(){Hb=kn()+YR}function zb(){return Hb}var zc=!1,jp=null,Zo=null,Ki=!1,di=null,ju=P,Up=[],Hp=null,WR=50,Uu=0,zp=null,Fp=!1,Fc=!1,IR=50,Jo=0,Vc=null,Hu=It,Bc=P,Fb=!1;function $c(){return ea}function ta(){return(pt&(Vn|Aa))!==Tn?kn():(Hu!==It||(Hu=kn()),Hu)}function vi(e){var t=e.mode;if((t&vt)===Ae)return Be;if((pt&Vn)!==Tn&&En!==P)return kl(En);var n=B1()!==V1;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=$a();if(r!==Ln)return r;var i=wx();return i}function qR(e){var t=e.mode;return(t&vt)===Ae?Be:XT()}function xn(e,t,n,a){yD(),Fb&&d("useInsertionEffect must not schedule updates."),Fp&&(Fc=!0),Ml(e,n,a),(pt&Vn)!==P&&e===ea?SD(t):(Ba&&Ch(e,t,n),TD(t),e===ea&&((pt&Vn)===Tn&&(Ou=tt(Ou,n)),Cn===Mu&&pi(e,En)),da(e,a),n===Be&&pt===Tn&&(t.mode&vt)===Ae&&!Ja.isBatchingLegacy&&(Nu(),Fy()))}function GR(e,t,n){var a=e.current;a.lanes=t,Ml(e,t,n),da(e,n)}function XR(e){return(pt&Vn)!==Tn}function da(e,t){var n=e.callbackNode;PT(e,t);var a=ss(e,e===ea?En:P);if(a===P){n!==null&&t0(n),e.callbackNode=null,e.callbackPriority=Ln;return}var r=ji(a),i=e.callbackPriority;if(i===r&&!(Ja.current!==null&&n!==Ip)){n==null&&i!==Be&&d("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===ni?(Ja.isBatchingLegacy!==null&&(Ja.didScheduleLegacyUpdate=!0),C1($b.bind(null,e))):zy($b.bind(null,e)),Ja.current!==null?Ja.current.push(ai):Dx(function(){(pt&(Vn|Aa))===Tn&&ai()}),o=null;else{var l;switch(Rh(a)){case ba:l=is;break;case wr:l=jf;break;case Rr:l=Oi;break;case ds:l=Uf;break;default:l=Oi;break}o=qp(l,Vb.bind(null,e))}e.callbackPriority=r,e.callbackNode=o}function Vb(e,t){if(vw(),Hu=It,Bc=P,(pt&(Vn|Aa))!==Tn)throw new Error("Should not already be working.");var n=e.callbackNode,a=Hr();if(a&&e.callbackNode!==n)return null;var r=ss(e,e===ea?En:P);if(r===P)return null;var i=!cs(e,r)&&!GT(e,r)&&!t,o=i?iD(e,r):Yc(e,r);if(o!==Nr){if(o===Qi){var l=rd(e);l!==P&&(r=l,o=Vp(e,l))}if(o===ku){var u=Lu;throw Zi(e,P),pi(e,r),da(e,kn()),u}if(o===Op)pi(e,r);else{var f=!cs(e,r),v=e.current.alternate;if(f&&!KR(v)){if(o=Yc(e,r),o===Qi){var b=rd(e);b!==P&&(r=b,o=Vp(e,b))}if(o===ku){var g=Lu;throw Zi(e,P),pi(e,r),da(e,kn()),g}}e.finishedWork=v,e.finishedLanes=r,QR(e,o,r)}}return da(e,kn()),e.callbackNode===n?Vb.bind(null,e):null}function Vp(e,t){var n=Au;if(vs(e)){var a=Zi(e,t);a.flags|=Ri,h1(e.containerInfo)}var r=Yc(e,t);if(r!==Qi){var i=fa;fa=n,i!==null&&Bb(i)}return r}function Bb(e){fa===null?fa=e:fa.push.apply(fa,e)}function QR(e,t,n){switch(t){case Nr:case ku:throw new Error("Root did not complete. This is a bug in React.");case Qi:{Ji(e,fa,jr);break}case jc:{if(pi(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(!Co(i,n)){ta(),Eh(e,i);break}e.timeoutHandle=Hd(Ji.bind(null,e,fa,jr),a);break}}Ji(e,fa,jr);break}case Mu:{if(pi(e,n),qT(n))break;if(!n0()){var o=BT(e,n),l=o,u=kn()-l,f=hD(u)-u;if(f>10){e.timeoutHandle=Hd(Ji.bind(null,e,fa,jr),f);break}}Ji(e,fa,jr);break}case jb:{Ji(e,fa,jr);break}default:throw new Error("Unknown root exit status.")}}function KR(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(!Ta(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 pi(e,t){t=fs(t,Hc),t=fs(t,Ou),KT(e,t)}function $b(e){if(pw(),(pt&(Vn|Aa))!==Tn)throw new Error("Should not already be working.");Hr();var t=ss(e,P);if(!ga(t,Be))return da(e,kn()),null;var n=Yc(e,t);if(e.tag!==ni&&n===Qi){var a=rd(e);a!==P&&(t=a,n=Vp(e,a))}if(n===ku){var r=Lu;throw Zi(e,P),pi(e,t),da(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,Ji(e,fa,jr),da(e,kn()),null}function ZR(e,t){t!==P&&(ud(e,tt(t,Be)),da(e,kn()),(pt&(Vn|Aa))===Tn&&(Nu(),ai()))}function Bp(e,t){var n=pt;pt|=Nb;try{return e(t)}finally{pt=n,pt===Tn&&!Ja.isBatchingLegacy&&(Nu(),Fy())}}function JR(e,t,n,a,r){var i=$a(),o=Fn.transition;try{return Fn.transition=null,On(ba),e(t,n,a,r)}finally{On(i),Fn.transition=o,pt===Tn&&Nu()}}function Ur(e){di!==null&&di.tag===ni&&(pt&(Vn|Aa))===Tn&&Hr();var t=pt;pt|=Nb;var n=Fn.transition,a=$a();try{return Fn.transition=null,On(ba),e?e():void 0}finally{On(a),Fn.transition=n,pt=t,(pt&(Vn|Aa))===Tn&&ai()}}function Pb(){return(pt&(Vn|Aa))!==Tn}function Pc(e,t){In(Ap,pr,e),pr=tt(pr,t)}function $p(e){pr=Ap.current,Wn(Ap,e)}function Zi(e,t){e.finishedWork=null,e.finishedLanes=P;var n=e.timeoutHandle;if(n!==zd&&(e.timeoutHandle=zd,Rx(n)),an!==null)for(var a=an.return;a!==null;){var r=a.alternate;gb(r,a),a=a.return}ea=e;var i=eo(e.current,null);return an=i,En=pr=t,Cn=Nr,Lu=null,Uc=P,Ou=P,Hc=P,Au=null,fa=null,G1(),Wa.discardPendingWarnings(),i}function Yb(e,t){do{var n=an;try{if(Js(),pg(),Dn(),Lp.current=null,n===null||n.return===null){Cn=ku,Lu=t,an=null;return}if(Ue&&n.mode&Nt&&_c(n,!0),Ve)if(bo(),t!==null&&typeof t=="object"&&typeof t.then=="function"){var a=t;kT(n,a,En)}else _T(n,t,En);Cw(e,n.return,n,t,En),Gb(n)}catch(r){t=r,an===n&&n!==null?(n=n.return,an=n):n=an;continue}return}while(!0)}function Wb(){var e=Mp.current;return Mp.current=Cc,e===null?Cc:e}function Ib(e){Mp.current=e}function eD(){Np=kn()}function zu(e){Uc=tt(e,Uc)}function tD(){Cn===Nr&&(Cn=jc)}function Pp(){(Cn===Nr||Cn===jc||Cn===Qi)&&(Cn=Mu),ea!==null&&(id(Uc)||id(Ou))&&pi(ea,En)}function nD(e){Cn!==Mu&&(Cn=Qi),Au===null?Au=[e]:Au.push(e)}function aD(){return Cn===Nr}function Yc(e,t){var n=pt;pt|=Vn;var a=Wb();if(ea!==e||En!==t){if(Ba){var r=e.memoizedUpdaters;r.size>0&&(Fu(e,En),r.clear()),xh(e,t)}jr=wh(),Zi(e,t)}vh(t);do try{rD();break}catch(i){Yb(e,i)}while(!0);if(Js(),pt=n,Ib(a),an!==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(),ea=null,En=P,Cn}function rD(){for(;an!==null;)qb(an)}function iD(e,t){var n=pt;pt|=Vn;var a=Wb();if(ea!==e||En!==t){if(Ba){var r=e.memoizedUpdaters;r.size>0&&(Fu(e,En),r.clear()),xh(e,t)}jr=wh(),Nu(),Zi(e,t)}vh(t);do try{oD();break}catch(i){Yb(e,i)}while(!0);return Js(),Ib(a),pt=n,an!==null?(NT(),Nr):(ph(),ea=null,En=P,Cn)}function oD(){for(;an!==null&&!uT();)qb(an)}function qb(e){var t=e.alternate;Jt(e);var n;(e.mode&Nt)!==Ae?(Iv(e),n=Yp(t,e,pr),_c(e,!0)):n=Yp(t,e,pr),Dn(),e.memoizedProps=e.pendingProps,n===null?Gb(e):an=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&Nt)===Ae?r=yb(n,t,pr):(Iv(t),r=yb(n,t,pr),_c(t,!1)),Dn(),r!==null){an=r;return}}else{var i=tR(n,t);if(i!==null){i.flags&=nT,an=i;return}if((t.mode&Nt)!==Ae){_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{Cn=Op,an=null;return}}var u=t.sibling;if(u!==null){an=u;return}t=a,an=t}while(t!==null);Cn===Nr&&(Cn=jb)}function Ji(e,t,n){var a=$a(),r=Fn.transition;try{Fn.transition=null,On(ba),lD(e,t,n,a)}finally{Fn.transition=r,On(a)}return null}function lD(e,t,n,a){do Hr();while(di!==null);if(gD(),(pt&(Vn|Aa))!==Tn)throw new Error("Should not already be working.");var r=e.finishedWork,i=e.finishedLanes;if(TT(i),r===null)return ch(),null;if(i===P&&d("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===ea&&(ea=null,an=null,En=P),((r.subtreeFlags&yo)!==je||(r.flags&yo)!==je)&&(Ki||(Ki=!0,Hp=n,qp(Oi,function(){return Hr(),null})));var l=(r.subtreeFlags&(Af|Nf|El|yo))!==je,u=(r.flags&(Af|Nf|El|yo))!==je;if(l||u){var f=Fn.transition;Fn.transition=null;var v=$a();On(ba);var b=pt;pt|=Aa,Lp.current=null,oR(e,r),Fg(),SR(e,r,i),bx(e.containerInfo),e.current=r,MT(i),TR(r,e,i),LT(),sT(),pt=b,On(v),Fn.transition=f}else e.current=r,Fg();var g=Ki;if(Ki?(Ki=!1,di=e,ju=i):(Jo=0,Vc=null),o=e.pendingLanes,o===P&&(Zo=null),g||Zb(e.current,!1),hT(r.stateNode,a),Ba&&e.memoizedUpdaters.clear(),VR(),da(e,kn()),t!==null)for(var R=e.onRecoverableError,M=0;M<t.length;M++){var j=t[M],ae=j.stack,ke=j.digest;R(j.value,{componentStack:ae,digest:ke})}if(zc){zc=!1;var we=jp;throw jp=null,we}return ga(ju,Be)&&e.tag!==ni&&Hr(),o=e.pendingLanes,ga(o,Be)?(dw(),e===zp?Uu++:(Uu=0,zp=e)):Uu=0,ai(),ch(),null}function Hr(){if(di!==null){var e=Rh(ju),t=nE(Rr,e),n=Fn.transition,a=$a();try{return Fn.transition=null,On(t),sD()}finally{On(a),Fn.transition=n}}return!1}function uD(e){Up.push(e),Ki||(Ki=!0,qp(Oi,function(){return Hr(),null}))}function sD(){if(di===null)return!1;var e=Hp;Hp=null;var t=di,n=ju;if(di=null,ju=P,(pt&(Vn|Aa))!==Tn)throw new Error("Cannot flush passive effects while already rendering.");Fp=!0,Fc=!1,OT(n);var a=pt;pt|=Aa,_R(t.current),xR(t,t.current,n,e);{var r=Up;Up=[];for(var i=0;i<r.length;i++){var o=r[i];cR(t,o)}}AT(),Zb(t.current,!0),pt=a,ai(),Fc?t===Vc?Jo++:(Jo=0,Vc=t):Jo=0,Fp=!1,Fc=!1,yT(t);{var l=t.current.stateNode;l.effectDuration=0,l.passiveEffectDuration=0}return!0}function Xb(e){return Zo!==null&&Zo.has(e)}function cD(e){Zo===null?Zo=new Set([e]):Zo.add(e)}function fD(e){zc||(zc=!0,jp=e)}var dD=fD;function Qb(e,t,n){var a=Gi(n,t),r=qg(e,a,Be),i=ii(e,r,Be),o=ta();i!==null&&(Ml(i,Be,o),da(i,o))}function $t(e,t,n){if(aR(n),Vu(!1),e.tag===I){Qb(e,e,n);return}var a=null;for(a=t;a!==null;){if(a.tag===I){Qb(a,e,n);return}else if(a.tag===te){var r=a.type,i=a.stateNode;if(typeof r.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&!Xb(i)){var o=Gi(n,e),l=cp(a,o,Be),u=ii(a,l,Be),f=ta();u!==null&&(Ml(u,Be,f),da(u,f));return}}a=a.return}d(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
|
|
|
|
Error message:
|
|
|
|
%s`,n)}function vD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=ta();Eh(e,n),ED(e),ea===e&&Co(En,n)&&(Cn===Mu||Cn===jc&&gh(En)&&kn()-Np<Ub?Zi(e,P):Hc=tt(Hc,n)),da(e,r)}function Kb(e,t){t===Ln&&(t=qR(e));var n=ta(),a=sa(e,t);a!==null&&(Ml(a,t,n),da(a,n))}function pD(e){var t=e.memoizedState,n=Ln;t!==null&&(n=t.retryLane),Kb(e,n)}function mD(e,t){var n=Ln,a;switch(e.tag){case _: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 hD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:PR(e/1960)*1960}function yD(){if(Uu>WR)throw Uu=0,zp=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Jo>IR&&(Jo=0,Vc=null,d("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function gD(){Wa.flushLegacyContextWarning(),Wa.flushPendingUnsafeLifecycleWarnings()}function Zb(e,t){Jt(e),Wc(e,qr,HR),t&&Wc(e,Of,zR),Wc(e,qr,jR),t&&Wc(e,Of,UR),Dn()}function Wc(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==je?a=a.child:((a.flags&t)!==je&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var Ic=null;function Jb(e){{if((pt&Vn)!==Tn||!(e.mode&vt))return;var t=e.tag;if(t!==bt&&t!==I&&t!==te&&t!==he&&t!==_e&&t!==ne&&t!==De)return;var n=Xe(e)||"ReactComponent";if(Ic!==null){if(Ic.has(n))return;Ic.add(n)}else Ic=new Set([n]);var a=Qn;try{Jt(e),d("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{a?Jt(e):Dn()}}}var Yp;{var bD=null;Yp=function(e,t,n){var a=l0(bD,t);try{return db(e,t,n)}catch(i){if(L1()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(Js(),pg(),gb(e,t),l0(t,a),t.mode&Nt&&Iv(t),Rf(null,db,null,e,t,n),JS()){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,Wp;Wp=new Set;function SD(e){if(Ti&&!sw())switch(e.tag){case he:case _e:case De:{var t=an&&Xe(an)||"Unknown",n=t;if(!Wp.has(n)){Wp.add(n);var a=Xe(e)||"Unknown";d("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",a,t,t)}break}case te:{e0||(d("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 Fu(e,t){if(Ba){var n=e.memoizedUpdaters;n.forEach(function(a){Ch(e,a,t)})}}var Ip={};function qp(e,t){{var n=Ja.current;return n!==null?(n.push(t),Ip):sh(e,t)}}function t0(e){if(e!==Ip)return lT(e)}function n0(){return Ja.current!==null}function TD(e){{if(e.mode&vt){if(!Ab())return}else if(!$R()||pt!==Tn||e.tag!==he&&e.tag!==_e&&e.tag!==De)return;if(Ja.current===null){var t=Qn;try{Jt(e),d(`An update to %s inside a test was not wrapped in act(...).
|
|
|
|
When testing, code that causes React state updates should be wrapped into act(...):
|
|
|
|
act(() => {
|
|
/* fire events that update state */
|
|
});
|
|
/* assert on the output */
|
|
|
|
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Xe(e))}finally{t?Jt(e):Dn()}}}}function ED(e){e.tag!==ni&&Ab()&&Ja.current===null&&d(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
|
|
|
|
When testing, code that resolves suspended data should be wrapped into act(...):
|
|
|
|
act(() => {
|
|
/* finish loading suspended data */
|
|
});
|
|
/* assert on the output */
|
|
|
|
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function Vu(e){Fb=e}var Na=null,el=null,CD=function(e){Na=e};function tl(e){{if(Na===null)return e;var t=Na(e);return t===void 0?e:t.current}}function Gp(e){return tl(e)}function Xp(e){{if(Na===null)return e;var t=Na(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=tl(e.render);if(e.render!==n){var a={$$typeof:y,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function a0(e,t){{if(Na===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 te:{typeof a=="function"&&(r=!0);break}case he:{(typeof a=="function"||i===z)&&(r=!0);break}case _e:{(i===y||i===z)&&(r=!0);break}case ne:case De:{(i===ve||i===z)&&(r=!0);break}default:return!1}if(r){var o=Na(n);if(o!==void 0&&o===Na(a))return!0}return!1}}function r0(e){{if(Na===null||typeof WeakSet!="function")return;el===null&&(el=new WeakSet),el.add(e)}}var xD=function(e,t){{if(Na===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Hr(),Ur(function(){Qp(e.current,a,n)})}},wD=function(e,t){{if(e.context!==Ea)return;Hr(),Ur(function(){Bu(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 he:case De:case te:u=l;break;case _e:u=l.render;break}if(Na===null)throw new Error("Expected resolveFamily to be set during hot reload.");var f=!1,v=!1;if(u!==null){var b=Na(u);b!==void 0&&(n.has(b)?v=!0:t.has(b)&&(o===te?v=!0:f=!0))}if(el!==null&&(el.has(e)||a!==null&&el.has(a))&&(v=!0),v&&(e._debugNeedsRemount=!0),v||f){var g=sa(e,Be);g!==null&&xn(g,e,Be,It)}r!==null&&!v&&Qp(r,t,n),i!==null&&Qp(i,t,n)}}var RD=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 he:case De:case te:l=o;break;case _e:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?DD(e,n):a!==null&&Kp(a,t,n),r!==null&&Kp(r,t,n)}}function DD(e,t){{var n=_D(e,t);if(n)return;for(var a=e;;){switch(a.tag){case K:t.add(a.stateNode);return;case H:t.add(a.stateNode.containerInfo);return;case I:t.add(a.stateNode.containerInfo);return}if(a.return===null)throw new Error("Expected to reach root first.");a=a.return}}}function _D(e,t){for(var n=e,a=!1;;){if(n.tag===K)a=!0,t.add(n.stateNode);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)return a;for(;n.sibling===null;){if(n.return===null||n.return===e)return a;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}var Zp;{Zp=!1;try{var i0=Object.preventExtensions({})}catch{Zp=!0}}function kD(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,!Zp&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Ca=function(e,t,n,a){return new kD(e,t,n,a)};function Jp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function MD(e){return typeof e=="function"&&!Jp(e)&&e.defaultProps===void 0}function LD(e){if(typeof e=="function")return Jp(e)?te:he;if(e!=null){var t=e.$$typeof;if(t===y)return _e;if(t===ve)return ne}return bt}function eo(e,t){var n=e.alternate;n===null?(n=Ca(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&Cr,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 bt:case he:case De:n.type=tl(e.type);break;case te:n.type=Gp(e.type);break;case _e:n.type=Xp(e.type);break}return n}function OD(e,t){e.flags&=Cr|_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 AD(e,t,n){var a;return e===Ps?(a=vt,t===!0&&(a|=on,a|=rr)):a=Ae,Ba&&(a|=Nt),Ca(I,null,null,a)}function em(e,t,n,a,r,i){var o=bt,l=e;if(typeof e=="function")Jp(e)?(o=te,l=Gp(l)):l=tl(l);else if(typeof e=="string")o=K;else e:switch(e){case D:return mi(n.children,r,i,t);case T:o=qt,r|=on,(r&vt)!==Ae&&(r|=rr);break;case x:return ND(n,r,i,t);case S:return jD(n,r,i,t);case A:return UD(n,r,i,t);case ze:return o0(n,r,i,t);case it:case ue:case Ft:case nn:case ye:default:{if(typeof e=="object"&&e!==null)switch(e.$$typeof){case O:o=Pe;break e;case c:o=St;break e;case y:o=_e,l=Xp(l);break e;case ve:o=ne;break e;case z:o=Vt,l=null;break e}var u="";{(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(u+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var f=a?Xe(a):null;f&&(u+=`
|
|
|
|
Check the render method of \``+f+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+u))}}var v=Ca(o,n,t,r);return v.elementType=e,v.type=l,v.lanes=i,v._debugOwner=a,v}function tm(e,t,n){var a=null;a=e._owner;var r=e.type,i=e.key,o=e.props,l=em(r,i,o,a,t,n);return l._debugSource=e._source,l._debugOwner=e._owner,l}function mi(e,t,n,a){var r=Ca(zt,e,a,t);return r.lanes=n,r}function ND(e,t,n,a){typeof e.id!="string"&&d('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var r=Ca(ot,e,a,t|Nt);return r.elementType=x,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function jD(e,t,n,a){var r=Ca(_,e,a,t);return r.elementType=S,r.lanes=n,r}function UD(e,t,n,a){var r=Ca(nt,e,a,t);return r.elementType=A,r.lanes=n,r}function o0(e,t,n,a){var r=Ca(Le,e,a,t);r.elementType=ze,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function nm(e,t,n){var a=Ca(Oe,e,null,t);return a.lanes=n,a}function HD(){var e=Ca(K,null,null,Ae);return e.elementType="DELETED",e}function zD(e){var t=Ca(pe,null,null,Ae);return t.stateNode=e,t}function am(e,t,n){var a=e.children!==null?e.children:[],r=Ca(H,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=Ca(bt,null,null,Ae)),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 FD(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(It),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 ni:this._debugRootType=n?"hydrate()":"render()";break}}function u0(e,t,n,a,r,i,o,l,u,f){var v=new FD(e,t,n,l,u),b=AD(t,i);v.current=b,b.stateNode=v;{var g={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};b.memoizedState=g}return hv(b),v}var rm="18.3.1";function VD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Ze(a),{$$typeof:B,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var im,om;im=!1,om={};function s0(e){if(!e)return Ea;var t=po(e),n=E1(t);if(t.tag===te){var a=t.type;if(lr(a))return Uy(t,a,n)}return n}function BD(e,t){{var n=po(e);if(n===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var a=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+a)}var r=oh(n);if(r===null)return null;if(r.mode&on){var i=Xe(n)||"Component";if(!om[i]){om[i]=!0;var o=Qn;try{Jt(r),n.mode&on?d("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i):d("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",t,t,i)}finally{o?Jt(o):Dn()}}}return r.stateNode}}function c0(e,t,n,a,r,i,o,l){var u=!1,f=null;return u0(e,t,u,f,n,a,r,i,o)}function f0(e,t,n,a,r,i,o,l,u,f){var v=!0,b=u0(n,a,v,e,r,i,o,l,u);b.context=s0(null);var g=b.current,R=ta(),M=vi(g),j=Or(R,M);return j.callback=t??null,ii(g,j,M),GR(b,M,R),b}function Bu(e,t,n,a){mT(t,e);var r=t.current,i=ta(),o=vi(r);jT(o);var l=s0(n);t.context===null?t.context=l:t.pendingContext=l,Ti&&Qn!==null&&!im&&(im=!0,d(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
|
|
|
|
Check the render method of %s.`,Xe(Qn)||"Unknown"));var u=Or(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&d("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var f=ii(r,u,o);return f!==null&&(xn(f,r,o,i),rc(f,r,o)),o}function qc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case K:return t.child.stateNode;default:return t.child.stateNode}}function $D(e){switch(e.tag){case I:{var t=e.stateNode;if(vs(t)){var n=YT(t);ZR(t,n)}break}case _:{Ur(function(){var r=sa(e,Be);if(r!==null){var i=ta();xn(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=QT(n.retryLane,t))}function lm(e,t){d0(e,t);var n=e.alternate;n&&d0(n,t)}function PD(e){if(e.tag===_){var t=Rl,n=sa(e,t);if(n!==null){var a=ta();xn(n,e,t,a)}lm(e,t)}}function YD(e){if(e.tag===_){var t=vi(e),n=sa(e,t);if(n!==null){var a=ta();xn(n,e,t,a)}lm(e,t)}}function v0(e){var t=oT(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 ID(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=lt(e)?e.slice():be({},e);return n+1===t.length?(lt(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=lt(e)?e.slice():be({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],lt(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){Re("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){Re("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=lt(e)?e.slice():be({},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=be({},e.memoizedProps);var o=sa(e,Be);o!==null&&xn(o,e,Be,It)}},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=be({},e.memoizedProps);var i=sa(e,Be);i!==null&&xn(i,e,Be,It)}},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=be({},e.memoizedProps);var o=sa(e,Be);o!==null&&xn(o,e,Be,It)}},b0=function(e,t,n){e.pendingProps=M0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=sa(e,Be);a!==null&&xn(a,e,Be,It)},S0=function(e,t){e.pendingProps=R0(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=sa(e,Be);n!==null&&xn(n,e,Be,It)},T0=function(e,t,n){e.pendingProps=_0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=sa(e,Be);a!==null&&xn(a,e,Be,It)},E0=function(e){var t=sa(e,Be);t!==null&&xn(t,e,Be,It)},C0=function(e){p0=e},x0=function(e){m0=e}}function qD(e){var t=oh(e);return t===null?null:t.stateNode}function GD(e){return null}function XD(){return Qn}function QD(e){var t=e.findFiberByHostInstance,n=me.ReactCurrentDispatcher;return pT({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:qD,findFiberByHostInstance:t||GD,findHostInstancesForRefresh:RD,scheduleRefresh:xD,scheduleRoot:wD,setRefreshHandler:CD,getCurrentFiber:XD,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"?d("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):Xc(arguments[1])?d("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&d("You passed a second argument to root.render(...) but it only accepts one argument.");var n=t.containerInfo;if(n.nodeType!==vn){var a=v0(t.current);a&&a.parentNode!==n&&d("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}Bu(e,t,null,null)},Gc.prototype.unmount=sm.prototype.unmount=function(){typeof arguments[0]=="function"&&d("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Pb()&&d("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Ur(function(){Bu(null,e,null,null)}),Ly(t)}};function KD(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?Re("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t=="object"&&t!==null&&t.$$typeof===h&&d(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
|
|
|
|
let root = createRoot(domContainer);
|
|
root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var o=c0(e,Ps,null,n,a,r,i);Us(o.current,e);var l=e.nodeType===vn?e.parentNode:e;return ql(l),new sm(o)}function Gc(e){this._internalRoot=e}function ZD(e){e&&vE(e)}Gc.prototype.unstable_scheduleHydration=ZD;function JD(e,t,n){if(!Xc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");O0(e),t===void 0&&d("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var a=n??null,r=n!=null&&n.hydratedSources||null,i=!1,o=!1,l="",u=L0;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var f=f0(t,null,e,Ps,a,i,o,l,u);if(Us(f.current,e),ql(e),r)for(var v=0;v<r.length;v++){var b=r[v];aw(f,b)}return new Gc(f)}function Xc(e){return!!(e&&(e.nodeType===la||e.nodeType===Er||e.nodeType===mf))}function $u(e){return!!(e&&(e.nodeType===la||e.nodeType===Er||e.nodeType===mf||e.nodeType===vn&&e.nodeValue===" react-mount-point-unstable "))}function O0(e){e.nodeType===la&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&d("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),ru(e)&&(e._reactRootContainer?d("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):d("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var e_=me.ReactCurrentOwner,A0;A0=function(e){if(e._reactRootContainer&&e.nodeType!==vn){var t=v0(e._reactRootContainer.current);t&&t.parentNode!==e&&d("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,a=cm(e),r=!!(a&&ei(a));r&&!n&&d("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===la&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&d("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function cm(e){return e?e.nodeType===Er?e.documentElement:e.firstChild:null}function N0(){}function t_(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var g=qc(o);i.call(g)}}var o=f0(t,a,e,ni,null,!1,!1,"",N0);e._reactRootContainer=o,Us(o.current,e);var l=e.nodeType===vn?e.parentNode:e;return ql(l),Ur(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var f=a;a=function(){var g=qc(v);f.call(g)}}var v=c0(e,ni,null,!1,!1,"",N0);e._reactRootContainer=v,Us(v.current,e);var b=e.nodeType===vn?e.parentNode:e;return ql(b),Ur(function(){Bu(t,v,n,a)}),v}}function n_(e,t){e!==null&&typeof e!="function"&&d("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Qc(e,t,n,a,r){A0(n),n_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=t_(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=qc(o);l.call(u)}}Bu(t,o,e,r)}return qc(o)}var j0=!1;function a_(e){{j0||(j0=!0,d("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node"));var t=e_.current;if(t!==null&&t.stateNode!==null){var n=t.stateNode._warnedAboutRefsInRender;n||d("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",xt(t.type)||"A component"),t.stateNode._warnedAboutRefsInRender=!0}}return e==null?null:e.nodeType===la?e:BD(e,"findDOMNode")}function r_(e,t,n){if(d("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!$u(t))throw new Error("Target container is not a DOM element.");{var a=ru(t)&&t._reactRootContainer===void 0;a&&d("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return Qc(null,e,t,!0,n)}function i_(e,t,n){if(d("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!$u(t))throw new Error("Target container is not a DOM element.");{var a=ru(t)&&t._reactRootContainer===void 0;a&&d("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return Qc(null,e,t,!1,n)}function o_(e,t,n,a){if(d("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!$u(n))throw new Error("Target container is not a DOM element.");if(e==null||!eT(e))throw new Error("parentComponent must be a valid React Component");return Qc(e,t,n,!1,a)}var U0=!1;function l_(e){if(U0||(U0=!0,d("unmountComponentAtNode is deprecated and will be removed in the next major release. Switch to the createRoot API. Learn more: https://reactjs.org/link/switch-to-createroot")),!$u(e))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var t=ru(e)&&e._reactRootContainer===void 0;t&&d("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(e._reactRootContainer){{var n=cm(e),a=n&&!ei(n);a&&d("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return Ur(function(){Qc(null,null,e,!1,function(){e._reactRootContainer=null,Ly(e)})}),!0}else{{var r=cm(e),i=!!(r&&ei(r)),o=e.nodeType===la&&$u(e.parentNode)&&!!e.parentNode._reactRootContainer;i&&d("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",o?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}aE($D),iE(PD),oE(YD),lE($a),uE(eE),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&d("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),PS(sx),IS(Bp,JR,Ur);function u_(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 VD(e,t,null,n)}function s_(e,t,n,a){return o_(e,t,n,a)}var fm={usingClientEntryPoint:!1,Events:[ei,Oo,Hs,qm,Gm,Bp]};function c_(e,t){return fm.usingClientEntryPoint||d('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),KD(e,t)}function f_(e,t,n){return fm.usingClientEntryPoint||d('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),JD(e,t,n)}function d_(e){return Pb()&&d("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),Ur(e)}var v_=QD({findFiberByHostInstance:Fi,bundleType:1,version:rm,rendererPackageName:"react-dom"});if(!v_&&rn&&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")}ra.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fm,ra.createPortal=u_,ra.createRoot=c_,ra.findDOMNode=a_,ra.flushSync=d_,ra.hydrate=r_,ra.hydrateRoot=f_,ra.render=i_,ra.unmountComponentAtNode=l_,ra.unstable_batchedUpdates=Bp,ra.unstable_renderSubtreeIntoContainer=s_,ra.version=rm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),ra}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,L){Em.usingClientEntryPoint=!0;try{return Tm.createRoot(w,L)}finally{Em.usingClientEntryPoint=!1}}}const $=w=>{if(isNaN(w))return"00:00:00.000";const L=Math.floor(w/3600),me=Math.floor(w%3600/60),Ee=Math.floor(w%60),fe=Math.round(w%1*1e3),Re=String(L).padStart(2,"0"),d=String(me).padStart(2,"0"),Q=String(Ee).padStart(2,"0"),he=String(fe).padStart(3,"0");return`${Re}:${d}:${Q}.${he}`},hi=w=>$(w),Y0=w=>$(w),re={debug:(...w)=>{},error:(...w)=>console.error(...w),warn:(...w)=>console.warn(...w),info:(...w)=>console.info(...w)};var ee=Zc();const W0=({videoRef:w,currentTime:L,duration:me,isPlaying:Ee,isMuted:fe=!1,onPlayPause:Re,onSeek:d,onToggleMute:Q})=>{var le;const he=ee.useRef(null),[te,bt]=ee.useState(!1),[I,H]=ee.useState(!1),[K,Oe]=ee.useState(null),[zt,qt]=ee.useState(!1),St=ee.useRef(!1),[Pe,_e]=ee.useState({x:0}),[ot,_]=ee.useState(0),ne=typeof window<"u"&&((le=window.MEDIA_DATA)==null?void 0:le.videoUrl)||"/videos/sample-video-10m.mp4";ee.useEffect(()=>{if(bt((()=>{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";H(q)}},[]),ee.useEffect(()=>{Ee&&!I&&(H(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[Ee,I]),ee.useEffect(()=>{const W=w.current;if(!W)return;W.setAttribute("playsinline","true"),W.setAttribute("webkit-playsinline","true"),W.setAttribute("x-webkit-airplay","allow");const q=()=>{St.current||(Oe(W.currentTime),typeof window<"u"&&(window.lastSeekedPosition=W.currentTime))},Ye=()=>{te&&(H(!0),localStorage.setItem("video_initialized","true"))},Fe=()=>{};return W.addEventListener("timeupdate",q),W.addEventListener("play",Ye),W.addEventListener("pause",Fe),()=>{W.removeEventListener("timeupdate",q),W.removeEventListener("play",Ye),W.removeEventListener("pause",Fe)}},[w,te,St]),ee.useEffect(()=>{Oe(L)},[L]);const De=me>0?L/me*100:0,Vt=W=>{W.preventDefault(),qt(!0),St.current=!0,Me(W);const q=Fe=>{St.current&&Me(Fe)},Ye=()=>{qt(!1),St.current=!1,document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",Ye)};document.addEventListener("mousemove",q),document.addEventListener("mouseup",Ye)},Me=W=>{if(!he.current)return;const q=he.current.getBoundingClientRect(),Ye=Math.max(0,Math.min(1,(W.clientX-q.left)/q.width)),Fe=me*Ye;_e({x:W.clientX}),_(Fe),Oe(Fe),typeof window<"u"&&(window.lastSeekedPosition=Fe),d(Fe)},pe=W=>{if(!he.current||!W.touches[0])return;W.preventDefault(),qt(!0),St.current=!0,nt(W);const q=Fe=>{St.current&&nt(Fe)},Ye=()=>{qt(!1),St.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=W=>{if(!he.current)return;const q="touches"in W?W.touches[0]:null;if(!q)return;W.preventDefault();const Ye=he.current.getBoundingClientRect(),Fe=Math.max(0,Math.min(1,(q.clientX-Ye.left)/Ye.width)),at=me*Fe;_e({x:q.clientX}),_(at),Oe(at),typeof window<"u"&&(window.lastSeekedPosition=at),d(at)},oe=W=>{if(!zt&&he.current){const q=he.current.getBoundingClientRect(),Ye=(W.clientX-q.left)/q.width,Fe=me*Ye;Oe(Fe),typeof window<"u"&&(window.lastSeekedPosition=Fe),d(Fe)}},Le=()=>{w.current&&(document.fullscreenElement?document.exitFullscreen():w.current.requestFullscreen())},Ke=()=>{const W=w.current;W&&(W.paused?te&&K!==null&&K>0?(W.currentTime=K,setTimeout(()=>{w.current&&w.current.play().then(()=>{var q;re.debug("iOS: Play started successfully at position:",(q=w.current)==null?void 0:q.currentTime),Re()}).catch(q=>{console.error("iOS: Error playing video:",q)})},50)):W.play().then(()=>{Re()}).catch(q=>{console.error("Error playing video:",q)}):(W.pause(),Re()))};return p.jsxs("div",{className:"video-player-container",children:[p.jsxs("video",{ref:w,preload:"auto",crossOrigin:"anonymous",onClick:Ke,playsInline:!0,"webkit-playsinline":"true","x-webkit-airplay":"allow",controls:!1,muted:fe,children:[p.jsx("source",{src:ne,type:"video/mp4"}),p.jsx("p",{children:"Your browser doesn't support HTML5 video."})]}),te&&!I&&!Ee&&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 ${Ee?"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:hi(L)}),p.jsxs("span",{className:"video-duration",children:["/ ",hi(me)]})]}),p.jsxs("div",{ref:he,className:`video-progress ${zt?"dragging":""}`,onClick:oe,onMouseDown:Vt,onTouchStart:pe,children:[p.jsx("div",{className:"video-progress-fill",style:{width:`${De}%`}}),p.jsx("div",{className:"video-scrubber",style:{left:`${De}%`}}),zt&&p.jsx("div",{className:"video-time-tooltip",style:{left:`${Pe.x}px`,transform:"translateX(-50%)"},children:$(ot)})]}),p.jsxs("div",{className:"video-controls-buttons",children:[Q&&p.jsx("button",{className:"mute-button","aria-label":fe?"Unmute":"Mute",onClick:Q,"data-tooltip":fe?"Unmute":"Mute",children:fe?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:Le,"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,L)=>{const me=Math.min(Math.max(w/(L||1),0),1),Ee=210,fe=40+Math.floor(me*20),Re=85+Math.floor(me*8);return`hsl(${Ee}, ${fe}%, ${Re}%)`},Cm=async(w,L)=>new Promise(me=>{const Ee=document.createElement("canvas");Ee.width=10,Ee.height=10;const fe=Ee.getContext("2d");if(fe){const d=tf(L,w.duration);fe.fillStyle=d,fe.fillRect(0,0,Ee.width,Ee.height)}const Re=Ee.toDataURL("image/png",.5);me(Re)}),to=({isOpen:w,onClose:L,title:me,children:Ee,actions:fe})=>{if(ee.useEffect(()=>{const d=Q=>{Q.key==="Escape"&&w&&L()};return document.addEventListener("keydown",d),w&&(document.body.style.overflow="hidden"),()=>{document.removeEventListener("keydown",d),document.body.style.overflow=""}},[w,L]),!w)return null;const Re=d=>{d.target===d.currentTarget&&L()};return p.jsx("div",{className:"modal-overlay",onClick:Re,children:p.jsxs("div",{className:"modal-container",onClick:d=>d.stopPropagation(),children:[p.jsxs("div",{className:"modal-header",children:[p.jsx("h2",{className:"modal-title",children:me}),p.jsx("button",{className:"modal-close-button",onClick:L,"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:Ee}),fe&&p.jsx("div",{className:"modal-actions",children:fe})]})})},xm=w=>new Promise(L=>setTimeout(L,w)),nf=async(w,L)=>{try{const me=await fetch(`/api/v1/media/${w}/trim_video`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(L)});if(!me.ok)if(me.status===400)try{return{status:400,error:(await me.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(me.status!==404)try{const fe=await me.json();return{status:me.status,error:fe.error||"An error occurred during processing",msg:"Video Processing Error",url_redirect:""}}catch{return{status:me.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 Ee=await me.json();return{status:200,msg:"Video Processed Successfully",url_redirect:Ee.url_redirect||`./view?m=${w}`,...Ee}}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",I0="data:image/svg+xml,%3c?xml%20version='1.0'%20?%3e%3csvg%20height='32'%20viewBox='0%200%2032%2032'%20width='32'%20xmlns='http://www.w3.org/2000/svg'%3e%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",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%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",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(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",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%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",Q0={color:"#007bff",textDecoration:"none",fontWeight:"bold","&:hover":{textDecoration:"underline",color:"#0056b3"}},_m=w=>{let Re,d;if(w<=25)if(w<=0)Re="0%",d="none";else{const he=-50*((w-0)/25);Re=`${w}%`,d=`translateX(${he}%)`}else if(w>=75)if(w>=100)Re="100%",d="translateX(-100%)";else{const he=-50-50*((w-75)/25);Re=`${w}%`,d=`translateX(${he}%)`}else Re=`${w}%`,d="translateX(-50%)";return{left:Re,transform:d}},K0=({currentTime:w,duration:L,thumbnails:me,trimStart:Ee,trimEnd:fe,splitPoints:Re,zoomLevel:d,clipSegments:Q,onTrimStartChange:he,onTrimEndChange:te,onZoomChange:bt,onSeek:I,videoRef:H,onSave:K,onSaveACopy:Oe,onSaveSegments:zt,hasUnsavedChanges:qt=!1,isIOSUninitialized:St=!1,isPlaying:Pe,setIsPlaying:_e,onPlayPause:ot,isPlayingSegments:_=!1})=>{const ne=ee.useRef(null),De=ee.useRef(null),Vt=ee.useRef(null),[Me,pe]=ee.useState(null),[nt,oe]=ee.useState(!1),[Le,Ke]=ee.useState({x:0,y:0}),[le,W]=ee.useState(0),[q,Ye]=ee.useState(!1),[Fe,at]=ee.useState(30),[ct,We]=ee.useState(!1),[Ve,Ue]=ee.useState(null),[cn,et]=ee.useState(0),[Ht,gt]=ee.useState(!1),Qe=ee.useRef(null),Gt=h=>{const B=h;let D=null,T=null,x=le;const O=()=>{const c=B<0?Math.max(0,x+B):Math.min(L,x+B);x=c;const y=ct;if(I(c),W(c),et(c),ne.current){const S=ne.current.getBoundingClientRect(),A=c/L*100,ve=S.left+S.width*(A/100);Ke({x:ve,y:S.top-10});const z=Q.find(ue=>c>=ue.startTime&&c<=ue.endTime);if(z)pe(z.id),oe(!1);else{pe(null);const ue=Tt(c);at(ue),oe(!0)}}y&&H.current&&(H.current.play(),We(!0))};return{onMouseDown:c=>{c.stopPropagation(),c.preventDefault(),x=le,O(),D=setTimeout(()=>{T=setInterval(O,200)},750);const y=()=>{D&&(clearTimeout(D),D=null),T&&(clearInterval(T),T=null),document.removeEventListener("mouseup",y),document.removeEventListener("mouseleave",y)};document.addEventListener("mouseup",y),document.addEventListener("mouseleave",y)},onTouchStart:c=>{c.stopPropagation(),c.preventDefault(),x=le,O(),D=setTimeout(()=>{T=setInterval(O,200)},750);const y=()=>{D&&(clearTimeout(D),D=null),T&&(clearInterval(T),T=null),document.removeEventListener("touchend",y),document.removeEventListener("touchcancel",y)};document.addEventListener("touchend",y),document.addEventListener("touchcancel",y)},onClick:c=>{c.stopPropagation()}}},[rn,fn]=ee.useState(!1),[F,G]=ee.useState(!1),[Te,Ce]=ee.useState(!1),[Ze,st]=ee.useState(!1),[ht,Ge]=ee.useState(!1),[yt,rt]=ee.useState(!1),[tn,mn]=ee.useState(""),[Ot,Lt]=ee.useState(""),[hn,ia]=ee.useState(""),[va,Z]=ee.useState("save"),xe=L>0?w/L*100:0,Je=L>0?Ee/L*100:0,Rt=L>0?fe/L*100:0,Bt=async()=>{var h,B;fn(!1),st(!0),Z("save");try{const D=Q.map(c=>({startTime:$(c.startTime),endTime:$(c.endTime)})),T=typeof window<"u"&&((h=window.MEDIA_DATA)==null?void 0:h.mediaId)||null,x=typeof window<"u"&&((B=window.MEDIA_DATA)==null?void 0:B.redirectURL)||null;re.debug("Save request:",{mediaId:T,segments:D,saveAsCopy:!1,redirectURL:x});const O=await nf(T,{segments:D,saveAsCopy:!1});if(re.debug("Save response:",O),st(!1),O.status===200){const c=x||O.url_redirect;re.debug("Using redirect URL:",c),ia(c),mn("Video saved successfully!"),Ge(!0)}else if(O.status===400){const c=O.error||"An error occurred during processing";re.debug("Save error (400):",c),Lt(c),rt(!0)}else re.debug("Save error (unknown status):",O),Lt("An unexpected error occurred"),rt(!0)}catch(D){re.error("Error processing video:",D),st(!1);const T=D instanceof Error?D.message:"An error occurred during processing";Lt(T),rt(!0)}},Xt=async()=>{var h,B;G(!1),st(!0),Z("copy");try{const D=Q.map(c=>({startTime:$(c.startTime),endTime:$(c.endTime)})),T=typeof window<"u"&&((h=window.MEDIA_DATA)==null?void 0:h.mediaId)||null,x=typeof window<"u"&&((B=window.MEDIA_DATA)==null?void 0:B.redirectUserMediaURL)||null;re.debug("Save as copy request:",{mediaId:T,segments:D,saveAsCopy:!0,redirectUserMediaURL:x});const O=await nf(T,{segments:D,saveAsCopy:!0});if(re.debug("Save as copy response:",O),st(!1),O.status===200){const c=x||O.url_redirect;re.debug("Using redirect user media URL:",c),ia(c),mn("Video saved as a new copy!"),Ge(!0)}else if(O.status===400){const c=O.error||"An error occurred during processing";re.debug("Save as copy error (400):",c),Lt(c),rt(!0)}else re.debug("Save as copy error (unknown status):",O),Lt("An unexpected error occurred"),rt(!0)}catch(D){re.error("Error processing video:",D),st(!1);const T=D instanceof Error?D.message:"An error occurred during processing";Lt(T),rt(!0)}},Qt=async()=>{var h,B;Ce(!1),st(!0),Z("segments");try{const D=Q.map(c=>({startTime:$(c.startTime),endTime:$(c.endTime),name:c.name})),T=typeof window<"u"&&((h=window.MEDIA_DATA)==null?void 0:h.mediaId)||null,x=typeof window<"u"&&((B=window.MEDIA_DATA)==null?void 0:B.redirectUserMediaURL)||null;re.debug("Save segments request:",{mediaId:T,segments:D,saveAsCopy:!0,saveIndividualSegments:!0,redirectUserMediaURL:x});const O=await nf(T,{segments:D,saveAsCopy:!0,saveIndividualSegments:!0});if(re.debug("Save segments response:",O),st(!1),O.status===200){const c=x||O.url_redirect;re.debug("Using redirect user media URL for segments:",c),ia(c),mn(`${D.length} segments saved successfully!`),Ge(!0)}else if(O.status===400){const c=O.error||"An error occurred during processing";re.debug("Save segments error (400):",c),Lt(c),rt(!0)}else re.debug("Save segments error (unknown status):",O),Lt("An unexpected error occurred"),rt(!0)}catch(D){re.error("Error processing video segments:",D),st(!1);const T=D instanceof Error?D.message:"An error occurred during processing";Lt(T),rt(!0)}};ee.useEffect(()=>{if(Qe.current&&ne.current&&d>1){const h=Qe.current.clientWidth,B=ne.current.clientWidth,D=w/L*B,T=Math.max(0,D-h/2);Qe.current.scrollTo({left:T,behavior:"smooth"});const x=ne.current.getBoundingClientRect();Qe.current.getBoundingClientRect();const c=x.left-Qe.current.scrollLeft+xe/100*x.width;(Me!==null||nt)&&(Ke({x:c,y:x.top-10}),W(w))}},[w,d,L,Me,nt,xe]),ee.useEffect(()=>{const h=H.current;if(!h||!Ve||!ct||_)return;re.debug("Segment boundary check ACTIVATED for segment:",Ve.id,"Start:",$(Ve.startTime),"End:",$(Ve.endTime));const B=()=>{const D=Ve.endTime-h.currentTime;if(Math.round(D*10)%10===0&&re.debug("Segment playback - time remaining:",$(D),"Current:",$(h.currentTime),"End:",$(Ve.endTime),"ContinuePastBoundary:",Ht),h.currentTime>Ve.endTime){h.pause(),h.currentTime=Ve.endTime,We(!1),gt(!1),re.debug("Passed segment end - setting back to exact boundary:",$(Ve.endTime));return}if(Ve.endTime-h.currentTime<.05)if(Ht)re.debug("Continuing past segment boundary:",$(Ve.endTime)),h.currentTime>Ve.endTime&&(gt(!1),Ue(null),sessionStorage.removeItem("continuingPastSegment"));else{h.pause(),h.currentTime=Ve.endTime,We(!1),re.debug("Paused at segment end boundary:",$(Ve.endTime));const x=[...Q].sort((O,c)=>O.startTime-c.startTime).find(O=>O.startTime>Ve.endTime);x&&Math.abs(x.startTime-Ve.endTime)<.1&&(re.debug("Found adjacent next segment:",x.id),pe(x.id),Ue(x),et(x.startTime),W(x.startTime),h.currentTime=x.startTime)}};return h.addEventListener("timeupdate",B),()=>{h.removeEventListener("timeupdate",B)}},[Ve,ct,Ht,Q]),ee.useEffect(()=>{if(H.current)if(H.current.paused)H.current.paused&&ct&&(et(w),W(w),We(!1),re.debug("Video paused at:",$(w)));else{et(w),W(w),Me!==null&&We(!0);const h=Q.find(T=>w>=T.startTime&&w<=T.endTime),B=w/L*100;if(ne.current){const T=ne.current.offsetWidth,x=B/100*T;Ke({x,y:ne.current.getBoundingClientRect().top-10})}const D=sessionStorage.getItem("continuingPastSegment")==="true";if(h){const T=H.current,x=Ve&&Ve.id<0&&ct;if((Ve==null?void 0:Ve.id)!==h.id&&!x&&!D&&!Ht&&(re.debug(`Entered a new segment during playback: ${h.id}, setting as active`),Ue(h),pe(h.id),oe(!1),gt(!1),sessionStorage.removeItem("continuingPastSegment")),x&&T&&h){re.debug(`CUTAWAY BOUNDARY REACHED: Current position ${$(T.currentTime)} at segment ${h.id} - STOPPING at boundary ${$(h.startTime)}`),T.pause(),setTimeout(()=>{if(H.current){H.current.currentTime=h.startTime,I(h.startTime),et(h.startTime),W(h.startTime),gt(!1),pe(h.id),oe(!1);const c=()=>{H.current&&(H.current.currentTime=h.startTime,I(h.startTime),et(h.startTime),W(h.startTime),re.debug(`Position corrected to exact segment boundary: ${$(H.current.currentTime)} (target: ${$(h.startTime)})`))};setTimeout(c,10),setTimeout(c,20),setTimeout(c,50),setTimeout(c,100),setTimeout(c,200),H.current.addEventListener("seeked",c),H.current.addEventListener("canplay",c),H.current.addEventListener("waiting",c),setTimeout(()=>{H.current&&(H.current.removeEventListener("seeked",c),H.current.removeEventListener("canplay",c),H.current.removeEventListener("waiting",c))},300)}},10),We(!1),Ue(null);return}Ve===null&&ct===!0||D||x?(Me!==h.id||nt)&&(re.debug("Tooltip updated for segment during continued playback:",h.id,x?"(cutaway playback - keeping virtual segment)":""),pe(h.id),oe(!1),!x&&sessionStorage.getItem("lastSegmentId")!==h.id.toString()&&sessionStorage.removeItem("continuingPastSegment")):((Ve==null?void 0:Ve.id)!==h.id||nt)&&(re.debug("Playback moved into segment:",h.id),pe(h.id),Ue(h),oe(!1),sessionStorage.setItem("lastSegmentId",h.id.toString()))}else if(Ve!==null||!nt){pe(null),Ue(null);const T=Tt(w);at(T),T>=.5?oe(!0):oe(!1)}}},[w,ct,Ve,Me,Q]),ee.useEffect(()=>{const h=B=>{const D=B.target;q&&!D.closest(".zoom-dropdown-container")&&Ye(!1)};return document.addEventListener("mousedown",h),()=>{document.removeEventListener("mousedown",h)}},[q]),ee.useEffect(()=>()=>{},[Me,nt,ct]),ee.useEffect(()=>{const h=De.current,B=Vt.current,D=ne.current;if(!h||!B||!D)return;const T=x=>O=>{O.preventDefault();const c=D.getBoundingClientRect();let y=!0,S=x?Ee:fe;const A=ue=>new CustomEvent("trim-handle-event",{detail:{type:ue,isStart:x}});document.dispatchEvent(A("drag-start"));const ve=ue=>{if(!y)return;const ye=c.width,it=Math.max(0,Math.min(1,(ue.clientX-c.left)/ye))*L;typeof window<"u"&&(window.lastSeekedPosition=it),x?it<fe&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:it,isStart:!0,recordHistory:!1}})),S=it):it>Ee&&(document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:it,isStart:!1,recordHistory:!1}})),S=it)},z=()=>{y=!1,document.removeEventListener("mousemove",ve),document.removeEventListener("mouseup",z),x?document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:S,isStart:!0,recordHistory:!0,action:"adjust_trim_start"}})):document.dispatchEvent(new CustomEvent("update-trim",{detail:{time:S,isStart:!1,recordHistory:!0,action:"adjust_trim_end"}})),document.dispatchEvent(A("drag-end"))};document.addEventListener("mousemove",ve),document.addEventListener("mouseup",z)};return h.addEventListener("mousedown",T(!0)),B.addEventListener("mousedown",T(!1)),()=>{h.removeEventListener("mousedown",T(!0)),B.removeEventListener("mousedown",T(!1))}},[L,Ee,fe,he,te]);const wn=()=>{const h=me.length||10;return Array.from({length:h}).map((B,D)=>{const T=L/h,x=D*T,O=x+T,c=(x+O)/2,y=tf(c,L);return p.jsx("div",{className:"timeline-thumbnail",style:{width:`${100/h}%`,backgroundColor:y}},D)})},Pt=()=>Re.map((h,B)=>{const D=h/L*100;return p.jsx("div",{className:"split-point",style:{left:`${D}%`}},B)}),Tt=h=>{const D=[...Q].sort((c,y)=>c.startTime-y.startTime),T=D.find(c=>c.startTime>h),x=[...D].reverse().find(c=>c.endTime<h);let O;return T?O=T.startTime-h:O=L-h,re.debug("Space calculation:",{position:$(h),nextSegment:T?$(T.startTime):"none",prevSegment:x?$(x.endTime):"none",availableSpace:$(Math.max(.1,O))}),Math.max(.1,O)},Dt=h=>{if(!ne.current)return;const B=Q.find(S=>{const A=h>=S.startTime&&h<=S.endTime,ve=Math.abs(h-S.startTime)<.001,z=Math.abs(h-S.endTime)<.001;return A||ve||z}),D=[...Q].sort((S,A)=>S.startTime-A.startTime),T=D.find(S=>S.startTime>h),x=[...D].reverse().find(S=>S.endTime<h);if(B)pe(B.id),oe(!1);else{const S=Tt(h);at(S),pe(null),oe(!0),re.debug("Cutaway position:",{current:$(h),prevSegmentEnd:x?$(x.endTime):"none",nextSegmentStart:T?$(T.startTime):"none",availableSpace:$(S)})}const O=ne.current.getBoundingClientRect(),c=h/L*100;let y;d>1&&Qe.current?y=O.left-Qe.current.scrollLeft+O.width*(c/100):y=O.left+O.width*(c/100),Ke({x:y,y:O.top-10})},er=h=>{if(!ne.current||!Qe.current||St)return;const B=H.current&&!H.current.paused;gt(!1);const D=ne.current.getBoundingClientRect();let T;if(d>1){const c=Qe.current.scrollLeft,y=ne.current.clientWidth;T=(h.clientX-D.left+c)/y}else T=(h.clientX-D.left)/D.width;const x=T*L;re.debug("Timeline clicked at:",$(x),"distance from end:",$(L-x)),typeof window<"u"&&(window.lastSeekedPosition=x),I(x),W(x),et(x);const O=Q.find(c=>{const y=x>=c.startTime&&x<=c.endTime,S=Math.abs(x-c.startTime)<.01,A=Math.abs(x-c.endTime)<.01;return y||S||A});if(O&&Ue(O),H.current)if(_&&B){if(O){const y=[...Q].sort((S,A)=>S.startTime-A.startTime).findIndex(S=>S.id===O.id);if(y!==-1){const S=new CustomEvent("update-segment-index",{detail:{segmentIndex:y}});document.dispatchEvent(S),re.debug(`Segments playback mode: updating segment index to ${y} for timeline click in segment ${O.id}`)}}H.current.play().then(()=>{We(!0)}).catch(c=>{console.error("Error resuming segments playback:",c),We(!1)})}else B&&!_&&H.current.play().then(()=>{We(!0)}).catch(c=>{console.error("Error resuming playback:",c),We(!1)});if(h.target===ne.current||h.target.classList.contains("timeline-thumbnail"))if(O)pe(O.id),oe(!1);else{pe(null);const c=Tt(x);at(c);let y;if(d>1){const z=D.left-Qe.current.scrollLeft,ue=x/L;y=z+ue*D.width}else y=h.clientX;Ke({x:y,y:D.top-10}),oe(!0);const S=[...Q].sort((z,ue)=>z.startTime-ue.startTime),A=[...S].reverse().find(z=>z.endTime<x),ve=S.find(z=>z.startTime>x);re.debug("Clicked in cutaway area:",{position:$(x),availableSpace:$(c),prevSegmentEnd:A?$(A.endTime):"none",nextSegmentStart:ve?$(ve.startTime):"none"})}},$n=(h,B)=>D=>{if(D.preventDefault(),D.stopPropagation(),!ne.current)return;ne.current.getBoundingClientRect().width;const x=Q.find(Zt=>Zt.id===h);if(!x)return;const O=x.startTime,c=x.endTime,y={...x};document.body.style.cursor="ew-resize";const S=document.createElement("div");S.style.position="fixed",S.style.top="0",S.style.left="0",S.style.width="100vw",S.style.height="100vh",S.style.zIndex="1000",S.style.cursor="ew-resize",document.body.appendChild(S);let A=!0,ve=O,z=c;document.dispatchEvent(new CustomEvent("segment-drag-start",{detail:{segmentId:h}}));const ue=Zt=>{if(!A||!ne.current)return;const Pn=ne.current.getBoundingClientRect(),be=Math.max(0,Math.min(1,(Zt-Pn.left)/Pn.width))*L,Rn=B?be:O,Ua=B?c:be;if(w>=Rn&&w<=Ua)pe(h),oe(!1);else{pe(null);const un=Tt(w);at(un),oe(!0)}const Ha=Q.filter(un=>un.id!==h);let ha=O,ya=c;if(B){ha=Math.min(be,c-.5);const _t=Ha.filter(oa=>oa.endTime<=O).sort((oa,hr)=>hr.endTime-oa.endTime)[0];_t&&ha<_t.endTime&&(ha=_t.endTime),_t&&Math.abs(ha-_t.endTime)<.3&&(ha=_t.endTime),ve=ha}else{ya=Math.max(be,O+.5);const _t=Ha.filter(oa=>oa.startTime>=c).sort((oa,hr)=>oa.startTime-hr.startTime)[0];_t&&ya>_t.startTime&&(ya=_t.startTime),_t&&Math.abs(ya-_t.startTime)<.3&&(ya=_t.startTime),z=ya}const $r=Q.map(un=>un.id===h?{...un,startTime:ha,endTime:ya}:un),yi=new CustomEvent("update-segments",{detail:{segments:$r,recordHistory:!1}});if(document.dispatchEvent(yi),Me===h&&H.current){const un=H.current.currentTime,_t=$r.find(za=>za.id===h);if(_t){const za=un>=_t.startTime&&un<=_t.endTime;re.debug(`During drag - playhead at ${$(un)} is ${za?"inside":"outside"} segment (${$(_t.startTime)} - ${$(_t.endTime)})`),!za&&ct&&(H.current.pause(),We(!1),Ue(null)),un<_t.startTime?(re.debug(`Adjusting display time to segment start: ${$(_t.startTime)}`),et(_t.startTime),W(_t.startTime)):un>_t.endTime&&(re.debug(`Adjusting display time to segment end: ${$(_t.endTime)}`),et(_t.endTime),W(_t.endTime))}}},ye=()=>{if(!A)return;A=!1,document.removeEventListener("mousemove",ze),document.removeEventListener("mouseup",it),document.removeEventListener("touchmove",Ft),document.removeEventListener("touchend",nn),document.removeEventListener("touchcancel",nn),document.body.style.cursor="",document.body.contains(S)&&document.body.removeChild(S);const Zt=Q.map(ft=>ft.id===h?{...ft,startTime:ve,endTime:z}:ft),Pn=B?"adjust_segment_start":"adjust_segment_end";if(document.dispatchEvent(new CustomEvent("update-segments",{detail:{segments:Zt,recordHistory:!0,action:Pn}})),Me===h&&H.current){const ft=H.current.currentTime,be=Zt.find(Rn=>Rn.id===h);if(be){const Rn=ft>=be.startTime&&ft<=be.endTime;re.debug(`Drag complete - playhead at ${$(ft)} is ${Rn?"inside":"outside"} segment (${$(be.startTime)} - ${$(be.endTime)})`);const Ua=ft>=y.startTime&&ft<=y.endTime;Rn?(!Ua&&Rn||Ua&&Rn&&(be.startTime!==y.startTime||be.endTime!==y.endTime))&&Ue(be):(ct&&(H.current.pause(),We(!1),Ue(null),gt(!1)),ft<be.startTime?(re.debug(`Final adjustment - setting display time to segment start: ${$(be.startTime)}`),et(be.startTime),W(be.startTime)):ft>be.endTime&&(re.debug(`Final adjustment - setting display time to segment end: ${$(be.endTime)}`),et(be.endTime),W(be.endTime)))}}},ze=Zt=>{ue(Zt.clientX)},it=()=>{ye()},Ft=Zt=>{Zt.touches.length>0&&(Zt.preventDefault(),ue(Zt.touches[0].clientX))},nn=()=>{ye()};document.addEventListener("mousemove",ze,{passive:!1}),document.addEventListener("mouseup",it),document.addEventListener("touchmove",Ft,{passive:!1}),document.addEventListener("touchend",nn),document.addEventListener("touchcancel",nn)},pa=h=>B=>{if(B.target.classList.contains("clip-segment-handle"))return;B.preventDefault(),B.stopPropagation(),gt(!1);const D=H.current&&!H.current.paused;pe(h);const T=Q.find(z=>z.id===h);if(!T)return;const O=B.currentTarget.getBoundingClientRect(),c=(B.clientX-O.left)/O.width,y=T.startTime+c*(T.endTime-T.startTime),S=Math.max(T.startTime,Math.min(T.endTime,y));if(W(S),et(S),H.current){const z=H.current.currentTime,ue=z>=T.startTime&&z<=T.endTime;re.debug(`Segment click - playhead at ${$(z)} is ${ue?"inside":"outside"} segment (${$(T.startTime)} - ${$(T.endTime)})`),ue||(Math.abs(z-T.startTime)<Math.abs(z-T.endTime)?(re.debug(`Playhead outside segment - adjusting to segment start: ${$(T.startTime)}`),et(T.startTime)):(re.debug(`Playhead outside segment - adjusting to segment end: ${$(T.endTime)}`),et(T.endTime)))}if(I(S),H.current)if(_&&D){const ue=[...Q].sort((ye,ze)=>ye.startTime-ze.startTime).findIndex(ye=>ye.id===h);if(ue!==-1){const ye=new CustomEvent("update-segment-index",{detail:{segmentIndex:ue}});document.dispatchEvent(ye)}H.current.play().then(()=>{We(!0)}).catch(ye=>{console.error("Error continuing segments playback after segment click:",ye)})}else D&&!_&&(Ue(T),gt(!1),H.current.play().then(()=>{We(!0)}).catch(z=>{console.error("Error resuming playback after segment click:",z)}));const A=B.clientX,ve=O.top-10;if(Ke({x:A,y:ve}),d>1&&ne.current&&Qe.current){ne.current.getBoundingClientRect();const z=ne.current.clientWidth,ue=Qe.current.clientWidth,ye=S/L*z,ze=Math.max(0,ye-ue/2);Qe.current.scrollTo({left:ze,behavior:"smooth"}),setTimeout(()=>{if(ne.current&&Qe.current){const it=ne.current.getBoundingClientRect(),nn=S/L*z-Qe.current.scrollLeft+it.left;Ke({x:nn,y:ve})}},300)}},tr=()=>Q.map((h,B)=>{const D=h.startTime/L*100,T=(h.endTime-h.startTime)/L*100,x=tf((h.startTime+h.endTime)/2,L);return p.jsxs("div",{className:`clip-segment ${Me===h.id?"selected":""}`,style:{left:`${D}%`,width:`${T}%`,backgroundColor:x,borderWidth:"2px",borderStyle:"solid",borderColor:"rgba(0, 0, 0, 0.5)"},onClick:pa(h.id),children:[p.jsxs("div",{className:"clip-segment-info",children:[p.jsxs("div",{className:"clip-segment-name",children:["Segment ",B+1]}),p.jsxs("div",{className:"clip-segment-time",children:[hi(h.startTime)," - ",hi(h.endTime)]}),p.jsxs("div",{className:"clip-segment-duration",children:["Duration: ",hi(h.endTime-h.startTime)]})]}),_?null:p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"clip-segment-handle left",title:"Resize segment start",onMouseDown:O=>{O.stopPropagation(),$n(h.id,!0)(O)},onTouchStart:O=>{O.stopPropagation(),$n(h.id,!0)(O)}}),p.jsx("div",{className:"clip-segment-handle right",title:"Resize segment end",onMouseDown:O=>{O.stopPropagation(),$n(h.id,!1)(O)},onTouchStart:O=>{O.stopPropagation(),$n(h.id,!1)(O)}})]})]},h.id)});ee.useEffect(()=>{const h=B=>{const{segmentId:D}=B.detail;if(Q.filter(x=>x.id!==D).length===0){const x={id:Date.now(),name:"Full Video",startTime:0,endTime:L,thumbnail:""},O=new CustomEvent("update-segments",{detail:{segments:[x],recordHistory:!0,action:"create_full_video_segment"}});if(document.dispatchEvent(O),pe(x.id),oe(!1),W(w),et(w),Ue(x),ne.current){const c=ne.current.getBoundingClientRect(),y=w/L*100,S=c.left+c.width*(y/100);Ke({x:S,y:c.top-10}),re.debug("Created full video segment:",{id:x.id,duration:$(L),currentPosition:$(w)})}}else if(Me===D){if(!Q.find(c=>c.id===D))return;const O=Tt(w);if(pe(null),oe(!0),at(O),ne.current){const c=ne.current.getBoundingClientRect(),y=w/L*100,S=c.left+c.width*(y/100);Ke({x:S,y:c.top-10}),re.debug("Segment deleted, showing cutaway tooltip:",{position:$(w),availableSpace:$(O)})}}};return document.addEventListener("delete-segment",h),()=>{document.removeEventListener("delete-segment",h)}},[Me,Q,w,L,ne]),ee.useEffect(()=>{const h=H.current;if(!h)return;const B=()=>{if(!H.current)return;const T=H.current,x=T.currentTime;gt(!1);let O=L,c=null,y=null;c=Q.find(A=>{const ve=x>=A.startTime&&x<=A.endTime,z=Math.abs(x-A.startTime)<.001,ue=Math.abs(x-A.endTime)<.001;return ve||z||ue}),y=Q.filter(A=>{const ve=A.startTime>x,z=Math.abs(A.startTime-x)>.001;return ve&&z}).sort((A,ve)=>A.startTime-ve.startTime)[0],c?(O=c.endTime,Ue(c)):y&&(O=y.startTime);const S=()=>{if(!T)return;const A=T.currentTime;if(O-A<=.001||A>=O){T.pause();const z=()=>{T&&(T.currentTime=O,I(O),et(O),W(O),re.debug("Position verification:",{target:$(O),actual:$(T.currentTime),difference:Math.abs(T.currentTime-O).toFixed(3)}))};z(),setTimeout(z,10),setTimeout(z,20),setTimeout(z,50),c?(pe(c.id),oe(!1)):y?(pe(y.id),oe(!1),Ue(y)):(pe(null),oe(!0),Ue(null)),T.removeEventListener("timeupdate",S),_e(!1),We(!1),gt(!1);return}};T.addEventListener("timeupdate",S),T.play().then(()=>{_e(!0),We(!0),re.debug("Playback started:",{from:$(x),to:$(O),currentSegment:c?`Segment ${c.id}`:"None",nextSegment:y?`Segment ${y.id}`:"None"})}).catch(A=>{console.error("Error playing video:",A)})},D=()=>{We(!1)};return h.addEventListener("play",B),h.addEventListener("pause",D),()=>{h.removeEventListener("play",B),h.removeEventListener("pause",D)}},[Q,L,I]);const Fr=h=>{if(!ne.current)return;const B=ne.current.getBoundingClientRect(),T=(h.clientX-B.left)/B.width*L,x=Math.max(0,Math.min(L,T));typeof window<"u"&&(window.lastSeekedPosition=x)},[Vr,wa]=ee.useState(!1),ja=ee.useRef(!1),Br=h=>{if(St)return;h.stopPropagation(),h.preventDefault(),wa(!0),ja.current=!0,Dt(w);const B=T=>{if(!ne.current||!Qe.current)return;const x=ne.current.getBoundingClientRect();let O;if(d>1){const y=Qe.current.scrollLeft,S=ne.current.clientWidth;O=(T.clientX-x.left+y)/S}else O=(T.clientX-x.left)/x.width;O=Math.max(0,Math.min(1,O));const c=O*L;W(c),et(c),Dt(c),typeof window<"u"&&(window.lastSeekedPosition=c),I(c)},D=()=>{wa(!1),ja.current=!1,document.removeEventListener("mousemove",B),document.removeEventListener("mouseup",D)};document.addEventListener("mousemove",B),document.addEventListener("mouseup",D)},ma=h=>{if(St)return;h.stopPropagation(),h.preventDefault(),wa(!0),ja.current=!0,Dt(w);const B=T=>{if(!ne.current||!Qe.current||!T.touches[0])return;const x=ne.current.getBoundingClientRect();let O;if(d>1){const y=Qe.current.scrollLeft,S=ne.current.clientWidth;O=(T.touches[0].clientX-x.left+y)/S}else O=(T.touches[0].clientX-x.left)/x.width;O=Math.max(0,Math.min(1,O));const c=O*L;W(c),et(c),Dt(c),typeof window<"u"&&(window.lastSeekedPosition=c),I(c)},D=()=>{wa(!1),ja.current=!1,document.removeEventListener("touchmove",B),document.removeEventListener("touchend",D),document.removeEventListener("touchcancel",D)};document.addEventListener("touchmove",B,{passive:!1}),document.addEventListener("touchend",D),document.addEventListener("touchcancel",D)};return ee.useEffect(()=>{},[hn,va,ht]),ee.useEffect(()=>{let h,B;if(ht&&hn){let D=10;h=setInterval(()=>{D--;const T=document.querySelector(".countdown");T&&(T.textContent=D.toString()),D<=0&&clearInterval(h)},1e3),B=setTimeout(()=>{K&&K(),window.location.href=hn},1e4)}return()=>{h&&clearInterval(h),B&&clearTimeout(B)}},[ht,hn,K]),p.jsxs("div",{className:`timeline-container-card ${_?"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:$(Q.reduce((h,B)=>h+(B.endTime-B.startTime),0))})]})]}),p.jsx("div",{ref:Qe,className:`timeline-scroll-container ${_?"segments-playback-mode":""}`,style:{overflow:d>1?"auto":"hidden"},children:p.jsxs("div",{ref:ne,className:"timeline-container",onClick:er,onMouseMove:Fr,style:{width:`${d*100}%`,cursor:"pointer"},children:[p.jsxs("div",{className:"timeline-marker",style:{left:`${xe}%`},children:[p.jsx("div",{className:"timeline-marker-head",onClick:h=>{if(h.stopPropagation(),Q.find(B=>w>=B.startTime&&w<=B.endTime),Me||nt){pe(null),oe(!1);return}else Dt(w),re.debug("Opening tooltip at:",$(w))},children:p.jsx("span",{className:"timeline-marker-head-icon",children:Me||nt?"-":"+"})}),_?null:p.jsx("div",{className:`timeline-marker-drag ${Vr?"dragging":""}`,onMouseDown:Br,onTouchStart:ma,children:p.jsx("span",{className:"timeline-marker-drag-icon",children:"⋮"})})]}),Q.length===0&&p.jsxs(p.Fragment,{children:[p.jsx("div",{className:"trim-line-marker",style:{left:`${Je}%`},children:p.jsx("div",{ref:De,className:"trim-handle left"})}),p.jsx("div",{className:"trim-line-marker",style:{left:`${Rt}%`},children:p.jsx("div",{ref:Vt,className:"trim-handle right"})})]}),tr(),Pt(),wn(),Me!==null&&p.jsxs("div",{className:`segment-tooltip two-row-tooltip ${_?"segments-playback-mode":""}`,style:{position:"absolute",..._m(xe)},onClick:h=>{_&&(h.stopPropagation(),h.preventDefault())},children:[p.jsxs("div",{className:"tooltip-row",children:[p.jsx("button",{className:`tooltip-time-btn ${_?"disabled":""}`,"data-tooltip":_?"Disabled during preview":"Seek -50ms (click or hold)",disabled:_,..._?{}:Gt(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),p.jsx("div",{className:`tooltip-time-display ${_?"disabled":""}`,style:{pointerEvents:_?"none":"auto",cursor:_?"not-allowed":"default",opacity:_?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:h=>{_&&(h.stopPropagation(),h.preventDefault())},children:$(cn)}),p.jsx("button",{className:`tooltip-time-btn ${_?"disabled":""}`,"data-tooltip":_?"Disabled during preview":"Seek +50ms (click or hold)",disabled:_,..._?{}:Gt(.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"+50ms"})]}),p.jsxs("div",{className:"tooltip-row tooltip-actions",children:[p.jsx("button",{className:`tooltip-action-btn delete ${_?"disabled":""}`,"data-tooltip":_?"Disabled during preview":"Delete segment",disabled:_,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},onClick:h=>{h.stopPropagation();const B=new CustomEvent("delete-segment",{detail:{segmentId:Me}});document.dispatchEvent(B)},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 ${_?"disabled":""}`,"data-tooltip":_?"Disabled during preview":"Split segment at current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:_,onClick:h=>{h.stopPropagation();const B=new CustomEvent("split-segment",{detail:{segmentId:Me,time:le}});document.dispatchEvent(B)},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 ${_?"disabled":""}`,"data-tooltip":_?"Disabled during preview":"Play segment from beginning",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:_,onClick:h=>{h.stopPropagation();const B=Q.find(D=>D.id===Me);if(B&&H.current){if(gt(!0),Math.abs(H.current.currentTime-B.endTime)<.05){re.debug(`Already at end boundary (${$(H.current.currentTime)}), nudging position back slightly`);const D=Math.max(B.startTime,B.endTime-.1);H.current.currentTime=D,I(D),W(D),re.debug(`Position adjusted to ${$(D)}`)}else I(B.startTime),W(B.startTime);Ue(B),H.current.play().then(()=>{We(!0)}).catch(D=>{console.error("Error playing from beginning:",D)})}},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"} ${_?"disabled":""}`,"data-tooltip":_?"Disabled during preview":Pe?"Pause playback":"Play from current position",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:_,onClick:h=>{h.stopPropagation(),Pe?H.current&&(H.current.pause(),We(!1),gt(!1)):ot()},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 ${_?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":_?"Disabled during preview":"Set start point at current position",disabled:_,onClick:h=>{if(h.stopPropagation(),Q.find(D=>D.id===Me)){const D=Q.map(x=>x.id===Me?{...x,startTime:le<x.endTime-.5?le:x.endTime-.5}:x),T=new CustomEvent("update-segments",{detail:{segments:D,recordHistory:!0,action:"adjust_start_time"}});document.dispatchEvent(T)}},children:p.jsx("img",{src:q0,alt:"Set start point",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn set-out ${_?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":_?"Disabled during preview":"Set end point at current position",disabled:_,onClick:h=>{if(h.stopPropagation(),Q.find(D=>D.id===Me)){const D=Q.map(x=>x.id===Me?{...x,endTime:le>x.startTime+.5?le:x.startTime+.5}:x),T=new CustomEvent("update-segments",{detail:{segments:D,recordHistory:!0,action:"adjust_end_time"}});document.dispatchEvent(T)}},children:p.jsx("img",{src:I0,alt:"Set end point",style:{width:"24px",height:"24px"}})})]})]}),nt&&Me===null&&p.jsxs("div",{className:`empty-space-tooltip two-row-tooltip ${_?"segments-playback-mode":""}`,style:{position:"absolute",..._m(xe)},onClick:h=>{_&&(h.stopPropagation(),h.preventDefault())},children:[p.jsxs("div",{className:"tooltip-row",children:[p.jsx("button",{className:`tooltip-time-btn ${_?"disabled":""}`,"data-tooltip":_?"Disabled during preview":"Seek -50ms (click or hold)",disabled:_,..._?{}:Gt(-.05),style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},children:"-50ms"}),p.jsx("div",{className:`tooltip-time-display ${_?"disabled":""}`,style:{pointerEvents:_?"none":"auto",cursor:_?"not-allowed":"default",opacity:_?.6:1,userSelect:"none",WebkitUserSelect:"none"},onClick:h=>{_&&(h.stopPropagation(),h.preventDefault())},children:$(le)}),p.jsx("button",{className:`tooltip-time-btn ${_?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":_?"Disabled during preview":"Seek +50ms (click or hold)",disabled:_,..._?{}:Gt(.05),children:"+50ms"})]}),p.jsxs("div",{className:"tooltip-row tooltip-actions",children:[p.jsxs("button",{className:`tooltip-action-btn new-segment ${Fe<.5||_?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":_?"Disabled during preview":Fe<.5?"Not enough space for new segment":"Create new segment",disabled:Fe<.5||_,onClick:async h=>{if(h.stopPropagation(),Fe<.5)return;const B=le,D=B+Fe,T={id:Date.now(),name:"segment",startTime:B,endTime:D,thumbnail:""},x=[...Q,T],O=new CustomEvent("update-segments",{detail:{segments:x,recordHistory:!0,action:"create_segment"}});document.dispatchEvent(O),oe(!1),setTimeout(()=>{const c=x[x.length-1];c&&(pe(c.id),re.debug("Created and selected new segment:",c.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 ${_?"disabled":""}`,"data-tooltip":_?"Disabled during preview":"Play from beginning of cutaway",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:_,onClick:h=>{if(h.stopPropagation(),H.current){const B=le;gt(!0);const D=[...Q].sort((A,ve)=>A.startTime-ve.startTime),T=[...D].reverse().find(A=>A.endTime<B),x=T?T.endTime+.025:0,O=D.find(A=>A.startTime>B),c=O?O.startTime:L,y={id:-999,name:"Cutaway",startTime:x,endTime:c,thumbnail:""};I(x),W(x),We(!1),setTimeout(()=>{Ue(y)},0);const S=()=>{if(!H.current)return;const A=H.current.currentTime,ve=[...Q].sort((ze,it)=>ze.startTime-it.startTime),z=ve.find(ze=>ze.startTime>A-.3),ue=z&&A>=z.startTime-.25&&A<=z.startTime+.1&&!Ht;z&&A>=z.startTime-.25&&A<=z.startTime+.1&&re.debug(`Approaching boundary at ${$(z.startTime)}, continuePastBoundary=${Ht}, willStop=${ue}`);const ye=ve.find(ze=>A>=ze.startTime&&A<=ze.endTime);if(ye&&(Ve==null?void 0:Ve.id)!==ye.id){re.debug(`Entered segment ${ye.id} during cutaway playback`),Ue(ye),pe(ye.id),oe(!1),H.current.removeEventListener("timeupdate",S),gt(!1),sessionStorage.removeItem("continuingPastSegment");return}if(ue&&z){re.debug(`CUTAWAY MANUAL BOUNDARY CHECK: Current position ${$(A)} approaching segment at ${$(z.startTime)} (distance: ${Math.abs(A-z.startTime).toFixed(3)}s) - STOPPING`),H.current.pause(),setTimeout(()=>{if(H.current){H.current.currentTime=z.startTime,I(z.startTime),et(z.startTime),W(z.startTime),gt(!1),pe(z.id),oe(!1),Ue(z);const ze=()=>{H.current&&(H.current.currentTime=z.startTime,I(z.startTime),et(z.startTime),W(z.startTime),re.debug(`Position corrected to exact segment boundary: ${$(H.current.currentTime)} (target: ${$(z.startTime)})`))};setTimeout(ze,10),setTimeout(ze,20),setTimeout(ze,50),setTimeout(ze,100),setTimeout(ze,200),H.current.addEventListener("seeked",ze),H.current.addEventListener("canplay",ze),H.current.addEventListener("waiting",ze),setTimeout(()=>{H.current&&(H.current.removeEventListener("seeked",ze),H.current.removeEventListener("canplay",ze),H.current.removeEventListener("waiting",ze))},300)}},10),We(!1),Ue(null),H.current.removeEventListener("timeupdate",S);return}};H.current.addEventListener("timeupdate",S),setTimeout(()=>{H.current&&H.current.play().then(()=>{We(!0),re.debug("CUTAWAY PLAYBACK STARTED:",$(x),"to",$(c),T?`(after segment ${T.id}, offset +25ms from ${$(T.endTime)})`:"(from video start)",O?`(will stop at segment ${O.id})`:"(will play to end)")}).catch(A=>{console.error("Error playing cutaway:",A)})},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"} ${_?"disabled":""}`,"data-tooltip":_?"Disabled during preview":Pe?"Pause playback":"Play from here until next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:_,onClick:h=>{h.stopPropagation(),Pe?H.current&&(H.current.pause(),We(!1),gt(!1)):ot()},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 ${_?"disabled":""}`,style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},"data-tooltip":_?"Disabled during preview":"Adjust end of previous segment",disabled:_,onClick:h=>{h.stopPropagation();const D=[...Q].sort((T,x)=>T.startTime-x.startTime).filter(T=>T.endTime<=le).sort((T,x)=>x.endTime-T.endTime)[0];if(D){const T=Q.map(O=>O.id===D.id?{...O,endTime:le}:O),x=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"adjust_previous_end_time"}});document.dispatchEvent(x),re.debug("Adjusted end of previous segment to:",$(le)),pe(D.id),oe(!1)}else if(Q.length>0){const T=[...Q].sort((c,y)=>c.startTime-y.startTime);let x=!1,O=0;for(let c=0;c<T.length-1;c++){const y=T[c].endTime,S=T[c+1].startTime;if(le>y&&le<S){x=!0,O=y;break}}if(x){const c={id:Date.now(),name:"segment",startTime:O,endTime:le,thumbnail:""},y=[...Q,c],S=new CustomEvent("update-segments",{detail:{segments:y,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(S),re.debug("Created new segment in gap from",$(O),"to",$(le)),pe(c.id),oe(!1)}else if(le<T[0].startTime){const c={id:Date.now(),name:"segment",startTime:0,endTime:le,thumbnail:""},y=[...Q,c],S=new CustomEvent("update-segments",{detail:{segments:y,recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(S),re.debug("Created new segment from start to:",$(le)),pe(c.id),oe(!1)}else{const c=[...Q].sort((y,S)=>S.endTime-y.endTime)[0];if(c&&c.endTime<L){const y=Q.map(A=>A.id===c.id?{...A,endTime:L}:A),S=new CustomEvent("update-segments",{detail:{segments:y,recordHistory:!0,action:"extend_last_segment"}});document.dispatchEvent(S),pe(c.id),oe(!1)}}}else if(le>0){const T={id:Date.now(),name:"segment",startTime:0,endTime:le,thumbnail:""},x=new CustomEvent("update-segments",{detail:{segments:[T],recordHistory:!0,action:"create_segment_from_start"}});document.dispatchEvent(x),re.debug("Created new segment from start to:",$(le)),pe(T.id),oe(!1)}},children:p.jsx("img",{src:X0,alt:"Set end point",style:{width:"24px",height:"24px"}})}),p.jsx("button",{className:`tooltip-action-btn segment-start ${_?"disabled":""}`,"data-tooltip":_?"Disabled during preview":"Adjust start of next segment",style:{userSelect:"none",WebkitUserSelect:"none",WebkitTouchCallout:"none",touchAction:"manipulation",cursor:_?"not-allowed":"pointer",WebkitTapHighlightColor:"transparent"},disabled:_,onClick:h=>{h.stopPropagation();const D=[...Q].sort((T,x)=>T.startTime-x.startTime).filter(T=>T.startTime>=le).sort((T,x)=>T.startTime-x.startTime)[0];if(D){const T=Q.map(O=>O.id===D.id?{...O,startTime:le}:O),x=new CustomEvent("update-segments",{detail:{segments:T,recordHistory:!0,action:"adjust_next_start_time"}});document.dispatchEvent(x),re.debug("Adjusted start of next segment to:",$(le)),pe(D.id),oe(!1)}else if(Q.length>0){const T=[...Q].sort((c,y)=>c.startTime-y.startTime);let x=!1,O=0;for(let c=0;c<T.length-1;c++){const y=T[c].endTime,S=T[c+1].startTime;if(le>y&&le<S){x=!0,O=S;break}}if(x){const c={id:Date.now(),name:"segment",startTime:le,endTime:O,thumbnail:""},y=[...Q,c],S=new CustomEvent("update-segments",{detail:{segments:y,recordHistory:!0,action:"create_segment_in_gap"}});document.dispatchEvent(S),re.debug("Created new segment in gap from",$(le),"to",$(O)),pe(c.id),oe(!1)}else if(le<T[0].startTime){const c={id:Date.now(),name:"segment",startTime:le,endTime:T[0].startTime,thumbnail:""},y=[...Q,c],S=new CustomEvent("update-segments",{detail:{segments:y,recordHistory:!0,action:"create_segment_before_first"}});document.dispatchEvent(S),re.debug("Created new segment from",$(le),"to first segment"),pe(c.id),oe(!1)}else if(le>T[T.length-1].endTime){const c={id:Date.now(),name:"segment",startTime:le,endTime:L,thumbnail:""},y=[...Q,c],S=new CustomEvent("update-segments",{detail:{segments:y,recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(S),re.debug("Created new segment from",$(le),"to end"),pe(c.id),oe(!1)}else{const c=T[0];if(c&&c.startTime>0){const y=Q.map(A=>A.id===c.id?{...A,startTime:0}:A),S=new CustomEvent("update-segments",{detail:{segments:y,recordHistory:!0,action:"extend_first_segment"}});document.dispatchEvent(S),pe(c.id),oe(!1)}}}else if(le<L){const T={id:Date.now(),name:"segment",startTime:le,endTime:L,thumbnail:""},x=new CustomEvent("update-segments",{detail:{segments:[T],recordHistory:!0,action:"create_segment_to_end"}});document.dispatchEvent(x),re.debug("Created new segment from",$(le),"to end"),pe(T.id),oe(!1)}},children:p.jsx("img",{src:G0,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:h=>{if(h.key==="Enter"){const B=h.currentTarget.value;try{const D=B.split(":");let T=0,x=0,O=0,c=0;if(D.length===3){T=parseInt(D[0]),x=parseInt(D[1]);const S=D[2].split(".");O=parseInt(S[0]),S.length>1&&(c=parseInt(S[1].padEnd(3,"0").substring(0,3)))}else if(D.length===2){x=parseInt(D[0]);const S=D[1].split(".");O=parseInt(S[0]),S.length>1&&(c=parseInt(S[1].padEnd(3,"0").substring(0,3)))}const y=T*3600+x*60+O+c/1e3;if(!isNaN(y)&&y>=0&&y<=L){I(y);const S=A=>{const ve=Q.find(z=>{const ue=A>=z.startTime&&A<=z.endTime,ye=Math.abs(A-z.startTime)<.001,ze=Math.abs(A-z.endTime)<.001;return ue||ye||ze});if(ne.current&&Qe.current){const z=ne.current.getBoundingClientRect();let ue;if(d>1)ue=z.left-Qe.current.scrollLeft+A/L*z.width;else{const ye=A/L;ue=z.left+z.width*ye}Ke({x:ue,y:z.top-10}),W(A),ve?(pe(ve.id),oe(!1)):(pe(null),oe(!0))}};setTimeout(()=>S(y),10)}}catch(D){console.error("Invalid time format:",D)}}}}),p.jsx("div",{className:"time-button-group",children:(()=>{const h=()=>{const B=Q.find(D=>{const T=w>=D.startTime&&w<=D.endTime,x=Math.abs(w-D.startTime)<.001,O=Math.abs(w-D.endTime)<.001;return T||x||O});if(ne.current&&Qe.current){const D=ne.current.getBoundingClientRect();let T;if(d>1)T=D.left-Qe.current.scrollLeft+w/L*D.width;else{const x=w/L;T=D.left+D.width*x}if(Ke({x:T,y:D.top-10}),W(w),B)pe(B.id),oe(!1);else{const x=Tt(w);at(x),x>=.5?(pe(null),oe(!0)):(pe(null),oe(!1))}}};return p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"time-button",onClick:()=>{I(w-.01),setTimeout(h,10)},"data-tooltip":"Move back 10ms",children:"-10ms"}),p.jsx("button",{className:"time-button",onClick:()=>{I(w-.001),setTimeout(h,10)},"data-tooltip":"Move back 1ms",children:"-1ms"}),p.jsx("button",{className:"time-button",onClick:()=>{I(w+.001),setTimeout(h,10)},"data-tooltip":"Move forward 1ms",children:"+1ms"}),p.jsx("button",{className:"time-button",onClick:()=>{I(w+.01),setTimeout(h,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 ",d,"x",p.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:p.jsx("polyline",{points:"6 9 12 15 18 9"})})]}),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(h=>p.jsxs("div",{className:`zoom-option ${d===h?"selected":""}`,onClick:()=>{bt(h),Ye(!1)},children:[d===h&&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 ",h,"x"]},h))})]}),p.jsxs("div",{className:"save-buttons-row",children:[K&&p.jsx("button",{onClick:()=>fn(!0),className:"save-button","data-tooltip":"Save changes",children:"Save"}),Oe&&p.jsx("button",{onClick:()=>G(!0),className:"save-copy-button","data-tooltip":"Save as a new copy",children:"Save as Copy"}),zt&&p.jsx("button",{onClick:()=>Ce(!0),className:"save-segments-button","data-tooltip":"Save segments as separate files",children:"Save Segments"})]}),p.jsx(to,{isOpen:rn,onClose:()=>fn(!1),title:"Save Changes",actions:p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>fn(!1),children:"Cancel"}),p.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{K&&K(),Bt()},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(to,{isOpen:F,onClose:()=>G(!1),title:"Save As New Copy",actions:p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>G(!1),children:"Cancel"}),p.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{Oe&&Oe(),Xt()},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(to,{isOpen:Ze,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(to,{isOpen:Te,onClose:()=>Ce(!1),title:"Save Segments",actions:p.jsxs(p.Fragment,{children:[p.jsx("button",{className:"modal-button modal-button-secondary",onClick:()=>Ce(!1),children:"Cancel"}),p.jsx("button",{className:"modal-button modal-button-primary",onClick:()=>{zt&&zt(),Qt()},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(to,{isOpen:ht,onClose:()=>Ge(!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:hn,className:"media-page-link",style:Q0,children:"media page"})," in ",p.jsx("span",{className:"countdown",children:"10"})," seconds."," ",va==="segments"?"The new video(s) will soon be there.":"Changes to the video might take a few minutes to be applied."]})})}),p.jsxs(to,{isOpen:yt,onClose:()=>rt(!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:Ot})]}),p.jsx("div",{className:"modal-choices",children:p.jsxs("button",{onClick:()=>rt(!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"]})})]})]})]}),St&&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:L,onUndo:me,onRedo:Ee,onPlaySegments:fe,onPlay:Re,canUndo:d,canRedo:Q,isPlaying:he=!1,isPlayingSegments:te=!1})=>{const[bt,I]=ee.useState(!1);ee.useEffect(()=>{const K=()=>{I(window.innerWidth<=640)};return K(),window.addEventListener("resize",K),()=>window.removeEventListener("resize",K)},[]);const H=()=>{typeof window<"u"&&console.log("Play button clicked, current lastSeekedPosition:",window.lastSeekedPosition),Re()};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:fe,"data-tooltip":te?"Stop segments playback":"Play segments in one continuous flow",style:{fontSize:"0.875rem"},children:te?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"})]})}),(!te||!bt)&&p.jsx("button",{className:`button play-button ${te?"greyed-out":""}`,onClick:H,"data-tooltip":he?"Pause video":"Play full video",style:{fontSize:"0.875rem"},disabled:te,children:he&&!te?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":te?"Disabled during preview":"Undo last action",disabled:!d||te,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:"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":te?"Disabled during preview":"Redo last undone action",disabled:!Q||te,onClick:Ee,children:[p.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[p.jsx("path",{d:"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:L,"data-tooltip":te?"Disabled during preview":"Reset to full video",disabled:te,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"})]})]})]})})},J0=({segments:w})=>{const L=[...w].sort((fe,Re)=>fe.startTime-Re.startTime),me=fe=>{const Re=new CustomEvent("delete-segment",{detail:{segmentId:fe}});document.dispatchEvent(Re)},Ee=fe=>`segment-default-color segment-color-${fe%8+1}`;return p.jsxs("div",{className:"clip-segments-container",children:[p.jsx("h3",{className:"clip-segments-title",children:"Clip Segments"}),L.map((fe,Re)=>p.jsxs("div",{className:`segment-item ${Ee(Re)}`,children:[p.jsxs("div",{className:"segment-content",children:[p.jsx("div",{className:"segment-thumbnail",style:{backgroundImage:`url(${fe.thumbnail})`}}),p.jsxs("div",{className:"segment-info",children:[p.jsxs("div",{className:"segment-title",children:["Segment ",Re+1]}),p.jsxs("div",{className:"segment-time",children:[hi(fe.startTime)," - ",hi(fe.endTime)]}),p.jsxs("div",{className:"segment-duration",children:["Duration: ",Y0(fe.endTime-fe.startTime)]})]})]}),p.jsx("div",{className:"segment-actions",children:p.jsx("button",{className:"delete-button","aria-label":"Delete Segment","data-tooltip":"Delete this segment",onClick:()=>me(fe.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"})})})})]},fe.id)),L.length===0&&p.jsx("div",{className:"empty-message",children:"No segments created yet. Use the split button to create segments."})]})},eS=({videoRef:w,onPlay:L})=>{const[me,Ee]=ee.useState(!1);ee.useEffect(()=>{const d=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent);Ee(d)},[]),ee.useEffect(()=>{const Re=w.current;if(!Re)return;const d=()=>{Ee(!1)};return Re.addEventListener("play",d),()=>{Re.removeEventListener("play",d)}},[w]);const fe=()=>{L()};return me?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:fe,children:"Click to start editing..."})})}):null},tS=()=>{const w=ee.useRef(null),[L,me]=ee.useState(0),[Ee,fe]=ee.useState(0),[Re,d]=ee.useState(!1),[Q,he]=ee.useState(!1),[te,bt]=ee.useState([]),[I,H]=ee.useState(0),[K,Oe]=ee.useState(0),[zt,qt]=ee.useState([]),[St,Pe]=ee.useState(1),[_e,ot]=ee.useState([]),[_,ne]=ee.useState([]),[De,Vt]=ee.useState(-1),[Me,pe]=ee.useState(!1),[nt,oe]=ee.useState(!1),[Le,Ke]=ee.useState(0);ee.useEffect(()=>{var F;if(_.length>0){const G=((F=_[De])==null?void 0:F.action)||"";G!=="save"&&G!=="save_copy"&&G!=="save_segments"&&pe(!0)}},[_,De]),ee.useEffect(()=>{const F=G=>{if(Me){const Te="Your edits will get lost if you leave the page. Do you want to continue?";return G.preventDefault(),G.returnValue=Te,Te}};return window.addEventListener("beforeunload",F),()=>{window.removeEventListener("beforeunload",F)}},[Me]),ee.useEffect(()=>{const F=w.current;if(!F)return;const G=()=>{fe(F.duration),Oe(F.duration),(async()=>{const Ge=await Cm(F,F.duration/2),yt={id:1,name:"segment",startTime:0,endTime:F.duration,thumbnail:Ge},rt={trimStart:0,trimEnd:F.duration,splitPoints:[],clipSegments:[yt]};ne([rt]),Vt(0),ot([yt]);const tn=6,mn=F.duration/tn,Ot=[];for(let Lt=0;Lt<tn;Lt++){const hn=mn*Lt+mn/2,ia=await Cm(F,hn);Ot.push(ia)}bt(Ot)})()},Te=()=>{me(F.currentTime)},Ce=()=>{d(!0),rn(!0)},Ze=()=>{d(!1)},st=()=>{d(!1),F.currentTime=I};return F.addEventListener("loadedmetadata",G),F.addEventListener("timeupdate",Te),F.addEventListener("play",Ce),F.addEventListener("pause",Ze),F.addEventListener("ended",st),()=>{F.removeEventListener("loadedmetadata",G),F.removeEventListener("timeupdate",Te),F.removeEventListener("play",Ce),F.removeEventListener("pause",Ze),F.removeEventListener("ended",st)}},[]);const le=F=>{const G=w.current;if(!G)return;const Te=!G.paused;G.currentTime=F,me(F),typeof window<"u"&&(window.lastSeekedPosition=F),Te&&G.play().then(()=>{d(!0)}).catch(Ce=>{console.error("Error resuming playback:",Ce),d(!1)})},W=F=>{const G={trimStart:I,trimEnd:K,splitPoints:[...zt],clipSegments:JSON.parse(JSON.stringify(_e)),action:F||"manual_save"},Te=_[De],Ce=()=>{if(!Te||Te.clipSegments.length!==G.clipSegments.length)return!0;for(let ht=0;ht<G.clipSegments.length;ht++){const Ge=Te.clipSegments[ht],yt=G.clipSegments[ht];if(!Ge||!yt||Math.abs(Ge.startTime-yt.startTime)>.001||Math.abs(Ge.endTime-yt.endTime)>.001)return!0}return!1},Ze=!Te||Te.trimStart!==G.trimStart||Te.trimEnd!==G.trimEnd||Te.splitPoints.length!==G.splitPoints.length||Ce(),st=G.action!==void 0;if(Ze||st){const ht=De;ne(Ge=>ht<Ge.length-1?[...Ge.slice(0,ht+1),G]:[...Ge,G]),Vt(Ge=>Ge+1)}};ee.useEffect(()=>{const F=G=>{if(G.detail){const{time:Te,isStart:Ce,recordHistory:Ze,action:st}=G.detail;Ce?H(Te):Oe(Te),Ze&&setTimeout(()=>{W(st||(Ce?"adjust_trim_start":"adjust_trim_end"))},10)}};return document.addEventListener("update-trim",F),()=>{document.removeEventListener("update-trim",F)}},[]),ee.useEffect(()=>{const F=Ce=>{if(Ce.detail&&Ce.detail.segments){const Ze=Ce.detail.recordHistory!==!1,st=Ce.detail.action||"update_segments";ot(Ce.detail.segments),Ze&&setTimeout(()=>{const ht=JSON.parse(JSON.stringify(Ce.detail.segments)),Ge={trimStart:I,trimEnd:K,splitPoints:[...zt],clipSegments:ht,action:st},yt=De;ne(rt=>yt<rt.length-1?[...rt.slice(0,yt+1),Ge]:[...rt,Ge]),Vt(rt=>rt+1)},20)}},G=async Ce=>{const Ze=Ce;if(Ze.detail&&typeof Ze.detail.time=="number"&&typeof Ze.detail.segmentId=="number"){const st=Ze.detail.time,ht=Ze.detail.segmentId;le(st);const Ge=_e.find(Ot=>Ot.id===ht);if(!Ge||st<=Ge.startTime||st>=Ge.endTime)return;const yt=[..._e],rt=yt.findIndex(Ot=>Ot.id===ht);if(rt===-1)return;yt.splice(rt,1);const tn={id:Date.now(),name:`${Ge.name}-A`,startTime:Ge.startTime,endTime:st,thumbnail:""},mn={id:Date.now()+1,name:`${Ge.name}-B`,startTime:st,endTime:Ge.endTime,thumbnail:""};yt.push(tn,mn),yt.sort((Ot,Lt)=>Ot.startTime-Lt.startTime),ot(yt),W("split_segment")}},Te=async Ce=>{const Ze=Ce;if(Ze.detail&&typeof Ze.detail.segmentId=="number"){const st=Ze.detail.segmentId,ht=_e.filter(Ge=>Ge.id!==st);if(ht.length!==_e.length){if(ht.length===0&&w.current){const Ge={id:Date.now(),name:"segment",startTime:0,endTime:w.current.duration,thumbnail:""};H(0),Oe(w.current.duration),qt([]),ot([Ge])}else ot(ht);W("delete_segment")}}};return document.addEventListener("update-segments",F),document.addEventListener("split-segment",G),document.addEventListener("delete-segment",Te),()=>{document.removeEventListener("update-segments",F),document.removeEventListener("split-segment",G),document.removeEventListener("delete-segment",Te)}},[_e,Ee]);const q=F=>{H(F),W("adjust_trim_start")},Ye=F=>{Oe(F),W("adjust_trim_end")},Fe=async()=>{if(w.current&&!zt.includes(L)){const F=[...zt,L].sort((Ce,Ze)=>Ce-Ze);qt(F);const G=[];let Te=0;for(let Ce=0;Ce<=F.length;Ce++){const Ze=Ce<F.length?F[Ce]:Ee;Te<Ze&&(G.push({id:Date.now()+Ce,name:`Segment ${Ce+1}`,startTime:Te,endTime:Ze,thumbnail:""}),Te=Ze)}ot(G),W("create_split_points")}},at=async()=>{if(H(0),Oe(Ee),qt([]),!w.current)return;const F={id:Date.now(),name:"segment",startTime:0,endTime:Ee,thumbnail:""};ot([F]),W("reset_all")},ct=()=>{if(De>0){const F=_[De-1];re.debug(`** UNDO ** to position ${De-1}, action: ${F.action}, segments: ${F.clipSegments.length}`),re.debug("Segment details after undo:",F.clipSegments.map(G=>`ID: ${G.id}, Time: ${$(G.startTime)} - ${$(G.endTime)}`)),H(F.trimStart),Oe(F.trimEnd),qt([...F.splitPoints]),ot(JSON.parse(JSON.stringify(F.clipSegments))),Vt(De-1)}},We=()=>{if(De<_.length-1){const F=_[De+1];re.debug(`** REDO ** to position ${De+1}, action: ${F.action}, segments: ${F.clipSegments.length}`),re.debug("Segment details after redo:",F.clipSegments.map(G=>`ID: ${G.id}, Time: ${$(G.startTime)} - ${$(G.endTime)}`)),H(F.trimStart),Oe(F.trimEnd),qt([...F.splitPoints]),ot(JSON.parse(JSON.stringify(F.clipSegments))),Vt(De+1)}},Ve=F=>{Pe(F)},Ue=()=>{const F=w.current;F&&(F.muted=!F.muted,he(!Q))},cn=()=>{[..._e].sort((G,Te)=>G.startTime-Te.startTime).map(G=>({startTime:$(G.startTime),endTime:$(G.endTime)})),pe(!1),W("save")},et=()=>{[..._e].sort((G,Te)=>G.startTime-Te.startTime).map(G=>({startTime:$(G.startTime),endTime:$(G.endTime)})),pe(!1),W("save_copy")},Ht=()=>{[..._e].sort((G,Te)=>G.startTime-Te.startTime).map(G=>({name:G.name,startTime:$(G.startTime),endTime:$(G.endTime)})),pe(!1),W("save_segments")},gt=F=>{(!Qe||Gt)&&le(F)},Qe=typeof window<"u"&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini|Mobile|mobile|CriOS/i.test(navigator.userAgent),[Gt,rn]=ee.useState(!1);return ee.useEffect(()=>{if(!nt||!w.current)return;const F=w.current,G=[..._e].sort((Ce,Ze)=>Ce.startTime-Ze.startTime),Te=()=>{const Ce=G[Le];if(!Ce)return;const Ze=F.currentTime;if(Ze<Ce.startTime){F.currentTime=Ce.startTime;return}if(Ze>=Ce.endTime-.01)if(Le<G.length-1){const st=G[Le+1];F.currentTime=st.startTime,Ke(Le+1),F.paused&&F.play().catch(ht=>{console.error("Error continuing segment playback:",ht)})}else F.pause(),oe(!1),Ke(0),F.removeEventListener("timeupdate",Te)};return F.addEventListener("timeupdate",Te),F.paused&&G.length>0&&(F.currentTime=G[0].startTime,F.play().catch(console.error)),()=>{F.removeEventListener("timeupdate",Te)}},[nt,Le,_e]),ee.useEffect(()=>{const F=G=>{const{segmentIndex:Te}=G.detail;nt&&Te!==Le&&Ke(Te)};return document.addEventListener("update-segment-index",F),()=>{document.removeEventListener("update-segment-index",F)}},[nt,Le]),{videoRef:w,currentTime:L,duration:Ee,isPlaying:Re,setIsPlaying:d,isMuted:Q,isPlayingSegments:nt,thumbnails:te,trimStart:I,trimEnd:K,splitPoints:zt,zoomLevel:St,clipSegments:_e,hasUnsavedChanges:Me,historyPosition:De,history:_,handleTrimStartChange:q,handleTrimEndChange:Ye,handleZoomChange:Ve,handleMobileSafeSeek:gt,handleSplit:Fe,handleReset:at,handleUndo:ct,handleRedo:We,handlePlaySegments:()=>{const F=w.current;if(!(!F||_e.length===0))if(nt)F.pause(),oe(!1),Ke(0);else{oe(!0),Ke(0);const G=[..._e].sort((Te,Ce)=>Te.startTime-Ce.startTime);F.currentTime=G[0].startTime,F.play().catch(Te=>{console.error("Error starting segments playback:",Te),oe(!1)})}},toggleMute:Ue,handleSave:cn,handleSaveACopy:et,handleSaveSegments:Ht,isMobile:Qe,videoInitialized:Gt,setVideoInitialized:rn}},nS=()=>{const{videoRef:w,currentTime:L,duration:me,isPlaying:Ee,setIsPlaying:fe,isMuted:Re,thumbnails:d,trimStart:Q,trimEnd:he,splitPoints:te,zoomLevel:bt,clipSegments:I,hasUnsavedChanges:H,historyPosition:K,history:Oe,handleTrimStartChange:zt,handleTrimEndChange:qt,handleZoomChange:St,handleMobileSafeSeek:Pe,handleSplit:_e,handleReset:ot,handleUndo:_,handleRedo:ne,toggleMute:De,handleSave:Vt,handleSaveACopy:Me,handleSaveSegments:pe,isMobile:nt,videoInitialized:oe,setVideoInitialized:Le,isPlayingSegments:Ke,handlePlaySegments:le}=tS(),W=()=>{if(!w.current)return;const q=w.current;if(Ee){q.pause(),fe(!1);return}const Ye=Number(q.currentTime.toFixed(6));let Fe=me,at=null,ct=null;const We=[...I].sort((Ue,cn)=>Ue.startTime-cn.startTime);at=We.find(Ue=>{const cn=Number(Ue.startTime.toFixed(6)),et=Number(Ue.endTime.toFixed(6));return Ye>cn&&Ye<et||Ye===cn}),at||(ct=We.find(Ue=>Number(Ue.startTime.toFixed(6))>Ye)),at?Fe=Number(at.endTime.toFixed(6)):ct&&(Fe=Number(ct.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 et=()=>{if(!q)return;q.currentTime=Fe,Pe(Fe);const Ht=Number(q.currentTime.toFixed(6)),gt=Number(Math.abs(Ht-Fe).toFixed(6));re.debug("Position verification:",{target:$(Fe),actual:$(Ht),difference:gt}),gt>0&&(q.currentTime=Fe,Pe(Fe))};et(),setTimeout(et,5),setTimeout(et,10),setTimeout(et,20),setTimeout(et,50),q.removeEventListener("timeupdate",Ve),fe(!1),re.debug("Stopped at position:",{target:$(Fe),actual:$(q.currentTime),type:at?"segment end":ct?"next segment start":"end of video",segment:at?{id:at.id,start:$(at.startTime),end:$(at.endTime)}:null,nextSegment:ct?{id:ct.id,start:$(ct.startTime),end:$(ct.endTime)}:null});return}};q.addEventListener("timeupdate",Ve),q.play().then(()=>{fe(!0),Le(!0),re.debug("Playback started:",{from:$(Ye),to:$(Fe),currentSegment:at?{id:at.id,start:$(at.startTime),end:$(at.endTime)}:"None",nextSegment:ct?{id:ct.id,start:$(ct.startTime),end:$(ct.endTime)}:"None"})}).catch(Ue=>{console.error("Error playing video:",Ue)})};return p.jsxs("div",{className:"bg-background min-h-screen",children:[p.jsx(eS,{videoRef:w,onPlay:W}),p.jsxs("div",{className:"container mx-auto px-4 py-6 max-w-6xl",children:[p.jsx(W0,{videoRef:w,currentTime:L,duration:me,isPlaying:Ee,isMuted:Re,onPlayPause:W,onSeek:Pe,onToggleMute:De}),p.jsx(Z0,{onSplit:_e,onReset:ot,onUndo:_,onRedo:ne,onPlaySegments:le,onPlay:W,isPlaying:Ee,isPlayingSegments:Ke,canUndo:K>0,canRedo:K<Oe.length-1}),p.jsx(K0,{currentTime:L,duration:me,thumbnails:d,trimStart:Q,trimEnd:he,splitPoints:te,zoomLevel:bt,clipSegments:I,onTrimStartChange:zt,onTrimEndChange:qt,onZoomChange:St,onSeek:Pe,videoRef:w,onSave:Vt,onSaveACopy:Me,onSaveSegments:pe,hasUnsavedChanges:H,isIOSUninitialized:nt&&!oe,isPlaying:Ee,setIsPlaying:fe,onPlayPause:W,isPlayingSegments:Ke}),p.jsx(J0,{segments:I})]})]})};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(nS,{}))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",km):km()})();
|
|
//# sourceMappingURL=video-editor.js.map
|