Files
mediacms/static/chapters_editor/chapters-editor.js
T

204 lines
398 KiB
JavaScript
Raw Normal View History

2025-07-28 02:13:24 +03:00
(function(){"use strict";var dm={exports:{}},Kc={exports:{}},al={exports:{}};al.exports;var vm;function U0(){return vm||(vm=1,function(k,R){/**
* @license React
* react.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2025-07-28 02:13:24 +03:00
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var Ee="18.3.1",we=Symbol.for("react.element"),xe=Symbol.for("react.portal"),ce=Symbol.for("react.fragment"),d=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),ve=Symbol.for("react.provider"),ne=Symbol.for("react.context"),gt=Symbol.for("react.forward_ref"),ue=Symbol.for("react.suspense"),Le=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),Fe=Symbol.for("react.lazy"),Ge=Symbol.for("react.offscreen"),W=Symbol.iterator,Tt="@@iterator";function it(s){if(s===null||typeof s!="object")return null;var h=W&&s[W]||s[Tt];return typeof h=="function"?h:null}var _e={current:null},Qe={transition:null},ye={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},U={current:null},K={},At=null;function bt(s){At=s}K.setExtraStackFrame=function(s){At=s},K.getCurrentStack=null,K.getStackAddendum=function(){var s="";At&&(s+=At);var h=K.getCurrentStack;return h&&(s+=h()||""),s};var ot=!1,Dt=!1,Te=!1,I=!1,Je=!1,ie={ReactCurrentDispatcher:_e,ReactCurrentBatchConfig:Qe,ReactCurrentOwner:U};ie.ReactDebugCurrentFrame=K,ie.ReactCurrentActQueue=ye;function pe(s){{for(var h=arguments.length,D=new Array(h>1?h-1:0),O=1;O<h;O++)D[O-1]=arguments[O];G("warn",s,D)}}function q(s){{for(var h=arguments.length,D=new Array(h>1?h-1:0),O=1;O<h;O++)D[O-1]=arguments[O];G("error",s,D)}}function G(s,h,D){{var O=ie.ReactDebugCurrentFrame,Q=O.getStackAddendum();Q!==""&&(h+="%s",D=D.concat([Q]));var Oe=D.map(function(ge){return String(ge)});Oe.unshift("Warning: "+h),Function.prototype.apply.call(console[s],console,Oe)}}var fe={};function dt(s,h){{var D=s.constructor,O=D&&(D.displayName||D.name)||"ReactClass",Q=O+"."+h;if(fe[Q])return;q("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",h,O),fe[Q]=!0}}var Mt={isMounted:function(s){return!1},enqueueForceUpdate:function(s,h,D){dt(s,"forceUpdate")},enqueueReplaceState:function(s,h,D,O){dt(s,"replaceState")},enqueueSetState:function(s,h,D,O){dt(s,"setState")}},lt=Object.assign,Kt={};Object.freeze(Kt);function Lt(s,h,D){this.props=s,this.context=h,this.refs=Kt,this.updater=D||Mt}Lt.prototype.isReactComponent={},Lt.prototype.setState=function(s,h){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,h,"setState")},Lt.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var Ye={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Ne=function(s,h){Object.defineProperty(Lt.prototype,s,{get:function(){pe("%s(...) is deprecated in plain JavaScript React classes. %s",h[0],h[1])}})};for(var ze in Ye)Ye.hasOwnProperty(ze)&&Ne(ze,Ye[ze])}function dn(){}dn.prototype=Lt.prototype;function Ze(s,h,D){this.props=s,this.context=h,this.refs=Kt,this.updater=D||Mt}var Yt=Ze.prototype=new dn;Yt.constructor=Ze,lt(Yt,Lt.prototype),Yt.isPureReactComponent=!0;function yt(){var s={current:null};return Object.seal(s),s}var nt=Array.isArray;function an(s){return nt(s)}function un(s){{var h=typeof Symbol=="function"&&Symbol.toStringTag,D=h&&s[Symbol.toStringTag]||s.constructor.name||"Object";return D}}function sn(s){try{return tn(s),!1}catch{return!0}}function tn(s){return""+s}function Pn(s){if(sn(s))return q("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",un(s)),tn(s)}function Yn(s,h,D){var O=s.displayName;if(O)return O;var Q=h.displayName||
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
2025-07-28 02:13:24 +03:00
Did you accidentally put curly braces around the import?`,Q),"default"in Q||q(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
2025-07-28 02:13:24 +03:00
const MyComponent = lazy(() => import('./MyComponent'))`,Q),Q.default}else throw s._result}function y(s){var h={_status:ga,_result:s},D={$$typeof:Fe,_payload:h,_init:gr};{var O,Q;Object.defineProperties(D,{defaultProps:{configurable:!0,get:function(){return O},set:function(Oe){q("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),O=Oe,Object.defineProperty(D,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Q},set:function(Oe){q("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Q=Oe,Object.defineProperty(D,"propTypes",{enumerable:!0})}}})}return D}function F(s){s!=null&&s.$$typeof===ee?q("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?q("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&q("forwardRef render functions accept exactly two parameters: props and ref. %s",s.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),s!=null&&(s.defaultProps!=null||s.propTypes!=null)&&q("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var h={$$typeof:gt,render:s};{var D;Object.defineProperty(h,"displayName",{enumerable:!1,configurable:!0,get:function(){return D},set:function(O){D=O,!s.name&&!s.displayName&&(s.displayName=O)}})}return h}var c;c=Symbol.for("react.module.reference");function m(s){return!!(typeof s=="string"||typeof s=="function"||s===ce||s===X||Je||s===d||s===ue||s===Le||I||s===Ge||ot||Dt||Te||typeof s=="object"&&s!==null&&(s.$$typeof===Fe||s.$$typeof===ee||s.$$typeof===ve||s.$$typeof===ne||s.$$typeof===gt||s.$$typeof===c||s.getModuleId!==void 0))}function g(s,h){m(s)||q("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var D={$$typeof:ee,type:s,compare:h===void 0?null:h};{var O;Object.defineProperty(D,"displayName",{enumerable:!1,configurable:!0,get:function(){return O},set:function(Q){O=Q,!s.name&&!s.displayName&&(s.displayName=Q)}})}return D}function E(){var s=_e.current;return s===null&&q(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
2025-07-28 02:13:24 +03:00
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),s}function T(s){var h=E();if(s._context!==void 0){var D=s._context;D.Consumer===s?q("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):D.Provider===s&&q("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return h.useContext(s)}function M(s){var h=E();return h.useState(s)}function L(s,h,D){var O=E();return O.useReducer(s,h,D)}function z(s){var h=E();return h.useRef(s)}function Ue(s,h){var D=E();return D.useEffect(s,h)}function $(s,h){var D=E();return D.useInsertionEffect(s,h)}function Ce(s,h){var D=E();return D.useLayoutEffect(s,h)}function et(s,h){var D=E();return D.useCallback(s,h)}function rt(s,h){var D=E();return D.useMemo(s,h)}function Wt(s,h,D){var O=E();return O.useImperativeHandle(s,h,D)}function $t(s,h){{var D=E();return D.useDebugValue(s,h)}}function Ve(){var s=E();return s.useTransition()}function rn(s){var h=E();return h.useDeferredValue(s)}function Fa(){var s=E();return s.useId()}function An(s,h,D){var O=E();return O.useSyncExternalStore(s,h,D)}var Ot=0,sa,nr,no,Yr,ba,_a,bi;function Wr(){}Wr.__reactDisabledLog=!0;function cn(){{if(Ot===0){sa=console.log,nr=console.info,no=console.warn,Yr=console.error,ba=console.group,_a=console.groupCollapsed,bi=console.groupEnd;var s={configurable:!0,enumerable:!0,value:Wr,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}Ot++}}function ft(){{if(Ot--,Ot===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:lt({},s,{value:sa}),info:lt({},s,{value:nr}),warn:lt({},s,{value:no}),error:lt({},s,{value:Yr}),group:lt({},s,{value:ba}),groupCollapsed:lt({},s,{value:_a}),groupEnd:lt({},s,{value:bi})})}Ot<0&&q("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var ca=ie.ReactCurrentDispatcher,Wn;function ar(s,h,D){{if(Wn===void 0)try{throw Error()}catch(Q){var O=Q.stack.trim().match(/\n( *(at )?)/);Wn=O&&O[1]||""}return`
`+Wn+s}}var Si=!1,ao;{var il=typeof WeakMap=="function"?WeakMap:Map;ao=new il}function Yu(s,h){if(!s||Si)return"";{var D=ao.get(s);if(D!==void 0)return D}var O;Si=!0;var Q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Oe;Oe=ca.current,ca.current=null,cn();try{if(h){var ge=function(){throw Error()};if(Object.defineProperty(ge.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ge,[])}catch(vn){O=vn}Reflect.construct(s,[],ge)}else{try{ge.call()}catch(vn){O=vn}s.call(ge.prototype)}}else{try{throw Error()}catch(vn){O=vn}s()}}catch(vn){if(vn&&O&&typeof vn.stack=="string"){for(var Ie=vn.stack.split(`
`),vt=O.stack.split(`
`),Ut=Ie.length-1,It=vt.length-1;Ut>=1&&It>=0&&Ie[Ut]!==vt[It];)It--;for(;Ut>=1&&It>=0;Ut--,It--)if(Ie[Ut]!==vt[It]){if(Ut!==1||It!==1)do if(Ut--,It--,It<0||Ie[Ut]!==vt[It]){var qt=`
`+Ie[Ut].replace(" at new "," at ");return s.displayName&&qt.includes("<anonymous>")&&(qt=qt.replace("<anonymous>",s.displayName)),typeof s=="function"&&ao.set(s,qt),qt}while(Ut>=1&&It>=0);break}}}finally{Si=!1,ca.current=Oe,ft(),Error.prepareStackTrace=Q}var st=s?s.displayName||s.name:"",en=st?ar(st):"";return typeof s=="function"&&ao.set(s,en),en}function ol(s,h,D){return Yu(s,!1)}function af(s){var h=s.prototype;return!!(h&&h.isReactComponent)}function Ti(s,h,D){if(s==null)return"";if(typeof s=="function")return Yu(s,af(s));if(typeof s=="string")return ar(s);switch(s){case ue:return ar("Suspense");case Le:return ar("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case gt:return ol(s.render);case ee:return Ti(s.type,h,D);case Fe:{var O=s,Q=O._payload,Oe=O._init;try{return Ti(Oe(Q),h,D)}catch{}}}return""}var Wu={},ll=ie.ReactDebugCurrentFrame;function Rt(s){if(s){var h=s._owner,D=Ti(s.type,s._source,h?h.type:null);ll.setExtraStackFrame(D)}else ll.setExtraStackFrame(null)}function rf(s,h,D,O,Q){{var Oe=Function.call.bind(Y);for(var ge in s)if(Oe(s,ge)){var Ie=void 0;try{if(typeof s[ge]!="function"){var vt=Error((O||"React class")+": "+D+" type `"+ge+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[ge]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw vt.name="Invariant Violation",vt}Ie=s[ge](h,ge,O,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(Ut){Ie=Ut}Ie&&!(Ie instanceof Error)&&(Rt(Q),q("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",O||"React class",D,ge,typeof Ie),Rt(null)),Ie instanceof Error&&!(Ie.message in Wu)&&(Wu[Ie.message]=!0,Rt(Q),q("Failed %s type: %s",D,Ie.message),Rt(null))}}}function br(s){if(s){var h=s._owner,D=Ti(s.type,s._source,h?h.type:null);bt(D)}else bt(null)}var Xe;Xe=!1;function ul(){if(U.current){var s=A(U.current.type);if(s)return`
2025-07-28 02:13:24 +03:00
Check the render method of \``+s+"`."}return""}function Zn(s){if(s!==void 0){var h=s.fileName.replace(/^.*[\\\/]/,""),D=s.lineNumber;return`
2025-07-28 02:13:24 +03:00
Check your code at `+h+":"+D+"."}return""}function Ei(s){return s!=null?Zn(s.__source):""}var Ir={};function of(s){var h=ul();if(!h){var D=typeof s=="string"?s:s.displayName||s.name;D&&(h=`
2025-07-28 02:13:24 +03:00
Check the top-level render call using <`+D+">.")}return h}function Dn(s,h){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var D=of(h);if(!Ir[D]){Ir[D]=!0;var O="";s&&s._owner&&s._owner!==U.current&&(O=" It was passed a child from "+A(s._owner.type)+"."),br(s),q('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',D,O),br(null)}}}function Jt(s,h){if(typeof s=="object"){if(an(s))for(var D=0;D<s.length;D++){var O=s[D];xt(O)&&Dn(O,h)}else if(xt(s))s._store&&(s._store.validated=!0);else if(s){var Q=it(s);if(typeof Q=="function"&&Q!==s.entries)for(var Oe=Q.call(s),ge;!(ge=Oe.next()).done;)xt(ge.value)&&Dn(ge.value,h)}}}function Iu(s){{var h=s.type;if(h==null||typeof h=="string")return;var D;if(typeof h=="function")D=h.propTypes;else if(typeof h=="object"&&(h.$$typeof===gt||h.$$typeof===ee))D=h.propTypes;else return;if(D){var O=A(h);rf(D,s.props,"prop",O,s)}else if(h.PropTypes!==void 0&&!Xe){Xe=!0;var Q=A(h);q("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Q||"Unknown")}typeof h.getDefaultProps=="function"&&!h.getDefaultProps.isReactClassApproved&&q("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ka(s){{for(var h=Object.keys(s.props),D=0;D<h.length;D++){var O=h[D];if(O!=="children"&&O!=="key"){br(s),q("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",O),br(null);break}}s.ref!==null&&(br(s),q("Invalid attribute `ref` supplied to `React.Fragment`."),br(null))}}function Jn(s,h,D){var O=m(s);if(!O){var Q="";(s===void 0||typeof s=="object"&&s!==null&&Object.keys(s).length===0)&&(Q+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Oe=Ei(h);Oe?Q+=Oe:Q+=ul();var ge;s===null?ge="null":an(s)?ge="array":s!==void 0&&s.$$typeof===we?(ge="<"+(A(s.type)||"Unknown")+" />",Q=" Did you accidentally export a JSX literal instead of a component?"):ge=typeof s,q("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",ge,Q)}var Ie=ke.apply(this,arguments);if(Ie==null)return Ie;if(O)for(var vt=2;vt<arguments.length;vt++)Jt(arguments[vt],s);return s===ce?ka(Ie):Iu(Ie),Ie}var Va=!1;function lf(s){var h=Jn.bind(null,s);return h.type=s,Va||(Va=!0,pe("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(h,"type",{enumerable:!1,get:function(){return pe("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),h}function sl(s,h,D){for(var O=ut.apply(this,arguments),Q=2;Q<arguments.length;Q++)Jt(arguments[Q],O.type);return Iu(O),O}function qu(s,h){var D=Qe.transition;Qe.transition={};var O=Qe.transition;Qe.transition._updatedFibers=new Set;try{s()}finally{if(Qe.transition=D,D===null&&O._updatedFibers){var Q=O._updatedFibers.size;Q>10&&pe("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),O._updatedFibers.clear()}}}var cl=!1,ro=null;function uf(s){if(ro===null)try{var h=("require"+Math.random()).slice(0,7),D=k&&k[h];ro=D.call(k,"timers").setImmediate}catch{ro=function(Q){cl===!1&&(cl=!0,typeof MessageChannel>"u"&&q("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Oe=new MessageChannel;Oe.port1.onmessage=Q,Oe.port2.postMessage(void 0)}}return ro(s)}var qr=0,Ci=!1;function fl(s){{var h=qr;qr++,ye.current===null&&(ye.current=[]);var D=ye.isBatchingLegacy,O;try{if(ye.isBatching
* @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.
2025-07-28 02:13:24 +03:00
*/return function(){var k=Zc(),R=Symbol.for("react.element"),Ee=Symbol.for("react.portal"),we=Symbol.for("react.fragment"),xe=Symbol.for("react.strict_mode"),ce=Symbol.for("react.profiler"),d=Symbol.for("react.provider"),X=Symbol.for("react.context"),ve=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),gt=Symbol.for("react.suspense_list"),ue=Symbol.for("react.memo"),Le=Symbol.for("react.lazy"),ee=Symbol.for("react.offscreen"),Fe=Symbol.iterator,Ge="@@iterator";function W(c){if(c===null||typeof c!="object")return null;var m=Fe&&c[Fe]||c[Ge];return typeof m=="function"?m:null}var Tt=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function it(c){{for(var m=arguments.length,g=new Array(m>1?m-1:0),E=1;E<m;E++)g[E-1]=arguments[E];_e("error",c,g)}}function _e(c,m,g){{var E=Tt.ReactDebugCurrentFrame,T=E.getStackAddendum();T!==""&&(m+="%s",g=g.concat([T]));var M=g.map(function(L){return String(L)});M.unshift("Warning: "+m),Function.prototype.apply.call(console[c],console,M)}}var Qe=!1,ye=!1,U=!1,K=!1,At=!1,bt;bt=Symbol.for("react.module.reference");function ot(c){return!!(typeof c=="string"||typeof c=="function"||c===we||c===ce||At||c===xe||c===ne||c===gt||K||c===ee||Qe||ye||U||typeof c=="object"&&c!==null&&(c.$$typeof===Le||c.$$typeof===ue||c.$$typeof===d||c.$$typeof===X||c.$$typeof===ve||c.$$typeof===bt||c.getModuleId!==void 0))}function Dt(c,m,g){var E=c.displayName;if(E)return E;var T=m.displayName||m.name||"";return T!==""?g+"("+T+")":g}function Te(c){return c.displayName||"Context"}function I(c){if(c==null)return null;if(typeof c.tag=="number"&&it("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case we:return"Fragment";case Ee:return"Portal";case ce:return"Profiler";case xe:return"StrictMode";case ne:return"Suspense";case gt:return"SuspenseList"}if(typeof c=="object")switch(c.$$typeof){case X:var m=c;return Te(m)+".Consumer";case d:var g=c;return Te(g._context)+".Provider";case ve:return Dt(c,c.render,"ForwardRef");case ue:var E=c.displayName||null;return E!==null?E:I(c.type)||"Memo";case Le:{var T=c,M=T._payload,L=T._init;try{return I(L(M))}catch{return null}}}return null}var Je=Object.assign,ie=0,pe,q,G,fe,dt,Mt,lt;function Kt(){}Kt.__reactDisabledLog=!0;function Lt(){{if(ie===0){pe=console.log,q=console.info,G=console.warn,fe=console.error,dt=console.group,Mt=console.groupCollapsed,lt=console.groupEnd;var c={configurable:!0,enumerable:!0,value:Kt,writable:!0};Object.defineProperties(console,{info:c,log:c,warn:c,error:c,group:c,groupCollapsed:c,groupEnd:c})}ie++}}function Ye(){{if(ie--,ie===0){var c={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Je({},c,{value:pe}),info:Je({},c,{value:q}),warn:Je({},c,{value:G}),error:Je({},c,{value:fe}),group:Je({},c,{value:dt}),groupCollapsed:Je({},c,{value:Mt}),groupEnd:Je({},c,{value:lt})})}ie<0&&it("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ne=Tt.ReactCurrentDispatcher,ze;function dn(c,m,g){{if(ze===void 0)try{throw Error()}catch(T){var E=T.stack.trim().match(/\n( *(at )?)/);ze=E&&E[1]||""}return`
`+ze+c}}var Ze=!1,Yt;{var yt=typeof WeakMap=="function"?WeakMap:Map;Yt=new yt}function nt(c,m){if(!c||Ze)return"";{var g=Yt.get(c);if(g!==void 0)return g}var E;Ze=!0;var T=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var M;M=Ne.current,Ne.current=null,Lt();try{if(m){var L=function(){throw Error()};if(Object.defineProperty(L.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(L,[])}catch($t){E=$t}Reflect.construct(c,[],L)}else{try{L.call()}catch($t){E=$t}c.call(L.prototype)}}else{try{throw Error()}catch($t){E=$t}c()}}catch($t){if($t&&E&&typeof $t.stack=="string"){for(var z=$t.stack.split(`
`),Ue=E.stack.split(`
`),$=z.length-1,Ce=Ue.length-1;$>=1&&Ce>=0&&z[$]!==Ue[Ce];)Ce--;for(;$>=1&&Ce>=0;$--,Ce--)if(z[$]!==Ue[Ce]){if($!==1||Ce!==1)do if($--,Ce--,Ce<0||z[$]!==Ue[Ce]){var et=`
`+z[$].replace(" at new "," at ");return c.displayName&&et.includes("<anonymous>")&&(et=et.replace("<anonymous>",c.displayName)),typeof c=="function"&&Yt.set(c,et),et}while($>=1&&Ce>=0);break}}}finally{Ze=!1,Ne.current=M,Ye(),Error.prepareStackTrace=T}var rt=c?c.displayName||c.name:"",Wt=rt?dn(rt):"";return typeof c=="function"&&Yt.set(c,Wt),Wt}function an(c,m,g){return nt(c,!1)}function un(c){var m=c.prototype;return!!(m&&m.isReactComponent)}function sn(c,m,g){if(c==null)return"";if(typeof c=="function")return nt(c,un(c));if(typeof c=="string")return dn(c);switch(c){case ne:return dn("Suspense");case gt:return dn("SuspenseList")}if(typeof c=="object")switch(c.$$typeof){case ve:return an(c.render);case ue:return sn(c.type,m,g);case Le:{var E=c,T=E._payload,M=E._init;try{return sn(M(T),m,g)}catch{}}}return""}var tn=Object.prototype.hasOwnProperty,Pn={},Yn=Tt.ReactDebugCurrentFrame;function la(c){if(c){var m=c._owner,g=sn(c.type,c._source,m?m.type:null);Yn.setExtraStackFrame(g)}else Yn.setExtraStackFrame(null)}function A(c,m,g,E,T){{var M=Function.call.bind(tn);for(var L in c)if(M(c,L)){var z=void 0;try{if(typeof c[L]!="function"){var Ue=Error((E||"React class")+": "+g+" type `"+L+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof c[L]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Ue.name="Invariant Violation",Ue}z=c[L](m,L,E,g,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch($){z=$}z&&!(z instanceof Error)&&(la(T),it("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",E||"React class",g,L,typeof z),la(null)),z instanceof Error&&!(z.message in Pn)&&(Pn[z.message]=!0,la(T),it("Failed %s type: %s",g,z.message),la(null))}}}var Y=Array.isArray;function ae(c){return Y(c)}function me(c){{var m=typeof Symbol=="function"&&Symbol.toStringTag,g=m&&c[Symbol.toStringTag]||c.constructor.name||"Object";return g}}function je(c){try{return Be(c),!1}catch{return!0}}function Be(c){return""+c}function at(c){if(je(c))return it("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",me(c)),Be(c)}var We=Tt.ReactCurrentOwner,St={key:!0,ref:!0,__self:!0,__source:!0},Zt,Z;function be(c){if(tn.call(c,"ref")){var m=Object.getOwnPropertyDescriptor(c,"ref").get;if(m&&m.isReactWarning)return!1}return c.ref!==void 0}function ke(c){if(tn.call(c,"key")){var m=Object.getOwnPropertyDescriptor(c,"key").get;if(m&&m.isReactWarning)return!1}return c.key!==void 0}function Ke(c,m){typeof c.ref=="string"&&We.current}function ut(c,m){{var g=function(){Zt||(Zt=!0,it("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};g.isReactWarning=!0,Object.defineProperty(c,"key",{get:g,configurable:!0})}}function xt(c,m){{var g=function(){Z||(Z=!0,it("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",m))};g.isReactWarning=!0,Object.defineProperty(c,"ref",{get:g,configurable:!0})}}var Nt=function(c,m,g,E,T,M,L){var z={$$typeof:R,type:c,key:m,ref:g,props:L,_owner:M};return z._store={},Object.defineProperty(z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(z,"_self",{configurable:!1,enumerable:!1,writable:!1,value:E}),Object.defineProperty(z,"_source",{configurable:!1,enumerable:!1,writable:!1,value:T}),Object.freeze&&(Object.freeze(z.props),Object.freeze(z)),z};function Xt(c,m,g,E,T){{var M,L={},z=null,Ue=null;g!==void 0&&(at(g),z=""+g),ke(m)&&(at(m.key),z=""+m.key),b
2025-07-28 02:13:24 +03:00
Check the render method of \``+c+"`."}return""}}function ua(c){return""}var Br={};function za(c){{var m=hn();if(!m){var g=typeof c=="string"?c:c.displayName||c.name;g&&(m=`
2025-07-28 02:13:24 +03:00
Check the top-level render call using <`+g+">.")}return m}}function yr(c,m){{if(!c._store||c._store.validated||c.key!=null)return;c._store.validated=!0;var g=za(m);if(Br[g])return;Br[g]=!0;var E="";c&&c._owner&&c._owner!==Vt.current&&(E=" It was passed a child from "+I(c._owner.type)+"."),Bt(c),it('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',g,E),Bt(null)}}function $r(c,m){{if(typeof c!="object")return;if(ae(c))for(var g=0;g<c.length;g++){var E=c[g];ya(E)&&yr(E,m)}else if(ya(c))c._store&&(c._store.validated=!0);else if(c){var T=W(c);if(typeof T=="function"&&T!==c.entries)for(var M=T.call(c),L;!(L=M.next()).done;)ya(L.value)&&yr(L.value,m)}}}function Pr(c){{var m=c.type;if(m==null||typeof m=="string")return;var g;if(typeof m=="function")g=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===ve||m.$$typeof===ue))g=m.propTypes;else return;if(g){var E=I(m);A(g,c.props,"prop",E,c)}else if(m.PropTypes!==void 0&&!tr){tr=!0;var T=I(m);it("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",T||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&it("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function ga(c){{for(var m=Object.keys(c.props),g=0;g<m.length;g++){var E=m[g];if(E!=="children"&&E!=="key"){Bt(c),it("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",E),Bt(null);break}}c.ref!==null&&(Bt(c),it("Invalid attribute `ref` supplied to `React.Fragment`."),Bt(null))}}var Rn={};function wn(c,m,g,E,T,M){{var L=ot(c);if(!L){var z="";(c===void 0||typeof c=="object"&&c!==null&&Object.keys(c).length===0)&&(z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var Ue=ua();Ue?z+=Ue:z+=hn();var $;c===null?$="null":ae(c)?$="array":c!==void 0&&c.$$typeof===R?($="<"+(I(c.type)||"Unknown")+" />",z=" Did you accidentally export a JSX literal instead of a component?"):$=typeof c,it("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",$,z)}var Ce=Xt(c,m,g,T,M);if(Ce==null)return Ce;if(L){var et=m.children;if(et!==void 0)if(E)if(ae(et)){for(var rt=0;rt<et.length;rt++)$r(et[rt],c);Object.freeze&&Object.freeze(et)}else it("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else $r(et,c)}if(tn.call(m,"key")){var Wt=I(c),$t=Object.keys(m).filter(function(Fa){return Fa!=="key"}),Ve=$t.length>0?"{key: someKey, "+$t.join(": ..., ")+": ...}":"{key: someKey}";if(!Rn[Wt+Ve]){var rn=$t.length>0?"{"+$t.join(": ..., ")+": ...}":"{}";it(`A props object containing a "key" prop is being spread into JSX:
let props = %s;
<%s {...props} />
React keys must be passed directly to JSX without using spread:
let props = %s;
2025-07-28 02:13:24 +03:00
<%s key={someKey} {...props} />`,Ve,Wt,rn,Wt),Rn[Wt+Ve]=!0}}return c===we?ga(Ce):Pr(Ce),Ce}}function Da(c,m,g){return wn(c,m,g,!0)}function gr(c,m,g){return wn(c,m,g,!1)}var y=gr,F=Da;rl.Fragment=we,rl.jsx=y,rl.jsxs=F}(),rl}dm.exports=H0();var p=dm.exports,hm={exports:{}},Jc={exports:{}},ef={},ym;function z0(){return ym||(ym=1,function(k){/**
* @license React
* scheduler.development.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
2025-07-28 02:13:24 +03:00
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var R=!1,Ee=5;function we(Z,be){var ke=Z.length;Z.push(be),d(Z,be,ke)}function xe(Z){return Z.length===0?null:Z[0]}function ce(Z){if(Z.length===0)return null;var be=Z[0],ke=Z.pop();return ke!==be&&(Z[0]=ke,X(Z,ke,0)),be}function d(Z,be,ke){for(var Ke=ke;Ke>0;){var ut=Ke-1>>>1,xt=Z[ut];if(ve(xt,be)>0)Z[ut]=be,Z[Ke]=xt,Ke=ut;else return}}function X(Z,be,ke){for(var Ke=ke,ut=Z.length,xt=ut>>>1;Ke<xt;){var Nt=(Ke+1)*2-1,Xt=Z[Nt],Vt=Nt+1,jt=Z[Vt];if(ve(Xt,be)<0)Vt<ut&&ve(jt,Xt)<0?(Z[Ke]=jt,Z[Vt]=be,Ke=Vt):(Z[Ke]=Xt,Z[Nt]=be,Ke=Nt);else if(Vt<ut&&ve(jt,be)<0)Z[Ke]=jt,Z[Vt]=be,Ke=Vt;else return}}function ve(Z,be){var ke=Z.sortIndex-be.sortIndex;return ke!==0?ke:Z.id-be.id}var ne=1,gt=2,ue=3,Le=4,ee=5;function Fe(Z,be){}var Ge=typeof performance=="object"&&typeof performance.now=="function";if(Ge){var W=performance;k.unstable_now=function(){return W.now()}}else{var Tt=Date,it=Tt.now();k.unstable_now=function(){return Tt.now()-it}}var _e=1073741823,Qe=-1,ye=250,U=5e3,K=1e4,At=_e,bt=[],ot=[],Dt=1,Te=null,I=ue,Je=!1,ie=!1,pe=!1,q=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,fe=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function dt(Z){for(var be=xe(ot);be!==null;){if(be.callback===null)ce(ot);else if(be.startTime<=Z)ce(ot),be.sortIndex=be.expirationTime,we(bt,be);else return;be=xe(ot)}}function Mt(Z){if(pe=!1,dt(Z),!ie)if(xe(bt)!==null)ie=!0,Be(lt);else{var be=xe(ot);be!==null&&at(Mt,be.startTime-Z)}}function lt(Z,be){ie=!1,pe&&(pe=!1,We()),Je=!0;var ke=I;try{var Ke;if(!R)return Kt(Z,be)}finally{Te=null,I=ke,Je=!1}}function Kt(Z,be){var ke=be;for(dt(ke),Te=xe(bt);Te!==null&&!(Te.expirationTime>ke&&(!Z||Yn()));){var Ke=Te.callback;if(typeof Ke=="function"){Te.callback=null,I=Te.priorityLevel;var ut=Te.expirationTime<=ke,xt=Ke(ut);ke=k.unstable_now(),typeof xt=="function"?Te.callback=xt:Te===xe(bt)&&ce(bt),dt(ke)}else ce(bt);Te=xe(bt)}if(Te!==null)return!0;var Nt=xe(ot);return Nt!==null&&at(Mt,Nt.startTime-ke),!1}function Lt(Z,be){switch(Z){case ne:case gt:case ue:case Le:case ee:break;default:Z=ue}var ke=I;I=Z;try{return be()}finally{I=ke}}function Ye(Z){var be;switch(I){case ne:case gt:case ue:be=ue;break;default:be=I;break}var ke=I;I=be;try{return Z()}finally{I=ke}}function Ne(Z){var be=I;return function(){var ke=I;I=be;try{return Z.apply(this,arguments)}finally{I=ke}}}function ze(Z,be,ke){var Ke=k.unstable_now(),ut;if(typeof ke=="object"&&ke!==null){var xt=ke.delay;typeof xt=="number"&&xt>0?ut=Ke+xt:ut=Ke}else ut=Ke;var Nt;switch(Z){case ne:Nt=Qe;break;case gt:Nt=ye;break;case ee:Nt=At;break;case Le:Nt=K;break;case ue:default:Nt=U;break}var Xt=ut+Nt,Vt={id:Dt++,callback:be,priorityLevel:Z,startTime:ut,expirationTime:Xt,sortIndex:-1};return ut>Ke?(Vt.sortIndex=ut,we(ot,Vt),xe(bt)===null&&Vt===xe(ot)&&(pe?We():pe=!0,at(Mt,ut-Ke))):(Vt.sortIndex=Xt,we(bt,Vt),!ie&&!Je&&(ie=!0,Be(lt))),Vt}function dn(){}function Ze(){!ie&&!Je&&(ie=!0,Be(lt))}function Yt(){return xe(bt)}function yt(Z){Z.callback=null}function nt(){return I}var an=!1,un=null,sn=-1,tn=Ee,Pn=-1;function Yn(){var Z=k.unstable_now()-Pn;return!(Z<tn)}function la(){}function A(Z){if(Z<0||Z>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Z>0?tn=Math.floor(1e3/Z):tn=Ee}var Y=function(){if(un!==null){var Z=k.unstable_now();Pn=Z;var be=!0,ke=!0;try{ke=un(be,Z)}finally{ke?ae():(an=!1,un=null)}}else an=!1},ae;if(typeof fe=="function")ae=function(){fe(Y)};else if(typeof MessageChannel<"u"){var me=new MessageChannel,je=me.port2;me.port1.onmessage=Y,ae=function(){je.postMessage(null)}}else ae=function(){q(Y,0)};function Be(Z){un=Z,an||(an=!0,ae())}function at(Z,be){sn=q(function()
* @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.
2025-07-28 02:13:24 +03:00
*/return function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var k=Zc(),R=F0(),Ee=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,we=!1;function xe(e){we=e}function ce(e){if(!we){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];X("warn",e,n)}}function d(e){if(!we){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];X("error",e,n)}}function X(e,t,n){{var a=Ee.ReactDebugCurrentFrame,r=a.getStackAddendum();r!==""&&(t+="%s",n=n.concat([r]));var i=n.map(function(o){return String(o)});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}}var ve=0,ne=1,gt=2,ue=3,Le=4,ee=5,Fe=6,Ge=7,W=8,Tt=9,it=10,_e=11,Qe=12,ye=13,U=14,K=15,At=16,bt=17,ot=18,Dt=19,Te=21,I=22,Je=23,ie=24,pe=25,q=!0,G=!1,fe=!1,dt=!1,Mt=!1,lt=!0,Kt=!0,Lt=!0,Ye=!0,Ne=new Set,ze={},dn={};function Ze(e,t){Yt(e,t),Yt(e+"Capture",t)}function Yt(e,t){ze[e]&&d("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),ze[e]=t;{var n=e.toLowerCase();dn[n]=e,e==="onDoubleClick"&&(dn.ondblclick=e)}for(var a=0;a<t.length;a++)Ne.add(t[a])}var yt=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",nt=Object.prototype.hasOwnProperty;function an(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function un(e){try{return sn(e),!1}catch{return!0}}function sn(e){return""+e}function tn(e,t){if(un(e))return d("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,an(e)),sn(e)}function Pn(e){if(un(e))return d("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",an(e)),sn(e)}function Yn(e,t){if(un(e))return d("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,an(e)),sn(e)}function la(e,t){if(un(e))return d("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,an(e)),sn(e)}function A(e){if(un(e))return d("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",an(e)),sn(e)}function Y(e){if(un(e))return d("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",an(e)),sn(e)}var ae=0,me=1,je=2,Be=3,at=4,We=5,St=6,Zt=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Z=Zt+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",be=new RegExp("^["+Zt+"]["+Z+"]*$"),ke={},Ke={};function ut(e){return nt.call(Ke,e)?!0:nt.call(ke,e)?!1:be.test(e)?(Ke[e]=!0,!0):(ke[e]=!0,d("Invalid attribute name: `%s`",e),!1)}function xt(e,t,n){return t!==null?t.type===ae:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Nt(e,t,n,a){if(n!==null&&n.type===ae)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":{if(a)return!1;if(n!==null)return!n.acceptsBooleans;var r=e.toLowerCase().slice(0,5);return r!=="data-"&&r!=="aria-"}default:return!1}}function Xt(e,t,n,a){if(t===null||typeof t>"u"||Nt(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case Be:return!t;case at:return t===!1;case We:return isNaN(t);case St:return isNaN(t)||t<1}return!1}function Vt(e){return Bt.hasOwnProperty(e)?Bt[e]:null}function jt(e,t,n,a,r,i,o){this.acceptsBooleans=t===je||t===Be||t===at,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var Bt={},tr=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML",
`+cn+e}}var ca=!1,Wn;{var ar=typeof WeakMap=="function"?WeakMap:Map;Wn=new ar}function Si(e,t){if(!e||ca)return"";{var n=Wn.get(e);if(n!==void 0)return n}var a;ca=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=Wr.current,Wr.current=null,_a();try{if(t){var o=function(){throw Error()};if(Object.defineProperty(o.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(o,[])}catch(_){a=_}Reflect.construct(e,[],o)}else{try{o.call()}catch(_){a=_}e.call(o.prototype)}}else{try{throw Error()}catch(_){a=_}e()}}catch(_){if(_&&a&&typeof _.stack=="string"){for(var l=_.stack.split(`
`),u=a.stack.split(`
2025-07-28 02:13:24 +03:00
`),f=l.length-1,v=u.length-1;f>=1&&v>=0&&l[f]!==u[v];)v--;for(;f>=1&&v>=0;f--,v--)if(l[f]!==u[v]){if(f!==1||v!==1)do if(f--,v--,v<0||l[f]!==u[v]){var S=`
`+l[f].replace(" at new "," at ");return e.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",e.displayName)),typeof e=="function"&&Wn.set(e,S),S}while(f>=1&&v>=0);break}}}finally{ca=!1,Wr.current=i,bi(),Error.prepareStackTrace=r}var b=e?e.displayName||e.name:"",w=b?ft(b):"";return typeof e=="function"&&Wn.set(e,w),w}function ao(e,t,n){return Si(e,!0)}function il(e,t,n){return Si(e,!1)}function Yu(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function ol(e,t,n){if(e==null)return"";if(typeof e=="function")return Si(e,Yu(e));if(typeof e=="string")return ft(e);switch(e){case g:return ft("Suspense");case E:return ft("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case m:return il(e.render);case T:return ol(e.type,t,n);case M:{var a=e,r=a._payload,i=a._init;try{return ol(i(r),t,n)}catch{}}}return""}function af(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case ee:return ft(e.type);case At:return ft("Lazy");case ye:return ft("Suspense");case Dt:return ft("SuspenseList");case ve:case gt:case K:return il(e.type);case _e:return il(e.type.render);case ne:return ao(e.type);default:return""}}function Ti(e){try{var t="",n=e;do t+=af(n),n=n.return;while(n);return t}catch(a){return`
Error generating stack: `+a.message+`
2025-07-28 02:13:24 +03:00
`+a.stack}}function Wu(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function ll(e){return e.displayName||"Context"}function Rt(e){if(e==null)return null;if(typeof e.tag=="number"&&d("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Da:return"Fragment";case wn:return"Portal";case y:return"Profiler";case gr:return"StrictMode";case g:return"Suspense";case E:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case c:var t=e;return ll(t)+".Consumer";case F:var n=e;return ll(n._context)+".Provider";case m:return Wu(e,e.render,"ForwardRef");case T:var a=e.displayName||null;return a!==null?a:Rt(e.type)||"Memo";case M:{var r=e,i=r._payload,o=r._init;try{return Rt(o(i))}catch{return null}}}return null}function rf(e,t,n){var a=t.displayName||t.name||"";return e.displayName||(a!==""?n+"("+a+")":n)}function br(e){return e.displayName||"Context"}function Xe(e){var t=e.tag,n=e.type;switch(t){case ie:return"Cache";case Tt:var a=n;return br(a)+".Consumer";case it:var r=n;return br(r._context)+".Provider";case ot:return"DehydratedFragment";case _e:return rf(n,n.render,"ForwardRef");case Ge:return"Fragment";case ee:return n;case Le:return"Portal";case ue:return"Root";case Fe:return"Text";case At:return Rt(n);case W:return n===gr?"StrictMode":"Mode";case I:return"Offscreen";case Qe:return"Profiler";case Te:return"Scope";case ye:return"Suspense";case Dt:return"SuspenseList";case pe:return"TracingMarker";case ne:case ve:case bt:case gt:case U:case K:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var ul=Ee.ReactDebugCurrentFrame,Zn=null,Ei=!1;function Ir(){{if(Zn===null)return null;var e=Zn._debugOwner;if(e!==null&&typeof e<"u")return Xe(e)}return null}function of(){return Zn===null?"":Ti(Zn)}function Dn(){ul.getCurrentStack=null,Zn=null,Ei=!1}function Jt(e){ul.getCurrentStack=e===null?null:of,Zn=e,Ei=!1}function Iu(){return Zn}function ka(e){Ei=e}function Jn(e){return""+e}function Va(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return Y(e),e;default:return""}}var lf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function sl(e,t){lf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||d("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||d("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function qu(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cl(e){return e._valueTracker}function ro(e){e._valueTracker=null}function uf(e){var t="";return e&&(qu(e)?t=e.checked?"true":"false":t=e.value),t}function qr(e){var t=qu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);Y(e[t]);var a=""+e[t];if(!(e.hasOwnProperty(t)||typeof n>"u"||typeof n.get!="function"||typeof n.set!="function")){var r=n.get,i=n.set;Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(l){Y(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){Y(l),a=""+l},stopTracking:function(){ro(e),delete e[t]}};return o}}function Ci(e){cl(e)||(e._valueTracker=qr(e))}function fl(e){if(!e)return!1;var t=cl(e);if(!t)return!0;var n=t.getValue(),a=uf(e);return a!==n?(t.setValue(a),!0):!1}function Sr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var
2025-07-28 02:13:24 +03:00
Check the render method of \``+e+"`.":""}var xi=["value","defaultValue"];function vl(e){{sl("select",e);for(var t=0;t<xi.length;t++){var n=xi[t];if(e[n]!=null){var a=st(e[n]);e.multiple&&!a?d("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,vn()):!e.multiple&&a&&d("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,vn())}}}}function Tr(e,t,n,a){var r=e.options;if(t){for(var i=n,o={},l=0;l<i.length;l++)o["$"+i[l]]=!0;for(var u=0;u<r.length;u++){var f=o.hasOwnProperty("$"+r[u].value);r[u].selected!==f&&(r[u].selected=f),f&&a&&(r[u].defaultSelected=!0)}}else{for(var v=Jn(Va(n)),S=null,b=0;b<r.length;b++){if(r[b].value===v){r[b].selected=!0,a&&(r[b].defaultSelected=!0);return}S===null&&!r[b].disabled&&(S=r[b])}S!==null&&(S.selected=!0)}}function pl(e,t){return Ve({},t,{value:void 0})}function ml(e,t){var n=e;vl(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!en&&(d("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),en=!0)}function sf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?Tr(n,!!t.multiple,a,!1):t.defaultValue!=null&&Tr(n,!!t.multiple,t.defaultValue,!0)}function Ku(e,t){var n=e,a=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var r=t.value;r!=null?Tr(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?Tr(n,!!t.multiple,t.defaultValue,!0):Tr(n,!!t.multiple,t.multiple?[]:"",!1))}function cf(e,t){var n=e,a=t.value;a!=null&&Tr(n,!!t.multiple,a,!1)}var _m=!1;function ff(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var a=Ve({},t,{value:void 0,defaultValue:void 0,children:Jn(n._wrapperState.initialValue)});return a}function km(e,t){var n=e;sl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!_m&&(d("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Ir()||"A component"),_m=!0);var a=t.value;if(a==null){var r=t.children,i=t.defaultValue;if(r!=null){d("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(i!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(st(r)){if(r.length>1)throw new Error("<textarea> can only have at most one child.");r=r[0]}i=r}}i==null&&(i=""),a=i}n._wrapperState={initialValue:Va(a)}}function Mm(e,t){var n=e,a=Va(t.value),r=Va(t.defaultValue);if(a!=null){var i=Jn(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=Jn(r))}function Lm(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function tS(e,t){Mm(e,t)}var Er="http://www.w3.org/1999/xhtml",nS="http://www.w3.org/1998/Math/MathML",df="http://www.w3.org/2000/svg";function vf(e){switch(e){case"svg":return df;case"math":return nS;default:return Er}}function pf(e,t){return e==null||e===Er?vf(t):e===df&&t==="foreignObject"?Er:e}var aS=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},Zu,Om=aS(function(e,t){if(e.namespaceURI===df&&!("innerHTML"in e)){Zu=Zu||document.createElement("div"),Zu.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=Zu.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),fa=1,Cr=3,pn=8,xr=9,mf=11,Ju=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Cr){n.nodeValue=t;return}}e.textContent=t}
* 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
2025-07-28 02:13:24 +03:00
*/function lC(e){if(!yt)return!1;var t="on"+e,n=t in document;if(!n){var a=document.createElement("div");a.setAttribute(t,"return;"),n=typeof a[t]=="function"}return n}function uC(){Ze("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function Xh(e,t,n,a){Wm(a);var r=xs(t,"onChange");if(r.length>0){var i=new hd("onChange","change",null,n,a);e.push({event:i,listeners:r})}}var Bl=null,$l=null;function sC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function cC(e){var t=[];Xh(t,$l,e,Sf(e)),Xm(fC,t)}function fC(e){vy(e,0)}function Ss(e){var t=Oo(e);if(fl(t))return e}function dC(e,t){if(e==="change")return t}var Qh=!1;yt&&(Qh=lC("input")&&(!document.documentMode||document.documentMode>9));function vC(e,t){Bl=e,$l=t,Bl.attachEvent("onpropertychange",Zh)}function Kh(){Bl&&(Bl.detachEvent("onpropertychange",Zh),Bl=null,$l=null)}function Zh(e){e.propertyName==="value"&&Ss($l)&&cC(e)}function pC(e,t,n){e==="focusin"?(Kh(),vC(t,n)):e==="focusout"&&Kh()}function mC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ss($l)}function hC(e){var t=e.nodeName;return t&&t.toLowerCase()==="input"&&(e.type==="checkbox"||e.type==="radio")}function yC(e,t){if(e==="click")return Ss(t)}function gC(e,t){if(e==="input"||e==="change")return Ss(t)}function bC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||Oe(e,"number",e.value)}function SC(e,t,n,a,r,i,o){var l=n?Oo(n):window,u,f;if(sC(l)?u=dC:Gh(l)?Qh?u=gC:(u=mC,f=pC):hC(l)&&(u=yC),u){var v=u(t,n);if(v){Xh(e,v,a,r);return}}f&&f(t,l,n),t==="focusout"&&bC(l)}function TC(){Yt("onMouseEnter",["mouseout","mouseover"]),Yt("onMouseLeave",["mouseout","mouseover"]),Yt("onPointerEnter",["pointerout","pointerover"]),Yt("onPointerLeave",["pointerout","pointerover"])}function EC(e,t,n,a,r,i,o){var l=t==="mouseover"||t==="pointerover",u=t==="mouseout"||t==="pointerout";if(l&&!VS(a)){var f=a.relatedTarget||a.fromElement;if(f&&(Vi(f)||au(f)))return}if(!(!u&&!l)){var v;if(r.window===r)v=r;else{var S=r.ownerDocument;S?v=S.defaultView||S.parentWindow:v=window}var b,w;if(u){var _=a.relatedTarget||a.toElement;if(b=n,w=_?Vi(_):null,w!==null){var N=Oi(w);(w!==N||w.tag!==ee&&w.tag!==Fe)&&(w=null)}}else b=null,w=n;if(b!==w){var re=Hh,De="onMouseLeave",Se="onMouseEnter",ht="mouse";(t==="pointerout"||t==="pointerover")&&(re=Fh,De="onPointerLeave",Se="onPointerEnter",ht="pointer");var ct=b==null?v:Oo(b),C=w==null?v:Oo(w),j=new re(De,ht+"leave",b,a,r);j.target=ct,j.relatedTarget=C;var x=null,P=Vi(r);if(P===n){var de=new re(Se,ht+"enter",w,a,r);de.target=C,de.relatedTarget=ct,x=de}IC(e,j,x,b,w)}}}function CC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ca=typeof Object.is=="function"?Object.is:CC;function Pl(e,t){if(Ca(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var r=0;r<n.length;r++){var i=n[r];if(!nt.call(t,i)||!Ca(e[i],t[i]))return!1}return!0}function Jh(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xC(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function ey(e,t){for(var n=Jh(e),a=0,r=0;n;){if(n.nodeType===Cr){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=Jh(xC(n))}}function RC(e){var t=e.ownerDocument,n=t&&t.defaultView||window,a=n.getSelection&&n.getSelection();if(!a||a.rangeCount===0)return null;var r=a.anchorNode,i=a.anchorOffset,o=a.focusNode,l=a.focusOffset;try{r.nodeType,o.nodeType}catch{return null}return wC(e,r,i,o,l)}function wC(e,t,n,a,r){var i=0,o=-1,l=-1,u=0,f=0,v=e,S=null;e:for(;;){for(var b=null;v===t&&(n===0||v.nodeType===Cr)&&(o=i+n),v===a&&(r===0||v.nodeType===Cr)&&(l=i+r),v.nodeType===Cr&&(i+=v.nodeValue.length),(b=v.firstChild)!==null;)S=v,v=b;for(;;){if(v===e)break e;if(S===t&&++u===n&&(o=i),S===a&&++f===r&&(l=i),(b=v.nextSibling)!==null)break;v=S,S=v.parentNode}v=b}return o===-1||l===-1?null:{start:o,end:l}}function DC(e,t){var n=e.ownerDocument||document,a=n&&n.defaultView||window;if(a.getSelect
`).replace(XC,"")}function Ms(e,t,n,a){var r=ks(t),i=ks(e);if(i!==r&&(a&&(da||(da=!0,d('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&q))throw new Error("Text content does not match server-rendered HTML.")}function Ty(e){return e.nodeType===xr?e:e.ownerDocument}function QC(){}function Ls(e){e.onclick=QC}function KC(e,t,n,a,r){for(var i in a)if(a.hasOwnProperty(i)){var o=a[i];if(i===Fi)o&&Object.freeze(o),Hm(t,o);else if(i===Gl){var l=o?o[ws]:void 0;l!=null&&Om(t,l)}else if(i===zi)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&Ju(t,o)}else typeof o=="number"&&Ju(t,""+o);else i===Rs||i===ti||i===yy||(ze.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&_s(i,o),i==="onScroll"&&Qt("scroll",t)):o!=null&&ga(t,i,o,r))}}function ZC(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===Fi?Hm(e,o):i===Gl?Om(e,o):i===zi?Ju(e,o):ga(e,i,o,a)}}function JC(e,t,n,a){var r,i=Ty(n),o,l=a;if(l===Er&&(l=vf(e)),l===Er){if(r=Ri(e,t),!r&&e!==e.toLowerCase()&&d("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",e),e==="script"){var u=i.createElement("div");u.innerHTML="<script><\/script>";var f=u.firstChild;o=u.removeChild(f)}else if(typeof t.is=="string")o=i.createElement(e,{is:t.is});else if(o=i.createElement(e),e==="select"){var v=o;t.multiple?v.multiple=!0:t.size&&(v.size=t.size)}}else o=i.createElementNS(l,e);return l===Er&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!nt.call(kd,e)&&(kd[e]=!0,d("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",e)),o}function ex(e,t){return Ty(t).createTextNode(e)}function tx(e,t,n,a){var r=Ri(t,n);Ds(t,n);var i;switch(t){case"dialog":Qt("cancel",e),Qt("close",e),i=n;break;case"iframe":case"object":case"embed":Qt("load",e),i=n;break;case"video":case"audio":for(var o=0;o<Wl.length;o++)Qt(Wl[o],e);i=n;break;case"source":Qt("error",e),i=n;break;case"img":case"image":case"link":Qt("error",e),Qt("load",e),i=n;break;case"details":Qt("toggle",e),i=n;break;case"input":Qu(e,n),i=dl(e,n),Qt("invalid",e);break;case"option":Ut(e,n),i=n;break;case"select":ml(e,n),i=pl(e,n),Qt("invalid",e);break;case"textarea":km(e,n),i=ff(e,n),Qt("invalid",e);break;default:i=n}switch(gf(t,i),KC(t,e,a,i,r),t){case"input":Ci(e),D(e,n,!1);break;case"textarea":Ci(e),Lm(e);break;case"option":It(e,n);break;case"select":sf(e,n);break;default:typeof i.onClick=="function"&&Ls(e);break}}function nx(e,t,n,a,r){Ds(t,a);var i=null,o,l;switch(t){case"input":o=dl(e,n),l=dl(e,a),i=[];break;case"select":o=pl(e,n),l=pl(e,a),i=[];break;case"textarea":o=ff(e,n),l=ff(e,a),i=[];break;default:o=n,l=a,typeof o.onClick!="function"&&typeof l.onClick=="function"&&Ls(e);break}gf(t,l);var u,f,v=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===Fi){var S=o[u];for(f in S)S.hasOwnProperty(f)&&(v||(v={}),v[f]="")}else u===Gl||u===zi||u===Rs||u===ti||u===yy||(ze.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var b=l[u],w=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||b===w||b==null&&w==null))if(u===Fi)if(b&&Object.freeze(b),w){for(f in w)w.hasOwnProperty(f)&&(!b||!b.hasOwnProperty(f))&&(v||(v={}),v[f]="");for(f in b)b.hasOwnProperty(f)&&w[f]!==b[f]&&(v||(v={}),v[f]=b[f])}else v||(i||(i=[]),i.push(u,v)),v=b;else if(u===Gl){var _=b?b[ws]:void 0,N=w?w[ws]:void 0;_!=null&&N!==_&&(i=i||[]).push(u,_)}else u===zi?(typeof b=="string"||typeof b=="number")&&(i=i||[]).push(u,""+b):u===Rs||u===ti||(ze.hasOwnProperty(u)?(b!=null&&(typeof b!="function"&&_s(u,b),u==="onScroll"&&Qt("scroll",e)),!i&&w!==b&&(i=[])):(i=i||[]).push(u,b))}return v&&(ES(v,l[Fi]),(i=i||[]).push(Fi,v)),i}function ax(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=Ri(n,a),o=Ri(n,r);switch(ZC(e,t,i,o),n){case"input":h(e,r);break;case"textarea":Mm(e,r);break;case"select":Ku(e,r);break}}function rx(e){{var t=e.toLowerCase();return es.hasOwnProperty(t)&&es[t]||null}}function ix(e,t,n,a,r,i,o){var l,u;switch(l=Ri(t,n),Ds(t,n),t){case"dialog":Qt("cancel
* Move code with side effects to componentDidMount, and set initial state in the constructor.
2025-07-28 02:13:24 +03:00
Please update the following components: %s`,o)}if(a.size>0){var l=Wi(a);d(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
2025-07-28 02:13:24 +03:00
Please update the following components: %s`,l)}if(i.size>0){var u=Wi(i);d(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
2025-07-28 02:13:24 +03:00
Please update the following components: %s`,u)}if(e.size>0){var f=Wi(e);ce(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move code with side effects to componentDidMount, and set initial state in the constructor.
* Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
2025-07-28 02:13:24 +03:00
Please update the following components: %s`,f)}if(n.size>0){var v=Wi(n);ce(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
2025-07-28 02:13:24 +03:00
Please update the following components: %s`,v)}if(r.size>0){var S=Wi(r);ce(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
* Move data fetching code or side effects to componentDidUpdate.
* Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
2025-07-28 02:13:24 +03:00
Please update the following components: %s`,S)}};var Gs=new Map,qy=new Set;Ia.recordLegacyContextWarning=function(e,t){var n=V1(e);if(n===null){d("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!qy.has(e.type)){var a=Gs.get(n);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],Gs.set(n,a)),a.push(e))}},Ia.flushLegacyContextWarning=function(){Gs.forEach(function(e,t){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(i){a.add(Xe(i)||"Component"),qy.add(i.type)});var r=Wi(a);try{Jt(n),d(`Legacy context API has been detected within a strict-mode tree.
The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
Please update the following components: %s
2025-07-28 02:13:24 +03:00
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)}finally{Dn()}}})},Ia.discardPendingWarnings=function(){ru=[],iu=[],ou=[],lu=[],uu=[],su=[],Gs=new Map}}var av,rv,iv,ov,lv,Gy=function(e,t){};av=!1,rv=!1,iv={},ov={},lv={},Gy=function(e,t){if(!(e===null||typeof e!="object")&&!(!e._store||e._store.validated||e.key!=null)){if(typeof e._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");e._store.validated=!0;var n=Xe(t)||"Component";ov[n]||(ov[n]=!0,d('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function B1(e){return e.prototype&&e.prototype.isReactComponent}function cu(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&on||lt)&&!(n._owner&&n._self&&n._owner.stateNode!==n._self)&&!(n._owner&&n._owner.tag!==ne)&&!(typeof n.type=="function"&&!B1(n.type))&&n._owner){var r=Xe(e)||"Component";iv[r]||(d('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',r,a),iv[r]=!0)}if(n._owner){var i=n._owner,o;if(i){var l=i;if(l.tag!==ne)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");o=l.stateNode}if(!o)throw new Error("Missing owner for string ref "+a+". This error is likely caused by a bug in React. Please file an issue.");var u=o;Yn(a,"ref");var f=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f)return t.ref;var v=function(S){var b=u.refs;S===null?delete b[f]:b[f]=S};return v._stringRef=f,v}else{if(typeof a!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+a+`) but no owner was set. This could happen for one of the following reasons:
1. You may be adding a ref to a function component
2. You may be adding a ref to a component that was not created inside a component's render method
3. You have multiple copies of React loaded
2025-07-28 02:13:24 +03:00
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return a}function Xs(e,t){var n=Object.prototype.toString.call(t);throw new Error("Objects are not valid as a React child (found: "+(n==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":n)+"). If you meant to render a collection of children, use an array instead.")}function Qs(e){{var t=Xe(e)||"Component";if(lv[t])return;lv[t]=!0,d("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function Xy(e){var t=e._payload,n=e._init;return n(t)}function Qy(e){function t(C,j){if(e){var x=C.deletions;x===null?(C.deletions=[j],C.flags|=wi):x.push(j)}}function n(C,j){if(!e)return null;for(var x=j;x!==null;)t(C,x),x=x.sibling;return null}function a(C,j){for(var x=new Map,P=j;P!==null;)P.key!==null?x.set(P.key,P):x.set(P.index,P),P=P.sibling;return x}function r(C,j){var x=to(C,j);return x.index=0,x.sibling=null,x}function i(C,j,x){if(C.index=x,!e)return C.flags|=Jm,j;var P=C.alternate;if(P!==null){var de=P.index;return de<j?(C.flags|=_n,j):de}else return C.flags|=_n,j}function o(C){return e&&C.alternate===null&&(C.flags|=_n),C}function l(C,j,x,P){if(j===null||j.tag!==Fe){var de=nm(x,C.mode,P);return de.return=C,de}else{var oe=r(j,x);return oe.return=C,oe}}function u(C,j,x,P){var de=x.type;if(de===Da)return v(C,j,x.props.children,P,x.key);if(j!==null&&(j.elementType===de||t0(j,x)||typeof de=="object"&&de!==null&&de.$$typeof===M&&Xy(de)===j.type)){var oe=r(j,x.props);return oe.ref=cu(C,j,x),oe.return=C,oe._debugSource=x._source,oe._debugOwner=x._owner,oe}var He=tm(x,C.mode,P);return He.ref=cu(C,j,x),He.return=C,He}function f(C,j,x,P){if(j===null||j.tag!==Le||j.stateNode.containerInfo!==x.containerInfo||j.stateNode.implementation!==x.implementation){var de=am(x,C.mode,P);return de.return=C,de}else{var oe=r(j,x.children||[]);return oe.return=C,oe}}function v(C,j,x,P,de){if(j===null||j.tag!==Ge){var oe=yi(x,C.mode,P,de);return oe.return=C,oe}else{var He=r(j,x);return He.return=C,He}}function S(C,j,x){if(typeof j=="string"&&j!==""||typeof j=="number"){var P=nm(""+j,C.mode,x);return P.return=C,P}if(typeof j=="object"&&j!==null){switch(j.$$typeof){case Rn:{var de=tm(j,C.mode,x);return de.ref=cu(C,null,j),de.return=C,de}case wn:{var oe=am(j,C.mode,x);return oe.return=C,oe}case M:{var He=j._payload,qe=j._init;return S(C,qe(He),x)}}if(st(j)||$t(j)){var Ft=yi(j,C.mode,x,null);return Ft.return=C,Ft}Xs(C,j)}return typeof j=="function"&&Qs(C),null}function b(C,j,x,P){var de=j!==null?j.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return de!==null?null:l(C,j,""+x,P);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Rn:return x.key===de?u(C,j,x,P):null;case wn:return x.key===de?f(C,j,x,P):null;case M:{var oe=x._payload,He=x._init;return b(C,j,He(oe),P)}}if(st(x)||$t(x))return de!==null?null:v(C,j,x,P,null);Xs(C,x)}return typeof x=="function"&&Qs(C),null}function w(C,j,x,P,de){if(typeof P=="string"&&P!==""||typeof P=="number"){var oe=C.get(x)||null;return l(j,oe,""+P,de)}if(typeof P=="object"&&P!==null){switch(P.$$typeof){case Rn:{var He=C.get(P.key===null?x:P.key)||null;return u(j,He,P,de)}case wn:{var qe=C.get(P.key===null?x:P.key)||null;return f(j,qe,P,de)}case M:var Ft=P._payload,Et=P._init;return w(C,j,x,Et(Ft),de)}if(st(P)||$t(P)){var fn=C.get(x)||null;return v(j,fn,P,de,null)}Xs(j,P)}return typeof P=="function"&&Qs(j),null}function _(C,j,x){{if(typeof C!="object"||C===null)return j;switch(C.$$typeof){case Rn:case wn:Gy(C,x);var P=C.key;if(typeof P!="string")break;if(j===null){j=new Set,j.add(P);break}if(!j.has(P)){j.add(P);break}d("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",P);break;case M:var de=C._payload,oe=C._init;_(oe(de),j,x);break}}return j}function N(C,j,x,P){for(var
`,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 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-07-28 02:13:24 +03:00
`,t,n)}}}function Xn(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
1. You might have mismatching versions of React and the renderer (such as React DOM)
2. You might be breaking the Rules of Hooks
3. You might have more than one copy of React in the same app
2025-07-28 02:13:24 +03:00
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Dv(e,t){if(wv)return!1;if(t===null)return d("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",H),!1;e.length!==t.length&&d(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
2025-07-28 02:13:24 +03:00
Incoming: %s`,H,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!Ca(e[n],t[n]))return!1;return!0}function Io(e,t,n,a,r,i){Gi=i,zt=t,Na=e!==null?e._debugHookTypes:null,ci=-1,wv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=B,e!==null&&e.memoizedState!==null?se.current=Og:Na!==null?se.current=Lg:se.current=Mg;var o=n(a,r);if(mu){var l=0;do{if(mu=!1,hu=0,l>=aR)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,wv=!1,bn=null,Sn=null,t.updateQueue=null,ci=-1,se.current=Ag,o=n(a,r)}while(mu)}se.current=Cc,t._debugHookTypes=Na;var u=bn!==null&&bn.next!==null;if(Gi=B,zt=null,bn=null,Sn=null,H=null,Na=null,ci=-1,e!==null&&(e.flags&Rr)!==(t.flags&Rr)&&(e.mode&pt)!==Me&&d("Internal React error: Expected static flag was missing. Please notify the React team."),cc=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o}function qo(){var e=hu!==0;return hu=0,e}function fg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&ir)!==Me?t.flags&=-50333701:t.flags&=-2053,e.lanes=fs(e.lanes,n)}function dg(){if(se.current=Cc,cc){for(var e=zt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}cc=!1}Gi=B,zt=null,bn=null,Sn=null,Na=null,ci=-1,H=null,Rg=!1,mu=!1,hu=0}function cr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Sn===null?zt.memoizedState=Sn=e:Sn=Sn.next=e,Sn}function ja(){var e;if(bn===null){var t=zt.alternate;t!==null?e=t.memoizedState:e=null}else e=bn.next;var n;if(Sn===null?n=zt.memoizedState:n=Sn.next,n!==null)Sn=n,n=Sn.next,bn=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");bn=e;var a={memoizedState:bn.memoizedState,baseState:bn.baseState,baseQueue:bn.baseQueue,queue:bn.queue,next:null};Sn===null?zt.memoizedState=Sn=a:Sn=Sn.next=a}return Sn}function vg(){return{lastEffect:null,stores:null}}function _v(e,t){return typeof t=="function"?t(e):t}function kv(e,t,n){var a=cr(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:B,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=uR.bind(null,zt,i);return[a.memoizedState,o]}function Mv(e,t,n){var a=ja(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=bn,o=i.baseQueue,l=r.pending;if(l!==null){if(o!==null){var u=o.next,f=l.next;o.next=f,l.next=u}i.baseQueue!==o&&d("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=o=l,r.pending=null}if(o!==null){var v=o.next,S=i.baseState,b=null,w=null,_=null,N=v;do{var re=N.lane;if(Co(Gi,re)){if(_!==null){var Se={lane:Ln,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};_=_.next=Se}if(N.hasEagerState)S=N.eagerState;else{var ht=N.action;S=e(S,ht)}}else{var De={lane:re,action:N.action,hasEagerState:N.hasEagerState,eagerState:N.eagerState,next:null};_===null?(w=_=De,b=S):_=_.next=De,zt.lanes=tt(zt.lanes,re),Hu(re)}N=N.next}while(N!==null&&N!==v);_===null?b=S:_.next=w,Ca(S,a.memoizedState)||Ru(),a.memoizedState=S,a.baseState=b,a.baseQueue=_,r.lastRenderedState=S}var ct=r.interleaved;if(ct!==null){var C=ct;do{var j=C.lane;zt.lanes=tt(zt.lanes,j),Hu(j),C=C.next}while(C!==ct)}else o===null&&(r.lanes=B);var x=r.dispatch;return[a.memoizedState,x]}function Lv(e,t,n){var a=ja(),r=a.queue;if(r===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");r.lastRenderedReducer=e;var i=r.dispatch,o=r.pending,l=a.memoizedState;if(o!==null){r.pending=null;var u=o.next,f=u;do{var v=f.action;l=e(l,v),f=f.next}while(f!==u);Ca(l,a.memoizedState)||Ru(),a.memoizedState=l,a.baseQueue===null&&(a.baseState=l),r.lastRenderedState=l}return[l,i]}function h_(e,t,n){}function y_(e,t,n){}function Ov(e,t,n){var a=zt,r=cr(),i,o=jn();if(o){if(n===void 0)throw new Error("Missing getServerSnapshot, which is r
2025-07-28 02:13:24 +03:00
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),t.contextTypes&&!Tu.has(t)&&(e.mode&on)===Me&&(Tu.add(t),d(`%s uses the legacy contextTypes API which is no longer supported and will be removed in the next major release. Use React.createContext() with static contextType instead.
2025-07-28 02:13:24 +03:00
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),a.contextTypes&&d("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",r),t.contextType&&t.contextTypes&&!ap.has(t)&&(ap.add(t),d("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",r)),typeof a.componentShouldUpdate=="function"&&d("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",r),t.prototype&&t.prototype.isPureReactComponent&&typeof a.shouldComponentUpdate<"u"&&d("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Rt(t)||"A pure component"),typeof a.componentDidUnmount=="function"&&d("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",r),typeof a.componentDidReceiveProps=="function"&&d("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",r),typeof a.componentWillRecieveProps=="function"&&d("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",r),typeof a.UNSAFE_componentWillRecieveProps=="function"&&d("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",r);var o=a.props!==n;a.props!==void 0&&o&&d("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",r,r),a.defaultProps&&d("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",r,r),typeof a.getSnapshotBeforeUpdate=="function"&&typeof a.componentDidUpdate!="function"&&!Jv.has(t)&&(Jv.add(t),d("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Rt(t))),typeof a.getDerivedStateFromProps=="function"&&d("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof a.getDerivedStateFromError=="function"&&d("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof t.getSnapshotBeforeUpdate=="function"&&d("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",r);var l=a.state;l&&(typeof l!="object"||st(l))&&d("%s.state: must be set to an object or null",r),typeof a.getChildContext=="function"&&typeof t.childContextTypes!="object"&&d("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",r)}}function $g(e,t){t.updater=op,e.stateNode=t,JS(t,e),t._reactInternalInstance=Qv}function Pg(e,t,n){var a=!1,r=xa,i=xa,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===c&&o._context===void 0;if(!l&&!rp.has(t)){rp.add(t);var u="";o===void 0?u=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof o!="object"?u=" However, it is set to a "+typeof o+".":o.$$typeof===F?u=" Did you accidentally pass the Context.Provider instead?":o._context!==void 0?u=" Did you accidentally pass the Context.Consumer instead?":u=" However, it is set to an object with keys {"+Object.keys(o).join(", ")+"}.",d("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Rt(t)||"Component",u)}}
%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:
2025-07-28 02:13:24 +03:00
https://reactjs.org/link/unsafe-component-lifecycles`,re,De,w!==null?`
`+w:"",_!==null?`
`+_:"",N!==null?`
`+N:""))}}}return a&&Oy(e,r,i),v}function pR(e,t){var n=t.state;typeof t.componentWillMount=="function"&&t.componentWillMount(),typeof t.UNSAFE_componentWillMount=="function"&&t.UNSAFE_componentWillMount(),n!==t.state&&(d("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Xe(e)||"Component"),op.enqueueReplaceState(t,t.state,null))}function Yg(e,t,n,a){var r=t.state;if(typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,a),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,a),t.state!==r){{var i=Xe(e)||"Component";Kv.has(i)||(Kv.add(i),d("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i))}op.enqueueReplaceState(t,t.state,null)}}function lp(e,t,n,a){vR(e,t,n);var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},hv(e);var i=t.contextType;if(typeof i=="object"&&i!==null)r.context=mn(i);else{var o=Ao(e,t,!0);r.context=No(e,o)}{if(r.state===n){var l=Rt(t)||"Component";np.has(l)||(np.add(l),d("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",l))}e.mode&on&&Ia.recordLegacyContextWarning(e,r),Ia.recordUnsafeLifecycleWarnings(e,r)}r.state=e.memoizedState;var u=t.getDerivedStateFromProps;if(typeof u=="function"&&(ip(e,t,u,n),r.state=e.memoizedState),typeof t.getDerivedStateFromProps!="function"&&typeof r.getSnapshotBeforeUpdate!="function"&&(typeof r.UNSAFE_componentWillMount=="function"||typeof r.componentWillMount=="function")&&(pR(e,r),ic(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var f=wt;f|=Li,(e.mode&ir)!==Me&&(f|=Xr),e.flags|=f}}function mR(e,t,n,a){var r=e.stateNode,i=e.memoizedProps;r.props=i;var o=r.context,l=t.contextType,u=xa;if(typeof l=="object"&&l!==null)u=mn(l);else{var f=Ao(e,t,!0);u=No(e,f)}var v=t.getDerivedStateFromProps,S=typeof v=="function"||typeof r.getSnapshotBeforeUpdate=="function";!S&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&Yg(e,r,n,u),ig();var b=e.memoizedState,w=r.state=b;if(ic(e,n,r,a),w=e.memoizedState,i===n&&b===w&&!Vs()&&!oc()){if(typeof r.componentDidMount=="function"){var _=wt;_|=Li,(e.mode&ir)!==Me&&(_|=Xr),e.flags|=_}return!1}typeof v=="function"&&(ip(e,t,v,n),w=e.memoizedState);var N=oc()||Bg(e,t,i,n,b,w,u);if(N){if(!S&&(typeof r.UNSAFE_componentWillMount=="function"||typeof r.componentWillMount=="function")&&(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"){var re=wt;re|=Li,(e.mode&ir)!==Me&&(re|=Xr),e.flags|=re}}else{if(typeof r.componentDidMount=="function"){var De=wt;De|=Li,(e.mode&ir)!==Me&&(De|=Xr),e.flags|=De}e.memoizedProps=n,e.memoizedState=w}return r.props=n,r.state=w,r.context=u,N}function hR(e,t,n,a,r){var i=t.stateNode;rg(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:Xa(t.type,o);i.props=l;var u=t.pendingProps,f=i.context,v=n.contextType,S=xa;if(typeof v=="object"&&v!==null)S=mn(v);else{var b=Ao(t,n,!0);S=No(t,b)}var w=n.getDerivedStateFromProps,_=typeof w=="function"||typeof i.getSnapshotBeforeUpdate=="function";!_&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||f!==S)&&Yg(t,i,a,S),ig();var N=t.memoizedState,re=i.state=N;if(ic(t,a,i,r),re=t.memoizedState,o===u&&N===re&&!Vs()&&!oc())return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=wt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||N!==e.memoizedState)&&(t.flags|=ho),!1;typeof w=="function"&&(ip(t,n,w,a),re=t.memoizedState);var De=oc()||Bg(t,n,l,a,N,re,S)||fe;return De?(!_&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&(type
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var v=Xe(e)||"Anonymous";f="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+v+".")}var S=u+`
`+o+`
2025-07-28 02:13:24 +03:00
`+(""+f);console.error(S)}catch(b){setTimeout(function(){throw b})}}var gR=typeof WeakMap=="function"?WeakMap:Map;function Wg(e,t,n){var a=Nr(Gt,n);a.tag=pv,a.payload={element:null};var r=t.value;return a.callback=function(){cD(r),sp(e,t)},a}function cp(e,t,n){var a=Nr(Gt,n);a.tag=pv;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;a.payload=function(){return r(i)},a.callback=function(){n0(e),sp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(a.callback=function(){n0(e),sp(e,t),typeof r!="function"&&uD(this);var u=t.value,f=t.stack;this.componentDidCatch(u,{componentStack:f!==null?f:""}),typeof r!="function"&&(Sa(e.lanes,$e)||d("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Xe(e)||"Unknown"))}),a}function Ig(e,t,n){var a=e.pingCache,r;if(a===null?(a=e.pingCache=new gR,r=new Set,a.set(t,r)):(r=a.get(t),r===void 0&&(r=new Set,a.set(t,r))),!r.has(n)){r.add(n);var i=fD.bind(null,e,t,n);$a&&zu(e,n),t.then(i,i)}}function bR(e,t,n,a){var r=e.updateQueue;if(r===null){var i=new Set;i.add(n),e.updateQueue=i}else r.add(n)}function SR(e,t){var n=e.tag;if((e.mode&pt)===Me&&(n===ve||n===_e||n===K)){var a=e.alternate;a?(e.updateQueue=a.updateQueue,e.memoizedState=a.memoizedState,e.lanes=a.lanes):(e.updateQueue=null,e.memoizedState=null)}}function qg(e){var t=e;do{if(t.tag===ye&&eR(t))return t;t=t.return}while(t!==null);return null}function Gg(e,t,n,a,r){if((e.mode&pt)===Me){if(e===t)e.flags|=Ba;else{if(e.flags|=_t,n.flags|=kf,n.flags&=-52805,n.tag===ne){var i=n.alternate;if(i===null)n.tag=bt;else{var o=Nr(Gt,$e);o.tag=tc,li(n,o,$e)}}n.lanes=tt(n.lanes,$e)}return e}return e.flags|=Ba,e.lanes=r,e}function TR(e,t,n,a,r){if(n.flags|=rs,$a&&zu(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;SR(n),jn()&&n.mode&pt&&Fy();var o=qg(t);if(o!==null){o.flags&=-257,Gg(o,t,n,e,r),o.mode&pt&&Ig(e,i,r),bR(o,e,i);return}else{if(!PT(r)){Ig(e,i,r),Pp();return}var l=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");a=l}}else if(jn()&&n.mode&pt){Fy();var u=qg(t);if(u!==null){(u.flags&Ba)===Ae&&(u.flags|=Di),Gg(u,t,n,e,r),nv(Xi(a,n));return}}a=Xi(a,n),eD(a);var f=t;do{switch(f.tag){case ue:{var v=a;f.flags|=Ba;var S=_l(r);f.lanes=tt(f.lanes,S);var b=Wg(f,v,S);yv(f,b);return}case ne:var w=a,_=f.type,N=f.stateNode;if((f.flags&_t)===Ae&&(typeof _.getDerivedStateFromError=="function"||N!==null&&typeof N.componentDidCatch=="function"&&!qb(N))){f.flags|=Ba;var re=_l(r);f.lanes=tt(f.lanes,re);var De=cp(f,w,re);yv(f,De);return}break}f=f.return}while(f!==null)}function ER(){return null}var Eu=Ee.ReactCurrentOwner,Qa=!1,fp,Cu,dp,vp,pp,Qi,mp,Mc,xu;fp={},Cu={},dp={},vp={},pp={},Qi=!1,mp={},Mc={},xu={};function ta(e,t,n,a){e===null?t.child=Ky(t,null,n,a):t.child=zo(t,e.child,n,a)}function CR(e,t,n,a){t.child=zo(t,e.child,null,a),t.child=zo(t,null,n,a)}function Xg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Ya(i,a,"prop",Rt(n))}var o=n.render,l=t.ref,u,f;Vo(t,r),El(t);{if(Eu.current=t,ka(!0),u=Io(e,t,o,a,l,r),f=qo(),t.mode&on){Mn(!0);try{u=Io(e,t,o,a,l,r),f=qo()}finally{Mn(!1)}}ka(!1)}return bo(),e!==null&&!Qa?(fg(e,t,r),jr(e,t,r)):(jn()&&f&&Qd(t),t.flags|=mo,ta(e,t,u,r),t.child)}function Qg(e,t,n,a,r){if(e===null){var i=n.type;if(_D(i)&&n.compare===null&&n.defaultProps===void 0){var o=i;return o=tl(i),t.tag=K,t.type=o,gp(t,i),Kg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Ya(l,a,"prop",Rt(i)),n.defaultProps!==void 0){var u=Rt(i)||"Unknown";xu[u]||(d("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),xu[u]=!0)}}var f=em(n.type,null,a,t,t.mode,r);return f.ref=t.ref,f.return=t,t.child=f,f}{var v=n.type,S=v.propTypes;S&&Ya(S,a,"prop",Rt(v))}var b=e.child,w=xp(e,r);if(!w){var _=b.memoizedProps,N=n.compare;if(N=N!==null?N:Pl,N(_,a)&&e.ref===t.
2025-07-28 02:13:24 +03:00
Check the render method of \``+a+"`.");var r=a||"",i=e._debugSource;i&&(r=i.fileName+":"+i.lineNumber),pp[r]||(pp[r]=!0,d("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",n))}if(t.defaultProps!==void 0){var o=Rt(t)||"Unknown";xu[o]||(d("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),xu[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=Rt(t)||"Unknown";vp[l]||(d("%s: Function components do not support getDerivedStateFromProps.",l),vp[l]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=Rt(t)||"Unknown";dp[u]||(d("%s: Function components do not support contextType.",u),dp[u]=!0)}}}var bp={dehydrated:null,treeContext:null,retryLane:Ln};function Sp(e){return{baseLanes:e,cachePool:ER(),transitions:null}}function AR(e,t){var n=null;return{baseLanes:tt(e.baseLanes,t),cachePool:n,transitions:e.transitions}}function NR(e,t,n,a){if(t!==null){var r=t.memoizedState;if(r===null)return!1}return Tv(e,vu)}function jR(e,t){return fs(e.childLanes,t)}function ab(e,t,n){var a=t.pendingProps;YD(t)&&(t.flags|=_t);var r=qa.current,i=!1,o=(t.flags&_t)!==Ae;if(o||NR(r,e)?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(r=J1(r,cg)),r=$o(r),si(t,r),e===null){tv(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return VR(t,u)}var f=a.children,v=a.fallback;if(i){var S=UR(t,f,v,n),b=t.child;return b.memoizedState=Sp(n),t.memoizedState=bp,S}else return Tp(t,f)}else{var w=e.memoizedState;if(w!==null){var _=w.dehydrated;if(_!==null)return BR(e,t,o,a,_,w,n)}if(i){var N=a.fallback,re=a.children,De=zR(e,t,re,N,n),Se=t.child,ht=e.child.memoizedState;return Se.memoizedState=ht===null?Sp(n):AR(ht,n),Se.childLanes=jR(e,n),t.memoizedState=bp,De}else{var ct=a.children,C=HR(e,t,ct,n);return t.memoizedState=null,C}}}function Tp(e,t,n){var a=e.mode,r={mode:"visible",children:t},i=Ep(r,a);return i.return=e,e.child=i,i}function UR(e,t,n,a){var r=e.mode,i=e.child,o={mode:"hidden",children:t},l,u;return(r&pt)===Me&&i!==null?(l=i,l.childLanes=B,l.pendingProps=o,e.mode&Ht&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=yi(n,r,a,null)):(l=Ep(o,r),u=yi(n,r,a,null)),l.return=e,u.return=e,l.sibling=u,e.child=l,u}function Ep(e,t,n){return r0(e,t,B,null)}function rb(e,t){return to(e,t)}function HR(e,t,n,a){var r=e.child,i=r.sibling,o=rb(r,{mode:"visible",children:n});if((t.mode&pt)===Me&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=wi):l.push(i)}return t.child=o,o}function zR(e,t,n,a,r){var i=t.mode,o=e.child,l=o.sibling,u={mode:"hidden",children:n},f;if((i&pt)===Me&&t.child!==o){var v=t.child;f=v,f.childLanes=B,f.pendingProps=u,t.mode&Ht&&(f.actualDuration=0,f.actualStartTime=-1,f.selfBaseDuration=o.selfBaseDuration,f.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else f=rb(o,u),f.subtreeFlags=o.subtreeFlags&Rr;var S;return l!==null?S=to(l,a):(S=yi(a,i,r,null),S.flags|=_n),S.return=t,f.return=t,f.sibling=S,t.child=f,S}function Lc(e,t,n,a){a!==null&&nv(a),zo(t,e.child,null,n);var r=t.pendingProps,i=r.children,o=Tp(t,i);return o.flags|=_n,t.memoizedState=null,o}function FR(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Ep(o,i),u=yi(a,i,r,null);return u.flags|=_n,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&pt)!==Me&&zo(t,e.child,null,r),u}function VR(e,t,n){return(e.mode&pt)===Me?(d("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),e.lanes=$e):Vd(t)?e.lanes=Ni:e.lanes=Ma,null}function BR(e,t,n,a,r,i,o){if(n)if(t.flags&Di){t.flags&=-257;var C=up(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Lc(e,t,o,C)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=_t,null;var j=a.children,x=a.fall
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
2025-07-28 02:13:24 +03:00
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:f=" You returned: "+l,d("%s must not return anything besides a function, which is used for clean-up.%s",u,f)}}}i=i.next}while(i!==r)}}function uw(e,t){if((t.flags&wt)!==Ae)switch(t.tag){case Qe:{var n=t.stateNode.passiveEffectDuration,a=t.memoizedProps,r=a.id,i=a.onPostCommit,o=Ug(),l=t.alternate===null?"mount":"update";jg()&&(l="nested-update"),typeof i=="function"&&i(r,l,n,o);var u=t.return;e:for(;u!==null;){switch(u.tag){case ue:var f=u.stateNode;f.passiveEffectDuration+=n;break e;case Qe:var v=u.stateNode;v.passiveEffectDuration+=n;break e}u=u.return}break}}}function sw(e,t,n,a){if((n.flags&Tl)!==Ae)switch(n.tag){case ve:case _e:case K:{if(!zn)if(n.mode&Ht)try{vr(),di(gn|yn,n)}finally{dr(n)}else di(gn|yn,n);break}case ne:{var r=n.stateNode;if(n.flags&wt&&!zn)if(t===null)if(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xe(n)||"instance"),r.state!==n.memoizedState&&d("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Xe(n)||"instance")),n.mode&Ht)try{vr(),r.componentDidMount()}finally{dr(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:Xa(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xe(n)||"instance"),r.state!==n.memoizedState&&d("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Xe(n)||"instance")),n.mode&Ht)try{vr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{dr(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!Qi&&(r.props!==n.memoizedProps&&d("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Xe(n)||"instance"),r.state!==n.memoizedState&&d("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Xe(n)||"instance")),og(n,l,r));break}case ue:{var u=n.updateQueue;if(u!==null){var f=null;if(n.child!==null)switch(n.child.tag){case ee:f=n.child.stateNode;break;case ne:f=n.child.stateNode;break}og(n,u,f)}break}case ee:{var v=n.stateNode;if(t===null&&n.flags&wt){var S=n.type,b=n.memoizedProps;Dx(v,S,b)}break}case Fe:break;case Le:break;case Qe:{{var w=n.memoizedProps,_=w.onCommit,N=w.onRender,re=n.stateNode.effectDuration,De=Ug(),Se=t===null?"mount":"update";jg()&&(Se="nested-update"),typeof N=="function"&&N(n.memoizedProps.id,Se,n.actualDuration,n.treeBaseDuration,n.actualStartTime,De);{typeof _=="function"&&_(n.memoizedProps.id,Se,re,De),oD(n);var ht=n.return;e:for(;ht!==null;){switch(ht.tag){case ue:var ct=ht.stateNode;ct.effectDuration+=re;break e;case Qe:var C=ht.stateNode;C.effectDuration+=re;break e}ht=ht.return}}}break}case ye:{yw(e,n);break}case Dt:case bt:case Te:case I:case Je:case pe:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}zn||n.flags&_i&&Tb(n)}function cw(e){switch(e.tag){case ve:case _e:case K:{if(e.mode&Ht)try{vr(),gb(e,e.return)}finally{dr(e)}else gb(e,e.return);break}case ne:{var t=e.stateNode;typeof t.componentDidMount=="function"&&aw(e,
Error message:
2025-07-28 02:13:24 +03:00
%s`,n)}function fD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=aa();Sh(e,n),SD(e),na===e&&Co(En,n)&&(Cn===ku||Cn===jc&&hh(En)&&kn()-Np<Nb?Ji(e,B):Hc=tt(Hc,n)),ha(e,r)}function Xb(e,t){t===Ln&&(t=Ww(e));var n=aa(),a=va(e,t);a!==null&&(kl(a,t,n),ha(a,n))}function dD(e){var t=e.memoizedState,n=Ln;t!==null&&(n=t.retryLane),Xb(e,n)}function vD(e,t){var n=Ln,a;switch(e.tag){case ye:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case Dt:a=e.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}a!==null&&a.delete(t),Xb(e,n)}function pD(e){return e<120?120:e<480?480:e<1080?1080:e<1920?1920:e<3e3?3e3:e<4320?4320:Bw(e/1960)*1960}function mD(){if(ju>Pw)throw ju=0,zp=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Jo>Yw&&(Jo=0,Vc=null,d("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function hD(){Ia.flushLegacyContextWarning(),Ia.flushPendingUnsafeLifecycleWarnings()}function Qb(e,t){Jt(e),Wc(e,Xr,jw),t&&Wc(e,Of,Uw),Wc(e,Xr,Aw),t&&Wc(e,Of,Nw),Dn()}function Wc(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==Ae?a=a.child:((a.flags&t)!==Ae&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var Ic=null;function Kb(e){{if((mt&Bn)!==Tn||!(e.mode&pt))return;var t=e.tag;if(t!==gt&&t!==ue&&t!==ne&&t!==ve&&t!==_e&&t!==U&&t!==K)return;var n=Xe(e)||"ReactComponent";if(Ic!==null){if(Ic.has(n))return;Ic.add(n)}else Ic=new Set([n]);var a=Zn;try{Jt(e),d("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{a?Jt(e):Dn()}}}var Yp;{var yD=null;Yp=function(e,t,n){var a=i0(yD,t);try{return cb(e,t,n)}catch(i){if(k1()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(Js(),dg(),hb(e,t),i0(t,a),t.mode&Ht&&Iv(t),wf(null,cb,null,e,t,n),KS()){var r=Df();typeof r=="object"&&r!==null&&r._suppressLogging&&typeof i=="object"&&i!==null&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}}}var Zb=!1,Wp;Wp=new Set;function gD(e){if(Ei&&!lR())switch(e.tag){case ve:case _e:case K:{var t=nn&&Xe(nn)||"Unknown",n=t;if(!Wp.has(n)){Wp.add(n);var a=Xe(e)||"Unknown";d("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",a,t,t)}break}case ne:{Zb||(d("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Zb=!0);break}}}function zu(e,t){if($a){var n=e.memoizedUpdaters;n.forEach(function(a){Th(e,a,t)})}}var Ip={};function qp(e,t){{var n=er.current;return n!==null?(n.push(t),Ip):lh(e,t)}}function Jb(e){if(e!==Ip)return iT(e)}function e0(){return er.current!==null}function bD(e){{if(e.mode&pt){if(!Lb())return}else if(!Vw()||mt!==Tn||e.tag!==ve&&e.tag!==_e&&e.tag!==K)return;if(er.current===null){var t=Zn;try{Jt(e),d(`An update to %s inside a test was not wrapped in act(...).
When testing, code that causes React state updates should be wrapped into act(...):
act(() => {
/* fire events that update state */
});
/* assert on the output */
2025-07-28 02:13:24 +03:00
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Xe(e))}finally{t?Jt(e):Dn()}}}}function SD(e){e.tag!==ri&&Lb()&&er.current===null&&d(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
When testing, code that resolves suspended data should be wrapped into act(...):
act(() => {
/* finish loading suspended data */
});
/* assert on the output */
2025-07-28 02:13:24 +03:00
This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function Fu(e){Hb=e}var Ha=null,el=null,TD=function(e){Ha=e};function tl(e){{if(Ha===null)return e;var t=Ha(e);return t===void 0?e:t.current}}function Gp(e){return tl(e)}function Xp(e){{if(Ha===null)return e;var t=Ha(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=tl(e.render);if(e.render!==n){var a={$$typeof:m,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function t0(e,t){{if(Ha===null)return!1;var n=e.elementType,a=t.type,r=!1,i=typeof a=="object"&&a!==null?a.$$typeof:null;switch(e.tag){case ne:{typeof a=="function"&&(r=!0);break}case ve:{(typeof a=="function"||i===M)&&(r=!0);break}case _e:{(i===m||i===M)&&(r=!0);break}case U:case K:{(i===T||i===M)&&(r=!0);break}default:return!1}if(r){var o=Ha(n);if(o!==void 0&&o===Ha(a))return!0}return!1}}function n0(e){{if(Ha===null||typeof WeakSet!="function")return;el===null&&(el=new WeakSet),el.add(e)}}var ED=function(e,t){{if(Ha===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Fr(),zr(function(){Qp(e.current,a,n)})}},CD=function(e,t){{if(e.context!==xa)return;Fr(),zr(function(){Vu(t,e,null,null)})}};function Qp(e,t,n){{var a=e.alternate,r=e.child,i=e.sibling,o=e.tag,l=e.type,u=null;switch(o){case ve:case K:case ne:u=l;break;case _e:u=l.render;break}if(Ha===null)throw new Error("Expected resolveFamily to be set during hot reload.");var f=!1,v=!1;if(u!==null){var S=Ha(u);S!==void 0&&(n.has(S)?v=!0:t.has(S)&&(o===ne?v=!0:f=!0))}if(el!==null&&(el.has(e)||a!==null&&el.has(a))&&(v=!0),v&&(e._debugNeedsRemount=!0),v||f){var b=va(e,$e);b!==null&&xn(b,e,$e,Gt)}r!==null&&!v&&Qp(r,t,n),i!==null&&Qp(i,t,n)}}var xD=function(e,t){{var n=new Set,a=new Set(t.map(function(r){return r.current}));return Kp(e.current,a,n),n}};function Kp(e,t,n){{var a=e.child,r=e.sibling,i=e.tag,o=e.type,l=null;switch(i){case ve:case K:case ne:l=o;break;case _e:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?RD(e,n):a!==null&&Kp(a,t,n),r!==null&&Kp(r,t,n)}}function RD(e,t){{var n=wD(e,t);if(n)return;for(var a=e;;){switch(a.tag){case ee:t.add(a.stateNode);return;case Le:t.add(a.stateNode.containerInfo);return;case ue:t.add(a.stateNode.containerInfo);return}if(a.return===null)throw new Error("Expected to reach root first.");a=a.return}}}function wD(e,t){for(var n=e,a=!1;;){if(n.tag===ee)a=!0,t.add(n.stateNode);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===e)return a;for(;n.sibling===null;){if(n.return===null||n.return===e)return a;n=n.return}n.sibling.return=n.return,n=n.sibling}return!1}var Zp;{Zp=!1;try{var a0=Object.preventExtensions({})}catch{Zp=!0}}function DD(e,t,n,a){this.tag=e,this.key=n,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=a,this.flags=Ae,this.subtreeFlags=Ae,this.deletions=null,this.lanes=B,this.childLanes=B,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!Zp&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Ra=function(e,t,n,a){return new DD(e,t,n,a)};function Jp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function _D(e){return typeof e=="function"&&!Jp(e)&&e.defaultProps===void 0}function kD(e){if(typeof e=="function")return Jp(e)?ne:ve;if(e!=null){var t=e.$$typeof;if(t===m)return _e;if(t===T)return U}return gt}function to(e,t){var n=e.alternate;n===null?(n=Ra(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugSource=e._debugSource,n._debugOwner=e._debugOwner,n._debugHookTy
2025-07-28 02:13:24 +03:00
Check the render method of \``+f+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(e==null?e:typeof e)+"."+u))}}var v=Ra(o,n,t,r);return v.elementType=e,v.type=l,v.lanes=i,v._debugOwner=a,v}function tm(e,t,n){var a=null;a=e._owner;var r=e.type,i=e.key,o=e.props,l=em(r,i,o,a,t,n);return l._debugSource=e._source,l._debugOwner=e._owner,l}function yi(e,t,n,a){var r=Ra(Ge,e,a,t);return r.lanes=n,r}function OD(e,t,n,a){typeof e.id!="string"&&d('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var r=Ra(Qe,e,a,t|Ht);return r.elementType=y,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function AD(e,t,n,a){var r=Ra(ye,e,a,t);return r.elementType=g,r.lanes=n,r}function ND(e,t,n,a){var r=Ra(Dt,e,a,t);return r.elementType=E,r.lanes=n,r}function r0(e,t,n,a){var r=Ra(I,e,a,t);r.elementType=Ue,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function nm(e,t,n){var a=Ra(Fe,e,null,t);return a.lanes=n,a}function jD(){var e=Ra(ee,null,null,Me);return e.elementType="DELETED",e}function UD(e){var t=Ra(ot,null,null,Me);return t.stateNode=e,t}function am(e,t,n){var a=e.children!==null?e.children:[],r=Ra(Le,a,e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function i0(e,t){return e===null&&(e=Ra(gt,null,null,Me)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function HD(e,t,n,a,r){this.tag=t,this.containerInfo=e,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=zd,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Ln,this.eventTimes=ld(B),this.expirationTimes=ld(Gt),this.pendingLanes=B,this.suspendedLanes=B,this.pingedLanes=B,this.expiredLanes=B,this.mutableReadLanes=B,this.finishedLanes=B,this.entangledLanes=B,this.entanglements=ld(B),this.identifierPrefix=a,this.onRecoverableError=r,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var i=this.pendingUpdatersLaneMap=[],o=0;o<zf;o++)i.push(new Set)}switch(t){case Ps:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case ri:this._debugRootType=n?"hydrate()":"render()";break}}function o0(e,t,n,a,r,i,o,l,u,f){var v=new HD(e,t,n,l,u),S=LD(t,i);v.current=S,S.stateNode=v;{var b={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};S.memoizedState=b}return hv(S),v}var rm="18.3.1";function zD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Pn(a),{$$typeof:wn,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var im,om;im=!1,om={};function l0(e){if(!e)return xa;var t=po(e),n=S1(t);if(t.tag===ne){var a=t.type;if(ur(a))return Ny(t,a,n)}return n}function FD(e,t){{var n=po(e);if(n===void 0){if(typeof e.render=="function")throw new Error("Unable to find node on an unmounted component.");var a=Object.keys(e).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+a)}var r=rh(n);if(r===null)return null;if(r.mode&on){var i=Xe(n)||"Component";if(!om[i]){om[i]=!0;var o=Zn;try{Jt(r),n.mode&on?d("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside Strict
2025-07-28 02:13:24 +03:00
Check the render method of %s.`,Xe(Zn)||"Unknown"));var u=Nr(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&d("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var f=li(r,u,o);return f!==null&&(xn(f,r,o,i),rc(f,r,o)),o}function qc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case ee:return t.child.stateNode;default:return t.child.stateNode}}function VD(e){switch(e.tag){case ue:{var t=e.stateNode;if(vs(t)){var n=$T(t);Qw(t,n)}break}case ye:{zr(function(){var r=va(e,$e);if(r!==null){var i=aa();xn(r,e,$e,i)}});var a=$e;lm(e,a);break}}}function c0(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=GT(n.retryLane,t))}function lm(e,t){c0(e,t);var n=e.alternate;n&&c0(n,t)}function BD(e){if(e.tag===ye){var t=Rl,n=va(e,t);if(n!==null){var a=aa();xn(n,e,t,a)}lm(e,t)}}function $D(e){if(e.tag===ye){var t=mi(e),n=va(e,t);if(n!==null){var a=aa();xn(n,e,t,a)}lm(e,t)}}function f0(e){var t=rT(e);return t===null?null:t.stateNode}var d0=function(e){return null};function PD(e){return d0(e)}var v0=function(e){return!1};function YD(e){return v0(e)}var p0=null,m0=null,h0=null,y0=null,g0=null,b0=null,S0=null,T0=null,E0=null;{var C0=function(e,t,n){var a=t[n],r=st(e)?e.slice():Ve({},e);return n+1===t.length?(st(r)?r.splice(a,1):delete r[a],r):(r[a]=C0(e[a],t,n+1),r)},x0=function(e,t){return C0(e,t,0)},R0=function(e,t,n,a){var r=t[a],i=st(e)?e.slice():Ve({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],st(i)?i.splice(r,1):delete i[r]}else i[r]=R0(e[r],t,n,a+1);return i},w0=function(e,t,n){if(t.length!==n.length){ce("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){ce("copyWithRename() expects paths to be the same except for the deepest key");return}return R0(e,t,n,0)},D0=function(e,t,n,a){if(n>=t.length)return a;var r=t[n],i=st(e)?e.slice():Ve({},e);return i[r]=D0(e[r],t,n+1,a),i},_0=function(e,t,n){return D0(e,t,0,n)},um=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};p0=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=_0(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Ve({},e.memoizedProps);var o=va(e,$e);o!==null&&xn(o,e,$e,Gt)}},m0=function(e,t,n){var a=um(e,t);if(a!==null){var r=x0(a.memoizedState,n);a.memoizedState=r,a.baseState=r,e.memoizedProps=Ve({},e.memoizedProps);var i=va(e,$e);i!==null&&xn(i,e,$e,Gt)}},h0=function(e,t,n,a){var r=um(e,t);if(r!==null){var i=w0(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=Ve({},e.memoizedProps);var o=va(e,$e);o!==null&&xn(o,e,$e,Gt)}},y0=function(e,t,n){e.pendingProps=_0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=va(e,$e);a!==null&&xn(a,e,$e,Gt)},g0=function(e,t){e.pendingProps=x0(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=va(e,$e);n!==null&&xn(n,e,$e,Gt)},b0=function(e,t,n){e.pendingProps=w0(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=va(e,$e);a!==null&&xn(a,e,$e,Gt)},S0=function(e){var t=va(e,$e);t!==null&&xn(t,e,$e,Gt)},T0=function(e){d0=e},E0=function(e){v0=e}}function WD(e){var t=rh(e);return t===null?null:t.stateNode}function ID(e){return null}function qD(){return Zn}function GD(e){var t=e.findFiberByHostInstance,n=Ee.ReactCurrentDispatcher;return dT({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:p0,overrideHookStateDeletePath:m0,overrideHookStateRenamePath:h0,overrideProps:y0,overridePropsDeletePath:g0,overridePropsRenamePath:b0,setErrorHandler:T0,setSuspenseHandler:E0,scheduleUpdate:S0,currentDispatcherRef:n,findHostInstanceByFiber:WD,findFiberByHostInstance:t||ID,findHostInstancesForRefresh:xD,scheduleRefresh:ED,scheduleRoot:CD,setRefreshHandler:TD,getCurrentFiber:qD,reconcilerVersion:rm})}var k0=typeof reportError=="function"?reportError:function(e){console.error(e)};function sm(e){this._internalRoot=e}Gc.prototype.render=sm.
let root = createRoot(domContainer);
2025-07-28 02:13:24 +03:00
root.render(<App />);`),t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError),t.transitionCallbacks!==void 0&&t.transitionCallbacks);var o=u0(e,Ps,null,n,a,r,i);Us(o.current,e);var l=e.nodeType===pn?e.parentNode:e;return Il(l),new sm(o)}function Gc(e){this._internalRoot=e}function QD(e){e&&fE(e)}Gc.prototype.unstable_scheduleHydration=QD;function KD(e,t,n){if(!Xc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");M0(e),t===void 0&&d("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var a=n??null,r=n!=null&&n.hydratedSources||null,i=!1,o=!1,l="",u=k0;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var f=s0(t,null,e,Ps,a,i,o,l,u);if(Us(f.current,e),Il(e),r)for(var v=0;v<r.length;v++){var S=r[v];tR(f,S)}return new Gc(f)}function Xc(e){return!!(e&&(e.nodeType===fa||e.nodeType===xr||e.nodeType===mf))}function Bu(e){return!!(e&&(e.nodeType===fa||e.nodeType===xr||e.nodeType===mf||e.nodeType===pn&&e.nodeValue===" react-mount-point-unstable "))}function M0(e){e.nodeType===fa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&d("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),au(e)&&(e._reactRootContainer?d("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):d("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var ZD=Ee.ReactCurrentOwner,L0;L0=function(e){if(e._reactRootContainer&&e.nodeType!==pn){var t=f0(e._reactRootContainer.current);t&&t.parentNode!==e&&d("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var n=!!e._reactRootContainer,a=cm(e),r=!!(a&&ni(a));r&&!n&&d("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),e.nodeType===fa&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&d("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function cm(e){return e?e.nodeType===xr?e.documentElement:e.firstChild:null}function O0(){}function JD(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var b=qc(o);i.call(b)}}var o=s0(t,a,e,ri,null,!1,!1,"",O0);e._reactRootContainer=o,Us(o.current,e);var l=e.nodeType===pn?e.parentNode:e;return Il(l),zr(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var f=a;a=function(){var b=qc(v);f.call(b)}}var v=u0(e,ri,null,!1,!1,"",O0);e._reactRootContainer=v,Us(v.current,e);var S=e.nodeType===pn?e.parentNode:e;return Il(S),zr(function(){Vu(t,v,n,a)}),v}}function e_(e,t){e!==null&&typeof e!="function"&&d("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Qc(e,t,n,a,r){L0(n),e_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=JD(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=qc(o);l.call(u)}}Vu(t,o,e,r)}return qc(o)}var A0=!1;function t_(e){{A0||(A0=!0,d("findDOMNode is deprecated and will be removed in the next major release. Instead, add a ref directly to the
You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}oa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=fm,oa.createPortal=o_,oa.createRoot=u_,oa.findDOMNode=t_,oa.flushSync=c_,oa.hydrate=n_,oa.hydrateRoot=s_,oa.render=a_,oa.unmountComponentAtNode=i_,oa.unstable_batchedUpdates=Bp,oa.unstable_renderSubtreeIntoContainer=l_,oa.version=rm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),oa}hm.exports=V0();var B0=hm.exports,Sm,Tm=B0;{var Em=Tm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Sm=function(k,R){Em.usingClientEntryPoint=!0;try{return Tm.createRoot(k,R)}finally{Em.usingClientEntryPoint=!1}}}const V=k=>{if(isNaN(k))return"00:00:00.000";const R=Math.floor(k/3600),Ee=Math.floor(k%3600/60),we=Math.floor(k%60),xe=Math.round(k%1*1e3),ce=String(R).padStart(2,"0"),d=String(Ee).padStart(2,"0"),X=String(we).padStart(2,"0"),ve=String(xe).padStart(3,"0");return`${ce}:${d}:${X}.${ve}`},gi=k=>V(k),$0=k=>V(k),Re={debug:(...k)=>{},error:(...k)=>console.error(...k),warn:(...k)=>console.warn(...k),info:(...k)=>console.info(...k)};var J=Zc();const P0=({videoRef:k,currentTime:R,duration:Ee,isPlaying:we,isMuted:xe=!1,onPlayPause:ce,onSeek:d,onToggleMute:X})=>{var ie;const ve=J.useRef(null),[ne,gt]=J.useState(!1),[ue,Le]=J.useState(!1),[ee,Fe]=J.useState(null),[Ge,W]=J.useState(!1),Tt=J.useRef(!1),[it,_e]=J.useState({x:0}),[Qe,ye]=J.useState(0),U=typeof window<"u"&&((ie=window.MEDIA_DATA)==null?void 0:ie.videoUrl)||"/videos/sample-video.mp4";J.useEffect(()=>{if(gt((()=>{const q=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test(q)&&!window.MSStream})()),typeof window<"u"){const q=localStorage.getItem("video_initialized")==="true";Le(q)}},[]),J.useEffect(()=>{we&&!ue&&(Le(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[we,ue]),J.useEffect(()=>{const pe=k.current;if(!pe)return;pe.setAttribute("playsinline","true"),pe.setAttribute("webkit-playsinline","true"),pe.setAttribute("x-webkit-airplay","allow");const q=()=>{Tt.current||(Fe(pe.currentTime),typeof window<"u"&&(window.lastSeekedPosition=pe.currentTime))},G=()=>{ne&&(Le(!0),localStorage.setItem("video_initialized","true"))},fe=()=>{};return pe.addEventListener("timeupdate",q),pe.addEventListener("play",G),pe.addEventListener("pause",fe),()=>{pe.removeEventListener("timeupdate",q),pe.removeEventListener("play",G),pe.removeEventListener("pause",fe)}},[k,ne,Tt]),J.useEffect(()=>{Fe(R)},[R]);const K=Ee>0?R/Ee*100:0,At=pe=>{pe.preventDefault(),W(!0),Tt.current=!0,bt(pe);const q=fe=>{Tt.current&&bt(fe)},G=()=>{W(!1),Tt.current=!1,document.removeEventListener("mousemove",q),document.removeEventListener("mouseup",G)};document.addEventListener("mousemove",q),document.addEventListener("mouseup",G)},bt=pe=>{if(!ve.current)return;const q=ve.current.getBoundingClientRect(),G=Math.max(0,Math.min(1,(pe.clientX-q.left)/q.width)),fe=Ee*G;_e({x:pe.clientX}),ye(fe),Fe(fe),typeof window<"u"&&(window.lastSeekedPosition=fe),d(fe)},ot=pe=>{if(!ve.current||!pe.touches[0])return;pe.preventDefault(),W(!0),Tt.current=!0,Dt(pe);const q=fe=>{Tt.current&&Dt(fe)},G=()=>{W(!1),Tt.current=!1,document.removeEventListener("touchmove",q),document.removeEventListener("touchend",G),document.removeEventListener("touchcancel",G)};document.addEventListener("touchmove",q,{passive:!1}),document.addEventListener("touchend",G),document.addEventListener("touchcancel",G)},Dt=pe=>{if(!ve.current)return;const q="touches"in pe?pe.touches[0]:null;if(!q)return;pe.preventDefault();const G=ve.current.getBoundingClientRect(),fe=Math.max(0,Math.min(1,(q.clientX-G.left)/G.width)),dt=Ee*fe;_e({x:q.clientX}),ye(dt),Fe(dt),typeof window<"u"&&(window.lastSeekedPosition=dt),d(dt)},Te=pe=>{if(!Ge&&ve.current){const q=ve.current.getBoundingClientRect(),G=(pe.clientX-q.left)/q.width,fe=Ee*G;Fe(fe),typeof window<"u"&&(window.lastSeekedPosition=fe),d(fe)}},I=()=>{k.cu
//# sourceMappingURL=chapters-editor.js.map