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

204 lines
400 KiB
JavaScript
Raw Normal View History

2025-09-19 13:12:47 +03:00
(function(){"use strict";var cm={exports:{}},Jc={exports:{}},sl={exports:{}};sl.exports;var fm;function NS(){return fm||(fm=1,function(k,w){/**
* @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-09-19 13:12:47 +03:00
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var me="18.3.1",Le=Symbol.for("react.element"),Me=Symbol.for("react.portal"),X=Symbol.for("react.fragment"),c=Symbol.for("react.strict_mode"),St=Symbol.for("react.profiler"),he=Symbol.for("react.provider"),ne=Symbol.for("react.context"),nt=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),He=Symbol.for("react.suspense_list"),Q=Symbol.for("react.memo"),ye=Symbol.for("react.lazy"),I=Symbol.for("react.offscreen"),fn=Symbol.iterator,Tt="@@iterator";function we(s){if(s===null||typeof s!="object")return null;var m=fn&&s[fn]||s[Tt];return typeof m=="function"?m:null}var Oe={current:null},Lt={transition:null},L={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},K={current:null},$e={},mt=null;function ht(s){mt=s}$e.setExtraStackFrame=function(s){mt=s},$e.getCurrentStack=null,$e.getStackAddendum=function(){var s="";mt&&(s+=mt);var m=$e.getCurrentStack;return m&&(s+=m()||""),s};var Qt=!1,_e=!1,re=!1,Ce=!1,ue=!1,yt={ReactCurrentDispatcher:Oe,ReactCurrentBatchConfig:Lt,ReactCurrentOwner:K};yt.ReactDebugCurrentFrame=$e,yt.ReactCurrentActQueue=L;function le(s){{for(var m=arguments.length,D=new Array(m>1?m-1:0),j=1;j<m;j++)D[j-1]=arguments[j];ge("warn",s,D)}}function A(s){{for(var m=arguments.length,D=new Array(m>1?m-1:0),j=1;j<m;j++)D[j-1]=arguments[j];ge("error",s,D)}}function ge(s,m,D){{var j=yt.ReactDebugCurrentFrame,q=j.getStackAddendum();q!==""&&(m+="%s",D=D.concat([q]));var je=D.map(function(Se){return String(Se)});je.unshift("Warning: "+m),Function.prototype.apply.call(console[s],console,je)}}var Ve={};function st(s,m){{var D=s.constructor,j=D&&(D.displayName||D.name)||"ReactClass",q=j+"."+m;if(Ve[q])return;A("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",m,j),Ve[q]=!0}}var xt={isMounted:function(s){return!1},enqueueForceUpdate:function(s,m,D){st(s,"forceUpdate")},enqueueReplaceState:function(s,m,D,j){st(s,"replaceState")},enqueueSetState:function(s,m,D,j){st(s,"setState")}},Ot=Object.assign,qt={};Object.freeze(qt);function Ne(s,m,D){this.props=s,this.context=m,this.refs=qt,this.updater=D||xt}Ne.prototype.isReactComponent={},Ne.prototype.setState=function(s,m){if(typeof s!="object"&&typeof s!="function"&&s!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,s,m,"setState")},Ne.prototype.forceUpdate=function(s){this.updater.enqueueForceUpdate(this,s,"forceUpdate")};{var Fe={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)."]},Ke=function(s,m){Object.defineProperty(Ne.prototype,s,{get:function(){le("%s(...) is deprecated in plain JavaScript React classes. %s",m[0],m[1])}})};for(var rn in Fe)Fe.hasOwnProperty(rn)&&Ke(rn,Fe[rn])}function rt(){}rt.prototype=Ne.prototype;function Kt(s,m,D){this.props=s,this.context=m,this.refs=qt,this.updater=D||xt}var gt=Kt.prototype=new rt;gt.constructor=Kt,Ot(gt,Ne.prototype),gt.isPureReactComponent=!0;function Qe(){var s={current:null};return Object.seal(s),s}var Tn=Array.isArray;function nn(s){return Tn(s)}function zn(s){{var m=typeof Symbol=="function"&&Symbol.toStringTag,D=m&&s[Symbol.toStringTag]||s.constructor.name||"Object";return D}}function V(s){try{return ee(s),!1}catch{return!0}}function ee(s){return""+s}function Te(s){if(V(s))return A("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",zn(s)),ee(s)}function Ee(s,m,D){var j=s.displayName;if(j)return j;var q=m.displa
Your code should look like:
const MyComponent = lazy(() => import('./MyComponent'))
2025-09-19 13:12:47 +03:00
Did you accidentally put curly braces around the import?`,q),"default"in q||A(`lazy: Expected the result of a dynamic import() call. Instead received: %s
Your code should look like:
2025-09-19 13:12:47 +03:00
const MyComponent = lazy(() => import('./MyComponent'))`,q),q.default}else throw s._result}function ja(s){var m={_status:wa,_result:s},D={$$typeof:ye,_payload:m,_init:Er};{var j,q;Object.defineProperties(D,{defaultProps:{configurable:!0,get:function(){return j},set:function(je){A("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."),j=je,Object.defineProperty(D,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return q},set:function(je){A("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=je,Object.defineProperty(D,"propTypes",{enumerable:!0})}}})}return D}function Cr(s){s!=null&&s.$$typeof===Q?A("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof s!="function"?A("forwardRef requires a render function but was given %s.",s===null?"null":typeof s):s.length!==0&&s.length!==2&&A("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)&&A("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var m={$$typeof:nt,render:s};{var D;Object.defineProperty(m,"displayName",{enumerable:!1,configurable:!0,get:function(){return D},set:function(j){D=j,!s.name&&!s.displayName&&(s.displayName=j)}})}return m}var h;h=Symbol.for("react.module.reference");function B(s){return!!(typeof s=="string"||typeof s=="function"||s===X||s===St||ue||s===c||s===oe||s===He||Ce||s===I||Qt||_e||re||typeof s=="object"&&s!==null&&(s.$$typeof===ye||s.$$typeof===Q||s.$$typeof===he||s.$$typeof===ne||s.$$typeof===nt||s.$$typeof===h||s.getModuleId!==void 0))}function ae(s,m){B(s)||A("memo: The first argument must be a component. Instead received: %s",s===null?"null":typeof s);var D={$$typeof:Q,type:s,compare:m===void 0?null:m};{var j;Object.defineProperty(D,"displayName",{enumerable:!1,configurable:!0,get:function(){return j},set:function(q){j=q,!s.name&&!s.displayName&&(s.displayName=q)}})}return D}function fe(){var s=Oe.current;return s===null&&A(`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-09-19 13:12:47 +03:00
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),s}function Ze(s){var m=fe();if(s._context!==void 0){var D=s._context;D.Consumer===s?A("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&&A("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return m.useContext(s)}function Ie(s){var m=fe();return m.useState(s)}function at(s,m,D){var j=fe();return j.useReducer(s,m,D)}function v(s){var m=fe();return m.useRef(s)}function N(s,m){var D=fe();return D.useEffect(s,m)}function E(s,m){var D=fe();return D.useInsertionEffect(s,m)}function b(s,m){var D=fe();return D.useLayoutEffect(s,m)}function S(s,m){var D=fe();return D.useCallback(s,m)}function O(s,m){var D=fe();return D.useMemo(s,m)}function T(s,m,D){var j=fe();return j.useImperativeHandle(s,m,D)}function z(s,m){{var D=fe();return D.useDebugValue(s,m)}}function M(){var s=fe();return s.useTransition()}function J(s){var m=fe();return m.useDeferredValue(s)}function ct(){var s=fe();return s.useId()}function te(s,m,D){var j=fe();return j.useSyncExternalStore(s,m,D)}var et=0,jt,bt,hn,xr,Ua,Vn,Rr;function En(){}En.__reactDisabledLog=!0;function Wt(){{if(et===0){jt=console.log,bt=console.info,hn=console.warn,xr=console.error,Ua=console.group,Vn=console.groupCollapsed,Rr=console.groupEnd;var s={configurable:!0,enumerable:!0,value:En,writable:!0};Object.defineProperties(console,{info:s,log:s,warn:s,error:s,group:s,groupCollapsed:s,groupEnd:s})}et++}}function Cn(){{if(et--,et===0){var s={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ot({},s,{value:jt}),info:Ot({},s,{value:bt}),warn:Ot({},s,{value:hn}),error:Ot({},s,{value:xr}),group:Ot({},s,{value:Ua}),groupCollapsed:Ot({},s,{value:Vn}),groupEnd:Ot({},s,{value:Rr})})}et<0&&A("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ha=yt.ReactCurrentDispatcher,wr;function Dr(s,m,D){{if(wr===void 0)try{throw Error()}catch(q){var j=q.stack.trim().match(/\n( *(at )?)/);wr=j&&j[1]||""}return`
`+wr+s}}var ia=!1,ha;{var ai=typeof WeakMap=="function"?WeakMap:Map;ha=new ai}function so(s,m){if(!s||ia)return"";{var D=ha.get(s);if(D!==void 0)return D}var j;ia=!0;var q=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var je;je=Ha.current,Ha.current=null,Wt();try{if(m){var Se=function(){throw Error()};if(Object.defineProperty(Se.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Se,[])}catch(yn){j=yn}Reflect.construct(s,[],Se)}else{try{Se.call()}catch(yn){j=yn}s.call(Se.prototype)}}else{try{throw Error()}catch(yn){j=yn}s()}}catch(yn){if(yn&&j&&typeof yn.stack=="string"){for(var We=yn.stack.split(`
`),ft=j.stack.split(`
`),zt=We.length-1,Zt=ft.length-1;zt>=1&&Zt>=0&&We[zt]!==ft[Zt];)Zt--;for(;zt>=1&&Zt>=0;zt--,Zt--)if(We[zt]!==ft[Zt]){if(zt!==1||Zt!==1)do if(zt--,Zt--,Zt<0||We[zt]!==ft[Zt]){var en=`
`+We[zt].replace(" at new "," at ");return s.displayName&&en.includes("<anonymous>")&&(en=en.replace("<anonymous>",s.displayName)),typeof s=="function"&&ha.set(s,en),en}while(zt>=1&&Zt>=0);break}}}finally{ia=!1,Ha.current=je,Cn(),Error.prepareStackTrace=q}var lt=s?s.displayName||s.name:"",ln=lt?Dr(lt):"";return typeof s=="function"&&ha.set(s,ln),ln}function pn(s,m,D){return so(s,!1)}function Ut(s){var m=s.prototype;return!!(m&&m.isReactComponent)}function ya(s,m,D){if(s==null)return"";if(typeof s=="function")return so(s,Ut(s));if(typeof s=="string")return Dr(s);switch(s){case oe:return Dr("Suspense");case He:return Dr("SuspenseList")}if(typeof s=="object")switch(s.$$typeof){case nt:return pn(s.render);case Q:return ya(s.type,m,D);case ye:{var j=s,q=j._payload,je=j._init;try{return ya(je(q),m,D)}catch{}}}return""}var za={},_r=yt.ReactDebugCurrentFrame;function wt(s){if(s){var m=s._owner,D=ya(s.type,s._source,m?m.type:null);_r.setExtraStackFrame(D)}else _r.setExtraStackFrame(null)}function nf(s,m,D,j,q){{var je=Function.call.bind(Je);for(var Se in s)if(je(s,Se)){var We=void 0;try{if(typeof s[Se]!="function"){var ft=Error((j||"React class")+": "+D+" type `"+Se+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[Se]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw ft.name="Invariant Violation",ft}We=s[Se](m,Se,j,D,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(zt){We=zt}We&&!(We instanceof Error)&&(wt(q),A("%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).",j||"React class",D,Se,typeof We),wt(null)),We instanceof Error&&!(We.message in za)&&(za[We.message]=!0,wt(q),A("Failed %s type: %s",D,We.message),wt(null))}}}function kr(s){if(s){var m=s._owner,D=ya(s.type,s._source,m?m.type:null);ht(D)}else ht(null)}var Xe;Xe=!1;function fl(){if(K.current){var s=it(K.current.type);if(s)return`
2025-09-19 13:12:47 +03:00
Check the render method of \``+s+"`."}return""}function oa(s){if(s!==void 0){var m=s.fileName.replace(/^.*[\\\/]/,""),D=s.lineNumber;return`
2025-09-19 13:12:47 +03:00
Check your code at `+m+":"+D+"."}return""}function Li(s){return s!=null?oa(s.__source):""}var ri={};function af(s){var m=fl();if(!m){var D=typeof s=="string"?s:s.displayName||s.name;D&&(m=`
2025-09-19 13:12:47 +03:00
Check the top-level render call using <`+D+">.")}return m}function An(s,m){if(!(!s._store||s._store.validated||s.key!=null)){s._store.validated=!0;var D=af(m);if(!ri[D]){ri[D]=!0;var j="";s&&s._owner&&s._owner!==K.current&&(j=" It was passed a child from "+it(s._owner.type)+"."),kr(s),A('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',D,j),kr(null)}}}function on(s,m){if(typeof s=="object"){if(nn(s))for(var D=0;D<s.length;D++){var j=s[D];Yt(j)&&An(j,m)}else if(Yt(s))s._store&&(s._store.validated=!0);else if(s){var q=we(s);if(typeof q=="function"&&q!==s.entries)for(var je=q.call(s),Se;!(Se=je.next()).done;)Yt(Se.value)&&An(Se.value,m)}}}function Gu(s){{var m=s.type;if(m==null||typeof m=="string")return;var D;if(typeof m=="function")D=m.propTypes;else if(typeof m=="object"&&(m.$$typeof===nt||m.$$typeof===Q))D=m.propTypes;else return;if(D){var j=it(m);nf(D,s.props,"prop",j,s)}else if(m.PropTypes!==void 0&&!Xe){Xe=!0;var q=it(m);A("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",q||"Unknown")}typeof m.getDefaultProps=="function"&&!m.getDefaultProps.isReactClassApproved&&A("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Fa(s){{for(var m=Object.keys(s.props),D=0;D<m.length;D++){var j=m[D];if(j!=="children"&&j!=="key"){kr(s),A("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",j),kr(null);break}}s.ref!==null&&(kr(s),A("Invalid attribute `ref` supplied to `React.Fragment`."),kr(null))}}function la(s,m,D){var j=B(s);if(!j){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 je=Li(m);je?q+=je:q+=fl();var Se;s===null?Se="null":nn(s)?Se="array":s!==void 0&&s.$$typeof===Le?(Se="<"+(it(s.type)||"Unknown")+" />",q=" Did you accidentally export a JSX literal instead of a component?"):Se=typeof s,A("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",Se,q)}var We=Ge.apply(this,arguments);if(We==null)return We;if(j)for(var ft=2;ft<arguments.length;ft++)on(arguments[ft],s);return s===X?Fa(We):Gu(We),We}var qa=!1;function rf(s){var m=la.bind(null,s);return m.type=s,qa||(qa=!0,le("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(m,"type",{enumerable:!1,get:function(){return le("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:s}),s}}),m}function dl(s,m,D){for(var j=Nt.apply(this,arguments),q=2;q<arguments.length;q++)on(arguments[q],j.type);return Gu(j),j}function Xu(s,m){var D=Lt.transition;Lt.transition={};var j=Lt.transition;Lt.transition._updatedFibers=new Set;try{s()}finally{if(Lt.transition=D,D===null&&j._updatedFibers){var q=j._updatedFibers.size;q>10&&le("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."),j._updatedFibers.clear()}}}var vl=!1,co=null;function of(s){if(co===null)try{var m=("require"+Math.random()).slice(0,7),D=k&&k[m];co=D.call(k,"timers").setImmediate}catch{co=function(q){vl===!1&&(vl=!0,typeof MessageChannel>"u"&&A("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 je=new MessageChannel;je.port1.onmessage=q,je.port2.postMessage(void 0)}}return co(s)}var ii=0,Oi=!1;function pl(s){{var m=ii;ii++,L.current===null&&(L.current=[]);var D=L.isBatchingLegacy,j;try{if(L.isBatchingLe
* @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-09-19 13:12:47 +03:00
*/return function(){var k=Zc(),w=Symbol.for("react.element"),me=Symbol.for("react.portal"),Le=Symbol.for("react.fragment"),Me=Symbol.for("react.strict_mode"),X=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),St=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),nt=Symbol.for("react.suspense_list"),oe=Symbol.for("react.memo"),He=Symbol.for("react.lazy"),Q=Symbol.for("react.offscreen"),ye=Symbol.iterator,I="@@iterator";function fn(h){if(h===null||typeof h!="object")return null;var B=ye&&h[ye]||h[I];return typeof B=="function"?B:null}var Tt=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function we(h){{for(var B=arguments.length,ae=new Array(B>1?B-1:0),fe=1;fe<B;fe++)ae[fe-1]=arguments[fe];Oe("error",h,ae)}}function Oe(h,B,ae){{var fe=Tt.ReactDebugCurrentFrame,Ze=fe.getStackAddendum();Ze!==""&&(B+="%s",ae=ae.concat([Ze]));var Ie=ae.map(function(at){return String(at)});Ie.unshift("Warning: "+B),Function.prototype.apply.call(console[h],console,Ie)}}var Lt=!1,L=!1,K=!1,$e=!1,mt=!1,ht;ht=Symbol.for("react.module.reference");function Qt(h){return!!(typeof h=="string"||typeof h=="function"||h===Le||h===X||mt||h===Me||h===ne||h===nt||$e||h===Q||Lt||L||K||typeof h=="object"&&h!==null&&(h.$$typeof===He||h.$$typeof===oe||h.$$typeof===c||h.$$typeof===St||h.$$typeof===he||h.$$typeof===ht||h.getModuleId!==void 0))}function _e(h,B,ae){var fe=h.displayName;if(fe)return fe;var Ze=B.displayName||B.name||"";return Ze!==""?ae+"("+Ze+")":ae}function re(h){return h.displayName||"Context"}function Ce(h){if(h==null)return null;if(typeof h.tag=="number"&&we("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof h=="function")return h.displayName||h.name||null;if(typeof h=="string")return h;switch(h){case Le:return"Fragment";case me:return"Portal";case X:return"Profiler";case Me:return"StrictMode";case ne:return"Suspense";case nt:return"SuspenseList"}if(typeof h=="object")switch(h.$$typeof){case St:var B=h;return re(B)+".Consumer";case c:var ae=h;return re(ae._context)+".Provider";case he:return _e(h,h.render,"ForwardRef");case oe:var fe=h.displayName||null;return fe!==null?fe:Ce(h.type)||"Memo";case He:{var Ze=h,Ie=Ze._payload,at=Ze._init;try{return Ce(at(Ie))}catch{return null}}}return null}var ue=Object.assign,yt=0,le,A,ge,Ve,st,xt,Ot;function qt(){}qt.__reactDisabledLog=!0;function Ne(){{if(yt===0){le=console.log,A=console.info,ge=console.warn,Ve=console.error,st=console.group,xt=console.groupCollapsed,Ot=console.groupEnd;var h={configurable:!0,enumerable:!0,value:qt,writable:!0};Object.defineProperties(console,{info:h,log:h,warn:h,error:h,group:h,groupCollapsed:h,groupEnd:h})}yt++}}function Fe(){{if(yt--,yt===0){var h={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ue({},h,{value:le}),info:ue({},h,{value:A}),warn:ue({},h,{value:ge}),error:ue({},h,{value:Ve}),group:ue({},h,{value:st}),groupCollapsed:ue({},h,{value:xt}),groupEnd:ue({},h,{value:Ot})})}yt<0&&we("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ke=Tt.ReactCurrentDispatcher,rn;function rt(h,B,ae){{if(rn===void 0)try{throw Error()}catch(Ze){var fe=Ze.stack.trim().match(/\n( *(at )?)/);rn=fe&&fe[1]||""}return`
`+rn+h}}var Kt=!1,gt;{var Qe=typeof WeakMap=="function"?WeakMap:Map;gt=new Qe}function Tn(h,B){if(!h||Kt)return"";{var ae=gt.get(h);if(ae!==void 0)return ae}var fe;Kt=!0;var Ze=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ie;Ie=Ke.current,Ke.current=null,Ne();try{if(B){var at=function(){throw Error()};if(Object.defineProperty(at.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(at,[])}catch(z){fe=z}Reflect.construct(h,[],at)}else{try{at.call()}catch(z){fe=z}h.call(at.prototype)}}else{try{throw Error()}catch(z){fe=z}h()}}catch(z){if(z&&fe&&typeof z.stack=="string"){for(var v=z.stack.split(`
`),N=fe.stack.split(`
`),E=v.length-1,b=N.length-1;E>=1&&b>=0&&v[E]!==N[b];)b--;for(;E>=1&&b>=0;E--,b--)if(v[E]!==N[b]){if(E!==1||b!==1)do if(E--,b--,b<0||v[E]!==N[b]){var S=`
`+v[E].replace(" at new "," at ");return h.displayName&&S.includes("<anonymous>")&&(S=S.replace("<anonymous>",h.displayName)),typeof h=="function"&&gt.set(h,S),S}while(E>=1&&b>=0);break}}}finally{Kt=!1,Ke.current=Ie,Fe(),Error.prepareStackTrace=Ze}var O=h?h.displayName||h.name:"",T=O?rt(O):"";return typeof h=="function"&&gt.set(h,T),T}function nn(h,B,ae){return Tn(h,!1)}function zn(h){var B=h.prototype;return!!(B&&B.isReactComponent)}function V(h,B,ae){if(h==null)return"";if(typeof h=="function")return Tn(h,zn(h));if(typeof h=="string")return rt(h);switch(h){case ne:return rt("Suspense");case nt:return rt("SuspenseList")}if(typeof h=="object")switch(h.$$typeof){case he:return nn(h.render);case oe:return V(h.type,B,ae);case He:{var fe=h,Ze=fe._payload,Ie=fe._init;try{return V(Ie(Ze),B,ae)}catch{}}}return""}var ee=Object.prototype.hasOwnProperty,Te={},Ee=Tt.ReactDebugCurrentFrame;function Be(h){if(h){var B=h._owner,ae=V(h.type,h._source,B?B.type:null);Ee.setExtraStackFrame(ae)}else Ee.setExtraStackFrame(null)}function it(h,B,ae,fe,Ze){{var Ie=Function.call.bind(ee);for(var at in h)if(Ie(h,at)){var v=void 0;try{if(typeof h[at]!="function"){var N=Error((fe||"React class")+": "+ae+" type `"+at+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof h[at]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw N.name="Invariant Violation",N}v=h[at](B,at,fe,ae,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(E){v=E}v&&!(v instanceof Error)&&(Be(Ze),we("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",fe||"React class",ae,at,typeof v),Be(null)),v instanceof Error&&!(v.message in Te)&&(Te[v.message]=!0,Be(Ze),we("Failed %s type: %s",ae,v.message),Be(null))}}}var Je=Array.isArray;function Re(h){return Je(h)}function ot(h){{var B=typeof Symbol=="function"&&Symbol.toStringTag,ae=B&&h[Symbol.toStringTag]||h.constructor.name||"Object";return ae}}function Rt(h){try{return At(h),!1}catch{return!0}}function At(h){return""+h}function $t(h){if(Rt(h))return we("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",ot(h)),At(h)}var Pt=Tt.ReactCurrentOwner,dn={key:!0,ref:!0,__self:!0,__source:!0},xa,G;function De(h){if(ee.call(h,"ref")){var B=Object.getOwnPropertyDescriptor(h,"ref").get;if(B&&B.isReactWarning)return!1}return h.ref!==void 0}function Ge(h){if(ee.call(h,"key")){var B=Object.getOwnPropertyDescriptor(h,"key").get;if(B&&B.isReactWarning)return!1}return h.key!==void 0}function kt(h,B){typeof h.ref=="string"&&Pt.current}function Nt(h,B){{var ae=function(){xa||(xa=!0,we("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",B))};ae.isReactWarning=!0,Object.defineProperty(h,"key",{get:ae,configurable:!0})}}function Yt(h,B){{var ae=function(){G||(G=!0,we("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",B))};ae.isReactWarning=!0,Object.defineProperty(h,"ref",{get:ae,configurable:!0})}}var Jt=function(h,B,ae,fe,Ze,Ie,at){var v={$$typeof:w,type:h,key:B,ref:ae,props:at,_owner:Ie};return v._store={},Object.defineProperty(v._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(v,"_self",{configurable:!1,enumerable:!1,writable:!1,value:fe}),Object.defineProperty(v,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Ze}),Object.freeze&&(Object.freeze(v.props),Object.freeze(v)),v};function On(h,B,ae,fe,Ze){{var Ie,at={},v=null,N=null;ae!==void 0&&($
2025-09-19 13:12:47 +03:00
Check the render method of \``+h+"`."}return""}}function ur(h){return""}var Zr={};function ei(h){{var B=Fn();if(!B){var ae=typeof h=="string"?h:h.displayName||h.name;ae&&(B=`
2025-09-19 13:12:47 +03:00
Check the top-level render call using <`+ae+">.")}return B}}function Ra(h,B){{if(!h._store||h._store.validated||h.key!=null)return;h._store.validated=!0;var ae=ei(B);if(Zr[ae])return;Zr[ae]=!0;var fe="";h&&h._owner&&h._owner!==Ht.current&&(fe=" It was passed a child from "+Ce(h._owner.type)+"."),It(h),we('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',ae,fe),It(null)}}function ti(h,B){{if(typeof h!="object")return;if(Re(h))for(var ae=0;ae<h.length;ae++){var fe=h[ae];aa(fe)&&Ra(fe,B)}else if(aa(h))h._store&&(h._store.validated=!0);else if(h){var Ze=fn(h);if(typeof Ze=="function"&&Ze!==h.entries)for(var Ie=Ze.call(h),at;!(at=Ie.next()).done;)aa(at.value)&&Ra(at.value,B)}}}function ni(h){{var B=h.type;if(B==null||typeof B=="string")return;var ae;if(typeof B=="function")ae=B.propTypes;else if(typeof B=="object"&&(B.$$typeof===he||B.$$typeof===oe))ae=B.propTypes;else return;if(ae){var fe=Ce(B);it(ae,h.props,"prop",fe,h)}else if(B.PropTypes!==void 0&&!lr){lr=!0;var Ze=Ce(B);we("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Ze||"Unknown")}typeof B.getDefaultProps=="function"&&!B.getDefaultProps.isReactClassApproved&&we("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function wa(h){{for(var B=Object.keys(h.props),ae=0;ae<B.length;ae++){var fe=B[ae];if(fe!=="children"&&fe!=="key"){It(h),we("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",fe),It(null);break}}h.ref!==null&&(It(h),we("Invalid attribute `ref` supplied to `React.Fragment`."),It(null))}}var ra={};function vn(h,B,ae,fe,Ze,Ie){{var at=Qt(h);if(!at){var v="";(h===void 0||typeof h=="object"&&h!==null&&Object.keys(h).length===0)&&(v+=" 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 N=ur();N?v+=N:v+=Fn();var E;h===null?E="null":Re(h)?E="array":h!==void 0&&h.$$typeof===w?(E="<"+(Ce(h.type)||"Unknown")+" />",v=" Did you accidentally export a JSX literal instead of a component?"):E=typeof h,we("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",E,v)}var b=On(h,B,ae,Ze,Ie);if(b==null)return b;if(at){var S=B.children;if(S!==void 0)if(fe)if(Re(S)){for(var O=0;O<S.length;O++)ti(S[O],h);Object.freeze&&Object.freeze(S)}else we("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 ti(S,h)}if(ee.call(B,"key")){var T=Ce(h),z=Object.keys(B).filter(function(ct){return ct!=="key"}),M=z.length>0?"{key: someKey, "+z.join(": ..., ")+": ...}":"{key: someKey}";if(!ra[T+M]){var J=z.length>0?"{"+z.join(": ..., ")+": ...}":"{}";we(`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-09-19 13:12:47 +03:00
<%s key={someKey} {...props} />`,M,T,J,T),ra[T+M]=!0}}return h===Le?wa(b):ni(b),b}}function Qn(h,B,ae){return vn(h,B,ae,!0)}function Er(h,B,ae){return vn(h,B,ae,!1)}var ja=Er,Cr=Qn;cl.Fragment=Le,cl.jsx=ja,cl.jsxs=Cr}(),cl}cm.exports=jS();var p=cm.exports,pm={exports:{}},ef={exports:{}},tf={},mm;function US(){return mm||(mm=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-09-19 13:12:47 +03:00
*/(function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var w=!1,me=5;function Le(G,De){var Ge=G.length;G.push(De),c(G,De,Ge)}function Me(G){return G.length===0?null:G[0]}function X(G){if(G.length===0)return null;var De=G[0],Ge=G.pop();return Ge!==De&&(G[0]=Ge,St(G,Ge,0)),De}function c(G,De,Ge){for(var kt=Ge;kt>0;){var Nt=kt-1>>>1,Yt=G[Nt];if(he(Yt,De)>0)G[Nt]=De,G[kt]=Yt,kt=Nt;else return}}function St(G,De,Ge){for(var kt=Ge,Nt=G.length,Yt=Nt>>>1;kt<Yt;){var Jt=(kt+1)*2-1,On=G[Jt],Ht=Jt+1,Gt=G[Ht];if(he(On,De)<0)Ht<Nt&&he(Gt,On)<0?(G[kt]=Gt,G[Ht]=De,kt=Ht):(G[kt]=On,G[Jt]=De,kt=Jt);else if(Ht<Nt&&he(Gt,De)<0)G[kt]=Gt,G[Ht]=De,kt=Ht;else return}}function he(G,De){var Ge=G.sortIndex-De.sortIndex;return Ge!==0?Ge:G.id-De.id}var ne=1,nt=2,oe=3,He=4,Q=5;function ye(G,De){}var I=typeof performance=="object"&&typeof performance.now=="function";if(I){var fn=performance;k.unstable_now=function(){return fn.now()}}else{var Tt=Date,we=Tt.now();k.unstable_now=function(){return Tt.now()-we}}var Oe=1073741823,Lt=-1,L=250,K=5e3,$e=1e4,mt=Oe,ht=[],Qt=[],_e=1,re=null,Ce=oe,ue=!1,yt=!1,le=!1,A=typeof setTimeout=="function"?setTimeout:null,ge=typeof clearTimeout=="function"?clearTimeout:null,Ve=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function st(G){for(var De=Me(Qt);De!==null;){if(De.callback===null)X(Qt);else if(De.startTime<=G)X(Qt),De.sortIndex=De.expirationTime,Le(ht,De);else return;De=Me(Qt)}}function xt(G){if(le=!1,st(G),!yt)if(Me(ht)!==null)yt=!0,At(Ot);else{var De=Me(Qt);De!==null&&$t(xt,De.startTime-G)}}function Ot(G,De){yt=!1,le&&(le=!1,Pt()),ue=!0;var Ge=Ce;try{var kt;if(!w)return qt(G,De)}finally{re=null,Ce=Ge,ue=!1}}function qt(G,De){var Ge=De;for(st(Ge),re=Me(ht);re!==null&&!(re.expirationTime>Ge&&(!G||Ee()));){var kt=re.callback;if(typeof kt=="function"){re.callback=null,Ce=re.priorityLevel;var Nt=re.expirationTime<=Ge,Yt=kt(Nt);Ge=k.unstable_now(),typeof Yt=="function"?re.callback=Yt:re===Me(ht)&&X(ht),st(Ge)}else X(ht);re=Me(ht)}if(re!==null)return!0;var Jt=Me(Qt);return Jt!==null&&$t(xt,Jt.startTime-Ge),!1}function Ne(G,De){switch(G){case ne:case nt:case oe:case He:case Q:break;default:G=oe}var Ge=Ce;Ce=G;try{return De()}finally{Ce=Ge}}function Fe(G){var De;switch(Ce){case ne:case nt:case oe:De=oe;break;default:De=Ce;break}var Ge=Ce;Ce=De;try{return G()}finally{Ce=Ge}}function Ke(G){var De=Ce;return function(){var Ge=Ce;Ce=De;try{return G.apply(this,arguments)}finally{Ce=Ge}}}function rn(G,De,Ge){var kt=k.unstable_now(),Nt;if(typeof Ge=="object"&&Ge!==null){var Yt=Ge.delay;typeof Yt=="number"&&Yt>0?Nt=kt+Yt:Nt=kt}else Nt=kt;var Jt;switch(G){case ne:Jt=Lt;break;case nt:Jt=L;break;case Q:Jt=mt;break;case He:Jt=$e;break;case oe:default:Jt=K;break}var On=Nt+Jt,Ht={id:_e++,callback:De,priorityLevel:G,startTime:Nt,expirationTime:On,sortIndex:-1};return Nt>kt?(Ht.sortIndex=Nt,Le(Qt,Ht),Me(ht)===null&&Ht===Me(Qt)&&(le?Pt():le=!0,$t(xt,Nt-kt))):(Ht.sortIndex=On,Le(ht,Ht),!yt&&!ue&&(yt=!0,At(Ot))),Ht}function rt(){}function Kt(){!yt&&!ue&&(yt=!0,At(Ot))}function gt(){return Me(ht)}function Qe(G){G.callback=null}function Tn(){return Ce}var nn=!1,zn=null,V=-1,ee=me,Te=-1;function Ee(){var G=k.unstable_now()-Te;return!(G<ee)}function Be(){}function it(G){if(G<0||G>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}G>0?ee=Math.floor(1e3/G):ee=me}var Je=function(){if(zn!==null){var G=k.unstable_now();Te=G;var De=!0,Ge=!0;try{Ge=zn(De,G)}finally{Ge?Re():(nn=!1,zn=null)}}else nn=!1},Re;if(typeof Ve=="function")Re=function(){Ve(Je)};else if(typeof MessageChannel<"u"){var ot=new MessageChannel,Rt=ot.port2;ot.port1.onmessage=Je,Re=function(){Rt.postMessage(null)}}else Re=function(){A(Je,0)};function At(G){zn=G,nn||(nn=!0,Re())}function $t(G,De)
* @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-09-19 13:12:47 +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(),w=HS(),me=k.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Le=!1;function Me(e){Le=e}function X(e){if(!Le){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];St("warn",e,n)}}function c(e){if(!Le){for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];St("error",e,n)}}function St(e,t,n){{var a=me.ReactDebugCurrentFrame,r=a.getStackAddendum();r!==""&&(t+="%s",n=n.concat([r]));var i=n.map(function(o){return String(o)});i.unshift("Warning: "+t),Function.prototype.apply.call(console[e],console,i)}}var he=0,ne=1,nt=2,oe=3,He=4,Q=5,ye=6,I=7,fn=8,Tt=9,we=10,Oe=11,Lt=12,L=13,K=14,$e=15,mt=16,ht=17,Qt=18,_e=19,re=21,Ce=22,ue=23,yt=24,le=25,A=!0,ge=!1,Ve=!1,st=!1,xt=!1,Ot=!0,qt=!0,Ne=!0,Fe=!0,Ke=new Set,rn={},rt={};function Kt(e,t){gt(e,t),gt(e+"Capture",t)}function gt(e,t){rn[e]&&c("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),rn[e]=t;{var n=e.toLowerCase();rt[n]=e,e==="onDoubleClick"&&(rt.ondblclick=e)}for(var a=0;a<t.length;a++)Ke.add(t[a])}var Qe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Tn=Object.prototype.hasOwnProperty;function nn(e){{var t=typeof Symbol=="function"&&Symbol.toStringTag,n=t&&e[Symbol.toStringTag]||e.constructor.name||"Object";return n}}function zn(e){try{return V(e),!1}catch{return!0}}function V(e){return""+e}function ee(e,t){if(zn(e))return c("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",t,nn(e)),V(e)}function Te(e){if(zn(e))return c("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",nn(e)),V(e)}function Ee(e,t){if(zn(e))return c("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",t,nn(e)),V(e)}function Be(e,t){if(zn(e))return c("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",t,nn(e)),V(e)}function it(e){if(zn(e))return c("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",nn(e)),V(e)}function Je(e){if(zn(e))return c("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.",nn(e)),V(e)}var Re=0,ot=1,Rt=2,At=3,$t=4,Pt=5,dn=6,xa=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",G=xa+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",De=new RegExp("^["+xa+"]["+G+"]*$"),Ge={},kt={};function Nt(e){return Tn.call(kt,e)?!0:Tn.call(Ge,e)?!1:De.test(e)?(kt[e]=!0,!0):(Ge[e]=!0,c("Invalid attribute name: `%s`",e),!1)}function Yt(e,t,n){return t!==null?t.type===Re:n?!1:e.length>2&&(e[0]==="o"||e[0]==="O")&&(e[1]==="n"||e[1]==="N")}function Jt(e,t,n,a){if(n!==null&&n.type===Re)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 On(e,t,n,a){if(t===null||typeof t>"u"||Jt(e,t,n,a))return!0;if(a)return!1;if(n!==null)switch(n.type){case At:return!t;case $t:return t===!1;case Pt:return isNaN(t);case dn:return isNaN(t)||t<1}return!1}function Ht(e){return It.hasOwnProperty(e)?It[e]:null}function Gt(e,t,n,a,r,i,o){this.acceptsBooleans=t===Rt||t===At||t===$t,this.attributeName=a,this.attributeNamespace=r,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=o}var It={},lr=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","su
`+Wt+e}}var Ha=!1,wr;{var Dr=typeof WeakMap=="function"?WeakMap:Map;wr=new Dr}function ia(e,t){if(!e||Ha)return"";{var n=wr.get(e);if(n!==void 0)return n}var a;Ha=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var i;i=En.current,En.current=null,Vn();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-09-19 13:12:47 +03:00
`),f=l.length-1,d=u.length-1;f>=1&&d>=0&&l[f]!==u[d];)d--;for(;f>=1&&d>=0;f--,d--)if(l[f]!==u[d]){if(f!==1||d!==1)do if(f--,d--,d<0||l[f]!==u[d]){var g=`
`+l[f].replace(" at new "," at ");return e.displayName&&g.includes("<anonymous>")&&(g=g.replace("<anonymous>",e.displayName)),typeof e=="function"&&wr.set(e,g),g}while(f>=1&&d>=0);break}}}finally{Ha=!1,En.current=i,Rr(),Error.prepareStackTrace=r}var y=e?e.displayName||e.name:"",R=y?Cn(y):"";return typeof e=="function"&&wr.set(e,R),R}function ha(e,t,n){return ia(e,!0)}function ai(e,t,n){return ia(e,!1)}function so(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function pn(e,t,n){if(e==null)return"";if(typeof e=="function")return ia(e,so(e));if(typeof e=="string")return Cn(e);switch(e){case ae:return Cn("Suspense");case fe:return Cn("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case B:return ai(e.render);case Ze:return pn(e.type,t,n);case Ie:{var a=e,r=a._payload,i=a._init;try{return pn(i(r),t,n)}catch{}}}return""}function Ut(e){switch(e._debugOwner&&e._debugOwner.type,e._debugSource,e.tag){case Q:return Cn(e.type);case mt:return Cn("Lazy");case L:return Cn("Suspense");case _e:return Cn("SuspenseList");case he:case nt:case $e:return ai(e.type);case Oe:return ai(e.type.render);case ne:return ha(e.type);default:return""}}function ya(e){try{var t="",n=e;do t+=Ut(n),n=n.return;while(n);return t}catch(a){return`
Error generating stack: `+a.message+`
2025-09-19 13:12:47 +03:00
`+a.stack}}function za(e,t,n){var a=e.displayName;if(a)return a;var r=t.displayName||t.name||"";return r!==""?n+"("+r+")":n}function _r(e){return e.displayName||"Context"}function wt(e){if(e==null)return null;if(typeof e.tag=="number"&&c("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 Qn:return"Fragment";case vn:return"Portal";case ja:return"Profiler";case Er:return"StrictMode";case ae:return"Suspense";case fe:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case h:var t=e;return _r(t)+".Consumer";case Cr:var n=e;return _r(n._context)+".Provider";case B:return za(e,e.render,"ForwardRef");case Ze:var a=e.displayName||null;return a!==null?a:wt(e.type)||"Memo";case Ie:{var r=e,i=r._payload,o=r._init;try{return wt(o(i))}catch{return null}}}return null}function nf(e,t,n){var a=t.displayName||t.name||"";return e.displayName||(a!==""?n+"("+a+")":n)}function kr(e){return e.displayName||"Context"}function Xe(e){var t=e.tag,n=e.type;switch(t){case yt:return"Cache";case Tt:var a=n;return kr(a)+".Consumer";case we:var r=n;return kr(r._context)+".Provider";case Qt:return"DehydratedFragment";case Oe:return nf(n,n.render,"ForwardRef");case I:return"Fragment";case Q:return n;case He:return"Portal";case oe:return"Root";case ye:return"Text";case mt:return wt(n);case fn:return n===Er?"StrictMode":"Mode";case Ce:return"Offscreen";case Lt:return"Profiler";case re:return"Scope";case L:return"Suspense";case _e:return"SuspenseList";case le:return"TracingMarker";case ne:case he:case ht:case nt:case K:case $e:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break}return null}var fl=me.ReactDebugCurrentFrame,oa=null,Li=!1;function ri(){{if(oa===null)return null;var e=oa._debugOwner;if(e!==null&&typeof e<"u")return Xe(e)}return null}function af(){return oa===null?"":ya(oa)}function An(){fl.getCurrentStack=null,oa=null,Li=!1}function on(e){fl.getCurrentStack=e===null?null:af,oa=e,Li=!1}function Gu(){return oa}function Fa(e){Li=e}function la(e){return""+e}function qa(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return Je(e),e;default:return""}}var rf={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function dl(e,t){rf[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||c("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||c("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Xu(e){var t=e.type,n=e.nodeName;return n&&n.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function vl(e){return e._valueTracker}function co(e){e._valueTracker=null}function of(e){var t="";return e&&(Xu(e)?t=e.checked?"true":"false":t=e.value),t}function ii(e){var t=Xu(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);Je(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){Je(l),a=""+l,i.call(this,l)}}),Object.defineProperty(e,t,{enumerable:n.enumerable});var o={getValue:function(){return a},setValue:function(l){Je(l),a=""+l},stopTracking:function(){co(e),delete e[t]}};return o}}function Oi(e){vl(e)||(e._valueTracker=ii(e))}function pl(e){if(!e)return!1;var t=vl(e);if(!t)return!0;var n=t.getValue(),a=of(e);return a!==n?(t.setValue(a),!0):!1}function Mr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.
2025-09-19 13:12:47 +03:00
Check the render method of \``+e+"`.":""}var Ai=["value","defaultValue"];function hl(e){{dl("select",e);for(var t=0;t<Ai.length;t++){var n=Ai[t];if(e[n]!=null){var a=lt(e[n]);e.multiple&&!a?c("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,yn()):!e.multiple&&a&&c("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,yn())}}}}function Lr(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 d=la(qa(n)),g=null,y=0;y<r.length;y++){if(r[y].value===d){r[y].selected=!0,a&&(r[y].defaultSelected=!0);return}g===null&&!r[y].disabled&&(g=r[y])}g!==null&&(g.selected=!0)}}function yl(e,t){return M({},t,{value:void 0})}function gl(e,t){var n=e;hl(t),n._wrapperState={wasMultiple:!!t.multiple},t.value!==void 0&&t.defaultValue!==void 0&&!ln&&(c("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"),ln=!0)}function lf(e,t){var n=e;n.multiple=!!t.multiple;var a=t.value;a!=null?Lr(n,!!t.multiple,a,!1):t.defaultValue!=null&&Lr(n,!!t.multiple,t.defaultValue,!0)}function Zu(e,t){var n=e,a=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!t.multiple;var r=t.value;r!=null?Lr(n,!!t.multiple,r,!1):a!==!!t.multiple&&(t.defaultValue!=null?Lr(n,!!t.multiple,t.defaultValue,!0):Lr(n,!!t.multiple,t.multiple?[]:"",!1))}function uf(e,t){var n=e,a=t.value;a!=null&&Lr(n,!!t.multiple,a,!1)}var wm=!1;function sf(e,t){var n=e;if(t.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var a=M({},t,{value:void 0,defaultValue:void 0,children:la(n._wrapperState.initialValue)});return a}function Dm(e,t){var n=e;dl("textarea",t),t.value!==void 0&&t.defaultValue!==void 0&&!wm&&(c("%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",ri()||"A component"),wm=!0);var a=t.value;if(a==null){var r=t.children,i=t.defaultValue;if(r!=null){c("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(i!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(lt(r)){if(r.length>1)throw new Error("<textarea> can only have at most one child.");r=r[0]}i=r}}i==null&&(i=""),a=i}n._wrapperState={initialValue:qa(a)}}function _m(e,t){var n=e,a=qa(t.value),r=qa(t.defaultValue);if(a!=null){var i=la(a);i!==n.value&&(n.value=i),t.defaultValue==null&&n.defaultValue!==i&&(n.defaultValue=i)}r!=null&&(n.defaultValue=la(r))}function km(e,t){var n=e,a=n.textContent;a===n._wrapperState.initialValue&&a!==""&&a!==null&&(n.value=a)}function tT(e,t){_m(e,t)}var Or="http://www.w3.org/1999/xhtml",nT="http://www.w3.org/1998/Math/MathML",cf="http://www.w3.org/2000/svg";function ff(e){switch(e){case"svg":return cf;case"math":return nT;default:return Or}}function df(e,t){return e==null||e===Or?ff(t):e===cf&&t==="foreignObject"?Or:e}var aT=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,a,r){MSApp.execUnsafeLocalFunction(function(){return e(t,n,a,r)})}:e},es,Mm=aT(function(e,t){if(e.namespaceURI===cf&&!("innerHTML"in e)){es=es||document.createElement("div"),es.innerHTML="<svg>"+t.valueOf().toString()+"</svg>";for(var n=es.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;n.firstChild;)e.appendChild(n.firstChild);return}e.innerHTML=t}),ga=1,Ar=3,gn=8,Nr=9,vf=11,ts=function(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===Ar){n.nodeValue=t;return}}e.textContent=t},r
* 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-09-19 13:12:47 +03:00
*/function lC(e){if(!Qe)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(){Kt("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function qh(e,t,n,a){Pm(a);var r=Rs(t,"onChange");if(r.length>0){var i=new pd("onChange","change",null,n,a);e.push({event:i,listeners:r})}}var Il=null,Wl=null;function sC(e){var t=e.nodeName&&e.nodeName.toLowerCase();return t==="select"||t==="input"&&e.type==="file"}function cC(e){var t=[];qh(t,Wl,e,gf(e)),qm(fC,t)}function fC(e){fy(e,0)}function Ts(e){var t=zo(e);if(pl(t))return e}function dC(e,t){if(e==="change")return t}var Gh=!1;Qe&&(Gh=lC("input")&&(!document.documentMode||document.documentMode>9));function vC(e,t){Il=e,Wl=t,Il.attachEvent("onpropertychange",Qh)}function Xh(){Il&&(Il.detachEvent("onpropertychange",Qh),Il=null,Wl=null)}function Qh(e){e.propertyName==="value"&&Ts(Wl)&&cC(e)}function pC(e,t,n){e==="focusin"?(Xh(),vC(t,n)):e==="focusout"&&Xh()}function mC(e,t){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(Wl)}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 Ts(t)}function gC(e,t){if(e==="input"||e==="change")return Ts(t)}function bC(e){var t=e._wrapperState;!t||!t.controlled||e.type!=="number"||je(e,"number",e.value)}function SC(e,t,n,a,r,i,o){var l=n?zo(n):window,u,f;if(sC(l)?u=dC:Wh(l)?Gh?u=gC:(u=mC,f=pC):hC(l)&&(u=yC),u){var d=u(t,n);if(d){qh(e,d,a,r);return}}f&&f(t,l,n),t==="focusout"&&bC(l)}function TC(){gt("onMouseEnter",["mouseout","mouseover"]),gt("onMouseLeave",["mouseout","mouseover"]),gt("onPointerEnter",["pointerout","pointerover"]),gt("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&&!VT(a)){var f=a.relatedTarget||a.fromElement;if(f&&(qi(f)||lu(f)))return}if(!(!u&&!l)){var d;if(r.window===r)d=r;else{var g=r.ownerDocument;g?d=g.defaultView||g.parentWindow:d=window}var y,R;if(u){var _=a.relatedTarget||a.toElement;if(y=n,R=_?qi(_):null,R!==null){var U=Fi(R);(R!==U||R.tag!==Q&&R.tag!==ye)&&(R=null)}}else y=null,R=n;if(y!==R){var ie=jh,ke="onMouseLeave",xe="onMouseEnter",pt="mouse";(t==="pointerout"||t==="pointerover")&&(ie=Hh,ke="onPointerLeave",xe="onPointerEnter",pt="pointer");var ut=y==null?d:zo(y),C=R==null?d:zo(R),H=new ie(ke,pt+"leave",y,a,r);H.target=ut,H.relatedTarget=C;var x=null,Y=qi(r);if(Y===n){var ve=new ie(xe,pt+"enter",R,a,r);ve.target=C,ve.relatedTarget=ut,x=ve}WC(e,H,x,y,R)}}}function CC(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var La=typeof Object.is=="function"?Object.is:CC;function ql(e,t){if(La(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(!Tn.call(t,i)||!La(e[i],t[i]))return!1}return!0}function Kh(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 Jh(e,t){for(var n=Kh(e),a=0,r=0;n;){if(n.nodeType===Ar){if(r=a+n.textContent.length,a<=t&&r>=t)return{node:n,offset:t-a};a=r}n=Kh(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,d=e,g=null;e:for(;;){for(var y=null;d===t&&(n===0||d.nodeType===Ar)&&(o=i+n),d===a&&(r===0||d.nodeType===Ar)&&(l=i+r),d.nodeType===Ar&&(i+=d.nodeValue.length),(y=d.firstChild)!==null;)g=d,d=y;for(;;){if(d===e)break e;if(g===t&&++u===n&&(o=i),g===a&&++f===r&&(l=i),(y=d.nextSibling)!==null)break;d=g,g=d.parentNode}d=y}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.getSelecti
`).replace(XC,"")}function Ls(e,t,n,a){var r=Ms(t),i=Ms(e);if(i!==r&&(a&&(ba||(ba=!0,c('Text content did not match. Server: "%s" Client: "%s"',i,r))),n&&A))throw new Error("Text content does not match server-rendered HTML.")}function by(e){return e.nodeType===Nr?e:e.ownerDocument}function QC(){}function Os(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===Wi)o&&Object.freeze(o),jm(t,o);else if(i===Jl){var l=o?o[Ds]:void 0;l!=null&&Mm(t,l)}else if(i===Ii)if(typeof o=="string"){var u=e!=="textarea"||o!=="";u&&ts(t,o)}else typeof o=="number"&&ts(t,""+o);else i===ws||i===vi||i===my||(rn.hasOwnProperty(i)?o!=null&&(typeof o!="function"&&ks(i,o),i==="onScroll"&&an("scroll",t)):o!=null&&wa(t,i,o,r))}}function JC(e,t,n,a){for(var r=0;r<t.length;r+=2){var i=t[r],o=t[r+1];i===Wi?jm(e,o):i===Jl?Mm(e,o):i===Ii?ts(e,o):wa(e,i,o,a)}}function ZC(e,t,n,a){var r,i=by(n),o,l=a;if(l===Or&&(l=ff(e)),l===Or){if(r=Ni(e,t),!r&&e!==e.toLowerCase()&&c("<%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 d=o;t.multiple?d.multiple=!0:t.size&&(d.size=t.size)}}else o=i.createElementNS(l,e);return l===Or&&!r&&Object.prototype.toString.call(o)==="[object HTMLUnknownElement]"&&!Tn.call(Dd,e)&&(Dd[e]=!0,c("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 by(t).createTextNode(e)}function tx(e,t,n,a){var r=Ni(t,n);_s(t,n);var i;switch(t){case"dialog":an("cancel",e),an("close",e),i=n;break;case"iframe":case"object":case"embed":an("load",e),i=n;break;case"video":case"audio":for(var o=0;o<Xl.length;o++)an(Xl[o],e);i=n;break;case"source":an("error",e),i=n;break;case"img":case"image":case"link":an("error",e),an("load",e),i=n;break;case"details":an("toggle",e),i=n;break;case"input":Ju(e,n),i=ml(e,n),an("invalid",e);break;case"option":zt(e,n),i=n;break;case"select":gl(e,n),i=yl(e,n),an("invalid",e);break;case"textarea":Dm(e,n),i=sf(e,n),an("invalid",e);break;default:i=n}switch(hf(t,i),KC(t,e,a,i,r),t){case"input":Oi(e),D(e,n,!1);break;case"textarea":Oi(e),km(e);break;case"option":Zt(e,n);break;case"select":lf(e,n);break;default:typeof i.onClick=="function"&&Os(e);break}}function nx(e,t,n,a,r){_s(t,a);var i=null,o,l;switch(t){case"input":o=ml(e,n),l=ml(e,a),i=[];break;case"select":o=yl(e,n),l=yl(e,a),i=[];break;case"textarea":o=sf(e,n),l=sf(e,a),i=[];break;default:o=n,l=a,typeof o.onClick!="function"&&typeof l.onClick=="function"&&Os(e);break}hf(t,l);var u,f,d=null;for(u in o)if(!(l.hasOwnProperty(u)||!o.hasOwnProperty(u)||o[u]==null))if(u===Wi){var g=o[u];for(f in g)g.hasOwnProperty(f)&&(d||(d={}),d[f]="")}else u===Jl||u===Ii||u===ws||u===vi||u===my||(rn.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in l){var y=l[u],R=o!=null?o[u]:void 0;if(!(!l.hasOwnProperty(u)||y===R||y==null&&R==null))if(u===Wi)if(y&&Object.freeze(y),R){for(f in R)R.hasOwnProperty(f)&&(!y||!y.hasOwnProperty(f))&&(d||(d={}),d[f]="");for(f in y)y.hasOwnProperty(f)&&R[f]!==y[f]&&(d||(d={}),d[f]=y[f])}else d||(i||(i=[]),i.push(u,d)),d=y;else if(u===Jl){var _=y?y[Ds]:void 0,U=R?R[Ds]:void 0;_!=null&&U!==_&&(i=i||[]).push(u,_)}else u===Ii?(typeof y=="string"||typeof y=="number")&&(i=i||[]).push(u,""+y):u===ws||u===vi||(rn.hasOwnProperty(u)?(y!=null&&(typeof y!="function"&&ks(u,y),u==="onScroll"&&an("scroll",e)),!i&&R!==y&&(i=[])):(i=i||[]).push(u,y))}return d&&(ET(d,l[Wi]),(i=i||[]).push(Wi,d)),i}function ax(e,t,n,a,r){n==="input"&&r.type==="radio"&&r.name!=null&&s(e,r);var i=Ni(n,a),o=Ni(n,r);switch(JC(e,t,i,o),n){case"input":m(e,r);break;case"textarea":_m(e,r);break;case"select":Zu(e,r);break}}function rx(e){{var t=e.toLowerCase();return ns.hasOwnProperty(t)&&ns[t]||null}}function ix(e,t,n,a,r,i,o){var l,u;switch(l=Ni(t,n),_s(t,n),t){case"dialog":an("cancel
* Move code with side effects to componentDidMount, and set initial state in the constructor.
2025-09-19 13:12:47 +03:00
Please update the following components: %s`,o)}if(a.size>0){var l=Ji(a);c(`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-09-19 13:12:47 +03:00
Please update the following components: %s`,l)}if(i.size>0){var u=Ji(i);c(`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-09-19 13:12:47 +03:00
Please update the following components: %s`,u)}if(e.size>0){var f=Ji(e);X(`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-09-19 13:12:47 +03:00
Please update the following components: %s`,f)}if(n.size>0){var d=Ji(n);X(`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-09-19 13:12:47 +03:00
Please update the following components: %s`,d)}if(r.size>0){var g=Ji(r);X(`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-09-19 13:12:47 +03:00
Please update the following components: %s`,g)}};var Xs=new Map,Iy=new Set;Ja.recordLegacyContextWarning=function(e,t){var n=V1(e);if(n===null){c("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(!Iy.has(e.type)){var a=Xs.get(n);(e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext=="function")&&(a===void 0&&(a=[],Xs.set(n,a)),a.push(e))}},Ja.flushLegacyContextWarning=function(){Xs.forEach(function(e,t){if(e.length!==0){var n=e[0],a=new Set;e.forEach(function(i){a.add(Xe(i)||"Component"),Iy.add(i.type)});var r=Ji(a);try{on(n),c(`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-09-19 13:12:47 +03:00
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)}finally{An()}}})},Ja.discardPendingWarnings=function(){uu=[],su=[],cu=[],fu=[],du=[],vu=[],Xs=new Map}}var tv,nv,av,rv,iv,Wy=function(e,t){};tv=!1,nv=!1,av={},rv={},iv={},Wy=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";rv[n]||(rv[n]=!0,c('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 pu(e,t,n){var a=n.ref;if(a!==null&&typeof a!="function"&&typeof a!="object"){if((e.mode&sn||Ot)&&!(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";av[r]||(c('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),av[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;Ee(a,"ref");var f=""+a;if(t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===f)return t.ref;var d=function(g){var y=u.refs;g===null?delete y[f]:y[f]=g};return d._stringRef=f,d}else{if(typeof a!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!n._owner)throw new Error("Element ref was specified as a string ("+a+`) but no owner was set. This could happen for one of the following reasons:
1. You may be adding a ref to a function component
2. You may be adding a ref to a component that was not created inside a component's render method
3. You have multiple copies of React loaded
2025-09-19 13:12:47 +03:00
See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return a}function Qs(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 Ks(e){{var t=Xe(e)||"Component";if(iv[t])return;iv[t]=!0,c("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 qy(e){var t=e._payload,n=e._init;return n(t)}function Gy(e){function t(C,H){if(e){var x=C.deletions;x===null?(C.deletions=[H],C.flags|=ji):x.push(H)}}function n(C,H){if(!e)return null;for(var x=H;x!==null;)t(C,x),x=x.sibling;return null}function a(C,H){for(var x=new Map,Y=H;Y!==null;)Y.key!==null?x.set(Y.key,Y):x.set(Y.index,Y),Y=Y.sibling;return x}function r(C,H){var x=uo(C,H);return x.index=0,x.sibling=null,x}function i(C,H,x){if(C.index=x,!e)return C.flags|=Km,H;var Y=C.alternate;if(Y!==null){var ve=Y.index;return ve<H?(C.flags|=bn,H):ve}else return C.flags|=bn,H}function o(C){return e&&C.alternate===null&&(C.flags|=bn),C}function l(C,H,x,Y){if(H===null||H.tag!==ye){var ve=em(x,C.mode,Y);return ve.return=C,ve}else{var se=r(H,x);return se.return=C,se}}function u(C,H,x,Y){var ve=x.type;if(ve===Qn)return d(C,H,x.props.children,Y,x.key);if(H!==null&&(H.elementType===ve||Zb(H,x)||typeof ve=="object"&&ve!==null&&ve.$$typeof===Ie&&qy(ve)===H.type)){var se=r(H,x.props);return se.ref=pu(C,H,x),se.return=C,se._debugSource=x._source,se._debugOwner=x._owner,se}var ze=Zp(x,C.mode,Y);return ze.ref=pu(C,H,x),ze.return=C,ze}function f(C,H,x,Y){if(H===null||H.tag!==He||H.stateNode.containerInfo!==x.containerInfo||H.stateNode.implementation!==x.implementation){var ve=tm(x,C.mode,Y);return ve.return=C,ve}else{var se=r(H,x.children||[]);return se.return=C,se}}function d(C,H,x,Y,ve){if(H===null||H.tag!==I){var se=ki(x,C.mode,Y,ve);return se.return=C,se}else{var ze=r(H,x);return ze.return=C,ze}}function g(C,H,x){if(typeof H=="string"&&H!==""||typeof H=="number"){var Y=em(""+H,C.mode,x);return Y.return=C,Y}if(typeof H=="object"&&H!==null){switch(H.$$typeof){case ra:{var ve=Zp(H,C.mode,x);return ve.ref=pu(C,null,H),ve.return=C,ve}case vn:{var se=tm(H,C.mode,x);return se.return=C,se}case Ie:{var ze=H._payload,qe=H._init;return g(C,qe(ze),x)}}if(lt(H)||z(H)){var Bt=ki(H,C.mode,x,null);return Bt.return=C,Bt}Qs(C,H)}return typeof H=="function"&&Ks(C),null}function y(C,H,x,Y){var ve=H!==null?H.key:null;if(typeof x=="string"&&x!==""||typeof x=="number")return ve!==null?null:l(C,H,""+x,Y);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case ra:return x.key===ve?u(C,H,x,Y):null;case vn:return x.key===ve?f(C,H,x,Y):null;case Ie:{var se=x._payload,ze=x._init;return y(C,H,ze(se),Y)}}if(lt(x)||z(x))return ve!==null?null:d(C,H,x,Y,null);Qs(C,x)}return typeof x=="function"&&Ks(C),null}function R(C,H,x,Y,ve){if(typeof Y=="string"&&Y!==""||typeof Y=="number"){var se=C.get(x)||null;return l(H,se,""+Y,ve)}if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case ra:{var ze=C.get(Y.key===null?x:Y.key)||null;return u(H,ze,Y,ve)}case vn:{var qe=C.get(Y.key===null?x:Y.key)||null;return f(H,qe,Y,ve)}case Ie:var Bt=Y._payload,Et=Y._init;return R(C,H,x,Et(Bt),ve)}if(lt(Y)||z(Y)){var mn=C.get(x)||null;return d(H,mn,Y,ve,null)}Qs(H,Y)}return typeof Y=="function"&&Ks(H),null}function _(C,H,x){{if(typeof C!="object"||C===null)return H;switch(C.$$typeof){case ra:case vn:Wy(C,x);var Y=C.key;if(typeof Y!="string")break;if(H===null){H=new Set,H.add(Y);break}if(!H.has(Y)){H.add(Y);break}c("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Y);break;case Ie:var ve=C._payload,se=C._init;_(se(ve),H,x);break}}return H}function U(C,H,x,Y){for(var
`,n+=l}c(`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-09-19 13:12:47 +03:00
`,t,n)}}}function ea(){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-09-19 13:12:47 +03:00
See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Rv(e,t){if(xv)return!1;if(t===null)return c("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",F),!1;e.length!==t.length&&c(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
Previous: %s
2025-09-19 13:12:47 +03:00
Incoming: %s`,F,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var n=0;n<t.length&&n<e.length;n++)if(!La(e[n],t[n]))return!1;return!0}function Jo(e,t,n,a,r,i){to=i,Vt=t,Pa=e!==null?e._debugHookTypes:null,Ei=-1,xv=e!==null&&e.type!==t.type,t.memoizedState=null,t.updateQueue=null,t.lanes=$,e!==null&&e.memoizedState!==null?de.current=Mg:Pa!==null?de.current=kg:de.current=_g;var o=n(a,r);if(bu){var l=0;do{if(bu=!1,Su=0,l>=aR)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");l+=1,xv=!1,wn=null,Dn=null,t.updateQueue=null,Ei=-1,de.current=Lg,o=n(a,r)}while(bu)}de.current=xc,t._debugHookTypes=Pa;var u=wn!==null&&wn.next!==null;if(to=$,Vt=null,wn=null,Dn=null,F=null,Pa=null,Ei=-1,e!==null&&(e.flags&Hr)!==(t.flags&Hr)&&(e.mode&dt)!==Ae&&c("Internal React error: Expected static flag was missing. Please notify the React team."),fc=!1,u)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return o}function Zo(){var e=Su!==0;return Su=0,e}function sg(e,t,n){t.updateQueue=e.updateQueue,(t.mode&cr)!==Ae?t.flags&=-50333701:t.flags&=-2053,e.lanes=ds(e.lanes,n)}function cg(){if(de.current=xc,fc){for(var e=Vt.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}fc=!1}to=$,Vt=null,wn=null,Dn=null,Pa=null,Ei=-1,F=null,Cg=!1,bu=!1,Su=0}function mr(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dn===null?Vt.memoizedState=Dn=e:Dn=Dn.next=e,Dn}function Ya(){var e;if(wn===null){var t=Vt.alternate;t!==null?e=t.memoizedState:e=null}else e=wn.next;var n;if(Dn===null?n=Vt.memoizedState:n=Dn.next,n!==null)Dn=n,n=Dn.next,wn=e;else{if(e===null)throw new Error("Rendered more hooks than during the previous render.");wn=e;var a={memoizedState:wn.memoizedState,baseState:wn.baseState,baseQueue:wn.baseQueue,queue:wn.queue,next:null};Dn===null?Vt.memoizedState=Dn=a:Dn=Dn.next=a}return Dn}function fg(){return{lastEffect:null,stores:null}}function wv(e,t){return typeof t=="function"?t(e):t}function Dv(e,t,n){var a=mr(),r;n!==void 0?r=n(t):r=t,a.memoizedState=a.baseState=r;var i={pending:null,interleaved:null,lanes:$,dispatch:null,lastRenderedReducer:e,lastRenderedState:r};a.queue=i;var o=i.dispatch=uR.bind(null,Vt,i);return[a.memoizedState,o]}function _v(e,t,n){var a=Ya(),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=wn,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&&c("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),i.baseQueue=o=l,r.pending=null}if(o!==null){var d=o.next,g=i.baseState,y=null,R=null,_=null,U=d;do{var ie=U.lane;if(ko(to,ie)){if(_!==null){var xe={lane:Un,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null};_=_.next=xe}if(U.hasEagerState)g=U.eagerState;else{var pt=U.action;g=e(g,pt)}}else{var ke={lane:ie,action:U.action,hasEagerState:U.hasEagerState,eagerState:U.eagerState,next:null};_===null?(R=_=ke,y=g):_=_.next=ke,Vt.lanes=tt(Vt.lanes,ie),Bu(ie)}U=U.next}while(U!==null&&U!==d);_===null?y=g:_.next=R,La(g,a.memoizedState)||ku(),a.memoizedState=g,a.baseState=y,a.baseQueue=_,r.lastRenderedState=g}var ut=r.interleaved;if(ut!==null){var C=ut;do{var H=C.lane;Vt.lanes=tt(Vt.lanes,H),Bu(H),C=C.next}while(C!==ut)}else o===null&&(r.lanes=$);var x=r.dispatch;return[a.memoizedState,x]}function kv(e,t,n){var a=Ya(),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 d=f.action;l=e(l,d),f=f.next}while(f!==u);La(l,a.memoizedState)||ku(),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 Mv(e,t,n){var a=Vt,r=mr(),i,o=$n();if(o){if(n===void 0)throw new Error("Missing getServerSnapshot, which is r
2025-09-19 13:12:47 +03:00
.Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),t.contextTypes&&!Ru.has(t)&&(e.mode&sn)===Ae&&(Ru.add(t),c(`%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-09-19 13:12:47 +03:00
Learn more about this warning here: https://reactjs.org/link/legacy-context`,r)),a.contextTypes&&c("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",r),t.contextType&&t.contextTypes&&!tp.has(t)&&(tp.add(t),c("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",r)),typeof a.componentShouldUpdate=="function"&&c("%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"&&c("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",wt(t)||"A pure component"),typeof a.componentDidUnmount=="function"&&c("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",r),typeof a.componentDidReceiveProps=="function"&&c("%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"&&c("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",r),typeof a.UNSAFE_componentWillRecieveProps=="function"&&c("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",r);var o=a.props!==n;a.props!==void 0&&o&&c("%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&&c("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"&&!Kv.has(t)&&(Kv.add(t),c("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",wt(t))),typeof a.getDerivedStateFromProps=="function"&&c("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof a.getDerivedStateFromError=="function"&&c("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",r),typeof t.getSnapshotBeforeUpdate=="function"&&c("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",r);var l=a.state;l&&(typeof l!="object"||lt(l))&&c("%s.state: must be set to an object or null",r),typeof a.getChildContext=="function"&&typeof t.childContextTypes!="object"&&c("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",r)}}function Vg(e,t){t.updater=rp,e.stateNode=t,ZT(t,e),t._reactInternalInstance=Gv}function Bg(e,t,n){var a=!1,r=Oa,i=Oa,o=t.contextType;if("contextType"in t){var l=o===null||o!==void 0&&o.$$typeof===h&&o._context===void 0;if(!l&&!np.has(t)){np.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===Cr?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(", ")+"}.",c("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",wt(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-09-19 13:12:47 +03:00
https://reactjs.org/link/unsafe-component-lifecycles`,ie,ke,R!==null?`
`+R:"",_!==null?`
`+_:"",U!==null?`
`+U:""))}}}return a&&My(e,r,i),d}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&&(c("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Xe(e)||"Component"),rp.enqueueReplaceState(t,t.state,null))}function $g(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";Xv.has(i)||(Xv.add(i),c("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",i))}rp.enqueueReplaceState(t,t.state,null)}}function ip(e,t,n,a){vR(e,t,n);var r=e.stateNode;r.props=n,r.state=e.memoizedState,r.refs={},pv(e);var i=t.contextType;if(typeof i=="object"&&i!==null)r.context=Sn(i);else{var o=Fo(e,t,!0);r.context=Vo(e,o)}{if(r.state===n){var l=wt(t)||"Component";ep.has(l)||(ep.add(l),c("%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&sn&&Ja.recordLegacyContextWarning(e,r),Ja.recordUnsafeLifecycleWarnings(e,r)}r.state=e.memoizedState;var u=t.getDerivedStateFromProps;if(typeof u=="function"&&(ap(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),oc(e,n,r,a),r.state=e.memoizedState),typeof r.componentDidMount=="function"){var f=Dt;f|=zi,(e.mode&cr)!==Ae&&(f|=li),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=Oa;if(typeof l=="object"&&l!==null)u=Sn(l);else{var f=Fo(e,t,!0);u=Vo(e,f)}var d=t.getDerivedStateFromProps,g=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function";!g&&(typeof r.UNSAFE_componentWillReceiveProps=="function"||typeof r.componentWillReceiveProps=="function")&&(i!==n||o!==u)&&$g(e,r,n,u),ag();var y=e.memoizedState,R=r.state=y;if(oc(e,n,r,a),R=e.memoizedState,i===n&&y===R&&!Bs()&&!lc()){if(typeof r.componentDidMount=="function"){var _=Dt;_|=zi,(e.mode&cr)!==Ae&&(_|=li),e.flags|=_}return!1}typeof d=="function"&&(ap(e,t,d,n),R=e.memoizedState);var U=lc()||Fg(e,t,i,n,y,R,u);if(U){if(!g&&(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 ie=Dt;ie|=zi,(e.mode&cr)!==Ae&&(ie|=li),e.flags|=ie}}else{if(typeof r.componentDidMount=="function"){var ke=Dt;ke|=zi,(e.mode&cr)!==Ae&&(ke|=li),e.flags|=ke}e.memoizedProps=n,e.memoizedState=R}return r.props=n,r.state=R,r.context=u,U}function hR(e,t,n,a,r){var i=t.stateNode;ng(e,t);var o=t.memoizedProps,l=t.type===t.elementType?o:tr(t.type,o);i.props=l;var u=t.pendingProps,f=i.context,d=n.contextType,g=Oa;if(typeof d=="object"&&d!==null)g=Sn(d);else{var y=Fo(t,n,!0);g=Vo(t,y)}var R=n.getDerivedStateFromProps,_=typeof R=="function"||typeof i.getSnapshotBeforeUpdate=="function";!_&&(typeof i.UNSAFE_componentWillReceiveProps=="function"||typeof i.componentWillReceiveProps=="function")&&(o!==u||f!==g)&&$g(t,i,a,g),ag();var U=t.memoizedState,ie=i.state=U;if(oc(t,a,i,r),ie=t.memoizedState,o===u&&U===ie&&!Bs()&&!lc()&&!Ve)return typeof i.componentDidUpdate=="function"&&(o!==e.memoizedProps||U!==e.memoizedState)&&(t.flags|=Dt),typeof i.getSnapshotBeforeUpdate=="function"&&(o!==e.memoizedProps||U!==e.memoizedState)&&(t.flags|=Eo),!1;typeof R=="function"&&(ap(t,n,R,a),ie=t.memoizedState);var ke=lc()||Fg(t,n,l,a,U,ie,g)||Ve;return ke?(!_&&(typeof i.UNSAFE_componentWillUpdate=="function"||typeof i.componentWillUpdate=="function")&&
Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var d=Xe(e)||"Anonymous";f="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+d+".")}var g=u+`
`+o+`
2025-09-19 13:12:47 +03:00
`+(""+f);console.error(g)}catch(y){setTimeout(function(){throw y})}}var gR=typeof WeakMap=="function"?WeakMap:Map;function Pg(e,t,n){var a=Wr(tn,n);a.tag=dv,a.payload={element:null};var r=t.value;return a.callback=function(){cD(r),lp(e,t)},a}function up(e,t,n){var a=Wr(tn,n);a.tag=dv;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;a.payload=function(){return r(i)},a.callback=function(){eS(e),lp(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(a.callback=function(){eS(e),lp(e,t),typeof r!="function"&&uD(this);var u=t.value,f=t.stack;this.componentDidCatch(u,{componentStack:f!==null?f:""}),typeof r!="function"&&(_a(e.lanes,Pe)||c("%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 Yg(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);Ga&&$u(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&dt)===Ae&&(n===he||n===Oe||n===$e)){var a=e.alternate;a?(e.updateQueue=a.updateQueue,e.memoizedState=a.memoizedState,e.lanes=a.lanes):(e.updateQueue=null,e.memoizedState=null)}}function Ig(e){var t=e;do{if(t.tag===L&&eR(t))return t;t=t.return}while(t!==null);return null}function Wg(e,t,n,a,r){if((e.mode&dt)===Ae){if(e===t)e.flags|=sa;else{if(e.flags|=_t,n.flags|=Df,n.flags&=-52805,n.tag===ne){var i=n.alternate;if(i===null)n.tag=ht;else{var o=Wr(tn,Pe);o.tag=nc,bi(n,o,Pe)}}n.lanes=tt(n.lanes,Pe)}return e}return e.flags|=sa,e.lanes=r,e}function TR(e,t,n,a,r){if(n.flags|=is,Ga&&$u(e,r),a!==null&&typeof a=="object"&&typeof a.then=="function"){var i=a;SR(n),$n()&&n.mode&dt&&Hy();var o=Ig(t);if(o!==null){o.flags&=~jr,Wg(o,t,n,e,r),o.mode&dt&&Yg(e,i,r),bR(o,e,i);return}else{if(!P0(r)){Yg(e,i,r),Bp();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($n()&&n.mode&dt){Hy();var u=Ig(t);if(u!==null){(u.flags&sa)===Ue&&(u.flags|=jr),Wg(u,t,n,e,r),ev(no(a,n));return}}a=no(a,n),eD(a);var f=t;do{switch(f.tag){case oe:{var d=a;f.flags|=sa;var g=Ol(r);f.lanes=tt(f.lanes,g);var y=Pg(f,d,g);mv(f,y);return}case ne:var R=a,_=f.type,U=f.stateNode;if((f.flags&_t)===Ue&&(typeof _.getDerivedStateFromError=="function"||U!==null&&typeof U.componentDidCatch=="function"&&!Ib(U))){f.flags|=sa;var ie=Ol(r);f.lanes=tt(f.lanes,ie);var ke=up(f,R,ie);mv(f,ke);return}break}f=f.return}while(f!==null)}function ER(){return null}var wu=me.ReactCurrentOwner,nr=!1,sp,Du,cp,fp,dp,ao,vp,Lc,_u;sp={},Du={},cp={},fp={},dp={},ao=!1,vp={},Lc={},_u={};function ca(e,t,n,a){e===null?t.child=Xy(t,null,n,a):t.child=Yo(t,e.child,n,a)}function CR(e,t,n,a){t.child=Yo(t,e.child,null,a),t.child=Yo(t,null,n,a)}function qg(e,t,n,a,r){if(t.type!==t.elementType){var i=n.propTypes;i&&Qa(i,a,"prop",wt(n))}var o=n.render,l=t.ref,u,f;Wo(t,r),wl(t);{if(wu.current=t,Fa(!0),u=Jo(e,t,o,a,l,r),f=Zo(),t.mode&sn){jn(!0);try{u=Jo(e,t,o,a,l,r),f=Zo()}finally{jn(!1)}}Fa(!1)}return Ro(),e!==null&&!nr?(sg(e,t,r),qr(e,t,r)):($n()&&f&&Gd(t),t.flags|=To,ca(e,t,u,r),t.child)}function Gg(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=ll(i),t.tag=$e,t.type=o,hp(t,i),Xg(e,t,o,a,r)}{var l=i.propTypes;if(l&&Qa(l,a,"prop",wt(i)),n.defaultProps!==void 0){var u=wt(i)||"Unknown";_u[u]||(c("%s: Support for defaultProps will be removed from memo components in a future major release. Use JavaScript default parameters instead.",u),_u[u]=!0)}}var f=Jp(n.type,null,a,t,t.mode,r);return f.ref=t.ref,f.return=t,t.child=f,f}{var d=n.type,g=d.propTypes;g&&Qa(g,a,"prop",wt(d))}var y=e.child,R=Ep(e,r);if(!R){var _=y.memoizedProps,U=n.compare;if(U=U!==null?U:ql,U(_,a)&&e.ref===t.
2025-09-19 13:12:47 +03:00
Check the render method of \``+a+"`.");var r=a||"",i=e._debugSource;i&&(r=i.fileName+":"+i.lineNumber),dp[r]||(dp[r]=!0,c("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=wt(t)||"Unknown";_u[o]||(c("%s: Support for defaultProps will be removed from function components in a future major release. Use JavaScript default parameters instead.",o),_u[o]=!0)}if(typeof t.getDerivedStateFromProps=="function"){var l=wt(t)||"Unknown";fp[l]||(c("%s: Function components do not support getDerivedStateFromProps.",l),fp[l]=!0)}if(typeof t.contextType=="object"&&t.contextType!==null){var u=wt(t)||"Unknown";cp[u]||(c("%s: Function components do not support contextType.",u),cp[u]=!0)}}}var yp={dehydrated:null,treeContext:null,retryLane:Un};function gp(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 bv(e,yu)}function jR(e,t){return ds(e.childLanes,t)}function tb(e,t,n){var a=t.pendingProps;YD(t)&&(t.flags|=_t);var r=Za.current,i=!1,o=(t.flags&_t)!==Ue;if(o||NR(r,e)?(i=!0,t.flags&=~_t):(e===null||e.memoizedState!==null)&&(r=Z1(r,ug)),r=Go(r),Ti(t,r),e===null){Zd(t);var l=t.memoizedState;if(l!==null){var u=l.dehydrated;if(u!==null)return VR(t,u)}var f=a.children,d=a.fallback;if(i){var g=UR(t,f,d,n),y=t.child;return y.memoizedState=gp(n),t.memoizedState=yp,g}else return bp(t,f)}else{var R=e.memoizedState;if(R!==null){var _=R.dehydrated;if(_!==null)return BR(e,t,o,a,_,R,n)}if(i){var U=a.fallback,ie=a.children,ke=zR(e,t,ie,U,n),xe=t.child,pt=e.child.memoizedState;return xe.memoizedState=pt===null?gp(n):AR(pt,n),xe.childLanes=jR(e,n),t.memoizedState=yp,ke}else{var ut=a.children,C=HR(e,t,ut,n);return t.memoizedState=null,C}}}function bp(e,t,n){var a=e.mode,r={mode:"visible",children:t},i=Sp(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&dt)===Ae&&i!==null?(l=i,l.childLanes=$,l.pendingProps=o,e.mode&Ft&&(l.actualDuration=0,l.actualStartTime=-1,l.selfBaseDuration=0,l.treeBaseDuration=0),u=ki(n,r,a,null)):(l=Sp(o,r),u=ki(n,r,a,null)),l.return=e,u.return=e,l.sibling=u,e.child=l,u}function Sp(e,t,n){return nS(e,t,$,null)}function nb(e,t){return uo(e,t)}function HR(e,t,n,a){var r=e.child,i=r.sibling,o=nb(r,{mode:"visible",children:n});if((t.mode&dt)===Ae&&(o.lanes=a),o.return=t,o.sibling=null,i!==null){var l=t.deletions;l===null?(t.deletions=[i],t.flags|=ji):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&dt)===Ae&&t.child!==o){var d=t.child;f=d,f.childLanes=$,f.pendingProps=u,t.mode&Ft&&(f.actualDuration=0,f.actualStartTime=-1,f.selfBaseDuration=o.selfBaseDuration,f.treeBaseDuration=o.treeBaseDuration),t.deletions=null}else f=nb(o,u),f.subtreeFlags=o.subtreeFlags&Hr;var g;return l!==null?g=uo(l,a):(g=ki(a,i,r,null),g.flags|=bn),g.return=t,f.return=t,f.sibling=g,t.child=f,g}function Oc(e,t,n,a){a!==null&&ev(a),Yo(t,e.child,null,n);var r=t.pendingProps,i=r.children,o=bp(t,i);return o.flags|=bn,t.memoizedState=null,o}function FR(e,t,n,a,r){var i=t.mode,o={mode:"visible",children:n},l=Sp(o,i),u=ki(a,i,r,null);return u.flags|=bn,l.return=t,u.return=t,l.sibling=u,t.child=l,(t.mode&dt)!==Ae&&Yo(t,e.child,null,r),u}function VR(e,t,n){return(e.mode&dt)===Ae?(c("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=Pe):zd(t)?e.lanes=Bi:e.lanes=Da,null}function BR(e,t,n,a,r,i,o){if(n)if(t.flags&jr){t.flags&=~jr;var C=op(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return Oc(e,t,o,C)}else{if(t.memoizedState!==null)return t.child=e.child,t.flags|=_t,null;var H=a.children,x=a.fallba
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-09-19 13:12:47 +03:00
Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:f=" You returned: "+l,c("%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&Dt)!==Ue)switch(t.tag){case Lt:{var n=t.stateNode.passiveEffectDuration,a=t.memoizedProps,r=a.id,i=a.onPostCommit,o=Ng(),l=t.alternate===null?"mount":"update";Ag()&&(l="nested-update"),typeof i=="function"&&i(r,l,n,o);var u=t.return;e:for(;u!==null;){switch(u.tag){case oe:var f=u.stateNode;f.passiveEffectDuration+=n;break e;case Lt:var d=u.stateNode;d.passiveEffectDuration+=n;break e}u=u.return}break}}}function sw(e,t,n,a){if((n.flags&Rl)!==Ue)switch(n.tag){case he:case Oe:case $e:{if(!In)if(n.mode&Ft)try{gr(),xi(Rn|xn,n)}finally{yr(n)}else xi(Rn|xn,n);break}case ne:{var r=n.stateNode;if(n.flags&Dt&&!In)if(t===null)if(n.type===n.elementType&&!ao&&(r.props!==n.memoizedProps&&c("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&&c("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&Ft)try{gr(),r.componentDidMount()}finally{yr(n)}else r.componentDidMount();else{var i=n.elementType===n.type?t.memoizedProps:tr(n.type,t.memoizedProps),o=t.memoizedState;if(n.type===n.elementType&&!ao&&(r.props!==n.memoizedProps&&c("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&&c("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&Ft)try{gr(),r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}finally{yr(n)}else r.componentDidUpdate(i,o,r.__reactInternalSnapshotBeforeUpdate)}var l=n.updateQueue;l!==null&&(n.type===n.elementType&&!ao&&(r.props!==n.memoizedProps&&c("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&&c("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")),rg(n,l,r));break}case oe:{var u=n.updateQueue;if(u!==null){var f=null;if(n.child!==null)switch(n.child.tag){case Q:f=n.child.stateNode;break;case ne:f=n.child.stateNode;break}rg(n,u,f)}break}case Q:{var d=n.stateNode;if(t===null&&n.flags&Dt){var g=n.type,y=n.memoizedProps;Dx(d,g,y)}break}case ye:break;case He:break;case Lt:{{var R=n.memoizedProps,_=R.onCommit,U=R.onRender,ie=n.stateNode.effectDuration,ke=Ng(),xe=t===null?"mount":"update";Ag()&&(xe="nested-update"),typeof U=="function"&&U(n.memoizedProps.id,xe,n.actualDuration,n.treeBaseDuration,n.actualStartTime,ke);{typeof _=="function"&&_(n.memoizedProps.id,xe,ie,ke),oD(n);var pt=n.return;e:for(;pt!==null;){switch(pt.tag){case oe:var ut=pt.stateNode;ut.effectDuration+=ie;break e;case Lt:var C=pt.stateNode;C.effectDuration+=ie;break e}pt=pt.return}}}break}case L:{yw(e,n);break}case _e:case ht:case re:case Ce:case ue:case le: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.")}In||n.flags&Ui&&bb(n)}function cw(e){switch(e.tag){case he:case Oe:case $e:{if(e.mode&Ft)try{gr(),hb(e,e.return)}finally{yr(e)}else hb(e,e.return);break}case ne:{var t=e.stateNode;typeof t.componentDidMount=="function"&&aw(e,
Error message:
2025-09-19 13:12:47 +03:00
%s`,n)}function fD(e,t,n){var a=e.pingCache;a!==null&&a.delete(t);var r=da();gh(e,n),SD(e),fa===e&&ko(kn,n)&&(Mn===Au||Mn===Uc&&ph(kn)&&Nn()-Op<Ob?oo(e,$):zc=tt(zc,n)),Ca(e,r)}function qb(e,t){t===Un&&(t=Iw(e));var n=da(),a=Sa(e,t);a!==null&&(Al(a,t,n),Ca(a,n))}function dD(e){var t=e.memoizedState,n=Un;t!==null&&(n=t.retryLane),qb(e,n)}function vD(e,t){var n=Un,a;switch(e.tag){case L:a=e.stateNode;var r=e.memoizedState;r!==null&&(n=r.retryLane);break;case _e: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),qb(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(Fu>Pw)throw Fu=0,Up=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.");il>Yw&&(il=0,Bc=null,c("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(){Ja.flushLegacyContextWarning(),Ja.flushPendingUnsafeLifecycleWarnings()}function Gb(e,t){on(e),Wc(e,li,jw),t&&Wc(e,Mf,Uw),Wc(e,li,Aw),t&&Wc(e,Mf,Nw),An()}function Wc(e,t,n){for(var a=e,r=null;a!==null;){var i=a.subtreeFlags&t;a!==r&&a.child!==null&&i!==Ue?a=a.child:((a.flags&t)!==Ue&&n(a),a.sibling!==null?a=a.sibling:a=r=a.return)}}var qc=null;function Xb(e){{if((vt&Gn)!==_n||!(e.mode&dt))return;var t=e.tag;if(t!==nt&&t!==oe&&t!==ne&&t!==he&&t!==Oe&&t!==K&&t!==$e)return;var n=Xe(e)||"ReactComponent";if(qc!==null){if(qc.has(n))return;qc.add(n)}else qc=new Set([n]);var a=oa;try{on(e),c("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?on(e):An()}}}var $p;{var yD=null;$p=function(e,t,n){var a=aS(yD,t);try{return ub(e,t,n)}catch(i){if(k1()||i!==null&&typeof i=="object"&&typeof i.then=="function")throw i;if(ec(),cg(),pb(e,t),aS(t,a),t.mode&Ft&&Yv(t),xf(null,ub,null,e,t,n),KT()){var r=Rf();typeof r=="object"&&r!==null&&r._suppressLogging&&typeof i=="object"&&i!==null&&!i._suppressLogging&&(i._suppressLogging=!0)}throw i}}}var Qb=!1,Pp;Pp=new Set;function gD(e){if(Li&&!lR())switch(e.tag){case he:case Oe:case $e:{var t=un&&Xe(un)||"Unknown",n=t;if(!Pp.has(n)){Pp.add(n);var a=Xe(e)||"Unknown";c("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:{Qb||(c("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Qb=!0);break}}}function $u(e,t){if(Ga){var n=e.memoizedUpdaters;n.forEach(function(a){bh(e,a,t)})}}var Yp={};function Ip(e,t){{var n=or.current;return n!==null?(n.push(t),Yp):ih(e,t)}}function Kb(e){if(e!==Yp)return i0(e)}function Jb(){return or.current!==null}function bD(e){{if(e.mode&dt){if(!kb())return}else if(!Vw()||vt!==_n||e.tag!==he&&e.tag!==Oe&&e.tag!==$e)return;if(or.current===null){var t=oa;try{on(e),c(`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-09-19 13:12:47 +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?on(e):An()}}}}function SD(e){e.tag!==hi&&kb()&&or.current===null&&c(`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-09-19 13:12:47 +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 Pu(e){jb=e}var Wa=null,ol=null,TD=function(e){Wa=e};function ll(e){{if(Wa===null)return e;var t=Wa(e);return t===void 0?e:t.current}}function Wp(e){return ll(e)}function qp(e){{if(Wa===null)return e;var t=Wa(e);if(t===void 0){if(e!=null&&typeof e.render=="function"){var n=ll(e.render);if(e.render!==n){var a={$$typeof:B,render:n};return e.displayName!==void 0&&(a.displayName=e.displayName),a}}return e}return t.current}}function Zb(e,t){{if(Wa===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 he:{(typeof a=="function"||i===Ie)&&(r=!0);break}case Oe:{(i===B||i===Ie)&&(r=!0);break}case K:case $e:{(i===Ze||i===Ie)&&(r=!0);break}default:return!1}if(r){var o=Wa(n);if(o!==void 0&&o===Wa(a))return!0}return!1}}function eS(e){{if(Wa===null||typeof WeakSet!="function")return;ol===null&&(ol=new WeakSet),ol.add(e)}}var ED=function(e,t){{if(Wa===null)return;var n=t.staleFamilies,a=t.updatedFamilies;Kr(),Qr(function(){Gp(e.current,a,n)})}},CD=function(e,t){{if(e.context!==Oa)return;Kr(),Qr(function(){Yu(t,e,null,null)})}};function Gp(e,t,n){{var a=e.alternate,r=e.child,i=e.sibling,o=e.tag,l=e.type,u=null;switch(o){case he:case $e:case ne:u=l;break;case Oe:u=l.render;break}if(Wa===null)throw new Error("Expected resolveFamily to be set during hot reload.");var f=!1,d=!1;if(u!==null){var g=Wa(u);g!==void 0&&(n.has(g)?d=!0:t.has(g)&&(o===ne?d=!0:f=!0))}if(ol!==null&&(ol.has(e)||a!==null&&ol.has(a))&&(d=!0),d&&(e._debugNeedsRemount=!0),d||f){var y=Sa(e,Pe);y!==null&&Ln(y,e,Pe,tn)}r!==null&&!d&&Gp(r,t,n),i!==null&&Gp(i,t,n)}}var xD=function(e,t){{var n=new Set,a=new Set(t.map(function(r){return r.current}));return Xp(e.current,a,n),n}};function Xp(e,t,n){{var a=e.child,r=e.sibling,i=e.tag,o=e.type,l=null;switch(i){case he:case $e:case ne:l=o;break;case Oe:l=o.render;break}var u=!1;l!==null&&t.has(l)&&(u=!0),u?RD(e,n):a!==null&&Xp(a,t,n),r!==null&&Xp(r,t,n)}}function RD(e,t){{var n=wD(e,t);if(n)return;for(var a=e;;){switch(a.tag){case Q:t.add(a.stateNode);return;case He:t.add(a.stateNode.containerInfo);return;case oe: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===Q)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 Qp;{Qp=!1;try{var tS=Object.preventExtensions({})}catch{Qp=!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=Ue,this.subtreeFlags=Ue,this.deletions=null,this.lanes=$,this.childLanes=$,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,!Qp&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var Aa=function(e,t,n,a){return new DD(e,t,n,a)};function Kp(e){var t=e.prototype;return!!(t&&t.isReactComponent)}function _D(e){return typeof e=="function"&&!Kp(e)&&e.defaultProps===void 0}function kD(e){if(typeof e=="function")return Kp(e)?ne:he;if(e!=null){var t=e.$$typeof;if(t===B)return Oe;if(t===Ze)return K}return nt}function uo(e,t){var n=e.alternate;n===null?(n=Aa(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._debug
2025-09-19 13:12:47 +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 d=Aa(o,n,t,r);return d.elementType=e,d.type=l,d.lanes=i,d._debugOwner=a,d}function Zp(e,t,n){var a=null;a=e._owner;var r=e.type,i=e.key,o=e.props,l=Jp(r,i,o,a,t,n);return l._debugSource=e._source,l._debugOwner=e._owner,l}function ki(e,t,n,a){var r=Aa(I,e,a,t);return r.lanes=n,r}function OD(e,t,n,a){typeof e.id!="string"&&c('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id);var r=Aa(Lt,e,a,t|Ft);return r.elementType=ja,r.lanes=n,r.stateNode={effectDuration:0,passiveEffectDuration:0},r}function AD(e,t,n,a){var r=Aa(L,e,a,t);return r.elementType=ae,r.lanes=n,r}function ND(e,t,n,a){var r=Aa(_e,e,a,t);return r.elementType=fe,r.lanes=n,r}function nS(e,t,n,a){var r=Aa(Ce,e,a,t);r.elementType=N,r.lanes=n;var i={isHidden:!1};return r.stateNode=i,r}function em(e,t,n){var a=Aa(ye,e,null,t);return a.lanes=n,a}function jD(){var e=Aa(Q,null,null,Ae);return e.elementType="DELETED",e}function UD(e){var t=Aa(Qt,null,null,Ae);return t.stateNode=e,t}function tm(e,t,n){var a=e.children!==null?e.children:[],r=Aa(He,a,e.key,t);return r.lanes=n,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}function aS(e,t){return e===null&&(e=Aa(nt,null,null,Ae)),e.tag=t.tag,e.key=t.key,e.elementType=t.elementType,e.type=t.type,e.stateNode=t.stateNode,e.return=t.return,e.child=t.child,e.sibling=t.sibling,e.index=t.index,e.ref=t.ref,e.pendingProps=t.pendingProps,e.memoizedProps=t.memoizedProps,e.updateQueue=t.updateQueue,e.memoizedState=t.memoizedState,e.dependencies=t.dependencies,e.mode=t.mode,e.flags=t.flags,e.subtreeFlags=t.subtreeFlags,e.deletions=t.deletions,e.lanes=t.lanes,e.childLanes=t.childLanes,e.alternate=t.alternate,e.actualDuration=t.actualDuration,e.actualStartTime=t.actualStartTime,e.selfBaseDuration=t.selfBaseDuration,e.treeBaseDuration=t.treeBaseDuration,e._debugSource=t._debugSource,e._debugOwner=t._debugOwner,e._debugNeedsRemount=t._debugNeedsRemount,e._debugHookTypes=t._debugHookTypes,e}function 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=Ud,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Un,this.eventTimes=id($),this.expirationTimes=id(tn),this.pendingLanes=$,this.suspendedLanes=$,this.pingedLanes=$,this.expiredLanes=$,this.mutableReadLanes=$,this.finishedLanes=$,this.entangledLanes=$,this.entanglements=id($),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<Uf;o++)i.push(new Set)}switch(t){case Ys:this._debugRootType=n?"hydrateRoot()":"createRoot()";break;case hi:this._debugRootType=n?"hydrate()":"render()";break}}function rS(e,t,n,a,r,i,o,l,u,f){var d=new HD(e,t,n,l,u),g=LD(t,i);d.current=g,g.stateNode=d;{var y={element:a,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null};g.memoizedState=y}return pv(g),d}var nm="18.3.1";function zD(e,t,n){var a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return Te(a),{$$typeof:vn,key:a==null?null:""+a,children:e,containerInfo:t,implementation:n}}var am,rm;am=!1,rm={};function iS(e){if(!e)return Oa;var t=So(e),n=S1(t);if(t.tag===ne){var a=t.type;if(vr(a))return Oy(t,a,n)}return n}function FD(e,t){{var n=So(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=nh(n);if(r===null)return null;if(r.mode&sn){var i=Xe(n)||"Component";if(!rm[i]){rm[i]=!0;var o=oa;try{on(r),n.mode&sn?c("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside Strict
2025-09-19 13:12:47 +03:00
Check the render method of %s.`,Xe(oa)||"Unknown"));var u=Wr(i,o);u.payload={element:e},a=a===void 0?null:a,a!==null&&(typeof a!="function"&&c("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a),u.callback=a);var f=bi(r,u,o);return f!==null&&(Ln(f,r,o,i),ic(f,r,o)),o}function Gc(e){var t=e.current;if(!t.child)return null;switch(t.child.tag){case Q:return t.child.stateNode;default:return t.child.stateNode}}function VD(e){switch(e.tag){case oe:{var t=e.stateNode;if(ps(t)){var n=$0(t);Qw(t,n)}break}case L:{Qr(function(){var r=Sa(e,Pe);if(r!==null){var i=da();Ln(r,e,Pe,i)}});var a=Pe;im(e,a);break}}}function uS(e,t){var n=e.memoizedState;n!==null&&n.dehydrated!==null&&(n.retryLane=G0(n.retryLane,t))}function im(e,t){uS(e,t);var n=e.alternate;n&&uS(n,t)}function BD(e){if(e.tag===L){var t=kl,n=Sa(e,t);if(n!==null){var a=da();Ln(n,e,t,a)}im(e,t)}}function $D(e){if(e.tag===L){var t=Di(e),n=Sa(e,t);if(n!==null){var a=da();Ln(n,e,t,a)}im(e,t)}}function sS(e){var t=r0(e);return t===null?null:t.stateNode}var cS=function(e){return null};function PD(e){return cS(e)}var fS=function(e){return!1};function YD(e){return fS(e)}var dS=null,vS=null,pS=null,mS=null,hS=null,yS=null,gS=null,bS=null,SS=null;{var TS=function(e,t,n){var a=t[n],r=lt(e)?e.slice():M({},e);return n+1===t.length?(lt(r)?r.splice(a,1):delete r[a],r):(r[a]=TS(e[a],t,n+1),r)},ES=function(e,t){return TS(e,t,0)},CS=function(e,t,n,a){var r=t[a],i=lt(e)?e.slice():M({},e);if(a+1===t.length){var o=n[a];i[o]=i[r],lt(i)?i.splice(r,1):delete i[r]}else i[r]=CS(e[r],t,n,a+1);return i},xS=function(e,t,n){if(t.length!==n.length){X("copyWithRename() expects paths of the same length");return}else for(var a=0;a<n.length-1;a++)if(t[a]!==n[a]){X("copyWithRename() expects paths to be the same except for the deepest key");return}return CS(e,t,n,0)},RS=function(e,t,n,a){if(n>=t.length)return a;var r=t[n],i=lt(e)?e.slice():M({},e);return i[r]=RS(e[r],t,n+1,a),i},wS=function(e,t,n){return RS(e,t,0,n)},om=function(e,t){for(var n=e.memoizedState;n!==null&&t>0;)n=n.next,t--;return n};dS=function(e,t,n,a){var r=om(e,t);if(r!==null){var i=wS(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=M({},e.memoizedProps);var o=Sa(e,Pe);o!==null&&Ln(o,e,Pe,tn)}},vS=function(e,t,n){var a=om(e,t);if(a!==null){var r=ES(a.memoizedState,n);a.memoizedState=r,a.baseState=r,e.memoizedProps=M({},e.memoizedProps);var i=Sa(e,Pe);i!==null&&Ln(i,e,Pe,tn)}},pS=function(e,t,n,a){var r=om(e,t);if(r!==null){var i=xS(r.memoizedState,n,a);r.memoizedState=i,r.baseState=i,e.memoizedProps=M({},e.memoizedProps);var o=Sa(e,Pe);o!==null&&Ln(o,e,Pe,tn)}},mS=function(e,t,n){e.pendingProps=wS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=Sa(e,Pe);a!==null&&Ln(a,e,Pe,tn)},hS=function(e,t){e.pendingProps=ES(e.memoizedProps,t),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var n=Sa(e,Pe);n!==null&&Ln(n,e,Pe,tn)},yS=function(e,t,n){e.pendingProps=xS(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps);var a=Sa(e,Pe);a!==null&&Ln(a,e,Pe,tn)},gS=function(e){var t=Sa(e,Pe);t!==null&&Ln(t,e,Pe,tn)},bS=function(e){cS=e},SS=function(e){fS=e}}function ID(e){var t=nh(e);return t===null?null:t.stateNode}function WD(e){return null}function qD(){return oa}function GD(e){var t=e.findFiberByHostInstance,n=me.ReactCurrentDispatcher;return d0({bundleType:e.bundleType,version:e.version,rendererPackageName:e.rendererPackageName,rendererConfig:e.rendererConfig,overrideHookState:dS,overrideHookStateDeletePath:vS,overrideHookStateRenamePath:pS,overrideProps:mS,overridePropsDeletePath:hS,overridePropsRenamePath:yS,setErrorHandler:bS,setSuspenseHandler:SS,scheduleUpdate:gS,currentDispatcherRef:n,findHostInstanceByFiber:ID,findFiberByHostInstance:t||WD,findHostInstancesForRefresh:xD,scheduleRefresh:ED,scheduleRoot:CD,setRefreshHandler:TD,getCurrentFiber:qD,reconcilerVersion:nm})}var DS=typeof reportError=="function"?reportError:function(e){console.error(e)};function lm(e){this._internalRoot=e}Xc.prototype.render=lm.prototype.re
let root = createRoot(domContainer);
2025-09-19 13:12:47 +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=oS(e,Ys,null,n,a,r,i);Hs(o.current,e);var l=e.nodeType===gn?e.parentNode:e;return Ql(l),new lm(o)}function Xc(e){this._internalRoot=e}function QD(e){e&&fE(e)}Xc.prototype.unstable_scheduleHydration=QD;function KD(e,t,n){if(!Qc(e))throw new Error("hydrateRoot(...): Target container is not a DOM element.");_S(e),t===void 0&&c("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=DS;n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(l=n.identifierPrefix),n.onRecoverableError!==void 0&&(u=n.onRecoverableError));var f=lS(t,null,e,Ys,a,i,o,l,u);if(Hs(f.current,e),Ql(e),r)for(var d=0;d<r.length;d++){var g=r[d];tR(f,g)}return new Xc(f)}function Qc(e){return!!(e&&(e.nodeType===ga||e.nodeType===Nr||e.nodeType===vf))}function Iu(e){return!!(e&&(e.nodeType===ga||e.nodeType===Nr||e.nodeType===vf||e.nodeType===gn&&e.nodeValue===" react-mount-point-unstable "))}function _S(e){e.nodeType===ga&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&c("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."),lu(e)&&(e._reactRootContainer?c("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):c("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 JD=me.ReactCurrentOwner,kS;kS=function(e){if(e._reactRootContainer&&e.nodeType!==gn){var t=sS(e._reactRootContainer.current);t&&t.parentNode!==e&&c("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=um(e),r=!!(a&&pi(a));r&&!n&&c("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===ga&&e.tagName&&e.tagName.toUpperCase()==="BODY"&&c("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 um(e){return e?e.nodeType===Nr?e.documentElement:e.firstChild:null}function MS(){}function ZD(e,t,n,a,r){if(r){if(typeof a=="function"){var i=a;a=function(){var y=Gc(o);i.call(y)}}var o=lS(t,a,e,hi,null,!1,!1,"",MS);e._reactRootContainer=o,Hs(o.current,e);var l=e.nodeType===gn?e.parentNode:e;return Ql(l),Qr(),o}else{for(var u;u=e.lastChild;)e.removeChild(u);if(typeof a=="function"){var f=a;a=function(){var y=Gc(d);f.call(y)}}var d=oS(e,hi,null,!1,!1,"",MS);e._reactRootContainer=d,Hs(d.current,e);var g=e.nodeType===gn?e.parentNode:e;return Ql(g),Qr(function(){Yu(t,d,n,a)}),d}}function e_(e,t){e!==null&&typeof e!="function"&&c("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",t,e)}function Kc(e,t,n,a,r){kS(n),e_(r===void 0?null:r,"render");var i=n._reactRootContainer,o;if(!i)o=ZD(n,t,e,r,a);else{if(o=i,typeof r=="function"){var l=r;r=function(){var u=Gc(o);l.call(u)}}Yu(t,o,e,r)}return Gc(o)}var LS=!1;function t_(e){{LS||(LS=!0,c("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")}ma.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sm,ma.createPortal=o_,ma.createRoot=u_,ma.findDOMNode=t_,ma.flushSync=c_,ma.hydrate=n_,ma.hydrateRoot=s_,ma.render=a_,ma.unmountComponentAtNode=i_,ma.unstable_batchedUpdates=Fp,ma.unstable_renderSubtreeIntoContainer=l_,ma.version=nm,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}(),ma}pm.exports=zS();var FS=pm.exports,gm,bm=FS;{var Sm=bm.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;gm=function(k,w){Sm.usingClientEntryPoint=!0;try{return bm.createRoot(k,w)}finally{Sm.usingClientEntryPoint=!1}}}const P=k=>{if(isNaN(k))return"00:00:00.000";const w=Math.floor(k/3600),me=Math.floor(k%3600/60),Le=Math.floor(k%60),Me=Math.round(k%1*1e3),X=String(w).padStart(2,"0"),c=String(me).padStart(2,"0"),St=String(Le).padStart(2,"0"),he=String(Me).padStart(3,"0");return`${X}:${c}:${St}.${he}`},Mi=k=>P(k),VS=k=>P(k),pe={debug:(...k)=>{},error:(...k)=>console.error(...k),warn:(...k)=>console.warn(...k),info:(...k)=>console.info(...k)};var W=Zc();const BS=({videoRef:k,currentTime:w,duration:me,isPlaying:Le,isMuted:Me=!1,onPlayPause:X,onSeek:c,onToggleMute:St})=>{var yt;const he=W.useRef(null),[ne,nt]=W.useState(!1),[oe,He]=W.useState(!1),[Q,ye]=W.useState(null),[I,fn]=W.useState(!1),Tt=W.useRef(!1),[we,Oe]=W.useState({x:0}),[Lt,L]=W.useState(0),K=typeof window<"u"&&((yt=window.MEDIA_DATA)==null?void 0:yt.videoUrl)||"/videos/sample-video.mp4";W.useEffect(()=>{if(nt((()=>{const A=navigator.userAgent||navigator.vendor||window.opera;return/iPad|iPhone|iPod/.test(A)&&!window.MSStream})()),typeof window<"u"){const A=localStorage.getItem("video_initialized")==="true";He(A)}},[]),W.useEffect(()=>{Le&&!oe&&(He(!0),typeof window<"u"&&localStorage.setItem("video_initialized","true"))},[Le,oe]),W.useEffect(()=>{const le=k.current;if(!le)return;le.setAttribute("playsinline","true"),le.setAttribute("webkit-playsinline","true"),le.setAttribute("x-webkit-airplay","allow");const A=()=>{Tt.current||(ye(le.currentTime),typeof window<"u"&&(window.lastSeekedPosition=le.currentTime))},ge=()=>{ne&&(He(!0),localStorage.setItem("video_initialized","true"))},Ve=()=>{};return le.addEventListener("timeupdate",A),le.addEventListener("play",ge),le.addEventListener("pause",Ve),()=>{le.removeEventListener("timeupdate",A),le.removeEventListener("play",ge),le.removeEventListener("pause",Ve)}},[k,ne,Tt]),W.useEffect(()=>{ye(w)},[w]);const $e=me>0?w/me*100:0,mt=le=>{le.preventDefault(),fn(!0),Tt.current=!0,ht(le);const A=Ve=>{Tt.current&&ht(Ve)},ge=()=>{fn(!1),Tt.current=!1,document.removeEventListener("mousemove",A),document.removeEventListener("mouseup",ge)};document.addEventListener("mousemove",A),document.addEventListener("mouseup",ge)},ht=le=>{if(!he.current)return;const A=he.current.getBoundingClientRect(),ge=Math.max(0,Math.min(1,(le.clientX-A.left)/A.width)),Ve=me*ge;Oe({x:le.clientX}),L(Ve),ye(Ve),typeof window<"u"&&(window.lastSeekedPosition=Ve),c(Ve)},Qt=le=>{if(!he.current||!le.touches[0])return;le.preventDefault(),fn(!0),Tt.current=!0,_e(le);const A=Ve=>{Tt.current&&_e(Ve)},ge=()=>{fn(!1),Tt.current=!1,document.removeEventListener("touchmove",A),document.removeEventListener("touchend",ge),document.removeEventListener("touchcancel",ge)};document.addEventListener("touchmove",A,{passive:!1}),document.addEventListener("touchend",ge),document.addEventListener("touchcancel",ge)},_e=le=>{if(!he.current)return;const A="touches"in le?le.touches[0]:null;if(!A)return;le.preventDefault();const ge=he.current.getBoundingClientRect(),Ve=Math.max(0,Math.min(1,(A.clientX-ge.left)/ge.width)),st=me*Ve;Oe({x:A.clientX}),L(st),ye(st),typeof window<"u"&&(window.lastSeekedPosition=st),c(st)},re=le=>{if(!I&&he.current){const A=he.current.getBoundingClientRect(),ge=(le.clientX-A.left)/A.width,Ve=me*ge;ye(Ve),typeof window<"u"&&(window.lastSeekedPosition=Ve),c
//# sourceMappingURL=chapters-editor.js.map