From 6eab5bf7b72177d88ad8cc09638dab8a88d45026 Mon Sep 17 00:00:00 2001 From: Yiannis Christodoulou Date: Tue, 16 Sep 2025 09:55:15 +0300 Subject: [PATCH] fix: Change endpoint save_chapters to chapters [POST] --- .../src/components/TimelineControls.tsx | 1 + .../client/src/hooks/useVideoChapters.tsx | 5 ++- .../client/src/services/videoApi.ts | 3 +- static/chapters_editor/chapters-editor.js | 40 +++++++++---------- static/chapters_editor/chapters-editor.js.map | 2 +- 5 files changed, 26 insertions(+), 25 deletions(-) diff --git a/frontend-tools/chapters-editor/client/src/components/TimelineControls.tsx b/frontend-tools/chapters-editor/client/src/components/TimelineControls.tsx index 2d20c2d4..70c7a1b1 100644 --- a/frontend-tools/chapters-editor/client/src/components/TimelineControls.tsx +++ b/frontend-tools/chapters-editor/client/src/components/TimelineControls.tsx @@ -184,6 +184,7 @@ const TimelineControls = ({ endTime: formatDetailedTime(segment.endTime), name: segment.name, chapterTitle: segment.chapterTitle, + text: segment.chapterTitle, })); logger.debug('segments', segments); diff --git a/frontend-tools/chapters-editor/client/src/hooks/useVideoChapters.tsx b/frontend-tools/chapters-editor/client/src/hooks/useVideoChapters.tsx index dc8b057b..6996d096 100644 --- a/frontend-tools/chapters-editor/client/src/hooks/useVideoChapters.tsx +++ b/frontend-tools/chapters-editor/client/src/hooks/useVideoChapters.tsx @@ -768,8 +768,9 @@ const useVideoChapters = () => { // Convert chapters to backend expected format const backendChapters = chapters.map((chapter) => ({ - start: chapter.from, - title: chapter.name, + startTime: chapter.from, + endTime: chapter.to, + text: chapter.name, })); // Create the API request body diff --git a/frontend-tools/chapters-editor/client/src/services/videoApi.ts b/frontend-tools/chapters-editor/client/src/services/videoApi.ts index 224ac28e..2c9c1fd6 100644 --- a/frontend-tools/chapters-editor/client/src/services/videoApi.ts +++ b/frontend-tools/chapters-editor/client/src/services/videoApi.ts @@ -30,8 +30,7 @@ interface AutoSaveResponse { // Auto-save API function export const autoSaveVideo = async (mediaId: string, data: AutoSaveRequest): Promise => { try { - const response = await fetch(`/api/v1/media/${mediaId}/save_chapters`, { - // TODO: ask backend to add save_chapters endpoint + const response = await fetch(`/api/v1/media/${mediaId}/chapters`, { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(data), diff --git a/static/chapters_editor/chapters-editor.js b/static/chapters_editor/chapters-editor.js index fc27f84c..97f5ac38 100644 --- a/static/chapters_editor/chapters-editor.js +++ b/static/chapters_editor/chapters-editor.js @@ -6,7 +6,7 @@ * * 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 be="18.3.1",Re=Symbol.for("react.element"),we=Symbol.for("react.portal"),ve=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),ge=Symbol.for("react.provider"),re=Symbol.for("react.context"),Tt=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),Qe=Symbol.for("react.offscreen"),I=Symbol.iterator,xt="@@iterator";function ot(s){if(s===null||typeof s!="object")return null;var m=I&&s[I]||s[xt];return typeof m=="function"?m:null}var Le={current:null},rt={transition:null},Ce={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},U={current:null},Z={},zt=null;function Et(s){zt=s}Z.setExtraStackFrame=function(s){zt=s},Z.getCurrentStack=null,Z.getStackAddendum=function(){var s="";zt&&(s+=zt);var m=Z.getCurrentStack;return m&&(s+=m()||""),s};var st=!1,Ot=!1,ke=!1,X=!1,tt=!1,oe={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:rt,ReactCurrentOwner:U};oe.ReactDebugCurrentFrame=Z,oe.ReactCurrentActQueue=Ce;function Se(s){{for(var m=arguments.length,_=new Array(m>1?m-1:0),O=1;O1?m-1:0),O=1;O1){for(var Qt=Array(Vt),Kt=0;Kt1){for(var dt=Array(Kt),nn=0;nn is not supported and will be removed in a future major release. Did you mean to render instead?")),m.Provider},set:function(xe){m.Provider=xe}},_currentValue:{get:function(){return m._currentValue},set:function(xe){m._currentValue=xe}},_currentValue2:{get:function(){return m._currentValue2},set:function(xe){m._currentValue2=xe}},_threadCount:{get:function(){return m._threadCount},set:function(xe){m._threadCount=xe}},Consumer:{get:function(){return _||(_=!0,q("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),m.Consumer}},displayName:{get:function(){return m.displayName},set:function(xe){J||(Se("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",xe),J=!0)}}}),m.Consumer=Ue}return m._currentRenderer=null,m._currentRenderer2=null,m}var Ra=-1,fn=0,En=1,ja=2;function Ua(s){if(s._status===Ra){var m=s._result,_=m();if(_.then(function(Ue){if(s._status===fn||s._status===Ra){var xe=s;xe._status=En,xe._result=Ue}},function(Ue){if(s._status===fn||s._status===Ra){var xe=s;xe._status=ja,xe._result=Ue}}),s._status===Ra){var O=s;O._status=fn,O._result=_}}if(s._status===En){var J=s._result;return J===void 0&&q(`lazy: Expected the result of a dynamic import() call. Instead received: %s + */(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var be="18.3.1",Re=Symbol.for("react.element"),we=Symbol.for("react.portal"),ve=Symbol.for("react.fragment"),f=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),ge=Symbol.for("react.provider"),re=Symbol.for("react.context"),Tt=Symbol.for("react.forward_ref"),ce=Symbol.for("react.suspense"),je=Symbol.for("react.suspense_list"),te=Symbol.for("react.memo"),Be=Symbol.for("react.lazy"),Qe=Symbol.for("react.offscreen"),I=Symbol.iterator,xt="@@iterator";function ot(s){if(s===null||typeof s!="object")return null;var m=I&&s[I]||s[xt];return typeof m=="function"?m:null}var Le={current:null},rt={transition:null},Ce={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},U={current:null},Z={},zt=null;function Et(s){zt=s}Z.setExtraStackFrame=function(s){zt=s},Z.getCurrentStack=null,Z.getStackAddendum=function(){var s="";zt&&(s+=zt);var m=Z.getCurrentStack;return m&&(s+=m()||""),s};var st=!1,Ot=!1,ke=!1,X=!1,tt=!1,oe={ReactCurrentDispatcher:Le,ReactCurrentBatchConfig:rt,ReactCurrentOwner:U};oe.ReactDebugCurrentFrame=Z,oe.ReactCurrentActQueue=Ce;function Se(s){{for(var m=arguments.length,_=new Array(m>1?m-1:0),O=1;O1?m-1:0),O=1;O1){for(var Qt=Array(Vt),Kt=0;Kt1){for(var vt=Array(Kt),nn=0;nn is not supported and will be removed in a future major release. Did you mean to render instead?")),m.Provider},set:function(xe){m.Provider=xe}},_currentValue:{get:function(){return m._currentValue},set:function(xe){m._currentValue=xe}},_currentValue2:{get:function(){return m._currentValue2},set:function(xe){m._currentValue2=xe}},_threadCount:{get:function(){return m._threadCount},set:function(xe){m._threadCount=xe}},Consumer:{get:function(){return _||(_=!0,q("Rendering is not supported and will be removed in a future major release. Did you mean to render instead?")),m.Consumer}},displayName:{get:function(){return m.displayName},set:function(xe){J||(Se("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",xe),J=!0)}}}),m.Consumer=Ue}return m._currentRenderer=null,m._currentRenderer2=null,m}var Ra=-1,fn=0,En=1,ja=2;function Ua(s){if(s._status===Ra){var m=s._result,_=m();if(_.then(function(Ue){if(s._status===fn||s._status===Ra){var xe=s;xe._status=En,xe._result=Ue}},function(Ue){if(s._status===fn||s._status===Ra){var xe=s;xe._status=ja,xe._result=Ue}}),s._status===Ra){var O=s;O._status=fn,O._result=_}}if(s._status===En){var J=s._result;return J===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')) @@ -18,17 +18,17 @@ Your code should look like: 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 lt(s){var m=fe();if(s._context!==void 0){var _=s._context;_.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?"):_.Provider===s&&q("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(s)}function qe(s){var m=fe();return m.useState(s)}function v(s,m,_){var O=fe();return O.useReducer(s,m,_)}function w(s){var m=fe();return m.useRef(s)}function E(s,m){var _=fe();return _.useEffect(s,m)}function b(s,m){var _=fe();return _.useInsertionEffect(s,m)}function S(s,m){var _=fe();return _.useLayoutEffect(s,m)}function L(s,m){var _=fe();return _.useCallback(s,m)}function T(s,m){var _=fe();return _.useMemo(s,m)}function V(s,m,_){var O=fe();return O.useImperativeHandle(s,m,_)}function j(s,m){{var _=fe();return _.useDebugValue(s,m)}}function F(){var s=fe();return s.useTransition()}function ut(s){var m=fe();return m.useDeferredValue(s)}function ee(){var s=fe();return s.useId()}function ft(s,m,_){var O=fe();return O.useSyncExternalStore(s,m,_)}var Rt=0,Ct,hn,Rr,Ha,On,wr,Vn;function Yt(){}Yt.__reactDisabledLog=!0;function ha(){{if(Rt===0){Ct=console.log,hn=console.info,Rr=console.warn,Ha=console.error,On=console.group,wr=console.groupCollapsed,Vn=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Yt,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Rt++}}function na(){{if(Rt--,Rt===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ct({},s,{value:Ct}),info:ct({},s,{value:hn}),warn:ct({},s,{value:Rr}),error:ct({},s,{value:Ha}),group:ct({},s,{value:On}),groupCollapsed:ct({},s,{value:wr}),groupEnd:ct({},s,{value:Vn})})}Rt<0&&q("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ti=oe.ReactCurrentDispatcher,Wa;function ya(s,m,_){{if(Wa===void 0)try{throw Error()}catch(J){var O=J.stack.trim().match(/\n( *(at )?)/);Wa=O&&O[1]||""}return` +See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),s}function lt(s){var m=fe();if(s._context!==void 0){var _=s._context;_.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?"):_.Provider===s&&q("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(s)}function qe(s){var m=fe();return m.useState(s)}function v(s,m,_){var O=fe();return O.useReducer(s,m,_)}function w(s){var m=fe();return m.useRef(s)}function E(s,m){var _=fe();return _.useEffect(s,m)}function b(s,m){var _=fe();return _.useInsertionEffect(s,m)}function S(s,m){var _=fe();return _.useLayoutEffect(s,m)}function L(s,m){var _=fe();return _.useCallback(s,m)}function T(s,m){var _=fe();return _.useMemo(s,m)}function V(s,m,_){var O=fe();return O.useImperativeHandle(s,m,_)}function j(s,m){{var _=fe();return _.useDebugValue(s,m)}}function F(){var s=fe();return s.useTransition()}function ut(s){var m=fe();return m.useDeferredValue(s)}function ee(){var s=fe();return s.useId()}function dt(s,m,_){var O=fe();return O.useSyncExternalStore(s,m,_)}var Rt=0,Ct,hn,Rr,Ha,On,wr,Vn;function Yt(){}Yt.__reactDisabledLog=!0;function ha(){{if(Rt===0){Ct=console.log,hn=console.info,Rr=console.warn,Ha=console.error,On=console.group,wr=console.groupCollapsed,Vn=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Yt,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Rt++}}function na(){{if(Rt--,Rt===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ct({},s,{value:Ct}),info:ct({},s,{value:hn}),warn:ct({},s,{value:Rr}),error:ct({},s,{value:Ha}),group:ct({},s,{value:On}),groupCollapsed:ct({},s,{value:wr}),groupEnd:ct({},s,{value:Vn})})}Rt<0&&q("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ti=oe.ReactCurrentDispatcher,Wa;function ya(s,m,_){{if(Wa===void 0)try{throw Error()}catch(J){var O=J.stack.trim().match(/\n( *(at )?)/);Wa=O&&O[1]||""}return` `+Wa+s}}var aa=!1,Dr;{var Mi=typeof WeakMap=="function"?WeakMap:Map;Dr=new Mi}function yn(s,m){if(!s||aa)return"";{var _=Dr.get(s);if(_!==void 0)return _}var O;aa=!0;var J=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ue;Ue=ti.current,ti.current=null,ha();try{if(m){var xe=function(){throw Error()};if(Object.defineProperty(xe.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(xe,[])}catch(gn){O=gn}Reflect.construct(s,[],xe)}else{try{xe.call()}catch(gn){O=gn}s.call(xe.prototype)}}else{try{throw Error()}catch(gn){O=gn}s()}}catch(gn){if(gn&&O&&typeof gn.stack=="string"){for(var Ge=gn.stack.split(` `),ht=O.stack.split(` `),Vt=Ge.length-1,Qt=ht.length-1;Vt>=1&&Qt>=0&&Ge[Vt]!==ht[Qt];)Qt--;for(;Vt>=1&&Qt>=0;Vt--,Qt--)if(Ge[Vt]!==ht[Qt]){if(Vt!==1||Qt!==1)do if(Vt--,Qt--,Qt<0||Ge[Vt]!==ht[Qt]){var Kt=` -`+Ge[Vt].replace(" at new "," at ");return s.displayName&&Kt.includes("")&&(Kt=Kt.replace("",s.displayName)),typeof s=="function"&&Dr.set(s,Kt),Kt}while(Vt>=1&&Qt>=0);break}}}finally{aa=!1,ti.current=Ue,na(),Error.prepareStackTrace=J}var dt=s?s.displayName||s.name:"",nn=dt?ya(dt):"";return typeof s=="function"&&Dr.set(s,nn),nn}function _t(s,m,_){return yn(s,!1)}function ur(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function ra(s,m,_){if(s==null)return"";if(typeof s=="function")return yn(s,ur(s));if(typeof s=="string")return ya(s);switch(s){case ce:return ya("Suspense");case je:return ya("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case Tt:return _t(s.render);case te:return ra(s.type,m,_);case Be:{var O=s,J=O._payload,Ue=O._init;try{return ra(Ue(J),m,_)}catch{}}}return""}var ni={},cl=oe.ReactDebugCurrentFrame;function kt(s){if(s){var m=s._owner,_=ra(s.type,s._source,m?m.type:null);cl.setExtraStackFrame(_)}else cl.setExtraStackFrame(null)}function rf(s,m,_,O,J){{var Ue=Function.call.bind(Oe);for(var xe in s)if(Ue(s,xe)){var Ge=void 0;try{if(typeof s[xe]!="function"){var ht=Error((O||"React class")+": "+_+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ht.name="Invariant Violation",ht}Ge=s[xe](m,xe,O,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Vt){Ge=Vt}Ge&&!(Ge instanceof Error)&&(kt(J),q("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",O||"React class",_,xe,typeof Ge),kt(null)),Ge instanceof Error&&!(Ge.message in ni)&&(ni[Ge.message]=!0,kt(J),q("Failed %s type: %s",_,Ge.message),kt(null))}}}function _r(s){if(s){var m=s._owner,_=ra(s.type,s._source,m?m.type:null);Et(_)}else Et(null)}var Ke;Ke=!1;function fl(){if(U.current){var s=Te(U.current.type);if(s)return` +`+Ge[Vt].replace(" at new "," at ");return s.displayName&&Kt.includes("")&&(Kt=Kt.replace("",s.displayName)),typeof s=="function"&&Dr.set(s,Kt),Kt}while(Vt>=1&&Qt>=0);break}}}finally{aa=!1,ti.current=Ue,na(),Error.prepareStackTrace=J}var vt=s?s.displayName||s.name:"",nn=vt?ya(vt):"";return typeof s=="function"&&Dr.set(s,nn),nn}function _t(s,m,_){return yn(s,!1)}function ur(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function ra(s,m,_){if(s==null)return"";if(typeof s=="function")return yn(s,ur(s));if(typeof s=="string")return ya(s);switch(s){case ce:return ya("Suspense");case je:return ya("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case Tt:return _t(s.render);case te:return ra(s.type,m,_);case Be:{var O=s,J=O._payload,Ue=O._init;try{return ra(Ue(J),m,_)}catch{}}}return""}var ni={},cl=oe.ReactDebugCurrentFrame;function kt(s){if(s){var m=s._owner,_=ra(s.type,s._source,m?m.type:null);cl.setExtraStackFrame(_)}else cl.setExtraStackFrame(null)}function rf(s,m,_,O,J){{var Ue=Function.call.bind(Oe);for(var xe in s)if(Ue(s,xe)){var Ge=void 0;try{if(typeof s[xe]!="function"){var ht=Error((O||"React class")+": "+_+" type `"+xe+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[xe]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ht.name="Invariant Violation",ht}Ge=s[xe](m,xe,O,_,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Vt){Ge=Vt}Ge&&!(Ge instanceof Error)&&(kt(J),q("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",O||"React class",_,xe,typeof Ge),kt(null)),Ge instanceof Error&&!(Ge.message in ni)&&(ni[Ge.message]=!0,kt(J),q("Failed %s type: %s",_,Ge.message),kt(null))}}}function _r(s){if(s){var m=s._owner,_=ra(s.type,s._source,m?m.type:null);Et(_)}else Et(null)}var Ke;Ke=!1;function fl(){if(U.current){var s=Te(U.current.type);if(s)return` Check the render method of \``+s+"`."}return""}function ia(s){if(s!==void 0){var m=s.fileName.replace(/^.*[\\\/]/,""),_=s.lineNumber;return` Check your code at `+m+":"+_+"."}return""}function Li(s){return s!=null?ia(s.__source):""}var ai={};function of(s){var m=fl();if(!m){var _=typeof s=="string"?s:s.displayName||s.name;_&&(m=` -Check the top-level render call using <`+_+">.")}return m}function An(s,m){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var _=of(m);if(!ai[_]){ai[_]=!0;var O="";s&&s._owner&&s._owner!==U.current&&(O=" It was passed a child from "+Te(s._owner.type)+"."),_r(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.',_,O),_r(null)}}}function tn(s,m){if(typeof s=="object"){if(an(s))for(var _=0;_",J=" Did you accidentally export a JSX literal instead of a component?"):xe=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",xe,J)}var Ge=Ae.apply(this,arguments);if(Ge==null)return Ge;if(O)for(var ht=2;ht10&&Se("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),O._updatedFibers.clear()}}}var vl=!1,so=null;function uf(s){if(so===null)try{var m=("require"+Math.random()).slice(0,7),_=M&&M[m];so=_.call(M,"timers").setImmediate}catch{so=function(J){vl===!1&&(vl=!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 Ue=new MessageChannel;Ue.port1.onmessage=J,Ue.port2.postMessage(void 0)}}return so(s)}var ri=0,Oi=!1;function pl(s){{var m=ri;ri++,Ce.current===null&&(Ce.current=[]);var _=Ce.isBatchingLegacy,O;try{if(Ce.isBatchingLegacy=!0,O=s(),!_&&Ce.didScheduleLegacyUpdate){var J=Ce.current;J!==null&&(Ce.didScheduleLegacyUpdate=!1,vo(J))}}catch(dt){throw kr(m),dt}finally{Ce.isBatchingLegacy=_}if(O!==null&&typeof O=="object"&&typeof O.then=="function"){var Ue=O,xe=!1,Ge={then:function(dt,nn){xe=!0,Ue.then(function(gn){kr(m),ri===0?co(gn,dt,nn):dt(gn)},function(gn){kr(m),nn(gn)})}};return!Oi&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){xe||(Oi=!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 () => ...);"))}),Ge}else{var ht=O;if(kr(m),ri===0){var Vt=Ce.current;Vt!==null&&(vo(Vt),Ce.current=null);var Qt={then:function(dt,nn){Ce.current===null?(Ce.current=[],co(ht,dt,nn)):dt(ht)}};return Qt}else{var Kt={then:function(dt,nn){dt(ht)}};return Kt}}}}function kr(s){s!==ri-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. "),ri=s}function co(s,m,_){{var O=Ce.current;if(O!==null)try{vo(O),uf(function(){O.length===0?(Ce.current=null,m(s)):co(s,m,_)})}catch(J){_(J)}else m(s)}}var fo=!1;function vo(s){if(!fo){fo=!0;var m=0;try{for(;m.")}return m}function An(s,m){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var _=of(m);if(!ai[_]){ai[_]=!0;var O="";s&&s._owner&&s._owner!==U.current&&(O=" It was passed a child from "+Te(s._owner.type)+"."),_r(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.',_,O),_r(null)}}}function tn(s,m){if(typeof s=="object"){if(an(s))for(var _=0;_",J=" Did you accidentally export a JSX literal instead of a component?"):xe=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",xe,J)}var Ge=Ae.apply(this,arguments);if(Ge==null)return Ge;if(O)for(var ht=2;ht10&&Se("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),O._updatedFibers.clear()}}}var vl=!1,so=null;function uf(s){if(so===null)try{var m=("require"+Math.random()).slice(0,7),_=M&&M[m];so=_.call(M,"timers").setImmediate}catch{so=function(J){vl===!1&&(vl=!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 Ue=new MessageChannel;Ue.port1.onmessage=J,Ue.port2.postMessage(void 0)}}return so(s)}var ri=0,Oi=!1;function pl(s){{var m=ri;ri++,Ce.current===null&&(Ce.current=[]);var _=Ce.isBatchingLegacy,O;try{if(Ce.isBatchingLegacy=!0,O=s(),!_&&Ce.didScheduleLegacyUpdate){var J=Ce.current;J!==null&&(Ce.didScheduleLegacyUpdate=!1,vo(J))}}catch(vt){throw kr(m),vt}finally{Ce.isBatchingLegacy=_}if(O!==null&&typeof O=="object"&&typeof O.then=="function"){var Ue=O,xe=!1,Ge={then:function(vt,nn){xe=!0,Ue.then(function(gn){kr(m),ri===0?co(gn,vt,nn):vt(gn)},function(gn){kr(m),nn(gn)})}};return!Oi&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){xe||(Oi=!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 () => ...);"))}),Ge}else{var ht=O;if(kr(m),ri===0){var Vt=Ce.current;Vt!==null&&(vo(Vt),Ce.current=null);var Qt={then:function(vt,nn){Ce.current===null?(Ce.current=[],co(ht,vt,nn)):vt(ht)}};return Qt}else{var Kt={then:function(vt,nn){vt(ht)}};return Kt}}}}function kr(s){s!==ri-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. "),ri=s}function co(s,m,_){{var O=Ce.current;if(O!==null)try{vo(O),uf(function(){O.length===0?(Ce.current=null,m(s)):co(s,m,_)})}catch(J){_(J)}else m(s)}}var fo=!1;function vo(s){if(!fo){fo=!0;var m=0;try{for(;m.")}return m}function An(s,m){if(!( * * 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 M=Zc(),R=Symbol.for("react.element"),be=Symbol.for("react.portal"),Re=Symbol.for("react.fragment"),we=Symbol.for("react.strict_mode"),ve=Symbol.for("react.profiler"),f=Symbol.for("react.provider"),W=Symbol.for("react.context"),ge=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),Tt=Symbol.for("react.suspense_list"),ce=Symbol.for("react.memo"),je=Symbol.for("react.lazy"),te=Symbol.for("react.offscreen"),Be=Symbol.iterator,Qe="@@iterator";function I(h){if(h===null||typeof h!="object")return null;var B=Be&&h[Be]||h[Qe];return typeof B=="function"?B:null}var xt=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function ot(h){{for(var B=arguments.length,ne=new Array(B>1?B-1:0),fe=1;fe1?B-1:0),fe=1;fe=1&&S>=0&&w[b]!==E[S];)S--;for(;b>=1&&S>=0;b--,S--)if(w[b]!==E[S]){if(b!==1||S!==1)do if(b--,S--,S<0||w[b]!==E[S]){var L=` -`+w[b].replace(" at new "," at ");return h.displayName&&L.includes("")&&(L=L.replace("",h.displayName)),typeof h=="function"&&Gt.set(h,L),L}while(b>=1&&S>=0);break}}}finally{Ze=!1,ze.current=qe,Ye(),Error.prepareStackTrace=lt}var T=h?h.displayName||h.name:"",V=T?vn(T):"";return typeof h=="function"&&Gt.set(h,V),V}function an(h,B,ne){return it(h,!1)}function on(h){var B=h.prototype;return!!(B&&B.isReactComponent)}function ln(h,B,ne){if(h==null)return"";if(typeof h=="function")return it(h,on(h));if(typeof h=="string")return vn(h);switch(h){case re:return vn("Suspense");case Tt:return vn("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case ge:return an(h.render);case ce:return ln(h.type,B,ne);case je:{var fe=h,lt=fe._payload,qe=fe._init;try{return ln(qe(lt),B,ne)}catch{}}}return""}var cn=Object.prototype.hasOwnProperty,z={},ue=xt.ReactDebugCurrentFrame;function De(h){if(h){var B=h._owner,ne=ln(h.type,h._source,B?B.type:null);ue.setExtraStackFrame(ne)}else ue.setExtraStackFrame(null)}function Te(h,B,ne,fe,lt){{var qe=Function.call.bind(cn);for(var v in h)if(qe(h,v)){var w=void 0;try{if(typeof h[v]!="function"){var E=Error((fe||"React class")+": "+ne+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}w=h[v](B,v,fe,ne,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){w=b}w&&!(w instanceof Error)&&(De(lt),ot("%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).",fe||"React class",ne,v,typeof w),De(null)),w instanceof Error&&!(w.message in z)&&(z[w.message]=!0,De(lt),ot("Failed %s type: %s",ne,w.message),De(null))}}}var Oe=Array.isArray;function et(h){return Oe(h)}function Je(h){{var B=typeof Symbol=="function"&&Symbol.toStringTag,ne=B&&h[Symbol.toStringTag]||h.constructor.name||"Object";return ne}}function Ie(h){try{return We(h),!1}catch{return!0}}function We(h){return""+h}function mt(h){if(Ie(h))return ot("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(h)),We(h)}var pn=xt.ReactCurrentOwner,Ln={key:!0,ref:!0,__self:!0,__source:!0},mn,K;function ye(h){if(cn.call(h,"ref")){var B=Object.getOwnPropertyDescriptor(h,"ref").get;if(B&&B.isReactWarning)return!1}return h.ref!==void 0}function Ae(h){if(cn.call(h,"key")){var B=Object.getOwnPropertyDescriptor(h,"key").get;if(B&&B.isReactWarning)return!1}return h.key!==void 0}function nt(h,B){typeof h.ref=="string"&&pn.current}function Ut(h,B){{var ne=function(){mn||(mn=!0,ot("%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)",B))};ne.isReactWarning=!0,Object.defineProperty(h,"key",{get:ne,configurable:!0})}}function Wt(h,B){{var ne=function(){K||(K=!0,ot("%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)",B))};ne.isReactWarning=!0,Object.defineProperty(h,"ref",{get:ne,configurable:!0})}}var Ht=function(h,B,ne,fe,lt,qe,v){var w={$$typeof:R,type:h,key:B,ref:ne,props:v,_owner:qe};return w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(w,"_self",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:lt}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function zn(h,B,ne,fe,lt){{var qe,v={},w=null,E=null;ne!==void 0&&(mt(ne),w=""+ne),Ae(B)&&(mt(B.key),w=""+B.key),ye(B)&&(E=B.ref,nt(B,lt));for(qe in B)cn.call(B,qe)&&!Ln.hasOwnProperty(qe)&&(v[qe]=B[qe]);if(h&&h.defaultProps){var b=h.defaultProps;for(qe in b)v[qe]===void 0&&(v[qe]=b[qe])}if(w||E){var S=typeof h=="function"?h.displayName||h.name||"Unknown":h;w&&Ut(v,S),E&&Wt(v,S)}return Ht(h,w,E,lt,fe,pn.current,v)}}var Xt=xt.ReactCurrentOwner,It=xt.ReactDebugCurrentFrame;function Ft(h){if(h){var B=h._owner,ne=ln(h.type,h._source,B?B.type:null);It.setExtraStackFrame(ne)}else It.setExtraStackFrame(null)}var Fn;Fn=!1;function xa(h){return typeof h=="object"&&h!==null&&h.$$typeof===R}function ma(){{if(Xt.current){var h=X(Xt.current.type);if(h)return` +`+w[b].replace(" at new "," at ");return h.displayName&&L.includes("")&&(L=L.replace("",h.displayName)),typeof h=="function"&&Gt.set(h,L),L}while(b>=1&&S>=0);break}}}finally{Ze=!1,ze.current=qe,Ye(),Error.prepareStackTrace=lt}var T=h?h.displayName||h.name:"",V=T?vn(T):"";return typeof h=="function"&&Gt.set(h,V),V}function an(h,B,ne){return it(h,!1)}function on(h){var B=h.prototype;return!!(B&&B.isReactComponent)}function ln(h,B,ne){if(h==null)return"";if(typeof h=="function")return it(h,on(h));if(typeof h=="string")return vn(h);switch(h){case re:return vn("Suspense");case Tt:return vn("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case ge:return an(h.render);case ce:return ln(h.type,B,ne);case je:{var fe=h,lt=fe._payload,qe=fe._init;try{return ln(qe(lt),B,ne)}catch{}}}return""}var cn=Object.prototype.hasOwnProperty,z={},ue=xt.ReactDebugCurrentFrame;function De(h){if(h){var B=h._owner,ne=ln(h.type,h._source,B?B.type:null);ue.setExtraStackFrame(ne)}else ue.setExtraStackFrame(null)}function Te(h,B,ne,fe,lt){{var qe=Function.call.bind(cn);for(var v in h)if(qe(h,v)){var w=void 0;try{if(typeof h[v]!="function"){var E=Error((fe||"React class")+": "+ne+" type `"+v+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[v]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw E.name="Invariant Violation",E}w=h[v](B,v,fe,ne,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(b){w=b}w&&!(w instanceof Error)&&(De(lt),ot("%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).",fe||"React class",ne,v,typeof w),De(null)),w instanceof Error&&!(w.message in z)&&(z[w.message]=!0,De(lt),ot("Failed %s type: %s",ne,w.message),De(null))}}}var Oe=Array.isArray;function et(h){return Oe(h)}function Je(h){{var B=typeof Symbol=="function"&&Symbol.toStringTag,ne=B&&h[Symbol.toStringTag]||h.constructor.name||"Object";return ne}}function Ie(h){try{return We(h),!1}catch{return!0}}function We(h){return""+h}function ft(h){if(Ie(h))return ot("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Je(h)),We(h)}var pn=xt.ReactCurrentOwner,Ln={key:!0,ref:!0,__self:!0,__source:!0},mn,K;function ye(h){if(cn.call(h,"ref")){var B=Object.getOwnPropertyDescriptor(h,"ref").get;if(B&&B.isReactWarning)return!1}return h.ref!==void 0}function Ae(h){if(cn.call(h,"key")){var B=Object.getOwnPropertyDescriptor(h,"key").get;if(B&&B.isReactWarning)return!1}return h.key!==void 0}function nt(h,B){typeof h.ref=="string"&&pn.current}function Ut(h,B){{var ne=function(){mn||(mn=!0,ot("%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)",B))};ne.isReactWarning=!0,Object.defineProperty(h,"key",{get:ne,configurable:!0})}}function Wt(h,B){{var ne=function(){K||(K=!0,ot("%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)",B))};ne.isReactWarning=!0,Object.defineProperty(h,"ref",{get:ne,configurable:!0})}}var Ht=function(h,B,ne,fe,lt,qe,v){var w={$$typeof:R,type:h,key:B,ref:ne,props:v,_owner:qe};return w._store={},Object.defineProperty(w._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(w,"_self",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.defineProperty(w,"_source",{configurable:!1,enumerable:!1,writable:!1,value:lt}),Object.freeze&&(Object.freeze(w.props),Object.freeze(w)),w};function zn(h,B,ne,fe,lt){{var qe,v={},w=null,E=null;ne!==void 0&&(ft(ne),w=""+ne),Ae(B)&&(ft(B.key),w=""+B.key),ye(B)&&(E=B.ref,nt(B,lt));for(qe in B)cn.call(B,qe)&&!Ln.hasOwnProperty(qe)&&(v[qe]=B[qe]);if(h&&h.defaultProps){var b=h.defaultProps;for(qe in b)v[qe]===void 0&&(v[qe]=b[qe])}if(w||E){var S=typeof h=="function"?h.displayName||h.name||"Unknown":h;w&&Ut(v,S),E&&Wt(v,S)}return Ht(h,w,E,lt,fe,pn.current,v)}}var Xt=xt.ReactCurrentOwner,It=xt.ReactDebugCurrentFrame;function Ft(h){if(h){var B=h._owner,ne=ln(h.type,h._source,B?B.type:null);It.setExtraStackFrame(ne)}else It.setExtraStackFrame(null)}var Fn;Fn=!1;function xa(h){return typeof h=="object"&&h!==null&&h.$$typeof===R}function ma(){{if(Xt.current){var h=X(Xt.current.type);if(h)return` Check the render method of \``+h+"`."}return""}}function lr(h){return""}var Na={};function Jr(h){{var B=ma();if(!B){var ne=typeof h=="string"?h:h.displayName||h.name;ne&&(B=` @@ -57,7 +57,7 @@ React keys must be passed directly to JSX without using spread: * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var R=!1,be=5;function Re(K,ye){var Ae=K.length;K.push(ye),f(K,ye,Ae)}function we(K){return K.length===0?null:K[0]}function ve(K){if(K.length===0)return null;var ye=K[0],Ae=K.pop();return Ae!==ye&&(K[0]=Ae,W(K,Ae,0)),ye}function f(K,ye,Ae){for(var nt=Ae;nt>0;){var Ut=nt-1>>>1,Wt=K[Ut];if(ge(Wt,ye)>0)K[Ut]=ye,K[nt]=Wt,nt=Ut;else return}}function W(K,ye,Ae){for(var nt=Ae,Ut=K.length,Wt=Ut>>>1;ntAe&&(!K||ue()));){var nt=ke.callback;if(typeof nt=="function"){ke.callback=null,X=ke.priorityLevel;var Ut=ke.expirationTime<=Ae,Wt=nt(Ut);Ae=M.unstable_now(),typeof Wt=="function"?ke.callback=Wt:ke===we(Et)&&ve(Et),pt(Ae)}else ve(Et);ke=we(Et)}if(ke!==null)return!0;var Ht=we(st);return Ht!==null&&mt(At,Ht.startTime-Ae),!1}function jt(K,ye){switch(K){case re:case Tt:case ce:case je:case te:break;default:K=ce}var Ae=X;X=K;try{return ye()}finally{X=Ae}}function Ye(K){var ye;switch(X){case re:case Tt:case ce:ye=ce;break;default:ye=X;break}var Ae=X;X=ye;try{return K()}finally{X=Ae}}function ze(K){var ye=X;return function(){var Ae=X;X=ye;try{return K.apply(this,arguments)}finally{X=Ae}}}function Ve(K,ye,Ae){var nt=M.unstable_now(),Ut;if(typeof Ae=="object"&&Ae!==null){var Wt=Ae.delay;typeof Wt=="number"&&Wt>0?Ut=nt+Wt:Ut=nt}else Ut=nt;var Ht;switch(K){case re:Ht=rt;break;case Tt:Ht=Ce;break;case te:Ht=zt;break;case je:Ht=Z;break;case ce:default:Ht=U;break}var zn=Ut+Ht,Xt={id:Ot++,callback:ye,priorityLevel:K,startTime:Ut,expirationTime:zn,sortIndex:-1};return Ut>nt?(Xt.sortIndex=Ut,Re(st,Xt),we(Et)===null&&Xt===we(st)&&(Se?pn():Se=!0,mt(At,Ut-nt))):(Xt.sortIndex=zn,Re(Et,Xt),!oe&&!tt&&(oe=!0,We(ct))),Xt}function vn(){}function Ze(){!oe&&!tt&&(oe=!0,We(ct))}function Gt(){return we(Et)}function St(K){K.callback=null}function it(){return X}var an=!1,on=null,ln=-1,cn=be,z=-1;function ue(){var K=M.unstable_now()-z;return!(K125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}K>0?cn=Math.floor(1e3/K):cn=be}var Oe=function(){if(on!==null){var K=M.unstable_now();z=K;var ye=!0,Ae=!0;try{Ae=on(ye,K)}finally{Ae?et():(an=!1,on=null)}}else an=!1},et;if(typeof he=="function")et=function(){he(Oe)};else if(typeof MessageChannel<"u"){var Je=new MessageChannel,Ie=Je.port2;Je.port1.onmessage=Oe,et=function(){Ie.postMessage(null)}}else et=function(){q(Oe,0)};function We(K){on=K,an||(an=!0,et())}function mt(K,ye){ln=q(function(){K(M.unstable_now())},ye)}function pn(){G(ln),ln=-1}var Ln=De,mn=null;M.unstable_IdlePriority=te,M.unstable_ImmediatePriority=re,M.unstable_LowPriority=je,M.unstable_NormalPriority=ce,M.unstable_Profiling=mn,M.unstable_UserBlockingPriority=Tt,M.unstable_cancelCallback=St,M.unstable_continueExecution=Ze,M.unstable_forceFrameRate=Te,M.unstable_getCurrentPriorityLevel=it,M.unstable_getFirstCallbackNode=Gt,M.unstable_next=Ye,M.unstable_pauseExecution=vn,M.unstable_requestPaint=Ln,M.unstable_runWithPriority=jt,M.unstable_scheduleCallback=Ve,M.unstable_shouldYield=ue,M.unstable_wrapCallback=ze,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(tf)),tf}var gm;function F0(){return gm||(gm=1,ef.exports=z0()),ef.exports}var pa={},bm;function V0(){if(bm)return pa;bm=1;/** + */(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var R=!1,be=5;function Re(K,ye){var Ae=K.length;K.push(ye),f(K,ye,Ae)}function we(K){return K.length===0?null:K[0]}function ve(K){if(K.length===0)return null;var ye=K[0],Ae=K.pop();return Ae!==ye&&(K[0]=Ae,W(K,Ae,0)),ye}function f(K,ye,Ae){for(var nt=Ae;nt>0;){var Ut=nt-1>>>1,Wt=K[Ut];if(ge(Wt,ye)>0)K[Ut]=ye,K[nt]=Wt,nt=Ut;else return}}function W(K,ye,Ae){for(var nt=Ae,Ut=K.length,Wt=Ut>>>1;ntAe&&(!K||ue()));){var nt=ke.callback;if(typeof nt=="function"){ke.callback=null,X=ke.priorityLevel;var Ut=ke.expirationTime<=Ae,Wt=nt(Ut);Ae=M.unstable_now(),typeof Wt=="function"?ke.callback=Wt:ke===we(Et)&&ve(Et),mt(Ae)}else ve(Et);ke=we(Et)}if(ke!==null)return!0;var Ht=we(st);return Ht!==null&&ft(At,Ht.startTime-Ae),!1}function jt(K,ye){switch(K){case re:case Tt:case ce:case je:case te:break;default:K=ce}var Ae=X;X=K;try{return ye()}finally{X=Ae}}function Ye(K){var ye;switch(X){case re:case Tt:case ce:ye=ce;break;default:ye=X;break}var Ae=X;X=ye;try{return K()}finally{X=Ae}}function ze(K){var ye=X;return function(){var Ae=X;X=ye;try{return K.apply(this,arguments)}finally{X=Ae}}}function Ve(K,ye,Ae){var nt=M.unstable_now(),Ut;if(typeof Ae=="object"&&Ae!==null){var Wt=Ae.delay;typeof Wt=="number"&&Wt>0?Ut=nt+Wt:Ut=nt}else Ut=nt;var Ht;switch(K){case re:Ht=rt;break;case Tt:Ht=Ce;break;case te:Ht=zt;break;case je:Ht=Z;break;case ce:default:Ht=U;break}var zn=Ut+Ht,Xt={id:Ot++,callback:ye,priorityLevel:K,startTime:Ut,expirationTime:zn,sortIndex:-1};return Ut>nt?(Xt.sortIndex=Ut,Re(st,Xt),we(Et)===null&&Xt===we(st)&&(Se?pn():Se=!0,ft(At,Ut-nt))):(Xt.sortIndex=zn,Re(Et,Xt),!oe&&!tt&&(oe=!0,We(ct))),Xt}function vn(){}function Ze(){!oe&&!tt&&(oe=!0,We(ct))}function Gt(){return we(Et)}function St(K){K.callback=null}function it(){return X}var an=!1,on=null,ln=-1,cn=be,z=-1;function ue(){var K=M.unstable_now()-z;return!(K125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}K>0?cn=Math.floor(1e3/K):cn=be}var Oe=function(){if(on!==null){var K=M.unstable_now();z=K;var ye=!0,Ae=!0;try{Ae=on(ye,K)}finally{Ae?et():(an=!1,on=null)}}else an=!1},et;if(typeof he=="function")et=function(){he(Oe)};else if(typeof MessageChannel<"u"){var Je=new MessageChannel,Ie=Je.port2;Je.port1.onmessage=Oe,et=function(){Ie.postMessage(null)}}else et=function(){q(Oe,0)};function We(K){on=K,an||(an=!0,et())}function ft(K,ye){ln=q(function(){K(M.unstable_now())},ye)}function pn(){G(ln),ln=-1}var Ln=De,mn=null;M.unstable_IdlePriority=te,M.unstable_ImmediatePriority=re,M.unstable_LowPriority=je,M.unstable_NormalPriority=ce,M.unstable_Profiling=mn,M.unstable_UserBlockingPriority=Tt,M.unstable_cancelCallback=St,M.unstable_continueExecution=Ze,M.unstable_forceFrameRate=Te,M.unstable_getCurrentPriorityLevel=it,M.unstable_getFirstCallbackNode=Gt,M.unstable_next=Ye,M.unstable_pauseExecution=vn,M.unstable_requestPaint=Ln,M.unstable_runWithPriority=jt,M.unstable_scheduleCallback=Ve,M.unstable_shouldYield=ue,M.unstable_wrapCallback=ze,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)})()}(tf)),tf}var gm;function F0(){return gm||(gm=1,ef.exports=z0()),ef.exports}var pa={},bm;function V0(){if(bm)return pa;bm=1;/** * @license React * react-dom.development.js * @@ -65,15 +65,15 @@ React keys must be passed directly to JSX without using spread: * * 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 M=Zc(),R=F0(),be=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Re=!1;function we(e){Re=e}function ve(e){if(!Re){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?t-1:0),a=1;a2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Ht(e,t,n,a){if(n!==null&&n.type===et)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 zn(e,t,n,a){if(t===null||typeof t>"u"||Ht(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case We:return!t;case mt:return t===!1;case pn:return isNaN(t);case Ln:return isNaN(t)||t<1}return!1}function Xt(e){return Ft.hasOwnProperty(e)?Ft[e]:null}function It(e,t,n,a,r,i,o){this.acceptsBooleans=t===Ie||t===We||t===mt,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ft={},Fn=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Fn.forEach(function(e){Ft[e]=new It(e,et,!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];Ft[t]=new It(t,Je,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ft[e]=new It(e,Ie,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ft[e]=new It(e,Ie,!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){Ft[e]=new It(e,We,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Ft[e]=new It(e,We,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Ft[e]=new It(e,mt,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Ft[e]=new It(e,Ln,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Ft[e]=new It(e,pn,!1,e.toLowerCase(),null,!1,!1)});var xa=/[\-\:]([a-z])/g,ma=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(xa,ma);Ft[t]=new It(t,Je,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(xa,ma);Ft[t]=new It(t,Je,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xa,ma);Ft[t]=new It(t,Je,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Ft[e]=new It(e,Je,!1,e.toLowerCase(),null,!1,!1)});var lr="xlinkHref";Ft[lr]=new It("xlinkHref",Je,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Ft[e]=new It(e,Je,!1,e.toLowerCase(),null,!0,!0)});var Na=/^[\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,Jr=!1;function Er(e){!Jr&&Na.test(e)&&(Jr=!0,f("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Zr(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{cn(n,t),a.sanitizeURL&&Er(""+n);var i=a.attributeName,o=null;if(a.type===mt){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:zn(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(zn(t,n,a,!1))return e.getAttribute(i);if(a.type===We)return n;o=e.getAttribute(i)}return zn(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function ei(e,t,n,a){{if(!Ut(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return cn(n,t),r===""+n?n:r}}function Ra(e,t,n,a){var r=Xt(t);if(!Wt(t,r,a)){if(zn(t,n,r,a)&&(n=null),a||r===null){if(Ut(t)){var i=t;n===null?e.removeAttribute(i):(cn(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===We?!1:""}else e[l]=n;return}var c=r.attributeName,d=r.attributeNamespace;if(n===null)e.removeAttribute(c);else{var g=r.type,y;g===We||g===mt&&n===!0?y="":(cn(n,c),y=""+n,r.sanitizeURL&&Er(y.toString())),d?e.setAttributeNS(d,c,y):e.setAttribute(c,y)}}}var fn=Symbol.for("react.element"),En=Symbol.for("react.portal"),ja=Symbol.for("react.fragment"),Ua=Symbol.for("react.strict_mode"),Cr=Symbol.for("react.profiler"),xr=Symbol.for("react.provider"),h=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),lt=Symbol.for("react.memo"),qe=Symbol.for("react.lazy"),v=Symbol.for("react.scope"),w=Symbol.for("react.debug_trace_mode"),E=Symbol.for("react.offscreen"),b=Symbol.for("react.legacy_hidden"),S=Symbol.for("react.cache"),L=Symbol.for("react.tracing_marker"),T=Symbol.iterator,V="@@iterator";function j(e){if(e===null||typeof e!="object")return null;var t=T&&e[T]||e[V];return typeof t=="function"?t:null}var F=Object.assign,ut=0,ee,ft,Rt,Ct,hn,Rr,Ha;function On(){}On.__reactDisabledLog=!0;function wr(){{if(ut===0){ee=console.log,ft=console.info,Rt=console.warn,Ct=console.error,hn=console.group,Rr=console.groupCollapsed,Ha=console.groupEnd;var e={configurable:!0,enumerable:!0,value:On,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ut++}}function Vn(){{if(ut--,ut===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ee}),info:F({},e,{value:ft}),warn:F({},e,{value:Rt}),error:F({},e,{value:Ct}),group:F({},e,{value:hn}),groupCollapsed:F({},e,{value:Rr}),groupEnd:F({},e,{value:Ha})})}ut<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Yt=be.ReactCurrentDispatcher,ha;function na(e,t,n){{if(ha===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);ha=a&&a[1]||""}return` + */return function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var M=Zc(),R=F0(),be=M.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Re=!1;function we(e){Re=e}function ve(e){if(!Re){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a1?t-1:0),a=1;a2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Ht(e,t,n,a){if(n!==null&&n.type===et)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 zn(e,t,n,a){if(t===null||typeof t>"u"||Ht(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case We:return!t;case ft:return t===!1;case pn:return isNaN(t);case Ln:return isNaN(t)||t<1}return!1}function Xt(e){return Ft.hasOwnProperty(e)?Ft[e]:null}function It(e,t,n,a,r,i,o){this.acceptsBooleans=t===Ie||t===We||t===ft,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Ft={},Fn=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];Fn.forEach(function(e){Ft[e]=new It(e,et,!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];Ft[t]=new It(t,Je,!1,n,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Ft[e]=new It(e,Ie,!1,e.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Ft[e]=new It(e,Ie,!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){Ft[e]=new It(e,We,!1,e.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(e){Ft[e]=new It(e,We,!0,e,null,!1,!1)}),["capture","download"].forEach(function(e){Ft[e]=new It(e,ft,!1,e,null,!1,!1)}),["cols","rows","size","span"].forEach(function(e){Ft[e]=new It(e,Ln,!1,e,null,!1,!1)}),["rowSpan","start"].forEach(function(e){Ft[e]=new It(e,pn,!1,e.toLowerCase(),null,!1,!1)});var xa=/[\-\:]([a-z])/g,ma=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(xa,ma);Ft[t]=new It(t,Je,!1,e,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(e){var t=e.replace(xa,ma);Ft[t]=new It(t,Je,!1,e,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(xa,ma);Ft[t]=new It(t,Je,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(e){Ft[e]=new It(e,Je,!1,e.toLowerCase(),null,!1,!1)});var lr="xlinkHref";Ft[lr]=new It("xlinkHref",Je,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(e){Ft[e]=new It(e,Je,!1,e.toLowerCase(),null,!0,!0)});var Na=/^[\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,Jr=!1;function Er(e){!Jr&&Na.test(e)&&(Jr=!0,f("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(e)))}function Zr(e,t,n,a){if(a.mustUseProperty){var r=a.propertyName;return e[r]}else{cn(n,t),a.sanitizeURL&&Er(""+n);var i=a.attributeName,o=null;if(a.type===ft){if(e.hasAttribute(i)){var l=e.getAttribute(i);return l===""?!0:zn(t,n,a,!1)?l:l===""+n?n:l}}else if(e.hasAttribute(i)){if(zn(t,n,a,!1))return e.getAttribute(i);if(a.type===We)return n;o=e.getAttribute(i)}return zn(t,n,a,!1)?o===null?n:o:o===""+n?n:o}}function ei(e,t,n,a){{if(!Ut(t))return;if(!e.hasAttribute(t))return n===void 0?void 0:null;var r=e.getAttribute(t);return cn(n,t),r===""+n?n:r}}function Ra(e,t,n,a){var r=Xt(t);if(!Wt(t,r,a)){if(zn(t,n,r,a)&&(n=null),a||r===null){if(Ut(t)){var i=t;n===null?e.removeAttribute(i):(cn(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===We?!1:""}else e[l]=n;return}var c=r.attributeName,d=r.attributeNamespace;if(n===null)e.removeAttribute(c);else{var g=r.type,y;g===We||g===ft&&n===!0?y="":(cn(n,c),y=""+n,r.sanitizeURL&&Er(y.toString())),d?e.setAttributeNS(d,c,y):e.setAttribute(c,y)}}}var fn=Symbol.for("react.element"),En=Symbol.for("react.portal"),ja=Symbol.for("react.fragment"),Ua=Symbol.for("react.strict_mode"),Cr=Symbol.for("react.profiler"),xr=Symbol.for("react.provider"),h=Symbol.for("react.context"),B=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),fe=Symbol.for("react.suspense_list"),lt=Symbol.for("react.memo"),qe=Symbol.for("react.lazy"),v=Symbol.for("react.scope"),w=Symbol.for("react.debug_trace_mode"),E=Symbol.for("react.offscreen"),b=Symbol.for("react.legacy_hidden"),S=Symbol.for("react.cache"),L=Symbol.for("react.tracing_marker"),T=Symbol.iterator,V="@@iterator";function j(e){if(e===null||typeof e!="object")return null;var t=T&&e[T]||e[V];return typeof t=="function"?t:null}var F=Object.assign,ut=0,ee,dt,Rt,Ct,hn,Rr,Ha;function On(){}On.__reactDisabledLog=!0;function wr(){{if(ut===0){ee=console.log,dt=console.info,Rt=console.warn,Ct=console.error,hn=console.group,Rr=console.groupCollapsed,Ha=console.groupEnd;var e={configurable:!0,enumerable:!0,value:On,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ut++}}function Vn(){{if(ut--,ut===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:F({},e,{value:ee}),info:F({},e,{value:dt}),warn:F({},e,{value:Rt}),error:F({},e,{value:Ct}),group:F({},e,{value:hn}),groupCollapsed:F({},e,{value:Rr}),groupEnd:F({},e,{value:Ha})})}ut<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Yt=be.ReactCurrentDispatcher,ha;function na(e,t,n){{if(ha===void 0)try{throw Error()}catch(r){var a=r.stack.trim().match(/\n( *(at )?)/);ha=a&&a[1]||""}return` `+ha+e}}var ti=!1,Wa;{var ya=typeof WeakMap=="function"?WeakMap:Map;Wa=new ya}function aa(e,t){if(!e||ti)return"";{var n=Wa.get(e);if(n!==void 0)return n}var a;ti=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=Yt.current,Yt.current=null,wr();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(k){a=k}Reflect.construct(e,[],o)}else{try{o.call()}catch(k){a=k}e.call(o.prototype)}}else{try{throw Error()}catch(k){a=k}e()}}catch(k){if(k&&a&&typeof k.stack=="string"){for(var l=k.stack.split(` `),u=a.stack.split(` `),c=l.length-1,d=u.length-1;c>=1&&d>=0&&l[c]!==u[d];)d--;for(;c>=1&&d>=0;c--,d--)if(l[c]!==u[d]){if(c!==1||d!==1)do if(c--,d--,d<0||l[c]!==u[d]){var g=` `+l[c].replace(" at new "," at ");return e.displayName&&g.includes("")&&(g=g.replace("",e.displayName)),typeof e=="function"&&Wa.set(e,g),g}while(c>=1&&d>=0);break}}}finally{ti=!1,Yt.current=i,Vn(),Error.prepareStackTrace=r}var y=e?e.displayName||e.name:"",D=y?na(y):"";return typeof e=="function"&&Wa.set(e,D),D}function Dr(e,t,n){return aa(e,!0)}function Mi(e,t,n){return aa(e,!1)}function yn(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function _t(e,t,n){if(e==null)return"";if(typeof e=="function")return aa(e,yn(e));if(typeof e=="string")return na(e);switch(e){case ne:return na("Suspense");case fe:return na("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case B:return Mi(e.render);case lt:return _t(e.type,t,n);case qe:{var a=e,r=a._payload,i=a._init;try{return _t(i(r),t,n)}catch{}}}return""}function ur(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case te:return na(e.type);case zt:return na("Lazy");case Ce:return na("Suspense");case Ot:return na("SuspenseList");case ge:case Tt:case Z:return Mi(e.type);case Le:return Mi(e.type.render);case re:return Dr(e.type);default:return""}}function ra(e){try{var t="",n=e;do t+=ur(n),n=n.return;while(n);return t}catch(a){return` Error generating stack: `+a.message+` -`+a.stack}}function ni(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function cl(e){return e.displayName||"Context"}function kt(e){if(e==null)return null;if(typeof e.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case ja:return"Fragment";case En:return"Portal";case Cr:return"Profiler";case Ua:return"StrictMode";case ne:return"Suspense";case fe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var t=e;return cl(t)+".Consumer";case xr:var n=e;return cl(n._context)+".Provider";case B:return ni(e,e.render,"ForwardRef");case lt:var a=e.displayName||null;return a!==null?a:kt(e.type)||"Memo";case qe:{var r=e,i=r._payload,o=r._init;try{return kt(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 _r(e){return e.displayName||"Context"}function Ke(e){var t=e.tag,n=e.type;switch(t){case oe:return"Cache";case xt:var a=n;return _r(a)+".Consumer";case ot:var r=n;return _r(r._context)+".Provider";case st:return"DehydratedFragment";case Le:return rf(n,n.render,"ForwardRef");case Qe:return"Fragment";case te:return n;case je:return"Portal";case ce:return"Root";case Be:return"Text";case zt:return kt(n);case I:return n===Ua?"StrictMode":"Mode";case X:return"Offscreen";case rt:return"Profiler";case ke:return"Scope";case Ce:return"Suspense";case Ot:return"SuspenseList";case Se:return"TracingMarker";case re:case ge:case Et:case Tt:case U:case Z:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var fl=be.ReactDebugCurrentFrame,ia=null,Li=!1;function ai(){{if(ia===null)return null;var e=ia._debugOwner;if(e!==null&&typeof e<"u")return Ke(e)}return null}function of(){return ia===null?"":ra(ia)}function An(){fl.getCurrentStack=null,ia=null,Li=!1}function tn(e){fl.getCurrentStack=e===null?null:of,ia=e,Li=!1}function Gu(){return ia}function za(e){Li=e}function oa(e){return""+e}function qa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return Oe(e),e;default:return""}}var lf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function dl(e,t){lf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||f("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||f("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Xu(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vl(e){return e._valueTracker}function so(e){e._valueTracker=null}function uf(e){var t="";return e&&(Xu(e)?t=e.checked?"true":"false":t=e.value),t}function ri(e){var t=Xu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);Oe(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){Oe(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){Oe(l),a=""+l},stopTracking:function(){so(e),delete e[t]}};return o}}function Oi(e){vl(e)||(e._valueTracker=ri(e))}function pl(e){if(!e)return!1;var t=vl(e);if(!t)return!0;var n=t.getValue(),a=uf(e);return a!==n?(t.setValue(a),!0):!1}function kr(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 co=!1,fo=!1,vo=!1,Qu=!1;function Ku(e){var t=e.type==="checkbox"||e.type==="radio";return t?e.checked!=null:e.value!=null}function ml(e,t){var n=e,a=t.checked,r=F({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:a??n._wrapperState.initialChecked});return r}function Ju(e,t){dl("input",t),t.checked!==void 0&&t.defaultChecked!==void 0&&!fo&&(f("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ai()||"A component",t.type),fo=!0),t.value!==void 0&&t.defaultValue!==void 0&&!co&&(f("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",ai()||"A component",t.type),co=!0);var n=e,a=t.defaultValue==null?"":t.defaultValue;n._wrapperState={initialChecked:t.checked!=null?t.checked:t.defaultChecked,initialValue:qa(t.value!=null?t.value:a),controlled:Ku(t)}}function s(e,t){var n=e,a=t.checked;a!=null&&Ra(n,"checked",a,!1)}function m(e,t){var n=e;{var a=Ku(t);!n._wrapperState.controlled&&a&&!Qu&&(f("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Qu=!0),n._wrapperState.controlled&&!a&&!vo&&(f("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),vo=!0)}s(e,t);var r=qa(t.value),i=t.type;if(r!=null)i==="number"?(r===0&&n.value===""||n.value!=r)&&(n.value=oa(r)):n.value!==oa(r)&&(n.value=oa(r));else if(i==="submit"||i==="reset"){n.removeAttribute("value");return}t.hasOwnProperty("value")?Ue(n,t.type,r):t.hasOwnProperty("defaultValue")&&Ue(n,t.type,qa(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(n.defaultChecked=!!t.defaultChecked)}function _(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=oa(a._wrapperState.initialValue);n||o!==a.value&&(a.value=o),a.defaultValue=o}var l=a.name;l!==""&&(a.name=""),a.defaultChecked=!a.defaultChecked,a.defaultChecked=!!a._wrapperState.initialChecked,l!==""&&(a.name=l)}function O(e,t){var n=e;m(n,t),J(n,t)}function J(e,t){var n=t.name;if(t.type==="radio"&&n!=null){for(var a=e;a.parentNode;)a=a.parentNode;cn(n,"name");for(var r=a.querySelectorAll("input[name="+JSON.stringify(""+n)+'][type="radio"]'),i=0;i.")))}):t.dangerouslySetInnerHTML!=null&&(ht||(ht=!0,f("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),t.selected!=null&&!xe&&(f("Use the `defaultValue` or `value` props on instead of setting `selected` on